arrow
Return

Multiple Similarity-based Features Blending for Detecting Code Clones using Consensus-Driven Classification

delete2021-11-01
delete3
PRE
AI
S
Sheneamer, Abdullah *
DOI:10.1016/j.eswa.2021.115364delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Code clone detection helps to reduce the costs associated with software maintenance and bug prevention. Machine learning methods have previously suggested many ways by which to detect code clones. The majority of clone detectors are traditional in their approach, they can detect syntactic clones but are poor at detecting semantic clones. Researchers use machine learning to detect semantic clones and automatically scan the data to learn latent semantic features. In this study, we have introduced a new formal model of similarity which combines similarity measures so that method blocks can measure both the syntactic and semantic distances between method block pairs. The uniqueness of our study is in the use of different similarity measures, and similarity scores as features in machine learning, to detect code clones. We use a number of similarity measure computations to extract similarity score features, these features are then represented as vectors. Using ensemble classification models, we perform extensive comparisons and evaluations of the effectiveness of our proposed idea. The results indicate that our approach is significantly better at detecting clone types compared to contemporary code clone detectors. We achieved a 99% success rate in detecting cloned codes based on F-score, recall, and precision. Our approach achieves 98-100% accuracy in the majority of cases.
Keywords:
Machine learning
Code clones
Semantic clones
Syntactic clones
Features
Classification
Software engineering
Similarity measures

Journal

Expert Systems with Applications cover
Expert Systems with Applications
IF:
7.5
Papers:
3.0W
Citations:
10.2W

Organization

J
jazan university
Scholars:
5.5K
Papers: 4.5K
Citations: 140
Cited Papers

Cited Papers

Characterization of polymer matrix and low melting point solder for anisotropic conductive film
err2008-02-01
err0
PREAI
errYong-Sung Eom; Ji-Won Baek; Jong-Tae Moon; Jae-Do Nam; Jong-Min Kim
errShare
errSave
Administration of Neomycin Resistance Gene Marked EBV Specific Cytotoxic T Lymphocytes to Recipients of Mismatched-Related or Phenotypically Similar Unrelated Donor Marrow Grafts. St. Jude Children's Research Hospital, Memphis, Tennesse
err1994-03-01
err0
PREAI
errHelen E. Heslop; Malcolm K. Brenner; Cliona Rooney; Robert A. Krance; W. Mark Roberts; Richard Rochester; Colton A. Smith; Victoria Turner; John Sixbey; Robert Moen; James M. Boyett
errShare
errSave
Lanthanum doped SnO2 and ZnO thin films sensitive to ethanol and humidity
err2000-02-01
err0
PREAI
errI Stambolova; K Konstantinov; S Vassilev; P Peshev; Ts Tsacheva
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