Gugu8 commited on
Commit
bd26bbf
·
verified ·
1 Parent(s): 7fe7448

Interim README: 12 repos uploaded - max code in progress

Browse files
Files changed (1) hide show
  1. README.md +134 -90
README.md CHANGED
@@ -5,98 +5,142 @@ license_link: LICENSE
5
  language:
6
  - en
7
  tags:
8
- - synthetic
9
  - code
 
 
 
 
 
10
  size_categories:
11
  - 100M<n<1B
 
 
12
  ---
13
 
14
- # Code-Syntax-Expanded
15
-
16
- A **massive, high-quality synthetic dataset** for training LLMs to identify and correct syntax errors across **33 programming languages**. Contains **5+ million unique examples** (~1.1 GB) with English explanations – no artificial padding, no duplicate rows.
17
-
18
- ---
19
-
20
- ## 📊 Dataset Overview
21
-
22
- | Property | Value |
23
- |----------|-------|
24
- | **Total rows** | 5,000,000+ |
25
- | **File size** | ~1.1 GB (uncompressed CSV) |
26
- | **Languages** | 33 |
27
- | **Unique templates** | 160+ error patterns |
28
- | **Format** | CSV (4 columns) |
29
- | **License** | ODA-TL v1.0 |
30
-
31
- ---
32
-
33
- ## 📁 Dataset Structure
34
-
35
- Each row contains:
36
-
37
- | Column | Description |
38
- |--------|-------------|
39
- | `wrong_code` | Code snippet containing a syntax error |
40
- | `correct_code` | Corrected version of the snippet |
41
- | `explanation` | Concise English explanation of the error and fix |
42
- | `language` | Programming language (e.g., `Python`, `JavaScript`, `Rust`) |
43
-
44
- ---
45
-
46
- ## 🧠 Languages Covered
47
-
48
- ### General Purpose
49
- Python, JavaScript, TypeScript, Java, C#, C++, Rust, Go, Ruby, PHP, Perl, Swift, Kotlin, R, MATLAB, Scala, Lua, Dart
50
-
51
- ### Web Technologies
52
- HTML, CSS
53
-
54
- ### Database
55
- SQL (MySQL/PostgreSQL-style)
56
-
57
- ### Shell & Scripting
58
- Bash, PowerShell
59
-
60
- ### Markup & Configuration
61
- YAML, JSON, XML, Markdown
62
-
63
- ### Backend & Frameworks
64
- Node.js (Express, fs, JWT, bcrypt, Mongoose)
65
-
66
- ---
67
-
68
- ## 📈 Dataset Statistics
69
-
70
- | Language | Examples (approximate) | Key Error Types |
71
- |----------|------------------------|-----------------|
72
- | Python | 350,000+ | Missing colons, indentation, `==` vs `=`, imports |
73
- | JavaScript | 300,000+ | Missing parentheses, `===` vs `==`, const reassignment |
74
- | Rust | 200,000+ | Borrow checker, moves, mutable references |
75
- | Java | 250,000+ | Semicolons, type mismatches, array bounds |
76
- | SQL | 200,000+ | Missing commas, WHERE typos, quoting |
77
- | HTML/CSS | 250,000+ | Nesting, self-closing tags, attribute quoting |
78
- | Others | 3,200,000+ | Language-specific syntax rules |
79
-
80
- ---
81
-
82
- ## 🎯 Use Cases
83
-
84
- - **Fine-tuning LLMs** for code correction and syntax repair
85
- - **Building code review assistants** that detect common mistakes
86
- - **Teaching programming** with a massive bank of error/fix examples
87
- - **Benchmarking** model understanding of language-specific syntax
88
- - **Creating educational tools** for learning programming languages
89
-
90
- ---
91
-
92
- ## 💡 Example Entries
93
-
94
- | wrong_code | correct_code | explanation | language |
95
- |------------|--------------|-------------|----------|
96
- | `if x > 5\n print('hello')` | `if x > 5:\n print('hello')` | Colon missing after if. | Python |
97
- | `console.log('world'` | `console.log('world')` | Close parenthesis. | JavaScript |
98
- | `let mut x=5; let r1=&mut x; let r2=&mut x;` | `let mut x=5; { let r1=&mut x; } let r2=&mut x;` | Only one mutable borrow allowed. | Rust |
99
- | `SELECT name age FROM users;` | `SELECT name, age FROM users;` | Missing comma between columns. | SQL |
100
- | `<p>Hello <b>world!</p></b>` | `<p>Hello <b>world!</b></p>` | Improper nesting of tags. | HTML |
101
-
102
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  language:
6
  - en
7
  tags:
 
8
  - code
9
+ - synthetic
10
+ - real-code
11
+ - github
12
+ - high-quality
13
+ - max-code
14
  size_categories:
15
  - 100M<n<1B
16
+ - 1B<n<10B
17
+ - 10B<n<100B
18
  ---
19
 
