An empirical study of sentiments in code reviews

被引:26
|
作者
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 条
  • [1] Characteristics of Useful Code Reviews: An Empirical Study at Microsoft
    Bosu, Amiangshu
    Greiler, Michaela
    Bird, Christian
    12TH WORKING CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2015), 2015, : 146 - 156
  • [2] Expressions of Sentiments during Code Reviews: Male vs. Female
    Paul, Rajshakhar
    Bosu, Amiangshu
    Sultana, Kazi Zakia
    2019 IEEE 26TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER), 2019, : 26 - 37
  • [3] Which bugs are missed in code reviews: An empirical study on SmartSHARK dataset
    Khoshnoud, Fatemeh
    Nasab, Ali Rezaei
    Toudeji, Zahra
    Sami, Ashkan
    2022 MINING SOFTWARE REPOSITORIES CONFERENCE (MSR 2022), 2022, : 137 - 141
  • [4] Integrating pedagogical code reviews into a CS 1 course: an empirical study
    School of Electrical Engineering and Computer Science, College of Education, Washington State University, Pullman, WA 99164, United States
    SIGCSE Bull. Inroads, 2009, 1 (291-295):
  • [5] An Empirical Study on Sentiments in Twitter Communities
    Alduaiji, Noha
    Datta, Amitava
    2018 18TH IEEE INTERNATIONAL CONFERENCE ON DATA MINING WORKSHOPS (ICDMW), 2018, : 1166 - 1172
  • [6] Code Reviews With Divergent Review Scores: An Empirical Study of the OpenStack and Qt Communities
    Hirao, Toshiki
    McIntosh, Shane
    Ihara, Akinori
    Matsumoto, Kenichi
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (01) : 69 - 81
  • [7] Sentiments Analysis in GitHub Repositories: An Empirical Study
    Yang, Bo
    Wei, Xinjie
    Liu, Chao
    2017 24TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE WORKSHOPS (APSECW), 2017, : 84 - 89
  • [8] Expressing Sentiments in Game Reviews
    Secui, Ana
    Sirbu, Maria-Dorinela
    Dascalu, Mihai
    Crossley, Scott
    Ruseti, Stefan
    Trausan-Matu, Stefan
    ARTIFICIAL INTELLIGENCE: METHODOLOGY, SYSTEMS, AND APPLICATIONS, AIMSA 2016, 2016, 9883 : 352 - 355
  • [9] The Impact of Design and Code Reviews on Software Quality: An Empirical Study Based on PSP Data
    Kemerer, Chris F.
    Paulk, Mark C.
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2009, 35 (04) : 534 - 550
  • [10] Empirical performance analysis of computer-supported code reviews
    Belli, F
    Crisan, R
    EIGHTH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING, PROCEEDINGS, 1997, : 245 - 255