Extracting code clones for refactoring using combinations of clone metrics

Eunjong Choi, Norihiro Yoshida, T. Ishio, Katsuro Inoue, Tateki Sano
{"title":"Extracting code clones for refactoring using combinations of clone metrics","authors":"Eunjong Choi, Norihiro Yoshida, T. Ishio, Katsuro Inoue, Tateki Sano","doi":"10.1145/1985404.1985407","DOIUrl":null,"url":null,"abstract":"Code clone detection tools may report a large number of code clones, while software developers are interested in only a subset of code clones that are relevant to software development tasks such as refactoring. Our research group has supported many software developers with the code clone detection tool CCFinder and its GUI front-end Gemini. Gemini shows clone sets (i.e., a set of code clones identical or similar to each other) with several clone metrics including their length and the number of code clones; however, it is not clear how to use those metrics to extract interesting code clones for developers. In this paper, we propose a method combining clone metrics to extract code clones for refactoring activity. We have conducted an empirical study on a web application developed by a Japanese software company. The result indicates that combinations of simple clone metric is more effective to extract refactoring candidates in detected code clones than individual clone metric.","PeriodicalId":374295,"journal":{"name":"International Workshop on Software Clones","volume":"179 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2011-05-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"59","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Workshop on Software Clones","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/1985404.1985407","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 59

Abstract

Code clone detection tools may report a large number of code clones, while software developers are interested in only a subset of code clones that are relevant to software development tasks such as refactoring. Our research group has supported many software developers with the code clone detection tool CCFinder and its GUI front-end Gemini. Gemini shows clone sets (i.e., a set of code clones identical or similar to each other) with several clone metrics including their length and the number of code clones; however, it is not clear how to use those metrics to extract interesting code clones for developers. In this paper, we propose a method combining clone metrics to extract code clones for refactoring activity. We have conducted an empirical study on a web application developed by a Japanese software company. The result indicates that combinations of simple clone metric is more effective to extract refactoring candidates in detected code clones than individual clone metric.
使用克隆指标组合提取代码克隆以进行重构
代码克隆检测工具可能会报告大量的代码克隆,而软件开发人员只对与软件开发任务(如重构)相关的代码克隆的子集感兴趣。我们的研究小组已经为许多软件开发人员提供了代码克隆检测工具CCFinder及其GUI前端Gemini。Gemini展示了克隆集(即一组彼此相同或相似的代码克隆)以及若干克隆指标,包括它们的长度和代码克隆的数量;然而,如何使用这些指标为开发人员提取有趣的代码克隆并不清楚。在本文中,我们提出了一种结合克隆度量来提取用于重构活动的代码克隆的方法。我们对一家日本软件公司开发的web应用程序进行了实证研究。结果表明,在检测到的代码克隆中,简单克隆度量的组合比单个克隆度量更有效地提取重构候选对象。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:481959085
Book学术官方微信