Download README.md from asterbraid/awkweave-data: direct link, hf CLI and curl.
- Browser
- Download file 5.52 kB
-
https://huggingface.co/datasets/asterbraid/awkweave-data/resolve/main/README.md
- Command line
-
hf download hf://datasets/asterbraid/awkweave-data/README.md
-
curl -L -o README.md https://huggingface.co/datasets/asterbraid/awkweave-data/resolve/main/README.md
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
{
"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: targetawkprogram only, without theawkexecutable 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.0for 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
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:
cat data/train.jsonl data/validation.jsonl data/test.jsonl data/challenge.jsonl > awkweave-release.jsonl
Scope and limitations
- English only; output is an
awkprogram, 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