寻找软件克隆的最大频繁序列挖掘

Yoshihisa Udagawa
{"title":"寻找软件克隆的最大频繁序列挖掘","authors":"Yoshihisa Udagawa","doi":"10.1145/3011141.3011160","DOIUrl":null,"url":null,"abstract":"Software clones are introduced to source code by copying and slightly modifying code fragments for reuse. Thus, the problem of finding software clones is essentially the detection of strings that partially match. This paper describes a software clone detection technique using a sequential pattern-mining algorithm. After outlining a code normalization technique that extracts code-matching statements of interest from a specific programming language, viz., Java, we discuss how to extract a set of frequent sequences with gaps from a set of sequences that correspond to methods. The proposed algorithm also deals with maximal frequent sequences to find the most compact representation of sequential patterns. We define the maximal frequent sequence in the context of a partial match of sequences or gapped sequences. The novelty of our approach includes modified longest-common-subsequence (LCS) and backtrace algorithms for handling partial matches of sequences systematically. The paper also reports on the results of a case study using Apache Struts 2.5.2 Core. The results demonstrate the ability of the proposed algorithm to find clones of Types 1, 2, and 3.","PeriodicalId":247823,"journal":{"name":"Proceedings of the 18th International Conference on Information Integration and Web-based Applications and Services","volume":"86 4 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-11-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":"{\"title\":\"Maximal frequent sequence mining for finding software clones\",\"authors\":\"Yoshihisa Udagawa\",\"doi\":\"10.1145/3011141.3011160\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Software clones are introduced to source code by copying and slightly modifying code fragments for reuse. Thus, the problem of finding software clones is essentially the detection of strings that partially match. This paper describes a software clone detection technique using a sequential pattern-mining algorithm. After outlining a code normalization technique that extracts code-matching statements of interest from a specific programming language, viz., Java, we discuss how to extract a set of frequent sequences with gaps from a set of sequences that correspond to methods. The proposed algorithm also deals with maximal frequent sequences to find the most compact representation of sequential patterns. We define the maximal frequent sequence in the context of a partial match of sequences or gapped sequences. The novelty of our approach includes modified longest-common-subsequence (LCS) and backtrace algorithms for handling partial matches of sequences systematically. The paper also reports on the results of a case study using Apache Struts 2.5.2 Core. The results demonstrate the ability of the proposed algorithm to find clones of Types 1, 2, and 3.\",\"PeriodicalId\":247823,\"journal\":{\"name\":\"Proceedings of the 18th International Conference on Information Integration and Web-based Applications and Services\",\"volume\":\"86 4 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2016-11-28\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"3\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the 18th International Conference on Information Integration and Web-based Applications and Services\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3011141.3011160\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 18th International Conference on Information Integration and Web-based Applications and Services","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3011141.3011160","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

摘要

软件克隆是通过复制和稍微修改代码片段以实现重用而引入源代码的。因此,寻找软件克隆的问题本质上是检测部分匹配的字符串。本文描述了一种使用顺序模式挖掘算法的软件克隆检测技术。在概述了从特定编程语言(即Java)中提取感兴趣的代码匹配语句的代码规范化技术之后,我们将讨论如何从对应于方法的一组序列中提取一组带间隙的频繁序列。该算法还处理最大频繁序列,以找到序列模式的最紧凑表示。我们在序列的部分匹配或间隙序列的情况下定义了最大频繁序列。该方法的新颖之处包括改进的最长公共子序列(LCS)和回溯算法,用于系统地处理序列的部分匹配。本文还报告了一个使用Apache Struts 2.5.2 Core的案例研究的结果。结果表明,所提出的算法能够找到类型1、2和3的克隆。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Maximal frequent sequence mining for finding software clones
Software clones are introduced to source code by copying and slightly modifying code fragments for reuse. Thus, the problem of finding software clones is essentially the detection of strings that partially match. This paper describes a software clone detection technique using a sequential pattern-mining algorithm. After outlining a code normalization technique that extracts code-matching statements of interest from a specific programming language, viz., Java, we discuss how to extract a set of frequent sequences with gaps from a set of sequences that correspond to methods. The proposed algorithm also deals with maximal frequent sequences to find the most compact representation of sequential patterns. We define the maximal frequent sequence in the context of a partial match of sequences or gapped sequences. The novelty of our approach includes modified longest-common-subsequence (LCS) and backtrace algorithms for handling partial matches of sequences systematically. The paper also reports on the results of a case study using Apache Struts 2.5.2 Core. The results demonstrate the ability of the proposed algorithm to find clones of Types 1, 2, and 3.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术官方微信