A Novel Source Code Clone Detection Method Based on Dual-GCN and IVHFS

نویسندگان

چکیده

Source code clone detection, which can identify fragments with similar functions, plays a significant role in software development and quality assurance. Existing methods either extract single syntactic or semantic information, ignore the associated information between statements different structures. It is difficult for these to effectively detect pairs functions. In this paper, we propose new model based on dual graph convolutional network (GCN) interval-valued hesitant fuzzy set (IVHFS), named DG-IVHFS. Specifically, simplified grouped abstract syntax tree (AST) of source obtain group representations. The representations AST, as well control flow (CFG) representations, were transformed into structures, then applied GCNs them learn dependencies nodes. addition, introduced IVHFS more comprehensive evaluation similarity. Our experimental results demonstrated that precision, recall, F1-scores DG-IVHFS BigCloneBench GoogleCodeJam datasets reached 98, 97 97% 93 95%, respectively, exceeding current state-of-the-art models. Moreover, our performed terms time consumption.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Novel Metrics Based Technique for Code Clone Detection

Nowadays, software development is a tricky and time-consuming task. In order to make the development easy, one uses the existing modules with or without a bit change. Modules which are used with or without changes are called as code clones. In several places in case of same or different software, a clone can be used for development purpose. Without having care, copy and paste code can lead to i...

متن کامل

CCFinder: A Multilinguistic Token-Based Code Clone Detection System for Large Scale Source Code

ÐA code clone is a code portion in source files that is identical or similar to another. Since code clones are believed to reduce the maintainability of software, several code clone detection techniques and tools have been proposed. This paper proposes a new clone detection technique, which consists of the transformation of input source text and a token-by-token comparison. For its implementati...

متن کامل

Mining of Source Code Concepts and Idioms An Approach based on Clone Detection Techniques

This paper introduces a new view on program source code with a focus on code clone information. An algorithm is presented that transforms source code into an equivalent representation which expresses code redundancies as hierarchical clone classes explicitly. This representation supports program comprehension by pointing out arbitrary programming idioms and the frequencies of their occurrences ...

متن کامل

Interprocedural PDG-based Code Clone Detection

This paper suggests a PDG-based code clone detection algorithm that handles procedure calls with summary information about the called procedures in order to improve the precision of the detection results.

متن کامل

A Token-based Code Clone Detection Technique and Its Evaluation

A code clone is a code port ion in source f i les that is identical or similar to another. Since code clones generally reduce maintainabili ty of soft ware, several code clone detection techniques and tools have been proposed. This paper proposes a new clone detection technique, which consists of transformation of input source text and t o ken-bytoken comparison. Based on the proposed code clon...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Electronics

سال: 2023

ISSN: ['2079-9292']

DOI: https://doi.org/10.3390/electronics12061315