File size: 4,115 Bytes
fb7eb21 c0dc8b2 fb7eb21 c0dc8b2 fb7eb21 c0dc8b2 fb7eb21 c0dc8b2 fb7eb21 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
---
license: apache-2.0
dataset_info:
features:
- name: repo
dtype: string
- name: base_commit
dtype: string
- name: license
dtype: string
splits:
- name: test
num_examples: 3
programming_languages: [java]
tags:
- coding
- code-migration
- java
- amazon
- amazon-science
- aws
---
# MIGRATION-BENCH
<table>
<tr>
<td style="padding: 0;">
<a href="https://huggingface.co/collections/AmazonScience/migrationbench-68125452fc21a4564b92b6c3">
<img src="https://img.shields.io/badge/-π€ MIGRATION--BENCH-4d5eff?style=for-the-badge&labelColor" alt="MIGRATION-BENCH">
</a>
</td>
<td style="padding: 0;">
<a href="https://github.com/amazon-science/self_debug">
<img src="https://img.shields.io/badge/Code-000000?style=for-the-badge&logo=github&logoColor=white" alt="Code">
</a>
</td>
<td style="padding: 0; padding-left: 10px; vertical-align: middle;">
<a href="https://huggingface.co/datasets/AmazonScience/migration-bench-java-full">
<img src="https://img.shields.io/badge/-π€ java--full-8a98ff?style=flat&labelColor" alt="java-full">
</a>
</td>
<td style="padding: 0; vertical-align: middle;">
<a href="https://huggingface.co/datasets/AmazonScience/migration-bench-java-selected">
<img src="https://img.shields.io/badge/-π€ java--selected-8a98ff?style=flat&labelColor" alt="java-selected">
</a>
</td>
<td style="padding: 0; vertical-align: middle;">
<a href="https://huggingface.co/datasets/AmazonScience/migration-bench-java-utg">
<img src="https://img.shields.io/badge/-π€ java--utg-8a98ff?style=flat&labelColor" alt="java-utg">
</a>
</td>
</tr>
</table>
## 1. π Overview
[π€ MIGRATION-BENCH](https://huggingface.co/collections/AmazonScience/migrationbench-68125452fc21a4564b92b6c3)
is a large-scale code migration benchmark dataset at the **repository** level,
across multiple programming languages.
- Current and initial release includes `java 8` repositories with the `maven` build system, as of May 2025.
## 2. Datasets
There are three datasets in [π€ MIGRATION-BENCH](https://huggingface.co/collections/AmazonScience/migrationbench-68125452fc21a4564b92b6c3):
- All repositories included in the datasets are available on GitHub, under the `MIT` or `Apache-2.0` license.
| Index | Dataset | Size | Notes |
|-------|-----------------------------------------------|-------|-----------------------------------------------------------------------------------------------------|
| 1 | [π€ `AmazonScience/migration-bench-java-full`](https://huggingface.co/datasets/AmazonScience/migration-bench-java-full) | 5,102 | Each repo has a test directory or at least one test case |
| 2 | [π€ `AmazonScience/migration-bench-java-selected`](https://huggingface.co/datasets/AmazonScience/migration-bench-java-selected) | 300 | A **subset** of [π€ `migration-bench-java-full`](https://huggingface.co/datasets/AmazonScience/migration-bench-java-full) |
| 3 | [π€ `AmazonScience/migration-bench-java-utg`](https://huggingface.co/datasets/AmazonScience/migration-bench-java-utg) | 4,814 | The unit test generation (utg) dataset, **disjoint** with [π€ `migration-bench-java-full`](https://huggingface.co/datasets/AmazonScience/migration-bench-java-full)|
## 3. Metadata
Metadata is provided in the `csv` file for each dataset:
1. `repo (str)`: The original repo URL without the `https://github.com/` prefix
1. `base_commit (str)`: Base commit id
- At this commit with `java 8` and `maven`, the repository is able to (1) compile and (2) pass existing unit tests and integration tests if any
- It is the starting point for code migration from `java 8`
1. `license (str)`: The license of the repository, either `MIT` or `Apache2.0` for the whole dataset
## 4. π Citation
|