arrow
返回

Deep Just-In-Time Defect Localization

delete2021-01-01
delete7
delete
OA
AI
F
Fangcheng Qiu
Z
Zhipeng Gao
X
Xin Xia *
D
David Lo
J
John Grundy
王
王新宇 (Xinyu Wang) *
DOI:10.1109/TSE.2021.3135875delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
During software development and maintenance, defect localization is an essential part of software quality assurance. Even though different techniques have been proposed for defect localization, i.e., information retrieval (IR)-based techniques and spectrum-based techniques, they can only work after the defect has been exposed, which can be too late and costly to adapt to the newly introduced bugs in the daily development. There are also many JIT defect prediction tools that have been proposed to predict the buggy commit. But these tools do not locate the suspicious buggy positions in the buggy commit. To assist developers to detect bugs in time and avoid introducing them, just-in-time (JIT) bug localization techniques have been proposed, which is targeting to locate suspicious buggy code after a change commit has been submitted. In this paper, we propose a novel JIT defect localization approach, named DeepDL (Deep Learning-based defect localization), to locate defect code lines within a defect introducing change. DeepDL employs a neural language model to capture the semantics of the code lines, in this way, the naturalness of each code line can be learned and converted to a suspiciousness score. The core of our DeepDL is a deep learning-based neural language model. We train the neural language model with previous snapshots (history versions) of a project so that it can calculate the naturalness of a piece of code. In its application, for a given new code change, DeepDL automatically assigns a suspiciousness score to each code line and sorts these code lines in descending order of this score. The code lines at the top of the list are considered as potential defect locations. Our tool can assist developers efficiently check buggy lines at an early stage, which is able to reduce the risk of introducing bugs in time and improve the developers' confidence in the reliability of their software. We conducted an extensive experiment on 14 open source Java projects with a total of 11,615 buggy changes. We evaluate the experimental results considering four evaluation metrics. The experimental results show that our method outperforms the state-of-the-art by a substantial margin.
Keyword:
Defect localization
just-in-time
software naturalness
deep learning

期刊

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

机构

M
Monash University
学者数:
5.4W
论文数: 5.4W
被引数: 79
H
huawei technologies
学者数:
3.3K
论文数: 2.9K
被引数: 1
S
Singapore Management University
学者数:
1.5K
论文数: 2.5K
被引数: 3.5K
Z
zhejiang university
学者数:
17.7W
论文数: 12.1W
被引数: 152
学者 查看更多机构
引用论文

引用论文

err分享
err收藏
Thermodynamics study on the generation of electricity via CO2-mineralization cell
err2015-08-23
err0
errOAAI
errHeping Xie; Wen Jiang; Yufei Wang; Tao Liu; Ruilin Wang; Bin Liang; Yang He; Jinlong Wang; Liang Tang; Jinwei Chen
err分享
err收藏
err
IF0
err
err0
errOAAI
err
err分享
err收藏
Evaluation of testicular germ cell tumor proliferation using DNA flow cytometry and nucleolar organizer silver staining
err2005-06-23
err0
errOAAI
errSoichiro Hasegawa; Kikuo Okamura; Toshio Shimoji; Koji Miyake; Yoshinori Yamakawa; Hirofumi Sakamoto
err分享
err收藏
err分享
err收藏
err分享
err收藏
A NEW ABSOLUTE FREQUENCY REFERENCE GRID IN THE 28 THz RANGE
err1981-12-01
err0
PREAI
errA. Clairon; A. Van Lerberghe; Ch. Bréant; Ch. Salomon; G. Camy; Ch. J. Bordé
err分享
err收藏
学者 查看更多内容