wjmcat commited on
Commit
2f2c5ef
Β·
verified Β·
1 Parent(s): 0dcac63

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +159 -3
  3. swe-images.jsonl +3 -0
.gitattributes CHANGED
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ swe-images.jsonl filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,159 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ size_categories:
6
+ - 1K<n<10K
7
+ task_categories:
8
+ - text-generation
9
+ pretty_name: MEnvData-SWE
10
+ tags:
11
+ - code
12
+ - software-engineering
13
+ - docker
14
+ - environment
15
+ - multi-language
16
+ - swe-bench
17
+ ---
18
+
19
+ # MEnvData-SWE: Polyglot Software Engineering Dataset with Executable Environments
20
+
21
+ <p align="center">
22
+ <a href="https://arxiv.org/abs/2601.22859"><img src="https://img.shields.io/badge/arXiv-2601.22859-b31b1b.svg"></a>
23
+ <a href="https://github.com/ernie-research/MEnvAgent"><img src="https://img.shields.io/badge/GitHub-MEnvAgent-blue"></a>
24
+ <a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache_2.0-green.svg"></a>
25
+ </p>
26
+
27
+ <p align="center">
28
+ <a href="https://huggingface.co/datasets/ernie-research/MEnvBench"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20HF-MEnvBench-yellow"></a>
29
+ <a href="https://huggingface.co/datasets/ernie-research/MEnvData-SWE-Trajectory"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20HF-MEnvData--SWE--Trajectory-red"></a>
30
+ </p>
31
+
32
+ ## πŸ“‹ Dataset Description
33
+
34
+ **MEnvData-SWE** is the largest open-source polyglot dataset of realistic verifiable Docker environments, comprising **3,005 task instances** from **942 repositories** across **10 programming languages**. Each instance includes a fully executable Docker environment with pre-verified test cases, environment setup scripts, and evaluation scripts.
35
+
36
+ ### Key Features
37
+
38
+ - 🌐 **Multi-Language Support**: 10 programming languages (Python, Java, TypeScript, JavaScript, Rust, Go, C++, Ruby, PHP, C)
39
+ - 🐳 **3,005 Docker Images**: Pre-built environment images with verified dependencies
40
+ - βœ… **Verified Quality**: Each instance includes Fail2Pass validated test cases
41
+ - πŸ”§ **Complete Setup Scripts**: Both incremental and full environment configuration scripts
42
+ - πŸ“ **Evaluation Scripts**: Ready-to-use verification scripts with exit code validation
43
+ - ⚑ **Efficient Verification**: Exit code-based validation (no complex log parsing required)
44
+
45
+ ### Dataset Setric | Value |
46
+ |--------|-------|
47
+ | **Total Instances** | 3,005 |
48
+ | **Repositories** | 942 |
49
+ | **Languages** | 10 |
50
+ | **Docker Images** | 3,005 (one per instance) |
51
+
52
+ ### 🐳 Docker Image Registry
53
+
54
+ All pre-built Docker images are publicly available on Docker Hub:
55
+
56
+ **πŸ”— Docker Hub Repository**: [https://hub.docker.com/u/mcatwj](https://hub.docker.com/u/mcatwj)
57
+
58
+ Each instance's `image_name` field references a specific image that can be pulled directly:
59
+
60
+ ```bash
61
+ # Example: Pull a specific instance image
62
+ docker pull mcatwj/swe-images-c:systemd-systemd-pr-24645
63
+
64
+ # Or use the image_name from the dataset
65
+ docker pull mcatwj/<image_name_from_dataset>
66
+ ```
67
+
68
+ All images are fully configured with:
69
+ - Project dependencies installed
70
+ - Repository cloned at `/testbed`
71
+ - Ready for immediate test execution
72
+
73
+ ## πŸ“Š Dataset Structure
74
+
75
+ MEnvData-SWE extends the standard SWE-Bench schema with **executable environment configurations**. Each instance contains the following fields:
76
+
77
+ | Field | Type | Description |
78
+ | :--- | :--- | :- **repo** | `str` | The full GitHub repository name (e.g., "home-assistant/core"). |
79
+ | **pull_number** | `int` | The pull request number associated with the fix. |
80
+ | **instance_id** | `str` | A unique identifier for the task instance. |
81
+ | **issue_numbers** | `list` | A list of linked issue numbers. |
82
+ | **base_commit** | `str` | The commit SHA of the repository prior to the fix. |
83
+ | **version** | `str` | The version of the dataset. |
84
+ | **patch** | `str` | The ground-truth patch (git diff) that resolves the issue. |
85
+ | **test_patch** | `str` | The test patch (git diff) containing new tests to reproduce the issue. |
86
+ | **problem_statement** | `str` | The natural language description of the issue. |
87
+ | **hints_text** | `str` | Hints extracted from the issue discussion. |
88
+ | **all_hints_text** | `str` | Comprehensive context including all comments and reviews. |
89
+ | **commit_urls** | `list` | A list of URLs pointing to the relevant commits. |
90
+ | **created_at** | `str` | The creation timestamp (e.g., "2015-12-27T19:33:55Z"). |
91
+ | **language** | `str` | The programming language (e.g., "Python"). |
92
+ | **env_setup_script** | `str` | πŸ†• Incremental bash commands used to configure the environment (for reuse scenarios). |
93
+ | **original_env_setup_script** | `str` | πŸ†• The foundational setup commands. Represents the reused base image's setup or the full build script if built from scratch. |
94
+ | **eval_script** | `str` | πŸ†• The complete verification script that applies the `test_patch` and executes the test commands. |
95
+ | **image_name** | `str` | πŸ†• The specific Docker image name/tag available for this instance. |
96
+
97
+ ## πŸš€ Usage
98
+
99
+ ### Loading the Dataset
100
+
101
+ ```python
102
+ from datasets import load_dataset
103
+
104
+ # Load the full dataset
105
+ dataset = load_dataset("ernie-research/MEnvData-SWE")
106
+
107
+ # Access a single instance
108
+ instance = dataset['train'][0]
109
+ print(f"Repository: {instance['repo']}")
110
+ print(f"Language: {instance['language']}")
111
+ print(f"Docker Image: {instance['image_name']}")
112
+ ```
113
+
114
+
115
+ ### Example Instance
116
+
117
+ ```python
118
+ {
119
+ "repo": "systemd/systeinstance_id": "systemd__systemd-24645",
120
+ "language": "C",
121
+ "image_name": "swe-images-c:systemd-systemd-pr-24645",
122
+ "base_commit": "6d64cb0625691e2b9eda8babe07ac8281f9467ee",
123
+ "env_setup_script": "#!/usr/bin/env bash\nset -e\ncd /testbed\ngit reset --hard 6d64cb0625...",
124
+ "eval_script": "#!/usr/bin/env bash\nset -uxo pipefail\nexport LANG=en_US.UTF-8...",
125
+ ...
126
+ }
127
+ ```
128
+
129
+ ## 🎯 Use Cases
130
+
131
+ 1. **Agent Training**: Train code generation and debugging agents on realistic software engineering tasks
132
+ 2. **Benchmark Evaluation**: Evaluate model performance on multi-language software issues
133
+ ## πŸ”— Related Datasets
134
+
135
+ - **[MEnvData-SWE-Trajectory](https://huggingface.co/datasets/ernie-research/MEnvData-SWE-Trajectory)**: Extended version with 3,872 agent execution trajectories
136
+
137
+ ## πŸ“– Citation
138
+
139
+ If MEnvData-SWE helps your research, please cite:
140
+
141
+ ```bibtex
142
+ @misc{guo2026menvagent,
143
+ title={MEnvAgent: Scalable Polyglot Environment Construction for Verifiable Software Engineering},
144
+ author={Chuanzhend Jingjing Wu and Sijun He and Yang Chen and Zhaoqi Kuang and Shilong Fan and Bingjin Chen and Siqi Bao and Jing Liu and Hua Wu and Qingfu Zhu and Wanxiang Che and Haifeng Wang},
145
+ year={2026},
146
+ url={https://arxiv.org/abs/2601.22859},
147
+ }
148
+ ```
149
+
150
+ ## πŸ“§ Contact
151
+
152
+ For questions or issues:
153
+ - **GitHub**: [MEnvAgent Repository](https://github.com/ernie-research/MEnvAgent)
154
+ - **Email**: czguo@ir.hit.edu.cn
155
+
156
+ ## πŸ™ Acknowledgements
157
+
158
+ We thank all open-source maintainers whose projects contributed to this dataset.
159
+
swe-images.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e111fa1a8c4565f427d928652fddde7ce36a9d32973bb554beb60fba2c6055aa
3
+ size 62816168