Content area

Abstract

Code review is a critical process in software development, contributing to the overall quality of the product by identifying errors early. A key aspect of this process is the selection of appropriate reviewers to scrutinize changes made to source code. However, in large-scale open-source projects, selecting the most suitable reviewers for a specific change can be a challenging task. To address this, we introduce the Code Context Based Reviewer Recommendation (CCB-RR), a model that leverages information from changesets to recommend the most suitable reviewers. The model takes into consideration the paths of modified files and the context derived from the changesets, including their titles and descriptions. Additionally, CCB-RR employs KeyBERT to extract the most relevant keywords and compare the semantic similarity across changesets. The model integrates the paths of modified files, keyword information, and the context of code changes to form a comprehensive picture of the changeset. We conducted extensive experiments on four open-source projects, demonstrating the effectiveness of CCB-RR. The model achieved a Top-1 accuracy of 60%, 55%, 51%, and 45% on the Android, OpenStack, QT, and LibreOffice projects respectively. For Mean Reciprocal Rank (MRR), CCB achieved 71%, 62%, 52%, and 68% on the same projects respectively, thereby highlighting its potential for practical application in code reviewer recommendation.

Details

Title
Code context-based reviewer recommendation
Author
Yuan, Dawei 1 ; Peng, Xiao 1 ; Chen, Zijie 1 ; Zhang, Tao 1 ; Lei, Ruijia 2 

 Macau University of Science and Technology, School of Computer Science and Engineering, Macao, China (GRID:grid.259384.1) (ISNI:0000 0000 8945 4455) 
 University of Amsterdam, Faculty of Science, Amsterdam, Netherlands (GRID:grid.7177.6) (ISNI:0000 0000 8499 2262) 
Publication title
Volume
19
Issue
1
Pages
191202
Publication year
2025
Publication date
Jan 2025
Publisher
Springer Nature B.V.
Place of publication
Heidelberg
Country of publication
Netherlands
Publication subject
ISSN
20952228
e-ISSN
20952236
Source type
Scholarly Journal
Language of publication
English
Document type
Journal Article
Publication history
 
 
Online publication date
2024-11-11
Milestone dates
2023-11-09 (Registration); 2023-03-28 (Received); 2023-10-13 (Accepted)
Publication history
 
 
   First posting date
11 Nov 2024
ProQuest document ID
3126807446
Document URL
https://www.proquest.com/scholarly-journals/code-context-based-reviewer-recommendation/docview/3126807446/se-2?accountid=208611
Copyright
© Higher Education Press 2025.
Last updated
2024-11-18
Database
ProQuest One Academic