Datasets:
|
Download reports/dataset_quality_report.md from dsfasdfaserwer/Dataset: direct link, hf CLI and curl.
- Browser
- Download file 16.9 kB
-
https://huggingface.co/datasets/dsfasdfaserwer/Dataset/resolve/main/reports/dataset_quality_report.md
- Command line
-
hf download hf://datasets/dsfasdfaserwer/Dataset/reports/dataset_quality_report.md
-
curl -L -o dataset_quality_report.md https://huggingface.co/datasets/dsfasdfaserwer/Dataset/resolve/main/reports/dataset_quality_report.md
16.9 kB
| # Dataset Quality Report — Python Programming + Reasoning Training Data Curation | |
| Date: 2026-10-03 · Curator: autonomous dataset-research & curation agent | |
| Target repository: https://huggingface.co/datasets/dsfasdfaserwer/Dataset | |
| ## 1. Objective & priority order | |
| Build a small, extremely high-quality Python programming + Python-reasoning **training** dataset. | |
| Priority: **Quality > correctness > usefulness > diversity > quantity.** | |
| Hard rule: **no benchmark/evaluation datasets** (training on them causes false positives at evaluation time). When a dataset's purpose is ambiguous or contamination is plausible → excluded. | |
| Evidence classes used throughout: **DOCUMENTED** (by dataset creators, in cards/papers/pipeline code), **VERIFIED_BY_US** (independently checked in this curation run), **INFERRED**, **UNKNOWN**. | |
| ## 2. Candidate dataset inventory (researched 2026-10-03) | |
| | Dataset | URL | Rows | Python relevance | Training purpose | Execution verification | Human verification | Reasoning quality | Estimated quality | Decision | | |
| |---|---|---|---|---|---|---|---|---|---| | |
| | bigcode/self-oss-instruct-sc2-exec-filter-50k | huggingface.co/datasets/bigcode/self-oss-instruct-sc2-exec-filter-50k | 50,661 | High (Python-only) | Yes (SFT for StarCoder2-Instruct) | DOCUMENTED (Docker-sandbox execution filter, NeurIPS'24 arXiv:2410.24198) + VERIFIED_BY_US (re-executed) | No (a human-reviewed 15.5k sibling repo is no longer public) | Medium-high (explicit rationale + explanation prose) | **Tier 1** | **PROCESSED (#1)** | | |
| | ise-uiuc/Magicoder-OSS-Instruct-75K | huggingface.co/datasets/ise-uiuc/Magicoder-OSS-Instruct-75K | 75,197 (multilingual; 38,284 python) | Mixed (filter lang=python) | Yes (Magicoder SFT) | DOCUMENTED (paper arXiv:2312.02120: self-generated tests + execution filtering); released rows have **no test field** (VERIFIED_BY_US) | No | Low-medium (no reasoning field; explanation prose follows code) | Tier 2 | **PROCESSED (#2)** | | |
| | ai2-adapt-dev/personahub_code_v2_34999 | huggingface.co/datasets/ai2-adapt-dev/personahub_code_v2_34999 | 34,999 | High | Yes (Tulu-3 SFT mix) | UNKNOWN for this subset | No | Variable; first sampled row internally inconsistent (example says 7 unique words, lists 8) (VERIFIED_BY_US) | Tier 3 | Deferred; license tag missing on mirror | | |
| | m-a-p/Code-Feedback | huggingface.co/datasets/m-a-p/Code-Feedback | ~68k | Partial (multilingual; first row Ruby) | Yes | No evidence | No | Feedback prose | Tier 3 (low end) | Deferred | | |
| | BAAI/TACO | huggingface.co/datasets/BAAI/TACO | ~1.5M | High | Mixed (train + benchmark test split) | Judge accept-status (DOCUMENTED) | Judge-verified | Algorithmic | Would be Tier 2-3 | **REJECTED**: LeetCode-derived rows → LiveCodeBench contamination risk; competitive-programming instruction style ≠ realistic requests; huge | | |
| | KodCode/KodCode-V1 (+SFT-R1/4o) | huggingface.co/datasets/KodCode/KodCode-V1 | ~190k | High | Yes (SFT/RL) | YES (paired pytest-style tests, pass metadata) | No | Long R1 CoT (conflicts with concise-rationale policy) | Would be Tier 1-2 | **REJECTED**: CC-BY-NC-4.0 (non-commercial) incompatible with this Apache-2.0 repo; subsets literally named "Leetcode" (contamination risk) | | |
| | Exercism-Python scrapes (RajMaheshwari/Exercism-Python, DCAgent/a1_exercism_python) | huggingface.co/datasets/RajMaheshwari/Exercism-Python | small | High | Unclear scrape | Human-authored tests | Exercism community | High | Would be Tier 2 | **REJECTED**: Exercism Python tasks are used as Terminal-Bench benchmark tasks (observed HF benchmark repos built from `exercism_python`) → contamination; scrape license/provenance unclear | | |
| | HumanEval, MBPP(+), EvalPlus, DS-1000, APPS, CodeContests, LiveCodeBench, SWE-bench*, BigCodeBench, ClassEval, MultiPL-E, PLB, RepoEval, CRUXEval, SWE-Bench ProMax, Terminal-Bench, APPS+ | various | — | High | **NO — evaluation purpose** | — | — | — | — | **REJECTED by policy** (benchmark/evaluation suites; used by us only as decontamination screening corpora, never as training content) | | |
| | Synthetic unverified sets: CodeAlpaca-20k, python_code_instructions_18k_alpaca, glaive-code-assistant-v2, Evol-Instruct-Code-80k-v1, codefuse Evol-66k, dolphin-coder, evol-codealpaca-v1 | various | 20k-110k | High | Yes | **None** | None | Low-medium | Tier 4 | **REJECTED**: no execution verification; several CC-BY-NC-SA licenses; dolphin-coder LeetCode-derived (contamination); known community-reported quality issues | | |
| | Pretraining corpora: github-code-clean, code_search_net, Nemotron-Post-Training-Dataset-v1 (code part), OpenThoughts-114k (code part) | various | millions | High | Pretraining/SFT-mix | None per-row | None | n/a | n/a for instruction data | **REJECTED/DEFERRED**: no instructions/tests per row; CSN test split used in evals; OpenThoughts code from TACO/LeetCodeGym (contamination) + long fake-CoT policy conflict; Nemotron mixed provenance (deferred) | | |
| | Salesforce/xlam-function-calling-60k | huggingface.co/datasets/Salesforce/xlam-function-calling-60k | 60k | Low-medium | Yes | Formatting pipeline only | No | Low | Out of scope | **REJECTED (out of scope)**: tool-calling JSON, not Python programming/reasoning; BFCL eval-overlap concerns | | |
| Full machine-readable inventory: `metadata/dataset_inventory.json`. | |
| ## 3. Dataset #1 processing summary — bigcode/self-oss-instruct-sc2-exec-filter-50k | |
| ### Why this dataset ranked #1 (evidence) | |
| - **DOCUMENTED**: every released response passed an execution filter in a Docker sandbox during SelfCodeAlign generation (pipeline repo `bigcode-project/starcoder2-self-align`, `execution_filter.py`; NeurIPS'24 paper arXiv:2410.24198). | |
| - **DOCUMENTED**: seeds are real Python functions from The Stack via the MultiPL-T pipeline (arXiv:2308.09895) → grounded in real software. | |
| - **DOCUMENTED**: decontamination scripts (MBPP, DS-1000) exist in the pipeline; **UNKNOWN** whether applied to the released file → we ran our own independent screening (below). | |
| - **VERIFIED_BY_US**: license ODC-BY-1.0 (permissive, attribution); 50,661 rows; Python-only; train split only; purpose = SFT training, not evaluation. | |
| - Generation model: StarCoder2-15B (self-generated; no proprietary-model distillation). | |
| ### Funnel (every one of the 50,661 rows inspected individually) | |
| | Stage | Rows | | |
| |---|---| | |
| | Source rows (train split) | 50,661 | | |
| | Parsed (AST): sections/code/tests/imports extracted; compile check | 50,661 (49,687 compile clean at block level) | | |
| | Static gates: dependency availability (torch/cryptography/etc. missing in sandbox), exact-duplicate code/instruction, near-duplicate instruction (token-Jaccard ≥ 0.88 LSH), instruction sanity | 50,062 pass (593 rejected_dependency_problem, 6 rejected_duplicate) | | |
| | Rows with executable behavioral tests: released test blocks / module-level inline checks | 1,059 | | |
| | Rows with conservatively **derived** tests (from literal examples stated in the instruction; every extracted value validated by `ast.literal_eval`) | 11,269 of 49,003 (23%) | | |
| | Rows with no verifiable tests at all | 37,734 → rejected_unverifiable | | |
| | Sandbox execution: released/inline tests | 1,046 / 1,059 passed (98.8%) | | |
| | Sandbox execution: derived tests | 10,672 / 11,269 passed (94.7%) | | |
| | Repairs (Case A minor fixes): fixture files created from instruction-described contents; 1 real bug fixed (`squared_number`→`squared_numbers`); 1 missing-file check added per instruction; duplicate def removed | 7 / 7 re-verified passed → accepted_after_fix | | |
| | Benchmark-contamination screening (see verification report) | −1,410 rejected_benchmark | | |
| | Post-verification quality gates: flaky/state-dependent tests (7), instruction↔solution function-name mismatch (33) | −40 rejected_low_quality | | |
| | Hard failures vs own released tests (solution contradicts its tests) | −6 rejected_incorrect | | |
| | Derived-test execution failures (solution inconsistent with instruction examples, or unusable derivation) | −597 rejected_unverifiable | | |
| | **Final accepted** | **10,275** (10,268 accepted + 7 accepted_after_fix) | | |
| ### Required per-§21 counters | |
| - Rows inspected: **50,661** (100%, row-by-row; no sampling) | |
| - Rows accepted: **10,275** (incl. 7 accepted_after_fix) | |
| - Rows rejected: **40,386** — rejected_unverifiable 38,331 · rejected_benchmark 1,410 · rejected_dependency_problem 593 · rejected_low_quality 40 · rejected_incorrect 6 · rejected_duplicate 6 | |
| - Rows repaired: **7** (all re-verified) | |
| - Rows that passed execution (by us, in sandbox): **11,725** pre-screening; **10,275** final (all final artifacts re-executed after transformation: 10,308/10,315 passed → 7 flaky dropped) | |
| - Rows containing tests in final dataset: **10,275 / 10,275 (100%)** — released 813 · released+repaired 7 · derived-from-instruction-examples 9,345 · inline module-level asserts 110 (100 of them extracted into `tests`; 10 kept embedded with marker comment) | |
| - Rows with generated/rewritten rationale: reasoning extracted from response prose 7,961 · factual AST-based summary generated (no fabricated monologue) 2,314 · instructions rewritten to remove prescriptive implementation sentences 192 · records receiving cosmetic prose cleanup 4,943 | |
| - Rows ≤16K tokens: **10,275 (100%)** · Rows >16K: **0** (tiktoken `o200k_base` over the full serialized record; p50≈1,009, p95≈1,328, max 2,675) | |
| - Duplicates removed: 6 exact (code or instruction) + near-duplicate LSH pass (≥0.88 content-token Jaccard) at gate stage; post-hoc code-level near-dup check found no additional collapses beyond exact matches | |
| - Benchmark examples excluded: **1,410** (screening vs HumanEval, MBPP full+sanitized, BigCodeBench v0.1.4, DS-1000) | |
| ### Diversity of the final set | |
| - 13,921 distinct seed concepts across 10,275 records (top: string manipulation, comprehensions, formatting, function composition, error/exception handling, …) | |
| - Stdlib/3rd-party coverage in solutions: re (835), typing (316), math (280), datetime (170), os (112), json (106), collections (102), random (85), numpy (77), functools (64), urllib (55), itertools (49), hashlib, sqlite3, asyncio, threading, csv, … | |
| - Task styles: function implementation from behavioral spec, edge-case handling (empty inputs, negatives, unicode), file parsing (CSV/properties/text), formatting/serialization, bit manipulation, dates/timezones, validation, small algorithms (binary search, gcd, primes, LIS-free simple DP), error-handling contracts. | |
| - Asserts per record: 1 → 3,794 · 2 → 2,437 · 3 → 2,423 · 4 → 1,098 · ≥5 → 523 (incl. 10 inline-check records without separate asserts) | |
| - Simple tasks (AST < 12 nodes) kept but tagged `simple_task`: 153 (1.5%) — near-identical duplicates already collapsed by dedup. | |
| ## 3b. Dataset #2 processing summary — ise-uiuc/Magicoder-OSS-Instruct-75K (Python subset) | |
| Processed only after Dataset #1 was fully completed and uploaded (sequential-workflow rule). | |
| ### Why ranked #2 (evidence) | |
| - **DOCUMENTED**: Magicoder paper (ICML'24, arXiv:2312.02120) describes OSS-seeded instruction generation with self-generated tests and execution-based filtering; card states generation by `gpt-3.5-turbo-1106`; file is the `decontaminated` release; MIT license. **VERIFIED_BY_US**: 75,197 rows, fields `lang/seed/problem/solution` — no test artifacts released (this is why Tier 2 not Tier 1: per-row verification had to come from us). | |
| - Non-Python languages (cpp/java/rust/ts/swift/php/c#/shell: 36,913 rows) are out of scope for this Python dataset and were not processed. | |
| ### Funnel (all 38,284 Python rows inspected row-by-row) | |
| | Stage | Rows | | |
| |---|---| | |
| | Python rows | 38,284 | | |
| | Static gates: deps (django/requests/torch/matplotlib/flask/cv2/tf/sklearn/... unavailable & framework-bound → unverifiable in isolation), no-code solutions (prose-only answers), syntax errors, duplicates (incl. **cross-dataset code-hash dedup vs Dataset #1**) | 27,711 pass (9,129 dep · 1,324 no-solution · 120 duplicate incl. cross-dataset) | | |
| | Execution-verifiable subset: derived tests from problem examples (incl. Pattern G: code-block prelude + variable-arg calls with AST-validated safe expressions), inline module-level asserts, released tests | 1,338 | | |
| | No high-confidence derivable tests (mostly project-context tasks: class skeletons, setup.py, RL environments, framework methods) | 26,373 → rejected_unverifiable | | |
| | Sandbox execution | 746 / 1,338 passed (55.8% — released Magicoder solutions were never filtered against *these* stated examples; failures are honest rejections) | | |
| | Benchmark screening (HumanEval/MBPP/BigCodeBench/DS-1000; when-in-doubt-exclude) | −71 rejected_benchmark | | |
| | Determinism double-run + name-mismatch gates | −2 flaky, −0 name-mismatch | | |
| | **Final accepted (Dataset #2)** | **673** | | |
| ### Per-§21 counters (Dataset #2) | |
| - Rows inspected: 38,284 (100%) · accepted: 673 · rejected: 37,611 — unverifiable 26,893 · dependency 9,129 · low_quality 1,326 · incorrect 72 · benchmark 71 · duplicate 120 | |
| - Execution-verified as shipped: 673/673 (each passed twice: selection run + determinism double-run) | |
| - Tests: derived-from-problem-examples 604 · inline module-level asserts 69 (extracted into `tests` where AST-safe, else kept embedded with marker) · released 0 (of 6 rows with released test blocks, none survived execution+screening) | |
| - Token counts (o200k_base, full record): min 891 · p50 1,159 · max 2,391 → all ≤16K; over_16k additions: 0 | |
| - Repairs: 0 · Cross-dataset duplicates removed: included in the 120 (code-hash match vs Dataset #1 or intra-Magicoder) | |
| - Manual review: 20-row random sample read end-to-end; findings consistent with automated gates (demo `print` blocks in a few solutions execute harmlessly; retained and observable in `code`) | |
| ### Combined repository totals after Datasets #1+#2 | |
| - **10,948 accepted records** (10,275 + 673), 100% execution-verified as shipped, 100% ≤16K tokens, 0 duplicate code hashes across sources. | |
| - Audit trail: 88,945 processing-log rows; 77,997 rejected-row records with reasons. | |
| Only sources with **documented, per-row execution verification** and **training intent** and **permissive licensing** and **acceptable contamination risk** were processable at our acceptance bar (every accepted row re-executed by us with tests). Two datasets met the bar and were processed in strict sequence: self-oss-instruct-sc2-exec-filter-50k (#1, 10,275 accepted) and Magicoder-OSS-Instruct-75K python subset (#2, 673 accepted — small because released rows ship without test artifacts, so acceptance required conservative test derivation from each problem's own stated examples). Remaining ranked candidates (personahub_code_v2, Code-Feedback) are Tier 3 with unknown/weak verification evidence and unclear licensing on their public mirrors; per the quality-first mandate they were not force-processed in this run and are documented as deferred. This matches the brief: it is acceptable — and expected — that only a small number of datasets are suitable. | |
| ## 5. Licensing & attribution | |
| - Source: bigcode/self-oss-instruct-sc2-exec-filter-50k — **ODC-BY-1.0** (attribution required, redistribution permitted). | |
| - Seeds ultimately derive from The Stack (permissive-license subset) via MultiPL-T. | |
| - This repository declares Apache-2.0; attribution to the source dataset and pipeline papers is provided in the dataset card and per-record provenance. No NC-licensed content included (KodCode and Evol-* rejected on license grounds). | |
| ## 6. Known limitations (honest, per §22) | |
| 1. `human_verified = false` on all records: no human-reviewed variant of the source is publicly available; curation review was agent-performed (40-row stratified manual sample + automated gates). | |
| 2. Upstream decontamination application to the released file is UNKNOWN → mitigated by our independent screening (HumanEval/MBPP/BigCodeBench/DS-1000). LiveCodeBench was **not** used as a screening corpus (its items are recent contest problems; our source is OSS-function-derived — different provenance class; residual risk documented). | |
| 3. Derived tests (9,345 records) verify the behavior **stated by the instruction's own literal examples** (1-5 asserts each). They are weaker than exhaustive test suites; rows where no high-confidence examples existed were rejected rather than accepted on smoke-run alone (37,734 rows). | |
| 4. Semantic (embedding-level) dedup was not run; dedup was exact + lexical near-dup (token-Jaccard LSH). | |
| 5. Sandbox isolation: separate subprocess, stripped env (no credentials reachable), resource limits, wall timeout, temp cwd — but no network namespace; one row attempting an absolute-path workspace write was detected during verification and dropped. | |
| 6. Rows needing unavailable deps (torch 575, cryptography/Crypto 13, misc 5) were rejected_dependency_problem; only 6 torch rows had tests, so dependency installation was not justified. | |