Affine + SWE-Lego trajectories in mini-coder format (affine-dedup)
Browse files- README.md +93 -0
- data/train-00000-of-00001.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: mini-coder-affine-tools
|
| 6 |
+
tags:
|
| 7 |
+
- software-engineering
|
| 8 |
+
- code
|
| 9 |
+
- agent-trajectories
|
| 10 |
+
- albedo
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# mini-coder-affine-tools
|
| 14 |
+
|
| 15 |
+
63 coding-agent trajectories on 63 SWE-smith
|
| 16 |
+
tasks, converted to the format of albedo's `mini-coder` source (mini-swe-agent: one ```bash command per assistant
|
| 17 |
+
turn, `<returncode>`/`<output>` observations, mini-coder's system prompt and task template).
|
| 18 |
+
|
| 19 |
+
- **Origin:** Affine's public training corpus (`https://data.affine.io`, view `duel_turns@v4`, corpus epoch 84).
|
| 20 |
+
- **Machine:** Affine's Claude Code, pi, Kimi Code and Hermes harnesses (each command runs in `/bin/bash -c`, off a terminal). Albedo tells machines apart by source name, so each kind of machine is its
|
| 21 |
+
own dataset.
|
| 22 |
+
- **Repository root:** rewritten to `/testbed` in every command and output.
|
| 23 |
+
|
| 24 |
+
## How it was built
|
| 25 |
+
|
| 26 |
+
From `affine-dedup` (Dendrite):
|
| 27 |
+
|
| 28 |
+
1. **Task-level dedup:** tasks matching one of our benchmarks were dropped. Runs on tasks albedo already has
|
| 29 |
+
were kept, under albedo's own task id when that id points at the same checkout the run had.
|
| 30 |
+
2. **Trajectory-level dedup:** no run is identical to another or to any run albedo already has.
|
| 31 |
+
3. **Conversion:** every tool call became one bash command with what that command prints; edits became a
|
| 32 |
+
`python3` heredoc that replaces the exact text; harness wrappers, to-do and memory tools were removed.
|
| 33 |
+
4. **Solution leaks dropped:** runs that got the fix from outside their own work (SWE-smith's `Bug Patch`
|
| 34 |
+
history, the task's own PR in `git log --all`, fetching upstream code over the network).
|
| 35 |
+
5. **Benchmark leaks dropped** with albedo's `scripts/benchmark_leaks.py`.
|
| 36 |
+
6. **Validated** against mini-coder's format with albedo's own format checks.
|
| 37 |
+
|
| 38 |
+
Across all seven datasets: 10,456 runs exported, 9,958 converted, 2,288 dropped as solution leaks, 113 as
|
| 39 |
+
benchmark leaks, 7,557 published.
|
| 40 |
+
|
| 41 |
+
## Contents
|
| 42 |
+
|
| 43 |
+
| Resolved | Rows |
|
| 44 |
+
|---|---:|
|
| 45 |
+
| unknown | 47 |
|
| 46 |
+
| resolved | 15 |
|
| 47 |
+
| not resolved | 1 |
|
| 48 |
+
|
| 49 |
+
| Harness | Rows |
|
| 50 |
+
|---|---:|
|
| 51 |
+
| pi | 32 |
|
| 52 |
+
| claude_code | 29 |
|
| 53 |
+
| hermes_agent | 1 |
|
| 54 |
+
| kimi_code | 1 |
|
| 55 |
+
|
| 56 |
+
| Task pool | Rows |
|
| 57 |
+
|---|---:|
|
| 58 |
+
| swesmith | 63 |
|
| 59 |
+
|
| 60 |
+
| Language | Rows |
|
| 61 |
+
|---|---:|
|
| 62 |
+
| python | 33 |
|
| 63 |
+
| java | 15 |
|
| 64 |
+
| js | 7 |
|
| 65 |
+
| go | 4 |
|
| 66 |
+
| rust | 4 |
|
| 67 |
+
|
| 68 |
+
## Columns
|
| 69 |
+
|
| 70 |
+
| Column | Meaning |
|
| 71 |
+
|---|---|
|
| 72 |
+
| `instance_id` | task id, in the style albedo's repo-context service resolves to a repository and commit |
|
| 73 |
+
| `messages` | the trajectory: system prompt, task, then assistant turns (THOUGHT + one ```bash command) and `<returncode>`/`<output>` observations, mini-coder's format |
|
| 74 |
+
| `first_edit` | 1-based assistant turn of the first edit to the repository (0: none found) |
|
| 75 |
+
| `family` | bug family: `pr` for real pull requests; SWE-smith's `lm`, `combine`, `mechanical` otherwise |
|
| 76 |
+
| `repo` | `owner__repo` |
|
| 77 |
+
| `language` | repository language |
|
| 78 |
+
| `verified` | true when the run is known to have resolved the task |
|
| 79 |
+
| `resolved` | `resolved`, `not resolved` or `unknown` (Affine's own verdict where it gave one) |
|
| 80 |
+
| `patch` | the task's reference patch where the upstream record has one, else empty |
|
| 81 |
+
| `model` | model that produced the run |
|
| 82 |
+
| `harness` | agent harness the run was recorded in |
|
| 83 |
+
| `id_kind` | where `instance_id` comes from: albedo's own id for the task, Open-SWE's, or the task pool's |
|
| 84 |
+
| `upstream_id` | the task id in the upstream record |
|
| 85 |
+
| `affine_source` | task pool (`swesmith`, `scaleswe`, `multiswe`, `swerebench_v2`, `r2e_gym`, `swelego`, or `SWE-Lego`) |
|
| 86 |
+
| `origin` | `Affine corpus` or `SWE-Lego` |
|
| 87 |
+
| `source_uid` | where the raw run is: Affine chunk URL and line, or SWE-Lego file and row |
|
| 88 |
+
| `submitted` | whether the run ends with the submit command (false: cut by the step limit) |
|
| 89 |
+
| `affine_fold_group` | Affine's reason for keeping the run (`completion`, `king_fail`, ...), when it gave one |
|
| 90 |
+
|
| 91 |
+
## License
|
| 92 |
+
|
| 93 |
+
**Not settled.** Affine publishes no license for its corpus (none on `data.affine.io` or in `AffineFoundation/affine`). The task records come from public datasets under their own terms.
|
data/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0832a9c804cb9a6afe44a549820e84d1c01315c6492e7713ca468a68eb025e77
|
| 3 |
+
size 561024
|