repo stringclasses 11
values | instance_id stringlengths 18 32 | base_commit stringlengths 40 40 | patch stringlengths 314 13.9k | test_patch stringlengths 372 11.2k | problem_statement stringlengths 158 24.8k | hints_text stringlengths 0 15.4k | created_at stringdate 2015-12-16 14:57:00 2023-07-24 22:46:12 | version stringlengths 3 7 | FAIL_TO_PASS stringlengths 12 32.6k | PASS_TO_PASS stringlengths 2 151k | environment_setup_commit stringlengths 40 40 | difficulty stringclasses 4
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
astropy/astropy | astropy__astropy-13398 | 6500928dc0e57be8f06d1162eacc3ba5e2eff692 | 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... | 2022-06-24T15:22:11Z | 5.0 | ["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... | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 | 1-4 hours |
astropy/astropy | astropy__astropy-14508 | a3f4ae6cd24d5ecdf49f213d77b3513dd509a06c | diff --git a/astropy/io/fits/card.py b/astropy/io/fits/card.py
--- a/astropy/io/fits/card.py
+++ b/astropy/io/fits/card.py
@@ -1298,31 +1298,17 @@ def _format_value(value):
def _format_float(value):
- """Format a floating number to make sure it gets the decimal point."""
- value_str = f"{value:.16G}"
- if... | diff --git a/astropy/io/fits/tests/test_header.py b/astropy/io/fits/tests/test_header.py
--- a/astropy/io/fits/tests/test_header.py
+++ b/astropy/io/fits/tests/test_header.py
@@ -137,6 +137,27 @@ def test_floating_point_value_card(self):
):
assert str(c) == _pad("FLOATNUM= -4.6737463674763E+32")
... | `io.fits.Card` may use a string representation of floats that is larger than necessary
### Description
In some scenarios, `io.fits.Card` may use a string representation of floats that is larger than necessary, which can force comments to be truncated. Due to this, there are some keyword/value/comment combinations that... | Agreed this is a bug. As far as I know, python floats by default now have reprs that use the right number of digits to be reproducible. So I think replacing this by `value_str = str(value)` should be totally fine. Do you want to try that and run the tests, to see if it works? If so, I think we should make that change ... | 2023-03-09T11:08:51Z | 5.1 | ["astropy/io/fits/tests/test_header.py::TestHeaderFunctions::test_floating_point_string_representation_card"] | ["astropy/io/fits/tests/test_header.py::test_shallow_copy", "astropy/io/fits/tests/test_header.py::test_init_with_header", "astropy/io/fits/tests/test_header.py::test_init_with_dict", "astropy/io/fits/tests/test_header.py::test_init_with_ordereddict", "astropy/io/fits/tests/test_header.py::TestHeaderFunctions::test_ren... | 5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5 | 15 min - 1 hour |
astropy/astropy | astropy__astropy-14539 | c0a24c1dc957a3b565294213f435fefb2ec99714 | diff --git a/astropy/io/fits/diff.py b/astropy/io/fits/diff.py
--- a/astropy/io/fits/diff.py
+++ b/astropy/io/fits/diff.py
@@ -1449,7 +1449,7 @@ def _diff(self):
arrb.dtype, np.floating
):
diffs = where_not_allclose(arra, arrb, rtol=self.rtol, atol=self.atol)
- ... | diff --git a/astropy/io/fits/tests/test_diff.py b/astropy/io/fits/tests/test_diff.py
--- a/astropy/io/fits/tests/test_diff.py
+++ b/astropy/io/fits/tests/test_diff.py
@@ -406,16 +406,17 @@ def test_identical_tables(self):
c8 = Column("H", format="C", array=[0.0 + 1.0j, 2.0 + 3.0j])
c9 = Column("I", fo... | `io.fits.FITSDiff` may sometimes report differences between identical files
### Description
In some scenarios, `io.fits.FITSDiff` may report differences between identical files, even when comparing the same file to itself. This may be caused by improper handling of VLAs (variable-length arrays).
### Expected behavior... | Seems due to the use of `Q`, only `P` is handled in the diff code. This:
```
--- astropy/io/fits/diff.py
+++ astropy/io/fits/diff.py
@@ -1449,7 +1449,7 @@ class TableDataDiff(_BaseDiff):
arrb.dtype, np.floating
):
diffs = where_not_allclose(arra, arrb, rtol=self.rto... | 2023-03-16T18:45:19Z | 5.1 | ["astropy/io/fits/tests/test_diff.py::TestDiff::test_identical_tables", "astropy/io/fits/tests/test_diff.py::TestDiff::test_different_table_data"] | ["astropy/io/fits/tests/test_diff.py::TestDiff::test_identical_headers", "astropy/io/fits/tests/test_diff.py::TestDiff::test_slightly_different_headers", "astropy/io/fits/tests/test_diff.py::TestDiff::test_common_keywords", "astropy/io/fits/tests/test_diff.py::TestDiff::test_different_keyword_count", "astropy/io/fits/t... | 5f74eacbcc7fff707a44d8eb58adaa514cb7dcb5 | 15 min - 1 hour |
astropy/astropy | astropy__astropy-14995 | b16c7d12ccbc7b2d20364b89fb44285bcbfede54 | diff --git a/astropy/nddata/mixins/ndarithmetic.py b/astropy/nddata/mixins/ndarithmetic.py
--- a/astropy/nddata/mixins/ndarithmetic.py
+++ b/astropy/nddata/mixins/ndarithmetic.py
@@ -520,10 +520,10 @@ def _arithmetic_mask(self, operation, operand, handle_mask, axis=None, **kwds):
elif self.mask is None and ope... | diff --git a/astropy/nddata/mixins/tests/test_ndarithmetic.py b/astropy/nddata/mixins/tests/test_ndarithmetic.py
--- a/astropy/nddata/mixins/tests/test_ndarithmetic.py
+++ b/astropy/nddata/mixins/tests/test_ndarithmetic.py
@@ -1310,3 +1310,42 @@ def test_raise_method_not_supported():
# raise error for unsupported ... | In v5.3, NDDataRef mask propagation fails when one of the operand does not have a mask
### Description
This applies to v5.3.
It looks like when one of the operand does not have a mask, the mask propagation when doing arithmetic, in particular with `handle_mask=np.bitwise_or` fails. This is not a problem in v5.2.
... | 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... | 2023-06-27T19:48:18Z | 5.2 | ["astropy/nddata/mixins/tests/test_ndarithmetic.py::test_nddata_bitmask_arithmetic"] | ["astropy/nddata/mixins/tests/test_ndarithmetic.py::test_arithmetics_data[data10-data20]", "astropy/nddata/mixins/tests/test_ndarithmetic.py::test_arithmetics_data[data11-data21]", "astropy/nddata/mixins/tests/test_ndarithmetic.py::test_arithmetics_data[data12-data22]", "astropy/nddata/mixins/tests/test_ndarithmetic.py... | 362f6df12abf9bd769d4915fabf955c993ea22cf | <15 min fix |
astropy/astropy | astropy__astropy-7166 | 26d147868f8a891a6009a25cd6a8576d2e1bd747 | diff --git a/astropy/utils/misc.py b/astropy/utils/misc.py
--- a/astropy/utils/misc.py
+++ b/astropy/utils/misc.py
@@ -4,9 +4,6 @@
A "grab bag" of relatively small general-purpose utilities that don't have
a clear module/package to live in.
"""
-
-
-
import abc
import contextlib
import difflib
@@ -27,7 +24,6 @@
... | diff --git a/astropy/utils/tests/test_misc.py b/astropy/utils/tests/test_misc.py
--- a/astropy/utils/tests/test_misc.py
+++ b/astropy/utils/tests/test_misc.py
@@ -80,14 +80,26 @@ def __call__(self, *args):
"FOO"
pass
+ @property
+ def bar(self):
+ "BAR"
+ ... | InheritDocstrings metaclass doesn't work for properties
Inside the InheritDocstrings metaclass it uses `inspect.isfunction` which returns `False` for properties.
| This was as implemented back in #2159. I don't see any `inspect.isproperty`. Do you have any suggestions?
I guess it should work with [inspect.isdatadescriptor](https://docs.python.org/3/library/inspect.html#inspect.isdatadescriptor).
And I wonder if this class is still needed, it seems that it started with #2136 for... | 2018-02-07T15:05:31Z | 1.3 | ["astropy/utils/tests/test_misc.py::test_inherit_docstrings"] | ["astropy/utils/tests/test_misc.py::test_isiterable", "astropy/utils/tests/test_misc.py::test_signal_number_to_name_no_failure", "astropy/utils/tests/test_misc.py::test_skip_hidden", "astropy/utils/tests/test_misc.py::test_JsonCustomEncoder", "astropy/utils/tests/test_misc.py::test_check_broadcast", "astropy/utils/test... | 848c8fa21332abd66b44efe3cb48b72377fb32cc | <15 min fix |
django/django | django__django-10097 | b9cf764be62e77b4777b3a75ec256f6209a57671 | "diff --git a/django/core/validators.py b/django/core/validators.py\n--- a/django/core/validators.py(...TRUNCATED) | "diff --git a/tests/validators/invalid_urls.txt b/tests/validators/invalid_urls.txt\n--- a/tests/val(...TRUNCATED) | "Make URLValidator reject invalid characters in the username and password\nDescription\n\t \n\t\t(la(...TRUNCATED) | 2018-06-26T23:30:51Z | 2.2 | "[\"test_ascii_validator (auth_tests.test_validators.UsernameValidatorsTests)\", \"test_unicode_vali(...TRUNCATED) | "[\"test_defaults (str.tests.SimpleTests)\", \"test_international (str.tests.SimpleTests)\", \"test_(...TRUNCATED) | 4fc35a9c3efdc9154efce28cb23cb84f8834517e | <15 min fix | |
django/django | django__django-10554 | 14d026cccb144c6877294ba4cd4e03ebf0842498 | "diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py\n--- a/django/db/m(...TRUNCATED) | "diff --git a/tests/queries/test_qs_combinators.py b/tests/queries/test_qs_combinators.py\n--- a/tes(...TRUNCATED) | "Union queryset with ordering breaks on ordering with derived querysets\nDescription\n\t \n\t\t(last(...TRUNCATED) | "Looks like a bug caused by a .query attribute change without performing a prior copy() of the query(...TRUNCATED) | 2018-10-24T14:24:45Z | 3.0 | "[\"test_union_with_values_list_and_order (queries.test_qs_combinators.QuerySetSetOperationTests)\",(...TRUNCATED) | "[\"test_combining_multiple_models (queries.test_qs_combinators.QuerySetSetOperationTests)\", \"test(...TRUNCATED) | 419a78300f7cd27611196e1e464d50fd0385ff27 | 1-4 hours |
django/django | django__django-11141 | 5d9cf79baf07fc4aed7ad1b06990532a65378155 | "diff --git a/django/db/migrations/loader.py b/django/db/migrations/loader.py\n--- a/django/db/migra(...TRUNCATED) | "diff --git a/tests/migrations/test_loader.py b/tests/migrations/test_loader.py\n--- a/tests/migrati(...TRUNCATED) | "Allow migrations directories without __init__.py files\nDescription\n\t \n\t\t(last modified by Tim(...TRUNCATED) | 2019-03-28T20:49:53Z | 3.1 | ["Migration directories without an __init__.py file are loaded."] | "[\"test_apply (migrations.test_loader.RecorderTests)\", \"test_invalid (migrations.test_loader.PycL(...TRUNCATED) | 0668164b4ac93a5be79f5b87fae83c657124d9ab | 15 min - 1 hour | |
django/django | django__django-11149 | e245046bb6e8b32360aa48b8a41fb7050f0fc730 | "diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py\n--- a/django/contri(...TRUNCATED) | "diff --git a/tests/admin_inlines/models.py b/tests/admin_inlines/models.py\n--- a/tests/admin_inlin(...TRUNCATED) | "Admin inlines for auto-created ManyToManyFields are editable if the user only has the view permissi(...TRUNCATED) | "OK, yes. Fleshing it out I can reproduce this against 2.1.7 with the models and inline provided. A (...TRUNCATED) | 2019-03-30T18:14:35Z | 3.0 | "[\"test_inline_add_m2m_view_only_perm (admin_inlines.tests.TestInlinePermissions)\", \"test_inline_(...TRUNCATED) | "[\"Regression for #9362\", \"test_deleting_inline_with_protected_delete_does_not_validate (admin_in(...TRUNCATED) | 419a78300f7cd27611196e1e464d50fd0385ff27 | 15 min - 1 hour |
django/django | django__django-11211 | ba726067604ce5a8ca3919edf653496722b433ab | "diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py\n--- a/djang(...TRUNCATED) | "diff --git a/tests/prefetch_related/models.py b/tests/prefetch_related/models.py\n--- a/tests/prefe(...TRUNCATED) | "Prefetch related is not working when used GFK for model that uses UUID field as PK.\nDescription\n\(...TRUNCATED) | "Thanks for the report, however GenericForeignKey doesn't support prefetch_related(), from the same (...TRUNCATED) | 2019-04-13T12:01:14Z | 3.0 | ["test_prefetch_GFK_uuid_pk (prefetch_related.tests.GenericRelationTests)"] | "[\"test_bug (prefetch_related.tests.Ticket21410Tests)\", \"test_basic (prefetch_related.tests.RawQu(...TRUNCATED) | 419a78300f7cd27611196e1e464d50fd0385ff27 | 15 min - 1 hour |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6