Datasets:
Upload current 75kplus snapshot with 500 val and 500 test
Browse files- .gitattributes +2 -0
- README.md +51 -0
- all.jsonl +3 -0
- metadata.json +118 -0
- test.jsonl +0 -0
- train.jsonl +3 -0
- val.jsonl +0 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,5 @@ saved_model/**/* 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
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
all.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
train.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- code
|
| 7 |
+
- en
|
| 8 |
+
pretty_name: Stack v2 Sparse Python Classes 75kplus
|
| 9 |
+
size_categories:
|
| 10 |
+
- 10K<n<100K
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Stack v2 Sparse Python Classes 75kplus
|
| 14 |
+
|
| 15 |
+
This is a frozen snapshot with 75829 samples for Diffusion + Autoregressive hybrid code generation experiments.
|
| 16 |
+
|
| 17 |
+
## Splits
|
| 18 |
+
|
| 19 |
+
- `train.jsonl`: 74829
|
| 20 |
+
- `val.jsonl`: 500
|
| 21 |
+
- `test.jsonl`: 500
|
| 22 |
+
- `all.jsonl`: 75829
|
| 23 |
+
|
| 24 |
+
## Source
|
| 25 |
+
|
| 26 |
+
The data is extracted from `bigcode/the-stack-v2-dedup`, Python subset. The extraction uses Stack v2 metadata as source of truth, groups candidates by `repo_name + revision_id`, fetches files with git partial fetch + sparse checkout, then applies AST-level class filters.
|
| 27 |
+
|
| 28 |
+
This snapshot freezes the first `75829` JSONL rows from the live local dataset at packaging time, then shuffles with seed `42` before splitting.
|
| 29 |
+
|
| 30 |
+
## Record Format
|
| 31 |
+
|
| 32 |
+
Each JSONL row is one Python class sample. Important fields include:
|
| 33 |
+
|
| 34 |
+
- `prompt`: natural-language class implementation prompt
|
| 35 |
+
- `skeleton`: class/method signatures and docstrings with `<|body_i|>` slots
|
| 36 |
+
- `bodies`: list of method bodies without docstrings
|
| 37 |
+
- `bodies_text`: body slots wrapped by `<|body_start_i|>` and `<|end_body_i|>`
|
| 38 |
+
- `full_text`: skeleton plus body slots
|
| 39 |
+
- `solution`: reconstructed class code
|
| 40 |
+
- `source_repo`, `source_path`, `revision_id`, `blob_id`, `detected_licenses`: source metadata
|
| 41 |
+
|
| 42 |
+
## Filters
|
| 43 |
+
|
| 44 |
+
- 2 to 6 methods per class
|
| 45 |
+
- every method has a non-empty docstring
|
| 46 |
+
- every method body has 3 to 30 non-empty lines
|
| 47 |
+
- reconstructed class parses as Python AST
|
| 48 |
+
- tests/docs/examples/vendor/generated files are excluded by metadata/path filters
|
| 49 |
+
- simple ClassEval/HumanEval contamination filters are applied
|
| 50 |
+
|
| 51 |
+
Strict pyflakes is not used as a hard filter because isolated extracted classes often depend on module-level imports, constants, parent classes, or helper functions.
|
all.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:154a1db98b68d4c62438e45d191e8943e625250fe2e03ae03649e2eeb3ecd6cb
|
| 3 |
+
size 944413557
|
metadata.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "stack_v2_sparse_classes_75kplus",
|
| 3 |
+
"snapshot_size": 75829,
|
| 4 |
+
"snapshot_seed": 42,
|
| 5 |
+
"source_dataset_dir": "data/stack_v2_sparse_classes_30k",
|
| 6 |
+
"source_dataset": "bigcode/the-stack-v2-dedup",
|
| 7 |
+
"source_data_files": "multi-shard running snapshot from Stack v2 Python parquet files",
|
| 8 |
+
"bad_json_lines_skipped": 0,
|
| 9 |
+
"splits": {
|
| 10 |
+
"train": 74829,
|
| 11 |
+
"val": 500,
|
| 12 |
+
"test": 500
|
| 13 |
+
},
|
| 14 |
+
"format": "class-level Python code generation with prompt, skeleton, method bodies, and reconstructed solution",
|
| 15 |
+
"filters": {
|
| 16 |
+
"min_methods": 2,
|
| 17 |
+
"max_methods": 6,
|
| 18 |
+
"require_method_docstrings": true,
|
| 19 |
+
"min_body_lines": 3,
|
| 20 |
+
"max_body_lines": 30,
|
| 21 |
+
"max_total_tokens": 1500,
|
| 22 |
+
"min_length_bytes": 500,
|
| 23 |
+
"max_length_bytes": 50000,
|
| 24 |
+
"skip_tests_docs_examples_init": true,
|
| 25 |
+
"pyflakes_hard_filter": false
|
| 26 |
+
},
|
| 27 |
+
"method_count_distribution": {
|
| 28 |
+
"2": 44668,
|
| 29 |
+
"3": 16949,
|
| 30 |
+
"4": 7896,
|
| 31 |
+
"5": 4079,
|
| 32 |
+
"6": 2237
|
| 33 |
+
},
|
| 34 |
+
"top_repos": [
|
| 35 |
+
[
|
| 36 |
+
"cohesity/management-sdk-python",
|
| 37 |
+
692
|
| 38 |
+
],
|
| 39 |
+
[
|
| 40 |
+
"microsoftgraph/msgraph-sdk-python",
|
| 41 |
+
631
|
| 42 |
+
],
|
| 43 |
+
[
|
| 44 |
+
"home-assistant/core",
|
| 45 |
+
491
|
| 46 |
+
],
|
| 47 |
+
[
|
| 48 |
+
"953250587/leetcode-python",
|
| 49 |
+
202
|
| 50 |
+
],
|
| 51 |
+
[
|
| 52 |
+
"sungminoh/algorithms",
|
| 53 |
+
187
|
| 54 |
+
],
|
| 55 |
+
[
|
| 56 |
+
"Shiv2157k/leet_code",
|
| 57 |
+
186
|
| 58 |
+
],
|
| 59 |
+
[
|
| 60 |
+
"metoppv/improver",
|
| 61 |
+
180
|
| 62 |
+
],
|
| 63 |
+
[
|
| 64 |
+
"jansel/pytorch-jit-paritybench",
|
| 65 |
+
172
|
| 66 |
+
],
|
| 67 |
+
[
|
| 68 |
+
"Jimmy-INL/google-research",
|
| 69 |
+
155
|
| 70 |
+
],
|
| 71 |
+
[
|
| 72 |
+
"bssrdf/pyleet",
|
| 73 |
+
145
|
| 74 |
+
],
|
| 75 |
+
[
|
| 76 |
+
"oxhead/CodingYourWay",
|
| 77 |
+
135
|
| 78 |
+
],
|
| 79 |
+
[
|
| 80 |
+
"vincent-lg/tsunami",
|
| 81 |
+
123
|
| 82 |
+
],
|
| 83 |
+
[
|
| 84 |
+
"JavaRod/SP_Python220B_2019",
|
| 85 |
+
119
|
| 86 |
+
],
|
| 87 |
+
[
|
| 88 |
+
"vsdrun/lc_public",
|
| 89 |
+
119
|
| 90 |
+
],
|
| 91 |
+
[
|
| 92 |
+
"log2timeline/plaso",
|
| 93 |
+
117
|
| 94 |
+
],
|
| 95 |
+
[
|
| 96 |
+
"espnet/espnet",
|
| 97 |
+
115
|
| 98 |
+
],
|
| 99 |
+
[
|
| 100 |
+
"mindspore-ai/models",
|
| 101 |
+
113
|
| 102 |
+
],
|
| 103 |
+
[
|
| 104 |
+
"inventree/InvenTree",
|
| 105 |
+
113
|
| 106 |
+
],
|
| 107 |
+
[
|
| 108 |
+
"dealflowteam/Idfy",
|
| 109 |
+
112
|
| 110 |
+
],
|
| 111 |
+
[
|
| 112 |
+
"yiming1012/MyLeetCode",
|
| 113 |
+
106
|
| 114 |
+
]
|
| 115 |
+
],
|
| 116 |
+
"avg_body_lines": 9.061921161179859,
|
| 117 |
+
"task": "Given class/method signatures and docstrings, generate class skeleton and method bodies for Diffusion + AR hybrid code generation experiments."
|
| 118 |
+
}
|
test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c8e4f4ca12187dc4ce46873dccc86aa06c712095aa7260a5a837cd1936cafdb
|
| 3 |
+
size 931843959
|
val.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|