
Related items loading ...
Section 1: Publication
Publication Type
Journal Article
Authorship
Mostaeen, G., Svajlenko, J., Roy, B., Roy, C. K., & Schneider, K. A.
Title
On the Use of Machine Learning Techniques Towards the Design of Cloud Based Automatic Code Clone Validation Tools
Year
2018
Publication Outlet
In 2018 IEEE 18th International Working Conference on Source Code Analysis and Manipulation (SCAM) (pp. 155-164). IEEE
DOI
ISBN
ISSN
Citation
Mostaeen, G., Svajlenko, J., Roy, B., Roy, C. K., & Schneider, K. A. (2018). On the Use of Machine Learning Techniques Towards the Design of Cloud Based Automatic Code Clone Validation Tools. In 2018 IEEE 18th International Working Conference on Source Code Analysis and Manipulation (SCAM) (pp. 155-164). IEEE.
https://doi.org/10.1109/SCAM.2018.00025
Abstract
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, a great many numbers of code clone detection techniques and tools have been proposed and studied over the last decade. To detect all possible similar source code patterns in general, the clone detection tools work on syntax level (such as texts, tokens, AST and so on) while lacking user-specific preferences. This often means the reported clones must be manually validated prior to any analysis in order to filter out the true positive clones from task or user-specific considerations. 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 based approach for automating the validation process. 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 shows promising results in several comparative studies with the existing related approaches for automatic code clone validation. We also present our experimental results in terms of different code clone detection tools, machine learning algorithms and open source software systems.
Plain Language Summary