problem_id stringlengths 18 21 | source stringclasses 1
value | task_type stringclasses 1
value | in_source_id stringlengths 13 54 | prompt stringlengths 1.28k 64.2k | golden_diff stringlengths 166 811 | verification_info stringlengths 604 118k |
|---|---|---|---|---|---|---|
gh_patches_debug_900 | rasdani/github-patches | git_diff | microsoft__Qcodes-949 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Closing an IPInstrument cases an AttributeError
### Steps to reproduce
1. Open an `IPInstrument` (such as a AMI430 magnet)
2. Call the `close` method on the `IPInstrument`
### Actual behaviour
```pytb
... | diff --git a/qcodes/instrument/base.py b/qcodes/instrument/base.py
--- a/qcodes/instrument/base.py
+++ b/qcodes/instrument/base.py
@@ -535,7 +535,7 @@
The instance to remove
"""
wr = weakref.ref(instance)
- if wr in cls._instances:
+ if wr in getattr(cls, "_instances", []):
... | {"golden_diff": "diff --git a/qcodes/instrument/base.py b/qcodes/instrument/base.py\n--- a/qcodes/instrument/base.py\n+++ b/qcodes/instrument/base.py\n@@ -535,7 +535,7 @@\n The instance to remove\n \"\"\"\n wr = weakref.ref(instance)\n- if wr in cls._instances:\n+ if wr in geta... |
gh_patches_debug_901 | rasdani/github-patches | git_diff | pytorch__tensordict-277 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] Wrong batch_size
## Describe the bug
The shape of a batch is the full length of the dataset
## To Reproduce
I am using version `=0.0.3`
```python
import torch
from tensordict import Memmap... | diff --git a/tensordict/prototype/tensorclass.py b/tensordict/prototype/tensorclass.py
--- a/tensordict/prototype/tensorclass.py
+++ b/tensordict/prototype/tensorclass.py
@@ -173,6 +173,7 @@
cls.__setattr__ = _setattr_wrapper(cls.__setattr__, expected_keys)
cls.__getattr__ = _getattr
cls.__getitem__ = _g... | {"golden_diff": "diff --git a/tensordict/prototype/tensorclass.py b/tensordict/prototype/tensorclass.py\n--- a/tensordict/prototype/tensorclass.py\n+++ b/tensordict/prototype/tensorclass.py\n@@ -173,6 +173,7 @@\n cls.__setattr__ = _setattr_wrapper(cls.__setattr__, expected_keys)\n cls.__getattr__ = _getattr\n ... |
gh_patches_debug_902 | rasdani/github-patches | git_diff | celery__celery-6599 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
celery worker -q --quiet seems not working with 4.4.7
Running celery 4.4.7 [not woking]
Running celery 4.4.6 [ok]
Running celery 4.4.1 [ok]
commands :
> celery -A proj worker --loglevel=info ... | diff --git a/celery/bin/worker.py b/celery/bin/worker.py
--- a/celery/bin/worker.py
+++ b/celery/bin/worker.py
@@ -325,6 +325,7 @@
pidfile=node_format(pidfile, hostname),
statedb=node_format(statedb, hostname),
no_color=ctx.obj.no_color,
+ quiet=ctx.obj.quiet,
... | {"golden_diff": "diff --git a/celery/bin/worker.py b/celery/bin/worker.py\n--- a/celery/bin/worker.py\n+++ b/celery/bin/worker.py\n@@ -325,6 +325,7 @@\n pidfile=node_format(pidfile, hostname),\n statedb=node_format(statedb, hostname),\n no_color=ctx.obj.no_color,\n+ quiet=... |
gh_patches_debug_903 | rasdani/github-patches | git_diff | googleapis__python-bigquery-750 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bug: `dataframe_to_json_generator` doesn't support `pandas.NA` type
#### Environment details
- OS type and version: Ubuntu 20.04.2
- Python version: `3.9.4`
- pip version: `21.1.2`
- `google-clo... | diff --git a/google/cloud/bigquery/_pandas_helpers.py b/google/cloud/bigquery/_pandas_helpers.py
--- a/google/cloud/bigquery/_pandas_helpers.py
+++ b/google/cloud/bigquery/_pandas_helpers.py
@@ -780,7 +780,7 @@
output = {}
for column, value in zip(dataframe.columns, row):
# Omit NaN value... | {"golden_diff": "diff --git a/google/cloud/bigquery/_pandas_helpers.py b/google/cloud/bigquery/_pandas_helpers.py\n--- a/google/cloud/bigquery/_pandas_helpers.py\n+++ b/google/cloud/bigquery/_pandas_helpers.py\n@@ -780,7 +780,7 @@\n output = {}\n for column, value in zip(dataframe.columns, row):\n ... |
gh_patches_debug_904 | rasdani/github-patches | git_diff | Kinto__kinto-782 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Set scheme to https by default in config
Mainly because it's easy to forget during deployment. And kinto is very like to be deployed behind https:
See `url` in the root URL here:
![capture d ecran de 2016-0... | diff --git a/kinto/core/initialization.py b/kinto/core/initialization.py
--- a/kinto/core/initialization.py
+++ b/kinto/core/initialization.py
@@ -549,6 +549,10 @@
if not project_name:
warnings.warn('No value specified for `project_name`')
+ http_scheme = settings.get('kinto.http_scheme')
+ if htt... | {"golden_diff": "diff --git a/kinto/core/initialization.py b/kinto/core/initialization.py\n--- a/kinto/core/initialization.py\n+++ b/kinto/core/initialization.py\n@@ -549,6 +549,10 @@\n if not project_name:\n warnings.warn('No value specified for `project_name`')\n \n+ http_scheme = settings.get('kinto.h... |
gh_patches_debug_905 | rasdani/github-patches | git_diff | ultrabug__py3status-1378 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Better handling of transient interfaces in net_rate
I use net_rate for a couple of tun interfaces that are transient depending on VPN connections. It would be nice if net_rate had some additional configuratio... | diff --git a/py3status/modules/net_rate.py b/py3status/modules/net_rate.py
--- a/py3status/modules/net_rate.py
+++ b/py3status/modules/net_rate.py
@@ -161,7 +161,7 @@
# get the deltas into variable
delta = deltas[interface] if interface else None
- except TypeError:
+ except (T... | {"golden_diff": "diff --git a/py3status/modules/net_rate.py b/py3status/modules/net_rate.py\n--- a/py3status/modules/net_rate.py\n+++ b/py3status/modules/net_rate.py\n@@ -161,7 +161,7 @@\n # get the deltas into variable\n delta = deltas[interface] if interface else None\n \n- except TypeE... |
gh_patches_debug_906 | rasdani/github-patches | git_diff | DataDog__dd-agent-2387 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[iis] Non-digit value in WMI metric name
Getting this warning in v5.7.1 and `iis.site_up` is permanently triggered.
```
2016-03-16 14:57:40 GMT Standard Time | WARNING | checks.iis(iis.py:127) | When extract... | diff --git a/checks.d/iis.py b/checks.d/iis.py
--- a/checks.d/iis.py
+++ b/checks.d/iis.py
@@ -151,9 +151,6 @@
for wmi_obj in wmi_sampler:
sitename = wmi_obj['Name']
- if sitename == "_Total":
- continue
-
uptime = wmi_obj["ServiceUptime"]
stat... | {"golden_diff": "diff --git a/checks.d/iis.py b/checks.d/iis.py\n--- a/checks.d/iis.py\n+++ b/checks.d/iis.py\n@@ -151,9 +151,6 @@\n \n for wmi_obj in wmi_sampler:\n sitename = wmi_obj['Name']\n- if sitename == \"_Total\":\n- continue\n-\n uptime = wmi_obj[\"Ser... |
gh_patches_debug_907 | rasdani/github-patches | git_diff | spack__spack-6617 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
spack find : always prompt 0 installed packages
On a clean `develop` checkout :
```
$ git clone https://github.com/LLNL/spack.git
Cloning into 'spack'...
remote: Counting objects: 25613, done.
remote: Compr... | diff --git a/var/spack/repos/builtin/packages/globus-toolkit/package.py b/var/spack/repos/builtin/packages/globus-toolkit/package.py
--- a/var/spack/repos/builtin/packages/globus-toolkit/package.py
+++ b/var/spack/repos/builtin/packages/globus-toolkit/package.py
@@ -33,3 +33,6 @@
url = "http://toolkit.globus.... | {"golden_diff": "diff --git a/var/spack/repos/builtin/packages/globus-toolkit/package.py b/var/spack/repos/builtin/packages/globus-toolkit/package.py\n--- a/var/spack/repos/builtin/packages/globus-toolkit/package.py\n+++ b/var/spack/repos/builtin/packages/globus-toolkit/package.py\n@@ -33,3 +33,6 @@\n url = \"... |
gh_patches_debug_908 | rasdani/github-patches | git_diff | mathesar-foundation__mathesar-2062 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Sort list of schemas
On the Database Page, the schemas appear in random order.

I think they s... | diff --git a/mathesar/api/db/viewsets/schemas.py b/mathesar/api/db/viewsets/schemas.py
--- a/mathesar/api/db/viewsets/schemas.py
+++ b/mathesar/api/db/viewsets/schemas.py
@@ -22,7 +22,7 @@
access_policy = SchemaAccessPolicy
def get_queryset(self):
- qs = Schema.objects.all().order_by('-created_at')
+... | {"golden_diff": "diff --git a/mathesar/api/db/viewsets/schemas.py b/mathesar/api/db/viewsets/schemas.py\n--- a/mathesar/api/db/viewsets/schemas.py\n+++ b/mathesar/api/db/viewsets/schemas.py\n@@ -22,7 +22,7 @@\n access_policy = SchemaAccessPolicy\n \n def get_queryset(self):\n- qs = Schema.objects.all().o... |
gh_patches_debug_909 | rasdani/github-patches | git_diff | python-trio__trio-1662 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Importing trio inside a pytest test with pytest-qt fails on sys.excepthook.__name__
A full session is available at the end if you expand it.
The short of it seems to be that during tests pytest-qt puts a `... | diff --git a/trio/_core/_multierror.py b/trio/_core/_multierror.py
--- a/trio/_core/_multierror.py
+++ b/trio/_core/_multierror.py
@@ -477,7 +477,7 @@
# hook.
#
# More details: https://github.com/python-trio/trio/issues/1065
-if sys.excepthook.__name__ == "apport_excepthook":
+if getattr(sys.excepthook, "__name__", ... | {"golden_diff": "diff --git a/trio/_core/_multierror.py b/trio/_core/_multierror.py\n--- a/trio/_core/_multierror.py\n+++ b/trio/_core/_multierror.py\n@@ -477,7 +477,7 @@\n # hook.\n #\n # More details: https://github.com/python-trio/trio/issues/1065\n-if sys.excepthook.__name__ == \"apport_excepthook\":\n+if getattr(s... |
gh_patches_debug_910 | rasdani/github-patches | git_diff | psf__black-3328 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
unreachable code in `parsing.py`
**Describe the bug**
unreachable code in `src\black\parsing.py:170`:
`raise AssertionError("INTERNAL ERROR: Tried parsing unsupported Python version!")`
**Expected beh... | diff --git a/src/black/parsing.py b/src/black/parsing.py
--- a/src/black/parsing.py
+++ b/src/black/parsing.py
@@ -165,8 +165,6 @@
# comments separately.
return ast3.parse(src, filename, feature_version=version[1])
- raise AssertionError("INTERNAL ERROR: Tried parsing unsupported Python version!"... | {"golden_diff": "diff --git a/src/black/parsing.py b/src/black/parsing.py\n--- a/src/black/parsing.py\n+++ b/src/black/parsing.py\n@@ -165,8 +165,6 @@\n # comments separately.\n return ast3.parse(src, filename, feature_version=version[1])\n \n- raise AssertionError(\"INTERNAL ERROR: Tried parsing uns... |
gh_patches_debug_911 | rasdani/github-patches | git_diff | mozilla__bugbug-3866 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Some logging statements don't use the appropriate % operator
> This is a valid fix but unrelated to the goal of this PR. We could open a new issue and fix it in a separate PR (with similar cases if there are... | diff --git a/bugbug/models/regressor.py b/bugbug/models/regressor.py
--- a/bugbug/models/regressor.py
+++ b/bugbug/models/regressor.py
@@ -278,7 +278,7 @@
total_regressions = sum(is_reg for _, is_reg in results)
average_regression_rate = total_regressions / total_landings
- logger.info("Avera... | {"golden_diff": "diff --git a/bugbug/models/regressor.py b/bugbug/models/regressor.py\n--- a/bugbug/models/regressor.py\n+++ b/bugbug/models/regressor.py\n@@ -278,7 +278,7 @@\n total_regressions = sum(is_reg for _, is_reg in results)\n average_regression_rate = total_regressions / total_landings\n \n- ... |
gh_patches_debug_912 | rasdani/github-patches | git_diff | saleor__saleor-13074 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bug: Cannot return null for non-nullable field Webhook.name.
### What are you trying to achieve?
Open app in dashboard.
It seems that name is optional https://docs.saleor.io/docs/3.x/api-reference/webhook... | diff --git a/saleor/graphql/webhook/types.py b/saleor/graphql/webhook/types.py
--- a/saleor/graphql/webhook/types.py
+++ b/saleor/graphql/webhook/types.py
@@ -147,7 +147,7 @@
class Webhook(ModelObjectType[models.Webhook]):
id = graphene.GlobalID(required=True)
- name = graphene.String(required=True)
+ nam... | {"golden_diff": "diff --git a/saleor/graphql/webhook/types.py b/saleor/graphql/webhook/types.py\n--- a/saleor/graphql/webhook/types.py\n+++ b/saleor/graphql/webhook/types.py\n@@ -147,7 +147,7 @@\n \n class Webhook(ModelObjectType[models.Webhook]):\n id = graphene.GlobalID(required=True)\n- name = graphene.String... |
gh_patches_debug_913 | rasdani/github-patches | git_diff | open-mmlab__mmdetection-2671 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Memory leak?
Ever since using V2.0 I've noticed that my RAM memory keeps increasing every epoch. Which indicates that there is a memory leak somewhere.
Is someone else noticing the same behavior?
--- END ... | diff --git a/mmdet/core/evaluation/mean_ap.py b/mmdet/core/evaluation/mean_ap.py
--- a/mmdet/core/evaluation/mean_ap.py
+++ b/mmdet/core/evaluation/mean_ap.py
@@ -365,6 +365,7 @@
'precision': precisions,
'ap': ap
})
+ pool.close()
if scale_ranges is not None:
# shape ... | {"golden_diff": "diff --git a/mmdet/core/evaluation/mean_ap.py b/mmdet/core/evaluation/mean_ap.py\n--- a/mmdet/core/evaluation/mean_ap.py\n+++ b/mmdet/core/evaluation/mean_ap.py\n@@ -365,6 +365,7 @@\n 'precision': precisions,\n 'ap': ap\n })\n+ pool.close()\n if scale_ranges is no... |
gh_patches_debug_914 | rasdani/github-patches | git_diff | python-pillow__Pillow-533 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
PNG transparency keyword ignored
In PngImagePlugin.py around line 564 we have the following:
```
transparency = im.encoderinfo.get('transparency',im.info.get('transparency', None))
if transparency:
... | diff --git a/PIL/PngImagePlugin.py b/PIL/PngImagePlugin.py
--- a/PIL/PngImagePlugin.py
+++ b/PIL/PngImagePlugin.py
@@ -561,7 +561,7 @@
transparency = im.encoderinfo.get('transparency',im.info.get('transparency', None))
- if transparency:
+ if transparency or transparency == 0:
if im.mode == ... | {"golden_diff": "diff --git a/PIL/PngImagePlugin.py b/PIL/PngImagePlugin.py\n--- a/PIL/PngImagePlugin.py\n+++ b/PIL/PngImagePlugin.py\n@@ -561,7 +561,7 @@\n \n transparency = im.encoderinfo.get('transparency',im.info.get('transparency', None))\n \n- if transparency:\n+ if transparency or transparency == 0... |
gh_patches_debug_915 | rasdani/github-patches | git_diff | rotki__rotki-2987 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
FTX fails to query information in 1.17
## Problem Definition
FTX shows an error on querying information in 1.17. DOesn't happen in 1.16
## Logs
```
[26/05/2021 12:47:12 CEST] DEBUG rotkehlchen.exchang... | diff --git a/rotkehlchen/exchanges/ftx.py b/rotkehlchen/exchanges/ftx.py
--- a/rotkehlchen/exchanges/ftx.py
+++ b/rotkehlchen/exchanges/ftx.py
@@ -102,6 +102,7 @@
self.apiversion = 'v2'
self.base_uri = 'https://ftx.com'
self.msg_aggregator = msg_aggregator
+ self.session.headers.update... | {"golden_diff": "diff --git a/rotkehlchen/exchanges/ftx.py b/rotkehlchen/exchanges/ftx.py\n--- a/rotkehlchen/exchanges/ftx.py\n+++ b/rotkehlchen/exchanges/ftx.py\n@@ -102,6 +102,7 @@\n self.apiversion = 'v2'\n self.base_uri = 'https://ftx.com'\n self.msg_aggregator = msg_aggregator\n+ sel... |
gh_patches_debug_916 | rasdani/github-patches | git_diff | django-json-api__django-rest-framework-json-api-788 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Removing relationship through empty PATCH request
According to the JSON API spec, a PATCH request made to the relationship view with a null data object (`None` in the case of a to-one relationship, `[]` in th... | diff --git a/rest_framework_json_api/views.py b/rest_framework_json_api/views.py
--- a/rest_framework_json_api/views.py
+++ b/rest_framework_json_api/views.py
@@ -286,6 +286,8 @@
for obj in instance_manager.all():
setattr(obj, field_object.name, None)
obj.save()
+ e... | {"golden_diff": "diff --git a/rest_framework_json_api/views.py b/rest_framework_json_api/views.py\n--- a/rest_framework_json_api/views.py\n+++ b/rest_framework_json_api/views.py\n@@ -286,6 +286,8 @@\n for obj in instance_manager.all():\n setattr(obj, field_object.name, None)\n ... |
gh_patches_debug_917 | rasdani/github-patches | git_diff | cupy__cupy-4523 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`cupy.gradient` should not sort axis
```
>>> for xp in [numpy, cupy]:
... print(xp.__name__)
... for a in xp.gradient(xp.arange(4).reshape(2, 2), axis=(1, 0)):
... print(a)
...
numpy
[[... | diff --git a/cupy/_math/sumprod.py b/cupy/_math/sumprod.py
--- a/cupy/_math/sumprod.py
+++ b/cupy/_math/sumprod.py
@@ -337,11 +337,7 @@
"""
f = cupy.asanyarray(f)
ndim = f.ndim # number of dimensions
-
- if axis is None:
- axes = tuple(range(ndim))
- else:
- axes = internal._normaliz... | {"golden_diff": "diff --git a/cupy/_math/sumprod.py b/cupy/_math/sumprod.py\n--- a/cupy/_math/sumprod.py\n+++ b/cupy/_math/sumprod.py\n@@ -337,11 +337,7 @@\n \"\"\"\n f = cupy.asanyarray(f)\n ndim = f.ndim # number of dimensions\n-\n- if axis is None:\n- axes = tuple(range(ndim))\n- else:\n- ... |
gh_patches_debug_918 | rasdani/github-patches | git_diff | Netflix__lemur-796 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Adding domain fails on unselectable "sensitive"
Client side

Serve... | diff --git a/lemur/domains/schemas.py b/lemur/domains/schemas.py
--- a/lemur/domains/schemas.py
+++ b/lemur/domains/schemas.py
@@ -15,7 +15,7 @@
class DomainInputSchema(LemurInputSchema):
id = fields.Integer()
name = fields.String(required=True)
- sensitive = fields.Boolean()
+ sensitive = fields.Boole... | {"golden_diff": "diff --git a/lemur/domains/schemas.py b/lemur/domains/schemas.py\n--- a/lemur/domains/schemas.py\n+++ b/lemur/domains/schemas.py\n@@ -15,7 +15,7 @@\n class DomainInputSchema(LemurInputSchema):\n id = fields.Integer()\n name = fields.String(required=True)\n- sensitive = fields.Boolean()\n+ ... |
gh_patches_debug_919 | rasdani/github-patches | git_diff | frappe__frappe-12805 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
It is not possible to return 404 from portal pages
<!--
Welcome to the Frappe Framework issue tracker! Before creating an issue, please heed the following:
1. This tracker should only be used to report bu... | diff --git a/frappe/website/context.py b/frappe/website/context.py
--- a/frappe/website/context.py
+++ b/frappe/website/context.py
@@ -58,7 +58,7 @@
ret = module.get_context()
if ret:
context.update(ret)
- except (frappe.PermissionError, frappe.DoesNotExistError, frappe.Redirect):
+ except (frappe.... | {"golden_diff": "diff --git a/frappe/website/context.py b/frappe/website/context.py\n--- a/frappe/website/context.py\n+++ b/frappe/website/context.py\n@@ -58,7 +58,7 @@\n \t\t\t\t\tret = module.get_context()\n \t\t\t\tif ret:\n \t\t\t\t\tcontext.update(ret)\n-\t\t\texcept (frappe.PermissionError, frappe.DoesNotExistErr... |
gh_patches_debug_920 | rasdani/github-patches | git_diff | pypa__setuptools-1119 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
DistutilsPlatformError in mingw built Python 2 (msys2)
Trying to do many things using setuptools in a mingw built Python 2 (For example `msys2`'s `mingw-w64-x86_64-python2` fails with this exception:
```pytb... | diff --git a/setuptools/msvc.py b/setuptools/msvc.py
--- a/setuptools/msvc.py
+++ b/setuptools/msvc.py
@@ -45,9 +45,18 @@
safe_env = dict()
+_msvc9_suppress_errors = (
+ # msvc9compiler isn't available on some platforms
+ ImportError,
+
+ # msvc9compiler raises DistutilsPlatformError in some
+ ... | {"golden_diff": "diff --git a/setuptools/msvc.py b/setuptools/msvc.py\n--- a/setuptools/msvc.py\n+++ b/setuptools/msvc.py\n@@ -45,9 +45,18 @@\n \n safe_env = dict()\n \n+_msvc9_suppress_errors = (\n+ # msvc9compiler isn't available on some platforms\n+ ImportError,\n+ \n+ # msvc9compiler raises Distutil... |
gh_patches_debug_921 | rasdani/github-patches | git_diff | roboflow__supervision-219 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Developement - version issue
### Search before asking
- [X] I have searched the Supervision [issues](https://github.com/roboflow/supervision/issues) and found no similar bug report.
### Bug
I have not ins... | diff --git a/supervision/__init__.py b/supervision/__init__.py
--- a/supervision/__init__.py
+++ b/supervision/__init__.py
@@ -1,6 +1,10 @@
import importlib.metadata as importlib_metadata
-__version__ = importlib_metadata.version(__package__)
+try:
+ # This will read version from pyproject.toml
+ __version__ =... | {"golden_diff": "diff --git a/supervision/__init__.py b/supervision/__init__.py\n--- a/supervision/__init__.py\n+++ b/supervision/__init__.py\n@@ -1,6 +1,10 @@\n import importlib.metadata as importlib_metadata\n \n-__version__ = importlib_metadata.version(__package__)\n+try:\n+ # This will read version from pyprojec... |
gh_patches_debug_922 | rasdani/github-patches | git_diff | goauthentik__authentik-6081 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Not sure that OAuth2 client source should use authorization header
I've been testing authentik using an Auth0 openIDC source as well as a google source. I have gotten both to work, but Auth0 was not working b... | diff --git a/authentik/sources/oauth/types/oidc.py b/authentik/sources/oauth/types/oidc.py
--- a/authentik/sources/oauth/types/oidc.py
+++ b/authentik/sources/oauth/types/oidc.py
@@ -20,7 +20,7 @@
class OpenIDConnectOAuth2Callback(OAuthCallback):
"""OpenIDConnect OAuth2 Callback"""
- client_class: Userprofil... | {"golden_diff": "diff --git a/authentik/sources/oauth/types/oidc.py b/authentik/sources/oauth/types/oidc.py\n--- a/authentik/sources/oauth/types/oidc.py\n+++ b/authentik/sources/oauth/types/oidc.py\n@@ -20,7 +20,7 @@\n class OpenIDConnectOAuth2Callback(OAuthCallback):\n \"\"\"OpenIDConnect OAuth2 Callback\"\"\"\n \... |
gh_patches_debug_923 | rasdani/github-patches | git_diff | nerfstudio-project__nerfstudio-1487 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
"verbose" param is misinterpreted as "crop_border_pixels" positionally and cause unexpected cropping of images.
**Describe the bug**
Erroneous positional assignment of _verbose_ parameter is causing unwante... | diff --git a/nerfstudio/process_data/process_data_utils.py b/nerfstudio/process_data/process_data_utils.py
--- a/nerfstudio/process_data/process_data_utils.py
+++ b/nerfstudio/process_data/process_data_utils.py
@@ -259,7 +259,7 @@
CONSOLE.log("[bold red]:skull: No usable images in the data folder.")
... | {"golden_diff": "diff --git a/nerfstudio/process_data/process_data_utils.py b/nerfstudio/process_data/process_data_utils.py\n--- a/nerfstudio/process_data/process_data_utils.py\n+++ b/nerfstudio/process_data/process_data_utils.py\n@@ -259,7 +259,7 @@\n CONSOLE.log(\"[bold red]:skull: No usable images in the... |
gh_patches_debug_924 | rasdani/github-patches | git_diff | huggingface__text-generation-inference-1061 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
AWQ models not loading
### System Info
When launching with an AWQ model with the `latest` tag TGI crashes
**System ENV output:**
OS version info:
`Linux version 6.1.55-1-lts (linux-lts@archlinux) (gcc... | diff --git a/server/text_generation_server/models/custom_modeling/flash_llama_modeling.py b/server/text_generation_server/models/custom_modeling/flash_llama_modeling.py
--- a/server/text_generation_server/models/custom_modeling/flash_llama_modeling.py
+++ b/server/text_generation_server/models/custom_modeling/flash_lla... | {"golden_diff": "diff --git a/server/text_generation_server/models/custom_modeling/flash_llama_modeling.py b/server/text_generation_server/models/custom_modeling/flash_llama_modeling.py\n--- a/server/text_generation_server/models/custom_modeling/flash_llama_modeling.py\n+++ b/server/text_generation_server/models/custom... |
gh_patches_debug_925 | rasdani/github-patches | git_diff | pymodbus-dev__pymodbus-1275 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
serial async client 3.0.2 timeout always takes 3,0s no matter the value set to timeout
<!--
Please use the Pymodbus gitter channel at https://gitter.im/pymodbus_dev/Lobby or Stack Overflow(tag [pymodbus](htt... | diff --git a/pymodbus/client/serial.py b/pymodbus/client/serial.py
--- a/pymodbus/client/serial.py
+++ b/pymodbus/client/serial.py
@@ -88,7 +88,9 @@
def _create_protocol(self):
"""Create protocol."""
- protocol = ModbusClientProtocol(framer=self.params.framer, xframer=self.framer)
+ protoc... | {"golden_diff": "diff --git a/pymodbus/client/serial.py b/pymodbus/client/serial.py\n--- a/pymodbus/client/serial.py\n+++ b/pymodbus/client/serial.py\n@@ -88,7 +88,9 @@\n \n def _create_protocol(self):\n \"\"\"Create protocol.\"\"\"\n- protocol = ModbusClientProtocol(framer=self.params.framer, xframe... |
gh_patches_debug_926 | rasdani/github-patches | git_diff | kornia__kornia-1263 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[Bug] save pointcloud not updates num_points when inf
## 🐛 Bug
The function `K.utils.save_pointcloud_ply` doesn't update the final number of points to be serialized when one of the values contain an infin... | diff --git a/kornia/utils/pointcloud_io.py b/kornia/utils/pointcloud_io.py
--- a/kornia/utils/pointcloud_io.py
+++ b/kornia/utils/pointcloud_io.py
@@ -31,6 +31,7 @@
for idx in range(num_points):
xyz = xyz_vec[idx]
if not bool(torch.isfinite(xyz).any()):
+ num_points -= ... | {"golden_diff": "diff --git a/kornia/utils/pointcloud_io.py b/kornia/utils/pointcloud_io.py\n--- a/kornia/utils/pointcloud_io.py\n+++ b/kornia/utils/pointcloud_io.py\n@@ -31,6 +31,7 @@\n for idx in range(num_points):\n xyz = xyz_vec[idx]\n if not bool(torch.isfinite(xyz).any()):\n+ ... |
gh_patches_debug_927 | rasdani/github-patches | git_diff | scrapy__scrapy-1905 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
response.body is duplicate
Access the [text page(not mine)](http://files.qidian.com/Author4/3615059/88542882.txt) by browsers or wget and you will find the response content is not duplicate, but scrapy's `re... | diff --git a/scrapy/utils/gz.py b/scrapy/utils/gz.py
--- a/scrapy/utils/gz.py
+++ b/scrapy/utils/gz.py
@@ -43,7 +43,7 @@
# contains the whole page content
if output or getattr(f, 'extrabuf', None):
try:
- output += f.extrabuf
+ output += f... | {"golden_diff": "diff --git a/scrapy/utils/gz.py b/scrapy/utils/gz.py\n--- a/scrapy/utils/gz.py\n+++ b/scrapy/utils/gz.py\n@@ -43,7 +43,7 @@\n # contains the whole page content\n if output or getattr(f, 'extrabuf', None):\n try:\n- output += f.extrabuf\n+ ... |
gh_patches_debug_928 | rasdani/github-patches | git_diff | python__mypy-7708 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Type aliases become red in html report.
Take the following code:
```python
SourceToDisplay = Callable[[int], int]
DisplayToSource = Callable[[int], int]
```
This becomes red, while it shouldn't.
![image... | diff --git a/mypy/stats.py b/mypy/stats.py
--- a/mypy/stats.py
+++ b/mypy/stats.py
@@ -332,7 +332,8 @@
return
if isinstance(t, AnyType) and is_special_form_any(t):
- # This is not a real Any type, so don't collect stats for it.
+ # TODO: What if there is an error in special... | {"golden_diff": "diff --git a/mypy/stats.py b/mypy/stats.py\n--- a/mypy/stats.py\n+++ b/mypy/stats.py\n@@ -332,7 +332,8 @@\n return\n \n if isinstance(t, AnyType) and is_special_form_any(t):\n- # This is not a real Any type, so don't collect stats for it.\n+ # TODO: What if the... |
gh_patches_debug_929 | rasdani/github-patches | git_diff | e2nIEE__pandapower-1293 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
networkx compatibility issue with python3.9
There's a networkx>=2.5 dependency to run pandapower under python3.9 as gcd has to be imported from math instead of fractions.
--- END ISSUE ---
Below are some co... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@
url='http://www.pandapower.org',
license='BSD',
install_requires=["pandas>=0.17",
- "networkx",
+ "networkx>=2.5",
"scipy<=1.6.0",
"nump... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -43,7 +43,7 @@\n url='http://www.pandapower.org',\n license='BSD',\n install_requires=[\"pandas>=0.17\",\n- \"networkx\",\n+ \"networkx>=2.5\",\n \"scipy<=1.6... |
gh_patches_debug_930 | rasdani/github-patches | git_diff | pex-tool__pex-104 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
'pex <dir>' doesn't actually work unless an .egg-info is already there
It turns out that pex for some reason generates an .egg-info missing setup.py, which causes 'pex .' to fail in a fresh clone.
``` bash
m... | diff --git a/pex/installer.py b/pex/installer.py
--- a/pex/installer.py
+++ b/pex/installer.py
@@ -35,6 +35,7 @@
SETUP_BOOTSTRAP_MODULE = "sys.path.insert(0, %(path)r); import %(module)s"
SETUP_BOOTSTRAP_FOOTER = """
__file__ = 'setup.py'
+sys.argv[0] = 'setup.py'
exec(compile(open(__file__).read().replace('\\r... | {"golden_diff": "diff --git a/pex/installer.py b/pex/installer.py\n--- a/pex/installer.py\n+++ b/pex/installer.py\n@@ -35,6 +35,7 @@\n SETUP_BOOTSTRAP_MODULE = \"sys.path.insert(0, %(path)r); import %(module)s\"\n SETUP_BOOTSTRAP_FOOTER = \"\"\"\n __file__ = 'setup.py'\n+sys.argv[0] = 'setup.py'\n exec(compile(open... |
gh_patches_debug_931 | rasdani/github-patches | git_diff | jschneier__django-storages-357 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Dropbox: "'GetTemporaryLinkResult' object is not subscriptable"
I'm running release 1.6.3 with dropbox==8.0.0 and Django==1.11.1. The ['link'] access on line 140 of /storages/backends/dropbox.py is giving a ... | diff --git a/storages/backends/dropbox.py b/storages/backends/dropbox.py
--- a/storages/backends/dropbox.py
+++ b/storages/backends/dropbox.py
@@ -101,7 +101,7 @@
def url(self, name):
media = self.client.files_get_temporary_link(self._full_path(name))
- return media['link']
+ return media.... | {"golden_diff": "diff --git a/storages/backends/dropbox.py b/storages/backends/dropbox.py\n--- a/storages/backends/dropbox.py\n+++ b/storages/backends/dropbox.py\n@@ -101,7 +101,7 @@\n \n def url(self, name):\n media = self.client.files_get_temporary_link(self._full_path(name))\n- return media['link'... |
gh_patches_debug_932 | rasdani/github-patches | git_diff | internetarchive__openlibrary-7839 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Imports importing 4x
### Summary
- **What is wrong?** At some the Affiliate server imports starting importing the same record 4 times!
<!-- Complete these sections once the problem is resolved. Be brief... | diff --git a/openlibrary/core/vendors.py b/openlibrary/core/vendors.py
--- a/openlibrary/core/vendors.py
+++ b/openlibrary/core/vendors.py
@@ -322,6 +322,8 @@
:param float sleep_sec: Delay time.sleep(sleep_sec) seconds before each retry
:return: A single book item's metadata, or None.
"""
+ # TMP: Thi... | {"golden_diff": "diff --git a/openlibrary/core/vendors.py b/openlibrary/core/vendors.py\n--- a/openlibrary/core/vendors.py\n+++ b/openlibrary/core/vendors.py\n@@ -322,6 +322,8 @@\n :param float sleep_sec: Delay time.sleep(sleep_sec) seconds before each retry\n :return: A single book item's metadata, or None.\n ... |
gh_patches_debug_933 | rasdani/github-patches | git_diff | pydantic__pydantic-362 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`Optional[Dict[str, Any]]` broken when trying to get the schema
This broke since 0.17:
```
import json
from typing import Any, Dict, Optional
from pydantic import BaseModel
class Test(BaseModel):... | diff --git a/pydantic/fields.py b/pydantic/fields.py
--- a/pydantic/fields.py
+++ b/pydantic/fields.py
@@ -356,7 +356,7 @@
"""
False if this is a simple field just allowing None as used in Unions/Optional.
"""
- return len(self.validators) > 1 or self.validators[0][1] != is_none_valida... | {"golden_diff": "diff --git a/pydantic/fields.py b/pydantic/fields.py\n--- a/pydantic/fields.py\n+++ b/pydantic/fields.py\n@@ -356,7 +356,7 @@\n \"\"\"\n False if this is a simple field just allowing None as used in Unions/Optional.\n \"\"\"\n- return len(self.validators) > 1 or self.vali... |
gh_patches_debug_934 | rasdani/github-patches | git_diff | liqd__a4-opin-583 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
when I log out while I am on my profile page I get a 500
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `... | diff --git a/euth/follows/templatetags/follow_tags.py b/euth/follows/templatetags/follow_tags.py
--- a/euth/follows/templatetags/follow_tags.py
+++ b/euth/follows/templatetags/follow_tags.py
@@ -7,8 +7,11 @@
@register.assignment_tag()
def is_following(user, project):
- return models.Follow.objects.filter(
- ... | {"golden_diff": "diff --git a/euth/follows/templatetags/follow_tags.py b/euth/follows/templatetags/follow_tags.py\n--- a/euth/follows/templatetags/follow_tags.py\n+++ b/euth/follows/templatetags/follow_tags.py\n@@ -7,8 +7,11 @@\n \n @register.assignment_tag()\n def is_following(user, project):\n- return models.Follo... |
gh_patches_debug_935 | rasdani/github-patches | git_diff | iterative__dvc-1749 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
cache: dir option is not working correctly
version: `0.32.1`
-----
It raises an error when using the command:
```bash
❯ dvc cache dir
Error: unexpected error - 'NoneType' object has no attribute 'sta... | diff --git a/dvc/command/cache.py b/dvc/command/cache.py
--- a/dvc/command/cache.py
+++ b/dvc/command/cache.py
@@ -53,7 +53,6 @@
)
cache_dir_parser.add_argument(
"value",
- nargs="?",
default=None,
help="Path to cache directory. Relative paths are resolved relative "
... | {"golden_diff": "diff --git a/dvc/command/cache.py b/dvc/command/cache.py\n--- a/dvc/command/cache.py\n+++ b/dvc/command/cache.py\n@@ -53,7 +53,6 @@\n )\n cache_dir_parser.add_argument(\n \"value\",\n- nargs=\"?\",\n default=None,\n help=\"Path to cache directory. Relative paths a... |
gh_patches_debug_936 | rasdani/github-patches | git_diff | encode__django-rest-framework-1515 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Web browseable API doesn't have blank option on drop down list box
A model with a foreign key attribute which has been set to blankable and nullable. And a serializer which has arguments of read_only=False a... | diff --git a/rest_framework/relations.py b/rest_framework/relations.py
--- a/rest_framework/relations.py
+++ b/rest_framework/relations.py
@@ -59,6 +59,8 @@
super(RelatedField, self).__init__(*args, **kwargs)
if not self.required:
+ # Accessed in ModelChoiceIterator django/forms/models.py... | {"golden_diff": "diff --git a/rest_framework/relations.py b/rest_framework/relations.py\n--- a/rest_framework/relations.py\n+++ b/rest_framework/relations.py\n@@ -59,6 +59,8 @@\n super(RelatedField, self).__init__(*args, **kwargs)\n \n if not self.required:\n+ # Accessed in ModelChoiceIterato... |
gh_patches_debug_937 | rasdani/github-patches | git_diff | mkdocs__mkdocs-2481 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
gh_deploy doesn't work when a config file is supplied
```
$ mkdocs gh-deploy --force --config-file mkdocs-editable.yml
...
Traceback (most recent call last):
File "/usr/local/bin/mkdocs", line 8, in <mo... | diff --git a/mkdocs/commands/gh_deploy.py b/mkdocs/commands/gh_deploy.py
--- a/mkdocs/commands/gh_deploy.py
+++ b/mkdocs/commands/gh_deploy.py
@@ -29,7 +29,7 @@
def _get_current_sha(repo_path):
- proc = subprocess.Popen(['git', 'rev-parse', '--short', 'HEAD'], cwd=repo_path,
+ proc = subprocess.Popen(['git',... | {"golden_diff": "diff --git a/mkdocs/commands/gh_deploy.py b/mkdocs/commands/gh_deploy.py\n--- a/mkdocs/commands/gh_deploy.py\n+++ b/mkdocs/commands/gh_deploy.py\n@@ -29,7 +29,7 @@\n \n def _get_current_sha(repo_path):\n \n- proc = subprocess.Popen(['git', 'rev-parse', '--short', 'HEAD'], cwd=repo_path,\n+ proc =... |
gh_patches_debug_938 | rasdani/github-patches | git_diff | Parsl__parsl-496 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Inform user checkpointed results are being used
Reported by @djf604.
We should add a logging line to inform users when checkpointed results are being re-used.
--- END ISSUE ---
Below are some code segmen... | diff --git a/parsl/dataflow/dflow.py b/parsl/dataflow/dflow.py
--- a/parsl/dataflow/dflow.py
+++ b/parsl/dataflow/dflow.py
@@ -339,6 +339,7 @@
"""
hit, memo_fu = self.memoizer.check_memo(task_id, self.tasks[task_id])
if hit:
+ logger.info("Reusing cached result for task {}".format(... | {"golden_diff": "diff --git a/parsl/dataflow/dflow.py b/parsl/dataflow/dflow.py\n--- a/parsl/dataflow/dflow.py\n+++ b/parsl/dataflow/dflow.py\n@@ -339,6 +339,7 @@\n \"\"\"\n hit, memo_fu = self.memoizer.check_memo(task_id, self.tasks[task_id])\n if hit:\n+ logger.info(\"Reusing cached... |
gh_patches_debug_939 | rasdani/github-patches | git_diff | Bitmessage__PyBitmessage-2004 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Adding Protocol specification to docs (WIP)
I am slowly formatting Protocol Specification doc. I see some typos and mistakes in the wiki, which I also hope to fix.
[A quick preview](https://pybitmessage-te... | diff --git a/docs/conf.py b/docs/conf.py
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -19,7 +19,7 @@
# -- Project information -----------------------------------------------------
project = u'PyBitmessage'
-copyright = u'2019, The Bitmessage Team' # pylint: disable=redefined-builtin
+copyright = u'2019-2022, The Bitme... | {"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -19,7 +19,7 @@\n # -- Project information -----------------------------------------------------\n \n project = u'PyBitmessage'\n-copyright = u'2019, The Bitmessage Team' # pylint: disable=redefined-builtin\n+copyright... |
gh_patches_debug_940 | rasdani/github-patches | git_diff | ethereum__web3.py-827 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
createFilter event syntax does not work while eventFilter works
* Version: 4.2.0
* Python: 3.6
* OS: linux
### What was wrong?
Filtering for an event with Syntax 2 does not work, while the deprecated Sy... | diff --git a/web3/contract.py b/web3/contract.py
--- a/web3/contract.py
+++ b/web3/contract.py
@@ -1296,9 +1296,6 @@
if argument_filters is None:
argument_filters = dict()
- if not address:
- address = self.address
-
_filters = dict(**argument_filters)
data_... | {"golden_diff": "diff --git a/web3/contract.py b/web3/contract.py\n--- a/web3/contract.py\n+++ b/web3/contract.py\n@@ -1296,9 +1296,6 @@\n if argument_filters is None:\n argument_filters = dict()\n \n- if not address:\n- address = self.address\n-\n _filters = dict(**argumen... |
gh_patches_debug_941 | rasdani/github-patches | git_diff | pandas-dev__pandas-16930 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
read_html() Thread Safety
#### Code Sample
```python
#!/usr/bin/python3
import pandas
import threading
def fetch_file():
url = "https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Data... | diff --git a/pandas/io/html.py b/pandas/io/html.py
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -37,8 +37,6 @@
if _IMPORTS:
return
- _IMPORTS = True
-
global _HAS_BS4, _HAS_LXML, _HAS_HTML5LIB
try:
@@ -59,6 +57,8 @@
except ImportError:
pass
+ _IMPORTS = True
+
... | {"golden_diff": "diff --git a/pandas/io/html.py b/pandas/io/html.py\n--- a/pandas/io/html.py\n+++ b/pandas/io/html.py\n@@ -37,8 +37,6 @@\n if _IMPORTS:\n return\n \n- _IMPORTS = True\n-\n global _HAS_BS4, _HAS_LXML, _HAS_HTML5LIB\n \n try:\n@@ -59,6 +57,8 @@\n except ImportError:\n pa... |
gh_patches_debug_942 | rasdani/github-patches | git_diff | facebookresearch__hydra-287 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[Bug] example of override fail in multirun
This fails
`python examples/tutorial/5_composition/my_app.py -m db=mysql,postgresql db.user=omry`
--- END ISSUE ---
Below are some code segments, each from a re... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -104,7 +104,7 @@
"Operating System :: Microsoft :: Windows",
],
install_requires=[
- "omegaconf>=1.4.0rc2",
+ "omegaconf>=1.4.0rc3",
'pathlib2>=2.2.0;python_version<"3.0"',
],
... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -104,7 +104,7 @@\n \"Operating System :: Microsoft :: Windows\",\n ],\n install_requires=[\n- \"omegaconf>=1.4.0rc2\",\n+ \"omegaconf>=1.4.0rc3\",\n 'pathlib2>=2.2.0;python... |
gh_patches_debug_943 | rasdani/github-patches | git_diff | secondmind-labs__trieste-730 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Cannot install trieste from pypi on MacOS
**Describe the bug**
`pip install trieste` fails on MacOS
**To reproduce**
Steps to reproduce the behaviour:
```
$ pip install trieste
Collecting trieste
D... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,8 @@
"gpflow>=2.7.0",
"gpflux>=0.4.0",
"numpy",
- "tensorflow>=2.5",
+ "tensorflow>=2.5; platform_system!='Darwin' or platform_machine!='arm64'",
+ "tensorflow-macos>=2.5; platform_system=='Darwin... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -43,7 +43,8 @@\n \"gpflow>=2.7.0\",\n \"gpflux>=0.4.0\",\n \"numpy\",\n- \"tensorflow>=2.5\",\n+ \"tensorflow>=2.5; platform_system!='Darwin' or platform_machine!='arm64'\",\n+ \"tensorflow... |
gh_patches_debug_944 | rasdani/github-patches | git_diff | searx__searx-3473 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
No Bing results for Searx (but for SearxNG)
The public instances Searx instances don't seem return any results for Bing but SearxNG instances do. I think the situation has been the same for days or even weeks... | diff --git a/searx/engines/bing.py b/searx/engines/bing.py
--- a/searx/engines/bing.py
+++ b/searx/engines/bing.py
@@ -52,8 +52,7 @@
offset=offset)
params['url'] = base_url + search_path
- params['headers']['User-Agent'] = ('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 '
- ... | {"golden_diff": "diff --git a/searx/engines/bing.py b/searx/engines/bing.py\n--- a/searx/engines/bing.py\n+++ b/searx/engines/bing.py\n@@ -52,8 +52,7 @@\n offset=offset)\n \n params['url'] = base_url + search_path\n- params['headers']['User-Agent'] = ('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 '... |
gh_patches_debug_945 | rasdani/github-patches | git_diff | open-telemetry__opentelemetry-python-3608 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
NoOpLoggerProvider has no `force_flush` in exit callback
**Describe your environment** Python 3.11, macOS Ventura
**Steps to reproduce**
1. Create a `LoggingHandler` without providing a `logger_provider... | diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py
--- a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py
+++ b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py
@@ -553,9 +553,10 @@
... | {"golden_diff": "diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py\n--- a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py\n+++ b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py\n@... |
gh_patches_debug_946 | rasdani/github-patches | git_diff | pwr-Solaar__Solaar-1085 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Either documentation or behavior with a second Unifying Receiver - How to specify?
Arch Linux
solaar-git 1.0.5rc2.r0.g8d01e28-1
2021 Feb 20
Suppose you have, for instance, a second Unifying Receiver that... | diff --git a/lib/solaar/cli/pair.py b/lib/solaar/cli/pair.py
--- a/lib/solaar/cli/pair.py
+++ b/lib/solaar/cli/pair.py
@@ -32,7 +32,7 @@
if args.receiver:
receiver_name = args.receiver.lower()
- receiver = find_receiver(receiver_name)
+ receiver = find_receiver(receivers, receiver_name)
... | {"golden_diff": "diff --git a/lib/solaar/cli/pair.py b/lib/solaar/cli/pair.py\n--- a/lib/solaar/cli/pair.py\n+++ b/lib/solaar/cli/pair.py\n@@ -32,7 +32,7 @@\n \n if args.receiver:\n receiver_name = args.receiver.lower()\n- receiver = find_receiver(receiver_name)\n+ receiver = find_receiver(rec... |
gh_patches_debug_947 | rasdani/github-patches | git_diff | DataDog__dd-trace-py-984 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
'async for' requires an object with __aiter__ method, got AIOTracedCursor
## Problem
Using ddtrace and aiopg, if I do:
```python
await cur.execute(query)
async for value in cur:
yield value
```
I... | diff --git a/ddtrace/contrib/aiopg/connection.py b/ddtrace/contrib/aiopg/connection.py
--- a/ddtrace/contrib/aiopg/connection.py
+++ b/ddtrace/contrib/aiopg/connection.py
@@ -67,6 +67,9 @@
self.__wrapped__.callproc, proc, {}, proc, args)
return result
+ def __aiter__(self):
+ return se... | {"golden_diff": "diff --git a/ddtrace/contrib/aiopg/connection.py b/ddtrace/contrib/aiopg/connection.py\n--- a/ddtrace/contrib/aiopg/connection.py\n+++ b/ddtrace/contrib/aiopg/connection.py\n@@ -67,6 +67,9 @@\n self.__wrapped__.callproc, proc, {}, proc, args)\n return result\n \n+ def __aiter__(s... |
gh_patches_debug_948 | rasdani/github-patches | git_diff | beetbox__beets-1272 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Better error message when MusicBrainz is unreachable
A user [recently was confused by a terrible error message](https://botbot.me/freenode/beets/2014-12-28/?msg=28424335&page=1) when their DNS was misconfigur... | diff --git a/beets/autotag/mb.py b/beets/autotag/mb.py
--- a/beets/autotag/mb.py
+++ b/beets/autotag/mb.py
@@ -38,6 +38,8 @@
"""
def __init__(self, reason, verb, query, tb=None):
self.query = query
+ if isinstance(reason, musicbrainzngs.WebServiceError):
+ reason = 'MusicBrainz not ... | {"golden_diff": "diff --git a/beets/autotag/mb.py b/beets/autotag/mb.py\n--- a/beets/autotag/mb.py\n+++ b/beets/autotag/mb.py\n@@ -38,6 +38,8 @@\n \"\"\"\n def __init__(self, reason, verb, query, tb=None):\n self.query = query\n+ if isinstance(reason, musicbrainzngs.WebServiceError):\n+ ... |
gh_patches_debug_949 | rasdani/github-patches | git_diff | Mailu__Mailu-1396 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Default yaml.load deprecated and unsafe
I've come across the following warnings in the [travis logs](https://travis-ci.org/Mailu/Mailu/jobs/563724185#L3319):
```
/app/mailu/manage.py:158: YAMLLoadWarning:... | diff --git a/core/admin/mailu/manage.py b/core/admin/mailu/manage.py
--- a/core/admin/mailu/manage.py
+++ b/core/admin/mailu/manage.py
@@ -177,7 +177,7 @@
"""sync configuration with data from YAML-formatted stdin"""
import yaml
import sys
- new_config = yaml.load(sys.stdin)
+ new_config = yaml.safe... | {"golden_diff": "diff --git a/core/admin/mailu/manage.py b/core/admin/mailu/manage.py\n--- a/core/admin/mailu/manage.py\n+++ b/core/admin/mailu/manage.py\n@@ -177,7 +177,7 @@\n \"\"\"sync configuration with data from YAML-formatted stdin\"\"\"\n import yaml\n import sys\n- new_config = yaml.load(sys.stdi... |
gh_patches_debug_950 | rasdani/github-patches | git_diff | bookwyrm-social__bookwyrm-3126 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Saved lists pagination is broken
**Describe the bug**
Trying to move through pages of saved lists is broken. Instead, one moves back to all lists.
**To Reproduce**
Steps to reproduce the behavior:
1. Sa... | diff --git a/bookwyrm/views/list/lists.py b/bookwyrm/views/list/lists.py
--- a/bookwyrm/views/list/lists.py
+++ b/bookwyrm/views/list/lists.py
@@ -59,7 +59,7 @@
data = {
"lists": paginated.get_page(request.GET.get("page")),
"list_form": forms.ListForm(),
- "path": "/list",
... | {"golden_diff": "diff --git a/bookwyrm/views/list/lists.py b/bookwyrm/views/list/lists.py\n--- a/bookwyrm/views/list/lists.py\n+++ b/bookwyrm/views/list/lists.py\n@@ -59,7 +59,7 @@\n data = {\n \"lists\": paginated.get_page(request.GET.get(\"page\")),\n \"list_form\": forms.ListForm(),\n... |
gh_patches_debug_951 | rasdani/github-patches | git_diff | jazzband__pip-tools-1713 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Inconsistent `via` comments for backtracking resolver on constrained requirements
`pip-compile` generates inconsistent `via` comments when using backtracking resolver on constrained requirements.
When a co... | diff --git a/piptools/resolver.py b/piptools/resolver.py
--- a/piptools/resolver.py
+++ b/piptools/resolver.py
@@ -770,7 +770,7 @@
# Save source for annotation
source_ireq = self._constraints_map.get(ireq_key)
- if source_ireq is not None and ireq_key not in self.existing_constraints:
+ ... | {"golden_diff": "diff --git a/piptools/resolver.py b/piptools/resolver.py\n--- a/piptools/resolver.py\n+++ b/piptools/resolver.py\n@@ -770,7 +770,7 @@\n \n # Save source for annotation\n source_ireq = self._constraints_map.get(ireq_key)\n- if source_ireq is not None and ireq_key not in self.exist... |
gh_patches_debug_952 | rasdani/github-patches | git_diff | kivy__kivy-8218 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Resizing in Debug (PyCharm) crashes with "NameError: name 'EventLoop' is not defined" in kivy\core\window\window_sdl2.py
**Software Versions**
* Python: 3.10.4
* OS: Windows 11
* Kivy: 2.1.0
* Kivy instal... | diff --git a/kivy/core/window/window_sdl2.py b/kivy/core/window/window_sdl2.py
--- a/kivy/core/window/window_sdl2.py
+++ b/kivy/core/window/window_sdl2.py
@@ -367,7 +367,6 @@
# auto add input provider
Logger.info('Window: auto add sdl2 input provider')
- from kivy.base import EventLoop
... | {"golden_diff": "diff --git a/kivy/core/window/window_sdl2.py b/kivy/core/window/window_sdl2.py\n--- a/kivy/core/window/window_sdl2.py\n+++ b/kivy/core/window/window_sdl2.py\n@@ -367,7 +367,6 @@\n \n # auto add input provider\n Logger.info('Window: auto add sdl2 input provider')\n- from kivy.base... |
gh_patches_debug_953 | rasdani/github-patches | git_diff | Textualize__textual-3321 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`TimeoutError` when finding nothing in the Command Palette (Python <3.11)
To test this, make a fresh installation of Textual, then run:
```sh
$ python -m textual
```
To run up the demo. Press <kbd>Ctr... | diff --git a/src/textual/command.py b/src/textual/command.py
--- a/src/textual/command.py
+++ b/src/textual/command.py
@@ -7,7 +7,7 @@
from __future__ import annotations
from abc import ABC, abstractmethod
-from asyncio import CancelledError, Queue, Task, wait, wait_for
+from asyncio import CancelledError, Queue, T... | {"golden_diff": "diff --git a/src/textual/command.py b/src/textual/command.py\n--- a/src/textual/command.py\n+++ b/src/textual/command.py\n@@ -7,7 +7,7 @@\n from __future__ import annotations\n \n from abc import ABC, abstractmethod\n-from asyncio import CancelledError, Queue, Task, wait, wait_for\n+from asyncio import... |
gh_patches_debug_954 | rasdani/github-patches | git_diff | NVIDIA__TransformerEngine-143 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
TF installation failed when using pip install but not apt-get
It seems we updated the installation instructions from
```
apt-get install ninja-build pybind11-dev
```
to
```
pip install pybind11
pip ins... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -161,7 +161,8 @@
class TensorFlowBuilder(FrameworkBuilderBase):
def cmake_flags(self):
- return ["-DENABLE_TENSORFLOW=ON"]
+ p = [d for d in sys.path if 'dist-packages' in d][0]
+ return ["-DENABLE_TENSORFLOW=ON", "-DCMAKE_PR... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -161,7 +161,8 @@\n \n class TensorFlowBuilder(FrameworkBuilderBase):\n def cmake_flags(self):\n- return [\"-DENABLE_TENSORFLOW=ON\"]\n+ p = [d for d in sys.path if 'dist-packages' in d][0]\n+ return [\"-DENABL... |
gh_patches_debug_955 | rasdani/github-patches | git_diff | ipython__ipython-3468 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
%magic doesn't work
```
In [48]: %magic
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-4... | diff --git a/IPython/core/magics/basic.py b/IPython/core/magics/basic.py
--- a/IPython/core/magics/basic.py
+++ b/IPython/core/magics/basic.py
@@ -271,7 +271,7 @@
Currently the magic system has the following functions:""",
magic_docs,
"Summary of magic functions (from %slsmagic):" % magic_escapes['line... | {"golden_diff": "diff --git a/IPython/core/magics/basic.py b/IPython/core/magics/basic.py\n--- a/IPython/core/magics/basic.py\n+++ b/IPython/core/magics/basic.py\n@@ -271,7 +271,7 @@\n Currently the magic system has the following functions:\"\"\",\n magic_docs,\n \"Summary of magic functions (from %slsmag... |
gh_patches_debug_956 | rasdani/github-patches | git_diff | cython__cython-4583 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] Example code has compilation error in cython tutorial - Primes with C++
**Describe the bug**
I encountered a bug when following [cython tutorial - Primes with C++](https://cython.readthedocs.io/en/la... | diff --git a/docs/conf.py b/docs/conf.py
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -184,6 +184,10 @@
'css_files': ['_static/css/tabs.css'],
}
+development = 'a' in release or 'b' in release
+
+html_context = {'development': development}
+
# If not '', a 'Last updated on:' timestamp is inserted at every page bot... | {"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -184,6 +184,10 @@\n 'css_files': ['_static/css/tabs.css'],\n }\n \n+development = 'a' in release or 'b' in release\n+\n+html_context = {'development': development}\n+\n # If not '', a 'Last updated on:' timestamp i... |
gh_patches_debug_957 | rasdani/github-patches | git_diff | sopel-irc__sopel-1388 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Errors thrown before connecting finishes do not run shutdown routines
I'll just copy [the original report](https://github.com/sopel-irc/sopel/issues/1369#issuecomment-415956806) from @tbnobody in #1369:
> ... | diff --git a/sopel/irc.py b/sopel/irc.py
--- a/sopel/irc.py
+++ b/sopel/irc.py
@@ -155,6 +155,7 @@
self.initiate_connect(host, port)
except socket.error as e:
stderr('Connection error: %s' % e)
+ self.handle_close()
def initiate_connect(self, host, port):
st... | {"golden_diff": "diff --git a/sopel/irc.py b/sopel/irc.py\n--- a/sopel/irc.py\n+++ b/sopel/irc.py\n@@ -155,6 +155,7 @@\n self.initiate_connect(host, port)\n except socket.error as e:\n stderr('Connection error: %s' % e)\n+ self.handle_close()\n \n def initiate_connect(self... |
gh_patches_debug_958 | rasdani/github-patches | git_diff | scikit-hep__pyhf-924 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Remove cloudpickle constraints when updating to TensorFlow Probability v0.11
# Description
Once TensorFlow Probability `v0.11.0` is released there will no longer be the need for PR #915, and so that should... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -3,8 +3,7 @@
extras_require = {
'tensorflow': [
'tensorflow~=2.0',
- 'tensorflow-probability~=0.8',
- 'cloudpickle!=1.5.0', # TODO: Temp patch until tfp v0.11
+ 'tensorflow-probability~=0.10', # TODO: Temp patch unti... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -3,8 +3,7 @@\n extras_require = {\n 'tensorflow': [\n 'tensorflow~=2.0',\n- 'tensorflow-probability~=0.8',\n- 'cloudpickle!=1.5.0', # TODO: Temp patch until tfp v0.11\n+ 'tensorflow-probability~=0.10'... |
gh_patches_debug_959 | rasdani/github-patches | git_diff | jazzband__django-debug-toolbar-921 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Incorrectly parse versions of some apps
I saw that for `django-celery-beat` and `django-celery-results` it shows extra dots at the end of the version:
```
django_celery_beat Django_Celery_Beat 1.0.1..
djan... | diff --git a/debug_toolbar/panels/versions.py b/debug_toolbar/panels/versions.py
--- a/debug_toolbar/panels/versions.py
+++ b/debug_toolbar/panels/versions.py
@@ -54,5 +54,7 @@
else:
return
if isinstance(version, (list, tuple)):
- version = '.'.join(str(o) for o in version)
+ ... | {"golden_diff": "diff --git a/debug_toolbar/panels/versions.py b/debug_toolbar/panels/versions.py\n--- a/debug_toolbar/panels/versions.py\n+++ b/debug_toolbar/panels/versions.py\n@@ -54,5 +54,7 @@\n else:\n return\n if isinstance(version, (list, tuple)):\n- version = '.'.join(str(... |
gh_patches_debug_960 | rasdani/github-patches | git_diff | ibis-project__ibis-7628 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
bug: Applying ibis.desc()/asc() does not work with window function when referencing column with dot notation
### What happened?
To duplicate:
t = ibis.memtable({"values": [1, 2, 1, 2, 3, 2]})
t.mutate(rank... | diff --git a/ibis/common/deferred.py b/ibis/common/deferred.py
--- a/ibis/common/deferred.py
+++ b/ibis/common/deferred.py
@@ -51,7 +51,9 @@
elif isinstance(value, Deferred):
return value._resolver
else:
- raise CoercionError(f"Cannot coerce {value!r} to {cls.__name__!r}")
+ ... | {"golden_diff": "diff --git a/ibis/common/deferred.py b/ibis/common/deferred.py\n--- a/ibis/common/deferred.py\n+++ b/ibis/common/deferred.py\n@@ -51,7 +51,9 @@\n elif isinstance(value, Deferred):\n return value._resolver\n else:\n- raise CoercionError(f\"Cannot coerce {value!r} t... |
gh_patches_debug_961 | rasdani/github-patches | git_diff | buildbot__buildbot-4990 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
hgpoller fails with "null value in column committer"
I'm running a Buildbot master inside a Docker container, and I have an HgPoller set up to poll a Kallithea repository. When the poller detects changes, it ... | diff --git a/master/buildbot/db/model.py b/master/buildbot/db/model.py
--- a/master/buildbot/db/model.py
+++ b/master/buildbot/db/model.py
@@ -370,7 +370,7 @@
sa.Column('author', sa.String(255), nullable=False),
# committer's name
- sa.Column('committer', sa.String(255), nullable=False),
+ ... | {"golden_diff": "diff --git a/master/buildbot/db/model.py b/master/buildbot/db/model.py\n--- a/master/buildbot/db/model.py\n+++ b/master/buildbot/db/model.py\n@@ -370,7 +370,7 @@\n sa.Column('author', sa.String(255), nullable=False),\n \n # committer's name\n- sa.Column('committer', sa.String(255... |
gh_patches_debug_962 | rasdani/github-patches | git_diff | learningequality__kolibri-2777 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
CSV export fails if logs refer to channel that no longer exists locally
### Observed behavior
Tried to export CSV log via http://kolibribeta.learningequality.org/management/facility/#/data and got a 500 (t... | diff --git a/kolibri/logger/csv.py b/kolibri/logger/csv.py
--- a/kolibri/logger/csv.py
+++ b/kolibri/logger/csv.py
@@ -35,8 +35,7 @@
return channel.name
def get_content_title(self, obj):
- channel = ChannelMetadata.objects.get(id=obj.channel_id)
- node = ContentNode.objects.filter(tree_id=... | {"golden_diff": "diff --git a/kolibri/logger/csv.py b/kolibri/logger/csv.py\n--- a/kolibri/logger/csv.py\n+++ b/kolibri/logger/csv.py\n@@ -35,8 +35,7 @@\n return channel.name\n \n def get_content_title(self, obj):\n- channel = ChannelMetadata.objects.get(id=obj.channel_id)\n- node = ContentNod... |
gh_patches_debug_963 | rasdani/github-patches | git_diff | sktime__sktime-3566 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] check_estimator tests_to_exclude doesn't exclude the specified tests
**Describe the bug**
<!--
A clear and concise description of what the bug is.
-->
Specifying a list of tests in the `tests_to_exc... | diff --git a/sktime/utils/estimator_checks.py b/sktime/utils/estimator_checks.py
--- a/sktime/utils/estimator_checks.py
+++ b/sktime/utils/estimator_checks.py
@@ -133,6 +133,8 @@
return_exceptions=return_exceptions,
tests_to_run=tests_to_run,
fixtures_to_run=fixtures_to_run,
+ ... | {"golden_diff": "diff --git a/sktime/utils/estimator_checks.py b/sktime/utils/estimator_checks.py\n--- a/sktime/utils/estimator_checks.py\n+++ b/sktime/utils/estimator_checks.py\n@@ -133,6 +133,8 @@\n return_exceptions=return_exceptions,\n tests_to_run=tests_to_run,\n fixtures_to_run... |
gh_patches_debug_964 | rasdani/github-patches | git_diff | great-expectations__great_expectations-8512 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Not able to set persist to False using Spark Execution Engine
Hey Guys, I was trying to migrate GX from 0.16.5 and am not being able to, cause apparently since GX 0.16.12 supposedly there was a fix for the p... | diff --git a/great_expectations/datasource/fluent/spark_datasource.py b/great_expectations/datasource/fluent/spark_datasource.py
--- a/great_expectations/datasource/fluent/spark_datasource.py
+++ b/great_expectations/datasource/fluent/spark_datasource.py
@@ -63,6 +63,7 @@
# instance attributes
spark_config: U... | {"golden_diff": "diff --git a/great_expectations/datasource/fluent/spark_datasource.py b/great_expectations/datasource/fluent/spark_datasource.py\n--- a/great_expectations/datasource/fluent/spark_datasource.py\n+++ b/great_expectations/datasource/fluent/spark_datasource.py\n@@ -63,6 +63,7 @@\n # instance attributes... |
gh_patches_debug_965 | rasdani/github-patches | git_diff | pallets__werkzeug-1913 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
SameSite=None missing from debugger cookie
When entering the debugger pin into the debugger when running in an iframe, Chrome states that "Because a cookie's SameSite attribute was not set or is invalid, it d... | diff --git a/src/werkzeug/debug/__init__.py b/src/werkzeug/debug/__init__.py
--- a/src/werkzeug/debug/__init__.py
+++ b/src/werkzeug/debug/__init__.py
@@ -438,6 +438,7 @@
self.pin_cookie_name,
f"{int(time.time())}|{hash_pin(self.pin)}",
httponly=True,
+ ... | {"golden_diff": "diff --git a/src/werkzeug/debug/__init__.py b/src/werkzeug/debug/__init__.py\n--- a/src/werkzeug/debug/__init__.py\n+++ b/src/werkzeug/debug/__init__.py\n@@ -438,6 +438,7 @@\n self.pin_cookie_name,\n f\"{int(time.time())}|{hash_pin(self.pin)}\",\n httponl... |
gh_patches_debug_966 | rasdani/github-patches | git_diff | pwndbg__pwndbg-979 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
add-symbol-file should not specify a base address
This happens when connecting to a remote target:
```
hacker@babyrop_level10:~$ gdb -ex 'target remote :1234'
...
add-symbol-file /tmp/tmp_yea7f3g/babyrop_... | diff --git a/pwndbg/symbol.py b/pwndbg/symbol.py
--- a/pwndbg/symbol.py
+++ b/pwndbg/symbol.py
@@ -258,7 +258,7 @@
path = mmap.objfile
if path and (pwndbg.arch.endian == pwndbg.arch.native_endian):
try:
- gdb.execute('add-symbol-file %s %#x' % (path, addr), from_tty=False, to_string=True)
... | {"golden_diff": "diff --git a/pwndbg/symbol.py b/pwndbg/symbol.py\n--- a/pwndbg/symbol.py\n+++ b/pwndbg/symbol.py\n@@ -258,7 +258,7 @@\n path = mmap.objfile\n if path and (pwndbg.arch.endian == pwndbg.arch.native_endian):\n try:\n- gdb.execute('add-symbol-file %s %#x' % (path, addr), from_tty... |
gh_patches_debug_967 | rasdani/github-patches | git_diff | mantl__mantl-1028 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
upgrade path from 0.5.1 to 0.6
0.6 will include updated versions of marathon (0.13), mesos (0.25), and consul (0.6.3). We want to support an upgrade of an existing 0.5.1 cluster.
- [x] mesos/marathon: https:/... | diff --git a/docs/conf.py b/docs/conf.py
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -56,9 +56,9 @@
# built documents.
#
# The short X.Y version.
-version = '0.3'
+version = '0.6'
# The full version, including alpha/beta/rc tags.
-release = '0.3'
+release = '0.6'
# The language for content autogenerated by Sphinx. ... | {"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -56,9 +56,9 @@\n # built documents.\n #\n # The short X.Y version.\n-version = '0.3'\n+version = '0.6'\n # The full version, including alpha/beta/rc tags.\n-release = '0.3'\n+release = '0.6'\n \n # The language for con... |
gh_patches_debug_968 | rasdani/github-patches | git_diff | beetbox__beets-1650 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
plexupdate plugin crashed
Every time after import plexupdate plugin crashed with this error:
```
Traceback (most recent call last):
File "/usr/local/bin/beet", line 9, in <module>
load_entry_point('bee... | diff --git a/beetsplug/plexupdate.py b/beetsplug/plexupdate.py
--- a/beetsplug/plexupdate.py
+++ b/beetsplug/plexupdate.py
@@ -28,7 +28,7 @@
r = requests.get(url)
# Parse xml tree and extract music section key.
- tree = ET.fromstring(r.text)
+ tree = ET.fromstring(r.content)
for child in tree.fin... | {"golden_diff": "diff --git a/beetsplug/plexupdate.py b/beetsplug/plexupdate.py\n--- a/beetsplug/plexupdate.py\n+++ b/beetsplug/plexupdate.py\n@@ -28,7 +28,7 @@\n r = requests.get(url)\n \n # Parse xml tree and extract music section key.\n- tree = ET.fromstring(r.text)\n+ tree = ET.fromstring(r.content)\n... |
gh_patches_debug_969 | rasdani/github-patches | git_diff | urllib3__urllib3-1463 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Can no longer create a context with specific ciphers
The recent change to remove support for Python 2.6 has made it so that the "ciphers" parameter of the create_urllib3_context function in ssl_.py no longer ... | diff --git a/src/urllib3/util/ssl_.py b/src/urllib3/util/ssl_.py
--- a/src/urllib3/util/ssl_.py
+++ b/src/urllib3/util/ssl_.py
@@ -263,6 +263,8 @@
"""
context = SSLContext(ssl_version or ssl.PROTOCOL_SSLv23)
+ context.set_ciphers(ciphers or DEFAULT_CIPHERS)
+
# Setting the default here, as we may ha... | {"golden_diff": "diff --git a/src/urllib3/util/ssl_.py b/src/urllib3/util/ssl_.py\n--- a/src/urllib3/util/ssl_.py\n+++ b/src/urllib3/util/ssl_.py\n@@ -263,6 +263,8 @@\n \"\"\"\n context = SSLContext(ssl_version or ssl.PROTOCOL_SSLv23)\n \n+ context.set_ciphers(ciphers or DEFAULT_CIPHERS)\n+\n # Setting t... |
gh_patches_debug_970 | rasdani/github-patches | git_diff | stephenmcd__mezzanine-2017 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] `set_dynamic_settings` always sets the MySQL test database collation to `utf8_general_ci`
### Is there an existing issue for this?
- [X] I have searched the existing Issues
### Current Behavior
... | diff --git a/mezzanine/utils/conf.py b/mezzanine/utils/conf.py
--- a/mezzanine/utils/conf.py
+++ b/mezzanine/utils/conf.py
@@ -247,7 +247,7 @@
db["NAME"] = db_path
elif shortname == "mysql":
# Required MySQL collation for tests.
- db.setdefault("TEST", {})["COLLATION"] ... | {"golden_diff": "diff --git a/mezzanine/utils/conf.py b/mezzanine/utils/conf.py\n--- a/mezzanine/utils/conf.py\n+++ b/mezzanine/utils/conf.py\n@@ -247,7 +247,7 @@\n db[\"NAME\"] = db_path\n elif shortname == \"mysql\":\n # Required MySQL collation for tests.\n- db.setdefau... |
gh_patches_debug_971 | rasdani/github-patches | git_diff | xonsh__xonsh-3003 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`pv /dev/urandom | head` kills terminal
## xonfig
```
+------------------+---------------------+
| xonsh | 0.8.4 |
| Git SHA | 8405b8dd |
| Commit Date ... | diff --git a/xonsh/jobs.py b/xonsh/jobs.py
--- a/xonsh/jobs.py
+++ b/xonsh/jobs.py
@@ -180,7 +180,9 @@
else:
raise
finally:
- _pthread_sigmask(signal.SIG_SETMASK, oldmask)
+ if oldmask:
+ # only reset the mask if it is non-empty! See #2989
+ ... | {"golden_diff": "diff --git a/xonsh/jobs.py b/xonsh/jobs.py\n--- a/xonsh/jobs.py\n+++ b/xonsh/jobs.py\n@@ -180,7 +180,9 @@\n else:\n raise\n finally:\n- _pthread_sigmask(signal.SIG_SETMASK, oldmask)\n+ if oldmask:\n+ # only reset the mask if it is... |
gh_patches_debug_972 | rasdani/github-patches | git_diff | paperless-ngx__paperless-ngx-5800 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] Workflow trigger ignores mail rule filter when processing full mail as .eml
### Description
A workflow that applies to only documents from a certain mailrule gets incorrectly applied to documents from ... | diff --git a/src/paperless_mail/mail.py b/src/paperless_mail/mail.py
--- a/src/paperless_mail/mail.py
+++ b/src/paperless_mail/mail.py
@@ -831,6 +831,7 @@
input_doc = ConsumableDocument(
source=DocumentSource.MailFetch,
original_file=temp_filename,
+ mailrule_id=rule.pk,
... | {"golden_diff": "diff --git a/src/paperless_mail/mail.py b/src/paperless_mail/mail.py\n--- a/src/paperless_mail/mail.py\n+++ b/src/paperless_mail/mail.py\n@@ -831,6 +831,7 @@\n input_doc = ConsumableDocument(\n source=DocumentSource.MailFetch,\n original_file=temp_filename,\n+ ... |
gh_patches_debug_973 | rasdani/github-patches | git_diff | deis__deis-934 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Cannot delete cluster
I created a cluster with a bad key and when I tried to delete it the client threw a 500 error.
Logs below:
```
May 07 23:36:58 coreos-test-3ee2b1c1-0845-41db-9fd5-d421a1cfea76 sh[5108]... | diff --git a/controller/api/models.py b/controller/api/models.py
--- a/controller/api/models.py
+++ b/controller/api/models.py
@@ -134,6 +134,9 @@
self.save()
self.scale()
+ def destroy(self, *args, **kwargs):
+ return self.delete(*args, **kwargs)
+
def scale(self, **kwargs):
... | {"golden_diff": "diff --git a/controller/api/models.py b/controller/api/models.py\n--- a/controller/api/models.py\n+++ b/controller/api/models.py\n@@ -134,6 +134,9 @@\n self.save()\n self.scale()\n \n+ def destroy(self, *args, **kwargs):\n+ return self.delete(*args, **kwargs)\n+\n ... |
gh_patches_debug_974 | rasdani/github-patches | git_diff | dask__distributed-8116 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
P2P with null partitions fails
I came across a use case where P2P shuffling fails when a column in a partition has all null values. Here's a minimal reproducer:
```python
import numpy as np
import pandas... | diff --git a/distributed/shuffle/_arrow.py b/distributed/shuffle/_arrow.py
--- a/distributed/shuffle/_arrow.py
+++ b/distributed/shuffle/_arrow.py
@@ -79,7 +79,9 @@
"""Convert a list of arrow buffers and a schema to an Arrow Table"""
import pyarrow as pa
- return pa.concat_tables(deserialize_table(buffer... | {"golden_diff": "diff --git a/distributed/shuffle/_arrow.py b/distributed/shuffle/_arrow.py\n--- a/distributed/shuffle/_arrow.py\n+++ b/distributed/shuffle/_arrow.py\n@@ -79,7 +79,9 @@\n \"\"\"Convert a list of arrow buffers and a schema to an Arrow Table\"\"\"\n import pyarrow as pa\n \n- return pa.concat_t... |
gh_patches_debug_975 | rasdani/github-patches | git_diff | scikit-hep__pyhf-372 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update tensorflow-probability to the next release that includes continuous approximations
# Description
This is a follow up to #302. As the bug is fixed in upstream tensorflow-probability, we just need to ... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -12,8 +12,8 @@
extras_require = {
'tensorflow': [
- 'tensorflow<1.12.0,>=1.10.0',
- 'tensorflow-probability==0.3.0',
+ 'tensorflow>=1.12.0',
+ 'tensorflow-probability>=0.5.0',
'numpy<=1.14.5,>=1.14.0', # Lowe... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -12,8 +12,8 @@\n \n extras_require = {\n 'tensorflow': [\n- 'tensorflow<1.12.0,>=1.10.0',\n- 'tensorflow-probability==0.3.0',\n+ 'tensorflow>=1.12.0',\n+ 'tensorflow-probability>=0.5.0',\n 'nump... |
gh_patches_debug_976 | rasdani/github-patches | git_diff | scrapy__scrapy-1278 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
scrapy logging show UnicodeDecodeError
hello,all, I use scrapy 1.00rc1 from pip ,my pc is win7x64,python is 2.7.9(x64),
when I start my project
``` python
scrapy crawl imzx
Traceback (most recent call last)... | diff --git a/scrapy/settings/default_settings.py b/scrapy/settings/default_settings.py
--- a/scrapy/settings/default_settings.py
+++ b/scrapy/settings/default_settings.py
@@ -168,7 +168,7 @@
LOG_ENCODING = 'utf-8'
LOG_FORMATTER = 'scrapy.logformatter.LogFormatter'
LOG_FORMAT = '%(asctime)s [%(name)s] %(levelname)s: ... | {"golden_diff": "diff --git a/scrapy/settings/default_settings.py b/scrapy/settings/default_settings.py\n--- a/scrapy/settings/default_settings.py\n+++ b/scrapy/settings/default_settings.py\n@@ -168,7 +168,7 @@\n LOG_ENCODING = 'utf-8'\n LOG_FORMATTER = 'scrapy.logformatter.LogFormatter'\n LOG_FORMAT = '%(asctime)s [%(... |
gh_patches_debug_977 | rasdani/github-patches | git_diff | ocadotechnology__aimmo-218 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Socket error: address already in use
When running AI:MMO locally, as soon as the main page is loaded, the following error appears in the console. It looks like two workers try to connect to the same port. Aft... | diff --git a/aimmo-game/simulation/worker_manager.py b/aimmo-game/simulation/worker_manager.py
--- a/aimmo-game/simulation/worker_manager.py
+++ b/aimmo-game/simulation/worker_manager.py
@@ -173,7 +173,7 @@
def __init__(self, *args, **kwargs):
self.workers = {}
- self.port_counter = itertools.cou... | {"golden_diff": "diff --git a/aimmo-game/simulation/worker_manager.py b/aimmo-game/simulation/worker_manager.py\n--- a/aimmo-game/simulation/worker_manager.py\n+++ b/aimmo-game/simulation/worker_manager.py\n@@ -173,7 +173,7 @@\n \n def __init__(self, *args, **kwargs):\n self.workers = {}\n- self.port... |
gh_patches_debug_978 | rasdani/github-patches | git_diff | mozilla__bugbug-3799 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Prepare to use the latest version of scikit-learn
Currently, when upgrading to the latest version of scikit-learn, training of some models takes long and in particular cases hangs. Investigating and resolving... | diff --git a/bugbug/utils.py b/bugbug/utils.py
--- a/bugbug/utils.py
+++ b/bugbug/utils.py
@@ -71,8 +71,8 @@
class StructuredColumnTransformer(ColumnTransformer):
- def _hstack(self, Xs):
- result = super()._hstack(Xs)
+ def _hstack(self, Xs, n_samples):
+ result = super()._hstack(Xs, n_samples... | {"golden_diff": "diff --git a/bugbug/utils.py b/bugbug/utils.py\n--- a/bugbug/utils.py\n+++ b/bugbug/utils.py\n@@ -71,8 +71,8 @@\n \n \n class StructuredColumnTransformer(ColumnTransformer):\n- def _hstack(self, Xs):\n- result = super()._hstack(Xs)\n+ def _hstack(self, Xs, n_samples):\n+ result = su... |
gh_patches_debug_979 | rasdani/github-patches | git_diff | beetbox__beets-4839 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`test_embedart.py`: `EmbedartCliTest.test_accept_similar_art` fails
### Problem
Here on NixOS, we continuously rebuild all packages that their dependencies have been changed. Recently, `beets` have been fa... | diff --git a/beets/util/artresizer.py b/beets/util/artresizer.py
--- a/beets/util/artresizer.py
+++ b/beets/util/artresizer.py
@@ -256,6 +256,7 @@
'-colorspace', 'gray', 'MIFF:-'
]
compare_cmd = self.compare_cmd + [
+ '-define', 'phash:colorspaces=sRGB,HCLp',
'-met... | {"golden_diff": "diff --git a/beets/util/artresizer.py b/beets/util/artresizer.py\n--- a/beets/util/artresizer.py\n+++ b/beets/util/artresizer.py\n@@ -256,6 +256,7 @@\n '-colorspace', 'gray', 'MIFF:-'\n ]\n compare_cmd = self.compare_cmd + [\n+ '-define', 'phash:colorspaces=sRGB,H... |
gh_patches_debug_980 | rasdani/github-patches | git_diff | pypa__pip-7056 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add a documentation string to pip._internal.network.auth
Follow up to #7045
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN ... | diff --git a/src/pip/_internal/network/__init__.py b/src/pip/_internal/network/__init__.py
--- a/src/pip/_internal/network/__init__.py
+++ b/src/pip/_internal/network/__init__.py
@@ -0,0 +1,2 @@
+"""Contains purely network-related utilities.
+"""
diff --git a/src/pip/_internal/network/auth.py b/src/pip/_internal/networ... | {"golden_diff": "diff --git a/src/pip/_internal/network/__init__.py b/src/pip/_internal/network/__init__.py\n--- a/src/pip/_internal/network/__init__.py\n+++ b/src/pip/_internal/network/__init__.py\n@@ -0,0 +1,2 @@\n+\"\"\"Contains purely network-related utilities.\n+\"\"\"\ndiff --git a/src/pip/_internal/network/auth.... |
gh_patches_debug_981 | rasdani/github-patches | git_diff | falconry__falcon-505 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Make "bytes" prefix in Range header value required
Currently, range header values without a "bytes" prefix are allowed. Change the code to always require a "bytes" prefix.
--- END ISSUE ---
Below are some ... | diff --git a/falcon/request.py b/falcon/request.py
--- a/falcon/request.py
+++ b/falcon/request.py
@@ -343,6 +343,9 @@
value = self.env['HTTP_RANGE']
if value.startswith('bytes='):
value = value[6:]
+ else:
+ msg = "The value must be prefixed with 'by... | {"golden_diff": "diff --git a/falcon/request.py b/falcon/request.py\n--- a/falcon/request.py\n+++ b/falcon/request.py\n@@ -343,6 +343,9 @@\n value = self.env['HTTP_RANGE']\n if value.startswith('bytes='):\n value = value[6:]\n+ else:\n+ msg = \"The value... |
gh_patches_debug_982 | rasdani/github-patches | git_diff | open-telemetry__opentelemetry-python-contrib-499 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Tornado instrumentation closes spans before on_finish is completed.
Ideally all trace spans in a request response cycle should be contained in one span. However because the tornado instrumentation library clo... | diff --git a/instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/__init__.py b/instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/__init__.py
--- a/instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumenta... | {"golden_diff": "diff --git a/instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/__init__.py b/instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/__init__.py\n--- a/instrumentation/opentelemetry-instrumentation-tornado/src/opentel... |
gh_patches_debug_983 | rasdani/github-patches | git_diff | pytorch__TensorRT-870 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
✨[Feature] Support aten::Int.Tensor(Tensor a) -> (int)
**Is your feature request related to a problem? Please describe.**
<!--A clear and concise description of what the problem is. Ex. I'm always frustrated... | diff --git a/noxfile.py b/noxfile.py
--- a/noxfile.py
+++ b/noxfile.py
@@ -18,7 +18,7 @@
def download_models(session, use_host_env=False):
print("Downloading test models")
- session.install('timm')
+ session.install("-r", os.path.join(TOP_DIR, "tests", "modules", "requirements.txt"))
print(TOP_DIR)
... | {"golden_diff": "diff --git a/noxfile.py b/noxfile.py\n--- a/noxfile.py\n+++ b/noxfile.py\n@@ -18,7 +18,7 @@\n \n def download_models(session, use_host_env=False):\n print(\"Downloading test models\")\n- session.install('timm')\n+ session.install(\"-r\", os.path.join(TOP_DIR, \"tests\", \"modules\", \"require... |
gh_patches_debug_984 | rasdani/github-patches | git_diff | yt-dlp__yt-dlp-1495 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
vk.com: Unable to login, incorrect username and/or password
### Checklist
- [X] I'm reporting a broken site
- [X] I've verified that I'm running yt-dlp version **2021.10.22**. ([update instructions](https://... | diff --git a/yt_dlp/extractor/vk.py b/yt_dlp/extractor/vk.py
--- a/yt_dlp/extractor/vk.py
+++ b/yt_dlp/extractor/vk.py
@@ -51,7 +51,7 @@
self._apply_first_set_cookie_header(url_handle, 'remixlhk')
login_page = self._download_webpage(
- 'https://login.vk.com/?act=login', None,
+ ... | {"golden_diff": "diff --git a/yt_dlp/extractor/vk.py b/yt_dlp/extractor/vk.py\n--- a/yt_dlp/extractor/vk.py\n+++ b/yt_dlp/extractor/vk.py\n@@ -51,7 +51,7 @@\n self._apply_first_set_cookie_header(url_handle, 'remixlhk')\n \n login_page = self._download_webpage(\n- 'https://login.vk.com/?act=lo... |
gh_patches_debug_985 | rasdani/github-patches | git_diff | optuna__optuna-3237 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Drop version constraint of Sphinx
<!-- Please write a clear and concise description of the feature proposal. -->
## Motivation
Since sphinx v4.0.0, CIs failed to build the document. #2657 tries to resol... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -71,9 +71,7 @@
"mlflow",
],
"document": [
- # TODO(nzw): Remove the version constraint after resolving the issue
- # https://github.com/optuna/optuna/issues/2658.
- "sphinx<4.0.0",
+ ... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -71,9 +71,7 @@\n \"mlflow\",\n ],\n \"document\": [\n- # TODO(nzw): Remove the version constraint after resolving the issue\n- # https://github.com/optuna/optuna/issues/2658.\n- ... |
gh_patches_debug_986 | rasdani/github-patches | git_diff | Textualize__textual-4335 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
The `Input` suggester should only show suggestions if an active edit is happening
Somewhat following on from #3806, I feel that the suggester API for `Input` is a wee bit too eager to make a suggestion. Consi... | diff --git a/src/textual/widgets/_input.py b/src/textual/widgets/_input.py
--- a/src/textual/widgets/_input.py
+++ b/src/textual/widgets/_input.py
@@ -519,6 +519,7 @@
if self.cursor_blink:
self._blink_timer.resume()
self.app.cursor_position = self.cursor_screen_offset
+ self._sugge... | {"golden_diff": "diff --git a/src/textual/widgets/_input.py b/src/textual/widgets/_input.py\n--- a/src/textual/widgets/_input.py\n+++ b/src/textual/widgets/_input.py\n@@ -519,6 +519,7 @@\n if self.cursor_blink:\n self._blink_timer.resume()\n self.app.cursor_position = self.cursor_screen_offs... |
gh_patches_debug_987 | rasdani/github-patches | git_diff | beeware__toga-1499 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Window is always resizable, minimizable and closeable on windows
**Describe the bug**
Window seems to ignore `resizable`, `minimizable` and `closeable` args on OS Windows: if they're set to `False`, window s... | diff --git a/src/winforms/toga_winforms/window.py b/src/winforms/toga_winforms/window.py
--- a/src/winforms/toga_winforms/window.py
+++ b/src/winforms/toga_winforms/window.py
@@ -48,6 +48,8 @@
self.native.interface = self.interface
self.native.FormClosing += self.winforms_FormClosing
+ self.n... | {"golden_diff": "diff --git a/src/winforms/toga_winforms/window.py b/src/winforms/toga_winforms/window.py\n--- a/src/winforms/toga_winforms/window.py\n+++ b/src/winforms/toga_winforms/window.py\n@@ -48,6 +48,8 @@\n self.native.interface = self.interface\n self.native.FormClosing += self.winforms_FormClo... |
gh_patches_debug_988 | rasdani/github-patches | git_diff | Mailu__Mailu-2563 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
postfix throttling afer a hard shutdown
After a hard shutdown, I noticed that postfix would not restart because of master.pid is found in /queue/pid/master.pid
We should check and remove this file during con... | diff --git a/core/postfix/start.py b/core/postfix/start.py
--- a/core/postfix/start.py
+++ b/core/postfix/start.py
@@ -14,6 +14,8 @@
log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING"))
+os.system("flock -n /queue/pid/master.pid rm /queue/pid/master.pid")
+
def start_podop():
os.s... | {"golden_diff": "diff --git a/core/postfix/start.py b/core/postfix/start.py\n--- a/core/postfix/start.py\n+++ b/core/postfix/start.py\n@@ -14,6 +14,8 @@\n \n log.basicConfig(stream=sys.stderr, level=os.environ.get(\"LOG_LEVEL\", \"WARNING\"))\n \n+os.system(\"flock -n /queue/pid/master.pid rm /queue/pid/master.pid\")\n... |
gh_patches_debug_989 | rasdani/github-patches | git_diff | gpodder__mygpo-546 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Error when trying to run manage.py update-toplist
```
Traceback (most recent call last):
File "manage.py", line 8, in <module>
execute_from_command_line(sys.argv)
File "/home/mike/mygpo/venv/lib/p... | diff --git a/mygpo/directory/management/commands/update-toplist.py b/mygpo/directory/management/commands/update-toplist.py
--- a/mygpo/directory/management/commands/update-toplist.py
+++ b/mygpo/directory/management/commands/update-toplist.py
@@ -24,7 +24,7 @@
silent = options.get("silent")
podcasts... | {"golden_diff": "diff --git a/mygpo/directory/management/commands/update-toplist.py b/mygpo/directory/management/commands/update-toplist.py\n--- a/mygpo/directory/management/commands/update-toplist.py\n+++ b/mygpo/directory/management/commands/update-toplist.py\n@@ -24,7 +24,7 @@\n silent = options.get(\"silent... |
gh_patches_debug_990 | rasdani/github-patches | git_diff | googleapis__google-cloud-python-3282 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Error in NL API, 'Sentiment' object has no attribute 'score'
Upon executing the following code on GCE & locally I'm getting 'score' not found error locally while it works on GCE.
```
def analyze_text(text... | diff --git a/language/google/cloud/language/sentiment.py b/language/google/cloud/language/sentiment.py
--- a/language/google/cloud/language/sentiment.py
+++ b/language/google/cloud/language/sentiment.py
@@ -52,6 +52,6 @@
:rtype: :class:`Sentiment`
:returns: The sentiment parsed from the API representa... | {"golden_diff": "diff --git a/language/google/cloud/language/sentiment.py b/language/google/cloud/language/sentiment.py\n--- a/language/google/cloud/language/sentiment.py\n+++ b/language/google/cloud/language/sentiment.py\n@@ -52,6 +52,6 @@\n :rtype: :class:`Sentiment`\n :returns: The sentiment parsed f... |
gh_patches_debug_991 | rasdani/github-patches | git_diff | buildbot__buildbot-7258 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Rebuilt buildsets lack parent_buildid on the new messages in the Data API
Pretty much what the title says.
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these fil... | diff --git a/master/buildbot/data/buildsets.py b/master/buildbot/data/buildsets.py
--- a/master/buildbot/data/buildsets.py
+++ b/master/buildbot/data/buildsets.py
@@ -173,6 +173,7 @@
"bsid": bsid,
"external_idstring": external_idstring,
"reason": reason,
+ "parent_build... | {"golden_diff": "diff --git a/master/buildbot/data/buildsets.py b/master/buildbot/data/buildsets.py\n--- a/master/buildbot/data/buildsets.py\n+++ b/master/buildbot/data/buildsets.py\n@@ -173,6 +173,7 @@\n \"bsid\": bsid,\n \"external_idstring\": external_idstring,\n \"reason\": reaso... |
gh_patches_debug_992 | rasdani/github-patches | git_diff | sotetsuk__pgx-186 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
pgx v 0.0.9 でimages フォルダがダウンロードされない.
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
``... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -10,6 +10,8 @@
author_email="sotetsu.koyamada@gmail.com",
keywords="",
packages=find_packages(),
+ package_data={'': ['LICENSE', '*.svg']},
+ include_package_data=True,
install_requires=["jax", "flax", "svgwrite"],
classifi... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -10,6 +10,8 @@\n author_email=\"sotetsu.koyamada@gmail.com\",\n keywords=\"\",\n packages=find_packages(),\n+ package_data={'': ['LICENSE', '*.svg']},\n+ include_package_data=True,\n install_requires=[\"jax\", \"... |
gh_patches_debug_993 | rasdani/github-patches | git_diff | fedora-infra__bodhi-4220 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bodhi doesn't correctly mark updates as critpath updates for Rawhide
Rawhide updates are never identified as critpath updates:
https://bodhi.fedoraproject.org/updates/FEDORA-2021-c8f0463820
https://bodhi.fe... | diff --git a/bodhi/server/consumers/automatic_updates.py b/bodhi/server/consumers/automatic_updates.py
--- a/bodhi/server/consumers/automatic_updates.py
+++ b/bodhi/server/consumers/automatic_updates.py
@@ -185,6 +185,7 @@
autokarma=False,
user=user,
status=UpdateStatu... | {"golden_diff": "diff --git a/bodhi/server/consumers/automatic_updates.py b/bodhi/server/consumers/automatic_updates.py\n--- a/bodhi/server/consumers/automatic_updates.py\n+++ b/bodhi/server/consumers/automatic_updates.py\n@@ -185,6 +185,7 @@\n autokarma=False,\n user=user,\n ... |
gh_patches_debug_994 | rasdani/github-patches | git_diff | huggingface__diffusers-1795 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
OOM when using PyTorch, if Flax/JAX are installed
Bisected to f106ab4
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ... | diff --git a/src/diffusers/schedulers/scheduling_ddpm_flax.py b/src/diffusers/schedulers/scheduling_ddpm_flax.py
--- a/src/diffusers/schedulers/scheduling_ddpm_flax.py
+++ b/src/diffusers/schedulers/scheduling_ddpm_flax.py
@@ -208,7 +208,7 @@
model_output: jnp.ndarray,
timestep: int,
sample: ... | {"golden_diff": "diff --git a/src/diffusers/schedulers/scheduling_ddpm_flax.py b/src/diffusers/schedulers/scheduling_ddpm_flax.py\n--- a/src/diffusers/schedulers/scheduling_ddpm_flax.py\n+++ b/src/diffusers/schedulers/scheduling_ddpm_flax.py\n@@ -208,7 +208,7 @@\n model_output: jnp.ndarray,\n timestep: ... |
gh_patches_debug_995 | rasdani/github-patches | git_diff | conan-io__conan-4965 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
tar_extract is affected by symlinks in current directory
If a current directory has a symlink with the name matching a directory in the installed conan_package.tgz, then the directory is not extracted to the ... | diff --git a/conans/util/files.py b/conans/util/files.py
--- a/conans/util/files.py
+++ b/conans/util/files.py
@@ -298,7 +298,7 @@
return not realpath(abspath(joinpath(base, path))).startswith(base)
def safemembers(members):
- base = realpath(abspath("."))
+ base = realpath(abspath(destina... | {"golden_diff": "diff --git a/conans/util/files.py b/conans/util/files.py\n--- a/conans/util/files.py\n+++ b/conans/util/files.py\n@@ -298,7 +298,7 @@\n return not realpath(abspath(joinpath(base, path))).startswith(base)\n \n def safemembers(members):\n- base = realpath(abspath(\".\"))\n+ base... |
gh_patches_debug_996 | rasdani/github-patches | git_diff | mkdocs__mkdocs-2710 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
` SubConfig` ignore configuration failures
While developing [mkdocs-gallery]() I found out that the `SubConfig` class does not retrieve the failures and warnings from the nested options.
This is because `r... | diff --git a/mkdocs/config/config_options.py b/mkdocs/config/config_options.py
--- a/mkdocs/config/config_options.py
+++ b/mkdocs/config/config_options.py
@@ -59,7 +59,12 @@
return self.run_validation(value)
def run_validation(self, value):
- Config.validate(self)
+ failed, self.warnings =... | {"golden_diff": "diff --git a/mkdocs/config/config_options.py b/mkdocs/config/config_options.py\n--- a/mkdocs/config/config_options.py\n+++ b/mkdocs/config/config_options.py\n@@ -59,7 +59,12 @@\n return self.run_validation(value)\n \n def run_validation(self, value):\n- Config.validate(self)\n+ ... |
gh_patches_debug_997 | rasdani/github-patches | git_diff | searx__searx-801 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Tags <xml> are hidden from result titles
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `searx/engines/xpa... | diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py
--- a/searx/engines/xpath.py
+++ b/searx/engines/xpath.py
@@ -42,7 +42,9 @@
return ''.join(xpath_results)
else:
# it's a element
- return html_to_text(xpath_results.text_content()).strip()
+ text = html.tostring(xpath_resu... | {"golden_diff": "diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py\n--- a/searx/engines/xpath.py\n+++ b/searx/engines/xpath.py\n@@ -42,7 +42,9 @@\n return ''.join(xpath_results)\n else:\n # it's a element\n- return html_to_text(xpath_results.text_content()).strip()\n+ text =... |
gh_patches_debug_998 | rasdani/github-patches | git_diff | bridgecrewio__checkov-4994 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Tests folder published in version 2.3.201
The wheel of version 2.3.201 contains the tests folder and pollutes the site-packages even though setup.py excludes it explicitly.
--- END ISSUE ---
Below are some ... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -123,8 +123,9 @@
url="https://github.com/bridgecrewio/checkov",
packages=find_packages(exclude=[
"dogfood_tests*",
+ "flake8_plugins*",
"integration_tests*",
- "performance_tests*"
+ "performance_tests*",
... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -123,8 +123,9 @@\n url=\"https://github.com/bridgecrewio/checkov\",\n packages=find_packages(exclude=[\n \"dogfood_tests*\",\n+ \"flake8_plugins*\",\n \"integration_tests*\",\n- \"performance_test... |
gh_patches_debug_999 | rasdani/github-patches | git_diff | DDMAL__CantusDB-274 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Assign a specific user to multiple sources in Django admin
In the user-edit page in the Django admin interface, we already have a selector that allows for multi-selecting sources and assigning the user to the... | diff --git a/django/cantusdb_project/main_app/models/source.py b/django/cantusdb_project/main_app/models/source.py
--- a/django/cantusdb_project/main_app/models/source.py
+++ b/django/cantusdb_project/main_app/models/source.py
@@ -106,7 +106,7 @@
return self.chant_set.filter(volpiano__isnull=False).count()
... | {"golden_diff": "diff --git a/django/cantusdb_project/main_app/models/source.py b/django/cantusdb_project/main_app/models/source.py\n--- a/django/cantusdb_project/main_app/models/source.py\n+++ b/django/cantusdb_project/main_app/models/source.py\n@@ -106,7 +106,7 @@\n return self.chant_set.filter(volpiano__isnu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.