AutoTransform: Automated Code Transformation to Support Modern Code Review Process
Thu 12 May 2022 05:10 - 05:15 at ICSE room 3-odd hours - Mining Software Repositories 1 Chair(s): Ayushi Rastogi
Code review is effective, but human-intensive (e.g., developers need to manually modify source code until it is approved). Recently, prior work proposed a Neural Machine Translation (NMT) approach to automatically transform source code to the version that has been reviewed and approved (i.e., the after version). Yet, its performance is still suboptimal when the after version has new identifiers or literals (e.g., renamed variables) or has many code tokens. To address these limitations, we proposed AutoTransform which leverages a Byte-Pair Encoding (BPE) approach to handle new tokens and a Transformer-based NMT architecture to handle long sequences. We evaluated our approach based on 147,553 changed methods with and without new tokens for both small and medium sizes. The results showed that our AutoTransform can correctly transform 34-526 changed methods, which is at least 262% higher than the prior work, highlighting the substantial improvement of our approach for code transformation in the context of code review. This work contributes towards automated code transform for code reviews, which could help developers reduce their effort in modifying source code during the code review process.
Tue 10 MayDisplayed time zone: Eastern Time (US & Canada) change
Thu 12 MayDisplayed time zone: Eastern Time (US & Canada) change
05:00 - 06:00 | Mining Software Repositories 1Technical Track / Journal-First Papers / SEIP - Software Engineering in Practice at ICSE room 3-odd hours Chair(s): Ayushi Rastogi University of Groningen, The Netherlands | ||
05:00 5mTalk | What happens in my code reviews? An investigation on automatically classifying review changes Journal-First Papers Enrico Fregnan University of Zurich, Switzerland, Fernando Petrulio University of Zurich, Linda Di Geronimo University of Zurich, Switzerland, Alberto Bacchelli University of Zurich Link to publication Pre-print Media Attached | ||
05:05 5mTalk | Bus Factor In Practice SEIP - Software Engineering in Practice Elgun Jabrayilzade Bilkent University, Mikhail Evtikhiev JetBrains Research, Eray Tüzün Bilkent University, Vladimir Kovalenko JetBrains Research Pre-print Media Attached | ||
05:10 5mTalk | AutoTransform: Automated Code Transformation to Support Modern Code Review Process Technical Track Patanamon Thongtanunam University of Melbourne, Chanathip Pornprasit Monash University, Kla Tantithamthavorn Monash University Pre-print Media Attached | ||
05:15 5mTalk | What Makes a Good Commit Message?Distinguished Paper Award Technical Track Yingchen Tian Beijing Institute of Technology, Yuxia Zhang Beijing Institute of Technology, Klaas-Jan Stol University College Cork, Lero, SINTEF, Lin Jiang Beijing Institute of Technology, Hui Liu Beijing Institute of Technology Pre-print Media Attached | ||
05:20 5mTalk | BugListener: Identifying and Synthesizing Bug Reports from Collaborative Live Chats Technical Track Lin Shi ISCAS, Fangwen Mu Institute of Software Chinese Academy of Sciences, YuMin Zhang Institute of Software, Chinese Academy of Sciences, Ye Yang Stevens Institute of Technology, Junjie Chen Tianjin University, Xiao Chen Monash University, Hanzhi Jiang Institute of Software at Chinese Academy of Sciences, Ziyou Jiang Institute of Software at Chinese Academy of Sciences, Qing Wang Institute of Software at Chinese Academy of Sciences Pre-print Media Attached | ||
05:25 5mTalk | SZZ for Vulnerability: Automatic Identification of Version Ranges Affected by CVE Vulnerabilities Technical Track Lingfeng Bao Zhejiang University, Xin Xia Huawei Software Engineering Application Technology Lab, Ahmed E. Hassan Queen's University, Xiaohu Yang Zhejiang University DOI Pre-print Media Attached |