problem_id stringlengths 18 21 | source stringclasses 1
value | task_type stringclasses 1
value | in_source_id stringlengths 13 54 | prompt stringlengths 1.28k 64.2k | golden_diff stringlengths 166 811 | verification_info stringlengths 604 118k |
|---|---|---|---|---|---|---|
gh_patches_debug_300 | rasdani/github-patches | git_diff | vllm-project__vllm-605 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
RayWorker import error
When import `vllm` I got following error
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/code/vllm/vllm/__init__.py", line 4, in <module>
... | diff --git a/vllm/engine/ray_utils.py b/vllm/engine/ray_utils.py
--- a/vllm/engine/ray_utils.py
+++ b/vllm/engine/ray_utils.py
@@ -27,6 +27,7 @@
except ImportError:
ray = None
TorchDistributedWorker = None
+ RayWorker = None # pylint: disable=invalid-name
if TYPE_CHECKING:
from ray.util.placement... | {"golden_diff": "diff --git a/vllm/engine/ray_utils.py b/vllm/engine/ray_utils.py\n--- a/vllm/engine/ray_utils.py\n+++ b/vllm/engine/ray_utils.py\n@@ -27,6 +27,7 @@\n except ImportError:\n ray = None\n TorchDistributedWorker = None\n+ RayWorker = None # pylint: disable=invalid-name\n \n if TYPE_CHECKING:\n ... |
gh_patches_debug_301 | rasdani/github-patches | git_diff | inventree__InvenTree-1870 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] Login Error
I think this is caused by #1859 @matmair
When I try to login I get the error below.
Strangely this is happening only with PostGreSQL... (SQLite does not show this error)
:
- return {'key__iexact': key, 'user__id__iexact': kwargs['user'].id}
+ return {'key__iexa... | {"golden_diff": "diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py\n--- a/InvenTree/common/models.py\n+++ b/InvenTree/common/models.py\n@@ -890,7 +890,7 @@\n \n @classmethod\n def get_filters(cls, key, **kwargs):\n- return {'key__iexact': key, 'user__id__iexact': kwargs['user'].id}\n+ ... |
gh_patches_debug_302 | rasdani/github-patches | git_diff | Netflix__lemur-713 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Getting error while creating authority with lemur_cryptography plugin
I added a comment to the offending commit code here: https://github.com/Netflix/lemur/commit/d53f64890cb656765bc1c18f4b8442ee3a592f47
U... | diff --git a/lemur/schemas.py b/lemur/schemas.py
--- a/lemur/schemas.py
+++ b/lemur/schemas.py
@@ -35,6 +35,9 @@
interval = get_plugin_option('interval', options)
unit = get_plugin_option('unit', options)
+ if not interval and not unit:
+ return
+
if interval == 'month':
unit *= 30
| {"golden_diff": "diff --git a/lemur/schemas.py b/lemur/schemas.py\n--- a/lemur/schemas.py\n+++ b/lemur/schemas.py\n@@ -35,6 +35,9 @@\n interval = get_plugin_option('interval', options)\n unit = get_plugin_option('unit', options)\n \n+ if not interval and not unit:\n+ return\n+\n if interval == 'mo... |
gh_patches_debug_303 | rasdani/github-patches | git_diff | django-cms__django-filer-1214 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
filter.server.views `serve() missing 1 required positional argument: 'filer_file'`
A bug was introduced here when `filer_file` was made into a kwarg:
https://github.com/divio/django-filer/blame/29eea047f42... | diff --git a/filer/server/views.py b/filer/server/views.py
--- a/filer/server/views.py
+++ b/filer/server/views.py
@@ -28,7 +28,7 @@
raise PermissionDenied
else:
raise Http404('File not found')
- return server.serve(request, file_obj=file_obj, save_as=False)
+ return server.serv... | {"golden_diff": "diff --git a/filer/server/views.py b/filer/server/views.py\n--- a/filer/server/views.py\n+++ b/filer/server/views.py\n@@ -28,7 +28,7 @@\n raise PermissionDenied\n else:\n raise Http404('File not found')\n- return server.serve(request, file_obj=file_obj, save_as=False)... |
gh_patches_debug_304 | rasdani/github-patches | git_diff | liqd__a4-opin-612 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
too much space below video, not deletable in wagtail

--- END ISSUE ---
Below are some... | diff --git a/home/wagtail_hooks.py b/home/wagtail_hooks.py
--- a/home/wagtail_hooks.py
+++ b/home/wagtail_hooks.py
@@ -7,4 +7,4 @@
def editor_css():
return format_html('<link rel="stylesheet" href="'
+ settings.STATIC_URL
- + 'scss/wagtail_admin/wagtail_admin.css">')
... | {"golden_diff": "diff --git a/home/wagtail_hooks.py b/home/wagtail_hooks.py\n--- a/home/wagtail_hooks.py\n+++ b/home/wagtail_hooks.py\n@@ -7,4 +7,4 @@\n def editor_css():\n return format_html('<link rel=\"stylesheet\" href=\"'\n + settings.STATIC_URL\n- + 'scss/wagtail_a... |
gh_patches_debug_305 | rasdani/github-patches | git_diff | pypa__setuptools-689 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
AttributeError: 'module' object has no attribute 'chdir' in 25.0.1
The new `setuptools == 25.0.1` just failed on our CI with `AttributeError: 'module' object has no attribute 'chdir'`.
The new expression [`h... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -191,6 +191,6 @@
if __name__ == '__main__':
# allow setup.py to run from another directory
- here and os.path.chdir(here)
+ here and os.chdir(here)
require_metadata()
dist = setuptools.setup(**setup_params)
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -191,6 +191,6 @@\n \n if __name__ == '__main__':\n # allow setup.py to run from another directory\n- here and os.path.chdir(here)\n+ here and os.chdir(here)\n require_metadata()\n dist = setuptools.setup(**setup_para... |
gh_patches_debug_306 | rasdani/github-patches | git_diff | arviz-devs__arviz-2032 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
plot_dot
**Describe the bug**
plotdot fig size doesn't behave the way I expect, in that when I set `figsize` in an axes that triple a previous one its not triple the size. There also are some minor bugs whe... | diff --git a/arviz/plots/backends/matplotlib/dotplot.py b/arviz/plots/backends/matplotlib/dotplot.py
--- a/arviz/plots/backends/matplotlib/dotplot.py
+++ b/arviz/plots/backends/matplotlib/dotplot.py
@@ -106,7 +106,7 @@
else:
ax.tick_params(left=False, labelleft=False)
- ax.set_aspect("equal", adjusta... | {"golden_diff": "diff --git a/arviz/plots/backends/matplotlib/dotplot.py b/arviz/plots/backends/matplotlib/dotplot.py\n--- a/arviz/plots/backends/matplotlib/dotplot.py\n+++ b/arviz/plots/backends/matplotlib/dotplot.py\n@@ -106,7 +106,7 @@\n else:\n ax.tick_params(left=False, labelleft=False)\n \n- ax.set... |
gh_patches_debug_307 | rasdani/github-patches | git_diff | searx__searx-1304 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Engines cannot retrieve results: piratebay (request exception): PirateBay changed URL
When some text is entered, and I click on General and Files several times, it shows this error:
```
Error! Engines canno... | diff --git a/searx/engines/piratebay.py b/searx/engines/piratebay.py
--- a/searx/engines/piratebay.py
+++ b/searx/engines/piratebay.py
@@ -18,7 +18,7 @@
paging = True
# search-url
-url = 'https://thepiratebay.se/'
+url = 'https://thepiratebay.org/'
search_url = url + 'search/{search_term}/{pageno}/99/{search_type}... | {"golden_diff": "diff --git a/searx/engines/piratebay.py b/searx/engines/piratebay.py\n--- a/searx/engines/piratebay.py\n+++ b/searx/engines/piratebay.py\n@@ -18,7 +18,7 @@\n paging = True\n \n # search-url\n-url = 'https://thepiratebay.se/'\n+url = 'https://thepiratebay.org/'\n search_url = url + 'search/{search_term}... |
gh_patches_debug_308 | rasdani/github-patches | git_diff | psychopy__psychopy-5057 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
TextBox2 unable to find font in PsychoPy >= 2022.1.1
The following code works in PsychoPy Coder version 2021.2.3 as well as Spyder with Psychopy 2021.2.3. It fails in Psychopy Coder 2022.1.1, 2022.2.1, a... | diff --git a/psychopy/visual/textbox2/fontmanager.py b/psychopy/visual/textbox2/fontmanager.py
--- a/psychopy/visual/textbox2/fontmanager.py
+++ b/psychopy/visual/textbox2/fontmanager.py
@@ -43,6 +43,7 @@
_OSXFontDirectories = [
"/Library/Fonts/",
+ str(Path.home() / "Library" / "Fonts"),
"/Network/Libr... | {"golden_diff": "diff --git a/psychopy/visual/textbox2/fontmanager.py b/psychopy/visual/textbox2/fontmanager.py\n--- a/psychopy/visual/textbox2/fontmanager.py\n+++ b/psychopy/visual/textbox2/fontmanager.py\n@@ -43,6 +43,7 @@\n \n _OSXFontDirectories = [\n \"/Library/Fonts/\",\n+ str(Path.home() / \"Library\" / \... |
gh_patches_debug_309 | rasdani/github-patches | git_diff | biolab__orange3-text-353 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Concordance: Index Error
<!--
This is an issue template. Please fill in the relevant details in the
sections below.
-->
##### Text version
<!-- From menu _Options→Add-ons→Orange3-Text_ or code `orangec... | diff --git a/orangecontrib/text/widgets/owconcordance.py b/orangecontrib/text/widgets/owconcordance.py
--- a/orangecontrib/text/widgets/owconcordance.py
+++ b/orangecontrib/text/widgets/owconcordance.py
@@ -277,6 +277,7 @@
self.set_word()
def set_word(self):
+ self.selected_rows = []
... | {"golden_diff": "diff --git a/orangecontrib/text/widgets/owconcordance.py b/orangecontrib/text/widgets/owconcordance.py\n--- a/orangecontrib/text/widgets/owconcordance.py\n+++ b/orangecontrib/text/widgets/owconcordance.py\n@@ -277,6 +277,7 @@\n self.set_word()\n \n def set_word(self):\n+ self.sel... |
gh_patches_debug_310 | rasdani/github-patches | git_diff | ivy-llc__ivy-26075 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
dev_util
--- 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/ivy/device.py`
Content:
```
1 """C... | diff --git a/ivy/functional/ivy/device.py b/ivy/functional/ivy/device.py
--- a/ivy/functional/ivy/device.py
+++ b/ivy/functional/ivy/device.py
@@ -639,7 +639,10 @@
@handle_exceptions
-def dev_util(device: Union[ivy.Device, ivy.NativeDevice], /) -> float:
+def dev_util(
+ device: Union[ivy.Device, ivy.NativeDevi... | {"golden_diff": "diff --git a/ivy/functional/ivy/device.py b/ivy/functional/ivy/device.py\n--- a/ivy/functional/ivy/device.py\n+++ b/ivy/functional/ivy/device.py\n@@ -639,7 +639,10 @@\n \n \n @handle_exceptions\n-def dev_util(device: Union[ivy.Device, ivy.NativeDevice], /) -> float:\n+def dev_util(\n+ device: Union[... |
gh_patches_debug_311 | rasdani/github-patches | git_diff | pallets__werkzeug-1515 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ProfilerMiddleware Missing in Latest Release
### Environment
```
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.14.4
BuildVersion: 18E226
$ python --version
Python 3.7.3
$ pip freeze
Werkze... | diff --git a/src/werkzeug/middleware/profiler.py b/src/werkzeug/middleware/profiler.py
--- a/src/werkzeug/middleware/profiler.py
+++ b/src/werkzeug/middleware/profiler.py
@@ -56,7 +56,7 @@
.. code-block:: python
- from werkzeug.middleware.profile import ProfilerMiddleware
+ from werkzeug.middlewa... | {"golden_diff": "diff --git a/src/werkzeug/middleware/profiler.py b/src/werkzeug/middleware/profiler.py\n--- a/src/werkzeug/middleware/profiler.py\n+++ b/src/werkzeug/middleware/profiler.py\n@@ -56,7 +56,7 @@\n \n .. code-block:: python\n \n- from werkzeug.middleware.profile import ProfilerMiddleware\n+ ... |
gh_patches_debug_312 | rasdani/github-patches | git_diff | buildbot__buildbot-1208 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
fixed availabale typo
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `master/buildbot/changes/hgpoller.py`... | diff --git a/master/buildbot/changes/hgpoller.py b/master/buildbot/changes/hgpoller.py
--- a/master/buildbot/changes/hgpoller.py
+++ b/master/buildbot/changes/hgpoller.py
@@ -48,7 +48,7 @@
pollInterval = pollinterval
if name is None:
- name = repourl
+ name = "%s[%s]" % (re... | {"golden_diff": "diff --git a/master/buildbot/changes/hgpoller.py b/master/buildbot/changes/hgpoller.py\n--- a/master/buildbot/changes/hgpoller.py\n+++ b/master/buildbot/changes/hgpoller.py\n@@ -48,7 +48,7 @@\n pollInterval = pollinterval\n \n if name is None:\n- name = repourl\n+ ... |
gh_patches_debug_313 | rasdani/github-patches | git_diff | hpcaitech__ColossalAI-4864 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG]: colossalai 0.3.3 + torch 2.0.1 + baichuan-2 7b 训练保存 lr_scheduler 时会报 NotImplementedError 错
### 🐛 Describe the bug
用 colossalai 0.3.3 + torch 2.0.1 + baichuan-2 7b 训练保存 lr_scheduler 时 colossalai/... | diff --git a/colossalai/nn/lr_scheduler/delayed.py b/colossalai/nn/lr_scheduler/delayed.py
--- a/colossalai/nn/lr_scheduler/delayed.py
+++ b/colossalai/nn/lr_scheduler/delayed.py
@@ -1,4 +1,10 @@
-from torch.optim.lr_scheduler import _LRScheduler
+import torch
+from packaging.version import Version
+
+if Version(torch.... | {"golden_diff": "diff --git a/colossalai/nn/lr_scheduler/delayed.py b/colossalai/nn/lr_scheduler/delayed.py\n--- a/colossalai/nn/lr_scheduler/delayed.py\n+++ b/colossalai/nn/lr_scheduler/delayed.py\n@@ -1,4 +1,10 @@\n-from torch.optim.lr_scheduler import _LRScheduler\n+import torch\n+from packaging.version import Versi... |
gh_patches_debug_314 | rasdani/github-patches | git_diff | oppia__oppia-11024 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add test coverage for eslint checks
Add test coverage for eslint checks. See if we can use [nyc](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwivs4zuvM3rAhUozzgGHTpc... | diff --git a/scripts/linters/pre_commit_linter.py b/scripts/linters/pre_commit_linter.py
--- a/scripts/linters/pre_commit_linter.py
+++ b/scripts/linters/pre_commit_linter.py
@@ -572,6 +572,7 @@
errors_stacktrace = concurrent_task_utils.ALL_ERRORS
if errors_stacktrace:
+ failed = True
_print... | {"golden_diff": "diff --git a/scripts/linters/pre_commit_linter.py b/scripts/linters/pre_commit_linter.py\n--- a/scripts/linters/pre_commit_linter.py\n+++ b/scripts/linters/pre_commit_linter.py\n@@ -572,6 +572,7 @@\n \n errors_stacktrace = concurrent_task_utils.ALL_ERRORS\n if errors_stacktrace:\n+ faile... |
gh_patches_debug_315 | rasdani/github-patches | git_diff | apache__airflow-15117 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Remove 'user_id', 'role_id' from User and Role in OpenAPI schema
Would be good to remove the 'id' of both User and Role schemas from what is dumped in REST API endpoints. ID of User and Role table are sensit... | diff --git a/airflow/api_connexion/schemas/user_schema.py b/airflow/api_connexion/schemas/user_schema.py
--- a/airflow/api_connexion/schemas/user_schema.py
+++ b/airflow/api_connexion/schemas/user_schema.py
@@ -33,7 +33,6 @@
model = User
dateformat = "iso"
- user_id = auto_field('id', dump_only=T... | {"golden_diff": "diff --git a/airflow/api_connexion/schemas/user_schema.py b/airflow/api_connexion/schemas/user_schema.py\n--- a/airflow/api_connexion/schemas/user_schema.py\n+++ b/airflow/api_connexion/schemas/user_schema.py\n@@ -33,7 +33,6 @@\n model = User\n dateformat = \"iso\"\n \n- user_id = au... |
gh_patches_debug_316 | rasdani/github-patches | git_diff | ibis-project__ibis-3124 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
BUG: Binary literals' type is not inferred
Is there any reason not to infer `bytes` literals as `binary`?
```
>>> import ibis
>>> ibis.literal(b"abc")
Traceback (most recent call last):
File "<stdin>... | diff --git a/ibis/expr/datatypes.py b/ibis/expr/datatypes.py
--- a/ibis/expr/datatypes.py
+++ b/ibis/expr/datatypes.py
@@ -1232,6 +1232,11 @@
return string
+@infer.register(bytes)
+def infer_bytes(value: bytes) -> Binary:
+ return binary
+
+
@infer.register(builtins.float)
def infer_floating(value: builti... | {"golden_diff": "diff --git a/ibis/expr/datatypes.py b/ibis/expr/datatypes.py\n--- a/ibis/expr/datatypes.py\n+++ b/ibis/expr/datatypes.py\n@@ -1232,6 +1232,11 @@\n return string\n \n \n+@infer.register(bytes)\n+def infer_bytes(value: bytes) -> Binary:\n+ return binary\n+\n+\n @infer.register(builtins.float)\n de... |
gh_patches_debug_317 | rasdani/github-patches | git_diff | django-json-api__django-rest-framework-json-api-630 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
@six gone missing with DRF 3.10.x
It looks like the upcoming DRF 3.10 release drops Py2 support and the `six` module. It used to import it here: https://github.com/encode/django-rest-framework/blob/3.9.x/rest... | diff --git a/rest_framework_json_api/serializers.py b/rest_framework_json_api/serializers.py
--- a/rest_framework_json_api/serializers.py
+++ b/rest_framework_json_api/serializers.py
@@ -1,4 +1,5 @@
import inflection
+import six
from django.db.models.query import QuerySet
from django.utils.translation import ugettex... | {"golden_diff": "diff --git a/rest_framework_json_api/serializers.py b/rest_framework_json_api/serializers.py\n--- a/rest_framework_json_api/serializers.py\n+++ b/rest_framework_json_api/serializers.py\n@@ -1,4 +1,5 @@\n import inflection\n+import six\n from django.db.models.query import QuerySet\n from django.utils.tr... |
gh_patches_debug_318 | rasdani/github-patches | git_diff | electricitymaps__electricitymaps-contrib-1343 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Map Uruguay's "unknown" to "oil"
For Uruguay, everything that is reported as "thermal" is currently assigned to "unknown" category.
 for (k, v) in MAP_GENERATION.items()])
| {"golden_diff": "diff --git a/parsers/UY.py b/parsers/UY.py\n--- a/parsers/UY.py\n+++ b/parsers/UY.py\n@@ -15,7 +15,7 @@\n 'E\u00f3lica': 'wind',\n 'Fotovoltaica': 'solar',\n 'Biomasa': 'biomass',\n- 'T\u00e9rmica': 'unknown'\n+ 'T\u00e9rmica': 'oil'\n }\n INV_MAP_GENERATION = dict([(v, k) for (k, v) ... |
gh_patches_debug_319 | rasdani/github-patches | git_diff | encode__uvicorn-1089 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
typo in `--reload-dir` is passed silently (watchgod)
### Checklist
### Describe the bug
if I supply a directory to `--reload-dir` which does not exist, the server starts.
```
./bin/uvicorn --host loca... | diff --git a/uvicorn/main.py b/uvicorn/main.py
--- a/uvicorn/main.py
+++ b/uvicorn/main.py
@@ -77,6 +77,7 @@
multiple=True,
help="Set reload directories explicitly, instead of using the current working"
" directory.",
+ type=click.Path(exists=True),
)
@click.option(
"--reload-delay",
| {"golden_diff": "diff --git a/uvicorn/main.py b/uvicorn/main.py\n--- a/uvicorn/main.py\n+++ b/uvicorn/main.py\n@@ -77,6 +77,7 @@\n multiple=True,\n help=\"Set reload directories explicitly, instead of using the current working\"\n \" directory.\",\n+ type=click.Path(exists=True),\n )\n @click.option(\n ... |
gh_patches_debug_320 | rasdani/github-patches | git_diff | canonical__microk8s-2048 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Microk8s on armhf architecture
Hi all,
The armhf binary is missing and not available right now, which means that some users cannot install microk8s on Ubuntu. For example, if you use the armhf image for R... | diff --git a/scripts/wrappers/common/utils.py b/scripts/wrappers/common/utils.py
--- a/scripts/wrappers/common/utils.py
+++ b/scripts/wrappers/common/utils.py
@@ -15,7 +15,7 @@
def get_current_arch():
# architecture mapping
- arch_mapping = {"aarch64": "arm64", "x86_64": "amd64"}
+ arch_mapping = {"aarch6... | {"golden_diff": "diff --git a/scripts/wrappers/common/utils.py b/scripts/wrappers/common/utils.py\n--- a/scripts/wrappers/common/utils.py\n+++ b/scripts/wrappers/common/utils.py\n@@ -15,7 +15,7 @@\n \n def get_current_arch():\n # architecture mapping\n- arch_mapping = {\"aarch64\": \"arm64\", \"x86_64\": \"amd64... |
gh_patches_debug_321 | rasdani/github-patches | git_diff | cleanlab__cleanlab-1024 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
exact issue name should be listed for each issue type in the Datalab Issue Type Guide
Otherwise it's hard to know how to run an audit for this issue type (eg. data valuation say).
--- END ISSUE ---
Below ar... | diff --git a/docs/source/conf.py b/docs/source/conf.py
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -54,6 +54,7 @@
"sphinx_copybutton",
"sphinxcontrib.katex",
"sphinxcontrib.gtagjs",
+ "sphinx_jinja",
"sphinx_autodoc_typehints",
"sphinx.ext.doctest",
"sphinxext.opengraph",
| {"golden_diff": "diff --git a/docs/source/conf.py b/docs/source/conf.py\n--- a/docs/source/conf.py\n+++ b/docs/source/conf.py\n@@ -54,6 +54,7 @@\n \"sphinx_copybutton\",\n \"sphinxcontrib.katex\",\n \"sphinxcontrib.gtagjs\",\n+ \"sphinx_jinja\",\n \"sphinx_autodoc_typehints\",\n \"sphinx.ext.doct... |
gh_patches_debug_322 | rasdani/github-patches | git_diff | networkx__networkx-2883 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Allow line_graph to apply to multigraph
The code is written for multigraphs and graphs, but recently put an errant restriction on multigraphs.
Line 24 of line.py
See #2814
Short term fix is to call ``... | diff --git a/networkx/generators/line.py b/networkx/generators/line.py
--- a/networkx/generators/line.py
+++ b/networkx/generators/line.py
@@ -21,7 +21,6 @@
__all__ = ['line_graph', 'inverse_line_graph']
-@not_implemented_for('multigraph')
def line_graph(G, create_using=None):
"""Returns the line graph of th... | {"golden_diff": "diff --git a/networkx/generators/line.py b/networkx/generators/line.py\n--- a/networkx/generators/line.py\n+++ b/networkx/generators/line.py\n@@ -21,7 +21,6 @@\n __all__ = ['line_graph', 'inverse_line_graph']\n \n \n-@not_implemented_for('multigraph')\n def line_graph(G, create_using=None):\n \"\"\... |
gh_patches_debug_323 | rasdani/github-patches | git_diff | mitmproxy__mitmproxy-1442 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Scripts: "done" hook is not executed.
##### Steps to reproduce the problem:
1. `touch foo`
2. `mitmdump -r foo -s examples\stub.py`
##### What is the expected behavior?
```
start
configure
done
```
##### Wha... | diff --git a/mitmproxy/dump.py b/mitmproxy/dump.py
--- a/mitmproxy/dump.py
+++ b/mitmproxy/dump.py
@@ -118,5 +118,6 @@
def run(self): # pragma: no cover
if self.options.rfile and not self.options.keepserving:
+ self.addons.done()
return
super(DumpMaster, self).run()
| {"golden_diff": "diff --git a/mitmproxy/dump.py b/mitmproxy/dump.py\n--- a/mitmproxy/dump.py\n+++ b/mitmproxy/dump.py\n@@ -118,5 +118,6 @@\n \n def run(self): # pragma: no cover\n if self.options.rfile and not self.options.keepserving:\n+ self.addons.done()\n return\n super(D... |
gh_patches_debug_324 | rasdani/github-patches | git_diff | open-telemetry__opentelemetry-python-1657 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
TypeError: pop() takes no arguments (1 given) with otlp exporter 0.18b0
**Describe your environment**
opentelemetry-sdk==1.0.0rc1
opentelemetry-exporter-otlp==1.0.0rc1
opentelemetry-exporter-jaeger==1.0.0... | diff --git a/opentelemetry-distro/src/opentelemetry/distro/__init__.py b/opentelemetry-distro/src/opentelemetry/distro/__init__.py
--- a/opentelemetry-distro/src/opentelemetry/distro/__init__.py
+++ b/opentelemetry-distro/src/opentelemetry/distro/__init__.py
@@ -67,7 +67,7 @@
)
if EXPORTER_OTLP in expor... | {"golden_diff": "diff --git a/opentelemetry-distro/src/opentelemetry/distro/__init__.py b/opentelemetry-distro/src/opentelemetry/distro/__init__.py\n--- a/opentelemetry-distro/src/opentelemetry/distro/__init__.py\n+++ b/opentelemetry-distro/src/opentelemetry/distro/__init__.py\n@@ -67,7 +67,7 @@\n )\n \n if... |
gh_patches_debug_325 | rasdani/github-patches | git_diff | googleapis__google-api-python-client-1180 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Dependencies fail to resolve correctly when installing via egg
#### Environment details
- OS type and version: CentOS 7 / 8
- Python version: `Python 3.8.5` and `Python 3.8.3`
- pip version: `pip 2... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,7 @@
install_requires = [
"httplib2>=0.15.0,<1dev",
- "google-auth>=1.16.0",
+ "google-auth>=1.16.0,<2dev",
"google-auth-httplib2>=0.0.3",
"google-api-core>=1.21.0,<2dev",
"six>=1.13.0,<2dev",
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -33,7 +33,7 @@\n \n install_requires = [\n \"httplib2>=0.15.0,<1dev\",\n- \"google-auth>=1.16.0\",\n+ \"google-auth>=1.16.0,<2dev\",\n \"google-auth-httplib2>=0.0.3\",\n \"google-api-core>=1.21.0,<2dev\",\n \"six... |
gh_patches_debug_326 | rasdani/github-patches | git_diff | sql-machine-learning__elasticdl-2180 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Elasticdl client crashes with invalid args
```
$ elasticdl -v
Traceback (most recent call last):
File "/usr/local/bin/elasticdl", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3... | diff --git a/elasticdl_client/main.py b/elasticdl_client/main.py
--- a/elasticdl_client/main.py
+++ b/elasticdl_client/main.py
@@ -94,7 +94,12 @@
parser.print_help(sys.stderr)
sys.exit(1)
- args, _ = parser.parse_known_args()
+ try:
+ args, _ = parser.parse_known_args()
+ except Type... | {"golden_diff": "diff --git a/elasticdl_client/main.py b/elasticdl_client/main.py\n--- a/elasticdl_client/main.py\n+++ b/elasticdl_client/main.py\n@@ -94,7 +94,12 @@\n parser.print_help(sys.stderr)\n sys.exit(1)\n \n- args, _ = parser.parse_known_args()\n+ try:\n+ args, _ = parser.parse_kno... |
gh_patches_debug_327 | rasdani/github-patches | git_diff | helmholtz-analytics__heat-471 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update lasso example
**Description**
The lasso example references heat.ml.regression.lasso
**To Reproduce**
Steps to reproduce the behavior:
1. Which module/class/function is affected?
examples/lasso... | diff --git a/examples/lasso/demo.py b/examples/lasso/demo.py
--- a/examples/lasso/demo.py
+++ b/examples/lasso/demo.py
@@ -7,7 +7,7 @@
import heat as ht
from matplotlib import pyplot as plt
from sklearn import datasets
-import heat.ml.regression.lasso as lasso
+import heat.core.regression.lasso as lasso
import plot... | {"golden_diff": "diff --git a/examples/lasso/demo.py b/examples/lasso/demo.py\n--- a/examples/lasso/demo.py\n+++ b/examples/lasso/demo.py\n@@ -7,7 +7,7 @@\n import heat as ht\n from matplotlib import pyplot as plt\n from sklearn import datasets\n-import heat.ml.regression.lasso as lasso\n+import heat.core.regression.la... |
gh_patches_debug_328 | rasdani/github-patches | git_diff | beeware__toga-410 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Menu items broken on Cocoa backend: fails with object has no attribute '_menu_items'
I believe this is a regression from 1d41d3833eb4b8785faf8eb7850f3feec4650350 / #373. The changes `appDelegate.interface` fr... | diff --git a/src/cocoa/toga_cocoa/app.py b/src/cocoa/toga_cocoa/app.py
--- a/src/cocoa/toga_cocoa/app.py
+++ b/src/cocoa/toga_cocoa/app.py
@@ -70,7 +70,7 @@
@objc_method
def selectMenuItem_(self, sender) -> None:
- cmd = self.interface._menu_items[sender]
+ cmd = self.interface._impl._menu_ite... | {"golden_diff": "diff --git a/src/cocoa/toga_cocoa/app.py b/src/cocoa/toga_cocoa/app.py\n--- a/src/cocoa/toga_cocoa/app.py\n+++ b/src/cocoa/toga_cocoa/app.py\n@@ -70,7 +70,7 @@\n \n @objc_method\n def selectMenuItem_(self, sender) -> None:\n- cmd = self.interface._menu_items[sender]\n+ cmd = self.... |
gh_patches_debug_329 | rasdani/github-patches | git_diff | PokemonGoF__PokemonGo-Bot-5295 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
<dev> Followpath completes 100m within 17 secs
### Expected Behavior
<!-- Tell us what you expect to happen -->
To slowly walk to the waypoint using the speed from walk_max and walk_min
### Actual Behavior
... | diff --git a/pokemongo_bot/walkers/step_walker.py b/pokemongo_bot/walkers/step_walker.py
--- a/pokemongo_bot/walkers/step_walker.py
+++ b/pokemongo_bot/walkers/step_walker.py
@@ -23,7 +23,7 @@
self.dest_alt = dest_alt
self.saved_location = None
- self.last_update = 0
+ self.last_up... | {"golden_diff": "diff --git a/pokemongo_bot/walkers/step_walker.py b/pokemongo_bot/walkers/step_walker.py\n--- a/pokemongo_bot/walkers/step_walker.py\n+++ b/pokemongo_bot/walkers/step_walker.py\n@@ -23,7 +23,7 @@\n self.dest_alt = dest_alt\n \n self.saved_location = None\n- self.last_update =... |
gh_patches_debug_330 | rasdani/github-patches | git_diff | pyca__cryptography-3819 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Signer/Verifier deprecation warning has wrong stacklevel
Seeing this with Cryptography 2.0:
```
.../python3.5/site-packages/cryptography/hazmat/backends/openssl/rsa.py:477: DeprecationWarning: signer and ... | diff --git a/src/cryptography/hazmat/backends/openssl/utils.py b/src/cryptography/hazmat/backends/openssl/utils.py
--- a/src/cryptography/hazmat/backends/openssl/utils.py
+++ b/src/cryptography/hazmat/backends/openssl/utils.py
@@ -41,5 +41,5 @@
"signer and verifier have been deprecated. Please use sign "
... | {"golden_diff": "diff --git a/src/cryptography/hazmat/backends/openssl/utils.py b/src/cryptography/hazmat/backends/openssl/utils.py\n--- a/src/cryptography/hazmat/backends/openssl/utils.py\n+++ b/src/cryptography/hazmat/backends/openssl/utils.py\n@@ -41,5 +41,5 @@\n \"signer and verifier have been deprecated. P... |
gh_patches_debug_331 | rasdani/github-patches | git_diff | hedyorg__hedy-213 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Detect Python version and avoid running Hedy if the version is too low
Thanks to @tazaria for pointing this out!
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of the... | diff --git a/app.py b/app.py
--- a/app.py
+++ b/app.py
@@ -1,3 +1,8 @@
+import sys
+if (sys.version_info.major < 4 or sys.version_info.minor < 6):
+ print ('Hedy requires Python 3.6 or newer to run. However, your version of Python is', '.'.join ([str (sys.version_info.major), str (sys.version_info.minor), str (sys.v... | {"golden_diff": "diff --git a/app.py b/app.py\n--- a/app.py\n+++ b/app.py\n@@ -1,3 +1,8 @@\n+import sys\n+if (sys.version_info.major < 4 or sys.version_info.minor < 6):\n+ print ('Hedy requires Python 3.6 or newer to run. However, your version of Python is', '.'.join ([str (sys.version_info.major), str (sys.version_... |
gh_patches_debug_332 | rasdani/github-patches | git_diff | saleor__saleor-903 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Server Error (500) when adding attribute
Hi,
First of all thanks for this excellent software, makes my life easier.
I deployed it on heroku using the heroku elements (https://elements.heroku.com/buttons... | diff --git a/saleor/product/models/utils.py b/saleor/product/models/utils.py
--- a/saleor/product/models/utils.py
+++ b/saleor/product/models/utils.py
@@ -11,5 +11,5 @@
if choice_obj:
display_map[attribute.pk] = choice_obj
else:
- display_map[attribute.pk] = val... | {"golden_diff": "diff --git a/saleor/product/models/utils.py b/saleor/product/models/utils.py\n--- a/saleor/product/models/utils.py\n+++ b/saleor/product/models/utils.py\n@@ -11,5 +11,5 @@\n if choice_obj:\n display_map[attribute.pk] = choice_obj\n else:\n- display... |
gh_patches_debug_333 | rasdani/github-patches | git_diff | hedyorg__hedy-1071 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Replace parts of 'for teachers' page with this presentation
I've made a presentation to make the teacher page look better. This page can be embedded into the English for teachers page.
This presentation c... | diff --git a/app.py b/app.py
--- a/app.py
+++ b/app.py
@@ -964,7 +964,6 @@
sections.append({'title': tag, 'content': ''})
else:
sections[-1]['content'] += str(tag)
-
return sections
def render_main_menu(current_page):
| {"golden_diff": "diff --git a/app.py b/app.py\n--- a/app.py\n+++ b/app.py\n@@ -964,7 +964,6 @@\n sections.append({'title': tag, 'content': ''})\n else:\n sections[-1]['content'] += str(tag)\n-\n return sections\n \n def render_main_menu(current_page):\n", "issue": "Replace parts of '... |
gh_patches_debug_334 | rasdani/github-patches | git_diff | Lightning-AI__torchmetrics-810 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
pip install failure for Python 3.10
## 🐛 Bug
pip fails to install required dependencies
### To Reproduce
Steps to reproduce the behavior:
```shell
% python --version
Python 3.10.2
% pip free... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -101,6 +101,5 @@
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
- "Programming Language :: Python :: 3.10",
],
)
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -101,6 +101,5 @@\n \"Programming Language :: Python :: 3.7\",\n \"Programming Language :: Python :: 3.8\",\n \"Programming Language :: Python :: 3.9\",\n- \"Programming Language :: Python :: 3.10\",\n ... |
gh_patches_debug_335 | rasdani/github-patches | git_diff | nextcloud__appstore-89 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
What categories do we need?
Currently allowed categories include:
- multimedia
- pim
- tools
- games
Anything else?
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more o... | diff --git a/nextcloudappstore/core/models.py b/nextcloudappstore/core/models.py
--- a/nextcloudappstore/core/models.py
+++ b/nextcloudappstore/core/models.py
@@ -155,6 +155,7 @@
class Meta:
verbose_name = _('Category')
verbose_name_plural = _('Categories')
+ ordering = ['id']
def _... | {"golden_diff": "diff --git a/nextcloudappstore/core/models.py b/nextcloudappstore/core/models.py\n--- a/nextcloudappstore/core/models.py\n+++ b/nextcloudappstore/core/models.py\n@@ -155,6 +155,7 @@\n class Meta:\n verbose_name = _('Category')\n verbose_name_plural = _('Categories')\n+ orderi... |
gh_patches_debug_336 | rasdani/github-patches | git_diff | apluslms__a-plus-1004 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Crash in adding deviations due to unique constraint violation
Sometimes, when a teacher is adding deadline deviations, A+ crashes.
Based on the traceback below, this occurs when new deviations are supposed... | diff --git a/deviations/viewbase.py b/deviations/viewbase.py
--- a/deviations/viewbase.py
+++ b/deviations/viewbase.py
@@ -296,4 +296,4 @@
return UserProfile.objects.filter(
models.Q(id__in=form_data.get('submitter', []))
| models.Q(taggings__tag__in=form_data.get('submitter_tag', []))
- )
+ ... | {"golden_diff": "diff --git a/deviations/viewbase.py b/deviations/viewbase.py\n--- a/deviations/viewbase.py\n+++ b/deviations/viewbase.py\n@@ -296,4 +296,4 @@\n return UserProfile.objects.filter(\n models.Q(id__in=form_data.get('submitter', []))\n | models.Q(taggings__tag__in=form_data.get('submitte... |
gh_patches_debug_337 | rasdani/github-patches | git_diff | feast-dev__feast-3238 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Allow `snowflake-connector-python >= 2.7.8`
I have a project that uses both `snowpark-python` and `feast`, and this restriction by `feast` on `snowflake-connector-python<=2.7.8` is preventing an upgrade to `s... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -96,7 +96,7 @@
BYTEWAX_REQUIRED = ["bytewax==0.10.0", "docker>=5.0.2", "kubernetes<=20.13.0"]
SNOWFLAKE_REQUIRED = [
- "snowflake-connector-python[pandas]>=2.7.3,<=2.7.8",
+ "snowflake-connector-python[pandas]>=2.7.3,<3",
]
SPARK_REQUIRED =... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -96,7 +96,7 @@\n BYTEWAX_REQUIRED = [\"bytewax==0.10.0\", \"docker>=5.0.2\", \"kubernetes<=20.13.0\"]\n \n SNOWFLAKE_REQUIRED = [\n- \"snowflake-connector-python[pandas]>=2.7.3,<=2.7.8\",\n+ \"snowflake-connector-python[pandas]>... |
gh_patches_debug_338 | rasdani/github-patches | git_diff | cowrie__cowrie-392 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
HoneyPotTelnetAuthProtocol instance has no attribute 'telnet_Command'
Environment: Python 2.7.12, twistd 16.0.0
Log:
> 2016-12-21 13:30:48-0800 [cowrie.telnet.transport.HoneyPotTelnetFactory] New connec... | diff --git a/cowrie/telnet/transport.py b/cowrie/telnet/transport.py
--- a/cowrie/telnet/transport.py
+++ b/cowrie/telnet/transport.py
@@ -138,6 +138,10 @@
return 'Discard'
+ def telnet_Command(self, command):
+ self.transport.protocol.dataReceived(command+'\r')
+ return "Command"
+
d... | {"golden_diff": "diff --git a/cowrie/telnet/transport.py b/cowrie/telnet/transport.py\n--- a/cowrie/telnet/transport.py\n+++ b/cowrie/telnet/transport.py\n@@ -138,6 +138,10 @@\n \n return 'Discard'\n \n+ def telnet_Command(self, command):\n+ self.transport.protocol.dataReceived(command+'\\r')\n+ ... |
gh_patches_debug_339 | rasdani/github-patches | git_diff | opendatacube__datacube-core-534 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Pin rasterio >= 1.0.2
There are some issues with rasterio that are fixed with 1.0.2 (See: https://github.com/opendatacube/datacube-core/pull/531#pullrequestreview-143845097).
Files to change:
- setup.py
... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -104,7 +104,7 @@
'pypeg2',
'python-dateutil',
'pyyaml',
- 'rasterio~=1.0',
+ 'rasterio>=1.0.2', # Multi-band re-project fixed in that version
'singledispatch',
'sqlalchemy',
'toolz',
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -104,7 +104,7 @@\n 'pypeg2',\n 'python-dateutil',\n 'pyyaml',\n- 'rasterio~=1.0',\n+ 'rasterio>=1.0.2', # Multi-band re-project fixed in that version\n 'singledispatch',\n 'sqlalc... |
gh_patches_debug_340 | rasdani/github-patches | git_diff | huggingface__trl-513 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Multi-GPU RuntimeError: Tensors must be CUDA and dense
I'm encountering a runtime error in my code from using 8 GPUs and seeking assistance to resolve it. The error message states: "RuntimeError: Tensors must... | diff --git a/trl/trainer/reward_trainer.py b/trl/trainer/reward_trainer.py
--- a/trl/trainer/reward_trainer.py
+++ b/trl/trainer/reward_trainer.py
@@ -206,5 +206,6 @@
logits = torch.stack(logits).mean(dim=2).softmax(dim=0).T
labels = torch.zeros(logits.shape[0])
+ labels = self._prepare_input... | {"golden_diff": "diff --git a/trl/trainer/reward_trainer.py b/trl/trainer/reward_trainer.py\n--- a/trl/trainer/reward_trainer.py\n+++ b/trl/trainer/reward_trainer.py\n@@ -206,5 +206,6 @@\n logits = torch.stack(logits).mean(dim=2).softmax(dim=0).T\n \n labels = torch.zeros(logits.shape[0])\n+ labe... |
gh_patches_debug_341 | rasdani/github-patches | git_diff | OpenNMT__OpenNMT-tf-36 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
File reading unicode error
When trying the quickstart example, I faced an error which is regarding file opening in
`utils\misc.py`
It got resolved once I changed
```python
line 40: with open(filename) as ... | diff --git a/opennmt/utils/misc.py b/opennmt/utils/misc.py
--- a/opennmt/utils/misc.py
+++ b/opennmt/utils/misc.py
@@ -37,7 +37,7 @@
def count_lines(filename):
"""Returns the number of lines of the file :obj:`filename`."""
- with open(filename) as f:
+ with open(filename, "rb") as f:
i = 0
for i, _ in... | {"golden_diff": "diff --git a/opennmt/utils/misc.py b/opennmt/utils/misc.py\n--- a/opennmt/utils/misc.py\n+++ b/opennmt/utils/misc.py\n@@ -37,7 +37,7 @@\n \n def count_lines(filename):\n \"\"\"Returns the number of lines of the file :obj:`filename`.\"\"\"\n- with open(filename) as f:\n+ with open(filename, \"rb\") ... |
gh_patches_debug_342 | rasdani/github-patches | git_diff | Qiskit__qiskit-4331 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
pass_manager_drawer requires filename to render
<!-- ⚠️ If you do not respect this template, your issue will be closed -->
<!-- ⚠️ Make sure to browse the opened and closed issues -->
### Information
-... | diff --git a/qiskit/visualization/pass_manager_visualization.py b/qiskit/visualization/pass_manager_visualization.py
--- a/qiskit/visualization/pass_manager_visualization.py
+++ b/qiskit/visualization/pass_manager_visualization.py
@@ -35,7 +35,7 @@
TransformationPass: 'blue'}
-def pass_manager_dra... | {"golden_diff": "diff --git a/qiskit/visualization/pass_manager_visualization.py b/qiskit/visualization/pass_manager_visualization.py\n--- a/qiskit/visualization/pass_manager_visualization.py\n+++ b/qiskit/visualization/pass_manager_visualization.py\n@@ -35,7 +35,7 @@\n TransformationPass: 'blue'}\n \n... |
gh_patches_debug_343 | rasdani/github-patches | git_diff | getpelican__pelican-2948 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
slugify is no longer hyphenating
- [x] I have read the [Filing Issues](https://docs.getpelican.com/en/latest/contribute.html#filing-issues) and subsequent “How to Get Help” sections of the documentation.
- ... | diff --git a/pelican/utils.py b/pelican/utils.py
--- a/pelican/utils.py
+++ b/pelican/utils.py
@@ -230,6 +230,9 @@
and converts spaces to hyphens.
Took from Django sources.
+
+ For a set of sensible default regex substitutions to pass to regex_subs
+ look into pelican.settings.DEFAULT_CONFIG['SLUG_REG... | {"golden_diff": "diff --git a/pelican/utils.py b/pelican/utils.py\n--- a/pelican/utils.py\n+++ b/pelican/utils.py\n@@ -230,6 +230,9 @@\n and converts spaces to hyphens.\n \n Took from Django sources.\n+\n+ For a set of sensible default regex substitutions to pass to regex_subs\n+ look into pelican.setting... |
gh_patches_debug_344 | rasdani/github-patches | git_diff | pfnet__pytorch-pfn-extras-363 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Tests package is not correctly excluded
Currently test codes are installed to site-packages.
`setuptools.find_packages(exclude=['tests'])` needs to be fixed.
--- END ISSUE ---
Below are some code segment... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -20,6 +20,6 @@
'onnx': ['onnx'],
},
python_requires='>=3.6.0',
- packages=setuptools.find_packages(exclude=['tests']),
+ packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
package_data={'pytorch_pfn_extras': ['... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -20,6 +20,6 @@\n 'onnx': ['onnx'],\n },\n python_requires='>=3.6.0',\n- packages=setuptools.find_packages(exclude=['tests']),\n+ packages=setuptools.find_packages(exclude=['tests', 'tests.*']),\n package_data... |
gh_patches_debug_345 | rasdani/github-patches | git_diff | Textualize__rich-3105 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] `font-family` ignored in `html_export` due to user agent stylesheet for `<code>`
- [X] I've checked [docs](https://rich.readthedocs.io/en/latest/introduction.html) and [closed issues](https://github.com... | diff --git a/rich/_export_format.py b/rich/_export_format.py
--- a/rich/_export_format.py
+++ b/rich/_export_format.py
@@ -12,7 +12,7 @@
</style>
</head>
<body>
- <pre style="font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace"><code>{code}</code></pre>
+ <pre style="font-family:Menlo,'DejaVu... | {"golden_diff": "diff --git a/rich/_export_format.py b/rich/_export_format.py\n--- a/rich/_export_format.py\n+++ b/rich/_export_format.py\n@@ -12,7 +12,7 @@\n </style>\n </head>\n <body>\n- <pre style=\"font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><code>{code}</code></pre>\n+ <pre style... |
gh_patches_debug_346 | rasdani/github-patches | git_diff | getsentry__sentry-540 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
celery 3.0 causes import error (cannot import abbrtools from celery.utils)
Release of celery 3.0 causes an import error at runtime upon any request.
This is the stack trace:
```
ImportError: cannot import n... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -50,6 +50,7 @@
'cssutils>=0.9.9',
'BeautifulSoup>=3.2.1',
'django-celery>=2.5.5,<3.0',
+ 'celery>=2.5.3,<3.0',
'django-crispy-forms>=1.1.4',
'Django>=1.2,<1.5',
'django-indexer>=0.3.0',
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -50,6 +50,7 @@\n 'cssutils>=0.9.9',\n 'BeautifulSoup>=3.2.1',\n 'django-celery>=2.5.5,<3.0',\n+ 'celery>=2.5.3,<3.0',\n 'django-crispy-forms>=1.1.4',\n 'Django>=1.2,<1.5',\n 'django-indexer>=0.3.0',\n", "iss... |
gh_patches_debug_347 | rasdani/github-patches | git_diff | scikit-hep__pyhf-1615 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
docs: Enable chronological ordering of talks and tutorials on website
# Description
At the moment, the [docs webpage](https://scikit-hep.org/pyhf/outreach.html) does not order the talks and tutorials given... | diff --git a/docs/conf.py b/docs/conf.py
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -65,6 +65,7 @@
"bib/use_citations.bib",
"bib/general_citations.bib",
]
+bibtex_default_style = "unsrt"
# external links
xref_links = {"arXiv:1007.1727": ("[1007.1727]", "https://arxiv.org/abs/1007.1727")}
| {"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -65,6 +65,7 @@\n \"bib/use_citations.bib\",\n \"bib/general_citations.bib\",\n ]\n+bibtex_default_style = \"unsrt\"\n \n # external links\n xref_links = {\"arXiv:1007.1727\": (\"[1007.1727]\", \"https://arxiv.o... |
gh_patches_debug_348 | rasdani/github-patches | git_diff | plotly__plotly.py-4022 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
HTML writing fails on Windows if plot title contains specific UTF characters (≥)
MWE:
```
import plotly.express as px
df = px.data.iris()
fig = px.scatter(df, x="sepal_length", y="sepal_width", color=... | diff --git a/packages/python/plotly/plotly/io/_html.py b/packages/python/plotly/plotly/io/_html.py
--- a/packages/python/plotly/plotly/io/_html.py
+++ b/packages/python/plotly/plotly/io/_html.py
@@ -533,7 +533,8 @@
# Write HTML string
if path is not None:
- path.write_text(html_str)
+ # To use... | {"golden_diff": "diff --git a/packages/python/plotly/plotly/io/_html.py b/packages/python/plotly/plotly/io/_html.py\n--- a/packages/python/plotly/plotly/io/_html.py\n+++ b/packages/python/plotly/plotly/io/_html.py\n@@ -533,7 +533,8 @@\n \n # Write HTML string\n if path is not None:\n- path.write_text(htm... |
gh_patches_debug_349 | rasdani/github-patches | git_diff | encode__django-rest-framework-5055 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
EXCEPTION_HANDLER on View.settings not respected
## Checklist
- [x] I have verified that that issue exists against the `master` branch of Django REST framework.
- [x] I have searched for similar issues in... | diff --git a/rest_framework/views.py b/rest_framework/views.py
--- a/rest_framework/views.py
+++ b/rest_framework/views.py
@@ -290,7 +290,7 @@
"""
Returns the exception handler that this view uses.
"""
- return api_settings.EXCEPTION_HANDLER
+ return self.settings.EXCEPTION_HAND... | {"golden_diff": "diff --git a/rest_framework/views.py b/rest_framework/views.py\n--- a/rest_framework/views.py\n+++ b/rest_framework/views.py\n@@ -290,7 +290,7 @@\n \"\"\"\n Returns the exception handler that this view uses.\n \"\"\"\n- return api_settings.EXCEPTION_HANDLER\n+ retu... |
gh_patches_debug_350 | rasdani/github-patches | git_diff | Textualize__textual-2713 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Updating a `TreeNode.label` doesn't refresh the tree right away
In this little illustration of how a `Tree`'s nodes' labels can be updated on the fly, the actual updates don't show until some other interactio... | diff --git a/src/textual/widgets/_tree.py b/src/textual/widgets/_tree.py
--- a/src/textual/widgets/_tree.py
+++ b/src/textual/widgets/_tree.py
@@ -307,6 +307,7 @@
self._updates += 1
text_label = self._tree.process_label(label)
self._label = text_label
+ self._tree.call_later(self._tree... | {"golden_diff": "diff --git a/src/textual/widgets/_tree.py b/src/textual/widgets/_tree.py\n--- a/src/textual/widgets/_tree.py\n+++ b/src/textual/widgets/_tree.py\n@@ -307,6 +307,7 @@\n self._updates += 1\n text_label = self._tree.process_label(label)\n self._label = text_label\n+ self._tr... |
gh_patches_debug_351 | rasdani/github-patches | git_diff | boto__botocore-888 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
RestXMLSerializer has problem with multi-byte unicode strings py2.7
Environment:
- Amazon Linux AMI 2016.03.0 (HVM)
- Python: 2.7.10
- boto3: 1.3.0
- botocore: 1.4.9
Reproduce:
``` python
>>> import boto3
>... | diff --git a/botocore/serialize.py b/botocore/serialize.py
--- a/botocore/serialize.py
+++ b/botocore/serialize.py
@@ -615,7 +615,7 @@
def _default_serialize(self, xmlnode, params, shape, name):
node = ElementTree.SubElement(xmlnode, name)
- node.text = str(params)
+ node.text = six.text_t... | {"golden_diff": "diff --git a/botocore/serialize.py b/botocore/serialize.py\n--- a/botocore/serialize.py\n+++ b/botocore/serialize.py\n@@ -615,7 +615,7 @@\n \n def _default_serialize(self, xmlnode, params, shape, name):\n node = ElementTree.SubElement(xmlnode, name)\n- node.text = str(params)\n+ ... |
gh_patches_debug_352 | rasdani/github-patches | git_diff | sktime__sktime-3167 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] ARIMA.fit with numpy arrays not working correctly
**Describe the bug**
If I execute ARIMA().fit with numpy arrays, it will fails with a strange error message. It says that the indexes of the input Time... | diff --git a/sktime/utils/validation/series.py b/sktime/utils/validation/series.py
--- a/sktime/utils/validation/series.py
+++ b/sktime/utils/validation/series.py
@@ -267,7 +267,7 @@
for i, y in enumerate(y_not_None[1:]):
if isinstance(y, np.ndarray):
- y_index = pd.Index(y)
+ y_in... | {"golden_diff": "diff --git a/sktime/utils/validation/series.py b/sktime/utils/validation/series.py\n--- a/sktime/utils/validation/series.py\n+++ b/sktime/utils/validation/series.py\n@@ -267,7 +267,7 @@\n \n for i, y in enumerate(y_not_None[1:]):\n if isinstance(y, np.ndarray):\n- y_index = pd.In... |
gh_patches_debug_353 | rasdani/github-patches | git_diff | encode__httpx-361 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Missing py.typed declaration?
`mypy` is complaining about not being able to find type annotations for `httpx`:
`error: Cannot find module named 'httpx'`
I'm somewhat new to using type annotations/stati... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -49,6 +49,7 @@
package_data={"httpx": ["py.typed"]},
packages=get_packages("httpx"),
include_package_data=True,
+ zip_safe=False,
install_requires=[
"certifi",
"chardet==3.*",
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -49,6 +49,7 @@\n package_data={\"httpx\": [\"py.typed\"]},\n packages=get_packages(\"httpx\"),\n include_package_data=True,\n+ zip_safe=False,\n install_requires=[\n \"certifi\",\n \"chardet==3.*\",\... |
gh_patches_debug_354 | rasdani/github-patches | git_diff | canonical__cloud-init-5343 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
cloud-init generates a traceback if a default route already exists during ephemeral network setup
This bug was originally filed in Launchpad as [LP: #1860164](https://bugs.launchpad.net/cloud-init/+bug/186016... | diff --git a/cloudinit/net/netops/iproute2.py b/cloudinit/net/netops/iproute2.py
--- a/cloudinit/net/netops/iproute2.py
+++ b/cloudinit/net/netops/iproute2.py
@@ -50,7 +50,7 @@
"ip",
"-4",
"route",
- "add",
+ "replace",
ro... | {"golden_diff": "diff --git a/cloudinit/net/netops/iproute2.py b/cloudinit/net/netops/iproute2.py\n--- a/cloudinit/net/netops/iproute2.py\n+++ b/cloudinit/net/netops/iproute2.py\n@@ -50,7 +50,7 @@\n \"ip\",\n \"-4\",\n \"route\",\n- \"add\",\n+ ... |
gh_patches_debug_355 | rasdani/github-patches | git_diff | blakeblackshear__frigate-3474 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[Support]: motion sensor stays on indefinitely after restart
### Describe the problem you are having
The following can be reliably reproduced in my setup:
- I enter the room, frigate's motion sensor (`bin... | diff --git a/frigate/mqtt.py b/frigate/mqtt.py
--- a/frigate/mqtt.py
+++ b/frigate/mqtt.py
@@ -314,6 +314,11 @@
config.cameras[name].motion.contour_area,
retain=True,
)
+ client.publish(
+ f"{mqtt_config.topic_prefix}/{name}/motion",
+ "OFF",
+ ... | {"golden_diff": "diff --git a/frigate/mqtt.py b/frigate/mqtt.py\n--- a/frigate/mqtt.py\n+++ b/frigate/mqtt.py\n@@ -314,6 +314,11 @@\n config.cameras[name].motion.contour_area,\n retain=True,\n )\n+ client.publish(\n+ f\"{mqtt_config.topic_prefix}/{name}/motion\",\n+ ... |
gh_patches_debug_356 | rasdani/github-patches | git_diff | carpentries__amy-513 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bulk-upload: empty entries in csv files
Today I got a strange output form a bulk upload:
"Successfully uploaded 37 persons and 24 tasks"
The entries were actully 24 and this number was recorded in the worksho... | diff --git a/workshops/util.py b/workshops/util.py
--- a/workshops/util.py
+++ b/workshops/util.py
@@ -71,6 +71,10 @@
empty_fields = set()
for row in reader:
+ # skip empty lines in the CSV
+ if not any(row.values()):
+ continue
+
entry = {}
for col in Person.PERSO... | {"golden_diff": "diff --git a/workshops/util.py b/workshops/util.py\n--- a/workshops/util.py\n+++ b/workshops/util.py\n@@ -71,6 +71,10 @@\n empty_fields = set()\n \n for row in reader:\n+ # skip empty lines in the CSV\n+ if not any(row.values()):\n+ continue\n+\n entry = {}\n ... |
gh_patches_debug_357 | rasdani/github-patches | git_diff | Ehco1996__django-sspanel-386 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bug connecting to 127.0.0.1:6379. Connection refused.
**问题的描述**
登陆或者get请求v2scar对接接口时,出现 **`Error 111 connecting to 127.0.0.1:6379. Connection refused.`**
**项目的配置文件**
使用docker-compose up -d 运行
**如何复现**
... | diff --git a/configs/default/redis.py b/configs/default/redis.py
--- a/configs/default/redis.py
+++ b/configs/default/redis.py
@@ -1,4 +1,5 @@
import os
-REDIS_DB_URI = os.getenv("REDIS_DB_URI", "redis://127.0.0.1:6379/0")
-REDIS_CACHE_URI = os.getenv("REDIS_CACHE_URI", "redis://127.0.0.1:6379/1")
+REDIS_HOST = os.g... | {"golden_diff": "diff --git a/configs/default/redis.py b/configs/default/redis.py\n--- a/configs/default/redis.py\n+++ b/configs/default/redis.py\n@@ -1,4 +1,5 @@\n import os\n \n-REDIS_DB_URI = os.getenv(\"REDIS_DB_URI\", \"redis://127.0.0.1:6379/0\")\n-REDIS_CACHE_URI = os.getenv(\"REDIS_CACHE_URI\", \"redis://127.0.... |
gh_patches_debug_358 | rasdani/github-patches | git_diff | PyGithub__PyGithub-1470 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
The documentation implies that PaginatedList has __len__, but it doesn't.
https://github.com/PyGithub/PyGithub/blob/393bd21bd168769d8ecf4b23f4b32e9a4de5f17a/github/PaginatedList.py#L107
In REPL:
```pyth... | diff --git a/github/PaginatedList.py b/github/PaginatedList.py
--- a/github/PaginatedList.py
+++ b/github/PaginatedList.py
@@ -104,7 +104,6 @@
If you want to know the total number of items in the list::
print(user.get_repos().totalCount)
- print(len(user.get_repos()))
You can also index th... | {"golden_diff": "diff --git a/github/PaginatedList.py b/github/PaginatedList.py\n--- a/github/PaginatedList.py\n+++ b/github/PaginatedList.py\n@@ -104,7 +104,6 @@\n If you want to know the total number of items in the list::\n \n print(user.get_repos().totalCount)\n- print(len(user.get_repos()))\n \n... |
gh_patches_debug_359 | rasdani/github-patches | git_diff | cocotb__cocotb-2451 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
TOPLEVEL should be whitespace stripped
From here: https://github.com/cocotb/cocotb/blob/ecb43878a6af0605fdf08c2f1829cc401bfdeb36/cocotb/__init__.py#L219-L225
On Questa with the FLI, trailing whitespace cau... | diff --git a/cocotb/__init__.py b/cocotb/__init__.py
--- a/cocotb/__init__.py
+++ b/cocotb/__init__.py
@@ -218,6 +218,7 @@
root_name = os.getenv("TOPLEVEL")
if root_name is not None:
+ root_name = root_name.strip()
if root_name == "":
root_name = None
elif '.' in root_n... | {"golden_diff": "diff --git a/cocotb/__init__.py b/cocotb/__init__.py\n--- a/cocotb/__init__.py\n+++ b/cocotb/__init__.py\n@@ -218,6 +218,7 @@\n \n root_name = os.getenv(\"TOPLEVEL\")\n if root_name is not None:\n+ root_name = root_name.strip()\n if root_name == \"\":\n root_name = No... |
gh_patches_debug_360 | rasdani/github-patches | git_diff | mosaicml__composer-293 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ResNet56 default num_classes argument
## 🚀 Feature Request
The `num_classes` argument for [ResNet56_cifar10](https://github.com/mosaicml/composer/blob/main/composer/models/resnet56_cifar10/model.py) should ... | diff --git a/composer/models/resnet56_cifar10/model.py b/composer/models/resnet56_cifar10/model.py
--- a/composer/models/resnet56_cifar10/model.py
+++ b/composer/models/resnet56_cifar10/model.py
@@ -22,7 +22,7 @@
def __init__(
self,
- num_classes: int,
+ num_classes: int = 10,
ini... | {"golden_diff": "diff --git a/composer/models/resnet56_cifar10/model.py b/composer/models/resnet56_cifar10/model.py\n--- a/composer/models/resnet56_cifar10/model.py\n+++ b/composer/models/resnet56_cifar10/model.py\n@@ -22,7 +22,7 @@\n \n def __init__(\n self,\n- num_classes: int,\n+ num_classe... |
gh_patches_debug_361 | rasdani/github-patches | git_diff | Qiskit__qiskit-5577 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Mock devices have not been updated to match new hardware basis gateset
<!-- ⚠️ If you do not respect this template, your issue will be closed -->
<!-- ⚠️ Make sure to browse the opened and closed issues -->
... | diff --git a/qiskit/providers/models/backendconfiguration.py b/qiskit/providers/models/backendconfiguration.py
--- a/qiskit/providers/models/backendconfiguration.py
+++ b/qiskit/providers/models/backendconfiguration.py
@@ -678,6 +678,9 @@
}
out_dict['hamiltonian'] = hamiltonian
+ if h... | {"golden_diff": "diff --git a/qiskit/providers/models/backendconfiguration.py b/qiskit/providers/models/backendconfiguration.py\n--- a/qiskit/providers/models/backendconfiguration.py\n+++ b/qiskit/providers/models/backendconfiguration.py\n@@ -678,6 +678,9 @@\n }\n out_dict['hamiltonian'] = hamil... |
gh_patches_debug_362 | rasdani/github-patches | git_diff | fossasia__open-event-server-6285 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
After successful charge, order redirection to success page fails

--- END ISSUE ---
Below are ... | diff --git a/app/api/helpers/ticketing.py b/app/api/helpers/ticketing.py
--- a/app/api/helpers/ticketing.py
+++ b/app/api/helpers/ticketing.py
@@ -10,6 +10,7 @@
from app.models import db
from app.models.ticket_fee import TicketFees
from app.models.ticket_holder import TicketHolder
+from flask_jwt_extended import cur... | {"golden_diff": "diff --git a/app/api/helpers/ticketing.py b/app/api/helpers/ticketing.py\n--- a/app/api/helpers/ticketing.py\n+++ b/app/api/helpers/ticketing.py\n@@ -10,6 +10,7 @@\n from app.models import db\n from app.models.ticket_fee import TicketFees\n from app.models.ticket_holder import TicketHolder\n+from flask... |
gh_patches_debug_363 | rasdani/github-patches | git_diff | Project-MONAI__MONAI-1884 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
allows for single key in `ConcatItemsd`
Hi everyone I'm using `ConcatItemsd` for concatenating the inputs from multi-modalities images. During development sometimes I adjust the number of modalities of input... | diff --git a/monai/transforms/utility/dictionary.py b/monai/transforms/utility/dictionary.py
--- a/monai/transforms/utility/dictionary.py
+++ b/monai/transforms/utility/dictionary.py
@@ -675,8 +675,6 @@
"""
super().__init__(keys, allow_missing_keys)
- if len(self.keys) < 2:
- raise... | {"golden_diff": "diff --git a/monai/transforms/utility/dictionary.py b/monai/transforms/utility/dictionary.py\n--- a/monai/transforms/utility/dictionary.py\n+++ b/monai/transforms/utility/dictionary.py\n@@ -675,8 +675,6 @@\n \n \"\"\"\n super().__init__(keys, allow_missing_keys)\n- if len(self.ke... |
gh_patches_debug_364 | rasdani/github-patches | git_diff | pre-commit__pre-commit-2272 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add GIT_HTTP_PROXY_AUTHMETHOD to kept environment variables
### describe your issue
On the cluster I work on, there’s a proxy. It’s… Let’s just say that proxy is being a pain, and to make it work we have to ... | diff --git a/pre_commit/git.py b/pre_commit/git.py
--- a/pre_commit/git.py
+++ b/pre_commit/git.py
@@ -43,6 +43,7 @@
k in {
'GIT_EXEC_PATH', 'GIT_SSH', 'GIT_SSH_COMMAND', 'GIT_SSL_CAINFO',
'GIT_SSL_NO_VERIFY', 'GIT_CONFIG_COUNT',
+ 'GIT_HTTP_PROXY_AUTHMETHOD',
}
... | {"golden_diff": "diff --git a/pre_commit/git.py b/pre_commit/git.py\n--- a/pre_commit/git.py\n+++ b/pre_commit/git.py\n@@ -43,6 +43,7 @@\n k in {\n 'GIT_EXEC_PATH', 'GIT_SSH', 'GIT_SSH_COMMAND', 'GIT_SSL_CAINFO',\n 'GIT_SSL_NO_VERIFY', 'GIT_CONFIG_COUNT',\n+ 'GIT_HTTP_PROXY_AU... |
gh_patches_debug_365 | rasdani/github-patches | git_diff | ray-project__ray-10593 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Make the multi-worker feature for Java worker experimental
Right now, the multi-worker feature for Java worker is enabled by default, but the `ActorHandle::kill()` API doesn't work well if multi-worker is ena... | diff --git a/python/ray/job_config.py b/python/ray/job_config.py
--- a/python/ray/job_config.py
+++ b/python/ray/job_config.py
@@ -15,7 +15,7 @@
def __init__(
self,
worker_env=None,
- num_java_workers_per_process=10,
+ num_java_workers_per_process=1,
jvm... | {"golden_diff": "diff --git a/python/ray/job_config.py b/python/ray/job_config.py\n--- a/python/ray/job_config.py\n+++ b/python/ray/job_config.py\n@@ -15,7 +15,7 @@\n def __init__(\n self,\n worker_env=None,\n- num_java_workers_per_process=10,\n+ num_java_workers_per_pr... |
gh_patches_debug_366 | rasdani/github-patches | git_diff | projectmesa__mesa-451 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Datacollector fix
Simplify the `DataCollector` API by allowing the user-provided model- and agent-level reporters to be the names of attributes, in addition to methods. e.g. instead of needing to write
```... | diff --git a/mesa/__init__.py b/mesa/__init__.py
--- a/mesa/__init__.py
+++ b/mesa/__init__.py
@@ -14,6 +14,6 @@
__all__ = ["Model", "Agent"]
__title__ = 'mesa'
-__version__ = '0.8.2'
+__version__ = '0.8.3'
__license__ = 'Apache 2.0'
__copyright__ = 'Copyright %s Project Mesa Team' % datetime.date.today().year
| {"golden_diff": "diff --git a/mesa/__init__.py b/mesa/__init__.py\n--- a/mesa/__init__.py\n+++ b/mesa/__init__.py\n@@ -14,6 +14,6 @@\n __all__ = [\"Model\", \"Agent\"]\n \n __title__ = 'mesa'\n-__version__ = '0.8.2'\n+__version__ = '0.8.3'\n __license__ = 'Apache 2.0'\n __copyright__ = 'Copyright %s Project Mesa Team' ... |
gh_patches_debug_367 | rasdani/github-patches | git_diff | googleapis__python-bigquery-1413 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Support Pythons <4
I'd like to be able to allow python <4 in ibis, but as of this PR (https://github.com/ibis-project/ibis/pull/4797) I cannot due to this library's `<3.11` pin.
--- END ISSUE ---
Below are ... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -124,7 +124,7 @@
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
- python_requires=">=3.7, <3.11",
+ python_requires=">=3.7",
include_package_data=True,
zip_safe=False,
)
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -124,7 +124,7 @@\n namespace_packages=namespaces,\n install_requires=dependencies,\n extras_require=extras,\n- python_requires=\">=3.7, <3.11\",\n+ python_requires=\">=3.7\",\n include_package_data=True,\n zi... |
gh_patches_debug_368 | rasdani/github-patches | git_diff | streamlink__streamlink-5698 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
plugins.btv: No playable streams found
### Checklist
- [X] This is a [plugin issue](https://streamlink.github.io/plugins.html) and not [a different kind of issue](https://github.com/streamlink/streamlink/iss... | diff --git a/src/streamlink/plugins/btv.py b/src/streamlink/plugins/btv.py
--- a/src/streamlink/plugins/btv.py
+++ b/src/streamlink/plugins/btv.py
@@ -61,7 +61,7 @@
log.error("The content is not available in your region")
return
- return {"live": HLSStream(self.session, stream_url)}
+... | {"golden_diff": "diff --git a/src/streamlink/plugins/btv.py b/src/streamlink/plugins/btv.py\n--- a/src/streamlink/plugins/btv.py\n+++ b/src/streamlink/plugins/btv.py\n@@ -61,7 +61,7 @@\n log.error(\"The content is not available in your region\")\n return\n \n- return {\"live\": HLSStream(... |
gh_patches_debug_369 | rasdani/github-patches | git_diff | easybuilders__easybuild-framework-3584 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
-lpthtread is missing from $LIBBLAS_MT
when building with the `foss` toolchain, I noticed that `$LIBBLAS_MT` is defined identical to `$LIBBLAS` as `-lopenblas -lgfortran`
we should make sure `-lpthread` is... | diff --git a/easybuild/toolchains/linalg/openblas.py b/easybuild/toolchains/linalg/openblas.py
--- a/easybuild/toolchains/linalg/openblas.py
+++ b/easybuild/toolchains/linalg/openblas.py
@@ -40,6 +40,7 @@
"""
BLAS_MODULE_NAME = ['OpenBLAS']
BLAS_LIB = ['openblas']
+ BLAS_LIB_MT = ['openblas']
BLA... | {"golden_diff": "diff --git a/easybuild/toolchains/linalg/openblas.py b/easybuild/toolchains/linalg/openblas.py\n--- a/easybuild/toolchains/linalg/openblas.py\n+++ b/easybuild/toolchains/linalg/openblas.py\n@@ -40,6 +40,7 @@\n \"\"\"\n BLAS_MODULE_NAME = ['OpenBLAS']\n BLAS_LIB = ['openblas']\n+ BLAS_LIB... |
gh_patches_debug_370 | rasdani/github-patches | git_diff | Netflix__lemur-766 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Set lemur to log to stdout
When running lemur inside docker I would like to have it log everything to `stdout` so that I can forward logs to splunk. At the moment `lemur.config.py` has a `LEMUR_LOG` parameter... | diff --git a/lemur/factory.py b/lemur/factory.py
--- a/lemur/factory.py
+++ b/lemur/factory.py
@@ -153,7 +153,7 @@
app.logger.addHandler(handler)
stream_handler = StreamHandler()
- stream_handler.setLevel(app.config.get('LOG_LEVEL'))
+ stream_handler.setLevel(app.config.get('LOG_LEVEL', 'DEBUG'))
... | {"golden_diff": "diff --git a/lemur/factory.py b/lemur/factory.py\n--- a/lemur/factory.py\n+++ b/lemur/factory.py\n@@ -153,7 +153,7 @@\n app.logger.addHandler(handler)\n \n stream_handler = StreamHandler()\n- stream_handler.setLevel(app.config.get('LOG_LEVEL'))\n+ stream_handler.setLevel(app.config.get('L... |
gh_patches_debug_371 | rasdani/github-patches | git_diff | open-telemetry__opentelemetry-python-1249 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update limits for collection size
As per the spec change here https://github.com/open-telemetry/opentelemetry-specification/commit/507884f02618a91247fe3634a8c6c5ac99a32a40
The limits for event, attribute a... | diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
--- a/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
+++ b/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
@@ -53,9 +53,9 @@
logger = logging.getLogger(__name__)
-... | {"golden_diff": "diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py\n--- a/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py\n+++ b/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py\n@@ -53,9 +53,9 @@\n \n logger = logging.g... |
gh_patches_debug_372 | rasdani/github-patches | git_diff | translate__pootle-4399 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Coalesce in get_units is creating bad sql
Im seeing errors in get_units, regarding bad sql
this is the dump of the sql in question, seems like theres a bracket missing - not sure how that has happened, but i... | diff --git a/pootle/apps/pootle_store/views.py b/pootle/apps/pootle_store/views.py
--- a/pootle/apps/pootle_store/views.py
+++ b/pootle/apps/pootle_store/views.py
@@ -55,7 +55,7 @@
#: will be used against the DB.
ALLOWED_SORTS = {
'units': {
- 'priority': 'priority',
+ 'priority': '-priority',
... | {"golden_diff": "diff --git a/pootle/apps/pootle_store/views.py b/pootle/apps/pootle_store/views.py\n--- a/pootle/apps/pootle_store/views.py\n+++ b/pootle/apps/pootle_store/views.py\n@@ -55,7 +55,7 @@\n #: will be used against the DB.\n ALLOWED_SORTS = {\n 'units': {\n- 'priority': 'priority',\n+ 'pri... |
gh_patches_debug_373 | rasdani/github-patches | git_diff | deis__deis-323 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`deis run` generates ugly error if app code not yet pushed
I ran `deis run ls -la` after I had created the app, but before I had pushed the code with `git push deis master`. Here is the error I received:
```... | diff --git a/api/tasks.py b/api/tasks.py
--- a/api/tasks.py
+++ b/api/tasks.py
@@ -53,6 +53,8 @@
@task
def run_node(node, command):
output, rc = CM.run_node(node.flat(), command)
+ if rc != 0 and 'failed to setup the container' in output:
+ output = '\033[35mPlease run `git push deis master` first.\033... | {"golden_diff": "diff --git a/api/tasks.py b/api/tasks.py\n--- a/api/tasks.py\n+++ b/api/tasks.py\n@@ -53,6 +53,8 @@\n @task\n def run_node(node, command):\n output, rc = CM.run_node(node.flat(), command)\n+ if rc != 0 and 'failed to setup the container' in output:\n+ output = '\\033[35mPlease run `git pu... |
gh_patches_debug_374 | rasdani/github-patches | git_diff | Mailu__Mailu-2603 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Maximum number of connections from user+IP exceeded
Hi, we have a problem... :-)
We have changed the original value of "AUTH_RATELIMIT" to "AUTH_RATELIMIT=100/minute;6000/hour", but logs continue to say " M... | diff --git a/core/admin/mailu/internal/views/dovecot.py b/core/admin/mailu/internal/views/dovecot.py
--- a/core/admin/mailu/internal/views/dovecot.py
+++ b/core/admin/mailu/internal/views/dovecot.py
@@ -17,7 +17,7 @@
return flask.jsonify({
"password": None,
"nopassword": "Y",
- "allow_nets... | {"golden_diff": "diff --git a/core/admin/mailu/internal/views/dovecot.py b/core/admin/mailu/internal/views/dovecot.py\n--- a/core/admin/mailu/internal/views/dovecot.py\n+++ b/core/admin/mailu/internal/views/dovecot.py\n@@ -17,7 +17,7 @@\n return flask.jsonify({\n \"password\": None,\n \"nopassword\"... |
gh_patches_debug_375 | rasdani/github-patches | git_diff | searx__searx-671 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
custom error-sites
We could support custom error sites inside the templates, to show for example 404-Errors in the design of the template instead of some naked text. (continuous design).
But we have to be ca... | diff --git a/searx/webapp.py b/searx/webapp.py
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -715,6 +715,11 @@
'default_theme': settings['ui']['default_theme']})
+@app.errorhandler(404)
+def page_not_found(e):
+ return render('404.html')
+
+
def run():
app.run(
debug=settings... | {"golden_diff": "diff --git a/searx/webapp.py b/searx/webapp.py\n--- a/searx/webapp.py\n+++ b/searx/webapp.py\n@@ -715,6 +715,11 @@\n 'default_theme': settings['ui']['default_theme']})\n \n \n+@app.errorhandler(404)\n+def page_not_found(e):\n+ return render('404.html')\n+\n+\n def run():\n ap... |
gh_patches_debug_376 | rasdani/github-patches | git_diff | Gallopsled__pwntools-232 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Our readline implementation is broken
The current readline implementation (which replaces `raw_input()`) is broken. I'm not sure how it has been working before.
The implementation shows a lot of signs of be... | diff --git a/pwnlib/term/readline.py b/pwnlib/term/readline.py
--- a/pwnlib/term/readline.py
+++ b/pwnlib/term/readline.py
@@ -83,6 +83,7 @@
redisplay()
def redisplay():
+ global suggest_handle
if buffer_handle:
if show_suggestions and suggest_hook:
suggestions = suggest_hook(buffe... | {"golden_diff": "diff --git a/pwnlib/term/readline.py b/pwnlib/term/readline.py\n--- a/pwnlib/term/readline.py\n+++ b/pwnlib/term/readline.py\n@@ -83,6 +83,7 @@\n redisplay()\n \n def redisplay():\n+ global suggest_handle\n if buffer_handle:\n if show_suggestions and suggest_hook:\n sugge... |
gh_patches_debug_377 | rasdani/github-patches | git_diff | chainer__chainer-410 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Seed cannot be fixed via an environment variable
Past version of Chainer supported the CHAINER_SEED environment variable, which is (maybe accidentally) missed in v1.3.0.
--- END ISSUE ---
Below are some co... | diff --git a/cupy/random/generator.py b/cupy/random/generator.py
--- a/cupy/random/generator.py
+++ b/cupy/random/generator.py
@@ -226,7 +226,7 @@
dev = cuda.Device()
rs = _random_states.get(dev.id, None)
if rs is None:
- rs = RandomState()
+ rs = RandomState(os.getenv('CHAINER_SEED'))
... | {"golden_diff": "diff --git a/cupy/random/generator.py b/cupy/random/generator.py\n--- a/cupy/random/generator.py\n+++ b/cupy/random/generator.py\n@@ -226,7 +226,7 @@\n dev = cuda.Device()\n rs = _random_states.get(dev.id, None)\n if rs is None:\n- rs = RandomState()\n+ rs = RandomState(os.get... |
gh_patches_debug_378 | rasdani/github-patches | git_diff | facebookresearch__hydra-1960 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[CI] `mypy` fails for optuna sweeper on main
Turns out it was caused by a newly released version of `alembic` and it has been fixed in optuna https://github.com/optuna/optuna/pull/2887
--- END ISSUE ---
B... | diff --git a/plugins/hydra_optuna_sweeper/setup.py b/plugins/hydra_optuna_sweeper/setup.py
--- a/plugins/hydra_optuna_sweeper/setup.py
+++ b/plugins/hydra_optuna_sweeper/setup.py
@@ -27,8 +27,7 @@
],
install_requires=[
"hydra-core>=1.1.0.dev7",
- "optuna>=2.5.0",
- "alembic<1.7.0", # h... | {"golden_diff": "diff --git a/plugins/hydra_optuna_sweeper/setup.py b/plugins/hydra_optuna_sweeper/setup.py\n--- a/plugins/hydra_optuna_sweeper/setup.py\n+++ b/plugins/hydra_optuna_sweeper/setup.py\n@@ -27,8 +27,7 @@\n ],\n install_requires=[\n \"hydra-core>=1.1.0.dev7\",\n- \"optuna>=2.5.0\",\n-... |
gh_patches_debug_379 | rasdani/github-patches | git_diff | DDMAL__CantusDB-948 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Test Fail in SourceDetailViewTest
All of the tests are currently failing in SourceDetailViewTest
```
======================================================================
ERROR: test_context_sequences (... | diff --git a/django/cantusdb_project/main_app/views/source.py b/django/cantusdb_project/main_app/views/source.py
--- a/django/cantusdb_project/main_app/views/source.py
+++ b/django/cantusdb_project/main_app/views/source.py
@@ -277,6 +277,8 @@
def user_can_edit_source(user, source):
+ if user.is_anonymous:
+ ... | {"golden_diff": "diff --git a/django/cantusdb_project/main_app/views/source.py b/django/cantusdb_project/main_app/views/source.py\n--- a/django/cantusdb_project/main_app/views/source.py\n+++ b/django/cantusdb_project/main_app/views/source.py\n@@ -277,6 +277,8 @@\n \n \n def user_can_edit_source(user, source):\n+ if ... |
gh_patches_debug_380 | rasdani/github-patches | git_diff | zigpy__zha-device-handlers-569 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[Device Support Request] CentraLite Contact Sensor-A
**TL;DR**: The battery entity for the `CentraLite Contact Sensor-A` always reports `Unavailable`. It's very similar in signature to the CentraLite 3320-L ... | diff --git a/zhaquirks/centralite/ias.py b/zhaquirks/centralite/ias.py
--- a/zhaquirks/centralite/ias.py
+++ b/zhaquirks/centralite/ias.py
@@ -38,6 +38,7 @@
(CENTRALITE, "3315-Seu"),
(CENTRALITE, "3315"),
(CENTRALITE, "3320-L"),
+ (CENTRALITE, "Contact Sensor-A"),
... | {"golden_diff": "diff --git a/zhaquirks/centralite/ias.py b/zhaquirks/centralite/ias.py\n--- a/zhaquirks/centralite/ias.py\n+++ b/zhaquirks/centralite/ias.py\n@@ -38,6 +38,7 @@\n (CENTRALITE, \"3315-Seu\"),\n (CENTRALITE, \"3315\"),\n (CENTRALITE, \"3320-L\"),\n+ (CENTRALI... |
gh_patches_debug_381 | rasdani/github-patches | git_diff | zulip__zulip-29008 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Clean up beta app installation instructions
Following up on #28884, we should convert the beta app installation instructions into our standard tabbed instructions format. I'm not sure about the best tab label... | diff --git a/zerver/lib/markdown/tabbed_sections.py b/zerver/lib/markdown/tabbed_sections.py
--- a/zerver/lib/markdown/tabbed_sections.py
+++ b/zerver/lib/markdown/tabbed_sections.py
@@ -46,6 +46,8 @@
"mac": "macOS",
"windows": "Windows",
"linux": "Linux",
+ "most-systems": "Most systems",
+ "linux... | {"golden_diff": "diff --git a/zerver/lib/markdown/tabbed_sections.py b/zerver/lib/markdown/tabbed_sections.py\n--- a/zerver/lib/markdown/tabbed_sections.py\n+++ b/zerver/lib/markdown/tabbed_sections.py\n@@ -46,6 +46,8 @@\n \"mac\": \"macOS\",\n \"windows\": \"Windows\",\n \"linux\": \"Linux\",\n+ \"most-... |
gh_patches_debug_382 | rasdani/github-patches | git_diff | scikit-image__scikit-image-1281 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bug: io.imshow() and io.show() do not work as expected in winows
In my win7-x64 environemnt, io.imshow() and io.show() do not work as expected. I use io.imshow() to show mutiple images, and when I call io.sh... | diff --git a/skimage/io/_plugins/matplotlib_plugin.py b/skimage/io/_plugins/matplotlib_plugin.py
--- a/skimage/io/_plugins/matplotlib_plugin.py
+++ b/skimage/io/_plugins/matplotlib_plugin.py
@@ -2,6 +2,8 @@
def imshow(*args, **kwargs):
+ if plt.gca().has_data():
+ plt.figure()
kwargs.setdefault('int... | {"golden_diff": "diff --git a/skimage/io/_plugins/matplotlib_plugin.py b/skimage/io/_plugins/matplotlib_plugin.py\n--- a/skimage/io/_plugins/matplotlib_plugin.py\n+++ b/skimage/io/_plugins/matplotlib_plugin.py\n@@ -2,6 +2,8 @@\n \n \n def imshow(*args, **kwargs):\n+ if plt.gca().has_data():\n+ plt.figure()\n ... |
gh_patches_debug_383 | rasdani/github-patches | git_diff | frappe__frappe-21299 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
New Dashboard Chart throws TypeError: format requires a mapping
## Description of the issue
I have created an elementary, stripped-down report to demonstrate the problem. It has one filter called "period" ... | diff --git a/frappe/desk/query_report.py b/frappe/desk/query_report.py
--- a/frappe/desk/query_report.py
+++ b/frappe/desk/query_report.py
@@ -186,6 +186,7 @@
"script": render_include(script),
"html_format": html_format,
"execution_time": frappe.cache().hget("report_execution_time", report_name) or 0,
+ "filt... | {"golden_diff": "diff --git a/frappe/desk/query_report.py b/frappe/desk/query_report.py\n--- a/frappe/desk/query_report.py\n+++ b/frappe/desk/query_report.py\n@@ -186,6 +186,7 @@\n \t\t\"script\": render_include(script),\n \t\t\"html_format\": html_format,\n \t\t\"execution_time\": frappe.cache().hget(\"report_executio... |
gh_patches_debug_384 | rasdani/github-patches | git_diff | arviz-devs__arviz-996 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Remove parallel from `arviz.utils.full`?
**Describe the bug**
There is nothing to be parallelized.
**To Reproduce**
```
import arviz as az
import os
os.environ["NUMBA_PARALLEL_DIAGNOSTICS"] = "4"
... | diff --git a/arviz/utils.py b/arviz/utils.py
--- a/arviz/utils.py
+++ b/arviz/utils.py
@@ -319,7 +319,7 @@
return x.reshape(shape[:0] + (1,) + shape[0:])
-@conditional_jit(parallel=True)
+@conditional_jit
def full(shape, x, dtype=None):
"""Jitting numpy full."""
return np.full(shape, x, dtype=dtype)... | {"golden_diff": "diff --git a/arviz/utils.py b/arviz/utils.py\n--- a/arviz/utils.py\n+++ b/arviz/utils.py\n@@ -319,7 +319,7 @@\n return x.reshape(shape[:0] + (1,) + shape[0:])\n \n \n-@conditional_jit(parallel=True)\n+@conditional_jit\n def full(shape, x, dtype=None):\n \"\"\"Jitting numpy full.\"\"\"\n ret... |
gh_patches_debug_385 | rasdani/github-patches | git_diff | qutebrowser__qutebrowser-4585 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
AltGr handled as both modifier and normal key, breaks g$
**Version info (see `:version`)**:
qutebrowser v1.5.2
Git commit: 17eff15 (2019-02-14 20:14:15 -0800)
Backend: QtWebEngine (Chromium 65.0.3325.230)
... | diff --git a/qutebrowser/keyinput/keyutils.py b/qutebrowser/keyinput/keyutils.py
--- a/qutebrowser/keyinput/keyutils.py
+++ b/qutebrowser/keyinput/keyutils.py
@@ -34,6 +34,7 @@
Qt.Key_Control: Qt.ControlModifier,
Qt.Key_Alt: Qt.AltModifier,
Qt.Key_Meta: Qt.MetaModifier,
+ Qt.Key_AltGr: Qt.GroupSwitchM... | {"golden_diff": "diff --git a/qutebrowser/keyinput/keyutils.py b/qutebrowser/keyinput/keyutils.py\n--- a/qutebrowser/keyinput/keyutils.py\n+++ b/qutebrowser/keyinput/keyutils.py\n@@ -34,6 +34,7 @@\n Qt.Key_Control: Qt.ControlModifier,\n Qt.Key_Alt: Qt.AltModifier,\n Qt.Key_Meta: Qt.MetaModifier,\n+ Qt.Ke... |
gh_patches_debug_386 | rasdani/github-patches | git_diff | zigpy__zha-device-handlers-1280 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] TS0601 _TZE200_yvx5lh6k (Smart Air Box) not finding the quirk
I purchased a Tuya Smart Air Box with a Zigbee ID of: "_TZE200_8ygsuhe1" and it is working as expected. I purchased a second and it came wit... | diff --git a/zhaquirks/tuya/air/ts0601_air_quality.py b/zhaquirks/tuya/air/ts0601_air_quality.py
--- a/zhaquirks/tuya/air/ts0601_air_quality.py
+++ b/zhaquirks/tuya/air/ts0601_air_quality.py
@@ -82,6 +82,7 @@
# output_clusters=[25, 10])
MODELS_INFO: [
("_TZE200_ryfmq5rl", "TS0601"),
+ ... | {"golden_diff": "diff --git a/zhaquirks/tuya/air/ts0601_air_quality.py b/zhaquirks/tuya/air/ts0601_air_quality.py\n--- a/zhaquirks/tuya/air/ts0601_air_quality.py\n+++ b/zhaquirks/tuya/air/ts0601_air_quality.py\n@@ -82,6 +82,7 @@\n # output_clusters=[25, 10])\n MODELS_INFO: [\n (\"_TZE200_ryf... |
gh_patches_debug_387 | rasdani/github-patches | git_diff | mkdocs__mkdocs-190 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Make syntax highlighting optional
It would be nice to have an option to disable the prettify class from being added to the pre-tag. Personally, I prefer using another highlighter that doesn't rely on extra cl... | diff --git a/mkdocs/build.py b/mkdocs/build.py
--- a/mkdocs/build.py
+++ b/mkdocs/build.py
@@ -83,8 +83,6 @@
img_sub = PathToURL('src="%s"', nav)
html_content = re.sub(r'src="([^"]*)"', img_sub, html_content)
- html_content = html_content.replace('<pre>', '<pre class="prettyprint well">')
-
return h... | {"golden_diff": "diff --git a/mkdocs/build.py b/mkdocs/build.py\n--- a/mkdocs/build.py\n+++ b/mkdocs/build.py\n@@ -83,8 +83,6 @@\n img_sub = PathToURL('src=\"%s\"', nav)\n html_content = re.sub(r'src=\"([^\"]*)\"', img_sub, html_content)\n \n- html_content = html_content.replace('<pre>', '<pre class=\"pretty... |
gh_patches_debug_388 | rasdani/github-patches | git_diff | fonttools__fonttools-2827 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Calling instantiateVariableFont can lead to negative advance widths in hmtx
Hi!
Calling `instantiateVariableFont` can introduce negative advance widths in the `hmtx` table:
https://github.com/fonttools/... | diff --git a/Lib/fontTools/varLib/mutator.py b/Lib/fontTools/varLib/mutator.py
--- a/Lib/fontTools/varLib/mutator.py
+++ b/Lib/fontTools/varLib/mutator.py
@@ -143,7 +143,7 @@
if lsb_delta or width_delta:
if width_delta:
- entry[0] += width_delta
+ entry[0] = max(0, entry[0] + width_delta)
if lsb_delt... | {"golden_diff": "diff --git a/Lib/fontTools/varLib/mutator.py b/Lib/fontTools/varLib/mutator.py\n--- a/Lib/fontTools/varLib/mutator.py\n+++ b/Lib/fontTools/varLib/mutator.py\n@@ -143,7 +143,7 @@\n \n \t\tif lsb_delta or width_delta:\n \t\t\tif width_delta:\n-\t\t\t\tentry[0] += width_delta\n+\t\t\t\tentry[0] = max(0, e... |
gh_patches_debug_389 | rasdani/github-patches | git_diff | keras-team__autokeras-1367 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Exception in multi label classification with StructuredDataClassifier
### Bug Description
Multi label classification throws the following error when using `StructuredDataClassifier`:
```
----------------... | diff --git a/autokeras/preprocessors/encoders.py b/autokeras/preprocessors/encoders.py
--- a/autokeras/preprocessors/encoders.py
+++ b/autokeras/preprocessors/encoders.py
@@ -124,6 +124,7 @@
"""Encoder for multi-label data."""
def __init__(self, **kwargs):
+ kwargs.pop("labels", None)
super(... | {"golden_diff": "diff --git a/autokeras/preprocessors/encoders.py b/autokeras/preprocessors/encoders.py\n--- a/autokeras/preprocessors/encoders.py\n+++ b/autokeras/preprocessors/encoders.py\n@@ -124,6 +124,7 @@\n \"\"\"Encoder for multi-label data.\"\"\"\n \n def __init__(self, **kwargs):\n+ kwargs.pop(\... |
gh_patches_debug_390 | rasdani/github-patches | git_diff | WeblateOrg__weblate-9567 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Microsoft automatic translation fails for Serbian ("sr")
### Describe the issue
For the locale Serbian - "sr" the automatic translation with Microsoft Translator does not work. There are no "Automatic sugges... | diff --git a/weblate/machinery/microsoft.py b/weblate/machinery/microsoft.py
--- a/weblate/machinery/microsoft.py
+++ b/weblate/machinery/microsoft.py
@@ -32,6 +32,7 @@
"tlh-qaak": "tlh-Piqd",
"nb": "no",
"bs-latn": "bs-Latn",
+ "sr": "sr-Latn",
"sr-latn": "sr-Latn",
... | {"golden_diff": "diff --git a/weblate/machinery/microsoft.py b/weblate/machinery/microsoft.py\n--- a/weblate/machinery/microsoft.py\n+++ b/weblate/machinery/microsoft.py\n@@ -32,6 +32,7 @@\n \"tlh-qaak\": \"tlh-Piqd\",\n \"nb\": \"no\",\n \"bs-latn\": \"bs-Latn\",\n+ \"sr\": \"sr-Latn\",\... |
gh_patches_debug_391 | rasdani/github-patches | git_diff | python-discord__bot-1390 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Gracefully handle OverflowErrors from ConversionErrors
Sentry Issue: [BOT-9N](https://sentry.io/organizations/python-discord/issues/1927146324/?referrer=github_integration)
It can do a better job than displa... | diff --git a/bot/converters.py b/bot/converters.py
--- a/bot/converters.py
+++ b/bot/converters.py
@@ -350,7 +350,7 @@
try:
return now + delta
- except ValueError:
+ except (ValueError, OverflowError):
raise BadArgument(f"`{duration}` results in a datetime outside the ... | {"golden_diff": "diff --git a/bot/converters.py b/bot/converters.py\n--- a/bot/converters.py\n+++ b/bot/converters.py\n@@ -350,7 +350,7 @@\n \n try:\n return now + delta\n- except ValueError:\n+ except (ValueError, OverflowError):\n raise BadArgument(f\"`{duration}` results... |
gh_patches_debug_392 | rasdani/github-patches | git_diff | django-extensions__django-extensions-922 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
AutoSlugField doesn't populate model
Using the AutoSlugField in the normal way (making a slug from a name). It seems the slug field doesn't get populated in python but only in the sql.
Create a model and slu... | diff --git a/django_extensions/db/fields/__init__.py b/django_extensions/db/fields/__init__.py
--- a/django_extensions/db/fields/__init__.py
+++ b/django_extensions/db/fields/__init__.py
@@ -168,6 +168,7 @@
original_slug = slug
if self.allow_duplicates:
+ setattr(model_instance, self.attn... | {"golden_diff": "diff --git a/django_extensions/db/fields/__init__.py b/django_extensions/db/fields/__init__.py\n--- a/django_extensions/db/fields/__init__.py\n+++ b/django_extensions/db/fields/__init__.py\n@@ -168,6 +168,7 @@\n original_slug = slug\n \n if self.allow_duplicates:\n+ setattr(m... |
gh_patches_debug_393 | rasdani/github-patches | git_diff | Parsl__parsl-258 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`globals` should be an optional config field
Running over a config without `globals`, I see:
```
def make_rundir(config=None, path=None):
"""When a path has not been specified, make the run dir... | diff --git a/parsl/dataflow/rundirs.py b/parsl/dataflow/rundirs.py
--- a/parsl/dataflow/rundirs.py
+++ b/parsl/dataflow/rundirs.py
@@ -22,7 +22,7 @@
try:
if not path:
path = None
- elif config["globals"].get('runDir', None):
+ elif config.get("globals", {}).get('runDir'):
... | {"golden_diff": "diff --git a/parsl/dataflow/rundirs.py b/parsl/dataflow/rundirs.py\n--- a/parsl/dataflow/rundirs.py\n+++ b/parsl/dataflow/rundirs.py\n@@ -22,7 +22,7 @@\n try:\n if not path:\n path = None\n- elif config[\"globals\"].get('runDir', None):\n+ elif config.get(\"globals... |
gh_patches_debug_394 | rasdani/github-patches | git_diff | liqd__a4-product-1090 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
get_newsletters during normal register is broken
If checked, the user still has get_newsletters = False. But when changed in the account settings, it's changed.
--- END ISSUE ---
Below are some code segment... | diff --git a/apps/users/forms.py b/apps/users/forms.py
--- a/apps/users/forms.py
+++ b/apps/users/forms.py
@@ -14,6 +14,7 @@
})
def signup(self, request, user):
+ user.get_newsletters = self.cleaned_data["get_newsletters"]
user.signup(
self.cleaned_data['username'],
... | {"golden_diff": "diff --git a/apps/users/forms.py b/apps/users/forms.py\n--- a/apps/users/forms.py\n+++ b/apps/users/forms.py\n@@ -14,6 +14,7 @@\n })\n \n def signup(self, request, user):\n+ user.get_newsletters = self.cleaned_data[\"get_newsletters\"]\n user.signup(\n self.cleaned_da... |
gh_patches_debug_395 | rasdani/github-patches | git_diff | ivy-llc__ivy-19536 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Fix paddle_math.test_paddle_conj
| | |
|---|---|
|numpy|<a href="https://github.com/unifyai/ivy/actions/runs/6197499538/job/16826154279"><img src=https://img.shields.io/badge/-failure-red></a>
|jax|<a ... | diff --git a/ivy/functional/backends/numpy/experimental/elementwise.py b/ivy/functional/backends/numpy/experimental/elementwise.py
--- a/ivy/functional/backends/numpy/experimental/elementwise.py
+++ b/ivy/functional/backends/numpy/experimental/elementwise.py
@@ -268,7 +268,7 @@
out: Optional[np.ndarray] = None,
)... | {"golden_diff": "diff --git a/ivy/functional/backends/numpy/experimental/elementwise.py b/ivy/functional/backends/numpy/experimental/elementwise.py\n--- a/ivy/functional/backends/numpy/experimental/elementwise.py\n+++ b/ivy/functional/backends/numpy/experimental/elementwise.py\n@@ -268,7 +268,7 @@\n out: Optional[n... |
gh_patches_debug_396 | rasdani/github-patches | git_diff | open-mmlab__mmdetection-7797 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[Bug] Bug in resnet's plugin
**Describe the bug**
- In the ResNet implementation of MMDET, there seems to be a problem in function [forward_function](https://github.com/open-mmlab/mmdetection/blob/master/mmd... | diff --git a/mmdet/models/backbones/resnet.py b/mmdet/models/backbones/resnet.py
--- a/mmdet/models/backbones/resnet.py
+++ b/mmdet/models/backbones/resnet.py
@@ -242,7 +242,7 @@
def forward_plugin(self, x, plugin_names):
out = x
for name in plugin_names:
- out = getattr(self, name)(x)... | {"golden_diff": "diff --git a/mmdet/models/backbones/resnet.py b/mmdet/models/backbones/resnet.py\n--- a/mmdet/models/backbones/resnet.py\n+++ b/mmdet/models/backbones/resnet.py\n@@ -242,7 +242,7 @@\n def forward_plugin(self, x, plugin_names):\n out = x\n for name in plugin_names:\n- out ... |
gh_patches_debug_397 | rasdani/github-patches | git_diff | ranaroussi__yfinance-1611 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Falure when using single ISIN as a ticker (fix included)
Multiple tickers with ISINs mixed in do work, but a single ISIN fails. Here is the culprit (multi.py):
> if len(tickers) == 1:
> ticker ... | diff --git a/yfinance/multi.py b/yfinance/multi.py
--- a/yfinance/multi.py
+++ b/yfinance/multi.py
@@ -207,7 +207,7 @@
if len(tickers) == 1:
ticker = tickers[0]
- return shared._DFS[shared._ISINS.get(ticker, ticker)]
+ return shared._DFS[ticker]
try:
data = _pd.concat(share... | {"golden_diff": "diff --git a/yfinance/multi.py b/yfinance/multi.py\n--- a/yfinance/multi.py\n+++ b/yfinance/multi.py\n@@ -207,7 +207,7 @@\n \n if len(tickers) == 1:\n ticker = tickers[0]\n- return shared._DFS[shared._ISINS.get(ticker, ticker)]\n+ return shared._DFS[ticker]\n \n try:\n ... |
gh_patches_debug_398 | rasdani/github-patches | git_diff | keras-team__keras-7955 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Wrong result for cosine proximity: keras 2.0.8
# Conclusion: Observation of keras cosine proximity stuck as -1/3 #
As noted by numerous post, Keras seriously currently has an issue with cosine proximity:
... | diff --git a/keras/losses.py b/keras/losses.py
--- a/keras/losses.py
+++ b/keras/losses.py
@@ -71,7 +71,7 @@
def cosine_proximity(y_true, y_pred):
y_true = K.l2_normalize(y_true, axis=-1)
y_pred = K.l2_normalize(y_pred, axis=-1)
- return -K.mean(y_true * y_pred, axis=-1)
+ return -K.sum(y_true * y_pred... | {"golden_diff": "diff --git a/keras/losses.py b/keras/losses.py\n--- a/keras/losses.py\n+++ b/keras/losses.py\n@@ -71,7 +71,7 @@\n def cosine_proximity(y_true, y_pred):\n y_true = K.l2_normalize(y_true, axis=-1)\n y_pred = K.l2_normalize(y_pred, axis=-1)\n- return -K.mean(y_true * y_pred, axis=-1)\n+ retu... |
gh_patches_debug_399 | rasdani/github-patches | git_diff | encode__django-rest-framework-5344 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
3.6.4 Release
Checklist:
- [x] Create pull request for [release notes](https://github.com/tomchristie/django-rest-framework/blob/master/docs/topics/release-notes.md) based on the [3.6.4 milestone](https://... | diff --git a/rest_framework/__init__.py b/rest_framework/__init__.py
--- a/rest_framework/__init__.py
+++ b/rest_framework/__init__.py
@@ -8,7 +8,7 @@
"""
__title__ = 'Django REST framework'
-__version__ = '3.6.3'
+__version__ = '3.6.4'
__author__ = 'Tom Christie'
__license__ = 'BSD 2-Clause'
__copyright__ = 'Co... | {"golden_diff": "diff --git a/rest_framework/__init__.py b/rest_framework/__init__.py\n--- a/rest_framework/__init__.py\n+++ b/rest_framework/__init__.py\n@@ -8,7 +8,7 @@\n \"\"\"\n \n __title__ = 'Django REST framework'\n-__version__ = '3.6.3'\n+__version__ = '3.6.4'\n __author__ = 'Tom Christie'\n __license__ = 'BSD ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.