Automated recommendation of software refactorings based on feature requests. Nyamawe, A., Liu, H., Niu, N., Umer, Q., & Niu, Z. In volume 2019-September, of Proceedings of the IEEE International Conference on Requirements Engineering, pages 187–198, 2019. tex.art_number: 8920694 tex.author_keywords: Feature Requests; Machine Learning; Refactorings Recommendation; Software Refactoring tex.document_type: Conference Paper tex.source: Scopus
Automated recommendation of software refactorings based on feature requests [link]Paper  doi  abstract   bibtex   
During software evolution, developers often receive new requirements expressed as feature requests. To implement the requested features, developers have to perform necessary modifications (refactorings) to prepare for new adaptation that accommodates the new requirements. Software refactoring is a well-known technique that has been extensively used to improve software quality such as maintainability and extensibility. However, it is often challenging to determine which kind of refactorings should be applied. Consequently, several approaches based on various heuristics have been proposed to recommend refactorings. However, there is still lack of automated support to recommend refactorings given a feature request. To this end, in this paper, we propose a novel approach that recommends refactorings based on the history of the previously requested features and applied refactorings. First, we exploit the stateof-the-art refactoring detection tools to identify the previous refactorings applied to implement the past feature requests. Second, we train a machine classifier with the history data of the feature requests and refactorings applied on the commits that implemented the corresponding feature requests. The machine classifier is then used to predict refactorings for new feature requests. We evaluate the proposed approach on the dataset of 43 open source Java projects and the results suggest that the proposed approach can accurately recommend refactorings (average precision 73
@inproceedings{Nyamawe2019187,
	series = {Proceedings of the {IEEE} {International} {Conference} on {Requirements} {Engineering}},
	title = {Automated recommendation of software refactorings based on feature requests},
	volume = {2019-September},
	url = {https://www.scopus.com/inward/record.uri?eid=2-s2.0-85076927644&doi=10.1109%2fRE.2019.00029&partnerID=40&md5=8be6490bf033c02561902b96605f0bd9},
	doi = {10.1109/RE.2019.00029},
	abstract = {During software evolution, developers often receive new requirements expressed as feature requests. To implement the requested features, developers have to perform necessary modifications (refactorings) to prepare for new adaptation that accommodates the new requirements. Software refactoring is a well-known technique that has been extensively used to improve software quality such as maintainability and extensibility. However, it is often challenging to determine which kind of refactorings should be applied. Consequently, several approaches based on various heuristics have been proposed to recommend refactorings. However, there is still lack of automated support to recommend refactorings given a feature request. To this end, in this paper, we propose a novel approach that recommends refactorings based on the history of the previously requested features and applied refactorings. First, we exploit the stateof-the-art refactoring detection tools to identify the previous refactorings applied to implement the past feature requests. Second, we train a machine classifier with the history data of the feature requests and refactorings applied on the commits that implemented the corresponding feature requests. The machine classifier is then used to predict refactorings for new feature requests. We evaluate the proposed approach on the dataset of 43 open source Java projects and the results suggest that the proposed approach can accurately recommend refactorings (average precision 73},
	author = {Nyamawe, A.S. and Liu, H. and Niu, N. and Umer, Q. and Niu, Z.},
	year = {2019},
	note = {tex.art\_number: 8920694
tex.author\_keywords: Feature Requests; Machine Learning; Refactorings Recommendation; Software Refactoring
tex.document\_type: Conference Paper
tex.source: Scopus},
	keywords = {\#nosource},
	pages = {187--198},
}

Downloads: 0