Cmsmr commited on
Commit
52e2478
·
verified ·
1 Parent(s): 46e3da2

Add PDB-Wild

Browse files
Files changed (3) hide show
  1. .DS_Store +0 -0
  2. README.md +83 -0
  3. data/test-00000-of-00001.parquet +3 -0
.DS_Store ADDED
Binary file (6.15 kB). View file
 
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - code
5
+ license: mit
6
+ task_categories:
7
+ - text-generation
8
+ size_categories:
9
+ - n<1K
10
+ tags:
11
+ - code
12
+ - debugging
13
+ - benchmark
14
+ configs:
15
+ - config_name: default
16
+ data_files:
17
+ - split: test
18
+ path: data/test-*.parquet
19
+ ---
20
+
21
+ # PDB-Wild: Precise Debugging Benchmarking — multi-line and repository-level bugs
22
+
23
+ 📄 [Paper](https://arxiv.org/abs/2604.17338) &nbsp;·&nbsp;
24
+ 💻 [Code](https://github.com/Bill1235813/PDB) &nbsp;·&nbsp;
25
+ 🌐 [Project page](https://precise-debugging-benchmark.github.io/) &nbsp;·&nbsp;
26
+ 🏆 [Leaderboard](https://precise-debugging-benchmark.github.io/leaderboard.html)
27
+
28
+ `PDB-Wild` is the **multi-line and repository-level bug set** of the PDB (Precise Debugging Benchmarking) evaluation suite. Every example pairs a ground-truth program with a synthesized buggy version plus a line-level edit script (`gt_diff`) that encodes the minimal correct fix.
29
+
30
+ - **Source datasets:** [BigCodeBench](https://huggingface.co/datasets/bigcode/bigcodebench) + [LiveCodeBench](https://huggingface.co/datasets/livecodebench/execution) (the 256 examples of [PDB-Multi](https://huggingface.co/datasets/Precise-Debugging-Benchmarking/PDB-Multi)) and [SWE-smith](https://github.com/SWE-bench/SWE-smith) repositories (228 examples)
31
+ - **Sibling datasets:** [PDB-Single](https://huggingface.co/datasets/Precise-Debugging-Benchmarking/PDB-Single) · [PDB-Single-Full](https://huggingface.co/datasets/Precise-Debugging-Benchmarking/PDB-Single-Full) · [PDB-Multi](https://huggingface.co/datasets/Precise-Debugging-Benchmarking/PDB-Multi)
32
+
33
+ ## TL;DR
34
+
35
+ Unit tests reward brute-force regeneration equally with minimal targeted fixes. PDB instead evaluates debugging with edit-level **precision** (were unnecessary lines touched?) and bug-level **recall** (were all faults resolved?). On PDB-Wild, the precision gap persists for multi-line and repository-level bugs: models with high unit-test pass rates still over-edit.
36
+
37
+ ## Statistics
38
+
39
+ - **Total examples:** 484
40
+ - **Per source dataset:**
41
+ - `bigcodebench`: 37
42
+ - `livecodebench`: 219
43
+ - `swebench` (SWE-smith repositories): 228 — 32 files from 6 repositories, bugs generated by Claude-Opus-4.7 with blocks of up to 30 lines
44
+ - **Bug count distribution:**
45
+ - `bug_count = 1`: 220
46
+ - `bug_count = 2`: 164
47
+ - `bug_count = 3`: 100
48
+
49
+ ## Schema
50
+
51
+ | field | type | notes |
52
+ |---|---|---|
53
+ | `task_id` | string | unique identifier per buggy variant |
54
+ | `source_dataset` | string | provenance of the underlying program (`bigcodebench`, `livecodebench`, `swebench` = SWE-smith repository) |
55
+ | `source_model` | string | bug-generator model |
56
+ | `task_prompt` | string | natural-language description of the task / fix target |
57
+ | `gt_solution` | string | verified correct program (for SWE-smith: the full content of `target_file`) |
58
+ | `buggy_code` | string | program with injected bug(s) |
59
+ | `gt_diff` | string (JSON) | `{line_no: {type, original, modified}}` mapping — the fix |
60
+ | `bug_count` | int | number of independent bug blocks (range: {1, 2, 3}) |
61
+ | `bug_type`, `bug_subtype` | string \| null | Orthogonal Defect Classification label (populated for `bug_count == 1`) |
62
+ | `gt_length` | int | line count of `gt_solution` |
63
+ | `editable_lines`, `deletable_lines`, `frozen_lines` | int \| null | handler-derived line counts |
64
+ | `is_buggy` | bool \| null | `true` for single-bug examples, null for composed multi-bug examples |
65
+ | `repo`, `image_name`, `target_file` | string \| null | SWE-smith repository, Docker image and file path (SWE-smith examples only) |
66
+
67
+ SWE-smith examples are evaluated by applying the model's fix to the repository inside its SWE-smith Docker image and running the repository's test suite; see [`dataset/swesmith`](https://github.com/Bill1235813/PDB/tree/main/dataset/swesmith) in the code repository.
68
+
69
+ ## Loading
70
+
71
+ ```python
72
+ from datasets import load_dataset
73
+ ds = load_dataset("Precise-Debugging-Benchmarking/PDB-Wild", split="test")
74
+ example = ds[0]
75
+ print(example["buggy_code"])
76
+ print(example["gt_solution"])
77
+ ```
78
+
79
+ `gt_diff` is a JSON-encoded string; decode with `json.loads(example["gt_diff"])`.
80
+
81
+ ## License
82
+
83
+ MIT.
data/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeae6b7c5f4b3b43f84955e58916dd3f8ac9aef5ce0a399a2ebb3c650cd81023
3
+ size 918539