Synthetic Java Refactoring Dataset Generated with Large Language Models across Seven Refactoring Types
收藏资源简介:
This dataset contains 8,568 synthetic Java refactoring instances generated by Large Language Models (LLMs) as part of a Bachelor End Project (2ICS00) at Eindhoven University of Technology. The dataset is the output of a four-phase study evaluating which combination of model, prompting strategy, and code-context level produces the highest-quality synthetic refactorings, measured against a ground-truth corpus of 2,796 real-world Java refactorings. Seven refactoring types are covered: Extract Method, Rename Method, Rename Parameter, Add Parameter, Remove Parameter, Change Return Type, and Change Method Access Modifier. Each instance is a JSON file containing the raw and code-extracted LLM output, per-call token counts and latency, and eight evaluation metrics across three tiers: Tier 1 syntactic validity (JavaParser), Tier 2 textual/structural similarity (exact match, normalized edit distance, BLEU-4, ChrF, CodeBLEU), and Tier 3 refactoring correctness (RefactoringMiner 3.0: refactoring detection and refactoring-type match).



