ierd-codeforces-subtle-bugs
收藏资源简介:
该数据集是IERD Codeforces Subtle Bugs数据集,包含682个针对682个Codeforces问题生成的细微有缺陷C++解决方案。每个解决方案通过了冻结源语料库中的大部分测试,但会失败1到5个存储的人类或Hugging Face测试。数据集还包含冻结清单、来源文件以及最终测试生成研究的汇总报告。数据来源于sr3nn/codeforces-1000-dataset,该数据集源自Google DeepMind CodeContests。数据集提供多个配置(mutations、upstream20、exploratory-v1、final-v2、count-ablation-v3、output-only-v4、paper-baseline-v6等),包括主表(mutations)和各类生成测试及批次状态文件。主表包含26列,记录了问题ID、变异体ID、有缺陷源码、参考解决方案、测试失败计数、变异来源等详细信息。生成测试配置包含不同协议下的测试输入和批次状态,总计超过21万条记录。该数据集适用于测试生成、突变测试和细微错误检测的研究。注意:有缺陷程序是生成的,应在受限沙箱中执行。
This dataset is the IERD Codeforces Subtle Bugs dataset, containing 682 subtly defective C++ solutions generated for 682 Codeforces problems. Each solution passes the majority of tests in the frozen source corpus but fails 1 to 5 stored human or Hugging Face tests. The dataset also includes a frozen manifest, source files, and a summary report for final test generation research. The data originates from sr3nn/codeforces-1000-dataset, which is derived from Google DeepMind CodeContests. The dataset provides multiple configurations (mutations, upstream20, exploratory-v1, final-v2, count-ablation-v3, output-only-v4, paper-baseline-v6, etc.), including a main table (mutations) and various generated test and batch status files. The main table contains 26 columns recording details such as problem ID, variant ID, defective source code, reference solution, test failure count, mutation source, etc. The generated test configurations include test inputs and batch status under different protocols, totaling over 210,000 records. This dataset is suitable for research in test generation, mutation testing, and subtle bug detection. Note: The defective programs are generated and should be executed in a restricted sandbox.
IERD Codeforces Subtle Bugs 数据集概述
基本信息
- 许可证: CC BY 4.0
- 语言: 英语
- 规模: 100K < n < 1M
- 任务类别: 文本生成
- 标签: 代码、竞争性编程、软件测试、变异测试、测试生成
数据集内容
该数据集包含 682个生成的有缺陷C++解决方案,对应682个Codeforces问题。每个解决方案通过冻结源语料库中的大部分测试,但会在1到5个存储的人类或Hugging Face测试中失败。
数据来源
- 基于
sr3nn/codeforces-1000-dataset(commite0d77676690682abc3905fb6c50cc613fa3439a0) - 该数据集源自 Google DeepMind CodeContests
- 冻结名册包含1,000个问题,SHA-256:
3ac8b48cf7be78a7fc3b761f43e9146b1f6e0d88cada50b5ddf27ab34c50af76 - 接受的变异清单包含682行,SHA-256:
1b833a1596f8c62925ad12f38c0645957909d74a69cdc0374caea1bf73e72934
文件结构
data/mutations.parquet— 主表(mutations/train分割)data/mutations.jsonl.gz— 确定性的逐行副本data/accepted_buggy_solutions.jsonl— 精确冻结清单solutions/— 每个接受变异的C++文件generated-tests/— Parquet查看表、确定性JSONL gzip副本、组合索引、模式、计数、来源哈希和校验和provenance/— 来源导出、冻结摘要和固定的上游元数据reports/— 最终v2、独立计数v3、仅输出v4和Study E v6报告CHECKSUMS.sha256— 除自身外每个上传文件的SHA-256哈希
主表列
| 列名 | 含义 |
|---|---|
schema_version |
冻结清单模式版本 |
problem_id |
Codeforces问题标识符 |
roster_position |
冻结的1,000问题名册中的零基位置 |
mutation_id |
稳定的已接受变异标识符 |
buggy_source |
完整的生成C++源代码 |
source_sha256 |
buggy_source 的SHA-256 |
solution_path |
solutions/ 下匹配的文件 |
mutation_provider |
产生变异的路径 |
mutation_model |
记录的具体模型归属 |
mutation_created_at |
来源生成数据库的时间戳 |
human_hf_failure_count |
变异失败的存储源测试数量(1-5) |
fail_compile, fail_runtime, fail_timeout, fail_wrong_answer |
按结果分类的失败计数 |
reference_a_id, reference_b_id |
两个冻结参考解决方案的ID |
reference_a_sha256, reference_b_sha256 |
两个参考的冻结来源哈希 |
reference_a_source, reference_b_source |
两个独立存储的正确参考的完整来源文本 |
source_dataset, source_revision, roster_sha256 |
固定的源数据集身份 |
stored_tests_generated, stored_tests_private, stored_tests_public, stored_tests_total |
变异接受时可用的测试来源计数 |
变异选择
- 模型生成对已验证参考解决方案的小改动
- 本地管道针对问题的所有可用存储测试编译并运行每个候选
- 只有当变异导致1到5个测试失败时才接受
- 失败类型可为错误答案、运行时错误或超时;编译失败也被记录
- 清单每个包含问题冻结一个已接受的变异
测试生成研究
- 每个问题和提供者固定预算50个请求输入
- plain-50-raw-v2: 仅给模型问题陈述
- saga-mutap-50-raw-v2: 给每个提供者自己的陈述分析、已验证参考和冻结突变体;请求35个初始输入,本地评估,再请求15个使用状态和检测反馈的输入
- 生成输入仅在两个冻结参考解决方案成功完成并产生相同token标准化输出时有效
- 有效输入在突变体返回不同输出、崩溃或超时时检测到错误
生成测试查看器配置
| 配置/分割 | 行数 | 内容 |
|---|---|---|
upstream20/tests |
27,250 | 早期上游管道生成的输入 |
exploratory-v1/tests |
45,800 | 探索性v1生成的输入 |
exploratory-v1-status/batch_status |
2,724 | 每个未评估的v1批次 |
final-v2/tests |
136,000 | 每个2,720个评估v2批次中恰好50个原始槽位 |
final-v2-status/batch_status |
8 | 终端失败的v2批次 |
count-ablation-v3-tests/tests |
120,798 | 独立计数v3协议的存储原始槽位 |
count-ablation-v3-batches/batches |
10,230 | 每个冻结的v3设计批次 |
output-only-v4-tests/tests |
62,407 | 仅输出v4协议的存储原始槽位 |
output-only-v4-batches/batches |
4,774 | 每个冻结的v4设计批次 |
paper-baseline-v6-tests/tests |
66,850 | 每个评估Study E v6批次中恰好50个存储原始槽位 |
paper-baseline-v6-batches/batches |
1,364 | 每个注册的Study E v6批次 |
combined-index/train |
211,782 | 所有导出的测试和批次状态记录的薄索引 |
使用限制与预期用途
- 支持测试生成、变异测试和微妙错误检测的研究
- 结果仅适用于此选定的Codeforces语料库、冻结突变体和记录的模型版本
- 有缺陷的程序是生成产物,不得在受限沙箱之外执行,某些源文件可能包含不安全或不可移植代码
- 接受的测试计数衡量存储的源测试,而非错误严重程度
- 生成的测试配置不包含提供者HTTP信封、重试日志、时间/资源遥测或源SQLite数据库
引用与归属
- 固定源数据集声明非代码材料为CC BY 4.0
- Codeforces陈述和参赛者提交可能有单独条款
- 使用时应引用固定源数据集、Google DeepMind CodeContests以及研究中使用的论文方法




