ACoRA – A Platform for Automating Code Review Tasks

Background: Modern Code Reviews (MCR) are frequently adopted when assuring code and design quality in continuous integration and deployment projects. Although tiresome, they serve a secondary purpose of learning about the software product. Aim: Our objective is to design and evaluate a support tool...

Full description

Saved in:
Bibliographic Details
Published inE-informatica : software engineering journal Vol. 19; no. 1
Main Authors Ochodek, M., Staron, Miroslaw
Format Journal Article
LanguageEnglish
Published Wroclaw University of Science and Technology 01.01.2025
Subjects
Online AccessGet full text
ISSN1897-7979
2084-4840
2084-4840
DOI10.37190/e-Inf250102

Cover

Abstract Background: Modern Code Reviews (MCR) are frequently adopted when assuring code and design quality in continuous integration and deployment projects. Although tiresome, they serve a secondary purpose of learning about the software product. Aim: Our objective is to design and evaluate a support tool to help software developers focus on the most important code fragments to review and provide them with suggestions on what should be reviewed in this code. Method: We used design science research to develop and evaluate a tool for automating code reviews by providing recommendations for code reviewers. The tool is based on Transformer-based machine learning models for natural language processing, applied to both programming language code (patch content) and the review comments. We evaluate both the ability of the language model to match similar lines and the ability to correctly indicate the nature of the potential problems encoded in a set of categories. We evaluated the tool on two open-source projects and one industry project. Results: The proposed tool was able to correctly annotate (only true positives) 35%–41% and partially correctly annotate 76%–84% of code fragments to be reviewed with labels corresponding to different aspects of code the reviewer should focus on. Conclusion: By comparing our study to similar solutions, we conclude that indicating lines to be reviewed and suggesting the nature of the potential problems in the code allows us to achieve higher accuracy than suggesting entire changes in the code considered in other studies. Also, we have found that the differences depend more on the consistency of commenting rather than on the ability of the model to find similar lines.
AbstractList Background: Modern Code Reviews (MCR) are frequently adopted when assuring code and design quality in continuous integration and deployment projects. Although tiresome, they serve a secondary purpose of learning about the software product. Aim: Our objective is to design and evaluate a support tool to help software developers focus on the most important code fragments to review and provide them with suggestions on what should be reviewed in this code. Method: We used design science research to develop and evaluate a tool for automating code reviews by providing recommendations for code reviewers. The tool is based on Transformer-based machine learning models for natural language processing, applied to both programming language code (patch content) and the review comments. We evaluate both the ability of the language model to match similar lines and the ability to correctly indicate the nature of the potential problems encoded in a set of categories. We evaluated the tool on two open-source projects and one industry project. Results: The proposed tool was able to correctly annotate (only true positives) 35%--41% and partially correctly annotate 76%--84% of code fragments to be reviewed with labels corresponding to different aspects of code the reviewer should focus on. Conclusion: By comparing our study to similar solutions, we conclude that indicating lines to be reviewed and suggesting the nature of the potential problems in the code allows us to achieve higher accuracy than suggesting entire changes in the code considered in other studies. Also, we have found that the differences depend more on the consistency of commenting rather than on the ability of the model to find similar lines.
Author Staron, Miroslaw
Ochodek, M.
Author_xml – sequence: 1
  givenname: M.
  surname: Ochodek
  fullname: Ochodek, M.
  organization: Poznan University of Technology
– sequence: 2
  givenname: Miroslaw
  surname: Staron
  fullname: Staron, Miroslaw
  organization: Chalmers University of Technology
BackLink https://research.chalmers.se/publication/543362$$DView record from Swedish Publication Index
BookMark eNpVkN1KxDAQhYMouK575wP0BaqTNGmSy7L4syAo_lyHaTpZq912abou3vkOvqFPYnFV8FzMgcPhGzhHbL_tWmLshMNpprmFM0oXbRAKOIg9NhFgZCqNhH024cbqVFttD9ksxmcYldmcKzNhqph3d0Xy-f6RFMltg0Po-lUynqTYDN0Kh7pdJvOuouSOXmvaJg8YX-IxOwjYRJr9-JQ9Xpw_zK_S65vLxby4Tr3kMKS5Eh6E1UIREpUV9zlBFUqSHlSONleSeJCGjBU-ICgO2gNl3OalBwPZlC123KrDZ7fu6xX2b67D2n0HXb902A-1b8iJTGSeSs0rNFJogzJUI8tnxL0SWoysdMfatGt822LT_AE5uO8JHbn6d8Kxf7_rxy2tN-W_7z1Fwt4_Of-EzYr66CI5Iy3PhfFOmEo7GaxxJZeVQ2-9ULkVWoXsC4cKgT4
ContentType Journal Article
DBID ABBSD
ADTPV
AOWAS
D8T
F1S
ZZAVC
ADTOC
UNPAY
DOA
DOI 10.37190/e-Inf250102
DatabaseName SWEPUB Chalmers tekniska högskola full text
SwePub
SwePub Articles
SWEPUB Freely available online
SWEPUB Chalmers tekniska högskola
SwePub Articles full text
Unpaywall for CDI: Periodical Content
Unpaywall
DOAJ Directory of Open Access Journals
DatabaseTitleList

