arrow
Return

RepliComment: Identifying clones in code comments

delete2021-12-01
delete2
delete
OA
AI
A
Arianna Blasi *
N
Nataliia Stulova
A
Alessandra Gorla
O
Oscar Nierstrasz
DOI:10.1016/j.jss.2021.111069delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
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 10 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 Blasi and Gorla (2018), 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. (C) 2021 The Authors. Published by Elsevier Inc.
Keywords:
Code comments
Software quality
Clones
Bad smell
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Journal of Systems and Software cover
Journal of Systems and Software
IF:
4.1
Papers:
5.5K
Citations:
8.4K

Organization

U
Universita della Svizzera Italiana
Scholars:
3.3K
Papers: 2.8K
Citations: 3
I
imdea software institute
Scholars:
63
Papers: 45
Citations: 0
U
University of Bern
Scholars:
4.0W
Papers: 3.1W
Citations: 4.8W
researcher View more organizations
Cited Papers

Cited Papers

err
IF0
err
err0
PREAI
err
errShare
errSave
Urinary retention following routine neurosurgical spine procedures
err2001-01-01
err0
PREAI
errNicholas M Boulis; Farukh S Mian; David Rodriguez; Edward Cho; Julian T Hoff
errShare
errSave
The Operational Value of Social Media Information
err2015-01-01
err0
PREAI
errRuomeng Cui; Santiago Gallino; Antonio Moreno; Dennis J. Zhang
errShare
errSave
Effect of the Freeze-Thaw on the Suspension Stability and Thermal Conductivity of EG/Water-Based Al2O3Nanofluids
err2019-02-12
err0
errOAAI
errTae Jong Choi; Seok Pil Jang; Dae Soo Jung; Hyung Mi Lim; Young Man Byeon; Im Joo Choi
errShare
errSave
Swarming and Behaviour in Antarctic Krill
err2016-08-04
err0
PREAI
errGeraint A. Tarling; Sophie Fielding
errShare
errSave
Can a Single Species Challenge Paradigms of Salt Marsh Functioning?
err2014-06-03
err0
PREAI
errJuan Alberti; Pedro Daleo; Eugenia Fanjul; Mauricio Escapa; Florencia Botto; Oscar Iribarne
errShare
errSave
researcher View more