problem_id
stringlengths
18
22
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
58
prompt
stringlengths
1.1k
10.2k
golden_diff
stringlengths
151
4.94k
verification_info
stringlengths
582
21k
num_tokens
int64
271
2.05k
num_tokens_diff
int64
47
1.02k
gh_patches_debug_26748
rasdani/github-patches
git_diff
pyjanitor-devs__pyjanitor-966
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Example of groupby_agg shows wrong output # Brief Description of Fix <!-- Please describe the fix in terms of a "before" and "after". In other words, what's not so good about the current docs page, and wh...
diff --git a/janitor/functions/groupby_agg.py b/janitor/functions/groupby_agg.py --- a/janitor/functions/groupby_agg.py +++ b/janitor/functions/groupby_agg.py @@ -35,7 +35,7 @@ agg='mean', agg_column_name="col1" ...
{"golden_diff": "diff --git a/janitor/functions/groupby_agg.py b/janitor/functions/groupby_agg.py\n--- a/janitor/functions/groupby_agg.py\n+++ b/janitor/functions/groupby_agg.py\n@@ -35,7 +35,7 @@\n agg='mean',\n agg_column_name=\"col...
1,470
494
gh_patches_debug_48464
rasdani/github-patches
git_diff
mirumee__ariadne-840
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update Starlette dependency to 0.19 Starlette 0.19 has been released, we should bump Ariadne's version to it before releasing 0.15 --- END ISSUE --- Below are some code segments, each from a relevant file....
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ include_package_data=True, install_requires=[ "graphql-core>=3.2.0,<3.3", - "starlette<0.19", + "starlette>0.17<0.20", "typing_extensions>=3.6.0", ], extras_require={"asgi-file-uploads": ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -33,7 +33,7 @@\n include_package_data=True,\n install_requires=[\n \"graphql-core>=3.2.0,<3.3\",\n- \"starlette<0.19\",\n+ \"starlette>0.17<0.20\",\n \"typing_extensions>=3.6.0\",\n ],\n e...
734
119
gh_patches_debug_6633
rasdani/github-patches
git_diff
ESMCI__cime-544
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Get PFS test working. PFS does not produce history files because it does not set HIST_N or HIST_OPTION. The test fails because it tries to move history files that aren't there. --- END ISSUE --- Below are ...
diff --git a/utils/python/CIME/SystemTests/pfs.py b/utils/python/CIME/SystemTests/pfs.py --- a/utils/python/CIME/SystemTests/pfs.py +++ b/utils/python/CIME/SystemTests/pfs.py @@ -18,11 +18,5 @@ SystemTestsCommon.__init__(self, case) def run_phase(self): - self._case.set_value("STOP_OPTION", "nday...
{"golden_diff": "diff --git a/utils/python/CIME/SystemTests/pfs.py b/utils/python/CIME/SystemTests/pfs.py\n--- a/utils/python/CIME/SystemTests/pfs.py\n+++ b/utils/python/CIME/SystemTests/pfs.py\n@@ -18,11 +18,5 @@\n SystemTestsCommon.__init__(self, case)\n \n def run_phase(self):\n- self._case.set_va...
548
178
gh_patches_debug_4430
rasdani/github-patches
git_diff
jupyter__docker-stacks-1412
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- We fail to push our multi-arch images We successfully login with `docker login`, but we fail to push images. I'm unsure why, we only get 401 Unauthorized and that's it. ### From [CI run that failed](https:...
diff --git a/tagging/tag_image.py b/tagging/tag_image.py --- a/tagging/tag_image.py +++ b/tagging/tag_image.py @@ -38,7 +38,9 @@ if tags: env_name = f'{short_image_name.replace("-", "_")}_EXTRA_TAG_ARGS' - docker_build_tag_args = "-t " + " -t ".join(tags) + docker_build_tag...
{"golden_diff": "diff --git a/tagging/tag_image.py b/tagging/tag_image.py\n--- a/tagging/tag_image.py\n+++ b/tagging/tag_image.py\n@@ -38,7 +38,9 @@\n \n if tags:\n env_name = f'{short_image_name.replace(\"-\", \"_\")}_EXTRA_TAG_ARGS'\n- docker_build_tag_args = \"-t \" + \" -t \".join(tag...
1,649
132
gh_patches_debug_19274
rasdani/github-patches
git_diff
nautobot__nautobot-5223
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Custom field date-type objects AssertionError in GraphQL <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reporting reproducible bugs. If you need a...
diff --git a/nautobot/core/graphql/types.py b/nautobot/core/graphql/types.py --- a/nautobot/core/graphql/types.py +++ b/nautobot/core/graphql/types.py @@ -3,6 +3,7 @@ from django.contrib.contenttypes.models import ContentType import graphene import graphene_django_optimizer as gql_optimizer +from graphql import Grap...
{"golden_diff": "diff --git a/nautobot/core/graphql/types.py b/nautobot/core/graphql/types.py\n--- a/nautobot/core/graphql/types.py\n+++ b/nautobot/core/graphql/types.py\n@@ -3,6 +3,7 @@\n from django.contrib.contenttypes.models import ContentType\n import graphene\n import graphene_django_optimizer as gql_optimizer\n+...
1,530
203
gh_patches_debug_11157
rasdani/github-patches
git_diff
kivy__python-for-android-800
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cryptography recipe does not compile I'm trying to build Kivy app with: - sdl2 bootstrap - recipes python2,kivy,cryptography - buildozer 0.32 - latest python-for-android master branch In libffi recipe I h...
diff --git a/pythonforandroid/recipes/libffi/__init__.py b/pythonforandroid/recipes/libffi/__init__.py --- a/pythonforandroid/recipes/libffi/__init__.py +++ b/pythonforandroid/recipes/libffi/__init__.py @@ -40,7 +40,7 @@ with current_directory(self.get_build_dir(arch.arch)): if not exists('configure'): shpr...
{"golden_diff": "diff --git a/pythonforandroid/recipes/libffi/__init__.py b/pythonforandroid/recipes/libffi/__init__.py\n--- a/pythonforandroid/recipes/libffi/__init__.py\n+++ b/pythonforandroid/recipes/libffi/__init__.py\n@@ -40,7 +40,7 @@\n \t\twith current_directory(self.get_build_dir(arch.arch)):\n \t\t\tif not exi...
1,243
182
gh_patches_debug_19803
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-1678
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Braintree error when selecting address I have had the follow error for the past couple of months: > fetch failed for source Braintree District Council: Traceback (most recent call last): File "/config/cust...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/braintree_gov_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/braintree_gov_uk.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/braintree_gov_uk.py +++ b/cu...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/braintree_gov_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/braintree_gov_uk.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/braintree_...
1,324
245
gh_patches_debug_30483
rasdani/github-patches
git_diff
tobymao__sqlglot-975
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ClickHouse WITH statement According to ClickHouse [docs](https://clickhouse.com/docs/en/sql-reference/statements/select/with/), `WITH` statement looks like `WITH <expression> AS <identifier>`. `sqlglot` expec...
diff --git a/sqlglot/dialects/clickhouse.py b/sqlglot/dialects/clickhouse.py --- a/sqlglot/dialects/clickhouse.py +++ b/sqlglot/dialects/clickhouse.py @@ -4,6 +4,7 @@ from sqlglot import exp, generator, parser, tokens from sqlglot.dialects.dialect import Dialect, inline_array_sql, var_map_sql +from sqlglot.errors i...
{"golden_diff": "diff --git a/sqlglot/dialects/clickhouse.py b/sqlglot/dialects/clickhouse.py\n--- a/sqlglot/dialects/clickhouse.py\n+++ b/sqlglot/dialects/clickhouse.py\n@@ -4,6 +4,7 @@\n \n from sqlglot import exp, generator, parser, tokens\n from sqlglot.dialects.dialect import Dialect, inline_array_sql, var_map_sql...
2,036
418
gh_patches_debug_15643
rasdani/github-patches
git_diff
platformsh__platformsh-docs-1859
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Poor search results If I search on https://docs.platform.sh for "routes", I get the following results: * https://docs.platform.sh/administration/web/configure-environment.html#routes * https://docs.platfo...
diff --git a/search/main.py b/search/main.py --- a/search/main.py +++ b/search/main.py @@ -23,7 +23,7 @@ # Data available to the dropdown React app in docs, used to fill out autocomplete results. self.displayed_attributes = ['title', 'text', 'url', 'site', 'section'] # Data actually searchabl...
{"golden_diff": "diff --git a/search/main.py b/search/main.py\n--- a/search/main.py\n+++ b/search/main.py\n@@ -23,7 +23,7 @@\n # Data available to the dropdown React app in docs, used to fill out autocomplete results.\n self.displayed_attributes = ['title', 'text', 'url', 'site', 'section']\n # ...
1,961
169
gh_patches_debug_3310
rasdani/github-patches
git_diff
ansible-collections__community.general-6942
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- machinectl become plugin does not specify it requires a tty ### Summary see https://github.com/ansible/ansible/issues/81254 if the plugin sets the class attribute: ``` require_tty = True ``` It w...
diff --git a/plugins/become/machinectl.py b/plugins/become/machinectl.py --- a/plugins/become/machinectl.py +++ b/plugins/become/machinectl.py @@ -102,6 +102,7 @@ prompt = 'Password: ' fail = ('==== AUTHENTICATION FAILED ====',) success = ('==== AUTHENTICATION COMPLETE ====',) + require_tty = True # ...
{"golden_diff": "diff --git a/plugins/become/machinectl.py b/plugins/become/machinectl.py\n--- a/plugins/become/machinectl.py\n+++ b/plugins/become/machinectl.py\n@@ -102,6 +102,7 @@\n prompt = 'Password: '\n fail = ('==== AUTHENTICATION FAILED ====',)\n success = ('==== AUTHENTICATION COMPLETE ====',)\n+ ...
1,903
126
gh_patches_debug_22741
rasdani/github-patches
git_diff
aio-libs__aiohttp-5364
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Switch http_parser to llhttp Nodejs decide to move from their hard-coded C parser to this one. https://github.com/nodejs/http-parser/pull/285#issuecomment-456025694 *Upd:* proposed parser is https://l...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ NO_EXTENSIONS = True -if IS_GIT_REPO and not (HERE / "vendor/http-parser/README.md").exists(): +if IS_GIT_REPO and not (HERE / "vendor/llhttp/README.md").exists(): print("Install submodules when building from git clone", file...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -18,7 +18,7 @@\n NO_EXTENSIONS = True\n \n \n-if IS_GIT_REPO and not (HERE / \"vendor/http-parser/README.md\").exists():\n+if IS_GIT_REPO and not (HERE / \"vendor/llhttp/README.md\").exists():\n print(\"Install submodules when...
1,713
293
gh_patches_debug_5390
rasdani/github-patches
git_diff
scalableminds__webknossos-libs-47
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tiled cubing doesn't convert last slice Tiled cubing doesn't convert last slice --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- ...
diff --git a/wkcuber/utils.py b/wkcuber/utils.py --- a/wkcuber/utils.py +++ b/wkcuber/utils.py @@ -63,9 +63,10 @@ yield arr[i : i + chunk_size] +# min_z and max_z are both inclusive def get_regular_chunks(min_z, max_z, chunk_size): i = floor(min_z / chunk_size) * chunk_size - while i < ceil(max_z ...
{"golden_diff": "diff --git a/wkcuber/utils.py b/wkcuber/utils.py\n--- a/wkcuber/utils.py\n+++ b/wkcuber/utils.py\n@@ -63,9 +63,10 @@\n yield arr[i : i + chunk_size]\n \n \n+# min_z and max_z are both inclusive\n def get_regular_chunks(min_z, max_z, chunk_size):\n i = floor(min_z / chunk_size) * chunk_size\...
1,314
146
gh_patches_debug_41984
rasdani/github-patches
git_diff
Mailu__Mailu-769
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Setup: generated files missing Traefik is ending up in a looped redirect when trying to download the generated files. Flask blueprint context to be modified to simplify the forwarding and eliminate the need f...
diff --git a/setup/server.py b/setup/server.py --- a/setup/server.py +++ b/setup/server.py @@ -10,7 +10,9 @@ import ipaddress -app = flask.Flask(__name__) +version = os.getenv("this_version") +static_url_path = "/" + version + "/static" +app = flask.Flask(__name__, static_url_path=static_url_path) flask_bootstrap...
{"golden_diff": "diff --git a/setup/server.py b/setup/server.py\n--- a/setup/server.py\n+++ b/setup/server.py\n@@ -10,7 +10,9 @@\n import ipaddress\n \n \n-app = flask.Flask(__name__)\n+version = os.getenv(\"this_version\")\n+static_url_path = \"/\" + version + \"/static\"\n+app = flask.Flask(__name__, static_url_path=...
1,126
832
gh_patches_debug_16544
rasdani/github-patches
git_diff
e-valuation__EvaP-1428
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Contributors missing in editor evaluation edit form When editing an evaluation as an editor, contributors who have already been added (by managers) and who are marked as inactive or proxy users are not shown ...
diff --git a/evap/contributor/forms.py b/evap/contributor/forms.py --- a/evap/contributor/forms.py +++ b/evap/contributor/forms.py @@ -68,9 +68,13 @@ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) + existing_contributor_pk = self.instance.contributor.pk if self.instance.co...
{"golden_diff": "diff --git a/evap/contributor/forms.py b/evap/contributor/forms.py\n--- a/evap/contributor/forms.py\n+++ b/evap/contributor/forms.py\n@@ -68,9 +68,13 @@\n def __init__(self, *args, **kwargs):\n super().__init__(*args, **kwargs)\n \n+ existing_contributor_pk = self.instance.contributo...
1,481
220
gh_patches_debug_5473
rasdani/github-patches
git_diff
napari__napari-1250
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- working on fixing tests ## 🐛 Bug here are some crazy observations that started from looking into the test failure in #923, and may have some implications for general test fixes that we want to look into i...
diff --git a/napari/__init__.py b/napari/__init__.py --- a/napari/__init__.py +++ b/napari/__init__.py @@ -69,13 +69,5 @@ # register napari object types with magicgui if it is installed _magicgui.register_types_with_magicgui() - -# this unused import is here to fix a very strange bug. -# there is some mysterious ma...
{"golden_diff": "diff --git a/napari/__init__.py b/napari/__init__.py\n--- a/napari/__init__.py\n+++ b/napari/__init__.py\n@@ -69,13 +69,5 @@\n # register napari object types with magicgui if it is installed\n _magicgui.register_types_with_magicgui()\n \n-\n-# this unused import is here to fix a very strange bug.\n-# t...
1,524
161
gh_patches_debug_5727
rasdani/github-patches
git_diff
secdev__scapy-1040
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Problems while importing scapy on some environments (e.g. Eclipse, some peculiarly configured Windows boxes etc.) Scapy Version: v2.3.3-1008 System: Windows10 Python Version: 2.7.14 Updated (closed) iss...
diff --git a/scapy/__init__.py b/scapy/__init__.py --- a/scapy/__init__.py +++ b/scapy/__init__.py @@ -38,7 +38,7 @@ >>> _version_from_git_describe() '2.3.2.dev346' """ - if not os.path.isdir(os.path.join(_SCAPY_PKG_DIR, '../.git')): + if not os.path.isdir(os.path.join(os.path.dirname(_SCAP...
{"golden_diff": "diff --git a/scapy/__init__.py b/scapy/__init__.py\n--- a/scapy/__init__.py\n+++ b/scapy/__init__.py\n@@ -38,7 +38,7 @@\n >>> _version_from_git_describe()\n '2.3.2.dev346'\n \"\"\"\n- if not os.path.isdir(os.path.join(_SCAPY_PKG_DIR, '../.git')):\n+ if not os.path.isdir(os.pat...
1,645
149
gh_patches_debug_2167
rasdani/github-patches
git_diff
mkdocs__mkdocs-1122
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier' Using Python 2.6.6 on CentOS, I'm unable to run the server with livereload: ``` [mkdocs@dev test-docs]$ python /home/mkdocs/.local/l...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -60,7 +60,7 @@ install_requires=[ 'click>=3.3', 'Jinja2>=2.7.1', - 'livereload>=2.3.2', + 'livereload>=2.5.1', 'Markdown>=2.3.1,<2.5' if PY26 else 'Markdown>=2.3.1', 'PyYAML>=3.10', 'tornado...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -60,7 +60,7 @@\n install_requires=[\n 'click>=3.3',\n 'Jinja2>=2.7.1',\n- 'livereload>=2.3.2',\n+ 'livereload>=2.5.1',\n 'Markdown>=2.3.1,<2.5' if PY26 else 'Markdown>=2.3.1',\n 'PyYAM...
2,034
130
gh_patches_debug_475
rasdani/github-patches
git_diff
cupy__cupy-545
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- cupy.broadcast_arrays returns tuple, while numpy returns list CuPy: current master (e51b311) ``` >>> cupy.broadcast_arrays(cupy.ones((1,)), cupy.ones((2))) (array([ 1., 1.]), array([ 1., 1.])) >>> numpy...
diff --git a/cupy/manipulation/dims.py b/cupy/manipulation/dims.py --- a/cupy/manipulation/dims.py +++ b/cupy/manipulation/dims.py @@ -117,7 +117,7 @@ .. seealso:: :func:`numpy.broadcast_arrays` """ - return broadcast(*args).values + return list(broadcast(*args).values) def broadcast_to(array, sh...
{"golden_diff": "diff --git a/cupy/manipulation/dims.py b/cupy/manipulation/dims.py\n--- a/cupy/manipulation/dims.py\n+++ b/cupy/manipulation/dims.py\n@@ -117,7 +117,7 @@\n .. seealso:: :func:`numpy.broadcast_arrays`\n \n \"\"\"\n- return broadcast(*args).values\n+ return list(broadcast(*args).values)\n \...
2,031
101
gh_patches_debug_41105
rasdani/github-patches
git_diff
aws__aws-cli-4159
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- aws eks get-token doesn't work with --profile When going to use `aws --profile profilename eks get-token --cluster-name eksClusterName` I receive the following error `Unable to locate credentials. You can con...
diff --git a/awscli/customizations/eks/get_token.py b/awscli/customizations/eks/get_token.py --- a/awscli/customizations/eks/get_token.py +++ b/awscli/customizations/eks/get_token.py @@ -54,11 +54,13 @@ } ] - def _run_main(self, parsed_args, parsed_globals): - token_generator = TokenGenerator(...
{"golden_diff": "diff --git a/awscli/customizations/eks/get_token.py b/awscli/customizations/eks/get_token.py\n--- a/awscli/customizations/eks/get_token.py\n+++ b/awscli/customizations/eks/get_token.py\n@@ -54,11 +54,13 @@\n }\n ]\n \n- def _run_main(self, parsed_args, parsed_globals):\n- token_ge...
1,872
730
gh_patches_debug_10190
rasdani/github-patches
git_diff
kivy__python-for-android-1112
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Websocket error: SSL not available Getting this error when attempting to open a secure websocket ('wss://') using websocket-client. 09-02 09:12:04.037 10328 10719 I python : [ERROR ] [MyApp] Websocket err...
diff --git a/pythonforandroid/recipes/websocket-client/__init__.py b/pythonforandroid/recipes/websocket-client/__init__.py --- a/pythonforandroid/recipes/websocket-client/__init__.py +++ b/pythonforandroid/recipes/websocket-client/__init__.py @@ -5,6 +5,12 @@ # copy the 'websocket' directory into your app director...
{"golden_diff": "diff --git a/pythonforandroid/recipes/websocket-client/__init__.py b/pythonforandroid/recipes/websocket-client/__init__.py\n--- a/pythonforandroid/recipes/websocket-client/__init__.py\n+++ b/pythonforandroid/recipes/websocket-client/__init__.py\n@@ -5,6 +5,12 @@\n # copy the 'websocket' directory i...
870
204
gh_patches_debug_617
rasdani/github-patches
git_diff
pex-tool__pex-1618
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.67 On the docket: + [x] Expand --platform syntax: support full versions. #1614 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contai...
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.66" +__version__ = "2.1.67"
{"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.66\"\n+__version__ = \"2.1.67\"\n", "...
341
96
gh_patches_debug_22356
rasdani/github-patches
git_diff
scrapy__scrapy-4375
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "DeprecationWarning: Use of 'SCRAPY_'-prefixed environment variables" always shows `ScrapyDeprecationWarning: Use of 'SCRAPY_'-prefixed environment variables to override settings is deprecated.` This depre...
diff --git a/scrapy/utils/project.py b/scrapy/utils/project.py --- a/scrapy/utils/project.py +++ b/scrapy/utils/project.py @@ -75,9 +75,24 @@ "is deprecated.", ScrapyDeprecationWarning) settings.setdict(pickle.loads(pickled_settings), priority='project') - env_overrides = {k[7:]: v ...
{"golden_diff": "diff --git a/scrapy/utils/project.py b/scrapy/utils/project.py\n--- a/scrapy/utils/project.py\n+++ b/scrapy/utils/project.py\n@@ -75,9 +75,24 @@\n \"is deprecated.\", ScrapyDeprecationWarning)\n settings.setdict(pickle.loads(pickled_settings), priority='project')\n \n- ...
1,317
357
gh_patches_debug_17901
rasdani/github-patches
git_diff
openstates__openstates-scrapers-386
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NY: Native American Relations committee is not being scraped correctly http://www.nysenate.gov/committee/state-native-american-relations http://openstates.org/admin/object_json/committees/NYC000116/ --- END...
diff --git a/openstates/ny/committees.py b/openstates/ny/committees.py --- a/openstates/ny/committees.py +++ b/openstates/ny/committees.py @@ -84,15 +84,17 @@ page = lxml.html.fromstring(page) page.make_links_absolute(url) - for link in page.xpath("//a[contains(@href, '/committee/')]"): - ...
{"golden_diff": "diff --git a/openstates/ny/committees.py b/openstates/ny/committees.py\n--- a/openstates/ny/committees.py\n+++ b/openstates/ny/committees.py\n@@ -84,15 +84,17 @@\n page = lxml.html.fromstring(page)\n page.make_links_absolute(url)\n \n- for link in page.xpath(\"//a[contains(@href,...
1,554
264
gh_patches_debug_4705
rasdani/github-patches
git_diff
ultrabug__py3status-1549
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- default config location I have installed ubuntu 18.04 and it makes sense to put my `i3status.conf` in `~/.config/i3/` but this is not found by default. I think we should add this path. --- END ISSUE --- Be...
diff --git a/py3status/cli.py b/py3status/cli.py --- a/py3status/cli.py +++ b/py3status/cli.py @@ -19,6 +19,7 @@ "{}/i3status/config".format( os.environ.get("XDG_CONFIG_HOME", "{}/.config".format(home_path)) ), + "{}/.config/i3/".format(home_path), "/etc/i3status.conf", ...
{"golden_diff": "diff --git a/py3status/cli.py b/py3status/cli.py\n--- a/py3status/cli.py\n+++ b/py3status/cli.py\n@@ -19,6 +19,7 @@\n \"{}/i3status/config\".format(\n os.environ.get(\"XDG_CONFIG_HOME\", \"{}/.config\".format(home_path))\n ),\n+ \"{}/.config/i3/\".format(home_path),\n...
1,521
123
gh_patches_debug_36208
rasdani/github-patches
git_diff
getsentry__sentry-4117
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Parse the email template contexts for identifiers and log them along with the mail.queued event. We currently log types of mail sent but do not add any context along with that, so it's easy to see that someon...
diff --git a/src/sentry/plugins/bases/notify.py b/src/sentry/plugins/bases/notify.py --- a/src/sentry/plugins/bases/notify.py +++ b/src/sentry/plugins/bases/notify.py @@ -64,19 +64,28 @@ def rule_notify(self, event, futures): rules = [] + extra = { + 'event_id': event.id, + ...
{"golden_diff": "diff --git a/src/sentry/plugins/bases/notify.py b/src/sentry/plugins/bases/notify.py\n--- a/src/sentry/plugins/bases/notify.py\n+++ b/src/sentry/plugins/bases/notify.py\n@@ -64,19 +64,28 @@\n \n def rule_notify(self, event, futures):\n rules = []\n+ extra = {\n+ 'event_id'...
1,936
445
gh_patches_debug_895
rasdani/github-patches
git_diff
ESMCI__cime-993
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- scripts_regression_tests.py O_TestTestScheduler This test fails with error SystemExit: ERROR: Leftover threads? when run as part of the full scripts_regression_tests.py but passes when run using ctest or w...
diff --git a/utils/python/CIME/code_checker.py b/utils/python/CIME/code_checker.py --- a/utils/python/CIME/code_checker.py +++ b/utils/python/CIME/code_checker.py @@ -106,4 +106,6 @@ pool = ThreadPool(num_procs) results = pool.map(lambda x : _run_pylint(x, interactive), files_to_check) + pool.close() + ...
{"golden_diff": "diff --git a/utils/python/CIME/code_checker.py b/utils/python/CIME/code_checker.py\n--- a/utils/python/CIME/code_checker.py\n+++ b/utils/python/CIME/code_checker.py\n@@ -106,4 +106,6 @@\n \n pool = ThreadPool(num_procs)\n results = pool.map(lambda x : _run_pylint(x, interactive), files_to_check...
1,475
98
gh_patches_debug_19899
rasdani/github-patches
git_diff
modin-project__modin-6123
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `pd.read_feather(file)` actually reads the file twice! There's a really strange logic in our Feather dispatcher introduced a long time ago that reads the whole Feather file just to extract its column names: ...
diff --git a/modin/core/io/column_stores/feather_dispatcher.py b/modin/core/io/column_stores/feather_dispatcher.py --- a/modin/core/io/column_stores/feather_dispatcher.py +++ b/modin/core/io/column_stores/feather_dispatcher.py @@ -52,13 +52,15 @@ import_optional_dependency( "pyarrow", "pya...
{"golden_diff": "diff --git a/modin/core/io/column_stores/feather_dispatcher.py b/modin/core/io/column_stores/feather_dispatcher.py\n--- a/modin/core/io/column_stores/feather_dispatcher.py\n+++ b/modin/core/io/column_stores/feather_dispatcher.py\n@@ -52,13 +52,15 @@\n import_optional_dependency(\n ...
1,097
258
gh_patches_debug_13994
rasdani/github-patches
git_diff
paperless-ngx__paperless-ngx-2057
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Tesseract checks function doesn't recognize Chinese language (and some other languages) correctly ### Description Good morning, I am new user of paperless-ngx. I tried to start a container using the ...
diff --git a/src/paperless_tesseract/checks.py b/src/paperless_tesseract/checks.py --- a/src/paperless_tesseract/checks.py +++ b/src/paperless_tesseract/checks.py @@ -1,3 +1,4 @@ +import shutil import subprocess from django.conf import settings @@ -7,10 +8,16 @@ def get_tesseract_langs(): - with subprocess....
{"golden_diff": "diff --git a/src/paperless_tesseract/checks.py b/src/paperless_tesseract/checks.py\n--- a/src/paperless_tesseract/checks.py\n+++ b/src/paperless_tesseract/checks.py\n@@ -1,3 +1,4 @@\n+import shutil\n import subprocess\n \n from django.conf import settings\n@@ -7,10 +8,16 @@\n \n \n def get_tesseract_la...
1,538
248
gh_patches_debug_37785
rasdani/github-patches
git_diff
DataDog__dd-agent-1241
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Marathon >= 0.7 failing The Marathon plugin checks the TaskRateLimit attribute from the Marathon 0.6 API version, which has been removed https://github.com/mesosphere/marathon/blob/master/docs/docs/upgrade/06...
diff --git a/checks.d/marathon.py b/checks.d/marathon.py --- a/checks.d/marathon.py +++ b/checks.d/marathon.py @@ -1,11 +1,9 @@ # stdlib import time from hashlib import md5 -import urllib2 # project from checks import AgentCheck -from util import headers # 3rd party import simplejson as json @@ -27,8 +25,9 @...
{"golden_diff": "diff --git a/checks.d/marathon.py b/checks.d/marathon.py\n--- a/checks.d/marathon.py\n+++ b/checks.d/marathon.py\n@@ -1,11 +1,9 @@\n # stdlib\n import time\n from hashlib import md5\n-import urllib2\n \n # project\n from checks import AgentCheck\n-from util import headers\n \n # 3rd party\n import simp...
1,417
531
gh_patches_debug_27684
rasdani/github-patches
git_diff
TheAlgorithms__Python-7406
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update gaussian_naive_bayes.py Using the seaborn.heatmap library to plot the confusion matrix instead of the plot_confusion_matrix method from the sklearn.metrics module. ### Describe your change: Adding ...
diff --git a/machine_learning/gaussian_naive_bayes.py b/machine_learning/gaussian_naive_bayes.py --- a/machine_learning/gaussian_naive_bayes.py +++ b/machine_learning/gaussian_naive_bayes.py @@ -1,7 +1,9 @@ # Gaussian Naive Bayes Example +import time + from matplotlib import pyplot as plt from sklearn.datasets impor...
{"golden_diff": "diff --git a/machine_learning/gaussian_naive_bayes.py b/machine_learning/gaussian_naive_bayes.py\n--- a/machine_learning/gaussian_naive_bayes.py\n+++ b/machine_learning/gaussian_naive_bayes.py\n@@ -1,7 +1,9 @@\n # Gaussian Naive Bayes Example\n+import time\n+\n from matplotlib import pyplot as plt\n fr...
991
380
gh_patches_debug_4865
rasdani/github-patches
git_diff
svthalia__concrexit-2218
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Don't revoke staff status for superusers ### Describe the bug After #312, staff status will get revoked for superusers too. That shouldn't happen ### How to reproduce Have a super user that is not in a c...
diff --git a/website/activemembers/services.py b/website/activemembers/services.py --- a/website/activemembers/services.py +++ b/website/activemembers/services.py @@ -36,7 +36,7 @@ members = Member.objects.filter(is_staff=True) revoked = [] for member in members: - if member.get_member_groups().co...
{"golden_diff": "diff --git a/website/activemembers/services.py b/website/activemembers/services.py\n--- a/website/activemembers/services.py\n+++ b/website/activemembers/services.py\n@@ -36,7 +36,7 @@\n members = Member.objects.filter(is_staff=True)\n revoked = []\n for member in members:\n- if membe...
652
126
gh_patches_debug_28541
rasdani/github-patches
git_diff
pyca__cryptography-5517
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Revisit _extra_compile_args in build_openssl.py Now that we're dropping 1.0.2 in #5511, it's time to review that. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of th...
diff --git a/src/_cffi_src/build_openssl.py b/src/_cffi_src/build_openssl.py --- a/src/_cffi_src/build_openssl.py +++ b/src/_cffi_src/build_openssl.py @@ -51,10 +51,9 @@ We set -Wconversion args here so that we only do Wconversion checks on the code we're compiling and not on cffi itself (as passing -Wconvers...
{"golden_diff": "diff --git a/src/_cffi_src/build_openssl.py b/src/_cffi_src/build_openssl.py\n--- a/src/_cffi_src/build_openssl.py\n+++ b/src/_cffi_src/build_openssl.py\n@@ -51,10 +51,9 @@\n We set -Wconversion args here so that we only do Wconversion checks on the\n code we're compiling and not on cffi itself...
1,608
422
gh_patches_debug_2408
rasdani/github-patches
git_diff
tornadoweb__tornado-3167
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tornado 6.2 release readiness I'm creating this issue to collect feedback on the 6.2 betas. For the folks who have tried them, do you think the release is ready to go or are there still more changes to be mad...
diff --git a/tornado/__init__.py b/tornado/__init__.py --- a/tornado/__init__.py +++ b/tornado/__init__.py @@ -22,5 +22,5 @@ # is zero for an official release, positive for a development branch, # or negative for a release candidate or beta (after the base version # number has been incremented) -version = "6.2b2" -v...
{"golden_diff": "diff --git a/tornado/__init__.py b/tornado/__init__.py\n--- a/tornado/__init__.py\n+++ b/tornado/__init__.py\n@@ -22,5 +22,5 @@\n # is zero for an official release, positive for a development branch,\n # or negative for a release candidate or beta (after the base version\n # number has been incremented...
635
132
gh_patches_debug_37518
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-475
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- data.umweltprofis.at: iCal service retired I had to change the interval in my data.umweltprofis.at waste schedule when I noticed that the server throws an error when requesting a new iCal link at https://data...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/data_umweltprofis_at.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/data_umweltprofis_at.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/data_umweltprofis_at...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/data_umweltprofis_at.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/data_umweltprofis_at.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/da...
786
735
gh_patches_debug_31544
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-1982
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- IAM ManagedPolicy PolicyDocument Character limit of 6144 should not include whitespaces *cfn-lint version: (`cfn-lint --version`)* 0.48.2 *Description of issue.* There is a 6,144 character limit on IAM ma...
diff --git a/src/cfnlint/rules/resources/properties/JsonSize.py b/src/cfnlint/rules/resources/properties/JsonSize.py --- a/src/cfnlint/rules/resources/properties/JsonSize.py +++ b/src/cfnlint/rules/resources/properties/JsonSize.py @@ -66,19 +66,25 @@ scenarios = cfn.get_object_without_nested_conditions(value, ...
{"golden_diff": "diff --git a/src/cfnlint/rules/resources/properties/JsonSize.py b/src/cfnlint/rules/resources/properties/JsonSize.py\n--- a/src/cfnlint/rules/resources/properties/JsonSize.py\n+++ b/src/cfnlint/rules/resources/properties/JsonSize.py\n@@ -66,19 +66,25 @@\n scenarios = cfn.get_object_without_nest...
2,010
419
gh_patches_debug_13843
rasdani/github-patches
git_diff
rucio__rucio-1799
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- REST call for requests is broken by '/' in DIDs Motivation ---------- As discussed in #1786 , the REST call of https://github.com/rucio/rucio/blob/master/lib/rucio/web/rest/webpy/v1/request.py get broken fo...
diff --git a/lib/rucio/web/rest/webpy/v1/request.py b/lib/rucio/web/rest/webpy/v1/request.py --- a/lib/rucio/web/rest/webpy/v1/request.py +++ b/lib/rucio/web/rest/webpy/v1/request.py @@ -26,6 +26,7 @@ from web import application, ctx, loadhook, header from rucio.api import request +from rucio.common.schema import S...
{"golden_diff": "diff --git a/lib/rucio/web/rest/webpy/v1/request.py b/lib/rucio/web/rest/webpy/v1/request.py\n--- a/lib/rucio/web/rest/webpy/v1/request.py\n+++ b/lib/rucio/web/rest/webpy/v1/request.py\n@@ -26,6 +26,7 @@\n from web import application, ctx, loadhook, header\n \n from rucio.api import request\n+from ruci...
1,098
211
gh_patches_debug_23537
rasdani/github-patches
git_diff
cloud-custodian__cloud-custodian-6652
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- GCP- dataflow deprecated view and now doesn't return complete information Looks like gcp deprecated the dataflow list ability to get all dataflow job information. It only returns `JOB_VIEW_SUMMARY ` https:...
diff --git a/tools/c7n_gcp/c7n_gcp/resources/dataflow.py b/tools/c7n_gcp/c7n_gcp/resources/dataflow.py --- a/tools/c7n_gcp/c7n_gcp/resources/dataflow.py +++ b/tools/c7n_gcp/c7n_gcp/resources/dataflow.py @@ -1,6 +1,7 @@ # Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import jmespath +fr...
{"golden_diff": "diff --git a/tools/c7n_gcp/c7n_gcp/resources/dataflow.py b/tools/c7n_gcp/c7n_gcp/resources/dataflow.py\n--- a/tools/c7n_gcp/c7n_gcp/resources/dataflow.py\n+++ b/tools/c7n_gcp/c7n_gcp/resources/dataflow.py\n@@ -1,6 +1,7 @@\n # Copyright The Cloud Custodian Authors.\n # SPDX-License-Identifier: Apache-2....
687
348
gh_patches_debug_1601
rasdani/github-patches
git_diff
mkdocs__mkdocs-1940
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Jinja2 2.10 security vulnerability reported by GitHub Hi I just got an alert on my github repo (where we use mkdocs to build our doc) for Jinja2 2.10: - https://github.com/eclipse/openj9-docs/network/al...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -55,7 +55,7 @@ include_package_data=True, install_requires=[ 'click>=3.3', - 'Jinja2>=2.7.1', + 'Jinja2>=2.10.1', 'livereload>=2.5.1', 'lunr[languages]>=0.5.2', 'Markdown>=2.3.1',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -55,7 +55,7 @@\n include_package_data=True,\n install_requires=[\n 'click>=3.3',\n- 'Jinja2>=2.7.1',\n+ 'Jinja2>=2.10.1',\n 'livereload>=2.5.1',\n 'lunr[languages]>=0.5.2',\n 'Mark...
1,371
113
gh_patches_debug_3028
rasdani/github-patches
git_diff
modal-labs__modal-examples-556
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- apply #556 manually I manually applied the patch from #556. Not sure what's up with that PR --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain ...
diff --git a/01_getting_started/hello_world.py b/01_getting_started/hello_world.py --- a/01_getting_started/hello_world.py +++ b/01_getting_started/hello_world.py @@ -48,7 +48,7 @@ # # Inside the `main()` function body, we are calling the function `f` in three ways: # -# 1 As a simple local call, `f(1000)` +# 1 As...
{"golden_diff": "diff --git a/01_getting_started/hello_world.py b/01_getting_started/hello_world.py\n--- a/01_getting_started/hello_world.py\n+++ b/01_getting_started/hello_world.py\n@@ -48,7 +48,7 @@\n #\n # Inside the `main()` function body, we are calling the function `f` in three ways:\n #\n-# 1 As a simple local ...
1,262
160
gh_patches_debug_33431
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-273
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [E2503] fails incorrectly when intrinsic function used in Protocol value *cfn-lint version: 0.4.2* *Description of issue.* This is valid, and conforms to the spec, but rule throws an error: ```yaml ...
diff --git a/src/cfnlint/rules/resources/elb/Elb.py b/src/cfnlint/rules/resources/elb/Elb.py --- a/src/cfnlint/rules/resources/elb/Elb.py +++ b/src/cfnlint/rules/resources/elb/Elb.py @@ -30,13 +30,21 @@ def match(self, cfn): """Check ELB Resource Parameters""" + def is_intrinsic(input_obj): + ...
{"golden_diff": "diff --git a/src/cfnlint/rules/resources/elb/Elb.py b/src/cfnlint/rules/resources/elb/Elb.py\n--- a/src/cfnlint/rules/resources/elb/Elb.py\n+++ b/src/cfnlint/rules/resources/elb/Elb.py\n@@ -30,13 +30,21 @@\n def match(self, cfn):\n \"\"\"Check ELB Resource Parameters\"\"\"\n \n+ def ...
1,384
419
gh_patches_debug_4866
rasdani/github-patches
git_diff
locustio__locust-528
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add Python 3.6 to build pipeline --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `setup.py` Content: ``` 1 ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -28,6 +28,7 @@ "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", "Intended Audience :: Develope...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -28,6 +28,7 @@\n \"Programming Language :: Python :: 3.3\",\n \"Programming Language :: Python :: 3.4\",\n \"Programming Language :: Python :: 3.5\",\n+ \"Programming Language :: Python :: 3.6\",\n ...
837
101
gh_patches_debug_5987
rasdani/github-patches
git_diff
arviz-devs__arviz-343
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Docs are broken Looks like one of the examples still uses `n_eff`. From travis: ``` Exception occurred: File "/home/travis/build/arviz-devs/arviz/examples/plot_forest_ridge.py", line 20, in <module> ...
diff --git a/examples/plot_forest_ridge.py b/examples/plot_forest_ridge.py --- a/examples/plot_forest_ridge.py +++ b/examples/plot_forest_ridge.py @@ -15,7 +15,5 @@ combined=True, textsize=11, ridgeplot_overlap=3, - ...
{"golden_diff": "diff --git a/examples/plot_forest_ridge.py b/examples/plot_forest_ridge.py\n--- a/examples/plot_forest_ridge.py\n+++ b/examples/plot_forest_ridge.py\n@@ -15,7 +15,5 @@\n combined=True,\n textsize=11,\n ridgeplot_overlap=3,...
504
117
gh_patches_debug_21777
rasdani/github-patches
git_diff
zulip__zulip-19818
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- markdown: Document built-in preprocessor priorities. As a follow-up to #19783, it would be good to document the priorities assigned to the built-in preprocessors that the Python-Markdown library has. A couple...
diff --git a/zerver/lib/markdown/preprocessor_priorities.py b/zerver/lib/markdown/preprocessor_priorities.py --- a/zerver/lib/markdown/preprocessor_priorities.py +++ b/zerver/lib/markdown/preprocessor_priorities.py @@ -1,6 +1,7 @@ # Note that in the Markdown preprocessor registry, the highest # numeric value is consi...
{"golden_diff": "diff --git a/zerver/lib/markdown/preprocessor_priorities.py b/zerver/lib/markdown/preprocessor_priorities.py\n--- a/zerver/lib/markdown/preprocessor_priorities.py\n+++ b/zerver/lib/markdown/preprocessor_priorities.py\n@@ -1,6 +1,7 @@\n # Note that in the Markdown preprocessor registry, the highest\n # ...
664
286
gh_patches_debug_33064
rasdani/github-patches
git_diff
Textualize__textual-3825
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add message `Collapsible.Toggled` What it says on the tin. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `...
diff --git a/src/textual/widgets/_collapsible.py b/src/textual/widgets/_collapsible.py --- a/src/textual/widgets/_collapsible.py +++ b/src/textual/widgets/_collapsible.py @@ -99,6 +99,42 @@ } """ + class Toggled(Message): + """Parent class subclassed by `Collapsible` messages. + + Can be ha...
{"golden_diff": "diff --git a/src/textual/widgets/_collapsible.py b/src/textual/widgets/_collapsible.py\n--- a/src/textual/widgets/_collapsible.py\n+++ b/src/textual/widgets/_collapsible.py\n@@ -99,6 +99,42 @@\n }\n \"\"\"\n \n+ class Toggled(Message):\n+ \"\"\"Parent class subclassed by `Collapsible`...
1,803
557
gh_patches_debug_33956
rasdani/github-patches
git_diff
hylang__hy-2299
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Slow startup when Hy is installed from a wheel Testing the new release of 0.16.0, I see that startup is much slower when installing from the wheel than from the source distribution or directly from the reposi...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -5,6 +5,7 @@ import fastentrypoints # Monkey-patches setuptools. from get_version import __version__ from setuptools import find_packages, setup +from setuptools.command.install import install os.chdir(os.path.split(os.path.abspath(__file__))[0]) ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -5,6 +5,7 @@\n import fastentrypoints # Monkey-patches setuptools.\n from get_version import __version__\n from setuptools import find_packages, setup\n+from setuptools.command.install import install\n \n os.chdir(os.path.split(os.pa...
1,099
552
gh_patches_debug_22100
rasdani/github-patches
git_diff
microsoft__playwright-python-525
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Installation issues when using pdm [pdm](https://github.com/frostming/pdm/) is a new tool for Python environment managing. It works very well, but when I try to install playwright, it fails to install. You c...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -21,10 +21,12 @@ from pathlib import Path import setuptools +from auditwheel.wheeltools import InWheel from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand driver_version = "1.9.0-1614037901000" + def extractall(zip: zipfile.ZipFile,...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -21,10 +21,12 @@\n from pathlib import Path\n \n import setuptools\n+from auditwheel.wheeltools import InWheel\n from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand\n \n driver_version = \"1.9.0-1614037901000\"\n \n+\n def ...
2,000
283
gh_patches_debug_25931
rasdani/github-patches
git_diff
joke2k__faker-1103
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Implementation of person id number for cs_CZ - Czech (rodné číslo) Can you implement randomizer which will generate a proper person ID number (rodné číslo) for Czech local? --- END ISSUE --- Below are some ...
diff --git a/faker/providers/ssn/cs_CZ/__init__.py b/faker/providers/ssn/cs_CZ/__init__.py --- a/faker/providers/ssn/cs_CZ/__init__.py +++ b/faker/providers/ssn/cs_CZ/__init__.py @@ -1,3 +1,5 @@ +from math import ceil + from .. import Provider as BaseProvider @@ -8,6 +10,8 @@ 'CZ##########', ) + ...
{"golden_diff": "diff --git a/faker/providers/ssn/cs_CZ/__init__.py b/faker/providers/ssn/cs_CZ/__init__.py\n--- a/faker/providers/ssn/cs_CZ/__init__.py\n+++ b/faker/providers/ssn/cs_CZ/__init__.py\n@@ -1,3 +1,5 @@\n+from math import ceil\n+\n from .. import Provider as BaseProvider\n \n \n@@ -8,6 +10,8 @@\n 'C...
439
470
gh_patches_debug_17777
rasdani/github-patches
git_diff
googleapis__google-cloud-python-5424
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Monitoring alias package is missing new service clients https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/monitoring/google/cloud/monitoring.py is missing the new clients added to https:/...
diff --git a/monitoring/google/cloud/monitoring.py b/monitoring/google/cloud/monitoring.py --- a/monitoring/google/cloud/monitoring.py +++ b/monitoring/google/cloud/monitoring.py @@ -15,14 +15,21 @@ from __future__ import absolute_import from google.cloud.monitoring_v3.query import Query +from google.cloud.monitori...
{"golden_diff": "diff --git a/monitoring/google/cloud/monitoring.py b/monitoring/google/cloud/monitoring.py\n--- a/monitoring/google/cloud/monitoring.py\n+++ b/monitoring/google/cloud/monitoring.py\n@@ -15,14 +15,21 @@\n from __future__ import absolute_import\n \n from google.cloud.monitoring_v3.query import Query\n+fr...
614
233
gh_patches_debug_35214
rasdani/github-patches
git_diff
conan-io__conan-center-index-6951
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [request] stb/20210818 ### Package Details * Package Name/Version: **stb/20210818** There has been +1800 commits added to stb since Feb 2 of 2020, I greatly suggest updating it. The above mentioned v...
diff --git a/recipes/stb/all/conanfile.py b/recipes/stb/all/conanfile.py --- a/recipes/stb/all/conanfile.py +++ b/recipes/stb/all/conanfile.py @@ -1,27 +1,53 @@ from conans import ConanFile, tools import os +required_conan_version = ">=1.33.0" + + class StbConan(ConanFile): name = "stb" description = "si...
{"golden_diff": "diff --git a/recipes/stb/all/conanfile.py b/recipes/stb/all/conanfile.py\n--- a/recipes/stb/all/conanfile.py\n+++ b/recipes/stb/all/conanfile.py\n@@ -1,27 +1,53 @@\n from conans import ConanFile, tools\n import os\n \n+required_conan_version = \">=1.33.0\"\n+\n+\n class StbConan(ConanFile):\n name ...
712
653
gh_patches_debug_15650
rasdani/github-patches
git_diff
evennia__evennia-1733
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Disabling webclient does not actually disable it #### Steps to reproduce the issue / Reasons for adding feature: 1. Set WEBCLIENT_ENABLED to False 2. Link disappears from index page 3. Go to http://examp...
diff --git a/evennia/web/webclient/views.py b/evennia/web/webclient/views.py --- a/evennia/web/webclient/views.py +++ b/evennia/web/webclient/views.py @@ -5,6 +5,8 @@ """ from __future__ import print_function +from django.conf import settings +from django.http import Http404 from django.shortcuts import render fr...
{"golden_diff": "diff --git a/evennia/web/webclient/views.py b/evennia/web/webclient/views.py\n--- a/evennia/web/webclient/views.py\n+++ b/evennia/web/webclient/views.py\n@@ -5,6 +5,8 @@\n \n \"\"\"\n from __future__ import print_function\n+from django.conf import settings\n+from django.http import Http404\n from djang...
589
190
gh_patches_debug_43232
rasdani/github-patches
git_diff
chainer__chainer-2204
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove trigger option of snapshot and snapshot_object They have the same functionality as the trigger argument of Trainer.extend and are redundant. I think they confuse users and they might misunderstand the ...
diff --git a/chainer/training/extensions/_snapshot.py b/chainer/training/extensions/_snapshot.py --- a/chainer/training/extensions/_snapshot.py +++ b/chainer/training/extensions/_snapshot.py @@ -6,15 +6,19 @@ from chainer.training import extension -def snapshot_object(target, filename, savefun=npz.save_npz, - ...
{"golden_diff": "diff --git a/chainer/training/extensions/_snapshot.py b/chainer/training/extensions/_snapshot.py\n--- a/chainer/training/extensions/_snapshot.py\n+++ b/chainer/training/extensions/_snapshot.py\n@@ -6,15 +6,19 @@\n from chainer.training import extension\n \n \n-def snapshot_object(target, filename, save...
1,350
937
gh_patches_debug_27650
rasdani/github-patches
git_diff
biolab__orange3-4217
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 2 x Transpose + Preprocess loses information **Describe the bug** Second transpose cannot retrieve the domain after Preprocess. **To Reproduce** Steps to reproduce the behavior: 1. File (brown-selected)...
diff --git a/Orange/preprocess/normalize.py b/Orange/preprocess/normalize.py --- a/Orange/preprocess/normalize.py +++ b/Orange/preprocess/normalize.py @@ -1,6 +1,6 @@ import numpy as np -from Orange.data import ContinuousVariable, Domain +from Orange.data import Domain from Orange.statistics import distribution fr...
{"golden_diff": "diff --git a/Orange/preprocess/normalize.py b/Orange/preprocess/normalize.py\n--- a/Orange/preprocess/normalize.py\n+++ b/Orange/preprocess/normalize.py\n@@ -1,6 +1,6 @@\n import numpy as np\n \n-from Orange.data import ContinuousVariable, Domain\n+from Orange.data import Domain\n from Orange.statistic...
1,182
383
gh_patches_debug_20258
rasdani/github-patches
git_diff
kserve__kserve-1877
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix serving.kubeflow.org annotations in docs/samples I've noticed that some `docs/samples` still use in `metadata.annotations` the `serving.kubeflow.org` instead of `serving.kserve.org`. See this [example](ht...
diff --git a/docs/samples/kafka/setup.py b/docs/samples/kafka/setup.py --- a/docs/samples/kafka/setup.py +++ b/docs/samples/kafka/setup.py @@ -24,21 +24,15 @@ version='0.1.0', author_email='dsun20@bloomberg.net', license='../../LICENSE.txt', - url='https://github.com/kserve/kserve/tree/master/docs/sam...
{"golden_diff": "diff --git a/docs/samples/kafka/setup.py b/docs/samples/kafka/setup.py\n--- a/docs/samples/kafka/setup.py\n+++ b/docs/samples/kafka/setup.py\n@@ -24,21 +24,15 @@\n version='0.1.0',\n author_email='dsun20@bloomberg.net',\n license='../../LICENSE.txt',\n- url='https://github.com/kserve/kse...
816
322
gh_patches_debug_39161
rasdani/github-patches
git_diff
PrefectHQ__prefect-5437
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Azure BlobStorageUpload doesn't allow for overwriting blobs ## Current behavior You get an error if you try to upload the same file name ``` azure.core.exceptions.ResourceExistsError: The specified blo...
diff --git a/src/prefect/tasks/azure/blobstorage.py b/src/prefect/tasks/azure/blobstorage.py --- a/src/prefect/tasks/azure/blobstorage.py +++ b/src/prefect/tasks/azure/blobstorage.py @@ -75,6 +75,8 @@ - azure_credentials_secret (str, optional): the name of the Prefect Secret that stores your Azure...
{"golden_diff": "diff --git a/src/prefect/tasks/azure/blobstorage.py b/src/prefect/tasks/azure/blobstorage.py\n--- a/src/prefect/tasks/azure/blobstorage.py\n+++ b/src/prefect/tasks/azure/blobstorage.py\n@@ -75,6 +75,8 @@\n - azure_credentials_secret (str, optional): the name of the Prefect Secret\n ...
1,671
546
gh_patches_debug_7233
rasdani/github-patches
git_diff
graspologic-org__graspologic-431
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- remove * import in simulations https://github.com/neurodata/graspy/blob/master/graspy/simulations/__init__.py should not be using * import here --- END ISSUE --- Below are some code segments, each from a...
diff --git a/graspy/simulations/__init__.py b/graspy/simulations/__init__.py --- a/graspy/simulations/__init__.py +++ b/graspy/simulations/__init__.py @@ -1,6 +1,19 @@ # Copyright (c) Microsoft Corporation and contributors. # Licensed under the MIT License. -from .simulations import * -from .simulations_corr import...
{"golden_diff": "diff --git a/graspy/simulations/__init__.py b/graspy/simulations/__init__.py\n--- a/graspy/simulations/__init__.py\n+++ b/graspy/simulations/__init__.py\n@@ -1,6 +1,19 @@\n # Copyright (c) Microsoft Corporation and contributors.\n # Licensed under the MIT License.\n \n-from .simulations import *\n-from...
346
230
gh_patches_debug_62674
rasdani/github-patches
git_diff
oppia__oppia-1713
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add an OutputContains rule to the CodeRepl interaction. We've had a request to add an OutputContains rule to the CodeRepl interaction. The use case is as follows: the student will type in the body of a funct...
diff --git a/extensions/rules/code_evaluation.py b/extensions/rules/code_evaluation.py --- a/extensions/rules/code_evaluation.py +++ b/extensions/rules/code_evaluation.py @@ -30,6 +30,8 @@ class CodeDoesNotContain(base.CodeEvaluationRule): description = 'has code that does not contain {{x|CodeString}}' +class O...
{"golden_diff": "diff --git a/extensions/rules/code_evaluation.py b/extensions/rules/code_evaluation.py\n--- a/extensions/rules/code_evaluation.py\n+++ b/extensions/rules/code_evaluation.py\n@@ -30,6 +30,8 @@\n class CodeDoesNotContain(base.CodeEvaluationRule):\n description = 'has code that does not contain {{x|Co...
824
121
gh_patches_debug_22767
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-4224
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pizza Hut Spider returns some closed outlets It looks like the GB Pizza Hut spider "pizza_hut_gb" is returning a number of outlets that have closed. These are evident when the website either redirects to http...
diff --git a/locations/spiders/pizza_hut_gb.py b/locations/spiders/pizza_hut_gb.py --- a/locations/spiders/pizza_hut_gb.py +++ b/locations/spiders/pizza_hut_gb.py @@ -7,17 +7,19 @@ class PizzaHutGB(SitemapSpider, StructuredDataSpider): name = "pizza_hut_gb" item_attributes = {"brand": "Pizza Hut", "brand_wik...
{"golden_diff": "diff --git a/locations/spiders/pizza_hut_gb.py b/locations/spiders/pizza_hut_gb.py\n--- a/locations/spiders/pizza_hut_gb.py\n+++ b/locations/spiders/pizza_hut_gb.py\n@@ -7,17 +7,19 @@\n class PizzaHutGB(SitemapSpider, StructuredDataSpider):\n name = \"pizza_hut_gb\"\n item_attributes = {\"brand...
775
352
gh_patches_debug_15192
rasdani/github-patches
git_diff
SeldonIO__MLServer-339
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- mlserver --version fails (0.5.0) ``` mlserver --version Traceback (most recent call last): File "/home/clive/anaconda3/envs/mlserver/bin/mlserver", line 8, in <module> sys.exit(main()) File "/hom...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -34,15 +34,16 @@ description="ML server", packages=find_packages(exclude=["tests", "tests.*"]), install_requires=[ - "grpcio", - "protobuf", + "click", # We pin version of fastapi # check https://gith...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -34,15 +34,16 @@\n description=\"ML server\",\n packages=find_packages(exclude=[\"tests\", \"tests.*\"]),\n install_requires=[\n- \"grpcio\",\n- \"protobuf\",\n+ \"click\",\n # We pin version o...
1,226
195
gh_patches_debug_43501
rasdani/github-patches
git_diff
goauthentik__authentik-7264
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: Authenticator SMS Challenge response doesn't have _errors attribute **Describe the bug** It seems that something has changed in the regards to Authenticator SMS Challenge Response. **To Reproduce** ...
diff --git a/authentik/stages/authenticator_sms/stage.py b/authentik/stages/authenticator_sms/stage.py --- a/authentik/stages/authenticator_sms/stage.py +++ b/authentik/stages/authenticator_sms/stage.py @@ -12,7 +12,6 @@ Challenge, ChallengeResponse, ChallengeTypes, - ErrorDetailSerializer, WithU...
{"golden_diff": "diff --git a/authentik/stages/authenticator_sms/stage.py b/authentik/stages/authenticator_sms/stage.py\n--- a/authentik/stages/authenticator_sms/stage.py\n+++ b/authentik/stages/authenticator_sms/stage.py\n@@ -12,7 +12,6 @@\n Challenge,\n ChallengeResponse,\n ChallengeTypes,\n- ErrorDeta...
1,935
768
gh_patches_debug_1887
rasdani/github-patches
git_diff
spotify__luigi-2679
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Is there a reason python-dateutil is pinned to v2.7.5? In this [commit](https://github.com/spotify/luigi/commit/ca0aa9afedecda539339e51974ef38cecf180d4b), I can see that python-dateutil has been pinned to ver...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ 'tornado>=4.0,<5', # https://pagure.io/python-daemon/issue/18 'python-daemon<2.2.0', - 'python-dateutil==2.7.5', + 'python-dateutil>=2.7.5,<3', ] # Note: To support older versions of setuptools, we're explicitly no...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -41,7 +41,7 @@\n 'tornado>=4.0,<5',\n # https://pagure.io/python-daemon/issue/18\n 'python-daemon<2.2.0',\n- 'python-dateutil==2.7.5',\n+ 'python-dateutil>=2.7.5,<3',\n ]\n \n # Note: To support older versions of set...
1,555
116
gh_patches_debug_19906
rasdani/github-patches
git_diff
mitmproxy__mitmproxy-4246
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- v4 --replacements vs v5 --modify-headers I'm trying to replace the `User-Agent` request header if it contains a certain string. This works with "mitmproxy-4.0.4-linux": ``` ./mitmproxy --replacements "...
diff --git a/mitmproxy/addons/modifyheaders.py b/mitmproxy/addons/modifyheaders.py --- a/mitmproxy/addons/modifyheaders.py +++ b/mitmproxy/addons/modifyheaders.py @@ -83,14 +83,21 @@ self.run(flow, flow.response.headers) def run(self, flow: http.HTTPFlow, hdrs: Headers) -> None: - # unset all spe...
{"golden_diff": "diff --git a/mitmproxy/addons/modifyheaders.py b/mitmproxy/addons/modifyheaders.py\n--- a/mitmproxy/addons/modifyheaders.py\n+++ b/mitmproxy/addons/modifyheaders.py\n@@ -83,14 +83,21 @@\n self.run(flow, flow.response.headers)\n \n def run(self, flow: http.HTTPFlow, hdrs: Headers) -> None:\n...
1,521
247
gh_patches_debug_23291
rasdani/github-patches
git_diff
scikit-hep__awkward-3115
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- typing ak.Array for numba.cuda.jit signature ### Version of Awkward Array 2.6.2 ### Description and code to reproduce Hey guys, I followed a hint from the discussion in [#696](https://github.com/scikit-hep...
diff --git a/src/awkward/_connect/numba/arrayview_cuda.py b/src/awkward/_connect/numba/arrayview_cuda.py --- a/src/awkward/_connect/numba/arrayview_cuda.py +++ b/src/awkward/_connect/numba/arrayview_cuda.py @@ -15,13 +15,22 @@ def prepare_args(self, ty, val, stream, retr): if isinstance(val, ak.Array): ...
{"golden_diff": "diff --git a/src/awkward/_connect/numba/arrayview_cuda.py b/src/awkward/_connect/numba/arrayview_cuda.py\n--- a/src/awkward/_connect/numba/arrayview_cuda.py\n+++ b/src/awkward/_connect/numba/arrayview_cuda.py\n@@ -15,13 +15,22 @@\n def prepare_args(self, ty, val, stream, retr):\n if isinsta...
1,362
342
gh_patches_debug_21885
rasdani/github-patches
git_diff
numba__numba-3578
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- simulate bug func_or_sig vs fn_or_sig named parameter There seems to be a difference in the named parameter func_or_sig/fn_or_sig between the cuda.jit() in the simulator vs gpu code. --- END ISSUE --- Belo...
diff --git a/numba/cuda/simulator/api.py b/numba/cuda/simulator/api.py --- a/numba/cuda/simulator/api.py +++ b/numba/cuda/simulator/api.py @@ -72,19 +72,19 @@ event = Event -def jit(fn_or_sig=None, device=False, debug=False, argtypes=None, inline=False, restype=None, - fastmath=False, link=None): +def jit(f...
{"golden_diff": "diff --git a/numba/cuda/simulator/api.py b/numba/cuda/simulator/api.py\n--- a/numba/cuda/simulator/api.py\n+++ b/numba/cuda/simulator/api.py\n@@ -72,19 +72,19 @@\n event = Event\n \n \n-def jit(fn_or_sig=None, device=False, debug=False, argtypes=None, inline=False, restype=None,\n- fastmath=Fals...
1,025
286
gh_patches_debug_25919
rasdani/github-patches
git_diff
archlinux__archinstall-823
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- mkinitcpio.conf generated incorrectly for AMDGPU. As the archwiki installation guide states [https://wiki.archlinux.org/title/AMDGPU#Specify_the_correct_module_order](https://wiki.archlinux.org/title/AMDGPU#S...
diff --git a/profiles/xorg.py b/profiles/xorg.py --- a/profiles/xorg.py +++ b/profiles/xorg.py @@ -45,6 +45,17 @@ archinstall.storage['installation_session'].add_additional_packages("xorg-server xorg-xinit nvidia-dkms") else: archinstall.storage['installation_session'].add_additional_packages(f"xorg-serve...
{"golden_diff": "diff --git a/profiles/xorg.py b/profiles/xorg.py\n--- a/profiles/xorg.py\n+++ b/profiles/xorg.py\n@@ -45,6 +45,17 @@\n \t\t\t\tarchinstall.storage['installation_session'].add_additional_packages(\"xorg-server xorg-xinit nvidia-dkms\")\n \t\t\telse:\n \t\t\t\tarchinstall.storage['installation_session']....
1,032
343
gh_patches_debug_2112
rasdani/github-patches
git_diff
Qiskit__qiskit-1940
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- rzz gate <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.7.2 - **P...
diff --git a/qiskit/extensions/standard/rzz.py b/qiskit/extensions/standard/rzz.py --- a/qiskit/extensions/standard/rzz.py +++ b/qiskit/extensions/standard/rzz.py @@ -34,7 +34,7 @@ decomposition.add_qreg(q) rule = [ CnotGate(q[0], q[1]), - U1Gate(self.params[0], q[0]), + ...
{"golden_diff": "diff --git a/qiskit/extensions/standard/rzz.py b/qiskit/extensions/standard/rzz.py\n--- a/qiskit/extensions/standard/rzz.py\n+++ b/qiskit/extensions/standard/rzz.py\n@@ -34,7 +34,7 @@\n decomposition.add_qreg(q)\n rule = [\n CnotGate(q[0], q[1]),\n- U1Gate(self.pa...
1,209
131
gh_patches_debug_31020
rasdani/github-patches
git_diff
OpenMined__PySyft-3150
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove ZSTD **Is your feature request related to a problem? Please describe.** ZSTD is used for compression in our serde process. However we don't need extra compression as we move to Protobuf. ZSTD is usua...
diff --git a/syft/serde/compression.py b/syft/serde/compression.py --- a/syft/serde/compression.py +++ b/syft/serde/compression.py @@ -7,18 +7,15 @@ from lz4 import ( # noqa: F401 frame, ) # needed as otherwise we will get: module 'lz4' has no attribute 'frame' -import zstd from syft.exceptions import Compr...
{"golden_diff": "diff --git a/syft/serde/compression.py b/syft/serde/compression.py\n--- a/syft/serde/compression.py\n+++ b/syft/serde/compression.py\n@@ -7,18 +7,15 @@\n from lz4 import ( # noqa: F401\n frame,\n ) # needed as otherwise we will get: module 'lz4' has no attribute 'frame'\n-import zstd\n \n from sy...
1,444
414
gh_patches_debug_10830
rasdani/github-patches
git_diff
Mailu__Mailu-2177
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Manage user authentication and permissions Currently no authentication is implemented. Multiple issues will have to be tackled: - complete permission scheme or simple admin role plus admins per domain? - how ...
diff --git a/core/admin/start.py b/core/admin/start.py --- a/core/admin/start.py +++ b/core/admin/start.py @@ -35,7 +35,7 @@ resolver.nameservers=[ns] while True: try: - result = resolver.query('example.org', dns.rdatatype.A, dns.rdataclass.IN, lifetime=10) + ...
{"golden_diff": "diff --git a/core/admin/start.py b/core/admin/start.py\n--- a/core/admin/start.py\n+++ b/core/admin/start.py\n@@ -35,7 +35,7 @@\n resolver.nameservers=[ns]\n while True:\n try:\n- result = resolver.query('example.org', dns.rdatatype.A, dns.rdataclass.IN, lifet...
930
152
gh_patches_debug_20282
rasdani/github-patches
git_diff
PaddlePaddle__models-449
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Need to set the version of CTC decoders formally --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `deep_spee...
diff --git a/deep_speech_2/decoders/swig/setup.py b/deep_speech_2/decoders/swig/setup.py --- a/deep_speech_2/decoders/swig/setup.py +++ b/deep_speech_2/decoders/swig/setup.py @@ -70,7 +70,6 @@ FILES += glob.glob('openfst-1.6.3/src/lib/*.cc') -# FILES + glob.glob('glog/src/*.cc') FILES = [ fn for fn in FILES ...
{"golden_diff": "diff --git a/deep_speech_2/decoders/swig/setup.py b/deep_speech_2/decoders/swig/setup.py\n--- a/deep_speech_2/decoders/swig/setup.py\n+++ b/deep_speech_2/decoders/swig/setup.py\n@@ -70,7 +70,6 @@\n \n FILES += glob.glob('openfst-1.6.3/src/lib/*.cc')\n \n-# FILES + glob.glob('glog/src/*.cc')\n FILES = [...
1,444
265
gh_patches_debug_23631
rasdani/github-patches
git_diff
e-valuation__EvaP-762
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Test management commands Because in three years, run_tasks will silently fail on the production system and nobody will notice. - [x] **run_tasks** - shouldn't be too hard and is rather important - [x] **anony...
diff --git a/evap/evaluation/management/commands/import_ad.py b/evap/evaluation/management/commands/import_ad.py deleted file mode 100644 --- a/evap/evaluation/management/commands/import_ad.py +++ /dev/null @@ -1,42 +0,0 @@ -import getpass -import ldap -import sys - -from django.core.management.base import BaseCommand ...
{"golden_diff": "diff --git a/evap/evaluation/management/commands/import_ad.py b/evap/evaluation/management/commands/import_ad.py\ndeleted file mode 100644\n--- a/evap/evaluation/management/commands/import_ad.py\n+++ /dev/null\n@@ -1,42 +0,0 @@\n-import getpass\n-import ldap\n-import sys\n-\n-from django.core.managemen...
951
410
gh_patches_debug_19945
rasdani/github-patches
git_diff
onnx__onnx-5736
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Refine docs for check_model Current version: > Check the consistency of a model. An exception is raised if the test fails. It would be good if we document the kind of checks done and the type of excepti...
diff --git a/onnx/checker.py b/onnx/checker.py --- a/onnx/checker.py +++ b/onnx/checker.py @@ -124,11 +124,20 @@ full_check: bool = False, skip_opset_compatibility_check: bool = False, ) -> None: - """Check the consistency of a model. An exception is raised if the test fails. + """Check the consistency...
{"golden_diff": "diff --git a/onnx/checker.py b/onnx/checker.py\n--- a/onnx/checker.py\n+++ b/onnx/checker.py\n@@ -124,11 +124,20 @@\n full_check: bool = False,\n skip_opset_compatibility_check: bool = False,\n ) -> None:\n- \"\"\"Check the consistency of a model. An exception is raised if the test fails.\n+...
1,818
301
gh_patches_debug_19401
rasdani/github-patches
git_diff
geopandas__geopandas-643
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- GeoDataFrame.to_file fail on bool column When converting GeoDataFrame with bool column to shp file, got following error ```sh ValueError: 'bool' is not in list ``` --- END ISSUE --- Below are some code s...
diff --git a/geopandas/io/file.py b/geopandas/io/file.py --- a/geopandas/io/file.py +++ b/geopandas/io/file.py @@ -113,16 +113,20 @@ except ImportError: from ordereddict import OrderedDict - def convert_type(in_type): + def convert_type(column, in_type): if in_type == object: ...
{"golden_diff": "diff --git a/geopandas/io/file.py b/geopandas/io/file.py\n--- a/geopandas/io/file.py\n+++ b/geopandas/io/file.py\n@@ -113,16 +113,20 @@\n except ImportError:\n from ordereddict import OrderedDict\n \n- def convert_type(in_type):\n+ def convert_type(column, in_type):\n if in_ty...
1,732
242
gh_patches_debug_39731
rasdani/github-patches
git_diff
OCHA-DAP__hdx-ckan-1835
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Redirect a non-new user to Newsfeed instead of My Organisations --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- P...
diff --git a/ckanext-hdx_users/ckanext/hdx_users/controllers/login_controller.py b/ckanext-hdx_users/ckanext/hdx_users/controllers/login_controller.py --- a/ckanext-hdx_users/ckanext/hdx_users/controllers/login_controller.py +++ b/ckanext-hdx_users/ckanext/hdx_users/controllers/login_controller.py @@ -10,7 +10,9 @@ ...
{"golden_diff": "diff --git a/ckanext-hdx_users/ckanext/hdx_users/controllers/login_controller.py b/ckanext-hdx_users/ckanext/hdx_users/controllers/login_controller.py\n--- a/ckanext-hdx_users/ckanext/hdx_users/controllers/login_controller.py\n+++ b/ckanext-hdx_users/ckanext/hdx_users/controllers/login_controller.py\n@...
921
671
gh_patches_debug_53600
rasdani/github-patches
git_diff
aws__aws-cli-577
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- typo in s3api list-objects documentation The documentation for the s3api list-objects --max-items parameter says that a `NextMarker` will be provided, while the --starting-token parameter refers to this as `N...
diff --git a/awscli/customizations/paginate.py b/awscli/customizations/paginate.py --- a/awscli/customizations/paginate.py +++ b/awscli/customizations/paginate.py @@ -36,7 +36,7 @@ MAX_ITEMS_HELP = """ <p>The total number of items to return. If the total number of items available is more than the value specified in...
{"golden_diff": "diff --git a/awscli/customizations/paginate.py b/awscli/customizations/paginate.py\n--- a/awscli/customizations/paginate.py\n+++ b/awscli/customizations/paginate.py\n@@ -36,7 +36,7 @@\n MAX_ITEMS_HELP = \"\"\"\n <p>The total number of items to return. If the total number\n of items available is more t...
1,467
131
gh_patches_debug_7438
rasdani/github-patches
git_diff
ranaroussi__yfinance-1237
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- fix(sec): upgrade lxml to 4.9.1 ### What happened? There are 1 security vulnerabilities found in lxml 4.5.1 - [CVE-2022-2309](https://www.oscs1024.com/hd/CVE-2022-2309) ### What did I do? Upgrade lxml from ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -63,7 +63,7 @@ packages=find_packages(exclude=['contrib', 'docs', 'tests', 'examples']), install_requires=['pandas>=1.3.0', 'numpy>=1.16.5', 'requests>=2.26', 'multitasking>=0.0.7', - 'appdirs>=1.4.4'...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -63,7 +63,7 @@\n packages=find_packages(exclude=['contrib', 'docs', 'tests', 'examples']),\n install_requires=['pandas>=1.3.0', 'numpy>=1.16.5',\n 'requests>=2.26', 'multitasking>=0.0.7',\n- ...
1,174
145
gh_patches_debug_12394
rasdani/github-patches
git_diff
aws__aws-cli-341
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- argparse dependency is only needed for Python 2.6 We currently have a dependency on argparse because it's not in stdlib for Python 2.6. We should make this dependency specific to 2.6 and not install it for o...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -import os import sys from setuptools import setup, find_packages @@ -11,10 +10,14 @@ 'bcdoc>=0.9.0,<0.10.0', 'six>=1.1.0', 'colorama==0.2.5', - 'argparse>=1.1', ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,5 +1,4 @@\n #!/usr/bin/env python\n-import os\n import sys\n \n from setuptools import setup, find_packages\n@@ -11,10 +10,14 @@\n 'bcdoc>=0.9.0,<0.10.0',\n 'six>=1.1.0',\n 'colorama==0.2.5',\n- ...
966
205
gh_patches_debug_11235
rasdani/github-patches
git_diff
saleor__saleor-5311
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Broken multiple interface notation in schema ### What I'm trying to achieve To use Apollo tooling to generate TS types for the application queries. However, it fails because Saleor's schema uses comma as a s...
diff --git a/saleor/graphql/management/commands/get_graphql_schema.py b/saleor/graphql/management/commands/get_graphql_schema.py --- a/saleor/graphql/management/commands/get_graphql_schema.py +++ b/saleor/graphql/management/commands/get_graphql_schema.py @@ -8,4 +8,14 @@ help = "Writes SDL for GraphQL API schema t...
{"golden_diff": "diff --git a/saleor/graphql/management/commands/get_graphql_schema.py b/saleor/graphql/management/commands/get_graphql_schema.py\n--- a/saleor/graphql/management/commands/get_graphql_schema.py\n+++ b/saleor/graphql/management/commands/get_graphql_schema.py\n@@ -8,4 +8,14 @@\n help = \"Writes SDL fo...
464
226
gh_patches_debug_22720
rasdani/github-patches
git_diff
privacyidea__privacyidea-3675
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error 904 is still shown with policy Action login_mode: privacyIDEA privacyidea 3.8 ubuntu 20 Since 3.7 the error message :´ERR904: The user can not be found in any resolver in this realm!¨ is deactiva...
diff --git a/privacyidea/lib/auth.py b/privacyidea/lib/auth.py --- a/privacyidea/lib/auth.py +++ b/privacyidea/lib/auth.py @@ -26,6 +26,10 @@ from privacyidea.lib.policydecorators import libpolicy, login_mode from privacyidea.lib.crypto import hash_with_pepper, verify_with_pepper from privacyidea.lib.utils import fe...
{"golden_diff": "diff --git a/privacyidea/lib/auth.py b/privacyidea/lib/auth.py\n--- a/privacyidea/lib/auth.py\n+++ b/privacyidea/lib/auth.py\n@@ -26,6 +26,10 @@\n from privacyidea.lib.policydecorators import libpolicy, login_mode\n from privacyidea.lib.crypto import hash_with_pepper, verify_with_pepper\n from privacyi...
1,801
283
gh_patches_debug_14761
rasdani/github-patches
git_diff
iterative__dvc-7965
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add TOML support for metrics Right now, there is only TOML file support for params files. We need to add TOML support for metrics as well. Here's a [link to the Discord question](https://discord.com/channe...
diff --git a/dvc/repo/metrics/show.py b/dvc/repo/metrics/show.py --- a/dvc/repo/metrics/show.py +++ b/dvc/repo/metrics/show.py @@ -12,7 +12,7 @@ from dvc.scm import NoSCMError from dvc.utils import error_handler, errored_revisions, onerror_collect from dvc.utils.collections import ensure_list -from dvc.utils.seriali...
{"golden_diff": "diff --git a/dvc/repo/metrics/show.py b/dvc/repo/metrics/show.py\n--- a/dvc/repo/metrics/show.py\n+++ b/dvc/repo/metrics/show.py\n@@ -12,7 +12,7 @@\n from dvc.scm import NoSCMError\n from dvc.utils import error_handler, errored_revisions, onerror_collect\n from dvc.utils.collections import ensure_list\...
1,684
211
gh_patches_debug_31073
rasdani/github-patches
git_diff
fossasia__open-event-server-4162
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ticket-tag: remove GET for /ticket-tags Parent issue #4101. Related issue: #4119. Make `/ticket-tags` POST only. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more o...
diff --git a/app/api/ticket_tags.py b/app/api/ticket_tags.py --- a/app/api/ticket_tags.py +++ b/app/api/ticket_tags.py @@ -1,8 +1,6 @@ from flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship from marshmallow_jsonapi.flask import Schema, Relationship from marshmallow_jsonapi import fields -f...
{"golden_diff": "diff --git a/app/api/ticket_tags.py b/app/api/ticket_tags.py\n--- a/app/api/ticket_tags.py\n+++ b/app/api/ticket_tags.py\n@@ -1,8 +1,6 @@\n from flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\n from marshmallow_jsonapi.flask import Schema, Relationship\n from marshmallow_j...
1,737
392
gh_patches_debug_63274
rasdani/github-patches
git_diff
Mailu__Mailu-2603
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Maximum number of connections from user+IP exceeded Hi, we have a problem... :-) We have changed the original value of "AUTH_RATELIMIT" to "AUTH_RATELIMIT=100/minute;6000/hour", but logs continue to say " M...
diff --git a/core/admin/mailu/internal/views/dovecot.py b/core/admin/mailu/internal/views/dovecot.py --- a/core/admin/mailu/internal/views/dovecot.py +++ b/core/admin/mailu/internal/views/dovecot.py @@ -17,7 +17,7 @@ return flask.jsonify({ "password": None, "nopassword": "Y", - "allow_nets...
{"golden_diff": "diff --git a/core/admin/mailu/internal/views/dovecot.py b/core/admin/mailu/internal/views/dovecot.py\n--- a/core/admin/mailu/internal/views/dovecot.py\n+++ b/core/admin/mailu/internal/views/dovecot.py\n@@ -17,7 +17,7 @@\n return flask.jsonify({\n \"password\": None,\n \"nopassword\"...
987
128
gh_patches_debug_20106
rasdani/github-patches
git_diff
microsoft__torchgeo-93
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Jupyter Notebook tutorials We need to figure out how to render Jupyter Notebooks in our documentation so that we can provide easy-to-use tutorials for new users. This should work similarly to https://pytorch....
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -34,11 +34,11 @@ # ones. extensions = [ "sphinx.ext.autodoc", - "sphinx.ext.autosectionlabel", "sphinx.ext.intersphinx", "sphinx.ext.napoleon", "sphinx.ext.todo", "sphinx.ext.viewcode", + "nbsphinx", ] ...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -34,11 +34,11 @@\n # ones.\n extensions = [\n \"sphinx.ext.autodoc\",\n- \"sphinx.ext.autosectionlabel\",\n \"sphinx.ext.intersphinx\",\n \"sphinx.ext.napoleon\",\n \"sphinx.ext.todo\",\n \"sphin...
1,294
308
gh_patches_debug_32695
rasdani/github-patches
git_diff
conan-io__conan-center-index-3023
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [package] jbig/20160605: Fails to build on iOS <!-- Please don't forget to update the issue title. Include all applicable information to help us reproduce your problem. --> ### Package and Environm...
diff --git a/recipes/jbig/all/conanfile.py b/recipes/jbig/all/conanfile.py --- a/recipes/jbig/all/conanfile.py +++ b/recipes/jbig/all/conanfile.py @@ -13,8 +13,18 @@ exports_sources = ['CMakeLists.txt', "*.patch"] generators = 'cmake' settings = "os", "arch", "compiler", "build_type" - options = {"sha...
{"golden_diff": "diff --git a/recipes/jbig/all/conanfile.py b/recipes/jbig/all/conanfile.py\n--- a/recipes/jbig/all/conanfile.py\n+++ b/recipes/jbig/all/conanfile.py\n@@ -13,8 +13,18 @@\n exports_sources = ['CMakeLists.txt', \"*.patch\"]\n generators = 'cmake'\n settings = \"os\", \"arch\", \"compiler\", \"...
1,345
535
gh_patches_debug_33865
rasdani/github-patches
git_diff
cowrie__cowrie-1022
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cowrie not set up for py.test framework So I tried running the test in both python2 and python3. For python2 all the tests were passing but for python3 there was some error. ``` py.test --cov=cowrie ...
diff --git a/src/cowrie/core/config.py b/src/cowrie/core/config.py --- a/src/cowrie/core/config.py +++ b/src/cowrie/core/config.py @@ -8,7 +8,8 @@ from __future__ import absolute_import, division import configparser -import os +from os import environ +from os.path import abspath, dirname, exists, join def to_e...
{"golden_diff": "diff --git a/src/cowrie/core/config.py b/src/cowrie/core/config.py\n--- a/src/cowrie/core/config.py\n+++ b/src/cowrie/core/config.py\n@@ -8,7 +8,8 @@\n from __future__ import absolute_import, division\n \n import configparser\n-import os\n+from os import environ\n+from os.path import abspath, dirname, ...
1,656
540
gh_patches_debug_15272
rasdani/github-patches
git_diff
chainer__chainer-1539
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Invalid CuPy cache problem with different version of CUDAs When a user update CUDA, caches of CuPy for old CUDA is sometimes incompatible with new one. We need to check CUDA version and to store kernel cache ...
diff --git a/cupy/cuda/compiler.py b/cupy/cuda/compiler.py --- a/cupy/cuda/compiler.py +++ b/cupy/cuda/compiler.py @@ -12,6 +12,18 @@ from cupy.cuda import function +_nvcc_version = None + + +def _get_nvcc_version(): + global _nvcc_version + if _nvcc_version is None: + cmd = ['nvcc', '--version'] + ...
{"golden_diff": "diff --git a/cupy/cuda/compiler.py b/cupy/cuda/compiler.py\n--- a/cupy/cuda/compiler.py\n+++ b/cupy/cuda/compiler.py\n@@ -12,6 +12,18 @@\n from cupy.cuda import function\n \n \n+_nvcc_version = None\n+\n+\n+def _get_nvcc_version():\n+ global _nvcc_version\n+ if _nvcc_version is None:\n+ cm...
1,732
247
gh_patches_debug_63916
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...
891
98
gh_patches_debug_13053
rasdani/github-patches
git_diff
pymodbus-dev__pymodbus-921
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError: module 'asyncio' has no attribute 'exceptions' ``` Traceback (most recent call last): File "/home//.local/bin/pymodbus.server", line 6, in <module> from pymodbus.repl.server.main impo...
diff --git a/pymodbus/repl/server/main.py b/pymodbus/repl/server/main.py --- a/pymodbus/repl/server/main.py +++ b/pymodbus/repl/server/main.py @@ -3,7 +3,6 @@ Copyright (c) 2020 by RiptideIO All rights reserved. """ -import sys import logging import asyncio import json @@ -17,10 +16,7 @@ from pymodbus.server.rea...
{"golden_diff": "diff --git a/pymodbus/repl/server/main.py b/pymodbus/repl/server/main.py\n--- a/pymodbus/repl/server/main.py\n+++ b/pymodbus/repl/server/main.py\n@@ -3,7 +3,6 @@\n Copyright (c) 2020 by RiptideIO\n All rights reserved.\n \"\"\"\n-import sys\n import logging\n import asyncio\n import json\n@@ -17,10 +16...
1,941
200
gh_patches_debug_989
rasdani/github-patches
git_diff
hydroshare__hydroshare-5098
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Haystack rest endpoint response serializer does not include short_id **Description of the bug** The Haystack REST endpoint for complex solr searches does not include the short_id into the response serializer...
diff --git a/hs_rest_api/discovery.py b/hs_rest_api/discovery.py --- a/hs_rest_api/discovery.py +++ b/hs_rest_api/discovery.py @@ -13,6 +13,7 @@ class Meta: index_classes = [BaseResourceIndex] fields = [ + "short_id", "title", "author", "contribut...
{"golden_diff": "diff --git a/hs_rest_api/discovery.py b/hs_rest_api/discovery.py\n--- a/hs_rest_api/discovery.py\n+++ b/hs_rest_api/discovery.py\n@@ -13,6 +13,7 @@\n class Meta:\n index_classes = [BaseResourceIndex]\n fields = [\n+ \"short_id\",\n \"title\",\n \"a...
1,354
88
gh_patches_debug_20873
rasdani/github-patches
git_diff
GeotrekCE__Geotrek-admin-2223
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix translations in package The compilemessages step for geotrek and mapentity is missing somewhere --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,23 +1,24 @@ #!/usr/bin/python3 import os import distutils.command.build +from pathlib import Path from setuptools import setup, find_packages +from shutil import copy here = os.path.abspath(os.path.dirname(__file__)) class BuildCommand(dis...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,23 +1,24 @@\n #!/usr/bin/python3\n import os\n import distutils.command.build\n+from pathlib import Path\n from setuptools import setup, find_packages\n+from shutil import copy\n \n here = os.path.abspath(os.path.dirname(__file__))...
898
255
gh_patches_debug_26330
rasdani/github-patches
git_diff
streamlink__streamlink-1583
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Vaughnlive changed IP's to break Streamlink This will be a very brief bug report... As of tonight the head vaughnlive.py references IPs which were disconnected by vaughn to thwart streamlinking. I've observed...
diff --git a/src/streamlink/plugins/vaughnlive.py b/src/streamlink/plugins/vaughnlive.py --- a/src/streamlink/plugins/vaughnlive.py +++ b/src/streamlink/plugins/vaughnlive.py @@ -38,10 +38,10 @@ range(1, 6))] origin...
{"golden_diff": "diff --git a/src/streamlink/plugins/vaughnlive.py b/src/streamlink/plugins/vaughnlive.py\n--- a/src/streamlink/plugins/vaughnlive.py\n+++ b/src/streamlink/plugins/vaughnlive.py\n@@ -38,10 +38,10 @@\n rang...
1,737
518
gh_patches_debug_26363
rasdani/github-patches
git_diff
mathesar-foundation__mathesar-786
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Implement showing and changing a column's type ## Problem <!-- Please provide a clear and concise description of the problem that this feature request is designed to solve.--> Users might want to change the...
diff --git a/mathesar/views.py b/mathesar/views.py --- a/mathesar/views.py +++ b/mathesar/views.py @@ -1,7 +1,7 @@ from django.shortcuts import render, redirect, get_object_or_404 from mathesar.models import Database, Schema, Table -from mathesar.api.serializers.databases import DatabaseSerializer +from mathesar.ap...
{"golden_diff": "diff --git a/mathesar/views.py b/mathesar/views.py\n--- a/mathesar/views.py\n+++ b/mathesar/views.py\n@@ -1,7 +1,7 @@\n from django.shortcuts import render, redirect, get_object_or_404\n \n from mathesar.models import Database, Schema, Table\n-from mathesar.api.serializers.databases import DatabaseSeri...
1,490
295
gh_patches_debug_34062
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-1871
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug]: Chichester District Council is not working ### I Have A Problem With: A specific source ### What's Your Problem The source has stopped working since Tuesday 13th February 2024. All the collection da...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/chichester_gov_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/chichester_gov_uk.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/chichester_gov_uk.py +++ b...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/chichester_gov_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/chichester_gov_uk.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/chichest...
1,465
596
gh_patches_debug_2252
rasdani/github-patches
git_diff
fonttools__fonttools-337
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- I find the font's line height is bigger than original font. I have tried pyftsubset with command line option --no-recalc-bounds , but the generated subfont's line height is still bigger than original font. ...
diff --git a/Lib/fontTools/ttLib/tables/_v_h_e_a.py b/Lib/fontTools/ttLib/tables/_v_h_e_a.py --- a/Lib/fontTools/ttLib/tables/_v_h_e_a.py +++ b/Lib/fontTools/ttLib/tables/_v_h_e_a.py @@ -35,7 +35,8 @@ sstruct.unpack(vheaFormat, data, self) def compile(self, ttFont): - self.recalc(ttFont) + if ttFont.isLoaded('...
{"golden_diff": "diff --git a/Lib/fontTools/ttLib/tables/_v_h_e_a.py b/Lib/fontTools/ttLib/tables/_v_h_e_a.py\n--- a/Lib/fontTools/ttLib/tables/_v_h_e_a.py\n+++ b/Lib/fontTools/ttLib/tables/_v_h_e_a.py\n@@ -35,7 +35,8 @@\n \t\tsstruct.unpack(vheaFormat, data, self)\n \n \tdef compile(self, ttFont):\n-\t\tself.recalc(tt...
1,316
161
gh_patches_debug_22699
rasdani/github-patches
git_diff
svthalia__concrexit-3592
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Prevent full disk ### Describe the bug Sometimes the server's storage gets full, because for some reason filepond uploads aren't being deleted. Today this caused the server to crash (because the full server ...
diff --git a/website/photos/tasks.py b/website/photos/tasks.py --- a/website/photos/tasks.py +++ b/website/photos/tasks.py @@ -3,7 +3,6 @@ from celery import shared_task from django_drf_filepond.models import TemporaryUpload -from django_filepond_widget.fields import FilePondFile from photos.models import Album ...
{"golden_diff": "diff --git a/website/photos/tasks.py b/website/photos/tasks.py\n--- a/website/photos/tasks.py\n+++ b/website/photos/tasks.py\n@@ -3,7 +3,6 @@\n \n from celery import shared_task\n from django_drf_filepond.models import TemporaryUpload\n-from django_filepond_widget.fields import FilePondFile\n \n from p...
775
234
gh_patches_debug_16164
rasdani/github-patches
git_diff
mozilla__bugbug-1631
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make spawn_pipeline not depend on the order of tasks in the yaml file Currently, if a task is defined in the yaml file before its dependencies, the spawn_pipeline script fails with: ``` Traceback (most rece...
diff --git a/infra/spawn_pipeline.py b/infra/spawn_pipeline.py --- a/infra/spawn_pipeline.py +++ b/infra/spawn_pipeline.py @@ -85,13 +85,19 @@ # mapping between an internal ID and the generate ID task_id = taskcluster.utils.slugId() - task_internal_id = task.pop("ID") + task_internal_i...
{"golden_diff": "diff --git a/infra/spawn_pipeline.py b/infra/spawn_pipeline.py\n--- a/infra/spawn_pipeline.py\n+++ b/infra/spawn_pipeline.py\n@@ -85,13 +85,19 @@\n # mapping between an internal ID and the generate ID\n \n task_id = taskcluster.utils.slugId()\n- task_internal_id = task.pop(\"ID\"...
1,607
208
gh_patches_debug_11927
rasdani/github-patches
git_diff
pytorch__text-280
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- TypeError in Python 2.7 https://github.com/pytorch/text/blob/a2795e5731d1b7c0298a1b5087bb8142e1c39d0b/torchtext/datasets/imdb.py#L32 In python 2.7, it will report that `TypeError: 'encoding' is an invalid ...
diff --git a/torchtext/datasets/imdb.py b/torchtext/datasets/imdb.py --- a/torchtext/datasets/imdb.py +++ b/torchtext/datasets/imdb.py @@ -1,5 +1,6 @@ import os import glob +import io from .. import data @@ -29,7 +30,7 @@ for label in ['pos', 'neg']: for fname in glob.iglob(os.path.join(p...
{"golden_diff": "diff --git a/torchtext/datasets/imdb.py b/torchtext/datasets/imdb.py\n--- a/torchtext/datasets/imdb.py\n+++ b/torchtext/datasets/imdb.py\n@@ -1,5 +1,6 @@\n import os\n import glob\n+import io\n \n from .. import data\n \n@@ -29,7 +30,7 @@\n \n for label in ['pos', 'neg']:\n for fnam...
1,179
168
gh_patches_debug_12119
rasdani/github-patches
git_diff
sanic-org__sanic-647
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- what have done to static.py? On last Friday,everything is ok,my static file test works fine. Today,when I pip install sanic==0.5.1 It raise 404 error. when I pip install sanic==0.5.0 everything is ok ...
diff --git a/sanic/static.py b/sanic/static.py --- a/sanic/static.py +++ b/sanic/static.py @@ -56,7 +56,7 @@ # URL decode the path sent by the browser otherwise we won't be able to # match filenames which got encoded (filenames with spaces etc) file_path = path.abspath(unquote(file_path)) - ...
{"golden_diff": "diff --git a/sanic/static.py b/sanic/static.py\n--- a/sanic/static.py\n+++ b/sanic/static.py\n@@ -56,7 +56,7 @@\n # URL decode the path sent by the browser otherwise we won't be able to\n # match filenames which got encoded (filenames with spaces etc)\n file_path = path.abspath(...
1,452
128
gh_patches_debug_49285
rasdani/github-patches
git_diff
ansible__awx-12242
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Websocket not working at non-root path ### Please confirm the following - [X] I agree to follow this project's [code of conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html). - [X]...
diff --git a/awx/main/routing.py b/awx/main/routing.py --- a/awx/main/routing.py +++ b/awx/main/routing.py @@ -27,8 +27,8 @@ websocket_urlpatterns = [ - re_path(r'websocket/$', consumers.EventConsumer.as_asgi()), - re_path(r'websocket/broadcast/$', consumers.BroadcastConsumer.as_asgi()), + re_path(r'webso...
{"golden_diff": "diff --git a/awx/main/routing.py b/awx/main/routing.py\n--- a/awx/main/routing.py\n+++ b/awx/main/routing.py\n@@ -27,8 +27,8 @@\n \n \n websocket_urlpatterns = [\n- re_path(r'websocket/$', consumers.EventConsumer.as_asgi()),\n- re_path(r'websocket/broadcast/$', consumers.BroadcastConsumer.as_asgi...
1,911
132
gh_patches_debug_38158
rasdani/github-patches
git_diff
Flexget__Flexget-171
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Input plugin "imdb_list" currently failing to fetch lists behind authentication Message: `There was an error during imdb_list input (Unable to get imdb list: 404 Client Error: Not Found), using cache instead....
diff --git a/flexget/plugins/input/imdb_list.py b/flexget/plugins/input/imdb_list.py --- a/flexget/plugins/input/imdb_list.py +++ b/flexget/plugins/input/imdb_list.py @@ -1,13 +1,13 @@ from __future__ import unicode_literals, division, absolute_import import logging -import csv +import feedparser import re from cgi...
{"golden_diff": "diff --git a/flexget/plugins/input/imdb_list.py b/flexget/plugins/input/imdb_list.py\n--- a/flexget/plugins/input/imdb_list.py\n+++ b/flexget/plugins/input/imdb_list.py\n@@ -1,13 +1,13 @@\n from __future__ import unicode_literals, division, absolute_import\n import logging\n-import csv\n+import feedpar...
1,708
704
gh_patches_debug_36150
rasdani/github-patches
git_diff
prowler-cloud__prowler-2736
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ecr_repositories_scan_vulnerabilities_in_latest_image: Configure level ### New feature motivation Hi, is it possible to configure the level from which the test shall fail? AWS tags some findings as medium w...
diff --git a/prowler/providers/aws/services/ecr/ecr_repositories_scan_vulnerabilities_in_latest_image/ecr_repositories_scan_vulnerabilities_in_latest_image.py b/prowler/providers/aws/services/ecr/ecr_repositories_scan_vulnerabilities_in_latest_image/ecr_repositories_scan_vulnerabilities_in_latest_image.py --- a/prowler...
{"golden_diff": "diff --git a/prowler/providers/aws/services/ecr/ecr_repositories_scan_vulnerabilities_in_latest_image/ecr_repositories_scan_vulnerabilities_in_latest_image.py b/prowler/providers/aws/services/ecr/ecr_repositories_scan_vulnerabilities_in_latest_image/ecr_repositories_scan_vulnerabilities_in_latest_image...
861
559
gh_patches_debug_13964
rasdani/github-patches
git_diff
azavea__raster-vision-701
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Predict zero for nodata pixels on semantic segmentation --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ra...
diff --git a/rastervision/task/semantic_segmentation.py b/rastervision/task/semantic_segmentation.py --- a/rastervision/task/semantic_segmentation.py +++ b/rastervision/task/semantic_segmentation.py @@ -126,12 +126,12 @@ def label_fn(window): chip = raster_source.get_chip(window) - if...
{"golden_diff": "diff --git a/rastervision/task/semantic_segmentation.py b/rastervision/task/semantic_segmentation.py\n--- a/rastervision/task/semantic_segmentation.py\n+++ b/rastervision/task/semantic_segmentation.py\n@@ -126,12 +126,12 @@\n \n def label_fn(window):\n chip = raster_source.get_chip(...
1,538
231