A Comprehensive Analysis of Unified Approaches for Revealing Code Clone Detection

Code clone detection can be crucial in software maintenance, because of clone occurrences have potential of causing errors, raise costs, or results in unsynchronized modify. Analyzing the limitation of the existing clone detection method, we found that while the token and AST thin methods have been rather successful at detecting simpler clone types, they are significantly inadequate when used for identifying Type III and Type IV clones. The latter are especially significant in cross-language cases in which mere conjunctions of syntactic predicates are insufficient. This paper introduces an enhanced method for code clone detection through combining token-based, abstract syntax tree based, program dependency graph based, and machine learning based clone detection methods in a single framework. In this paper, we developed a scalable approach using adaptive ensemble weighting and fine-tuned LLMs that improved the precision over all types of clones together with low FPs in both languages. The selective execution model of the proposed approach also improves resource utilization making it possible to work on large codebase. Experimental outcomes prove that the proposed approach has higher accuracy, precision, and less computation time compared with the state-of-the-art techniques for clone detection, which make it a valuable contribution for clone detection study.

Authors

Institutions

Publication Details

Published
2024-12-12
DOI
https://doi.org/10.1109/icuis64676.2024.10866000
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Comprehensive Analysis of Unified Approaches for Revealing Code Clone Detection

P Vijay Bhaskar, Geetika Geetika
Network Security and Intrusion Detection
article

A Comprehensive Analysis of Unified Approaches for Revealing Code Clone Detection

P Vijay Bhaskar, Geetika Geetika
article en

Abstract

Code clone detection can be crucial in software maintenance, because of clone occurrences have potential of causing errors, raise costs, or results in unsynchronized modify. Analyzing the limitation of the existing clone detection method, we found that while the token and AST thin methods have been rather successful at detecting simpler clone types, they are significantly inadequate when used for identifying Type III and Type IV clones. The latter are especially significant in cross-language cases in which mere conjunctions of syntactic predicates are insufficient. This paper introduces an enhanced method for code clone detection through combining token-based, abstract syntax tree based, program dependency graph based, and machine learning based clone detection methods in a single framework. In this paper, we developed a scalable approach using adaptive ensemble weighting and fine-tuned LLMs that improved the precision over all types of clones together with low FPs in both languages. The selective execution model of the proposed approach also improves resource utilization making it possible to work on large codebase. Experimental outcomes prove that the proposed approach has higher accuracy, precision, and less computation time compared with the state-of-the-art techniques for clone detection, which make it a valuable contribution for clone detection study.

Lovely Professional University (IN)
Openalex Percentile: Top 68%
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.