coolblaze03 commited on
Commit
1514a0b
·
verified ·
1 Parent(s): 344e1c4

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.gitattributes CHANGED
@@ -1,60 +1,4 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.avro filter=lfs diff=lfs merge=lfs -text
4
- *.bin filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ckpt filter=lfs diff=lfs merge=lfs -text
7
- *.ftz filter=lfs diff=lfs merge=lfs -text
8
- *.gz filter=lfs diff=lfs merge=lfs -text
9
- *.h5 filter=lfs diff=lfs merge=lfs -text
10
- *.joblib filter=lfs diff=lfs merge=lfs -text
11
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
- *.lz4 filter=lfs diff=lfs merge=lfs -text
13
- *.mds filter=lfs diff=lfs merge=lfs -text
14
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
- *.model filter=lfs diff=lfs merge=lfs -text
16
- *.msgpack filter=lfs diff=lfs merge=lfs -text
17
- *.npy filter=lfs diff=lfs merge=lfs -text
18
- *.npz filter=lfs diff=lfs merge=lfs -text
19
- *.onnx filter=lfs diff=lfs merge=lfs -text
20
- *.ot filter=lfs diff=lfs merge=lfs -text
21
- *.parquet filter=lfs diff=lfs merge=lfs -text
22
- *.pb filter=lfs diff=lfs merge=lfs -text
23
- *.pickle filter=lfs diff=lfs merge=lfs -text
24
- *.pkl filter=lfs diff=lfs merge=lfs -text
25
- *.pt filter=lfs diff=lfs merge=lfs -text
26
- *.pth filter=lfs diff=lfs merge=lfs -text
27
- *.rar filter=lfs diff=lfs merge=lfs -text
28
  *.safetensors filter=lfs diff=lfs merge=lfs -text
