Ragkhitwetsagul, C;
(2017)
Measuring Code Similarity in Large-scaled Code Corpora.
In:
Proceedings of the 2016 IEEE International Conference on Software Maintenance and Evolution (ICSME).
(pp. pp. 626-630).
IEEE: Raleigh, NC, USA.
Preview |
Text
docsym.pdf - Accepted Version Download (206kB) | Preview |
Abstract
Source code similarity measurement is a fundamental technique in software engineering research. Techniques to measure code similarity have been invented and applied to various research areas such as code clone detection, finding bug fixes, and software plagiarism detection. We perform an evaluation of 30 similarity analysers for source code. The results show that specialised tools including clone and plagiarism detectors, with proper parameter tuning, outperform general techniques such as string matching. Although these specialised tools can handle code similarity in local code bases, they fail to locate similar code artefacts from large-scaled corpora. This is increasingly important considering the rising amount of online code artefacts. We propose a scalable search system specifically designed for source code. It lays a foundation to discovering online code reuse, large-scale code clone detection, finding usage examples, detecting software plagiarism, and finding software licensing conflicts. Our proposed code search framework is a hybrid of information retrieval and code clone detection techniques. This framework will be able to locate similar code artefacts instantly. The search is not only based on textual similarity, but also syntactic and structural similarity. It is resilient to incomplete code fragments that are normally found on the Internet.
Type: | Proceedings paper |
---|---|
Title: | Measuring Code Similarity in Large-scaled Code Corpora |
Event: | 2016 IEEE International Conference on Software Maintenance and Evolution (ICSME) |
Location: | Raleigh, NC, USA |
Dates: | 02 October 2016 - 10 October 2016 |
Open access status: | An open access version is available from UCL Discovery |
DOI: | 10.1109/ICSME.2016.18 |
Publisher version: | https://doi.org/10.1109/ICSME.2016.18 |
Language: | English |
Additional information: | This version is the author accepted manuscript. For information on re-use, please refer to the publisher’s terms and conditions. |
Keywords: | Cloning, Plagiarism, Indexes, Software, Java, Detectors, Information retrieval, empirical study, source code similarity, clone detection, software plagiarism detection, code search |
UCL classification: | UCL UCL > Provost and Vice Provost Offices > UCL BEAMS UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science > Dept of Computer Science |
URI: | https://discovery.ucl.ac.uk/id/eprint/1508127 |
Archive Staff Only
![]() |
View Item |