sliuxl commited on
Commit
fb7eb21
Β·
1 Parent(s): 0028b15

Initial commit: Add test (demo with 3 rows) dataset and update README.md.

Browse files
Files changed (2) hide show
  1. README.md +88 -3
  2. test.csv +4 -0
README.md CHANGED
@@ -1,3 +1,88 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ dataset_info:
4
+ features:
5
+ - name: repo
6
+ dtype: string
7
+ - name: base_commit
8
+ dtype: string
9
+ - name: license
10
+ dtype: string
11
+ splits:
12
+ - name: test
13
+ num_examples: 3
14
+ programming_languages: [java]
15
+ tags:
16
+ - coding
17
+ - code-migration
18
+ - java
19
+ - amazon
20
+ - amazon-science
21
+ - aws
22
+ ---
23
+
24
+ # MIGRATION-BENCH
25
+ <table>
26
+ <tr>
27
+ <td style="padding: 0;">
28
+ <a href="https://huggingface.co/collections/AmazonScience/migrationbench-68125452fc21a4564b92b6c3">
29
+ <img src="https://img.shields.io/badge/-MIGRATION--BENCH-4d5eff?style=for-the-badge&logo=huggingface&logoColor=ffffff&labelColor" alt="MIGRATION-BENCH">
30
+ </a>
31
+ </td>
32
+ <td style="padding: 0;">
33
+ <a href="https://github.com/amazon-science/self_debug">
34
+ <img src="https://img.shields.io/badge/Code-000000?style=for-the-badge&logo=github&logoColor=white" alt="Code">
35
+ </a>
36
+ </td>
37
+ <td style="padding: 0; padding-left: 10px; vertical-align: middle;">
38
+ <a href="https://huggingface.co/datasets/AmazonScience/migration-bench-java-full">
39
+ <img src="https://img.shields.io/badge/-java--full-8a98ff?style=flat&logo=huggingface&logoColor=ffffff&labelColor" alt="java-full">
40
+ </a>
41
+ </td>
42
+ <td style="padding: 0; vertical-align: middle;">
43
+ <a href="https://huggingface.co/datasets/AmazonScience/migration-bench-java-selected">
44
+ <img src="https://img.shields.io/badge/-java--selected-8a98ff?style=flat&logo=huggingface&logoColor=ffffff&labelColor" alt="java-selected">
45
+ </a>
46
+ </td>
47
+ <td style="padding: 0; vertical-align: middle;">
48
+ <a href="https://huggingface.co/datasets/AmazonScience/migration-bench-java-utg">
49
+ <img src="https://img.shields.io/badge/-java--utg-8a98ff?style=flat&logo=huggingface&logoColor=ffffff&labelColor" alt="java-utg">
50
+ </a>
51
+ </td>
52
+ </tr>
53
+ </table>
54
+
55
+
56
+ ## 1. πŸ“– Overview
57
+
58
+ [πŸ€— MIGRATION-BENCH](https://huggingface.co/collections/AmazonScience/migrationbench-68125452fc21a4564b92b6c3)
59
+ is a large-scale code migration benchmark dataset at the **repository** level,
60
+ across multiple programming languages.
61
+
62
+ - Current and initial release includes `java 8` repositories with the `maven` build system, as of May 2025.
63
+
64
+
65
+ ## 2. Datasets
66
+
67
+ There are three datasets in [πŸ€— MIGRATION-BENCH](https://huggingface.co/collections/AmazonScience/migrationbench-68125452fc21a4564b92b6c3):
68
+ - All repositories included in the datasets are available on GitHub, under the `MIT` or `Apache-2.0` license.
69
+
70
+ | Index | Dataset | Size | Notes |
71
+ |-------|-----------------------------------------------|-------|-----------------------------------------------------------------------------------------------------|
72
+ | 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 |
73
+ | 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) |
74
+ | 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)|
75
+
76
+
77
+ ## 3. Metadata
78
+
79
+ Metadata is provided in the `csv` file for each dataset:
80
+
81
+ 1. `repo (str)`: The original repo URL without the `https://github.com/` prefix
82
+ 1. `base_commit (str)`: Base commit id
83
+ - 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
84
+ - It is the starting point for code migration from `java 8`
85
+ 1. `license (str)`: The license of the repository, either `MIT` or `Apache2.0` for the whole dataset
86
+
87
+
88
+ ## 4. πŸ“š Citation
test.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ repo,base_commit,license
2
+ 0fca/poolval2,c0e059fff4e47719469f436f0db2013d1938283f,MIT
3
+ 0rangeFox/AuthLib,c4cfb889abcca7fe684501be048561cc8b88950c,MIT
4
+ 0x100/liquibase-backup-spring-boot-starter,54c0546b5df5cfc9ca5dad3752bc2218c207c2fe,MIT