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_31101
rasdani/github-patches
git_diff
StackStorm__st2-4592
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The api key in the st2api log is not obfuscated ##### SUMMARY The user found in clean API key in query request (for the load balancer health check) ```GET /api/v1/?st2-api-key=foo HTTP/1.1``` ##### ISSUE...
diff --git a/st2common/st2common/middleware/logging.py b/st2common/st2common/middleware/logging.py --- a/st2common/st2common/middleware/logging.py +++ b/st2common/st2common/middleware/logging.py @@ -14,16 +14,28 @@ # limitations under the License. from __future__ import absolute_import + import time import types ...
{"golden_diff": "diff --git a/st2common/st2common/middleware/logging.py b/st2common/st2common/middleware/logging.py\n--- a/st2common/st2common/middleware/logging.py\n+++ b/st2common/st2common/middleware/logging.py\n@@ -14,16 +14,28 @@\n # limitations under the License.\n \n from __future__ import absolute_import\n+\n i...
1,376
406
gh_patches_debug_14129
rasdani/github-patches
git_diff
freedomofpress__securedrop-237
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Possible path confusion / traversal via imprecise store.verify() The method `store.verify()` checks file paths provided via URL and other ways and raises an exception if they are not matching the validation c...
diff --git a/securedrop/store.py b/securedrop/store.py --- a/securedrop/store.py +++ b/securedrop/store.py @@ -35,13 +35,13 @@ if not p == os.path.abspath(p): raise PathException("The path is not absolute and/or normalized") - if os.path.commonprefix([config.STORE_DIR, p]) != config.STORE_DIR: + #...
{"golden_diff": "diff --git a/securedrop/store.py b/securedrop/store.py\n--- a/securedrop/store.py\n+++ b/securedrop/store.py\n@@ -35,13 +35,13 @@\n if not p == os.path.abspath(p):\n raise PathException(\"The path is not absolute and/or normalized\")\n \n- if os.path.commonprefix([config.STORE_DIR, p]) !...
1,222
208
gh_patches_debug_26522
rasdani/github-patches
git_diff
plone__Products.CMFPlone-3741
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Assigning group members: memberlist batch navigation is broken. ## groupmembers listing batch and `showAll` link is broken ### What I did: Assign members to a group: - click on "show all" in the user...
diff --git a/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py b/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py --- a/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py +++ b/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py @@ -57,14 +57,21 ...
{"golden_diff": "diff --git a/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py b/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py\n--- a/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py\n+++ b/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.p...
1,471
360
gh_patches_debug_3110
rasdani/github-patches
git_diff
kserve__kserve-2018
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- KServe 0.8 release tracking /kind feature **Describe the solution you'd like** KServe 0.8 release tracking: RC release Date: 12/30/2021 Release Date: 1/14/2021 KServe Model Serving: - [x] torchserve...
diff --git a/python/kserve/setup.py b/python/kserve/setup.py --- a/python/kserve/setup.py +++ b/python/kserve/setup.py @@ -28,7 +28,7 @@ setuptools.setup( name='kserve', - version='0.8.0rc0', + version='0.8.0', author="The KServe Authors", author_email='ellisbigelow@google.com, hejinchi@cn.ibm.c...
{"golden_diff": "diff --git a/python/kserve/setup.py b/python/kserve/setup.py\n--- a/python/kserve/setup.py\n+++ b/python/kserve/setup.py\n@@ -28,7 +28,7 @@\n \n setuptools.setup(\n name='kserve',\n- version='0.8.0rc0',\n+ version='0.8.0',\n author=\"The KServe Authors\",\n author_email='ellisbigelow@...
1,472
124
gh_patches_debug_22124
rasdani/github-patches
git_diff
fossasia__open-event-server-5566
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Session Export CSV does not include all data The Session Export should export all data sets that are available e.g. including: * Submission time * All speakers * Proposed length * Type (Workshop, Talk) ...
diff --git a/app/api/helpers/csv_jobs_util.py b/app/api/helpers/csv_jobs_util.py --- a/app/api/helpers/csv_jobs_util.py +++ b/app/api/helpers/csv_jobs_util.py @@ -47,7 +47,8 @@ def export_sessions_csv(sessions): headers = ['Session Title', 'Session Speakers', - 'Session Track', 'Session Abstract',...
{"golden_diff": "diff --git a/app/api/helpers/csv_jobs_util.py b/app/api/helpers/csv_jobs_util.py\n--- a/app/api/helpers/csv_jobs_util.py\n+++ b/app/api/helpers/csv_jobs_util.py\n@@ -47,7 +47,8 @@\n \n def export_sessions_csv(sessions):\n headers = ['Session Title', 'Session Speakers',\n- 'Session Tra...
1,444
237
gh_patches_debug_10825
rasdani/github-patches
git_diff
chainer__chainer-601
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- chainer.functions.Parameter cannot accept cupy.ndarray ``` In [1]: import numpy, chainer, cupy In [2]: p = chainer.functions.Parameter(numpy.arange(12, dtype=numpy.float32)) In [3]: p = chainer.functions.Para...
diff --git a/chainer/functions/connection/parameter.py b/chainer/functions/connection/parameter.py --- a/chainer/functions/connection/parameter.py +++ b/chainer/functions/connection/parameter.py @@ -1,5 +1,6 @@ import numpy +from chainer import cuda from chainer import function from chainer.utils import type_check...
{"golden_diff": "diff --git a/chainer/functions/connection/parameter.py b/chainer/functions/connection/parameter.py\n--- a/chainer/functions/connection/parameter.py\n+++ b/chainer/functions/connection/parameter.py\n@@ -1,5 +1,6 @@\n import numpy\n \n+from chainer import cuda\n from chainer import function\n from chaine...
892
162
gh_patches_debug_19977
rasdani/github-patches
git_diff
uclapi__uclapi-1219
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Data exposed by webhooks, not shown by /bookings An example is Gordon St (22) 4.01 . which is provided by webhooks when bookings change but we do not return it for bookings usually. --- END ISSUE --- Below ...
diff --git a/backend/uclapi/roombookings/management/commands/trigger_webhooks.py b/backend/uclapi/roombookings/management/commands/trigger_webhooks.py --- a/backend/uclapi/roombookings/management/commands/trigger_webhooks.py +++ b/backend/uclapi/roombookings/management/commands/trigger_webhooks.py @@ -7,6 +7,7 @@ from...
{"golden_diff": "diff --git a/backend/uclapi/roombookings/management/commands/trigger_webhooks.py b/backend/uclapi/roombookings/management/commands/trigger_webhooks.py\n--- a/backend/uclapi/roombookings/management/commands/trigger_webhooks.py\n+++ b/backend/uclapi/roombookings/management/commands/trigger_webhooks.py\n@...
1,790
253
gh_patches_debug_24551
rasdani/github-patches
git_diff
opsdroid__opsdroid-41
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Generate default config It should be possible to generate some basic config with a command line flag to opsdroid. It should cause opsdroid to print out the config so that is can be piped into a file. e.g ``...
diff --git a/opsdroid/__main__.py b/opsdroid/__main__.py --- a/opsdroid/__main__.py +++ b/opsdroid/__main__.py @@ -1,6 +1,9 @@ """Starts opsdroid.""" +import sys +import os import logging +import argparse from opsdroid.loader import Loader from opsdroid.core import OpsDroid @@ -8,11 +11,30 @@ from opsdroid.con...
{"golden_diff": "diff --git a/opsdroid/__main__.py b/opsdroid/__main__.py\n--- a/opsdroid/__main__.py\n+++ b/opsdroid/__main__.py\n@@ -1,6 +1,9 @@\n \"\"\"Starts opsdroid.\"\"\"\n \n+import sys\n+import os\n import logging\n+import argparse\n \n from opsdroid.loader import Loader\n from opsdroid.core import OpsDroid\n@...
570
322
gh_patches_debug_35552
rasdani/github-patches
git_diff
pfnet__pytorch-pfn-extras-385
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Profiler: Automatically fill `tag` in `record`? Maybe we can use the caller's function name (`inspect.stack()`) if tag is not given. TODO: Need to measure overhead. --- END ISSUE --- Below are some code ...
diff --git a/pytorch_pfn_extras/profiler/_record.py b/pytorch_pfn_extras/profiler/_record.py --- a/pytorch_pfn_extras/profiler/_record.py +++ b/pytorch_pfn_extras/profiler/_record.py @@ -1,17 +1,35 @@ from contextlib import contextmanager +import inspect from typing import Any, Callable, Generator, Iterable, Optional...
{"golden_diff": "diff --git a/pytorch_pfn_extras/profiler/_record.py b/pytorch_pfn_extras/profiler/_record.py\n--- a/pytorch_pfn_extras/profiler/_record.py\n+++ b/pytorch_pfn_extras/profiler/_record.py\n@@ -1,17 +1,35 @@\n from contextlib import contextmanager\n+import inspect\n from typing import Any, Callable, Genera...
810
585
gh_patches_debug_35093
rasdani/github-patches
git_diff
hydroshare__hydroshare-4819
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- rewrite author order test **Description of the bug** This test fails occasionally. Rewrite it removing 2 assertions: [https://github.com/hydroshare/hydroshare/blob/4372-communities-and-groups-2.0/hs_c[…]ore...
diff --git a/hs_core/management/commands/reorder_authors.py b/hs_core/management/commands/reorder_authors.py --- a/hs_core/management/commands/reorder_authors.py +++ b/hs_core/management/commands/reorder_authors.py @@ -6,7 +6,7 @@ Related to https://github.com/hydroshare/hydroshare/issues/4695 """ -from django.core...
{"golden_diff": "diff --git a/hs_core/management/commands/reorder_authors.py b/hs_core/management/commands/reorder_authors.py\n--- a/hs_core/management/commands/reorder_authors.py\n+++ b/hs_core/management/commands/reorder_authors.py\n@@ -6,7 +6,7 @@\n Related to https://github.com/hydroshare/hydroshare/issues/4695\n \...
899
618
gh_patches_debug_3501
rasdani/github-patches
git_diff
plone__Products.CMFPlone-1068
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- mail controlpanel: doesn't keep password field Saving the mail settings in the controlpanel doesn't keep the password field value, as it is obviously never shown in ESMTP password. Steps to reproduce: 1. Fil...
diff --git a/Products/CMFPlone/controlpanel/browser/mail.py b/Products/CMFPlone/controlpanel/browser/mail.py --- a/Products/CMFPlone/controlpanel/browser/mail.py +++ b/Products/CMFPlone/controlpanel/browser/mail.py @@ -36,6 +36,10 @@ if errors: self.status = self.formErrorsMessage ret...
{"golden_diff": "diff --git a/Products/CMFPlone/controlpanel/browser/mail.py b/Products/CMFPlone/controlpanel/browser/mail.py\n--- a/Products/CMFPlone/controlpanel/browser/mail.py\n+++ b/Products/CMFPlone/controlpanel/browser/mail.py\n@@ -36,6 +36,10 @@\n if errors:\n self.status = self.formErrorsMe...
1,288
141
gh_patches_debug_32239
rasdani/github-patches
git_diff
Textualize__textual-2112
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `)` cannot appear as part of the parameter passed to an action Reproduction: ```python from textual.app import App class ActionBugApp(App): BINDINGS = [("a", "test(')')", "Test")] def act...
diff --git a/src/textual/actions.py b/src/textual/actions.py --- a/src/textual/actions.py +++ b/src/textual/actions.py @@ -6,7 +6,7 @@ from typing_extensions import Any, TypeAlias ActionParseResult: TypeAlias = "tuple[str, tuple[Any, ...]]" -"""An action is its name and the arbitrary tuple of its parameters.""" +""...
{"golden_diff": "diff --git a/src/textual/actions.py b/src/textual/actions.py\n--- a/src/textual/actions.py\n+++ b/src/textual/actions.py\n@@ -6,7 +6,7 @@\n from typing_extensions import Any, TypeAlias\n \n ActionParseResult: TypeAlias = \"tuple[str, tuple[Any, ...]]\"\n-\"\"\"An action is its name and the arbitrary tu...
839
518
gh_patches_debug_7276
rasdani/github-patches
git_diff
pyodide__pyodide-3013
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Relative URLs in pyodide.loadPackage ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> The documentation states that [pyodide.loadPackage](https://pyodide.org/en/stable/usage/api/js-a...
diff --git a/packages/micropip/src/micropip/_compat_in_pyodide.py b/packages/micropip/src/micropip/_compat_in_pyodide.py --- a/packages/micropip/src/micropip/_compat_in_pyodide.py +++ b/packages/micropip/src/micropip/_compat_in_pyodide.py @@ -23,7 +23,7 @@ if parsed_url.scheme == "emfs": return open(parse...
{"golden_diff": "diff --git a/packages/micropip/src/micropip/_compat_in_pyodide.py b/packages/micropip/src/micropip/_compat_in_pyodide.py\n--- a/packages/micropip/src/micropip/_compat_in_pyodide.py\n+++ b/packages/micropip/src/micropip/_compat_in_pyodide.py\n@@ -23,7 +23,7 @@\n if parsed_url.scheme == \"emfs\":\n ...
1,141
182
gh_patches_debug_35885
rasdani/github-patches
git_diff
sql-machine-learning__elasticdl-264
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [master]Use tf.ResourceVariable to store model Currently we store model as a <string, ndarray> map. when using tf.optimizer.apply_gradient() to update model, we need to convert the map to ResourceVariable and...
diff --git a/elasticdl/master/servicer.py b/elasticdl/master/servicer.py --- a/elasticdl/master/servicer.py +++ b/elasticdl/master/servicer.py @@ -1,5 +1,7 @@ import threading +import numpy as np +import tensorflow as tf from proto import master_pb2 from proto import master_pb2_grpc from util.converter import Nda...
{"golden_diff": "diff --git a/elasticdl/master/servicer.py b/elasticdl/master/servicer.py\n--- a/elasticdl/master/servicer.py\n+++ b/elasticdl/master/servicer.py\n@@ -1,5 +1,7 @@\n import threading\n+import numpy as np\n \n+import tensorflow as tf\n from proto import master_pb2\n from proto import master_pb2_grpc\n fro...
1,245
496
gh_patches_debug_189
rasdani/github-patches
git_diff
qtile__qtile-1837
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 0.16.0: impossible to build from github sources (to run tests) <!-- Please do not ask general questions here! There are [community contact](https://github.com/qtile/qtile#community) options for that. --> ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -93,4 +93,5 @@ use_scm_version=True, cffi_modules=get_cffi_modules(), install_requires=["cffi>=1.0.0"], + include_package_data=True, )
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -93,4 +93,5 @@\n use_scm_version=True,\n cffi_modules=get_cffi_modules(),\n install_requires=[\"cffi>=1.0.0\"],\n+ include_package_data=True,\n )\n", "issue": "0.16.0: impossible to build from github sources (to run tes...
2,023
69
gh_patches_debug_27358
rasdani/github-patches
git_diff
modoboa__modoboa-759
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Passwords complexity We must ensure passwords respect a minimum complexity. See https://github.com/modoboa/modoboa-admin/issues/27 --- END ISSUE --- Below are some code segments, each from a relevant file...
diff --git a/modoboa/core/dev_settings.py b/modoboa/core/dev_settings.py --- a/modoboa/core/dev_settings.py +++ b/modoboa/core/dev_settings.py @@ -8,7 +8,7 @@ BOWER_INSTALLED_APPS = ( "jquery#1.9", "jquery-ui#1.11", - "bootstrap#3.3.1", + "bootstrap#3.3.5", "bootstrap-select#1.6", "d3#3.5.0",...
{"golden_diff": "diff --git a/modoboa/core/dev_settings.py b/modoboa/core/dev_settings.py\n--- a/modoboa/core/dev_settings.py\n+++ b/modoboa/core/dev_settings.py\n@@ -8,7 +8,7 @@\n BOWER_INSTALLED_APPS = (\n \"jquery#1.9\",\n \"jquery-ui#1.11\",\n- \"bootstrap#3.3.1\",\n+ \"bootstrap#3.3.5\",\n \"boot...
1,177
347
gh_patches_debug_29775
rasdani/github-patches
git_diff
liqd__adhocracy4-476
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- adding multiple answer text to answer page --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `adhocracy4/comm...
diff --git a/adhocracy4/comments_async/serializers.py b/adhocracy4/comments_async/serializers.py --- a/adhocracy4/comments_async/serializers.py +++ b/adhocracy4/comments_async/serializers.py @@ -21,7 +21,8 @@ model = Comment read_only_fields = ('modified', 'created', 'id', ...
{"golden_diff": "diff --git a/adhocracy4/comments_async/serializers.py b/adhocracy4/comments_async/serializers.py\n--- a/adhocracy4/comments_async/serializers.py\n+++ b/adhocracy4/comments_async/serializers.py\n@@ -21,7 +21,8 @@\n model = Comment\n read_only_fields = ('modified', 'created', 'id',\n ...
1,669
353
gh_patches_debug_18594
rasdani/github-patches
git_diff
modoboa__modoboa-973
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Test failure when using tox This is because tox use sqlite and has no user set ``` ====================================================================== ERROR: test_map_upgrade (modoboa.admin.tests.test_map...
diff --git a/modoboa/core/management/commands/generate_postfix_maps.py b/modoboa/core/management/commands/generate_postfix_maps.py --- a/modoboa/core/management/commands/generate_postfix_maps.py +++ b/modoboa/core/management/commands/generate_postfix_maps.py @@ -125,10 +125,13 @@ mapcontent = utils.parse_m...
{"golden_diff": "diff --git a/modoboa/core/management/commands/generate_postfix_maps.py b/modoboa/core/management/commands/generate_postfix_maps.py\n--- a/modoboa/core/management/commands/generate_postfix_maps.py\n+++ b/modoboa/core/management/commands/generate_postfix_maps.py\n@@ -125,10 +125,13 @@\n mapco...
2,019
273
gh_patches_debug_75
rasdani/github-patches
git_diff
kedro-org__kedro-2092
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release Kedro `0.18.4` ### Depends on: - Dataset issues - Spaceflights tutorial documentation - Open PRs related to datasets: - [x] https://github.com/kedro-org/kedro/pull/2082 - [x] https://github.com/...
diff --git a/kedro/__init__.py b/kedro/__init__.py --- a/kedro/__init__.py +++ b/kedro/__init__.py @@ -3,7 +3,7 @@ configuration and pipeline assembly. """ -__version__ = "0.18.3" +__version__ = "0.18.4" import logging
{"golden_diff": "diff --git a/kedro/__init__.py b/kedro/__init__.py\n--- a/kedro/__init__.py\n+++ b/kedro/__init__.py\n@@ -3,7 +3,7 @@\n configuration and pipeline assembly.\n \"\"\"\n \n-__version__ = \"0.18.3\"\n+__version__ = \"0.18.4\"\n \n \n import logging\n", "issue": "Release Kedro `0.18.4`\n### Depends on:\n- ...
684
87
gh_patches_debug_16511
rasdani/github-patches
git_diff
cupy__cupy-7405
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Drop support for Python 3.7, NumPy 1.20, and SciPy 1.6 on document and setup.py #7405 has some CI issues, so we update the documentation and setup.py first for the next release. --- END ISSUE --- Below are ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -105,7 +105,6 @@ License :: OSI Approved :: MIT License Programming Language :: Python Programming Language :: Python :: 3 -Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programmin...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -105,7 +105,6 @@\n License :: OSI Approved :: MIT License\n Programming Language :: Python\n Programming Language :: Python :: 3\n-Programming Language :: Python :: 3.7\n Programming Language :: Python :: 3.8\n Programming Language ::...
1,903
176
gh_patches_debug_13872
rasdani/github-patches
git_diff
LMFDB__lmfdb-4241
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bad links on HMF browse pages A report from the bug report system, from Paul Gunnells: "On https://www.lmfdb.org/ModularForm/GL2/TotallyReal/browse/2/ the links in the middle column (the Number o...
diff --git a/lmfdb/hilbert_modular_forms/hmf_stats.py b/lmfdb/hilbert_modular_forms/hmf_stats.py --- a/lmfdb/hilbert_modular_forms/hmf_stats.py +++ b/lmfdb/hilbert_modular_forms/hmf_stats.py @@ -97,7 +97,7 @@ "counts": {F: {"nforms": counts[F], "maxnorm": nstat...
{"golden_diff": "diff --git a/lmfdb/hilbert_modular_forms/hmf_stats.py b/lmfdb/hilbert_modular_forms/hmf_stats.py\n--- a/lmfdb/hilbert_modular_forms/hmf_stats.py\n+++ b/lmfdb/hilbert_modular_forms/hmf_stats.py\n@@ -97,7 +97,7 @@\n \"counts\": {F: {\"nforms\": counts[F],\n ...
1,900
195
gh_patches_debug_62231
rasdani/github-patches
git_diff
obspy__obspy-1673
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Parsing SEED: 'Date is required.' Warning Hi, Each time I want to read a dataless with different periods of time, I have this annoying warning message: ``` from obspy.io.xseed import Parser from obspy impor...
diff --git a/obspy/io/xseed/blockette/blockette051.py b/obspy/io/xseed/blockette/blockette051.py --- a/obspy/io/xseed/blockette/blockette051.py +++ b/obspy/io/xseed/blockette/blockette051.py @@ -19,7 +19,7 @@ name = "Station Comment" fields = [ VariableString(3, "Beginning effective time", 1, 22, 'T'...
{"golden_diff": "diff --git a/obspy/io/xseed/blockette/blockette051.py b/obspy/io/xseed/blockette/blockette051.py\n--- a/obspy/io/xseed/blockette/blockette051.py\n+++ b/obspy/io/xseed/blockette/blockette051.py\n@@ -19,7 +19,7 @@\n name = \"Station Comment\"\n fields = [\n VariableString(3, \"Beginning e...
1,007
197
gh_patches_debug_12780
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-2017
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- E7003 Errors when using Fn::Transform inside a Mapping *cfn-lint version: 0.49.2* *Description of issue.* #2006 tightened what is considered valid for use in a Mapping. This causes it to reject what othe...
diff --git a/src/cfnlint/rules/mappings/KeyName.py b/src/cfnlint/rules/mappings/KeyName.py --- a/src/cfnlint/rules/mappings/KeyName.py +++ b/src/cfnlint/rules/mappings/KeyName.py @@ -35,7 +35,7 @@ if not isinstance(key, six.string_types): message = 'Mapping key ({0}) has to be a string.' ...
{"golden_diff": "diff --git a/src/cfnlint/rules/mappings/KeyName.py b/src/cfnlint/rules/mappings/KeyName.py\n--- a/src/cfnlint/rules/mappings/KeyName.py\n+++ b/src/cfnlint/rules/mappings/KeyName.py\n@@ -35,7 +35,7 @@\n if not isinstance(key, six.string_types):\n message = 'Mapping key ({0}) has to b...
1,089
200
gh_patches_debug_26751
rasdani/github-patches
git_diff
blaze__blaze-1196
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Blaze server yaml file error Testing the Blaze server from a file and getting the following error: ``` python $ blaze-server server.yaml Traceback (most recent call last): File "/anaconda/envs/ep-blaze/bin...
diff --git a/blaze/server/spider.py b/blaze/server/spider.py --- a/blaze/server/spider.py +++ b/blaze/server/spider.py @@ -13,6 +13,11 @@ from .server import Server, DEFAULT_PORT +try: + import __builtin__ as builtins +except ImportError: + import builtins + __all__ = 'spider', 'from_yaml' @@ -115,7 +12...
{"golden_diff": "diff --git a/blaze/server/spider.py b/blaze/server/spider.py\n--- a/blaze/server/spider.py\n+++ b/blaze/server/spider.py\n@@ -13,6 +13,11 @@\n \n from .server import Server, DEFAULT_PORT\n \n+try:\n+ import __builtin__ as builtins\n+except ImportError:\n+ import builtins\n+\n \n __all__ = 'spider...
1,802
312
gh_patches_debug_28855
rasdani/github-patches
git_diff
ultrabug__py3status-2101
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- external_script modifies numeric output The external_script module converts numeric values to a numeric type. This removes the original formatting of the input and is undesired. To reproduce create an exte...
diff --git a/py3status/modules/external_script.py b/py3status/modules/external_script.py --- a/py3status/modules/external_script.py +++ b/py3status/modules/external_script.py @@ -12,6 +12,8 @@ (default None) cache_timeout: how often we refresh this module in seconds (default 15) + convert_numb...
{"golden_diff": "diff --git a/py3status/modules/external_script.py b/py3status/modules/external_script.py\n--- a/py3status/modules/external_script.py\n+++ b/py3status/modules/external_script.py\n@@ -12,6 +12,8 @@\n (default None)\n cache_timeout: how often we refresh this module in seconds\n (defaul...
1,408
315
gh_patches_debug_6294
rasdani/github-patches
git_diff
e-valuation__EvaP-1353
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Importing a backup made by update_production.sh does not work flawlessly. Last week we wanted to do a production update. The json dump file created during that update could not be imported without issues: - ...
diff --git a/evap/evaluation/management/commands/dump_testdata.py b/evap/evaluation/management/commands/dump_testdata.py --- a/evap/evaluation/management/commands/dump_testdata.py +++ b/evap/evaluation/management/commands/dump_testdata.py @@ -12,4 +12,6 @@ def handle(self, *args, **options): outfile_nam...
{"golden_diff": "diff --git a/evap/evaluation/management/commands/dump_testdata.py b/evap/evaluation/management/commands/dump_testdata.py\n--- a/evap/evaluation/management/commands/dump_testdata.py\n+++ b/evap/evaluation/management/commands/dump_testdata.py\n@@ -12,4 +12,6 @@\n \n def handle(self, *args, **options)...
559
189
gh_patches_debug_48905
rasdani/github-patches
git_diff
hylang__hy-1322
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The lexer hits the maximum recursion depth given a file with too many comment lines $ yes ';' | head -n 500 >/tmp/foo.hy $ hy /tmp/foo.hy Traceback (most recent call last): File "/hom...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ "." + filename[:-len(".hy")]) install.run(self) -install_requires = ['rply>=0.7.0', 'astor>=0.5', 'clint>=0.4'] +install_requires = ['rply>=0.7.5', 'astor>=0.5', 'clint>=0.4'] if os.name == 'nt': i...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -30,7 +30,7 @@\n \".\" + filename[:-len(\".hy\")])\n install.run(self)\n \n-install_requires = ['rply>=0.7.0', 'astor>=0.5', 'clint>=0.4']\n+install_requires = ['rply>=0.7.5', 'astor>=0.5', 'clint>=0.4'...
1,922
127
gh_patches_debug_1061
rasdani/github-patches
git_diff
kymatio__kymatio-352
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ENH+TST find a way of testing GPU code With not too much investment in 💲 💰 it should be possible to set up a `jenkins` testing suite on amazon aws: The idea is to have a micro machine that costs 1c/h run t...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ # Parse description -with open('README.md') as f: +with open('README.md', encoding='utf8') as f: README = f.read().split('\n') LONG_DESCRIPTION = '\n'.join([x for x in README if not x[:3]=='[!['])
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -16,7 +16,7 @@\n \n \n # Parse description\n-with open('README.md') as f:\n+with open('README.md', encoding='utf8') as f:\n README = f.read().split('\\n')\n LONG_DESCRIPTION = '\\n'.join([x for x in README if not x[:3]=='[![']...
1,397
94
gh_patches_debug_6301
rasdani/github-patches
git_diff
azavea__raster-vision-1235
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Predictor does not reset the scene's aoi_geometries and the raster source's extent_crop Currently, the `Predictor` re-uses a `SceneConfig` from the pipeline config in the bundle (instead of creating a new one...
diff --git a/rastervision_core/rastervision/core/predictor.py b/rastervision_core/rastervision/core/predictor.py --- a/rastervision_core/rastervision/core/predictor.py +++ b/rastervision_core/rastervision/core/predictor.py @@ -69,6 +69,9 @@ self.scene.label_source = None self.scene.aoi_uris = None +...
{"golden_diff": "diff --git a/rastervision_core/rastervision/core/predictor.py b/rastervision_core/rastervision/core/predictor.py\n--- a/rastervision_core/rastervision/core/predictor.py\n+++ b/rastervision_core/rastervision/core/predictor.py\n@@ -69,6 +69,9 @@\n \n self.scene.label_source = None\n self....
1,741
159
gh_patches_debug_17813
rasdani/github-patches
git_diff
translate__pootle-4679
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Snippet caching is not cleared between tests Currently if you run a test that saves data in the exports cache, the data is still there in the next test --- END ISSUE --- Below are some code segments, each ...
diff --git a/pytest_pootle/fixtures/revision.py b/pytest_pootle/fixtures/revision.py --- a/pytest_pootle/fixtures/revision.py +++ b/pytest_pootle/fixtures/revision.py @@ -11,8 +11,12 @@ @pytest.fixture(autouse=True) -def revision(): - """Sets up the revision counter for each test call.""" +def revision(request,...
{"golden_diff": "diff --git a/pytest_pootle/fixtures/revision.py b/pytest_pootle/fixtures/revision.py\n--- a/pytest_pootle/fixtures/revision.py\n+++ b/pytest_pootle/fixtures/revision.py\n@@ -11,8 +11,12 @@\n \n \n @pytest.fixture(autouse=True)\n-def revision():\n- \"\"\"Sets up the revision counter for each test cal...
1,117
310
gh_patches_debug_18334
rasdani/github-patches
git_diff
googleapis__google-api-python-client-1295
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Modify noxfile to build and test the package Versions `2.0.0` and `2.0.1` were yanked from PyPI last week due to an issue where discovery documents were not included in the published package causing `discover...
diff --git a/noxfile.py b/noxfile.py --- a/noxfile.py +++ b/noxfile.py @@ -16,6 +16,8 @@ import sys import nox +import os +import shutil test_dependencies = [ "django>=2.0.0", @@ -58,9 +60,22 @@ ], ) def unit(session, oauth2client): + # Clean up dist and build folders + shutil.rmtree('dist', ig...
{"golden_diff": "diff --git a/noxfile.py b/noxfile.py\n--- a/noxfile.py\n+++ b/noxfile.py\n@@ -16,6 +16,8 @@\n import sys\n \n import nox\n+import os\n+import shutil\n \n test_dependencies = [\n \"django>=2.0.0\",\n@@ -58,9 +60,22 @@\n ],\n )\n def unit(session, oauth2client):\n+ # Clean up dist and build fo...
1,259
267
gh_patches_debug_24814
rasdani/github-patches
git_diff
coala__coala-bears-1276
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The bear HaskellLintBear raised an exception I've used HaskellLintBear to linting https://github.com/wisn/elm-reactor/ Here is the log https://travis-ci.org/wisn/elm-reactor/builds/180417562 The build ...
diff --git a/bears/haskell/HaskellLintBear.py b/bears/haskell/HaskellLintBear.py --- a/bears/haskell/HaskellLintBear.py +++ b/bears/haskell/HaskellLintBear.py @@ -38,11 +38,15 @@ output = json.loads(output) for issue in output: - assert issue['startLine'] == issue['endLine'] ...
{"golden_diff": "diff --git a/bears/haskell/HaskellLintBear.py b/bears/haskell/HaskellLintBear.py\n--- a/bears/haskell/HaskellLintBear.py\n+++ b/bears/haskell/HaskellLintBear.py\n@@ -38,11 +38,15 @@\n output = json.loads(output)\n \n for issue in output:\n- assert issue['startLine'] == issue[...
1,095
308
gh_patches_debug_1616
rasdani/github-patches
git_diff
bookwyrm-social__bookwyrm-3193
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Switching editions changes "shelved" date **Describe the bug** When switching editions of a book already on your "To Read" list, the "shelved" date is changed to today's date. **To Reproduce** Steps to r...
diff --git a/bookwyrm/views/books/editions.py b/bookwyrm/views/books/editions.py --- a/bookwyrm/views/books/editions.py +++ b/bookwyrm/views/books/editions.py @@ -93,6 +93,7 @@ user=shelfbook.user, shelf=shelfbook.shelf, book=new_edition, + shelved_date=...
{"golden_diff": "diff --git a/bookwyrm/views/books/editions.py b/bookwyrm/views/books/editions.py\n--- a/bookwyrm/views/books/editions.py\n+++ b/bookwyrm/views/books/editions.py\n@@ -93,6 +93,7 @@\n user=shelfbook.user,\n shelf=shelfbook.shelf,\n book=new_edition,\n+ ...
1,443
101
gh_patches_debug_20183
rasdani/github-patches
git_diff
saleor__saleor-2826
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Django 2.1 compatibility We should switch our supported Django version to the following list: * Django 1.11 (current LTS) * Django 2.1 (latest stable) Current blockers: * [x] `graphene-django` depends o...
diff --git a/saleor/core/weight.py b/saleor/core/weight.py --- a/saleor/core/weight.py +++ b/saleor/core/weight.py @@ -70,8 +70,8 @@ return value.value return value - def render(self, name, value, attrs=None): - widget = super().render(name, value, attrs=attrs) + def render(self, na...
{"golden_diff": "diff --git a/saleor/core/weight.py b/saleor/core/weight.py\n--- a/saleor/core/weight.py\n+++ b/saleor/core/weight.py\n@@ -70,8 +70,8 @@\n return value.value\n return value\n \n- def render(self, name, value, attrs=None):\n- widget = super().render(name, value, attrs=attrs)...
1,516
242
gh_patches_debug_61923
rasdani/github-patches
git_diff
ray-project__ray-3109
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ship Modin with Ray ### Describe the problem <!-- Describe the problem clearly here. --> I think it makes sense to ship Modin with Ray. I suggest doing this similar to how pyarrow is shipped with Ray. We...
diff --git a/python/ray/__init__.py b/python/ray/__init__.py --- a/python/ray/__init__.py +++ b/python/ray/__init__.py @@ -46,6 +46,9 @@ e.args += (helpful_message, ) raise +modin_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "modin") +sys.path.insert(0, modin_path) + from ray.ray...
{"golden_diff": "diff --git a/python/ray/__init__.py b/python/ray/__init__.py\n--- a/python/ray/__init__.py\n+++ b/python/ray/__init__.py\n@@ -46,6 +46,9 @@\n e.args += (helpful_message, )\n raise\n \n+modin_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), \"modin\")\n+sys.path.insert(0, ...
1,506
154
gh_patches_debug_15080
rasdani/github-patches
git_diff
pulp__pulpcore-5190
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix import in wsgi preventing startup **Version** Confirmed with Katello folks using 3.49 branch. **Describe the bug** We're getting an error during the startup stage: ```python Starting Pulp API Serve...
diff --git a/pulpcore/app/wsgi.py b/pulpcore/app/wsgi.py --- a/pulpcore/app/wsgi.py +++ b/pulpcore/app/wsgi.py @@ -11,7 +11,6 @@ from opentelemetry.instrumentation.wsgi import OpenTelemetryMiddleware from pulpcore.app.entrypoint import using_pulp_api_worker -from pulpcore.app.util import init_domain_metrics_exporte...
{"golden_diff": "diff --git a/pulpcore/app/wsgi.py b/pulpcore/app/wsgi.py\n--- a/pulpcore/app/wsgi.py\n+++ b/pulpcore/app/wsgi.py\n@@ -11,7 +11,6 @@\n from opentelemetry.instrumentation.wsgi import OpenTelemetryMiddleware\n \n from pulpcore.app.entrypoint import using_pulp_api_worker\n-from pulpcore.app.util import ini...
1,439
173
gh_patches_debug_24448
rasdani/github-patches
git_diff
conan-io__conan-center-index-9862
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Package]OpenSUSE Tumbleweed fix problem - glu/system https://github.com/conan-io/conan-center-index/blob/8658ae021ce225d889fa4ee38d30cb80877a7c75/recipes/glu/all/conanfile.py#L17-L32 This fix the problem ...
diff --git a/recipes/glu/all/conanfile.py b/recipes/glu/all/conanfile.py --- a/recipes/glu/all/conanfile.py +++ b/recipes/glu/all/conanfile.py @@ -1,13 +1,12 @@ from conans import ConanFile, tools from conans.errors import ConanException -import os class SysConfigGLUConan(ConanFile): name = "glu" versi...
{"golden_diff": "diff --git a/recipes/glu/all/conanfile.py b/recipes/glu/all/conanfile.py\n--- a/recipes/glu/all/conanfile.py\n+++ b/recipes/glu/all/conanfile.py\n@@ -1,13 +1,12 @@\n from conans import ConanFile, tools\n from conans.errors import ConanException\n-import os\n \n \n class SysConfigGLUConan(ConanFile):\n ...
1,170
292
gh_patches_debug_15440
rasdani/github-patches
git_diff
akvo__akvo-rsr-3372
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Google maps API requests should use an API key `For development purposes only` watermark is being shown on our maps as Google has made it mandatory to use an API key to talk to the maps API. --- END ISSUE -...
diff --git a/akvo/rsr/context_processors.py b/akvo/rsr/context_processors.py --- a/akvo/rsr/context_processors.py +++ b/akvo/rsr/context_processors.py @@ -29,6 +29,7 @@ deploy_commit_id = getattr(settings, 'DEPLOY_COMMIT_ID', 'Unknown') deploy_commit_full_id = getattr(settings, 'DEPLOY_COMMIT_FULL_ID', 'Unkno...
{"golden_diff": "diff --git a/akvo/rsr/context_processors.py b/akvo/rsr/context_processors.py\n--- a/akvo/rsr/context_processors.py\n+++ b/akvo/rsr/context_processors.py\n@@ -29,6 +29,7 @@\n deploy_commit_id = getattr(settings, 'DEPLOY_COMMIT_ID', 'Unknown')\n deploy_commit_full_id = getattr(settings, 'DEPLOY_C...
1,076
194
gh_patches_debug_30947
rasdani/github-patches
git_diff
allegro__ralph-1541
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ubuntu package We should build ubuntu packages for ralph (without much of scan plugins) to be able to install easily if you're reluctant to use docker. - all js and components integrated into the package - /e...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( name='ralph', - version='3.0.0', # TODO: import from ralph + version=read('./VERSION').strip(), author='Grupa Allegro Sp. z o.o. and Contributors', author_email='pylabs@allegro.pl', description="Advance...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -12,7 +12,7 @@\n \n setup(\n name='ralph',\n- version='3.0.0', # TODO: import from ralph\n+ version=read('./VERSION').strip(),\n author='Grupa Allegro Sp. z o.o. and Contributors',\n author_email='pylabs@allegro.pl'...
1,070
476
gh_patches_debug_39660
rasdani/github-patches
git_diff
streamlink__streamlink-141
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Euronews plugin broken I dig up EuroNews plugin which is broken since December 2014. https://github.com/chrippa/livestreamer/issues/626 --- END ISSUE --- Below are some code segments, each from a relevan...
diff --git a/src/streamlink/plugins/euronews.py b/src/streamlink/plugins/euronews.py --- a/src/streamlink/plugins/euronews.py +++ b/src/streamlink/plugins/euronews.py @@ -1,46 +1,77 @@ import re -from itertools import chain - -from streamlink.compat import urlparse from streamlink.plugin import Plugin from streaml...
{"golden_diff": "diff --git a/src/streamlink/plugins/euronews.py b/src/streamlink/plugins/euronews.py\n--- a/src/streamlink/plugins/euronews.py\n+++ b/src/streamlink/plugins/euronews.py\n@@ -1,46 +1,77 @@\n import re\n \n-from itertools import chain\n-\n-from streamlink.compat import urlparse\n from streamlink.plugin i...
694
981
gh_patches_debug_3261
rasdani/github-patches
git_diff
Kinto__kinto-476
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error while trying to generate a configuration file without subfolder with CLI. ``` $ kinto --ini kinto.ini Traceback (most recent call last): File "~/.virtualenvs/kinto/bin/kinto", line 9, in <module> ...
diff --git a/kinto/config/__init__.py b/kinto/config/__init__.py --- a/kinto/config/__init__.py +++ b/kinto/config/__init__.py @@ -12,7 +12,7 @@ template = os.path.join(HERE, template) folder = os.path.dirname(destination) - if not os.path.exists(folder): + if folder and not os.path.exists(folder): ...
{"golden_diff": "diff --git a/kinto/config/__init__.py b/kinto/config/__init__.py\n--- a/kinto/config/__init__.py\n+++ b/kinto/config/__init__.py\n@@ -12,7 +12,7 @@\n template = os.path.join(HERE, template)\n folder = os.path.dirname(destination)\n \n- if not os.path.exists(folder):\n+ if folder and not o...
974
111
gh_patches_debug_26861
rasdani/github-patches
git_diff
pyca__cryptography-1462
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove pragma nocovers from Windows specific code See #502 --- 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/cryptography/hazmat/bindings/openssl/binding.py b/cryptography/hazmat/bindings/openssl/binding.py --- a/cryptography/hazmat/bindings/openssl/binding.py +++ b/cryptography/hazmat/bindings/openssl/binding.py @@ -95,15 +95,7 @@ # OpenSSL goes by a different library name on different operating ...
{"golden_diff": "diff --git a/cryptography/hazmat/bindings/openssl/binding.py b/cryptography/hazmat/bindings/openssl/binding.py\n--- a/cryptography/hazmat/bindings/openssl/binding.py\n+++ b/cryptography/hazmat/bindings/openssl/binding.py\n@@ -95,15 +95,7 @@\n \n # OpenSSL goes by a different library name on dif...
1,922
447
gh_patches_debug_2172
rasdani/github-patches
git_diff
liqd__a4-opin-1799
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Changing the Organisation Details is not possible **URL:** https://opin.me/en/dashboard/organisations/liquid-democracy/settings/ **user:** Initiators, who try to fill in the Organisations details & as an...
diff --git a/euth/dashboard/forms.py b/euth/dashboard/forms.py --- a/euth/dashboard/forms.py +++ b/euth/dashboard/forms.py @@ -81,7 +81,7 @@ """ return [field for field in self if '__' not in field.html_name] - def prefiled_languages(self): + def prefilled_languages(self): """ ...
{"golden_diff": "diff --git a/euth/dashboard/forms.py b/euth/dashboard/forms.py\n--- a/euth/dashboard/forms.py\n+++ b/euth/dashboard/forms.py\n@@ -81,7 +81,7 @@\n \"\"\"\n return [field for field in self if '__' not in field.html_name]\n \n- def prefiled_languages(self):\n+ def prefilled_languages...
1,483
95
gh_patches_debug_16640
rasdani/github-patches
git_diff
PrefectHQ__prefect-9724
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PrefectHTTPStatusError: Client error '429 Too Many Requests' for url ### First check - [X] I added a descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find...
diff --git a/src/prefect/client/cloud.py b/src/prefect/client/cloud.py --- a/src/prefect/client/cloud.py +++ b/src/prefect/client/cloud.py @@ -8,6 +8,7 @@ import prefect.context import prefect.settings +from prefect.client.base import PrefectHttpxClient from prefect.client.schemas import Workspace from prefect.ex...
{"golden_diff": "diff --git a/src/prefect/client/cloud.py b/src/prefect/client/cloud.py\n--- a/src/prefect/client/cloud.py\n+++ b/src/prefect/client/cloud.py\n@@ -8,6 +8,7 @@\n \n import prefect.context\n import prefect.settings\n+from prefect.client.base import PrefectHttpxClient\n from prefect.client.schemas import W...
1,651
188
gh_patches_debug_11073
rasdani/github-patches
git_diff
mozmeao__snippets-service-1398
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Re-generate all bundles with Distribution changes after Timestamp --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES ---...
diff --git a/snippets/base/management/commands/generate_bundles.py b/snippets/base/management/commands/generate_bundles.py --- a/snippets/base/management/commands/generate_bundles.py +++ b/snippets/base/management/commands/generate_bundles.py @@ -34,7 +34,10 @@ self.stdout.write( 'Generati...
{"golden_diff": "diff --git a/snippets/base/management/commands/generate_bundles.py b/snippets/base/management/commands/generate_bundles.py\n--- a/snippets/base/management/commands/generate_bundles.py\n+++ b/snippets/base/management/commands/generate_bundles.py\n@@ -34,7 +34,10 @@\n self.stdout.write(\n ...
1,533
175
gh_patches_debug_147
rasdani/github-patches
git_diff
encode__httpx-868
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 0.12.0 PyPI wheel contains both public- and private-name modules The following works in httpx 0.11.1: ```python In [1]: import httpx ...: from httpx.exceptions import InvalidURL ...
diff --git a/httpx/__version__.py b/httpx/__version__.py --- a/httpx/__version__.py +++ b/httpx/__version__.py @@ -1,3 +1,3 @@ __title__ = "httpx" __description__ = "A next generation HTTP client, for Python 3." -__version__ = "0.12.0" +__version__ = "0.12.1"
{"golden_diff": "diff --git a/httpx/__version__.py b/httpx/__version__.py\n--- a/httpx/__version__.py\n+++ b/httpx/__version__.py\n@@ -1,3 +1,3 @@\n __title__ = \"httpx\"\n __description__ = \"A next generation HTTP client, for Python 3.\"\n-__version__ = \"0.12.0\"\n+__version__ = \"0.12.1\"\n", "issue": "0.12.0 PyPI ...
1,272
96
gh_patches_debug_6543
rasdani/github-patches
git_diff
saleor__saleor-10987
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unable to filter customers with 0 orders ### **Steps to reproduce the problem:** ```graphql query Customers{ customers(filter: {numberOfOrders: {lte: 0, gte: 0}}, first: 10){ edges{ node{ ...
diff --git a/saleor/graphql/utils/filters.py b/saleor/graphql/utils/filters.py --- a/saleor/graphql/utils/filters.py +++ b/saleor/graphql/utils/filters.py @@ -21,10 +21,10 @@ def filter_range_field(qs, field, value): gte, lte = value.get("gte"), value.get("lte") - if gte: + if gte is not None: lo...
{"golden_diff": "diff --git a/saleor/graphql/utils/filters.py b/saleor/graphql/utils/filters.py\n--- a/saleor/graphql/utils/filters.py\n+++ b/saleor/graphql/utils/filters.py\n@@ -21,10 +21,10 @@\n \n def filter_range_field(qs, field, value):\n gte, lte = value.get(\"gte\"), value.get(\"lte\")\n- if gte:\n+ if...
843
165
gh_patches_debug_29715
rasdani/github-patches
git_diff
opensearch-project__opensearch-build-4090
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Detecting and alerting of duplication keys/components/entries in YAML file ### Is your feature request related to a problem? Please describe it was found in release 1.3.11 , a PR to update [manifest](https...
diff --git a/src/ci_workflow/ci_manifests.py b/src/ci_workflow/ci_manifests.py --- a/src/ci_workflow/ci_manifests.py +++ b/src/ci_workflow/ci_manifests.py @@ -7,9 +7,12 @@ import re +from collections import Counter from io import TextIOWrapper from typing import Type, Union +import yaml + from ci_workflow.ci_...
{"golden_diff": "diff --git a/src/ci_workflow/ci_manifests.py b/src/ci_workflow/ci_manifests.py\n--- a/src/ci_workflow/ci_manifests.py\n+++ b/src/ci_workflow/ci_manifests.py\n@@ -7,9 +7,12 @@\n \n \n import re\n+from collections import Counter\n from io import TextIOWrapper\n from typing import Type, Union\n \n+import ...
750
414
gh_patches_debug_47463
rasdani/github-patches
git_diff
bokeh__bokeh-5968
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Transform docstring ends abruptly ``` Bases: bokeh.model.Model Base class for Transform models that represent a computation to be carried out on the client-side. JavaScript implementations shou...
diff --git a/bokeh/models/transforms.py b/bokeh/models/transforms.py --- a/bokeh/models/transforms.py +++ b/bokeh/models/transforms.py @@ -19,11 +19,11 @@ .. code-block: coffeescript - compute: (x) -> - # compute the transform of a single value + compute: (x) -> + # compute th...
{"golden_diff": "diff --git a/bokeh/models/transforms.py b/bokeh/models/transforms.py\n--- a/bokeh/models/transforms.py\n+++ b/bokeh/models/transforms.py\n@@ -19,11 +19,11 @@\n \n .. code-block: coffeescript\n \n- compute: (x) ->\n- # compute the transform of a single value\n+ compute: (x) -...
1,625
149
gh_patches_debug_14281
rasdani/github-patches
git_diff
litestar-org__litestar-3179
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: CORS Middleware not setting all headers as per spec ### Description Right now, there's only a handful of headers that are only being set for the preflight request. They must be set for both the prefli...
diff --git a/litestar/middleware/cors.py b/litestar/middleware/cors.py --- a/litestar/middleware/cors.py +++ b/litestar/middleware/cors.py @@ -70,6 +70,15 @@ headers["Access-Control-Allow-Origin"] = origin headers["Vary"] = "Origin" + # We don't want to overwri...
{"golden_diff": "diff --git a/litestar/middleware/cors.py b/litestar/middleware/cors.py\n--- a/litestar/middleware/cors.py\n+++ b/litestar/middleware/cors.py\n@@ -70,6 +70,15 @@\n headers[\"Access-Control-Allow-Origin\"] = origin\n headers[\"Vary\"] = \"Origin\"\n \n+ ...
1,558
197
gh_patches_debug_30165
rasdani/github-patches
git_diff
pytorch__ignite-281
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Feature Request] More general metrics I find the metrics to be a bit limited as one might want to pass additional options (even tensors) to the loss. For instance in recurrent models with different sequence...
diff --git a/ignite/metrics/loss.py b/ignite/metrics/loss.py --- a/ignite/metrics/loss.py +++ b/ignite/metrics/loss.py @@ -8,9 +8,21 @@ """ Calculates the average loss according to the passed loss_fn. - - `loss_fn` must return the average loss over all observations in the batch. - - `update` must rece...
{"golden_diff": "diff --git a/ignite/metrics/loss.py b/ignite/metrics/loss.py\n--- a/ignite/metrics/loss.py\n+++ b/ignite/metrics/loss.py\n@@ -8,9 +8,21 @@\n \"\"\"\n Calculates the average loss according to the passed loss_fn.\n \n- - `loss_fn` must return the average loss over all observations in the batch...
745
467
gh_patches_debug_12175
rasdani/github-patches
git_diff
liqd__a4-opin-529
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Wording change for accept page The page for accepting invites to private projects currently is a bit too straight-forward. ;) Let’s add some information The headline should be changed to: Do you want to jo...
diff --git a/euth/projects/rules.py b/euth/projects/rules.py --- a/euth/projects/rules.py +++ b/euth/projects/rules.py @@ -9,6 +9,6 @@ is_superuser | is_initiator) -rules.add_perm('projects.view_project', +rules.add_perm('euth_projects.view_project', is_superuser | is_initiator | ...
{"golden_diff": "diff --git a/euth/projects/rules.py b/euth/projects/rules.py\n--- a/euth/projects/rules.py\n+++ b/euth/projects/rules.py\n@@ -9,6 +9,6 @@\n is_superuser | is_initiator)\n \n \n-rules.add_perm('projects.view_project',\n+rules.add_perm('euth_projects.view_project',\n is_supe...
922
180
gh_patches_debug_1300
rasdani/github-patches
git_diff
sql-machine-learning__elasticdl-368
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Better check for codec names currently, codec name argument is not checked. A typo would result in worker interpreting encoded data. --- END ISSUE --- Below are some code segments, each from a relevant file...
diff --git a/elasticdl/master/main.py b/elasticdl/master/main.py --- a/elasticdl/master/main.py +++ b/elasticdl/master/main.py @@ -65,6 +65,7 @@ parser.add_argument( "--codec-type", default=None, + choices=["tf_example"], help="Type of codec(tf_example or None)", ) retur...
{"golden_diff": "diff --git a/elasticdl/master/main.py b/elasticdl/master/main.py\n--- a/elasticdl/master/main.py\n+++ b/elasticdl/master/main.py\n@@ -65,6 +65,7 @@\n parser.add_argument(\n \"--codec-type\",\n default=None,\n+ choices=[\"tf_example\"],\n help=\"Type of codec(tf_exampl...
1,569
88
gh_patches_debug_17319
rasdani/github-patches
git_diff
elastic__elasticsearch-py-210
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support for custom authentication objects for requests module Hi, Several transport classes are available, one of them is "requests". Requests supports basic-authentication but far more than that ([0](http:/...
diff --git a/elasticsearch/connection/http_requests.py b/elasticsearch/connection/http_requests.py --- a/elasticsearch/connection/http_requests.py +++ b/elasticsearch/connection/http_requests.py @@ -1,3 +1,4 @@ +import six import time import warnings try: @@ -32,8 +33,10 @@ super(RequestsHttpConnection, sel...
{"golden_diff": "diff --git a/elasticsearch/connection/http_requests.py b/elasticsearch/connection/http_requests.py\n--- a/elasticsearch/connection/http_requests.py\n+++ b/elasticsearch/connection/http_requests.py\n@@ -1,3 +1,4 @@\n+import six\n import time\n import warnings\n try:\n@@ -32,8 +33,10 @@\n super(R...
1,351
210
gh_patches_debug_37274
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-2964
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider tiffany is broken During the global build at 2021-05-26-14-42-23, spider **tiffany** failed with **0 features** and **0 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-05-26-14-42-2...
diff --git a/locations/spiders/tiffany.py b/locations/spiders/tiffany.py --- a/locations/spiders/tiffany.py +++ b/locations/spiders/tiffany.py @@ -6,11 +6,11 @@ class TiffanySpider(scrapy.Spider): name = "tiffany" - item_attributes = { 'brand': "Tiffany" } + item_attributes = { 'brand': "Tiffany", 'brand_...
{"golden_diff": "diff --git a/locations/spiders/tiffany.py b/locations/spiders/tiffany.py\n--- a/locations/spiders/tiffany.py\n+++ b/locations/spiders/tiffany.py\n@@ -6,11 +6,11 @@\n class TiffanySpider(scrapy.Spider):\n \n name = \"tiffany\"\n- item_attributes = { 'brand': \"Tiffany\" }\n+ item_attributes = ...
1,375
756
gh_patches_debug_8364
rasdani/github-patches
git_diff
svthalia__concrexit-1756
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PaymentDetailView in admin API allows deleting payments unauthorized https://github.com/svthalia/concrexit/blob/4ab37961f50e398cc52422cdc1df66f6ab8ff2ee/website/payments/api/v2/admin/views.py#L69 ### Descr...
diff --git a/website/payments/api/v2/admin/views.py b/website/payments/api/v2/admin/views.py --- a/website/payments/api/v2/admin/views.py +++ b/website/payments/api/v2/admin/views.py @@ -74,6 +74,11 @@ permission_classes = [IsAuthenticatedOrTokenHasScope] required_scopes = ["payments:admin"] + def delete...
{"golden_diff": "diff --git a/website/payments/api/v2/admin/views.py b/website/payments/api/v2/admin/views.py\n--- a/website/payments/api/v2/admin/views.py\n+++ b/website/payments/api/v2/admin/views.py\n@@ -74,6 +74,11 @@\n permission_classes = [IsAuthenticatedOrTokenHasScope]\n required_scopes = [\"payments:ad...
1,942
168
gh_patches_debug_644
rasdani/github-patches
git_diff
pex-tool__pex-1864
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.101 On the docket: + [x] Pex fails to find RECORD for python-certifi-win32 1.6.1 #1861 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may ...
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.100" +__version__ = "2.1.101"
{"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.100\"\n+__version__ = \"2.1.101\"\n",...
352
98
gh_patches_debug_32606
rasdani/github-patches
git_diff
nextcloud__appstore-33
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- API routes should be enabled for CORS Only API routes should be whitelisted for CORS We need to make sure that CORS and session auth are mutually exclusive The solution is probably to integrate https://gith...
diff --git a/nextcloudappstore/settings.py b/nextcloudappstore/settings.py --- a/nextcloudappstore/settings.py +++ b/nextcloudappstore/settings.py @@ -21,28 +21,29 @@ # Application definition INSTALLED_APPS = [ + 'nextcloudappstore.core.apps.CoreConfig', 'parler', + 'captcha', 'rest_framework', + ...
{"golden_diff": "diff --git a/nextcloudappstore/settings.py b/nextcloudappstore/settings.py\n--- a/nextcloudappstore/settings.py\n+++ b/nextcloudappstore/settings.py\n@@ -21,28 +21,29 @@\n # Application definition\n \n INSTALLED_APPS = [\n+ 'nextcloudappstore.core.apps.CoreConfig',\n 'parler',\n+ 'captcha',\n...
1,941
478
gh_patches_debug_38106
rasdani/github-patches
git_diff
TOMToolkit__tom_base-825
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ATLAS forced photometry data processor should correctly interpret limiting data points. see [ATLAS Forced Photemetry Output Description](https://fallingstar-data.com/forcedphot/resultdesc/) for how to interpr...
diff --git a/tom_dataproducts/processors/atlas_processor.py b/tom_dataproducts/processors/atlas_processor.py --- a/tom_dataproducts/processors/atlas_processor.py +++ b/tom_dataproducts/processors/atlas_processor.py @@ -21,7 +21,7 @@ ingestion :type data_product: DataProduct - :returns: python...
{"golden_diff": "diff --git a/tom_dataproducts/processors/atlas_processor.py b/tom_dataproducts/processors/atlas_processor.py\n--- a/tom_dataproducts/processors/atlas_processor.py\n+++ b/tom_dataproducts/processors/atlas_processor.py\n@@ -21,7 +21,7 @@\n ingestion\n :type data_product: DataProduct\n \n-...
1,054
608
gh_patches_debug_2210
rasdani/github-patches
git_diff
ARM-DOE__ACT-673
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Feedstock failing due to pandas datetime ### Description CI is failing due to datetime units not being set for csv reader ### What I Did See the PR here that was failing https://github.com/conda-forge...
diff --git a/act/io/csvfiles.py b/act/io/csvfiles.py --- a/act/io/csvfiles.py +++ b/act/io/csvfiles.py @@ -75,7 +75,7 @@ # Set Coordinates if there's a variable date_time if 'date_time' in df: - df.date_time = df.date_time.astype('datetime64') + df.date_time = df.date_time.astype('datetime64[n...
{"golden_diff": "diff --git a/act/io/csvfiles.py b/act/io/csvfiles.py\n--- a/act/io/csvfiles.py\n+++ b/act/io/csvfiles.py\n@@ -75,7 +75,7 @@\n \n # Set Coordinates if there's a variable date_time\n if 'date_time' in df:\n- df.date_time = df.date_time.astype('datetime64')\n+ df.date_time = df.date_...
1,362
119
gh_patches_debug_14245
rasdani/github-patches
git_diff
pyqtgraph__pyqtgraph-1067
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SciPy in requirements in README but not in install_requires Hey! I'm wondering why SciPy is listed as a requirement in README but not in setup.py install_require argument. Cheers, Mike --- END ISSUE ---...
diff --git a/examples/MultiPlotWidget.py b/examples/MultiPlotWidget.py --- a/examples/MultiPlotWidget.py +++ b/examples/MultiPlotWidget.py @@ -3,8 +3,7 @@ ## Add path to library (just for examples; you do not need this) import initExample - -from scipy import random +import numpy as np from numpy import linspace ...
{"golden_diff": "diff --git a/examples/MultiPlotWidget.py b/examples/MultiPlotWidget.py\n--- a/examples/MultiPlotWidget.py\n+++ b/examples/MultiPlotWidget.py\n@@ -3,8 +3,7 @@\n ## Add path to library (just for examples; you do not need this)\n import initExample\n \n-\n-from scipy import random\n+import numpy as np\n f...
710
220
gh_patches_debug_29127
rasdani/github-patches
git_diff
zestedesavoir__zds-site-2384
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- L'API ne retourne pas toujours les mêmes infos pour un membre > Un autre truc, quand on met un jour un membre on peut spécifier deux champs qui ne sont pas fournit par le get classique : `hover_or_click` et `...
diff --git a/zds/member/api/serializers.py b/zds/member/api/serializers.py --- a/zds/member/api/serializers.py +++ b/zds/member/api/serializers.py @@ -57,9 +57,9 @@ class Meta: model = Profile - fields = ('pk', 'username', 'show_email', 'email', 'is_active', - 'site', 'avatar_url...
{"golden_diff": "diff --git a/zds/member/api/serializers.py b/zds/member/api/serializers.py\n--- a/zds/member/api/serializers.py\n+++ b/zds/member/api/serializers.py\n@@ -57,9 +57,9 @@\n \n class Meta:\n model = Profile\n- fields = ('pk', 'username', 'show_email', 'email', 'is_active',\n- ...
1,691
434
gh_patches_debug_27067
rasdani/github-patches
git_diff
akvo__akvo-rsr-2287
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow 0 as value for funding amount in partnerships It should be possible to fill in 0 as a funding amount in the project editor, and then publish a project. This is based on Plan Finland feedback: "Are you ...
diff --git a/akvo/rsr/models/publishing_status.py b/akvo/rsr/models/publishing_status.py --- a/akvo/rsr/models/publishing_status.py +++ b/akvo/rsr/models/publishing_status.py @@ -90,7 +90,7 @@ else: for funding_partner in self.project.partnerships.filter( iati_orga...
{"golden_diff": "diff --git a/akvo/rsr/models/publishing_status.py b/akvo/rsr/models/publishing_status.py\n--- a/akvo/rsr/models/publishing_status.py\n+++ b/akvo/rsr/models/publishing_status.py\n@@ -90,7 +90,7 @@\n else:\n for funding_partner in self.project.partnerships.filter(\n ...
1,674
248
gh_patches_debug_6638
rasdani/github-patches
git_diff
zulip__zulip-28016
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Onboarding hotspots are misplaced I think our grid rewrites of the sidebars have resulted in the onboarding hotspots being somewhat misplaced: ![image](https://github.com/zulip/zulip/assets/2746074/2392e57...
diff --git a/zerver/lib/hotspots.py b/zerver/lib/hotspots.py --- a/zerver/lib/hotspots.py +++ b/zerver/lib/hotspots.py @@ -46,6 +46,9 @@ ), ), Hotspot( + # In theory, this should be renamed to intro_personal, since + # it's no longer attached to the gear menu, but renaming these + ...
{"golden_diff": "diff --git a/zerver/lib/hotspots.py b/zerver/lib/hotspots.py\n--- a/zerver/lib/hotspots.py\n+++ b/zerver/lib/hotspots.py\n@@ -46,6 +46,9 @@\n ),\n ),\n Hotspot(\n+ # In theory, this should be renamed to intro_personal, since\n+ # it's no longer attached to the gear menu, b...
1,653
139
gh_patches_debug_52787
rasdani/github-patches
git_diff
conan-io__conan-center-index-5412
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [package] all: "Access is denied" in os.rename() on Windows ### Package and Environment Details (include every applicable attribute) * Package Name/Version: **almost all packages affected** * Operating ...
diff --git a/recipes/bzip2/all/conanfile.py b/recipes/bzip2/all/conanfile.py --- a/recipes/bzip2/all/conanfile.py +++ b/recipes/bzip2/all/conanfile.py @@ -45,9 +45,7 @@ del self.settings.compiler.cppstd def source(self): - tools.get(**self.conan_data["sources"][self.version]) - folder_name...
{"golden_diff": "diff --git a/recipes/bzip2/all/conanfile.py b/recipes/bzip2/all/conanfile.py\n--- a/recipes/bzip2/all/conanfile.py\n+++ b/recipes/bzip2/all/conanfile.py\n@@ -45,9 +45,7 @@\n del self.settings.compiler.cppstd\n \n def source(self):\n- tools.get(**self.conan_data[\"sources\"][self.vers...
1,811
165
gh_patches_debug_55397
rasdani/github-patches
git_diff
googleapis__python-bigquery-1413
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support Pythons <4 I'd like to be able to allow python <4 in ibis, but as of this PR (https://github.com/ibis-project/ibis/pull/4797) I cannot due to this library's `<3.11` pin. --- END ISSUE --- Below are ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -124,7 +124,7 @@ namespace_packages=namespaces, install_requires=dependencies, extras_require=extras, - python_requires=">=3.7, <3.11", + python_requires=">=3.7", include_package_data=True, zip_safe=False, )
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -124,7 +124,7 @@\n namespace_packages=namespaces,\n install_requires=dependencies,\n extras_require=extras,\n- python_requires=\">=3.7, <3.11\",\n+ python_requires=\">=3.7\",\n include_package_data=True,\n zi...
1,937
91
gh_patches_debug_1624
rasdani/github-patches
git_diff
pypa__cibuildwheel-977
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- on windows, setup_py_python_requires attempts to open utf-8 setup.py as Windows-1252 and fails ### Description This [setup.py file](https://github.com/fgregg/fastcluster/blob/master/setup.py) is valid utf-...
diff --git a/cibuildwheel/projectfiles.py b/cibuildwheel/projectfiles.py --- a/cibuildwheel/projectfiles.py +++ b/cibuildwheel/projectfiles.py @@ -70,7 +70,7 @@ pass try: - with (package_dir / "setup.py").open() as f2: + with (package_dir / "setup.py").open(encoding="utf8") as f2: ...
{"golden_diff": "diff --git a/cibuildwheel/projectfiles.py b/cibuildwheel/projectfiles.py\n--- a/cibuildwheel/projectfiles.py\n+++ b/cibuildwheel/projectfiles.py\n@@ -70,7 +70,7 @@\n pass\n \n try:\n- with (package_dir / \"setup.py\").open() as f2:\n+ with (package_dir / \"setup.py\").open(enc...
1,109
113
gh_patches_debug_1169
rasdani/github-patches
git_diff
sosreport__sos-3483
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Obtain CNI files for containerd Containerd uses the CNI configuration present in the defined folders by the configuration ``` [plugins."io.containerd.grpc.v1.cri".cni] conf_dir = "/etc/cni/net.d...
diff --git a/sos/report/plugins/containerd.py b/sos/report/plugins/containerd.py --- a/sos/report/plugins/containerd.py +++ b/sos/report/plugins/containerd.py @@ -19,6 +19,7 @@ def setup(self): self.add_copy_spec([ "/etc/containerd/", + "/etc/cni/net.d/", ]) sel...
{"golden_diff": "diff --git a/sos/report/plugins/containerd.py b/sos/report/plugins/containerd.py\n--- a/sos/report/plugins/containerd.py\n+++ b/sos/report/plugins/containerd.py\n@@ -19,6 +19,7 @@\n def setup(self):\n self.add_copy_spec([\n \"/etc/containerd/\",\n+ \"/etc/cni/net.d/\"...
660
92
gh_patches_debug_35606
rasdani/github-patches
git_diff
Kinto__kinto-972
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add a configuration of collections that the history plugin needs to keep track on Today the history plugin applies to all the collection but most of them don't need it. For instance with the kinto-signer plu...
diff --git a/kinto/plugins/history/listener.py b/kinto/plugins/history/listener.py --- a/kinto/plugins/history/listener.py +++ b/kinto/plugins/history/listener.py @@ -1,3 +1,5 @@ +from pyramid.settings import aslist + from kinto.core.utils import instance_uri from datetime import datetime @@ -18,6 +20,9 @@ s...
{"golden_diff": "diff --git a/kinto/plugins/history/listener.py b/kinto/plugins/history/listener.py\n--- a/kinto/plugins/history/listener.py\n+++ b/kinto/plugins/history/listener.py\n@@ -1,3 +1,5 @@\n+from pyramid.settings import aslist\n+\n from kinto.core.utils import instance_uri\n from datetime import datetime\n \n...
1,624
402
gh_patches_debug_25576
rasdani/github-patches
git_diff
sublimelsp__LSP-1772
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- On Windows, the drive letter in server responsed file URIs are lowercase. **Describe the bug** I tried both intelephense and pyright, they both returned lowercased drive letter thus I suspect it's a standa...
diff --git a/plugin/core/url.py b/plugin/core/url.py --- a/plugin/core/url.py +++ b/plugin/core/url.py @@ -21,7 +21,6 @@ if file_name.startswith(prefix) and not os.path.exists(file_name): return _to_resource_uri(file_name, prefix) path = pathname2url(file_name) - re.sub(r"^([A-Z]):/", _lowercase_d...
{"golden_diff": "diff --git a/plugin/core/url.py b/plugin/core/url.py\n--- a/plugin/core/url.py\n+++ b/plugin/core/url.py\n@@ -21,7 +21,6 @@\n if file_name.startswith(prefix) and not os.path.exists(file_name):\n return _to_resource_uri(file_name, prefix)\n path = pathname2url(file_name)\n- re.sub(r\"...
1,336
321
gh_patches_debug_2968
rasdani/github-patches
git_diff
ibis-project__ibis-2426
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- fix bigquery version https://dev.azure.com/ibis-project/ibis/_build/results?buildId=3396&view=logs&j=8f09edc2-e3b7-52de-126a-0225c4f3efa1&t=78a72aec-b398-558e-7c0d-2d33604b9e53 I think we need to limit the...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -29,7 +29,10 @@ 'clickhouse-driver>=0.1.3', 'clickhouse-cityhash', ] -bigquery_requires = ['google-cloud-bigquery>=1.12.0', 'pydata-google-auth'] +bigquery_requires = [ + 'google-cloud-bigquery[bqstorage,pandas]>=1.12.0,<2.0.0dev', + 'py...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -29,7 +29,10 @@\n 'clickhouse-driver>=0.1.3',\n 'clickhouse-cityhash',\n ]\n-bigquery_requires = ['google-cloud-bigquery>=1.12.0', 'pydata-google-auth']\n+bigquery_requires = [\n+ 'google-cloud-bigquery[bqstorage,pandas]>=1...
1,408
148
gh_patches_debug_65084
rasdani/github-patches
git_diff
cupy__cupy-1837
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bundle header files for fp16 CUDA 9.2 or later allows redistribution of `cuda_fp16.h` and `cuda_fp16.hpp`. https://docs.nvidia.com/cuda/archive/9.2/eula/#attachment-a Let's bundle them into the repository...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -107,6 +107,8 @@ 'core/include/cupy/carray.cuh', 'core/include/cupy/complex.cuh', 'core/include/cupy/atomics.cuh', + 'core/include/cupy/_cuda/cuda-*/*.h', + 'core/include/cupy/_cuda/cuda-*/*.hpp', 'cuda/c...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -107,6 +107,8 @@\n 'core/include/cupy/carray.cuh',\n 'core/include/cupy/complex.cuh',\n 'core/include/cupy/atomics.cuh',\n+ 'core/include/cupy/_cuda/cuda-*/*.h',\n+ 'core/include/cupy/_cuda/cuda-*...
2,022
111
gh_patches_debug_28757
rasdani/github-patches
git_diff
WordPress__openverse-api-1083
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add database connectivity to healthcheck endpoint ## Problem <!-- Describe a problem solved by this feature; or delete the section entirely. --> The healtcheck endpoint should check that the database is a...
diff --git a/api/catalog/api/views/health_views.py b/api/catalog/api/views/health_views.py --- a/api/catalog/api/views/health_views.py +++ b/api/catalog/api/views/health_views.py @@ -1,4 +1,5 @@ from django.conf import settings +from django.db import connection from rest_framework import status from rest_framework.e...
{"golden_diff": "diff --git a/api/catalog/api/views/health_views.py b/api/catalog/api/views/health_views.py\n--- a/api/catalog/api/views/health_views.py\n+++ b/api/catalog/api/views/health_views.py\n@@ -1,4 +1,5 @@\n from django.conf import settings\n+from django.db import connection\n from rest_framework import status...
791
380
gh_patches_debug_40029
rasdani/github-patches
git_diff
watchdogpolska__small_eod-919
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Niekompletny wykaz endpointów API w /api Na `/api` (np. https://dev.small-eod.siecobywatelska.pl/api/ ) nie mamy kompletnego wykazu endpointów API. Kompletny jest dostępny przez ReDoc np. na https://dev.small...
diff --git a/backend-project/config/urls.py b/backend-project/config/urls.py --- a/backend-project/config/urls.py +++ b/backend-project/config/urls.py @@ -13,6 +13,9 @@ 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) ""...
{"golden_diff": "diff --git a/backend-project/config/urls.py b/backend-project/config/urls.py\n--- a/backend-project/config/urls.py\n+++ b/backend-project/config/urls.py\n@@ -13,6 +13,9 @@\n 1. Import the include() function: from django.urls import include, path\n 2. Add a URL to urlpatterns: path('blog/', inc...
1,132
773
gh_patches_debug_12882
rasdani/github-patches
git_diff
open-mmlab__mmpretrain-147
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- KeyError: 'LinearHead is not in the head registry' use config ```python model = dict( head=dict( type='LinearHead', num_classes=1000, in_channels=2048, loss=dict( ...
diff --git a/configs/resnet/resnet50_b32x8_label_smooth_imagenet.py b/configs/resnet/resnet50_b32x8_label_smooth_imagenet.py --- a/configs/resnet/resnet50_b32x8_label_smooth_imagenet.py +++ b/configs/resnet/resnet50_b32x8_label_smooth_imagenet.py @@ -1,7 +1,7 @@ _base_ = ['./resnet50_imagenet_bs256.py'] model = dict(...
{"golden_diff": "diff --git a/configs/resnet/resnet50_b32x8_label_smooth_imagenet.py b/configs/resnet/resnet50_b32x8_label_smooth_imagenet.py\n--- a/configs/resnet/resnet50_b32x8_label_smooth_imagenet.py\n+++ b/configs/resnet/resnet50_b32x8_label_smooth_imagenet.py\n@@ -1,7 +1,7 @@\n _base_ = ['./resnet50_imagenet_bs25...
1,016
339
gh_patches_debug_24780
rasdani/github-patches
git_diff
apache__airflow-15109
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make Docs builds fallback in case external docs sources are missing Every now and then our docs builds start to fail because of external dependency (latest example here #14985). And while we are doing caching...
diff --git a/docs/exts/docs_build/fetch_inventories.py b/docs/exts/docs_build/fetch_inventories.py --- a/docs/exts/docs_build/fetch_inventories.py +++ b/docs/exts/docs_build/fetch_inventories.py @@ -20,10 +20,13 @@ import datetime import os import shutil +import sys +import traceback from itertools import repeat f...
{"golden_diff": "diff --git a/docs/exts/docs_build/fetch_inventories.py b/docs/exts/docs_build/fetch_inventories.py\n--- a/docs/exts/docs_build/fetch_inventories.py\n+++ b/docs/exts/docs_build/fetch_inventories.py\n@@ -20,10 +20,13 @@\n import datetime\n import os\n import shutil\n+import sys\n+import traceback\n from ...
1,927
297
gh_patches_debug_12800
rasdani/github-patches
git_diff
mindsdb__mindsdb-712
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- KeyError: 'mongodb' on start Starting Mindsdb(python -m mindsdb) version 2.8.1 throws: ``` Failed to start mongodb API with exception 'mongodb' Traceback (most recent call last): File "/home/zoran/MyP...
diff --git a/mindsdb/__main__.py b/mindsdb/__main__.py --- a/mindsdb/__main__.py +++ b/mindsdb/__main__.py @@ -40,14 +40,20 @@ config = Config(config_path) if args.api is None: - api_arr = [api for api in config['api']] + api_arr = ['http', 'mysql'] else: api_arr = args.api.split...
{"golden_diff": "diff --git a/mindsdb/__main__.py b/mindsdb/__main__.py\n--- a/mindsdb/__main__.py\n+++ b/mindsdb/__main__.py\n@@ -40,14 +40,20 @@\n config = Config(config_path)\n \n if args.api is None:\n- api_arr = [api for api in config['api']]\n+ api_arr = ['http', 'mysql']\n else:\n ...
1,385
214
gh_patches_debug_4504
rasdani/github-patches
git_diff
saleor__saleor-2803
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Grapql query for home page ### What I'm trying to achieve I want to have a shop homepage which shows: * new arrivals, * product in a sale, * featured products, * featured collection, * categories links ...
diff --git a/saleor/product/filters.py b/saleor/product/filters.py --- a/saleor/product/filters.py +++ b/saleor/product/filters.py @@ -10,7 +10,9 @@ SORT_BY_FIELDS = OrderedDict([ ('name', pgettext_lazy('Product list sorting option', 'name')), - ('price', pgettext_lazy('Product list sorting option', 'price')...
{"golden_diff": "diff --git a/saleor/product/filters.py b/saleor/product/filters.py\n--- a/saleor/product/filters.py\n+++ b/saleor/product/filters.py\n@@ -10,7 +10,9 @@\n \n SORT_BY_FIELDS = OrderedDict([\n ('name', pgettext_lazy('Product list sorting option', 'name')),\n- ('price', pgettext_lazy('Product list s...
1,659
142
gh_patches_debug_25279
rasdani/github-patches
git_diff
plone__Products.CMFPlone-2204
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error message broken on Zope-Root http://localhost:8080/foo when `foo` does not exists (i.e. is not a Plone instance) results in a traceback. In Plone 5.1 we used to get: ``` <h2>Site Error</h2> <p>An er...
diff --git a/Products/CMFPlone/browser/exceptions.py b/Products/CMFPlone/browser/exceptions.py --- a/Products/CMFPlone/browser/exceptions.py +++ b/Products/CMFPlone/browser/exceptions.py @@ -1,7 +1,10 @@ +# -*- coding: utf-8 -*- from AccessControl import getSecurityManager from Products.Five import BrowserView from ...
{"golden_diff": "diff --git a/Products/CMFPlone/browser/exceptions.py b/Products/CMFPlone/browser/exceptions.py\n--- a/Products/CMFPlone/browser/exceptions.py\n+++ b/Products/CMFPlone/browser/exceptions.py\n@@ -1,7 +1,10 @@\n+# -*- coding: utf-8 -*-\n from AccessControl import getSecurityManager\n from Products.Five im...
1,842
307
gh_patches_debug_29292
rasdani/github-patches
git_diff
e-valuation__EvaP-721
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Only internal redirects The platform should only redirect to internal pages after logging in. (handled in `evaluation/views.py index`) --- END ISSUE --- Below are some code segments, each from a relevant ...
diff --git a/evap/evaluation/views.py b/evap/evaluation/views.py --- a/evap/evaluation/views.py +++ b/evap/evaluation/views.py @@ -2,13 +2,14 @@ from django.contrib.auth import login as auth_login from django.shortcuts import redirect, render from django.utils.translation import ugettext as _ +from django.core.urlre...
{"golden_diff": "diff --git a/evap/evaluation/views.py b/evap/evaluation/views.py\n--- a/evap/evaluation/views.py\n+++ b/evap/evaluation/views.py\n@@ -2,13 +2,14 @@\n from django.contrib.auth import login as auth_login\n from django.shortcuts import redirect, render\n from django.utils.translation import ugettext as _\...
1,240
314
gh_patches_debug_4673
rasdani/github-patches
git_diff
paperless-ngx__paperless-ngx-2112
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Problem with tesseract after Bugfix: Some tesseract languages aren't detected as installed. @stumpylog (#2057) ### Description Hi, after Fixes [2044 ](https://github.com/paperless-ngx/paperless-ngx...
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 @@ -16,8 +16,7 @@ # Decode bytes to string, split on newlines, trim out the header proc_lines = proc.stdout.decode("utf8", errors="ignore").strip()...
{"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@@ -16,8 +16,7 @@\n # Decode bytes to string, split on newlines, trim out the header\n proc_lines = proc.stdout.decode(\"utf8\", ...
1,613
151
gh_patches_debug_60522
rasdani/github-patches
git_diff
streamlit__streamlit-7257
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Changing start_time of st.video() doesn't work for the same video ### Checklist - [X] I have searched the [existing issues](https://github.com/streamlit/streamlit/issues) for similar issues. - [X] I added...
diff --git a/e2e/scripts/st_video.py b/e2e/scripts/st_video.py --- a/e2e/scripts/st_video.py +++ b/e2e/scripts/st_video.py @@ -19,3 +19,7 @@ url = "https://www.w3schools.com/html/mov_bbb.mp4" file = requests.get(url).content st.video(file) + +# Test start time with widget +timestamp = st.number_input("Start Time (in...
{"golden_diff": "diff --git a/e2e/scripts/st_video.py b/e2e/scripts/st_video.py\n--- a/e2e/scripts/st_video.py\n+++ b/e2e/scripts/st_video.py\n@@ -19,3 +19,7 @@\n url = \"https://www.w3schools.com/html/mov_bbb.mp4\"\n file = requests.get(url).content\n st.video(file)\n+\n+# Test start time with widget\n+timestamp = st....
833
122
gh_patches_debug_9299
rasdani/github-patches
git_diff
certbot__certbot-4857
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Flesh out oldest tests We should find the oldest versions of all our Python dependencies used in OS packages and add them to the [oldest tests](https://github.com/certbot/certbot/blob/master/tox.ini#L36) in T...
diff --git a/acme/setup.py b/acme/setup.py --- a/acme/setup.py +++ b/acme/setup.py @@ -16,11 +16,7 @@ 'PyOpenSSL>=0.13', 'pyrfc3339', 'pytz', - # requests>=2.10 is required to fix - # https://github.com/shazow/urllib3/issues/556. This requirement can be - # relaxed to 'requests[security]>=2.4.1'...
{"golden_diff": "diff --git a/acme/setup.py b/acme/setup.py\n--- a/acme/setup.py\n+++ b/acme/setup.py\n@@ -16,11 +16,7 @@\n 'PyOpenSSL>=0.13',\n 'pyrfc3339',\n 'pytz',\n- # requests>=2.10 is required to fix\n- # https://github.com/shazow/urllib3/issues/556. This requirement can be\n- # relaxed to '...
1,163
219
gh_patches_debug_27784
rasdani/github-patches
git_diff
searx__searx-1186
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bing Video search engine doesn't work Hallo, yesterday I've set up my own instance of searx. Thereby I discovered A problem with the Bing Video search engine. This is the shown error message: ``` Die f...
diff --git a/searx/engines/bing_videos.py b/searx/engines/bing_videos.py --- a/searx/engines/bing_videos.py +++ b/searx/engines/bing_videos.py @@ -69,22 +69,11 @@ dom = html.fromstring(resp.text) for result in dom.xpath('//div[@class="dg_u"]'): - - # try to extract the url - url_container = re...
{"golden_diff": "diff --git a/searx/engines/bing_videos.py b/searx/engines/bing_videos.py\n--- a/searx/engines/bing_videos.py\n+++ b/searx/engines/bing_videos.py\n@@ -69,22 +69,11 @@\n dom = html.fromstring(resp.text)\n \n for result in dom.xpath('//div[@class=\"dg_u\"]'):\n-\n- # try to extract the url\...
1,320
426
gh_patches_debug_35308
rasdani/github-patches
git_diff
openstates__openstates-scrapers-1334
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AZ Legislator with the following id has an invalid phone number AZL000372 State: AZ (be sure to include in ticket title) This repository is for issues with state data, for feature requests, etc. please v...
diff --git a/openstates/az/legislators.py b/openstates/az/legislators.py --- a/openstates/az/legislators.py +++ b/openstates/az/legislators.py @@ -1,8 +1,7 @@ -from billy.scrape import NoDataForPeriod from billy.scrape.legislators import LegislatorScraper, Legislator from lxml import html +import re -import re, dat...
{"golden_diff": "diff --git a/openstates/az/legislators.py b/openstates/az/legislators.py\n--- a/openstates/az/legislators.py\n+++ b/openstates/az/legislators.py\n@@ -1,8 +1,7 @@\n-from billy.scrape import NoDataForPeriod\n from billy.scrape.legislators import LegislatorScraper, Legislator\n from lxml import html\n+imp...
1,474
491
gh_patches_debug_3289
rasdani/github-patches
git_diff
mne-tools__mne-bids-272
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- JOSS publication At the MNE-Sprint in Paris, @teonbrooks @jasmainak and I discussed about writing a short report on MNE-BIDS and publishing it in [JOSS](https://joss.theoj.org/about). JOSS articles general...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -14,8 +14,8 @@ raise RuntimeError('Could not determine version') -descr = ('An MNE project for organizing and formatting MEG and EEG data ' - 'according to the BIDS specification.') +descr = ('MNE-BIDS: Organizing MEG, EEG, and iEEG data...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -14,8 +14,8 @@\n raise RuntimeError('Could not determine version')\n \n \n-descr = ('An MNE project for organizing and formatting MEG and EEG data '\n- 'according to the BIDS specification.')\n+descr = ('MNE-BIDS: Organizi...
1,070
126
gh_patches_debug_24877
rasdani/github-patches
git_diff
plone__Products.CMFPlone-2101
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- add data-base-url attribute to HTML body tag in Plone 4 Since plone 4.3.12, the `<base href` attribute in HTML generated by Plone no longer always points to the context URL as it used to prior to the change. ...
diff --git a/Products/CMFPlone/browser/jsvariables.py b/Products/CMFPlone/browser/jsvariables.py --- a/Products/CMFPlone/browser/jsvariables.py +++ b/Products/CMFPlone/browser/jsvariables.py @@ -7,6 +7,7 @@ TEMPLATE = """\ var portal_url = '%(portal_url)s'; +var base_url = '%(base_url)s'; var form_modified_message...
{"golden_diff": "diff --git a/Products/CMFPlone/browser/jsvariables.py b/Products/CMFPlone/browser/jsvariables.py\n--- a/Products/CMFPlone/browser/jsvariables.py\n+++ b/Products/CMFPlone/browser/jsvariables.py\n@@ -7,6 +7,7 @@\n \n TEMPLATE = \"\"\"\\\n var portal_url = '%(portal_url)s';\n+var base_url = '%(base_url)s'...
1,609
261
gh_patches_debug_19644
rasdani/github-patches
git_diff
great-expectations__great_expectations-5207
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of th...
diff --git a/great_expectations/expectations/metrics/column_aggregate_metrics/column_values_length_max.py b/great_expectations/expectations/metrics/column_aggregate_metrics/column_values_length_max.py --- a/great_expectations/expectations/metrics/column_aggregate_metrics/column_values_length_max.py +++ b/great_expectat...
{"golden_diff": "diff --git a/great_expectations/expectations/metrics/column_aggregate_metrics/column_values_length_max.py b/great_expectations/expectations/metrics/column_aggregate_metrics/column_values_length_max.py\n--- a/great_expectations/expectations/metrics/column_aggregate_metrics/column_values_length_max.py\n+...
968
396
gh_patches_debug_2335
rasdani/github-patches
git_diff
scikit-hep__pyhf-1841
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update `test` dependency from `nteract-scrapbook` to `scrapbook` ### Summary Running the notebook tests generates the warning ```pytb warnings.warn("'nteract-scrapbook' package has been renamed to `scrap...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -38,8 +38,8 @@ 'pytest-console-scripts', 'pytest-mpl', 'pydocstyle', - 'papermill~=2.0', - 'nteract-scrapbook~=0.2', + 'papermill~=2.3.4', + 'scrapbook~=0.5.0', ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -38,8 +38,8 @@\n 'pytest-console-scripts',\n 'pytest-mpl',\n 'pydocstyle',\n- 'papermill~=2.0',\n- 'nteract-scrapbook~=0.2',\n+ 'papermill~=2.3.4',\n+ 'sc...
1,366
111
gh_patches_debug_60747
rasdani/github-patches
git_diff
hi-primus__optimus-872
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Json file exploration/profiling Unstructured data as JSON can not be explored as regular tabular data. I have been exploring using tree depth and count to highlight the user in which nodes could have importan...
diff --git a/optimus/engines/pandas/io/json.py b/optimus/engines/pandas/io/json.py --- a/optimus/engines/pandas/io/json.py +++ b/optimus/engines/pandas/io/json.py @@ -121,7 +121,7 @@ result.append((_flatten_json(i))) elif is_dict(value): for i, j in value.items(): - ...
{"golden_diff": "diff --git a/optimus/engines/pandas/io/json.py b/optimus/engines/pandas/io/json.py\n--- a/optimus/engines/pandas/io/json.py\n+++ b/optimus/engines/pandas/io/json.py\n@@ -121,7 +121,7 @@\n result.append((_flatten_json(i)))\n elif is_dict(value):\n for i, j in value.it...
1,584
128
gh_patches_debug_8107
rasdani/github-patches
git_diff
mitmproxy__mitmproxy-2643
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Transparent mode fail with looking up failure. ##### Steps to reproduce the problem: 1. Launch Wifi Access Point(OS X) 2. Setup pfctl configuration so that http packet will be forwarded. 3. Launch mitmpr...
diff --git a/mitmproxy/platform/pf.py b/mitmproxy/platform/pf.py --- a/mitmproxy/platform/pf.py +++ b/mitmproxy/platform/pf.py @@ -1,3 +1,4 @@ +import re import sys @@ -8,6 +9,9 @@ Returns an (address, port) tuple, or None. """ + # We may get an ipv4-mapped ipv6 address here, e.g. ::ffff:127.0.0...
{"golden_diff": "diff --git a/mitmproxy/platform/pf.py b/mitmproxy/platform/pf.py\n--- a/mitmproxy/platform/pf.py\n+++ b/mitmproxy/platform/pf.py\n@@ -1,3 +1,4 @@\n+import re\n import sys\n \n \n@@ -8,6 +9,9 @@\n \n Returns an (address, port) tuple, or None.\n \"\"\"\n+ # We may get an ipv4-mapped ipv6 a...
1,034
202
gh_patches_debug_40372
rasdani/github-patches
git_diff
wright-group__WrightTools-1044
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- from_solis: import fails when no metadata It is possible to export asc image from Solis software without metadata (clearly this is not preferred, but it should be handled gracefully). from_solis assumes...
diff --git a/WrightTools/data/_solis.py b/WrightTools/data/_solis.py --- a/WrightTools/data/_solis.py +++ b/WrightTools/data/_solis.py @@ -7,6 +7,7 @@ import os import pathlib import time +import warnings import numpy as np @@ -43,8 +44,20 @@ Returns ------- - data + data : WrightTools.Data ...
{"golden_diff": "diff --git a/WrightTools/data/_solis.py b/WrightTools/data/_solis.py\n--- a/WrightTools/data/_solis.py\n+++ b/WrightTools/data/_solis.py\n@@ -7,6 +7,7 @@\n import os\n import pathlib\n import time\n+import warnings\n \n import numpy as np\n \n@@ -43,8 +44,20 @@\n \n Returns\n -------\n- data...
1,793
928
gh_patches_debug_42436
rasdani/github-patches
git_diff
conan-io__conan-center-index-15293
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [request] spix/0.5 ### Package Name/Version spix/0.5 ### Changelog https://github.com/faaxm/spix/releases/tag/v0.5 ### Context about the new update I will push a PR for this version --- END ISSUE --- B...
diff --git a/recipes/spix/all/conanfile.py b/recipes/spix/all/conanfile.py --- a/recipes/spix/all/conanfile.py +++ b/recipes/spix/all/conanfile.py @@ -7,7 +7,7 @@ import os -required_conan_version = ">=1.52.0" +required_conan_version = ">=1.53.0" class SpixConan(ConanFile): @@ -29,16 +29,26 @@ @propert...
{"golden_diff": "diff --git a/recipes/spix/all/conanfile.py b/recipes/spix/all/conanfile.py\n--- a/recipes/spix/all/conanfile.py\n+++ b/recipes/spix/all/conanfile.py\n@@ -7,7 +7,7 @@\n import os\n \n \n-required_conan_version = \">=1.52.0\"\n+required_conan_version = \">=1.53.0\"\n \n \n class SpixConan(ConanFile):\n@@...
1,715
938
gh_patches_debug_28026
rasdani/github-patches
git_diff
bridgecrewio__checkov-961
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- False positive on CKV_AWS_59 - APIGatewayAuthorization ignores API keys **Describe the bug** **CKV_AWS_59** assumes the API is open to the public if authorization is **NONE**. However, API keys are another o...
diff --git a/checkov/cloudformation/checks/resource/aws/APIGatewayAuthorization.py b/checkov/cloudformation/checks/resource/aws/APIGatewayAuthorization.py --- a/checkov/cloudformation/checks/resource/aws/APIGatewayAuthorization.py +++ b/checkov/cloudformation/checks/resource/aws/APIGatewayAuthorization.py @@ -14,7 +14,...
{"golden_diff": "diff --git a/checkov/cloudformation/checks/resource/aws/APIGatewayAuthorization.py b/checkov/cloudformation/checks/resource/aws/APIGatewayAuthorization.py\n--- a/checkov/cloudformation/checks/resource/aws/APIGatewayAuthorization.py\n+++ b/checkov/cloudformation/checks/resource/aws/APIGatewayAuthorizati...
964
412
gh_patches_debug_6386
rasdani/github-patches
git_diff
huggingface__huggingface_hub-757
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- chore: Updated the pillow version specifier Hello there :wave: Following up on #755, I believe the core build requirements were meant to be updated as well. This aligns the version specifier of Pillow bet...
diff --git a/api-inference-community/setup.py b/api-inference-community/setup.py --- a/api-inference-community/setup.py +++ b/api-inference-community/setup.py @@ -3,7 +3,7 @@ setup( name="api_inference_community", - version="0.0.21", + version="0.0.23", description="A package with helper tools to bui...
{"golden_diff": "diff --git a/api-inference-community/setup.py b/api-inference-community/setup.py\n--- a/api-inference-community/setup.py\n+++ b/api-inference-community/setup.py\n@@ -3,7 +3,7 @@\n \n setup(\n name=\"api_inference_community\",\n- version=\"0.0.21\",\n+ version=\"0.0.23\",\n description=\"A...
574
130
gh_patches_debug_23307
rasdani/github-patches
git_diff
pypa__virtualenv-1730
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Broken activation in Windows for python3 virtualenv activation through `activate_this.py` is broken in Windows for python3. Check this very simple piece of code ``` import os import subprocess import sy...
diff --git a/src/virtualenv/activation/python/__init__.py b/src/virtualenv/activation/python/__init__.py --- a/src/virtualenv/activation/python/__init__.py +++ b/src/virtualenv/activation/python/__init__.py @@ -3,7 +3,6 @@ import os from collections import OrderedDict -from virtualenv.info import WIN_CPYTHON_2 fro...
{"golden_diff": "diff --git a/src/virtualenv/activation/python/__init__.py b/src/virtualenv/activation/python/__init__.py\n--- a/src/virtualenv/activation/python/__init__.py\n+++ b/src/virtualenv/activation/python/__init__.py\n@@ -3,7 +3,6 @@\n import os\n from collections import OrderedDict\n \n-from virtualenv.info i...
911
266
gh_patches_debug_25720
rasdani/github-patches
git_diff
cal-itp__benefits-1343
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Configure a Sentry denylist Looks like we can configure a `denylist` on `EventScrubber` when calling `sentry_sdk.init`: https://docs.sentry.io/platforms/python/data-management/sensitive-data/ Another more ...
diff --git a/benefits/sentry.py b/benefits/sentry.py --- a/benefits/sentry.py +++ b/benefits/sentry.py @@ -1,10 +1,13 @@ -from benefits import VERSION -import sentry_sdk -from sentry_sdk.integrations.django import DjangoIntegration import shutil import os import subprocess +import sentry_sdk +from sentry_sdk.integ...
{"golden_diff": "diff --git a/benefits/sentry.py b/benefits/sentry.py\n--- a/benefits/sentry.py\n+++ b/benefits/sentry.py\n@@ -1,10 +1,13 @@\n-from benefits import VERSION\n-import sentry_sdk\n-from sentry_sdk.integrations.django import DjangoIntegration\n import shutil\n import os\n import subprocess\n \n+import sentr...
1,033
355
gh_patches_debug_14180
rasdani/github-patches
git_diff
pre-commit__pre-commit-622
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unstaged files + never ran pre-commit => "No such file or directory: .../.cache/pre-commit/patch..." ``` $ pre-commit run [WARNING] Unstaged files detected. [INFO] Stashing unstaged files to /home/asottile...
diff --git a/pre_commit/staged_files_only.py b/pre_commit/staged_files_only.py --- a/pre_commit/staged_files_only.py +++ b/pre_commit/staged_files_only.py @@ -8,6 +8,7 @@ from pre_commit.util import CalledProcessError from pre_commit.util import cmd_output +from pre_commit.util import mkdirp logger = logging.g...
{"golden_diff": "diff --git a/pre_commit/staged_files_only.py b/pre_commit/staged_files_only.py\n--- a/pre_commit/staged_files_only.py\n+++ b/pre_commit/staged_files_only.py\n@@ -8,6 +8,7 @@\n \n from pre_commit.util import CalledProcessError\n from pre_commit.util import cmd_output\n+from pre_commit.util import mkdirp...
1,275
155
gh_patches_debug_36746
rasdani/github-patches
git_diff
DataDog__dd-agent-2965
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support ECDSA for ssh_check ssh_check.py is not support ECDSA ssh key. paramiko is support ECDSA ssh key. http://docs.paramiko.org/en/1.17/api/keys.html#module-paramiko.ecdsakey I changes ssh_key.py, but It'...
diff --git a/checks.d/ssh_check.py b/checks.d/ssh_check.py --- a/checks.d/ssh_check.py +++ b/checks.d/ssh_check.py @@ -21,6 +21,7 @@ ('username', True, None, str), ('password', False, None, str), ('private_key_file', False, None, str), + ('private_key_type', False, 'rsa', str), ...
{"golden_diff": "diff --git a/checks.d/ssh_check.py b/checks.d/ssh_check.py\n--- a/checks.d/ssh_check.py\n+++ b/checks.d/ssh_check.py\n@@ -21,6 +21,7 @@\n ('username', True, None, str),\n ('password', False, None, str),\n ('private_key_file', False, None, str),\n+ ('private_key_type', Fal...
1,581
496
gh_patches_debug_2494
rasdani/github-patches
git_diff
liqd__a4-meinberlin-951
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Projectcontainer active projects count broken https://mein.berlin.de/projects/stadtforum-berlin-wohnen/ shows `7 of 4` active projects. --- END ISSUE --- Below are some code segments, each from a relevan...
diff --git a/meinberlin/apps/projectcontainers/models.py b/meinberlin/apps/projectcontainers/models.py --- a/meinberlin/apps/projectcontainers/models.py +++ b/meinberlin/apps/projectcontainers/models.py @@ -21,7 +21,7 @@ now = timezone.now() return self.projects.filter( module__phase__sta...
{"golden_diff": "diff --git a/meinberlin/apps/projectcontainers/models.py b/meinberlin/apps/projectcontainers/models.py\n--- a/meinberlin/apps/projectcontainers/models.py\n+++ b/meinberlin/apps/projectcontainers/models.py\n@@ -21,7 +21,7 @@\n now = timezone.now()\n return self.projects.filter(\n ...
537
122