29
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
- *.tar.* filter=lfs diff=lfs merge=lfs -text
31
- *.tar filter=lfs diff=lfs merge=lfs -text
32
- *.tflite filter=lfs diff=lfs merge=lfs -text
33
- *.tgz filter=lfs diff=lfs merge=lfs -text
34
- *.wasm filter=lfs diff=lfs merge=lfs -text
35
- *.xz filter=lfs diff=lfs merge=lfs -text
36
- *.zip filter=lfs diff=lfs merge=lfs -text
37
- *.zst filter=lfs diff=lfs merge=lfs -text
38
- *tfevents* filter=lfs diff=lfs merge=lfs -text
39
- # Audio files - uncompressed
40
- *.pcm filter=lfs diff=lfs merge=lfs -text
41
- *.sam filter=lfs diff=lfs merge=lfs -text
42
- *.raw filter=lfs diff=lfs merge=lfs -text
43
- # Audio files - compressed
44
- *.aac filter=lfs diff=lfs merge=lfs -text
45
- *.flac filter=lfs diff=lfs merge=lfs -text
46
- *.mp3 filter=lfs diff=lfs merge=lfs -text
47
- *.ogg filter=lfs diff=lfs merge=lfs -text
48
- *.wav filter=lfs diff=lfs merge=lfs -text
49
- # Image files - uncompressed
50
- *.bmp filter=lfs diff=lfs merge=lfs -text
51
- *.gif filter=lfs diff=lfs merge=lfs -text
52
- *.png filter=lfs diff=lfs merge=lfs -text
53
- *.tiff filter=lfs diff=lfs merge=lfs -text
54
- # Image files - compressed
55
- *.jpg filter=lfs diff=lfs merge=lfs -text
56
- *.jpeg filter=lfs diff=lfs merge=lfs -text
57
- *.webp filter=lfs diff=lfs merge=lfs -text
58
- # Video files - compressed
59
- *.mp4 filter=lfs diff=lfs merge=lfs -text
60
- *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  *.safetensors filter=lfs diff=lfs merge=lfs -text
2
+ *.gguf filter=lfs diff=lfs merge=lfs -text
3
+ *.jsonl filter=lfs diff=lfs merge=lfs -text
4
+ *.pyc filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
NOTICES.md ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # NOTICES — MBPP held-out benchmark
2
+
3
+ Derived from **MBPP (Mostly Basic Python Problems)**, Austin et al., 2021, Google Research, distributed as `google-research-datasets/mbpp` under **CC-BY-4.0** (Creative Commons Attribution 4.0 International).
4
+
5
+ Licence: https://creativecommons.org/licenses/by/4.0/
6
+
7
+ CHANGES MADE TO THE ORIGINAL, as CC-BY-4.0 §3(a)(1)(B) requires be indicated:
8
+ each reference solution was rewritten through `ast.unparse` (normalising formatting and comments away), compiled to a `.pyc` at `optimize=0`, and paired with a disassembly of the resulting code object. The task text and tests are unmodified. Every row carries its original `task_id`.
README.md ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - decompilation
9
+ - python
10
+ - bytecode
11
+ - code
12
+ - mbpp
13
+ size_categories:
14
+ - n<1K
15
+ configs:
16
+ - config_name: default
17
+ data_files: bench.jsonl
18
+ ---
19
+
20
+ # Data card — MBPP held-out decompilation benchmark
21
+
22
+ 383 MBPP reference solutions compiled to Python 3.12 bytecode and paired with their source, with
23
+ the original `task_id` restored on every row. Built 2026-08-04 by `tools/build_mbpp_ood.py`.
24
+
25
+ **Redistributable** under CC-BY-4.0, provided `NOTICES.md` ships alongside.
26
+
27
+ ---
28
+
29
+ ## The set
30
+
31
+ | | |
32
+ |---|---|
33
+ | Rows | **383** (400 candidates − 17 contaminated) |
34
+ | Source | `google-research-datasets/mbpp`, config `full` |
35
+ | Licence | **CC-BY-4.0** |
36
+ | `task_id` restored | **383 / 383** (all distinct, range 11–973) |
37
+ | Untraceable rows dropped | 0 |
38
+ | **Contaminated rows dropped** | **17** (see below) |
39
+ | Disassembly length | mean 47.5 lines, median 41, max 187 |
40
+ | Python | 3.12, `optimize=0` |
41
+
42
+ ### In what sense this set is independent of training — stated precisely, not as an adjective
43
+
44
+ It is a **different corpus** (`google-research-datasets/mbpp`, not
45
+ `codeparrot/github-code-clean`) and a **different kind of code**: short, self-contained,
46
+ hand-written answers to stated problems, against the training trunk's real project code with its
47
+ framework coupling and helper chains. Both differences are verifiable from row provenance.
48
+
49
+ That matters because the pilot's failure mode was a model learning the *source of the data*
50
+ rather than the task, and a test set drawn from the training source cannot detect it.
51
+
52
+ It is **not** described as out-of-distribution anywhere, and no divergence statistic was computed,
53
+ so no distributional-shift claim is made. The defensible claim is exactly three things:
54
+ different source, different task style, and the verified non-overlap below.
55
+
56
+ ### Contamination — the defect that cost 17 rows
57
+
58
+ **This set was originally decontaminated against the wrong corpus.** `build_ood_mbpp.py` checked
59
+ against the v1-era 10k training labels, but the shipping model (v3) trained on 48,196 rows.
60
+ Re-checked against the corpus v3 actually trained on:
61
+
62
+ | gate | result |
63
+ |---|---|
64
+ | exact canonical match vs v3 corpus | 0 / 400 |
65
+ | **identifier-blind fingerprint vs v3 corpus** | **17 / 400 (4.25%)** |
66
+
67
+ Those 17 are dropped. They are structural collisions rather than copied code — the fingerprint
68
+ erases literals, so `re.sub(' +', ' ', t)` and `re.sub('[- ()]', '', s)` collide despite computing
69
+ different things. The gate is applied anyway: it is the same gate `build_final.py` and the CSN
70
+ builder apply, and arguing with it case by case is precisely how the earlier provenance defects
71
+ happened.
72
+
73
+ After rebuild: **0 / 383** contamination against the v3 corpus, by either gate.
74
+
75
+ ## Task ids restored
76
+
77
+ `build_ood_mbpp.py` wrote only `{input, expected}`, so no row could be traced to its task, prompt
78
+ or tests. Recovery is exact rather than approximate: `expected == canonicalise(mbpp["code"])`, a
79
+ deterministic transform, so rebuilding the map over all 974 MBPP rows (974 rows → 965 distinct
80
+ canonical forms) recovers the id by lookup. All 400 rows matched; the builder refuses to emit a
81
+ row it cannot trace.
82
+
83
+ Each row now carries `provenance.task_id`, `mbpp_split`, the task `prompt`, and the `test_list`.
84
+ The tests travel with the row, so a behavioural check is possible on this set without going back
85
+ to the dataset.
86
+
87
+ ## Decontamination
88
+
89
+ Two stages. At original build time, against the 10k training labels of that era, by exact
90
+ canonical match and by identifier-blind fingerprint (which caught 15 items exact match missed).
91
+ At rebuild, against the **48,196-row corpus the shipping model actually trained on**, removing a
92
+ further 17 rows as above. Rows not adjudicable by the differential-execution oracle were excluded
93
+ at original build time, so every row here was labelled by running it.
94
+
95
+ ## Changes made to the original, as CC-BY-4.0 §3(a)(1)(B) requires be indicated
96
+
97
+ Each reference solution was rewritten through `ast.unparse` — normalising away formatting,
98
+ comments and redundant parentheses — then compiled to a `.pyc` at `optimize=0` and paired with a
99
+ disassembly of the resulting code object. Task text and tests are unmodified.
100
+
101
+ ## Harness soundness on this set
102
+
103
+ `grade.py --self-test-only`: pre-flight **383/383 = 100%**, mutation kill rate **199/199 = 100%**,
104
+ 0 survivors. Note what pre-flight does and does not prove — see `../../ORACLE-LIMITS.md`.
105
+
106
+ ## Read this before quoting any "OOD" figure
107
+
108
+ The published PyBytecode figures labelled *OOD-MBPP* — 91.04% strict greedy, 97.49% certified@32,
109
+ 100% docstring recovery — **were not measured on this set.** They were measured on
110
+ the superseded held-out set (n=279), which despite its name contains no MBPP at all: it is
111
+ GitHub source from the held-out shards of the training corpus. Matching all 974 canonicalised
112
+ MBPP rows against it yields 0 hits, against 400/400 for this set. Evidence in
113
+ `../../LICENSING-DETERMINATION.md` §4.
114
+
115
+ Those numbers remain valid measurements of **held-out generalisation**. They are not
116
+ out-of-distribution measurements, and the label should be corrected wherever it appears.
117
+
118
+ **No scores have been measured on this benchmark.** Doing so requires a generation run (GPU).
119
+
120
+ ## Limitations
121
+
122
+ - MBPP solutions are short and stylistically uniform. Success here says little about long or
123
+ framework-coupled functions; the CSN set is the harder distribution.
124
+ - Rows are the first 400 adjudicable MBPP tasks in split order, minus the 17 contaminated ones. Not a random sample.
125
+ - Two MBPP tasks with identical canonical solutions collapse to one row; 974 rows yield 965
126
+ distinct canonical forms, and the first `task_id` wins.
127
+
128
+ ## Attribution
129
+
130
+ MBPP (Mostly Basic Python Problems), Austin et al., 2021, Google Research.
131
+ <https://huggingface.co/datasets/google-research-datasets/mbpp> — CC-BY-4.0
132
+ (<https://creativecommons.org/licenses/by/4.0/>).
bench.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
build_stats.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "in": 400,
3
+ "kept": 383,
4
+ "drop_untraceable": 0,
5
+ "drop_compile": 0,
6
+ "drop_contaminated_exact": 0,
7
+ "drop_contaminated_fingerprint": 17,
8
+ "task_ids_restored": 383,
9
+ "task_id_min": 11,
10
+ "task_id_max": 973,
11
+ "distinct_task_ids": 383
12
+ }
pyc/00000.pyc ADDED
Binary file (1.19 kB). View file
 
