problem_id
stringlengths
18
22
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
58
prompt
stringlengths
1.1k
10.2k
golden_diff
stringlengths
151
4.94k
verification_info
stringlengths
582
21k
num_tokens
int64
271
2.05k
num_tokens_diff
int64
47
1.02k
gh_patches_debug_9340
rasdani/github-patches
git_diff
spack__spack-15918
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Automake version mismatch in cryptsetup ### Spack version Pulled e1238bae9053d3c283c1721f85af78f3539f473d (2020-03-27) without any additional configuration. ```console $ spack --version fatal: No names f...
diff --git a/var/spack/repos/builtin/packages/cryptsetup/package.py b/var/spack/repos/builtin/packages/cryptsetup/package.py --- a/var/spack/repos/builtin/packages/cryptsetup/package.py +++ b/var/spack/repos/builtin/packages/cryptsetup/package.py @@ -34,6 +34,8 @@ depends_on('libtool', type='build') depends_...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/cryptsetup/package.py b/var/spack/repos/builtin/packages/cryptsetup/package.py\n--- a/var/spack/repos/builtin/packages/cryptsetup/package.py\n+++ b/var/spack/repos/builtin/packages/cryptsetup/package.py\n@@ -34,6 +34,8 @@\n depends_on('libtool', type='...
1,966
186
gh_patches_debug_13861
rasdani/github-patches
git_diff
pre-commit__pre-commit-1011
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- FileExistsError : [WinError 183] Cannot create a file when that file already exists version : 1.15.2 OS : Windows 10 ```console $ pre-commit install An unexpected error has occurred: FileExistsError: ...
diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py --- a/pre_commit/commands/install_uninstall.py +++ b/pre_commit/commands/install_uninstall.py @@ -5,6 +5,7 @@ import itertools import logging import os.path +import shutil import sys from pre_commit import git @@ -84...
{"golden_diff": "diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py\n--- a/pre_commit/commands/install_uninstall.py\n+++ b/pre_commit/commands/install_uninstall.py\n@@ -5,6 +5,7 @@\n import itertools\n import logging\n import os.path\n+import shutil\n import sys\n \n from p...
1,961
175
gh_patches_debug_34787
rasdani/github-patches
git_diff
netket__netket-394
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Rename `netket.stats.Stats.R` to `Rhat`? As we have seen in the discussion on #365, the `stats.R` parameter is ambiguously named; it is sometimes called "Gelman-Rubin" statistic or "potential scale reduction"...
diff --git a/netket/stats/mc_stats.py b/netket/stats/mc_stats.py --- a/netket/stats/mc_stats.py +++ b/netket/stats/mc_stats.py @@ -19,27 +19,32 @@ _NaN = float("NaN") def __init__( - self, mean=_NaN, error_of_mean=_NaN, variance=_NaN, tau_corr=_NaN, R=_NaN + self, + mean=_NaN, + ...
{"golden_diff": "diff --git a/netket/stats/mc_stats.py b/netket/stats/mc_stats.py\n--- a/netket/stats/mc_stats.py\n+++ b/netket/stats/mc_stats.py\n@@ -19,27 +19,32 @@\n _NaN = float(\"NaN\")\n \n def __init__(\n- self, mean=_NaN, error_of_mean=_NaN, variance=_NaN, tau_corr=_NaN, R=_NaN\n+ self,\n+...
1,966
620
gh_patches_debug_2052
rasdani/github-patches
git_diff
ansible__molecule-649
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ansible-lint called from Molecule fails when no Ansible-installed-with-pip is present # Issue Type - Bug report # Molecule and Ansible details ``` # ansible --version ansible 2.2.1.0 (stable-2.2 ac...
diff --git a/molecule/verifier/ansible_lint.py b/molecule/verifier/ansible_lint.py --- a/molecule/verifier/ansible_lint.py +++ b/molecule/verifier/ansible_lint.py @@ -49,6 +49,7 @@ env = { 'ANSIBLE_CONFIG': self._molecule.config.config['ansible']['config_file'], + 'PYTHONPA...
{"golden_diff": "diff --git a/molecule/verifier/ansible_lint.py b/molecule/verifier/ansible_lint.py\n--- a/molecule/verifier/ansible_lint.py\n+++ b/molecule/verifier/ansible_lint.py\n@@ -49,6 +49,7 @@\n env = {\n 'ANSIBLE_CONFIG':\n self._molecule.config.config['ansible']['config_file'],...
1,991
112
gh_patches_debug_40054
rasdani/github-patches
git_diff
opendatacube__datacube-core-435
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Multiple issues with write_geotiff() method ### Expected behaviour I should be able to write a small GeoTiff file using the `datacube.helpers.write_geotiff()` method. I should also not have to specify a `...
diff --git a/datacube/helpers.py b/datacube/helpers.py --- a/datacube/helpers.py +++ b/datacube/helpers.py @@ -4,8 +4,9 @@ Not used internally, those should go in `utils.py` """ from __future__ import absolute_import -import rasterio + import numpy as np +import rasterio DEFAULT_PROFILE = { 'blockxsize': 25...
{"golden_diff": "diff --git a/datacube/helpers.py b/datacube/helpers.py\n--- a/datacube/helpers.py\n+++ b/datacube/helpers.py\n@@ -4,8 +4,9 @@\n Not used internally, those should go in `utils.py`\n \"\"\"\n from __future__ import absolute_import\n-import rasterio\n+\n import numpy as np\n+import rasterio\n \n DEFAULT_P...
1,790
809
gh_patches_debug_40259
rasdani/github-patches
git_diff
saleor__saleor-3809
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add query to fetch draft orders In the Dashboard 2.0 we want to have separate links to view draft orders and confirmed ones. For that reason we need to add a separate resolver to return only draft orders. Exi...
diff --git a/saleor/graphql/order/resolvers.py b/saleor/graphql/order/resolvers.py --- a/saleor/graphql/order/resolvers.py +++ b/saleor/graphql/order/resolvers.py @@ -12,12 +12,7 @@ 'id', 'discount_name', 'token', 'user_email', 'user__email') -def resolve_orders(info, created, status, query): - user = info....
{"golden_diff": "diff --git a/saleor/graphql/order/resolvers.py b/saleor/graphql/order/resolvers.py\n--- a/saleor/graphql/order/resolvers.py\n+++ b/saleor/graphql/order/resolvers.py\n@@ -12,12 +12,7 @@\n 'id', 'discount_name', 'token', 'user_email', 'user__email')\n \n \n-def resolve_orders(info, created, status, q...
1,948
747
gh_patches_debug_28007
rasdani/github-patches
git_diff
PlasmaPy__PlasmaPy-228
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use Dawson function for dispersion `plasma_dispersion_func` under `mathematics.py` currently uses `erf()` along with some other terms. This can be simplified to Dawson function, [dawsn](https://docs.scipy.org...
diff --git a/plasmapy/mathematics/mathematics.py b/plasmapy/mathematics/mathematics.py --- a/plasmapy/mathematics/mathematics.py +++ b/plasmapy/mathematics/mathematics.py @@ -3,6 +3,7 @@ import numpy as np from scipy import special from astropy import units as u +from scipy.special import wofz as Faddeeva_function ...
{"golden_diff": "diff --git a/plasmapy/mathematics/mathematics.py b/plasmapy/mathematics/mathematics.py\n--- a/plasmapy/mathematics/mathematics.py\n+++ b/plasmapy/mathematics/mathematics.py\n@@ -3,6 +3,7 @@\n import numpy as np\n from scipy import special\n from astropy import units as u\n+from scipy.special import wof...
1,899
603
gh_patches_debug_448
rasdani/github-patches
git_diff
tensorflow__addons-1770
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Enable multiprocessing when testing with GPU and support distributed strategies in the tests. **Describe the feature and the current behavior/state.** Here I'm not going to discuss the bazel case as it's m...
diff --git a/tensorflow_addons/conftest.py b/tensorflow_addons/conftest.py --- a/tensorflow_addons/conftest.py +++ b/tensorflow_addons/conftest.py @@ -8,6 +8,7 @@ pytest_configure, device, pytest_generate_tests, + pytest_collection_modifyitems, ) # fixtures present in this file will be available
{"golden_diff": "diff --git a/tensorflow_addons/conftest.py b/tensorflow_addons/conftest.py\n--- a/tensorflow_addons/conftest.py\n+++ b/tensorflow_addons/conftest.py\n@@ -8,6 +8,7 @@\n pytest_configure,\n device,\n pytest_generate_tests,\n+ pytest_collection_modifyitems,\n )\n \n # fixtures present in th...
1,432
89
gh_patches_debug_29057
rasdani/github-patches
git_diff
vega__altair-2355
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow Paths in save() Instead of allowing only string paths or file-likes, allow pathlib.Paths to be passed to `save()`. Are these two the only places that would have to be changed? https://github.com/a...
diff --git a/altair/utils/save.py b/altair/utils/save.py --- a/altair/utils/save.py +++ b/altair/utils/save.py @@ -1,11 +1,13 @@ import json +import pathlib from .mimebundle import spec_to_mimebundle def write_file_or_filename(fp, content, mode="w"): - """Write content to fp, whether fp is a string or a fil...
{"golden_diff": "diff --git a/altair/utils/save.py b/altair/utils/save.py\n--- a/altair/utils/save.py\n+++ b/altair/utils/save.py\n@@ -1,11 +1,13 @@\n import json\n+import pathlib\n \n from .mimebundle import spec_to_mimebundle\n \n \n def write_file_or_filename(fp, content, mode=\"w\"):\n- \"\"\"Write content to fp...
1,726
369
gh_patches_debug_18410
rasdani/github-patches
git_diff
openai__openai-python-176
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [0.26.0] openai/cli.py:440: RuntimeWarning: coroutine 'FineTune.stream_events' was never awaited ``` bash$ openai api fine_tunes.create -t ./train_test_prepared.jsonl -m davinci Upload progress: 100%|██████...
diff --git a/openai/api_resources/fine_tune.py b/openai/api_resources/fine_tune.py --- a/openai/api_resources/fine_tune.py +++ b/openai/api_resources/fine_tune.py @@ -128,7 +128,45 @@ return requestor, url @classmethod - async def stream_events( + def stream_events( + cls, + id, + ...
{"golden_diff": "diff --git a/openai/api_resources/fine_tune.py b/openai/api_resources/fine_tune.py\n--- a/openai/api_resources/fine_tune.py\n+++ b/openai/api_resources/fine_tune.py\n@@ -128,7 +128,45 @@\n return requestor, url\n \n @classmethod\n- async def stream_events(\n+ def stream_events(\n+ ...
1,941
313
gh_patches_debug_7961
rasdani/github-patches
git_diff
scipy__scipy-9387
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Default value for "mode" in "ndimage.shift" In scipy.ndimage.shift the mode's default value is 'constant', but [in the documentation](https://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.shift.h...
diff --git a/scipy/ndimage/_ni_docstrings.py b/scipy/ndimage/_ni_docstrings.py --- a/scipy/ndimage/_ni_docstrings.py +++ b/scipy/ndimage/_ni_docstrings.py @@ -34,7 +34,7 @@ _mode_doc = ( """mode : {'reflect', 'constant', 'nearest', 'mirror', 'wrap'}, optional The `mode` parameter determines how the input array i...
{"golden_diff": "diff --git a/scipy/ndimage/_ni_docstrings.py b/scipy/ndimage/_ni_docstrings.py\n--- a/scipy/ndimage/_ni_docstrings.py\n+++ b/scipy/ndimage/_ni_docstrings.py\n@@ -34,7 +34,7 @@\n _mode_doc = (\n \"\"\"mode : {'reflect', 'constant', 'nearest', 'mirror', 'wrap'}, optional\n The `mode` parameter determ...
2,017
165
gh_patches_debug_1091
rasdani/github-patches
git_diff
streamlink__streamlink-5926
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- plugins.mangomolo: error: No plugin can handle URL ### Checklist - [X] This is a [plugin issue](https://streamlink.github.io/plugins.html) and not [a different kind of issue](https://github.com/streamlink/st...
diff --git a/src/streamlink/plugins/mangomolo.py b/src/streamlink/plugins/mangomolo.py --- a/src/streamlink/plugins/mangomolo.py +++ b/src/streamlink/plugins/mangomolo.py @@ -24,7 +24,7 @@ ) @pluginmatcher( name="mediagovkw", - pattern=re.compile(r"https?://media\.gov\.kw/"), + pattern=re.compile(r"https?:...
{"golden_diff": "diff --git a/src/streamlink/plugins/mangomolo.py b/src/streamlink/plugins/mangomolo.py\n--- a/src/streamlink/plugins/mangomolo.py\n+++ b/src/streamlink/plugins/mangomolo.py\n@@ -24,7 +24,7 @@\n )\n @pluginmatcher(\n name=\"mediagovkw\",\n- pattern=re.compile(r\"https?://media\\.gov\\.kw/\"),\n+ ...
1,437
126
gh_patches_debug_24491
rasdani/github-patches
git_diff
safe-global__safe-config-service-6
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bootstrap database with default data for the /safe-apps endpoint When the database is created and the service is running, we should offer the option/utility to bootstrap it with the default list of safe-apps...
diff --git a/src/safe_apps/migrations/0001_initial.py b/src/safe_apps/migrations/0001_initial.py --- a/src/safe_apps/migrations/0001_initial.py +++ b/src/safe_apps/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 3.2 on 2021-04-16 14:52 +# Generated by Django 3.2 on 2021-04-28 13:39 import django.co...
{"golden_diff": "diff --git a/src/safe_apps/migrations/0001_initial.py b/src/safe_apps/migrations/0001_initial.py\n--- a/src/safe_apps/migrations/0001_initial.py\n+++ b/src/safe_apps/migrations/0001_initial.py\n@@ -1,4 +1,4 @@\n-# Generated by Django 3.2 on 2021-04-16 14:52\n+# Generated by Django 3.2 on 2021-04-28 13:...
662
358
gh_patches_debug_38167
rasdani/github-patches
git_diff
Lightning-AI__torchmetrics-2031
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Self-Implemented Metrics Behaved Weirdly in DDP Mode ## 🐛 Bug Self-implemented nDCG@5 is larger than nDCG@1 in DDP mode. What I was trying to do here is to record the sum of sample-wise scores **_s_** and...
diff --git a/src/torchmetrics/functional/retrieval/ndcg.py b/src/torchmetrics/functional/retrieval/ndcg.py --- a/src/torchmetrics/functional/retrieval/ndcg.py +++ b/src/torchmetrics/functional/retrieval/ndcg.py @@ -19,10 +19,53 @@ from torchmetrics.utilities.checks import _check_retrieval_functional_inputs -def _d...
{"golden_diff": "diff --git a/src/torchmetrics/functional/retrieval/ndcg.py b/src/torchmetrics/functional/retrieval/ndcg.py\n--- a/src/torchmetrics/functional/retrieval/ndcg.py\n+++ b/src/torchmetrics/functional/retrieval/ndcg.py\n@@ -19,10 +19,53 @@\n from torchmetrics.utilities.checks import _check_retrieval_function...
1,782
943
gh_patches_debug_23010
rasdani/github-patches
git_diff
uccser__cs-unplugged-67
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add django-debug-toolbar for debugging --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `csunplugged/config/...
diff --git a/csunplugged/config/settings.py b/csunplugged/config/settings.py --- a/csunplugged/config/settings.py +++ b/csunplugged/config/settings.py @@ -44,9 +44,11 @@ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'debug_toolbar', ] MIDDLEWARE = [ + 'de...
{"golden_diff": "diff --git a/csunplugged/config/settings.py b/csunplugged/config/settings.py\n--- a/csunplugged/config/settings.py\n+++ b/csunplugged/config/settings.py\n@@ -44,9 +44,11 @@\n 'django.contrib.sessions',\n 'django.contrib.messages',\n 'django.contrib.staticfiles',\n+ 'debug_toolbar',\n ]\n...
1,745
315
gh_patches_debug_33414
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-6733
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Caffe Nero GB spider using outdated JSON file The caffe_nero_gb.py spider gets its data from JSON file that the Store Finder page at https://caffenero.com/uk/stores/ uses to display its map. However, it looks...
diff --git a/locations/spiders/caffe_nero_gb.py b/locations/spiders/caffe_nero_gb.py --- a/locations/spiders/caffe_nero_gb.py +++ b/locations/spiders/caffe_nero_gb.py @@ -1,5 +1,8 @@ +import re +from typing import Any + from scrapy import Spider -from scrapy.http import JsonRequest +from scrapy.http import JsonRequest...
{"golden_diff": "diff --git a/locations/spiders/caffe_nero_gb.py b/locations/spiders/caffe_nero_gb.py\n--- a/locations/spiders/caffe_nero_gb.py\n+++ b/locations/spiders/caffe_nero_gb.py\n@@ -1,5 +1,8 @@\n+import re\n+from typing import Any\n+\n from scrapy import Spider\n-from scrapy.http import JsonRequest\n+from scra...
1,264
495
gh_patches_debug_24105
rasdani/github-patches
git_diff
deepchecks__deepchecks-372
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The mean value is not shown in the regression systematic error plot I would expect that near the plot (or when I hover over the mean line in the plot), I would see the mean error value. ![image](https://us...
diff --git a/deepchecks/checks/performance/regression_systematic_error.py b/deepchecks/checks/performance/regression_systematic_error.py --- a/deepchecks/checks/performance/regression_systematic_error.py +++ b/deepchecks/checks/performance/regression_systematic_error.py @@ -51,24 +51,19 @@ diff = y_test - y_pr...
{"golden_diff": "diff --git a/deepchecks/checks/performance/regression_systematic_error.py b/deepchecks/checks/performance/regression_systematic_error.py\n--- a/deepchecks/checks/performance/regression_systematic_error.py\n+++ b/deepchecks/checks/performance/regression_systematic_error.py\n@@ -51,24 +51,19 @@\n ...
1,340
358
gh_patches_debug_39617
rasdani/github-patches
git_diff
googleapis__google-auth-library-python-150
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Expose the full response from the token server `refresh` on oauth2 Credentials should store the full response from the token server. There is potentially useful data here, like the `id_token`. --- END ISSUE ...
diff --git a/google/oauth2/credentials.py b/google/oauth2/credentials.py --- a/google/oauth2/credentials.py +++ b/google/oauth2/credentials.py @@ -39,14 +39,16 @@ class Credentials(credentials.Scoped, credentials.Credentials): """Credentials using OAuth 2.0 access and refresh tokens.""" - def __init__(self, ...
{"golden_diff": "diff --git a/google/oauth2/credentials.py b/google/oauth2/credentials.py\n--- a/google/oauth2/credentials.py\n+++ b/google/oauth2/credentials.py\n@@ -39,14 +39,16 @@\n class Credentials(credentials.Scoped, credentials.Credentials):\n \"\"\"Credentials using OAuth 2.0 access and refresh tokens.\"\"\...
1,570
640
gh_patches_debug_18776
rasdani/github-patches
git_diff
pwndbg__pwndbg-1239
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `context` sometimes gets printed with the `set` command `set $rax=0` sometimes causes `context` to be immediately called afterwards. I think don't think this is always reproducible, but will keep investigatin...
diff --git a/pwndbg/gdblib/prompt.py b/pwndbg/gdblib/prompt.py --- a/pwndbg/gdblib/prompt.py +++ b/pwndbg/gdblib/prompt.py @@ -50,8 +50,11 @@ gdb.prompt_hook = prompt_hook +context_shown = False + + def prompt_hook(*a): - global cur + global cur, context_shown new = (gdb.selected_inferior(), gdb....
{"golden_diff": "diff --git a/pwndbg/gdblib/prompt.py b/pwndbg/gdblib/prompt.py\n--- a/pwndbg/gdblib/prompt.py\n+++ b/pwndbg/gdblib/prompt.py\n@@ -50,8 +50,11 @@\n gdb.prompt_hook = prompt_hook\n \n \n+context_shown = False\n+\n+\n def prompt_hook(*a):\n- global cur\n+ global cur, context_shown\n \n new =...
1,223
301
gh_patches_debug_18658
rasdani/github-patches
git_diff
GeotrekCE__Geotrek-admin-1344
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- set_schema_ft() SQL function delete some triggers set_schema_ft() contains as "DROP FUNCTION ... CASCADE" that delete some other functions or triggers, eg. e_t_evenement_geom_iu_tgr. All 0.28.x releases are ...
diff --git a/geotrek/common/utils/postgresql.py b/geotrek/common/utils/postgresql.py --- a/geotrek/common/utils/postgresql.py +++ b/geotrek/common/utils/postgresql.py @@ -133,12 +133,12 @@ for schema_name, tables in table_schemas.items(): for table_name in tables: - try: + sql = "S...
{"golden_diff": "diff --git a/geotrek/common/utils/postgresql.py b/geotrek/common/utils/postgresql.py\n--- a/geotrek/common/utils/postgresql.py\n+++ b/geotrek/common/utils/postgresql.py\n@@ -133,12 +133,12 @@\n \n for schema_name, tables in table_schemas.items():\n for table_name in tables:\n- tr...
1,901
235
gh_patches_debug_851
rasdani/github-patches
git_diff
Gallopsled__pwntools-1893
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 'pwn cyclic -o afca' throws a BytesWarning ``` $ pwn cyclic -o afca /Users/heapcrash/pwntools/pwnlib/commandline/cyclic.py:74: BytesWarning: Text is not bytes; assuming ASCII, no guarantees. See https://d...
diff --git a/pwnlib/commandline/cyclic.py b/pwnlib/commandline/cyclic.py --- a/pwnlib/commandline/cyclic.py +++ b/pwnlib/commandline/cyclic.py @@ -67,6 +67,9 @@ if args.lookup: pat = args.lookup + if six.PY3: + pat = bytes(pat, encoding='utf-8') + try: pat = int(p...
{"golden_diff": "diff --git a/pwnlib/commandline/cyclic.py b/pwnlib/commandline/cyclic.py\n--- a/pwnlib/commandline/cyclic.py\n+++ b/pwnlib/commandline/cyclic.py\n@@ -67,6 +67,9 @@\n if args.lookup:\n pat = args.lookup\n \n+ if six.PY3:\n+ pat = bytes(pat, encoding='utf-8')\n+\n tr...
1,217
105
gh_patches_debug_14472
rasdani/github-patches
git_diff
mytardis__mytardis-1507
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NPM_FILE_PATTERNS - collectstatic failing on Windows MyTardis currently uses `django-npm` to collect static content which has been npm installed into the `node_modules/` folder. Because we don't necessaril...
diff --git a/tardis/default_settings/static_files.py b/tardis/default_settings/static_files.py --- a/tardis/default_settings/static_files.py +++ b/tardis/default_settings/static_files.py @@ -32,16 +32,16 @@ 'backbone': ['*'], 'backbone-forms': ['*'], 'blueimp-file-upload': ['*'], - 'bootstrap': ['dist...
{"golden_diff": "diff --git a/tardis/default_settings/static_files.py b/tardis/default_settings/static_files.py\n--- a/tardis/default_settings/static_files.py\n+++ b/tardis/default_settings/static_files.py\n@@ -32,16 +32,16 @@\n 'backbone': ['*'],\n 'backbone-forms': ['*'],\n 'blueimp-file-upload': ['*'],\n...
1,135
237
gh_patches_debug_13235
rasdani/github-patches
git_diff
kivy__python-for-android-618
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Jpeg recipe is broken It is missing /home/brussee/.local/lib/python2.7/site-packages/pythonforandroid/recipes/jpeg/Application.mk Perpaps just the path is incorrect? ``` [INFO]: Prebuilding jpeg for armea...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -30,7 +30,8 @@ results[directory].append(join(*filename.split(sep)[1:])) recursively_include(package_data, 'pythonforandroid/recipes', - ['*.patch', 'Setup*', '*.pyx', '*.py', '*.c', '*.h', ]) + ['*.p...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -30,7 +30,8 @@\n results[directory].append(join(*filename.split(sep)[1:]))\n \n recursively_include(package_data, 'pythonforandroid/recipes',\n- ['*.patch', 'Setup*', '*.pyx', '*.py', '*.c', '*.h', ])\n+...
1,709
167
gh_patches_debug_5623
rasdani/github-patches
git_diff
spack__spack-3415
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bison doesn't find m4 at run time While building `flex`, I had `bison` fail because it could not execute `m4`. The reason was that I had uninstalled the `m4` package (via Spack) which `bison` installed as its...
diff --git a/var/spack/repos/builtin/packages/autoconf/package.py b/var/spack/repos/builtin/packages/autoconf/package.py --- a/var/spack/repos/builtin/packages/autoconf/package.py +++ b/var/spack/repos/builtin/packages/autoconf/package.py @@ -36,7 +36,9 @@ version('2.59', 'd4d45eaa1769d45e59dcb131a4af17a0') v...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/autoconf/package.py b/var/spack/repos/builtin/packages/autoconf/package.py\n--- a/var/spack/repos/builtin/packages/autoconf/package.py\n+++ b/var/spack/repos/builtin/packages/autoconf/package.py\n@@ -36,7 +36,9 @@\n version('2.59', 'd4d45eaa1769d45e59dc...
1,138
237
gh_patches_debug_13432
rasdani/github-patches
git_diff
nilearn__nilearn-936
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Plots won't show up Hi everyone, using nilearn on OSX El Capitan, when executing the example scripts like plot_demo_glass_brain.py no plots will show up. PiP and iPython linked to the same folders, matplotli...
diff --git a/nilearn/plotting/__init__.py b/nilearn/plotting/__init__.py --- a/nilearn/plotting/__init__.py +++ b/nilearn/plotting/__init__.py @@ -11,8 +11,12 @@ # We are doing local imports here to avoid poluting our namespace import matplotlib import os + import sys # Set th...
{"golden_diff": "diff --git a/nilearn/plotting/__init__.py b/nilearn/plotting/__init__.py\n--- a/nilearn/plotting/__init__.py\n+++ b/nilearn/plotting/__init__.py\n@@ -11,8 +11,12 @@\n # We are doing local imports here to avoid poluting our namespace\n import matplotlib\n import os\n+ impo...
796
199
gh_patches_debug_41715
rasdani/github-patches
git_diff
pantsbuild__pants-4887
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Prefer wheels during plugin install Pants has sprouted a dependency on a package that is most easily installed via a `whl` on pypi (`openssl` for `requests[security]`). But currently the plugin installatio...
diff --git a/src/python/pants/init/plugin_resolver.py b/src/python/pants/init/plugin_resolver.py --- a/src/python/pants/init/plugin_resolver.py +++ b/src/python/pants/init/plugin_resolver.py @@ -8,17 +8,18 @@ import hashlib import logging import os +import site from pex import resolver from pex.base import requi...
{"golden_diff": "diff --git a/src/python/pants/init/plugin_resolver.py b/src/python/pants/init/plugin_resolver.py\n--- a/src/python/pants/init/plugin_resolver.py\n+++ b/src/python/pants/init/plugin_resolver.py\n@@ -8,17 +8,18 @@\n import hashlib\n import logging\n import os\n+import site\n \n from pex import resolver\n...
1,910
693
gh_patches_debug_5579
rasdani/github-patches
git_diff
mitmproxy__mitmproxy-6373
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Outfile -w cannot be loaded #### Problem Description When the dump file is getting bigger, about 100mb it's not loaded anymore. #### Steps to reproduce the behavior: Make a big outfile and try to open it wit...
diff --git a/mitmproxy/tools/web/master.py b/mitmproxy/tools/web/master.py --- a/mitmproxy/tools/web/master.py +++ b/mitmproxy/tools/web/master.py @@ -97,7 +97,9 @@ tornado.ioloop.IOLoop.current() # Add our web app. - http_server = tornado.httpserver.HTTPServer(self.app) + http_server ...
{"golden_diff": "diff --git a/mitmproxy/tools/web/master.py b/mitmproxy/tools/web/master.py\n--- a/mitmproxy/tools/web/master.py\n+++ b/mitmproxy/tools/web/master.py\n@@ -97,7 +97,9 @@\n tornado.ioloop.IOLoop.current()\n \n # Add our web app.\n- http_server = tornado.httpserver.HTTPServer(self.ap...
1,569
140
gh_patches_debug_54195
rasdani/github-patches
git_diff
vyperlang__vyper-1275
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- State leakage across test runs when using parrellization ### What is wrong. The tests at `tests/examples/safe_remote_purchase/test_safe_remote_purchase.py` fail when run using `pytest-xdist` to parallelize...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -4,11 +4,12 @@ test_deps = [ - 'pytest', - 'pytest-cov', - 'py-evm==0.2.0a34', - 'eth-tester==0.1.0b33', - 'web3==4.8.2', + 'pytest>=3.6', + 'pytest-cov==2.4.0', + 'pytest-xdist==1.18.1', + 'py-evm==0.2.0a39', + 'eth-te...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -4,11 +4,12 @@\n \n \n test_deps = [\n- 'pytest',\n- 'pytest-cov',\n- 'py-evm==0.2.0a34',\n- 'eth-tester==0.1.0b33',\n- 'web3==4.8.2',\n+ 'pytest>=3.6',\n+ 'pytest-cov==2.4.0',\n+ 'pytest-xdist==1.18.1',\n+ ...
1,093
176
gh_patches_debug_217
rasdani/github-patches
git_diff
liqd__a4-meinberlin-3701
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- testing 4293: can't edit polls somebody else created even if I have the rights **URL:** https://meinberlin-dev.liqd.net/dashboard/modules/umfrage-24-4/poll/ **user:** group member **expected behaviour:** I ...
diff --git a/meinberlin/apps/polls/rules.py b/meinberlin/apps/polls/rules.py --- a/meinberlin/apps/polls/rules.py +++ b/meinberlin/apps/polls/rules.py @@ -4,6 +4,5 @@ rules.set_perm( 'a4polls.change_poll', - module_predicates.is_context_initiator | - module_predicates.is_context_moderator + module_pred...
{"golden_diff": "diff --git a/meinberlin/apps/polls/rules.py b/meinberlin/apps/polls/rules.py\n--- a/meinberlin/apps/polls/rules.py\n+++ b/meinberlin/apps/polls/rules.py\n@@ -4,6 +4,5 @@\n \n rules.set_perm(\n 'a4polls.change_poll',\n- module_predicates.is_context_initiator |\n- module_predicates.is_context_m...
541
103
gh_patches_debug_19101
rasdani/github-patches
git_diff
aio-libs-abandoned__aioredis-py-1075
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [2.0] Update setup.py Trove classifiers The [classifiers](https://github.com/aio-libs/aioredis-py/blob/5a713fff3717094cca63e4a5f4b1cb7d6894a08f/setup.py#L25-L30) currently only list Python 3.6 and 3.7. This s...
diff --git a/aioredis/__init__.py b/aioredis/__init__.py --- a/aioredis/__init__.py +++ b/aioredis/__init__.py @@ -31,7 +31,7 @@ return value -__version__ = "2.0.0b1" +__version__ = "2.0.0" VERSION = tuple(map(int_or_str, __version__.split("."))) __all__ = [ diff --git a/setup.py b/setup.py --- a/setup...
{"golden_diff": "diff --git a/aioredis/__init__.py b/aioredis/__init__.py\n--- a/aioredis/__init__.py\n+++ b/aioredis/__init__.py\n@@ -31,7 +31,7 @@\n return value\n \n \n-__version__ = \"2.0.0b1\"\n+__version__ = \"2.0.0\"\n VERSION = tuple(map(int_or_str, __version__.split(\".\")))\n \n __all__ = [\ndiff --gi...
1,398
272
gh_patches_debug_8811
rasdani/github-patches
git_diff
psf__black-2816
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add test for `A᧚ = 0` Black v19.10b0 fails to parse certain assignments involving unicode identifiers - [playground link here](https://black.now.sh/?version=stable&state=_Td6WFoAAATm1rRGAgAhARYAAAB0L-Wj4ABLAD...
diff --git a/fuzz.py b/fuzz.py --- a/fuzz.py +++ b/fuzz.py @@ -48,7 +48,7 @@ dst_contents = black.format_str(src_contents, mode=mode) except black.InvalidInput: # This is a bug - if it's valid Python code, as above, Black should be - # able to cope with it. See issues #970, #1012, #1358, ...
{"golden_diff": "diff --git a/fuzz.py b/fuzz.py\n--- a/fuzz.py\n+++ b/fuzz.py\n@@ -48,7 +48,7 @@\n dst_contents = black.format_str(src_contents, mode=mode)\n except black.InvalidInput:\n # This is a bug - if it's valid Python code, as above, Black should be\n- # able to cope with it. See iss...
1,552
161
gh_patches_debug_52
rasdani/github-patches
git_diff
Anselmoo__spectrafit-655
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Docs]: Using builtin release drafter ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Missing Information in the Docs https://docs.github.com/en/repositories/...
diff --git a/spectrafit/__init__.py b/spectrafit/__init__.py --- a/spectrafit/__init__.py +++ b/spectrafit/__init__.py @@ -1,2 +1,2 @@ """SpectraFit, fast command line tool for fitting data.""" -__version__ = "0.16.4" +__version__ = "1.0.0a0"
{"golden_diff": "diff --git a/spectrafit/__init__.py b/spectrafit/__init__.py\n--- a/spectrafit/__init__.py\n+++ b/spectrafit/__init__.py\n@@ -1,2 +1,2 @@\n \"\"\"SpectraFit, fast command line tool for fitting data.\"\"\"\n-__version__ = \"0.16.4\"\n+__version__ = \"1.0.0a0\"\n", "issue": "[Docs]: Using builtin release...
376
95
gh_patches_debug_45047
rasdani/github-patches
git_diff
e-valuation__EvaP-750
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- collapse contributors with no answers in course detail pages Contributors who didn't get any answers should be collapsed on the results pages, so that the empty answer lines are not shown. This should also ha...
diff --git a/evap/results/views.py b/evap/results/views.py --- a/evap/results/views.py +++ b/evap/results/views.py @@ -3,8 +3,7 @@ from django.contrib.auth.decorators import login_required from evap.evaluation.models import Semester, Degree, Contribution -from evap.evaluation.tools import calculate_results, calcula...
{"golden_diff": "diff --git a/evap/results/views.py b/evap/results/views.py\n--- a/evap/results/views.py\n+++ b/evap/results/views.py\n@@ -3,8 +3,7 @@\n from django.contrib.auth.decorators import login_required\n \n from evap.evaluation.models import Semester, Degree, Contribution\n-from evap.evaluation.tools import ca...
1,747
1,003
gh_patches_debug_631
rasdani/github-patches
git_diff
pex-tool__pex-2042
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.121 On the docket: + [x] Building Pex with requirements.txt that includes local directory + Python version specifier fails #2037 + [x] Failed to resolve compatible distributions when building P...
diff --git a/pex/version.py b/pex/version.py --- a/pex/version.py +++ b/pex/version.py @@ -1,4 +1,4 @@ # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -__version__ = "2.1.120" +__version__ = "2.1.121"
{"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.120\"\n+__version__ = \"2.1.121\"\n",...
376
98
gh_patches_debug_25893
rasdani/github-patches
git_diff
liqd__a4-meinberlin-551
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use predicates to prevent access to items if no phase has started yet With topicprio and polls items are created before any phase has been started. On the project_detail page a according message and no conte...
diff --git a/apps/polls/rules.py b/apps/polls/rules.py --- a/apps/polls/rules.py +++ b/apps/polls/rules.py @@ -2,6 +2,7 @@ from rules.predicates import is_superuser from adhocracy4.modules import predicates as module_predicates +from apps.contrib import predicates as contrib_predicates from . import models @@ ...
{"golden_diff": "diff --git a/apps/polls/rules.py b/apps/polls/rules.py\n--- a/apps/polls/rules.py\n+++ b/apps/polls/rules.py\n@@ -2,6 +2,7 @@\n from rules.predicates import is_superuser\n \n from adhocracy4.modules import predicates as module_predicates\n+from apps.contrib import predicates as contrib_predicates\n \n ...
831
340
gh_patches_debug_27110
rasdani/github-patches
git_diff
RedHatInsights__insights-core-3225
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Need to add the Yum updates datasource to the documentation The [PR](https://github.com/RedHatInsights/insights-core/pull/2993/files#diff-22151ef794ba196097984a47bf24b6759c261de6dc062ac541da099084e5c50a) addi...
diff --git a/insights/specs/datasources/yum_updates.py b/insights/specs/datasources/yum_updates.py --- a/insights/specs/datasources/yum_updates.py +++ b/insights/specs/datasources/yum_updates.py @@ -70,7 +70,7 @@ def updates(self, pkg): nevra = pkg.nevra updates_list = [] - for upg in self...
{"golden_diff": "diff --git a/insights/specs/datasources/yum_updates.py b/insights/specs/datasources/yum_updates.py\n--- a/insights/specs/datasources/yum_updates.py\n+++ b/insights/specs/datasources/yum_updates.py\n@@ -70,7 +70,7 @@\n def updates(self, pkg):\n nevra = pkg.nevra\n updates_list = []\n...
1,726
466
gh_patches_debug_10322
rasdani/github-patches
git_diff
streamlit__streamlit-2148
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- On the newest docs, "Deploy a Streamlit app" page is empty **Link to doc page in question (if any):** https://docs.streamlit.io/en/stable/deploy_streamlit_app.html **What you think the docs should say:*...
diff --git a/lib/streamlit/elements/file_uploader.py b/lib/streamlit/elements/file_uploader.py --- a/lib/streamlit/elements/file_uploader.py +++ b/lib/streamlit/elements/file_uploader.py @@ -43,6 +43,7 @@ - If allow_multiple_files is True, returns a list with the uploaded files as UploadedFi...
{"golden_diff": "diff --git a/lib/streamlit/elements/file_uploader.py b/lib/streamlit/elements/file_uploader.py\n--- a/lib/streamlit/elements/file_uploader.py\n+++ b/lib/streamlit/elements/file_uploader.py\n@@ -43,6 +43,7 @@\n - If allow_multiple_files is True, returns a list with the\n upload...
1,837
134
gh_patches_debug_4347
rasdani/github-patches
git_diff
ipython__ipython-5395
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Converting notebooks with spaces in their names to RST gives broken images I am using `ipython nbconvert --to rst example1.ipynb` to convert my example notebooks into reStructuredText, for incorporation into ...
diff --git a/IPython/nbconvert/filters/markdown.py b/IPython/nbconvert/filters/markdown.py --- a/IPython/nbconvert/filters/markdown.py +++ b/IPython/nbconvert/filters/markdown.py @@ -103,7 +103,7 @@ return out.rstrip('\n') def markdown2rst(source): - """Convert a markdown string to LaTeX via pandoc. + """...
{"golden_diff": "diff --git a/IPython/nbconvert/filters/markdown.py b/IPython/nbconvert/filters/markdown.py\n--- a/IPython/nbconvert/filters/markdown.py\n+++ b/IPython/nbconvert/filters/markdown.py\n@@ -103,7 +103,7 @@\n return out.rstrip('\\n')\n \n def markdown2rst(source):\n- \"\"\"Convert a markdown string t...
1,677
135
gh_patches_debug_16961
rasdani/github-patches
git_diff
ietf-tools__datatracker-5977
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add "totals" to "view feedback" page ### Description It would be useful to add totals for each column in the "view feedback" page. ### Code of Conduct - [X] I agree to follow the [IETF's Code of Conduct](h...
diff --git a/ietf/nomcom/templatetags/nomcom_tags.py b/ietf/nomcom/templatetags/nomcom_tags.py --- a/ietf/nomcom/templatetags/nomcom_tags.py +++ b/ietf/nomcom/templatetags/nomcom_tags.py @@ -1,8 +1,10 @@ -# Copyright The IETF Trust 2013-2019, All Rights Reserved +# Copyright The IETF Trust 2013-2023, All Rights Reserve...
{"golden_diff": "diff --git a/ietf/nomcom/templatetags/nomcom_tags.py b/ietf/nomcom/templatetags/nomcom_tags.py\n--- a/ietf/nomcom/templatetags/nomcom_tags.py\n+++ b/ietf/nomcom/templatetags/nomcom_tags.py\n@@ -1,8 +1,10 @@\n-# Copyright The IETF Trust 2013-2019, All Rights Reserved\n+# Copyright The IETF Trust 2013-20...
1,126
276
gh_patches_debug_23210
rasdani/github-patches
git_diff
mirumee__ariadne-68
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Create shortcut function for GraphQLMiddleware.make_simple_server Getting started with Ariadne could be made even simpler by providing shortcut function abstracting the `GraphQLMiddleware` away on first conta...
diff --git a/ariadne/__init__.py b/ariadne/__init__.py --- a/ariadne/__init__.py +++ b/ariadne/__init__.py @@ -1,6 +1,6 @@ from .executable_schema import make_executable_schema from .resolvers import add_resolve_functions_to_schema, default_resolver, resolve_to -from .utils import gql +from .utils import gql, start_s...
{"golden_diff": "diff --git a/ariadne/__init__.py b/ariadne/__init__.py\n--- a/ariadne/__init__.py\n+++ b/ariadne/__init__.py\n@@ -1,6 +1,6 @@\n from .executable_schema import make_executable_schema\n from .resolvers import add_resolve_functions_to_schema, default_resolver, resolve_to\n-from .utils import gql\n+from .u...
461
375
gh_patches_debug_16861
rasdani/github-patches
git_diff
hpcaitech__ColossalAI-3656
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [DOC]: Unnecessary step to reformat questions ### 📚 The doc issue The current documentation contains unnecessary step to reformat questions from FastChat's format to our internal format. [tensor] fix some u...
diff --git a/applications/Chat/evaluate/format_questions.py b/applications/Chat/evaluate/format_questions.py deleted file mode 100644 --- a/applications/Chat/evaluate/format_questions.py +++ /dev/null @@ -1,31 +0,0 @@ -import argparse -import os -import json -import copy - -from utils import jdump, get_json_list - - -d...
{"golden_diff": "diff --git a/applications/Chat/evaluate/format_questions.py b/applications/Chat/evaluate/format_questions.py\ndeleted file mode 100644\n--- a/applications/Chat/evaluate/format_questions.py\n+++ /dev/null\n@@ -1,31 +0,0 @@\n-import argparse\n-import os\n-import json\n-import copy\n-\n-from utils import ...
576
298
gh_patches_debug_6038
rasdani/github-patches
git_diff
wemake-services__wemake-python-styleguide-16
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Forbid `handler` as a variable name We need to add `handler` to our variable blacklist. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs...
diff --git a/wemake_python_styleguide/constants.py b/wemake_python_styleguide/constants.py --- a/wemake_python_styleguide/constants.py +++ b/wemake_python_styleguide/constants.py @@ -19,6 +19,10 @@ # Attribute access: 'hasattr', 'delattr', + + # Too generic: + 'handler', + 'handle', )) BAD_I...
{"golden_diff": "diff --git a/wemake_python_styleguide/constants.py b/wemake_python_styleguide/constants.py\n--- a/wemake_python_styleguide/constants.py\n+++ b/wemake_python_styleguide/constants.py\n@@ -19,6 +19,10 @@\n # Attribute access:\n 'hasattr',\n 'delattr',\n+\n+ # Too generic:\n+ 'handler',\n...
580
143
gh_patches_debug_24388
rasdani/github-patches
git_diff
pulp__pulpcore-4190
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Reclaim space for repository fails with Cannot delete some instances of model 'Artifact' because they are referenced through protected foreign keys: 'ContentArtifact.artifact'." **Version** 3.16, but probabl...
diff --git a/pulpcore/app/tasks/reclaim_space.py b/pulpcore/app/tasks/reclaim_space.py --- a/pulpcore/app/tasks/reclaim_space.py +++ b/pulpcore/app/tasks/reclaim_space.py @@ -1,3 +1,7 @@ +from logging import getLogger + +from django.db.models.deletion import ProtectedError + from pulpcore.app.models import ( Arti...
{"golden_diff": "diff --git a/pulpcore/app/tasks/reclaim_space.py b/pulpcore/app/tasks/reclaim_space.py\n--- a/pulpcore/app/tasks/reclaim_space.py\n+++ b/pulpcore/app/tasks/reclaim_space.py\n@@ -1,3 +1,7 @@\n+from logging import getLogger\n+\n+from django.db.models.deletion import ProtectedError\n+\n from pulpcore.app....
1,349
322
gh_patches_debug_35421
rasdani/github-patches
git_diff
conan-io__conan-center-index-20134
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [doxygen] Model iconv dependency as a conan package Specify library name and version: **doxygen/1.9.2** This resolves an issue where `iconv` wasn't being appropriately modelled as a conan dependency in th...
diff --git a/recipes/doxygen/all/conanfile.py b/recipes/doxygen/all/conanfile.py --- a/recipes/doxygen/all/conanfile.py +++ b/recipes/doxygen/all/conanfile.py @@ -21,10 +21,12 @@ options = { "enable_parse": [True, False], "enable_search": [True, False], + "enable_app": [True, False], ...
{"golden_diff": "diff --git a/recipes/doxygen/all/conanfile.py b/recipes/doxygen/all/conanfile.py\n--- a/recipes/doxygen/all/conanfile.py\n+++ b/recipes/doxygen/all/conanfile.py\n@@ -21,10 +21,12 @@\n options = {\n \"enable_parse\": [True, False],\n \"enable_search\": [True, False],\n+ \"enab...
1,644
507
gh_patches_debug_310
rasdani/github-patches
git_diff
streamlit__streamlit-7454
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- A header with Japanese text has no anchor link. ### Summary I found that a header with Japanese text has no anchor link. ### Steps to reproduce Code snippet: ``` import streamlit as st st.header...
diff --git a/e2e/scripts/st_title.py b/e2e/scripts/st_title.py --- a/e2e/scripts/st_title.py +++ b/e2e/scripts/st_title.py @@ -16,3 +16,6 @@ st.title("This title is awesome!") st.title("This title is awesome too!", anchor="awesome-title") + +st.title("日本語タイトル") +st.title("その他の邦題", anchor="アンカー")
{"golden_diff": "diff --git a/e2e/scripts/st_title.py b/e2e/scripts/st_title.py\n--- a/e2e/scripts/st_title.py\n+++ b/e2e/scripts/st_title.py\n@@ -16,3 +16,6 @@\n \n st.title(\"This title is awesome!\")\n st.title(\"This title is awesome too!\", anchor=\"awesome-title\")\n+\n+st.title(\"\u65e5\u672c\u8a9e\u30bf\u30a4\u...
690
98
gh_patches_debug_41324
rasdani/github-patches
git_diff
tough-dev-school__education-backend-885
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Админка: по-умолчанию показывать только включенные промокоды У нас накопилась огромная гора промокодов, и теперь при первом входе в админку сложно ориентироваться. Нужно сделать, чтобы по-умолчанию в админке ...
diff --git a/src/app/admin/filters.py b/src/app/admin/filters.py --- a/src/app/admin/filters.py +++ b/src/app/admin/filters.py @@ -12,7 +12,7 @@ parameter_name = 'has_classes' def t(self, request, queryset): return queryset.filter(classes__isnull=False).distinct('pk') - ...
{"golden_diff": "diff --git a/src/app/admin/filters.py b/src/app/admin/filters.py\n--- a/src/app/admin/filters.py\n+++ b/src/app/admin/filters.py\n@@ -12,7 +12,7 @@\n parameter_name = 'has_classes'\n def t(self, request, queryset):\n return queryset.filter(classes__isnull=False)....
979
862
gh_patches_debug_56268
rasdani/github-patches
git_diff
readthedocs__readthedocs.org-4910
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Validate profile fields on form Related code https://github.com/rtfd/readthedocs.org/blob/164800694a25d769234c6e7019c483f347fe9226/readthedocs/core/forms.py#L20-L46 This will raise an exception if the l...
diff --git a/readthedocs/core/forms.py b/readthedocs/core/forms.py --- a/readthedocs/core/forms.py +++ b/readthedocs/core/forms.py @@ -18,8 +18,8 @@ class UserProfileForm(forms.ModelForm): - first_name = CharField(label=_('First name'), required=False) - last_name = CharField(label=_('Last name'), required=F...
{"golden_diff": "diff --git a/readthedocs/core/forms.py b/readthedocs/core/forms.py\n--- a/readthedocs/core/forms.py\n+++ b/readthedocs/core/forms.py\n@@ -18,8 +18,8 @@\n \n \n class UserProfileForm(forms.ModelForm):\n- first_name = CharField(label=_('First name'), required=False)\n- last_name = CharField(label=_...
1,092
138
gh_patches_debug_34769
rasdani/github-patches
git_diff
napari__napari-3016
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Opacity slider label should be between 0 and 1 ## 🐛 Bug Opacity slider label should be between 0 and 1 not 0 and 100. This will remove need for normalization on slider https://github.com/napari/napari/blo...
diff --git a/napari/_qt/layer_controls/qt_layer_controls_base.py b/napari/_qt/layer_controls/qt_layer_controls_base.py --- a/napari/_qt/layer_controls/qt_layer_controls_base.py +++ b/napari/_qt/layer_controls/qt_layer_controls_base.py @@ -1,6 +1,6 @@ from qtpy.QtCore import Qt from qtpy.QtWidgets import QComboBox, QF...
{"golden_diff": "diff --git a/napari/_qt/layer_controls/qt_layer_controls_base.py b/napari/_qt/layer_controls/qt_layer_controls_base.py\n--- a/napari/_qt/layer_controls/qt_layer_controls_base.py\n+++ b/napari/_qt/layer_controls/qt_layer_controls_base.py\n@@ -1,6 +1,6 @@\n from qtpy.QtCore import Qt\n from qtpy.QtWidget...
1,586
461
gh_patches_debug_31134
rasdani/github-patches
git_diff
pyload__pyload-1535
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Plugin DlProtectCom doesn't work Trying to download http://www.dl-protect.com/2C964B88 gives the rror 'NoneType' object has no attribute 'group' 0.00 B --- END ISSUE --- Below are some code segments, each ...
diff --git a/module/plugins/crypter/DlProtectCom.py b/module/plugins/crypter/DlProtectCom.py --- a/module/plugins/crypter/DlProtectCom.py +++ b/module/plugins/crypter/DlProtectCom.py @@ -11,7 +11,7 @@ class DlProtectCom(SimpleCrypter): __name__ = "DlProtectCom" __type__ = "crypter" - __version__ = "...
{"golden_diff": "diff --git a/module/plugins/crypter/DlProtectCom.py b/module/plugins/crypter/DlProtectCom.py\n--- a/module/plugins/crypter/DlProtectCom.py\n+++ b/module/plugins/crypter/DlProtectCom.py\n@@ -11,7 +11,7 @@\n class DlProtectCom(SimpleCrypter):\n __name__ = \"DlProtectCom\"\n __type__ = \"cry...
1,114
484
gh_patches_debug_13065
rasdani/github-patches
git_diff
openai__gym-2646
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug Report] AttributeError: 'Discrete' object has no attribute 'start' **Describe the bug** Change in https://github.com/openai/gym/pull/2470 introduced a bug when loading pre-trained agents with previous v...
diff --git a/gym/spaces/discrete.py b/gym/spaces/discrete.py --- a/gym/spaces/discrete.py +++ b/gym/spaces/discrete.py @@ -12,7 +12,7 @@ Example:: - >>> Discrete(2) + >>> Discrete(2) # {0, 1} >>> Discrete(3, start=-1) # {-1, 0, 1} """ @@ -49,3 +49,17 @@ an...
{"golden_diff": "diff --git a/gym/spaces/discrete.py b/gym/spaces/discrete.py\n--- a/gym/spaces/discrete.py\n+++ b/gym/spaces/discrete.py\n@@ -12,7 +12,7 @@\n \n Example::\n \n- >>> Discrete(2)\n+ >>> Discrete(2) # {0, 1}\n >>> Discrete(3, start=-1) # {-1, 0, 1}\n \n \"\"\"\n@@...
1,417
244
gh_patches_debug_34565
rasdani/github-patches
git_diff
pallets__click-1328
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- complex example - misleading name for context The name `Context` and `pass_context` are misleading in the complex example, since the `Context` defined in the example shares a name with the click `Context`. Ma...
diff --git a/examples/complex/complex/cli.py b/examples/complex/complex/cli.py --- a/examples/complex/complex/cli.py +++ b/examples/complex/complex/cli.py @@ -6,7 +6,7 @@ CONTEXT_SETTINGS = dict(auto_envvar_prefix='COMPLEX') -class Context(object): +class Environment(object): def __init__(self): se...
{"golden_diff": "diff --git a/examples/complex/complex/cli.py b/examples/complex/complex/cli.py\n--- a/examples/complex/complex/cli.py\n+++ b/examples/complex/complex/cli.py\n@@ -6,7 +6,7 @@\n CONTEXT_SETTINGS = dict(auto_envvar_prefix='COMPLEX')\n \n \n-class Context(object):\n+class Environment(object):\n \n def ...
1,076
499
gh_patches_debug_249
rasdani/github-patches
git_diff
aws__aws-cli-3790
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The aws-cli bundle package uses an insecure version of PyYAML ### awscli version:<br> `aws-cli/1.16.52 Python/2.7.15 Linux/4.14.77-69.57.amzn1.x86_64 exec-env/AWS_ECS_EC2 botocore/1.12.42` [NVD entry](htt...
diff --git a/awscli/customizations/ecs/filehelpers.py b/awscli/customizations/ecs/filehelpers.py --- a/awscli/customizations/ecs/filehelpers.py +++ b/awscli/customizations/ecs/filehelpers.py @@ -78,4 +78,4 @@ try: return json.loads(appspec_str) except ValueError: - return yaml.load(appspec_str...
{"golden_diff": "diff --git a/awscli/customizations/ecs/filehelpers.py b/awscli/customizations/ecs/filehelpers.py\n--- a/awscli/customizations/ecs/filehelpers.py\n+++ b/awscli/customizations/ecs/filehelpers.py\n@@ -78,4 +78,4 @@\n try:\n return json.loads(appspec_str)\n except ValueError:\n- retu...
1,318
94
gh_patches_debug_42153
rasdani/github-patches
git_diff
lhotse-speech__lhotse-5
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- comment would be nice to have a comment here mentioning that DummySet contains everything. https://github.com/pzelasko/lhotse/blob/7555df605def57836c9454ae44aac95c504d86b0/lhotse/audio.py#L77 --- END ISSU...
diff --git a/lhotse/audio.py b/lhotse/audio.py --- a/lhotse/audio.py +++ b/lhotse/audio.py @@ -1,4 +1,6 @@ from dataclasses import dataclass, asdict +from dataclasses import dataclass, asdict +from io import BytesIO from subprocess import run, PIPE from typing import List, Optional, Dict, Union @@ -6,7 +8,7 @@ im...
{"golden_diff": "diff --git a/lhotse/audio.py b/lhotse/audio.py\n--- a/lhotse/audio.py\n+++ b/lhotse/audio.py\n@@ -1,4 +1,6 @@\n from dataclasses import dataclass, asdict\n+from dataclasses import dataclass, asdict\n+from io import BytesIO\n from subprocess import run, PIPE\n from typing import List, Optional, Dict, Un...
1,979
926
gh_patches_debug_5930
rasdani/github-patches
git_diff
getsentry__sentry-4564
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BrowserExtensionsFilter: _gCrWeb autofill error in iOS Chrome not ignored This seems to be a relatively well-known issue on Chrome for iOS. It seems this could be ignored safely by the filter as well. Sour...
diff --git a/src/sentry/filters/browser_extensions.py b/src/sentry/filters/browser_extensions.py --- a/src/sentry/filters/browser_extensions.py +++ b/src/sentry/filters/browser_extensions.py @@ -24,6 +24,8 @@ # See http://stackoverflow.com/questions/4113268 'bmi_SafeAddOnload', 'EBCallBackMessageReceived...
{"golden_diff": "diff --git a/src/sentry/filters/browser_extensions.py b/src/sentry/filters/browser_extensions.py\n--- a/src/sentry/filters/browser_extensions.py\n+++ b/src/sentry/filters/browser_extensions.py\n@@ -24,6 +24,8 @@\n # See http://stackoverflow.com/questions/4113268\n 'bmi_SafeAddOnload',\n 'EB...
1,206
166
gh_patches_debug_24377
rasdani/github-patches
git_diff
facebookresearch__hydra-1375
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Feature Request] [Submitit-Plugin] (Potentially a bug) Impossible to set certain flags in submitit launcher # 🚀 Feature Request <!-- A clear and concise description of the feature you are requesting --> ...
diff --git a/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py b/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py --- a/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py +++ b/plugins/hydra_submitit_launcher/hydra_plugins/hydra_s...
{"golden_diff": "diff --git a/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py b/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py\n--- a/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py\n+++ b/plugins/hydra_submitit_launcher/hy...
1,916
380
gh_patches_debug_35574
rasdani/github-patches
git_diff
SciTools__cartopy-1837
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Backport NaturalEarth url change in release 0.18 and 0.19 ? It should be great, if possible, to backport the change of NaturalEarth url (done in this [commit](https://github.com/SciTools/cartopy/commit/af814c...
diff --git a/tools/cartopy_feature_download.py b/tools/cartopy_feature_download.py --- a/tools/cartopy_feature_download.py +++ b/tools/cartopy_feature_download.py @@ -10,19 +10,24 @@ For detail on how to use this tool, execute it with the `-h` option: - python download.py -h + python cartopy_feature_download...
{"golden_diff": "diff --git a/tools/cartopy_feature_download.py b/tools/cartopy_feature_download.py\n--- a/tools/cartopy_feature_download.py\n+++ b/tools/cartopy_feature_download.py\n@@ -10,19 +10,24 @@\n \n For detail on how to use this tool, execute it with the `-h` option:\n \n- python download.py -h\n+ python...
1,816
589
gh_patches_debug_10586
rasdani/github-patches
git_diff
pyro-ppl__pyro-2014
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cholesky issue in HMC In PyTorch, if Cholesky issue happens, a Runtime Error will be raised (instead of returning `nan`) regarding singular matrix. So it will be difficult to run MCMC with gaussian process ke...
diff --git a/pyro/ops/integrator.py b/pyro/ops/integrator.py --- a/pyro/ops/integrator.py +++ b/pyro/ops/integrator.py @@ -70,7 +70,16 @@ z_keys, z_nodes = zip(*z.items()) for node in z_nodes: node.requires_grad_(True) - potential_energy = potential_fn(z) + try: + potential_energy = pote...
{"golden_diff": "diff --git a/pyro/ops/integrator.py b/pyro/ops/integrator.py\n--- a/pyro/ops/integrator.py\n+++ b/pyro/ops/integrator.py\n@@ -70,7 +70,16 @@\n z_keys, z_nodes = zip(*z.items())\n for node in z_nodes:\n node.requires_grad_(True)\n- potential_energy = potential_fn(z)\n+ try:\n+ ...
1,635
200
gh_patches_debug_12638
rasdani/github-patches
git_diff
Kinto__kinto-1850
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Migrate to JSONschema Draft v7 Currently we use Draft4. The library that we use supports Draft7 https://json-schema.org/specification.html The idea would be: * to use `Draft7Validator` instead of `Draf...
diff --git a/kinto/schema_validation.py b/kinto/schema_validation.py --- a/kinto/schema_validation.py +++ b/kinto/schema_validation.py @@ -1,5 +1,5 @@ import colander -from jsonschema import Draft4Validator, ValidationError, SchemaError, RefResolutionError, validate +from jsonschema import Draft7Validator, ValidationE...
{"golden_diff": "diff --git a/kinto/schema_validation.py b/kinto/schema_validation.py\n--- a/kinto/schema_validation.py\n+++ b/kinto/schema_validation.py\n@@ -1,5 +1,5 @@\n import colander\n-from jsonschema import Draft4Validator, ValidationError, SchemaError, RefResolutionError, validate\n+from jsonschema import Draft...
1,414
161
gh_patches_debug_12854
rasdani/github-patches
git_diff
librosa__librosa-1457
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update show_versions to match current dependencies **Describe the bug** Looks like we forgot to revise the list of modules checked by `show_versions()` in the 0.9.0 release. This isn't a major problem, bu...
diff --git a/librosa/version.py b/librosa/version.py --- a/librosa/version.py +++ b/librosa/version.py @@ -38,18 +38,26 @@ "soundfile", "resampy", "numba", + "pooch", + "packaging" ] extra_deps = [ "numpydoc", "sphinx", "sphinx_rtd_theme", ...
{"golden_diff": "diff --git a/librosa/version.py b/librosa/version.py\n--- a/librosa/version.py\n+++ b/librosa/version.py\n@@ -38,18 +38,26 @@\n \"soundfile\",\n \"resampy\",\n \"numba\",\n+ \"pooch\",\n+ \"packaging\"\n ]\n \n extra_deps = [\n \"numpydoc\",\n ...
1,014
203
gh_patches_debug_10338
rasdani/github-patches
git_diff
digitalfabrik__integreat-cms-449
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Region list menu points to api ### Describe the Bug <!-- A clear and concise description of what the bug is. --> The menu item for regions points to the region api and not the region list. ### Steps to R...
diff --git a/src/api/urls.py b/src/api/urls.py --- a/src/api/urls.py +++ b/src/api/urls.py @@ -17,10 +17,10 @@ from .v3.single_page import single_page urlpatterns = [ - url(r'regions/$', regions, name='regions'), - url(r'regions/live/$', liveregions, name='liveregions'), - url(r'regions/hidden/$', hiddenre...
{"golden_diff": "diff --git a/src/api/urls.py b/src/api/urls.py\n--- a/src/api/urls.py\n+++ b/src/api/urls.py\n@@ -17,10 +17,10 @@\n from .v3.single_page import single_page\n \n urlpatterns = [\n- url(r'regions/$', regions, name='regions'),\n- url(r'regions/live/$', liveregions, name='liveregions'),\n- url(r'r...
1,059
212
gh_patches_debug_2228
rasdani/github-patches
git_diff
rucio__rucio-2492
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Issue in client_extract download Motivation ---------- Modification ------------ --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may con...
diff --git a/lib/rucio/vcsversion.py b/lib/rucio/vcsversion.py --- a/lib/rucio/vcsversion.py +++ b/lib/rucio/vcsversion.py @@ -4,8 +4,8 @@ ''' VERSION_INFO = { 'final': True, - 'version': '1.19.5', - 'branch_nick': 'patch-0-1_19_5_preparation', - 'revision_id': '9e14d56c9d958e5348b19ddc7e5fa45d4a778807'...
{"golden_diff": "diff --git a/lib/rucio/vcsversion.py b/lib/rucio/vcsversion.py\n--- a/lib/rucio/vcsversion.py\n+++ b/lib/rucio/vcsversion.py\n@@ -4,8 +4,8 @@\n '''\n VERSION_INFO = {\n 'final': True,\n- 'version': '1.19.5',\n- 'branch_nick': 'patch-0-1_19_5_preparation',\n- 'revision_id': '9e14d56c9d958e5...
407
252
gh_patches_debug_16416
rasdani/github-patches
git_diff
pre-commit__pre-commit-1094
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Docker language fails on Windows - os.getuid() [`docker_cmd`](https://github.com/pre-commit/pre-commit/blob/0cf2638b3b6a2cfde89cb7013e61b2d4a3e12875/pre_commit/languages/docker.py#L80) in languages/docker.py ...
diff --git a/pre_commit/languages/docker.py b/pre_commit/languages/docker.py --- a/pre_commit/languages/docker.py +++ b/pre_commit/languages/docker.py @@ -73,11 +73,18 @@ os.mkdir(directory) +def get_docker_user(): # pragma: windows no cover + try: + return '{}:{}'.format(os.getuid(), os.getgid(...
{"golden_diff": "diff --git a/pre_commit/languages/docker.py b/pre_commit/languages/docker.py\n--- a/pre_commit/languages/docker.py\n+++ b/pre_commit/languages/docker.py\n@@ -73,11 +73,18 @@\n os.mkdir(directory)\n \n \n+def get_docker_user(): # pragma: windows no cover\n+ try:\n+ return '{}:{}'.form...
1,720
219
gh_patches_debug_24309
rasdani/github-patches
git_diff
openstates__openstates-scrapers-1356
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- WV: subcommittees treated as full committees Hello, So, with WV, the subcommittees (e.g., Finance subcommittees A, B, C) are not identified as a subcommittee. I know WV is a [round C state](https://gith...
diff --git a/openstates/wv/committees.py b/openstates/wv/committees.py --- a/openstates/wv/committees.py +++ b/openstates/wv/committees.py @@ -8,6 +8,14 @@ class WVCommitteeScraper(CommitteeScraper): jurisdiction = "wv" + # Manually resolved links between subcommittees and parent committees. + subcommitte...
{"golden_diff": "diff --git a/openstates/wv/committees.py b/openstates/wv/committees.py\n--- a/openstates/wv/committees.py\n+++ b/openstates/wv/committees.py\n@@ -8,6 +8,14 @@\n class WVCommitteeScraper(CommitteeScraper):\n jurisdiction = \"wv\"\n \n+ # Manually resolved links between subcommittees and parent co...
1,454
332
gh_patches_debug_9551
rasdani/github-patches
git_diff
airctic__icevision-539
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- EfficientDet images_size has to be divisible by 128 ## 📓 Documentation Update **What part of documentation was unclear or wrong?** It has to be clear that the image size for the efficientdet model has to b...
diff --git a/icevision/models/efficientdet/model.py b/icevision/models/efficientdet/model.py --- a/icevision/models/efficientdet/model.py +++ b/icevision/models/efficientdet/model.py @@ -20,7 +20,7 @@ [this](https://github.com/rwightman/efficientdet-pytorch#models) table. num_classes: Number of cl...
{"golden_diff": "diff --git a/icevision/models/efficientdet/model.py b/icevision/models/efficientdet/model.py\n--- a/icevision/models/efficientdet/model.py\n+++ b/icevision/models/efficientdet/model.py\n@@ -20,7 +20,7 @@\n [this](https://github.com/rwightman/efficientdet-pytorch#models) table.\n num...
919
153
gh_patches_debug_17672
rasdani/github-patches
git_diff
facebookresearch__hydra-234
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Better error message if config structure passed to instantiate is invalid. # 🐛 Bug In [common patterns#creating objects](https://cli.dev/docs/patterns/objects), if the `params` are mistakenly valued with ...
diff --git a/hydra/utils.py b/hydra/utils.py --- a/hydra/utils.py +++ b/hydra/utils.py @@ -1,7 +1,7 @@ # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import logging.config -from omegaconf import OmegaConf +from omegaconf import OmegaConf, DictConfig # pylint: disable=C0103 log = logging....
{"golden_diff": "diff --git a/hydra/utils.py b/hydra/utils.py\n--- a/hydra/utils.py\n+++ b/hydra/utils.py\n@@ -1,7 +1,7 @@\n # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n import logging.config\n \n-from omegaconf import OmegaConf\n+from omegaconf import OmegaConf, DictConfig\n \n # pylint: di...
1,539
203
gh_patches_debug_29306
rasdani/github-patches
git_diff
saleor__saleor-2827
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CustomJsonEncoder drops currency information from Money instance Usually, we are using `settings.DEFAULT_CURRENCY` all over the place, however, there can be a bug, where `Money` is saved into `JSONField`, and...
diff --git a/saleor/core/utils/json_serializer.py b/saleor/core/utils/json_serializer.py --- a/saleor/core/utils/json_serializer.py +++ b/saleor/core/utils/json_serializer.py @@ -1,8 +1,12 @@ +import json + +from django.core.serializers.base import DeserializationError from django.core.serializers.json import ( - D...
{"golden_diff": "diff --git a/saleor/core/utils/json_serializer.py b/saleor/core/utils/json_serializer.py\n--- a/saleor/core/utils/json_serializer.py\n+++ b/saleor/core/utils/json_serializer.py\n@@ -1,8 +1,12 @@\n+import json\n+\n+from django.core.serializers.base import DeserializationError\n from django.core.serializ...
457
444
gh_patches_debug_13540
rasdani/github-patches
git_diff
bokeh__bokeh-7939
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Using on_event with string names in Python2.7 As discovered in #7893, trying to set `on_event` with a string (i.e. `"tap"` instead of `events.Tap`) currently fails with: ``` python =======================...
diff --git a/bokeh/util/callback_manager.py b/bokeh/util/callback_manager.py --- a/bokeh/util/callback_manager.py +++ b/bokeh/util/callback_manager.py @@ -4,6 +4,8 @@ ''' from __future__ import absolute_import +from six import string_types + from ..events import Event from ..util.future import get_param_info, for...
{"golden_diff": "diff --git a/bokeh/util/callback_manager.py b/bokeh/util/callback_manager.py\n--- a/bokeh/util/callback_manager.py\n+++ b/bokeh/util/callback_manager.py\n@@ -4,6 +4,8 @@\n '''\n from __future__ import absolute_import\n \n+from six import string_types\n+\n from ..events import Event\n from ..util.future...
1,803
165
gh_patches_debug_6987
rasdani/github-patches
git_diff
rasterio__rasterio-750
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- -f does not work as expected in rio-warp Running on a preexisting file ``` » rio warp tests/data/RGB.byte.tif /tmp/hi.tif Error: Could not open file : file exists and won't be overwritten without use of the ...
diff --git a/rasterio/rio/helpers.py b/rasterio/rio/helpers.py --- a/rasterio/rio/helpers.py +++ b/rasterio/rio/helpers.py @@ -88,7 +88,7 @@ resolved_output): raise FileOverwriteError( "file exists and won't be overwritten without use of the " - "`-f` or `-o` options.") + ...
{"golden_diff": "diff --git a/rasterio/rio/helpers.py b/rasterio/rio/helpers.py\n--- a/rasterio/rio/helpers.py\n+++ b/rasterio/rio/helpers.py\n@@ -88,7 +88,7 @@\n resolved_output):\n raise FileOverwriteError(\n \"file exists and won't be overwritten without use of the \"\n- \"...
1,361
133
gh_patches_debug_8115
rasdani/github-patches
git_diff
ocadotechnology__aimmo-51
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Submitting empty code leads to server error When sending empty program, we are getting: Traceback: File "/Library/Python/2.7/site-packages/django/core/handlers/base.py" in get_response 1. ...
diff --git a/simulation/avatar/avatar_wrapper.py b/simulation/avatar/avatar_wrapper.py --- a/simulation/avatar/avatar_wrapper.py +++ b/simulation/avatar/avatar_wrapper.py @@ -60,9 +60,9 @@ self.code = code try: exec(code) + self.avatar = Avatar() except Exception as ex...
{"golden_diff": "diff --git a/simulation/avatar/avatar_wrapper.py b/simulation/avatar/avatar_wrapper.py\n--- a/simulation/avatar/avatar_wrapper.py\n+++ b/simulation/avatar/avatar_wrapper.py\n@@ -60,9 +60,9 @@\n self.code = code\n try:\n exec(code)\n+ self.avatar = Avatar()\n ...
1,130
124
gh_patches_debug_1611
rasdani/github-patches
git_diff
google__mobly-311
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Exceptions in `setup_test` should leave the test in `ERROR` status Regardless of the type of the exception, `setup_test` error should cause `ERROR` status. This is different from a test method. In a test ...
diff --git a/mobly/signals.py b/mobly/signals.py --- a/mobly/signals.py +++ b/mobly/signals.py @@ -46,6 +46,10 @@ return 'Details=%s, Extras=%s' % (self.details, self.extras) +class TestError(TestSignal): + """Raised when a test has an unexpected error.""" + + class TestFailure(TestSignal): """Rai...
{"golden_diff": "diff --git a/mobly/signals.py b/mobly/signals.py\n--- a/mobly/signals.py\n+++ b/mobly/signals.py\n@@ -46,6 +46,10 @@\n return 'Details=%s, Extras=%s' % (self.details, self.extras)\n \n \n+class TestError(TestSignal):\n+ \"\"\"Raised when a test has an unexpected error.\"\"\"\n+\n+\n class Te...
942
106
gh_patches_debug_37219
rasdani/github-patches
git_diff
streamlink__streamlink-3290
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bfmtv - No playable streams found on this URL <!-- Thanks for reporting a plugin issue! USE THE TEMPLATE. Otherwise your plugin issue may be rejected. First, see the contribution guidelines: https://git...
diff --git a/src/streamlink/plugins/bfmtv.py b/src/streamlink/plugins/bfmtv.py --- a/src/streamlink/plugins/bfmtv.py +++ b/src/streamlink/plugins/bfmtv.py @@ -1,45 +1,46 @@ +import logging import re from streamlink.plugin import Plugin from streamlink.plugins.brightcove import BrightcovePlayer -from streamlink.str...
{"golden_diff": "diff --git a/src/streamlink/plugins/bfmtv.py b/src/streamlink/plugins/bfmtv.py\n--- a/src/streamlink/plugins/bfmtv.py\n+++ b/src/streamlink/plugins/bfmtv.py\n@@ -1,45 +1,46 @@\n+import logging\n import re\n \n from streamlink.plugin import Plugin\n from streamlink.plugins.brightcove import BrightcovePl...
1,353
748
gh_patches_debug_29603
rasdani/github-patches
git_diff
bridgecrewio__checkov-3976
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Suppression comment in Dockerfile skips more checks than it should **Describe the issue** I tried to skip CKV_DOCKER_9 by adding a suppression comment into my Dockerfile, but it turned out that CKV_DOCKER_5 ...
diff --git a/checkov/dockerfile/base_registry.py b/checkov/dockerfile/base_registry.py --- a/checkov/dockerfile/base_registry.py +++ b/checkov/dockerfile/base_registry.py @@ -33,13 +33,16 @@ results: "dict[BaseCheck, _CheckResult]" = {} if not entity: return results + + skipped_che...
{"golden_diff": "diff --git a/checkov/dockerfile/base_registry.py b/checkov/dockerfile/base_registry.py\n--- a/checkov/dockerfile/base_registry.py\n+++ b/checkov/dockerfile/base_registry.py\n@@ -33,13 +33,16 @@\n results: \"dict[BaseCheck, _CheckResult]\" = {}\n if not entity:\n return resul...
1,908
373
gh_patches_debug_27707
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-8345
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- puregym_gb spider broken It looks like the PureGym spider (puregym_gb.py) is broken. For the last few weeks it was consistently returning 303 results, but then on 2024-05-04 the number dropped to 1. Looking a...
diff --git a/locations/spiders/puregym_gb.py b/locations/spiders/puregym_gb.py --- a/locations/spiders/puregym_gb.py +++ b/locations/spiders/puregym_gb.py @@ -1,28 +1,28 @@ +from urllib.parse import parse_qs, urlparse + from scrapy.spiders import SitemapSpider -from locations.google_url import extract_google_positio...
{"golden_diff": "diff --git a/locations/spiders/puregym_gb.py b/locations/spiders/puregym_gb.py\n--- a/locations/spiders/puregym_gb.py\n+++ b/locations/spiders/puregym_gb.py\n@@ -1,28 +1,28 @@\n+from urllib.parse import parse_qs, urlparse\n+\n from scrapy.spiders import SitemapSpider\n \n-from locations.google_url impo...
848
511
gh_patches_debug_15301
rasdani/github-patches
git_diff
conda__conda-5404
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `cli.python_api` captures `stdout` from `cli.common.confirm_yn` `cli.python_api.run_command` captures any output to `stdout`/`stderr` via `common.io.captured`. This causes the user confirmation messages from ...
diff --git a/conda/cli/python_api.py b/conda/cli/python_api.py --- a/conda/cli/python_api.py +++ b/conda/cli/python_api.py @@ -35,7 +35,10 @@ def run_command(command, *arguments, **kwargs): - """ + """Runs a conda command in-process with a given set of command-line interface arguments. + + Differences fro...
{"golden_diff": "diff --git a/conda/cli/python_api.py b/conda/cli/python_api.py\n--- a/conda/cli/python_api.py\n+++ b/conda/cli/python_api.py\n@@ -35,7 +35,10 @@\n \n \n def run_command(command, *arguments, **kwargs):\n- \"\"\"\n+ \"\"\"Runs a conda command in-process with a given set of command-line interface ar...
1,784
195
gh_patches_debug_34298
rasdani/github-patches
git_diff
electricitymaps__electricitymaps-contrib-1398
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add price to Turkey I am not sure which of the ticker [prices](https://www.epias.com.tr/en) to use but section 6.7.3 BLOCK ORDER BOOK in [this guide](https://www.epias.com.tr/wp-content/uploads/2017/06/INTRAD...
diff --git a/parsers/TR.py b/parsers/TR.py --- a/parsers/TR.py +++ b/parsers/TR.py @@ -4,12 +4,17 @@ import re import json import arrow +from bs4 import BeautifulSoup +import datetime as dt SEARCH_DATA = re.compile(r'var gunlukUretimEgrisiData = (?P<data>.*);') TIMEZONE = 'Europe/Istanbul' URL = 'https://ytbs.t...
{"golden_diff": "diff --git a/parsers/TR.py b/parsers/TR.py\n--- a/parsers/TR.py\n+++ b/parsers/TR.py\n@@ -4,12 +4,17 @@\n import re\n import json\n import arrow\n+from bs4 import BeautifulSoup\n+import datetime as dt\n \n SEARCH_DATA = re.compile(r'var gunlukUretimEgrisiData = (?P<data>.*);')\n TIMEZONE = 'Europe/Ista...
1,772
630
gh_patches_debug_13560
rasdani/github-patches
git_diff
ydataai__ydata-profiling-1109
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cramer correlation matrix is not computed /usr/local/lib/python3.7/dist-packages/pandas_profiling/model/correlations.py:61: UserWarning:There was an attempt to calculate the cramers correlation, but this fail...
diff --git a/src/pandas_profiling/model/pandas/correlations_pandas.py b/src/pandas_profiling/model/pandas/correlations_pandas.py --- a/src/pandas_profiling/model/pandas/correlations_pandas.py +++ b/src/pandas_profiling/model/pandas/correlations_pandas.py @@ -97,9 +97,12 @@ for name1, name2 in itertools.combinati...
{"golden_diff": "diff --git a/src/pandas_profiling/model/pandas/correlations_pandas.py b/src/pandas_profiling/model/pandas/correlations_pandas.py\n--- a/src/pandas_profiling/model/pandas/correlations_pandas.py\n+++ b/src/pandas_profiling/model/pandas/correlations_pandas.py\n@@ -97,9 +97,12 @@\n \n for name1, name2 ...
1,876
229
gh_patches_debug_477
rasdani/github-patches
git_diff
scrapy__scrapy-5786
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pypy3-pinned OpenSSL error Yet another CI issue, visible in https://github.com/scrapy/scrapy/actions/runs/3849823417/jobs/6559259481 > /home/runner/work/scrapy/scrapy/.tox/pypy3-pinned/site-packages/crypto...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ install_requires = [ 'Twisted>=18.9.0', - 'cryptography>=3.3', + 'cryptography>=3.4.6', 'cssselect>=0.9.1', 'itemloaders>=1.0.1', 'parsel>=1.5.0',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -19,7 +19,7 @@\n \n install_requires = [\n 'Twisted>=18.9.0',\n- 'cryptography>=3.3',\n+ 'cryptography>=3.4.6',\n 'cssselect>=0.9.1',\n 'itemloaders>=1.0.1',\n 'parsel>=1.5.0',\n", "issue": "pypy3-pinned OpenSSL ...
1,421
105
gh_patches_debug_28254
rasdani/github-patches
git_diff
airctic__icevision-722
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Rename EfficientDet Backbones rename EfficientDet Backbones by deleting the `efficientdet_` part from the names: no need to reference that because the model already suggests that --- END ISSUE --- Below a...
diff --git a/icevision/models/ross/efficientdet/backbones.py b/icevision/models/ross/efficientdet/backbones.py --- a/icevision/models/ross/efficientdet/backbones.py +++ b/icevision/models/ross/efficientdet/backbones.py @@ -1,35 +1,35 @@ __all__ = [ - "tf_efficientdet_lite0", - "efficientdet_d0", - "efficientd...
{"golden_diff": "diff --git a/icevision/models/ross/efficientdet/backbones.py b/icevision/models/ross/efficientdet/backbones.py\n--- a/icevision/models/ross/efficientdet/backbones.py\n+++ b/icevision/models/ross/efficientdet/backbones.py\n@@ -1,35 +1,35 @@\n __all__ = [\n- \"tf_efficientdet_lite0\",\n- \"efficien...
655
600
gh_patches_debug_32768
rasdani/github-patches
git_diff
cisagov__manage.get.gov-972
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fixtures loads 8 times on docker-compose up ### Current Behavior When starting up the application, the console log shows that the fixtures file is executed 8 times in a row. However, current logic on the fix...
diff --git a/src/registrar/management/commands/load.py b/src/registrar/management/commands/load.py --- a/src/registrar/management/commands/load.py +++ b/src/registrar/management/commands/load.py @@ -2,6 +2,7 @@ from django.core.management.base import BaseCommand from auditlog.context import disable_auditlog # type...
{"golden_diff": "diff --git a/src/registrar/management/commands/load.py b/src/registrar/management/commands/load.py\n--- a/src/registrar/management/commands/load.py\n+++ b/src/registrar/management/commands/load.py\n@@ -2,6 +2,7 @@\n \n from django.core.management.base import BaseCommand\n from auditlog.context import d...
1,245
461
gh_patches_debug_12464
rasdani/github-patches
git_diff
pre-commit__pre-commit-1700
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Rbenv default ruby issue on install I am trying to install MDL v0.11.0 i get the following error during install ``` pre-commit [INFO] Installing environment for git://github.com/markdownlint/markdownli...
diff --git a/pre_commit/languages/ruby.py b/pre_commit/languages/ruby.py --- a/pre_commit/languages/ruby.py +++ b/pre_commit/languages/ruby.py @@ -52,7 +52,6 @@ else: # pragma: win32 no cover patches += ( ('RBENV_ROOT', venv), - ('RBENV_VERSION', language_version), ( ...
{"golden_diff": "diff --git a/pre_commit/languages/ruby.py b/pre_commit/languages/ruby.py\n--- a/pre_commit/languages/ruby.py\n+++ b/pre_commit/languages/ruby.py\n@@ -52,7 +52,6 @@\n else: # pragma: win32 no cover\n patches += (\n ('RBENV_ROOT', venv),\n- ('RBENV_VERSION', language_v...
1,948
173
gh_patches_debug_1646
rasdani/github-patches
git_diff
dotkom__onlineweb4-2553
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cant delete mails through REST API endpoints The endpoint to remove mails are fucked :) --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs...
diff --git a/apps/authentication/api/views.py b/apps/authentication/api/views.py --- a/apps/authentication/api/views.py +++ b/apps/authentication/api/views.py @@ -105,6 +105,7 @@ }, status=status.HTTP_400_BAD_REQUEST, ) + super().destroy(request, *args, **kwargs) ...
{"golden_diff": "diff --git a/apps/authentication/api/views.py b/apps/authentication/api/views.py\n--- a/apps/authentication/api/views.py\n+++ b/apps/authentication/api/views.py\n@@ -105,6 +105,7 @@\n },\n status=status.HTTP_400_BAD_REQUEST,\n )\n+ super().destroy(requ...
1,756
88
gh_patches_debug_30213
rasdani/github-patches
git_diff
lutris__lutris-528
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Lutris 0.4.5 doesn’t launch (AssertionError) I'm using Linux Mint 18.1 (my de is Mate if that's any help) and I received the update for Lutris 0.4.5. I tried to launch Lutris after that and nothing seemed to ...
diff --git a/lutris/util/desktopapps.py b/lutris/util/desktopapps.py --- a/lutris/util/desktopapps.py +++ b/lutris/util/desktopapps.py @@ -18,6 +18,7 @@ "fs-uae-arcade", "PCSX2", "ppsspp", "qchdman", "qmc2-sdlmame", "qmc2-arcade", "sc-controller", "epsxe" ) + IGNORED_EXECUTABLES = ( "lutris", "steam" ...
{"golden_diff": "diff --git a/lutris/util/desktopapps.py b/lutris/util/desktopapps.py\n--- a/lutris/util/desktopapps.py\n+++ b/lutris/util/desktopapps.py\n@@ -18,6 +18,7 @@\n \"fs-uae-arcade\", \"PCSX2\", \"ppsspp\", \"qchdman\", \"qmc2-sdlmame\", \"qmc2-arcade\",\n \"sc-controller\", \"epsxe\"\n )\n+\n IGNORED...
1,974
500
gh_patches_debug_5467
rasdani/github-patches
git_diff
openstates__openstates-scrapers-1173
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- TN: 109th Session, Legislators, Upper - Senator name extraction fails for district 19 Trying to run the scraper locally, I encountered the following exception for TN's [19th senate district in the 109th gener...
diff --git a/openstates/tn/legislators.py b/openstates/tn/legislators.py --- a/openstates/tn/legislators.py +++ b/openstates/tn/legislators.py @@ -76,7 +76,7 @@ member_page = lxml.html.fromstring(member_page) try: - name = member_page.xpath('body/div/div/h1/text()')[0] + ...
{"golden_diff": "diff --git a/openstates/tn/legislators.py b/openstates/tn/legislators.py\n--- a/openstates/tn/legislators.py\n+++ b/openstates/tn/legislators.py\n@@ -76,7 +76,7 @@\n \n member_page = lxml.html.fromstring(member_page)\n try:\n- name = member_page.xpath('body/div/di...
1,653
137
gh_patches_debug_30388
rasdani/github-patches
git_diff
facebookresearch__hydra-185
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- move hydra generated files into an output directory relative to the job dir automatically generated files like config.yaml, overrides.yaml, and others can go here. Also additional debug information about the...
diff --git a/hydra/plugins/common/utils.py b/hydra/plugins/common/utils.py --- a/hydra/plugins/common/utils.py +++ b/hydra/plugins/common/utils.py @@ -5,6 +5,7 @@ import os import re import sys +from hydra._internal.pathlib import Path from time import strftime, localtime import six @@ -39,8 +40,9 @@ ...
{"golden_diff": "diff --git a/hydra/plugins/common/utils.py b/hydra/plugins/common/utils.py\n--- a/hydra/plugins/common/utils.py\n+++ b/hydra/plugins/common/utils.py\n@@ -5,6 +5,7 @@\n import os\n import re\n import sys\n+from hydra._internal.pathlib import Path\n from time import strftime, localtime\n \n import six\n@...
1,951
454
gh_patches_debug_3144
rasdani/github-patches
git_diff
cupy__cupy-2588
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Stream in the context-manager form is not used in `ElementwiseKernel` or `ReductionKernel` This is actually a bug reported back in #1695 that unfortunately went unnoticed. In `examples/stream/map_reduce.p...
diff --git a/examples/stream/map_reduce.py b/examples/stream/map_reduce.py --- a/examples/stream/map_reduce.py +++ b/examples/stream/map_reduce.py @@ -19,8 +19,8 @@ # Map for stream in map_streams: with stream: - x = rand.normal(size=(1, 1024 * 256)) - y = rand.normal(size=(1024 * 256, 1)) + ...
{"golden_diff": "diff --git a/examples/stream/map_reduce.py b/examples/stream/map_reduce.py\n--- a/examples/stream/map_reduce.py\n+++ b/examples/stream/map_reduce.py\n@@ -19,8 +19,8 @@\n # Map\n for stream in map_streams:\n with stream:\n- x = rand.normal(size=(1, 1024 * 256))\n- y = rand.normal(size=...
1,192
157
gh_patches_debug_38311
rasdani/github-patches
git_diff
conan-io__conan-center-index-3991
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [package] resiprocate/1.12.0: Error in autotools configuration There are several errors in the recipe, especially in autotools configuration step. https://github.com/conan-io/conan-center-index/blob/c68b60...
diff --git a/recipes/resiprocate/all/conanfile.py b/recipes/resiprocate/all/conanfile.py --- a/recipes/resiprocate/all/conanfile.py +++ b/recipes/resiprocate/all/conanfile.py @@ -29,13 +29,22 @@ def _source_subfolder(self): return "source_subfolder" - def requirements(self): + def config_options(s...
{"golden_diff": "diff --git a/recipes/resiprocate/all/conanfile.py b/recipes/resiprocate/all/conanfile.py\n--- a/recipes/resiprocate/all/conanfile.py\n+++ b/recipes/resiprocate/all/conanfile.py\n@@ -29,13 +29,22 @@\n def _source_subfolder(self):\n return \"source_subfolder\"\n \n- def requirements(self):...
1,760
670
gh_patches_debug_19930
rasdani/github-patches
git_diff
matrix-org__synapse-11757
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- sample doc in #11561 is malformatted see https://github.com/matrix-org/synapse/pull/11561#pullrequestreview-851817482 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more o...
diff --git a/synapse/config/api.py b/synapse/config/api.py --- a/synapse/config/api.py +++ b/synapse/config/api.py @@ -61,10 +61,18 @@ #additional_event_types: # - org.example.custom.event.type - # By default when puppeting another user, the user who has created the - # access t...
{"golden_diff": "diff --git a/synapse/config/api.py b/synapse/config/api.py\n--- a/synapse/config/api.py\n+++ b/synapse/config/api.py\n@@ -61,10 +61,18 @@\n #additional_event_types:\n # - org.example.custom.event.type\n \n- # By default when puppeting another user, the user who has created...
1,848
320
gh_patches_debug_4573
rasdani/github-patches
git_diff
pre-commit__pre-commit-235
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Some versions of git don't create .git/hooks directory Noticed here: https://github.com/victorlin/bugbuzz-python/pull/1#issuecomment-104971132 --- END ISSUE --- Below are some code segments, each from a re...
diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py --- a/pre_commit/commands/install_uninstall.py +++ b/pre_commit/commands/install_uninstall.py @@ -48,6 +48,9 @@ hook_path = runner.get_hook_path(hook_type) legacy_path = hook_path + '.legacy' + if not os.path...
{"golden_diff": "diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py\n--- a/pre_commit/commands/install_uninstall.py\n+++ b/pre_commit/commands/install_uninstall.py\n@@ -48,6 +48,9 @@\n hook_path = runner.get_hook_path(hook_type)\n legacy_path = hook_path + '.legacy'...
1,446
135
gh_patches_debug_33227
rasdani/github-patches
git_diff
rasterio__rasterio-1910
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Should rio clip fill nodata at borders? Hello lovely people :hugs:, I'm using `rio clip` to quickly cut out z10 tiles for raster image. The raster image is not divisible by the z10 tiles, so I expect the b...
diff --git a/rasterio/rio/clip.py b/rasterio/rio/clip.py --- a/rasterio/rio/clip.py +++ b/rasterio/rio/clip.py @@ -50,9 +50,24 @@ @projection_projected_opt @options.overwrite_opt @options.creation_options +@click.option( + "--with-complement/--without-complement", + default=False, + help="Include the relati...
{"golden_diff": "diff --git a/rasterio/rio/clip.py b/rasterio/rio/clip.py\n--- a/rasterio/rio/clip.py\n+++ b/rasterio/rio/clip.py\n@@ -50,9 +50,24 @@\n @projection_projected_opt\n @options.overwrite_opt\n @options.creation_options\n+@click.option(\n+ \"--with-complement/--without-complement\",\n+ default=False,\n...
1,884
487
gh_patches_debug_2733
rasdani/github-patches
git_diff
GeotrekCE__Geotrek-admin-805
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ADMIN - Tronçon bouclant sur lui-même Impossible de saisir le CIRCUIT DES LACS correctement. Renvoie souvent une 504 BAD GATEWAY quand on enregistre. L'itinéraire a pourtant été modifié mais différemment de l...
diff --git a/geotrek/core/forms.py b/geotrek/core/forms.py --- a/geotrek/core/forms.py +++ b/geotrek/core/forms.py @@ -44,7 +44,6 @@ fields = CommonForm.Meta.fields + ['topology'] MEDIA_JS = ("core/dijkstra.js", - "core/leaflet-geomutils.js", "core/multipath.js", ...
{"golden_diff": "diff --git a/geotrek/core/forms.py b/geotrek/core/forms.py\n--- a/geotrek/core/forms.py\n+++ b/geotrek/core/forms.py\n@@ -44,7 +44,6 @@\n fields = CommonForm.Meta.fields + ['topology']\n \n MEDIA_JS = (\"core/dijkstra.js\",\n- \"core/leaflet-geomutils.js\",\n ...
1,194
104
gh_patches_debug_943
rasdani/github-patches
git_diff
microsoft__ptvsd-259
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Debugging of modules using -m is broken Used to be able to debug Flask & other code using the `-m` flag. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these fil...
diff --git a/ptvsd/debugger.py b/ptvsd/debugger.py --- a/ptvsd/debugger.py +++ b/ptvsd/debugger.py @@ -27,7 +27,7 @@ def _run_module(address, modname): filename = modname + ':' argv = _run_argv(address, filename) - argv.append('--module') + argv.insert(argv.index('--file'), '--module') _run(argv)
{"golden_diff": "diff --git a/ptvsd/debugger.py b/ptvsd/debugger.py\n--- a/ptvsd/debugger.py\n+++ b/ptvsd/debugger.py\n@@ -27,7 +27,7 @@\n def _run_module(address, modname):\n filename = modname + ':'\n argv = _run_argv(address, filename)\n- argv.append('--module')\n+ argv.insert(argv.index('--file'), '--...
744
103
gh_patches_debug_8163
rasdani/github-patches
git_diff
microsoft__ptvsd-84
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Debugging modules (using -m switch) This is currently not supported --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --...
diff --git a/ptvsd/debugger.py b/ptvsd/debugger.py --- a/ptvsd/debugger.py +++ b/ptvsd/debugger.py @@ -19,11 +19,16 @@ import ptvsd.wrapper import pydevd - sys.argv[1:0] = [ + args = [ '--port', str(port_num), '--client', '127.0.0.1', - '--file', filename, ...
{"golden_diff": "diff --git a/ptvsd/debugger.py b/ptvsd/debugger.py\n--- a/ptvsd/debugger.py\n+++ b/ptvsd/debugger.py\n@@ -19,11 +19,16 @@\n import ptvsd.wrapper\n import pydevd\n \n- sys.argv[1:0] = [\n+ args = [\n '--port', str(port_num),\n '--client', '127.0.0.1',\n- ...
542
185
gh_patches_debug_16822
rasdani/github-patches
git_diff
tough-dev-school__education-backend-560
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- User.DoesNotExist: User matching query does not exist. Sentry Issue: [EDUCATION-BACKEND-23](https://sentry.io/organizations/f213/issues/2200858697/?referrer=github_integration) ``` User.DoesNotExist: User ma...
diff --git a/src/app/tasks.py b/src/app/tasks.py --- a/src/app/tasks.py +++ b/src/app/tasks.py @@ -3,6 +3,7 @@ from anymail.exceptions import AnymailRequestsAPIError from django.apps import apps from django.conf import settings +from django.core.exceptions import ObjectDoesNotExist from requests.exceptions import R...
{"golden_diff": "diff --git a/src/app/tasks.py b/src/app/tasks.py\n--- a/src/app/tasks.py\n+++ b/src/app/tasks.py\n@@ -3,6 +3,7 @@\n from anymail.exceptions import AnymailRequestsAPIError\n from django.apps import apps\n from django.conf import settings\n+from django.core.exceptions import ObjectDoesNotExist\n from req...
1,175
196
gh_patches_debug_26342
rasdani/github-patches
git_diff
zalando__patroni-1535
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- features/steps/standby_cluster.py produces error under Windows Trying to execute: `>behave -i standby_cluster.feature` will produce error: ``` 2020-05-07 19:27:19,407 ERROR: Failed to execute ['c:userspas...
diff --git a/features/steps/standby_cluster.py b/features/steps/standby_cluster.py --- a/features/steps/standby_cluster.py +++ b/features/steps/standby_cluster.py @@ -10,7 +10,8 @@ WHERE application_name = '{0}' """ -callback = sys.executable + " features/callback2.py " +executable = sys.executable if os.name != 'n...
{"golden_diff": "diff --git a/features/steps/standby_cluster.py b/features/steps/standby_cluster.py\n--- a/features/steps/standby_cluster.py\n+++ b/features/steps/standby_cluster.py\n@@ -10,7 +10,8 @@\n WHERE application_name = '{0}'\n \"\"\"\n \n-callback = sys.executable + \" features/callback2.py \"\n+executable = s...
1,555
313
gh_patches_debug_654
rasdani/github-patches
git_diff
pex-tool__pex-2123
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.133 On the docket: + [x] python<=3.8 symlink with a suffix (eg 3.7m) can create a venv without a pythonX.Y symlink which breaks pex assumptions that pythonX.Y is always available #2119 --- END I...
diff --git a/pex/version.py b/pex/version.py --- a/pex/version.py +++ b/pex/version.py @@ -1,4 +1,4 @@ # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -__version__ = "2.1.132" +__version__ = "2.1.133"
{"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.132\"\n+__version__ = \"2.1.133\"\n",...
373
98
gh_patches_debug_5511
rasdani/github-patches
git_diff
napalm-automation__napalm-692
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pip >= 10.0.0 incompatibility I am not going to create these for every single napalm module... but did for https://github.com/napalm-automation/napalm-ansible/issues/123 where I also saw this issue pip 10...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,13 +1,9 @@ """setup.py file.""" -import uuid - from setuptools import setup, find_packages -from pip.req import parse_requirements - +with open("requirements.txt", "r") as fs: + reqs = [r for r in fs.read().splitlines() if (len(r) > 0 and not r...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,13 +1,9 @@\n \"\"\"setup.py file.\"\"\"\n-import uuid\n-\n from setuptools import setup, find_packages\n \n-from pip.req import parse_requirements\n-\n+with open(\"requirements.txt\", \"r\") as fs:\n+ reqs = [r for r in fs.read(...
839
155
gh_patches_debug_33129
rasdani/github-patches
git_diff
Kinto__kinto-1259
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- If id, schema or last_modified are marked as required, record can't be validated Because we pop those fields before validating them with the collection schema. We can either: * prevent those fields to be ...
diff --git a/kinto/views/records.py b/kinto/views/records.py --- a/kinto/views/records.py +++ b/kinto/views/records.py @@ -1,5 +1,3 @@ -import copy - import jsonschema from kinto.core import resource, utils from kinto.core.errors import raise_invalid @@ -55,15 +53,21 @@ if not schema or not asbool(settings....
{"golden_diff": "diff --git a/kinto/views/records.py b/kinto/views/records.py\n--- a/kinto/views/records.py\n+++ b/kinto/views/records.py\n@@ -1,5 +1,3 @@\n-import copy\n-\n import jsonschema\n from kinto.core import resource, utils\n from kinto.core.errors import raise_invalid\n@@ -55,15 +53,21 @@\n if not sch...
1,444
453
gh_patches_debug_7892
rasdani/github-patches
git_diff
pwr-Solaar__Solaar-23
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- no battery status on M510 mouse --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `lib/logitech/unifying_rece...
diff --git a/lib/logitech/unifying_receiver/hidpp10.py b/lib/logitech/unifying_receiver/hidpp10.py --- a/lib/logitech/unifying_receiver/hidpp10.py +++ b/lib/logitech/unifying_receiver/hidpp10.py @@ -94,8 +94,16 @@ reply = get_register(device, 'battery_status', 0x07) if reply: - battery_status = ord(reply[:1]) - ...
{"golden_diff": "diff --git a/lib/logitech/unifying_receiver/hidpp10.py b/lib/logitech/unifying_receiver/hidpp10.py\n--- a/lib/logitech/unifying_receiver/hidpp10.py\n+++ b/lib/logitech/unifying_receiver/hidpp10.py\n@@ -94,8 +94,16 @@\n \n \treply = get_register(device, 'battery_status', 0x07)\n \tif reply:\n-\t\tbatter...
1,733
252
gh_patches_debug_12366
rasdani/github-patches
git_diff
airctic__icevision-883
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add kwargs to EfficientDet model() method Add kwargs to EfficientDet model() method. This will allow to pass `pretrained_backbone` argument to EfficientDet `create_model_from_config()` method. That will preve...
diff --git a/icevision/models/ross/efficientdet/model.py b/icevision/models/ross/efficientdet/model.py --- a/icevision/models/ross/efficientdet/model.py +++ b/icevision/models/ross/efficientdet/model.py @@ -13,6 +13,7 @@ backbone: EfficientDetBackboneConfig, num_classes: int, img_size: int, + **kwargs...
{"golden_diff": "diff --git a/icevision/models/ross/efficientdet/model.py b/icevision/models/ross/efficientdet/model.py\n--- a/icevision/models/ross/efficientdet/model.py\n+++ b/icevision/models/ross/efficientdet/model.py\n@@ -13,6 +13,7 @@\n backbone: EfficientDetBackboneConfig,\n num_classes: int,\n img_s...
917
166
gh_patches_debug_1
rasdani/github-patches
git_diff
kartoza__prj.app-866
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Only one organisation can be created per account It seems that only one organisation can be created from a login account. The folks at Camptocamp have two separate organisations (companies) and are unable t...
diff --git a/django_project/core/settings/__init__.py b/django_project/core/settings/__init__.py --- a/django_project/core/settings/__init__.py +++ b/django_project/core/settings/__init__.py @@ -0,0 +1 @@ +# coding=utf-8
{"golden_diff": "diff --git a/django_project/core/settings/__init__.py b/django_project/core/settings/__init__.py\n--- a/django_project/core/settings/__init__.py\n+++ b/django_project/core/settings/__init__.py\n@@ -0,0 +1 @@\n+# coding=utf-8\n", "issue": "Only one organisation can be created per account \nIt seems that...
313
62