DocumentCode :
691462
Title :
The statistical analysis of source-code to determine the refactoring opportunities factor (ROF) using a machine learning algorithm
Author :
Jindal, Shikha ; Khurana, Garima
Author_Institution :
Dept. of Comput. Sci., Shaheed Bhagat Singh State Tech. Campus, Ferozepur, India
fYear :
2013
fDate :
20-21 Sept. 2013
Firstpage :
396
Lastpage :
403
Abstract :
In this research, we have proposed refactoring as a measured object with the help of a measurement scale. We have proposed a case study in which we have studied three different projects, obtained from a company for which an ordinal scale is prepared. The UML diagrams are drawn from which the values of different source-code metrics, those are helpful to determine the quality of the code, are calculated. A refactoring opportunities factor (ROF) has been introduced which determine the correct perspective of refactoring. Each UML diagram is assigned a ROF based on the values of source-code metrics. A machine learning algorithm is developed, based on the Naive Bayes Algorithm, which takes dataset prepared by studying 3 projects, as an input and determines which of these has good and bad opportunities for refactoring. The accuracy (precision and recall) of the machine learning classifier validates the refactoring opportunities factor.
Keywords :
Unified Modeling Language; learning (artificial intelligence); pattern classification; software maintenance; software metrics; statistical analysis; ROF; UML diagrams; Unified Modeling Language; code quality; machine learning algorithm; machine learning classifier; naive Bayes algorithm; precision accuracy; recall accuracy; refactoring opportunities factor; refactoring perspective; source-code metrics; statistical analysis; Naïve Bayes Algorithm; Ordinal Scale; Precision; Recall; Refactoring; Refactoring Opportunities Factor (ROF);
fLanguage :
English
Publisher :
iet
Conference_Titel :
Communication and Computing (ARTCom 2013), Fifth International Conference on Advances in Recent Technologies in
Conference_Location :
Bangalore
Print_ISBN :
978-1-84919-842-4
Type :
conf
DOI :
10.1049/cp.2013.2244
Filename :
6843018
Link To Document :
بازگشت