Datasets:
docs: correct source datasets (Phase 3 = the-stack-v2-dedup, Phase 2 = the-stack v1)
Browse files
README.md
CHANGED
|
@@ -921,7 +921,7 @@ Prior work ([Aryabumi et al., 2024 -- "To Code or Not to Code"](https://arxiv.or
|
|
| 921 |
|
| 922 |
## Dataset Description
|
| 923 |
|
| 924 |
-
This dataset provides filtered, quality-controlled Python source code in multiple configurations: the original English, three keyword-swapped variants (Chinese, Spanish, Urdu), a blended native+transpiled mix, strictly native Chinese code, and a model-translated set in which an LLM translates the full source (identifiers, strings, and comments, not just keywords).
|
| 925 |
|
| 926 |
- AST-valid Python only (must parse without errors)
|
| 927 |
- Permissive licenses only (MIT, Apache-2.0, BSD, etc.)
|
|
@@ -967,7 +967,7 @@ Used by: `condition-1-en-*`, `condition-2-zh-*`, `condition-2-es-*`, `condition-
|
|
| 967 |
| `code` | string | Python source code. For condition-2 configs, this is the transpiled (keyword-swapped) version. For condition-1, this is the original English source. |
|
| 968 |
| `code_en` | string | Original English Python source code. Identical to `code` for condition-1-en. |
|
| 969 |
| `language` | string | ISO 639-1 language code: `en`, `ur`, `zh`, or `es`. |
|
| 970 |
-
| `file_path` | string | Original file path in
|
| 971 |
| `license` | string | SPDX license identifier for the source file. |
|
| 972 |
| `token_count` | int64 | Token count computed using the CohereLabs/tiny-aya-base tokenizer. |
|
| 973 |
|
|
@@ -982,7 +982,7 @@ Condition 5 uses the conditions 1--2 schema plus an `idx` column. `code` is the
|
|
| 982 |
| `code` | string | Model-translated Python source (full LLM translation via Cohere Aya). |
|
| 983 |
| `code_en` | string | Original English Python source code. |
|
| 984 |
| `language` | string | ISO 639-1 language code: `ur`, `zh`, or `es`. |
|
| 985 |
-
| `file_path` | string | Original file path in
|
| 986 |
| `license` | string | SPDX license identifier for the source file. |
|
| 987 |
| `idx` | int64 | Source row index into `condition-1-en-5k`. Enables row-level joins across conditions. |
|
| 988 |
| `token_count` | int64 | Token count computed using the CohereLabs/tiny-aya-base tokenizer. |
|
|
@@ -1087,7 +1087,8 @@ native_only = train.filter(lambda x: x["source_type"] == "native")
|
|
| 1087 |
|
| 1088 |
| Parameter | Value |
|
| 1089 |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------ |
|
| 1090 |
-
| Source dataset
|
|
|
|
| 1091 |
| Transpilation tool | [Legesher](https://github.com/legesher/legesher) v0.7.3 (legesher-core, legesher-i18n) |
|
| 1092 |
| Tokenizer | CohereLabs/tiny-aya-base |
|
| 1093 |
| Base model | [CohereLabs/tiny-aya-base](https://huggingface.co/CohereLabs/tiny-aya-base) (3.35B params) |
|
|
@@ -1098,7 +1099,7 @@ native_only = train.filter(lambda x: x["source_type"] == "native")
|
|
| 1098 |
|
| 1099 |
## Limitations
|
| 1100 |
|
| 1101 |
-
- **Source bias**: The Stack
|
| 1102 |
- **Keyword-only transpilation**: Legesher translates Python reserved words (keywords, builtins, exceptions) but leaves comments, docstrings, string literals, and variable/function names in their original language (typically English). This means condition-2 code is a hybrid of translated keywords and English identifiers.
|
| 1103 |
- **Token count variation**: Transpiled code may have different token counts than the English original due to multi-byte characters (especially for Chinese and Urdu), even though the code structure is identical.
|
| 1104 |
- **Single programming language**: Currently limited to Python. Results may not generalize to other programming languages.
|
|
@@ -1121,7 +1122,8 @@ native_only = train.filter(lambda x: x["source_type"] == "native")
|
|
| 1121 |
|
| 1122 |
- [Legesher on GitHub](https://github.com/legesher/legesher)
|
| 1123 |
- [Tiny Aya Expedition](https://aya.for.ai)
|
| 1124 |
-
- [bigcode/the-stack-dedup](https://huggingface.co/datasets/bigcode/the-stack-dedup)
|
|
|
|
| 1125 |
- [Language Decoded Community (native code)](https://huggingface.co/datasets/legesher/language-decoded-community)
|
| 1126 |
- [Language Decoded Experiments (tracking)](https://huggingface.co/datasets/legesher/language-decoded-experiments)
|
| 1127 |
- [Language Decoded LoRA (model hub)](https://huggingface.co/legesher/language-decoded-lora)
|
|
|
|
| 921 |
|
| 922 |
## Dataset Description
|
| 923 |
|
| 924 |
+
This dataset provides filtered, quality-controlled Python source code in multiple configurations: the original English, three keyword-swapped variants (Chinese, Spanish, Urdu), a blended native+transpiled mix, strictly native Chinese code, and a model-translated set in which an LLM translates the full source (identifiers, strings, and comments, not just keywords). Python source for Conditions 1, 2, and 5 is drawn from [bigcode/the-stack-v2-dedup](https://huggingface.co/datasets/bigcode/the-stack-v2-dedup) (Python subset) for the current Phase 3 configs; the legacy `phase-2-the-stack-v1-*` configs are sourced from [The Stack v1](https://huggingface.co/datasets/bigcode/the-stack). Conditions 3 and 4 additionally draw on natively-authored code (see those conditions below). Source files are filtered for quality using the following criteria:
|
| 925 |
|
| 926 |
- AST-valid Python only (must parse without errors)
|
| 927 |
- Permissive licenses only (MIT, Apache-2.0, BSD, etc.)
|
|
|
|
| 967 |
| `code` | string | Python source code. For condition-2 configs, this is the transpiled (keyword-swapped) version. For condition-1, this is the original English source. |
|
| 968 |
| `code_en` | string | Original English Python source code. Identical to `code` for condition-1-en. |
|
| 969 |
| `language` | string | ISO 639-1 language code: `en`, `ur`, `zh`, or `es`. |
|
| 970 |
+
| `file_path` | string | Original file path in the source dataset. |
|
| 971 |
| `license` | string | SPDX license identifier for the source file. |
|
| 972 |
| `token_count` | int64 | Token count computed using the CohereLabs/tiny-aya-base tokenizer. |
|
| 973 |
|
|
|
|
| 982 |
| `code` | string | Model-translated Python source (full LLM translation via Cohere Aya). |
|
| 983 |
| `code_en` | string | Original English Python source code. |
|
| 984 |
| `language` | string | ISO 639-1 language code: `ur`, `zh`, or `es`. |
|
| 985 |
+
| `file_path` | string | Original file path in the source dataset. |
|
| 986 |
| `license` | string | SPDX license identifier for the source file. |
|
| 987 |
| `idx` | int64 | Source row index into `condition-1-en-5k`. Enables row-level joins across conditions. |
|
| 988 |
| `token_count` | int64 | Token count computed using the CohereLabs/tiny-aya-base tokenizer. |
|
|
|
|
| 1087 |
|
| 1088 |
| Parameter | Value |
|
| 1089 |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------ |
|
| 1090 |
+
| Source dataset (Phase 3, `condition-*`) | [bigcode/the-stack-v2-dedup](https://huggingface.co/datasets/bigcode/the-stack-v2-dedup) (Python subset) |
|
| 1091 |
+
| Source dataset (Phase 2, `phase-2-the-stack-v1-*`) | [bigcode/the-stack](https://huggingface.co/datasets/bigcode/the-stack) (The Stack v1) |
|
| 1092 |
| Transpilation tool | [Legesher](https://github.com/legesher/legesher) v0.7.3 (legesher-core, legesher-i18n) |
|
| 1093 |
| Tokenizer | CohereLabs/tiny-aya-base |
|
| 1094 |
| Base model | [CohereLabs/tiny-aya-base](https://huggingface.co/CohereLabs/tiny-aya-base) (3.35B params) |
|
|
|
|
| 1099 |
|
| 1100 |
## Limitations
|
| 1101 |
|
| 1102 |
+
- **Source bias**: The Stack skews toward popular, well-starred GitHub repositories, which may not represent the full diversity of Python code in the wild.
|
| 1103 |
- **Keyword-only transpilation**: Legesher translates Python reserved words (keywords, builtins, exceptions) but leaves comments, docstrings, string literals, and variable/function names in their original language (typically English). This means condition-2 code is a hybrid of translated keywords and English identifiers.
|
| 1104 |
- **Token count variation**: Transpiled code may have different token counts than the English original due to multi-byte characters (especially for Chinese and Urdu), even though the code structure is identical.
|
| 1105 |
- **Single programming language**: Currently limited to Python. Results may not generalize to other programming languages.
|
|
|
|
| 1122 |
|
| 1123 |
- [Legesher on GitHub](https://github.com/legesher/legesher)
|
| 1124 |
- [Tiny Aya Expedition](https://aya.for.ai)
|
| 1125 |
+
- [bigcode/the-stack-v2-dedup](https://huggingface.co/datasets/bigcode/the-stack-v2-dedup) (Phase 3 source)
|
| 1126 |
+
- [bigcode/the-stack](https://huggingface.co/datasets/bigcode/the-stack) (The Stack v1 — Phase 2 source)
|
| 1127 |
- [Language Decoded Community (native code)](https://huggingface.co/datasets/legesher/language-decoded-community)
|
| 1128 |
- [Language Decoded Experiments (tracking)](https://huggingface.co/datasets/legesher/language-decoded-experiments)
|
| 1129 |
- [Language Decoded LoRA (model hub)](https://huggingface.co/legesher/language-decoded-lora)
|