Research on mining software repositories to facilitate refactoring

被引:1
|
作者
Nyamawe, Ally S. [1 ,2 ,3 ]
机构
[1] Univ Dodoma, Dept Comp Sci & Engn, Dodoma, Tanzania
[2] Univ Dodoma, AI4D Africas Anglophone Multidisciplinary Res Lab, Dodoma, Tanzania
[3] Univ Dodoma, Dept Comp Sci & Engn, AI4D Africas Anglophone Multidisciplinary Res Lab, Dodoma, Tanzania
关键词
mining software repositories; software history; software refactoring; CODE-SMELLS; MODELS;
D O I
10.1002/widm.1508
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Software refactoring focuses on improving software quality by applying changes to the internal structure that do not alter the observable behavior. Determining which refactorings should be applied and presented to developers the most relevant and optimal refactorings is often challenging. Existing literature suggests that one of the potential sources to identify and recommend required refactorings is the past software development and evolution histories which are often archived in software repositories. In this article, we review a selection of existing literature that has attempted to propose approaches that facilitate refactoring by exploiting information mined from software repositories. Based on the reviewed papers, existing works leverage software history mining to support analysis of code smells, refactoring, and guiding software changes. First, past history information is used to detect design flaws in source code commonly referred to as code smells. Moreover, other studies analyze the evolution of code smells to establish how and when they are introduced into the code base and get resolved. Second, software repositories mining provides useful insights that can be used in predicting the need for refactoring and what specific refactoring operations are required. In addition, past history can be used in detecting and analyzing previously applied refactorings to establish software change facts, for instance, how developers refactor code and the motivation behind it. Finally, change patterns are used to predict further changes that might be required and recommend a set of files for change during a given modification task. The paper further suggests other exciting possibilities that can be pursued in the future in this research direction.This article is categorized under:Algorithmic Development > Text MiningApplication Areas > Data Mining Software Tools
引用
收藏
页数:15
相关论文
共 50 条
  • [41] Model to identify refactoring effort during maintenance by mining source code repositories
    Moser, Raimund
    Pedrycz, Witold
    Sillitti, Alberto
    Succi, Giancarlo
    PRODUCT-FOCUSED SOFTWARE PROCESS IMPROVEMENT, PROCEEDINGS, 2008, 5089 : 360 - +
  • [42] Mining software repositories for software architecture - A systematic mapping study
    Soliman, Mohamed
    Albonico, Michel
    Malavolta, Ivano
    Wortmann, Andreas
    INFORMATION AND SOFTWARE TECHNOLOGY, 2025, 181
  • [43] University-Industry Collaboration and Open Source Software (OSS) Dataset in Mining Software Repositories (MSR) Research
    Tripathi, Ambika
    Dabral, Savita
    Sureka, Ashish
    2015 IEEE 1ST INTERNATIONAL WORKSHOP ON SOFTWARE ANALYTICS (SWAN), 2015, : 39 - 40
  • [44] 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
  • [45] Guest editorial: special section on mining software repositories
    Di Penta, Massimiliano
    Xie, Tao
    EMPIRICAL SOFTWARE ENGINEERING, 2015, 20 (02) : 291 - 293
  • [46] Introduction to the Special Issue on Mining Software Repositories in 2010
    Whitehead, Jim
    Zimmermann, Thomas
    EMPIRICAL SOFTWARE ENGINEERING, 2012, 17 (4-5) : 500 - 502
  • [47] Guest Editorial: Special Section on Mining Software Repositories
    Tan, Lin
    Hindle, Abram
    EMPIRICAL SOFTWARE ENGINEERING, 2019, 24 (03) : 1458 - 1460
  • [48] Guest Editorial: Special section on mining software repositories
    Romain Robbes
    Emily Hill
    Christian Bird
    Empirical Software Engineering, 2018, 23 : 833 - 834
  • [49] MSR 2004 - International Workshop on Mining Software Repositories
    Hassan, AE
    Holt, RC
    Mockus, A
    ICSE 2004: 26TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2004, : 770 - 771
  • [50] Guest Editorial: Special section on mining software repositories
    Robbes, Romain
    Hill, Emily
    Bird, Christian
    EMPIRICAL SOFTWARE ENGINEERING, 2018, 23 (02) : 833 - 834