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_14809
rasdani/github-patches
git_diff
qtile__qtile-4065
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- All hooks in config will be subscribed and fired twice. ### The issue: ~~This is probably due to configuration testing syntax step.~~ ```python 'startup_complete': [<function xstartup_complete at 0x7f2...
diff --git a/libqtile/confreader.py b/libqtile/confreader.py --- a/libqtile/confreader.py +++ b/libqtile/confreader.py @@ -108,6 +108,14 @@ if hasattr(module, "__file__") and module.__file__ is not None: subpath = Path(module.__file__) + if subpath == path: + ...
{"golden_diff": "diff --git a/libqtile/confreader.py b/libqtile/confreader.py\n--- a/libqtile/confreader.py\n+++ b/libqtile/confreader.py\n@@ -108,6 +108,14 @@\n if hasattr(module, \"__file__\") and module.__file__ is not None:\n subpath = Path(module.__file__)\n \n+ if subpat...
1,970
191
gh_patches_debug_13656
rasdani/github-patches
git_diff
feast-dev__feast-2676
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- basicConfig is called at the module level ## Expected Behavior ``` import feast logging.basicConfig(level=level, format=FORMAT) logging.error("msg") ``` should print logging message according to `F...
diff --git a/sdk/python/feast/__init__.py b/sdk/python/feast/__init__.py --- a/sdk/python/feast/__init__.py +++ b/sdk/python/feast/__init__.py @@ -1,5 +1,3 @@ -import logging - from pkg_resources import DistributionNotFound, get_distribution from feast.infra.offline_stores.bigquery_source import BigQuerySource @@ -...
{"golden_diff": "diff --git a/sdk/python/feast/__init__.py b/sdk/python/feast/__init__.py\n--- a/sdk/python/feast/__init__.py\n+++ b/sdk/python/feast/__init__.py\n@@ -1,5 +1,3 @@\n-import logging\n-\n from pkg_resources import DistributionNotFound, get_distribution\n \n from feast.infra.offline_stores.bigquery_source i...
1,064
183
gh_patches_debug_1301
rasdani/github-patches
git_diff
vega__altair-1844
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix simple typo: packge -> package There is a small typo in setup.py. Should read package rather than packge. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of thes...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ def version(path): - """Obtain the packge version from a python file e.g. pkg/__init__.py + """Obtain the package version from a python file e.g. pkg/__init__.py See <https://packaging.python.org/en/latest/single_source_v...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -27,7 +27,7 @@\n \n \n def version(path):\n- \"\"\"Obtain the packge version from a python file e.g. pkg/__init__.py\n+ \"\"\"Obtain the package version from a python file e.g. pkg/__init__.py\n \n See <https://packaging.pyt...
1,242
98
gh_patches_debug_22059
rasdani/github-patches
git_diff
freedomofpress__securedrop-5559
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update removed `platform.linux_distribution` funtion call in Python 3.8 ## Description We are using [platform.linux_distribution](https://github.com/freedomofpress/securedrop/blob/4c73102ca9151a86a08396de4...
diff --git a/securedrop/source_app/api.py b/securedrop/source_app/api.py --- a/securedrop/source_app/api.py +++ b/securedrop/source_app/api.py @@ -1,5 +1,4 @@ import json -import platform from flask import Blueprint, current_app, make_response @@ -8,6 +7,10 @@ import version +with open("/etc/lsb-release", "r...
{"golden_diff": "diff --git a/securedrop/source_app/api.py b/securedrop/source_app/api.py\n--- a/securedrop/source_app/api.py\n+++ b/securedrop/source_app/api.py\n@@ -1,5 +1,4 @@\n import json\n-import platform\n \n from flask import Blueprint, current_app, make_response\n \n@@ -8,6 +7,10 @@\n import version\n \n \n+wi...
653
245
gh_patches_debug_18106
rasdani/github-patches
git_diff
OpenNMT__OpenNMT-py-1151
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- torchaudio has to be optional @bpopeters The last change https://github.com/OpenNMT/OpenNMT-py/pull/1144/files made torchaudio a requirement, not an optional one as it should be. Can you fix it please ?...
diff --git a/onmt/inputters/audio_dataset.py b/onmt/inputters/audio_dataset.py --- a/onmt/inputters/audio_dataset.py +++ b/onmt/inputters/audio_dataset.py @@ -3,9 +3,6 @@ from tqdm import tqdm import torch -import torchaudio -import librosa -import numpy as np from onmt.inputters.dataset_base import DatasetBase ...
{"golden_diff": "diff --git a/onmt/inputters/audio_dataset.py b/onmt/inputters/audio_dataset.py\n--- a/onmt/inputters/audio_dataset.py\n+++ b/onmt/inputters/audio_dataset.py\n@@ -3,9 +3,6 @@\n from tqdm import tqdm\n \n import torch\n-import torchaudio\n-import librosa\n-import numpy as np\n \n from onmt.inputters.data...
1,367
188
gh_patches_debug_8986
rasdani/github-patches
git_diff
facebookresearch__Mephisto-323
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Path changes in cleanup scripts In `mephisto/scripts/mturk/cleanup.py`: broken imports line 11-15 with the change from `core` and `providers` into `abstraction` - can also submit a PR if that's easier! --- ...
diff --git a/mephisto/scripts/mturk/cleanup.py b/mephisto/scripts/mturk/cleanup.py --- a/mephisto/scripts/mturk/cleanup.py +++ b/mephisto/scripts/mturk/cleanup.py @@ -8,11 +8,11 @@ Utility script that finds, expires, and disposes HITs that may not have been taking down during a run that exited improperly. """ -from ...
{"golden_diff": "diff --git a/mephisto/scripts/mturk/cleanup.py b/mephisto/scripts/mturk/cleanup.py\n--- a/mephisto/scripts/mturk/cleanup.py\n+++ b/mephisto/scripts/mturk/cleanup.py\n@@ -8,11 +8,11 @@\n Utility script that finds, expires, and disposes HITs that may not\n have been taking down during a run that exited i...
1,329
192
gh_patches_debug_6927
rasdani/github-patches
git_diff
Cloud-CV__EvalAI-726
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add fields in ChallengePhaseSerializer Please add fields `max_submissions_per_day` and `max_submissions` in the `Challenge Phase Serializer`. It is needed for the issue #704 . --- END ISSUE --- Below are so...
diff --git a/apps/challenges/serializers.py b/apps/challenges/serializers.py --- a/apps/challenges/serializers.py +++ b/apps/challenges/serializers.py @@ -44,7 +44,8 @@ class Meta: model = ChallengePhase fields = ('id', 'name', 'description', 'leaderboard_public', 'start_date', - ...
{"golden_diff": "diff --git a/apps/challenges/serializers.py b/apps/challenges/serializers.py\n--- a/apps/challenges/serializers.py\n+++ b/apps/challenges/serializers.py\n@@ -44,7 +44,8 @@\n class Meta:\n model = ChallengePhase\n fields = ('id', 'name', 'description', 'leaderboard_public', 'start_da...
937
147
gh_patches_debug_29865
rasdani/github-patches
git_diff
ibis-project__ibis-2023
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BUG: Graphviz repr should escape HTML The current notebook graphviz repr breaks when there are unintentional HTML characters in column names or types. An example of this is array types, which includes angle b...
diff --git a/ibis/expr/visualize.py b/ibis/expr/visualize.py --- a/ibis/expr/visualize.py +++ b/ibis/expr/visualize.py @@ -1,4 +1,5 @@ import tempfile +from html import escape import graphviz as gv @@ -42,7 +43,9 @@ return ( ''.join( - '<BR ALIGN="LEFT" /> <I>{}</I>: {}'.format(name, t...
{"golden_diff": "diff --git a/ibis/expr/visualize.py b/ibis/expr/visualize.py\n--- a/ibis/expr/visualize.py\n+++ b/ibis/expr/visualize.py\n@@ -1,4 +1,5 @@\n import tempfile\n+from html import escape\n \n import graphviz as gv\n \n@@ -42,7 +43,9 @@\n \n return (\n ''.join(\n- '<BR ALIGN=\"LEFT\" /...
1,750
419
gh_patches_debug_8827
rasdani/github-patches
git_diff
learningequality__kolibri-6535
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Database is open while the server is idle ### Observed behavior After kolibri starts, the db is kept open, with the journal file created, even if the server is idle, not receiving any query. This has produce...
diff --git a/kolibri/utils/sanity_checks.py b/kolibri/utils/sanity_checks.py --- a/kolibri/utils/sanity_checks.py +++ b/kolibri/utils/sanity_checks.py @@ -128,10 +128,12 @@ is in a proper state to be used. This must only be run after django initialization. """ apps.check_apps_ready() + from django.db ...
{"golden_diff": "diff --git a/kolibri/utils/sanity_checks.py b/kolibri/utils/sanity_checks.py\n--- a/kolibri/utils/sanity_checks.py\n+++ b/kolibri/utils/sanity_checks.py\n@@ -128,10 +128,12 @@\n is in a proper state to be used. This must only be run after django initialization.\n \"\"\"\n apps.check_apps_re...
1,799
136
gh_patches_debug_913
rasdani/github-patches
git_diff
mitmproxy__mitmproxy-5603
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- libGL error when starting latest version of mitmweb 8.1.1 on Debian #### Problem Description I was using old version of mitmproxy 6.0.2 that I got installed from the debian unstable repository and it works ...
diff --git a/mitmproxy/tools/web/webaddons.py b/mitmproxy/tools/web/webaddons.py --- a/mitmproxy/tools/web/webaddons.py +++ b/mitmproxy/tools/web/webaddons.py @@ -44,7 +44,7 @@ "macosx", "wslview %s", "gio", - "x-www-browser %s", + "x-www-browser", "gnome-open %s", ...
{"golden_diff": "diff --git a/mitmproxy/tools/web/webaddons.py b/mitmproxy/tools/web/webaddons.py\n--- a/mitmproxy/tools/web/webaddons.py\n+++ b/mitmproxy/tools/web/webaddons.py\n@@ -44,7 +44,7 @@\n \"macosx\",\n \"wslview %s\",\n \"gio\",\n- \"x-www-browser %s\",\n+ \"x-www-browse...
1,970
110
gh_patches_debug_38780
rasdani/github-patches
git_diff
fossasia__open-event-server-5846
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Admin Event Tab / All Events Tab missing Session Information **Describe the bug** The admin events tab and the events tab are missing session information. It shows "0" for different statuses. **To Reprodu...
diff --git a/app/api/schema/event_statistics.py b/app/api/schema/event_statistics.py --- a/app/api/schema/event_statistics.py +++ b/app/api/schema/event_statistics.py @@ -34,32 +34,32 @@ sponsors = fields.Method("sponsors_count") def sessions_draft_count(self, obj): - return Session.query.filter_by(e...
{"golden_diff": "diff --git a/app/api/schema/event_statistics.py b/app/api/schema/event_statistics.py\n--- a/app/api/schema/event_statistics.py\n+++ b/app/api/schema/event_statistics.py\n@@ -34,32 +34,32 @@\n sponsors = fields.Method(\"sponsors_count\")\n \n def sessions_draft_count(self, obj):\n- return...
1,120
643
gh_patches_debug_16971
rasdani/github-patches
git_diff
mitmproxy__mitmproxy-5325
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improper handling of Punycode #### Problem Description Can't open an address like `https://стопкоронавирус.рф/` through `mitmproxy` or other applications. My upstream proxy receives a CONNECT request to http...
diff --git a/mitmproxy/proxy/layers/http/_upstream_proxy.py b/mitmproxy/proxy/layers/http/_upstream_proxy.py --- a/mitmproxy/proxy/layers/http/_upstream_proxy.py +++ b/mitmproxy/proxy/layers/http/_upstream_proxy.py @@ -46,12 +46,13 @@ return (yield from super().start_handshake()) assert self.conn....
{"golden_diff": "diff --git a/mitmproxy/proxy/layers/http/_upstream_proxy.py b/mitmproxy/proxy/layers/http/_upstream_proxy.py\n--- a/mitmproxy/proxy/layers/http/_upstream_proxy.py\n+++ b/mitmproxy/proxy/layers/http/_upstream_proxy.py\n@@ -46,12 +46,13 @@\n return (yield from super().start_handshake())\n ...
1,673
218
gh_patches_debug_5995
rasdani/github-patches
git_diff
sanic-org__sanic-2754
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve type of `MiddlewareType` ### Is there an existing issue for this? - [X] I have searched the existing issues ### Is your feature request related to a problem? Please describe. When using a custom Re...
diff --git a/sanic/models/handler_types.py b/sanic/models/handler_types.py --- a/sanic/models/handler_types.py +++ b/sanic/models/handler_types.py @@ -3,11 +3,12 @@ import sanic -from sanic.request import Request +from sanic import request from sanic.response import BaseHTTPResponse, HTTPResponse Sanic = Typ...
{"golden_diff": "diff --git a/sanic/models/handler_types.py b/sanic/models/handler_types.py\n--- a/sanic/models/handler_types.py\n+++ b/sanic/models/handler_types.py\n@@ -3,11 +3,12 @@\n \n import sanic\n \n-from sanic.request import Request\n+from sanic import request\n from sanic.response import BaseHTTPResponse, HTT...
976
135
gh_patches_debug_2092
rasdani/github-patches
git_diff
facebookresearch__ParlAI-1671
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- embeddingsize or embedding_size When I search 'embeddingsize' in this repository, I see many files referencing `opt['embeddingsize']` and similarly for 'embedding_size'. Unless there is a real reason for havi...
diff --git a/projects/wizard_of_wikipedia/generator/train_end2end.py b/projects/wizard_of_wikipedia/generator/train_end2end.py --- a/projects/wizard_of_wikipedia/generator/train_end2end.py +++ b/projects/wizard_of_wikipedia/generator/train_end2end.py @@ -18,7 +18,7 @@ n_heads=2, dropout=0.20, ...
{"golden_diff": "diff --git a/projects/wizard_of_wikipedia/generator/train_end2end.py b/projects/wizard_of_wikipedia/generator/train_end2end.py\n--- a/projects/wizard_of_wikipedia/generator/train_end2end.py\n+++ b/projects/wizard_of_wikipedia/generator/train_end2end.py\n@@ -18,7 +18,7 @@\n n_heads=2,\n ...
880
141
gh_patches_debug_20788
rasdani/github-patches
git_diff
conda__conda-build-460
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error building when previous build was stoped. Trying to build a package whose previous build was canceled halfway. The solution is to remove the previous tar (corrupted) that is obtained with `conda build ...
diff --git a/conda_build/index.py b/conda_build/index.py --- a/conda_build/index.py +++ b/conda_build/index.py @@ -18,14 +18,17 @@ def read_index_tar(tar_path): """ Returns the index.json dict inside the given package tarball. """ - with tarfile.open(tar_path) as t: - try: - return json.loa...
{"golden_diff": "diff --git a/conda_build/index.py b/conda_build/index.py\n--- a/conda_build/index.py\n+++ b/conda_build/index.py\n@@ -18,14 +18,17 @@\n \n def read_index_tar(tar_path):\n \"\"\" Returns the index.json dict inside the given package tarball. \"\"\"\n- with tarfile.open(tar_path) as t:\n- tr...
2,012
313
gh_patches_debug_27748
rasdani/github-patches
git_diff
MongoEngine__mongoengine-1121
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove "rednose" dependency? The changeset 91ee85152 (first released as 0.10.0) added a hard dependency on "rednose". The package "rednose" (0.4.3) appears to be an extension to nosetests that adds colors to...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -52,13 +52,13 @@ extra_opts = {"packages": find_packages(exclude=["tests", "tests.*"])} if sys.version_info[0] == 3: extra_opts['use_2to3'] = True - extra_opts['tests_require'] = ['nose', 'coverage==3.7.1', 'blinker', 'Pillow>=2.0.0'] + extr...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -52,13 +52,13 @@\n extra_opts = {\"packages\": find_packages(exclude=[\"tests\", \"tests.*\"])}\n if sys.version_info[0] == 3:\n extra_opts['use_2to3'] = True\n- extra_opts['tests_require'] = ['nose', 'coverage==3.7.1', 'blinke...
1,522
419
gh_patches_debug_35853
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-3310
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider heb is broken During the global build at 2021-08-18-14-42-26, spider **heb** failed with **320 features** and **1 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-08-18-14-42-26/logs...
diff --git a/locations/spiders/heb.py b/locations/spiders/heb.py --- a/locations/spiders/heb.py +++ b/locations/spiders/heb.py @@ -1,8 +1,10 @@ # -*- coding: utf-8 -*- +import json + import scrapy -import re from locations.items import GeojsonPointItem +from locations.hours import OpeningHours class HEBSpider...
{"golden_diff": "diff --git a/locations/spiders/heb.py b/locations/spiders/heb.py\n--- a/locations/spiders/heb.py\n+++ b/locations/spiders/heb.py\n@@ -1,8 +1,10 @@\n # -*- coding: utf-8 -*-\n+import json\n+\n import scrapy\n-import re\n \n from locations.items import GeojsonPointItem\n+from locations.hours import Openi...
971
699
gh_patches_debug_18721
rasdani/github-patches
git_diff
magenta__magenta-592
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- polyphony_rnn_train: Incpomatible shapes (InvalidArgumentError) Hi all, I was wondering what output would a polyphony_rnn give when trained on some jazzy tunes, so I gathered some midi files from [The Jazz...
diff --git a/magenta/models/polyphony_rnn/polyphony_rnn_train.py b/magenta/models/polyphony_rnn/polyphony_rnn_train.py --- a/magenta/models/polyphony_rnn/polyphony_rnn_train.py +++ b/magenta/models/polyphony_rnn/polyphony_rnn_train.py @@ -55,6 +55,11 @@ tf.app.flags.DEFINE_string('log', 'INFO', ...
{"golden_diff": "diff --git a/magenta/models/polyphony_rnn/polyphony_rnn_train.py b/magenta/models/polyphony_rnn/polyphony_rnn_train.py\n--- a/magenta/models/polyphony_rnn/polyphony_rnn_train.py\n+++ b/magenta/models/polyphony_rnn/polyphony_rnn_train.py\n@@ -55,6 +55,11 @@\n tf.app.flags.DEFINE_string('log', 'INFO',\n ...
1,520
239
gh_patches_debug_12608
rasdani/github-patches
git_diff
pytorch__audio-1182
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Python 2 Deprecated The 0.4.0 release of torchaudio was the last one supporting python 2, and master no longer officially supports python 2. We're looking to strip the code of python 2 references. - [x] No l...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -73,8 +73,9 @@ "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: C++", - "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3", + "...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -73,8 +73,9 @@\n \"Operating System :: Microsoft :: Windows\",\n \"Operating System :: POSIX\",\n \"Programming Language :: C++\",\n- \"Programming Language :: Python :: 2.7\",\n- \"Programming La...
1,386
152
gh_patches_debug_8568
rasdani/github-patches
git_diff
TheAlgorithms__Python-11156
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pre-commit on windows fails on Validate filenames ### Repository commit 1faf10b5c2dff8cef3f5d59f60a126bd19bb1c44 ### Python version (python --version) Python 3.11.3 ### Dependencies version (pip freeze) ...
diff --git a/scripts/build_directory_md.py b/scripts/build_directory_md.py --- a/scripts/build_directory_md.py +++ b/scripts/build_directory_md.py @@ -6,7 +6,11 @@ def good_file_paths(top_dir: str = ".") -> Iterator[str]: for dir_path, dir_names, filenames in os.walk(top_dir): - dir_names[:] = [d for d i...
{"golden_diff": "diff --git a/scripts/build_directory_md.py b/scripts/build_directory_md.py\n--- a/scripts/build_directory_md.py\n+++ b/scripts/build_directory_md.py\n@@ -6,7 +6,11 @@\n \n def good_file_paths(top_dir: str = \".\") -> Iterator[str]:\n for dir_path, dir_names, filenames in os.walk(top_dir):\n- ...
1,957
170
gh_patches_debug_40
rasdani/github-patches
git_diff
kartoza__prj.app-1156
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sign up link for certification is broken when not logged in IF a user visits https://changelog.qgis.org/en/qgis/create-certifyingorganisation/ and they are not logged in, they get redirected to the front page...
diff --git a/django_project/core/settings/project.py b/django_project/core/settings/project.py --- a/django_project/core/settings/project.py +++ b/django_project/core/settings/project.py @@ -84,3 +84,4 @@ ] EMAIL_HOST_USER = 'noreply@kartoza.com' +LOGIN_URL = '/en/accounts/login/'
{"golden_diff": "diff --git a/django_project/core/settings/project.py b/django_project/core/settings/project.py\n--- a/django_project/core/settings/project.py\n+++ b/django_project/core/settings/project.py\n@@ -84,3 +84,4 @@\n ]\n \n EMAIL_HOST_USER = 'noreply@kartoza.com'\n+LOGIN_URL = '/en/accounts/login/'\n", "issue...
998
76
gh_patches_debug_8671
rasdani/github-patches
git_diff
microsoft__playwright-python-1474
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Execution hangs when trying to save video or delete video before calling page.close() **Context:** - Playwright Version: 1.23 - Operating System: Windows - Python: 3.9 - Browser: All **Code Snipp...
diff --git a/playwright/_impl/_video.py b/playwright/_impl/_video.py --- a/playwright/_impl/_video.py +++ b/playwright/_impl/_video.py @@ -55,6 +55,10 @@ return artifact.absolute_path async def save_as(self, path: Union[str, pathlib.Path]) -> None: + if self._page._connection._is_sync and not sel...
{"golden_diff": "diff --git a/playwright/_impl/_video.py b/playwright/_impl/_video.py\n--- a/playwright/_impl/_video.py\n+++ b/playwright/_impl/_video.py\n@@ -55,6 +55,10 @@\n return artifact.absolute_path\n \n async def save_as(self, path: Union[str, pathlib.Path]) -> None:\n+ if self._page._connect...
1,244
149
gh_patches_debug_34707
rasdani/github-patches
git_diff
mne-tools__mne-bids-pipeline-301
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `ERROR: Could not consume arg: freesurfer` when finishing `run.py freesurfer` Here is the output from running `run.py freesurfer`: ``` 2021-04-15 17:02:00 INFO Now running: init_derivatives_dir 17:02:01 Us...
diff --git a/scripts/freesurfer/recon_all.py b/scripts/freesurfer/recon_all.py --- a/scripts/freesurfer/recon_all.py +++ b/scripts/freesurfer/recon_all.py @@ -7,8 +7,6 @@ import logging from typing import Union -import fire - from mne.utils import run_subprocess from mne.parallel import parallel_func @@ -60,10 ...
{"golden_diff": "diff --git a/scripts/freesurfer/recon_all.py b/scripts/freesurfer/recon_all.py\n--- a/scripts/freesurfer/recon_all.py\n+++ b/scripts/freesurfer/recon_all.py\n@@ -7,8 +7,6 @@\n import logging\n from typing import Union\n \n-import fire\n-\n from mne.utils import run_subprocess\n from mne.parallel import...
1,855
554
gh_patches_debug_17172
rasdani/github-patches
git_diff
saulpw__visidata-515
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 'v' (wrap text) reloads from source, undoing sheet modifications I've noticed some odd side effects when using 'v' (text wrapping). - When a row has been deleted (d), and then wrapping applied (v) the row wi...
diff --git a/visidata/textsheet.py b/visidata/textsheet.py --- a/visidata/textsheet.py +++ b/visidata/textsheet.py @@ -56,6 +56,4 @@ Sheet.addCommand(None, 'view-cell', 'vd.push(ErrorSheet("%s[%s].%s" % (name, cursorRowIndex, cursorCol.name), source=sheet, lines=cursorDisplay.splitlines()))', 'view contents of current...
{"golden_diff": "diff --git a/visidata/textsheet.py b/visidata/textsheet.py\n--- a/visidata/textsheet.py\n+++ b/visidata/textsheet.py\n@@ -56,6 +56,4 @@\n Sheet.addCommand(None, 'view-cell', 'vd.push(ErrorSheet(\"%s[%s].%s\" % (name, cursorRowIndex, cursorCol.name), source=sheet, lines=cursorDisplay.splitlines()))', 'v...
1,121
213
gh_patches_debug_2839
rasdani/github-patches
git_diff
facebookresearch__hydra-2543
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] MissingConfigException cannot be correctly deserialized, due to lack of missing_cfg_file ctor default # 🐛 Bug ## Description in https://github.com/facebookresearch/hydra/blob/main/hydra/errors.py t...
diff --git a/hydra/errors.py b/hydra/errors.py --- a/hydra/errors.py +++ b/hydra/errors.py @@ -33,7 +33,7 @@ def __init__( self, message: str, - missing_cfg_file: Optional[str], + missing_cfg_file: Optional[str] = None, options: Optional[Sequence[str]] = None, ) -> Non...
{"golden_diff": "diff --git a/hydra/errors.py b/hydra/errors.py\n--- a/hydra/errors.py\n+++ b/hydra/errors.py\n@@ -33,7 +33,7 @@\n def __init__(\n self,\n message: str,\n- missing_cfg_file: Optional[str],\n+ missing_cfg_file: Optional[str] = None,\n options: Optional[Sequence[s...
966
107
gh_patches_debug_3822
rasdani/github-patches
git_diff
WordPress__openverse-api-958
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Do not unfurl links and media by default in Slack notifications ## Problem <!-- Describe a problem solved by this feature; or delete the section entirely. --> Recent provider DAG errors have caused notifica...
diff --git a/ingestion_server/ingestion_server/slack.py b/ingestion_server/ingestion_server/slack.py --- a/ingestion_server/ingestion_server/slack.py +++ b/ingestion_server/ingestion_server/slack.py @@ -50,6 +50,8 @@ "text": summary, "username": f"Data Refresh Notification | {environment.upper()}", ...
{"golden_diff": "diff --git a/ingestion_server/ingestion_server/slack.py b/ingestion_server/ingestion_server/slack.py\n--- a/ingestion_server/ingestion_server/slack.py\n+++ b/ingestion_server/ingestion_server/slack.py\n@@ -50,6 +50,8 @@\n \"text\": summary,\n \"username\": f\"Data Refresh Notification |...
1,309
137
gh_patches_debug_55802
rasdani/github-patches
git_diff
deepset-ai__haystack-2184
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cant Upload a TXT file with REST API **Describe the bug** Cant Upload a TXT file with REST API, Receiving the following error **Error message** TyperError : 'NoneType' object does not support item assign...
diff --git a/rest_api/controller/file_upload.py b/rest_api/controller/file_upload.py --- a/rest_api/controller/file_upload.py +++ b/rest_api/controller/file_upload.py @@ -91,7 +91,10 @@ file_paths: list = [] file_metas: list = [] - meta_form = json.loads(meta) # type: ignore + + meta_form = json.load...
{"golden_diff": "diff --git a/rest_api/controller/file_upload.py b/rest_api/controller/file_upload.py\n--- a/rest_api/controller/file_upload.py\n+++ b/rest_api/controller/file_upload.py\n@@ -91,7 +91,10 @@\n \n file_paths: list = []\n file_metas: list = []\n- meta_form = json.loads(meta) # type: ignore\n+\n...
1,776
149
gh_patches_debug_25851
rasdani/github-patches
git_diff
sopel-irc__sopel-1779
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- find_updates: No error handling on JSON fetch See this code: https://github.com/sopel-irc/sopel/blob/b105fe4aaa6c1cd258337e60a4f17c1a0751ecb5/sopel/modules/find_updates.py#L49 There's no error-handling ...
diff --git a/sopel/modules/find_updates.py b/sopel/modules/find_updates.py --- a/sopel/modules/find_updates.py +++ b/sopel/modules/find_updates.py @@ -39,13 +39,45 @@ check_version(bot) +def _check_succeeded(bot): + bot.memory['update_failures'] = 0 + + +def _check_failed(bot): + bot.memory['update_f...
{"golden_diff": "diff --git a/sopel/modules/find_updates.py b/sopel/modules/find_updates.py\n--- a/sopel/modules/find_updates.py\n+++ b/sopel/modules/find_updates.py\n@@ -39,13 +39,45 @@\n check_version(bot)\n \n \n+def _check_succeeded(bot):\n+ bot.memory['update_failures'] = 0\n+\n+\n+def _check_failed(bot...
1,103
446
gh_patches_debug_8837
rasdani/github-patches
git_diff
Netflix__lemur-707
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ensure rotation column == 'False' during migration. Null values creates problems during validation. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may ...
diff --git a/lemur/migrations/versions/131ec6accff5_.py b/lemur/migrations/versions/131ec6accff5_.py --- a/lemur/migrations/versions/131ec6accff5_.py +++ b/lemur/migrations/versions/131ec6accff5_.py @@ -16,7 +16,7 @@ def upgrade(): # ### commands auto generated by Alembic - please adjust! ### - op.add_column...
{"golden_diff": "diff --git a/lemur/migrations/versions/131ec6accff5_.py b/lemur/migrations/versions/131ec6accff5_.py\n--- a/lemur/migrations/versions/131ec6accff5_.py\n+++ b/lemur/migrations/versions/131ec6accff5_.py\n@@ -16,7 +16,7 @@\n \n def upgrade():\n # ### commands auto generated by Alembic - please adjust!...
594
197
gh_patches_debug_60676
rasdani/github-patches
git_diff
sosreport__sos-3322
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- containerd plugin does not enable when containerd is installed from docker repo The Fedora/RHEL RPM follows the naming conventions [found at containerd.io](https://containerd.io/downloads/), and an rpm name o...
diff --git a/sos/report/plugins/containerd.py b/sos/report/plugins/containerd.py --- a/sos/report/plugins/containerd.py +++ b/sos/report/plugins/containerd.py @@ -14,7 +14,7 @@ short_desc = 'Containerd containers' plugin_name = 'containerd' profiles = ('container',) - packages = ('containerd',) + p...
{"golden_diff": "diff --git a/sos/report/plugins/containerd.py b/sos/report/plugins/containerd.py\n--- a/sos/report/plugins/containerd.py\n+++ b/sos/report/plugins/containerd.py\n@@ -14,7 +14,7 @@\n short_desc = 'Containerd containers'\n plugin_name = 'containerd'\n profiles = ('container',)\n- packages ...
630
108
gh_patches_debug_21915
rasdani/github-patches
git_diff
Parsl__parsl-759
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Kubernetes option missing in setup.py The option to install kubernetes as an optional extra is missing from our setup.py script. reported by Ben Galewsky. --- END ISSUE --- Below are some code segments, ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -27,6 +27,7 @@ 'visualize': ['dash', 'dash-html-components', 'dash-core-components', 'pandas'], 'db_logging' : ['CMRESHandler', 'psutil', 'sqlalchemy'], 'aws' : ['boto3'], + 'kubernetes' : ['kubernetes'], # Jets...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -27,6 +27,7 @@\n 'visualize': ['dash', 'dash-html-components', 'dash-core-components', 'pandas'],\n 'db_logging' : ['CMRESHandler', 'psutil', 'sqlalchemy'],\n 'aws' : ['boto3'],\n+ 'kubernetes' : ['kuber...
955
223
gh_patches_debug_15025
rasdani/github-patches
git_diff
svthalia__concrexit-2069
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Vacancy detail view in API does not work ### Describe the bug The API detail view for vacancies seem to be broken. ### How to reproduce Steps to reproduce the behaviour: 1. Go to `/api/v2/partners/vaca...
diff --git a/website/partners/api/v2/views.py b/website/partners/api/v2/views.py --- a/website/partners/api/v2/views.py +++ b/website/partners/api/v2/views.py @@ -1,4 +1,3 @@ -from django.db.models import query from oauth2_provider.contrib.rest_framework import IsAuthenticatedOrTokenHasScope from rest_framework impor...
{"golden_diff": "diff --git a/website/partners/api/v2/views.py b/website/partners/api/v2/views.py\n--- a/website/partners/api/v2/views.py\n+++ b/website/partners/api/v2/views.py\n@@ -1,4 +1,3 @@\n-from django.db.models import query\n from oauth2_provider.contrib.rest_framework import IsAuthenticatedOrTokenHasScope\n fr...
1,096
168
gh_patches_debug_268
rasdani/github-patches
git_diff
ietf-tools__datatracker-5809
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Dev mode PDFization broken ### Describe the issue The `STATIC_IETF_ORG_INTERNAL` stuff in https://github.com/ietf-tools/datatracker/blob/2bf7e8250c3fc2fcaf9a6223c331a52d1f6d89a4/ietf/doc/models.py#L630 cause...
diff --git a/docker/configs/settings_local.py b/docker/configs/settings_local.py --- a/docker/configs/settings_local.py +++ b/docker/configs/settings_local.py @@ -57,4 +57,4 @@ DE_GFM_BINARY = '/usr/local/bin/de-gfm' STATIC_IETF_ORG = "/_static" -STATIC_IETF_ORG_INTERNAL = "http://localhost:80" +STATIC_IETF_ORG_INT...
{"golden_diff": "diff --git a/docker/configs/settings_local.py b/docker/configs/settings_local.py\n--- a/docker/configs/settings_local.py\n+++ b/docker/configs/settings_local.py\n@@ -57,4 +57,4 @@\n DE_GFM_BINARY = '/usr/local/bin/de-gfm'\n \n STATIC_IETF_ORG = \"/_static\"\n-STATIC_IETF_ORG_INTERNAL = \"http://localho...
1,142
101
gh_patches_debug_9190
rasdani/github-patches
git_diff
DataBiosphere__toil-1589
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Toil Appliance should set /var/lib/toil as the default workdir Toil Appliance should set /var/lib/toil as the default workdir --- END ISSUE --- Below are some code segments, each from a relevant file. O...
diff --git a/docker/Dockerfile.py b/docker/Dockerfile.py --- a/docker/Dockerfile.py +++ b/docker/Dockerfile.py @@ -103,6 +103,10 @@ # worker appliance on a worker node. To support this, we embed a self-reference into the image: ENV TOIL_APPLIANCE_SELF {applianceSelf} + RUN mkdir /var/lib/toil + + ENV ...
{"golden_diff": "diff --git a/docker/Dockerfile.py b/docker/Dockerfile.py\n--- a/docker/Dockerfile.py\n+++ b/docker/Dockerfile.py\n@@ -103,6 +103,10 @@\n # worker appliance on a worker node. To support this, we embed a self-reference into the image:\n ENV TOIL_APPLIANCE_SELF {applianceSelf}\n \n+ RUN mkdir /...
1,775
152
gh_patches_debug_30620
rasdani/github-patches
git_diff
ietf-tools__datatracker-5619
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Another location where meeting time zone info is incorrect ### Describe the issue Related to #5285 ; time data is incorrectly showing in UTC. This is not a showstopper since I'm probably the only one who wou...
diff --git a/ietf/meeting/templatetags/session_filters.py b/ietf/meeting/templatetags/session_filters.py --- a/ietf/meeting/templatetags/session_filters.py +++ b/ietf/meeting/templatetags/session_filters.py @@ -1,17 +1,56 @@ +# Copyright The IETF Trust 2023, All Rights Reserved from django import template +from ietf...
{"golden_diff": "diff --git a/ietf/meeting/templatetags/session_filters.py b/ietf/meeting/templatetags/session_filters.py\n--- a/ietf/meeting/templatetags/session_filters.py\n+++ b/ietf/meeting/templatetags/session_filters.py\n@@ -1,17 +1,56 @@\n+# Copyright The IETF Trust 2023, All Rights Reserved\n from django import...
639
603
gh_patches_debug_1655
rasdani/github-patches
git_diff
frappe__frappe-23585
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Route History shouldn‘t be editable Editing or adding a new Route History: ![IMG_2238](https://github.com/frappe/frappe/assets/46800703/caf5ccf6-80c0-4d66-8ed8-1716eaf27f52) ![IMG_2240](https://github.com...
diff --git a/frappe/desk/doctype/route_history/route_history.py b/frappe/desk/doctype/route_history/route_history.py --- a/frappe/desk/doctype/route_history/route_history.py +++ b/frappe/desk/doctype/route_history/route_history.py @@ -18,6 +18,7 @@ route: DF.Data | None user: DF.Link | None # end: auto-generate...
{"golden_diff": "diff --git a/frappe/desk/doctype/route_history/route_history.py b/frappe/desk/doctype/route_history/route_history.py\n--- a/frappe/desk/doctype/route_history/route_history.py\n+++ b/frappe/desk/doctype/route_history/route_history.py\n@@ -18,6 +18,7 @@\n \t\troute: DF.Data | None\n \t\tuser: DF.Link | N...
869
127
gh_patches_debug_21976
rasdani/github-patches
git_diff
cupy__cupy-3397
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Write docs for Optuna optimization --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `cupyx/optimizing/_optim...
diff --git a/cupyx/optimizing/_optimize.py b/cupyx/optimizing/_optimize.py --- a/cupyx/optimizing/_optimize.py +++ b/cupyx/optimizing/_optimize.py @@ -43,6 +43,37 @@ @contextlib.contextmanager def optimize(*, key=None, **config_dict): + """Context manager that optimizes kernel launch parameters. + + In this c...
{"golden_diff": "diff --git a/cupyx/optimizing/_optimize.py b/cupyx/optimizing/_optimize.py\n--- a/cupyx/optimizing/_optimize.py\n+++ b/cupyx/optimizing/_optimize.py\n@@ -43,6 +43,37 @@\n \n @contextlib.contextmanager\n def optimize(*, key=None, **config_dict):\n+ \"\"\"Context manager that optimizes kernel launch p...
722
376
gh_patches_debug_926
rasdani/github-patches
git_diff
Pyomo__pyomo-429
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Review objects exposed by environ At the request of @jsiirola after I brought this to his attention, some Pyomo objects are not exposed by environ that would otherwise be expected. One that I have encountered...
diff --git a/pyomo/environ/__init__.py b/pyomo/environ/__init__.py --- a/pyomo/environ/__init__.py +++ b/pyomo/environ/__init__.py @@ -93,4 +93,7 @@ # Expose the symbols from pyomo.core # from pyomo.core import * -from pyomo.opt import SolverFactory, SolverManagerFactory, UnknownSolver +from pyomo.opt import ( + ...
{"golden_diff": "diff --git a/pyomo/environ/__init__.py b/pyomo/environ/__init__.py\n--- a/pyomo/environ/__init__.py\n+++ b/pyomo/environ/__init__.py\n@@ -93,4 +93,7 @@\n # Expose the symbols from pyomo.core\n #\n from pyomo.core import *\n-from pyomo.opt import SolverFactory, SolverManagerFactory, UnknownSolver\n+from...
1,153
118
gh_patches_debug_27512
rasdani/github-patches
git_diff
blakeblackshear__frigate-5133
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Config Support]: Docker fails to start with KeyError: 'go2rtc' ### Describe the problem you are having Starting an instance of frigate with a minimal config gives error `KeyError: 'go2rtc'` Config file w...
diff --git a/docker/rootfs/usr/local/go2rtc/create_config.py b/docker/rootfs/usr/local/go2rtc/create_config.py --- a/docker/rootfs/usr/local/go2rtc/create_config.py +++ b/docker/rootfs/usr/local/go2rtc/create_config.py @@ -5,6 +5,7 @@ import yaml +BTBN_PATH = "/usr/lib/btbn-ffmpeg" config_file = os.environ.get("C...
{"golden_diff": "diff --git a/docker/rootfs/usr/local/go2rtc/create_config.py b/docker/rootfs/usr/local/go2rtc/create_config.py\n--- a/docker/rootfs/usr/local/go2rtc/create_config.py\n+++ b/docker/rootfs/usr/local/go2rtc/create_config.py\n@@ -5,6 +5,7 @@\n import yaml\n \n \n+BTBN_PATH = \"/usr/lib/btbn-ffmpeg\"\n conf...
1,797
518
gh_patches_debug_10359
rasdani/github-patches
git_diff
beetbox__beets-3805
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- keyfinder: Output parsing error ### Problem Running this command in verbose (`-vv`) mode: ``` sh $ beet -vv keyfinder anything ``` Led to this problem: ``` user configuration: /home/diomekes/.config/beets...
diff --git a/beetsplug/keyfinder.py b/beetsplug/keyfinder.py --- a/beetsplug/keyfinder.py +++ b/beetsplug/keyfinder.py @@ -76,7 +76,14 @@ item.path) continue - key_raw = output.rsplit(None, 1)[-1] + try: + key_raw = output.rsplit(N...
{"golden_diff": "diff --git a/beetsplug/keyfinder.py b/beetsplug/keyfinder.py\n--- a/beetsplug/keyfinder.py\n+++ b/beetsplug/keyfinder.py\n@@ -76,7 +76,14 @@\n item.path)\n continue\n \n- key_raw = output.rsplit(None, 1)[-1]\n+ try:\n+ ...
1,669
172
gh_patches_debug_54782
rasdani/github-patches
git_diff
encode__httpx-362
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Releasing 0.7.3 Hi @encode/httpx-maintainers! It’s been 21 days since 0.7.2 was released, and we’ve got [a bunch of features](https://github.com/encode/httpx/compare/0.7.2...HEAD) ready for 0.7.3 already, ...
diff --git a/httpx/__version__.py b/httpx/__version__.py --- a/httpx/__version__.py +++ b/httpx/__version__.py @@ -1,3 +1,3 @@ __title__ = "httpx" __description__ = "A next generation HTTP client, for Python 3." -__version__ = "0.7.2" +__version__ = "0.7.3"
{"golden_diff": "diff --git a/httpx/__version__.py b/httpx/__version__.py\n--- a/httpx/__version__.py\n+++ b/httpx/__version__.py\n@@ -1,3 +1,3 @@\n __title__ = \"httpx\"\n __description__ = \"A next generation HTTP client, for Python 3.\"\n-__version__ = \"0.7.2\"\n+__version__ = \"0.7.3\"\n", "issue": "Releasing 0.7....
472
94
gh_patches_debug_22190
rasdani/github-patches
git_diff
readthedocs__readthedocs.org-11421
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Build: expose `ubuntu-24.04` as an option for `build.os` We are close to Ubuntu 24.04 release. We should expose it to our users. --- END ISSUE --- Below are some code segments, each from a relevant file. On...
diff --git a/readthedocs/builds/constants_docker.py b/readthedocs/builds/constants_docker.py --- a/readthedocs/builds/constants_docker.py +++ b/readthedocs/builds/constants_docker.py @@ -25,6 +25,7 @@ "os": { "ubuntu-20.04": f"{DOCKER_DEFAULT_IMAGE}:ubuntu-20.04", "ubuntu-22.04": f"{DOCKER_DEFAUL...
{"golden_diff": "diff --git a/readthedocs/builds/constants_docker.py b/readthedocs/builds/constants_docker.py\n--- a/readthedocs/builds/constants_docker.py\n+++ b/readthedocs/builds/constants_docker.py\n@@ -25,6 +25,7 @@\n \"os\": {\n \"ubuntu-20.04\": f\"{DOCKER_DEFAULT_IMAGE}:ubuntu-20.04\",\n \"u...
1,639
325
gh_patches_debug_13461
rasdani/github-patches
git_diff
huggingface__optimum-217
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add Support for DeBERTaV2 I would like to use DeBERTaV2 for sequence classification as a quantized model. Please let me know what needs to be done to open a PR to add this support! --- END ISSUE --- Below a...
diff --git a/optimum/onnxruntime/utils.py b/optimum/onnxruntime/utils.py --- a/optimum/onnxruntime/utils.py +++ b/optimum/onnxruntime/utils.py @@ -57,6 +57,8 @@ "albert": ("num_attention_heads", "hidden_size", "bert"), "camembert": ("num_attention_heads", "hidden_size", "bert"), "distilbert":...
{"golden_diff": "diff --git a/optimum/onnxruntime/utils.py b/optimum/onnxruntime/utils.py\n--- a/optimum/onnxruntime/utils.py\n+++ b/optimum/onnxruntime/utils.py\n@@ -57,6 +57,8 @@\n \"albert\": (\"num_attention_heads\", \"hidden_size\", \"bert\"),\n \"camembert\": (\"num_attention_heads\", \"hidden_siz...
1,921
194
gh_patches_debug_8374
rasdani/github-patches
git_diff
cocotb__cocotb-1810
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- setup.py uses https://cocotb.org which doesn't work (yet) We have https://github.com/cocotb/cocotb/blob/e74d508e30027c16778b95ef0985b6bcbc5207c2/setup.py#L90 which doesn't work (yet). Do we also want to us...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -87,7 +87,7 @@ cmdclass={'build_ext': build_ext}, version=__version__, # noqa: F821 description='cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python.', - url='https://cocotb.org', + ur...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -87,7 +87,7 @@\n cmdclass={'build_ext': build_ext},\n version=__version__, # noqa: F821\n description='cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python.',\n- url='http...
1,788
130
gh_patches_debug_28171
rasdani/github-patches
git_diff
fossasia__open-event-server-5129
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Correct exception for quantity < max order in tickets schema **Describe the bug** <!-- A clear and concise description of what the bug is. --> Validation check message for quantity to be more than max-order...
diff --git a/app/api/schema/tickets.py b/app/api/schema/tickets.py --- a/app/api/schema/tickets.py +++ b/app/api/schema/tickets.py @@ -39,17 +39,17 @@ if 'max_order' in data and 'min_order' in data: if data['max_order'] < data['min_order']: raise UnprocessableEntity({'pointer': '/...
{"golden_diff": "diff --git a/app/api/schema/tickets.py b/app/api/schema/tickets.py\n--- a/app/api/schema/tickets.py\n+++ b/app/api/schema/tickets.py\n@@ -39,17 +39,17 @@\n if 'max_order' in data and 'min_order' in data:\n if data['max_order'] < data['min_order']:\n raise Unprocessab...
1,878
279
gh_patches_debug_37978
rasdani/github-patches
git_diff
AnalogJ__lexicon-336
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Memset provider: TypeError: string indices must be integers Hi, When using the Memset provider with the default table formatting I get this error: ```bash $ lexicon memset create example.com TXT --name...
diff --git a/lexicon/cli.py b/lexicon/cli.py --- a/lexicon/cli.py +++ b/lexicon/cli.py @@ -14,12 +14,10 @@ logger = logging.getLogger(__name__) # pylint: disable=C0103 -def generate_table_result(lexicon_logger, output=None, without_header=None): - """Convert returned JSON into a nice table for command line usa...
{"golden_diff": "diff --git a/lexicon/cli.py b/lexicon/cli.py\n--- a/lexicon/cli.py\n+++ b/lexicon/cli.py\n@@ -14,12 +14,10 @@\n logger = logging.getLogger(__name__) # pylint: disable=C0103\n \n \n-def generate_table_result(lexicon_logger, output=None, without_header=None):\n- \"\"\"Convert returned JSON into a nic...
1,687
703
gh_patches_debug_3258
rasdani/github-patches
git_diff
ManimCommunity__manim-755
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "manim -" is not working I broke this when revamping the config system. Thanks @naveen521kk for reporting --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these file...
diff --git a/manim/utils/module_ops.py b/manim/utils/module_ops.py --- a/manim/utils/module_ops.py +++ b/manim/utils/module_ops.py @@ -9,7 +9,7 @@ def get_module(file_name): - if file_name == "-": + if str(file_name) == "-": module = types.ModuleType("input_scenes") logger.info( ...
{"golden_diff": "diff --git a/manim/utils/module_ops.py b/manim/utils/module_ops.py\n--- a/manim/utils/module_ops.py\n+++ b/manim/utils/module_ops.py\n@@ -9,7 +9,7 @@\n \n \n def get_module(file_name):\n- if file_name == \"-\":\n+ if str(file_name) == \"-\":\n module = types.ModuleType(\"input_scenes\")\n...
1,242
114
gh_patches_debug_12818
rasdani/github-patches
git_diff
replicate__cog-620
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- What should `cog predict` do if you don't pass an input name? The syntax of `cog predict` is this: cog predict -i image=@image.jpg But you can also do this: cog predict -i @image.jpg Which...
diff --git a/pkg/cli/init-templates/predict.py b/pkg/cli/init-templates/predict.py --- a/pkg/cli/init-templates/predict.py +++ b/pkg/cli/init-templates/predict.py @@ -11,12 +11,12 @@ def predict( self, - input: Path = Input(description="Grayscale input image"), + image: Path = Input(descri...
{"golden_diff": "diff --git a/pkg/cli/init-templates/predict.py b/pkg/cli/init-templates/predict.py\n--- a/pkg/cli/init-templates/predict.py\n+++ b/pkg/cli/init-templates/predict.py\n@@ -11,12 +11,12 @@\n \n def predict(\n self,\n- input: Path = Input(description=\"Grayscale input image\"),\n+ ...
644
193
gh_patches_debug_57235
rasdani/github-patches
git_diff
pymodbus-dev__pymodbus-411
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use pycryptodome instead of pycrypto. <!-- Please use the Pymodbus gitter channel at https://gitter.im/pymodbus_dev/Lobby or Stack Overflow(tag [pymodbus](https://stackoverflow.com/questions/tagged/pymodbus)...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -85,7 +85,6 @@ 'twisted': [ 'twisted >= 12.2.0', 'pyasn1 >= 0.1.4', - 'pycrypto >= 2.6' ], 'tornado': [ 'tornado >= 4.5.3'
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -85,7 +85,6 @@\n 'twisted': [\n 'twisted >= 12.2.0',\n 'pyasn1 >= 0.1.4',\n- 'pycrypto >= 2.6'\n ],\n 'tornado': [\n 'tornado >= 4.5.3'\n", "issue": "Use pycryptod...
1,535
95
gh_patches_debug_15259
rasdani/github-patches
git_diff
facebookresearch__Mephisto-832
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make URLs in terminal output clickable on launch <img width="1028" alt="CleanShot 2022-07-15 at 10 43 57@2x" src="https://user-images.githubusercontent.com/425059/179247049-927a78f7-d6fd-414c-8d60-5732cc6393a...
diff --git a/mephisto/abstractions/providers/mock/mock_unit.py b/mephisto/abstractions/providers/mock/mock_unit.py --- a/mephisto/abstractions/providers/mock/mock_unit.py +++ b/mephisto/abstractions/providers/mock/mock_unit.py @@ -49,12 +49,12 @@ port = task_url.split(":")[1].split("/")[0] print(task_...
{"golden_diff": "diff --git a/mephisto/abstractions/providers/mock/mock_unit.py b/mephisto/abstractions/providers/mock/mock_unit.py\n--- a/mephisto/abstractions/providers/mock/mock_unit.py\n+++ b/mephisto/abstractions/providers/mock/mock_unit.py\n@@ -49,12 +49,12 @@\n port = task_url.split(\":\")[1].split(\"/\"...
1,371
274
gh_patches_debug_7617
rasdani/github-patches
git_diff
larq__larq-39
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add test coverage report to Azure Pipelines https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/python?view=azure-devops#test-with-pytest-and-collect-coverage-metrics-with-pytest-cov --- END IS...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ extras_require={ "tensorflow": ["tensorflow>=1.13.1"], "tensorflow_gpu": ["tensorflow-gpu>=1.13.1"], - "test": ["absl-py>=0.7.0", "pytest>=4.3.1"], + "test": ["absl-py>=0.7.0", "pytest>=4.3.1", "pytest-...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -21,7 +21,7 @@\n extras_require={\n \"tensorflow\": [\"tensorflow>=1.13.1\"],\n \"tensorflow_gpu\": [\"tensorflow-gpu>=1.13.1\"],\n- \"test\": [\"absl-py>=0.7.0\", \"pytest>=4.3.1\"],\n+ \"test\": [\"...
835
169
gh_patches_debug_21826
rasdani/github-patches
git_diff
docker__docker-py-1802
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Check resource error in container network API ``` docker python client v2.4.2 python v2.7.12 docker v17.03.1-ce Ubuntu 16.04 ``` PR #1649 updated the `check_resource` decorator to handle different res...
diff --git a/docker/transport/unixconn.py b/docker/transport/unixconn.py --- a/docker/transport/unixconn.py +++ b/docker/transport/unixconn.py @@ -21,13 +21,12 @@ class UnixHTTPResponse(httplib.HTTPResponse, object): def __init__(self, sock, *args, **kwargs): disable_buffering = kwargs.pop('disable_buffe...
{"golden_diff": "diff --git a/docker/transport/unixconn.py b/docker/transport/unixconn.py\n--- a/docker/transport/unixconn.py\n+++ b/docker/transport/unixconn.py\n@@ -21,13 +21,12 @@\n class UnixHTTPResponse(httplib.HTTPResponse, object):\n def __init__(self, sock, *args, **kwargs):\n disable_buffering = kw...
1,706
335
gh_patches_debug_17479
rasdani/github-patches
git_diff
doccano__doccano-1557
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Metadata column repeated when exported as csv Hi I have recently come across a bug when you export data as csv <environment.--> *   Operating System:MacOS 10.14 *   Python Version Used: 3.9.5 *   Doccano ...
diff --git a/backend/api/views/download/data.py b/backend/api/views/download/data.py --- a/backend/api/views/download/data.py +++ b/backend/api/views/download/data.py @@ -1,3 +1,4 @@ +import json from typing import Any, Dict, List @@ -16,4 +17,10 @@ self.metadata = metadata def __str__(self): - ...
{"golden_diff": "diff --git a/backend/api/views/download/data.py b/backend/api/views/download/data.py\n--- a/backend/api/views/download/data.py\n+++ b/backend/api/views/download/data.py\n@@ -1,3 +1,4 @@\n+import json\n from typing import Any, Dict, List\n \n \n@@ -16,4 +17,10 @@\n self.metadata = metadata\n \n ...
1,909
272
gh_patches_debug_16388
rasdani/github-patches
git_diff
wagtail__wagtail-8385
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use Full URL for ImageRenditionField. ### Is your proposal related to a problem? <!-- Provide a clear and concise description of what the problem is. For example, "I'm always frustrated when..." -->...
diff --git a/wagtail/images/api/fields.py b/wagtail/images/api/fields.py --- a/wagtail/images/api/fields.py +++ b/wagtail/images/api/fields.py @@ -13,6 +13,7 @@ Example: "thumbnail": { "url": "/media/images/myimage.max-165x165.jpg", + "full_url": "https://media.example.com/media/images/myimage...
{"golden_diff": "diff --git a/wagtail/images/api/fields.py b/wagtail/images/api/fields.py\n--- a/wagtail/images/api/fields.py\n+++ b/wagtail/images/api/fields.py\n@@ -13,6 +13,7 @@\n Example:\n \"thumbnail\": {\n \"url\": \"/media/images/myimage.max-165x165.jpg\",\n+ \"full_url\": \"https://media...
1,151
194
gh_patches_debug_36634
rasdani/github-patches
git_diff
bridgecrewio__checkov-4289
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Check: CKV_GCP_19: "Ensure GKE basic auth is disabled" **Describe the issue** The default for this is disabled yet the alert keeps firing. **Examples** Please share an example code sample (in the IaC of...
diff --git a/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py b/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py --- a/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py +++ b/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py @@ -1,37 +1,36 @@ +from __future__ import annotations + +from typing import A...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py b/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py\n--- a/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py\n+++ b/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py\n@@ -1,37 +1,36 @@\n+from __future__ import annotations\n+...
778
628
gh_patches_debug_21720
rasdani/github-patches
git_diff
deeppavlov__DeepPavlov-676
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make ROOT_PATH, MODELS_PATH and DOWNLOADS_PATH environment variables All config files I've seen so far have the following variables: ``` "ROOT_PATH": "~/.deeppavlov", "DOWNLOADS_PATH": "{ROOT_PATH}/downloa...
diff --git a/deeppavlov/core/commands/utils.py b/deeppavlov/core/commands/utils.py --- a/deeppavlov/core/commands/utils.py +++ b/deeppavlov/core/commands/utils.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissi...
{"golden_diff": "diff --git a/deeppavlov/core/commands/utils.py b/deeppavlov/core/commands/utils.py\n--- a/deeppavlov/core/commands/utils.py\n+++ b/deeppavlov/core/commands/utils.py\n@@ -11,6 +11,7 @@\n # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n # See the License for the specific langu...
1,060
264
gh_patches_debug_37231
rasdani/github-patches
git_diff
opendatacube__datacube-core-982
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Extra files in source distribution packaging `python setup.py sdist` builds source distribution with docs and tests and bunch of random files in it, that should not be included. Strangely `bdist_wheel` does n...
diff --git a/datacube/utils/xarray_geoextensions.py b/datacube/utils/xarray_geoextensions.py --- a/datacube/utils/xarray_geoextensions.py +++ b/datacube/utils/xarray_geoextensions.py @@ -9,9 +9,8 @@ `.geobox`, `.affine` and `.extent` respectively. """ - +import warnings import xarray - from datacube.utils import ...
{"golden_diff": "diff --git a/datacube/utils/xarray_geoextensions.py b/datacube/utils/xarray_geoextensions.py\n--- a/datacube/utils/xarray_geoextensions.py\n+++ b/datacube/utils/xarray_geoextensions.py\n@@ -9,9 +9,8 @@\n `.geobox`, `.affine` and `.extent` respectively.\n \n \"\"\"\n-\n+import warnings\n import xarray\n...
2,026
690
gh_patches_debug_13961
rasdani/github-patches
git_diff
jazzband__pip-tools-2083
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [TODO][CI][pip upstream changes] Fix failing nightlies running against `pip`'s `main` branch Failure example: https://github.com/jazzband/pip-tools/actions/runs/8794562108/job/24134206791 --- END ISSUE --- ...
diff --git a/piptools/exceptions.py b/piptools/exceptions.py --- a/piptools/exceptions.py +++ b/piptools/exceptions.py @@ -1,5 +1,6 @@ from __future__ import annotations +import operator from typing import Iterable from pip._internal.index.package_finder import PackageFinder @@ -27,7 +28,9 @@ versions =...
{"golden_diff": "diff --git a/piptools/exceptions.py b/piptools/exceptions.py\n--- a/piptools/exceptions.py\n+++ b/piptools/exceptions.py\n@@ -1,5 +1,6 @@\n from __future__ import annotations\n \n+import operator\n from typing import Iterable\n \n from pip._internal.index.package_finder import PackageFinder\n@@ -27,7 +...
1,024
155
gh_patches_debug_32237
rasdani/github-patches
git_diff
dmlc__dgl-5059
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Sparse] Create a mock implementation in mock_sparse for BSDDMM. ## 🔨Work Item **IMPORTANT:** * This template is only for dev team to track project progress. For feature request or bug report, please use...
diff --git a/python/dgl/mock_sparse/sddmm.py b/python/dgl/mock_sparse/sddmm.py --- a/python/dgl/mock_sparse/sddmm.py +++ b/python/dgl/mock_sparse/sddmm.py @@ -1,9 +1,9 @@ """Sampled Dense-Dense Matrix Multiplication (SDDMM) operator module.""" import torch -from .sp_matrix import SparseMatrix +from .sp_matrix impor...
{"golden_diff": "diff --git a/python/dgl/mock_sparse/sddmm.py b/python/dgl/mock_sparse/sddmm.py\n--- a/python/dgl/mock_sparse/sddmm.py\n+++ b/python/dgl/mock_sparse/sddmm.py\n@@ -1,9 +1,9 @@\n \"\"\"Sampled Dense-Dense Matrix Multiplication (SDDMM) operator module.\"\"\"\n import torch\n \n-from .sp_matrix import Spars...
1,031
812
gh_patches_debug_38783
rasdani/github-patches
git_diff
aws__aws-sam-cli-1030
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `sam build` for Gradle using gradlew does not work with --use-container <!-- Make sure we don't have an existing Issue that reports the bug you are seeing (both open and closed). If you do find an existing ...
diff --git a/samcli/local/docker/lambda_build_container.py b/samcli/local/docker/lambda_build_container.py --- a/samcli/local/docker/lambda_build_container.py +++ b/samcli/local/docker/lambda_build_container.py @@ -46,6 +46,18 @@ container_dirs = LambdaBuildContainer._get_container_dirs(source_dir, manifest_...
{"golden_diff": "diff --git a/samcli/local/docker/lambda_build_container.py b/samcli/local/docker/lambda_build_container.py\n--- a/samcli/local/docker/lambda_build_container.py\n+++ b/samcli/local/docker/lambda_build_container.py\n@@ -46,6 +46,18 @@\n \n container_dirs = LambdaBuildContainer._get_container_dirs...
1,920
754
gh_patches_debug_224
rasdani/github-patches
git_diff
TheAlgorithms__Python-7390
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [PYTEST WARNING] Horn schunk ### Feature description @skief @poyea Please could you resolve this warning ``` computer_vision/horn_schunck.py:15 /home/runner/work/Python/Python/computer_vision/horn_sch...
diff --git a/computer_vision/horn_schunck.py b/computer_vision/horn_schunck.py --- a/computer_vision/horn_schunck.py +++ b/computer_vision/horn_schunck.py @@ -12,7 +12,7 @@ from typing import SupportsIndex import numpy as np -from scipy.ndimage.filters import convolve +from scipy.ndimage import convolve def wa...
{"golden_diff": "diff --git a/computer_vision/horn_schunck.py b/computer_vision/horn_schunck.py\n--- a/computer_vision/horn_schunck.py\n+++ b/computer_vision/horn_schunck.py\n@@ -12,7 +12,7 @@\n from typing import SupportsIndex\n \n import numpy as np\n-from scipy.ndimage.filters import convolve\n+from scipy.ndimage im...
1,961
101
gh_patches_debug_8938
rasdani/github-patches
git_diff
pre-commit__pre-commit-1448
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unhandled yaml.scanner.ScannerError when trying autoupdate with a malformed pre-commit config In migrate_config.py we catch `yaml.YAMLError` on [lines 31-36](https://github.com/pre-commit/pre-commit/blob/mast...
diff --git a/pre_commit/commands/migrate_config.py b/pre_commit/commands/migrate_config.py --- a/pre_commit/commands/migrate_config.py +++ b/pre_commit/commands/migrate_config.py @@ -2,6 +2,7 @@ import yaml +from pre_commit.clientlib import load_config from pre_commit.util import yaml_load @@ -43,6 +44,9 @@ ...
{"golden_diff": "diff --git a/pre_commit/commands/migrate_config.py b/pre_commit/commands/migrate_config.py\n--- a/pre_commit/commands/migrate_config.py\n+++ b/pre_commit/commands/migrate_config.py\n@@ -2,6 +2,7 @@\n \n import yaml\n \n+from pre_commit.clientlib import load_config\n from pre_commit.util import yaml_loa...
1,524
147
gh_patches_debug_60346
rasdani/github-patches
git_diff
graspologic-org__graspologic-366
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- returning test statistic in LDT some practitioners (read: Vince, cep) only care about the test statistic and not the p-value. obviously one can still extract it if they perform the full test. however, that wa...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ "scipy>=1.1.0", "seaborn>=0.9.0", "matplotlib>=3.0.0", - "hyppo>=0.1.2", + "hyppo>=0.1.3", ]
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -18,7 +18,7 @@\n \"scipy>=1.1.0\",\n \"seaborn>=0.9.0\",\n \"matplotlib>=3.0.0\",\n- \"hyppo>=0.1.2\",\n+ \"hyppo>=0.1.3\",\n ]\n", "issue": "returning test statistic in LDT\nsome practitioners (read: Vince, cep) onl...
1,103
90
gh_patches_debug_17961
rasdani/github-patches
git_diff
pytorch__tnt-101
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AverageValueMeter returns incorrect results when `tensor` is passed Based on [this thread](https://discuss.pytorch.org/t/confusing-result-about-meter-averagevaluemeter/21819) it seems as if the internal membe...
diff --git a/torchnet/meter/averagevaluemeter.py b/torchnet/meter/averagevaluemeter.py --- a/torchnet/meter/averagevaluemeter.py +++ b/torchnet/meter/averagevaluemeter.py @@ -18,14 +18,15 @@ if self.n == 0: self.mean, self.std = np.nan, np.nan elif self.n == 1: - self.mean, sel...
{"golden_diff": "diff --git a/torchnet/meter/averagevaluemeter.py b/torchnet/meter/averagevaluemeter.py\n--- a/torchnet/meter/averagevaluemeter.py\n+++ b/torchnet/meter/averagevaluemeter.py\n@@ -18,14 +18,15 @@\n if self.n == 0:\n self.mean, self.std = np.nan, np.nan\n elif self.n == 1:\n- ...
796
274
gh_patches_debug_5898
rasdani/github-patches
git_diff
pytorch__pytorch-4414
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- UnboundLocalError: local variable 'distutils' referenced before assignment This error happens building from source in Linux. Introduced in https://github.com/pytorch/pytorch/pull/3993 --- END ISSUE --- Belo...
diff --git a/tools/setup_helpers/ninja_builder.py b/tools/setup_helpers/ninja_builder.py --- a/tools/setup_helpers/ninja_builder.py +++ b/tools/setup_helpers/ninja_builder.py @@ -73,6 +73,7 @@ orig_link = orig_compiler.link orig_spawn = orig_compiler.spawn else: + import di...
{"golden_diff": "diff --git a/tools/setup_helpers/ninja_builder.py b/tools/setup_helpers/ninja_builder.py\n--- a/tools/setup_helpers/ninja_builder.py\n+++ b/tools/setup_helpers/ninja_builder.py\n@@ -73,6 +73,7 @@\n orig_link = orig_compiler.link\n orig_spawn = orig_compiler.spawn\n else:...
1,911
113
gh_patches_debug_24187
rasdani/github-patches
git_diff
vega__altair-1539
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support built-in vega themes See [vega-themes](https://github.com/vega/vega-themes). Themes should be supported via the current theme infrastructure, maybe something like this: ```python alt.themes.enable('...
diff --git a/altair/vegalite/v3/theme.py b/altair/vegalite/v3/theme.py --- a/altair/vegalite/v3/theme.py +++ b/altair/vegalite/v3/theme.py @@ -2,6 +2,23 @@ from ...utils.theme import ThemeRegistry +VEGA_THEMES = ['ggplot2', 'quartz', 'vox', 'fivethirtyeight', 'dark', 'latimes'] + + +class VegaTheme(object): + "...
{"golden_diff": "diff --git a/altair/vegalite/v3/theme.py b/altair/vegalite/v3/theme.py\n--- a/altair/vegalite/v3/theme.py\n+++ b/altair/vegalite/v3/theme.py\n@@ -2,6 +2,23 @@\n \n from ...utils.theme import ThemeRegistry\n \n+VEGA_THEMES = ['ggplot2', 'quartz', 'vox', 'fivethirtyeight', 'dark', 'latimes']\n+\n+\n+clas...
574
351
gh_patches_debug_22033
rasdani/github-patches
git_diff
searx__searx-1689
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Google Images & DeviantArt don't work anymore From one day to another, Google Images and DeviantArt stopped to show me anything, even with simple searches. ![Screenshot_1](https://user-images.githubuserconte...
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py --- a/searx/engines/google_images.py +++ b/searx/engines/google_images.py @@ -70,11 +70,21 @@ try: metadata = loads(result) - img_format = "{0} {1}x{2}".format(metadata['ity'], str(metadata['ow']), str(metada...
{"golden_diff": "diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py\n--- a/searx/engines/google_images.py\n+++ b/searx/engines/google_images.py\n@@ -70,11 +70,21 @@\n \n try:\n metadata = loads(result)\n- img_format = \"{0} {1}x{2}\".format(metadata['ity'], str(m...
1,268
288
gh_patches_debug_20225
rasdani/github-patches
git_diff
pyro-ppl__pyro-2228
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Student T tests fail on GPU [bug] ```self = MultivariateStudentT(df: 1.5, loc: torch.Size([2]), scale_tril: torch.Size([2, 2])) sample_shape = torch.Size([]) def rsample(self, sample_shape=torch.Size(...
diff --git a/pyro/distributions/multivariate_studentt.py b/pyro/distributions/multivariate_studentt.py --- a/pyro/distributions/multivariate_studentt.py +++ b/pyro/distributions/multivariate_studentt.py @@ -2,7 +2,7 @@ import torch from torch.distributions import constraints -from torch.distributions.utils import b...
{"golden_diff": "diff --git a/pyro/distributions/multivariate_studentt.py b/pyro/distributions/multivariate_studentt.py\n--- a/pyro/distributions/multivariate_studentt.py\n+++ b/pyro/distributions/multivariate_studentt.py\n@@ -2,7 +2,7 @@\n \n import torch\n from torch.distributions import constraints\n-from torch.dist...
1,888
237
gh_patches_debug_22396
rasdani/github-patches
git_diff
freqtrade__freqtrade-5847
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Kucoin] {"code":"429000","msg":"Too Many Requests"}. Able to ignore this error and prevent DDOS protection? <!-- Have you searched for similar issues before posting it? If you have discovered a bug in t...
diff --git a/freqtrade/exchange/common.py b/freqtrade/exchange/common.py --- a/freqtrade/exchange/common.py +++ b/freqtrade/exchange/common.py @@ -81,9 +81,16 @@ count -= 1 kwargs.update({'count': count}) if isinstance(ex, DDosProtection): - backoff_...
{"golden_diff": "diff --git a/freqtrade/exchange/common.py b/freqtrade/exchange/common.py\n--- a/freqtrade/exchange/common.py\n+++ b/freqtrade/exchange/common.py\n@@ -81,9 +81,16 @@\n count -= 1\n kwargs.update({'count': count})\n if isinstance(ex, DDosProtection):\n- ...
1,994
308
gh_patches_debug_11817
rasdani/github-patches
git_diff
pytorch__pytorch-3139
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sparse SGD + momentum = cuda memory issue. When using classic SGD optimizer with momentum with sparse embeddings the memory keeps garbage collecting / allocating leading to slow down and out of memory error ...
diff --git a/torch/optim/sgd.py b/torch/optim/sgd.py --- a/torch/optim/sgd.py +++ b/torch/optim/sgd.py @@ -86,7 +86,8 @@ if momentum != 0: param_state = self.state[p] if 'momentum_buffer' not in param_state: - buf = param_state['momentum_...
{"golden_diff": "diff --git a/torch/optim/sgd.py b/torch/optim/sgd.py\n--- a/torch/optim/sgd.py\n+++ b/torch/optim/sgd.py\n@@ -86,7 +86,8 @@\n if momentum != 0:\n param_state = self.state[p]\n if 'momentum_buffer' not in param_state:\n- buf ...
1,669
166
gh_patches_debug_19947
rasdani/github-patches
git_diff
cowrie__cowrie-1463
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CEF spaces between each character I followed the 7 steps https://cowrie.readthedocs.io/en/latest/INSTALL.html#step-1-install-dependencies I set up cef in the config file ` [output_localsyslog] enabled ...
diff --git a/src/cowrie/output/localsyslog.py b/src/cowrie/output/localsyslog.py --- a/src/cowrie/output/localsyslog.py +++ b/src/cowrie/output/localsyslog.py @@ -45,6 +45,7 @@ def start(self): self.format = CowrieConfig().get('output_localsyslog', 'format') facilityString = CowrieConfig().get('o...
{"golden_diff": "diff --git a/src/cowrie/output/localsyslog.py b/src/cowrie/output/localsyslog.py\n--- a/src/cowrie/output/localsyslog.py\n+++ b/src/cowrie/output/localsyslog.py\n@@ -45,6 +45,7 @@\n def start(self):\n self.format = CowrieConfig().get('output_localsyslog', 'format')\n facilityString ...
1,973
239
gh_patches_debug_30442
rasdani/github-patches
git_diff
privacyidea__privacyidea-3324
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve the logging of SSH tokens If a user has many different SSH keys assigned on one machine for different ssh-users on this machine, this line gets logged for each SSH key, that is not used: https://gi...
diff --git a/privacyidea/lib/applications/ssh.py b/privacyidea/lib/applications/ssh.py --- a/privacyidea/lib/applications/ssh.py +++ b/privacyidea/lib/applications/ssh.py @@ -70,6 +70,8 @@ tokclass = toks[0] # We just return the ssh public key, so that # it...
{"golden_diff": "diff --git a/privacyidea/lib/applications/ssh.py b/privacyidea/lib/applications/ssh.py\n--- a/privacyidea/lib/applications/ssh.py\n+++ b/privacyidea/lib/applications/ssh.py\n@@ -70,6 +70,8 @@\n tokclass = toks[0]\n # We just return the ssh public key, so that\n ...
1,498
374
gh_patches_debug_20826
rasdani/github-patches
git_diff
dask__dask-1231
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add tests to package In `setup.py`, make sure `tests` subdirectories are included in the package (otherwise, it is not possible for a user with an installed version of dask to verify its integrity). --- END...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -14,6 +14,12 @@ } extras_require['complete'] = sorted(set(sum(extras_require.values(), []))) +packages = ['dask', 'dask.array', 'dask.bag', 'dask.store', 'dask.bytes', + 'dask.dataframe', 'dask.dataframe.tseries', 'dask.diagnostics'] + +te...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -14,6 +14,12 @@\n }\n extras_require['complete'] = sorted(set(sum(extras_require.values(), [])))\n \n+packages = ['dask', 'dask.array', 'dask.bag', 'dask.store', 'dask.bytes',\n+ 'dask.dataframe', 'dask.dataframe.tseries', ...
685
263
gh_patches_debug_14884
rasdani/github-patches
git_diff
python-discord__bot-1205
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: ` chars are not escaped when parsing !source ![Screenshot](https://arse.ee/zi7A9lec.png) When responding to faulty `!source` commands, the backticks aren't escaped and a formatting issue occurs. Th...
diff --git a/bot/exts/info/source.py b/bot/exts/info/source.py --- a/bot/exts/info/source.py +++ b/bot/exts/info/source.py @@ -2,7 +2,7 @@ from pathlib import Path from typing import Optional, Tuple, Union -from discord import Embed +from discord import Embed, utils from discord.ext import commands from bot.bot...
{"golden_diff": "diff --git a/bot/exts/info/source.py b/bot/exts/info/source.py\n--- a/bot/exts/info/source.py\n+++ b/bot/exts/info/source.py\n@@ -2,7 +2,7 @@\n from pathlib import Path\n from typing import Optional, Tuple, Union\n \n-from discord import Embed\n+from discord import Embed, utils\n from discord.ext impor...
1,654
195
gh_patches_debug_15470
rasdani/github-patches
git_diff
tensorflow__addons-567
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Build nightly from tf-nightly Currently we build against `tf-nightly-2.0-preview`. Now that TF2 is released we should switch to `tf-nightly` once we confirm that the switch has been made. --- END ISSUE --- ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -69,15 +69,11 @@ if project_name == TFA_RELEASE: # TODO: remove if-else condition when tf supports package consolidation. if platform.system() == 'Linux': - REQUIRED_PACKAGES.append('tensorflow-gpu == 2.0.0-rc0') + REQUIRED_PACKA...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -69,15 +69,11 @@\n if project_name == TFA_RELEASE:\n # TODO: remove if-else condition when tf supports package consolidation.\n if platform.system() == 'Linux':\n- REQUIRED_PACKAGES.append('tensorflow-gpu == 2.0.0-rc0')...
1,483
237
gh_patches_debug_34765
rasdani/github-patches
git_diff
crytic__slither-1909
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] contract reports ether as locked when ether is sent in Yul The following contract reports ether as locked despite it being sent in a Yul block ``` contract FPLockedEther { receive() payable externa...
diff --git a/slither/detectors/attributes/locked_ether.py b/slither/detectors/attributes/locked_ether.py --- a/slither/detectors/attributes/locked_ether.py +++ b/slither/detectors/attributes/locked_ether.py @@ -3,7 +3,7 @@ """ from typing import List -from slither.core.declarations.contract import Contract +from sl...
{"golden_diff": "diff --git a/slither/detectors/attributes/locked_ether.py b/slither/detectors/attributes/locked_ether.py\n--- a/slither/detectors/attributes/locked_ether.py\n+++ b/slither/detectors/attributes/locked_ether.py\n@@ -3,7 +3,7 @@\n \"\"\"\n from typing import List\n \n-from slither.core.declarations.contra...
1,643
485
gh_patches_debug_22330
rasdani/github-patches
git_diff
comic__grand-challenge.org-1744
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Markdown preview fails CSRF validation checks Caused by the name change of the CSRF cookie. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain ...
diff --git a/app/grandchallenge/core/widgets.py b/app/grandchallenge/core/widgets.py --- a/app/grandchallenge/core/widgets.py +++ b/app/grandchallenge/core/widgets.py @@ -26,23 +26,29 @@ class MarkdownEditorWidget(MarkdownxWidget): - class Media(MarkdownxWidget.Media): - js = [ - *MarkdownxWid...
{"golden_diff": "diff --git a/app/grandchallenge/core/widgets.py b/app/grandchallenge/core/widgets.py\n--- a/app/grandchallenge/core/widgets.py\n+++ b/app/grandchallenge/core/widgets.py\n@@ -26,23 +26,29 @@\n \n \n class MarkdownEditorWidget(MarkdownxWidget):\n- class Media(MarkdownxWidget.Media):\n- js = [\n...
685
355
gh_patches_debug_31054
rasdani/github-patches
git_diff
robocorp__rpaframework-662
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `RPA.core.webdriver` used by Selenium can't download latest Mac arm64 webdriver 💻 System affected: M1/M2 Macs with no working `chromedriver` available in PATH under Chrome browser version **106.0.5249.61** a...
diff --git a/packages/core/src/RPA/core/webdriver.py b/packages/core/src/RPA/core/webdriver.py --- a/packages/core/src/RPA/core/webdriver.py +++ b/packages/core/src/RPA/core/webdriver.py @@ -7,6 +7,7 @@ from typing import Optional import requests +from packaging import version from requests import Response from s...
{"golden_diff": "diff --git a/packages/core/src/RPA/core/webdriver.py b/packages/core/src/RPA/core/webdriver.py\n--- a/packages/core/src/RPA/core/webdriver.py\n+++ b/packages/core/src/RPA/core/webdriver.py\n@@ -7,6 +7,7 @@\n from typing import Optional\n \n import requests\n+from packaging import version\n from request...
1,824
441
gh_patches_debug_7037
rasdani/github-patches
git_diff
DataDog__dd-trace-py-1080
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Exception raised with sizeof of some spans With `master`: ``` Exception in thread AgentWriter: Traceback (most recent call last): File "/opt/dogweb/pyenv/versions/2.7.12/lib/python2.7/threading.py", l...
diff --git a/ddtrace/utils/sizeof.py b/ddtrace/utils/sizeof.py --- a/ddtrace/utils/sizeof.py +++ b/ddtrace/utils/sizeof.py @@ -2,10 +2,16 @@ import sys from itertools import chain +_UNSET = object() + def iter_object(o): if hasattr(o, '__slots__'): - return (getattr(o, slot) for slot in o.__slots__) ...
{"golden_diff": "diff --git a/ddtrace/utils/sizeof.py b/ddtrace/utils/sizeof.py\n--- a/ddtrace/utils/sizeof.py\n+++ b/ddtrace/utils/sizeof.py\n@@ -2,10 +2,16 @@\n import sys\n from itertools import chain\n \n+_UNSET = object()\n+\n \n def iter_object(o):\n if hasattr(o, '__slots__'):\n- return (getattr(o, sl...
1,068
161
gh_patches_debug_5790
rasdani/github-patches
git_diff
googleapis__google-auth-library-python-175
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- GCE metadata ping taking ~75 seconds, not timing out after 3 seconds google-api-python-client: 1.6.2 python version: 3.5.2 ``` from google.auth.compute_engine import _metadata import google.auth.transpo...
diff --git a/google/auth/transport/_http_client.py b/google/auth/transport/_http_client.py --- a/google/auth/transport/_http_client.py +++ b/google/auth/transport/_http_client.py @@ -94,7 +94,7 @@ 'http.client transport only supports the http scheme, {}' 'was specified'.format(parts.sc...
{"golden_diff": "diff --git a/google/auth/transport/_http_client.py b/google/auth/transport/_http_client.py\n--- a/google/auth/transport/_http_client.py\n+++ b/google/auth/transport/_http_client.py\n@@ -94,7 +94,7 @@\n 'http.client transport only supports the http scheme, {}'\n 'was spec...
1,503
128
gh_patches_debug_30707
rasdani/github-patches
git_diff
encode__starlette-1147
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Session cookie should use root path The session cookie currently uses '/'. It should really use the ASGI root path instead, in case the application is submounted. --- END ISSUE --- Below are some code segm...
diff --git a/starlette/middleware/sessions.py b/starlette/middleware/sessions.py --- a/starlette/middleware/sessions.py +++ b/starlette/middleware/sessions.py @@ -49,14 +49,16 @@ async def send_wrapper(message: Message) -> None: if message["type"] == "http.response.start": + path ...
{"golden_diff": "diff --git a/starlette/middleware/sessions.py b/starlette/middleware/sessions.py\n--- a/starlette/middleware/sessions.py\n+++ b/starlette/middleware/sessions.py\n@@ -49,14 +49,16 @@\n \n async def send_wrapper(message: Message) -> None:\n if message[\"type\"] == \"http.response.star...
1,096
340
gh_patches_debug_16146
rasdani/github-patches
git_diff
Nitrate__Nitrate-166
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Installing files under /etc yields SandboxViolation in virtualenv In one of my environments installing a newer version of Nitrate yields: ``` remote: error: Setup script exited with error: SandboxViolation:...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- -import os from setuptools import setup, find_packages import tcms @@ -20,6 +19,7 @@ requires.append(dep_line) return requires, links + install_requires, dependency_links = get_inst...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,6 +1,5 @@\n # -*- coding: utf-8 -*-\n \n-import os\n from setuptools import setup, find_packages\n \n import tcms\n@@ -20,6 +19,7 @@\n requires.append(dep_line)\n return requires, links\n \n+\n install_requi...
860
171
gh_patches_debug_34419
rasdani/github-patches
git_diff
intel__dffml-567
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- docs: operations: model_predict example usage We need a doctestable example for the `model_predict`/`dffml.model.predict` operation. References: https://intel.github.io/dffml/master/plugins/dffml_operation...
diff --git a/dffml/operation/model.py b/dffml/operation/model.py --- a/dffml/operation/model.py +++ b/dffml/operation/model.py @@ -35,6 +35,62 @@ ctx_enter={"mctx": (lambda self: self.parent.model())}, ) async def model_predict(self, features: Dict[str, Any]) -> Dict[str, Any]: + """ + Predict using dffml ...
{"golden_diff": "diff --git a/dffml/operation/model.py b/dffml/operation/model.py\n--- a/dffml/operation/model.py\n+++ b/dffml/operation/model.py\n@@ -35,6 +35,62 @@\n ctx_enter={\"mctx\": (lambda self: self.parent.model())},\n )\n async def model_predict(self, features: Dict[str, Any]) -> Dict[str, Any]:\n+ \"\...
1,001
707
gh_patches_debug_4622
rasdani/github-patches
git_diff
scikit-hep__pyhf-1083
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Migrate from bumpversion to bump2version # Description @dguest has brought to my attention that [`bumpversion` is no longer maintained](https://github.com/peritus/bumpversion) (as of apparently November 20...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -65,7 +65,7 @@ extras_require['docs'] + extras_require['lint'] + extras_require['test'] - + ['nbdime', 'bumpversion', 'ipython', 'pre-commit', 'check-manifest', 'twine'] + + ['nbdime', 'bump2version', 'ipython', '...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -65,7 +65,7 @@\n extras_require['docs']\n + extras_require['lint']\n + extras_require['test']\n- + ['nbdime', 'bumpversion', 'ipython', 'pre-commit', 'check-manifest', 'twine']\n+ + ['nbdime', 'bu...
1,158
132
gh_patches_debug_19873
rasdani/github-patches
git_diff
CTFd__CTFd-2067
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Size limits on logo, favicon, image uploads Sometimes people upload really big images for small things like the logo or the favicon. We should impose some kind of size limit or automatic resizing. --- END I...
diff --git a/CTFd/forms/setup.py b/CTFd/forms/setup.py --- a/CTFd/forms/setup.py +++ b/CTFd/forms/setup.py @@ -49,16 +49,18 @@ ctf_logo = FileField( "Logo", - description="Logo to use for the website instead of a CTF name. Used as the home page button.", + description="Logo to use for the ...
{"golden_diff": "diff --git a/CTFd/forms/setup.py b/CTFd/forms/setup.py\n--- a/CTFd/forms/setup.py\n+++ b/CTFd/forms/setup.py\n@@ -49,16 +49,18 @@\n \n ctf_logo = FileField(\n \"Logo\",\n- description=\"Logo to use for the website instead of a CTF name. Used as the home page button.\",\n+ desc...
987
294
gh_patches_debug_28186
rasdani/github-patches
git_diff
bridgecrewio__checkov-93
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Dynamic blocks handling is partial **Describe the bug** An S3 bucket with a dynamic `logging` block is considered a violation, even if a value was set for the variable externally. **To Reproduce** Steps ...
diff --git a/checkov/terraform/parser.py b/checkov/terraform/parser.py --- a/checkov/terraform/parser.py +++ b/checkov/terraform/parser.py @@ -18,13 +18,18 @@ try: with(open(tf_file, 'r')) as file: file.seek(0) - dict ...
{"golden_diff": "diff --git a/checkov/terraform/parser.py b/checkov/terraform/parser.py\n--- a/checkov/terraform/parser.py\n+++ b/checkov/terraform/parser.py\n@@ -18,13 +18,18 @@\n try:\n with(open(tf_file, 'r')) as file:\n file.seek(0)\n- ...
1,114
287
gh_patches_debug_15817
rasdani/github-patches
git_diff
OpenMined__PySyft-3588
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Disable manual register() ids in syft.grid.register() **Is your feature request related to a problem? Please describe.** It is a security risk for people to specify their own IDs given that GridNetwork will ...
diff --git a/syft/grid/__init__.py b/syft/grid/__init__.py --- a/syft/grid/__init__.py +++ b/syft/grid/__init__.py @@ -1,13 +1,12 @@ from .network import Network +import uuid DEFAULT_NETWORK_URL = "ws://ec2-13-59-45-128.us-east-2.compute.amazonaws.com" -def register(node_id: str, **kwargs): +def register(**kwar...
{"golden_diff": "diff --git a/syft/grid/__init__.py b/syft/grid/__init__.py\n--- a/syft/grid/__init__.py\n+++ b/syft/grid/__init__.py\n@@ -1,13 +1,12 @@\n from .network import Network\n+import uuid\n \n DEFAULT_NETWORK_URL = \"ws://ec2-13-59-45-128.us-east-2.compute.amazonaws.com\"\n \n \n-def register(node_id: str, **...
550
219
gh_patches_debug_22494
rasdani/github-patches
git_diff
tobymao__sqlglot-3129
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Athena Iceberg Tables parsing issue Hi, I want to parse a SQL Statement that creates an Iceberg table on Athena: ```sql create table if not exists tmp.mytable ( name string ) location 's3://bucket...
diff --git a/sqlglot/dialects/athena.py b/sqlglot/dialects/athena.py --- a/sqlglot/dialects/athena.py +++ b/sqlglot/dialects/athena.py @@ -1,5 +1,6 @@ from __future__ import annotations +from sqlglot import exp from sqlglot.dialects.trino import Trino from sqlglot.tokens import TokenType @@ -10,3 +11,27 @@ ...
{"golden_diff": "diff --git a/sqlglot/dialects/athena.py b/sqlglot/dialects/athena.py\n--- a/sqlglot/dialects/athena.py\n+++ b/sqlglot/dialects/athena.py\n@@ -1,5 +1,6 @@\n from __future__ import annotations\n \n+from sqlglot import exp\n from sqlglot.dialects.trino import Trino\n from sqlglot.tokens import TokenType\n...
690
341
gh_patches_debug_25411
rasdani/github-patches
git_diff
scikit-hep__pyhf-338
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add README to PyPI # Description At the moment we have no README for the [PyPI page](https://pypi.org/project/pyhf/0.0.15/). The addition of one would be a nice touch (even though I assume that most users ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,6 +1,11 @@ #!/usr/bin/env python from setuptools import setup, find_packages +from os import path + +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README.md'), encoding='utf-8') as readme_md: + long...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,6 +1,11 @@\n #!/usr/bin/env python\n \n from setuptools import setup, find_packages\n+from os import path\n+\n+this_directory = path.abspath(path.dirname(__file__))\n+with open(path.join(this_directory, 'README.md'), encoding='utf-...
1,252
289
gh_patches_debug_7584
rasdani/github-patches
git_diff
pwndbg__pwndbg-774
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- QEMU uses binfmt root instead of pwndbg.qemu.root() This bit here should probably use pwndbg.qemu.root() instead of using the module variable directly: https://github.com/pwndbg/pwndbg/blob/609284cee279d...
diff --git a/pwndbg/file.py b/pwndbg/file.py --- a/pwndbg/file.py +++ b/pwndbg/file.py @@ -30,9 +30,9 @@ The local path to the file """ local_path = path - - if pwndbg.qemu.root(): - return os.path.join(pwndbg.qemu.binfmt_root, path) + qemu_root = pwndbg.qemu.root() + if qemu_root: + ...
{"golden_diff": "diff --git a/pwndbg/file.py b/pwndbg/file.py\n--- a/pwndbg/file.py\n+++ b/pwndbg/file.py\n@@ -30,9 +30,9 @@\n The local path to the file\n \"\"\"\n local_path = path\n-\n- if pwndbg.qemu.root():\n- return os.path.join(pwndbg.qemu.binfmt_root, path)\n+ qemu_root = pwndbg.qem...
1,621
160
gh_patches_debug_32529
rasdani/github-patches
git_diff
OpenMined__PySyft-2254
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Syft Keras bug on Windows Relevant slack discussion: https://openmined.slack.com/archives/C6DEWA4FR/p1559899875021800 Bug: ![image](https://user-images.githubusercontent.com/7891333/59118559-79fa9400-891e...
diff --git a/syft/workers/tfe.py b/syft/workers/tfe.py --- a/syft/workers/tfe.py +++ b/syft/workers/tfe.py @@ -1,12 +1,15 @@ """To be extended in the near future.""" from collections import OrderedDict import logging +import os import subprocess +import tempfile import tf_encrypted as tfe logger = logging.g...
{"golden_diff": "diff --git a/syft/workers/tfe.py b/syft/workers/tfe.py\n--- a/syft/workers/tfe.py\n+++ b/syft/workers/tfe.py\n@@ -1,12 +1,15 @@\n \"\"\"To be extended in the near future.\"\"\"\n from collections import OrderedDict\n import logging\n+import os\n import subprocess\n+import tempfile\n \n import tf_encryp...
1,550
442
gh_patches_debug_16541
rasdani/github-patches
git_diff
microsoft__botbuilder-python-2051
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Advancing msrest version dependency ### Use this [query](https://github.com/Microsoft/botbuilder-python/issues?q=is%3Aissue+is%3Aopen++label%3Afeature-request+) to search for the most popular feature requests...
diff --git a/libraries/botbuilder-schema/setup.py b/libraries/botbuilder-schema/setup.py --- a/libraries/botbuilder-schema/setup.py +++ b/libraries/botbuilder-schema/setup.py @@ -6,7 +6,7 @@ NAME = "botbuilder-schema" VERSION = os.environ["packageVersion"] if "packageVersion" in os.environ else "4.15.0" -REQUIRE...
{"golden_diff": "diff --git a/libraries/botbuilder-schema/setup.py b/libraries/botbuilder-schema/setup.py\n--- a/libraries/botbuilder-schema/setup.py\n+++ b/libraries/botbuilder-schema/setup.py\n@@ -6,7 +6,7 @@\n \r\n NAME = \"botbuilder-schema\"\r\n VERSION = os.environ[\"packageVersion\"] if \"packageVersion\" in os....
1,785
308
gh_patches_debug_15306
rasdani/github-patches
git_diff
great-expectations__great_expectations-2531
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of th...
diff --git a/great_expectations/expectations/metrics/column_aggregate_metrics/column_proportion_of_unique_values.py b/great_expectations/expectations/metrics/column_aggregate_metrics/column_proportion_of_unique_values.py --- a/great_expectations/expectations/metrics/column_aggregate_metrics/column_proportion_of_unique_...
{"golden_diff": "diff --git a/great_expectations/expectations/metrics/column_aggregate_metrics/column_proportion_of_unique_values.py b/great_expectations/expectations/metrics/column_aggregate_metrics/column_proportion_of_unique_values.py\n--- a/great_expectations/expectations/metrics/column_aggregate_metrics/column_pro...
930
253
gh_patches_debug_3587
rasdani/github-patches
git_diff
streamlit__streamlit-1942
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Crazy error message shown when two widgets have the same key # Steps to reproduce 1. Run this code ``` import streamlit as st st.button("OK") st.button("OK") ``` 2. Observe! ## Ex...
diff --git a/lib/streamlit/elements/utils.py b/lib/streamlit/elements/utils.py --- a/lib/streamlit/elements/utils.py +++ b/lib/streamlit/elements/utils.py @@ -90,7 +90,7 @@ added = ctx.widget_ids_this_run.add(widget_id) if not added: raise DuplicateWidgetID( - _build_duplic...
{"golden_diff": "diff --git a/lib/streamlit/elements/utils.py b/lib/streamlit/elements/utils.py\n--- a/lib/streamlit/elements/utils.py\n+++ b/lib/streamlit/elements/utils.py\n@@ -90,7 +90,7 @@\n added = ctx.widget_ids_this_run.add(widget_id)\n if not added:\n raise DuplicateWidgetID(\n- ...
1,858
112
gh_patches_debug_6408
rasdani/github-patches
git_diff
hpcaitech__ColossalAI-5228
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs....
diff --git a/applications/Colossal-LLaMA-2/colossal_llama2/tokenizer/init_tokenizer.py b/applications/Colossal-LLaMA-2/colossal_llama2/tokenizer/init_tokenizer.py --- a/applications/Colossal-LLaMA-2/colossal_llama2/tokenizer/init_tokenizer.py +++ b/applications/Colossal-LLaMA-2/colossal_llama2/tokenizer/init_tokenizer....
{"golden_diff": "diff --git a/applications/Colossal-LLaMA-2/colossal_llama2/tokenizer/init_tokenizer.py b/applications/Colossal-LLaMA-2/colossal_llama2/tokenizer/init_tokenizer.py\n--- a/applications/Colossal-LLaMA-2/colossal_llama2/tokenizer/init_tokenizer.py\n+++ b/applications/Colossal-LLaMA-2/colossal_llama2/tokeni...
1,249
191
gh_patches_debug_7274
rasdani/github-patches
git_diff
cupy__cupy-186
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make cupy.sort support arrays with rank two or more. # Background Arrays sorted with `cupy.sort` operation have some properties such as dtype, rank, sorting axis and C/F-contiguousness. Currently, `cupy.sort...
diff --git a/cupy/sorting/sort.py b/cupy/sorting/sort.py --- a/cupy/sorting/sort.py +++ b/cupy/sorting/sort.py @@ -15,9 +15,9 @@ cupy.ndarray: Array of the same type and shape as ``a``. .. note:: - For its implementation reason, ``cupy.sort`` currently supports only - arrays with their rank ...
{"golden_diff": "diff --git a/cupy/sorting/sort.py b/cupy/sorting/sort.py\n--- a/cupy/sorting/sort.py\n+++ b/cupy/sorting/sort.py\n@@ -15,9 +15,9 @@\n cupy.ndarray: Array of the same type and shape as ``a``.\n \n .. note::\n- For its implementation reason, ``cupy.sort`` currently supports only\n- ...
1,552
176
gh_patches_debug_14378
rasdani/github-patches
git_diff
Lightning-AI__torchmetrics-1649
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pearson Correlation Coefficient raises error when 2D tensor but single task ## 🐛 Bug I have a regression based modelling repository where the predictions can be multi-output or single-output based on conf...
diff --git a/src/torchmetrics/functional/regression/utils.py b/src/torchmetrics/functional/regression/utils.py --- a/src/torchmetrics/functional/regression/utils.py +++ b/src/torchmetrics/functional/regression/utils.py @@ -21,7 +21,9 @@ f"Expected both predictions and target to be either 1- or 2-dimensiona...
{"golden_diff": "diff --git a/src/torchmetrics/functional/regression/utils.py b/src/torchmetrics/functional/regression/utils.py\n--- a/src/torchmetrics/functional/regression/utils.py\n+++ b/src/torchmetrics/functional/regression/utils.py\n@@ -21,7 +21,9 @@\n f\"Expected both predictions and target to be eit...
1,188
231
gh_patches_debug_27807
rasdani/github-patches
git_diff
nilearn__nilearn-2214
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Python 3.5 deprecation FutureWarning in Nilearn 0.6.0 Python 3.5 will be EOL'd in September 2020. I will add a FutureWarning before release of Nilearn 0.6.0 stable, and we can drop support for it for Nilearn ...
diff --git a/nilearn/__init__.py b/nilearn/__init__.py --- a/nilearn/__init__.py +++ b/nilearn/__init__.py @@ -47,32 +47,21 @@ # see also https://github.com/scikit-learn/scikit-learn/pull/15020 os.environ.setdefault("KMP_INIT_AT_FORK", "FALSE") -def _py2_deprecation_warning(): - py2_warning = ('Python2 support i...
{"golden_diff": "diff --git a/nilearn/__init__.py b/nilearn/__init__.py\n--- a/nilearn/__init__.py\n+++ b/nilearn/__init__.py\n@@ -47,32 +47,21 @@\n # see also https://github.com/scikit-learn/scikit-learn/pull/15020\n os.environ.setdefault(\"KMP_INIT_AT_FORK\", \"FALSE\")\n \n-def _py2_deprecation_warning():\n- py2_...
1,599
468
gh_patches_debug_350
rasdani/github-patches
git_diff
scikit-image__scikit-image-1124
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NameError on del version when init has ImportError In `__init__.py`, `del version` gives `NameError` when `ImportError` happens. ``` try: from .version import version as __version__ except ImportError: ...
diff --git a/skimage/__init__.py b/skimage/__init__.py --- a/skimage/__init__.py +++ b/skimage/__init__.py @@ -69,7 +69,8 @@ from .version import version as __version__ except ImportError: __version__ = "unbuilt-dev" -del version +else: + del version try:
{"golden_diff": "diff --git a/skimage/__init__.py b/skimage/__init__.py\n--- a/skimage/__init__.py\n+++ b/skimage/__init__.py\n@@ -69,7 +69,8 @@\n from .version import version as __version__\n except ImportError:\n __version__ = \"unbuilt-dev\"\n-del version\n+else:\n+ del version\n \n \n try:\n", "issue": "...
1,935
89
gh_patches_debug_21874
rasdani/github-patches
git_diff
streamlink__streamlink-3459
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- No man page with pip install ### Checklist - [ ] This is a bug report. - [x] This is a feature request. - [ ] This is a plugin (improvement) request. - [x] I have read the contribution guidelines. ##...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -8,6 +8,7 @@ import versioneer +data_files = [] deps = [ "requests>=2.21.0,<3.0", "isodate", @@ -63,6 +64,19 @@ entry_points["gui_scripts"] = ["streamlinkw=streamlink_cli.main:main"] +additional_files = [ + ("share/man/man1", ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -8,6 +8,7 @@\n import versioneer\n \n \n+data_files = []\n deps = [\n \"requests>=2.21.0,<3.0\",\n \"isodate\",\n@@ -63,6 +64,19 @@\n entry_points[\"gui_scripts\"] = [\"streamlinkw=streamlink_cli.main:main\"]\n \n \n+addit...
1,631
272