RepoLaunch: Automating Build and Management of Code Repositories across Languages and Platforms
Paper • 2603.05026 • Published
repo string | instance_id string | base_commit string | patch string | test_patch string | problem_statement string | hints_text string | created_at string | version string | FAIL_TO_PASS list | PASS_TO_PASS list | environment_setup_commit string | difficulty string | language string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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",
"astro... | 848c8fa21332abd66b44efe3cb48b72377fb32cc | <15 min fix | Python |
astropy/astropy | astropy__astropy-13579 | 0df94ff7097961e92fd7812036a24b145bc13ca8 | 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 ... | 2022-08-26T15:06:53Z | 5.0 | [
"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_s... | cdf311e0714e611d48b0a31eb1f0e2cbffab7f23 | 1-4 hours | Python |
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_ndarit... | 362f6df12abf9bd769d4915fabf955c993ea22cf | <15 min fix | Python |
django/django | django__django-7530 | f8fab6f90233c7114d642dfe01a4e6d4cb14ee7d | diff --git a/django/core/management/commands/makemigrations.py b/django/core/management/commands/makemigrations.py
--- a/django/core/management/commands/makemigrations.py
+++ b/django/core/management/commands/makemigrations.py
@@ -105,7 +105,7 @@ def handle(self, *app_labels, **options):
# At least... | diff --git a/tests/migrations/test_commands.py b/tests/migrations/test_commands.py
--- a/tests/migrations/test_commands.py
+++ b/tests/migrations/test_commands.py
@@ -598,6 +598,7 @@ def test_makemigrations_empty_connections(self):
init_file = os.path.join(migration_dir, '__init__.py')
... | makemigrations router.allow_migrate() calls for consistency checks use incorrect (app_label, model) pairs
Description
As reported in ticket:27200#comment:14, I makemigrations incorrectly calls allow_migrate() for each app with all the models in the project rather than for each app with the app's models. It broke the ... | 2016-11-08T17:27:19Z | 1.11 | [
"test_squashmigrations_initial_attribute (migrations.test_commands.SquashMigrationsTests)"
] | [
"test_squashmigrations_invalid_start (migrations.test_commands.SquashMigrationsTests)",
"test_squashmigrations_optimizes (migrations.test_commands.SquashMigrationsTests)",
"test_squashmigrations_squashes (migrations.test_commands.SquashMigrationsTests)",
"test_squashmigrations_valid_start (migrations.test_com... | 3545e844885608932a692d952c12cd863e2320b5 | 15 min - 1 hour | Python | |
django/django | django__django-13933 | 42e8cf47c7ee2db238bf91197ea398126c546741 | diff --git a/django/forms/models.py b/django/forms/models.py
--- a/django/forms/models.py
+++ b/django/forms/models.py
@@ -1284,7 +1284,11 @@ def to_python(self, value):
value = getattr(value, key)
value = self.queryset.get(**{key: value})
except (ValueError, TypeError, self.query... | diff --git a/tests/forms_tests/tests/test_error_messages.py b/tests/forms_tests/tests/test_error_messages.py
--- a/tests/forms_tests/tests/test_error_messages.py
+++ b/tests/forms_tests/tests/test_error_messages.py
@@ -308,3 +308,16 @@ def test_modelchoicefield(self):
self.assertFormErrors(['REQUIRED'], f.clea... | ModelChoiceField does not provide value of invalid choice when raising ValidationError
Description
(last modified by Aaron Wiegel)
Compared with ChoiceField and others, ModelChoiceField does not show the value of the invalid choice when raising a validation error. Passing in parameters with the invalid value an... | This message has been the same literally forever b2b6fc8e3c78671c8b6af2709358c3213c84d119. Given that ChoiceField passes the value when raising the error, if you set error_messages you should be able to get the result you want.
Replying to Carlton Gibson: This message has been the same literally forever b2b6fc8e3c786... | 2021-01-26T03:58:23Z | 4.0 | [
"test_modelchoicefield_value_placeholder (forms_tests.tests.test_error_messages.ModelChoiceFieldErrorMessagesTestCase)"
] | [
"test_modelchoicefield (forms_tests.tests.test_error_messages.ModelChoiceFieldErrorMessagesTestCase)",
"test_booleanfield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase)",
"test_charfield (forms_tests.tests.test_error_messages.FormsErrorMessagesTestCase)",
"test_choicefield (forms_tests.tes... | 475cffd1d64c690cdad16ede4d5e81985738ceb4 | <15 min fix | Python |
django/django | django__django-17087 | 4a72da71001f154ea60906a2f74898d32b7322a7 | diff --git a/django/db/migrations/serializer.py b/django/db/migrations/serializer.py
--- a/django/db/migrations/serializer.py
+++ b/django/db/migrations/serializer.py
@@ -168,7 +168,7 @@ def serialize(self):
):
klass = self.value.__self__
module = klass.__module__
- return ... | diff --git a/tests/migrations/test_writer.py b/tests/migrations/test_writer.py
--- a/tests/migrations/test_writer.py
+++ b/tests/migrations/test_writer.py
@@ -211,6 +211,10 @@ class NestedChoices(models.TextChoices):
X = "X", "X value"
Y = "Y", "Y value"
+ @classmethod
+ def method(cls... | Class methods from nested classes cannot be used as Field.default.
Description
(last modified by Mariusz Felisiak)
Given the following model:
class Profile(models.Model):
class Capability(models.TextChoices):
BASIC = ("BASIC", "Basic")
PROFESSIONAL = ("PROFESSIONAL", "Professional")
@classmethod
d... | Thanks for the report. It seems that FunctionTypeSerializer should use __qualname__ instead of __name__: django/db/migrations/serializer.py diff --git a/django/db/migrations/serializer.py b/django/db/migrations/serializer.py index d88cda6e20..06657ebaab 100644 a b class FunctionTypeSerializer(BaseSerializer): 168168 ):... | 2023-07-17T20:28:41Z | 5.0 | [
"test_serialize_nested_class_method (migrations.test_writer.WriterTests.test_serialize_nested_class_method)"
] | [
"test_args_kwargs_signature (migrations.test_writer.OperationWriterTests.test_args_kwargs_signature)",
"test_args_signature (migrations.test_writer.OperationWriterTests.test_args_signature)",
"test_empty_signature (migrations.test_writer.OperationWriterTests.test_empty_signature)",
"test_expand_args_signature... | 4a72da71001f154ea60906a2f74898d32b7322a7 | <15 min fix | Python |
matplotlib/matplotlib | matplotlib__matplotlib-13989 | a3e2897bfaf9eaac1d6649da535c4e721c89fa69 | diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py
--- a/lib/matplotlib/axes/_axes.py
+++ b/lib/matplotlib/axes/_axes.py
@@ -6686,7 +6686,7 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
density = bool(density) or bool(normed)
if density and not stacked... | diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py
--- a/lib/matplotlib/tests/test_axes.py
+++ b/lib/matplotlib/tests/test_axes.py
@@ -6369,3 +6369,10 @@ def test_hist_nan_data():
assert np.allclose(bins, nanbins)
assert np.allclose(edges, nanedges)
+
+
+def test_hist_range_a... | hist() no longer respects range=... when density=True
<!--To help us understand and resolve your issue, please fill out the form to the best of your ability.-->
<!--You can feel free to delete the sections that do not apply.-->
### Bug report
**Bug summary**
<!--A short 1-2 sentences that succinctly describes... | :anger: I was about to tag.... | 2019-04-19T01:47:57Z | 3.0 | [
"lib/matplotlib/tests/test_axes.py::test_hist_range_and_density"
] | [
"lib/matplotlib/tests/test_axes.py::test_get_labels",
"lib/matplotlib/tests/test_axes.py::test_spy_invalid_kwargs",
"lib/matplotlib/tests/test_axes.py::test_twinx_cla",
"lib/matplotlib/tests/test_axes.py::test_twinx_axis_scales[png]",
"lib/matplotlib/tests/test_axes.py::test_twin_inherit_autoscale_setting",... | d0628598f8d9ec7b0da6b60e7b29be2067b6ea17 | <15 min fix | Python |
matplotlib/matplotlib | matplotlib__matplotlib-24570 | 8f0003ae902952372824c9917975fb372c026a42 | diff --git a/lib/matplotlib/offsetbox.py b/lib/matplotlib/offsetbox.py
--- a/lib/matplotlib/offsetbox.py
+++ b/lib/matplotlib/offsetbox.py
@@ -166,10 +166,10 @@ def _get_aligned_offsets(hd_list, height, align="baseline"):
descent = max(d for h, d in hd_list)
height = height_descent + descent
... | diff --git a/lib/matplotlib/tests/test_offsetbox.py b/lib/matplotlib/tests/test_offsetbox.py
--- a/lib/matplotlib/tests/test_offsetbox.py
+++ b/lib/matplotlib/tests/test_offsetbox.py
@@ -13,7 +13,7 @@
from matplotlib.offsetbox import (
AnchoredOffsetbox, AnnotationBbox, AnchoredText, DrawingArea, OffsetBox,
- ... | [Bug]: `align` in `HPacker` is reversed
### Bug summary
For the `align` parameter in `HPacker`, the options `top` and `bottom` seems reversed
### Code for reproduction
```python
import matplotlib.pyplot as plt
from matplotlib.offsetbox import DrawingArea, HPacker, VPacker, AnchoredOffsetbox, TextArea
from matplotl... | This indeed seems incorrect, however, I'm not sure what the path to fixing it is even that it's likely been that way for quite a while and swapping back will break anyone who had corrected for the mistake.
I can't see that we use this internally, and it's obviously untested.
> This indeed seems incorrect, howeve... | 2022-11-30T15:50:17Z | 3.6 | [
"lib/matplotlib/tests/test_offsetbox.py::test_packers[bottom]",
"lib/matplotlib/tests/test_offsetbox.py::test_packers[top]"
] | [
"lib/matplotlib/tests/test_offsetbox.py::test_offsetbox_clipping[png]",
"lib/matplotlib/tests/test_offsetbox.py::test_offsetbox_clipping[pdf]",
"lib/matplotlib/tests/test_offsetbox.py::test_offsetbox_clip_children",
"lib/matplotlib/tests/test_offsetbox.py::test_offsetbox_loc_codes",
"lib/matplotlib/tests/te... | 73909bcb408886a22e2b84581d6b9e6d9907c813 | <15 min fix | Python |
matplotlib/matplotlib | matplotlib__matplotlib-26466 | 3dd06a46750d174f821df5377996f493f1af4ebb | diff --git a/lib/matplotlib/text.py b/lib/matplotlib/text.py
--- a/lib/matplotlib/text.py
+++ b/lib/matplotlib/text.py
@@ -1389,7 +1389,8 @@ def __init__(self, artist, ref_coord, unit="points"):
The screen units to use (pixels or points) for the offset input.
"""
self._artist = artist
- ... | diff --git a/lib/matplotlib/tests/test_text.py b/lib/matplotlib/tests/test_text.py
--- a/lib/matplotlib/tests/test_text.py
+++ b/lib/matplotlib/tests/test_text.py
@@ -16,7 +16,7 @@
import matplotlib.transforms as mtransforms
from matplotlib.testing.decorators import check_figures_equal, image_comparison
from matplot... | Updating an array passed as the xy parameter to annotate updates the anottation
### Bug report
**Bug summary**
When an array is used as the _xy_ kwarg for an annotation that includes arrows, changing the array after calling the function changes the arrow position. It is very likely that the same array is kept inste... | I guess that a simple patch to _AnnotationBase init should work, but I'd check for more places where the a similar bug can be hidden:
Maybe changing:
https://github.com/matplotlib/matplotlib/blob/89fa0e43b63512c595387a37bdfd37196ced69be/lib/matplotlib/text.py#L1332
for
`self.xy=np.array(xy)`
is enough. This code... | 2023-08-07T19:30:22Z | 3.7 | [
"lib/matplotlib/tests/test_text.py::test_annotate_and_offsetfrom_copy_input[png]"
] | [
"lib/matplotlib/tests/test_text.py::test_font_styles[png]",
"lib/matplotlib/tests/test_text.py::test_font_styles[pdf]",
"lib/matplotlib/tests/test_text.py::test_multiline[png]",
"lib/matplotlib/tests/test_text.py::test_multiline[pdf]",
"lib/matplotlib/tests/test_text.py::test_multiline2[png]",
"lib/matplo... | 0849036fd992a2dd133a0cffc3f84f58ccf1840f | 15 min - 1 hour | Python |
mwaskom/seaborn | mwaskom__seaborn-3069 | 54cab15bdacfaa05a88fbc5502a5b322d99f148e | diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py
--- a/seaborn/_core/plot.py
+++ b/seaborn/_core/plot.py
@@ -25,7 +25,7 @@
from seaborn._stats.base import Stat
from seaborn._core.data import PlotData
from seaborn._core.moves import Move
-from seaborn._core.scales import Scale
+from seaborn._core.scales imp... | diff --git a/tests/_core/test_plot.py b/tests/_core/test_plot.py
--- a/tests/_core/test_plot.py
+++ b/tests/_core/test_plot.py
@@ -645,6 +645,28 @@ def test_undefined_variable_raises(self):
with pytest.raises(RuntimeError, match=err):
p.plot()
+ def test_nominal_x_axis_tweaks(self):
+
+ ... | Nominal scale should be drawn the same way as categorical scales
Three distinctive things happen on the categorical axis in seaborn's categorical plots:
1. The scale is drawn to +/- 0.5 from the first and last tick, rather than using the normal margin logic
2. A grid is not shown, even when it otherwise would be wi... | 2022-10-09T23:31:20Z | 0.12 | [
"tests/_core/test_plot.py::TestScaling::test_nominal_x_axis_tweaks",
"tests/_core/test_plot.py::TestScaling::test_nominal_y_axis_tweaks"
] | [
"tests/_core/test_plot.py::TestInit::test_empty",
"tests/_core/test_plot.py::TestInit::test_data_only",
"tests/_core/test_plot.py::TestInit::test_df_and_named_variables",
"tests/_core/test_plot.py::TestInit::test_df_and_mixed_variables",
"tests/_core/test_plot.py::TestInit::test_vector_variables_only",
"t... | d25872b0fc99dbf7e666a91f59bd4ed125186aa1 | 15 min - 1 hour | Python | |
mwaskom/seaborn | mwaskom__seaborn-3187 | 22cdfb0c93f8ec78492d87edb810f10cb7f57a31 | diff --git a/seaborn/_core/scales.py b/seaborn/_core/scales.py
--- a/seaborn/_core/scales.py
+++ b/seaborn/_core/scales.py
@@ -378,6 +378,14 @@ def spacer(x):
axis.set_view_interval(vmin, vmax)
locs = axis.major.locator()
locs = locs[(vmin <= locs) & (locs <= vmax)]
+ #... | diff --git a/tests/_core/test_plot.py b/tests/_core/test_plot.py
--- a/tests/_core/test_plot.py
+++ b/tests/_core/test_plot.py
@@ -2051,6 +2051,15 @@ def _legend_artist(self, variables, value, scales):
p = Plot(**xy, color=["a", "b", "c", "d"]).add(NoLegendMark()).plot()
assert not p._figure.legends
... | Wrong legend values of large ranges
As of 0.12.1, legends describing large numbers that were created using `ScalarFormatter` with an offset are formatted without their multiplicative offset value. An example:
```python
import seaborn as sns
import seaborn.objects as so
penguins = sns.load_dataset("Penguins")
pen... | Why do you say "as of v0.12.1"? It looks like `relplot` has the same bug in 0.11.2.
> Why do you say "as of v0.12.1"? It looks like `relplot` has the same bug in 0.11.2.
Only because I didn't try to reproduce using other seaborn versions.
| 2022-12-18T00:04:22Z | 0.12 | [
"tests/_core/test_plot.py::TestLegend::test_legend_has_no_offset",
"tests/test_relational.py::TestRelationalPlotter::test_legend_has_no_offset"
] | [
"tests/_core/test_plot.py::TestInit::test_empty",
"tests/_core/test_plot.py::TestInit::test_data_only",
"tests/_core/test_plot.py::TestInit::test_df_and_named_variables",
"tests/_core/test_plot.py::TestInit::test_df_and_mixed_variables",
"tests/_core/test_plot.py::TestInit::test_vector_variables_only",
"t... | d25872b0fc99dbf7e666a91f59bd4ed125186aa1 | 15 min - 1 hour | Python |
pallets/flask | pallets__flask-5014 | 7ee9ceb71e868944a46e1ff00b506772a53a4f1d | diff --git a/src/flask/blueprints.py b/src/flask/blueprints.py
--- a/src/flask/blueprints.py
+++ b/src/flask/blueprints.py
@@ -190,6 +190,9 @@ def __init__(
root_path=root_path,
)
+ if not name:
+ raise ValueError("'name' may not be empty.")
+
if "." in name:
... | diff --git a/tests/test_blueprints.py b/tests/test_blueprints.py
--- a/tests/test_blueprints.py
+++ b/tests/test_blueprints.py
@@ -256,6 +256,11 @@ def test_dotted_name_not_allowed(app, client):
flask.Blueprint("app.ui", __name__)
+def test_empty_name_not_allowed(app, client):
+ with pytest.raises(Value... | Require a non-empty name for Blueprints
Things do not work correctly if a Blueprint is given an empty name (e.g. #4944).
It would be helpful if a `ValueError` was raised when trying to do that.
| 2023-03-04T18:36:21Z | 2.3 | [
"tests/test_blueprints.py::test_empty_name_not_allowed"
] | [
"tests/test_blueprints.py::test_blueprint_specific_error_handling",
"tests/test_blueprints.py::test_blueprint_specific_user_error_handling",
"tests/test_blueprints.py::test_blueprint_app_error_handling",
"tests/test_blueprints.py::test_blueprint_prefix_slash[-/-/]",
"tests/test_blueprints.py::test_blueprint... | 182ce3dd15dfa3537391c3efaf9c3ff407d134d4 | <15 min fix | Python |
The benchmark to evaluate the repo build and test ability of LM agents, used in the RepoLaunch paper (https://arxiv.org/abs/2603.05026).