A hybrid approach (syntactic and textual) to clone detection

Marco Funaro, Daniele Braga, A. Campi, C. Ghezzi
{"title":"A hybrid approach (syntactic and textual) to clone detection","authors":"Marco Funaro, Daniele Braga, A. Campi, C. Ghezzi","doi":"10.1145/1808901.1808914","DOIUrl":null,"url":null,"abstract":"Code clone detection has been so far tackled with several approaches (mainly textual, syntactic, and semantic), each performing best w.r.t. specific metrics and against consolidated but specific benchmarks. Hybrid approaches have been recently proposed as well. This paper proposes a novel hybrid (syntactic, textual) approach using the abstract syntax tree to identify clone candidates and textual methods to discard false positives. The novelty of the approach is in the combination of two well-grounded techniques, in a way that has not been explored yet.\n The paper shows the result of empirical evaluation methods and hints of a prototype implementation. Initial experimental results show that the approach is effective and can find clones that were not detected by state of the art approaches.","PeriodicalId":374295,"journal":{"name":"International Workshop on Software Clones","volume":"4 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2010-05-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"19","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Workshop on Software Clones","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/1808901.1808914","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 19

Abstract

Code clone detection has been so far tackled with several approaches (mainly textual, syntactic, and semantic), each performing best w.r.t. specific metrics and against consolidated but specific benchmarks. Hybrid approaches have been recently proposed as well. This paper proposes a novel hybrid (syntactic, textual) approach using the abstract syntax tree to identify clone candidates and textual methods to discard false positives. The novelty of the approach is in the combination of two well-grounded techniques, in a way that has not been explored yet. The paper shows the result of empirical evaluation methods and hints of a prototype implementation. Initial experimental results show that the approach is effective and can find clones that were not detected by state of the art approaches.
克隆检测的混合方法(语法和文本)
到目前为止,已经使用了几种方法(主要是文本、语法和语义)来处理代码克隆检测,每种方法都具有最佳的w.r.t.特定度量和统一但特定的基准。最近也提出了混合方法。本文提出了一种新的混合(语法,文本)方法,使用抽象语法树来识别克隆候选和文本方法来丢弃假阳性。该方法的新颖之处在于将两种基础良好的技术以一种尚未探索的方式结合在一起。本文给出了经验评价方法的结果和一个原型实现的提示。初步实验结果表明,该方法是有效的,可以发现现有方法无法检测到的克隆。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信