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 条
  • [1] Assessment of Approaches for the Analysis of Refactoring Activity on Software Repositories An Empirical Study
    Orru, Matteo
    Marchesi, Michele
    PROCEEDINGS OF THE XP2016 SCIENTIFIC WORKSHOPS, 2016,
  • [2] Research on mining software repositories to facilitate refactoring
    Nyamawe, Ally S.
    WILEY INTERDISCIPLINARY REVIEWS-DATA MINING AND KNOWLEDGE DISCOVERY, 2023, 13 (05)
  • [3] A survey and taxonomy of approaches for mining software repositories in the context of software evolution
    Kagdi, Huzefa
    Collard, Michael L.
    Maletic, Jonathan I.
    JOURNAL OF SOFTWARE MAINTENANCE AND EVOLUTION-RESEARCH AND PRACTICE, 2007, 19 (02): : 77 - 131
  • [4] Refactoring large process model repositories
    Weber, Barbara
    Reichert, Manfred
    Mendling, Jan
    Reijers, Hajo A.
    COMPUTERS IN INDUSTRY, 2011, 62 (05) : 467 - 486
  • [5] Insights into software development approaches: mining Q &A repositories
    Arif Ali Khan
    Javed Ali Khan
    Muhammad Azeem Akbar
    Peng Zhou
    Mahdi Fahmideh
    Empirical Software Engineering, 2024, 29
  • [6] Insights into software development approaches: mining Q&A repositories
    Khan, Arif Ali
    Khan, Javed Ali
    Akbar, Muhammad Azeem
    Zhou, Peng
    Fahmideh, Mahdi
    EMPIRICAL SOFTWARE ENGINEERING, 2024, 29 (01)
  • [7] Refactoring process models in large process repositories
    Weber, Barbara
    Reichert, Manfred
    ADVANCED INFORMATION SYSTEMS ENGINEERING, PROCEEDINGS, 2008, 5074 : 124 - +
  • [8] Identifying refactoring opportunities in process model repositories
    Dijkman, Remco
    Gfeller, Beat
    Kuester, Jochen
    Voelzer, Hagen
    INFORMATION AND SOFTWARE TECHNOLOGY, 2011, 53 (09) : 937 - 948
  • [9] A survey of software refactoring
    Mens, T
    Tourwé, T
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2004, 30 (02) : 126 - 139
  • [10] Refactoring for software migration
    Mancl, D
    IEEE COMMUNICATIONS MAGAZINE, 2001, 39 (10) : 88 - 93