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
⌀
spack__spack-4606
BUG: mxml / adios link error This seems to be related to the pull request https://github.com/LLNL/spack/pull/3696 that I abandoned a few months back, but which has now come back to haunt me. If I use the current spack setup for adios and mxml, I receive the following error when I try to link against the adios library:...
[ { "content": "##############################################################################\n# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All righ...
[ { "content": "##############################################################################\n# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All righ...
diff --git a/var/spack/repos/builtin/packages/mxml/package.py b/var/spack/repos/builtin/packages/mxml/package.py index c0ff5f6cd94da2..e8b87e52c13ff8 100644 --- a/var/spack/repos/builtin/packages/mxml/package.py +++ b/var/spack/repos/builtin/packages/mxml/package.py @@ -48,5 +48,9 @@ def url_for_version(self, version):...
piskvorky__gensim-1470
Minimum version for numpy/scipy In the last release, I had to "bump" versions for numpy/scipy. This may be a problem for *ops people (need to upgrade old versions). For this reason, we should downgrade numpy/scipy version and don't break anything.
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2014 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nRun with:\n\nsudo python ./setup.py install\n\"\"\"\n\nimport os\nimport sys\nimport warnings\nimpor...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2014 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nRun with:\n\nsudo python ./setup.py install\n\"\"\"\n\nimport os\nimport sys\nimport warnings\nimpor...
diff --git a/.travis.yml b/.travis.yml index 6732f2cf3d..743dc56713 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,11 +12,12 @@ before_install: - export PATH=/home/travis/miniconda2/bin:$PATH - conda update --yes conda install: - - conda create --yes -n gensim-test python=$TRAVIS_PYTHON_VERSION pip atlas num...
lightly-ai__lightly-455
447 register dataset before upload pw # 447 register dataset before upload Closes #447. - Adds the generated api code to register dataset uploads and uses them.
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"**Lightly Upload:** Upload images to the Lightly platform.\n\nThis module contains the entrypoint for the **lightly-upload**\ncommand-line interface.\n\"\"\"\n\n# Copyright (c) 2020. Lightly AG and its affiliates.\n# All Rights Reserved\nimport json\n\nimport hydra\n...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"**Lightly Upload:** Upload images to the Lightly platform.\n\nThis module contains the entrypoint for the **lightly-upload**\ncommand-line interface.\n\"\"\"\n\n# Copyright (c) 2020. Lightly AG and its affiliates.\n# All Rights Reserved\nimport json\n\nimport hydra\n...
diff --git a/lightly/cli/upload_cli.py b/lightly/cli/upload_cli.py index 4796d1394..e8bbfcf19 100644 --- a/lightly/cli/upload_cli.py +++ b/lightly/cli/upload_cli.py @@ -92,6 +92,10 @@ def _upload_cli(cfg, is_cli_call=True): ) print("Finished upload of embeddings.") + if custom_metadata is not Non...
aio-libs__aiohttp-4604
Docstring inaccurate; aiohttp.client.request 🐞 **Describe the bug** If you see the "Usage" part docstring of [`aiohttp.client.request`(or also `aiohttp.request`)](https://github.com/aio-libs/aiohttp/blob/v4.0.0a1/aiohttp/client.py#L1068) there is ``` ... Usage:: >>> import aiohttp >>> resp = awai...
[ { "content": "\"\"\"HTTP Client for asyncio.\"\"\"\n\nimport asyncio\nimport base64\nimport hashlib\nimport json\nimport os\nimport sys\nimport traceback\nimport warnings\nfrom types import SimpleNamespace, TracebackType\nfrom typing import ( # noqa\n Any,\n Awaitable,\n Callable,\n Coroutine,\n ...
[ { "content": "\"\"\"HTTP Client for asyncio.\"\"\"\n\nimport asyncio\nimport base64\nimport hashlib\nimport json\nimport os\nimport sys\nimport traceback\nimport warnings\nfrom types import SimpleNamespace, TracebackType\nfrom typing import ( # noqa\n Any,\n Awaitable,\n Callable,\n Coroutine,\n ...
diff --git a/CHANGES/4603.doc b/CHANGES/4603.doc new file mode 100644 index 00000000000..aee06176832 --- /dev/null +++ b/CHANGES/4603.doc @@ -0,0 +1 @@ +Fixed wrong "Usage" docstring of ``aiohttp.client.request``. \ No newline at end of file diff --git a/aiohttp/client.py b/aiohttp/client.py index 61268292d65..36044b50...
pallets__werkzeug-2041
Sending >=500 KB file with test client causes warning <!-- **This issue tracker is a tool to address bugs in Flask itself. Please use the Pallets Discord or Stack Overflow for general questions about using Flask or issues not related to Flask.** --> <!-- If you'd like to report a bug in Flask, fill out the templat...
[ { "content": "import functools\nimport json\nimport typing as t\nimport warnings\nfrom io import BytesIO\n\nfrom .._internal import _wsgi_decoding_dance\nfrom ..datastructures import CombinedMultiDict\nfrom ..datastructures import EnvironHeaders\nfrom ..datastructures import FileStorage\nfrom ..datastructures i...
[ { "content": "import functools\nimport json\nimport typing as t\nimport warnings\nfrom io import BytesIO\n\nfrom .._internal import _wsgi_decoding_dance\nfrom ..datastructures import CombinedMultiDict\nfrom ..datastructures import EnvironHeaders\nfrom ..datastructures import FileStorage\nfrom ..datastructures i...
diff --git a/CHANGES.rst b/CHANGES.rst index ce39938e4..d3814c9a5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -112,6 +112,9 @@ Unreleased add an ``Authorization`` header. It can be an ``Authorization`` object or a ``(username, password)`` tuple for ``Basic`` auth. :pr:`1809` +- Calling ``response.clo...
microsoft__Qcodes-1034
Binary blob inserted with some numpy types When we run the following code: ```python import numpy as np import qcodes as qc from qcodes import ParamSpec, new_data_set, new_experiment dataSet = new_data_set("numpy_test") parameter_a = ParamSpec("a", "numeric") dataSet.add_parameters([parameter_a]) dataSe...
[ { "content": "from contextlib import contextmanager\nimport logging\nimport sqlite3\nimport time\nfrom numbers import Number\nfrom numpy import ndarray\nimport numpy as np\nimport io\nfrom typing import Any, List, Optional, Tuple, Union, Dict, cast\nfrom distutils.version import LooseVersion\n\nimport qcodes as...
[ { "content": "from contextlib import contextmanager\nimport logging\nimport sqlite3\nimport time\nfrom numbers import Number\nfrom numpy import ndarray\nimport numpy as np\nimport io\nfrom typing import Any, List, Optional, Tuple, Union, Dict, cast\nfrom distutils.version import LooseVersion\n\nimport qcodes as...
diff --git a/qcodes/dataset/sqlite_base.py b/qcodes/dataset/sqlite_base.py index 5ae4c2d038a..69b4a9b0202 100644 --- a/qcodes/dataset/sqlite_base.py +++ b/qcodes/dataset/sqlite_base.py @@ -197,6 +197,16 @@ def connect(name: str, debug: bool = False) -> sqlite3.Connection: # sqlite3 options conn.row_factory = ...
Kinto__kinto-913
Forbidden is numbered 401 in the docs Both Forbidden and Unauthorized responses are listed as 401 in the docs, I think Forbidden should be 403, right? For example: http://kinto.readthedocs.io/en/stable/api/1.x/buckets.html#http-status-codes Forbidden is numbered 401 in the docs Both Forbidden and Unauthorized resp...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Kinto documentation build configuration file, created by\n# sphinx-quickstart on Mon Feb 2 15:08:06 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Kinto documentation build configuration file, created by\n# sphinx-quickstart on Mon Feb 2 15:08:06 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this...
diff --git a/docs/api/1.x/_status-get-object.rst b/docs/api/1.x/_status-get-object.rst index c7e64b806..810814177 100644 --- a/docs/api/1.x/_status-get-object.rst +++ b/docs/api/1.x/_status-get-object.rst @@ -4,7 +4,7 @@ HTTP Status Codes * |status-200|: The request was processed * |status-304|: Object did not change...
Mailu__Mailu-1974
DEFER_ON_TLS_ERROR in mailu.env doesn't appear to be applied. Thank you for opening an issue with Mailu. Please understand that issues are meant for bugs and enhancement-requests. For **user-support questions**, reach out to us on [matrix](https://matrix.to/#/#mailu:tedomum.net). To be able to help you best, we ne...
[ { "content": "#!/usr/bin/python3\n\nimport os\nimport glob\nimport shutil\nimport multiprocessing\nimport logging as log\nimport sys\n\nfrom podop import run_server\nfrom pwd import getpwnam\nfrom socrate import system, conf\n\nlog.basicConfig(stream=sys.stderr, level=os.environ.get(\"LOG_LEVEL\", \"WARNING\"...
[ { "content": "#!/usr/bin/python3\n\nimport os\nimport glob\nimport shutil\nimport multiprocessing\nimport logging as log\nimport sys\n\nfrom podop import run_server\nfrom pwd import getpwnam\nfrom socrate import system, conf\n\nlog.basicConfig(stream=sys.stderr, level=os.environ.get(\"LOG_LEVEL\", \"WARNING\"...
diff --git a/core/postfix/Dockerfile b/core/postfix/Dockerfile index e93a584c7..bdf45e358 100644 --- a/core/postfix/Dockerfile +++ b/core/postfix/Dockerfile @@ -20,7 +20,6 @@ RUN apk add --no-cache postfix postfix-pcre cyrus-sasl-login COPY conf /conf COPY start.py /start.py -COPY mta-sts-daemon.yml /etc/ EXPOSE...
openstates__openstates-scrapers-1777
IL failing since at least 2017-06-04 IL has been failing since 2017-06-04 Based on automated runs it appears that IL has not run successfully in 2 days (2017-06-04). ``` 09:10:30 INFO pupa: save membership ~{"name": "Melissa Conyears-Ervin"} membership in bb07b3c2-49f8-11e7-8880-0242ac110004 as membership_bba38f4a...
[ { "content": "from pupa.scrape import Scraper, Organization\nimport lxml.html\n\nfrom ._committees import COMMITTEES\nfrom ._utils import canonicalize_url\n\n\nclass IlCommitteeScraper(Scraper):\n\n def scrape_members(self, o, url):\n session = int(url.split('=')[-1])\n start = 1917 + session\n...
[ { "content": "from pupa.scrape import Scraper, Organization\nimport lxml.html\n\nfrom ._committees import COMMITTEES\nfrom ._utils import canonicalize_url\n\n\nclass IlCommitteeScraper(Scraper):\n\n def scrape_members(self, o, url):\n session = int(url.split('=')[-1])\n start = 1917 + session\n...
diff --git a/openstates/il/committees.py b/openstates/il/committees.py index 7fa2600692..641cd2c4e5 100644 --- a/openstates/il/committees.py +++ b/openstates/il/committees.py @@ -72,7 +72,7 @@ def scrape(self, latest_only=True): committees[o_id]['parent'] = top_level_com el...
python-poetry__poetry-7671
Poetry 1.4.0: There is no item named `<package>/WHEEL` in the archive <!-- Hi there! Thank you for submitting a bug report! Before you submit your issue, please review and follow the instructions at https://python-poetry.org/docs/contributing/#reporting-bugs. Fully fill out the template below; insuffic...
[ { "content": "from __future__ import annotations\n\nimport os\nimport platform\nimport sys\n\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING\n\nfrom installer import install\nfrom installer.destinations import SchemeDictionaryDestination\nfrom installer.sources import WheelFile\n\nfrom poetry.__vers...
[ { "content": "from __future__ import annotations\n\nimport os\nimport platform\nimport sys\n\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING\n\nfrom installer import install\nfrom installer.destinations import SchemeDictionaryDestination\nfrom installer.sources import WheelFile\n\nfrom poetry.__vers...
diff --git a/poetry.lock b/poetry.lock index 2588298f006..dff3d459c4c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry and should not be changed by hand. +# This file is automatically @generated by Poetry 1.4.0 and should not be changed by hand. [[package]...
Cog-Creators__Red-DiscordBot-3034
[Audio] Lavalink isn't properly restarted after unexpected shutdown # Other bugs When you kill java process that runs Lavalink it won't get restarted by ServerManager even though it says it's restarting it. Bad logic is here: <https://github.com/Cog-Creators/Red-DiscordBot/blob/V3/develop/redbot/cogs/audio/manage...
[ { "content": "import itertools\nimport pathlib\nimport platform\nimport shutil\nimport asyncio\nimport asyncio.subprocess # disables for # https://github.com/PyCQA/pylint/issues/1469\nimport logging\nimport re\nimport sys\nimport tempfile\nfrom typing import Optional, Tuple, ClassVar, List\n\nimport aiohttp\nf...
[ { "content": "import itertools\nimport pathlib\nimport platform\nimport shutil\nimport asyncio\nimport asyncio.subprocess # disables for # https://github.com/PyCQA/pylint/issues/1469\nimport logging\nimport re\nimport sys\nimport tempfile\nfrom typing import Optional, Tuple, ClassVar, List\n\nimport aiohttp\nf...
diff --git a/changelog.d/3033.bugfix.rst b/changelog.d/3033.bugfix.rst new file mode 100644 index 00000000000..e272b2e7a7f --- /dev/null +++ b/changelog.d/3033.bugfix.rst @@ -0,0 +1 @@ +Lavalink will now be restarted after unexpected shutdown. \ No newline at end of file diff --git a/redbot/cogs/audio/manager.py b/redb...
spack__spack-36598
Installation issue: llvm, gcc was broken during cmake stage ### Steps to reproduce the issue run: ``` spack install llvm ``` ```console $ spack spec -I llvm Input spec -------------------------------- - llvm Concretized -------------------------------- - llvm@16.0.0%gcc@9.5.0~clang~cuda+gold~ipo~...
[ { "content": "# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\nimport re\n\nimport spack.build_systems.autotools\nfrom spack.package import *\n\n\nclass Binutil...
[ { "content": "# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\nimport re\n\nimport spack.build_systems.autotools\nfrom spack.package import *\n\n\nclass Binutil...
diff --git a/var/spack/repos/builtin/packages/binutils/package.py b/var/spack/repos/builtin/packages/binutils/package.py index 00e3e2dff0bb80..69adb52de23edc 100644 --- a/var/spack/repos/builtin/packages/binutils/package.py +++ b/var/spack/repos/builtin/packages/binutils/package.py @@ -82,7 +82,12 @@ class Binutils(Aut...
huggingface__diffusers-6326
TensorRTStableDiffusionImg2ImgPipeline: can't set attribute 'guidance_scale' ### Describe the bug `guidance_scale` became a not setable prop. So this example will report an error. ### Reproduction I'm using the example code: https://github.com/huggingface/diffusers/blob/main/examples/community/README.md#tensorrt...
[ { "content": "#\n# Copyright 2023 The HuggingFace Inc. team.\n# SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n# SPDX-License-Identifier: Apache-2.0\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except...
[ { "content": "#\n# Copyright 2023 The HuggingFace Inc. team.\n# SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n# SPDX-License-Identifier: Apache-2.0\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except...
diff --git a/examples/community/stable_diffusion_tensorrt_img2img.py b/examples/community/stable_diffusion_tensorrt_img2img.py index e6e5e9db71d0..a391daf1062d 100755 --- a/examples/community/stable_diffusion_tensorrt_img2img.py +++ b/examples/community/stable_diffusion_tensorrt_img2img.py @@ -1004,7 +1004,7 @@ def __c...
facebookresearch__hydra-472
[Bug] setuptools finds and installs tests/ as a top-level package in site-packages/
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n# type: ignore\nimport codecs\nimport os\nimport pathlib\nimport re\nimport shutil\nfrom distutils import cmd\nfrom os.path import exists, isdir, join\nfrom typing import Any, List\n\nimport pkg_resources\nfrom setuptools impo...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n# type: ignore\nimport codecs\nimport os\nimport pathlib\nimport re\nimport shutil\nfrom distutils import cmd\nfrom os.path import exists, isdir, join\nfrom typing import Any, List\n\nimport pkg_resources\nfrom setuptools impo...
diff --git a/MANIFEST.in b/MANIFEST.in index f7dec3eb154..0b32a68099c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,3 @@ global-exclude *.pyc global-exclude __pycache__ -include hydra/py.typed -recursive-include hydra/conf *.yaml -recursive-include hydra/test_utils/configs *.yaml +recursive-include hydra/* * ...
getsentry__sentry-25
Limitations on SENTRY_KEY not documented I assumed that SENTRY_KEY was just any random string that should be unique to a deployment and kept secret (ie, serving a similar purpose to django's SECRET_KEY) so I generated a random string to use there. It turns out that it's used in a URL for the feeds: ``` url(r'^feeds/...
[ { "content": "import os\n\nfrom django.conf.urls.defaults import *\n\nfrom sentry.conf import KEY\nfrom sentry import views\nfrom sentry.feeds import MessageFeed, SummaryFeed\n\nSENTRY_ROOT = os.path.dirname(__file__) \n\nurlpatterns = patterns('',\n url(r'^_media/(?P<path>.*)$', 'django.views.static.serve',...
[ { "content": "import os\nimport re\n\nfrom django.conf.urls.defaults import *\n\nfrom sentry.conf import KEY\nfrom sentry import views\nfrom sentry.feeds import MessageFeed, SummaryFeed\n\nSENTRY_ROOT = os.path.dirname(__file__) \n\nurlpatterns = patterns('',\n url(r'^_media/(?P<path>.*)$', 'django.views.sta...
diff --git a/sentry/urls.py b/sentry/urls.py index 180f00a79a852b..a330b6e206a0d0 100644 --- a/sentry/urls.py +++ b/sentry/urls.py @@ -1,4 +1,5 @@ import os +import re from django.conf.urls.defaults import * @@ -14,8 +15,8 @@ # Feeds - url(r'^feeds/%s/messages.xml$' % KEY, MessageFeed(), name='sentry-...
Pylons__pyramid-2119
pserve --reload with --daemon I'm not sure if this is supposed to work, but tizoc in #pyramid claimed it may be a problem. If this is supposed to work we should verify that it does. If it is not supposed to work (which I think would be fine) we should add an error message when trying to execute `pserve` with both optio...
[ { "content": "# (c) 2005 Ian Bicking and contributors; written for Paste\n# (http://pythonpaste.org) Licensed under the MIT license:\n# http://www.opensource.org/licenses/mit-license.php\n#\n# For discussion of daemonizing:\n# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731\n#\n# Code taken also ...
[ { "content": "# (c) 2005 Ian Bicking and contributors; written for Paste\n# (http://pythonpaste.org) Licensed under the MIT license:\n# http://www.opensource.org/licenses/mit-license.php\n#\n# For discussion of daemonizing:\n# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731\n#\n# Code taken also ...
diff --git a/CHANGES.txt b/CHANGES.txt index 77b8e9298b..a17c7e1e6c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -235,6 +235,10 @@ Bug Fixes - Fixed usage of ``pserve --monitor-restart --daemon`` which would fail in horrible ways. See https://github.com/Pylons/pyramid/pull/2118 +- Explicitly prevent ``pserve --r...
DDMAL__CantusDB-1526
Add GitHub action for running test suite
[ { "content": "import urllib\nfrom collections import Counter\nfrom typing import Optional, Iterator, cast\n\nfrom volpiano_display_utilities.cantus_text_syllabification import (\n syllabify_text,\n flatten_syllabified_text,\n)\nfrom volpiano_display_utilities.text_volpiano_alignment import align_text_and_...
[ { "content": "import urllib\nfrom collections import Counter\nfrom typing import Optional, Iterator, cast\n\nfrom volpiano_display_utilities.cantus_text_syllabification import (\n syllabify_text,\n flatten_syllabified_text,\n)\nfrom volpiano_display_utilities.text_volpiano_alignment import align_text_and_...
diff --git a/.github/workflows/django_tests.yml b/.github/workflows/django_tests.yml new file mode 100644 index 000000000..b175071e2 --- /dev/null +++ b/.github/workflows/django_tests.yml @@ -0,0 +1,29 @@ +name: django-tests +on: + pull_request: + types: [opened, synchronize] +jobs: + run-tests: + r...
opendatacube__datacube-core-741
New "datacube dataset search" spatial extent parameters not working Recently updated to ODC v1.7.0 and adjusting scripts for new way of searching for time & spatial extent etc, changing from "lower val < param < upper val" to param in [lower val, upper val] as directed using the help section of "datacube dataset search...
[ { "content": "\"\"\"\nThis module defines a simple query language for searching Data Cube indexes\n\nLiteral Values\n--------------\n\n- Strings\n- Numerics\n- Dates\n- Vague Dates\n\nie. Specify a year, meaning a range covering the entire year\n\nComparisons\n-----------\n\n- Equals\n\n eg. field=<value>\n...
[ { "content": "\"\"\"\nThis module defines a simple query language for searching Data Cube indexes\n\nLiteral Values\n--------------\n\n- Strings\n- Numerics\n- Dates\n- Vague Dates\n\nie. Specify a year, meaning a range covering the entire year\n\nComparisons\n-----------\n\n- Equals\n\n eg. field=<value>\n...
diff --git a/datacube/ui/expression.py b/datacube/ui/expression.py index b2c90e9951..52660d9ab5 100644 --- a/datacube/ui/expression.py +++ b/datacube/ui/expression.py @@ -295,7 +295,10 @@ def query_repr(self, get_field): return get_field(self.field_name).between(search_range.begin, search_range.end) def...
python-pillow__Pillow-6078
XDGViewer and GmDisplayViewer fail to show images <!-- Thank you for reporting an issue. Follow these guidelines to ensure your issue is handled properly. If you have a ... 1. General question: consider asking the question on Stack Overflow with the python-imaging-library tag: * https://stackover...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# im.show() drivers\n#\n# History:\n# 2008-04-06 fl Created\n#\n# Copyright (c) Secret Labs AB 2008.\n#\n# See the README file for information on usage and redistribution.\n#\nimport os\nimport shutil\nimport subprocess\nimport sys\nimport warnings\nf...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# im.show() drivers\n#\n# History:\n# 2008-04-06 fl Created\n#\n# Copyright (c) Secret Labs AB 2008.\n#\n# See the README file for information on usage and redistribution.\n#\nimport os\nimport shutil\nimport subprocess\nimport sys\nimport warnings\nf...
diff --git a/docs/reference/ImageShow.rst b/docs/reference/ImageShow.rst index 45b50c8469b..5cedede69e6 100644 --- a/docs/reference/ImageShow.rst +++ b/docs/reference/ImageShow.rst @@ -23,6 +23,9 @@ All default viewers convert the image to be shown to PNG format. .. autoclass:: PIL.ImageShow.EogViewer .. auto...
carpentries__amy-2219
Hide lesson program specific checkout steps Now that we have a single Instructor badge, we do not want to see the lesson program specific checkout steps. These should be hidden from view so only four options remain. - ~DC Demo~ - ~DC Homework~ - Demo - Discussion - Homework - ~LC Demo~ - ~LC Homework~ - ~SWC ...
[ { "content": "from crispy_forms.layout import Layout, Submit\nfrom django import forms\nfrom django.core.exceptions import ValidationError\nfrom django.db.models import Q\nfrom django.forms import RadioSelect, TextInput\n\n# this is used instead of Django Autocomplete Light widgets\n# see issue #1330: https://g...
[ { "content": "from crispy_forms.layout import Layout, Submit\nfrom django import forms\nfrom django.core.exceptions import ValidationError\nfrom django.db.models import Q\nfrom django.forms import RadioSelect, TextInput\n\n# this is used instead of Django Autocomplete Light widgets\n# see issue #1330: https://g...
diff --git a/amy/trainings/forms.py b/amy/trainings/forms.py index 960b03648..3865bdc70 100644 --- a/amy/trainings/forms.py +++ b/amy/trainings/forms.py @@ -24,6 +24,16 @@ class TrainingProgressForm(forms.ModelForm): queryset=Person.objects.all(), widget=ModelSelect2Widget(data_view="admin-lookup"), ...
aws__aws-cli-4458
Service Catalog --support-url not being passed as String but does a HTTP get Hi, While utilizing the service catalog CLI if the parameter of --support-url is used for the create-product, the CLI does an actual HTTP get request on the URL provided instead of just giving the parameter as a string. Since the URL would ...
[ { "content": "# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2....
[ { "content": "# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2....
diff --git a/awscli/paramfile.py b/awscli/paramfile.py index b41be3c475b7..45f3272e7dff 100644 --- a/awscli/paramfile.py +++ b/awscli/paramfile.py @@ -101,6 +101,9 @@ 'serverlessapplicationrepository.update-application.home-page-url', 'serverlessapplicationrepository.update-application.readme-url', + 'se...
sagemath__sage-35220
multivar polynomials over poly fraction fields don't simplify <div id="comment:0"></div> ``` sage: F=FractionField(PolynomialRing(QQ,'t')) sage: R=PolynomialRing(F,'x,y') sage: R.inject_variables() Defining x, y sage: x/x x/x ``` whereas simpler fraction fields for F yield 1 CC: @sagetrac-jakobkroeker Component:...
[ { "content": "# -*- coding: utf-8 -*-\nr\"\"\"\nFraction Field of Integral Domains\n\nAUTHORS:\n\n- William Stein (with input from David Joyner, David Kohel, and Joe\n Wetherell)\n\n- Burcin Erocal\n\n- Julian Rüth (2017-06-27): embedding into the field of fractions and its\n section\n\nEXAMPLES:\n\nQuotienti...
[ { "content": "# -*- coding: utf-8 -*-\nr\"\"\"\nFraction Field of Integral Domains\n\nAUTHORS:\n\n- William Stein (with input from David Joyner, David Kohel, and Joe\n Wetherell)\n\n- Burcin Erocal\n\n- Julian Rüth (2017-06-27): embedding into the field of fractions and its\n section\n\nEXAMPLES:\n\nQuotienti...
diff --git a/src/sage/rings/fraction_field.py b/src/sage/rings/fraction_field.py index 3f1964b13d2..c1af06dd1e9 100644 --- a/src/sage/rings/fraction_field.py +++ b/src/sage/rings/fraction_field.py @@ -55,6 +55,18 @@ sage: F = FractionField(PolynomialRing(RationalField(),2,'x')) sage: F == loads(dumps(F)) ...
ansible__ansible-modules-core-4878
an instance without an external ip address ##### ISSUE TYPE Feature Idea ##### COMPONENT NAME gce module ##### ANSIBLE VERSION N/A ##### SUMMARY Google cloud allows to run its instances without an external ip address. It's very useful in some cases. I saw in http://docs.ansible.com/ansible/gce_module.html that the ...
[ { "content": "#!/usr/bin/python\n# Copyright 2013 Google Inc.\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 Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (...
[ { "content": "#!/usr/bin/python\n# Copyright 2013 Google Inc.\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 Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (...
diff --git a/cloud/google/gce.py b/cloud/google/gce.py index 064a79e2f84..96f058df6d1 100644 --- a/cloud/google/gce.py +++ b/cloud/google/gce.py @@ -142,7 +142,7 @@ external_ip: version_added: "1.9" description: - - type of external ip, ephemeral by default; alternatively, a list of fixed gce ips or i...
liqd__a4-meinberlin-977
Maptopicprio: Polygon may not be set When I try to create a maptopic in the dashboard, it is not guaranteed that a polygon is already set. The map for setting a point therefore fails to display.
[ { "content": "from django.urls import reverse\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom meinberlin.apps.dashboard2 import DashboardComponent\nfrom meinberlin.apps.dashboard2 import components\n\nfrom . import models\nfrom . import views\n\n\nclass MapTopicEditComponent(DashboardComponent)...
[ { "content": "from django.urls import reverse\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom meinberlin.apps.dashboard2 import DashboardComponent\nfrom meinberlin.apps.dashboard2 import components\n\nfrom . import models\nfrom . import views\n\n\nclass MapTopicEditComponent(DashboardComponent)...
diff --git a/meinberlin/apps/maptopicprio/dashboard.py b/meinberlin/apps/maptopicprio/dashboard.py index cbe609480e..ccebcf827b 100644 --- a/meinberlin/apps/maptopicprio/dashboard.py +++ b/meinberlin/apps/maptopicprio/dashboard.py @@ -15,7 +15,12 @@ class MapTopicEditComponent(DashboardComponent): def is_effecti...
lnbits__lnbits-1822
[BUG] No way to block the creation of users. **Describe the bug** Setting allowed users in the GUI and/or the .env file blocks access to non-allowed users, but does not block the creation of new users through the public frontend page IE lnbits.mydomain.com **To Reproduce** Steps to reproduce the behavior: 1. As...
[ { "content": "import asyncio\nimport base64\nimport hashlib\nimport json\nimport uuid\nfrom http import HTTPStatus\nfrom io import BytesIO\nfrom typing import Dict, List, Optional, Union\nfrom urllib.parse import ParseResult, parse_qs, unquote, urlencode, urlparse, urlunparse\n\nimport httpx\nimport pyqrcode\nf...
[ { "content": "import asyncio\nimport base64\nimport hashlib\nimport json\nimport uuid\nfrom http import HTTPStatus\nfrom io import BytesIO\nfrom typing import Dict, List, Optional, Union\nfrom urllib.parse import ParseResult, parse_qs, unquote, urlencode, urlparse, urlunparse\n\nimport httpx\nimport pyqrcode\nf...
diff --git a/.env.example b/.env.example index 8ee75b9ac8..8412d7d24a 100644 --- a/.env.example +++ b/.env.example @@ -15,6 +15,7 @@ LNBITS_ALLOWED_IPS="" LNBITS_BLOCKED_IPS="" # Allow users and admins by user IDs (comma separated list) +# if set new users will not be able to create accounts LNBITS_ALLOWED_USERS="...
streamlink__streamlink-5436
plugins.mitele: 403 Client Error: Missing hdnts for url ### Checklist - [X] This is a plugin issue and not a different kind of issue - [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink) - [X] [I have checked the list of open an...
[ { "content": "\"\"\"\n$description Spanish live TV channels from Mediaset Group, including Boing, Cuatro, Divinity, Energy, FDF and Telecinco.\n$url mitele.es\n$type live\n$region Spain\n\"\"\"\n\nimport logging\nimport re\n\nfrom streamlink.plugin import Plugin, pluginmatcher\nfrom streamlink.plugin.api import...
[ { "content": "\"\"\"\n$description Spanish live TV channels from Mediaset Group, including Boing, Cuatro, Divinity, Energy, FDF and Telecinco.\n$url mitele.es\n$type live\n$region Spain\n\"\"\"\n\nimport logging\nimport re\n\nfrom streamlink.plugin import Plugin, pluginmatcher\nfrom streamlink.plugin.api import...
diff --git a/src/streamlink/plugins/mitele.py b/src/streamlink/plugins/mitele.py index 5f7fa8dea5f..f6b60fbd695 100644 --- a/src/streamlink/plugins/mitele.py +++ b/src/streamlink/plugins/mitele.py @@ -109,6 +109,8 @@ def _get_streams(self): log.warning("Stream may be protected by DRM") ...
spotify__luigi-1708
Task finished yet the luigi failed. I have py script contains the following task class UpdateUserParameter(luigi.Task): udt = luigi.DateParameter() subject=luigi.Parameter() ``` def output(self): return luigi.LocalTarget(local_proj_dir+'/data/crontab/{sub}/{dts}/is_user_parameter_updated.txt'.format(sub=s...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2012-2015 Spotify AB\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#...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2012-2015 Spotify AB\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#...
diff --git a/luigi/parameter.py b/luigi/parameter.py index 01f6a91cf6..9a89376111 100644 --- a/luigi/parameter.py +++ b/luigi/parameter.py @@ -786,6 +786,12 @@ def default(self, obj): return obj.get_wrapped() return json.JSONEncoder.default(self, obj) + def normalize(self, value): + ...
LMFDB__lmfdb-1449
sort number fields on download On lmfdb-support, Alex Bartel pointed out "If I download a file containing a list of number fields, then the entries are sorted in a weird way. The concrete example that I caught occurs if you press the MAGMA button on this page: http://beta.lmfdb.org/NumberField/?degree=4&signature=&dis...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport pymongo\nASC = pymongo.ASCENDING\nimport time\nimport flask\nimport lmfdb.base as base\nfrom lmfdb.base import app, getDBConnection, url_for\nfrom flask import render_template, render_template_string, request, abort, Blueprint, url_for, make_response, redirect, g,...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport pymongo\nASC = pymongo.ASCENDING\nimport time\nimport flask\nimport lmfdb.base as base\nfrom lmfdb.base import app, getDBConnection, url_for\nfrom flask import render_template, render_template_string, request, abort, Blueprint, url_for, make_response, redirect, g,...
diff --git a/lmfdb/number_fields/number_field.py b/lmfdb/number_fields/number_field.py index 35b0d4c304..e22e7876a9 100644 --- a/lmfdb/number_fields/number_field.py +++ b/lmfdb/number_fields/number_field.py @@ -484,11 +484,11 @@ def number_field_search(**args): fields = C.numberfields.fields res = fields.fi...
deis__deis-2718
fix(2650): config:set runs as the app owner instead of issuing user Trivial fix to have config:set run as the issuing user. See #2650 for details.
[ { "content": "\"\"\"\nRESTful view classes for presenting Deis API objects.\n\"\"\"\n\nfrom __future__ import absolute_import\nfrom __future__ import unicode_literals\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AnonymousUser, User\nfrom django.core.exceptions import ValidationErr...
[ { "content": "\"\"\"\nRESTful view classes for presenting Deis API objects.\n\"\"\"\n\nfrom __future__ import absolute_import\nfrom __future__ import unicode_literals\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AnonymousUser, User\nfrom django.core.exceptions import ValidationErr...
diff --git a/controller/api/tests/test_config.py b/controller/api/tests/test_config.py index 62e9fe0e6b..ea0628c688 100644 --- a/controller/api/tests/test_config.py +++ b/controller/api/tests/test_config.py @@ -187,6 +187,7 @@ def test_admin_can_create_config_on_other_apps(self): HT...
coala__coala-4969
Add docstring for coala_modes.py mode_normal This function should have a proper docstring, and indicate that `log_printer` is unused & deprecated.
[ { "content": "def mode_normal(console_printer, log_printer, args, debug=False):\n import functools\n\n from coalib.coala_main import run_coala\n from coalib.output.ConsoleInteraction import (\n acquire_settings, nothing_done,\n print_results, print_section_beginning)\n\n partial_print_...
[ { "content": "def mode_normal(console_printer, log_printer, args, debug=False):\n \"\"\"\n This is the default coala mode. User interaction is allowed in this mode.\n\n :param console_printer: Object to print messages on the console.\n :param log_printer: Deprecated.\n :param args: ...
diff --git a/coalib/coala_modes.py b/coalib/coala_modes.py index a8538ace63..dec5d2a806 100644 --- a/coalib/coala_modes.py +++ b/coalib/coala_modes.py @@ -1,4 +1,13 @@ def mode_normal(console_printer, log_printer, args, debug=False): + """ + This is the default coala mode. User interaction is allowed in this mod...
litestar-org__litestar-1540
Bug: FieldMeta unexpected keyword argument 'constant' ### Description After going from `polyfactory==2.0.0alpha1` => `2.0.0` I end up with `FieldMeta.__init__() got an unexpected keyword argument 'constant'` Looks like the example generation for the openapi docs is broken because the `constant` boolean field is r...
[ { "content": "from __future__ import annotations\n\nfrom enum import Enum\nfrom typing import TYPE_CHECKING, Any\n\nfrom _decimal import Decimal\nfrom polyfactory.exceptions import ParameterException\nfrom polyfactory.field_meta import FieldMeta, Null\n\nfrom litestar.openapi.spec import Example\nfrom litestar....
[ { "content": "from __future__ import annotations\n\nfrom enum import Enum\nfrom typing import TYPE_CHECKING, Any\n\nfrom _decimal import Decimal\nfrom polyfactory.exceptions import ParameterException\nfrom polyfactory.field_meta import FieldMeta, Null\n\nfrom litestar.openapi.spec import Example\nfrom litestar....
diff --git a/litestar/_openapi/schema_generation/examples.py b/litestar/_openapi/schema_generation/examples.py index 10a50080f8..64621a3706 100644 --- a/litestar/_openapi/schema_generation/examples.py +++ b/litestar/_openapi/schema_generation/examples.py @@ -41,7 +41,7 @@ def _create_field_meta(field: "SignatureField")...
networkx__networkx-4579
Improve nx_pylab testing Currently our visualization test suite are smoke tests. We should investigate using ``pytest-mpl`` - https://github.com/matplotlib/pytest-mpl See #4375.
[ { "content": "from glob import glob\nimport os\nimport sys\nfrom setuptools import setup\n\nif sys.version_info[:2] < (3, 8):\n error = (\n \"NetworkX 2.7+ requires Python 3.8 or later (%d.%d detected). \\n\"\n \"For Python 2.7, please install version 2.2 using: \\n\"\n \"$ pip install '...
[ { "content": "from glob import glob\nimport os\nimport sys\nfrom setuptools import setup\n\nif sys.version_info[:2] < (3, 8):\n error = (\n \"NetworkX 2.7+ requires Python 3.8 or later (%d.%d detected). \\n\"\n \"For Python 2.7, please install version 2.2 using: \\n\"\n \"$ pip install '...
diff --git a/.circleci/config.yml b/.circleci/config.yml index 25716d5fe59..eb85c36c437 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,11 +1,11 @@ # See: https://circleci.com/docs/2.0/language-python/ -version: 2 +version: 2.1 jobs: - build: - working_directory: ~/repo + + documentation: ...
django-import-export__django-import-export-1696
Resource._meta doesn't get params from parent's parent's Meta **Describe the bug** `Resource._meta` does get params from own `Meta` and from parent's `Meta`. But it doesn't get params from `Meta` of parent's parent's `Meta` **To Reproduce** Execute the following code: ``` from import_export.resources import Reso...
[ { "content": "import logging\nfrom collections import OrderedDict\n\nfrom django.apps import apps\nfrom django.core.exceptions import FieldDoesNotExist\nfrom django.db.models.fields.related import ForeignObjectRel\n\nfrom import_export.options import ResourceOptions\n\nfrom .fields import Field\nfrom .instance_...
[ { "content": "import logging\nfrom collections import OrderedDict\n\nfrom django.apps import apps\nfrom django.core.exceptions import FieldDoesNotExist\nfrom django.db.models.fields.related import ForeignObjectRel\n\nfrom import_export.options import ResourceOptions\n\nfrom .fields import Field\nfrom .instance_...
diff --git a/docs/changelog.rst b/docs/changelog.rst index ee45ecde6..d20ed2e78 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -12,6 +12,7 @@ Please refer to :doc:`release notes<release_notes>`. - Updated Admin UI to track deleted and skipped Imports (#1691) - Import form defaults to read-only field if o...
rotki__rotki-3031
Can't setup new Bitfinex api key since v1.17.1 ## Problem Definition A user reported that they can not set up a new bitfinex api key since v1.17.1 Reported error is: ``` ERROR rotkehlchen.exchanges.manager: Failed to validate API key for bitfinex exchange bitfinex 1 due to Provided API key/secret is invalid or ...
[ { "content": "import hashlib\nimport hmac\nimport json\nimport logging\nfrom collections import defaultdict\nfrom http import HTTPStatus\nfrom json.decoder import JSONDecodeError\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n DefaultDict,\n Dict,\n Iterable,\n List,\n NamedT...
[ { "content": "import hashlib\nimport hmac\nimport json\nimport logging\nfrom collections import defaultdict\nfrom http import HTTPStatus\nfrom json.decoder import JSONDecodeError\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n DefaultDict,\n Dict,\n Iterable,\n List,\n NamedT...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 6aca677d41..8bccb8cd27 100755 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,7 @@ Changelog ========= +* :bug:`3030` Setting up a bitfinex api key should now work properly again. * :bug:`3010` Fixes a bug when editing a trade that had a modif...
interactions-py__interactions.py-900
[BUG] message and code are swapped in LibraryException ### Describe the bug. in `LibraryException` this is the `__init__`: ```py def __init__(self, message: str = None, code: int = 0, severity: int = 0, **kwargs): ``` however, the library uses errors like: ```py raise LibraryException(11, message="Your command...
[ { "content": "from logging import getLogger\nfrom typing import List, Optional\n\n__all__ = (\"LibraryException\",)\n\nlog = getLogger(__name__)\n\n\nclass LibraryException(Exception):\n \"\"\"\n A class object representing all errors.\n If you want more information on what a specific code means, use `...
[ { "content": "from logging import getLogger\nfrom typing import List, Optional\n\n__all__ = (\"LibraryException\",)\n\nlog = getLogger(__name__)\n\n\nclass LibraryException(Exception):\n \"\"\"\n A class object representing all errors.\n If you want more information on what a specific code means, use `...
diff --git a/interactions/api/error.py b/interactions/api/error.py index 6ba7b8a01..d2cd834f0 100644 --- a/interactions/api/error.py +++ b/interactions/api/error.py @@ -269,7 +269,7 @@ def lookup(code: int) -> str: 180002: "Failed to create stage needed for stage event", }.get(code, f"Unknown erro...
litestar-org__litestar-3281
Bug: schema generation crashes in 2.7.1 ### Description Using 2.7.0, I code view the "/schema" page of my app without problem, but with 2.7.1, I get internal server error 500 back. I ran it with debug and got this: `'str' object has no attribute 'value'` and a trace pointing to this line: https://github.com/li...
[ { "content": "from __future__ import annotations\n\nfrom collections import abc, deque\nfrom copy import deepcopy\nfrom dataclasses import dataclass, is_dataclass, replace\nfrom inspect import Parameter, Signature\nfrom typing import (\n Any,\n AnyStr,\n Callable,\n Collection,\n ForwardRef,\n ...
[ { "content": "from __future__ import annotations\n\nfrom collections import abc, deque\nfrom copy import deepcopy\nfrom dataclasses import dataclass, is_dataclass, replace\nfrom inspect import Parameter, Signature\nfrom typing import (\n Any,\n AnyStr,\n Callable,\n Collection,\n ForwardRef,\n ...
diff --git a/litestar/typing.py b/litestar/typing.py index 3a275573f3..14a92dc44f 100644 --- a/litestar/typing.py +++ b/litestar/typing.py @@ -96,7 +96,7 @@ def _parse_metadata(value: Any, is_sequence_container: bool, extra: dict[str, An example_list: list[Any] | None if example := extra.pop("example", None):...
encode__httpx-321
Away-from-origin redirects should add a new host header Prompted by #310 Away-from-origin redirects currently remove the `Host` header, without adding a new one. I think we ought to be using `headers['Host'] = url.authority.encode("ascii")` instead of simply deleting the header.
[ { "content": "import functools\nimport typing\nfrom base64 import b64encode\n\nfrom .config import DEFAULT_MAX_REDIRECTS\nfrom .exceptions import RedirectBodyUnavailable, RedirectLoop, TooManyRedirects\nfrom .models import URL, AsyncRequest, AsyncResponse, Cookies, Headers\nfrom .status_codes import codes\n\n\n...
[ { "content": "import functools\nimport typing\nfrom base64 import b64encode\n\nfrom .config import DEFAULT_MAX_REDIRECTS\nfrom .exceptions import RedirectBodyUnavailable, RedirectLoop, TooManyRedirects\nfrom .models import URL, AsyncRequest, AsyncResponse, Cookies, Headers\nfrom .status_codes import codes\n\n\n...
diff --git a/httpx/middleware.py b/httpx/middleware.py index aa994dba58..dd23ac2a72 100644 --- a/httpx/middleware.py +++ b/httpx/middleware.py @@ -148,7 +148,7 @@ def redirect_headers(self, request: AsyncRequest, url: URL, method: str) -> Head # Strip Authorization headers when responses are redirected awa...
ranaroussi__yfinance-943
Ticker.history: history's index is not of type DateTimeIndex when dividend and split tables are empty **Issue**: Ticker.history (line 295): > df.index = df.index.tz_localize("UTC").tz_convert(data["chart"]["result"][0]["meta"]["exchangeTimezoneName"]) E AttributeError: 'Index' object has no attribute '...
[ { "content": "#!/usr/bin/env python\n# -*- coding: UTF-8 -*-\n#\n# yfinance - market data downloader\n# https://github.com/ranaroussi/yfinance\n\n\"\"\"yfinance - market data downloader\"\"\"\n\nfrom setuptools import setup, find_packages\n# from codecs import open\nimport io\nfrom os import path\n\n# --- get v...
[ { "content": "#!/usr/bin/env python\n# -*- coding: UTF-8 -*-\n#\n# yfinance - market data downloader\n# https://github.com/ranaroussi/yfinance\n\n\"\"\"yfinance - market data downloader\"\"\"\n\nfrom setuptools import setup, find_packages\n# from codecs import open\nimport io\nfrom os import path\n\n# --- get v...
diff --git a/requirements.txt b/requirements.txt index 3c1200f7d..ad52975f3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -pandas>=0.24.0 +pandas>=0.24.0,<=1.3.5 numpy>=1.16.5 requests>=2.26 multitasking>=0.0.7 diff --git a/setup.py b/setup.py index 4259d46bb..60d065494 100644 --- a/setup.py +...
coala__coala-bears-2136
Set setup.py url = http://coala.io/ difficulty/newcomer Opened by @jayvdb at [Gitter](https://gitter.im/coala/coala?at=5a1181aff257ad9109b396a0)
[ { "content": "#!/usr/bin/env python3\n\nimport locale\nimport sys\nfrom subprocess import call\n\nimport setuptools.command.build_py\nfrom bears import Constants\nfrom setuptools import find_packages, setup\nfrom setuptools.command.test import test as TestCommand\n\ntry:\n locale.getlocale()\nexcept (ValueEr...
[ { "content": "#!/usr/bin/env python3\n\nimport locale\nimport sys\nfrom subprocess import call\n\nimport setuptools.command.build_py\nfrom bears import Constants\nfrom setuptools import find_packages, setup\nfrom setuptools.command.test import test as TestCommand\n\ntry:\n locale.getlocale()\nexcept (ValueEr...
diff --git a/setup.py b/setup.py index e750c8172d..61a15bb49b 100755 --- a/setup.py +++ b/setup.py @@ -72,7 +72,7 @@ def run(self): maintainer_email=('lasse.schuirmann@gmail.com, ' 'fabian@neuschmidt.de, ' 'makman@alice.de'), - url='http://co...
facebookresearch__hydra-1363
[Nevergrad-Plugin] Add support for Python 3.9 Python 3.9 support pending on scikit 2.4.0 release. Relevant comment: scikit-learn/scikit-learn#18621 (comment) Related to #1062
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n# type: ignore\nfrom setuptools import find_namespace_packages, setup\n\nwith open(\"README.md\", \"r\") as fh:\n LONG_DESC = fh.read()\n setup(\n name=\"hydra-nevergrad-sweeper\",\n version=\"1.1.0rc1\",\n...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n# type: ignore\nfrom setuptools import find_namespace_packages, setup\n\nwith open(\"README.md\", \"r\") as fh:\n LONG_DESC = fh.read()\n setup(\n name=\"hydra-nevergrad-sweeper\",\n version=\"1.1.0rc1\",\n...
diff --git a/plugins/hydra_nevergrad_sweeper/news/1206.feature b/plugins/hydra_nevergrad_sweeper/news/1206.feature new file mode 100644 index 00000000000..a678dcf78df --- /dev/null +++ b/plugins/hydra_nevergrad_sweeper/news/1206.feature @@ -0,0 +1 @@ +Enable support of Python 3.9 . \ No newline at end of file diff --gi...
GeotrekCE__Geotrek-admin-1511
Altitude and profile calculation On a souvent échangé sur ce sujet et des choses ont été faites mais nous venons de constater à nouveau un calcul assez décalé de la réalite. En effet la randonnée LA CABANE DU PRE D'ANTONI (http://rando.ecrins-parcnational.fr/fr/la-cabane-du-pre-dantoni) affiche un dénivelé positif de...
[ { "content": "import os\nimport sys\nimport djcelery\n\nfrom django.contrib.messages import constants as messages\n\nfrom geotrek import __version__\nfrom . import PROJECT_ROOT_PATH\n\n\ndef gettext_noop(s):\n return s\n\n\nDEBUG = False\nTEMPLATE_DEBUG = DEBUG\nTEST = 'test' in sys.argv\nVERSION = __version...
[ { "content": "import os\nimport sys\nimport djcelery\n\nfrom django.contrib.messages import constants as messages\n\nfrom geotrek import __version__\nfrom . import PROJECT_ROOT_PATH\n\n\ndef gettext_noop(s):\n return s\n\n\nDEBUG = False\nTEMPLATE_DEBUG = DEBUG\nTEST = 'test' in sys.argv\nVERSION = __version...
diff --git a/geotrek/altimetry/sql/10_utilities.sql b/geotrek/altimetry/sql/10_utilities.sql index ed2e20f369..406a5c6a90 100644 --- a/geotrek/altimetry/sql/10_utilities.sql +++ b/geotrek/altimetry/sql/10_utilities.sql @@ -12,9 +12,93 @@ CREATE TYPE elevation_infos AS ( negative_gain integer ); +CREATE OR REPLA...
oppia__oppia-10698
Remove Moment.js from the codebase Moment.js is a legacy project and should not be used in modern applications (see project status [here](https://momentjs.com/docs/#/-project-status/)). Oppia codebase uses moment.js in `date-time-format.service.ts` for date format conversions. Changes will need to be made to replace mo...
[ { "content": "# coding: utf-8\n#\n# Copyright 2020 The Oppia Authors. 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/licen...
[ { "content": "# coding: utf-8\n#\n# Copyright 2020 The Oppia Authors. 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/licen...
diff --git a/core/templates/domain/skill/skill-rights-backend-api.service.ts b/core/templates/domain/skill/skill-rights-backend-api.service.ts index 2728337024be8..f36b2c08398d7 100644 --- a/core/templates/domain/skill/skill-rights-backend-api.service.ts +++ b/core/templates/domain/skill/skill-rights-backend-api.servic...
yt-project__yt-2544
Bug: colormap turbo_r is not properly registered ### Bug report **Bug summary** turbo was recently added to yt, however its reversed version "turbo_r" is currently not available, which breaks the symmetry with core matplotlib and yt's own colormaps api. **Code for reproduction** ```python import yt ds = y...
[ { "content": "\"\"\"\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the file COPYING.txt, distributed with this software.\n#-----...
[ { "content": "\"\"\"\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the file COPYING.txt, distributed with this software.\n#-----...
diff --git a/yt/visualization/color_maps.py b/yt/visualization/color_maps.py index 2f30dea8cd2..9263e72e727 100644 --- a/yt/visualization/color_maps.py +++ b/yt/visualization/color_maps.py @@ -305,6 +305,13 @@ def add_colormap(name, cdict): add_colormap("turbo", _turbo_data) +_turbo_r_colormap_data = np.flip(_turb...
arviz-devs__arviz-1096
`plot_density` does not work for models with different variables **Describe the bug** When passing data of several models to `plot_density`, it throws an error if both models contain parameters that the other model does not have. As long the the variables in the one model are a subset of the the variables of the othe...
[ { "content": "\"\"\"KDE and histogram plots for multiple variables.\"\"\"\nfrom itertools import cycle\nimport warnings\n\nimport matplotlib.pyplot as plt\n\nfrom ..data import convert_to_dataset\nfrom .plot_utils import (\n _scale_fig_size,\n make_label,\n xarray_var_iter,\n default_grid,\n get_...
[ { "content": "\"\"\"KDE and histogram plots for multiple variables.\"\"\"\nfrom itertools import cycle\nimport warnings\n\nimport matplotlib.pyplot as plt\n\nfrom ..data import convert_to_dataset\nfrom .plot_utils import (\n _scale_fig_size,\n make_label,\n xarray_var_iter,\n default_grid,\n get_...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 620b851b89..a96a3612a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ * Stabilize covariance matrix for `plot_kde_2d` (#1075) * Removed extra dim in `prior` data in `from_pyro` (#1071) * Moved CI and docs (build & deploy) to Azure Pipelines and started u...
PrefectHQ__prefect-9437
Agents Can't Fetch Work From `default` Queue of Work Pools Except `default-agent-pool` ### First check - [X] I added a descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find it. - [X] I searched the Prefect documentation for this issue. - [X] I checked that this is...
[ { "content": "\"\"\"\nFunctions for interacting with work queue ORM objects.\nIntended for internal use by the Prefect REST API.\n\"\"\"\n\nimport datetime\nfrom uuid import UUID\n\nimport sqlalchemy as sa\nfrom pydantic import parse_obj_as\nfrom sqlalchemy import delete, select\nfrom sqlalchemy.ext.asyncio imp...
[ { "content": "\"\"\"\nFunctions for interacting with work queue ORM objects.\nIntended for internal use by the Prefect REST API.\n\"\"\"\n\nimport datetime\nfrom uuid import UUID\n\nimport sqlalchemy as sa\nfrom pydantic import parse_obj_as\nfrom sqlalchemy import delete, select\nfrom sqlalchemy.ext.asyncio imp...
diff --git a/src/prefect/server/models/work_queues.py b/src/prefect/server/models/work_queues.py index 6f28e4d40a44..c60484a07817 100644 --- a/src/prefect/server/models/work_queues.py +++ b/src/prefect/server/models/work_queues.py @@ -392,9 +392,9 @@ async def read_work_queue_status( session=session, ...
freedomofpress__securedrop-3756
Builder image needs updates ## Description sd-builder image needs to be updated. ## Steps to Reproduce `make build-debs` and observe error. ## Expected Behavior `make build-debs` should exit without error. ## Actual Behavior `make-build-debs` returns an error, security updates are needed for the co...
[ { "content": "__version__ = '0.9.0~rc1'\n", "path": "securedrop/version.py" }, { "content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to ...
[ { "content": "__version__ = '0.9.0~rc2'\n", "path": "securedrop/version.py" }, { "content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to ...
diff --git a/changelog.md b/changelog.md index ebc124542d..496cf5a38b 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,6 @@ # Changelog -## 0.9.0~rc1 +## 0.9.0~rc2 ### Web Applications @@ -12,6 +12,8 @@ * Updated the grsecurity-hardened Linux Kernels to 4.4.144 for app and mon servers (#3662) * Updat...
pytorch__examples-897
Typo https://github.com/pytorch/examples/blob/4db11160c21d0e26634ca1fcb94a73ad8d870ba7/snli/train.py#L122 `validation` instead of `valiation`
[ { "content": "import os\nimport time\nimport glob\n\nimport torch\nimport torch.optim as O\nimport torch.nn as nn\n\nfrom torchtext import data\nfrom torchtext import datasets\n\nfrom model import SNLIClassifier\nfrom util import get_args, makedirs\n\n\nargs = get_args()\nif torch.cuda.is_available():\n torc...
[ { "content": "import os\nimport time\nimport glob\n\nimport torch\nimport torch.optim as O\nimport torch.nn as nn\n\nfrom torchtext import data\nfrom torchtext import datasets\n\nfrom model import SNLIClassifier\nfrom util import get_args, makedirs\n\n\nargs = get_args()\nif torch.cuda.is_available():\n torc...
diff --git a/snli/train.py b/snli/train.py index 7251b635bd..b3e8a24848 100644 --- a/snli/train.py +++ b/snli/train.py @@ -119,7 +119,7 @@ epoch, iterations, 1+batch_idx, len(train_iter), 100. * (1+batch_idx) / len(train_iter), loss.item(), dev_loss.item(), train_acc, dev_acc)) - ...
explosion__spaCy-1905
Dummy command argument wasn't removed from auto-link after download Auto-linking of downloaded languages was broken in https://github.com/explosion/spaCy/commit/7f0ab145e95036a55af4802184a4b1c496557d0a. The dummy argument wasn't removed from the `link` call at https://github.com/explosion/spaCy/blob/master/spacy/cli/do...
[ { "content": "# coding: utf8\nfrom __future__ import unicode_literals\n\nimport plac\nimport requests\nimport os\nimport subprocess\nimport sys\n\nfrom .link import link\nfrom ..util import prints, get_package_path\nfrom .. import about\n\n\n@plac.annotations(\n model=(\"model to download, shortcut or name)\...
[ { "content": "# coding: utf8\nfrom __future__ import unicode_literals\n\nimport plac\nimport requests\nimport os\nimport subprocess\nimport sys\n\nfrom .link import link\nfrom ..util import prints, get_package_path\nfrom .. import about\n\n\n@plac.annotations(\n model=(\"model to download, shortcut or name)\...
diff --git a/.github/contributors/Kimahriman.md b/.github/contributors/Kimahriman.md new file mode 100644 index 00000000000..19744e7bdb2 --- /dev/null +++ b/.github/contributors/Kimahriman.md @@ -0,0 +1,106 @@ +# spaCy contributor agreement + +This spaCy Contributor Agreement (**"SCA"**) is based on the +[Oracle Contri...
zestedesavoir__zds-site-3532
[v18] Filtrer les contenus par catégories/tags ne donne aucune indication sur le filtre par la suite Version 18 Navigateur Firefox OS Windows Lorsque je vais sur les url suivante : - filtrer tous les contenus de catégorie "bureautique et rédaction" : https://beta.zestedesavoir.com/tutoriels/?category=bureautique-et-r...
[ { "content": "# coding: utf-8\nfrom datetime import datetime\nimport json as json_writer\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import PermissionDenied\nfrom django.db import transaction\nfrom django.db.mod...
[ { "content": "# coding: utf-8\nfrom datetime import datetime\nimport json as json_writer\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import PermissionDenied\nfrom django.db import transaction\nfrom django.db.mod...
diff --git a/templates/tutorialv2/index_online.html b/templates/tutorialv2/index_online.html index b88ab38574..906c273f02 100644 --- a/templates/tutorialv2/index_online.html +++ b/templates/tutorialv2/index_online.html @@ -8,6 +8,8 @@ {% block title %} {% if tag %} {{ tag }} + {% elif category %} + ...
microsoft__DeepSpeed-3497
[ERROR] AttributeErrorAttributeErrorAttributeError: 'NoneType' object has no attribute 'get_tensor_model_parallel_group' https://github.com/microsoft/DeepSpeed/blob/d10b8ca011b18eba3a6ca56f4208a732d7fbb744/deepspeed/runtime/hybrid_engine.py#LL321C16-L321C37 Should the judgment condition be "self.mpu is None"?
[ { "content": "# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\nimport torch\nfrom deepspeed.inference.config import DeepSpeedInferenceConfig\nfrom deepspeed.module_inject.replace_policy import replace_policies\nfrom deepspeed.module_inject.utils import policy_...
[ { "content": "# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\nimport torch\nfrom deepspeed.inference.config import DeepSpeedInferenceConfig\nfrom deepspeed.module_inject.replace_policy import replace_policies\nfrom deepspeed.module_inject.utils import policy_...
diff --git a/deepspeed/runtime/hybrid_engine.py b/deepspeed/runtime/hybrid_engine.py index 0bddc6aeb9d4..46b1475cece9 100644 --- a/deepspeed/runtime/hybrid_engine.py +++ b/deepspeed/runtime/hybrid_engine.py @@ -318,7 +318,7 @@ def create_inference_module(self): self._orig_fwds_others = [] if self._c...
google__openhtf-239
Error Attaching Wav Files using test.AttachFromFile(path_to_wav) results in UnicodeDecodeError: 'utf8' codec can't decode byte 0xa4 in position 5: invalid start byte
[ { "content": "# Copyright 2014 Google Inc. All Rights Reserved.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless re...
[ { "content": "# Copyright 2014 Google Inc. All Rights Reserved.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless re...
diff --git a/openhtf/exe/phase_data.py b/openhtf/exe/phase_data.py index 47b5a9cc3..da4fc3324 100644 --- a/openhtf/exe/phase_data.py +++ b/openhtf/exe/phase_data.py @@ -110,7 +110,7 @@ def AttachFromFile(self, filename, name=None, mimetype=None): the given name. IOError: Raised if the given filename cou...
getsentry__sentry-python-875
Incorrect parsing of complex urls in django Sentry is parsing a complex URL as `/api/{version})/log` instead of `/api/{version}/log`. <img width="207" alt="Screenshot 2020-10-17 at 10 40 47 AM" src="https://user-images.githubusercontent.com/4463796/96328987-70cb1c80-1066-11eb-94a4-ff8e15fb81ed.png">
[ { "content": "\"\"\"\nCopied from raven-python. Used for\n`DjangoIntegration(transaction_fron=\"raven_legacy\")`.\n\"\"\"\n\nfrom __future__ import absolute_import\n\nimport re\n\nfrom sentry_sdk._types import MYPY\n\nif MYPY:\n from django.urls.resolvers import URLResolver\n from typing import Dict\n ...
[ { "content": "\"\"\"\nCopied from raven-python. Used for\n`DjangoIntegration(transaction_fron=\"raven_legacy\")`.\n\"\"\"\n\nfrom __future__ import absolute_import\n\nimport re\n\nfrom sentry_sdk._types import MYPY\n\nif MYPY:\n from django.urls.resolvers import URLResolver\n from typing import Dict\n ...
diff --git a/sentry_sdk/integrations/django/transactions.py b/sentry_sdk/integrations/django/transactions.py index f20866ef95..146a71a362 100644 --- a/sentry_sdk/integrations/django/transactions.py +++ b/sentry_sdk/integrations/django/transactions.py @@ -37,7 +37,7 @@ def get_regex(resolver_or_pattern): class RavenR...
spack__spack-34863
Installation issue: libxsmm ### Steps to reproduce the issue @hfp The `libxsmm` doesn't specify a dependency on `binutils`, so a (potentially old) system binutils is used and the build fails: ``` $ as --version GNU assembler version 2.25.1-22.base.el7 $ spack install libxsmm Error: no such instruction: ... ...
[ { "content": "# Copyright 2013-2022 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)\n\nimport os\nfrom glob import glob\n\nfrom spack.package import *\n\n\nclass Libxsmm(MakefilePack...
[ { "content": "# Copyright 2013-2022 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)\n\nimport os\nfrom glob import glob\n\nfrom spack.package import *\n\n\nclass Libxsmm(MakefilePack...
diff --git a/var/spack/repos/builtin/packages/libxsmm/package.py b/var/spack/repos/builtin/packages/libxsmm/package.py index 22af0c861c3167..bb8fdc8402663f 100644 --- a/var/spack/repos/builtin/packages/libxsmm/package.py +++ b/var/spack/repos/builtin/packages/libxsmm/package.py @@ -77,6 +77,11 @@ class Libxsmm(Makefile...
pyqtgraph__pyqtgraph-679
OverflowError in Point.py It seems like [this old (2013) bug](https://bugs.launchpad.net/pyqtgraph/+bug/1234528) still hasn't been fixed. I've just bumped into the same error. I will test solution suggested by author.
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nPoint.py - Extension of QPointF which adds a few missing methods.\nCopyright 2010 Luke Campagnola\nDistributed under MIT/X11 license. See license.txt for more infomation.\n\"\"\"\n\nfrom .Qt import QtCore\nimport numpy as np\n\ndef clip(x, mn, mx):\n if x > mx...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nPoint.py - Extension of QPointF which adds a few missing methods.\nCopyright 2010 Luke Campagnola\nDistributed under MIT/X11 license. See license.txt for more infomation.\n\"\"\"\n\nfrom .Qt import QtCore\nimport numpy as np\n\ndef clip(x, mn, mx):\n if x > mx...
diff --git a/pyqtgraph/Point.py b/pyqtgraph/Point.py index 4d04f01c11..3fb43cac1c 100644 --- a/pyqtgraph/Point.py +++ b/pyqtgraph/Point.py @@ -105,7 +105,13 @@ def _math_(self, op, x): def length(self): """Returns the vector length of this Point.""" - return (self[0]**2 + self[1]**2) ** 0.5 +...
jupyterhub__zero-to-jupyterhub-k8s-8
Add Jupyter structure for docs - [x] Add readthedocs.yml - [x] move environment.yml inside source directory - [ ] add project jupyter copyright
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Learning with JupyterHub documentation build configuration file, created by\n# sphinx-quickstart on Fri Mar 17 16:07:58 2017.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possib...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Learning with JupyterHub documentation build configuration file, created by\n# sphinx-quickstart on Fri Mar 17 16:07:58 2017.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possib...
diff --git a/doc/source/conf.py b/doc/source/conf.py index 5a2fe9ad30..4890c27584 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -50,9 +50,9 @@ master_doc = 'index' # General information about the project. -project = 'Zero to Jupyterhub' -copyright = '2017, Chris Holdgraf' -author = 'Chris Holdgraf' +p...
pennersr__django-allauth-2391
Small typo in allauth/socialaccount/providers/facebook/locale.py Should read appropriate rather than appropiate in the default_local docstring.
[ { "content": "# Default locale mapping for the Facebook JS SDK\n# The list of supported locales is at\n# https://www.facebook.com/translations/FacebookLocales.xml\nimport os\n\nfrom django.utils.translation import get_language, to_locale\n\n\ndef _build_locale_table(filename_or_file):\n \"\"\"\n Parses th...
[ { "content": "# Default locale mapping for the Facebook JS SDK\n# The list of supported locales is at\n# https://www.facebook.com/translations/FacebookLocales.xml\nimport os\n\nfrom django.utils.translation import get_language, to_locale\n\n\ndef _build_locale_table(filename_or_file):\n \"\"\"\n Parses th...
diff --git a/AUTHORS b/AUTHORS index 588e9b7a77..91e5136c69 100644 --- a/AUTHORS +++ b/AUTHORS @@ -39,6 +39,7 @@ David Cain David Evans David Friedman David Hummel +Dimitris Tsimpitas Egor Poderyagin Eran Rundstein Eric Delord @@ -123,6 +124,7 @@ Shane Rice Stuart Ross Terry Jones Tiago Loureiro +Tim Gates To...
freedomofpress__securedrop-3875
Sources with a null value for last_updated will break the web UI ## Description If a source is created without a `last_updated` filed, it will cause the following error on the journalist index page. ``` 172.17.0.1 - - [10/Oct/2018 18:49:40] "GET / HTTP/1.1" 500 - Traceback (most recent call last): File "/usr...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport os\n\nfrom datetime import datetime\nfrom flask import (Blueprint, request, current_app, session, url_for, redirect,\n render_template, g, flash, abort)\nfrom flask_babel import gettext\nfrom sqlalchemy.sql.expression import false\n\nfrom db impo...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport os\n\nfrom datetime import datetime\nfrom flask import (Blueprint, request, current_app, session, url_for, redirect,\n render_template, g, flash, abort)\nfrom flask_babel import gettext\nfrom sqlalchemy.sql.expression import false\n\nfrom db impo...
diff --git a/securedrop/journalist_app/main.py b/securedrop/journalist_app/main.py index b9a05a095b..3746716a7b 100644 --- a/securedrop/journalist_app/main.py +++ b/securedrop/journalist_app/main.py @@ -62,6 +62,7 @@ def index(): # the Pocoo style guide, IMHO: # http://www.pocoo.org/internal/styleguid...
locustio__locust-841
Don't rely on obsolete msgpack-python msgpack-python looks obsolete -> https://pypi.org/project/msgpack-python/ "This package is deprecated. Install msgpack instead." but msgpack doesn't provide pythonegg(msgpack-python). Please consider switching to msgpack directly instead.
[ { "content": "# -*- coding: utf-8 -*-\nimport ast\nimport os\nimport re\n\nfrom setuptools import find_packages, setup\n\n# parse version from locust/__init__.py\n_version_re = re.compile(r'__version__\\s+=\\s+(.*)')\n_init_file = os.path.join(os.path.abspath(os.path.dirname(__file__)), \"locust\", \"__init__.p...
[ { "content": "# -*- coding: utf-8 -*-\nimport ast\nimport os\nimport re\n\nfrom setuptools import find_packages, setup\n\n# parse version from locust/__init__.py\n_version_re = re.compile(r'__version__\\s+=\\s+(.*)')\n_init_file = os.path.join(os.path.abspath(os.path.dirname(__file__)), \"locust\", \"__init__.p...
diff --git a/setup.py b/setup.py index 37a43b9672..7499486bbd 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=False, - install_requires=["gevent>=1.2.2", "flask>=0.10.1", "requests>=2.9.1", "m...
Qiskit__qiskit-5833
OptimizeSwapBeforeMeasure needs multiple invocations The `OptimizeSwapBeforeMeasure` pass is supposed to commute quantum SWAP gates that immediately precede measurements, past the measurements, and instead convert them to classical swap (i.e.just retarget the measurement clbit). However this should be generalized to...
[ { "content": "# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2017, 2019.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.\n#\n...
[ { "content": "# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2017, 2019.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.\n#\n...
diff --git a/qiskit/transpiler/passes/optimization/optimize_swap_before_measure.py b/qiskit/transpiler/passes/optimization/optimize_swap_before_measure.py index a06dc78ba375..40a480a3a49e 100644 --- a/qiskit/transpiler/passes/optimization/optimize_swap_before_measure.py +++ b/qiskit/transpiler/passes/optimization/optim...
django-extensions__django-extensions-1506
validate_templates can fail with an empty DIRS setting ```pytb Traceback (most recent call last): File "./manage.py", line 23, in <module> main() File "./manage.py", line 19, in main execute_from_command_line(sys.argv) File "/Users/rik24d/.local/share/virtualenvs/imake-aTBwPyYI/lib/python3.7/site-pa...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport fnmatch\n\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand, CommandError\nfrom django.core.management.color import color_style\nfrom django.template.loader import get_template\n\nfrom dja...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport fnmatch\n\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand, CommandError\nfrom django.core.management.color import color_style\nfrom django.template.loader import get_template\n\nfrom dja...
diff --git a/django_extensions/management/commands/validate_templates.py b/django_extensions/management/commands/validate_templates.py index a5e1286a9..11e2c7be5 100644 --- a/django_extensions/management/commands/validate_templates.py +++ b/django_extensions/management/commands/validate_templates.py @@ -54,7 +54,7 @@ d...
numpy__numpy-15189
TST: Add the first test using hypothesis This pull request adds the first test that uses hypothesis and hence brings in hypothesis as an additional test dependency. @mattip Could you take a look at this please?
[ { "content": "\"\"\"\nPytest configuration and fixtures for the Numpy test suite.\n\"\"\"\nimport os\n\nimport pytest\nimport numpy\n\nfrom numpy.core._multiarray_tests import get_fpu_mode\n\n\n_old_fpu_mode = None\n_collect_results = {}\n\n\ndef pytest_configure(config):\n config.addinivalue_line(\"markers\...
[ { "content": "\"\"\"\nPytest configuration and fixtures for the Numpy test suite.\n\"\"\"\nimport os\n\nimport hypothesis\nimport pytest\nimport numpy\n\nfrom numpy.core._multiarray_tests import get_fpu_mode\n\n\n_old_fpu_mode = None\n_collect_results = {}\n\n# See https://hypothesis.readthedocs.io/en/latest/se...
diff --git a/INSTALL.rst.txt b/INSTALL.rst.txt index 30f58fa6d31c..2b92267514f6 100644 --- a/INSTALL.rst.txt +++ b/INSTALL.rst.txt @@ -26,8 +26,13 @@ Building NumPy requires the following installed software: This is required for testing NumPy, but not for using it. +4) Hypothesis__ (optional) 5.3.0 or later + +...
qtile__qtile-2277
PyCharm popup loses focus on keypress I've been using qtile as my daily driver for a few weeks without major issues, but yesterday I noticed that the New file popup in PyCharm isn't working properly. When it is open and focused and I press any key, the main window regains focus while the popup is still shown. The follo...
[ { "content": "# Copyright (c) 2008, Aldo Cortesi. All rights reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the ri...
[ { "content": "# Copyright (c) 2008, Aldo Cortesi. All rights reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the ri...
diff --git a/libqtile/window.py b/libqtile/window.py index 917be1c7b6..85fda98a7f 100644 --- a/libqtile/window.py +++ b/libqtile/window.py @@ -1230,10 +1230,6 @@ def handle_PropertyNotify(self, e): # noqa: N802 # are set when the property is emitted # self.update_state() self.upd...
dask__dask-10380
CLI registration can fail with bad submodule If a package registers an entry point for the CLI but the entrypoint is broken or not importable the CLI cannot work at all. This is a little hard to create an MRE for but I seeing this with `dask-ctl` when updating `textual` to a more recent version. Ther error comes fro...
[ { "content": "from __future__ import annotations\n\nimport warnings\nfrom functools import reduce\n\nimport click\nimport importlib_metadata\nfrom yaml import dump\n\nimport dask\nfrom dask import __version__\n\nCONTEXT_SETTINGS = {\n \"help_option_names\": [\"-h\", \"--help\"],\n \"max_content_width\": 8...
[ { "content": "from __future__ import annotations\n\nimport warnings\nfrom functools import reduce\n\nimport click\nimport importlib_metadata\nfrom yaml import dump\n\nimport dask\nfrom dask import __version__\n\nCONTEXT_SETTINGS = {\n \"help_option_names\": [\"-h\", \"--help\"],\n \"max_content_width\": 8...
diff --git a/dask/cli.py b/dask/cli.py index b417292671d..5ec92e20903 100644 --- a/dask/cli.py +++ b/dask/cli.py @@ -94,7 +94,14 @@ def _register_command_ep(interface, entry_point): sub-group in `interface`. """ - command = entry_point.load() + try: + command = entry_point.load() + excep...
pytorch__vision-5213
Add tests for prototype utilities Perhaps we should add tests for `sequence_to_str`, so as to ensure that our error message are properly formatted ? Also nit but if we're going to have such a helper, we could handle the case `a, and b` -> `a and b` (i.e. remove the comma if len == 2 _Originally posted by @Nicolas...
[ { "content": "import collections.abc\nimport difflib\nimport enum\nimport functools\nimport inspect\nimport os\nimport os.path\nimport textwrap\nimport warnings\nfrom typing import Collection, Sequence, Callable, Any, Iterator, NoReturn, Mapping, TypeVar, Iterable, Tuple, cast\n\n__all__ = [\n \"StrEnum\",\n...
[ { "content": "import collections.abc\nimport difflib\nimport enum\nimport functools\nimport inspect\nimport os\nimport os.path\nimport textwrap\nimport warnings\nfrom typing import Collection, Sequence, Callable, Any, Iterator, NoReturn, Mapping, TypeVar, Iterable, Tuple, cast\n\n__all__ = [\n \"StrEnum\",\n...
diff --git a/test/test_prototype_utils.py b/test/test_prototype_utils.py new file mode 100644 index 00000000000..712debb607a --- /dev/null +++ b/test/test_prototype_utils.py @@ -0,0 +1,17 @@ +import pytest +from torchvision.prototype.utils._internal import sequence_to_str + + +@pytest.mark.parametrize( + ("seq", "se...
mlflow__mlflow-3621
[BUG] mlflow resets the global warning filter as a module import side-effect ### System information - **Have I written custom code (as opposed to using a stock example script provided in MLflow)**: no - **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: linux Ubuntu -- Python 3.7.3 - **MLflow installed f...
[ { "content": "# pylint: disable=wrong-import-position\n\"\"\"\nThe ``mlflow`` module provides a high-level \"fluent\" API for starting and managing MLflow runs.\nFor example:\n\n.. code:: python\n\n import mlflow\n\n mlflow.start_run()\n mlflow.log_param(\"my\", \"param\")\n mlflow.log_metric(\"scor...
[ { "content": "# pylint: disable=wrong-import-position\n\"\"\"\nThe ``mlflow`` module provides a high-level \"fluent\" API for starting and managing MLflow runs.\nFor example:\n\n.. code:: python\n\n import mlflow\n\n mlflow.start_run()\n mlflow.log_param(\"my\", \"param\")\n mlflow.log_metric(\"scor...
diff --git a/mlflow/__init__.py b/mlflow/__init__.py index f6b7b75fc2144..567d7d76ed4b1 100644 --- a/mlflow/__init__.py +++ b/mlflow/__init__.py @@ -41,8 +41,6 @@ warnings.filterwarnings("ignore", message="numpy.dtype size changed") # noqa: E402 warnings.filterwarnings("ignore", message="numpy.ufunc size changed")...
speechbrain__speechbrain-1034
missing `device=(params["device"])` in load_collected() running the experiment, i get an error complaining about device unavailable. due to this line: https://github.com/speechbrain/speechbrain/blob/e1162299e5fc6241829e41559217433de61c785d/recipes/AMI/Diarization/experiment.py#L560 if i change the line to: `params[...
[ { "content": "#!/usr/bin/python3\n\"\"\"This recipe implements diarization system using deep embedding extraction followed by spectral clustering.\n\nTo run this recipe:\n> python experiment.py hparams/<your_hyperparams_file.yaml>\n e.g., python experiment.py hparams/ecapa_tdnn.yaml\n\nCondition: Oracle VAD (sp...
[ { "content": "#!/usr/bin/python3\n\"\"\"This recipe implements diarization system using deep embedding extraction followed by spectral clustering.\n\nTo run this recipe:\n> python experiment.py hparams/<your_hyperparams_file.yaml>\n e.g., python experiment.py hparams/ecapa_tdnn.yaml\n\nCondition: Oracle VAD (sp...
diff --git a/recipes/AMI/Diarization/experiment.py b/recipes/AMI/Diarization/experiment.py index 2d1a98e378..f9e81658d9 100755 --- a/recipes/AMI/Diarization/experiment.py +++ b/recipes/AMI/Diarization/experiment.py @@ -557,7 +557,7 @@ def audio_pipeline(wav): # We download the pretrained Model from HuggingFace (or...
paperless-ngx__paperless-ngx-5275
[BUG] Consume PDF settings broken regaring environment variable config ### Description Seems like changes broke the previous environment settings compatibility of v2.2.1 to 2.3.0: Partial doker-compose yml: ```yml ############################################################################### # Paperless-speci...
[ { "content": "import os\nimport re\nimport subprocess\nimport tempfile\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING\nfrom typing import Optional\n\nfrom django.conf import settings\nfrom PIL import Image\n\nfrom documents.parsers import DocumentParser\nfrom documents.parsers import ParseError\nfr...
[ { "content": "import os\nimport re\nimport subprocess\nimport tempfile\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING\nfrom typing import Optional\n\nfrom django.conf import settings\nfrom PIL import Image\n\nfrom documents.parsers import DocumentParser\nfrom documents.parsers import ParseError\nfr...
diff --git a/docs/configuration.md b/docs/configuration.md index 30db90c859e..5ca6bf7010b 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -665,11 +665,13 @@ completely. Specifying 1 here will only use the first page. + The value must be greater than or equal to 1 to be used. + When co...
django-hijack__django-hijack-33
Django 1.8.x compatibility - Modify README - Modify setup.py - ...
[ { "content": "# -*- encoding: utf-8 -*-\n\"\"\"\nPython setup file for the hijack app.\n\nIn order to register your app at pypi.python.org, create an account at\npypi.python.org and login, then register your new app like so:\n\n python setup.py register\n\nIf your name is still free, you can now make your fi...
[ { "content": "# -*- encoding: utf-8 -*-\n\"\"\"\nPython setup file for the hijack app.\n\nIn order to register your app at pypi.python.org, create an account at\npypi.python.org and login, then register your new app like so:\n\n python setup.py register\n\nIf your name is still free, you can now make your fi...
diff --git a/.gitignore b/.gitignore index 09cece8c..a5799347 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ __pycache__/ # Distribution / packaging .Python env/ +env?*/ build/ develop-eggs/ dist/ diff --git a/README.md b/README.md index b444d3d7..061b95bc 100644 --- a/README.md +++ b/README.md @@ -23...
Flexget__Flexget-2349
Flexget+guessit=wrong quality.source ### Expected behaviour: Recognize release with "webrip" in title as webrip ### Actual behaviour: Release parsed as web-dl. Standalone guessit returns webrip. ### Steps to reproduce: - Step 1: Grab any webrip #### Config: ``` tasks: test_parser: mock: - {...
[ { "content": "from __future__ import absolute_import, division, unicode_literals\nfrom builtins import * # noqa pylint: disable=unused-import, redefined-builtin\nfrom future.utils import native\n\nimport logging\nimport re\nimport sys\nimport time\n\nfrom guessit.api import GuessItApi, GuessitException\nfrom g...
[ { "content": "from __future__ import absolute_import, division, unicode_literals\nfrom builtins import * # noqa pylint: disable=unused-import, redefined-builtin\nfrom future.utils import native\n\nimport logging\nimport re\nimport sys\nimport time\n\nfrom guessit.api import GuessItApi, GuessitException\nfrom g...
diff --git a/flexget/components/parsing/parsers/parser_guessit.py b/flexget/components/parsing/parsers/parser_guessit.py index 468ed9ce47..688a718a70 100644 --- a/flexget/components/parsing/parsers/parser_guessit.py +++ b/flexget/components/parsing/parsers/parser_guessit.py @@ -121,7 +121,7 @@ def _source(self, guessit...
googleapis__google-auth-library-python-846
JWT decoding depends upon deprecated function #### Environment details - OS: Debian 11 (bullseye) - Python version: 3.9.2 - pip version: 20.3.4 - `google-auth` version: 1.30 #### Steps to reproduce Decode a JWT token from Google Cloud Identity-Aware Proxy #### Error The following deprecation w...
[ { "content": "# Copyright 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
[ { "content": "# Copyright 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
diff --git a/google/auth/crypt/es256.py b/google/auth/crypt/es256.py index c6d617606..7465cd607 100644 --- a/google/auth/crypt/es256.py +++ b/google/auth/crypt/es256.py @@ -53,8 +53,8 @@ def verify(self, message, signature): sig_bytes = _helpers.to_bytes(signature) if len(sig_bytes) != 64: ...
PennyLaneAI__pennylane-3090
Documentation-friendly technical details Currently we have some compiled literature and some internal notes on the subject of quantum gradient circuits. It's early days and this is also a research project, so things are still a bit unorganized. Knowing that we are going to open source the software, let's begin to or...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\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# Unle...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\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# Unle...
diff --git a/pennylane/optimize/lie_algebra.py b/pennylane/optimize/lie_algebra.py index c747747be49..dfc0cbf56c3 100644 --- a/pennylane/optimize/lie_algebra.py +++ b/pennylane/optimize/lie_algebra.py @@ -288,7 +288,9 @@ def step_and_cost(self): lie_gradient, self.stepsize, self.trottersteps, self.exact ...
django-cms__django-filer-1055
Canonical URLs computation changed between 1.26 and 1.27 Hi, Commit 878cafe82a5d2482ca4b571f6bca8321b55261db changed the behavior of canonical URLs. `self.uploaded_at.strftime('%s')` does not equals `int((self.uploaded_at - datetime(1970, 1, 1, tzinfo=pytz.utc)).total_seconds())`. Thus, former permalinks to filer...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom __future__ import absolute_import, unicode_literals\n\nimport hashlib\nimport os\nfrom datetime import datetime\n\nfrom django.conf import settings\nfrom django.core import urlresolvers\nfrom django.core.files.base import ContentFile\nfrom django.db import models\nf...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom __future__ import absolute_import, unicode_literals\n\nimport hashlib\nimport os\nfrom datetime import datetime\n\nfrom django.conf import settings\nfrom django.core import urlresolvers\nfrom django.core.files.base import ContentFile\nfrom django.db import models\nf...
diff --git a/filer/models/filemodels.py b/filer/models/filemodels.py index e13451558..25a0a4025 100644 --- a/filer/models/filemodels.py +++ b/filer/models/filemodels.py @@ -281,9 +281,9 @@ def url(self): @property def canonical_time(self): if settings.USE_TZ: - return int((self.uploaded_at...
pwr-Solaar__Solaar-23
no battery status on M510 mouse
[ { "content": "#\n#\n#\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom logging import getLogger # , DEBUG as _DEBUG\n_log = getLogger('LUR').getChild('hidpp10')\ndel getLogger\n\nfrom .common import (strhex as _strhex,\n\t\t\t\t\tNamedInts as _NamedInts,\n\t\t\t\t\t...
[ { "content": "#\n#\n#\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom logging import getLogger # , DEBUG as _DEBUG\n_log = getLogger('LUR').getChild('hidpp10')\ndel getLogger\n\nfrom .common import (strhex as _strhex,\n\t\t\t\t\tNamedInts as _NamedInts,\n\t\t\t\t\t...
diff --git a/lib/logitech/unifying_receiver/hidpp10.py b/lib/logitech/unifying_receiver/hidpp10.py index 38b77356c0..a7af40e629 100644 --- a/lib/logitech/unifying_receiver/hidpp10.py +++ b/lib/logitech/unifying_receiver/hidpp10.py @@ -94,8 +94,16 @@ def get_battery(device): reply = get_register(device, 'battery_sta...
oobabooga__text-generation-webui-2382
extensions/openai KeyError: 'assistant' ### Describe the bug Starting after [https://github.com/oobabooga/text-generation-webui/pull/2291] Which I think it's a great improvement. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Reproduction Start server with exten...
[ { "content": "import base64\nimport json\nimport os\nimport time\nimport requests\nimport yaml\nfrom http.server import BaseHTTPRequestHandler, ThreadingHTTPServer\nfrom threading import Thread\n\nimport numpy as np\n\nfrom modules import shared\nfrom modules.text_generation import encode, generate_reply\n\npar...
[ { "content": "import base64\nimport json\nimport os\nimport time\nimport requests\nimport yaml\nfrom http.server import BaseHTTPRequestHandler, ThreadingHTTPServer\nfrom threading import Thread\n\nimport numpy as np\n\nfrom modules import shared\nfrom modules.text_generation import encode, generate_reply\n\npar...
diff --git a/extensions/openai/script.py b/extensions/openai/script.py index d41592a35a..b865fe7eae 100644 --- a/extensions/openai/script.py +++ b/extensions/openai/script.py @@ -259,7 +259,7 @@ def do_POST(self): role_formats = { 'user': 'user: {message}\n', - ...
vega__altair-390
Pin vega version in requirements To make sure things still work when ipyvega is updated (as it already has been)
[ { "content": "LONG_DESCRIPTION = \"\"\"\nAltair: A declarative statistical visualization library for Python.\n\nhttp://altair-viz.github.io/\n\nThis package provides a Python API for building statistical visualizations\nin a declarative manner. This API contains no actual visualization rendering\ncode, but inst...
[ { "content": "LONG_DESCRIPTION = \"\"\"\nAltair: A declarative statistical visualization library for Python.\n\nhttp://altair-viz.github.io/\n\nThis package provides a Python API for building statistical visualizations\nin a declarative manner. This API contains no actual visualization rendering\ncode, but inst...
diff --git a/altair/__init__.py b/altair/__init__.py index 9652c6d65..dd4b73280 100644 --- a/altair/__init__.py +++ b/altair/__init__.py @@ -1,3 +1,3 @@ -__version__ = '1.3.0.dev0' +__version__ = '1.2.1.dev0' from .v1 import * diff --git a/requirements.txt b/requirements.txt index 8ffc41756..3685260a3 100644 --- a/r...
chainer__chainer-819
link.LSTM.to_cpu (resp. to_gpu) does not move state variables to CPU (resp. GPU). When `link.LSTM` is move to CPU (resp. GPU), its state variables should also be moved to CPU(resp. GPU). But it does not. ``` In [39]: l = chainer.links.LSTM(10, 10) In [40]: l.xp Out[40]: <module 'numpy' from '/home/delta/.pyenv/versio...
[ { "content": "from chainer.functions.activation import lstm\nfrom chainer import link\nfrom chainer.links.connection import linear\nfrom chainer import variable\n\n\nclass LSTM(link.Chain):\n\n \"\"\"Fully-connected LSTM layer.\n\n This is a fully-connected LSTM layer as a chain. Unlike the\n :func:`~c...
[ { "content": "from chainer.functions.activation import lstm\nfrom chainer import link\nfrom chainer.links.connection import linear\nfrom chainer import variable\n\n\nclass LSTM(link.Chain):\n\n \"\"\"Fully-connected LSTM layer.\n\n This is a fully-connected LSTM layer as a chain. Unlike the\n :func:`~c...
diff --git a/chainer/links/connection/lstm.py b/chainer/links/connection/lstm.py index 0c7cddc3bad3..3951b8844f5b 100644 --- a/chainer/links/connection/lstm.py +++ b/chainer/links/connection/lstm.py @@ -35,6 +35,20 @@ def __init__(self, in_size, out_size): self.state_size = out_size self.reset_state()...
yt-project__yt-1493
Incorrect pixelization for some FLASH data **Bug summary** See http://lists.spacepope.org/pipermail/yt-users-spacepope.org/2017-May/008602.html and replies. For some reason the pixelization picks up "streaky", incorrect values along some grid boundaries. **Code for reproduction** ```python import yt ds = ...
[ { "content": "\"\"\"\nFLASH-specific data structures\n\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the file COPYING.txt, distr...
[ { "content": "\"\"\"\nFLASH-specific data structures\n\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the file COPYING.txt, distr...
diff --git a/tests/tests.yaml b/tests/tests.yaml index 7720bb86855..93fcc671afb 100644 --- a/tests/tests.yaml +++ b/tests/tests.yaml @@ -20,7 +20,7 @@ answer_tests: local_fits_001: - yt/frontends/fits/tests/test_outputs.py - local_flash_007: + local_flash_008: - yt/frontends/flash/tests/test_outputs.py...
nautobot__nautobot-2640
wrong link from circuit types to circuit <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reporting reproducible bugs. If you need assistance with Nautobot installation, or if you have a general question, please start a discussion instead: https://gi...
[ { "content": "import django_tables2 as tables\nfrom django_tables2.utils import Accessor\n\nfrom nautobot.extras.tables import StatusTableMixin\nfrom nautobot.tenancy.tables import TenantColumn\nfrom nautobot.utilities.tables import (\n BaseTable,\n ButtonsColumn,\n TagColumn,\n ToggleColumn,\n)\nfr...
[ { "content": "import django_tables2 as tables\nfrom django_tables2.utils import Accessor\n\nfrom nautobot.extras.tables import StatusTableMixin\nfrom nautobot.tenancy.tables import TenantColumn\nfrom nautobot.utilities.tables import (\n BaseTable,\n ButtonsColumn,\n TagColumn,\n ToggleColumn,\n)\nfr...
diff --git a/changes/2632.fixed b/changes/2632.fixed new file mode 100644 index 00000000000..7c440fd02a8 --- /dev/null +++ b/changes/2632.fixed @@ -0,0 +1 @@ +Fixed incorrect link from Circuit Type detail view to filtered Circuits table. diff --git a/nautobot/circuits/tables.py b/nautobot/circuits/tables.py index 3531f...
googleapis__python-bigquery-1889
Extend the OTEL traces to track bytes billed and bytes processed Extend OTEL traces to track bytes billed and bytes processed. Allowing developers to see how much data and cost was consumed as part of BigQueryJob trace
[ { "content": "# Copyright 2020 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 2020 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/opentelemetry_tracing.py b/google/cloud/bigquery/opentelemetry_tracing.py index e2a05e4d0..b5f6bf991 100644 --- a/google/cloud/bigquery/opentelemetry_tracing.py +++ b/google/cloud/bigquery/opentelemetry_tracing.py @@ -153,4 +153,12 @@ def _set_job_attributes(job_ref): if job_ref....
cloudtools__troposphere-1692
implement AWS::CodeStarConnections changes from May 14, 2020 update
[ { "content": "# Copyright (c) 2012-2020, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\n\nfrom . import AWSObject\n\n\nVALID_CONNECTION_PROVIDERTYPE = ('Bitbucket')\n\n\ndef validate_connection_providertype(connection_providertype):\n \"\"\"Validate ProviderType...
[ { "content": "# Copyright (c) 2012-2020, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\n\nfrom . import AWSObject, Tags\n\n\nVALID_CONNECTION_PROVIDERTYPE = ('Bitbucket')\n\n\ndef validate_connection_providertype(connection_providertype):\n \"\"\"Validate Provid...
diff --git a/troposphere/codestarconnections.py b/troposphere/codestarconnections.py index cfe08ebfa..e0b991ad0 100644 --- a/troposphere/codestarconnections.py +++ b/troposphere/codestarconnections.py @@ -4,7 +4,7 @@ # See LICENSE file for full license. -from . import AWSObject +from . import AWSObject, Tags ...
vyperlang__vyper-3338
unable to use vyper-serve 0.3.6 ### Version Information * vyper Version (output of `vyper --version`): 0.3.6 * OS: ubutu * Python Version 3.8 ### What's your issue about? unable to use the vyper-serve api endpoint, the call always fail with an error: `Unable to json serialize IRNode`
[ { "content": "#!/usr/bin/env python3\n\nimport argparse\nimport json\nimport sys\nfrom http.server import BaseHTTPRequestHandler, HTTPServer\nfrom socketserver import ThreadingMixIn\n\nimport vyper\nfrom vyper.codegen import ir_node\nfrom vyper.evm.opcodes import DEFAULT_EVM_VERSION\nfrom vyper.exceptions impor...
[ { "content": "#!/usr/bin/env python3\n\nimport argparse\nimport json\nimport sys\nfrom http.server import BaseHTTPRequestHandler, HTTPServer\nfrom socketserver import ThreadingMixIn\n\nimport vyper\nfrom vyper.codegen import ir_node\nfrom vyper.evm.opcodes import DEFAULT_EVM_VERSION\nfrom vyper.exceptions impor...
diff --git a/vyper/cli/vyper_serve.py b/vyper/cli/vyper_serve.py index 87fd3a3387..401e59e7ba 100755 --- a/vyper/cli/vyper_serve.py +++ b/vyper/cli/vyper_serve.py @@ -97,6 +97,7 @@ def _compile(self, data): evm_version=data.get("evm_version", DEFAULT_EVM_VERSION), )[""] out_di...
searxng__searxng-687
Disabling all engines in a category makes the bang search in general **How To Reproduce** 1. Disable all engines in one category in the user preferences (e.g. in the files category). 2. Search in the category using the bang syntax (e.g. `!files test`). **Expected behavior** No results (and maybe a message that al...
[ { "content": "from collections import defaultdict\nfrom typing import Dict, List, Optional, Tuple\nfrom searx.exceptions import SearxParameterException\nfrom searx.webutils import VALID_LANGUAGE_CODE\nfrom searx.query import RawTextQuery\nfrom searx.engines import categories, engines\nfrom searx.search import S...
[ { "content": "from collections import defaultdict\nfrom typing import Dict, List, Optional, Tuple\nfrom searx.exceptions import SearxParameterException\nfrom searx.webutils import VALID_LANGUAGE_CODE\nfrom searx.query import RawTextQuery\nfrom searx.engines import categories, engines\nfrom searx.search import S...
diff --git a/searx/webadapter.py b/searx/webadapter.py index 4fd18cee98d..185cb568ed4 100644 --- a/searx/webadapter.py +++ b/searx/webadapter.py @@ -236,7 +236,7 @@ def get_search_query_from_webapp( external_bang = raw_text_query.external_bang engine_data = parse_engine_data(form) - if not is_locked('cat...
codespell-project__codespell-2541
[2.2.2 regression] Codespell tries and fails to decode and fix `.git\objects` files Using Codespell 2.2.2 on Python 3.10 in a Git repository, Codespell errors with an permission error trying to modify Git objects: ``` PermissionError: [Errno 13] Permission denied: '.\\.git\\objects\\28\\719cdd2c5741cadfa2eede24b62424...
[ { "content": "#\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; version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARR...
[ { "content": "#\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; version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARR...
diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index 49a62a3996..d64cc733b8 100644 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py @@ -1171,7 +1171,12 @@ def main(*args: str) -> int: ) # skip (relative) directories - dirs...
xonsh__xonsh-825
CTRL-C during config wizard results in loss of input to terminal Running bash in a Terminator window, when I first started xonsh, I was asked if I wanted to run the config wizard. I chose yes, but then eventually decided I didn't want to finish, so I hit CTRL-C. This eventually got me back to bash, but when I pressed...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"The main xonsh script.\"\"\"\nimport os\nimport sys\nimport enum\nimport builtins\nfrom argparse import ArgumentParser, ArgumentTypeError\nfrom contextlib import contextmanager\n\ntry:\n from setproctitle import setproctitle\nexcept ImportError:\n setproctitle ...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"The main xonsh script.\"\"\"\nimport os\nimport sys\nimport enum\nimport builtins\nfrom argparse import ArgumentParser, ArgumentTypeError\nfrom contextlib import contextmanager\n\ntry:\n from setproctitle import setproctitle\nexcept ImportError:\n setproctitle ...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 532d54e5a8..9d81a5d657 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -63,6 +63,7 @@ Current Developments * Fixed environment variables from os.environ not beeing loaded when a running a script * Fixed bug that prevented `source-alias` from working. +* Now able t...
networkx__networkx-2571
fixing a subset of nodes in spring_layout The following layout works reasonably well, ``` import networkx as nx G = nx.Graph() G.add_edges_from([(0,1),(1,2),(2,0),(2,3)]) pos = nx.spring_layout(G) print(pos) ``` However, the results from run to run are not easily reproduced because the initialization is rando...
[ { "content": "# Copyright (C) 2004-2017 by\n# Aric Hagberg <hagberg@lanl.gov>\n# Dan Schult <dschult@colgate.edu>\n# Pieter Swart <swart@lanl.gov>\n# Richard Penney <rwpenney@users.sourceforge.net>\n# All rights reserved.\n# BSD license.\n#\n# Authors: Aric Hagberg <aric.hagberg@gmail.com>,...
[ { "content": "# Copyright (C) 2004-2017 by\n# Aric Hagberg <hagberg@lanl.gov>\n# Dan Schult <dschult@colgate.edu>\n# Pieter Swart <swart@lanl.gov>\n# Richard Penney <rwpenney@users.sourceforge.net>\n# All rights reserved.\n# BSD license.\n#\n# Authors: Aric Hagberg <aric.hagberg@gmail.com>,...
diff --git a/networkx/drawing/layout.py b/networkx/drawing/layout.py index 5ba23d143b6..a930d7abaa3 100644 --- a/networkx/drawing/layout.py +++ b/networkx/drawing/layout.py @@ -298,6 +298,8 @@ def fruchterman_reingold_layout(G, k=None, if pos is not None: # Determine size of existing domain to adjust init...
coala__coala-591
run_tests --html doesn't work in ubuntu In ubuntu and debian systems, coverage isn't installed in `/usr/bin/coverage3` ... rather, it is installed as `/usr/bin/python3-coverage`. Hence, `--html` flag doesn't work. The corresponding launchpad bug is [here](https://bugs.launchpad.net/horizon/+bug/1241332) It would be be...
[ { "content": "import inspect\nimport os\n\nfrom coalib.misc.i18n import _\n\n\nclass StringConstants:\n THIS_IS_A_BUG = _(\"This is a bug. We are sorry for the inconvenience. \"\n \"Please contact the developers for assistance.\")\n\n OBJ_NOT_ACCESSIBLE = _(\"{} is not accessible and ...
[ { "content": "import inspect\nimport os\nimport sys\n\nfrom coalib.misc.i18n import _\n\n\nclass StringConstants:\n THIS_IS_A_BUG = _(\"This is a bug. We are sorry for the inconvenience. \"\n \"Please contact the developers for assistance.\")\n\n OBJ_NOT_ACCESSIBLE = _(\"{} is not acc...
diff --git a/coalib/misc/StringConstants.py b/coalib/misc/StringConstants.py index e3985f184a..b842441693 100644 --- a/coalib/misc/StringConstants.py +++ b/coalib/misc/StringConstants.py @@ -1,5 +1,6 @@ import inspect import os +import sys from coalib.misc.i18n import _ @@ -53,3 +54,8 @@ class StringConstants: ...
kivy__kivy-1178
filechooser within a scrollview responds to outside touches. When running the following code: ``` from kivy.uix.boxlayout import BoxLayout from kivy.app import App from kivy.lang import Builder Builder.load_string(''' <X@BoxLayout>: orientation: 'vertical' ScrollView: FileChooserListView Button '...
[ { "content": "'''\nFileChooser\n===========\n\n.. versionadded:: 1.0.5\n\n.. warning::\n\n This is experimental and subject to change as long as this warning notice\n is present.\n\n.. versionchanged:: 1.2.0\n In chooser template, the `controller` is not a direct reference anymore,\n but a weak-refe...
[ { "content": "'''\nFileChooser\n===========\n\n.. versionadded:: 1.0.5\n\n.. warning::\n\n This is experimental and subject to change as long as this warning notice\n is present.\n\n.. versionchanged:: 1.2.0\n In chooser template, the `controller` is not a direct reference anymore,\n but a weak-refe...
diff --git a/kivy/data/style.kv b/kivy/data/style.kv index 3236cabbee..78353b7518 100644 --- a/kivy/data/style.kv +++ b/kivy/data/style.kv @@ -289,7 +289,7 @@ BoxLayout: pos: root.pos Label: - id: filename + id: filename text_size: self.width, None halign: '...
boto__botocore-1075
Timezone parsing error in develop branch I'm running on Ubuntu 16.04 LTS. I have python I have pulled and checked out develop branch at commit e079c0db2e2fc28684c4f6a87298d0cf592e6e29 I installed the dependencies in requirements.txt (see attached file) [pip-list.txt](https://github.com/boto/botocore/files/578...
[ { "content": "# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0/\n...
[ { "content": "# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0/\n...
diff --git a/botocore/utils.py b/botocore/utils.py index 0f09568eae..bb32a9b8b4 100644 --- a/botocore/utils.py +++ b/botocore/utils.py @@ -331,7 +331,10 @@ def parse_timestamp(value): except (TypeError, ValueError): pass try: - return dateutil.parser.parse(value) + # In certain ...
svthalia__concrexit-2858
Registration birth date can be later than the current date ### Describe the bug It is possible when registering to set your birthdate to after the current day. Still doing this does results in the user not being able to update any of their account information. ### How to reproduce Simply putting in a date that has...
[ { "content": "\"\"\"The models defined by the registrations package.\"\"\"\nimport uuid\n\nfrom django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.core import validators\nfrom django.core.exceptions import ObjectDoesNotExist, ValidationError\nfrom django.core.validators imp...
[ { "content": "\"\"\"The models defined by the registrations package.\"\"\"\nimport uuid\n\nfrom django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.core import validators\nfrom django.core.exceptions import ObjectDoesNotExist, ValidationError\nfrom django.core.validators imp...
diff --git a/website/registrations/models.py b/website/registrations/models.py index 0d36591bd..9ea38c89a 100644 --- a/website/registrations/models.py +++ b/website/registrations/models.py @@ -415,6 +415,9 @@ def clean(self): if self.programme is None and self.membership_type != Membership.BENEFACTOR: ...
pallets__werkzeug-2591
Reloader is breaking the execution if using Poetry scripts The Flask reloader is apparently using the executed command instead of the actual Python package. When I try running with Poetry scripts, it throws an error (only if the reloader is enabled) To replicate the behavior you can create a new Poetry Python packag...
[ { "content": "import fnmatch\nimport os\nimport subprocess\nimport sys\nimport threading\nimport time\nimport typing as t\nfrom itertools import chain\nfrom pathlib import PurePath\n\nfrom ._internal import _log\n\n# The various system prefixes where imports are found. Base values are\n# different when running ...
[ { "content": "import fnmatch\nimport os\nimport subprocess\nimport sys\nimport threading\nimport time\nimport typing as t\nfrom itertools import chain\nfrom pathlib import PurePath\n\nfrom ._internal import _log\n\n# The various system prefixes where imports are found. Base values are\n# different when running ...
diff --git a/CHANGES.rst b/CHANGES.rst index 109f7ef0c..41d957e59 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,6 +12,9 @@ Unreleased :issue:`2550` - A URL converter's ``part_isolating`` defaults to ``False`` if its ``regex`` contains a ``/``. :issue:`2582` +- The reloader can pick up arguments to ``...
scrapy__scrapy-4239
mail attachs tcmime*** ```shell $scrapy shell 2019-12-13 20:21:33 [scrapy.utils.log] INFO: Scrapy 1.8.0 started (bot: Book) 2019-12-13 20:21:33 [scrapy.utils.log] INFO: Versions: lxml 4.4.1.0, libxml2 2.9.4, cssselect 1.1.0, parsel 1.5.2, w3lib 1.21.0, Twisted 19.10.0, Python 3.8.0 (v3.8.0:fa919fdf25, Oct 14 2019, 1...
[ { "content": "\"\"\"\nMail sending helpers\n\nSee documentation in docs/topics/email.rst\n\"\"\"\nimport logging\nfrom email import encoders as Encoders\nfrom email.mime.base import MIMEBase\nfrom email.mime.multipart import MIMEMultipart\nfrom email.mime.nonmultipart import MIMENonMultipart\nfrom email.mime.te...
[ { "content": "\"\"\"\nMail sending helpers\n\nSee documentation in docs/topics/email.rst\n\"\"\"\nimport logging\nfrom email import encoders as Encoders\nfrom email.mime.base import MIMEBase\nfrom email.mime.multipart import MIMEMultipart\nfrom email.mime.nonmultipart import MIMENonMultipart\nfrom email.mime.te...
diff --git a/scrapy/mail.py b/scrapy/mail.py index 891bb5e09c2..9655b811493 100644 --- a/scrapy/mail.py +++ b/scrapy/mail.py @@ -73,8 +73,7 @@ def send(self, to, subject, body, cc=None, attachs=(), mimetype='text/plain', ch part = MIMEBase(*mimetype.split('/')) part.set_payload(f.read(...
edgedb__edgedb-1946
ISE when LIMIT/OFFSET correlated with query ``` sully> SELECT Object LIMIT len(<str>.id); ERROR: InternalServerError: argument of LIMIT must not contain variables ``` ``` sully> SELECT Object OFFSET len(<str>.id); ERROR: InternalServerError: argument of OFFSET must not contain variables ``` Rejecting these ...
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\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...
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\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...
diff --git a/edb/edgeql/compiler/clauses.py b/edb/edgeql/compiler/clauses.py index 4b40a5607d2..0e257fad333 100644 --- a/edb/edgeql/compiler/clauses.py +++ b/edb/edgeql/compiler/clauses.py @@ -125,6 +125,10 @@ def compile_limit_offset_clause( ir_set = None else: with ctx.newscope(fenced=True) as ...
mars-project__mars-1502
[BUG]Cannot pass zero-dimensional tensor as both arguments into `mt.arctan2` ## Describe the bug When I use the `mt.arctan2`, if i pass zero-dimensional tensors as both arguments, an error will be raised. If any argument is not zero-dimensional, the codes will work. ## To Reproduce ``` vx = mt.dot((1,0,0),(0,1,0)...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright 1999-2020 Alibaba Group Holding 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://...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright 1999-2020 Alibaba Group Holding 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://...
diff --git a/mars/tensor/arithmetic/arctan2.py b/mars/tensor/arithmetic/arctan2.py index 35f6b761c5..321cf89cef 100644 --- a/mars/tensor/arithmetic/arctan2.py +++ b/mars/tensor/arithmetic/arctan2.py @@ -29,11 +29,12 @@ class TensorArctan2(TensorBinOp): @classmethod def _is_sparse(cls, x1, x2): - # x2...
liqd__a4-opin-684
Change sorting order on organization page We currently sort projects on the organization pages from oldest to newest (date of creation). We should reverse the order, so that new projects are shown first.
[ { "content": "from django.views import generic\n\nfrom . import models\n\n\nclass OrganisationDetailView(generic.DetailView):\n model = models.Organisation\n\n def visible_projects(self):\n if self.request.user in self.object.initiators.all():\n return self.object.project_set.all()\n ...
[ { "content": "from django.views import generic\n\nfrom . import models\n\n\nclass OrganisationDetailView(generic.DetailView):\n model = models.Organisation\n\n def visible_projects(self):\n projects = self.object.project_set.order_by('-created')\n if self.request.user in self.object.initiato...
diff --git a/euth/organisations/views.py b/euth/organisations/views.py index b49bd7894..fc957e60d 100644 --- a/euth/organisations/views.py +++ b/euth/organisations/views.py @@ -7,10 +7,11 @@ class OrganisationDetailView(generic.DetailView): model = models.Organisation def visible_projects(self): + pr...
mkdocs__mkdocs-955
Eliminate duplicate warnings A few recent updates have added warnings for deprecated behavior (#921 & #947). However, the same warnings are issued once for every single page. The more pages in a project, the more warnings are issued. Each warning only needs to be printed to the console once per build. [This](http://s...
[ { "content": "# coding: utf-8\n\nfrom __future__ import unicode_literals\nfrom datetime import datetime\nfrom calendar import timegm\nimport io\nimport logging\nimport os\n\nfrom jinja2.exceptions import TemplateNotFound\nimport jinja2\nimport json\n\nfrom mkdocs import nav, search, utils\nfrom mkdocs.utils imp...
[ { "content": "# coding: utf-8\n\nfrom __future__ import unicode_literals\nfrom datetime import datetime\nfrom calendar import timegm\nimport io\nimport logging\nimport os\n\nfrom jinja2.exceptions import TemplateNotFound\nimport jinja2\nimport json\n\nfrom mkdocs import nav, search, utils\nfrom mkdocs.utils imp...
diff --git a/mkdocs/commands/build.py b/mkdocs/commands/build.py index 7828da4f71..a4ce837c0c 100644 --- a/mkdocs/commands/build.py +++ b/mkdocs/commands/build.py @@ -16,7 +16,20 @@ from mkdocs.relative_path_ext import RelativePathExtension import mkdocs + +class DuplicateFilter(object): + ''' Avoid logging dupl...
psychopy__psychopy-3457
Windows seg fault when defaultView set to Runner
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2021 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General Public License (GPL).\n\nimport wx\nimport requests\n\nfrom psychopy import logging\nf...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2021 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General Public License (GPL).\n\nimport wx\nimport requests\n\nfrom psychopy import logging\nf...
diff --git a/psychopy/app/pavlovia_ui/menu.py b/psychopy/app/pavlovia_ui/menu.py index a7fb0b8232..8f2a4e2fab 100644 --- a/psychopy/app/pavlovia_ui/menu.py +++ b/psychopy/app/pavlovia_ui/menu.py @@ -82,9 +82,9 @@ def onSetUser(self, event): self.setUser(user) def setUser(self, user=None): - - if ...
getnikola__nikola-3117
remove monkey-patched DoitCommand.help Nikola has a monkey-patched version of DoitCommand.help method [1]. This should not be necessary anymore since doit 0.31 after see https://github.com/pydoit/doit/issues/184 I am doing some changes (WIP) on the help mechanism https://github.com/pydoit/doit/issues/261. With th...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2018 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2018 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
diff --git a/nikola/plugin_categories.py b/nikola/plugin_categories.py index 07be8caaba..5d090b6017 100644 --- a/nikola/plugin_categories.py +++ b/nikola/plugin_categories.py @@ -30,6 +30,7 @@ import os import sys +import doit import logbook from doit.cmd_base import Command as DoitCommand from yapsy.IPlugin imp...
bokeh__bokeh-6159
For Interactive Legends, a note about `muted_color` would be helpful For the [Interactive Legend guide](https://github.com/bokeh/bokeh/blob/d8fcffa1c472bf641517ef81698bb6d057cbd30f/sphinx/source/docs/user_guide/interaction/legends.rst#id7), in addition to the note about `muted_alpha`, it would be helpful to also demons...
[ { "content": "import pandas as pd\n\nfrom bokeh.palettes import Spectral4\nfrom bokeh.plotting import figure, output_file, show\n\np = figure(plot_width=800, plot_height=250, x_axis_type=\"datetime\")\np.title.text = 'Click on legend entries to mute the corresponding lines'\n\nfor name, color in zip(['AAPL', 'I...
[ { "content": "import pandas as pd\n\nfrom bokeh.palettes import Spectral4\nfrom bokeh.plotting import figure, output_file, show\n\np = figure(plot_width=800, plot_height=250, x_axis_type=\"datetime\")\np.title.text = 'Click on legend entries to mute the corresponding lines'\n\nfor name, color in zip(['AAPL', 'I...
diff --git a/sphinx/source/docs/user_guide/examples/interaction_legend_mute.py b/sphinx/source/docs/user_guide/examples/interaction_legend_mute.py index d5181446b4b..04c3d02b1b5 100644 --- a/sphinx/source/docs/user_guide/examples/interaction_legend_mute.py +++ b/sphinx/source/docs/user_guide/examples/interaction_legend...
adamchainz__django-perf-rec-545
Current django_perf_rec implementation is not compatible with the usage of named "key" parameter to set_cache function ### Python Version 3.9.16 ### Django Version 3.2.16 ### Package Version 4.21.0 ### Description The django.core.cache definition of set_cache allows the naming of all parameters. `...
[ { "content": "from __future__ import annotations\n\nimport inspect\nimport re\nimport traceback\nfrom collections.abc import Collection\nfrom functools import wraps\nfrom types import MethodType\nfrom types import TracebackType\nfrom typing import Any\nfrom typing import Callable\nfrom typing import cast\nfrom ...
[ { "content": "from __future__ import annotations\n\nimport inspect\nimport re\nimport traceback\nfrom collections.abc import Collection\nfrom functools import wraps\nfrom types import MethodType\nfrom types import TracebackType\nfrom typing import Any\nfrom typing import Callable\nfrom typing import cast\nfrom ...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index defb1c32..d192da9b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,10 @@ Changelog ========= +* Avoid crashing when recording cache function calls that pass ``key`` or ``keys`` as a keyword argument, like ``cache.set(key="abc", value="def")``. + + Thanks t...
NVIDIA__NVFlare-75
CIFAR10 run_fl.py misses license header https://github.com/NVIDIA/NVFlare/blob/d784e7be9742b4d1bcfa0f389ea063fec984fe50/examples/cifar10/run_fl.py#L1
[ { "content": "import argparse\nimport os\nimport time\n\nfrom nvflare.fuel.hci.client.fl_admin_api_runner import FLAdminAPIRunner\n\n\ndef main():\n parser = argparse.ArgumentParser()\n parser.add_argument(\"--run_number\", type=int, default=100, help=\"FL run number to start at.\")\n parser.add_argume...
[ { "content": "# Copyright (c) 2021, NVIDIA 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 require...
diff --git a/examples/cifar10/run_fl.py b/examples/cifar10/run_fl.py index bdead82bd3..6f2be3ed9c 100644 --- a/examples/cifar10/run_fl.py +++ b/examples/cifar10/run_fl.py @@ -1,3 +1,17 @@ +# Copyright (c) 2021, NVIDIA CORPORATION. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use ...