ernie-research/MEnvData-SWE

Dataset

MEnvData-SWE: Polyglot Software Engineering Dataset with Executable Environments

6

3 commits

1 linked in READMEs

updated Feb 3, 2026

See the code

README

MEnvData-SWE: Polyglot Software Engineering Dataset with Executable Environments

πŸ“‹ Dataset Description

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.

Key Features

  • 🌐 Multi-Language Support: 10 programming languages (Python, Java, TypeScript, JavaScript, Rust, Go, C++, Ruby, PHP, C)
  • 🐳 3,005 Docker Images: Pre-built environment images with verified dependencies
  • βœ… Verified Quality: Each instance includes Fail2Pass validated test cases
  • πŸ”§ Complete Setup Scripts: Both incremental and full environment configuration scripts
  • πŸ“ Evaluation Scripts: Ready-to-use verification scripts with exit code validation
  • ⚑ Efficient Verification: Exit code-based validation (no complex log parsing required)

Dataset

NameValue
Total Instances3,005
Repositories942
Languages10
Docker Images3,005 (one per instance)

🐳 Docker Image Registry

All pre-built Docker images are publicly available on Docker Hub:

πŸ”— Docker Hub Repository: https://hub.docker.com/u/mcatwj

Each instance's image_name field references a specific image that can be pulled directly:

# Example: Pull a specific instance image
docker pull mcatwj/swe-images-c:systemd-systemd-pr-24645

# Or use the image_name from the dataset
docker pull mcatwj/<image_name_from_dataset>

All images are fully configured with:

  • Project dependencies installed
  • Repository cloned at /testbed
  • Ready for immediate test execution

πŸ“Š Dataset Structure

MEnvData-SWE extends the standard SWE-Bench schema with executable environment configurations. Each instance contains the following fields:

FieldTypeDescription
repostrThe full GitHub repository name (e.g., "home-assistant/core").
pull_numberintThe pull request number associated with the fix.
instance_idstrA unique identifier for the task instance.
issue_numberslistA list of linked issue numbers.
base_commitstrThe commit SHA of the repository prior to the fix.
versionstrThe version of the dataset.
patchstrThe ground-truth patch (git diff) that resolves the issue.
test_patchstrThe test patch (git diff) containing new tests to reproduce the issue.
problem_statementstrThe natural language description of the issue.
hints_textstrHints extracted from the issue discussion.
all_hints_textstrComprehensive context including all comments and reviews.
commit_urlslistA list of URLs pointing to the relevant commits.
created_atstrThe creation timestamp (e.g., "2015-12-27T19:33:55Z").
languagestrThe programming language (e.g., "Python").
env_setup_scriptstrπŸ†• Incremental bash commands used to configure the environment (for reuse scenarios).
original_env_setup_scriptstrπŸ†• The foundational setup commands. Represents the reused base image's setup or the full build script if built from scratch.
eval_scriptstrπŸ†• The complete verification script that applies the test_patch and executes the test commands.
image_namestrπŸ†• The specific Docker image name/tag available for this instance.

πŸš€ Usage

Loading the Dataset

from datasets import load_dataset

# Load the full dataset
dataset = load_dataset("ernie-research/MEnvData-SWE")

# Access a single instance
instance = dataset['train'][0]
print(f"Repository: {instance['repo']}")
print(f"Language: {instance['language']}")
print(f"Docker Image: {instance['image_name']}")

Example Instance

{
    "repo": "systemd/systeinstance_id": "systemd__systemd-24645",
    "language": "C",
    "image_name": "swe-images-c:systemd-systemd-pr-24645",
    "base_commit": "6d64cb0625691e2b9eda8babe07ac8281f9467ee",
    "env_setup_script": "#!/usr/bin/env bash\nset -e\ncd /testbed\ngit reset --hard 6d64cb0625...",
    "eval_script": "#!/usr/bin/env bash\nset -uxo pipefail\nexport LANG=en_US.UTF-8...",
    ...
}

🎯 Use Cases

  1. Agent Training: Train code generation and debugging agents on realistic software engineering tasks
  2. Benchmark Evaluation: Evaluate model performance on multi-language software issues

πŸ“– Citation

If MEnvData-SWE helps your research, please cite:

@misc{guo2026menvagent,
      title={MEnvAgent: Scalable Polyglot Environment Construction for Verifiable Software Engineering}, 
      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},
      year={2026},
      url={https://arxiv.org/abs/2601.22859}, 
}

πŸ“§ Contact

For questions or issues:

πŸ™ Acknowledgements

We thank all open-source maintainers whose projects contributed to this dataset.

code
docker
environment
multi-language
software-engineering
swe-bench

Contributors

wjmcat

3 commits

