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
RedHatInsights__insights-core-1641
RedhatRelease parser failed to parse minor release version in some scenarios In few cases where redhat_release content is something similar to below, RedhatRelease parser fails to get the minor version extracted from it Run: ``` >>> from insights.parsers.redhat_release import RedhatRelease >>> from insights.tests...
[ { "content": "\"\"\"\nredhat-release - File ``/etc/redhat-release``\n=============================================\n\nThis module provides plugins access to file ``/etc/redhat-release``\n\nTypical content of file ``/etc/redhat-release`` is::\n\n Red Hat Enterprise Linux Server release 7.2 (Maipo)\n\nThis mod...
[ { "content": "\"\"\"\nredhat-release - File ``/etc/redhat-release``\n=============================================\n\nThis module provides plugins access to file ``/etc/redhat-release``\n\nTypical content of file ``/etc/redhat-release`` is::\n\n Red Hat Enterprise Linux Server release 7.2 (Maipo)\n\nThis mod...
diff --git a/insights/parsers/redhat_release.py b/insights/parsers/redhat_release.py index a0eccf7e1c..5bc134c8b6 100644 --- a/insights/parsers/redhat_release.py +++ b/insights/parsers/redhat_release.py @@ -54,7 +54,7 @@ def major(self): @property def minor(self): """int: the minor version of this OS...
ipython__ipython-11978
7.10 breaking tests with exception in publish The new 7.10 release is breaking Bokeh unit tests with an exception coming from within ipython: ``` self = <IPython.core.displaypub.DisplayPublisher object at 0x11883d7f0> data = {'text/html': '\n <div class="bk-root">\n <a href="https://bokeh.org" target="_...
[ { "content": "\"\"\"An interface for publishing rich data to frontends.\n\nThere are two components of the display system:\n\n* Display formatters, which take a Python object and compute the\n representation of the object in various formats (text, HTML, SVG, etc.).\n* The display publisher that is used to send...
[ { "content": "\"\"\"An interface for publishing rich data to frontends.\n\nThere are two components of the display system:\n\n* Display formatters, which take a Python object and compute the\n representation of the object in various formats (text, HTML, SVG, etc.).\n* The display publisher that is used to send...
diff --git a/IPython/core/displaypub.py b/IPython/core/displaypub.py index d769692e969..f651a2a0cf6 100644 --- a/IPython/core/displaypub.py +++ b/IPython/core/displaypub.py @@ -105,7 +105,7 @@ def publish(self, data, metadata=None, source=None, *, transient=None, update=Fa handlers = {} if self.shel...
pyodide__pyodide-3959
pyodide-build test suite fails locally I'm trying to run the pyodide-build test suite locally inside Docker, ``` source pyodide_env.sh pytest pyodide-build ``` and so far it has had multiple failures, ``` FAILED pyodide-build/pyodide_build/tests/test_build_env.py::TestOutOfTree::get_build_environment_vars[node...
[ { "content": "# This file contains functions for managing the Pyodide build environment.\n\nimport functools\nimport os\nimport re\nimport subprocess\nimport sys\nfrom collections.abc import Iterator\nfrom contextlib import nullcontext, redirect_stdout\nfrom io import StringIO\nfrom pathlib import Path\n\nif sy...
[ { "content": "# This file contains functions for managing the Pyodide build environment.\n\nimport functools\nimport os\nimport re\nimport subprocess\nimport sys\nfrom collections.abc import Iterator\nfrom contextlib import nullcontext, redirect_stdout\nfrom io import StringIO\nfrom pathlib import Path\n\nif sy...
diff --git a/pyodide-build/pyodide_build/build_env.py b/pyodide-build/pyodide_build/build_env.py index d37a8473e7f..7155033678c 100644 --- a/pyodide-build/pyodide_build/build_env.py +++ b/pyodide-build/pyodide_build/build_env.py @@ -199,6 +199,7 @@ def _get_make_environment_vars(*, pyodide_root: Path | None = None) -> ...
PrefectHQ__prefect-2609
Consider promoting `case` to the top level ## Current behavior *Please describe how the feature works today* Currently, the `case` context manager must be imported from `prefect.tasks.control_flow.case`. ## Proposed behavior *Please describe your proposed change to the current behavior* I think we should con...
[ { "content": "import prefect.utilities\nfrom prefect.configuration import config\n\nfrom prefect.utilities.context import context\n\nfrom prefect.client import Client\nimport prefect.schedules\nimport prefect.triggers\nimport prefect.environments\n\nfrom prefect.core import Task, Flow, Parameter\nimport prefect...
[ { "content": "import prefect.utilities\nfrom prefect.configuration import config\n\nfrom prefect.utilities.context import context\n\nfrom prefect.client import Client\nimport prefect.schedules\nimport prefect.triggers\nimport prefect.environments\n\nfrom prefect.core import Task, Flow, Parameter\nimport prefect...
diff --git a/changes/issue2568.yaml b/changes/issue2568.yaml new file mode 100644 index 000000000000..40b94cf8076f --- /dev/null +++ b/changes/issue2568.yaml @@ -0,0 +1,2 @@ +enhancement: + - Add `case` to top-level namespace - [#2609](https://github.com/PrefectHQ/prefect/pull/2609) diff --git a/src/prefect/__init__.p...
vacanza__python-holidays-754
Diwali Singapore is on 24th of October not 24th of November Holidays returns (datetime.date(2022, 11, 24), 'Deepavali') not the actual day which is this coming Monday the 24th of October. Full list here https://www.mom.gov.sg/employment-practices/public-holidays
[ { "content": "# python-holidays\n# ---------------\n# A fast, efficient Python library for generating country, province and state\n# specific sets of holidays on the fly. It aims to make determining whether a\n# specific date is a holiday as fast and flexible as possible.\n#\n# Authors: dr-prodigy <mauriz...
[ { "content": "# python-holidays\n# ---------------\n# A fast, efficient Python library for generating country, province and state\n# specific sets of holidays on the fly. It aims to make determining whether a\n# specific date is a holiday as fast and flexible as possible.\n#\n# Authors: dr-prodigy <mauriz...
diff --git a/holidays/countries/singapore.py b/holidays/countries/singapore.py index b055f77d2..da1f9d2be 100644 --- a/holidays/countries/singapore.py +++ b/holidays/countries/singapore.py @@ -261,7 +261,7 @@ def _populate(self, year: int) -> None: 2019: (OCT, 27), 2020: (NOV, 14), ...
automl__auto-sklearn-190
Add warning if dependencies are not met There should be a warning if one of the following dependencies is not met: - scikit-learn==0.17 - smac==0.0.1 - lockfile>=0.10 - ConfigSpace>=0.2.1 - pyrfr==0.2.1
[ { "content": "from warnings import warn\n\nimport pkg_resources\nimport re\n\nfrom distutils.version import LooseVersion\n\n\nRE_PATTERN = re.compile('^(?P<name>[\\w\\-]+)((?P<operation>==|>=|>)(?P<version>(\\d+\\.)?(\\d+\\.)?(\\d+)))?$')\n\n\ndef verify_packages(packages):\n if not packages:\n return...
[ { "content": "from warnings import warn\n\nimport pkg_resources\nimport re\n\nfrom distutils.version import LooseVersion\n\n\nRE_PATTERN = re.compile('^(?P<name>[\\w\\-]+)((?P<operation>==|>=|>)(?P<version>(\\d+\\.)?(\\d+\\.)?(\\d+)))?$')\n\n\ndef verify_packages(packages):\n if not packages:\n return...
diff --git a/autosklearn/util/dependencies.py b/autosklearn/util/dependencies.py index 61ed76adf5..d36ad7e5c8 100644 --- a/autosklearn/util/dependencies.py +++ b/autosklearn/util/dependencies.py @@ -33,7 +33,7 @@ def _verify_package(name, operation, version): try: module = pkg_resources.get_distribution(n...
pre-commit__pre-commit-948
Support GIT_SSH_COMMAND Currently, `GIT_SSH` is supported for overriding the git command, but it is is sightly less ergonomic than `GIT_SSH_COMMAND` since it requires file. Adding support for passing `GIT_SSH_COMMAND` to git commands would obviate the need for creating a new file when you want to change the ssh command...
[ { "content": "from __future__ import unicode_literals\n\nimport logging\nimport os.path\nimport sys\n\nfrom pre_commit.util import cmd_output\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef zsplit(s):\n s = s.strip('\\0')\n if s:\n return s.split('\\0')\n else:\n return []\n\n\ndef no_...
[ { "content": "from __future__ import unicode_literals\n\nimport logging\nimport os.path\nimport sys\n\nfrom pre_commit.util import cmd_output\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef zsplit(s):\n s = s.strip('\\0')\n if s:\n return s.split('\\0')\n else:\n return []\n\n\ndef no_...
diff --git a/pre_commit/git.py b/pre_commit/git.py index f0b504043..4849d7c64 100644 --- a/pre_commit/git.py +++ b/pre_commit/git.py @@ -29,7 +29,7 @@ def no_git_env(): # GIT_INDEX_FILE: Causes 'error invalid object ...' during commit return { k: v for k, v in os.environ.items() - if not k.sta...
uclapi__uclapi-4023
[Feature Request] Add /authorize Oauth route **Is your feature request related to a problem? Please describe.** I have been attempting to use 'auth0-react' to implement Oauth with UCL API, however, this requires a fair bit of tinkering as the defaults of this and many other auth libraries are to redirect to a "/auth...
[ { "content": "from django.conf.urls import url\n\nfrom . import views\n\nurlpatterns = [\n url(r'authorise/$', views.authorise),\n url(r'adcallback', views.adcallback),\n url(r'token$', views.token),\n url(r'tokens/scopes$', views.scope_map),\n url(r'tokens/test$', views.token_test),\n url(r'u...
[ { "content": "from django.conf.urls import url\n\nfrom . import views\n\nurlpatterns = [\n url(r'authorise/$', views.authorise),\n url(r'authorize/$', views.authorise),\n url(r'adcallback', views.adcallback),\n url(r'token$', views.token),\n url(r'tokens/scopes$', views.scope_map),\n url(r'tok...
diff --git a/backend/uclapi/oauth/urls.py b/backend/uclapi/oauth/urls.py index 0f9a33847..7564f4d21 100644 --- a/backend/uclapi/oauth/urls.py +++ b/backend/uclapi/oauth/urls.py @@ -4,6 +4,7 @@ urlpatterns = [ url(r'authorise/$', views.authorise), + url(r'authorize/$', views.authorise), url(r'adcallback'...
googleapis__google-cloud-python-9604
Release google-cloud-storage Hi @tseaver, could you help cut a release for google-cloud-storage? cc: @JesseLovelace
[ { "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 applicabl...
[ { "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 applicabl...
diff --git a/storage/CHANGELOG.md b/storage/CHANGELOG.md index ff61b97c9cfe..55169d4ed82e 100644 --- a/storage/CHANGELOG.md +++ b/storage/CHANGELOG.md @@ -4,6 +4,14 @@ [1]: https://pypi.org/project/google-cloud-storage/#history +## 1.22.0 + +11-05-2019 10:22 PST + + +### New Features +- Add UBLA attrs to IAMConfig...
wagtail__wagtail-9369
Wagtail version number in admin has an extra dot This is tagged as a [**good first issue**](https://github.com/wagtail/wagtail/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22good+first+issue%22) – if you want to take it on, please leave a comment below to say so, no need to ask for permission, first come ...
[ { "content": "from django.conf import settings\nfrom django.contrib.auth.models import Permission\nfrom django.urls import reverse\nfrom django.utils.http import urlencode\nfrom django.utils.translation import gettext\nfrom django.utils.translation import gettext_lazy as _\nfrom draftjs_exporter.dom import DOM\...
[ { "content": "from django.conf import settings\nfrom django.contrib.auth.models import Permission\nfrom django.urls import reverse\nfrom django.utils.http import urlencode\nfrom django.utils.translation import gettext\nfrom django.utils.translation import gettext_lazy as _\nfrom draftjs_exporter.dom import DOM\...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 9c028178586a..abe90a8ad4be 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -72,6 +72,7 @@ Changelog * Fix: Ensure that buttons on custom chooser widgets are correctly shown on hover (Thibaud Colas) * Fix: Add missing asterisk to title field placeholder (Seremba Pat...
spack__spack-19482
Installation issue: gcc <!-- Thanks for taking the time to report this build failure. To proceed with the report please: 1. Title the issue "Installation issue: gcc". 2. Provide the information required below. We encourage you to try, as much as possible, to reduce your problem to the minimal example that still ...
[ { "content": "# Copyright 2013-2020 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 glob\nimport itertools\nimport os\nimport re\nimport sys\n\nimport llnl.util.tty as tty\ni...
[ { "content": "# Copyright 2013-2020 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 glob\nimport itertools\nimport os\nimport re\nimport sys\n\nimport llnl.util.tty as tty\ni...
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index 991f0fadb01bc1..6677961af68a01 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -270,7 +270,7 @@ class Gcc(AutotoolsPackage, GNUMirror...
psf__black-1892
s390x: test_python2/test_python2_unicode_literals can't assign to () INTERNAL ERROR During the build of 19.10b0 in Fedora, the following test failure occurs on s390x (Big Endian) architecture: ``` ====================================================================== FAIL: test_python2 (tests.test_black.BlackTestC...
[ { "content": "# Copyright (C) 2020 Łukasz Langa\nfrom setuptools import setup\nimport sys\nimport os\n\nassert sys.version_info >= (3, 6, 0), \"black requires Python 3.6+\"\nfrom pathlib import Path # noqa E402\n\nCURRENT_DIR = Path(__file__).parent\nsys.path.insert(0, str(CURRENT_DIR)) # for setuptools.build...
[ { "content": "# Copyright (C) 2020 Łukasz Langa\nfrom setuptools import setup\nimport sys\nimport os\n\nassert sys.version_info >= (3, 6, 0), \"black requires Python 3.6+\"\nfrom pathlib import Path # noqa E402\n\nCURRENT_DIR = Path(__file__).parent\nsys.path.insert(0, str(CURRENT_DIR)) # for setuptools.build...
diff --git a/Pipfile b/Pipfile index ba596b3d738..9a4d5bd7c1b 100644 --- a/Pipfile +++ b/Pipfile @@ -28,7 +28,7 @@ mypy_extensions = ">=0.4.3" pathspec = ">=0.6" regex = ">=2020.1.8" toml = ">=0.10.1" -typed-ast = "==1.4.1" +typed-ast = "==1.4.2" typing_extensions = ">=3.7.4" black = {editable = true,extras = ["d"...
googleapis__google-cloud-python-5683
Release 'datastore 1.7.0' Major changes are: - Add support for Python 3.7. - Drop support for Python 3.4. - Bugfix: query offsets (#4675).
[ { "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 applicabl...
[ { "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 applicabl...
diff --git a/datastore/CHANGELOG.md b/datastore/CHANGELOG.md index 4c47905a4a53..2ad75b1ff3b5 100644 --- a/datastore/CHANGELOG.md +++ b/datastore/CHANGELOG.md @@ -4,6 +4,25 @@ [1]: https://pypi.org/project/google-cloud-datastore/#history +## 1.7.0 + +### Implementation Changes + +- Do not pass 'offset' once the qu...
dynaconf__dynaconf-809
How to use dynaconf in pytest when declared custom settings object Hi. I need to override the environment for settings in conftest.py. As I found I can do it by adding: ```python from dynaconf import settings @pytest.fixture(scope="session", autouse=True) def set_test_settings(): settings.configure(FORCE...
[ { "content": "from __future__ import annotations\n\nimport copy\nimport glob\nimport importlib\nimport inspect\nimport os\nimport warnings\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom contextlib import suppress\nfrom pathlib import Path\n\nfrom dynaconf import default_settin...
[ { "content": "from __future__ import annotations\n\nimport copy\nimport glob\nimport importlib\nimport inspect\nimport os\nimport warnings\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom contextlib import suppress\nfrom pathlib import Path\n\nfrom dynaconf import default_settin...
diff --git a/dynaconf/base.py b/dynaconf/base.py index 51e09a404..2858b5492 100644 --- a/dynaconf/base.py +++ b/dynaconf/base.py @@ -694,6 +694,7 @@ def current_env(self): return self.MAIN_ENV_FOR_DYNACONF.lower() if self.FORCE_ENV_FOR_DYNACONF is not None: + self.ENV_FOR_DYNACONF = s...
internetarchive__openlibrary-6898
Sorting buttons in Reading log don't work as intended When you press sort by "Date Added (oldest)" page refreshes and sorting is applied but "Date Added (oldest)" button doesn't turn green and doesn't become unclickable, and "Date Added (newest)" button doesn't become clickable ### Evidence / Screenshot (if possible...
[ { "content": "import json\nimport web\n\nfrom infogami.utils import delegate\nfrom infogami.utils.view import public, safeint, render\n\nfrom openlibrary import accounts\nfrom openlibrary.utils import extract_numeric_id_from_olid\nfrom openlibrary.core.booknotes import Booknotes\nfrom openlibrary.core.bookshelv...
[ { "content": "import json\nimport web\n\nfrom infogami.utils import delegate\nfrom infogami.utils.view import public, safeint, render\n\nfrom openlibrary import accounts\nfrom openlibrary.utils import extract_numeric_id_from_olid\nfrom openlibrary.core.booknotes import Booknotes\nfrom openlibrary.core.bookshelv...
diff --git a/openlibrary/plugins/upstream/mybooks.py b/openlibrary/plugins/upstream/mybooks.py index 23710527bd4..22772bcd013 100644 --- a/openlibrary/plugins/upstream/mybooks.py +++ b/openlibrary/plugins/upstream/mybooks.py @@ -248,6 +248,7 @@ def render(self, page=1, sort='desc', list=None): lists=se...
scikit-hep__awkward-1977
ak.from_parquet for multiple files uses wrong number of arguments to concatenate ### Version of Awkward Array 2.0.0rc6 ### Description and code to reproduce If passing a directory with more than one file to `ak.from_parquet` the following exception is raised: (the `outputs` directory in this example contains 50 f...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\nimport awkward as ak\n\n\ndef from_parquet(\n path,\n *,\n columns=None,\n row_groups=None,\n storage_options=None,\n max_gap=64_000,\n max_block=256_000_000,\n footer_sample_size=1_0...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\nimport awkward as ak\n\n\ndef from_parquet(\n path,\n *,\n columns=None,\n row_groups=None,\n storage_options=None,\n max_gap=64_000,\n max_block=256_000_000,\n footer_sample_size=1_0...
diff --git a/src/awkward/operations/ak_from_parquet.py b/src/awkward/operations/ak_from_parquet.py index 1f8526beb1..490790a829 100644 --- a/src/awkward/operations/ak_from_parquet.py +++ b/src/awkward/operations/ak_from_parquet.py @@ -244,7 +244,7 @@ def _load( else: # TODO: if each array is a record? ...
meltano__meltano-6078
Adjust logging level for requests/urllib With the hub changes and especially snowplow changes, when running with debug mode enabled we're littering the logs with some giant http requests (scroll the code block to get an idea of how large these look in the console when line wrapped): ``` (melty-3.8) ➜ rundev MELTAN...
[ { "content": "\"\"\"Various utilities for configuring logging in a meltano project.\"\"\"\nimport asyncio\nimport logging\nimport os\nfrom contextlib import suppress\nfrom logging import config as logging_config\nfrom typing import Dict, Optional\n\nimport structlog\nimport yaml\n\nfrom meltano.core.logging.for...
[ { "content": "\"\"\"Various utilities for configuring logging in a meltano project.\"\"\"\nimport asyncio\nimport logging\nimport os\nfrom contextlib import suppress\nfrom logging import config as logging_config\nfrom typing import Dict, Optional\n\nimport structlog\nimport yaml\n\nfrom meltano.core.logging.for...
diff --git a/src/meltano/core/logging/utils.py b/src/meltano/core/logging/utils.py index 823aac8f5a..f483d7e182 100644 --- a/src/meltano/core/logging/utils.py +++ b/src/meltano/core/logging/utils.py @@ -95,6 +95,11 @@ def default_config(log_level: str) -> dict: "handlers": ["console"], ...
pallets__click-1825
resolve_path differs on Windows depending on Python version <!-- This issue tracker is a tool to address bugs in Click itself. Please use Pallets Discord or Stack Overflow for questions about your own code. Replace this comment with a clear outline of what the bug is. --> <!-- Describe how to replicate the bu...
[ { "content": "import os\nimport stat\nimport typing as t\nfrom datetime import datetime\n\nfrom ._compat import _get_argv_encoding\nfrom ._compat import filename_to_ui\nfrom ._compat import get_filesystem_encoding\nfrom ._compat import get_strerror\nfrom ._compat import open_stream\nfrom .exceptions import BadP...
[ { "content": "import os\nimport stat\nimport typing as t\nfrom datetime import datetime\n\nfrom ._compat import _get_argv_encoding\nfrom ._compat import filename_to_ui\nfrom ._compat import get_filesystem_encoding\nfrom ._compat import get_strerror\nfrom ._compat import open_stream\nfrom .exceptions import BadP...
diff --git a/CHANGES.rst b/CHANGES.rst index 406088e07..4f0dfb94e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -187,6 +187,8 @@ Unreleased - Add a ``pass_meta_key`` decorator for passing a key from ``Context.meta``. This is useful for extensions using ``meta`` to store information. :issue:`1739` +- ``Pa...
pyinstaller__pyinstaller-8555
with setuptools v70.0.0: `ModuleNotFoundError: No module named 'pkg_resources.extern'` <!-- Welcome to the PyInstaller issue tracker! Before creating an issue, please heed the following: 1. This tracker should only be used to report bugs and request features / enhancements to PyInstaller - For questions and ge...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2023, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2023, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
diff --git a/PyInstaller/hooks/hook-pkg_resources.py b/PyInstaller/hooks/hook-pkg_resources.py index b3817f8c65..dfcf382356 100644 --- a/PyInstaller/hooks/hook-pkg_resources.py +++ b/PyInstaller/hooks/hook-pkg_resources.py @@ -55,3 +55,9 @@ 'pkg_resources._vendor.jaraco.context', 'pkg_resources._vendo...
pandas-dev__pandas-7007
Matplotlib cursor position wrong after using asfreq method to change freq of DateTimeIndex from None to something After using the `asfreq` method to change the frequency of a time-series DataFrame from `None` to something e.g. `15Min` the cursor position in matplotlib graphs of that DataFrame is no longer correct (usua...
[ { "content": "\"\"\"\nPeriod formatters and locators adapted from scikits.timeseries by\nPierre GF Gerard-Marchant & Matt Knox\n\"\"\"\n\n#!!! TODO: Use the fact that axis can have units to simplify the process\nimport datetime as pydt\nfrom datetime import datetime\n\nfrom matplotlib import pylab\nimport matpl...
[ { "content": "\"\"\"\nPeriod formatters and locators adapted from scikits.timeseries by\nPierre GF Gerard-Marchant & Matt Knox\n\"\"\"\n\n#!!! TODO: Use the fact that axis can have units to simplify the process\nimport datetime as pydt\nfrom datetime import datetime\n\nfrom matplotlib import pylab\nimport matpl...
diff --git a/doc/source/release.rst b/doc/source/release.rst index 91bf6084e0faa..975d92cc215c4 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -450,8 +450,9 @@ Bug Fixes - Bug in enabling ``subplots=True`` in ``DataFrame.plot`` only has single column raises ``TypeError``, and ``Series.plot`` raise...
ipython__ipython-9109
Cannot inspect callable that raise in __bool__ The following should not raise. ``` python class NoBoolCall: def __call__(self): pass def __bool__(self): raise NotImplementedError('Must be implemented') b = NoBoolCall() b? ``` Likely in `oinspect.py`: ``` 835: if callable_obj: ``` Sho...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Tools for inspecting Python objects.\n\nUses syntax highlighting for presenting the various information elements.\n\nSimilar in spirit to the inspect module, but all calls take a name argument to\nreference the name under which an object is being read.\n\"\"\"\n\n# C...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Tools for inspecting Python objects.\n\nUses syntax highlighting for presenting the various information elements.\n\nSimilar in spirit to the inspect module, but all calls take a name argument to\nreference the name under which an object is being read.\n\"\"\"\n\n# C...
diff --git a/IPython/core/oinspect.py b/IPython/core/oinspect.py index e7be78b6541..f819990fc26 100644 --- a/IPython/core/oinspect.py +++ b/IPython/core/oinspect.py @@ -832,7 +832,7 @@ def info(self, obj, oname='', formatter=None, info=None, detail_level=0): else: callable_obj = None - if...
mitmproxy__mitmproxy-3070
[mitmweb] asyncio has no attribute call_soon ##### Steps to reproduce the problem: 1.Launch mitmweb 2.Save some flow 3.Load those flows ![asyncio_attribute_error](https://user-images.githubusercontent.com/15815157/38856635-48c7130c-4227-11e8-9019-0caf8f22038c.JPG) ##### Any other comments? What have you tr...
[ { "content": "import hashlib\nimport json\nimport logging\nimport os.path\nimport re\nfrom io import BytesIO\nimport asyncio\n\nimport mitmproxy.flow\nimport tornado.escape\nimport tornado.web\nimport tornado.websocket\nfrom mitmproxy import contentviews\nfrom mitmproxy import exceptions\nfrom mitmproxy import ...
[ { "content": "import hashlib\nimport json\nimport logging\nimport os.path\nimport re\nfrom io import BytesIO\nimport asyncio\n\nimport mitmproxy.flow\nimport tornado.escape\nimport tornado.web\nimport tornado.websocket\nfrom mitmproxy import contentviews\nfrom mitmproxy import exceptions\nfrom mitmproxy import ...
diff --git a/mitmproxy/tools/web/app.py b/mitmproxy/tools/web/app.py index 61e30a2138..184778b084 100644 --- a/mitmproxy/tools/web/app.py +++ b/mitmproxy/tools/web/app.py @@ -235,7 +235,7 @@ def post(self): self.view.clear() bio = BytesIO(self.filecontents) for i in io.FlowReader(bio).stream(...
ansible__molecule-1615
CMD in pre-built docker image replaced with `while true; do sleep 10000; done` # Issue Type - Bug report Was kind of reported in #1441 # Molecule and Ansible details ``` ansible 2.7.2 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/fabian/.ansible/plugins/modules', u'/u...
[ { "content": "# Copyright (c) 2015-2018 Cisco Systems, Inc.\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\n# deal in the Software without restriction, including without limitation the\n# right...
[ { "content": "# Copyright (c) 2015-2018 Cisco Systems, Inc.\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\n# deal in the Software without restriction, including without limitation the\n# right...
diff --git a/molecule/cookiecutter/scenario/driver/docker/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/Dockerfile.j2 b/molecule/cookiecutter/scenario/driver/docker/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/Dockerfile.j2 index c727a0564b..88feb252c3 100644 --- a/molecule/co...
pyca__cryptography-1237
0.5 fails to compile on OS X 10.8 Full traceback: http://pastebin.com/raw.php?i=M9N6Fgzi @reaperhulk has diagnosed, but this will require an 0.5.2 release to fix for supported platform.
[ { "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, so...
[ { "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, so...
diff --git a/cryptography/hazmat/bindings/commoncrypto/secitem.py b/cryptography/hazmat/bindings/commoncrypto/secitem.py index 4d7710bdf893..ac3dad3ffadb 100644 --- a/cryptography/hazmat/bindings/commoncrypto/secitem.py +++ b/cryptography/hazmat/bindings/commoncrypto/secitem.py @@ -23,8 +23,6 @@ const CFTypeRef kSecAt...
litestar-org__litestar-1005
Bug: openapi render for multiple tags isn't consistent **Describe the bug** When the openapi renders tags from both a controller and a route it is not deterministic. This may not be a bug? But it surprised me so thought I'd raise it. I'm unsure if I'm doing something crazy but for a project, we check in the generat...
[ { "content": "from inspect import cleandoc\nfrom typing import TYPE_CHECKING, Dict, List, Optional, Tuple, cast\n\nfrom pydantic_openapi_schema.v3_1_0.operation import Operation\nfrom pydantic_openapi_schema.v3_1_0.path_item import PathItem\n\nfrom starlite.openapi.parameters import create_parameter_for_handler...
[ { "content": "from inspect import cleandoc\nfrom typing import TYPE_CHECKING, Dict, List, Optional, Tuple, cast\n\nfrom pydantic_openapi_schema.v3_1_0.operation import Operation\nfrom pydantic_openapi_schema.v3_1_0.path_item import PathItem\n\nfrom starlite.openapi.parameters import create_parameter_for_handler...
diff --git a/starlite/openapi/path_item.py b/starlite/openapi/path_item.py index 7c1ca54aba..af24207f26 100644 --- a/starlite/openapi/path_item.py +++ b/starlite/openapi/path_item.py @@ -56,7 +56,7 @@ def extract_layered_values( tags.extend(layer.tags) if layer.security: security.exte...
pwndbg__pwndbg-1627
Heap heuristic will fail on big-endian architectures This can be reproduced by: ```console $ cat test.c #include <stdlib.h> int main(){   free(malloc(0x20));   return 0; } $ mips-linux-gnu-gcc test.c -ggdb $ qemu-mips -g 1234 -L /usr/mips-linux-gnu ./a.out ``` The libc I used is from: http://kr.archive.u...
[ { "content": "import ctypes\n\nimport gdb\n\nimport pwndbg.gdblib.arch\nimport pwndbg.gdblib.memory\nimport pwndbg.gdblib.typeinfo\nimport pwndbg.glibc\nfrom pwndbg.gdblib.ctypes import Structure\n\n\ndef request2size(req):\n if req + SIZE_SZ + MALLOC_ALIGN_MASK < MINSIZE:\n return MINSIZE\n return...
[ { "content": "import ctypes\n\nimport gdb\n\nimport pwndbg.gdblib.arch\nimport pwndbg.gdblib.memory\nimport pwndbg.gdblib.typeinfo\nimport pwndbg.glibc\nfrom pwndbg.gdblib.ctypes import Structure\n\n\ndef request2size(req):\n if req + SIZE_SZ + MALLOC_ALIGN_MASK < MINSIZE:\n return MINSIZE\n return...
diff --git a/pwndbg/heap/structs.py b/pwndbg/heap/structs.py index 0e7913f48e4..72d40f5b40d 100644 --- a/pwndbg/heap/structs.py +++ b/pwndbg/heap/structs.py @@ -78,6 +78,12 @@ class c_size_t(SIZE_T): c_size_t: pwndbg.gdblib.typeinfo.size_t, } +# Use correct endian for the dictionary keys +if pwndbg.gdblib.arch....
zigpy__zha-device-handlers-112
Ikea group support bind method doesn't return status as expected https://github.com/dmulcahey/zha-device-handlers/blob/b5b383939944ff541ee38a94c7f4d6cf3edc611f/zhaquirks/ikea/__init__.py#L25 https://github.com/home-assistant/home-assistant/blob/a30c37017b7782473294d7999e85d7a369a0539a/homeassistant/components/zha/co...
[ { "content": "\"\"\"Ikea module.\"\"\"\nimport logging\nfrom zigpy.zcl.clusters.lightlink import LightLink\nfrom zigpy.quirks import CustomCluster\n\n_LOGGER = logging.getLogger(__name__)\n\n\nclass LightLinkCluster(CustomCluster, LightLink):\n \"\"\"Ikea LightLink cluster.\"\"\"\n\n async def bind(self):...
[ { "content": "\"\"\"Ikea module.\"\"\"\nimport logging\nfrom zigpy.zcl.clusters.lightlink import LightLink\nfrom zigpy.quirks import CustomCluster\n\n_LOGGER = logging.getLogger(__name__)\n\n\nclass LightLinkCluster(CustomCluster, LightLink):\n \"\"\"Ikea LightLink cluster.\"\"\"\n\n async def bind(self):...
diff --git a/zhaquirks/ikea/__init__.py b/zhaquirks/ikea/__init__.py index 8742d38808..d1f643fbfb 100644 --- a/zhaquirks/ikea/__init__.py +++ b/zhaquirks/ikea/__init__.py @@ -22,4 +22,5 @@ async def bind(self): group_list = await self.get_group_identifiers(0) group_record = group_list[2] grou...
scikit-hep__awkward-2266
`NotImplementedError` from `TypeTracerArray.nan_to_num` ### Description of new feature I'm trying to use `dask-awkward` and `vector` to do vector addition. It works fine for Cartesian coordinates but not spherical: ```python >>> import awkward as ak, dask_awkward as dak, vector >>> vector.register_awkward() >>> ...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\nfrom __future__ import annotations\n\nfrom numbers import Number\n\nimport numpy\n\nimport awkward as ak\nfrom awkward._errors import wrap_error\nfrom awkward._nplikes.numpylike import ArrayLike, IndexType, Nu...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\nfrom __future__ import annotations\n\nfrom numbers import Number\n\nimport numpy\n\nimport awkward as ak\nfrom awkward._errors import wrap_error\nfrom awkward._nplikes.numpylike import ArrayLike, IndexType, Nu...
diff --git a/src/awkward/_nplikes/typetracer.py b/src/awkward/_nplikes/typetracer.py index 62f77e3dbf..b00ed99a28 100644 --- a/src/awkward/_nplikes/typetracer.py +++ b/src/awkward/_nplikes/typetracer.py @@ -1187,7 +1187,7 @@ def nan_to_num( neginf: int | float | None = None, ) -> TypeTracerArray: ...
Gallopsled__pwntools-470
History search crashes if item isn't found and enter is pressed The history search in term.readline crashes when an item is searched for, but not found and then enter is pressed. ``` Traceback (most recent call last): File "./t.py", line 58, in <module> code.interact(local=locals()) File "/usr/lib/python2.7/co...
[ { "content": "from . import term, text\nfrom . import keymap as km\nfrom . import keyconsts as kc\ncursor = text.reverse\n\nbuffer_left, buffer_right = u'', u''\nsaved_buffer = None\nhistory = []\nhistory_idx = None\nprompt_handle = None\nbuffer_handle = None\nsuggest_handle = None\nsearch_idx = None\nsearch_re...
[ { "content": "from . import term, text\nfrom . import keymap as km\nfrom . import keyconsts as kc\ncursor = text.reverse\n\nbuffer_left, buffer_right = u'', u''\nsaved_buffer = None\nhistory = []\nhistory_idx = None\nprompt_handle = None\nbuffer_handle = None\nsuggest_handle = None\nsearch_idx = None\nsearch_re...
diff --git a/pwnlib/term/readline.py b/pwnlib/term/readline.py index 8e435d2bd..5ebb26bb0 100644 --- a/pwnlib/term/readline.py +++ b/pwnlib/term/readline.py @@ -136,7 +136,7 @@ def cancel_search(*_): def commit_search(): global search_idx - if search_idx is not None: + if search_idx is not None and search...
facebookresearch__fairseq-214
Size Mismatch in AdaptiveSoftmax when targets are not specified Following up on #212 , I'm updating `sequence_generator.py` to generate text from a pre-trained language model (initially trained with adaptive softmax). When computing log probabilities, and the targets are set to none, I receive a size mismatch exception...
[ { "content": "# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n#\n# This source code is licensed under the license found in the LICENSE file in\n# the root directory of this source tree. An additional grant of patent rights\n# can be found in the PATENTS file in the same directory.\n\n\nimp...
[ { "content": "# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n#\n# This source code is licensed under the license found in the LICENSE file in\n# the root directory of this source tree. An additional grant of patent rights\n# can be found in the PATENTS file in the same directory.\n\n\nimp...
diff --git a/fairseq/modules/adaptive_softmax.py b/fairseq/modules/adaptive_softmax.py index 307861b6c8..aeceb486df 100644 --- a/fairseq/modules/adaptive_softmax.py +++ b/fairseq/modules/adaptive_softmax.py @@ -22,6 +22,9 @@ def __init__(self, vocab_size, input_dim, cutoff, dropout): if vocab_size > cutoff[-...
pre-commit__pre-commit-2836
Alternative to stashing files for testing Are there any plans to implement alternatives to stashing the worktree? Ideally this would be hook/scriptable, like some 'prepare-worktree' and 'restore-worktree' options (which default to the current stash behavior) but can also yield some new directory where the tests are ...
[ { "content": "from __future__ import annotations\n\nimport contextlib\nimport os\nfrom typing import Generator\nfrom typing import Sequence\n\nfrom pre_commit import lang_base\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.envcontext import PatchesT\nfrom pre_commit.envcontext import Var\nfrom p...
[ { "content": "from __future__ import annotations\n\nimport contextlib\nimport os\nfrom typing import Generator\nfrom typing import Sequence\n\nfrom pre_commit import lang_base\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.envcontext import PatchesT\nfrom pre_commit.envcontext import Var\nfrom p...
diff --git a/pre_commit/languages/swift.py b/pre_commit/languages/swift.py index 8250ab703..f16bb0451 100644 --- a/pre_commit/languages/swift.py +++ b/pre_commit/languages/swift.py @@ -44,7 +44,7 @@ def install_environment( os.mkdir(envdir) cmd_output_b( 'swift', 'build', - '-C', prefix.prefix...
biopython__biopython-2059
Duplicate files in Tests/Motif and Tests/motifs The files in Test/motifs seem to be a copy of those in Test/Motif plus some more. Has the Motif directory been deprecated since renaming Bio.Motif to Bio.motifs?
[ { "content": "# Copyright 2003-2009 by Bartek Wilczynski. All rights reserved.\n# Copyright 2012-2013 by Michiel JL de Hoon. All rights reserved.\n# This code is part of the Biopython distribution and governed by its\n# license. Please see the LICENSE file that should have been included\n# as part of this pa...
[ { "content": "# Copyright 2003-2009 by Bartek Wilczynski. All rights reserved.\n# Copyright 2012-2013 by Michiel JL de Hoon. All rights reserved.\n# This code is part of the Biopython distribution and governed by its\n# license. Please see the LICENSE file that should have been included\n# as part of this pa...
diff --git a/Bio/motifs/__init__.py b/Bio/motifs/__init__.py index 982279765df..682cff9e25c 100644 --- a/Bio/motifs/__init__.py +++ b/Bio/motifs/__init__.py @@ -44,7 +44,7 @@ def parse(handle, format, strict=True): For example: >>> from Bio import motifs - >>> with open("Motif/alignace.out") as handle: +...
fidals__shopelectro-422
helpers.py:58-59: Move selenium timeout to env var. stb2... The puzzle `371-6673a075` from #371 has to be resolved: https://github.com/fidals/shopelectro/blob/7d319f81942692c16105a8f8703e483a7067f1ef/shopelectro/tests/helpers.py#L58-L59 The puzzle was created by duker33 on 19-Jun-18. Estimate: 15 minutes, If ...
[ { "content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/...
[ { "content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/...
diff --git a/.drone.yml b/.drone.yml index c484de09..4c4cde5e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -173,10 +173,13 @@ services: selenium: image: selenium/standalone-chrome-debug:3.10.0 - environment: # https://github.com/SeleniumHQ/docker-selenium/issues/392 + environment: + # https://github...
feast-dev__feast-3904
Table in Postgres OnlineStore is not populated after calling `materialize` ## Expected Behavior When calling the `materialize` functionality to materialize data from a `SnowflakeSource` offline store to a local `PostgreSQLOnlineStore`, the table is not populated with the data. ## Current Behavior The feature table...
[ { "content": "import contextlib\nimport logging\nfrom collections import defaultdict\nfrom datetime import datetime\nfrom typing import Any, Callable, Dict, List, Optional, Sequence, Tuple\n\nimport psycopg2\nimport pytz\nfrom psycopg2 import sql\nfrom psycopg2.extras import execute_values\nfrom psycopg2.pool i...
[ { "content": "import contextlib\nimport logging\nfrom collections import defaultdict\nfrom datetime import datetime\nfrom typing import Any, Callable, Dict, List, Optional, Sequence, Tuple\n\nimport psycopg2\nimport pytz\nfrom psycopg2 import sql\nfrom psycopg2.extras import execute_values\nfrom psycopg2.pool i...
diff --git a/sdk/python/feast/infra/online_stores/contrib/postgres.py b/sdk/python/feast/infra/online_stores/contrib/postgres.py index a12e66f1090..49f87ddb0ae 100644 --- a/sdk/python/feast/infra/online_stores/contrib/postgres.py +++ b/sdk/python/feast/infra/online_stores/contrib/postgres.py @@ -99,6 +99,7 @@ def onlin...
netbox-community__netbox-15568
Typo in Tag model ### Deployment Type Self-hosted ### NetBox Version v3.7.4 ### Python Version 3.8 ### Steps to Reproduce Typo in help_text where "this" is mistakenly repeated. https://github.com/netbox-community/netbox/blob/69c0aac1051015660133b2ae3c86607dabd8084b/netbox/extras/models/tags.py#L40 ### Expect...
[ { "content": "from django.conf import settings\nfrom django.db import models\nfrom django.urls import reverse\nfrom django.utils.text import slugify\nfrom django.utils.translation import gettext_lazy as _\nfrom taggit.models import TagBase, GenericTaggedItemBase\n\nfrom netbox.models import ChangeLoggedModel\nf...
[ { "content": "from django.conf import settings\nfrom django.db import models\nfrom django.urls import reverse\nfrom django.utils.text import slugify\nfrom django.utils.translation import gettext_lazy as _\nfrom taggit.models import TagBase, GenericTaggedItemBase\n\nfrom netbox.models import ChangeLoggedModel\nf...
diff --git a/netbox/extras/models/tags.py b/netbox/extras/models/tags.py index 3aba6df60ab..97b9087c593 100644 --- a/netbox/extras/models/tags.py +++ b/netbox/extras/models/tags.py @@ -37,7 +37,7 @@ class Tag(CloningMixin, ExportTemplatesMixin, ChangeLoggedModel, TagBase): to='contenttypes.ContentType', ...
cisagov__manage.get.gov-726
Create a Staging Environment in Cloud.gov ### User Story Developers and Reviewers require a Staging environment in cloud.gov to support using stable as prod. ### Acceptance Criteria Update the environment creation script to produce and maintain a cloud.gov staging environment. ### Additional Context (optional) ...
[ { "content": "\"\"\"\nDjango settings for .gov registrar project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/4.0/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/4.0/ref/settings/\n\nIF you'd like to see all of these set...
[ { "content": "\"\"\"\nDjango settings for .gov registrar project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/4.0/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/4.0/ref/settings/\n\nIF you'd like to see all of these set...
diff --git a/.github/ISSUE_TEMPLATE/developer-onboarding.md b/.github/ISSUE_TEMPLATE/developer-onboarding.md index 74af9ef60..92ae9e3a1 100644 --- a/.github/ISSUE_TEMPLATE/developer-onboarding.md +++ b/.github/ISSUE_TEMPLATE/developer-onboarding.md @@ -83,6 +83,6 @@ export GPG_TTY ## Setting up developer sandbox -...
yt-project__yt-2226
get_yt_version not working in Python 3 ### Bug report Running `yt.get_yt_version` shows the following behavior. ``` >>> import yt >>> yt.get_yt_version() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/britton/Documents/work/yt/yt/yt/funcs.py", line 652, in get_yt_vers...
[ { "content": "\"\"\"\nUseful functions. If non-original, see function for citation.\n\n\n\n\"\"\"\nfrom __future__ import print_function\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modifie...
[ { "content": "\"\"\"\nUseful functions. If non-original, see function for citation.\n\n\n\n\"\"\"\nfrom __future__ import print_function\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modifie...
diff --git a/yt/funcs.py b/yt/funcs.py index eefe83cd1b2..b8b1d6e7f68 100644 --- a/yt/funcs.py +++ b/yt/funcs.py @@ -649,7 +649,10 @@ def get_yt_version(): if version is None: return version else: - return version[:12].strip().decode('utf-8') + v_str = version[:12].strip() + if h...
ansible-collections__community.general-7875
community.general.incus connection not working as inventory_hostname treated as litteral ### Summary In my environment I am connecting to an incus server via a remote client on OSX. Ansible, running on the OSX machine is utilizing roles, and gets the inventory_hostname from the filename under the host_vars directory....
[ { "content": "# -*- coding: utf-8 -*-\n# Based on lxd.py (c) 2016, Matt Clay <matt@mystile.com>\n# (c) 2023, Stephane Graber <stgraber@stgraber.org>\n# Copyright (c) 2023 Ansible Project\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-L...
[ { "content": "# -*- coding: utf-8 -*-\n# Based on lxd.py (c) 2016, Matt Clay <matt@mystile.com>\n# (c) 2023, Stephane Graber <stgraber@stgraber.org>\n# Copyright (c) 2023 Ansible Project\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-L...
diff --git a/changelogs/fragments/7874-incus_connection_treats_inventory_hostname_as_literal_in_remotes.yml b/changelogs/fragments/7874-incus_connection_treats_inventory_hostname_as_literal_in_remotes.yml new file mode 100644 index 00000000000..83d302e9b9a --- /dev/null +++ b/changelogs/fragments/7874-incus_connection_...
pennersr__django-allauth-2987
Update Facebook complete login Users may want to create custom provider which extends FacebookProvider and set custom provider_id. For example ``` from allauth.socialaccount.providers.facebook.provider import FacebookProvider class FacebookGroupProvider(FacebookProvider): id = "facebook_group" name ...
[ { "content": "import hashlib\nimport hmac\nimport logging\nimport requests\nfrom datetime import timedelta\n\nfrom django.utils import timezone\n\nfrom allauth.socialaccount import app_settings, providers\nfrom allauth.socialaccount.helpers import (\n complete_social_login,\n render_authentication_error,\...
[ { "content": "import hashlib\nimport hmac\nimport logging\nimport requests\nfrom datetime import timedelta\n\nfrom django.utils import timezone\n\nfrom allauth.socialaccount import app_settings, providers\nfrom allauth.socialaccount.helpers import (\n complete_social_login,\n render_authentication_error,\...
diff --git a/allauth/socialaccount/providers/facebook/views.py b/allauth/socialaccount/providers/facebook/views.py index d74bd36f78..002fd3cdc4 100644 --- a/allauth/socialaccount/providers/facebook/views.py +++ b/allauth/socialaccount/providers/facebook/views.py @@ -35,7 +35,7 @@ def compute_appsecret_proof(app, token)...
googleapis__python-bigquery-802
ChunkedEncodingError is not retried when fetching data with list_rows() Original issue: https://github.com/googleapis/python-bigquery-storage/issues/242 A user reported that they saw an error in production when fetching table data with `Client.list_rows()`. That method uses the [default retry object](https://github....
[ { "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 applicabl...
[ { "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 applicabl...
diff --git a/google/cloud/bigquery/retry.py b/google/cloud/bigquery/retry.py index 5e9075fe1..2df4de08b 100644 --- a/google/cloud/bigquery/retry.py +++ b/google/cloud/bigquery/retry.py @@ -27,6 +27,7 @@ exceptions.TooManyRequests, exceptions.InternalServerError, exceptions.BadGateway, + requests.excep...
hylang__hy-320
hy raises ImportError out of the box This is on Python 2.6. May be related to #37 I think `hy` should probably install the `importlib` dependency at installation time, or the docs should state clearly that `importlib` needs to be installed ahead of time. Or, (worst case) state that Python 2.6 is not supported. ``` ...
[ { "content": "#!/usr/bin/env python\n# Copyright (c) 2012, 2013 Paul Tagliamonte <paultag@debian.org>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the \"Software\"),\n# to deal in the Software without restriction, incl...
[ { "content": "#!/usr/bin/env python\n# Copyright (c) 2012, 2013 Paul Tagliamonte <paultag@debian.org>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the \"Software\"),\n# to deal in the Software without restriction, incl...
diff --git a/setup.py b/setup.py index f3e181456..24621eed5 100755 --- a/setup.py +++ b/setup.py @@ -48,6 +48,7 @@ install_requires = ['rply>=0.6.2'] if sys.version_info[:2] < (2, 7): install_requires.append('argparse>=1.2.1') + install_requires.append('importlib>=1.0.2') if os.name == 'nt': install_req...
DDMAL__CantusDB-566
On Chant Detail page, in the Source Navigation sidebar, indicate current chant Currently, on the chant detail page, there is a sidebar that lists the chants on the current folio as well as on nearby folios. In the sidebar, there is no indication of which chant is currently being displayed: ![Screen Shot 2022-12-15 at ...
[ { "content": "from latin_syllabification import syllabify_word\nfrom itertools import zip_longest\n\n\"\"\"\nsome useful info taken from the text entry guideline:\nthe symbols are present only in the MS spelling, not std spelling\nvertical stroke | identifies sections within a chant, it's meant to help align te...
[ { "content": "from latin_syllabification import syllabify_word\nfrom itertools import zip_longest\n\n\"\"\"\nsome useful info taken from the text entry guideline:\nthe symbols are present only in the MS spelling, not std spelling\nvertical stroke | identifies sections within a chant, it's meant to help align te...
diff --git a/django/cantusdb_project/align_text_mel.py b/django/cantusdb_project/align_text_mel.py index b7e1e1db6..fcac31f7e 100644 --- a/django/cantusdb_project/align_text_mel.py +++ b/django/cantusdb_project/align_text_mel.py @@ -155,7 +155,6 @@ def syllabize_melody(volpiano): # remove the trailing "--" (ad...
matrix-org__synapse-6682
http requests for uris with non-ascii characters cause CRITICAL errors ``` 2019-11-22 13:15:59,276 - twisted - 172 - CRITICAL - - Capture point (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, i...
[ { "content": "# Copyright 2016 OpenMarket Ltd\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 appli...
[ { "content": "# Copyright 2016 OpenMarket Ltd\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 appli...
diff --git a/changelog.d/6682.bugfix b/changelog.d/6682.bugfix new file mode 100644 index 000000000000..d48ea31477f5 --- /dev/null +++ b/changelog.d/6682.bugfix @@ -0,0 +1,2 @@ +Fix "CRITICAL" errors being logged when a request is received for a uri containing non-ascii characters. + diff --git a/synapse/http/site.py b...
Lightning-AI__torchmetrics-2346
High memory usage of Perplexity metric ## 🐛 Bug I ran out of memory (GPU) when computing the perplexity metric and would like to propose a small optimization to decrease its memory utilization. ### To Reproduce For instance, when running the following code PyTorch tries to allocate 1024 GB of GPU memory on my...
[ { "content": "# Copyright The Lightning team.\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 appli...
[ { "content": "# Copyright The Lightning team.\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 appli...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ad35113a0f6..b7d3e419e16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed high memory consumption in `Perplexity` metric ([#2346](https://github.com/Light...
RedHatInsights__insights-core-1112
hostname parser doesn't handle sos_commands/general/hostname sos_commands/general/hostname contains the hostname with a newline at the end, which results in a file with two lines. The hostname parser specifically checks for one line but doesn't gracefully handle the problem. We can update the parser to handle this c...
[ { "content": "\"\"\"\nhostname - command ``/bin/hostname``\n====================================\n\nThis parser simply reads the output of ``/bin/hostname``, which is the\nconfigured fully qualified domain name of the client system. It then\nsplits it into ``hostname`` and ``domain`` and stores these as attrib...
[ { "content": "\"\"\"\nhostname - command ``/bin/hostname``\n====================================\n\nThis parser simply reads the output of ``/bin/hostname``, which is the\nconfigured fully qualified domain name of the client system. It then\nsplits it into ``hostname`` and ``domain`` and stores these as attrib...
diff --git a/insights/parsers/hostname.py b/insights/parsers/hostname.py index 1af7ed8e60..ecb3658983 100644 --- a/insights/parsers/hostname.py +++ b/insights/parsers/hostname.py @@ -34,6 +34,7 @@ class Hostname(Parser): domain: The domain get from the fqdn. """ def parse_content(self, content): + ...
beetbox__beets-2631
Broken pipe on piping `list` output on Python 3 ### Problem I'm trying to write a quick dirty script to play the first result of a search, looking much like you'd expect: ```sh mpv --no-audio-display "$(beet ls -p $@ | head -n 1)" ``` However, there's something in the formatting of the output that `head` doe...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py index 6ba80d22f0..af2b79a198 100644 --- a/beets/ui/__init__.py +++ b/beets/ui/__init__.py @@ -1276,7 +1276,7 @@ def main(args=None): except IOError as exc: if exc.errno == errno.EPIPE: # "Broken pipe". End silently. - pass + ...
projectmesa__mesa-2125
Fix error in failing flocking benchmark Our benchmarks are failing: https://github.com/projectmesa/mesa/actions/workflows/benchmarks.yml ```bash 08:41:17 starting benchmarks. 08:41:35 Schelling (small) timings: Init 0.00771 s; Run 0.0472 s 08:41:55 Schelling (large) timings: Init 0.05062 s; Run 0.4629 s...
[ { "content": "\"\"\"\nFlockers\n=============================================================\nA Mesa implementation of Craig Reynolds's Boids flocker model.\nUses numpy arrays to represent vectors.\n\"\"\"\n\nimport numpy as np\n\nimport mesa\n\n\nclass Boid(mesa.Agent):\n \"\"\"\n A Boid-style flocker a...
[ { "content": "\"\"\"\nFlockers\n=============================================================\nA Mesa implementation of Craig Reynolds's Boids flocker model.\nUses numpy arrays to represent vectors.\n\"\"\"\n\nimport numpy as np\n\nimport mesa\n\n\nclass Boid(mesa.Agent):\n \"\"\"\n A Boid-style flocker a...
diff --git a/benchmarks/Flocking/flocking.py b/benchmarks/Flocking/flocking.py index fc19c6c3820..ff9f97c0c96 100644 --- a/benchmarks/Flocking/flocking.py +++ b/benchmarks/Flocking/flocking.py @@ -139,7 +139,6 @@ def __init__( boid = Boid( unique_id=i, model=self, - ...
Pyomo__pyomo-2633
Fixed Vars unpickle as stale ## Summary I'm not sure if this is a bug, but it seems unexpected? Anyway, if you pickle a model that has a fixed variable (not stale), when you unpickle it, it comes back as stale. ### Steps to reproduce the issue ``` from pyomo.environ import * import pickle m = ConcreteMode...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright (c) 2008-2022\n# National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright (c) 2008-2022\n# National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n...
diff --git a/pyomo/core/staleflag.py b/pyomo/core/staleflag.py index 1247df2247b..01cc70406a3 100644 --- a/pyomo/core/staleflag.py +++ b/pyomo/core/staleflag.py @@ -21,7 +21,7 @@ def stale_mapper(self, encode, value): if value: return 0 else: - self.get_flag(0) ...
aws__aws-cli-357
pip install awscli fails I tried `pip install awscli` from https://github.com/aws/aws-cli/blob/develop/README.rst and failed: http://sprunge.us/NfbW /home/hendry/.pip/pip.log = http://ix.io/7SC Hilarious how bad Python packaging is. I'm running Archlinux with Python 3.3.2.
[ { "content": "#!/usr/bin/env python\nimport sys\n\nfrom setuptools import setup, find_packages\n\nimport awscli\n\n\nrequires = ['botocore>=0.16.0,<0.17.0',\n 'bcdoc>=0.9.0,<0.10.0',\n 'six>=1.1.0',\n 'colorama==0.2.5',\n 'docutils>=0.10',\n 'rsa==3.1.1']\n...
[ { "content": "#!/usr/bin/env python\nimport sys\n\nfrom setuptools import setup, find_packages\n\nimport awscli\n\n\nrequires = ['botocore>=0.16.0,<0.17.0',\n 'bcdoc>=0.9.0,<0.10.0',\n 'six>=1.1.0',\n 'colorama==0.2.5',\n 'docutils>=0.10',\n 'rsa==3.1.2']\n...
diff --git a/requirements.txt b/requirements.txt index 6b6a74447dcd..fd6551a87ad9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,4 +11,4 @@ nose==1.3.0 colorama==0.2.5 mock==1.0.1 httpretty==0.6.1 -rsa==3.1.1 +rsa==3.1.2 diff --git a/setup.py b/setup.py index 9df11b894ad8..d0c1630346d9 100644 --- a/setu...
boto__boto-215
RDS call modify_dbinstance with multi_az = True doesn't actually set an instance to MultiAZ Making a call to a non-multiaz instance with multi_az=True doesn't actually switch the parameter. I assume this is also true for creating one from scratch, but I haven't tested that yet.
[ { "content": "# Copyright (c) 2010 Spotify AB\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitation the rights to use, copy, mod...
[ { "content": "# Copyright (c) 2010 Spotify AB\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitation the rights to use, copy, mod...
diff --git a/boto/emr/connection.py b/boto/emr/connection.py index f0145e33de..4409d69ed8 100644 --- a/boto/emr/connection.py +++ b/boto/emr/connection.py @@ -274,7 +274,7 @@ def _build_instance_args(self, ec2_keyname, availability_zone, master_instance_t if ec2_keyname: params['Instances.Ec2KeyNa...
microsoft__playwright-python-625
Release-blocker: uncomment cors tests Search for this issue URL in the code.
[ { "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/_page.py b/playwright/_impl/_page.py index 340a473dc..5c71a692c 100644 --- a/playwright/_impl/_page.py +++ b/playwright/_impl/_page.py @@ -779,8 +779,6 @@ async def pdf( def video( self, ) -> Optional[Video]: - if "recordVideo" not in self._browser_context._option...
dotkom__onlineweb4-1220
Tags with a '.' will crash Ref. http://moonshine.online.ntnu.no/article/10/online-far-ny-nettside
[ { "content": "from django.contrib import admin\nfrom apps.article.models import Article, Tag, ArticleTag\nfrom django.conf import settings\nfrom filebrowser.settings import VERSIONS, ADMIN_THUMBNAIL\n\n\nclass ArticleTagAdmin(admin.ModelAdmin):\n model = ArticleTag\n\n\nclass ArticleTagInline(admin.TabularIn...
[ { "content": "from django.contrib import admin\nfrom apps.article.models import Article, Tag, ArticleTag\nfrom django.conf import settings\nfrom filebrowser.settings import VERSIONS, ADMIN_THUMBNAIL\n\n\nclass ArticleTagAdmin(admin.ModelAdmin):\n model = ArticleTag\n\n\nclass ArticleTagInline(admin.TabularIn...
diff --git a/apps/article/admin.py b/apps/article/admin.py index ea7facf14..205fab1f4 100755 --- a/apps/article/admin.py +++ b/apps/article/admin.py @@ -18,6 +18,7 @@ class TagAdmin(admin.ModelAdmin): def save_model(self, request, obj, form, change): obj.changed_by = request.user if not change: +...
gammapy__gammapy-5146
Incorrect return type for `Geom.energy_mask` `Geom.energy_mask` returns a `Map` wit the same geometry as the parent `Geom`. This is incorrect in the currentl documentation which states the return type is `np.array`: https://github.com/gammapy/gammapy/blob/e5aecb334e7aebe304affd96b545a636019f7626/gammapy/maps/geom.py#L6...
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport abc\nimport copy\nimport html\nimport inspect\nimport logging\nimport numpy as np\nfrom astropy import units as u\nfrom astropy.io import fits\nfrom .io import find_bands_hdu, find_hdu\nfrom .utils import INVALID_INDEX\n\n__al...
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport abc\nimport copy\nimport html\nimport inspect\nimport logging\nimport numpy as np\nfrom astropy import units as u\nfrom astropy.io import fits\nfrom .io import find_bands_hdu, find_hdu\nfrom .utils import INVALID_INDEX\n\n__al...
diff --git a/gammapy/maps/geom.py b/gammapy/maps/geom.py index 5afe261137..5d8cefde7c 100644 --- a/gammapy/maps/geom.py +++ b/gammapy/maps/geom.py @@ -625,8 +625,9 @@ def energy_mask(self, energy_min=None, energy_max=None, round_to_edge=False): Returns ------- - mask : `~numpy.ndarray` - ...
conan-io__conan-center-index-7286
[package] aws-c-event-stream/0.2.7: conflicting openssl versions ``` ERROR: Conflict in s2n/1.0.11: 's2n/1.0.11' requires 'openssl/1.1.1k' while 'aws-c-cal/0.5.11' requires 'openssl/1.1.1l'. To fix this conflict you need to override the package 'openssl' in your root package. ``` seems like it was introd...
[ { "content": "from conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\n\nrequired_conan_version = \">=1.33.0\"\n\nclass S2n(ConanFile):\n name = \"s2n\"\n description = \"An implementation of the TLS/SSL protocols\"\n topics = (\"conan\", \"aws\", \"am...
[ { "content": "from conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\n\nrequired_conan_version = \">=1.33.0\"\n\nclass S2n(ConanFile):\n name = \"s2n\"\n description = \"An implementation of the TLS/SSL protocols\"\n topics = (\"conan\", \"aws\", \"am...
diff --git a/recipes/s2n/all/conanfile.py b/recipes/s2n/all/conanfile.py index 12cf8ff20e2f6..dbe79bb113a09 100644 --- a/recipes/s2n/all/conanfile.py +++ b/recipes/s2n/all/conanfile.py @@ -36,7 +36,7 @@ def configure(self): del self.settings.compiler.libcxx def requirements(self): - self.requires...
ansible__ansible-modules-core-4989
fstab parameter of mount module won't work ##### Issue Type: - Bug Report ##### Ansible Version: ansible 2.0.0.2 config file = /etc/ansible/ansible.cfg configured module search path = /usr/share/ansible ##### Ansible Configuration: ##### Environment: Ubuntu 14.04 64Bit ##### Summary: set fstab=**/tmp/fstab** in ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Red Hat, inc\n# Written by Seth Vidal\n# based on the mount modules from salt and puppet\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Publi...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Red Hat, inc\n# Written by Seth Vidal\n# based on the mount modules from salt and puppet\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Publi...
diff --git a/system/mount.py b/system/mount.py index 38785cd9303..1033c3f80ab 100644 --- a/system/mount.py +++ b/system/mount.py @@ -375,7 +375,7 @@ def mount(module, **kwargs): if get_platform().lower() == 'freebsd': cmd += ['-F', args['fstab']] - elif get_platform().lower() == 'linux': + elif ge...
zalando__patroni-2309
Patroni fails to completely strip enclosing brackets around IPv6 addresses as part of a list when port is specified **Describe the bug** When specifying PostgreSQL listen IPv6 addresses (postgresql.listen) in the Patroni configuration, Patroni fails to strip all enclosing brackets around IPv6 addresses, leaving the le...
[ { "content": "import errno\nimport json.decoder as json_decoder\nimport logging\nimport os\nimport platform\nimport random\nimport re\nimport socket\nimport sys\nimport tempfile\nimport time\n\nfrom dateutil import tz\n\nfrom .exceptions import PatroniException\nfrom .version import __version__\n\ntzutc = tz.tz...
[ { "content": "import errno\nimport json.decoder as json_decoder\nimport logging\nimport os\nimport platform\nimport random\nimport re\nimport socket\nimport sys\nimport tempfile\nimport time\n\nfrom dateutil import tz\n\nfrom .exceptions import PatroniException\nfrom .version import __version__\n\ntzutc = tz.tz...
diff --git a/patroni/utils.py b/patroni/utils.py index 1cfad9196..01953d05d 100644 --- a/patroni/utils.py +++ b/patroni/utils.py @@ -362,7 +362,7 @@ def polling_loop(timeout, interval=1): def split_host_port(value, default_port): t = value.rsplit(':', 1) if ':' in t[0]: - t[0] = t[0].strip('[]') + ...
wemake-services__wemake-python-styleguide-1261
Bump flake8-builtins New version of `flake8-builtins` is released: `1.5.2` We need to update our dependency here: https://github.com/wemake-services/wemake-python-styleguide/blob/master/pyproject.toml#L63 Here's how to do it: https://github.com/wemake-services/wemake-python-styleguide/blob/master/CONTRIBUTING.md#de...
[ { "content": "\"\"\"\nProvides configuration options for ``wemake-python-styleguide``.\n\nWe do not like our linter to be highly configurable.\nSince, people may take the wrong path or make wrong decisions.\nWe try to make all defaults as reasonable as possible.\n\nHowever, you can currently adjust some complex...
[ { "content": "\"\"\"\nProvides configuration options for ``wemake-python-styleguide``.\n\nWe do not like our linter to be highly configurable.\nSince, people may take the wrong path or make wrong decisions.\nWe try to make all defaults as reasonable as possible.\n\nHowever, you can currently adjust some complex...
diff --git a/.github/workflows/wps.yml b/.github/workflows/wps.yml index a876ea97d..e0850dbdd 100644 --- a/.github/workflows/wps.yml +++ b/.github/workflows/wps.yml @@ -17,3 +17,4 @@ jobs: reporter: 'github-pr-review' env: GITHUB_TOKEN: ${{ secrets.github_token }} + continue-on-error: true...
microsoft__playwright-python-13
[BUG]: page.getAttribute returns None Actual: ```py import asyncio from playwright_web import chromium async def run(): browser = await chromium.launch(headless=False) context = await browser.newContext(viewport=0) # 0 stands for no viewport page = await context.newPage() await page.set...
[ { "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_web/frame.py b/playwright_web/frame.py index bd0a75df7..0f7ec60e2 100644 --- a/playwright_web/frame.py +++ b/playwright_web/frame.py @@ -181,7 +181,7 @@ async def getAttribute(self, selector: str, name: str, timeout: int = None) -> str: - await self._channel.send('getAttr...
ansible__molecule-649
ansible-lint called from Molecule fails when no Ansible-installed-with-pip is present # Issue Type - Bug report # Molecule and Ansible details ``` # ansible --version ansible 2.2.1.0 (stable-2.2 acad2ba246) last updated 2016/12/11 20:27:02 (GMT +900) lib/ansible/modules/core: (detached HEAD 8139278530) la...
[ { "content": "# Copyright (c) 2015-2016 Cisco Systems, Inc.\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\n# deal in the Software without restriction, including without limitation the\n# right...
[ { "content": "# Copyright (c) 2015-2016 Cisco Systems, Inc.\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\n# deal in the Software without restriction, including without limitation the\n# right...
diff --git a/molecule/verifier/ansible_lint.py b/molecule/verifier/ansible_lint.py index fc117028c6..078a03e101 100644 --- a/molecule/verifier/ansible_lint.py +++ b/molecule/verifier/ansible_lint.py @@ -49,6 +49,7 @@ def execute(self): env = { 'ANSIBLE_CONFIG': self._molecule.config.c...
freedomofpress__securedrop-2998
securedrop-admin sdconfig erases additional values in site-specific # Bug ## Description securedrop-admin sdconfig erases values in site-specific when they are not prompted for. `securedrop-admin sdconfig` should not erase entries in site-specific, which would help testing (e.g.: releases that are in development ...
[ { "content": "# -*- mode: python; coding: utf-8 -*-\n#\n# Copyright (C) 2013-2018 Freedom of the Press Foundation & al\n# Copyright (C) 2018 Loic Dachary <loic@dachary.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as...
[ { "content": "# -*- mode: python; coding: utf-8 -*-\n#\n# Copyright (C) 2013-2018 Freedom of the Press Foundation & al\n# Copyright (C) 2018 Loic Dachary <loic@dachary.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as...
diff --git a/admin/securedrop_admin/__init__.py b/admin/securedrop_admin/__init__.py index dc6290e6ce..4f88ccca58 100755 --- a/admin/securedrop_admin/__init__.py +++ b/admin/securedrop_admin/__init__.py @@ -291,7 +291,7 @@ def load_and_update_config(self): return self.update_config() def update_config(s...
carpentries__amy-770
Names show up multiple times in assignment pulldown 1. Go to an event. 2. Try to assign to assign to someone other than yourself. 3. Selection dialog with pulldown appears so that you can choose person. 4. Some names (currently Greg Wilson and Tracy Teal, possibly others) show up multiple times in that list.
[ { "content": "from functools import reduce\nimport operator\nimport re\n\nfrom django.contrib.auth.models import Group\nfrom django.db.models import Q\n\nfrom selectable.base import ModelLookup\nfrom selectable.registry import registry\nfrom selectable.decorators import login_required\n\nfrom workshops import m...
[ { "content": "from functools import reduce\nimport operator\nimport re\n\nfrom django.contrib.auth.models import Group\nfrom django.db.models import Q\n\nfrom selectable.base import ModelLookup\nfrom selectable.registry import registry\nfrom selectable.decorators import login_required\n\nfrom workshops import m...
diff --git a/workshops/lookups.py b/workshops/lookups.py index 2fef53b01..8f1108d38 100644 --- a/workshops/lookups.py +++ b/workshops/lookups.py @@ -83,7 +83,7 @@ def get_query(self, request, term): admin_group = Group.objects.get(name='administrators') results = results.filter( Q(is_supe...
bokeh__bokeh-1617
BokehJS unrecoverable errors in notebook It seems easy to get the notebook into an unrecoverable state when using `push_notebook` and IPython interactors. Must close the session entirely and start again to regain plots. Executing all the cells in the notebook stored in this gist: https://gist.github.com/bryevdv/b4e9e...
[ { "content": "from __future__ import absolute_import\n\nfrom six import iteritems\nfrom collections import OrderedDict\n\nfrom .models import glyphs, markers\nfrom .mixins import FillProps, LineProps\n\ndef _glyph_function(glyphclass, dsnames, argnames, docstring, xfields=[\"x\"], yfields=[\"y\"]):\n\n def f...
[ { "content": "from __future__ import absolute_import\n\nfrom six import iteritems\nfrom collections import OrderedDict\n\nfrom .models import glyphs, markers\nfrom .mixins import FillProps, LineProps\n\ndef _glyph_function(glyphclass, dsnames, argnames, docstring, xfields=[\"x\"], yfields=[\"y\"]):\n\n def f...
diff --git a/bokeh/_glyph_functions.py b/bokeh/_glyph_functions.py index 757e0d784c6..ce6c3e21fcd 100644 --- a/bokeh/_glyph_functions.py +++ b/bokeh/_glyph_functions.py @@ -49,8 +49,6 @@ def func(document_or_plot, *args, **kwargs): raise ValueError("expected document or plot object for first argument") ...
voxel51__fiftyone-1392
[BUG] App label filter not working in Colab I ran through the [quickstart](https://colab.research.google.com/github/voxel51/fiftyone-examples/blob/master/examples/quickstart.ipynb) in Colab (using `fiftyone==0.14.0`) and found an App error when trying to use a `label` filter in the App. The error also occurred when ...
[ { "content": "\"\"\"\nFiftyOne Tornado server.\n\n| Copyright 2017-2021, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport asyncio\nimport argparse\nfrom collections import defaultdict\nfrom datetime import date, datetime, timedelta\nimport math\nimport os\nimport traceback\n\nimport tor...
[ { "content": "\"\"\"\nFiftyOne Tornado server.\n\n| Copyright 2017-2021, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport asyncio\nimport argparse\nfrom collections import defaultdict\nfrom datetime import date, datetime, timedelta\nimport math\nimport os\nimport traceback\n\nimport tor...
diff --git a/fiftyone/server/main.py b/fiftyone/server/main.py index 0fd89313b25..439f83b4369 100644 --- a/fiftyone/server/main.py +++ b/fiftyone/server/main.py @@ -377,6 +377,7 @@ async def post(self): message = {"state": StateHandler.state} if event in { + "count_val...
ansible__ansible-modules-core-3295
size parameter required set to be no when state is absent in os_volume ##### Issue Type: - Documentation Report ##### Plugin Name: os_volume ##### Ansible Version: ``` 2.4 ``` ##### Ansible Configuration: <!-- Please mention any settings you've changed/added/removed in ansible.cfg (or using the ANSIBLE_* environmen...
[ { "content": "#!/usr/bin/python\n\n# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.\n#\n# This module is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or...
[ { "content": "#!/usr/bin/python\n\n# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.\n#\n# This module is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or...
diff --git a/cloud/openstack/os_volume.py b/cloud/openstack/os_volume.py index 5a3d0aacab0..9e7436e1a5f 100644 --- a/cloud/openstack/os_volume.py +++ b/cloud/openstack/os_volume.py @@ -35,8 +35,9 @@ options: size: description: - - Size of volume in GB - required: only when state is 'present' + ...
wagtail__wagtail-6263
Missing SVG icons for optional rich text features ### Issue Summary Wagtail doesn't provide SVG icons for optional rich text features like strikethrough, superscript and subscript. It would also be a good addition to provide an SVG icon for underline as well, even though this rich feature is not implemented at the m...
[ { "content": "from django.contrib.auth.models import Permission\nfrom django.urls import reverse\nfrom django.utils.http import urlencode\nfrom django.utils.translation import gettext_lazy as _\nfrom django.utils.translation import gettext\nfrom draftjs_exporter.dom import DOM\n\nimport wagtail.admin.rich_text....
[ { "content": "from django.contrib.auth.models import Permission\nfrom django.urls import reverse\nfrom django.utils.http import urlencode\nfrom django.utils.translation import gettext_lazy as _\nfrom django.utils.translation import gettext\nfrom draftjs_exporter.dom import DOM\n\nimport wagtail.admin.rich_text....
diff --git a/client/src/components/Draftail/Draftail.scss b/client/src/components/Draftail/Draftail.scss index 0ce61e81f453..d8c3d6e6650c 100644 --- a/client/src/components/Draftail/Draftail.scss +++ b/client/src/components/Draftail/Draftail.scss @@ -110,6 +110,13 @@ $draftail-editor-font-family: $font-serif; bord...
comic__grand-challenge.org-1062
The schema is empty for unauthorised users. Another problem with this - the schema is empty for unauthorised users. You need to add `public=True` to `get_schema_view`. _Originally posted by @jmsmkn in https://github.com/comic/grand-challenge.org/issues/1017#issuecomment-567254400_
[ { "content": "from django.conf import settings\nfrom django.conf.urls import include, url\nfrom django.urls import path\nfrom drf_yasg import openapi\nfrom drf_yasg.views import get_schema_view\nfrom rest_framework import permissions, routers\n\nfrom grandchallenge.algorithms.views import (\n AlgorithmImageV...
[ { "content": "from django.conf import settings\nfrom django.conf.urls import include, url\nfrom django.urls import path\nfrom drf_yasg import openapi\nfrom drf_yasg.views import get_schema_view\nfrom rest_framework import permissions, routers\n\nfrom grandchallenge.algorithms.views import (\n AlgorithmImageV...
diff --git a/app/grandchallenge/api/urls.py b/app/grandchallenge/api/urls.py index df1c4687dd..83ed74ac34 100644 --- a/app/grandchallenge/api/urls.py +++ b/app/grandchallenge/api/urls.py @@ -78,6 +78,7 @@ "policies:detail", kwargs={"slug": "terms-of-service"} ), ), + public=True, perm...
Cog-Creators__Red-DiscordBot-4453
Stop backing up lavalink logs Lavalink logs are host specific, stop backing them up.
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport collections.abc\nimport json\nimport logging\nimport os\nimport re\nimport shutil\nimport tarfile\nfrom datetime import datetime\nfrom pathlib import Path\nfrom typing import (\n AsyncIterator,\n Awaitable,\n Callable,\n Iter...
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport collections.abc\nimport json\nimport logging\nimport os\nimport re\nimport shutil\nimport tarfile\nfrom datetime import datetime\nfrom pathlib import Path\nfrom typing import (\n AsyncIterator,\n Awaitable,\n Callable,\n Iter...
diff --git a/redbot/core/utils/_internal_utils.py b/redbot/core/utils/_internal_utils.py index e5ffb6ebb52..c91149f0f12 100644 --- a/redbot/core/utils/_internal_utils.py +++ b/redbot/core/utils/_internal_utils.py @@ -211,6 +211,7 @@ async def create_backup(dest: Path = Path.home()) -> Optional[Path]: os.path.j...
plotly__dash-565
New version of dash_renderer is not automatically installed with Dash 0.36.0 Deploying apps on Dash Deployment Server results in `dash-renderer` not being updated if it is already installed (even if that version is `0.16.x` and the Dash version is specified as `0.36.0`. This causes an `Error loading dependencies`, as `...
[ { "content": "import io\nfrom setuptools import setup, find_packages\n\nmain_ns = {}\nexec(open('dash/version.py').read(), main_ns) # pylint: disable=exec-used\n\nsetup(\n name='dash',\n version=main_ns['__version__'],\n author='chris p',\n author_email='chris@plot.ly',\n packages=find_packages(...
[ { "content": "import io\nfrom setuptools import setup, find_packages\n\nmain_ns = {}\nexec(open('dash/version.py').read(), main_ns) # pylint: disable=exec-used\n\nsetup(\n name='dash',\n version=main_ns['__version__'],\n author='chris p',\n author_email='chris@plot.ly',\n packages=find_packages(...
diff --git a/.circleci/requirements/dev-requirements-py37.txt b/.circleci/requirements/dev-requirements-py37.txt index f23f28d4a7..45d9a67f42 100644 --- a/.circleci/requirements/dev-requirements-py37.txt +++ b/.circleci/requirements/dev-requirements-py37.txt @@ -1,8 +1,8 @@ -dash_core_components>=0.40.2 -dash_html_comp...
lutris__lutris-3306
lutris lutris:rungameid/ does not work **Describe the bug** Using desktop shortcut does work, lutris not starting the game. **Steps to reproduce** - Install kubuntu 20.10 + lutris 0.5.8. - Install game, create a desktop shortcut from lutris. - Try to launch game using desktop shortcut **Lutris debugging o...
[ { "content": "# pylint: disable=no-member,wrong-import-position\n#\n# Copyright (C) 2020 Mathieu Comandon <strider@strycore.com>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, eit...
[ { "content": "# pylint: disable=no-member,wrong-import-position\n#\n# Copyright (C) 2020 Mathieu Comandon <strider@strycore.com>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, eit...
diff --git a/lutris/gui/application.py b/lutris/gui/application.py index 46e955a2ff..71e15a8d65 100644 --- a/lutris/gui/application.py +++ b/lutris/gui/application.py @@ -462,7 +462,7 @@ def do_command_line(self, command_line): # noqa: C901 # pylint: disable=argume self.do_shutdown() ...
django-cms__django-cms-1372
Labels missing in admin for cms.plugins.text I'm using a model that is a subclass of cms.plugins.text.models.AbstractText but in the admin the labels for all fields have disappeared. I think there should be a ``` {{ field.label_tag }} ``` at the appropriate place in /cms/plugins/text/templates/cms/plugins/text_plugi...
[ { "content": "# -*- coding: utf-8 -*-\nfrom django.conf import settings\nfrom django.http import HttpResponse\nfrom django.shortcuts import render_to_response\nfrom django.template.context import RequestContext\n\nfrom django.contrib.sites.models import Site\n\nfrom cms.models import Page\nfrom cms.utils import...
[ { "content": "# -*- coding: utf-8 -*-\nfrom django.conf import settings\nfrom django.http import HttpResponse\nfrom django.shortcuts import render_to_response\nfrom django.template.context import RequestContext\n\nfrom django.contrib.sites.models import Site\n\nfrom cms.models import Page\nfrom cms.utils import...
diff --git a/cms/plugins/text/templates/cms/plugins/text_plugin_change_form.html b/cms/plugins/text/templates/cms/plugins/text_plugin_change_form.html index 82b4a7036e6..162fe95fec0 100644 --- a/cms/plugins/text/templates/cms/plugins/text_plugin_change_form.html +++ b/cms/plugins/text/templates/cms/plugins/text_plugin_...
ethereum__web3.py-3060
Default IPC path is incorrect on Windows with Anaconda 2023.07 * Version: 6.6.1 * Python: 3.11 * OS: win I updated my Anaconda to the latest version recently, which uses Python 3.11. web3.py is no longer able to set the default IPC path for IPCProvider on Windows. The problem and fix are as follows: In [ipc.p...
[ { "content": "from json import (\n JSONDecodeError,\n)\nimport logging\nimport os\nfrom pathlib import (\n Path,\n)\nimport socket\nimport sys\nimport threading\nfrom types import (\n TracebackType,\n)\nfrom typing import (\n Any,\n Optional,\n Type,\n Union,\n)\n\nfrom web3._utils.threads ...
[ { "content": "from json import (\n JSONDecodeError,\n)\nimport logging\nimport os\nfrom pathlib import (\n Path,\n)\nimport socket\nimport sys\nimport threading\nfrom types import (\n TracebackType,\n)\nfrom typing import (\n Any,\n Optional,\n Type,\n Union,\n)\n\nfrom web3._utils.threads ...
diff --git a/docs/providers.rst b/docs/providers.rst index b560aa51d1..d45e046eae 100644 --- a/docs/providers.rst +++ b/docs/providers.rst @@ -173,7 +173,7 @@ IPCProvider - On Linux and FreeBSD: ``~/.ethereum/geth.ipc`` - On Mac OS: ``~/Library/Ethereum/geth.ipc`` - - On Windows: ``\\\.\pipe\geth.ipc`` +...
pyro-ppl__numpyro-1760
random_flax_module broken First and foremost **thanks** for the great work on `numpyro`! **The utility function `random_flax_module()` from the `numpyro.contrib.module` seems to be broken.** As a minimal reproducible example for the error I take the example given in the docstring of the function ([https://github.com...
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom collections import namedtuple\nfrom contextlib import ExitStack, contextmanager\nimport functools\nimport warnings\n\nimport jax\nfrom jax import lax, random\nimport jax.numpy as jnp\n\nimport numpyro\nfro...
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom collections import namedtuple\nfrom contextlib import ExitStack, contextmanager\nimport functools\nimport warnings\n\nimport jax\nfrom jax import lax, random\nimport jax.numpy as jnp\n\nimport numpyro\nfro...
diff --git a/numpyro/primitives.py b/numpyro/primitives.py index 99cf35902..ac02a8856 100644 --- a/numpyro/primitives.py +++ b/numpyro/primitives.py @@ -622,6 +622,10 @@ def prng_key(): :return: a PRNG key of shape (2,) and dtype unit32. """ if not _PYRO_STACK: + warnings.warn( + "Canno...
chainer__chainer-1022
ChainList failed to copy its children. ``` #!/usr/bin/env python from chainer import Chain, ChainList import chainer.links as L model0 = ChainList(L.Linear(10, 10)) model1 = model0.copy() model0.to_gpu(0) model1.to_gpu(1) print(model1[0].W.data.device) # => <CUDA Device 0> ...
[ { "content": "import copy\n\nimport numpy\nimport six\n\nfrom chainer import cuda\nfrom chainer import variable\n\n\nclass Link(object):\n\n \"\"\"Building block of model definitions.\n\n Link is a building block of neural network models that support various\n features like handling parameters, definin...
[ { "content": "import copy\n\nimport numpy\nimport six\n\nfrom chainer import cuda\nfrom chainer import variable\n\n\nclass Link(object):\n\n \"\"\"Building block of model definitions.\n\n Link is a building block of neural network models that support various\n features like handling parameters, definin...
diff --git a/chainer/link.py b/chainer/link.py index 0ca1df1dc929..907ddf2ee38b 100644 --- a/chainer/link.py +++ b/chainer/link.py @@ -615,6 +615,7 @@ def add_link(self, link): def copy(self): ret = super(ChainList, self).copy() + ret._children = list(ret._children) # copy children = re...
pennersr__django-allauth-3283
`OpenIDConnectProvider` generates slug using `_server_id` and does not fallback to inherited implementation KeycloakProvider started using `openid_connect` as its base url since the `OpenIDConnectProvider` implemented `get_slug`
[ { "content": "# -*- coding: utf-8 -*-\nfrom allauth.account.models import EmailAddress\nfrom allauth.socialaccount import app_settings\nfrom allauth.socialaccount.providers.base import ProviderAccount\nfrom allauth.socialaccount.providers.oauth2.provider import OAuth2Provider\n\n\nclass OpenIDConnectProviderAcc...
[ { "content": "# -*- coding: utf-8 -*-\nfrom allauth.account.models import EmailAddress\nfrom allauth.socialaccount import app_settings\nfrom allauth.socialaccount.providers.base import ProviderAccount\nfrom allauth.socialaccount.providers.oauth2.provider import OAuth2Provider\n\n\nclass OpenIDConnectProviderAcc...
diff --git a/allauth/socialaccount/providers/openid_connect/provider.py b/allauth/socialaccount/providers/openid_connect/provider.py index 455f2566e0..c94ad717be 100644 --- a/allauth/socialaccount/providers/openid_connect/provider.py +++ b/allauth/socialaccount/providers/openid_connect/provider.py @@ -32,7 +32,7 @@ def...
scikit-image__scikit-image-3152
skimage.test does not execute the unit test ## Description `skimage.test` does not run the unit tests. ``` ~$ python -c "import skimage; print(skimage.__version__); skimage.test()" 0.14.0 ====================================================================== test session starts ==============================...
[ { "content": "\"\"\"Image Processing SciKit (Toolbox for SciPy)\n\n``scikit-image`` (a.k.a. ``skimage``) is a collection of algorithms for image\nprocessing and computer vision.\n\nThe main package of ``skimage`` only provides a few utilities for converting\nbetween image data types; for most features, you need...
[ { "content": "\"\"\"Image Processing SciKit (Toolbox for SciPy)\n\n``scikit-image`` (a.k.a. ``skimage``) is a collection of algorithms for image\nprocessing and computer vision.\n\nThe main package of ``skimage`` only provides a few utilities for converting\nbetween image data types; for most features, you need...
diff --git a/skimage/__init__.py b/skimage/__init__.py index ac7c24c32bc..6c88dfca090 100644 --- a/skimage/__init__.py +++ b/skimage/__init__.py @@ -102,7 +102,7 @@ def _test(doctest=False, verbose=False): """Run all unit tests.""" import pytest import warnings - args = ['skimage'] + ...
elastic__apm-agent-python-1947
dbapi2 fails to extract table name when using square brackets **Describe the bug**: ... Queries made to tables which requires escaping end up with the wrong span name. The following spans are SELECTs from four different tables, but only two unique span names appear. ![Screenshot 2023-10-31 at 19 13 46](https://...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain...
diff --git a/elasticapm/instrumentation/packages/dbapi2.py b/elasticapm/instrumentation/packages/dbapi2.py index cbe34be59..fb49723c2 100644 --- a/elasticapm/instrumentation/packages/dbapi2.py +++ b/elasticapm/instrumentation/packages/dbapi2.py @@ -76,8 +76,8 @@ def _scan_for_table_with_tokens(tokens, keyword): de...
sublimelsp__LSP-1417
Advertise window.showMessageRequest.messageActionItem.additionalPropertiesSupport See: https://github.com/microsoft/language-server-protocol/commit/4a29ca0725469624fc07425c3fa0fde386e7ee55
[ { "content": "from .edit import apply_workspace_edit\nfrom .edit import parse_workspace_edit\nfrom .logging import debug\nfrom .logging import exception_log\nfrom .promise import Promise\nfrom .protocol import CompletionItemTag\nfrom .protocol import Error\nfrom .protocol import ErrorCode\nfrom .protocol import...
[ { "content": "from .edit import apply_workspace_edit\nfrom .edit import parse_workspace_edit\nfrom .logging import debug\nfrom .logging import exception_log\nfrom .promise import Promise\nfrom .protocol import CompletionItemTag\nfrom .protocol import Error\nfrom .protocol import ErrorCode\nfrom .protocol import...
diff --git a/README.md b/README.md index f592f8a75..b5acb47a8 100644 --- a/README.md +++ b/README.md @@ -147,3 +147,4 @@ If you have any problems, see the [troubleshooting](https://lsp.readthedocs.io/e - ✅ workDoneProgress - ✅ create - ❌ cancel +- ✅ showMessage request additionalPropertiesSupport diff --git a/pl...
getsentry__sentry-19997
Invalid List-ID header within Sentry Email notifications. ## Important Details How are you running Sentry? <!-- Please pick one of the following --> Saas (sentry.io) ## Description Email notifications set invalid List-ID headers according to [RFC 2919](https://tools.ietf.org/html/rfc2919) ## Steps to ...
[ { "content": "from __future__ import absolute_import\n\nimport logging\nimport os\nimport six\nimport subprocess\nimport tempfile\nimport time\n\nfrom email.utils import parseaddr\nfrom functools import partial\nfrom operator import attrgetter\nfrom random import randrange\n\nimport lxml\nimport toronado\nfrom ...
[ { "content": "from __future__ import absolute_import\n\nimport logging\nimport os\nimport six\nimport subprocess\nimport tempfile\nimport time\n\nfrom email.utils import parseaddr\nfrom functools import partial\nfrom operator import attrgetter\nfrom random import randrange\n\nimport lxml\nimport toronado\nfrom ...
diff --git a/src/sentry/utils/email.py b/src/sentry/utils/email.py index ddd30fc7a89cdf..42342439a51685 100644 --- a/src/sentry/utils/email.py +++ b/src/sentry/utils/email.py @@ -228,7 +228,7 @@ def __call__(self, instance): label = ".".join(map(six.text_type, handler(instance))) assert is_valid_dot_a...
ibis-project__ibis-2368
BigQuery Covariance operator compilation includes string representation of table instead of table ID **Failing test** https://github.com/ibis-project/ibis/blob/a70d443c7931cb8bb47c52f97999589566e03cb2/ibis/tests/all/test_aggregation.py#L165-L169 **Test output** ``` $ pytest ibis/tests/all/test_aggregation.py:...
[ { "content": "import datetime\nfrom functools import partial\n\nimport numpy as np\nimport regex as re\nimport toolz\nfrom multipledispatch import Dispatcher\n\nimport ibis\nimport ibis.common.exceptions as com\nimport ibis.expr.datatypes as dt\nimport ibis.expr.lineage as lin\nimport ibis.expr.operations as op...
[ { "content": "import datetime\nfrom functools import partial\n\nimport numpy as np\nimport regex as re\nimport toolz\nfrom multipledispatch import Dispatcher\n\nimport ibis\nimport ibis.common.exceptions as com\nimport ibis.expr.datatypes as dt\nimport ibis.expr.lineage as lin\nimport ibis.expr.operations as op...
diff --git a/docs/source/release/index.rst b/docs/source/release/index.rst index 568b72d63d2d..55683ed0d581 100644 --- a/docs/source/release/index.rst +++ b/docs/source/release/index.rst @@ -12,6 +12,7 @@ Release Notes These release notes are for versions of ibis **1.0 and later**. Release notes for pre-1.0 ver...
ibis-project__ibis-7364
bug: Command drop view IF EXISTS does not exist in Oracle ### What happened? Oracle queries fail while dropping the view. IF EXISTS is not supported in Oracle: https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/DROP-VIEW.html ### What version of ibis are you using? 7.0.0 ### What backend(s) are ...
[ { "content": "\"\"\"The Oracle backend.\"\"\"\n\nfrom __future__ import annotations\n\nimport atexit\nimport contextlib\nimport sys\nimport warnings\nfrom typing import TYPE_CHECKING, Any\n\nimport oracledb\n\nfrom ibis import util\n\n# Wow, this is truly horrible\n# Get out your clippers, it's time to shave a ...
[ { "content": "\"\"\"The Oracle backend.\"\"\"\n\nfrom __future__ import annotations\n\nimport atexit\nimport contextlib\nimport sys\nimport warnings\nfrom typing import TYPE_CHECKING, Any\n\nimport oracledb\n\nfrom ibis import util\n\n# Wow, this is truly horrible\n# Get out your clippers, it's time to shave a ...
diff --git a/ibis/backends/oracle/__init__.py b/ibis/backends/oracle/__init__.py index 38617b7959f1..cd236c97f9c9 100644 --- a/ibis/backends/oracle/__init__.py +++ b/ibis/backends/oracle/__init__.py @@ -181,7 +181,7 @@ def _metadata(self, query: str) -> Iterable[tuple[str, dt.DataType]]: view = sa.table(name...
fidals__shopelectro-491
order.es6:234: Test order redirect to ya.kassa The puzzle `473-f28eab07` from #473 has to be resolved: https://github.com/fidals/shopelectro/blob/f0e50b7c3b66e1d18f3f8356c245e16167c51fc3/front/js/components/order.es6#L234-L234 The puzzle was created by duker33 on 06-Aug-18. Estimate: 30 minutes, If you have a...
[ { "content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/...
[ { "content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/...
diff --git a/docker/env_files/paths.dist b/docker/env_files/paths.dist index 11975f16..32e14972 100644 --- a/docker/env_files/paths.dist +++ b/docker/env_files/paths.dist @@ -1,5 +1,5 @@ # Identify the dependencies folder -DEPS_DIR=/usr/local/lib/python3.6/site-packages +DEPS_DIR=/usr/app/deps # Directory, where you ...
kivy__kivy-4598
ToggleButton can get released with allow_no_selection=False Ohai buddiez, I hope you're all doing goodie ^__^ I found a new bug probably due to "always_release" on ButtonBehavior having been changed recently: `Changed in version 1.9.2: The default value is now False.` Take the following example: https://gist.github.c...
[ { "content": "'''\nButton Behavior\n===============\n\nThe :class:`~kivy.uix.behaviors.button.ButtonBehavior`\n`mixin <https://en.wikipedia.org/wiki/Mixin>`_ class provides\n:class:`~kivy.uix.button.Button` behavior. You can combine this class with\nother widgets, such as an :class:`~kivy.uix.image.Image`, to p...
[ { "content": "'''\nButton Behavior\n===============\n\nThe :class:`~kivy.uix.behaviors.button.ButtonBehavior`\n`mixin <https://en.wikipedia.org/wiki/Mixin>`_ class provides\n:class:`~kivy.uix.button.Button` behavior. You can combine this class with\nother widgets, such as an :class:`~kivy.uix.image.Image`, to p...
diff --git a/kivy/uix/behaviors/button.py b/kivy/uix/behaviors/button.py index d4f81e2f23..f2ef3a55b1 100644 --- a/kivy/uix/behaviors/button.py +++ b/kivy/uix/behaviors/button.py @@ -167,7 +167,7 @@ def on_touch_up(self, touch): if (not self.always_release and not self.collide_point(*touch.p...
django-oscar__django-oscar-3324
product-lookup not working ### Issue Summary Can't select related products ### Steps to Reproduce 1. run sandbox 2. in Dashboard->products select any product eg. The shellcoder's handbook 3. in product's upselling click text field `Recommended product:` 4. dropdown contains `The results could not be loaded.` ...
[ { "content": "from django.conf import settings\nfrom django.contrib import messages\nfrom django.db.models import Q\nfrom django.http import HttpResponseRedirect\nfrom django.shortcuts import get_object_or_404, redirect\nfrom django.template.loader import render_to_string\nfrom django.urls import reverse\nfrom ...
[ { "content": "from django.conf import settings\nfrom django.contrib import messages\nfrom django.db.models import Q\nfrom django.http import HttpResponseRedirect\nfrom django.shortcuts import get_object_or_404, redirect\nfrom django.template.loader import render_to_string\nfrom django.urls import reverse\nfrom ...
diff --git a/src/oscar/apps/dashboard/catalogue/views.py b/src/oscar/apps/dashboard/catalogue/views.py index ca8fa81d3de..45bd9e50ca0 100644 --- a/src/oscar/apps/dashboard/catalogue/views.py +++ b/src/oscar/apps/dashboard/catalogue/views.py @@ -646,7 +646,7 @@ class ProductLookupView(ObjectLookupView): model = Pro...
django-json-api__django-rest-framework-json-api-824
JSON output incorrectly wrapping id in quotes I've dropped DRF-JSON-API into my DRF application following all the defaults but I'm getting strange output where the model's `id` is being wrapped in quotations. This is causing issues with my Ember.js frontend as it's unable to properly parse the output. I've checked the...
[ { "content": "\"\"\"\nRenderers\n\"\"\"\nimport copy\nfrom collections import OrderedDict, defaultdict\nfrom collections.abc import Iterable\n\nimport inflection\nfrom django.db.models import Manager\nfrom django.utils import encoding\nfrom rest_framework import relations, renderers\nfrom rest_framework.fields ...
[ { "content": "\"\"\"\nRenderers\n\"\"\"\nimport copy\nfrom collections import OrderedDict, defaultdict\nfrom collections.abc import Iterable\n\nimport inflection\nfrom django.db.models import Manager\nfrom django.utils import encoding\nfrom rest_framework import relations, renderers\nfrom rest_framework.fields ...
diff --git a/README.rst b/README.rst index b3162184..bc52bbf5 100644 --- a/README.rst +++ b/README.rst @@ -48,7 +48,7 @@ like the following:: }, "data": [{ "type": "identities", - "id": 3, + "id": "3", "attributes": { "username": "john",...
qtile__qtile-4246
Tasklist Widget Icons not vertically centered ### The issue: Depending on the icon size, the placement of the icon relative to the text shifts. Here is an example with icon size = 45 and text size = 30. ![1664826413](https://user-images.githubusercontent.com/12877032/193666223-f80a1051-ecbd-45fc-894a-1c50ba4d9159.p...
[ { "content": "# Copyright (c) 2012-2014 roger\n# Copyright (c) 2012-2015 Tycho Andersen\n# Copyright (c) 2013 dequis\n# Copyright (c) 2013 Tao Sauvage\n# Copyright (c) 2013 Craig Barnes\n# Copyright (c) 2014 Sean Vig\n# Copyright (c) 2018 Piotr Przymus\n#\n# Permission is hereby granted, free of charge, to any ...
[ { "content": "# Copyright (c) 2012-2014 roger\n# Copyright (c) 2012-2015 Tycho Andersen\n# Copyright (c) 2013 dequis\n# Copyright (c) 2013 Tao Sauvage\n# Copyright (c) 2013 Craig Barnes\n# Copyright (c) 2014 Sean Vig\n# Copyright (c) 2018 Piotr Przymus\n#\n# Permission is hereby granted, free of charge, to any ...
diff --git a/CHANGELOG b/CHANGELOG index 08904917f6..e714988635 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -59,6 +59,7 @@ Qtile x.xx.x, released XXXX-XX-XX: - Fix setting tiled position by mouse for layouts using _SimpleLayoutBase. To support this in other layouts, add a swap method taking two windows. ...
litestar-org__litestar-2433
Bug: `2.2.0` does not have `[full]` group ### Description The move from `poetry` to `pdm` in 2.2.0 has a regression for the `[full]` group. ### URL to code causing the issue _No response_ ### MCVE ```python pip install litestar[full]==2.2.0 && pip show pydantic ``` ### Steps to reproduce - `pip...
[ { "content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING, Any, Callable, Literal, NamedTuple\n\nfrom litestar.utils.deprecation import warn_deprecation\n\n__all__ = (\n \"ControllerRouterHandler\",\n \"PathParameterDefinition\",\n \"PathParameterDefinition\",\n \"Reserved...
[ { "content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING, Any, Callable, Literal, NamedTuple\n\nfrom litestar.utils.deprecation import warn_deprecation\n\n__all__ = (\n \"ControllerRouterHandler\",\n \"PathParameterDefinition\",\n \"PathParameterDefinition\",\n \"Reserved...
diff --git a/.gitignore b/.gitignore index 12e59642c5..ca6f32027e 100644 --- a/.gitignore +++ b/.gitignore @@ -24,7 +24,6 @@ target/ *.iml .DS_Store .coverage -.python-version .ruff_cache /docs/_build/ coverage.* @@ -34,3 +33,9 @@ setup.py .pdm.toml .pdm-python .pdm-build/ +# pdm - PEP 582 +__pypackages__/ + +...
napari__napari-2063
Console no longer working ## 🐛 Bug I think we've got a regression, from #2036 where the console is no longer visible when opened with the button in the viewer. <img width="1200" alt="Screen Shot 2021-01-01 at 3 34 47 PM" src="https://user-images.githubusercontent.com/6531703/103447936-ec407100-4c46-11eb-8487-76c...
[ { "content": "import os.path\nimport warnings\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Optional\n\nimport numpy as np\nfrom qtpy.QtCore import QCoreApplication, QObject, QSize, Qt\nfrom qtpy.QtGui import QCursor, QGuiApplication\nfrom qtpy.QtWidgets import QFileDialog, QSplitter, QVBoxLayout...
[ { "content": "import os.path\nimport warnings\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Optional\n\nimport numpy as np\nfrom qtpy.QtCore import QCoreApplication, QObject, QSize, Qt\nfrom qtpy.QtGui import QCursor, QGuiApplication\nfrom qtpy.QtWidgets import QFileDialog, QSplitter, QVBoxLayout...
diff --git a/napari/_qt/_tests/test_qt_viewer.py b/napari/_qt/_tests/test_qt_viewer.py index 8dc9cfaae40..0d31818389a 100644 --- a/napari/_qt/_tests/test_qt_viewer.py +++ b/napari/_qt/_tests/test_qt_viewer.py @@ -39,7 +39,7 @@ def test_qt_viewer_with_console(make_test_viewer): assert view._console is None # C...
mitmproxy__mitmproxy-2615
[requires.io] dependency update on master branch
[ { "content": "import os\nimport runpy\nfrom codecs import open\n\nfrom setuptools import setup, find_packages\n\n# Based on https://github.com/pypa/sampleproject/blob/master/setup.py\n# and https://python-packaging-user-guide.readthedocs.org/\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith open(os....
[ { "content": "import os\nimport runpy\nfrom codecs import open\n\nfrom setuptools import setup, find_packages\n\n# Based on https://github.com/pypa/sampleproject/blob/master/setup.py\n# and https://python-packaging-user-guide.readthedocs.org/\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith open(os....
diff --git a/setup.cfg b/setup.cfg index b8e129ee00..eaabfa12ca 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,7 @@ [flake8] max-line-length = 140 max-complexity = 25 -ignore = E251,C901,W503,W292 +ignore = E251,C901,W503,W292,E722,E741 exclude = mitmproxy/contrib/*,test/mitmproxy/data/*,release/build/* addons ...
django-crispy-forms__django-crispy-forms-468
Remove `crispy_forms.base.from_iterable` We no longer support Python 2.5
[ { "content": "def from_iterable(iterables):\n \"\"\"\n Backport of `itertools.chain.from_iterable` compatible with Python 2.5\n \"\"\"\n for it in iterables:\n for element in it:\n if isinstance(element, dict):\n for key in element:\n yield key\n ...
[ { "content": "\n\nclass KeepContext(object):\n \"\"\"\n Context manager that receives a `django.template.Context` instance and a list of keys\n\n Once the context manager is exited, it removes `keys` from the context, to avoid\n side effects in later layout objects that may use the same context vari...
diff --git a/crispy_forms/base.py b/crispy_forms/base.py index 98297def6..82da75072 100644 --- a/crispy_forms/base.py +++ b/crispy_forms/base.py @@ -1,14 +1,3 @@ -def from_iterable(iterables): - """ - Backport of `itertools.chain.from_iterable` compatible with Python 2.5 - """ - for it in iterables: - ...
openfun__marsha-761
Searching a playlist by text raises a 500 error ## Bug Report **Expected behavior/code** In the admin, it should be possible to search a playlist by text. **Actual Behavior** Searching a playlist by text raises a 500 error (https://sentry.io/organizations/gip-fun-mooc/issues/1856670127/?project=1298925&query=is...
[ { "content": "\"\"\"Admin of the ``core`` app of the Marsha project.\"\"\"\n\nfrom django.contrib import admin\nfrom django.contrib.auth.admin import UserAdmin as DefaultUserAdmin\nfrom django.urls import reverse\nfrom django.utils.html import format_html\nfrom django.utils.translation import gettext_lazy as _\...
[ { "content": "\"\"\"Admin of the ``core`` app of the Marsha project.\"\"\"\n\nfrom django.contrib import admin\nfrom django.contrib.auth.admin import UserAdmin as DefaultUserAdmin\nfrom django.urls import reverse\nfrom django.utils.html import format_html\nfrom django.utils.translation import gettext_lazy as _\...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fc950e90cc..30db09d49e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ Versioning](https://semver.org/spec/v2.0.0.html). - Remove usage of react-intl-po - Rework front i18n workflow +### Fixed + +- Fix admin video search + ## [3.10.2] - 2020-09-29 #...
docker__docker-py-3023
Not a Contribution: create_api_error_from_api_exception should "raise <exception> from <original-error>" to preserve error message Not a Contribution. APIError handling should be changed to so that it doesn't hide the original exception. https://stackoverflow.com/questions/24752395/python-raise-from-usage
[ { "content": "import requests\n\n\nclass DockerException(Exception):\n \"\"\"\n A base class from which all other exceptions inherit.\n\n If you want to catch all errors that the Docker SDK might raise,\n catch this base exception.\n \"\"\"\n\n\ndef create_api_error_from_http_exception(e):\n \...
[ { "content": "import requests\n\n\nclass DockerException(Exception):\n \"\"\"\n A base class from which all other exceptions inherit.\n\n If you want to catch all errors that the Docker SDK might raise,\n catch this base exception.\n \"\"\"\n\n\ndef create_api_error_from_http_exception(e):\n \...
diff --git a/docker/errors.py b/docker/errors.py index ba952562c..7725295f5 100644 --- a/docker/errors.py +++ b/docker/errors.py @@ -28,7 +28,7 @@ def create_api_error_from_http_exception(e): cls = ImageNotFound else: cls = NotFound - raise cls(e, response=response, explanation=exp...
pyqtgraph__pyqtgraph-888
TreeWidget.topLevelItems is broken on Python3 As per the title. The method uses `xrange`, which obviously is not available in Python 3. I haven't tried it, but I assume the regression was introduced with 6c7e0fa, where an `from ..python2_3 import xrange` was removed from the corresponding file. I can see two possib...
[ { "content": "# -*- coding: utf-8 -*-\nfrom ..Qt import QtGui, QtCore\nfrom weakref import *\n\n__all__ = ['TreeWidget', 'TreeWidgetItem']\n\n\nclass TreeWidget(QtGui.QTreeWidget):\n \"\"\"Extends QTreeWidget to allow internal drag/drop with widgets in the tree.\n Also maintains the expanded state of subt...
[ { "content": "# -*- coding: utf-8 -*-\nfrom ..Qt import QtGui, QtCore\nfrom weakref import *\n\n__all__ = ['TreeWidget', 'TreeWidgetItem']\n\n\nclass TreeWidget(QtGui.QTreeWidget):\n \"\"\"Extends QTreeWidget to allow internal drag/drop with widgets in the tree.\n Also maintains the expanded state of subt...
diff --git a/pyqtgraph/widgets/TreeWidget.py b/pyqtgraph/widgets/TreeWidget.py index b0ec54c12d..8c55ae2f9b 100644 --- a/pyqtgraph/widgets/TreeWidget.py +++ b/pyqtgraph/widgets/TreeWidget.py @@ -201,7 +201,7 @@ def takeTopLevelItem(self, index): return item def topLevelItems(self): - return map(s...
PaddlePaddle__models-2261
deeplabv3+反复报warning 在paddle1.4.1下,由于deeplabv3+打开了显存优化,导致反复报如下的warning: <img width="956" alt="db83046567521a831348d8eea6f2e46a" src="https://user-images.githubusercontent.com/46314656/57190981-398cac80-6f53-11e9-9ffc-3a3c7b379d82.png">
[ { "content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nimport os\nif 'FLAGS_fraction_of_gpu_memory_to_use' not in os.environ:\n os.environ['FLAGS_fraction_of_gpu_memory_to_use'] = '0.98'\n\nimport paddle\nimport paddle.fluid as fluid\nimp...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nimport os\nif 'FLAGS_fraction_of_gpu_memory_to_use' not in os.environ:\n os.environ['FLAGS_fraction_of_gpu_memory_to_use'] = '0.98'\n\nimport paddle\nimport paddle.fluid as fluid\nimp...
diff --git a/PaddleCV/deeplabv3+/train.py b/PaddleCV/deeplabv3+/train.py index 5e983ed291..2cef945de7 100755 --- a/PaddleCV/deeplabv3+/train.py +++ b/PaddleCV/deeplabv3+/train.py @@ -145,6 +145,7 @@ def loss(logit, label): fluid.layers.assign(np.array( [0.1], dtype=np.float32))) loss_mean = f...
kivy__kivy-5366
setup.py should not depend on the existence of `git` on the system ### Versions * Python: 3.5.3 * OS: nixos * Kivy: 1.10.0 * Kivy installation method: nix ### Description I tried to package kivy for nixos, a Purely Functional Linux Distribution. ``` Traceback (most recent call last): File "nix_run_...
[ { "content": "#\n# Kivy - Cross-platform UI framework\n# https://kivy.org/\n#\nfrom __future__ import print_function\n\nimport sys\nbuild_examples = False\nif \"--build_examples\" in sys.argv:\n build_examples = True\n sys.argv.remove(\"--build_examples\")\n\nfrom copy import deepcopy\nimport os\nfrom os....
[ { "content": "#\n# Kivy - Cross-platform UI framework\n# https://kivy.org/\n#\nfrom __future__ import print_function\n\nimport sys\nbuild_examples = False\nif \"--build_examples\" in sys.argv:\n build_examples = True\n sys.argv.remove(\"--build_examples\")\n\nfrom copy import deepcopy\nimport os\nfrom os....
diff --git a/setup.py b/setup.py index 72c8c001af..56da910481 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ def get_version(filename='kivy/version.py'): GIT_REVISION = check_output( ['git', 'rev-parse', 'HEAD'] ).strip().decode('ascii') - except CalledProcessError: + except...
litestar-org__litestar-1610
StaticFilesConfig and virtual directories I'm trying to write a ``FileSystemProtocol`` to load files from the package data using [importlib_resources](https://importlib-resources.readthedocs.io/en/latest/using.html#). But because ``directories`` is defined as ``DirectoryPath``, pydantic checks if the given directories ...
[ { "content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING, Any, Generic, TypeVar, cast\n\nfrom litestar._parsers import parse_cookie_string, parse_headers, parse_query_string\nfrom litestar.datastructures.headers import Headers\nfrom litestar.datastructures.multi_dicts import MultiDic...
[ { "content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING, Any, Generic, TypeVar, cast\n\nfrom litestar._parsers import parse_cookie_string, parse_headers, parse_query_string\nfrom litestar.datastructures.headers import Headers\nfrom litestar.datastructures.multi_dicts import MultiDic...
diff --git a/litestar/connection/base.py b/litestar/connection/base.py index c604e3471f..161eb0f606 100644 --- a/litestar/connection/base.py +++ b/litestar/connection/base.py @@ -287,7 +287,7 @@ def clear_session(self) -> None: """ self.scope["session"] = Empty - def url_for(self, name: str, **pa...
liberapay__liberapay.com-844
Can't cancel a bank wire payin Users who initiate a bank wire payin can't cancel it if they change their mind or realize that their bank doesn't allow them to transfer euros abroad. It's not possible to cancel a bank wire payin on MangoPay, which is why we don't already have this feature, but we should be able to im...
[ { "content": "\"\"\"Functions for moving money into, out of, or between wallets.\n\"\"\"\nfrom __future__ import division, print_function, unicode_literals\n\nfrom decimal import Decimal\nfrom time import sleep\n\nfrom mangopay.exceptions import APIError\nfrom mangopay.resources import (\n BankAccount, BankW...
[ { "content": "\"\"\"Functions for moving money into, out of, or between wallets.\n\"\"\"\nfrom __future__ import division, print_function, unicode_literals\n\nfrom decimal import Decimal\nfrom time import sleep\n\nfrom mangopay.exceptions import APIError\nfrom mangopay.resources import (\n BankAccount, BankW...
diff --git a/liberapay/billing/transactions.py b/liberapay/billing/transactions.py index d4f1065e0d..e939f30bd9 100644 --- a/liberapay/billing/transactions.py +++ b/liberapay/billing/transactions.py @@ -251,6 +251,10 @@ def payin_bank_wire(db, participant, debit_amount): return payin, e +def cancel_bank_wire_p...
mampfes__hacs_waste_collection_schedule-556
Add StadtService Brühl Add Source for StadtService Brühl Update stadtservice_bruehl_de.md
[ { "content": "import datetime\nimport logging\n\nimport requests\nfrom bs4 import BeautifulSoup\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\nfrom waste_collection_schedule.service.ICS import ICS\n\nTITLE = \"StadtService Brühl\"\nDESCRIPTION = \"Source für Abfallkalender Stad...
[ { "content": "import datetime\nimport logging\n\nimport requests\nfrom bs4 import BeautifulSoup\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\nfrom waste_collection_schedule.service.ICS import ICS\n\nTITLE = \"StadtService Brühl\"\nDESCRIPTION = \"Source für Abfallkalender Stad...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/stadtservice_bruehl_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/stadtservice_bruehl_de.py index c000778cd..b9c2ec3c0 100644 --- a/custom_components/waste_collection_schedule/waste_collectio...
google__timesketch-90
Importing of JSON timelines creates duplicate timelines with same name. Steps to reproduce 1) command line: echo '[ { "datetime": "2012-04-12T17:24:38-08:00", "timestamp_desc": "Test", "timestamp": 1334251478000000, "message": "Test message" } ]' > test_dupe.json tsctl json2ts --name test_dupe --f...
[ { "content": "#!/usr/bin/env python\n# Copyright 2015 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/L...
[ { "content": "#!/usr/bin/env python\n# Copyright 2015 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/L...
diff --git a/tsctl b/tsctl index 9882d1f4fb..51750bd599 100644 --- a/tsctl +++ b/tsctl @@ -248,15 +248,16 @@ class CreateTimelineFromJson(Command): events, index_name, event_type) # Create the searchindex in the Timesketch database. - searchindex = SearchIndex( + ...
easybuilders__easybuild-easyblocks-2267
enhanced extension filter for Python packages causes trouble for netcdf4-python sanity check The enhanced extension filter for Python packages made in #2224 causes trouble for `netcdf4-python-1.5.3-intel-2020a-Python-3.8.2.eb`: ``` == 2020-12-03 20:44:05,145 build_log.py:169 ERROR EasyBuild crashed with an error (a...
[ { "content": "##\n# Copyright 2009-2020 Ghent University\n#\n# This file is part of EasyBuild,\n# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n# with support of Ghent University (http://ugent.be/hpc),\n# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),\n# F...
[ { "content": "##\n# Copyright 2009-2020 Ghent University\n#\n# This file is part of EasyBuild,\n# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n# with support of Ghent University (http://ugent.be/hpc),\n# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),\n# F...
diff --git a/easybuild/easyblocks/p/python.py b/easybuild/easyblocks/p/python.py index 64a2774642a..a167cc1b1fe 100644 --- a/easybuild/easyblocks/p/python.py +++ b/easybuild/easyblocks/p/python.py @@ -53,7 +53,7 @@ import easybuild.tools.toolchain as toolchain -EXTS_FILTER_PYTHON_PACKAGES = ('PYTHONNOUSERSITE=1 py...
aws__aws-sdk-pandas-2799
Question regarding wr.athena.to_iceberg I am having a hard time trying to figure where the to_iceberg method tries to create and subsequently destroy the temporary table needed for the INSERT INTO … SELECT statement. `wr.athena.to_iceberg(df=data, index=True, database=os.getenv("GLUE_DATABASE"), ta...
[ { "content": "\"\"\"Amazon Athena Module containing all to_* write functions.\"\"\"\n\nfrom __future__ import annotations\n\nimport logging\nimport re\nimport typing\nimport uuid\nfrom typing import Any, Dict, Literal, TypedDict, cast\n\nimport boto3\nimport pandas as pd\n\nfrom awswrangler import _data_types, ...
[ { "content": "\"\"\"Amazon Athena Module containing all to_* write functions.\"\"\"\n\nfrom __future__ import annotations\n\nimport logging\nimport re\nimport typing\nimport uuid\nfrom typing import Any, Dict, Literal, TypedDict, cast\n\nimport boto3\nimport pandas as pd\n\nfrom awswrangler import _data_types, ...
diff --git a/awswrangler/athena/_write_iceberg.py b/awswrangler/athena/_write_iceberg.py index 28eae686b..22fdf95c9 100644 --- a/awswrangler/athena/_write_iceberg.py +++ b/awswrangler/athena/_write_iceberg.py @@ -483,6 +483,7 @@ def to_iceberg( s3.to_parquet( df=df, path=temp_path or ...