Automatic Identification of Important Clones for Refactoring and Tracking
Authors:
- Manishankar MondalMMManishankar Mondal
- Chanchal K. RoyCRChanchal K. Roy
- Kevin A. SchneiderKSKevin A. Schneider
- 1 September 2014
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 11-20
Abstract
Code cloning is a controversial software engineering practice due to contradictory claims regarding its impacts on software evolution and maintenance. While a number of studies identify some positive aspects of code clones, there is strong empirical evidence of some negative impacts of clones too. Focusing on the issues related to clones researchers suggest to manage code clones through detection, refactoring, and tracking. However, all clones in a software system are not suitable for refactoring or tracking. Thus, it is important to identify which clones we should consider for refactoring and which clones should be considered for tracking. In this research work we apply the concept of evolutionary coupling to identify clones that are important for refactoring or tracking. By mining software evolution history, we determine and analyze constrained association rules of clone fragments that evolved following a particular change pattern called Similarity Preserving Change Pattern and are important from the perspective of refactoring and tracking. According to our investigation with rigorous manual analysis on thousands of revisions of six diverse subject systems covering two programming languages, overall 13.20% of all clones in a software system are important candidates for refactoring, and overall 10.27% of all clones are important candidates for tracking. Our implemented system can automatically identify these important candidates and thus, can help us in better maintenance of code clones in terms of refactoring and tracking.Keywords
This publication has 33 references indexed in Scilit:
- The vision of software clone management: Past, present, and future (Keynote paper)2014
- Searching for better configurations: a rigorous approach to clone evaluation2013
- Conflict‐aware optimal scheduling of prioritised code clone refactoringIET Software, 2013
- Prioritizing code clone detection results for clone management2013
- Increasing clone maintenance support by unifying clone detection and refactoring activitiesInformation and Software Technology, 2012
- An automatic framework for extracting and classifying near-miss clone genealogies2011
- Clone Stability2011
- Comparison and evaluation of code clone detection techniques and tools: A qualitative approachScience of Computer Programming, 2009
- Managing Duplicated Code with Linked Editing2005
- Mining version histories to guide software changes2004