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_100 | rasdani/github-patches | git_diff | feast-dev__feast-3501 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Greate Expectations version a bit outdated
## Expected Behavior
GX version works well with >=0.15.41
## Current Behavior
It got pinned between 0.14 and 0.15
### Specifications
- Version: 0.29.0
... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -127,7 +127,7 @@
"cassandra-driver>=3.24.0,<4",
]
-GE_REQUIRED = ["great_expectations>=0.14.0,<0.15.0"]
+GE_REQUIRED = ["great_expectations>=0.15.41,<0.16.0"]
GO_REQUIRED = [
"cffi~=1.15.0",
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -127,7 +127,7 @@\n \"cassandra-driver>=3.24.0,<4\",\n ]\n \n-GE_REQUIRED = [\"great_expectations>=0.14.0,<0.15.0\"]\n+GE_REQUIRED = [\"great_expectations>=0.15.41,<0.16.0\"]\n \n GO_REQUIRED = [\n \"cffi~=1.15.0\",\n", "issue"... |
gh_patches_debug_101 | rasdani/github-patches | git_diff | CiviWiki__OpenCiviWiki-1042 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
{FEAT}: Automated testing with actions.
### Idea summary
Usage of GitHub actions.
### Further details
We can use GitHub Actions to check/test the code that is being pushed upstream via PRs and it can be te... | diff --git a/project/accounts/models.py b/project/accounts/models.py
--- a/project/accounts/models.py
+++ b/project/accounts/models.py
@@ -9,7 +9,7 @@
from taggit.managers import TaggableManager
-from api.models.category import Category
+from api.models import Category
from common.utils import PathAndRename
| {"golden_diff": "diff --git a/project/accounts/models.py b/project/accounts/models.py\n--- a/project/accounts/models.py\n+++ b/project/accounts/models.py\n@@ -9,7 +9,7 @@\n \n from taggit.managers import TaggableManager\n \n-from api.models.category import Category\n+from api.models import Category\n from common.utils ... |
gh_patches_debug_102 | rasdani/github-patches | git_diff | python-discord__site-1232 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Show font awesome icons in development
<details><summary> Old issue description</summary>
The site uses premium icons, but not all icons we use are premium.
Sometimes it is helpful for us to get a sense... | diff --git a/pydis_site/settings.py b/pydis_site/settings.py
--- a/pydis_site/settings.py
+++ b/pydis_site/settings.py
@@ -369,7 +369,6 @@
"bulma-dropdown",
"bulma-navbar-burger",
],
- "fontawesome_token": "ff22cb6f41",
}
# Information about site repository
| {"golden_diff": "diff --git a/pydis_site/settings.py b/pydis_site/settings.py\n--- a/pydis_site/settings.py\n+++ b/pydis_site/settings.py\n@@ -369,7 +369,6 @@\n \"bulma-dropdown\",\n \"bulma-navbar-burger\",\n ],\n- \"fontawesome_token\": \"ff22cb6f41\",\n }\n \n # Information about site reposito... |
gh_patches_debug_103 | rasdani/github-patches | git_diff | cisagov__manage.get.gov-114 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Setup new cloud.gov prototyping org
We recently signed an agreement for a more robust prototyping org with cloud.gov that will give us the ability to have multiple spaces and invite members from DHS.
- [ ] ... | diff --git a/src/registrar/config/settings.py b/src/registrar/config/settings.py
--- a/src/registrar/config/settings.py
+++ b/src/registrar/config/settings.py
@@ -388,6 +388,7 @@
# web server configurations.
ALLOWED_HOSTS = [
"getgov-unstable.app.cloud.gov",
+ "getgov-staging.app.cloud.gov",
"get.gov",
... | {"golden_diff": "diff --git a/src/registrar/config/settings.py b/src/registrar/config/settings.py\n--- a/src/registrar/config/settings.py\n+++ b/src/registrar/config/settings.py\n@@ -388,6 +388,7 @@\n # web server configurations.\n ALLOWED_HOSTS = [\n \"getgov-unstable.app.cloud.gov\",\n+ \"getgov-staging.app.cl... |
gh_patches_debug_104 | rasdani/github-patches | git_diff | NVIDIA__NVFlare-314 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Server admin port still vulnerable to DOS
There are 128 connections allowed where each is limited to 512mb, this leaves 64GB of memory that can be acquired by a mal actor.
There is also still the issue wh... | diff --git a/nvflare/fuel/hci/server/hci.py b/nvflare/fuel/hci/server/hci.py
--- a/nvflare/fuel/hci/server/hci.py
+++ b/nvflare/fuel/hci/server/hci.py
@@ -23,7 +23,7 @@
from .reg import ServerCommandRegister
-MAX_ADMIN_CONNECTIONS = 128
+MAX_ADMIN_CONNECTIONS = 16
class _MsgHandler(socketserver.BaseRequestHan... | {"golden_diff": "diff --git a/nvflare/fuel/hci/server/hci.py b/nvflare/fuel/hci/server/hci.py\n--- a/nvflare/fuel/hci/server/hci.py\n+++ b/nvflare/fuel/hci/server/hci.py\n@@ -23,7 +23,7 @@\n \n from .reg import ServerCommandRegister\n \n-MAX_ADMIN_CONNECTIONS = 128\n+MAX_ADMIN_CONNECTIONS = 16\n \n \n class _MsgHandler... |
gh_patches_debug_105 | rasdani/github-patches | git_diff | Netflix__lemur-924 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Missing 'default' rotation policy
When trying to create a certificate, the error message is displayed:
`{"_schema":"Unable to find <class 'lemur.policies.models.RotationPolicy'> with name: default"}`
--- ... | diff --git a/lemur/manage.py b/lemur/manage.py
--- a/lemur/manage.py
+++ b/lemur/manage.py
@@ -251,7 +251,7 @@
days=days
))
- policy_service.create(days=days)
+ policy_service.create(days=days, name='default')
sys.stdout.write("[/] Done!\n")
| {"golden_diff": "diff --git a/lemur/manage.py b/lemur/manage.py\n--- a/lemur/manage.py\n+++ b/lemur/manage.py\n@@ -251,7 +251,7 @@\n days=days\n ))\n \n- policy_service.create(days=days)\n+ policy_service.create(days=days, name='default')\n sys.stdout.write(\"[/] Done!\\n\")\n"... |
gh_patches_debug_106 | rasdani/github-patches | git_diff | meltano__meltano-6488 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Support Node v16
Currently building the Meltano UI with Node 16 results in a crash while building libsass. [That library is deprecated](https://sass-lang.com/blog/libsass-is-deprecated), so we should switch t... | diff --git a/scripts/alembic_freeze.py b/scripts/alembic_freeze.py
--- a/scripts/alembic_freeze.py
+++ b/scripts/alembic_freeze.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
-"""Script to freeze the Meltano database - executed by the Makefile."""
+"""Script to freeze the Meltano database - executed by GitHub CI."""
f... | {"golden_diff": "diff --git a/scripts/alembic_freeze.py b/scripts/alembic_freeze.py\n--- a/scripts/alembic_freeze.py\n+++ b/scripts/alembic_freeze.py\n@@ -1,6 +1,6 @@\n #!/usr/bin/env python3\n \n-\"\"\"Script to freeze the Meltano database - executed by the Makefile.\"\"\"\n+\"\"\"Script to freeze the Meltano database... |
gh_patches_debug_107 | rasdani/github-patches | git_diff | conda__conda-3931 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Regression: cannot install from explicit conda package filenames
This command used to work, but now it gives the following error/traceback:
Example: `conda install bzip2-1.0.6-vc14_3.tar.bz2 --dry-run`
... | diff --git a/conda/common/url.py b/conda/common/url.py
--- a/conda/common/url.py
+++ b/conda/common/url.py
@@ -68,6 +68,8 @@
def is_url(url):
+ if not url:
+ return False
try:
p = urlparse(url)
return p.netloc is not None or p.scheme == "file"
| {"golden_diff": "diff --git a/conda/common/url.py b/conda/common/url.py\n--- a/conda/common/url.py\n+++ b/conda/common/url.py\n@@ -68,6 +68,8 @@\n \n \n def is_url(url):\n+ if not url:\n+ return False\n try:\n p = urlparse(url)\n return p.netloc is not None or p.scheme == \"file\"\n", "iss... |
gh_patches_debug_108 | rasdani/github-patches | git_diff | acl-org__acl-anthology-724 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
I08-2 front matter links to whole PDF
The link from here https://www.aclweb.org/anthology/events/ijcnlp-2008/ that is normally the front matter for volume 2 links instead to the full PDF for all of volume 2.
... | diff --git a/bin/anthology/papers.py b/bin/anthology/papers.py
--- a/bin/anthology/papers.py
+++ b/bin/anthology/papers.py
@@ -54,6 +54,7 @@
"venues",
"meta_date",
"url",
+ "pdf",
):
continue
| {"golden_diff": "diff --git a/bin/anthology/papers.py b/bin/anthology/papers.py\n--- a/bin/anthology/papers.py\n+++ b/bin/anthology/papers.py\n@@ -54,6 +54,7 @@\n \"venues\",\n \"meta_date\",\n \"url\",\n+ \"pdf\",\n ):\n continu... |
gh_patches_debug_109 | rasdani/github-patches | git_diff | graphql-python__graphene-django-639 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
GraphiQL to version v0.11.11?
Proposal to move to GraphiQL v0.11.11 to solve a markdown issue in the documentation:
cfr. https://github.com/graphql/graphiql/issues/575
Scanning over the code, the main dif... | diff --git a/graphene_django/views.py b/graphene_django/views.py
--- a/graphene_django/views.py
+++ b/graphene_django/views.py
@@ -51,7 +51,7 @@
class GraphQLView(View):
- graphiql_version = "0.11.10"
+ graphiql_version = "0.11.11"
graphiql_template = "graphene/graphiql.html"
schema = None
| {"golden_diff": "diff --git a/graphene_django/views.py b/graphene_django/views.py\n--- a/graphene_django/views.py\n+++ b/graphene_django/views.py\n@@ -51,7 +51,7 @@\n \n \n class GraphQLView(View):\n- graphiql_version = \"0.11.10\"\n+ graphiql_version = \"0.11.11\"\n graphiql_template = \"graphene/graphiql.ht... |
gh_patches_debug_110 | rasdani/github-patches | git_diff | localstack__localstack-1842 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Elasticsearch domain managed by Terraform cannot be updated; request for /tags/? returns 404
<!-- Love localstack? Please consider supporting our collective:
👉 https://opencollective.com/localstack/donate ... | diff --git a/localstack/services/es/es_api.py b/localstack/services/es/es_api.py
--- a/localstack/services/es/es_api.py
+++ b/localstack/services/es/es_api.py
@@ -14,6 +14,7 @@
ES_DOMAINS = {}
app = Flask(APP_NAME)
+app.url_map.strict_slashes = False
def error_response(error_type, code=400, message='Unknown er... | {"golden_diff": "diff --git a/localstack/services/es/es_api.py b/localstack/services/es/es_api.py\n--- a/localstack/services/es/es_api.py\n+++ b/localstack/services/es/es_api.py\n@@ -14,6 +14,7 @@\n ES_DOMAINS = {}\n \n app = Flask(APP_NAME)\n+app.url_map.strict_slashes = False\n \n \n def error_response(error_type, co... |
gh_patches_debug_111 | rasdani/github-patches | git_diff | pymedusa__Medusa-4086 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[APP SUBMITTED]: AttributeError: 'module' object has no attribute 'core'
### INFO
**Python Version**: `2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]`
**Operating System**: ... | diff --git a/medusa/notifiers/growl.py b/medusa/notifiers/growl.py
--- a/medusa/notifiers/growl.py
+++ b/medusa/notifiers/growl.py
@@ -7,7 +7,7 @@
import socket
from builtins import object
-import gntp
+import gntp.core
from medusa import app, common
from medusa.helper.exceptions import ex
| {"golden_diff": "diff --git a/medusa/notifiers/growl.py b/medusa/notifiers/growl.py\n--- a/medusa/notifiers/growl.py\n+++ b/medusa/notifiers/growl.py\n@@ -7,7 +7,7 @@\n import socket\n from builtins import object\n \n-import gntp\n+import gntp.core\n \n from medusa import app, common\n from medusa.helper.exceptions imp... |
gh_patches_debug_112 | rasdani/github-patches | git_diff | encode__httpx-589 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
AttributeError: module 'rfc3986.api' has no attribute 'iri_reference'
Just did a pip install of httpx, and it appeared to meet all the pre-reqs. However, I'd encounter the error in the title.
(python37) ... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,7 @@
"h11==0.8.*",
"h2==3.*",
"idna==2.*",
- "rfc3986==1.*",
+ "rfc3986>=1.3,<2",
"sniffio==1.*",
],
classifiers=[
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -57,7 +57,7 @@\n \"h11==0.8.*\",\n \"h2==3.*\",\n \"idna==2.*\",\n- \"rfc3986==1.*\",\n+ \"rfc3986>=1.3,<2\",\n \"sniffio==1.*\",\n ],\n classifiers=[\n", "issue": "AttributeError:... |
gh_patches_debug_113 | rasdani/github-patches | git_diff | getredash__redash-740 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Alert send Error(AttributeError: 'Organization' object has no attribute 'domain)
Hello.
Alert send Error.
```
01:51:24 worker.1 | [2016-01-07 01:51:24,764: ERROR/MainProcess] Task redash.tasks.check_alerts_... | diff --git a/redash/tasks.py b/redash/tasks.py
--- a/redash/tasks.py
+++ b/redash/tasks.py
@@ -306,8 +306,9 @@
def base_url(org):
- if org.domain:
- return 'https://{}'.format(org.domain)
+ if settings.MULTI_ORG:
+ return "https://{}/{}".format(settings.HOST, org.slug)
+
return settings.HO... | {"golden_diff": "diff --git a/redash/tasks.py b/redash/tasks.py\n--- a/redash/tasks.py\n+++ b/redash/tasks.py\n@@ -306,8 +306,9 @@\n \n \n def base_url(org):\n- if org.domain:\n- return 'https://{}'.format(org.domain)\n+ if settings.MULTI_ORG:\n+ return \"https://{}/{}\".format(settings.HOST, org.sl... |
gh_patches_debug_114 | rasdani/github-patches | git_diff | microsoft__ptvsd-1986 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ptvsd broken on Python 2 if python-future is installed
Issue Type: <b>Bug</b>
After I installed an interpreter of Python 2.7.16 32bit, an exception is thrown with error message below when I want to switch ... | diff --git a/src/ptvsd/common/compat.py b/src/ptvsd/common/compat.py
--- a/src/ptvsd/common/compat.py
+++ b/src/ptvsd/common/compat.py
@@ -15,9 +15,9 @@
try:
- import builtins
+ import __builtin__ as builtins
except ImportError:
- import __builtin__ as builtins # noqa
+ import builtins
try:
u... | {"golden_diff": "diff --git a/src/ptvsd/common/compat.py b/src/ptvsd/common/compat.py\n--- a/src/ptvsd/common/compat.py\n+++ b/src/ptvsd/common/compat.py\n@@ -15,9 +15,9 @@\n \n \n try:\n- import builtins\n+ import __builtin__ as builtins\n except ImportError:\n- import __builtin__ as builtins # noqa\n+ im... |
gh_patches_debug_115 | rasdani/github-patches | git_diff | chainer__chainer-751 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`cupy.array_split` doesn't accept empty indecies
```
>>> x=cupy.array([1])
>>> cupy.array_split(x, [])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/unno/git/chainer/c... | diff --git a/cupy/manipulation/split.py b/cupy/manipulation/split.py
--- a/cupy/manipulation/split.py
+++ b/cupy/manipulation/split.py
@@ -23,6 +23,9 @@
else:
indices = indices_or_sections
+ if len(indices) == 0:
+ return [ary]
+
skip = (slice(None),) * axis
ret = []
i = 0
| {"golden_diff": "diff --git a/cupy/manipulation/split.py b/cupy/manipulation/split.py\n--- a/cupy/manipulation/split.py\n+++ b/cupy/manipulation/split.py\n@@ -23,6 +23,9 @@\n else:\n indices = indices_or_sections\n \n+ if len(indices) == 0:\n+ return [ary]\n+\n skip = (slice(None),) * axis\n ... |
gh_patches_debug_116 | rasdani/github-patches | git_diff | ivy-llc__ivy-13563 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
imag
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `ivy/functional/frontends/torch/pointwise_ops.py`
Cont... | diff --git a/ivy/functional/frontends/torch/pointwise_ops.py b/ivy/functional/frontends/torch/pointwise_ops.py
--- a/ivy/functional/frontends/torch/pointwise_ops.py
+++ b/ivy/functional/frontends/torch/pointwise_ops.py
@@ -487,3 +487,8 @@
@to_ivy_arrays_and_back
def fmod(x1, x2, out=None):
return ivy.fmod(x1, x2... | {"golden_diff": "diff --git a/ivy/functional/frontends/torch/pointwise_ops.py b/ivy/functional/frontends/torch/pointwise_ops.py\n--- a/ivy/functional/frontends/torch/pointwise_ops.py\n+++ b/ivy/functional/frontends/torch/pointwise_ops.py\n@@ -487,3 +487,8 @@\n @to_ivy_arrays_and_back\n def fmod(x1, x2, out=None):\n ... |
gh_patches_debug_117 | rasdani/github-patches | git_diff | larq__larq-80 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add docs on how to define your own quantizer
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `larq/quantize... | diff --git a/larq/quantizers.py b/larq/quantizers.py
--- a/larq/quantizers.py
+++ b/larq/quantizers.py
@@ -64,7 +64,7 @@
@utils.register_keras_custom_object
def magnitude_aware_sign(x):
r"""
- Magnitude-aware sign for birealnet.
+ Magnitude-aware sign for Bi-Real Net.
# Arguments
| {"golden_diff": "diff --git a/larq/quantizers.py b/larq/quantizers.py\n--- a/larq/quantizers.py\n+++ b/larq/quantizers.py\n@@ -64,7 +64,7 @@\n @utils.register_keras_custom_object\n def magnitude_aware_sign(x):\n r\"\"\"\n- Magnitude-aware sign for birealnet.\n+ Magnitude-aware sign for Bi-Real Net.\n \n \n ... |
gh_patches_debug_118 | rasdani/github-patches | git_diff | scverse__scanpy-721 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Give `external` higher billing in the docs?
At the moment external modules are kind of hidden in the docs. I think it'd be worth making them more visible (at least on the same page as everything else). I've b... | diff --git a/scanpy/external/__init__.py b/scanpy/external/__init__.py
--- a/scanpy/external/__init__.py
+++ b/scanpy/external/__init__.py
@@ -19,6 +19,8 @@
import scanpy.external as sce
+If you'd like to see your tool included here, please open a `pull request <https://github.com/theislab/scanpy>`_!
+
Preproc... | {"golden_diff": "diff --git a/scanpy/external/__init__.py b/scanpy/external/__init__.py\n--- a/scanpy/external/__init__.py\n+++ b/scanpy/external/__init__.py\n@@ -19,6 +19,8 @@\n \n import scanpy.external as sce\n \n+If you'd like to see your tool included here, please open a `pull request <https://github.com/theisl... |
gh_patches_debug_119 | rasdani/github-patches | git_diff | Flexget__Flexget-2778 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
new bug in 3.1.85 NameError: name 'partial' is not defined
<!---
Before opening an issue, verify:
- Is this a feature request? Post it on https://feathub.com/Flexget/Flexget
- Is this an issue with webui... | diff --git a/flexget/plugins/clients/transmission.py b/flexget/plugins/clients/transmission.py
--- a/flexget/plugins/clients/transmission.py
+++ b/flexget/plugins/clients/transmission.py
@@ -7,6 +7,7 @@
from time import sleep
from urllib.parse import urlparse
+from functools import partial
from loguru import logge... | {"golden_diff": "diff --git a/flexget/plugins/clients/transmission.py b/flexget/plugins/clients/transmission.py\n--- a/flexget/plugins/clients/transmission.py\n+++ b/flexget/plugins/clients/transmission.py\n@@ -7,6 +7,7 @@\n from time import sleep\n from urllib.parse import urlparse\n \n+from functools import partial\n... |
gh_patches_debug_120 | rasdani/github-patches | git_diff | CTPUG__wafer-111 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Wafer page editing fails on Django 1.8 with ImproperlyConfigured: error
As seen on Travis, and confirmed locally, attempting to edit a page bombs out, ending with
"Specifying both 'fields' and 'form_class' i... | diff --git a/wafer/pages/views.py b/wafer/pages/views.py
--- a/wafer/pages/views.py
+++ b/wafer/pages/views.py
@@ -15,7 +15,6 @@
template_name = 'wafer.pages/page_form.html'
model = Page
form_class = PageForm
- fields = ['name', 'content']
def slug(request, url):
| {"golden_diff": "diff --git a/wafer/pages/views.py b/wafer/pages/views.py\n--- a/wafer/pages/views.py\n+++ b/wafer/pages/views.py\n@@ -15,7 +15,6 @@\n template_name = 'wafer.pages/page_form.html'\n model = Page\n form_class = PageForm\n- fields = ['name', 'content']\n \n \n def slug(request, url):\n", "i... |
gh_patches_debug_121 | rasdani/github-patches | git_diff | dbt-labs__dbt-core-1148 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Support jinja expression statements
## Feature
### Feature description
http://jinja.pocoo.org/docs/2.10/extensions/#expression-statement
Presently, we hack expressions with:
```
{% set _ = my_dict.up... | diff --git a/dbt/clients/jinja.py b/dbt/clients/jinja.py
--- a/dbt/clients/jinja.py
+++ b/dbt/clients/jinja.py
@@ -246,7 +246,7 @@
def get_environment(node=None, capture_macros=False):
args = {
- 'extensions': []
+ 'extensions': ['jinja2.ext.do']
}
if capture_macros:
| {"golden_diff": "diff --git a/dbt/clients/jinja.py b/dbt/clients/jinja.py\n--- a/dbt/clients/jinja.py\n+++ b/dbt/clients/jinja.py\n@@ -246,7 +246,7 @@\n \n def get_environment(node=None, capture_macros=False):\n args = {\n- 'extensions': []\n+ 'extensions': ['jinja2.ext.do']\n }\n \n if captur... |
gh_patches_debug_122 | rasdani/github-patches | git_diff | ranaroussi__yfinance-32 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Usage with Anaconda/iPython?
Hi - thanks for the package, works great.
Question - is it possible to use this on iPython/Anaconda?
Thanks!
--- END ISSUE ---
Below are some code segments, each from a re... | diff --git a/fix_yahoo_finance/__init__.py b/fix_yahoo_finance/__init__.py
--- a/fix_yahoo_finance/__init__.py
+++ b/fix_yahoo_finance/__init__.py
@@ -221,6 +221,7 @@
print("\nThe following tickers failed to download:\n",
', '.join(_FAILED_))
+ _DFS_ = {}
return data
| {"golden_diff": "diff --git a/fix_yahoo_finance/__init__.py b/fix_yahoo_finance/__init__.py\n--- a/fix_yahoo_finance/__init__.py\n+++ b/fix_yahoo_finance/__init__.py\n@@ -221,6 +221,7 @@\n print(\"\\nThe following tickers failed to download:\\n\",\n ', '.join(_FAILED_))\n \n+ _DFS_ = {}\n r... |
gh_patches_debug_123 | rasdani/github-patches | git_diff | ibis-project__ibis-1760 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
MapD str.to_timestamp() : No translation rule for <class 'ibis.expr.operations.StringToTimestamp'>
expr = ibis.literal('20170206').to_timestamp('%Y%m%d')
client.execute(expr)
ibis.common.OperationNotDefi... | diff --git a/ibis/mapd/operations.py b/ibis/mapd/operations.py
--- a/ibis/mapd/operations.py
+++ b/ibis/mapd/operations.py
@@ -783,6 +783,7 @@
ops.StringReplace,
ops.StringJoin,
ops.StringSplit,
+ ops.StringToTimestamp,
ops.Translate,
ops.StringAscii,
ops.LPad,
| {"golden_diff": "diff --git a/ibis/mapd/operations.py b/ibis/mapd/operations.py\n--- a/ibis/mapd/operations.py\n+++ b/ibis/mapd/operations.py\n@@ -783,6 +783,7 @@\n ops.StringReplace,\n ops.StringJoin,\n ops.StringSplit,\n+ ops.StringToTimestamp,\n ops.Translate,\n ops.StringAscii,\n ops.LPad... |
gh_patches_debug_124 | rasdani/github-patches | git_diff | bookwyrm-social__bookwyrm-550 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
About page requires login
**Describe the bug**
Accessing the "About this server" link (https://bookwyrm.social/about) redirects to login
**To Reproduce**
Steps to reproduce the behavior:
1. Go to https:... | diff --git a/bookwyrm/views/landing.py b/bookwyrm/views/landing.py
--- a/bookwyrm/views/landing.py
+++ b/bookwyrm/views/landing.py
@@ -13,7 +13,6 @@
# pylint: disable= no-self-use
-@method_decorator(login_required, name='dispatch')
class About(View):
''' create invites '''
def get(self, request):
| {"golden_diff": "diff --git a/bookwyrm/views/landing.py b/bookwyrm/views/landing.py\n--- a/bookwyrm/views/landing.py\n+++ b/bookwyrm/views/landing.py\n@@ -13,7 +13,6 @@\n \n \n # pylint: disable= no-self-use\n-@method_decorator(login_required, name='dispatch')\n class About(View):\n ''' create invites '''\n def... |
gh_patches_debug_125 | rasdani/github-patches | git_diff | TheAlgorithms__Python-10664 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Improve our test coverage
### Feature description
Many of our existing algorithm files have little to no unit testing. This is problematic because this can easily let bugs slip through. We want some assura... | diff --git a/maths/power_using_recursion.py b/maths/power_using_recursion.py
--- a/maths/power_using_recursion.py
+++ b/maths/power_using_recursion.py
@@ -15,6 +15,8 @@
def power(base: int, exponent: int) -> float:
"""
+ Calculate the power of a base raised to an exponent.
+
>>> power(3, 4)
81
... | {"golden_diff": "diff --git a/maths/power_using_recursion.py b/maths/power_using_recursion.py\n--- a/maths/power_using_recursion.py\n+++ b/maths/power_using_recursion.py\n@@ -15,6 +15,8 @@\n \n def power(base: int, exponent: int) -> float:\n \"\"\"\n+ Calculate the power of a base raised to an exponent.\n+\n ... |
gh_patches_debug_126 | rasdani/github-patches | git_diff | scikit-hep__pyhf-2135 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Matplotlib broken in Pyodide demo in docs
In the docs https://pyhf.readthedocs.io/en/v0.7.0/, the Pyodide example is broken for me:
```pytb
------------------------------------------------------------------... | diff --git a/docs/generate_jupyterlite_iframe.py b/docs/generate_jupyterlite_iframe.py
--- a/docs/generate_jupyterlite_iframe.py
+++ b/docs/generate_jupyterlite_iframe.py
@@ -4,7 +4,7 @@
def main():
code = """\
import piplite
-await piplite.install(["pyhf==0.7.0"])
+await piplite.install(["pyhf==0.7.0", "matplot... | {"golden_diff": "diff --git a/docs/generate_jupyterlite_iframe.py b/docs/generate_jupyterlite_iframe.py\n--- a/docs/generate_jupyterlite_iframe.py\n+++ b/docs/generate_jupyterlite_iframe.py\n@@ -4,7 +4,7 @@\n def main():\n code = \"\"\"\\\n import piplite\n-await piplite.install([\"pyhf==0.7.0\"])\n+await piplite.i... |
gh_patches_debug_127 | rasdani/github-patches | git_diff | beetbox__beets-3159 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
BadFiles plugin crashes beets with latest git master
### Problem
If the `badfiles` plugin is activated, beets crashes when starting an import task.
Running this command in verbose (`-vv`) mode:
```sh... | diff --git a/beetsplug/badfiles.py b/beetsplug/badfiles.py
--- a/beetsplug/badfiles.py
+++ b/beetsplug/badfiles.py
@@ -50,6 +50,7 @@
class BadFiles(BeetsPlugin):
def __init__(self):
+ super(BadFiles, self).__init__()
self.verbose = False
def run_command(self, cmd):
| {"golden_diff": "diff --git a/beetsplug/badfiles.py b/beetsplug/badfiles.py\n--- a/beetsplug/badfiles.py\n+++ b/beetsplug/badfiles.py\n@@ -50,6 +50,7 @@\n \n class BadFiles(BeetsPlugin):\n def __init__(self):\n+ super(BadFiles, self).__init__()\n self.verbose = False\n \n def run_command(self, cm... |
gh_patches_debug_128 | rasdani/github-patches | git_diff | napari__napari-3501 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
In Napari Windows bundle console does not show
## 🐛 Bug
from https://napari.zulipchat.com/#narrow/stream/215289-release/topic/0.2E4.2E12.20bugfix.20release/near/258449904
```
-----------------------------... | diff --git a/bundle.py b/bundle.py
--- a/bundle.py
+++ b/bundle.py
@@ -263,7 +263,9 @@
add_site_packages_to_path()
- if MACOS:
+ if WINDOWS:
+ patch_wxs()
+ elif MACOS:
patch_python_lib_location()
# build
| {"golden_diff": "diff --git a/bundle.py b/bundle.py\n--- a/bundle.py\n+++ b/bundle.py\n@@ -263,7 +263,9 @@\n \n add_site_packages_to_path()\n \n- if MACOS:\n+ if WINDOWS:\n+ patch_wxs()\n+ elif MACOS:\n patch_python_lib_location()\n \n # build\n", "issue": "In... |
gh_patches_debug_129 | rasdani/github-patches | git_diff | jupyterhub__jupyterhub-263 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Single user server launch is broken
I think that #261 broke the launching of the single user server. I am seeing the following errors in the nbgrader tests:
```
Traceback (most recent call last):
File "/Us... | diff --git a/jupyterhub/singleuser.py b/jupyterhub/singleuser.py
--- a/jupyterhub/singleuser.py
+++ b/jupyterhub/singleuser.py
@@ -17,7 +17,7 @@
from tornado import ioloop
from tornado.web import HTTPError
-from traitlets import (
+from IPython.utils.traitlets import (
Integer,
Unicode,
CUnicode,
| {"golden_diff": "diff --git a/jupyterhub/singleuser.py b/jupyterhub/singleuser.py\n--- a/jupyterhub/singleuser.py\n+++ b/jupyterhub/singleuser.py\n@@ -17,7 +17,7 @@\n from tornado import ioloop\n from tornado.web import HTTPError\n \n-from traitlets import (\n+from IPython.utils.traitlets import (\n Integer,\n ... |
gh_patches_debug_130 | rasdani/github-patches | git_diff | d2l-ai__d2l-en-2279 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ModuleNotFoundError when running the official pytorch colab notebook

I can replicate the erro... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -2,10 +2,10 @@
import d2l
requirements = [
- 'ipython>=7.23',
'jupyter',
'numpy',
'matplotlib',
+ 'matplotlib-inline',
'requests',
'pandas',
'gym'
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -2,10 +2,10 @@\n import d2l\n \n requirements = [\n- 'ipython>=7.23',\n 'jupyter',\n 'numpy',\n 'matplotlib',\n+ 'matplotlib-inline',\n 'requests',\n 'pandas',\n 'gym'\n", "issue": "ModuleNotFoundError wh... |
gh_patches_debug_131 | rasdani/github-patches | git_diff | getpelican__pelican-2630 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Pelican binds to 0.0.0.0 instead of 127.0.0.1 when --bind is omitted
### Problem
When starting Pelican like
`$ pelican --listen`
it binds to all network interfaces. However:
```
$ pelican --help
.... | diff --git a/pelican/settings.py b/pelican/settings.py
--- a/pelican/settings.py
+++ b/pelican/settings.py
@@ -170,7 +170,7 @@
'WRITE_SELECTED': [],
'FORMATTED_FIELDS': ['summary'],
'PORT': 8000,
- 'BIND': '',
+ 'BIND': '127.0.0.1',
}
PYGMENTS_RST_OPTIONS = None
| {"golden_diff": "diff --git a/pelican/settings.py b/pelican/settings.py\n--- a/pelican/settings.py\n+++ b/pelican/settings.py\n@@ -170,7 +170,7 @@\n 'WRITE_SELECTED': [],\n 'FORMATTED_FIELDS': ['summary'],\n 'PORT': 8000,\n- 'BIND': '',\n+ 'BIND': '127.0.0.1',\n }\n \n PYGMENTS_RST_OPTIONS = None\n", ... |
gh_patches_debug_132 | rasdani/github-patches | git_diff | spacetelescope__jwql-474 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
API ReadTheDocs failing
It seems as though our webhook to ReadTheDocs is not currently updating the API docs:
[](https://jw... | diff --git a/jwql/utils/utils.py b/jwql/utils/utils.py
--- a/jwql/utils/utils.py
+++ b/jwql/utils/utils.py
@@ -417,7 +417,7 @@
and that the entry is not empty
Parameters
- -------
+ ----------
key : str
The configuration file key to verify
"""
| {"golden_diff": "diff --git a/jwql/utils/utils.py b/jwql/utils/utils.py\n--- a/jwql/utils/utils.py\n+++ b/jwql/utils/utils.py\n@@ -417,7 +417,7 @@\n and that the entry is not empty\n \n Parameters\n- -------\n+ ----------\n key : str\n The configuration file key to verify\n \"\"\"\n", "iss... |
gh_patches_debug_133 | rasdani/github-patches | git_diff | weni-ai__bothub-engine-76 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Next link in pagination broken in production
The links starts with ```https://bothub/```, correct is ```https://bothub.it/```
--- END ISSUE ---
Below are some code segments, each from a relevant file. One o... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@
setup(
name='bothub',
- version='1.7.1',
+ version='1.7.2',
description='bothub',
packages=find_packages(),
install_requires=install_requires,
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -7,7 +7,7 @@\n \n setup(\n name='bothub',\n- version='1.7.1',\n+ version='1.7.2',\n description='bothub',\n packages=find_packages(),\n install_requires=install_requires,\n", "issue": "Next link in pagination bro... |
gh_patches_debug_134 | rasdani/github-patches | git_diff | engnadeau__pybotics-751 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Create a way to add your own arm model[FEATURE]
## User Story
<!-- A clear and concise description of what the problem is.
I want to add my own arm configuration to the list of pre-trained models.
## ... | diff --git a/pybotics/predefined_models.py b/pybotics/predefined_models.py
--- a/pybotics/predefined_models.py
+++ b/pybotics/predefined_models.py
@@ -1,4 +1,8 @@
-"""Predefined robot models."""
+"""Predefined robot models.
+
+These models correspond to the Modified Denavit–Hartenberg parameters:
+https://en.wikipedia.... | {"golden_diff": "diff --git a/pybotics/predefined_models.py b/pybotics/predefined_models.py\n--- a/pybotics/predefined_models.py\n+++ b/pybotics/predefined_models.py\n@@ -1,4 +1,8 @@\n-\"\"\"Predefined robot models.\"\"\"\n+\"\"\"Predefined robot models.\n+\n+These models correspond to the Modified Denavit\u2013Hartenb... |
gh_patches_debug_135 | rasdani/github-patches | git_diff | searx__searx-3091 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Qwant engine QAnon results
**Version of Searx**
1.0.0-297-f2f72575.
**How did you install Searx?**
Docker.
**What happened?**
When Qwant has no results for something, it displays tons of results cont... | diff --git a/searx/engines/qwant.py b/searx/engines/qwant.py
--- a/searx/engines/qwant.py
+++ b/searx/engines/qwant.py
@@ -59,7 +59,7 @@
}
# search-url
-url = 'https://api.qwant.com/v3/search/{keyword}?q={query}&count={count}&offset={offset}'
+url = 'https://api.qwant.com/v3/search/{keyword}?{query}&count={count}&o... | {"golden_diff": "diff --git a/searx/engines/qwant.py b/searx/engines/qwant.py\n--- a/searx/engines/qwant.py\n+++ b/searx/engines/qwant.py\n@@ -59,7 +59,7 @@\n }\n \n # search-url\n-url = 'https://api.qwant.com/v3/search/{keyword}?q={query}&count={count}&offset={offset}'\n+url = 'https://api.qwant.com/v3/search/{keyword... |
gh_patches_debug_136 | rasdani/github-patches | git_diff | litestar-org__litestar-2330 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
StaticFilesConfig and virtual directories
I'm trying to write a ``FileSystemProtocol`` to load files from the package data using [importlib_resources](https://importlib-resources.readthedocs.io/en/latest/usin... | diff --git a/litestar/openapi/spec/enums.py b/litestar/openapi/spec/enums.py
--- a/litestar/openapi/spec/enums.py
+++ b/litestar/openapi/spec/enums.py
@@ -26,6 +26,7 @@
IRI_REFERENCE = "iri-reference" # noqa: PIE796
UUID = "uuid"
REGEX = "regex"
+ BINARY = "binary"
class OpenAPIType(str, Enum):
| {"golden_diff": "diff --git a/litestar/openapi/spec/enums.py b/litestar/openapi/spec/enums.py\n--- a/litestar/openapi/spec/enums.py\n+++ b/litestar/openapi/spec/enums.py\n@@ -26,6 +26,7 @@\n IRI_REFERENCE = \"iri-reference\" # noqa: PIE796\n UUID = \"uuid\"\n REGEX = \"regex\"\n+ BINARY = \"binary\"\n \... |
gh_patches_debug_137 | rasdani/github-patches | git_diff | conda-forge__conda-smithy-1727 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Python 3 regression: Undefined Jinja2 variables get rendered as empty string in linting
### Solution to issue cannot be found in the documentation.
- [X] I checked the documentation.
### Issue
For linting,... | diff --git a/conda_smithy/utils.py b/conda_smithy/utils.py
--- a/conda_smithy/utils.py
+++ b/conda_smithy/utils.py
@@ -61,7 +61,7 @@
class NullUndefined(jinja2.Undefined):
- def __unicode__(self):
+ def __str__(self):
return self._undefined_name
def __getattr__(self, name):
| {"golden_diff": "diff --git a/conda_smithy/utils.py b/conda_smithy/utils.py\n--- a/conda_smithy/utils.py\n+++ b/conda_smithy/utils.py\n@@ -61,7 +61,7 @@\n \n \n class NullUndefined(jinja2.Undefined):\n- def __unicode__(self):\n+ def __str__(self):\n return self._undefined_name\n \n def __getattr__(sel... |
gh_patches_debug_138 | rasdani/github-patches | git_diff | ydataai__ydata-profiling-80 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
This call to matplotlib.use() has no effect because the backend has already
/home/flash1/work/software/python/anaconda2/lib/python2.7/site-packages/pandas_profiling/base.py:20: UserWarning:
This call to mat... | diff --git a/pandas_profiling/base.py b/pandas_profiling/base.py
--- a/pandas_profiling/base.py
+++ b/pandas_profiling/base.py
@@ -17,7 +17,8 @@
import base64
import matplotlib
-matplotlib.use('Agg')
+# Fix #68, this call is not needed and brings side effects in some use cases
+# matplotlib.use('Agg')
import num... | {"golden_diff": "diff --git a/pandas_profiling/base.py b/pandas_profiling/base.py\n--- a/pandas_profiling/base.py\n+++ b/pandas_profiling/base.py\n@@ -17,7 +17,8 @@\n import base64\n \n import matplotlib\n-matplotlib.use('Agg')\n+# Fix #68, this call is not needed and brings side effects in some use cases\n+# matplotli... |
gh_patches_debug_139 | rasdani/github-patches | git_diff | hedyorg__hedy-214 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add Italian translations
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `app.py`
Content:
```
1 # coding=u... | diff --git a/app.py b/app.py
--- a/app.py
+++ b/app.py
@@ -34,6 +34,7 @@
'fr': 'Français',
'pt_br': 'Português',
'de': 'Deutsch',
+ 'it': 'Italiano'
}
LEVEL_DEFAULTS = collections.defaultdict(courses.NoSuchDefaults)
| {"golden_diff": "diff --git a/app.py b/app.py\n--- a/app.py\n+++ b/app.py\n@@ -34,6 +34,7 @@\n 'fr': 'Fran\u00e7ais',\n 'pt_br': 'Portugu\u00eas',\n 'de': 'Deutsch',\n+ 'it': 'Italiano'\n }\n \n LEVEL_DEFAULTS = collections.defaultdict(courses.NoSuchDefaults)\n", "issue": "Add Italian translations\n\n", ... |
gh_patches_debug_140 | rasdani/github-patches | git_diff | doccano__doccano-1280 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ModuleNotFoundError: No module named 'dj_rest_auth'
<!-- Before submitting an issue, make sure to check the docs and closed issues and FAQ to see if any of the solutions work for you. https://github.com/docca... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,8 @@
'seqeval>=1.2.2',
'social-auth-app-django>=4.0.0',
'whitenoise>=5.2.0',
- 'auto-labeling-pipeline>=0.1.12'
+ 'auto-labeling-pipeline>=0.1.12',
+ 'dj-rest-auth>=2.1.4'
]
setup(
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -35,7 +35,8 @@\n 'seqeval>=1.2.2',\n 'social-auth-app-django>=4.0.0',\n 'whitenoise>=5.2.0',\n- 'auto-labeling-pipeline>=0.1.12'\n+ 'auto-labeling-pipeline>=0.1.12',\n+ 'dj-rest-auth>=2.1.4'\n ]\n \n setup(\n", "i... |
gh_patches_debug_141 | rasdani/github-patches | git_diff | dask__dask-4903 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
keyerror in dask.config.rename when working with distributed
calling `dask-worker` using `dask==1.2.2`, `distributed==1.28.1`, I get the following error:
`Traceback (most recent call last): File "/opt/cond... | diff --git a/dask/config.py b/dask/config.py
--- a/dask/config.py
+++ b/dask/config.py
@@ -448,7 +448,7 @@
new[n] = value
for k in old:
- del config[k] # TODO: support nested keys
+ del config[canonical_name(k, config)] # TODO: support nested keys
set(new, config=config)
| {"golden_diff": "diff --git a/dask/config.py b/dask/config.py\n--- a/dask/config.py\n+++ b/dask/config.py\n@@ -448,7 +448,7 @@\n new[n] = value\n \n for k in old:\n- del config[k] # TODO: support nested keys\n+ del config[canonical_name(k, config)] # TODO: support nested keys\n \n se... |
gh_patches_debug_142 | rasdani/github-patches | git_diff | statsmodels__statsmodels-1001 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
BLD data_files for stats.libqsturng
originally reported in #831
I did not manage to get the test and data files to install in libqsturng.
I worked around this for the required test data file in PR #905
How... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -520,4 +520,5 @@
cmdclass = cmdclass,
packages = packages,
package_data = package_data,
+ include_package_data=True,
**setuptools_kwargs)
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -520,4 +520,5 @@\n cmdclass = cmdclass,\n packages = packages,\n package_data = package_data,\n+ include_package_data=True,\n **setuptools_kwargs)\n", "issue": "BLD data_files for stats... |
gh_patches_debug_143 | rasdani/github-patches | git_diff | liberapay__liberapay.com-1785 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
The username change warning isn't clear enough
<https://mastodonten.de/@scroom/100724362756380264>:
> [@Liberapay](https://mastodon.xyz/@Liberapay) I have a question about existing links to donation accoun... | diff --git a/liberapay/constants.py b/liberapay/constants.py
--- a/liberapay/constants.py
+++ b/liberapay/constants.py
@@ -330,6 +330,10 @@
},
}
+PAYIN_SETTLEMENT_DELAYS = {
+ 'stripe-sdd': timedelta(days=6),
+}
+
PAYMENT_METHODS = {
'mango-ba': _("Direct Debit"),
'mango-bw': _("Bank Wire"),
| {"golden_diff": "diff --git a/liberapay/constants.py b/liberapay/constants.py\n--- a/liberapay/constants.py\n+++ b/liberapay/constants.py\n@@ -330,6 +330,10 @@\n },\n }\n \n+PAYIN_SETTLEMENT_DELAYS = {\n+ 'stripe-sdd': timedelta(days=6),\n+}\n+\n PAYMENT_METHODS = {\n 'mango-ba': _(\"Direct Debit\"),\n '... |
gh_patches_debug_144 | rasdani/github-patches | git_diff | cocotb__cocotb-3179 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
CI fail "ValueError: Ghdl: Simulator does not support Verilog"
We get a GHDL failure in the release CI pipeline on master:
Log: https://github.com/cocotb/cocotb/actions/runs/3816250240/jobs/6491822293
`... | diff --git a/noxfile.py b/noxfile.py
--- a/noxfile.py
+++ b/noxfile.py
@@ -465,6 +465,7 @@
"-v",
"-k",
"simulator_required",
+ env=env,
)
session.log(f"All tests passed with configuration {config_str}!")
| {"golden_diff": "diff --git a/noxfile.py b/noxfile.py\n--- a/noxfile.py\n+++ b/noxfile.py\n@@ -465,6 +465,7 @@\n \"-v\",\n \"-k\",\n \"simulator_required\",\n+ env=env,\n )\n \n session.log(f\"All tests passed with configuration {config_str}!\")\n", "issue": "CI fail \"ValueError:... |
gh_patches_debug_145 | rasdani/github-patches | git_diff | wright-group__WrightTools-522 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
hide fit functionality
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `WrightTools/__init__.py`
Content:
`... | diff --git a/WrightTools/__init__.py b/WrightTools/__init__.py
--- a/WrightTools/__init__.py
+++ b/WrightTools/__init__.py
@@ -12,7 +12,6 @@
from . import collection
from . import data
from . import diagrams
-from . import fit
from . import kit
from . import units
from . import exceptions
| {"golden_diff": "diff --git a/WrightTools/__init__.py b/WrightTools/__init__.py\n--- a/WrightTools/__init__.py\n+++ b/WrightTools/__init__.py\n@@ -12,7 +12,6 @@\n from . import collection\n from . import data\n from . import diagrams\n-from . import fit\n from . import kit\n from . import units\n from . import exceptio... |
gh_patches_debug_146 | rasdani/github-patches | git_diff | python-poetry__poetry-979 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
--no-root behavior is inverted on latest develop
[This](https://github.com/sdispater/poetry/commit/37ec1447b3508ee0bbdb41f8e5773ed5bfae0654#diff-427299ba040b8502b4d29846e595c2d0R59) should probably be `if sel... | diff --git a/poetry/console/commands/install.py b/poetry/console/commands/install.py
--- a/poetry/console/commands/install.py
+++ b/poetry/console/commands/install.py
@@ -56,7 +56,7 @@
if return_code != 0:
return return_code
- if not self.option("no-root"):
+ if self.option("no-roo... | {"golden_diff": "diff --git a/poetry/console/commands/install.py b/poetry/console/commands/install.py\n--- a/poetry/console/commands/install.py\n+++ b/poetry/console/commands/install.py\n@@ -56,7 +56,7 @@\n if return_code != 0:\n return return_code\n \n- if not self.option(\"no-root\"):\n+ ... |
gh_patches_debug_147 | rasdani/github-patches | git_diff | mit-ll-responsible-ai__hydra-zen-97 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
PEP 561 compatibility
Hi,
Would it be possible to make hydra-zen compliant with [PEP 561](https://www.python.org/dev/peps/pep-0561) by distributing a `py.typed` file with the package?
Currently I'm gett... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -68,4 +68,5 @@
python_requires=">=3.6",
packages=find_packages(where="src", exclude=["tests", "tests.*"]),
package_dir={"": "src"},
+ package_data={"hydra_zen": ["py.typed"]}
)
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -68,4 +68,5 @@\n python_requires=\">=3.6\",\n packages=find_packages(where=\"src\", exclude=[\"tests\", \"tests.*\"]),\n package_dir={\"\": \"src\"},\n+ package_data={\"hydra_zen\": [\"py.typed\"]}\n )\n", "issue": "PEP... |
gh_patches_debug_148 | rasdani/github-patches | git_diff | nipy__nipype-3385 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
MathsCommand().inputs.out_file has to exist
When setting `MathsCommand().inputs.out_file` argument, a Trait error is thrown because of the `exists=True`:
https://github.com/nipy/nipype/blob/6a7837c0994367a... | diff --git a/nipype/interfaces/fsl/maths.py b/nipype/interfaces/fsl/maths.py
--- a/nipype/interfaces/fsl/maths.py
+++ b/nipype/interfaces/fsl/maths.py
@@ -41,7 +41,7 @@
class MathsOutput(TraitedSpec):
- out_file = File(exists=True, desc="image written after calculations")
+ out_file = File(desc="image writte... | {"golden_diff": "diff --git a/nipype/interfaces/fsl/maths.py b/nipype/interfaces/fsl/maths.py\n--- a/nipype/interfaces/fsl/maths.py\n+++ b/nipype/interfaces/fsl/maths.py\n@@ -41,7 +41,7 @@\n \n class MathsOutput(TraitedSpec):\n \n- out_file = File(exists=True, desc=\"image written after calculations\")\n+ out_fil... |
gh_patches_debug_149 | rasdani/github-patches | git_diff | tensorflow__addons-897 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Nightly build break
**System information**
- TensorFlow version and how it was installed (source or binary): tf-nightly-**2.2.0.dev20200115**
- TensorFlow-Addons version and how it was installed (source or... | diff --git a/tensorflow_addons/__init__.py b/tensorflow_addons/__init__.py
--- a/tensorflow_addons/__init__.py
+++ b/tensorflow_addons/__init__.py
@@ -27,8 +27,3 @@
from tensorflow_addons import text
from tensorflow_addons.version import __version__
-
-# Cleanup symbols to avoid polluting namespace.
-del absolute_i... | {"golden_diff": "diff --git a/tensorflow_addons/__init__.py b/tensorflow_addons/__init__.py\n--- a/tensorflow_addons/__init__.py\n+++ b/tensorflow_addons/__init__.py\n@@ -27,8 +27,3 @@\n from tensorflow_addons import text\n \n from tensorflow_addons.version import __version__\n-\n-# Cleanup symbols to avoid polluting n... |
gh_patches_debug_150 | rasdani/github-patches | git_diff | python-discord__bot-1404 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add an `attachments` rule
# Abstract
We should have an antispam rule filtering small burst of images.
# Rationale
Currently, when a user posts 4 images in less than 10 seconds without any comment, ... | diff --git a/bot/rules/duplicates.py b/bot/rules/duplicates.py
--- a/bot/rules/duplicates.py
+++ b/bot/rules/duplicates.py
@@ -13,6 +13,7 @@
if (
msg.author == last_message.author
and msg.content == last_message.content
+ and msg.content
)
)
| {"golden_diff": "diff --git a/bot/rules/duplicates.py b/bot/rules/duplicates.py\n--- a/bot/rules/duplicates.py\n+++ b/bot/rules/duplicates.py\n@@ -13,6 +13,7 @@\n if (\n msg.author == last_message.author\n and msg.content == last_message.content\n+ and msg.content\n )\... |
gh_patches_debug_151 | rasdani/github-patches | git_diff | ethereum__consensus-specs-1102 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
BLS and testing
Decided I wanted to get this out to explain the current state of testing, and **collect feedback** (implementers please comment) on what you need from testing, and your feelings about BLS usag... | diff --git a/scripts/phase0/build_spec.py b/scripts/phase0/build_spec.py
--- a/scripts/phase0/build_spec.py
+++ b/scripts/phase0/build_spec.py
@@ -13,7 +13,7 @@
Tuple,
)
from eth2spec.utils.minimal_ssz import *
-from eth2spec.utils.bls_stub import *
+from eth2spec.utils.bls import *
""")
for i in (1, 2, ... | {"golden_diff": "diff --git a/scripts/phase0/build_spec.py b/scripts/phase0/build_spec.py\n--- a/scripts/phase0/build_spec.py\n+++ b/scripts/phase0/build_spec.py\n@@ -13,7 +13,7 @@\n Tuple,\n )\n from eth2spec.utils.minimal_ssz import *\n-from eth2spec.utils.bls_stub import *\n+from eth2spec.utils.bls import *\n \n... |
gh_patches_debug_152 | rasdani/github-patches | git_diff | pex-tool__pex-630 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Release 1.6.0
On the docket:
+ (longterm fix) unhandled AttributeError during pex bootstrapping with PEX_PATH #598
+ Vendor setuptools / wheel. #607
--- END ISSUE ---
Below are some code segments, each fr... | diff --git a/pex/version.py b/pex/version.py
--- a/pex/version.py
+++ b/pex/version.py
@@ -1,4 +1,4 @@
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
-__version__ = '1.5.3'
+__version__ = '1.6.0'
| {"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = '1.5.3'\n+__version__ = '1.6.0'\n", "issue"... |
gh_patches_debug_153 | rasdani/github-patches | git_diff | pex-tool__pex-916 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Release 2.1.6
On the docket:
+ [x] Don't delete the root `__init__.py` when devendoring. #915
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may con... | diff --git a/pex/version.py b/pex/version.py
--- a/pex/version.py
+++ b/pex/version.py
@@ -1,4 +1,4 @@
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
-__version__ = '2.1.5'
+__version__ = '2.1.6'
| {"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = '2.1.5'\n+__version__ = '2.1.6'\n", "issue"... |
gh_patches_debug_154 | rasdani/github-patches | git_diff | google-research__text-to-text-transfer-transformer-480 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Running hf_model.py
I am trying to run your models with [`hf_model`](https://github.com/google-research/text-to-text-transfer-transformer/blob/master/t5/models/hf_model.py). The current blocker issue is that... | diff --git a/t5/version.py b/t5/version.py
--- a/t5/version.py
+++ b/t5/version.py
@@ -18,4 +18,4 @@
Stored in a separate file so that setup.py can reference the version without
pulling in all the dependencies in __init__.py.
"""
-__version__ = '0.7.0'
+__version__ = '0.7.1'
| {"golden_diff": "diff --git a/t5/version.py b/t5/version.py\n--- a/t5/version.py\n+++ b/t5/version.py\n@@ -18,4 +18,4 @@\n Stored in a separate file so that setup.py can reference the version without\n pulling in all the dependencies in __init__.py.\n \"\"\"\n-__version__ = '0.7.0'\n+__version__ = '0.7.1'\n", "issue": ... |
gh_patches_debug_155 | rasdani/github-patches | git_diff | comic__grand-challenge.org-3379 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Server error page won't render because of missing context
If a view throws a 500 error, the 500.html should get rendered. We recently updated the template to inherit from base.html, and now it will not render... | diff --git a/app/config/urls/challenge_subdomain.py b/app/config/urls/challenge_subdomain.py
--- a/app/config/urls/challenge_subdomain.py
+++ b/app/config/urls/challenge_subdomain.py
@@ -4,6 +4,9 @@
from grandchallenge.challenges.views import ChallengeUpdate
+handler500 = "grandchallenge.core.views.handler500"
+
+... | {"golden_diff": "diff --git a/app/config/urls/challenge_subdomain.py b/app/config/urls/challenge_subdomain.py\n--- a/app/config/urls/challenge_subdomain.py\n+++ b/app/config/urls/challenge_subdomain.py\n@@ -4,6 +4,9 @@\n \n from grandchallenge.challenges.views import ChallengeUpdate\n \n+handler500 = \"grandchallenge.c... |
gh_patches_debug_156 | rasdani/github-patches | git_diff | encode__httpx-1199 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
How about attaching original traceback to exceptions raised in `map_exceptions()` ?
Currently we use `map_exceptions()` to covert underlying library exceptions to `httpx` exceptions, when captured an expected... | diff --git a/httpx/_exceptions.py b/httpx/_exceptions.py
--- a/httpx/_exceptions.py
+++ b/httpx/_exceptions.py
@@ -356,7 +356,7 @@
raise
message = str(exc)
- raise mapped_exc(message, **kwargs) from None # type: ignore
+ raise mapped_exc(message, **kwargs) from exc # type: ignore... | {"golden_diff": "diff --git a/httpx/_exceptions.py b/httpx/_exceptions.py\n--- a/httpx/_exceptions.py\n+++ b/httpx/_exceptions.py\n@@ -356,7 +356,7 @@\n raise\n \n message = str(exc)\n- raise mapped_exc(message, **kwargs) from None # type: ignore\n+ raise mapped_exc(message, **kwargs)... |
gh_patches_debug_157 | rasdani/github-patches | git_diff | astronomer__astro-sdk-1401 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Doc: Cross link to API reference page from Operators page
Currently there is no way to jump to Func/Operator definition from https://astro-sdk-python.readthedocs.io/en/stable/astro/sql/operators/get_value_lis... | diff --git a/python-sdk/src/astro/sql/__init__.py b/python-sdk/src/astro/sql/__init__.py
--- a/python-sdk/src/astro/sql/__init__.py
+++ b/python-sdk/src/astro/sql/__init__.py
@@ -24,6 +24,7 @@
"drop_table",
"ExportFileOperator",
"export_file",
+ "get_value_list",
"LoadFileOperator",
"load_fi... | {"golden_diff": "diff --git a/python-sdk/src/astro/sql/__init__.py b/python-sdk/src/astro/sql/__init__.py\n--- a/python-sdk/src/astro/sql/__init__.py\n+++ b/python-sdk/src/astro/sql/__init__.py\n@@ -24,6 +24,7 @@\n \"drop_table\",\n \"ExportFileOperator\",\n \"export_file\",\n+ \"get_value_list\",\n ... |
gh_patches_debug_158 | rasdani/github-patches | git_diff | pex-tool__pex-991 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Release 2.1.12
On the docket:
- [x] A PEX_EXTRA_SYS_PATH runtime variable #989
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- B... | diff --git a/pex/version.py b/pex/version.py
--- a/pex/version.py
+++ b/pex/version.py
@@ -1,4 +1,4 @@
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
-__version__ = '2.1.11'
+__version__ = '2.1.12'
| {"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = '2.1.11'\n+__version__ = '2.1.12'\n", "issu... |
gh_patches_debug_159 | rasdani/github-patches | git_diff | TOMToolkit__tom_base-196 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Missing dataclasses
Following the tom_base install instructions, I pip installed the requirements.txt and then tried
> ./manage.py migrate
which ended with the following error:
File "<frozen importlib... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -46,6 +46,7 @@
'pillow',
'fits2image',
'specutils',
+ "dataclasses; python_version < '3.7'",
],
extras_require={
'test': ['factory_boy']
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -46,6 +46,7 @@\n 'pillow',\n 'fits2image',\n 'specutils',\n+ \"dataclasses; python_version < '3.7'\",\n ],\n extras_require={\n 'test': ['factory_boy']\n", "issue": "Missing dataclasses\n... |
gh_patches_debug_160 | rasdani/github-patches | git_diff | pex-tool__pex-1590 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Release 2.1.64
On the docket:
+ [x] Pex does not support mac universal2 wheels #1587
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bug... | diff --git a/pex/version.py b/pex/version.py
--- a/pex/version.py
+++ b/pex/version.py
@@ -1,4 +1,4 @@
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
-__version__ = "2.1.63"
+__version__ = "2.1.64"
| {"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.63\"\n+__version__ = \"2.1.64\"\n", "... |
gh_patches_debug_161 | rasdani/github-patches | git_diff | pex-tool__pex-1692 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Release 2.1.74
On the docket:
+ [x] Add support for locking VCS requirements. (#1687)
+ [x] Fix `--lock` for multiplatform via sdists. (#1689)
--- END ISSUE ---
Below are some code segments, each from a... | diff --git a/pex/version.py b/pex/version.py
--- a/pex/version.py
+++ b/pex/version.py
@@ -1,4 +1,4 @@
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
-__version__ = "2.1.73"
+__version__ = "2.1.74"
| {"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.73\"\n+__version__ = \"2.1.74\"\n", "... |
gh_patches_debug_162 | rasdani/github-patches | git_diff | liqd__a4-meinberlin-382 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Order of poll answer choices mixed up after saving
The order of poll answer choices is mixed up after saving. Restoring original order is not possible:

+ class Meta:
+ ordering = ['id']
+
def __str__(self):
return '%s @%s' % (self.label, self.question)
| {"golden_diff": "diff --git a/apps/polls/models.py b/apps/polls/models.py\n--- a/apps/polls/models.py\n+++ b/apps/polls/models.py\n@@ -60,6 +60,9 @@\n \n objects = ChoiceQuerySet.as_manager()\n \n+ class Meta:\n+ ordering = ['id']\n+\n def __str__(self):\n return '%s @%s' % (self.label, self.q... |
gh_patches_debug_163 | rasdani/github-patches | git_diff | pex-tool__pex-1112 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Release 2.1.21
On the docket:
+ [x] "FileNotFoundError: [Errno 2] No such file or directory" in pex #1098
+ [x] Unclosed resource warning for `/dev/null` in PEX teardown. #1101
+ [x] Remove `--sources-dire... | diff --git a/pex/version.py b/pex/version.py
--- a/pex/version.py
+++ b/pex/version.py
@@ -1,4 +1,4 @@
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
-__version__ = "2.1.20"
+__version__ = "2.1.21"
| {"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.20\"\n+__version__ = \"2.1.21\"\n", "... |
gh_patches_debug_164 | rasdani/github-patches | git_diff | pex-tool__pex-1720 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Release 2.1.79
On the docket:
+ [x] The --lock resolver only includes extras from the 1st encounter of a required project in its graph walk. #1717
+ [x] Support canonicalizing absolute paths in locks. (#17... | diff --git a/pex/version.py b/pex/version.py
--- a/pex/version.py
+++ b/pex/version.py
@@ -1,4 +1,4 @@
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
-__version__ = "2.1.78"
+__version__ = "2.1.79"
| {"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.78\"\n+__version__ = \"2.1.79\"\n", "... |
gh_patches_debug_165 | rasdani/github-patches | git_diff | pex-tool__pex-1516 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Release 2.1.55
On the docket:
+ [x] Add official support for Python 3.10 (#1512)
+ [x] Always register global options. (#1511)
+ [x] Fix RTD generation by pinning docutils low. (#1509)
--- END ISSUE ---
... | diff --git a/pex/version.py b/pex/version.py
--- a/pex/version.py
+++ b/pex/version.py
@@ -1,4 +1,4 @@
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
-__version__ = "2.1.54"
+__version__ = "2.1.55"
| {"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.54\"\n+__version__ = \"2.1.55\"\n", "... |
gh_patches_debug_166 | rasdani/github-patches | git_diff | pex-tool__pex-1725 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Release 2.1.80
On the docket:
+ [x] Support booting via `/bin/sh` with `--sh-boot`. (#1721)
+ [x] Fix more pathologic lock creation slowness. (#1723)
--- END ISSUE ---
Below are some code segments, each f... | diff --git a/pex/version.py b/pex/version.py
--- a/pex/version.py
+++ b/pex/version.py
@@ -1,4 +1,4 @@
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
-__version__ = "2.1.79"
+__version__ = "2.1.80"
| {"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.79\"\n+__version__ = \"2.1.80\"\n", "... |
gh_patches_debug_167 | rasdani/github-patches | git_diff | pex-tool__pex-1442 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Release 2.1.48
On the docket:
+ [x] Remove zipapp execution mode & introduce --layout. #1438
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may cont... | diff --git a/pex/version.py b/pex/version.py
--- a/pex/version.py
+++ b/pex/version.py
@@ -1,4 +1,4 @@
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
-__version__ = "2.1.47"
+__version__ = "2.1.48"
| {"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.47\"\n+__version__ = \"2.1.48\"\n", "... |
gh_patches_debug_168 | rasdani/github-patches | git_diff | searxng__searxng-2862 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bug: bilibili engine is broken
<!-- PLEASE FILL THESE FIELDS, IT REALLY HELPS THE MAINTAINERS OF SearXNG -->
Something has changed, and now some fixes are needed to use the api successfully.
**Version o... | diff --git a/searx/engines/bilibili.py b/searx/engines/bilibili.py
--- a/searx/engines/bilibili.py
+++ b/searx/engines/bilibili.py
@@ -26,7 +26,7 @@
categories = ["videos"]
# Search URL
-base_url = "https://api.bilibili.com/x/web-interface/wbi/search/type"
+base_url = "https://api.bilibili.com/x/web-interface/searc... | {"golden_diff": "diff --git a/searx/engines/bilibili.py b/searx/engines/bilibili.py\n--- a/searx/engines/bilibili.py\n+++ b/searx/engines/bilibili.py\n@@ -26,7 +26,7 @@\n categories = [\"videos\"]\n \n # Search URL\n-base_url = \"https://api.bilibili.com/x/web-interface/wbi/search/type\"\n+base_url = \"https://api.bili... |
gh_patches_debug_169 | rasdani/github-patches | git_diff | DDMAL__CantusDB-1077 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Admin area, change chant page: "title" field should be hidden
The "title" field is only used for sequences and never for chants, so this field should be hidden from the Chant Change page in the Admin area.
... | diff --git a/django/cantusdb_project/main_app/admin.py b/django/cantusdb_project/main_app/admin.py
--- a/django/cantusdb_project/main_app/admin.py
+++ b/django/cantusdb_project/main_app/admin.py
@@ -78,6 +78,7 @@
"date",
"volpiano_notes",
"volpiano_intervals",
+ "title",
)
fo... | {"golden_diff": "diff --git a/django/cantusdb_project/main_app/admin.py b/django/cantusdb_project/main_app/admin.py\n--- a/django/cantusdb_project/main_app/admin.py\n+++ b/django/cantusdb_project/main_app/admin.py\n@@ -78,6 +78,7 @@\n \"date\",\n \"volpiano_notes\",\n \"volpiano_intervals\",\n+ ... |
gh_patches_debug_170 | rasdani/github-patches | git_diff | pex-tool__pex-1896 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Release 2.1.104
On the docket:
+ [x] Pull in Pip fixes. #1805
+ [x] pex fails to overwrite zipapp pex with loose pex #1879
+ [x] Make lock update sensitive to artifacts. #1887
+ [x] PEXBuilder is not rob... | diff --git a/pex/version.py b/pex/version.py
--- a/pex/version.py
+++ b/pex/version.py
@@ -1,4 +1,4 @@
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
-__version__ = "2.1.103"
+__version__ = "2.1.104"
| {"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.103\"\n+__version__ = \"2.1.104\"\n",... |
gh_patches_debug_171 | rasdani/github-patches | git_diff | pex-tool__pex-1932 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Release 2.1.108
On the docket:
+ [x] Fix slow PEX boot time when there are many extras. #1929
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may conta... | diff --git a/pex/version.py b/pex/version.py
--- a/pex/version.py
+++ b/pex/version.py
@@ -1,4 +1,4 @@
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
-__version__ = "2.1.107"
+__version__ = "2.1.108"
| {"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.107\"\n+__version__ = \"2.1.108\"\n",... |
gh_patches_debug_172 | rasdani/github-patches | git_diff | wemake-services__wemake-python-styleguide-2619 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
False positive WPS226 in f strings
### What's wrong
line
f'query:"{query}"'
in ast node generate node with string value " (double qoute)
so if we have several lines like with we get tricky and false pos... | diff --git a/wemake_python_styleguide/visitors/ast/complexity/overuses.py b/wemake_python_styleguide/visitors/ast/complexity/overuses.py
--- a/wemake_python_styleguide/visitors/ast/complexity/overuses.py
+++ b/wemake_python_styleguide/visitors/ast/complexity/overuses.py
@@ -49,6 +49,10 @@
'\r\n',
'\t'... | {"golden_diff": "diff --git a/wemake_python_styleguide/visitors/ast/complexity/overuses.py b/wemake_python_styleguide/visitors/ast/complexity/overuses.py\n--- a/wemake_python_styleguide/visitors/ast/complexity/overuses.py\n+++ b/wemake_python_styleguide/visitors/ast/complexity/overuses.py\n@@ -49,6 +49,10 @@\n ... |
gh_patches_debug_173 | rasdani/github-patches | git_diff | LibraryOfCongress__concordia-535 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Set site time zone to US/Eastern
https://docs.djangoproject.com/en/2.1/ref/settings/#std:setting-TIME_ZONE
Use Django setting to change user-facing timestamps to use US/Eastern time zone.
--- END ISSUE --... | diff --git a/concordia/settings_template.py b/concordia/settings_template.py
--- a/concordia/settings_template.py
+++ b/concordia/settings_template.py
@@ -41,7 +41,7 @@
os.path.join(SITE_ROOT_DIR, "static"),
]
TEMPLATE_DEBUG = False
-TIME_ZONE = "UTC"
+TIME_ZONE = "America/New_York"
USE_I18N = True
USE_L10N = ... | {"golden_diff": "diff --git a/concordia/settings_template.py b/concordia/settings_template.py\n--- a/concordia/settings_template.py\n+++ b/concordia/settings_template.py\n@@ -41,7 +41,7 @@\n os.path.join(SITE_ROOT_DIR, \"static\"),\n ]\n TEMPLATE_DEBUG = False\n-TIME_ZONE = \"UTC\"\n+TIME_ZONE = \"America/New_York\... |
gh_patches_debug_174 | rasdani/github-patches | git_diff | ivy-llc__ivy-12770 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
expm1
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `ivy/functional/frontends/tensorflow/math.py`
Content... | diff --git a/ivy/functional/frontends/tensorflow/math.py b/ivy/functional/frontends/tensorflow/math.py
--- a/ivy/functional/frontends/tensorflow/math.py
+++ b/ivy/functional/frontends/tensorflow/math.py
@@ -34,6 +34,11 @@
return ivy.exp(x)
+@to_ivy_arrays_and_back
+def expm1(x, name=None):
+ return ivy.expm... | {"golden_diff": "diff --git a/ivy/functional/frontends/tensorflow/math.py b/ivy/functional/frontends/tensorflow/math.py\n--- a/ivy/functional/frontends/tensorflow/math.py\n+++ b/ivy/functional/frontends/tensorflow/math.py\n@@ -34,6 +34,11 @@\n return ivy.exp(x)\n \n \n+@to_ivy_arrays_and_back\n+def expm1(x, name=No... |
gh_patches_debug_175 | rasdani/github-patches | git_diff | pytorch__pytorch-2063 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
inplace division doesn't work in version 0.1.12_2
This is an ipython session. Note that the `id` doesn't remain the same for /= even though it works for div_
```python
In [1]: import torch
In [2]: foo ... | diff --git a/torch/tensor.py b/torch/tensor.py
--- a/torch/tensor.py
+++ b/torch/tensor.py
@@ -333,6 +333,7 @@
def __idiv__(self, other):
return self.div_(other)
+ __itruediv__ = __idiv__
def __mod__(self, other):
return self.remainder(other)
| {"golden_diff": "diff --git a/torch/tensor.py b/torch/tensor.py\n--- a/torch/tensor.py\n+++ b/torch/tensor.py\n@@ -333,6 +333,7 @@\n \n def __idiv__(self, other):\n return self.div_(other)\n+ __itruediv__ = __idiv__\n \n def __mod__(self, other):\n return self.remainder(other)\n", "issue": "i... |
gh_patches_debug_176 | rasdani/github-patches | git_diff | django-oscar__django-oscar-2404 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Basket.line_tax returns None
Due to the change in ad1094c1e8, if a line's tax is set to `Decimal('0.00')`, `Line.is_tax_known` will return `True`, but `Line.line_tax` will return `None`. Formerly in this case... | diff --git a/src/oscar/apps/basket/abstract_models.py b/src/oscar/apps/basket/abstract_models.py
--- a/src/oscar/apps/basket/abstract_models.py
+++ b/src/oscar/apps/basket/abstract_models.py
@@ -828,7 +828,7 @@
@property
def line_tax(self):
- if self.unit_tax:
+ if self.is_tax_known:
... | {"golden_diff": "diff --git a/src/oscar/apps/basket/abstract_models.py b/src/oscar/apps/basket/abstract_models.py\n--- a/src/oscar/apps/basket/abstract_models.py\n+++ b/src/oscar/apps/basket/abstract_models.py\n@@ -828,7 +828,7 @@\n \n @property\n def line_tax(self):\n- if self.unit_tax:\n+ if sel... |
gh_patches_debug_177 | rasdani/github-patches | git_diff | qutip__qutip-2305 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
QuTiP 4.7.4: incompatibility with the latest scipy (1.12.0)
https://github.com/qutip/qutip/blob/f5149616a4071a273e7e48a63d956836739c4569/qutip/parallel.py#L7
When the latest scipy version is used (1.12.0),... | diff --git a/qutip/parallel.py b/qutip/parallel.py
--- a/qutip/parallel.py
+++ b/qutip/parallel.py
@@ -4,7 +4,7 @@
"""
__all__ = ['parfor', 'parallel_map', 'serial_map']
-from scipy import array
+from numpy import array
import multiprocessing
from functools import partial
import os
| {"golden_diff": "diff --git a/qutip/parallel.py b/qutip/parallel.py\n--- a/qutip/parallel.py\n+++ b/qutip/parallel.py\n@@ -4,7 +4,7 @@\n \"\"\"\n __all__ = ['parfor', 'parallel_map', 'serial_map']\n \n-from scipy import array\n+from numpy import array\n import multiprocessing\n from functools import partial\n import os... |
gh_patches_debug_178 | rasdani/github-patches | git_diff | kornia__kornia-2817 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Important typo in RandAugment default policy list
### Describe the bug
'translate_x' is in the default policy list twice, whereas 'translate_y' is missing.
### Reproduction steps
```bash
1. Open kornia/aug... | diff --git a/kornia/augmentation/auto/rand_augment/rand_augment.py b/kornia/augmentation/auto/rand_augment/rand_augment.py
--- a/kornia/augmentation/auto/rand_augment/rand_augment.py
+++ b/kornia/augmentation/auto/rand_augment/rand_augment.py
@@ -27,7 +27,7 @@
[("shear_y", -0.3, 0.3)],
# (CutoutAbs, 0, 40),
... | {"golden_diff": "diff --git a/kornia/augmentation/auto/rand_augment/rand_augment.py b/kornia/augmentation/auto/rand_augment/rand_augment.py\n--- a/kornia/augmentation/auto/rand_augment/rand_augment.py\n+++ b/kornia/augmentation/auto/rand_augment/rand_augment.py\n@@ -27,7 +27,7 @@\n [(\"shear_y\", -0.3, 0.3)],\n ... |
gh_patches_debug_179 | rasdani/github-patches | git_diff | vyperlang__vyper-1275 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
State leakage across test runs when using parrellization
### What is wrong.
The tests at `tests/examples/safe_remote_purchase/test_safe_remote_purchase.py` fail when run using `pytest-xdist` to parallelize... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -4,11 +4,12 @@
test_deps = [
- 'pytest',
- 'pytest-cov',
- 'py-evm==0.2.0a34',
- 'eth-tester==0.1.0b33',
- 'web3==4.8.2',
+ 'pytest>=3.6',
+ 'pytest-cov==2.4.0',
+ 'pytest-xdist==1.18.1',
+ 'py-evm==0.2.0a39',
+ 'eth-te... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -4,11 +4,12 @@\n \n \n test_deps = [\n- 'pytest',\n- 'pytest-cov',\n- 'py-evm==0.2.0a34',\n- 'eth-tester==0.1.0b33',\n- 'web3==4.8.2',\n+ 'pytest>=3.6',\n+ 'pytest-cov==2.4.0',\n+ 'pytest-xdist==1.18.1',\n+ ... |
gh_patches_debug_180 | rasdani/github-patches | git_diff | Parsl__parsl-597 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Make `GlobusScheme` inherit from `RepresentationMixin`
Otherwise, the config printed in the log is not copy-and-pasteable:
```
storage_access=[<parsl.data_provider.scheme.GlobusScheme object at 0x... | diff --git a/parsl/data_provider/scheme.py b/parsl/data_provider/scheme.py
--- a/parsl/data_provider/scheme.py
+++ b/parsl/data_provider/scheme.py
@@ -1,5 +1,7 @@
+from parsl.utils import RepresentationMixin
-class GlobusScheme(object):
+
+class GlobusScheme(RepresentationMixin):
"""Specification for accessing d... | {"golden_diff": "diff --git a/parsl/data_provider/scheme.py b/parsl/data_provider/scheme.py\n--- a/parsl/data_provider/scheme.py\n+++ b/parsl/data_provider/scheme.py\n@@ -1,5 +1,7 @@\n+from parsl.utils import RepresentationMixin\n \n-class GlobusScheme(object):\n+\n+class GlobusScheme(RepresentationMixin):\n \"\"\"... |
gh_patches_debug_181 | rasdani/github-patches | git_diff | PaddlePaddle__models-1201 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
will you support CPU training of Transformer?
https://github.com/PaddlePaddle/models/blob/ff63e48f5dd71143d7108198e71a61cdaa0895d9/fluid/neural_machine_translation/transformer/config.py#L2
--- END ISSUE ---
... | diff --git a/fluid/neural_machine_translation/transformer/config.py b/fluid/neural_machine_translation/transformer/config.py
--- a/fluid/neural_machine_translation/transformer/config.py
+++ b/fluid/neural_machine_translation/transformer/config.py
@@ -1,5 +1,5 @@
class TrainTaskConfig(object):
- # only support GPU c... | {"golden_diff": "diff --git a/fluid/neural_machine_translation/transformer/config.py b/fluid/neural_machine_translation/transformer/config.py\n--- a/fluid/neural_machine_translation/transformer/config.py\n+++ b/fluid/neural_machine_translation/transformer/config.py\n@@ -1,5 +1,5 @@\n class TrainTaskConfig(object):\n- ... |
gh_patches_debug_182 | rasdani/github-patches | git_diff | mozmeao__snippets-service-892 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ASRSnippet list view search refers to target
ASRSnippet list view search requires update to refer to `targets` after #875
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or m... | diff --git a/snippets/base/admin/adminmodels.py b/snippets/base/admin/adminmodels.py
--- a/snippets/base/admin/adminmodels.py
+++ b/snippets/base/admin/adminmodels.py
@@ -132,7 +132,7 @@
'name',
'id',
'campaign__name',
- 'target__name',
+ 'targets__name',
)
autocomplet... | {"golden_diff": "diff --git a/snippets/base/admin/adminmodels.py b/snippets/base/admin/adminmodels.py\n--- a/snippets/base/admin/adminmodels.py\n+++ b/snippets/base/admin/adminmodels.py\n@@ -132,7 +132,7 @@\n 'name',\n 'id',\n 'campaign__name',\n- 'target__name',\n+ 'targets__name'... |
gh_patches_debug_183 | rasdani/github-patches | git_diff | e-valuation__EvaP-410 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Missing access to contributor page for delegate
Delegates for responsible users can't see the contributor page when they don't have own contributions.
Every delegate of any user with edit rights should have a... | diff --git a/evap/evaluation/models.py b/evap/evaluation/models.py
--- a/evap/evaluation/models.py
+++ b/evap/evaluation/models.py
@@ -554,7 +554,7 @@
@property
def is_delegate(self):
- return self.delegates.exists()
+ return self.user.represented_users.exists()
@property
def is_ed... | {"golden_diff": "diff --git a/evap/evaluation/models.py b/evap/evaluation/models.py\n--- a/evap/evaluation/models.py\n+++ b/evap/evaluation/models.py\n@@ -554,7 +554,7 @@\n \n @property\n def is_delegate(self):\n- return self.delegates.exists()\n+ return self.user.represented_users.exists()\n \n ... |
gh_patches_debug_184 | rasdani/github-patches | git_diff | googleapis__google-api-python-client-273 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Error importing discovery from the client API
Hello, I'm getting a name exception when running a simple script. I've tried running the script in two ways:
```
from apiclient import discovery
import json
fro... | diff --git a/googleapiclient/channel.py b/googleapiclient/channel.py
--- a/googleapiclient/channel.py
+++ b/googleapiclient/channel.py
@@ -61,7 +61,6 @@
import uuid
from googleapiclient import errors
-from oauth2client import util
import six
# Oauth2client < 3 has the positional helper in 'util', >= 3 has it
| {"golden_diff": "diff --git a/googleapiclient/channel.py b/googleapiclient/channel.py\n--- a/googleapiclient/channel.py\n+++ b/googleapiclient/channel.py\n@@ -61,7 +61,6 @@\n import uuid\n \n from googleapiclient import errors\n-from oauth2client import util\n import six\n \n # Oauth2client < 3 has the positional helpe... |
gh_patches_debug_185 | rasdani/github-patches | git_diff | secdev__scapy-1330 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
getattr() in volatile.py throws an AttributeError when str() or hexdump() is used on fuzz packet
Hello,
I have recently installed Scapy to use it to fuzz a CoAP server. I found a few threads related to this... | diff --git a/scapy/volatile.py b/scapy/volatile.py
--- a/scapy/volatile.py
+++ b/scapy/volatile.py
@@ -124,7 +124,7 @@
return int(self)
def __nonzero__(self):
- return bool(self.value)
+ return bool(self._fix())
__bool__ = __nonzero__
def __add__(self, other):
| {"golden_diff": "diff --git a/scapy/volatile.py b/scapy/volatile.py\n--- a/scapy/volatile.py\n+++ b/scapy/volatile.py\n@@ -124,7 +124,7 @@\n return int(self)\n \n def __nonzero__(self):\n- return bool(self.value)\n+ return bool(self._fix())\n __bool__ = __nonzero__\n \n def __add__(sel... |
gh_patches_debug_186 | rasdani/github-patches | git_diff | apache__airflow-26806 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
pdb no longer works with airflow test command since 2.3.3
Converted back to issue as I've reproduced it and traced the issue back to https://github.com/apache/airflow/pull/24362
### Discussed in https://gi... | diff --git a/airflow/utils/log/secrets_masker.py b/airflow/utils/log/secrets_masker.py
--- a/airflow/utils/log/secrets_masker.py
+++ b/airflow/utils/log/secrets_masker.py
@@ -271,6 +271,7 @@
def __init__(self):
self.target = sys.stdout
+ self.fileno = sys.stdout.fileno
def write(self, s: s... | {"golden_diff": "diff --git a/airflow/utils/log/secrets_masker.py b/airflow/utils/log/secrets_masker.py\n--- a/airflow/utils/log/secrets_masker.py\n+++ b/airflow/utils/log/secrets_masker.py\n@@ -271,6 +271,7 @@\n \n def __init__(self):\n self.target = sys.stdout\n+ self.fileno = sys.stdout.fileno\n \... |
gh_patches_debug_187 | rasdani/github-patches | git_diff | secdev__scapy-2046 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bug: wrong base class usage in radius.
the following file should be corrected:
scapy/layers/radius.py
`
class _RadiusAttrIPv4AddrVal(RadiusAttribute):
.....
`
should be:
`
class _RadiusAttrIPv4Add... | diff --git a/scapy/layers/radius.py b/scapy/layers/radius.py
--- a/scapy/layers/radius.py
+++ b/scapy/layers/radius.py
@@ -579,7 +579,7 @@
#
-class _RadiusAttrIPv4AddrVal(RadiusAttribute):
+class _RadiusAttrIPv4AddrVal(_SpecificRadiusAttr):
"""
Implements a RADIUS attribute which value field is an IPv4 a... | {"golden_diff": "diff --git a/scapy/layers/radius.py b/scapy/layers/radius.py\n--- a/scapy/layers/radius.py\n+++ b/scapy/layers/radius.py\n@@ -579,7 +579,7 @@\n #\n \n \n-class _RadiusAttrIPv4AddrVal(RadiusAttribute):\n+class _RadiusAttrIPv4AddrVal(_SpecificRadiusAttr):\n \"\"\"\n Implements a RADIUS attribute ... |
gh_patches_debug_188 | rasdani/github-patches | git_diff | joke2k__faker-1710 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Lower bound for typing_extensions?
* Faker version: 14.1.0
* OS: OpenSUSE Leap 15.3
For old Python versions (before Python 3.8), *faker* requires the *typing_extensions* with at least version 3.10.0.2. Du... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -72,6 +72,6 @@
python_requires=">=3.6",
install_requires=[
"python-dateutil>=2.4",
- "typing-extensions>=3.10.0.2;python_version<'3.8'",
+ "typing-extensions>=3.7.4.3;python_version<'3.8'",
],
)
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -72,6 +72,6 @@\n python_requires=\">=3.6\",\n install_requires=[\n \"python-dateutil>=2.4\",\n- \"typing-extensions>=3.10.0.2;python_version<'3.8'\",\n+ \"typing-extensions>=3.7.4.3;python_version<'3.8'\"... |
gh_patches_debug_189 | rasdani/github-patches | git_diff | yt-project__yt-3238 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
missing declaration of used attribute?
### Bug report
while trying to load enzo data into yt (cf. python code below), we run into an issue that the (lazy?) loading in `yt.data_objects.DatasetSeries` is tri... | diff --git a/yt/data_objects/time_series.py b/yt/data_objects/time_series.py
--- a/yt/data_objects/time_series.py
+++ b/yt/data_objects/time_series.py
@@ -155,6 +155,7 @@
pass
ret = super().__new__(cls)
ret._pre_outputs = outputs[:]
+ ret.kwargs = {}
return ret
def ... | {"golden_diff": "diff --git a/yt/data_objects/time_series.py b/yt/data_objects/time_series.py\n--- a/yt/data_objects/time_series.py\n+++ b/yt/data_objects/time_series.py\n@@ -155,6 +155,7 @@\n pass\n ret = super().__new__(cls)\n ret._pre_outputs = outputs[:]\n+ ret.kwargs = {}\n ... |
gh_patches_debug_190 | rasdani/github-patches | git_diff | rlworkgroup__garage-1759 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Incompatible dependencies in pipenv install
Hello,
When I try to install garage in a fresh pipenv as per the documentation, I get the following error:
```
[pipenv.exceptions.ResolutionFailure]: Warning... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@
'scipy',
'setproctitle>=1.0',
'tensorflow>=1.14',
- 'tensorflow-probability',
+ 'tensorflow-probability<=0.10.0',
'torch>=1.0.0,!=1.5.0',
'torchvision>=0.2.1',
]
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -27,7 +27,7 @@\n 'scipy',\n 'setproctitle>=1.0',\n 'tensorflow>=1.14',\n- 'tensorflow-probability',\n+ 'tensorflow-probability<=0.10.0',\n 'torch>=1.0.0,!=1.5.0',\n 'torchvision>=0.2.1',\n ]\n", "issue": "Inc... |
gh_patches_debug_191 | rasdani/github-patches | git_diff | netket__netket-111 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Python bindings for Jastrow machines randomly failing
I realized in #91 that once in a while the python tests for the `Jastrow` machines fail. This issue seems related to some memory problem, but I still don'... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -58,7 +58,7 @@
setup(
name='netket',
- version='0.1',
+ version='2.0',
author='Giuseppe Carleo et al.',
description='NetKet',
url='http://github.com/netket/netket',
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -58,7 +58,7 @@\n \n setup(\n name='netket',\n- version='0.1',\n+ version='2.0',\n author='Giuseppe Carleo et al.',\n description='NetKet',\n url='http://github.com/netket/netket',\n", "issue": "Python bindings fo... |
gh_patches_debug_192 | rasdani/github-patches | git_diff | jupyterhub__jupyterhub-1323 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
PrefixRedirectUrl redirect `/hub` to `/hub/hub`
It might be an edge case, which is not really important,
but I expected `/hub` -> `/hub/` and not `/hub/hub`. This is to to `uri.startswith(self.base_url)`, a... | diff --git a/jupyterhub/handlers/pages.py b/jupyterhub/handlers/pages.py
--- a/jupyterhub/handlers/pages.py
+++ b/jupyterhub/handlers/pages.py
@@ -237,7 +237,7 @@
default_handlers = [
- (r'/', RootHandler),
+ (r'/?', RootHandler),
(r'/home', HomeHandler),
(r'/admin', AdminHandler),
(r'/spawn',... | {"golden_diff": "diff --git a/jupyterhub/handlers/pages.py b/jupyterhub/handlers/pages.py\n--- a/jupyterhub/handlers/pages.py\n+++ b/jupyterhub/handlers/pages.py\n@@ -237,7 +237,7 @@\n \n \n default_handlers = [\n- (r'/', RootHandler),\n+ (r'/?', RootHandler),\n (r'/home', HomeHandler),\n (r'/admin', Admi... |
gh_patches_debug_193 | rasdani/github-patches | git_diff | cupy__cupy-1239 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
sum without upcast
`cupy.sum` and `cupy.prod` upcasts ints (or bool) to `int64` or `uint64`, to align with numpy. This feature would be disabled with `x.sum(dtype=x.dtype)` but not supported in cupy.
```
>... | diff --git a/cupy/core/fusion.py b/cupy/core/fusion.py
--- a/cupy/core/fusion.py
+++ b/cupy/core/fusion.py
@@ -851,7 +851,7 @@
all._raw = core._all
any._raw = core._any
-sum._raw = core._sum
-prod._raw = core._prod
+sum._raw = core._sum_auto_dtype
+prod._raw = core._prod_auto_dtype
amax._raw = core._amax
amin._ra... | {"golden_diff": "diff --git a/cupy/core/fusion.py b/cupy/core/fusion.py\n--- a/cupy/core/fusion.py\n+++ b/cupy/core/fusion.py\n@@ -851,7 +851,7 @@\n \n all._raw = core._all\n any._raw = core._any\n-sum._raw = core._sum\n-prod._raw = core._prod\n+sum._raw = core._sum_auto_dtype\n+prod._raw = core._prod_auto_dtype\n amax... |
gh_patches_debug_194 | rasdani/github-patches | git_diff | mdn__kuma-7256 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
"Report a content problem" gets wrong title
**Summary**
You end up on https://github.com/mdn/sprints/issues/new?template=issue-template.md&projects=mdn/sprints/2&labels=user-report&title=%2Fen-US
That pre... | diff --git a/kuma/wiki/templatetags/ssr.py b/kuma/wiki/templatetags/ssr.py
--- a/kuma/wiki/templatetags/ssr.py
+++ b/kuma/wiki/templatetags/ssr.py
@@ -41,7 +41,6 @@
"url": url,
"documentData": document_data,
}
-
if ssr:
return server_side_render(component_name, data)
else:
| {"golden_diff": "diff --git a/kuma/wiki/templatetags/ssr.py b/kuma/wiki/templatetags/ssr.py\n--- a/kuma/wiki/templatetags/ssr.py\n+++ b/kuma/wiki/templatetags/ssr.py\n@@ -41,7 +41,6 @@\n \"url\": url,\n \"documentData\": document_data,\n }\n-\n if ssr:\n return server_side_render(compone... |
gh_patches_debug_195 | rasdani/github-patches | git_diff | bookwyrm-social__bookwyrm-404 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Rate stars don't work
You should be able to click to give a star rating to a book on the book page, it doesn't do anything.
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or ... | diff --git a/bookwyrm/activitypub/note.py b/bookwyrm/activitypub/note.py
--- a/bookwyrm/activitypub/note.py
+++ b/bookwyrm/activitypub/note.py
@@ -53,7 +53,7 @@
@dataclass(init=False)
class Review(Comment):
''' a full book review '''
- name: str
+ name: str = None
rating: int = None
type: str = '... | {"golden_diff": "diff --git a/bookwyrm/activitypub/note.py b/bookwyrm/activitypub/note.py\n--- a/bookwyrm/activitypub/note.py\n+++ b/bookwyrm/activitypub/note.py\n@@ -53,7 +53,7 @@\n @dataclass(init=False)\n class Review(Comment):\n ''' a full book review '''\n- name: str\n+ name: str = None\n rating: int... |
gh_patches_debug_196 | rasdani/github-patches | git_diff | PennyLaneAI__pennylane-2766 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] `adjoint(adjoint(op))` returns identity
### Expected behavior
When queuing `adjoint(adjoint(op))` in a tape, op should be added
### Actual behavior
op and adjoint(op) are queued
### Additional infor... | diff --git a/pennylane/ops/op_math/adjoint_class.py b/pennylane/ops/op_math/adjoint_class.py
--- a/pennylane/ops/op_math/adjoint_class.py
+++ b/pennylane/ops/op_math/adjoint_class.py
@@ -310,7 +310,7 @@
return self.base.has_matrix
def adjoint(self):
- return self.base
+ return self.base.qu... | {"golden_diff": "diff --git a/pennylane/ops/op_math/adjoint_class.py b/pennylane/ops/op_math/adjoint_class.py\n--- a/pennylane/ops/op_math/adjoint_class.py\n+++ b/pennylane/ops/op_math/adjoint_class.py\n@@ -310,7 +310,7 @@\n return self.base.has_matrix\n \n def adjoint(self):\n- return self.base\n+ ... |
gh_patches_debug_197 | rasdani/github-patches | git_diff | crytic__slither-1110 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[Bug-Candidate]: Phi-node print missing 'f' in f-string
### Describe the issue:
When printing a Phi-node the string is not formatted.
There seems to be a 'f' missing ahead of the str in https://github.com/c... | diff --git a/slither/slithir/operations/phi.py b/slither/slithir/operations/phi.py
--- a/slither/slithir/operations/phi.py
+++ b/slither/slithir/operations/phi.py
@@ -33,4 +33,4 @@
return self._nodes
def __str__(self):
- return "{self.lvalue}({self.lvalue.type}) := \u03D5({[str(v) for v in self._... | {"golden_diff": "diff --git a/slither/slithir/operations/phi.py b/slither/slithir/operations/phi.py\n--- a/slither/slithir/operations/phi.py\n+++ b/slither/slithir/operations/phi.py\n@@ -33,4 +33,4 @@\n return self._nodes\n \n def __str__(self):\n- return \"{self.lvalue}({self.lvalue.type}) := \\u03D... |
gh_patches_debug_198 | rasdani/github-patches | git_diff | acl-org__acl-anthology-3109 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Reingestion Request: ROCLING (10-20-2023)
### General information about this request
- [X] I confirm that I have read the [Information for Submitters](https://aclanthology.org/info/contrib/).
- [ ] I am subm... | diff --git a/bin/volumes_from_diff.py b/bin/volumes_from_diff.py
--- a/bin/volumes_from_diff.py
+++ b/bin/volumes_from_diff.py
@@ -20,6 +20,7 @@
volumes = []
for filepath in sys.stdin:
+ filepath = filepath.rstrip()
if filepath.startswith("python/") or not filepath.endswith(".xml"):
continue
| {"golden_diff": "diff --git a/bin/volumes_from_diff.py b/bin/volumes_from_diff.py\n--- a/bin/volumes_from_diff.py\n+++ b/bin/volumes_from_diff.py\n@@ -20,6 +20,7 @@\n \n volumes = []\n for filepath in sys.stdin:\n+ filepath = filepath.rstrip()\n if filepath.startswith(\"python/\") or not filepath.endswith(\".xml... |
gh_patches_debug_199 | rasdani/github-patches | git_diff | bookwyrm-social__bookwyrm-3224 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Notitications was not showing followers, now it's not showing anything and the notification page shows "System error"
**Describe the bug**
The notification page is not working. When I see that there's a new ... | diff --git a/bookwyrm/templatetags/utilities.py b/bookwyrm/templatetags/utilities.py
--- a/bookwyrm/templatetags/utilities.py
+++ b/bookwyrm/templatetags/utilities.py
@@ -125,7 +125,8 @@
name = parts[-1]
value = f"{name}@{domain}"
- return value
+ return value
+ return "a new user accou... | {"golden_diff": "diff --git a/bookwyrm/templatetags/utilities.py b/bookwyrm/templatetags/utilities.py\n--- a/bookwyrm/templatetags/utilities.py\n+++ b/bookwyrm/templatetags/utilities.py\n@@ -125,7 +125,8 @@\n name = parts[-1]\n value = f\"{name}@{domain}\"\n \n- return value\n+ return value\n+... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.