返回
Indexing source code and clone detection
DOI:10.1016/j.infsof.2021.106805.png)
摘要
En 中文
搜索源代码是代码推荐系统以及许多其他领域的常见任务。克隆检测用于软件维护和错误检测。目的: 介绍一种建立抽象语法树索引结构的算法。当建立索引结构时,可以在模式长度的时间线性中找到模式树。此外,本文还介绍了两个开源工具DrDup2和DrDupLex,它们使用索引结构来查找Type-2克隆。方法: 本文提出的索引结构基于trie,这是计算机科学中的基本数据结构。在BigCloneBench上对所提出的克隆检测器进行评估,BigCloneBench是克隆检测的公认基准。结果: 与三个最先进的克隆检测器 (NiCad,CloneWorks和SourcererCC) 的比较表明,DrDup2和DrDupLex能够在精度,召回率和运行时间方面击败它们。结论: 所提出的索引结构可用于例如在代码推荐系统中加速对代码片段的搜索。还表明,它可以用于检测具有高精度和召回率的2型克隆。
Keyword:
Clone detection
Code clones
Indexing
Tree pattern matching
期刊
IF:
4.3
论文数:
3.8K
被引数:
9.5K
机构
引用论文
Sustainability of the community-based ecotourism development in the Aksu-Zhabagly nature reserve, Kazakhstan
REGION
IF0
Lys63/Met1-hybrid ubiquitin chains are commonly formed during the activation of innate immune signallingLys63/Met1-hybrid泛素链通常在先天免疫信号激活过程中形成
Volcanic, Coseismic, and Seasonal Changes Detected at White Island (Whakaari) Volcano, New Zealand, Using Seismic Ambient Noise使用地震环境噪声在新西兰怀特岛 (Whakaari) 火山检测到的火山,同震和季节变化
Harvest Indices, Storability, and Poststorage Refrigeration Requirement of `Sunrise' Apple
HortScience
IF0
Impact of small geometrical imperfections on chromatic dispersion and birefringence in photonic crystal fibers小几何缺陷对光子晶体光纤色散和双折射的影响

