MULTICR: Predicting Merged and Abandoned Code Changes in Modern Code Review Using Multi-Objective Search

Author:

Chouchen Moataz1ORCID,Ouni Ali1ORCID,Mkaouer Mohamed Wiem2ORCID

Affiliation:

1. ETS Montreal, University of Quebec, Canada

2. University of Michigan-Flint, USA

Abstract

Modern Code Review (MCR) is an essential process in software development to ensure high-quality code. However, developers often spend considerable time reviewing code changes before being merged into the main code base. Previous studies attempted to predict whether a code change was going to be merged or abandoned soon after it was submitted to improve the code review process. However, these approaches require complex cost-sensitive learning, which makes their adoption challenging since it is difficult for developers to understand the main factors behind the models’ predictions. To address this issue, we introduce in this paper, MULTICR, a multi-objective search-based approach that uses Multi-Objective Genetic Programming (MOGP) to learn early code review prediction models as IF-THEN rules. MULTICR evolves predictive models while maximizing the accuracy of both merged and abandoned classes, eliminating the need for misclassification cost estimation. To evaluate MULTICR, we conducted an empirical study on 146,612 code reviews from Eclipse, LibreOffice, and Gerrithub. The obtained results show that MULTICR outperforms existing baselines in terms of Mathew correlation coefficient (MCC) and F1 scores while learning less complex models compared to decision trees. Our experiments showed also how MULTICR allows identifying the main factors related to abandoned code reviews as well as their associated thresholds, making it a promising approach for early code review prediction with notable performance and interoperability. Additionally, we qualitatively evaluate MULTICR by conducting a user study through semi-structured interviews involving 10 practitioners from different organizations. The obtained results indicate that 90% of the participants find that MULTICR is useful and can help them to improve the code review process. Additionally, the learned IF-THEN rules of MULTICR are transparent.

Publisher

Association for Computing Machinery (ACM)

Reference126 articles.

1. ___. 2024. MULTICR Replication Package: https://github.com/stilab-ets/multicr.

2. Hamad Alsawalqah, Hossam Faris, Ibrahim Aljarah, Loai Alnemer, and Nouh Alhindawi. 2017. Hybrid SMOTE-ensemble approach for software defect prediction. In Computer science on-line conference. Springer, 355–366.

3. Expectations, outcomes, and challenges of modern code review

4. Abdullateef O Balogun, Fatimah B Lafenwa-Balogun, Hammed A Mojeed, Victor E Adeyemo, Oluwatobi N Akande, Abimbola G Akintola, Amos O Bajeh, and Fatimah E Usman-Hamza. 2020. SMOTE-based homogeneous ensemble methods for software defect prediction. In International Conference on Computational Science and its Applications. Springer, 615–631.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3