arrow
返回

A machine learning based framework for code clone validation

基于机器学习的代码克隆验证框架

delete2020-11-01
delete10
delete
OA
AI
G
Golam Mostaeen
B
Banani Roy
C
Chanchal K. Roy *
Kevin A. Schneider 封面图
Kevin A. Schneider (Kevin A. Schneider)
J
Jeffrey Svajlenko
DOI:10.1016/j.jss.2020.110686delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
A code clone is a pair of code fragments, within or between software systems that are similar. Since code clones often negatively impact the maintainability of a software system, several code clone detection techniques and tools have been proposed and studied over the last decade. However, the clone detection tools are not always perfect and their clone detection reports often contain a number of false positives or irrelevant clones from specific project management or user perspective. To detect all possible similar source code patterns in general, the clone detection tools work on the syntax level while lacking user-specific preferences. This often means the clones must be manually inspected before analysis in order to remove those false positives from consideration. This manual clone validation effort is very time-consuming and often error-prone, in particular for large-scale clone detection. In this paper, we propose a machine learning approach for automating the validation process. First, a training dataset is built by taking code clones from several clone detection tools for different subject systems and then manually validating those clones. Second, several features are extracted from those clones to train the machine learning model by the proposed approach. The trained algorithm is then used to automatically validate clones without human inspection. Thus the proposed approach can be used to remove the false positive clones from the detection results, automatically evaluate the precision of any clone detectors for any given set of datasets, evaluate existing clone benchmark datasets, or even be used to build new clone benchmarks and datasets with minimum effort. In an experiment with clones detected by several clone detectors in several different software systems, we found our approach has an accuracy of up to 87.4% when compared against the manual validation by multiple expert judges. The proposed method also shows better results in several comparative studies with the existing related approaches for clone classification. (C) 2020 Elsevier Inc. All rights reserved.
Keyword:
Code clones
Validation
Machine learning
Clone management
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

Classification model for code clones based on machine learning基于机器学习的克隆代码分类模型
err2014-05-29
err33
errOAAI
errYang, Jiachen; Hotta, Keisuke; Higo, Yoshiki; Igaki, Hiroshi; Kusumoto, Shinji
err分享
err收藏
err分享
err收藏
err分享
err收藏
err分享
err收藏

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
1.0W

机构

U
University of Saskatchewan
学者数:
744
论文数: 331
被引数: 9.3K
引用论文

引用论文

The content of imagery use in youth sport
err2007-01-01
err0
PREAI
errKrista J. Munroe‐Chandler; Craig. R. Hall; Graham Fishburne; Jenny O; Nathan Hall
err分享
err收藏
Nr2f1a balances atrial chamber and atrioventricular canal size via BMP signaling-independent and -dependent mechanisms
err2018-02-01
err0
errOAAI
errTiffany B. Duong; Padmapriyadarshini Ravisankar; Yuntao Charlie Song; Jacob T. Gafranek; Ariel B. Rydeen; Tracy E. Dohn; Lindsey A. Barske; J. Gage Crump; Joshua S. Waxman
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收藏
Comparison of machine learning techniques for predicting porosity of chalk
err2022-02-01
err0
errOAAI
errMeysam Nourani; Najeh Alali; Saeed Samadianfard; Shahab S. Band; Kwok-wing Chau; Chi-Min Shu
err分享
err收藏
Bayesian network classifiers贝叶斯网络分类器
err1997-01-01
err3.8K
errOAAI
errFriedman, N; Geiger, D; Goldszmidt, M
err分享
err收藏
学者 查看更多内容