problem_id stringlengths 18 22 | source stringclasses 1
value | task_type stringclasses 1
value | in_source_id stringlengths 13 58 | prompt stringlengths 1.1k 25.4k | golden_diff stringlengths 145 5.13k | verification_info stringlengths 582 39.1k | num_tokens int64 271 4.1k | num_tokens_diff int64 47 1.02k |
|---|---|---|---|---|---|---|---|---|
gh_patches_debug_32737 | rasdani/github-patches | git_diff | dask__dask-586 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Additional improvement for da.image.imread
I think following 2 improvements make the function better.
#### 1. Allow custom `imread` function.
Some prefer `opencv` which reads color in BGR order, otherwise `s... | diff --git a/dask/array/image.py b/dask/array/image.py
--- a/dask/array/image.py
+++ b/dask/array/image.py
@@ -13,7 +13,7 @@
return x[None, ...]
-def imread(filename):
+def imread(filename, imread=None, preprocess=None):
""" Read a stack of images into a dask array
Parameters
@@ -21,6 +21,13 @@
... | {"golden_diff": "diff --git a/dask/array/image.py b/dask/array/image.py\n--- a/dask/array/image.py\n+++ b/dask/array/image.py\n@@ -13,7 +13,7 @@\n return x[None, ...]\n \n \n-def imread(filename):\n+def imread(filename, imread=None, preprocess=None):\n \"\"\" Read a stack of images into a dask array\n \n Pa... | 843 | 497 |
gh_patches_debug_3876 | rasdani/github-patches | git_diff | xorbitsai__inference-299 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
FEAT: Disable Gradio Telemetry
Pull requests are disabled but see here:
https://github.com/arch-btw/inference/pull/1
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more... | diff --git a/examples/gradio_chatinterface.py b/examples/gradio_chatinterface.py
--- a/examples/gradio_chatinterface.py
+++ b/examples/gradio_chatinterface.py
@@ -105,6 +105,7 @@
demo = gr.ChatInterface(
fn=generate_wrapper,
+ analytics_enabled=False,
examples=[
"Show me a t... | {"golden_diff": "diff --git a/examples/gradio_chatinterface.py b/examples/gradio_chatinterface.py\n--- a/examples/gradio_chatinterface.py\n+++ b/examples/gradio_chatinterface.py\n@@ -105,6 +105,7 @@\n \n demo = gr.ChatInterface(\n fn=generate_wrapper,\n+ analytics_enabled=False,\n examples=[\... | 1,351 | 103 |
gh_patches_debug_16504 | rasdani/github-patches | git_diff | mampfes__hacs_waste_collection_schedule-1693 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[Bug]: portenf_sa_gov_au reporting incorrect dates
### I Have A Problem With:
A specific source
### What's Your Problem
The portenf_sa_gov_au sensor has been reporting incorrectly since it updated it... | diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/portenf_sa_gov_au.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/portenf_sa_gov_au.py
--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/portenf_sa_gov_au.py
+++ b... | {"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/portenf_sa_gov_au.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/portenf_sa_gov_au.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/portenf_... | 3,719 | 273 |
gh_patches_debug_4863 | rasdani/github-patches | git_diff | digitalfabrik__integreat-cms-1210 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
PDF Export URL pattern
### Describe the Bug
The web app calls `/REGION/LANG/wp-json/ig-mpdf/v1/pdf` to export a PDF which returns a 404. Our API currently uses `REGION/LANG/pdf`.
The normal mapping does n... | diff --git a/integreat_cms/api/urls.py b/integreat_cms/api/urls.py
--- a/integreat_cms/api/urls.py
+++ b/integreat_cms/api/urls.py
@@ -136,6 +136,11 @@
"<slug:language_slug>/wp-json/extensions/v3/",
include(content_api_urlpatterns),
),
+ path(
+ ... | {"golden_diff": "diff --git a/integreat_cms/api/urls.py b/integreat_cms/api/urls.py\n--- a/integreat_cms/api/urls.py\n+++ b/integreat_cms/api/urls.py\n@@ -136,6 +136,11 @@\n \"<slug:language_slug>/wp-json/extensions/v3/\",\n include(content_api_urlpatterns),\n ),\... | 1,656 | 129 |
gh_patches_debug_29434 | rasdani/github-patches | git_diff | plone__Products.CMFPlone-1515 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Resources from third party add-ons are not being included in compiled plone-legacy bundle
Seems JS resources registered in Plone 5 using old approach (`jsregistry.xml`) are not included in the final compilati... | diff --git a/Products/CMFPlone/resources/browser/combine.py b/Products/CMFPlone/resources/browser/combine.py
--- a/Products/CMFPlone/resources/browser/combine.py
+++ b/Products/CMFPlone/resources/browser/combine.py
@@ -30,6 +30,14 @@
def get_resource(context, path):
+ if path.startswith('++plone++'):
+ #... | {"golden_diff": "diff --git a/Products/CMFPlone/resources/browser/combine.py b/Products/CMFPlone/resources/browser/combine.py\n--- a/Products/CMFPlone/resources/browser/combine.py\n+++ b/Products/CMFPlone/resources/browser/combine.py\n@@ -30,6 +30,14 @@\n \n \n def get_resource(context, path):\n+ if path.startswith(... | 1,383 | 338 |
gh_patches_debug_22011 | rasdani/github-patches | git_diff | docker__docker-py-1330 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add docker network IPAM options parameter
IPAM driver missing options
supports an options field in the IPAM config
It introduced in API v1.22.
```
POST /networks/create Now supports an options field in the... | diff --git a/docker/types/networks.py b/docker/types/networks.py
--- a/docker/types/networks.py
+++ b/docker/types/networks.py
@@ -50,6 +50,8 @@
driver (str): The IPAM driver to use. Defaults to ``default``.
pool_configs (list): A list of pool configurations
(:py:class:`~docker.types.IPAMPo... | {"golden_diff": "diff --git a/docker/types/networks.py b/docker/types/networks.py\n--- a/docker/types/networks.py\n+++ b/docker/types/networks.py\n@@ -50,6 +50,8 @@\n driver (str): The IPAM driver to use. Defaults to ``default``.\n pool_configs (list): A list of pool configurations\n (:py:clas... | 1,302 | 254 |
gh_patches_debug_2452 | rasdani/github-patches | git_diff | pyinstaller__pyinstaller-2225 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
missing hidden import for skimage
When packaging an application that imports skimage.feature (and nothing else), the app would not run due to an ImportError on the "transform" module. This can be fixed by ad... | diff --git a/PyInstaller/hooks/hook-skimage.transform.py b/PyInstaller/hooks/hook-skimage.transform.py
--- a/PyInstaller/hooks/hook-skimage.transform.py
+++ b/PyInstaller/hooks/hook-skimage.transform.py
@@ -12,6 +12,7 @@
# 64-bit
hiddenimports = ['skimage.draw.draw',
'skimage._shared.geometry',
+ ... | {"golden_diff": "diff --git a/PyInstaller/hooks/hook-skimage.transform.py b/PyInstaller/hooks/hook-skimage.transform.py\n--- a/PyInstaller/hooks/hook-skimage.transform.py\n+++ b/PyInstaller/hooks/hook-skimage.transform.py\n@@ -12,6 +12,7 @@\n # 64-bit\n hiddenimports = ['skimage.draw.draw',\n 'skimage.... | 588 | 116 |
gh_patches_debug_35099 | rasdani/github-patches | git_diff | sanic-org__sanic-2774 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Headers from Exceptions
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
Headers set on Exception objects not carried through on all renderers
### Co... | diff --git a/sanic/errorpages.py b/sanic/errorpages.py
--- a/sanic/errorpages.py
+++ b/sanic/errorpages.py
@@ -92,8 +92,10 @@
self.full
if self.debug and not getattr(self.exception, "quiet", False)
else self.minimal
- )
- return output()
+ )()
+ output.... | {"golden_diff": "diff --git a/sanic/errorpages.py b/sanic/errorpages.py\n--- a/sanic/errorpages.py\n+++ b/sanic/errorpages.py\n@@ -92,8 +92,10 @@\n self.full\n if self.debug and not getattr(self.exception, \"quiet\", False)\n else self.minimal\n- )\n- return output()\n+... | 3,973 | 423 |
gh_patches_debug_7034 | rasdani/github-patches | git_diff | aws__aws-cli-5019 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add support for PyYAML 5.3
Closes: https://github.com/aws/aws-cli/issues/4828
Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
*Issue #, if available:*
*Description of changes:*
By submittin... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -28,13 +28,14 @@
'docutils>=0.10,<0.16',
'rsa>=3.1.2,<=3.5.0',
's3transfer>=0.3.0,<0.4.0',
- 'PyYAML>=3.10,<5.3',
]
if sys.version_info[:2] == (3, 4):
+ install_requires.append('PyYAML>=3.10,<5.3')
install_requires.append(... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -28,13 +28,14 @@\n 'docutils>=0.10,<0.16',\n 'rsa>=3.1.2,<=3.5.0',\n 's3transfer>=0.3.0,<0.4.0',\n- 'PyYAML>=3.10,<5.3',\n ]\n \n \n if sys.version_info[:2] == (3, 4):\n+ install_requires.append('PyYAML>=3.10,<5.3')\... | 1,288 | 196 |
gh_patches_debug_18897 | rasdani/github-patches | git_diff | quantumlib__Cirq-1897 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Handedness between ISwapPowGate and FSim is different.
The ISwapPowGate and FSim gate rotate in different directions on the |01>, |10> subspace. This feels a bit odd to me.
--- END ISSUE ---
Below are som... | diff --git a/cirq/ops/fsim_gate.py b/cirq/ops/fsim_gate.py
--- a/cirq/ops/fsim_gate.py
+++ b/cirq/ops/fsim_gate.py
@@ -53,14 +53,23 @@
a = cos(theta)
b = -i·sin(theta)
c = exp(-i·phi)
+
+ Note the difference in sign conventions between FSimGate and the
+ ISWAP and CZPowGate:
+
+ ... | {"golden_diff": "diff --git a/cirq/ops/fsim_gate.py b/cirq/ops/fsim_gate.py\n--- a/cirq/ops/fsim_gate.py\n+++ b/cirq/ops/fsim_gate.py\n@@ -53,14 +53,23 @@\n a = cos(theta)\n b = -i\u00b7sin(theta)\n c = exp(-i\u00b7phi)\n+\n+ Note the difference in sign conventions between FSimGate and the\n+... | 2,120 | 319 |
gh_patches_debug_7774 | rasdani/github-patches | git_diff | aio-libs__aiohttp-4120 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Fix connection info in ClientConnectorError client exception
The message like `Cannot connect to host www.google.com:443 ssl:None` is misleading.
`ssl:None` means 'default', not 'disabled'
`Cannot connect... | diff --git a/aiohttp/client_exceptions.py b/aiohttp/client_exceptions.py
--- a/aiohttp/client_exceptions.py
+++ b/aiohttp/client_exceptions.py
@@ -136,8 +136,9 @@
return self._conn_key.ssl
def __str__(self) -> str:
- return ('Cannot connect to host {0.host}:{0.port} ssl:{0.ssl} [{1}]'
- ... | {"golden_diff": "diff --git a/aiohttp/client_exceptions.py b/aiohttp/client_exceptions.py\n--- a/aiohttp/client_exceptions.py\n+++ b/aiohttp/client_exceptions.py\n@@ -136,8 +136,9 @@\n return self._conn_key.ssl\n \n def __str__(self) -> str:\n- return ('Cannot connect to host {0.host}:{0.port} ssl:{0... | 2,790 | 173 |
gh_patches_debug_1002 | rasdani/github-patches | git_diff | optuna__optuna-5306 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Feature to determine whether `GridSampler` has exhausted the grid
### Motivation
Currently, there is no good way in which we can determine whether the grid of `GridSampler` is exhausted when resuming a stu... | diff --git a/optuna/samplers/_grid.py b/optuna/samplers/_grid.py
--- a/optuna/samplers/_grid.py
+++ b/optuna/samplers/_grid.py
@@ -277,3 +277,9 @@
return False
return True
+
+ def is_exhausted(self, study: Study) -> bool:
+ """
+ Return True if all the possible params ar... | {"golden_diff": "diff --git a/optuna/samplers/_grid.py b/optuna/samplers/_grid.py\n--- a/optuna/samplers/_grid.py\n+++ b/optuna/samplers/_grid.py\n@@ -277,3 +277,9 @@\n return False\n \n return True\n+\n+ def is_exhausted(self, study: Study) -> bool:\n+ \"\"\"\n+ Return True... | 3,822 | 123 |
gh_patches_debug_26432 | rasdani/github-patches | git_diff | stephenmcd__mezzanine-846 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
UnicodeDecodeError ('ascii' codec can't decode) when memcached enabled
I can reproduce this on Ubuntu 12 and CentOS 6.
memcached installed and enabled.
Install new virtualenv and activate
~/venv/workin... | diff --git a/mezzanine/core/middleware.py b/mezzanine/core/middleware.py
--- a/mezzanine/core/middleware.py
+++ b/mezzanine/core/middleware.py
@@ -149,7 +149,12 @@
# content. Split on the delimiter the ``nevercache`` tag
# wrapped its contents in, and render only the content
# enclosed by it,... | {"golden_diff": "diff --git a/mezzanine/core/middleware.py b/mezzanine/core/middleware.py\n--- a/mezzanine/core/middleware.py\n+++ b/mezzanine/core/middleware.py\n@@ -149,7 +149,12 @@\n # content. Split on the delimiter the ``nevercache`` tag\n # wrapped its contents in, and render only the content\n ... | 3,356 | 278 |
gh_patches_debug_14458 | rasdani/github-patches | git_diff | kovidgoyal__kitty-5211 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
MacOS: Launch OS Window via Remote Control
**Describe the bug**
Ref: https://github.com/kovidgoyal/kitty/issues/45#issuecomment-915753960
Remote control via socket doesn't work opening a new OS windo... | diff --git a/kitty/rc/launch.py b/kitty/rc/launch.py
--- a/kitty/rc/launch.py
+++ b/kitty/rc/launch.py
@@ -81,11 +81,14 @@
if val is None:
val = default_value
setattr(opts, key, val)
+ target_tab = None
tabs = self.tabs_for_match_payload(boss, window, payload_g... | {"golden_diff": "diff --git a/kitty/rc/launch.py b/kitty/rc/launch.py\n--- a/kitty/rc/launch.py\n+++ b/kitty/rc/launch.py\n@@ -81,11 +81,14 @@\n if val is None:\n val = default_value\n setattr(opts, key, val)\n+ target_tab = None\n tabs = self.tabs_for_match_payloa... | 1,990 | 236 |
gh_patches_debug_23025 | rasdani/github-patches | git_diff | cookiecutter__cookiecutter-862 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Empty hook file causes cryptic error
If you have a pre_gen_project.sh or a post_gen_project.sh file with no data in it, cookiecutter fails with an unhelpful traceback.
```
Traceback (most recent call last):
... | diff --git a/cookiecutter/hooks.py b/cookiecutter/hooks.py
--- a/cookiecutter/hooks.py
+++ b/cookiecutter/hooks.py
@@ -2,6 +2,7 @@
"""Functions for discovering and executing various cookiecutter hooks."""
+import errno
import io
import logging
import os
@@ -79,15 +80,26 @@
utils.make_executable(script_pa... | {"golden_diff": "diff --git a/cookiecutter/hooks.py b/cookiecutter/hooks.py\n--- a/cookiecutter/hooks.py\n+++ b/cookiecutter/hooks.py\n@@ -2,6 +2,7 @@\n \n \"\"\"Functions for discovering and executing various cookiecutter hooks.\"\"\"\n \n+import errno\n import io\n import logging\n import os\n@@ -79,15 +80,26 @@\n \n... | 2,021 | 328 |
gh_patches_debug_14431 | rasdani/github-patches | git_diff | tiangolo__fastapi-637 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
JSON output reordered by pydantic @validator
This isn't a big problem, but I'm wondering if it's possible to keep the JSON output key ordering unaffected by the presence of a Pydantic `@validator(...)`? I lik... | diff --git a/fastapi/utils.py b/fastapi/utils.py
--- a/fastapi/utils.py
+++ b/fastapi/utils.py
@@ -59,12 +59,11 @@
if lenient_issubclass(original_type, BaseModel):
original_type = cast(Type[BaseModel], original_type)
use_type = create_model(
- original_type.__name__,
- __con... | {"golden_diff": "diff --git a/fastapi/utils.py b/fastapi/utils.py\n--- a/fastapi/utils.py\n+++ b/fastapi/utils.py\n@@ -59,12 +59,11 @@\n if lenient_issubclass(original_type, BaseModel):\n original_type = cast(Type[BaseModel], original_type)\n use_type = create_model(\n- original_type.__na... | 2,479 | 182 |
gh_patches_debug_6280 | rasdani/github-patches | git_diff | PennyLaneAI__pennylane-2060 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Raise exception or warning when `qml.adjoint` is used on operation list instead of function.
The newer `qml.adjoint` function does not have any effect when acting on operation lists like in the following exam... | diff --git a/pennylane/transforms/adjoint.py b/pennylane/transforms/adjoint.py
--- a/pennylane/transforms/adjoint.py
+++ b/pennylane/transforms/adjoint.py
@@ -108,6 +108,12 @@
>>> print(qml.draw(circuit)())
0: --RX(0.123)--RX(-0.123)--| <Z>
"""
+ if not callable(fn):
+ raise ValueEr... | {"golden_diff": "diff --git a/pennylane/transforms/adjoint.py b/pennylane/transforms/adjoint.py\n--- a/pennylane/transforms/adjoint.py\n+++ b/pennylane/transforms/adjoint.py\n@@ -108,6 +108,12 @@\n >>> print(qml.draw(circuit)())\r\n 0: --RX(0.123)--RX(-0.123)--| <Z>\r\n \"\"\"\r\n+ if not callabl... | 1,883 | 182 |
gh_patches_debug_14172 | rasdani/github-patches | git_diff | gammapy__gammapy-3905 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
FluxEstimator._set_norm_parameter crashes
**Gammapy version**
0.19
**Bug description**
Any code passing trough the "scan" branch of `FluxPointsEstimator._nan_result()` will crash due the invocation of `_... | diff --git a/gammapy/estimators/flux.py b/gammapy/estimators/flux.py
--- a/gammapy/estimators/flux.py
+++ b/gammapy/estimators/flux.py
@@ -113,10 +113,12 @@
ref_model = models[self.source].spectral_model
scale_model = ScaleSpectralModel(ref_model)
- if "amplitude" in ref_model.parameters.name... | {"golden_diff": "diff --git a/gammapy/estimators/flux.py b/gammapy/estimators/flux.py\n--- a/gammapy/estimators/flux.py\n+++ b/gammapy/estimators/flux.py\n@@ -113,10 +113,12 @@\n ref_model = models[self.source].spectral_model\n scale_model = ScaleSpectralModel(ref_model)\n \n- if \"amplitude\" in... | 2,091 | 206 |
gh_patches_debug_21471 | rasdani/github-patches | git_diff | pymedusa__Medusa-9939 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[APP SUBMITTED]: AttributeError: 'NoneType' object has no attribute 'json'
### INFO
**Python Version**: `3.8.5 (default, Aug 2 2020, 15:09:07) [GCC 9.3.0]`
**Operating System**: `Linux-4.9.35-v7+-armv7l-wit... | diff --git a/medusa/providers/torrent/json/privatehd.py b/medusa/providers/torrent/json/privatehd.py
--- a/medusa/providers/torrent/json/privatehd.py
+++ b/medusa/providers/torrent/json/privatehd.py
@@ -91,7 +91,7 @@
if not jdata.get('data') or not len(jdata['data']):
log.d... | {"golden_diff": "diff --git a/medusa/providers/torrent/json/privatehd.py b/medusa/providers/torrent/json/privatehd.py\n--- a/medusa/providers/torrent/json/privatehd.py\n+++ b/medusa/providers/torrent/json/privatehd.py\n@@ -91,7 +91,7 @@\n if not jdata.get('data') or not len(jdata['data']):\n ... | 2,478 | 204 |
gh_patches_debug_15701 | rasdani/github-patches | git_diff | aio-libs__aiohttp-3055 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
3.3 socket read timeouts not working correctly
@asvetlov looks like the new `sock_read` timeout implementation is not working, see testcase:
```python
import multiprocessing
import asyncio
import aiohtt... | diff --git a/aiohttp/client_proto.py b/aiohttp/client_proto.py
--- a/aiohttp/client_proto.py
+++ b/aiohttp/client_proto.py
@@ -51,6 +51,7 @@
transport.close()
self.transport = None
self._payload = None
+ self._drop_timeout()
return transport
def is_conne... | {"golden_diff": "diff --git a/aiohttp/client_proto.py b/aiohttp/client_proto.py\n--- a/aiohttp/client_proto.py\n+++ b/aiohttp/client_proto.py\n@@ -51,6 +51,7 @@\n transport.close()\n self.transport = None\n self._payload = None\n+ self._drop_timeout()\n return tran... | 2,976 | 188 |
gh_patches_debug_37620 | rasdani/github-patches | git_diff | great-expectations__great_expectations-627 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
SparkDFDatasource can't use DatabricksTableGenerator
I'm trying to use `SparkDFDatasource` with a `DatabricksTableGenerator`. To me , it seems multiple problems are happening:
* `Datasource.add_generator` ... | diff --git a/great_expectations/datasource/generator/__init__.py b/great_expectations/datasource/generator/__init__.py
--- a/great_expectations/datasource/generator/__init__.py
+++ b/great_expectations/datasource/generator/__init__.py
@@ -0,0 +1 @@
+from .databricks_generator import DatabricksTableGenerator
\ No newlin... | {"golden_diff": "diff --git a/great_expectations/datasource/generator/__init__.py b/great_expectations/datasource/generator/__init__.py\n--- a/great_expectations/datasource/generator/__init__.py\n+++ b/great_expectations/datasource/generator/__init__.py\n@@ -0,0 +1 @@\n+from .databricks_generator import DatabricksTable... | 2,646 | 679 |
gh_patches_debug_35249 | rasdani/github-patches | git_diff | sktime__sktime-911 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] Prophet adapter fails to clone after setting parameters
**Describe the bug**
<!--
A clear and concise description of what the bug is.
-->
Using sklearn's `clone` on `Prophet` after either `seasona... | diff --git a/sktime/forecasting/fbprophet.py b/sktime/forecasting/fbprophet.py
--- a/sktime/forecasting/fbprophet.py
+++ b/sktime/forecasting/fbprophet.py
@@ -2,6 +2,8 @@
# -*- coding: utf-8 -*-
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
+"""Prophet forecaster by wrapping fbprophet."""
... | {"golden_diff": "diff --git a/sktime/forecasting/fbprophet.py b/sktime/forecasting/fbprophet.py\n--- a/sktime/forecasting/fbprophet.py\n+++ b/sktime/forecasting/fbprophet.py\n@@ -2,6 +2,8 @@\n # -*- coding: utf-8 -*-\n # copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n \n+\"\"\"Prophet forecaster... | 3,016 | 476 |
gh_patches_debug_19776 | rasdani/github-patches | git_diff | azavea__raster-vision-1484 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Local runner should write makefile to temporary dir
Instead, it writes it to the `root_uri` which might be an S3 URI, and `make`, which is used by the local runner cannot handle that.
Makefile error when `roo... | diff --git a/rastervision_pipeline/rastervision/pipeline/runner/local_runner.py b/rastervision_pipeline/rastervision/pipeline/runner/local_runner.py
--- a/rastervision_pipeline/rastervision/pipeline/runner/local_runner.py
+++ b/rastervision_pipeline/rastervision/pipeline/runner/local_runner.py
@@ -2,7 +2,7 @@
from os.... | {"golden_diff": "diff --git a/rastervision_pipeline/rastervision/pipeline/runner/local_runner.py b/rastervision_pipeline/rastervision/pipeline/runner/local_runner.py\n--- a/rastervision_pipeline/rastervision/pipeline/runner/local_runner.py\n+++ b/rastervision_pipeline/rastervision/pipeline/runner/local_runner.py\n@@ -2... | 1,363 | 267 |
gh_patches_debug_34217 | rasdani/github-patches | git_diff | mne-tools__mne-bids-pipeline-647 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Print heartbeat log messages
Some steps take quite a while to complete without printing log messages. This causes issues with CircleCI, which may believe the job is stuck; but it's also an issue for users, wh... | diff --git a/mne_bids_pipeline/scripts/sensor/_03_decoding_time_by_time.py b/mne_bids_pipeline/scripts/sensor/_03_decoding_time_by_time.py
--- a/mne_bids_pipeline/scripts/sensor/_03_decoding_time_by_time.py
+++ b/mne_bids_pipeline/scripts/sensor/_03_decoding_time_by_time.py
@@ -37,7 +37,8 @@
from ..._decoding import L... | {"golden_diff": "diff --git a/mne_bids_pipeline/scripts/sensor/_03_decoding_time_by_time.py b/mne_bids_pipeline/scripts/sensor/_03_decoding_time_by_time.py\n--- a/mne_bids_pipeline/scripts/sensor/_03_decoding_time_by_time.py\n+++ b/mne_bids_pipeline/scripts/sensor/_03_decoding_time_by_time.py\n@@ -37,7 +37,8 @@\n from ... | 2,841 | 514 |
gh_patches_debug_26415 | rasdani/github-patches | git_diff | bokeh__bokeh-9163 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update dataset for parallel coords plot examples
The example currently does this:
```
df = pd.read_csv("https://raw.githubusercontent.com/bcdunbar/datasets/master/parcoords_data.csv")
```
Which is not r... | diff --git a/examples/custom/parallel_plot/parallel_plot.py b/examples/custom/parallel_plot/parallel_plot.py
--- a/examples/custom/parallel_plot/parallel_plot.py
+++ b/examples/custom/parallel_plot/parallel_plot.py
@@ -1,11 +1,11 @@
import numpy as np
-import pandas as pd
from bokeh.plotting import figure
from bok... | {"golden_diff": "diff --git a/examples/custom/parallel_plot/parallel_plot.py b/examples/custom/parallel_plot/parallel_plot.py\n--- a/examples/custom/parallel_plot/parallel_plot.py\n+++ b/examples/custom/parallel_plot/parallel_plot.py\n@@ -1,11 +1,11 @@\n import numpy as np\n-import pandas as pd\n \n from bokeh.plotting... | 1,624 | 302 |
gh_patches_debug_19448 | rasdani/github-patches | git_diff | openstates__openstates-scrapers-2886 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
KS failing since at least 2019-02-24
KS has been failing since 2019-02-24
Based on automated runs it appears that KS has not run successfully in 2 days (2019-02-24).
```
06:02:22 INFO pupa: save jurisdic... | diff --git a/openstates/ks/bills.py b/openstates/ks/bills.py
--- a/openstates/ks/bills.py
+++ b/openstates/ks/bills.py
@@ -1,6 +1,7 @@
import re
import json
import datetime
+import requests
import lxml.html
from pupa.scrape import Scraper, Bill, VoteEvent
@@ -179,8 +180,16 @@
... | {"golden_diff": "diff --git a/openstates/ks/bills.py b/openstates/ks/bills.py\n--- a/openstates/ks/bills.py\n+++ b/openstates/ks/bills.py\n@@ -1,6 +1,7 @@\n import re\n import json\n import datetime\n+import requests\n \n import lxml.html\n from pupa.scrape import Scraper, Bill, VoteEvent\n@@ -179,8 +180,16 @@\n ... | 3,651 | 245 |
gh_patches_debug_5990 | rasdani/github-patches | git_diff | googleapis__python-bigquery-672 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
AttributeError in `resource_name_to_date()` samples fixture
See this samples [test run](https://source.cloud.google.com/results/invocations/e5c424d5-84a6-4505-ae44-3bc70fa94e44/targets/cloud-devrel%2Fclient-l... | diff --git a/samples/snippets/conftest.py b/samples/snippets/conftest.py
--- a/samples/snippets/conftest.py
+++ b/samples/snippets/conftest.py
@@ -33,7 +33,7 @@
def resource_name_to_date(resource_name: str):
start_date = len(RESOURCE_PREFIX) + 1
date_string = resource_name[start_date : start_date + RESOURCE_... | {"golden_diff": "diff --git a/samples/snippets/conftest.py b/samples/snippets/conftest.py\n--- a/samples/snippets/conftest.py\n+++ b/samples/snippets/conftest.py\n@@ -33,7 +33,7 @@\n def resource_name_to_date(resource_name: str):\n start_date = len(RESOURCE_PREFIX) + 1\n date_string = resource_name[start_date :... | 1,182 | 132 |
gh_patches_debug_60681 | rasdani/github-patches | git_diff | OCHA-DAP__hdx-ckan-1830 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Organization view pages result in 500 error
Only on stag. I tested several different orgs.

--... | diff --git a/ckanext-hdx_search/ckanext/hdx_search/plugin.py b/ckanext-hdx_search/ckanext/hdx_search/plugin.py
--- a/ckanext-hdx_search/ckanext/hdx_search/plugin.py
+++ b/ckanext-hdx_search/ckanext/hdx_search/plugin.py
@@ -36,7 +36,7 @@
return map
def before_search(self, search_params):
- search_... | {"golden_diff": "diff --git a/ckanext-hdx_search/ckanext/hdx_search/plugin.py b/ckanext-hdx_search/ckanext/hdx_search/plugin.py\n--- a/ckanext-hdx_search/ckanext/hdx_search/plugin.py\n+++ b/ckanext-hdx_search/ckanext/hdx_search/plugin.py\n@@ -36,7 +36,7 @@\n return map\n \n def before_search(self, search_pa... | 994 | 168 |
gh_patches_debug_11541 | rasdani/github-patches | git_diff | Kinto__kinto-555 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
500 error when json validation fails with additional properties
`<ValidationError: "Additional properties are not allowed ('blockID', 'id' were unexpected)">`
```
File "/home/mathieu/Code/Mozilla/cliquet/c... | diff --git a/kinto/views/records.py b/kinto/views/records.py
--- a/kinto/views/records.py
+++ b/kinto/views/records.py
@@ -73,7 +73,10 @@
stripped.pop(self.schema_field, None)
jsonschema.validate(stripped, schema)
except jsonschema_exceptions.ValidationError as e:
- field =... | {"golden_diff": "diff --git a/kinto/views/records.py b/kinto/views/records.py\n--- a/kinto/views/records.py\n+++ b/kinto/views/records.py\n@@ -73,7 +73,10 @@\n stripped.pop(self.schema_field, None)\n jsonschema.validate(stripped, schema)\n except jsonschema_exceptions.ValidationError as ... | 1,910 | 151 |
gh_patches_debug_5673 | rasdani/github-patches | git_diff | scikit-hep__pyhf-1546 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Different ordering of channels between model.config.channels and mode.config.channel_nbins
# Description
We've recently observed that the ordering of channels outputted from `model.config.channels` differs... | diff --git a/src/pyhf/mixins.py b/src/pyhf/mixins.py
--- a/src/pyhf/mixins.py
+++ b/src/pyhf/mixins.py
@@ -42,6 +42,9 @@
self.samples = sorted(list(set(self.samples)))
self.parameters = sorted(list(set(self.parameters)))
self.modifiers = sorted(list(set(self.modifiers)))
+ self.channel... | {"golden_diff": "diff --git a/src/pyhf/mixins.py b/src/pyhf/mixins.py\n--- a/src/pyhf/mixins.py\n+++ b/src/pyhf/mixins.py\n@@ -42,6 +42,9 @@\n self.samples = sorted(list(set(self.samples)))\n self.parameters = sorted(list(set(self.parameters)))\n self.modifiers = sorted(list(set(self.modifiers))... | 1,351 | 124 |
gh_patches_debug_12861 | rasdani/github-patches | git_diff | python-discord__bot-352 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bot changing off-topic channel names more than once per daily cycle
The bot should change the channel names of the three off-topic channels only once after hitting UTC midnight. However, we've noticed that it... | diff --git a/bot/cogs/off_topic_names.py b/bot/cogs/off_topic_names.py
--- a/bot/cogs/off_topic_names.py
+++ b/bot/cogs/off_topic_names.py
@@ -48,9 +48,11 @@
"""
while True:
+ # Since we truncate the compute timedelta to seconds, we add one second to ensure
+ # we go past midnight in the `seco... | {"golden_diff": "diff --git a/bot/cogs/off_topic_names.py b/bot/cogs/off_topic_names.py\n--- a/bot/cogs/off_topic_names.py\n+++ b/bot/cogs/off_topic_names.py\n@@ -48,9 +48,11 @@\n \"\"\"\n \n while True:\n+ # Since we truncate the compute timedelta to seconds, we add one second to ensure\n+ # we g... | 2,731 | 196 |
gh_patches_debug_43949 | rasdani/github-patches | git_diff | ephios-dev__ephios-87 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Nutzer löschen
Als Manager möchte ich einen Nutzer löschen können. Dafür soll es in der Liste der Nutzer sowie auf der Bearbeitungsseite eines Nutzers eine entsprechende Schaltfläche geben.
--- END ISSUE ---... | diff --git a/ephios/user_management/forms.py b/ephios/user_management/forms.py
--- a/ephios/user_management/forms.py
+++ b/ephios/user_management/forms.py
@@ -149,6 +149,8 @@
for target_group in Group.objects.all():
remove_perm("publish_event_for_group", group, target_group)
+ ret... | {"golden_diff": "diff --git a/ephios/user_management/forms.py b/ephios/user_management/forms.py\n--- a/ephios/user_management/forms.py\n+++ b/ephios/user_management/forms.py\n@@ -149,6 +149,8 @@\n for target_group in Group.objects.all():\n remove_perm(\"publish_event_for_group\", group, targ... | 4,093 | 886 |
gh_patches_debug_12825 | rasdani/github-patches | git_diff | fossasia__open-event-server-4403 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Verify Email endpoint doesn’t work.
**I'm submitting a ...** (check one with "x")
- [X] bug report
- [ ] feature request
- [ ] support request => Please do not submit support requests here, instead ask y... | diff --git a/app/api/auth.py b/app/api/auth.py
--- a/app/api/auth.py
+++ b/app/api/auth.py
@@ -35,6 +35,8 @@
)
else:
user.is_verified = True
+ save_to_db(user)
+ return make_response(jsonify(message="Email Verified"), 200)
@auth_routes.route('/reset-password', methods=['POST'])... | {"golden_diff": "diff --git a/app/api/auth.py b/app/api/auth.py\n--- a/app/api/auth.py\n+++ b/app/api/auth.py\n@@ -35,6 +35,8 @@\n )\n else:\n user.is_verified = True\n+ save_to_db(user)\n+ return make_response(jsonify(message=\"Email Verified\"), 200)\n \n \n @auth_routes.route('/rese... | 1,277 | 170 |
gh_patches_debug_37390 | rasdani/github-patches | git_diff | vllm-project__vllm-1239 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Installation Error
When I install vLLM, I have pull the docker as the tutorial and install from source. But there are an error encountered, how can I fix this:
`ValueError: Unsupported CUDA arch (5.2). Valid... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@
ROOT_DIR = os.path.dirname(__file__)
# Supported NVIDIA GPU architectures.
-SUPPORTED_ARCHS = ["7.0", "7.5", "8.0", "8.6", "8.9", "9.0"]
+SUPPORTED_ARCHS = {"7.0", "7.5", "8.0", "8.6", "8.9", "9.0"}
# Compiler flags.
CXX_FLAGS = ["... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -13,7 +13,7 @@\n ROOT_DIR = os.path.dirname(__file__)\n \n # Supported NVIDIA GPU architectures.\n-SUPPORTED_ARCHS = [\"7.0\", \"7.5\", \"8.0\", \"8.6\", \"8.9\", \"9.0\"]\n+SUPPORTED_ARCHS = {\"7.0\", \"7.5\", \"8.0\", \"8.6\", \"8.9... | 3,501 | 727 |
gh_patches_debug_7577 | rasdani/github-patches | git_diff | webkom__lego-24 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add shell pluss and django extensions
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `lego/settings/base.p... | diff --git a/lego/settings/base.py b/lego/settings/base.py
--- a/lego/settings/base.py
+++ b/lego/settings/base.py
@@ -6,6 +6,8 @@
TESTING = 'test' in sys.argv # Check if manage.py test has been run
+SHELL_PLUS = "ipython"
+
DEBUG = True
TEMPLATE_DEBUG = True
ALLOWED_HOSTS = []
@@ -20,6 +22,8 @@
'django.c... | {"golden_diff": "diff --git a/lego/settings/base.py b/lego/settings/base.py\n--- a/lego/settings/base.py\n+++ b/lego/settings/base.py\n@@ -6,6 +6,8 @@\n \n TESTING = 'test' in sys.argv # Check if manage.py test has been run\n \n+SHELL_PLUS = \"ipython\"\n+\n DEBUG = True\n TEMPLATE_DEBUG = True\n ALLOWED_HOSTS = []\n@... | 771 | 134 |
gh_patches_debug_19933 | rasdani/github-patches | git_diff | pyro-ppl__pyro-1760 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
pip install pyro-ppl failing in Python 3
```
$ conda create -n test3 python=3
...
$ source activate test3
$ pip install pyro-ppl
Collecting pyro-ppl
Downloading https://files.pythonhosted.org/packages... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -27,8 +27,9 @@
if not current_tag == version:
commit_sha = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'],
cwd=PROJECT_PATH).decode('ascii').strip()
-except OSError:
- pass
+... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -27,8 +27,9 @@\n if not current_tag == version:\n commit_sha = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'],\n cwd=PROJECT_PATH).decode('ascii').strip()\n-exc... | 2,051 | 211 |
gh_patches_debug_25227 | rasdani/github-patches | git_diff | Textualize__textual-584 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Lazy load Widgets
We have a `widgets` module that imports all the widgets. THis allows for easy imports like:
```python
from textual.widgets import DataTable, Button
```
The downside is that all widge... | diff --git a/src/textual/widgets/__init__.py b/src/textual/widgets/__init__.py
--- a/src/textual/widgets/__init__.py
+++ b/src/textual/widgets/__init__.py
@@ -1,21 +1,41 @@
-from ._footer import Footer
-from ._header import Header
-from ._button import Button
-from ._placeholder import Placeholder
-from ._static import... | {"golden_diff": "diff --git a/src/textual/widgets/__init__.py b/src/textual/widgets/__init__.py\n--- a/src/textual/widgets/__init__.py\n+++ b/src/textual/widgets/__init__.py\n@@ -1,21 +1,41 @@\n-from ._footer import Footer\n-from ._header import Header\n-from ._button import Button\n-from ._placeholder import Placehold... | 492 | 458 |
gh_patches_debug_22944 | rasdani/github-patches | git_diff | plone__Products.CMFPlone-3963 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
CMFPlone must not depend on plone.api
Dependency in setup.py, used in
https://github.com/plone/Products.CMFPlone/blob/5f866f56d979ca0879181823a1a802035f727079/Products/CMFPlone/controlpanel/browser/error_... | diff --git a/Products/CMFPlone/controlpanel/browser/error_log_form.py b/Products/CMFPlone/controlpanel/browser/error_log_form.py
--- a/Products/CMFPlone/controlpanel/browser/error_log_form.py
+++ b/Products/CMFPlone/controlpanel/browser/error_log_form.py
@@ -1,14 +1,14 @@
from DateTime import DateTime
from plone.base... | {"golden_diff": "diff --git a/Products/CMFPlone/controlpanel/browser/error_log_form.py b/Products/CMFPlone/controlpanel/browser/error_log_form.py\n--- a/Products/CMFPlone/controlpanel/browser/error_log_form.py\n+++ b/Products/CMFPlone/controlpanel/browser/error_log_form.py\n@@ -1,14 +1,14 @@\n from DateTime import Date... | 2,409 | 309 |
gh_patches_debug_14294 | rasdani/github-patches | git_diff | scikit-image__scikit-image-4172 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
IO: unhandled exception, in case the URL cannot be opened
## Description

## Way to reprodu... | diff --git a/skimage/io/util.py b/skimage/io/util.py
--- a/skimage/io/util.py
+++ b/skimage/io/util.py
@@ -1,5 +1,6 @@
import urllib.parse
import urllib.request
+from urllib.error import URLError, HTTPError
import os
import re
@@ -28,7 +29,15 @@
f.write(u.read())
# f must be closed b... | {"golden_diff": "diff --git a/skimage/io/util.py b/skimage/io/util.py\n--- a/skimage/io/util.py\n+++ b/skimage/io/util.py\n@@ -1,5 +1,6 @@\n import urllib.parse\n import urllib.request\n+from urllib.error import URLError, HTTPError\n \n import os\n import re\n@@ -28,7 +29,15 @@\n f.write(u.read())\n ... | 1,381 | 187 |
gh_patches_debug_12519 | rasdani/github-patches | git_diff | litestar-org__litestar-771 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Properly indented docstrings result in incorrectly rendered Markdown in openapi docs
**Describe the bug**
A properly formatted docstring is indented to match the indentation of the function or method. The ... | diff --git a/starlite/openapi/path_item.py b/starlite/openapi/path_item.py
--- a/starlite/openapi/path_item.py
+++ b/starlite/openapi/path_item.py
@@ -1,3 +1,4 @@
+from inspect import cleandoc
from typing import TYPE_CHECKING, Dict, List, Optional, Tuple, cast
from pydantic_openapi_schema.v3_1_0.operation import Op... | {"golden_diff": "diff --git a/starlite/openapi/path_item.py b/starlite/openapi/path_item.py\n--- a/starlite/openapi/path_item.py\n+++ b/starlite/openapi/path_item.py\n@@ -1,3 +1,4 @@\n+from inspect import cleandoc\n from typing import TYPE_CHECKING, Dict, List, Optional, Tuple, cast\n \n from pydantic_openapi_schema.v3... | 2,021 | 162 |
gh_patches_debug_48738 | rasdani/github-patches | git_diff | encode__uvicorn-962 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
WSGI middleware error in non-latin1 path
### Checklist
<!-- Please make sure you check all these items before submitting your bug report. -->
- [x] The bug is reproducible against the latest release and... | diff --git a/uvicorn/middleware/wsgi.py b/uvicorn/middleware/wsgi.py
--- a/uvicorn/middleware/wsgi.py
+++ b/uvicorn/middleware/wsgi.py
@@ -11,7 +11,7 @@
environ = {
"REQUEST_METHOD": scope["method"],
"SCRIPT_NAME": "",
- "PATH_INFO": scope["path"],
+ "PATH_INFO": scope["path"].encod... | {"golden_diff": "diff --git a/uvicorn/middleware/wsgi.py b/uvicorn/middleware/wsgi.py\n--- a/uvicorn/middleware/wsgi.py\n+++ b/uvicorn/middleware/wsgi.py\n@@ -11,7 +11,7 @@\n environ = {\n \"REQUEST_METHOD\": scope[\"method\"],\n \"SCRIPT_NAME\": \"\",\n- \"PATH_INFO\": scope[\"path\"],\n+ ... | 3,285 | 147 |
gh_patches_debug_40832 | rasdani/github-patches | git_diff | ultrabug__py3status-2155 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
clock.py:269: PytzUsageWarning: The zone attribute is specific to pytz's interface
**Describe the bug**
clock.py:269: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a... | diff --git a/py3status/modules/clock.py b/py3status/modules/clock.py
--- a/py3status/modules/clock.py
+++ b/py3status/modules/clock.py
@@ -6,12 +6,11 @@
Timezones are defined in the `format` using the TZ name in squiggly brackets eg
`{GMT}`, `{Portugal}`, `{Europe/Paris}`, `{America/Argentina/Buenos_Aires}`.
-ISO-3... | {"golden_diff": "diff --git a/py3status/modules/clock.py b/py3status/modules/clock.py\n--- a/py3status/modules/clock.py\n+++ b/py3status/modules/clock.py\n@@ -6,12 +6,11 @@\n Timezones are defined in the `format` using the TZ name in squiggly brackets eg\n `{GMT}`, `{Portugal}`, `{Europe/Paris}`, `{America/Argentina/Bu... | 3,909 | 774 |
gh_patches_debug_33372 | rasdani/github-patches | git_diff | rasterio__rasterio-241 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
rio merge assumes nodata
Running `rio merge` over a set of images without a nodata value results in an error:
```
(rio-test)$ rio merge warped.tif merged.tif
ERROR:rio:Failed. Exception caught
Traceback (mos... | diff --git a/rasterio/rio/merge.py b/rasterio/rio/merge.py
--- a/rasterio/rio/merge.py
+++ b/rasterio/rio/merge.py
@@ -36,31 +36,39 @@
with rasterio.open(files[0]) as first:
kwargs = first.meta
kwargs['transform'] = kwargs.pop('affine')
- dest = np.empty((fi... | {"golden_diff": "diff --git a/rasterio/rio/merge.py b/rasterio/rio/merge.py\n--- a/rasterio/rio/merge.py\n+++ b/rasterio/rio/merge.py\n@@ -36,31 +36,39 @@\n with rasterio.open(files[0]) as first:\n kwargs = first.meta\n kwargs['transform'] = kwargs.pop('affine')\n- ... | 1,392 | 491 |
gh_patches_debug_14851 | rasdani/github-patches | git_diff | python-poetry__poetry-289 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
CLI help for install is ambiguous
<!-- Checked checkbox should look like this: [x] -->
- [x] I am on the [latest](https://github.com/sdispater/poetry/releases/latest) Poetry version.
- [x] I have searched t... | diff --git a/poetry/console/commands/install.py b/poetry/console/commands/install.py
--- a/poetry/console/commands/install.py
+++ b/poetry/console/commands/install.py
@@ -13,12 +13,12 @@
{ --develop=* : Install given packages in development mode. }
"""
- help = """The <info>install</info> command rea... | {"golden_diff": "diff --git a/poetry/console/commands/install.py b/poetry/console/commands/install.py\n--- a/poetry/console/commands/install.py\n+++ b/poetry/console/commands/install.py\n@@ -13,12 +13,12 @@\n { --develop=* : Install given packages in development mode. }\n \"\"\"\n \n- help = \"\"\"The <i... | 1,267 | 214 |
gh_patches_debug_19685 | rasdani/github-patches | git_diff | quantumlib__Cirq-1345 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Make ControlledGate work with gates that only provide a decomposition
The following should work:
```
import cirq
class G(cirq.TwoQubitGate):
def _decompose_(self, qubits):
a, b = qubits... | diff --git a/cirq/ops/controlled_gate.py b/cirq/ops/controlled_gate.py
--- a/cirq/ops/controlled_gate.py
+++ b/cirq/ops/controlled_gate.py
@@ -115,7 +115,18 @@
def _circuit_diagram_info_(self,
args: protocols.CircuitDiagramInfoArgs
) -> protocols.Circ... | {"golden_diff": "diff --git a/cirq/ops/controlled_gate.py b/cirq/ops/controlled_gate.py\n--- a/cirq/ops/controlled_gate.py\n+++ b/cirq/ops/controlled_gate.py\n@@ -115,7 +115,18 @@\n def _circuit_diagram_info_(self,\n args: protocols.CircuitDiagramInfoArgs\n ... | 1,762 | 252 |
gh_patches_debug_18024 | rasdani/github-patches | git_diff | pretalx__pretalx-643 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Having only one submission type shows all submission types
## Current Behavior
If an event only uses one submission type, the submission form shows submission types for ALL events
## Expected Behavior
... | diff --git a/src/pretalx/submission/forms/submission.py b/src/pretalx/submission/forms/submission.py
--- a/src/pretalx/submission/forms/submission.py
+++ b/src/pretalx/submission/forms/submission.py
@@ -66,14 +66,12 @@
pks = set(types.values_list('pk', flat=True))
if instance and instance.pk:
... | {"golden_diff": "diff --git a/src/pretalx/submission/forms/submission.py b/src/pretalx/submission/forms/submission.py\n--- a/src/pretalx/submission/forms/submission.py\n+++ b/src/pretalx/submission/forms/submission.py\n@@ -66,14 +66,12 @@\n pks = set(types.values_list('pk', flat=True))\n if instance and... | 2,633 | 255 |
gh_patches_debug_133 | rasdani/github-patches | git_diff | holoviz__panel-752 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
panel/examples/apps/django2/ example doesn't work
The django2 example doesn't work at least for Django 2.2. The interactive plot doesn't show up and there are no clear error messages either. However, the same... | diff --git a/examples/apps/django2/sliders/bk_sliders.py b/examples/apps/django2/sliders/bk_sliders.py
--- a/examples/apps/django2/sliders/bk_sliders.py
+++ b/examples/apps/django2/sliders/bk_sliders.py
@@ -5,4 +5,4 @@
def app(doc):
sw = SineWave()
row = pn.Row(sw.param, sw.plot)
- row._get_root(doc)
+ ... | {"golden_diff": "diff --git a/examples/apps/django2/sliders/bk_sliders.py b/examples/apps/django2/sliders/bk_sliders.py\n--- a/examples/apps/django2/sliders/bk_sliders.py\n+++ b/examples/apps/django2/sliders/bk_sliders.py\n@@ -5,4 +5,4 @@\n def app(doc):\n sw = SineWave()\n row = pn.Row(sw.param, sw.plot)\n- ... | 390 | 107 |
gh_patches_debug_23962 | rasdani/github-patches | git_diff | ansible__ansible-42068 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
service_facts returns misleading state on systemd hosts
##### SUMMARY
The system module service_facts returns misleading state information on systemd hosts.
##### ISSUE TYPE
- Bug Report
##### COMPON... | diff --git a/lib/ansible/modules/system/service_facts.py b/lib/ansible/modules/system/service_facts.py
--- a/lib/ansible/modules/system/service_facts.py
+++ b/lib/ansible/modules/system/service_facts.py
@@ -178,16 +178,16 @@
systemctl_path = self.module.get_bin_path("systemctl", opt_dirs=["/usr/bin", "/usr/loc... | {"golden_diff": "diff --git a/lib/ansible/modules/system/service_facts.py b/lib/ansible/modules/system/service_facts.py\n--- a/lib/ansible/modules/system/service_facts.py\n+++ b/lib/ansible/modules/system/service_facts.py\n@@ -178,16 +178,16 @@\n systemctl_path = self.module.get_bin_path(\"systemctl\", opt_dirs... | 3,492 | 376 |
gh_patches_debug_11398 | rasdani/github-patches | git_diff | dotkom__onlineweb4-741 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Ability to format company-url

Like in this case, this ugly url should be form... | diff --git a/apps/companyprofile/models.py b/apps/companyprofile/models.py
--- a/apps/companyprofile/models.py
+++ b/apps/companyprofile/models.py
@@ -14,7 +14,7 @@
image = FileBrowseField(_(u"bilde"),
max_length=200, directory=IMAGE_FOLDER,
extensions=IMAGE_EXTENSIONS, null=False, blank=False)
... | {"golden_diff": "diff --git a/apps/companyprofile/models.py b/apps/companyprofile/models.py\n--- a/apps/companyprofile/models.py\n+++ b/apps/companyprofile/models.py\n@@ -14,7 +14,7 @@\n image = FileBrowseField(_(u\"bilde\"), \n max_length=200, directory=IMAGE_FOLDER,\n extensions=IMAGE_EXTENSIONS, ... | 699 | 173 |
gh_patches_debug_40688 | rasdani/github-patches | git_diff | localstack__localstack-4875 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
SSM - labeling more than 10 parameters does not work right
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
Adding and labeling more than 10 par... | diff --git a/localstack/services/ssm/ssm_listener.py b/localstack/services/ssm/ssm_listener.py
--- a/localstack/services/ssm/ssm_listener.py
+++ b/localstack/services/ssm/ssm_listener.py
@@ -1,7 +1,6 @@
import json
import logging
import time
-import traceback
from requests.models import Request
@@ -90,57 +89,6 ... | {"golden_diff": "diff --git a/localstack/services/ssm/ssm_listener.py b/localstack/services/ssm/ssm_listener.py\n--- a/localstack/services/ssm/ssm_listener.py\n+++ b/localstack/services/ssm/ssm_listener.py\n@@ -1,7 +1,6 @@\n import json\n import logging\n import time\n-import traceback\n \n from requests.models import ... | 2,866 | 750 |
gh_patches_debug_578 | rasdani/github-patches | git_diff | mlcommons__GaNDLF-537 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Radiology DataLoader takes up a *lot* memory during certain conditions
**Describe the bug**
During sanity checking of subjects, the queue construction seems to take up a lot of memory.
**To Reproduce**
S... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -53,6 +53,7 @@
"numpy==1.22.0",
"scipy",
"SimpleITK!=2.0.*",
+ "SimpleITK!=2.2.1", # https://github.com/mlcommons/GaNDLF/issues/536
"torchvision",
"tqdm",
"torchio==0.18.75",
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -53,6 +53,7 @@\n \"numpy==1.22.0\",\n \"scipy\",\n \"SimpleITK!=2.0.*\",\n+ \"SimpleITK!=2.2.1\", # https://github.com/mlcommons/GaNDLF/issues/536\n \"torchvision\",\n \"tqdm\",\n \"torchio==0.18.75\",\n", ... | 1,787 | 114 |
gh_patches_debug_2803 | rasdani/github-patches | git_diff | sopel-irc__sopel-1261 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Results from currency conversion should be rounded to 2 decimals
At the moment, the results of a currency conversion query is reported as a float:
< mynick> .cur 100 SEK to USD
< mybot> 100.0 SEK ... | diff --git a/sopel/modules/currency.py b/sopel/modules/currency.py
--- a/sopel/modules/currency.py
+++ b/sopel/modules/currency.py
@@ -74,7 +74,7 @@
return NOLIMIT
result = amount / of_rate * to_rate
- bot.say("{} {} ({}) = {} {} ({})".format(amount, of.upper(), of_name,
+ bot.say("{:.2f} {} ({}) ... | {"golden_diff": "diff --git a/sopel/modules/currency.py b/sopel/modules/currency.py\n--- a/sopel/modules/currency.py\n+++ b/sopel/modules/currency.py\n@@ -74,7 +74,7 @@\n return NOLIMIT\n \n result = amount / of_rate * to_rate\n- bot.say(\"{} {} ({}) = {} {} ({})\".format(amount, of.upper(), of_name,\n+ ... | 1,511 | 131 |
gh_patches_debug_1569 | rasdani/github-patches | git_diff | voicepaw__so-vits-svc-fork-1139 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
scipy ImportError on multiple platforms
### Describe the bug
When attempting to Infer, the process is cancelled with the following error message:
[10:53:57] ERROR [10:53:57] cannot import name 'kaiser'... | diff --git a/src/so_vits_svc_fork/modules/decoders/mb_istft/_pqmf.py b/src/so_vits_svc_fork/modules/decoders/mb_istft/_pqmf.py
--- a/src/so_vits_svc_fork/modules/decoders/mb_istft/_pqmf.py
+++ b/src/so_vits_svc_fork/modules/decoders/mb_istft/_pqmf.py
@@ -6,7 +6,7 @@
import numpy as np
import torch
import torch.nn.fu... | {"golden_diff": "diff --git a/src/so_vits_svc_fork/modules/decoders/mb_istft/_pqmf.py b/src/so_vits_svc_fork/modules/decoders/mb_istft/_pqmf.py\n--- a/src/so_vits_svc_fork/modules/decoders/mb_istft/_pqmf.py\n+++ b/src/so_vits_svc_fork/modules/decoders/mb_istft/_pqmf.py\n@@ -6,7 +6,7 @@\n import numpy as np\n import tor... | 2,632 | 163 |
gh_patches_debug_2768 | rasdani/github-patches | git_diff | microsoft__botbuilder-python-2117 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
valid_token_issuers incorrectly populated during SingleTenant validation
### [Github issues](https://github.com/Microsoft/botbuilder-python) should be used for bugs and feature requests. Use [Stack Overflow](... | diff --git a/libraries/botframework-connector/botframework/connector/auth/skill_validation.py b/libraries/botframework-connector/botframework/connector/auth/skill_validation.py
--- a/libraries/botframework-connector/botframework/connector/auth/skill_validation.py
+++ b/libraries/botframework-connector/botframework/conn... | {"golden_diff": "diff --git a/libraries/botframework-connector/botframework/connector/auth/skill_validation.py b/libraries/botframework-connector/botframework/connector/auth/skill_validation.py\n--- a/libraries/botframework-connector/botframework/connector/auth/skill_validation.py\n+++ b/libraries/botframework-connecto... | 2,558 | 136 |
gh_patches_debug_445 | rasdani/github-patches | git_diff | docker__docker-py-1156 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Requests v2.11.0 causes breakage
This is a known issue within requests and looks like it will be fixed in v2.11.1. Documenting for the benefit of anyone else who runs into this :).
After a recent pip upgrade... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@
SOURCE_DIR = os.path.join(ROOT_DIR)
requirements = [
- 'requests >= 2.5.2',
+ 'requests >= 2.5.2, < 2.11',
'six >= 1.4.0',
'websocket-client >= 0.32.0',
]
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -9,7 +9,7 @@\n SOURCE_DIR = os.path.join(ROOT_DIR)\n \n requirements = [\n- 'requests >= 2.5.2',\n+ 'requests >= 2.5.2, < 2.11',\n 'six >= 1.4.0',\n 'websocket-client >= 0.32.0',\n ]\n", "issue": "Requests v2.11.0 causes... | 1,101 | 99 |
gh_patches_debug_50128 | rasdani/github-patches | git_diff | optuna__optuna-50 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`pfnopt.minimize` fails under `strorage=None` (default)
```python
import pfnopt
def obj(client):
x = client.sample_uniform('x', 0.1, 0.2)
return x
def main():
pfnopt.minimize(obj, n_... | diff --git a/pfnopt/study.py b/pfnopt/study.py
--- a/pfnopt/study.py
+++ b/pfnopt/study.py
@@ -140,7 +140,7 @@
study=None, # type: Study
):
# type: (...) -> Study
-
+ storage = storage or storages.InMemoryStorage()
study = study or create_new_study(storage=storage, sampler=sampler, pruner=pruner... | {"golden_diff": "diff --git a/pfnopt/study.py b/pfnopt/study.py\n--- a/pfnopt/study.py\n+++ b/pfnopt/study.py\n@@ -140,7 +140,7 @@\n study=None, # type: Study\n ):\n # type: (...) -> Study\n-\n+ storage = storage or storages.InMemoryStorage()\n study = study or create_new_study(storage=storage, samp... | 1,916 | 126 |
gh_patches_debug_30893 | rasdani/github-patches | git_diff | microsoft__AzureTRE-1764 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Change firewall bundle to read rules from resource properties
In order for the firewall to be updated by the API / other resources as part of pipelines, it must read the 'configurable' properties (parts of th... | diff --git a/api_app/_version.py b/api_app/_version.py
--- a/api_app/_version.py
+++ b/api_app/_version.py
@@ -1 +1 @@
-__version__ = "0.2.23"
+__version__ = "0.2.24"
diff --git a/api_app/models/domain/resource_template.py b/api_app/models/domain/resource_template.py
--- a/api_app/models/domain/resource_template.py
+++... | {"golden_diff": "diff --git a/api_app/_version.py b/api_app/_version.py\n--- a/api_app/_version.py\n+++ b/api_app/_version.py\n@@ -1 +1 @@\n-__version__ = \"0.2.23\"\n+__version__ = \"0.2.24\"\ndiff --git a/api_app/models/domain/resource_template.py b/api_app/models/domain/resource_template.py\n--- a/api_app/models/dom... | 2,692 | 436 |
gh_patches_debug_8977 | rasdani/github-patches | git_diff | paperless-ngx__paperless-ngx-1670 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] 1.9.1 OCR output mode "none" is not valid
### Description
Very similar to #1643
Updating via portainer, and with the following ENV:
PAPERLESS_OCR_CLEAN=none
the startup of the web server goes... | diff --git a/src/paperless/checks.py b/src/paperless/checks.py
--- a/src/paperless/checks.py
+++ b/src/paperless/checks.py
@@ -130,7 +130,7 @@
if settings.OCR_MODE not in {"force", "skip", "redo", "skip_noarchive"}:
msgs.append(Error(f'OCR output mode "{settings.OCR_MODE}" is not valid'))
- ... | {"golden_diff": "diff --git a/src/paperless/checks.py b/src/paperless/checks.py\n--- a/src/paperless/checks.py\n+++ b/src/paperless/checks.py\n@@ -130,7 +130,7 @@\n if settings.OCR_MODE not in {\"force\", \"skip\", \"redo\", \"skip_noarchive\"}:\n msgs.append(Error(f'OCR output mode \"{settings.OCR_... | 1,866 | 157 |
gh_patches_debug_39038 | rasdani/github-patches | git_diff | alltheplaces__alltheplaces-3314 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Spider kum_and_go is broken
During the global build at 2021-08-25-14-42-15, spider **kum_and_go** failed with **0 features** and **0 errors**.
Here's [the log](https://data.alltheplaces.xyz/runs/2021-08-25-1... | diff --git a/locations/spiders/kum_and_go.py b/locations/spiders/kum_and_go.py
--- a/locations/spiders/kum_and_go.py
+++ b/locations/spiders/kum_and_go.py
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+import csv
import scrapy
import json
@@ -12,56 +13,27 @@
allowed_domains = ["kumandgo.com"]
def start_reque... | {"golden_diff": "diff --git a/locations/spiders/kum_and_go.py b/locations/spiders/kum_and_go.py\n--- a/locations/spiders/kum_and_go.py\n+++ b/locations/spiders/kum_and_go.py\n@@ -1,4 +1,5 @@\n # -*- coding: utf-8 -*-\n+import csv\n import scrapy\n import json\n \n@@ -12,56 +13,27 @@\n allowed_domains = [\"kumandgo.... | 1,148 | 827 |
gh_patches_debug_16932 | rasdani/github-patches | git_diff | Mailu__Mailu-812 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Password field(s) of type "text" instead of "password"
In 1.5 [this line](https://github.com/Mailu/Mailu/blob/master/core/admin/mailu/ui/templates/fetch/create.html#L22) creates a field of type _text_ not _pa... | diff --git a/core/admin/mailu/ui/forms.py b/core/admin/mailu/ui/forms.py
--- a/core/admin/mailu/ui/forms.py
+++ b/core/admin/mailu/ui/forms.py
@@ -165,11 +165,11 @@
protocol = fields.SelectField(_('Protocol'), choices=[
('imap', 'IMAP'), ('pop3', 'POP3')
])
- host = fields.StringField(_('Hostname ... | {"golden_diff": "diff --git a/core/admin/mailu/ui/forms.py b/core/admin/mailu/ui/forms.py\n--- a/core/admin/mailu/ui/forms.py\n+++ b/core/admin/mailu/ui/forms.py\n@@ -165,11 +165,11 @@\n protocol = fields.SelectField(_('Protocol'), choices=[\n ('imap', 'IMAP'), ('pop3', 'POP3')\n ])\n- host = fields.... | 2,493 | 234 |
gh_patches_debug_13116 | rasdani/github-patches | git_diff | nipy__nipype-2767 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Req to deal with SLURM socket errors more patiently
### Summary
At end of issue #2693 @effigies noted that the error that @dalejn was experiencing was due to the SLURM master throwing an error when it was ... | diff --git a/nipype/pipeline/plugins/slurm.py b/nipype/pipeline/plugins/slurm.py
--- a/nipype/pipeline/plugins/slurm.py
+++ b/nipype/pipeline/plugins/slurm.py
@@ -70,6 +70,14 @@
terminal_output='allatonce').run()
return res.runtime.stdout.find(str(taskid)) > -1
except RuntimeError... | {"golden_diff": "diff --git a/nipype/pipeline/plugins/slurm.py b/nipype/pipeline/plugins/slurm.py\n--- a/nipype/pipeline/plugins/slurm.py\n+++ b/nipype/pipeline/plugins/slurm.py\n@@ -70,6 +70,14 @@\n terminal_output='allatonce').run()\n return res.runtime.stdout.find(str(taskid)) > -1\n ... | 2,328 | 189 |
gh_patches_debug_27197 | rasdani/github-patches | git_diff | ansible__ansible-modules-core-3886 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
junos_facts - config parameter should have a default value
##### COMPONENT NAME
module : junos_facts
```
network/junos_facts.py
```
##### ANSIBLE VERSION
2.1.0.0
##### OS / ENVIRONMENT
Mac OS 10.11.5
####... | diff --git a/network/junos/junos_facts.py b/network/junos/junos_facts.py
--- a/network/junos/junos_facts.py
+++ b/network/junos/junos_facts.py
@@ -37,8 +37,8 @@
is then included in return facts. By default, the configuration
is returned as text. The C(config_format) can be used to return
di... | {"golden_diff": "diff --git a/network/junos/junos_facts.py b/network/junos/junos_facts.py\n--- a/network/junos/junos_facts.py\n+++ b/network/junos/junos_facts.py\n@@ -37,8 +37,8 @@\n is then included in return facts. By default, the configuration\n is returned as text. The C(config_format) can be used... | 1,619 | 295 |
gh_patches_debug_5836 | rasdani/github-patches | git_diff | sanic-org__sanic-961 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Cookie secure option not encoded properly
When `Cookies.encode` encounters `response.cookies["<cookie>"]["secure"] = False` then it outputs:
`b'Domain=xad.com; Path=/; Secure=False'`
where it should out... | diff --git a/sanic/cookies.py b/sanic/cookies.py
--- a/sanic/cookies.py
+++ b/sanic/cookies.py
@@ -98,7 +98,8 @@
def __setitem__(self, key, value):
if key not in self._keys:
raise KeyError("Unknown cookie property")
- return super().__setitem__(key, value)
+ if value is not Fals... | {"golden_diff": "diff --git a/sanic/cookies.py b/sanic/cookies.py\n--- a/sanic/cookies.py\n+++ b/sanic/cookies.py\n@@ -98,7 +98,8 @@\n def __setitem__(self, key, value):\n if key not in self._keys:\n raise KeyError(\"Unknown cookie property\")\n- return super().__setitem__(key, value)\n+ ... | 1,702 | 132 |
gh_patches_debug_20089 | rasdani/github-patches | git_diff | translate__translate-3400 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
json2po output strings in wrong order
Running `json2po` outputs a valid PO files, but the strings are in the wrong order. I’m not sure exactly _which_ order it is, but is _neither_ the original order, the rev... | diff --git a/translate/storage/jsonl10n.py b/translate/storage/jsonl10n.py
--- a/translate/storage/jsonl10n.py
+++ b/translate/storage/jsonl10n.py
@@ -64,7 +64,6 @@
- Handle ``\u`` and other escapes in Unicode
- Manage data type storage and conversion. True --> "True" --> True
-- Sort the extracted data to the orde... | {"golden_diff": "diff --git a/translate/storage/jsonl10n.py b/translate/storage/jsonl10n.py\n--- a/translate/storage/jsonl10n.py\n+++ b/translate/storage/jsonl10n.py\n@@ -64,7 +64,6 @@\n \n - Handle ``\\u`` and other escapes in Unicode\n - Manage data type storage and conversion. True --> \"True\" --> True\n-- Sort the... | 2,809 | 240 |
gh_patches_debug_39301 | rasdani/github-patches | git_diff | mathesar-foundation__mathesar-114 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Handle routing takeover at client
Currently, routing is handled by Django. When the user visits the application initially, the routing should be handled by Django, and after the application loads, the routing... | diff --git a/mathesar/urls.py b/mathesar/urls.py
--- a/mathesar/urls.py
+++ b/mathesar/urls.py
@@ -14,11 +14,7 @@
urlpatterns = [
path('', frontend.index, name="index"),
- path(
- 'tables/<int:pk>/',
- frontend.TableDetail.as_view(),
- name='frontend-table-detail',
- ),
+ path('tab... | {"golden_diff": "diff --git a/mathesar/urls.py b/mathesar/urls.py\n--- a/mathesar/urls.py\n+++ b/mathesar/urls.py\n@@ -14,11 +14,7 @@\n \n urlpatterns = [\n path('', frontend.index, name=\"index\"),\n- path(\n- 'tables/<int:pk>/',\n- frontend.TableDetail.as_view(),\n- name='frontend-table-de... | 888 | 736 |
gh_patches_debug_20660 | rasdani/github-patches | git_diff | jazzband__pip-tools-975 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
pip-compile bumps setuptools within commented-out spec
If you have a `requirements.in` which contains a package which depends on `setuptools`, for example:
```
$ cat requirements.in
protobuf # or google-... | diff --git a/piptools/writer.py b/piptools/writer.py
--- a/piptools/writer.py
+++ b/piptools/writer.py
@@ -189,17 +189,18 @@
yield MESSAGE_UNSAFE_PACKAGES
for ireq in unsafe_requirements:
- req = self._format_requirement(
- ireq,
- rev... | {"golden_diff": "diff --git a/piptools/writer.py b/piptools/writer.py\n--- a/piptools/writer.py\n+++ b/piptools/writer.py\n@@ -189,17 +189,18 @@\n yield MESSAGE_UNSAFE_PACKAGES\n \n for ireq in unsafe_requirements:\n- req = self._format_requirement(\n- ireq,... | 3,035 | 244 |
gh_patches_debug_19303 | rasdani/github-patches | git_diff | netbox-community__netbox-5286 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Plugins must define app_name in api/urls.py to be included in API root view
### Environment
* Python version: 3.6.9
* NetBox version: 2.9.7
### Steps to Reproduce
I'm actually not certain whether this i... | diff --git a/netbox/extras/plugins/views.py b/netbox/extras/plugins/views.py
--- a/netbox/extras/plugins/views.py
+++ b/netbox/extras/plugins/views.py
@@ -10,8 +10,6 @@
from rest_framework.reverse import reverse
from rest_framework.views import APIView
-from extras.plugins.utils import import_object
-
class Inst... | {"golden_diff": "diff --git a/netbox/extras/plugins/views.py b/netbox/extras/plugins/views.py\n--- a/netbox/extras/plugins/views.py\n+++ b/netbox/extras/plugins/views.py\n@@ -10,8 +10,6 @@\n from rest_framework.reverse import reverse\n from rest_framework.views import APIView\n \n-from extras.plugins.utils import impor... | 1,447 | 219 |
gh_patches_debug_65231 | rasdani/github-patches | git_diff | streamlink__streamlink-5911 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
plugins.showroom: streamlink unable to download any live streams from showroom.com
### Checklist
- [X] This is a [plugin issue](https://streamlink.github.io/plugins.html) and not [a different kind of issue... | diff --git a/src/streamlink/plugins/showroom.py b/src/streamlink/plugins/showroom.py
--- a/src/streamlink/plugins/showroom.py
+++ b/src/streamlink/plugins/showroom.py
@@ -84,7 +84,7 @@
)
res = self.session.http.get(url, acceptable_status=(200, 403, 404))
- if res.headers["Content-Type"] != "a... | {"golden_diff": "diff --git a/src/streamlink/plugins/showroom.py b/src/streamlink/plugins/showroom.py\n--- a/src/streamlink/plugins/showroom.py\n+++ b/src/streamlink/plugins/showroom.py\n@@ -84,7 +84,7 @@\n )\n \n res = self.session.http.get(url, acceptable_status=(200, 403, 404))\n- if res.heade... | 3,924 | 136 |
gh_patches_debug_8842 | rasdani/github-patches | git_diff | deepset-ai__haystack-1620 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Connection Error. Is Haystack running? JSON Issue with Docker Compose On Fresh Repo and Image Pulls
### Discussed in https://github.com/deepset-ai/haystack/discussions/1617
<div type='discussions-op-text'>... | diff --git a/ui/utils.py b/ui/utils.py
--- a/ui/utils.py
+++ b/ui/utils.py
@@ -25,7 +25,7 @@
def retrieve_doc(query, filters=None, top_k_reader=5, top_k_retriever=5):
# Query Haystack API
url = f"{API_ENDPOINT}/{DOC_REQUEST}"
- params = {"filters": filters, "ESRetriever": {"top_k": top_k_retriever}, "Read... | {"golden_diff": "diff --git a/ui/utils.py b/ui/utils.py\n--- a/ui/utils.py\n+++ b/ui/utils.py\n@@ -25,7 +25,7 @@\n def retrieve_doc(query, filters=None, top_k_reader=5, top_k_retriever=5):\n # Query Haystack API\n url = f\"{API_ENDPOINT}/{DOC_REQUEST}\"\n- params = {\"filters\": filters, \"ESRetriever\": {\"... | 1,070 | 173 |
gh_patches_debug_21955 | rasdani/github-patches | git_diff | netbox-community__netbox-15135 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Tunnel Group is not selectable as column in VPN tunnels list
### Deployment Type
Self-hosted
### NetBox Version
v3.7.2
### Python Version
3.11
### Steps to Reproduce
1. Go to VPN - Tunnels
2. Click Co... | diff --git a/netbox/vpn/tables/tunnels.py b/netbox/vpn/tables/tunnels.py
--- a/netbox/vpn/tables/tunnels.py
+++ b/netbox/vpn/tables/tunnels.py
@@ -40,6 +40,10 @@
verbose_name=_('Name'),
linkify=True
)
+ group = tables.Column(
+ verbose_name=_('Group'),
+ linkify=True
+ )
... | {"golden_diff": "diff --git a/netbox/vpn/tables/tunnels.py b/netbox/vpn/tables/tunnels.py\n--- a/netbox/vpn/tables/tunnels.py\n+++ b/netbox/vpn/tables/tunnels.py\n@@ -40,6 +40,10 @@\n verbose_name=_('Name'),\n linkify=True\n )\n+ group = tables.Column(\n+ verbose_name=_('Group'),\n+ ... | 1,372 | 340 |
gh_patches_debug_2126 | rasdani/github-patches | git_diff | Mailu__Mailu-1196 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
refining the default password scheme
In https://github.com/Mailu/Mailu/pull/647 the default scheme was switched to BCRYPT. The argumentation was:
> bcrypt is fast¹ and secure[...]
While it's actually se... | diff --git a/core/admin/mailu/configuration.py b/core/admin/mailu/configuration.py
--- a/core/admin/mailu/configuration.py
+++ b/core/admin/mailu/configuration.py
@@ -51,7 +51,7 @@
'RECAPTCHA_PUBLIC_KEY': '',
'RECAPTCHA_PRIVATE_KEY': '',
# Advanced settings
- 'PASSWORD_SCHEME': 'BLF-CRYPT',
+ 'PASS... | {"golden_diff": "diff --git a/core/admin/mailu/configuration.py b/core/admin/mailu/configuration.py\n--- a/core/admin/mailu/configuration.py\n+++ b/core/admin/mailu/configuration.py\n@@ -51,7 +51,7 @@\n 'RECAPTCHA_PUBLIC_KEY': '',\n 'RECAPTCHA_PRIVATE_KEY': '',\n # Advanced settings\n- 'PASSWORD_SCHEME':... | 2,129 | 119 |
gh_patches_debug_31423 | rasdani/github-patches | git_diff | alltheplaces__alltheplaces-8374 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Wendy's incorrect hours
ATP populates incorrect hours for Wendy's. It's populating 10:30 when [the Wendy's website](https://locations.wendys.com/united-states/oh/loveland/10601-loveland-madeira-rd) says 12:00... | diff --git a/locations/spiders/wendys.py b/locations/spiders/wendys.py
--- a/locations/spiders/wendys.py
+++ b/locations/spiders/wendys.py
@@ -1,10 +1,48 @@
+import json
+
from scrapy.spiders import SitemapSpider
+from locations.hours import OpeningHours
from locations.structured_data_spider import StructuredDataSp... | {"golden_diff": "diff --git a/locations/spiders/wendys.py b/locations/spiders/wendys.py\n--- a/locations/spiders/wendys.py\n+++ b/locations/spiders/wendys.py\n@@ -1,10 +1,48 @@\n+import json\n+\n from scrapy.spiders import SitemapSpider\n \n+from locations.hours import OpeningHours\n from locations.structured_data_spid... | 591 | 568 |
gh_patches_debug_23365 | rasdani/github-patches | git_diff | biopython__biopython-4029 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add option to silence/capture stdout/stderr from Bio.PDB.PSEA
Spun from #3980.
Running `p-sea` through `Bio.PDB.PSEA` will always print output to standard out. We should refactor the code to use `subproces... | diff --git a/Bio/PDB/PSEA.py b/Bio/PDB/PSEA.py
--- a/Bio/PDB/PSEA.py
+++ b/Bio/PDB/PSEA.py
@@ -17,11 +17,12 @@
"""
import subprocess
+import os
from Bio.PDB.Polypeptide import is_aa
-def run_psea(fname):
+def run_psea(fname, verbose=False):
"""Run PSEA and return output filename.
Note that this a... | {"golden_diff": "diff --git a/Bio/PDB/PSEA.py b/Bio/PDB/PSEA.py\n--- a/Bio/PDB/PSEA.py\n+++ b/Bio/PDB/PSEA.py\n@@ -17,11 +17,12 @@\n \"\"\"\n \n import subprocess\n+import os\n \n from Bio.PDB.Polypeptide import is_aa\n \n \n-def run_psea(fname):\n+def run_psea(fname, verbose=False):\n \"\"\"Run PSEA and return out... | 1,415 | 338 |
gh_patches_debug_11339 | rasdani/github-patches | git_diff | bridgecrewio__checkov-5679 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Terraform azurerm_windows_function_app resource - CKV_SECRET_6 false positive for active_directory_v2 setting
**Describe the issue**
When adding azure function app with identity provider active directory v2... | diff --git a/checkov/secrets/plugins/detector_utils.py b/checkov/secrets/plugins/detector_utils.py
--- a/checkov/secrets/plugins/detector_utils.py
+++ b/checkov/secrets/plugins/detector_utils.py
@@ -108,7 +108,13 @@
flags=re.IGNORECASE,
)
-ALLOW_LIST = ('secretsmanager', "secretName", "secret_name", "creation_t... | {"golden_diff": "diff --git a/checkov/secrets/plugins/detector_utils.py b/checkov/secrets/plugins/detector_utils.py\n--- a/checkov/secrets/plugins/detector_utils.py\n+++ b/checkov/secrets/plugins/detector_utils.py\n@@ -108,7 +108,13 @@\n flags=re.IGNORECASE,\n )\n \n-ALLOW_LIST = ('secretsmanager', \"secretName\", ... | 3,881 | 243 |
gh_patches_debug_2944 | rasdani/github-patches | git_diff | ivy-llc__ivy-14663 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Fix generating_index_arrays.test_numpy_diag_indices
| | |
|---|---|
|paddle|<a href="https://github.com/unifyai/ivy/actions/runs/6413197943/job/17411744582"><img src=https://img.shields.io/badge/-failur... | diff --git a/ivy/functional/frontends/numpy/indexing_routines/generating_index_arrays.py b/ivy/functional/frontends/numpy/indexing_routines/generating_index_arrays.py
--- a/ivy/functional/frontends/numpy/indexing_routines/generating_index_arrays.py
+++ b/ivy/functional/frontends/numpy/indexing_routines/generating_index... | {"golden_diff": "diff --git a/ivy/functional/frontends/numpy/indexing_routines/generating_index_arrays.py b/ivy/functional/frontends/numpy/indexing_routines/generating_index_arrays.py\n--- a/ivy/functional/frontends/numpy/indexing_routines/generating_index_arrays.py\n+++ b/ivy/functional/frontends/numpy/indexing_routin... | 962 | 197 |
gh_patches_debug_38336 | rasdani/github-patches | git_diff | tough-dev-school__education-backend-167 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Выпилить интеграцию с mailjet (она давно не используется)
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `... | diff --git a/src/app/integrations/mailjet.py b/src/app/integrations/mailjet.py
deleted file mode 100644
--- a/src/app/integrations/mailjet.py
+++ /dev/null
@@ -1,38 +0,0 @@
-import mailjet_rest as mailjet
-from django.conf import settings
-from django.utils.functional import cached_property
-
-from users.models import ... | {"golden_diff": "diff --git a/src/app/integrations/mailjet.py b/src/app/integrations/mailjet.py\ndeleted file mode 100644\n--- a/src/app/integrations/mailjet.py\n+++ /dev/null\n@@ -1,38 +0,0 @@\n-import mailjet_rest as mailjet\n-from django.conf import settings\n-from django.utils.functional import cached_property\n-\n... | 3,963 | 782 |
gh_patches_debug_5021 | rasdani/github-patches | git_diff | huggingface__transformers-10070 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
BertGenerationTokenizer provides an unexpected value for BertGenerationModel
- `transformers` version: 4.2.2
- PyTorch version (GPU?): 1.7.0+cu101
- tokenizers: @n1t0, @LysandreJik
## Information
in b... | diff --git a/src/transformers/models/bert_generation/tokenization_bert_generation.py b/src/transformers/models/bert_generation/tokenization_bert_generation.py
--- a/src/transformers/models/bert_generation/tokenization_bert_generation.py
+++ b/src/transformers/models/bert_generation/tokenization_bert_generation.py
@@ -5... | {"golden_diff": "diff --git a/src/transformers/models/bert_generation/tokenization_bert_generation.py b/src/transformers/models/bert_generation/tokenization_bert_generation.py\n--- a/src/transformers/models/bert_generation/tokenization_bert_generation.py\n+++ b/src/transformers/models/bert_generation/tokenization_bert_... | 1,956 | 148 |
gh_patches_debug_22964 | rasdani/github-patches | git_diff | Cloud-CV__EvalAI-2132 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update seed script to add challenge slug
## Current Behaviour:
Currently, when the challenge is created using the seed script, the `slug` field is not populated.
## Expected Behaviour:
When the seed scri... | diff --git a/scripts/seed.py b/scripts/seed.py
--- a/scripts/seed.py
+++ b/scripts/seed.py
@@ -1,4 +1,5 @@
# Command to run : python manage.py shell < scripts/seed.py
+import datetime
import os
import random
import string
@@ -137,6 +138,9 @@
evaluation_script = open(
os.path.join(settings.BASE_DIR, '... | {"golden_diff": "diff --git a/scripts/seed.py b/scripts/seed.py\n--- a/scripts/seed.py\n+++ b/scripts/seed.py\n@@ -1,4 +1,5 @@\n # Command to run : python manage.py shell < scripts/seed.py\n+import datetime\n import os\n import random\n import string\n@@ -137,6 +138,9 @@\n evaluation_script = open(\n os.pa... | 3,200 | 238 |
gh_patches_debug_38909 | rasdani/github-patches | git_diff | bridgecrewio__checkov-2330 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
BC_AWS_PUBLIC_1 does not take Conditions into account
**Describe the bug**
BC_AWS_PUBLIC_1 seems to only look for the principal in a ECR Resource Policy. If you want to control access to a repo based on the ... | diff --git a/checkov/cloudformation/checks/resource/aws/ECRPolicy.py b/checkov/cloudformation/checks/resource/aws/ECRPolicy.py
--- a/checkov/cloudformation/checks/resource/aws/ECRPolicy.py
+++ b/checkov/cloudformation/checks/resource/aws/ECRPolicy.py
@@ -31,9 +31,22 @@
for statement_index, statemen... | {"golden_diff": "diff --git a/checkov/cloudformation/checks/resource/aws/ECRPolicy.py b/checkov/cloudformation/checks/resource/aws/ECRPolicy.py\n--- a/checkov/cloudformation/checks/resource/aws/ECRPolicy.py\n+++ b/checkov/cloudformation/checks/resource/aws/ECRPolicy.py\n@@ -31,9 +31,22 @@\n for stat... | 1,498 | 641 |
gh_patches_debug_30456 | rasdani/github-patches | git_diff | enthought__chaco-734 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Replace mutable default argument in plot_factory create_*_plot functions
Replace the use of mutable default `data` argument to the `create_*_plot` functions in the `plot_factory` module.
https://github.com... | diff --git a/chaco/plot_factory.py b/chaco/plot_factory.py
--- a/chaco/plot_factory.py
+++ b/chaco/plot_factory.py
@@ -48,7 +48,7 @@
def create_scatter_plot(
- data=[],
+ data=None,
index_bounds=None,
value_bounds=None,
orientation="h",
@@ -69,6 +69,8 @@
Pre-existing "index" and "value"... | {"golden_diff": "diff --git a/chaco/plot_factory.py b/chaco/plot_factory.py\n--- a/chaco/plot_factory.py\n+++ b/chaco/plot_factory.py\n@@ -48,7 +48,7 @@\n \n \n def create_scatter_plot(\n- data=[],\n+ data=None,\n index_bounds=None,\n value_bounds=None,\n orientation=\"h\",\n@@ -69,6 +69,8 @@\n \n ... | 3,656 | 364 |
gh_patches_debug_12228 | rasdani/github-patches | git_diff | google__osv.dev-487 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Make ecosystem counts in UI more accurate.
Currently these counts include withdrawn/invalid entries.
Context: https://github.com/google/osv/issues/468#issuecomment-1169755263
--- END ISSUE ---
Below are... | diff --git a/gcp/appengine/frontend_handlers.py b/gcp/appengine/frontend_handlers.py
--- a/gcp/appengine/frontend_handlers.py
+++ b/gcp/appengine/frontend_handlers.py
@@ -217,12 +217,15 @@
counts = {}
ecosystems = osv_get_ecosystems()
for ecosystem in ecosystems:
- base_ecosystem = ecosystem.split(':')[0]
-... | {"golden_diff": "diff --git a/gcp/appengine/frontend_handlers.py b/gcp/appengine/frontend_handlers.py\n--- a/gcp/appengine/frontend_handlers.py\n+++ b/gcp/appengine/frontend_handlers.py\n@@ -217,12 +217,15 @@\n counts = {}\n ecosystems = osv_get_ecosystems()\n for ecosystem in ecosystems:\n- base_ecosystem = e... | 3,862 | 257 |
gh_patches_debug_66083 | rasdani/github-patches | git_diff | freedomofpress__securedrop-3917 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Posting a Reply should return a UUID
## Description
The API should not return 204, but should return 200 with an object containing the UUID of the reply. Without doing that, there is no way for a client to... | diff --git a/securedrop/journalist_app/api.py b/securedrop/journalist_app/api.py
--- a/securedrop/journalist_app/api.py
+++ b/securedrop/journalist_app/api.py
@@ -244,7 +244,8 @@
db.session.add(reply)
db.session.add(source)
db.session.commit()
- return jsonify({'message... | {"golden_diff": "diff --git a/securedrop/journalist_app/api.py b/securedrop/journalist_app/api.py\n--- a/securedrop/journalist_app/api.py\n+++ b/securedrop/journalist_app/api.py\n@@ -244,7 +244,8 @@\n db.session.add(reply)\n db.session.add(source)\n db.session.commit()\n- ... | 3,598 | 150 |
gh_patches_debug_48734 | rasdani/github-patches | git_diff | microsoft__torchgeo-2100 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
PatternNet download link is broken
### Description
[PatterNet dataset](https://torchgeo.readthedocs.io/en/stable/_modules/torchgeo/datasets/patternnet.html#PatternNet) [download link ](https://drive.google... | diff --git a/torchgeo/datasets/patternnet.py b/torchgeo/datasets/patternnet.py
--- a/torchgeo/datasets/patternnet.py
+++ b/torchgeo/datasets/patternnet.py
@@ -78,7 +78,7 @@
* https://doi.org/10.1016/j.isprsjprs.2018.01.004
"""
- url = 'https://drive.google.com/file/d/127lxXYqzO6Bd0yZhvEbgIfz95HaEnr9K'
+ ... | {"golden_diff": "diff --git a/torchgeo/datasets/patternnet.py b/torchgeo/datasets/patternnet.py\n--- a/torchgeo/datasets/patternnet.py\n+++ b/torchgeo/datasets/patternnet.py\n@@ -78,7 +78,7 @@\n * https://doi.org/10.1016/j.isprsjprs.2018.01.004\n \"\"\"\n \n- url = 'https://drive.google.com/file/d/127lxXYqzO... | 2,305 | 256 |
gh_patches_debug_35698 | rasdani/github-patches | git_diff | nv-legate__cunumeric-766 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
cunumeric does not issue unimplemented warnings for functions in submodules
For example, calling unsupported functions in the `random` module silently fall back to numpy instead of issuing a warning.
--- END... | diff --git a/cunumeric/coverage.py b/cunumeric/coverage.py
--- a/cunumeric/coverage.py
+++ b/cunumeric/coverage.py
@@ -17,7 +17,13 @@
import warnings
from dataclasses import dataclass
from functools import wraps
-from types import FunctionType, MethodDescriptorType, MethodType, ModuleType
+from types import (
+ B... | {"golden_diff": "diff --git a/cunumeric/coverage.py b/cunumeric/coverage.py\n--- a/cunumeric/coverage.py\n+++ b/cunumeric/coverage.py\n@@ -17,7 +17,13 @@\n import warnings\n from dataclasses import dataclass\n from functools import wraps\n-from types import FunctionType, MethodDescriptorType, MethodType, ModuleType\n+f... | 3,639 | 557 |
gh_patches_debug_88 | rasdani/github-patches | git_diff | watchdogpolska__small_eod-479 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Tagi
Stworzenie ekranu Tagi
tabela zawiera kolumnę
* tag (pole `name` w serializatorze)
Ekran paginowy wielkość strony 20
Ekran dostępny z menu bocznego
--- END ISSUE ---
Below are some code segmen... | diff --git a/backend-project/small_eod/tags/serializers.py b/backend-project/small_eod/tags/serializers.py
--- a/backend-project/small_eod/tags/serializers.py
+++ b/backend-project/small_eod/tags/serializers.py
@@ -7,4 +7,5 @@
model = Tag
fields = [
"name",
+ "id",
]
| {"golden_diff": "diff --git a/backend-project/small_eod/tags/serializers.py b/backend-project/small_eod/tags/serializers.py\n--- a/backend-project/small_eod/tags/serializers.py\n+++ b/backend-project/small_eod/tags/serializers.py\n@@ -7,4 +7,5 @@\n model = Tag\n fields = [\n \"name\",\n+ ... | 373 | 82 |
gh_patches_debug_31692 | rasdani/github-patches | git_diff | ARM-DOE__ACT-540 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ARM Data API Returns Text when File not Available
I tried to download gucceilpblhtM1.a0 but it's not available through the webservice due to it being an a0-level file. Instead the API returned text that was... | diff --git a/act/discovery/get_armfiles.py b/act/discovery/get_armfiles.py
--- a/act/discovery/get_armfiles.py
+++ b/act/discovery/get_armfiles.py
@@ -4,6 +4,7 @@
"""
import argparse
+import contextlib
import json
import os
import sys
@@ -143,17 +144,28 @@
if time is not None:
if ti... | {"golden_diff": "diff --git a/act/discovery/get_armfiles.py b/act/discovery/get_armfiles.py\n--- a/act/discovery/get_armfiles.py\n+++ b/act/discovery/get_armfiles.py\n@@ -4,6 +4,7 @@\n \"\"\"\n \n import argparse\n+import contextlib\n import json\n import os\n import sys\n@@ -143,17 +144,28 @@\n if time is ... | 2,357 | 381 |
gh_patches_debug_59569 | rasdani/github-patches | git_diff | ytdl-org__youtube-dl-18343 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Gfycat cajax json endpoint is gone
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2018.11.23*. If it's not, read [this FAQ entry](https://github.com/r... | diff --git a/youtube_dl/extractor/gfycat.py b/youtube_dl/extractor/gfycat.py
--- a/youtube_dl/extractor/gfycat.py
+++ b/youtube_dl/extractor/gfycat.py
@@ -53,7 +53,7 @@
video_id = self._match_id(url)
gfy = self._download_json(
- 'http://gfycat.com/cajax/get/%s' % video_id,
+ 'h... | {"golden_diff": "diff --git a/youtube_dl/extractor/gfycat.py b/youtube_dl/extractor/gfycat.py\n--- a/youtube_dl/extractor/gfycat.py\n+++ b/youtube_dl/extractor/gfycat.py\n@@ -53,7 +53,7 @@\n video_id = self._match_id(url)\n \n gfy = self._download_json(\n- 'http://gfycat.com/cajax/get/%s' % v... | 3,185 | 170 |
gh_patches_debug_37653 | rasdani/github-patches | git_diff | python-telegram-bot__python-telegram-bot-2149 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] Update timerbot example
https://github.com/python-telegram-bot/python-telegram-bot/blob/3b4559dd95d14a4c9a9ca54237b5fe547386b666/examples/timerbot.py#L56-L58
If the job has already run, those lines g... | diff --git a/examples/timerbot.py b/examples/timerbot.py
--- a/examples/timerbot.py
+++ b/examples/timerbot.py
@@ -42,6 +42,16 @@
context.bot.send_message(job.context, text='Beep!')
+def remove_job_if_exists(name, context):
+ """Remove job with given name. Returns whether job was removed."""
+ current_jo... | {"golden_diff": "diff --git a/examples/timerbot.py b/examples/timerbot.py\n--- a/examples/timerbot.py\n+++ b/examples/timerbot.py\n@@ -42,6 +42,16 @@\n context.bot.send_message(job.context, text='Beep!')\n \n \n+def remove_job_if_exists(name, context):\n+ \"\"\"Remove job with given name. Returns whether job was... | 1,457 | 667 |
gh_patches_debug_29449 | rasdani/github-patches | git_diff | liqd__a4-meinberlin-4910 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Breadcrumb in modul "Priorisierung mit Karte" is saying always "list"
**URL:** https://meinberlin-dev.liqd.net/maptopicprio/2022-00910/
**user:** any
**expected behaviour:** When coming from map I don't wa... | diff --git a/meinberlin/apps/budgeting/views.py b/meinberlin/apps/budgeting/views.py
--- a/meinberlin/apps/budgeting/views.py
+++ b/meinberlin/apps/budgeting/views.py
@@ -140,21 +140,22 @@
are remembered when going back, we check if the referer is a
module or project detail view and add the appropriat... | {"golden_diff": "diff --git a/meinberlin/apps/budgeting/views.py b/meinberlin/apps/budgeting/views.py\n--- a/meinberlin/apps/budgeting/views.py\n+++ b/meinberlin/apps/budgeting/views.py\n@@ -140,21 +140,22 @@\n are remembered when going back, we check if the referer is a\n module or project detail view ... | 3,006 | 311 |
gh_patches_debug_32102 | rasdani/github-patches | git_diff | getsentry__sentry-2226 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
500 error when rename team slug
Error raised if same slug already exists
Traceback:
```
File "/home/www/pyenv/versions/sentry/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_resp... | diff --git a/src/sentry/web/frontend/team_settings.py b/src/sentry/web/frontend/team_settings.py
--- a/src/sentry/web/frontend/team_settings.py
+++ b/src/sentry/web/frontend/team_settings.py
@@ -3,6 +3,7 @@
from django import forms
from django.contrib import messages
from django.core.urlresolvers import reverse
+fro... | {"golden_diff": "diff --git a/src/sentry/web/frontend/team_settings.py b/src/sentry/web/frontend/team_settings.py\n--- a/src/sentry/web/frontend/team_settings.py\n+++ b/src/sentry/web/frontend/team_settings.py\n@@ -3,6 +3,7 @@\n from django import forms\n from django.contrib import messages\n from django.core.urlresolv... | 1,701 | 418 |
gh_patches_debug_29925 | rasdani/github-patches | git_diff | kornia__kornia-2009 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update `make test-all`
```Makefile
# TODO: Add cuda-float16 when #649 is solved
test-all: FORCE
pytest -v --device all --dtype float32,float64 --cov=kornia test/ --flake8 --mypy
```
Maybe instead of jus... | diff --git a/kornia/enhance/core.py b/kornia/enhance/core.py
--- a/kornia/enhance/core.py
+++ b/kornia/enhance/core.py
@@ -1,8 +1,12 @@
-from kornia.core import Module, Tensor
+from typing import Union
+
+from kornia.core import Module, Tensor, tensor
from kornia.testing import KORNIA_CHECK, KORNIA_CHECK_IS_TENSOR
... | {"golden_diff": "diff --git a/kornia/enhance/core.py b/kornia/enhance/core.py\n--- a/kornia/enhance/core.py\n+++ b/kornia/enhance/core.py\n@@ -1,8 +1,12 @@\n-from kornia.core import Module, Tensor\n+from typing import Union\n+\n+from kornia.core import Module, Tensor, tensor\n from kornia.testing import KORNIA_CHECK, K... | 1,410 | 441 |
gh_patches_debug_18224 | rasdani/github-patches | git_diff | internetarchive__openlibrary-6910 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Data Dumps not auto-generating
Despite #5263 being resolved, it looks like the data dumps weren't uploaded on July 1st :/
### Relevant URL?
* https://github.com/internetarchive/openlibrary/wiki/Generatin... | diff --git a/scripts/oldump.py b/scripts/oldump.py
--- a/scripts/oldump.py
+++ b/scripts/oldump.py
@@ -19,6 +19,7 @@
if __name__ == "__main__":
+ from contextlib import redirect_stdout
from infogami import config
from openlibrary.config import load_config
from openlibrary.data import dump
@@ -29,... | {"golden_diff": "diff --git a/scripts/oldump.py b/scripts/oldump.py\n--- a/scripts/oldump.py\n+++ b/scripts/oldump.py\n@@ -19,6 +19,7 @@\n \n \n if __name__ == \"__main__\":\n+ from contextlib import redirect_stdout\n from infogami import config\n from openlibrary.config import load_config\n from openlib... | 1,036 | 228 |
gh_patches_debug_23651 | rasdani/github-patches | git_diff | netbox-community__netbox-1565 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add Primary IP for a device to Search Results
<!--
Before opening a new issue, please search through the existing issues to
see if your topic has already been addressed. Note that you may need to
... | diff --git a/netbox/netbox/views.py b/netbox/netbox/views.py
--- a/netbox/netbox/views.py
+++ b/netbox/netbox/views.py
@@ -14,7 +14,7 @@
from circuits.tables import CircuitTable, ProviderTable
from dcim.filters import DeviceFilter, DeviceTypeFilter, RackFilter, SiteFilter
from dcim.models import ConsolePort, Device,... | {"golden_diff": "diff --git a/netbox/netbox/views.py b/netbox/netbox/views.py\n--- a/netbox/netbox/views.py\n+++ b/netbox/netbox/views.py\n@@ -14,7 +14,7 @@\n from circuits.tables import CircuitTable, ProviderTable\n from dcim.filters import DeviceFilter, DeviceTypeFilter, RackFilter, SiteFilter\n from dcim.models impo... | 3,170 | 261 |
gh_patches_debug_11510 | rasdani/github-patches | git_diff | googleapis__google-api-python-client-550 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
googleapiclient/channel.py has no license header
There is no license header at all in channel.py
googleapiclient/channel.py has no license header
There is no license header at all in channel.py
--- END ISS... | diff --git a/googleapiclient/channel.py b/googleapiclient/channel.py
--- a/googleapiclient/channel.py
+++ b/googleapiclient/channel.py
@@ -1,3 +1,17 @@
+# Copyright 2014 Google Inc. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in complian... | {"golden_diff": "diff --git a/googleapiclient/channel.py b/googleapiclient/channel.py\n--- a/googleapiclient/channel.py\n+++ b/googleapiclient/channel.py\n@@ -1,3 +1,17 @@\n+# Copyright 2014 Google Inc. All Rights Reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use th... | 3,302 | 201 |
gh_patches_debug_9976 | rasdani/github-patches | git_diff | mkdocs__mkdocs-2421 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
file-system race condition while testing with mkdocs serve
when mkdocs serve is shutting down, it cleans up after itself removing the temporary directory created earlier.
the condition whether the director... | diff --git a/mkdocs/commands/serve.py b/mkdocs/commands/serve.py
--- a/mkdocs/commands/serve.py
+++ b/mkdocs/commands/serve.py
@@ -2,7 +2,7 @@
import shutil
import tempfile
-from os.path import isfile, join
+from os.path import isdir, isfile, join
from mkdocs.commands.build import build
from mkdocs.config import ... | {"golden_diff": "diff --git a/mkdocs/commands/serve.py b/mkdocs/commands/serve.py\n--- a/mkdocs/commands/serve.py\n+++ b/mkdocs/commands/serve.py\n@@ -2,7 +2,7 @@\n import shutil\n import tempfile\n \n-from os.path import isfile, join\n+from os.path import isdir, isfile, join\n from mkdocs.commands.build import build\n... | 1,176 | 158 |
gh_patches_debug_27698 | rasdani/github-patches | git_diff | hpcaitech__ColossalAI-3299 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[tensor] fix some unittests
[tensor] fix some unittests
[tensor] fix some unittests
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.... | diff --git a/applications/Chat/inference/utils.py b/applications/Chat/inference/utils.py
--- a/applications/Chat/inference/utils.py
+++ b/applications/Chat/inference/utils.py
@@ -2,6 +2,7 @@
from threading import Lock
from typing import Any, Callable, Generator, List, Optional
import json
+import jieba
import tor... | {"golden_diff": "diff --git a/applications/Chat/inference/utils.py b/applications/Chat/inference/utils.py\n--- a/applications/Chat/inference/utils.py\n+++ b/applications/Chat/inference/utils.py\n@@ -2,6 +2,7 @@\n from threading import Lock\n from typing import Any, Callable, Generator, List, Optional\n import json\n+im... | 2,612 | 348 |
gh_patches_debug_12053 | rasdani/github-patches | git_diff | lnbits__lnbits-215 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
No success message and URL returned with LNURLp links
As the title says, the neither the URL, nor the message are returned to the wallet making the payment. This used to work when I was still on the [latest `... | diff --git a/lnbits/extensions/lnurlp/lnurl.py b/lnbits/extensions/lnurlp/lnurl.py
--- a/lnbits/extensions/lnurlp/lnurl.py
+++ b/lnbits/extensions/lnurlp/lnurl.py
@@ -95,13 +95,17 @@
extra={"tag": "lnurlp", "link": link.id, "comment": comment},
)
- resp = {
- "routes": [],
- "pr": payme... | {"golden_diff": "diff --git a/lnbits/extensions/lnurlp/lnurl.py b/lnbits/extensions/lnurlp/lnurl.py\n--- a/lnbits/extensions/lnurlp/lnurl.py\n+++ b/lnbits/extensions/lnurlp/lnurl.py\n@@ -95,13 +95,17 @@\n extra={\"tag\": \"lnurlp\", \"link\": link.id, \"comment\": comment},\n )\n \n- resp = {\n- \... | 1,472 | 231 |
gh_patches_debug_2997 | rasdani/github-patches | git_diff | ivy-llc__ivy-20554 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
rfftn
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `ivy/functional/frontends/scipy/fft/fft.py`
Content:
... | diff --git a/ivy/functional/frontends/scipy/fft/fft.py b/ivy/functional/frontends/scipy/fft/fft.py
--- a/ivy/functional/frontends/scipy/fft/fft.py
+++ b/ivy/functional/frontends/scipy/fft/fft.py
@@ -40,3 +40,10 @@
x, s=None, axes=None, norm=None, overwrite_x=False, workers=None, *, plan=None
):
return ivy.if... | {"golden_diff": "diff --git a/ivy/functional/frontends/scipy/fft/fft.py b/ivy/functional/frontends/scipy/fft/fft.py\n--- a/ivy/functional/frontends/scipy/fft/fft.py\n+++ b/ivy/functional/frontends/scipy/fft/fft.py\n@@ -40,3 +40,10 @@\n x, s=None, axes=None, norm=None, overwrite_x=False, workers=None, *, plan=None\n... | 741 | 185 |
gh_patches_debug_35161 | rasdani/github-patches | git_diff | streamlit__streamlit-4869 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add tooltip to st.metric(0 to provide more information on a KPI
### Problem
It would help our business users to have a bit more description available on KPIs.
### Solution
**MVP:** Could we add a t... | diff --git a/e2e/scripts/st_tooltips.py b/e2e/scripts/st_tooltips.py
--- a/e2e/scripts/st_tooltips.py
+++ b/e2e/scripts/st_tooltips.py
@@ -70,3 +70,4 @@
st.text_area("textarea", help=leading_indent_regular_text_tooltip)
st.select_slider("selectslider", options=["a", "b", "c"], help=indented_code_tooltip)
st.button("... | {"golden_diff": "diff --git a/e2e/scripts/st_tooltips.py b/e2e/scripts/st_tooltips.py\n--- a/e2e/scripts/st_tooltips.py\n+++ b/e2e/scripts/st_tooltips.py\n@@ -70,3 +70,4 @@\n st.text_area(\"textarea\", help=leading_indent_regular_text_tooltip)\n st.select_slider(\"selectslider\", options=[\"a\", \"b\", \"c\"], help=ind... | 3,560 | 469 |
gh_patches_debug_28253 | rasdani/github-patches | git_diff | goauthentik__authentik-6841 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
SCIM exhausts all workers
**Describe the bug**
We do not have a SCIM provider configured but there are 8 workers constantly doing SCIM tasks and the number of entries in Redis continues to grow indefinitel... | diff --git a/authentik/providers/scim/signals.py b/authentik/providers/scim/signals.py
--- a/authentik/providers/scim/signals.py
+++ b/authentik/providers/scim/signals.py
@@ -23,6 +23,8 @@
@receiver(post_save, sender=Group)
def post_save_scim(sender: type[Model], instance: User | Group, created: bool, **_):
"""P... | {"golden_diff": "diff --git a/authentik/providers/scim/signals.py b/authentik/providers/scim/signals.py\n--- a/authentik/providers/scim/signals.py\n+++ b/authentik/providers/scim/signals.py\n@@ -23,6 +23,8 @@\n @receiver(post_save, sender=Group)\n def post_save_scim(sender: type[Model], instance: User | Group, created:... | 4,093 | 335 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.