Feature requests-based recommendation of software refactorings

Ally S. Nyamawe, Hui Liu*, Nan Niu, Qasim Umer, Zhendong Niu

*此作品的通讯作者

科研成果: 期刊稿件文章同行评审

16 引用 (Scopus)

摘要

Software requirements are ever-changing which often leads to software evolution. Consequently, throughout software lifetime, developers receive new requirements often expressed as feature requests. To implement the requested features, developers sometimes apply refactorings to make their systems adapt to the new requirements. However, deciding what refactorings to apply is often challenging and there is still lack of automated support to recommend refactorings given a feature request. To this end, we propose a learning-based approach that recommends refactorings based on the history of the previously requested features, applied refactorings, and code smells information. First, the state-of-the-art refactoring detection tools are leveraged to identify the previous refactorings applied to implement the past feature requests. Second, a machine classifier is trained with the history data of the feature requests, code smells, and refactorings applied on the respective commits. Consequently, the machine classifier is used to predict refactorings for new feature requests. The proposed approach is evaluated on the dataset of 55 open source Java projects and the results suggest that it can accurately recommend refactorings (accuracy is up to 83.19%).

源语言英语
页(从-至)4315-4347
页数33
期刊Empirical Software Engineering
25
5
DOI
出版状态已出版 - 1 9月 2020

指纹

探究 'Feature requests-based recommendation of software refactorings' 的科研主题。它们共同构成独一无二的指纹。

引用此