IIIT-Delhi Institutional Repository

AI for software development: refactoring code-bases

Show simple item record

dc.contributor.author Vohra, Aryan
dc.contributor.author Patel, Hardik
dc.contributor.author Jalote, Pankaj (Advisor)
dc.date.accessioned 2024-05-08T08:21:06Z
dc.date.available 2024-05-08T08:21:06Z
dc.date.issued 2023-11-29
dc.identifier.uri http://repository.iiitd.edu.in/xmlui/handle/123456789/1402
dc.description.abstract Code refactoring, in which an existing module is modified for satisfying some property while maintaining the functionality, is often needed as software evolves. Since refactoring is tedious and error prone, it is sometimes ignored, even though reforming could improve code quality. In this paper we experimentally explore the effectiveness of using genAI, in particular ChatGPT, for refactoring of python code modules. From open source, we collected 14 python modules of 100-300 LOC. We then refactored them using ChatGPT for two different end-goals: improving performance and improving maintainability or understandability. Our findings indicate that ChatGPT is able to successfully refactor in most of the cases, and also improves the code for the stated refactoring goal. We also explored different prompt styles for improving refactoring performance, and shared our experience of the same. en_US
dc.language.iso en_US en_US
dc.publisher IIIT-Delhi en_US
dc.subject ChatGPT en_US
dc.subject Refactoring en_US
dc.subject Machine Learning en_US
dc.subject Software Engineering en_US
dc.subject Data Structures en_US
dc.subject Algorithms en_US
dc.subject Security en_US
dc.title AI for software development: refactoring code-bases en_US
dc.type Other en_US


Files in this item

This item appears in the following Collection(s)

Show simple item record

Search Repository


Advanced Search

Browse

My Account