problem_id
stringlengths
18
22
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
58
prompt
stringlengths
1.1k
10.2k
golden_diff
stringlengths
151
4.94k
verification_info
stringlengths
582
21k
num_tokens
int64
271
2.05k
num_tokens_diff
int64
47
1.02k
gh_patches_debug_142
rasdani/github-patches
git_diff
python__mypy-4770
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- __ne__ doesn't allow returning NotImplemented It seems that mypy doesn't allow `__ne__` returning `NotImplemented`, (this is allowed with `__eq__`). And when I try explicitly adding `NotImplemented` as a pos...
diff --git a/mypy/sharedparse.py b/mypy/sharedparse.py --- a/mypy/sharedparse.py +++ b/mypy/sharedparse.py @@ -118,6 +118,7 @@ "__lt__", "__mod__", "__mul__", + "__ne__", "__or__", "__pow__", "__radd__",
{"golden_diff": "diff --git a/mypy/sharedparse.py b/mypy/sharedparse.py\n--- a/mypy/sharedparse.py\n+++ b/mypy/sharedparse.py\n@@ -118,6 +118,7 @@\n \"__lt__\",\n \"__mod__\",\n \"__mul__\",\n+ \"__ne__\",\n \"__or__\",\n \"__pow__\",\n \"__radd__\",\n", "issue": "__ne__ doesn't allow returni...
1,829
83
gh_patches_debug_18843
rasdani/github-patches
git_diff
iterative__dvc-2366
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- update `url` argument description in `get` and `import` help output to `URL of Git repository with DVC project to download from.` per https://github.com/iterative/dvc.org/pull/464#pullrequestreview-2597767...
diff --git a/dvc/command/get.py b/dvc/command/get.py --- a/dvc/command/get.py +++ b/dvc/command/get.py @@ -40,7 +40,7 @@ formatter_class=argparse.RawDescriptionHelpFormatter, ) get_parser.add_argument( - "url", help="DVC repository URL to download data from." + "url", help="URL of Git r...
{"golden_diff": "diff --git a/dvc/command/get.py b/dvc/command/get.py\n--- a/dvc/command/get.py\n+++ b/dvc/command/get.py\n@@ -40,7 +40,7 @@\n formatter_class=argparse.RawDescriptionHelpFormatter,\n )\n get_parser.add_argument(\n- \"url\", help=\"DVC repository URL to download data from.\"\n+ ...
1,178
258
gh_patches_debug_27443
rasdani/github-patches
git_diff
sopel-irc__sopel-1292
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- wikipedia: may trigger other Sopel instances Reported by `sloopy` in IRC. bot2-. uses prefix `.` and bot1-# uses `#` ``` <sloopy> .w Star Trek <bot2-.> [WIKIPEDIA] Star Trek | "Star Trek is an American scien...
diff --git a/sopel/modules/wikipedia.py b/sopel/modules/wikipedia.py --- a/sopel/modules/wikipedia.py +++ b/sopel/modules/wikipedia.py @@ -61,7 +61,7 @@ return None -def say_snippet(bot, server, query, show_url=True): +def say_snippet(bot, trigger, server, query, show_url=True): page_name = query.repl...
{"golden_diff": "diff --git a/sopel/modules/wikipedia.py b/sopel/modules/wikipedia.py\n--- a/sopel/modules/wikipedia.py\n+++ b/sopel/modules/wikipedia.py\n@@ -61,7 +61,7 @@\n return None\n \n \n-def say_snippet(bot, server, query, show_url=True):\n+def say_snippet(bot, trigger, server, query, show_url=True):\n ...
1,966
389
gh_patches_debug_15434
rasdani/github-patches
git_diff
meltano__meltano-6710
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Run Pytest tests in parallel https://meltano.slack.com/archives/CKHP6G5V4/p1653508630941889 Looks like pytest doesn't take 45 minutes, not sure why I though it was taking that long before? Maybe on gitlab ...
diff --git a/noxfile.py b/noxfile.py --- a/noxfile.py +++ b/noxfile.py @@ -40,23 +40,20 @@ session.install(".") session.install( - "coverage[toml]", "freezegun", "mock", "pytest", "pytest-asyncio", + "pytest-cov", "pytest-docker", "pyte...
{"golden_diff": "diff --git a/noxfile.py b/noxfile.py\n--- a/noxfile.py\n+++ b/noxfile.py\n@@ -40,23 +40,20 @@\n session.install(\".\")\n \n session.install(\n- \"coverage[toml]\",\n \"freezegun\",\n \"mock\",\n \"pytest\",\n \"pytest-asyncio\",\n+ \"pytest-cov\...
1,375
196
gh_patches_debug_18851
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-8363
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Problems with Spiders built on YextSpider I've noticed a few of the spiders whose results I was using in my OSM tool have recently stopped returning any results, including five_guys_de_es_fr_gb.py , matalan_g...
diff --git a/locations/spiders/primanti_bros_us.py b/locations/spiders/primanti_bros_us.py --- a/locations/spiders/primanti_bros_us.py +++ b/locations/spiders/primanti_bros_us.py @@ -1,18 +1,13 @@ from locations.categories import Categories -from locations.storefinders.yext import YextSpider +from locations.storefinde...
{"golden_diff": "diff --git a/locations/spiders/primanti_bros_us.py b/locations/spiders/primanti_bros_us.py\n--- a/locations/spiders/primanti_bros_us.py\n+++ b/locations/spiders/primanti_bros_us.py\n@@ -1,18 +1,13 @@\n from locations.categories import Categories\n-from locations.storefinders.yext import YextSpider\n+fr...
640
347
gh_patches_debug_466
rasdani/github-patches
git_diff
v7labs__darwin-py-315
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove unused requests_toolbelt requirement? AFAICT, requests_toolbelt is not used anywhere, yet it exists in the install_requires. https://github.com/v7labs/darwin-py/blob/878e9a0d639d6b70886bb53b00486908...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -29,7 +29,6 @@ "pillow", "pyyaml>=5.1", "requests", - "requests_toolbelt", "rich", "upolygon==0.1.6", "jsonschema",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -29,7 +29,6 @@\n \"pillow\",\n \"pyyaml>=5.1\",\n \"requests\",\n- \"requests_toolbelt\",\n \"rich\",\n \"upolygon==0.1.6\",\n \"jsonschema\",\n", "issue": "Remove unused requests...
859
77
gh_patches_debug_34389
rasdani/github-patches
git_diff
deepset-ai__haystack-7042
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Implement function to calculate Mean Reciprocal Rank metric As specified in proposal #5794 we need to implement a function to calculate the Mean Reciprocal Rank metric. Ideally the function should be part ...
diff --git a/haystack/components/evaluators/statistical_evaluator.py b/haystack/components/evaluators/statistical_evaluator.py --- a/haystack/components/evaluators/statistical_evaluator.py +++ b/haystack/components/evaluators/statistical_evaluator.py @@ -19,6 +19,7 @@ EM = "exact_match" RECALL_SINGLE_HIT = "r...
{"golden_diff": "diff --git a/haystack/components/evaluators/statistical_evaluator.py b/haystack/components/evaluators/statistical_evaluator.py\n--- a/haystack/components/evaluators/statistical_evaluator.py\n+++ b/haystack/components/evaluators/statistical_evaluator.py\n@@ -19,6 +19,7 @@\n EM = \"exact_match\"\n ...
1,995
490
gh_patches_debug_41277
rasdani/github-patches
git_diff
pyinstaller__pyinstaller-7885
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pkgutil.iter_modules is broken on MacOS ## Description of the issue I am trying to build an application on MacOS that uses pkguilt.iter_modules to dynamically find and load modules however it is not findin...
diff --git a/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py b/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py --- a/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py +++ b/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py @@ -47,39 +47,39 @@ if path is None: # Search for all top-level packages/modules. These wil...
{"golden_diff": "diff --git a/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py b/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py\n--- a/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py\n+++ b/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py\n@@ -47,39 +47,39 @@\n if path is None:\n # Search for all top-level packa...
2,035
751
gh_patches_debug_16682
rasdani/github-patches
git_diff
netbox-community__netbox-9150
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Show full usernames when filtering ### NetBox version v3.1.9 ### Feature type Change to existing functionality ### Proposed functionality When using the filters to filter user-based (e.g. Journal and Cha...
diff --git a/netbox/users/api/nested_serializers.py b/netbox/users/api/nested_serializers.py --- a/netbox/users/api/nested_serializers.py +++ b/netbox/users/api/nested_serializers.py @@ -28,6 +28,11 @@ model = User fields = ['id', 'url', 'display', 'username'] + def get_display(self, obj): + ...
{"golden_diff": "diff --git a/netbox/users/api/nested_serializers.py b/netbox/users/api/nested_serializers.py\n--- a/netbox/users/api/nested_serializers.py\n+++ b/netbox/users/api/nested_serializers.py\n@@ -28,6 +28,11 @@\n model = User\n fields = ['id', 'url', 'display', 'username']\n \n+ def get_di...
1,774
265
gh_patches_debug_4655
rasdani/github-patches
git_diff
chainer__chainer-289
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `Function` which get no input cannot select `volatile` In `Function.__call__`, it checks `volatile` of all input variables, and the same value is used. But, `Function` which get not argument such as `Paramete...
diff --git a/chainer/functions/parameter.py b/chainer/functions/parameter.py --- a/chainer/functions/parameter.py +++ b/chainer/functions/parameter.py @@ -22,6 +22,13 @@ self.W = array self.gW = numpy.empty_like(array) + def __call__(self, volatile=False): + ret = super(Parameter, self).__...
{"golden_diff": "diff --git a/chainer/functions/parameter.py b/chainer/functions/parameter.py\n--- a/chainer/functions/parameter.py\n+++ b/chainer/functions/parameter.py\n@@ -22,6 +22,13 @@\n self.W = array\n self.gW = numpy.empty_like(array)\n \n+ def __call__(self, volatile=False):\n+ ret = ...
588
137
gh_patches_debug_4060
rasdani/github-patches
git_diff
python-poetry__poetry-6824
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Exit code relay fails when run command is a script <!-- Hi there! Thank you for submitting a bug report! Before you submit your issue, please review and follow the instructions at https://pyt...
diff --git a/src/poetry/console/commands/run.py b/src/poetry/console/commands/run.py --- a/src/poetry/console/commands/run.py +++ b/src/poetry/console/commands/run.py @@ -58,7 +58,7 @@ "import sys; " "from importlib import import_module; " f"sys.argv = {args!r}; {src_in_sys_path}"...
{"golden_diff": "diff --git a/src/poetry/console/commands/run.py b/src/poetry/console/commands/run.py\n--- a/src/poetry/console/commands/run.py\n+++ b/src/poetry/console/commands/run.py\n@@ -58,7 +58,7 @@\n \"import sys; \"\n \"from importlib import import_module; \"\n f\"sys.argv = ...
1,712
137
gh_patches_debug_31630
rasdani/github-patches
git_diff
Pyomo__pyomo-1271
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bug in pynumero example: sensitivity.py It seems like the [sensitivity.py](https://github.com/Pyomo/pyomo/blob/master/pyomo/contrib/pynumero/examples/sensitivity.py) code is not calculating the sensitivity co...
diff --git a/pyomo/contrib/pynumero/examples/sensitivity.py b/pyomo/contrib/pynumero/examples/sensitivity.py --- a/pyomo/contrib/pynumero/examples/sensitivity.py +++ b/pyomo/contrib/pynumero/examples/sensitivity.py @@ -81,34 +81,39 @@ nlp.set_primals(x) nlp.set_duals(y) -J = nlp.evaluate_jacobian() -H = nlp.evaluat...
{"golden_diff": "diff --git a/pyomo/contrib/pynumero/examples/sensitivity.py b/pyomo/contrib/pynumero/examples/sensitivity.py\n--- a/pyomo/contrib/pynumero/examples/sensitivity.py\n+++ b/pyomo/contrib/pynumero/examples/sensitivity.py\n@@ -81,34 +81,39 @@\n nlp.set_primals(x)\n nlp.set_duals(y)\n \n-J = nlp.evaluate_jac...
1,909
738
gh_patches_debug_42022
rasdani/github-patches
git_diff
PaddlePaddle__PaddleSpeech-47
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Should expose the distance in error_rate.py --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `utils/error_ra...
diff --git a/utils/error_rate.py b/utils/error_rate.py --- a/utils/error_rate.py +++ b/utils/error_rate.py @@ -56,6 +56,62 @@ return distance[m % 2][n] +def word_errors(reference, hypothesis, ignore_case=False, delimiter=' '): + """Compute the levenshtein distance between reference sequence and + hypothe...
{"golden_diff": "diff --git a/utils/error_rate.py b/utils/error_rate.py\n--- a/utils/error_rate.py\n+++ b/utils/error_rate.py\n@@ -56,6 +56,62 @@\n return distance[m % 2][n]\n \n \n+def word_errors(reference, hypothesis, ignore_case=False, delimiter=' '):\n+ \"\"\"Compute the levenshtein distance between referen...
1,887
1,003
gh_patches_debug_15205
rasdani/github-patches
git_diff
microsoft__DeepSpeed-2167
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] DeepSpeed 0.7.0 breaks the Accelerate CI due to pip installation **Describe the bug** For Accelerate we have deepspeed as an extra that gets installed during tests. As of 0.7.0 DeepSpeed is unable to b...
diff --git a/op_builder/transformer_inference.py b/op_builder/transformer_inference.py --- a/op_builder/transformer_inference.py +++ b/op_builder/transformer_inference.py @@ -1,4 +1,3 @@ -import torch from .builder import CUDAOpBuilder, installed_cuda_version @@ -14,6 +13,13 @@ return f'deepspeed.ops.tran...
{"golden_diff": "diff --git a/op_builder/transformer_inference.py b/op_builder/transformer_inference.py\n--- a/op_builder/transformer_inference.py\n+++ b/op_builder/transformer_inference.py\n@@ -1,4 +1,3 @@\n-import torch\n from .builder import CUDAOpBuilder, installed_cuda_version\n \n \n@@ -14,6 +13,13 @@\n r...
1,999
186
gh_patches_debug_20245
rasdani/github-patches
git_diff
translate__translate-3405
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Backwards incompatible change in multistring The behavior of the `multistring` class with respect to string comparisons has changed in 1.14-rc1, more specifically when the `autoencode` class was removed in 4f...
diff --git a/translate/misc/multistring.py b/translate/misc/multistring.py --- a/translate/misc/multistring.py +++ b/translate/misc/multistring.py @@ -55,7 +55,7 @@ elif isinstance(otherstring, six.text_type): return cmp_compat(six.text_type(self), otherstring) elif isinstance(otherstring...
{"golden_diff": "diff --git a/translate/misc/multistring.py b/translate/misc/multistring.py\n--- a/translate/misc/multistring.py\n+++ b/translate/misc/multistring.py\n@@ -55,7 +55,7 @@\n elif isinstance(otherstring, six.text_type):\n return cmp_compat(six.text_type(self), otherstring)\n elif...
1,454
244
gh_patches_debug_15464
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-contrib-1870
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Elasticsearch sanitization does not work for bulk queries **Describe your environment** Discovered in elasticsearch 5.5.3 and elasticsearch-dsl 5.4.0 and caused by moving to the default sanitization in #17...
diff --git a/instrumentation/opentelemetry-instrumentation-elasticsearch/src/opentelemetry/instrumentation/elasticsearch/utils.py b/instrumentation/opentelemetry-instrumentation-elasticsearch/src/opentelemetry/instrumentation/elasticsearch/utils.py --- a/instrumentation/opentelemetry-instrumentation-elasticsearch/src/o...
{"golden_diff": "diff --git a/instrumentation/opentelemetry-instrumentation-elasticsearch/src/opentelemetry/instrumentation/elasticsearch/utils.py b/instrumentation/opentelemetry-instrumentation-elasticsearch/src/opentelemetry/instrumentation/elasticsearch/utils.py\n--- a/instrumentation/opentelemetry-instrumentation-e...
1,610
211
gh_patches_debug_37982
rasdani/github-patches
git_diff
microsoft__botbuilder-python-1244
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [PORT] Implement hash for App Insights session ID > Port this change from botbuilder-dotnet/master branch: https://github.com/microsoft/botbuilder-dotnet/pull/3317 Addresses this issue reported in JS https:/...
diff --git a/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/processor/telemetry_processor.py b/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/processor/telemetry_processor.py --- a/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/processor/telemet...
{"golden_diff": "diff --git a/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/processor/telemetry_processor.py b/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/processor/telemetry_processor.py\n--- a/libraries/botbuilder-applicationinsights/botbuilder/applicationinsights...
1,321
661
gh_patches_debug_63084
rasdani/github-patches
git_diff
translate__pootle-5471
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Static page editing save HTML outcome instead of raw text To reproduce: 1. Server using Markdown for static pages and an existing static page written using Markdown 2. Minor edit the content of the static...
diff --git a/pootle/core/markup/fields.py b/pootle/core/markup/fields.py --- a/pootle/core/markup/fields.py +++ b/pootle/core/markup/fields.py @@ -119,8 +119,11 @@ return value + def to_python(self, value): + return self.get_prep_value(value) + def value_to_string(self, obj): - value ...
{"golden_diff": "diff --git a/pootle/core/markup/fields.py b/pootle/core/markup/fields.py\n--- a/pootle/core/markup/fields.py\n+++ b/pootle/core/markup/fields.py\n@@ -119,8 +119,11 @@\n \n return value\n \n+ def to_python(self, value):\n+ return self.get_prep_value(value)\n+\n def value_to_string(...
1,524
136
gh_patches_debug_28243
rasdani/github-patches
git_diff
zestedesavoir__zds-site-2145
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- La licence est absente lors de la visualisation d'une partie du tutoriel Quand on navigue partout dans un tutoriel, on a normalement la licence de celui en haut à droite. Sauf lorsqu'on regarde une partie ([c...
diff --git a/zds/utils/templatetags/topbar.py b/zds/utils/templatetags/topbar.py --- a/zds/utils/templatetags/topbar.py +++ b/zds/utils/templatetags/topbar.py @@ -1,9 +1,12 @@ # coding: utf-8 from collections import OrderedDict +import itertools + from django import template from django.conf import settings -impo...
{"golden_diff": "diff --git a/zds/utils/templatetags/topbar.py b/zds/utils/templatetags/topbar.py\n--- a/zds/utils/templatetags/topbar.py\n+++ b/zds/utils/templatetags/topbar.py\n@@ -1,9 +1,12 @@\n # coding: utf-8\n \n from collections import OrderedDict\n+import itertools\n+\n from django import template\n from django...
1,228
446
gh_patches_debug_24481
rasdani/github-patches
git_diff
pyca__cryptography-1206
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Include OpenSSL in our Windows wheels Installing OpenSSL isn't super easy, even with the binaries for it. Maybe we should bundle it? --- END ISSUE --- Below are some code segments, each from a relevant fil...
diff --git a/cryptography/hazmat/bindings/openssl/binding.py b/cryptography/hazmat/bindings/openssl/binding.py --- a/cryptography/hazmat/bindings/openssl/binding.py +++ b/cryptography/hazmat/bindings/openssl/binding.py @@ -13,6 +13,7 @@ from __future__ import absolute_import, division, print_function +import os i...
{"golden_diff": "diff --git a/cryptography/hazmat/bindings/openssl/binding.py b/cryptography/hazmat/bindings/openssl/binding.py\n--- a/cryptography/hazmat/bindings/openssl/binding.py\n+++ b/cryptography/hazmat/bindings/openssl/binding.py\n@@ -13,6 +13,7 @@\n \n from __future__ import absolute_import, division, print_fu...
1,733
378
gh_patches_debug_19067
rasdani/github-patches
git_diff
voxel51__fiftyone-157
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- fiftyone fails to import if not installed in a virtual environment Due to at least https://github.com/voxel51/fiftyone/blob/v0.1.3/fiftyone/constants.py#L32 --- END ISSUE --- Below are some code segments, e...
diff --git a/fiftyone/constants.py b/fiftyone/constants.py --- a/fiftyone/constants.py +++ b/fiftyone/constants.py @@ -29,7 +29,6 @@ # Directories FIFTYONE_DIR = os.path.abspath(os.path.dirname(__file__)) -FIFTYONE_ENV = os.environ["VIRTUAL_ENV"] FIFTYONE_CONFIG_DIR = os.path.join(os.path.expanduser("~"), ".fiftyo...
{"golden_diff": "diff --git a/fiftyone/constants.py b/fiftyone/constants.py\n--- a/fiftyone/constants.py\n+++ b/fiftyone/constants.py\n@@ -29,7 +29,6 @@\n \n # Directories\n FIFTYONE_DIR = os.path.abspath(os.path.dirname(__file__))\n-FIFTYONE_ENV = os.environ[\"VIRTUAL_ENV\"]\n FIFTYONE_CONFIG_DIR = os.path.join(os.pat...
1,413
241
gh_patches_debug_14988
rasdani/github-patches
git_diff
saleor__saleor-13683
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Filter warehouses by metadata There are stores that have hundreds of warehouses, for performing updates metadata can be useful as a lookup mechanism instead of using externalReference --- END ISSUE --- Belo...
diff --git a/saleor/graphql/warehouse/filters.py b/saleor/graphql/warehouse/filters.py --- a/saleor/graphql/warehouse/filters.py +++ b/saleor/graphql/warehouse/filters.py @@ -12,6 +12,7 @@ EnumFilter, GlobalIDMultipleChoiceFilter, ListObjectTypeFilter, + MetadataFilterBase, filter_slug_list, ) ...
{"golden_diff": "diff --git a/saleor/graphql/warehouse/filters.py b/saleor/graphql/warehouse/filters.py\n--- a/saleor/graphql/warehouse/filters.py\n+++ b/saleor/graphql/warehouse/filters.py\n@@ -12,6 +12,7 @@\n EnumFilter,\n GlobalIDMultipleChoiceFilter,\n ListObjectTypeFilter,\n+ MetadataFilterBase,\n ...
1,447
173
gh_patches_debug_26456
rasdani/github-patches
git_diff
deepchecks__deepchecks-956
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [FEAT][GENERAL] check for the latest version and notify if using an older version **Describe the solution you'd like** Check that the latest version is installed and raise a warning when importing the packag...
diff --git a/deepchecks/__init__.py b/deepchecks/__init__.py --- a/deepchecks/__init__.py +++ b/deepchecks/__init__.py @@ -11,10 +11,11 @@ """Deepchecks.""" import os import pathlib +import http.client import warnings import matplotlib import plotly.io as pio - +from pkg_resources import parse_version from dee...
{"golden_diff": "diff --git a/deepchecks/__init__.py b/deepchecks/__init__.py\n--- a/deepchecks/__init__.py\n+++ b/deepchecks/__init__.py\n@@ -11,10 +11,11 @@\n \"\"\"Deepchecks.\"\"\"\n import os\n import pathlib\n+import http.client\n import warnings\n import matplotlib\n import plotly.io as pio\n-\n+from pkg_resourc...
1,182
383
gh_patches_debug_23114
rasdani/github-patches
git_diff
mozilla__telemetry-analysis-service-441
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use `select_for_update` in cluster expiration email task There's a bit of a race condition [here](https://github.com/mozilla/telemetry-analysis-service/blob/e6fecbe12d09b2e2338ae62f5276b3b2f39b0b65/atmo/clust...
diff --git a/atmo/clusters/tasks.py b/atmo/clusters/tasks.py --- a/atmo/clusters/tasks.py +++ b/atmo/clusters/tasks.py @@ -37,22 +37,23 @@ @celery.task def send_expiration_mails(): deadline = timezone.now() + timedelta(hours=1) - soon_expired = Cluster.objects.active().filter( - end_date__lte=deadline,...
{"golden_diff": "diff --git a/atmo/clusters/tasks.py b/atmo/clusters/tasks.py\n--- a/atmo/clusters/tasks.py\n+++ b/atmo/clusters/tasks.py\n@@ -37,22 +37,23 @@\n @celery.task\n def send_expiration_mails():\n deadline = timezone.now() + timedelta(hours=1)\n- soon_expired = Cluster.objects.active().filter(\n- ...
1,712
323
gh_patches_debug_24616
rasdani/github-patches
git_diff
streamlit__streamlit-7221
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- datetimes that are close together on silder used for ranges are illegible. ### Steps to reproduce Here's an example: ```python from datetime import date import streamlit as st dates = st.slider('...
diff --git a/e2e/scripts/st_slider.py b/e2e/scripts/st_slider.py --- a/e2e/scripts/st_slider.py +++ b/e2e/scripts/st_slider.py @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +from datetime import date + import streamlit as st from streamlit...
{"golden_diff": "diff --git a/e2e/scripts/st_slider.py b/e2e/scripts/st_slider.py\n--- a/e2e/scripts/st_slider.py\n+++ b/e2e/scripts/st_slider.py\n@@ -12,6 +12,8 @@\n # See the License for the specific language governing permissions and\n # limitations under the License.\n \n+from datetime import date\n+\n import strea...
1,440
369
gh_patches_debug_8325
rasdani/github-patches
git_diff
Kinto__kinto-1101
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- __flush__ produces an HTML reponse The response for the flush endpoint is a raw HTML response from Pyramid. I suggest make it a JSON response for compatibility with the rest of the API. Maybe return `{}`? ...
diff --git a/kinto/views/flush.py b/kinto/views/flush.py --- a/kinto/views/flush.py +++ b/kinto/views/flush.py @@ -1,5 +1,4 @@ from cornice import Service -from pyramid import httpexceptions from pyramid.security import NO_PERMISSION_REQUIRED from kinto.events import ServerFlushed @@ -16,4 +15,6 @@ request.re...
{"golden_diff": "diff --git a/kinto/views/flush.py b/kinto/views/flush.py\n--- a/kinto/views/flush.py\n+++ b/kinto/views/flush.py\n@@ -1,5 +1,4 @@\n from cornice import Service\n-from pyramid import httpexceptions\n from pyramid.security import NO_PERMISSION_REQUIRED\n \n from kinto.events import ServerFlushed\n@@ -16,...
798
131
gh_patches_debug_6022
rasdani/github-patches
git_diff
tensorflow__addons-2572
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Documentation for Snake activation function is incorrect **System information** - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): NA - TensorFlow version and how it was installed (source or binary)...
diff --git a/tensorflow_addons/activations/snake.py b/tensorflow_addons/activations/snake.py --- a/tensorflow_addons/activations/snake.py +++ b/tensorflow_addons/activations/snake.py @@ -25,7 +25,7 @@ Computes snake activation: $$ - \mathrm{snake}(x) = \frac{x + (1 - \cos(2 \cdot \mathrm{frequency} \cdot...
{"golden_diff": "diff --git a/tensorflow_addons/activations/snake.py b/tensorflow_addons/activations/snake.py\n--- a/tensorflow_addons/activations/snake.py\n+++ b/tensorflow_addons/activations/snake.py\n@@ -25,7 +25,7 @@\n Computes snake activation:\n \n $$\n- \\mathrm{snake}(x) = \\frac{x + (1 - \\cos(2 \\c...
1,133
205
gh_patches_debug_442
rasdani/github-patches
git_diff
saleor__saleor-5259
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Customer shouldn't be able to query draft order. Customer shouldn't be able to query draft order, by id and by token. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more...
diff --git a/saleor/graphql/order/resolvers.py b/saleor/graphql/order/resolvers.py --- a/saleor/graphql/order/resolvers.py +++ b/saleor/graphql/order/resolvers.py @@ -65,4 +65,8 @@ def resolve_order_by_token(token): - return models.Order.objects.filter(token=token).first() + return ( + models.Order.ob...
{"golden_diff": "diff --git a/saleor/graphql/order/resolvers.py b/saleor/graphql/order/resolvers.py\n--- a/saleor/graphql/order/resolvers.py\n+++ b/saleor/graphql/order/resolvers.py\n@@ -65,4 +65,8 @@\n \n \n def resolve_order_by_token(token):\n- return models.Order.objects.filter(token=token).first()\n+ return (...
983
110
gh_patches_debug_14594
rasdani/github-patches
git_diff
microsoft__Qcodes-54
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- version requirement of dependencies When I try installing Qcodes with `python setup.py develop` I get an error: ``` Traceback (most recent call last): File ".\setup.py", line 81, in <module> if StrictV...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -73,6 +73,15 @@ ***** ''' +valueerror_template = ''' +***** +***** package {0} version not understood +***** Please make sure the installed version ({1}) +***** is compatible with the minimum required version ({2}) +***** in order to use {3} +***** +...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -73,6 +73,15 @@\n *****\n '''\n \n+valueerror_template = '''\n+*****\n+***** package {0} version not understood\n+***** Please make sure the installed version ({1})\n+***** is compatible with the minimum required version ({2})\n+*****...
1,324
181
gh_patches_debug_12417
rasdani/github-patches
git_diff
sanic-org__sanic-666
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- __main__ top-level script shadowing ImportError Given `main.py`: ```python import nonexistent # assuming this is... non-existent from sanic import Sanic, response app = Sanic(__name__) @app.rout...
diff --git a/sanic/__main__.py b/sanic/__main__.py --- a/sanic/__main__.py +++ b/sanic/__main__.py @@ -35,10 +35,10 @@ app.run(host=args.host, port=args.port, workers=args.workers, debug=args.debug, ssl=ssl) - except ImportError: + except ImportError as e: log.error("No module...
{"golden_diff": "diff --git a/sanic/__main__.py b/sanic/__main__.py\n--- a/sanic/__main__.py\n+++ b/sanic/__main__.py\n@@ -35,10 +35,10 @@\n \n app.run(host=args.host, port=args.port,\n workers=args.workers, debug=args.debug, ssl=ssl)\n- except ImportError:\n+ except ImportError as e:\n ...
1,012
155
gh_patches_debug_10871
rasdani/github-patches
git_diff
nilearn__nilearn-2140
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- test_mask_reducer failing on circle CI testing the mask reducer from nilearn.decompositions.base sometimes fails on circleCI, e.g. https://travis-ci.org/nilearn/nilearn/builds/583674961?utm_source=github_sta...
diff --git a/nilearn/__init__.py b/nilearn/__init__.py --- a/nilearn/__init__.py +++ b/nilearn/__init__.py @@ -35,11 +35,17 @@ import gzip import sys import warnings +import os from distutils.version import LooseVersion from .version import _check_module_dependencies, __version__ +# Workaround issue discover...
{"golden_diff": "diff --git a/nilearn/__init__.py b/nilearn/__init__.py\n--- a/nilearn/__init__.py\n+++ b/nilearn/__init__.py\n@@ -35,11 +35,17 @@\n import gzip\n import sys\n import warnings\n+import os\n \n from distutils.version import LooseVersion\n \n from .version import _check_module_dependencies, __version__\n ...
1,524
194
gh_patches_debug_7638
rasdani/github-patches
git_diff
Lightning-AI__pytorch-lightning-1512
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bug(logger): wandb fails on sweep ## 🐛 Bug When using `wandb` sweeps for hyperparameters search, I get this error: > wandb: ERROR Attempted to change value of key "dropout_std" from 0.030424838979365657 ...
diff --git a/pytorch_lightning/loggers/wandb.py b/pytorch_lightning/loggers/wandb.py --- a/pytorch_lightning/loggers/wandb.py +++ b/pytorch_lightning/loggers/wandb.py @@ -114,7 +114,7 @@ @rank_zero_only def log_hyperparams(self, params: Union[Dict[str, Any], Namespace]) -> None: params = self._conver...
{"golden_diff": "diff --git a/pytorch_lightning/loggers/wandb.py b/pytorch_lightning/loggers/wandb.py\n--- a/pytorch_lightning/loggers/wandb.py\n+++ b/pytorch_lightning/loggers/wandb.py\n@@ -114,7 +114,7 @@\n @rank_zero_only\n def log_hyperparams(self, params: Union[Dict[str, Any], Namespace]) -> None:\n ...
1,928
156
gh_patches_debug_23916
rasdani/github-patches
git_diff
pypa__virtualenv-2220
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `--prompt .` : the dot causes the basename of the current directory to be used **What's the problem this feature will solve?** <!-- What are you trying to do, that you are unable to achieve with pip as it cu...
diff --git a/src/virtualenv/activation/activator.py b/src/virtualenv/activation/activator.py --- a/src/virtualenv/activation/activator.py +++ b/src/virtualenv/activation/activator.py @@ -1,5 +1,6 @@ from __future__ import absolute_import, unicode_literals +import os from abc import ABCMeta, abstractmethod from s...
{"golden_diff": "diff --git a/src/virtualenv/activation/activator.py b/src/virtualenv/activation/activator.py\n--- a/src/virtualenv/activation/activator.py\n+++ b/src/virtualenv/activation/activator.py\n@@ -1,5 +1,6 @@\n from __future__ import absolute_import, unicode_literals\n \n+import os\n from abc import ABCMeta, ...
1,516
309
gh_patches_debug_28922
rasdani/github-patches
git_diff
bridgecrewio__checkov-3612
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Outdated check for `google_container_cluster` binary authorization **Describe the issue** `Check: CKV_GCP_66: "Ensure use of Binary Authorization"` is not checking [against the updated property](https://regi...
diff --git a/checkov/terraform/checks/resource/gcp/GKEBinaryAuthorization.py b/checkov/terraform/checks/resource/gcp/GKEBinaryAuthorization.py --- a/checkov/terraform/checks/resource/gcp/GKEBinaryAuthorization.py +++ b/checkov/terraform/checks/resource/gcp/GKEBinaryAuthorization.py @@ -1,17 +1,29 @@ -from checkov.terra...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/gcp/GKEBinaryAuthorization.py b/checkov/terraform/checks/resource/gcp/GKEBinaryAuthorization.py\n--- a/checkov/terraform/checks/resource/gcp/GKEBinaryAuthorization.py\n+++ b/checkov/terraform/checks/resource/gcp/GKEBinaryAuthorization.py\n@@ -1,17 +1,29 @@...
653
493
gh_patches_debug_42433
rasdani/github-patches
git_diff
quantopian__zipline-463
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support for nans in input data If a ticker hasn't started trading yet, pandas' convention is to use nans. Currently it seems as if zipline raises an exception if there are nans in the input data. This should ...
diff --git a/zipline/sources/data_frame_source.py b/zipline/sources/data_frame_source.py --- a/zipline/sources/data_frame_source.py +++ b/zipline/sources/data_frame_source.py @@ -1,6 +1,5 @@ - # -# Copyright 2013 Quantopian, Inc. +# Copyright 2015 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (...
{"golden_diff": "diff --git a/zipline/sources/data_frame_source.py b/zipline/sources/data_frame_source.py\n--- a/zipline/sources/data_frame_source.py\n+++ b/zipline/sources/data_frame_source.py\n@@ -1,6 +1,5 @@\n-\n #\n-# Copyright 2013 Quantopian, Inc.\n+# Copyright 2015 Quantopian, Inc.\n #\n # Licensed under the Apa...
1,758
831
gh_patches_debug_7744
rasdani/github-patches
git_diff
mkdocs__mkdocs-289
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `mkdocs serve` doesn't recover from build errors For example, add a new page to the `pages` setting before you create the file, you then need to manually restart the serve command. --- END ISSUE --- Below ...
diff --git a/mkdocs/serve.py b/mkdocs/serve.py --- a/mkdocs/serve.py +++ b/mkdocs/serve.py @@ -34,8 +34,11 @@ Perform a rebuild when the config file changes. """ def on_any_event(self, event): - if os.path.basename(event.src_path) == 'mkdocs.yml': - super(ConfigEventHandler, self).on_an...
{"golden_diff": "diff --git a/mkdocs/serve.py b/mkdocs/serve.py\n--- a/mkdocs/serve.py\n+++ b/mkdocs/serve.py\n@@ -34,8 +34,11 @@\n Perform a rebuild when the config file changes.\n \"\"\"\n def on_any_event(self, event):\n- if os.path.basename(event.src_path) == 'mkdocs.yml':\n- super(Con...
1,415
155
gh_patches_debug_818
rasdani/github-patches
git_diff
doccano__doccano-363
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- New user signup page question Hi i'm trying to understand the user structure. I see a few posts about only being able to assign users to specific projects through the django admin screen, but my question is a...
diff --git a/app/authentification/views.py b/app/authentification/views.py --- a/app/authentification/views.py +++ b/app/authentification/views.py @@ -9,7 +9,7 @@ from django.views.generic import TemplateView from django.shortcuts import redirect -from app import settings +from django.conf import settings clas...
{"golden_diff": "diff --git a/app/authentification/views.py b/app/authentification/views.py\n--- a/app/authentification/views.py\n+++ b/app/authentification/views.py\n@@ -9,7 +9,7 @@\n from django.views.generic import TemplateView\n from django.shortcuts import redirect\n \n-from app import settings\n+from django.conf ...
873
80
gh_patches_debug_16657
rasdani/github-patches
git_diff
deepchecks__deepchecks-575
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [FEAT] Visualization of Regression Systematic Error box plot unclear **Is your feature request related to a problem? Please describe.** Visualization of Regression Systematic Error box plot unclear ![Scre...
diff --git a/deepchecks/checks/performance/regression_systematic_error.py b/deepchecks/checks/performance/regression_systematic_error.py --- a/deepchecks/checks/performance/regression_systematic_error.py +++ b/deepchecks/checks/performance/regression_systematic_error.py @@ -51,14 +51,19 @@ diff = y_test - y_pr...
{"golden_diff": "diff --git a/deepchecks/checks/performance/regression_systematic_error.py b/deepchecks/checks/performance/regression_systematic_error.py\n--- a/deepchecks/checks/performance/regression_systematic_error.py\n+++ b/deepchecks/checks/performance/regression_systematic_error.py\n@@ -51,14 +51,19 @@\n ...
1,299
263
gh_patches_debug_22661
rasdani/github-patches
git_diff
freqtrade__freqtrade-1955
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Hyperopt Resamples Python Version: 3.6.7 CCXT version: 1.18.507 Branch: Develop Last Commit ID: 4ae743e ## Step 3: Describe the problem: self.ticker_interval is not implemented in ...
diff --git a/freqtrade/optimize/hyperopt_interface.py b/freqtrade/optimize/hyperopt_interface.py --- a/freqtrade/optimize/hyperopt_interface.py +++ b/freqtrade/optimize/hyperopt_interface.py @@ -20,6 +20,7 @@ stoploss -> float: optimal stoploss designed for the strategy ticker_interval -> int: value o...
{"golden_diff": "diff --git a/freqtrade/optimize/hyperopt_interface.py b/freqtrade/optimize/hyperopt_interface.py\n--- a/freqtrade/optimize/hyperopt_interface.py\n+++ b/freqtrade/optimize/hyperopt_interface.py\n@@ -20,6 +20,7 @@\n stoploss -> float: optimal stoploss designed for the strategy\n ticker_in...
1,696
294
gh_patches_debug_18144
rasdani/github-patches
git_diff
SeldonIO__MLServer-190
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Infer model's name from folder's name Currently, particularly in the case of MMS, MLServer requires models to specify their name in a `model-settings.json` file. This forces all models to ship that file along...
diff --git a/mlserver/repository.py b/mlserver/repository.py --- a/mlserver/repository.py +++ b/mlserver/repository.py @@ -42,6 +42,12 @@ def _load_model_settings(self, model_settings_path: str) -> ModelSettings: model_settings = ModelSettings.parse_file(model_settings_path) + # TODO: Raise warni...
{"golden_diff": "diff --git a/mlserver/repository.py b/mlserver/repository.py\n--- a/mlserver/repository.py\n+++ b/mlserver/repository.py\n@@ -42,6 +42,12 @@\n def _load_model_settings(self, model_settings_path: str) -> ModelSettings:\n model_settings = ModelSettings.parse_file(model_settings_path)\n \n+ ...
1,445
230
gh_patches_debug_1819
rasdani/github-patches
git_diff
mkdocs__mkdocs-1998
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix simple typo: seperate -> separate # Issue Type [x] Bug (Typo) # Steps to Replicate 1. Examine mkdocs/commands/serve.py. 2. Search for `seperate`. # Expected Behaviour 1. Should read `separate`. --...
diff --git a/mkdocs/commands/serve.py b/mkdocs/commands/serve.py --- a/mkdocs/commands/serve.py +++ b/mkdocs/commands/serve.py @@ -80,7 +80,7 @@ def _static_server(host, port, site_dir): - # Importing here to seperate the code paths from the --livereload + # Importing here to separate the code paths from the...
{"golden_diff": "diff --git a/mkdocs/commands/serve.py b/mkdocs/commands/serve.py\n--- a/mkdocs/commands/serve.py\n+++ b/mkdocs/commands/serve.py\n@@ -80,7 +80,7 @@\n \n def _static_server(host, port, site_dir):\n \n- # Importing here to seperate the code paths from the --livereload\n+ # Importing here to separat...
1,794
124
gh_patches_debug_33247
rasdani/github-patches
git_diff
comic__grand-challenge.org-2238
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Subscription count does not correspond with displayed subscriptions **Problem** We do not show all subscriptions to a user - only those that we allow them to unsubscribe from. Subscriptions that are not show...
diff --git a/app/grandchallenge/notifications/views.py b/app/grandchallenge/notifications/views.py --- a/app/grandchallenge/notifications/views.py +++ b/app/grandchallenge/notifications/views.py @@ -1,6 +1,7 @@ from actstream.models import Follow from django.contrib import messages from django.contrib.messages.views...
{"golden_diff": "diff --git a/app/grandchallenge/notifications/views.py b/app/grandchallenge/notifications/views.py\n--- a/app/grandchallenge/notifications/views.py\n+++ b/app/grandchallenge/notifications/views.py\n@@ -1,6 +1,7 @@\n from actstream.models import Follow\n from django.contrib import messages\n from django...
1,847
453
gh_patches_debug_3929
rasdani/github-patches
git_diff
pyload__pyload-1340
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DepositfilesCom Parse error Hi, debuglog http://pastebin.com/v0SGFL9R handleFree_line44.dump.html http://pastebin.com/2V3Rjn7M handleFree_line60.dump.html http://pastebin.com/mxPsFQgk preload_line455.dump...
diff --git a/module/plugins/hoster/DepositfilesCom.py b/module/plugins/hoster/DepositfilesCom.py --- a/module/plugins/hoster/DepositfilesCom.py +++ b/module/plugins/hoster/DepositfilesCom.py @@ -52,7 +52,9 @@ params = {'fid': m.group(1)} self.logDebug("FID: %s" % params['fid']) + self.setWait...
{"golden_diff": "diff --git a/module/plugins/hoster/DepositfilesCom.py b/module/plugins/hoster/DepositfilesCom.py\n--- a/module/plugins/hoster/DepositfilesCom.py\n+++ b/module/plugins/hoster/DepositfilesCom.py\n@@ -52,7 +52,9 @@\n params = {'fid': m.group(1)}\n self.logDebug(\"FID: %s\" % params['fid'])...
1,500
127
gh_patches_debug_11494
rasdani/github-patches
git_diff
litestar-org__litestar-610
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: Picologging not behaving correctly **Describe the bug** i reported an earlier issue to @peterschutt about logging configuration not visible in the console output. that was fixed in https://github.com/...
diff --git a/starlite/logging/picologging.py b/starlite/logging/picologging.py --- a/starlite/logging/picologging.py +++ b/starlite/logging/picologging.py @@ -1,5 +1,4 @@ import atexit -from logging import StreamHandler from queue import Queue from typing import Any, List, Optional @@ -7,6 +6,7 @@ from starlite.l...
{"golden_diff": "diff --git a/starlite/logging/picologging.py b/starlite/logging/picologging.py\n--- a/starlite/logging/picologging.py\n+++ b/starlite/logging/picologging.py\n@@ -1,5 +1,4 @@\n import atexit\n-from logging import StreamHandler\n from queue import Queue\n from typing import Any, List, Optional\n \n@@ -7,...
1,160
143
gh_patches_debug_34436
rasdani/github-patches
git_diff
OCHA-DAP__hdx-ckan-1720
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ebola Page: title case, please For example, change `Appeal coverage` to `Appeal Coverage` ![image](https://cloud.githubusercontent.com/assets/1654485/4974867/41867a20-68d1-11e4-92c9-e8956b974d8d.png) --- E...
diff --git a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py b/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py --- a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py +++ b/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py @@ -19,6 ...
{"golden_diff": "diff --git a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py b/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py\n--- a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py\n+++ b/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_cont...
1,405
726
gh_patches_debug_31493
rasdani/github-patches
git_diff
akvo__akvo-rsr-2120
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Employment application requires Django login ## Test plan GIVEN the `/rest/v1/user/../request_organisation/` endpoint WHEN POSTing a request from outside of RSR AND the correct authentication details are pro...
diff --git a/akvo/rest/views/user.py b/akvo/rest/views/user.py --- a/akvo/rest/views/user.py +++ b/akvo/rest/views/user.py @@ -10,10 +10,12 @@ from django.utils.translation import ugettext_lazy as _ from rest_framework import status -from rest_framework.decorators import api_view, permission_classes +from rest_fram...
{"golden_diff": "diff --git a/akvo/rest/views/user.py b/akvo/rest/views/user.py\n--- a/akvo/rest/views/user.py\n+++ b/akvo/rest/views/user.py\n@@ -10,10 +10,12 @@\n from django.utils.translation import ugettext_lazy as _\n \n from rest_framework import status\n-from rest_framework.decorators import api_view, permission...
1,713
376
gh_patches_debug_29788
rasdani/github-patches
git_diff
nilearn__nilearn-2659
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- check_embedded_nifti_masker assumes estimator has attributes set **Disclaimer:** I know `check_embedded_nifti_masker` is implicitly meant to be a low-level function, etc., etc. ``` Traceback (most recent cal...
diff --git a/nilearn/input_data/masker_validation.py b/nilearn/input_data/masker_validation.py --- a/nilearn/input_data/masker_validation.py +++ b/nilearn/input_data/masker_validation.py @@ -1,6 +1,7 @@ import warnings import numpy as np +from string import Template from .._utils.class_inspect import get_params ...
{"golden_diff": "diff --git a/nilearn/input_data/masker_validation.py b/nilearn/input_data/masker_validation.py\n--- a/nilearn/input_data/masker_validation.py\n+++ b/nilearn/input_data/masker_validation.py\n@@ -1,6 +1,7 @@\n import warnings\n \n import numpy as np\n+from string import Template\n \n from .._utils.class_...
1,794
453
gh_patches_debug_14296
rasdani/github-patches
git_diff
DataDog__dd-trace-py-2384
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- grpc client fails when parse_method_path() does not return a value for package ### Which version of dd-trace-py are you using? ddtrace==0.48.0 ### Which version of pip are you using? pip 21.1 ### ...
diff --git a/ddtrace/contrib/grpc/utils.py b/ddtrace/contrib/grpc/utils.py --- a/ddtrace/contrib/grpc/utils.py +++ b/ddtrace/contrib/grpc/utils.py @@ -19,7 +19,8 @@ method_path = method method_package, method_service, method_name = parse_method_path(method_path) span._set_str_tag(constants.GRPC_METHOD_PA...
{"golden_diff": "diff --git a/ddtrace/contrib/grpc/utils.py b/ddtrace/contrib/grpc/utils.py\n--- a/ddtrace/contrib/grpc/utils.py\n+++ b/ddtrace/contrib/grpc/utils.py\n@@ -19,7 +19,8 @@\n method_path = method\n method_package, method_service, method_name = parse_method_path(method_path)\n span._set_str_tag(c...
1,209
181
gh_patches_debug_43037
rasdani/github-patches
git_diff
digitalfabrik__integreat-cms-301
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix translation coverage The translation coverage is not working due to the changed language model a while ago... Error: `'Language' object has no attribute 'name'` --- END ISSUE --- Below are some code se...
diff --git a/backend/cms/models/pages/page_translation.py b/backend/cms/models/pages/page_translation.py --- a/backend/cms/models/pages/page_translation.py +++ b/backend/cms/models/pages/page_translation.py @@ -120,7 +120,7 @@ return True self_revision = self.latest_major_public_revision ...
{"golden_diff": "diff --git a/backend/cms/models/pages/page_translation.py b/backend/cms/models/pages/page_translation.py\n--- a/backend/cms/models/pages/page_translation.py\n+++ b/backend/cms/models/pages/page_translation.py\n@@ -120,7 +120,7 @@\n return True\n self_revision = self.latest_major_pub...
1,946
919
gh_patches_debug_35990
rasdani/github-patches
git_diff
optuna__optuna-1449
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AllenNLP integration: Can't load configurations that expect ext_vars from environment variables Optuna's AllenNLP integration evaluates the jsonnet config that you give it, passing in the trial parameters as ...
diff --git a/optuna/integration/allennlp.py b/optuna/integration/allennlp.py --- a/optuna/integration/allennlp.py +++ b/optuna/integration/allennlp.py @@ -57,6 +57,13 @@ `config file <https://github.com/optuna/optuna/blob/master/ examples/allennlp/classifier.jsonnet>`_. + .. note:: + In :class:`~o...
{"golden_diff": "diff --git a/optuna/integration/allennlp.py b/optuna/integration/allennlp.py\n--- a/optuna/integration/allennlp.py\n+++ b/optuna/integration/allennlp.py\n@@ -57,6 +57,13 @@\n `config file <https://github.com/optuna/optuna/blob/master/\n examples/allennlp/classifier.jsonnet>`_.\n \n+ .. note:...
1,987
696
gh_patches_debug_32590
rasdani/github-patches
git_diff
Lightning-AI__torchmetrics-2180
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `MeanAveragePrecision` update method does not accept `torchvision.datapoints.BoundingBox` arguments ## 🐛 Bug When the `preds` or `target` arguments to `MeanAveragePrecision.update` method are not of the t...
diff --git a/src/torchmetrics/detection/helpers.py b/src/torchmetrics/detection/helpers.py --- a/src/torchmetrics/detection/helpers.py +++ b/src/torchmetrics/detection/helpers.py @@ -49,16 +49,16 @@ raise ValueError(f"Expected all dicts in `target` to contain the `{k}` key") for ivn in item_val_name...
{"golden_diff": "diff --git a/src/torchmetrics/detection/helpers.py b/src/torchmetrics/detection/helpers.py\n--- a/src/torchmetrics/detection/helpers.py\n+++ b/src/torchmetrics/detection/helpers.py\n@@ -49,16 +49,16 @@\n raise ValueError(f\"Expected all dicts in `target` to contain the `{k}` key\")\n \n ...
2,045
473
gh_patches_debug_7138
rasdani/github-patches
git_diff
e-valuation__EvaP-354
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Result detail pages need to show total grades and participation The `results/course_detail` pages should again show the information that is already given on the overview page (average and medium grades and pa...
diff --git a/evap/results/views.py b/evap/results/views.py --- a/evap/results/views.py +++ b/evap/results/views.py @@ -95,6 +95,9 @@ # the FSR can still see all results but gets a warning message sufficient_votes_warning = (not sufficient_votes) and request.user.is_staff + course.avg_grade, course.med_gr...
{"golden_diff": "diff --git a/evap/results/views.py b/evap/results/views.py\n--- a/evap/results/views.py\n+++ b/evap/results/views.py\n@@ -95,6 +95,9 @@\n # the FSR can still see all results but gets a warning message\n sufficient_votes_warning = (not sufficient_votes) and request.user.is_staff\n \n+ course....
1,536
134
gh_patches_debug_1765
rasdani/github-patches
git_diff
mne-tools__mne-bids-1193
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Q: Release? It would be good to cut a MNE-BIDS release before the MNE-Python 1.6 release because it looks like the `mne.io`->`mne._fiff` stuff isn't in the latest release (e.g., see [circleci main failure in ...
diff --git a/mne_bids/__init__.py b/mne_bids/__init__.py --- a/mne_bids/__init__.py +++ b/mne_bids/__init__.py @@ -1,6 +1,6 @@ """MNE software for easily interacting with BIDS compatible datasets.""" -__version__ = "0.14.dev0" +__version__ = "0.14" from mne_bids import commands from mne_bids.report import make_rep...
{"golden_diff": "diff --git a/mne_bids/__init__.py b/mne_bids/__init__.py\n--- a/mne_bids/__init__.py\n+++ b/mne_bids/__init__.py\n@@ -1,6 +1,6 @@\n \"\"\"MNE software for easily interacting with BIDS compatible datasets.\"\"\"\n \n-__version__ = \"0.14.dev0\"\n+__version__ = \"0.14\"\n from mne_bids import commands\n ...
714
118
gh_patches_debug_19875
rasdani/github-patches
git_diff
OpenNMT__OpenNMT-py-1143
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The comment in onmt.modules.average_attn may be wrong The comment in onmt.modules.average_attn.AverageAttention.forward says that it gets a input of size `[batch_size x input_len x model_dim]`, and outputs a ...
diff --git a/onmt/modules/average_attn.py b/onmt/modules/average_attn.py --- a/onmt/modules/average_attn.py +++ b/onmt/modules/average_attn.py @@ -65,6 +65,9 @@ used to compute the cumulative average. cache: a dictionary containing the cumulative average of the previous st...
{"golden_diff": "diff --git a/onmt/modules/average_attn.py b/onmt/modules/average_attn.py\n--- a/onmt/modules/average_attn.py\n+++ b/onmt/modules/average_attn.py\n@@ -65,6 +65,9 @@\n used to compute the cumulative average.\n cache: a dictionary containing the cumulative average\n ...
1,549
235
gh_patches_debug_25131
rasdani/github-patches
git_diff
lightly-ai__lightly-213
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix imports in __init__ and add tests # Fix import errors Closes #213 I fixed the import errors, e.g. ``` import lightly lightly.data.LightlyDataset ``` should work now. I also added tests for al...
diff --git a/lightly/__init__.py b/lightly/__init__.py --- a/lightly/__init__.py +++ b/lightly/__init__.py @@ -48,6 +48,8 @@ - MoCo + - SimSiam + - **transforms**: The lightly.transforms module implements custom data transforms. Currently implements: @@ -68,7 +70,7 @@ # All Rights Reserved __name__ = ...
{"golden_diff": "diff --git a/lightly/__init__.py b/lightly/__init__.py\n--- a/lightly/__init__.py\n+++ b/lightly/__init__.py\n@@ -48,6 +48,8 @@\n \n - MoCo\n \n+ - SimSiam\n+\n - **transforms**:\n \n The lightly.transforms module implements custom data transforms. Currently implements:\n@@ -68,7 +70,7 @@\n # All ...
1,297
322
gh_patches_debug_40962
rasdani/github-patches
git_diff
aws__aws-cli-2899
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add support for high resolution metrics in CloudWatch Cloudwatch API supports high-resolution metrics, AWS CLI does not. https://aws.amazon.com/blogs/aws/new-high-resolution-custom-metrics-and-alarms-for-a...
diff --git a/awscli/customizations/putmetricdata.py b/awscli/customizations/putmetricdata.py --- a/awscli/customizations/putmetricdata.py +++ b/awscli/customizations/putmetricdata.py @@ -20,6 +20,7 @@ * --value * --statistic-values * --unit +* --storage-resolution """ import decimal @@ -30,8 +31,8 @@ def re...
{"golden_diff": "diff --git a/awscli/customizations/putmetricdata.py b/awscli/customizations/putmetricdata.py\n--- a/awscli/customizations/putmetricdata.py\n+++ b/awscli/customizations/putmetricdata.py\n@@ -20,6 +20,7 @@\n * --value\n * --statistic-values\n * --unit\n+* --storage-resolution\n \n \"\"\"\n import decimal...
2,035
747
gh_patches_debug_304
rasdani/github-patches
git_diff
statsmodels__statsmodels-507
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- numdifftools dependency Original Launchpad bug 653902: https://bugs.launchpad.net/statsmodels/+bug/653902 Reported by: vincent-vincentdavis (Vincent Davis). statsmodels/_init_.py imports tsa Which then retur...
diff --git a/statsmodels/tsa/mlemodel.py b/statsmodels/tsa/mlemodel.py --- a/statsmodels/tsa/mlemodel.py +++ b/statsmodels/tsa/mlemodel.py @@ -13,7 +13,10 @@ import numpy as np -import numdifftools as ndt +try: + import numdifftools as ndt +except: + pass from statsmodels.base.model import LikelihoodModel...
{"golden_diff": "diff --git a/statsmodels/tsa/mlemodel.py b/statsmodels/tsa/mlemodel.py\n--- a/statsmodels/tsa/mlemodel.py\n+++ b/statsmodels/tsa/mlemodel.py\n@@ -13,7 +13,10 @@\n \n import numpy as np\n \n-import numdifftools as ndt\n+try:\n+ import numdifftools as ndt\n+except:\n+ pass\n \n from statsmodels.bas...
1,068
103
gh_patches_debug_5341
rasdani/github-patches
git_diff
statsmodels__statsmodels-6290
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- is sm.open_help ever defined? Near the end of `statsmodels.api`: ``` chmpath = os.path.join(os.path.dirname(__file__), 'statsmodelsdoc.chm') if os.path.exists(chmpath): def open_help(chmpath=chmpath...
diff --git a/statsmodels/api.py b/statsmodels/api.py --- a/statsmodels/api.py +++ b/statsmodels/api.py @@ -54,18 +54,6 @@ load = load_pickle -chmpath = os.path.join(os.path.dirname(__file__), 'statsmodelsdoc.chm') -if os.path.exists(chmpath): - # As of 0.10.0, this is not reached. See GH#5134 - - def open_h...
{"golden_diff": "diff --git a/statsmodels/api.py b/statsmodels/api.py\n--- a/statsmodels/api.py\n+++ b/statsmodels/api.py\n@@ -54,18 +54,6 @@\n \n load = load_pickle\n \n-chmpath = os.path.join(os.path.dirname(__file__), 'statsmodelsdoc.chm')\n-if os.path.exists(chmpath):\n- # As of 0.10.0, this is not reached. See...
1,116
168
gh_patches_debug_13668
rasdani/github-patches
git_diff
kubeflow__pipelines-1459
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- cmle training component should output job_dir.txt It should output the file regardless user provides jodDir or not, otherwise argo will fail. --- END ISSUE --- Below are some code segments, each from a rele...
diff --git a/component_sdk/python/kfp_component/google/ml_engine/_create_job.py b/component_sdk/python/kfp_component/google/ml_engine/_create_job.py --- a/component_sdk/python/kfp_component/google/ml_engine/_create_job.py +++ b/component_sdk/python/kfp_component/google/ml_engine/_create_job.py @@ -133,6 +133,8 @@ ...
{"golden_diff": "diff --git a/component_sdk/python/kfp_component/google/ml_engine/_create_job.py b/component_sdk/python/kfp_component/google/ml_engine/_create_job.py\n--- a/component_sdk/python/kfp_component/google/ml_engine/_create_job.py\n+++ b/component_sdk/python/kfp_component/google/ml_engine/_create_job.py\n@@ -1...
1,920
223
gh_patches_debug_49673
rasdani/github-patches
git_diff
kserve__kserve-2835
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- No matches for kind \"HorizontalPodAutoscaler\" in version \"autoscaling/v2beta2\ /kind bug **What steps did you take and what happened:** Deploy kserve in raw mode on kubernetes 1.26 where autoscaling/v2...
diff --git a/hack/python-sdk/update_release_version_helper.py b/hack/python-sdk/update_release_version_helper.py --- a/hack/python-sdk/update_release_version_helper.py +++ b/hack/python-sdk/update_release_version_helper.py @@ -24,7 +24,6 @@ toml_files = [ "python/kserve/pyproject.toml", "python/aiffairness/p...
{"golden_diff": "diff --git a/hack/python-sdk/update_release_version_helper.py b/hack/python-sdk/update_release_version_helper.py\n--- a/hack/python-sdk/update_release_version_helper.py\n+++ b/hack/python-sdk/update_release_version_helper.py\n@@ -24,7 +24,6 @@\n toml_files = [\n \"python/kserve/pyproject.toml\",\n ...
836
133
gh_patches_debug_10660
rasdani/github-patches
git_diff
mozilla__pontoon-2816
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Don't submit pretranslated strings with warnings or errors If possible, it would be great to have 2 different behaviors: * Strings with warning should be suggested, instead of submitted, because they might b...
diff --git a/pontoon/pretranslation/tasks.py b/pontoon/pretranslation/tasks.py --- a/pontoon/pretranslation/tasks.py +++ b/pontoon/pretranslation/tasks.py @@ -171,7 +171,12 @@ bulk_run_checks(Translation.objects.for_checks().filter(pk__in=translation_pks)) # Mark translations as changed - changed_transla...
{"golden_diff": "diff --git a/pontoon/pretranslation/tasks.py b/pontoon/pretranslation/tasks.py\n--- a/pontoon/pretranslation/tasks.py\n+++ b/pontoon/pretranslation/tasks.py\n@@ -171,7 +171,12 @@\n bulk_run_checks(Translation.objects.for_checks().filter(pk__in=translation_pks))\n \n # Mark translations as chang...
1,981
170
gh_patches_debug_11956
rasdani/github-patches
git_diff
intel__dffml-197
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- docs: Switch HTML theme to sphinx_rtd_theme https://sphinx-rtd-theme.readthedocs.io/en/stable/installing.html --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these ...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -57,7 +57,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = "alabaster" +html_theme = "sphinx_rtd_theme" html_theme_options = { "description": "The fast...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -57,7 +57,7 @@\n # The theme to use for HTML and HTML Help pages. See the documentation for\n # a list of builtin themes.\n #\n-html_theme = \"alabaster\"\n+html_theme = \"sphinx_rtd_theme\"\n \n html_theme_options = ...
1,916
167
gh_patches_debug_14038
rasdani/github-patches
git_diff
microsoft__promptflow-3244
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Fallback to DefaultAzureCredential isn't compatible with AzureDeveloperCliCredential **Describe the bug** PromptFlow currently falls back to using DefaultAzureCredential and fetching a token for the ...
diff --git a/src/promptflow-core/promptflow/_core/token_provider.py b/src/promptflow-core/promptflow/_core/token_provider.py --- a/src/promptflow-core/promptflow/_core/token_provider.py +++ b/src/promptflow-core/promptflow/_core/token_provider.py @@ -4,8 +4,8 @@ from promptflow._utils.credential_utils import get_defau...
{"golden_diff": "diff --git a/src/promptflow-core/promptflow/_core/token_provider.py b/src/promptflow-core/promptflow/_core/token_provider.py\n--- a/src/promptflow-core/promptflow/_core/token_provider.py\n+++ b/src/promptflow-core/promptflow/_core/token_provider.py\n@@ -4,8 +4,8 @@\n from promptflow._utils.credential_u...
872
235
gh_patches_debug_19830
rasdani/github-patches
git_diff
yt-project__yt-4519
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DEPR: `VisibleDeprecationWarning` considered noisy Context: yt doesn't use builtin `DeprecationWarning`s but instead uses a custom class `VisibleDeprecationWarning`, whose sole intent is to work around Pytho...
diff --git a/yt/_maintenance/deprecation.py b/yt/_maintenance/deprecation.py --- a/yt/_maintenance/deprecation.py +++ b/yt/_maintenance/deprecation.py @@ -4,19 +4,6 @@ from typing import Dict, Optional -class VisibleDeprecationWarning(UserWarning): - """Visible deprecation warning, adapted from NumPy - - The...
{"golden_diff": "diff --git a/yt/_maintenance/deprecation.py b/yt/_maintenance/deprecation.py\n--- a/yt/_maintenance/deprecation.py\n+++ b/yt/_maintenance/deprecation.py\n@@ -4,19 +4,6 @@\n from typing import Dict, Optional\n \n \n-class VisibleDeprecationWarning(UserWarning):\n- \"\"\"Visible deprecation warning, a...
1,329
265
gh_patches_debug_8912
rasdani/github-patches
git_diff
yt-project__yt-3847
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DOC: private methods used in cookbook recipe ### Bug report **Bug summary** in #2567, `doc/source/cookbook/render_two_fields_tf.py` was added to the cookbook On the two following lines, the private met...
diff --git a/doc/source/cookbook/render_two_fields_tf.py b/doc/source/cookbook/render_two_fields_tf.py --- a/doc/source/cookbook/render_two_fields_tf.py +++ b/doc/source/cookbook/render_two_fields_tf.py @@ -12,7 +12,6 @@ # Add density field = "density" -ds._get_field_info(field).take_log = True vol = create_volu...
{"golden_diff": "diff --git a/doc/source/cookbook/render_two_fields_tf.py b/doc/source/cookbook/render_two_fields_tf.py\n--- a/doc/source/cookbook/render_two_fields_tf.py\n+++ b/doc/source/cookbook/render_two_fields_tf.py\n@@ -12,7 +12,6 @@\n # Add density\n \n field = \"density\"\n-ds._get_field_info(field).take_log =...
964
158
gh_patches_debug_37024
rasdani/github-patches
git_diff
comic__grand-challenge.org-1936
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Challenge creation notifications At the moment, staff users receive emails about new challenges. It would be nice to turns those emails into notifications. **Challenge creation emails** - create follow...
diff --git a/app/grandchallenge/challenges/emails.py b/app/grandchallenge/challenges/emails.py --- a/app/grandchallenge/challenges/emails.py +++ b/app/grandchallenge/challenges/emails.py @@ -1,7 +1,5 @@ -from django.conf import settings -from django.contrib.auth import get_user_model from django.contrib.sites.models i...
{"golden_diff": "diff --git a/app/grandchallenge/challenges/emails.py b/app/grandchallenge/challenges/emails.py\n--- a/app/grandchallenge/challenges/emails.py\n+++ b/app/grandchallenge/challenges/emails.py\n@@ -1,7 +1,5 @@\n-from django.conf import settings\n-from django.contrib.auth import get_user_model\n from django...
905
562
gh_patches_debug_13377
rasdani/github-patches
git_diff
GeotrekCE__Geotrek-admin-1326
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SEARCH_PATH for Geotrek DB user Since Geotrek 0.28, tables and functions have be moved to different schemas, which is a very good point (https://github.com/makinacorpus/Geotrek/releases/tag/v0.28.0). Schemas...
diff --git a/geotrek/common/utils/postgresql.py b/geotrek/common/utils/postgresql.py --- a/geotrek/common/utils/postgresql.py +++ b/geotrek/common/utils/postgresql.py @@ -139,3 +139,12 @@ logger.info("Moved %s to schema %s" % (table_name, schema_name)) except Exception: lo...
{"golden_diff": "diff --git a/geotrek/common/utils/postgresql.py b/geotrek/common/utils/postgresql.py\n--- a/geotrek/common/utils/postgresql.py\n+++ b/geotrek/common/utils/postgresql.py\n@@ -139,3 +139,12 @@\n logger.info(\"Moved %s to schema %s\" % (table_name, schema_name))\n except Except...
1,893
229
gh_patches_debug_438
rasdani/github-patches
git_diff
OpenMined__PySyft-155
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Set up CI for automated testing and style checks Now that our codebase is growing (hooray!), we should set up CI for automated testing and style checks (PEP8, PEP257). Choices include [CircleCI](https://c...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -28,5 +28,5 @@ scripts=['bin/syft_cmd'], install_requires=requirements, setup_requires=['pytest-runner'], - tests_require=['pytest'] + tests_require=['pytest', 'pytest-flake8'] )
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -28,5 +28,5 @@\n scripts=['bin/syft_cmd'],\n install_requires=requirements,\n setup_requires=['pytest-runner'],\n- tests_require=['pytest']\n+ tests_require=['pytest', 'pytest-flake8']\n )\n", "issue": "Set up CI for...
670
75
gh_patches_debug_6021
rasdani/github-patches
git_diff
scrapy__scrapy-6334
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 'json' selector type not documented https://docs.scrapy.org/en/latest/topics/selectors.html `type defines the selector type, it can be "html", "xml" or None (default).` But my tests are now failing beca...
diff --git a/scrapy/selector/unified.py b/scrapy/selector/unified.py --- a/scrapy/selector/unified.py +++ b/scrapy/selector/unified.py @@ -47,7 +47,7 @@ ``response`` isn't available. Using ``text`` and ``response`` together is undefined behavior. - ``type`` defines the selector type, it can be ``"html"``...
{"golden_diff": "diff --git a/scrapy/selector/unified.py b/scrapy/selector/unified.py\n--- a/scrapy/selector/unified.py\n+++ b/scrapy/selector/unified.py\n@@ -47,7 +47,7 @@\n ``response`` isn't available. Using ``text`` and ``response`` together is\n undefined behavior.\n \n- ``type`` defines the selector ty...
1,298
153
gh_patches_debug_9764
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-895
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- fixing abki_de recycling fix for #891 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `custom_components/was...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/abki_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/abki_de.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/abki_de.py +++ b/custom_components/waste_colle...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/abki_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/abki_de.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/abki_de.py\n+++ b/custom_com...
1,539
178
gh_patches_debug_53281
rasdani/github-patches
git_diff
holoviz__panel-645
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Port not being released after stopping threaded holoviz panel app server Closing a threaded panel app holds on to the port it started on. This is different behavior than closing an app initialized without thr...
diff --git a/panel/io/server.py b/panel/io/server.py --- a/panel/io/server.py +++ b/panel/io/server.py @@ -122,6 +122,15 @@ if self.stopped: self._cb.stop() self.io_loop.stop() + + def run(self): + try: + if self._target: + bokeh_server = self._...
{"golden_diff": "diff --git a/panel/io/server.py b/panel/io/server.py\n--- a/panel/io/server.py\n+++ b/panel/io/server.py\n@@ -122,6 +122,15 @@\n if self.stopped:\n self._cb.stop()\n self.io_loop.stop()\n+ \n+ def run(self):\n+ try:\n+ if self._target:\n+ ...
1,502
152
gh_patches_debug_5160
rasdani/github-patches
git_diff
hpcaitech__ColossalAI-5342
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs....
diff --git a/extensions/cpp_extension.py b/extensions/cpp_extension.py --- a/extensions/cpp_extension.py +++ b/extensions/cpp_extension.py @@ -126,7 +126,7 @@ def load(self): try: op_kernel = self.import_op() - except ImportError: + except (ImportError, ModuleNotFoundError): ...
{"golden_diff": "diff --git a/extensions/cpp_extension.py b/extensions/cpp_extension.py\n--- a/extensions/cpp_extension.py\n+++ b/extensions/cpp_extension.py\n@@ -126,7 +126,7 @@\n def load(self):\n try:\n op_kernel = self.import_op()\n- except ImportError:\n+ except (ImportError, ...
1,582
107
gh_patches_debug_29779
rasdani/github-patches
git_diff
e-valuation__EvaP-597
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add "public view" on results pages for staff users For staff users there should be an option on the results pages to switch between "public view" (without comments, like students would see the page) and "comp...
diff --git a/evap/results/views.py b/evap/results/views.py --- a/evap/results/views.py +++ b/evap/results/views.py @@ -72,11 +72,14 @@ sections = calculate_results(course) + public_view = request.GET.get('public_view', 'false') # default: show own view + public_view = {'true': True, 'false': False}.get(p...
{"golden_diff": "diff --git a/evap/results/views.py b/evap/results/views.py\n--- a/evap/results/views.py\n+++ b/evap/results/views.py\n@@ -72,11 +72,14 @@\n \n sections = calculate_results(course)\n \n+ public_view = request.GET.get('public_view', 'false') # default: show own view\n+ public_view = {'true': Tr...
1,633
356
gh_patches_debug_17589
rasdani/github-patches
git_diff
coala__coala-bears-1661
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- JuliaLintBear: Use JuliaRequirement `REQUIREMENTS` should be a `JuliaRequirement` instead of a `DistributionRequirement`. --- END ISSUE --- Below are some code segments, each from a relevant file. One or mo...
diff --git a/bears/julia/JuliaLintBear.py b/bears/julia/JuliaLintBear.py --- a/bears/julia/JuliaLintBear.py +++ b/bears/julia/JuliaLintBear.py @@ -1,7 +1,7 @@ from coala_utils.string_processing.Core import escape from coalib.bearlib.abstractions.Linter import linter -from dependency_management.requirements.Distributi...
{"golden_diff": "diff --git a/bears/julia/JuliaLintBear.py b/bears/julia/JuliaLintBear.py\n--- a/bears/julia/JuliaLintBear.py\n+++ b/bears/julia/JuliaLintBear.py\n@@ -1,7 +1,7 @@\n from coala_utils.string_processing.Core import escape\n from coalib.bearlib.abstractions.Linter import linter\n-from dependency_management....
768
223
gh_patches_debug_35924
rasdani/github-patches
git_diff
archlinux__archinstall-731
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Nvidia proprietary driver installation Hello I tried to install my system via this installer but i can't install nvidia proprietary driver with this installer. I think there is an option "Nvidia (propr...
diff --git a/profiles/xorg.py b/profiles/xorg.py --- a/profiles/xorg.py +++ b/profiles/xorg.py @@ -1,6 +1,7 @@ # A system with "xorg" installed import archinstall +import logging is_top_level_profile = True @@ -36,15 +37,16 @@ # or through conventional import xorg if __name__ == 'xorg': try: - if "nvidia"...
{"golden_diff": "diff --git a/profiles/xorg.py b/profiles/xorg.py\n--- a/profiles/xorg.py\n+++ b/profiles/xorg.py\n@@ -1,6 +1,7 @@\n # A system with \"xorg\" installed\n \n import archinstall\n+import logging\n \n is_top_level_profile = True\n \n@@ -36,15 +37,16 @@\n # or through conventional import xorg\n if __name__ ...
1,249
519
gh_patches_debug_5418
rasdani/github-patches
git_diff
saulpw__visidata-625
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [help keystrokes] Help keystrokes has longnames for about 20 commands **Small description** Keystrokes in HelpSheet display commands not keystrokes for about 20 commands. **Expected result** Keystroke va...
diff --git a/visidata/help.py b/visidata/help.py --- a/visidata/help.py +++ b/visidata/help.py @@ -36,7 +36,7 @@ self.revbinds = {} # [longname] -> keystrokes itbindings = vd.bindkeys.iterall() for (keystrokes, _), longname in itbindings: - if keystrokes not in self.revbinds: + ...
{"golden_diff": "diff --git a/visidata/help.py b/visidata/help.py\n--- a/visidata/help.py\n+++ b/visidata/help.py\n@@ -36,7 +36,7 @@\n self.revbinds = {} # [longname] -> keystrokes\n itbindings = vd.bindkeys.iterall()\n for (keystrokes, _), longname in itbindings:\n- if keystrokes no...
1,450
141
gh_patches_debug_4466
rasdani/github-patches
git_diff
googleapis__google-cloud-python-5899
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Default max_bytes in pubsub seems wrong https://github.com/GoogleCloudPlatform/google-cloud-python/blob/005ddd11770f8953643dac9b64a037524da2f49e/pubsub/google/cloud/pubsub_v1/types.py#L43 In my code I'm se...
diff --git a/pubsub/google/cloud/pubsub_v1/types.py b/pubsub/google/cloud/pubsub_v1/types.py --- a/pubsub/google/cloud/pubsub_v1/types.py +++ b/pubsub/google/cloud/pubsub_v1/types.py @@ -40,7 +40,7 @@ ['max_bytes', 'max_latency', 'max_messages'], ) BatchSettings.__new__.__defaults__ = ( - 1024 * 1024 * 10, #...
{"golden_diff": "diff --git a/pubsub/google/cloud/pubsub_v1/types.py b/pubsub/google/cloud/pubsub_v1/types.py\n--- a/pubsub/google/cloud/pubsub_v1/types.py\n+++ b/pubsub/google/cloud/pubsub_v1/types.py\n@@ -40,7 +40,7 @@\n ['max_bytes', 'max_latency', 'max_messages'],\n )\n BatchSettings.__new__.__defaults__ = (\n-...
1,461
194
gh_patches_debug_11467
rasdani/github-patches
git_diff
scoutapp__scout_apm_python-523
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error with the scout add-on in Heroku With version 2.14.1 of this package, I encounter the following error: ` File "/code/nluproxy/__init__.py", line 3, in <module> from .celery import app as celery_...
diff --git a/src/scout_apm/core/metadata.py b/src/scout_apm/core/metadata.py --- a/src/scout_apm/core/metadata.py +++ b/src/scout_apm/core/metadata.py @@ -56,6 +56,15 @@ return [] return sorted( - (distribution.metadata["Name"], distribution.metadata["Version"]) + ( + distributi...
{"golden_diff": "diff --git a/src/scout_apm/core/metadata.py b/src/scout_apm/core/metadata.py\n--- a/src/scout_apm/core/metadata.py\n+++ b/src/scout_apm/core/metadata.py\n@@ -56,6 +56,15 @@\n return []\n \n return sorted(\n- (distribution.metadata[\"Name\"], distribution.metadata[\"Version\"])\n+ ...
1,122
204
gh_patches_debug_7171
rasdani/github-patches
git_diff
matrix-org__synapse-14727
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- synapse returns undocumented `device` property from `GET /_matrix/client/v3/pushrules/` Synapse's response to a `/pushrules` query looks something like: ```json5 [ "global": { "content": { /*... *...
diff --git a/synapse/push/clientformat.py b/synapse/push/clientformat.py --- a/synapse/push/clientformat.py +++ b/synapse/push/clientformat.py @@ -26,10 +26,7 @@ """Converts a list of rawrules and a enabled map into nested dictionaries to match the Matrix client-server format for push rules""" - rules: D...
{"golden_diff": "diff --git a/synapse/push/clientformat.py b/synapse/push/clientformat.py\n--- a/synapse/push/clientformat.py\n+++ b/synapse/push/clientformat.py\n@@ -26,10 +26,7 @@\n \"\"\"Converts a list of rawrules and a enabled map into nested dictionaries\n to match the Matrix client-server format for push...
1,704
163
gh_patches_debug_20549
rasdani/github-patches
git_diff
liberapay__liberapay.com-1378
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cron fails to run The weekly cron for `create_payday_issue` is no longer running successfully at the scheduled time. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of...
diff --git a/liberapay/cron.py b/liberapay/cron.py --- a/liberapay/cron.py +++ b/liberapay/cron.py @@ -21,7 +21,7 @@ self.exclusive_jobs = [] def __call__(self, period, func, exclusive=False): - if not self.website.env.run_cron_jobs: + if not self.website.env.run_cron_jobs or not period: ...
{"golden_diff": "diff --git a/liberapay/cron.py b/liberapay/cron.py\n--- a/liberapay/cron.py\n+++ b/liberapay/cron.py\n@@ -21,7 +21,7 @@\n self.exclusive_jobs = []\n \n def __call__(self, period, func, exclusive=False):\n- if not self.website.env.run_cron_jobs:\n+ if not self.website.env.run_c...
1,102
227
gh_patches_debug_17568
rasdani/github-patches
git_diff
pyqtgraph__pyqtgraph-473
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- QLayoutWidget Add Label Error: No method AddItem The code in QLayoutWidget looks something like: ``` def addLabel(self, text=' ', row=None, col=None, rowspan=1, colspan=1, **kargs): """ C...
diff --git a/pyqtgraph/widgets/LayoutWidget.py b/pyqtgraph/widgets/LayoutWidget.py --- a/pyqtgraph/widgets/LayoutWidget.py +++ b/pyqtgraph/widgets/LayoutWidget.py @@ -39,7 +39,7 @@ Returns the created widget. """ text = QtGui.QLabel(text, **kargs) - self.addItem(text, row, col, rowspan...
{"golden_diff": "diff --git a/pyqtgraph/widgets/LayoutWidget.py b/pyqtgraph/widgets/LayoutWidget.py\n--- a/pyqtgraph/widgets/LayoutWidget.py\n+++ b/pyqtgraph/widgets/LayoutWidget.py\n@@ -39,7 +39,7 @@\n Returns the created widget.\n \"\"\"\n text = QtGui.QLabel(text, **kargs)\n- self.addI...
1,417
212
gh_patches_debug_13509
rasdani/github-patches
git_diff
UTNkar__moore-512
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix navigation bar on laptop screens On utn.se there are many items in the menu. On laptop screens (1366x768 pixels) the navigation bar splits into two rows which makes it unusable. To solve this, make the na...
diff --git a/src/branding/templatetags/branding_tags.py b/src/branding/templatetags/branding_tags.py --- a/src/branding/templatetags/branding_tags.py +++ b/src/branding/templatetags/branding_tags.py @@ -23,10 +23,19 @@ logos = Logo.objects.exclude(belongs_to=site).all() committees = logos.filter(category='com...
{"golden_diff": "diff --git a/src/branding/templatetags/branding_tags.py b/src/branding/templatetags/branding_tags.py\n--- a/src/branding/templatetags/branding_tags.py\n+++ b/src/branding/templatetags/branding_tags.py\n@@ -23,10 +23,19 @@\n logos = Logo.objects.exclude(belongs_to=site).all()\n committees = logo...
734
241
gh_patches_debug_8790
rasdani/github-patches
git_diff
docker__docker-py-178
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Installed through dependencies "websocket" library doesn't work with Python 3 During `pip install docker-py` with Python 3 I'm getting following error: ``` Running setup.py install for websocket-client ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,12 +1,18 @@ #!/usr/bin/env python import os +import sys from setuptools import setup ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) +if sys.version_info[0] == 3: + requirements_file = './requirements3.txt' +else: ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,12 +1,18 @@\n #!/usr/bin/env python\n import os\n+import sys\n from setuptools import setup\n \n ROOT_DIR = os.path.dirname(__file__)\n SOURCE_DIR = os.path.join(ROOT_DIR)\n \n+if sys.version_info[0] == 3:\n+ requirements_file =...
719
144
gh_patches_debug_38573
rasdani/github-patches
git_diff
facebookresearch__fairseq-5149
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- MMS Multiple voice inputs problem When I use the following command: python examples/mms/asr/infer/mms_infer.py --model "/path/to/asr/model" --lang lang_code --audio "/path/to/audio_1.wav" "/path/to/audio_1.w...
diff --git a/examples/mms/asr/infer/mms_infer.py b/examples/mms/asr/infer/mms_infer.py --- a/examples/mms/asr/infer/mms_infer.py +++ b/examples/mms/asr/infer/mms_infer.py @@ -21,28 +21,38 @@ parser.add_argument("--format", type=str, choices=["none", "letter"], default="letter") return parser.parse_args() +d...
{"golden_diff": "diff --git a/examples/mms/asr/infer/mms_infer.py b/examples/mms/asr/infer/mms_infer.py\n--- a/examples/mms/asr/infer/mms_infer.py\n+++ b/examples/mms/asr/infer/mms_infer.py\n@@ -21,28 +21,38 @@\n parser.add_argument(\"--format\", type=str, choices=[\"none\", \"letter\"], default=\"letter\")\n r...
1,034
774
gh_patches_debug_26644
rasdani/github-patches
git_diff
Kinto__kinto-293
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- cliquet.storage.exceptions.BackendError: ConnectionError: Error 8 connecting to localhos:6379 The config wizard has typos: https://github.com/Kinto/kinto/blob/master/kinto/config/__init__.py#L39 https://gith...
diff --git a/kinto/config/__init__.py b/kinto/config/__init__.py --- a/kinto/config/__init__.py +++ b/kinto/config/__init__.py @@ -36,11 +36,11 @@ elif backend == '2': # Redis configuration values['storage_backend'] = "cliquet.storage.redis" - values['storage_url'] = "redis://localhos:6379...
{"golden_diff": "diff --git a/kinto/config/__init__.py b/kinto/config/__init__.py\n--- a/kinto/config/__init__.py\n+++ b/kinto/config/__init__.py\n@@ -36,11 +36,11 @@\n elif backend == '2':\n # Redis configuration\n values['storage_backend'] = \"cliquet.storage.redis\"\n- values['storage_url'...
1,041
374
gh_patches_debug_518
rasdani/github-patches
git_diff
feast-dev__feast-1946
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow plugin repos to test against universal test suite **Is your feature request related to a problem? Please describe.** There are several plugin repos for custom connectors (Hive, Azure, Snowflake, etc.),...
diff --git a/sdk/python/feast/constants.py b/sdk/python/feast/constants.py --- a/sdk/python/feast/constants.py +++ b/sdk/python/feast/constants.py @@ -24,3 +24,6 @@ # Environment variable for toggling usage FEAST_USAGE = "FEAST_USAGE" + +# Environment variable for the path for overwriting universal test configs +FU...
{"golden_diff": "diff --git a/sdk/python/feast/constants.py b/sdk/python/feast/constants.py\n--- a/sdk/python/feast/constants.py\n+++ b/sdk/python/feast/constants.py\n@@ -24,3 +24,6 @@\n \n # Environment variable for toggling usage\n FEAST_USAGE = \"FEAST_USAGE\"\n+\n+# Environment variable for the path for overwriting...
1,095
102
gh_patches_debug_19153
rasdani/github-patches
git_diff
conan-io__conan-2762
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- KeyError USERDOMAIN on `conan install` We have at least two machines for which `conan install` errors out with the message: ``` Traceback (most recent call last): File "C:\Python27\lib\site-packages\co...
diff --git a/conans/util/windows.py b/conans/util/windows.py --- a/conans/util/windows.py +++ b/conans/util/windows.py @@ -54,9 +54,11 @@ # Workaround for short_home living in NTFS file systems. Give full control permission to current user to avoid # access problems in cygwin/msys2 windows subsystems when usi...
{"golden_diff": "diff --git a/conans/util/windows.py b/conans/util/windows.py\n--- a/conans/util/windows.py\n+++ b/conans/util/windows.py\n@@ -54,9 +54,11 @@\n # Workaround for short_home living in NTFS file systems. Give full control permission to current user to avoid\n # access problems in cygwin/msys2 windo...
1,902
261
gh_patches_debug_50432
rasdani/github-patches
git_diff
readthedocs__readthedocs.org-4754
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve unexpected error message Many users are reporting / filling an issue in our issue tracker when this message is shown to them, which is logic because it's what the message says. > There was a proble...
diff --git a/readthedocs/doc_builder/exceptions.py b/readthedocs/doc_builder/exceptions.py --- a/readthedocs/doc_builder/exceptions.py +++ b/readthedocs/doc_builder/exceptions.py @@ -24,7 +24,9 @@ GENERIC_WITH_BUILD_ID = ugettext_noop( 'There was a problem with Read the Docs while building your document...
{"golden_diff": "diff --git a/readthedocs/doc_builder/exceptions.py b/readthedocs/doc_builder/exceptions.py\n--- a/readthedocs/doc_builder/exceptions.py\n+++ b/readthedocs/doc_builder/exceptions.py\n@@ -24,7 +24,9 @@\n \n GENERIC_WITH_BUILD_ID = ugettext_noop(\n 'There was a problem with Read the Docs while...
841
140
gh_patches_debug_15903
rasdani/github-patches
git_diff
pyload__pyload-1093
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ShareOnline PrePaid is not recognized As the title says. A PrePaid ShareOnline Account is not recognized as valid Premium Account and therefore pyload asks for Captchas when trying to download an URL. ![Shar...
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py --- a/module/plugins/accounts/ShareonlineBiz.py +++ b/module/plugins/accounts/ShareonlineBiz.py @@ -8,7 +8,7 @@ class ShareonlineBiz(Account): __name__ = "ShareonlineBiz" __type__ = "account" - __versi...
{"golden_diff": "diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py\n--- a/module/plugins/accounts/ShareonlineBiz.py\n+++ b/module/plugins/accounts/ShareonlineBiz.py\n@@ -8,7 +8,7 @@\n class ShareonlineBiz(Account):\n __name__ = \"ShareonlineBiz\"\n __type__ ...
1,077
211
gh_patches_debug_21992
rasdani/github-patches
git_diff
akvo__akvo-rsr-3685
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow patching indicator with empty list of dimension names --- 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/akvo/rest/serializers/indicator.py b/akvo/rest/serializers/indicator.py --- a/akvo/rest/serializers/indicator.py +++ b/akvo/rest/serializers/indicator.py @@ -7,7 +7,7 @@ from akvo.rest.serializers.indicator_period import IndicatorPeriodFrameworkSerializer from akvo.rest.serializers.indicator_dimension_na...
{"golden_diff": "diff --git a/akvo/rest/serializers/indicator.py b/akvo/rest/serializers/indicator.py\n--- a/akvo/rest/serializers/indicator.py\n+++ b/akvo/rest/serializers/indicator.py\n@@ -7,7 +7,7 @@\n from akvo.rest.serializers.indicator_period import IndicatorPeriodFrameworkSerializer\n from akvo.rest.serializers....
638
220
gh_patches_debug_35419
rasdani/github-patches
git_diff
ManimCommunity__manim-99
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- remove all of manim/files/ It contains svg files specific to 3b1b. Remove OpenCV and SceneFromVideo opencv does not seem to be used anywhere other than in ScenefromVideo, which seems to be broken. --- END IS...
diff --git a/manim/__init__.py b/manim/__init__.py --- a/manim/__init__.py +++ b/manim/__init__.py @@ -51,7 +51,6 @@ from .scene.scene import * from .scene.sample_space_scene import * from .scene.graph_scene import * -from .scene.scene_from_video import * from .scene.three_d_scene import * from .scene.vector_space...
{"golden_diff": "diff --git a/manim/__init__.py b/manim/__init__.py\n--- a/manim/__init__.py\n+++ b/manim/__init__.py\n@@ -51,7 +51,6 @@\n from .scene.scene import *\n from .scene.sample_space_scene import *\n from .scene.graph_scene import *\n-from .scene.scene_from_video import *\n from .scene.three_d_scene import *\...
1,804
771
gh_patches_debug_29786
rasdani/github-patches
git_diff
iterative__dvc-2017
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- dvc: unify requirements files and setup.py We have duplication between `requirements.txt` and `setup.py` `install_requires`. We also use three `pip install` lines in docs to set things up. Ideally we would ju...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ from setuptools import setup, find_packages from setuptools.command.build_py import build_py as _build_py import os +import sys # https://packaging.python.org/guides/single-sourcing-package-version/ @@ -69,6 +70,34 @@ ssh = ["parami...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,6 +1,7 @@\n from setuptools import setup, find_packages\n from setuptools.command.build_py import build_py as _build_py\n import os\n+import sys\n \n \n # https://packaging.python.org/guides/single-sourcing-package-version/\n@@ -69...
1,659
561
gh_patches_debug_120
rasdani/github-patches
git_diff
pytorch__TensorRT-1896
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Upgrade `release/1.4` to Torch 2.0.1 + TensorRT 8.6.1 - Also upgrade `main` to TensorRT 8.6.1 (as a commit to #1852) --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of...
diff --git a/py/versions.py b/py/versions.py --- a/py/versions.py +++ b/py/versions.py @@ -1,4 +1,4 @@ -__version__ = "1.4.0.rc0" +__version__ = "1.4.0" __cuda_version__ = "11.8" __cudnn_version__ = "8.8" __tensorrt_version__ = "8.6"
{"golden_diff": "diff --git a/py/versions.py b/py/versions.py\n--- a/py/versions.py\n+++ b/py/versions.py\n@@ -1,4 +1,4 @@\n-__version__ = \"1.4.0.rc0\"\n+__version__ = \"1.4.0\"\n __cuda_version__ = \"11.8\"\n __cudnn_version__ = \"8.8\"\n __tensorrt_version__ = \"8.6\"\n", "issue": "Upgrade `release/1.4` to Torch 2.0...
362
98
gh_patches_debug_23202
rasdani/github-patches
git_diff
bridgecrewio__checkov-616
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Check: CKV_GCP_19 False positive **Describe the bug** Checkov Will flag your code even if the `basic-auth` is already disabled on your cluster. **To Reproduce** Steps to reproduce the behavior: 1. Have a ...
diff --git a/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py b/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py --- a/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py +++ b/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py @@ -1,5 +1,5 @@ -from checkov.terraform.checks.resource.base_resource_check i...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py b/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py\n--- a/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py\n+++ b/checkov/terraform/checks/resource/gcp/GKEBasicAuth.py\n@@ -1,5 +1,5 @@\n-from checkov.terraform.checks.resource....
1,268
326
gh_patches_debug_35697
rasdani/github-patches
git_diff
bridgecrewio__checkov-2501
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CKV_AWS_103 - Mentioned Checkov Checks producing an Exception, when the Listener protocol is HTTP (ALB). Background of the Issue : We have been using mentioned Checkov inbuilt checks/policy ID (CKV_AWS_1...
diff --git a/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py b/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py --- a/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py +++ b/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py @@ -1,14 +1,16 @@ +from typing import Dict, L...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py b/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py\n--- a/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py\n+++ b/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py\n@@ -1,14 +1,16 @@\n+from ...
1,164
477
gh_patches_debug_612
rasdani/github-patches
git_diff
pex-tool__pex-1502
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.53 On the docket: + [x] pex stops interpreter search if even one intepreter fails to identify itself #1494 + [x] Add support for setting custom venv prompts. #1499 + [x] How to know whether we ...
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.52" +__version__ = "2.1.53"
{"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.52\"\n+__version__ = \"2.1.53\"\n", "...
387
96
gh_patches_debug_25640
rasdani/github-patches
git_diff
pytorch__ignite-410
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug in recursive attach of MetricsLambda As a result of #385, the recursive attach of MetricsLambda is not working as intended. The code below throws this error: `NotComputableError: Accuracy must have at...
diff --git a/ignite/metrics/metrics_lambda.py b/ignite/metrics/metrics_lambda.py --- a/ignite/metrics/metrics_lambda.py +++ b/ignite/metrics/metrics_lambda.py @@ -53,12 +53,18 @@ materialized = [i.compute() if isinstance(i, Metric) else i for i in self.args] return self.function(*materialized) - ...
{"golden_diff": "diff --git a/ignite/metrics/metrics_lambda.py b/ignite/metrics/metrics_lambda.py\n--- a/ignite/metrics/metrics_lambda.py\n+++ b/ignite/metrics/metrics_lambda.py\n@@ -53,12 +53,18 @@\n materialized = [i.compute() if isinstance(i, Metric) else i for i in self.args]\n return self.function(...
1,227
295
gh_patches_debug_55590
rasdani/github-patches
git_diff
wagtail__wagtail-6871
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Upstream change in django-treebeard 4.5 requires a new wagtail core migration Default MP_Node depth has changed to 1. https://github.com/django-treebeard/django-treebeard/commit/454be8f29ac2b4b4fbe6512357b...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ "Django>=2.2,<3.2", "django-modelcluster>=5.1,<6.0", "django-taggit>=1.0,<2.0", - "django-treebeard>=4.2.0,<4.5", + "django-treebeard>=4.2.0,<5.0,!=4.5", "djangorestframework>=3.11.1,<4.0", "django-filter>=2....
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -23,7 +23,7 @@\n \"Django>=2.2,<3.2\",\n \"django-modelcluster>=5.1,<6.0\",\n \"django-taggit>=1.0,<2.0\",\n- \"django-treebeard>=4.2.0,<4.5\",\n+ \"django-treebeard>=4.2.0,<5.0,!=4.5\",\n \"djangorestframework>=...
1,931
162
gh_patches_debug_3602
rasdani/github-patches
git_diff
NVIDIA__apex-184
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Failing optim_wrapper due to missing Scaler argument When creating an optimizer and wrapping it via ``amp_handle.wrap_optimizer(optim)``, the handle [`calls the OptimWrapper`](https://github.com/NVIDIA/apex/b...
diff --git a/apex/amp/opt.py b/apex/amp/opt.py --- a/apex/amp/opt.py +++ b/apex/amp/opt.py @@ -13,7 +13,7 @@ self._num_loss = num_loss self._loss_idx = 0 self._skip_next = [False] * num_loss - self._loss_scaler = [LossScaler() for _ in range(num_loss)] + self._loss_scaler = [Los...
{"golden_diff": "diff --git a/apex/amp/opt.py b/apex/amp/opt.py\n--- a/apex/amp/opt.py\n+++ b/apex/amp/opt.py\n@@ -13,7 +13,7 @@\n self._num_loss = num_loss\n self._loss_idx = 0\n self._skip_next = [False] * num_loss\n- self._loss_scaler = [LossScaler() for _ in range(num_loss)]\n+ ...
1,393
135
gh_patches_debug_16422
rasdani/github-patches
git_diff
qtile__qtile-4133
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `ThermalSensor` doesn't respect `foreground` in `widget_defaults` ### The issue: (reported on Discord/IRC) ThermalSensor widget doesn't respect foreground colour in widget defaults. This is because the fo...
diff --git a/libqtile/widget/sensors.py b/libqtile/widget/sensors.py --- a/libqtile/widget/sensors.py +++ b/libqtile/widget/sensors.py @@ -67,7 +67,6 @@ base.InLoopPollText.__init__(self, **config) self.add_defaults(ThermalSensor.defaults) temp_values = self.get_temp_sensors() - self.f...
{"golden_diff": "diff --git a/libqtile/widget/sensors.py b/libqtile/widget/sensors.py\n--- a/libqtile/widget/sensors.py\n+++ b/libqtile/widget/sensors.py\n@@ -67,7 +67,6 @@\n base.InLoopPollText.__init__(self, **config)\n self.add_defaults(ThermalSensor.defaults)\n temp_values = self.get_temp_se...
1,665
190