Utilize este identificador para referenciar este registo: https://hdl.handle.net/1822/90292

TítuloFraming program repair as code completion
Autor(es)Ribeiro, Francisco
Abreu, Rui
Saraiva, João
Palavras-chaveprogram repair
code generation
code completion
Data2022
EditoraACM
CitaçãoRibeiro, F., Abreu, R., & Saraiva, J. (2022, May 19). Framing program repair as code completion. Proceedings of the Third International Workshop on Automated Program Repair. ACM. http://doi.org/10.1145/3524459.3527347
Resumo(s)Many techniques have contributed to the advancement of automated program repair, such as: generate and validate approaches, constraint-based solvers and even neural machine translation. Simultaneously, artificial intelligence has allowed the creation of general-purpose pre-trained models that support several downstream tasks. In this paper, we describe a technique that takes advantage of a generative model - CodeGPT - to automatically repair buggy programs by making use of its code completion capabilities. We also elaborate on where to perform code completion in a buggy line and how we circumvent the open-ended nature of code generation to appropriately fit the new code in the original program. Furthermore, we validate our approach on the ManySStuBs4j dataset containing real-world open-source projects and show that our tool is able to fix 1739 programs out of 6415 - a 27% repair rate. The repaired programs range from single-line changes to multiple line modifications. In fact, our technique is able to fix programs which were missing relatively complex expressions prior to being analyzed. In the end, we present case studies that showcase different scenarios our technique was able to handle.
TipoArtigo em ata de conferência
URIhttps://hdl.handle.net/1822/90292
ISBN9781450392853
DOI10.1145/3524459.3527347
Versão da editorahttps://dl.acm.org/doi/10.1145/3524459.3527347
Arbitragem científicayes
AcessoAcesso aberto
Aparece nas coleções:HASLab - Artigos em atas de conferências internacionais (texto completo)

Ficheiros deste registo:
Ficheiro Descrição TamanhoFormato 
3524459.3527347.pdf371,42 kBAdobe PDFVer/Abrir

Partilhe no FacebookPartilhe no TwitterPartilhe no DeliciousPartilhe no LinkedInPartilhe no DiggAdicionar ao Google BookmarksPartilhe no MySpacePartilhe no Orkut
Exporte no formato BibTex mendeley Exporte no formato Endnote Adicione ao seu ORCID