ernie-research/MEnvData-SWE

Dataset

MEnvData-SWE: Polyglot Software Engineering Dataset with Executable Environments

6

3 commits

1 linked in READMEs

updated Feb 3, 2026

See the code

README

MEnvData-SWE: Polyglot Software Engineering Dataset with Executable Environments

πŸ“‹ Dataset Description

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.

Key Features

  • 🌐 Multi-Language Support: 10 programming languages (Python, Java, TypeScript, JavaScript, Rust, Go, C++, Ruby, PHP, C)
  • 🐳 3,005 Docker Images: Pre-built environment images with verified dependencies
  • βœ… Verified Quality: Each instance includes Fail2Pass validated test cases
  • πŸ”§ Complete Setup Scripts: Both incremental and full environment configuration scripts
  • πŸ“ Evaluation Scripts: Ready-to-use verification scripts with exit code validation
  • ⚑ Efficient Verification: Exit code-based validation (no complex log parsing required)

Dataset

NameValue
Total Instances3,005
Repositories942
Languages10
Docker Images3,005 (one per instance)

🐳 Docker Image Registry

All pre-built Docker images are publicly available on Docker Hub:

πŸ”— Docker Hub Repository: https://hub.docker.com/u/mcatwj

Each instance's image_name field references a specific image that can be pulled directly:

# Example: Pull a specific instance image
docker pull mcatwj/swe-images-c:systemd-systemd-pr-24645

# Or use the image_name from the dataset
docker pull mcatwj/<image_name_from_dataset>

All images are fully configured with:

  • Project dependencies installed
  • Repository cloned at /testbed
  • Ready for immediate test execution

πŸ“Š Dataset Structure

MEnvData-SWE extends the standard SWE-Bench schema with executable environment configurations. Each instance contains the following fields:

FieldTypeDescription
repostrThe full GitHub repository name (e.g., "home-assistant/core").
pull_numberintThe pull request number associated with the fix.
instance_idstrA unique identifier for the task instance.
issue_numberslistA list of linked issue numbers.
base_commitstrThe commit SHA of the repository prior to the fix.
versionstrThe version of the dataset.
patchstrThe ground-truth patch (git diff) that resolves the issue.
test_patchstrThe test patch (git diff) containing new tests to reproduce the issue.
problem_statementstrThe natural language description of the issue.
hints_textstrHints extracted from the issue discussion.
all_hints_textstrComprehensive context including all comments and reviews.
commit_urlslistA list of URLs pointing to the relevant commits.
created_atstrThe creation timestamp (e.g., "2015-12-27T19:33:55Z").
languagestrThe programming language (e.g., "Python").
env_setup_scriptstrπŸ†• Incremental bash commands used to configure the environment (for reuse scenarios).
original_env_setup_scriptstrπŸ†• The foundational setup commands. Represents the reused base image's setup or the full build script if built from scratch.
eval_scriptstrπŸ†• The complete verification script that applies the test_patch and executes the test commands.
image_namestrπŸ†• The specific Docker image name/tag available for this instance.

πŸš€ Usage

Loading the Dataset

from datasets import load_dataset

# Load the full dataset
dataset = load_dataset("ernie-research/MEnvData-SWE")

# Access a single instance
instance = dataset['train'][0]
print(f"Repository: {instance['repo']}")
print(f"Language: {instance['language']}")
print(f"Docker Image: {instance['image_name']}")

Example Instance

{
    "repo": "systemd/systeinstance_id": "systemd__systemd-24645",
    "language": "C",
    "image_name": "swe-images-c:systemd-systemd-pr-24645",
    "base_commit": "6d64cb0625691e2b9eda8babe07ac8281f9467ee",
    "env_setup_script": "#!/usr/bin/env bash\nset -e\ncd /testbed\ngit reset --hard 6d64cb0625...",
    "eval_script": "#!/usr/bin/env bash\nset -uxo pipefail\nexport LANG=en_US.UTF-8...",
    ...
}

🎯 Use Cases

  1. Agent Training: Train code generation and debugging agents on realistic software engineering tasks
  2. Benchmark Evaluation: Evaluate model performance on multi-language software issues

πŸ“– Citation

If MEnvData-SWE helps your research, please cite:

@misc{guo2026menvagent,
      title={MEnvAgent: Scalable Polyglot Environment Construction for Verifiable Software Engineering}, 
      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},
      year={2026},
      url={https://arxiv.org/abs/2601.22859}, 
}

πŸ“§ Contact

For questions or issues:

πŸ™ Acknowledgements

We thank all open-source maintainers whose projects contributed to this dataset.

code
docker
environment
multi-language
software-engineering
swe-bench

Contributors

wjmcat

3 commits