Dataset Viewer
Auto-converted to Parquet Duplicate
path
stringlengths
13
13
task_binary
unknown
bugsinpy-0000
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 60, 107, 115, 219, 182, 178, 249, 204, 95, 129, 48, 61, 165, 148, 72, 180, 94, 126, 169, 85, 206, 201, 105, 155, 38, 115, 79, 27, 79, 146, 78, 38, 147, 248, 42, 16, 9, 73, ...
bugsinpy-0001
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 60, 107, 115, 219, 56, 146, 249, 204, 95, 129, 40, 83, 67, 42, 145, 105, 61, 253, 80, 70, 217, 201, 228, 113, 73, 221, 110, 226, 114, 178, 151, 74, 101, 92, 28, 136, 4, 37, ...
bugsinpy-0002
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 210, 159, 249, 43, 16, 186, 83, 73, 141, 68, 145, 122, 38, 74, 149, 54, 151, 52, 77, 230, 218, 196, 227, 186, 151, 201, 36, 25, 133, 34, 65, 137, 49, ...
bugsinpy-0003
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 147, 211, 56, 146, 207, 254, 21, 194, 179, 75, 156, 37, 113, 222, 153, 33, 108, 216, 157, 227, 113, 80, 119, 11, 212, 236, 108, 109, 81, 64, 5, 197, 150, 19, 129, 95...
bugsinpy-0004
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 210, 159, 249, 43, 80, 166, 83, 81, 141, 68, 137, 122, 218, 202, 201, 109, 46, 73, 47, 153, 187, 54, 25, 55, 109, 39, 147, 100, 20, 144, 132, 36, 212, ...
bugsinpy-0005
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 105, 115, 219, 182, 210, 159, 249, 43, 16, 186, 83, 74, 141, 68, 221, 146, 173, 84, 105, 211, 58, 121, 241, 180, 141, 61, 142, 219, 78, 38, 241, 40, 20, 9, 74, 140, 73, ...
bugsinpy-0006
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 50, 159, 249, 43, 16, 186, 83, 73, 141, 69, 145, 122, 217, 81, 170, 180, 185, 166, 109, 58, 119, 151, 100, 220, 116, 50, 153, 196, 163, 66, 36, 104, 49...
bugsinpy-0007
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 210, 159, 249, 43, 16, 186, 45, 169, 68, 162, 68, 61, 99, 165, 74, 155, 107, 154, 75, 230, 174, 113, 198, 117, 167, 147, 113, 60, 50, 69, 130, 50, 99, ...
bugsinpy-0008
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 60, 107, 119, 219, 54, 178, 249, 204, 95, 129, 48, 221, 82, 74, 100, 74, 212, 203, 182, 178, 202, 54, 219, 108, 55, 57, 183, 219, 228, 120, 189, 237, 201, 113, 124, 20, 136, ...
bugsinpy-0009
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 93, 115, 219, 54, 50, 207, 252, 21, 8, 211, 169, 164, 68, 162, 72, 125, 186, 74, 149, 214, 109, 146, 75, 230, 218, 196, 227, 186, 237, 100, 82, 143, 66, 145, 160, 132, 15...
bugsinpy-0010
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 210, 159, 249, 43, 16, 166, 83, 73, 141, 68, 189, 37, 91, 57, 165, 205, 53, 105, 147, 185, 107, 227, 113, 221, 233, 100, 98, 143, 2, 145, 144, 196, 152...
bugsinpy-0011
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 184, 49, 159, 249, 43, 16, 250, 122, 162, 18, 153, 18, 245, 176, 18, 165, 74, 47, 119, 201, 53, 153, 54, 137, 199, 241, 181, 147, 201, 121, 116, 16, 9, 74,...
bugsinpy-0012
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 50, 159, 245, 43, 16, 186, 83, 73, 141, 68, 145, 122, 217, 81, 170, 180, 105, 146, 182, 153, 107, 99, 143, 227, 94, 39, 147, 100, 100, 136, 4, 37, 214,...
bugsinpy-0013
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 60, 253, 115, 219, 54, 178, 254, 153, 127, 5, 194, 244, 74, 41, 145, 168, 111, 91, 86, 78, 105, 210, 228, 114, 205, 188, 215, 198, 227, 248, 230, 38, 147, 248, 84, 136, 4, 37...
bugsinpy-0014
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 210, 159, 249, 43, 16, 165, 83, 74, 141, 68, 145, 148, 37, 59, 202, 41, 173, 47, 113, 27, 207, 181, 182, 199, 113, 211, 203, 36, 30, 5, 34, 65, 137, ...
bugsinpy-0015
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 50, 159, 249, 43, 80, 186, 45, 169, 70, 162, 68, 61, 109, 229, 148, 54, 215, 180, 151, 204, 245, 26, 143, 235, 78, 39, 147, 120, 20, 138, 4, 37, 52, ...
bugsinpy-0016
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 50, 159, 249, 43, 16, 166, 173, 168, 68, 166, 222, 178, 173, 84, 105, 115, 77, 219, 100, 174, 151, 100, 92, 231, 58, 153, 212, 195, 64, 36, 40, 161, 23...
bugsinpy-0017
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 239, 115, 219, 182, 46, 159, 245, 87, 176, 202, 110, 182, 215, 88, 182, 252, 51, 113, 159, 187, 117, 109, 186, 246, 222, 91, 147, 75, 179, 183, 235, 181, 57, 151, 150, 40, ...
bugsinpy-0018
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 60, 253, 115, 219, 56, 174, 253, 89, 127, 5, 87, 217, 89, 217, 87, 91, 254, 254, 136, 123, 238, 109, 174, 31, 215, 204, 219, 109, 50, 105, 250, 118, 58, 109, 199, 165, 37, 21...
bugsinpy-0019
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 60, 105, 115, 219, 56, 178, 254, 204, 95, 129, 161, 167, 134, 82, 34, 83, 164, 78, 91, 89, 101, 215, 185, 38, 169, 23, 31, 229, 241, 212, 86, 42, 118, 209, 16, 9, 73, 156, ...
bugsinpy-0020
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 50, 159, 249, 43, 16, 186, 45, 165, 68, 162, 168, 151, 101, 43, 167, 180, 190, 164, 105, 51, 215, 54, 30, 199, 55, 55, 153, 52, 195, 64, 36, 40, 33, ...
bugsinpy-0021
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 184, 209, 159, 249, 43, 16, 249, 230, 36, 53, 18, 245, 150, 28, 165, 74, 47, 205, 163, 151, 233, 93, 146, 241, 185, 115, 147, 201, 101, 104, 136, 4, 37, 15...
bugsinpy-0022
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 210, 159, 249, 43, 16, 166, 83, 81, 137, 76, 139, 122, 218, 74, 149, 107, 174, 105, 174, 153, 187, 38, 25, 215, 157, 78, 38, 245, 40, 16, 9, 74, 168, ...
bugsinpy-0023
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 210, 159, 249, 43, 16, 186, 83, 73, 141, 68, 189, 37, 91, 57, 165, 73, 147, 230, 146, 185, 94, 226, 113, 221, 233, 100, 146, 12, 3, 145, 160, 196, 152,...
bugsinpy-0024
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 210, 159, 249, 43, 16, 186, 83, 73, 141, 69, 145, 122, 218, 74, 149, 214, 109, 154, 75, 230, 122, 73, 198, 117, 167, 147, 105, 50, 10, 68, 66, 18, 106,...
bugsinpy-0025
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 60, 109, 115, 219, 54, 210, 249, 204, 95, 129, 200, 157, 82, 74, 36, 154, 122, 117, 226, 156, 114, 231, 38, 205, 37, 115, 109, 237, 113, 124, 115, 147, 73, 61, 10, 68, 130, 1...
bugsinpy-0026
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 184, 209, 159, 249, 43, 16, 230, 230, 36, 53, 18, 173, 183, 28, 165, 74, 235, 139, 237, 59, 79, 19, 219, 99, 43, 237, 100, 28, 15, 3, 145, 160, 196, 51, ...
bugsinpy-0027
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 60, 107, 115, 219, 182, 178, 249, 204, 95, 129, 200, 157, 74, 58, 145, 104, 234, 237, 40, 71, 57, 39, 109, 110, 219, 204, 109, 19, 143, 227, 51, 157, 140, 235, 97, 32, 18, 18...
bugsinpy-0028
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 60, 251, 115, 220, 54, 206, 249, 89, 127, 5, 35, 119, 170, 221, 100, 87, 214, 62, 253, 200, 109, 174, 110, 146, 94, 51, 95, 26, 123, 92, 247, 110, 50, 169, 103, 203, 149, 168...
bugsinpy-0029
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 109, 83, 219, 70, 147, 207, 250, 21, 23, 209, 169, 237, 198, 22, 150, 108, 99, 226, 212, 105, 211, 164, 109, 50, 79, 91, 24, 74, 159, 78, 38, 97, 156, 179, 116, 194, 10, ...
bugsinpy-0030
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 210, 159, 249, 43, 16, 186, 83, 73, 141, 69, 137, 122, 58, 206, 201, 109, 218, 52, 77, 230, 218, 198, 227, 186, 211, 201, 36, 25, 5, 36, 65, 137, 53, ...
bugsinpy-0031
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 60, 109, 115, 219, 54, 210, 249, 204, 95, 129, 208, 157, 74, 106, 100, 234, 221, 178, 213, 42, 109, 154, 151, 75, 230, 210, 56, 227, 248, 238, 38, 147, 100, 100, 136, 4, 37, ...
bugsinpy-0032
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 60, 109, 115, 219, 54, 210, 254, 204, 95, 129, 50, 157, 74, 186, 72, 180, 104, 73, 150, 173, 156, 114, 151, 198, 237, 53, 115, 105, 236, 113, 125, 115, 147, 73, 51, 50, 68, 1...
bugsinpy-0033
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 28, 107, 115, 219, 54, 50, 159, 249, 43, 16, 185, 83, 74, 141, 68, 147, 146, 44, 57, 206, 41, 109, 218, 52, 77, 230, 174, 73, 198, 245, 77, 39, 147, 120, 100, 136, 4, 37, 2...
bugsinpy-0034
[ 31, 139, 8, 0, 35, 18, 106, 106, 2, 255, 237, 60, 253, 115, 219, 56, 174, 253, 89, 127, 5, 171, 238, 172, 237, 214, 81, 252, 157, 196, 61, 247, 174, 215, 110, 175, 157, 183, 219, 102, 114, 185, 185, 233, 116, 51, 42, 45, ...
End of preview. Expand in Data Studio

exp_rpt_bugsinpy-v2

A repaired version of DCAgent/exp_rpt_bugsinpy: 500 single-file Python bug-fixing tasks (BugsInPy-derived) with a robust, default-fail verifier that fixes the original's "reward is always 0" problem.

Why v2 exists

In the original dataset the per-task tests/test_solution.py files were LLM-generated and frequently malformed — undefined inspect/os imports, markdown fences, @pytest.main() decorators, bad bytes literals, references to APIs the buggy solution.py doesn't expose. Because tests/ is not agent-editable, any collection error in a test file makes the reward permanently 0 for that task, no matter what the agent does. A second class of tasks passed all tests on the buggy code, rewarding doing nothing.

This v2 makes every task produce a sensible reward signal.

Format

A single tasks.parquet with one row per task, columns path (bugsinpy-NNNN) and task_binary (gzipped tar of the task dir). Each task:

instruction.md            # the bug description (agent-facing)
metadata.json             # source / project / buggy+fixed commits
task.toml
environment/
  Dockerfile              # python:3.10-slim + pytest; bakes buggy solution + a baseline copy
  solution.py             # the BUGGY starter code (agent edits /app/solution.py)
tests/
  test.sh                 # robust default-fail verifier (see below)
  test_solution.py        # the per-task unit tests (mechanically repaired)
  test_state.py           # Harbor assertion: reward.txt == "1"; reports pass_ratio
  config.json             # test weights

Reward logic (tests/test.sh)

The verifier is default-fail and rewards 1 only when the agent produces a real, importable fix:

  1. echo 0 > reward.txt (default-fail), set PYTHONPATH=/app.
  2. No-op guard/app/solution.py must differ from the baked-in /app/.buggy_solution.py. An unedited solution always scores 0 (kills the "buggy already passes all tests" leak).
  3. Compile guardpython3 -m py_compile /app/solution.py must succeed.
  4. Import guardpython3 -c "import solution" must succeed. Many buggy starters fail to import at module load (e.g. a missing import os); making the module importable is part of the task, so a still-broken import scores 0.
  5. Run pytest /tests/test_solution.py and parse the summary:
    • Tests collect & run → reward 1 iff passed > 0 and failed == 0 (i.e. the agent's fix makes the whole suite pass); 0 otherwise.
    • Test file cannot be collected (irreparably broken independent of the solution) → fall back to the basic check: reward 1 iff changed + compiles + imports (the Option-B fallback).

pass_ratio = passed/(passed+failed) is written to /logs/verifier/pass_ratio.txt.

What was repaired

  • Mechanically auto-repaired 13 test files (Option A): stripped embedded markdown fences/prose, removed the malformed @pytest.main() decorator, converted non-ASCII bytes literals to str, fixed from typing import Enumfrom enum import Enum and from collections import MutableMappingfrom collections.abc, and injected missing stdlib imports (os, sys, re, inspect, dataclasses.dataclass, abc.abstractmethod, typing.Optional, …) for names referenced-but-undefined.
  • Generic fallback (Option B) applies to 6 tasks (~1%) whose test files reference APIs the solution does not expose (e.g. await outside async, tensorflow, missing solution attributes) and cannot be auto-repaired without a gold fix.

Reward-signal breakdown (against the buggy starter, 500 tasks)

Signal Count %
Test-driven (suite collects; fix → pass) 461 92%
Buggy solution fails to import (agent must repair import first) 31 6%
Generic fallback (broken test file → basic check) 6 1%
Timeout 2 <1%

Validation

Docker smoke test (build image per task, run tests/test.sh):

Scenario Expected Result
Unchanged buggy solution 0 0
Empty /app (no solution.py) 0 0
Changed but solution.py fails to import 0 0
Changed but tests still fail 0 0
Changed + all tests pass 1 1

Notes / limitations

  • No gold solution/solve.sh is provided (parity with the source). The reward signal is verified structurally, not against a known-correct fix.
  • The 6 generic-fallback tasks give reward 1 for any changed, importable solution (weaker signal); all other tasks use the real unit-test suite.
  • Snapshot-safe: all 500 tasks share a single environment/Dockerfile.
Downloads last month
43