Dataset Viewer
Auto-converted to Parquet Duplicate
pr_instance_id
large_stringlengths
17
86
issue_instance_id
large_stringlengths
10
56
repo
large_stringlengths
0
49
version
large_stringclasses
519 values
base_commit
large_stringlengths
0
40
created_at
large_stringlengths
0
19
image_name
large_stringlengths
0
87
problem_statement
large_stringlengths
0
51.5k
difficulty
int64
-1
3
patchgen_model
large_stringclasses
3 values
model_patch
large_stringlengths
177
95k
patch_resolved
bool
2 classes
pr_title
large_stringlengths
3
131
pr_body
large_stringlengths
3
3.75k
messages
large_stringlengths
57k
505k
tools
large_stringclasses
1 value
turns
int64
13
100
teacher_model
large_stringclasses
1 value
decision
large_stringclasses
2 values
confidence
float64
0
1
report_json
large_stringclasses
22 values
judge_gpt54
large_stringclasses
117 values
judge_opus46
large_stringclasses
114 values
15five__scim2-filter-parser-20__qwen3-coder-30b-a3b-instruct
15five__scim2-filter-parser-20
15five/scim2-filter-parser
0.3
08de23c5626556a37beced764a22a2fa7021989b
2020-10-18 03:21:13
swerebench/sweb.eval.x86_64.15five_1776_scim2-filter-parser-20
Issue when using multiple "or" or "and" Hi, I am facing an issue, where the query having two or more "and" or more than two "or" is failing. Have a look at examples below: - 1)```"displayName co \"username\" or nickName co \"username\" or userName co \"username\""``` ```"displayName co \"username\" and nick...
0
Qwen/Qwen3-Coder-30B-A3B-Instruct
diff --git a/src/scim2_filter_parser/parser.py b/src/scim2_filter_parser/parser.py index 516f65d..e953660 100644 --- a/src/scim2_filter_parser/parser.py +++ b/src/scim2_filter_parser/parser.py @@ -110,9 +110,9 @@ class SCIMParser(Parser): # which takes precedence over "or" # 3. Attribute operators ...
true
fix: Allow chaining of multiple 'and' and 'or' operators
This PR fixes an issue where queries containing multiple consecutive 'and' or 'or' operators were failing to parse. **Problem:** - Queries like `displayName co "username" or nickName co "username" or userName co "username"` were failing with parsing errors - Queries like `displayName co "username" and nickName co "use...
[{"content": "You are OpenHands agent, a helpful AI assistant that can interact with a computer to solve tasks.\n\n<ROLE>\n* Your primary role is to assist users by executing commands, modifying code, and solving technical problems effectively. You should be thorough, methodical, and prioritize quality over speed.\n* I...
[{"type": "function", "function": {"name": "terminal", "description": "Execute a bash command in the terminal within a persistent shell session.\n\n\n### Command Execution\n* One command at a time: You can only execute one bash command at a time. If you need to run multiple commands sequentially, use `&&` or `;` to cha...
22
openai/GLM-5-FP8
approve
0.95
{"verdict": "correct", "reward": 1, "gt_resolved": true, "bug_fixed": true, "recommendation": "approve", "confidence": 0.95}
null
null
4degrees__clique-26__qwen3-coder-30b-a3b-instruct
4degrees__clique-26
4degrees/clique
1.3
a89507304acce5931f940c34025a6547fa8227b5
2016-04-30 17:21:04
swerebench/sweb.eval.x86_64.4degrees_1776_clique-26
"collection.format hits maximum recursion depth for collections with lots of holes.\nThe following c(...TRUNCATED)
2
Qwen/Qwen3-Coder-30B-A3B-Instruct
"diff --git a/source/clique/__init__.py b/source/clique/__init__.py\nindex 9a44bd0..17f9942 100644\n(...TRUNCATED)
true
N/A
N/A
"[{\"content\": \"You are OpenHands agent, a helpful AI assistant that can interact with a computer (...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"terminal\", \"description\": \"Execute a bash (...TRUNCATED)
49
openai/GLM-5-FP8
approve
0.9
"{\"verdict\": \"correct\", \"reward\": 1, \"gt_resolved\": true, \"bug_fixed\": true, \"recommendat(...TRUNCATED)
null
null
adamchainz__ec2-metadata-32__qwen3-coder-30b-a3b-instruct
adamchainz__ec2-metadata-32
adamchainz/ec2-metadata
1.2
d712c51c7474f392ddac09750d85c62987e626c2
2017-10-17 07:20:43
swerebench/sweb.eval.x86_64.adamchainz_1776_ec2-metadata-32
"Filter out non-200 responses\nCurrently we don't filter out error responses from the metadata API, (...TRUNCATED)
1
Qwen/Qwen3-Coder-30B-A3B-Instruct
"diff --git a/ec2_metadata.py b/ec2_metadata.py\nindex e087b14..c78184f 100644\n--- a/ec2_metadata.p(...TRUNCATED)
false
fix: filter out non-200 responses from metadata API
"This PR addresses the issue where non-200 responses from the metadata API were not being filtered o(...TRUNCATED)
"[{\"content\": \"You are OpenHands agent, a helpful AI assistant that can interact with a computer (...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"terminal\", \"description\": \"Execute a bash (...TRUNCATED)
24
openai/GLM-5-FP8
request_changes
0.95
"{\"verdict\": \"correct\", \"reward\": 1, \"gt_resolved\": false, \"bug_fixed\": false, \"recommend(...TRUNCATED)
"{\"diagnosis_accuracy\": 3, \"suggestion_correctness\": 2, \"grounding_quality\": 4, \"overall_scor(...TRUNCATED)
"{\"diagnosis_accuracy\": 2, \"suggestion_correctness\": 2, \"grounding_quality\": 3, \"overall_scor(...TRUNCATED)
adamchainz__ec2-metadata-350__qwen3-coder-30b-a3b-instruct
adamchainz__ec2-metadata-350
adamchainz/ec2-metadata
2.9
d72b0da489514e46519f49bd080860afb9fd3189
2022-03-06 15:47:09
swerebench/sweb.eval.x86_64.adamchainz_1776_ec2-metadata-350
"availability_zone_id may return 404\n### Python Version\n\n3.8.10\n\n### Package Version\n\n2.7.0\n(...TRUNCATED)
0
Qwen/Qwen3-Coder-30B-A3B-Instruct
"diff --git a/src/ec2_metadata/__init__.py b/src/ec2_metadata/__init__.py\nindex 0db8376..8d0e0b8 10(...TRUNCATED)
true
fix: handle 404 for availability_zone_id gracefully
"Fixes the issue where `ec2_metadata.availability_zone_id` would raise an HTTPError 404 when the ava(...TRUNCATED)
"[{\"content\": \"You are OpenHands agent, a helpful AI assistant that can interact with a computer (...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"terminal\", \"description\": \"Execute a bash (...TRUNCATED)
18
openai/GLM-5-FP8
approve
0.95
"{\"verdict\": \"correct\", \"reward\": 1, \"gt_resolved\": true, \"bug_fixed\": true, \"recommendat(...TRUNCATED)
null
null
adamchainz__pip-lock-121__qwen3-coder-30b-a3b-instruct
adamchainz__pip-lock-121
adamchainz/pip-lock
2.0
4a0e0106254aeceb13f7ff068ce295424b1d44a2
2019-12-19 11:50:52
swerebench/sweb.eval.x86_64.adamchainz_1776_pip-lock-121
"pip-lock does detect dependencies with setup extras\nThere are requirement mismatches with requirem(...TRUNCATED)
1
Qwen/Qwen3-Coder-30B-A3B-Instruct
"diff --git a/src/pip_lock.py b/src/pip_lock.py\nindex 9d93bfa..fc2df87 100644\n--- a/src/pip_lock.p(...TRUNCATED)
true
fix: handle package dependencies with setup extras correctly
"This PR fixes an issue where pip-lock did not correctly detect dependencies with setup extras (like(...TRUNCATED)
"[{\"content\": \"You are OpenHands agent, a helpful AI assistant that can interact with a computer (...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"terminal\", \"description\": \"Execute a bash (...TRUNCATED)
61
openai/GLM-5-FP8
approve
0.95
"{\"verdict\": \"correct\", \"reward\": 1, \"gt_resolved\": true, \"bug_fixed\": true, \"recommendat(...TRUNCATED)
null
null
adamchainz__pip-lock-208__qwen3-coder-30b-a3b-instruct
adamchainz__pip-lock-208
adamchainz/pip-lock
2.2
a70ab3c56a094044a1de38f9c66c29d9f022b274
2021-01-22 11:34:16
swerebench/sweb.eval.x86_64.adamchainz_1776_pip-lock-208
Crashes on lines providing arguments to pip For example `--find-links`
2
Qwen/Qwen3-Coder-30B-A3B-Instruct
"diff --git a/src/pip_lock.py b/src/pip_lock.py\nindex 38edddf..3341a26 100644\n--- a/src/pip_lock.p(...TRUNCATED)
true
fix: handle pip command-line arguments like --find-links
"Fixes crashes that occurred when processing requirements files containing pip command-line argument(...TRUNCATED)
"[{\"content\": \"You are OpenHands agent, a helpful AI assistant that can interact with a computer (...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"terminal\", \"description\": \"Execute a bash (...TRUNCATED)
65
openai/GLM-5-FP8
approve
0.95
"{\"verdict\": \"correct\", \"reward\": 1, \"gt_resolved\": true, \"bug_fixed\": true, \"recommendat(...TRUNCATED)
null
null
adbar__simplemma-150__qwen3-coder-30b-a3b-instruct
adbar__simplemma-150
adbar/simplemma
1.1
e1fb6a07d2896b153b18cacf5bf40803b23115de
2024-09-17 06:31:50
swerebench/sweb.eval.x86_64.adbar_1776_simplemma-150
"in_target_language can return ratios above 1.0 (again)\nBug #112 seems to have resurfaced. Again, `(...TRUNCATED)
1
Qwen/Qwen3-Coder-30B-A3B-Instruct
"diff --git a/simplemma/language_detector.py b/simplemma/language_detector.py\nindex 30c35be..854e78(...TRUNCATED)
true
N/A
N/A
"[{\"content\": \"You are OpenHands agent, a helpful AI assistant that can interact with a computer (...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"terminal\", \"description\": \"Execute a bash (...TRUNCATED)
51
openai/GLM-5-FP8
approve
0.95
"{\"verdict\": \"correct\", \"reward\": 1, \"gt_resolved\": true, \"bug_fixed\": true, \"recommendat(...TRUNCATED)
null
null
aequitas__python-rflink-39__qwen3-coder-30b-a3b-instruct
aequitas__python-rflink-39
aequitas/python-rflink
0.0
1b2ea3d82e4138fb5b35c763df94aa0a63d24acf
2020-01-25 20:01:16
swerebench/sweb.eval.x86_64.aequitas_1776_python-rflink-39
"decode_packet: too many values to unpack (expected 2)\nI use rflink integration in my HA setup and (...TRUNCATED)
0
Qwen/Qwen3-Coder-30B-A3B-Instruct
"diff --git a/rflink/parser.py b/rflink/parser.py\nindex 05e7ea0..8a74a52 100644\n--- a/rflink/parse(...TRUNCATED)
true
fix: handle packets with multiple equals in attribute values
"Fixes the 'too many values to unpack (expected 2)' error that occurred when parsing RFLink packets (...TRUNCATED)
"[{\"content\": \"You are OpenHands agent, a helpful AI assistant that can interact with a computer (...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"terminal\", \"description\": \"Execute a bash (...TRUNCATED)
52
openai/GLM-5-FP8
approve
0.95
"{\"verdict\": \"correct\", \"reward\": 1, \"gt_resolved\": true, \"bug_fixed\": true, \"recommendat(...TRUNCATED)
null
null
agronholm__exceptiongroup-69__qwen3-coder-30b-a3b-instruct
agronholm__exceptiongroup-69
agronholm/exceptiongroup
1.1
84b41345df273dac2ed3db0784d23af32482e319
2023-07-12 13:00:48
swerebench/sweb.eval.x86_64.agronholm_1776_exceptiongroup-69
"`with exceptiongroup.catch({Exception: async_fn}):` is a tempting and silent footgun\nIt's surprisi(...TRUNCATED)
0
Qwen/Qwen3-Coder-30B-A3B-Instruct
"diff --git a/src/exceptiongroup/_catch.py b/src/exceptiongroup/_catch.py\nindex 0be39b4..5ad1c09 10(...TRUNCATED)
true
fix: reject async handlers with clear error message
"Fixes the silent failure issue when async handlers are used with exceptiongroup.catch().\n\nPreviou(...TRUNCATED)
"[{\"content\": \"You are OpenHands agent, a helpful AI assistant that can interact with a computer (...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"terminal\", \"description\": \"Execute a bash (...TRUNCATED)
69
openai/GLM-5-FP8
approve
0.95
"{\"verdict\": \"correct\", \"reward\": 1, \"gt_resolved\": true, \"bug_fixed\": true, \"recommendat(...TRUNCATED)
null
null
ai4s2s__lilio-58__qwen3-coder-30b-a3b-instruct
ai4s2s__lilio-58
-1
Qwen/Qwen3-Coder-30B-A3B-Instruct
"diff --git a/lilio/utils.py b/lilio/utils.py\nindex 0be2e70..73f0860 100644\n--- a/lilio/utils.py\n(...TRUNCATED)
true
fix: Improve error message for empty calendar in resample function
"This PR fixes an unclear error message that occurred when calling the `resample` function with an e(...TRUNCATED)
"[{\"content\": \"You are OpenHands agent, a helpful AI assistant that can interact with a computer (...TRUNCATED)
"[{\"type\": \"function\", \"function\": {\"name\": \"terminal\", \"description\": \"Execute a bash (...TRUNCATED)
82
openai/GLM-5-FP8
approve
0.9
"{\"verdict\": \"correct\", \"reward\": 1, \"gt_resolved\": true, \"bug_fixed\": true, \"recommendat(...TRUNCATED)
null
null
End of preview. Expand in Data Studio

SWE-Review-Traj

8,914 decision-correct agentic code review trajectories for training open-source code review models. Each trajectory captures a full multi-turn review session where an AI agent explores a repository, traces the root cause of a bug, and produces a structured review decision — all verified against executable test suites.

Project Page | Paper | Code | Benchmark | Training Data | Claude Code Plugin

About SWE-Review

SWE-Review is a framework for closing the issue-resolution loop with agentic code review. A reviewer agent independently explores the repository, traces the root cause, and compares its own diagnosis against the submitted PR — turning one-shot patch generation into an iterative generate-review-revise loop that raises resolve rates by up to +29.4 percentage points on SWE-bench Verified.

Data Collection Pipeline

SWE-rebench (~6K instances) → Patchgen (3 models) → 14,156 candidate PRs
  → Teacher Review (GLM-5, agentic) → Decision-Correct Filtering → 8,914 trajectories

Step 1: Candidate PR Generation

Three models generate patches for ~6,000 SWE-rebench instances (no overlap with SWE-Review-Bench to prevent data leakage):

Patchgen Model Trajectories
GLM-5-FP8 3,056
Qwen3-Coder-30B-A3B-Instruct 2,991
Qwen3-30B-A3B-Instruct-2507 2,867

Step 2: Teacher Review

Open-weight GLM-5 with thinking enabled reviews each PR agentically via OpenHands-SDK. The review prompt enforces independent reconstruction: the reviewer must trace the root cause from the issue description and repository before examining the candidate patch, preventing confirmation bias.

Step 3: Decision-Correct Filtering

Only trajectories where the reviewer's decision matches ground truth are retained:

  • Approve a patch that actually resolves the issue ✓
  • Request changes on a patch that does not resolve the issue ✓

Quality Validation

  • Semantic quality: Two independent judges (Claude Opus 4.6, GPT-5.4) rate diagnosis quality. Mean overall score >3.0/5. Cohen's κ = 0.72 (substantial inter-judge agreement).
  • Functional quality: Diagnoses carry actionable information beyond the binary decision — revision RRR rises from 3% (no review) → 8% (decision only) → 21% (teacher review) → 32% (oracle).

Training Value

Review trajectories are not only useful for training reviewers — they also improve code generation when mixed with issue-resolution data:

Training Data (Qwen3-8B) RR (one-shot fix) Loop RRR (self-review + revise)
Issue-resolution 2k 31.2% 31.2%
+ Review 2k 36.8% (+5.6pp) 41.8% (+10.6pp)
Issue-resolution 3k 34.0% 34.0%
+ Review 3k 37.8% (+3.8pp) 41.2% (+7.2pp)

Mixed training simultaneously improves one-shot resolve rate and enables self-contained generate-review-revise loops within a single model.

Usage

Load the Dataset

from datasets import load_dataset
import json

ds = load_dataset("SWE-Lego/SWE-Review-Traj", split="train")
print(f"Total trajectories: {len(ds)}")

# Inspect a trajectory
traj = ds[0]
print(f"Instance: {traj['pr_instance_id']}")
print(f"Decision: {traj['decision']} (confidence: {traj['confidence']:.2f})")
print(f"Turns: {traj['turns']}")
print(f"Patch resolved: {traj['patch_resolved']}")

Train with LLaMA-Factory

The messages field is in ShareGPT format — directly compatible with LLaMA-Factory:

import json

ds = load_dataset("SWE-Lego/SWE-Review-Traj", split="train")
sft_data = [json.loads(row["messages"]) for row in ds]

with open("swe_review_traj.json", "w") as f:
    json.dump(sft_data, f)

Then register in dataset_info.json and train with LLaMA-Factory. See the training guide for complete instructions.

Access Judge Scores

4,548 trajectories include dual-judge quality scores:

traj = ds[0]
if traj["judge_gpt54"]:
    scores = json.loads(traj["judge_gpt54"])
    print(f"Diagnosis accuracy: {scores['diagnosis_accuracy']}/5")
    print(f"Suggestion correctness: {scores['suggestion_correctness']}/5")
    print(f"Overall: {scores['overall_score']}/5")

Schema

Field Type Description
pr_instance_id string PR instance identifier
issue_instance_id string Issue instance identifier
repo string GitHub repository
problem_statement string GitHub issue description
patchgen_model string Model that generated the candidate PR
model_patch string Candidate patch (unified diff)
patch_resolved bool Whether the patch resolves the issue
messages string (JSON) Full conversation in ShareGPT format
tools string (JSON) Tool definitions used during review
turns int Number of conversation turns
teacher_model string Teacher model used for review
decision string approve or request_changes
confidence float Reviewer confidence (0.0–1.0)
report_json string (JSON) Structured review report
judge_gpt54 string (JSON) GPT-5.4 quality scores (null if not evaluated)
judge_opus46 string (JSON) Claude Opus 4.6 quality scores (null if not evaluated)

Judge Score Fields

Each judge JSON contains:

Field Range Description
diagnosis_accuracy 1–5 Correctness of root-cause identification
suggestion_correctness 1–5 Correctness of suggested fixes
grounding_quality 1–5 Whether suggestions reference specific code locations
overall_score 1–5 Overall review quality
verdict 1–5 Alignment with ground-truth resolution status

Citation

@article{wang2026swereview,
  title={SWE-Review: Closing the Loop on Issue Resolution with Agentic Code Review},
  author={Wang, Ruoyu and Chen, Jierun and Wang, Shaowei and Tao, Chaofan and Yang, Sidi and Jiang, Yuxin and Yap, Kim-Hui and Shang, Lifeng and Li, Xiaohui and Bai, Haoli},
  journal={arXiv preprint},
  year={2026}
}
Downloads last month
83

Collection including SWE-Lego/SWE-Review-Traj