Database_xml – sequence: 1
  dbid: DOA
  name: DOAJ Directory of Open Access Journals
  url: https://www.doaj.org/
  sourceTypes: Open Website
– sequence: 2
  dbid: UNPAY
  name: Unpaywall
  url: https://proxy.k.utb.cz/login?url=https://unpaywall.org/
  sourceTypes: Open Access Repository
DeliveryMethod fulltext_linktorsrc
Discipline Computer Science
EISSN 2084-4840
ExternalDocumentID oai_doaj_org_article_2323ceb71da84278a4fdc0ec3e1c5272
10.37190/e-inf250102
oai_research_chalmers_se_8491628c_28d7_4f98_b14d_ac9c2569275f
GroupedDBID .4S
AAKPC
ABBSD
ADBBV
ADTPV
ALMA_UNASSIGNED_HOLDINGS
AOWAS
ARCSS
BCNDV
C1A
D8T
E3Z
EDO
EOJEC
F1S
GROUPED_DOAJ
IPNFZ
ITG
ITH
KQ8
OBODZ
OK1
RIG
RNS
TUS
Y2W
ZZAVC
ADTOC
UNPAY
ID FETCH-LOGICAL-c410t-652c029725eaeebd1c6e0dfbe4c056a9654e1f48e892cfa05107c0e3196bc0803
IEDL.DBID DOA
ISSN 1897-7979
2084-4840
IngestDate Fri Oct 03 12:44:20 EDT 2025
Wed Oct 29 12:13:21 EDT 2025
Fri Sep 19 03:10:30 EDT 2025
IsDoiOpenAccess true
IsOpenAccess true
IsPeerReviewed true
IsScholarly true
Issue 1
Language English
License cc-by
LinkModel DirectLink
MergedId FETCHMERGED-LOGICAL-c410t-652c029725eaeebd1c6e0dfbe4c056a9654e1f48e892cfa05107c0e3196bc0803
OpenAccessLink https://doaj.org/article/2323ceb71da84278a4fdc0ec3e1c5272
ParticipantIDs doaj_primary_oai_doaj_org_article_2323ceb71da84278a4fdc0ec3e1c5272
unpaywall_primary_10_37190_e_inf250102
swepub_primary_oai_research_chalmers_se_8491628c_28d7_4f98_b14d_ac9c2569275f
PublicationCentury 2000
PublicationDate 2025-01-01
PublicationDateYYYYMMDD 2025-01-01
PublicationDate_xml – month: 01
  year: 2025
  text: 2025-01-01
  day: 01
PublicationDecade 2020
PublicationTitle E-informatica : software engineering journal
PublicationYear 2025
Publisher Wroclaw University of Science and Technology
Publisher_xml – name: Wroclaw University of Science and Technology
SSID ssj0000396158
ssib020753908
Score 2.2880943
Snippet Background: Modern Code Reviews (MCR) are frequently adopted when assuring code and design quality in continuous integration and deployment projects. Although...
SourceID doaj
unpaywall
swepub
SourceType Open Website
Open Access Repository
SubjectTerms BERT
Code Reviews
Continous Integration
Machine Learning
SummonAdditionalLinks – databaseName: Unpaywall
  dbid: UNPAY
  link: http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwjV3LatwwFL2EyaLtoumTTPpAi9Kd0rEsWfLSmTaE0oZQMpCuhHR13UAGT-h4KM0q_5A_7JdEsj1DSqB044WxZHMf6Fxf6RyAd2hCiIVyybUvci5VKLlXwXDtKJByAQuVzjt_PS6OZvLzmTrbgrXg3Z32fa7jWvWBeDR0XKazRBi5XagIuEewPTs-qb6nUsqUmuuyY9QTEyO5jPVKv7393vCBlH9DCfoIHqyaS_f7l5vP7ywphzvwcX0wp99JcrG_av0-Xt3nafzX1z6BxwOkZFUfA09hi5pnsLOWa2BD9j4HVU0X3yr25_qGVexk7tqEV1m8sGrVLhJybX6w6SIQ6xsG7NQtL5YvYHb46XR6xAfVBI4ym7S8UAKTIpVQ5Ih8yLCgSag9SYxgx5WFkpTV0pApBdYuJaXGCaVU9Il2PH8Jo2bR0C6wPHUVAwajVCFrQmekz1A7l5va5VKP4SCZ1F72xBg2UVV3N6JR7BD5NkK2HMnrLMThQhsn6xDfhzllqIQWY_jSO-SvaQaqo3OL552OzNIuyRoZwawwaIUJ2sq6NNZnMliHJUboVgqt6jG837h1M2OsdDoHWbIbB-3974Ov4KFIor_df5fXMGp_ruhNRCKtfztE4i1dItiT
  priority: 102
  providerName: Unpaywall
