Refactoring is applied to the software artifacts so as to improve its internal structure, while preserving itsexternal behavior. Refactoring is an uncertain process and it is difficult to give some units formeasurement. The amount to refactoring that can be applied to the source-code depends upon the skills ofthe developer. In this research, we have perceived refactoring as a quantified object on an ordinal scale ofmeasurement. We have a proposed a model for determining the degree of refactoring opportunities in thegiven source-code. The model is applied on the three projects collected from a company. UML diagramsare drawn for each project. The values for source-code metrics, that are useful in determining the quality ofcode, are calculated for each UML of the projects. Based on the nominal values of metrics, each relevantUML is represented on an ordinal scale. A machine learning tool, weka, is used to analyze the dataset,imported in the form of arff file, produced by the three projects
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.