20
+ # High-Quality-Code: Synthetic + Real (MAXIMUM CODE)
21
+
22
+ A **massive, high-quality code dataset** built with **maximum code philosophy** – as much code as possible.
23
+
24
+ ## Components
25
+
26
+ 1. **Synthetic syntax-correction dataset** – 5M+ examples across 33 languages (original `code_syntax_dataset_1GB.csv`)
27
+ 2. **Real high-quality code from GitHub** – 500 top-starred repositories – **BOTH zips and extracted source**
28
+
29
+ ## Current Status: IN PROGRESS
30
+
31
+ - **Target**: 500 repos
32
+ - **Currently uploaded**: 12 extracted repos in `github_code/` + 6 zips in `github_code_zips/`
33
+ - **Upload method**: Direct commit to main, zip version (main→master fallback), no size limit, temp files deleted after upload
34
+ - **Process**: Running in background – final-max-code-uploader
35
+
36
+ This README will be updated again when 500 is reached.
37
+
38
+ ## Structure (Maximum Code)
39
+
40
+ ```
41
+ .
42
+ ├── code_syntax_dataset_1GB.csv # Synthetic: wrong_code, correct_code, explanation, language
43
+ ├── github_code/ # Real: Extracted source – MAX CODE
44
+ │ ├── owner__repo/
45
+ │ └── ...
46
+ ├── github_code_zips/ # Real: Original zips – MAX PRESERVATION
47
+ │ ├── owner__repo.zip
48
+ │ └── ...
49
+ └── README.md
50
+ ```
51
+
52
+ - `github_code/` – extracted source code for training (all files, no filtering)
53
+ - `github_code_zips/` – original zip archives for reproducibility
54
+
55
+ Both are uploaded for **maximum code**.
56
+
57
+ ## Top 500 Source
58
+
59
+ Fetched via GitHub API: `stars:>5000 sort:stars desc` – 500 most-starred repos.
60
+
61
+ First 50:
62
+
63
+ - `codecrafters-io/build-your-own-x`
64
+ - `sindresorhus/awesome`
65
+ - `public-apis/public-apis`
66
+ - `freeCodeCamp/freeCodeCamp`
67
+ - `EbookFoundation/free-programming-books`
68
+ - `openclaw/openclaw`
69
+ - `donnemartin/system-design-primer`
70
+ - `nilbuild/developer-roadmap`
71
+ - `jwasham/coding-interview-university`
72
+ - `vinta/awesome-python`
73
+ - `awesome-selfhosted/awesome-selfhosted`
74
+ - `obra/superpowers`
75
+ - `practical-tutorials/project-based-learning`
76
+ - `996icu/996.ICU`
77
+ - `mattpocock/skills`
78
+ - `affaan-m/ECC`
79
+ - `react/react`
80
+ - `torvalds/linux`
81
+ - `NousResearch/hermes-agent`
82
+ - `trimstray/the-book-of-secret-knowledge`
83
+ - `TheAlgorithms/Python`
84
+ - `deepseek-ai/deepseek-harness`
85
+ - `vuejs/vue`
86
+ - `multica-ai/andrej-karpathy-skills`
87
+ - `ossu/computer-science`
88
+ - `anomalyco/opencode`
89
+ - `n8n-io/n8n`
90
+ - `tensorflow/tensorflow`
91
+ - `DigitalPlatDev/FreeDomain`
92
+ - `trekhleb/javascript-algorithms`
93
+ - `ultraworkers/claw-code`
94
+ - `microsoft/vscode`
95
+ - `yt-dlp/yt-dlp`
96
+ - `massgravel/Microsoft-Activation-Scripts`
97
+ - `ohmyzsh/ohmyzsh`
98
+ - `Significant-Gravitas/AutoGPT`
99
+ - `jackfrued/Python-100-Days`
100
+ - `CyC2018/CS-Notes`
101
+ - `getify/You-Dont-Know-JS`
102
+ - `avelino/awesome-go`
103
+ - `microsoft/markitdown`
104
+ - `ollama/ollama`
105
+ - `flutter/flutter`
106
+ - `firecrawl/firecrawl`
107
+ - `github/gitignore`
108
+ - `521xueweihan/HelloGitHub`
109
+ - `anthropics/skills`
110
+ - `twbs/bootstrap`
111
+ - `f/prompts.chat`
112
+ - `huggingface/transformers`
113
+
114
+ ... and 450 more.
115
+
116
+ ## How It Was Built (Maximum Code Philosophy)
117
+
118
+ ```python
119
+ # For each repo in top 500:
120
+ # 1. Try main.zip, then master.zip, plus codeload URLs
121
+ # 2. NO SIZE LIMIT – even torvalds/linux, freeCodeCamp, etc.
122
+ # 3. Upload zip to github_code_zips/owner__repo.zip (direct commit)
123
+ # 4. Extract zip, upload folder to github_code/owner__repo/ (direct commit)
124
+ # 5. Delete local temp immediately – nothing kept locally
125
+ # 6. Repeat until 500
126
+ ```
127
+
128
+ ## Use Cases
129
+
130
+ - Pre-training LLMs on massive real code
131
+ - Fine-tuning for code correction (synthetic)
132
+ - Code generation, completion, understanding
133
+ - Maximum code = maximum learning
134
+
135
+ ## Licenses
136
+
137
+ - Synthetic CSV: ODA-TL v1.0
138
+ - Real GitHub code: Respective original licenses (check each repo's LICENSE)
139
+ - Use responsibly.
140
+
141
+ ## Links
142
+
143
+ - Dataset: https://huggingface.co/datasets/Corpus-NZ/High-Quality-Code
144
+ - In progress – final README will have full stats at 500 repos.
145
+
146
+ *Built by Corpus-NZ – maximum code, direct commits, no local storage.*