Automatic Code Review by Learning the Revision of Source Code

被引:0
|
作者
Shi, Shu-Ting [1 ]
Li, Ming [1 ,2 ]
Lo, David [3 ]
Thung, Ferdian [3 ]
Huo, Xuan [1 ]
机构
[1] Nanjing Univ, Natl Key Lab Novel Software Technol, Nanjing, Jiangsu, Peoples R China
[2] Nanjing Univ, Collaborat Innovat Ctr Novel Software Technol & I, Nanjing, Jiangsu, Peoples R China
[3] Singapore Management Univ, Sch Informat Syst, Singapore, Singapore
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Code review is the process of manual inspection on the revision of the source code in order to find out whether the revised source code eventually meets the revision requirements. However, manual code review is time-consuming, and automating such the code review process will alleviate the burden of code reviewers and speed up the software maintenance process. To construct the model for automatic code review, the characteristics of the revisions of source code (i.e., the difference between the two pieces of source code) should be properly captured and modeled. Unfortunately, most of the existing techniques can easily model the overall correlation between two pieces of source code, but not for the "difference" between two pieces of source code. In this paper, we propose a novel deep model named DACE for automatic code review. Such a model is able to learn revision features by contrasting the revised hunks from the original and revised source code with respect to the code context containing the hunks. Experimental results on six open source software projects indicate by learning the revision features, DACE can outperform the competing approaches in automatic code review.
引用
收藏
页码:4910 / 4917
页数:8
相关论文
共 50 条
  • [1] A review of automatic source code summarization
    Zhang, Xuejun
    Hou, Xia
    Qiao, Xiuming
    Song, Wenfeng
    [J]. Empirical Software Engineering, 2024, 29 (06)
  • [2] Automatic Code Review by Learning the Structure Information of Code Graph
    Yin, Ying
    Zhao, Yuhai
    Sun, Yiming
    Chen, Chen
    [J]. SENSORS, 2023, 23 (05)
  • [3] Automatic verification of object code against source code
    Subramanian, S
    Cook, JV
    [J]. COMPASS '96 - PROCEEDINGS OF THE ELEVENTH ANNUAL CONFERENCE ON COMPUTER ASSURANCE: SYSTEMS INTEGRITY, SOFTWARE SAFETY, PROCESS SECURITY, 1996, : 46 - 55
  • [4] A Survey on Source Code Review Using Machine Learning
    Wang Xiaomeng
    Zhang Tao
    Xin Wei
    Hou Changyu
    [J]. 2018 3RD INTERNATIONAL CONFERENCE ON INFORMATION SYSTEMS ENGINEERING (ICISE), 2018, : 56 - 60
  • [5] Learning to Align the Source Code to the Compiled Object Code
    Levy, Dor
    Wolf, Lior
    [J]. INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 70, 2017, 70
  • [6] Source Code Recommendation with Sequence Learning of Code Functions
    Saito, Erika
    Takano, Kosuke
    [J]. ADVANCED INFORMATION NETWORKING AND APPLICATIONS, AINA-2022, VOL 3, 2022, 451 : 314 - 323
  • [7] Automatic source code generation for microcontrollers
    Rozehnal, Z
    [J]. PROGRAMMABLE DEVICES AND SYSTEMS, 2000, : 195 - 197
  • [8] Automatic Source Code Plagiarism Detection
    Kustanto, Cynthia
    Liem, Inggriani
    [J]. SNPD 2009: 10TH ACIS INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ARTIFICIAL INTELLIGENCES, NETWORKING AND PARALLEL DISTRIBUTED COMPUTING, PROCEEDINGS, 2009, : 481 - 486
  • [9] A Survey of Automatic Source Code Summarization
    Zhang, Chunyan
    Wang, Junchao
    Zhou, Qinglei
    Xu, Ting
    Tang, Ke
    Gui, Hairen
    Liu, Fudong
    [J]. SYMMETRY-BASEL, 2022, 14 (03):
  • [10] Automatic Algorithm Recognition of Source-Code Using Machine Learning
    Shalaby, Maged
    Mehrez, Tarek
    El-Mougy, Amr
    Abdulnasser, Khalid
    Al-Safty, Aysha
    [J]. 2017 16TH IEEE INTERNATIONAL CONFERENCE ON MACHINE LEARNING AND APPLICATIONS (ICMLA), 2017, : 170 - 177