DocumentCode :
692953
Title :
A clustering method for pruning false positive of clonde code detection
Author :
Peijun Ma ; Yixin Bian ; Xiaohong Su
Author_Institution :
Dept. of Comput. Sci., Harbin Inst. of Technol., Harbin, China
fYear :
2013
fDate :
20-22 Dec. 2013
Firstpage :
1917
Lastpage :
1920
Abstract :
There are some false positives when detect syntax similar cloned code with clone code technology based on token. In this paper, we propose a novel algorithm to automatically prune false positives of clone code detection by performing clustering with different attribute and weights. First, closely related statements are grouped into a cluster by performing clustering. Second, compare the hash values of the statements in the two clusters to prune false positives. The experimental results show that our method can effectively prune clone code false positives caused by switching the orders of same structure statements. It not only improves the accuracy of cloned code detection and cloned code related defects detection but also contribute to the following study of cloned code refactorings.
Keywords :
pattern clustering; software maintenance; cloned code refactoring; cloned code related defects detection; clustering method; false positive pruning; hash values; structure statments; syntax similar cloned code; Cloning; Clustering algorithms; Conferences; Software maintenance; Switches; Syntactics; Cloned code; clustering; false positives; refactoring; style;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Mechatronic Sciences, Electric Engineering and Computer (MEC), Proceedings 2013 International Conference on
Conference_Location :
Shengyang
Print_ISBN :
978-1-4799-2564-3
Type :
conf
DOI :
10.1109/MEC.2013.6885366
Filename :
6885366
Link To Document :
بازگشت