DocumentCode
176174
Title
Clonepedia: Summarizing Code Clones by Common Syntactic Context for Software Maintenance
Author
Yun Lin ; Zhenchang Xing ; Xin Peng ; Yang Liu ; Jun Sun ; Wenyun Zhao ; Jinsong Dong
Author_Institution
Sch. of Comput. Sci., Fudan Univ., Shanghai, China
fYear
2014
fDate
Sept. 29 2014-Oct. 3 2014
Firstpage
341
Lastpage
350
Abstract
Code clones have to be made explicit and be managed in software maintenance. Researchers have developed many clone detection tools to detect and analyze code clones in software systems. These tools report code clones as similar code fragments in source files. However, clone-related maintenance tasks (e.g., refactorings) often involve a group of code clones appearing in larger syntactic context (e.g., code clones in sibling classes or code clones calling similar methods). Given a list of low-level code-fragment clones, developers have to manually summarize from bottom up low-level code clones that are relevant to the syntactic context of a maintenance task. In this paper, we present a clone summarization technique to summarize code clones with respect to their common syntactic context. The clone summarization allows developers to locate and maintain code clones in a top-down manner by type hierarchy and usage dependencies. We have implemented our approach in the Clonepedia tool and conducted a user study on JHotDraw with 16 developers. Our results show that Clonepedia users can better locate and refactor code clones, compared with developers using the Clone Detective tool.
Keywords
software maintenance; source code (software); Clonepedia tool; JHotDraw; clone detection tools; clone-related maintenance tasks; code clone analysis; code clone detection; code clone summarization technique; common syntactic context; low-level code-fragment clones; software maintenance; software systems; type hierarchy; usage dependencies; Abstracts; Cloning; Context; Maintenance engineering; Ontologies; Production facilities; Syntactics; Clone Summarization; Code Clone; Syntactic Pattern;
fLanguage
English
Publisher
ieee
Conference_Titel
Software Maintenance and Evolution (ICSME), 2014 IEEE International Conference on
Conference_Location
Victoria, BC
ISSN
1063-6773
Type
conf
DOI
10.1109/ICSME.2014.56
Filename
6976100
Link To Document