Title ACoRA – A Platform for Automating Code Review Tasks
URI https://research.chalmers.se/publication/543362
http://doi.org/10.37190/e-inf250102
https://doaj.org/article/2323ceb71da84278a4fdc0ec3e1c5272
UnpaywallVersion publishedVersion
Volume 19
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
journalDatabaseRights – providerCode: PRVAFT
  databaseName: Open Access Digital Library
  customDbUrl:
  eissn: 2084-4840
  dateEnd: 99991231
  omitProxy: true
  ssIdentifier: ssj0000396158
  issn: 1897-7979
  databaseCode: KQ8
  dateStart: 20070101
  isFulltext: true
  titleUrlDefault: http://grweb.coalliance.org/oadl/oadl.html
  providerName: Colorado Alliance of Research Libraries
– providerCode: PRVAON
  databaseName: DOAJ Directory of Open Access Journals
  customDbUrl:
  eissn: 2084-4840
  dateEnd: 99991231
  omitProxy: true
  ssIdentifier: ssj0000396158
  issn: 1897-7979
  databaseCode: DOA
  dateStart: 20070101
  isFulltext: true
  titleUrlDefault: https://www.doaj.org/
  providerName: Directory of Open Access Journals
link http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwrV1Nb9QwELVQewAOfCO2hcoHxM1q4o_YPqarVgVBVaGuVE6WPR5TxCpbsVkh_n3tJF0tJy5ccsjBsmY8njdj-z1C3oOJMRfKlunQCCZVtCyoaJj2GFH5CI0q752_XDTnC_npWl3vSH2VO2EjPfBouOOc8QVg0HX0pshCeJkiVAgCa1BcD7tvZexOMZVXEs-JMBfzZtttqYTNqXt4F2esZtpqO96CFzpnxGNkH7uUwUBduisDd_-WOfQxebjpbv2f33653Mk8Z8_Ikwky0nac6nPyALsX5Om9HAOdovMlEe189bWljLb0cun7gkZp_tB2068KLu2-0_kqIh2PA-iVX_9cvyKLs9Or-TmbNBEYyLrqWaM4FL0prtAjhlhDg1VMASVkKONtoyTWSRo0lkPyJeR0NlcJtFBIxcVrstetOnxDqChnhhGiUaqRCSHbN9SgvRcmeSH1jJwUS7jbkfbCFSLq4Ud2j5vc4_7lnhn5PNrxr2EmIqMbBzeDSszardEZmaEqN-C4idrJZI0LtYzOg4UMzCzXKs3Ih603tiPmOmZwo0P3496NB_9j8ofkES9yv0PH5S3Z639t8F3GIH04GpbbEdlfXFy23-4AuInXWA
linkProvider Directory of Open Access Journals
linkToUnpaywall http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwjV3LatwwFL2EyaLtoumTTPpAi9Kd0rEsWfLSmTaE0oZQMpCuhHR13UAGT-h4KM0q_5A_7JdEsj1DSqB044WxZHMf6Fxf6RyAd2hCiIVyybUvci5VKLlXwXDtKJByAQuVzjt_PS6OZvLzmTrbgrXg3Z32fa7jWvWBeDR0XKazRBi5XagIuEewPTs-qb6nUsqUmuuyY9QTEyO5jPVKv7393vCBlH9DCfoIHqyaS_f7l5vP7ywphzvwcX0wp99JcrG_av0-Xt3nafzX1z6BxwOkZFUfA09hi5pnsLOWa2BD9j4HVU0X3yr25_qGVexk7tqEV1m8sGrVLhJybX6w6SIQ6xsG7NQtL5YvYHb46XR6xAfVBI4ym7S8UAKTIpVQ5Ih8yLCgSag9SYxgx5WFkpTV0pApBdYuJaXGCaVU9Il2PH8Jo2bR0C6wPHUVAwajVCFrQmekz1A7l5va5VKP4SCZ1F72xBg2UVV3N6JR7BD5NkK2HMnrLMThQhsn6xDfhzllqIQWY_jSO-SvaQaqo3OL552OzNIuyRoZwawwaIUJ2sq6NNZnMliHJUboVgqt6jG837h1M2OsdDoHWbIbB-3974Ov4KFIor_df5fXMGp_ruhNRCKtfztE4i1dItiT
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=ACoRA+%E2%80%93+A+Platform+for+Automating+Code+Review+Tasks&rft.jtitle=E-informatica+%3A+software+engineering+journal&rft.au=Ochodek%2C+M.&rft.au=Staron%2C+Miroslaw&rft.date=2025-01-01&rft.issn=1897-7979&rft.volume=19&rft.issue=1&rft_id=info:doi/10.37190%2Fe-Inf250102&rft.externalDocID=oai_research_chalmers_se_8491628c_28d7_4f98_b14d_ac9c2569275f
thumbnail_l http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/lc.gif&issn=1897-7979&client=summon
thumbnail_m http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/mc.gif&issn=1897-7979&client=summon
thumbnail_s http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/sc.gif&issn=1897-7979&client=summon