problem_id
stringlengths
18
22
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
58
prompt
stringlengths
1.1k
25.4k
golden_diff
stringlengths
145
5.13k
verification_info
stringlengths
582
39.1k
num_tokens
int64
271
4.1k
num_tokens_diff
int64
47
1.02k
gh_patches_debug_23904
rasdani/github-patches
git_diff
Lightning-AI__torchmetrics-847
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- TweedieDevianceScore producing nan results when setting power=1.0 ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> ### To Reproduce ```>>> td=TweedieDevianceScore(power=1.0) >>...
diff --git a/torchmetrics/functional/regression/tweedie_deviance.py b/torchmetrics/functional/regression/tweedie_deviance.py --- a/torchmetrics/functional/regression/tweedie_deviance.py +++ b/torchmetrics/functional/regression/tweedie_deviance.py @@ -19,6 +19,13 @@ from torchmetrics.utilities.checks import _check_same...
{"golden_diff": "diff --git a/torchmetrics/functional/regression/tweedie_deviance.py b/torchmetrics/functional/regression/tweedie_deviance.py\n--- a/torchmetrics/functional/regression/tweedie_deviance.py\n+++ b/torchmetrics/functional/regression/tweedie_deviance.py\n@@ -19,6 +19,13 @@\n from torchmetrics.utilities.chec...
2,432
330
gh_patches_debug_2684
rasdani/github-patches
git_diff
CTFd__CTFd-1918
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Users in admin scoreboard show user position instead of team position In teams mode on the admin panel, users are shown with their user position on the scoreboard instead of their teams position. We should be...
diff --git a/CTFd/admin/users.py b/CTFd/admin/users.py --- a/CTFd/admin/users.py +++ b/CTFd/admin/users.py @@ -88,8 +88,8 @@ awards = user.get_awards(admin=True) # Get user properties - score = user.get_score(admin=True) - place = user.get_place(admin=True) + score = user.account.get_score(admin=Tr...
{"golden_diff": "diff --git a/CTFd/admin/users.py b/CTFd/admin/users.py\n--- a/CTFd/admin/users.py\n+++ b/CTFd/admin/users.py\n@@ -88,8 +88,8 @@\n awards = user.get_awards(admin=True)\n \n # Get user properties\n- score = user.get_score(admin=True)\n- place = user.get_place(admin=True)\n+ score = user....
1,217
120
gh_patches_debug_37122
rasdani/github-patches
git_diff
graspologic-org__graspologic-559
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- singular_values_ attribute needed for MultipleASE class ## Expected Behavior MultipleASE should have an attribute that stores singular values for ease of generating scree plots, consistent with the other emb...
diff --git a/graspologic/embed/mase.py b/graspologic/embed/mase.py --- a/graspologic/embed/mase.py +++ b/graspologic/embed/mase.py @@ -87,6 +87,13 @@ scores_ : array, shape (n_samples, n_components, n_components) Estimated :math:`\hat{R}` matrices for each input graph. + singular_values_ : array, sha...
{"golden_diff": "diff --git a/graspologic/embed/mase.py b/graspologic/embed/mase.py\n--- a/graspologic/embed/mase.py\n+++ b/graspologic/embed/mase.py\n@@ -87,6 +87,13 @@\n scores_ : array, shape (n_samples, n_components, n_components)\n Estimated :math:`\\hat{R}` matrices for each input graph.\n \n+ sing...
3,103
589
gh_patches_debug_19064
rasdani/github-patches
git_diff
pymedusa__Medusa-10565
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Series not found in show ids (Medusa does not download subtiltes) Medusa gives this warning for a few of my shows, for example How I Met Your Father: 2022-02-13 23:36:54 WARNING Thread_0 :: [918cfe7] Series...
diff --git a/medusa/subtitle_providers/addic7ed.py b/medusa/subtitle_providers/addic7ed.py --- a/medusa/subtitle_providers/addic7ed.py +++ b/medusa/subtitle_providers/addic7ed.py @@ -166,7 +166,7 @@ series_year = '%s %d' % (series, year) if year is not None else series params = {'search': series_year,...
{"golden_diff": "diff --git a/medusa/subtitle_providers/addic7ed.py b/medusa/subtitle_providers/addic7ed.py\n--- a/medusa/subtitle_providers/addic7ed.py\n+++ b/medusa/subtitle_providers/addic7ed.py\n@@ -166,7 +166,7 @@\n series_year = '%s %d' % (series, year) if year is not None else series\n params = {...
4,079
274
gh_patches_debug_423
rasdani/github-patches
git_diff
napalm-automation__napalm-1681
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- IOS-XR get_lldp_neighbor_details does not support 'N/A' capabilities ### Description of Issue/Question The constants LLDP_CAPAB_TRANFORM_TABLE does not include 'N/A' of system capabilities. No checks for t...
diff --git a/napalm/base/constants.py b/napalm/base/constants.py --- a/napalm/base/constants.py +++ b/napalm/base/constants.py @@ -69,6 +69,7 @@ } LLDP_CAPAB_TRANFORM_TABLE = { "o": "other", + "n/a": "other", "p": "repeater", "b": "bridge", "w": "wlan-access-point",
{"golden_diff": "diff --git a/napalm/base/constants.py b/napalm/base/constants.py\n--- a/napalm/base/constants.py\n+++ b/napalm/base/constants.py\n@@ -69,6 +69,7 @@\n }\n LLDP_CAPAB_TRANFORM_TABLE = {\n \"o\": \"other\",\n+ \"n/a\": \"other\",\n \"p\": \"repeater\",\n \"b\": \"bridge\",\n \"w\": \"wl...
2,390
99
gh_patches_debug_5120
rasdani/github-patches
git_diff
translate__pootle-6751
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pootle Install I am a Pootle novice, I successfully installed it on the mac, but when i want to deploy to the production environment, the following installation error occurs. # Steps to reproduce: 1. I...
diff --git a/pootle/core/utils/version.py b/pootle/core/utils/version.py --- a/pootle/core/utils/version.py +++ b/pootle/core/utils/version.py @@ -228,10 +228,10 @@ 'feature/proper_version' """ branch = _shell_command(['/usr/bin/git', 'symbolic-ref', '-q', - 'HEAD']).strip() +...
{"golden_diff": "diff --git a/pootle/core/utils/version.py b/pootle/core/utils/version.py\n--- a/pootle/core/utils/version.py\n+++ b/pootle/core/utils/version.py\n@@ -228,10 +228,10 @@\n 'feature/proper_version'\n \"\"\"\n branch = _shell_command(['/usr/bin/git', 'symbolic-ref', '-q',\n- ...
3,285
137
gh_patches_debug_45049
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-contrib-1679
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Metrics instrumentation celery Relevant semconv: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/semantic_conventions/instrumentation/kafka.md --- END ISSUE --- ...
diff --git a/instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery/__init__.py b/instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery/__init__.py --- a/instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/...
{"golden_diff": "diff --git a/instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery/__init__.py b/instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery/__init__.py\n--- a/instrumentation/opentelemetry-instrumentation-celery/src/opentelemetr...
3,159
991
gh_patches_debug_7313
rasdani/github-patches
git_diff
MycroftAI__mycroft-core-1195
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Calling the pause() function does not pause the playback This [pause() function](https://github.com/MycroftAI/mycroft-core/blob/a9d627c979b98053719200c6084f3b31a9a97c62/mycroft/skills/audioservice.py#L83) doe...
diff --git a/mycroft/skills/audioservice.py b/mycroft/skills/audioservice.py --- a/mycroft/skills/audioservice.py +++ b/mycroft/skills/audioservice.py @@ -72,6 +72,10 @@ data={'tracks': tracks, 'utterance': utterance})) + def stop(self): +...
{"golden_diff": "diff --git a/mycroft/skills/audioservice.py b/mycroft/skills/audioservice.py\n--- a/mycroft/skills/audioservice.py\n+++ b/mycroft/skills/audioservice.py\n@@ -72,6 +72,10 @@\n data={'tracks': tracks,\n 'utterance': utterance}))\n ...
1,302
132
gh_patches_debug_62283
rasdani/github-patches
git_diff
keras-team__autokeras-1367
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Exception in multi label classification with StructuredDataClassifier ### Bug Description Multi label classification throws the following error when using `StructuredDataClassifier`: ``` ----------------...
diff --git a/autokeras/preprocessors/encoders.py b/autokeras/preprocessors/encoders.py --- a/autokeras/preprocessors/encoders.py +++ b/autokeras/preprocessors/encoders.py @@ -124,6 +124,7 @@ """Encoder for multi-label data.""" def __init__(self, **kwargs): + kwargs.pop("labels", None) super(...
{"golden_diff": "diff --git a/autokeras/preprocessors/encoders.py b/autokeras/preprocessors/encoders.py\n--- a/autokeras/preprocessors/encoders.py\n+++ b/autokeras/preprocessors/encoders.py\n@@ -124,6 +124,7 @@\n \"\"\"Encoder for multi-label data.\"\"\"\n \n def __init__(self, **kwargs):\n+ kwargs.pop(\...
2,715
112
gh_patches_debug_14746
rasdani/github-patches
git_diff
GoogleCloudPlatform__PerfKitBenchmarker-563
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Project id not respected when deleting disk in Cloudstack I forgot to pass project_id as an agrugment when deleting volume. --- END ISSUE --- Below are some code segments, each from a relevant file. One o...
diff --git a/perfkitbenchmarker/cloudstack/cloudstack_disk.py b/perfkitbenchmarker/cloudstack/cloudstack_disk.py --- a/perfkitbenchmarker/cloudstack/cloudstack_disk.py +++ b/perfkitbenchmarker/cloudstack/cloudstack_disk.py @@ -50,7 +50,7 @@ self.disk_offering_id = self._GetBestOfferingId(self.disk_size) asser...
{"golden_diff": "diff --git a/perfkitbenchmarker/cloudstack/cloudstack_disk.py b/perfkitbenchmarker/cloudstack/cloudstack_disk.py\n--- a/perfkitbenchmarker/cloudstack/cloudstack_disk.py\n+++ b/perfkitbenchmarker/cloudstack/cloudstack_disk.py\n@@ -50,7 +50,7 @@\n self.disk_offering_id = self._GetBestOfferingId(self....
1,415
198
gh_patches_debug_25894
rasdani/github-patches
git_diff
sopel-irc__sopel-2545
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Broken plugin symlink -> `PluginError` in CLI ### Description The `sopel-plugins` command should gracefully handle things that look like plugins but can't be loaded. It does this in some cases (like Python f...
diff --git a/sopel/plugins/__init__.py b/sopel/plugins/__init__.py --- a/sopel/plugins/__init__.py +++ b/sopel/plugins/__init__.py @@ -31,7 +31,9 @@ import collections import importlib import itertools +import logging import os +from typing import TYPE_CHECKING, Union # TODO: use stdlib importlib.metadata when p...
{"golden_diff": "diff --git a/sopel/plugins/__init__.py b/sopel/plugins/__init__.py\n--- a/sopel/plugins/__init__.py\n+++ b/sopel/plugins/__init__.py\n@@ -31,7 +31,9 @@\n import collections\n import importlib\n import itertools\n+import logging\n import os\n+from typing import TYPE_CHECKING, Union\n \n # TODO: use stdl...
3,435
331
gh_patches_debug_16233
rasdani/github-patches
git_diff
pyodide__pyodide-4223
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Emscripten.cmake missing from pyodide-build wheel ## 🐛 Bug It seems like `Emscripten.cmake` is not bundled with `pyodide-build` wheels any more (since version 0.24.0) and I wonder whether this is a bug or...
diff --git a/pyodide-build/pyodide_build/build_env.py b/pyodide-build/pyodide_build/build_env.py --- a/pyodide-build/pyodide_build/build_env.py +++ b/pyodide-build/pyodide_build/build_env.py @@ -62,6 +62,8 @@ "SYSCONFIG_NAME", "TARGETINSTALLDIR", "WASM_LIBRARY_DIR", + "CMAKE_TOOLCHAIN_FILE", + "PYO...
{"golden_diff": "diff --git a/pyodide-build/pyodide_build/build_env.py b/pyodide-build/pyodide_build/build_env.py\n--- a/pyodide-build/pyodide_build/build_env.py\n+++ b/pyodide-build/pyodide_build/build_env.py\n@@ -62,6 +62,8 @@\n \"SYSCONFIG_NAME\",\n \"TARGETINSTALLDIR\",\n \"WASM_LIBRARY_DIR\",\n+ \"C...
4,031
303
gh_patches_debug_39411
rasdani/github-patches
git_diff
wemake-services__wemake-python-styleguide-924
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Forbid `Optional[Union[A, B]]`, use `Union[A, B, None]` instead # Rule request <!-- Thanks for coming up with a proposal! --> ## Thesis <!-- What exactly do you propose? Please, provide code examples...
diff --git a/wemake_python_styleguide/violations/annotations.py b/wemake_python_styleguide/violations/annotations.py --- a/wemake_python_styleguide/violations/annotations.py +++ b/wemake_python_styleguide/violations/annotations.py @@ -18,12 +18,14 @@ LiteralNoneViolation NestedAnnotationsViolation + UnionNe...
{"golden_diff": "diff --git a/wemake_python_styleguide/violations/annotations.py b/wemake_python_styleguide/violations/annotations.py\n--- a/wemake_python_styleguide/violations/annotations.py\n+++ b/wemake_python_styleguide/violations/annotations.py\n@@ -18,12 +18,14 @@\n \n LiteralNoneViolation\n NestedAnnotatio...
2,439
723
gh_patches_debug_9889
rasdani/github-patches
git_diff
pulp__pulpcore-299
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [PR #5443/c7079c89 backport][3.54] Pin the pytest-redis requirement for unit tests **This is a backport of PR #5443 as merged into main (c7079c891b87ecd9073260db5baa35826803f635).** [noissue] --- END ISSUE ...
diff --git a/pulpcore/app/serializers/content.py b/pulpcore/app/serializers/content.py --- a/pulpcore/app/serializers/content.py +++ b/pulpcore/app/serializers/content.py @@ -57,7 +57,7 @@ validated_data (dict): Data to save to the database """ artifact = validated_data.pop('artifact') - ...
{"golden_diff": "diff --git a/pulpcore/app/serializers/content.py b/pulpcore/app/serializers/content.py\n--- a/pulpcore/app/serializers/content.py\n+++ b/pulpcore/app/serializers/content.py\n@@ -57,7 +57,7 @@\n validated_data (dict): Data to save to the database\n \"\"\"\n artifact = validat...
2,616
150
gh_patches_debug_21325
rasdani/github-patches
git_diff
akvo__akvo-rsr-3020
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Incorrect mandatory validation for qualitative indicators The indicator measure for qualitative indicators is hidden, but the code checking for completion of sections doesn't ignore that field, and considers ...
diff --git a/akvo/iati/checks/fields/results.py b/akvo/iati/checks/fields/results.py --- a/akvo/iati/checks/fields/results.py +++ b/akvo/iati/checks/fields/results.py @@ -4,6 +4,8 @@ # See more details in the license.txt file located at the root folder of the Akvo RSR module. # For additional details on the GNU licen...
{"golden_diff": "diff --git a/akvo/iati/checks/fields/results.py b/akvo/iati/checks/fields/results.py\n--- a/akvo/iati/checks/fields/results.py\n+++ b/akvo/iati/checks/fields/results.py\n@@ -4,6 +4,8 @@\n # See more details in the license.txt file located at the root folder of the Akvo RSR module.\n # For additional de...
1,526
240
gh_patches_debug_14323
rasdani/github-patches
git_diff
zalando__patroni-698
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Could not load library ".../libpqwalreceiver.so" We compile and install Postgres in a non-standard location (/opt/custom/share/postgresql-9.6.2_7 in the example below) which requires that we specify the `LD_L...
diff --git a/patroni/postmaster.py b/patroni/postmaster.py --- a/patroni/postmaster.py +++ b/patroni/postmaster.py @@ -137,7 +137,7 @@ # of init process to take care about postmaster. # In order to make everything portable we can't use fork&exec approach here, so we will call # ourselves and...
{"golden_diff": "diff --git a/patroni/postmaster.py b/patroni/postmaster.py\n--- a/patroni/postmaster.py\n+++ b/patroni/postmaster.py\n@@ -137,7 +137,7 @@\n # of init process to take care about postmaster.\n # In order to make everything portable we can't use fork&exec approach here, so we will call\n ...
3,044
195
gh_patches_debug_16340
rasdani/github-patches
git_diff
qutip__qutip-2335
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Typos in qutip.expect()'s docstring ### Bug Description Two words in the docstring contain typos. See below. ### Code to Reproduce the Bug ```shell from qutip import expect print(expect.__doc__) `...
diff --git a/qutip/core/expect.py b/qutip/core/expect.py --- a/qutip/core/expect.py +++ b/qutip/core/expect.py @@ -16,7 +16,7 @@ Parameters ---------- oper : qobj/array-like - A single or a `list` or operators for expectation value. + A single or a `list` of operators for expectation value....
{"golden_diff": "diff --git a/qutip/core/expect.py b/qutip/core/expect.py\n--- a/qutip/core/expect.py\n+++ b/qutip/core/expect.py\n@@ -16,7 +16,7 @@\n Parameters\n ----------\n oper : qobj/array-like\n- A single or a `list` or operators for expectation value.\n+ A single or a `list` of operato...
1,644
220
gh_patches_debug_22545
rasdani/github-patches
git_diff
learningequality__kolibri-3179
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Rename Buildkite assets for clarity ## Summary When downloading builds from `buildkite/kolibri/assets` details link, filenames are too complex and difficult to distinguish. ![selection_655](https://use...
diff --git a/.buildkite/upload_artifacts.py b/.buildkite/upload_artifacts.py --- a/.buildkite/upload_artifacts.py +++ b/.buildkite/upload_artifacts.py @@ -167,16 +167,16 @@ for file_data in artifacts.values(): logging.info("Uploading file (%s)" % (file_data.get("name"))) if is_release: - ...
{"golden_diff": "diff --git a/.buildkite/upload_artifacts.py b/.buildkite/upload_artifacts.py\n--- a/.buildkite/upload_artifacts.py\n+++ b/.buildkite/upload_artifacts.py\n@@ -167,16 +167,16 @@\n for file_data in artifacts.values():\n logging.info(\"Uploading file (%s)\" % (file_data.get(\"name\")))\n ...
2,924
329
gh_patches_debug_505
rasdani/github-patches
git_diff
googleapis__google-cloud-python-3693
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Increment threadsafety on BigQuery DB-API interface when httplib2 is removed From https://github.com/GoogleCloudPlatform/google-cloud-python/pull/2921/files/5b29a9e42a40f7c74ced0b7a7e9db0add52a20a1#r123596828...
diff --git a/bigquery/google/cloud/bigquery/dbapi/__init__.py b/bigquery/google/cloud/bigquery/dbapi/__init__.py --- a/bigquery/google/cloud/bigquery/dbapi/__init__.py +++ b/bigquery/google/cloud/bigquery/dbapi/__init__.py @@ -55,8 +55,8 @@ apilevel = '2.0' -# Threads may share the module, but not connections. -th...
{"golden_diff": "diff --git a/bigquery/google/cloud/bigquery/dbapi/__init__.py b/bigquery/google/cloud/bigquery/dbapi/__init__.py\n--- a/bigquery/google/cloud/bigquery/dbapi/__init__.py\n+++ b/bigquery/google/cloud/bigquery/dbapi/__init__.py\n@@ -55,8 +55,8 @@\n \n apilevel = '2.0'\n \n-# Threads may share the module, ...
1,213
130
gh_patches_debug_25995
rasdani/github-patches
git_diff
pytorch__vision-2979
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [DOC] Documentation for sigmoid focal loss ## 📚 Documentation Sigmoid focal loss was added to torchvision, but I think docs are not generated for it It was initalized in `init` as well [here](https://g...
diff --git a/torchvision/ops/focal_loss.py b/torchvision/ops/focal_loss.py --- a/torchvision/ops/focal_loss.py +++ b/torchvision/ops/focal_loss.py @@ -3,8 +3,8 @@ def sigmoid_focal_loss( - inputs, - targets, + inputs: torch.Tensor, + targets: torch.Tensor, alpha: float = 0.25, gamma: float = ...
{"golden_diff": "diff --git a/torchvision/ops/focal_loss.py b/torchvision/ops/focal_loss.py\n--- a/torchvision/ops/focal_loss.py\n+++ b/torchvision/ops/focal_loss.py\n@@ -3,8 +3,8 @@\n \n \n def sigmoid_focal_loss(\n- inputs,\n- targets,\n+ inputs: torch.Tensor,\n+ targets: torch.Tensor,\n alpha: float ...
880
301
gh_patches_debug_19341
rasdani/github-patches
git_diff
praw-dev__praw-1737
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Assertion error on 429 HTTP status code **Describe the bug** From time to time, I found my codes reported 429 errors. **To Reproduce** Steps to reproduce the behavior: `submission.comments.replace_more(...
diff --git a/praw/models/comment_forest.py b/praw/models/comment_forest.py --- a/praw/models/comment_forest.py +++ b/praw/models/comment_forest.py @@ -124,6 +124,8 @@ :returns: A list of :class:`.MoreComments` instances that were not replaced. + :raises: ``prawcore.TooManyRequests`` when used concur...
{"golden_diff": "diff --git a/praw/models/comment_forest.py b/praw/models/comment_forest.py\n--- a/praw/models/comment_forest.py\n+++ b/praw/models/comment_forest.py\n@@ -124,6 +124,8 @@\n \n :returns: A list of :class:`.MoreComments` instances that were not replaced.\n \n+ :raises: ``prawcore.TooManyReq...
2,821
246
gh_patches_debug_41570
rasdani/github-patches
git_diff
genialis__resolwe-328
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 500 error returned when permission does not exist We should return 400 Bad request response. Failing unit test: https://github.com/genialis/resolwe/pull/309 --- END ISSUE --- Below are some code segments...
diff --git a/resolwe/permissions/utils.py b/resolwe/permissions/utils.py --- a/resolwe/permissions/utils.py +++ b/resolwe/permissions/utils.py @@ -14,6 +14,7 @@ from django.contrib.auth import get_user_model from django.contrib.auth.models import AnonymousUser, Group from django.contrib.contenttypes.models import Co...
{"golden_diff": "diff --git a/resolwe/permissions/utils.py b/resolwe/permissions/utils.py\n--- a/resolwe/permissions/utils.py\n+++ b/resolwe/permissions/utils.py\n@@ -14,6 +14,7 @@\n from django.contrib.auth import get_user_model\n from django.contrib.auth.models import AnonymousUser, Group\n from django.contrib.conten...
1,810
814
gh_patches_debug_3415
rasdani/github-patches
git_diff
pyro-ppl__numpyro-1041
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- New versions of sphinx and jinja2 break docs linting This is observed by @tcbegley in #1034 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -39,9 +39,8 @@ extras_require={ "doc": [ "ipython", # sphinx needs this to render codes - "jinja2<3.0.0", - "nbsphinx", - "sphinx<4.0.0", + "nbsphinx>=0.8.5", + "sphinx", ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -39,9 +39,8 @@\n extras_require={\n \"doc\": [\n \"ipython\", # sphinx needs this to render codes\n- \"jinja2<3.0.0\",\n- \"nbsphinx\",\n- \"sphinx<4.0.0\",\n+ \"nbs...
1,179
123
gh_patches_debug_39181
rasdani/github-patches
git_diff
scikit-image__scikit-image-1895
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- denoise_bilateral works separately on channels, but no warning raised for 3-D images The implementation of `restoration.denoise_bilateral` is 2-D only, with the last dimension considered to be for channels. H...
diff --git a/skimage/restoration/_denoise.py b/skimage/restoration/_denoise.py --- a/skimage/restoration/_denoise.py +++ b/skimage/restoration/_denoise.py @@ -3,10 +3,11 @@ from .. import img_as_float from ..restoration._denoise_cy import _denoise_bilateral, _denoise_tv_bregman from .._shared.utils import _mode_depr...
{"golden_diff": "diff --git a/skimage/restoration/_denoise.py b/skimage/restoration/_denoise.py\n--- a/skimage/restoration/_denoise.py\n+++ b/skimage/restoration/_denoise.py\n@@ -3,10 +3,11 @@\n from .. import img_as_float\n from ..restoration._denoise_cy import _denoise_bilateral, _denoise_tv_bregman\n from .._shared....
3,796
737
gh_patches_debug_15692
rasdani/github-patches
git_diff
ethereum__web3.py-1198
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Drop repeated rpc endpoints * Version: 4.6 ### What was wrong? web3.py has a few repeated endpoints, for example: `web3.version.net` and `web3.net.version` ### How can it be fixed? Deprecate the e...
diff --git a/web3/miner.py b/web3/miner.py --- a/web3/miner.py +++ b/web3/miner.py @@ -4,10 +4,6 @@ class Miner(Module): - @property - def hashrate(self): - return self.web3.manager.request_blocking("eth_hashrate", []) - def makeDAG(self, number): return self.web3.manager.request_blockin...
{"golden_diff": "diff --git a/web3/miner.py b/web3/miner.py\n--- a/web3/miner.py\n+++ b/web3/miner.py\n@@ -4,10 +4,6 @@\n \n \n class Miner(Module):\n- @property\n- def hashrate(self):\n- return self.web3.manager.request_blocking(\"eth_hashrate\", [])\n-\n def makeDAG(self, number):\n return se...
820
215
gh_patches_debug_41673
rasdani/github-patches
git_diff
rucio__rucio-3087
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- check global quota in running RSESelector Motivation ---------- check global quota not only when initializing the RSESelector but also when calling the select_rse method. Modification ------------ up...
diff --git a/lib/rucio/core/rse_selector.py b/lib/rucio/core/rse_selector.py --- a/lib/rucio/core/rse_selector.py +++ b/lib/rucio/core/rse_selector.py @@ -94,7 +94,9 @@ local_quota_left = 0 else: local_quota_left = quota_limit - get_usage(rse_id=rse...
{"golden_diff": "diff --git a/lib/rucio/core/rse_selector.py b/lib/rucio/core/rse_selector.py\n--- a/lib/rucio/core/rse_selector.py\n+++ b/lib/rucio/core/rse_selector.py\n@@ -94,7 +94,9 @@\n local_quota_left = 0\n else:\n local_quota_left = quota_limit...
3,423
710
gh_patches_debug_20807
rasdani/github-patches
git_diff
google__flax-2540
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make RNG name configurable in Dropout Currently `'dropout'` is hard-coded as an argument of `make_rng` inside `Dropout`. However, when implementing support for "recurrent dropout" in an LSTMCell or similar y...
diff --git a/flax/linen/stochastic.py b/flax/linen/stochastic.py --- a/flax/linen/stochastic.py +++ b/flax/linen/stochastic.py @@ -38,10 +38,12 @@ deterministic: if false the inputs are scaled by `1 / (1 - rate)` and masked, whereas if true, no mask is applied and the inputs are returned as is....
{"golden_diff": "diff --git a/flax/linen/stochastic.py b/flax/linen/stochastic.py\n--- a/flax/linen/stochastic.py\n+++ b/flax/linen/stochastic.py\n@@ -38,10 +38,12 @@\n deterministic: if false the inputs are scaled by `1 / (1 - rate)` and\n masked, whereas if true, no mask is applied and the inputs are re...
1,281
245
gh_patches_debug_19569
rasdani/github-patches
git_diff
mozilla__telemetry-analysis-service-989
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sort EMR versions naturally The EMR versions are currently not sorted naturally but by alphabet, which breaks for example with EMR 5.11.0. --- END ISSUE --- Below are some code segments, each from a relevan...
diff --git a/atmo/clusters/forms.py b/atmo/clusters/forms.py --- a/atmo/clusters/forms.py +++ b/atmo/clusters/forms.py @@ -21,7 +21,7 @@ def __init__(self, *args, **kwargs): super().__init__( label='EMR release', - queryset=models.EMRRelease.objects.active(), + queryset=...
{"golden_diff": "diff --git a/atmo/clusters/forms.py b/atmo/clusters/forms.py\n--- a/atmo/clusters/forms.py\n+++ b/atmo/clusters/forms.py\n@@ -21,7 +21,7 @@\n def __init__(self, *args, **kwargs):\n super().__init__(\n label='EMR release',\n- queryset=models.EMRRelease.objects.active()...
2,303
274
gh_patches_debug_2855
rasdani/github-patches
git_diff
xonsh__xonsh-89
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- setup.py install fails if working directory not location of setup.py C:\Python34>.\python.exe \temp\xonsh-0.1.2\setup.py install ... Traceback (most recent call last): File "\temp\xonsh-0.1.2\setup.py", lin...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ if sys.version_info[0] < 3: sys.exit('xonsh currently requires Python 3.4+') print(logo) - with open('README.rst', 'r') as f: + with open(os.path.join(os.path.dirname(__file__), 'README.rst'), 'r') as f: r...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -49,7 +49,7 @@\n if sys.version_info[0] < 3:\n sys.exit('xonsh currently requires Python 3.4+')\n print(logo)\n- with open('README.rst', 'r') as f:\n+ with open(os.path.join(os.path.dirname(__file__), 'README.rst...
2,122
121
gh_patches_debug_21187
rasdani/github-patches
git_diff
pypa__setuptools-2159
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Plugins using setuptools entry points resolve to system and not setup_requires Assume that you have e.g. setuptools_scm 3 installed system-wide, and try to to run the following setup.py: ```python from setu...
diff --git a/setuptools/__init__.py b/setuptools/__init__.py --- a/setuptools/__init__.py +++ b/setuptools/__init__.py @@ -129,10 +129,27 @@ def _install_setup_requires(attrs): # Note: do not use `setuptools.Distribution` directly, as # our PEP 517 backend patch `distutils.core.Distribution`. - dist = dis...
{"golden_diff": "diff --git a/setuptools/__init__.py b/setuptools/__init__.py\n--- a/setuptools/__init__.py\n+++ b/setuptools/__init__.py\n@@ -129,10 +129,27 @@\n def _install_setup_requires(attrs):\n # Note: do not use `setuptools.Distribution` directly, as\n # our PEP 517 backend patch `distutils.core.Distrib...
3,233
307
gh_patches_debug_7091
rasdani/github-patches
git_diff
mkdocs__mkdocs-397
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NoneType object is not callable I'm not sure if this is my own stupidity, related to #283, or something I've ended up doing myself by accident. I'm working on developing a mkdocs theme, and `mkdocs build` an...
diff --git a/mkdocs/serve.py b/mkdocs/serve.py --- a/mkdocs/serve.py +++ b/mkdocs/serve.py @@ -94,6 +94,8 @@ observer = PollingObserver() observer.schedule(event_handler, config['docs_dir'], recursive=True) for theme_dir in config['theme_dir']: + if not os.path.exists(theme_dir): + cont...
{"golden_diff": "diff --git a/mkdocs/serve.py b/mkdocs/serve.py\n--- a/mkdocs/serve.py\n+++ b/mkdocs/serve.py\n@@ -94,6 +94,8 @@\n observer = PollingObserver()\n observer.schedule(event_handler, config['docs_dir'], recursive=True)\n for theme_dir in config['theme_dir']:\n+ if not os.path.exists(theme...
2,202
118
gh_patches_debug_34360
rasdani/github-patches
git_diff
Lightning-AI__torchmetrics-2137
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DeprecationWarning: The distutils package is deprecated ## 🐛 Bug TorchMetrics still uses distutils, but distutils is deprecated. ### To Reproduce ```console > python3 -Wall >>> import torchmetrics...
diff --git a/.github/assistant.py b/.github/assistant.py --- a/.github/assistant.py +++ b/.github/assistant.py @@ -18,11 +18,11 @@ import re import sys import traceback -from distutils.version import LooseVersion from typing import List, Optional, Tuple, Union import fire import requests +from packaging.version...
{"golden_diff": "diff --git a/.github/assistant.py b/.github/assistant.py\n--- a/.github/assistant.py\n+++ b/.github/assistant.py\n@@ -18,11 +18,11 @@\n import re\n import sys\n import traceback\n-from distutils.version import LooseVersion\n from typing import List, Optional, Tuple, Union\n \n import fire\n import requ...
3,590
549
gh_patches_debug_3497
rasdani/github-patches
git_diff
ManimCommunity__manim-646
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The config value `html_favicon' has type `PosixPath'; expected `str'. BTW when building the docs now I get ``` WARNING: The config value `html_favicon' has type `PosixPath'; expected `str'. ``` _Origina...
diff --git a/docs/source/conf.py b/docs/source/conf.py --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -80,7 +80,7 @@ html_theme_path = guzzle_sphinx_theme.html_theme_path() html_theme = "guzzle_sphinx_theme" -html_favicon = Path("_static/favicon.ico") +html_favicon = str(Path("_static/favicon.ico")) # Th...
{"golden_diff": "diff --git a/docs/source/conf.py b/docs/source/conf.py\n--- a/docs/source/conf.py\n+++ b/docs/source/conf.py\n@@ -80,7 +80,7 @@\n \n html_theme_path = guzzle_sphinx_theme.html_theme_path()\n html_theme = \"guzzle_sphinx_theme\"\n-html_favicon = Path(\"_static/favicon.ico\")\n+html_favicon = str(Path(\"...
1,408
113
gh_patches_debug_10794
rasdani/github-patches
git_diff
jupyterhub__zero-to-jupyterhub-k8s-1564
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Document the fact that access to cloud metadata is disabled by default It's not immediately obvious that `iptables` are overridden with an init container, blocking access to EC2 metadata. This should be do...
diff --git a/doc/source/conf.py b/doc/source/conf.py --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -138,7 +138,19 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # + html_theme = 'pydata_sphinx_theme' +html_theme_options = { + "github_url": "https...
{"golden_diff": "diff --git a/doc/source/conf.py b/doc/source/conf.py\n--- a/doc/source/conf.py\n+++ b/doc/source/conf.py\n@@ -138,7 +138,19 @@\n # The theme to use for HTML and HTML Help pages. See the documentation for\n # a list of builtin themes.\n #\n+\n html_theme = 'pydata_sphinx_theme'\n+html_theme_options = {...
2,811
195
gh_patches_debug_11838
rasdani/github-patches
git_diff
sopel-irc__sopel-419
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tell module errors when you don't give it enough arguments ``` <Flyte> .tell <Lurk> AttributeError: 'NoneType' object has no attribute 'split' (file "/home/flyte/workspace/willie/ve/local/lib/python2.7/site-p...
diff --git a/willie/modules/tell.py b/willie/modules/tell.py --- a/willie/modules/tell.py +++ b/willie/modules/tell.py @@ -88,11 +88,20 @@ def f_remind(bot, trigger): """Give someone a message the next time they're seen""" teller = trigger.nick - verb = trigger.group(1) - tellee, msg = trigger.group(...
{"golden_diff": "diff --git a/willie/modules/tell.py b/willie/modules/tell.py\n--- a/willie/modules/tell.py\n+++ b/willie/modules/tell.py\n@@ -88,11 +88,20 @@\n def f_remind(bot, trigger):\n \"\"\"Give someone a message the next time they're seen\"\"\"\n teller = trigger.nick\n-\n verb = trigger.group(1)\n-...
2,190
242
gh_patches_debug_41816
rasdani/github-patches
git_diff
fonttools__fonttools-804
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [T2CharStringPen] Rounding coordinates? Currently, [T2CharStringPen](https://github.com/fonttools/fonttools/blob/fcd697a328b439165b3e9d04904eb73f065b6838/Lib/fontTools/pens/t2CharStringPen.py#L78) always roun...
diff --git a/Lib/fontTools/pens/t2CharStringPen.py b/Lib/fontTools/pens/t2CharStringPen.py --- a/Lib/fontTools/pens/t2CharStringPen.py +++ b/Lib/fontTools/pens/t2CharStringPen.py @@ -9,15 +9,6 @@ from fontTools.pens.basePen import BasePen -def roundInt(v): - return int(round(v)) - - -def roundIntPoint(point): -...
{"golden_diff": "diff --git a/Lib/fontTools/pens/t2CharStringPen.py b/Lib/fontTools/pens/t2CharStringPen.py\n--- a/Lib/fontTools/pens/t2CharStringPen.py\n+++ b/Lib/fontTools/pens/t2CharStringPen.py\n@@ -9,15 +9,6 @@\n from fontTools.pens.basePen import BasePen\n \n \n-def roundInt(v):\n- return int(round(v))\n-\n-\n...
1,708
965
gh_patches_debug_21894
rasdani/github-patches
git_diff
freedomofpress__securedrop-644
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Location of replies unclear for sources As a source, it it unclear where I should go to see messages from the journalist. When I choose the “Check for response” and choose “continue” it should clearly show m...
diff --git a/securedrop/source.py b/securedrop/source.py --- a/securedrop/source.py +++ b/securedrop/source.py @@ -189,11 +189,6 @@ if not crypto_util.getkey(g.sid) and g.source.flagged: async_genkey(g.sid, g.codename) - # if this was a redirect from the login page, flash a message if there are - ...
{"golden_diff": "diff --git a/securedrop/source.py b/securedrop/source.py\n--- a/securedrop/source.py\n+++ b/securedrop/source.py\n@@ -189,11 +189,6 @@\n if not crypto_util.getkey(g.sid) and g.source.flagged:\n async_genkey(g.sid, g.codename)\n \n- # if this was a redirect from the login page, flash a me...
3,999
280
gh_patches_debug_3882
rasdani/github-patches
git_diff
explosion__spaCy-3032
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- parameter averaging You recommend (https://spacy.io/usage/training#section-tips): > Then when we want to actually use the model, we use the averages, not the most recent value. > with nlp.use_params(opti...
diff --git a/examples/training/train_textcat.py b/examples/training/train_textcat.py --- a/examples/training/train_textcat.py +++ b/examples/training/train_textcat.py @@ -82,7 +82,8 @@ output_dir = Path(output_dir) if not output_dir.exists(): output_dir.mkdir() - nlp.to_disk(output...
{"golden_diff": "diff --git a/examples/training/train_textcat.py b/examples/training/train_textcat.py\n--- a/examples/training/train_textcat.py\n+++ b/examples/training/train_textcat.py\n@@ -82,7 +82,8 @@\n output_dir = Path(output_dir)\n if not output_dir.exists():\n output_dir.mkdir()\n- ...
2,124
120
gh_patches_debug_44141
rasdani/github-patches
git_diff
sopel-irc__sopel-1700
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- help: output should be sent to requester privately IIRC, the older version of Sopel (or Willie?) used to send the long help results privately to the user who requested the help command list results. Or at lea...
diff --git a/sopel/modules/help.py b/sopel/modules/help.py --- a/sopel/modules/help.py +++ b/sopel/modules/help.py @@ -167,6 +167,11 @@ 'termbin': post_to_termbin, 'ubuntu': post_to_ubuntu, } +REPLY_METHODS = [ + 'channel', + 'query', + 'notice', +] class HelpSection(StaticSection): @@ -175,6 +...
{"golden_diff": "diff --git a/sopel/modules/help.py b/sopel/modules/help.py\n--- a/sopel/modules/help.py\n+++ b/sopel/modules/help.py\n@@ -167,6 +167,11 @@\n 'termbin': post_to_termbin,\n 'ubuntu': post_to_ubuntu,\n }\n+REPLY_METHODS = [\n+ 'channel',\n+ 'query',\n+ 'notice',\n+]\n \n \n class HelpSect...
3,926
862
gh_patches_debug_3948
rasdani/github-patches
git_diff
conan-io__conan-center-index-1822
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [package] thrift/0.13.0: build fails using --profile but works using --profile:host and --profile:build ### Package and Environment Details (include every applicable attribute) * Package Name/Version: **th...
diff --git a/recipes/thrift/all/conanfile.py b/recipes/thrift/all/conanfile.py --- a/recipes/thrift/all/conanfile.py +++ b/recipes/thrift/all/conanfile.py @@ -139,3 +139,7 @@ self.cpp_info.defines.append("NOMINMAX") elif self.settings.os == "Linux": self.cpp_info.system_libs.extend(["...
{"golden_diff": "diff --git a/recipes/thrift/all/conanfile.py b/recipes/thrift/all/conanfile.py\n--- a/recipes/thrift/all/conanfile.py\n+++ b/recipes/thrift/all/conanfile.py\n@@ -139,3 +139,7 @@\n self.cpp_info.defines.append(\"NOMINMAX\")\n elif self.settings.os == \"Linux\":\n self.cpp...
2,460
142
gh_patches_debug_17604
rasdani/github-patches
git_diff
DataDog__dd-trace-py-4250
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot call sqlite3.backup(db) on a TracedSQLite object Thanks for taking the time for reporting an issue! Before reporting an issue on dd-trace-py, please be sure to provide all necessary information. ...
diff --git a/ddtrace/contrib/sqlite3/patch.py b/ddtrace/contrib/sqlite3/patch.py --- a/ddtrace/contrib/sqlite3/patch.py +++ b/ddtrace/contrib/sqlite3/patch.py @@ -1,6 +1,7 @@ import os import sqlite3 import sqlite3.dbapi2 +import sys from ddtrace import config from ddtrace.vendor import wrapt @@ -75,3 +76,13 @@ ...
{"golden_diff": "diff --git a/ddtrace/contrib/sqlite3/patch.py b/ddtrace/contrib/sqlite3/patch.py\n--- a/ddtrace/contrib/sqlite3/patch.py\n+++ b/ddtrace/contrib/sqlite3/patch.py\n@@ -1,6 +1,7 @@\n import os\n import sqlite3\n import sqlite3.dbapi2\n+import sys\n \n from ddtrace import config\n from ddtrace.vendor impor...
1,259
307
gh_patches_debug_25631
rasdani/github-patches
git_diff
pytorch__vision-1149
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- A small bug in ImageNet Dataset Implementation Currently, all values (i.e., index) in the `class_to_idx` and `wnid_to_idx` of `ImageNet` are 0. The current code is as follows where `idcs` is wrong since it w...
diff --git a/torchvision/datasets/imagenet.py b/torchvision/datasets/imagenet.py --- a/torchvision/datasets/imagenet.py +++ b/torchvision/datasets/imagenet.py @@ -38,7 +38,7 @@ loader (callable, optional): A function to load an image given its path. Attributes: - classes (list): List of the clas...
{"golden_diff": "diff --git a/torchvision/datasets/imagenet.py b/torchvision/datasets/imagenet.py\n--- a/torchvision/datasets/imagenet.py\n+++ b/torchvision/datasets/imagenet.py\n@@ -38,7 +38,7 @@\n loader (callable, optional): A function to load an image given its path.\n \n Attributes:\n- classes ...
2,772
329
gh_patches_debug_7048
rasdani/github-patches
git_diff
airctic__icevision-821
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Adding Non Unique Names To ClassMap Must Be Illegal Currently, `add_name` doesn't check if the added `name` is a duplicate or not. This should be illegal, as classes must be unique https://github.com/airct...
diff --git a/icevision/core/class_map.py b/icevision/core/class_map.py --- a/icevision/core/class_map.py +++ b/icevision/core/class_map.py @@ -44,7 +44,13 @@ else: raise e - def add_name(self, name) -> int: + def add_name(self, name: str) -> int: + # Raise error if trying to...
{"golden_diff": "diff --git a/icevision/core/class_map.py b/icevision/core/class_map.py\n--- a/icevision/core/class_map.py\n+++ b/icevision/core/class_map.py\n@@ -44,7 +44,13 @@\n else:\n raise e\n \n- def add_name(self, name) -> int:\n+ def add_name(self, name: str) -> int:\n+ ...
939
172
gh_patches_debug_9985
rasdani/github-patches
git_diff
cal-itp__benefits-1030
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: Error page bug - Log out button too low A clear and concise description of what the bug is. ## To Reproduce Steps to reproduce the behavior: 1. Go through the Login.gov IAL2 flow with a user who...
diff --git a/benefits/enrollment/views.py b/benefits/enrollment/views.py --- a/benefits/enrollment/views.py +++ b/benefits/enrollment/views.py @@ -140,7 +140,6 @@ if form.is_valid(): agency = session.agency(request) page = viewmodels.Page( - classes="no-image-mobile", ...
{"golden_diff": "diff --git a/benefits/enrollment/views.py b/benefits/enrollment/views.py\n--- a/benefits/enrollment/views.py\n+++ b/benefits/enrollment/views.py\n@@ -140,7 +140,6 @@\n if form.is_valid():\n agency = session.agency(request)\n page = viewmodels.Page(\n- clas...
2,816
125
gh_patches_debug_54726
rasdani/github-patches
git_diff
DDMAL__CantusDB-845
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "my sources"" page side panel http://206.12.88.113/my-sources/ has a "created by" side panel. This is 1. not paginated 3. includes all the sources and not just the created ones (so it's both extra- long and...
diff --git a/django/cantusdb_project/main_app/views/user.py b/django/cantusdb_project/main_app/views/user.py --- a/django/cantusdb_project/main_app/views/user.py +++ b/django/cantusdb_project/main_app/views/user.py @@ -104,7 +104,7 @@ .order_by("-date_created") .distinct() ) - ...
{"golden_diff": "diff --git a/django/cantusdb_project/main_app/views/user.py b/django/cantusdb_project/main_app/views/user.py\n--- a/django/cantusdb_project/main_app/views/user.py\n+++ b/django/cantusdb_project/main_app/views/user.py\n@@ -104,7 +104,7 @@\n .order_by(\"-date_created\")\n .distinc...
2,451
135
gh_patches_debug_29810
rasdani/github-patches
git_diff
acl-org__acl-anthology-285
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Missing author data on early CL journals Authors are part of the titles, rather than having author fields. See for example: https://aclweb.org/anthology/events/cl-1979/ J79-J83 should be "American Journal of ...
diff --git a/bin/anthology/data.py b/bin/anthology/data.py --- a/bin/anthology/data.py +++ b/bin/anthology/data.py @@ -27,7 +27,10 @@ def get_journal_title(top_level_id, volume_title): if top_level_id[0] == "J": - return "Computational Linguistics" + if int(top_level_id[1:3]) <= 83: + r...
{"golden_diff": "diff --git a/bin/anthology/data.py b/bin/anthology/data.py\n--- a/bin/anthology/data.py\n+++ b/bin/anthology/data.py\n@@ -27,7 +27,10 @@\n \n def get_journal_title(top_level_id, volume_title):\n if top_level_id[0] == \"J\":\n- return \"Computational Linguistics\"\n+ if int(top_level_i...
4,030
387
gh_patches_debug_41815
rasdani/github-patches
git_diff
mars-project__mars-2953
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] `dask.persist` cannot work on dask-on-mars <!-- Thank you for your contribution! Please review https://github.com/mars-project/mars/blob/master/CONTRIBUTING.rst before opening an issue. --> **De...
diff --git a/mars/contrib/dask/scheduler.py b/mars/contrib/dask/scheduler.py --- a/mars/contrib/dask/scheduler.py +++ b/mars/contrib/dask/scheduler.py @@ -14,12 +14,13 @@ from dask.core import istask, ishashable -from typing import List, Tuple +from typing import List, Tuple, Union from .utils import reduce from...
{"golden_diff": "diff --git a/mars/contrib/dask/scheduler.py b/mars/contrib/dask/scheduler.py\n--- a/mars/contrib/dask/scheduler.py\n+++ b/mars/contrib/dask/scheduler.py\n@@ -14,12 +14,13 @@\n \n from dask.core import istask, ishashable\n \n-from typing import List, Tuple\n+from typing import List, Tuple, Union\n from ...
2,097
925
gh_patches_debug_42527
rasdani/github-patches
git_diff
conan-io__conan-center-index-2077
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [request] cpp-taskflow/2.5.0 ### Package Details * Package Name/Version: **cpp-taskflow/2.5.0** * Changelog: **https://taskflow.github.io/taskflow/release-2-5-0.html** Please note that `cpp-taskflo...
diff --git a/recipes/taskflow/all/conanfile.py b/recipes/taskflow/all/conanfile.py --- a/recipes/taskflow/all/conanfile.py +++ b/recipes/taskflow/all/conanfile.py @@ -1,8 +1,7 @@ -from conans import ConanFile, tools -from conans.errors import ConanInvalidConfiguration -from conans.model.version import Version import o...
{"golden_diff": "diff --git a/recipes/taskflow/all/conanfile.py b/recipes/taskflow/all/conanfile.py\n--- a/recipes/taskflow/all/conanfile.py\n+++ b/recipes/taskflow/all/conanfile.py\n@@ -1,8 +1,7 @@\n-from conans import ConanFile, tools\n-from conans.errors import ConanInvalidConfiguration\n-from conans.model.version i...
1,169
932
gh_patches_debug_3808
rasdani/github-patches
git_diff
ManimCommunity__manim-2197
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Create a test for resolution configuration ## Enhancement proposal A test for the `--resolution` configuration option. It should be placed [here](https://github.com/ManimCommunity/manim/blob/main/tests/test_...
diff --git a/manim/utils/commands.py b/manim/utils/commands.py --- a/manim/utils/commands.py +++ b/manim/utils/commands.py @@ -27,7 +27,7 @@ "stream=width,height,nb_frames,duration,avg_frame_rate,codec_name", "-print_format", "json", - path_to_video, + str(path_to_video), ]...
{"golden_diff": "diff --git a/manim/utils/commands.py b/manim/utils/commands.py\n--- a/manim/utils/commands.py\n+++ b/manim/utils/commands.py\n@@ -27,7 +27,7 @@\n \"stream=width,height,nb_frames,duration,avg_frame_rate,codec_name\",\n \"-print_format\",\n \"json\",\n- path_to_video,\n+ ...
799
119
gh_patches_debug_13600
rasdani/github-patches
git_diff
scikit-image__scikit-image-2722
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- docs build fails with numpydoc 0.7.0 ## Description If you just pip install numpydoc today and run 'make html' in doc you get: ``` reading sources... [ 2%] api/skimage.data ...
diff --git a/skimage/io/_io.py b/skimage/io/_io.py --- a/skimage/io/_io.py +++ b/skimage/io/_io.py @@ -36,6 +36,9 @@ flatten : bool Backward compatible keyword, superseded by `as_grey`. + plugin_args : keywords + Passed to the given plugin. + Returns ------- img_array : ndarray ...
{"golden_diff": "diff --git a/skimage/io/_io.py b/skimage/io/_io.py\n--- a/skimage/io/_io.py\n+++ b/skimage/io/_io.py\n@@ -36,6 +36,9 @@\n flatten : bool\n Backward compatible keyword, superseded by `as_grey`.\n \n+ plugin_args : keywords\n+ Passed to the given plugin.\n+\n Returns\n -----...
2,375
185
gh_patches_debug_21419
rasdani/github-patches
git_diff
Mailu__Mailu-1088
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- MAIL FROM: does-not-exist@[X.X.X.X] results in an admin exeption stacktrace If a client (read: malicious attacker) connects to Postfix and uses an IP address within brackets instead of a domain name for the s...
diff --git a/core/admin/mailu/internal/views/postfix.py b/core/admin/mailu/internal/views/postfix.py --- a/core/admin/mailu/internal/views/postfix.py +++ b/core/admin/mailu/internal/views/postfix.py @@ -2,10 +2,13 @@ from mailu.internal import internal import flask +import re @internal.route("/postfix/domain/<...
{"golden_diff": "diff --git a/core/admin/mailu/internal/views/postfix.py b/core/admin/mailu/internal/views/postfix.py\n--- a/core/admin/mailu/internal/views/postfix.py\n+++ b/core/admin/mailu/internal/views/postfix.py\n@@ -2,10 +2,13 @@\n from mailu.internal import internal\n \n import flask\n+import re\n \n \n @intern...
3,148
252
gh_patches_debug_28244
rasdani/github-patches
git_diff
scrapy__scrapy-3383
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Contracts for FormRequest At the moment there's no way to create a contract for a callback that is passed a response from `FormRequest`. How about something simple like this (`ContractsManager.from_method`...
diff --git a/scrapy/contracts/__init__.py b/scrapy/contracts/__init__.py --- a/scrapy/contracts/__init__.py +++ b/scrapy/contracts/__init__.py @@ -49,16 +49,22 @@ def from_method(self, method, results): contracts = self.extract_contracts(method) if contracts: + request_cls = Request + ...
{"golden_diff": "diff --git a/scrapy/contracts/__init__.py b/scrapy/contracts/__init__.py\n--- a/scrapy/contracts/__init__.py\n+++ b/scrapy/contracts/__init__.py\n@@ -49,16 +49,22 @@\n def from_method(self, method, results):\n contracts = self.extract_contracts(method)\n if contracts:\n+ ...
1,796
311
gh_patches_debug_18067
rasdani/github-patches
git_diff
ivy-llc__ivy-13637
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- beta --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ivy/functional/frontends/jax/random.py` Content: ``` ...
diff --git a/ivy/functional/frontends/jax/random.py b/ivy/functional/frontends/jax/random.py --- a/ivy/functional/frontends/jax/random.py +++ b/ivy/functional/frontends/jax/random.py @@ -1,5 +1,6 @@ # local import ivy +from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.frontends.jax.func_wrappe...
{"golden_diff": "diff --git a/ivy/functional/frontends/jax/random.py b/ivy/functional/frontends/jax/random.py\n--- a/ivy/functional/frontends/jax/random.py\n+++ b/ivy/functional/frontends/jax/random.py\n@@ -1,5 +1,6 @@\n # local\n import ivy\n+from ivy.func_wrapper import with_unsupported_dtypes\n from ivy.functional.f...
526
327
gh_patches_debug_28361
rasdani/github-patches
git_diff
getsentry__sentry-41334
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pip-compile and CUSTOM_COMPILE_COMMAND ### Environment SaaS (https://sentry.io/) ### Version _No response_ ### Steps to Reproduce JFYI https://github.com/getsentry/sentry/blob/2e36d4d3a3926e...
diff --git a/tools/freeze_requirements.py b/tools/freeze_requirements.py --- a/tools/freeze_requirements.py +++ b/tools/freeze_requirements.py @@ -1,6 +1,7 @@ from __future__ import annotations import argparse +import os from concurrent.futures import Future, ThreadPoolExecutor from os.path import abspath from s...
{"golden_diff": "diff --git a/tools/freeze_requirements.py b/tools/freeze_requirements.py\n--- a/tools/freeze_requirements.py\n+++ b/tools/freeze_requirements.py\n@@ -1,6 +1,7 @@\n from __future__ import annotations\n \n import argparse\n+import os\n from concurrent.futures import Future, ThreadPoolExecutor\n from os.p...
1,223
395
gh_patches_debug_9494
rasdani/github-patches
git_diff
quantopian__zipline-382
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make ta-lib optional `ta-lib` is causing us many installation problems. We should thus make it optional. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these file...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2013 Quantopian, Inc. +# Copyright 2014 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -71,...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,6 +1,6 @@\n #!/usr/bin/env python\n #\n-# Copyright 2013 Quantopian, Inc.\n+# Copyright 2014 Quantopian, Inc.\n #\n # Licensed under the Apache License, Version 2.0 (the \"License\");\n # you may not use this file except in complia...
1,011
153
gh_patches_debug_14618
rasdani/github-patches
git_diff
Kinto__kinto-1312
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PostgreSQL Cache: Deadlock ``` (psycopg2.extensions.TransactionRollbackError) deadlock detected DETAIL: Process 12750 waits for ShareLock on transaction 632693475; blocked by process 10080. Process 10080 ...
diff --git a/kinto/core/cache/postgresql/__init__.py b/kinto/core/cache/postgresql/__init__.py --- a/kinto/core/cache/postgresql/__init__.py +++ b/kinto/core/cache/postgresql/__init__.py @@ -140,8 +140,17 @@ value=value, ttl=ttl)) def get(self, key): - purge = "DELETE...
{"golden_diff": "diff --git a/kinto/core/cache/postgresql/__init__.py b/kinto/core/cache/postgresql/__init__.py\n--- a/kinto/core/cache/postgresql/__init__.py\n+++ b/kinto/core/cache/postgresql/__init__.py\n@@ -140,8 +140,17 @@\n value=value, ttl=ttl))\n \n def get(self, key):\n...
2,067
232
gh_patches_debug_50307
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-3345
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider konagrill is broken During the global build at 2021-06-16-14-42-20, spider **konagrill** failed with **0 features** and **24 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-06-16-14...
diff --git a/locations/spiders/kona_grill.py b/locations/spiders/kona_grill.py --- a/locations/spiders/kona_grill.py +++ b/locations/spiders/kona_grill.py @@ -88,6 +88,10 @@ oh = OpeningHours() for t in hours: + # Some day entries contain invalid week data, e.g. "Brunch" + # "B...
{"golden_diff": "diff --git a/locations/spiders/kona_grill.py b/locations/spiders/kona_grill.py\n--- a/locations/spiders/kona_grill.py\n+++ b/locations/spiders/kona_grill.py\n@@ -88,6 +88,10 @@\n oh = OpeningHours()\n \n for t in hours:\n+ # Some day entries contain invalid week data, e.g. \"...
2,036
164
gh_patches_debug_3571
rasdani/github-patches
git_diff
nerfstudio-project__nerfstudio-2076
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Doc Description Wrong Hello, I find python doc in [get_depth_image_from_path](https://github.com/nerfstudio-project/nerfstudio/blob/main/nerfstudio/data/utils/data_utils.py) is wrong about the return tens...
diff --git a/nerfstudio/data/utils/data_utils.py b/nerfstudio/data/utils/data_utils.py --- a/nerfstudio/data/utils/data_utils.py +++ b/nerfstudio/data/utils/data_utils.py @@ -74,7 +74,7 @@ interpolation: Depth value interpolation for resizing. Returns: - Depth image torch tensor with shape [width...
{"golden_diff": "diff --git a/nerfstudio/data/utils/data_utils.py b/nerfstudio/data/utils/data_utils.py\n--- a/nerfstudio/data/utils/data_utils.py\n+++ b/nerfstudio/data/utils/data_utils.py\n@@ -74,7 +74,7 @@\n interpolation: Depth value interpolation for resizing.\n \n Returns:\n- Depth image torch ...
1,452
128
gh_patches_debug_30107
rasdani/github-patches
git_diff
getsentry__sentry-python-432
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Enforce functools.wraps on all monkeypatches I'm using [`celery-once`](https://github.com/cameronmaske/celery-once) to make sure some tasks are only run one at a time. The lock is acquired in `apply_async` an...
diff --git a/sentry_sdk/integrations/celery.py b/sentry_sdk/integrations/celery.py --- a/sentry_sdk/integrations/celery.py +++ b/sentry_sdk/integrations/celery.py @@ -1,5 +1,6 @@ from __future__ import absolute_import +import functools import sys from celery.exceptions import ( # type: ignore @@ -64,6 +65,7 @@ ...
{"golden_diff": "diff --git a/sentry_sdk/integrations/celery.py b/sentry_sdk/integrations/celery.py\n--- a/sentry_sdk/integrations/celery.py\n+++ b/sentry_sdk/integrations/celery.py\n@@ -1,5 +1,6 @@\n from __future__ import absolute_import\n \n+import functools\n import sys\n \n from celery.exceptions import ( # type:...
2,239
372
gh_patches_debug_10752
rasdani/github-patches
git_diff
pypa__pip-3398
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pip 8.0 returns pre-release files for pip list -o without --pre When running `pip list -o` pip 8.0 is listing pre-release files even though previously it did not. I suspect that this might be because of some ...
diff --git a/pip/commands/list.py b/pip/commands/list.py --- a/pip/commands/list.py +++ b/pip/commands/list.py @@ -159,6 +159,11 @@ for dist in installed_packages: typ = 'unknown' all_candidates = finder.find_all_candidates(dist.key) + if not options.pre: + ...
{"golden_diff": "diff --git a/pip/commands/list.py b/pip/commands/list.py\n--- a/pip/commands/list.py\n+++ b/pip/commands/list.py\n@@ -159,6 +159,11 @@\n for dist in installed_packages:\n typ = 'unknown'\n all_candidates = finder.find_all_candidates(dist.key)\n+ ...
2,185
131
gh_patches_debug_29607
rasdani/github-patches
git_diff
nf-core__tools-1244
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Show ignore modules in `nf-core modules bump-versions` Modules ignore via the `.nf-core.yml` are currently not shown at all when running the `nf-core modules bump-versions` command. ## Describe the soluti...
diff --git a/nf_core/modules/bump_versions.py b/nf_core/modules/bump_versions.py --- a/nf_core/modules/bump_versions.py +++ b/nf_core/modules/bump_versions.py @@ -50,6 +50,7 @@ self.up_to_date = [] self.updated = [] self.failed = [] + self.ignored = [] self.show_up_to_date = s...
{"golden_diff": "diff --git a/nf_core/modules/bump_versions.py b/nf_core/modules/bump_versions.py\n--- a/nf_core/modules/bump_versions.py\n+++ b/nf_core/modules/bump_versions.py\n@@ -50,6 +50,7 @@\n self.up_to_date = []\n self.updated = []\n self.failed = []\n+ self.ignored = []\n ...
3,968
383
gh_patches_debug_9412
rasdani/github-patches
git_diff
mitmproxy__mitmproxy-3099
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- allow_remote=false does not prevent remote access ##### Steps to reproduce the problem: 1. Run mitmproxy on a publicly routable host, with default configuration including `listen_host=""`, `listen_port=808...
diff --git a/mitmproxy/addons/allowremote.py b/mitmproxy/addons/allowremote.py --- a/mitmproxy/addons/allowremote.py +++ b/mitmproxy/addons/allowremote.py @@ -14,11 +14,13 @@ ) def clientconnect(self, layer): - address = layer.client_conn.address + address = ipaddress.ip_address(layer.clie...
{"golden_diff": "diff --git a/mitmproxy/addons/allowremote.py b/mitmproxy/addons/allowremote.py\n--- a/mitmproxy/addons/allowremote.py\n+++ b/mitmproxy/addons/allowremote.py\n@@ -14,11 +14,13 @@\n )\n \n def clientconnect(self, layer):\n- address = layer.client_conn.address\n+ address = ipaddr...
864
170
gh_patches_debug_10238
rasdani/github-patches
git_diff
quantumlib__Cirq-4003
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- optimized_for_sycamore fails when you measure more than 16 qubits ```python def thing(): q = cirq.LineQubit.range(17) c = cirq.Circuit(cirq.H.on_each(*q), cirq.measure(*q, key='z')) c = cg.opt...
diff --git a/cirq/optimizers/drop_negligible.py b/cirq/optimizers/drop_negligible.py --- a/cirq/optimizers/drop_negligible.py +++ b/cirq/optimizers/drop_negligible.py @@ -36,6 +36,8 @@ deletions: List[Tuple[int, ops.Operation]] = [] for moment_index, moment in enumerate(circuit): for op i...
{"golden_diff": "diff --git a/cirq/optimizers/drop_negligible.py b/cirq/optimizers/drop_negligible.py\n--- a/cirq/optimizers/drop_negligible.py\n+++ b/cirq/optimizers/drop_negligible.py\n@@ -36,6 +36,8 @@\n deletions: List[Tuple[int, ops.Operation]] = []\n for moment_index, moment in enumerate(circuit):...
1,573
163
gh_patches_debug_32634
rasdani/github-patches
git_diff
huggingface__trl-555
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- StackLLAMA examples uses sentiment model as reward model The script to train the StackLLAMA model uses a sentiment pipeline for training the reward model while it should use the model that was trained before....
diff --git a/examples/research_projects/stack_llama/scripts/rl_training.py b/examples/research_projects/stack_llama/scripts/rl_training.py --- a/examples/research_projects/stack_llama/scripts/rl_training.py +++ b/examples/research_projects/stack_llama/scripts/rl_training.py @@ -92,6 +92,7 @@ train_dataset = load_dat...
{"golden_diff": "diff --git a/examples/research_projects/stack_llama/scripts/rl_training.py b/examples/research_projects/stack_llama/scripts/rl_training.py\n--- a/examples/research_projects/stack_llama/scripts/rl_training.py\n+++ b/examples/research_projects/stack_llama/scripts/rl_training.py\n@@ -92,6 +92,7 @@\n \n tr...
3,478
434
gh_patches_debug_42418
rasdani/github-patches
git_diff
vispy__vispy-698
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Implement a server-side GLIR cache This is backend-independent. The GL context needs to store a list of (almost) all GLIR commands emitted since initialization. Unnecessary GLIR commands (old commands superse...
diff --git a/vispy/app/backends/_ipynb_webgl.py b/vispy/app/backends/_ipynb_webgl.py --- a/vispy/app/backends/_ipynb_webgl.py +++ b/vispy/app/backends/_ipynb_webgl.py @@ -14,6 +14,7 @@ from ...util import logger, keys from ...ext import six from vispy.gloo.glir import BaseGlirParser +from vispy.app import Timer #...
{"golden_diff": "diff --git a/vispy/app/backends/_ipynb_webgl.py b/vispy/app/backends/_ipynb_webgl.py\n--- a/vispy/app/backends/_ipynb_webgl.py\n+++ b/vispy/app/backends/_ipynb_webgl.py\n@@ -14,6 +14,7 @@\n from ...util import logger, keys\n from ...ext import six\n from vispy.gloo.glir import BaseGlirParser\n+from vis...
3,984
795
gh_patches_debug_41774
rasdani/github-patches
git_diff
pantsbuild__pants-4696
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- dict type options in config files One can also put a dict value into a config file (please add to http://www.pantsbuild.org/options.html): [scope] config: { "domain": "example.com", ...
diff --git a/src/python/pants/backend/jvm/tasks/scalafmt.py b/src/python/pants/backend/jvm/tasks/scalafmt.py --- a/src/python/pants/backend/jvm/tasks/scalafmt.py +++ b/src/python/pants/backend/jvm/tasks/scalafmt.py @@ -33,9 +33,9 @@ register('--configuration', advanced=True, type=file_option, fingerprint=False, ...
{"golden_diff": "diff --git a/src/python/pants/backend/jvm/tasks/scalafmt.py b/src/python/pants/backend/jvm/tasks/scalafmt.py\n--- a/src/python/pants/backend/jvm/tasks/scalafmt.py\n+++ b/src/python/pants/backend/jvm/tasks/scalafmt.py\n@@ -33,9 +33,9 @@\n register('--configuration', advanced=True, type=file_option, ...
3,835
878
gh_patches_debug_1184
rasdani/github-patches
git_diff
voxel51__fiftyone-3297
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] fiftyone forces starlette=0.16.0 and it breaks integrations with applications that use FastAPI in newer versions. ### Instructions Thank you for submitting an issue. Please refer to our [issue polic...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -67,7 +67,7 @@ "setuptools", "sseclient-py>=1.7.2,<2", "sse-starlette>=0.10.3,<1", - "starlette>=0.24.0,<0.27", + "starlette>=0.24.0", "strawberry-graphql==0.138.1", "tabulate", "xmltodict",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -67,7 +67,7 @@\n \"setuptools\",\n \"sseclient-py>=1.7.2,<2\",\n \"sse-starlette>=0.10.3,<1\",\n- \"starlette>=0.24.0,<0.27\",\n+ \"starlette>=0.24.0\",\n \"strawberry-graphql==0.138.1\",\n \"tabulate\",\n ...
2,707
125
gh_patches_debug_22077
rasdani/github-patches
git_diff
spack__spack-13605
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pybind11: fix get_include() The `py-pybind11` package has a python module helper of the form: ```python import pybind11 as py print(py.get_include()) ``` which helps downstream, if they are not using...
diff --git a/var/spack/repos/builtin/packages/py-pybind11/package.py b/var/spack/repos/builtin/packages/py-pybind11/package.py --- a/var/spack/repos/builtin/packages/py-pybind11/package.py +++ b/var/spack/repos/builtin/packages/py-pybind11/package.py @@ -56,7 +56,27 @@ def setup_build_environment(self, env): ...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/py-pybind11/package.py b/var/spack/repos/builtin/packages/py-pybind11/package.py\n--- a/var/spack/repos/builtin/packages/py-pybind11/package.py\n+++ b/var/spack/repos/builtin/packages/py-pybind11/package.py\n@@ -56,7 +56,27 @@\n def setup_build_environm...
1,962
347
gh_patches_debug_25698
rasdani/github-patches
git_diff
DataDog__dd-trace-py-3378
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `ddtrace.opentracer.span.Span` method return types not compliant with `opentracing.span.Span` I'll be happy to submit a PR for this--it should be a small fix--but wanted to make sure this isn't a known issue ...
diff --git a/ddtrace/opentracer/span.py b/ddtrace/opentracer/span.py --- a/ddtrace/opentracer/span.py +++ b/ddtrace/opentracer/span.py @@ -94,9 +94,10 @@ return self.context.get_baggage_item(key) def set_operation_name(self, operation_name): - # type: (str) -> None + # type: (str) -> Span ...
{"golden_diff": "diff --git a/ddtrace/opentracer/span.py b/ddtrace/opentracer/span.py\n--- a/ddtrace/opentracer/span.py\n+++ b/ddtrace/opentracer/span.py\n@@ -94,9 +94,10 @@\n return self.context.get_baggage_item(key)\n \n def set_operation_name(self, operation_name):\n- # type: (str) -> None\n+ ...
2,679
294
gh_patches_debug_24504
rasdani/github-patches
git_diff
pyca__cryptography-5438
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make OpenSSL 1.0.2 error (+ env var fallback) --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `src/cryptogr...
diff --git a/src/cryptography/hazmat/bindings/openssl/binding.py b/src/cryptography/hazmat/bindings/openssl/binding.py --- a/src/cryptography/hazmat/bindings/openssl/binding.py +++ b/src/cryptography/hazmat/bindings/openssl/binding.py @@ -5,6 +5,7 @@ from __future__ import absolute_import, division, print_function ...
{"golden_diff": "diff --git a/src/cryptography/hazmat/bindings/openssl/binding.py b/src/cryptography/hazmat/bindings/openssl/binding.py\n--- a/src/cryptography/hazmat/bindings/openssl/binding.py\n+++ b/src/cryptography/hazmat/bindings/openssl/binding.py\n@@ -5,6 +5,7 @@\n from __future__ import absolute_import, divisio...
2,424
353
gh_patches_debug_38672
rasdani/github-patches
git_diff
dask__dask-4160
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use key names rather than function names in dask.visualize When creating task graph images we currently inspect the task graph to find functions and use those function names in the graph. Now that atop produ...
diff --git a/dask/dot.py b/dask/dot.py --- a/dask/dot.py +++ b/dask/dot.py @@ -6,7 +6,7 @@ from .compatibility import apply from .core import istask, get_dependencies, ishashable -from .utils import funcname, import_required +from .utils import funcname, import_required, key_split graphviz = import_required("g...
{"golden_diff": "diff --git a/dask/dot.py b/dask/dot.py\n--- a/dask/dot.py\n+++ b/dask/dot.py\n@@ -6,7 +6,7 @@\n \n from .compatibility import apply\n from .core import istask, get_dependencies, ishashable\n-from .utils import funcname, import_required\n+from .utils import funcname, import_required, key_split\n \n \n g...
2,993
591
gh_patches_debug_9405
rasdani/github-patches
git_diff
ivy-llc__ivy-17873
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- dropout1d --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ivy/functional/frontends/torch/nn/functional/dro...
diff --git a/ivy/functional/frontends/torch/nn/functional/dropout_functions.py b/ivy/functional/frontends/torch/nn/functional/dropout_functions.py --- a/ivy/functional/frontends/torch/nn/functional/dropout_functions.py +++ b/ivy/functional/frontends/torch/nn/functional/dropout_functions.py @@ -9,3 +9,11 @@ @with_unsup...
{"golden_diff": "diff --git a/ivy/functional/frontends/torch/nn/functional/dropout_functions.py b/ivy/functional/frontends/torch/nn/functional/dropout_functions.py\n--- a/ivy/functional/frontends/torch/nn/functional/dropout_functions.py\n+++ b/ivy/functional/frontends/torch/nn/functional/dropout_functions.py\n@@ -9,3 +...
390
251
gh_patches_debug_34828
rasdani/github-patches
git_diff
PaddlePaddle__models-1879
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 文本分类text_classification训练选项不匹配 1. train.py中batch_size参数冗余 2. 命令行选项gru配置错误 3. GRU Layer embedding学习率默认配置过大,导致模型训练补课收敛。 --- END ISSUE --- Below are some code segments, each from a relevant file. One or ...
diff --git a/fluid/PaddleNLP/text_classification/nets.py b/fluid/PaddleNLP/text_classification/nets.py --- a/fluid/PaddleNLP/text_classification/nets.py +++ b/fluid/PaddleNLP/text_classification/nets.py @@ -101,7 +101,7 @@ hid_dim=128, hid_dim2=96, class_dim=2, - emb_lr...
{"golden_diff": "diff --git a/fluid/PaddleNLP/text_classification/nets.py b/fluid/PaddleNLP/text_classification/nets.py\n--- a/fluid/PaddleNLP/text_classification/nets.py\n+++ b/fluid/PaddleNLP/text_classification/nets.py\n@@ -101,7 +101,7 @@\n hid_dim=128,\n hid_dim2=96,\n class_dim...
2,968
537
gh_patches_debug_21209
rasdani/github-patches
git_diff
quantumlib__Cirq-2004
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ControlledOperation objects do not (un)pickle Python version 3.6.8 Cirq Version = 0.6.0.dev (also in 0.5.0) Attempting to unpickle any ops.ControlledOperation object, either by pickle or by dill, results ...
diff --git a/cirq/ops/controlled_operation.py b/cirq/ops/controlled_operation.py --- a/cirq/ops/controlled_operation.py +++ b/cirq/ops/controlled_operation.py @@ -23,21 +23,17 @@ @value.value_equality class ControlledOperation(raw_types.Operation): - def __new__(cls, - controls: Sequence[raw_types...
{"golden_diff": "diff --git a/cirq/ops/controlled_operation.py b/cirq/ops/controlled_operation.py\n--- a/cirq/ops/controlled_operation.py\n+++ b/cirq/ops/controlled_operation.py\n@@ -23,21 +23,17 @@\n \n @value.value_equality\n class ControlledOperation(raw_types.Operation):\n- def __new__(cls,\n- con...
2,417
275
gh_patches_debug_25242
rasdani/github-patches
git_diff
fedora-infra__bodhi-5479
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Updates sometimes get stuck in pending state From quick look, it seems that the composer does: 1. move from `f*-updates-candidate` to `f*-updates-testing` 2. do stuff 3. untag from `f*-updates-testing-pend...
diff --git a/bodhi-server/bodhi/server/tasks/check_signed_builds.py b/bodhi-server/bodhi/server/tasks/check_signed_builds.py --- a/bodhi-server/bodhi/server/tasks/check_signed_builds.py +++ b/bodhi-server/bodhi/server/tasks/check_signed_builds.py @@ -77,10 +77,16 @@ pending_signing_tag = update.release.pen...
{"golden_diff": "diff --git a/bodhi-server/bodhi/server/tasks/check_signed_builds.py b/bodhi-server/bodhi/server/tasks/check_signed_builds.py\n--- a/bodhi-server/bodhi/server/tasks/check_signed_builds.py\n+++ b/bodhi-server/bodhi/server/tasks/check_signed_builds.py\n@@ -77,10 +77,16 @@\n pending_signing_tag...
1,561
300
gh_patches_debug_25859
rasdani/github-patches
git_diff
ansible__ansible-35363
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ios_command module : can not use "configure revert" commands ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME - ios_command ##### ANSIBLE VERSION - 2.x ##### SUMMARY: ios_command module should ...
diff --git a/lib/ansible/modules/network/ios/ios_command.py b/lib/ansible/modules/network/ios/ios_command.py --- a/lib/ansible/modules/network/ios/ios_command.py +++ b/lib/ansible/modules/network/ios/ios_command.py @@ -131,6 +131,7 @@ type: list sample: ['...', '...'] """ +import re import time from ansible....
{"golden_diff": "diff --git a/lib/ansible/modules/network/ios/ios_command.py b/lib/ansible/modules/network/ios/ios_command.py\n--- a/lib/ansible/modules/network/ios/ios_command.py\n+++ b/lib/ansible/modules/network/ios/ios_command.py\n@@ -131,6 +131,7 @@\n type: list\n sample: ['...', '...']\n \"\"\"\n+import re\n ...
2,922
285
gh_patches_debug_10905
rasdani/github-patches
git_diff
saleor__saleor-1775
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improving product variant behaviour ### Steps to reproduce the problem 1. Choose any product in dashboard 2. Remove all variants 3. Try to go to the product page in storefront ### What I expected to h...
diff --git a/saleor/product/forms.py b/saleor/product/forms.py --- a/saleor/product/forms.py +++ b/saleor/product/forms.py @@ -31,8 +31,8 @@ vi.image.image.url for vi in variant.variant_images.all()] for variant in variants.all()} self.widget.attrs['data-images'] = json.dumps(imag...
{"golden_diff": "diff --git a/saleor/product/forms.py b/saleor/product/forms.py\n--- a/saleor/product/forms.py\n+++ b/saleor/product/forms.py\n@@ -31,8 +31,8 @@\n vi.image.image.url for vi in variant.variant_images.all()]\n for variant in variants.all()}\n self.widget.attrs['data-ima...
877
156
gh_patches_debug_34809
rasdani/github-patches
git_diff
readthedocs__readthedocs.org-4915
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Versions aren't deleted if there is one with the same commit If we create two versions pointing to the same commit (say, master and a tag on master). If we delete the tag, when syncing the repositories that t...
diff --git a/readthedocs/restapi/utils.py b/readthedocs/restapi/utils.py --- a/readthedocs/restapi/utils.py +++ b/readthedocs/restapi/utils.py @@ -2,16 +2,26 @@ """Utility functions that are used by both views and celery tasks.""" from __future__ import ( - absolute_import, division, print_function, unicode_lite...
{"golden_diff": "diff --git a/readthedocs/restapi/utils.py b/readthedocs/restapi/utils.py\n--- a/readthedocs/restapi/utils.py\n+++ b/readthedocs/restapi/utils.py\n@@ -2,16 +2,26 @@\n \"\"\"Utility functions that are used by both views and celery tasks.\"\"\"\n \n from __future__ import (\n- absolute_import, division...
2,919
547
gh_patches_debug_22682
rasdani/github-patches
git_diff
strawberry-graphql__strawberry-1748
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pydantic converted types have no way to deprecate fields Since we recreate the field object for the values that use simple fields, there isn't a clean way to add a deprecation_reason to a field from a pydanti...
diff --git a/strawberry/experimental/pydantic/object_type.py b/strawberry/experimental/pydantic/object_type.py --- a/strawberry/experimental/pydantic/object_type.py +++ b/strawberry/experimental/pydantic/object_type.py @@ -110,6 +110,7 @@ strawberry_field = existing_fields[field.name] else: # oth...
{"golden_diff": "diff --git a/strawberry/experimental/pydantic/object_type.py b/strawberry/experimental/pydantic/object_type.py\n--- a/strawberry/experimental/pydantic/object_type.py\n+++ b/strawberry/experimental/pydantic/object_type.py\n@@ -110,6 +110,7 @@\n strawberry_field = existing_fields[field.name]\n ...
3,278
235
gh_patches_debug_25281
rasdani/github-patches
git_diff
crytic__slither-1470
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `naming-convention` does not flag `I` or `O` variable ### Describe the issue: Slither has a detection for usage of * l - Lowercase letter el * O - Uppercase letter oh * I - Uppercase letter eye https...
diff --git a/slither/detectors/naming_convention/naming_convention.py b/slither/detectors/naming_convention/naming_convention.py --- a/slither/detectors/naming_convention/naming_convention.py +++ b/slither/detectors/naming_convention/naming_convention.py @@ -119,22 +119,21 @@ for var in contract.state_va...
{"golden_diff": "diff --git a/slither/detectors/naming_convention/naming_convention.py b/slither/detectors/naming_convention/naming_convention.py\n--- a/slither/detectors/naming_convention/naming_convention.py\n+++ b/slither/detectors/naming_convention/naming_convention.py\n@@ -119,22 +119,21 @@\n \n for va...
2,714
321
gh_patches_debug_35598
rasdani/github-patches
git_diff
beetbox__beets-2917
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- mbsync: Tolerate MusicBrainz recording ID changes mbsync uses the musicbrainz recording id to match local track information against a certain track in a musicbrainz release. However, there is no fallback matc...
diff --git a/beetsplug/mbsync.py b/beetsplug/mbsync.py --- a/beetsplug/mbsync.py +++ b/beetsplug/mbsync.py @@ -117,28 +117,35 @@ album_formatted) continue - # Map recording MBIDs to their information. Recordings can appear - # multiple times on a ...
{"golden_diff": "diff --git a/beetsplug/mbsync.py b/beetsplug/mbsync.py\n--- a/beetsplug/mbsync.py\n+++ b/beetsplug/mbsync.py\n@@ -117,28 +117,35 @@\n album_formatted)\n continue\n \n- # Map recording MBIDs to their information. Recordings can appear\n- ...
2,230
562
gh_patches_debug_28913
rasdani/github-patches
git_diff
PrefectHQ__prefect-2534
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Behaviour differs from documentation: state.result & flow.get_tasks Prefect Version: 0.10.4 ## Current behavior Minor issue - The following behaviour doesn't match up to that described by the documentati...
diff --git a/src/prefect/engine/results/azure_result.py b/src/prefect/engine/results/azure_result.py --- a/src/prefect/engine/results/azure_result.py +++ b/src/prefect/engine/results/azure_result.py @@ -25,6 +25,7 @@ will be used - connection_string_secret (str, optional): the name of a Prefect Se...
{"golden_diff": "diff --git a/src/prefect/engine/results/azure_result.py b/src/prefect/engine/results/azure_result.py\n--- a/src/prefect/engine/results/azure_result.py\n+++ b/src/prefect/engine/results/azure_result.py\n@@ -25,6 +25,7 @@\n will be used\n - connection_string_secret (str, optional): th...
3,136
374
gh_patches_debug_6255
rasdani/github-patches
git_diff
qtile__qtile-180
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- using Qtile.cmd_{info, debug} doesn't switch logging level It seems that critical, warning, and error do all work, though. --- END ISSUE --- Below are some code segments, each from a relevant file. One or ...
diff --git a/libqtile/log_utils.py b/libqtile/log_utils.py --- a/libqtile/log_utils.py +++ b/libqtile/log_utils.py @@ -43,7 +43,6 @@ def init_log(log_level=logging.WARNING, logger='qtile'): handler = logging.FileHandler( os.path.expanduser('~/.%s.log' % logger)) - handler.setLevel(logging.WARNING) ...
{"golden_diff": "diff --git a/libqtile/log_utils.py b/libqtile/log_utils.py\n--- a/libqtile/log_utils.py\n+++ b/libqtile/log_utils.py\n@@ -43,7 +43,6 @@\n def init_log(log_level=logging.WARNING, logger='qtile'):\n handler = logging.FileHandler(\n os.path.expanduser('~/.%s.log' % logger))\n- handler.setLe...
896
118
gh_patches_debug_38317
rasdani/github-patches
git_diff
lutris__lutris-2235
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Lutris removes "DXVK" dlls even when they're not from DXVK **Describe the bug** It is currently not possible to use Gallium Nine, when DXVK is disabled in the settings (which would be what I thought would ...
diff --git a/lutris/util/wine/dxvk.py b/lutris/util/wine/dxvk.py --- a/lutris/util/wine/dxvk.py +++ b/lutris/util/wine/dxvk.py @@ -23,25 +23,31 @@ if not os.path.isdir(dxvk_path): os.mkdir(dxvk_path) versions_path = os.path.join(dxvk_path, base_name+"_versions.json") - - urllib.req...
{"golden_diff": "diff --git a/lutris/util/wine/dxvk.py b/lutris/util/wine/dxvk.py\n--- a/lutris/util/wine/dxvk.py\n+++ b/lutris/util/wine/dxvk.py\n@@ -23,25 +23,31 @@\n if not os.path.isdir(dxvk_path):\n os.mkdir(dxvk_path)\n versions_path = os.path.join(dxvk_path, base_name+\"_versions.json...
3,099
634
gh_patches_debug_7605
rasdani/github-patches
git_diff
vacanza__python-holidays-376
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pop_named() sometimes generates an exception This simple code block generates an exception when I try to pop "Columbus Day" (last line): ``` from datetime import date import holidays us_holidays =...
diff --git a/holidays/holiday_base.py b/holidays/holiday_base.py --- a/holidays/holiday_base.py +++ b/holidays/holiday_base.py @@ -147,7 +147,8 @@ def get_named(self, name): # find all dates matching provided name (accepting partial # strings too, case insensitive), returning them in a list - ...
{"golden_diff": "diff --git a/holidays/holiday_base.py b/holidays/holiday_base.py\n--- a/holidays/holiday_base.py\n+++ b/holidays/holiday_base.py\n@@ -147,7 +147,8 @@\n def get_named(self, name):\n # find all dates matching provided name (accepting partial\n # strings too, case insensitive), returni...
2,937
145
gh_patches_debug_20514
rasdani/github-patches
git_diff
liqd__a4-product-149
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- tile images on partner page are not cut to same size ![screenshot from 2017-11-28 12-12-35](https://user-images.githubusercontent.com/8178179/33316792-7b8fc848-d435-11e7-8723-8849b5804bce.png) --- END ISSU...
diff --git a/liqd_product/config/urls.py b/liqd_product/config/urls.py --- a/liqd_product/config/urls.py +++ b/liqd_product/config/urls.py @@ -16,6 +16,7 @@ from adhocracy4.reports.api import ReportViewSet from liqd_product.apps.partners.urlresolvers import partner_patterns from liqd_product.apps.users.decorators im...
{"golden_diff": "diff --git a/liqd_product/config/urls.py b/liqd_product/config/urls.py\n--- a/liqd_product/config/urls.py\n+++ b/liqd_product/config/urls.py\n@@ -16,6 +16,7 @@\n from adhocracy4.reports.api import ReportViewSet\n from liqd_product.apps.partners.urlresolvers import partner_patterns\n from liqd_product.a...
1,511
216
gh_patches_debug_30361
rasdani/github-patches
git_diff
pytorch__ignite-1771
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Patch MNIST dataset downloading to fix CI Currently, there is an issue with downloading MNIST dataset using torchvision. Let's introduce the following patch to our CI to fix it: - https://github.com/pytorch/...
diff --git a/examples/mnist/mnist_patch.py b/examples/mnist/mnist_patch.py deleted file mode 100644 --- a/examples/mnist/mnist_patch.py +++ /dev/null @@ -1,69 +0,0 @@ -"""Patch to fix MNIST download issue as described here: -- https://github.com/pytorch/ignite/issues/1737 -- https://github.com/pytorch/vision/issues/350...
{"golden_diff": "diff --git a/examples/mnist/mnist_patch.py b/examples/mnist/mnist_patch.py\ndeleted file mode 100644\n--- a/examples/mnist/mnist_patch.py\n+++ /dev/null\n@@ -1,69 +0,0 @@\n-\"\"\"Patch to fix MNIST download issue as described here:\n-- https://github.com/pytorch/ignite/issues/1737\n-- https://github.co...
1,095
600
gh_patches_debug_18310
rasdani/github-patches
git_diff
huggingface__accelerate-695
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `notebook_launcher` cannot use MPS device on M1 or M2 Mac ### System Info ```Shell - `Accelerate` version: 0.13.0.dev0 - Platform: macOS-12.5.1-arm64-arm-64bit - Python version: 3.10.4 - Numpy version:...
diff --git a/src/accelerate/launchers.py b/src/accelerate/launchers.py --- a/src/accelerate/launchers.py +++ b/src/accelerate/launchers.py @@ -121,12 +121,17 @@ start_processes(launcher, args=args, nprocs=num_processes, start_method="fork") else: - # No need for a distributed laun...
{"golden_diff": "diff --git a/src/accelerate/launchers.py b/src/accelerate/launchers.py\n--- a/src/accelerate/launchers.py\n+++ b/src/accelerate/launchers.py\n@@ -121,12 +121,17 @@\n start_processes(launcher, args=args, nprocs=num_processes, start_method=\"fork\")\n \n else:\n- # No n...
2,668
239
gh_patches_debug_10539
rasdani/github-patches
git_diff
pwndbg__pwndbg-216
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- IDA Pro Integration - decompile() segfault Calling `idaapi.decompile()` causes my IDA `6.9.151221 (December 21, 2015)` to segfault (often corrupting the database) when Hex-Rays is not installed. There need...
diff --git a/pwndbg/ida.py b/pwndbg/ida.py --- a/pwndbg/ida.py +++ b/pwndbg/ida.py @@ -74,6 +74,12 @@ return self.fn(*args, **kwargs) return None +def withHexrays(f): + @withIDA + @functools.wraps(f) + def wrapper(*a, **kw): + if _ida.init_hexrays_plugin(): + return f(...
{"golden_diff": "diff --git a/pwndbg/ida.py b/pwndbg/ida.py\n--- a/pwndbg/ida.py\n+++ b/pwndbg/ida.py\n@@ -74,6 +74,12 @@\n return self.fn(*args, **kwargs)\n return None\n \n+def withHexrays(f):\n+ @withIDA\n+ @functools.wraps(f)\n+ def wrapper(*a, **kw):\n+ if _ida.init_hexrays_plug...
4,090
186
gh_patches_debug_13350
rasdani/github-patches
git_diff
cisagov__manage.get.gov-282
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Build Domain Submission Landing Page **User Story** As a user submitting a domain request I want to know my domain was successfully submitted so I can prepare for future steps **Acceptance Criteria** - Dom...
diff --git a/src/registrar/forms/application_wizard.py b/src/registrar/forms/application_wizard.py --- a/src/registrar/forms/application_wizard.py +++ b/src/registrar/forms/application_wizard.py @@ -3,7 +3,7 @@ import logging from django import forms -from django.shortcuts import redirect +from django.shortcuts imp...
{"golden_diff": "diff --git a/src/registrar/forms/application_wizard.py b/src/registrar/forms/application_wizard.py\n--- a/src/registrar/forms/application_wizard.py\n+++ b/src/registrar/forms/application_wizard.py\n@@ -3,7 +3,7 @@\n import logging\n \n from django import forms\n-from django.shortcuts import redirect\n+...
4,091
161
gh_patches_debug_8885
rasdani/github-patches
git_diff
certbot__certbot-5861
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [1] Standardize how you’ll run mypy From http://blog.zulip.org/2016/10/13/static-types-in-python-oh-mypy/: Write tooling to [install](https://github.com/zulip/zulip/blob/master/tools/install-mypy) and [run...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -65,6 +65,10 @@ 'wheel', ] +dev3_extras = [ + 'mypy', +] + docs_extras = [ 'repoze.sphinx.autointerface', # autodoc_member_order = 'bysource', autodoc_default_flags, and #4686 @@ -110,6 +114,7 @@ install_requires=install_requir...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -65,6 +65,10 @@\n 'wheel',\n ]\n \n+dev3_extras = [\n+ 'mypy',\n+]\n+\n docs_extras = [\n 'repoze.sphinx.autointerface',\n # autodoc_member_order = 'bysource', autodoc_default_flags, and #4686\n@@ -110,6 +114,7 @@\n ...
1,917
151
gh_patches_debug_42707
rasdani/github-patches
git_diff
secondmind-labs__trieste-441
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Active learning acquisition functions are missing integration tests --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES -...
diff --git a/docs/notebooks/active_learning.pct.py b/docs/notebooks/active_learning.pct.py --- a/docs/notebooks/active_learning.pct.py +++ b/docs/notebooks/active_learning.pct.py @@ -19,11 +19,11 @@ # %% -from trieste.objectives import scaled_branin +from trieste.objectives import BRANIN_SEARCH_SPACE, scaled_brani...
{"golden_diff": "diff --git a/docs/notebooks/active_learning.pct.py b/docs/notebooks/active_learning.pct.py\n--- a/docs/notebooks/active_learning.pct.py\n+++ b/docs/notebooks/active_learning.pct.py\n@@ -19,11 +19,11 @@\n \n \n # %%\n-from trieste.objectives import scaled_branin\n+from trieste.objectives import BRANIN_S...
2,232
977
gh_patches_debug_14621
rasdani/github-patches
git_diff
talonhub__community-378
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- the command key should probably be made Mac specific --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `code/...
diff --git a/code/keys.py b/code/keys.py --- a/code/keys.py +++ b/code/keys.py @@ -111,15 +111,17 @@ ctx = Context() -ctx.lists["self.modifier_key"] = { +modifier_keys = { # If you find 'alt' is often misrecognized, try using 'alter'. "alt": "alt", #'alter': 'alt', - "command": "cmd", "control":...
{"golden_diff": "diff --git a/code/keys.py b/code/keys.py\n--- a/code/keys.py\n+++ b/code/keys.py\n@@ -111,15 +111,17 @@\n \n \n ctx = Context()\n-ctx.lists[\"self.modifier_key\"] = {\n+modifier_keys = {\n # If you find 'alt' is often misrecognized, try using 'alter'.\n \"alt\": \"alt\", #'alter': 'alt',\n- ...
2,600
217
gh_patches_debug_24197
rasdani/github-patches
git_diff
kserve__kserve-3226
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- KServe lgbserver runtime error input for v1 endpoint /kind bug **What steps did you take and what happened:** lgbserver used to support both of following inputs formats prior to 0.11 release. ```python...
diff --git a/python/kserve/kserve/utils/utils.py b/python/kserve/kserve/utils/utils.py --- a/python/kserve/kserve/utils/utils.py +++ b/python/kserve/kserve/utils/utils.py @@ -16,7 +16,7 @@ import sys import uuid from kserve.protocol.grpc.grpc_predict_v2_pb2 import InferParameter -from typing import Dict, Union +from...
{"golden_diff": "diff --git a/python/kserve/kserve/utils/utils.py b/python/kserve/kserve/utils/utils.py\n--- a/python/kserve/kserve/utils/utils.py\n+++ b/python/kserve/kserve/utils/utils.py\n@@ -16,7 +16,7 @@\n import sys\n import uuid\n from kserve.protocol.grpc.grpc_predict_v2_pb2 import InferParameter\n-from typing ...
3,295
345
gh_patches_debug_15872
rasdani/github-patches
git_diff
azavea__raster-vision-427
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fill out model-defaults for tensorflow-od Currently we only have 1 model in model_defaults.json: https://github.com/azavea/raster-vision/blob/feature/api-refactor/src/rastervision/backend/model_defaults.j...
diff --git a/src/rastervision/backend/api.py b/src/rastervision/backend/api.py --- a/src/rastervision/backend/api.py +++ b/src/rastervision/backend/api.py @@ -13,6 +13,20 @@ ### TF Object Detection SSD_MOBILENET_V1_COCO = 'SSD_MOBILENET_V1_COCO' +SSD_MOBILENET_V2_COCO = 'SSD_MOBILENET_V2_COCO' +SSDLITE_MOBILENET_V2...
{"golden_diff": "diff --git a/src/rastervision/backend/api.py b/src/rastervision/backend/api.py\n--- a/src/rastervision/backend/api.py\n+++ b/src/rastervision/backend/api.py\n@@ -13,6 +13,20 @@\n \n ### TF Object Detection\n SSD_MOBILENET_V1_COCO = 'SSD_MOBILENET_V1_COCO'\n+SSD_MOBILENET_V2_COCO = 'SSD_MOBILENET_V2_COC...
545
441
gh_patches_debug_37445
rasdani/github-patches
git_diff
hpcaitech__ColossalAI-4815
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/op_builder/gptq.py b/op_builder/gptq.py --- a/op_builder/gptq.py +++ b/op_builder/gptq.py @@ -1,19 +1,17 @@ -import os -import torch import re +import torch + from .builder import Builder -from .utils import append_nvcc_threads, get_cuda_cc_flag +from .utils import append_nvcc_threads -class GPTQBuil...
{"golden_diff": "diff --git a/op_builder/gptq.py b/op_builder/gptq.py\n--- a/op_builder/gptq.py\n+++ b/op_builder/gptq.py\n@@ -1,19 +1,17 @@\n-import os\n-import torch\n import re\n \n+import torch\n+\n from .builder import Builder\n-from .utils import append_nvcc_threads, get_cuda_cc_flag\n+from .utils import append_n...
809
815
gh_patches_debug_5850
rasdani/github-patches
git_diff
web2py__web2py-544
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- db.export_to_csv_file() error with python 3.7 **Describe the bug** db.export_to_csv_file() error with python 3.7 ``` TypeError: a bytes-like object is required, not 'str' ``` in ``` web2py/gluon/packag...
diff --git a/gluon/dal/adapters/oracle.py b/gluon/dal/adapters/oracle.py --- a/gluon/dal/adapters/oracle.py +++ b/gluon/dal/adapters/oracle.py @@ -136,7 +136,7 @@ return self.log_execute(command, args) def create_sequence_and_triggers(self, query, table, **args): - tablename = table._tablename + ...
{"golden_diff": "diff --git a/gluon/dal/adapters/oracle.py b/gluon/dal/adapters/oracle.py\n--- a/gluon/dal/adapters/oracle.py\n+++ b/gluon/dal/adapters/oracle.py\n@@ -136,7 +136,7 @@\n return self.log_execute(command, args)\n \n def create_sequence_and_triggers(self, query, table, **args):\n- tablena...
3,240
140
gh_patches_debug_35667
rasdani/github-patches
git_diff
scrapy__scrapy-4799
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Usage of HttpCompressionMiddleware needs to be reflected in Scrapy stats ## Summary Usage of `HttpCompressionMiddleware` needs to be relfected in Scrapy stats. ## Motivation In order to estimate scrapy mem...
diff --git a/scrapy/downloadermiddlewares/httpcompression.py b/scrapy/downloadermiddlewares/httpcompression.py --- a/scrapy/downloadermiddlewares/httpcompression.py +++ b/scrapy/downloadermiddlewares/httpcompression.py @@ -1,10 +1,12 @@ import io +import warnings import zlib -from scrapy.utils.gz import gunzip +fro...
{"golden_diff": "diff --git a/scrapy/downloadermiddlewares/httpcompression.py b/scrapy/downloadermiddlewares/httpcompression.py\n--- a/scrapy/downloadermiddlewares/httpcompression.py\n+++ b/scrapy/downloadermiddlewares/httpcompression.py\n@@ -1,10 +1,12 @@\n import io\n+import warnings\n import zlib\n \n-from scrapy.ut...
1,644
471
gh_patches_debug_9872
rasdani/github-patches
git_diff
google__flax-3344
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ResNetV1 implementation is actually ResNetV1.5 [Downsampling is performed by the 3x3 convolution](https://github.com/google/flax/blob/3ea6381139a340fa7b29c74a84205d8bad18b489/examples/imagenet/models.py#L74),...
diff --git a/examples/imagenet/models.py b/examples/imagenet/models.py --- a/examples/imagenet/models.py +++ b/examples/imagenet/models.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""Flax implementation of ResNet V1.""" +"""Flax implem...
{"golden_diff": "diff --git a/examples/imagenet/models.py b/examples/imagenet/models.py\n--- a/examples/imagenet/models.py\n+++ b/examples/imagenet/models.py\n@@ -12,7 +12,7 @@\n # See the License for the specific language governing permissions and\n # limitations under the License.\n \n-\"\"\"Flax implementation of Re...
2,173
163
gh_patches_debug_2301
rasdani/github-patches
git_diff
encode__httpx-1034
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- aiter_lines() doesn't return full lines that span multiple chunks <https://gist.github.com/scr-oath/aa76d200222a0409d09a0d6feb1a13e2> shows an example setup using cherry.py as server that just outputs two lin...
diff --git a/httpx/_decoders.py b/httpx/_decoders.py --- a/httpx/_decoders.py +++ b/httpx/_decoders.py @@ -261,7 +261,7 @@ text = text[idx + 1 :] break elif next_char is None: - self.buffer = text + self.buffer += text ...
{"golden_diff": "diff --git a/httpx/_decoders.py b/httpx/_decoders.py\n--- a/httpx/_decoders.py\n+++ b/httpx/_decoders.py\n@@ -261,7 +261,7 @@\n text = text[idx + 1 :]\n break\n elif next_char is None:\n- self.buffer = text\n+ ...
3,345
90