Title :
Using Self Organized Mapping to Seek Refactorable Code Clone
Author_Institution :
Sch. of Inf. Eng., Northeast Dianli Univ., Jilin, China
Abstract :
Code reuse in the process of software development led to the generation of code clone. A large number of identical or similar code clones brought difficulties for the software maintenance. Sometimes bug may be introduced into software due to the inconsistent changes of code clones. In order to reduce the adverse impact that code clone made on the quality of software, refactorable code clones need to be found and then eliminated through refactoring. Aiming at the problem of how to find the refactorable code clone, this paper proposes a method based on SOM (Self Organized Mapping) clustering. Firstly, the samples of refactorable code clones are selected manually. Then, the values of the samples are normalized for creating SOM model. Finally, some probable refactorable code clones are found by SOM clustering, and the results will be recommended to programmer to verify which really refactorable code clones are. The experimental results show that the method has more precision than the method using single metric, and has more validity than the method using multiple metrics.
Keywords :
self-organising feature maps; software maintenance; software metrics; software quality; software reusability; SOM clustering; code clone generation; refactorable code clone; self organized mapping; software bug; software development; software maintenance; software metrics; software quality; software refactoring; Accuracy; Cloning; Computer bugs; Measurement; Software quality; Vectors;
Conference_Titel :
Communication Systems and Network Technologies (CSNT), 2014 Fourth International Conference on
Conference_Location :
Bhopal
Print_ISBN :
978-1-4799-3069-2
DOI :
10.1109/CSNT.2014.177