Refactoring is a crucial software engineering practice aimed at improving code quality. However, detecting and predicting refactoring activities automatically remains a challenging task due to the limited availability of labeled datasets. This study investigates the role of data augmentation techniques in enhancing refactoring detection models. We apply various augmentation strategies to expand training data and assess their impact on model performance. We also discuss validation and balancing of the resulting dataset in order to provide meaningful data for further applied ML techniques. Our findings highlight the importance of data diversity in automated refactoring detection and provide insights into optimizing augmentation strategies for software engineering applications. Experimental results demonstrate that data augmentation improves the robustness and accuracy of refactoring detection models by mitigating overfitting and enhancing generalization.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

LLMs Based Data Augmentation Techniques for Python Code Refactoring

  • Vasilica Moldovan,
  • Rares Patcas,
  • Simona Motogna

摘要

Refactoring is a crucial software engineering practice aimed at improving code quality. However, detecting and predicting refactoring activities automatically remains a challenging task due to the limited availability of labeled datasets. This study investigates the role of data augmentation techniques in enhancing refactoring detection models. We apply various augmentation strategies to expand training data and assess their impact on model performance. We also discuss validation and balancing of the resulting dataset in order to provide meaningful data for further applied ML techniques. Our findings highlight the importance of data diversity in automated refactoring detection and provide insights into optimizing augmentation strategies for software engineering applications. Experimental results demonstrate that data augmentation improves the robustness and accuracy of refactoring detection models by mitigating overfitting and enhancing generalization.