problem_id
stringlengths
18
22
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
58
prompt
stringlengths
1.1k
25.4k
golden_diff
stringlengths
145
5.13k
verification_info
stringlengths
582
39.1k
num_tokens
int64
271
4.1k
num_tokens_diff
int64
47
1.02k
gh_patches_debug_35213
rasdani/github-patches
git_diff
saleor__saleor-5590
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- psycopg2.errors.NotNullViolation: column "slug" contains null values ### What I'm trying to achieve Upgrade from version 2.9.0 to 2.10.0-rc.1. Running the migrate command successfully. Result: ``` Appl...
diff --git a/saleor/product/migrations/0112_auto_20200129_0050.py b/saleor/product/migrations/0112_auto_20200129_0050.py --- a/saleor/product/migrations/0112_auto_20200129_0050.py +++ b/saleor/product/migrations/0112_auto_20200129_0050.py @@ -27,6 +27,7 @@ slug = generate_unique_slug(product_type, slug_value...
{"golden_diff": "diff --git a/saleor/product/migrations/0112_auto_20200129_0050.py b/saleor/product/migrations/0112_auto_20200129_0050.py\n--- a/saleor/product/migrations/0112_auto_20200129_0050.py\n+++ b/saleor/product/migrations/0112_auto_20200129_0050.py\n@@ -27,6 +27,7 @@\n \n slug = generate_unique_slug(pr...
3,692
717
gh_patches_debug_16839
rasdani/github-patches
git_diff
saleor__saleor-3159
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Getting error when category has no background image ### Steps to reproduce the problem 1. Create category with no background image 2. Exec query ``` { category { backgroundImage { url ...
diff --git a/saleor/graphql/product/types.py b/saleor/graphql/product/types.py --- a/saleor/graphql/product/types.py +++ b/saleor/graphql/product/types.py @@ -296,6 +296,9 @@ interfaces = [relay.Node] model = models.Collection + def resolve_background_image(self, info, **kwargs): + return ...
{"golden_diff": "diff --git a/saleor/graphql/product/types.py b/saleor/graphql/product/types.py\n--- a/saleor/graphql/product/types.py\n+++ b/saleor/graphql/product/types.py\n@@ -296,6 +296,9 @@\n interfaces = [relay.Node]\n model = models.Collection\n \n+ def resolve_background_image(self, info, **k...
4,059
195
gh_patches_debug_35340
rasdani/github-patches
git_diff
microsoft__playwright-python-86
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update versions in README.md on Playwright roll --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `build_driv...
diff --git a/build_driver.py b/build_driver.py --- a/build_driver.py +++ b/build_driver.py @@ -14,33 +14,52 @@ import gzip import os +import re import shutil import subprocess +from pathlib import Path -driver_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "driver") -package_path = os.path.join...
{"golden_diff": "diff --git a/build_driver.py b/build_driver.py\n--- a/build_driver.py\n+++ b/build_driver.py\n@@ -14,33 +14,52 @@\n \n import gzip\n import os\n+import re\n import shutil\n import subprocess\n+from pathlib import Path\n \n-driver_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), \"driver\...
808
733
gh_patches_debug_18813
rasdani/github-patches
git_diff
ibis-project__ibis-2521
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BENCH: cleanup errors around benchmarks we are showing some errors in the benchmark suite: https://github.com/ibis-project/ibis/pull/2451/checks?check_run_id=1220781799 would be nice to have these run full...
diff --git a/benchmarks/benchmarks.py b/benchmarks/benchmarks.py --- a/benchmarks/benchmarks.py +++ b/benchmarks/benchmarks.py @@ -138,7 +138,7 @@ class PandasBackend: def setup(self): - n = 30 * int(2e5) + n = 30 * int(2e4) self.data = pd.DataFrame( { 'key':...
{"golden_diff": "diff --git a/benchmarks/benchmarks.py b/benchmarks/benchmarks.py\n--- a/benchmarks/benchmarks.py\n+++ b/benchmarks/benchmarks.py\n@@ -138,7 +138,7 @@\n \n class PandasBackend:\n def setup(self):\n- n = 30 * int(2e5)\n+ n = 30 * int(2e4)\n self.data = pd.DataFrame(\n ...
3,174
251
gh_patches_debug_12201
rasdani/github-patches
git_diff
PyGithub__PyGithub-1433
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- List pull requests based on commit There's a functionality on the Github API that is apparently not supported on PyGithub -- https://developer.github.com/v3/repos/commits/#list-pull-requests-associated-with-c...
diff --git a/github/Commit.py b/github/Commit.py --- a/github/Commit.py +++ b/github/Commit.py @@ -245,6 +245,19 @@ self._requester, headers, data, completed=True ) + def get_pulls(self): + """ + :calls: `GET /repos/:owner/:repo/commits/:sha/pulls <https://developer.github.com/v...
{"golden_diff": "diff --git a/github/Commit.py b/github/Commit.py\n--- a/github/Commit.py\n+++ b/github/Commit.py\n@@ -245,6 +245,19 @@\n self._requester, headers, data, completed=True\n )\n \n+ def get_pulls(self):\n+ \"\"\"\n+ :calls: `GET /repos/:owner/:repo/commits/:sha/pulls <h...
3,722
220
gh_patches_debug_17758
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-1857
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug]: "Ortsteil" missing for AbfallPlus in Weißenburg/Gunzenhausen ### I Have A Problem With: A specific source ### What's Your Problem For my part of the village (aka "Ortsteil") it is not choosable. Y...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/wizard/app_abfallplus_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/wizard/app_abfallplus_de.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/wizard/app_abfallplus_de.py +++ b...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/wizard/app_abfallplus_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/wizard/app_abfallplus_de.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/wizard/app_abfa...
2,786
263
gh_patches_debug_38367
rasdani/github-patches
git_diff
napari__napari-5997
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Setting active layer from a plugin on PublicOnlyProxy works partially, but not in GUI ## 🐛 Bug We’re writing a [classifier plugin](https://github.com/fractal-napari-plugins-collection/napari-feature-class...
diff --git a/napari/utils/_proxies.py b/napari/utils/_proxies.py --- a/napari/utils/_proxies.py +++ b/napari/utils/_proxies.py @@ -119,6 +119,24 @@ typ = type(self.__wrapped__).__name__ self._private_attr_warning(name, typ) + if isinstance(value, PublicOnlyProxy): + # if we...
{"golden_diff": "diff --git a/napari/utils/_proxies.py b/napari/utils/_proxies.py\n--- a/napari/utils/_proxies.py\n+++ b/napari/utils/_proxies.py\n@@ -119,6 +119,24 @@\n typ = type(self.__wrapped__).__name__\n self._private_attr_warning(name, typ)\n \n+ if isinstance(value, PublicOnlyProx...
3,683
766
gh_patches_debug_47576
rasdani/github-patches
git_diff
getpelican__pelican-905
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pelican-quickstart: error with accented characters Hello, I've got a problem with pelican-quickstart, when I put accented characters in answers. Here is the output I got : > Who will be the author of this...
diff --git a/pelican/tools/pelican_quickstart.py b/pelican/tools/pelican_quickstart.py --- a/pelican/tools/pelican_quickstart.py +++ b/pelican/tools/pelican_quickstart.py @@ -37,8 +37,7 @@ if six.PY3: r = input(prompt) else: - # FIXME: why use this with @decoding_strings? - r = raw_inpu...
{"golden_diff": "diff --git a/pelican/tools/pelican_quickstart.py b/pelican/tools/pelican_quickstart.py\n--- a/pelican/tools/pelican_quickstart.py\n+++ b/pelican/tools/pelican_quickstart.py\n@@ -37,8 +37,7 @@\n if six.PY3:\n r = input(prompt)\n else:\n- # FIXME: why use this with @decoding_string...
3,814
126
gh_patches_debug_21314
rasdani/github-patches
git_diff
matrix-org__synapse-4330
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 500s calling /messages on matrix.org as seen by @schiessle on riot-android at https://github.com/vector-im/riot-android/issues/2802 --- END ISSUE --- Below are some code segments, each from a relevant file....
diff --git a/synapse/handlers/pagination.py b/synapse/handlers/pagination.py --- a/synapse/handlers/pagination.py +++ b/synapse/handlers/pagination.py @@ -235,6 +235,17 @@ "room_key", next_key ) + if events: + if event_filter: + events = event_filter.filt...
{"golden_diff": "diff --git a/synapse/handlers/pagination.py b/synapse/handlers/pagination.py\n--- a/synapse/handlers/pagination.py\n+++ b/synapse/handlers/pagination.py\n@@ -235,6 +235,17 @@\n \"room_key\", next_key\n )\n \n+ if events:\n+ if event_filter:\n+ ...
3,162
258
gh_patches_debug_23812
rasdani/github-patches
git_diff
interlegis__sapl-2091
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Auto-numeração de Norma Jurídica Retirado do tíquete nº 132457 "Bom dia, Achei muito útil a funcionalidade de numeração automática das normas jurídicas no SAPL 3.1 Outra novidade que gostei muito é a aceit...
diff --git a/sapl/norma/views.py b/sapl/norma/views.py --- a/sapl/norma/views.py +++ b/sapl/norma/views.py @@ -1,4 +1,5 @@ +import re import weasyprint from django.contrib.auth.mixins import PermissionRequiredMixin from django.core.exceptions import ObjectDoesNotExist @@ -201,14 +202,12 @@ def recuperar_numero_no...
{"golden_diff": "diff --git a/sapl/norma/views.py b/sapl/norma/views.py\n--- a/sapl/norma/views.py\n+++ b/sapl/norma/views.py\n@@ -1,4 +1,5 @@\n \n+import re\n import weasyprint\n from django.contrib.auth.mixins import PermissionRequiredMixin\n from django.core.exceptions import ObjectDoesNotExist\n@@ -201,14 +202,12 @...
3,250
313
gh_patches_debug_14947
rasdani/github-patches
git_diff
python-telegram-bot__python-telegram-bot-751
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- RegexHandler error with stickers, voices, images... RegexHandler does not check if update.effective_message.text exists. ### Steps to reproduce 1. Add a RegexHandler 2. Run the bot 3. Send a sticker ...
diff --git a/telegram/ext/regexhandler.py b/telegram/ext/regexhandler.py --- a/telegram/ext/regexhandler.py +++ b/telegram/ext/regexhandler.py @@ -142,11 +142,12 @@ Returns: :obj:`bool` """ - + if not isinstance(update, Update) and not update.effective_message: + return ...
{"golden_diff": "diff --git a/telegram/ext/regexhandler.py b/telegram/ext/regexhandler.py\n--- a/telegram/ext/regexhandler.py\n+++ b/telegram/ext/regexhandler.py\n@@ -142,11 +142,12 @@\n Returns:\n :obj:`bool`\n \"\"\"\n-\n+ if not isinstance(update, Update) and not update.effective_m...
2,607
178
gh_patches_debug_34803
rasdani/github-patches
git_diff
learningequality__kolibri-5393
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Auto sign-out from tablets during normal class **Observed behavior** Kids are signout out of their tabs automatically while watching videos or doing quizzes **Expected behavior** The user should not be s...
diff --git a/kolibri/core/logger/api.py b/kolibri/core/logger/api.py --- a/kolibri/core/logger/api.py +++ b/kolibri/core/logger/api.py @@ -1,12 +1,17 @@ +import logging + from django.core.exceptions import ObjectDoesNotExist from django.db.models.query import F +from django.db.utils import IntegrityError from django...
{"golden_diff": "diff --git a/kolibri/core/logger/api.py b/kolibri/core/logger/api.py\n--- a/kolibri/core/logger/api.py\n+++ b/kolibri/core/logger/api.py\n@@ -1,12 +1,17 @@\n+import logging\n+\n from django.core.exceptions import ObjectDoesNotExist\n from django.db.models.query import F\n+from django.db.utils import In...
2,926
439
gh_patches_debug_33690
rasdani/github-patches
git_diff
bridgecrewio__checkov-2027
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Delimiter in wrong position when using multi-output with empty error list **Describe the bug** The "--- OUTPUT DELIMITER ---" message appears below two outputs when running on a project without any errors to...
diff --git a/checkov/common/runners/runner_registry.py b/checkov/common/runners/runner_registry.py --- a/checkov/common/runners/runner_registry.py +++ b/checkov/common/runners/runner_registry.py @@ -101,6 +101,7 @@ if "cli" in config.output and not config.quiet: print(f"{self.banner}\n") ...
{"golden_diff": "diff --git a/checkov/common/runners/runner_registry.py b/checkov/common/runners/runner_registry.py\n--- a/checkov/common/runners/runner_registry.py\n+++ b/checkov/common/runners/runner_registry.py\n@@ -101,6 +101,7 @@\n if \"cli\" in config.output and not config.quiet:\n print(f\"{s...
3,585
429
gh_patches_debug_37315
rasdani/github-patches
git_diff
nltk__nltk-900
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- HunposTagger error in Python3 Bug report from Tülin Erçelebi Ayyıldız: > Dear hunpos authors, > > I am currently trying to use hunpos tagger to tag a text file, however I get an error at the stage of hunpos...
diff --git a/nltk/tag/hunpos.py b/nltk/tag/hunpos.py --- a/nltk/tag/hunpos.py +++ b/nltk/tag/hunpos.py @@ -3,8 +3,8 @@ # # Copyright (C) 2001-2015 NLTK Project # Author: Peter Ljunglöf <peter.ljunglof@heatherleaf.se> -# David Nemeskey <nemeskeyd@gmail.com> (modifications) -# Attila Zseder <zseder@gma...
{"golden_diff": "diff --git a/nltk/tag/hunpos.py b/nltk/tag/hunpos.py\n--- a/nltk/tag/hunpos.py\n+++ b/nltk/tag/hunpos.py\n@@ -3,8 +3,8 @@\n #\n # Copyright (C) 2001-2015 NLTK Project\n # Author: Peter Ljungl\u00f6f <peter.ljunglof@heatherleaf.se>\n-# David Nemeskey <nemeskeyd@gmail.com> (modifications)\n-# ...
2,246
670
gh_patches_debug_34326
rasdani/github-patches
git_diff
encode__starlette-1350
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- StaticFiles support for directories other than "statics" ### Checklist <!-- Please make sure you check all these items before submitting your feature request. --> - [/] There are no similar issues or pu...
diff --git a/starlette/staticfiles.py b/starlette/staticfiles.py --- a/starlette/staticfiles.py +++ b/starlette/staticfiles.py @@ -40,7 +40,7 @@ self, *, directory: PathLike = None, - packages: typing.List[str] = None, + packages: typing.List[typing.Union[str, typing.Tuple[str, ...
{"golden_diff": "diff --git a/starlette/staticfiles.py b/starlette/staticfiles.py\n--- a/starlette/staticfiles.py\n+++ b/starlette/staticfiles.py\n@@ -40,7 +40,7 @@\n self,\n *,\n directory: PathLike = None,\n- packages: typing.List[str] = None,\n+ packages: typing.List[typing.Unio...
2,798
480
gh_patches_debug_7039
rasdani/github-patches
git_diff
encode__httpx-545
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Instances of `tempfile.TemporaryFile` fail when used as an upload file. When using `tempfile.TemporaryFile` the `file.name` attribute returns an integer, rather than the usual path string, which causes a brea...
diff --git a/httpx/multipart.py b/httpx/multipart.py --- a/httpx/multipart.py +++ b/httpx/multipart.py @@ -48,7 +48,7 @@ ) -> None: self.name = name if not isinstance(value, tuple): - self.filename = Path(getattr(value, "name", "upload")).name + self.filename = Path(str(geta...
{"golden_diff": "diff --git a/httpx/multipart.py b/httpx/multipart.py\n--- a/httpx/multipart.py\n+++ b/httpx/multipart.py\n@@ -48,7 +48,7 @@\n ) -> None:\n self.name = name\n if not isinstance(value, tuple):\n- self.filename = Path(getattr(value, \"name\", \"upload\")).name\n+ ...
2,290
137
gh_patches_debug_1213
rasdani/github-patches
git_diff
scalableminds__webknossos-libs-312
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Convenience for wkcuber.api To open/create a dataset with the cool new high-level API the following code is required: ```python from wkcuber.api.Dataset import WKDataset from pathlib import Path ds1 =...
diff --git a/wkcuber/__init__.py b/wkcuber/__init__.py --- a/wkcuber/__init__.py +++ b/wkcuber/__init__.py @@ -1,4 +1,6 @@ +from .api.Dataset import WKDataset from .cubing import cubing from .downsampling import downsample_mags from .compress import compress_mag +from .mag import Mag from .metadata import write_web...
{"golden_diff": "diff --git a/wkcuber/__init__.py b/wkcuber/__init__.py\n--- a/wkcuber/__init__.py\n+++ b/wkcuber/__init__.py\n@@ -1,4 +1,6 @@\n+from .api.Dataset import WKDataset\n from .cubing import cubing\n from .downsampling import downsample_mags\n from .compress import compress_mag\n+from .mag import Mag\n from ...
499
103
gh_patches_debug_15531
rasdani/github-patches
git_diff
tensorflow__addons-2299
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Enable SSE4.2 and AVX support during build So the pip installed TF does not support these instruction sets by default, but modern-ish CPUs do. (Roughly CPUs after 2012). We could try this and see if there ...
diff --git a/configure.py b/configure.py --- a/configure.py +++ b/configure.py @@ -44,6 +44,10 @@ return platform.system() == "Windows" +def is_linux(): + return platform.system() == "Linux" + + def is_raspi_arm(): return os.uname()[4] == "armv7l" @@ -111,6 +115,10 @@ write("build --config=...
{"golden_diff": "diff --git a/configure.py b/configure.py\n--- a/configure.py\n+++ b/configure.py\n@@ -44,6 +44,10 @@\n return platform.system() == \"Windows\"\n \n \n+def is_linux():\n+ return platform.system() == \"Linux\"\n+\n+\n def is_raspi_arm():\n return os.uname()[4] == \"armv7l\"\n \n@@ -111,6 +115,...
1,804
211
gh_patches_debug_16647
rasdani/github-patches
git_diff
ietf-tools__datatracker-3832
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- person_link error in charter document view ### What happened? A 500 error occurs when retrieving some group charter documents. E.g., when getting `/doc/charter-ietf-cat/`: ``` ERROR: django.request:228: In...
diff --git a/ietf/person/templatetags/person_filters.py b/ietf/person/templatetags/person_filters.py --- a/ietf/person/templatetags/person_filters.py +++ b/ietf/person/templatetags/person_filters.py @@ -37,10 +37,19 @@ @register.inclusion_tag("person/person_link.html") def person_link(person, **kwargs): + """Ren...
{"golden_diff": "diff --git a/ietf/person/templatetags/person_filters.py b/ietf/person/templatetags/person_filters.py\n--- a/ietf/person/templatetags/person_filters.py\n+++ b/ietf/person/templatetags/person_filters.py\n@@ -37,10 +37,19 @@\n \n @register.inclusion_tag(\"person/person_link.html\")\n def person_link(perso...
2,860
254
gh_patches_debug_29909
rasdani/github-patches
git_diff
nf-core__tools-2031
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bump minimum required Nextflow version ### Description of feature Latest stable release brings lots of new features that we probably want to use at module level (eg. `bin` directories). --- END ISSUE --- B...
diff --git a/nf_core/lint/readme.py b/nf_core/lint/readme.py --- a/nf_core/lint/readme.py +++ b/nf_core/lint/readme.py @@ -40,7 +40,7 @@ if "nextflow_badge" not in ignore_configs: # Check that there is a readme badge showing the minimum required version of Nextflow - # [![Nextflow](https://img.sh...
{"golden_diff": "diff --git a/nf_core/lint/readme.py b/nf_core/lint/readme.py\n--- a/nf_core/lint/readme.py\n+++ b/nf_core/lint/readme.py\n@@ -40,7 +40,7 @@\n \n if \"nextflow_badge\" not in ignore_configs:\n # Check that there is a readme badge showing the minimum required version of Nextflow\n- # [...
1,437
490
gh_patches_debug_937
rasdani/github-patches
git_diff
boto__boto-2166
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Invalid path check in euca-bundle-image The -i option uses convert_file in boto/roboto/param.py to verify that the path passed is, indeed, a file. This fails unless the path specified is a boring old file whi...
diff --git a/boto/roboto/param.py b/boto/roboto/param.py --- a/boto/roboto/param.py +++ b/boto/roboto/param.py @@ -46,7 +46,7 @@ @classmethod def convert_file(cls, param, value): - if os.path.isfile(value): + if os.path.exists(value) and not os.path.isdir(value): return value ...
{"golden_diff": "diff --git a/boto/roboto/param.py b/boto/roboto/param.py\n--- a/boto/roboto/param.py\n+++ b/boto/roboto/param.py\n@@ -46,7 +46,7 @@\n \n @classmethod\n def convert_file(cls, param, value):\n- if os.path.isfile(value):\n+ if os.path.exists(value) and not os.path.isdir(value):\n ...
1,750
102
gh_patches_debug_22109
rasdani/github-patches
git_diff
scoutapp__scout_apm_python-259
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Warn about wrong values for SCOUT_AGENT_TRIPLE Follow-on to #239 - it's easy to override `SCOUT_AGENT_TRIPLE` to a wrong value. We should add some validation here with a log message if it looks wrong. --- EN...
diff --git a/src/scout_apm/core/config.py b/src/scout_apm/core/config.py --- a/src/scout_apm/core/config.py +++ b/src/scout_apm/core/config.py @@ -192,10 +192,13 @@ ) def derive_core_agent_full_name(self): + triple = self.config.value("core_agent_triple") + if not platform_detection.is_val...
{"golden_diff": "diff --git a/src/scout_apm/core/config.py b/src/scout_apm/core/config.py\n--- a/src/scout_apm/core/config.py\n+++ b/src/scout_apm/core/config.py\n@@ -192,10 +192,13 @@\n )\n \n def derive_core_agent_full_name(self):\n+ triple = self.config.value(\"core_agent_triple\")\n+ if no...
3,390
356
gh_patches_debug_51416
rasdani/github-patches
git_diff
pallets__click-1496
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ClickException message goes to stdout instead of stderr with version 7.1 Thanks a lot for ``click`` - absolutely fantastic project. I've noticed the following change when upgrading to 7.1, and am not sure...
diff --git a/src/click/exceptions.py b/src/click/exceptions.py --- a/src/click/exceptions.py +++ b/src/click/exceptions.py @@ -39,7 +39,7 @@ def show(self, file=None): if file is None: file = get_text_stderr() - echo("Error: {}".format(self.format_message(), file=file)) + echo("...
{"golden_diff": "diff --git a/src/click/exceptions.py b/src/click/exceptions.py\n--- a/src/click/exceptions.py\n+++ b/src/click/exceptions.py\n@@ -39,7 +39,7 @@\n def show(self, file=None):\n if file is None:\n file = get_text_stderr()\n- echo(\"Error: {}\".format(self.format_message(), f...
3,096
107
gh_patches_debug_35737
rasdani/github-patches
git_diff
CTFd__CTFd-899
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot unset country field **Environment**: - CTFd Version/Commit: tag 2.0.4 - Operating System: Ubuntu 16.04 - Web Browser and Version: Chrome latest **What happened?** I changed my country to...
diff --git a/CTFd/schemas/users.py b/CTFd/schemas/users.py --- a/CTFd/schemas/users.py +++ b/CTFd/schemas/users.py @@ -39,10 +39,13 @@ website = field_for( Users, 'website', - validate=validate.URL( - error='Websites must be a proper URL starting with http or https', - ...
{"golden_diff": "diff --git a/CTFd/schemas/users.py b/CTFd/schemas/users.py\n--- a/CTFd/schemas/users.py\n+++ b/CTFd/schemas/users.py\n@@ -39,10 +39,13 @@\n website = field_for(\n Users,\n 'website',\n- validate=validate.URL(\n- error='Websites must be a proper URL starting with ht...
2,415
519
gh_patches_debug_526
rasdani/github-patches
git_diff
Parsl__parsl-2302
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove parsl container bits This issue is to remind us to remove Parsl container support and update the docs as soon as the funcX executor is integrated-- we should switch to recommending container support th...
diff --git a/docker/app1/app1.py b/docker/app1/app1.py deleted file mode 100644 --- a/docker/app1/app1.py +++ /dev/null @@ -1,4 +0,0 @@ - -def predict(list_items): - """Returns the double of the items""" - return [i*2 for i in list_items] diff --git a/docker/app2/app2.py b/docker/app2/app2.py deleted file mode 10...
{"golden_diff": "diff --git a/docker/app1/app1.py b/docker/app1/app1.py\ndeleted file mode 100644\n--- a/docker/app1/app1.py\n+++ /dev/null\n@@ -1,4 +0,0 @@\n-\n-def predict(list_items):\n- \"\"\"Returns the double of the items\"\"\"\n- return [i*2 for i in list_items]\ndiff --git a/docker/app2/app2.py b/docker/a...
383
164
gh_patches_debug_38871
rasdani/github-patches
git_diff
ansible-collections__community.general-4360
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ldap_entry: recursive deletion ### Summary I would like to delete a whole branch of my ldap tree with `ldap_entry` but it seems recursive deletions are not supported. I suggest handling recursive deletion...
diff --git a/plugins/modules/net_tools/ldap/ldap_entry.py b/plugins/modules/net_tools/ldap/ldap_entry.py --- a/plugins/modules/net_tools/ldap/ldap_entry.py +++ b/plugins/modules/net_tools/ldap/ldap_entry.py @@ -49,6 +49,13 @@ choices: [present, absent] default: present type: str + recursive: + descri...
{"golden_diff": "diff --git a/plugins/modules/net_tools/ldap/ldap_entry.py b/plugins/modules/net_tools/ldap/ldap_entry.py\n--- a/plugins/modules/net_tools/ldap/ldap_entry.py\n+++ b/plugins/modules/net_tools/ldap/ldap_entry.py\n@@ -49,6 +49,13 @@\n choices: [present, absent]\n default: present\n type: str\n+...
3,104
644
gh_patches_debug_24047
rasdani/github-patches
git_diff
pyinstaller__pyinstaller-8192
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- site-packages\django\contrib\sites has managment.py file which is conflicting with managment directory and causing a issue in tree get issue in _pyi_pkgutil_iter_modules as dirretory name and file are same W...
diff --git a/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py b/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py --- a/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py +++ b/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py @@ -99,7 +99,10 @@ tree_node = importer.toc_tree for pkg_name_part in pkg_prefi...
{"golden_diff": "diff --git a/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py b/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py\n--- a/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py\n+++ b/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py\n@@ -99,7 +99,10 @@\n tree_node = importer.toc_tree\n for pkg_...
3,935
319
gh_patches_debug_26453
rasdani/github-patches
git_diff
StackStorm__st2-4666
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- st2 python3 interpreter is falling back to importing a python2 lib that is incompatible with python3 ##### SUMMARY One of my libraries is trying to import `cassandra.cluster`. That library is trying to i...
diff --git a/st2common/st2common/util/sandboxing.py b/st2common/st2common/util/sandboxing.py --- a/st2common/st2common/util/sandboxing.py +++ b/st2common/st2common/util/sandboxing.py @@ -160,8 +160,30 @@ python3_site_packages_directory = os.path.join(pack_virtualenv_lib_path, ...
{"golden_diff": "diff --git a/st2common/st2common/util/sandboxing.py b/st2common/st2common/util/sandboxing.py\n--- a/st2common/st2common/util/sandboxing.py\n+++ b/st2common/st2common/util/sandboxing.py\n@@ -160,8 +160,30 @@\n python3_site_packages_directory = os.path.join(pack_virtualenv_lib_path,\n ...
2,911
392
gh_patches_debug_12266
rasdani/github-patches
git_diff
mindsdb__mindsdb-1799
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Connection to CocroachDB is not possible --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `mindsdb/integrati...
diff --git a/mindsdb/integrations/postgres/postgres.py b/mindsdb/integrations/postgres/postgres.py --- a/mindsdb/integrations/postgres/postgres.py +++ b/mindsdb/integrations/postgres/postgres.py @@ -15,12 +15,16 @@ self.database = kwargs.get('database', 'postgres') def _get_connection(self): + ad...
{"golden_diff": "diff --git a/mindsdb/integrations/postgres/postgres.py b/mindsdb/integrations/postgres/postgres.py\n--- a/mindsdb/integrations/postgres/postgres.py\n+++ b/mindsdb/integrations/postgres/postgres.py\n@@ -15,12 +15,16 @@\n self.database = kwargs.get('database', 'postgres')\n \n def _get_connec...
2,476
176
gh_patches_debug_8280
rasdani/github-patches
git_diff
spyder-ide__spyder-11533
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Crash when trying to run a Python file in a project from the explorer pane - Spyder 4.0.1 <!--- **PLEASE READ:** When submitting here, please ensure you've completed the following checklist and checked the bo...
diff --git a/spyder/plugins/explorer/plugin.py b/spyder/plugins/explorer/plugin.py --- a/spyder/plugins/explorer/plugin.py +++ b/spyder/plugins/explorer/plugin.py @@ -97,7 +97,7 @@ treewidget.sig_run.connect( lambda fname: ipyconsole.run_script(fname, osp.dirname(fname), '', False, ...
{"golden_diff": "diff --git a/spyder/plugins/explorer/plugin.py b/spyder/plugins/explorer/plugin.py\n--- a/spyder/plugins/explorer/plugin.py\n+++ b/spyder/plugins/explorer/plugin.py\n@@ -97,7 +97,7 @@\n treewidget.sig_run.connect(\r\n lambda fname:\r\n ipyconsole.run_script(fname, osp.di...
3,232
121
gh_patches_debug_1401
rasdani/github-patches
git_diff
ktbyers__netmiko-1073
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Huawei vrpv8 commit func issue After commiting changes on huawei vrpv8, cli on devices look like this: ``` [~HUAWEI]dot1x enable [*HUAWEI]snmp-agent sys-info version all Warning: SNMPv1/SNMPv2c is not se...
diff --git a/netmiko/huawei/huawei_ssh.py b/netmiko/huawei/huawei_ssh.py --- a/netmiko/huawei/huawei_ssh.py +++ b/netmiko/huawei/huawei_ssh.py @@ -115,6 +115,7 @@ strip_prompt=False, strip_command=False, delay_factor=delay_factor, + expect_string=r"]", ) ...
{"golden_diff": "diff --git a/netmiko/huawei/huawei_ssh.py b/netmiko/huawei/huawei_ssh.py\n--- a/netmiko/huawei/huawei_ssh.py\n+++ b/netmiko/huawei/huawei_ssh.py\n@@ -115,6 +115,7 @@\n strip_prompt=False,\n strip_command=False,\n delay_factor=delay_factor,\n+ expect_string...
1,987
104
gh_patches_debug_17030
rasdani/github-patches
git_diff
apache__tvm-6499
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [uTVM] Use an alternative CRC Library The 3rdparty crc library introduced in https://github.com/apache/incubator-tvm/pull/6334 has a license problem. We will need to replace it with a new impl or an alte...
diff --git a/python/tvm/micro/build.py b/python/tvm/micro/build.py --- a/python/tvm/micro/build.py +++ b/python/tvm/micro/build.py @@ -60,10 +60,7 @@ RUNTIME_LIB_SRC_DIRS = [os.path.join(CRT_ROOT_DIR, n) for n in CRT_RUNTIME_LIB_NAMES] + [ - os.path.join( - TVM_ROOT_DIR, - "3rdparty/mbed-os/target...
{"golden_diff": "diff --git a/python/tvm/micro/build.py b/python/tvm/micro/build.py\n--- a/python/tvm/micro/build.py\n+++ b/python/tvm/micro/build.py\n@@ -60,10 +60,7 @@\n \n \n RUNTIME_LIB_SRC_DIRS = [os.path.join(CRT_ROOT_DIR, n) for n in CRT_RUNTIME_LIB_NAMES] + [\n- os.path.join(\n- TVM_ROOT_DIR,\n- ...
1,832
285
gh_patches_debug_34927
rasdani/github-patches
git_diff
sunpy__sunpy-5738
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fido HECClient returns out-of-date results When trying to access HEC data through Fido HECClient, the data returned is ~1 month out of date. Looking at the current web gui for the HEC API, it returns events u...
diff --git a/sunpy/net/helio/hec.py b/sunpy/net/helio/hec.py --- a/sunpy/net/helio/hec.py +++ b/sunpy/net/helio/hec.py @@ -16,7 +16,7 @@ from sunpy.net.helio import attrs as ha from sunpy.net.helio import parser from sunpy.time import parse_time -from sunpy.util.exceptions import warn_deprecated +from sunpy.util.exc...
{"golden_diff": "diff --git a/sunpy/net/helio/hec.py b/sunpy/net/helio/hec.py\n--- a/sunpy/net/helio/hec.py\n+++ b/sunpy/net/helio/hec.py\n@@ -16,7 +16,7 @@\n from sunpy.net.helio import attrs as ha\n from sunpy.net.helio import parser\n from sunpy.time import parse_time\n-from sunpy.util.exceptions import warn_depreca...
3,948
507
gh_patches_debug_28035
rasdani/github-patches
git_diff
scikit-image__scikit-image-6293
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Build image pyramids not always working with other images ## Description Using the *[Build image pyramids](https://scikit-image.org/docs/dev/auto_examples/transform/plot_pyramid.html)* example with a random ...
diff --git a/doc/examples/transform/plot_pyramid.py b/doc/examples/transform/plot_pyramid.py --- a/doc/examples/transform/plot_pyramid.py +++ b/doc/examples/transform/plot_pyramid.py @@ -9,6 +9,8 @@ detection. """ +import math + import numpy as np import matplotlib.pyplot as plt @@ -20,10 +22,31 @@ rows, cols,...
{"golden_diff": "diff --git a/doc/examples/transform/plot_pyramid.py b/doc/examples/transform/plot_pyramid.py\n--- a/doc/examples/transform/plot_pyramid.py\n+++ b/doc/examples/transform/plot_pyramid.py\n@@ -9,6 +9,8 @@\n detection.\n \n \"\"\"\n+import math\n+\n import numpy as np\n import matplotlib.pyplot as plt\n \n...
1,404
450
gh_patches_debug_21479
rasdani/github-patches
git_diff
ansible__molecule-2063
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Extra vars are not passed to the playbook anymore with converge. <!--- Verify first that your issue is not already reported on GitHub --> <!--- Please also check https://molecule.readthedocs.io/en/latest/faq...
diff --git a/molecule/command/base.py b/molecule/command/base.py --- a/molecule/command/base.py +++ b/molecule/command/base.py @@ -72,7 +72,10 @@ self._config.provisioner.manage_inventory() -def execute_cmdline_scenarios(scenario_name, args, command_args): +def execute_cmdline_scenarios(scenario_name, + ...
{"golden_diff": "diff --git a/molecule/command/base.py b/molecule/command/base.py\n--- a/molecule/command/base.py\n+++ b/molecule/command/base.py\n@@ -72,7 +72,10 @@\n self._config.provisioner.manage_inventory()\n \n \n-def execute_cmdline_scenarios(scenario_name, args, command_args):\n+def execute_cmdline_scen...
3,530
280
gh_patches_debug_25326
rasdani/github-patches
git_diff
mlflow__mlflow-12224
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] uc_volume_dataset_source only validates file paths, not folder paths ### Issues Policy acknowledgement - [X] I have read and agree to submit bug reports in accordance with the [issues policy](https://w...
diff --git a/mlflow/data/uc_volume_dataset_source.py b/mlflow/data/uc_volume_dataset_source.py --- a/mlflow/data/uc_volume_dataset_source.py +++ b/mlflow/data/uc_volume_dataset_source.py @@ -22,10 +22,10 @@ """ def __init__(self, path: str): - self._verify_uc_path_is_valid(path) self.path = ...
{"golden_diff": "diff --git a/mlflow/data/uc_volume_dataset_source.py b/mlflow/data/uc_volume_dataset_source.py\n--- a/mlflow/data/uc_volume_dataset_source.py\n+++ b/mlflow/data/uc_volume_dataset_source.py\n@@ -22,10 +22,10 @@\n \"\"\"\n \n def __init__(self, path: str):\n- self._verify_uc_path_is_valid(...
1,752
349
gh_patches_debug_24966
rasdani/github-patches
git_diff
chainer__chainer-2721
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- resuming issue of LinearShift Same issue as #2680 ``` import chainer from chainer import iterators from chainer import optimizers from chainer import training from chainer.training import extensions ...
diff --git a/chainer/training/extensions/linear_shift.py b/chainer/training/extensions/linear_shift.py --- a/chainer/training/extensions/linear_shift.py +++ b/chainer/training/extensions/linear_shift.py @@ -36,23 +36,34 @@ self._value_range = value_range self._time_range = time_range self._op...
{"golden_diff": "diff --git a/chainer/training/extensions/linear_shift.py b/chainer/training/extensions/linear_shift.py\n--- a/chainer/training/extensions/linear_shift.py\n+++ b/chainer/training/extensions/linear_shift.py\n@@ -36,23 +36,34 @@\n self._value_range = value_range\n self._time_range = time_r...
1,438
419
gh_patches_debug_30842
rasdani/github-patches
git_diff
jupyterhub__zero-to-jupyterhub-k8s-416
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Block access to cloud metadata endpoint by default Currently, we expect users to do extra steps to secure their clusters from users accessing the cloud metadata endpoints (https://zero-to-jupyterhub.readthedo...
diff --git a/images/hub/jupyterhub_config.py b/images/hub/jupyterhub_config.py --- a/images/hub/jupyterhub_config.py +++ b/images/hub/jupyterhub_config.py @@ -1,6 +1,7 @@ import os import glob from tornado.httpclient import AsyncHTTPClient +from kubernetes import client from z2jh import get_config, get_secret @...
{"golden_diff": "diff --git a/images/hub/jupyterhub_config.py b/images/hub/jupyterhub_config.py\n--- a/images/hub/jupyterhub_config.py\n+++ b/images/hub/jupyterhub_config.py\n@@ -1,6 +1,7 @@\n import os\n import glob\n from tornado.httpclient import AsyncHTTPClient\n+from kubernetes import client\n \n from z2jh import ...
3,944
463
gh_patches_debug_33052
rasdani/github-patches
git_diff
ansible__ansible-modules-extras-2818
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- vmware_local_user_manager error: 'module' not defined ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME vmware_local_user_manager ##### ANSIBLE VERSION ``` ansible 2.2.0 (devel 321d2e8cee) last updated 201...
diff --git a/cloud/vmware/vmware_local_user_manager.py b/cloud/vmware/vmware_local_user_manager.py --- a/cloud/vmware/vmware_local_user_manager.py +++ b/cloud/vmware/vmware_local_user_manager.py @@ -137,9 +137,9 @@ task = self.content.accountManager.CreateUser(account_spec) self.module.exit_js...
{"golden_diff": "diff --git a/cloud/vmware/vmware_local_user_manager.py b/cloud/vmware/vmware_local_user_manager.py\n--- a/cloud/vmware/vmware_local_user_manager.py\n+++ b/cloud/vmware/vmware_local_user_manager.py\n@@ -137,9 +137,9 @@\n task = self.content.accountManager.CreateUser(account_spec)\n ...
3,113
402
gh_patches_debug_28704
rasdani/github-patches
git_diff
biolab__orange3-1205
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- There is a desktop file missing in a Linux version ##### Orange version 3.3.1.dev0 ##### Expected bahavior /usr/share/applications directory is populated with a orange.desktop file providing a desktop icon ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -216,6 +216,38 @@ ''', shell=True, cwd=os.path.dirname(os.path.abspath(__file__)))) +# Install desktop file and icon on GNU/Linux/BSD +DATA_FILES = [] +if any(sys.platform.startswith(platform) + for platform in ('linux', 'freebsd')): +...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -216,6 +216,38 @@\n ''', shell=True, cwd=os.path.dirname(os.path.abspath(__file__))))\n \n \n+# Install desktop file and icon on GNU/Linux/BSD\n+DATA_FILES = []\n+if any(sys.platform.startswith(platform)\n+ for platform ...
2,774
432
gh_patches_debug_502
rasdani/github-patches
git_diff
google__flax-2827
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot import flax.training.checkpoints in 0.6.4 ### System information - OS Platform and Distribution: Ubuntu 22.04.1 LTS, also in Colab environment - Flax, jax, jaxlib versions: * flax 0.6.4 * jax 0...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ install_requires = [ "numpy>=1.12", - "jax>=0.3.16", + "jax>=0.4.2", "matplotlib", # only needed for tensorboard export "msgpack", "optax",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -26,7 +26,7 @@\n \n install_requires = [\n \"numpy>=1.12\",\n- \"jax>=0.3.16\",\n+ \"jax>=0.4.2\",\n \"matplotlib\", # only needed for tensorboard export\n \"msgpack\",\n \"optax\",\n", "issue": "Cannot import f...
1,587
92
gh_patches_debug_26532
rasdani/github-patches
git_diff
jazzband__pip-tools-733
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Command in autogenerated requirements.txt can be shortened When I run `pip-compile`, my requirements.txt has ``` # # This file is autogenerated by pip-compile # To update, run: # # pip-compile --ou...
diff --git a/piptools/writer.py b/piptools/writer.py --- a/piptools/writer.py +++ b/piptools/writer.py @@ -1,8 +1,9 @@ import os +import sys from itertools import chain from ._compat import ExitStack -from .click import unstyle +from .click import unstyle, get_os_args from .io import AtomicSaver from .logging im...
{"golden_diff": "diff --git a/piptools/writer.py b/piptools/writer.py\n--- a/piptools/writer.py\n+++ b/piptools/writer.py\n@@ -1,8 +1,9 @@\n import os\n+import sys\n from itertools import chain\n \n from ._compat import ExitStack\n-from .click import unstyle\n+from .click import unstyle, get_os_args\n from .io import A...
1,960
341
gh_patches_debug_14738
rasdani/github-patches
git_diff
crytic__slither-530
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Suicidal detector fails on external functions If the [example](https://github.com/crytic/slither/wiki/Detector-Documentation#suicidal) function for the suicidal detector is changed from `public` to `external`...
diff --git a/slither/detectors/functions/suicidal.py b/slither/detectors/functions/suicidal.py --- a/slither/detectors/functions/suicidal.py +++ b/slither/detectors/functions/suicidal.py @@ -46,7 +46,7 @@ if func.is_constructor: return False - if func.visibility != 'public': + if f...
{"golden_diff": "diff --git a/slither/detectors/functions/suicidal.py b/slither/detectors/functions/suicidal.py\n--- a/slither/detectors/functions/suicidal.py\n+++ b/slither/detectors/functions/suicidal.py\n@@ -46,7 +46,7 @@\n if func.is_constructor:\n return False\n \n- if func.visibility !=...
1,144
194
gh_patches_debug_18153
rasdani/github-patches
git_diff
openmc-dev__openmc-2906
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Implement contains for BoundingBox ## Description Implement `__contains__` for `BoundingBox` containing either a point, or another `BoundingBox`. This means that users could then write: `if point in box:`...
diff --git a/openmc/bounding_box.py b/openmc/bounding_box.py --- a/openmc/bounding_box.py +++ b/openmc/bounding_box.py @@ -95,9 +95,23 @@ new |= other return new - def __contains__(self, point): - """Check whether or not a point is in the bounding box""" - return all(point > self.lo...
{"golden_diff": "diff --git a/openmc/bounding_box.py b/openmc/bounding_box.py\n--- a/openmc/bounding_box.py\n+++ b/openmc/bounding_box.py\n@@ -95,9 +95,23 @@\n new |= other\n return new\n \n- def __contains__(self, point):\n- \"\"\"Check whether or not a point is in the bounding box\"\"\"\n- ...
2,229
306
gh_patches_debug_945
rasdani/github-patches
git_diff
magenta__magenta-1793
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Retraining Onsets and Frames Drums model with E-GMD dataset Hello, I am trying to retrain OaF model with the E-GMD dataset for drums transcription. I first downloaded the E-GMD dataset which has its corres...
diff --git a/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_tfrecords.py b/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_tfrecords.py --- a/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_tfrecords.py +++ b/magenta/models/onset...
{"golden_diff": "diff --git a/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_tfrecords.py b/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_tfrecords.py\n--- a/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_tfrecords.py\n+++ b/m...
2,469
150
gh_patches_debug_57650
rasdani/github-patches
git_diff
facebookresearch__ParlAI-1956
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Quickstart AttributeError: 'HogwildWorld' object has no attribute 'acts' **Bug description** When going through the ParlAI [quickstart](https://parl.ai/docs/tutorial_quick.html#install), I got the following ...
diff --git a/parlai/scripts/build_candidates.py b/parlai/scripts/build_candidates.py --- a/parlai/scripts/build_candidates.py +++ b/parlai/scripts/build_candidates.py @@ -23,6 +23,9 @@ def build_cands(opt): # create repeat label agent and assign it to the specified task + if opt['numthreads'] > 1: + #...
{"golden_diff": "diff --git a/parlai/scripts/build_candidates.py b/parlai/scripts/build_candidates.py\n--- a/parlai/scripts/build_candidates.py\n+++ b/parlai/scripts/build_candidates.py\n@@ -23,6 +23,9 @@\n \n def build_cands(opt):\n # create repeat label agent and assign it to the specified task\n+ if opt['numt...
1,619
143
gh_patches_debug_12054
rasdani/github-patches
git_diff
quantumlib__Cirq-4816
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Substates are separated after measurements, when measurements are ignored **Description of the issue** Density matrix separates qubit states after measurement when split_untanged_states=True. However when ...
diff --git a/cirq-core/cirq/sim/act_on_args_container.py b/cirq-core/cirq/sim/act_on_args_container.py --- a/cirq-core/cirq/sim/act_on_args_container.py +++ b/cirq-core/cirq/sim/act_on_args_container.py @@ -118,8 +118,9 @@ protocols.act_on(action, op_args, act_on_qubits, allow_decompose=allow_decompose) ...
{"golden_diff": "diff --git a/cirq-core/cirq/sim/act_on_args_container.py b/cirq-core/cirq/sim/act_on_args_container.py\n--- a/cirq-core/cirq/sim/act_on_args_container.py\n+++ b/cirq-core/cirq/sim/act_on_args_container.py\n@@ -118,8 +118,9 @@\n protocols.act_on(action, op_args, act_on_qubits, allow_decompose=al...
2,508
204
gh_patches_debug_1156
rasdani/github-patches
git_diff
facebookresearch__hydra-1531
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add `env` to Hydra's config group This is a follow up to #1441 the `env` config group will allows users to manually change the env defaults value. (such as provides default callbacks or update run.dir ) ...
diff --git a/hydra/conf/__init__.py b/hydra/conf/__init__.py --- a/hydra/conf/__init__.py +++ b/hydra/conf/__init__.py @@ -99,6 +99,8 @@ {"hydra_logging": "default"}, {"job_logging": "default"}, {"callbacks": None}, + # env specific overrides + {"env": "defau...
{"golden_diff": "diff --git a/hydra/conf/__init__.py b/hydra/conf/__init__.py\n--- a/hydra/conf/__init__.py\n+++ b/hydra/conf/__init__.py\n@@ -99,6 +99,8 @@\n {\"hydra_logging\": \"default\"},\n {\"job_logging\": \"default\"},\n {\"callbacks\": None},\n+ # env specific ove...
1,820
98
gh_patches_debug_3803
rasdani/github-patches
git_diff
mkdocs__mkdocs-1656
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- url filter gives the wrong path to local anchor links When passed "#internal-anchor" on a page other than the top-level index, the `url` filter returns a relative path to the top-level index. Like, if I ha...
diff --git a/mkdocs/utils/__init__.py b/mkdocs/utils/__init__.py --- a/mkdocs/utils/__init__.py +++ b/mkdocs/utils/__init__.py @@ -243,7 +243,7 @@ path = path_to_url(path or '.') # Allow links to be fully qualified URL's parsed = urlparse(path) - if parsed.scheme or parsed.netloc or path.startswith('/...
{"golden_diff": "diff --git a/mkdocs/utils/__init__.py b/mkdocs/utils/__init__.py\n--- a/mkdocs/utils/__init__.py\n+++ b/mkdocs/utils/__init__.py\n@@ -243,7 +243,7 @@\n path = path_to_url(path or '.')\n # Allow links to be fully qualified URL's\n parsed = urlparse(path)\n- if parsed.scheme or parsed.netl...
4,093
130
gh_patches_debug_9241
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-1066
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- IoT Topic Rule fails with E1029 *cfn-lint version: 0.22.4* *Description of issue.* When using AWS IoT substitution templates (in my case, for IoT SQL functions) within Cloud Formation, it is necessary t...
diff --git a/src/cfnlint/rules/functions/SubNeeded.py b/src/cfnlint/rules/functions/SubNeeded.py --- a/src/cfnlint/rules/functions/SubNeeded.py +++ b/src/cfnlint/rules/functions/SubNeeded.py @@ -28,7 +28,7 @@ # Free-form text properties to exclude from this rule # content is part of AWS::CloudFormation::Ini...
{"golden_diff": "diff --git a/src/cfnlint/rules/functions/SubNeeded.py b/src/cfnlint/rules/functions/SubNeeded.py\n--- a/src/cfnlint/rules/functions/SubNeeded.py\n+++ b/src/cfnlint/rules/functions/SubNeeded.py\n@@ -28,7 +28,7 @@\n \n # Free-form text properties to exclude from this rule\n # content is part of A...
2,263
177
gh_patches_debug_20846
rasdani/github-patches
git_diff
wagtail__wagtail-1147
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Wagtail doesn't gracefully support session invalidation on password change According to [Django's documentation](https://docs.djangoproject.com/en/1.7/topics/auth/default/#session-invalidation-on-password-cha...
diff --git a/wagtail/wagtailadmin/views/account.py b/wagtail/wagtailadmin/views/account.py --- a/wagtail/wagtailadmin/views/account.py +++ b/wagtail/wagtailadmin/views/account.py @@ -3,6 +3,7 @@ from django.contrib import messages from django.contrib.auth.forms import SetPasswordForm from django.contrib.auth.views i...
{"golden_diff": "diff --git a/wagtail/wagtailadmin/views/account.py b/wagtail/wagtailadmin/views/account.py\n--- a/wagtail/wagtailadmin/views/account.py\n+++ b/wagtail/wagtailadmin/views/account.py\n@@ -3,6 +3,7 @@\n from django.contrib import messages\n from django.contrib.auth.forms import SetPasswordForm\n from djan...
1,623
193
gh_patches_debug_21663
rasdani/github-patches
git_diff
boto__boto-2489
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- boto.glacier.utils.compute_hashes_from_fileobj No Longer Works with Binary Files Commit a4c9a781f47a61ddde2b3a3802b93c1ed29cdf16 added a `.encode('utf-8')` to the result of the first read in `boto.glacier.uti...
diff --git a/boto/glacier/utils.py b/boto/glacier/utils.py --- a/boto/glacier/utils.py +++ b/boto/glacier/utils.py @@ -23,6 +23,8 @@ import math import binascii +from boto.compat import six + _MEGABYTE = 1024 * 1024 DEFAULT_PART_SIZE = 4 * _MEGABYTE @@ -122,10 +124,19 @@ are returned in hex. """...
{"golden_diff": "diff --git a/boto/glacier/utils.py b/boto/glacier/utils.py\n--- a/boto/glacier/utils.py\n+++ b/boto/glacier/utils.py\n@@ -23,6 +23,8 @@\n import math\n import binascii\n \n+from boto.compat import six\n+\n \n _MEGABYTE = 1024 * 1024\n DEFAULT_PART_SIZE = 4 * _MEGABYTE\n@@ -122,10 +124,19 @@\n a...
2,576
325
gh_patches_debug_25198
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-contrib-890
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- error with logging instrumentation - AttributeError: 'ProxyTracerProvider' object has no attribute 'resource' **Describe your environment** LoggingInstrumentor().instrument() is throwing an error ``` Tr...
diff --git a/instrumentation/opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/__init__.py b/instrumentation/opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/__init__.py --- a/instrumentation/opentelemetry-instrumentation-logging/src/opentelemetry/instrumenta...
{"golden_diff": "diff --git a/instrumentation/opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/__init__.py b/instrumentation/opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/__init__.py\n--- a/instrumentation/opentelemetry-instrumentation-logging/src/opentel...
2,281
355
gh_patches_debug_28162
rasdani/github-patches
git_diff
Qiskit__qiskit-12069
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Documentation of RVGate is incorrect ### Environment N/A ### What is happening? Received this in an email: >Hi, I think I found some errors in the Qiskit documentation at <https://docs.quantum.ibm.com/ap...
diff --git a/qiskit/circuit/library/generalized_gates/rv.py b/qiskit/circuit/library/generalized_gates/rv.py --- a/qiskit/circuit/library/generalized_gates/rv.py +++ b/qiskit/circuit/library/generalized_gates/rv.py @@ -18,7 +18,7 @@ class RVGate(Gate): - r"""Rotation around arbitrary rotation axis :math:`v` whe...
{"golden_diff": "diff --git a/qiskit/circuit/library/generalized_gates/rv.py b/qiskit/circuit/library/generalized_gates/rv.py\n--- a/qiskit/circuit/library/generalized_gates/rv.py\n+++ b/qiskit/circuit/library/generalized_gates/rv.py\n@@ -18,7 +18,7 @@\n \n \n class RVGate(Gate):\n- r\"\"\"Rotation around arbitrary ...
1,667
592
gh_patches_debug_31070
rasdani/github-patches
git_diff
praw-dev__praw-1877
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- modmail conversation messages list only includes the most recent message ### Describe the Bug If you retrieve modmail through the `subreddit.modmail.conversations()` API, the `.messages` list only includes t...
diff --git a/praw/objector.py b/praw/objector.py --- a/praw/objector.py +++ b/praw/objector.py @@ -67,6 +67,7 @@ "conversations", "conversation", }.intersection(data): + # fetched conversation data.update( data.pop("conversation") ...
{"golden_diff": "diff --git a/praw/objector.py b/praw/objector.py\n--- a/praw/objector.py\n+++ b/praw/objector.py\n@@ -67,6 +67,7 @@\n \"conversations\",\n \"conversation\",\n }.intersection(data):\n+ # fetched conversation\n data.update(\n data.pop...
3,903
388
gh_patches_debug_8362
rasdani/github-patches
git_diff
getnikola__nikola-3036
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- RSS_PATH doesn't work as advertised (is path and filename, excluding .xml) * Python Version: 3.5.3 * Nikola Version: v7.8.14 * Operating System: Debian A fresh config says: ``` # Final location for t...
diff --git a/nikola/plugins/task/indexes.py b/nikola/plugins/task/indexes.py --- a/nikola/plugins/task/indexes.py +++ b/nikola/plugins/task/indexes.py @@ -91,7 +91,7 @@ def get_path(self, classification, lang, dest_type='page'): """Return a path for the given classification.""" if dest_type == 'r...
{"golden_diff": "diff --git a/nikola/plugins/task/indexes.py b/nikola/plugins/task/indexes.py\n--- a/nikola/plugins/task/indexes.py\n+++ b/nikola/plugins/task/indexes.py\n@@ -91,7 +91,7 @@\n def get_path(self, classification, lang, dest_type='page'):\n \"\"\"Return a path for the given classification.\"\"\"...
1,735
152
gh_patches_debug_33474
rasdani/github-patches
git_diff
privacyidea__privacyidea-3231
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support for SSH Token based on ed25519-sk or ecdsa-sk **Is your feature request related to a problem? Please describe.** What are you trying to achieve? I try to add a ssh public key token based on ed255...
diff --git a/privacyidea/lib/tokens/sshkeytoken.py b/privacyidea/lib/tokens/sshkeytoken.py --- a/privacyidea/lib/tokens/sshkeytoken.py +++ b/privacyidea/lib/tokens/sshkeytoken.py @@ -28,6 +28,7 @@ import logging from privacyidea.lib import _ from privacyidea.api.lib.utils import getParam +from privacyidea.lib.error ...
{"golden_diff": "diff --git a/privacyidea/lib/tokens/sshkeytoken.py b/privacyidea/lib/tokens/sshkeytoken.py\n--- a/privacyidea/lib/tokens/sshkeytoken.py\n+++ b/privacyidea/lib/tokens/sshkeytoken.py\n@@ -28,6 +28,7 @@\n import logging\n from privacyidea.lib import _\n from privacyidea.api.lib.utils import getParam\n+fro...
2,895
542
gh_patches_debug_246
rasdani/github-patches
git_diff
numpy__numpy-3245
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 2to3 run `standarderror` fixer --- 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/py3tool.py` Content: ...
diff --git a/tools/py3tool.py b/tools/py3tool.py --- a/tools/py3tool.py +++ b/tools/py3tool.py @@ -64,7 +64,7 @@ 'imports2', 'input', 'intern', -# 'isinstance', + 'isinstance', 'itertools', 'itertools_imports', 'long',
{"golden_diff": "diff --git a/tools/py3tool.py b/tools/py3tool.py\n--- a/tools/py3tool.py\n+++ b/tools/py3tool.py\n@@ -64,7 +64,7 @@\n 'imports2',\n 'input',\n 'intern',\n-# 'isinstance',\n+ 'isinstance',\n 'itertools',\n 'itertools_imports',\n 'long',\n", "issue": "2to3 run `standarderror...
3,095
86
gh_patches_debug_17500
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-598
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Problems with awido_de Hello, i have a problem with the awido_de calander :( Log: ``` 2023-01-09 20:43:52.963 ERROR (SyncWorker_4) [waste_collection_schedule.source_shell] fetch failed for source AW...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/awido_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/awido_de.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/awido_de.py +++ b/custom_components/waste_co...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/awido_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/awido_de.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/awido_de.py\n+++ b/custom_...
3,917
278
gh_patches_debug_4808
rasdani/github-patches
git_diff
buildbot__buildbot-5301
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cache-control header is filled incorrectly When a cache-control header is formed a ';' character is used as a delimiter: https://github.com/buildbot/buildbot/blob/144eb7e82dc261e6506f1f68493446bcb24d77a0/m...
diff --git a/master/buildbot/www/config.py b/master/buildbot/www/config.py --- a/master/buildbot/www/config.py +++ b/master/buildbot/www/config.py @@ -117,7 +117,7 @@ def renderIndex(self, request): config = {} request.setHeader(b"content-type", b'text/html') - request.setHeader(b"Cache-Co...
{"golden_diff": "diff --git a/master/buildbot/www/config.py b/master/buildbot/www/config.py\n--- a/master/buildbot/www/config.py\n+++ b/master/buildbot/www/config.py\n@@ -117,7 +117,7 @@\n def renderIndex(self, request):\n config = {}\n request.setHeader(b\"content-type\", b'text/html')\n- re...
2,082
126
gh_patches_debug_41965
rasdani/github-patches
git_diff
gratipay__gratipay.com-3163
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- login requires Referer This just started recently. When I try to log in I get a blank page. Inspecting the response in my console shows I'm getting a 500 from the server. My browser (ABrowser): Mozilla/5.0...
diff --git a/gratipay/security/authentication.py b/gratipay/security/authentication.py --- a/gratipay/security/authentication.py +++ b/gratipay/security/authentication.py @@ -58,8 +58,6 @@ csrf_token = csrf._get_new_csrf_key() request.headers.cookie['csrf_token'] = csrf_token request.headers['X-CSRF-TOKE...
{"golden_diff": "diff --git a/gratipay/security/authentication.py b/gratipay/security/authentication.py\n--- a/gratipay/security/authentication.py\n+++ b/gratipay/security/authentication.py\n@@ -58,8 +58,6 @@\n csrf_token = csrf._get_new_csrf_key()\n request.headers.cookie['csrf_token'] = csrf_token\n reque...
3,245
935
gh_patches_debug_12695
rasdani/github-patches
git_diff
lutris__lutris-1031
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- “Restore default gamma....” doesn’t restore gamma after game quits For some reason, with "Restore default gamma..." option enabled, default screen gamma is not restored after a game that changes it quits (eve...
diff --git a/lutris/util/display.py b/lutris/util/display.py --- a/lutris/util/display.py +++ b/lutris/util/display.py @@ -12,8 +12,7 @@ XRANDR_CACHE = None XRANDR_CACHE_SET_AT = None -XGAMMA_FOUND = False - +XGAMMA_FOUND = None def cached(function): def wrapper(): @@ -161,7 +160,7 @@ """Restores gamma...
{"golden_diff": "diff --git a/lutris/util/display.py b/lutris/util/display.py\n--- a/lutris/util/display.py\n+++ b/lutris/util/display.py\n@@ -12,8 +12,7 @@\n \n XRANDR_CACHE = None\n XRANDR_CACHE_SET_AT = None\n-XGAMMA_FOUND = False\n-\n+XGAMMA_FOUND = None\n \n def cached(function):\n def wrapper():\n@@ -161,7 +1...
3,468
194
gh_patches_debug_26910
rasdani/github-patches
git_diff
frappe__frappe-24662
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ImportError: cannot import name 'LazyTranslate' from partially initialized module 'frappe.translate' (most likely due to a circular import) ``` > bench get-untranslated --app erpnext de untranslated.csv T...
diff --git a/frappe/model/__init__.py b/frappe/model/__init__.py --- a/frappe/model/__init__.py +++ b/frappe/model/__init__.py @@ -134,22 +134,22 @@ ) std_fields = [ - {"fieldname": "name", "fieldtype": "Link", "label": _lt("ID")}, - {"fieldname": "owner", "fieldtype": "Link", "label": _lt("Created By"), "options":...
{"golden_diff": "diff --git a/frappe/model/__init__.py b/frappe/model/__init__.py\n--- a/frappe/model/__init__.py\n+++ b/frappe/model/__init__.py\n@@ -134,22 +134,22 @@\n )\n \n std_fields = [\n-\t{\"fieldname\": \"name\", \"fieldtype\": \"Link\", \"label\": _lt(\"ID\")},\n-\t{\"fieldname\": \"owner\", \"fieldtype\": \...
3,443
589
gh_patches_debug_2715
rasdani/github-patches
git_diff
dotkom__onlineweb4-810
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Active feedbacks bug Minor bug where feedbacks where everyone answers does not get set to inactive. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may...
diff --git a/apps/feedback/mommy.py b/apps/feedback/mommy.py --- a/apps/feedback/mommy.py +++ b/apps/feedback/mommy.py @@ -45,7 +45,10 @@ #return if everyone has answered if not not_responded: + feedback.active = False + feedback.save() logger.info('Everyone has an...
{"golden_diff": "diff --git a/apps/feedback/mommy.py b/apps/feedback/mommy.py\n--- a/apps/feedback/mommy.py\n+++ b/apps/feedback/mommy.py\n@@ -45,7 +45,10 @@\n \n #return if everyone has answered\n if not not_responded:\n+ feedback.active = False\n+ feedback.save()\n lo...
2,659
105
gh_patches_debug_31710
rasdani/github-patches
git_diff
pypa__pip-8474
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Way to clear items from pip cache of specified age. I use pip a lot and had never considered anything about caching, and find I have a 1.7gb pip cache. It would be useful if there was a command that could ...
diff --git a/src/pip/_internal/commands/cache.py b/src/pip/_internal/commands/cache.py --- a/src/pip/_internal/commands/cache.py +++ b/src/pip/_internal/commands/cache.py @@ -37,11 +37,25 @@ usage = """ %prog dir %prog info - %prog list [<pattern>] + %prog list [<pattern>] [--format...
{"golden_diff": "diff --git a/src/pip/_internal/commands/cache.py b/src/pip/_internal/commands/cache.py\n--- a/src/pip/_internal/commands/cache.py\n+++ b/src/pip/_internal/commands/cache.py\n@@ -37,11 +37,25 @@\n usage = \"\"\"\n %prog dir\n %prog info\n- %prog list [<pattern>]\n+ %pro...
2,107
473
gh_patches_debug_416
rasdani/github-patches
git_diff
automl__auto-sklearn-1361
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Check if test requirement `flaky` can be removed We currently have a test dependancy [flaky](https://pypi.org/project/flaky/) used to annotate a test `KernelPCAComponentTest::test_default_configuration_classi...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -30,7 +30,6 @@ "mypy", "pytest-xdist", "pytest-timeout", - "flaky", "openml", "pre-commit", "pytest-cov",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -30,7 +30,6 @@\n \"mypy\",\n \"pytest-xdist\",\n \"pytest-timeout\",\n- \"flaky\",\n \"openml\",\n \"pre-commit\",\n \"pytest-cov\",\n", "issue": "Check if test requirement `flaky...
1,186
71
gh_patches_debug_57395
rasdani/github-patches
git_diff
translate__pootle-3380
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Core: drop MySQL dependence on MyISAM Core depends on MyISAM at the moment because of low level features used for changeid tracking. We need to migrate that to a more general approach that works on InnoDB an...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ requirements = [] for line in open(file_name, 'r').read().split('\n'): # Ignore comments, blank lines and included requirements files - if re.match(r'(\s*#)|(\s*$)|(-r .*$)', line): + if re.match(r'(\s*#)|(...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -43,7 +43,7 @@\n requirements = []\n for line in open(file_name, 'r').read().split('\\n'):\n # Ignore comments, blank lines and included requirements files\n- if re.match(r'(\\s*#)|(\\s*$)|(-r .*$)', line):\n+ ...
2,327
136
gh_patches_debug_5141
rasdani/github-patches
git_diff
scrapy__scrapy-2503
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- scrapy view <url> raise exc in v1.3.0 ```` (py35) wingyiu@mbp101:~$scrapy view http://www.scrapy.org 2017-01-19 22:13:54 [scrapy.utils.log] INFO: Scrapy 1.3.0 started (bot: scrapybot) 2017-01-19 22:13:54 [...
diff --git a/scrapy/commands/view.py b/scrapy/commands/view.py --- a/scrapy/commands/view.py +++ b/scrapy/commands/view.py @@ -11,9 +11,8 @@ "contents in a browser" def add_options(self, parser): - ScrapyCommand.add_options(self, parser) - parser.add_option("--spider", dest="spider", -...
{"golden_diff": "diff --git a/scrapy/commands/view.py b/scrapy/commands/view.py\n--- a/scrapy/commands/view.py\n+++ b/scrapy/commands/view.py\n@@ -11,9 +11,8 @@\n \"contents in a browser\"\n \n def add_options(self, parser):\n- ScrapyCommand.add_options(self, parser)\n- parser.add_option(\...
775
134
gh_patches_debug_15924
rasdani/github-patches
git_diff
Kinto__kinto-119
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Using the _since querystring filter has no effect I've tried using the `_since` querystring filter as explained in the tutorial, but it seems to have no effect. `GET`ing any of those urls returns the exact s...
diff --git a/kinto/views/buckets.py b/kinto/views/buckets.py --- a/kinto/views/buckets.py +++ b/kinto/views/buckets.py @@ -59,6 +59,8 @@ # Build the user unguessable bucket_id UUID from its user_id bucket_id = hmac_digest(hmac_secret, request.prefixed_userid)[:32] path = request.path.replace('default', b...
{"golden_diff": "diff --git a/kinto/views/buckets.py b/kinto/views/buckets.py\n--- a/kinto/views/buckets.py\n+++ b/kinto/views/buckets.py\n@@ -59,6 +59,8 @@\n # Build the user unguessable bucket_id UUID from its user_id\n bucket_id = hmac_digest(hmac_secret, request.prefixed_userid)[:32]\n path = request.pa...
1,528
187
gh_patches_debug_33036
rasdani/github-patches
git_diff
jazzband__pip-tools-493
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pip-sync appears to get confused about editable packages When a requirements.txt file includes editable local packages, pip-sync seems to want to uninstall them and reinstall them. Also, the pip install comm...
diff --git a/piptools/sync.py b/piptools/sync.py --- a/piptools/sync.py +++ b/piptools/sync.py @@ -5,7 +5,7 @@ from . import click from .exceptions import IncompatibleRequirements, UnsupportedConstraint -from .utils import flat_map, key_from_req +from .utils import flat_map, format_requirement, key_from_req PACK...
{"golden_diff": "diff --git a/piptools/sync.py b/piptools/sync.py\n--- a/piptools/sync.py\n+++ b/piptools/sync.py\n@@ -5,7 +5,7 @@\n \n from . import click\n from .exceptions import IncompatibleRequirements, UnsupportedConstraint\n-from .utils import flat_map, key_from_req\n+from .utils import flat_map, format_requirem...
2,589
463
gh_patches_debug_11110
rasdani/github-patches
git_diff
apluslms__a-plus-1301
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The Cancel button in Add Deadline Deviations behaves surprisingly Just a detail: If I go to a student’s page, there are now links ther to add deadline deviations for that particular student. (This is super...
diff --git a/deviations/viewbase.py b/deviations/viewbase.py --- a/deviations/viewbase.py +++ b/deviations/viewbase.py @@ -36,6 +36,14 @@ deviation_model: Type[SubmissionRuleDeviation] session_key: str + def get_context_data(self, **kwargs: Any) -> dict: + context = super().get_context_data(**kwar...
{"golden_diff": "diff --git a/deviations/viewbase.py b/deviations/viewbase.py\n--- a/deviations/viewbase.py\n+++ b/deviations/viewbase.py\n@@ -36,6 +36,14 @@\n deviation_model: Type[SubmissionRuleDeviation]\n session_key: str\n \n+ def get_context_data(self, **kwargs: Any) -> dict:\n+ context = super(...
4,031
177
gh_patches_debug_49039
rasdani/github-patches
git_diff
facebookresearch__hydra-279
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] Documentation inconsistency for `utils.get_original_cwd` # 🐛 Bug The tutorial for working directories has a few commands for setting the working directory [see here](https://cli.dev/docs/tutorial/wo...
diff --git a/hydra/__init__.py b/hydra/__init__.py --- a/hydra/__init__.py +++ b/hydra/__init__.py @@ -4,6 +4,6 @@ from .main import main # Source of truth for Hydra's version -__version__ = "0.10.0" +__version__ = "0.11.0-pre1" __all__ = ["__version__", "MissingConfigException", "main", "utils"]
{"golden_diff": "diff --git a/hydra/__init__.py b/hydra/__init__.py\n--- a/hydra/__init__.py\n+++ b/hydra/__init__.py\n@@ -4,6 +4,6 @@\n from .main import main\n \n # Source of truth for Hydra's version\n-__version__ = \"0.10.0\"\n+__version__ = \"0.11.0-pre1\"\n \n __all__ = [\"__version__\", \"MissingConfigException\...
574
114
gh_patches_debug_37809
rasdani/github-patches
git_diff
Pylons__pyramid-2760
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- make pyramid.paster.bootstrap into a context manager This would just improve the API such that users could automatically call the closer in a reliable way. ``` python from pyramid.paster import bootstrap wi...
diff --git a/pyramid/paster.py b/pyramid/paster.py --- a/pyramid/paster.py +++ b/pyramid/paster.py @@ -129,8 +129,22 @@ {'http_port': 8080} and then use %(http_port)s in the config file. + This function may be used as a context manager to call the ``closer`` + automatically: + + .. code-block:: pyt...
{"golden_diff": "diff --git a/pyramid/paster.py b/pyramid/paster.py\n--- a/pyramid/paster.py\n+++ b/pyramid/paster.py\n@@ -129,8 +129,22 @@\n {'http_port': 8080} and then use %(http_port)s in the\n config file.\n \n+ This function may be used as a context manager to call the ``closer``\n+ automatically:\n...
3,393
681
gh_patches_debug_34543
rasdani/github-patches
git_diff
UTNkar__moore-154
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Menu Translations <!-- Do you want to ask a question? Are you looking for support? The system administrator can help you: admin@utn.se --> ### Description Not all menu pages are using `translated_title`...
diff --git a/website/website/templatetags/site_tags.py b/website/website/templatetags/site_tags.py --- a/website/website/templatetags/site_tags.py +++ b/website/website/templatetags/site_tags.py @@ -20,26 +20,9 @@ @register.inclusion_tag('tags/menu.html', takes_context=True) def menu_items(context, parent, calling_pa...
{"golden_diff": "diff --git a/website/website/templatetags/site_tags.py b/website/website/templatetags/site_tags.py\n--- a/website/website/templatetags/site_tags.py\n+++ b/website/website/templatetags/site_tags.py\n@@ -20,26 +20,9 @@\n @register.inclusion_tag('tags/menu.html', takes_context=True)\n def menu_items(conte...
1,087
522
gh_patches_debug_10281
rasdani/github-patches
git_diff
scikit-hep__awkward-2410
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- String broadcasting is not producing sensible results ### Version of Awkward Array main ### Description and code to reproduce As Jim and I discussed today, string broadcasting is currently not produc...
diff --git a/src/awkward/operations/ak_broadcast_arrays.py b/src/awkward/operations/ak_broadcast_arrays.py --- a/src/awkward/operations/ak_broadcast_arrays.py +++ b/src/awkward/operations/ak_broadcast_arrays.py @@ -222,7 +222,14 @@ inputs.append(y.to_backend(backend)) def action(inputs, depth, **kwargs)...
{"golden_diff": "diff --git a/src/awkward/operations/ak_broadcast_arrays.py b/src/awkward/operations/ak_broadcast_arrays.py\n--- a/src/awkward/operations/ak_broadcast_arrays.py\n+++ b/src/awkward/operations/ak_broadcast_arrays.py\n@@ -222,7 +222,14 @@\n inputs.append(y.to_backend(backend))\n \n def action(i...
3,763
209
gh_patches_debug_3740
rasdani/github-patches
git_diff
napari__napari-553
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Menu bar focus on Mac ## 🐛 Bug We've now added a menubar, but you need to toggle focus in and out of napari before it becomes active on the mac. This bug has been encountered in other Qt apps, but we still ...
diff --git a/napari/_qt/qt_main_window.py b/napari/_qt/qt_main_window.py --- a/napari/_qt/qt_main_window.py +++ b/napari/_qt/qt_main_window.py @@ -146,7 +146,6 @@ """ self._qt_window.resize(self._qt_window.layout().sizeHint()) self._qt_window.show() - self._qt_window.raise_() de...
{"golden_diff": "diff --git a/napari/_qt/qt_main_window.py b/napari/_qt/qt_main_window.py\n--- a/napari/_qt/qt_main_window.py\n+++ b/napari/_qt/qt_main_window.py\n@@ -146,7 +146,6 @@\n \"\"\"\n self._qt_window.resize(self._qt_window.layout().sizeHint())\n self._qt_window.show()\n- self._q...
2,098
117
gh_patches_debug_8815
rasdani/github-patches
git_diff
CTFd__CTFd-2458
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Upload to S3 Failing - CTFd Version/Commit: 3.6.1 - Operating System: Linux (Docker container) - Web Browser and Version: Chrome **What happened?** Upgrading CTFd resulting in S3 file uploads beginnin...
diff --git a/CTFd/utils/uploads/__init__.py b/CTFd/utils/uploads/__init__.py --- a/CTFd/utils/uploads/__init__.py +++ b/CTFd/utils/uploads/__init__.py @@ -44,11 +44,12 @@ model = PageFiles model_args["page_id"] = page_id + # Hash is calculated before upload since S3 file upload closes file object...
{"golden_diff": "diff --git a/CTFd/utils/uploads/__init__.py b/CTFd/utils/uploads/__init__.py\n--- a/CTFd/utils/uploads/__init__.py\n+++ b/CTFd/utils/uploads/__init__.py\n@@ -44,11 +44,12 @@\n model = PageFiles\n model_args[\"page_id\"] = page_id\n \n+ # Hash is calculated before upload since S3 file...
1,645
170
gh_patches_debug_29333
rasdani/github-patches
git_diff
pex-tool__pex-322
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove pkg_resources.build_zipmanifest monkeypatching This may involve increasing the minimum setuptools version. Another alternative is vendoring setuptools. --- END ISSUE --- Below are some code segment...
diff --git a/pex/pex_bootstrapper.py b/pex/pex_bootstrapper.py --- a/pex/pex_bootstrapper.py +++ b/pex/pex_bootstrapper.py @@ -46,20 +46,6 @@ raise ValueError('Invalid entry_point: %s' % entry_point) -# TODO(wickman) Remove once resolved (#91): -# https://bitbucket.org/pypa/setuptools/issue/154/build_zipmanife...
{"golden_diff": "diff --git a/pex/pex_bootstrapper.py b/pex/pex_bootstrapper.py\n--- a/pex/pex_bootstrapper.py\n+++ b/pex/pex_bootstrapper.py\n@@ -46,20 +46,6 @@\n raise ValueError('Invalid entry_point: %s' % entry_point)\n \n \n-# TODO(wickman) Remove once resolved (#91):\n-# https://bitbucket.org/pypa/setuptools/...
1,458
476
gh_patches_debug_18001
rasdani/github-patches
git_diff
mozilla__telemetry-analysis-service-258
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ATMO should pre-click my single SSH key Would save me thousands of milliseconds every time I launch a cluster ;) --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of the...
diff --git a/atmo/clusters/views.py b/atmo/clusters/views.py --- a/atmo/clusters/views.py +++ b/atmo/clusters/views.py @@ -15,7 +15,13 @@ @login_required def new_cluster(request): - if request.user.created_sshkeys.count() == 0: + initial = { + 'identifier': '{}-telemetry-analysis'.format(user_display(r...
{"golden_diff": "diff --git a/atmo/clusters/views.py b/atmo/clusters/views.py\n--- a/atmo/clusters/views.py\n+++ b/atmo/clusters/views.py\n@@ -15,7 +15,13 @@\n \n @login_required\n def new_cluster(request):\n- if request.user.created_sshkeys.count() == 0:\n+ initial = {\n+ 'identifier': '{}-telemetry-analy...
921
262
gh_patches_debug_40147
rasdani/github-patches
git_diff
OpenNMT__OpenNMT-tf-671
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PRF evaluator: list index out of range Hi! I'm getting `list index out of range` when prf evaluator is used. **Config:** Model: TransformerRelative params: beam_width: 1 train: maximum_feature...
diff --git a/opennmt/utils/fmeasure.py b/opennmt/utils/fmeasure.py --- a/opennmt/utils/fmeasure.py +++ b/opennmt/utils/fmeasure.py @@ -9,21 +9,15 @@ with open(ref_path) as ref_fp, open(hyp_path) as hyp_fp: list_null_tags = ["X", "null", "NULL", "Null", "O"] listtags = [] - linecpt = 0 classref = []...
{"golden_diff": "diff --git a/opennmt/utils/fmeasure.py b/opennmt/utils/fmeasure.py\n--- a/opennmt/utils/fmeasure.py\n+++ b/opennmt/utils/fmeasure.py\n@@ -9,21 +9,15 @@\n with open(ref_path) as ref_fp, open(hyp_path) as hyp_fp:\n list_null_tags = [\"X\", \"null\", \"NULL\", \"Null\", \"O\"]\n listtags = []\n-...
2,017
847
gh_patches_debug_35704
rasdani/github-patches
git_diff
vllm-project__vllm-2992
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Benchmarking script for openai chat completion api are not supported When running vllm with openai chat apis, the benchmarking script will fail as it asserts the backend API of `assert api_url.endswith("v1/co...
diff --git a/benchmarks/backend_request_func.py b/benchmarks/backend_request_func.py --- a/benchmarks/backend_request_func.py +++ b/benchmarks/backend_request_func.py @@ -275,10 +275,80 @@ return output +async def async_request_openai_chat_completions( + request_func_input: RequestFuncInput, + pbar: Opti...
{"golden_diff": "diff --git a/benchmarks/backend_request_func.py b/benchmarks/backend_request_func.py\n--- a/benchmarks/backend_request_func.py\n+++ b/benchmarks/backend_request_func.py\n@@ -275,10 +275,80 @@\n return output\n \n \n+async def async_request_openai_chat_completions(\n+ request_func_input: RequestF...
3,716
695
gh_patches_debug_24537
rasdani/github-patches
git_diff
pytorch__text-279
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- dataset.sort_key not retained after dataset.split() Hi I was trying out the new `split()` functionality to split a test set into test and validation set. When the `BucketIterator` is being set up from a newly...
diff --git a/torchtext/data/dataset.py b/torchtext/data/dataset.py --- a/torchtext/data/dataset.py +++ b/torchtext/data/dataset.py @@ -108,8 +108,6 @@ if not stratified: train_data, test_data, val_data = rationed_split(self.examples, train_ratio, ...
{"golden_diff": "diff --git a/torchtext/data/dataset.py b/torchtext/data/dataset.py\n--- a/torchtext/data/dataset.py\n+++ b/torchtext/data/dataset.py\n@@ -108,8 +108,6 @@\n if not stratified:\n train_data, test_data, val_data = rationed_split(self.examples, train_ratio,\n ...
4,076
289
gh_patches_debug_39804
rasdani/github-patches
git_diff
conan-io__conan-center-index-3024
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [package] proj/7.1.1: Fails to build on iOS <!-- Please don't forget to update the issue title. Include all applicable information to help us reproduce your problem. --> ### Package and Environment...
diff --git a/recipes/proj/all/conanfile.py b/recipes/proj/all/conanfile.py --- a/recipes/proj/all/conanfile.py +++ b/recipes/proj/all/conanfile.py @@ -19,14 +19,16 @@ "fPIC": [True, False], "threadsafe": [True, False], "with_tiff": [True, False], - "with_curl": [True, False] + "...
{"golden_diff": "diff --git a/recipes/proj/all/conanfile.py b/recipes/proj/all/conanfile.py\n--- a/recipes/proj/all/conanfile.py\n+++ b/recipes/proj/all/conanfile.py\n@@ -19,14 +19,16 @@\n \"fPIC\": [True, False],\n \"threadsafe\": [True, False],\n \"with_tiff\": [True, False],\n- \"with_...
3,004
799
gh_patches_debug_38914
rasdani/github-patches
git_diff
akvo__akvo-rsr-1783
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Can't add locations to update through REST API ## Test plan GIVEN the Up app WHEN the user tries to add an update THEN this should not give a 400 error --- END ISSUE --- Below are some code segments, each...
diff --git a/akvo/rest/serializers/__init__.py b/akvo/rest/serializers/__init__.py --- a/akvo/rest/serializers/__init__.py +++ b/akvo/rest/serializers/__init__.py @@ -40,6 +40,7 @@ from .project_update import (ProjectUpdateSerializer, ProjectUpdateExtraSerializer) from .project_update_lo...
{"golden_diff": "diff --git a/akvo/rest/serializers/__init__.py b/akvo/rest/serializers/__init__.py\n--- a/akvo/rest/serializers/__init__.py\n+++ b/akvo/rest/serializers/__init__.py\n@@ -40,6 +40,7 @@\n from .project_update import (ProjectUpdateSerializer,\n ProjectUpdateExtraSerializer)\n ...
2,208
600
gh_patches_debug_2290
rasdani/github-patches
git_diff
TheAlgorithms__Python-4779
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug with union in disjoint_set https://github.com/TheAlgorithms/Python/blob/master/data_structures/disjoint_set/disjoint_set.py ```python def union_set(x, y): """ union two sets. set with big...
diff --git a/data_structures/disjoint_set/disjoint_set.py b/data_structures/disjoint_set/disjoint_set.py --- a/data_structures/disjoint_set/disjoint_set.py +++ b/data_structures/disjoint_set/disjoint_set.py @@ -26,7 +26,10 @@ disjoint set tree will be more flat. """ x, y = find_set(x), find_set(y) - ...
{"golden_diff": "diff --git a/data_structures/disjoint_set/disjoint_set.py b/data_structures/disjoint_set/disjoint_set.py\n--- a/data_structures/disjoint_set/disjoint_set.py\n+++ b/data_structures/disjoint_set/disjoint_set.py\n@@ -26,7 +26,10 @@\n disjoint set tree will be more flat.\r\n \"\"\"\r\n x, y = f...
1,150
135
gh_patches_debug_25461
rasdani/github-patches
git_diff
cornellius-gp__gpytorch-785
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] get_fantasy_model does not work for SGPR with InducingPointKernel # 🐛 Bug Not sure if this should be considered a bug or a feature request, but gpytorch's implementation of SGPR using the InducingPo...
diff --git a/gpytorch/kernels/inducing_point_kernel.py b/gpytorch/kernels/inducing_point_kernel.py --- a/gpytorch/kernels/inducing_point_kernel.py +++ b/gpytorch/kernels/inducing_point_kernel.py @@ -2,6 +2,7 @@ import math import torch +import copy from .kernel import Kernel from ..lazy import delazify, DiagLazyT...
{"golden_diff": "diff --git a/gpytorch/kernels/inducing_point_kernel.py b/gpytorch/kernels/inducing_point_kernel.py\n--- a/gpytorch/kernels/inducing_point_kernel.py\n+++ b/gpytorch/kernels/inducing_point_kernel.py\n@@ -2,6 +2,7 @@\n \n import math\n import torch\n+import copy\n from .kernel import Kernel\n from ..lazy ...
2,729
400
gh_patches_debug_36193
rasdani/github-patches
git_diff
microsoft__ptvsd-552
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Args passed to user script on 'start without debugging' contains ptvsd args ## Environment data - PTVSD version: Master - OS and version: Windows 10 - Python version (& distribution if applicable, e.g. A...
diff --git a/ptvsd/__main__.py b/ptvsd/__main__.py --- a/ptvsd/__main__.py +++ b/ptvsd/__main__.py @@ -49,19 +49,6 @@ """ # noqa -PYDEVD_DEFAULTS = { - '--qt-support=auto', -} - - -def _set_pydevd_defaults(pydevd_args): - args_to_append = [] - for arg in PYDEVD_DEFAULTS: - if arg not in pydevd_arg...
{"golden_diff": "diff --git a/ptvsd/__main__.py b/ptvsd/__main__.py\n--- a/ptvsd/__main__.py\n+++ b/ptvsd/__main__.py\n@@ -49,19 +49,6 @@\n \"\"\" # noqa\n \n \n-PYDEVD_DEFAULTS = {\n- '--qt-support=auto',\n-}\n-\n-\n-def _set_pydevd_defaults(pydevd_args):\n- args_to_append = []\n- for arg in PYDEVD_DEFAULTS:...
3,796
706
gh_patches_debug_15343
rasdani/github-patches
git_diff
Pylons__pyramid-1131
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- No way to add query parameters without a value I occasionally need to put a hint in the query string for a URL, which is essentially a parameter without a value. This can be important to provide information t...
diff --git a/pyramid/encode.py b/pyramid/encode.py --- a/pyramid/encode.py +++ b/pyramid/encode.py @@ -32,6 +32,10 @@ See the Python stdlib documentation for ``urllib.urlencode`` for more information. + + .. versionchanged:: 1.5 + In a key/value pair, if the value is ``None`` then it will be + ...
{"golden_diff": "diff --git a/pyramid/encode.py b/pyramid/encode.py\n--- a/pyramid/encode.py\n+++ b/pyramid/encode.py\n@@ -32,6 +32,10 @@\n \n See the Python stdlib documentation for ``urllib.urlencode`` for\n more information.\n+\n+ .. versionchanged:: 1.5\n+ In a key/value pair, if the value is ``Non...
1,032
208
gh_patches_debug_37438
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-934
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- B3 trace_id and span_id not handled correctly These fields are not being handled correctly when an invalid value is passed for one or both of them. Fix that. --- END ISSUE --- Below are some code segments, ...
diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/b3_format.py b/opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/b3_format.py --- a/opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/b3_format.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/b3_format.py @@ -13,9 ...
{"golden_diff": "diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/b3_format.py b/opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/b3_format.py\n--- a/opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/b3_format.py\n+++ b/opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/b3_...
1,893
582
gh_patches_debug_25471
rasdani/github-patches
git_diff
StackStorm__st2-5383
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Trigger name collision workaround This addresses the jinja trigger name collision noted in issue #4641 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files m...
diff --git a/contrib/core/actions/inject_trigger.py b/contrib/core/actions/inject_trigger.py --- a/contrib/core/actions/inject_trigger.py +++ b/contrib/core/actions/inject_trigger.py @@ -21,7 +21,7 @@ class InjectTriggerAction(Action): - def run(self, trigger, payload=None, trace_tag=None): + def run(self, t...
{"golden_diff": "diff --git a/contrib/core/actions/inject_trigger.py b/contrib/core/actions/inject_trigger.py\n--- a/contrib/core/actions/inject_trigger.py\n+++ b/contrib/core/actions/inject_trigger.py\n@@ -21,7 +21,7 @@\n \n \n class InjectTriggerAction(Action):\n- def run(self, trigger, payload=None, trace_tag=Non...
722
300
gh_patches_debug_40558
rasdani/github-patches
git_diff
docker__docker-py-3112
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Timeouts don't work on windows Currently the windows npipe implementation doesn't honour timeouts. Regardless of which api endpoint you use or pretty much anything else this leads to bugs where the docker api...
diff --git a/docker/transport/npipesocket.py b/docker/transport/npipesocket.py --- a/docker/transport/npipesocket.py +++ b/docker/transport/npipesocket.py @@ -4,6 +4,9 @@ import win32file import win32pipe +import pywintypes +import win32event +import win32api cERROR_PIPE_BUSY = 0xe7 cSECURITY_SQOS_PRESENT = 0x1...
{"golden_diff": "diff --git a/docker/transport/npipesocket.py b/docker/transport/npipesocket.py\n--- a/docker/transport/npipesocket.py\n+++ b/docker/transport/npipesocket.py\n@@ -4,6 +4,9 @@\n \n import win32file\n import win32pipe\n+import pywintypes\n+import win32event\n+import win32api\n \n cERROR_PIPE_BUSY = 0xe7\n...
2,676
899
gh_patches_debug_38189
rasdani/github-patches
git_diff
MycroftAI__mycroft-core-2881
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- mycroft.conf silently overwritten **Describe the bug** When there's an error in mycroft.conf, it is silently overwritten. This is bad because user settings should not be permanently deleted without consent....
diff --git a/mycroft/configuration/config.py b/mycroft/configuration/config.py --- a/mycroft/configuration/config.py +++ b/mycroft/configuration/config.py @@ -97,6 +97,7 @@ def __init__(self, path): super(LocalConf, self).__init__() + self.is_valid = True # is loaded json valid, updated when loa...
{"golden_diff": "diff --git a/mycroft/configuration/config.py b/mycroft/configuration/config.py\n--- a/mycroft/configuration/config.py\n+++ b/mycroft/configuration/config.py\n@@ -97,6 +97,7 @@\n \n def __init__(self, path):\n super(LocalConf, self).__init__()\n+ self.is_valid = True # is loaded json...
3,637
553
gh_patches_debug_22621
rasdani/github-patches
git_diff
aws__serverless-application-model-1582
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cognito User Pool SMS configuration problem **Description:** When trying to create a Cognito user pool using SAM templates, SAM throws the error > Failed to create the changeset: Waiter ChangeSetCreateCom...
diff --git a/samtranslator/model/cognito.py b/samtranslator/model/cognito.py --- a/samtranslator/model/cognito.py +++ b/samtranslator/model/cognito.py @@ -20,7 +20,7 @@ "Policies": PropertyType(False, is_type(dict)), "Schema": PropertyType(False, list_of(dict)), "SmsAuthenticationMessage": Pr...
{"golden_diff": "diff --git a/samtranslator/model/cognito.py b/samtranslator/model/cognito.py\n--- a/samtranslator/model/cognito.py\n+++ b/samtranslator/model/cognito.py\n@@ -20,7 +20,7 @@\n \"Policies\": PropertyType(False, is_type(dict)),\n \"Schema\": PropertyType(False, list_of(dict)),\n \"S...
2,645
270
gh_patches_debug_38651
rasdani/github-patches
git_diff
conan-io__conan-center-index-505
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [package] msys2/20190524: PKG_CONFIG_PATH environment variable is not passed The `PKG_CONFIG_PATH` environment variable is not passed tot the msys2 environment. This causes the `pkg_config` generator not to ...
diff --git a/recipes/msys2/all/conanfile.py b/recipes/msys2/all/conanfile.py --- a/recipes/msys2/all/conanfile.py +++ b/recipes/msys2/all/conanfile.py @@ -37,6 +37,10 @@ tools.check_sha256(filename, sha256) return filename + @property + def _msys_dir(self): + return "msys64" if self.set...
{"golden_diff": "diff --git a/recipes/msys2/all/conanfile.py b/recipes/msys2/all/conanfile.py\n--- a/recipes/msys2/all/conanfile.py\n+++ b/recipes/msys2/all/conanfile.py\n@@ -37,6 +37,10 @@\n tools.check_sha256(filename, sha256)\n return filename\n \n+ @property\n+ def _msys_dir(self):\n+ r...
2,711
658
gh_patches_debug_26953
rasdani/github-patches
git_diff
mdn__kuma-2072
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- restore django-debug-toolbar We disabled django-debug-toolbar before we upgraded to django 1.4. Now that we're on it we should be able to restore it in `settings_local.py`. restore django-debug-toolbar We di...
diff --git a/puppet/files/vagrant/settings_local.py b/puppet/files/vagrant/settings_local.py --- a/puppet/files/vagrant/settings_local.py +++ b/puppet/files/vagrant/settings_local.py @@ -34,31 +34,30 @@ INSTALLED_APPS = INSTALLED_APPS + ( "django_extensions", - # TODO: re-enable after django 1.4 - # "debu...
{"golden_diff": "diff --git a/puppet/files/vagrant/settings_local.py b/puppet/files/vagrant/settings_local.py\n--- a/puppet/files/vagrant/settings_local.py\n+++ b/puppet/files/vagrant/settings_local.py\n@@ -34,31 +34,30 @@\n \n INSTALLED_APPS = INSTALLED_APPS + (\n \"django_extensions\",\n- # TODO: re-enable aft...
2,111
447
gh_patches_debug_22363
rasdani/github-patches
git_diff
Mailu__Mailu-2791
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- mailu front fails with KeyError: 'LD_PRELOAD' <!-- Thank you for opening an issue with Mailu. Please understand that issues are meant for bugs and enhancement-requests. For **user-support questions**, rea...
diff --git a/core/base/libs/socrate/socrate/system.py b/core/base/libs/socrate/socrate/system.py --- a/core/base/libs/socrate/socrate/system.py +++ b/core/base/libs/socrate/socrate/system.py @@ -68,6 +68,9 @@ # See #2764, we need vmovdqu if line.startswith('flags') and ' avx ' not in line: ...
{"golden_diff": "diff --git a/core/base/libs/socrate/socrate/system.py b/core/base/libs/socrate/socrate/system.py\n--- a/core/base/libs/socrate/socrate/system.py\n+++ b/core/base/libs/socrate/socrate/system.py\n@@ -68,6 +68,9 @@\n # See #2764, we need vmovdqu\n if line.startswith('flags') and ' ...
2,169
277
gh_patches_debug_32252
rasdani/github-patches
git_diff
fal-ai__dbt-fal-569
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- fal run --scripts selector with global scripts not working <!-- *** Make sure you have searched for an existing bug report for this issue *** --> **Describe the bug** Fal CLI `run` command using `--script...
diff --git a/src/fal/cli/fal_runner.py b/src/fal/cli/fal_runner.py --- a/src/fal/cli/fal_runner.py +++ b/src/fal/cli/fal_runner.py @@ -50,15 +50,15 @@ models = _get_filtered_models(faldbt, args.all, selector_flags, args.before) scripts = _select_scripts(args, models, faldbt) - - global_scripts = _get_glo...
{"golden_diff": "diff --git a/src/fal/cli/fal_runner.py b/src/fal/cli/fal_runner.py\n--- a/src/fal/cli/fal_runner.py\n+++ b/src/fal/cli/fal_runner.py\n@@ -50,15 +50,15 @@\n models = _get_filtered_models(faldbt, args.all, selector_flags, args.before)\n \n scripts = _select_scripts(args, models, faldbt)\n-\n- ...
2,608
487
gh_patches_debug_40529
rasdani/github-patches
git_diff
nautobot__nautobot-1148
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove Custom Fields from Admin UI ### Proposed Changes Remove custom fields from Admin UI. This should be as simple as deleting a bunch of code from `nautobot/extras/admin.py` that's no longer needed. ...
diff --git a/nautobot/extras/admin.py b/nautobot/extras/admin.py --- a/nautobot/extras/admin.py +++ b/nautobot/extras/admin.py @@ -1,10 +1,8 @@ from db_file_storage.form_widgets import DBAdminClearableFileInput from django import forms -from django.contrib import admin, messages -from django.db import transaction -fr...
{"golden_diff": "diff --git a/nautobot/extras/admin.py b/nautobot/extras/admin.py\n--- a/nautobot/extras/admin.py\n+++ b/nautobot/extras/admin.py\n@@ -1,10 +1,8 @@\n from db_file_storage.form_widgets import DBAdminClearableFileInput\n from django import forms\n-from django.contrib import admin, messages\n-from django.d...
1,737
875
gh_patches_debug_4375
rasdani/github-patches
git_diff
ansible__ansible-modules-extras-3020
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- #446 broke npm state=latest for missing packages ##### Issue Type: - Bug Report (`npm` module) ##### Ansible Version: Running against devel: ``` console $ ansible --version ansible 2.1.0 (devel be5488cb60) ...
diff --git a/packaging/language/npm.py b/packaging/language/npm.py --- a/packaging/language/npm.py +++ b/packaging/language/npm.py @@ -252,7 +252,10 @@ elif state == 'latest': installed, missing = npm.list() outdated = npm.list_outdated() - if len(missing) or len(outdated): + if len...
{"golden_diff": "diff --git a/packaging/language/npm.py b/packaging/language/npm.py\n--- a/packaging/language/npm.py\n+++ b/packaging/language/npm.py\n@@ -252,7 +252,10 @@\n elif state == 'latest':\n installed, missing = npm.list()\n outdated = npm.list_outdated()\n- if len(missing) or len(ou...
3,808
127
gh_patches_debug_14993
rasdani/github-patches
git_diff
PrefectHQ__prefect-1583
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add example code block to `switch` docstring I recently realized I hadn't touched the `switch` code in a long time, and I would've really appreciated an example to work off of. Instead, I ended up looking at...
diff --git a/src/prefect/tasks/control_flow/conditional.py b/src/prefect/tasks/control_flow/conditional.py --- a/src/prefect/tasks/control_flow/conditional.py +++ b/src/prefect/tasks/control_flow/conditional.py @@ -56,6 +56,24 @@ skipped. Any tasks downstream of the skipped tasks are also skipped unless they set ...
{"golden_diff": "diff --git a/src/prefect/tasks/control_flow/conditional.py b/src/prefect/tasks/control_flow/conditional.py\n--- a/src/prefect/tasks/control_flow/conditional.py\n+++ b/src/prefect/tasks/control_flow/conditional.py\n@@ -56,6 +56,24 @@\n skipped. Any tasks downstream of the skipped tasks are also skip...
1,724
238