arrow
返回

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
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

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.
Keyword:
Code comments
Software quality
Clones
Bad smell
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
1.0W

机构

U
University of Bern
学者数:
2.0K
论文数: 794
被引数: 2.2W
I
imdea software institute
学者数:
63
论文数: 45
被引数: 17
U
universita della svizzera italiana
学者数:
134
论文数: 64
被引数: 2.1K
学者 查看更多机构
引用论文

引用论文

err
IF0
err
err0
PREAI
err
err分享
err收藏
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
err分享
err收藏
The Operational Value of Social Media Information
err2015-01-01
err0
PREAI
errRuomeng Cui; Santiago Gallino; Antonio Moreno; Dennis J. Zhang
err分享
err收藏
Swarming and Behaviour in Antarctic Krill
err2016-08-04
err0
PREAI
errGeraint A. Tarling; Sophie Fielding
err分享
err收藏
err分享
err收藏
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
err分享
err收藏
学者 查看更多内容