bugbug icon indicating copy to clipboard operation
bugbug copied to clipboard

Automatic fix suggestion from past development history

Open marco-c opened this issue 3 years ago • 1 comments

Create a tool using rust-code-analysis and ML to find similar snippets of code and:

  • suggest fixes from past bug fixes to new patches (prevent reintroducing some bugs);
  • if the patch is a bug-fix, suggest applying the same fix to other code locations that exhibit the same bug (obvious example: often developers copy and paste code, with minor modifications. Then at some point a bug could be found in the original code (or the copied code) and fixed, but the fix will not be shared);
  • suggest similar past reviews (when we detect the patch is adding code that has been r-ed before, we can show the developer the previous r- explanation).

This is directly related with, and a follow-up to, risk analysis.

marco-c avatar Mar 22 '23 14:03 marco-c

Some relevant resources: https://github.com/EhsanMashhadi/MSR2021-ProgramRepair https://arxiv.org/pdf/2104.07896.pdf https://github.com/cedricrupb/nbfbaselines

marco-c avatar Apr 27 '23 15:04 marco-c