Extracting Concise Bug-Fixing Patches from Human-Written Patches in Version Control SystemsTechnical Track
Sat 29 May 2021 00:10 - 00:30 at Blended Sessions Room 4 - 4.2.4. Fault Localization #3
High-quality and large-scale repositories of real bugs and their concise patches collected from real-world applications are critical for research in the software engineering community. On one side, such real bugs may inspire novel approaches in finding, locating, and repairing software bugs. On the other side, such real bugs are indispensable for rigorous and meaningful evaluation of approaches in software testing, fault localization, and program repair. To this end, a number of such repositories, e.g., Defects4J, have been proposed. However, such repositories are rather small because their construction involves expensive human intervention. Although bug-fixing code commits as well as associated test cases could be retrieved from version control systems automatically, existing approaches could not yet automatically extract bug-fixing changes (i.e., patches) from code commits because bug-fixing commits often involve bug-irrelevant changes, e.g., refactorings. In this paper, we propose an automatic approach, called BugBuilder, to extracting real bugs and their concise patches from bug-fixing commits. It excludes refactorings by detecting refactorings involved in bug-fixing commits and reapplying detected refactorings on the faulty version. It generates potential patches by computing the changes between the revised faulty version and the fixed version and validates potential patches by test cases associated with the applications. Evaluation results on 809 real bug-fixing commits in Defects4J suggest that BugBuilder successfully generated complete and concise patches for forty percent of the bug-fixing commits, and its precision (99%) was even higher than human experts.
Fri 28 MayDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
11:30 - 12:30 | 4.2.4. Fault Localization #3SEIP - Software Engineering in Practice / Technical Track at Blended Sessions Room 4 +12h Chair(s): Mika Mäntylä University of Oulu | ||
11:30 20mPaper | An Empirical Study on Deployment Faults of Deep Learning Based Mobile ApplicationsTechnical Track Technical Track Zhenpeng Chen Peking University, China, Huihan Yao Peking University, Yiling Lou Peking University, Yanbin Cao Peking University, China, Yuanqiang Liu Peking University, China, Haoyu Wang Beijing University of Posts and Telecommunications, Xuanzhe Liu Peking University Pre-print Media Attached | ||
11:50 20mPaper | MicroHECL: High-Efficient Root Cause Localization in Large-Scale Microservice SystemsSEIP SEIP - Software Engineering in Practice Dewei Liu Fudan University, Chuan He Fudan University, Xin Peng Fudan University, China, Fan Lin Alibaba Group, Chenxi Zhang Fudan University, Shengfang Gong Alibaba Group, Ziang Li Alibaba Group, Jiayu Ou Alibaba Group, Zheshun Wu Alibaba Group Pre-print Media Attached | ||
12:10 20mPaper | Extracting Concise Bug-Fixing Patches from Human-Written Patches in Version Control SystemsTechnical Track Technical Track Yanjie Jiang Beijing Institute of Technology, Hui Liu Beijing Institute of Technology, Nan Niu University of Cincinnati, Lu Zhang Peking University, China, Yamin Hu Beijing Institute of Technology Pre-print Media Attached |
23:30 - 00:30 | 4.2.4. Fault Localization #3SEIP - Software Engineering in Practice / Technical Track at Blended Sessions Room 4 | ||
23:30 20mPaper | An Empirical Study on Deployment Faults of Deep Learning Based Mobile ApplicationsTechnical Track Technical Track Zhenpeng Chen Peking University, China, Huihan Yao Peking University, Yiling Lou Peking University, Yanbin Cao Peking University, China, Yuanqiang Liu Peking University, China, Haoyu Wang Beijing University of Posts and Telecommunications, Xuanzhe Liu Peking University Pre-print Media Attached | ||
23:50 20mPaper | MicroHECL: High-Efficient Root Cause Localization in Large-Scale Microservice SystemsSEIP SEIP - Software Engineering in Practice Dewei Liu Fudan University, Chuan He Fudan University, Xin Peng Fudan University, China, Fan Lin Alibaba Group, Chenxi Zhang Fudan University, Shengfang Gong Alibaba Group, Ziang Li Alibaba Group, Jiayu Ou Alibaba Group, Zheshun Wu Alibaba Group Pre-print Media Attached | ||
00:10 20mPaper | Extracting Concise Bug-Fixing Patches from Human-Written Patches in Version Control SystemsTechnical Track Technical Track Yanjie Jiang Beijing Institute of Technology, Hui Liu Beijing Institute of Technology, Nan Niu University of Cincinnati, Lu Zhang Peking University, China, Yamin Hu Beijing Institute of Technology Pre-print Media Attached |