Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
stringlengths
11
56
source_dataset
stringclasses
3 values
repo
stringlengths
2
51
license
stringclasses
20 values
language
stringclasses
1 value
problem_statement
stringlengths
23
28.1k
patch
stringlengths
316
1.53M
test_patch
stringlengths
361
30.5k
⌀
f2p_patch
stringlengths
310
360k
⌀
FAIL_TO_PASS
listlengths
1
2.98k
⌀
PASS_TO_PASS
listlengths
0
22.7k
⌀
expected_output_json
stringlengths
34
307k
⌀
curation_verdict
stringclasses
2 values
curation_inspect
stringclasses
61 values
docker_image
stringlengths
64
69
⌀
image_name
stringlengths
44
86
⌀
image_url
stringlengths
30
72
⌀
base_commit
stringlengths
40
40
⌀
commit_hash
stringlengths
40
40
⌀
parent_commit
stringlengths
40
40
⌀
pr_commit
stringlengths
40
40
⌀
created_at
stringlengths
19
19
⌀
interface
stringlengths
33
15.4k
⌀
pr_description
stringlengths
8
8.53k
⌀
install_config
dict
meta
dict
user
stringclasses
548 values
workdir
stringclasses
670 values
f2p_script
stringlengths
0
15.5k
⌀
github_url
stringclasses
674 values
pre_commands
stringlengths
458
458
⌀
repo_name
stringclasses
9 values
source_files
stringclasses
556 values
harness
stringclasses
1 value
source
stringclasses
1 value
row_idx
int64
482
4.58k
⌀
n_expected
int64
1
4.09k
⌀
expected_all_passed
bool
2 classes
num_non_test_files
int64
1
4
⌀
num_non_test_lines
int64
1
157
⌀
verify_status
stringclasses
1 value
gold_patch_sha1
stringlengths
40
40
⌀
stage1_repaired
bool
1 class
stage2_hardened
bool
1 class
pillow@5908ccc5
R2E-Gym-Subset
pillow
MIT-CMU
python
[ISSUE] **Title:** `tobytes()` Raises `SystemError` for Empty Images **Description:** When calling the `tobytes()` method on an empty image (with zero width or height), a `SystemError` is raised instead of returning an empty bytestring. This issue affects scenarios where images might unintentionally have no dimensions...
diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 0bafd3907..69089a290 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -716,6 +716,9 @@ class Image: self.load() + if self.width == 0 or self.height == 0: + return b"" + # unpack data e = _getencoder(self.mode,...
diff --git a/Tests/test_image.py b/Tests/test_image.py index 4dde66f11..2d46d760d 100644 --- a/Tests/test_image.py +++ b/Tests/test_image.py @@ -786,6 +786,11 @@ class TestImage: 34665: 196, } + @pytest.mark.parametrize("size", ((1, 0), (0, 1), (0, 0))) + def test_zero_tobytes(self...
null
null
null
{ "\u001b[1mTestImage.test_image_modes_success\u001b[0m": "PASSED", "\u001b[1mTestImage.test_image_modes_fail\u001b[0m": "PASSED", "\u001b[1mTestImage.test_exception_inheritance\u001b[0m": "PASSED", "\u001b[1mTestImage.test_sanity\u001b[0m": "PASSED", "\u001b[1mTestImage.test_open_formats\u001b[0m":...
ship
["expected_tests_not_observed"]
namanjain12/pillow_final:5908ccc5ae4606e933d4542ab81f99b2ef26ed3f
null
null
5908ccc5ae4606e933d4542ab81f99b2ef26ed3f
5908ccc5ae4606e933d4542ab81f99b2ef26ed3f
null
null
null
null
null
null
null
null
null
null
null
null
pillow
["src/PIL/Image.py"]
r2e
R2E-Gym/R2E-Gym-Subset
2,683
67
false
1
3
pass
81e693ccf97515b43f039a9e09e36b4d2bf9c3a0
false
false
pillow@16220d9a
R2E-Gym-Subset
pillow
MIT-CMU
python
**[ISSUE]** **Title:** `thumbnail()` Raises TypeError with Non-Integer Size Arguments **Description:** When using the `thumbnail()` method from the PIL library, providing non-integer size arguments results in a `TypeError`. This prevents the method from accepting float values for image dimensions, even though handlin...
diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 613b3a361..981c8c818 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -2138,10 +2138,10 @@ class Image: x, y = self.size if x > size[0]: y = max(round(y * size[0] / x), 1) - x = size[0] + x = round(size[0]...
diff --git a/Tests/test_image_thumbnail.py b/Tests/test_image_thumbnail.py index 30fe25557..5806e2a08 100644 --- a/Tests/test_image_thumbnail.py +++ b/Tests/test_image_thumbnail.py @@ -43,6 +43,11 @@ class TestImageThumbnail(PillowTestCase): im.thumbnail((33, 33)) self.assertEqual(im.size, (21, 33)) ...
null
null
null
{ "TestImageThumbnail.test_aspect": "PASSED", "TestImageThumbnail.test_float": "PASSED", "TestImageThumbnail.test_no_resize": "PASSED", "TestImageThumbnail.test_sanity": "PASSED" }
ship
["no_binding_assertion"]
namanjain12/pillow_final:16220d9a8722ab7847747e586432368a5143ca21
null
null
16220d9a8722ab7847747e586432368a5143ca21
16220d9a8722ab7847747e586432368a5143ca21
null
null
null
null
null
null
null
null
null
null
null
null
pillow
["src/PIL/Image.py"]
r2e
R2E-Gym/R2E-Gym-Subset
2,680
4
true
1
4
pass
6a9604ad3b9a66b4f1ae2a2b22da2f94a8a92442
false
false
pyramid@c4cd124e
R2E-Gym-Subset
pyramid
BSD-style (Repoze)
python
[ISSUE] **Title:** JSONP Response Missing Semicolon Causes Test Failure **Description:** The JSONP renderer currently generates responses without a terminating semicolon. This leads to responses like `callback({"a": "1"})` instead of the expected `callback({"a": "1"});`. As a result, tests that check for the proper ...
diff --git a/docs/tutorials/wiki2/src/views/tutorial/views.py b/docs/tutorials/wiki2/src/views/tutorial/views.py index 42ef77b98..b41d4ab40 100644 --- a/docs/tutorials/wiki2/src/views/tutorial/views.py +++ b/docs/tutorials/wiki2/src/views/tutorial/views.py @@ -1,3 +1,4 @@ +import cgi import re from docutils.core impo...
diff --git a/pyramid/tests/test_renderers.py b/pyramid/tests/test_renderers.py index f6b9d2b0d..2bddd2318 100644 --- a/pyramid/tests/test_renderers.py +++ b/pyramid/tests/test_renderers.py @@ -567,7 +567,7 @@ class TestJSONP(unittest.TestCase): request = testing.DummyRequest() request.GET['callback'] ...
null
null
null
{ "TestJSON.test_it": "PASSED", "TestJSON.test_with_custom_adapter": "PASSED", "TestJSON.test_with_custom_adapter2": "PASSED", "TestJSON.test_with_custom_serializer": "PASSED", "TestJSON.test_with_object_adapter": "PASSED", "TestJSON.test_with_object_adapter_no___json__": "PASSED", "TestJSON...
ship
[]
namanjain12/pyramid_final:c4cd124e05b54c675dde63889b1cce50dd57d7f1
null
null
c4cd124e05b54c675dde63889b1cce50dd57d7f1
c4cd124e05b54c675dde63889b1cce50dd57d7f1
null
null
null
null
null
null
null
null
null
null
null
null
pyramid
["docs/tutorials/wiki2/src/views/tutorial/views.py", "pyramid/renderers.py"]
r2e
R2E-Gym/R2E-Gym-Subset
1,658
896
false
4
22
pass
6dbc6ddf713a631aadee6eccf199f957b0d35896
false
false
pyramid@855fe374
R2E-Gym-Subset
pyramid
BSD-style (Repoze)
python
[ISSUE] ### Route Path Includes Unwanted Trailing Slash When Adding Route with Empty Path and Prefix **Description** When adding a route with an empty string as the path while a `route_prefix` is set, the resulting route path incorrectly includes a trailing slash. This leads to inconsistencies in URL routing, where t...
diff --git a/pyramid/config/routes.py b/pyramid/config/routes.py index f1463b50b..971e3fc95 100644 --- a/pyramid/config/routes.py +++ b/pyramid/config/routes.py @@ -333,7 +333,10 @@ class RoutesConfiguratorMixin(object): static = True elif self.route_prefix: - pattern = self.route_pre...
diff --git a/pyramid/tests/test_config/test_routes.py b/pyramid/tests/test_config/test_routes.py index 1d2530c02..778d33938 100644 --- a/pyramid/tests/test_config/test_routes.py +++ b/pyramid/tests/test_config/test_routes.py @@ -50,6 +50,18 @@ class RoutesConfiguratorMixinTests(unittest.TestCase): config.add_r...
null
null
null
{ "RoutesConfiguratorMixinTests.test_add_route_defaults": "PASSED", "RoutesConfiguratorMixinTests.test_add_route_discriminator": "PASSED", "RoutesConfiguratorMixinTests.test_add_route_no_path_no_pattern": "PASSED", "RoutesConfiguratorMixinTests.test_add_route_no_pattern_with_path": "PASSED", "Routes...
ship
[]
namanjain12/pyramid_final:855fe374108779e82530da74f1c0fd21ab9033b3
null
null
855fe374108779e82530da74f1c0fd21ab9033b3
855fe374108779e82530da74f1c0fd21ab9033b3
null
null
null
null
null
null
null
null
null
null
null
null
pyramid
["pyramid/config/routes.py"]
r2e
R2E-Gym/R2E-Gym-Subset
1,656
851
false
2
23
pass
2b29655df37102ccbc36a6cd303b5cc3779cfd72
false
false
tornado@b9d6c971
R2E-Gym-Subset
tornado
Apache-2.0
python
[ISSUE] **Title:** `gen_test` Decorator Fails to Pass Arguments, Causing TypeErrors **Description:** When using the `@gen_test` decorator with test methods that accept positional and keyword arguments, passing these arguments results in `TypeError` exceptions. This issue prevents the tests from executing as intended w...
diff --git a/tornado/testing.py b/tornado/testing.py index ec650558..8967a43a 100644 --- a/tornado/testing.py +++ b/tornado/testing.py @@ -471,8 +471,8 @@ def gen_test(func=None, timeout=None): # This is a good case study arguing for either some sort of # extensibility in the gen decorators or cancell...
diff --git a/tornado/test/testing_test.py b/tornado/test/testing_test.py index aabdaced..1c8a8650 100644 --- a/tornado/test/testing_test.py +++ b/tornado/test/testing_test.py @@ -198,5 +198,23 @@ class GenTest(AsyncTestCase): self.finished = True + def test_with_method_args(self): + @gen_test + ...
null
null
null
{ "AsyncTestCaseTest.test_exception_in_callback": "PASSED", "AsyncTestCaseTest.test_subsequent_wait_calls": "PASSED", "AsyncTestCaseTest.test_wait_timeout": "PASSED", "AsyncTestCaseWrapperTest.test_other_return": "PASSED", "AsyncTestCaseWrapperTest.test_undecorated_generator": "PASSED", "AsyncTe...
ship
["suite_not_pytest"]
namanjain12/tornado_final:b9d6c9712148c9a0c1d1e3a04ee7b6b42eeb4183
null
null
b9d6c9712148c9a0c1d1e3a04ee7b6b42eeb4183
b9d6c9712148c9a0c1d1e3a04ee7b6b42eeb4183
null
null
null
null
null
null
null
null
null
null
null
null
tornado
["tornado/testing.py"]
r2e
R2E-Gym/R2E-Gym-Subset
2,329
15
true
1
9
pass
246a5193044fd48669ccecd73873911319357968
false
false
pandas@0e00151a
R2E-Gym-Subset
pandas
BSD-3-Clause
python
[ISSUE] **Title:** Warning incorrectly raised when merging integer and float columns containing NaN values **Description:** When merging two DataFrames on integer and float columns, a warning is raised even if the float column contains `NaN` values. This warning should only occur when float values are not exactly equa...
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 0204e655bf..4d8897fb7c 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -955,14 +955,14 @@ class _MergeOperation(object): # check whether ints and floats elif is_integer_dtyp...
diff --git a/pandas/tests/reshape/merge/test_merge.py b/pandas/tests/reshape/merge/test_merge.py index 436fe8f9f5..8e639edd34 100644 --- a/pandas/tests/reshape/merge/test_merge.py +++ b/pandas/tests/reshape/merge/test_merge.py @@ -1519,6 +1519,13 @@ class TestMergeDtypes(object): result = B.merge(A, left_o...
null
null
null
{ "TestMerge.test_merge_inner_join_empty": "PASSED", "TestMerge.test_merge_common": "PASSED", "TestMerge.test_merge_index_as_on_arg": "PASSED", "TestMerge.test_merge_index_singlekey_right_vs_left": "PASSED", "TestMerge.test_merge_index_singlekey_inner": "PASSED", "TestMerge.test_merge_misspecifi...
ship
["expected_tests_not_observed", "no_binding_assertion", "suite_missing_fixtures"]
namanjain12/pandas_final:0e00151aafb6c1f97b6a0cd711c83b4fba53f53b
null
null
0e00151aafb6c1f97b6a0cd711c83b4fba53f53b
0e00151aafb6c1f97b6a0cd711c83b4fba53f53b
null
null
null
null
null
null
null
null
null
null
null
null
pandas
["pandas/core/reshape/merge.py"]
r2e
R2E-Gym/R2E-Gym-Subset
4,027
127
false
1
4
pass
246ba5d51f236f914e6387986e8398ce51bd1220
false
false
coveragepy@f12672d3
R2E-Gym-Subset
coveragepy
Apache-2.0
python
**Analysis:** - **Key Parts:** - **Commit Message:** Automatically setting `timid=True` for plugins to avoid manual configuration cleanup. - **Test Results:** Before the commit, `LoadPluginsTest.test_implicit_boolean` failed because `Plugins.load_plugins([], config)` was expected to be `False` but returned a truth...
diff --git a/coverage/control.py b/coverage/control.py index 3f18c3ea..197a7c1e 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -15,14 +15,13 @@ from coverage.collector import Collector from coverage.config import CoverageConfig from coverage.data import CoverageData from coverage.debug import DebugCon...
diff --git a/tests/test_plugins.py b/tests/test_plugins.py index 2a8b089d..8c8d32e8 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -32,6 +32,21 @@ class FakeConfig(object): class LoadPluginsTest(CoverageTest): """Test Plugins.load_plugins directly.""" + def test_implicit_boolean(self): + ...
null
null
null
{ "LoadPluginsTest.test_cant_import": "PASSED", "LoadPluginsTest.test_implicit_boolean": "PASSED", "LoadPluginsTest.test_importing_and_configuring": "PASSED", "LoadPluginsTest.test_importing_and_configuring_more_than_one": "PASSED", "LoadPluginsTest.test_ok_to_not_define_plugin": "PASSED", "Plug...
ship
[]
namanjain12/coveragepy_final:f12672d37060f986246e5cb13dfd036ab09eb70b
null
null
f12672d37060f986246e5cb13dfd036ab09eb70b
f12672d37060f986246e5cb13dfd036ab09eb70b
null
null
null
null
null
null
null
null
null
null
null
null
coveragepy
["coverage/control.py"]
r2e
R2E-Gym/R2E-Gym-Subset
530
10
true
1
14
pass
400e00e05dc75bb89af61489afb11898449da25a
false
false
pillow@325ca3ce
R2E-Gym-Subset
pillow
MIT-CMU
python
[ISSUE] **Title:** Saving TGA images with excessively long `id_section` lacks trimming and warnings **Description:** When attempting to save a TGA image with an `id_section` longer than 255 characters, the `id_section` is neither trimmed to the required length nor is a warning issued to notify the user. This oversight...
diff --git a/src/PIL/TgaImagePlugin.py b/src/PIL/TgaImagePlugin.py index c60cb3ef1..c622f1f5e 100644 --- a/src/PIL/TgaImagePlugin.py +++ b/src/PIL/TgaImagePlugin.py @@ -20,6 +20,8 @@ from . import Image, ImageFile, ImagePalette from ._binary import i8, i16le as i16, o8, o16le as o16 +import warnings + __version__ ...
diff --git a/Tests/test_file_tga.py b/Tests/test_file_tga.py index 1fcd62b88..77695f2d1 100644 --- a/Tests/test_file_tga.py +++ b/Tests/test_file_tga.py @@ -124,6 +124,13 @@ class TestFileTga(PillowTestCase): test_im = Image.open(out) self.assertEqual(test_im.info["id_section"], b"Test content") + ...
null
null
null
{ "TestFileTga.test_id_field": "PASSED", "TestFileTga.test_id_field_rle": "PASSED", "TestFileTga.test_sanity": "PASSED", "TestFileTga.test_save": "PASSED", "TestFileTga.test_save_id_section": "PASSED", "TestFileTga.test_save_l_transparency": "PASSED", "TestFileTga.test_save_orientation": "PA...
ship
["suite_not_pytest"]
namanjain12/pillow_final:325ca3cede708a82ae76f294c9f8d1222d26a758
null
null
325ca3cede708a82ae76f294c9f8d1222d26a758
325ca3cede708a82ae76f294c9f8d1222d26a758
null
null
null
null
null
null
null
null
null
null
null
null
pillow
["src/PIL/TgaImagePlugin.py"]
r2e
R2E-Gym/R2E-Gym-Subset
2,687
8
true
1
6
pass
c7be18559b6167ac66401090136c50b09b1d077c
false
false
coveragepy@66657c17
R2E-Gym-Subset
coveragepy
Apache-2.0
python
"[ISSUE]\n**Title:** Path mapping incorrectly prefixes with \"./\" when not specified in configurati(...TRUNCATED)
"diff --git a/coverage/files.py b/coverage/files.py\nindex 82f4df31..bfd808ff 100644\n--- a/coverage(...TRUNCATED)
"diff --git a/tests/test_files.py b/tests/test_files.py\nindex 9a4cea7f..561b961d 100644\n--- a/test(...TRUNCATED)
null
null
null
"{\n \"test_globs_to_regex[a?c|x?z:ciFalse:parFalse:abc:match]\": \"PASSED\",\n \"test_globs_t(...TRUNCATED)
ship
["expected_tests_not_observed"]
namanjain12/coveragepy_final:66657c17d33ccdffa8ca95c8efa9bd4d64bddf5e
null
null
66657c17d33ccdffa8ca95c8efa9bd4d64bddf5e
66657c17d33ccdffa8ca95c8efa9bd4d64bddf5e
null
null
null
null
null
null
null
null
null
null
null
null
coveragepy
["coverage/files.py"]
r2e
R2E-Gym/R2E-Gym-Subset
523
176
true
1
3
pass
8fbcb385903b4720c5a15ad2fd37864f0d9fa7c7
false
false
numpy@6c130f8a
R2E-Gym-Subset
numpy
BSD-3-Clause
python
"[ISSUE]\n**Title:** Masked Array Comparisons Broadcast `nomask` Unexpectedly\n\n**Description:**\nW(...TRUNCATED)
"diff --git a/numpy/ma/core.py b/numpy/ma/core.py\nindex 63d03eb820..e2db965008 100644\n--- a/numpy/(...TRUNCATED)
"diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py\nindex 98eda3325a..a4f8deb93(...TRUNCATED)
null
null
null
"{\n \"TestMaskedArray.test_basicattributes\": \"PASSED\",\n \"TestMaskedArray.test_basic0d\":(...TRUNCATED)
ship
["expected_tests_not_observed"]
namanjain12/numpy_final:6c130f8a3c6172c8b4476b4d7d56b89b4f7dd5ed
null
null
6c130f8a3c6172c8b4476b4d7d56b89b4f7dd5ed
6c130f8a3c6172c8b4476b4d7d56b89b4f7dd5ed
null
null
null
null
null
null
null
null
null
null
null
null
numpy
["numpy/ma/core.py"]
r2e
R2E-Gym/R2E-Gym-Subset
1,269
4,087
true
1
23
pass
82a7e8dd3ca79da02774d6350e469bf61ce83590
false
false
End of preview. Expand in Data Studio

Arctic SWE Data

Overview

Arctic SWE Data is a set of 11,995 execution-verified software-engineering tasks for reinforcement learning of coding agents. Each task is a real issue from a Python repository, paired with a Docker image, the gold patch and the tests that grade a solution.

The tasks were filtered from three public datasets: R2E-Gym-Subset (R2E-Gym, Apache-2.0), SWE-rebench V2 (Nebius, CC BY 4.0) and Scale-SWE (AweAI, CC BY 4.0). See Licenses and credits.

The dataset has two subsets that do not overlap:

  • curated, 7,221 tasks. Each passed an execution-based measurement pipeline and an LLM-judge audit of its test contract, which asks whether the tests that pay the reward separate a correct fix from a plausible wrong one.
  • strengthened, 4,774 tasks. The judge rejected these because their tests were too loose. An LLM agent then strengthened the tests, and a task was kept only if the gold patch still passes and the original code still fails.

Highlights

  • 11,995 Python tasks: 7,221 curated and 4,774 strengthened
  • Every task was run in its container: the gold patch applies and passes the graded tests, and the graded tests tell the original code from the fixed code
  • We rewrote 1,233 issues and strengthened 4,889 test suites using Qwen3.8-27B. After the license review, this release contains 1,178 of the rewritten issues and 4,774 of the strengthened test suites
  • Every row has a license field: the license of the repository the task came from

Dataset contents

Subset R2E-Gym-Subset SWE-rebench-V2 Scale-SWE Total
curated 1,878 1,705 3,638 7,221
strengthened 791 1,047 2,936 4,774

Each subset stores one Parquet file per source (data/<subset>/r2e.parquet, rebench.parquet, scaleswe.parquet). The three files in a subset share one schema, and source_dataset names each row's source. LICENSES/ holds the Apache-2.0 and CC BY 4.0 license texts.

How the tasks were selected

The curation pipeline produced 7,500 curated tasks, test strengthening produced 4,889 strengthened tasks, and a license review then removed the tasks whose repository licenses do not allow this release.

Curated subset

Before the license review:

Source Starting pool Reviewed by judge Kept ship / ship_rewritten
R2E-Gym-Subset 3,606 3,515 2,086 1,756 / 330
SWE-rebench-V2 6,584 5,308 1,776 1,303 / 473
Scale-SWE 10,909 9,038 3,638 3,208 / 430
Total 21,099 17,861 7,500 6,267 / 1,233

Starting pools:

  • R2E-Gym-Subset: tasks whose gold patch validates, after de-duplication.
  • SWE-rebench-V2: Python tasks whose gold patch validates.
  • Scale-SWE: tasks graded by the developer-written tests from the pull request (f2p_patch) rather than by a generated reproduction script. 310 of them have no published Docker image and could not be measured.

Stages A–C execute every task in its Docker image. Stage D is an LLM-agent judge.

  • Stage A, execution preflight. Runs the graded tests on the original and on the gold-patched code and derives the tests that go from failing to passing. A task is removed if the gold patch does not apply or fails the graded tests, if no test distinguishes the two versions, if the declared FAIL_TO_PASS tests are missing or already pass before the fix, or if the suite cannot be run.
  • Stage B, assertion binding. Instruments the assertions in the graded tests and finds the ones that actually gate the reward. Tasks gated only by "does not crash" are flagged (no_binding_assertion), not removed. Tasks whose assertions could not be probed are excluded.
  • Stage C, gold-diff coverage (R2E-Gym-Subset and SWE-rebench-V2 only). Measures how much of the gold patch the reward-gating tests execute, as evidence for stage D.
  • Stage D, judge. An LLM agent (Qwen3.8-27B, NVFP4) works in the task's container with the stage A–C evidence. It writes and grades candidate fixes, for example a plausible fix derived from the issue alone, and returns ship, ship_rewritten or drop with a reason.

Stages A–C removed 91 R2E-Gym-Subset, 1,276 SWE-rebench-V2 and 1,561 Scale-SWE tasks. The largest causes are the gold patch failing the declared gate (612 SWE-rebench-V2, 1,040 Scale-SWE) and, for R2E-Gym-Subset, the gold patch failing its own suite (69). Tasks lost to sandbox errors (146 SWE-rebench-V2, 47 Scale-SWE) are excluded as well.

Removed by the judge:

Reason Meaning R2E-Gym SWE-rebench Scale-SWE Total
test_too_loose a plausible fix that does not solve the issue still earns full reward 986 1,155 3,210 5,351
test_over_restrictive a correct fix that differs from gold earns no reward 282 1,227 1,634 3,143
test_off_target the graded tests do not exercise what the issue describes 28 642 215 885
gold_partially_fixes_issue the gold patch fixes only part of the issue 60 425 329 814
gold_does_not_fix_issue the gold patch does not fix the issue 33 70 2 105
gold_unrelated_to_issue the gold patch is unrelated to the issue 3 4 0 7
other 0 2 0 2
Removed 1,392 3,525 5,390 10,307
No verdict judge error 37 7 10 54

On ship_rewritten rows the judge rewrote problem_statement to state requirements that the tests enforce but the original issue leaves out. The rest of the row is unchanged. ship rows keep the source statement. The test code in this subset is unchanged from the source.

Strengthened subset

This subset starts from the 5,351 tasks that the judge removed as test_too_loose, all with a gold patch that fully fixes the issue. An LLM agent (Qwen3.8-27B, NVFP4) worked in each task's container and added or tightened tests. A task was kept only if the gold patch still passes the strengthened tests and the original code still fails them. A final check that each strengthening diff applies cleanly removed 21 more tasks, leaving 4,889 before the license review. Problem statements in this subset are the source's, unchanged.

Source Processed Kept Released
R2E-Gym-Subset 986 857 791
SWE-rebench-V2 1,155 1,096 1,047
Scale-SWE 3,210 2,936 2,936
Total 5,351 4,889 4,774

Where the strengthened tests are:

  • SWE-rebench-V2 rows: test_patch is the source's original test patch followed by the strengthening diff, applied in that order. FAIL_TO_PASS lists the strengthened gate; it changed on 887 rows.
  • Scale-SWE rows: f2p_patch is the source's original test patch followed by the strengthening diff, applied in that order. FAIL_TO_PASS changed on 2,573 rows.
  • R2E-Gym-Subset rows: R2E-Gym keeps each task's tests as files inside its Docker image, so the strengthened tests are complete files in strengthened_test_files, a JSON object that maps each test file path (such as r2e_tests/test_1.py) to its contents. Each file we modified ends with a comment that marks it as modified, and modified_test_files lists those files. expected_output_json is re-recorded against the strengthened tests; it changed on 592 rows. Grade with these files in place of the image's tests. Without them, the original tests run against the re-recorded expectations and every row scores 0.

License review

We matched every task to the license of its source repository at the commit we used, and kept only tasks under permissive licenses.

Removed because the repository is under curated strengthened
a strong copyleft license (GPL, AGPL) 220 72
a weak copyleft license (MPL, LGPL) 42 25
the Business Source License 1.1 15 13
no license file 2 3
GFDL, for documentation that the gold patch edits 0 2
Removed 279 115
Released 7,221 4,774

The removed tasks come from R2E-Gym-Subset (274, all from biolab/orange3) and SWE-rebench-V2 (120). No Scale-SWE task was removed.

Data fields

Both subsets keep every column of their source datasets under the source's own name. A column that does not apply to a row's source is null. Values are unchanged from the source, except that Scale-SWE's FAIL_TO_PASS and PASS_TO_PASS are stored as lists of strings instead of JSON-encoded strings, and license comes from our license review.

Column Filled for Meaning
instance_id, source_dataset, repo, language, problem_statement, patch all rows task id, source dataset, repository, language, issue text and gold patch
license all rows the license of the repository the task came from, from our license review. It replaces SWE-rebench-V2's own license field
test_patch R2E-Gym-Subset, SWE-rebench-V2 test changes for the task
f2p_patch Scale-SWE the developer-written test patch that grades the task
FAIL_TO_PASS, PASS_TO_PASS SWE-rebench-V2, Scale-SWE test ids that must go from failing to passing, and that must keep passing
expected_output_json R2E-Gym-Subset expected status of every graded test after the fix
docker_image / image_name / image_url R2E-Gym-Subset / SWE-rebench-V2 / Scale-SWE the task's Docker image
base_commit / parent_commit R2E-Gym-Subset and SWE-rebench-V2 / Scale-SWE the commit the task starts from
curation_verdict, curation_inspect curated only ship or ship_rewritten, and a JSON list of flags raised in stages A–C, kept for auditing
stage2_hardened strengthened (and R2E-Gym-Subset rows of curated, where it is false) whether the tests were strengthened
strengthened_test_files, modified_test_files R2E-Gym-Subset rows of strengthened the strengthened test files, and the paths among them that we modified
created_at, interface, pr_description, install_config, meta SWE-rebench-V2 PR date, the public interface the fix must provide, PR text, install steps with test command and log parser, and SWE-rebench annotations
user, workdir, pr_commit, f2p_script, github_url, pre_commands Scale-SWE repository owner, working directory, PR commit, Scale-SWE's generated reproduction script, repository URL, and commands that must run first in the container to check out the base commit
commit_hash, repo_name, source_files, harness, source, row_idx, n_expected, expected_all_passed, num_non_test_files, num_non_test_lines, verify_status, gold_patch_sha1, stage1_repaired R2E-Gym-Subset R2E-Gym fields and bookkeeping carried over from the source

For SWE-rebench-V2 rows of curated, FAIL_TO_PASS and PASS_TO_PASS are the test ids verified in stage A. They differ from the source on 97 rows, 94 of which repair ids that the source truncated at a space (flag truncated_gate_ids_repaired).

Usage

import json
from datasets import load_dataset

repo = "Snowflake/arctic-swe-data"
curated = load_dataset(repo, "curated", split="train")
strengthened = load_dataset(repo, "strengthened", split="train")

scale_swe = curated.filter(lambda row: row["source_dataset"] == "Scale-SWE")
r2e_strengthened = strengthened.filter(lambda row: row["source_dataset"] == "R2E-Gym-Subset")
test_files = json.loads(r2e_strengthened[0]["strengthened_test_files"])  # {path: contents}

Grading notes

  • Run each task in its own Docker image and follow its source's conventions: the R2E-Gym harness for R2E-Gym-Subset rows, install_config for SWE-rebench-V2 rows, and pre_commands followed by f2p_patch for Scale-SWE rows.
  • In strengthened, use the strengthened tests: the combined patch for SWE-rebench-V2 and Scale-SWE rows, and strengthened_test_files for R2E-Gym-Subset rows. The modification notice at the end of a strengthened R2E-Gym test file is a comment and does not affect the tests.
  • SWE-rebench-V2: match test ids exactly. Parametrized ids can contain spaces, and a log parser that cuts them off can never mark those tests as passed.
  • Scale-SWE: some gold patches also change test-support files such as conftest.py. A grader that resets test files to the base commit must keep those changes, or the gold patch itself fails.
  • Rows flagged gating_ids_exceed_argv_limit in curation_inspect (85 Scale-SWE, 8 SWE-rebench-V2) have test-id lists longer than one command-line argument allows (128 KiB on Linux). Pass the ids through a file.

Licenses and credits

This dataset is derived from three public datasets. We filtered their tasks, rewrote some issue texts and strengthened some test suites.

source_dataset Dataset From License
R2E-Gym-Subset R2E-Gym/R2E-Gym-Subset R2E-Gym Apache-2.0
SWE-rebench-V2 nebius/SWE-rebench-V2 Nebius CC BY 4.0
Scale-SWE AweAI-Team/Scale-SWE AweAI CC BY 4.0
  • Repository licenses. Each task's code, tests and issue text stay under the license of the repository they came from, as listed in the license column.
  • R2E-Gym-Subset rows are distributed under Apache-2.0. The license text is in LICENSES/Apache-2.0.txt. We modified this material: we selected a subset of the tasks, rewrote 292 issue texts and strengthened the tests of 791 tasks. Every strengthened test file that we changed ends with a notice saying so, and modified_test_files lists those files.
  • SWE-rebench-V2 and Scale-SWE rows are distributed under CC BY 4.0. The license text is in LICENSES/CC-BY-4.0.txt. We modified this material: we selected a subset of the tasks, rewrote 456 SWE-rebench-V2 and 430 Scale-SWE issue texts, repaired the test-id lists of 97 SWE-rebench-V2 tasks, and strengthened the tests of 1,047 SWE-rebench-V2 and 2,936 Scale-SWE tasks.
  • Scale-SWE's license is stated in its README at revision d8db20390a936bbda9c96d88b97cc4778dff1481, which reads: "This project is licensed under the CC BY 4.0 License - see the LICENSE file for details." The repository does not include that LICENSE file.
  • Model-generated content. We rewrote 1,233 issues and strengthened 4,889 test suites using Qwen3.8-27B (nvidia/Qwen3.8-27B-NVFP4, Apache-2.0). This release contains 1,178 of those issues and 4,774 of those test suites.

Citation

If you use this dataset, please also cite the three source datasets; their cards list the references.

Downloads last month
27