Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
stringlengths
15
120
repo
stringclasses
45 values
base_commit
stringlengths
40
40
version
stringlengths
1
7
patch
stringlengths
360
175k
test_patch
stringlengths
372
61.3k
problem_statement
stringlengths
55
14.9k
hints_text
stringlengths
0
17.2k
FAIL_TO_PASS
stringlengths
10
39k
PASS_TO_PASS
stringlengths
2
271k
created_at
stringdate
2017-07-06 11:03:14
2025-05-15 10:27:40
difficulty
stringclasses
4 values
environment_setup_commit
stringclasses
51 values
run_script
stringlengths
141
196
parsing_script
stringlengths
145
200
before_repo_set_cmd
stringlengths
198
4.71k
selected_test_files_to_run
stringlengths
10
6.75k
image_name
stringlengths
129
197
source
stringclasses
3 values
language
stringclasses
9 values
astropy__astropy-12907
astropy/astropy
d16bfe05a744909de4b27f5875fe0d4ed41ce607
4.3
diff --git a/astropy/modeling/separable.py b/astropy/modeling/separable.py --- a/astropy/modeling/separable.py +++ b/astropy/modeling/separable.py @@ -242,7 +242,7 @@ def _cstack(left, right): cright = _coord_matrix(right, 'right', noutp) else: cright = np.zeros((noutp, right.shape[1])) - ...
diff --git a/astropy/modeling/tests/test_separable.py b/astropy/modeling/tests/test_separable.py --- a/astropy/modeling/tests/test_separable.py +++ b/astropy/modeling/tests/test_separable.py @@ -28,6 +28,13 @@ p1 = models.Polynomial1D(1, name='p1') +cm_4d_expected = (np.array([False, False, True, True]), + ...
Modeling's `separability_matrix` does not compute separability correctly for nested CompoundModels Consider the following model: ```python from astropy.modeling import models as m from astropy.modeling.separable import separability_matrix cm = m.Linear1D(10) & m.Linear1D(5) ``` It's separability matrix as y...
["astropy/modeling/tests/test_separable.py::test_separable[compound_model6-result6]", "astropy/modeling/tests/test_separable.py::test_separable[compound_model9-result9]"]
["astropy/modeling/tests/test_separable.py::test_coord_matrix", "astropy/modeling/tests/test_separable.py::test_cdot", "astropy/modeling/tests/test_separable.py::test_cstack", "astropy/modeling/tests/test_separable.py::test_arith_oper", "astropy/modeling/tests/test_separable.py::test_separable[compound_model0-result0]"...
2022-03-03 15:14:54
15 min - 1 hour
298ccb478e6bf092953bca67a3d29dc6c35f6752
null
null
null
null
null
swebench_verified
py
astropy__astropy-13398
astropy/astropy
6500928dc0e57be8f06d1162eacc3ba5e2eff692
5.0
diff --git a/astropy/coordinates/builtin_frames/__init__.py b/astropy/coordinates/builtin_frames/__init__.py --- a/astropy/coordinates/builtin_frames/__init__.py +++ b/astropy/coordinates/builtin_frames/__init__.py @@ -48,6 +48,7 @@ from . import icrs_cirs_transforms from . import cirs_observed_transforms from . imp...
diff --git a/astropy/coordinates/tests/test_intermediate_transformations.py b/astropy/coordinates/tests/test_intermediate_transformations.py --- a/astropy/coordinates/tests/test_intermediate_transformations.py +++ b/astropy/coordinates/tests/test_intermediate_transformations.py @@ -194,6 +194,116 @@ def test_cirs_to_ha...
A direct approach to ITRS to Observed transformations that stays within the ITRS. <!-- This comments are hidden when you submit the issue, so you do not need to remove them! --> <!-- Please be sure to check out our contributing guidelines, https://github.com/astropy/astropy/blob/main/CONTRIBUTING.md . Please be s...
cc @StuartLittlefair, @adrn, @eteq, @eerovaher, @mhvk Yes, would be good to address this recurring problem. But we somehow have to ensure it gets used only when relevant. For instance, the coordinates better have a distance, and I suspect it has to be near Earth... Yeah, so far I've made no attempt at hardening this a...
["astropy/coordinates/tests/test_intermediate_transformations.py::test_itrs_topo_to_altaz_with_refraction", "astropy/coordinates/tests/test_intermediate_transformations.py::test_itrs_topo_to_hadec_with_refraction", "astropy/coordinates/tests/test_intermediate_transformations.py::test_cirs_itrs_topo", "astropy/coordinat...
["astropy/coordinates/tests/test_intermediate_transformations.py::test_icrs_gcrs[icoo0]", "astropy/coordinates/tests/test_intermediate_transformations.py::test_icrs_gcrs[icoo1]", "astropy/coordinates/tests/test_intermediate_transformations.py::test_icrs_gcrs_dist_diff[gframe0]", "astropy/coordinates/tests/test_intermed...
2022-06-24 15:22:11
1-4 hours
cdf311e0714e611d48b0a31eb1f0e2cbffab7f23
null
null
null
null
null
swebench_verified
py
astropy__astropy-13579
astropy/astropy
0df94ff7097961e92fd7812036a24b145bc13ca8
5.0
diff --git a/astropy/wcs/wcsapi/wrappers/sliced_wcs.py b/astropy/wcs/wcsapi/wrappers/sliced_wcs.py --- a/astropy/wcs/wcsapi/wrappers/sliced_wcs.py +++ b/astropy/wcs/wcsapi/wrappers/sliced_wcs.py @@ -243,6 +243,8 @@ def pixel_to_world_values(self, *pixel_arrays): return world_arrays def world_to_pixel_va...
diff --git a/astropy/wcs/wcsapi/wrappers/tests/test_sliced_wcs.py b/astropy/wcs/wcsapi/wrappers/tests/test_sliced_wcs.py --- a/astropy/wcs/wcsapi/wrappers/tests/test_sliced_wcs.py +++ b/astropy/wcs/wcsapi/wrappers/tests/test_sliced_wcs.py @@ -899,3 +899,39 @@ def test_pixel_to_world_values_different_int_types(): f...
Inconsistent behavior of `world_to_pixel` in `SlicedLowLevelWCS` <!-- This comments are hidden when you submit the issue, so you do not need to remove them! --> <!-- Please be sure to check out our contributing guidelines, https://github.com/astropy/astropy/blob/main/CONTRIBUTING.md . Please be sure to check out...
A slightly shorter script to reproduce the issue is this (starting from the definition of `fits_wcs` in the OP): ```python sl = SlicedLowLevelWCS(fits_wcs, 0) world = fits_wcs.pixel_to_world_values(0,0,0) out_pix = sl.world_to_pixel_values(world[0], world[1]) assert np.allclose(out_pix[0], 0) ``` The root ...
["astropy/wcs/wcsapi/wrappers/tests/test_sliced_wcs.py::test_coupled_world_slicing"]
["astropy/wcs/wcsapi/wrappers/tests/test_sliced_wcs.py::test_invalid_slices", "astropy/wcs/wcsapi/wrappers/tests/test_sliced_wcs.py::test_sanitize_slice[item0-4-expected0]", "astropy/wcs/wcsapi/wrappers/tests/test_sliced_wcs.py::test_sanitize_slice[item1-5-expected1]", "astropy/wcs/wcsapi/wrappers/tests/test_sliced_wcs...
2022-08-26 15:06:53
1-4 hours
cdf311e0714e611d48b0a31eb1f0e2cbffab7f23
null
null
null
null
null
swebench_verified
py
astropy__astropy-13977
astropy/astropy
5250b2442501e6c671c6b380536f1edb352602d1
5.1
diff --git a/astropy/units/quantity.py b/astropy/units/quantity.py --- a/astropy/units/quantity.py +++ b/astropy/units/quantity.py @@ -633,53 +633,70 @@ def __array_ufunc__(self, function, method, *inputs, **kwargs): Returns ------- - result : `~astropy.units.Quantity` + result : `~ast...
diff --git a/astropy/units/tests/test_quantity.py b/astropy/units/tests/test_quantity.py --- a/astropy/units/tests/test_quantity.py +++ b/astropy/units/tests/test_quantity.py @@ -505,11 +505,10 @@ def test_incompatible_units(self): def test_non_number_type(self): q1 = u.Quantity(11.412, unit=u.meter) - ...
Should `Quantity.__array_ufunc__()` return `NotImplemented` instead of raising `ValueError` if the inputs are incompatible? ### Description I'm trying to implement a duck type of `astropy.units.Quantity`. If you are interested, the project is available [here](https://github.com/Kankelborg-Group/named_arrays). I'm runn...
@byrdie - I think you are right that really one should return `NotImplemented`. In general, the idea is indeed that one only works on classes that are recognized, while in the implementation that we have (which I wrote...) essentially everything that has a `unit` attribute is treated as a `Quantity`. I think it is a go...
["astropy/units/tests/test_quantity_ufuncs.py::TestUfuncReturnsNotImplemented::TestBinaryUfuncs::test_full[None-duck_quantity0-quantity0-add]", "astropy/units/tests/test_quantity_ufuncs.py::TestUfuncReturnsNotImplemented::TestBinaryUfuncs::test_full[None-duck_quantity0-quantity0-less]", "astropy/units/tests/test_quanti...
["astropy/units/tests/test_quantity.py::TestQuantityCreation::test_1", "astropy/units/tests/test_quantity.py::TestQuantityCreation::test_2", "astropy/units/tests/test_quantity.py::TestQuantityCreation::test_3", "astropy/units/tests/test_quantity.py::TestQuantityCreation::test_nan_inf", "astropy/units/tests/test_quantit...
2022-11-01 22:24:58
15 min - 1 hour
5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5
null
null
null
null
null
swebench_verified
py
astropy__astropy-14365
astropy/astropy
7269fa3e33e8d02485a647da91a5a2a60a06af61
5.1
diff --git a/astropy/io/ascii/qdp.py b/astropy/io/ascii/qdp.py --- a/astropy/io/ascii/qdp.py +++ b/astropy/io/ascii/qdp.py @@ -68,7 +68,7 @@ def _line_type(line, delimiter=None): _new_re = rf"NO({sep}NO)+" _data_re = rf"({_decimal_re}|NO|[-+]?nan)({sep}({_decimal_re}|NO|[-+]?nan))*)" _type_re = rf"^\s*((...
diff --git a/astropy/io/ascii/tests/test_qdp.py b/astropy/io/ascii/tests/test_qdp.py --- a/astropy/io/ascii/tests/test_qdp.py +++ b/astropy/io/ascii/tests/test_qdp.py @@ -43,7 +43,18 @@ def test_get_tables_from_qdp_file(tmp_path): assert np.isclose(table2["MJD_nerr"][0], -2.37847222222222e-05) -def test_roundt...
ascii.qdp Table format assumes QDP commands are upper case ### Description ascii.qdp assumes that commands in a QDP file are upper case, for example, for errors they must be "READ SERR 1 2" whereas QDP itself is not case sensitive and case use "read serr 1 2". As many QDP files are created by hand, the expectation...
Welcome to Astropy 👋 and thank you for your first issue! A project member will respond to you as soon as possible; in the meantime, please double-check the [guidelines for submitting issues](https://github.com/astropy/astropy/blob/main/CONTRIBUTING.md#reporting-issues) and make sure you've provided the requested deta...
["astropy/io/ascii/tests/test_qdp.py::test_roundtrip[True]"]
["astropy/io/ascii/tests/test_qdp.py::test_get_tables_from_qdp_file", "astropy/io/ascii/tests/test_qdp.py::test_roundtrip[False]", "astropy/io/ascii/tests/test_qdp.py::test_read_example", "astropy/io/ascii/tests/test_qdp.py::test_roundtrip_example", "astropy/io/ascii/tests/test_qdp.py::test_roundtrip_example_comma", "a...
2023-02-06 19:20:34
15 min - 1 hour
5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5
null
null
null
null
null
swebench_verified
py
astropy__astropy-14369
astropy/astropy
fa4e8d1cd279acf9b24560813c8652494ccd5922
5.1
"diff --git a/astropy/units/format/cds.py b/astropy/units/format/cds.py\n--- a/astropy/units/format/(...TRUNCATED)
"diff --git a/astropy/units/tests/test_format.py b/astropy/units/tests/test_format.py\n--- a/astropy(...TRUNCATED)
"Incorrect units read from MRT (CDS format) files with astropy.table\n### Description\n\nWhen readin(...TRUNCATED)
"Welcome to Astropy 👋 and thank you for your first issue!\n\nA project member will respond to you(...TRUNCATED)
"[\"astropy/units/tests/test_format.py::test_cds_grammar[strings4-unit4]\", \"astropy/units/tests/te(...TRUNCATED)
"[\"astropy/units/tests/test_format.py::test_unit_grammar[strings0-unit0]\", \"astropy/units/tests/t(...TRUNCATED)
2023-02-06 21:56:51
1-4 hours
5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5
null
null
null
null
null
swebench_verified
py
astropy__astropy-14508
astropy/astropy
a3f4ae6cd24d5ecdf49f213d77b3513dd509a06c
5.1
"diff --git a/astropy/io/fits/card.py b/astropy/io/fits/card.py\n--- a/astropy/io/fits/card.py\n+++ (...TRUNCATED)
"diff --git a/astropy/io/fits/tests/test_header.py b/astropy/io/fits/tests/test_header.py\n--- a/ast(...TRUNCATED)
"`io.fits.Card` may use a string representation of floats that is larger than necessary\n### Descrip(...TRUNCATED)
"Agreed this is a bug. As far as I know, python floats by default now have reprs that use the right (...TRUNCATED)
"[\"astropy/io/fits/tests/test_header.py::TestHeaderFunctions::test_floating_point_string_representa(...TRUNCATED)
"[\"astropy/io/fits/tests/test_header.py::test_shallow_copy\", \"astropy/io/fits/tests/test_header.p(...TRUNCATED)
2023-03-09 11:08:51
15 min - 1 hour
5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5
null
null
null
null
null
swebench_verified
py
astropy__astropy-14598
astropy/astropy
80c3854a5f4f4a6ab86c03d9db7854767fcd83c1
5.2
"diff --git a/astropy/io/fits/card.py b/astropy/io/fits/card.py\n--- a/astropy/io/fits/card.py\n+++ (...TRUNCATED)
"diff --git a/astropy/io/fits/tests/test_header.py b/astropy/io/fits/tests/test_header.py\n--- a/ast(...TRUNCATED)
"Inconsistency in double single-quote ('') management in FITS Card\n### Description\r\n\r\nThe manag(...TRUNCATED)
"Hello, I would like to be assigned to this issue if possible. Thank you.\nHi @ashtonw3,\r\nWe don't(...TRUNCATED)
"[\"astropy/io/fits/tests/test_header.py::TestHeaderFunctions::test_long_string_value_with_quotes\"](...TRUNCATED)
"[\"astropy/io/fits/tests/test_header.py::test_shallow_copy\", \"astropy/io/fits/tests/test_header.p(...TRUNCATED)
2023-03-29 10:34:49
15 min - 1 hour
362f6df12abf9bd769d4915fabf955c993ea22cf
null
null
null
null
null
swebench_verified
py
astropy__astropy-7606
astropy/astropy
3cedd79e6c121910220f8e6df77c54a0b344ea94
1.3
"diff --git a/astropy/units/core.py b/astropy/units/core.py\n--- a/astropy/units/core.py\n+++ b/astr(...TRUNCATED)
"diff --git a/astropy/units/tests/test_units.py b/astropy/units/tests/test_units.py\n--- a/astropy/u(...TRUNCATED)
"Unit equality comparison with None raises TypeError for UnrecognizedUnit\n```\r\nIn [12]: x = u.Uni(...TRUNCATED)
"`x is None` works fine. Is there a reason why `==` is needed here?\n`x is None` would indeed be pre(...TRUNCATED)
["astropy/units/tests/test_units.py::test_unknown_unit3"]
"[\"astropy/units/tests/test_units.py::test_getting_started\", \"astropy/units/tests/test_units.py::(...TRUNCATED)
2018-06-29 16:27:46
15 min - 1 hour
848c8fa21332abd66b44efe3cb48b72377fb32cc
null
null
null
null
null
swebench_verified
py
astropy__astropy-8707
astropy/astropy
a85a0747c54bac75e9c3b2fe436b105ea029d6cf
3.1
"diff --git a/astropy/io/fits/card.py b/astropy/io/fits/card.py\n--- a/astropy/io/fits/card.py\n+++ (...TRUNCATED)
"diff --git a/astropy/io/fits/tests/test_header.py b/astropy/io/fits/tests/test_header.py\n--- a/ast(...TRUNCATED)
"Header.fromstring does not accept Python 3 bytes\nAccording to [the docs](http://docs.astropy.org/e(...TRUNCATED)
["astropy/io/fits/tests/test_header.py::TestHeaderFunctions::test_card_from_bytes"]
"[\"astropy/io/fits/tests/test_header.py::test_shallow_copy\", \"astropy/io/fits/tests/test_header.p(...TRUNCATED)
2019-05-15 13:21:19
15 min - 1 hour
2e89d074b3b2abc2da80e437c93b1d5516a0ca57
null
null
null
null
null
swebench_verified
py
End of preview. Expand in Data Studio

SWE-Cycle

SWE-Cycle is a comprehensive benchmark for evaluating AI coding agents on full software engineering lifecycle tasks. It decomposes the software development process into four isolated phases and one integrated end-to-end task:

  • Environment Setup (Env): Configure the development environment from scratch
  • Code Implementation (CodeImpl): Fix bugs or implement features given a configured environment
  • Test Generation (TestGen): Write tests that capture the intended behavior
  • Full Cycle (FullCycle): Complete all three phases in a single end-to-end task

Dataset Overview

Source Records Languages
SWE-bench Verified 225 Python
SWE-bench Pro 203 Python, Go, TypeScript, JavaScript
Multilingual 61 Java, Ruby, C, PHP, Rust, Go, JavaScript
Total 489 9 languages

Language Distribution

Language Count
Python 337
Go 88
C 16
Ruby 13
JavaScript 12
Rust 7
TypeScript 6
Java 6
PHP 4

Fields

Field Description
instance_id Unique identifier for each instance
repo GitHub repository (owner/name)
base_commit Base commit hash
version Version identifier
patch Gold code patch (solution)
test_patch Gold test patch
problem_statement Natural language problem description
hints_text Optional hints
FAIL_TO_PASS Tests that should pass after fix (JSON string)
PASS_TO_PASS Regression tests (JSON string)
created_at Issue creation timestamp
difficulty Difficulty level (SWE-bench Verified only)
environment_setup_commit Environment setup commit (SWE-bench Verified only)
run_script Per-instance run script (SWE-bench Pro only)
parsing_script Per-instance parser script (SWE-bench Pro only)
before_repo_set_cmd Repo initialization command (SWE-bench Pro only)
selected_test_files_to_run Test files to execute (SWE-bench Pro only)
image_name Docker image name (SWE-bench Pro only)
source Data source: swebench_verified, swebench_pro, or multilingual
language Programming language of the repository

Usage

from datasets import load_dataset

ds = load_dataset("tubehhh/SWE-Cycle", split="test")

Evaluation

SWE-Cycle employs a dual-track evaluation system:

  1. Static evaluation: Script-based grading using test execution results
  2. Dynamic evaluation: LLM-as-judge evaluation for semantic correctness

The final score combines both tracks, providing robust assessment of agent capabilities across all phases of the software development lifecycle.

Citation

@inproceedings{swe-cycle2026,
  title={SWE-Cycle: A Multi-Phase Benchmark for Evaluating AI Coding Agents on Full Software Engineering Lifecycles},
  author={Guan, Hao},
  year={2026}
}

License

This dataset is released under the MIT License.

Downloads last month
-