Litcius/Paper detail

CommentFinder: a simpler, faster, more accurate code review comments recommendation

Yang Hong, Chakkrit Tantithamthavorn, Patanamon Thongtanunam, Aldeida Aleti

2022Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering49 citationsDOI

Abstract

Code review is an effective quality assurance practice, but can be labor-intensive since developers have to manually review the code and provide written feedback. Recently, a Deep Learning (DL)-based approach was introduced to automatically recommend code review comments based on changed methods. While the approach showed promising results, it requires expensive computational resource and time which limits its use in practice. To address this limitation, we propose CommentFinder – a retrieval-based approach to recommend code review comments. Through an empirical evaluation of 151,019 changed methods, we evaluate the effectiveness and efficiency of CommentFinder against the state-of-the-art approach. We find that when recommending the best-1 review comment candidate, our CommentFinder is 32% better than prior work in recommending the correct code review comment. In addition, CommentFinder is 49 times faster than the prior work. These findings highlight that our CommentFinder could help reviewers to reduce the manual efforts by recommending code review comments, while requiring less computational time.

Topics & Concepts

Computer scienceCode reviewCode (set theory)Static program analysisResource (disambiguation)Machine learningSoftware engineeringArtificial intelligenceProgramming languageSoftwareSoftware developmentSet (abstract data type)Computer networkSoftware Engineering ResearchWeb Application Security VulnerabilitiesAdvanced Malware Detection Techniques