Datasets:

Modalities:
Text
Formats:
csv
Languages:
English
License:
Gugu8 commited on
Commit
4381d3b
·
0 Parent(s):

Duplicate from Gugu8/Code-Syntax-Expanded

Browse files
Files changed (4) hide show
  1. .gitattributes +61 -0
  2. LICENSE +134 -0
  3. README.md +102 -0
  4. code_syntax_dataset_1GB.csv +3 -0
.gitattributes ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.avro filter=lfs diff=lfs merge=lfs -text
4
+ *.bin filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
7
+ *.ftz filter=lfs diff=lfs merge=lfs -text
8
+ *.gz filter=lfs diff=lfs merge=lfs -text
9
+ *.h5 filter=lfs diff=lfs merge=lfs -text
10
+ *.joblib filter=lfs diff=lfs merge=lfs -text
11
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
13
+ *.mds filter=lfs diff=lfs merge=lfs -text
14
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
+ *.model filter=lfs diff=lfs merge=lfs -text
16
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
17
+ *.npy filter=lfs diff=lfs merge=lfs -text
18
+ *.npz filter=lfs diff=lfs merge=lfs -text
19
+ *.onnx filter=lfs diff=lfs merge=lfs -text
20
+ *.ot filter=lfs diff=lfs merge=lfs -text
21
+ *.parquet filter=lfs diff=lfs merge=lfs -text
22
+ *.pb filter=lfs diff=lfs merge=lfs -text
23
+ *.pickle filter=lfs diff=lfs merge=lfs -text
24
+ *.pkl filter=lfs diff=lfs merge=lfs -text
25
+ *.pt filter=lfs diff=lfs merge=lfs -text
26
+ *.pth filter=lfs diff=lfs merge=lfs -text
27
+ *.rar filter=lfs diff=lfs merge=lfs -text
28
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
29
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
31
+ *.tar filter=lfs diff=lfs merge=lfs -text
32
+ *.tflite filter=lfs diff=lfs merge=lfs -text
33
+ *.tgz filter=lfs diff=lfs merge=lfs -text
34
+ *.wasm filter=lfs diff=lfs merge=lfs -text
35
+ *.xz filter=lfs diff=lfs merge=lfs -text
36
+ *.zip filter=lfs diff=lfs merge=lfs -text
37
+ *.zst filter=lfs diff=lfs merge=lfs -text
38
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
39
+ # Audio files - uncompressed
40
+ *.pcm filter=lfs diff=lfs merge=lfs -text
41
+ *.sam filter=lfs diff=lfs merge=lfs -text
42
+ *.raw filter=lfs diff=lfs merge=lfs -text
43
+ # Audio files - compressed
44
+ *.aac filter=lfs diff=lfs merge=lfs -text
45
+ *.flac filter=lfs diff=lfs merge=lfs -text
46
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
47
+ *.ogg filter=lfs diff=lfs merge=lfs -text
48
+ *.wav filter=lfs diff=lfs merge=lfs -text
49
+ # Image files - uncompressed
50
+ *.bmp filter=lfs diff=lfs merge=lfs -text
51
+ *.gif filter=lfs diff=lfs merge=lfs -text
52
+ *.png filter=lfs diff=lfs merge=lfs -text
53
+ *.tiff filter=lfs diff=lfs merge=lfs -text
54
+ # Image files - compressed
55
+ *.jpg filter=lfs diff=lfs merge=lfs -text
56
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
57
+ *.webp 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
+ code_syntax_dataset_1GB.csv filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Open Data Attribution Training Disclosure License (ODATL‑1.0)
2
+ Version 1.0 — July 2026
3
+
4
+ A permissive open‑data license requiring attribution and mandatory disclosure of AI training use.
5
+
6
+ --------------------------------------------------------------------
7
+ SECTION 1 — DEFINITIONS
8
+ --------------------------------------------------------------------
9
+ 1.1 “Dataset” refers to the collection of data, files, metadata, annotations, structures, or any other materials distributed under this License, including any updates, subsets, or modified versions.
10
+
11
+ 1.2 “Licensor” refers to the entity or individual who releases the Dataset under this License.
12
+
13
+ 1.3 “Licensee” refers to any person, organization, or system that accesses, uses, modifies, redistributes, or incorporates the Dataset.
14
+
15
+ 1.4 “Model” refers to any machine learning system, artificial intelligence system, algorithm, statistical model, or computational process trained, fine‑tuned, evaluated, or otherwise developed using the Dataset.
16
+
17
+ 1.5 “Public Notice” refers to a clear, visible, and publicly accessible statement acknowledging use of the Dataset.
18
+
19
+ 1.6 “Derivative Dataset” refers to any dataset created by modifying, transforming, filtering, augmenting, or otherwise altering the original Dataset.
20
+
21
+ 1.7 “Derivative Model” refers to any Model whose training data includes the Dataset or any Derivative Dataset.
22
+
23
+ --------------------------------------------------------------------
24
+ SECTION 2 — GRANT OF RIGHTS
25
+ --------------------------------------------------------------------
26
+ 2.1 The Licensor grants the Licensee a worldwide, royalty‑free, non‑exclusive, irrevocable permission to:
27
+ - Use, copy, and redistribute the Dataset for any purpose.
28
+ - Modify, transform, or build upon the Dataset.
29
+ - Create Derivative Datasets.
30
+ - Train, fine‑tune, evaluate, or otherwise use the Dataset for machine learning or AI development.
31
+ - Create Derivative Models based on the Dataset.
32
+
33
+ 2.2 These rights are intended to be compatible with open‑source and open‑data principles, including but not limited to CC‑BY, ODC‑BY, and other permissive data licenses.
34
+
35
+ 2.3 No patent rights are granted or implied by this License.
36
+
37
+ --------------------------------------------------------------------
38
+ SECTION 3 — MANDATORY ATTRIBUTION
39
+ --------------------------------------------------------------------
40
+ 3.1 Any public use, redistribution, publication, or derivative work involving the Dataset must include the following attribution:
41
+
42
+ “This work uses data provided under the Open Data Attribution Training Disclosure License (ODATL‑1.0).”
43
+
44
+ 3.2 Attribution must appear in:
45
+ - Documentation
46
+ - Research papers
47
+ - Model cards
48
+ - Public datasets
49
+ - Product descriptions
50
+ - Any public‑facing material referencing the Dataset
51
+
52
+ 3.3 Attribution must remain intact and may not be removed, obscured, or altered.
53
+
54
+ --------------------------------------------------------------------
55
+ SECTION 4 — MANDATORY TRAINING DISCLOSURE
56
+ --------------------------------------------------------------------
57
+ 4.1 If the Dataset is used to train, fine‑tune, evaluate, or otherwise develop any Model, the Licensee must provide a Public Notice stating:
58
+
59
+ “This model was trained using data provided under the Open Data Attribution Training Disclosure License (ODATL‑1.0).”
60
+
61
+ 4.2 This disclosure must appear in:
62
+ - Model cards
63
+ - Public releases of the Model
64
+ - Research publications
65
+ - Technical documentation
66
+ - Product descriptions
67
+ - Any public announcement or description of the Model
68
+
69
+ 4.3 Disclosure must be truthful, visible, and accessible to the general public.
70
+
71
+ 4.4 Failure to provide this disclosure immediately terminates all rights granted under this License.
72
+
73
+ --------------------------------------------------------------------
74
+ SECTION 5 — REDISTRIBUTION REQUIREMENTS
75
+ --------------------------------------------------------------------
76
+ 5.1 If the Licensee redistributes the Dataset or any Derivative Dataset, the Licensee must:
77
+ - Include this License in full.
78
+ - Clearly indicate any modifications made.
79
+ - Preserve all attribution and disclosure requirements.
80
+
81
+ 5.2 Derivative Datasets may be dual‑licensed under other open‑data licenses, provided this License remains included and enforceable.
82
+
83
+ --------------------------------------------------------------------
84
+ SECTION 6 — OPEN‑SOURCE COMPATIBILITY
85
+ --------------------------------------------------------------------
86
+ 6.1 This License is designed to be compatible with:
87
+ - Open Data Commons Attribution (ODC‑BY)
88
+ - Creative Commons Attribution (CC‑BY)
89
+ - Open‑source AI research workflows
90
+ - Open‑data distribution platforms
91
+
92
+ 6.2 Redistribution through open‑source repositories (e.g., GitHub, HuggingFace, Kaggle) is permitted and encouraged.
93
+
94
+ 6.3 Licensees may combine the Dataset with other open datasets, provided attribution and training disclosure obligations remain intact.
95
+
96
+ --------------------------------------------------------------------
97
+ SECTION 7 — PROHIBITED USES
98
+ --------------------------------------------------------------------
99
+ 7.1 The Licensee may not:
100
+ - Claim exclusive ownership of the Dataset.
101
+ - Remove or alter attribution or disclosure requirements.
102
+ - Use the Dataset in violation of applicable laws or regulations.
103
+ - Misrepresent the origin, nature, or licensing of the Dataset.
104
+
105
+ 7.2 The Licensee may not apply technical or legal measures that restrict others from exercising rights granted under this License.
106
+
107
+ --------------------------------------------------------------------
108
+ SECTION 8 — NO WARRANTY
109
+ --------------------------------------------------------------------
110
+ 8.1 The Dataset is provided “as‑is,” without warranty of any kind, express or implied.
111
+
112
+ 8.2 The Licensor is not liable for any damages, losses, or claims arising from use of the Dataset or any Derivative Model.
113
+
114
+ --------------------------------------------------------------------
115
+ SECTION 9 — TERMINATION
116
+ --------------------------------------------------------------------
117
+ 9.1 Rights under this License automatically terminate if the Licensee:
118
+ - Fails to provide required attribution.
119
+ - Fails to provide required training disclosure.
120
+ - Violates any other term of this License.
121
+
122
+ 9.2 Rights may be reinstated upon correction of the violation, unless the Licensor explicitly revokes permission.
123
+
124
+ --------------------------------------------------------------------
125
+ SECTION 10 — ACCEPTANCE
126
+ --------------------------------------------------------------------
127
+ 10.1 By accessing or using the Dataset, the Licensee agrees to be bound by the terms of this License.
128
+
129
+ 10.2 Continued use of the Dataset constitutes ongoing acceptance of all terms.
130
+
131
+ --------------------------------------------------------------------
132
+ SECTION 11 — CONTACT
133
+ --------------------------------------------------------------------
134
+ 11.1 For permissions beyond this License, contact the Licensor.
README.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: open-data-attribution-training-disclosure-license-odatl-1.0
4
+ 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
+ ---
code_syntax_dataset_1GB.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fab5de517a71101b96adfc5ceaa9d0579f2465bdd2362e7841569b441d089b40
3
+ size 1073900974