A systematic literature review on source code similarity measurement and clone detection: Techniques, applications, and challenges

被引:36
作者
Zakeri-Nasrabadi, Morteza [1 ]
Parsa, Saeed [1 ]
Ramezani, Mohammad [1 ]
Roy, Chanchal [2 ]
Ekhtiarzadeh, Masoud [1 ]
机构
[1] Iran Univ Sci & Technol, Sch Comp Engn, Hengam St, Resalat Sq, Tehran 1684613114, Iran
[2] Univ Saskatchewan, Dept Comp Sci, Saskatoon, SK, Canada
关键词
Source code similarity; Code clone; Plagiarism detection; Code recommendation; Systematic literature review; SOFTWARE; BENCHMARK; FRAMEWORK; EFFICIENT; PROGRAMS; NICAD; COPY;
D O I
10.1016/j.jss.2023.111796
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Measuring and evaluating source code similarity is a fundamental software engineering activity that embraces a broad range of applications, including but not limited to code recommendation, duplicate code, plagiarism, malware, and smell detection. This paper proposes a systematic literature review and meta-analysis on code similarity measurement and evaluation techniques to shed light on the existing approaches and their characteristics in different applications. We initially found over 10,000 articles by querying four digital libraries and ended up with 136 primary studies in the field. The studies were classified according to their methodology, programming languages, datasets, tools, and applications. A deep investigation reveals 80 software tools, working with eight different techniques on five application domains. Nearly 49% of the tools work on Java programs and 37% support C and C++, while there is no support for many programming languages. A noteworthy point was the existence of 12 datasets related to source code similarity measurement and duplicate codes, of which only eight datasets were publicly accessible. The lack of reliable datasets, empirical evaluations, hybrid methods, and focuses on multi-paradigm languages are the main challenges in the field. Emerging applications of code similarity measurement concentrate on the development phase in addition to the maintenance.& COPY; 2023 Elsevier Inc. All rights reserved.
引用
收藏
页数:33
相关论文
共 50 条
[31]   A systematic literature review of actionable alert identification techniques for automated static code analysis [J].
Heckman, Sarah ;
Williams, Laurie .
INFORMATION AND SOFTWARE TECHNOLOGY, 2011, 53 (04) :363-387
[32]   A Systematic Literature Review of Novelty Detection in Data Streams: Challenges and Opportunities [J].
Gaudreault, Jean-Gabriel ;
Branco, Paula .
ACM COMPUTING SURVEYS, 2024, 56 (10)
[33]   Data Mining Techniques in Intrusion Detection Systems: A Systematic Literature Review [J].
Salo, Fadi ;
Injadat, Mohammadnoor ;
Nassif, Ali Bou ;
Shami, Abdallah ;
Essex, Aleksander .
IEEE ACCESS, 2018, 6 :56046-56058
[34]   System dynamics applications in performance measurement research A systematic literature review [J].
Oladimeji, Olufunke Olufunmi ;
Keathley-Herring, Heather ;
Cross, Jennifer A. .
INTERNATIONAL JOURNAL OF PRODUCTIVITY AND PERFORMANCE MANAGEMENT, 2020, 69 (07) :1539-1576
[35]   A systematic literature review and taxonomy of modern code review [J].
Davila, Nicole ;
Nunes, Ingrid .
JOURNAL OF SYSTEMS AND SOFTWARE, 2021, 177
[36]   STUBBER: Compiling Source Code into Bytecode without Dependencies for Java']Java Code Clone Detection [J].
Schafer, Andre ;
Amme, Wolfram ;
Heinze, Thomas S. .
2021 IEEE 15TH INTERNATIONAL WORKSHOP ON SOFTWARE CLONES, IWSC 2021, 2021, :29-35
[37]   Systematic Mapping Study of Metrics based Clone Detection Techniques [J].
Rattan, Dhavleesh ;
Kaur, Jagdeep .
INTERNATIONAL CONFERENCE ON ADVANCES IN INFORMATION COMMUNICATION TECHNOLOGY & COMPUTING, 2016, 2016,
[38]   A systematic literature review on automated log abstraction techniques [J].
El-Masri, Diana ;
Petrillo, Fabio ;
Gueheneuc, Yann-Gael ;
Hamou-Lhadj, Abdelwahab ;
Bouziane, Anas .
INFORMATION AND SOFTWARE TECHNOLOGY, 2020, 122
[39]   Review of Code Similarity and Plagiarism Detection Research Studies [J].
Lee, Gunwoo ;
Kim, Jindae ;
Choi, Myung-seok ;
Jang, Rae-Young ;
Lee, Ryong .
APPLIED SCIENCES-BASEL, 2023, 13 (20)
[40]   Job recommender systems: a systematic literature review, applications, open issues, and challenges [J].
Ertugrul, Duygu Celik ;
Bitirim, Selin .
JOURNAL OF BIG DATA, 2025, 12 (01)