problem_id
stringlengths
18
22
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
58
prompt
stringlengths
1.1k
10.2k
golden_diff
stringlengths
151
4.94k
verification_info
stringlengths
582
21k
num_tokens
int64
271
2.05k
num_tokens_diff
int64
47
1.02k
gh_patches_debug_589
rasdani/github-patches
git_diff
pex-tool__pex-1377
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.43 On the docket: + [x] Support more verbose output for interpreter info. (#1347) + [x] Fix Pex emitting warnings about its Pip PEX venv. (#1351) + [x] Fix execution modes. (#1353) + [x] War...
diff --git a/pex/version.py b/pex/version.py --- a/pex/version.py +++ b/pex/version.py @@ -1,4 +1,4 @@ # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -__version__ = "2.1.42" +__version__ = "2.1.43"
{"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.42\"\n+__version__ = \"2.1.43\"\n", "...
503
96
gh_patches_debug_38386
rasdani/github-patches
git_diff
pymeasure__pymeasure-782
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- How to test adapter.connection calls Some instruments call the adapter's `connection`property, like #697 which makes ProtocolAdapter fail. Instruments should not be adjusted to make the ProtocolAdapter work. ...
diff --git a/pymeasure/adapters/protocol.py b/pymeasure/adapters/protocol.py --- a/pymeasure/adapters/protocol.py +++ b/pymeasure/adapters/protocol.py @@ -23,6 +23,7 @@ # import logging +from unittest.mock import MagicMock from .adapter import Adapter @@ -50,15 +51,29 @@ This adapter is primarily meant ...
{"golden_diff": "diff --git a/pymeasure/adapters/protocol.py b/pymeasure/adapters/protocol.py\n--- a/pymeasure/adapters/protocol.py\n+++ b/pymeasure/adapters/protocol.py\n@@ -23,6 +23,7 @@\n #\n \n import logging\n+from unittest.mock import MagicMock\n \n from .adapter import Adapter\n \n@@ -50,15 +51,29 @@\n \n Th...
1,996
597
gh_patches_debug_16783
rasdani/github-patches
git_diff
kivy__python-for-android-2842
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- libzmq recipy build fail ### Logs ``` [1m[90m[DEBUG][39m[0m: CXX src/src_libzmq_la-router.lo [1m[90m[DEBUG][39m[0m: In file included from src/mtrie.cpp:32: [1m[90m[DEBUG][39m[0m: ./s...
diff --git a/pythonforandroid/recipes/libzmq/__init__.py b/pythonforandroid/recipes/libzmq/__init__.py --- a/pythonforandroid/recipes/libzmq/__init__.py +++ b/pythonforandroid/recipes/libzmq/__init__.py @@ -6,7 +6,7 @@ class LibZMQRecipe(Recipe): - version = '4.3.2' + version = '4.3.4' url = 'https://gi...
{"golden_diff": "diff --git a/pythonforandroid/recipes/libzmq/__init__.py b/pythonforandroid/recipes/libzmq/__init__.py\n--- a/pythonforandroid/recipes/libzmq/__init__.py\n+++ b/pythonforandroid/recipes/libzmq/__init__.py\n@@ -6,7 +6,7 @@\n \n \n class LibZMQRecipe(Recipe):\n- version = '4.3.2'\n+ version = '4.3....
987
223
gh_patches_debug_10174
rasdani/github-patches
git_diff
pre-commit__pre-commit-96
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- System hooks with spaces in entry are not runnable It's pretty reasonable to have a system hook that looks like this: ``` - id: foo name: foo entry: python -m bar language: system ``` Currentl...
diff --git a/pre_commit/languages/system.py b/pre_commit/languages/system.py --- a/pre_commit/languages/system.py +++ b/pre_commit/languages/system.py @@ -1,3 +1,6 @@ +import shlex + + ENVIRONMENT_DIR = None @@ -7,7 +10,7 @@ def run_hook(repo_cmd_runner, hook, file_args): return repo_cmd_runner.run( - ...
{"golden_diff": "diff --git a/pre_commit/languages/system.py b/pre_commit/languages/system.py\n--- a/pre_commit/languages/system.py\n+++ b/pre_commit/languages/system.py\n@@ -1,3 +1,6 @@\n+import shlex\n+\n+\n ENVIRONMENT_DIR = None\n \n \n@@ -7,7 +10,7 @@\n \n def run_hook(repo_cmd_runner, hook, file_args):\n retu...
465
159
gh_patches_debug_19377
rasdani/github-patches
git_diff
scrapy__scrapy-5526
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Response.headers loses data on multiple values https://github.com/scrapy/scrapy/issues/1262 reported that by default `response.headers` would only expose the first value of a header e.g. when casted as a `dic...
diff --git a/scrapy/http/headers.py b/scrapy/http/headers.py --- a/scrapy/http/headers.py +++ b/scrapy/http/headers.py @@ -1,3 +1,5 @@ +from collections.abc import Mapping + from w3lib.http import headers_dict_to_raw from scrapy.utils.datatypes import CaselessDict from scrapy.utils.python import to_unicode @@ -10,6 ...
{"golden_diff": "diff --git a/scrapy/http/headers.py b/scrapy/http/headers.py\n--- a/scrapy/http/headers.py\n+++ b/scrapy/http/headers.py\n@@ -1,3 +1,5 @@\n+from collections.abc import Mapping\n+\n from w3lib.http import headers_dict_to_raw\n from scrapy.utils.datatypes import CaselessDict\n from scrapy.utils.python im...
1,169
237
gh_patches_debug_29067
rasdani/github-patches
git_diff
comic__grand-challenge.org-1008
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Chunked uploads not attempting retries I forgot to implement the actual retry-portion for the jQuery file uploading. As such, jQuery file upload will only try to upload a given chunk once. See here: https:...
diff --git a/app/grandchallenge/jqfileupload/views.py b/app/grandchallenge/jqfileupload/views.py --- a/app/grandchallenge/jqfileupload/views.py +++ b/app/grandchallenge/jqfileupload/views.py @@ -3,6 +3,7 @@ from django.utils.timezone import now from rest_framework import mixins +from rest_framework.decorators impor...
{"golden_diff": "diff --git a/app/grandchallenge/jqfileupload/views.py b/app/grandchallenge/jqfileupload/views.py\n--- a/app/grandchallenge/jqfileupload/views.py\n+++ b/app/grandchallenge/jqfileupload/views.py\n@@ -3,6 +3,7 @@\n \n from django.utils.timezone import now\n from rest_framework import mixins\n+from rest_fr...
1,213
380
gh_patches_debug_20384
rasdani/github-patches
git_diff
wagtail__wagtail-7934
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Wagtail 2.16 - Slim Sidebar open only settings ### Issue Summary When click on any menu item with submenu pages, the settings submenu always opens. ### Steps to Reproduce 1. Open admin page 2. Click ...
diff --git a/wagtail/admin/menu.py b/wagtail/admin/menu.py --- a/wagtail/admin/menu.py +++ b/wagtail/admin/menu.py @@ -2,11 +2,11 @@ from django.forms.utils import flatatt from django.template.loader import render_to_string from django.utils.safestring import mark_safe -from django.utils.text import slugify from ...
{"golden_diff": "diff --git a/wagtail/admin/menu.py b/wagtail/admin/menu.py\n--- a/wagtail/admin/menu.py\n+++ b/wagtail/admin/menu.py\n@@ -2,11 +2,11 @@\n from django.forms.utils import flatatt\n from django.template.loader import render_to_string\n from django.utils.safestring import mark_safe\n-from django.utils.text...
1,879
212
gh_patches_debug_23282
rasdani/github-patches
git_diff
open-mmlab__mmdetection-2170
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError: Can't pickle local object 'build_dataloader.<locals>.worker_init_fn' Recently, I update pytorch to 1.4. When running `tools/dist_train.sh submitted/faster_giou_train_config.py 1 --validate --a...
diff --git a/mmdet/datasets/loader/build_loader.py b/mmdet/datasets/loader/build_loader.py --- a/mmdet/datasets/loader/build_loader.py +++ b/mmdet/datasets/loader/build_loader.py @@ -61,12 +61,9 @@ batch_size = num_gpus * imgs_per_gpu num_workers = num_gpus * workers_per_gpu - def worker_init_fn(...
{"golden_diff": "diff --git a/mmdet/datasets/loader/build_loader.py b/mmdet/datasets/loader/build_loader.py\n--- a/mmdet/datasets/loader/build_loader.py\n+++ b/mmdet/datasets/loader/build_loader.py\n@@ -61,12 +61,9 @@\n batch_size = num_gpus * imgs_per_gpu\n num_workers = num_gpus * workers_per_gpu\n \n...
1,197
343
gh_patches_debug_25026
rasdani/github-patches
git_diff
dask__distributed-5822
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- importing distributed runs 4 `git` subprocesses in CI (when installed with -e) I noticed that tests that run a dask subprocess are often flakey on CI (especially so on low performance macos runners) https:...
diff --git a/distributed/__init__.py b/distributed/__init__.py --- a/distributed/__init__.py +++ b/distributed/__init__.py @@ -1,10 +1,12 @@ from . import config # isort:skip; load distributed configuration first from . import widgets # isort:skip; load distributed widgets second + + import dask from dask.config ...
{"golden_diff": "diff --git a/distributed/__init__.py b/distributed/__init__.py\n--- a/distributed/__init__.py\n+++ b/distributed/__init__.py\n@@ -1,10 +1,12 @@\n from . import config # isort:skip; load distributed configuration first\n from . import widgets # isort:skip; load distributed widgets second\n+\n+\n impor...
1,603
339
gh_patches_debug_12499
rasdani/github-patches
git_diff
zulip__zulip-16602
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Translation for zh_TW gets ignored in some places In the webapp, if I try switching to the translation for "Chinese (Taiwan)", a lot of the text on the screen is still untranslated: ![image](https://user-ima...
diff --git a/zerver/lib/i18n.py b/zerver/lib/i18n.py --- a/zerver/lib/i18n.py +++ b/zerver/lib/i18n.py @@ -73,13 +73,8 @@ def get_language_translation_data(language: str) -> Dict[str, str]: if language == 'en': return {} - elif language == 'zh-hans': - language = 'zh_Hans' - elif language ==...
{"golden_diff": "diff --git a/zerver/lib/i18n.py b/zerver/lib/i18n.py\n--- a/zerver/lib/i18n.py\n+++ b/zerver/lib/i18n.py\n@@ -73,13 +73,8 @@\n def get_language_translation_data(language: str) -> Dict[str, str]:\n if language == 'en':\n return {}\n- elif language == 'zh-hans':\n- language = 'zh_Ha...
1,884
212
gh_patches_debug_19677
rasdani/github-patches
git_diff
conda__conda-7178
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Channel pins in "environment.yaml" files are not saved to package specs Channel pins specified in environment files are not respected. For example,run ```conda env create``` with this environment file: ``...
diff --git a/conda_env/installers/conda.py b/conda_env/installers/conda.py --- a/conda_env/installers/conda.py +++ b/conda_env/installers/conda.py @@ -11,19 +11,8 @@ def install(prefix, specs, args, env, *_, **kwargs): # TODO: support all various ways this happens # Including 'nodefaults' in the channels lis...
{"golden_diff": "diff --git a/conda_env/installers/conda.py b/conda_env/installers/conda.py\n--- a/conda_env/installers/conda.py\n+++ b/conda_env/installers/conda.py\n@@ -11,19 +11,8 @@\n def install(prefix, specs, args, env, *_, **kwargs):\n # TODO: support all various ways this happens\n # Including 'nodefaul...
811
282
gh_patches_debug_1923
rasdani/github-patches
git_diff
ivy-llc__ivy-18252
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- broadcast_to --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ivy/functional/frontends/paddle/tensor/manipu...
diff --git a/ivy/functional/frontends/paddle/tensor/manipulation.py b/ivy/functional/frontends/paddle/tensor/manipulation.py --- a/ivy/functional/frontends/paddle/tensor/manipulation.py +++ b/ivy/functional/frontends/paddle/tensor/manipulation.py @@ -78,3 +78,12 @@ @to_ivy_arrays_and_back def cast(x, dtype): ret...
{"golden_diff": "diff --git a/ivy/functional/frontends/paddle/tensor/manipulation.py b/ivy/functional/frontends/paddle/tensor/manipulation.py\n--- a/ivy/functional/frontends/paddle/tensor/manipulation.py\n+++ b/ivy/functional/frontends/paddle/tensor/manipulation.py\n@@ -78,3 +78,12 @@\n @to_ivy_arrays_and_back\n def ca...
972
186
gh_patches_debug_25597
rasdani/github-patches
git_diff
litestar-org__litestar-1404
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- StaticFilesConfig and virtual directories I'm trying to write a ``FileSystemProtocol`` to load files from the package data using [importlib_resources](https://importlib-resources.readthedocs.io/en/latest/usin...
diff --git a/docs/examples/stores/registry_configure_integrations.py b/docs/examples/stores/registry_configure_integrations.py --- a/docs/examples/stores/registry_configure_integrations.py +++ b/docs/examples/stores/registry_configure_integrations.py @@ -8,7 +8,7 @@ app = Starlite( stores={ "sessions": R...
{"golden_diff": "diff --git a/docs/examples/stores/registry_configure_integrations.py b/docs/examples/stores/registry_configure_integrations.py\n--- a/docs/examples/stores/registry_configure_integrations.py\n+++ b/docs/examples/stores/registry_configure_integrations.py\n@@ -8,7 +8,7 @@\n app = Starlite(\n stores={\...
1,265
394
gh_patches_debug_12286
rasdani/github-patches
git_diff
comic__grand-challenge.org-2551
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Flatpages and Redirects broken when using ASGI Examples: - https://grand-challenge.org/about/ (flatpage, exists) - https://grand-challenge.org/about (should redirect to https://grand-challenge.org/about/)...
diff --git a/app/grandchallenge/core/middleware.py b/app/grandchallenge/core/middleware.py --- a/app/grandchallenge/core/middleware.py +++ b/app/grandchallenge/core/middleware.py @@ -17,9 +17,6 @@ half logged in by mistake. """ - def __init__(self, get_response): - self.get_response = get_resp...
{"golden_diff": "diff --git a/app/grandchallenge/core/middleware.py b/app/grandchallenge/core/middleware.py\n--- a/app/grandchallenge/core/middleware.py\n+++ b/app/grandchallenge/core/middleware.py\n@@ -17,9 +17,6 @@\n half logged in by mistake.\r\n \"\"\"\r\n \r\n- def __init__(self, get_response):\r\n- ...
786
149
gh_patches_debug_39502
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-5311
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- toolstation spider now not returning any UK stores The most recent run of the toolstation.py spider from 2023-05-15 has lost about 550 stores compared to the previous run from 2023-04-15. This corresponds to ...
diff --git a/locations/spiders/toolstation.py b/locations/spiders/toolstation.py --- a/locations/spiders/toolstation.py +++ b/locations/spiders/toolstation.py @@ -1,9 +1,12 @@ import json import re +import chompjs import scrapy from locations.dict_parser import DictParser +from locations.hours import OpeningHou...
{"golden_diff": "diff --git a/locations/spiders/toolstation.py b/locations/spiders/toolstation.py\n--- a/locations/spiders/toolstation.py\n+++ b/locations/spiders/toolstation.py\n@@ -1,9 +1,12 @@\n import json\n import re\n \n+import chompjs\n import scrapy\n \n from locations.dict_parser import DictParser\n+from locat...
740
914
gh_patches_debug_6240
rasdani/github-patches
git_diff
hylang__hy-2554
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- An exemplar Hy program When you have a new programming language, it really helps—for the purposes of advertising the language, of helping people learn how to use it, and of giving the language a broader and m...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -75,6 +75,7 @@ "License :: DFSG approved", "License :: OSI Approved :: MIT License", # Really "Expat". Ugh. "Operating System :: OS Independent", + "Programming Language :: Hy", "Programming Language :: Lisp", ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -75,6 +75,7 @@\n \"License :: DFSG approved\",\n \"License :: OSI Approved :: MIT License\", # Really \"Expat\". Ugh.\n \"Operating System :: OS Independent\",\n+ \"Programming Language :: Hy\",\n ...
1,579
100
gh_patches_debug_15849
rasdani/github-patches
git_diff
iterative__dvc-2693
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pull: wrong warning on pulling import stage Script to reproduce: ``` mkdir test dvc import https://github.com/iterative/example-get-started model.pkl git add . git commit -am "init" cd .. git clone t...
diff --git a/dvc/repo/checkout.py b/dvc/repo/checkout.py --- a/dvc/repo/checkout.py +++ b/dvc/repo/checkout.py @@ -50,12 +50,6 @@ total=total, unit="file", desc="Checkout", disable=total == 0 ) as pbar: for stage in stages: - if stage.locked: - logger.warning( - ...
{"golden_diff": "diff --git a/dvc/repo/checkout.py b/dvc/repo/checkout.py\n--- a/dvc/repo/checkout.py\n+++ b/dvc/repo/checkout.py\n@@ -50,12 +50,6 @@\n total=total, unit=\"file\", desc=\"Checkout\", disable=total == 0\n ) as pbar:\n for stage in stages:\n- if stage.locked:\n- ...
1,137
246
gh_patches_debug_22798
rasdani/github-patches
git_diff
svthalia__concrexit-3184
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow people to delete albums without pushnotifications permissions ### Describe the bug The paparazcie cannot delete albums because they don't (didn't, I temporarily gave them permissions) have delete permi...
diff --git a/website/photos/admin.py b/website/photos/admin.py --- a/website/photos/admin.py +++ b/website/photos/admin.py @@ -70,6 +70,18 @@ _("Full-sized photos will not be saved on the Thalia-website."), ) + def get_deleted_objects(self, objs, request): + ( + dele...
{"golden_diff": "diff --git a/website/photos/admin.py b/website/photos/admin.py\n--- a/website/photos/admin.py\n+++ b/website/photos/admin.py\n@@ -70,6 +70,18 @@\n _(\"Full-sized photos will not be saved on the Thalia-website.\"),\n )\n \n+ def get_deleted_objects(self, objs, request):\n+...
1,425
294
gh_patches_debug_23986
rasdani/github-patches
git_diff
PokemonGoF__PokemonGo-Bot-4724
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [FollowPath] position_update log frequency position_update log entries for FollowPath appear too often, like every 1.5 seconds, with distance changes from 1 meter to 5 meter depend on the random speed. It's k...
diff --git a/pokemongo_bot/base_task.py b/pokemongo_bot/base_task.py --- a/pokemongo_bot/base_task.py +++ b/pokemongo_bot/base_task.py @@ -1,5 +1,7 @@ import logging +import time + class BaseTask(object): TASK_API_VERSION = 1 @@ -17,6 +19,7 @@ self._validate_work_exists() self.logger = logging.getLog...
{"golden_diff": "diff --git a/pokemongo_bot/base_task.py b/pokemongo_bot/base_task.py\n--- a/pokemongo_bot/base_task.py\n+++ b/pokemongo_bot/base_task.py\n@@ -1,5 +1,7 @@\n import logging\n \n+import time\n+\n \n class BaseTask(object):\n TASK_API_VERSION = 1\n@@ -17,6 +19,7 @@\n self._validate_work_exists()\n ...
620
318
gh_patches_debug_3090
rasdani/github-patches
git_diff
docker__docker-py-1671
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Issue with port option in 2.4.0 version Hi, I update to the 2.4 today and i got issue with docker-compose when i try to add the following line to my configuration file (docker-compose.yml) : `ports: ...
diff --git a/docker/utils/ports.py b/docker/utils/ports.py --- a/docker/utils/ports.py +++ b/docker/utils/ports.py @@ -54,6 +54,11 @@ def split_port(port): + if hasattr(port, 'legacy_repr'): + # This is the worst hack, but it prevents a bug in Compose 1.14.0 + # https://github.com/docker/docker-py...
{"golden_diff": "diff --git a/docker/utils/ports.py b/docker/utils/ports.py\n--- a/docker/utils/ports.py\n+++ b/docker/utils/ports.py\n@@ -54,6 +54,11 @@\n \n \n def split_port(port):\n+ if hasattr(port, 'legacy_repr'):\n+ # This is the worst hack, but it prevents a bug in Compose 1.14.0\n+ # https://g...
1,680
146
gh_patches_debug_20319
rasdani/github-patches
git_diff
pantsbuild__pants-12885
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `DigestEntries` returns a `Directory` instead of an empty vector for non-matching digest --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bu...
diff --git a/src/python/pants/jvm/util_rules.py b/src/python/pants/jvm/util_rules.py --- a/src/python/pants/jvm/util_rules.py +++ b/src/python/pants/jvm/util_rules.py @@ -18,8 +18,7 @@ @rule async def digest_to_file_digest(request: ExtractFileDigest) -> FileDigest: digest = await Get(Digest, DigestSubset(request...
{"golden_diff": "diff --git a/src/python/pants/jvm/util_rules.py b/src/python/pants/jvm/util_rules.py\n--- a/src/python/pants/jvm/util_rules.py\n+++ b/src/python/pants/jvm/util_rules.py\n@@ -18,8 +18,7 @@\n @rule\n async def digest_to_file_digest(request: ExtractFileDigest) -> FileDigest:\n digest = await Get(Diges...
636
261
gh_patches_debug_29212
rasdani/github-patches
git_diff
NVIDIA-Merlin__NVTabular-1414
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [FEA] Simplify AddMetadata Tag for NVTabular **Is your feature request related to a problem? Please describe.** Currently, we provide the functionality for the user to tag columns with the operator `AddMetad...
diff --git a/nvtabular/ops/__init__.py b/nvtabular/ops/__init__.py --- a/nvtabular/ops/__init__.py +++ b/nvtabular/ops/__init__.py @@ -16,7 +16,15 @@ # alias submodules here to avoid breaking everything with moving to submodules # flake8: noqa -from .add_metadata import AddMetadata +from .add_metadata import ( + ...
{"golden_diff": "diff --git a/nvtabular/ops/__init__.py b/nvtabular/ops/__init__.py\n--- a/nvtabular/ops/__init__.py\n+++ b/nvtabular/ops/__init__.py\n@@ -16,7 +16,15 @@\n \n # alias submodules here to avoid breaking everything with moving to submodules\n # flake8: noqa\n-from .add_metadata import AddMetadata\n+from .a...
1,224
499
gh_patches_debug_17762
rasdani/github-patches
git_diff
pytorch__TensorRT-2505
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `aten.arange.start_step` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `py/torch_tensorrt/dynamo/conversi...
diff --git a/py/torch_tensorrt/dynamo/conversion/ops_evaluators.py b/py/torch_tensorrt/dynamo/conversion/ops_evaluators.py --- a/py/torch_tensorrt/dynamo/conversion/ops_evaluators.py +++ b/py/torch_tensorrt/dynamo/conversion/ops_evaluators.py @@ -2,6 +2,7 @@ import operator from typing import Dict, Sequence, Tuple, U...
{"golden_diff": "diff --git a/py/torch_tensorrt/dynamo/conversion/ops_evaluators.py b/py/torch_tensorrt/dynamo/conversion/ops_evaluators.py\n--- a/py/torch_tensorrt/dynamo/conversion/ops_evaluators.py\n+++ b/py/torch_tensorrt/dynamo/conversion/ops_evaluators.py\n@@ -2,6 +2,7 @@\n import operator\n from typing import Di...
640
262
gh_patches_debug_7041
rasdani/github-patches
git_diff
mozilla__bugbug-2806
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Change needsdiagnosis model to consider moved milestone as `needsdiagnosis = True` We have observed that needsdiagnosis model classifies certain issues that potentially need diagnosis as `needsdiagnosis = Fal...
diff --git a/bugbug/models/needsdiagnosis.py b/bugbug/models/needsdiagnosis.py --- a/bugbug/models/needsdiagnosis.py +++ b/bugbug/models/needsdiagnosis.py @@ -71,9 +71,9 @@ continue for event in issue["events"]: - if ( - event["event"] == "milestoned" - ...
{"golden_diff": "diff --git a/bugbug/models/needsdiagnosis.py b/bugbug/models/needsdiagnosis.py\n--- a/bugbug/models/needsdiagnosis.py\n+++ b/bugbug/models/needsdiagnosis.py\n@@ -71,9 +71,9 @@\n continue\n \n for event in issue[\"events\"]:\n- if (\n- event[...
1,521
160
gh_patches_debug_6599
rasdani/github-patches
git_diff
svthalia__concrexit-2585
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError: 'Event' object has no attribute 'number_regs' Sentry Issue: [CONCREXIT-HC](https://sentry.io/organizations/thalia/issues/3639420824/?referrer=github_integration) ``` AttributeError: 'Event' o...
diff --git a/website/events/api/v2/serializers/event.py b/website/events/api/v2/serializers/event.py --- a/website/events/api/v2/serializers/event.py +++ b/website/events/api/v2/serializers/event.py @@ -83,10 +83,7 @@ return None def _num_participants(self, instance): - participant_count = instan...
{"golden_diff": "diff --git a/website/events/api/v2/serializers/event.py b/website/events/api/v2/serializers/event.py\n--- a/website/events/api/v2/serializers/event.py\n+++ b/website/events/api/v2/serializers/event.py\n@@ -83,10 +83,7 @@\n return None\n \n def _num_participants(self, instance):\n- pa...
1,301
150
gh_patches_debug_2279
rasdani/github-patches
git_diff
geopandas__geopandas-648
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Descartes dependency In the docs, geopandas lists descartes and matplotlib as optional dependencies. However, descartes is listed as an install_requires in the setup.py. One of the two should be updated. I...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ if os.environ.get('READTHEDOCS', False) == 'True': INSTALL_REQUIRES = [] else: - INSTALL_REQUIRES = ['pandas', 'shapely', 'fiona', 'descartes', 'pyproj'] + INSTALL_REQUIRES = ['pandas', 'shapely', 'fiona', 'pyproj'] # get a...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -29,7 +29,7 @@\n if os.environ.get('READTHEDOCS', False) == 'True':\n INSTALL_REQUIRES = []\n else:\n- INSTALL_REQUIRES = ['pandas', 'shapely', 'fiona', 'descartes', 'pyproj']\n+ INSTALL_REQUIRES = ['pandas', 'shapely', 'fio...
888
123
gh_patches_debug_38231
rasdani/github-patches
git_diff
pyro-ppl__pyro-365
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Incorrect result from Delta's batch_log_pdf It looks like there may be a bug in Delta's `batch_log_pdf` method. When the value we're computing the log prob of doesn't match the parameter I expect `batch_log_p...
diff --git a/pyro/distributions/__init__.py b/pyro/distributions/__init__.py --- a/pyro/distributions/__init__.py +++ b/pyro/distributions/__init__.py @@ -23,7 +23,7 @@ categorical = Categorical() bernoulli = RandomPrimitive(Bernoulli) beta = RandomPrimitive(Beta) -delta = Delta() +delta = RandomPrimitive(Delta) ex...
{"golden_diff": "diff --git a/pyro/distributions/__init__.py b/pyro/distributions/__init__.py\n--- a/pyro/distributions/__init__.py\n+++ b/pyro/distributions/__init__.py\n@@ -23,7 +23,7 @@\n categorical = Categorical()\n bernoulli = RandomPrimitive(Bernoulli)\n beta = RandomPrimitive(Beta)\n-delta = Delta()\n+delta = R...
1,472
859
gh_patches_debug_7945
rasdani/github-patches
git_diff
hpcaitech__ColossalAI-4253
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs....
diff --git a/colossalai/booster/mixed_precision/mixed_precision_base.py b/colossalai/booster/mixed_precision/mixed_precision_base.py --- a/colossalai/booster/mixed_precision/mixed_precision_base.py +++ b/colossalai/booster/mixed_precision/mixed_precision_base.py @@ -13,10 +13,11 @@ """ @abstractmethod - ...
{"golden_diff": "diff --git a/colossalai/booster/mixed_precision/mixed_precision_base.py b/colossalai/booster/mixed_precision/mixed_precision_base.py\n--- a/colossalai/booster/mixed_precision/mixed_precision_base.py\n+++ b/colossalai/booster/mixed_precision/mixed_precision_base.py\n@@ -13,10 +13,11 @@\n \"\"\"\n \n...
452
207
gh_patches_debug_16262
rasdani/github-patches
git_diff
web2py__web2py-1459
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- using web2py with Passenger I'm using web2py on [Dreamhost ](https://www.dreamhost.com/)with the recommended [Phusion Passenger](https://www.phusionpassenger.com/) as the deployment web server. I configured...
diff --git a/handlers/wsgihandler.py b/handlers/wsgihandler.py --- a/handlers/wsgihandler.py +++ b/handlers/wsgihandler.py @@ -7,22 +7,16 @@ License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) -This is a WSGI handler for Apache -Requires apache+mod_wsgi. - -In httpd.conf put something like: - - LoadModule w...
{"golden_diff": "diff --git a/handlers/wsgihandler.py b/handlers/wsgihandler.py\n--- a/handlers/wsgihandler.py\n+++ b/handlers/wsgihandler.py\n@@ -7,22 +7,16 @@\n License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n \n \n-This is a WSGI handler for Apache\n-Requires apache+mod_wsgi.\n-\n-In httpd.conf put somethin...
932
243
gh_patches_debug_24420
rasdani/github-patches
git_diff
nautobot__nautobot-1381
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- nautobot-scheduler can't apply celery_backend_cleanup_1 <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reporting reproducible bugs. If you need as...
diff --git a/nautobot/core/celery/schedulers.py b/nautobot/core/celery/schedulers.py --- a/nautobot/core/celery/schedulers.py +++ b/nautobot/core/celery/schedulers.py @@ -2,6 +2,7 @@ from celery import current_app from django_celery_beat.schedulers import ModelEntry, DatabaseScheduler +from kombu.utils.json import ...
{"golden_diff": "diff --git a/nautobot/core/celery/schedulers.py b/nautobot/core/celery/schedulers.py\n--- a/nautobot/core/celery/schedulers.py\n+++ b/nautobot/core/celery/schedulers.py\n@@ -2,6 +2,7 @@\n \n from celery import current_app\n from django_celery_beat.schedulers import ModelEntry, DatabaseScheduler\n+from ...
1,615
314
gh_patches_debug_34635
rasdani/github-patches
git_diff
pypi__warehouse-9983
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Vulnerability reporting task is not resilient to deleted releases Currently attempting to publish a vulnerability report for a notification that includes release versions that have been deleted (or never exis...
diff --git a/warehouse/integrations/vulnerabilities/utils.py b/warehouse/integrations/vulnerabilities/utils.py --- a/warehouse/integrations/vulnerabilities/utils.py +++ b/warehouse/integrations/vulnerabilities/utils.py @@ -10,7 +10,7 @@ # See the License for the specific language governing permissions and # limitatio...
{"golden_diff": "diff --git a/warehouse/integrations/vulnerabilities/utils.py b/warehouse/integrations/vulnerabilities/utils.py\n--- a/warehouse/integrations/vulnerabilities/utils.py\n+++ b/warehouse/integrations/vulnerabilities/utils.py\n@@ -10,7 +10,7 @@\n # See the License for the specific language governing permiss...
1,901
418
gh_patches_debug_601
rasdani/github-patches
git_diff
pex-tool__pex-1288
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.35 On the docket: + [x] Ensure venv pex does not enter a re-exec loop. #1286 + [x] Improve resolve error information. #1287 + [x] Expose Pex tools via a pex-tools console script. #1279 + [x]...
diff --git a/pex/version.py b/pex/version.py --- a/pex/version.py +++ b/pex/version.py @@ -1,4 +1,4 @@ # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -__version__ = "2.1.34" +__version__ = "2.1.35"
{"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.34\"\n+__version__ = \"2.1.35\"\n", "...
406
96
gh_patches_debug_17947
rasdani/github-patches
git_diff
conda__conda-build-690
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Entry point pattern doesn't match entrypoints:with.dots Hi, Could you please have a look to this. I define entry point as ``` python entry_points={ 'console_scripts': [ 'poultry = poultry.main:d...
diff --git a/conda_build/scripts.py b/conda_build/scripts.py --- a/conda_build/scripts.py +++ b/conda_build/scripts.py @@ -18,14 +18,14 @@ PY_TMPL = """\ if __name__ == '__main__': import sys - from %s import %s + import %(module)s - sys.exit(%s()) + sys.exit(%(module)s.%(func)s()) """ bin_dirn...
{"golden_diff": "diff --git a/conda_build/scripts.py b/conda_build/scripts.py\n--- a/conda_build/scripts.py\n+++ b/conda_build/scripts.py\n@@ -18,14 +18,14 @@\n PY_TMPL = \"\"\"\\\n if __name__ == '__main__':\n import sys\n- from %s import %s\n+ import %(module)s\n \n- sys.exit(%s())\n+ sys.exit(%(modul...
1,039
283
gh_patches_debug_22050
rasdani/github-patches
git_diff
kartoza__prj.app-301
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- In the pending approval menu, only show menu items that have pending approvals The **Pending approval** menu should be filtered to show only items in the active project where there are pending approvals. --...
diff --git a/django_project/core/custom_middleware.py b/django_project/core/custom_middleware.py --- a/django_project/core/custom_middleware.py +++ b/django_project/core/custom_middleware.py @@ -3,7 +3,8 @@ """ core.custom_middleware """ -from base.models import Project +from base.models import Project, Version +fro...
{"golden_diff": "diff --git a/django_project/core/custom_middleware.py b/django_project/core/custom_middleware.py\n--- a/django_project/core/custom_middleware.py\n+++ b/django_project/core/custom_middleware.py\n@@ -3,7 +3,8 @@\n \"\"\"\n core.custom_middleware\n \"\"\"\n-from base.models import Project\n+from base.mode...
1,186
263
gh_patches_debug_18
rasdani/github-patches
git_diff
OCHA-DAP__hdx-ckan-2012
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Title of the Colombia page should be "Colombia Country Page" or alike Right now the title of the [Colombia country page](https://data.hdx.rwlabs.org/group/col) is "Colombia crisis page". I think it should rea...
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/version.py b/ckanext-hdx_theme/ckanext/hdx_theme/version.py --- a/ckanext-hdx_theme/ckanext/hdx_theme/version.py +++ b/ckanext-hdx_theme/ckanext/hdx_theme/version.py @@ -1 +1 @@ -hdx_version = 'v0.5.10' +hdx_version = 'v0.5.11'
{"golden_diff": "diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/version.py b/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n--- a/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n+++ b/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n@@ -1 +1 @@\n-hdx_version = 'v0.5.10'\n+hdx_version = 'v0.5.11'\n", "issue": "Title o...
437
108
gh_patches_debug_43071
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-1917
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug]: rctcbc_gov_uk returning extra incorrect dates ### I Have A Problem With: A specific source ### What's Your Problem I've been using this integration for a while without issue. I've been away for a ...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/rctcbc_gov_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/rctcbc_gov_uk.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/rctcbc_gov_uk.py +++ b/custom_comp...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/rctcbc_gov_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/rctcbc_gov_uk.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/rctcbc_gov_uk.py...
1,371
1,013
gh_patches_debug_9314
rasdani/github-patches
git_diff
ansible__ansible-lint-110
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- False positive detecting OctalPermissionsRule When trying to setgid permissions ``` [ANSIBLE0008] Octal file permissions must contain leading zero mode: 02775 ``` Looks like the regex requires exactly 3 dig...
diff --git a/lib/ansiblelint/rules/OctalPermissionsRule.py b/lib/ansiblelint/rules/OctalPermissionsRule.py --- a/lib/ansiblelint/rules/OctalPermissionsRule.py +++ b/lib/ansiblelint/rules/OctalPermissionsRule.py @@ -33,7 +33,7 @@ # At least an indent, "mode:", optional whitespace, any digits, EOL mode_regex = ...
{"golden_diff": "diff --git a/lib/ansiblelint/rules/OctalPermissionsRule.py b/lib/ansiblelint/rules/OctalPermissionsRule.py\n--- a/lib/ansiblelint/rules/OctalPermissionsRule.py\n+++ b/lib/ansiblelint/rules/OctalPermissionsRule.py\n@@ -33,7 +33,7 @@\n # At least an indent, \"mode:\", optional whitespace, any digits,...
939
198
gh_patches_debug_10929
rasdani/github-patches
git_diff
crytic__slither-403
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix embark and etherscan GH actions - Embark fails on all our github actions (including crytic-compile) since ~1 month. The tests work locally, but it seems that some recent changes in the latest embark makes...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -10,9 +10,9 @@ python_requires='>=3.6', install_requires=['prettytable>=0.7.2', 'pysha3>=1.0.2', - 'crytic-compile>=0.1.6'], -# 'crytic-compile'], -# dependency_links=['git+ht...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -10,9 +10,9 @@\n python_requires='>=3.6',\n install_requires=['prettytable>=0.7.2',\n 'pysha3>=1.0.2',\n- 'crytic-compile>=0.1.6'],\n-# 'crytic-compile'],\n-# ...
822
196
gh_patches_debug_8216
rasdani/github-patches
git_diff
huggingface__accelerate-50
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Mismatch between `accelerate config` cli and `default_config.yaml` The generated `default_config.yaml` is mismatch with `accelerate config`. Here are my cli outputs and `default_config.yaml` cli output...
diff --git a/src/accelerate/commands/config/cluster.py b/src/accelerate/commands/config/cluster.py --- a/src/accelerate/commands/config/cluster.py +++ b/src/accelerate/commands/config/cluster.py @@ -46,7 +46,7 @@ main_process_ip = _ask_field( "What is the IP address of the machine that wil...
{"golden_diff": "diff --git a/src/accelerate/commands/config/cluster.py b/src/accelerate/commands/config/cluster.py\n--- a/src/accelerate/commands/config/cluster.py\n+++ b/src/accelerate/commands/config/cluster.py\n@@ -46,7 +46,7 @@\n main_process_ip = _ask_field(\n \"What is the IP address ...
1,475
139
gh_patches_debug_11831
rasdani/github-patches
git_diff
beeware__toga-1485
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- RuntimeError in toga-demo **Describe the bug** when you run the toga-demo app and click on "Action 2" and then either Yes or No at the dialog, you get ```RuntimeError: Can't check dialog result directly; use...
diff --git a/demo/toga_demo/app.py b/demo/toga_demo/app.py --- a/demo/toga_demo/app.py +++ b/demo/toga_demo/app.py @@ -87,8 +87,8 @@ def action1(self, widget): self.main_window.info_dialog('Toga', 'THIS! IS! TOGA!!') - def action2(self, widget): - if self.main_window.question_dialog('Toga', 'I...
{"golden_diff": "diff --git a/demo/toga_demo/app.py b/demo/toga_demo/app.py\n--- a/demo/toga_demo/app.py\n+++ b/demo/toga_demo/app.py\n@@ -87,8 +87,8 @@\n def action1(self, widget):\n self.main_window.info_dialog('Toga', 'THIS! IS! TOGA!!')\n \n- def action2(self, widget):\n- if self.main_window.q...
1,589
180
gh_patches_debug_37486
rasdani/github-patches
git_diff
PokemonGoF__PokemonGo-Bot-4443
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Create small random change of position to resume the Bot after some time off When you stop the Bot (by more than X hours for example) does not return the exact same position. It is strange to stay a few hours...
diff --git a/pokemongo_bot/cell_workers/sleep_schedule.py b/pokemongo_bot/cell_workers/sleep_schedule.py --- a/pokemongo_bot/cell_workers/sleep_schedule.py +++ b/pokemongo_bot/cell_workers/sleep_schedule.py @@ -18,6 +18,7 @@ "duration":"5:30", "time_random_offset": "00:30", "duration_ra...
{"golden_diff": "diff --git a/pokemongo_bot/cell_workers/sleep_schedule.py b/pokemongo_bot/cell_workers/sleep_schedule.py\n--- a/pokemongo_bot/cell_workers/sleep_schedule.py\n+++ b/pokemongo_bot/cell_workers/sleep_schedule.py\n@@ -18,6 +18,7 @@\n \"duration\":\"5:30\",\n \"time_random_offset\": \"00...
1,760
613
gh_patches_debug_19850
rasdani/github-patches
git_diff
PyGithub__PyGithub-1894
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug in repr(PublicKey) hi there. there is a bug in "repo.get_public_key". i found this bug by trying to use "repo.create_secret", which failed because of this issue ``` repo.get_public_key() Traceb...
diff --git a/github/PublicKey.py b/github/PublicKey.py --- a/github/PublicKey.py +++ b/github/PublicKey.py @@ -65,7 +65,7 @@ @property def key_id(self): """ - :type: string + :type: string or int """ self._completeIfNotSet(self._key_id) return self._key_id.val...
{"golden_diff": "diff --git a/github/PublicKey.py b/github/PublicKey.py\n--- a/github/PublicKey.py\n+++ b/github/PublicKey.py\n@@ -65,7 +65,7 @@\n @property\n def key_id(self):\n \"\"\"\n- :type: string\n+ :type: string or int\n \"\"\"\n self._completeIfNotSet(self._key_id)...
1,511
235
gh_patches_debug_6748
rasdani/github-patches
git_diff
internetarchive__openlibrary-7922
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update solr Docker tag to v8.11.2 [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|--...
diff --git a/openlibrary/solr/types_generator.py b/openlibrary/solr/types_generator.py --- a/openlibrary/solr/types_generator.py +++ b/openlibrary/solr/types_generator.py @@ -10,7 +10,9 @@ import xml.etree.ElementTree as ET # read the managed-schema xml file - solr_schema = ET.parse(os.path.join(root, '....
{"golden_diff": "diff --git a/openlibrary/solr/types_generator.py b/openlibrary/solr/types_generator.py\n--- a/openlibrary/solr/types_generator.py\n+++ b/openlibrary/solr/types_generator.py\n@@ -10,7 +10,9 @@\n import xml.etree.ElementTree as ET\n \n # read the managed-schema xml file\n- solr_schema = ET.par...
1,419
162
gh_patches_debug_15540
rasdani/github-patches
git_diff
mathesar-foundation__mathesar-350
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ensure that only Postgres databases are connected **Problem** <!-- Please provide a clear and concise description of the problem that this feature request is designed to solve.--> Django and SQLAlchemy both...
diff --git a/config/settings.py b/config/settings.py --- a/config/settings.py +++ b/config/settings.py @@ -88,6 +88,15 @@ } DATABASES[decouple_config('DJANGO_DATABASE_KEY')] = decouple_config('DJANGO_DATABASE_URL', cast=db_url) +for db_key, db_dict in DATABASES.items(): + # Engine can be '.postgresql' or '.postg...
{"golden_diff": "diff --git a/config/settings.py b/config/settings.py\n--- a/config/settings.py\n+++ b/config/settings.py\n@@ -88,6 +88,15 @@\n }\n DATABASES[decouple_config('DJANGO_DATABASE_KEY')] = decouple_config('DJANGO_DATABASE_URL', cast=db_url)\n \n+for db_key, db_dict in DATABASES.items():\n+ # Engine can be...
1,848
208
gh_patches_debug_9247
rasdani/github-patches
git_diff
lnbits__lnbits-750
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Switching to `FakeWallet` deletes pending outgoing payments from another backend. Needs investigation. What I observed: create outgoing pending payment from other wallet, stop LNbits, change to `FakeWallet...
diff --git a/lnbits/wallets/fake.py b/lnbits/wallets/fake.py --- a/lnbits/wallets/fake.py +++ b/lnbits/wallets/fake.py @@ -91,10 +91,10 @@ ) async def get_invoice_status(self, checking_id: str) -> PaymentStatus: - return PaymentStatus(False) + return PaymentStatus(None) async de...
{"golden_diff": "diff --git a/lnbits/wallets/fake.py b/lnbits/wallets/fake.py\n--- a/lnbits/wallets/fake.py\n+++ b/lnbits/wallets/fake.py\n@@ -91,10 +91,10 @@\n )\n \n async def get_invoice_status(self, checking_id: str) -> PaymentStatus:\n- return PaymentStatus(False)\n+ return PaymentSta...
1,272
154
gh_patches_debug_15197
rasdani/github-patches
git_diff
conan-io__conan-3185
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- USERPROFILE in conanbuildinfo.props Visual Studio files PR https://github.com/conan-io/conan/pull/2936 was reverted due to failing things. cc/ @pawelkami --- END ISSUE --- Below are some code segments, ...
diff --git a/conans/client/generators/visualstudio.py b/conans/client/generators/visualstudio.py --- a/conans/client/generators/visualstudio.py +++ b/conans/client/generators/visualstudio.py @@ -1,5 +1,8 @@ +import os + from conans.model import Generator from conans.paths import BUILD_INFO_VISUAL_STUDIO +import re ...
{"golden_diff": "diff --git a/conans/client/generators/visualstudio.py b/conans/client/generators/visualstudio.py\n--- a/conans/client/generators/visualstudio.py\n+++ b/conans/client/generators/visualstudio.py\n@@ -1,5 +1,8 @@\n+import os\n+\n from conans.model import Generator\n from conans.paths import BUILD_INFO_VIS...
1,292
195
gh_patches_debug_657
rasdani/github-patches
git_diff
pex-tool__pex-1987
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.114 On the docket: + [ ] Only insert "" to head of sys.path if a venv PEX runs in interpreter mode #1984 + [x] venv_dir calculation doesn't correctly handle PEX_PYTHON_PATH with symlinks. #1885 ...
diff --git a/pex/version.py b/pex/version.py --- a/pex/version.py +++ b/pex/version.py @@ -1,4 +1,4 @@ # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -__version__ = "2.1.113" +__version__ = "2.1.114"
{"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.113\"\n+__version__ = \"2.1.114\"\n",...
378
98
gh_patches_debug_247
rasdani/github-patches
git_diff
fail2ban__fail2ban-249
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- weak regex'es for apache See email on fail2ban-users --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `commo...
diff --git a/common/version.py b/common/version.py --- a/common/version.py +++ b/common/version.py @@ -24,4 +24,4 @@ __copyright__ = "Copyright (c) 2004 Cyril Jaquier, 2011-2013 Yaroslav Halchenko" __license__ = "GPL" -version = "0.8.9.dev" +version = "0.8.10"
{"golden_diff": "diff --git a/common/version.py b/common/version.py\n--- a/common/version.py\n+++ b/common/version.py\n@@ -24,4 +24,4 @@\n __copyright__ = \"Copyright (c) 2004 Cyril Jaquier, 2011-2013 Yaroslav Halchenko\"\n __license__ = \"GPL\"\n \n-version = \"0.8.9.dev\"\n+version = \"0.8.10\"\n", "issue": "weak reg...
624
101
gh_patches_debug_37565
rasdani/github-patches
git_diff
opensearch-project__opensearch-build-456
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Integration tests to pull artifacts from S3Bucket --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `bundle-w...
diff --git a/bundle-workflow/src/manifests/build_manifest.py b/bundle-workflow/src/manifests/build_manifest.py --- a/bundle-workflow/src/manifests/build_manifest.py +++ b/bundle-workflow/src/manifests/build_manifest.py @@ -4,6 +4,9 @@ # this file be licensed under the Apache-2.0 license or a # compatible open source ...
{"golden_diff": "diff --git a/bundle-workflow/src/manifests/build_manifest.py b/bundle-workflow/src/manifests/build_manifest.py\n--- a/bundle-workflow/src/manifests/build_manifest.py\n+++ b/bundle-workflow/src/manifests/build_manifest.py\n@@ -4,6 +4,9 @@\n # this file be licensed under the Apache-2.0 license or a\n # c...
1,758
765
gh_patches_debug_47932
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 ![wagtail bug](https://cloud.githubusercontent.com/assets/24652917/21648586/c86d744c-d29e-11e6-83b0-120667f43c41.jpg) --- 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...
428
97
gh_patches_debug_30027
rasdani/github-patches
git_diff
fidals__shopelectro-992
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Resurrect script to process photos to the DB Now we are having script processing photos to the DB `shopelectro/management/commands/images.py` Since we have no tests for it, code may become stale. Resurrec...
diff --git a/shopelectro/logic/header.py b/shopelectro/logic/header.py --- a/shopelectro/logic/header.py +++ b/shopelectro/logic/header.py @@ -14,7 +14,7 @@ @staticmethod def roots() -> pages_models.PageQuerySet: """ - QuerySet with header menu items. + Queryset with header menu items. ...
{"golden_diff": "diff --git a/shopelectro/logic/header.py b/shopelectro/logic/header.py\n--- a/shopelectro/logic/header.py\n+++ b/shopelectro/logic/header.py\n@@ -14,7 +14,7 @@\n @staticmethod\n def roots() -> pages_models.PageQuerySet:\n \"\"\"\n- QuerySet with header menu items.\n+ Query...
1,346
386
gh_patches_debug_30136
rasdani/github-patches
git_diff
ktbyers__netmiko-1648
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Raise exception if asa_login() fails to login successfully --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: ...
diff --git a/netmiko/cisco/cisco_asa_ssh.py b/netmiko/cisco/cisco_asa_ssh.py --- a/netmiko/cisco/cisco_asa_ssh.py +++ b/netmiko/cisco/cisco_asa_ssh.py @@ -2,6 +2,7 @@ import re import time from netmiko.cisco_base_connection import CiscoSSHConnection, CiscoFileTransfer +from netmiko.ssh_exception import NetmikoAuthen...
{"golden_diff": "diff --git a/netmiko/cisco/cisco_asa_ssh.py b/netmiko/cisco/cisco_asa_ssh.py\n--- a/netmiko/cisco/cisco_asa_ssh.py\n+++ b/netmiko/cisco/cisco_asa_ssh.py\n@@ -2,6 +2,7 @@\n import re\n import time\n from netmiko.cisco_base_connection import CiscoSSHConnection, CiscoFileTransfer\n+from netmiko.ssh_except...
1,415
372
gh_patches_debug_9341
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-1986
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug]: Haringey Waste Collection sensor returning 'Unknown' ### I Have A Problem With: A specific source ### What's Your Problem I am having an issue adding the Haringey council (UK) Waste Collection...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/haringey_gov_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/haringey_gov_uk.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/haringey_gov_uk.py +++ b/custo...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/haringey_gov_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/haringey_gov_uk.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/haringey_gov...
1,321
193
gh_patches_debug_39219
rasdani/github-patches
git_diff
ethereum__consensus-specs-1202
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- is_genesis_trigger fails to verify deposit merkle branch ## Issue Deposits are processed against empty state with undefined `eth1_data` while `genesis_eth1_data` should be in place. --- END ISSUE --- Bel...
diff --git a/deposit_contract/contracts/validator_registration.v.py b/deposit_contract/contracts/validator_registration.v.py --- a/deposit_contract/contracts/validator_registration.v.py +++ b/deposit_contract/contracts/validator_registration.v.py @@ -6,7 +6,7 @@ AMOUNT_LENGTH: constant(uint256) = 8 # bytes SIGNATURE...
{"golden_diff": "diff --git a/deposit_contract/contracts/validator_registration.v.py b/deposit_contract/contracts/validator_registration.v.py\n--- a/deposit_contract/contracts/validator_registration.v.py\n+++ b/deposit_contract/contracts/validator_registration.v.py\n@@ -6,7 +6,7 @@\n AMOUNT_LENGTH: constant(uint256) = ...
1,762
893
gh_patches_debug_16538
rasdani/github-patches
git_diff
sopel-irc__sopel-2063
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- isup responds twice <!-- Before reporting a bug, please search both open *and closed* issues to see if it has already been reported. If you can, try to reproduce the problem on an unmodified copy of the `ma...
diff --git a/sopel/modules/isup.py b/sopel/modules/isup.py --- a/sopel/modules/isup.py +++ b/sopel/modules/isup.py @@ -84,9 +84,9 @@ bot.say( '{} looks down to me (connection error).' .format(site)) - - # If no exception happened, the request succeeded. - bot.say(site + ' looks ...
{"golden_diff": "diff --git a/sopel/modules/isup.py b/sopel/modules/isup.py\n--- a/sopel/modules/isup.py\n+++ b/sopel/modules/isup.py\n@@ -84,9 +84,9 @@\n bot.say(\n '{} looks down to me (connection error).'\n .format(site))\n-\n- # If no exception happened, the request succeeded.\n- ...
1,719
225
gh_patches_debug_24694
rasdani/github-patches
git_diff
streamlit__streamlit-7018
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Markdown support for radio buttons ### Problem Colored text and other markdown elements work in the label of `st.radio` but not in the texts of the radio elements. This is a bit weird since we do support i...
diff --git a/e2e/scripts/st_radio.py b/e2e/scripts/st_radio.py --- a/e2e/scripts/st_radio.py +++ b/e2e/scripts/st_radio.py @@ -19,6 +19,16 @@ from tests.streamlit import pyspark_mocks options = ("female", "male") +markdown_options = ( + "**bold text**", + "*italics text*", + "~strikethrough text~", + "s...
{"golden_diff": "diff --git a/e2e/scripts/st_radio.py b/e2e/scripts/st_radio.py\n--- a/e2e/scripts/st_radio.py\n+++ b/e2e/scripts/st_radio.py\n@@ -19,6 +19,16 @@\n from tests.streamlit import pyspark_mocks\n \n options = (\"female\", \"male\")\n+markdown_options = (\n+ \"**bold text**\",\n+ \"*italics text*\",\n+...
1,007
400
gh_patches_debug_27
rasdani/github-patches
git_diff
netket__netket-214
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- module 'netket' has no attribute 'MPI' With the merge #193 we have lost the MPI module --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs...
diff --git a/netket/__init__.py b/netket/__init__.py --- a/netket/__init__.py +++ b/netket/__init__.py @@ -31,3 +31,4 @@ utils, variational, ) +from ._C_netket import MPI, LookupReal, LookupComplex
{"golden_diff": "diff --git a/netket/__init__.py b/netket/__init__.py\n--- a/netket/__init__.py\n+++ b/netket/__init__.py\n@@ -31,3 +31,4 @@\n utils,\n variational,\n )\n+from ._C_netket import MPI, LookupReal, LookupComplex\n", "issue": "module 'netket' has no attribute 'MPI'\nWith the merge #193 we have lost ...
552
71
gh_patches_debug_3491
rasdani/github-patches
git_diff
ESMCI__cime-3863
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- nuopc run complete message location In commit b9d7b65fd case_run.py was changed to look for the run completed message in drv.log instead of in med.log for nuopc runs, however the system_tests_common.py was ...
diff --git a/scripts/lib/CIME/SystemTests/nodefail.py b/scripts/lib/CIME/SystemTests/nodefail.py --- a/scripts/lib/CIME/SystemTests/nodefail.py +++ b/scripts/lib/CIME/SystemTests/nodefail.py @@ -24,7 +24,7 @@ exeroot = self._case.get_value("EXEROOT") driver = self._case.get_value("COMP_INTERFACE") ...
{"golden_diff": "diff --git a/scripts/lib/CIME/SystemTests/nodefail.py b/scripts/lib/CIME/SystemTests/nodefail.py\n--- a/scripts/lib/CIME/SystemTests/nodefail.py\n+++ b/scripts/lib/CIME/SystemTests/nodefail.py\n@@ -24,7 +24,7 @@\n exeroot = self._case.get_value(\"EXEROOT\")\n driver = self._case.get_val...
1,150
127
gh_patches_debug_40801
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-1767
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- E2529 error with multiple `AWS::Logs::SubscriptionFilter` resources. *cfn-lint version: 0.38.0* *[`E2529`](https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/rules.md#E2529) error with ...
diff --git a/src/cfnlint/rules/resources/lmbd/EventsLogGroupName.py b/src/cfnlint/rules/resources/lmbd/EventsLogGroupName.py --- a/src/cfnlint/rules/resources/lmbd/EventsLogGroupName.py +++ b/src/cfnlint/rules/resources/lmbd/EventsLogGroupName.py @@ -2,6 +2,7 @@ Copyright Amazon.com, Inc. or its affiliates. All Rights...
{"golden_diff": "diff --git a/src/cfnlint/rules/resources/lmbd/EventsLogGroupName.py b/src/cfnlint/rules/resources/lmbd/EventsLogGroupName.py\n--- a/src/cfnlint/rules/resources/lmbd/EventsLogGroupName.py\n+++ b/src/cfnlint/rules/resources/lmbd/EventsLogGroupName.py\n@@ -2,6 +2,7 @@\n Copyright Amazon.com, Inc. or its a...
1,206
791
gh_patches_debug_2259
rasdani/github-patches
git_diff
zigpy__zha-device-handlers-184
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Philips Remote DIM_DOWN typo? https://github.com/dmulcahey/zha-device-handlers/blob/833ee24710496d317a03b0f0b9f61df31291d75b/zhaquirks/philips/rwl021.py#L137 It seems that it should be: `ARGS: [1, 30, 9],...
diff --git a/zhaquirks/philips/rwl021.py b/zhaquirks/philips/rwl021.py --- a/zhaquirks/philips/rwl021.py +++ b/zhaquirks/philips/rwl021.py @@ -134,7 +134,7 @@ COMMAND: COMMAND_STEP, CLUSTER_ID: 8, ENDPOINT_ID: 1, - ARGS: [1, 56, 9], + ARGS: [1, 30, 9], ...
{"golden_diff": "diff --git a/zhaquirks/philips/rwl021.py b/zhaquirks/philips/rwl021.py\n--- a/zhaquirks/philips/rwl021.py\n+++ b/zhaquirks/philips/rwl021.py\n@@ -134,7 +134,7 @@\n COMMAND: COMMAND_STEP,\n CLUSTER_ID: 8,\n ENDPOINT_ID: 1,\n- ARGS: [1, 56, 9],\n+ ...
1,649
145
gh_patches_debug_17277
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-247
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Create packages, automate releases Create new `opentelemetry-` packages for the API and SDK, and consider doing the same for all OC contrib packages. Configure CI to build and release these packages when w...
diff --git a/opentelemetry-api/setup.py b/opentelemetry-api/setup.py --- a/opentelemetry-api/setup.py +++ b/opentelemetry-api/setup.py @@ -43,6 +43,7 @@ description="OpenTelemetry Python API", include_package_data=True, long_description=open("README.rst").read(), + long_description_content_type="text/...
{"golden_diff": "diff --git a/opentelemetry-api/setup.py b/opentelemetry-api/setup.py\n--- a/opentelemetry-api/setup.py\n+++ b/opentelemetry-api/setup.py\n@@ -43,6 +43,7 @@\n description=\"OpenTelemetry Python API\",\n include_package_data=True,\n long_description=open(\"README.rst\").read(),\n+ long_des...
1,483
229
gh_patches_debug_7031
rasdani/github-patches
git_diff
facebookresearch__hydra-1961
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [CI] hydra_nevergrad_sweeper tests are failing on main branch. example failure https://app.circleci.com/pipelines/github/facebookresearch/hydra/11235/workflows/273a5296-bebf-4808-8e68-14b9889b63a5/jobs/102829...
diff --git a/plugins/hydra_nevergrad_sweeper/setup.py b/plugins/hydra_nevergrad_sweeper/setup.py --- a/plugins/hydra_nevergrad_sweeper/setup.py +++ b/plugins/hydra_nevergrad_sweeper/setup.py @@ -26,7 +26,7 @@ ], install_requires=[ "hydra-core>=1.1.0.dev7", - "nevergrad>=0.4.3.post2,<0.4.3.post...
{"golden_diff": "diff --git a/plugins/hydra_nevergrad_sweeper/setup.py b/plugins/hydra_nevergrad_sweeper/setup.py\n--- a/plugins/hydra_nevergrad_sweeper/setup.py\n+++ b/plugins/hydra_nevergrad_sweeper/setup.py\n@@ -26,7 +26,7 @@\n ],\n install_requires=[\n \"hydra-core>=1.1.0.dev7\",\n- \"nevergr...
803
205
gh_patches_debug_11560
rasdani/github-patches
git_diff
cloud-custodian__cloud-custodian-4282
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Azure - Docs missing for VM Images --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `tools/c7n_azure/c7n_azu...
diff --git a/tools/c7n_azure/c7n_azure/resources/image.py b/tools/c7n_azure/c7n_azure/resources/image.py --- a/tools/c7n_azure/c7n_azure/resources/image.py +++ b/tools/c7n_azure/c7n_azure/resources/image.py @@ -18,6 +18,23 @@ @resources.register('image') class Image(ArmResourceManager): + """Virtual Machine Imag...
{"golden_diff": "diff --git a/tools/c7n_azure/c7n_azure/resources/image.py b/tools/c7n_azure/c7n_azure/resources/image.py\n--- a/tools/c7n_azure/c7n_azure/resources/image.py\n+++ b/tools/c7n_azure/c7n_azure/resources/image.py\n@@ -18,6 +18,23 @@\n \n @resources.register('image')\n class Image(ArmResourceManager):\n+ ...
567
216
gh_patches_debug_14715
rasdani/github-patches
git_diff
openai__gym-1950
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Missing attrs in LazyFrames: dtype, shape This is my own fault.. I managed to push the wrong branch in #1906 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these ...
diff --git a/gym/wrappers/frame_stack.py b/gym/wrappers/frame_stack.py --- a/gym/wrappers/frame_stack.py +++ b/gym/wrappers/frame_stack.py @@ -22,11 +22,11 @@ __slots__ = ('frame_shape', 'dtype', 'shape', 'lz4_compress', '_frames') def __init__(self, frames, lz4_compress=False): + self.frame_shape = ...
{"golden_diff": "diff --git a/gym/wrappers/frame_stack.py b/gym/wrappers/frame_stack.py\n--- a/gym/wrappers/frame_stack.py\n+++ b/gym/wrappers/frame_stack.py\n@@ -22,11 +22,11 @@\n __slots__ = ('frame_shape', 'dtype', 'shape', 'lz4_compress', '_frames')\n \n def __init__(self, frames, lz4_compress=False):\n+ ...
1,451
218
gh_patches_debug_32079
rasdani/github-patches
git_diff
great-expectations__great_expectations-6874
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of th...
diff --git a/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern_list.py b/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern_list.py --- a/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern_list.py +++ b/great_expectation...
{"golden_diff": "diff --git a/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern_list.py b/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern_list.py\n--- a/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern_list.py\n+++ ...
1,876
433
gh_patches_debug_36933
rasdani/github-patches
git_diff
dotkom__onlineweb4-403
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Flow with accepting mark rules The first time a user tries to attend an event with marks, the rules should be presented, and the user must accept these. If they are accepted, the flag for accepting marks shou...
diff --git a/apps/events/forms.py b/apps/events/forms.py --- a/apps/events/forms.py +++ b/apps/events/forms.py @@ -2,4 +2,11 @@ from captcha.fields import CaptchaField class CaptchaForm(forms.Form): - captcha = CaptchaField() \ No newline at end of file + def __init__(self, *args, **kwargs): + user = k...
{"golden_diff": "diff --git a/apps/events/forms.py b/apps/events/forms.py\n--- a/apps/events/forms.py\n+++ b/apps/events/forms.py\n@@ -2,4 +2,11 @@\n from captcha.fields import CaptchaField\n \n class CaptchaForm(forms.Form):\n- captcha = CaptchaField()\n\\ No newline at end of file\n+ def __init__(self, *args, *...
1,836
611
gh_patches_debug_18600
rasdani/github-patches
git_diff
ivy-llc__ivy-22517
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- kaiser_bessel_derived_window - [ ] #1559 --- 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/fro...
diff --git a/ivy/functional/frontends/tensorflow/signal.py b/ivy/functional/frontends/tensorflow/signal.py --- a/ivy/functional/frontends/tensorflow/signal.py +++ b/ivy/functional/frontends/tensorflow/signal.py @@ -19,6 +19,15 @@ return ivy.dct(input, type=inverse_type, n=n, axis=axis, norm=norm) +# kaiser_bes...
{"golden_diff": "diff --git a/ivy/functional/frontends/tensorflow/signal.py b/ivy/functional/frontends/tensorflow/signal.py\n--- a/ivy/functional/frontends/tensorflow/signal.py\n+++ b/ivy/functional/frontends/tensorflow/signal.py\n@@ -19,6 +19,15 @@\n return ivy.dct(input, type=inverse_type, n=n, axis=axis, norm=no...
730
325
gh_patches_debug_60744
rasdani/github-patches
git_diff
gpodder__mygpo-546
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error when trying to run manage.py update-toplist ``` Traceback (most recent call last): File "manage.py", line 8, in <module> execute_from_command_line(sys.argv) File "/home/mike/mygpo/venv/lib/p...
diff --git a/mygpo/directory/management/commands/update-toplist.py b/mygpo/directory/management/commands/update-toplist.py --- a/mygpo/directory/management/commands/update-toplist.py +++ b/mygpo/directory/management/commands/update-toplist.py @@ -24,7 +24,7 @@ silent = options.get("silent") podcasts...
{"golden_diff": "diff --git a/mygpo/directory/management/commands/update-toplist.py b/mygpo/directory/management/commands/update-toplist.py\n--- a/mygpo/directory/management/commands/update-toplist.py\n+++ b/mygpo/directory/management/commands/update-toplist.py\n@@ -24,7 +24,7 @@\n silent = options.get(\"silent...
805
131
gh_patches_debug_11
rasdani/github-patches
git_diff
OCHA-DAP__hdx-ckan-1082
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update version number Sprint 26 will be 0.3.3 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ckanext-hdx_...
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/version.py b/ckanext-hdx_theme/ckanext/hdx_theme/version.py --- a/ckanext-hdx_theme/ckanext/hdx_theme/version.py +++ b/ckanext-hdx_theme/ckanext/hdx_theme/version.py @@ -1 +1 @@ -hdx_version='v0.3.2' \ No newline at end of file +hdx_version='v0.3.3' \ No newline at end o...
{"golden_diff": "diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/version.py b/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n--- a/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n+++ b/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n@@ -1 +1 @@\n-hdx_version='v0.3.2'\n\\ No newline at end of file\n+hdx_version='v0.3....
298
120
gh_patches_debug_19246
rasdani/github-patches
git_diff
cookiecutter__cookiecutter-1896
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 2.2.0 CLI reports version 2.1.2dev0 * Cookiecutter version: 2.2.0 (or 2.1.2dev0, depending on who you ask) * Template project url: n/a * Python version: 3.11 * Operating System: linux ### Description: ...
diff --git a/cookiecutter/__init__.py b/cookiecutter/__init__.py --- a/cookiecutter/__init__.py +++ b/cookiecutter/__init__.py @@ -1,2 +1,12 @@ """Main package for Cookiecutter.""" -__version__ = "2.1.2.dev0" +from pathlib import Path + + +def _get_version() -> str: + """Read VERSION.txt and return its contents."""...
{"golden_diff": "diff --git a/cookiecutter/__init__.py b/cookiecutter/__init__.py\n--- a/cookiecutter/__init__.py\n+++ b/cookiecutter/__init__.py\n@@ -1,2 +1,12 @@\n \"\"\"Main package for Cookiecutter.\"\"\"\n-__version__ = \"2.1.2.dev0\"\n+from pathlib import Path\n+\n+\n+def _get_version() -> str:\n+ \"\"\"Read V...
1,253
335
gh_patches_debug_4969
rasdani/github-patches
git_diff
spacetelescope__jwql-601
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Build tests for Bad Pixel Monitor --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `setup.py` Content: ``` 1...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ DESCRIPTION = 'The James Webb Space Telescope Quicklook Project' DEPENDENCY_LINKS = ['git+https://github.com/spacetelescope/jwst@0.16.2', - 'git+https://github.com/spacetelescope/jwst_reffiles' + '...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -10,7 +10,7 @@\n DESCRIPTION = 'The James Webb Space Telescope Quicklook Project'\n \n DEPENDENCY_LINKS = ['git+https://github.com/spacetelescope/jwst@0.16.2',\n- 'git+https://github.com/spacetelescope/jwst_reffiles...
839
137
gh_patches_debug_14263
rasdani/github-patches
git_diff
OCA__stock-logistics-warehouse-1247
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [12.0] stock_secondary_unit "secondary qty" value in picking not affecting "initial demand" AFFECTED VERSIONS 12.0 (it works ok on 13.0) STEPS TO REPRODUCE Activate Units of Measure in general settin...
diff --git a/stock_secondary_unit/models/stock_move.py b/stock_secondary_unit/models/stock_move.py --- a/stock_secondary_unit/models/stock_move.py +++ b/stock_secondary_unit/models/stock_move.py @@ -96,3 +96,21 @@ 'secondary_uom_id': move.secondary_uom_id.id, }) return super().cre...
{"golden_diff": "diff --git a/stock_secondary_unit/models/stock_move.py b/stock_secondary_unit/models/stock_move.py\n--- a/stock_secondary_unit/models/stock_move.py\n+++ b/stock_secondary_unit/models/stock_move.py\n@@ -96,3 +96,21 @@\n 'secondary_uom_id': move.secondary_uom_id.id,\n })\n ...
1,651
250
gh_patches_debug_15553
rasdani/github-patches
git_diff
mindee__doctr-477
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Import error synthetize_page func in streamlit demo script ## 🐛 Bug Import bug while running the streamlit demo script ## To Reproduce Steps to reproduce the behavior: 1. Install the current pack...
diff --git a/demo/app.py b/demo/app.py --- a/demo/app.py +++ b/demo/app.py @@ -18,7 +18,7 @@ from doctr.io import DocumentFile from doctr.models import ocr_predictor -from doctr.utils.visualization import synthetize_page, visualize_page +from doctr.utils.visualization import visualize_page DET_ARCHS = ["db_resne...
{"golden_diff": "diff --git a/demo/app.py b/demo/app.py\n--- a/demo/app.py\n+++ b/demo/app.py\n@@ -18,7 +18,7 @@\n \n from doctr.io import DocumentFile\n from doctr.models import ocr_predictor\n-from doctr.utils.visualization import synthetize_page, visualize_page\n+from doctr.utils.visualization import visualize_page\...
1,625
183
gh_patches_debug_23443
rasdani/github-patches
git_diff
keras-team__keras-nlp-521
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix saved model testing We have a silly bug for a few of our saved model tests where we are calling ``` model.save(save_path, save_format) ``` Instead of ``` model.save(save_path, save_format=save...
diff --git a/keras_nlp/conftest.py b/keras_nlp/conftest.py --- a/keras_nlp/conftest.py +++ b/keras_nlp/conftest.py @@ -14,6 +14,8 @@ import sys import pytest +import tensorflow as tf +from packaging import version def pytest_addoption(parser): @@ -50,6 +52,10 @@ skip_xla = pytest.mark.skipif( sys...
{"golden_diff": "diff --git a/keras_nlp/conftest.py b/keras_nlp/conftest.py\n--- a/keras_nlp/conftest.py\n+++ b/keras_nlp/conftest.py\n@@ -14,6 +14,8 @@\n import sys\n \n import pytest\n+import tensorflow as tf\n+from packaging import version\n \n \n def pytest_addoption(parser):\n@@ -50,6 +52,10 @@\n skip_xla = py...
999
291
gh_patches_debug_29570
rasdani/github-patches
git_diff
pantsbuild__pants-14580
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Interrupting an `(Interactive)Process` should attempt to kill the process gracefully Currently, both `Process` and `InteractiveProcess` will send `KILL` when they are dropped (via `tokio`s facilities for `kil...
diff --git a/testprojects/src/python/coordinated_runs/waiter.py b/testprojects/src/python/coordinated_runs/waiter.py --- a/testprojects/src/python/coordinated_runs/waiter.py +++ b/testprojects/src/python/coordinated_runs/waiter.py @@ -7,11 +7,6 @@ import time from multiprocessing import Process -waiting_for_file = ...
{"golden_diff": "diff --git a/testprojects/src/python/coordinated_runs/waiter.py b/testprojects/src/python/coordinated_runs/waiter.py\n--- a/testprojects/src/python/coordinated_runs/waiter.py\n+++ b/testprojects/src/python/coordinated_runs/waiter.py\n@@ -7,11 +7,6 @@\n import time\n from multiprocessing import Process\...
744
563
gh_patches_debug_32780
rasdani/github-patches
git_diff
great-expectations__great_expectations-4283
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of th...
diff --git a/examples/expectations/column_aggregate_expectation_template.py b/examples/expectations/column_aggregate_expectation_template.py --- a/examples/expectations/column_aggregate_expectation_template.py +++ b/examples/expectations/column_aggregate_expectation_template.py @@ -34,14 +34,14 @@ raise NotImp...
{"golden_diff": "diff --git a/examples/expectations/column_aggregate_expectation_template.py b/examples/expectations/column_aggregate_expectation_template.py\n--- a/examples/expectations/column_aggregate_expectation_template.py\n+++ b/examples/expectations/column_aggregate_expectation_template.py\n@@ -34,14 +34,14 @@\n...
1,930
528
gh_patches_debug_1173
rasdani/github-patches
git_diff
dask__dask-533
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ProgressBar is not visible in the notebook The `ProgressBar` doesn't update itself during execution while in the notebook. Afterwards the full bar will pop up but it doesn't give you any cues during executio...
diff --git a/dask/diagnostics/progress.py b/dask/diagnostics/progress.py --- a/dask/diagnostics/progress.py +++ b/dask/diagnostics/progress.py @@ -54,6 +54,7 @@ def _posttask(self, key, value, dsk, state, id): self._ndone += 1 + sys.stdout.flush() def _finish(self, dsk, state, errored): ...
{"golden_diff": "diff --git a/dask/diagnostics/progress.py b/dask/diagnostics/progress.py\n--- a/dask/diagnostics/progress.py\n+++ b/dask/diagnostics/progress.py\n@@ -54,6 +54,7 @@\n \n def _posttask(self, key, value, dsk, state, id):\n self._ndone += 1\n+ sys.stdout.flush()\n \n def _finish(self...
1,126
108
gh_patches_debug_7522
rasdani/github-patches
git_diff
boto__botocore-3141
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add support for urllib3 2.2.1 ### Describe the bug Underlying `botocore` requires outdated `urllib3` version: - 1.x in case of Python pre-3.10 - < 2.1 in case of Python 3.10(+) background from: https:...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -25,8 +25,11 @@ requires = [ 'jmespath>=0.7.1,<2.0.0', 'python-dateutil>=2.1,<3.0.0', + # Prior to Python 3.10, Python doesn't require openssl 1.1.1 + # but urllib3 2.0+ does. This means all botocore users will be + # broken by defaul...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -25,8 +25,11 @@\n requires = [\n 'jmespath>=0.7.1,<2.0.0',\n 'python-dateutil>=2.1,<3.0.0',\n+ # Prior to Python 3.10, Python doesn't require openssl 1.1.1\n+ # but urllib3 2.0+ does. This means all botocore users will b...
1,369
227
gh_patches_debug_15490
rasdani/github-patches
git_diff
kubeflow__pipelines-6193
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [pH] v2 sample test - enable kaniko caching https://cloud.google.com/build/docs/kaniko-cache this will help improve local testing speed https://github.com/kubeflow/pipelines/blob/master/v2/test/components...
diff --git a/samples/v2/hello_world.py b/samples/v2/hello_world.py --- a/samples/v2/hello_world.py +++ b/samples/v2/hello_world.py @@ -24,7 +24,7 @@ @dsl.pipeline(name='hello-world', description='A simple intro pipeline') -def pipeline_parameter_to_consumer(text: str = 'hi there'): +def pipeline_hello_world(text: ...
{"golden_diff": "diff --git a/samples/v2/hello_world.py b/samples/v2/hello_world.py\n--- a/samples/v2/hello_world.py\n+++ b/samples/v2/hello_world.py\n@@ -24,7 +24,7 @@\n \n \n @dsl.pipeline(name='hello-world', description='A simple intro pipeline')\n-def pipeline_parameter_to_consumer(text: str = 'hi there'):\n+def pi...
684
185
gh_patches_debug_57144
rasdani/github-patches
git_diff
wemake-services__wemake-python-styleguide-188
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Feature: forbid `credits()` builtin function We should add `credits()` as a forbidden function: ``` » python -c 'credits()' Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands ...
diff --git a/wemake_python_styleguide/constants.py b/wemake_python_styleguide/constants.py --- a/wemake_python_styleguide/constants.py +++ b/wemake_python_styleguide/constants.py @@ -36,6 +36,7 @@ # Misc: 'copyright', 'help', + 'credits', # Dynamic imports: '__import__',
{"golden_diff": "diff --git a/wemake_python_styleguide/constants.py b/wemake_python_styleguide/constants.py\n--- a/wemake_python_styleguide/constants.py\n+++ b/wemake_python_styleguide/constants.py\n@@ -36,6 +36,7 @@\n # Misc:\n 'copyright',\n 'help',\n+ 'credits',\n \n # Dynamic imports:\n '__im...
1,731
84
gh_patches_debug_40576
rasdani/github-patches
git_diff
Cog-Creators__Red-DiscordBot-2212
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [V3 Config] Config does not reject bad keys Including a `.` or starting a keyname with `$` needs to be invalid in config because of mongoDB backend support. Config will work just fine for this on the json...
diff --git a/redbot/core/drivers/red_mongo.py b/redbot/core/drivers/red_mongo.py --- a/redbot/core/drivers/red_mongo.py +++ b/redbot/core/drivers/red_mongo.py @@ -1,6 +1,11 @@ +import re +from typing import Match, Pattern +from urllib.parse import quote_plus + +import motor.core import motor.motor_asyncio + from .red...
{"golden_diff": "diff --git a/redbot/core/drivers/red_mongo.py b/redbot/core/drivers/red_mongo.py\n--- a/redbot/core/drivers/red_mongo.py\n+++ b/redbot/core/drivers/red_mongo.py\n@@ -1,6 +1,11 @@\n+import re\n+from typing import Match, Pattern\n+from urllib.parse import quote_plus\n+\n+import motor.core\n import motor....
1,729
1,000
gh_patches_debug_11890
rasdani/github-patches
git_diff
dbt-labs__dbt-core-1553
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add materializations dirs to include paths for pg/redshift ## Issue ### Issue description The 0.14.0-a1 pypi distribution of dbt does not include specific macro directories in its `package_data` list. As ...
diff --git a/plugins/postgres/setup.py b/plugins/postgres/setup.py --- a/plugins/postgres/setup.py +++ b/plugins/postgres/setup.py @@ -25,6 +25,7 @@ 'dbt': [ 'include/postgres/dbt_project.yml', 'include/postgres/macros/*.sql', + 'include/postgres/macros/**/*.sql', ...
{"golden_diff": "diff --git a/plugins/postgres/setup.py b/plugins/postgres/setup.py\n--- a/plugins/postgres/setup.py\n+++ b/plugins/postgres/setup.py\n@@ -25,6 +25,7 @@\n 'dbt': [\n 'include/postgres/dbt_project.yml',\n 'include/postgres/macros/*.sql',\n+ 'include/postgres/mac...
1,331
178
gh_patches_debug_3004
rasdani/github-patches
git_diff
qtile__qtile-1624
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- widget.WindowTabs default selected task indicator produces invalid pango markup # Issue description The default _selected task indicator_ (``("<", ">")``) for ``widget.WindowTabs`` produces invalid pango m...
diff --git a/libqtile/widget/windowtabs.py b/libqtile/widget/windowtabs.py --- a/libqtile/widget/windowtabs.py +++ b/libqtile/widget/windowtabs.py @@ -35,7 +35,7 @@ orientations = base.ORIENTATION_HORIZONTAL defaults = [ ("separator", " | ", "Task separator text."), - ("selected", ("<", ">"), ...
{"golden_diff": "diff --git a/libqtile/widget/windowtabs.py b/libqtile/widget/windowtabs.py\n--- a/libqtile/widget/windowtabs.py\n+++ b/libqtile/widget/windowtabs.py\n@@ -35,7 +35,7 @@\n orientations = base.ORIENTATION_HORIZONTAL\n defaults = [\n (\"separator\", \" | \", \"Task separator text.\"),\n- ...
1,331
120
gh_patches_debug_23999
rasdani/github-patches
git_diff
mabel-dev__opteryx-1488
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 🪲 joins aren't pushing predicates when predicates are on each relation in the join **Sample Code/Statement** _If you can, please submit the SQL statement or Python code snippet, or a representative example u...
diff --git a/opteryx/__version__.py b/opteryx/__version__.py --- a/opteryx/__version__.py +++ b/opteryx/__version__.py @@ -1,4 +1,4 @@ -__build__ = 329 +__build__ = 330 # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/o...
{"golden_diff": "diff --git a/opteryx/__version__.py b/opteryx/__version__.py\n--- a/opteryx/__version__.py\n+++ b/opteryx/__version__.py\n@@ -1,4 +1,4 @@\n-__build__ = 329\n+__build__ = 330\n \n # Licensed under the Apache License, Version 2.0 (the \"License\");\n # you may not use this file except in compliance with ...
1,638
366
gh_patches_debug_8042
rasdani/github-patches
git_diff
freqtrade__freqtrade-5434
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Running asyncio.get_event_loop() in some thread other than the main thread – however, asyncio only generates an event loop for the main thread. OS: Ubuntu 21.04 Branch: develop Command: freqtrade trade --co...
diff --git a/freqtrade/rpc/api_server/uvicorn_threaded.py b/freqtrade/rpc/api_server/uvicorn_threaded.py --- a/freqtrade/rpc/api_server/uvicorn_threaded.py +++ b/freqtrade/rpc/api_server/uvicorn_threaded.py @@ -32,8 +32,11 @@ asyncio_setup() else: asyncio.set_event_loop(uvloop.new_eve...
{"golden_diff": "diff --git a/freqtrade/rpc/api_server/uvicorn_threaded.py b/freqtrade/rpc/api_server/uvicorn_threaded.py\n--- a/freqtrade/rpc/api_server/uvicorn_threaded.py\n+++ b/freqtrade/rpc/api_server/uvicorn_threaded.py\n@@ -32,8 +32,11 @@\n asyncio_setup()\n else:\n asyncio.set_ev...
1,087
172
gh_patches_debug_27184
rasdani/github-patches
git_diff
electricitymaps__electricitymaps-contrib-5693
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Wrong data in Spain<->Morocco connection ## Description Just as I suspected, the data for the Spain<->Morocco connection is wrong, as can be seen on the [ESIOS webpage](https://www.esios.ree.es/en/analysis/1...
diff --git a/parsers/ESIOS.py b/parsers/ESIOS.py --- a/parsers/ESIOS.py +++ b/parsers/ESIOS.py @@ -24,6 +24,13 @@ "ES->MA": "10209", } +# Map each exchange to the needed factor to adjust from MWh to MW. Depends on the time granularity of the API for each request +# E.g ES->MA is 4 because the API returns 15 min...
{"golden_diff": "diff --git a/parsers/ESIOS.py b/parsers/ESIOS.py\n--- a/parsers/ESIOS.py\n+++ b/parsers/ESIOS.py\n@@ -24,6 +24,13 @@\n \"ES->MA\": \"10209\",\n }\n \n+# Map each exchange to the needed factor to adjust from MWh to MW. Depends on the time granularity of the API for each request\n+# E.g ES->MA is 4 b...
1,479
380
gh_patches_debug_32109
rasdani/github-patches
git_diff
freedomofpress__securedrop-5806
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Apparmor denial for ntpd on Focal ## Description `ntpd` throws grsec denial message. ## Steps to Reproduce - [ ] Install focal on hardware (I hope the same will show up in vm too) - [ ] check `/var/...
diff --git a/molecule/testinfra/conftest.py b/molecule/testinfra/conftest.py --- a/molecule/testinfra/conftest.py +++ b/molecule/testinfra/conftest.py @@ -9,8 +9,11 @@ import io import os import yaml +from typing import Any, Dict + import testutils + # The config tests target staging by default. It's possible to...
{"golden_diff": "diff --git a/molecule/testinfra/conftest.py b/molecule/testinfra/conftest.py\n--- a/molecule/testinfra/conftest.py\n+++ b/molecule/testinfra/conftest.py\n@@ -9,8 +9,11 @@\n import io\n import os\n import yaml\n+from typing import Any, Dict\n+\n import testutils\n \n+\n # The config tests target staging...
1,419
552
gh_patches_debug_25996
rasdani/github-patches
git_diff
facebookresearch__Mephisto-779
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Errors when installing new dependencies ## Overview Adding a new dependency into requirements.txt causes errors to occur in the github actions workflow. For example, When I added the `rich` dependency t...
diff --git a/setup.py b/setup.py deleted file mode 100644 --- a/setup.py +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env python3 - -# Copyright (c) Facebook, Inc. and its affiliates. -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -from setu...
{"golden_diff": "diff --git a/setup.py b/setup.py\ndeleted file mode 100644\n--- a/setup.py\n+++ /dev/null\n@@ -1,49 +0,0 @@\n-#!/usr/bin/env python3\n-\n-# Copyright (c) Facebook, Inc. and its affiliates.\n-# This source code is licensed under the MIT license found in the\n-# LICENSE file in the root directory of this...
884
507
gh_patches_debug_38444
rasdani/github-patches
git_diff
biolab__orange3-text-499
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bag of Words: add option to disable hiding attributes Sometimes, one would want to inspect words in Box Plot, MDS, Geo Map, Networks. These widgets don't show hidden attributes, which BoW features are by defa...
diff --git a/orangecontrib/text/widgets/utils/owbasevectorizer.py b/orangecontrib/text/widgets/utils/owbasevectorizer.py --- a/orangecontrib/text/widgets/utils/owbasevectorizer.py +++ b/orangecontrib/text/widgets/utils/owbasevectorizer.py @@ -1,4 +1,5 @@ -from AnyQt.QtWidgets import QGroupBox, QHBoxLayout, QVBoxLayout ...
{"golden_diff": "diff --git a/orangecontrib/text/widgets/utils/owbasevectorizer.py b/orangecontrib/text/widgets/utils/owbasevectorizer.py\n--- a/orangecontrib/text/widgets/utils/owbasevectorizer.py\n+++ b/orangecontrib/text/widgets/utils/owbasevectorizer.py\n@@ -1,4 +1,5 @@\n-from AnyQt.QtWidgets import QGroupBox, QHBo...
857
650
gh_patches_debug_23859
rasdani/github-patches
git_diff
learningequality__kolibri-1004
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- emphasize message when content renderer is not available Current behavior is confusing because the error is styled the same as the description: ![image](https://cloud.githubusercontent.com/assets/2367265...
diff --git a/kolibri/plugins/audio_mp3_render/kolibri_plugin.py b/kolibri/plugins/audio_mp3_render/kolibri_plugin.py --- a/kolibri/plugins/audio_mp3_render/kolibri_plugin.py +++ b/kolibri/plugins/audio_mp3_render/kolibri_plugin.py @@ -8,7 +8,7 @@ pass -class AudioMP3RenderAsset(content_hooks.WebpackBundleHook)...
{"golden_diff": "diff --git a/kolibri/plugins/audio_mp3_render/kolibri_plugin.py b/kolibri/plugins/audio_mp3_render/kolibri_plugin.py\n--- a/kolibri/plugins/audio_mp3_render/kolibri_plugin.py\n+++ b/kolibri/plugins/audio_mp3_render/kolibri_plugin.py\n@@ -8,7 +8,7 @@\n pass\n \n \n-class AudioMP3RenderAsset(content_...
885
402
gh_patches_debug_13829
rasdani/github-patches
git_diff
chainer__chainer-244
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add type check to LocalResponseNormalization function Related to #123 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILE...
diff --git a/chainer/functions/local_response_normalization.py b/chainer/functions/local_response_normalization.py --- a/chainer/functions/local_response_normalization.py +++ b/chainer/functions/local_response_normalization.py @@ -1,6 +1,9 @@ +import numpy +import six + from chainer import cuda from chainer import fu...
{"golden_diff": "diff --git a/chainer/functions/local_response_normalization.py b/chainer/functions/local_response_normalization.py\n--- a/chainer/functions/local_response_normalization.py\n+++ b/chainer/functions/local_response_normalization.py\n@@ -1,6 +1,9 @@\n+import numpy\n+import six\n+\n from chainer import cuda...
1,777
219
gh_patches_debug_25507
rasdani/github-patches
git_diff
cookiecutter__cookiecutter-1144
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fail with gitolite repository * Cookiecutter version: 1.6.0 * Template project url: Any * Python version: Any (tested in 3.7) * Operating System: Any (testes in ubuntu 16.04 and w$ 10) ### Description: ...
diff --git a/cookiecutter/vcs.py b/cookiecutter/vcs.py --- a/cookiecutter/vcs.py +++ b/cookiecutter/vcs.py @@ -70,6 +70,7 @@ :param clone_to_dir: The directory to clone to. Defaults to the current directory. :param no_input: Suppress all user prompts when calling via API. + :retur...
{"golden_diff": "diff --git a/cookiecutter/vcs.py b/cookiecutter/vcs.py\n--- a/cookiecutter/vcs.py\n+++ b/cookiecutter/vcs.py\n@@ -70,6 +70,7 @@\n :param clone_to_dir: The directory to clone to.\n Defaults to the current directory.\n :param no_input: Suppress all user prompts when calli...
1,955
351
gh_patches_debug_34
rasdani/github-patches
git_diff
airctic__icevision-995
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix installation in documentation • Improve Installation Guide We need to improve the installation guide for IceVision. Too many people are getting stuck installing the library. We need clear instruction...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ from setuptools import setup + if __name__ == "__main__": setup()
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,4 +1,5 @@\n from setuptools import setup\n \n+\n if __name__ == \"__main__\":\n setup()\n", "issue": "Fix installation in documentation\n\u2022 Improve Installation Guide\r\n\r\nWe need to improve the installation guide for Ice...
332
47
gh_patches_debug_2384
rasdani/github-patches
git_diff
helmholtz-analytics__heat-406
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Recent CI runs failing with NetCDF: HDF error **Description** Recent CI (and local) runs of our tests fail with messages like ``` E RuntimeError: NetCDF: HDF error ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ install_requires=["mpi4py>=3.0.0", "numpy>=1.13.0", "torch==1.3.0"], extras_require={ "hdf5": ["h5py>=2.8.0"], - "netcdf": ["netCDF4>=1.4.0"], + "netcdf": ["netCDF4>=1.4.0,<=1.5.2"], "dev": ["pre-c...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -35,7 +35,7 @@\n install_requires=[\"mpi4py>=3.0.0\", \"numpy>=1.13.0\", \"torch==1.3.0\"],\n extras_require={\n \"hdf5\": [\"h5py>=2.8.0\"],\n- \"netcdf\": [\"netCDF4>=1.4.0\"],\n+ \"netcdf\": [\"netCDF4...
1,045
145
gh_patches_debug_854
rasdani/github-patches
git_diff
holoviz__holoviews-5436
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Game of Life example needs update ### Package versions ``` panel = 0.13.1 holoviews = 1.15.0 bokeh = 2.4.3 ``` ### Bug description In the Game of Life example in the holoviews documentation...
diff --git a/examples/gallery/apps/bokeh/game_of_life.py b/examples/gallery/apps/bokeh/game_of_life.py --- a/examples/gallery/apps/bokeh/game_of_life.py +++ b/examples/gallery/apps/bokeh/game_of_life.py @@ -91,6 +91,6 @@ def advance(): counter.event(counter=counter.counter+1) -panel.add_periodic_callback(advanc...
{"golden_diff": "diff --git a/examples/gallery/apps/bokeh/game_of_life.py b/examples/gallery/apps/bokeh/game_of_life.py\n--- a/examples/gallery/apps/bokeh/game_of_life.py\n+++ b/examples/gallery/apps/bokeh/game_of_life.py\n@@ -91,6 +91,6 @@\n \n def advance():\n counter.event(counter=counter.counter+1)\n-panel.add_...
1,736
117
gh_patches_debug_6948
rasdani/github-patches
git_diff
digitalfabrik__integreat-cms-205
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pages: Separate page and translation attributes in page form At the moment, it is not clear which attributes of the page form refer to the `Page` object and which only handle `PageTranslation` objects (from a...
diff --git a/backend/cms/models/region.py b/backend/cms/models/region.py --- a/backend/cms/models/region.py +++ b/backend/cms/models/region.py @@ -56,7 +56,8 @@ @classmethod def get_current_region(cls, request): - if not hasattr(request, 'resolver_match'): + # if rendered url is edit_region, t...
{"golden_diff": "diff --git a/backend/cms/models/region.py b/backend/cms/models/region.py\n--- a/backend/cms/models/region.py\n+++ b/backend/cms/models/region.py\n@@ -56,7 +56,8 @@\n \n @classmethod\n def get_current_region(cls, request):\n- if not hasattr(request, 'resolver_match'):\n+ # if rende...
1,028
139
gh_patches_debug_16060
rasdani/github-patches
git_diff
open-mmlab__mmdetection-3606
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `benchmark.py`. ModuleNotFoundError: No module named 'tools.fuse_conv_bn'. Recently the `tools/fuse_conv_bn.py` was removed in #3529 . But the `benchmark.py` is still trying to use the old script. [htt...
diff --git a/tools/benchmark.py b/tools/benchmark.py --- a/tools/benchmark.py +++ b/tools/benchmark.py @@ -3,9 +3,9 @@ import torch from mmcv import Config +from mmcv.cnn import fuse_conv_bn from mmcv.parallel import MMDataParallel from mmcv.runner import load_checkpoint -from tools.fuse_conv_bn import fuse_modul...
{"golden_diff": "diff --git a/tools/benchmark.py b/tools/benchmark.py\n--- a/tools/benchmark.py\n+++ b/tools/benchmark.py\n@@ -3,9 +3,9 @@\n \n import torch\n from mmcv import Config\n+from mmcv.cnn import fuse_conv_bn\n from mmcv.parallel import MMDataParallel\n from mmcv.runner import load_checkpoint\n-from tools.fus...
1,288
184
gh_patches_debug_6960
rasdani/github-patches
git_diff
opensearch-project__opensearch-build-1829
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [RPM M1] Add a new block to call the generation code for RPM Tasks | Estimate | Status | Notes | Dependencies -- | -- | -- | -- | -- The generation code should pull the artifacts from the build workflow to ...
diff --git a/src/assemble_workflow/bundle_rpm.py b/src/assemble_workflow/bundle_rpm.py --- a/src/assemble_workflow/bundle_rpm.py +++ b/src/assemble_workflow/bundle_rpm.py @@ -99,7 +99,7 @@ '-bb', f"--define '_topdir {ext_dest}'", f"--define '_version {build_cls.version...
{"golden_diff": "diff --git a/src/assemble_workflow/bundle_rpm.py b/src/assemble_workflow/bundle_rpm.py\n--- a/src/assemble_workflow/bundle_rpm.py\n+++ b/src/assemble_workflow/bundle_rpm.py\n@@ -99,7 +99,7 @@\n '-bb',\n f\"--define '_topdir {ext_dest}'\",\n f\"--define '_...
1,843
136
gh_patches_debug_1614
rasdani/github-patches
git_diff
Nitrate__Nitrate-381
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Mark Nitrate as not zip_safe Add `zip_safe=False` to `setup.py` because Nitrate cannot run from a zip file directly. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -90,6 +90,7 @@ extras_require=extras_require, packages=find_packages(), include_package_data=True, + zip_safe=False, classifiers=[ 'Framework :: Django', 'Framework :: Django :: 1.11',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -90,6 +90,7 @@\n extras_require=extras_require,\n packages=find_packages(),\n include_package_data=True,\n+ zip_safe=False,\n classifiers=[\n 'Framework :: Django',\n 'Framework :: Django :: 1.11',\n...
1,302
77
gh_patches_debug_13488
rasdani/github-patches
git_diff
blakeblackshear__frigate-5021
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Config Support]: #backchannel=0 argument isn't being passed to go2rtc ### Describe the problem you are having Looks like the #backchannel=0 argument isn't being passed to go2rtc from the Frigate config file...
diff --git a/frigate/restream.py b/frigate/restream.py --- a/frigate/restream.py +++ b/frigate/restream.py @@ -52,7 +52,9 @@ input.path.startswith("rtsp") and not camera.restream.force_audio ): - self.relays[cam_name] = escape...
{"golden_diff": "diff --git a/frigate/restream.py b/frigate/restream.py\n--- a/frigate/restream.py\n+++ b/frigate/restream.py\n@@ -52,7 +52,9 @@\n input.path.startswith(\"rtsp\")\n and not camera.restream.force_audio\n ):\n- self...
1,294
145