• LOGIN
    Login with username and password
Repository logo

BORIS Portal

Bern Open Repository and Information System

  • Publications
  • Theses
  • Research Data
  • Projects
  • Organizations
  • Researchers
  • More
  • Collections
  • Statistics
  • LOGIN
    Login with username and password
Repository logo
Unibern.ch
  1. Home
  2. Publications
  3. RepliComment: Identifying Clones in Code Comments
 

RepliComment: Identifying Clones in Code Comments

Options
  • Details
  • Files
BORIS DOI
10.48350/165140
Official URL
http://scg.unibe.ch/archive/papers/Blas21a-RepliComment.pdf
Publisher DOI
10.1016/j.jss.2021.111069
Description
Code comments are the primary means to document implementation, and facilitate program comprehension. Thus, their quality should be a primary concern to improve program maintenance. While much effort has been dedicated to detecting bad smells such as clones in code, little work has focused on comments. In this paper we present our solution to detect clones in comments that developers should fix. RepliComment can automatically analyze Java projects and report instances of copy-and-paste errors in comments, and can point developers to which comments should be fixed. Moreover, it can report when clones are signs of poorly written comments. Developers should fix these instances too in order to improve the quality of the code documentation. Our evaluation of ten well-known open source Java projects identified over 11K instances of comment clones, and over 1,300 of them are potentially critical. We improve on our own previous work, which could only find 36 issues in the same dataset. Our manual inspection of 412 issues reported by RepliComment reveals that it achieves a precision of 79% in reporting critical comment clones. The manual inspection of 200 additional comment clones that RepliComment filters out as being legitimate, could not evince any false negative.
Date of Publication
2021-12
Publication Type
Article
Subject(s)
000 Computer science, knowledge & systems
Keyword(s)
scg-pub snf-asa3 scg21 jb22
Language(s)
en
Contributor(s)
Blasi, Arianna
Stulova, Nataliiaorcid-logo
Institut für Informatik (INF)
Gorla, Alessandra
Nierstrasz, Oscar
Institut für Informatik (INF)
Additional Credits
Institut für Informatik (INF)
Series
Journal of systems and software
Publisher
Elsevier
ISSN
0164-1212
Access(Rights)
open.access
Show full item
BORIS Portal
Bern Open Repository and Information System
Build: dd892c [ 9.04. 8:30]
Explore
  • Projects
  • Funding
  • Publications
  • Research Data
  • Organizations
  • Researchers
  • Audiovisual Material
  • Software & other digital items
  • Events
More
  • About BORIS Portal
  • Send Feedback
  • Cookie settings
  • Service Policy
Follow us on
  • Mastodon
  • YouTube
  • LinkedIn
UniBe logo