arrow
Return

An Effective Semantic Code Clone Detection Framework Using Pairwise Feature Fusion

delete2021-01-01
delete10
delete
OA
AI
S
Swarup Roy *
J
Jugal Kalita
DOI:10.1109/ACCESS.2021.3079156delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Code clones. In this work, we propose a novel detection framework using machine learning for automated detection of all four type of clones. The features extracted from a pair of code blocks are combined for possible detection of a clone with respect to a reference block. We use AST and PDG features of both code blocks to prepare labelled training samples after fusing the two feature vectors using three different alternatives. We use six state-of-the-art classification models including Deep Convolutional Neural Network to assess the prediction performance of our scheme. To access the effectiveness of our framework we use seven datasets and compare its performance with five state-of-the-art clone detectors. We also compare a large number of algorithms for code clone detection. Comparing the performance of a large number of machine learning techniques, ANN and non-ANN, using such features, and establishing that fusing of AST and PDG features gives competitive results using deep learning as well as boosted tree algorithms, we find that boosted tree algorithms like XGBoost are quite competitive in clone detection. Experimental results demonstrate that our approach outperforms existing clone detection methods in terms of prediction accuracy.
Keywords:
Cloning
Semantics
Feature extraction
Task analysis
Syntactics
Machine learning algorithms
Prediction algorithms
Machine learning
code clones
semantic clones
AST
PDG
features
deep learning
classification
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
9.8W
Citations:
29.4W

Organization

University of Colorado System cover
University of Colorado System
Scholars:
6.3W
Papers: 5.5W
Citations: 1.8K
J
jazan university
Scholars:
5.4K
Papers: 4.5K
Citations: 140
S
Sikkim University
Scholars:
421
Papers: 344
Citations: 352
researcher View more organizations