conference-paper

CloneBAS: A Code Clone Detection Method Based on Abstract Syntax Tree and Simhash

Research footprint

At a glance

الاستشهادات
2
المراجع
13
Comments
0
Paper overview

Abstract

Code clone, which is one of the common “code smells”, is the duplicate code that exists in the source code. In this paper, we present CloneBAS, a code clone detection method based on Abstract Syntax Tree (AST) and Simhash. First, code block is considered as the detection granularity. Second, a fixed-length fingerprint with the AST of each code block is generated. As a result, multi-type clone detection capabilities are achieved. Third, based on the Hamming distance restriction, clone fingerprint groups and their corresponding clone code block groups are attained. Source codes from four projects are selected as subjects and the clone detectors of CCFinderSW and Deckard are compared with CloneBAS in our experiments. In terms of clone quality, the lowest accuracy of over 86% is achieved, which is better than the highest accuracy of 74% of the two comparators. In terms of clone quantity, Deckard is outperformed by CloneBAS in three projects.

Record transparency

Publication details

DOI
10.1109/icdsca59871.2023.10392292
OpenAlex
W4391129695
Document type
conference-paper
Language
EN
Last metadata update
المجتمع

Comments

تسجيل الدخول للانضمام إلى النقاش.

  1. لا توجد تعليقات بعد. ابدأ النقاش.