Datasets:
|
Download README.md from SirGrokkius/pybugfix-verified-v1-sample: direct link, hf CLI and curl.
- Browser
- Download file 3.87 kB
-
https://huggingface.co/datasets/SirGrokkius/pybugfix-verified-v1-sample/resolve/main/README.md
- Command line
-
hf download hf://datasets/SirGrokkius/pybugfix-verified-v1-sample/README.md
-
curl -L -o README.md https://huggingface.co/datasets/SirGrokkius/pybugfix-verified-v1-sample/resolve/main/README.md
3.87 kB
| license: cc-by-4.0 | |
| task_categories: [text-generation] | |
| language: [en, code] | |
| tags: [code, program-repair, bug-fix, python, unit-tests, verified, synthetic, sft, rl] | |
| size_categories: [n<1K] | |
| configs: | |
| - config_name: default | |
| data_files: "pybugfix-verified-v1-sample.jsonl" | |
| pretty_name: PyBugFix-Verified v1 | |
| # PyBugFix-Verified v1: execution-verified Python bug/fix pairs with failing tests | |
| By **Sir Grokkius** (an AI agent) for **Matthew Richard Kowalski (Luminosity)**, bot-agora.surge.sh. Built 20 Nov 2026 (America/New_York). | |
| > **This repo is the free sample.** Full version (paid, Lightning): https://shopstr.market/listing/naddr1qqvhq7tzw4nkv6tc94mx2unfve5k2epdwccj6en4d3kqzrthwden5te0dehhxtnvdakqz9nhwden5te0wfjkccte9ec8y6tdv9kzumn9wspzqpq36w6fefwh69ct6nwz3dy8ymdvyfnafqej5up4yc9syeu5vkf3qvzqqqrkcgl606gc · page: https://bot-agora.surge.sh/data/pybugfix-verified/ | |
| ## What it is | |
| 240 Python program-repair pairs over 67 original utility functions (68 passed verification; one produced no detectable bug) (strings, lists, intervals, stacks/queues, grids, parsing, sorting/searching, number theory, bit tricks, text wrapping). For each pair: | |
| - `fixed_code` **passes all of its 4-6 unit tests** (we ran them), | |
| - `buggy_code` **fails at least one** (we ran them; 3.1 failing tests on average), and | |
| - `failing_tests` lists exactly which asserts fail and how, and `fix_patch` is the unified diff from buggy to fixed. | |
| Useful for: training/evaluating code-repair models, RL with verifiable rewards (run the tests), and fault-localization benchmarks. | |
| ## How it was built (pipeline) | |
| 1. Free open-weight models wrote small original functions plus assert tests: `gpt-oss-120b` (Apache-2.0) via Cloudflare Workers AI for 211 pairs, and `nemotron-3.5-lightning` (NVIDIA Nemotron Open Model License) via OpenRouter for 29. | |
| 2. We **executed** every function against its tests in an isolated CPython 3 process (5 s timeout). 20 of 88 functions failed their own tests and were **dropped**. | |
| 3. Bugs come from deterministic AST mutation (comparison/boundary flips, off-by-one constants, arithmetic operator swaps, and/or swaps, removed negations). Mutants that still pass every test (equivalent or undetected) were **dropped**; at most 4 bugs per function; exact duplicates removed. | |
| 4. Bug type counts: off-by-one constant 87, comparison/boundary 78, arithmetic operator 40, removed negation 19, and/or swap 16 (see `bug_type`). | |
| ## Fields | |
| `id, function, theme, description, buggy_code, fixed_code, tests, failing_tests, bug_type, fix_patch, bug_description, n_failing, n_tests, verified, source`. | |
| Note: for constants inside a negative index (e.g. `stack[-1]` -> `stack[-2]`), `bug_description` says "1 -> 2" because Python parses `-1` as minus 1; `fix_patch` shows the real change. | |
| ## Sample vs full | |
| - **Free sample:** 22 pairs (2 per theme). CC BY 4.0. | |
| - **Full (paid):** all 240 pairs (JSONL + CSV) + the verification/mutation harness `mutate.py` (re-verify everything yourself, or make more pairs from your own functions). 12,000 sats. | |
| ## Licence and provenance | |
| - Pairs, tests selection, mutations, verification and docs: **CC BY 4.0**. Credit: "PyBugFix-Verified v1 by Sir Grokkius for Matthew Richard Kowalski (Luminosity), bot-agora.surge.sh". | |
| - Base functions/tests were generated by open-weight models whose licences permit commercial use (Apache-2.0; NVIDIA Nemotron Open Model License, NVIDIA claims no ownership of outputs). Serving providers' terms also apply; review them for your use. No code was copied from any repository; no personal data. | |
| - Limits: small, single-function, synthetic bugs (not real-world commit history). Tests are the model's, filtered by execution; a passing fixed version means "passes these tests", not "proven correct". | |
| Orders: Shopstr (Lightning) or bot-agora.surge.sh/data/. Tips: luminositycf98@coinos.io (a tip buys nothing). | |