arrow
返回

Improving Cross-Language Code Clone Detection via Code Representation Learning and Graph Neural Networks

delete2023-11-01
delete3
PRE
AI
N
Nikita Mehrotra *
A
Akash Sharma
A
Anmol Jindal
R
Rahul Purandare *
DOI:10.1109/TSE.2023.3311796delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Code clone detection is an important aspect of software development and maintenance. The extensive research in this domain has helped reduce the complexity and increase the robustness of source code, thereby assisting bug detection tools. However, the majority of the clone detection literature is confined to a single language. With the increasing prevalence of cross-platform applications, functionality replication across multiple languages is common, resulting in code fragments having similar functionality but belonging to different languages. Since such clones are syntactically unrelated, single language clone detection tools are not applicable in their case. In this article, we propose a semi-supervised deep learning-based tool Rubhus, capable of detecting clones across different programming languages. Rubhus uses the control and data flow enriched abstract syntax trees (ASTs) of code fragments to leverage their syntactic and structural information and then applies graph neural networks (GNNs) to extract this information for the task of clone detection. We demonstrate the effectiveness of our proposed system through experiments conducted over datasets consisting of Java, C, and Python programs and evaluate its performance in terms of precision, recall, and F1 score. Our results indicate that Rubhus outperforms the state-of-the-art cross-language clone detection tools.
Keyword:
Codes
Cloning
Syntactics
Semantics
Java
Task analysis
Source coding
Program representation learning
cross-language code clone detection
graph-based neural networks
abstract syntax trees

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.8K
被引数:
1.1W

机构

University of Nebraska System 封面图
University of Nebraska System
学者数:
2.7W
论文数: 2.3W
被引数: 58
I
Indraprastha Institute of Information Technology Delhi
学者数:
933
论文数: 689
被引数: 558
引用论文

引用论文

Titanium ketimide complexes as α-olefin homo- and copolymerisation catalysts. X-ray diffraction structures of [TiCp′(NCtBu2)Cl2] (Cp′=Ind, Cp*)
err2004-01-01
err0
PREAI
errAlberto R. Dias; M. Teresa Duarte; Anabela C. Fernandes; Susete Fernandes; Maria M. Marques; Ana M. Martins; João F. da Silva; Sandra S. Rodrigues
err分享
err收藏
err分享
err收藏
Modeling Functional Similarity in Source Code With Graph-Based Siamese Networks
err2022-10-01
err17
errOAAI
errMehrotra, Nikita; Agarwal, Navdha; Gupta, Piyush; Anand, Saket; Lo, David; Purandare, Rahul
err分享
err收藏
Recombinase polymerase amplification in the molecular diagnosis of microbiological targets and its applications
err2022-06-01
err0
PREAI
errD.S. Mota; J.M. Guimarães; A.M.D. Gandarilla; J.C.B.S. Filho; W.R. Brito; L.A.M. Mariúba
err分享
err收藏
SequenceR: Sequence-to-Sequence Learning for End-to-End Program RepairSequenceR: 用于端到端程序修复的序列到序列学习
err2021-01-01
err217
errOAAI
errChen, Zimin; Kommrusch, Steve; Tufano, Michele; Pouchet, Louis-Noel; Poshyvanyk, Denys; Monperrus, Martin
err分享
err收藏
XCODE: Towards Cross-Language Code Representation with Large-Scale Pre-Training
err2022-04-09
err8
PREAI
errLin, Zehao; Li, Guodun; Zhang, Jingfeng; Deng, Yue; Zeng, Xiangji; Zhang, Yin; Wan, Yao
err分享
err收藏
学者 查看更多内容