An Empirical Study on Clone Evolution by Analyzing Clone Lifetime

Md. Jubair Ibna Mostafa
{"title":"An Empirical Study on Clone Evolution by Analyzing Clone Lifetime","authors":"Md. Jubair Ibna Mostafa","doi":"10.1109/IWSC.2019.8665850","DOIUrl":null,"url":null,"abstract":"The existence of code clones has several negative impacts on software maintenance which is why vast amount of research exists in the literature to characterize clone evolution. Most of those focused on clone genealogy, and clone changeness (consistent and inconsistent changes). However, analyzing clone evolution with respect to clone location and clone lifetime requires more attention to better characterize clone evolution. In this research, an empirical study has been performed on clone evolution by considering clone location (i.e., Inter-File and Intra-File) and clone lifetime. The study has been performed on four open source software covering 12 to 66 number of versions. In the study, it has been found that, (i) Intra-File clones occurred in a repository more than Inter-File clones, which infers that developers tend to clone code in the same file than different files and (ii) Intra-File clones are more volatile than Inter-File clones, which infers that developers like to refactor or change clones of the same file more than clones spanning different files. These observations help to conclude which clones should get more attention during clone maintenance tasks like refactoring.","PeriodicalId":341328,"journal":{"name":"2019 IEEE 13th International Workshop on Software Clones (IWSC)","volume":"340 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 IEEE 13th International Workshop on Software Clones (IWSC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IWSC.2019.8665850","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The existence of code clones has several negative impacts on software maintenance which is why vast amount of research exists in the literature to characterize clone evolution. Most of those focused on clone genealogy, and clone changeness (consistent and inconsistent changes). However, analyzing clone evolution with respect to clone location and clone lifetime requires more attention to better characterize clone evolution. In this research, an empirical study has been performed on clone evolution by considering clone location (i.e., Inter-File and Intra-File) and clone lifetime. The study has been performed on four open source software covering 12 to 66 number of versions. In the study, it has been found that, (i) Intra-File clones occurred in a repository more than Inter-File clones, which infers that developers tend to clone code in the same file than different files and (ii) Intra-File clones are more volatile than Inter-File clones, which infers that developers like to refactor or change clones of the same file more than clones spanning different files. These observations help to conclude which clones should get more attention during clone maintenance tasks like refactoring.
基于克隆寿命分析的克隆进化实证研究
代码克隆的存在对软件维护有一些负面影响,这就是为什么文献中存在大量研究来描述克隆进化的原因。其中大多数集中在克隆谱系和克隆变化(一致和不一致的变化)。然而,从克隆位置和克隆寿命的角度分析克隆进化需要更多的关注,以更好地表征克隆进化。在本研究中,考虑克隆位置(即Inter-File和Intra-File)和克隆寿命,对克隆进化进行了实证研究。这项研究是在四个开源软件上进行的,涵盖了12到66个版本。在研究中,我们发现,(i)存储库中的Intra-File克隆比Inter-File克隆发生得更多,这表明开发人员更倾向于克隆同一文件中的代码,而不是不同文件中的代码;(ii) Intra-File克隆比Inter-File克隆更不稳定,这表明开发人员更喜欢重构或更改同一文件的克隆,而不是跨不同文件的克隆。这些观察结果有助于得出结论,哪些克隆应该在重构等克隆维护任务中得到更多关注。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信