madiedgar commited on
Commit
5b0b1f1
·
verified ·
1 Parent(s): 8f8a0bf

init: create README.md

Browse files
Files changed (1) hide show
  1. README.md +106 -3
README.md CHANGED
@@ -1,3 +1,106 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - zh
7
+ - am
8
+ - ur
9
+ tags:
10
+ - code
11
+ - multilingual
12
+ - native-language
13
+ - legesher
14
+ - tiny-aya-expedition
15
+ - language-decoded
16
+ pretty_name: Language Decoded Community
17
+ ---
18
+
19
+ # Language Decoded — Community Code
20
+
21
+ A dataset of Python code written by native speakers using [Legesher](https://github.com/Legesher/legesher) translated keywords in their own language. Unlike the transpiled datasets in [language-decoded-data](https://huggingface.co/datasets/Legesher/language-decoded-data), this code is **human-authored** — written naturally by people thinking and coding in their native language.
22
+
23
+ ## Purpose
24
+
25
+ This dataset serves two goals:
26
+
27
+ 1. **Training signal**: Human-written native code may carry different structural patterns than mechanically transpiled code
28
+ 2. **Validation**: Confirms that Legesher's translations produce natural, usable keywords that native speakers actually want to use
29
+
30
+ ## Structure
31
+
32
+ Organized by language, with exercise tiers:
33
+
34
+ ```
35
+ language-decoded-community/
36
+ ├── zh/ (Chinese)
37
+ │ ├── tier-1/ (basic exercises)
38
+ │ └── tier-2/ (intermediate exercises)
39
+ ├── am/ (Amharic)
40
+ │ ├── tier-1/
41
+ │ └── tier-2/
42
+ ├── ur/ (Urdu)
43
+ │ ├── tier-1/
44
+ │ └── tier-2/
45
+ └── ...
46
+ ```
47
+
48
+ ## How to Contribute
49
+
50
+ We welcome code submissions from native speakers of any language supported by Legesher.
51
+
52
+ ### Submission Requirements
53
+
54
+ 1. **Valid Python** — your code must parse without syntax errors
55
+ 2. **Uses Legesher keywords** — write using your language's translated keywords (see [supported languages](https://github.com/Legesher/legesher))
56
+ 3. **Include a metadata header** at the top of each file:
57
+
58
+ ```python
59
+ # language: zh
60
+ # exercise: tier-1
61
+ # description: A brief description of what this code does
62
+ ```
63
+
64
+ ### How to Submit
65
+
66
+ **Option A: HuggingFace web UI**
67
+ 1. Navigate to the appropriate language folder
68
+ 2. Click "Add file" → "Upload files"
69
+ 3. Upload your `.py` file(s)
70
+ 4. Add a commit message describing your submission
71
+
72
+ **Option B: Using the CLI**
73
+ ```bash
74
+ pip install huggingface_hub
75
+ huggingface-cli login
76
+ huggingface-cli upload Legesher/language-decoded-community ./my_code.py zh/tier-1/my_code.py --repo-type dataset
77
+ ```
78
+
79
+ ### Exercise Tiers
80
+
81
+ | Tier | Difficulty | Examples |
82
+ |---|---|---|
83
+ | **Tier 1** | Basic | Hello world, loops, conditionals, simple functions |
84
+ | **Tier 2** | Intermediate | Data structures, file I/O, classes, error handling |
85
+
86
+ ## Usage
87
+
88
+ ```python
89
+ from datasets import load_dataset
90
+
91
+ # Load all submissions
92
+ ds = load_dataset("Legesher/language-decoded-community")
93
+
94
+ # Load a specific language
95
+ ds = load_dataset("Legesher/language-decoded-community", data_dir="zh")
96
+ ```
97
+
98
+ ## Related Resources
99
+
100
+ - **Transpiled datasets**: [Legesher/language-decoded-data](https://huggingface.co/datasets/Legesher/language-decoded-data)
101
+ - **Models**: [Legesher/language-decoded-lora](https://huggingface.co/Legesher/language-decoded-lora)
102
+ - **Legesher project**: [github.com/Legesher/legesher](https://github.com/Legesher/legesher)
103
+
104
+ ## License
105
+
106
+ Apache 2.0 — all contributions are released under this license.