Comparing approaches to analyze refactoring activity on software repositories

被引:38
|
作者
Soares, Gustavo [1 ]
Gheyi, Rohit [1 ]
Murphy-Hill, Emerson [2 ]
Johnson, Brittany [2 ]
机构
[1] Univ Fed Campina Grande, Dept Comp & Syst, BR-58429900 Campina Grande, PB, Brazil
[2] N Carolina State Univ, Dept Comp Sci, Raleigh, NC 27695 USA
关键词
Refactoring; Repository; Manual analysis; Automated analysis;
D O I
10.1016/j.jss.2012.10.040
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Some approaches have been used to investigate evidence on how developers refactor their code, whether refactorings activities may decrease the number of bugs, or improve developers' productivity. However, there are some contradicting evidence in previous studies. For instance, some investigations found evidence that if the number of refactoring changes increases in the preceding time period the number of defects decreases, different from other studies. They have used different approaches to evaluate refactoring activities. Some of them identify committed behavior-preserving transformations in software repositories by using manual analysis, commit messages, or dynamic analysis. Others focus on identifying which refactorings are applied between two programs by using manual inspection or static analysis. In this work, we compare three different approaches based on manual analysis, commit message (Ratzinger's approach) and dynamic analysis (SAFEREFACTOR'S approach) to detect whether a pair of versions determines a refactoring, in terms of behavioral preservation. Additionally, we compare two approaches (manual analysis and REF-FINDER) to identify which refactorings are performed in each pair of versions. We perform both comparisons by evaluating their accuracy, precision, and recall in a randomly selected sample of 40 pairs of versions of JHotDraw, and 20 pairs of versions of Apache Common Collections. While the manual analysis presents the best results in both comparisons, it is not as scalable as the automated approaches. Ratzinger's approach is simple and fast, but presents a low recall; differently, SAFEREFACTOR is able to detect most applied refactorings, although limitations in its test generation backend results for some kinds of subjects in low precision values. REF-FINDER presented a low precision and recall in our evaluation. (c) 2012 Elsevier Inc. All rights reserved.
引用
收藏
页码:1006 / 1022
页数:17
相关论文
共 50 条
  • [31] A Survey on Mining Software Repositories
    Jung, Woosung
    Lee, Eunjoo
    Wu, Chisu
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2012, E95D (05): : 1384 - 1406
  • [32] Ethics in the mining of software repositories
    Nicolas E. Gold
    Jens Krinke
    Empirical Software Engineering, 2022, 27
  • [33] An Introduction to Software Product Line Refactoring
    Borba, Paulo
    GENERATIVE AND TRANSFORMATIONAL TECHNIQUES IN SOFTWARE ENGINEERING III, 2011, 6491 : 1 - 26
  • [34] Software Repositories: A Strategic Asset
    Hassan, Ahmed E.
    IEEE SOFTWARE, 2009, 26 (01) : 67 - 68
  • [35] Evaluating software refactoring tool support
    Mealy, Erica
    Strooper, Paul
    2006 AUSTRALIAN SOFTWARE ENGINEERING CONFERENCE, PROCEEDINGS, 2006, : 331 - +
  • [36] Tools in Mining Software Repositories
    Chaturvedi, K. K.
    Singh, V. B.
    Singh, Prashast
    PROCEEDINGS OF THE 2013 13TH INTERNATIONAL CONFERENCE ON COMPUTATIONAL SCIENCE AND ITS APPLICATIONS (ICCSA 2013), 2013, : 89 - 98
  • [37] Process mining software repositories
    Poncin, Wouter
    Serebrenik, Alexander
    van den Brand, Mark
    2011 15TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING (CSMR), 2011, : 5 - 13
  • [38] Research Friendly Software Repositories
    Herraiz, Israel
    Robles, Gregorio
    Gonzalez-Barahona, Jesus M.
    IWPSE-EVOL 09: ERCIM WORKSHOP ON SOFTWARE EVOLUTION (EVOL) AND INTERNATIONAL WORKSHOP ON PRINCIPLES OF SOFTWARE EVOLUTION (IWPSE), 2009, : 19 - 23
  • [39] Ethics in the mining of software repositories
    Gold, Nicolas E.
    Krinke, Jens
    EMPIRICAL SOFTWARE ENGINEERING, 2022, 27 (01)
  • [40] Refactoring Legacy Software for Layer Separation
    Khalilipour, Alireza
    Challenger, Moharram
    Onat, Mehmet
    Gezgen, Hale
    Kardas, Geylani
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2021, 31 (02) : 217 - 247