[removed]

Read full text
Authors: Anonymous
Cited by: 0

Abstract

Automated Behavioral Preserving Refactoring This repository provides scripts, prompts, and data for reproducing, analyzing, and calculating metrics for LLM-generated code refactorings. Project Structure behavior_preserver_refactoring_artifacts/ │ ├── prompts/ # Prompt templates │ ├── expert.txt # expert refactoring prompt │ └── behavior_preserver.txt # CDD-based behavior-preserving refactoring prompt │ └── inline_method_behavior_preserver.txt # CDD-based behavior-preserving refactoring prompt (inline method) │ └── extract_method_behavior_preserver.txt # CDD-based behavior-preserving refactoring prompt (extract method) │ ├── input/ # Datasets │ ├── apps.csv │ ├── humaneval.csv │ └── mbpp.csv │ ├── output/ │ ├── behavior_preserver/ # Results from behavior-preserving refactorings │ └── expert/ # Results from expert refactorings │ └── swe-refactor/ # Results from SWE-Refactor Replication │ ├── scripts/ │ ├── async.py # Asynchronous refactoring processing script │ └── rq1_metrics.py # Evaluation metrics computation script for RQ1 │ └── rq2_metrics.py # Metrics Aggregation script of SWE-Refactor results for RQ2 │ ├── requirements.txt # Python dependencies └── README.md # Project documentation

Fields of Study & Subjects

Software Engineering Research Software Testing and Debugging Techniques Teaching and Learning Programming

Publication details

Journal / source
Zenodo (CERN European Organization for Nuclear Research)
Publication date
6 March 2026
Language
EN