Expanding Fix Patterns to Enable Automatic Program Repair

Vesna Nowack 1
David Bowes 2
Steve Counsell 3
T. Hall 2
Saemundur Haraldsson 4
Emily Winter 2
John J. Woodward 1
Publication typeProceedings Article
Publication date2021-10-01
Abstract
Automatic Program Repair (APR) has been proposed to help developers and reduce the time spent repairing programs. Recent APR tools have applied learned templates (fix patterns) to fix code using knowledge from fixes successfully applied in the past. However, there is still no general agreement on the representation of fix patterns, making their application and comparison with a baseline difficult. As a consequence, it is also difficult to expand fix patterns and further enable APR. We automatically generate fix patterns from similar fixes and compare the generated fix patterns against a state-of-the-art taxonomy. Our automated approach splits fixes into smaller, method-level chunks and calculates their similarity. A threshold-based clustering algorithm groups similar chunks and finds matches with state-of-the-art fix patterns. In our evaluation, we present 33 clusters whose fix patterns were generated from the fixes of 835 Defects4J bugs. Of those 33 clusters, 22 matched a state-of-the-art taxonomy with good agreement. The remaining 11 clusters were thematically analysed and generated new fix patterns that expanded the taxonomy. Our new fix patterns should enable APR researchers and practitioners to expand their tools to fix a greater range of bugs in the future.
Found 
Found 

Top-30

Journals

1
International Journal of Software Engineering and Knowledge Engineering
1 publication, 20%
1

Publishers

1
2
Association for Computing Machinery (ACM)
2 publications, 40%
Institute of Electrical and Electronics Engineers (IEEE)
1 publication, 20%
World Scientific
1 publication, 20%
1
2
  • We do not take into account publications without a DOI.
  • Statistics recalculated weekly.

Are you a researcher?

Create a profile to get free access to personal recommendations for colleagues and new articles.
Metrics
5
Share