pyc/00001.pyc ADDED
Binary file (496 Bytes). View file
 
pyc/00002.pyc ADDED
Binary file (818 Bytes). View file
 
pyc/00003.pyc ADDED
Binary file (415 Bytes). View file
 
pyc/00004.pyc ADDED
Binary file (440 Bytes). View file
 
pyc/00005.pyc ADDED
Binary file (404 Bytes). View file
 
pyc/00006.pyc ADDED
Binary file (892 Bytes). View file
 
pyc/00007.pyc ADDED
Binary file (359 Bytes). View file
 
pyc/00008.pyc ADDED
Binary file (420 Bytes). View file
 
pyc/00009.pyc ADDED
Binary file (437 Bytes). View file
 
pyc/00010.pyc ADDED
Binary file (385 Bytes). View file
 
pyc/00011.pyc ADDED
Binary file (461 Bytes). View file
 
pyc/00012.pyc ADDED
Binary file (603 Bytes). View file
 
pyc/00013.pyc ADDED
Binary file (513 Bytes). View file
 
pyc/00014.pyc ADDED
Binary file (472 Bytes). View file
 
pyc/00015.pyc ADDED
Binary file (513 Bytes). View file
 
pyc/00016.pyc ADDED
Binary file (731 Bytes). View file
 
