Dataset Viewer
Auto-converted to Parquet Duplicate
repo
stringclasses
37 values
instance_id
stringlengths
15
48
base_commit
stringlengths
40
40
patch
stringlengths
996
252k
problem_statement
stringlengths
27
17.8k
files_affected
int64
2
30
modules_affected
int64
1
3
py_file_count
int64
6
13.8k
py_total_lines
int64
1.08k
1.87M
astropy/astropy
astropy__astropy-13158
b185ca184f8dd574531dcc21e797f00537fefa6a
diff --git a/astropy/modeling/bounding_box.py b/astropy/modeling/bounding_box.py --- a/astropy/modeling/bounding_box.py +++ b/astropy/modeling/bounding_box.py @@ -520,7 +520,7 @@ def _set_outputs_unit(outputs, valid_outputs_unit): """ if valid_outputs_unit is not None: - return Quantity(o...
Model evaluation fails if any model parameter is a `MagUnit` type value <!-- 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 che...
7
1
863
185,173
astropy/astropy
astropy__astropy-8715
b2b0717108c8b5381f12bc4ab1c759e3705fb8a8
diff --git a/astropy/io/votable/__init__.py b/astropy/io/votable/__init__.py --- a/astropy/io/votable/__init__.py +++ b/astropy/io/votable/__init__.py @@ -24,10 +24,13 @@ class Conf(_config.ConfigNamespace): Configuration parameters for `astropy.io.votable`. """ - pedantic = _config.ConfigItem( - ...
Silence warnings by default when reading in VO Tables ### TL;DR Users often are given files they don't have control over, and those files aren't always standard-compliant. This is especially true of VO Tables. I'd like to suggest that we make the VO Table reader more forgiving, although the *writer* should continue ...
7
1
722
138,329
astropy/astropy
astropy__astropy-8747
2d99bedef58144e321ec62667eea495d4391ee58
diff --git a/astropy/units/function/core.py b/astropy/units/function/core.py --- a/astropy/units/function/core.py +++ b/astropy/units/function/core.py @@ -683,3 +683,7 @@ def sum(self, axis=None, dtype=None, out=None, keepdims=False): def cumsum(self, axis=None, dtype=None, out=None): return self._wrap_...
Support new clip ufunc Starting with numpy 1.17, `np.clip` will be based on a `ufunc`, which means we can ensure it works properly with `Quantity`. (Until we do so, we might also get `numpy-dev` failures.)
5
1
723
138,400
django/django
django__django-10531
1564e42ad397021093585147875a21dae1a3b3fc
diff --git a/django/contrib/admin/models.py b/django/contrib/admin/models.py --- a/django/contrib/admin/models.py +++ b/django/contrib/admin/models.py @@ -114,7 +114,7 @@ def get_change_message(self): elif 'changed' in sub_message: sub_message['changed']['fields'] = get_text_list...
Models history doesn't use verbose names Description The history for a model object (within the admin section) should show human-readable messages, favoring verbose names over field names. However, this is not currently the case. For example, consider a model with the following class variable: pub_date = models.DateT...
2
1
2,009
235,843
django/django
django__django-10554
14d026cccb144c6877294ba4cd4e03ebf0842498
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -356,7 +356,12 @@ def get_order_by(self): resolved.set_source_expressions([RawSQL('%d' % (idx + 1), ())]) br...
Union queryset with ordering breaks on ordering with derived querysets Description (last modified by Sergei Maertens) May be related to #29692 Simple reproduction (the exact models are not relevant I think): >>> Dimension.objects.values_list('id', flat=True) <QuerySet [10, 11, 12, 13, 14, 15, 16, 17, 18]> >>> q...
2
1
2,010
235,923
django/django
django__django-10680
b10d322c41f66dc7c77c36f90a3532269b25ea93
diff --git a/django/db/backends/base/operations.py b/django/db/backends/base/operations.py --- a/django/db/backends/base/operations.py +++ b/django/db/backends/base/operations.py @@ -26,6 +26,9 @@ class BaseDatabaseOperations: 'BigIntegerField': (-9223372036854775808, 9223372036854775807), 'PositiveSm...
Refactor AutoField logic into a mixin, implement checks and validators. Description Currently AutoField inherits from Field and BigAutoField from AutoField. In effect they largely redefine IntegerField and BigIntegerField respectively, but add in the auto field "behaviour". As a result they do not perform some of the...
3
1
2,024
238,428
django/django
django__django-10904
7444f3252757ed4384623e5afd7dcfeef3e0c74e
diff --git a/django/contrib/auth/password_validation.py b/django/contrib/auth/password_validation.py --- a/django/contrib/auth/password_validation.py +++ b/django/contrib/auth/password_validation.py @@ -173,7 +173,7 @@ def __init__(self, password_list_path=DEFAULT_PASSWORD_LIST_PATH): try: with gz...
Replace use of OSError aliases with OSError (IOError, EnvironmentError, WindowsError, mmap.error, socket.error, select.error) Description Starting with Python 3.3, EnvironmentError, IOError, WindowsError, socket.error, select.error and mmap.error are aliases of OSError. With this in mind, the Django code base can be ...
18
1
1,997
233,007
django/django
django__django-10910
3dca8738cbbbb5674f795169e5ea25e2002f2d71
diff --git a/django/db/backends/mysql/operations.py b/django/db/backends/mysql/operations.py --- a/django/db/backends/mysql/operations.py +++ b/django/db/backends/mysql/operations.py @@ -69,9 +69,20 @@ def date_trunc_sql(self, lookup_type, field_name): else: return "DATE(%s)" % (field_name) + ...
Using database functions with tzinfo=datetime.timezone(datetime.timedelta(...)) results in an incorrect query Description I haven’t checked this bug with other databases, but it definitely works improperly with postgres. Django ORM create incorrect query when I use timezone determined like "timezone(timedelta(hours=s...
4
1
2,009
235,788
django/django
django__django-10989
f63811f4813f0e0439e140a97eeba18a5017e858
diff --git a/django/contrib/gis/utils/layermapping.py b/django/contrib/gis/utils/layermapping.py --- a/django/contrib/gis/utils/layermapping.py +++ b/django/contrib/gis/utils/layermapping.py @@ -596,7 +596,7 @@ def _save(feat_range=default_range, num_feat=0, num_saved=0): # Printing progress informat...
Ellipses in output strings cause crashes on Windows Description (last modified by Dan Davis) By default, Windows terminals start with code page 437, which is roughly equivalent to ASCII. While working on #30178, I discovered that this causes the following traceback: (mplusmon) λ manage.py runserver Watchman una...
13
1
1,995
232,467
django/django
django__django-11030
2aaabe2004e1953eb7d7057edcf2fabd37f7394d
diff --git a/django/db/models/aggregates.py b/django/db/models/aggregates.py --- a/django/db/models/aggregates.py +++ b/django/db/models/aggregates.py @@ -64,7 +64,7 @@ def default_alias(self): return '%s__%s' % (expressions[0].name, self.name.lower()) raise TypeError("Complex expressions require ...
Subquery expressions unnecessarily added to group by Description Hi friends, My Django/SQL skills are not good enough to properly isolate the problem independently of my use case detailed below. I believe the problem is Subqueries being forced in to the group_by clause because they are select expressions. Per the bel...
5
1
2,006
233,781
django/django
django__django-11096
ea60b7bc7464808e34e3cb0aac04455fdd8545eb
diff --git a/django/contrib/admin/templatetags/admin_list.py b/django/contrib/admin/templatetags/admin_list.py --- a/django/contrib/admin/templatetags/admin_list.py +++ b/django/contrib/admin/templatetags/admin_list.py @@ -128,6 +128,9 @@ def result_headers(cl): continue admin_order_fiel...
Support the use of admin_order_field on properties in the admin. Description The ModelAdmin class allows to specify properties from the model in list_display. Normally non-fields cannot be sorted. This can be changed by setting admin_order_field. This doesn't work on properties, while it is possible to do so with sho...
2
1
2,006
233,911
django/django
django__django-11138
c84b91b7603e488f7171fdff8f08368ef3d6b856
diff --git a/django/db/backends/mysql/operations.py b/django/db/backends/mysql/operations.py --- a/django/db/backends/mysql/operations.py +++ b/django/db/backends/mysql/operations.py @@ -69,8 +69,8 @@ def date_trunc_sql(self, lookup_type, field_name): return "DATE(%s)" % (field_name) def _convert_fi...
TIME_ZONE value in DATABASES settings is not used when making dates timezone-aware on MySQL, SQLite, and Oracle. Description (last modified by Victor Talpaert) (We assume the mysql backends) I can set TIME_ZONE several times in settings.py, one for the global django app, and one for each database (see ​https://...
4
1
2,006
234,264
django/django
django__django-11155
cef3f2d3c64055c9fc1757fd61dba24b557a2add
diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py --- a/django/conf/global_settings.py +++ b/django/conf/global_settings.py @@ -154,6 +154,9 @@ def gettext_noop(s): LANGUAGE_COOKIE_AGE = None LANGUAGE_COOKIE_DOMAIN = None LANGUAGE_COOKIE_PATH = '/' +LANGUAGE_COOKIE_SECURE = False +LANGUAGE...
Support setting Secure, HttpOnly, SameSite on the language cookie Description I propose to add the following settings, with the following default values: LANGUAGE_COOKIE_SECURE = False LANGUAGE_COOKIE_HTTPONLY = False LANGUAGE_COOKIE_SAMESITE = None The default values maintain the current behavior. These settings do ...
2
1
2,006
234,283
django/django
django__django-11281
2b03e8e9e8205ae3a3aa128764277e70b7c30803
diff --git a/django/contrib/admin/models.py b/django/contrib/admin/models.py --- a/django/contrib/admin/models.py +++ b/django/contrib/admin/models.py @@ -73,14 +73,14 @@ def __repr__(self): def __str__(self): if self.is_addition(): - return gettext('Added "%(object)s".') % {'object': self.ob...
Improve typography of user facing strings. Description Inspired by comment: https://code.djangoproject.com/ticket/30399#comment:2 Prefer: “” for quotes ’ for contractions — rather than -- … rather than ...
22
1
2,019
236,668
django/django
django__django-11298
a9179ab032cda80801e7f67ef20db5ee60989f21
diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py --- a/django/db/models/fields/related.py +++ b/django/db/models/fields/related.py @@ -1234,18 +1234,6 @@ def _check_relationship_model(self, from_model=None, **kwargs): to_model_name = to_model._meta.object_name ...
Allow ManyToManyField using a intermediary table to be defined as symmetrical. Description Thanks to the work made by Collin Anderson in #9475 I think we can remove the check "fields.E332 Many-to-many fields with intermediate tables must not be symmetrical." with a little adjustment. This change was discussed in the...
2
1
2,017
236,467
django/django
django__django-11333
55b68de643b5c2d5f0a8ea7587ab3b2966021ccc
diff --git a/django/urls/base.py b/django/urls/base.py --- a/django/urls/base.py +++ b/django/urls/base.py @@ -7,7 +7,7 @@ from django.utils.translation import override from .exceptions import NoReverseMatch, Resolver404 -from .resolvers import get_ns_resolver, get_resolver +from .resolvers import _get_cached_resol...
Optimization: Multiple URLResolvers may be unintentionally be constructed by calls to `django.urls.resolvers.get_resolver` Description Multiple URLResolvers may be constructed by django.urls.resolvers.get_resolver if django.urls.base.set_urlconf has not yet been called, resulting in multiple expensive calls to URLRes...
2
1
2,021
236,788
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4