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 条
  • [21] Understanding Code Snippets in Code Reviews: A Preliminary Study of the OpenStack Community
    Fu, Liming
    Liang, Peng
    Zhang, Beiqi
    30TH IEEE/ACM INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC 2022), 2022, : 152 - 156
  • [22] An Empirical Study on the Differences between Online Picture Reviews and Text Reviews
    Luo, Hanyang
    Zhou, Wanhua
    Song, Wugang
    He, Xiaofu
    INFORMATION, 2022, 13 (07)
  • [23] Empirical Study of Transformers for Source Code
    Chirkova, Nadezhda
    Troshin, Sergey
    PROCEEDINGS OF THE 29TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '21), 2021, : 703 - 715
  • [24] An empirical study of commutativity in application code
    Wu, P
    Fekete, A
    SEVENTH INTERNATIONAL DATABASE ENGINEERING AND APPLICATIONS SYMPOSIUM, PROCEEDINGS, 2003, : 361 - 369
  • [25] Comprehending Test Code: An Empirical Study
    Yu, Chak Shun
    Treude, Christoph
    Aniche, Mauricio
    2019 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2019), 2019, : 501 - 512
  • [26] An Empirical Study on Code Comment Completion
    Mastropaolo, Antonio
    Aghajani, Emad
    Pascarella, Luca
    Bavota, Gabriele
    2021 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2021), 2021, : 159 - 170
  • [27] An Empirical Study of Bugs in Test Code
    Vahabzadeh, Arash
    Fard, Amin Milani
    Mesbah, Ali
    2015 31ST INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME) PROCEEDINGS, 2015, : 101 - 110
  • [28] An empirical study of commutativity in application code
    Wu, P
    Fekete, A
    SEVENTH INTERNATIONAL DATABASE ENGINEERING AND APPLICATIONS SYMPOSIUM, PROCEEDINGS, 2003, : 358 - 360
  • [29] Code Readability Testing, an Empirical Study
    Sedano, Todd
    2016 IEEE 29TH CONFERENCE ON SOFTWARE ENGINEERING EDUCATION AND TRAINING (CSEE&T), 2016, : 111 - 117
  • [30] An Empirical Study of Thresholds for Code Measures
    Lavazza, Luigi
    Morasca, Sandro
    2020 IEEE 31ST INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING (ISSRE 2020), 2020, : 346 - 357