pyc/00017.pyc ADDED
Binary file (513 Bytes). View file
 
pyc/00018.pyc ADDED
Binary file (443 Bytes). View file
 
pyc/00019.pyc ADDED
Binary file (337 Bytes). View file
 
pyc/00020.pyc ADDED
Binary file (1.1 kB). View file
 
pyc/00021.pyc ADDED
Binary file (431 Bytes). View file
 
pyc/00022.pyc ADDED
Binary file (830 Bytes). View file
 
pyc/00023.pyc ADDED
Binary file (415 Bytes). View file
 
pyc/00024.pyc ADDED
Binary file (600 Bytes). View file
 
pyc/00025.pyc ADDED
Binary file (508 Bytes). View file
 
pyc/00026.pyc ADDED
Binary file (474 Bytes). View file
 
pyc/00027.pyc ADDED
Binary file (618 Bytes). View file
 
pyc/00028.pyc ADDED
Binary file (331 Bytes). View file
 
pyc/00029.pyc ADDED
Binary file (342 Bytes). View file
 
pyc/00030.pyc ADDED
Binary file (699 Bytes). View file
 
pyc/00031.pyc ADDED
Binary file (442 Bytes). View file
 
pyc/00032.pyc ADDED
Binary file (376 Bytes). View file
 
pyc/00033.pyc ADDED
Binary file (520 Bytes). View file
 
pyc/00034.pyc ADDED
Binary file (454 Bytes). View file
 
pyc/00035.pyc ADDED
Binary file (377 Bytes). View file
 
pyc/00036.pyc ADDED
Binary file (609 Bytes). View file
 
pyc/00037.pyc ADDED
Binary file (392 Bytes). View file
 
pyc/00038.pyc ADDED
Binary file (659 Bytes). View file
 
pyc/00039.pyc ADDED
Binary file (547 Bytes). View file
 
pyc/00040.pyc ADDED
Binary file (404 Bytes). View file
 
pyc/00041.pyc ADDED
Binary file (512 Bytes). View file
 
pyc/00042.pyc ADDED
Binary file (516 Bytes). View file
 
pyc/00043.pyc ADDED
Binary file (352 Bytes). View file
 
pyc/00044.pyc ADDED
Binary file (455 Bytes). View file