Code Clone Detection: Techniques for Revealing Code Clones

In the era of AI, code clone has become a critical issue in globe for educational institutes and for software industry as well. Code clone detection plays a critical role in maintaining software quality, ensuring efficient code reuse, and identifying potential maintenance challenges in large codebases. Despite numerous approaches to detecting code similarity, existing methods often struggle with scalability and accuracy, particularly when distinguishing between exact and modified clones. The proposed work demonstrates a unified approach for detection of code clones by leveraging tokenization and sequence matcher. In Python programming language, code is example used through sequenced tokenization and where similarity via Sequence Matcher is applied. The effectiveness of the proposed method is tested on a set of Python scripts, from which it distinguishes exact and modified clones with high accuracy and completeness of results. The results include table of comparing the performance of different algorithms in terms of accuracy, precision, recall, and F1 score and histogram of clone similarity. The results prove that the approach yields high accuracy in detecting code clones, and has the potential to overshadow several traditional methods including the fact that it can identify code clones with structural modifications. This work advances line by line the on-going effort to improve and define the methods of code clone detection with relevance to automated code evaluation and information update.

Authors

Institutions

Publication Details

Published
2025-05-14
DOI
https://doi.org/10.1109/icpcsn65854.2025.11035972
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Code Clone Detection: Techniques for Revealing Code Clones

P Vijay Bhaskar, Geetika Geetika
Software Engineering Research
article

Code Clone Detection: Techniques for Revealing Code Clones

P Vijay Bhaskar, Geetika Geetika
article en

Abstract

In the era of AI, code clone has become a critical issue in globe for educational institutes and for software industry as well. Code clone detection plays a critical role in maintaining software quality, ensuring efficient code reuse, and identifying potential maintenance challenges in large codebases. Despite numerous approaches to detecting code similarity, existing methods often struggle with scalability and accuracy, particularly when distinguishing between exact and modified clones. The proposed work demonstrates a unified approach for detection of code clones by leveraging tokenization and sequence matcher. In Python programming language, code is example used through sequenced tokenization and where similarity via Sequence Matcher is applied. The effectiveness of the proposed method is tested on a set of Python scripts, from which it distinguishes exact and modified clones with high accuracy and completeness of results. The results include table of comparing the performance of different algorithms in terms of accuracy, precision, recall, and F1 score and histogram of clone similarity. The results prove that the approach yields high accuracy in detecting code clones, and has the potential to overshadow several traditional methods including the fact that it can identify code clones with structural modifications. This work advances line by line the on-going effort to improve and define the methods of code clone detection with relevance to automated code evaluation and information update.

Lovely Professional University (IN)
Openalex Percentile: Top 80%
Software Engineering Research
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.