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_20456
rasdani/github-patches
git_diff
translate__pootle-5699
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Lost timeSince data for suggestions --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `pootle/apps/pootle_mis...
diff --git a/pootle/apps/pootle_misc/templatetags/locale.py b/pootle/apps/pootle_misc/templatetags/locale.py --- a/pootle/apps/pootle_misc/templatetags/locale.py +++ b/pootle/apps/pootle_misc/templatetags/locale.py @@ -6,11 +6,14 @@ # or later license. See the LICENSE file for a copy of the license and the # AUTHORS ...
{"golden_diff": "diff --git a/pootle/apps/pootle_misc/templatetags/locale.py b/pootle/apps/pootle_misc/templatetags/locale.py\n--- a/pootle/apps/pootle_misc/templatetags/locale.py\n+++ b/pootle/apps/pootle_misc/templatetags/locale.py\n@@ -6,11 +6,14 @@\n # or later license. See the LICENSE file for a copy of the licens...
671
243
gh_patches_debug_1597
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-915
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix a few issues in Django example The Django example has a few issues, fix them. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- ...
diff --git a/docs/examples/django/pages/views.py b/docs/examples/django/pages/views.py --- a/docs/examples/django/pages/views.py +++ b/docs/examples/django/pages/views.py @@ -21,7 +21,6 @@ ) trace.set_tracer_provider(TracerProvider()) -tracer = trace.get_tracer_provider().get_tracer(__name__) trace.get_tracer_pr...
{"golden_diff": "diff --git a/docs/examples/django/pages/views.py b/docs/examples/django/pages/views.py\n--- a/docs/examples/django/pages/views.py\n+++ b/docs/examples/django/pages/views.py\n@@ -21,7 +21,6 @@\n )\n \n trace.set_tracer_provider(TracerProvider())\n-tracer = trace.get_tracer_provider().get_tracer(__name__...
573
99
gh_patches_debug_21112
rasdani/github-patches
git_diff
bridgecrewio__checkov-5171
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Checkov v2.3.261 fails with CKV_AWS_356 for KMS actions which must specify 'all resources' **Describe the issue** Checkov v2.3.261 fails with CKV_AWS_356 highlights IAM policies which are overly permissive b...
diff --git a/checkov/terraform/checks/utils/iam_terraform_document_to_policy_converter.py b/checkov/terraform/checks/utils/iam_terraform_document_to_policy_converter.py --- a/checkov/terraform/checks/utils/iam_terraform_document_to_policy_converter.py +++ b/checkov/terraform/checks/utils/iam_terraform_document_to_polic...
{"golden_diff": "diff --git a/checkov/terraform/checks/utils/iam_terraform_document_to_policy_converter.py b/checkov/terraform/checks/utils/iam_terraform_document_to_policy_converter.py\n--- a/checkov/terraform/checks/utils/iam_terraform_document_to_policy_converter.py\n+++ b/checkov/terraform/checks/utils/iam_terrafor...
818
270
gh_patches_debug_8908
rasdani/github-patches
git_diff
facebookresearch__ParlAI-371
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Slow loading of image features during training For VQA tasks, it takes massive amount of time to load the image features for training. The overhead is so much that for the same model it increases the training...
diff --git a/parlai/core/image_featurizers.py b/parlai/core/image_featurizers.py --- a/parlai/core/image_featurizers.py +++ b/parlai/core/image_featurizers.py @@ -9,6 +9,7 @@ import copy import numpy as np from PIL import Image +from functools import lru_cache _greyscale = ' .,:;crsA23hHG#98&@' @@ -121,6 +122,...
{"golden_diff": "diff --git a/parlai/core/image_featurizers.py b/parlai/core/image_featurizers.py\n--- a/parlai/core/image_featurizers.py\n+++ b/parlai/core/image_featurizers.py\n@@ -9,6 +9,7 @@\n import copy\n import numpy as np\n from PIL import Image\n+from functools import lru_cache\n \n _greyscale = ' .,:;crsA23h...
1,926
169
gh_patches_debug_35693
rasdani/github-patches
git_diff
falconry__falcon-1987
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update asgi look examples to use aioredis 2 A new major vesion of aioredis was released, and it has some api changes. This is the changelog https://github.com/aio-libs/aioredis-py/blob/master/CHANGELOG.md -...
diff --git a/examples/asgilook/asgilook/cache.py b/examples/asgilook/asgilook/cache.py --- a/examples/asgilook/asgilook/cache.py +++ b/examples/asgilook/asgilook/cache.py @@ -9,10 +9,7 @@ def __init__(self, config): self._config = config - - # NOTE(vytas): To be initialized upon application start...
{"golden_diff": "diff --git a/examples/asgilook/asgilook/cache.py b/examples/asgilook/asgilook/cache.py\n--- a/examples/asgilook/asgilook/cache.py\n+++ b/examples/asgilook/asgilook/cache.py\n@@ -9,10 +9,7 @@\n \n def __init__(self, config):\n self._config = config\n-\n- # NOTE(vytas): To be initializ...
1,071
552
gh_patches_debug_783
rasdani/github-patches
git_diff
modin-project__modin-3440
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove inheritance of Modin DMatrix from xgb.DMatrix Inheritance of Modin DMatrix from xgb.DMatrix doesn't include any benefits. Wrong documentation is provided to user using `help(modin.experimtenal.xgboost....
diff --git a/modin/experimental/xgboost/xgboost.py b/modin/experimental/xgboost/xgboost.py --- a/modin/experimental/xgboost/xgboost.py +++ b/modin/experimental/xgboost/xgboost.py @@ -25,7 +25,7 @@ LOGGER = logging.getLogger("[modin.xgboost]") -class DMatrix(xgb.DMatrix): +class DMatrix: """ DMatrix holds...
{"golden_diff": "diff --git a/modin/experimental/xgboost/xgboost.py b/modin/experimental/xgboost/xgboost.py\n--- a/modin/experimental/xgboost/xgboost.py\n+++ b/modin/experimental/xgboost/xgboost.py\n@@ -25,7 +25,7 @@\n LOGGER = logging.getLogger(\"[modin.xgboost]\")\n \n \n-class DMatrix(xgb.DMatrix):\n+class DMatrix:\...
2,268
107
gh_patches_debug_8028
rasdani/github-patches
git_diff
e-valuation__EvaP-848
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Username case sensitivity Usernames are case sensitive. The importer makes all usernames lowercase, but automatically created accounts when logging in with Kerberos authentification can have uppercase letters...
diff --git a/evap/evaluation/forms.py b/evap/evaluation/forms.py --- a/evap/evaluation/forms.py +++ b/evap/evaluation/forms.py @@ -29,6 +29,9 @@ username = self.cleaned_data.get('username') password = self.cleaned_data.get('password') + # django-auth-kerberos might create a new userprofile. m...
{"golden_diff": "diff --git a/evap/evaluation/forms.py b/evap/evaluation/forms.py\n--- a/evap/evaluation/forms.py\n+++ b/evap/evaluation/forms.py\n@@ -29,6 +29,9 @@\n username = self.cleaned_data.get('username')\n password = self.cleaned_data.get('password')\n \n+ # django-auth-kerberos might cre...
1,023
130
gh_patches_debug_211
rasdani/github-patches
git_diff
mdn__kuma-6489
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Can't browse users in django admin now that tags are gone https://sentry.prod.mozaws.net/operations/mdn-prod/issues/7273070/ ``` Resolver404: {'tried': [[<RegexURLPattern None ^media/(?:redesign/)?css/(?P<do...
diff --git a/kuma/users/admin.py b/kuma/users/admin.py --- a/kuma/users/admin.py +++ b/kuma/users/admin.py @@ -43,7 +43,6 @@ "organization", "location", "email", - "tags__name", ) def revisions(self, obj):
{"golden_diff": "diff --git a/kuma/users/admin.py b/kuma/users/admin.py\n--- a/kuma/users/admin.py\n+++ b/kuma/users/admin.py\n@@ -43,7 +43,6 @@\n \"organization\",\n \"location\",\n \"email\",\n- \"tags__name\",\n )\n \n def revisions(self, obj):\n", "issue": "Can't browse users ...
2,709
73
gh_patches_debug_6806
rasdani/github-patches
git_diff
Pylons__pyramid-2674
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- reify docstring doesn't render properly The testsetup section is omitted from the rendered docs at http://pyramid.readthedocs.io/en/latest/api/decorator.html#pyramid.decorator.reify Unfortunately this sectio...
diff --git a/pyramid/decorator.py b/pyramid/decorator.py --- a/pyramid/decorator.py +++ b/pyramid/decorator.py @@ -8,6 +8,16 @@ replacing the function it decorates with an instance variable. It is, in Python parlance, a non-data descriptor. An example: + .. code-block:: python + + from pyramid.d...
{"golden_diff": "diff --git a/pyramid/decorator.py b/pyramid/decorator.py\n--- a/pyramid/decorator.py\n+++ b/pyramid/decorator.py\n@@ -8,6 +8,16 @@\n replacing the function it decorates with an instance variable. It is, in\n Python parlance, a non-data descriptor. An example:\n \n+ .. code-block:: python\n...
719
149
gh_patches_debug_5736
rasdani/github-patches
git_diff
google__fuzzbench-630
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make issues: debug is broken, run is impossible to control-C out of make debug- is broken. `make debug-libfuzzer-zlib_zlib_uncompress_fuzzer` fails with this error: ``` docker run \ ...
diff --git a/docker/generate_makefile.py b/docker/generate_makefile.py --- a/docker/generate_makefile.py +++ b/docker/generate_makefile.py @@ -59,6 +59,8 @@ print('\t-e MAX_TOTAL_TIME=20 \\\n\t-e SNAPSHOT_PERIOD=10 \\') if run_type == 'debug': print('\t--entrypoint "/bin/bash" \\\n\t-...
{"golden_diff": "diff --git a/docker/generate_makefile.py b/docker/generate_makefile.py\n--- a/docker/generate_makefile.py\n+++ b/docker/generate_makefile.py\n@@ -59,6 +59,8 @@\n print('\\t-e MAX_TOTAL_TIME=20 \\\\\\n\\t-e SNAPSHOT_PERIOD=10 \\\\')\n if run_type == 'debug':\n print('\\t-...
2,098
127
gh_patches_debug_2197
rasdani/github-patches
git_diff
microsoft__torchgeo-1755
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SustainBenchCropYield download doesn't work ### Description Downloading the SustainBenchCropYield dataset doesn't work as expected ### Steps to reproduce ``` ds = SustainBenchCropYield("data/", download=T...
diff --git a/torchgeo/datasets/sustainbench_crop_yield.py b/torchgeo/datasets/sustainbench_crop_yield.py --- a/torchgeo/datasets/sustainbench_crop_yield.py +++ b/torchgeo/datasets/sustainbench_crop_yield.py @@ -211,7 +211,7 @@ download_url( self.url, self.root, - filename=s...
{"golden_diff": "diff --git a/torchgeo/datasets/sustainbench_crop_yield.py b/torchgeo/datasets/sustainbench_crop_yield.py\n--- a/torchgeo/datasets/sustainbench_crop_yield.py\n+++ b/torchgeo/datasets/sustainbench_crop_yield.py\n@@ -211,7 +211,7 @@\n download_url(\n self.url,\n self.root,\...
3,038
117
gh_patches_debug_27882
rasdani/github-patches
git_diff
cornellius-gp__gpytorch-644
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Where is `fast_pred_var` moving? I received the following warning when using `fast_pred_var`: ``` /cluster/nhunt/anaconda/envs/bayes_opt/lib/python3.7/site-packages/gpytorch/beta_features.py:17: Deprecat...
diff --git a/gpytorch/__init__.py b/gpytorch/__init__.py --- a/gpytorch/__init__.py +++ b/gpytorch/__init__.py @@ -37,9 +37,6 @@ __version__ = "0.2.1" -# Old deprecated stuff -fast_pred_var = beta_features._moved_beta_feature(settings.fast_pred_var, "gpytorch.settings.fast_pred_var") - __all__ = [ # Submodul...
{"golden_diff": "diff --git a/gpytorch/__init__.py b/gpytorch/__init__.py\n--- a/gpytorch/__init__.py\n+++ b/gpytorch/__init__.py\n@@ -37,9 +37,6 @@\n \n __version__ = \"0.2.1\"\n \n-# Old deprecated stuff\n-fast_pred_var = beta_features._moved_beta_feature(settings.fast_pred_var, \"gpytorch.settings.fast_pred_var\")\n...
1,598
397
gh_patches_debug_2264
rasdani/github-patches
git_diff
bookwyrm-social__bookwyrm-1410
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unable to post review in Safari on iPadOS **Describe the bug** When trying to post a long-ish review in Safari on iPadOS (desktop mode, content blockers disabled), the post button shows the spinner introduced...
diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -13,7 +13,7 @@ PAGE_LENGTH = env("PAGE_LENGTH", 15) DEFAULT_LANGUAGE = env("DEFAULT_LANGUAGE", "English") -JS_CACHE = "19447742" +JS_CACHE = "e5832a26" # email EMAIL_BACKEND = env("EMAIL_BACKEND", "...
{"golden_diff": "diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py\n--- a/bookwyrm/settings.py\n+++ b/bookwyrm/settings.py\n@@ -13,7 +13,7 @@\n PAGE_LENGTH = env(\"PAGE_LENGTH\", 15)\n DEFAULT_LANGUAGE = env(\"DEFAULT_LANGUAGE\", \"English\")\n \n-JS_CACHE = \"19447742\"\n+JS_CACHE = \"e5832a26\"\n \n # email\n ...
2,869
117
gh_patches_debug_4276
rasdani/github-patches
git_diff
awslabs__gluonts-68
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tutorial notebook Exception I downloaded the notebook available on https://gluon-ts.mxnet.io/examples/forecasting/tutorial.html, and run it on my local laptop (Darwin Kernel Version 16.7.0, Anaconda3 Distro, ...
diff --git a/src/gluonts/distribution/binned.py b/src/gluonts/distribution/binned.py --- a/src/gluonts/distribution/binned.py +++ b/src/gluonts/distribution/binned.py @@ -169,7 +169,7 @@ distr_cls: type = Binned @validated() - def __init__(self, bin_centers: List) -> None: + def __init__(self, bin_cen...
{"golden_diff": "diff --git a/src/gluonts/distribution/binned.py b/src/gluonts/distribution/binned.py\n--- a/src/gluonts/distribution/binned.py\n+++ b/src/gluonts/distribution/binned.py\n@@ -169,7 +169,7 @@\n distr_cls: type = Binned\n \n @validated()\n- def __init__(self, bin_centers: List) -> None:\n+ d...
3,574
145
gh_patches_debug_19935
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-863
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Using exclude paths for all instances of a Flask app This is less a feature request than a question about how to use `OPENTELEMETRY_PYTHON_FLASK_EXCLUDED_HOSTS` to exclude routes from being traced for all ins...
diff --git a/opentelemetry-api/src/opentelemetry/configuration/__init__.py b/opentelemetry-api/src/opentelemetry/configuration/__init__.py --- a/opentelemetry-api/src/opentelemetry/configuration/__init__.py +++ b/opentelemetry-api/src/opentelemetry/configuration/__init__.py @@ -142,19 +142,18 @@ def __getattr__(se...
{"golden_diff": "diff --git a/opentelemetry-api/src/opentelemetry/configuration/__init__.py b/opentelemetry-api/src/opentelemetry/configuration/__init__.py\n--- a/opentelemetry-api/src/opentelemetry/configuration/__init__.py\n+++ b/opentelemetry-api/src/opentelemetry/configuration/__init__.py\n@@ -142,19 +142,18 @@\n ...
2,363
298
gh_patches_debug_1686
rasdani/github-patches
git_diff
elastic__apm-agent-python-1064
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add support for Django 3.2 Django 3.2 is slated for a release in April. Running the test suite, a few problems came up: - [ ] App label needs to be a valid Python identifier, ours is not (renaming it from ...
diff --git a/elasticapm/contrib/django/apps.py b/elasticapm/contrib/django/apps.py --- a/elasticapm/contrib/django/apps.py +++ b/elasticapm/contrib/django/apps.py @@ -54,7 +54,7 @@ class ElasticAPMConfig(AppConfig): name = "elasticapm.contrib.django" - label = "elasticapm.contrib.django" + label = "elasti...
{"golden_diff": "diff --git a/elasticapm/contrib/django/apps.py b/elasticapm/contrib/django/apps.py\n--- a/elasticapm/contrib/django/apps.py\n+++ b/elasticapm/contrib/django/apps.py\n@@ -54,7 +54,7 @@\n \n class ElasticAPMConfig(AppConfig):\n name = \"elasticapm.contrib.django\"\n- label = \"elasticapm.contrib.d...
2,636
129
gh_patches_debug_17245
rasdani/github-patches
git_diff
mars-project__mars-2683
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Optimization that compacts multiple filters into `eval` generates unexpected node in graph <!-- Thank you for your contribution! Please review https://github.com/mars-project/mars/blob/master/CONTRI...
diff --git a/mars/optimization/logical/core.py b/mars/optimization/logical/core.py --- a/mars/optimization/logical/core.py +++ b/mars/optimization/logical/core.py @@ -162,8 +162,12 @@ node = self._records.get_optimization_result(node) or node preds_opt_to_remove = [] for pred in self._graph.p...
{"golden_diff": "diff --git a/mars/optimization/logical/core.py b/mars/optimization/logical/core.py\n--- a/mars/optimization/logical/core.py\n+++ b/mars/optimization/logical/core.py\n@@ -162,8 +162,12 @@\n node = self._records.get_optimization_result(node) or node\n preds_opt_to_remove = []\n fo...
3,222
228
gh_patches_debug_17694
rasdani/github-patches
git_diff
learningequality__kolibri-2484
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Starting up Kolibri Development Server ### Observed behavior Trying to run the Kolobri Development Server from Ubuntu Bash on Windows, but it raises a ValueError for incorrect timezone (local). ### Expe...
diff --git a/kolibri/deployment/default/settings/base.py b/kolibri/deployment/default/settings/base.py --- a/kolibri/deployment/default/settings/base.py +++ b/kolibri/deployment/default/settings/base.py @@ -13,6 +13,8 @@ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os +import pytz ...
{"golden_diff": "diff --git a/kolibri/deployment/default/settings/base.py b/kolibri/deployment/default/settings/base.py\n--- a/kolibri/deployment/default/settings/base.py\n+++ b/kolibri/deployment/default/settings/base.py\n@@ -13,6 +13,8 @@\n # Build paths inside the project like this: os.path.join(BASE_DIR, ...)\n imp...
3,617
279
gh_patches_debug_34388
rasdani/github-patches
git_diff
Lightning-AI__pytorch-lightning-1908
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Save checkpoint for the last epoch How to save the checkpoint only for the last epoch? In the docs: ``` if save_top_k == k, the best k models according to the quantity monitored will be saved. if save_to...
diff --git a/pytorch_lightning/callbacks/model_checkpoint.py b/pytorch_lightning/callbacks/model_checkpoint.py --- a/pytorch_lightning/callbacks/model_checkpoint.py +++ b/pytorch_lightning/callbacks/model_checkpoint.py @@ -43,6 +43,7 @@ monitor: quantity to monitor. verbose: verbosity mode. Default:...
{"golden_diff": "diff --git a/pytorch_lightning/callbacks/model_checkpoint.py b/pytorch_lightning/callbacks/model_checkpoint.py\n--- a/pytorch_lightning/callbacks/model_checkpoint.py\n+++ b/pytorch_lightning/callbacks/model_checkpoint.py\n@@ -43,6 +43,7 @@\n \n monitor: quantity to monitor.\n verbose: v...
3,640
435
gh_patches_debug_34714
rasdani/github-patches
git_diff
aws__aws-cli-206
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- cloudformation describe-stack-events --output table omits ResourceStatusReason aws-cli/0.13.2 Python/2.7.5 Darwin/12.4.1 This may be an RFE. With a command like `aws cloudformation describe-stack-events --ou...
diff --git a/awscli/formatter.py b/awscli/formatter.py --- a/awscli/formatter.py +++ b/awscli/formatter.py @@ -140,7 +140,7 @@ indent_level=indent_level + 1) def _build_sub_table_from_list(self, current, indent_level, title): - headers, more = self._group_scalar_keys(current...
{"golden_diff": "diff --git a/awscli/formatter.py b/awscli/formatter.py\n--- a/awscli/formatter.py\n+++ b/awscli/formatter.py\n@@ -140,7 +140,7 @@\n indent_level=indent_level + 1)\n \n def _build_sub_table_from_list(self, current, indent_level, title):\n- headers, more = self._g...
2,953
473
gh_patches_debug_28745
rasdani/github-patches
git_diff
SeldonIO__MLServer-531
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow to configure uvicorn logging Trying to add custom handlers to the application logger we have found that the uvicorn ones are not working as expected. It seems that uvicorn overrides the logging configur...
diff --git a/mlserver/logging.py b/mlserver/logging.py --- a/mlserver/logging.py +++ b/mlserver/logging.py @@ -2,6 +2,7 @@ import sys from logging import Formatter, StreamHandler +import logging.config from .settings import Settings @@ -15,6 +16,10 @@ return logger +def apply_logging_file(logging_sett...
{"golden_diff": "diff --git a/mlserver/logging.py b/mlserver/logging.py\n--- a/mlserver/logging.py\n+++ b/mlserver/logging.py\n@@ -2,6 +2,7 @@\n import sys\n \n from logging import Formatter, StreamHandler\n+import logging.config\n \n from .settings import Settings\n \n@@ -15,6 +16,10 @@\n return logger\n \n \n+def...
2,841
391
gh_patches_debug_652
rasdani/github-patches
git_diff
pex-tool__pex-2086
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.127 On the docket: + [x] Pex fails to subset a "foo @ file:///bar" URL lock. #2083 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may cont...
diff --git a/pex/version.py b/pex/version.py --- a/pex/version.py +++ b/pex/version.py @@ -1,4 +1,4 @@ # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -__version__ = "2.1.126" +__version__ = "2.1.127"
{"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.126\"\n+__version__ = \"2.1.127\"\n",...
349
98
gh_patches_debug_37088
rasdani/github-patches
git_diff
pre-commit__pre-commit-321
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Does not work within submodules I'm getting: ``` An unexpected error has occurred: NotADirectoryError: [Errno 20] Not a directory: '/home/quentin/chef-repo/cookbooks/ssmtp-cookbook/.git/hooks/pre-commit' ``...
diff --git a/pre_commit/git.py b/pre_commit/git.py --- a/pre_commit/git.py +++ b/pre_commit/git.py @@ -24,10 +24,18 @@ ) +def get_git_dir(git_root): + return os.path.normpath(os.path.join( + git_root, + cmd_output('git', 'rev-parse', '--git-dir', cwd=git_root)[1].strip(), + )) + + def ...
{"golden_diff": "diff --git a/pre_commit/git.py b/pre_commit/git.py\n--- a/pre_commit/git.py\n+++ b/pre_commit/git.py\n@@ -24,10 +24,18 @@\n )\n \n \n+def get_git_dir(git_root):\n+ return os.path.normpath(os.path.join(\n+ git_root,\n+ cmd_output('git', 'rev-parse', '--git-dir', cwd=git_root)[1]...
3,411
682
gh_patches_debug_9704
rasdani/github-patches
git_diff
Textualize__textual-441
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [textual][bug] CSS rule parsing fails when the name of the colour we pass contains a digit So while this is working correctly: ```css #my_widget { background: dark_cyan; } ``` ...this fails: ```css...
diff --git a/src/textual/css/tokenize.py b/src/textual/css/tokenize.py --- a/src/textual/css/tokenize.py +++ b/src/textual/css/tokenize.py @@ -11,7 +11,7 @@ NUMBER = r"\-?\d+\.?\d*" COLOR = r"\#[0-9a-fA-F]{8}|\#[0-9a-fA-F]{6}|rgb\(\-?\d+\.?\d*,\-?\d+\.?\d*,\-?\d+\.?\d*\)|rgba\(\-?\d+\.?\d*,\-?\d+\.?\d*,\-?\d+\.?\d*,\...
{"golden_diff": "diff --git a/src/textual/css/tokenize.py b/src/textual/css/tokenize.py\n--- a/src/textual/css/tokenize.py\n+++ b/src/textual/css/tokenize.py\n@@ -11,7 +11,7 @@\n NUMBER = r\"\\-?\\d+\\.?\\d*\"\n COLOR = r\"\\#[0-9a-fA-F]{8}|\\#[0-9a-fA-F]{6}|rgb\\(\\-?\\d+\\.?\\d*,\\-?\\d+\\.?\\d*,\\-?\\d+\\.?\\d*\\)|r...
2,502
239
gh_patches_debug_18348
rasdani/github-patches
git_diff
elastic__apm-agent-python-1414
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sanic 21.9.2 breaks exception tracking For yet unknown reasons, Sanic 21.9.2+ broke exception tracking. The changes between 21.9.1 and 21.9.2 are here: https://github.com/sanic-org/sanic/compare/v21.9.1......
diff --git a/elasticapm/contrib/sanic/utils.py b/elasticapm/contrib/sanic/utils.py --- a/elasticapm/contrib/sanic/utils.py +++ b/elasticapm/contrib/sanic/utils.py @@ -28,6 +28,7 @@ # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING I...
{"golden_diff": "diff --git a/elasticapm/contrib/sanic/utils.py b/elasticapm/contrib/sanic/utils.py\n--- a/elasticapm/contrib/sanic/utils.py\n+++ b/elasticapm/contrib/sanic/utils.py\n@@ -28,6 +28,7 @@\n # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n # OR TORT (INCLUDING NEGLIGENCE O...
2,643
224
gh_patches_debug_27127
rasdani/github-patches
git_diff
mindsdb__mindsdb-1011
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Endpoint to disable telemtry fairly self explainatory, add and an endpoint to the HTTP API that can be used to disable/enable the telemtry. Endpoint to disable telemtry fairly self explainatory, add and an ...
diff --git a/mindsdb/api/http/namespaces/util.py b/mindsdb/api/http/namespaces/util.py --- a/mindsdb/api/http/namespaces/util.py +++ b/mindsdb/api/http/namespaces/util.py @@ -1,3 +1,4 @@ +import os from flask import request from flask_restx import Resource, abort from flask import current_app as ca @@ -5,6 +6,8 @@ ...
{"golden_diff": "diff --git a/mindsdb/api/http/namespaces/util.py b/mindsdb/api/http/namespaces/util.py\n--- a/mindsdb/api/http/namespaces/util.py\n+++ b/mindsdb/api/http/namespaces/util.py\n@@ -1,3 +1,4 @@\n+import os\n from flask import request\n from flask_restx import Resource, abort\n from flask import current_app...
531
433
gh_patches_debug_67113
rasdani/github-patches
git_diff
zestedesavoir__zds-site-5120
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Erreur 403 après recherche dans la bibliothèque > Bonjour, > > Je tombe sur une erreur 403 "Vous n’avez pas les droits suffisants pour accéder à cette page." après une recherche dans les cours présents dan...
diff --git a/zds/searchv2/forms.py b/zds/searchv2/forms.py --- a/zds/searchv2/forms.py +++ b/zds/searchv2/forms.py @@ -31,7 +31,12 @@ models = forms.MultipleChoiceField( label='', - widget=forms.CheckboxSelectMultiple, + widget=forms.CheckboxSelectMultiple( + attrs={ + ...
{"golden_diff": "diff --git a/zds/searchv2/forms.py b/zds/searchv2/forms.py\n--- a/zds/searchv2/forms.py\n+++ b/zds/searchv2/forms.py\n@@ -31,7 +31,12 @@\n \n models = forms.MultipleChoiceField(\n label='',\n- widget=forms.CheckboxSelectMultiple,\n+ widget=forms.CheckboxSelectMultiple(\n+ ...
1,229
124
gh_patches_debug_34184
rasdani/github-patches
git_diff
goauthentik__authentik-5163
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Outpost cannot be created in restricted namespaces **Describe the bug** Creating outposts in restricted namespaces does not work due to securityContext settings not getting copied over from main deployment. ...
diff --git a/authentik/outposts/controllers/k8s/deployment.py b/authentik/outposts/controllers/k8s/deployment.py --- a/authentik/outposts/controllers/k8s/deployment.py +++ b/authentik/outposts/controllers/k8s/deployment.py @@ -4,6 +4,7 @@ from django.utils.text import slugify from kubernetes.client import ( Apps...
{"golden_diff": "diff --git a/authentik/outposts/controllers/k8s/deployment.py b/authentik/outposts/controllers/k8s/deployment.py\n--- a/authentik/outposts/controllers/k8s/deployment.py\n+++ b/authentik/outposts/controllers/k8s/deployment.py\n@@ -4,6 +4,7 @@\n from django.utils.text import slugify\n from kubernetes.cli...
2,258
370
gh_patches_debug_2761
rasdani/github-patches
git_diff
napari__napari-1088
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ListModel.append does not check type ## 🐛 Bug in working on layer groups, I found a strange lack of type checking when appending to a `ListModel` (which inherits from `TypedList`). [`ListModel.append`](htt...
diff --git a/napari/utils/list/_model.py b/napari/utils/list/_model.py --- a/napari/utils/list/_model.py +++ b/napari/utils/list/_model.py @@ -56,7 +56,7 @@ self.events.added(item=obj, index=self.__locitem__(index)) def append(self, obj): - super(TypedList, self).append(obj) + TypedList.ap...
{"golden_diff": "diff --git a/napari/utils/list/_model.py b/napari/utils/list/_model.py\n--- a/napari/utils/list/_model.py\n+++ b/napari/utils/list/_model.py\n@@ -56,7 +56,7 @@\n self.events.added(item=obj, index=self.__locitem__(index))\n \n def append(self, obj):\n- super(TypedList, self).append(ob...
1,085
125
gh_patches_debug_14048
rasdani/github-patches
git_diff
ibis-project__ibis-8094
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bug: non-string Categorical from pandas crash memtable() ### What happened? ```python import ibis import pandas as pd df = pd.DataFrame( { "cat_string": pd.Series(["a", "b", "c"], dtype="c...
diff --git a/ibis/formats/pandas.py b/ibis/formats/pandas.py --- a/ibis/formats/pandas.py +++ b/ibis/formats/pandas.py @@ -33,7 +33,9 @@ elif pdt.is_datetime64_dtype(typ): return dt.Timestamp(nullable=nullable) elif isinstance(typ, pdt.CategoricalDtype): - return dt.String(null...
{"golden_diff": "diff --git a/ibis/formats/pandas.py b/ibis/formats/pandas.py\n--- a/ibis/formats/pandas.py\n+++ b/ibis/formats/pandas.py\n@@ -33,7 +33,9 @@\n elif pdt.is_datetime64_dtype(typ):\n return dt.Timestamp(nullable=nullable)\n elif isinstance(typ, pdt.CategoricalDtype):\n- ...
4,071
179
gh_patches_debug_40266
rasdani/github-patches
git_diff
ultrabug__py3status-1093
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- mpd_status creates a new socket connection every second I'm not sure if this should be a bug report or a feature request, but I've been bitten by this, erm, _feature_: I use `mopidy` (mpd with spotify integra...
diff --git a/py3status/modules/mpd_status.py b/py3status/modules/mpd_status.py --- a/py3status/modules/mpd_status.py +++ b/py3status/modules/mpd_status.py @@ -65,7 +65,7 @@ import datetime import re import socket -from mpd import MPDClient, CommandError +from mpd import MPDClient, CommandError, ConnectionError ...
{"golden_diff": "diff --git a/py3status/modules/mpd_status.py b/py3status/modules/mpd_status.py\n--- a/py3status/modules/mpd_status.py\n+++ b/py3status/modules/mpd_status.py\n@@ -65,7 +65,7 @@\n import datetime\n import re\n import socket\n-from mpd import MPDClient, CommandError\n+from mpd import MPDClient, CommandErr...
2,638
686
gh_patches_debug_17308
rasdani/github-patches
git_diff
pre-commit__pre-commit-315
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- :args seems to break with {} in list. I am working on a repo with some hooks for my company: https://github.com/marick/pre-commit-hooks There is a hook that works fine with this `.pre-commit-config.yaml`: `...
diff --git a/pre_commit/prefixed_command_runner.py b/pre_commit/prefixed_command_runner.py --- a/pre_commit/prefixed_command_runner.py +++ b/pre_commit/prefixed_command_runner.py @@ -7,10 +7,6 @@ from pre_commit.util import cmd_output -def _replace_cmd(cmd, **kwargs): - return [part.format(**kwargs) for part in...
{"golden_diff": "diff --git a/pre_commit/prefixed_command_runner.py b/pre_commit/prefixed_command_runner.py\n--- a/pre_commit/prefixed_command_runner.py\n+++ b/pre_commit/prefixed_command_runner.py\n@@ -7,10 +7,6 @@\n from pre_commit.util import cmd_output\n \n \n-def _replace_cmd(cmd, **kwargs):\n- return [part.for...
1,392
217
gh_patches_debug_38600
rasdani/github-patches
git_diff
electricitymaps__electricitymaps-contrib-1295
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Namibia parser should read out data timestamp Current time in Namibia is 2 April 14:41 but the [Nampower dashboard](http://www.nampower.com.na/Scada.aspx) is stuck on 1 April 11:45:40. Timestamp of the dat...
diff --git a/parsers/NA.py b/parsers/NA.py --- a/parsers/NA.py +++ b/parsers/NA.py @@ -12,6 +12,7 @@ import requests +timestamp_link = 'http://www.nampower.com.na/gis/images/File_Info.png' generation_link = 'http://www.nampower.com.na/gis/images/Gx.png' exchanges_link = 'http://www.nampower.com.na/gis/images/Imp...
{"golden_diff": "diff --git a/parsers/NA.py b/parsers/NA.py\n--- a/parsers/NA.py\n+++ b/parsers/NA.py\n@@ -12,6 +12,7 @@\n import requests\n \n \n+timestamp_link = 'http://www.nampower.com.na/gis/images/File_Info.png'\n generation_link = 'http://www.nampower.com.na/gis/images/Gx.png'\n exchanges_link = 'http://www.namp...
2,530
719
gh_patches_debug_31061
rasdani/github-patches
git_diff
conan-io__conan-center-index-2686
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [package] libunwind/1.3.1 library dependency order is wrong ### Package and Environment Details (include every applicable attribute) * Package Name/Version: **libunwind/1.3.1** * Operating System+versio...
diff --git a/recipes/libunwind/all/conanfile.py b/recipes/libunwind/all/conanfile.py --- a/recipes/libunwind/all/conanfile.py +++ b/recipes/libunwind/all/conanfile.py @@ -24,6 +24,8 @@ def configure(self): if self.settings.os not in ["Linux", "FreeBSD"]: raise ConanInvalidConfiguration("libun...
{"golden_diff": "diff --git a/recipes/libunwind/all/conanfile.py b/recipes/libunwind/all/conanfile.py\n--- a/recipes/libunwind/all/conanfile.py\n+++ b/recipes/libunwind/all/conanfile.py\n@@ -24,6 +24,8 @@\n def configure(self):\n if self.settings.os not in [\"Linux\", \"FreeBSD\"]:\n raise Conan...
1,448
519
gh_patches_debug_5977
rasdani/github-patches
git_diff
bokeh__bokeh-4754
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Typo in categorical example plot title File examples/plotting/file/categorical.py contains a typo in plot name. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of the...
diff --git a/examples/plotting/file/categorical.py b/examples/plotting/file/categorical.py --- a/examples/plotting/file/categorical.py +++ b/examples/plotting/file/categorical.py @@ -4,7 +4,7 @@ factors = ["a", "b", "c", "d", "e", "f", "g", "h"] x = [50, 40, 65, 10, 25, 37, 80, 60] -dot = figure(title="Catgorical ...
{"golden_diff": "diff --git a/examples/plotting/file/categorical.py b/examples/plotting/file/categorical.py\n--- a/examples/plotting/file/categorical.py\n+++ b/examples/plotting/file/categorical.py\n@@ -4,7 +4,7 @@\n factors = [\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\"]\n x = [50, 40, 65, 10, 25, 37, 80, ...
729
188
gh_patches_debug_32242
rasdani/github-patches
git_diff
doccano__doccano-863
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug report] Error on Django Admin search How to reproduce the behaviour --------- ![image](https://user-images.githubusercontent.com/1063219/86004768-6edc3f80-ba1c-11ea-8a58-349a57de6fce.png) Press "Sea...
diff --git a/app/api/admin.py b/app/api/admin.py --- a/app/api/admin.py +++ b/app/api/admin.py @@ -9,13 +9,13 @@ class LabelAdmin(admin.ModelAdmin): list_display = ('text', 'project', 'text_color', 'background_color') ordering = ('project',) - search_fields = ('project',) + search_fields = ('text',) ...
{"golden_diff": "diff --git a/app/api/admin.py b/app/api/admin.py\n--- a/app/api/admin.py\n+++ b/app/api/admin.py\n@@ -9,13 +9,13 @@\n class LabelAdmin(admin.ModelAdmin):\n list_display = ('text', 'project', 'text_color', 'background_color')\n ordering = ('project',)\n- search_fields = ('project',)\n+ sea...
2,356
364
gh_patches_debug_26203
rasdani/github-patches
git_diff
pyg-team__pytorch_geometric-6546
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bipartite graph support for utils.dense_to_sparse ### 🚀 The feature, motivation and pitch I have a nearly-dense bipartite graph (that is, most features in node set A are connected to most features in node s...
diff --git a/torch_geometric/utils/sparse.py b/torch_geometric/utils/sparse.py --- a/torch_geometric/utils/sparse.py +++ b/torch_geometric/utils/sparse.py @@ -11,7 +11,10 @@ by edge indices and edge attributes. Args: - adj (Tensor): The dense adjacency matrix. + adj (Tensor): The dense adjacen...
{"golden_diff": "diff --git a/torch_geometric/utils/sparse.py b/torch_geometric/utils/sparse.py\n--- a/torch_geometric/utils/sparse.py\n+++ b/torch_geometric/utils/sparse.py\n@@ -11,7 +11,10 @@\n by edge indices and edge attributes.\n \n Args:\n- adj (Tensor): The dense adjacency matrix.\n+ adj (T...
1,763
423
gh_patches_debug_2242
rasdani/github-patches
git_diff
python-poetry__poetry-1577
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- poetry v1.0.0b4 breaks on zip packages <!-- Checked checkbox should look like this: [x] --> - [x] I am on the [latest](https://github.com/sdispater/poetry/releases/latest) Poetry version. - [x] I have searc...
diff --git a/poetry/repositories/installed_repository.py b/poetry/repositories/installed_repository.py --- a/poetry/repositories/installed_repository.py +++ b/poetry/repositories/installed_repository.py @@ -27,7 +27,7 @@ repo.add_package(package) - path = Path(distribution._path) + ...
{"golden_diff": "diff --git a/poetry/repositories/installed_repository.py b/poetry/repositories/installed_repository.py\n--- a/poetry/repositories/installed_repository.py\n+++ b/poetry/repositories/installed_repository.py\n@@ -27,7 +27,7 @@\n \n repo.add_package(package)\n \n- path = Path(distrib...
1,613
107
gh_patches_debug_20658
rasdani/github-patches
git_diff
svthalia__concrexit-3531
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Entry.DoesNotExist in RegistrationAdmin changeform Sentry Issue: [CONCREXIT-Q5](https://thalia.sentry.io/issues/4058249887/?referrer=github_integration) ``` Entry.DoesNotExist: Entry matching query does not ...
diff --git a/website/registrations/admin.py b/website/registrations/admin.py --- a/website/registrations/admin.py +++ b/website/registrations/admin.py @@ -204,14 +204,18 @@ can_revert = False if object_id is not None and request.user.has_perm( "registrations.review_entries" - ): - ...
{"golden_diff": "diff --git a/website/registrations/admin.py b/website/registrations/admin.py\n--- a/website/registrations/admin.py\n+++ b/website/registrations/admin.py\n@@ -204,14 +204,18 @@\n can_revert = False\n if object_id is not None and request.user.has_perm(\n \"registrations.review...
3,549
251
gh_patches_debug_31355
rasdani/github-patches
git_diff
Flexget__Flexget-2789
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pyload, error when checking version. <!--- Before opening an issue, verify: - Is this a feature request? Post it on https://feathub.com/Flexget/Flexget No. - Is this an issue with webui? Make an issue...
diff --git a/flexget/plugins/clients/pyload.py b/flexget/plugins/clients/pyload.py --- a/flexget/plugins/clients/pyload.py +++ b/flexget/plugins/clients/pyload.py @@ -123,15 +123,6 @@ self.add_entries(task, config) - @staticmethod - def get_version_from_packaging(): - version = None - t...
{"golden_diff": "diff --git a/flexget/plugins/clients/pyload.py b/flexget/plugins/clients/pyload.py\n--- a/flexget/plugins/clients/pyload.py\n+++ b/flexget/plugins/clients/pyload.py\n@@ -123,15 +123,6 @@\n \n self.add_entries(task, config)\n \n- @staticmethod\n- def get_version_from_packaging():\n- ...
4,042
434
gh_patches_debug_21740
rasdani/github-patches
git_diff
mathesar-foundation__mathesar-503
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- New CSV imports use autogenerated column names. ## Description <!-- A clear and concise description of what the bug is. --> According to #459, newly imported CSVs are supposed to use the first row as header...
diff --git a/mathesar/serializers.py b/mathesar/serializers.py --- a/mathesar/serializers.py +++ b/mathesar/serializers.py @@ -92,6 +92,7 @@ user = serializers.PrimaryKeyRelatedField( default=serializers.CurrentUserDefault(), read_only=True ) + header = serializers.BooleanField(default=True) ...
{"golden_diff": "diff --git a/mathesar/serializers.py b/mathesar/serializers.py\n--- a/mathesar/serializers.py\n+++ b/mathesar/serializers.py\n@@ -92,6 +92,7 @@\n user = serializers.PrimaryKeyRelatedField(\n default=serializers.CurrentUserDefault(), read_only=True\n )\n+ header = serializers.BooleanF...
1,529
214
gh_patches_debug_47851
rasdani/github-patches
git_diff
searx__searx-2256
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make secret_key default one that will fail if not set to a custom value Currently, the `secret_key` default value is `ultrasecretkey` which is a valid value. Would it not be better to let the default value of...
diff --git a/searx/__init__.py b/searx/__init__.py --- a/searx/__init__.py +++ b/searx/__init__.py @@ -85,3 +85,7 @@ settings['server']['secret_key'] = environ['SEARX_SECRET'] if 'SEARX_BIND_ADDRESS' in environ: settings['server']['bind_address'] = environ['SEARX_BIND_ADDRESS'] + +if not searx_debug and sett...
{"golden_diff": "diff --git a/searx/__init__.py b/searx/__init__.py\n--- a/searx/__init__.py\n+++ b/searx/__init__.py\n@@ -85,3 +85,7 @@\n settings['server']['secret_key'] = environ['SEARX_SECRET']\n if 'SEARX_BIND_ADDRESS' in environ:\n settings['server']['bind_address'] = environ['SEARX_BIND_ADDRESS']\n+\n+if...
1,234
149
gh_patches_debug_33620
rasdani/github-patches
git_diff
weecology__retriever-160
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Final page of connection wizard reports nothing on Mac & Windows The final page of the connection wizard is blank on both Mac & Windows. This happens regardless of success or failure and predates the recent c...
diff --git a/app/connect_wizard.py b/app/connect_wizard.py --- a/app/connect_wizard.py +++ b/app/connect_wizard.py @@ -184,15 +184,11 @@ """The final confirmation page.""" def __init__(self, parent, title, label): TitledPage.__init__(self, parent, title, label) - self.fields = wx.BoxSizer(wx.V...
{"golden_diff": "diff --git a/app/connect_wizard.py b/app/connect_wizard.py\n--- a/app/connect_wizard.py\n+++ b/app/connect_wizard.py\n@@ -184,15 +184,11 @@\n \"\"\"The final confirmation page.\"\"\"\n def __init__(self, parent, title, label):\n TitledPage.__init__(self, parent, title, label)\n- ...
2,780
437
gh_patches_debug_20566
rasdani/github-patches
git_diff
vispy__vispy-930
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Importing gloo should not automatically load the OpenGL library I'm trying to run vispy on a headless server with docker, to use the ipynb webgl backend exclusively. I cannot `import vispy.gloo`: ``` File ...
diff --git a/vispy/gloo/gl/gl2.py b/vispy/gloo/gl/gl2.py --- a/vispy/gloo/gl/gl2.py +++ b/vispy/gloo/gl/gl2.py @@ -11,6 +11,7 @@ from . import _copy_gl_functions from ._constants import * # noqa +from ...util import logger # Ctypes stuff @@ -43,9 +44,11 @@ else: _fname = ctypes.util.find_library...
{"golden_diff": "diff --git a/vispy/gloo/gl/gl2.py b/vispy/gloo/gl/gl2.py\n--- a/vispy/gloo/gl/gl2.py\n+++ b/vispy/gloo/gl/gl2.py\n@@ -11,6 +11,7 @@\n \n from . import _copy_gl_functions\n from ._constants import * # noqa\n+from ...util import logger\n \n # Ctypes stuff\n \n@@ -43,9 +44,11 @@\n else:\n _fn...
1,365
281
gh_patches_debug_5755
rasdani/github-patches
git_diff
pypi__warehouse-3820
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Expose long_description_content_type in JSON API Feature request: Add 'long_description_content_type' to JSON API in 'info': section, alongside the existing 'description' Now that PyPI supports Markdown a...
diff --git a/warehouse/legacy/api/json.py b/warehouse/legacy/api/json.py --- a/warehouse/legacy/api/json.py +++ b/warehouse/legacy/api/json.py @@ -154,6 +154,7 @@ "name": project.name, "version": release.version, "summary": release.summary, + "description_content_type":...
{"golden_diff": "diff --git a/warehouse/legacy/api/json.py b/warehouse/legacy/api/json.py\n--- a/warehouse/legacy/api/json.py\n+++ b/warehouse/legacy/api/json.py\n@@ -154,6 +154,7 @@\n \"name\": project.name,\n \"version\": release.version,\n \"summary\": release.summary,\n+ ...
2,373
109
gh_patches_debug_29995
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-1360
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Petsmart Canada https://www.petsmart.ca/store-locator/all/ --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `...
diff --git a/locations/spiders/petsmart.py b/locations/spiders/petsmart.py --- a/locations/spiders/petsmart.py +++ b/locations/spiders/petsmart.py @@ -32,9 +32,10 @@ download_delay = 0.2 name = "petsmart" item_attributes = { 'brand': "Petsmart" } - allowed_domains = ["petsmart.com"] + allowed_domai...
{"golden_diff": "diff --git a/locations/spiders/petsmart.py b/locations/spiders/petsmart.py\n--- a/locations/spiders/petsmart.py\n+++ b/locations/spiders/petsmart.py\n@@ -32,9 +32,10 @@\n download_delay = 0.2\n name = \"petsmart\"\n item_attributes = { 'brand': \"Petsmart\" }\n- allowed_domains = [\"pets...
1,362
361
gh_patches_debug_36927
rasdani/github-patches
git_diff
mdn__kuma-7800
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 🧹 Remove hompage related frontend code Once https://github.com/mdn/yari/issues/2438 lands, we need to go into the Kuma forest and find all things related to the homepage frontend code, chop it down, and clea...
diff --git a/kuma/landing/urls.py b/kuma/landing/urls.py --- a/kuma/landing/urls.py +++ b/kuma/landing/urls.py @@ -11,12 +11,9 @@ lang_urlpatterns = [ re_path(r"^$", views.home, name="home"), re_path(r"^maintenance-mode/?$", views.maintenance_mode, name="maintenance_mode"), - re_path(r"^promote/?$", views...
{"golden_diff": "diff --git a/kuma/landing/urls.py b/kuma/landing/urls.py\n--- a/kuma/landing/urls.py\n+++ b/kuma/landing/urls.py\n@@ -11,12 +11,9 @@\n lang_urlpatterns = [\n re_path(r\"^$\", views.home, name=\"home\"),\n re_path(r\"^maintenance-mode/?$\", views.maintenance_mode, name=\"maintenance_mode\"),\n- ...
1,474
654
gh_patches_debug_41527
rasdani/github-patches
git_diff
streamlink__streamlink-2643
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ITV Player unable to open URL - [x] This is a plugin issue and I have read the contribution guidelines. ### Description ITV Player/Hub for the main ITV channel do not open and give an error message. ...
diff --git a/src/streamlink/plugins/itvplayer.py b/src/streamlink/plugins/itvplayer.py --- a/src/streamlink/plugins/itvplayer.py +++ b/src/streamlink/plugins/itvplayer.py @@ -6,13 +6,14 @@ from streamlink.plugin import Plugin from streamlink.plugin.api import useragents, validate from streamlink.plugin.api.utils imp...
{"golden_diff": "diff --git a/src/streamlink/plugins/itvplayer.py b/src/streamlink/plugins/itvplayer.py\n--- a/src/streamlink/plugins/itvplayer.py\n+++ b/src/streamlink/plugins/itvplayer.py\n@@ -6,13 +6,14 @@\n from streamlink.plugin import Plugin\n from streamlink.plugin.api import useragents, validate\n from streamli...
1,980
861
gh_patches_debug_34783
rasdani/github-patches
git_diff
netbox-community__netbox-2957
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- API Docs - Typo error on /virtualisation/interfaces/ <!-- Before opening a new issue, please search through the existing issues to see if your topic has already been addressed. Note that you may nee...
diff --git a/netbox/utilities/custom_inspectors.py b/netbox/utilities/custom_inspectors.py --- a/netbox/utilities/custom_inspectors.py +++ b/netbox/utilities/custom_inspectors.py @@ -1,14 +1,24 @@ from drf_yasg import openapi from drf_yasg.inspectors import FieldInspector, NotHandled, PaginatorInspector, FilterInspec...
{"golden_diff": "diff --git a/netbox/utilities/custom_inspectors.py b/netbox/utilities/custom_inspectors.py\n--- a/netbox/utilities/custom_inspectors.py\n+++ b/netbox/utilities/custom_inspectors.py\n@@ -1,14 +1,24 @@\n from drf_yasg import openapi\n from drf_yasg.inspectors import FieldInspector, NotHandled, PaginatorI...
2,182
475
gh_patches_debug_31188
rasdani/github-patches
git_diff
saulpw__visidata-812
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [dev 2.0+] disp_rstatus_fmt causes halting exception on GraphSheet **Small description** I modified the `disp_rstatus_fmt` to provide information I require when working with sheets, however when using GraphS...
diff --git a/visidata/statusbar.py b/visidata/statusbar.py --- a/visidata/statusbar.py +++ b/visidata/statusbar.py @@ -1,7 +1,7 @@ import collections import curses -from visidata import vd, VisiData, BaseSheet, Sheet, ColumnItem, Column, RowColorizer, options, colors, wrmap, clipdraw, ExpectedException, update_attr...
{"golden_diff": "diff --git a/visidata/statusbar.py b/visidata/statusbar.py\n--- a/visidata/statusbar.py\n+++ b/visidata/statusbar.py\n@@ -1,7 +1,7 @@\n import collections\n import curses\n \n-from visidata import vd, VisiData, BaseSheet, Sheet, ColumnItem, Column, RowColorizer, options, colors, wrmap, clipdraw, Expect...
3,976
536
gh_patches_debug_11333
rasdani/github-patches
git_diff
searx__searx-3479
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Using single apostrophe causes a "search error" <!-- PLEASE FILL THESE FIELDS, IT REALLY HELPS THE MAINTAINERS OF SEARX --> **Version of Searx, commit number if you are using on master branch and stipulate...
diff --git a/searx/plugins/search_operators.py b/searx/plugins/search_operators.py --- a/searx/plugins/search_operators.py +++ b/searx/plugins/search_operators.py @@ -11,7 +11,11 @@ def on_result(request, search, result): q = search.search_query.query - qs = shlex.split(q) + # WARN: shlex.quote is designe...
{"golden_diff": "diff --git a/searx/plugins/search_operators.py b/searx/plugins/search_operators.py\n--- a/searx/plugins/search_operators.py\n+++ b/searx/plugins/search_operators.py\n@@ -11,7 +11,11 @@\n \n def on_result(request, search, result):\n q = search.search_query.query\n- qs = shlex.split(q)\n+ # WAR...
1,100
212
gh_patches_debug_38414
rasdani/github-patches
git_diff
pymeasure__pymeasure-284
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Rename pyvisa imports In the upcoming pyvisa version, using `import visa` is being [deprecated](https://github.com/pyvisa/pyvisa/pull/448) to avoid a name clash with another package. We need to fix that in ou...
diff --git a/pymeasure/adapters/visa.py b/pymeasure/adapters/visa.py --- a/pymeasure/adapters/visa.py +++ b/pymeasure/adapters/visa.py @@ -25,7 +25,7 @@ import logging import copy -import visa +import pyvisa import numpy as np from pkg_resources import parse_version @@ -54,7 +54,7 @@ resourceName =...
{"golden_diff": "diff --git a/pymeasure/adapters/visa.py b/pymeasure/adapters/visa.py\n--- a/pymeasure/adapters/visa.py\n+++ b/pymeasure/adapters/visa.py\n@@ -25,7 +25,7 @@\n import logging\n \n import copy\n-import visa\n+import pyvisa\n import numpy as np\n from pkg_resources import parse_version\n \n@@ -54,7 +54,7 @...
2,765
580
gh_patches_debug_426
rasdani/github-patches
git_diff
nautobot__nautobot-3981
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 2.0: Tag string representation is incorrect ### Environment * Nautobot version (Docker tag too if applicable): `next`, e13883b7b8a4f44bca0c40d8074dcf8f82e544e6 ### Steps to Reproduce 1. Create a Tag and ...
diff --git a/nautobot/extras/models/tags.py b/nautobot/extras/models/tags.py --- a/nautobot/extras/models/tags.py +++ b/nautobot/extras/models/tags.py @@ -46,6 +46,9 @@ objects = BaseManager.from_queryset(TagQuerySet)() + def __str__(self): + return self.name + class Meta: ordering = ["...
{"golden_diff": "diff --git a/nautobot/extras/models/tags.py b/nautobot/extras/models/tags.py\n--- a/nautobot/extras/models/tags.py\n+++ b/nautobot/extras/models/tags.py\n@@ -46,6 +46,9 @@\n \n objects = BaseManager.from_queryset(TagQuerySet)()\n \n+ def __str__(self):\n+ return self.name\n+\n class M...
1,195
95
gh_patches_debug_30621
rasdani/github-patches
git_diff
pyodide__pyodide-3483
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- On first call, `pyodide config get emscripten_version` returns `Downloading xbuild environment Installing xbuild environment 3.1.27` instead of `3.1.27` ## 🐛 Bug In [the docs for out-of-tree builds](https...
diff --git a/pyodide-build/pyodide_build/cli/config.py b/pyodide-build/pyodide_build/cli/config.py --- a/pyodide-build/pyodide_build/cli/config.py +++ b/pyodide-build/pyodide_build/cli/config.py @@ -19,7 +19,7 @@ def _get_configs() -> dict[str, str]: - initialize_pyodide_root() + initialize_pyodide_root(quie...
{"golden_diff": "diff --git a/pyodide-build/pyodide_build/cli/config.py b/pyodide-build/pyodide_build/cli/config.py\n--- a/pyodide-build/pyodide_build/cli/config.py\n+++ b/pyodide-build/pyodide_build/cli/config.py\n@@ -19,7 +19,7 @@\n \n \n def _get_configs() -> dict[str, str]:\n- initialize_pyodide_root()\n+ ini...
1,384
505
gh_patches_debug_8872
rasdani/github-patches
git_diff
holoviz__panel-889
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 'str' object has no attribute 'items' when visualising Vega plot of network using Panel When running `pn.pane.Vega(spec)` on a network spec (from the vega example showing a force-directed network of the Miser...
diff --git a/panel/pane/vega.py b/panel/pane/vega.py --- a/panel/pane/vega.py +++ b/panel/pane/vega.py @@ -94,10 +94,10 @@ sources['data'] = ColumnDataSource(data=ds_as_cds(data)) elif isinstance(data, list): for d in data: - sources[d['name']] = ColumnDataSource(da...
{"golden_diff": "diff --git a/panel/pane/vega.py b/panel/pane/vega.py\n--- a/panel/pane/vega.py\n+++ b/panel/pane/vega.py\n@@ -94,10 +94,10 @@\n sources['data'] = ColumnDataSource(data=ds_as_cds(data))\n elif isinstance(data, list):\n for d in data:\n- sources[d['name'...
2,160
161
gh_patches_debug_11973
rasdani/github-patches
git_diff
bids-standard__pybids-833
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pandas method FutureWarning: frame.append With: - Python 3.9.7 - pybids 0.15.0 - pandas 0.14.0 I'm getting the following `FutureWarning` when running `bids = BIDSLayout(self.dataset.path, derivatives=Tr...
diff --git a/bids/variables/entities.py b/bids/variables/entities.py --- a/bids/variables/entities.py +++ b/bids/variables/entities.py @@ -241,8 +241,11 @@ entities = dict(entities, node_index=len(self.nodes), level=level) self.nodes.append(node) - node_row = pd.Series(entities) - self...
{"golden_diff": "diff --git a/bids/variables/entities.py b/bids/variables/entities.py\n--- a/bids/variables/entities.py\n+++ b/bids/variables/entities.py\n@@ -241,8 +241,11 @@\n \n entities = dict(entities, node_index=len(self.nodes), level=level)\n self.nodes.append(node)\n- node_row = pd.Series...
3,152
194
gh_patches_debug_19145
rasdani/github-patches
git_diff
kivy__python-for-android-1480
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- libxml2 build broken on latest p4a master with python 3 With latest p4a master & python3crystax & host python 3, the libxml2 recipe gets built inside `/root/.local/share/python-for-android/build/other_builds/...
diff --git a/pythonforandroid/recipes/libxslt/__init__.py b/pythonforandroid/recipes/libxslt/__init__.py --- a/pythonforandroid/recipes/libxslt/__init__.py +++ b/pythonforandroid/recipes/libxslt/__init__.py @@ -1,5 +1,5 @@ from pythonforandroid.toolchain import Recipe, shprint, shutil, current_directory -from os.path ...
{"golden_diff": "diff --git a/pythonforandroid/recipes/libxslt/__init__.py b/pythonforandroid/recipes/libxslt/__init__.py\n--- a/pythonforandroid/recipes/libxslt/__init__.py\n+++ b/pythonforandroid/recipes/libxslt/__init__.py\n@@ -1,5 +1,5 @@\n from pythonforandroid.toolchain import Recipe, shprint, shutil, current_dir...
1,149
254
gh_patches_debug_12242
rasdani/github-patches
git_diff
DataBiosphere__toil-562
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Need `toil --version` Need `toil --version` --- 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/toil/util...
diff --git a/src/toil/utils/toilMain.py b/src/toil/utils/toilMain.py --- a/src/toil/utils/toilMain.py +++ b/src/toil/utils/toilMain.py @@ -1,4 +1,6 @@ from __future__ import absolute_import, print_function +from toil.version import version +import pkg_resources import os import sys @@ -11,6 +13,11 @@ else: ...
{"golden_diff": "diff --git a/src/toil/utils/toilMain.py b/src/toil/utils/toilMain.py\n--- a/src/toil/utils/toilMain.py\n+++ b/src/toil/utils/toilMain.py\n@@ -1,4 +1,6 @@\n from __future__ import absolute_import, print_function\n+from toil.version import version\n+import pkg_resources\n import os\n import sys\n \n@@ -1...
665
169
gh_patches_debug_35008
rasdani/github-patches
git_diff
quantumlib__Cirq-1170
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- check.sh fails on clean master Just merged master and ran check.sh and it is failing due to tensorflow ``` (cirq) [dabacon:cirq:~/git/cirq]$./continuous-integration/check.sh run: ('virtualenv', '--quiet...
diff --git a/dev_tools/env_tools.py b/dev_tools/env_tools.py --- a/dev_tools/env_tools.py +++ b/dev_tools/env_tools.py @@ -117,13 +117,18 @@ base_path = cast(str, env.destination_directory) env_path = os.path.join(base_path, env_name) req_path = os.path.join(base_path, 'requirements.txt') - req_path_2...
{"golden_diff": "diff --git a/dev_tools/env_tools.py b/dev_tools/env_tools.py\n--- a/dev_tools/env_tools.py\n+++ b/dev_tools/env_tools.py\n@@ -117,13 +117,18 @@\n base_path = cast(str, env.destination_directory)\n env_path = os.path.join(base_path, env_name)\n req_path = os.path.join(base_path, 'requirement...
2,545
464
gh_patches_debug_22578
rasdani/github-patches
git_diff
quantumlib__Cirq-4690
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Should an IonDevice accept any qubit type? Some docstrings ([here](https://github.com/quantumlib/Cirq/blob/master/cirq/ion/ion_device.py#L26)) state qubits are one a line, while others ([here](https://github....
diff --git a/cirq-core/cirq/ion/ion_device.py b/cirq-core/cirq/ion/ion_device.py --- a/cirq-core/cirq/ion/ion_device.py +++ b/cirq-core/cirq/ion/ion_device.py @@ -55,11 +55,19 @@ twoq_gates_duration: The maximum duration of a two qubit operation. oneq_gates_duration: The maximum duration of a ...
{"golden_diff": "diff --git a/cirq-core/cirq/ion/ion_device.py b/cirq-core/cirq/ion/ion_device.py\n--- a/cirq-core/cirq/ion/ion_device.py\n+++ b/cirq-core/cirq/ion/ion_device.py\n@@ -55,11 +55,19 @@\n twoq_gates_duration: The maximum duration of a two qubit operation.\n oneq_gates_duration: The ...
2,324
296
gh_patches_debug_35827
rasdani/github-patches
git_diff
mesonbuild__meson-12085
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `dependency('vulkan', version: ['>=1.X.X'])` fails on Windows **Describe the bug** `dependency('vulkan', version: ['>=1.3.0'])` fails on Windows if a version is specified. The Vulkan SDK is installed, and ...
diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py --- a/mesonbuild/dependencies/ui.py +++ b/mesonbuild/dependencies/ui.py @@ -17,11 +17,13 @@ from __future__ import annotations import os +import re import subprocess import typing as T from .. import mlog from .. import mesonlib +from ...
{"golden_diff": "diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py\n--- a/mesonbuild/dependencies/ui.py\n+++ b/mesonbuild/dependencies/ui.py\n@@ -17,11 +17,13 @@\n from __future__ import annotations\n \n import os\n+import re\n import subprocess\n import typing as T\n \n from .. import mlog\n f...
3,693
574
gh_patches_debug_7834
rasdani/github-patches
git_diff
python-poetry__poetry-7671
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Poetry 1.4.0: There is no item named `<package>/WHEEL` in the archive <!-- Hi there! Thank you for submitting a bug report! Before you submit your issue, please review and follow the instructions ...
diff --git a/src/poetry/installation/wheel_installer.py b/src/poetry/installation/wheel_installer.py --- a/src/poetry/installation/wheel_installer.py +++ b/src/poetry/installation/wheel_installer.py @@ -97,7 +97,8 @@ self._destination.bytecode_optimization_levels = (1,) if enable else () def install(sel...
{"golden_diff": "diff --git a/src/poetry/installation/wheel_installer.py b/src/poetry/installation/wheel_installer.py\n--- a/src/poetry/installation/wheel_installer.py\n+++ b/src/poetry/installation/wheel_installer.py\n@@ -97,7 +97,8 @@\n self._destination.bytecode_optimization_levels = (1,) if enable else ()\n...
3,748
149
gh_patches_debug_30357
rasdani/github-patches
git_diff
canonical__snapcraft-1490
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make script aware of 407 when downloading gradle builds.snapcraft.io rejects downloading gradle. ``` Downloading https://services.gradle.org/distributions/gradle-4.0.2-bin.zip Exception in thread "main...
diff --git a/snapcraft/plugins/ant.py b/snapcraft/plugins/ant.py --- a/snapcraft/plugins/ant.py +++ b/snapcraft/plugins/ant.py @@ -105,6 +105,10 @@ yield '-D{}.proxyHost={}'.format(scheme, parsed.hostname) if parsed.port is not None: yield '-D{}.proxyPort={}'.format(scheme...
{"golden_diff": "diff --git a/snapcraft/plugins/ant.py b/snapcraft/plugins/ant.py\n--- a/snapcraft/plugins/ant.py\n+++ b/snapcraft/plugins/ant.py\n@@ -105,6 +105,10 @@\n yield '-D{}.proxyHost={}'.format(scheme, parsed.hostname)\n if parsed.port is not None:\n yield '-D{}.prox...
3,009
418
gh_patches_debug_10883
rasdani/github-patches
git_diff
ansible-collections__community.general-4853
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- sudoers module does not handle state: absent properly ### Summary The `community.general.sudoers` module does not handle `state: absent` properly. If the file specified by `name` does not exist, it gets cre...
diff --git a/plugins/modules/system/sudoers.py b/plugins/modules/system/sudoers.py --- a/plugins/modules/system/sudoers.py +++ b/plugins/modules/system/sudoers.py @@ -168,9 +168,12 @@ return "{owner} ALL={runas}{nopasswd} {commands}\n".format(owner=owner, runas=runas_str, nopasswd=nopasswd_str, commands=comman...
{"golden_diff": "diff --git a/plugins/modules/system/sudoers.py b/plugins/modules/system/sudoers.py\n--- a/plugins/modules/system/sudoers.py\n+++ b/plugins/modules/system/sudoers.py\n@@ -168,9 +168,12 @@\n return \"{owner} ALL={runas}{nopasswd} {commands}\\n\".format(owner=owner, runas=runas_str, nopasswd=nopas...
3,103
178
gh_patches_debug_14555
rasdani/github-patches
git_diff
inventree__InvenTree-1446
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error exporting BOM in YAML format The error is: ![Error](https://user-images.githubusercontent.com/14631/113969183-5db13200-97e9-11eb-918c-c84d23a8eb21.png "Error") --- END ISSUE --- Below are some code...
diff --git a/InvenTree/part/admin.py b/InvenTree/part/admin.py --- a/InvenTree/part/admin.py +++ b/InvenTree/part/admin.py @@ -16,8 +16,6 @@ from .models import PartTestTemplate from .models import PartSellPriceBreak -from InvenTree.helpers import normalize - from stock.models import StockLocation from company.mo...
{"golden_diff": "diff --git a/InvenTree/part/admin.py b/InvenTree/part/admin.py\n--- a/InvenTree/part/admin.py\n+++ b/InvenTree/part/admin.py\n@@ -16,8 +16,6 @@\n from .models import PartTestTemplate\n from .models import PartSellPriceBreak\n \n-from InvenTree.helpers import normalize\n-\n from stock.models import Stoc...
3,119
165
gh_patches_debug_8190
rasdani/github-patches
git_diff
microsoft__presidio-782
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- typo in append_analysis_explenation_text It seems that there is a typo in the function name. append_analysis_expl**e**nation_text - > append_analysis_expl**a**nation_text --- END ISSUE --- Below are some...
diff --git a/presidio-analyzer/presidio_analyzer/recognizer_result.py b/presidio-analyzer/presidio_analyzer/recognizer_result.py --- a/presidio-analyzer/presidio_analyzer/recognizer_result.py +++ b/presidio-analyzer/presidio_analyzer/recognizer_result.py @@ -35,7 +35,7 @@ self.score = score self.analy...
{"golden_diff": "diff --git a/presidio-analyzer/presidio_analyzer/recognizer_result.py b/presidio-analyzer/presidio_analyzer/recognizer_result.py\n--- a/presidio-analyzer/presidio_analyzer/recognizer_result.py\n+++ b/presidio-analyzer/presidio_analyzer/recognizer_result.py\n@@ -35,7 +35,7 @@\n self.score = scor...
1,860
172
gh_patches_debug_12255
rasdani/github-patches
git_diff
pypa__pip-5921
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add pre-released package upgrade hints Before this commit when querying for an installed package using pip if the package that was returned contained a pre-released version of the package it was not intuiti...
diff --git a/src/pip/_internal/commands/search.py b/src/pip/_internal/commands/search.py --- a/src/pip/_internal/commands/search.py +++ b/src/pip/_internal/commands/search.py @@ -126,7 +126,11 @@ logger.info('INSTALLED: %s (latest)', dist.version) else: ...
{"golden_diff": "diff --git a/src/pip/_internal/commands/search.py b/src/pip/_internal/commands/search.py\n--- a/src/pip/_internal/commands/search.py\n+++ b/src/pip/_internal/commands/search.py\n@@ -126,7 +126,11 @@\n logger.info('INSTALLED: %s (latest)', dist.version)\n else...
2,226
175
gh_patches_debug_7038
rasdani/github-patches
git_diff
Textualize__textual-1600
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Populating a `ListView` via constructor vs via inherit and `compose` There seems to be a subtle difference in the working of a `ListView` if you create one by passing the `ListItem`s to it, vs if you create a...
diff --git a/src/textual/widgets/_list_view.py b/src/textual/widgets/_list_view.py --- a/src/textual/widgets/_list_view.py +++ b/src/textual/widgets/_list_view.py @@ -50,7 +50,11 @@ classes: The CSS classes of the widget. """ super().__init__(*children, name=name, id=id, classes=classes) ...
{"golden_diff": "diff --git a/src/textual/widgets/_list_view.py b/src/textual/widgets/_list_view.py\n--- a/src/textual/widgets/_list_view.py\n+++ b/src/textual/widgets/_list_view.py\n@@ -50,7 +50,11 @@\n classes: The CSS classes of the widget.\n \"\"\"\n super().__init__(*children, name=name...
2,762
152
gh_patches_debug_44259
rasdani/github-patches
git_diff
mathesar-foundation__mathesar-1423
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Incorrect error is thrown when id field is not provided for a column object during a batch update ## Description The following `Patch` request to `/tables/{id}` ``` { "columns": [ { ...
diff --git a/mathesar/api/db/viewsets/tables.py b/mathesar/api/db/viewsets/tables.py --- a/mathesar/api/db/viewsets/tables.py +++ b/mathesar/api/db/viewsets/tables.py @@ -10,7 +10,6 @@ exceptions as database_api_exceptions, base_exceptions as database_base_api_exceptions, ) -from mathesar.api.exceptions.gene...
{"golden_diff": "diff --git a/mathesar/api/db/viewsets/tables.py b/mathesar/api/db/viewsets/tables.py\n--- a/mathesar/api/db/viewsets/tables.py\n+++ b/mathesar/api/db/viewsets/tables.py\n@@ -10,7 +10,6 @@\n exceptions as database_api_exceptions,\n base_exceptions as database_base_api_exceptions,\n )\n-from math...
3,003
928
gh_patches_debug_8203
rasdani/github-patches
git_diff
beeware__toga-2049
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- iOS App has no attribute 'hide_cursor' **Describe the bug** Calling the method `hide_cursor()` on a `toga.App` causes the app to crash with: ``` 2021-03-28 13:35:22.700314-0700 Find [938:323815] AttributeE...
diff --git a/android/src/toga_android/app.py b/android/src/toga_android/app.py --- a/android/src/toga_android/app.py +++ b/android/src/toga_android/app.py @@ -233,3 +233,9 @@ return result_future.result() except AttributeError: raise RuntimeError("No appropriate Activity found to hand...
{"golden_diff": "diff --git a/android/src/toga_android/app.py b/android/src/toga_android/app.py\n--- a/android/src/toga_android/app.py\n+++ b/android/src/toga_android/app.py\n@@ -233,3 +233,9 @@\n return result_future.result()\n except AttributeError:\n raise RuntimeError(\"No appropriat...
4,062
194
gh_patches_debug_21089
rasdani/github-patches
git_diff
opsdroid__opsdroid-225
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow usage of env vars in config The configuration should be parsed for environment variables when loaded. This would allow for secrets like api keys to be kept outside of the opsdroid configuration. ####...
diff --git a/opsdroid/loader.py b/opsdroid/loader.py --- a/opsdroid/loader.py +++ b/opsdroid/loader.py @@ -6,6 +6,7 @@ import shutil import subprocess import importlib +import re import yaml from opsdroid.const import ( DEFAULT_GIT_URL, MODULES_DIRECTORY, DEFAULT_MODULES_PATH, @@ -135,6 +136,17 @@ ...
{"golden_diff": "diff --git a/opsdroid/loader.py b/opsdroid/loader.py\n--- a/opsdroid/loader.py\n+++ b/opsdroid/loader.py\n@@ -6,6 +6,7 @@\n import shutil\n import subprocess\n import importlib\n+import re\n import yaml\n from opsdroid.const import (\n DEFAULT_GIT_URL, MODULES_DIRECTORY, DEFAULT_MODULES_PATH,\n@@ -...
3,453
254
gh_patches_debug_4461
rasdani/github-patches
git_diff
sunpy__sunpy-3333
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [1.0.3] test_print_config_files fails with installed sunpy <!-- This comments are hidden when you submit the issue so you do not need to remove them! Please be sure to check out our contributing guidelines: ...
diff --git a/sunpy/conftest.py b/sunpy/conftest.py --- a/sunpy/conftest.py +++ b/sunpy/conftest.py @@ -46,7 +46,7 @@ """ tmpdir = tempfile.TemporaryDirectory() - os.environ["SUNPY_CONFIGDIR"] = str(pathlib.Path(__file__).parent / "data") + os.environ["SUNPY_CONFIGDIR"] = str(tmpdir.name) astropy....
{"golden_diff": "diff --git a/sunpy/conftest.py b/sunpy/conftest.py\n--- a/sunpy/conftest.py\n+++ b/sunpy/conftest.py\n@@ -46,7 +46,7 @@\n \"\"\"\n tmpdir = tempfile.TemporaryDirectory()\n \n- os.environ[\"SUNPY_CONFIGDIR\"] = str(pathlib.Path(__file__).parent / \"data\")\n+ os.environ[\"SUNPY_CONFIGDIR\"...
2,268
139
gh_patches_debug_24355
rasdani/github-patches
git_diff
opendatacube__datacube-core-940
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Leaking DB connections in intergration tests Integration tests started occasionally failing with the following error: ``` psycopg2.OperationalError: FATAL: sorry, too many clients already ``` I have ...
diff --git a/datacube/ui/click.py b/datacube/ui/click.py --- a/datacube/ui/click.py +++ b/datacube/ui/click.py @@ -215,16 +215,21 @@ def with_index(local_config: config.LocalConfig, *args, **kwargs): - ctx = click.get_current_context() + com...
{"golden_diff": "diff --git a/datacube/ui/click.py b/datacube/ui/click.py\n--- a/datacube/ui/click.py\n+++ b/datacube/ui/click.py\n@@ -215,16 +215,21 @@\n def with_index(local_config: config.LocalConfig,\n *args,\n **kwargs):\n- ctx = click.get_current_co...
3,975
245
gh_patches_debug_56962
rasdani/github-patches
git_diff
tensorflow__tensor2tensor-360
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error with `.decode` on `str` object when generating `summarize_cnn_dailymail32k` data ## CMD ``` t2t-trainer \ --generate_data \ --data_dir="$data" \ --problems=summarize_cnn_dailymail32k \ --...
diff --git a/tensor2tensor/data_generators/cnn_dailymail.py b/tensor2tensor/data_generators/cnn_dailymail.py --- a/tensor2tensor/data_generators/cnn_dailymail.py +++ b/tensor2tensor/data_generators/cnn_dailymail.py @@ -74,7 +74,7 @@ for path in paths: for story_file in tf.gfile.Glob(path + "*"): story = ...
{"golden_diff": "diff --git a/tensor2tensor/data_generators/cnn_dailymail.py b/tensor2tensor/data_generators/cnn_dailymail.py\n--- a/tensor2tensor/data_generators/cnn_dailymail.py\n+++ b/tensor2tensor/data_generators/cnn_dailymail.py\n@@ -74,7 +74,7 @@\n for path in paths:\n for story_file in tf.gfile.Glob(path +...
2,672
167
gh_patches_debug_11751
rasdani/github-patches
git_diff
localstack__localstack-10170
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Invoking a lambda using a function url always returns 200 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior Given the following javascript lambda funct...
diff --git a/localstack/services/lambda_/urlrouter.py b/localstack/services/lambda_/urlrouter.py --- a/localstack/services/lambda_/urlrouter.py +++ b/localstack/services/lambda_/urlrouter.py @@ -192,6 +192,8 @@ # if it's a dict it might be a proper response if isinstance(parsed_result.get("headers"), ...
{"golden_diff": "diff --git a/localstack/services/lambda_/urlrouter.py b/localstack/services/lambda_/urlrouter.py\n--- a/localstack/services/lambda_/urlrouter.py\n+++ b/localstack/services/lambda_/urlrouter.py\n@@ -192,6 +192,8 @@\n # if it's a dict it might be a proper response\n if isinstance(parsed_r...
3,134
152
gh_patches_debug_348
rasdani/github-patches
git_diff
ranaroussi__yfinance-295
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Deprecation warning due to invalid escape sequences Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. pyupgrade also helps in au...
diff --git a/yfinance/utils.py b/yfinance/utils.py --- a/yfinance/utils.py +++ b/yfinance/utils.py @@ -64,7 +64,7 @@ def camel2title(o): - return [_re.sub("([a-z])([A-Z])", "\g<1> \g<2>", i).title() for i in o] + return [_re.sub("([a-z])([A-Z])", r"\g<1> \g<2>", i).title() for i in o] def auto_adjust(da...
{"golden_diff": "diff --git a/yfinance/utils.py b/yfinance/utils.py\n--- a/yfinance/utils.py\n+++ b/yfinance/utils.py\n@@ -64,7 +64,7 @@\n \n \n def camel2title(o):\n- return [_re.sub(\"([a-z])([A-Z])\", \"\\g<1> \\g<2>\", i).title() for i in o]\n+ return [_re.sub(\"([a-z])([A-Z])\", r\"\\g<1> \\g<2>\", i).title(...
2,739
124
gh_patches_debug_18416
rasdani/github-patches
git_diff
kartoza__prj.app-126
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- We should add Rischan to the email recipients list for projecta errors --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILE...
diff --git a/django_project/core/settings/base.py b/django_project/core/settings/base.py --- a/django_project/core/settings/base.py +++ b/django_project/core/settings/base.py @@ -7,7 +7,8 @@ from .utils import absolute_path ADMINS = ( - ('Tim Sutton', 'tim@linfiniti.com'), + ('Tim Sutton', 'tim@kartoza.com'),...
{"golden_diff": "diff --git a/django_project/core/settings/base.py b/django_project/core/settings/base.py\n--- a/django_project/core/settings/base.py\n+++ b/django_project/core/settings/base.py\n@@ -7,7 +7,8 @@\n from .utils import absolute_path\n \n ADMINS = (\n- ('Tim Sutton', 'tim@linfiniti.com'),\n+ ('Tim Sut...
1,839
236
gh_patches_debug_39022
rasdani/github-patches
git_diff
opsdroid__opsdroid-693
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add Google Style Docstrings We should implement Google Style Docstrings to every function, method, class in opsdroid. This style will support existing documentation and will help in the future by generating d...
diff --git a/opsdroid/memory.py b/opsdroid/memory.py --- a/opsdroid/memory.py +++ b/opsdroid/memory.py @@ -7,15 +7,33 @@ class Memory: - """An object to store and persist data outside of opsdroid.""" + """A Memory object. + + An object to obtain, store and persist data outside of opsdroid. + + Attribut...
{"golden_diff": "diff --git a/opsdroid/memory.py b/opsdroid/memory.py\n--- a/opsdroid/memory.py\n+++ b/opsdroid/memory.py\n@@ -7,15 +7,33 @@\n \n \n class Memory:\n- \"\"\"An object to store and persist data outside of opsdroid.\"\"\"\n+ \"\"\"A Memory object.\n+\n+ An object to obtain, store and persist data ...
1,707
701
gh_patches_debug_10081
rasdani/github-patches
git_diff
qtile__qtile-1659
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- qtile-top crash 'Client' object has no attribute 'tracemalloc_dump' <!-- Please do not ask general questions here! There are [community contact](https://github.com/qtile/qtile#community) options for that. ...
diff --git a/libqtile/scripts/qtile_top.py b/libqtile/scripts/qtile_top.py --- a/libqtile/scripts/qtile_top.py +++ b/libqtile/scripts/qtile_top.py @@ -30,7 +30,7 @@ import tracemalloc from tracemalloc import Snapshot -from libqtile import ipc +from libqtile import command_client, command_interface, ipc class T...
{"golden_diff": "diff --git a/libqtile/scripts/qtile_top.py b/libqtile/scripts/qtile_top.py\n--- a/libqtile/scripts/qtile_top.py\n+++ b/libqtile/scripts/qtile_top.py\n@@ -30,7 +30,7 @@\n import tracemalloc\n from tracemalloc import Snapshot\n \n-from libqtile import ipc\n+from libqtile import command_client, command_in...
3,590
162
gh_patches_debug_62336
rasdani/github-patches
git_diff
googleapis__google-api-python-client-273
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error importing discovery from the client API Hello, I'm getting a name exception when running a simple script. I've tried running the script in two ways: ``` from apiclient import discovery import json fro...
diff --git a/googleapiclient/channel.py b/googleapiclient/channel.py --- a/googleapiclient/channel.py +++ b/googleapiclient/channel.py @@ -61,7 +61,6 @@ import uuid from googleapiclient import errors -from oauth2client import util import six # Oauth2client < 3 has the positional helper in 'util', >= 3 has it
{"golden_diff": "diff --git a/googleapiclient/channel.py b/googleapiclient/channel.py\n--- a/googleapiclient/channel.py\n+++ b/googleapiclient/channel.py\n@@ -61,7 +61,6 @@\n import uuid\n \n from googleapiclient import errors\n-from oauth2client import util\n import six\n \n # Oauth2client < 3 has the positional helpe...
3,807
91
gh_patches_debug_24411
rasdani/github-patches
git_diff
python__python-docs-es-40
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Mejorar la guía de CONTRIBUTING Tenemos una pequeña guía que explica el procedimiento. Sin embargo, estaría bueno mejorarla un poco para que sea más fácil de seguir para persona que no sepan mucho de github y...
diff --git a/conf.py b/conf.py --- a/conf.py +++ b/conf.py @@ -33,10 +33,34 @@ os.system('mkdir -p cpython/locales/es/') os.system('ln -nfs `pwd` cpython/locales/es/LC_MESSAGES') +os.system('ln -nfs `pwd`/CONTRIBUTING.rst cpython/Doc/CONTRIBUTING.rst') gettext_compact = False locale_dirs = ['../locales', 'cpyth...
{"golden_diff": "diff --git a/conf.py b/conf.py\n--- a/conf.py\n+++ b/conf.py\n@@ -33,10 +33,34 @@\n \n os.system('mkdir -p cpython/locales/es/')\n os.system('ln -nfs `pwd` cpython/locales/es/LC_MESSAGES')\n+os.system('ln -nfs `pwd`/CONTRIBUTING.rst cpython/Doc/CONTRIBUTING.rst')\n \n gettext_compact = False\n locale_d...
808
376
gh_patches_debug_18972
rasdani/github-patches
git_diff
holoviz__panel-343
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- visual changes to subway map With the current subway map its not apparent where we are on the map. Suggestions to improve the visual effect include making the horizontal line thinner and/or the 'gray' locatio...
diff --git a/panel/pipeline.py b/panel/pipeline.py --- a/panel/pipeline.py +++ b/panel/pipeline.py @@ -187,12 +187,12 @@ import holoviews.plotting.bokeh # noqa stages = len(self._stages) line = hv.Path([[(0, 0), (stages-1, 0)]]).options( - line_width=10, color='black', backend='bok...
{"golden_diff": "diff --git a/panel/pipeline.py b/panel/pipeline.py\n--- a/panel/pipeline.py\n+++ b/panel/pipeline.py\n@@ -187,12 +187,12 @@\n import holoviews.plotting.bokeh # noqa\n stages = len(self._stages)\n line = hv.Path([[(0, 0), (stages-1, 0)]]).options(\n- line_width=10, col...
2,689
264
gh_patches_debug_18863
rasdani/github-patches
git_diff
vega__altair-2785
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Equal default chart dimensions Currently the default theme in Altair specifies an aspect ratio of 4/3, with a width of 400 and a height of 300 (for continuous data): ![image](https://user-images.githubuser...
diff --git a/altair/vegalite/v5/theme.py b/altair/vegalite/v5/theme.py --- a/altair/vegalite/v5/theme.py +++ b/altair/vegalite/v5/theme.py @@ -22,7 +22,7 @@ def __call__(self): return { "usermeta": {"embedOptions": {"theme": self.theme}}, - "config": {"view": {"continuousWidth": 40...
{"golden_diff": "diff --git a/altair/vegalite/v5/theme.py b/altair/vegalite/v5/theme.py\n--- a/altair/vegalite/v5/theme.py\n+++ b/altair/vegalite/v5/theme.py\n@@ -22,7 +22,7 @@\n def __call__(self):\n return {\n \"usermeta\": {\"embedOptions\": {\"theme\": self.theme}},\n- \"config\":...
1,125
308
gh_patches_debug_22548
rasdani/github-patches
git_diff
scalableminds__webknossos-libs-236
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NIFTI Division by zero error When converting a nifti file only consisting of zeros, the to_target_datatype function divides by 0. --- END ISSUE --- Below are some code segments, each from a relevant file. O...
diff --git a/wkcuber/convert_nifti.py b/wkcuber/convert_nifti.py --- a/wkcuber/convert_nifti.py +++ b/wkcuber/convert_nifti.py @@ -1,21 +1,22 @@ -import time import logging -import numpy as np +import time from argparse import ArgumentParser from pathlib import Path + import nibabel as nib +import numpy as np -fr...
{"golden_diff": "diff --git a/wkcuber/convert_nifti.py b/wkcuber/convert_nifti.py\n--- a/wkcuber/convert_nifti.py\n+++ b/wkcuber/convert_nifti.py\n@@ -1,21 +1,22 @@\n-import time\n import logging\n-import numpy as np\n+import time\n from argparse import ArgumentParser\n from pathlib import Path\n+\n import nibabel as n...
3,391
321
gh_patches_debug_31862
rasdani/github-patches
git_diff
freedomofpress__securedrop-4935
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Python3 admin virtualenv is broken if improperly set up (doesn't contain pip3) ## Description Initially discovered while reviewing https://github.com/freedomofpress/securedrop/pull/4927#issuecomment-543763...
diff --git a/admin/bootstrap.py b/admin/bootstrap.py --- a/admin/bootstrap.py +++ b/admin/bootstrap.py @@ -154,7 +154,7 @@ raise -def envsetup(args): +def envsetup(args, virtualenv_dir=VENV_DIR): """Installs Admin tooling required for managing SecureDrop. Specifically: * updates apt-cache @...
{"golden_diff": "diff --git a/admin/bootstrap.py b/admin/bootstrap.py\n--- a/admin/bootstrap.py\n+++ b/admin/bootstrap.py\n@@ -154,7 +154,7 @@\n raise\n \n \n-def envsetup(args):\n+def envsetup(args, virtualenv_dir=VENV_DIR):\n \"\"\"Installs Admin tooling required for managing SecureDrop. Specifically:\n \...
3,374
384
gh_patches_debug_6214
rasdani/github-patches
git_diff
voicepaw__so-vits-svc-fork-1157
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unable to use svc pre-sd with pyannote.audio 3.1.1 ### Describe the bug To use svc pre-sd for a long audio file with multiple speakers, I followed the [setup guide](https://github.com/voicepaw/so-vits-svc-fo...
diff --git a/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py b/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py --- a/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py +++ b/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py @@ -30,7 +30,7 @@...
{"golden_diff": "diff --git a/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py b/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py\n--- a/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py\n+++ b/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.p...
1,585
183
gh_patches_debug_6467
rasdani/github-patches
git_diff
getnikola__nikola-1145
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Never copy/list listings/*.py[co] kinda related to invariance --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Pat...
diff --git a/nikola/plugins/task/listings.py b/nikola/plugins/task/listings.py --- a/nikola/plugins/task/listings.py +++ b/nikola/plugins/task/listings.py @@ -92,6 +92,7 @@ template_deps = self.site.template_system.template_deps('listing.tmpl') for root, dirs, files in os.walk(kw['listings_folder'])...
{"golden_diff": "diff --git a/nikola/plugins/task/listings.py b/nikola/plugins/task/listings.py\n--- a/nikola/plugins/task/listings.py\n+++ b/nikola/plugins/task/listings.py\n@@ -92,6 +92,7 @@\n \n template_deps = self.site.template_system.template_deps('listing.tmpl')\n for root, dirs, files in os.walk...
1,621
132
gh_patches_debug_20260
rasdani/github-patches
git_diff
quantumlib__Cirq-5731
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Qasm output decomposes single qubit MatrixGate into multiple operations instead of one u3 operation ``` import cirq c = cirq.Circuit( cirq.MatrixGate(cirq.unitary(cirq.H) @ cirq.unitary(cirq.T)).on(c...
diff --git a/cirq-core/cirq/ops/matrix_gates.py b/cirq-core/cirq/ops/matrix_gates.py --- a/cirq-core/cirq/ops/matrix_gates.py +++ b/cirq-core/cirq/ops/matrix_gates.py @@ -20,7 +20,7 @@ from cirq import linalg, protocols, _import from cirq._compat import proper_repr -from cirq.ops import raw_types +from cirq.ops imp...
{"golden_diff": "diff --git a/cirq-core/cirq/ops/matrix_gates.py b/cirq-core/cirq/ops/matrix_gates.py\n--- a/cirq-core/cirq/ops/matrix_gates.py\n+++ b/cirq-core/cirq/ops/matrix_gates.py\n@@ -20,7 +20,7 @@\n \n from cirq import linalg, protocols, _import\n from cirq._compat import proper_repr\n-from cirq.ops import raw_...
3,184
312
gh_patches_debug_18123
rasdani/github-patches
git_diff
svthalia__concrexit-1719
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Missing frontpage articles in API v2 ### Describe the bug When there are multiple frontpage articles that should be visible (such as currently on staging), `api/v2/announcements/frontpage-articles/` shows on...
diff --git a/website/announcements/models.py b/website/announcements/models.py --- a/website/announcements/models.py +++ b/website/announcements/models.py @@ -5,6 +5,7 @@ ) from django.db import models from django.db.models import CharField, Manager, Q +from django.db.models.functions import Now from django.utils i...
{"golden_diff": "diff --git a/website/announcements/models.py b/website/announcements/models.py\n--- a/website/announcements/models.py\n+++ b/website/announcements/models.py\n@@ -5,6 +5,7 @@\n )\n from django.db import models\n from django.db.models import CharField, Manager, Q\n+from django.db.models.functions import ...
2,103
233
gh_patches_debug_21529
rasdani/github-patches
git_diff
ephios-dev__ephios-172
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Age checking for signup consideres wrong date When checking the participant age, the age at the current date is evaluated instead of the age at the event date --- END ISSUE --- Below are some code segments,...
diff --git a/ephios/event_management/signup.py b/ephios/event_management/signup.py --- a/ephios/event_management/signup.py +++ b/ephios/event_management/signup.py @@ -47,9 +47,8 @@ date_of_birth: date email: Optional[str] # if set to None, no notifications are sent - @property - def age(self): - ...
{"golden_diff": "diff --git a/ephios/event_management/signup.py b/ephios/event_management/signup.py\n--- a/ephios/event_management/signup.py\n+++ b/ephios/event_management/signup.py\n@@ -47,9 +47,8 @@\n date_of_birth: date\n email: Optional[str] # if set to None, no notifications are sent\n \n- @property\n-...
3,836
266
gh_patches_debug_58737
rasdani/github-patches
git_diff
goauthentik__authentik-9182
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- OIDC Well-known URL won't configure endpoint URLs **Describe the bug** When entering the OIDC Well-known URL for an OpenID OAuth source, it won't automatically configure the endpoint URLs. Instead it prompts...
diff --git a/authentik/sources/oauth/api/source.py b/authentik/sources/oauth/api/source.py --- a/authentik/sources/oauth/api/source.py +++ b/authentik/sources/oauth/api/source.py @@ -130,7 +130,13 @@ "oidc_jwks_url", "oidc_jwks", ] - extra_kwargs = {"consumer_secret": {"write_o...
{"golden_diff": "diff --git a/authentik/sources/oauth/api/source.py b/authentik/sources/oauth/api/source.py\n--- a/authentik/sources/oauth/api/source.py\n+++ b/authentik/sources/oauth/api/source.py\n@@ -130,7 +130,13 @@\n \"oidc_jwks_url\",\n \"oidc_jwks\",\n ]\n- extra_kwargs = {...
2,646
172
gh_patches_debug_12806
rasdani/github-patches
git_diff
bokeh__bokeh-4677
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- undeprecate .from_df With server apps it is necessary to update `.data` all "at once" so a method to construct a dictionary for `.data` is actually useful and needed. Going to un-deprecate for now, can discus...
diff --git a/bokeh/models/sources.py b/bokeh/models/sources.py --- a/bokeh/models/sources.py +++ b/bokeh/models/sources.py @@ -114,7 +114,6 @@ return new_data @classmethod - @deprecated("Bokeh 0.9.3", "ColumnDataSource initializer") def from_df(cls, data): """ Create a ``dict`` of colum...
{"golden_diff": "diff --git a/bokeh/models/sources.py b/bokeh/models/sources.py\n--- a/bokeh/models/sources.py\n+++ b/bokeh/models/sources.py\n@@ -114,7 +114,6 @@\n return new_data\n \n @classmethod\n- @deprecated(\"Bokeh 0.9.3\", \"ColumnDataSource initializer\")\n def from_df(cls, data):\n ...
3,359
170
gh_patches_debug_27442
rasdani/github-patches
git_diff
aio-libs-abandoned__aioredis-py-839
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Drop Python 3.5 support Python 3.5 was a famous release (async/await syntax was introduced) but the version has reached end-of-life. We can (and should) drop it. Speaking as the maintainer of other librarie...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,20 +1,8 @@ import re import os.path -import sys -import platform from setuptools import setup, find_packages -install_requires = ['async-timeout'] -if platform.python_implementation() == 'CPython': - install_requires.append('hiredis') - -PY_...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,20 +1,8 @@\n import re\n import os.path\n-import sys\n-import platform\n from setuptools import setup, find_packages\n \n \n-install_requires = ['async-timeout']\n-if platform.python_implementation() == 'CPython':\n- install_req...
936
335
gh_patches_debug_17186
rasdani/github-patches
git_diff
microsoft__Qcodes-5008
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Parsing version string error with Keysight_34465A When I try to connect a Keysight_34465A digital multimeter with ``` from qcodes.instrument_drivers.Keysight.Keysight_34465A_submodules import Keysight_34...
diff --git a/qcodes/utils/installation_info.py b/qcodes/utils/installation_info.py --- a/qcodes/utils/installation_info.py +++ b/qcodes/utils/installation_info.py @@ -67,6 +67,11 @@ numbers to a regular version string. This is done by replacing a char by its ASCII code (using ``ord``). This assumes that the v...
{"golden_diff": "diff --git a/qcodes/utils/installation_info.py b/qcodes/utils/installation_info.py\n--- a/qcodes/utils/installation_info.py\n+++ b/qcodes/utils/installation_info.py\n@@ -67,6 +67,11 @@\n numbers to a regular version string. This is done by replacing a char\n by its ASCII code (using ``ord``). T...
3,310
243
gh_patches_debug_34889
rasdani/github-patches
git_diff
scikit-hep__pyhf-1818
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add contextlib support to the pyhf.schema API > instead of having users overwriting the value by assignment, do you think there is value in offering a `pyhf.utils.update_schema_path` or something that perform...
diff --git a/src/pyhf/schema/__init__.py b/src/pyhf/schema/__init__.py --- a/src/pyhf/schema/__init__.py +++ b/src/pyhf/schema/__init__.py @@ -23,17 +23,40 @@ """ A module-level wrapper around :mod:`pyhf.schema` which will provide additional functionality for interacting with schemas. - Example: + .. ...
{"golden_diff": "diff --git a/src/pyhf/schema/__init__.py b/src/pyhf/schema/__init__.py\n--- a/src/pyhf/schema/__init__.py\n+++ b/src/pyhf/schema/__init__.py\n@@ -23,17 +23,40 @@\n \"\"\"\n A module-level wrapper around :mod:`pyhf.schema` which will provide additional functionality for interacting with schemas....
1,206
656
gh_patches_debug_3498
rasdani/github-patches
git_diff
readthedocs__readthedocs.org-1530
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Social Network Login Failure When clicking on connect GitHub on the [social accounts page](https://readthedocs.org/accounts/social/connections/?) I get a message: > An error occurred while attempting to logi...
diff --git a/readthedocs/settings/postgres.py b/readthedocs/settings/postgres.py --- a/readthedocs/settings/postgres.py +++ b/readthedocs/settings/postgres.py @@ -69,6 +69,9 @@ 'github': {'SCOPE': ['user:email', 'read:org', 'admin:repo_hook', 'repo:status']} } +# allauth settings +ACCOUNT_DEFAULT_HTTP_PROTOCOL ...
{"golden_diff": "diff --git a/readthedocs/settings/postgres.py b/readthedocs/settings/postgres.py\n--- a/readthedocs/settings/postgres.py\n+++ b/readthedocs/settings/postgres.py\n@@ -69,6 +69,9 @@\n 'github': {'SCOPE': ['user:email', 'read:org', 'admin:repo_hook', 'repo:status']}\n }\n \n+# allauth settings\n+ACCOU...
1,016
125
gh_patches_debug_16013
rasdani/github-patches
git_diff
pyro-ppl__pyro-3167
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bug with OneCycleLR on Apple Silicone ### Guidelines **NOTE:** Issues are for bugs and feature requests only. If you have a question about using Pyro or general modeling questions, please post it on the [...
diff --git a/pyro/optim/pytorch_optimizers.py b/pyro/optim/pytorch_optimizers.py --- a/pyro/optim/pytorch_optimizers.py +++ b/pyro/optim/pytorch_optimizers.py @@ -34,13 +34,16 @@ del _PyroOptim # Load all schedulers from PyTorch +# breaking change in torch >= 1.14: LRScheduler is new base class +if hasattr(torc...
{"golden_diff": "diff --git a/pyro/optim/pytorch_optimizers.py b/pyro/optim/pytorch_optimizers.py\n--- a/pyro/optim/pytorch_optimizers.py\n+++ b/pyro/optim/pytorch_optimizers.py\n@@ -34,13 +34,16 @@\n del _PyroOptim\n \n # Load all schedulers from PyTorch\n+# breaking change in torch >= 1.14: LRScheduler is new bas...
1,119
285
gh_patches_debug_33404
rasdani/github-patches
git_diff
aws__aws-sam-cli-1348
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- sam 0.19.0 crashes on trying to create .aws-sam directory when not permitted ### Description While running `sam validate` from a freshly built docker image, it crashes while trying to create the `.aws-sam`...
diff --git a/samcli/cli/global_config.py b/samcli/cli/global_config.py --- a/samcli/cli/global_config.py +++ b/samcli/cli/global_config.py @@ -47,7 +47,6 @@ # Internal Environment variable to customize SAM CLI App Dir. Currently used only by integ tests. app_dir = os.getenv("__SAM_CLI_APP_DIR"...
{"golden_diff": "diff --git a/samcli/cli/global_config.py b/samcli/cli/global_config.py\n--- a/samcli/cli/global_config.py\n+++ b/samcli/cli/global_config.py\n@@ -47,7 +47,6 @@\n # Internal Environment variable to customize SAM CLI App Dir. Currently used only by integ tests.\n app_dir = os.gete...
3,765
394
gh_patches_debug_14057
rasdani/github-patches
git_diff
quantumlib__Cirq-2682
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Need a better compilation for swap_to_sqrt_iswap Right now it uses 4 sqrtiswaps to support arbitrary angle. For a plain ol' `SWAP` (common for routing qubits around) you should be able to get away with 3 `...
diff --git a/cirq/google/optimizers/convert_to_sqrt_iswap.py b/cirq/google/optimizers/convert_to_sqrt_iswap.py --- a/cirq/google/optimizers/convert_to_sqrt_iswap.py +++ b/cirq/google/optimizers/convert_to_sqrt_iswap.py @@ -262,6 +262,21 @@ theta: The rotational angle that specifies the gate, where ...
{"golden_diff": "diff --git a/cirq/google/optimizers/convert_to_sqrt_iswap.py b/cirq/google/optimizers/convert_to_sqrt_iswap.py\n--- a/cirq/google/optimizers/convert_to_sqrt_iswap.py\n+++ b/cirq/google/optimizers/convert_to_sqrt_iswap.py\n@@ -262,6 +262,21 @@\n theta: The rotational angle that specifies the...
4,055
337
gh_patches_debug_22001
rasdani/github-patches
git_diff
nautobot__nautobot-5264
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Job Buttons do not commit changes in their job. <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reporting reproducible bugs. If you need assistance...
diff --git a/nautobot/extras/templatetags/job_buttons.py b/nautobot/extras/templatetags/job_buttons.py --- a/nautobot/extras/templatetags/job_buttons.py +++ b/nautobot/extras/templatetags/job_buttons.py @@ -29,6 +29,7 @@ <input type="hidden" name="object_model_name" value="{object_model_name}"> <input type="hidden" n...
{"golden_diff": "diff --git a/nautobot/extras/templatetags/job_buttons.py b/nautobot/extras/templatetags/job_buttons.py\n--- a/nautobot/extras/templatetags/job_buttons.py\n+++ b/nautobot/extras/templatetags/job_buttons.py\n@@ -29,6 +29,7 @@\n <input type=\"hidden\" name=\"object_model_name\" value=\"{object_model_name}...
2,691
276