Classifying Code Comments in Java Open-Source Software Systems
Luca Pascarella, Alberto Bacchelli · IEEE/ACM International Conference on Mining Software Repositories (MSR) · 2017
Code comments are a key software component containing information about the underlying implementation. Several studies have shown that code comments enhance the readability of the code. Nevertheless, not all the comments have the same goal and target audience. In this paper, we investigate how six diverse Java OSS projects use code comments, with the aim of understanding their purpose. Through our analysis, we produce a taxonomy of source code comments, subsequently, we investigate how often each category occur by manually classifying more than 2,000 code comments from the aforementioned projects. In addition, we conduct an initial evaluation on how to automatically classify code comments at line level into our taxonomy using machine learning, initial results are promising and suggest that an accurate classification is within reach.
Cited by 91 works. doi:10.1109/msr.2017.63 Open-access PDF
Authors
References
- The Elements of Statistical Learning
- Machine learning in automated text categorization
- Introduction to Information Retrieval
- Five Misunderstandings About Case-Study Research
- Adaptive Computation and Machine Learning
- Recovering Documentation-to-Source-Code Traceability Links using Latent Semantic Indexing
- Recovering documentation-to-source-code traceability links using latent semantic indexing
- Towards automatically generating summary comments for Java methods
- Metrics for assessing a software system's maintainability
- Elementary Statistics