ICSME 2023
Sun 1 - Fri 6 October 2023 Bogotá, Colombia
Thu 5 Oct 2023 14:14 - 14:25 at Session 2 Room - RGD 04 - Refactoring Chair(s): Massimiliano Di Penta, Oscar Chaparro

In the context of continually growing large code repositories where code refactoring is an ongoing requirement, we highlight the effectiveness of OpenRewrite as a tool for conducting large-scale code refactoring. OpenRewrite leverages Lossless Semantic Trees (LST) to represent code and applies recipes to search and implement changes. These recipes are openly available and can be executed locally or accessed through the Moderne platform for public repositories. We provide a concise overview of the underlying technology, instructions for utilizing the tool, and we compare its performance against a manual approach and two prominent large language models (LLM): ChatGPT and StarChat-β. Our comparison is based on the execution time of the tool and the accuracy of the implemented changes. Additionally, we present three distinct use cases that demonstrate the versatile applications of the tool. A demonstration of OpenRewrite’s recipe which detects vulnerabilities and automatically fixes them is available at the following link: https://www.youtube.com/watch?v=L1-_cQUX-JA.

Machine learning research engineer at Moderne.

Thu 5 Oct

Displayed time zone: Bogota, Lima, Quito, Rio Branco change

13:30 - 15:00
13:30
11m
Talk
Towards a Catalog of Refactorings for Elixir
New Ideas and Emerging Results Track
Lucas Francisco da Matta Vegi Federal University of Minas Gerais (UFMG), Marco Tulio Valente Federal University of Minas Gerais, Brazil
Pre-print
13:41
11m
Talk
An Automated Code Update Tool For Python Packages
Tool Demo Track
Nacho Navarro J.P. Morgan AI Research, Petr Babkin , Salwa Alamir J.P. Morgan AI Research, Sameena Shah J.P. Morgan AI Research
13:52
11m
Talk
Test Code Refactoring Unveiled: Where and How Does It Affect Test Code Quality and Effectiveness?
Registered Reports Track
Fabio Palomba University of Salerno, Ivan Machado Federal University of Bahia
14:03
11m
Talk
Towards Code Improvements Suggestions from Client Exception Analysis
New Ideas and Emerging Results Track
Diego Marcilio USI Università della Svizzera italiana, Carlo A. Furia Università della Svizzera italiana (USI)
Pre-print
14:14
11m
Talk
Deterministic Automatic Refactoring at Scale
Tool Demo Track
14:25
11m
Talk
Automatic Refactoring Candidate Identification Leveraging Effective Code Representation
New Ideas and Emerging Results Track
Indranil Palit Dalhousie University, Gautam Shetty Dalhousie University, Hera Arif Dalhousie University, Tushar Sharma Dalhousie University
Pre-print
14:36
11m
Talk
RefSearch: A Search Engine for Refactoring
Tool Demo Track
Motoki Abe Tokyo Institute of Technology, Shinpei Hayashi Tokyo Institute of Technology
DOI Pre-print
14:47
13m
Live Q&A
1:1 Q&A
Research Track