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 条
[31]   A prototype for software refactoring recommendation system [J].
Gao Y. ;
Zhang Y. ;
Lu W. ;
Luo J. ;
Hao D. .
International Journal of Performability Engineering, 2020, 16 (07) :1095-1104
[32]   An Investigation of Entropy and Refactoring in Software Evolution [J].
Keenan, Daniel ;
Greer, Des ;
Cutting, David .
PRODUCT-FOCUSED SOFTWARE PROCESS IMPROVEMENT, PROFES 2022, 2022, 13709 :282-297
[33]   Creating and Analyzing Source Code Repository Models A Model-based Approach to Mining Software Repositories [J].
Scheidgen, Markus ;
Smidt, Martin ;
Fischer, Joachim .
MODELSWARD: PROCEEDINGS OF THE 5TH INTERNATIONAL CONFERENCE ON MODEL-DRIVEN ENGINEERING AND SOFTWARE DEVELOPMENT, 2017, :329-336
[34]   Sentiment Analysis in Jira Software Repositories [J].
Valdez, Andric ;
Oktaba, Hanna ;
Gomez, Helena ;
Vizcaino, Aurora .
2020 8TH EDITION OF THE INTERNATIONAL CONFERENCE IN SOFTWARE ENGINEERING RESEARCH AND INNOVATION (CONISOFT 2020), 2020, :254-259
[35]   Library adoption in public software repositories [J].
Krohn, Rachel ;
Weninger, Tim .
JOURNAL OF BIG DATA, 2019, 6 (01)
[36]   Monitor-Based Instant Software Refactoring [J].
Liu, Hui ;
Guo, Xue ;
Shao, Weizhong .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2013, 39 (08) :1112-1126
[37]   A Framework for the Assessment and Training of Software Refactoring Competences [J].
Haendler, Thorsten ;
Neumann, Gustaf .
KMIS: PROCEEDINGS OF THE 11TH INTERNATIONAL JOINT CONFERENCE ON KNOWLEDGE DISCOVERY, KNOWLEDGE ENGINEERING AND KNOWLEDGE MANAGEMENT, VOL 3: KMIS, 2019, :307-316
[38]   Performance-driven software model refactoring [J].
Arcelli, Davide ;
Cortellessa, Vittorio ;
Di Pompeo, Daniele .
INFORMATION AND SOFTWARE TECHNOLOGY, 2018, 95 :366-397
[39]   A Refactoring Classification Framework for Efficient Software Maintenance [J].
Almogahed, Abdullah ;
Mahdin, Hairulnizam ;
Omar, Mazni ;
Zakaria, Nur Haryani ;
Mostafa, Salama A. ;
AlQahtani, Salman A. ;
Pathak, Pranavkumar ;
Shaharudin, Shazlyn Milleana ;
Hidayat, Rahmat .
IEEE ACCESS, 2023, 11 :78904-78917
[40]   Performance-Driven Software Architecture Refactoring [J].
Arcelli, Davide ;
Cortellessa, Vittorio ;
Di Pompeo, Daniele .
2018 IEEE 15TH INTERNATIONAL CONFERENCE ON SOFTWARE ARCHITECTURE COMPANION (ICSA-C 2018), 2018, :2-3