arrow
Return

A Novel Method for Code Clone Detection Based on Minimally Random Kernel Convolutional Transform

delete2024-01-01
delete0
delete
OA
AI
M
Mostefai Abdelkader *
DOI:10.1109/ACCESS.2024.3484995delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Effectively detecting code clones is essential for maintaining and evolving software systems. This paper introduces a novel approach that leverages minimally random kernel convolutional transform (MiniRocket) to represent source code for clone detection. Our objective is to explore the applicability of this cross-domain representation within software engineering. Specifically, the study examines the combination of kernels designed according to MiniRocket rules, the Proportion of Positive Values pooling operator (PPV), and advanced classifiers such as XGBoost, Random Forest in the context of clone detection. The proposed method comprises three key steps: first, code pairs are transformed into time series data; second, these time series are represented as feature vectors using MiniRocket, with each vector labeled according to its clone status (clone or non-clone); and third, a classifier is trained on this labeled dataset. This trained classifier is then utilized to determine whether two new code fragments are clones. The proposed approach was evaluated on the well-known BigCloneBench dataset and compared to seven state-of-the-art tools: SourcererCC, NIL, Code2Vec, ASTNN, FA-AST, RtvNN, and TAILOR, for detecting Type I, Type II, Type III, and Type IV clones. The empirical results indicate that CCDMR, especially the CCDMR with the XGBoost variant, outperformed these methods in detecting MT3 clones and matched the performance of the leading tool, TAILOR, in detecting ST3 clones. Overall, the average F1 score across all clone types demonstrated that CCDMR was comparable to TAILOR, with particularly strong performance in ST3 and MT3 clones detection.
Keywords:
Clone detection
MiniRocket
source code
convolution
Kernel
PPV
classifier
representation
Clone detection
MiniRocket
source code
convolution
Kernel
PPV
classifier
representation
errShare
errSave
Code2Img: Tree-Based Image Transformation for Scalable Code Clone Detection
err2023-09-01
err5
PREAI
errHu, Yutao; Fang, Yilin; Sun, Yifan; Jia, Yaru; Wu, Yueming; Zou, Deqing; Jin, Hai
errShare
errSave
Challenging Machine Learning-Based Clone Detectors via Semantic-Preserving Code Transformations
err2023-05-01
err8
errOAAI
errZhang, Weiwei; Guo, Shengjian; Zhang, Hongyu; Sui, Yulei; Xue, Yinxing; Xu, Yun
errShare
errSave
Transformer-based code model with compressed hierarchy representation
err2025-01-23
err0
PREAI
errZhang, Kechi; Li, Jia; Li, Zhuo; Jin, Zhi; Li, Ge
errShare
errSave
Graph-based code semantics learning for efficient semantic code clone detection
err2023-04-01
err12
PREAI
errYu, Dongjin; Yang, Quanxin; Chen, Xin; Chen, Jie; Xu, Yihang
errShare
errSave
A Systematic Review on Code Clone Detection
err2019-01-01
err84
errOAAI
errUl Ain, Qurat; Butt, Wasi Haider; Anwar, Muhammad Waseem; Azam, Farooque; Maqbool, Bilal
errShare
errSave
Analyzing cloning evolution in the Linux kernel
err2002-10-01
err93
PREAI
errAntoniol, G; Villano, U; Merlo, E; Di Penta, M
errShare
errSave

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
10.1W
Citations:
36.3W

Organization

U
universite de saida
Scholars:
7
Papers: 27
Citations: 59
Cited Papers

Cited Papers

errShare
errSave
errShare
errSave
A systematic literature review on source code similarity measurement and clone detection: Techniques, applications, and challenges
err2023-10-01
err27
errOAAI
errZakeri-Nasrabadi, Morteza; Parsa, Saeed; Ramezani, Mohammad; Roy, Chanchal; Ekhtiarzadeh, Masoud
errShare
errSave
Challenging Machine Learning-Based Clone Detectors via Semantic-Preserving Code Transformations
err2023-05-01
err8
errOAAI
errZhang, Weiwei; Guo, Shengjian; Zhang, Hongyu; Sui, Yulei; Xue, Yinxing; Xu, Yun
errShare
errSave
Comparison and evaluation of clone detection tools
err2007-09-01
err510
errOAAI
errBellon, Stefan; Koschke, Rainer; Antoniol, Giuliano; Krinke, Jens; Merlo, Ettore
errShare
errSave
researcher View more