arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2204.04247cs.SE
收藏

大型Scala代码库上的克隆检测

Clone Detection on Large Scala Codebases

Wahidur Rahman, Yisen Xu, Fan Pu, Jifeng Xuan, Xiangyang Jia, Michail Basios, Leslie Kanthan, Lingbo Li, Fan Wu, Baowen Xu

摘要:

代码克隆是相同或相似的代码段。代码克隆的广泛存在会增加软件的维护成本,影响软件的质量。研究界已经开发了许多技术来检测代码克隆,但是,很少有证据表明这些技术在工业用例中的表现。在本文中,我们的目标是揭示这些技术在工业用例中应用时的差异。我们对两种最先进的代码克隆检测技术SourcerCC和AutoenCODE的性能进行了大规模的实验研究,包括开源项目和用Scala语言编写的工业项目。实验结果表明,两种算法在工业项目上的性能不同,查准率最大下降为30.7%,查全率最大提高为32.4%.通过开发人员手动标记工业项目的样本,我们发现上述项目中的Type-3克隆比开源项目中的Type-3克隆少得多。

英文摘要:

Code clones are identical or similar code segments. The wide existence of code clones can increase the cost of maintenance and jeopardise the quality of software. The research community has developed many techniques to detect code clones, however, there is little evidence of how these techniques may perform in industrial use cases. In this paper, we aim to uncover the differences when such techniques are applied in industrial use cases. We conducted large scale experimental research on the performance of two state-of-the-art code clone detection techniques, SourcererCC and AutoenCODE, on both open source projects and an industrial project written in the Scala language. Our results reveal that both algorithms perform differently on the industrial project, with the largest drop in precision being 30.7\%, and the largest increase in recall being 32.4\%. By manually labelling samples of the industrial project by its developers, we discovered that there are substantially less Type-3 clones in the aforementioned project than that in the open source projects.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