2019 · 28 citations · 40 references
ComputingComputer ScienceRecommender SystemsRequirements EngineeringSoftware EngineeringSoftware EvolutionSoftware MaintenanceSoftware RefactoringHeuristicsRefactoringRefactoring DetectionRefactoring Recommendation Systems
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%).
40
Introduction to information retrieval
Choice Reviews Online · 2009 · 12.6K citations
An algorithm for suffix stripping
Martin Porter · Program electronic library and information systems · 1980 · 8.1K citations
BoosTexter: A Boosting-based System for Text Categorization
Robert E. Schapire, Yoram Singer · Machine Learning · 2000 · 2.2K citations · Full text
NLTK: The Natural Language Toolkit
Edward Loper, Steven Bird · ArXiv.org · 2002 · 1.9K citations · Full text