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
huggingface__transformers-9427
Improve coverage of the documentation Currently, some public classes are not documented anywhere because we didn't create the corresponding doc pages. Those missing pages are: - Benchmark classes - Bert Japanese - Data collators If someone feels like working on one of those, please tag yourself with a comment o...
[ { "content": "# coding=utf-8\n# Copyright 2020 The HuggingFace Inc. team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
[ { "content": "# coding=utf-8\n# Copyright 2020 The HuggingFace Inc. team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
diff --git a/docs/source/index.rst b/docs/source/index.rst index 43b73efcb446..35b801278a61 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -388,6 +388,7 @@ TensorFlow and/or Flax. model_doc/gpt model_doc/gpt2 model_doc/pegasus + model_doc/phobert model_doc/prophetnet model...
mozilla__bugbug-3334
Use information on how a bug is filed as a feature This could be especially useful for the Spam model. https://bugzilla.mozilla.org/show_bug.cgi?id=1565403
[ { "content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport xgboost\nfrom imblearn.over_sampling import BorderlineSMOTE\nf...
[ { "content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport xgboost\nfrom imblearn.over_sampling import BorderlineSMOTE\nf...
diff --git a/bugbug/models/spambug.py b/bugbug/models/spambug.py index f37362028e..9c10a614b3 100644 --- a/bugbug/models/spambug.py +++ b/bugbug/models/spambug.py @@ -41,6 +41,7 @@ def __init__(self, lemmatization=False): bug_features.has_attachment(), bug_features.platform(), bug...
sopel-irc__sopel-1325
[Bugzilla] Error calling shutdown method for module bugzilla:None Noticed this in my logs. Bugzilla shutdown throwing none. On Sopel 6.5.3, Python 3.5.3. ``` Ping timeout reached after 120 seconds, closing connection Calling shutdown for 2 modules. calling reddit.shutdown calling bugzilla.shutdown Error calling...
[ { "content": "# coding=utf-8\n\"\"\"Bugzilla issue reporting module\n\nCopyright 2013-2015, Embolalia, embolalia.com\nLicensed under the Eiffel Forum License 2.\n\"\"\"\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport re\n\nimport xmltodict\n\nfrom sopel import web, ...
[ { "content": "# coding=utf-8\n\"\"\"Bugzilla issue reporting module\n\nCopyright 2013-2015, Embolalia, embolalia.com\nLicensed under the Eiffel Forum License 2.\n\"\"\"\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport re\n\nimport xmltodict\n\nfrom sopel import web, ...
diff --git a/sopel/modules/bugzilla.py b/sopel/modules/bugzilla.py index c87ff08e09..bb054bc68b 100644 --- a/sopel/modules/bugzilla.py +++ b/sopel/modules/bugzilla.py @@ -52,7 +52,12 @@ def setup(bot): def shutdown(bot): - del bot.memory['url_callbacks'][regex] + try: + del bot.memory['url_callbacks']...
beetbox__beets-3774
FetchArt crashes with TypeError for particular album I've imported hundreds of albums just fine using `fetchart` in `auto` mode, and then this one came along and crashed the import. The issue in short: ``` File "/usr/local/lib/python3.7/dist-packages/beetsplug/fetchart.py", line 416, in get self.API_ALBUM...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
diff --git a/beets/dbcore/types.py b/beets/dbcore/types.py index 5aa2b98127..c85eb1a50f 100644 --- a/beets/dbcore/types.py +++ b/beets/dbcore/types.py @@ -207,6 +207,12 @@ class String(Type): sql = u'TEXT' query = query.SubstringQuery + def normalize(self, value): + if value is None: + ...
zenml-io__zenml-2271
Update `sklearn` Integration to Support Versions >1.3.0 and Resolve MLflow Autologging Issues ## Open Source Contributors Welcomed! Please comment below if you would like to work on this issue! ### Contact Details [Optional] support@zenml.io ### What happened? The current ZenML Sklearn integration is restric...
[ { "content": "# Copyright (c) ZenML GmbH 2021. 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# https://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# Copyright (c) ZenML GmbH 2021. 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# https://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/docs/book/user-guide/starter-guide/create-an-ml-pipeline.md b/docs/book/user-guide/starter-guide/create-an-ml-pipeline.md index 2b898d45565..882c5334f36 100644 --- a/docs/book/user-guide/starter-guide/create-an-ml-pipeline.md +++ b/docs/book/user-guide/starter-guide/create-an-ml-pipeline.md @@ -127,7 +127,...
conda__conda-5124
export toposort for conda-build export toposort for conda-build
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom functools import partial\nfrom logging import getLogger\nfrom warnings import warn\n\nlog = getLogger(__name__)\n\nfrom . import CondaError # NOQA\nCondaError = CondaError\n\nfrom ....
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom functools import partial\nfrom logging import getLogger\nfrom warnings import warn\n\nlog = getLogger(__name__)\n\nfrom . import CondaError # NOQA\nCondaError = CondaError\n\nfrom ....
diff --git a/conda/exports.py b/conda/exports.py index 803ec103916..c14f048ec90 100644 --- a/conda/exports.py +++ b/conda/exports.py @@ -30,6 +30,9 @@ from .gateways.connection import CondaSession # NOQA CondaSession = CondaSession +from .common.toposort import _toposort +_toposort = _toposort + from .gateways.di...
pyodide__pyodide-717
Calling yaml.load() without Loader=... is deprecated For each built packages there is now the following deprecation warning , ``` pyodide_build/common.py:27: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details...
[ { "content": "from pathlib import Path\nfrom typing import Optional, Set\n\n\nROOTDIR = Path(__file__).parents[1].resolve() / \"tools\"\nHOSTPYTHON = ROOTDIR / \"..\" / \"cpython\" / \"build\" / \"3.8.2\" / \"host\"\nTARGETPYTHON = ROOTDIR / \"..\" / \"cpython\" / \"installs\" / \"python-3.8.2\"\nDEFAULTCFLAGS ...
[ { "content": "from pathlib import Path\nfrom typing import Optional, Set\n\n\nROOTDIR = Path(__file__).parents[1].resolve() / \"tools\"\nHOSTPYTHON = ROOTDIR / \"..\" / \"cpython\" / \"build\" / \"3.8.2\" / \"host\"\nTARGETPYTHON = ROOTDIR / \"..\" / \"cpython\" / \"installs\" / \"python-3.8.2\"\nDEFAULTCFLAGS ...
diff --git a/pyodide_build/common.py b/pyodide_build/common.py index 7d6752c94ac..de955a32beb 100644 --- a/pyodide_build/common.py +++ b/pyodide_build/common.py @@ -33,7 +33,7 @@ def parse_package(package): # TODO: Validate against a schema with open(package) as fd: - return yaml.load(fd) + re...
pretix__pretix-1777
log level I'm probably missing something, so please bear with me. I followed the "small-scale manual" deployment guide. `python -m pretix runperiodic` logs celery success messages at the info level: `INFO 2019-01-03 20:49:47,479 celery.app.trace trace Task pretix.base.services.quotas.refresh_quota_caches[817c9...
[ { "content": "import configparser\nimport logging\nimport os\nimport sys\nfrom urllib.parse import urlparse\n\nimport django.conf.locale\nfrom django.utils.crypto import get_random_string\nfrom kombu import Queue\nfrom pkg_resources import iter_entry_points\nfrom pycountry import currencies\n\nfrom . import __v...
[ { "content": "import configparser\nimport logging\nimport os\nimport sys\nfrom urllib.parse import urlparse\n\nimport django.conf.locale\nfrom django.utils.crypto import get_random_string\nfrom kombu import Queue\nfrom pkg_resources import iter_entry_points\nfrom pycountry import currencies\n\nfrom . import __v...
diff --git a/doc/admin/config.rst b/doc/admin/config.rst index 7cf43b540d4..c6de356efe5 100644 --- a/doc/admin/config.rst +++ b/doc/admin/config.rst @@ -97,6 +97,9 @@ Example:: ``csp_log`` Log violations of the Content Security Policy (CSP). Defaults to ``on``. + +``loglevel`` + Set console and file logl...
ivy-llc__ivy-22920
eigvals
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.numpy.func_wrapper import (\n to_ivy_arrays_and_back,\n from_zero_dim_arrays_to_scalar,\n)\n\n\n@to_ivy_arrays_and_back\ndef eig(a):\n return ivy.eig(a)\n\n\n@to_ivy_arrays_and_back\n@from_zero_dim_arrays_to_scalar\ndef eigh(a, /, UPLO=\"...
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.numpy.func_wrapper import (\n to_ivy_arrays_and_back,\n from_zero_dim_arrays_to_scalar,\n)\n\n\n@to_ivy_arrays_and_back\ndef eig(a):\n return ivy.eig(a)\n\n\n@to_ivy_arrays_and_back\n@from_zero_dim_arrays_to_scalar\ndef eigh(a, /, UPLO=\"...
diff --git a/ivy/functional/frontends/numpy/linalg/matrix_eigenvalues.py b/ivy/functional/frontends/numpy/linalg/matrix_eigenvalues.py index d0b98b00264c7..6c3a6e61f1265 100644 --- a/ivy/functional/frontends/numpy/linalg/matrix_eigenvalues.py +++ b/ivy/functional/frontends/numpy/linalg/matrix_eigenvalues.py @@ -17,6 +1...
meltano__meltano-6609
bug: `meltano state list` with pattern - no such option ### Meltano Version 2.3.0 ### Python Version 3.8 ### Bug scope CLI (options, error messages, logging, etc.) ### Operating System Mac ### Description It looks like the `--pattern` argument thats in the docs https://docs.meltano.com/refere...
[ { "content": "\"\"\"State management in CLI.\"\"\"\nfrom __future__ import annotations\n\nimport json\nimport re\nfrom datetime import datetime as dt\nfrom functools import partial, reduce, wraps\nfrom operator import xor\n\nimport click\nimport structlog\n\nfrom meltano.cli.params import pass_project\nfrom mel...
[ { "content": "\"\"\"State management in CLI.\"\"\"\nfrom __future__ import annotations\n\nimport json\nimport re\nfrom datetime import datetime as dt\nfrom functools import partial, reduce, wraps\nfrom operator import xor\n\nimport click\nimport structlog\n\nfrom meltano.cli.params import pass_project\nfrom mel...
diff --git a/src/meltano/cli/state.py b/src/meltano/cli/state.py index 04e22bf147..30e7a7fcd1 100644 --- a/src/meltano/cli/state.py +++ b/src/meltano/cli/state.py @@ -111,7 +111,7 @@ def meltano_state(project: Project, ctx: click.Context): @meltano_state.command(cls=InstrumentedCmd, name="list") -@click.argument("...
pypa__setuptools-3307
[Docs] Clarify that "Keywords" page is an API reference for `setuptools.setup` ### Summary https://setuptools.readthedocs.io/en/latest/references/keywords.html has no indicators what those keywords are for. It also doesn't show up if you search for "setuptools.setup" in the sidebar search, and is generally innacces...
[ { "content": "extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']\n\nmaster_doc = \"index\"\n\nlink_files = {\n '../CHANGES.rst': dict(\n using=dict(\n BB='https://bitbucket.org',\n GH='https://github.com',\n ),\n replace=[\n dict...
[ { "content": "extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']\n\nmaster_doc = \"index\"\n\nlink_files = {\n '../CHANGES.rst': dict(\n using=dict(\n BB='https://bitbucket.org',\n GH='https://github.com',\n ),\n replace=[\n dict...
diff --git a/changelog.d/3307.doc.rst b/changelog.d/3307.doc.rst new file mode 100644 index 0000000000..cdab873785 --- /dev/null +++ b/changelog.d/3307.doc.rst @@ -0,0 +1,4 @@ +Added introduction to references/keywords +Added deprecation tags to test kwargs +Moved userguide/keywords to deprecated section +Clarified in ...
iterative__dvc-1757
typo in docs super minor typo: $dvc repro --help -c CWD, --cwd CWD Directory within your repo to **reroduce** from. dvc --version 0.30.1
[ { "content": "from __future__ import unicode_literals\n\nimport os\n\nimport dvc.logger as logger\nfrom dvc.command.base import CmdBase\nfrom dvc.command.status import CmdDataStatus\nfrom dvc.exceptions import DvcException\n\n\nclass CmdRepro(CmdBase):\n def run(self):\n recursive = not self.args.sing...
[ { "content": "from __future__ import unicode_literals\n\nimport os\n\nimport dvc.logger as logger\nfrom dvc.command.base import CmdBase\nfrom dvc.command.status import CmdDataStatus\nfrom dvc.exceptions import DvcException\n\n\nclass CmdRepro(CmdBase):\n def run(self):\n recursive = not self.args.sing...
diff --git a/dvc/command/repro.py b/dvc/command/repro.py index 05b82e879f..8e582196fa 100644 --- a/dvc/command/repro.py +++ b/dvc/command/repro.py @@ -80,7 +80,7 @@ def add_parser(subparsers, parent_parser): "-c", "--cwd", default=os.path.curdir, - help="Directory within your repo to r...
localstack__localstack-4741
question: ENABLE_CONFIG_UPDATES for docker image ### Is there an existing issue for this? - [x] I have searched the existing issues and read the documentation ### Question Seems like ENABLE_CONFIG_UPDATES=1 works only in host mode. Is there way to enable it for docker ? ### Anything else? _No response_
[ { "content": "import json\nimport logging\nimport os\nimport platform\nimport re\nimport socket\nimport subprocess\nimport tempfile\nimport time\nfrom os.path import expanduser\n\nimport six\nfrom boto3 import Session\n\nfrom localstack.constants import (\n AWS_REGION_US_EAST_1,\n DEFAULT_BUCKET_MARKER_LO...
[ { "content": "import json\nimport logging\nimport os\nimport platform\nimport re\nimport socket\nimport subprocess\nimport tempfile\nimport time\nfrom os.path import expanduser\n\nimport six\nfrom boto3 import Session\n\nfrom localstack.constants import (\n AWS_REGION_US_EAST_1,\n DEFAULT_BUCKET_MARKER_LO...
diff --git a/localstack/config.py b/localstack/config.py index 53ac92b18af18..3908046a04ad7 100644 --- a/localstack/config.py +++ b/localstack/config.py @@ -354,6 +354,7 @@ def is_linux(): "EXTRA_CORS_ALLOWED_HEADERS", "EXTRA_CORS_EXPOSE_HEADERS", "EXTRA_CORS_ALLOWED_ORIGINS", + "ENABLE_CONFIG_UPDATES...
Lightning-Universe__lightning-flash-666
ImageEmbedder default behavior is not a flattened output ## 🐛 Bug I discovered this issue while testing PR #655. If you run the [Image Embedding README example code](https://github.com/PyTorchLightning/lightning-flash#example-1-image-embedding), it returns a 3D tensor. My understanding from the use of embeddings ...
[ { "content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
[ { "content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
diff --git a/flash/image/embedding/model.py b/flash/image/embedding/model.py index f5e2c0cca9..a8cab9b90a 100644 --- a/flash/image/embedding/model.py +++ b/flash/image/embedding/model.py @@ -107,7 +107,7 @@ def forward(self, x) -> torch.Tensor: if isinstance(x, tuple): x = x[-1] - if x.di...
buildbot__buildbot-3653
Default value is set wrong when triggerring a forcescheduler by REST API Assume that we have a forcescheduler like below: ```python ForceBuild_Scheduler = ForceScheduler( name="ForceBuild_Scheduler", buttonName=u"Force, label=u"Force", builderNames=["BuildEntry_Builder"], username=util.UserNa...
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n...
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n...
diff --git a/master/buildbot/schedulers/forcesched.py b/master/buildbot/schedulers/forcesched.py index 0fbc29b9b057..76d5b5ac52c6 100644 --- a/master/buildbot/schedulers/forcesched.py +++ b/master/buildbot/schedulers/forcesched.py @@ -249,7 +249,7 @@ class BooleanParameter(BaseParameter): type = "bool" def ...
internetarchive__openlibrary-8944
No `Cache-Control` headers on IA CDN requests ### Problem These two JS load on every page: https://openlibrary.org/cdn/archive.org/donate.js and. https://openlibrary.org/cdn/archive.org/analytics.js However, they are not cached like the rest of the JS. This causes a lot (2 seconds) delay when on a very slow connec...
[ { "content": "\"\"\"\nOpen Library Plugin.\n\"\"\"\n\nfrom urllib.parse import parse_qs, urlparse, urlencode, urlunparse\nimport requests\nimport web\nimport json\nimport os\nimport socket\nimport random\nimport datetime\nimport logging\nfrom time import time\nimport math\nfrom pathlib import Path\nimport infog...
[ { "content": "\"\"\"\nOpen Library Plugin.\n\"\"\"\n\nfrom urllib.parse import parse_qs, urlparse, urlencode, urlunparse\nimport requests\nimport web\nimport json\nimport os\nimport socket\nimport random\nimport datetime\nimport logging\nfrom time import time\nimport math\nfrom pathlib import Path\nimport infog...
diff --git a/openlibrary/plugins/openlibrary/code.py b/openlibrary/plugins/openlibrary/code.py index 0e6fe909afa..3ab9762dcdd 100644 --- a/openlibrary/plugins/openlibrary/code.py +++ b/openlibrary/plugins/openlibrary/code.py @@ -427,6 +427,7 @@ class ia_js_cdn(delegate.page): def GET(self, filename): we...
litestar-org__litestar-1773
StaticFilesConfig and virtual directories I'm trying to write a ``FileSystemProtocol`` to load files from the package data using [importlib_resources](https://importlib-resources.readthedocs.io/en/latest/using.html#). But because ``directories`` is defined as ``DirectoryPath``, pydantic checks if the given directories ...
[ { "content": "from __future__ import annotations\n\nfrom litestar.exceptions import ImproperlyConfiguredException\n\n__all__ = (\"DTOException\", \"UnsupportedType\")\n\n\nclass DTOException(ImproperlyConfiguredException):\n \"\"\"Base exception for DTO errors.\"\"\"\n\n\nclass UnsupportedType(DTOException):...
[ { "content": null, "path": "litestar/dto/exceptions.py" } ]
diff --git a/docs/reference/dto/exceptions.rst b/docs/reference/dto/exceptions.rst deleted file mode 100644 index c809fb9510..0000000000 --- a/docs/reference/dto/exceptions.rst +++ /dev/null @@ -1,5 +0,0 @@ -exceptions -========== - -.. automodule:: litestar.dto.exceptions - :members: diff --git a/docs/reference/dto...
SeldonIO__MLServer-1064
decode_args with tuple return value I'm confused about how to use `decode_args()` when the model returns a tuple of, let's say, a numpy array. If I have an inference function with the following signature ```python import numpy as np from mlserver.codecs.decorator import decode_args def predict(input: np.ndar...
[ { "content": "from functools import wraps, partial\nfrom typing import (\n Any,\n Callable,\n Coroutine,\n Dict,\n List,\n Optional,\n Union,\n Type,\n Tuple,\n get_origin,\n get_args,\n get_type_hints,\n TYPE_CHECKING,\n)\n\n\nfrom ..types import InferenceRequest, Inferen...
[ { "content": "from functools import wraps, partial\nfrom typing import (\n Any,\n Callable,\n Coroutine,\n Dict,\n List,\n Optional,\n Union,\n Type,\n Tuple,\n get_origin,\n get_args,\n get_type_hints,\n TYPE_CHECKING,\n)\n\n\nfrom ..types import InferenceRequest, Inferen...
diff --git a/mlserver/codecs/decorator.py b/mlserver/codecs/decorator.py index 89367fcbf..19d2e81e0 100644 --- a/mlserver/codecs/decorator.py +++ b/mlserver/codecs/decorator.py @@ -38,6 +38,10 @@ def _as_list(a: Optional[Union[Any, Tuple[Any]]]) -> List[Any]: # Split into components return list(a) +...
pypa__virtualenv-2107
site.getsitepackages() doesn't respect --system-site-packages on python2 **Issue** site.getsitepackages() doesn't respect --system-site-packages being set on python2. System site-package paths are never included. I came across this while working on #2105. In contrast to #2105 this is not specific to debian, which ...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nA simple shim module to fix up things on Python 2 only.\n\nNote: until we setup correctly the paths we can only import built-ins.\n\"\"\"\nimport sys\n\n\ndef main():\n \"\"\"Patch what needed, and invoke the original site.py\"\"\"\n config = read_pyvenv()\n ...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nA simple shim module to fix up things on Python 2 only.\n\nNote: until we setup correctly the paths we can only import built-ins.\n\"\"\"\nimport sys\n\n\ndef main():\n \"\"\"Patch what needed, and invoke the original site.py\"\"\"\n config = read_pyvenv()\n ...
diff --git a/docs/changelog/2106.bugfix.rst b/docs/changelog/2106.bugfix.rst new file mode 100644 index 000000000..ec68bb584 --- /dev/null +++ b/docs/changelog/2106.bugfix.rst @@ -0,0 +1 @@ +Fix ``site.getsitepackages()`` ignoring ``--system-site-packages`` on python2 - by :user:`freundTech`. diff --git a/src/virtualen...
zulip__zulip-11317
Improve formatting for "arguments" sections with long examples. The line-wrapping for this endpoint's API documentation looks really ugly: ![image](https://user-images.githubusercontent.com/2746074/47042583-7e303200-d140-11e8-9b4f-d6fc1325dcba.png) We should either remove the maximum width on "description", or fi...
[ { "content": "import re\nimport os\nimport ujson\n\nfrom django.utils.html import escape as escape_html\nfrom markdown.extensions import Extension\nfrom markdown.preprocessors import Preprocessor\nfrom zerver.lib.openapi import get_openapi_parameters\nfrom typing import Any, Dict, Optional, List\nimport markdow...
[ { "content": "import re\nimport os\nimport ujson\n\nfrom django.utils.html import escape as escape_html\nfrom markdown.extensions import Extension\nfrom markdown.preprocessors import Preprocessor\nfrom zerver.lib.openapi import get_openapi_parameters\nfrom typing import Any, Dict, Optional, List\nimport markdow...
diff --git a/static/third/bootstrap/css/bootstrap.css b/static/third/bootstrap/css/bootstrap.css index ef4330f7db3fb..23de9383f0f20 100644 --- a/static/third/bootstrap/css/bootstrap.css +++ b/static/third/bootstrap/css/bootstrap.css @@ -2008,6 +2008,16 @@ table { vertical-align: bottom; } +.table .json-api-exampl...
voxel51__fiftyone-3905
[BUG] App is stuck on "Pixelating.." screen when loading COCO custom dataset. ### Describe the problem When loading my custom COCO dataset, I cannot launch the app on my Windows PC. The dataset is successfully created, but when I launch the app either in a script or in a jupyter notebook, it remain on the "Pixelatin...
[ { "content": "\"\"\"\nFiftyOne Server queries.\n\n| Copyright 2017-2023, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nfrom dataclasses import asdict\nfrom datetime import date, datetime\nfrom enum import Enum\nimport logging\nimport os\nimport typing as t\n\nimport eta.core.serial as etas\...
[ { "content": "\"\"\"\nFiftyOne Server queries.\n\n| Copyright 2017-2023, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nfrom dataclasses import asdict\nfrom datetime import date, datetime\nfrom enum import Enum\nimport logging\nimport os\nimport typing as t\n\nimport eta.core.serial as etas\...
diff --git a/fiftyone/server/query.py b/fiftyone/server/query.py index 2cda36e6422..03d5e30fd3c 100644 --- a/fiftyone/server/query.py +++ b/fiftyone/server/query.py @@ -317,6 +317,9 @@ def modifier(doc: dict) -> dict: ] doc["default_skeletons"] = doc.get("default_skeletons", None) + # gql pri...
projectmesa__mesa-112
DataCollector bug Found a minor bug in DataCollector, where some variables are not initialized in the instance, and become class variables instead. Fixing.
[ { "content": "'''\nMesa Data Collection Module\n=====================================================\n\nDataCollector is meant to provide a simple, standard way to collect data\ngenerated by a Mesa model. It collects three types of data: model-level data,\nagent-level data, and tables.\n\nA DataCollector is in...
[ { "content": "'''\nMesa Data Collection Module\n=====================================================\n\nDataCollector is meant to provide a simple, standard way to collect data\ngenerated by a Mesa model. It collects three types of data: model-level data,\nagent-level data, and tables.\n\nA DataCollector is in...
diff --git a/mesa/datacollection.py b/mesa/datacollection.py index 0a4a929091b..f3270381373 100644 --- a/mesa/datacollection.py +++ b/mesa/datacollection.py @@ -80,6 +80,9 @@ def __init__(self, model_reporters={}, agent_reporters={}, tables={}): self.model_reporters = {} self.agent_reporters = {} + ...
plotly__dash-796
[BUG] Auto-generated docstrings contain JS boolean values instead of Python boolean values Prompted by https://github.com/plotly/dash-bio/pull/379#discussion_r297840872 While `true` and `false` are not capitalized in JavaScript, they are capitalized in Python. The Python components' docstrings should reflect this, s...
[ { "content": "from collections import OrderedDict\nimport copy\nimport os\n\nfrom dash.development.base_component import _explicitize_args\nfrom dash.exceptions import NonExistentEventException\nfrom ._all_keywords import python_keywords\nfrom .base_component import Component\n\n\n# pylint: disable=unused-argum...
[ { "content": "from collections import OrderedDict\nimport copy\nimport os\n\nfrom dash.development.base_component import _explicitize_args\nfrom dash.exceptions import NonExistentEventException\nfrom ._all_keywords import python_keywords\nfrom .base_component import Component\n\n\n# pylint: disable=unused-argum...
diff --git a/dash/development/_py_components_generation.py b/dash/development/_py_components_generation.py index 3fcd96c89f..61bfd9b228 100644 --- a/dash/development/_py_components_generation.py +++ b/dash/development/_py_components_generation.py @@ -436,6 +436,9 @@ def create_prop_docstring(prop_name, type_object, req...
liqd__a4-product-261
HTTP Header I'll propose to set the following HTTP header * `HttpOnly` * `X-XSS-Protection` * `X-Content-Type-Options: nosniff` * ~HSTS~ set via nginx See [OWASP headers project](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project) for details
[ { "content": "\"\"\"Django settings for Beteiligung.in.\"\"\"\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nimport os\n\nCONFIG_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\nPROJECT_DIR = os.path.dirname(CONFIG_DIR)\nBASE_DIR = os.path.dirname(PROJECT_DIR)\n\n#...
[ { "content": "\"\"\"Django settings for Beteiligung.in.\"\"\"\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nimport os\n\nCONFIG_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\nPROJECT_DIR = os.path.dirname(CONFIG_DIR)\nBASE_DIR = os.path.dirname(PROJECT_DIR)\n\n#...
diff --git a/liqd_product/config/settings/base.py b/liqd_product/config/settings/base.py index 0fff0e15f..6f384ea79 100644 --- a/liqd_product/config/settings/base.py +++ b/liqd_product/config/settings/base.py @@ -386,3 +386,7 @@ # The default language is used for emails and strings # that are stored translated to the...
kivy__kivy-7520
kivy.uix.Video._on_eos might be called after unoad. **Software Versions** * Python: 3.7 * OS: linux * Kivy: 2.0.0 * Kivy installation method: pip **Describe the bug** When using ffpyplayer based video implementation, it's possible that ``eos`` gets set from frame fetching thread after the video has been unload,...
[ { "content": "'''\nVideo\n=====\n\nThe :class:`Video` widget is used to display video files and streams.\nDepending on your Video core provider, platform, and plugins, you will\nbe able to play different formats. For example, the pygame video\nprovider only supports MPEG1 on Linux and OSX. GStreamer is more\nve...
[ { "content": "'''\nVideo\n=====\n\nThe :class:`Video` widget is used to display video files and streams.\nDepending on your Video core provider, platform, and plugins, you will\nbe able to play different formats. For example, the pygame video\nprovider only supports MPEG1 on Linux and OSX. GStreamer is more\nve...
diff --git a/kivy/uix/video.py b/kivy/uix/video.py index acdc6328f9..935dec70db 100644 --- a/kivy/uix/video.py +++ b/kivy/uix/video.py @@ -257,7 +257,7 @@ def _on_video_frame(self, *largs): self.canvas.ask_update() def _on_eos(self, *largs): - if self._video.eos != 'loop': + if not self._v...
nilearn__nilearn-3337
Spelling Error <!--Describe your proposed enhancement in detail.--> I think the authors meant to describe ADHD but have written ADHD as AHDH. It is just a simple spelling or typographic error. <!--List any pages that would be impacted by the enhancement.--> ### Affected pages 1. https://nilearn.github.io/dev/auto_e...
[ { "content": "\"\"\"Default Mode Network extraction of AHDH dataset\n===============================================\n\nThis example shows a full step-by-step workflow of fitting a GLM to data\nextracted from a seed on the Posterior Cingulate Cortex and saving the results.\n\nMore specifically:\n\n1. A sequence...
[ { "content": "\"\"\"Default Mode Network extraction of ADHD dataset\n===============================================\n\nThis example shows a full step-by-step workflow of fitting a GLM to data\nextracted from a seed on the Posterior Cingulate Cortex and saving the results.\n\nMore specifically:\n\n1. A sequence...
diff --git a/doc/changes/latest.rst b/doc/changes/latest.rst index 1d92f16d2b..5a8f083142 100644 --- a/doc/changes/latest.rst +++ b/doc/changes/latest.rst @@ -29,6 +29,7 @@ Fixes Now if band-pass elements are equal :func:`~nilearn.signal.butterworth` returns an unfiltered signal with a warning (:gh:`3293` by `Yasmin...
ivy-llc__ivy-18341
leaky_relu Paddle Frontend
[ { "content": "# local\nimport ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back\nfrom ivy.functional.frontends.paddle.tensor.math import tanh as paddle_tanh\n\n\n@with_supported_dtypes({\"2.5.0 and below\": (\"float32\", \"fl...
[ { "content": "# local\nimport ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back\nfrom ivy.functional.frontends.paddle.tensor.math import tanh as paddle_tanh\n\n\n@with_supported_dtypes({\"2.5.0 and below\": (\"float32\", \"fl...
diff --git a/ivy/functional/frontends/paddle/nn/functional/activation.py b/ivy/functional/frontends/paddle/nn/functional/activation.py index 6826012fb0b93..6dc559e93a758 100644 --- a/ivy/functional/frontends/paddle/nn/functional/activation.py +++ b/ivy/functional/frontends/paddle/nn/functional/activation.py @@ -209,3 +...
saleor__saleor-1540
TypeError when configuring MAX_CART_LINE_QUANTITY via environment variable ### What I'm trying to achieve Add an item to a cart ### Steps to reproduce the problem 1. Configure MAX_CART_LINE_QUANTITY via environment variable 2. Attempt to add an item to the cart ### What I expected to happen A new item is adde...
[ { "content": "import ast\nimport os.path\n\nimport dj_database_url\nimport dj_email_url\nfrom django.contrib.messages import constants as messages\nimport django_cache_url\n\n\ndef get_list(text):\n return [item.strip() for item in text.split(',')]\n\n\nDEBUG = ast.literal_eval(os.environ.get('DEBUG', 'True'...
[ { "content": "import ast\nimport os.path\n\nimport dj_database_url\nimport dj_email_url\nfrom django.contrib.messages import constants as messages\nimport django_cache_url\n\n\ndef get_list(text):\n return [item.strip() for item in text.split(',')]\n\n\nDEBUG = ast.literal_eval(os.environ.get('DEBUG', 'True'...
diff --git a/saleor/settings.py b/saleor/settings.py index 8f8bd3fdbc2..2f103c03fc3 100644 --- a/saleor/settings.py +++ b/saleor/settings.py @@ -280,7 +280,7 @@ def get_host(): messages.ERROR: 'danger'} LOW_STOCK_THRESHOLD = 10 -MAX_CART_LINE_QUANTITY = os.environ.get('MAX_CART_LINE_QUANTITY', 50) +MAX_CART_LIN...
kivy__kivy-4403
Mouse position wrongly processed on high-dpi screens? Hi, we experience a strange issue where the mouse pos seems to be wrongly processed (or I misunderstood something). When executing the same code ([see gist](https://gist.github.com/johanneshk/a043333546494e0ae5957ac4c08542b7)), on a Macbook with dpi=192 the mouse p...
[ { "content": "# found a way to include it more easily.\n'''\nSDL2 Window\n===========\n\nWindowing provider directly based on our own wrapped version of SDL.\n\nTODO:\n - fix keys\n - support scrolling\n - clean code\n - manage correctly all sdl events\n\n'''\n\n__all__ = ('WindowSDL2', )\n\nfrom os...
[ { "content": "# found a way to include it more easily.\n'''\nSDL2 Window\n===========\n\nWindowing provider directly based on our own wrapped version of SDL.\n\nTODO:\n - fix keys\n - support scrolling\n - clean code\n - manage correctly all sdl events\n\n'''\n\n__all__ = ('WindowSDL2', )\n\nfrom os...
diff --git a/kivy/core/window/window_sdl2.py b/kivy/core/window/window_sdl2.py index 9809b115b5..a3fc207de4 100644 --- a/kivy/core/window/window_sdl2.py +++ b/kivy/core/window/window_sdl2.py @@ -381,7 +381,7 @@ def _set_cursor_state(self, value): def _fix_mouse_pos(self, x, y): y -= 1 - self.mous...
SciTools__cartopy-1999
Colouring countries ### Description Cartopy stop working when you try to color some countries, like Austria (AUT), Albania among others in Europe as far as I could see. My maps heve been working fine until couple last update on april. #### Code to reproduce ```python import matplotlib.pyplot as plt import ca...
[ { "content": "# Copyright Cartopy Contributors\n#\n# This file is part of Cartopy and is released under the LGPL license.\n# See COPYING and COPYING.LESSER in the root of the repository for full\n# licensing details.\n\n\"\"\"\nThis module defines :class:`Feature` instances, for use with\nax.add_feature().\n\n\...
[ { "content": "# Copyright Cartopy Contributors\n#\n# This file is part of Cartopy and is released under the LGPL license.\n# See COPYING and COPYING.LESSER in the root of the repository for full\n# licensing details.\n\n\"\"\"\nThis module defines :class:`Feature` instances, for use with\nax.add_feature().\n\n\...
diff --git a/lib/cartopy/feature/__init__.py b/lib/cartopy/feature/__init__.py index e7685522e..86d4b7670 100644 --- a/lib/cartopy/feature/__init__.py +++ b/lib/cartopy/feature/__init__.py @@ -214,6 +214,8 @@ def __init__(self, geometries, crs, **kwargs): """ super().__init__(crs, **kwargs) + ...
castorini__pyserini-667
Switch to jnius_config.add_classpath Currently, pyserini replaces any previously registered jars on the classpath in its setup code. Is there any reason to not use add_classpath() instead of set_classpath()? Here is the pyjnius relevant code: ```python def set_classpath(*path): """ Sets the classpath for...
[ { "content": "#\n# Pyserini: Reproducible IR research with sparse and dense representations\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/...
[ { "content": "#\n# Pyserini: Reproducible IR research with sparse and dense representations\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/...
diff --git a/pyserini/setup.py b/pyserini/setup.py index ec07b22a5..1cc1560c2 100644 --- a/pyserini/setup.py +++ b/pyserini/setup.py @@ -37,4 +37,4 @@ def configure_classpath(anserini_root="."): raise Exception('No matching jar file found in {}'.format(os.path.abspath(anserini_root))) latest = max(paths...
ivy-llc__ivy-27943
Fix Ivy Failing Test: jax - elementwise.asinh
[ { "content": "# global\nfrom typing import Union, Optional\n\nimport jax\nimport jax.numpy as jnp\n\n# local\nimport ivy\nfrom ivy import (\n default_float_dtype,\n is_float_dtype,\n)\nfrom ivy import promote_types_of_inputs\nfrom ivy.functional.backends.jax import JaxArray\nfrom ivy.func_wrapper import w...
[ { "content": "# global\nfrom typing import Union, Optional\n\nimport jax\nimport jax.numpy as jnp\n\n# local\nimport ivy\nfrom ivy import (\n default_float_dtype,\n is_float_dtype,\n)\nfrom ivy import promote_types_of_inputs\nfrom ivy.functional.backends.jax import JaxArray\nfrom ivy.func_wrapper import w...
diff --git a/ivy/functional/backends/jax/elementwise.py b/ivy/functional/backends/jax/elementwise.py index 42a5fd51077c5..056996b8cc710 100644 --- a/ivy/functional/backends/jax/elementwise.py +++ b/ivy/functional/backends/jax/elementwise.py @@ -55,6 +55,7 @@ def asin(x: JaxArray, /, *, out: Optional[JaxArray] = None) -...
ethereum__web3.py-2568
Can not parse tuple[][] ABI type * Version: 5.29.2 * Python: 3.7.3 * OS: osx * `pip freeze` output ``` aiohttp==3.8.1 aiosignal==1.2.0 alabaster==0.7.12 anaconda-client==1.7.2 anaconda-navigator==1.9.7 anaconda-project==0.8.3 anticaptchaofficial==1.0.34 apns2==0.7.2 appnope==0.1.0 appscript==1.0.1 asn1...
[ { "content": "import binascii\nfrom collections import (\n abc,\n namedtuple,\n)\nimport copy\nimport itertools\nimport re\nfrom typing import (\n Any,\n Callable,\n Collection,\n Dict,\n Iterable,\n List,\n Mapping,\n Optional,\n Sequence,\n Tuple,\n Type,\n Union,\n ...
[ { "content": "import binascii\nfrom collections import (\n abc,\n namedtuple,\n)\nimport copy\nimport itertools\nimport re\nfrom typing import (\n Any,\n Callable,\n Collection,\n Dict,\n Iterable,\n List,\n Mapping,\n Optional,\n Sequence,\n Tuple,\n Type,\n Union,\n ...
diff --git a/newsfragments/2555.feature.rst b/newsfragments/2555.feature.rst new file mode 100644 index 0000000000..fae2820847 --- /dev/null +++ b/newsfragments/2555.feature.rst @@ -0,0 +1 @@ +support multi-dimensional arrays for ABI tuples types diff --git a/tests/core/utilities/test_abi.py b/tests/core/utilities/test...
translate__pootle-5024
Exception in terminology management view When visiting https://mozilla.locamotion.org/eu/firefox/terminology/ the following exception is thrown: `'SortedRelatedManager' object does not support indexing`
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nfrom django.co...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nfrom django.co...
diff --git a/pootle/apps/pootle_terminology/views.py b/pootle/apps/pootle_terminology/views.py index 332559636bf..b65fde84e5e 100644 --- a/pootle/apps/pootle_terminology/views.py +++ b/pootle/apps/pootle_terminology/views.py @@ -27,7 +27,7 @@ def get_terminology_filename(translation_project): return ( '...
liqd__a4-meinberlin-3150
#3289 Interactive Event **URL:** https://meinberlin-dev.liqd.net/projekte/module/interaktive-veranstaltung/ **device & browser:** *e.g. Firefox 80.0 (64-bit)* **Comment/Question:** ![Screenshot_2020-09-17-Lorem-Ipsum-—-meinBerlin(2)](https://user-images.githubusercontent.com/59610786/93490308-9d293700-f908-11ea-8...
[ { "content": "from django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.dashboard.blueprints import ProjectBlueprint\nfrom meinberlin.apps.budgeting import phases as budgeting_phases\nfrom meinberlin.apps.documents import phases as documents_phases\nfrom meinberlin.apps.ideas import phases as i...
[ { "content": "from django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.dashboard.blueprints import ProjectBlueprint\nfrom meinberlin.apps.budgeting import phases as budgeting_phases\nfrom meinberlin.apps.documents import phases as documents_phases\nfrom meinberlin.apps.ideas import phases as i...
diff --git a/meinberlin/apps/dashboard/blueprints.py b/meinberlin/apps/dashboard/blueprints.py index 1dc37d5ea7..d43c17f282 100644 --- a/meinberlin/apps/dashboard/blueprints.py +++ b/meinberlin/apps/dashboard/blueprints.py @@ -152,7 +152,7 @@ content=[ livequestion_phases.IssuePhase(), ...
fossasia__open-event-server-7659
Preset roles deletion is allowed **Describe the bug** Currently the preset roles like "organizer, coorganizer etc" should not be deleted from the db. But right now it is possible to delete these entries. **To Reproduce** Steps to reproduce the behavior: 1. Hit the delete endpoint for role 2. Choose any of the i...
[ { "content": "from flask_rest_jsonapi import ResourceDetail, ResourceList\n\nfrom app.api.bootstrap import api\nfrom app.api.helpers.db import safe_query_kwargs\nfrom app.api.helpers.errors import UnprocessableEntityError\nfrom app.api.schema.roles import RoleSchema\nfrom app.models import db\nfrom app.models.r...
[ { "content": "from flask_rest_jsonapi import ResourceDetail, ResourceList\n\nfrom app.api.bootstrap import api\nfrom app.api.helpers.db import safe_query_kwargs\nfrom app.api.helpers.errors import UnprocessableEntityError\nfrom app.api.schema.roles import RoleSchema\nfrom app.models import db\nfrom app.models.r...
diff --git a/app/api/roles.py b/app/api/roles.py index 71fe93c13c..e30b3ad2bf 100644 --- a/app/api/roles.py +++ b/app/api/roles.py @@ -97,5 +97,8 @@ def before_delete_object(self, obj, kwargs): data_layer = { 'session': db.session, 'model': Role, - 'methods': {'before_get_object': before_g...
ibis-project__ibis-2249
BUG: Multiple aliases on the same column not behaving as expected ``` python column = table.some_column table.projection( [ column.name("alias1"), column.name("alias2"), column.name("alias3"), ] ) ``` I think the expected behavior would be a table ex...
[ { "content": "import ibis.expr.operations as ops\nimport ibis.expr.types as ir\nimport ibis.util as util\n\n\nclass FormatMemo:\n # A little sanity hack to simplify the below\n\n def __init__(self):\n from collections import defaultdict\n\n self.formatted = {}\n self.aliases = {}\n ...
[ { "content": "import ibis.expr.operations as ops\nimport ibis.expr.types as ir\nimport ibis.util as util\n\n\nclass FormatMemo:\n # A little sanity hack to simplify the below\n\n def __init__(self):\n from collections import defaultdict\n\n self.formatted = {}\n self.aliases = {}\n ...
diff --git a/docs/source/release/index.rst b/docs/source/release/index.rst index e0c1b0b87bad..92158b9b87ff 100644 --- a/docs/source/release/index.rst +++ b/docs/source/release/index.rst @@ -12,6 +12,7 @@ Release Notes These release notes are for versions of ibis **1.0 and later**. Release notes for pre-1.0 ver...
pwr-Solaar__Solaar-1826
Release 1.1.7
[ { "content": "#!/usr/bin/env python3\n\nfrom glob import glob as _glob\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# from solaar import NAME, __version__\n__version__ = '1.1.7'\nNAME = 'Solaar'\n\n\ndef _data_files():\n from os.path import dirname a...
[ { "content": "#!/usr/bin/env python3\n\nfrom glob import glob as _glob\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# from solaar import NAME, __version__\n__version__ = '1.1.7'\nNAME = 'Solaar'\n\n\ndef _data_files():\n from os.path import dirname a...
diff --git a/setup.py b/setup.py index ae7045cba8..38982eebd4 100755 --- a/setup.py +++ b/setup.py @@ -66,7 +66,6 @@ def _data_files(): 'PyYAML (>= 3.12)', 'python-xlib (>= 0.27)', 'psutil (>= 5.4.3)', - 'typing_extensions (>=4.0.0)', ], extras_require={ 'report-desc...
microsoft__Qcodes-87
PR #70 breaks parameter .get and .set functionality I cannot debug the issue properly because all the objects are `multiprocessing` objects. A minimal example showing the issue: ``` python %matplotlib nbagg import matplotlib.pyplot as plt import time import numpy as np import qcodes as qc from toymodel import AModel,...
[ { "content": "# code for example notebook\n\nimport math\n\nfrom qcodes import MockInstrument, MockModel, Parameter, Loop, DataArray\nfrom qcodes.utils.validators import Numbers\n\n\nclass AModel(MockModel):\n def __init__(self):\n self._gates = [0.0, 0.0, 0.0]\n self._excitation = 0.1\n ...
[ { "content": "# code for example notebook\n\nimport math\n\nfrom qcodes import MockInstrument, MockModel, Parameter, Loop, DataArray\nfrom qcodes.utils.validators import Numbers\n\n\nclass AModel(MockModel):\n def __init__(self):\n self._gates = [0.0, 0.0, 0.0]\n self._excitation = 0.1\n ...
diff --git a/docs/examples/toymodel.py b/docs/examples/toymodel.py index bccbeaae2dc..2731171d07f 100644 --- a/docs/examples/toymodel.py +++ b/docs/examples/toymodel.py @@ -40,7 +40,7 @@ def gates_set(self, parameter, value): def gates_get(self, parameter): if parameter[0] == 'c': - return se...
doccano__doccano-603
[Tiny enhancement request] Allow digit keys as shortkeys Feature description --------- English letters are allowed as shortkeys for annotation now, only. Proposition: allow English letters and digits as shortkeys.
[ { "content": "import string\n\nfrom django.db import models\nfrom django.dispatch import receiver\nfrom django.db.models.signals import post_save, pre_delete\nfrom django.urls import reverse\nfrom django.conf import settings\nfrom django.contrib.auth.models import User\nfrom django.contrib.staticfiles.storage i...
[ { "content": "import string\n\nfrom django.db import models\nfrom django.dispatch import receiver\nfrom django.db.models.signals import post_save, pre_delete\nfrom django.urls import reverse\nfrom django.conf import settings\nfrom django.contrib.auth.models import User\nfrom django.contrib.staticfiles.storage i...
diff --git a/app/api/models.py b/app/api/models.py index 697ceb0f02..256e7ac8f6 100644 --- a/app/api/models.py +++ b/app/api/models.py @@ -150,7 +150,7 @@ class Label(models.Model): ('ctrl shift', 'ctrl shift') ) SUFFIX_KEYS = tuple( - (c, c) for c in string.ascii_lowercase + (c, c) for...
qtile__qtile-2707
BitcoinTicker migration does not work ``` /tmp/crypto cat config.py from libqtile.widget import BitcoinTicker test = BitcoinTicker() /tmp/crypto qtile migrate -c config.py Config unchanged. /tmp/crypto cat config.py from libqtile.widget import BitcoinTicker test = BitcoinTicker() ``` /cc @Graeme22
[ { "content": "# Copyright (c) 2021, Tycho Andersen. 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 ...
[ { "content": "# Copyright (c) 2021, Tycho Andersen. 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 ...
diff --git a/libqtile/scripts/migrate.py b/libqtile/scripts/migrate.py index e02b419d5b..3ec3bce6f0 100644 --- a/libqtile/scripts/migrate.py +++ b/libqtile/scripts/migrate.py @@ -129,6 +129,7 @@ def new_at_current_to_new_client_position(query): tile_master_windows_rename, threaded_poll_text_rename, pacma...
kserve__kserve-2103
Cannot install required version of numpy on M1 mac /kind bug Issue: Installation on python 3.8 or 3.9 (and presumably all versions of Python) of the v0.8.0 release candidate fails due to the pinned requirement of numpy. Expected behavior: kserve's release candidate for 0.8 can be installed on an M1 mac. Extr...
[ { "content": "# Copyright 2021 The KServe 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 of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
[ { "content": "# Copyright 2021 The KServe 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 of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
diff --git a/python/kserve/requirements.txt b/python/kserve/requirements.txt index 06f5ba53946..f0ec86734f7 100644 --- a/python/kserve/requirements.txt +++ b/python/kserve/requirements.txt @@ -1,31 +1,27 @@ -six>=1.15 -python_dateutil>=2.5.3 -setuptools>=21.0.0 -urllib3>=1.15.1 -kubernetes>=12.0.0 -tornado>=6.0.0 +six>...
aws__aws-cli-4334
Broken docutils==0.15 Hi community, Today docutils were updated to 0.15 (https://pypi.org/project/docutils/#history) and it breaks awscli running on Python 2. ``` # aws --version Traceback (most recent call last): File "/bin/aws", line 19, in <module> import awscli.clidriver File "/usr/lib/python2.7/...
[ { "content": "#!/usr/bin/env python\nimport codecs\nimport os.path\nimport re\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n return codecs.open(os.path.join(here, *parts), 'r').read()\n\n\ndef find_version(*file_paths...
[ { "content": "#!/usr/bin/env python\nimport codecs\nimport os.path\nimport re\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n return codecs.open(os.path.join(here, *parts), 'r').read()\n\n\ndef find_version(*file_paths...
diff --git a/.changes/next-release/bugfix-Dependency-77959.json b/.changes/next-release/bugfix-Dependency-77959.json new file mode 100644 index 000000000000..73ca000cfdfd --- /dev/null +++ b/.changes/next-release/bugfix-Dependency-77959.json @@ -0,0 +1,5 @@ +{ + "type": "bugfix", + "category": "Dependency", + "descr...
mirumee__ariadne-270
Upgrade to GraphQL-core v3 I'm getting the following deprecation warning. Is this something that is already on your radar / that you are planning to resolve for the next release? >**DeprecationWarning**: GraphQL-core-next has been discontinued. It is now released as GraphQL-core v3 and newer.
[ { "content": "#! /usr/bin/env python\nimport os\nfrom setuptools import setup\n\nCLASSIFIERS = [\n \"Development Status :: 4 - Beta\",\n \"Intended Audience :: Developers\",\n \"License :: OSI Approved :: BSD License\",\n \"Operating System :: OS Independent\",\n \"Programming Language :: Python\...
[ { "content": "#! /usr/bin/env python\nimport os\nfrom setuptools import setup\n\nCLASSIFIERS = [\n \"Development Status :: 4 - Beta\",\n \"Intended Audience :: Developers\",\n \"License :: OSI Approved :: BSD License\",\n \"Operating System :: OS Independent\",\n \"Programming Language :: Python\...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 45218d21e..02b67c642 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG +## Unreleased + +- Updated `graphql-core-next` to `graphql-core` 3.x. + + ## 0.8.0 (2019-11-25) - Added recursive loading of GraphQL schema files from provided path. diff...
ckan__ckan-5439
docs.ckan.org for 2.6, 2.7 and 2.8 haven't been updated since 2018 ### Please describe the expected behaviour https://docs.ckan.org/en/2.8/, https://docs.ckan.org/en/2.7/ and https://docs.ckan.org/en/2.6/ should have latest docs for each version. ### Please describe the actual behaviour The docs are generated for ...
[ { "content": "# encoding: utf-8\n\nimport os\nimport os.path\n\n# Avoid problem releasing to pypi from vagrant\nif os.environ.get('USER', '') == 'vagrant':\n del os.link\n\ntry:\n from setuptools import (setup, find_packages,\n __version__ as setuptools_version)\nexcept ImportEr...
[ { "content": "# encoding: utf-8\n\nimport os\nimport os.path\n\n# Avoid problem releasing to pypi from vagrant\nif os.environ.get('USER', '') == 'vagrant':\n del os.link\n\ntry:\n from setuptools import (setup, find_packages,\n __version__ as setuptools_version)\nexcept ImportEr...
diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 00000000000..c3f5fedc411 --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,27 @@ +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Build documentation i...
pyodide__pyodide-4435
Python 3.12 version ## 🚀 Feature <!-- A clear and concise description of the feature proposal --> Hi, I tried [REPL](https://pyodide.org/en/stable/console.html), maybe it uses the latest 0.25.0, and I noticed that the python is 3.11.3. Python 3.12 has released for a few months with a lot of new features. Sinc...
[ { "content": "import shutil\nfrom collections.abc import Callable\nfrom pathlib import Path\nfrom tempfile import TemporaryDirectory\n\nfrom ._py_compile import _compile\nfrom .common import make_zip_archive\n\n# These files are removed from the stdlib\nREMOVED_FILES = (\n # package management\n \"ensurep...
[ { "content": "import shutil\nfrom collections.abc import Callable\nfrom pathlib import Path\nfrom tempfile import TemporaryDirectory\n\nfrom ._py_compile import _compile\nfrom .common import make_zip_archive\n\n# These files are removed from the stdlib\nREMOVED_FILES = (\n # package management\n \"ensurep...
diff --git a/.circleci/config.yml b/.circleci/config.yml index 7006061437a..ee54cc3cd82 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ defaults: &defaults # Note: when updating the docker image version, # make sure there are no extra old versions lying around. # ...
SciTools__cartopy-1681
pip install of cartopy 0.18.0 fails when installing numpy at the same time ### Description I am provisioning a docker image using pip. In a single pip command, I installed a number of packages, including cartopy and numpy. This worked in versions prior to 0.18.0, and no longer works with 0.18.0. #### Code to reprod...
[ { "content": "# Copyright Cartopy Contributors\n#\n# This file is part of Cartopy and is released under the LGPL license.\n# See COPYING and COPYING.LESSER in the root of the repository for full\n# licensing details.\n\n# NOTE: This file must remain Python 2 compatible for the foreseeable future,\n# to ensure t...
[ { "content": "# Copyright Cartopy Contributors\n#\n# This file is part of Cartopy and is released under the LGPL license.\n# See COPYING and COPYING.LESSER in the root of the repository for full\n# licensing details.\n\n# NOTE: This file must remain Python 2 compatible for the foreseeable future,\n# to ensure t...
diff --git a/.travis.yml b/.travis.yml index 679b31445..f18a4a471 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,10 @@ env: matrix: - NAME="Minimum dependencies." PYTHON_VERSION=3.6 - PACKAGES="cython=0.28.5 matplotlib=2.2.2 numpy=1.16 owslib=0.17 proj4=5.2.0 scipy=1.2.0" + ...
UTNkar__moore-59
Login is per-subdomain
[ { "content": "\"\"\"\nDjango settings for the production environment of Project Moore.\n\nFor more information regarding running in production see,\nSee https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.10/topics/set...
[ { "content": "\"\"\"\nDjango settings for the production environment of Project Moore.\n\nFor more information regarding running in production see,\nSee https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.10/topics/set...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 753dc74f..be38bbc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ### Fixed - Confirmation e-mails not being sent. +- Updated translations +- Production: cross-domain co...
ManageIQ__integration_tests-7728
cfme.log only showing on first test in a run. cfme.log link only appears on the first test from a selection but shows all logs from all tests in that run. Expected to have a separate log link for each test specific to that test. See attached ![screenshot from 2018-08-14 15-50-11](https://user-images.githubusercontent....
[ { "content": "\"\"\" Logger plugin for Artifactor\n\nAdd a stanza to the artifactor config like this,\nartifactor:\n log_dir: /home/username/outdir\n per_run: test #test, run, None\n overwrite: True\n plugins:\n logger:\n enabled: True\n plugin: logger\n level...
[ { "content": "\"\"\" Logger plugin for Artifactor\n\nAdd a stanza to the artifactor config like this,\nartifactor:\n log_dir: /home/username/outdir\n per_run: test #test, run, None\n overwrite: True\n plugins:\n logger:\n enabled: True\n plugin: logger\n level...
diff --git a/artifactor/example_tests/artifactor_simple_example.py b/artifactor/example_tests/artifactor_simple_example.py new file mode 100644 index 0000000000..c7cf111291 --- /dev/null +++ b/artifactor/example_tests/artifactor_simple_example.py @@ -0,0 +1,21 @@ +from cfme.utils.log import logger as log +import pytest...
ethereum__consensus-specs-1743
is verifying max number of indices necessary in method is_valid_indexed_attestation(), there is `if not len(indices) <= MAX_VALIDATORS_PER_COMMITTEE: return False` But since we defined the length of the indices already in struct IndexedAttestation as MAX_VALIDATORS_PER_COMMITTEE, which means when create a inst...
[ { "content": "from setuptools import setup, find_packages, Command\nfrom setuptools.command.build_py import build_py\nfrom distutils import dir_util\nfrom distutils.util import convert_path\nimport os\nimport re\nfrom typing import Dict, NamedTuple, List\n\nFUNCTION_REGEX = r'^def [\\w_]*'\n\n\nclass SpecObject...
[ { "content": "from setuptools import setup, find_packages, Command\nfrom setuptools.command.build_py import build_py\nfrom distutils import dir_util\nfrom distutils.util import convert_path\nimport os\nimport re\nfrom typing import Dict, NamedTuple, List\n\nFUNCTION_REGEX = r'^def [\\w_]*'\n\n\nclass SpecObject...
diff --git a/.circleci/config.yml b/.circleci/config.yml index 5c4b77e784..3a67e55281 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -79,16 +79,16 @@ jobs: # Restore git repo at point close to target branch/revision, to speed up checkout - restore_cache: keys: - - v2...
bridgecrewio__checkov-2255
"checkov --add-check" failing due to missing templates directory in setup.py When running `checkov --add-check`, you get an error due to the templates not being installed properly ``` gitpod /workspace/checkov $ checkov --add-check _ _ ___| |__ ___ ___| | _______ __ ...
[ { "content": "#!/usr/bin/env python\nimport logging\nimport os\nfrom importlib import util\nfrom os import path\n\nimport setuptools\nfrom setuptools import setup\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, \"README.md\")...
[ { "content": "#!/usr/bin/env python\nimport logging\nimport os\nfrom importlib import util\nfrom os import path\n\nimport setuptools\nfrom setuptools import setup\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, \"README.md\")...
diff --git a/setup.py b/setup.py index b1584bec05..856af5f317 100644 --- a/setup.py +++ b/setup.py @@ -84,6 +84,9 @@ "aws/*.yaml", "gcp/*.yaml", "azure/*.yaml", + ], + "checkov.common.util.templates": [ + "*.jinja2" ] }, scripts=["bin/ch...
aio-libs__aiohttp-569
Incorrect remote_addr in access log All records contain 127.0.0.1 as remote_addr
[ { "content": "\"\"\"Various helper functions\"\"\"\nimport base64\nimport io\nimport os\nfrom urllib.parse import quote, urlencode\nfrom collections import namedtuple\nfrom wsgiref.handlers import format_date_time\n\nfrom . import hdrs, multidict\nfrom .errors import InvalidURL\n\n__all__ = ('BasicAuth', 'FormD...
[ { "content": "\"\"\"Various helper functions\"\"\"\nimport base64\nimport io\nimport os\nfrom urllib.parse import quote, urlencode\nfrom collections import namedtuple\nfrom wsgiref.handlers import format_date_time\n\nfrom . import hdrs, multidict\nfrom .errors import InvalidURL\n\n__all__ = ('BasicAuth', 'FormD...
diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py index eb542ba96b0..0abecd899e4 100644 --- a/aiohttp/helpers.py +++ b/aiohttp/helpers.py @@ -239,7 +239,7 @@ def atoms(message, environ, response, transport, request_time): if transport is not None: remote_addr = parse_remote_addr( - transpo...
litestar-org__litestar-1906
Bug: SQL Alchemy repository `updated` vs `updated_at` column reference. https://github.com/litestar-org/litestar/blob/32396925a573c02eff57aa10b2060f505b920232/litestar/contrib/sqlalchemy/base.py#L69 This incorrectly references the old `updated` column name instead of the `updated_at` column name. <!-- POLAR PLEDGE ...
[ { "content": "\"\"\"Application ORM configuration.\"\"\"\nfrom __future__ import annotations\n\nimport re\nfrom datetime import date, datetime, timezone\nfrom typing import TYPE_CHECKING, Any, ClassVar, Protocol, TypeVar, runtime_checkable\nfrom uuid import UUID, uuid4\n\nfrom pydantic import AnyHttpUrl, AnyUrl...
[ { "content": "\"\"\"Application ORM configuration.\"\"\"\nfrom __future__ import annotations\n\nimport re\nfrom datetime import date, datetime, timezone\nfrom typing import TYPE_CHECKING, Any, ClassVar, Protocol, TypeVar, runtime_checkable\nfrom uuid import UUID, uuid4\n\nfrom pydantic import AnyHttpUrl, AnyUrl...
diff --git a/litestar/contrib/sqlalchemy/base.py b/litestar/contrib/sqlalchemy/base.py index 7aa16cce44..fdbd97576f 100644 --- a/litestar/contrib/sqlalchemy/base.py +++ b/litestar/contrib/sqlalchemy/base.py @@ -66,7 +66,7 @@ def touch_updated_timestamp(session: Session, *_: Any) -> None: """ for instance in s...
pwr-Solaar__Solaar-346
Any chance to add MK220 combo (K220 + M150)? Well, the title says it all. The combo is the MK220: Keyboard: K220 Mouse: M150 Thanks and good work!
[ { "content": "# -*- python-mode -*-\n# -*- coding: UTF-8 -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the...
[ { "content": "# -*- python-mode -*-\n# -*- coding: UTF-8 -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the...
diff --git a/docs/devices/mk220-new.txt b/docs/devices/mk220-new.txt new file mode 100644 index 0000000000..d8712b3b25 --- /dev/null +++ b/docs/devices/mk220-new.txt @@ -0,0 +1,82 @@ +Unifying Receiver + Device path : /dev/hidraw1 + USB id : 046d:c534 + Serial : 0 + Firmware : 29.00.B0015 + Has 2 ...
Parsl__parsl-972
Fix `ModuleNotFoundError: No module named 'monitoring'` Looks like this bug was introduced with the recent merge of monitoring back into the parsl repo. ``` Traceback (most recent call last): File "/Users/awoodard/software/miniconda3/bin/parsl-visualize", line 11, in <module> load_entry_point('parsl==0.7.2'...
[ { "content": "from setuptools import setup, find_packages\n\nwith open('parsl/version.py') as f:\n exec(f.read())\n\nwith open('requirements.txt') as f:\n install_requires = f.readlines()\n\nextras_require = {\n 'monitoring' : [\n 'psutil',\n 'sqlalchemy',\n 'sqlalchemy_utils',\n ...
[ { "content": "from setuptools import setup, find_packages\n\nwith open('parsl/version.py') as f:\n exec(f.read())\n\nwith open('requirements.txt') as f:\n install_requires = f.readlines()\n\nextras_require = {\n 'monitoring' : [\n 'psutil',\n 'sqlalchemy',\n 'sqlalchemy_utils',\n ...
diff --git a/setup.py b/setup.py index 5e6a08fdf6..eb4e546418 100755 --- a/setup.py +++ b/setup.py @@ -61,6 +61,6 @@ entry_points={'console_scripts': [ 'parsl-globus-auth=parsl.data_provider.globus:cli_run', - 'parsl-visualize=monitoring.visualization.app:cli_run', + 'parsl-visualize=par...
pystiche__pystiche-103
ZeroDivisionError with default_epoch_optim_loop I get an `ZeroDivisionError: integer division or modulo by zero` when using the `default_transformer_epoch_optim_loop`. This is probably because the `num_batches` of the `batch_sampler` is much smaller than in the `default_transformer_optim_loop` which results in `log_fre...
[ { "content": "from typing import Union, Optional, Tuple, Callable\nimport contextlib\nimport sys\nimport logging\nimport torch\nfrom torch.optim.optimizer import Optimizer\nfrom torch.optim.lr_scheduler import _LRScheduler as LRScheduler\nimport pystiche\nfrom pystiche.pyramid.level import PyramidLevel\nfrom .m...
[ { "content": "from typing import Union, Optional, Tuple, Callable\nimport contextlib\nimport sys\nimport logging\nimport torch\nfrom torch.optim.optimizer import Optimizer\nfrom torch.optim.lr_scheduler import _LRScheduler as LRScheduler\nimport pystiche\nfrom pystiche.pyramid.level import PyramidLevel\nfrom .m...
diff --git a/pystiche/optim/log.py b/pystiche/optim/log.py index f972f623..f21c18bb 100644 --- a/pystiche/optim/log.py +++ b/pystiche/optim/log.py @@ -131,7 +131,7 @@ def default_transformer_optim_log_fn( show_running_means: bool = True, ): if log_freq is None: - log_freq = min(round(1e-3 * num_batche...
dotkom__onlineweb4-1902
Cannot view inventory ## What kind of an issue is this? - [x] Bug report ## What is the expected behaviour? To be able to view the inventory ## What is the current behaviour? A 500 error, with the message `TypeError: '>=' not supported between instances of 'datetime.date' and 'NoneType'`. ## How ...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom django.conf import settings\nfrom django.core.mail import EmailMessage\nfrom django.db import models\nfrom django.utils import timezone\nfrom django.utils.translation import ugettext as _\n\nfrom apps.gallery.models import ResponsiveImage\n\n\nclass ItemCategory(mod...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom django.conf import settings\nfrom django.core.mail import EmailMessage\nfrom django.db import models\nfrom django.utils import timezone\nfrom django.utils.translation import ugettext as _\n\nfrom apps.gallery.models import ResponsiveImage\n\n\nclass ItemCategory(mod...
diff --git a/apps/inventory/models.py b/apps/inventory/models.py index 1e518cd06..df000c6a7 100644 --- a/apps/inventory/models.py +++ b/apps/inventory/models.py @@ -55,7 +55,7 @@ def total_amount(self): @property def has_expired_batch(self): - if timezone.now().date() >= self.oldest_expiration_date: ...
wright-group__WrightTools-361
collection.keys returns data objects should return names, but get objects
[ { "content": "\"\"\"Collection.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport os\nimport shutil\n\nimport numpy as np\n\nimport h5py\n\nfrom .. import data as wt_data\nfrom .._base import Group\n\n\n# --- define -----------------------...
[ { "content": "\"\"\"Collection.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport os\nimport shutil\n\nimport numpy as np\n\nimport h5py\n\nfrom .. import data as wt_data\nfrom .._base import Group\n\n\n# --- define -----------------------...
diff --git a/WrightTools/collection/_collection.py b/WrightTools/collection/_collection.py index 5660377e0..297bbeb7b 100644 --- a/WrightTools/collection/_collection.py +++ b/WrightTools/collection/_collection.py @@ -37,7 +37,7 @@ def __len__(self): def __next__(self): if self.__n < len(self): - ...
ros__ros_comm-2007
Rospy import * Hi, Doing ```python from rospy import * ``` raises the following exception : ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'rospy' has no attribute 'NodeProxy' ``` After some investigations, `NodeProxy` doesn't seem to exist anymore in...
[ { "content": "# Software License Agreement (BSD License)\n#\n# Copyright (c) 2008, Willow Garage, Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# * Redistributions of so...
[ { "content": "# Software License Agreement (BSD License)\n#\n# Copyright (c) 2008, Willow Garage, Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# * Redistributions of so...
diff --git a/clients/rospy/src/rospy/__init__.py b/clients/rospy/src/rospy/__init__.py index 1c4a5693a9..6d9ebc8311 100644 --- a/clients/rospy/src/rospy/__init__.py +++ b/clients/rospy/src/rospy/__init__.py @@ -113,7 +113,6 @@ 'logerr_once', 'logfatal_once', 'parse_rosrpc_uri', 'MasterProxy', - 'NodeP...
kivy__kivy-5960
Kivy is using deprecated Cython syntax for properties ### Versions * Kivy: master ### Description According to [Cython documentation](http://cython.readthedocs.io/en/latest/src/userguide/extension_types.html) we are using a "special (deprecated) legacy syntax for defining properties in an extension class". Th...
[ { "content": "#\n# Kivy - Cross-platform UI framework\n# https://kivy.org/\n#\nfrom __future__ import print_function\n\nimport sys\nbuild_examples = False\nif \"--build_examples\" in sys.argv:\n build_examples = True\n sys.argv.remove(\"--build_examples\")\n\nfrom copy import deepcopy\nimport os\nfrom os....
[ { "content": "#\n# Kivy - Cross-platform UI framework\n# https://kivy.org/\n#\nfrom __future__ import print_function\n\nimport sys\nbuild_examples = False\nif \"--build_examples\" in sys.argv:\n build_examples = True\n sys.argv.remove(\"--build_examples\")\n\nfrom copy import deepcopy\nimport os\nfrom os....
diff --git a/doc/doc-requirements.txt b/doc/doc-requirements.txt index c3dfab3387..be9dff62a1 100644 --- a/doc/doc-requirements.txt +++ b/doc/doc-requirements.txt @@ -1,4 +1,4 @@ -Cython>=0.23 +Cython>=0.24 # Frozen Sphinx requirements for easier pip installation sphinxcontrib-actdiag sphinxcontrib-blockdiag diff --...
kedro-org__kedro-1734
Make Kedro instantiate datasets from `kedro-datasets` with higher priority than `kedro.extras.datasets` https://github.com/kedro-org/kedro/blob/1b1558952c059eea5636d9ccf9a883f9cf4ef643/kedro/io/core.py#L346
[ { "content": "\"\"\"This module provides a set of classes which underpin the data loading and\nsaving functionality provided by ``kedro.io``.\n\"\"\"\n\nimport abc\nimport copy\nimport logging\nimport re\nimport warnings\nfrom collections import namedtuple\nfrom datetime import datetime, timezone\nfrom functool...
[ { "content": "\"\"\"This module provides a set of classes which underpin the data loading and\nsaving functionality provided by ``kedro.io``.\n\"\"\"\n\nimport abc\nimport copy\nimport logging\nimport re\nimport warnings\nfrom collections import namedtuple\nfrom datetime import datetime, timezone\nfrom functool...
diff --git a/RELEASE.md b/RELEASE.md index 5996bd108d..9f274159b7 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -11,8 +11,9 @@ # Upcoming Release 0.18.4 ## Major features and improvements -* The config loader objects now implement `UserDict` and the configuration is accessed through `conf_loader['catalog']` -* You ca...
flairNLP__flair-419
Logging overwrite less sweeping To be removed, once it is done: Please add the appropriate label to this ticket, e.g. feature or enhancement. **Is your feature/enhancement request related to a problem? Please describe.** When using flair in other applications, the fact that it disables existing logs in `__init__.py...
[ { "content": "import torch\n\nfrom . import data\nfrom . import models\nfrom . import visual\nfrom . import trainers\n\nimport logging.config\n\n\nlogging.config.dictConfig({\n 'version': 1,\n 'disable_existing_loggers': True,\n 'formatters': {\n 'standard': {\n 'format': '%(asctime)-...
[ { "content": "import torch\n\nfrom . import data\nfrom . import models\nfrom . import visual\nfrom . import trainers\n\nimport logging.config\n\n\nlogging.config.dictConfig({\n 'version': 1,\n 'disable_existing_loggers': False,\n 'formatters': {\n 'standard': {\n 'format': '%(asctime)...
diff --git a/flair/__init__.py b/flair/__init__.py index 7bb43a8f0f..22803f63c4 100644 --- a/flair/__init__.py +++ b/flair/__init__.py @@ -10,7 +10,7 @@ logging.config.dictConfig({ 'version': 1, - 'disable_existing_loggers': True, + 'disable_existing_loggers': False, 'formatters': { 'standar...
pyro-ppl__pyro-1629
[FR] Add tutorial on implementing new effects Users at PROBPROG 2018 requested a tutorial on high-level Pyro architecture including advanced features like poutines. This issue proposes adding a tutorial on implementing a new effect handler. Whereas #1553 should aim to explain Pyro's architecture in a simplified way...
[ { "content": "import functools\n\nfrom pyro.params.param_store import _MODULE_NAMESPACE_DIVIDER, ParamStoreDict # noqa: F401\n\n# the global pyro stack\n_PYRO_STACK = []\n\n# the global ParamStore\n_PYRO_PARAM_STORE = ParamStoreDict()\n\n\nclass _DimAllocator(object):\n \"\"\"\n Dimension allocator for i...
[ { "content": "import functools\n\nfrom pyro.params.param_store import _MODULE_NAMESPACE_DIVIDER, ParamStoreDict # noqa: F401\n\n# the global pyro stack\n_PYRO_STACK = []\n\n# the global ParamStore\n_PYRO_PARAM_STORE = ParamStoreDict()\n\n\nclass _DimAllocator(object):\n \"\"\"\n Dimension allocator for i...
diff --git a/pyro/poutine/runtime.py b/pyro/poutine/runtime.py index 72e220f069..e210741145 100644 --- a/pyro/poutine/runtime.py +++ b/pyro/poutine/runtime.py @@ -149,7 +149,7 @@ def default_process_message(msg): :param msg: a message to be processed :returns: None """ - if msg["done"] or msg["is_obse...
evennia__evennia-3018
[BUG - Develop] discord integration multiple connections #### Describe the bug I pulled the latest discord patch. it has successfully removed the traceback, but now it ends up sending each message 3 times. #### To Reproduce Steps to reproduce the behavior: 1. set up discord integration, including a bot. 2. lea...
[ { "content": "\"\"\"\nImplements Discord chat channel integration.\n\nThe Discord API uses a mix of websockets and REST API endpoints.\n\nIn order for this integration to work, you need to have your own\ndiscord bot set up via https://discord.com/developers/applications\nwith the MESSAGE CONTENT toggle switched...
[ { "content": "\"\"\"\nImplements Discord chat channel integration.\n\nThe Discord API uses a mix of websockets and REST API endpoints.\n\nIn order for this integration to work, you need to have your own\ndiscord bot set up via https://discord.com/developers/applications\nwith the MESSAGE CONTENT toggle switched...
diff --git a/evennia/server/portal/discord.py b/evennia/server/portal/discord.py index d1cb6c34c72..eab9ca1a926 100644 --- a/evennia/server/portal/discord.py +++ b/evennia/server/portal/discord.py @@ -201,7 +201,7 @@ def clientConnectionLost(self, connector, reason): reason (str): The reason for the failur...
zulip__zulip-29412
Go to newly created stream (with first-time modal) Even after #29154, users find it hard to navigate to a newly created stream. To address this, we should: 1. Take the user directly to the stream they just created. To avoid a potentially confusing interleaved view, we should go to the most recent topic in the stream...
[ { "content": "# See https://zulip.readthedocs.io/en/latest/subsystems/hotspots.html\n# for documentation on this subsystem.\nfrom dataclasses import dataclass\nfrom typing import Any, Dict, List, Optional, Union\n\nfrom django.conf import settings\nfrom django.utils.translation import gettext_lazy\nfrom django_...
[ { "content": "# See https://zulip.readthedocs.io/en/latest/subsystems/hotspots.html\n# for documentation on this subsystem.\nfrom dataclasses import dataclass\nfrom typing import Any, Dict, List, Optional, Union\n\nfrom django.conf import settings\nfrom django.utils.translation import gettext_lazy\nfrom django_...
diff --git a/web/e2e-tests/stream_create.test.ts b/web/e2e-tests/stream_create.test.ts index 7c2cc401080ff..41b3a6c76ce5c 100644 --- a/web/e2e-tests/stream_create.test.ts +++ b/web/e2e-tests/stream_create.test.ts @@ -81,6 +81,13 @@ async function create_stream(page: Page): Promise<void> { stream_description: "...
alltheplaces__alltheplaces-4633
Dunelm spider output is missing 41 branches (dunelm_gb) The Dunelm spider dunelm_gb is consistently returning 138 branches for the last few weeks. However, Dunelm's own online store-finder at https://www.dunelm.com/stores/a-z lists 179 branches. All of the 138 are included in the 179, meaning the spider is missing 41. ...
[ { "content": "from scrapy.http import JsonRequest\nfrom scrapy.spiders import Spider\n\nfrom locations.dict_parser import DictParser\nfrom locations.hours import OpeningHours\n\n\nclass DunelmGB(Spider):\n name = \"dunelm_gb\"\n item_attributes = {\"brand\": \"Dunelm\", \"brand_wikidata\": \"Q5315020\"}\n...
[ { "content": "from scrapy.http import JsonRequest\nfrom scrapy.spiders import Spider\n\nfrom locations.dict_parser import DictParser\nfrom locations.hours import OpeningHours\n\n\nclass DunelmGB(Spider):\n name = \"dunelm_gb\"\n item_attributes = {\"brand\": \"Dunelm\", \"brand_wikidata\": \"Q5315020\"}\n...
diff --git a/locations/spiders/dunelm_gb.py b/locations/spiders/dunelm_gb.py index 4dc315bf3db..55b6e6218c2 100644 --- a/locations/spiders/dunelm_gb.py +++ b/locations/spiders/dunelm_gb.py @@ -37,7 +37,6 @@ def parse(self, response, **kwargs): item["opening_hours"] = oh.as_opening_hours() - ...
pyca__cryptography-1398
Loading private numbers fails on an assertion for bad numbers (I assume they're bad numbers, either way we should never fail assertions). ``` pycon >>>> from cryptography.hazmat.primitives.asymmetric import ec >>>> from cryptography.hazmat.backends import default_backend >>>> numbers = ec.EllipticCurvePrivateNumbers( ...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, so...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, so...
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index eadea50ebd78..a449a55ed28e 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py @@ -1007,7 +1007,9 @@ def _ec_key_set_public_key_affine_coord...
aws-cloudformation__cfn-lint-2168
Unknown warning about unpublished metrics *cfn-lint version: 0.55.0* *Description of issue.* `cfn-lint template.yaml` is outputting `There are unpublished metrics. Please make sure you call publish after you record all metrics.` where previous versions of `cfn-lint` did not. This is causing the Atom plugin to dis...
[ { "content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport os\nimport logging\nimport six\nimport samtranslator\nfrom samtranslator.parser import parser\nfrom samtranslator.translator.translator import Translator\nfrom samtranslator.p...
[ { "content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport os\nimport logging\nimport six\nimport samtranslator\nfrom samtranslator.parser import parser\nfrom samtranslator.translator.translator import Translator\nfrom samtranslator.p...
diff --git a/src/cfnlint/transform.py b/src/cfnlint/transform.py index 2d0b546eb6..f57f18f5dc 100644 --- a/src/cfnlint/transform.py +++ b/src/cfnlint/transform.py @@ -15,6 +15,8 @@ from cfnlint.rules import Match, TransformError LOGGER = logging.getLogger('cfnlint') +samtranslator_logger = logging.getLogger('samtra...
vega__altair-150
to_dict() not in Chart.__dir__ All in title.
[ { "content": "import pandas as pd\nimport traitlets as T\n\nfrom ..utils._py3k_compat import string_types\n\n_attr_template = \"Attribute not found: {0}. Valid keyword arguments for this class: {1}\"\n\n\nclass BaseObject(T.HasTraits):\n\n skip = []\n\n def __init__(self, **kwargs):\n all_traits = ...
[ { "content": "import pandas as pd\nimport traitlets as T\n\nfrom ..utils._py3k_compat import string_types\n\n_attr_template = \"Attribute not found: {0}. Valid keyword arguments for this class: {1}\"\n\n\nclass BaseObject(T.HasTraits):\n\n skip = []\n\n def __init__(self, **kwargs):\n all_traits = ...
diff --git a/altair/schema/baseobject.py b/altair/schema/baseobject.py index 91511d8a2..23179f66f 100644 --- a/altair/schema/baseobject.py +++ b/altair/schema/baseobject.py @@ -115,7 +115,7 @@ def __contains__(self, key): def __dir__(self): """Customize tab completed attributes.""" - return list(...
django-cms__django-cms-4163
Ensure that ToolbarPool.get_watch_models is a list Cast `toolbar.watch_models` to a list at https://github.com/divio/django-cms/blob/develop/cms/toolbar_pool.py#L58 Without this change, you'll get a `*** TypeError: can only concatenate list (not "tuple") to list` when `watch_models` is a tuple.
[ { "content": "# -*- coding: utf-8 -*-\nfrom cms.exceptions import ToolbarAlreadyRegistered, ToolbarNotRegistered\nfrom cms.utils.conf import get_cms_setting\nfrom cms.utils.django_load import load, iterload_objects\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.utils.datastructures import...
[ { "content": "# -*- coding: utf-8 -*-\nfrom cms.exceptions import ToolbarAlreadyRegistered, ToolbarNotRegistered\nfrom cms.utils.conf import get_cms_setting\nfrom cms.utils.django_load import load, iterload_objects\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.utils.datastructures import...
diff --git a/cms/test_utils/project/placeholderapp/cms_toolbar.py b/cms/test_utils/project/placeholderapp/cms_toolbar.py index 7a680aa6a25..daee6a9aa19 100644 --- a/cms/test_utils/project/placeholderapp/cms_toolbar.py +++ b/cms/test_utils/project/placeholderapp/cms_toolbar.py @@ -12,7 +12,7 @@ @toolbar_pool.register...
huggingface__text-generation-inference-1182
Update Docker to torch 2.1? ### Feature request H100s have trouble with gptq quants due to not having latest pytorch, can in the next TGI Docker we update torch to this, or have one special for this for use on h100s? ### Motivation Cant get tgi + gptq quant to work on h100s ### Your contribution Sorry I dont have...
[ { "content": "import sys\nimport subprocess\nimport contextlib\nimport pytest\nimport asyncio\nimport os\nimport docker\nimport json\nimport math\nimport time\nimport random\n\nfrom docker.errors import NotFound\nfrom typing import Optional, List, Dict\nfrom syrupy.extensions.json import JSONSnapshotExtension\n...
[ { "content": "import sys\nimport subprocess\nimport contextlib\nimport pytest\nimport asyncio\nimport os\nimport docker\nimport json\nimport math\nimport time\nimport random\n\nfrom docker.errors import NotFound\nfrom typing import Optional, List, Dict\nfrom syrupy.extensions.json import JSONSnapshotExtension\n...
diff --git a/Dockerfile b/Dockerfile index 9c15f023e3d..cf5e0ed612c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,13 +37,13 @@ RUN cargo build --release # Python builder # Adapted from: https://github.com/pytorch/pytorch/blob/master/Dockerfile -FROM debian:bullseye-slim as pytorch-install +FROM nvidia/cuda:12.1.0...
Textualize__rich-3257
Export `rich.text.TextType` so it shows up in the reference Exporting `TextType` and making it visible in the docs means we'll be able to link to it from the Textual docs, where it shows up _a lot_.
[ { "content": "import re\nfrom functools import partial, reduce\nfrom math import gcd\nfrom operator import itemgetter\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Dict,\n Iterable,\n List,\n NamedTuple,\n Optional,\n Tuple,\n Union,\n)\n\nfrom ._loop import loop_last...
[ { "content": "import re\nfrom functools import partial, reduce\nfrom math import gcd\nfrom operator import itemgetter\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Dict,\n Iterable,\n List,\n NamedTuple,\n Optional,\n Tuple,\n Union,\n)\n\nfrom ._loop import loop_last...
diff --git a/docs/source/reference/text.rst b/docs/source/reference/text.rst index 76b41f4bb..0b929e44b 100644 --- a/docs/source/reference/text.rst +++ b/docs/source/reference/text.rst @@ -2,5 +2,5 @@ rich.text ========= .. automodule:: rich.text - :members: Text + :members: Text, TextType diff --git a/rich...
geopandas__geopandas-1670
BUG: categories passed as a series are not properly sorted If you pass a series of categories to plot, those are used directly as an array, even though the series might have an index of a different order than df. See the example below. ```python from shapely.geometry import Point import pandas as pd pts = [Poin...
[ { "content": "import warnings\n\nimport numpy as np\nimport pandas as pd\n\nimport geopandas\n\nfrom distutils.version import LooseVersion\n\n\ndef deprecated(new):\n \"\"\"Helper to provide deprecation warning.\"\"\"\n\n def old(*args, **kwargs):\n warnings.warn(\n \"{} is intended for ...
[ { "content": "import warnings\n\nimport numpy as np\nimport pandas as pd\n\nimport geopandas\n\nfrom distutils.version import LooseVersion\n\n\ndef deprecated(new):\n \"\"\"Helper to provide deprecation warning.\"\"\"\n\n def old(*args, **kwargs):\n warnings.warn(\n \"{} is intended for ...
diff --git a/geopandas/plotting.py b/geopandas/plotting.py index 8edd02a8e3..41e5fede74 100644 --- a/geopandas/plotting.py +++ b/geopandas/plotting.py @@ -636,6 +636,10 @@ def plot_dataframe( ) else: values = column + + # Make sure index of a Series matches index of df + ...
qutip__qutip-684
Reverse Circuit doesn't work Whenever i try to reverse some Circuit it throws an exception telling that temp does not have append method implemented. I checked the source code and i think that instead o append the developers meant add_gate.
[ { "content": "# This file is part of QuTiP: Quantum Toolbox in Python.\n#\n# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the followi...
[ { "content": "# This file is part of QuTiP: Quantum Toolbox in Python.\n#\n# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the followi...
diff --git a/qutip/qip/circuit.py b/qutip/qip/circuit.py index 491bb093f3..0ba190a5c7 100644 --- a/qutip/qip/circuit.py +++ b/qutip/qip/circuit.py @@ -367,8 +367,8 @@ def reverse_circuit(self): """ temp = QubitCircuit(self.N, self.reverse_states) - for i in range(self.N): - temp.ap...
pytorch__pytorch-2048
Small mistake in nn.Threshold documentation Hello, In the [documentation](http://pytorch.org/docs/master/nn.html?highlight=threshold#torch.nn.Threshold) it says ``` y = x if x >= threshold value if x < threshold ``` So the following: `torch.nn.Threshold(1,0)(torch.Tensor([1]))` should evaluate ...
[ { "content": "import torch\nfrom torch.nn.parameter import Parameter\n\nfrom .module import Module\nfrom .. import functional as F\n\n\nclass Threshold(Module):\n \"\"\"Thresholds each element of the input Tensor\n\n Threshold is defined as::\n\n y = x if x >= threshold\n valu...
[ { "content": "import torch\nfrom torch.nn.parameter import Parameter\n\nfrom .module import Module\nfrom .. import functional as F\n\n\nclass Threshold(Module):\n \"\"\"Thresholds each element of the input Tensor\n\n Threshold is defined as::\n\n y = x if x > threshold\n valu...
diff --git a/torch/nn/modules/activation.py b/torch/nn/modules/activation.py index eb062a7b5c95c3..faaf6d12eebb9d 100644 --- a/torch/nn/modules/activation.py +++ b/torch/nn/modules/activation.py @@ -10,8 +10,8 @@ class Threshold(Module): Threshold is defined as:: - y = x if x >= threshold - ...
fidals__shopelectro-456
Repeat stb's fix for front_build dir https://github.com/fidals/stroyprombeton/pull/270
[ { "content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/...
[ { "content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/...
diff --git a/.drone.yml b/.drone.yml index 583aa046..389a46eb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -74,7 +74,6 @@ pipeline: - SELENIUM_TIMEOUT_SECONDS=180 - SELENIUM_WAIT_SECONDS=180 commands: - - cp -r /drone/shopelectro/build/ front/ - cp -r /drone/deps/* /usr/local/lib/python3.6...
urllib3__urllib3-758
ca_cert_dir keyword argument may be passed to HTTPConnectionPool by accident. Seems like as part of #701 I missed the `SSL_KEYWORDS` block in `poolmanager.py`. This means that `ca_cert_dir` may accidentally be passed to the `HTTPConnectionPool`. This leads to the following error when attempting to use `ca_cert_dir` wi...
[ { "content": "from __future__ import absolute_import\nimport logging\n\ntry: # Python 3\n from urllib.parse import urljoin\nexcept ImportError:\n from urlparse import urljoin\n\nfrom ._collections import RecentlyUsedContainer\nfrom .connectionpool import HTTPConnectionPool, HTTPSConnectionPool\nfrom .con...
[ { "content": "from __future__ import absolute_import\nimport logging\n\ntry: # Python 3\n from urllib.parse import urljoin\nexcept ImportError:\n from urlparse import urljoin\n\nfrom ._collections import RecentlyUsedContainer\nfrom .connectionpool import HTTPConnectionPool, HTTPSConnectionPool\nfrom .con...
diff --git a/test/with_dummyserver/test_poolmanager.py b/test/with_dummyserver/test_poolmanager.py index c225afb667..4065ff8bab 100644 --- a/test/with_dummyserver/test_poolmanager.py +++ b/test/with_dummyserver/test_poolmanager.py @@ -162,6 +162,12 @@ def test_http_with_ssl_keywords(self): r = http.request('GE...
opsdroid__opsdroid-1683
skill-seen broken with redis database? I've been testing opsdroid with a redis database and the seen skill appears to be having problems serializing python datetime objects. user: when did you last see user? opsdroid: Whoops there has been an error. opsdroid: Check the log for details. this is the opsdroid log ...
[ { "content": "\"\"\"Module for storing data within Redis.\"\"\"\nimport json\nimport logging\n\nimport aioredis\nfrom aioredis import parser\nfrom voluptuous import Any\n\nfrom opsdroid.database import Database\nfrom opsdroid.helper import JSONEncoder, JSONDecoder\n\n_LOGGER = logging.getLogger(__name__)\nCONFI...
[ { "content": "\"\"\"Module for storing data within Redis.\"\"\"\nimport json\nimport logging\n\nimport aioredis\nfrom aioredis import parser\nfrom voluptuous import Any\n\nfrom opsdroid.database import Database\nfrom opsdroid.helper import JSONEncoder, JSONDecoder\n\n_LOGGER = logging.getLogger(__name__)\nCONFI...
diff --git a/opsdroid/database/redis/__init__.py b/opsdroid/database/redis/__init__.py index 2bdf7d583..74759e20f 100644 --- a/opsdroid/database/redis/__init__.py +++ b/opsdroid/database/redis/__init__.py @@ -94,7 +94,7 @@ async def get(self, key): data = await self.client.execute("GET", key) ...
cloud-custodian__cloud-custodian-654
related resource filter can depend on a side-effect Given this policy based largely on the examples from #541 (and the code that fixed it), an exception will be triggered. ``` policies: - name: related-rds-test description: | If databse is using default security group, adjust the retention. reso...
[ { "content": "# Copyright 2016 Capital One Services, 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 b...
[ { "content": "# Copyright 2016 Capital One Services, 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 b...
diff --git a/c7n/filters/core.py b/c7n/filters/core.py index 1d2c786ee87..fefd17e3bb5 100644 --- a/c7n/filters/core.py +++ b/c7n/filters/core.py @@ -271,7 +271,7 @@ def get_resource_value(self, k, i): elif self.expr: r = self.expr.search(i) else: - self.expr = jmespath.compile(...
pytorch__audio-1583
Use of deprecated `AutoNonVariableTypeMode`. `AutoNonVariableTypeMode` is deprecated and will be removed in PyTorch 1.10. https://github.com/pytorch/audio/search?q=AutoNonVariableTypeMode Migration: https://github.com/pytorch/pytorch/blob/master/docs/cpp/source/notes/inference_mode.rst#migration-guide-from-autono...
[ { "content": "from . import extension # noqa: F401\nfrom torchaudio._internal import module_utils as _mod_utils # noqa: F401\nfrom torchaudio import (\n compliance,\n datasets,\n functional,\n kaldi_io,\n utils,\n sox_effects,\n transforms,\n)\n\nfrom torchaudio.backend import (\n list...
[ { "content": "from . import extension # noqa: F401\nfrom torchaudio._internal import module_utils as _mod_utils # noqa: F401\nfrom torchaudio import (\n compliance,\n datasets,\n functional,\n kaldi_io,\n utils,\n sox_effects,\n transforms,\n)\n\nfrom torchaudio.backend import (\n list...
diff --git a/.circleci/unittest/linux/scripts/install.sh b/.circleci/unittest/linux/scripts/install.sh index 50a02f11e3..f5ad184390 100755 --- a/.circleci/unittest/linux/scripts/install.sh +++ b/.circleci/unittest/linux/scripts/install.sh @@ -23,21 +23,41 @@ eval "$("${conda_dir}/bin/conda" shell.bash hook)" conda act...
pretalx__pretalx-668
Resource without a resource (FileField) addressed ## Current Behavior A resource with an empty FileField causes `active_resources` to return resources that have an empty `FileField` which then crashes the talk views. I'm not sure how this `Resource` instance occurred in our database, but I suspect something like ...
[ { "content": "import re\nimport statistics\nimport string\nimport uuid\nimport warnings\nfrom contextlib import suppress\nfrom datetime import timedelta\n\nfrom django.conf import settings\nfrom django.db import models\nfrom django.db.models.fields.files import FieldFile\nfrom django.utils.crypto import get_ran...
[ { "content": "import re\nimport statistics\nimport string\nimport uuid\nimport warnings\nfrom contextlib import suppress\nfrom datetime import timedelta\n\nfrom django.conf import settings\nfrom django.db import models\nfrom django.db.models.fields.files import FieldFile\nfrom django.utils.crypto import get_ran...
diff --git a/src/pretalx/submission/models/submission.py b/src/pretalx/submission/models/submission.py index b82aed2b61..e0bc5ca38a 100644 --- a/src/pretalx/submission/models/submission.py +++ b/src/pretalx/submission/models/submission.py @@ -476,7 +476,7 @@ def median_score(self): @cached_property def acti...
sktime__sktime-5710
[BUG] Irreproducible results with `MultiRocketMultivariate` `random_state` does guarantee the same results for each run. ```python rng = np.random.default_rng() X = pd.DataFrame([ pd.Series([ pd.Series(rng.integers(0, 10, 100)).astype(float), pd.Series(rng.integers(0, 10, 100)).astype(floa...
[ { "content": "import multiprocessing\n\nimport numpy as np\nimport pandas as pd\n\nfrom sktime.transformations.base import BaseTransformer\n\n\nclass MultiRocketMultivariate(BaseTransformer):\n \"\"\"Multi RandOm Convolutional KErnel Transform (MultiRocket).\n\n MultiRocket [1]_ is uses the same set of ke...
[ { "content": "import multiprocessing\n\nimport numpy as np\nimport pandas as pd\n\nfrom sktime.transformations.base import BaseTransformer\n\n\nclass MultiRocketMultivariate(BaseTransformer):\n \"\"\"Multi RandOm Convolutional KErnel Transform (MultiRocket).\n\n MultiRocket [1]_ is uses the same set of ke...
diff --git a/sktime/transformations/panel/rocket/_multirocket_multivariate.py b/sktime/transformations/panel/rocket/_multirocket_multivariate.py index 1fe4813f47d..41b905d9371 100644 --- a/sktime/transformations/panel/rocket/_multirocket_multivariate.py +++ b/sktime/transformations/panel/rocket/_multirocket_multivariat...
googleapis__google-cloud-python-5366
General: v0.33.0 pip install fails In a fresh Python v2.7.12 virtualenv on linux: ``` pip install google-cloud ``` Results in: ``` Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-3_n60m/google-cloud/setup.py", line 22, in <module> with op...
[ { "content": "# Copyright 2016 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
[ { "content": "# Copyright 2016 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index e835c5e94a5a..000000000000 --- a/MANIFEST.in +++ /dev/null @@ -1,2 +0,0 @@ -include README.rst -global-exclude *.pyc diff --git a/legacy/google-cloud/MANIFEST.in b/legacy/google-cloud/MANIFEST.in new file mode 100644 index 000000000000..e73a89048601 ...
ansible-collections__community.aws-542
SSM connection plugin doesnt properly close connections ##### SUMMARY When trying to run a big playbook using the SSM connection plugin, it randomly hangs in the middle of it. Very rarely am I able to run the entire playbook without issues. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ssm connection plug...
[ { "content": "# Based on the ssh connection plugin by Michael DeHaan\n#\n# Copyright: (c) 2018, Pat Sharkey <psharkey@cleo.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = typ...
[ { "content": "# Based on the ssh connection plugin by Michael DeHaan\n#\n# Copyright: (c) 2018, Pat Sharkey <psharkey@cleo.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = typ...
diff --git a/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml b/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml new file mode 100644 index 00000000000..1cbe860d1d2 --- /dev/null +++ b/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml @@ -0,0 +1,2 @@ +bugfix...
conda__conda-7244
conda's configuration context is not initialized in conda.exports root cause of https://github.com/conda-forge/conda-smithy/issues/762
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import Hashable\nfrom logging import getLogger\nimport threading\nfrom warnings import warn\n\nlog = getLogger(__name__)\n\nfrom . import CondaError # NOQA\nCondaError =...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import Hashable\nfrom logging import getLogger\nimport threading\nfrom warnings import warn\n\nlog = getLogger(__name__)\n\nfrom . import CondaError # NOQA\nCondaError =...
diff --git a/conda/exports.py b/conda/exports.py index 67af538f63d..62b755d58f8 100644 --- a/conda/exports.py +++ b/conda/exports.py @@ -11,6 +11,9 @@ from . import CondaError # NOQA CondaError = CondaError +from .base.context import reset_context # NOQA +reset_context() # initialize context when conda.exports i...
django-import-export__django-import-export-1039
DecimalWidget should be initialized from text As [per doc](https://docs.python.org/3/library/decimal.html): ```python >>> Decimal('3.14') Decimal('3.14') >>> Decimal(3.14) Decimal('3.140000000000000124344978758017532527446746826171875') ``` When I've changed this line: https://github.com/django-import-expor...
[ { "content": "import json\nfrom datetime import date, datetime\nfrom decimal import Decimal\n\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.utils import datetime_safe, timezone\nfrom django.utils.dateparse import parse_duration\nfrom django.utils.encoding ...
[ { "content": "import json\nfrom datetime import date, datetime\nfrom decimal import Decimal\n\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.utils import datetime_safe, timezone\nfrom django.utils.dateparse import parse_duration\nfrom django.utils.encoding ...
diff --git a/import_export/widgets.py b/import_export/widgets.py index 9bb9a210b..58b943946 100644 --- a/import_export/widgets.py +++ b/import_export/widgets.py @@ -85,7 +85,7 @@ class DecimalWidget(NumberWidget): def clean(self, value, row=None, *args, **kwargs): if self.is_empty(value): ret...
qutebrowser__qutebrowser-648
Logo qutebrowser still needs a logo! Some random ideas: - `qutebrowser` in some "cute" (fur?) font - A `q` which is composed of a globe (because browsers need a globe) and a snake "hanging" around it. Ideally with either the snake or the globe being cute. :grin:
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2015 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2015 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
diff --git a/qutebrowser/misc/split.py b/qutebrowser/misc/split.py index bd1904763d6..b763d824652 100644 --- a/qutebrowser/misc/split.py +++ b/qutebrowser/misc/split.py @@ -127,7 +127,7 @@ def split(s, keep=False): """Split a string via ShellLexer. Args: - keep: Whether to keep are special chars in t...
conda__conda-7241
conda's configuration context is not initialized in conda.exports root cause of https://github.com/conda-forge/conda-smithy/issues/762
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import Hashable\nfrom logging import getLogger\nimport threading\nfrom warnings import warn\n\nlog = getLogger(__name__)\n\nfrom . import CondaError # NOQA\nCondaError =...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import Hashable\nfrom logging import getLogger\nimport threading\nfrom warnings import warn\n\nlog = getLogger(__name__)\n\nfrom . import CondaError # NOQA\nCondaError =...
diff --git a/conda/exports.py b/conda/exports.py index 67af538f63d..62b755d58f8 100644 --- a/conda/exports.py +++ b/conda/exports.py @@ -11,6 +11,9 @@ from . import CondaError # NOQA CondaError = CondaError +from .base.context import reset_context # NOQA +reset_context() # initialize context when conda.exports i...
ktbyers__netmiko-1073
Huawei vrpv8 commit func issue After commiting changes on huawei vrpv8, cli on devices look like this: ``` [~HUAWEI]dot1x enable [*HUAWEI]snmp-agent sys-info version all Warning: SNMPv1/SNMPv2c is not secure, and SNMPv3 in either authentication or privacy mode is recommended. [*HUAWEI]commit [~HUAWEI] ``` ...
[ { "content": "from __future__ import print_function\nfrom __future__ import unicode_literals\nimport time\nimport re\nfrom netmiko.cisco_base_connection import CiscoSSHConnection\nfrom netmiko import log\n\n\nclass HuaweiSSH(CiscoSSHConnection):\n def session_preparation(self):\n \"\"\"Prepare the ses...
[ { "content": "from __future__ import print_function\nfrom __future__ import unicode_literals\nimport time\nimport re\nfrom netmiko.cisco_base_connection import CiscoSSHConnection\nfrom netmiko import log\n\n\nclass HuaweiSSH(CiscoSSHConnection):\n def session_preparation(self):\n \"\"\"Prepare the ses...
diff --git a/netmiko/huawei/huawei_ssh.py b/netmiko/huawei/huawei_ssh.py index 7cc06f5c3..ecac49755 100644 --- a/netmiko/huawei/huawei_ssh.py +++ b/netmiko/huawei/huawei_ssh.py @@ -115,6 +115,7 @@ def commit(self, comment="", delay_factor=1): strip_prompt=False, strip_command=False, ...
MongoEngine__mongoengine-1461
__neq__ protocol in datastructure.py ```python def __eq__(self, other): return self.items() == other.items() def __neq__(self, other): return self.items() != other.items() ``` defined in [base/datastructures.py](https://github.com/MongoEngine/mongoengine/blob/master/mongoengine/base/data...
[ { "content": "import itertools\nimport weakref\n\nimport six\n\nfrom mongoengine.common import _import_class\nfrom mongoengine.errors import DoesNotExist, MultipleObjectsReturned\n\n__all__ = ('BaseDict', 'BaseList', 'EmbeddedDocumentList')\n\n\nclass BaseDict(dict):\n \"\"\"A special dict so we can watch an...
[ { "content": "import itertools\nimport weakref\n\nimport six\n\nfrom mongoengine.common import _import_class\nfrom mongoengine.errors import DoesNotExist, MultipleObjectsReturned\n\n__all__ = ('BaseDict', 'BaseList', 'EmbeddedDocumentList')\n\n\nclass BaseDict(dict):\n \"\"\"A special dict so we can watch an...
diff --git a/mongoengine/base/datastructures.py b/mongoengine/base/datastructures.py index 8a7681e5d..b9aca8fae 100644 --- a/mongoengine/base/datastructures.py +++ b/mongoengine/base/datastructures.py @@ -429,7 +429,7 @@ def __len__(self): def __eq__(self, other): return self.items() == other.items() - ...
dotkom__onlineweb4-402
Sort list of users when adding marks When adding a mark, the list of user which the mark should relate to is not sorted. It should be. (It is probably sorted on realname instead of username) - Change the list to display realname instead of username. - Make sure it's sorted. (Bonus would be to have a select2js-ish sear...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport datetime\nfrom pytz import timezone\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AbstractUser\nfrom django.db import models\nfrom django.utils.translation import ugettext as _\nfrom django.utils import timezone\n\n\n# If this list is...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport datetime\nfrom pytz import timezone\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AbstractUser\nfrom django.db import models\nfrom django.utils.translation import ugettext as _\nfrom django.utils import timezone\n\n\n# If this list is...
diff --git a/apps/authentication/models.py b/apps/authentication/models.py index e6a918027..919e75fcf 100644 --- a/apps/authentication/models.py +++ b/apps/authentication/models.py @@ -116,6 +116,7 @@ def __unicode__(self): return self.get_full_name() class Meta: + ordering = ['first_name', 'last...
beetbox__beets-3267
Data files are unreadable when beets is installed as an egg Following up from [a related Discourse thread](https://discourse.beets.io/t/error-running-from-source/739?u=arcresu), we noticed that beets isn't happy when it's installed as an egg. This is currently the default way beets is installed if you run `setup.py ins...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Softwar...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Softwar...
diff --git a/setup.py b/setup.py index 1aacfc1c96..8e98282236 100755 --- a/setup.py +++ b/setup.py @@ -65,6 +65,7 @@ def build_manpages(): platforms='ALL', long_description=_read('README.rst'), test_suite='test.testall.suite', + zip_safe=False, include_package_data=True, # Install plugin resourc...
fossasia__open-event-server-2795
Design issues on session, schedule, CfS page * [ ] On the event page the left sidebar stays there when the user scrolls down. Please implement this on the other pages as well, e.g. https://eventyay.com/e/18252ab6/schedule/ * [ ] sessions page * [ ] schedule page * [ ] call for speakers page * [ ] The trac...
[ { "content": "from flask.ext.restplus import Namespace, reqparse\nfrom sqlalchemy.orm.collections import InstrumentedList\n\nfrom app.helpers.data import record_activity, save_to_db\nfrom app.helpers.data_getter import DataGetter\nfrom app.helpers.notification_email_triggers import trigger_new_session_notificat...
[ { "content": "from flask.ext.restplus import Namespace, reqparse\nfrom sqlalchemy.orm.collections import InstrumentedList\n\nfrom app.helpers.data import record_activity, save_to_db\nfrom app.helpers.data_getter import DataGetter\nfrom app.helpers.notification_email_triggers import trigger_new_session_notificat...
diff --git a/app/api/sessions.py b/app/api/sessions.py index 7f16676763..80bcb3fa61 100644 --- a/app/api/sessions.py +++ b/app/api/sessions.py @@ -30,6 +30,7 @@ SESSION_TRACK = api.model('SessionTrack', { 'id': fields.Integer(required=True), 'name': fields.String(), + 'color': fields.Color(), }) SESSI...
ivy-llc__ivy-18357
[Feature Request]: size attribute of numpy ndarray **Is your feature request related to a problem? Please describe.** size attribute needs to be added to ndarray class of numpy frontend
[ { "content": "# global\n\n# local\nimport ivy\nimport ivy.functional.frontends.numpy as np_frontend\nfrom ivy.functional.frontends.numpy.func_wrapper import _to_ivy_array\n\n\nclass ndarray:\n def __init__(self, shape, dtype=\"float32\", order=None, _init_overload=False):\n if isinstance(dtype, np_fro...
[ { "content": "# global\n\n# local\nimport ivy\nimport ivy.functional.frontends.numpy as np_frontend\nfrom ivy.functional.frontends.numpy.func_wrapper import _to_ivy_array\n\n\nclass ndarray:\n def __init__(self, shape, dtype=\"float32\", order=None, _init_overload=False):\n if isinstance(dtype, np_fro...
diff --git a/ivy/functional/frontends/numpy/ndarray/ndarray.py b/ivy/functional/frontends/numpy/ndarray/ndarray.py index eabf4c2e8531a..dae5f288c02ac 100644 --- a/ivy/functional/frontends/numpy/ndarray/ndarray.py +++ b/ivy/functional/frontends/numpy/ndarray/ndarray.py @@ -49,6 +49,10 @@ def T(self): def shape(self...
pypa__pipenv-2515
"pipenv shell" doesn't work for Python2 ##### Issue description Running "pipenv shell" for a Python 2.7 project fails. Using: * Python 2.7.15 * pip 10.0.1 * pipenv, version 2018.7.1 Seems like "subprocess.run()" has been introduced in shells.py ( in #2371 ), while this api was introduced only from Python 3....
[ { "content": "import collections\nimport contextlib\nimport os\nimport signal\nimport subprocess\nimport sys\n\nfrom ._compat import get_terminal_size, Path\nfrom .environments import PIPENV_SHELL_EXPLICIT, PIPENV_SHELL, PIPENV_EMULATOR\nfrom .utils import temp_environ\nfrom .vendor import shellingham\n\n\nShel...
[ { "content": "import collections\nimport contextlib\nimport os\nimport signal\nimport subprocess\nimport sys\n\nfrom ._compat import get_terminal_size, Path\nfrom .environments import PIPENV_SHELL_EXPLICIT, PIPENV_SHELL, PIPENV_EMULATOR\nfrom .utils import temp_environ\nfrom .vendor import shellingham\n\n\nShel...
diff --git a/pipenv/shells.py b/pipenv/shells.py index 5961310c34..0081ef5d12 100644 --- a/pipenv/shells.py +++ b/pipenv/shells.py @@ -59,8 +59,7 @@ def _handover(cmd, args): if os.name != "nt": os.execvp(cmd, args) else: - proc = subprocess.run(args, shell=True, universal_newlines=True) - ...
cupy__cupy-3570
cupy.percentile only calculates integer percentiles when the input data is an integer. This seems to be caused by a cast of the percentiles array `q` to the same type as the input array `a` in the cupy.percentile source : https://github.com/cupy/cupy/blob/adfcc44bc9a17886a340cd85b7c9ebadd94b38a1/cupy/statistics/orde...
[ { "content": "import warnings\n\nimport cupy\nfrom cupy import core\nfrom cupy.core import _routines_statistics as _statistics\nfrom cupy.core import _fusion_thread_local\nfrom cupy.logic import content\n\n\ndef amin(a, axis=None, out=None, keepdims=False):\n \"\"\"Returns the minimum of an array or the mini...
[ { "content": "import warnings\n\nimport cupy\nfrom cupy import core\nfrom cupy.core import _routines_statistics as _statistics\nfrom cupy.core import _fusion_thread_local\nfrom cupy.logic import content\n\n\ndef amin(a, axis=None, out=None, keepdims=False):\n \"\"\"Returns the minimum of an array or the mini...
diff --git a/cupy/statistics/order.py b/cupy/statistics/order.py index 77d29577046..2558876489f 100644 --- a/cupy/statistics/order.py +++ b/cupy/statistics/order.py @@ -186,7 +186,8 @@ def percentile(a, q, axis=None, out=None, interpolation='linear', .. seealso:: :func:`numpy.percentile` """ - q = cupy.a...
beetbox__beets-806
mpdstats: single or last song isn't rated and counted The `mpdstats` plugin won't update `play_count`+`rating` for the last (or only) song in the playlist. (paging @pscn and @kljohann) mpdstats: single or last song isn't rated and counted The `mpdstats` plugin won't update `play_count`+`rating` for the last (or only) ...
[ { "content": "# coding=utf-8\n# This file is part of beets.\n# Copyright 2013, Peter Schnebel and Johann Klähn.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restric...
[ { "content": "# coding=utf-8\n# This file is part of beets.\n# Copyright 2013, Peter Schnebel and Johann Klähn.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restric...
diff --git a/beetsplug/mpdstats.py b/beetsplug/mpdstats.py index 41a0e7d6a2..56522a8ded 100644 --- a/beetsplug/mpdstats.py +++ b/beetsplug/mpdstats.py @@ -245,6 +245,10 @@ def handle_skipped(self, song): def on_stop(self, status): log.info(u'mpdstats: stop') + + if self.now_playing: + ...
conda__conda-6668
Installation of local packages breaks conda 4.4.6 Not sure whether this is a duplicate of https://github.com/conda/conda/issues/6621 Apparently, installing local packages (such as `conda install <path-to-pkg.tar.bz2>`) breaks the conda environment with conda 4.4.6. Consider the following script that 1. installs ...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import namedtuple\nfrom logging import getLogger\nimport re\n\nfrom .channel import Channel\nfrom .index_record import IndexRecord, PackageRef\nfrom .package_info import ...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import namedtuple\nfrom logging import getLogger\nimport re\n\nfrom .channel import Channel\nfrom .index_record import IndexRecord, PackageRef\nfrom .package_info import ...
diff --git a/conda/models/dist.py b/conda/models/dist.py index c76c27b7621..4a87e146f2b 100644 --- a/conda/models/dist.py +++ b/conda/models/dist.py @@ -147,7 +147,7 @@ def from_string(cls, string, channel_override=NULL): if channel_override != NULL: channel = channel_override - elif chan...
CTFd__CTFd-1531
solves undefined if visibility is set to hidden **Environment**: - CTFd Version/Commit: adc70fb320242d5e4df1a7ce2d107c0e2b8039e7 - Operating System: Ubuntu 18.04 - Web Browser and Version: Safari 13.1.1, Chrome 83.0.4103.106 **What happened?** When _Score Visibility_ or _Account Visibility_ is not public, us...
[ { "content": "import datetime\nfrom typing import List\n\nfrom flask import abort, render_template, request, url_for\nfrom flask_restx import Namespace, Resource\nfrom sqlalchemy.sql import and_\n\nfrom CTFd.api.v1.helpers.models import build_model_filters\nfrom CTFd.api.v1.helpers.request import validate_args\...
[ { "content": "import datetime\nfrom typing import List\n\nfrom flask import abort, render_template, request, url_for\nfrom flask_restx import Namespace, Resource\nfrom sqlalchemy.sql import and_\n\nfrom CTFd.api.v1.helpers.models import build_model_filters\nfrom CTFd.api.v1.helpers.request import validate_args\...
diff --git a/CTFd/api/v1/challenges.py b/CTFd/api/v1/challenges.py index 440547010..5b5621f91 100644 --- a/CTFd/api/v1/challenges.py +++ b/CTFd/api/v1/challenges.py @@ -374,6 +374,7 @@ def get(self, challenge_id): response["solves"] = solves else: response["solves"] = None + ...
mne-tools__mne-python-3718
ENH?: News / updates It seems like we should have a little news/updates section of one-liners on the website, including things like: 1. Release notifications 2. Upcoming MNE-Python workshops 3. Upcoming coding sprints If people agree I can put some old ones (last couple of release dates), and we can add to it as annou...
[ { "content": "#!/usr/bin/env python\n\"\"\"Parse google scholar -> rst for MNE citations.\n\nExample usage::\n\n $ cited_mne --backend selenium --clear\n\n\"\"\"\n\n# Author: Mainak Jas <mainak.jas@telecom-paristech.fr>\n# License : BSD 3-clause\n\n# Parts of this code were copied from google_scholar_parser\...
[ { "content": "#!/usr/bin/env python\n\"\"\"Parse google scholar -> rst for MNE citations.\n\nExample usage::\n\n $ cited_mne --backend selenium --clear\n\n\"\"\"\n\n# Author: Mainak Jas <mainak.jas@telecom-paristech.fr>\n# License : BSD 3-clause\n\n# Parts of this code were copied from google_scholar_parser\...
diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 274a91c295d..88dd326385c 100755 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -5,7 +5,7 @@ {% block extrahead %} -<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='styleshe...