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_41742
rasdani/github-patches
git_diff
ephios-dev__ephios-597
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove CustomMultipleChoicePreference As of https://github.com/agateblue/django-dynamic-preferences/pull/235 we can drop our own fix of the MultiplChoicePreference class (as soon as this is part of a release)...
diff --git a/ephios/core/dynamic_preferences_registry.py b/ephios/core/dynamic_preferences_registry.py --- a/ephios/core/dynamic_preferences_registry.py +++ b/ephios/core/dynamic_preferences_registry.py @@ -7,7 +7,11 @@ PerInstancePreferenceRegistry, global_preferences_registry, ) -from dynamic_preferences.t...
{"golden_diff": "diff --git a/ephios/core/dynamic_preferences_registry.py b/ephios/core/dynamic_preferences_registry.py\n--- a/ephios/core/dynamic_preferences_registry.py\n+++ b/ephios/core/dynamic_preferences_registry.py\n@@ -7,7 +7,11 @@\n PerInstancePreferenceRegistry,\n global_preferences_registry,\n )\n-fr...
1,574
652
gh_patches_debug_34936
rasdani/github-patches
git_diff
pytorch__ignite-385
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve MetricLambda implementation User can get the following output in the `state.metrics`: ``` {'accuracy': 0.37127896829244644, 'error': 0.6287210317075536, 'error[0]': -0.6287210317075536, 'error...
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 @@ -1,4 +1,5 @@ from ignite.metrics.metric import Metric +from ignite.engine import Events class MetricsLambda(Metric): @@ -12,20 +13,25 @@ resetted. ...
{"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@@ -1,4 +1,5 @@\n from ignite.metrics.metric import Metric\n+from ignite.engine import Events\n \n \n class MetricsLambda(Metric):\n@@ -12,20...
1,225
595
gh_patches_debug_4702
rasdani/github-patches
git_diff
coala__coala-bears-1986
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Upgrade memento_client to 0.6.1 Currently `memento_client` in our repo is still at version 0.5.3 which still contains bugs. Upgrading to `0.6.1` would fix many bugs that are found in `0.5.3` --- END ISSUE --...
diff --git a/bears/general/MementoBear.py b/bears/general/MementoBear.py --- a/bears/general/MementoBear.py +++ b/bears/general/MementoBear.py @@ -14,7 +14,7 @@ class MementoBear(LocalBear): DEFAULT_TIMEOUT = 15 LANGUAGES = {'All'} - REQUIREMENTS = {PipRequirement('memento_client', '0.5.3')} + REQUIREM...
{"golden_diff": "diff --git a/bears/general/MementoBear.py b/bears/general/MementoBear.py\n--- a/bears/general/MementoBear.py\n+++ b/bears/general/MementoBear.py\n@@ -14,7 +14,7 @@\n class MementoBear(LocalBear):\n DEFAULT_TIMEOUT = 15\n LANGUAGES = {'All'}\n- REQUIREMENTS = {PipRequirement('memento_client',...
1,298
152
gh_patches_debug_8542
rasdani/github-patches
git_diff
bokeh__bokeh-9203
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [FEATURE] Print full stacktrace on error See discussion on [discussion forum](https://discourse.bokeh.org/t/debugging-recommendations/3934) **Is your feature request related to a problem? Please describe.*...
diff --git a/bokeh/server/protocol_handler.py b/bokeh/server/protocol_handler.py --- a/bokeh/server/protocol_handler.py +++ b/bokeh/server/protocol_handler.py @@ -99,8 +99,8 @@ try: work = yield handler(message, connection) except Exception as e: - log.error("error handling mes...
{"golden_diff": "diff --git a/bokeh/server/protocol_handler.py b/bokeh/server/protocol_handler.py\n--- a/bokeh/server/protocol_handler.py\n+++ b/bokeh/server/protocol_handler.py\n@@ -99,8 +99,8 @@\n try:\n work = yield handler(message, connection)\n except Exception as e:\n- log.e...
1,567
163
gh_patches_debug_20036
rasdani/github-patches
git_diff
dotkom__onlineweb4-2372
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unexpected form parameter when creating new poster As reported by sentry: ``` Internal Server Error: /admin/posters/poster/ FieldError at /admin/posters/poster/ Cannot resolve keyword 'category' into field...
diff --git a/apps/posters/admin.py b/apps/posters/admin.py --- a/apps/posters/admin.py +++ b/apps/posters/admin.py @@ -2,9 +2,10 @@ from django.utils.translation import ugettext as _ from reversion.admin import VersionAdmin -from apps.posters.models import Poster +from .models import Poster +@admin.register(Pos...
{"golden_diff": "diff --git a/apps/posters/admin.py b/apps/posters/admin.py\n--- a/apps/posters/admin.py\n+++ b/apps/posters/admin.py\n@@ -2,9 +2,10 @@\n from django.utils.translation import ugettext as _\n from reversion.admin import VersionAdmin\n \n-from apps.posters.models import Poster\n+from .models import Poster...
587
253
gh_patches_debug_12106
rasdani/github-patches
git_diff
apache__airflow-24142
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Migrate MySQL example DAGs to new design There is a new design of system tests that was introduced by the [AIP-47](https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-47+New+design+of+Airflow+System+Tests...
diff --git a/airflow/providers/mysql/example_dags/__init__.py b/airflow/providers/mysql/example_dags/__init__.py deleted file mode 100644 --- a/airflow/providers/mysql/example_dags/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license ...
{"golden_diff": "diff --git a/airflow/providers/mysql/example_dags/__init__.py b/airflow/providers/mysql/example_dags/__init__.py\ndeleted file mode 100644\n--- a/airflow/providers/mysql/example_dags/__init__.py\n+++ /dev/null\n@@ -1,17 +0,0 @@\n-#\n-# Licensed to the Apache Software Foundation (ASF) under one\n-# or m...
605
264
gh_patches_debug_21299
rasdani/github-patches
git_diff
Lightning-AI__pytorch-lightning-349
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pass experiment tags to MLFlowLogger **Is your feature request related to a problem? Please describe.** When using MLFlowLogger, I'm unable to easily set experiment tags, like username or run name. **Desc...
diff --git a/pytorch_lightning/logging/mlflow_logger.py b/pytorch_lightning/logging/mlflow_logger.py --- a/pytorch_lightning/logging/mlflow_logger.py +++ b/pytorch_lightning/logging/mlflow_logger.py @@ -9,11 +9,12 @@ class MLFlowLogger(LightningLoggerBase): - def __init__(self, experiment_name, tracking_uri=Non...
{"golden_diff": "diff --git a/pytorch_lightning/logging/mlflow_logger.py b/pytorch_lightning/logging/mlflow_logger.py\n--- a/pytorch_lightning/logging/mlflow_logger.py\n+++ b/pytorch_lightning/logging/mlflow_logger.py\n@@ -9,11 +9,12 @@\n \n \n class MLFlowLogger(LightningLoggerBase):\n- def __init__(self, experimen...
898
246
gh_patches_debug_13962
rasdani/github-patches
git_diff
conan-io__conan-center-index-5416
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [package] all: "Access is denied" in os.rename() on Windows ### Package and Environment Details (include every applicable attribute) * Package Name/Version: **almost all packages affected** * Operating ...
diff --git a/recipes/zulu-openjdk/all/conanfile.py b/recipes/zulu-openjdk/all/conanfile.py --- a/recipes/zulu-openjdk/all/conanfile.py +++ b/recipes/zulu-openjdk/all/conanfile.py @@ -28,10 +28,8 @@ raise ConanInvalidConfiguration("Unsupported os. This package currently only support Linux/Macos/Windows") ...
{"golden_diff": "diff --git a/recipes/zulu-openjdk/all/conanfile.py b/recipes/zulu-openjdk/all/conanfile.py\n--- a/recipes/zulu-openjdk/all/conanfile.py\n+++ b/recipes/zulu-openjdk/all/conanfile.py\n@@ -28,10 +28,8 @@\n raise ConanInvalidConfiguration(\"Unsupported os. This package currently only support Li...
1,466
227
gh_patches_debug_5474
rasdani/github-patches
git_diff
scrapy__scrapy-4646
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow run pyw scripts scrapy/commands/runspider.py check for Python script source but it fails to allow .pyw files. Check at row 14 is: ` if fext != '.py':` but it should be: ` if fext != '.py' and ...
diff --git a/scrapy/commands/runspider.py b/scrapy/commands/runspider.py --- a/scrapy/commands/runspider.py +++ b/scrapy/commands/runspider.py @@ -11,7 +11,7 @@ abspath = os.path.abspath(filepath) dirname, file = os.path.split(abspath) fname, fext = os.path.splitext(file) - if fext != '.py': + if f...
{"golden_diff": "diff --git a/scrapy/commands/runspider.py b/scrapy/commands/runspider.py\n--- a/scrapy/commands/runspider.py\n+++ b/scrapy/commands/runspider.py\n@@ -11,7 +11,7 @@\n abspath = os.path.abspath(filepath)\n dirname, file = os.path.split(abspath)\n fname, fext = os.path.splitext(file)\n- if ...
852
140
gh_patches_debug_39710
rasdani/github-patches
git_diff
wright-group__WrightTools-339
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [before h5] join takes set of points along each axis currently join looks at each axis and tries to guess what the best evenly spaced points are moving forward, join will simply take the set of all points ...
diff --git a/WrightTools/data/_join.py b/WrightTools/data/_join.py --- a/WrightTools/data/_join.py +++ b/WrightTools/data/_join.py @@ -11,8 +11,10 @@ # --- define -------------------------------------------------------------------------------------- + __all__ = ['join'] + # --- functions ----------------------...
{"golden_diff": "diff --git a/WrightTools/data/_join.py b/WrightTools/data/_join.py\n--- a/WrightTools/data/_join.py\n+++ b/WrightTools/data/_join.py\n@@ -11,8 +11,10 @@\n \n # --- define --------------------------------------------------------------------------------------\n \n+\n __all__ = ['join']\n \n+\n # --- func...
1,937
677
gh_patches_debug_39235
rasdani/github-patches
git_diff
ResonantGeoData__ResonantGeoData-648
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Python client issues - trailing `/` on `api_url` causes failure - `create_rgd_client` silently failing if `api_url` is bad @mvandenburgh, would you please look into these --- END ISSUE --- Below are som...
diff --git a/django-rgd/client/rgd_client/client.py b/django-rgd/client/rgd_client/client.py --- a/django-rgd/client/rgd_client/client.py +++ b/django-rgd/client/rgd_client/client.py @@ -74,16 +74,16 @@ This function checks for an environment variable named RGD_API_TOKEN and returns it if it exists. If it doe...
{"golden_diff": "diff --git a/django-rgd/client/rgd_client/client.py b/django-rgd/client/rgd_client/client.py\n--- a/django-rgd/client/rgd_client/client.py\n+++ b/django-rgd/client/rgd_client/client.py\n@@ -74,16 +74,16 @@\n This function checks for an environment variable named RGD_API_TOKEN and returns it if it e...
1,675
699
gh_patches_debug_5872
rasdani/github-patches
git_diff
gammapy__gammapy-3695
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Warning incorrectly raised by SpectrumDatasetMaker.make_exposure with use_region_center=True **Gammapy version** v0.19 **Bug description** If using `SpectrumDatasetMaker.make_exposure` with pointlike IRF...
diff --git a/gammapy/makers/spectrum.py b/gammapy/makers/spectrum.py --- a/gammapy/makers/spectrum.py +++ b/gammapy/makers/spectrum.py @@ -64,7 +64,7 @@ ) is_pointlike = exposure.meta.get("is_pointlike", False) - if is_pointlike: + if is_pointlike and self.use_region_center is False: ...
{"golden_diff": "diff --git a/gammapy/makers/spectrum.py b/gammapy/makers/spectrum.py\n--- a/gammapy/makers/spectrum.py\n+++ b/gammapy/makers/spectrum.py\n@@ -64,7 +64,7 @@\n )\n \n is_pointlike = exposure.meta.get(\"is_pointlike\", False)\n- if is_pointlike:\n+ if is_pointlike and self.us...
1,195
130
gh_patches_debug_54333
rasdani/github-patches
git_diff
keras-team__keras-11960
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Suggesting keras.utils.*_utils packages should not be part of the official API In general, all `keras.utils.*_utils.*` functions and classes that are documented on keras.io are available directly in `keras.ut...
diff --git a/keras/utils/__init__.py b/keras/utils/__init__.py --- a/keras/utils/__init__.py +++ b/keras/utils/__init__.py @@ -21,6 +21,7 @@ from .layer_utils import convert_all_kernels_in_model from .layer_utils import get_source_inputs from .layer_utils import print_summary +from .vis_utils import model_to_dot fr...
{"golden_diff": "diff --git a/keras/utils/__init__.py b/keras/utils/__init__.py\n--- a/keras/utils/__init__.py\n+++ b/keras/utils/__init__.py\n@@ -21,6 +21,7 @@\n from .layer_utils import convert_all_kernels_in_model\n from .layer_utils import get_source_inputs\n from .layer_utils import print_summary\n+from .vis_utils...
825
118
gh_patches_debug_39833
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-5832
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Shell spider doesn't return any results for Bulgaria There are around 100 Shell gas stations in Bulgaria but none of them are shown in the latest spider result. They are listed on their Bulgarian website (htt...
diff --git a/locations/storefinders/geo_me.py b/locations/storefinders/geo_me.py --- a/locations/storefinders/geo_me.py +++ b/locations/storefinders/geo_me.py @@ -1,3 +1,5 @@ +import random + from scrapy import Spider from scrapy.http import JsonRequest from scrapy.signals import spider_idle @@ -62,41 +64,42 @@ ...
{"golden_diff": "diff --git a/locations/storefinders/geo_me.py b/locations/storefinders/geo_me.py\n--- a/locations/storefinders/geo_me.py\n+++ b/locations/storefinders/geo_me.py\n@@ -1,3 +1,5 @@\n+import random\n+\n from scrapy import Spider\n from scrapy.http import JsonRequest\n from scrapy.signals import spider_idle...
1,713
694
gh_patches_debug_403
rasdani/github-patches
git_diff
liqd__a4-meinberlin-1740
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 2 link limit on nav items affects the footer, need more than 2 items --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES ...
diff --git a/meinberlin/apps/cms/models/navigation_menues.py b/meinberlin/apps/cms/models/navigation_menues.py --- a/meinberlin/apps/cms/models/navigation_menues.py +++ b/meinberlin/apps/cms/models/navigation_menues.py @@ -32,7 +32,7 @@ panels = [ edit_handlers.FieldPanel('title'), - edit_handler...
{"golden_diff": "diff --git a/meinberlin/apps/cms/models/navigation_menues.py b/meinberlin/apps/cms/models/navigation_menues.py\n--- a/meinberlin/apps/cms/models/navigation_menues.py\n+++ b/meinberlin/apps/cms/models/navigation_menues.py\n@@ -32,7 +32,7 @@\n \n panels = [\n edit_handlers.FieldPanel('title')...
603
112
gh_patches_debug_18165
rasdani/github-patches
git_diff
Textualize__textual-4234
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Type warning with `AwaitComplete` It seems that there is a type error when it comes to awaiting `AwaitComplete`. As an example, given this code: ```python from textual.app import App from textual.widgets...
diff --git a/src/textual/await_complete.py b/src/textual/await_complete.py --- a/src/textual/await_complete.py +++ b/src/textual/await_complete.py @@ -1,7 +1,7 @@ from __future__ import annotations from asyncio import Future, gather -from typing import Any, Coroutine, Iterator, TypeVar +from typing import Any, Coro...
{"golden_diff": "diff --git a/src/textual/await_complete.py b/src/textual/await_complete.py\n--- a/src/textual/await_complete.py\n+++ b/src/textual/await_complete.py\n@@ -1,7 +1,7 @@\n from __future__ import annotations\n \n from asyncio import Future, gather\n-from typing import Any, Coroutine, Iterator, TypeVar\n+fro...
1,138
228
gh_patches_debug_18109
rasdani/github-patches
git_diff
azavea__raster-vision-1042
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Semantic Segmentation Scenes w/ 0 Chips Fail Semantic segmentation scenes with zero chips cause raster-vision to halt. This can be an issue when using finely-cropped scenes and filtering by nodata. --- END ...
diff --git a/rastervision_core/rastervision/core/rv_pipeline/semantic_segmentation.py b/rastervision_core/rastervision/core/rv_pipeline/semantic_segmentation.py --- a/rastervision_core/rastervision/core/rv_pipeline/semantic_segmentation.py +++ b/rastervision_core/rastervision/core/rv_pipeline/semantic_segmentation.py @...
{"golden_diff": "diff --git a/rastervision_core/rastervision/core/rv_pipeline/semantic_segmentation.py b/rastervision_core/rastervision/core/rv_pipeline/semantic_segmentation.py\n--- a/rastervision_core/rastervision/core/rv_pipeline/semantic_segmentation.py\n+++ b/rastervision_core/rastervision/core/rv_pipeline/semanti...
1,963
306
gh_patches_debug_33799
rasdani/github-patches
git_diff
lhotse-speech__lhotse-1323
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [shar] cut can't load feature when use shards = train_cuts.to_shar(data_dir, fields={"features": "lilcom"}, shard_size=2000, num_jobs=20) to make shar packages ; one cut like: MonoCut(id='X0000013171_27...
diff --git a/lhotse/shar/utils.py b/lhotse/shar/utils.py --- a/lhotse/shar/utils.py +++ b/lhotse/shar/utils.py @@ -11,14 +11,6 @@ def to_shar_placeholder(manifest: Manifest, cut: Optional[Cut] = None) -> Manifest: if isinstance(manifest, Recording): - kwargs = ( - {} - if cut is Non...
{"golden_diff": "diff --git a/lhotse/shar/utils.py b/lhotse/shar/utils.py\n--- a/lhotse/shar/utils.py\n+++ b/lhotse/shar/utils.py\n@@ -11,14 +11,6 @@\n \n def to_shar_placeholder(manifest: Manifest, cut: Optional[Cut] = None) -> Manifest:\n if isinstance(manifest, Recording):\n- kwargs = (\n- {}\n...
1,786
474
gh_patches_debug_9722
rasdani/github-patches
git_diff
oppia__oppia-14577
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Contributor Dashboard] Unable to remove question contribution rights in admin dashboard We're seeing `InvalidInputException Schema validation for 'language_code' failed: Validation failed: is_supported_audi...
diff --git a/core/controllers/payload_validator.py b/core/controllers/payload_validator.py --- a/core/controllers/payload_validator.py +++ b/core/controllers/payload_validator.py @@ -81,9 +81,7 @@ errors = [] # Dictionary to hold normalized values of arguments after validation. normalized_values = {} - ...
{"golden_diff": "diff --git a/core/controllers/payload_validator.py b/core/controllers/payload_validator.py\n--- a/core/controllers/payload_validator.py\n+++ b/core/controllers/payload_validator.py\n@@ -81,9 +81,7 @@\n errors = []\n # Dictionary to hold normalized values of arguments after validation.\n nor...
1,933
123
gh_patches_debug_2649
rasdani/github-patches
git_diff
webkom__lego-3128
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Broken link on weekly mails The link used to unsubscribe from the mail is broken, because `frontend_url` is undefined. Probably due to the weekly mails being handled differently than all other notifications. ...
diff --git a/lego/apps/email/tasks.py b/lego/apps/email/tasks.py --- a/lego/apps/email/tasks.py +++ b/lego/apps/email/tasks.py @@ -93,6 +93,7 @@ if todays_weekly is None else todays_weekly.get_absolute_url(), "joblistings": joblistings, + "frontend_url": settings.FRONTE...
{"golden_diff": "diff --git a/lego/apps/email/tasks.py b/lego/apps/email/tasks.py\n--- a/lego/apps/email/tasks.py\n+++ b/lego/apps/email/tasks.py\n@@ -93,6 +93,7 @@\n if todays_weekly is None\n else todays_weekly.get_absolute_url(),\n \"joblistings\": joblistings,\n+ \"fro...
1,599
110
gh_patches_debug_36490
rasdani/github-patches
git_diff
DataDog__dd-agent-1339
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [ssh] Multiple instances not differentiated Any metrics sent through the ssh_check.py are not differentiated by instance. If multiple instances are running, the sftp.response_time metric will only be tagged w...
diff --git a/checks.d/ssh_check.py b/checks.d/ssh_check.py --- a/checks.d/ssh_check.py +++ b/checks.d/ssh_check.py @@ -45,6 +45,7 @@ def check(self, instance): conf = self._load_conf(instance) + tags = ["instance:{0}-{1}".format(conf.host, conf.port)] try: private_key = p...
{"golden_diff": "diff --git a/checks.d/ssh_check.py b/checks.d/ssh_check.py\n--- a/checks.d/ssh_check.py\n+++ b/checks.d/ssh_check.py\n@@ -45,6 +45,7 @@\n \n def check(self, instance):\n conf = self._load_conf(instance)\n+ tags = [\"instance:{0}-{1}\".format(conf.host, conf.port)] \n \n try:\...
1,177
528
gh_patches_debug_26905
rasdani/github-patches
git_diff
saleor__saleor-2978
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make sure all GraphQL types that accept or return a country code use an enum type Currently some types return an enum, some return a string and `VoucherInput` takes a list of strings. --- END ISSUE --- Belo...
diff --git a/saleor/graphql/shipping/types.py b/saleor/graphql/shipping/types.py --- a/saleor/graphql/shipping/types.py +++ b/saleor/graphql/shipping/types.py @@ -8,7 +8,7 @@ from ...core.weight import convert_weight, get_default_weight_unit from ...shipping import ShippingMethodType, models -from ..core.types.comm...
{"golden_diff": "diff --git a/saleor/graphql/shipping/types.py b/saleor/graphql/shipping/types.py\n--- a/saleor/graphql/shipping/types.py\n+++ b/saleor/graphql/shipping/types.py\n@@ -8,7 +8,7 @@\n \n from ...core.weight import convert_weight, get_default_weight_unit\n from ...shipping import ShippingMethodType, models\...
1,048
272
gh_patches_debug_3082
rasdani/github-patches
git_diff
Pyomo__pyomo-1385
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error with TransformationFactory('core.relax_integers') When I use `TransformationFactory('core.relax_integrality').apply_to(m)`, a warning came up. `WARNING: DEPRECATED: core.relax_integrality is deprecat...
diff --git a/pyomo/core/plugins/transform/relax_integrality.py b/pyomo/core/plugins/transform/relax_integrality.py --- a/pyomo/core/plugins/transform/relax_integrality.py +++ b/pyomo/core/plugins/transform/relax_integrality.py @@ -23,7 +23,7 @@ """ @deprecated( - "core.relax_integrality is deprecated...
{"golden_diff": "diff --git a/pyomo/core/plugins/transform/relax_integrality.py b/pyomo/core/plugins/transform/relax_integrality.py\n--- a/pyomo/core/plugins/transform/relax_integrality.py\n+++ b/pyomo/core/plugins/transform/relax_integrality.py\n@@ -23,7 +23,7 @@\n \"\"\"\n \n @deprecated(\n- \"core.rel...
823
157
gh_patches_debug_31825
rasdani/github-patches
git_diff
Pylons__pyramid-3332
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update Hello World example to align with TryPyramid.com We've updated the Hello World example on https://trypyramid.com per https://github.com/Pylons/trypyramid.com/pull/205 so we should update it on our offi...
diff --git a/docs/narr/hellotraversal.py b/docs/narr/hellotraversal.py --- a/docs/narr/hellotraversal.py +++ b/docs/narr/hellotraversal.py @@ -2,21 +2,24 @@ from pyramid.config import Configurator from pyramid.response import Response + class Resource(dict): pass + def get_root(request): return Resour...
{"golden_diff": "diff --git a/docs/narr/hellotraversal.py b/docs/narr/hellotraversal.py\n--- a/docs/narr/hellotraversal.py\n+++ b/docs/narr/hellotraversal.py\n@@ -2,21 +2,24 @@\n from pyramid.config import Configurator\n from pyramid.response import Response\n \n+\n class Resource(dict):\n pass\n \n+\n def get_root...
1,058
570
gh_patches_debug_2562
rasdani/github-patches
git_diff
saulpw__visidata-1887
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- resize-cols-input missing from Column -> Resize menu **Small description** resize-cols-input is missing from the Column -> Resize menu **Expected result** when I go to the menu under Column -> Resize, I ...
diff --git a/visidata/features/layout.py b/visidata/features/layout.py --- a/visidata/features/layout.py +++ b/visidata/features/layout.py @@ -50,4 +50,5 @@ Column > Resize > current column to max > resize-col-max Column > Resize > current column to input > resize-col-input Column > Resize > all columns ...
{"golden_diff": "diff --git a/visidata/features/layout.py b/visidata/features/layout.py\n--- a/visidata/features/layout.py\n+++ b/visidata/features/layout.py\n@@ -50,4 +50,5 @@\n Column > Resize > current column to max > resize-col-max\n Column > Resize > current column to input > resize-col-input\n Column ...
1,024
106
gh_patches_debug_17321
rasdani/github-patches
git_diff
sopel-irc__sopel-1155
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [etymology] HTML entities not decoded before output The `etymology` module does not decode HTML entities in the snippet before sending it to the channel. This results in printing snippets like this: ```` ...
diff --git a/sopel/modules/etymology.py b/sopel/modules/etymology.py --- a/sopel/modules/etymology.py +++ b/sopel/modules/etymology.py @@ -8,6 +8,14 @@ """ from __future__ import unicode_literals, absolute_import, print_function, division +try: + from html import unescape +except ImportError: + from HTMLParse...
{"golden_diff": "diff --git a/sopel/modules/etymology.py b/sopel/modules/etymology.py\n--- a/sopel/modules/etymology.py\n+++ b/sopel/modules/etymology.py\n@@ -8,6 +8,14 @@\n \"\"\"\n from __future__ import unicode_literals, absolute_import, print_function, division\n \n+try:\n+ from html import unescape\n+except Imp...
1,490
252
gh_patches_debug_3625
rasdani/github-patches
git_diff
coala__coala-1597
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- coala_delete_orig: Modify message Modify message about `Couldn't delete... <filename>` @sils1297 please suggest a better message. --- END ISSUE --- Below are some code segments, each from a relevant file....
diff --git a/coalib/coala_delete_orig.py b/coalib/coala_delete_orig.py --- a/coalib/coala_delete_orig.py +++ b/coalib/coala_delete_orig.py @@ -26,7 +26,7 @@ os.remove(ofile) except OSError as oserror: not_deleted += 1 - log_printer.warn("Couldn't delete... {}. {}".format( +...
{"golden_diff": "diff --git a/coalib/coala_delete_orig.py b/coalib/coala_delete_orig.py\n--- a/coalib/coala_delete_orig.py\n+++ b/coalib/coala_delete_orig.py\n@@ -26,7 +26,7 @@\n os.remove(ofile)\n except OSError as oserror:\n not_deleted += 1\n- log_printer.warn(\"Couldn't de...
637
122
gh_patches_debug_26164
rasdani/github-patches
git_diff
spack__spack-19604
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Installation issue: ucx I'm trying to build openmpi with ucx but on compiling ucx I get build errors with `error: implicit declaration of function`. ```console 637 CC libuct_rdmacm_la-rdma...
diff --git a/var/spack/repos/builtin/packages/rdma-core/package.py b/var/spack/repos/builtin/packages/rdma-core/package.py --- a/var/spack/repos/builtin/packages/rdma-core/package.py +++ b/var/spack/repos/builtin/packages/rdma-core/package.py @@ -12,6 +12,15 @@ homepage = "https://github.com/linux-rdma/rdma-core" ...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/rdma-core/package.py b/var/spack/repos/builtin/packages/rdma-core/package.py\n--- a/var/spack/repos/builtin/packages/rdma-core/package.py\n+++ b/var/spack/repos/builtin/packages/rdma-core/package.py\n@@ -12,6 +12,15 @@\n homepage = \"https://github.com/...
1,636
989
gh_patches_debug_6708
rasdani/github-patches
git_diff
cloud-custodian__cloud-custodian-554
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Security Group filter "default-vpc" does not function correctly. Using the following policy: ``` policies: - name: default-sg-allows-all-traffic description: | Find whether the default security g...
diff --git a/c7n/filters/vpc.py b/c7n/filters/vpc.py --- a/c7n/filters/vpc.py +++ b/c7n/filters/vpc.py @@ -52,8 +52,6 @@ vpcs = [v['VpcId'] for v in client.describe_vpcs(VpcIds=[vpc_id])['Vpcs'] if v['IsDefault']] - if not vpcs: - self.def...
{"golden_diff": "diff --git a/c7n/filters/vpc.py b/c7n/filters/vpc.py\n--- a/c7n/filters/vpc.py\n+++ b/c7n/filters/vpc.py\n@@ -52,8 +52,6 @@\n vpcs = [v['VpcId'] for v\n in client.describe_vpcs(VpcIds=[vpc_id])['Vpcs']\n if v['IsDefault']]\n- if not vpcs:\n...
940
145
gh_patches_debug_34822
rasdani/github-patches
git_diff
angr__angr-840
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ClaripyZeroDivisionError without actual zero When stepping through a BB with symbolic registers, division by symbolic register causes state.step() to fail with ClaripyZeroDivisionError. Example binary [M...
diff --git a/angr/concretization_strategies/__init__.py b/angr/concretization_strategies/__init__.py --- a/angr/concretization_strategies/__init__.py +++ b/angr/concretization_strategies/__init__.py @@ -1,3 +1,5 @@ +import claripy + class SimConcretizationStrategy(object): """ Concretization strategies contr...
{"golden_diff": "diff --git a/angr/concretization_strategies/__init__.py b/angr/concretization_strategies/__init__.py\n--- a/angr/concretization_strategies/__init__.py\n+++ b/angr/concretization_strategies/__init__.py\n@@ -1,3 +1,5 @@\n+import claripy\n+\n class SimConcretizationStrategy(object):\n \"\"\"\n Con...
1,410
572
gh_patches_debug_20468
rasdani/github-patches
git_diff
buildbot__buildbot-6056
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Can't start Buildbot master Ansible updated buildbot.buildbot.net to the latest commit (81d1179e5a) and it quickly gets this in `twisted.log` ``` 2021-05-15 02:23:55+0000 [-] while starting BuildMaster ...
diff --git a/master/buildbot/worker/protocols/null.py b/master/buildbot/worker/protocols/null.py --- a/master/buildbot/worker/protocols/null.py +++ b/master/buildbot/worker/protocols/null.py @@ -18,6 +18,7 @@ from twisted.python import log from buildbot.util.eventual import fireEventually +from buildbot.warnings im...
{"golden_diff": "diff --git a/master/buildbot/worker/protocols/null.py b/master/buildbot/worker/protocols/null.py\n--- a/master/buildbot/worker/protocols/null.py\n+++ b/master/buildbot/worker/protocols/null.py\n@@ -18,6 +18,7 @@\n from twisted.python import log\n \n from buildbot.util.eventual import fireEventually\n+f...
1,874
265
gh_patches_debug_32386
rasdani/github-patches
git_diff
Cloud-CV__EvalAI-1683
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add a feature to show the authentication token to the user on the MyProfile Page **Deliverables:** - [x] Add API endpoint to fetch or create (if doesn't exists) the token from database. - [x] Add Fronte...
diff --git a/apps/accounts/urls.py b/apps/accounts/urls.py --- a/apps/accounts/urls.py +++ b/apps/accounts/urls.py @@ -5,5 +5,6 @@ urlpatterns = [ url(r'^user/disable$', views.disable_user, name='disable_user'), + url(r'^user/get_auth_token$', views.get_auth_token, name='get_auth_token'), ] diff --git a/a...
{"golden_diff": "diff --git a/apps/accounts/urls.py b/apps/accounts/urls.py\n--- a/apps/accounts/urls.py\n+++ b/apps/accounts/urls.py\n@@ -5,5 +5,6 @@\n urlpatterns = [\n \n url(r'^user/disable$', views.disable_user, name='disable_user'),\n+ url(r'^user/get_auth_token$', views.get_auth_token, name='get_auth_toke...
541
453
gh_patches_debug_13620
rasdani/github-patches
git_diff
python-poetry__poetry-5880
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Poetry inheriting issue for git-client on github.com - [X] I am on the [latest](https://github.com/python-poetry/poetry/releases/latest) Poetry version. - [X] I have searched the [issues](https://github.com...
diff --git a/src/poetry/vcs/git/system.py b/src/poetry/vcs/git/system.py --- a/src/poetry/vcs/git/system.py +++ b/src/poetry/vcs/git/system.py @@ -1,5 +1,6 @@ from __future__ import annotations +import os import subprocess from typing import TYPE_CHECKING @@ -49,8 +50,14 @@ ) + args git_c...
{"golden_diff": "diff --git a/src/poetry/vcs/git/system.py b/src/poetry/vcs/git/system.py\n--- a/src/poetry/vcs/git/system.py\n+++ b/src/poetry/vcs/git/system.py\n@@ -1,5 +1,6 @@\n from __future__ import annotations\n \n+import os\n import subprocess\n \n from typing import TYPE_CHECKING\n@@ -49,8 +50,14 @@\n ...
1,328
189
gh_patches_debug_11799
rasdani/github-patches
git_diff
avocado-framework__avocado-4154
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] Avocado crash with TypeError With the following change on the time-sensitive job Avocado crashes: ```python diff --git a/selftests/pre_release/jobs/timesensitive.py b/selftests/pre_release/jobs/time...
diff --git a/selftests/pre_release/jobs/timesensitive.py b/selftests/pre_release/jobs/timesensitive.py --- a/selftests/pre_release/jobs/timesensitive.py +++ b/selftests/pre_release/jobs/timesensitive.py @@ -14,11 +14,12 @@ 'run.references': [os.path.join(ROOT_DIR, 'selftests', 'unit'), os.p...
{"golden_diff": "diff --git a/selftests/pre_release/jobs/timesensitive.py b/selftests/pre_release/jobs/timesensitive.py\n--- a/selftests/pre_release/jobs/timesensitive.py\n+++ b/selftests/pre_release/jobs/timesensitive.py\n@@ -14,11 +14,12 @@\n 'run.references': [os.path.join(ROOT_DIR, 'selftests', 'unit'),\n ...
1,533
198
gh_patches_debug_50798
rasdani/github-patches
git_diff
googleapis__google-cloud-python-3056
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- RTD build is broken Can look at this, leaving as note as reminder. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES ---...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -52,7 +52,7 @@ REQUIREMENTS = [ 'google-cloud-bigquery >= 0.22.1, < 0.23dev', 'google-cloud-bigtable >= 0.22.0, < 0.23dev', - 'google-cloud-core >= 0.22.1, < 0.23dev', + 'google-cloud-core >= 0.23.0, < 0.24dev', 'google-cloud-datast...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -52,7 +52,7 @@\n REQUIREMENTS = [\n 'google-cloud-bigquery >= 0.22.1, < 0.23dev',\n 'google-cloud-bigtable >= 0.22.0, < 0.23dev',\n- 'google-cloud-core >= 0.22.1, < 0.23dev',\n+ 'google-cloud-core >= 0.23.0, < 0.24dev',\...
1,224
198
gh_patches_debug_20462
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-6763
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- @spider=western_union in Poland list `amenity=money_transfer` POIs not actually existing as separate objects very similar to #5881 It would be better to drop main tag over showing it like this. And in this...
diff --git a/locations/spiders/western_union.py b/locations/spiders/western_union.py --- a/locations/spiders/western_union.py +++ b/locations/spiders/western_union.py @@ -4,7 +4,6 @@ from scrapy.downloadermiddlewares.retry import get_retry_request from scrapy.http import JsonRequest -from locations.categories impor...
{"golden_diff": "diff --git a/locations/spiders/western_union.py b/locations/spiders/western_union.py\n--- a/locations/spiders/western_union.py\n+++ b/locations/spiders/western_union.py\n@@ -4,7 +4,6 @@\n from scrapy.downloadermiddlewares.retry import get_retry_request\n from scrapy.http import JsonRequest\n \n-from lo...
1,733
256
gh_patches_debug_15839
rasdani/github-patches
git_diff
PaddlePaddle__models-3191
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PaddleRL policy_gradient Typo default_main_program误写为defaul_main_program all_act_prob 未被声明为成员变量 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may con...
diff --git a/legacy/PaddleRL/policy_gradient/brain.py b/legacy/PaddleRL/policy_gradient/brain.py --- a/legacy/PaddleRL/policy_gradient/brain.py +++ b/legacy/PaddleRL/policy_gradient/brain.py @@ -31,10 +31,10 @@ # fc1 fc1 = fluid.layers.fc(input=obs, size=10, act="tanh") # tanh activation # f...
{"golden_diff": "diff --git a/legacy/PaddleRL/policy_gradient/brain.py b/legacy/PaddleRL/policy_gradient/brain.py\n--- a/legacy/PaddleRL/policy_gradient/brain.py\n+++ b/legacy/PaddleRL/policy_gradient/brain.py\n@@ -31,10 +31,10 @@\n # fc1\n fc1 = fluid.layers.fc(input=obs, size=10, act=\"tanh\") # tanh...
1,308
216
gh_patches_debug_4887
rasdani/github-patches
git_diff
pulp__pulpcore-265
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update CI files for branch 3.39 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `pulpcore/app/serializers/t...
diff --git a/pulpcore/app/serializers/task.py b/pulpcore/app/serializers/task.py --- a/pulpcore/app/serializers/task.py +++ b/pulpcore/app/serializers/task.py @@ -58,7 +58,8 @@ "task."), read_only=True ) - error = serializers.JSONField( + error = serializers.DictField( + ...
{"golden_diff": "diff --git a/pulpcore/app/serializers/task.py b/pulpcore/app/serializers/task.py\n--- a/pulpcore/app/serializers/task.py\n+++ b/pulpcore/app/serializers/task.py\n@@ -58,7 +58,8 @@\n \"task.\"),\n read_only=True\n )\n- error = serializers.JSONField(\n+ error = seria...
1,707
123
gh_patches_debug_20726
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-274
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- E3001 Missing properties raised as an error when they're not required *cfn-lint version: 0.4.2* *Description of issue.* An error about missing properties is not always useful. There are resources which ...
diff --git a/src/cfnlint/rules/resources/Configuration.py b/src/cfnlint/rules/resources/Configuration.py --- a/src/cfnlint/rules/resources/Configuration.py +++ b/src/cfnlint/rules/resources/Configuration.py @@ -111,10 +111,13 @@ if property_spec.get('Required', False): ...
{"golden_diff": "diff --git a/src/cfnlint/rules/resources/Configuration.py b/src/cfnlint/rules/resources/Configuration.py\n--- a/src/cfnlint/rules/resources/Configuration.py\n+++ b/src/cfnlint/rules/resources/Configuration.py\n@@ -111,10 +111,13 @@\n if property_spec.get('Required', Fals...
1,738
216
gh_patches_debug_633
rasdani/github-patches
git_diff
pex-tool__pex-1947
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.110 On the docket: + [x] PEX runtime sys.path scrubbing is imperfect. #1944 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bug...
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.109" +__version__ = "2.1.110"
{"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.109\"\n+__version__ = \"2.1.110\"\n",...
343
98
gh_patches_debug_27478
rasdani/github-patches
git_diff
ckan__ckan-5604
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Download options in Datatables_view do not work **CKAN version** 2.9 **Describe the bug** Using datatables_view as a default resource view, which works well. Apart from the nicer UI and pagination, one ...
diff --git a/ckanext/datatablesview/blueprint.py b/ckanext/datatablesview/blueprint.py --- a/ckanext/datatablesview/blueprint.py +++ b/ckanext/datatablesview/blueprint.py @@ -100,7 +100,7 @@ def filtered_download(resource_view_id): - params = json.loads(request.params[u'params']) + params = json.loads(reques...
{"golden_diff": "diff --git a/ckanext/datatablesview/blueprint.py b/ckanext/datatablesview/blueprint.py\n--- a/ckanext/datatablesview/blueprint.py\n+++ b/ckanext/datatablesview/blueprint.py\n@@ -100,7 +100,7 @@\n \n \n def filtered_download(resource_view_id):\n- params = json.loads(request.params[u'params'])\n+ p...
2,039
327
gh_patches_debug_34522
rasdani/github-patches
git_diff
mkdocs__mkdocs-402
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Not all headers are automatically linked I have an API reference site for a project that's hosted on ReadTheDocs using mkdocs as the documentation engine. Headers that contain things like `<code>` blocks aren...
diff --git a/mkdocs/compat.py b/mkdocs/compat.py --- a/mkdocs/compat.py +++ b/mkdocs/compat.py @@ -13,6 +13,7 @@ httpserver = httpserver import SocketServer socketserver = SocketServer + from HTMLParser import HTMLParser import itertools zip = itertools.izip @@ -30,6 +31,7 @@ httpserv...
{"golden_diff": "diff --git a/mkdocs/compat.py b/mkdocs/compat.py\n--- a/mkdocs/compat.py\n+++ b/mkdocs/compat.py\n@@ -13,6 +13,7 @@\n httpserver = httpserver\n import SocketServer\n socketserver = SocketServer\n+ from HTMLParser import HTMLParser\n \n import itertools\n zip = itertools.izip\n@@ ...
1,532
558
gh_patches_debug_15267
rasdani/github-patches
git_diff
networkx__networkx-2996
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- metric_closure will throw KeyError with unconnected graph Suggest checking connectedness with `nx.is_connected()` on entry to `metric_closure()` and throwing a more informative error if not. --- END ISSUE --...
diff --git a/networkx/algorithms/approximation/steinertree.py b/networkx/algorithms/approximation/steinertree.py --- a/networkx/algorithms/approximation/steinertree.py +++ b/networkx/algorithms/approximation/steinertree.py @@ -25,11 +25,22 @@ """ M = nx.Graph() - seen = set() Gnodes = set(G) - fo...
{"golden_diff": "diff --git a/networkx/algorithms/approximation/steinertree.py b/networkx/algorithms/approximation/steinertree.py\n--- a/networkx/algorithms/approximation/steinertree.py\n+++ b/networkx/algorithms/approximation/steinertree.py\n@@ -25,11 +25,22 @@\n \"\"\"\n M = nx.Graph()\n \n- seen = set()\n...
1,040
313
gh_patches_debug_2370
rasdani/github-patches
git_diff
getredash__redash-1110
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Mixed view_only in multiple data_source_groups blocks query executions A user belonging to multiple groups that have access to one data source but with different access levels can not execute queries on that ...
diff --git a/redash/permissions.py b/redash/permissions.py --- a/redash/permissions.py +++ b/redash/permissions.py @@ -17,7 +17,8 @@ return False required_level = 1 if need_view_only else 2 - group_level = 1 if any(flatten([object_groups[group] for group in matching_groups])) else 2 + + group_leve...
{"golden_diff": "diff --git a/redash/permissions.py b/redash/permissions.py\n--- a/redash/permissions.py\n+++ b/redash/permissions.py\n@@ -17,7 +17,8 @@\n return False\n \n required_level = 1 if need_view_only else 2\n- group_level = 1 if any(flatten([object_groups[group] for group in matching_groups])) ...
1,018
123
gh_patches_debug_19237
rasdani/github-patches
git_diff
bokeh__bokeh-8048
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Customize warning formatter I'm trying out the imminent bokeh release with the dask dashboard. I get hundreds of lines like the following: ```python /home/mrocklin/Software/anaconda/lib/python3.6/site-pa...
diff --git a/bokeh/__init__.py b/bokeh/__init__.py --- a/bokeh/__init__.py +++ b/bokeh/__init__.py @@ -60,10 +60,21 @@ from .util import logconfig del logconfig -# Configure warnings to always show, despite Python's active efforts to hide them from users. +# Configure warnings to always show nice mssages, despite P...
{"golden_diff": "diff --git a/bokeh/__init__.py b/bokeh/__init__.py\n--- a/bokeh/__init__.py\n+++ b/bokeh/__init__.py\n@@ -60,10 +60,21 @@\n from .util import logconfig\n del logconfig\n \n-# Configure warnings to always show, despite Python's active efforts to hide them from users.\n+# Configure warnings to always sho...
1,007
284
gh_patches_debug_15703
rasdani/github-patches
git_diff
zigpy__zha-device-handlers-278
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Keen Home Smart Vent Models I've been having problems with the Keen Home Smart Vent Quirks and realized that there are additional models that need the DoublingPowerConfigurationCluster on them. I validated th...
diff --git a/zhaquirks/keenhome/sv02612mp13.py b/zhaquirks/keenhome/sv02612mp13.py --- a/zhaquirks/keenhome/sv02612mp13.py +++ b/zhaquirks/keenhome/sv02612mp13.py @@ -37,7 +37,18 @@ # input_clusters=[ # 0, 1, 3, 4, 5, 6, 8, 32, 1026, 1027, 2821, 64513, 64514] # output_clusters=[25]> - ...
{"golden_diff": "diff --git a/zhaquirks/keenhome/sv02612mp13.py b/zhaquirks/keenhome/sv02612mp13.py\n--- a/zhaquirks/keenhome/sv02612mp13.py\n+++ b/zhaquirks/keenhome/sv02612mp13.py\n@@ -37,7 +37,18 @@\n # input_clusters=[\n # 0, 1, 3, 4, 5, 6, 8, 32, 1026, 1027, 2821, 64513, 64514]\n # output...
1,204
462
gh_patches_debug_5525
rasdani/github-patches
git_diff
zulip__zulip-16512
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- New line character issue when using create_user management command The create_user management command reads password from a text file created by the server admin. To run this command I tried creating this te...
diff --git a/zerver/management/commands/create_user.py b/zerver/management/commands/create_user.py --- a/zerver/management/commands/create_user.py +++ b/zerver/management/commands/create_user.py @@ -71,7 +71,7 @@ try: if options['password_file'] is not None: with open(options['pas...
{"golden_diff": "diff --git a/zerver/management/commands/create_user.py b/zerver/management/commands/create_user.py\n--- a/zerver/management/commands/create_user.py\n+++ b/zerver/management/commands/create_user.py\n@@ -71,7 +71,7 @@\n try:\n if options['password_file'] is not None:\n ...
1,316
121
gh_patches_debug_37361
rasdani/github-patches
git_diff
mindsdb__lightwood-1204
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve "Unit" mixer documentation We don't have a docstring for this mixer. The challenge here is to eloquently describe what this mixer does (hint: it can be used when encoders themselves are the models, e....
diff --git a/lightwood/mixer/base.py b/lightwood/mixer/base.py --- a/lightwood/mixer/base.py +++ b/lightwood/mixer/base.py @@ -30,7 +30,7 @@ def __init__(self, stop_after: float): """ - :param stop_after: Time budget to train this mixer. + :param stop_after: Time budget (in seconds) to tra...
{"golden_diff": "diff --git a/lightwood/mixer/base.py b/lightwood/mixer/base.py\n--- a/lightwood/mixer/base.py\n+++ b/lightwood/mixer/base.py\n@@ -30,7 +30,7 @@\n \n def __init__(self, stop_after: float):\n \"\"\"\n- :param stop_after: Time budget to train this mixer.\n+ :param stop_after: Tim...
1,779
625
gh_patches_debug_6993
rasdani/github-patches
git_diff
modin-project__modin-3542
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `fsspec` should be explicitly stated in setup.py and env files `fsspec` package became required dependency after https://github.com/modin-project/modin/pull/3529 --- END ISSUE --- Below are some code segmen...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -60,7 +60,7 @@ url="https://github.com/modin-project/modin", long_description=long_description, long_description_content_type="text/markdown", - install_requires=["pandas==1.3.3", "packaging", "numpy>=1.16.5"], + install_requires=["p...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -60,7 +60,7 @@\n url=\"https://github.com/modin-project/modin\",\n long_description=long_description,\n long_description_content_type=\"text/markdown\",\n- install_requires=[\"pandas==1.3.3\", \"packaging\", \"numpy>=1....
1,006
149
gh_patches_debug_31195
rasdani/github-patches
git_diff
hpcaitech__ColossalAI-2695
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/colossalai/auto_parallel/tensor_shard/deprecated/op_handler/strategy_generator.py b/colossalai/auto_parallel/tensor_shard/deprecated/op_handler/strategy_generator.py --- a/colossalai/auto_parallel/tensor_shard/deprecated/op_handler/strategy_generator.py +++ b/colossalai/auto_parallel/tensor_shard/deprecate...
{"golden_diff": "diff --git a/colossalai/auto_parallel/tensor_shard/deprecated/op_handler/strategy_generator.py b/colossalai/auto_parallel/tensor_shard/deprecated/op_handler/strategy_generator.py\n--- a/colossalai/auto_parallel/tensor_shard/deprecated/op_handler/strategy_generator.py\n+++ b/colossalai/auto_parallel/ten...
683
381
gh_patches_debug_3293
rasdani/github-patches
git_diff
python-pillow__Pillow-3493
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- How to tell at run time whether libjpeg-turbo version of libjpeg is used? tl;dr: Is there some way to accomplish: `PIL.Image.libjpeg_turbo_is_enabled()`? The full story: Is there a way to tell from ...
diff --git a/src/PIL/features.py b/src/PIL/features.py --- a/src/PIL/features.py +++ b/src/PIL/features.py @@ -51,7 +51,8 @@ "webp_anim": ("PIL._webp", 'HAVE_WEBPANIM'), "webp_mux": ("PIL._webp", 'HAVE_WEBPMUX'), "transp_webp": ("PIL._webp", "HAVE_TRANSPARENCY"), - "raqm": ("PIL._imagingft", "HAVE_RAQ...
{"golden_diff": "diff --git a/src/PIL/features.py b/src/PIL/features.py\n--- a/src/PIL/features.py\n+++ b/src/PIL/features.py\n@@ -51,7 +51,8 @@\n \"webp_anim\": (\"PIL._webp\", 'HAVE_WEBPANIM'),\n \"webp_mux\": (\"PIL._webp\", 'HAVE_WEBPMUX'),\n \"transp_webp\": (\"PIL._webp\", \"HAVE_TRANSPARENCY\"),\n- ...
1,716
167
gh_patches_debug_31120
rasdani/github-patches
git_diff
streamlink__streamlink-1365
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- catch a simple bug of handling url ### Checklist - [x] This is a bug report. ### Description catch a simple bug of returning url. ### Version streamlink 0.9.0 ### Unexpected behavior for ...
diff --git a/src/streamlink/plugins/huya.py b/src/streamlink/plugins/huya.py --- a/src/streamlink/plugins/huya.py +++ b/src/streamlink/plugins/huya.py @@ -1,11 +1,10 @@ import re -from requests.adapters import HTTPAdapter - from streamlink.plugin import Plugin from streamlink.plugin.api import http, validate from...
{"golden_diff": "diff --git a/src/streamlink/plugins/huya.py b/src/streamlink/plugins/huya.py\n--- a/src/streamlink/plugins/huya.py\n+++ b/src/streamlink/plugins/huya.py\n@@ -1,11 +1,10 @@\n import re\n \n-from requests.adapters import HTTPAdapter\n-\n from streamlink.plugin import Plugin\n from streamlink.plugin.api i...
1,086
433
gh_patches_debug_4108
rasdani/github-patches
git_diff
google__timesketch-1821
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- tagger analyzer not functiong properly **Describe the bug** After upgrade TimeSketch to version: 20210602 the tagger analyzer is not functioning with custom tags **To Reproduce** Steps to reproduce the ...
diff --git a/timesketch/lib/analyzers/tagger.py b/timesketch/lib/analyzers/tagger.py --- a/timesketch/lib/analyzers/tagger.py +++ b/timesketch/lib/analyzers/tagger.py @@ -83,6 +83,7 @@ expression_string = config.get('regular_expression', '') attributes = None + expression = None if e...
{"golden_diff": "diff --git a/timesketch/lib/analyzers/tagger.py b/timesketch/lib/analyzers/tagger.py\n--- a/timesketch/lib/analyzers/tagger.py\n+++ b/timesketch/lib/analyzers/tagger.py\n@@ -83,6 +83,7 @@\n \n expression_string = config.get('regular_expression', '')\n attributes = None\n+ express...
1,763
111
gh_patches_debug_559
rasdani/github-patches
git_diff
pex-tool__pex-702
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 1.6.6 On the docket: + [x] Release more flexible pex binaries. #654 + [x] If sys.executable is not on PATH a pex will re-exec itself forever. #700 --- END ISSUE --- Below are some code segments, e...
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__ = '1.6.5' +__version__ = '1.6.6'
{"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__ = '1.6.5'\n+__version__ = '1.6.6'\n", "issue"...
361
94
gh_patches_debug_9878
rasdani/github-patches
git_diff
buildbot__buildbot-3423
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tracker for `RolesFromDomain` This is to track the implementation of `RolesFromDomain`, which implements role setting depending on the email domain of the user. --- END ISSUE --- Below are some code segment...
diff --git a/master/buildbot/www/authz/roles.py b/master/buildbot/www/authz/roles.py --- a/master/buildbot/www/authz/roles.py +++ b/master/buildbot/www/authz/roles.py @@ -61,6 +61,24 @@ return [] +class RolesFromDomain(RolesFromEmails): + + def __init__(self, **kwargs): + RolesFromBase.__init__(s...
{"golden_diff": "diff --git a/master/buildbot/www/authz/roles.py b/master/buildbot/www/authz/roles.py\n--- a/master/buildbot/www/authz/roles.py\n+++ b/master/buildbot/www/authz/roles.py\n@@ -61,6 +61,24 @@\n return []\n \n \n+class RolesFromDomain(RolesFromEmails):\n+\n+ def __init__(self, **kwargs):\n+ ...
1,070
211
gh_patches_debug_11052
rasdani/github-patches
git_diff
pyg-team__pytorch_geometric-8831
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- in utils.subgraph.py RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu) ### 🐛 Describe the bug in utils.subgraph.py edge_mask = node_mask[edge_index[0]] & no...
diff --git a/torch_geometric/transforms/largest_connected_components.py b/torch_geometric/transforms/largest_connected_components.py --- a/torch_geometric/transforms/largest_connected_components.py +++ b/torch_geometric/transforms/largest_connected_components.py @@ -47,9 +47,11 @@ return data _,...
{"golden_diff": "diff --git a/torch_geometric/transforms/largest_connected_components.py b/torch_geometric/transforms/largest_connected_components.py\n--- a/torch_geometric/transforms/largest_connected_components.py\n+++ b/torch_geometric/transforms/largest_connected_components.py\n@@ -47,9 +47,11 @@\n retu...
947
201
gh_patches_debug_15420
rasdani/github-patches
git_diff
CTPUG__wafer-474
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sponsors with multiple packages are listed for each package When a sponsor takes multiple packages (sponsorship and add-on package, for example), they are listed in the sponsor list and sponsor menu for each ...
diff --git a/wafer/sponsors/models.py b/wafer/sponsors/models.py --- a/wafer/sponsors/models.py +++ b/wafer/sponsors/models.py @@ -118,10 +118,15 @@ packages_item=_("Sponsorship packages")): """Add sponsor menu links.""" root_menu.add_menu(menu, label, items=[]) + added_to_menu = set() for sp...
{"golden_diff": "diff --git a/wafer/sponsors/models.py b/wafer/sponsors/models.py\n--- a/wafer/sponsors/models.py\n+++ b/wafer/sponsors/models.py\n@@ -118,10 +118,15 @@\n packages_item=_(\"Sponsorship packages\")):\n \"\"\"Add sponsor menu links.\"\"\"\n root_menu.add_menu(menu, label, items=[])\n+ a...
1,839
189
gh_patches_debug_1799
rasdani/github-patches
git_diff
Parsl__parsl-705
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- With TorqueProvider, submit stderr/stdout does not go to runinfo This happens on both NSCC and Blue Waters. The submit script has ``` #PBS -o /mnt/a/u/sciteam/woodard/simple-tests/runinfo/001/submit_scrip...
diff --git a/parsl/providers/torque/template.py b/parsl/providers/torque/template.py --- a/parsl/providers/torque/template.py +++ b/parsl/providers/torque/template.py @@ -3,7 +3,6 @@ #PBS -S /bin/bash #PBS -N ${jobname} #PBS -m n -#PBS -k eo #PBS -l walltime=$walltime #PBS -l nodes=${nodes_per_block}:ppn=${tasks_p...
{"golden_diff": "diff --git a/parsl/providers/torque/template.py b/parsl/providers/torque/template.py\n--- a/parsl/providers/torque/template.py\n+++ b/parsl/providers/torque/template.py\n@@ -3,7 +3,6 @@\n #PBS -S /bin/bash\n #PBS -N ${jobname}\n #PBS -m n\n-#PBS -k eo\n #PBS -l walltime=$walltime\n #PBS -l nodes=${node...
592
125
gh_patches_debug_39618
rasdani/github-patches
git_diff
Lightning-AI__torchmetrics-249
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add option to compute root_mean_squared_error ## 🚀 Feature Allow the user to choose between MSE and RMSE. ### Motivation In a physical domain the RMSE, which is essentially the mean of distances, may be...
diff --git a/torchmetrics/functional/regression/mean_squared_error.py b/torchmetrics/functional/regression/mean_squared_error.py --- a/torchmetrics/functional/regression/mean_squared_error.py +++ b/torchmetrics/functional/regression/mean_squared_error.py @@ -27,17 +27,18 @@ return sum_squared_error, n_obs -def...
{"golden_diff": "diff --git a/torchmetrics/functional/regression/mean_squared_error.py b/torchmetrics/functional/regression/mean_squared_error.py\n--- a/torchmetrics/functional/regression/mean_squared_error.py\n+++ b/torchmetrics/functional/regression/mean_squared_error.py\n@@ -27,17 +27,18 @@\n return sum_squared_...
1,847
674
gh_patches_debug_8877
rasdani/github-patches
git_diff
Mailu__Mailu-951
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Internal Error with setup Hi, Thanks for the work ! I want to try the new version with setup.mailu.io + Docker stack. However I have already this when I want to generate my compose: > Internal Server...
diff --git a/setup/server.py b/setup/server.py --- a/setup/server.py +++ b/setup/server.py @@ -90,7 +90,10 @@ def submit(): data = flask.request.form.copy() data['uid'] = str(uuid.uuid4()) - data['dns'] = str(ipaddress.IPv4Network(data['subnet'])[-2]) + try: + data['dns']...
{"golden_diff": "diff --git a/setup/server.py b/setup/server.py\n--- a/setup/server.py\n+++ b/setup/server.py\n@@ -90,7 +90,10 @@\n def submit():\n data = flask.request.form.copy()\n data['uid'] = str(uuid.uuid4())\n- data['dns'] = str(ipaddress.IPv4Network(data['subnet'])[-2])\n+ try:...
1,644
154
gh_patches_debug_29687
rasdani/github-patches
git_diff
conan-io__conan-4041
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Please support Verify=False option for tools.get() as is currently supported for tools.download() To help us debug your issue please explain: - [x] I've read the [CONTRIBUTING guide](https://raw.githubuser...
diff --git a/conans/client/tools/net.py b/conans/client/tools/net.py --- a/conans/client/tools/net.py +++ b/conans/client/tools/net.py @@ -7,14 +7,16 @@ def get(url, md5='', sha1='', sha256='', destination=".", filename="", keep_permissions=False, - pattern=None, requester=None, output=None): + patte...
{"golden_diff": "diff --git a/conans/client/tools/net.py b/conans/client/tools/net.py\n--- a/conans/client/tools/net.py\n+++ b/conans/client/tools/net.py\n@@ -7,14 +7,16 @@\n \n \n def get(url, md5='', sha1='', sha256='', destination=\".\", filename=\"\", keep_permissions=False,\n- pattern=None, requester=None, ...
983
389
gh_patches_debug_1227
rasdani/github-patches
git_diff
mosaicml__composer-79
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add Colab Example * Add Example Jupyter notebook to the examples folder * Add "Open in Colab" to the README.md --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of th...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -49,6 +49,7 @@ 'sphinxcontrib.katex>=0.8.6', 'sphinxext.opengraph>=0.4.2', 'sphinx_rtd_theme>=1.0.0', + 'testbook>=0.4.2', 'myst-parser>=0.15.2', ] extra_deps['wandb'] = ['wandb>=0.12.2']
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -49,6 +49,7 @@\n 'sphinxcontrib.katex>=0.8.6',\n 'sphinxext.opengraph>=0.4.2',\n 'sphinx_rtd_theme>=1.0.0',\n+ 'testbook>=0.4.2',\n 'myst-parser>=0.15.2',\n ]\n extra_deps['wandb'] = ['wandb>=0.12.2']\n", "issue": "...
1,356
119
gh_patches_debug_28905
rasdani/github-patches
git_diff
ckan__ckan-6953
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Robots.txt can no longer be easily customised **CKAN version** 2.9 **Describe the bug** `robots.txt` was moved back to the `public` directory as part of #4801. However, this reverts the implementatio...
diff --git a/ckan/views/home.py b/ckan/views/home.py --- a/ckan/views/home.py +++ b/ckan/views/home.py @@ -5,7 +5,7 @@ from urllib.parse import urlencode from typing import Any, Optional, cast, List, Tuple -from flask import Blueprint, abort, redirect, request +from flask import Blueprint, make_response, abort, red...
{"golden_diff": "diff --git a/ckan/views/home.py b/ckan/views/home.py\n--- a/ckan/views/home.py\n+++ b/ckan/views/home.py\n@@ -5,7 +5,7 @@\n from urllib.parse import urlencode\n from typing import Any, Optional, cast, List, Tuple\n \n-from flask import Blueprint, abort, redirect, request\n+from flask import Blueprint, ...
1,602
379
gh_patches_debug_4130
rasdani/github-patches
git_diff
plone__Products.CMFPlone-3534
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Missing resource breaks rendering viewlet.resourceregistries.js if there's a typo or a missing JS resource defined in the resource registries, the `viewlet.resourceregistries.js` gives a traceback and all JS ...
diff --git a/Products/CMFPlone/resources/utils.py b/Products/CMFPlone/resources/utils.py --- a/Products/CMFPlone/resources/utils.py +++ b/Products/CMFPlone/resources/utils.py @@ -52,7 +52,7 @@ return try: resource = context.unrestrictedTraverse(path) - except (NotFound, AttributeError): + e...
{"golden_diff": "diff --git a/Products/CMFPlone/resources/utils.py b/Products/CMFPlone/resources/utils.py\n--- a/Products/CMFPlone/resources/utils.py\n+++ b/Products/CMFPlone/resources/utils.py\n@@ -52,7 +52,7 @@\n return\n try:\n resource = context.unrestrictedTraverse(path)\n- except (NotFound,...
1,471
126
gh_patches_debug_45
rasdani/github-patches
git_diff
conda-forge__conda-smithy-1140
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Not compatible with ruamel.yaml 0.16 Fails with, ``` Traceback (most recent call last): File "/home/travis/miniconda/bin/conda-smithy", line 10, in <module> sys.exit(main()) File "/home/t...
diff --git a/conda_smithy/utils.py b/conda_smithy/utils.py --- a/conda_smithy/utils.py +++ b/conda_smithy/utils.py @@ -88,5 +88,4 @@ yield code - with open(forge_yaml, "w") as fh: - fh.write(yaml.dump(code)) + yaml.dump(code, forge_yaml)
{"golden_diff": "diff --git a/conda_smithy/utils.py b/conda_smithy/utils.py\n--- a/conda_smithy/utils.py\n+++ b/conda_smithy/utils.py\n@@ -88,5 +88,4 @@\n \n yield code\n \n- with open(forge_yaml, \"w\") as fh:\n- fh.write(yaml.dump(code))\n+ yaml.dump(code, forge_yaml)\n", "issue": "Not compatible wit...
1,409
89
gh_patches_debug_4146
rasdani/github-patches
git_diff
streamlit__streamlit-7267
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- When "upload_file_request_handler.py" returns 400 error, we can see session ID. # Summary We make application on Microsoft Azure App Service with streamlit. When we conducted a test of uploading file with...
diff --git a/lib/streamlit/web/server/upload_file_request_handler.py b/lib/streamlit/web/server/upload_file_request_handler.py --- a/lib/streamlit/web/server/upload_file_request_handler.py +++ b/lib/streamlit/web/server/upload_file_request_handler.py @@ -99,7 +99,7 @@ try: if not self._is_active...
{"golden_diff": "diff --git a/lib/streamlit/web/server/upload_file_request_handler.py b/lib/streamlit/web/server/upload_file_request_handler.py\n--- a/lib/streamlit/web/server/upload_file_request_handler.py\n+++ b/lib/streamlit/web/server/upload_file_request_handler.py\n@@ -99,7 +99,7 @@\n \n try:\n ...
2,006
126
gh_patches_debug_1144
rasdani/github-patches
git_diff
pulp__pulpcore-4727
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pulp file python package reporting wrongly Starting with pulpcore 3.40 the pulp_file plugins python package started reporting as pulp_file instead of pulp-file. --- END ISSUE --- Below are some code segment...
diff --git a/pulp_file/app/__init__.py b/pulp_file/app/__init__.py --- a/pulp_file/app/__init__.py +++ b/pulp_file/app/__init__.py @@ -9,5 +9,5 @@ name = "pulp_file.app" label = "file" version = "3.41.1.dev" - python_package_name = "pulp_file" # TODO Add python_module_name + python_package_name = ...
{"golden_diff": "diff --git a/pulp_file/app/__init__.py b/pulp_file/app/__init__.py\n--- a/pulp_file/app/__init__.py\n+++ b/pulp_file/app/__init__.py\n@@ -9,5 +9,5 @@\n name = \"pulp_file.app\"\n label = \"file\"\n version = \"3.41.1.dev\"\n- python_package_name = \"pulp_file\" # TODO Add python_module_...
405
126
gh_patches_debug_37463
rasdani/github-patches
git_diff
pyro-ppl__numpyro-806
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update docstring of Neal's funnel example We have updated [funnel](https://github.com/pyro-ppl/numpyro/blob/master/examples/funnel.py) example to use `reparam` handler, but the docstring is not updated yet. ...
diff --git a/examples/funnel.py b/examples/funnel.py --- a/examples/funnel.py +++ b/examples/funnel.py @@ -6,18 +6,15 @@ ====================== This example, which is adapted from [1], illustrates how to leverage non-centered -parameterization using the class :class:`numpyro.distributions.TransformedDistribution`. ...
{"golden_diff": "diff --git a/examples/funnel.py b/examples/funnel.py\n--- a/examples/funnel.py\n+++ b/examples/funnel.py\n@@ -6,18 +6,15 @@\n ======================\n \n This example, which is adapted from [1], illustrates how to leverage non-centered\n-parameterization using the class :class:`numpyro.distributions.Tr...
1,599
615
gh_patches_debug_5834
rasdani/github-patches
git_diff
urllib3__urllib3-706
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- urllib3 1.11 does not provide the extra 'secure' I tried with Python 2.7 and 2.6 inside different virtualenv. ``` bash pip install 'urllib3[secure]' ``` --- END ISSUE --- Below are some code segments, eac...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -55,14 +55,11 @@ ], test_suite='test', extras_require={ - 'secure;python_version<="2.7"': [ + 'secure': [ 'pyOpenSSL', 'ndg-httpsclient', 'pyasn1', 'certif...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -55,14 +55,11 @@\n ],\n test_suite='test',\n extras_require={\n- 'secure;python_version<=\"2.7\"': [\n+ 'secure': [\n 'pyOpenSSL',\n 'ndg-httpsclient',\n 'p...
915
121
gh_patches_debug_10566
rasdani/github-patches
git_diff
getpelican__pelican-2393
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unclear error message running pelican.server Hello, I recently upgraded from 3.7.1 to master. After building my site, I tried to run the server via `python -m pelican.server`, as previously. I got a new m...
diff --git a/pelican/server.py b/pelican/server.py --- a/pelican/server.py +++ b/pelican/server.py @@ -131,6 +131,11 @@ logging.error("Could not listen on port %s, server %s.", args.port, args.server) sys.exit(getattr(e, 'exitcode', 1)) + except TypeError as e: + loggi...
{"golden_diff": "diff --git a/pelican/server.py b/pelican/server.py\n--- a/pelican/server.py\n+++ b/pelican/server.py\n@@ -131,6 +131,11 @@\n logging.error(\"Could not listen on port %s, server %s.\",\n args.port, args.server)\n sys.exit(getattr(e, 'exitcode', 1))\n+ except Type...
1,908
168
gh_patches_debug_12412
rasdani/github-patches
git_diff
holoviz__hvplot-693
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- sample_data try/except import wrapper fails #### ALL software version info hvplot: 0.7.3 #### Description of expected behavior and the observed behavior The following import fails, despite the all-catchi...
diff --git a/hvplot/sample_data.py b/hvplot/sample_data.py --- a/hvplot/sample_data.py +++ b/hvplot/sample_data.py @@ -6,10 +6,18 @@ try: from intake import open_catalog + import intake_parquet # noqa + import intake_xarray # noqa + import s3fs # noqa except: - raise ImportError('Loading hvPlot...
{"golden_diff": "diff --git a/hvplot/sample_data.py b/hvplot/sample_data.py\n--- a/hvplot/sample_data.py\n+++ b/hvplot/sample_data.py\n@@ -6,10 +6,18 @@\n \n try:\n from intake import open_catalog\n+ import intake_parquet # noqa\n+ import intake_xarray # noqa\n+ import s3fs # noqa\n except:\n- raise...
1,900
208
gh_patches_debug_21452
rasdani/github-patches
git_diff
Lightning-Universe__lightning-flash-1367
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ModuleNotFoundError: No module named 'icevision.backbones' Using an example snippet from the README: Icevision is the latest version from GitHub master. ![image](https://user-images.githubusercontent.com/...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -99,7 +99,7 @@ }, zip_safe=False, keywords=["deep learning", "pytorch", "AI"], - python_requires=">=3.6", + python_requires=">=3.7", install_requires=base_req, project_urls={ "Bug Tracker": "https://github.com/PyTo...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -99,7 +99,7 @@\n },\n zip_safe=False,\n keywords=[\"deep learning\", \"pytorch\", \"AI\"],\n- python_requires=\">=3.6\",\n+ python_requires=\">=3.7\",\n install_requires=base_req,\n project_urls={\n \...
1,966
228
gh_patches_debug_34817
rasdani/github-patches
git_diff
YunoHost__apps-1524
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Simplify current version As discuss at YunoHost Meeting 06/10/2022, remove the comment after the shipped version Close #1522 --- END ISSUE --- Below are some code segments, each from a relevant file. One o...
diff --git a/tools/README-generator/make_readme.py b/tools/README-generator/make_readme.py --- a/tools/README-generator/make_readme.py +++ b/tools/README-generator/make_readme.py @@ -32,7 +32,7 @@ from_catalog = catalog.get(manifest['id'], {}) antifeatures_list = yaml.load(open(Path(os.path.abspath(__file__...
{"golden_diff": "diff --git a/tools/README-generator/make_readme.py b/tools/README-generator/make_readme.py\n--- a/tools/README-generator/make_readme.py\n+++ b/tools/README-generator/make_readme.py\n@@ -32,7 +32,7 @@\n from_catalog = catalog.get(manifest['id'], {})\n \n antifeatures_list = yaml.load(open(Path(o...
1,640
537
gh_patches_debug_1027
rasdani/github-patches
git_diff
cocotb__cocotb-1776
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- coroutines that return before their first yield cause the simulator to shutdown Repro: ```python @cocotb.test() def test_func_empty(dut): """ Test that a function can complete before the first yield "...
diff --git a/cocotb/ipython_support.py b/cocotb/ipython_support.py --- a/cocotb/ipython_support.py +++ b/cocotb/ipython_support.py @@ -85,5 +85,4 @@ Within the shell, a global ``dut`` variable pointing to the design will be present. """ - await cocotb.triggers.Timer(0) # workaround for gh-637 await...
{"golden_diff": "diff --git a/cocotb/ipython_support.py b/cocotb/ipython_support.py\n--- a/cocotb/ipython_support.py\n+++ b/cocotb/ipython_support.py\n@@ -85,5 +85,4 @@\n \n Within the shell, a global ``dut`` variable pointing to the design will be present.\n \"\"\"\n- await cocotb.triggers.Timer(0) # worka...
1,224
116
gh_patches_debug_40680
rasdani/github-patches
git_diff
electricitymaps__electricitymaps-contrib-1789
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add US-MISO day ahead wind & solar forecasts Both Wind Production and Total Load seem available with a day-head forecast from the following webpage https://www.misoenergy.org/markets-and-operations/real-time-...
diff --git a/parsers/US_MISO.py b/parsers/US_MISO.py --- a/parsers/US_MISO.py +++ b/parsers/US_MISO.py @@ -2,6 +2,7 @@ """Parser for the MISO area of the United States.""" +import logging import requests from dateutil import parser, tz @@ -14,6 +15,7 @@ 'Wind': 'wind', 'Other': 'unknown...
{"golden_diff": "diff --git a/parsers/US_MISO.py b/parsers/US_MISO.py\n--- a/parsers/US_MISO.py\n+++ b/parsers/US_MISO.py\n@@ -2,6 +2,7 @@\n \n \"\"\"Parser for the MISO area of the United States.\"\"\"\n \n+import logging\n import requests\n from dateutil import parser, tz\n \n@@ -14,6 +15,7 @@\n 'Wind': 'w...
1,489
837
gh_patches_debug_18998
rasdani/github-patches
git_diff
Qiskit__qiskit-2328
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Better error messaging when graphviz is not present _For reference, this was originally posted by @jaygambetta in https://github.com/Qiskit/qiskit-terra/issues/2281#issuecomment-489417445_ > @ajavadia and ...
diff --git a/qiskit/visualization/dag_visualization.py b/qiskit/visualization/dag_visualization.py --- a/qiskit/visualization/dag_visualization.py +++ b/qiskit/visualization/dag_visualization.py @@ -51,8 +51,8 @@ import nxpd import pydot # pylint: disable=unused-import except ImportError: - ...
{"golden_diff": "diff --git a/qiskit/visualization/dag_visualization.py b/qiskit/visualization/dag_visualization.py\n--- a/qiskit/visualization/dag_visualization.py\n+++ b/qiskit/visualization/dag_visualization.py\n@@ -51,8 +51,8 @@\n import nxpd\n import pydot # pylint: disable=unused-import\n exc...
1,393
287
gh_patches_debug_7436
rasdani/github-patches
git_diff
mathesar-foundation__mathesar-2713
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Django erroneously reports makemigrations is needed There is a problem with Django migration changes detector when running `migrate` command after setting up Django using `django,setup()`. For some reason, it...
diff --git a/mathesar/admin.py b/mathesar/admin.py --- a/mathesar/admin.py +++ b/mathesar/admin.py @@ -3,6 +3,7 @@ from mathesar.models.base import Table, Schema, DataFile from mathesar.models.users import User +from mathesar.models.query import UIQuery class MathesarUserAdmin(UserAdmin): @@ -22,3 +23,4 @@ ad...
{"golden_diff": "diff --git a/mathesar/admin.py b/mathesar/admin.py\n--- a/mathesar/admin.py\n+++ b/mathesar/admin.py\n@@ -3,6 +3,7 @@\n \n from mathesar.models.base import Table, Schema, DataFile\n from mathesar.models.users import User\n+from mathesar.models.query import UIQuery\n \n \n class MathesarUserAdmin(UserAd...
526
120
gh_patches_debug_8545
rasdani/github-patches
git_diff
googleapis__python-bigquery-1796
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The _ARROW_SCALAR_IDS_TO_BQ mapping misses LargeStringArray type #### Environment details - OS type and version: Linux - Python version: 3.11.7 - pip version: 23.3.1 - `google-cloud-bigquery` ve...
diff --git a/google/cloud/bigquery/_pyarrow_helpers.py b/google/cloud/bigquery/_pyarrow_helpers.py --- a/google/cloud/bigquery/_pyarrow_helpers.py +++ b/google/cloud/bigquery/_pyarrow_helpers.py @@ -91,6 +91,7 @@ pyarrow.date64().id: "DATETIME", # because millisecond resolution pyarrow.binary().id: "...
{"golden_diff": "diff --git a/google/cloud/bigquery/_pyarrow_helpers.py b/google/cloud/bigquery/_pyarrow_helpers.py\n--- a/google/cloud/bigquery/_pyarrow_helpers.py\n+++ b/google/cloud/bigquery/_pyarrow_helpers.py\n@@ -91,6 +91,7 @@\n pyarrow.date64().id: \"DATETIME\", # because millisecond resolution\n ...
1,980
160
gh_patches_debug_8727
rasdani/github-patches
git_diff
cloudtools__troposphere-531
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- S3ObjectVersion is spelled "SS3ObjectVersion" in the lambda Code object validation I just noticed [this](https://github.com/cloudtools/troposphere/blob/1f67fb140f5b94cf0f29213a7300bad3ea046a0f/troposphere/aws...
diff --git a/troposphere/awslambda.py b/troposphere/awslambda.py --- a/troposphere/awslambda.py +++ b/troposphere/awslambda.py @@ -28,7 +28,7 @@ zip_file = self.properties.get('ZipFile') s3_bucket = self.properties.get('S3Bucket') s3_key = self.properties.get('S3Key') - s3_object_versi...
{"golden_diff": "diff --git a/troposphere/awslambda.py b/troposphere/awslambda.py\n--- a/troposphere/awslambda.py\n+++ b/troposphere/awslambda.py\n@@ -28,7 +28,7 @@\n zip_file = self.properties.get('ZipFile')\n s3_bucket = self.properties.get('S3Bucket')\n s3_key = self.properties.get('S3Key')\n...
1,483
154
gh_patches_debug_39888
rasdani/github-patches
git_diff
fonttools__fonttools-1205
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [ttGlyphPen] decompose components if transform overflows F2Dot14 https://github.com/googlei18n/ufo2ft/issues/217 The UFO GLIF spec allows any numbers for xScale, xyScale, yxScale, yScale, xOffset, yOffset,...
diff --git a/Lib/fontTools/pens/ttGlyphPen.py b/Lib/fontTools/pens/ttGlyphPen.py --- a/Lib/fontTools/pens/ttGlyphPen.py +++ b/Lib/fontTools/pens/ttGlyphPen.py @@ -12,11 +12,32 @@ __all__ = ["TTGlyphPen"] -class TTGlyphPen(AbstractPen): - """Pen used for drawing to a TrueType glyph.""" +# the max value that can ...
{"golden_diff": "diff --git a/Lib/fontTools/pens/ttGlyphPen.py b/Lib/fontTools/pens/ttGlyphPen.py\n--- a/Lib/fontTools/pens/ttGlyphPen.py\n+++ b/Lib/fontTools/pens/ttGlyphPen.py\n@@ -12,11 +12,32 @@\n __all__ = [\"TTGlyphPen\"]\n \n \n-class TTGlyphPen(AbstractPen):\n- \"\"\"Pen used for drawing to a TrueType glyph....
1,639
911
gh_patches_debug_21473
rasdani/github-patches
git_diff
bokeh__bokeh-5331
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- syntax error in util/deprecation.py line 24: message += " " + extra.trim() results in error: AttributeError: 'str' object has no attribute 'trim' it should be instead: message += " " + extra.strip() ...
diff --git a/bokeh/util/deprecation.py b/bokeh/util/deprecation.py --- a/bokeh/util/deprecation.py +++ b/bokeh/util/deprecation.py @@ -17,11 +17,14 @@ if old is None or new is None: raise ValueError("deprecated entity and a replacement are required") + if len(since_or_msg) != 3 or not all...
{"golden_diff": "diff --git a/bokeh/util/deprecation.py b/bokeh/util/deprecation.py\n--- a/bokeh/util/deprecation.py\n+++ b/bokeh/util/deprecation.py\n@@ -17,11 +17,14 @@\n if old is None or new is None:\n raise ValueError(\"deprecated entity and a replacement are required\")\n \n+ if len(sin...
683
254
gh_patches_debug_8749
rasdani/github-patches
git_diff
saleor__saleor-5160
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Errors occur when update a page ### What I'm trying to achieve Update a `Page` ### Steps to reproduce the problem 1. Call `Mutation.pageUpdate ` with `input: {}` ```bash web_1 | ERROR saleor.graph...
diff --git a/saleor/graphql/page/mutations.py b/saleor/graphql/page/mutations.py --- a/saleor/graphql/page/mutations.py +++ b/saleor/graphql/page/mutations.py @@ -39,8 +39,9 @@ def clean_input(cls, info, instance, data): cleaned_input = super().clean_input(info, instance, data) slug = cleaned_inp...
{"golden_diff": "diff --git a/saleor/graphql/page/mutations.py b/saleor/graphql/page/mutations.py\n--- a/saleor/graphql/page/mutations.py\n+++ b/saleor/graphql/page/mutations.py\n@@ -39,8 +39,9 @@\n def clean_input(cls, info, instance, data):\n cleaned_input = super().clean_input(info, instance, data)\n ...
1,242
159
gh_patches_debug_37638
rasdani/github-patches
git_diff
akvo__akvo-rsr-3791
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add thematic labels to indicator The granular way of working with thematic labels attached to indicators is extremely prone to error at the FE due to the complexity of handling it, waiting for IDs assigned fr...
diff --git a/akvo/rest/filters.py b/akvo/rest/filters.py --- a/akvo/rest/filters.py +++ b/akvo/rest/filters.py @@ -84,4 +84,4 @@ queryset = queryset.filter(q_expr) - return queryset + return queryset.distinct() diff --git a/akvo/rest/serializers/indicator.py b/akvo/rest/serializers/indica...
{"golden_diff": "diff --git a/akvo/rest/filters.py b/akvo/rest/filters.py\n--- a/akvo/rest/filters.py\n+++ b/akvo/rest/filters.py\n@@ -84,4 +84,4 @@\n \n queryset = queryset.filter(q_expr)\n \n- return queryset\n+ return queryset.distinct()\ndiff --git a/akvo/rest/serializers/indicator.py b/ak...
1,918
566
gh_patches_debug_5801
rasdani/github-patches
git_diff
sosreport__sos-3281
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Some MAAS config files missing from collection Currently we're only collecting `/var/lib/maas/dhcp`, meaning that we're missing other key config files that would help with troubleshooting MAAS issues, e.g., ...
diff --git a/sos/report/plugins/maas.py b/sos/report/plugins/maas.py --- a/sos/report/plugins/maas.py +++ b/sos/report/plugins/maas.py @@ -87,6 +87,9 @@ "/etc/squid-deb-proxy", "/etc/maas", "/var/lib/maas/dhcp*", + "/var/lib/maas/http/*.conf", + ...
{"golden_diff": "diff --git a/sos/report/plugins/maas.py b/sos/report/plugins/maas.py\n--- a/sos/report/plugins/maas.py\n+++ b/sos/report/plugins/maas.py\n@@ -87,6 +87,9 @@\n \"/etc/squid-deb-proxy\",\n \"/etc/maas\",\n \"/var/lib/maas/dhcp*\",\n+ \"/var/li...
1,537
147
gh_patches_debug_12761
rasdani/github-patches
git_diff
chainer__chainer-6057
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Occasional test failure in `TestWalkerAlias` Occasionally, the result of `xp.random.uniform(0, 1, shape).astype(thr_dtype)` becomes `1.0`, and `self.threshold[index]` raises an `IndexError`. https://ci.app...
diff --git a/chainer/utils/walker_alias.py b/chainer/utils/walker_alias.py --- a/chainer/utils/walker_alias.py +++ b/chainer/utils/walker_alias.py @@ -104,12 +104,11 @@ def sample_xp(self, xp, shape): thr_dtype = self.threshold.dtype - ps = xp.random.uniform(0, 1, shape).astype(thr_dtype) - ...
{"golden_diff": "diff --git a/chainer/utils/walker_alias.py b/chainer/utils/walker_alias.py\n--- a/chainer/utils/walker_alias.py\n+++ b/chainer/utils/walker_alias.py\n@@ -104,12 +104,11 @@\n \n def sample_xp(self, xp, shape):\n thr_dtype = self.threshold.dtype\n- ps = xp.random.uniform(0, 1, shape).a...
1,660
195
gh_patches_debug_14682
rasdani/github-patches
git_diff
fossasia__open-event-server-5902
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Depenendency Upgrades The following dependencies have to be upgraded - urllib3 = ">=1.24.2" - SQLAlchemy = ">=1.3.0" - Jinja2 = ">=2.10.1" - marshmallow = ">=2.15.1" --- END ISSUE --- Below are some c...
diff --git a/app/api/admin_sales/locations.py b/app/api/admin_sales/locations.py --- a/app/api/admin_sales/locations.py +++ b/app/api/admin_sales/locations.py @@ -15,8 +15,8 @@ Event.location_name.label('location'), func.sum(Order.amount).label(status + '_sales'), func.sum(OrderTicket.quantit...
{"golden_diff": "diff --git a/app/api/admin_sales/locations.py b/app/api/admin_sales/locations.py\n--- a/app/api/admin_sales/locations.py\n+++ b/app/api/admin_sales/locations.py\n@@ -15,8 +15,8 @@\n Event.location_name.label('location'),\n func.sum(Order.amount).label(status + '_sales'),\n func....
1,188
167
gh_patches_debug_6842
rasdani/github-patches
git_diff
pallets__werkzeug-1480
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Drop Python 3.4 support EOL 2019-03-19: https://devguide.python.org/#status-of-python-branches --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may conta...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -36,7 +36,6 @@ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", "Programming Language :: Python ::...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -36,7 +36,6 @@\n \"Programming Language :: Python :: 2\",\n \"Programming Language :: Python :: 2.7\",\n \"Programming Language :: Python :: 3\",\n- \"Programming Language :: Python :: 3.4\",\n \...
1,035
113
gh_patches_debug_1425
rasdani/github-patches
git_diff
unionai-oss__pandera-1209
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Why python_requires <3.12? In https://github.com/unionai-oss/pandera/commit/547aff1672fe455741f380c8bec1ed648074effc, `python_requires` was changed from `>=3.7` to `>=3.7,<=3.11`, and in a later commit, the u...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ "wrapt", ], extras_require=extras_require, - python_requires=">=3.7,<3.12", + python_requires=">=3.7", platforms="any", classifiers=[ "Development Status :: 5 - Production/Stable",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -56,7 +56,7 @@\n \"wrapt\",\n ],\n extras_require=extras_require,\n- python_requires=\">=3.7,<3.12\",\n+ python_requires=\">=3.7\",\n platforms=\"any\",\n classifiers=[\n \"Development Status :: 5...
1,484
91
gh_patches_debug_17488
rasdani/github-patches
git_diff
apache__airflow-1242
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- GenericTransfer and Postgres - ERROR - SET AUTOCOMMIT TO OFF is no longer supported Trying to implement a generic transfer ``` python t1 = GenericTransfer( task_id = 'copy_small_table', sql = "select * f...
diff --git a/airflow/hooks/postgres_hook.py b/airflow/hooks/postgres_hook.py --- a/airflow/hooks/postgres_hook.py +++ b/airflow/hooks/postgres_hook.py @@ -11,7 +11,7 @@ ''' conn_name_attr = 'postgres_conn_id' default_conn_name = 'postgres_default' - supports_autocommit = True + supports_autocommit ...
{"golden_diff": "diff --git a/airflow/hooks/postgres_hook.py b/airflow/hooks/postgres_hook.py\n--- a/airflow/hooks/postgres_hook.py\n+++ b/airflow/hooks/postgres_hook.py\n@@ -11,7 +11,7 @@\n '''\n conn_name_attr = 'postgres_conn_id'\n default_conn_name = 'postgres_default'\n- supports_autocommit = True\n...
1,415
233
gh_patches_debug_21534
rasdani/github-patches
git_diff
activeloopai__deeplake-75
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PermissionException on AWS Facing issues with ds.store() on AWS while the same code works properly locally. Error : `hub.exceptions.PermissionException: No permision to store the dataset at s3://snark-hub/pu...
diff --git a/hub/collections/client_manager.py b/hub/collections/client_manager.py --- a/hub/collections/client_manager.py +++ b/hub/collections/client_manager.py @@ -35,7 +35,7 @@ distributed=True, ): """Initializes cluster either local or on the cloud - + Parameters ---------- ...
{"golden_diff": "diff --git a/hub/collections/client_manager.py b/hub/collections/client_manager.py\n--- a/hub/collections/client_manager.py\n+++ b/hub/collections/client_manager.py\n@@ -35,7 +35,7 @@\n distributed=True,\n ):\n \"\"\"Initializes cluster either local or on the cloud\n- \n+\n Param...
1,137
223
gh_patches_debug_20880
rasdani/github-patches
git_diff
safe-global__safe-config-service-92
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add pagination to the `chains/` endpoint Add pagination support to `api/v1/chains` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. ---...
diff --git a/src/chains/views.py b/src/chains/views.py --- a/src/chains/views.py +++ b/src/chains/views.py @@ -1,5 +1,6 @@ from drf_yasg.utils import swagger_auto_schema from rest_framework.generics import ListAPIView +from rest_framework.pagination import LimitOffsetPagination from .models import Chain from .ser...
{"golden_diff": "diff --git a/src/chains/views.py b/src/chains/views.py\n--- a/src/chains/views.py\n+++ b/src/chains/views.py\n@@ -1,5 +1,6 @@\n from drf_yasg.utils import swagger_auto_schema\n from rest_framework.generics import ListAPIView\n+from rest_framework.pagination import LimitOffsetPagination\n \n from .model...
783
249
gh_patches_debug_41932
rasdani/github-patches
git_diff
electricitymaps__electricitymaps-contrib-2014
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Taiwan TW.py parser fails Help wanted! :) Taiwan isn't showing any data at the moment and the parser has to be fixed. This is the error message for TW.py of the logger: 'DataFrame' object has no attribut...
diff --git a/parsers/TW.py b/parsers/TW.py --- a/parsers/TW.py +++ b/parsers/TW.py @@ -10,7 +10,8 @@ raise NotImplementedError('This parser is not yet able to parse past dates') url = 'http://www.taipower.com.tw/d006/loadGraph/loadGraph/data/genary.txt' - response = requests.get(url) + s = session...
{"golden_diff": "diff --git a/parsers/TW.py b/parsers/TW.py\n--- a/parsers/TW.py\n+++ b/parsers/TW.py\n@@ -10,7 +10,8 @@\n raise NotImplementedError('This parser is not yet able to parse past dates')\n \n url = 'http://www.taipower.com.tw/d006/loadGraph/loadGraph/data/genary.txt'\n- response = requests.g...
1,647
953
gh_patches_debug_35948
rasdani/github-patches
git_diff
DataDog__dd-trace-py-3879
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- aiomysql: AttributeError: __aenter__ ### Which version of dd-trace-py are you using? `ddtrace==1.2.0` ### Which version of the libraries are you using? `aiomysql==0.1.1` ### How can we reproduce y...
diff --git a/ddtrace/contrib/aiomysql/patch.py b/ddtrace/contrib/aiomysql/patch.py --- a/ddtrace/contrib/aiomysql/patch.py +++ b/ddtrace/contrib/aiomysql/patch.py @@ -82,6 +82,14 @@ result = await self._trace_method(self.__wrapped__.execute, query, {}, query, *args, **kwargs) return result + # Ex...
{"golden_diff": "diff --git a/ddtrace/contrib/aiomysql/patch.py b/ddtrace/contrib/aiomysql/patch.py\n--- a/ddtrace/contrib/aiomysql/patch.py\n+++ b/ddtrace/contrib/aiomysql/patch.py\n@@ -82,6 +82,14 @@\n result = await self._trace_method(self.__wrapped__.execute, query, {}, query, *args, **kwargs)\n ret...
1,887
795
gh_patches_debug_4642
rasdani/github-patches
git_diff
pytorch__text-1914
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- update documentation to reflect IMDB output When attempting to use the IMDB api, I got results that were different from what the docs suggested. This PR attempts to update the docs with the correct output of ...
diff --git a/torchtext/datasets/imdb.py b/torchtext/datasets/imdb.py --- a/torchtext/datasets/imdb.py +++ b/torchtext/datasets/imdb.py @@ -20,6 +20,8 @@ "test": 25000, } +MAP_LABELS = {"neg": 1, "pos": 2} + _PATH = "aclImdb_v1.tar.gz" DATASET_NAME = "IMDB" @@ -50,7 +52,7 @@ def _modify_res(t): - ret...
{"golden_diff": "diff --git a/torchtext/datasets/imdb.py b/torchtext/datasets/imdb.py\n--- a/torchtext/datasets/imdb.py\n+++ b/torchtext/datasets/imdb.py\n@@ -20,6 +20,8 @@\n \"test\": 25000,\n }\n \n+MAP_LABELS = {\"neg\": 1, \"pos\": 2}\n+\n _PATH = \"aclImdb_v1.tar.gz\"\n \n DATASET_NAME = \"IMDB\"\n@@ -50,7 +52...
1,714
173
gh_patches_debug_21094
rasdani/github-patches
git_diff
python-discord__bot-429
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Implement a search command for !otn With hundreds of off-topic names in our list, looking for one by clicking through the paginator with the bot is tedious. Let's have a `!otn search <name>` command! ##...
diff --git a/bot/cogs/off_topic_names.py b/bot/cogs/off_topic_names.py --- a/bot/cogs/off_topic_names.py +++ b/bot/cogs/off_topic_names.py @@ -1,4 +1,5 @@ import asyncio +import difflib import logging from datetime import datetime, timedelta @@ -141,6 +142,27 @@ embed.description = "Hmmm, seems like t...
{"golden_diff": "diff --git a/bot/cogs/off_topic_names.py b/bot/cogs/off_topic_names.py\n--- a/bot/cogs/off_topic_names.py\n+++ b/bot/cogs/off_topic_names.py\n@@ -1,4 +1,5 @@\n import asyncio\n+import difflib\n import logging\n from datetime import datetime, timedelta\n \n@@ -141,6 +142,27 @@\n embed.descri...
2,020
325
gh_patches_debug_17959
rasdani/github-patches
git_diff
OBOFoundry__OBOFoundry.github.io-1718
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Names with non ASCII characters deteriorate during metadata integration Raw data: https://github.com/OBOFoundry/OBOFoundry.github.io/blob/master/ontology/lepao.md?plain=1#L7 Result: https://github.com/OB...
diff --git a/util/sort-ontologies.py b/util/sort-ontologies.py --- a/util/sort-ontologies.py +++ b/util/sort-ontologies.py @@ -73,9 +73,8 @@ def write_data(data, output): '''Given the ontologies data as a dictionary and an output YAML file to write to, write the data to the file. ''' - yaml_str = yaml.dump(data...
{"golden_diff": "diff --git a/util/sort-ontologies.py b/util/sort-ontologies.py\n--- a/util/sort-ontologies.py\n+++ b/util/sort-ontologies.py\n@@ -73,9 +73,8 @@\n def write_data(data, output):\n '''Given the ontologies data as a dictionary and an output YAML file to\n write to, write the data to the file. '''\n- y...
1,406
278
gh_patches_debug_784
rasdani/github-patches
git_diff
facebookresearch__habitat-lab-347
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DD-PPO does not all reduce gradients ## 🐛 Bug DD-PPO does not all reduce gradients during the backward call, because `reducer.prepare_for_backward` is not being called during training process. The prob...
diff --git a/habitat_baselines/rl/ddppo/algo/ddppo.py b/habitat_baselines/rl/ddppo/algo/ddppo.py --- a/habitat_baselines/rl/ddppo/algo/ddppo.py +++ b/habitat_baselines/rl/ddppo/algo/ddppo.py @@ -92,6 +92,5 @@ self.reducer.prepare_for_backward([]) -# Mixin goes second that way the PPO __init__ will stil...
{"golden_diff": "diff --git a/habitat_baselines/rl/ddppo/algo/ddppo.py b/habitat_baselines/rl/ddppo/algo/ddppo.py\n--- a/habitat_baselines/rl/ddppo/algo/ddppo.py\n+++ b/habitat_baselines/rl/ddppo/algo/ddppo.py\n@@ -92,6 +92,5 @@\n self.reducer.prepare_for_backward([])\n \n \n-# Mixin goes second that way th...
1,486
144
gh_patches_debug_18372
rasdani/github-patches
git_diff
marshmallow-code__webargs-892
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- fix: schema_example.py status_code ignored Just a small fix/enhancement for the examples in the webargs documentation. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more ...
diff --git a/examples/schema_example.py b/examples/schema_example.py --- a/examples/schema_example.py +++ b/examples/schema_example.py @@ -14,9 +14,9 @@ $ http GET :5001/users/ limit==1 """ import functools -from flask import Flask, request import random +from flask import Flask, request from marshmallow imp...
{"golden_diff": "diff --git a/examples/schema_example.py b/examples/schema_example.py\n--- a/examples/schema_example.py\n+++ b/examples/schema_example.py\n@@ -14,9 +14,9 @@\n $ http GET :5001/users/ limit==1\n \"\"\"\n import functools\n-from flask import Flask, request\n import random\n \n+from flask import Flask,...
1,597
211
gh_patches_debug_15141
rasdani/github-patches
git_diff
Kinto__kinto-541
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Metadata on Groups Similarily to how you can store extra properties (metadata) on a collection, it would be useful to be able to do this with groups. In my applications, almost everything is dynamic. Users c...
diff --git a/kinto/__init__.py b/kinto/__init__.py --- a/kinto/__init__.py +++ b/kinto/__init__.py @@ -12,7 +12,7 @@ __version__ = pkg_resources.get_distribution(__package__).version # Implemented HTTP API Version -HTTP_API_VERSION = '1.4' +HTTP_API_VERSION = '1.5' # Main kinto logger logger = logging.getLogger...
{"golden_diff": "diff --git a/kinto/__init__.py b/kinto/__init__.py\n--- a/kinto/__init__.py\n+++ b/kinto/__init__.py\n@@ -12,7 +12,7 @@\n __version__ = pkg_resources.get_distribution(__package__).version\n \n # Implemented HTTP API Version\n-HTTP_API_VERSION = '1.4'\n+HTTP_API_VERSION = '1.5'\n \n # Main kinto logger\...
1,755
199
gh_patches_debug_18645
rasdani/github-patches
git_diff
Mailu__Mailu-2690
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- rethink rspamd's overrides Currently any override put in rspamd's folder will replace Mailu's default config. This may disable functionality (anti-spoof, oletools, ...) and doesn't make upgrades easy. W...
diff --git a/core/rspamd/start.py b/core/rspamd/start.py --- a/core/rspamd/start.py +++ b/core/rspamd/start.py @@ -4,6 +4,7 @@ import glob import logging as log import requests +import shutil import sys import time from socrate import system,conf @@ -13,8 +14,14 @@ # Actual startup script +config_files = [] ...
{"golden_diff": "diff --git a/core/rspamd/start.py b/core/rspamd/start.py\n--- a/core/rspamd/start.py\n+++ b/core/rspamd/start.py\n@@ -4,6 +4,7 @@\n import glob\n import logging as log\n import requests\n+import shutil\n import sys\n import time\n from socrate import system,conf\n@@ -13,8 +14,14 @@\n \n # Actual startu...
665
239