Estimating the Potential of Program Repair Search Spaces with Commit Analysis

Khashayar Etemadi, Niloofar Tarighat, Siddharth Yadav, Matias Martinez, Martin Monperrus
7/14/2020
4 citations
cs.SE

Official code: ASSERT-KTH/LighteR (6 stars, Shell, last commit 2022-02-23).

Abstract

The most natural method for evaluating program repair systems is to run them on bug datasets, such as Defects4J. Yet, using this evaluation technique on arbitrary real-world programs requires heavy configuration.

Show full abstract

In this paper, we propose a purely static method to evaluate the potential of the search space of repair approaches. This new method enables researchers and practitioners to encode the search spaces of repair approaches and select potentially useful ones without struggling with tool configuration and execution. We encode the search spaces by specifying the repair strategies they employ. Next, we use the specifications to check whether past commits lie in repair search spaces. For a repair approach, including many human-written past commits in its search space indicates its potential to generate useful patches. We implement our evaluation method in LighteR. LighteR gets a Git repository and outputs a list of commits whose source code changes lie in repair search spaces. We run LighteR on 55,309 commits from the history of 72 Github repositories with and show that LighteR's precision and recall are 77% and 92%, respectively. Overall, our experiments show that our novel method is both lightweight and effective to study the search space of program repair approaches.

View on arXivView PDF

Code Implementations(1)

ASSERT-KTH/LighteROfficial100%

This repository includes some data about automatic repair tool pattern used in Github repositories

611Shell, PythonSep 25, 20194 years ago

Similar Papers

Cite this paper

@article{etemadi2020estimating,
  title  = {Estimating the Potential of Program Repair Search Spaces with Commit Analysis},
  author = {Khashayar Etemadi and Niloofar Tarighat and Siddharth Yadav and Matias Martinez and Martin Monperrus},
  year   = {2020},
  eprint = {2007.06986},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.06986}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2007.06986.svg)](https://codeofpaper.com/paper/2007.06986)

Discussion