An empirical study of sentiments in code reviews

被引:31
|
作者
El Asri, Ikram [1 ]
Kerzazi, Noureddine [1 ]
Uddin, Gias [1 ]
Khomh, Foutse [1 ]
Idrissi, M. A. Janati [1 ]
机构
[1] Mohammed V Univ Rabat Morocco, ENSIAS, Polytech Montreal, Montreal, PQ, Canada
关键词
Empirical software engineering; Code review; Sentiment analysis; Opinion mining; Affective analysis; Propensity score matching;
D O I
10.1016/j.infsof.2019.06.005
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context Modern code reviews are supported by tools to enhance developers' interactions allowing contributors to submit their opinions for each committed change in form of comments. Although the comments are aimed at discussing potential technical issues, the text might enclose harmful sentiments that could erode the benefits of suggested changes. Objective: In this paper, we study empirically the impact of sentiment embodied within developers' comments on the time and outcome of the code review process. Method: Based on historical data of four long-lived Open Source Software (OSS) projects from a code review system we investigate whether perceived sentiments have any impact on the interval time of code changes acceptance. Results: We found that (1) contributors frequently express positive and negative sentiments during code review activities; (2) the expressed sentiments differ among the contributors depending on their position within the social network of the reviewers (e.g., core vs peripheral contributors); (3) the sentiments expressed by contributors tend to be neutral as they progress from the status of newcomer in an OSS project to the status of core team contributors; (4) the reviews with negative comments on average took more time to complete than the reviews with positive/neutral comments, and (5) the reviews with controversial comments took significantly longer time in one project. Conclusion: Through this work, we provide evidences that text-based sentiments have an impact on the duration of the code review process as well as the acceptance or rejection of the suggested changes.
引用
收藏
页码:37 / 54
页数:18
相关论文
共 50 条
  • [41] Code Reviews, Software Inspections, and Code Walkthroughs: Systematic Mapping Study of Research Topics
    Fronza, Ilenia
    Hellas, Arto
    Ihantola, Petri
    Mikkonen, Tommi
    SOFTWARE QUALITY: QUALITY INTELLIGENCE IN SOFTWARE AND SYSTEMS ENGINEERING, 2020, 371 : 121 - 133
  • [42] Demystifying code snippets in code reviews: a study of the OpenStack and Qt communities and a practitioner survey
    Zhang, Beiqi
    Fu, Liming
    Liang, Peng
    Yu, Jiaxin
    Wang, Chong
    EMPIRICAL SOFTWARE ENGINEERING, 2024, 29 (04)
  • [43] Examining Topics and Sentiments of Chronic Disease Patients’Online Reviews — Case Study of“Sweet Homeland”
    Yu J.
    Zhao D.
    Liu R.
    Data Analysis and Knowledge Discovery, 2023, 7 (10) : 95 - 108
  • [44] An Empirical Study on Effects of Code Visibility on Code Coverage of Software Testing
    Ma, Lei
    Zhang, Cheng
    Yu, Bing
    Sato, Hiroyuki
    10TH INTERNATIONAL WORKSHOP ON AUTOMATION OF SOFTWARE TEST AST 2015, 2015, : 80 - 84
  • [45] An Empirical Study of Unsupervised Sentiment Classification of Chinese Reviews
    翟忠武
    徐华
    贾培发
    Tsinghua Science and Technology, 2010, 15 (06) : 702 - 708
  • [46] An empirical study of unsupervised sentiment classification of chinese reviews
    Zhai Z.
    Xu H.
    Jia P.
    Tsinghua Science and Technology, 2010, 15 (06) : 702 - 708
  • [47] In Search of Plagiarism Behaviors: An Empirical Study of Online Reviews
    Bao, Zhuolan
    Chau, Michael
    INTELLIGENCE AND SECURITY INFORMATICS, PAISI 2015, 2015, 9074 : 102 - 112
  • [48] Bug Replication in Code Clones: An Empirical Study
    Islam, Judith F.
    Mondal, Manishankar
    Roy, Chanchal K.
    2016 IEEE 23RD INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), VOL 1, 2016, : 68 - 78
  • [49] The Importance of being Isolated An Empirical Study on Chromium Reviews
    Datta, Subhajit
    Bhatt, Devarshi
    Jain, Manish
    Sarkar, Proshanta
    Sarkar, Santonu
    2015 ACM/IEEE INTERNATIONAL SYMPOSIUM ON EMPIRICAL SOFTWARE ENGINEERING AND MEASUREMENT (ESEM), 2015, : 78 - 81
  • [50] The Scent of Deep Learning Code: An Empirical Study
    Jebnoun, Hadhemi
    Ben Braiek, Houssem
    Rahman, Mohammad Masudur
    Khomh, Foutse
    2020 IEEE/ACM 17TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES, MSR, 2020, : 420 - 430