An empirical study of sentiments in code reviews

被引:34
作者
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
相关论文
共 62 条
[1]  
Ahmed T, 2017, IEEE INT CONF AUTOM, P106, DOI 10.1109/ASE.2017.8115623
[2]  
[Anonymous], 1977, EXPLORATORY DATA ANA
[3]  
[Anonymous], 2008, PROC 16 ACM SIGSOFT
[4]  
[Anonymous], 2012, SENTIMENT ANAL OPINI
[5]  
[Anonymous], 2008, INF RETRIEV
[6]  
Baysal O, 2013, WORK CONF REVERSE EN, P122, DOI 10.1109/WCRE.2013.6671287
[7]  
Beller Moritz, 2014, P 11 WORK C MIN SOFT, P202, DOI 10.1145/2597073.2597082
[8]  
Bo Pang, 2008, Foundations and Trends in Information Retrieval, V2, P1, DOI 10.1561/1500000001
[9]   An Evaluation of Classification Algorithms Using Mc Nemar's Test [J].
Bostanci, Betul ;
Bostanci, Erkan .
PROCEEDINGS OF SEVENTH INTERNATIONAL CONFERENCE ON BIO-INSPIRED COMPUTING: THEORIES AND APPLICATIONS (BIC-TA 2012), VOL 1, 2013, 201 :15-26
[10]  
Bosu Amiangshu, 2013, 2013 ACM / IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM), P133, DOI 10.1109/ESEM.2013.23