Datasets:
v1.1: append 1,893 SFT problems (open-r1/codeforces, Code-Contests-Plus, Python 2 recovered)
Browse files- NOTICE +22 -0
- README.md +40 -6
- build_report.json +81 -16
- problems-train.parquet +2 -2
- references.parquet +2 -2
NOTICE
CHANGED
|
@@ -27,5 +27,27 @@ derived from the reference's CPU time; problems split into train, eval and
|
|
| 27 |
qualification by problem id. One passing upstream solution per problem is
|
| 28 |
shipped in references.parquet.
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
Every row carries its upstream source and row id in `origin_json`. This
|
| 31 |
attribution must be kept with the data.
|
|
|
|
| 27 |
qualification by problem id. One passing upstream solution per problem is
|
| 28 |
shipped in references.parquet.
|
| 29 |
|
| 30 |
+
Rows added in v1.1 (origin_json "build": "v1.1") are also derived from:
|
| 31 |
+
|
| 32 |
+
open-r1/codeforces, Hugging Face
|
| 33 |
+
https://huggingface.co/datasets/open-r1/codeforces
|
| 34 |
+
revision fbe3f6e903ee854eec2e69e9d96d0306cde59baf (`verifiable`), and
|
| 35 |
+
open-r1/codeforces-submissions
|
| 36 |
+
https://huggingface.co/datasets/open-r1/codeforces-submissions
|
| 37 |
+
revision 07e7bf31f284b0e90e02dfc7ab675d5821e1c068
|
| 38 |
+
Licensed under CC-BY-4.0.
|
| 39 |
+
|
| 40 |
+
Code-Contests-Plus, ByteDance Seed
|
| 41 |
+
https://huggingface.co/datasets/ByteDance-Seed/Code-Contests-Plus
|
| 42 |
+
revision 96c850540fade31d384a25766461e0da6b08f5fc (`ccplus_1x`)
|
| 43 |
+
Licensed under CC-BY-4.0.
|
| 44 |
+
|
| 45 |
+
Changes made for v1.1: rating, date, checker and interaction filters;
|
| 46 |
+
deduplication against the v1 pool and across sources; LiveCodeBench
|
| 47 |
+
decontamination; Python 2 references converted with 2to3; tests capped at 32
|
| 48 |
+
and 4 MiB per problem; time limits rescaled for Python; problems kept on
|
| 49 |
+
upstream-validated tests when no Python reference passes; problems whose
|
| 50 |
+
statement depends on a figure and that have no reference removed.
|
| 51 |
+
|
| 52 |
Every row carries its upstream source and row id in `origin_json`. This
|
| 53 |
attribution must be kept with the data.
|
README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
|
|
|
| 3 |
pretty_name: competitive-code-curated
|
| 4 |
task_categories:
|
| 5 |
- text-generation
|
|
@@ -25,21 +26,23 @@ configs:
|
|
| 25 |
Competitive-programming problems graded on hidden stdin/stdout tests, curated
|
| 26 |
for verifiable RL by the `reliquary-competitive-code` environment
|
| 27 |
(reliquary-environments, `environments/code/reliquary_competitive_code`).
|
| 28 |
-
Python 3 only. See `NOTICE` for sources and licences
|
|
|
|
| 29 |
|
| 30 |
## Files
|
| 31 |
|
| 32 |
| file | rows |
|
| 33 |
| --- | --- |
|
| 34 |
-
| `problems-train.parquet` | 6,899 |
|
| 35 |
| `problems-eval.parquet` | 166 |
|
| 36 |
| `problems-qualification.parquet` | 208 |
|
| 37 |
-
| `references.parquet` |
|
| 38 |
| `build_report.json` | drop counts and sha256 of the four files |
|
| 39 |
|
| 40 |
Problem columns: `problem_id` (16 hex), `statement`, `tests_json`
|
| 41 |
(`[[stdin, stdout], ...]`), `time_limit_s` (CPU seconds), `origin_json`
|
| 42 |
-
(upstream source and row
|
|
|
|
| 43 |
|
| 44 |
## SFT / RL share of train
|
| 45 |
|
|
@@ -52,9 +55,12 @@ a contiguous range of `problems-train.parquet`:
|
|
| 52 |
| --- | --- | --- |
|
| 53 |
| SFT | `[0, 4181)` | 4,181 |
|
| 54 |
| RL | `[4181, 6899)` | 2,718 |
|
|
|
|
| 55 |
|
| 56 |
The rule depends only on the problem's identity: a rebuild keeps every problem
|
| 57 |
-
on its side.
|
|
|
|
|
|
|
| 58 |
|
| 59 |
## Build (2026-10-09)
|
| 60 |
|
|
@@ -83,3 +89,31 @@ Reward 1.0 when the program passes every test within `time_limit_s` CPU
|
|
| 83 |
seconds, else 0.0. Token-wise comparison (`yes`/`no` case-insensitive,
|
| 84 |
decimals within 1e-6). Problems with several valid answers are excluded:
|
| 85 |
there is no checker.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: mit-and-cc-by-4.0
|
| 4 |
pretty_name: competitive-code-curated
|
| 5 |
task_categories:
|
| 6 |
- text-generation
|
|
|
|
| 26 |
Competitive-programming problems graded on hidden stdin/stdout tests, curated
|
| 27 |
for verifiable RL by the `reliquary-competitive-code` environment
|
| 28 |
(reliquary-environments, `environments/code/reliquary_competitive_code`).
|
| 29 |
+
Python 3 only. See `NOTICE` for sources and licences: rows from DeepCoder are
|
| 30 |
+
MIT, rows added in v1.1 (open-r1/codeforces, Code-Contests-Plus) are CC-BY-4.0.
|
| 31 |
|
| 32 |
## Files
|
| 33 |
|
| 34 |
| file | rows |
|
| 35 |
| --- | --- |
|
| 36 |
+
| `problems-train.parquet` | 8,792 (6,899 from v1, 1,893 added in v1.1) |
|
| 37 |
| `problems-eval.parquet` | 166 |
|
| 38 |
| `problems-qualification.parquet` | 208 |
|
| 39 |
+
| `references.parquet` | 9,166 (one passing Python 3 solution per problem; `""` for a v1.1 problem shipped on upstream tests only) |
|
| 40 |
| `build_report.json` | drop counts and sha256 of the four files |
|
| 41 |
|
| 42 |
Problem columns: `problem_id` (16 hex), `statement`, `tests_json`
|
| 43 |
(`[[stdin, stdout], ...]`), `time_limit_s` (CPU seconds), `origin_json`
|
| 44 |
+
(upstream source and row; v1.1 rows add `reference_kind`, `rating`,
|
| 45 |
+
`contest_date` and `upstream_time_limit_s`). Tests are stored in row groups and read lazily.
|
| 46 |
|
| 47 |
## SFT / RL share of train
|
| 48 |
|
|
|
|
| 55 |
| --- | --- | --- |
|
| 56 |
| SFT | `[0, 4181)` | 4,181 |
|
| 57 |
| RL | `[4181, 6899)` | 2,718 |
|
| 58 |
+
| SFT (v1.1) | `[6899, 8792)` | 1,893 |
|
| 59 |
|
| 60 |
The rule depends only on the problem's identity: a rebuild keeps every problem
|
| 61 |
+
on its side. Problems added in v1.1 are all for SFT and appended after the v1
|
| 62 |
+
rows (sorted by `problem_id` among themselves), so every v1 row keeps its
|
| 63 |
+
index and content.
|
| 64 |
|
| 65 |
## Build (2026-10-09)
|
| 66 |
|
|
|
|
| 89 |
seconds, else 0.0. Token-wise comparison (`yes`/`no` case-insensitive,
|
| 90 |
decimals within 1e-6). Problems with several valid answers are excluded:
|
| 91 |
there is no checker.
|
| 92 |
+
|
| 93 |
+
## v1.1 extension (2026-10-15)
|
| 94 |
+
|
| 95 |
+
1,893 problems appended to train, all SFT. Eval and qualification are
|
| 96 |
+
unchanged (same sha256). Sources: open-r1/codeforces `verifiable` @`fbe3f6e9`
|
| 97 |
+
(rating 1200-2400, before 2024-08, stdio, no checker, not interactive; Python
|
| 98 |
+
references from open-r1/codeforces-submissions @`07e7bf31`), Code-Contests-Plus
|
| 99 |
+
1x @`96c85054` (stock checkers our comparator reproduces exactly), and v1
|
| 100 |
+
problems rejected only because their reference was Python 2 (converted with
|
| 101 |
+
2to3). Deduplicated against the v1 pool and across sources (exact match plus
|
| 102 |
+
13-gram containment at 0.3), decontaminated against every LiveCodeBench
|
| 103 |
+
version and v1's eval and qualification statements.
|
| 104 |
+
|
| 105 |
+
| | open-r1 | Code-Contests-Plus | Python 2 |
|
| 106 |
+
| --- | --- | --- | --- |
|
| 107 |
+
| selected | 963 | 1,314 | 412 |
|
| 108 |
+
| dropped: too few tests within 4 MiB | 214 | 17 | - |
|
| 109 |
+
| dropped: upstream tests not validated | - | 318 | 81 |
|
| 110 |
+
| dropped: references disagree / wrong | 14 | 32 | - |
|
| 111 |
+
| dropped: figure in statement, no reference | - | 108 | - |
|
| 112 |
+
| dropped: other | - | 10 | 2 |
|
| 113 |
+
| **appended** | **735** | **829** | **329** |
|
| 114 |
+
|
| 115 |
+
`reference_kind`: `python_reference` 213, `py2to3` 674, `upstream_tests_only`
|
| 116 |
+
1,006. An `upstream_tests_only` problem has no Python solution that passes;
|
| 117 |
+
its tests are the upstream's validated ones and a completion is graded on them
|
| 118 |
+
alone. Time limit = 4 x the upstream limit, between 1 and 10 s, never below 4 x
|
| 119 |
+
a passing reference's CPU time. Up to 32 tests and 4 MiB of tests per problem.
|
build_report.json
CHANGED
|
@@ -2,23 +2,88 @@
|
|
| 2 |
"files": {
|
| 3 |
"problems-eval.parquet": "c6188cbb32d4eeae233470ac7061511b4e89953508da6506686845d1331e85f2",
|
| 4 |
"problems-qualification.parquet": "a6b4edd4534d299772870970c9de856e2f690ea5504f6112ead0505d1a2deb6e",
|
| 5 |
-
"problems-train.parquet": "
|
| 6 |
-
"references.parquet": "
|
| 7 |
},
|
| 8 |
"report": {
|
| 9 |
-
"
|
| 10 |
-
"
|
| 11 |
-
"
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
}
|
| 24 |
}
|
|
|
|
| 2 |
"files": {
|
| 3 |
"problems-eval.parquet": "c6188cbb32d4eeae233470ac7061511b4e89953508da6506686845d1331e85f2",
|
| 4 |
"problems-qualification.parquet": "a6b4edd4534d299772870970c9de856e2f690ea5504f6112ead0505d1a2deb6e",
|
| 5 |
+
"problems-train.parquet": "c80d22ad0bc7054cc1ae5c0492bcc10fd0d96d3fe06f64a18cb413dd84f3a4b7",
|
| 6 |
+
"references.parquet": "f86db0b03e4dc8bda2fa74f691be5f7046830e68e26f3382dee60cc0b0a50a27"
|
| 7 |
},
|
| 8 |
"report": {
|
| 9 |
+
"appended": 1893,
|
| 10 |
+
"build": "v1.1",
|
| 11 |
+
"curate": {
|
| 12 |
+
"ccplus:curated": 829,
|
| 13 |
+
"ccplus:dropped_image_without_reference": 108,
|
| 14 |
+
"ccplus:dropped_no_passing_reference": 318,
|
| 15 |
+
"ccplus:dropped_reference_too_slow": 9,
|
| 16 |
+
"ccplus:dropped_references_disagree": 32,
|
| 17 |
+
"ccplus:dropped_too_few_tests": 17,
|
| 18 |
+
"ccplus:dropped_yesno_checker_other_tokens": 1,
|
| 19 |
+
"ccplus:kind_py2to3": 327,
|
| 20 |
+
"ccplus:kind_python_reference": 53,
|
| 21 |
+
"ccplus:kind_upstream_tests_only": 449,
|
| 22 |
+
"ccplus:selected": 1314,
|
| 23 |
+
"openr1:curated": 735,
|
| 24 |
+
"openr1:dropped_reference_wrong_answer": 5,
|
| 25 |
+
"openr1:dropped_references_disagree": 9,
|
| 26 |
+
"openr1:dropped_too_few_tests": 214,
|
| 27 |
+
"openr1:kind_py2to3": 18,
|
| 28 |
+
"openr1:kind_python_reference": 160,
|
| 29 |
+
"openr1:kind_upstream_tests_only": 557,
|
| 30 |
+
"openr1:selected": 963,
|
| 31 |
+
"py2:curated": 329,
|
| 32 |
+
"py2:dropped_no_passing_reference": 81,
|
| 33 |
+
"py2:dropped_reference_too_slow": 2,
|
| 34 |
+
"py2:kind_py2to3": 329,
|
| 35 |
+
"py2:selected": 412,
|
| 36 |
+
"python_cpu_over_upstream_limit": {
|
| 37 |
+
"max": 1.969,
|
| 38 |
+
"median": 0.075,
|
| 39 |
+
"n": 558,
|
| 40 |
+
"p90": 0.557,
|
| 41 |
+
"p95": 0.816
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"policy": {
|
| 45 |
+
"containment": 0.3,
|
| 46 |
+
"max_tests": 32,
|
| 47 |
+
"max_time_limit_s": 10.0,
|
| 48 |
+
"python_time_factor": 4.0,
|
| 49 |
+
"test_bytes": 4194304
|
| 50 |
+
},
|
| 51 |
+
"select": {
|
| 52 |
+
"ccplus:candidates": 6830,
|
| 53 |
+
"ccplus:dropped_checker": 2167,
|
| 54 |
+
"ccplus:dropped_contained_13gram": 1137,
|
| 55 |
+
"ccplus:dropped_contaminated": 528,
|
| 56 |
+
"ccplus:dropped_dup_of_v1_pool": 3963,
|
| 57 |
+
"ccplus:dropped_multi_answer": 169,
|
| 58 |
+
"ccplus:dropped_rating": 1996,
|
| 59 |
+
"ccplus:loaded": 11690,
|
| 60 |
+
"ccplus:merged_into_other_source_copy": 416,
|
| 61 |
+
"ccplus:sampled": 1314,
|
| 62 |
+
"ccplus:selected": 1314,
|
| 63 |
+
"openr1:candidates": 3234,
|
| 64 |
+
"openr1:dropped_checker": 1713,
|
| 65 |
+
"openr1:dropped_contained_13gram": 251,
|
| 66 |
+
"openr1:dropped_contaminated": 289,
|
| 67 |
+
"openr1:dropped_dup_of_v1_pool": 2020,
|
| 68 |
+
"openr1:dropped_multi_answer": 224,
|
| 69 |
+
"openr1:dropped_no_tests": 312,
|
| 70 |
+
"openr1:dropped_not_executable": 664,
|
| 71 |
+
"openr1:dropped_not_stdio": 232,
|
| 72 |
+
"openr1:dropped_rating": 2888,
|
| 73 |
+
"openr1:loaded": 9556,
|
| 74 |
+
"openr1:sampled": 963,
|
| 75 |
+
"openr1:selected": 963,
|
| 76 |
+
"py2:candidates": 439,
|
| 77 |
+
"py2:dropped_contained_13gram": 24,
|
| 78 |
+
"py2:dropped_contaminated": 3,
|
| 79 |
+
"py2:dropped_no_python2_reference": 797,
|
| 80 |
+
"py2:sampled": 412,
|
| 81 |
+
"py2:selected": 412,
|
| 82 |
+
"py2:v1_leads": 8509,
|
| 83 |
+
"py2:v1_rejected_leads": 1236,
|
| 84 |
+
"py2:v1_rows": 21294
|
| 85 |
+
},
|
| 86 |
+
"train_sft_v11_count": 1893,
|
| 87 |
+
"train_sft_v11_start": 6899
|
| 88 |
}
|
| 89 |
}
|
problems-train.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c80d22ad0bc7054cc1ae5c0492bcc10fd0d96d3fe06f64a18cb413dd84f3a4b7
|
| 3 |
+
size 757480029
|
references.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f86db0b03e4dc8bda2fa74f691be5f7046830e68e26f3382dee60cc0b0a50a27
|
| 3 |
+
size 1779618
|