File size: 2,497 Bytes
8a9c862
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
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

```python
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 `sed` command, 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.