Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
49
201
trajectory_id
stringlengths
41
41
instance_id
stringlengths
12
57
repo
stringlengths
8
52
resolved
int64
1
1
exit_status
stringclasses
5 values
model_patch
stringlengths
256
126k
gen_tests_correct
float64
0
1
pred_passes_gen_tests
float64
0
1
tools
listlengths
5
5
[{"role":"system","content":"You are OpenHands agent, a helpful AI assistant that can interact with (...TRUNCATED)
chatcmpl-d8ed42a8c860bbb5a9129c8ab5f9227c
narwhals-dev__narwhals-1090
narwhals-dev/narwhals
1
RuntimeError: Agent reached maximum iteration. Current iteration: 100, max iteration: 100
"diff --git a/debug_any_horizontal.py b/debug_any_horizontal.py\nnew file mode 100644\nindex 0000000(...TRUNCATED)
0
0
[{"function":{"description":"Execute a bash command in the terminal within a persistent shell sessio(...TRUNCATED)
[{"role":"system","content":"You are OpenHands agent, a helpful AI assistant that can interact with (...TRUNCATED)
chatcmpl-46e31614e02a1bf69a693d31750c8dae
PyCQA__flake8-bugbear-209
PyCQA/flake8-bugbear
1
RuntimeError: Agent reached maximum iteration. Current iteration: 100, max iteration: 100
"diff --git a/.openhands/TASKS.md b/.openhands/TASKS.md\nnew file mode 100644\nindex 0000000..2cb712(...TRUNCATED)
0
1
[{"function":{"description":"Execute a bash command in the terminal within a persistent shell sessio(...TRUNCATED)
[{"role":"system","content":"You are OpenHands agent, a helpful AI assistant that can interact with (...TRUNCATED)
chatcmpl-f7399767ad6359b7425f6f6ec64dd1cd
ESMValGroup__ESMValCore-2668
ESMValGroup/ESMValCore
1
submit
"diff --git a/esmvalcore/cmor/_fixes/fix.py b/esmvalcore/cmor/_fixes/fix.py\nindex 9a229b2dc..d4f9b6(...TRUNCATED)
null
null
[{"function":{"description":"Execute a bash command in the terminal within a persistent shell sessio(...TRUNCATED)
[{"role":"system","content":"You are OpenHands agent, a helpful AI assistant that can interact with (...TRUNCATED)
chatcmpl-e1d397e943947b2d5584b16ed883386e
twisted__towncrier-594
twisted/towncrier
1
submit
"diff --git a/src/towncrier/create.py b/src/towncrier/create.py\nindex 28903f5..733cf9a 100644\n--- (...TRUNCATED)
1
1
[{"function":{"description":"Execute a bash command in the terminal within a persistent shell sessio(...TRUNCATED)
[{"role":"system","content":"You are OpenHands agent, a helpful AI assistant that can interact with (...TRUNCATED)
chatcmpl-09b3d3f825279ea6f6edef2d56d768ee
terryyin__lizard-370
terryyin/lizard
1
submit
"diff --git a/lizard.py b/lizard.py\nindex b0f2482..98c94a5 100755\n--- a/lizard.py\n+++ b/lizard.py(...TRUNCATED)
1
1
[{"function":{"description":"Execute a bash command in the terminal within a persistent shell sessio(...TRUNCATED)
[{"role":"system","content":"You are OpenHands agent, a helpful AI assistant that can interact with (...TRUNCATED)
chatcmpl-4dfdb604ccdf5d91a5591d54153d1d08
nipype__pydra-261
nipype/pydra
1
submit
"diff --git a/comprehensive_test.py b/comprehensive_test.py\nnew file mode 100644\nindex 0000000..bc(...TRUNCATED)
1
1
[{"function":{"description":"Execute a bash command in the terminal within a persistent shell sessio(...TRUNCATED)
[{"role":"system","content":"You are OpenHands agent, a helpful AI assistant that can interact with (...TRUNCATED)
chatcmpl-1d7a36f7615bc8a40df939ac672e118b
mikedh__trimesh-706
mikedh/trimesh
1
submit
"diff --git a/.openhands/TASKS.md b/.openhands/TASKS.md\nnew file mode 100644\nindex 00000000..eda80(...TRUNCATED)
null
null
[{"function":{"description":"Execute a bash command in the terminal within a persistent shell sessio(...TRUNCATED)
[{"role":"system","content":"You are OpenHands agent, a helpful AI assistant that can interact with (...TRUNCATED)
chatcmpl-d24c95b1e67c43b51f22bfd194246638
tobymao__sqlglot-2450
tobymao/sqlglot
1
submit
"diff --git a/final_test.py b/final_test.py\nnew file mode 100644\nindex 00000000..7f1f33a1\n--- /de(...TRUNCATED)
1
1
[{"function":{"description":"Execute a bash command in the terminal within a persistent shell sessio(...TRUNCATED)
[{"role":"system","content":"You are OpenHands agent, a helpful AI assistant that can interact with (...TRUNCATED)
chatcmpl-18943cf3ce21655dd05f47f985e3f3c1
ncclient__ncclient-485
ncclient/ncclient
1
submit
"diff --git a/ncclient/operations/rpc.py b/ncclient/operations/rpc.py\nindex 2a6f32d..c0fa074 100644(...TRUNCATED)
null
null
[{"function":{"description":"Execute a bash command in the terminal within a persistent shell sessio(...TRUNCATED)
[{"role":"system","content":"You are OpenHands agent, a helpful AI assistant that can interact with (...TRUNCATED)
chatcmpl-4eceeb1cbb6fe7b3def722c6f92f2f01
projectmesa__mesa-1001
projectmesa/mesa
1
submit
"diff --git a/issue.md b/issue.md\nnew file mode 100644\nindex 0000000..2179bef\n--- /dev/null\n+++ (...TRUNCATED)
null
null
[{"function":{"description":"Execute a bash command in the terminal within a persistent shell sessio(...TRUNCATED)
End of preview. Expand in Data Studio

openhands-train-ready

SFT-ready normalization of nebius/SWE-rebench-openhands-trajectories — 5,000 resolved OpenHands (v0.54.0) agent trajectories on real GitHub issues, bootstrapped by Qwen/Qwen3-Coder-480B-A35B-Instruct, with tool-call arguments deserialized to objects so chat templates just work.

What was fixed

The upstream parquet stores tool_call.function.arguments as a serialized JSON string "for storage efficiency" (per the Nebius README). Chat templates that iterate arguments|items — including the Qwen3-Coder family — emit empty/broken tool calls if you train on the raw rows. Every record here has:

  • arguments deserialized str → dict (double-encoded JSON and Python-repr dicts handled),
  • canonical per-role fields (system/user/assistant/tool),
  • the per-trajectory tools list kept on the record — pass it straight to apply_chat_template.

Usage

from datasets import load_dataset
from transformers import AutoTokenizer

ds = load_dataset("asaverren/openhands-train-ready", split="train")
tok = AutoTokenizer.from_pretrained("Qwen/Qwen3-Coder-30B-A3B-Instruct")

ex = ds[0]
text = tok.apply_chat_template(ex["messages"], tools=ex["tools"], tokenize=False)

TRL/axolotl: point your chat-template mapping at the messages column; tools is a per-row column for templates that accept it.

Qwen3-Coder tool-call format (verified)

  • Assistant calls render as <tool_call><function=NAME><parameter=KEY>VALUE </parameter></function></tool_call> inside the <|im_start|>assistant turn.
  • arguments must be a mapping — the template iterates arguments|items. (This is the upstream storage bug this dataset fixes.)
  • Tool results render as <tool_response>...</tool_response> inside a user turn; name/tool_call_id are kept for provenance but unused by the template.

Counts (see meta.json)

upstream rows scanned 67,074
upstream resolved 32,161
this shard (resolved, seed-0 sample) 5,000
tool-call arguments deserialized 295,524
unparseable arguments 0
unknown tools / missing required params 0 / 0
trajectories dropped 0
avg tokens (Qwen3-Coder tokenizer) ≈ 49k / trajectory

Tool calls validated against upstream tools.json (soft; all calls match the 5-tool OpenHands v0.54.0 set). All 5,000 records render through the real Qwen3-Coder chat template with zero errors.

Rebuild / extend

run_normalize.py (+ the traj_normalize package, both in this repo) reproduces this shard and can emit the full 32k resolved set (or failure trajectories via --include-failures):

pip install pyarrow huggingface_hub
python run_normalize.py --input nebius/SWE-rebench-openhands-trajectories \
  --out-dir out --max-success 5000 --seed 0 --shuffle

sft_success.jsonl.gz is the raw tool output; data/ is the same content as parquet for load_dataset + viewer support.

Honest limitations

  • resolved is upstream's SWE-bench-style judgment — no re-execution verification was performed downstream.
  • Trajectories are long (~49k tokens avg); filter/truncate to your context budget.
  • Single bootstrap model (Qwen3-Coder-480B) and single scaffold (OpenHands v0.54.0) — behavior/diversity is bounded accordingly.
  • Same-instance duplicates are possible (upstream samples multiple attempts per issue); dedupe on instance_id if that matters to you.

Attribution & license

Upstream data: Nebius, CC-BY-4.0. This derivative shard redistributes normalized data under the same license — please attribute Nebius.

@article{trofimova2025openhandstrajs,
  title={OpenHands Trajectories with Qwen3-Coder-480B-A35B-Instruct},
  author={Trofimova, Maria and Shevtsov, Anton and Ibragim, Badertdinov and Pyaev, Konstantin and Karasik, Simon and Golubev, Alexander},
  year={2025},
  journal={Nebius blog},
}
Downloads last month
55