Navigation auf zora.uzh.ch

Search ZORA

ZORA (Zurich Open Repository and Archive)

Classifying code comments in Java software systems

Pascarella, Luca; Bruntink, Magiel; Bacchelli, Alberto (2019). Classifying code comments in Java software systems. Empirical Software Engineering, 24(3):1499-1537.

Abstract

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 14 diverse Java open and closed source software 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 40,000 lines of code comments from the aforementioned projects. In addition, we investigate 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, even when training the machine learner on projects different than the target one. Data and Materials [https://doi.org/10.5281/zenodo.2628361].

Additional indexing

Item Type:Journal Article, refereed, original work
Communities & Collections:03 Faculty of Economics > Department of Informatics
Dewey Decimal Classification:000 Computer science, knowledge & systems
Scopus Subject Areas:Physical Sciences > Software
Scope:Discipline-based scholarship (basic research)
Language:English
Date:2019
Deposited On:27 Jan 2021 14:33
Last Modified:24 Mar 2025 02:35
Publisher:Springer
ISSN:1382-3256
OA Status:Hybrid
Publisher DOI:https://doi.org/10.1007/s10664-019-09694-w
Other Identification Number:merlin-id:20242
Download PDF  'Classifying code comments in Java software systems'.
Preview
  • Content: Published Version
  • Licence: Creative Commons: Attribution 4.0 International (CC BY 4.0)

Metadata Export

Statistics

Citations

Dimensions.ai Metrics
33 citations in Web of Science®
44 citations in Scopus®
Google Scholar™

Altmetrics

Downloads

27 downloads since deposited on 27 Jan 2021
5 downloads since 12 months
Detailed statistics

Authors, Affiliations, Collaborations

Similar Publications