An expert system for determining candidate software classes for refactoring |
| |
Authors: | Yasemin Kosker Burak Turhan Ayse Bener |
| |
Affiliation: | 1. Pontifical Catholic University of Rio de Janeiro, Rio de Janeiro, Brazil;2. Tecgraf Institute at PUC-Rio, Rio de Janeiro, Brazil;3. Polytechnique Montréal, Montréal, Canada;4. Amazon, São Paulo, Brazil;5. Carnegie Mellon University, Pittsburgh, USA;6. Federal Institute of Education Science and Technology of Parana, Paranavaí, Brazil;1. MTA-SZTE Research Group on Artificial Intelligence, Szeged, Hungary;2. University of Szeged, Hungary |
| |
Abstract: | In the lifetime of a software product, development costs are only the tip of the iceberg. Nearly 90% of the cost is maintenance due to error correction, adaptation and mainly enhancements. As Lehman and Belady [Lehman, M. M., & Belady, L. A. (1985). Program evolution: Processes of software change. Academic Press Professional.] state that software will become increasingly unstructured as it is changed. One way to overcome this problem is refactoring. Refactoring is an approach which reduces the software complexity by incrementally improving internal software quality. Our motivation in this research is to detect the classes that need to be rafactored by analyzing the code complexity. We propose a machine learning based model to predict classes to be refactored. We use Weighted Naïve Bayes with InfoGain heuristic as the learner and we conducted experiments with metric data that we collected from the largest GSM operator in Turkey. Our results showed that we can predict 82% of the classes that need refactoring with 13% of manual inspection effort on the average. |
| |
Keywords: | |
本文献已被 ScienceDirect 等数据库收录! |
|