Automatic code review by learning the revision of source code

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...

Full description

Saved in:
Bibliographic Details
Main Authors: SHI, Shu-Ting, LI, Ming, LO, David, THUNG, Ferdian, HUO, Xuan
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2019
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/4483
https://ink.library.smu.edu.sg/context/sis_research/article/5486/viewcontent/4420_Article_Text_7459_1_10_20190706.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-5486
record_format dspace
spelling sg-smu-ink.sis_research-54862019-12-19T06:57:05Z Automatic code review by learning the revision of source code SHI, Shu-Ting LI, Ming LO, David THUNG, Ferdian HUO, Xuan 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. 2019-02-01T08:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/4483 info:doi/10.1609/aaai.v33i01.33014910 https://ink.library.smu.edu.sg/context/sis_research/article/5486/viewcontent/4420_Article_Text_7459_1_10_20190706.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Programming Languages and Compilers Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic Programming Languages and Compilers
Software Engineering
spellingShingle Programming Languages and Compilers
Software Engineering
SHI, Shu-Ting
LI, Ming
LO, David
THUNG, Ferdian
HUO, Xuan
Automatic code review by learning the revision of source code
description 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.
format text
author SHI, Shu-Ting
LI, Ming
LO, David
THUNG, Ferdian
HUO, Xuan
author_facet SHI, Shu-Ting
LI, Ming
LO, David
THUNG, Ferdian
HUO, Xuan
author_sort SHI, Shu-Ting
title Automatic code review by learning the revision of source code
title_short Automatic code review by learning the revision of source code
title_full Automatic code review by learning the revision of source code
title_fullStr Automatic code review by learning the revision of source code
title_full_unstemmed Automatic code review by learning the revision of source code
title_sort automatic code review by learning the revision of source code
publisher Institutional Knowledge at Singapore Management University
publishDate 2019
url https://ink.library.smu.edu.sg/sis_research/4483
https://ink.library.smu.edu.sg/context/sis_research/article/5486/viewcontent/4420_Article_Text_7459_1_10_20190706.pdf
_version_ 1770574872077926400