arrow
Return

Automatic Code Review by Learning the Structure Information of Code Graph

delete2023-02-24
delete2
delete
OA
AI
Y
Ying Yin
Y
Yuhai Zhao *
Y
Yiming Sun
C
Chen Chen
DOI:10.3390/s23052551delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
At present, the explosive growth of software code volume and quantity makes the code review process very labor-intensive and time-consuming. An automated code review model can assist in improving the efficiency of the process. Tufano et al., designed two automated tasks to help improve the efficiency of code review based on the deep learning approach, from two different perspectives, namely, the developer submitting the code and the code reviewer. However, they only used code sequence information and did not explore the logical structure information with a richer meaning of the code. To improve the learning of code structure information, a program dependency graph serialization algorithm PDG2Seq algorithm is proposed, which converts the program dependency graph into a unique graph code sequence in a lossless manner, while retaining the program structure information and semantic information. We then designed an automated code review model based on the pre-trained model CodeBERT architecture, which strengthens the learning of code information by fusing program structure information and code sequence information, and then fine-tuned the model according to the code review activity scene to complete the automatic modification of the code. To verify the efficiency of the algorithm, the two tasks in the experiment were compared with the best Algorithm 1-encoder/2-encoder. The experimental results show that the model we proposed has a significant improvement under the BLEU, Lewinshtein distance and ROUGE-L metrics.
Keywords:
code review
program dependency graph
deep learning
CodeBERT
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Sensors cover
Sensors
IF:
3.5
Papers:
7.2W
Citations:
20.9W

Organization

N
northeastern university - china
Scholars:
3.2W
Papers: 2.7W
Citations: 37
Cited Papers

Cited Papers

errShare
errSave
Recommending pull request reviewers based on code changes
err2021-01-09
err26
PREAI
errYe, Xin; Zheng, Yongjie; Aljedaani, Wajdi; Mkaouer, Mohamed Wiem
errShare
errSave
Moringa, a Novel Plant Rich in Antioxidants, Bioavailable Iron, and Nutrients
err2009-07-23
err0
PREAI
errRay-Yu Yang; Samson C. S. Tsou; Tung-Ching Lee; Leing-Chung Chang; George Kuo; Po-Yong Lai
errShare
errSave
What factors influence the reviewer assignment to pull requests?
err2018-06-01
err20
PREAI
errSoares, Daricelio M.; de Lima Junior, Manoel L.; Plastino, Alexandre; Murta, Leonardo
errShare
errSave
Early prediction of merged code changes to prioritize reviewing tasks
err2018-03-19
err51
errOAAI
errFan, Yuanrui; Xia, Xin; Lo, David; Li, Shanping
errShare
errSave
Local Anesthesia Reduces Pain Associated with Transrectal Prostatic Biopsy
err2005-04-06
err0
PREAI
errAlberto Trucchi; Cosimo De Nunzio; Simone Mariani; Giovanni Palleschi; Lucio Miano; Andrea Tubaro
errShare
errSave
Two years with extreme and little snowfall: effects on energy partitioning and surface energy exchange in a high-Arctic tundra ecosystem
err2016-07-08
err0
errOAAI
errChristian Stiegler; Magnus Lund; Torben Røjle Christensen; Mikhail Mastepanov; Anders Lindroth
errShare
errSave
Urologic abnormalities found with imperforate anus
err1983-03-01
err0
PREAI
errR. Munn; J.F. Schillinger
errShare
errSave
researcher View more