Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,3 +3,93 @@ license: other
|
|
| 3 |
license_name: open-data-attribution-training-disclosure-license-odatl-1.0
|
| 4 |
license_link: LICENSE
|
| 5 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
license_name: open-data-attribution-training-disclosure-license-odatl-1.0
|
| 4 |
license_link: LICENSE
|
| 5 |
---
|
| 6 |
+
|
| 7 |
+
# Code-Syntax-Expanded
|
| 8 |
+
|
| 9 |
+
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.
|
| 10 |
+
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
## 📊 Dataset Overview
|
| 14 |
+
|
| 15 |
+
| Property | Value |
|
| 16 |
+
|----------|-------|
|
| 17 |
+
| **Total rows** | 5,000,000+ |
|
| 18 |
+
| **File size** | ~1.1 GB (uncompressed CSV) |
|
| 19 |
+
| **Languages** | 33 |
|
| 20 |
+
| **Unique templates** | 160+ error patterns |
|
| 21 |
+
| **Format** | CSV (4 columns) |
|
| 22 |
+
| **License** | ODA-TL v1.0 |
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## 📁 Dataset Structure
|
| 27 |
+
|
| 28 |
+
Each row contains:
|
| 29 |
+
|
| 30 |
+
| Column | Description |
|
| 31 |
+
|--------|-------------|
|
| 32 |
+
| `wrong_code` | Code snippet containing a syntax error |
|
| 33 |
+
| `correct_code` | Corrected version of the snippet |
|
| 34 |
+
| `explanation` | Concise English explanation of the error and fix |
|
| 35 |
+
| `language` | Programming language (e.g., `Python`, `JavaScript`, `Rust`) |
|
| 36 |
+
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
## 🧠 Languages Covered
|
| 40 |
+
|
| 41 |
+
### General Purpose
|
| 42 |
+
Python, JavaScript, TypeScript, Java, C#, C++, Rust, Go, Ruby, PHP, Perl, Swift, Kotlin, R, MATLAB, Scala, Lua, Dart
|
| 43 |
+
|
| 44 |
+
### Web Technologies
|
| 45 |
+
HTML, CSS
|
| 46 |
+
|
| 47 |
+
### Database
|
| 48 |
+
SQL (MySQL/PostgreSQL-style)
|
| 49 |
+
|
| 50 |
+
### Shell & Scripting
|
| 51 |
+
Bash, PowerShell
|
| 52 |
+
|
| 53 |
+
### Markup & Configuration
|
| 54 |
+
YAML, JSON, XML, Markdown
|
| 55 |
+
|
| 56 |
+
### Backend & Frameworks
|
| 57 |
+
Node.js (Express, fs, JWT, bcrypt, Mongoose)
|
| 58 |
+
|
| 59 |
+
---
|
| 60 |
+
|
| 61 |
+
## 📈 Dataset Statistics
|
| 62 |
+
|
| 63 |
+
| Language | Examples (approximate) | Key Error Types |
|
| 64 |
+
|----------|------------------------|-----------------|
|
| 65 |
+
| Python | 350,000+ | Missing colons, indentation, `==` vs `=`, imports |
|
| 66 |
+
| JavaScript | 300,000+ | Missing parentheses, `===` vs `==`, const reassignment |
|
| 67 |
+
| Rust | 200,000+ | Borrow checker, moves, mutable references |
|
| 68 |
+
| Java | 250,000+ | Semicolons, type mismatches, array bounds |
|
| 69 |
+
| SQL | 200,000+ | Missing commas, WHERE typos, quoting |
|
| 70 |
+
| HTML/CSS | 250,000+ | Nesting, self-closing tags, attribute quoting |
|
| 71 |
+
| Others | 3,200,000+ | Language-specific syntax rules |
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
## 🎯 Use Cases
|
| 76 |
+
|
| 77 |
+
- **Fine-tuning LLMs** for code correction and syntax repair
|
| 78 |
+
- **Building code review assistants** that detect common mistakes
|
| 79 |
+
- **Teaching programming** with a massive bank of error/fix examples
|
| 80 |
+
- **Benchmarking** model understanding of language-specific syntax
|
| 81 |
+
- **Creating educational tools** for learning programming languages
|
| 82 |
+
|
| 83 |
+
---
|
| 84 |
+
|
| 85 |
+
## 💡 Example Entries
|
| 86 |
+
|
| 87 |
+
| wrong_code | correct_code | explanation | language |
|
| 88 |
+
|------------|--------------|-------------|----------|
|
| 89 |
+
| `if x > 5\n print('hello')` | `if x > 5:\n print('hello')` | Colon missing after if. | Python |
|
| 90 |
+
| `console.log('world'` | `console.log('world')` | Close parenthesis. | JavaScript |
|
| 91 |
+
| `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 |
|
| 92 |
+
| `SELECT name age FROM users;` | `SELECT name, age FROM users;` | Missing comma between columns. | SQL |
|
| 93 |
+
| `<p>Hello <b>world!</p></b>` | `<p>Hello <b>world!</b></p>` | Improper nesting of tags. | HTML |
|
| 94 |
+
|
| 95 |
+
---
|