in_source_id
stringlengths
13
58
issue
stringlengths
3
241k
before_files
listlengths
0
3
after_files
listlengths
0
3
pr_diff
stringlengths
109
107M
⌀
arviz-devs__arviz-1198
Passing axes to plot_density fails with several datasets **Describe the bug** I would like to pass existing axes to plot_density with the `ax` keyword. This works fine if I plot data from a single dataset. But I get an error when I try to plot several datasets at once (I think the error arises when it tries to produce...
[ { "content": "\"\"\"Matplotlib Densityplot.\"\"\"\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nfrom . import backend_show\nfrom ....stats import hdi\nfrom ...plot_utils import (\n make_label,\n _create_axes_grid,\n calculate_point_estimate,\n)\nfrom ....numeric_utils import _fast_kde, get_bi...
[ { "content": "\"\"\"Matplotlib Densityplot.\"\"\"\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nfrom . import backend_show\nfrom ....stats import hdi\nfrom ...plot_utils import (\n make_label,\n _create_axes_grid,\n calculate_point_estimate,\n)\nfrom ....numeric_utils import _fast_kde, get_bi...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 269fa95967..be2e14a36e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ * Set `fill_last` argument of `plot_kde` to False by default (#1158) * plot_ppc animation: improve docs and error handling (#1162) * Fix import error when wrapped function docstring is...
pypa__pip-5931
pip uses deprecated SafeConfigParser * Pip version: 9.0.1 * Python version: 3.6.1 * Operating system: Mac OS X 10.12.4 ### Description: With `error::DeprecationWarning` in `PYTHONWARNINGS`: ``` pip uninstall -y faker /Users/davidchudzicki/.cache/hypothesis-build-runtimes/.tox/py36-full/lib/python3.6/site-p...
[ { "content": "from __future__ import absolute_import\n\nimport logging\nimport os\n\nfrom pip._vendor.six.moves import configparser\n\nfrom pip._internal.download import path_to_url\nfrom pip._internal.utils.misc import display_path, make_vcs_requirement_url\nfrom pip._internal.utils.temp_dir import TempDirecto...
[ { "content": "from __future__ import absolute_import\n\nimport logging\nimport os\n\nfrom pip._vendor.six.moves import configparser\n\nfrom pip._internal.download import path_to_url\nfrom pip._internal.utils.misc import display_path, make_vcs_requirement_url\nfrom pip._internal.utils.temp_dir import TempDirecto...
diff --git a/news/5059.trivial b/news/5059.trivial new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/pip/_internal/vcs/mercurial.py b/src/pip/_internal/vcs/mercurial.py index 17cfb67d1f1..5bca55627f5 100644 --- a/src/pip/_internal/vcs/mercurial.py +++ b/src/pip/_internal/vcs/mercurial.py @@ -45,7 +45...
WordPress__openverse-api-677
Settings does not respect `DEFAULT_FROM_EMAIL` ## Description <!-- Concisely describe the bug. Compare your experience with what you expected to happen. --> <!-- For example: "I clicked the 'submit' button and instead of seeing a thank you message, I saw a blank page." --> We recently tried setting the `DEFAULT_FROM_EM...
[ { "content": "\"\"\"\nDjango settings for catalog project.\n\nGenerated by 'django-admin startproject' using Django 2.0.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/2.0/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/2...
[ { "content": "\"\"\"\nDjango settings for catalog project.\n\nGenerated by 'django-admin startproject' using Django 2.0.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/2.0/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/2...
diff --git a/api/catalog/settings.py b/api/catalog/settings.py index 4778420c7..b2d29b5dc 100644 --- a/api/catalog/settings.py +++ b/api/catalog/settings.py @@ -298,6 +298,7 @@ EMAIL_HOST_PASSWORD = config("EMAIL_HOST_PASSWORD", default="") EMAIL_SUBJECT_PREFIX = "[noreply]" EMAIL_USE_TLS = True +DEFAULT_FROM_EMAIL ...
svthalia__concrexit-2011
Use API v2 for pizza orders ### Is your feature request related to a problem? Please describe. For some reason (#1931) the payment widget of the order overview page is broken. ### Describe the solution you'd like Instead of debugging the existing code, I prefer switching API v2 immedaitely. ### Motivation Bet...
[ { "content": "\"\"\"Events app API v2 urls.\"\"\"\nfrom django.urls import path\n\nfrom events.api.v2.admin.views import EventRegistrationAdminFieldsView\nfrom pizzas.api.v2.admin.views import (\n FoodEventAdminListView,\n FoodEventAdminDetailView,\n FoodOrderAdminDetailView,\n FoodEventOrdersAdminL...
[ { "content": "\"\"\"Events app API v2 urls.\"\"\"\nfrom django.urls import path\n\nfrom events.api.v2.admin.views import EventRegistrationAdminFieldsView\nfrom pizzas.api.v2.admin.views import (\n FoodEventAdminListView,\n FoodEventAdminDetailView,\n FoodOrderAdminDetailView,\n FoodEventOrdersAdminL...
diff --git a/website/pizzas/api/v2/admin/urls.py b/website/pizzas/api/v2/admin/urls.py index 0e3c29065..5146cc4df 100644 --- a/website/pizzas/api/v2/admin/urls.py +++ b/website/pizzas/api/v2/admin/urls.py @@ -28,7 +28,7 @@ path( "food/events/<int:event_id>/orders/<int:pk>/", FoodOrderAdminDetailV...
python__mypy-15983
Support for `attr.has` and `attr.AttrsInstance` **Feature** Recently, mypy added a plugin for `attr.fields` that tries to detect whether a type is an `attr.s`-decorated class, and reports an error if it isn't. However, `attrs` has a couple ways to check or annotate that a class is an `attr.s`-decorated class: `attr.ha...
[ { "content": "\"\"\"Plugin for supporting the attrs library (http://www.attrs.org)\"\"\"\n\nfrom __future__ import annotations\n\nfrom collections import defaultdict\nfrom functools import reduce\nfrom typing import Final, Iterable, List, Mapping, cast\nfrom typing_extensions import Literal\n\nimport mypy.plugi...
[ { "content": "\"\"\"Plugin for supporting the attrs library (http://www.attrs.org)\"\"\"\n\nfrom __future__ import annotations\n\nfrom collections import defaultdict\nfrom functools import reduce\nfrom typing import Final, Iterable, List, Mapping, cast\nfrom typing_extensions import Literal\n\nimport mypy.plugi...
diff --git a/mypy/plugins/attrs.py b/mypy/plugins/attrs.py index 3d326a5f4e80..6f5b6f35da07 100644 --- a/mypy/plugins/attrs.py +++ b/mypy/plugins/attrs.py @@ -1111,9 +1111,4 @@ def fields_function_sig_callback(ctx: mypy.plugin.FunctionSigContext) -> Callabl assert ret_type is not None return ctx.defau...
pyg-team__pytorch_geometric-8343
Problem with torch_geometric.transforms ### 🐛 Describe the bug --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) [<ipython-input-20-2b41d296395c>](https://localhost:8080/#) in <cell line: 7>() 5 import torc...
[ { "content": "import warnings\n\nimport torch_geometric\n\nif torch_geometric.typing.WITH_PT20: # pragma: no cover\n from torch._dynamo import is_compiling as _is_compiling\nelse:\n\n def _is_compiling() -> bool: # pragma: no cover\n return False\n\n\ndef warn(message: str):\n if _is_compiling...
[ { "content": "import warnings\n\nimport torch\n\nimport torch_geometric\n\n\ndef _is_compiling() -> bool: # pragma: no cover\n if torch_geometric.typing.WITH_PT21:\n return torch._dynamo.is_compiling()\n return False\n\n\ndef warn(message: str):\n if _is_compiling():\n return\n\n warn...
diff --git a/torch_geometric/warnings.py b/torch_geometric/warnings.py index ead428d3bd05..133f9fe3f049 100644 --- a/torch_geometric/warnings.py +++ b/torch_geometric/warnings.py @@ -1,13 +1,14 @@ import warnings +import torch + import torch_geometric -if torch_geometric.typing.WITH_PT20: # pragma: no cover - ...
django-cms__django-cms-1984
Moving plugin to non page placeholder fails (v3.0) If plugin is moved to a non page placeholder it fails as it cant find a template in [move_plugin](https://github.com/divio/django-cms/blob/develop/cms/admin/placeholderadmin.py#L315) because page is None [here](https://github.com/divio/django-cms/blob/develop/cms/admin...
[ { "content": "# -*- coding: utf-8 -*-\nfrom distutils.version import LooseVersion\nfrom functools import wraps\nimport sys\nfrom cms.admin.placeholderadmin import PlaceholderAdmin\nfrom cms.plugin_pool import plugin_pool\nfrom django.contrib.admin.helpers import AdminForm\n\nimport django\nfrom django.conf impo...
[ { "content": "# -*- coding: utf-8 -*-\nfrom distutils.version import LooseVersion\nfrom functools import wraps\nimport sys\nfrom cms.admin.placeholderadmin import PlaceholderAdmin\nfrom cms.plugin_pool import plugin_pool\nfrom django.contrib.admin.helpers import AdminForm\n\nimport django\nfrom django.conf impo...
diff --git a/cms/admin/pageadmin.py b/cms/admin/pageadmin.py index f7a6b4226f5..6270d032f2b 100644 --- a/cms/admin/pageadmin.py +++ b/cms/admin/pageadmin.py @@ -568,7 +568,8 @@ def post_clear_placeholder(self, request, placeholder): def get_placeholder_template(self, request, placeholder): page = placeh...
zestedesavoir__zds-site-5936
Espaces insécables dans le titre de mise en Une **Description du bug** Espace non insécable dans l'aperçu de mis en Une. Ce problème n'a pas pu être par #5292 car l'aperçu est généré par du JavaScript. **Comment reproduire ?** La liste des étapes qui permet de reproduire le bug : 1. Se connecter en tant qu'...
[ { "content": "from django import template\nfrom django.template.defaultfilters import stringfilter\nfrom django.utils.safestring import mark_safe\n\nregister = template.Library()\n\n\n@register.filter()\n@stringfilter\ndef french_typography(str):\n \"\"\"\n Replaces spaces with non-breaking-spaces or narr...
[ { "content": "from django import template\nfrom django.template.defaultfilters import stringfilter\nfrom django.utils.safestring import mark_safe\n\nregister = template.Library()\n\n\n@register.filter()\n@stringfilter\ndef french_typography(str):\n \"\"\"\n Replaces spaces with non-breaking-spaces or narr...
diff --git a/assets/js/featured-resource-preview.js b/assets/js/featured-resource-preview.js index d61f4ff9da..2e0ef20e3b 100644 --- a/assets/js/featured-resource-preview.js +++ b/assets/js/featured-resource-preview.js @@ -3,6 +3,18 @@ ========================================================================== */ ...
awslabs__gluonts-1159
Multiprocessing hangs when num_workers > len(dataset) ## Description I'm trying to serialize a predictor trained on multiple cores. When calling the `serialize` method nothing happens. Running the same code, but without specifying `num_workers`, it works as expected. ## To Reproduce ```python from pathlib impo...
[ { "content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\").\n# You may not use this file except in compliance with the License.\n# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE...
[ { "content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\").\n# You may not use this file except in compliance with the License.\n# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE...
diff --git a/src/gluonts/itertools.py b/src/gluonts/itertools.py index bc8dc30fe8..c96a5751fe 100644 --- a/src/gluonts/itertools.py +++ b/src/gluonts/itertools.py @@ -21,8 +21,13 @@ def cyclic(it): """Like `itertools.cycle`, but does not store the data.""" + at_least_one = False while True: - yie...
ethereum__web3.py-709
Use EthereumTesterProvider backed by eth-tester in default import `from web3 import EthereumTesterProvider` should use the eth-tester one, not the testrpc one.
[ { "content": "import pkg_resources\nimport sys\n\nif sys.version_info < (3, 5):\n raise EnvironmentError(\"Python 3.5 or above is required\")\n\nfrom eth_account import Account # noqa: E402\nfrom web3.main import Web3 # noqa: E402\nfrom web3.providers.rpc import ( # noqa: E402\n HTTPProvider,\n)\nfrom ...
[ { "content": "import pkg_resources\nimport sys\n\nif sys.version_info < (3, 5):\n raise EnvironmentError(\"Python 3.5 or above is required\")\n\nfrom eth_account import Account # noqa: E402\nfrom web3.main import Web3 # noqa: E402\nfrom web3.providers.rpc import ( # noqa: E402\n HTTPProvider,\n)\nfrom ...
diff --git a/docs/providers.rst b/docs/providers.rst index b0fb815f06..f003653a0c 100644 --- a/docs/providers.rst +++ b/docs/providers.rst @@ -157,8 +157,9 @@ IPCProvider EthereumTesterProvider ~~~~~~~~~~~~~~~~~~~~~~ -.. warning:: Experimental: This provider is experimental and should be used with caution. - Ho...
spack__spack-37245
`llvm+gold` with external `binutils` build failure because of missing `plugin-api.h` header ### Steps to reproduce ``` git clone -c feature.manyFiles=true https://github.com/spack/spack.git spack install llvm@13.0.1 ``` ### Error message ``` ==> Installing llvm-13.0.1-uz4giobhbnsvrlmkq6siezxk6hxedpuw ==> No bi...
[ { "content": "# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\nimport os\nimport os.path\nimport re\nimport sys\n\nimport llnl.util.tty as tty\n\nimport spack.b...
[ { "content": "# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\nimport os\nimport os.path\nimport re\nimport sys\n\nimport llnl.util.tty as tty\n\nimport spack.b...
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index f02e72a8b3212c..5ec4ab9e63bcee 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -254,7 +254,7 @@ class Llvm(CMakePackage, CudaPack...
pwr-Solaar__Solaar-1026
metainfo file installed in the wrong place **Information** - Solaar version (`solaar --version` or `git describe --tags` if cloned from this repository): 1.0.4-57-g69f889e - Distribution: Fedora - Kernel version (ex. `uname -srmo`): N/A - Output of `solaar show`: N/A **Describe the bug** The `metainfo.xml` fil...
[ { "content": "#!/usr/bin/env python3\n\nfrom glob import glob as _glob\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# from solaar import NAME, __version__\n__version__ = '1.0.4'\nNAME = 'Solaar'\n\n\ndef _data_files():\n from os.path import dirname a...
[ { "content": "#!/usr/bin/env python3\n\nfrom glob import glob as _glob\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# from solaar import NAME, __version__\n__version__ = '1.0.4'\nNAME = 'Solaar'\n\n\ndef _data_files():\n from os.path import dirname a...
diff --git a/setup.py b/setup.py index 48b27eef65..597635fed5 100755 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ def _data_files(): yield 'share/applications', ['share/applications/solaar.desktop'] yield 'share/solaar/udev-rules.d', ['rules.d/42-logitech-unify-permissions.rules'] - yield 'share/metai...
ray-project__ray-6787
[projects] ray session stop does not kill pods <!--Please include [tune], [rllib], [autoscaler] etc. in the issue title if relevant--> ### What is the problem? Using ray 0.9.0dev0 Ray projects does not delete pods associated with the project when running `ray session stop` ### Reproduction (REQUIRED) Whe...
[ { "content": "import click\nimport copy\nimport jsonschema\nimport logging\nimport os\nfrom shutil import copyfile\nimport subprocess\nimport sys\nimport time\n\nimport ray\nfrom ray.autoscaler.commands import (\n attach_cluster,\n exec_cluster,\n create_or_update_cluster,\n rsync,\n teardown_clu...
[ { "content": "import click\nimport copy\nimport jsonschema\nimport logging\nimport os\nfrom shutil import copyfile\nimport subprocess\nimport sys\nimport time\n\nimport ray\nfrom ray.autoscaler.commands import (\n attach_cluster,\n exec_cluster,\n create_or_update_cluster,\n rsync,\n teardown_clu...
diff --git a/python/ray/projects/scripts.py b/python/ray/projects/scripts.py index 77374e0f4df19..2e6d4d8b03399 100644 --- a/python/ray/projects/scripts.py +++ b/python/ray/projects/scripts.py @@ -326,6 +326,10 @@ def attach(screen, tmux): @click.option("--name", help="Name of the session to stop", default=None) def ...
ethereum__web3.py-116
When default account is set, it should be used instead of the coinbase - Version: 3.1.0 - Python: 2.7/3.4/3.5 - OS: osx/linux/win ### What was wrong? https://github.com/pipermerriam/web3.py/blob/master/web3/contract.py#L437 should use `self.web3.eth.defaultAccount` instead of `self.web3.eth.coinbase` #### Cute Animal ...
[ { "content": "\"\"\"Interaction with smart contracts over Web3 connector.\n\n\"\"\"\nimport functools\n\nfrom eth_abi import (\n encode_abi,\n decode_abi,\n)\nfrom eth_abi.exceptions import (\n EncodingError,\n)\n\nfrom web3.utils.encoding import (\n encode_hex,\n)\nfrom web3.utils.formatting import...
[ { "content": "\"\"\"Interaction with smart contracts over Web3 connector.\n\n\"\"\"\nimport functools\n\nfrom eth_abi import (\n encode_abi,\n decode_abi,\n)\nfrom eth_abi.exceptions import (\n EncodingError,\n)\n\nfrom web3.utils.encoding import (\n encode_hex,\n)\nfrom web3.utils.formatting import...
diff --git a/tests/contracts/test_contract_transact_interface.py b/tests/contracts/test_contract_transact_interface.py index 514af186c5..5c0d5731dc 100644 --- a/tests/contracts/test_contract_transact_interface.py +++ b/tests/contracts/test_contract_transact_interface.py @@ -63,20 +63,33 @@ def test_transacting_with_con...
rasterio__rasterio-258
Reduce cython compile errors We get a bunch of compile-time warnings from the cython code. I think we could reduce these.
[ { "content": "#!/usr/bin/env python\n\n# Two environmental variables influence this script.\n#\n# GDAL_CONFIG: the path to a gdal-config program that points to GDAL headers,\n# libraries, and data files.\n#\n# PACKAGE_DATA: if defined, GDAL and PROJ4 data files will be copied into the\n# source or binary distri...
[ { "content": "#!/usr/bin/env python\n\n# Two environmental variables influence this script.\n#\n# GDAL_CONFIG: the path to a gdal-config program that points to GDAL headers,\n# libraries, and data files.\n#\n# PACKAGE_DATA: if defined, GDAL and PROJ4 data files will be copied into the\n# source or binary distri...
diff --git a/rasterio/_base.pyx b/rasterio/_base.pyx index 715e068d8..0473db2b5 100644 --- a/rasterio/_base.pyx +++ b/rasterio/_base.pyx @@ -99,13 +99,13 @@ cdef class DatasetReader(object): def read_crs(self): cdef char *proj_c = NULL - cdef char *auth_key = NULL - cdef char *auth_val = N...
microsoft__playwright-python-624
fix: handle cancelled tasks prevents `InvalidStateError` when the task has been cancelled, here: ```python callback.future.set_exception(parsed_error) ```
[ { "content": "# Copyright (c) Microsoft Corporation.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright (c) Microsoft Corporation.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/playwright/_impl/_connection.py b/playwright/_impl/_connection.py index a9659a9f1..66e1a3239 100644 --- a/playwright/_impl/_connection.py +++ b/playwright/_impl/_connection.py @@ -220,6 +220,8 @@ def _dispatch(self, msg: ParsedMessagePayload) -> None: id = msg.get("id") if id: ...
geopandas__geopandas-2175
BUG: explore() method - vmin is ignored if it is lower as the minimum of the values Can make up a small reproducer later, just putting it here already to not forget about it
[ { "content": "from statistics import mean\n\nimport geopandas\nfrom shapely.geometry import LineString\nimport numpy as np\nimport pandas as pd\n\n_MAP_KWARGS = [\n \"location\",\n \"prefer_canvas\",\n \"no_touch\",\n \"disable_3d\",\n \"png_enabled\",\n \"zoom_control\",\n \"crs\",\n \"...
[ { "content": "from statistics import mean\n\nimport geopandas\nfrom shapely.geometry import LineString\nimport numpy as np\nimport pandas as pd\n\n_MAP_KWARGS = [\n \"location\",\n \"prefer_canvas\",\n \"no_touch\",\n \"disable_3d\",\n \"png_enabled\",\n \"zoom_control\",\n \"crs\",\n \"...
diff --git a/geopandas/explore.py b/geopandas/explore.py index b8b3bb7c69..4d0322062a 100644 --- a/geopandas/explore.py +++ b/geopandas/explore.py @@ -396,8 +396,8 @@ def my_colormap(value): # scalar value defined in 'column' color = list(map(lambda x: cmap(x), df[column])) else: - v...
ietf-tools__datatracker-5262
apikey/del should not offer already disabled api keys `type_defect` | by kesara@staff.ietf.org ___ The issue here is the when a user tries to disable an API key from /accounts/apikey They are taken to view where all the API keys (including disabled ones) are listed in a dropdown. If the user selects an alread...
[ { "content": "# Copyright The IETF Trust 2007-2022, All Rights Reserved\n# -*- coding: utf-8 -*-\n#\n# Portions Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).\n# All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>\n#\n# Redistribution and use in source and binary forms, with or ...
[ { "content": "# Copyright The IETF Trust 2007-2022, All Rights Reserved\n# -*- coding: utf-8 -*-\n#\n# Portions Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).\n# All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>\n#\n# Redistribution and use in source and binary forms, with or ...
diff --git a/ietf/ietfauth/views.py b/ietf/ietfauth/views.py index b29b29321b..c02f2f2c02 100644 --- a/ietf/ietfauth/views.py +++ b/ietf/ietfauth/views.py @@ -777,7 +777,7 @@ class Meta: @person_required def apikey_disable(request): person = request.user.person - choices = [ (k.hash(), str(k)) for k in person...
mindsdb__lightwood-608
:wrench: Colored terminal output ## Task Modify the lightwood [logger class](https://github.com/mindsdb/lightwood/blob/stable/lightwood/helpers/log.py) so that its output is colored, depending on the log level. Color scheme is not set in stone, but should be something that makes sense, e.g.: red for `CRITICAL`, oran...
[ { "content": "import logging\nimport os\n\n\ndef initialize_log():\n pid = os.getpid()\n logging.basicConfig()\n log = logging.getLogger(f'lightwood-{pid}')\n log.setLevel(logging.DEBUG)\n return log\n\n\nlog = initialize_log()\n", "path": "lightwood/helpers/log.py" } ]
[ { "content": "import logging\nimport os\nimport colorlog\n\n\ndef initialize_log():\n pid = os.getpid()\n\n handler = colorlog.StreamHandler()\n handler.setFormatter(colorlog.ColoredFormatter())\n\n logging.basicConfig(handlers=[handler])\n log = logging.getLogger(f'lightwood-{pid}')\n log.set...
diff --git a/lightwood/helpers/log.py b/lightwood/helpers/log.py index d25dc4c01..afc37432f 100644 --- a/lightwood/helpers/log.py +++ b/lightwood/helpers/log.py @@ -1,10 +1,15 @@ import logging import os +import colorlog def initialize_log(): pid = os.getpid() - logging.basicConfig() + + handler = col...
watchdogpolska__feder-322
brak zapytań w zakładce SQL w Django debug toolbar ![image](https://user-images.githubusercontent.com/1237985/30499623-9559ddcc-9a5b-11e7-8225-0d7f6786960b.png)
[ { "content": "# -*- coding: utf-8 -*-\n'''\nLocal settings\n\n- Run in Debug mode\n- Use console backend for emails\n- Add Django Debug Toolbar\n- Add django-extensions as app\n'''\n\nfrom .common import * # noqa\n\n# DEBUG\n# ------------------------------------------------------------------------------\nDEBU...
[ { "content": "# -*- coding: utf-8 -*-\n'''\nLocal settings\n\n- Run in Debug mode\n- Use console backend for emails\n- Add Django Debug Toolbar\n- Add django-extensions as app\n'''\n\nfrom .common import * # noqa\n\n# DEBUG\n# ------------------------------------------------------------------------------\nDEBU...
diff --git a/config/settings/local.py b/config/settings/local.py index 23ad51f94..684a02734 100644 --- a/config/settings/local.py +++ b/config/settings/local.py @@ -40,7 +40,7 @@ # django-debug-toolbar # ------------------------------------------------------------------------------ -MIDDLEWARE_CLASSES += ('debug_to...
pypa__cibuildwheel-1226
Enable building on Python 3.11 without CIBW_PRERELEASE_PYTHONS ### Description The docs at https://cibuildwheel.readthedocs.io/en/stable/options/#prerelease-pythons say: > Once Python is ABI stable and enters the release candidate phase, that version of Python will become available without this flag. Now that Py...
[ { "content": "from __future__ import annotations\n\nimport contextlib\nimport fnmatch\nimport itertools\nimport os\nimport re\nimport shlex\nimport ssl\nimport subprocess\nimport sys\nimport textwrap\nimport time\nimport urllib.request\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom functools im...
[ { "content": "from __future__ import annotations\n\nimport contextlib\nimport fnmatch\nimport itertools\nimport os\nimport re\nimport shlex\nimport ssl\nimport subprocess\nimport sys\nimport textwrap\nimport time\nimport urllib.request\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom functools im...
diff --git a/README.md b/README.md index fecef3366..dc013f2ce 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ What does it do? <sup>¹ PyPy is only supported for manylinux wheels.</sup><br> <sup>² Windows arm64 support is experimental.</sup><br> <sup>³ Alpine 3.14 and very briefly 3.15's default python3 [was...
scikit-hep__pyhf-206
Add link back to GitHub on webpage At the moment there is no link on [the docs webpage](http://diana-hep.org/pyhf/) back to the pyhf GitHub page. It would be nice to add one to make navigation between the two easier. Perhaps a ["Fork me on GitHub" ribbon](https://blog.github.com/2008-12-19-github-ribbons/)?
[ { "content": "# -*- coding: utf-8 -*-\n#\n# pyhf documentation build configuration file, created by\n# sphinx-quickstart on Fri Feb 9 11:58:49 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# pyhf documentation build configuration file, created by\n# sphinx-quickstart on Fri Feb 9 11:58:49 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\...
diff --git a/docs/_templates/modifierclass.rst b/docs/_templates/modifierclass.rst index a486bcc35e..ec61c52c8f 100644 --- a/docs/_templates/modifierclass.rst +++ b/docs/_templates/modifierclass.rst @@ -1,3 +1,5 @@ +:github_url: https://github.com/diana-hep/pyhf/blob/master/{{module | replace(".", "/") }} + {{ name | ...
mkdocs__mkdocs-1330
Broken 'Edit on GitHub' link We recently updated to 0.17.0 and it seems to have broken our 'Edit on GitHub' link, you can see this in action [here](https://opensciencegrid.github.io/docs/). The link given is https://github.com/edit/master/docs/index.md when it should be https://github.com/opensciencegrid/docs/edit/mast...
[ { "content": "from __future__ import unicode_literals\n\nfrom collections import Sequence\nimport os\nfrom collections import namedtuple\n\nfrom mkdocs import utils, theme, plugins\nfrom mkdocs.config.base import Config, ValidationError\n\n\nclass BaseConfigOption(object):\n\n def __init__(self):\n se...
[ { "content": "from __future__ import unicode_literals\n\nfrom collections import Sequence\nimport os\nfrom collections import namedtuple\n\nfrom mkdocs import utils, theme, plugins\nfrom mkdocs.config.base import Config, ValidationError\n\n\nclass BaseConfigOption(object):\n\n def __init__(self):\n se...
diff --git a/docs/about/release-notes.md b/docs/about/release-notes.md index 22e2d90054..64dc8a9b1a 100644 --- a/docs/about/release-notes.md +++ b/docs/about/release-notes.md @@ -23,6 +23,7 @@ The current and past members of the MkDocs team. ## Development Version +* Bugfix: Support `repo_url` with missing ending ...
marshmallow-code__webargs-407
Improve documentation on fields.DelimitedList vs fields.List The docs for the fields.DelimitedList say it "can load from either a list or a delimited string" but I cannot get it to load from a list. `It's possible I'm doing something wrong` but When I swap out `fields.DelimitedList` for `fields.List` everything works a...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport functools\nimport inspect\nimport logging\nimport warnings\nfrom copy import copy\nfrom distutils.version import LooseVersion\n\ntry:\n import simplejson as json\nexcept ImportError:\n import json # type: ignore\n\ni...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport functools\nimport inspect\nimport logging\nimport warnings\nfrom copy import copy\nfrom distutils.version import LooseVersion\n\ntry:\n import simplejson as json\nexcept ImportError:\n import json # type: ignore\n\ni...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2c9f5ca1..ade17396 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,18 @@ Changelog --------- +5.4.0 (unreleased) +****************** + +Changes: + +* Use explicit type check for `fields.DelimitedList` when deciding to + parse value with `getlist()` (`#406 ...
carltongibson__django-filter-1540
QueryArrayWidget mutates passed data I think I've faced a small issue with the `QueryArrayWidget`, especially with this line: https://github.com/carltongibson/django-filter/blob/master/django_filters/widgets.py#L242, as described below: ```python class QueryArrayWidget(BaseCSVWidget, forms.TextInput): def va...
[ { "content": "from collections.abc import Iterable\nfrom copy import deepcopy\nfrom itertools import chain\nfrom re import search, sub\n\nfrom django import forms\nfrom django.db.models.fields import BLANK_CHOICE_DASH\nfrom django.forms.utils import flatatt\nfrom django.utils.datastructures import MultiValueDic...
[ { "content": "from collections.abc import Iterable\nfrom copy import deepcopy\nfrom itertools import chain\nfrom re import search, sub\n\nfrom django import forms\nfrom django.db.models.fields import BLANK_CHOICE_DASH\nfrom django.forms.utils import flatatt\nfrom django.utils.datastructures import MultiValueDic...
diff --git a/django_filters/widgets.py b/django_filters/widgets.py index 49afd2af..fe99fec9 100644 --- a/django_filters/widgets.py +++ b/django_filters/widgets.py @@ -246,6 +246,7 @@ class QueryArrayWidget(BaseCSVWidget, forms.TextInput): def value_from_datadict(self, data, files, name): if not isinstan...
sherlock-project__sherlock-1974
Trouble with the "{%}" argument <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Put x into all ...
[ { "content": "#! /usr/bin/env python3\n\n\"\"\"\nSherlock: Find Usernames Across Social Networks Module\n\nThis module contains the main logic to search for usernames at social\nnetworks.\n\"\"\"\n\nimport csv\nimport signal\nimport pandas as pd\nimport os\nimport platform\nimport re\nimport sys\nfrom argparse ...
[ { "content": "#! /usr/bin/env python3\n\n\"\"\"\nSherlock: Find Usernames Across Social Networks Module\n\nThis module contains the main logic to search for usernames at social\nnetworks.\n\"\"\"\n\nimport csv\nimport signal\nimport pandas as pd\nimport os\nimport platform\nimport re\nimport sys\nfrom argparse ...
diff --git a/README.md b/README.md index 52e6d7e1d..b71cc2bca 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,11 @@ usage: sherlock [-h] [--version] [--verbose] [--folderoutput FOLDEROUTPUT] [--browse] [--local] [--nsfw] USERNAMES [USERNAMES ...] -Sherlock: Find Usernames Across...
qtile__qtile-1969
Erratic layout change on desktop switch # Issue description I have experimented the same issue described in #1945 but I guess this is more general trouble around EWMH/NetWM interactions. If I use [wmctrl](http://tripie.sweb.cz/utils/wmctrl/) to try to interact with qtile, it regularly causes layout change on curren...
[ { "content": "# Copyright (c) 2019 Aldo Cortesi\n# Copyright (c) 2019 Sean Vig\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitatio...
[ { "content": "# Copyright (c) 2019 Aldo Cortesi\n# Copyright (c) 2019 Sean Vig\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitatio...
diff --git a/libqtile/backend/x11/xcore.py b/libqtile/backend/x11/xcore.py index fa5fee5efa..9577d57129 100644 --- a/libqtile/backend/x11/xcore.py +++ b/libqtile/backend/x11/xcore.py @@ -535,7 +535,7 @@ def handle_ClientMessage(self, event) -> None: # noqa: N802 if atoms["_NET_CURRENT_DESKTOP"] == opcode: ...
PrefectHQ__prefect-3607
Prefect logger doesn't use local Python logger timezone configuration ## Opened from the [Prefect Public Slack Community](https://join.slack.com/t/prefect-public/shared_invite/enQtNzE5OTU3OTQwNzc1LTQ5M2FkZmQzZjI0ODg1ZTBmOTc0ZjVjYWFjMWExZDAyYzBmYjVmMTE1NTQ1Y2IxZTllOTc4MmI3NzYxMDlhYWU) **dcshah88**: Hello Everyone, Ha...
[ { "content": "\"\"\"\nUtility functions for interacting with and configuring logging. The main entrypoint for\nretrieving loggers for customization is the `get_logger` utility.\n\nNote that Prefect Tasks come equipped with their own loggers. These can be accessed via:\n - `self.logger` if implementing a Ta...
[ { "content": "\"\"\"\nUtility functions for interacting with and configuring logging. The main entrypoint for\nretrieving loggers for customization is the `get_logger` utility.\n\nNote that Prefect Tasks come equipped with their own loggers. These can be accessed via:\n - `self.logger` if implementing a Ta...
diff --git a/changes/pr3607.yaml b/changes/pr3607.yaml new file mode 100644 index 000000000000..33a6cec50b72 --- /dev/null +++ b/changes/pr3607.yaml @@ -0,0 +1,23 @@ +# An example changelog entry +# +# 1. Choose one (or more if a PR encompasses multiple changes) of the following headers: +# - feature +# - enhanceme...
conan-io__conan-center-index-788
[question] Consistency in package and generator names After the discussion in https://github.com/conan-io/conan/issues/6269#issuecomment-570182130, most packages got normalized to use the format discussed in this comment (https://github.com/conan-io/conan-center-index/pull/690 and related). If I understand the inten...
[ { "content": "import os\nimport re\nimport shutil\nfrom conans import ConanFile, AutoToolsBuildEnvironment, RunEnvironment, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\n\n\nclass LibcurlConan(ConanFile):\n name = \"libcurl\"\n\n description = \"command line tool and library for trans...
[ { "content": "import os\nimport re\nimport shutil\nfrom conans import ConanFile, AutoToolsBuildEnvironment, RunEnvironment, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\n\n\nclass LibcurlConan(ConanFile):\n name = \"libcurl\"\n\n description = \"command line tool and library for trans...
diff --git a/recipes/libcurl/all/conanfile.py b/recipes/libcurl/all/conanfile.py index 3dd16082e28d0..0f24538819814 100644 --- a/recipes/libcurl/all/conanfile.py +++ b/recipes/libcurl/all/conanfile.py @@ -371,7 +371,6 @@ def package(self): os.remove(os.path.join(self.package_folder, 'lib', 'libcurl.la')) ...
encode__django-rest-framework-5472
Docs crash when a viewset is called `data` ## Checklist - [x] I have verified that that issue exists against the `master` branch of Django REST framework. (Commit 71ad99e0b276a90d055) - [x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate. - [x] This is not a usage que...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nimport re\nfrom collections import OrderedDict\n\nfrom django import template\nfrom django.template import loader\nfrom django.utils import six\nfrom django.utils.encoding import force_text, iri_to_uri\nfrom django.utils.html import escap...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nimport re\nfrom collections import OrderedDict\n\nfrom django import template\nfrom django.template import loader\nfrom django.utils import six\nfrom django.utils.encoding import force_text, iri_to_uri\nfrom django.utils.html import escap...
diff --git a/rest_framework/templates/rest_framework/docs/document.html b/rest_framework/templates/rest_framework/docs/document.html index 7a438f68d8..7922142f36 100644 --- a/rest_framework/templates/rest_framework/docs/document.html +++ b/rest_framework/templates/rest_framework/docs/document.html @@ -13,8 +13,8 @@ <h1...
pypi__warehouse-7327
WebAuthN user verification flag should be set to discouraged The current setting on the Pypi site is to ignore the UserVerificationOption setting in the `navigator.credentials.create()` call. Based on [this chromium documentation](https://chromium.googlesource.com/chromium/src/+/master/content/browser/webauth/uv_prefer...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
diff --git a/warehouse/utils/webauthn.py b/warehouse/utils/webauthn.py index 066b1f959e0a..3bd52a39bf7e 100644 --- a/warehouse/utils/webauthn.py +++ b/warehouse/utils/webauthn.py @@ -80,7 +80,14 @@ def get_credential_options(user, *, challenge, rp_name, rp_id): on the client side. """ options = pywebauth...
coala__coala-bears-1986
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`
[ { "content": "import requests\n\nfrom bears.general.URLBear import URLBear\n\nfrom coalib.bears.LocalBear import LocalBear\nfrom coalib.results.Result import Result\nfrom coalib.results.RESULT_SEVERITY import RESULT_SEVERITY\n\nfrom dependency_management.requirements.PipRequirement import PipRequirement\n\nfrom...
[ { "content": "import requests\n\nfrom bears.general.URLBear import URLBear\n\nfrom coalib.bears.LocalBear import LocalBear\nfrom coalib.results.Result import Result\nfrom coalib.results.RESULT_SEVERITY import RESULT_SEVERITY\n\nfrom dependency_management.requirements.PipRequirement import PipRequirement\n\nfrom...
diff --git a/bear-requirements.txt b/bear-requirements.txt index 012376d73a..82d28de389 100644 --- a/bear-requirements.txt +++ b/bear-requirements.txt @@ -16,7 +16,7 @@ html-linter~=0.3.0 isort~=4.2 language-check~=1.0 lxml==3.6.0 -memento_client~=0.5.3 +memento_client~=0.6.1 munkres3~=1.0 mypy-lang~=0.4.6 nbform...
hydroshare__hydroshare-4360
SOLR index is not removed when a public resource is deleted through the API **Description of the bug** The SOLR index is not removed when a public resource is deleted through the API Steps to reproduce the bug: 1. Create a public resource 2. DELETE `/hsapi/resource/{id}` (use the swagger interface) 3. Find your ...
[ { "content": "import os\nimport zipfile\nimport shutil\nimport logging\nimport requests\nimport datetime\nimport pytz\n\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.core.files import File\nfrom django.core.files.uploadedfile import UploadedFile\nfrom djan...
[ { "content": "import os\nimport zipfile\nimport shutil\nimport logging\nimport requests\nimport datetime\nimport pytz\n\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.core.files import File\nfrom django.core.files.uploadedfile import UploadedFile\nfrom djan...
diff --git a/hs_core/hydroshare/resource.py b/hs_core/hydroshare/resource.py index d9c98d7280..6a5fa3c4e7 100755 --- a/hs_core/hydroshare/resource.py +++ b/hs_core/hydroshare/resource.py @@ -800,6 +800,8 @@ def delete_resource(pk, request_username=None): Note: Only HydroShare administrators will be able to delete...
python-pillow__Pillow-5562
ImageOps.expand distorts image and converts png to grayscale <!-- Thank you for reporting an issue. Follow these guidelines to ensure your issue is handled properly. If you have a ... 1. General question: consider asking the question on Stack Overflow with the python-imaging-library tag: * https:...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# standard image operations\n#\n# History:\n# 2001-10-20 fl Created\n# 2001-10-23 fl Added autocontrast operator\n# 2001-12-18 fl Added Kevin's fit operator\n# 2004-03-14 fl Fixed potential division by zero in equalize\n# 2005-05-05 fl Fixed e...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# standard image operations\n#\n# History:\n# 2001-10-20 fl Created\n# 2001-10-23 fl Added autocontrast operator\n# 2001-12-18 fl Added Kevin's fit operator\n# 2004-03-14 fl Fixed potential division by zero in equalize\n# 2005-05-05 fl Fixed e...
diff --git a/Tests/test_imageops.py b/Tests/test_imageops.py index acd20bb5860..dc20d432f65 100644 --- a/Tests/test_imageops.py +++ b/Tests/test_imageops.py @@ -161,7 +161,13 @@ def test_expand_palette(): im_expanded = ImageOps.expand(im, 10, (255, 0, 0)) px = im_expanded.convert("RGB").load() - assert p...
ultrabug__py3status-1549
default config location I have installed ubuntu 18.04 and it makes sense to put my `i3status.conf` in `~/.config/i3/` but this is not found by default. I think we should add this path.
[ { "content": "import argparse\nimport os\n\n\ndef parse_cli():\n \"\"\"\n Parse the command line arguments\n \"\"\"\n\n # FIXME do we really want to do this here?\n\n # get home path\n home_path = os.path.expanduser(\"~\")\n\n # i3status config file default detection\n # respect i3status...
[ { "content": "import argparse\nimport os\n\n\ndef parse_cli():\n \"\"\"\n Parse the command line arguments\n \"\"\"\n\n # FIXME do we really want to do this here?\n\n # get home path\n home_path = os.path.expanduser(\"~\")\n\n # i3status config file default detection\n # respect i3status...
diff --git a/py3status/cli.py b/py3status/cli.py index b35b1a6c88..1e8593ba74 100644 --- a/py3status/cli.py +++ b/py3status/cli.py @@ -19,6 +19,7 @@ def parse_cli(): "{}/i3status/config".format( os.environ.get("XDG_CONFIG_HOME", "{}/.config".format(home_path)) ), + "{}/.config/i3/"...
sherlock-project__sherlock-2109
SHERLOCK// ERROR "string indices must be integers, not 'str' " como puedo solucionar este error que me sale al querer usar sherlock, no se como solucionarlo la verdad
[ { "content": "\"\"\"Sherlock Sites Information Module\n\nThis module supports storing information about websites.\nThis is the raw data that will be used to search for usernames.\n\"\"\"\nimport json\nimport requests\nimport secrets\n\nclass SiteInformation:\n def __init__(self, name, url_home, url_username_...
[ { "content": "\"\"\"Sherlock Sites Information Module\n\nThis module supports storing information about websites.\nThis is the raw data that will be used to search for usernames.\n\"\"\"\nimport json\nimport requests\nimport secrets\n\nclass SiteInformation:\n def __init__(self, name, url_home, url_username_...
diff --git a/sherlock/resources/data.json b/sherlock/resources/data.json index 25aab4902..d7d5dab08 100644 --- a/sherlock/resources/data.json +++ b/sherlock/resources/data.json @@ -1,5 +1,4 @@ { - "$schema": "data.schema.json", "1337x": { "errorMsg": [ "<title>Error something went wrong.</title>", diff...
bookwyrm-social__bookwyrm-747
Add publisher as a book field Currently, the only way to distinguish editions is by their cover and their publication date. It would be nice if editions were also referred to by their publisher. This is especially useful as part of the alt text of a cover for screen reader users, but also great for people who would ...
[ { "content": "\"\"\" database schema for books and shelves \"\"\"\nimport re\n\nfrom django.db import models\nfrom model_utils.managers import InheritanceManager\n\nfrom bookwyrm import activitypub\nfrom bookwyrm.settings import DOMAIN\n\nfrom .activitypub_mixin import OrderedCollectionPageMixin, ObjectMixin\nf...
[ { "content": "\"\"\" database schema for books and shelves \"\"\"\nimport re\n\nfrom django.db import models\nfrom model_utils.managers import InheritanceManager\n\nfrom bookwyrm import activitypub\nfrom bookwyrm.settings import DOMAIN\n\nfrom .activitypub_mixin import OrderedCollectionPageMixin, ObjectMixin\nf...
diff --git a/bookwyrm/models/book.py b/bookwyrm/models/book.py index 66b539bbc8..e6aa4d065c 100644 --- a/bookwyrm/models/book.py +++ b/bookwyrm/models/book.py @@ -96,6 +96,7 @@ def edition_info(self): if self.languages and self.languages[0] != "English" else None, str(self.publish...
biolab__orange3-text-360
TheGuardianCredentials returns wrong valid property ##### Text version 0.3.0 ##### Orange version 3.14 ##### Expected behavior ``` python credentials = TheGuardianCredentials('<your-api-key>') print(credentials.valid) ``` Should correctly return if key is valid ##### Actual behavior If the given key exceed...
[ { "content": "\"\"\" This module fetches data from The Guardian API.\n\nTo use first create :class:`TheGuardianCredentials`:\n\n >>> from orangecontrib.text.guardian import TheGuardianCredentials\n >>> credentials = TheGuardianCredentials('<your-api-key>')\n\nThen create :class:`TheGuardianAPI` object and...
[ { "content": "\"\"\" This module fetches data from The Guardian API.\n\nTo use first create :class:`TheGuardianCredentials`:\n\n >>> from orangecontrib.text.guardian import TheGuardianCredentials\n >>> credentials = TheGuardianCredentials('<your-api-key>')\n\nThen create :class:`TheGuardianAPI` object and...
diff --git a/orangecontrib/text/guardian.py b/orangecontrib/text/guardian.py index a8b1fa6ba..4c872d96e 100644 --- a/orangecontrib/text/guardian.py +++ b/orangecontrib/text/guardian.py @@ -42,7 +42,7 @@ def __init__(self, key): def valid(self): """ Check if given API key is valid. """ response = ...
pyca__cryptography-1549
Don't install enum34 on Python3.4+
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport platform\nimport subprocess...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport platform\nimport subprocess...
diff --git a/setup.py b/setup.py index ead5ec4f9015..32a87ba3c743 100644 --- a/setup.py +++ b/setup.py @@ -36,12 +36,14 @@ requirements = [ CFFI_DEPENDENCY, - "enum34", "pyasn1", SIX_DEPENDENCY, SETUPTOOLS_DEPENDENCY ] +if sys.version_info < (3, 4): + requirements.append("enum34") + # I...
nerfstudio-project__nerfstudio-1180
Feature extraction/matching doesn't work when using all the frames from a video with COLMAP and ns-process-data **Describe the bug** COLMAP isn't able to run feature extraction and subsequent bundle adjustment when I use all the frames from a video. Everything works fine when I use the default ~300 input frames. Have ...
[ { "content": "# Copyright 2022 The Nerfstudio Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\...
[ { "content": "# Copyright 2022 The Nerfstudio Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\...
diff --git a/nerfstudio/process_data/process_data_utils.py b/nerfstudio/process_data/process_data_utils.py index e028bf1c0e..907a0af98f 100644 --- a/nerfstudio/process_data/process_data_utils.py +++ b/nerfstudio/process_data/process_data_utils.py @@ -94,6 +94,7 @@ def convert_video_to_images( ffmpeg_cmd +=...
scrapy__scrapy-4323
Mac OS X, OS X → macOS We have a few references in the documentation where we use the old name of that OS. We should update them.
[ { "content": "\"\"\"\nMemoryUsage extension\n\nSee documentation in docs/topics/extensions.rst\n\"\"\"\nimport sys\nimport socket\nimport logging\nfrom pprint import pformat\nfrom importlib import import_module\n\nfrom twisted.internet import task\n\nfrom scrapy import signals\nfrom scrapy.exceptions import Not...
[ { "content": "\"\"\"\nMemoryUsage extension\n\nSee documentation in docs/topics/extensions.rst\n\"\"\"\nimport sys\nimport socket\nimport logging\nfrom pprint import pformat\nfrom importlib import import_module\n\nfrom twisted.internet import task\n\nfrom scrapy import signals\nfrom scrapy.exceptions import Not...
diff --git a/README.rst b/README.rst index 7fefaeec9f4..ce5973bcd1b 100644 --- a/README.rst +++ b/README.rst @@ -41,7 +41,7 @@ Requirements ============ * Python 3.5+ -* Works on Linux, Windows, Mac OSX, BSD +* Works on Linux, Windows, macOS, BSD Install ======= diff --git a/docs/intro/install.rst b/docs/intro/...
pytorch__vision-1932
I find some error in googlenet.py ? the kernel size should be 5 in branch3,but there is 3 `self.branch3 = nn.Sequential( BasicConv2d(in_channels, ch5x5red, kernel_size=1), BasicConv2d(ch5x5red, ch5x5, kernel_size=3, padding=1) )` Why?
[ { "content": "from __future__ import division\n\nimport warnings\nfrom collections import namedtuple\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nfrom torch.jit.annotations import Optional, Tuple\nfrom torch import Tensor\nfrom .utils import load_state_dict_from_url\n\n__all__ = ['Goog...
[ { "content": "from __future__ import division\n\nimport warnings\nfrom collections import namedtuple\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nfrom torch.jit.annotations import Optional, Tuple\nfrom torch import Tensor\nfrom .utils import load_state_dict_from_url\n\n__all__ = ['Goog...
diff --git a/torchvision/models/googlenet.py b/torchvision/models/googlenet.py index e0a45cf7e89..a96f903a882 100644 --- a/torchvision/models/googlenet.py +++ b/torchvision/models/googlenet.py @@ -224,6 +224,8 @@ def __init__(self, in_channels, ch1x1, ch3x3red, ch3x3, ch5x5red, ch5x5, pool_pr self.branch3 = ...
cal-itp__benefits-210
Secure critical Django cookies The following can be configured in [`settings.py`](https://github.com/cal-itp/benefits/blob/dev/benefits/settings.py). Setting these ensures the cookies expire and are deleted when the user's browser closes (makes them session cookies) * [x] [`CSRF_COOKIE_AGE`](https://docs.djangopr...
[ { "content": "\"\"\"\nDjango settings for benefits project.\n\"\"\"\nimport os\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = os...
[ { "content": "\"\"\"\nDjango settings for benefits project.\n\"\"\"\nimport os\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = os...
diff --git a/benefits/settings.py b/benefits/settings.py index eed9f90447..eee5acf647 100644 --- a/benefits/settings.py +++ b/benefits/settings.py @@ -62,11 +62,13 @@ ] ) +CSRF_COOKIE_AGE = None +CSRF_COOKIE_SAMESITE = "Strict" CSRF_COOKIE_HTTPONLY = True -SESSION_COOKIE_AGE = 3600 SESSION_COOKIE_SA...
raspiblitz__raspiblitz-3549
IP2Tor disable or revive? The IP2Tor service provided by FULMO is not working correctly and will not be continued. Thats wy the following issues were reported: - [x] #2247 - [x] #3335 - [x] #3417 There is some commitment by the community to setup a new instance of this service .- but we have to see if that will...
[ { "content": "#!/usr/bin/python3\n\n########################################################\n# SSH Dialogs to manage Subscriptions on the RaspiBlitz\n########################################################\n\nimport os\nimport subprocess\nimport sys\nimport time\nfrom datetime import datetime\n\nimport toml\n...
[ { "content": "#!/usr/bin/python3\n\n########################################################\n# SSH Dialogs to manage Subscriptions on the RaspiBlitz\n########################################################\n\nimport os\nimport subprocess\nimport sys\nimport time\nfrom datetime import datetime\n\nimport toml\n...
diff --git a/CHANGES.md b/CHANGES.md index 3e9913168..090b8d4df 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,6 +7,7 @@ - New: Support of X708 UPS HAT [details](https://github.com/rootzoll/raspiblitz/pull/3087) - New: BOS Telegram Bot Support (see OPTIONS on LND Balance of Satoshis menu entry) - New: LightningTipBo...
encode__uvicorn-110
Catch `HttpParserInvalidMethodError` exception `uvicorn==0.1.1` is throwing these errors ``` uvicorn[7423]: Unhandled exception in event loop uvicorn[7423]: Traceback (most recent call last): uvicorn[7423]: File "uvloop/handles/stream.pyx", line 784, in uvloop.loop.__uv_stream_on_read_impl uvicorn[7423]: Fil...
[ { "content": "import asyncio\nfrom email.utils import formatdate\nimport http\nimport logging\nimport time\nimport traceback\nfrom urllib.parse import unquote\nfrom uvicorn.protocols.websockets.websockets import websocket_upgrade\n\nimport httptools\n\n\ndef _get_default_headers():\n current_time = time.time...
[ { "content": "import asyncio\nfrom email.utils import formatdate\nimport http\nimport logging\nimport time\nimport traceback\nfrom urllib.parse import unquote\nfrom uvicorn.protocols.websockets.websockets import websocket_upgrade\n\nimport httptools\n\n\ndef _get_default_headers():\n current_time = time.time...
diff --git a/uvicorn/protocols/http/httptools.py b/uvicorn/protocols/http/httptools.py index b72288156..7344b01ea 100644 --- a/uvicorn/protocols/http/httptools.py +++ b/uvicorn/protocols/http/httptools.py @@ -93,6 +93,10 @@ def eof_received(self): def data_received(self, data): try: self.pars...
crytic__slither-2331
[Bug]: High level call does not always have function ### Describe the issue: I have two somehow similar examples, in the first one I have the function on the high level call in function safeAdd. In the next example I edited the array size to be constant instead of a literal, and I got None instead of a function obje...
[ { "content": "from typing import Union, Optional, Tuple, Any, TYPE_CHECKING\n\nfrom slither.core.expressions.expression import Expression\nfrom slither.core.expressions.literal import Literal\nfrom slither.core.solidity_types.elementary_type import ElementaryType\nfrom slither.core.solidity_types.type import Ty...
[ { "content": "from typing import Union, Optional, Tuple, Any, TYPE_CHECKING\n\nfrom slither.core.expressions.expression import Expression\nfrom slither.core.expressions.literal import Literal\nfrom slither.core.solidity_types.elementary_type import ElementaryType\nfrom slither.core.solidity_types.type import Ty...
diff --git a/slither/core/solidity_types/array_type.py b/slither/core/solidity_types/array_type.py index 9dfd3cf17b..04a458d685 100644 --- a/slither/core/solidity_types/array_type.py +++ b/slither/core/solidity_types/array_type.py @@ -74,7 +74,7 @@ def __str__(self) -> str: def __eq__(self, other: Any) -> bool: ...
saulpw__visidata-2387
unable to edit nested json value **Small description** Attempting to edit a nested value in JSON results in `NameError: name 'setitem' is not defined` **Expected result** Pressing `Enter` in edit mode for a value changes the value **Actual result with screenshot** ![image](https://github.com/saulpw/visid...
[ { "content": "from typing import Mapping\nimport inspect\nimport math\nimport numbers\n\nfrom visidata import vd, asyncthread, ENTER, deduceType\nfrom visidata import Sheet, Column, VisiData, ColumnItem, TableSheet, BaseSheet, Progress, ColumnAttr, SuspendCurses, TextSheet\nimport visidata\n\nvd.option('visibil...
[ { "content": "from typing import Mapping\nimport inspect\nimport math\nimport numbers\n\nfrom visidata import vd, asyncthread, ENTER, deduceType\nfrom visidata import Sheet, Column, VisiData, ColumnItem, TableSheet, BaseSheet, Progress, ColumnAttr, SuspendCurses, TextSheet, setitem\nimport visidata\n\nvd.option...
diff --git a/visidata/pyobj.py b/visidata/pyobj.py index 81c8546f8..8f9ac4176 100644 --- a/visidata/pyobj.py +++ b/visidata/pyobj.py @@ -4,7 +4,7 @@ import numbers from visidata import vd, asyncthread, ENTER, deduceType -from visidata import Sheet, Column, VisiData, ColumnItem, TableSheet, BaseSheet, Progress, Colu...
opsdroid__opsdroid-379
Error if parsers is empty # Description If you leave the `parsers` section of the config as an empty dictionary an error is thrown and startup fails. ## Steps to Reproduce Uncomment the parsers section of the config but with no actual parsers ``` parsers: # nothing else ``` ## Expected Functionality Th...
[ { "content": "\"\"\"Core components of OpsDroid.\"\"\"\n\nimport copy\nimport logging\nimport signal\nimport sys\nimport weakref\nimport asyncio\n\nfrom opsdroid.memory import Memory\nfrom opsdroid.connector import Connector\nfrom opsdroid.database import Database\nfrom opsdroid.loader import Loader\nfrom opsdr...
[ { "content": "\"\"\"Core components of OpsDroid.\"\"\"\n\nimport copy\nimport logging\nimport signal\nimport sys\nimport weakref\nimport asyncio\n\nfrom opsdroid.memory import Memory\nfrom opsdroid.connector import Connector\nfrom opsdroid.database import Database\nfrom opsdroid.loader import Loader\nfrom opsdr...
diff --git a/opsdroid/core.py b/opsdroid/core.py index 0f9269cee..6bf747a8e 100644 --- a/opsdroid/core.py +++ b/opsdroid/core.py @@ -213,7 +213,7 @@ async def get_ranked_skills(self, message): if "parsers" in self.config: _LOGGER.debug("Processing parsers...") - parsers = self.config[...
OpenNMT__OpenNMT-py-946
valid_batch_size In the train_single.py file , lines 120 to 124 ``` def train_iter_fct(): return build_dataset_iter( lazily_load_dataset("train", opt), fields, opt) def valid_iter_fct(): return build_dataset_iter( lazily_load_dataset("valid", opt), fields) ``` should be changed ``` def tr...
[ { "content": "#!/usr/bin/env python\n\"\"\"\n Training on a single process\n\"\"\"\nfrom __future__ import division\n\nimport argparse\nimport os\nimport random\nimport torch\n\nimport onmt.opts as opts\n\nfrom onmt.inputters.inputter import build_dataset_iter, lazily_load_dataset, \\\n _load_fields, _col...
[ { "content": "#!/usr/bin/env python\n\"\"\"\n Training on a single process\n\"\"\"\nfrom __future__ import division\n\nimport argparse\nimport os\nimport random\nimport torch\n\nimport onmt.opts as opts\n\nfrom onmt.inputters.inputter import build_dataset_iter, lazily_load_dataset, \\\n _load_fields, _col...
diff --git a/onmt/train_single.py b/onmt/train_single.py index bdb87f888c..70c051eb8f 100755 --- a/onmt/train_single.py +++ b/onmt/train_single.py @@ -121,7 +121,7 @@ def train_iter_fct(): return build_dataset_iter( lazily_load_dataset("train", opt), fields, opt) def valid_iter_fct(): return build_datas...
jschneier__django-storages-1083
Azure backend : unable to determine account name for shared key credential Hi! I'm trying to configure django-storages[azure] backend without success. In settings, I configured these variables: ``` DEFAULT_FILE_STORAGE = 'storages.backends.azure_storage.AzureStorage' AZURE_ACCOUNT_NAME = 'myaccount' AZURE_CU...
[ { "content": "import mimetypes\nfrom datetime import datetime, timedelta\nfrom tempfile import SpooledTemporaryFile\n\nfrom azure.core.exceptions import ResourceNotFoundError\nfrom azure.storage.blob import (\n BlobClient, BlobSasPermissions, BlobServiceClient, ContentSettings,\n generate_blob_sas,\n)\nfr...
[ { "content": "import mimetypes\nfrom datetime import datetime, timedelta\nfrom tempfile import SpooledTemporaryFile\n\nfrom azure.core.exceptions import ResourceNotFoundError\nfrom azure.storage.blob import (\n BlobClient, BlobSasPermissions, BlobServiceClient, ContentSettings,\n generate_blob_sas,\n)\nfr...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 10ccb2f47..37b4dee6a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,17 @@ django-storages CHANGELOG ========================= +Unreleased +********** + +Azure +----- + +- Fix using ``AZURE_CUSTOM_DOMAIN`` with an account key credential (`#1082`_, `#1083`_)...
carltongibson__django-filter-287
tests fail version 0.11.0 debian/sid ``` python2 ./runtests.py ....................................ssss...s..x.ss..x..x.....................................s..........x..................xx...................E..............u.......x........................x................s..................s....sss......... ===========...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import unicode_literals\n\nfrom datetime import timedelta\n\n\nfrom django import forms\nfrom django.db.models import Q\nfrom django.db.models.sql.constants import QUERY_TERMS\nfrom django.utils import six\nfrom django.utils.timezone import n...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import unicode_literals\n\nfrom datetime import timedelta\n\n\nfrom django import forms\nfrom django.db.models import Q\nfrom django.db.models.sql.constants import QUERY_TERMS\nfrom django.utils import six\nfrom django.utils.timezone import n...
diff --git a/django_filters/filters.py b/django_filters/filters.py index 9295fe5e0..1042de0e6 100644 --- a/django_filters/filters.py +++ b/django_filters/filters.py @@ -84,9 +84,9 @@ def filter(self, qs, value): lookup = self.lookup_type if value in ([], (), {}, None, ''): return qs -...
django-hijack__django-hijack-521
Custom managers may cause issues during table locking I ran into the same issue, the underlying reason was a `select_related` call to an optional ForeignKey via a reverse_relation in my managers `get_queryset` method. However, I have several managers on my model and `objects` is not the same as the [default manag...
[ { "content": "from contextlib import contextmanager\n\nimport django\nfrom django.contrib.auth import BACKEND_SESSION_KEY, get_user_model, load_backend, login\nfrom django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin\nfrom django.db import transaction\nfrom django.http import HttpResponseB...
[ { "content": "from contextlib import contextmanager\n\nimport django\nfrom django.contrib.auth import BACKEND_SESSION_KEY, get_user_model, load_backend, login\nfrom django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin\nfrom django.db import transaction\nfrom django.http import HttpResponseB...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a6b061f..24ef480f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: sudo apt install -y gettext aspell libenchant-de...
Pycord-Development__pycord-1089
link fix ### This link ![image](https://user-images.githubusercontent.com/73550760/155858568-cb766752-d19d-4def-a695-cefe013760c6.png) ### The link leads here: ![image](https://user-images.githubusercontent.com/73550760/155858609-b289802e-3039-4129-878e-3d78295076fa.png) I think you just need to replace thi...
[ { "content": "#\n# pycord documentation build configuration file, created by\n# sphinx-quickstart on Fri Aug 21 05:43:30 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\...
[ { "content": "#\n# pycord documentation build configuration file, created by\n# sphinx-quickstart on Fri Aug 21 05:43:30 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\...
diff --git a/docs/conf.py b/docs/conf.py index 83f9b8bcc0..fe4507668b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -100,7 +100,7 @@ release = version # This assumes a tag is available for final releases -branch = "master" if version.endswith("a") or version.endswith("b") else f"v{version}" +branch = "master" if ...
opensearch-project__opensearch-build-3240
[Bug]: src/system/os.py does not correctly return architecture for bsd platform ### Describe the bug Run `uname -m` will return follow in the freebsd: ``` amd64 ``` The code here does not support `amd64` as input: https://github.com/opensearch-project/opensearch-build/blob/main/src/system/os.py#L12-L19 ```...
[ { "content": "# Copyright OpenSearch Contributors\n# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport os\nimport subprocess\n\n\ndef current_architecture() -...
[ { "content": "# Copyright OpenSearch Contributors\n# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport os\nimport subprocess\n\n\ndef current_architecture() -...
diff --git a/src/system/os.py b/src/system/os.py index 5ceafd3b95..fbc6c3ece4 100644 --- a/src/system/os.py +++ b/src/system/os.py @@ -11,7 +11,7 @@ def current_architecture() -> str: architecture = subprocess.check_output(["uname", "-m"]).decode().strip() - if architecture == "x86_64": + if architecture ...
localstack__localstack-3256
EventBridge not working with AWS Go SDK and edge-service # Type of request: This is a ... [X] bug report [ ] feature request # Detailed description Using the AWS Go SDK (newest version, 1.35.31) doesn't work with LocalStack. For me it looks like the AWS Go SDK sends an old or invalid Authorization header. Using the A...
[ { "content": "import re\nimport os\nimport sys\nimport json\nimport logging\nfrom requests.models import Response\nfrom localstack import config\nfrom localstack.services import plugins\nfrom localstack.dashboard import infra as dashboard_infra\nfrom localstack.utils.aws import aws_stack\nfrom localstack.consta...
[ { "content": "import re\nimport os\nimport sys\nimport json\nimport logging\nfrom requests.models import Response\nfrom localstack import config\nfrom localstack.services import plugins\nfrom localstack.dashboard import infra as dashboard_infra\nfrom localstack.utils.aws import aws_stack\nfrom localstack.consta...
diff --git a/localstack/services/edge.py b/localstack/services/edge.py index 7aec4eaf46d10..adb5f80d2ef3c 100644 --- a/localstack/services/edge.py +++ b/localstack/services/edge.py @@ -165,6 +165,8 @@ def get_api_from_headers(headers, path=None): result = result_before = 'dynamodbstreams', config.PORT_DYNAMODB...
nautobot__nautobot-5181
ExternalIntegration missing Q filter for API <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reporting reproducible bugs. If you need assistance with Nautobot installation, or if you have a general question, please start a discussion instead: https:...
[ { "content": "from django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.contenttypes.models import ContentType\nimport django_filters\n\nfrom nautobot.core.filters import (\n BaseFilterSet,\n ContentTypeFilter,\n ContentTypeMultipleChoiceFilter,\n MultiVal...
[ { "content": "from django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.contenttypes.models import ContentType\nimport django_filters\n\nfrom nautobot.core.filters import (\n BaseFilterSet,\n ContentTypeFilter,\n ContentTypeMultipleChoiceFilter,\n MultiVal...
diff --git a/changes/5067.fixed b/changes/5067.fixed new file mode 100644 index 00000000000..502d64e639e --- /dev/null +++ b/changes/5067.fixed @@ -0,0 +1 @@ +Fixed missing search filter on ExternalIntegration. diff --git a/nautobot/extras/filters/__init__.py b/nautobot/extras/filters/__init__.py index 9ec1a101c70..7b1...
hylang__hy-2247
`let` doesn't detect assignments in loop clauses of comprehension forms ``` => (let [x 10] (lfor x (range 5) :if (> x 1) x)) [10 10 10 10 10] ``` `hy --spy` shows this compiles to: ``` _hy_let_x_1 = 10 [_hy_let_x_1 for x in range(5) if _hy_let_x_1 > 1] ``` `let` is supposed to allow some kinds of assi...
[ { "content": "\"Scope and variable tracking for Hy/Python scopes.\"\n\nimport ast\nimport itertools\nfrom abc import ABC, abstractmethod\n\nimport hy._compat\nfrom hy.errors import HyInternalError\nfrom hy.lex import mangle\nfrom hy.models import Expression, List, Symbol\n\n\ndef is_function_scope(scope):\n ...
[ { "content": "\"Scope and variable tracking for Hy/Python scopes.\"\n\nimport ast\nimport itertools\nfrom abc import ABC, abstractmethod\n\nimport hy._compat\nfrom hy.errors import HyInternalError\nfrom hy.lex import mangle\nfrom hy.models import Expression, List, Symbol\n\n\ndef is_function_scope(scope):\n ...
diff --git a/NEWS.rst b/NEWS.rst index 0d3f24b85..d6c20a02c 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -20,6 +20,7 @@ Bug Fixes * Elements of `builtins` such as `help` are no longer overridden until the Hy REPL actually starts. * Crash when using Keywords as `match` value. +* Fixed a scoping bug in comprehensions in ...
getnikola__nikola-2010
Author pages show stories example: https://getnikola.com/authors/roberto-alsina.html → anything between 7.5.0 and 7.6.1 (most of which were written by me, but that’s not important) cc @jjconti
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2015 Juanjo Conti.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including without limitation\n...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2015 Juanjo Conti.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including without limitation\n...
diff --git a/CHANGES.txt b/CHANGES.txt index f5caeaac05..b972965a87 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,11 @@ +New in master +============= + +Bugfixes +-------- + +* Don't add stories to author pages (Issue #2007) + New in v7.7.0 ============= diff --git a/nikola/plugins/task/authors.py b/nikola/...
Mailu__Mailu-2437
admin container on master branch fails with mysql Thank you for opening an issue with Mailu. Please understand that issues are meant for bugs and enhancement-requests. For **user-support questions**, reach out to us on [matrix](https://matrix.to/#/#mailu:tedomum.net). To be able to help you best, we need some more...
[ { "content": "import os\n\nfrom datetime import timedelta\nfrom socrate import system\nimport ipaddress\n\nDEFAULT_CONFIG = {\n # Specific to the admin UI\n 'DOCKER_SOCKET': 'unix:///var/run/docker.sock',\n 'BABEL_DEFAULT_LOCALE': 'en',\n 'BABEL_DEFAULT_TIMEZONE': 'UTC',\n 'BOOTSTRAP_SERVE_LOCAL'...
[ { "content": "import os\n\nfrom datetime import timedelta\nfrom socrate import system\nimport ipaddress\n\nDEFAULT_CONFIG = {\n # Specific to the admin UI\n 'DOCKER_SOCKET': 'unix:///var/run/docker.sock',\n 'BABEL_DEFAULT_LOCALE': 'en',\n 'BABEL_DEFAULT_TIMEZONE': 'UTC',\n 'BOOTSTRAP_SERVE_LOCAL'...
diff --git a/core/admin/mailu/configuration.py b/core/admin/mailu/configuration.py index 912a0204a..1ad9c6552 100644 --- a/core/admin/mailu/configuration.py +++ b/core/admin/mailu/configuration.py @@ -98,7 +98,7 @@ class ConfigManager: DB_TEMPLATES = { 'sqlite': 'sqlite:////{SQLITE_DATABASE_FILE}', ...
kserve__kserve-658
[Help wanted] Add e2e test for canary rollout /kind feature **Describe the solution you'd like** [A clear and concise description of what you want to happen.] **Anything else you would like to add:** [Miscellaneous information that will assist in solving the issue.]
[ { "content": "# Copyright 2019 kubeflow.org.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
[ { "content": "# Copyright 2019 kubeflow.org.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
diff --git a/python/kfserving/kfserving/constants/constants.py b/python/kfserving/kfserving/constants/constants.py index 483326156ce..c537444c53b 100644 --- a/python/kfserving/kfserving/constants/constants.py +++ b/python/kfserving/kfserving/constants/constants.py @@ -19,6 +19,7 @@ KFSERVING_KIND = 'InferenceService' ...
pyqtgraph__pyqtgraph-705
Fixed stale data about children in Parameter.opts See issue #493 Parameter.opts keeps stale data about children We can initialize a `Parameter` like so: ```python Parameter.create( ..., children=[...]) ``` This way, a key called `'children'` ends up in the `opts` of the newly created parameter. It is never update...
[ { "content": "from ..Qt import QtGui, QtCore\nimport os, weakref, re\nfrom ..pgcollections import OrderedDict\nfrom ..python2_3 import asUnicode, basestring\nfrom .ParameterItem import ParameterItem\n\nPARAM_TYPES = {}\nPARAM_NAMES = {}\n\ndef registerParameterType(name, cls, override=False):\n global PARAM_...
[ { "content": "from ..Qt import QtGui, QtCore\nimport os, weakref, re\nfrom ..pgcollections import OrderedDict\nfrom ..python2_3 import asUnicode, basestring\nfrom .ParameterItem import ParameterItem\n\nPARAM_TYPES = {}\nPARAM_NAMES = {}\n\ndef registerParameterType(name, cls, override=False):\n global PARAM_...
diff --git a/pyqtgraph/parametertree/Parameter.py b/pyqtgraph/parametertree/Parameter.py index e28085bfe9..be77c9ffc5 100644 --- a/pyqtgraph/parametertree/Parameter.py +++ b/pyqtgraph/parametertree/Parameter.py @@ -180,7 +180,7 @@ def __init__(self, **opts): raise Exception("Parameter must have a string na...
mindsdb__lightwood-633
Implement a `predictor_from_json_ai` high level method ## Task Lightwood aims at offering _declarative machine learning_ capabilities by enabling users to specify _what_ they want their models to learn, without necessarily having to look at the _how_. A key ingredient for this feature is our intermediate represen...
[ { "content": "import os\nfrom types import ModuleType\nfrom typing import Union\nimport dill\nimport pandas as pd\nfrom lightwood.api.types import DataAnalysis, JsonAI, ProblemDefinition\nimport lightwood\nfrom lightwood.api.predictor import PredictorInterface\nfrom lightwood.api.json_ai import generate_json_ai...
[ { "content": "import os\nfrom types import ModuleType\nfrom typing import Union\nimport dill\nimport pandas as pd\nfrom lightwood.api.types import DataAnalysis, JsonAI, ProblemDefinition\nimport lightwood\nfrom lightwood.api.predictor import PredictorInterface\nfrom lightwood.api.json_ai import generate_json_ai...
diff --git a/lightwood/api/high_level.py b/lightwood/api/high_level.py index 3d1d623a4..98e727fa8 100644 --- a/lightwood/api/high_level.py +++ b/lightwood/api/high_level.py @@ -176,3 +176,16 @@ def _module_from_code(code: str, module_name: str) -> ModuleType: spec.loader.exec_module(temp_module) return ...
aws-cloudformation__cfn-lint-1011
Follow up to absolute resource paths https://github.com/aws-cloudformation/cfn-python-lint/issues/691 This missed a location at rules/resources/IAM/Permissions.py line 59. (Not allowed to open a PR at work) Thanks!
[ { "content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
[ { "content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
diff --git a/src/cfnlint/rules/resources/iam/Permissions.py b/src/cfnlint/rules/resources/iam/Permissions.py index 94459eecc8..860e4eff34 100644 --- a/src/cfnlint/rules/resources/iam/Permissions.py +++ b/src/cfnlint/rules/resources/iam/Permissions.py @@ -56,7 +56,7 @@ def load_service_map(self): """ C...
RocketMap__RocketMap-682
Showing spawn points breaks map display ## Expected Behavior Showing spawn points should work ## Current Behavior Using a MySQL database, turning on spawn points doesn't work and stops the map display from updating. I get the following error in the output: ``` 2016-08-13T13:45:14.644151916Z app[web.1]: File "/app...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\nimport logging\nimport calendar\nimport sys\nfrom peewee import SqliteDatabase, InsertQuery, \\\n IntegerField, CharField, DoubleField, BooleanField, \\\n DateTimeField, CompositeKey, fn\nfrom playhouse.flask_utils import FlaskDB\nfrom playhouse.po...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\nimport logging\nimport calendar\nimport sys\nfrom peewee import SqliteDatabase, InsertQuery, \\\n IntegerField, CharField, DoubleField, BooleanField, \\\n DateTimeField, CompositeKey, fn\nfrom playhouse.flask_utils import FlaskDB\nfrom playhouse.po...
diff --git a/pogom/models.py b/pogom/models.py index 602bdf7263..60f69958f3 100755 --- a/pogom/models.py +++ b/pogom/models.py @@ -200,9 +200,13 @@ def get_spawnpoints(cls, swLat, swLng, neLat, neLng): ) ) - query = query.group_by(Pokemon.spawnpoint_id).dicts(...
piskvorky__gensim-234
object of type 'zip' has no len() There seams to be an issue with either `Sparse2Corpus` or `from_corpus`. Here is a simple example: ``` python import scipy import gensim bow = gensim.matutils.Sparse2Corpus(scipy.sparse.rand(10, 100)) dictionary = gensim.corpora.Dictionary.from_corpus(bow) ``` The errror is: ``` Tr...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2011 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nThis module contains math helper functions.\n\"\"\"\n\nfrom __future__ import with_statement\n\n\nim...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2011 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nThis module contains math helper functions.\n\"\"\"\n\nfrom __future__ import with_statement\n\n\nim...
diff --git a/gensim/matutils.py b/gensim/matutils.py index 9c5ab71820..8f450ce02f 100644 --- a/gensim/matutils.py +++ b/gensim/matutils.py @@ -307,7 +307,7 @@ def __init__(self, sparse, documents_columns=True): def __iter__(self): for indprev, indnow in izip(self.sparse.indptr, self.sparse.indptr[1:]): ...
celery__celery-4892
celery beat: OSError: [WinError 87] Suddenly I started getting this error when I run celery beat ``` celery beat -A proj ``` Funny thing is that celery worker still runs but beat doesn't. I'm running version 4.1 (latest version) btw. ``` celery beat v4.1.0 (latentcall) is starting. OSError: [WinError 87]...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Platforms.\n\nUtilities dealing with platform specifics: signals, daemonization,\nusers, groups, and so on.\n\"\"\"\nfrom __future__ import absolute_import, print_function, unicode_literals\n\nimport atexit\nimport errno\nimport math\nimport numbers\nimport os\nimpor...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Platforms.\n\nUtilities dealing with platform specifics: signals, daemonization,\nusers, groups, and so on.\n\"\"\"\nfrom __future__ import absolute_import, print_function, unicode_literals\n\nimport atexit\nimport errno\nimport math\nimport numbers\nimport os\nimpor...
diff --git a/celery/platforms.py b/celery/platforms.py index 7ae2fa71167..8bed59ac602 100644 --- a/celery/platforms.py +++ b/celery/platforms.py @@ -202,6 +202,10 @@ def remove_if_stale(self): print('Stale pidfile exists - Removing it.', file=sys.stderr) self.remove() ...
DDMAL__CantusDB-848
Source.number_of_melodies is not updating properly The `number_of_melodies` of a source should correspond to the number of chants in the source that contain a volpiano entry. When I check my test sources on the database that do not have any chants that contain a volpaino, the `number_of_melodies` field matches the tota...
[ { "content": "import operator\nfrom functools import reduce\n\nfrom django.contrib.postgres.search import SearchVector\nfrom django.db import models\nfrom django.db.models import Value\nfrom django.db.models.signals import post_save, post_delete\nfrom django.dispatch import receiver\n\nimport re\n\nfrom main_ap...
[ { "content": "import operator\nfrom functools import reduce\n\nfrom django.contrib.postgres.search import SearchVector\nfrom django.db import models\nfrom django.db.models import Value\nfrom django.db.models.signals import post_save, post_delete\nfrom django.dispatch import receiver\n\nimport re\n\nfrom main_ap...
diff --git a/django/cantusdb_project/main_app/signals.py b/django/cantusdb_project/main_app/signals.py index 9c090e74a..d5def7b75 100644 --- a/django/cantusdb_project/main_app/signals.py +++ b/django/cantusdb_project/main_app/signals.py @@ -91,9 +91,11 @@ def update_source_melody_count(instance): except Source.Doe...
opendatacube__datacube-core-1287
datacube dataset index api doesn't handle error effeciently ### Expected behaviour `proc-info.yaml` is not a proper dataset metadata file for indexing, i.e. https://data.dea.ga.gov.au/derivative/ga_ls5t_nbart_gm_cyear_3/3-0-0/x08/y23/1994--P1Y/ga_ls5t_nbart_gm_cyear_3_x08y23_1994--P1Y_final.proc-info.yaml, datacube in...
[ { "content": "# This file is part of the Open Data Cube, see https://opendatacube.org for more information\n#\n# Copyright (c) 2015-2020 ODC Contributors\n# SPDX-License-Identifier: Apache-2.0\n\"\"\"\nHigh level indexing operations/utilities\n\"\"\"\nimport json\nimport toolz\nfrom types import SimpleNamespace...
[ { "content": "# This file is part of the Open Data Cube, see https://opendatacube.org for more information\n#\n# Copyright (c) 2015-2020 ODC Contributors\n# SPDX-License-Identifier: Apache-2.0\n\"\"\"\nHigh level indexing operations/utilities\n\"\"\"\nimport json\nimport toolz\nfrom types import SimpleNamespace...
diff --git a/datacube/index/hl.py b/datacube/index/hl.py index e6162fe5c4..1e28484a10 100644 --- a/datacube/index/hl.py +++ b/datacube/index/hl.py @@ -149,6 +149,9 @@ def resolve(main_ds, uri): main_uuid = main_ds.id + if not main_uuid: + return None, "No id defined in dataset doc" + ...
pwndbg__pwndbg-724
Cannot get correct context when debug an ARM64 binary ## env pwndbg latest ubuntu 16.04 ARM64 gdbserver latest (8.3) aarch64-linux-gnu-gdb (gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu) ## problem When I use aarch64-linux-gnu-gdb and gdbserver to debug a ARM64 binary remotely, I cannot get the context of t...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nReading register value from the inferior, and provides a\nstandardized interface to registers like \"sp\" and \"pc\".\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfro...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nReading register value from the inferior, and provides a\nstandardized interface to registers like \"sp\" and \"pc\".\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfro...
diff --git a/pwndbg/regs.py b/pwndbg/regs.py index 9e7e05a3cce..37db5e5aa27 100644 --- a/pwndbg/regs.py +++ b/pwndbg/regs.py @@ -286,7 +286,7 @@ def __getattr__(self, attr): attr = attr.lstrip('$') try: # Seriously, gdb? Only accepts uint32. - if 'eflags' in attr: + ...
googleapis__google-cloud-python-1035
Rename main storage/datastore/etc. docs since captions now have the name We end up just repeating the names. See http://googlecloudplatform.github.io/gcloud-python/latest/ ![screen_shot_019](https://cloud.githubusercontent.com/assets/520669/9090839/750bac50-3b51-11e5-9244-b687c9f2fe00.png) and http://gcloud-python.re...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# gcloud documentation build configuration file, created by\n# sphinx-quickstart on Tue Jan 21 22:24:47 2014.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\n...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# gcloud documentation build configuration file, created by\n# sphinx-quickstart on Tue Jan 21 22:24:47 2014.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\n...
diff --git a/docs/_components/creating-a-project.rst b/docs/_components/creating-a-project.rst deleted file mode 100644 index 04a94b3a0ba1..000000000000 --- a/docs/_components/creating-a-project.rst +++ /dev/null @@ -1,27 +0,0 @@ -* **Create a project** - - Start off by visiting https://cloud.google.com/console - and...
comfyanonymous__ComfyUI-1463
Lots of web server connection info spam after pulling yesterday's source, --dont-print-server doesn't work Mostly it's winsock and access logs, but there's a ton of spam because custom nodes all have their own JS files and stylesheets. Just mousing over the graph caused multiple reloads of JS / CSS for some reason, so...
[ { "content": "import os\nimport sys\nimport asyncio\nimport traceback\n\nimport nodes\nimport folder_paths\nimport execution\nimport uuid\nimport urllib\nimport json\nimport glob\nimport struct\nfrom PIL import Image, ImageOps\nfrom PIL.PngImagePlugin import PngInfo\nfrom io import BytesIO\n\ntry:\n import a...
[ { "content": "import os\nimport sys\nimport asyncio\nimport traceback\n\nimport nodes\nimport folder_paths\nimport execution\nimport uuid\nimport urllib\nimport json\nimport glob\nimport struct\nfrom PIL import Image, ImageOps\nfrom PIL.PngImagePlugin import PngInfo\nfrom io import BytesIO\n\ntry:\n import a...
diff --git a/server.py b/server.py index be33f410062..d040604998f 100644 --- a/server.py +++ b/server.py @@ -603,7 +603,7 @@ async def publish_loop(self): await self.send(*msg) async def start(self, address, port, verbose=True, call_on_start=None): - runner = web.AppRunner(self.app) + ...
jazzband__django-oauth-toolkit-1276
Allow Authorization Code flow without a `client_secret` After enabling PKCE with `PKCE_REQUIRED': True` I'm unable to retrieve an oauth response when submitting a request to `/o/token/ `. It provides a authentication code fine. This article has been used as reference: https://www.liip.ch/en/blog/authorization-code-...
[ { "content": "import base64\nimport binascii\nimport http.client\nimport inspect\nimport json\nimport logging\nimport uuid\nfrom collections import OrderedDict\nfrom datetime import datetime, timedelta\nfrom urllib.parse import unquote_plus\n\nimport requests\nfrom django.conf import settings\nfrom django.contr...
[ { "content": "import base64\nimport binascii\nimport http.client\nimport inspect\nimport json\nimport logging\nimport uuid\nfrom collections import OrderedDict\nfrom datetime import datetime, timedelta\nfrom urllib.parse import unquote_plus\n\nimport requests\nfrom django.conf import settings\nfrom django.contr...
diff --git a/AUTHORS b/AUTHORS index 507ef29fd..4be6ac505 100644 --- a/AUTHORS +++ b/AUTHORS @@ -9,6 +9,7 @@ Contributors Abhishek Patel Adam Johnson +Adheeth P Praveen Alan Crosswell Alejandro Mantecon Guillen Aleksander Vaskevich diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a135d2a6..eed4b8b9d 100644 --- a/...
searx__searx-2232
[fix] Sphinx 3.2.1 build: add missing "engines" variable in the jinja context ## What does this PR do? Fix PR #2210 which upgrade Sphinx version to 3.2.1. The admin/engines.html page is empty. ## Why is this change important? Fix the admin/engines.html page. ## How to test this PR locally? Check the a...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport sys, os\nfrom sphinx_build_tools import load_sphinx_config\nfrom searx.version import VERSION_STRING\nfrom pallets_sphinx_themes import ProjectLink\n\nfrom searx.brand import GIT_URL\nGIT_BRANCH = os.environ.get(\"GIT_BRANCH\", \"master\")\nfrom searx.brand impor...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport sys, os\nfrom sphinx_build_tools import load_sphinx_config\nfrom searx.version import VERSION_STRING\nfrom pallets_sphinx_themes import ProjectLink\n\nfrom searx.brand import GIT_URL\nGIT_BRANCH = os.environ.get(\"GIT_BRANCH\", \"master\")\nfrom searx.brand impor...
diff --git a/docs/conf.py b/docs/conf.py index aa08654473..ad884fd036 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -28,10 +28,11 @@ exclude_patterns = ['build-templates/*.rst'] from searx import webapp -from searx.engines import engines +import searx.engines +searx.engines.initialize_engines(searx.settings['engi...
lutris__lutris-4033
Preferences dialog content is too wide for the dialog ### Bug description The actual content of the preferences dialog is unreasonably wide, and requires horizontal scrolling in the preferences window, at its default size. I think the basic problem is that several labels need to word wrap so they don't "prop the wi...
[ { "content": "\"\"\"Configuration dialog for client and system options\"\"\"\nfrom gettext import gettext as _\n\nfrom gi.repository import Gtk\n\nfrom lutris.config import LutrisConfig\nfrom lutris.gui.config.boxes import SystemBox\nfrom lutris.gui.config.common import GameDialogCommon\nfrom lutris.gui.config....
[ { "content": "\"\"\"Configuration dialog for client and system options\"\"\"\nfrom gettext import gettext as _\n\nfrom gi.repository import Gtk\n\nfrom lutris.config import LutrisConfig\nfrom lutris.gui.config.boxes import SystemBox\nfrom lutris.gui.config.common import GameDialogCommon\nfrom lutris.gui.config....
diff --git a/lutris/gui/config/preferences_dialog.py b/lutris/gui/config/preferences_dialog.py index ceb4db4a6a..9a60af788e 100644 --- a/lutris/gui/config/preferences_dialog.py +++ b/lutris/gui/config/preferences_dialog.py @@ -17,7 +17,7 @@ class PreferencesDialog(GameDialogCommon): def __init__(self, parent=None)...
pypa__pip-10560
pip install --upgrade pip on v22.0 broken on windows ### Description `pip install --upgrade pip` is failing on windows GitHub actions runners with v22.0 See https://github.com/pyvista/pyvista/pull/2113 See example workflow shared below See https://github.com/pyvista/pyvista/runs/4998090770?check_suite_focus...
[ { "content": "# The following comment should be removed at some point in the future.\n# mypy: strict-optional=False\n\nimport contextlib\nimport errno\nimport getpass\nimport hashlib\nimport io\nimport logging\nimport os\nimport posixpath\nimport shutil\nimport stat\nimport sys\nimport urllib.parse\nfrom io imp...
[ { "content": "# The following comment should be removed at some point in the future.\n# mypy: strict-optional=False\n\nimport contextlib\nimport errno\nimport getpass\nimport hashlib\nimport io\nimport logging\nimport os\nimport posixpath\nimport shutil\nimport stat\nimport sys\nimport urllib.parse\nfrom io imp...
diff --git a/news/10560.bugfix.rst b/news/10560.bugfix.rst new file mode 100644 index 00000000000..988e8f3b244 --- /dev/null +++ b/news/10560.bugfix.rst @@ -0,0 +1 @@ +Fix conditional checks to prevent ``pip.exe`` from trying to modify itself, on Windows. diff --git a/src/pip/_internal/utils/misc.py b/src/pip/_internal...
OCHA-DAP__hdx-ckan-1140
SSL transition - uploading data errors ![https issue upload](https://cloud.githubusercontent.com/assets/1542984/3931482/04a5d1a8-2459-11e4-8231-2692af87658c.png) There are 2 separates problems: [blocked] The page at 'https://data.ochadata.net/storage/upload_handle' was loaded over HTTPS, but ran insecure content from...
[ { "content": "import ckanext.hdx_theme.licenses as hdx_licenses\n\nimport ckan.plugins as plugins\nimport ckan.plugins.toolkit as toolkit\nimport ckan.model.package as package\nimport ckan.model.license as license\nimport pylons.config as config\nimport version\n\nimport ckanext.hdx_theme.caching as caching\nim...
[ { "content": "import ckanext.hdx_theme.licenses as hdx_licenses\n\nimport ckan.plugins as plugins\nimport ckan.plugins.toolkit as toolkit\nimport ckan.model.package as package\nimport ckan.model.license as license\nimport pylons.config as config\nimport version\n\nimport ckanext.hdx_theme.caching as caching\nim...
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/plugin.py b/ckanext-hdx_theme/ckanext/hdx_theme/plugin.py index 3d075fc361..e24cd72879 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/plugin.py +++ b/ckanext-hdx_theme/ckanext/hdx_theme/plugin.py @@ -40,6 +40,7 @@ class HDXThemePlugin(plugins.SingletonPlugin): ...
netket__netket-1112
Upgrade `flakehell` in the pre-commit hook It seems that `flakehell` is not actively maintained, and it is incompatible with `flake8 4.x` released in last October (see flakehell/flakehell#22). That issue is not resolved after a few months. If a new developer of NetKet runs `pre-commit install-hooks`, it will just fail....
[ { "content": "from setuptools import setup, find_packages\n\nDEV_DEPENDENCIES = [\n \"pytest>=6\",\n \"pytest-xdist>=2\",\n \"coverage>=5\",\n \"pytest-cov>=2.10.1\",\n \"networkx~=2.4\",\n \"flaky>=3.7\",\n \"pre-commit\",\n \"black==22.1.0\",\n \"flakehell>=0.9\",\n]\nMPI_DEPENDENCI...
[ { "content": "from setuptools import setup, find_packages\n\nDEV_DEPENDENCIES = [\n \"pytest>=6\",\n \"pytest-xdist>=2\",\n \"coverage>=5\",\n \"pytest-cov>=2.10.1\",\n \"networkx~=2.4\",\n \"pre-commit>=2.7\",\n \"black==22.1.0\",\n \"flake8==4.0.1\",\n]\nMPI_DEPENDENCIES = [\"mpi4py>=3...
diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000000..1648d0b67e --- /dev/null +++ b/.flake8 @@ -0,0 +1,6 @@ +[flake8] +max-line-length = 88 +ignore = E203,E266,E501,E731,E741,W503 +per-file-ignores = + **/__init__.py:E402,F401 + netket/nn/activation.py:F401 diff --git a/.pre-commit-config.yaml b/...
geopandas__geopandas-1487
REGR: *Sampled plotting scheme fails GeoPandas 0.8.0 has a regression causing plots with scheme `JenksCaspallSampled` or `FisherJenksSampled` fail. ```python df = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres')) df.plot(column='pop_est', scheme='JenksCaspallSampled') ---------------------------------...
[ { "content": "import warnings\n\nimport numpy as np\nimport pandas as pd\n\nimport geopandas\n\nfrom distutils.version import LooseVersion\n\n\ndef deprecated(new):\n \"\"\"Helper to provide deprecation warning.\"\"\"\n\n def old(*args, **kwargs):\n warnings.warn(\n \"{} is intended for ...
[ { "content": "import warnings\n\nimport numpy as np\nimport pandas as pd\n\nimport geopandas\n\nfrom distutils.version import LooseVersion\n\n\ndef deprecated(new):\n \"\"\"Helper to provide deprecation warning.\"\"\"\n\n def old(*args, **kwargs):\n warnings.warn(\n \"{} is intended for ...
diff --git a/geopandas/plotting.py b/geopandas/plotting.py index cc5168a160..330da9d4f0 100644 --- a/geopandas/plotting.py +++ b/geopandas/plotting.py @@ -916,7 +916,7 @@ class identifier and the bins. if "k" not in spec.args: del classification_kwds["k"] try: - binning = scheme_class(...
medtagger__MedTagger-409
Sending Label with Brush Selection doesn't work ## Current Behavior Sending Label with Brush Selection doesn't work. ## Expected Behavior Label with Brush Selection should be sent correctly. ## Steps to Reproduce the Problem 1. Go to labeling page and use Brush Tool 2. Send label 3. "Can't send ...
[ { "content": "\"\"\"Module responsible for business logic in all Scans endpoints.\"\"\"\nimport io\nimport logging\nfrom typing import Callable, Iterable, Dict, List, Tuple, Any\n\nfrom cassandra import WriteTimeout\nfrom sqlalchemy.exc import IntegrityError\nfrom sqlalchemy.orm.exc import NoResultFound\nfrom P...
[ { "content": "\"\"\"Module responsible for business logic in all Scans endpoints.\"\"\"\nimport io\nimport logging\nfrom typing import Callable, Iterable, Dict, List, Tuple, Any\n\nfrom cassandra import WriteTimeout\nfrom sqlalchemy.exc import IntegrityError\nfrom sqlalchemy.orm.exc import NoResultFound\nfrom P...
diff --git a/backend/medtagger/api/scans/business.py b/backend/medtagger/api/scans/business.py index f501b919..876f16c2 100644 --- a/backend/medtagger/api/scans/business.py +++ b/backend/medtagger/api/scans/business.py @@ -110,8 +110,8 @@ def validate_label_payload(elements: List[Dict], files: Dict[str, bytes]) -> Non ...
ibis-project__ibis-3703
SettingWithCopyWarning on table select using pandas backend ``` import ibis import pandas as pd ibis.options.interactive = True conn = ibis.pandas.connect({'foo': pd.read_csv('foo.csv', dtype=str)}) foo_table = conn.table('foo') foo_table.select('col') ``` Yields a SettingWithCopyWarning warning: `...
[ { "content": "\"\"\"Dispatching code for Selection operations.\n\"\"\"\n\n\nimport functools\nimport operator\nfrom collections import OrderedDict, defaultdict\nfrom operator import methodcaller\nfrom typing import List, Optional\n\nimport pandas as pd\nfrom multipledispatch import Dispatcher\nfrom toolz import...
[ { "content": "\"\"\"Dispatching code for Selection operations.\n\"\"\"\n\n\nimport functools\nimport operator\nfrom collections import OrderedDict, defaultdict\nfrom operator import methodcaller\nfrom typing import List, Optional\n\nimport pandas as pd\nfrom multipledispatch import Dispatcher\nfrom toolz import...
diff --git a/ibis/backends/pandas/execution/selection.py b/ibis/backends/pandas/execution/selection.py index da9cae0c1173..9ae6b0b6964e 100644 --- a/ibis/backends/pandas/execution/selection.py +++ b/ibis/backends/pandas/execution/selection.py @@ -333,7 +333,8 @@ def build_df_from_selection( renamed_cols[fr...
scrapy__scrapy-5006
Remove the use of parsel.Selector._default_type Used at https://github.com/scrapy/scrapy/blob/58ca8bbf6d1589bd0c8cc1ebda52299346f55e8a/scrapy/selector/unified.py#L72 We should stop relying on this private class variable unless there’s a good reason for it. [Noticed](https://github.com/scrapy/parsel/pull/181/files...
[ { "content": "\"\"\"\nXPath selectors based on lxml\n\"\"\"\n\nfrom parsel import Selector as _ParselSelector\nfrom scrapy.utils.trackref import object_ref\nfrom scrapy.utils.python import to_bytes\nfrom scrapy.http import HtmlResponse, XmlResponse\n\n\n__all__ = ['Selector', 'SelectorList']\n\n\ndef _st(respon...
[ { "content": "\"\"\"\nXPath selectors based on lxml\n\"\"\"\n\nfrom parsel import Selector as _ParselSelector\nfrom scrapy.utils.trackref import object_ref\nfrom scrapy.utils.python import to_bytes\nfrom scrapy.http import HtmlResponse, XmlResponse\n\n\n__all__ = ['Selector', 'SelectorList']\n\n\ndef _st(respon...
diff --git a/scrapy/selector/unified.py b/scrapy/selector/unified.py index a2587143301..08f08e8d79a 100644 --- a/scrapy/selector/unified.py +++ b/scrapy/selector/unified.py @@ -69,7 +69,7 @@ def __init__(self, response=None, text=None, type=None, root=None, **kwargs): raise ValueError(f'{self.__class__.__n...
kubeflow__pipelines-268
Text/link displayed after calling run_pipeline should be "Run link" not "Job link" Here: https://github.com/kubeflow/pipelines/blob/master/sdk/python/kfp/_client.py#L153
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/samples/notebooks/KubeFlow Pipeline Using TFX OSS Components.ipynb b/samples/notebooks/KubeFlow Pipeline Using TFX OSS Components.ipynb index 5a368dae05a..a6f8027e98b 100644 --- a/samples/notebooks/KubeFlow Pipeline Using TFX OSS Components.ipynb +++ b/samples/notebooks/KubeFlow Pipeline Using TFX OSS Com...
carpentries__amy-2358
Server Error when editing community roles Reported by @ErinBecker at `/workshops/person/<id>/edit/#communityroles` and `/communityroles/role/<another id>/edit/` in production. Reproduced on test AMY: ``` TypeError at /communityroles/role/25/edit/ the JSON object must be str, bytes or bytearray, not list Error du...
[ { "content": "import json\nimport logging\n\nfrom django import forms\nfrom django.http import QueryDict\nfrom django.utils.datastructures import MultiValueDict\n\nlogger = logging.getLogger(\"amy\")\n\n\nclass CustomKeysWidget(forms.TextInput):\n template_name = \"widgets/custom_keys_widget.html\"\n\n de...
[ { "content": "import json\nimport logging\n\nfrom django import forms\nfrom django.http import QueryDict\nfrom django.utils.datastructures import MultiValueDict\n\nlogger = logging.getLogger(\"amy\")\n\n\nclass CustomKeysWidget(forms.TextInput):\n template_name = \"widgets/custom_keys_widget.html\"\n\n de...
diff --git a/amy/communityroles/fields.py b/amy/communityroles/fields.py index 0a459e469..6ea1cf49f 100644 --- a/amy/communityroles/fields.py +++ b/amy/communityroles/fields.py @@ -63,7 +63,7 @@ def value_from_datadict( values = data.getlist(name) except AttributeError: values = data....
rlworkgroup__garage-1567
DefaultWorker crashes in non-deterministic mode ```sh File "/home/rjulian/venv/lib/python3.5/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/rjulian/venv/lib/python3.5/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/r...
[ { "content": "\"\"\"Default Worker class.\"\"\"\nfrom collections import defaultdict\n\nimport gym\nimport numpy as np\n\nfrom garage import TrajectoryBatch\nfrom garage.experiment import deterministic\nfrom garage.sampler.env_update import EnvUpdate\nfrom garage.sampler.worker import Worker\n\n\nclass DefaultW...
[ { "content": "\"\"\"Default Worker class.\"\"\"\nfrom collections import defaultdict\n\nimport gym\nimport numpy as np\n\nfrom garage import TrajectoryBatch\nfrom garage.experiment import deterministic\nfrom garage.sampler.env_update import EnvUpdate\nfrom garage.sampler.worker import Worker\n\n\nclass DefaultW...
diff --git a/src/garage/sampler/default_worker.py b/src/garage/sampler/default_worker.py index 594ee32264..926114cd3f 100644 --- a/src/garage/sampler/default_worker.py +++ b/src/garage/sampler/default_worker.py @@ -52,7 +52,8 @@ def __init__( def worker_init(self): """Initialize a worker.""" - de...
jupyterhub__jupyterhub-180
sqlAlch Operational error Had to hard reboot my computer. Db seem readonly (lock file ? ) Should probably be catched, and exit with error code. ``` [E 2015-03-06 16:13:05.801 JupyterHub ioloop:588] Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x10d9b27b8>, <tornado.concurrent.Fu...
[ { "content": "#!/usr/bin/env python\n\"\"\"The multi-user notebook application\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport atexit\nimport binascii\nimport logging\nimport os\nimport signal\nimport socket\nimport sys\nfrom datetime impo...
[ { "content": "#!/usr/bin/env python\n\"\"\"The multi-user notebook application\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport atexit\nimport binascii\nimport logging\nimport os\nimport signal\nimport socket\nimport sys\nfrom datetime impo...
diff --git a/jupyterhub/app.py b/jupyterhub/app.py index 269b3dc26f..90a6a8fd45 100644 --- a/jupyterhub/app.py +++ b/jupyterhub/app.py @@ -1011,8 +1011,12 @@ def stop(self): @gen.coroutine def launch_instance_async(self, argv=None): - yield self.initialize(argv) - yield self.start() + ...
pymedusa__Medusa-3292
[APP SUBMITTED]: TypeError: integer argument expected, got float ### INFO **Python Version**: `2.7.13 (default, Apr 11 2017, 16:05:39) [GCC 4.8.4]` **Operating System**: `Linux-4.2.8-x86_64-with-glibc2.2.5` **Locale**: `UTF-8` **Branch**: [master](../tree/master) **Database**: `44.8` **Commit**: pymedusa/Medusa@b16e0e5...
[ { "content": "# coding=utf-8\n\n\"\"\"Backlog module.\"\"\"\n\nimport datetime\nimport logging\nimport threading\n\nfrom medusa import app, common, db, scheduler, ui\nfrom medusa.helper.common import episode_num\nfrom medusa.logger.adapters.style import BraceAdapter\nfrom medusa.search.queue import BacklogQueue...
[ { "content": "# coding=utf-8\n\n\"\"\"Backlog module.\"\"\"\n\nimport datetime\nimport logging\nimport threading\n\nfrom medusa import app, common, db, scheduler, ui\nfrom medusa.helper.common import episode_num\nfrom medusa.logger.adapters.style import BraceAdapter\nfrom medusa.search.queue import BacklogQueue...
diff --git a/medusa/search/backlog.py b/medusa/search/backlog.py index 40c7dd8fc5..e4514ea9aa 100644 --- a/medusa/search/backlog.py +++ b/medusa/search/backlog.py @@ -30,7 +30,8 @@ def next_run(self): if self.action._last_backlog <= 1: return datetime.date.today() else: - retur...
apache__tvm-16388
[Bugfix] Disable SingleEnvThreadVerifier During TensorIR scheduling, the `IterVar`s that represent environment threads may duplicate, i.e. it is legal to have two env threads with the same name tag, which may fail the `SingleEnvThreadVerifier` check during schedule creation. This PR disables this check in this case. In...
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
diff --git a/python/tvm/relax/backend/dispatch_sort_scan.py b/python/tvm/relax/backend/dispatch_sort_scan.py index bb3f57ce96ae..a223b64ad026 100644 --- a/python/tvm/relax/backend/dispatch_sort_scan.py +++ b/python/tvm/relax/backend/dispatch_sort_scan.py @@ -116,6 +116,7 @@ def visit_call_(self, call: relax.Call) -> re...
google__timesketch-2101
Sketch attributes deleted via the API cannot be re-added by an analyzer **Describe the bug** Deleting a sketch attribute via the notebook will prevent it from being re-added by an analyzer run. **To Reproduce** Steps to reproduce the behavior (using the dev container): 1. Add `self.sketch.add_sketch_attribute('te...
[ { "content": "# Copyright 2018 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 2018 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/timesketch/lib/analyzers/interface.py b/timesketch/lib/analyzers/interface.py index a7881891aa..2506a4aff6 100644 --- a/timesketch/lib/analyzers/interface.py +++ b/timesketch/lib/analyzers/interface.py @@ -464,7 +464,8 @@ def add_sketch_attribute(self, name, values, ontology='text'): data/...
ansible__awx-13928
awx.awx.workflow_job_template parameter destroy_current_nodes does not show "changed" status ### Please confirm the following - [X] I agree to follow this project's [code of conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html). - [X] I have checked the [current issues](https://github.com/an...
[ { "content": "#!/usr/bin/python\n# coding: utf-8 -*-\n\n\n# (c) 2020, John Westcott IV <john.westcott.iv@redhat.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n\n__metaclass__ = type\n\n\nANSI...
[ { "content": "#!/usr/bin/python\n# coding: utf-8 -*-\n\n\n# (c) 2020, John Westcott IV <john.westcott.iv@redhat.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n\n__metaclass__ = type\n\n\nANSI...
diff --git a/awx_collection/plugins/modules/workflow_job_template.py b/awx_collection/plugins/modules/workflow_job_template.py index db9c646fda75..8c72152bb575 100644 --- a/awx_collection/plugins/modules/workflow_job_template.py +++ b/awx_collection/plugins/modules/workflow_job_template.py @@ -991,6 +991,7 @@ def main(...
keras-team__keras-core-579
Using torch backend Using PyTorch backend. Epoch 1/3 32/32 ━━━━━━━━━━━━━━━━━━━━ 1s 4ms/step - mean_absolute_error: 0.4083 - loss: 0.2566 Epoch 2/3 32/32 ━━━━━━━━━━━━━━━━━━━━ 0s 4ms/step - mean_absolute_error: 0.3805 - loss: 0.2151 Epoch 3/3 32/32 ━━━━━━━━━━━━━━━━━━━━ 0s 4ms/step - mean_absolute_error: 0.3704 - lo...
[ { "content": "import importlib\n\n\nclass LazyModule:\n def __init__(self, name, pip_name=None):\n self.name = name\n pip_name = pip_name or name\n self.pip_name = pip_name\n self.module = None\n self._available = None\n\n @property\n def available(self):\n if ...
[ { "content": "import importlib\n\n\nclass LazyModule:\n def __init__(self, name, pip_name=None):\n self.name = name\n pip_name = pip_name or name\n self.pip_name = pip_name\n self.module = None\n self._available = None\n\n @property\n def available(self):\n if ...
diff --git a/keras_core/utils/module_utils.py b/keras_core/utils/module_utils.py index 1e957422f..99227b9e7 100644 --- a/keras_core/utils/module_utils.py +++ b/keras_core/utils/module_utils.py @@ -14,9 +14,9 @@ def available(self): if self._available is None: try: self.initialize(...
nonebot__nonebot2-2537
Bug: websockets 驱动器连接关闭 code 不存在 ### 操作系统 Windows ### Python 版本 3.11.6 ### NoneBot 版本 2.1.2 ### 适配器 nonebot-adapter-kaiheila 0.3.0 ### 协议端 kook API(websockets) ### 描述问题 在nonebot库的websockets.py模块中,处理WebSocket异常时出现了AttributeError。这个问题发生在尝试处理ConnectionClosed异常的过程中。 异常信息: `AttributeError:...
[ { "content": "\"\"\"[websockets](https://websockets.readthedocs.io/) 驱动适配\n\n```bash\nnb driver install websockets\n# 或者\npip install nonebot2[websockets]\n```\n\n:::tip 提示\n本驱动仅支持客户端 WebSocket 连接\n:::\n\nFrontMatter:\n sidebar_position: 4\n description: nonebot.drivers.websockets 模块\n\"\"\"\n\nimport log...
[ { "content": "\"\"\"[websockets](https://websockets.readthedocs.io/) 驱动适配\n\n```bash\nnb driver install websockets\n# 或者\npip install nonebot2[websockets]\n```\n\n:::tip 提示\n本驱动仅支持客户端 WebSocket 连接\n:::\n\nFrontMatter:\n sidebar_position: 4\n description: nonebot.drivers.websockets 模块\n\"\"\"\n\nimport log...
diff --git a/nonebot/drivers/websockets.py b/nonebot/drivers/websockets.py index 5c4e167e6dc0..e618af1b74e1 100644 --- a/nonebot/drivers/websockets.py +++ b/nonebot/drivers/websockets.py @@ -50,10 +50,7 @@ async def decorator(*args: P.args, **kwargs: P.kwargs) -> T: try: return await func(*args, *...
pytorch__vision-3529
Add Docs for AutoAugment methods. ## 📚 Documentation Add documentation for AutoAugment, [AutoAugmentation](https://pytorch.org/blog/pytorch-1.8-new-library-releases/#stable-autoaugment) was added as a stable feature in the latest 0.9 release. I think we are missing the docs on transforms page for both [master](...
[ { "content": "import math\nimport torch\n\nfrom enum import Enum\nfrom torch import Tensor\nfrom typing import List, Tuple, Optional\n\nfrom . import functional as F, InterpolationMode\n\n\nclass AutoAugmentPolicy(Enum):\n \"\"\"AutoAugment policies learned on different datasets.\n \"\"\"\n IMAGENET = ...
[ { "content": "import math\nimport torch\n\nfrom enum import Enum\nfrom torch import Tensor\nfrom typing import List, Tuple, Optional\n\nfrom . import functional as F, InterpolationMode\n\n__all__ = [\"AutoAugmentPolicy\", \"AutoAugment\"]\n\n\nclass AutoAugmentPolicy(Enum):\n \"\"\"AutoAugment policies learn...
diff --git a/docs/source/transforms.rst b/docs/source/transforms.rst index 517ede35dbf..6efc2dba5a2 100644 --- a/docs/source/transforms.rst +++ b/docs/source/transforms.rst @@ -57,6 +57,7 @@ Compositions of transforms .. autoclass:: Compose + Transforms on PIL Image and torch.\*Tensor ---------------------------...
rotki__rotki-3064
Some NEXO entries in CSV have different datetime format ## Problem Definition A user provided a screenshot ![image](https://user-images.githubusercontent.com/5068010/120938770-df9fd780-c714-11eb-82ec-89a96950fbeb.png) where the date seems to include also seconds in the format. This is something different from ...
[ { "content": "from collections import defaultdict\nimport csv\nimport functools\nimport logging\nfrom itertools import count\nfrom pathlib import Path\nfrom typing import Any, Dict, List, Tuple\n\nfrom rotkehlchen.assets.utils import symbol_to_asset_or_token\nfrom rotkehlchen.accounting.ledger_actions import Le...
[ { "content": "from collections import defaultdict\nimport csv\nimport functools\nimport logging\nfrom itertools import count\nfrom pathlib import Path\nfrom typing import Any, Dict, List, Tuple\n\nfrom rotkehlchen.assets.utils import symbol_to_asset_or_token\nfrom rotkehlchen.accounting.ledger_actions import Le...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 5d7ccf04d2..0df8a5bd5b 100755 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,8 @@ Changelog ========= +* :bug:`3057` Nexo CSV importer will use now the correct time format. + * :release:`1.17.2 <2021-06-04>` * :bug:`3043` Collapsed xpubs sho...
CTFd__CTFd-432
Hidden challenges can be answered without being unhidden If attacker obtains the key of Hidden Challenge using some method, attacker can answer Hidden Challenge. It is possible by sending Hidden Challenge's key and id to `/chal`. Hidden Challenge's id is a sequential number, so it can be searched by brute force. ...
[ { "content": "import json\nimport logging\nimport re\nimport time\n\nfrom flask import render_template, request, redirect, jsonify, url_for, session, Blueprint, abort\nfrom sqlalchemy.sql import or_\n\nfrom CTFd.models import db, Challenges, Files, Solves, WrongKeys, Keys, Tags, Teams, Awards, Hints, Unlocks\nf...
[ { "content": "import json\nimport logging\nimport re\nimport time\n\nfrom flask import render_template, request, redirect, jsonify, url_for, session, Blueprint, abort\nfrom sqlalchemy.sql import or_\n\nfrom CTFd.models import db, Challenges, Files, Solves, WrongKeys, Keys, Tags, Teams, Awards, Hints, Unlocks\nf...
diff --git a/CTFd/challenges.py b/CTFd/challenges.py index 20cb12109..e27f3749c 100644 --- a/CTFd/challenges.py +++ b/CTFd/challenges.py @@ -306,6 +306,8 @@ def chal(chalid): print("[{0}] {1} submitted {2} with kpm {3}".format(*data)) chal = Challenges.query.filter_by(id=chalid).first_or_404() + ...
pyqtgraph__pyqtgraph-1252
Fix incorrect tick text boundaries calculation on axis by setting the font In AxisItem.generateDrawSpecs painter should have the same font as tickFont, otherwise it calculates tick text boundaries incorreclty. Without this fix we have tickLabels overflowing each other and everything else on the screen when we change th...
[ { "content": "# -*- coding: utf-8 -*-\nfrom ..Qt import QtGui, QtCore\nfrom ..python2_3 import asUnicode\nimport numpy as np\nfrom ..Point import Point\nfrom .. import debug as debug\nimport sys\nimport weakref\nfrom .. import functions as fn\nfrom .. import getConfigOption\nfrom .GraphicsWidget import Graphics...
[ { "content": "# -*- coding: utf-8 -*-\nfrom ..Qt import QtGui, QtCore\nfrom ..python2_3 import asUnicode\nimport numpy as np\nfrom ..Point import Point\nfrom .. import debug as debug\nimport sys\nimport weakref\nfrom .. import functions as fn\nfrom .. import getConfigOption\nfrom .GraphicsWidget import Graphics...
diff --git a/pyqtgraph/graphicsItems/AxisItem.py b/pyqtgraph/graphicsItems/AxisItem.py index 29f3ad62f1..5aca9cc41a 100644 --- a/pyqtgraph/graphicsItems/AxisItem.py +++ b/pyqtgraph/graphicsItems/AxisItem.py @@ -853,8 +853,8 @@ def generateDrawSpecs(self, p): interpreted by drawPicture(). """ ...
frappe__frappe-24777
Console import progress off-by-one ## Description of the issue Data import utility displays incorrect progress in console mode due to off-by-one error since `frappe.publish_realtime()` takes 1-indexed progress while `update_progress_bar()` takes 0-indexed. ## Steps to reproduce the issue Import any import file a...
[ { "content": "# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nimport io\nimport json\nimport os\nimport re\nimport timeit\nfrom datetime import date, datetime, time\n\nimport frappe\nfrom frappe import _\nfrom frappe.core.doctype.version.version import get_di...
[ { "content": "# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nimport io\nimport json\nimport os\nimport re\nimport timeit\nfrom datetime import date, datetime, time\n\nimport frappe\nfrom frappe import _\nfrom frappe.core.doctype.version.version import get_di...
diff --git a/frappe/core/doctype/data_import/importer.py b/frappe/core/doctype/data_import/importer.py index c83d60ea8b66..a4d25074a1ba 100644 --- a/frappe/core/doctype/data_import/importer.py +++ b/frappe/core/doctype/data_import/importer.py @@ -149,8 +149,8 @@ def import_data(self): if self.console: up...
pytorch__ignite-3199
Mean Absolute Percentage Error (MAPE) ## 🚀 Feature I'd like to implement the mean absolute percentage error [(MAPE)](https://en.wikipedia.org/wiki/Mean_absolute_percentage_error) in `ignite/metrics`. It is a commonly used metric for regression problems and it would be really convenient to be able to use it direc...
[ { "content": "from typing import Tuple\n\nimport torch\n\nfrom ignite.contrib.metrics.regression._base import _BaseRegression\nfrom ignite.exceptions import NotComputableError\nfrom ignite.metrics.metric import reinit__is_reduced, sync_all_reduce\n\n\nclass MeanAbsoluteRelativeError(_BaseRegression):\n r\"\"...
[ { "content": "from typing import Tuple\n\nimport torch\n\nfrom ignite.contrib.metrics.regression._base import _BaseRegression\nfrom ignite.exceptions import NotComputableError\nfrom ignite.metrics.metric import reinit__is_reduced, sync_all_reduce\n\n\nclass MeanAbsoluteRelativeError(_BaseRegression):\n r\"\"...
diff --git a/ignite/contrib/metrics/regression/mean_absolute_relative_error.py b/ignite/contrib/metrics/regression/mean_absolute_relative_error.py index de0cc98c8c69..24f20531f01a 100644 --- a/ignite/contrib/metrics/regression/mean_absolute_relative_error.py +++ b/ignite/contrib/metrics/regression/mean_absolute_relativ...
googleapis__google-auth-library-python-1327
Wrong timezones in compute_engine.IDTokenCredentials expiry The `expiry` of compute_engine.IDTokenCredentials is in the local timezone, but it's then compared to utc. This means that an expired token may be used. Expiry of all other credential types are correctly in UTC. #### Environment details - OS: Linux ...
[ { "content": "# Copyright 2016 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2016 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/google/auth/compute_engine/credentials.py b/google/auth/compute_engine/credentials.py index 30ffb162b..930d88617 100644 --- a/google/auth/compute_engine/credentials.py +++ b/google/auth/compute_engine/credentials.py @@ -389,7 +389,7 @@ def _call_metadata_identity_endpoint(self, request): six.r...
Qiskit__qiskit-8638
Bug using SNOBFIT in combination with UCCSD (VQE) / misleading function signature of optimizer SNOBFIT When running a VQE algorithm with ansatz UCCSD the following error message shows up: ``` [...] File "C:\Users\poc\Anaconda3\envs\qiskit\lib\site-packages\qiskit_nature\algorithms\pes_samplers\bopes_sampler.py", li...
[ { "content": "# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2019, 2020.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.\n#\n...
[ { "content": "# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2019, 2020.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.\n#\n...
diff --git a/qiskit/algorithms/optimizers/snobfit.py b/qiskit/algorithms/optimizers/snobfit.py index f1bd12faff36..f74d8ca85153 100644 --- a/qiskit/algorithms/optimizers/snobfit.py +++ b/qiskit/algorithms/optimizers/snobfit.py @@ -84,6 +84,9 @@ def minimize( import skquant.opt as skq from SQSnobFit im...
sktime__sktime-5397
[ENH] refactor `DateTimeFeatures` tests to `pytest` fixtures The tests in `transformations.series.tests.test_date` for the `DateTimeFeatures` transformer should be refactored to use proper `pytest` fixtures. The massive `pytest` decorator should be split up and/or refactored. Also see PR https://github.com/sktime/sk...
[ { "content": "#!/usr/bin/env python3 -u\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Extract calendar features from datetimeindex.\"\"\"\n__author__ = [\"danbartl\", \"KishManani\", \"VyomkeshVyas\"]\n__all__ = [\"DateTimeFeatures\"]\n\nimport warnings\n\nimport numpy as np\ni...
[ { "content": "#!/usr/bin/env python3 -u\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Extract calendar features from datetimeindex.\"\"\"\n__author__ = [\"danbartl\", \"KishManani\", \"VyomkeshVyas\"]\n__all__ = [\"DateTimeFeatures\"]\n\nimport warnings\n\nimport numpy as np\ni...
diff --git a/.all-contributorsrc b/.all-contributorsrc index eaac5917150..8865021bb55 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -2414,6 +2414,15 @@ "contributions": [ "doc" ] + }, + { + "login": "adamkells", + "name": "Adam Kells", + "avatar_url": "https:/...