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 条
  • [31] An empirical study of game reviews on the Steam platform
    Lin, Dayi
    Bezemer, Cor-Paul
    Zou, Ying
    Hassan, Ahmed E.
    EMPIRICAL SOFTWARE ENGINEERING, 2019, 24 (01) : 170 - 207
  • [32] An empirical study of communication in code inspections
    Seaman, CB
    Basili, VR
    PROCEEDINGS OF THE 1997 INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, 1997, : 96 - 106
  • [33] An empirical study of game reviews on the Steam platform
    Dayi Lin
    Cor-Paul Bezemer
    Ying Zou
    Ahmed E. Hassan
    Empirical Software Engineering, 2019, 24 : 170 - 207
  • [34] Empirical measures of symmetry of market sentiments
    Moseki, K. K.
    Rao, K. S. Madhava
    COGENT ECONOMICS & FINANCE, 2018, 6 (01):
  • [35] Learn to Code Sustainably: An Empirical Study on Green Code Generation
    Vartziotis, Tina
    Dellatolas, Ippolyti
    Dasoulas, George
    Schmidt, Maximilian
    Schneider, Florian
    Hoffmann, Tim
    Kotsopoulos, Sotirios
    Keckeisen, Michael
    2024 INTERNATIONAL WORKSHOP ON LARGE LANGUAGE MODELS FOR CODE, LLM4CODE 2024, 2024, : 30 - 37
  • [36] Explaining Recommendations Based on Feature Sentiments in Product Reviews
    Chen, Li
    Wang, Feng
    IUI'17: PROCEEDINGS OF THE 22ND INTERNATIONAL CONFERENCE ON INTELLIGENT USER INTERFACES, 2017, : 17 - 28
  • [37] Manipulation of online reviews: An analysis of ratings, readability, and sentiments
    Hu, Nan
    Bose, Indranil
    Koh, Noi Sian
    Liu, Ling
    DECISION SUPPORT SYSTEMS, 2012, 52 (03) : 674 - 684
  • [38] An empirical study on inline impact factors of reviews usefulness based on movie reviews
    An Han
    Liu Hao
    Ren Jifan
    2016 13TH INTERNATIONAL CONFERENCE ON SERVICE SYSTEMS AND SERVICE MANAGEMENT, 2016,
  • [39] Online vs. Face-to-Face Pedagogical Code Reviews: An Empirical Comparison
    Hundhausen, Christopher
    Agarwal, Pawan
    Trevisan, Michael
    SIGCSE 11: PROCEEDINGS OF THE 42ND ACM TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION, 2011, : 117 - 122
  • [40] Collaborations and Code Reviews
    Carver, Jeffrey C.
    Caglayan, Bora
    Habayeb, Mayy
    Penzenstadler, Birgit
    Yamashita, Aiko
    IEEE SOFTWARE, 2015, 32 (05) : 27 - 29