Clonepedia: Summarizing code clones by common syntactic context for software maintenance

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...

全面介紹

Saved in:
書目詳細資料
Main Authors: LIN, Yun, XING, Zhenchang, PENG, Xin, LIU, Yang, SUN, Jun, ZHAO, Wenyun, DONG, Jin Song
格式: text
語言:English
出版: Institutional Knowledge at Singapore Management University 2014
主題:
在線閱讀:https://ink.library.smu.edu.sg/sis_research/4990
https://ink.library.smu.edu.sg/context/sis_research/article/5993/viewcontent/clonepedia.pdf
標簽: 添加標簽
沒有標簽, 成為第一個標記此記錄!
機構: Singapore Management University
語言: English
實物特徵
總結: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.