Datasets:
data: add condition-3-zh-5k and condition-4-zh-5k as short-name configs
Browse filesAdds `condition-3-zh-5k` and `condition-4-zh-5k` to `configs` and `dataset_info`, reading the same parquet files as the `phase-2-the-stack-v1-condition-{3,4}-zh-5k` configs (the corpora are unchanged across phases, so one copy of the files serves both names). The config table, 'Used by' lines and load example keep the short names, which now resolve. The earlier commit on this PR that pointed prose at the phase-2 names is superseded.
README.md
CHANGED
|
@@ -98,6 +98,18 @@ configs:
|
|
| 98 |
path: data/condition-2-zh-5k/train-*
|
| 99 |
- split: validation
|
| 100 |
path: data/condition-2-zh-5k/validation-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
- config_name: condition-5-es-5k-c4ai-aya-expanse-32b
|
| 102 |
data_files:
|
| 103 |
- split: train
|
|
@@ -596,6 +608,62 @@ dataset_info:
|
|
| 596 |
num_examples: 500
|
| 597 |
download_size: 24686270
|
| 598 |
dataset_size: 65409803
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 599 |
- config_name: condition-5-es-5k-c4ai-aya-expanse-32b
|
| 600 |
features:
|
| 601 |
- name: code
|
|
@@ -917,7 +985,7 @@ dataset_info:
|
|
| 917 |
|
| 918 |
> **Experiment and proposed paper title:** _Language Decoded: Exploring the Impact of Native Code on Multilingual Models_
|
| 919 |
|
| 920 |
-
> **Note (2026-05-18, updated 2026-10-13):** Current Phase 3 configs use the short `condition-*` namespace and include `103k`, `20k`, and `5k` sizes for Conditions 1--2
|
| 921 |
|
| 922 |
Multilingual Python code datasets for the **Language Decoded** project (part of [Cohere's Tiny Aya Expedition](https://aya.for.ai)). See [legesher/language-decoded-experiments](https://huggingface.co/datasets/legesher/language-decoded-experiments) for the canonical project description, the full experimental ladder, and the paper-grade evaluation results.
|
| 923 |
|
|
@@ -964,8 +1032,8 @@ Conditions 1--2 are available in three current Phase 3 sizes: `-103k` full corpo
|
|
| 964 |
| `condition-2-ur-103k` | 2 | Urdu | Legesher v0.7.3 reserved-word translation | 93,547 | 10,395 |
|
| 965 |
| `condition-2-ur-20k` | 2 | Urdu | Random 20k subset of `condition-2-ur-103k` | 18,000 | 2,000 |
|
| 966 |
| `condition-2-ur-5k` | 2 | Urdu | Compact 5k subset | 4,500 | 500 |
|
| 967 |
-
| `
|
| 968 |
-
| `
|
| 969 |
| `condition-5-ur-5k-c4ai-aya-expanse-32b` | 5 | Urdu | Model-translated (full LLM translation via Cohere Aya) — raw, pre-cleanup | 4,088 | 381 |
|
| 970 |
| `condition-5-zh-5k-c4ai-aya-expanse-32b` | 5 | Chinese | Model-translated (full LLM translation via Cohere Aya) — raw, pre-cleanup | 4,052 | 381 |
|
| 971 |
| `condition-5-es-5k-c4ai-aya-expanse-32b` | 5 | Spanish | Model-translated (full LLM translation via Cohere Aya) — raw, pre-cleanup | 4,032 | 329 |
|
|
@@ -1003,7 +1071,7 @@ Condition 5 uses the conditions 1--2 schema plus an `idx` column. `code` is the
|
|
| 1003 |
|
| 1004 |
### Condition 3
|
| 1005 |
|
| 1006 |
-
Used by: `
|
| 1007 |
|
| 1008 |
In Phase 3, Condition 3 ("Mixed Native Sources") refers to **community-collected raw Chinese code from varied online public-source repositories** — reflecting how non-English Python is actually used in real-world projects. The "Mixed Native Sources" name carries from Phase 2, where it originally referred to a planned composite (native code padded with cond-2 transpiled files); in Phase 3 the "mixed" refers to the diversity of source locations, not a cond-2/native composite. The physical dataset has not changed across phases.
|
| 1009 |
|
|
@@ -1021,7 +1089,7 @@ The schema includes a `source_type` column from the Phase 2 composite design, wh
|
|
| 1021 |
|
| 1022 |
### Condition 4
|
| 1023 |
|
| 1024 |
-
Used by: `
|
| 1025 |
|
| 1026 |
Condition 4 ("Community-Contributed Native Code") is intended to contain code whose problem-solving logic is itself native — written as if a native speaker were approaching the problem, not English code that was later translated. The current dataset reflects an earlier Phase 2 attempt to assemble this corpus; community contributions were insufficient for stable training, so cond-4 was not evaluated in either Phase 2 or Phase 3. Cond-5's fully-translated data served as Phase 3's practical proxy because gathering native-authored code at scale proved difficult. Direct contributions to the cond-4 corpus are open at the [`legesher/legesher-native-code`](https://huggingface.co/spaces/legesher/legesher-native-code) HF Space.
|
| 1027 |
|
|
@@ -1084,11 +1152,10 @@ ds = load_dataset("legesher/language-decoded-data", "condition-2-es-5k")
|
|
| 1084 |
ds = load_dataset("legesher/language-decoded-data", "condition-2-ur-5k")
|
| 1085 |
|
| 1086 |
# Load blended native + transpiled (condition 3)
|
| 1087 |
-
|
| 1088 |
-
ds = load_dataset("legesher/language-decoded-data", "phase-2-the-stack-v1-condition-3-zh-5k")
|
| 1089 |
|
| 1090 |
# Load strictly native code (condition 4)
|
| 1091 |
-
ds = load_dataset("legesher/language-decoded-data", "
|
| 1092 |
|
| 1093 |
# Load model-translated code (condition 5 -- raw, pre-cleanup)
|
| 1094 |
ds = load_dataset("legesher/language-decoded-data", "condition-5-ur-5k-c4ai-aya-expanse-32b")
|
|
|
|
| 98 |
path: data/condition-2-zh-5k/train-*
|
| 99 |
- split: validation
|
| 100 |
path: data/condition-2-zh-5k/validation-*
|
| 101 |
+
- config_name: condition-3-zh-5k
|
| 102 |
+
data_files:
|
| 103 |
+
- split: train
|
| 104 |
+
path: data/phase-2-the-stack-v1/condition-3-zh-5k/train-*
|
| 105 |
+
- split: validation
|
| 106 |
+
path: data/phase-2-the-stack-v1/condition-3-zh-5k/validation-*
|
| 107 |
+
- config_name: condition-4-zh-5k
|
| 108 |
+
data_files:
|
| 109 |
+
- split: train
|
| 110 |
+
path: data/phase-2-the-stack-v1/condition-4-zh-5k/train-*
|
| 111 |
+
- split: validation
|
| 112 |
+
path: data/phase-2-the-stack-v1/condition-4-zh-5k/validation-*
|
| 113 |
- config_name: condition-5-es-5k-c4ai-aya-expanse-32b
|
| 114 |
data_files:
|
| 115 |
- split: train
|
|
|
|
| 608 |
num_examples: 500
|
| 609 |
download_size: 24686270
|
| 610 |
dataset_size: 65409803
|
| 611 |
+
- config_name: condition-3-zh-5k
|
| 612 |
+
features:
|
| 613 |
+
- name: file_path
|
| 614 |
+
dtype: large_string
|
| 615 |
+
- name: code
|
| 616 |
+
dtype: large_string
|
| 617 |
+
- name: code_en
|
| 618 |
+
dtype: string
|
| 619 |
+
- name: language
|
| 620 |
+
dtype: large_string
|
| 621 |
+
- name: license
|
| 622 |
+
dtype: large_string
|
| 623 |
+
- name: token_count
|
| 624 |
+
dtype: int64
|
| 625 |
+
- name: source_type
|
| 626 |
+
dtype: large_string
|
| 627 |
+
splits:
|
| 628 |
+
- name: train
|
| 629 |
+
num_bytes: 40782466
|
| 630 |
+
num_examples: 4500
|
| 631 |
+
- name: validation
|
| 632 |
+
num_bytes: 4531385
|
| 633 |
+
num_examples: 500
|
| 634 |
+
download_size: 17299185
|
| 635 |
+
dataset_size: 45313851
|
| 636 |
+
- config_name: condition-4-zh-5k
|
| 637 |
+
features:
|
| 638 |
+
- name: filename
|
| 639 |
+
dtype: string
|
| 640 |
+
- name: content
|
| 641 |
+
dtype: string
|
| 642 |
+
- name: extension
|
| 643 |
+
dtype: string
|
| 644 |
+
- name: source
|
| 645 |
+
dtype: string
|
| 646 |
+
- name: quality_tier
|
| 647 |
+
dtype: string
|
| 648 |
+
- name: sha256
|
| 649 |
+
dtype: string
|
| 650 |
+
- name: byte_size
|
| 651 |
+
dtype: int64
|
| 652 |
+
- name: total_lines
|
| 653 |
+
dtype: int64
|
| 654 |
+
- name: cjk_ratio
|
| 655 |
+
dtype: float64
|
| 656 |
+
- name: has_cjk
|
| 657 |
+
dtype: bool
|
| 658 |
+
splits:
|
| 659 |
+
- name: train
|
| 660 |
+
num_bytes: 44246508
|
| 661 |
+
num_examples: 6553
|
| 662 |
+
- name: validation
|
| 663 |
+
num_bytes: 7522476
|
| 664 |
+
num_examples: 729
|
| 665 |
+
download_size: 18300000
|
| 666 |
+
dataset_size: 51768984
|
| 667 |
- config_name: condition-5-es-5k-c4ai-aya-expanse-32b
|
| 668 |
features:
|
| 669 |
- name: code
|
|
|
|
| 985 |
|
| 986 |
> **Experiment and proposed paper title:** _Language Decoded: Exploring the Impact of Native Code on Multilingual Models_
|
| 987 |
|
| 988 |
+
> **Note (2026-05-18, updated 2026-10-13):** Current Phase 3 configs use the short `condition-*` namespace and include `103k`, `20k`, and `5k` sizes for Conditions 1--2. Phase 2 configs remain available under the `phase-2-the-stack-v1-*` namespace for reproducibility. `condition-3-zh-5k` and `condition-4-zh-5k` are the Phase 3 names for the community-collected native-code corpora; they read the same files as `phase-2-the-stack-v1-condition-{3,4}-zh-5k` because those corpora are unchanged across phases.
|
| 989 |
|
| 990 |
Multilingual Python code datasets for the **Language Decoded** project (part of [Cohere's Tiny Aya Expedition](https://aya.for.ai)). See [legesher/language-decoded-experiments](https://huggingface.co/datasets/legesher/language-decoded-experiments) for the canonical project description, the full experimental ladder, and the paper-grade evaluation results.
|
| 991 |
|
|
|
|
| 1032 |
| `condition-2-ur-103k` | 2 | Urdu | Legesher v0.7.3 reserved-word translation | 93,547 | 10,395 |
|
| 1033 |
| `condition-2-ur-20k` | 2 | Urdu | Random 20k subset of `condition-2-ur-103k` | 18,000 | 2,000 |
|
| 1034 |
| `condition-2-ur-5k` | 2 | Urdu | Compact 5k subset | 4,500 | 500 |
|
| 1035 |
+
| `condition-3-zh-5k` | 3 | Chinese | Blended: native Chinese code + transpiled Python | 4,500 | 500 |
|
| 1036 |
+
| `condition-4-zh-5k` | 4 | Chinese | Strictly native Chinese code | 6,553 | 729 |
|
| 1037 |
| `condition-5-ur-5k-c4ai-aya-expanse-32b` | 5 | Urdu | Model-translated (full LLM translation via Cohere Aya) — raw, pre-cleanup | 4,088 | 381 |
|
| 1038 |
| `condition-5-zh-5k-c4ai-aya-expanse-32b` | 5 | Chinese | Model-translated (full LLM translation via Cohere Aya) — raw, pre-cleanup | 4,052 | 381 |
|
| 1039 |
| `condition-5-es-5k-c4ai-aya-expanse-32b` | 5 | Spanish | Model-translated (full LLM translation via Cohere Aya) — raw, pre-cleanup | 4,032 | 329 |
|
|
|
|
| 1071 |
|
| 1072 |
### Condition 3
|
| 1073 |
|
| 1074 |
+
Used by: `condition-3-zh-5k`
|
| 1075 |
|
| 1076 |
In Phase 3, Condition 3 ("Mixed Native Sources") refers to **community-collected raw Chinese code from varied online public-source repositories** — reflecting how non-English Python is actually used in real-world projects. The "Mixed Native Sources" name carries from Phase 2, where it originally referred to a planned composite (native code padded with cond-2 transpiled files); in Phase 3 the "mixed" refers to the diversity of source locations, not a cond-2/native composite. The physical dataset has not changed across phases.
|
| 1077 |
|
|
|
|
| 1089 |
|
| 1090 |
### Condition 4
|
| 1091 |
|
| 1092 |
+
Used by: `condition-4-zh-5k`
|
| 1093 |
|
| 1094 |
Condition 4 ("Community-Contributed Native Code") is intended to contain code whose problem-solving logic is itself native — written as if a native speaker were approaching the problem, not English code that was later translated. The current dataset reflects an earlier Phase 2 attempt to assemble this corpus; community contributions were insufficient for stable training, so cond-4 was not evaluated in either Phase 2 or Phase 3. Cond-5's fully-translated data served as Phase 3's practical proxy because gathering native-authored code at scale proved difficult. Direct contributions to the cond-4 corpus are open at the [`legesher/legesher-native-code`](https://huggingface.co/spaces/legesher/legesher-native-code) HF Space.
|
| 1095 |
|
|
|
|
| 1152 |
ds = load_dataset("legesher/language-decoded-data", "condition-2-ur-5k")
|
| 1153 |
|
| 1154 |
# Load blended native + transpiled (condition 3)
|
| 1155 |
+
ds = load_dataset("legesher/language-decoded-data", "condition-3-zh-5k")
|
|
|
|
| 1156 |
|
| 1157 |
# Load strictly native code (condition 4)
|
| 1158 |
+
ds = load_dataset("legesher/language-decoded-data", "condition-4-zh-5k")
|
| 1159 |
|
| 1160 |
# Load model-translated code (condition 5 -- raw, pre-cleanup)
|
| 1161 |
ds = load_dataset("legesher/language-decoded-data", "condition-5-ur-5k-c4ai-aya-expanse-32b")
|