arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.01092cs.SE
收藏

支持代码克隆调查的代码片段信息标记

Towards Informative Tagging of Code Fragments to Support the Investigation of Code Clones

Daisuke Nishioka, Toshihiro Kamiya

摘要:

调查代码克隆检测工具检测到的代码克隆的代码片段是一项耗时的任务,尤其是在有大量引用源文件可用时。本文提出了一种基于主题相似度的聚类方法,该方法将代码片段看作是单词序列,利用句法相似度对代码克隆检测工具检测到的克隆类进行聚类;提出了一种为聚类结果的聚类分配短标签的方法。我们还报告了一个实验,将所提出的方法应用到一个开源操作系统的软件包。

英文摘要:

Investigating the code fragments of code clones detected by code clone detection tools is a time-consuming task, especially when a large number of reference source files are available. This paper proposes (i) a method for clustering a clone class, which is detected by code clone detection tools using syntactic similarity, based on topic similarity by considering its code fragments as sequences of words and (ii) a method for assigning short tags to clusters of the clustering result. We also report an experiment of applying the proposed method to packages of an open source operating system.

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

↑