Publication: Code Clone Detection with Convolutional Neural Networks
Loading...
Date
Authors
Advisor
Department
Journal Title
Journal ISSN
Volume Title
Publisher
International Journal of Informatics Technologies
Type
Abstract
Similar or identical code portions which are generated by copying and reusing code portions within the source code are named as code clones. While so many works have been conducted to detect these clones, they generally use string comparison techniques and very few of them take advantage of popular learning based approaches, such as deep learning. This paper proposes a new approach based on a popular and successful image classification technique named as convolutional neural network. It simply tokenizes each candidate clone pair in order to generate image files. Then, convolutional neural network is used to classify these image data with labels “clone” and “not clone”. In order to train and test the network, clone and not clone pairs are chosen from a public database including six million methods. As a result, the approach gives 99% accuracy, effectively detects clones and not clones with 2-5% false alarms rates at method granularity.
Description
Journal or Series
Bilişim Teknolojileri Dergisi
ISSN
1307-9697
ISBN
Rights
OPEN
Keywords
Computer Software, kod klon tespiti, derin öğrenme, konvolüsyonel sinir ağı, Bilgisayar Yazılımı, code clone detection, deep learning, convolutional neural network