Mining StackOverflow for Program Repair

被引:0
|
作者
Liu, Xuliang [1 ]
Zhong, Hao [2 ]
机构
[1] Shanghai Jiao Tong Univ, Sch Software, Shanghai, Peoples R China
[2] Shanghai Jiao Tong Univ, Dept Comp Sci & Engn, Shanghai, Peoples R China
关键词
program repair; Stack Overflow; repair template; TOOL;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In recent years, automatic program repair has been a hot research topic in the software engineering community, and many approaches have been proposed. Although these approaches produce promising results, some researchers criticize that existing approaches are still limited in their repair capability, due to their limited repair templates. Indeed, it is quite difficult to design effective repair templates. An award-wining paper analyzes thousands of manual bug fixes, but summarizes only ten repair templates. Although more bugs are thus repaired, recent studies show such repair templates are still insufficient. We notice that programmers often refer to Stack Overflow, when they repair bugs. With years of accumulation, Stack Overflow has millions of posts that are potentially useful to repair many bugs. The observation motives our work towards mining repair templates from Stack Overflow. In this paper, we propose a novel approach, called SOFIX, that extracts code samples from Stack Overflow, and mines repair patterns from extracted code samples. Based on our mined repair patterns, we derived 13 repair templates. We implemented these repair templates in SOFIX, and conducted evaluations on the widely used benchmark, Defects4J. Our results show that SOFIX repaired 23 bugs, which are more than existing approaches. After comparing repaired bugs and templates, we find that SOFIX repaired more bugs, since it has more repair templates. In addition, our results also reveal the urgent need for better fault localization techniques.
引用
收藏
页码:118 / 129
页数:12
相关论文
共 50 条
  • [1] Mining People Analytics from StackOverflow Job Advertisements
    Papoutsoglou, Maria
    Mittas, Nikolaos
    Angelis, Lefteris
    2017 43RD EUROMICRO CONFERENCE ON SOFTWARE ENGINEERING AND ADVANCED APPLICATIONS (SEAA), 2017, : 108 - 115
  • [2] Mining StackOverflow to Filter out Off-topic IRC Discussion
    Chowdhury, Shaiful Alam
    Hindle, Abram
    12TH WORKING CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2015), 2015, : 422 - 425
  • [3] Mining Fix Patterns with Context Information for Automatic Program Repair
    Huyen, Phan Thi Thanh
    Yasuda, Kazuya
    Itoh, Shinji
    2023 IEEE/ACM INTERNATIONAL WORKSHOP ON AUTOMATED PROGRAM REPAIR, APR, 2023, : 1 - 8
  • [4] FixMiner: Mining relevant fix patterns for automated program repair
    Koyuncu, Anil
    Liu, Kui
    Bissyande, Tegawende F.
    Kim, Dongsun
    Klein, Jacques
    Monperrus, Martin
    Le Traon, Yves
    EMPIRICAL SOFTWARE ENGINEERING, 2020, 25 (03) : 1980 - 2024
  • [5] FixMiner: Mining relevant fix patterns for automated program repair
    Anil Koyuncu
    Kui Liu
    Tegawendé F. Bissyandé
    Dongsun Kim
    Jacques Klein
    Martin Monperrus
    Yves Le Traon
    Empirical Software Engineering, 2020, 25 : 1980 - 2024
  • [6] Association Rule Mining for Finding Usability Problem Patterns: A Case Study on StackOverflow
    Etemadi, Vahid
    Bushehrian, Omid
    Akbari, Reza
    2017 18TH CSI INTERNATIONAL SYMPOSIUM ON COMPUTER SCIENCE AND SOFTWARE ENGINEERING CONFERENCE (CSSE), 2017, : 24 - 29
  • [7] A proposed approach to determining expertise level of StackOverflow programmers based on mining of user comments
    Diyanati, Ahmad
    Sheykhahmadloo, Behrooz Shahi
    Fakhrahmad, Seyed Mostafa
    Sadredini, Mohammad Hadi
    Diyanati, Mohammad Hassan
    JOURNAL OF COMPUTER LANGUAGES, 2020, 61
  • [8] Mining software repair models for reasoning on the search space of automated program fixing
    Martinez, Matias
    Monperrus, Martin
    EMPIRICAL SOFTWARE ENGINEERING, 2015, 20 (01) : 176 - 205
  • [9] Mining software repair models for reasoning on the search space of automated program fixing
    Matias Martinez
    Martin Monperrus
    Empirical Software Engineering, 2015, 20 : 176 - 205
  • [10] STACKOVERFLOW DATAWAREHOUSE SYSTEM
    Khan, Shafaq
    Jafari, Seyede Sanaz Jedari
    Anand, Neha
    Wang, Xinyu
    Shankar, Yugapriya
    8TH INTERNATIONAL CONFERENCE ON INFORMATION SYSTEMS ENGINEERING, ICISE 2023, 2023, : 108 - 115