MigrationBench
收藏资源简介:
MigrationBench是一个大规模代码迁移基准数据集,针对存储库级别,涵盖多种编程语言。当前和初始版本包括截至2025年5月的使用maven构建系统的java 8存储库。
MigrationBench is a large-scale benchmark dataset for code migration, focusing on repository-level scenarios and covering multiple programming languages. The current and initial release includes Java 8 repositories built with the Maven build system as of May 2025.
MigrationBench 数据集概述
1. 数据集简介
- 名称: MigrationBench
- 类型: 代码迁移基准数据集及评估框架
- 编程语言: Java 8(初始版本)
- 构建系统: Maven
- 参考论文: MigrationBench: Repository-Level Code Migration Benchmark from Java 8
2. 数据集组成
2.1 数据集版本
| 索引 | 数据集名称 | 大小 | 说明 |
|---|---|---|---|
| 1 | migration-bench-java-full | 5,102 | 包含测试目录或至少一个测试用例的仓库 |
| 2 | migration-bench-java-selected | 300 | migration-bench-java-full的子集 |
| 3 | migration-bench-java-utg | 4,814 | 单元测试生成数据集,与migration-bench-java-full不相交 |
2.2 许可证
- 所有仓库均来自GitHub,采用
MIT或Apache-2.0许可证
3. 评估框架
3.1 评估标准
- 仓库能够构建并通过所有测试
- 编译类的major版本与目标Java版本一致
- Java 8: 52
- Java 17: 61
- 测试方法在代码迁移后保持不变
- 测试用例数量在迁移后不减少
- 依赖库版本匹配最新主版本(最大迁移要求)
3.2 评估模式
- 单仓库评估模式
- 批量仓库评估模式
4. 相关工具
- SDFeedback: 使用LLM进行代码迁移的基线解决方案
5. 引用
bibtex @misc{liu2025migrationbenchrepositorylevelcodemigration, title={MIGRATION-BENCH: Repository-Level Code Migration Benchmark from Java 8}, author={Linbo Liu and Xinle Liu and Qiang Zhou and Lin Chen and Yihan Liu and Hoan Nguyen and Behrooz Omidvar-Tehrani and Xi Shen and Jun Huan and Omer Tripp and Anoop Deoras}, year={2025}, eprint={2505.09569}, archivePrefix={arXiv}, primaryClass={cs.SE}, url={https://arxiv.org/abs/2505.09569}, }




