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_12274
rasdani/github-patches
git_diff
wagtail__wagtail-11223
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Report pages performance regression ### Issue Summary Various report pages have a performance regression in Wagtail 5.2, which I've tracked down to: https://github.com/wagtail/wagtail/commit/7ba1afb8a40...
diff --git a/wagtail/admin/views/reports/base.py b/wagtail/admin/views/reports/base.py --- a/wagtail/admin/views/reports/base.py +++ b/wagtail/admin/views/reports/base.py @@ -17,8 +17,12 @@ def get(self, request, *args, **kwargs): self.filters, self.object_list = self.get_filtered_queryset() - se...
{"golden_diff": "diff --git a/wagtail/admin/views/reports/base.py b/wagtail/admin/views/reports/base.py\n--- a/wagtail/admin/views/reports/base.py\n+++ b/wagtail/admin/views/reports/base.py\n@@ -17,8 +17,12 @@\n \n def get(self, request, *args, **kwargs):\n self.filters, self.object_list = self.get_filtered...
1,214
186
gh_patches_debug_24294
rasdani/github-patches
git_diff
cupy__cupy-6989
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Exception raised in `TCPStore.__del__` upon process termination ### Description `__del__` should not perform syncronization when called during process termination. ``` Exception ignored in: <function TCP...
diff --git a/cupyx/distributed/_store.py b/cupyx/distributed/_store.py --- a/cupyx/distributed/_store.py +++ b/cupyx/distributed/_store.py @@ -1,3 +1,4 @@ +import atexit from ctypes import sizeof import multiprocessing import threading @@ -11,6 +12,14 @@ _DEFAULT_HOST = '127.0.0.1' _DEFAULT_PORT = 13333 +_exit_m...
{"golden_diff": "diff --git a/cupyx/distributed/_store.py b/cupyx/distributed/_store.py\n--- a/cupyx/distributed/_store.py\n+++ b/cupyx/distributed/_store.py\n@@ -1,3 +1,4 @@\n+import atexit\n from ctypes import sizeof\n import multiprocessing\n import threading\n@@ -11,6 +12,14 @@\n _DEFAULT_HOST = '127.0.0.1'\n _DEFA...
1,843
296
gh_patches_debug_49770
rasdani/github-patches
git_diff
getsentry__sentry-17425
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Event migration 9.1.2 -> 10 <!-- Do you want to ask a question? Are you looking for support? The Sentry message board is the best place for getting support: https://forum.sentry.io --> ## Important De...
diff --git a/src/sentry/migrations/0024_auto_20191230_2052.py b/src/sentry/migrations/0024_auto_20191230_2052.py --- a/src/sentry/migrations/0024_auto_20191230_2052.py +++ b/src/sentry/migrations/0024_auto_20191230_2052.py @@ -86,6 +86,8 @@ is_regression=False, is_new_group_environment...
{"golden_diff": "diff --git a/src/sentry/migrations/0024_auto_20191230_2052.py b/src/sentry/migrations/0024_auto_20191230_2052.py\n--- a/src/sentry/migrations/0024_auto_20191230_2052.py\n+++ b/src/sentry/migrations/0024_auto_20191230_2052.py\n@@ -86,6 +86,8 @@\n is_regression=False,\n is...
1,894
181
gh_patches_debug_38940
rasdani/github-patches
git_diff
streamlink__streamlink-205
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- picarto updated streamlink no longer works Hey guys picarto no longer works because they said they updated the player so html5 can be default soon. when you run the program it says found matching plugin pic...
diff --git a/src/streamlink/plugins/picarto.py b/src/streamlink/plugins/picarto.py --- a/src/streamlink/plugins/picarto.py +++ b/src/streamlink/plugins/picarto.py @@ -2,47 +2,69 @@ from streamlink.plugin import Plugin from streamlink.plugin.api import http +from streamlink.stream import HLSStream from streamlink.s...
{"golden_diff": "diff --git a/src/streamlink/plugins/picarto.py b/src/streamlink/plugins/picarto.py\n--- a/src/streamlink/plugins/picarto.py\n+++ b/src/streamlink/plugins/picarto.py\n@@ -2,47 +2,69 @@\n \n from streamlink.plugin import Plugin\n from streamlink.plugin.api import http\n+from streamlink.stream import HLSS...
796
826
gh_patches_debug_4348
rasdani/github-patches
git_diff
pwndbg__pwndbg-747
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bad unsigned casting ### Description `pwndbg.memory.u` returns signed integers (with minus `-` sign). ### Steps to reproduce ```c #include <stdio.h> #include <stdint.h> int main(int argc, char...
diff --git a/pwndbg/inthook.py b/pwndbg/inthook.py --- a/pwndbg/inthook.py +++ b/pwndbg/inthook.py @@ -39,7 +39,7 @@ if pwndbg.typeinfo.is_pointer(value): value = value.cast(pwndbg.typeinfo.size_t) else: - value = value.cast(pwndbg.typeinfo.ssize_t) + ...
{"golden_diff": "diff --git a/pwndbg/inthook.py b/pwndbg/inthook.py\n--- a/pwndbg/inthook.py\n+++ b/pwndbg/inthook.py\n@@ -39,7 +39,7 @@\n if pwndbg.typeinfo.is_pointer(value):\n value = value.cast(pwndbg.typeinfo.size_t)\n else:\n- value = value.cast(pwndbg.typein...
1,488
126
gh_patches_debug_2300
rasdani/github-patches
git_diff
pytorch__torchdynamo-1012
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Dynamo WONT CONVERT for is_fx_tracing() Probably the same as #1009. Repro: ``` import torchdynamo from torch.fx._symbolic_trace import is_fx_tracing def my_compiler(gm, inputs): return gm.forward ...
diff --git a/torchdynamo/config.py b/torchdynamo/config.py --- a/torchdynamo/config.py +++ b/torchdynamo/config.py @@ -46,6 +46,8 @@ torch.jit.is_scripting: False, torch.jit.is_tracing: False, torch._C._get_tracing_state: None, + torch.fx._symbolic_trace.is_fx_tracing: False, + ...
{"golden_diff": "diff --git a/torchdynamo/config.py b/torchdynamo/config.py\n--- a/torchdynamo/config.py\n+++ b/torchdynamo/config.py\n@@ -46,6 +46,8 @@\n torch.jit.is_scripting: False,\n torch.jit.is_tracing: False,\n torch._C._get_tracing_state: None,\n+ torch.fx._symbolic_trace.is_fx_t...
1,825
119
gh_patches_debug_11149
rasdani/github-patches
git_diff
open-mmlab__mmocr-285
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- LineStrParser: separator behaviour I've a question regarding this snippet of code: https://github.com/open-mmlab/mmocr/blob/01d8d63be945882fb2d9eaca5e1c1b39cb45f274/mmocr/datasets/utils/parser.py#L33-L36 ...
diff --git a/mmocr/datasets/utils/parser.py b/mmocr/datasets/utils/parser.py --- a/mmocr/datasets/utils/parser.py +++ b/mmocr/datasets/utils/parser.py @@ -30,10 +30,7 @@ def get_item(self, data_ret, index): map_index = index % len(data_ret) line_str = data_ret[map_index] - for split_key in...
{"golden_diff": "diff --git a/mmocr/datasets/utils/parser.py b/mmocr/datasets/utils/parser.py\n--- a/mmocr/datasets/utils/parser.py\n+++ b/mmocr/datasets/utils/parser.py\n@@ -30,10 +30,7 @@\n def get_item(self, data_ret, index):\n map_index = index % len(data_ret)\n line_str = data_ret[map_index]\n-...
1,129
171
gh_patches_debug_52858
rasdani/github-patches
git_diff
getsentry__sentry-540
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- celery 3.0 causes import error (cannot import abbrtools from celery.utils) Release of celery 3.0 causes an import error at runtime upon any request. This is the stack trace: ``` ImportError: cannot import n...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -50,6 +50,7 @@ 'cssutils>=0.9.9', 'BeautifulSoup>=3.2.1', 'django-celery>=2.5.5,<3.0', + 'celery>=2.5.3,<3.0', 'django-crispy-forms>=1.1.4', 'Django>=1.2,<1.5', 'django-indexer>=0.3.0',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -50,6 +50,7 @@\n 'cssutils>=0.9.9',\n 'BeautifulSoup>=3.2.1',\n 'django-celery>=2.5.5,<3.0',\n+ 'celery>=2.5.3,<3.0',\n 'django-crispy-forms>=1.1.4',\n 'Django>=1.2,<1.5',\n 'django-indexer>=0.3.0',\n", "iss...
1,897
127
gh_patches_debug_22167
rasdani/github-patches
git_diff
cupy__cupy-3159
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- compatibility issue of `erfinv` and `erfcinv` For `erfinv`, the valid domain is [-1, 1], and at the boundary -1 and +1 the values are -Inf and +Inf, respectively. But outside the boundary, the values are NaN...
diff --git a/cupyx/scipy/special/erf.py b/cupyx/scipy/special/erf.py --- a/cupyx/scipy/special/erf.py +++ b/cupyx/scipy/special/erf.py @@ -33,35 +33,27 @@ erfinv = core.create_ufunc( 'cupyx_scipy_erfinv', ('f->f', 'd->d'), - ''' - if (in0 < -1) { - out0 = -1.0 / 0.0; - } else if (in0 > 1) { - ...
{"golden_diff": "diff --git a/cupyx/scipy/special/erf.py b/cupyx/scipy/special/erf.py\n--- a/cupyx/scipy/special/erf.py\n+++ b/cupyx/scipy/special/erf.py\n@@ -33,35 +33,27 @@\n \n erfinv = core.create_ufunc(\n 'cupyx_scipy_erfinv', ('f->f', 'd->d'),\n- '''\n- if (in0 < -1) {\n- out0 = -1.0 / 0.0;\n- ...
1,777
447
gh_patches_debug_17996
rasdani/github-patches
git_diff
cookiecutter__cookiecutter-768
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Wrong hook executed when a tilde-suffixed file of the same name exists - Cookiecutter version: 1.4.0 - Template project url: https://github.com/thorgate/django-project-template - Python version: 3.4 - Operati...
diff --git a/cookiecutter/hooks.py b/cookiecutter/hooks.py --- a/cookiecutter/hooks.py +++ b/cookiecutter/hooks.py @@ -37,16 +37,20 @@ Missing scripts will not be included in the returned dict. """ hooks_dir = 'hooks' - r = {} + hooks = {} logging.debug('hooks_dir is {0}'.format(hooks_dir)) + ...
{"golden_diff": "diff --git a/cookiecutter/hooks.py b/cookiecutter/hooks.py\n--- a/cookiecutter/hooks.py\n+++ b/cookiecutter/hooks.py\n@@ -37,16 +37,20 @@\n Missing scripts will not be included in the returned dict.\n \"\"\"\n hooks_dir = 'hooks'\n- r = {}\n+ hooks = {}\n logging.debug('hooks_dir ...
1,402
256
gh_patches_debug_11047
rasdani/github-patches
git_diff
astronomer__astro-sdk-62
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unable to load_file using parquet Version: Astro 0.2.0 Python: 3.8, 3.9 Astro is unable to run the task `load_file` with a parquet file. It raises the following exception: ``` Traceback (most recen...
diff --git a/src/astro/sql/operators/agnostic_load_file.py b/src/astro/sql/operators/agnostic_load_file.py --- a/src/astro/sql/operators/agnostic_load_file.py +++ b/src/astro/sql/operators/agnostic_load_file.py @@ -119,8 +119,11 @@ "json": pd.read_json, "ndjson": pd.read_json, } + ...
{"golden_diff": "diff --git a/src/astro/sql/operators/agnostic_load_file.py b/src/astro/sql/operators/agnostic_load_file.py\n--- a/src/astro/sql/operators/agnostic_load_file.py\n+++ b/src/astro/sql/operators/agnostic_load_file.py\n@@ -119,8 +119,11 @@\n \"json\": pd.read_json,\n \"ndjson\": pd.r...
2,012
181
gh_patches_debug_56255
rasdani/github-patches
git_diff
litestar-org__litestar-1377
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- StaticFilesConfig and virtual directories I'm trying to write a ``FileSystemProtocol`` to load files from the package data using [importlib_resources](https://importlib-resources.readthedocs.io/en/latest/usin...
diff --git a/starlite/events/emitter.py b/starlite/events/emitter.py --- a/starlite/events/emitter.py +++ b/starlite/events/emitter.py @@ -93,7 +93,7 @@ """ while self._queue: fn, args, kwargs = await self._queue.get() - await fn(*args, *kwargs) + await fn(*args, **k...
{"golden_diff": "diff --git a/starlite/events/emitter.py b/starlite/events/emitter.py\n--- a/starlite/events/emitter.py\n+++ b/starlite/events/emitter.py\n@@ -93,7 +93,7 @@\n \"\"\"\n while self._queue:\n fn, args, kwargs = await self._queue.get()\n- await fn(*args, *kwargs)\n+ ...
1,767
107
gh_patches_debug_26955
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-3411
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BMO Harris Bank https://branchlocator.bmoharris.com/ --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `locati...
diff --git a/locations/spiders/bmo_harris.py b/locations/spiders/bmo_harris.py --- a/locations/spiders/bmo_harris.py +++ b/locations/spiders/bmo_harris.py @@ -7,13 +7,14 @@ class BMOHarrisSpider(scrapy.Spider): - name = "bmo-harris" - item_attributes = { 'brand': "BMO Harris Bank" } + name = "bmo_harris" ...
{"golden_diff": "diff --git a/locations/spiders/bmo_harris.py b/locations/spiders/bmo_harris.py\n--- a/locations/spiders/bmo_harris.py\n+++ b/locations/spiders/bmo_harris.py\n@@ -7,13 +7,14 @@\n \n \n class BMOHarrisSpider(scrapy.Spider):\n- name = \"bmo-harris\"\n- item_attributes = { 'brand': \"BMO Harris Bank\...
787
421
gh_patches_debug_5298
rasdani/github-patches
git_diff
pyca__cryptography-2845
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- _ModuleWithDeprecations doesn't handle patching properly. `_ModuleWithDeprecations` catches `__getattr__` and `__setattr__` to patch through to the underlying module, but does not intercept `__delattr__`. Tha...
diff --git a/src/cryptography/utils.py b/src/cryptography/utils.py --- a/src/cryptography/utils.py +++ b/src/cryptography/utils.py @@ -119,6 +119,13 @@ def __setattr__(self, attr, value): setattr(self._module, attr, value) + def __delattr__(self, attr): + obj = getattr(self._module, attr) + ...
{"golden_diff": "diff --git a/src/cryptography/utils.py b/src/cryptography/utils.py\n--- a/src/cryptography/utils.py\n+++ b/src/cryptography/utils.py\n@@ -119,6 +119,13 @@\n def __setattr__(self, attr, value):\n setattr(self._module, attr, value)\n \n+ def __delattr__(self, attr):\n+ obj = getattr...
1,524
148
gh_patches_debug_6466
rasdani/github-patches
git_diff
plone__Products.CMFPlone-1417
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Return HTTP errors in proper format Proposer: Eric Brehault Seconder: # Motivation When a page does not exist, or has an error, or is not allowed for the user, Plone returns the appropriate HTTP error (404, ...
diff --git a/Products/CMFPlone/skins/plone_templates/standard_error_message.py b/Products/CMFPlone/skins/plone_templates/standard_error_message.py --- a/Products/CMFPlone/skins/plone_templates/standard_error_message.py +++ b/Products/CMFPlone/skins/plone_templates/standard_error_message.py @@ -27,6 +27,10 @@ error_tra...
{"golden_diff": "diff --git a/Products/CMFPlone/skins/plone_templates/standard_error_message.py b/Products/CMFPlone/skins/plone_templates/standard_error_message.py\n--- a/Products/CMFPlone/skins/plone_templates/standard_error_message.py\n+++ b/Products/CMFPlone/skins/plone_templates/standard_error_message.py\n@@ -27,6 ...
1,034
190
gh_patches_debug_3520
rasdani/github-patches
git_diff
encode__uvicorn-1328
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- No `python_requires` defined ### Checklist - [X] The bug is reproducible against the latest release or `master`. - [X] There are no similar issues or pull requests to fix it yet. ### Describe the bug ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -73,6 +73,7 @@ author="Tom Christie", author_email="tom@tomchristie.com", packages=get_packages("uvicorn"), + python_requires=">=3.7", install_requires=minimal_requirements, extras_require={"standard": extra_requirements}, ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -73,6 +73,7 @@\n author=\"Tom Christie\",\n author_email=\"tom@tomchristie.com\",\n packages=get_packages(\"uvicorn\"),\n+ python_requires=\">=3.7\",\n install_requires=minimal_requirements,\n extras_require={\"...
1,450
89
gh_patches_debug_7776
rasdani/github-patches
git_diff
secdev__scapy-4349
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Incorrect RTCP SR + RR parsing ### Brief description The RTCP parser fails to handle a packet that contains both Sender Report and Received Report, which is is the most common data for a two-way session. ...
diff --git a/scapy/contrib/rtcp.py b/scapy/contrib/rtcp.py --- a/scapy/contrib/rtcp.py +++ b/scapy/contrib/rtcp.py @@ -51,6 +51,9 @@ IntField('sender_octet_count', None) ] + def extract_padding(self, p): + return "", p + class ReceptionReport(Packet): name = "Reception report" @@ -64,6...
{"golden_diff": "diff --git a/scapy/contrib/rtcp.py b/scapy/contrib/rtcp.py\n--- a/scapy/contrib/rtcp.py\n+++ b/scapy/contrib/rtcp.py\n@@ -51,6 +51,9 @@\n IntField('sender_octet_count', None)\n ]\n \n+ def extract_padding(self, p):\n+ return \"\", p\n+\n \n class ReceptionReport(Packet):\n nam...
1,824
157
gh_patches_debug_1016
rasdani/github-patches
git_diff
scikit-hep__pyhf-2068
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- docs build failing on Pygments lexter warning Hm. Something related to https://github.com/spatialaudio/nbsphinx/issues/24 is breaking the docs build. We're getting ```pytb WARNING: Pygments lexer name 'ip...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -58,6 +58,7 @@ 'sphinx-issues', 'sphinx-copybutton>=0.3.2', 'sphinx-togglebutton>=0.3.0', + 'ipython!=8.7.0', # c.f. https://github.com/scikit-hep/pyhf/pull/2068 ] ) )
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -58,6 +58,7 @@\n 'sphinx-issues',\n 'sphinx-copybutton>=0.3.2',\n 'sphinx-togglebutton>=0.3.0',\n+ 'ipython!=8.7.0', # c.f. https://github.com/scikit-hep/pyhf/pull/2068\n ]\n ...
1,285
105
gh_patches_debug_22693
rasdani/github-patches
git_diff
googleapis__google-cloud-python-1440
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pubsub.list_topics fails when there are no topics [Offending line](https://github.com/GoogleCloudPlatform/gcloud-python/blob/0910f9979a45af8cc2826dd4c6ff38d9efa5ccec/gcloud/pubsub/client.py#L80). Reproduce vi...
diff --git a/gcloud/pubsub/client.py b/gcloud/pubsub/client.py --- a/gcloud/pubsub/client.py +++ b/gcloud/pubsub/client.py @@ -77,7 +77,7 @@ resp = self.connection.api_request(method='GET', path=path, query_params=params) topics = [Topic.from_api_repr(resour...
{"golden_diff": "diff --git a/gcloud/pubsub/client.py b/gcloud/pubsub/client.py\n--- a/gcloud/pubsub/client.py\n+++ b/gcloud/pubsub/client.py\n@@ -77,7 +77,7 @@\n resp = self.connection.api_request(method='GET', path=path,\n query_params=params)\n topics = [Top...
2,022
206
gh_patches_debug_52175
rasdani/github-patches
git_diff
microsoft__ptvsd-167
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error reading integer From VS (might not be a ptvsd bug, not sure at this point): Create new python application Add new item, python unit test Set the unit test as startup file F5 Result: ``` -------...
diff --git a/ptvsd/debugger.py b/ptvsd/debugger.py --- a/ptvsd/debugger.py +++ b/ptvsd/debugger.py @@ -32,5 +32,5 @@ try: pydevd.main() except SystemExit as ex: - ptvsd.wrapper.ptvsd_sys_exit_code = ex.code + ptvsd.wrapper.ptvsd_sys_exit_code = int(ex.code) raise
{"golden_diff": "diff --git a/ptvsd/debugger.py b/ptvsd/debugger.py\n--- a/ptvsd/debugger.py\n+++ b/ptvsd/debugger.py\n@@ -32,5 +32,5 @@\n try:\n pydevd.main()\n except SystemExit as ex:\n- ptvsd.wrapper.ptvsd_sys_exit_code = ex.code\n+ ptvsd.wrapper.ptvsd_sys_exit_code = int(ex.code)\n ...
654
104
gh_patches_debug_17990
rasdani/github-patches
git_diff
rotki__rotki-3143
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Upgrading DB from v26->v27 can fail if user balancer LP events stored in their DB ## Problem Definition A user who upgraded from v1.16.2 to v1.18.1 notified us that they saw a DB upgrade failure from v26->...
diff --git a/rotkehlchen/db/upgrades/v26_v27.py b/rotkehlchen/db/upgrades/v26_v27.py --- a/rotkehlchen/db/upgrades/v26_v27.py +++ b/rotkehlchen/db/upgrades/v26_v27.py @@ -10,8 +10,6 @@ - Deletes and recreates the tables that were changed after removing UnknownEthereumToken """ cursor = db.conn.cursor() -...
{"golden_diff": "diff --git a/rotkehlchen/db/upgrades/v26_v27.py b/rotkehlchen/db/upgrades/v26_v27.py\n--- a/rotkehlchen/db/upgrades/v26_v27.py\n+++ b/rotkehlchen/db/upgrades/v26_v27.py\n@@ -10,8 +10,6 @@\n - Deletes and recreates the tables that were changed after removing UnknownEthereumToken\n \"\"\"\n c...
1,344
228
gh_patches_debug_11800
rasdani/github-patches
git_diff
Lightning-AI__torchmetrics-2017
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Backwards incompatible change to MSE for pixelwise regression ## 🐛 Bug #1937 introduces an unintended consequence: pixelwise regression is no longer supported. ### To Reproduce Run the following scr...
diff --git a/src/torchmetrics/functional/regression/mse.py b/src/torchmetrics/functional/regression/mse.py --- a/src/torchmetrics/functional/regression/mse.py +++ b/src/torchmetrics/functional/regression/mse.py @@ -16,7 +16,6 @@ import torch from torch import Tensor -from torchmetrics.functional.regression.utils im...
{"golden_diff": "diff --git a/src/torchmetrics/functional/regression/mse.py b/src/torchmetrics/functional/regression/mse.py\n--- a/src/torchmetrics/functional/regression/mse.py\n+++ b/src/torchmetrics/functional/regression/mse.py\n@@ -16,7 +16,6 @@\n import torch\n from torch import Tensor\n \n-from torchmetrics.functi...
1,626
179
gh_patches_debug_2978
rasdani/github-patches
git_diff
frappe__frappe-20434
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Enable Scheduler from desk Feature to enable scheduler from desk. --- 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/frappe/utils/scheduler.py b/frappe/utils/scheduler.py --- a/frappe/utils/scheduler.py +++ b/frappe/utils/scheduler.py @@ -176,6 +176,11 @@ @frappe.whitelist() def activate_scheduler(): + frappe.only_for("Administrator") + + if frappe.local.conf.maintenance_mode: + frappe.throw(frappe._("Scheduler can ...
{"golden_diff": "diff --git a/frappe/utils/scheduler.py b/frappe/utils/scheduler.py\n--- a/frappe/utils/scheduler.py\n+++ b/frappe/utils/scheduler.py\n@@ -176,6 +176,11 @@\n \n @frappe.whitelist()\n def activate_scheduler():\n+\tfrappe.only_for(\"Administrator\")\n+\n+\tif frappe.local.conf.maintenance_mode:\n+\t\tfrap...
2,031
126
gh_patches_debug_31889
rasdani/github-patches
git_diff
pre-commit__pre-commit-575
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- git unadd changes lost if hook fails on windows ``` D:\CubeadProjects\devops [test +0 ~2 -0 | +0 ~1 -0 !]> git cm "asd" [WARNING] Unstaged files detected. [INFO] Stashing unstaged files to C:\Users\56929\....
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 @@ -11,6 +11,16 @@ logger = logging.getLogger('pre_commit') +def _git_apply(cmd_runner, patch): + args = ('apply', '--whitespace=nowarn', patch) + try: + ...
{"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@@ -11,6 +11,16 @@\n logger = logging.getLogger('pre_commit')\n \n \n+def _git_apply(cmd_runner, patch):\n+ args = ('apply', '--whitespace=now...
1,994
406
gh_patches_debug_7053
rasdani/github-patches
git_diff
zulip__zulip-21237
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- docs: make links equally browsable on both GitHub and ReadTheDocs Once upstream bug https://github.com/readthedocs/recommonmark/issues/179 is fixed, we can replace the `.html` part in links of the form `file_...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -36,6 +36,7 @@ "colon_fence", "substitution", ] +myst_heading_anchors = 6 myst_substitutions = { "LATEST_RELEASE_VERSION": LATEST_RELEASE_VERSION, } diff --git a/version.py b/version.py --- a/version.py +++ b/version.py ...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -36,6 +36,7 @@\n \"colon_fence\",\n \"substitution\",\n ]\n+myst_heading_anchors = 6\n myst_substitutions = {\n \"LATEST_RELEASE_VERSION\": LATEST_RELEASE_VERSION,\n }\ndiff --git a/version.py b/version.py\...
1,508
154
gh_patches_debug_22323
rasdani/github-patches
git_diff
scikit-hep__pyhf-937
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Document simplemodels API # Description In discussion today with @coolalexzb, I realized that the [`pyhf.simplemodels`](https://github.com/scikit-hep/pyhf/blob/79984be837ef6e53bdd12a82163c34d47d507dba/src/...
diff --git a/src/pyhf/simplemodels.py b/src/pyhf/simplemodels.py --- a/src/pyhf/simplemodels.py +++ b/src/pyhf/simplemodels.py @@ -2,6 +2,38 @@ def hepdata_like(signal_data, bkg_data, bkg_uncerts, batch_size=None): + """ + Construct a simple single channel :class:`~pyhf.pdf.Model` with a + :class:`~pyhf.m...
{"golden_diff": "diff --git a/src/pyhf/simplemodels.py b/src/pyhf/simplemodels.py\n--- a/src/pyhf/simplemodels.py\n+++ b/src/pyhf/simplemodels.py\n@@ -2,6 +2,38 @@\n \n \n def hepdata_like(signal_data, bkg_data, bkg_uncerts, batch_size=None):\n+ \"\"\"\n+ Construct a simple single channel :class:`~pyhf.pdf.Model`...
603
437
gh_patches_debug_22770
rasdani/github-patches
git_diff
DataDog__dd-trace-py-334
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error log still occurs when tracer is disabled (Django) The tracer is logging the following error when disabled: > 2017-07-05 12:54:36,552:[none]:[ddtrace.writer:134]:ERROR cannot send services: [Errno 111...
diff --git a/ddtrace/contrib/django/apps.py b/ddtrace/contrib/django/apps.py --- a/ddtrace/contrib/django/apps.py +++ b/ddtrace/contrib/django/apps.py @@ -31,13 +31,6 @@ if settings.TAGS: tracer.set_tags(settings.TAGS) - # define the service details - tracer.set_service_info( - ...
{"golden_diff": "diff --git a/ddtrace/contrib/django/apps.py b/ddtrace/contrib/django/apps.py\n--- a/ddtrace/contrib/django/apps.py\n+++ b/ddtrace/contrib/django/apps.py\n@@ -31,13 +31,6 @@\n if settings.TAGS:\n tracer.set_tags(settings.TAGS)\n \n- # define the service details\n- trace...
1,031
254
gh_patches_debug_6739
rasdani/github-patches
git_diff
TheAlgorithms__Python-5734
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Rewrite *other* fibonacci.py I opened issue #5665 to have `fibonacci.py` rewritten, but apparently there are multiple files with that name. The PR that @citharus made (#5677) revamps the file `dynamic_program...
diff --git a/maths/fibonacci.py b/maths/fibonacci.py --- a/maths/fibonacci.py +++ b/maths/fibonacci.py @@ -95,8 +95,8 @@ NOTE 1: this function diverges from fib_iterative at around n = 71, likely due to compounding floating-point arithmetic errors - NOTE 2: this function overflows on n >= 1475 because of...
{"golden_diff": "diff --git a/maths/fibonacci.py b/maths/fibonacci.py\n--- a/maths/fibonacci.py\n+++ b/maths/fibonacci.py\n@@ -95,8 +95,8 @@\n NOTE 1: this function diverges from fib_iterative at around n = 71, likely\n due to compounding floating-point arithmetic errors\n \n- NOTE 2: this function overflows...
1,783
166
gh_patches_debug_6077
rasdani/github-patches
git_diff
learningequality__kolibri-3759
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- remove translations for user kinds on backend ### Observed behavior In role kinds we use the string "Classroom Assignable Coach": https://github.com/learningequality/kolibri/blob/develop/kolibri/auth/const...
diff --git a/kolibri/auth/constants/role_kinds.py b/kolibri/auth/constants/role_kinds.py --- a/kolibri/auth/constants/role_kinds.py +++ b/kolibri/auth/constants/role_kinds.py @@ -3,14 +3,12 @@ """ from __future__ import unicode_literals -from django.utils.translation import ugettext_lazy as _ - ADMIN = "admin" CO...
{"golden_diff": "diff --git a/kolibri/auth/constants/role_kinds.py b/kolibri/auth/constants/role_kinds.py\n--- a/kolibri/auth/constants/role_kinds.py\n+++ b/kolibri/auth/constants/role_kinds.py\n@@ -3,14 +3,12 @@\n \"\"\"\n from __future__ import unicode_literals\n \n-from django.utils.translation import ugettext_lazy ...
504
177
gh_patches_debug_12296
rasdani/github-patches
git_diff
fedora-infra__bodhi-2359
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot run database migrations on the 3.7 branch I built a beta out of the ```HEAD``` of the ```3.7``` branch, and the migrations fail to run: ``` [root@bodhi-backend01 bowlofeggs][STG]# /usr/bin/alembic ...
diff --git a/bodhi/server/migrations/versions/59c0f5fbc1b2_add_a_greenwave_unsatisfied_.py b/bodhi/server/migrations/versions/59c0f5fbc1b2_add_a_greenwave_unsatisfied_.py --- a/bodhi/server/migrations/versions/59c0f5fbc1b2_add_a_greenwave_unsatisfied_.py +++ b/bodhi/server/migrations/versions/59c0f5fbc1b2_add_a_greenwa...
{"golden_diff": "diff --git a/bodhi/server/migrations/versions/59c0f5fbc1b2_add_a_greenwave_unsatisfied_.py b/bodhi/server/migrations/versions/59c0f5fbc1b2_add_a_greenwave_unsatisfied_.py\n--- a/bodhi/server/migrations/versions/59c0f5fbc1b2_add_a_greenwave_unsatisfied_.py\n+++ b/bodhi/server/migrations/versions/59c0f5f...
1,915
318
gh_patches_debug_33088
rasdani/github-patches
git_diff
mathesar-foundation__mathesar-317
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- User should be able to configure multiple databases in settings **Problem** <!-- Please provide a clear and concise description of the problem that this feature request is designed to solve.--> Currently, t...
diff --git a/config/settings.py b/config/settings.py --- a/config/settings.py +++ b/config/settings.py @@ -16,6 +16,16 @@ from decouple import Csv, config as decouple_config from dj_database_url import parse as db_url + +# We use a 'tuple' with pipes as delimiters as decople naively splits the global +# variables o...
{"golden_diff": "diff --git a/config/settings.py b/config/settings.py\n--- a/config/settings.py\n+++ b/config/settings.py\n@@ -16,6 +16,16 @@\n from decouple import Csv, config as decouple_config\n from dj_database_url import parse as db_url\n \n+\n+# We use a 'tuple' with pipes as delimiters as decople naively splits ...
1,712
545
gh_patches_debug_3923
rasdani/github-patches
git_diff
deepset-ai__haystack-6173
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Create a script for 2.0 API Reference docs --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `docs/pydoc/rend...
diff --git a/docs/pydoc/renderers.py b/docs/pydoc/renderers.py --- a/docs/pydoc/renderers.py +++ b/docs/pydoc/renderers.py @@ -133,3 +133,16 @@ slug=self.slug, order=self.order, ) + + +@dataclasses.dataclass +class ReadmePreviewRenderer(ReadmeRenderer): + """ + This custom Rende...
{"golden_diff": "diff --git a/docs/pydoc/renderers.py b/docs/pydoc/renderers.py\n--- a/docs/pydoc/renderers.py\n+++ b/docs/pydoc/renderers.py\n@@ -133,3 +133,16 @@\n slug=self.slug,\n order=self.order,\n )\n+\n+\n+@dataclasses.dataclass\n+class ReadmePreviewRenderer(ReadmeRenderer):\n+ ...
1,650
157
gh_patches_debug_22565
rasdani/github-patches
git_diff
pre-commit__pre-commit-874
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Concurrent execution results in uneven work per thread I'm running `pre-commit` from current `master` to test the concurrency feature introduced with #851. While it in general seems to work, work is distribut...
diff --git a/pre_commit/languages/helpers.py b/pre_commit/languages/helpers.py --- a/pre_commit/languages/helpers.py +++ b/pre_commit/languages/helpers.py @@ -2,12 +2,18 @@ import multiprocessing import os +import random import shlex +import six + from pre_commit.util import cmd_output from pre_commit.xargs im...
{"golden_diff": "diff --git a/pre_commit/languages/helpers.py b/pre_commit/languages/helpers.py\n--- a/pre_commit/languages/helpers.py\n+++ b/pre_commit/languages/helpers.py\n@@ -2,12 +2,18 @@\n \n import multiprocessing\n import os\n+import random\n import shlex\n \n+import six\n+\n from pre_commit.util import cmd_out...
1,040
333
gh_patches_debug_9732
rasdani/github-patches
git_diff
dbt-labs__dbt-core-9452
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [CT-3190] Pinning detective work ### Housekeeping - [X] I am a maintainer of dbt-core ### Short description We recently pinned `types-requests<2.31.0` because it had a dependency conflict with `urllib3` wh...
diff --git a/core/setup.py b/core/setup.py --- a/core/setup.py +++ b/core/setup.py @@ -61,6 +61,7 @@ # with major versions in each new minor version of dbt-core. "click>=8.0.2,<9", "networkx>=2.3,<4", + "requests<3.0.0", # should match dbt-common # ---- # These packa...
{"golden_diff": "diff --git a/core/setup.py b/core/setup.py\n--- a/core/setup.py\n+++ b/core/setup.py\n@@ -61,6 +61,7 @@\n # with major versions in each new minor version of dbt-core.\n \"click>=8.0.2,<9\",\n \"networkx>=2.3,<4\",\n+ \"requests<3.0.0\", # should match dbt-common\n ...
1,608
138
gh_patches_debug_40781
rasdani/github-patches
git_diff
bokeh__bokeh-6812
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Inline, Minified Resources do not work in classic notebooks This is due to an interaction with the classic notebooks use of JQuery, when output is published as `text/html`. New notebook code published a div a...
diff --git a/bokeh/util/notebook.py b/bokeh/util/notebook.py --- a/bokeh/util/notebook.py +++ b/bokeh/util/notebook.py @@ -5,8 +5,7 @@ from IPython.display import publish_display_data -from ..embed import _wrap_in_script_tag - +JS_MIME_TYPE = 'application/javascript' LOAD_MIME_TYPE = 'application/vnd.bokehjs_lo...
{"golden_diff": "diff --git a/bokeh/util/notebook.py b/bokeh/util/notebook.py\n--- a/bokeh/util/notebook.py\n+++ b/bokeh/util/notebook.py\n@@ -5,8 +5,7 @@\n \n from IPython.display import publish_display_data\n \n-from ..embed import _wrap_in_script_tag\n-\n+JS_MIME_TYPE = 'application/javascript'\n LOAD_MIME_TYPE = ...
1,623
963
gh_patches_debug_59717
rasdani/github-patches
git_diff
pytorch__audio-1339
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Making `AudioMetaData` print friendly `AudioMetaData` class reports meta-data of audio source. It is however not print friendly. ```python print(torchaudio.info(src)) >>> <torchaudio.backend.common.Audio...
diff --git a/torchaudio/backend/common.py b/torchaudio/backend/common.py --- a/torchaudio/backend/common.py +++ b/torchaudio/backend/common.py @@ -38,3 +38,14 @@ self.num_channels = num_channels self.bits_per_sample = bits_per_sample self.encoding = encoding + + def __str__(self): + ...
{"golden_diff": "diff --git a/torchaudio/backend/common.py b/torchaudio/backend/common.py\n--- a/torchaudio/backend/common.py\n+++ b/torchaudio/backend/common.py\n@@ -38,3 +38,14 @@\n self.num_channels = num_channels\n self.bits_per_sample = bits_per_sample\n self.encoding = encoding\n+\n+ de...
1,034
163
gh_patches_debug_4769
rasdani/github-patches
git_diff
spotify__luigi-1447
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Scheduler only hosts on unix socket when run in the background Support for hosting the central scheduler on a unix socket was added, which is nice, but the scheduler ignores the `--unix-socket` argument from ...
diff --git a/luigi/cmdline.py b/luigi/cmdline.py --- a/luigi/cmdline.py +++ b/luigi/cmdline.py @@ -41,4 +41,4 @@ filename=os.path.join(opts.logdir, "luigi-server.log")) else: logging.basicConfig(level=logging.INFO, format=luigi.process.get_log_format()) - lu...
{"golden_diff": "diff --git a/luigi/cmdline.py b/luigi/cmdline.py\n--- a/luigi/cmdline.py\n+++ b/luigi/cmdline.py\n@@ -41,4 +41,4 @@\n filename=os.path.join(opts.logdir, \"luigi-server.log\"))\n else:\n logging.basicConfig(level=logging.INFO, format=luigi.process.get_...
968
124
gh_patches_debug_20043
rasdani/github-patches
git_diff
archlinux__archinstall-66
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Issue installing package groups (kde-applications for instance) As mentioned in #61, support for package groups doesn't work. The idea here is that it should be supported, we simply never verified that the [...
diff --git a/archinstall/lib/packages.py b/archinstall/lib/packages.py --- a/archinstall/lib/packages.py +++ b/archinstall/lib/packages.py @@ -3,6 +3,23 @@ from .exceptions import * BASE_URL = 'https://www.archlinux.org/packages/search/json/?name={package}' +BASE_GROUP_URL = 'https://www.archlinux.org/groups/x86_64...
{"golden_diff": "diff --git a/archinstall/lib/packages.py b/archinstall/lib/packages.py\n--- a/archinstall/lib/packages.py\n+++ b/archinstall/lib/packages.py\n@@ -3,6 +3,23 @@\n from .exceptions import *\n \n BASE_URL = 'https://www.archlinux.org/packages/search/json/?name={package}'\n+BASE_GROUP_URL = 'https://www.arc...
768
291
gh_patches_debug_63087
rasdani/github-patches
git_diff
translate__pootle-5160
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ensure tests can be run with `--reuse-db` When iterating over a test that require DB access (or a few of them), currently a site-wide setup is made which in such scenario ends up being relatively time-consumi...
diff --git a/pytest_pootle/plugin.py b/pytest_pootle/plugin.py --- a/pytest_pootle/plugin.py +++ b/pytest_pootle/plugin.py @@ -85,7 +85,7 @@ @pytest.fixture(autouse=True, scope='session') def setup_db_if_needed(request, tests_use_db): """Sets up the site DB only if tests requested to use the DB (autouse).""" - ...
{"golden_diff": "diff --git a/pytest_pootle/plugin.py b/pytest_pootle/plugin.py\n--- a/pytest_pootle/plugin.py\n+++ b/pytest_pootle/plugin.py\n@@ -85,7 +85,7 @@\n @pytest.fixture(autouse=True, scope='session')\n def setup_db_if_needed(request, tests_use_db):\n \"\"\"Sets up the site DB only if tests requested to us...
1,361
129
gh_patches_debug_15855
rasdani/github-patches
git_diff
readthedocs__readthedocs.org-10668
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Django: adapt admin code for 3.x It seems that we missed an upgrade to make it fully compatible with Django 3.x We are using `admin.ACTION_CHECKBOX_NAME` when it was deprecated and it was removed already: ...
diff --git a/readthedocs/notifications/views.py b/readthedocs/notifications/views.py --- a/readthedocs/notifications/views.py +++ b/readthedocs/notifications/views.py @@ -1,5 +1,5 @@ """Django views for the notifications app.""" -from django.contrib import admin, messages +from django.contrib import messages from dja...
{"golden_diff": "diff --git a/readthedocs/notifications/views.py b/readthedocs/notifications/views.py\n--- a/readthedocs/notifications/views.py\n+++ b/readthedocs/notifications/views.py\n@@ -1,5 +1,5 @@\n \"\"\"Django views for the notifications app.\"\"\"\n-from django.contrib import admin, messages\n+from django.cont...
1,492
178
gh_patches_debug_27494
rasdani/github-patches
git_diff
shuup__shuup-1977
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Admin UI: Fix media browser file upload An exception is raised when you manually select the file while uploading it. To reproduce: - Go to Products - Select/Create a product - Go to Files section - Click...
diff --git a/shuup/admin/browser_config.py b/shuup/admin/browser_config.py --- a/shuup/admin/browser_config.py +++ b/shuup/admin/browser_config.py @@ -7,6 +7,7 @@ # LICENSE file in the root directory of this source tree. from django.conf import settings +from shuup.admin.utils.permissions import has_permission fro...
{"golden_diff": "diff --git a/shuup/admin/browser_config.py b/shuup/admin/browser_config.py\n--- a/shuup/admin/browser_config.py\n+++ b/shuup/admin/browser_config.py\n@@ -7,6 +7,7 @@\n # LICENSE file in the root directory of this source tree.\n from django.conf import settings\n \n+from shuup.admin.utils.permissions im...
887
327
gh_patches_debug_12240
rasdani/github-patches
git_diff
GPflow__GPflow-1355
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- setup.py depends on external dataclasses package for python >= 3.8 Setup.py has a check ```python is_py37 = sys.version_info.major == 3 and sys.version_info.minor == 7 ``` and adds the PyPI `dataclasses` ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -10,13 +10,13 @@ from pkg_resources import parse_version from setuptools import find_packages, setup -is_py37 = sys.version_info.major == 3 and sys.version_info.minor == 7 on_rtd = os.environ.get("READTHEDOCS", None) == "True" # copied from the doc...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -10,13 +10,13 @@\n from pkg_resources import parse_version\n from setuptools import find_packages, setup\n \n-is_py37 = sys.version_info.major == 3 and sys.version_info.minor == 7\n on_rtd = os.environ.get(\"READTHEDOCS\", None) == \"...
1,389
192
gh_patches_debug_9864
rasdani/github-patches
git_diff
getpelican__pelican-2720
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fixing some warnings and errors in the sample content. The current sample content is not up-to-date with the current Pelican mechanism. This will help new comers to understand better how Pelican works. ...
diff --git a/samples/pelican.conf.py b/samples/pelican.conf.py --- a/samples/pelican.conf.py +++ b/samples/pelican.conf.py @@ -40,13 +40,16 @@ # static paths will be copied without parsing their contents STATIC_PATHS = [ - 'pictures', + 'images', 'extra/robots.txt', ] # custom page generated with...
{"golden_diff": "diff --git a/samples/pelican.conf.py b/samples/pelican.conf.py\n--- a/samples/pelican.conf.py\n+++ b/samples/pelican.conf.py\n@@ -40,13 +40,16 @@\n \n # static paths will be copied without parsing their contents\n STATIC_PATHS = [\n- 'pictures',\n+ 'images',\n 'extra/robots.txt',\n ]\n \n...
921
159
gh_patches_debug_12299
rasdani/github-patches
git_diff
medtagger__MedTagger-145
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Race condition between API & Worker containers that updates fixtures on start ## Expected Behavior Containers should start without any issues. ## Actual Behavior Any of these two containers may fail ...
diff --git a/backend/medtagger/database/fixtures.py b/backend/medtagger/database/fixtures.py --- a/backend/medtagger/database/fixtures.py +++ b/backend/medtagger/database/fixtures.py @@ -2,6 +2,7 @@ import logging.config from sqlalchemy import exists +from sqlalchemy.exc import IntegrityError from medtagger.data...
{"golden_diff": "diff --git a/backend/medtagger/database/fixtures.py b/backend/medtagger/database/fixtures.py\n--- a/backend/medtagger/database/fixtures.py\n+++ b/backend/medtagger/database/fixtures.py\n@@ -2,6 +2,7 @@\n import logging.config\n \n from sqlalchemy import exists\n+from sqlalchemy.exc import IntegrityErro...
1,051
173
gh_patches_debug_20920
rasdani/github-patches
git_diff
spyder-ide__spyder-20450
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `spyder-line-profiler` fails silently with latest 5.x due to missing import in `py3compat` <!--- **PLEASE READ:** When submitting here, please ensure you've completed the following checklist and checked the b...
diff --git a/spyder/py3compat.py b/spyder/py3compat.py --- a/spyder/py3compat.py +++ b/spyder/py3compat.py @@ -10,13 +10,10 @@ Transitional module providing compatibility functions intended to help migrating from Python 2 to Python 3. - -This module should be fully compatible with: - * Python >=v2.6 - * Pytho...
{"golden_diff": "diff --git a/spyder/py3compat.py b/spyder/py3compat.py\n--- a/spyder/py3compat.py\n+++ b/spyder/py3compat.py\n@@ -10,13 +10,10 @@\n \n Transitional module providing compatibility functions intended to help\n migrating from Python 2 to Python 3.\n-\n-This module should be fully compatible with:\n- * ...
1,939
192
gh_patches_debug_33821
rasdani/github-patches
git_diff
airctic__icevision-993
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SSD model doesn't work ## 🐛 Bug SSD model doesn't work anymore. It seems related to MMDetection updates made here: https://github.com/open-mmlab/mmdetection/pull/5789/files Refer to discussion on our ...
diff --git a/icevision/models/mmdet/models/ssd/backbones/resnet_fpn.py b/icevision/models/mmdet/models/ssd/backbones/resnet_fpn.py --- a/icevision/models/mmdet/models/ssd/backbones/resnet_fpn.py +++ b/icevision/models/mmdet/models/ssd/backbones/resnet_fpn.py @@ -1,6 +1,7 @@ __all__ = [ "ssd300", "ssd512", + ...
{"golden_diff": "diff --git a/icevision/models/mmdet/models/ssd/backbones/resnet_fpn.py b/icevision/models/mmdet/models/ssd/backbones/resnet_fpn.py\n--- a/icevision/models/mmdet/models/ssd/backbones/resnet_fpn.py\n+++ b/icevision/models/mmdet/models/ssd/backbones/resnet_fpn.py\n@@ -1,6 +1,7 @@\n __all__ = [\n \"ssd...
1,596
771
gh_patches_debug_41100
rasdani/github-patches
git_diff
buildbot__buildbot-422
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Expose builder.tags to web templates. This tiny PR exposes the builders' "tags" attribute to the templates, allowing me to customize the templates using that feature. --- END ISSUE --- Below are some code ...
diff --git a/master/buildbot/steps/master.py b/master/buildbot/steps/master.py --- a/master/buildbot/steps/master.py +++ b/master/buildbot/steps/master.py @@ -18,6 +18,7 @@ from twisted.internet import reactor from buildbot.process.buildstep import BuildStep from buildbot.process.buildstep import SUCCESS, FAILURE +f...
{"golden_diff": "diff --git a/master/buildbot/steps/master.py b/master/buildbot/steps/master.py\n--- a/master/buildbot/steps/master.py\n+++ b/master/buildbot/steps/master.py\n@@ -18,6 +18,7 @@\n from twisted.internet import reactor\n from buildbot.process.buildstep import BuildStep\n from buildbot.process.buildstep imp...
1,829
689
gh_patches_debug_2569
rasdani/github-patches
git_diff
ephios-dev__ephios-1244
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- API: `/api/users/by_email` returns 404 error for email addresses with dots before the @ **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the be...
diff --git a/ephios/api/views/users.py b/ephios/api/views/users.py --- a/ephios/api/views/users.py +++ b/ephios/api/views/users.py @@ -96,6 +96,7 @@ filter_backends = [ObjectPermissionsFilter] lookup_url_kwarg = "email" lookup_field = "email" + lookup_value_regex = "[^/]+" # customize to allow dots (...
{"golden_diff": "diff --git a/ephios/api/views/users.py b/ephios/api/views/users.py\n--- a/ephios/api/views/users.py\n+++ b/ephios/api/views/users.py\n@@ -96,6 +96,7 @@\n filter_backends = [ObjectPermissionsFilter]\n lookup_url_kwarg = \"email\"\n lookup_field = \"email\"\n+ lookup_value_regex = \"[^/]+\...
1,533
115
gh_patches_debug_8988
rasdani/github-patches
git_diff
beeware__toga-1454
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "Your first Toga app" (helloworld) does not work as shown in the docs I copy-pasted the code [found here](https://toga.readthedocs.io/en/latest/tutorial/tutorial-0.html). When I ran it, I got this error mess...
diff --git a/examples/tutorial0/tutorial/app.py b/examples/tutorial0/tutorial/app.py --- a/examples/tutorial0/tutorial/app.py +++ b/examples/tutorial0/tutorial/app.py @@ -1,5 +1,4 @@ import toga -from tutorial import __version__ def button_handler(widget): @@ -18,15 +17,7 @@ def main(): - return toga.App(...
{"golden_diff": "diff --git a/examples/tutorial0/tutorial/app.py b/examples/tutorial0/tutorial/app.py\n--- a/examples/tutorial0/tutorial/app.py\n+++ b/examples/tutorial0/tutorial/app.py\n@@ -1,5 +1,4 @@\n import toga\n-from tutorial import __version__\n \n \n def button_handler(widget):\n@@ -18,15 +17,7 @@\n \n \n def ...
936
174
gh_patches_debug_3755
rasdani/github-patches
git_diff
dotkom__onlineweb4-486
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- API should not show marks publicly The API shows all marks for all users publicly. Should be unregistered from API if it is not utterly necessary by some client-side ajax call. --- END ISSUE --- Below are ...
diff --git a/apps/api/v0/urls.py b/apps/api/v0/urls.py --- a/apps/api/v0/urls.py +++ b/apps/api/v0/urls.py @@ -26,10 +26,10 @@ v0_api.register(ArticleLatestResource()) # marks -v0_api.register(MarkResource()) -v0_api.register(EntryResource()) -v0_api.register(MyMarksResource()) -v0_api.register(MyActiveMarksResourc...
{"golden_diff": "diff --git a/apps/api/v0/urls.py b/apps/api/v0/urls.py\n--- a/apps/api/v0/urls.py\n+++ b/apps/api/v0/urls.py\n@@ -26,10 +26,10 @@\n v0_api.register(ArticleLatestResource())\n \n # marks\n-v0_api.register(MarkResource())\n-v0_api.register(EntryResource())\n-v0_api.register(MyMarksResource())\n-v0_api.re...
640
149
gh_patches_debug_5292
rasdani/github-patches
git_diff
freedomofpress__securedrop-6881
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release SecureDrop 2.6.0 This is a tracking issue for the release of SecureDrop 2.6.0 Tentatively scheduled as follows: **Pre-release announcement:** 06-15-2023 **Release date:** 06-22-2023 **Releas...
diff --git a/securedrop/setup.py b/securedrop/setup.py --- a/securedrop/setup.py +++ b/securedrop/setup.py @@ -4,7 +4,7 @@ setuptools.setup( name="securedrop-app-code", - version="2.6.0~rc1", + version="2.7.0~rc1", author="Freedom of the Press Foundation", author_email="securedrop@freedom.press"...
{"golden_diff": "diff --git a/securedrop/setup.py b/securedrop/setup.py\n--- a/securedrop/setup.py\n+++ b/securedrop/setup.py\n@@ -4,7 +4,7 @@\n \n setuptools.setup(\n name=\"securedrop-app-code\",\n- version=\"2.6.0~rc1\",\n+ version=\"2.7.0~rc1\",\n author=\"Freedom of the Press Foundation\",\n auth...
1,352
175
gh_patches_debug_2507
rasdani/github-patches
git_diff
spotify__luigi-1494
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Python 3.5 support Luigi may already work with Python 3.5, but since the README doesn't mention it I thought I'd ask. Does Luigi support Python 3.5? --- END ISSUE --- Below are some code segments, each fr...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -84,6 +84,7 @@ 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', 'Topic :: System :: Monitoring...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -84,6 +84,7 @@\n 'Programming Language :: Python :: 2.7',\n 'Programming Language :: Python :: 3.3',\n 'Programming Language :: Python :: 3.4',\n+ 'Programming Language :: Python :: 3.5',\n 'Topi...
1,204
92
gh_patches_debug_12339
rasdani/github-patches
git_diff
nextcloud__appstore-73
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Nightly support - nightlies don't have a separate version number but a flag: ``` curl -X POST -u "user:password" http://localhost:8000/api/v1/apps/releases -H "Content-Type: application/json" -d '{"download"...
diff --git a/nextcloudappstore/core/api/v1/urls.py b/nextcloudappstore/core/api/v1/urls.py --- a/nextcloudappstore/core/api/v1/urls.py +++ b/nextcloudappstore/core/api/v1/urls.py @@ -9,7 +9,8 @@ url(r'^apps/releases/?$', AppReleases.as_view(), name='app-release-create'), url(r'^apps/(?P<pk>[a-z_]+)/?...
{"golden_diff": "diff --git a/nextcloudappstore/core/api/v1/urls.py b/nextcloudappstore/core/api/v1/urls.py\n--- a/nextcloudappstore/core/api/v1/urls.py\n+++ b/nextcloudappstore/core/api/v1/urls.py\n@@ -9,7 +9,8 @@\n url(r'^apps/releases/?$', AppReleases.as_view(),\n name='app-release-create'),\n url(r'...
661
228
gh_patches_debug_19020
rasdani/github-patches
git_diff
iterative__dvc-5888
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- list: Add --show-json (or similar flag) In the vs code project we have a view that uses `dvc list . --dvc-only` to show all paths that are tracked by DVC in a tree view. Reasons for this view, some discussio...
diff --git a/dvc/command/ls/__init__.py b/dvc/command/ls/__init__.py --- a/dvc/command/ls/__init__.py +++ b/dvc/command/ls/__init__.py @@ -34,7 +34,11 @@ recursive=self.args.recursive, dvc_only=self.args.dvc_only, ) - if entries: + if self.args.show_j...
{"golden_diff": "diff --git a/dvc/command/ls/__init__.py b/dvc/command/ls/__init__.py\n--- a/dvc/command/ls/__init__.py\n+++ b/dvc/command/ls/__init__.py\n@@ -34,7 +34,11 @@\n recursive=self.args.recursive,\n dvc_only=self.args.dvc_only,\n )\n- if entries:\n+ ...
1,198
222
gh_patches_debug_3062
rasdani/github-patches
git_diff
facebookresearch__hydra-1281
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release new version of Hydra # 🚀 Feature Request I would like you to release Hydra that includes this PR: https://github.com/facebookresearch/hydra/pull/1197 ## Motivation currently I am using pytho...
diff --git a/hydra/__init__.py b/hydra/__init__.py --- a/hydra/__init__.py +++ b/hydra/__init__.py @@ -1,7 +1,7 @@ # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # Source of truth for Hydra's version -__version__ = "1.0.4" +__version__ = "1.0.5" from hydra import utils from hydra.errors im...
{"golden_diff": "diff --git a/hydra/__init__.py b/hydra/__init__.py\n--- a/hydra/__init__.py\n+++ b/hydra/__init__.py\n@@ -1,7 +1,7 @@\n # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n \n # Source of truth for Hydra's version\n-__version__ = \"1.0.4\"\n+__version__ = \"1.0.5\"\n from hydra impo...
440
122
gh_patches_debug_47930
rasdani/github-patches
git_diff
liqd__a4-opin-614
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- project page header: more vertical space for byline The byline in the project page’s header area, which show’s the project’s organization is vertically too close to the headline of the project. ![bildschirm...
diff --git a/euth/organisations/views.py b/euth/organisations/views.py --- a/euth/organisations/views.py +++ b/euth/organisations/views.py @@ -15,4 +15,4 @@ class OrganisationListView(generic.ListView): model = models.Organisation - paginate_by = 10 + paginate_by = 12
{"golden_diff": "diff --git a/euth/organisations/views.py b/euth/organisations/views.py\n--- a/euth/organisations/views.py\n+++ b/euth/organisations/views.py\n@@ -15,4 +15,4 @@\n \n class OrganisationListView(generic.ListView):\n model = models.Organisation\n- paginate_by = 10\n+ paginate_by = 12\n", "issue":...
514
86
gh_patches_debug_26170
rasdani/github-patches
git_diff
zulip__zulip-22270
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- management: `rename_stream` management command does not work `rename_stream` uses the `do_rename_stream` function to rename the stream. However, it accesses a non-existent attribute when calling it. ``` d...
diff --git a/zerver/management/commands/rename_stream.py b/zerver/management/commands/rename_stream.py deleted file mode 100644 --- a/zerver/management/commands/rename_stream.py +++ /dev/null @@ -1,26 +0,0 @@ -from argparse import ArgumentParser -from typing import Any - -from zerver.actions.streams import do_rename_st...
{"golden_diff": "diff --git a/zerver/management/commands/rename_stream.py b/zerver/management/commands/rename_stream.py\ndeleted file mode 100644\n--- a/zerver/management/commands/rename_stream.py\n+++ /dev/null\n@@ -1,26 +0,0 @@\n-from argparse import ArgumentParser\n-from typing import Any\n-\n-from zerver.actions.st...
884
486
gh_patches_debug_12810
rasdani/github-patches
git_diff
joke2k__faker-626
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Uk mobile number It seems like the uk mobile number is not in the right format it's completely not valid some examples of them: +44(0)9128 405119 (01414) 35336 01231052134 Uk mobile number It seems lik...
diff --git a/faker/providers/phone_number/en_GB/__init__.py b/faker/providers/phone_number/en_GB/__init__.py --- a/faker/providers/phone_number/en_GB/__init__.py +++ b/faker/providers/phone_number/en_GB/__init__.py @@ -3,6 +3,15 @@ class Provider(PhoneNumberProvider): + # Source: https://en.wikipedia.org/wiki/T...
{"golden_diff": "diff --git a/faker/providers/phone_number/en_GB/__init__.py b/faker/providers/phone_number/en_GB/__init__.py\n--- a/faker/providers/phone_number/en_GB/__init__.py\n+++ b/faker/providers/phone_number/en_GB/__init__.py\n@@ -3,6 +3,15 @@\n \n \n class Provider(PhoneNumberProvider):\n+ # Source: https:/...
553
235
gh_patches_debug_2835
rasdani/github-patches
git_diff
Cloud-CV__EvalAI-2012
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Incorrect Fields in Jobs serializer *Observed code:* [here](https://github.com/Cloud-CV/EvalAI/blob/master/apps/jobs/serializers.py/#L54) ``` class Meta: model = LeaderboardData fields = "...
diff --git a/apps/jobs/serializers.py b/apps/jobs/serializers.py --- a/apps/jobs/serializers.py +++ b/apps/jobs/serializers.py @@ -51,7 +51,6 @@ class Meta: model = LeaderboardData - fields = "__all__" fields = ('id', 'participant_team_name', 'challenge_phase_split', 'leaderboard_schema'...
{"golden_diff": "diff --git a/apps/jobs/serializers.py b/apps/jobs/serializers.py\n--- a/apps/jobs/serializers.py\n+++ b/apps/jobs/serializers.py\n@@ -51,7 +51,6 @@\n \n class Meta:\n model = LeaderboardData\n- fields = \"__all__\"\n fields = ('id', 'participant_team_name', 'challenge_phase_s...
1,851
108
gh_patches_debug_3977
rasdani/github-patches
git_diff
activeloopai__deeplake-1513
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Pytorch dataloader because of transforms and shuffle=false ## 🐛🐛 Bug Report ### ⚗️ Current Behavior A clear and concise description of the behavior. ```python import hub ds = hub.load("hub:...
diff --git a/hub/integrations/pytorch/common.py b/hub/integrations/pytorch/common.py --- a/hub/integrations/pytorch/common.py +++ b/hub/integrations/pytorch/common.py @@ -53,5 +53,6 @@ for tensor, fn in self.transform_dict.items(): value = data_in[tensor] data_out[tensor] ...
{"golden_diff": "diff --git a/hub/integrations/pytorch/common.py b/hub/integrations/pytorch/common.py\n--- a/hub/integrations/pytorch/common.py\n+++ b/hub/integrations/pytorch/common.py\n@@ -53,5 +53,6 @@\n for tensor, fn in self.transform_dict.items():\n value = data_in[tensor]\n ...
1,127
116
gh_patches_debug_2155
rasdani/github-patches
git_diff
wright-group__WrightTools-878
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pcov TypeError in kit._leastsq In kit._leastsq, if the line 62 if statement is not passed, the consequent else statement makes pcov data type float, triggering"TypeError: 'int' object is not subscriptable" in...
diff --git a/WrightTools/kit/_leastsq.py b/WrightTools/kit/_leastsq.py --- a/WrightTools/kit/_leastsq.py +++ b/WrightTools/kit/_leastsq.py @@ -65,7 +65,7 @@ if cov_verbose: print(pcov) else: - pcov = np.inf + pcov = np.array(np.inf) # calculate and w...
{"golden_diff": "diff --git a/WrightTools/kit/_leastsq.py b/WrightTools/kit/_leastsq.py\n--- a/WrightTools/kit/_leastsq.py\n+++ b/WrightTools/kit/_leastsq.py\n@@ -65,7 +65,7 @@\n if cov_verbose:\n print(pcov)\n else:\n- pcov = np.inf\n+ pcov = np.array(np.inf)\n...
1,207
118
gh_patches_debug_1593
rasdani/github-patches
git_diff
ethereum__web3.py-3090
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add `eth_chainId` to retry middleware whitelist ### What was wrong? I enabled the `http_retry_request_middleware`, but an idempotent method that is called frequently (`eth_chainId`) is missing from the ret...
diff --git a/web3/middleware/exception_retry_request.py b/web3/middleware/exception_retry_request.py --- a/web3/middleware/exception_retry_request.py +++ b/web3/middleware/exception_retry_request.py @@ -62,6 +62,7 @@ "eth_getRawTransactionByHash", "eth_call", "eth_estimateGas", + "eth_maxPriorityFeePe...
{"golden_diff": "diff --git a/web3/middleware/exception_retry_request.py b/web3/middleware/exception_retry_request.py\n--- a/web3/middleware/exception_retry_request.py\n+++ b/web3/middleware/exception_retry_request.py\n@@ -62,6 +62,7 @@\n \"eth_getRawTransactionByHash\",\n \"eth_call\",\n \"eth_estimateGas\...
1,807
111
gh_patches_debug_20829
rasdani/github-patches
git_diff
litestar-org__litestar-1114
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Documentation: "older version" warning present on latest Every page under https://starlite-api.github.io/starlite/latest/ has the "You are viewing the documentation for an older version of Starlite. Click her...
diff --git a/tools/publish_docs.py b/tools/publish_docs.py --- a/tools/publish_docs.py +++ b/tools/publish_docs.py @@ -12,7 +12,7 @@ parser.add_argument("--latest", action="store_true") -def update_versions_file(version: str) -> None: +def add_to_versions_file(version: str, latest: bool) -> None: versions_fil...
{"golden_diff": "diff --git a/tools/publish_docs.py b/tools/publish_docs.py\n--- a/tools/publish_docs.py\n+++ b/tools/publish_docs.py\n@@ -12,7 +12,7 @@\n parser.add_argument(\"--latest\", action=\"store_true\")\n \n \n-def update_versions_file(version: str) -> None:\n+def add_to_versions_file(version: str, latest: boo...
1,104
242
gh_patches_debug_16074
rasdani/github-patches
git_diff
Zeroto521__my-data-toolkit-645
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DEP: Depcrated `utm_crs` <!-- Thanks for contributing a pull request! Please follow these standard acronyms to start the commit message: - ENH: enhancement - BUG: bug fix - DOC: documentation - TYP:...
diff --git a/dtoolkit/geoaccessor/geoseries/utm_crs.py b/dtoolkit/geoaccessor/geoseries/utm_crs.py --- a/dtoolkit/geoaccessor/geoseries/utm_crs.py +++ b/dtoolkit/geoaccessor/geoseries/utm_crs.py @@ -9,8 +9,8 @@ @register_geoseries_method @warning( - "The 'utm_crs' is deprecated and will be removed in 0.0.17. " -...
{"golden_diff": "diff --git a/dtoolkit/geoaccessor/geoseries/utm_crs.py b/dtoolkit/geoaccessor/geoseries/utm_crs.py\n--- a/dtoolkit/geoaccessor/geoseries/utm_crs.py\n+++ b/dtoolkit/geoaccessor/geoseries/utm_crs.py\n@@ -9,8 +9,8 @@\n \n @register_geoseries_method\n @warning(\n- \"The 'utm_crs' is deprecated and will ...
1,519
328
gh_patches_debug_5539
rasdani/github-patches
git_diff
acl-org__acl-anthology-2313
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ingestion request: Generation challenges at INLG 2022 This is to complete the ingestions of all papers from INLG; the Generation Challenges papers still needed to be uploaded. See #1897 for the other papers. ...
diff --git a/bin/volumes_from_diff.py b/bin/volumes_from_diff.py --- a/bin/volumes_from_diff.py +++ b/bin/volumes_from_diff.py @@ -27,7 +27,7 @@ continue root = tree.getroot() collection_id = root.attrib["id"] - for volume in root: + for volume in root.findall("./volume"): volume_name ...
{"golden_diff": "diff --git a/bin/volumes_from_diff.py b/bin/volumes_from_diff.py\n--- a/bin/volumes_from_diff.py\n+++ b/bin/volumes_from_diff.py\n@@ -27,7 +27,7 @@\n continue\n root = tree.getroot()\n collection_id = root.attrib[\"id\"]\n- for volume in root:\n+ for volume in root.findall(\"./vol...
734
123
gh_patches_debug_20906
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-346
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Not using HA supported python version HA supports the last two minor versions of Python, that is currently 3.10 and 3.9. [calendar.py](https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/cu...
diff --git a/custom_components/waste_collection_schedule/calendar.py b/custom_components/waste_collection_schedule/calendar.py --- a/custom_components/waste_collection_schedule/calendar.py +++ b/custom_components/waste_collection_schedule/calendar.py @@ -1,15 +1,12 @@ """Calendar platform support for Waste Collection ...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/calendar.py b/custom_components/waste_collection_schedule/calendar.py\n--- a/custom_components/waste_collection_schedule/calendar.py\n+++ b/custom_components/waste_collection_schedule/calendar.py\n@@ -1,15 +1,12 @@\n \"\"\"Calendar platform suppo...
1,377
240
gh_patches_debug_2209
rasdani/github-patches
git_diff
OCHA-DAP__hdx-ckan-1887
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Please allow markdown to the organization description field Right now markdown is not allowed in that field. I believe that this is preventing me from adding paragraphs and other particular styles to the text...
diff --git a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py b/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py --- a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py +++ b/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py @@ -46,7 ...
{"golden_diff": "diff --git a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py b/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py\n--- a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py\n+++ b/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_cont...
1,113
179
gh_patches_debug_39448
rasdani/github-patches
git_diff
scoutapp__scout_apm_python-355
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Instrument Starlette background tasks Starlette supports [background tasks](https://www.starlette.io/background/). We should instrument these as background transactions. --- END ISSUE --- Below are some cod...
diff --git a/src/scout_apm/async_/starlette.py b/src/scout_apm/async_/starlette.py --- a/src/scout_apm/async_/starlette.py +++ b/src/scout_apm/async_/starlette.py @@ -1,6 +1,8 @@ # coding=utf-8 from __future__ import absolute_import, division, print_function, unicode_literals +import wrapt +from starlette.backgroun...
{"golden_diff": "diff --git a/src/scout_apm/async_/starlette.py b/src/scout_apm/async_/starlette.py\n--- a/src/scout_apm/async_/starlette.py\n+++ b/src/scout_apm/async_/starlette.py\n@@ -1,6 +1,8 @@\n # coding=utf-8\n from __future__ import absolute_import, division, print_function, unicode_literals\n \n+import wrapt\n...
912
683
gh_patches_debug_27631
rasdani/github-patches
git_diff
OpenMined__PySyft-2308
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- TrainConfig parameter "epochs" **TrainConfig parameter "epochs" doesn't have effect.** After changing the number of epochs=1 to epochs=100. The worker still do only 1 epoch. ``` train_config = sy.TrainCo...
diff --git a/syft/federated/federated_client.py b/syft/federated/federated_client.py --- a/syft/federated/federated_client.py +++ b/syft/federated/federated_client.py @@ -72,6 +72,9 @@ if self.train_config is None: raise ValueError("TrainConfig not defined.") + if dataset_key not in self....
{"golden_diff": "diff --git a/syft/federated/federated_client.py b/syft/federated/federated_client.py\n--- a/syft/federated/federated_client.py\n+++ b/syft/federated/federated_client.py\n@@ -72,6 +72,9 @@\n if self.train_config is None:\n raise ValueError(\"TrainConfig not defined.\")\n \n+ i...
1,477
394
gh_patches_debug_15340
rasdani/github-patches
git_diff
pypa__setuptools-2134
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Removing compatibility for Python 2 In #1458 and the Setuptools 45 release, this project dropped declared support for Python 2, adding a warning when a late version was invoked on Python 2. This warning helpe...
diff --git a/pkg_resources/py2_warn.py b/pkg_resources/py2_warn.py --- a/pkg_resources/py2_warn.py +++ b/pkg_resources/py2_warn.py @@ -4,18 +4,13 @@ msg = textwrap.dedent(""" - You are running Setuptools on Python 2, which is no longer - supported and - >>> SETUPTOOLS WILL STOP WORKING <<< - in a subse...
{"golden_diff": "diff --git a/pkg_resources/py2_warn.py b/pkg_resources/py2_warn.py\n--- a/pkg_resources/py2_warn.py\n+++ b/pkg_resources/py2_warn.py\n@@ -4,18 +4,13 @@\n \n \n msg = textwrap.dedent(\"\"\"\n- You are running Setuptools on Python 2, which is no longer\n- supported and\n- >>> SETUPTOOLS WILL STO...
929
327
gh_patches_debug_33249
rasdani/github-patches
git_diff
vispy__vispy-2226
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Incorrect behavior with multipe clipping planes I was checking up on that nice trick where the clipping planes logic is done in the vertex shader and then interpolated to the fragment shader, with the intent...
diff --git a/vispy/visuals/filters/clipping_planes.py b/vispy/visuals/filters/clipping_planes.py --- a/vispy/visuals/filters/clipping_planes.py +++ b/vispy/visuals/filters/clipping_planes.py @@ -24,14 +24,15 @@ VERT_CODE = """ void clip() { - // Transform back to visual coordinates and clip based on ...
{"golden_diff": "diff --git a/vispy/visuals/filters/clipping_planes.py b/vispy/visuals/filters/clipping_planes.py\n--- a/vispy/visuals/filters/clipping_planes.py\n+++ b/vispy/visuals/filters/clipping_planes.py\n@@ -24,14 +24,15 @@\n \n VERT_CODE = \"\"\"\n void clip() {\n- // Transform back to visual coo...
1,953
527
gh_patches_debug_10597
rasdani/github-patches
git_diff
e2nIEE__pandapower-849
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Estimation results Hello, I think in python file pandapower -> estimation -> results.py there is a baseMVA missing in the calculation. I think line 22 should be adjusted to this, or similar: `Sbus = ...
diff --git a/pandapower/estimation/results.py b/pandapower/estimation/results.py --- a/pandapower/estimation/results.py +++ b/pandapower/estimation/results.py @@ -19,7 +19,7 @@ ppci['bus'], ppci['gen'], ppci['branch'] = pfsoln(baseMVA, bus, gen, branch, Ybus, Yf, Yt, V, ref, ref_gens) # calculate bus power ...
{"golden_diff": "diff --git a/pandapower/estimation/results.py b/pandapower/estimation/results.py\n--- a/pandapower/estimation/results.py\n+++ b/pandapower/estimation/results.py\n@@ -19,7 +19,7 @@\n ppci['bus'], ppci['gen'], ppci['branch'] = pfsoln(baseMVA, bus, gen, branch, Ybus, Yf, Yt, V, ref, ref_gens)\n \n ...
1,738
211
gh_patches_debug_3313
rasdani/github-patches
git_diff
ansible-collections__community.general-6941
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- machinectl become plugin does not specify it requires a tty ### Summary see https://github.com/ansible/ansible/issues/81254 if the plugin sets the class attribute: ``` require_tty = True ``` It w...
diff --git a/plugins/become/machinectl.py b/plugins/become/machinectl.py --- a/plugins/become/machinectl.py +++ b/plugins/become/machinectl.py @@ -102,6 +102,7 @@ prompt = 'Password: ' fail = ('==== AUTHENTICATION FAILED ====',) success = ('==== AUTHENTICATION COMPLETE ====',) + require_tty = True # ...
{"golden_diff": "diff --git a/plugins/become/machinectl.py b/plugins/become/machinectl.py\n--- a/plugins/become/machinectl.py\n+++ b/plugins/become/machinectl.py\n@@ -102,6 +102,7 @@\n prompt = 'Password: '\n fail = ('==== AUTHENTICATION FAILED ====',)\n success = ('==== AUTHENTICATION COMPLETE ====',)\n+ ...
1,903
126
gh_patches_debug_25376
rasdani/github-patches
git_diff
team-ocean__veros-49
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Job resubmission with job scheduler doesn't work I was not able to find out the reason behind resubmission issue with job scheduler, such as: `veros-resubmit -i acc.lowres -n 50 -l 62208000 -c "python acc.p...
diff --git a/veros/cli/veros_resubmit.py b/veros/cli/veros_resubmit.py --- a/veros/cli/veros_resubmit.py +++ b/veros/cli/veros_resubmit.py @@ -5,10 +5,13 @@ import shlex import sys import os +import time import click LAST_N_FILENAME = "{identifier}.current_run" +CHILD_TIMEOUT = 10 +POLL_DELAY = 0.1 class ...
{"golden_diff": "diff --git a/veros/cli/veros_resubmit.py b/veros/cli/veros_resubmit.py\n--- a/veros/cli/veros_resubmit.py\n+++ b/veros/cli/veros_resubmit.py\n@@ -5,10 +5,13 @@\n import shlex\n import sys\n import os\n+import time\n \n import click\n \n LAST_N_FILENAME = \"{identifier}.current_run\"\n+CHILD_TIMEOUT = 1...
1,290
347
gh_patches_debug_30694
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-1599
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug]: was_wolfsburg_de stopped fetching data ### I Have A Problem With: A specific source ### What's Your Problem The Source was_wolfsburg_de stopped fetching data for 2024. I suspect because the request ...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/was_wolfsburg_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/was_wolfsburg_de.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/was_wolfsburg_de.py +++ b/cu...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/was_wolfsburg_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/was_wolfsburg_de.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/was_wolfsb...
1,193
609
gh_patches_debug_18547
rasdani/github-patches
git_diff
searx__searx-1501
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Asksteem is gone The API has been discontinued so it should probably be removed as an option entirely. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files m...
diff --git a/searx/engines/asksteem.py b/searx/engines/asksteem.py deleted file mode 100644 --- a/searx/engines/asksteem.py +++ /dev/null @@ -1,44 +0,0 @@ -""" - Asksteem (general) - - @website https://asksteem.com/ - @provide-api yes - - @using-api yes - @results JSON (https://github.com/Hoxly/asksteem-docs/...
{"golden_diff": "diff --git a/searx/engines/asksteem.py b/searx/engines/asksteem.py\ndeleted file mode 100644\n--- a/searx/engines/asksteem.py\n+++ /dev/null\n@@ -1,44 +0,0 @@\n-\"\"\"\n- Asksteem (general)\n-\n- @website https://asksteem.com/\n- @provide-api yes\n-\n- @using-api yes\n- @results JSON (https:/...
641
359
gh_patches_debug_18029
rasdani/github-patches
git_diff
python-poetry__poetry-1796
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Installing directory poetry package with dependencies in secondary source fails <!-- Hi there! Thank you for discovering and submitting an issue. Before you submit this; let's make sure of a few thing...
diff --git a/poetry/packages/directory_dependency.py b/poetry/packages/directory_dependency.py --- a/poetry/packages/directory_dependency.py +++ b/poetry/packages/directory_dependency.py @@ -74,6 +74,17 @@ def develop(self): return self._develop + @property + def base_pep_508_name(self): # type: ...
{"golden_diff": "diff --git a/poetry/packages/directory_dependency.py b/poetry/packages/directory_dependency.py\n--- a/poetry/packages/directory_dependency.py\n+++ b/poetry/packages/directory_dependency.py\n@@ -74,6 +74,17 @@\n def develop(self):\n return self._develop\n \n+ @property\n+ def base_pep_...
1,823
315
gh_patches_debug_9
rasdani/github-patches
git_diff
OCHA-DAP__hdx-ckan-1038
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update the version number on the logo and footer. For sprint 25, we will increment to 0.3.2 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain...
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/version.py b/ckanext-hdx_theme/ckanext/hdx_theme/version.py --- a/ckanext-hdx_theme/ckanext/hdx_theme/version.py +++ b/ckanext-hdx_theme/ckanext/hdx_theme/version.py @@ -1 +1 @@ -hdx_version='v0.3.1' \ No newline at end of file +hdx_version='v0.3.2' \ No newline at end o...
{"golden_diff": "diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/version.py b/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n--- a/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n+++ b/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n@@ -1 +1 @@\n-hdx_version='v0.3.1'\n\\ No newline at end of file\n+hdx_version='v0.3....
307
120
gh_patches_debug_693
rasdani/github-patches
git_diff
Azure__azure-cli-extensions-4911
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `az webpubsub client start` errors with `TypeError: As of 3.10, the *loop* parameter was removed from Lock() since it is no longer necessary` - If the issue is to do with Azure CLI 2.0 in-particular, create a...
diff --git a/src/webpubsub/setup.py b/src/webpubsub/setup.py --- a/src/webpubsub/setup.py +++ b/src/webpubsub/setup.py @@ -34,7 +34,7 @@ # TODO: Add any additional SDK dependencies here DEPENDENCIES = [ - 'websockets~=8.1' + 'websockets>=8.1' ] with open('README.rst', 'r', encoding='utf-8') as f:
{"golden_diff": "diff --git a/src/webpubsub/setup.py b/src/webpubsub/setup.py\n--- a/src/webpubsub/setup.py\n+++ b/src/webpubsub/setup.py\n@@ -34,7 +34,7 @@\n \n # TODO: Add any additional SDK dependencies here\n DEPENDENCIES = [\n- 'websockets~=8.1'\n+ 'websockets>=8.1'\n ]\n \n with open('README.rst', 'r', enco...
1,829
105
gh_patches_debug_42493
rasdani/github-patches
git_diff
PrefectHQ__prefect-3725
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow exporter arguments in Jupyter ExecuteNotebook task ## Current behavior When running the `jupyter.jupyter.ExecuteNotebook` task with `output_format='html'` the default settings for the HTMLExporter ar...
diff --git a/src/prefect/tasks/jupyter/jupyter.py b/src/prefect/tasks/jupyter/jupyter.py --- a/src/prefect/tasks/jupyter/jupyter.py +++ b/src/prefect/tasks/jupyter/jupyter.py @@ -18,8 +18,12 @@ Can also be provided post-initialization by calling this task instance - parameters (dict, optional): di...
{"golden_diff": "diff --git a/src/prefect/tasks/jupyter/jupyter.py b/src/prefect/tasks/jupyter/jupyter.py\n--- a/src/prefect/tasks/jupyter/jupyter.py\n+++ b/src/prefect/tasks/jupyter/jupyter.py\n@@ -18,8 +18,12 @@\n Can also be provided post-initialization by calling this task instance\n - parameter...
1,100
857
gh_patches_debug_19122
rasdani/github-patches
git_diff
aimhubio__aim-1917
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pytorch track_gradients_dists errors out if some parameters don't have gradients ## 🐛 Bug When collecting gradients for each layer weight of a model, the function `get_model_layers` errors out if some mod...
diff --git a/aim/sdk/adapters/pytorch.py b/aim/sdk/adapters/pytorch.py --- a/aim/sdk/adapters/pytorch.py +++ b/aim/sdk/adapters/pytorch.py @@ -60,15 +60,17 @@ layers.update(get_model_layers(m, dt, layer_name)) else: layers[layer_name] = {} - if hasattr(m, 'weight') \ - ...
{"golden_diff": "diff --git a/aim/sdk/adapters/pytorch.py b/aim/sdk/adapters/pytorch.py\n--- a/aim/sdk/adapters/pytorch.py\n+++ b/aim/sdk/adapters/pytorch.py\n@@ -60,15 +60,17 @@\n layers.update(get_model_layers(m, dt, layer_name))\n else:\n layers[layer_name] = {}\n- if hasat...
996
302
gh_patches_debug_9161
rasdani/github-patches
git_diff
ciudadanointeligente__votainteligente-portal-electoral-765
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ordernar Propuestas Por: - [x] últimas creadas - [x] Creadas por organización - [x] Con más orazones. Y por *defecto* puede ser: - Random - Por corazones, encuentro local, es organización. --- END IS...
diff --git a/popular_proposal/filters.py b/popular_proposal/filters.py --- a/popular_proposal/filters.py +++ b/popular_proposal/filters.py @@ -24,6 +24,8 @@ label=u"Ordenar por", choices=[('', u'Por apoyos'), ('-created', u'Últ...
{"golden_diff": "diff --git a/popular_proposal/filters.py b/popular_proposal/filters.py\n--- a/popular_proposal/filters.py\n+++ b/popular_proposal/filters.py\n@@ -24,6 +24,8 @@\n label=u\"Ordenar por\",\n choices=[('', u'Por apoyos'),\n ...
1,393
128
gh_patches_debug_5999
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-4515
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Homebase spider webpage regex is too restrictive The homebase_gb_ie.py spider contains a regex in sitemap_rules to restrict things to store pages: `sitemap_rules = [(r"https:\/\/store\.homebase\.co\.uk\/[-\w...
diff --git a/locations/spiders/homebase_gb_ie.py b/locations/spiders/homebase_gb_ie.py --- a/locations/spiders/homebase_gb_ie.py +++ b/locations/spiders/homebase_gb_ie.py @@ -7,5 +7,5 @@ name = "homebase_gb_ie" item_attributes = {"brand": "Homebase", "brand_wikidata": "Q9293447"} sitemap_urls = ["https:/...
{"golden_diff": "diff --git a/locations/spiders/homebase_gb_ie.py b/locations/spiders/homebase_gb_ie.py\n--- a/locations/spiders/homebase_gb_ie.py\n+++ b/locations/spiders/homebase_gb_ie.py\n@@ -7,5 +7,5 @@\n name = \"homebase_gb_ie\"\n item_attributes = {\"brand\": \"Homebase\", \"brand_wikidata\": \"Q9293447\...
565
184
gh_patches_debug_1557
rasdani/github-patches
git_diff
WordPress__openverse-api-637
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Return secure URLs for the fields thumbnail, detail_url and related_url. _(Framed the verbiage of the title as a feature request)_ 🙏 ## Problem The response for search and detail requests includes ins...
diff --git a/api/catalog/api/serializers/base.py b/api/catalog/api/serializers/base.py --- a/api/catalog/api/serializers/base.py +++ b/api/catalog/api/serializers/base.py @@ -19,6 +19,6 @@ # Only rewrite URLs if a fixed scheme is provided if self.scheme is not None: - re.sub(r"^\w+://", f...
{"golden_diff": "diff --git a/api/catalog/api/serializers/base.py b/api/catalog/api/serializers/base.py\n--- a/api/catalog/api/serializers/base.py\n+++ b/api/catalog/api/serializers/base.py\n@@ -19,6 +19,6 @@\n \n # Only rewrite URLs if a fixed scheme is provided\n if self.scheme is not None:\n- ...
780
130
gh_patches_debug_57595
rasdani/github-patches
git_diff
joke2k__faker-704
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError: module 'faker.providers' has no attribute '__file__' I converted my python code to .exe using cx_Freeze. While opening my .exe file I am getting this error. Traceback (most recent call last...
diff --git a/faker/utils/loading.py b/faker/utils/loading.py --- a/faker/utils/loading.py +++ b/faker/utils/loading.py @@ -7,7 +7,10 @@ def get_path(module): if getattr(sys, 'frozen', False): # frozen - path = os.path.dirname(sys.executable) + base_dir = os.path.dirname(sys.executable) + ...
{"golden_diff": "diff --git a/faker/utils/loading.py b/faker/utils/loading.py\n--- a/faker/utils/loading.py\n+++ b/faker/utils/loading.py\n@@ -7,7 +7,10 @@\n def get_path(module):\n if getattr(sys, 'frozen', False):\n # frozen\n- path = os.path.dirname(sys.executable)\n+ base_dir = os.path.dir...
1,004
154
gh_patches_debug_8619
rasdani/github-patches
git_diff
open-mmlab__mmdetection3d-647
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug in indoor_converter If `pkl_prefix=='sunrgbd'` we go to this [else](https://github.com/open-mmlab/mmdetection3d/blob/master/tools/data_converter/indoor_converter.py#L89) for `s3dis` and get `FileNotFoundE...
diff --git a/tools/data_converter/indoor_converter.py b/tools/data_converter/indoor_converter.py --- a/tools/data_converter/indoor_converter.py +++ b/tools/data_converter/indoor_converter.py @@ -86,7 +86,7 @@ # no need to generate for test set train_dataset.get_seg_infos() val_dataset.get_seg...
{"golden_diff": "diff --git a/tools/data_converter/indoor_converter.py b/tools/data_converter/indoor_converter.py\n--- a/tools/data_converter/indoor_converter.py\n+++ b/tools/data_converter/indoor_converter.py\n@@ -86,7 +86,7 @@\n # no need to generate for test set\n train_dataset.get_seg_infos()\n ...
1,717
143
gh_patches_debug_36598
rasdani/github-patches
git_diff
getredash__redash-1944
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Redash Permissions not working for some use cases ### Issue Summary Currently, when query owner grants permission to another user for a query, the user is still unable to perform the following tasks: * ...
diff --git a/redash/handlers/visualizations.py b/redash/handlers/visualizations.py --- a/redash/handlers/visualizations.py +++ b/redash/handlers/visualizations.py @@ -1,9 +1,12 @@ import json + from flask import request from redash import models -from redash.permissions import require_permission, require_admin_or_...
{"golden_diff": "diff --git a/redash/handlers/visualizations.py b/redash/handlers/visualizations.py\n--- a/redash/handlers/visualizations.py\n+++ b/redash/handlers/visualizations.py\n@@ -1,9 +1,12 @@\n import json\n+\n from flask import request\n \n from redash import models\n-from redash.permissions import require_per...
1,581
496
gh_patches_debug_3019
rasdani/github-patches
git_diff
rucio__rucio-4790
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix setup_webui script Motivation ---------- Script has a wrong import, needs to be fixed. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may con...
diff --git a/setup_webui.py b/setup_webui.py --- a/setup_webui.py +++ b/setup_webui.py @@ -35,7 +35,7 @@ from setuputil import get_rucio_version name = 'rucio-webui' -packages = ['rucio', 'rucio.web', 'rucio.web.ui', 'rucio.web.ui.flask', 'rucio.web.flask.common'] +packages = ['rucio', 'rucio.web', 'rucio.web.u...
{"golden_diff": "diff --git a/setup_webui.py b/setup_webui.py\n--- a/setup_webui.py\n+++ b/setup_webui.py\n@@ -35,7 +35,7 @@\n from setuputil import get_rucio_version\n \n name = 'rucio-webui'\n-packages = ['rucio', 'rucio.web', 'rucio.web.ui', 'rucio.web.ui.flask', 'rucio.web.flask.common']\n+packages = ['rucio', ...
1,045
141
gh_patches_debug_26431
rasdani/github-patches
git_diff
tensorflow__tfx-91
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Import errors when trying to run Chicago Taxi on Dataflow Similarly as in issue [#47](https://github.com/tensorflow/tfx/issues/47), I still have a problem with running CTE on Dataflow. When I use the code wit...
diff --git a/tfx/examples/chicago_taxi/setup.py b/tfx/examples/chicago_taxi/setup.py --- a/tfx/examples/chicago_taxi/setup.py +++ b/tfx/examples/chicago_taxi/setup.py @@ -15,28 +15,29 @@ import setuptools # LINT.IfChange -TF_VERSION = '1.12.0' +TF_VERSION = '1.13.1' # LINT.ThenChange(train_mlengine.sh, start_model...
{"golden_diff": "diff --git a/tfx/examples/chicago_taxi/setup.py b/tfx/examples/chicago_taxi/setup.py\n--- a/tfx/examples/chicago_taxi/setup.py\n+++ b/tfx/examples/chicago_taxi/setup.py\n@@ -15,28 +15,29 @@\n import setuptools\n \n # LINT.IfChange\n-TF_VERSION = '1.12.0'\n+TF_VERSION = '1.13.1'\n # LINT.ThenChange(trai...
1,700
567
gh_patches_debug_9250
rasdani/github-patches
git_diff
opensearch-project__opensearch-build-1852
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [RPM M1] Add a new block to call the generation code for RPM Tasks | Estimate | Status | Notes | Dependencies -- | -- | -- | -- | -- The generation code should pull the artifacts from the build workflow to ...
diff --git a/src/assemble_workflow/bundle_rpm.py b/src/assemble_workflow/bundle_rpm.py --- a/src/assemble_workflow/bundle_rpm.py +++ b/src/assemble_workflow/bundle_rpm.py @@ -89,7 +89,10 @@ os.environ.pop('OPENSEARCH_PATH_CONF', None) # Restore config file and core folder to original location - ...
{"golden_diff": "diff --git a/src/assemble_workflow/bundle_rpm.py b/src/assemble_workflow/bundle_rpm.py\n--- a/src/assemble_workflow/bundle_rpm.py\n+++ b/src/assemble_workflow/bundle_rpm.py\n@@ -89,7 +89,10 @@\n os.environ.pop('OPENSEARCH_PATH_CONF', None)\n \n # Restore config file and core folder to o...
1,842
180
gh_patches_debug_18748
rasdani/github-patches
git_diff
microsoft__PubSec-Info-Assistant-356
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Text Enrichment function not quoting blob paths correctly We have some files with percentage (%) symbols in them, which appear to cause an issue when getting to the Text Enrichment stage of the Function App d...
diff --git a/functions/shared_code/utilities_helper.py b/functions/shared_code/utilities_helper.py --- a/functions/shared_code/utilities_helper.py +++ b/functions/shared_code/utilities_helper.py @@ -3,6 +3,7 @@ import os import logging +import urllib.parse from datetime import datetime, timedelta from azure.stora...
{"golden_diff": "diff --git a/functions/shared_code/utilities_helper.py b/functions/shared_code/utilities_helper.py\n--- a/functions/shared_code/utilities_helper.py\n+++ b/functions/shared_code/utilities_helper.py\n@@ -3,6 +3,7 @@\n \n import os\n import logging\n+import urllib.parse\n from datetime import datetime, ti...
975
200
gh_patches_debug_27874
rasdani/github-patches
git_diff
cloud-custodian__cloud-custodian-7673
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Any way to filter on tags for Cognito identity-pool or user-pool? ### Discussed in https://github.com/orgs/cloud-custodian/discussions/7616 <div type='discussions-op-text'> <sup>Originally posted by **s...
diff --git a/c7n/resources/cognito.py b/c7n/resources/cognito.py --- a/c7n/resources/cognito.py +++ b/c7n/resources/cognito.py @@ -4,10 +4,21 @@ from c7n.actions import BaseAction from c7n.manager import resources -from c7n.query import QueryResourceManager, TypeInfo +from c7n.query import QueryResourceManager, Typ...
{"golden_diff": "diff --git a/c7n/resources/cognito.py b/c7n/resources/cognito.py\n--- a/c7n/resources/cognito.py\n+++ b/c7n/resources/cognito.py\n@@ -4,10 +4,21 @@\n \n from c7n.actions import BaseAction\n from c7n.manager import resources\n-from c7n.query import QueryResourceManager, TypeInfo\n+from c7n.query import ...
1,391
355
gh_patches_debug_200
rasdani/github-patches
git_diff
scrapy__scrapy-1566
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- signals docs are confusing It seems it is not explained how to connect a callback to a singnal anywhere in Scrapy docs. http://doc.scrapy.org/en/latest/topics/signals.html tells: > You can connect to signal...
diff --git a/scrapy/utils/misc.py b/scrapy/utils/misc.py --- a/scrapy/utils/misc.py +++ b/scrapy/utils/misc.py @@ -1,4 +1,4 @@ -"""Helper functions which doesn't fit anywhere else""" +"""Helper functions which don't fit anywhere else""" import re import hashlib from importlib import import_module
{"golden_diff": "diff --git a/scrapy/utils/misc.py b/scrapy/utils/misc.py\n--- a/scrapy/utils/misc.py\n+++ b/scrapy/utils/misc.py\n@@ -1,4 +1,4 @@\n-\"\"\"Helper functions which doesn't fit anywhere else\"\"\"\n+\"\"\"Helper functions which don't fit anywhere else\"\"\"\n import re\n import hashlib\n from importlib imp...
1,652
77
gh_patches_debug_29045
rasdani/github-patches
git_diff
litestar-org__litestar-2864
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: OpenAPI schema generation fails due to same operation IDs ### Description If two routes with the same path, but different methods are defined then the OpenAPI generation fails due to both of them having...
diff --git a/litestar/_openapi/plugin.py b/litestar/_openapi/plugin.py --- a/litestar/_openapi/plugin.py +++ b/litestar/_openapi/plugin.py @@ -27,7 +27,7 @@ def __init__(self, app: Litestar) -> None: self.app = app - self.included_routes: list[HTTPRoute] = [] + self.included_routes: dict[s...
{"golden_diff": "diff --git a/litestar/_openapi/plugin.py b/litestar/_openapi/plugin.py\n--- a/litestar/_openapi/plugin.py\n+++ b/litestar/_openapi/plugin.py\n@@ -27,7 +27,7 @@\n \n def __init__(self, app: Litestar) -> None:\n self.app = app\n- self.included_routes: list[HTTPRoute] = []\n+ sel...
1,478
339
gh_patches_debug_3371
rasdani/github-patches
git_diff
e2nIEE__pandapower-1661
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pandapower.networks: nets have wrong order of columns Example for net = nw.case24_ieee_rts(): ```python net.bus.head() Out[43]: in_service max_vm_pu min_vm_pu name type vn_kv zone 0 True ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ install_requires=["pandas>=1.0", "networkx>=2.5", "scipy", - "numpy>=0.11", + "numpy", "packaging", ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -45,7 +45,7 @@\n install_requires=[\"pandas>=1.0\",\n \"networkx>=2.5\",\n \"scipy\",\n- \"numpy>=0.11\",\n+ \"numpy\",\n ...
1,423
88
gh_patches_debug_20828
rasdani/github-patches
git_diff
bookwyrm-social__bookwyrm-619
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Reading goal status doesn't set plurals correctly When someone is only planning to read 1 book, the status should say "1 book" not "1 books" --- END ISSUE --- Below are some code segments, each from a relev...
diff --git a/bookwyrm/views/goal.py b/bookwyrm/views/goal.py --- a/bookwyrm/views/goal.py +++ b/bookwyrm/views/goal.py @@ -2,6 +2,7 @@ from django.contrib.auth.decorators import login_required from django.http import HttpResponseNotFound from django.shortcuts import redirect +from django.template.loader import get_t...
{"golden_diff": "diff --git a/bookwyrm/views/goal.py b/bookwyrm/views/goal.py\n--- a/bookwyrm/views/goal.py\n+++ b/bookwyrm/views/goal.py\n@@ -2,6 +2,7 @@\n from django.contrib.auth.decorators import login_required\n from django.http import HttpResponseNotFound\n from django.shortcuts import redirect\n+from django.temp...
949
209
gh_patches_debug_12233
rasdani/github-patches
git_diff
googleapis__python-bigquery-833
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Expand pyarrow to support 5.x releases Changelog: https://raw.githubusercontent.com/apache/arrow/4591d76fce2846a29dac33bf01e9ba0337b118e9/CHANGELOG.md --- END ISSUE --- Below are some code segments, each fr...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -54,10 +54,10 @@ # grpc.Channel.close() method isn't added until 1.32.0. # https://github.com/grpc/grpc/pull/15254 "grpcio >= 1.38.1, < 2.0dev", - "pyarrow >= 1.0.0, < 5.0dev", + "pyarrow >= 1.0.0, < 6.0dev", ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -54,10 +54,10 @@\n # grpc.Channel.close() method isn't added until 1.32.0.\n # https://github.com/grpc/grpc/pull/15254\n \"grpcio >= 1.38.1, < 2.0dev\",\n- \"pyarrow >= 1.0.0, < 5.0dev\",\n+ \"pya...
1,926
302
gh_patches_debug_6522
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-1256
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- False positive: Sub is required if a variable is used in a string in parameter descriptions *cfn-lint version: 0.26.0* *Description of issue.* Parameter descriptions fail E1029 if they contain text which ...
diff --git a/src/cfnlint/rules/functions/SubNeeded.py b/src/cfnlint/rules/functions/SubNeeded.py --- a/src/cfnlint/rules/functions/SubNeeded.py +++ b/src/cfnlint/rules/functions/SubNeeded.py @@ -98,6 +98,8 @@ # We want to search all of the paths to check if each one contains an 'Fn::Sub' for paramet...
{"golden_diff": "diff --git a/src/cfnlint/rules/functions/SubNeeded.py b/src/cfnlint/rules/functions/SubNeeded.py\n--- a/src/cfnlint/rules/functions/SubNeeded.py\n+++ b/src/cfnlint/rules/functions/SubNeeded.py\n@@ -98,6 +98,8 @@\n \n # We want to search all of the paths to check if each one contains an 'Fn::Sub...
2,040
129
gh_patches_debug_17133
rasdani/github-patches
git_diff
python-poetry__poetry-7547
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- add -e/--executable to poetry env info to get the python executable path - [x] I have searched the [issues](https://github.com/python-poetry/poetry/issues) of this repo and believe that this is not a duplicat...
diff --git a/src/poetry/console/commands/env/info.py b/src/poetry/console/commands/env/info.py --- a/src/poetry/console/commands/env/info.py +++ b/src/poetry/console/commands/env/info.py @@ -15,7 +15,12 @@ name = "env info" description = "Displays information about the current environment." - options = [...
{"golden_diff": "diff --git a/src/poetry/console/commands/env/info.py b/src/poetry/console/commands/env/info.py\n--- a/src/poetry/console/commands/env/info.py\n+++ b/src/poetry/console/commands/env/info.py\n@@ -15,7 +15,12 @@\n name = \"env info\"\n description = \"Displays information about the current environ...
1,210
245
gh_patches_debug_38758
rasdani/github-patches
git_diff
python-discord__site-1104
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Consider dropping deploy preview support for redirects app Do we need previews of the legacy redirects? If not, we may be able to remove a lot of code from the redirects app. --- END ISSUE --- Below are so...
diff --git a/pydis_site/apps/redirect/urls.py b/pydis_site/apps/redirect/urls.py --- a/pydis_site/apps/redirect/urls.py +++ b/pydis_site/apps/redirect/urls.py @@ -3,14 +3,9 @@ import yaml from django import conf -from django.http import HttpResponse from django.urls import URLPattern, path -from django_distill imp...
{"golden_diff": "diff --git a/pydis_site/apps/redirect/urls.py b/pydis_site/apps/redirect/urls.py\n--- a/pydis_site/apps/redirect/urls.py\n+++ b/pydis_site/apps/redirect/urls.py\n@@ -3,14 +3,9 @@\n \n import yaml\n from django import conf\n-from django.http import HttpResponse\n from django.urls import URLPattern, path...
1,237
773