A Feature Analysis of Co-changed Code Clone by Using Clone Metrics

作者:Yudha Myrizki Sandhi*; Asano Ryohei; Aman Hirohisa
来源:IEICE Transactions on Fundamentals of Electronics Communications and Computer Sciences, 2012, E95A(9): 1498-1500.
DOI:10.1587/transfun.E95.A.1498

摘要

Code clones are duplicated or similar code fragments, and they have been known as major entities affecting the software maintain-ability. Sometimes there are %26quot;co-changes%26quot; in pair of code clones: when a code fragment is changed, the clone of the fragment is also changed. Such a co-change is one of key event to discuss the successful management of code clone. This paper analyzes the trends of co-changed code clones by using the length and the content of code clones. The empirical results show that: (1) there would be a specific length of clone to be mostly co-changed (around 60 - 100 tokens), and (2) code clones without any %26quot;control flow keywords%26quot; have a higher possibility to be co-changed than the others.

  • 出版日期2012-9

全文