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 条
  • [41] Birds as long-lived animal models for the study of aging
    Holmes, DJ
    Ottinger, MA
    EXPERIMENTAL GERONTOLOGY, 2003, 38 (11-12) : 1365 - 1375
  • [42] Heritability of telomere length in a study of long-lived families
    Honig, Lawrence S.
    Kang, Min Suk
    Cheng, Rong
    Eckfeldt, John H.
    Thyagarajan, Bharat
    Leiendecker-Foster, Catherine
    Province, Michael A.
    Sanders, Jason L.
    Perls, Thomas
    Christensen, Kaare
    Lee, Joseph H.
    Mayeux, Richard
    Schupf, Nicole
    NEUROBIOLOGY OF AGING, 2015, 36 (10) : 2785 - 2790
  • [43] Pattern recognition study on the formation of long-lived trajectory
    Du, FP
    Chen, L
    Cai, ZS
    Zhao, XZ
    ACTA CHIMICA SINICA, 2001, 59 (05) : 670 - 675
  • [44] Lagrangian Study of Several Long-Lived Agulhas Rings
    Xia, Qiong
    Dong, Changming
    He, Yijun
    Li, Gaocong
    Dong, Jihai
    JOURNAL OF PHYSICAL OCEANOGRAPHY, 2022, 52 (06) : 1049 - 1072
  • [45] CASE-STUDY OF A LONG-LIVED CLOUD CLUSTER
    AKAEDA, K
    NINOMIYA, K
    TAKEDA, T
    JOURNAL OF THE METEOROLOGICAL SOCIETY OF JAPAN, 1987, 65 (01) : 129 - 144
  • [46] Stability of long-lived consensus
    Dolev, S
    Rajsbaum, S
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2003, 67 (01) : 26 - 45
  • [47] On the origin of long-lived particles
    Jared Barron
    David Curtin
    Journal of High Energy Physics, 2020
  • [48] LONG-LIVED SUPEROXIDE RADICALS
    SYMONS, MCR
    NATURE, 1987, 325 (6106) : 659 - 660
  • [49] Laurels for the long-lived 8051
    不详
    IEEE MICRO, 1996, 16 (06) : 3 - 3
  • [50] Long-lived neutralino NLSPs
    Meade, Patrick
    Reece, Mattew
    Shih, David
    JOURNAL OF HIGH ENERGY PHYSICS, 2010, (10):