An Empirical Study of Long-Lived Code Clones

被引:0
|
作者
Cai, Dongxiang [1 ]
Kim, Miryung [2 ]
机构
[1] Hong Kong Univ Sci & Technol, Hong Kong, Hong Kong, Peoples R China
[2] Univ Texas Austin, Austin, TX 78712 USA
关键词
Software evolution; empirical study; code clones; refactoring; SUPPORT;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Previous research has shown that refactoring code clones as soon as they are formed or discovered is not always feasible or worthwhile to perform, since some clones never change during evolution and some disappear in a short amount of time, while some undergo repetitive similar edits over their long lifetime. Toward a long-term goal of developing a recommendation system that selectively identifies clones to refactor, as a first step, we conducted an empirical investigation into the characteristics of long-lived clones. Our study of 13558 clone genealogies from 7 large open source projects, over the history of 33.25 years in total, found surprising results. The size of a clone, the number of clones in the same group, and the method-level distribution of clones are not strongly correlated with the survival time of clones. However, the number of developers who modified clones and the time since the last addition or removal of a clone to its group are highly correlated with the survival time of clones. This result indicates that the evolutionary characteristics of clones may be a better indicator for refactoring needs than static or spatial characteristics such as LOG, the number of clones in the same group, or the dispersion of clones in a system.
引用
收藏
页码:432 / +
页数:4
相关论文
共 50 条
  • [1] CREOSOTE BUSH - LONG-LIVED CLONES IN THE MOJAVE DESERT
    VASEK, FC
    AMERICAN JOURNAL OF BOTANY, 1980, 67 (02) : 246 - 255
  • [2] Skippy: Enabling long-lived snapshots of the long-lived past
    Shaull, Ross
    Shrira, Liuba
    Xu, Hao
    2008 IEEE 24TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, VOLS 1-3, 2008, : 1474 - +
  • [3] Bug Replication in Code Clones: An Empirical Study
    Islam, Judith F.
    Mondal, Manishankar
    Roy, Chanchal K.
    2016 IEEE 23RD INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), VOL 1, 2016, : 68 - 78
  • [4] An empirical study on the maintenance of source code clones
    Suresh Thummalapenta
    Luigi Cerulo
    Lerina Aversano
    Massimiliano Di Penta
    Empirical Software Engineering, 2010, 15 : 1 - 34
  • [5] An empirical study on the maintenance of source code clones
    Thummalapenta, Suresh
    Cerulo, Luigi
    Aversano, Lerina
    Di Penta, Massimiliano
    EMPIRICAL SOFTWARE ENGINEERING, 2010, 15 (01) : 1 - 34
  • [6] Long-lived recordings
    Rotenberg, Menahem Y.
    Tian, Bozhi
    NATURE BIOMEDICAL ENGINEERING, 2017, 1 (03):
  • [7] Long-lived cat
    1600, Primedia Intertec, Overland Park, KS, USA (201):
  • [8] Long-lived lasing
    Maria Maragkou
    Nature Materials, 2015, 14 : 1186 - 1186
  • [9] Long-lived fellows
    Brooke, MD
    Copas, V
    Gylee, R
    Krüger, O
    TRENDS IN ECOLOGY & EVOLUTION, 2004, 19 (01) : 8 - 8
  • [10] Long-lived biomaterials
    不详
    NATURE BIOMEDICAL ENGINEERING, 2017, 1 (06):