Datasets:
Download README.md from mathieu123/DeepSWE-Surgeon: direct link, hf CLI and curl.
- Browser
- Download file 8.35 kB
-
https://huggingface.co/datasets/mathieu123/DeepSWE-Surgeon/resolve/main/README.md
- Command line
-
hf download hf://datasets/mathieu123/DeepSWE-Surgeon/README.md
-
curl -L -o README.md https://huggingface.co/datasets/mathieu123/DeepSWE-Surgeon/resolve/main/README.md
pretty_name: DeepSWE-Surgeon (113 Multi-Language Tasks Repaired by Benchmark Surgeon)
license: apache-2.0
language:
- en
task_categories:
- text-generation
size_categories:
- n<1K
tags:
- software-engineering
- code
- typescript
- go
- python
- rust
- javascript
- benchmark
- swe-bench
- deep-swe
- harbor
- benchmark-audit
- benchmark-repair
- benchmark-surgeon
- no-docker-surgery
configs:
- config_name: default
data_files:
- split: test
path: data/test-*.parquet
DeepSWE-Surgeon (113 Multi-Language Tasks Repaired by Benchmark Surgeon)
This dataset is a drop-in repaired release of all 113 multi-language tasks (TypeScript 35, Go 34, Python 34, JavaScript 5, Rust 5) from datacurve-ai/deep-swe (pinned commit 0b9fabbb, Apache-2.0), produced automatically by Benchmark Surgeon in Container-Free Static Gating Mode (No-Docker Surgery) under strict Gold Patch Invariance (ΔG = 0).
All 113 tasks were processed 100% blind and unfiltered (zero held-out third-party audit labels were exposed to the surgeon). Every repaired task was subsequently validated through an automated Three-Layer Zero-Human Verification Pipeline in official DeepSWE ECR Docker containers (public.ecr.aws/d3j8x8q7/swe-bench-202605:*, --network none).
1. Overview & No-Docker Multi-Language Surgery (ΔG = 0)
- Strict Gold Invariance (
ΔG = 0): The upstream reference solutionsolution/solution.patch(patch) is never modified (0/113violations; byte-for-byte identical across Parquet, JSONL, and all113native Harbor task directories). - Privilege-Separated Dual-Path Repair + Evaluator Sync:
- Path A (Gold-Blind Specification Repair + 3-Layer Leakage Guard): Resolves
UNDERSPECIFIED_TASKandMISLEADING_TASKdefects ininstruction.md(problem_statement) without access tosolution.patch, preventing implementation-HOW leakage. - Path B (Oracle / Test + Evaluator Repair + S1–S4 Static Gates): Resolves
LOW_COVERAGE_ORACLE,OVERLY_STRICT_ORACLE, andINCORRECT_SCORINGdefects acrosstests/test.patch,tests/config.json(f2p_node_ids/p2p_node_ids), and instance-level evaluator scripts (tests/test.sh/tests/grader.py, protected by regression-awarebash -nS2 syntax gating and S4 selector-sync review), followed by Answer-to-Spec Grounding Probe (64.5% -> 75.9%,22automatic spec-sync self-heals).
- Path A (Gold-Blind Specification Repair + 3-Layer Leakage Guard): Resolves
- Fail-Closed Safety:
- During static surgery (
gpt-6.1-terra,0errors across113/113),15candidates were automatically reverted or abstained (7POST_VERIFY_REGRESSION_REVERTED,3TEST_GATE_REJECTED_REVERTED,3ABSTAIN_UNREPAIRABLE,2NO_VERIFIED_IMPROVEMENT_REVERTED). - During post-hoc official ECR Docker validation,
3Path B candidates that failed Gold runtime execution (narwhals-rolling-window-suite,testem-bail-on-test-failure,textual-kitty-key-phases) were fail-closed reverted to their exact upstream tasks, yielding60certified repaired +53original upstream =113exported tasks with60 / 60 (100.0%)official Docker runtime PASS.
- During static surgery (
Disposition Summary Across All 5 Languages (113 Tasks)
| Language | Total | Static Repaired (Spec Only / Path B) |
UNCHANGED |
Static Reverted / Abstained | Exported Repaired (100% Docker PASS) |
|---|---|---|---|---|---|
| TypeScript | 35 | 23 (13 / 10) |
11 | 1 | 23 |
| Go | 34 | 15 (12 / 3) |
11 | 8 | 15 |
| Python | 34 | 17 (9 / 8) |
12 | 5 | 15 (2 GOLD_FAIL reverted) |
| JavaScript | 5 | 4 (2 / 2) |
1 | 0 | 3 (1 GOLD_FAIL reverted) |
| Rust | 5 | 4 (2 / 2) |
0 | 1 | 4 |
| Total | 113 | 63 (38 / 25) |
35 | 15 | 60 repaired + 53 original (0 errors) |
2. Three-Layer Zero-Human Verification
All 63 statically repaired candidates (and the 60 fail-closed exported subset) were verified automatically with zero human editing. Complete per-instance logs are archived in metadata/.
| Validation Layer | Scope | Key Metric | Pre-Export (63) |
Exported Certified (60) |
|---|---|---|---|---|
Layer 1: Official DeepSWE ECR Docker (--network none, tests/test.sh + reward.json + ctrf.json) |
All repaired tasks | Strict PASS (V1 ΔG=0 + R1 Base FAIL + R2 Gold PASS) |
60 / 63 (95.2%) | 60 / 60 (100.0%) |
↳ REPAIRED_SPEC_ONLY Subset |
Unchanged tests | Strict PASS | 38 / 38 (100.0%) | 38 / 38 (100.0%) |
↳ Path B (Test / Evaluator Modified) Subset |
Modified test.patch / config.json / test.sh |
Strict PASS | 22 / 25 (88.0%) | 22 / 22 (100.0%) |
Layer 2: Cross-Family Blind A/B & Anti-Leakage (zcode + glm-5.3-flash, 0 errors, randomized A/B labels) |
Independent non-OpenAI judge | Blind preference (REPAIRED / TIE / ORIGINAL) |
52 / 6 / 5 (82.5%, 91.2% non-tie) |
50 / 6 / 4 (83.3%, 92.6% non-tie) |
| ↳ Material Defect Elimination | Original vs. repaired | Total material defects & zero-defect share | 84 -> 27 (-67.9%); 17.5% -> 66.7% |
79 -> 26 (-67.1%); 18.3% -> 66.7% |
| ↳ Anti-Leakage Audit | spec_patch.diff vs. solution.patch |
Solution-HOW leakage (NONE / MINOR / MATERIAL) |
59 / 4 / 0 (0.0% material) |
56 / 4 / 0 (0.0% material) |
Layer 3: Official Docker Counterfactual Differential Test (T_orig vs. T_new) |
All synthesized buggy_mutant patches across all 5 languages |
Buggy Mutant Caught (T_orig PASS -> T_new FAIL) |
13 / 13 (100.0%) (0 escaped, 0 regressions) |
11 / 11 (100.0%) (0 escaped, 0 regressions) |
- Post-hoc Held-Out Third-Party Audit Correlation: Without seeing any external audit labels during surgery, Benchmark Surgeon repaired
30tasks from the held-outwrongbucket (63tasks,40flagged) and newly uncovered and repaired30defective tasks in the previouslynot_auditedbucket (50tasks,38flagged).
3. Repository Contents & Usage
data/test-00000-of-00001.parquet: All113tasks in HuggingFace Parquet format (problem_statement,patch,test_patch,f2p_node_ids,p2p_node_ids,evaluator_files,task_toml,docker_image,surgeon_metadata, etc.).harbor_tasks.tar.gz: Native Harbortasks/<task_id>/directory tree (113tasks) ready for drop-in execution with official DeepSWE / Harbor evaluation runners (instruction.md,solution/solution.patchbyte-identical to upstream,tests/{test.patch, config.json, test.sh, grader.py, Dockerfile}).metadata/: Full reproducibility bundle (campaign_metrics.json,docker_verify_results.jsonl,cross_family_blind_eval.jsonl,counterfactual_patches.jsonl).
Load via datasets
import json
from datasets import load_dataset
ds = load_dataset("mathieu123/DeepSWE-Surgeon", split="test")
repaired = ds.filter(lambda r: r["surgeon_metadata"] is not None)
print(f"Total: {len(ds)}, Repaired: {len(repaired)}")
print(repaired[0]["instance_id"], json.loads(repaired[0]["surgeon_metadata"]))
Extract Native Harbor Task Tree
huggingface-cli download mathieu123/DeepSWE-Surgeon harbor_tasks.tar.gz --repo-type dataset --local-dir .
tar -xzf harbor_tasks.tar.gz
# Ready to run with Harbor / DeepSWE official harness under ./tasks/<task_id>/
4. Tooling, Attribution & Licensing
- Repair & Evaluation Tool: Benchmark Surgeon (
v0.3.0, Apache-2.0) - Sibling Repaired Dataset:
mathieu123/SWE-rebench-leaderboard-surgeon(2026_03,110Python tasks) - Upstream Dataset: Derived from
datacurve-ai/deep-swe(commit 0b9fabbb,113tasks, licensed under Apache-2.0). All credit for upstream task curation, container images, and the Harbor evaluation framework belongs to the DeepSWE / Datacurve authors and upstream repository maintainers. - License: Released under Apache-2.0 in alignment with upstream
datacurve-ai/deep-swe.