wjmcat commited on
Commit
4e312f1
Β·
verified Β·
1 Parent(s): f64aa15

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. MEnvBench.jsonl +3 -0
  3. README.md +130 -3
.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
+ MEnvBench.jsonl filter=lfs diff=lfs merge=lfs -text
MEnvBench.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f81e7edd4202eb0d3eda5598d22b64f43e2df29eda093a580ec87e58cbd93f4
3
+ size 35160608
README.md CHANGED
@@ -1,3 +1,130 @@
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: MEnvBench
10
+ tags:
11
+ - code
12
+ - software-engineering
13
+ - benchmark
14
+ - environment-construction
15
+ - multi-language
16
+ ---
17
+
18
+ # MEnvBench: Multi-Language Environment Construction Benchmark
19
+
20
+ <p align="center">
21
+ <a href="https://arxiv.org/abs/2601.22859"><img src="https://img.shields.io/badge/arXiv-2601.22859-b31b1b.svg"></a>
22
+ <a href="https://github.com/ernie-research/MEnvAgent"><img src="https://img.shields.io/badge/GitHub-MEnvAgent-blue"></a>
23
+ <a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache_2.0-green.svg"></a>
24
+ </p>
25
+
26
+ <p align="center">
27
+ <a href="https://huggingface.co/datasets/ernie-research/MEnvData-SWE"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20HF-MEnvData--SWE-orange"></a>
28
+ <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>
29
+ </p>
30
+
31
+ ## πŸ“‹ Dataset Description
32
+
33
+ **MEnvBench** is a comprehensive benchmark for evaluating multi-language environment building and test execution capabilities, comprising **1,000 task instances** (10 languages Γ— 20 repositories Γ— 5 instances) selected from 200 high-quality open-source repositories.
34
+
35
+ ### Key Features
36
+
37
+ - 🌐 **Multi-Language Coverage**: 10 programming languages (Python, Java, TypeScript, JavaScript, Rust, Go, C++, Ruby, PHP, C)
38
+ - 🎯 **High Quality**: Multi-stage filtering pipeline from 8,000 candidate repositories (>1,000 stars, >200 forks/issues/PRs)
39
+ - πŸ“Š **Diverse Domains**: Strategic sampling across AI, System, Web, and other software ecosystems
40
+ - πŸ—οΈ **Difficulty Levels**: Five project scale bands from <10MB to >500MB
41
+ - βœ… **Verified Quality**: Closed issues with test patches and LLM-based quality assessment
42
+
43
+ ### Dataset Statistics
44
+
45
+ | Metric | Value |
46
+ |--------|-------|
47
+ | **Total Instances** | 1,000 |
48
+ | **Languages** | 10 |
49
+ | **Repositories** | 200 |
50
+ | **Instge** | 100 (20 repos Γ— 5 instances) |
51
+
52
+ ## πŸ“Š Dataset Structure
53
+
54
+ Each instance in MEnvBench contains the following fields:
55
+
56
+ | Field | Type | Description |
57
+ | :--- | :--- | :--- |
58
+ | **repo** | `str` | The full GitHub repository name (e.g., "home-assistant/core"). |
59
+ | **pull_number** | `int` | The pull request number associated with the fix (e.g., 807). |
60
+ | **instance_id** | `str` | A unique identifier for the task instance (e.g., "home-assistant__core-807"). |
61
+ | **issue_numbers** | `list` | A list of linked issue numbers (e.g., [103876]). |
62
+ | **base_commit** | `str` | The commit SHA of the repository prior to the fix. |
63
+ | **version** | `str` | The version of the dataset (e.g., "0.10"). |
64
+ | **patch** | `str` | The ground-truth patch (git diff) that resolves the issue. |
65
+ | **test_patch** | `str` | The test patch (git diff) containing new tests to reproduce the issue. |
66
+ | **problem_statement** | `str` | The natural language description of the issue. |
67
+ | **hints_text** | `str` | Hints extracted from the issue dussion to aid resolution. |
68
+ | **all_hints_text** | `str` | Comprehensive context including all comments and code review details. |
69
+ | **commit_urls** | `list` | A list of URLs pointing to the relevant commits. |
70
+ | **created_at** | `str` | The creation timestamp (e.g., "2015-12-27T19:33:55Z"). |
71
+ | **language** | `str` | The programming language of the repository (e.g., "Python"). |
72
+
73
+ ## πŸš€ Usage
74
+
75
+ ### Loading the Dataset
76
+
77
+ ```python
78
+ from datasets import load_dataset
79
+
80
+ # Load the full dataset
81
+ dataset = load_dataset("ernie-research/MEnvBench")
82
+
83
+ # Access a single instance
84
+ instance = dataset['test'][0]
85
+ print(f"Repository: {instance['repo']}")
86
+ print(f"Language: {instance['language']}")
87
+ print(f"Problem: {instance['problem_statement'][:200]}...")
88
+ ```
89
+
90
+ ### Example Instance
91
+
92
+ ```python
93
+ {
94
+ "repo": "home-assistant/core",
95
+ "pull_number": 807,
96
+ "instance_id": "home-assistant__core-807",
97
+ "issue_numbers": [103876],
98
+ "base_commit": "87c88078c87257cde4786997fedb865be6813545",
99
+ "version": "0.10",
100
+ "language""Python",
101
+ "problem_statement": "Scene configuration issue...",
102
+ "patch": "diff --git a/homeassistant/components/scene.py...",
103
+ "test_patch": "diff --git a/tests/components/test_scene.py...",
104
+ ...
105
+ }
106
+ ```
107
+
108
+ ## πŸ“– Citation
109
+
110
+ If MEnvBench helps your research, please cite:
111
+
112
+ ```bibtex
113
+ @misc{guo2026menvagent,
114
+ title={MEnvAgent: Scalable Polyglot Environment Construction for Verifiable Software Engineering},
115
+ author={Chuanzhe Guo and 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},
116
+ year={2026},
117
+ url={https://arxiv.org/abs/2601.22859},
118
+ }
119
+ ```
120
+
121
+
122
+ ## πŸ“§ Contact
123
+
124
+ For questions or issues:
125
+ - **GitHub**: [MEnvAgent Repository](https://github.com/ernie-research/MEnvAgent)
126
+ - **Email**: czguo@ir.hit.edu.cn
127
+
128
+ ## πŸ™ Acknowledgements
129
+
130
+ We thank the open-source community and all repository maintainers whose high-quality projects made this benchmark possible.