DocumentCode :
251795
Title :
Automatic ranking of clones for refactoring through mining association rules
Author :
Mandal, Mrinal ; Roy, Chanchal K. ; Schneider, Kevin A.
Author_Institution :
Dept. of Comput. Sci., Univ. of Saskatchewan, Saskatoon, SK, Canada
fYear :
2014
fDate :
3-6 Feb. 2014
Firstpage :
114
Lastpage :
123
Abstract :
In this paper, we present an in-depth empirical study on identifying clone fragments that can be important refactoring candidates. We mine association rules among clones in order to detect clone fragments that belong to the same clone class and have a tendency of changing together during software evolution. The idea is that if two or more clone fragments from the same class often change together (i.e., are likely to co-change) preserving their similarity, they might be important candidates for refactoring. Merging such clones into one (if possible) can potentially decrease future clone maintenance effort. We define a particular clone change pattern, the Similarity Preserving Change Pattern (SPCP), and consider the cloned fragments that changed according to this pattern (i.e., the SPCP clones) as important candidates for refactoring. For the purpose of our study, we implement a prototype tool called MARC that identifies SPCP clones and mines association rules among these. The rules as well as the SPCP clones are ranked for refactoring on the basis of their change-proneness. We applied MARC on thirteen subject systems and retrieved the refactoring candidates for three types of clones (Type 1, Type 2, and Type 3) separately. Our experimental results show that SPCP clones can be considered important candidates for refactoring. Clones that do not follow SPCP either evolve independently or are rarely changed. By considering SPCP clones for refactoring we not only can minimize refactoring effort considerably but also can reduce the possibility of delayed synchronizations among clones and thus, can minimize inconsistencies in software systems.
Keywords :
data mining; software maintenance; MARC; SPCP clone identification; automatic clone ranking; change-proneness; clone change pattern; clone fragments identification; clone maintenance effort; mining association rules; prototype tool; refactoring effort minimization; similarity preserving change pattern; software evolution; software system inconsistencies minimization; Association rules; Cloning; History; Maintenance engineering; Prototypes; Software systems; Association Rule; Clone Change Pattern; Clone Class; Clone Refactoring;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Maintenance, Reengineering and Reverse Engineering (CSMR-WCRE), 2014 Software Evolution Week - IEEE Conference on
Conference_Location :
Antwerp
Type :
conf
DOI :
10.1109/CSMR-WCRE.2014.6747161
Filename :
6747161
Link To Document :
بازگشت