arrow
返回

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
delete原文链接
delete分享
delete收藏
摘要

摘要

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.
Keyword:
Clone detection
MiniRocket
source code
convolution
Kernel
PPV
classifier
representation
Clone detection
MiniRocket
source code
convolution
Kernel
PPV
classifier
representation
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
err分享
err收藏
Analyzing cloning evolution in the Linux kernel
err2002-10-01
err93
PREAI
errAntoniol, G; Villano, U; Merlo, E; Di Penta, M
err分享
err收藏

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
10.1W
被引数:
36.3W

机构

U
universite de saida
学者数:
7
论文数: 27
被引数: 59
引用论文

引用论文

err分享
err收藏
err分享
err收藏
err分享
err收藏
Comparison and evaluation of clone detection tools克隆检测工具的比较与评价
err2007-09-01
err510
errOAAI
errBellon, Stefan; Koschke, Rainer; Antoniol, Giuliano; Krinke, Jens; Merlo, Ettore
err分享
err收藏
学者 查看更多内容