Datasets:
Download README.md from asterbraid/sedweave-data: direct link, hf CLI and curl.
- Browser
- Download file 2.5 kB
-
https://huggingface.co/datasets/asterbraid/sedweave-data/resolve/main/README.md
- Command line
-
hf download hf://datasets/asterbraid/sedweave-data/README.md
-
curl -L -o README.md https://huggingface.co/datasets/asterbraid/sedweave-data/resolve/main/README.md
license: cc-by-4.0
language: en
pretty_name: Sedweave Data
size_categories:
- 10K<n<100K
task_categories:
- text-generation
tags:
- sed
- 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
Sedweave Data
Execution-verified natural-language-to-sed examples for training and evaluating small local code models.
Rows
| Split | Rows | Purpose |
|---|---|---|
| train | 30600 | Supervised fine-tuning |
| validation | 1700 | Training diagnostics |
| test | 1700 | Held-out grammar-generated evaluation |
| total | 34000 |
Each row contains a request, a bare sed command with no filename, two different input texts, and exact outputs produced by real GNU sed for each input. The generator covers 34 task families: substitutions, filtering, line ranges, insertion, field edits, case changes, whitespace cleanup, delimiter conversion, and marker blocks.
Verification
Every row was re-executed with /usr/bin/sed (GNU sed) 4.8 on both inputs: 68000 successful executions, 0 errors. validation.json contains hashes, full counts, and split integrity.
The command guard accepts only sed on stdin/stdout and rejects filenames, in-place edits, file commands, pipes, and shell execution. The included sedweave.execution module applies the same restrictions and resource limits.
Use
from datasets import load_dataset
ds = load_dataset("asterbraid/sedweave-data")
print(ds["train"][0]["request"])
print(ds["train"][0]["command"])
Scope and limitations
- English only; output is a
sedcommand, not a general shell assistant. - No filenames, in-place edits, file commands, external pipelines, or shell execution.
- Train, validation, and test come from the same 34-family grammar with different random records. Input texts are disjoint, but identical request/command pairs can recur with different input records. Test accuracy is in-distribution only.
- Exact execution verifies reference commands, not that every request is unambiguous or model generations will be correct.
Provenance and license
All commands, inputs, and outputs are original synthetic artifacts with no scraped text or personal data. Rows are CC-BY-4.0; attribute Asterbraid. Included code is Apache-2.0.