Datasets:
docs: dataset card with totals, labels, token buckets
Browse files
README.md
CHANGED
|
@@ -7,31 +7,14 @@ tags:
|
|
| 7 |
- language-identification
|
| 8 |
- qwen
|
| 9 |
pretty_name: Qwen Code Language-ID SFT Dataset
|
| 10 |
-
configs:
|
| 11 |
-
- config_name: default
|
| 12 |
-
data_files:
|
| 13 |
-
- split: train
|
| 14 |
-
path: data/train-*
|
| 15 |
-
dataset_info:
|
| 16 |
-
features:
|
| 17 |
-
- name: prompt
|
| 18 |
-
dtype: large_string
|
| 19 |
-
- name: target
|
| 20 |
-
dtype: large_string
|
| 21 |
-
- name: kind
|
| 22 |
-
dtype: large_string
|
| 23 |
-
splits:
|
| 24 |
-
- name: train
|
| 25 |
-
num_bytes: 29546138
|
| 26 |
-
num_examples: 10500
|
| 27 |
-
download_size: 8431803
|
| 28 |
-
dataset_size: 29546138
|
| 29 |
---
|
| 30 |
|
| 31 |
# Accuknoxtechnologies/CodeLanguage
|
| 32 |
|
| 33 |
SFT dataset for fine-tuning a Qwen-based guard that detects which programming languages appear in a user prompt. Each row pairs a natural-language + code prompt with a JSON `target` enumerating the detected languages.
|
| 34 |
|
|
|
|
|
|
|
| 35 |
## Schema
|
| 36 |
|
| 37 |
| column | description |
|
|
@@ -42,87 +25,51 @@ SFT dataset for fine-tuning a Qwen-based guard that detects which programming la
|
|
| 42 |
|
| 43 |
## Total Records
|
| 44 |
|
| 45 |
-
|
|
| 46 |
-
|---
|
| 47 |
-
|
|
| 48 |
-
| test | 500 | 349 | 101 | 50 | 50 |
|
| 49 |
|
| 50 |
## Supported Labels
|
| 51 |
|
| 52 |
-
25 programming languages
|
| 53 |
|
| 54 |
`AWK`, `Bash`, `Batch`, `C`, `C#`, `C++`, `Dockerfile`, `Go`, `Java`, `JavaScript`, `Kotlin`, `Lua`, `Makefile`, `Perl`, `PowerShell`, `Python`, `R`, `Ruby`, `Rust`, `SQL`, `Scala`, `Swift`, `Terraform`, `YAML`, `jq`
|
| 55 |
|
| 56 |
-
### Per-split label counts
|
| 57 |
-
|
| 58 |
-
**train** (25 labels)
|
| 59 |
-
|
| 60 |
-
| label | rows containing label |
|
| 61 |
-
|---|---:|
|
| 62 |
-
| `Go` | 488 |
|
| 63 |
-
| `Lua` | 487 |
|
| 64 |
-
| `Terraform` | 482 |
|
| 65 |
-
| `Kotlin` | 479 |
|
| 66 |
-
| `PowerShell` | 478 |
|
| 67 |
-
| `Rust` | 471 |
|
| 68 |
-
| `JavaScript` | 469 |
|
| 69 |
-
| `C` | 468 |
|
| 70 |
-
| `C++` | 467 |
|
| 71 |
-
| `AWK` | 467 |
|
| 72 |
-
| `Batch` | 467 |
|
| 73 |
-
| `Ruby` | 464 |
|
| 74 |
-
| `Scala` | 463 |
|
| 75 |
-
| `jq` | 460 |
|
| 76 |
-
| `Dockerfile` | 454 |
|
| 77 |
-
| `R` | 451 |
|
| 78 |
-
| `C#` | 449 |
|
| 79 |
-
| `Bash` | 447 |
|
| 80 |
-
| `Perl` | 447 |
|
| 81 |
-
| `Swift` | 446 |
|
| 82 |
-
| `Makefile` | 445 |
|
| 83 |
-
| `SQL` | 440 |
|
| 84 |
-
| `Python` | 437 |
|
| 85 |
-
| `Java` | 434 |
|
| 86 |
-
| `YAML` | 426 |
|
| 87 |
-
|
| 88 |
-
**test** (25 labels)
|
| 89 |
-
|
| 90 |
| label | rows containing label |
|
| 91 |
|---|---:|
|
| 92 |
-
| `
|
| 93 |
-
| `
|
| 94 |
-
| `
|
| 95 |
-
| `
|
| 96 |
-
| `Rust` |
|
| 97 |
-
| `
|
| 98 |
-
| `
|
| 99 |
-
| `
|
| 100 |
-
| `
|
| 101 |
-
| `
|
| 102 |
-
| `C++` |
|
| 103 |
-
| `
|
| 104 |
-
| `
|
| 105 |
-
| `
|
| 106 |
-
| `
|
| 107 |
-
| `
|
| 108 |
-
| `
|
| 109 |
-
| `
|
| 110 |
-
| `
|
| 111 |
-
| `
|
| 112 |
-
| `
|
| 113 |
-
| `
|
| 114 |
-
| `
|
| 115 |
-
| `
|
| 116 |
-
| `
|
| 117 |
|
| 118 |
## Token-wise Bucket Split
|
| 119 |
|
| 120 |
Tokenized with `Qwen/Qwen2.5-0.5B` (matches the training tokenizer).
|
| 121 |
|
| 122 |
-
|
|
| 123 |
-
|---|---|---|---|---|---|---|---|---|---|---|
|
| 124 |
-
|
|
| 125 |
-
| test | 76 | 82 | 115 | 126 | 97 | 4 | 24 | 586.2 | 428 | 1428 | 2782 |
|
| 126 |
|
| 127 |
## Languages (natural language of the prompts)
|
| 128 |
|
|
|
|
| 7 |
- language-identification
|
| 8 |
- qwen
|
| 9 |
pretty_name: Qwen Code Language-ID SFT Dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# Accuknoxtechnologies/CodeLanguage
|
| 13 |
|
| 14 |
SFT dataset for fine-tuning a Qwen-based guard that detects which programming languages appear in a user prompt. Each row pairs a natural-language + code prompt with a JSON `target` enumerating the detected languages.
|
| 15 |
|
| 16 |
+
This release combines the previously-separate train + test CSVs into a single `train` split (source files: `code_langid.csv`, `test_dataset_langid.csv`).
|
| 17 |
+
|
| 18 |
## Schema
|
| 19 |
|
| 20 |
| column | description |
|
|
|
|
| 25 |
|
| 26 |
## Total Records
|
| 27 |
|
| 28 |
+
| rows | single | multi | benign | invalid (`is_valid=false`) |
|
| 29 |
+
|---:|---:|---:|---:|---:|
|
| 30 |
+
| 10500 | 7349 | 2101 | 1050 | 1050 |
|
|
|
|
| 31 |
|
| 32 |
## Supported Labels
|
| 33 |
|
| 34 |
+
25 programming languages:
|
| 35 |
|
| 36 |
`AWK`, `Bash`, `Batch`, `C`, `C#`, `C++`, `Dockerfile`, `Go`, `Java`, `JavaScript`, `Kotlin`, `Lua`, `Makefile`, `Perl`, `PowerShell`, `Python`, `R`, `Ruby`, `Rust`, `SQL`, `Scala`, `Swift`, `Terraform`, `YAML`, `jq`
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
| label | rows containing label |
|
| 39 |
|---|---:|
|
| 40 |
+
| `Go` | 508 |
|
| 41 |
+
| `PowerShell` | 505 |
|
| 42 |
+
| `Lua` | 504 |
|
| 43 |
+
| `Terraform` | 502 |
|
| 44 |
+
| `Rust` | 498 |
|
| 45 |
+
| `AWK` | 496 |
|
| 46 |
+
| `Kotlin` | 496 |
|
| 47 |
+
| `JavaScript` | 495 |
|
| 48 |
+
| `Batch` | 495 |
|
| 49 |
+
| `C` | 492 |
|
| 50 |
+
| `C++` | 491 |
|
| 51 |
+
| `Scala` | 486 |
|
| 52 |
+
| `Ruby` | 486 |
|
| 53 |
+
| `jq` | 480 |
|
| 54 |
+
| `R` | 479 |
|
| 55 |
+
| `Dockerfile` | 475 |
|
| 56 |
+
| `Swift` | 472 |
|
| 57 |
+
| `C#` | 469 |
|
| 58 |
+
| `Makefile` | 467 |
|
| 59 |
+
| `Bash` | 466 |
|
| 60 |
+
| `Perl` | 466 |
|
| 61 |
+
| `SQL` | 465 |
|
| 62 |
+
| `Python` | 462 |
|
| 63 |
+
| `Java` | 460 |
|
| 64 |
+
| `YAML` | 448 |
|
| 65 |
|
| 66 |
## Token-wise Bucket Split
|
| 67 |
|
| 68 |
Tokenized with `Qwen/Qwen2.5-0.5B` (matches the training tokenizer).
|
| 69 |
|
| 70 |
+
| 0-128 | 129-256 | 257-512 | 513-1024 | 1025-2048 | 2049+ | min | mean | p50 | p95 | max |
|
| 71 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
| 72 |
+
| 1529 | 1725 | 2398 | 2759 | 2060 | 29 | 23 | 581.8 | 449 | 1361 | 3035 |
|
|
|
|
| 73 |
|
| 74 |
## Languages (natural language of the prompts)
|
| 75 |
|