messages listlengths 2 500 | patch stringlengths 0 929k | model stringclasses 1
value | instance_id stringlengths 26 79 | verified bool 1
class | origin stringclasses 1
value | traj_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|
[
{
"role": "user",
"content": "HTML entity decoding regression in `convert_entity`\n\nThe `convert_entity` function no longer properly handles numeric character references, particularly hex and decimal entities. This causes certain encoded characters to be dropped or not decoded correctly during HTML cleanin... | diff --git a/bleach/html5lib_shim.py b/bleach/html5lib_shim.py
index 7c30e16..ab25dee 100644
--- a/bleach/html5lib_shim.py
+++ b/bleach/html5lib_shim.py
@@ -545,6 +545,21 @@ def convert_entity(value):
"""
+ # Handle numeric character references
+ if value.startswith("#"):
+ try:
+ if va... | qwen3-coder-30b | mozilla__bleach.73871d76.func_pm_remove_cond__s1omz0wz | false | ricdomolm/mini-coder-trajs-400k | 31d807c00287ea5b43c46caef0f1d4c1 |
[
{
"role": "user",
"content": "[Bug]: CSS sanitizer warning not triggered for dictionary attributes\n\n### Bug summary\n\nWhen using a dictionary for the `attributes` parameter in `clean()`, the CSS sanitizer warning is not triggered when the dictionary contains 'style' attributes.\n\n### Code for reproducti... | diff --git a/bleach/sanitizer.py b/bleach/sanitizer.py
index aca5e38..000b7ff 100644
--- a/bleach/sanitizer.py
+++ b/bleach/sanitizer.py
@@ -157,7 +157,7 @@ class Cleaner:
attributes_values = attributes
elif isinstance(attributes, dict):
- attributes_values = []
+ ... | qwen3-coder-30b | mozilla__bleach.73871d76.func_pm_remove_loop__s3ypdx1x | false | ricdomolm/mini-coder-trajs-400k | bb605e5b77d54a994b16bda73f923648 |
[{"role":"user","content":"HTMLSerializer fails to properly handle attribute values and CDATA conten(...TRUNCATED) | "diff --git a/bleach/_vendor/html5lib/serializer.py b/bleach/_vendor/html5lib/serializer.py\nindex a(...TRUNCATED) | qwen3-coder-30b | mozilla__bleach.73871d76.func_pm_remove_assign__kvnou6r5 | false | ricdomolm/mini-coder-trajs-400k | d4967b34597baba88263f5fdf38e1137 |
[{"role":"user","content":"`NonRecursiveTreeWalker.__iter__` returns immediately without traversing (...TRUNCATED) | "diff --git a/bleach/_vendor/html5lib/treewalkers/base.py b/bleach/_vendor/html5lib/treewalkers/base(...TRUNCATED) | qwen3-coder-30b | mozilla__bleach.73871d76.func_pm_remove_loop__c23ptu8n | false | ricdomolm/mini-coder-trajs-400k | 695724809325e0de6c8486f8d4832b9e |
[{"role":"user","content":"`reconstructActiveFormattingElements` fails when `activeFormattingElement(...TRUNCATED) | "diff --git a/bleach/_vendor/html5lib/treebuilders/base.py b/bleach/_vendor/html5lib/treebuilders/ba(...TRUNCATED) | qwen3-coder-30b | mozilla__bleach.73871d76.func_pm_remove_cond__q2n7n4vh | false | ricdomolm/mini-coder-trajs-400k | 6f10376217a369320c3d71fb350a4041 |
[{"role":"user","content":"HTML tokenizer incorrectly handles null bytes in tag names\n\n#### Descri(...TRUNCATED) | "diff --git a/bleach/_vendor/html5lib/_tokenizer.py b/bleach/_vendor/html5lib/_tokenizer.py\nindex 5(...TRUNCATED) | qwen3-coder-30b | mozilla__bleach.73871d76.func_pm_ctrl_invert_if__jbsqsu8l | false | ricdomolm/mini-coder-trajs-400k | 49aafe74c6caadb661a2b638f37c1dd3 |
[{"role":"user","content":"URLs with parentheses not handled correctly\n\nIt looks like URLs contain(...TRUNCATED) | "diff --git a/bleach/linkifier.py b/bleach/linkifier.py\nindex 8fcefb2..dccd56e 100644\n--- a/bleach(...TRUNCATED) | qwen3-coder-30b | mozilla__bleach.73871d76.func_pm_remove_assign__bznv6zkw | false | ricdomolm/mini-coder-trajs-400k | 2e3f55472028443eeac194097b9b8b34 |
[{"role":"user","content":"# HTML tree walker breaks when traversing nested elements\n\n## Descripti(...TRUNCATED) | "diff --git a/bleach/_vendor/html5lib/treewalkers/etree.py b/bleach/_vendor/html5lib/treewalkers/etr(...TRUNCATED) | qwen3-coder-30b | mozilla__bleach.73871d76.func_pm_remove_cond__kcyz9gdr | false | ricdomolm/mini-coder-trajs-400k | 05ba1ce6ce2713610be4da99633ad58d |
[{"role":"user","content":"# HTML entities not properly handled in linkifier\n\n## Description\n\nI'(...TRUNCATED) | "diff --git a/bleach/linkifier.py b/bleach/linkifier.py\nindex f9ea1e2..0017c63 100644\n--- a/bleach(...TRUNCATED) | qwen3-coder-30b | mozilla__bleach.73871d76.func_pm_remove_cond__dfyej8pm | false | ricdomolm/mini-coder-trajs-400k | 9c3e8516ae1b6cba9a5a819f833b7c4d |
[{"role":"user","content":"`endTagHandler` is not defined in several parser phases\n\nSeveral HTML p(...TRUNCATED) | "diff --git a/bleach/_vendor/html5lib/html5parser.py b/bleach/_vendor/html5lib/html5parser.py\nindex(...TRUNCATED) | qwen3-coder-30b | mozilla__bleach.73871d76.func_pm_remove_assign__ma1kt6vp | false | ricdomolm/mini-coder-trajs-400k | e286ed35bb3238a6c04698a6d274e27f |
nanoswe SWE-agent trajectories (v0)
A consolidation of the SWE-bench-style coding-agent trajectory corpora used to train the nanoswe speedrun models. Each row is one multi-turn agent trajectory (issue → tool-using rollout → patch), stored untokenized.
- 1,582,701 trajectories, 34 parquet shards, content-deduplicated on
traj_hash. - Seed corpus:
ricdomolm/mini-coder-trajs-400k; the rest are derived SWE-smith / openhands / swe-zero conversions.
Schema
| column | type | description |
|---|---|---|
messages |
list<struct<role, content>> |
the trajectory as a chat conversation |
patch |
string |
the final diff the trajectory produced |
model |
string |
generator model that produced the rollout |
instance_id |
string |
task instance identifier |
verified |
bool |
correctness/verification flag — meaning varies by origin, see below |
origin |
string |
source family (see table) |
traj_hash |
string |
md5 of messages; stable dedup key |
Origins
origin |
rows | verified=True |
generator | what verified means here |
|---|---|---|---|---|
ricdomolm/mini-coder-trajs-400k |
387,296 | 83,114 | mixed | trajectory was graded; True = resolved the task |
swe-zero |
286,044 | 0 | openhands-converted | ungraded (no label) |
swe-zero-extra |
74,663 | 0 | qwen3-coder-30b-sft-v2 | ungraded (no label) |
swe-hero-extra |
55,255 | 0 | qwen3-coder-30b-sft-v2 | ungraded but gradable (tests exist) |
swe-smith-extra |
686,986 | 276,216 | qwen3-coder-30b-sft-v2-rfreeze | instance-level verification (verified vs unverified task) |
swe-smith-extra-short |
92,457 | 35,242 | qwen3coder-30b-brief | trajectory was graded per-row |
⚠️ verified is not homogeneous
verified=False means different things depending on origin:
- graded and failed —
ricdomolm/mini-coder-trajs-400k - never graded (no label) —
swe-zero,swe-zero-extra,swe-hero-extra - task instance not verified —
swe-smith-extra
Use origin to disambiguate. The model column further separates the ungraded
bulk generators (qwen3-coder-30b-sft-v2*, openhands-converted) from graded sets.
Treat verified=True as a positive signal only within an origin that was actually graded.
Provenance notes
swe-zerois the intersection of two renderings (str_replace/fit32k and render32k) of the same rollouts, keeping the render32kmessages.ricdomolm/mini-coder-trajs-400khere is the union of the correct + incorrect-split1 + incorrect-split2 trajectory sets.- "render32k" = trajectory whose nanoswe render is ≤32k tokens; "trunc100" = first 100 messages kept.
SWE-bench source-repo exclusion
To keep this corpus clean for SWE-bench-style evaluation, 4,516 trajectories whose
source environment is one of the 12 SWE-bench source repositories were removed (decision
key: the upstream owner/repo encoded in instance_id). No trajectory in this dataset is
sourced from any of:
astropy/astropy, django/django, matplotlib/matplotlib, mwaskom/seaborn,
pallets/flask, psf/requests, pydata/xarray, pylint-dev/pylint, pytest-dev/pytest,
scikit-learn/scikit-learn, sphinx-doc/sphinx, sympy/sympy.
Removed counts by repo: sympy/sympy 1,778 · pallets/flask 1,329 · pydata/xarray 676 ·
sphinx-doc/sphinx 361 · astropy/astropy 258 · mwaskom/seaborn 112 ·
scikit-learn/scikit-learn 2 (the other five repos contributed 0 rows). Ecosystem-sibling
repos that merely share an org or name family (e.g. pylint-dev/astroid, pallets/jinja,
pallets/werkzeug, astropy/astroquery, django/channels, the pytest-dev/pytest-*
plugins) are distinct codebases, not forks of the 12, and are retained.
Loading
from datasets import load_dataset
ds = load_dataset("ricdomolm/nanoswe-trajs-v0", split="train")
- Downloads last month
- 126