File size: 5,515 Bytes
209c437 cd3fc78 209c437 cd3fc78 209c437 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | ---
license: cc-by-4.0
language: en
pretty_name: Awkweave Data
size_categories:
- 100K<n<1M
task_categories:
- text-generation
tags:
- awk
- code-generation
- text-to-code
- execution-verified
- synthetic-data
configs:
- config_name: default
data_files:
- split: train
path: data/train.jsonl
- split: validation
path: data/validation.jsonl
- split: test
path: data/test.jsonl
- split: challenge
path: data/challenge.jsonl
---
# Awkweave Data
Execution-verified natural-language-to-`awk` examples for training and evaluating small local code models. Each row contains a request, an `awk` program, two input texts, and the exact output produced by real `awk` for each input.
## Rows
| Split | Rows | Purpose |
| --- | ---: | --- |
| train | 107994 | Supervised fine-tuning |
| validation | 3000 | Training diagnostics |
| test | 3000 | Held-out grammar-generated evaluation |
| challenge | 33 | Hand-authored development tasks; never used for training |
| **total** | **114027** | |
The training split contains original grammar-generated requests and guarded paraphrases. Validation, test, and challenge requests are not paraphrased. A paraphrase row has `paraphrase_of` pointing to its source row and exactly the same program, inputs, outputs, and split.
Sources: {"original-grammar": 60000, "openrouter-paraphrase": 52642, "original-grammar-copy": 1352, "original-hand-authored": 33}
## Example
```json
{
"id": "awkweave-0000000",
"request": "Print column 3 followed by column 1 for every record.",
"program": "{print $3, $1}",
"input_text": "bruno kim hana pending ready\neli farah lina paused active\nivan bruno dina failed ready\ngus gus jules closed pending\nbruno kim farah paused pending\ndina gus alice pending pending\ngus gus eli closed failed\ndina lina dina paused paused\n",
"expected_output": "hana bruno\nlina eli\ndina ivan\njules gus\nfarah bruno\nalice dina\neli gus\ndina dina\n",
"family": "project_fields",
"difficulty": 1,
"split": "train"
}
```
## Fields
- `id`: stable unique identifier.
- `request`: English text-processing request.
- `program`: target `awk` program only, without the `awk` executable or a filename.
- `input_text` / `expected_output`: primary execution pair.
- `validation_input` / `validation_output`: a second execution pair with different records.
- `family` / `difficulty`: generator family and 1–3 difficulty label.
- `split`: train, validation, test, or challenge.
- `source`: original grammar, guarded paraphrase, or hand-authored provenance.
- `license`: `CC-BY-4.0` for every row.
## Execution verification
Every row in this release was re-executed with `mawk 1.3.4 20200120` on both inputs. Programs passed only when both outputs exactly matched the stored outputs: **228054 successful executions, 0 errors**. `validation.json` contains the release hash and full counts.
The generator uses POSIX-style constructs and avoids file input/output, subprocesses, environment access, and pipes. The included `awkweave.execution` module applies the same safety restrictions and runs programs on stdin.
## Use
```python
from datasets import load_dataset
ds = load_dataset("asterbraid/awkweave-data")
print(ds["train"][0]["request"])
print(ds["train"][0]["program"])
```
## Paraphrase audit
An independent `qwen/qwen3.5-9b` audit targeted 500 accepted paraphrases and completed 420; 80 could not be audited because of API rate limits. It marked 414 semantically equivalent and 6 disputed; disputed paraphrases were excluded before freezing this release. Original grammar rows remain available for every excluded paraphrase.
The `awkweave/` directory and generator scripts are included for reproducibility. To combine the files for the supplied training script:
```bash
cat data/train.jsonl data/validation.jsonl data/test.jsonl data/challenge.jsonl > awkweave-release.jsonl
```
## Scope and limitations
- English only; output is an `awk` program, not a general shell command.
- Simple whitespace-, tab-, and comma-separated input. Quoted CSV, multi-file joins, and external pipelines are out of scope.
- Train, validation, and test cases come from the same 39-family grammar with different random records. Input texts are disjoint, but identical request/program pairs can recur with different input records. Test accuracy is an in-distribution measurement.
- The 33-row challenge split is separately authored around HTTP logs, passwd-style records, key=value events, sales tables, and general record transformations. It was used to guide the later realistic expansion and is development data, not an untouched test or a large representative benchmark.
- Exact execution verifies the reference programs, not that every natural-language request is unambiguous or that generated model programs will be correct.
## Provenance and license
All programs, inputs, and reference outputs are original synthetic artifacts. No scraped text or personal data is included. Selected training requests were paraphrased with `qwen/qwen3.7-plus` through OpenRouter; numeric and literal guards rejected semantic changes. The challenge requests and programs were separately authored for this project.
Dataset rows are **CC-BY-4.0**. Attribute **Asterbraid** when redistributing or adapting them. Included code is Apache-2.0.
Release data SHA-256 (concatenated split order train/validation/test/challenge): `3e66b6bc053b380342d8f654400030f5c5f2aeab8482762fcfda44d3dae2bc5b`
|