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
lnbits__lnbits-1278
[BUG] Topup button visible but request returns 401 unauthorized **Describe the bug** The "+" topup button is visible for an admin user (set via LNBITS_ADMIN_USERS env variable) but clicking it (specifying amount + enter) returns 401 unauthorized **Expected behavior** I expect the topup button to not even be visibl...
[ { "content": "import asyncio\nfrom http import HTTPStatus\nfrom typing import Optional\n\nfrom fastapi import Depends, Query, Request, status\nfrom fastapi.exceptions import HTTPException\nfrom fastapi.responses import FileResponse, RedirectResponse\nfrom fastapi.routing import APIRouter\nfrom loguru import log...
[ { "content": "import asyncio\nfrom http import HTTPStatus\nfrom typing import Optional\n\nfrom fastapi import Depends, Query, Request, status\nfrom fastapi.exceptions import HTTPException\nfrom fastapi.responses import FileResponse, RedirectResponse\nfrom fastapi.routing import APIRouter\nfrom loguru import log...
diff --git a/.env.example b/.env.example index bb4e64a12f..6a3710c2fc 100644 --- a/.env.example +++ b/.env.example @@ -11,7 +11,11 @@ LNBITS_ALLOWED_USERS="" LNBITS_ADMIN_USERS="" # Extensions only admin can access LNBITS_ADMIN_EXTENSIONS="ngrok, admin" + # Enable Admin GUI, available for the first user in LNBITS_A...
spack__spack-18515
SpecList has instances of mutable types as default __init__ arguments While debugging #18338 I stepped on this definition: https://github.com/spack/spack/blob/3701633937a80c56ce212cd77c82c082f705e7ad/lib/spack/spack/spec_list.py#L26-L30 that might cause unwanted interactions between different instances of `SpecLi...
[ { "content": "# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\nimport itertools\nfrom six import string_types\n\nimport spack.variant\nfrom spack.spec import Sp...
[ { "content": "# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\nimport itertools\nfrom six import string_types\n\nimport spack.variant\nfrom spack.spec import Sp...
diff --git a/lib/spack/spack/spec_list.py b/lib/spack/spack/spec_list.py index bc473f530cce11..1aa0ab870e665d 100644 --- a/lib/spack/spack/spec_list.py +++ b/lib/spack/spack/spec_list.py @@ -25,7 +25,11 @@ def spec_ordering_key(s): class SpecList(object): - def __init__(self, name='specs', yaml_list=[], referen...
open-telemetry__opentelemetry-python-2414
Did you mean to use f-string here? Did you mean to use f-string here? _Originally posted by @lonewolf3739 in https://github.com/open-telemetry/opentelemetry-python/pull/2405#discussion_r792096137_
[ { "content": "# Copyright The OpenTelemetry 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...
[ { "content": "# Copyright The OpenTelemetry 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...
diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/_metrics/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/_metrics/__init__.py index 705e814d695..4f0d5d141aa 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/_metrics/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/_metrics/__init__.py @@ -205,7 +...
falconry__falcon-1593
Official support for CPython 3.8 CPython 3.8.0 was [released Oct 14, 2019](https://www.python.org/downloads/release/python-380/). Make Falcon offically support CPython 3.8: - [ ] README - [ ] Docker images - [ ] Docs - [ ] Tox - [ ] Travis - [ ] setup.py
[ { "content": "import glob\nimport imp\nimport io\nimport os\nfrom os import path\nimport re\nimport sys\n\nfrom setuptools import Extension, find_packages, setup\n\nMYDIR = path.abspath(os.path.dirname(__file__))\n\nVERSION = imp.load_source('version', path.join('.', 'falcon', 'version.py'))\nVERSION = VERSION....
[ { "content": "import glob\nimport imp\nimport io\nimport os\nfrom os import path\nimport re\nimport sys\n\nfrom setuptools import Extension, find_packages, setup\n\nMYDIR = path.abspath(os.path.dirname(__file__))\n\nVERSION = imp.load_source('version', path.join('.', 'falcon', 'version.py'))\nVERSION = VERSION....
diff --git a/.travis.yml b/.travis.yml index 70e19189e..780d04583 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,10 @@ matrix: env: TOXENV=hug - python: 3.7 env: TOXENV=check_vendored + - python: 3.8 + env: TOXENV=py38 + - python: 3.8 + env: TOXENV...
freqtrade__freqtrade-2197
Build number in -dev versioning Since we do not have a build number in the -dev version, it may be quite complex to understand which particular version of freqtrade the user runs (especially with that your conda). So if we change user interface I guess it's better for a while to make those changes along with changing t...
[ { "content": "\"\"\" FreqTrade bot \"\"\"\n__version__ = '2019.7-dev'\n\n\nclass DependencyException(Exception):\n \"\"\"\n Indicates that an assumed dependency is not met.\n This could happen when there is currently not enough money on the account.\n \"\"\"\n\n\nclass OperationalException(Exception...
[ { "content": "\"\"\" FreqTrade bot \"\"\"\n__version__ = 'develop'\n\nif __version__ == 'develop':\n\n try:\n import subprocess\n __version__ = 'develop-' + subprocess.check_output(\n ['git', 'log', '--format=\"%h\"', '-n 1'],\n stderr=subprocess.DEVNULL).decode(\"utf-8\")...
diff --git a/freqtrade/__init__.py b/freqtrade/__init__.py index 5ccc2ff3cf0..83fee0b0d70 100644 --- a/freqtrade/__init__.py +++ b/freqtrade/__init__.py @@ -1,5 +1,16 @@ """ FreqTrade bot """ -__version__ = '2019.7-dev' +__version__ = 'develop' + +if __version__ == 'develop': + + try: + import subprocess + ...
django-oscar__django-oscar-1866
ShippingAddressView.get_initial <Country: XXX> is not JSON serializable If you are to return back to the shipping address after you've reached further into the checkout process and you selected a country from the list, doing a GET request to the address /checkout/shipping-address/ would result in the following error: ...
[ { "content": "import logging\n\nfrom django import http\nfrom django.contrib import messages\nfrom django.contrib.auth import login\nfrom django.core.urlresolvers import reverse, reverse_lazy\nfrom django.shortcuts import redirect\nfrom django.utils import six\nfrom django.utils.http import urlquote\nfrom djang...
[ { "content": "import logging\n\nfrom django import http\nfrom django.contrib import messages\nfrom django.contrib.auth import login\nfrom django.core.urlresolvers import reverse, reverse_lazy\nfrom django.shortcuts import redirect\nfrom django.utils import six\nfrom django.utils.http import urlquote\nfrom djang...
diff --git a/src/oscar/apps/checkout/views.py b/src/oscar/apps/checkout/views.py index b8372f4375a..f464ecf73f8 100644 --- a/src/oscar/apps/checkout/views.py +++ b/src/oscar/apps/checkout/views.py @@ -140,6 +140,7 @@ class ShippingAddressView(CheckoutSessionMixin, generic.FormView): def get_initial(self): ...
aio-libs__aiohttp-3434
Design good distribution extras support Follow-up https://github.com/aio-libs/aiohttp/pull/2312#issuecomment-339335603: this issue is intended to encourage discussion about adding extras support. There's several optional dependencies mentioned in docs, and they instruct users to do `pip install {{dep_name}}`. Com...
[ { "content": "import codecs\nimport pathlib\nimport re\nimport sys\nfrom distutils.command.build_ext import build_ext\nfrom distutils.errors import (CCompilerError, DistutilsExecError,\n DistutilsPlatformError)\n\nfrom setuptools import Extension, setup\n\n\nif sys.version_info < (3...
[ { "content": "import codecs\nimport pathlib\nimport re\nimport sys\nfrom distutils.command.build_ext import build_ext\nfrom distutils.errors import (CCompilerError, DistutilsExecError,\n DistutilsPlatformError)\n\nfrom setuptools import Extension, setup\n\n\nif sys.version_info < (3...
diff --git a/setup.py b/setup.py index 19afe83758e..5f477ef0824 100644 --- a/setup.py +++ b/setup.py @@ -151,6 +151,13 @@ def read(f): packages=['aiohttp'], python_requires='>=3.5.3', install_requires=install_requires, + extras_require={ + 'speedups': [ + 'aiodns', + 'brot...
PrefectHQ__prefect-1991
ifelse checks for True/False rather than truthy/falsy values ## Description `prefect.tasks.control_flow.conditional.ifelse` should check for truthy/falsy values, but (relying on `switch`) checks for exact equality to `True` or `False`. ## Expected Behavior [From the docs](https://docs.prefect.io/core/task_library/...
[ { "content": "from typing import Any, Dict\n\nimport prefect\nfrom prefect import Task\nfrom prefect.engine import signals\n\n__all__ = [\"switch\", \"ifelse\"]\n\n\nclass Merge(Task):\n def __init__(self, **kwargs) -> None:\n if kwargs.setdefault(\"skip_on_upstream_skip\", False):\n raise ...
[ { "content": "from typing import Any, Dict\n\nimport prefect\nfrom prefect import Task\nfrom prefect.engine import signals\n\n__all__ = [\"switch\", \"ifelse\"]\n\n\nclass Merge(Task):\n def __init__(self, **kwargs) -> None:\n if kwargs.setdefault(\"skip_on_upstream_skip\", False):\n raise ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 29fec3ae4069..56a8bed5f289 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ These changes are available in the [master branch](https://github.com/PrefectHQ/ ### Fixes -- None +- Ensure `ifelse` casts its condition to `bool` prior to evaluation - [#1991](...
locustio__locust-2451
2.18 - fasthttp error for no content response ### Prerequisites - [X] I am using [the latest version of Locust](https://github.com/locustio/locust/releases/) - [X] I am reporting a bug, not asking a question ### Description Sending a request that generates a no content response is throwing a error when using fasthtt...
[ { "content": "from __future__ import annotations\nimport re\nimport socket\nimport json\nimport json as unshadowed_json # some methods take a named parameter called json\nfrom base64 import b64encode\nfrom contextlib import contextmanager\nfrom json.decoder import JSONDecodeError\nfrom urllib.parse import urlp...
[ { "content": "from __future__ import annotations\nimport re\nimport socket\nimport json\nimport json as unshadowed_json # some methods take a named parameter called json\nfrom base64 import b64encode\nfrom contextlib import contextmanager\nfrom json.decoder import JSONDecodeError\nfrom urllib.parse import urlp...
diff --git a/locust/contrib/fasthttp.py b/locust/contrib/fasthttp.py index 9887b06297..4f0720e2a4 100644 --- a/locust/contrib/fasthttp.py +++ b/locust/contrib/fasthttp.py @@ -463,7 +463,7 @@ def text(self) -> Optional[str]: if self.headers is None: self.encoding = "utf-8" else...
encode__starlette-1940
middleware causes exceptions to not be raised/handled silently ### Discussed in https://github.com/encode/starlette/discussions/1976 <div type='discussions-op-text'> <sup>Originally posted by **fraser-langton** December 6, 2022</sup> From [issue in FastAPI](https://github.com/tiangolo/fastapi/issues/5173) - iss...
[ { "content": "import typing\n\nimport anyio\n\nfrom starlette.requests import Request\nfrom starlette.responses import Response, StreamingResponse\nfrom starlette.types import ASGIApp, Message, Receive, Scope, Send\n\nRequestResponseEndpoint = typing.Callable[[Request], typing.Awaitable[Response]]\nDispatchFunc...
[ { "content": "import typing\n\nimport anyio\n\nfrom starlette.requests import Request\nfrom starlette.responses import Response, StreamingResponse\nfrom starlette.types import ASGIApp, Message, Receive, Scope, Send\n\nRequestResponseEndpoint = typing.Callable[[Request], typing.Awaitable[Response]]\nDispatchFunc...
diff --git a/starlette/middleware/base.py b/starlette/middleware/base.py index 586c9870d..8f2f02ea0 100644 --- a/starlette/middleware/base.py +++ b/starlette/middleware/base.py @@ -89,8 +89,6 @@ async def body_stream() -> typing.AsyncGenerator[bytes, None]: body = message.get("body", b"") ...
zulip__zulip-20905
docs: Some of the Nginx words are not capitalized. E.g. https://github.com/zulip/zulip/blob/fd1d4e101b5d6baaa19ae3166e568244c2582f26/docs/production/authentication-methods.md?plain=1#L768
[ { "content": "import os\nfrom typing import List, Union\n\nfrom django.conf import settings\nfrom django.conf.urls import include\nfrom django.conf.urls.i18n import i18n_patterns\nfrom django.contrib.auth.views import (\n LoginView,\n PasswordResetCompleteView,\n PasswordResetConfirmView,\n Password...
[ { "content": "import os\nfrom typing import List, Union\n\nfrom django.conf import settings\nfrom django.conf.urls import include\nfrom django.conf.urls.i18n import i18n_patterns\nfrom django.contrib.auth.views import (\n LoginView,\n PasswordResetCompleteView,\n PasswordResetConfirmView,\n Password...
diff --git a/docs/production/install-existing-server.md b/docs/production/install-existing-server.md index e46e43e31194f..be587851ef076 100644 --- a/docs/production/install-existing-server.md +++ b/docs/production/install-existing-server.md @@ -21,7 +21,7 @@ Linux sysadmin, you will have a much better experience if you...
scrapy__scrapy-3371
AttributeError from contract errback When running a contract with a URL that returns non-200 response, I get the following: ``` 2018-08-09 14:40:23 [scrapy.core.scraper] ERROR: Spider error processing <GET https://www.bureauxlocaux.com/annonce/a-louer-bureaux-a-louer-a-nantes--1289-358662> (referer: None) Traceback ...
[ { "content": "import sys\nimport re\nfrom functools import wraps\nfrom unittest import TestCase\n\nfrom scrapy.http import Request\nfrom scrapy.utils.spider import iterate_spider_output\nfrom scrapy.utils.python import get_spec\n\n\nclass ContractsManager(object):\n contracts = {}\n\n def __init__(self, c...
[ { "content": "import sys\nimport re\nfrom functools import wraps\nfrom unittest import TestCase\n\nfrom scrapy.http import Request\nfrom scrapy.utils.spider import iterate_spider_output\nfrom scrapy.utils.python import get_spec\n\n\nclass ContractsManager(object):\n contracts = {}\n\n def __init__(self, c...
diff --git a/scrapy/contracts/__init__.py b/scrapy/contracts/__init__.py index 5eaee3d11be..8315d21d2ef 100644 --- a/scrapy/contracts/__init__.py +++ b/scrapy/contracts/__init__.py @@ -84,7 +84,7 @@ def cb_wrapper(response): def eb_wrapper(failure): case = _create_testcase(method, 'errback') - ...
keras-team__keras-19484
keras adamw optimizer failed with callable parameters in TensorFlow2.16 When we were working on upgrading keras 2 to keras 3 in TensorFlow plugin, one of our adamw related unit test failed, which is a sub unit test using callable lambda as learning_rate argument. We also found this ut failed in TensorFlow2.16 official...
[ { "content": "import re\nimport warnings\n\nimport numpy as np\n\nfrom keras import backend\nfrom keras import initializers\nfrom keras import ops\nfrom keras.optimizers.schedules import learning_rate_schedule\nfrom keras.saving import serialization_lib\nfrom keras.utils import tracking\nfrom keras.utils.naming...
[ { "content": "import re\nimport warnings\n\nimport numpy as np\n\nfrom keras import backend\nfrom keras import initializers\nfrom keras import ops\nfrom keras.optimizers.schedules import learning_rate_schedule\nfrom keras.saving import serialization_lib\nfrom keras.utils import tracking\nfrom keras.utils.naming...
diff --git a/keras/optimizers/base_optimizer.py b/keras/optimizers/base_optimizer.py index e18f3c1deb35..8709a95b95fe 100644 --- a/keras/optimizers/base_optimizer.py +++ b/keras/optimizers/base_optimizer.py @@ -567,7 +567,7 @@ def _get_current_learning_rate(self): ): return self._learning_rate(sel...
oppia__oppia-1465
In the rich-text editor, auto-prepend "https://" to links which don't specify a protocol ``` Currently the non-interactive link widget will only accept links that begin with either "http://" or "https://". I propose that whenever a link does not, e.g. "www.google.com" we automatically prepend "http://www.google.com" ...
[ { "content": "# coding: utf-8\n#\n# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licen...
[ { "content": "# coding: utf-8\n#\n# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licen...
diff --git a/extensions/objects/templates/SanitizedUrlEditor.js b/extensions/objects/templates/SanitizedUrlEditor.js index e9b129802aed4..921b86db5ca7b 100644 --- a/extensions/objects/templates/SanitizedUrlEditor.js +++ b/extensions/objects/templates/SanitizedUrlEditor.js @@ -16,7 +16,7 @@ oppia.directive('sanitized...
gratipay__gratipay.com-1934
Sign up with a Twitter account fails. ``` Internal server error, program! Traceback (most recent call last): File "/home/sim6/www.gittip.com/env/local/lib/python2.7/site-packages/algorithm.py", line 288, in run new_state = function(**deps.as_kwargs) File "/home/sim6/www.gittip.com/env/local/lib/python2.7/site-p...
[ { "content": "\"\"\"This subpackage contains functionality for working with accounts elsewhere.\n\"\"\"\nfrom __future__ import print_function, unicode_literals\nfrom collections import OrderedDict\n\nfrom aspen.utils import typecheck\nfrom aspen import json\nfrom psycopg2 import IntegrityError\n\nimport gittip...
[ { "content": "\"\"\"This subpackage contains functionality for working with accounts elsewhere.\n\"\"\"\nfrom __future__ import print_function, unicode_literals\nfrom collections import OrderedDict\n\nfrom aspen.utils import typecheck\nfrom aspen import json\nfrom psycopg2 import IntegrityError\n\nimport gittip...
diff --git a/gittip/elsewhere/__init__.py b/gittip/elsewhere/__init__.py index fd4b03ee7f..598c3574cc 100644 --- a/gittip/elsewhere/__init__.py +++ b/gittip/elsewhere/__init__.py @@ -77,7 +77,7 @@ def __init__(self, db, user_id, user_info=None, existing_record=None): Or: - Takes a user_id and existing...
cal-itp__benefits-1114
Investigate console errors from CA State Template We get a ton of Javascript console errors coming from the CA State Template. Why? Can we avoid and/or fix some of them? ## To Reproduce Steps to reproduce the behavior: 1. Go to the dev site 2. Open the browser console / dev tools with `F12` 3. Scroll on the ...
[ { "content": "\"\"\"\nDjango settings for benefits project.\n\"\"\"\nimport os\nimport benefits.logging\n\n\ndef _filter_empty(ls):\n return [s for s in ls if s]\n\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))...
[ { "content": "\"\"\"\nDjango settings for benefits project.\n\"\"\"\nimport os\nimport benefits.logging\n\n\ndef _filter_empty(ls):\n return [s for s in ls if s]\n\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))...
diff --git a/benefits/core/templates/core/base.html b/benefits/core/templates/core/base.html index 4c569777ef..06c712d3e1 100644 --- a/benefits/core/templates/core/base.html +++ b/benefits/core/templates/core/base.html @@ -9,7 +9,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fi...
interlegis__sapl-1997
Relatório Matéria por Autor: ordem O relatório Matérias por Autor está desordenado. Penso que deveria ser pelo número da matéria. https://sapl.agudo.rs.leg.br/sistema/relatorios/materia-por-autor?tipo=1&data_apresentacao_0=01%2F01%2F2018&data_apresentacao_1=&autoria__autor=
[ { "content": "import django_filters\nfrom crispy_forms.bootstrap import FieldWithButtons, InlineRadios, StrictButton\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import HTML, Button, Div, Field, Fieldset, Layout, Row\nfrom django import forms\nfrom django.conf import settings\nfrom djan...
[ { "content": "import django_filters\nfrom crispy_forms.bootstrap import FieldWithButtons, InlineRadios, StrictButton\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import HTML, Button, Div, Field, Fieldset, Layout, Row\nfrom django import forms\nfrom django.conf import settings\nfrom djan...
diff --git a/sapl/base/forms.py b/sapl/base/forms.py index 5410ee3fe..f72ab2c8d 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -729,6 +729,11 @@ class RelatorioMateriasPorAutorFilterSet(django_filters.FilterSet): autoria__autor = django_filters.CharFilter(widget=forms.HiddenInput()) + @property...
cookiecutter__cookiecutter-django-1830
Creating a new project with TravisCI support fails first build. ## What happened? Creating a new project with travisci enabled will fail on its first run ## What should've happened instead? It should pass ## Steps to reproduce 1. Create new project using this cookie cutter template. 2. Enable travi...
[ { "content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment\n (at least so we presume in `pre_gen_project.py`).\n\nTODO: ? restrict Cookiecutter Django project init...
[ { "content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment\n (at least so we presume in `pre_gen_project.py`).\n\nTODO: ? restrict Cookiecutter Django project init...
diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index c17c951ef3..d6c0d93639 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -78,6 +78,7 @@ Listed in alphabetical order. Chris Franklin `@hairychris`_ Chris Pappalardo `@ChrisPappalardo`_ Christopher Clarke `@chrisdev`_ + Cole M...
sunpy__sunpy-1142
EIT fits file do not provide rotation information map.plot() from an EIT image requires an CROTA2 key which is not provided in EIT fits file ``` python >>> map.plot() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/sunpy/visualization/visualizatio...
[ { "content": "\"\"\"\nMap is a generic Map class from which all other Map classes inherit from.\n\"\"\"\nfrom __future__ import absolute_import\n\n#pylint: disable=E1101,E1121,W0404,W0613\n__authors__ = [\"Russell Hewett, Stuart Mumford, Keith Hughitt, Steven Christe\"]\n__email__ = \"stuart@mumford.me.uk\"\n\n...
[ { "content": "\"\"\"\nMap is a generic Map class from which all other Map classes inherit from.\n\"\"\"\nfrom __future__ import absolute_import\n\n#pylint: disable=E1101,E1121,W0404,W0613\n__authors__ = [\"Russell Hewett, Stuart Mumford, Keith Hughitt, Steven Christe\"]\n__email__ = \"stuart@mumford.me.uk\"\n\n...
diff --git a/sunpy/map/mapbase.py b/sunpy/map/mapbase.py index ec3fdbea7cd..4df84321918 100644 --- a/sunpy/map/mapbase.py +++ b/sunpy/map/mapbase.py @@ -396,7 +396,7 @@ def _rotation_matrix_from_crota(self): conversion. """ lam = self.scale['y'] / self.scale['x'] - p = np.deg2rad(self....
deepchecks__deepchecks-521
[BUG] Documentation - Examples - structure and check demonstration examples **Bug Description** Two-in-One: 1. Name of sections disappeared from sidebar ("How-to Guides, Check Demonstrations", and soon - "Use Cases"). Please note it should be "How-to Guides" and not "Guides". See screenshot (pink) 2. Notebooks h...
[ { "content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup -------------------------------------------...
[ { "content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup -------------------------------------------...
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000000..7f8dff5227 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,141 @@ + <!-- + ~ ---------------------------------------------------------------------------- + ~ Copyright (C) 2021 Deepchecks (https://www.deepchecks.co...
aws__aws-cli-1769
JSON Cache for AssumeRoleProvider not truncating files When we open a file for writing, if we're reusing the same file (same cache key) we don't truncate the file before writing. If the second JSON response is smaller it will result in extra data at the end of the JSON document. This will trigger a json parsing error...
[ { "content": "import os\nimport json\nimport logging\n\nfrom botocore.exceptions import ProfileNotFound\n\nLOG = logging.getLogger(__name__)\n\n\ndef register_assume_role_provider(event_handlers):\n event_handlers.register('session-initialized',\n inject_assume_role_provider_cache,...
[ { "content": "import os\nimport json\nimport logging\n\nfrom botocore.exceptions import ProfileNotFound\n\nLOG = logging.getLogger(__name__)\n\n\ndef register_assume_role_provider(event_handlers):\n event_handlers.register('session-initialized',\n inject_assume_role_provider_cache,...
diff --git a/awscli/customizations/assumerole.py b/awscli/customizations/assumerole.py index 5f94d2450b99..ee9ce47c1328 100644 --- a/awscli/customizations/assumerole.py +++ b/awscli/customizations/assumerole.py @@ -80,6 +80,7 @@ def __setitem__(self, cache_key, value): os.makedirs(self._working_dir) ...
learningequality__kolibri-5037
Facing error while kolibri 0.12.0 deb file installation ### Observed behavior After running below command it shows error: **sudo dpkg -i kolibri_0.12.0b4-0ubuntu1_all.deb** File downloaded from https://github.com/learningequality/kolibri/releases. ![1](https://user-images.githubusercontent.com/12776071/52693166...
[ { "content": "\"\"\"\nCAUTION! Keep everything here at at minimum. Do not import stuff.\nThis module is imported in setup.py, so you cannot for instance\nimport a dependency.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nfrom ....
[ { "content": "\"\"\"\nCAUTION! Keep everything here at at minimum. Do not import stuff.\nThis module is imported in setup.py, so you cannot for instance\nimport a dependency.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nfrom ....
diff --git a/kolibri/__init__.py b/kolibri/__init__.py index 141b1c71220..4213a76cbf4 100755 --- a/kolibri/__init__.py +++ b/kolibri/__init__.py @@ -15,7 +15,7 @@ #: This may not be the exact version as it's subject to modification with #: get_version() - use ``kolibri.__version__`` for the exact version string. -V...
pallets__werkzeug-930
Add an 'extras_require' entry to setup.py for watchdog The reloader feature has an optional dependency on the watchdog package: http://werkzeug.pocoo.org/docs/0.11/serving/#reloader Whilst people can just add 'watchdog' to their requirements files, it's clearer to specifically add an `extras_require` entry for it to s...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nWerkzeug\n========\n\nWerkzeug started as simple collection of various utilities for WSGI\napplications and has become one of the most advanced WSGI utility\nmodules. It includes a powerful debugger, full featured request and\nresponse objects, HTTP utilities to h...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nWerkzeug\n========\n\nWerkzeug started as simple collection of various utilities for WSGI\napplications and has become one of the most advanced WSGI utility\nmodules. It includes a powerful debugger, full featured request and\nresponse objects, HTTP utilities to h...
diff --git a/docs/serving.rst b/docs/serving.rst index 744159cda..ca8890ab2 100644 --- a/docs/serving.rst +++ b/docs/serving.rst @@ -56,7 +56,8 @@ Since version 0.10, there are two backends the reloader supports: ``stat`` and - The ``watchdog`` backend uses filesystem events, and is much faster than ``stat``. It ...
pallets__werkzeug-2236
`CallbackDict` in datastructures.pyi is not utilizing a bound TypeVar <!-- This issue tracker is a tool to address bugs in Werkzeug itself. Please use Pallets Discord or Stack Overflow for questions about your own code. Replace this comment with a clear outline of what the bug is. --> <!-- Describe how to rep...
[ { "content": "import typing as t\nfrom datetime import datetime\nfrom datetime import timedelta\nfrom datetime import timezone\nfrom http import HTTPStatus\n\nfrom .._internal import _to_str\nfrom ..datastructures import Headers\nfrom ..datastructures import HeaderSet\nfrom ..http import dump_cookie\nfrom ..htt...
[ { "content": "import typing as t\nfrom datetime import datetime\nfrom datetime import timedelta\nfrom datetime import timezone\nfrom http import HTTPStatus\n\nfrom .._internal import _to_str\nfrom ..datastructures import Headers\nfrom ..datastructures import HeaderSet\nfrom ..http import dump_cookie\nfrom ..htt...
diff --git a/CHANGES.rst b/CHANGES.rst index d4f44162e..728623a78 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -34,6 +34,8 @@ Unreleased - Ad-hoc TLS certs are generated with SAN matching CN. :issue:`2158` - Fix memory usage for locals when using Python 3.6 or pre 0.4.17 greenlet versions. :pr:`2212` +- F...
pytorch__ignite-416
ModelCheckpoint parameter `save_as_state_dict` should default to True Given that the recommended way to save model checkpoints is to only serialize the `state_dict` rather than the whole object (see https://pytorch.org/docs/stable/notes/serialization.html), shouldn't `save_as_state_dict` in `ModelCheckpoint` default to...
[ { "content": "import os\nimport tempfile\n\nimport torch\n\n\nclass ModelCheckpoint(object):\n \"\"\" ModelCheckpoint handler can be used to periodically save objects to disk.\n\n This handler expects two arguments:\n\n - an :class:`~ignite.engine.Engine` object\n - a `dict` mapping names (`...
[ { "content": "import os\nimport tempfile\n\nimport torch\n\n\nclass ModelCheckpoint(object):\n \"\"\" ModelCheckpoint handler can be used to periodically save objects to disk.\n\n This handler expects two arguments:\n\n - an :class:`~ignite.engine.Engine` object\n - a `dict` mapping names (`...
diff --git a/ignite/handlers/checkpoint.py b/ignite/handlers/checkpoint.py index 00e40d2cf5dc..b3c7ebd57af6 100644 --- a/ignite/handlers/checkpoint.py +++ b/ignite/handlers/checkpoint.py @@ -81,7 +81,7 @@ def __init__(self, dirname, filename_prefix, n_saved=1, atomic=True, require_em...
pwndbg__pwndbg-1222
ipi doesn't work with multiline inputs TL;DR: <img width="550" alt="image" src="https://user-images.githubusercontent.com/10009354/193942063-af410d4d-3cdd-4bcb-a102-9bb87d101656.png"> ``` pwndbg> ipi In [1]: from ctypes import * In [2]: class A(LittleEndianStructure): ...: a = LittleEndianStructure ...
[ { "content": "\"\"\"\nCommand to start an interactive IPython prompt.\n\"\"\"\nimport sys\nfrom contextlib import contextmanager\n\nimport gdb\n\nimport pwndbg.color.message as M\nimport pwndbg.commands\nimport pwndbg.lib.stdio\n\n\n@contextmanager\ndef switch_to_ipython_env():\n \"\"\"We need to change stdo...
[ { "content": "\"\"\"\nCommand to start an interactive IPython prompt.\n\"\"\"\nimport sys\nfrom contextlib import contextmanager\n\nimport gdb\n\nimport pwndbg.color.message as M\nimport pwndbg.commands\nimport pwndbg.lib.stdio\n\n\n@contextmanager\ndef switch_to_ipython_env():\n \"\"\"We need to change stdo...
diff --git a/pwndbg/commands/ipython_interactive.py b/pwndbg/commands/ipython_interactive.py index 92a9c438a83..a5f0b3fb127 100644 --- a/pwndbg/commands/ipython_interactive.py +++ b/pwndbg/commands/ipython_interactive.py @@ -43,6 +43,6 @@ def ipi(): code4ipython = """import jedi import pwn jedi.Interpreter._...
python-telegram-bot__python-telegram-bot-1158
Filters.regex fails on non-text messages <!-- Thanks for reporting issues of python-telegram-bot! Use this template to notify us if you found a bug, or if you want to request a new feature. If you're looking for help with programming your bot using our library, feel free to ask your questions in out telegram grou...
[ { "content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2018\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub...
[ { "content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2018\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub...
diff --git a/telegram/ext/filters.py b/telegram/ext/filters.py index 4b3ade78d44..782cbd36d21 100644 --- a/telegram/ext/filters.py +++ b/telegram/ext/filters.py @@ -198,7 +198,9 @@ def __init__(self, pattern): # the matched groups and groupdict to the context object. def filter(self, message): - ...
dbt-labs__dbt-core-3286
Use test materialization when executing ✨generic✨ tests ### Current Behavior generic (aka schema) tests are currently executed using the python api directly. https://github.com/fishtown-analytics/dbt/blob/77c10713a325d2bee91d1822951ce5d91ccc3278/core/dbt/task/test.py#L84-L85 ### Desired Behavior Schema tests shou...
[ { "content": "import os\nfrom collections import defaultdict\nfrom typing import List, Dict, Any, Tuple, cast, Optional\n\nimport networkx as nx # type: ignore\nimport sqlparse\n\nfrom dbt import flags\nfrom dbt.adapters.factory import get_adapter\nfrom dbt.clients import jinja\nfrom dbt.clients.system import ...
[ { "content": "import os\nfrom collections import defaultdict\nfrom typing import List, Dict, Any, Tuple, cast, Optional\n\nimport networkx as nx # type: ignore\nimport sqlparse\n\nfrom dbt import flags\nfrom dbt.adapters.factory import get_adapter\nfrom dbt.clients import jinja\nfrom dbt.clients.system import ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index b263b0c2483..70cd8f201b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ - Add a new materialization for tests, update data tests to use test materialization when executing. ([#3154](https://github.com/fishtown-analytics/dbt/issues/3154), [#3181](https://gi...
horovod__horovod-959
Getting error while running Horovod for spark clusters which dosen't have GPU's or NCCL **Environment:** 1. Framework: (TensorFlow, Keras, PyTorch, MXNet): MKL enabled Tensorflow 2. Framework version: 1.13.1 3. Horovod version: 0.16.1 4. MPI version: 4.0.0 5. CUDA version: NA 6. NCCL version: NA 7. Python versio...
[ { "content": "# Copyright 2017 onwards, fast.ai, Inc.\n# Modifications copyright (C) 2018 Uber Technologies, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http:...
[ { "content": "# Copyright 2017 onwards, fast.ai, Inc.\n# Modifications copyright (C) 2018 Uber Technologies, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http:...
diff --git a/docs/spark.md b/docs/spark.md index e01752a791..2f0e4de20c 100644 --- a/docs/spark.md +++ b/docs/spark.md @@ -63,7 +63,7 @@ a submission file. To run the example, please install the following dependencies: * `pyspark` -* `petastorm >= 0.5.1` +* `petastorm >= 0.7.0` * `h5py >= 2.9.0` * `tensorflow-gpu...
frappe__frappe-15362
re.error: missing ), unterminated subpattern via remove_db_aggregation (patch) <!-- Welcome to the Frappe Framework issue tracker! Before creating an issue, please heed the following: 1. This tracker should only be used to report bugs and request features / enhancements to Frappe - For questions and general su...
[ { "content": "import re\n\nimport frappe\nfrom frappe.query_builder import DocType\n\n\ndef execute():\n\t\"\"\"Replace temporarily available Database Aggregate APIs on frappe (develop)\n\n\tAPIs changed:\n\t\t* frappe.db.max => frappe.qb.max\n\t\t* frappe.db.min => frappe.qb.min\n\t\t* frappe.db.sum => frappe....
[ { "content": "import re\n\nimport frappe\nfrom frappe.query_builder import DocType\n\n\ndef execute():\n\t\"\"\"Replace temporarily available Database Aggregate APIs on frappe (develop)\n\n\tAPIs changed:\n\t\t* frappe.db.max => frappe.qb.max\n\t\t* frappe.db.min => frappe.qb.min\n\t\t* frappe.db.sum => frappe....
diff --git a/frappe/patches/v14_0/remove_db_aggregation.py b/frappe/patches/v14_0/remove_db_aggregation.py index 25a170f36297..a8fa5b2ba14b 100644 --- a/frappe/patches/v14_0/remove_db_aggregation.py +++ b/frappe/patches/v14_0/remove_db_aggregation.py @@ -27,6 +27,6 @@ def execute(): name, script = server_script["nam...
mytardis__mytardis-1134
/search/parameter_field_list/ failures with Unicode first/last names in Users table This can occur: ``` Internal Server Error: /search/parameter_field_list/ Traceback (most recent call last): File "/home/mytardis/virtualenvs/mytardis/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in ge...
[ { "content": "\"\"\"\nviews relevant to search\n\"\"\"\nimport logging\nimport warnings\n\nfrom django.contrib.auth.models import User\nfrom django.http import HttpResponse\nfrom haystack.generic_views import SearchView\n\nfrom tardis.search.forms import GroupedSearchForm\nfrom tardis.search.utils import Search...
[ { "content": "\"\"\"\nviews relevant to search\n\"\"\"\nimport logging\nimport warnings\n\nfrom django.contrib.auth.models import User\nfrom django.http import HttpResponse\nfrom haystack.generic_views import SearchView\n\nfrom tardis.search.forms import GroupedSearchForm\nfrom tardis.search.utils import Search...
diff --git a/tardis/search/views.py b/tardis/search/views.py index e4f8991107..aa40164199 100644 --- a/tardis/search/views.py +++ b/tardis/search/views.py @@ -276,7 +276,11 @@ def retrieve_field_list(request): users = User.objects.all() - usernames = [u.first_name + ' ' + u.last_name + ':username' for u in ...
mlflow__mlflow-11426
[DOC-FIX] Add JFrog MLFlow plugin in order to store your artifacts on a preferred JFrog repository ### Willingness to contribute Yes. I can contribute a documentation fix independently. ### URL(s) with the issue https://mlflow.org/docs/latest/plugins.html#artifact-repository-plugins ### Description of proposal (wha...
[ { "content": "from __future__ import annotations\n\nimport re\nimport shutil\nimport subprocess\nfrom pathlib import Path\n\nimport toml\n\nSEPARATOR = \"\"\"\n# Package metadata: can't be updated manually, use dev/pyproject.py\n# -----------------------------------------------------------------\n# Dev tool set...
[ { "content": "from __future__ import annotations\n\nimport re\nimport shutil\nimport subprocess\nfrom pathlib import Path\n\nimport toml\n\nSEPARATOR = \"\"\"\n# Package metadata: can't be updated manually, use dev/pyproject.py\n# -----------------------------------------------------------------\n# Dev tool set...
diff --git a/dev/pyproject.py b/dev/pyproject.py index c7d14109975dc..4d8a1d676278e 100644 --- a/dev/pyproject.py +++ b/dev/pyproject.py @@ -102,6 +102,7 @@ def build(skinny: bool) -> None: "sqlserver": ["mlflow-dbstore"], "aliyun-oss": ["aliyunstoreplugin"], "xethub":...
Lightning-AI__pytorch-lightning-3459
Error in transfer_batch_to_device when None type is in the batch <!-- ### Common bugs: 1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79). 2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/pytorch-lightning...
[ { "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/pytorch_lightning/utilities/apply_func.py b/pytorch_lightning/utilities/apply_func.py index 7ef3824b94e57..4f2212ba2b7d7 100644 --- a/pytorch_lightning/utilities/apply_func.py +++ b/pytorch_lightning/utilities/apply_func.py @@ -121,4 +121,5 @@ def batch_to(data): kwargs = dict(non_blocking=True) i...
certbot__certbot-7519
scl_source may not exist As described in the comments following https://community.letsencrypt.org/t/certbot-failing-to-find-python-version-on-centos-6-10/105634/5, it's possible that `scl_source` does not exist on RHEL 6 based systems. To reproduce this in the CentOS 6 Docker image, run: ``` yum install epel-release ...
[ { "content": "\"\"\"Certbot main entry point.\"\"\"\n# pylint: disable=too-many-lines\nfrom __future__ import print_function\n\nimport functools\nimport logging.handlers\nimport sys\n\nimport configobj\nimport josepy as jose\nimport zope.component\n\nfrom acme import errors as acme_errors\nfrom acme.magic_typin...
[ { "content": "\"\"\"Certbot main entry point.\"\"\"\n# pylint: disable=too-many-lines\nfrom __future__ import print_function\n\nimport functools\nimport logging.handlers\nimport sys\n\nimport configobj\nimport josepy as jose\nimport zope.component\n\nfrom acme import errors as acme_errors\nfrom acme.magic_typin...
diff --git a/.gitignore b/.gitignore index 68762da6b5f..6dd422187e3 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ tags \#*# .idea .ropeproject +.vscode # auth --cert-path --chain-path /*.pem diff --git a/.travis.yml b/.travis.yml index 63129c9b14c..fdb692ac179 100644 --- a/.travis.yml +++ b/.travis....
scikit-hep__pyhf-791
Schema missing from docs # Description Need to use something like [sphinx-jsonschema](https://pypi.org/project/sphinx-jsonschema/) to fix it up. # Expected Behavior I was able to navigate to the schemas... # Actual Behavior Schemas are gone :o # Checklist - [x] Run `git fetch` to get the most up to...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# pyhf documentation build configuration file, created by\n# sphinx-quickstart on Fri Feb 9 11:58:49 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# pyhf documentation build configuration file, created by\n# sphinx-quickstart on Fri Feb 9 11:58:49 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9a194f0f4..4f59750faa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,6 +108,14 @@ jobs: python -m doctest README.md python setup.py build_sphinx touch docs/_build/html/.nojekyll + - name: ...
pyro-ppl__pyro-1462
Make dynamic distribution mixin wrappers in torch.py picklable We load torch distributions and create distribution mixin classes dynamically in `torch.py`. These distribution instances are not picklable however. ```python >>> pickle.dumps(Pareto(1., 1.)) Traceback (most recent call last): File "<stdin>", line 1...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport torch\nfrom torch.distributions import constraints\n\nfrom pyro.distributions.torch_distribution import IndependentConstraint, TorchDistributionMixin\n\n\nclass Bernoulli(torch.distributions.Bernoulli, TorchDistributionMixi...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport torch\nfrom torch.distributions import constraints\n\nfrom pyro.distributions.torch_distribution import IndependentConstraint, TorchDistributionMixin\n\n\nclass Bernoulli(torch.distributions.Bernoulli, TorchDistributionMixi...
diff --git a/pyro/distributions/torch.py b/pyro/distributions/torch.py index ea82e5504b..ccd575b1ae 100644 --- a/pyro/distributions/torch.py +++ b/pyro/distributions/torch.py @@ -313,11 +313,8 @@ def expand(self, batch_shape): try: _PyroDist = locals()[_name] except KeyError: - - class _PyroDi...
WeblateOrg__weblate-1243
Rename html to templates folder, use subfolder I load Weblate from my virtual. This works great, three suggestions to make it even better: - Weblate's template folder should be called `templates` so it's automatically picked up by Django (saves me the trouble of having to use the `TEMPLATE_DIRS` variable) - More blocks...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright © 2012 - 2016 Michal Čihař <michal@cihar.com>\n#\n# This file is part of Weblate <https://weblate.org/>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the ...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright © 2012 - 2016 Michal Čihař <michal@cihar.com>\n#\n# This file is part of Weblate <https://weblate.org/>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the ...
diff --git a/MANIFEST.in b/MANIFEST.in index 1b5ab29ea8d2..2efab8624819 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -9,9 +9,9 @@ include manage.py recursive-include weblate *.py recursive-include weblate/ttf * recursive-include weblate/static * -recursive-include weblate/html *.txt -recursive-include weblate/html ...
zestedesavoir__zds-site-5011
« Vous êtes déjà inscrits » après s'être connecté Bonjour, Après m'être inscrit et activé mon compte via le lien reçu par mail, j'ai fermé l'onglet ouvert lors de l'activation, puis sur le premier onglet dans lequel j'ai effectué mon inscription, j'ai cliqué sur le bouton de connexion en haut à droite, et après m'êt...
[ { "content": "import uuid\nfrom datetime import datetime, timedelta\n\nfrom oauth2_provider.models import AccessToken\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth import authenticate, login, logout\nfrom django.contrib.auth.decorators import login_required, ...
[ { "content": "import uuid\nfrom datetime import datetime, timedelta\n\nfrom oauth2_provider.models import AccessToken\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth import authenticate, login, logout\nfrom django.contrib.auth.decorators import login_required, ...
diff --git a/zds/member/views.py b/zds/member/views.py index 9c58cf29c7..0ea93a4702 100644 --- a/zds/member/views.py +++ b/zds/member/views.py @@ -904,6 +904,8 @@ def remove_hat(request, user_pk, hat_pk): def login_view(request): """Logs user in.""" next_page = request.GET.get('next', '/') + if next_page ...
ephios-dev__ephios-220
List of own upcoming shifts As a user, I want to see a list of shifts that I have been confirmed for on the main page.
[ { "content": "from django import template\nfrom django.utils.safestring import mark_safe\n\nfrom ephios.event_management.models import AbstractParticipation\n\nregister = template.Library()\n\n\n@register.filter(name=\"shift_status\")\ndef shift_status(shift, user):\n participation = user.as_participant().pa...
[ { "content": "from django import template\nfrom django.utils.safestring import mark_safe\n\nfrom ephios.event_management.models import AbstractParticipation\n\nregister = template.Library()\n\n\n@register.filter(name=\"shift_status\")\ndef shift_status(shift, user):\n participation = user.as_participant().pa...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b4caed7c..20f84b706 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ default_language_version: - python: python3.8 + python: python3.9 repos: - repo: https://github.com/myint/autoflake rev: v1.4 diff --gi...
weecology__retriever-706
Error while installing BBS and BBS50 on python2 ``` goelakas@ubuntu:~/dev/retriever$ retriever install --debug csv BBS => Installing USGS North American Breeding Bird Survey Progress: 746 / 746 rows inserted into ./BBS_species.csv: Progress: 5627 / 5627 rows inserted into ./BBS_routes.csv: Progress: 116098 / 11609...
[ { "content": "from __future__ import print_function\nfrom __future__ import division\nfrom future import standard_library\nstandard_library.install_aliases()\nfrom builtins import object\nfrom builtins import range\nfrom builtins import input\nfrom builtins import zip\nfrom builtins import next\nfrom builtins i...
[ { "content": "from __future__ import print_function\nfrom __future__ import division\nfrom future import standard_library\nstandard_library.install_aliases()\nfrom builtins import object\nfrom builtins import range\nfrom builtins import input\nfrom builtins import zip\nfrom builtins import next\nfrom builtins i...
diff --git a/lib/engine.py b/lib/engine.py index b8042cb17..9fc375a99 100644 --- a/lib/engine.py +++ b/lib/engine.py @@ -16,10 +16,7 @@ import tarfile import csv import io -if sys.version_info[0] >= 3: - from urllib.request import urlretrieve -else: - from urllib import urlretrieve +from urllib.request import ...
getpelican__pelican-2306
folder syslink are ignored inside ```theme/static``` how to reproduce ``` $ cd ~/blog/theme/yourtheme/static $ mkdir testfolder # folders are copied $ ln -s ../screenshot.png . # linked files are copied $ ln -s ../templates . # syslinked folders arent copied. Any folder should do for testing purposes $ cd ~/bl...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import print_function, unicode_literals\n\nimport codecs\nimport datetime\nimport errno\nimport fnmatch\nimport locale\nimport logging\nimport os\nimport re\nimport shutil\nimport sys\nimport traceback\nfrom collections import Hashable\nfrom contextlib impo...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import print_function, unicode_literals\n\nimport codecs\nimport datetime\nimport errno\nimport fnmatch\nimport locale\nimport logging\nimport os\nimport re\nimport shutil\nimport sys\nimport traceback\nfrom collections import Hashable\nfrom contextlib impo...
diff --git a/pelican/utils.py b/pelican/utils.py index ef9da23b3..c1c41253b 100644 --- a/pelican/utils.py +++ b/pelican/utils.py @@ -360,7 +360,7 @@ def walk_error(err): source_, destination_) return - for src_dir, subdirs, others in os.walk(source_): + for src_d...
elastic__ecs-1483
Remove `ignore_above` setting when not indexing field Certain ECS fields are type `keyword` but are also not: * searchable (`index: false`) * used in aggregations, sorting, or scripting (`doc_values: false`) The ECS tooling's behavior is to set `ignore_above: 1024` for all `keyword` fields. However, `ignore_a...
[ { "content": "import copy\n\nfrom generators import ecs_helpers\nfrom schema import visitor\n\n# This script performs a few cleanup functions in place, within the deeply nested\n# 'fields' structure passed to `clean(fields)`.\n#\n# What happens here:\n#\n# - check that mandatory attributes are present, without ...
[ { "content": "import copy\n\nfrom generators import ecs_helpers\nfrom schema import visitor\n\n# This script performs a few cleanup functions in place, within the deeply nested\n# 'fields' structure passed to `clean(fields)`.\n#\n# What happens here:\n#\n# - check that mandatory attributes are present, without ...
diff --git a/CHANGELOG.next.md b/CHANGELOG.next.md index 296df595cc..061a2f7c2e 100644 --- a/CHANGELOG.next.md +++ b/CHANGELOG.next.md @@ -45,6 +45,8 @@ Thanks, you're awesome :-) --> #### Bugfixes +* Remove `ignore_above` when `index: false` and `doc_values: false`. #1483 + #### Added * Support `match_only_te...
mozilla__bugbug-2654
Replace typing.Dict with dict It is now possible to use `dict` directly instead of `typing.Dict` in type definitions.
[ { "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 os\n\nfrom setuptools import find_packages, setup\n\nhere = os...
[ { "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 os\n\nfrom setuptools import find_packages, setup\n\nhere = os...
diff --git a/README.md b/README.md index ae98acfe23..1f09ec3713 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ pip3 install -r requirements.txt You may also need `pip install -r test-requirements.txt`. Depending on the parts of bugbug you want to run, you might need to install dependencies from other requi...
napari__napari-4889
specific values for scale parameter can break dims ## 🐛 Bug haven't dug deeper yet, but reposting here from https://forum.image.sc/t/image-layer-in-napari-showing-the-wrong-dimension-size-one-plane-is-missing/69939/10 ```python d = np.random.rand(5, 170, 240) viewer = napari.view_image(d, scale=[3.533, 1.0, 1...
[ { "content": "from numbers import Integral\nfrom typing import Sequence, Tuple, Union\n\nimport numpy as np\nfrom pydantic import root_validator, validator\nfrom typing_extensions import Literal # Added to typing in 3.8\n\nfrom ..utils.events import EventedModel\nfrom ..utils.translations import trans\n\n\ncla...
[ { "content": "from numbers import Integral\nfrom typing import Sequence, Tuple, Union\n\nimport numpy as np\nfrom pydantic import root_validator, validator\nfrom typing_extensions import Literal # Added to typing in 3.8\n\nfrom ..utils.events import EventedModel\nfrom ..utils.translations import trans\n\n\ncla...
diff --git a/napari/components/_tests/test_dims.py b/napari/components/_tests/test_dims.py index 8d2edda72b7..44b7dc4d0f0 100644 --- a/napari/components/_tests/test_dims.py +++ b/napari/components/_tests/test_dims.py @@ -294,3 +294,10 @@ def test_changing_focus(): assert dims.last_used == 0 dims._focus_down()...
OpenNMT__OpenNMT-tf-569
Error while running the exported model Hi, I was trying to run the example given [https://github.com/OpenNMT/OpenNMT-tf/tree/master/examples/serving/python](url). I am getting the following error. > Source: I am going. Traceback (most recent call last): File "ende_client.py", line 66, in <module> mai...
[ { "content": "import argparse\nimport os\n\nimport tensorflow as tf\nimport tensorflow_addons as tfa # Register TensorFlow Addons kernels.\n\nimport pyonmttok\n\n\nclass EnDeTranslator(object):\n\n def __init__(self, export_dir):\n imported = tf.saved_model.load(export_dir)\n self._translate_fn = import...
[ { "content": "import argparse\nimport os\n\nimport tensorflow as tf\nimport tensorflow_addons as tfa # Register TensorFlow Addons kernels.\n\nimport pyonmttok\n\n\nclass EnDeTranslator(object):\n\n def __init__(self, export_dir):\n imported = tf.saved_model.load(export_dir)\n self._translate_fn = import...
diff --git a/examples/serving/python/ende_client.py b/examples/serving/python/ende_client.py index 7045afdaf..d573b6561 100644 --- a/examples/serving/python/ende_client.py +++ b/examples/serving/python/ende_client.py @@ -43,7 +43,7 @@ def _preprocess(self, texts): def _postprocess(self, outputs): texts = [] ...
jazzband__django-debug-toolbar-1651
Refused to get unsafe header "djdt-store-id" We're getting instances of this error in the javascript console while using the toolbar in local development. This stems from a CORS issue where only certain headers are only allowed to be accessed unless whitelisted. In 997387228ecb4e0787568047237ca0455dfa9ec6 this code...
[ { "content": "import json\n\nfrom django.http.request import RawPostDataException\nfrom django.template.loader import render_to_string\nfrom django.templatetags.static import static\nfrom django.urls import path\nfrom django.utils import timezone\nfrom django.utils.translation import gettext_lazy as _\n\nfrom d...
[ { "content": "import json\n\nfrom django.http.request import RawPostDataException\nfrom django.template.loader import render_to_string\nfrom django.templatetags.static import static\nfrom django.urls import path\nfrom django.utils import timezone\nfrom django.utils.translation import gettext_lazy as _\n\nfrom d...
diff --git a/debug_toolbar/panels/history/panel.py b/debug_toolbar/panels/history/panel.py index 596bcfb4a..2e637083a 100644 --- a/debug_toolbar/panels/history/panel.py +++ b/debug_toolbar/panels/history/panel.py @@ -24,7 +24,7 @@ def get_headers(self, request): observe_request = self.toolbar.get_observe_reque...
python__mypy-15218
Daemon `dmypy` crashes with `disable_error_code` configuration option ## Description Evertything was working until i tried to disable some error codes using the `disable_error_code = 'no-untyped-def,empty-body'` option in the `pyproject.toml` file. After restarting the daemon, it crashed with the error `Timed out...
[ { "content": "\"\"\"Classification of possible errors mypy can detect.\n\nThese can be used for filtering specific errors.\n\"\"\"\n\nfrom __future__ import annotations\n\nfrom collections import defaultdict\nfrom typing_extensions import Final\n\nerror_codes: dict[str, ErrorCode] = {}\nsub_code_map: dict[str, ...
[ { "content": "\"\"\"Classification of possible errors mypy can detect.\n\nThese can be used for filtering specific errors.\n\"\"\"\n\nfrom __future__ import annotations\n\nfrom collections import defaultdict\nfrom typing_extensions import Final\n\nfrom mypy_extensions import mypyc_attr\n\nerror_codes: dict[str,...
diff --git a/mypy/errorcodes.py b/mypy/errorcodes.py index 6b63bad72683..fe460fdec744 100644 --- a/mypy/errorcodes.py +++ b/mypy/errorcodes.py @@ -8,10 +8,13 @@ from collections import defaultdict from typing_extensions import Final +from mypy_extensions import mypyc_attr + error_codes: dict[str, ErrorCode] = {} ...
arviz-devs__arviz-1695
Non np.array coords cause hard to diagnose shape error **Describe the bug** When one of the `coords` has a `tuple` as its values, the conversion to an xarray variable fails. **To Reproduce** A simple PyMC3 model that someone might write: ```python coords = { "d1": ("A", "B", "C") } with pymc3.Model(coords...
[ { "content": "\"\"\"Low level converters usually used by other functions.\"\"\"\nimport datetime\nimport functools\nimport warnings\nfrom copy import deepcopy\nfrom typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union\n\nimport numpy as np\nimport pkg_resources\nimport xarray as xr\n\ntry:\n...
[ { "content": "\"\"\"Low level converters usually used by other functions.\"\"\"\nimport datetime\nimport functools\nimport warnings\nfrom copy import deepcopy\nfrom typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union\n\nimport numpy as np\nimport pkg_resources\nimport xarray as xr\n\ntry:\n...
diff --git a/arviz/data/base.py b/arviz/data/base.py index b679fea118..5d6638084f 100644 --- a/arviz/data/base.py +++ b/arviz/data/base.py @@ -245,7 +245,7 @@ def numpy_to_data_array( coords["draw"] = np.arange(index_origin, n_samples + index_origin) # filter coords based on the dims - coords = {key:...
ansible__ansible-modules-core-5476
yum module doesn't validate that RPM could be downloaded before reading ##### ISSUE TYPE Bug Report ##### COMPONENT NAME `yum` ##### ANSIBLE VERSION <!--- Paste verbatim output from “ansible --version” between quotes below --> ``` ansible 2.3.0 (type-filter a6feeee50f) last updated 2016/10/28 15:41:12 (GMT...
[ { "content": "#!/usr/bin/python -tt\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Red Hat, Inc\n# Written by Seth Vidal <skvidal at fedoraproject.org>\n# (c) 2014, Epic Games, Inc.\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU...
[ { "content": "#!/usr/bin/python -tt\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Red Hat, Inc\n# Written by Seth Vidal <skvidal at fedoraproject.org>\n# (c) 2014, Epic Games, Inc.\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU...
diff --git a/packaging/os/yum.py b/packaging/os/yum.py index 131144d8535..be5e1676999 100644 --- a/packaging/os/yum.py +++ b/packaging/os/yum.py @@ -225,6 +225,8 @@ def fetch_rpm_from_url(spec, module=None): package = os.path.join(tempdir, str(spec.rsplit('/', 1)[1])) try: rsp, info = fetch_url(modul...
jupyter__docker-stacks-1412
We fail to push our multi-arch images We successfully login with `docker login`, but we fail to push images. I'm unsure why, we only get 401 Unauthorized and that's it. ### From [CI run that failed](https://github.com/jupyter/docker-stacks/runs/3090573663?check_suite_focus=true) ``` #36 exporting to image #...
[ { "content": "#!/usr/bin/env python3\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\nimport argparse\nimport logging\nfrom plumbum.cmd import docker\nfrom .docker_runner import DockerRunner\nfrom .get_taggers_and_manifests import get_taggers_and_manifests\...
[ { "content": "#!/usr/bin/env python3\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\nimport argparse\nimport logging\nfrom plumbum.cmd import docker\nfrom .docker_runner import DockerRunner\nfrom .get_taggers_and_manifests import get_taggers_and_manifests\...
diff --git a/tagging/tag_image.py b/tagging/tag_image.py index ae795e7d01..105da483cb 100755 --- a/tagging/tag_image.py +++ b/tagging/tag_image.py @@ -38,7 +38,9 @@ def tag_image(short_image_name: str, owner: str) -> None: if tags: env_name = f'{short_image_name.replace("-", "_")}_EXTRA_TAG_ARGS...
MycroftAI__mycroft-core-2528
mycroft "devices" web UI doesn't show core version Version/setup same as MycroftAI/mycroft-core#2523 2523 ## Try to provide steps that we can use to replicate the Issue Hit up https://account.mycroft.ai/devices ![Selection_039](https://user-images.githubusercontent.com/6778269/78091868-20c38b80-739c-11ea-8934-...
[ { "content": "# Copyright 2017 Mycroft AI Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
[ { "content": "# Copyright 2017 Mycroft AI Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
diff --git a/mycroft/version/__init__.py b/mycroft/version/__init__.py index c76f61f950e1..9d4a0b4d1ce0 100644 --- a/mycroft/version/__init__.py +++ b/mycroft/version/__init__.py @@ -45,7 +45,7 @@ def get(): return json.load(f) except Exception: LOG.error("Failed to lo...
saulpw__visidata-2020
`v` for expanding lines doesn't work **Small description** When I press `V` to see lines expanded the latest vd from `develop` version gives me an error. Stable version behaves properly. **Expected result** **Actual result with screenshot** If you get an unexpected error, please include the full stack trac...
[ { "content": "import collections\nimport itertools\nfrom copy import copy, deepcopy\nimport textwrap\n\nfrom visidata import VisiData, Extensible, globalCommand, ColumnAttr, ColumnItem, vd, ENTER, EscapeException, drawcache, drawcache_property, LazyChainMap, asyncthread, ExpectedException\nfrom visidata import ...
[ { "content": "import collections\nimport itertools\nfrom copy import copy, deepcopy\nimport textwrap\n\nfrom visidata import VisiData, Extensible, globalCommand, ColumnAttr, ColumnItem, vd, ENTER, EscapeException, drawcache, drawcache_property, LazyChainMap, asyncthread, ExpectedException\nfrom visidata import ...
diff --git a/visidata/sheets.py b/visidata/sheets.py index 2654b6004..c17261a44 100644 --- a/visidata/sheets.py +++ b/visidata/sheets.py @@ -23,8 +23,10 @@ def _splitcell(sheet, s, width=0): return [s] ret = [] - for L in s.splitlines(): - ret.extend(textwrap.wrap(L, width=width, break_long_wo...
liberapay__liberapay.com-1314
Bug during payment modification I try to donate to this account: https://liberapay.com/lowtechlab/ after a previous promise on the twitter account. lowtechlab created its account on the plateform but if I see that I donate to it, the actual number of mecene is still 0. I tried to change the amount since I know th...
[ { "content": "from __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import defaultdict, OrderedDict\nfrom decimal import Decimal, ROUND_DOWN, ROUND_HALF_UP, ROUND_UP\nfrom numbers import Number\nimport operator\n\nfrom mangopay.exceptions import CurrencyMismatch\...
[ { "content": "from __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import defaultdict, OrderedDict\nfrom decimal import Decimal, ROUND_DOWN, ROUND_HALF_UP, ROUND_UP\nfrom numbers import Number\nimport operator\n\nfrom mangopay.exceptions import CurrencyMismatch\...
diff --git a/liberapay/utils/currencies.py b/liberapay/utils/currencies.py index 62614bd8c9..f243e7d7b3 100644 --- a/liberapay/utils/currencies.py +++ b/liberapay/utils/currencies.py @@ -51,7 +51,7 @@ def _Money_init(self, amount=Decimal('0'), currency=None, rounding=None): def _Money_eq(self, other): if isinst...
sopel-irc__sopel-948
.ip socket.gaierror on Sopel 6.1.1 on python 3.5.0 OS X 11.10 ``` python WARNING:sopel.modules.ip:Downloading GeoIP database Traceback (most recent call last): File "/Users/thill/projects/python/orcabot/venv_orcabot/lib/python3.5/site-packages/sopel/bot.py", line 260, in call exit_code = func(sopel, trigger) F...
[ { "content": "# coding=utf-8\n\"\"\"GeoIP lookup module\"\"\"\n# Copyright 2011, Dimitri Molenaars, TyRope.nl,\n# Copyright © 2013, Elad Alfassa <elad@fedoraproject.org>\n# Licensed under the Eiffel Forum License 2.\n\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport ...
[ { "content": "# coding=utf-8\n\"\"\"GeoIP lookup module\"\"\"\n# Copyright 2011, Dimitri Molenaars, TyRope.nl,\n# Copyright © 2013, Elad Alfassa <elad@fedoraproject.org>\n# Licensed under the Eiffel Forum License 2.\n\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport ...
diff --git a/sopel/modules/ip.py b/sopel/modules/ip.py index 75d6a85f2c..b2e28047f4 100644 --- a/sopel/modules/ip.py +++ b/sopel/modules/ip.py @@ -118,6 +118,8 @@ def ip(bot, trigger): response += " | Location: %s" % gi_city.country_name_by_name(query) except AttributeError: response += ' | Locat...
pystiche__pystiche-544
Documentation theme We are currently using the [ReadTheDocs `sphinx` theme](https://github.com/readthedocs/sphinx_rtd_theme): https://github.com/pystiche/pystiche/blob/65f4d787e44b1ffbf7e5b6e48298ed8c7460e5a9/docs/source/conf.py#L85-L90 A lot of other projects in the PyData ecosystem have migrated to one common [...
[ { "content": "import contextlib\nimport os\nimport re\nimport shutil\nimport warnings\nfrom datetime import datetime\nfrom distutils.util import strtobool\nfrom importlib_metadata import metadata as extract_metadata\nfrom os import path\nfrom unittest import mock\nfrom urllib.parse import urljoin\n\nfrom sphinx...
[ { "content": "import contextlib\nimport os\nimport re\nimport shutil\nimport warnings\nfrom datetime import datetime\nfrom distutils.util import strtobool\nfrom importlib_metadata import metadata as extract_metadata\nfrom os import path\nfrom unittest import mock\nfrom urllib.parse import urljoin\n\nfrom sphinx...
diff --git a/docs/requirements-rtd.txt b/docs/requirements-rtd.txt index d74a063e..864c552b 100644 --- a/docs/requirements-rtd.txt +++ b/docs/requirements-rtd.txt @@ -2,9 +2,9 @@ sphinx >= 3 importlib-metadata sphinxcontrib-bibtex sphinx_autodoc_typehints >= 1.11 -sphinx_rtd_theme +pydata_sphinx_theme sphinx-galler...
pypa__pipenv-5299
`pipenv lock` nondeterminism with environment markers (again) I reported this bug about pipenv behaving non-deterministically a while ago: https://github.com/pypa/pipenv/issues/4967. [@matteius](https://github.com/pypa/pipenv/issues/4967#issuecomment-1104663451) and [I](https://github.com/pypa/pipenv/issues/4967#issuec...
[ { "content": "import contextlib\nimport hashlib\nimport os\nimport subprocess\nimport sys\nimport warnings\nfrom functools import lru_cache\nfrom typing import Dict, List, Optional, Tuple, Union\n\nfrom pipenv import environments\nfrom pipenv.exceptions import RequirementError, ResolutionFailure\nfrom pipenv.pa...
[ { "content": "import contextlib\nimport hashlib\nimport os\nimport subprocess\nimport sys\nimport warnings\nfrom functools import lru_cache\nfrom typing import Dict, List, Optional, Set, Tuple, Union\n\nfrom pipenv import environments\nfrom pipenv.exceptions import RequirementError, ResolutionFailure\nfrom pipe...
diff --git a/news/5299.bugfix.rst b/news/5299.bugfix.rst new file mode 100644 index 0000000000..3e72429964 --- /dev/null +++ b/news/5299.bugfix.rst @@ -0,0 +1 @@ +Sorting ``constraints`` before resolving, which fixes ``pipenv lock`` generates nondeterminism environment markers. diff --git a/pipenv/utils/resolver.py b/p...
pyqtgraph__pyqtgraph-1487
AttributeError: 'InfLineLabel' object has no attribute 'updateText' When I'm setting the `InfLineLabel` visibility, an attribute error was raised. It is the function of `InFlineLabel` `setVisible` Line 404, I solved this by comment ``` self.updateText() self.updatePosition() ``` and use the already exist functi...
[ { "content": "# -*- coding: utf-8 -*-\nfrom ..Qt import QtGui, QtCore\nfrom ..Point import Point\nfrom .GraphicsObject import GraphicsObject\nfrom .GraphicsItem import GraphicsItem\nfrom .TextItem import TextItem\nfrom .ViewBox import ViewBox\nfrom .. import functions as fn\nimport numpy as np\nimport weakref\n...
[ { "content": "# -*- coding: utf-8 -*-\nfrom ..Qt import QtGui, QtCore\nfrom ..Point import Point\nfrom .GraphicsObject import GraphicsObject\nfrom .GraphicsItem import GraphicsItem\nfrom .TextItem import TextItem\nfrom .ViewBox import ViewBox\nfrom .. import functions as fn\nimport numpy as np\nimport weakref\n...
diff --git a/pyqtgraph/graphicsItems/InfiniteLine.py b/pyqtgraph/graphicsItems/InfiniteLine.py index c5726031ca..b998e97e11 100644 --- a/pyqtgraph/graphicsItems/InfiniteLine.py +++ b/pyqtgraph/graphicsItems/InfiniteLine.py @@ -550,8 +550,7 @@ def updatePosition(self): def setVisible(self, v): TextItem.set...
boto__boto-1895
set_desired_capacity doesn't work if honor_cooldown parameter set to True. Hi, Function set_desired_capacity throws NameError exception if honor_cooldown is True: > Traceback (most recent call last): > File "./ag-desired-capacity.py", line 131, in <module> > honor_cooldown = True) > File "/usr/lib/python2.6/si...
[ { "content": "# Copyright (c) 2009-2011 Reza Lotun http://reza.lotun.name/\n# Copyright (c) 2011 Jann Kleen\n# Copyright (c) 2012 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved\n#\n# Permission is hereby granted, free of charge, to any person obt...
[ { "content": "# Copyright (c) 2009-2011 Reza Lotun http://reza.lotun.name/\n# Copyright (c) 2011 Jann Kleen\n# Copyright (c) 2012 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved\n#\n# Permission is hereby granted, free of charge, to any person obt...
diff --git a/boto/ec2/autoscale/__init__.py b/boto/ec2/autoscale/__init__.py index 2a54adf15d..864b5dde04 100644 --- a/boto/ec2/autoscale/__init__.py +++ b/boto/ec2/autoscale/__init__.py @@ -785,7 +785,7 @@ def set_desired_capacity(self, group_name, desired_capacity, honor_cooldown=Fals params = {'AutoScalingG...
open-telemetry__opentelemetry-python-contrib-1313
is_instrumented_by_opentelemetry is not set in _InstrumentedFastAPI class **Steps to reproduce** If `instrument_app` function is called for already instrumented object of `_InstrumentedFastAPI` then it will add Opentelemtery middleware again in the `user_middleware` list as `is_instrumented_by_opentelemetry` is not se...
[ { "content": "# Copyright The OpenTelemetry 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...
[ { "content": "# Copyright The OpenTelemetry 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...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 595da827bd..10d6d27c21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#1208](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1208)) - `opentelemetry-i...
zulip__zulip-12231
Open Graph og:url tags over-canonicalize all URLs back to the home page Split from #12187: > By the way, it turns out all our OpenGraph tags are [busted anyway](https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fchat.zulip.org%2Fapi%2Fincoming-webhooks-walkthrough) because we always set `og:url` to...
[ { "content": "\nfrom typing import Any, Dict\nfrom django.http import HttpRequest\nfrom django.conf import settings\nfrom django.urls import reverse\n\nfrom zerver.models import UserProfile, get_realm, Realm\nfrom zproject.backends import (\n any_oauth_backend_enabled,\n password_auth_enabled,\n requir...
[ { "content": "\nfrom typing import Any, Dict\nfrom django.http import HttpRequest\nfrom django.conf import settings\nfrom django.urls import reverse\n\nfrom zerver.models import UserProfile, get_realm, Realm\nfrom zproject.backends import (\n any_oauth_backend_enabled,\n password_auth_enabled,\n requir...
diff --git a/templates/zerver/meta_tags.html b/templates/zerver/meta_tags.html index 5432e7e3fd639..0ccb1f8276d8f 100644 --- a/templates/zerver/meta_tags.html +++ b/templates/zerver/meta_tags.html @@ -6,7 +6,7 @@ {% endif %} <!-- Open Graph / Facebook Meta Tags --> -<meta property="og:url" content="{{ realm_uri }}"...
ytdl-org__youtube-dl-18281
Problem with joj.sk ## Please follow the guide below - You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`) - Use the *Preview* tab to see what your issue will a...
[ { "content": "# coding: utf-8\r\nfrom __future__ import unicode_literals\r\n\r\nimport re\r\n\r\nfrom .common import InfoExtractor\r\nfrom ..compat import compat_str\r\nfrom ..utils import (\r\n int_or_none,\r\n js_to_json,\r\n try_get,\r\n)\r\n\r\n\r\nclass JojIE(InfoExtractor):\r\n _VALID_URL = r'...
[ { "content": "# coding: utf-8\r\nfrom __future__ import unicode_literals\r\n\r\nimport re\r\n\r\nfrom .common import InfoExtractor\r\nfrom ..compat import compat_str\r\nfrom ..utils import (\r\n int_or_none,\r\n js_to_json,\r\n try_get,\r\n)\r\n\r\n\r\nclass JojIE(InfoExtractor):\r\n _VALID_URL = r'...
diff --git a/youtube_dl/extractor/joj.py b/youtube_dl/extractor/joj.py index d9f8dbfd240..62b28e98098 100644 --- a/youtube_dl/extractor/joj.py +++ b/youtube_dl/extractor/joj.py @@ -61,7 +61,7 @@ def _real_extract(self, url): bitrates = self._parse_json( self._search_regex( - r'...
conan-io__conan-3402
[SCM] Inability to export (and create) when using the `scm` feature while the conanfile is in a subfolder (Working with conan 1.61 on both OS X and Windows) This issue is following the second part of the problem described in #3069. Our workflow relies on the *conanfile.py* `scm` feature for revision auto-deduction....
[ { "content": "import os\n\nimport re\nimport subprocess\nfrom six.moves.urllib.parse import urlparse, quote_plus\nfrom subprocess import CalledProcessError, PIPE, STDOUT\n\nfrom conans.client.tools.env import no_op, environment_append\nfrom conans.client.tools.files import chdir\nfrom conans.errors import Conan...
[ { "content": "import os\n\nimport re\nimport subprocess\nfrom six.moves.urllib.parse import urlparse, quote_plus\nfrom subprocess import CalledProcessError, PIPE, STDOUT\n\nfrom conans.client.tools.env import no_op, environment_append\nfrom conans.client.tools.files import chdir\nfrom conans.errors import Conan...
diff --git a/conans/client/tools/scm.py b/conans/client/tools/scm.py index 1b8a6b87782..9ed03409110 100644 --- a/conans/client/tools/scm.py +++ b/conans/client/tools/scm.py @@ -130,8 +130,10 @@ def get_commit(self): get_revision = get_commit def _check_git_repo(self): - if not os.path.exists(os.path....
pytorch__text-145
AttributeError: 'list' object has no attribute 'rstrip' Hi all, previously torchtext works for me when I'm running anaconda python. However, now, when i uninstalled my anaconda python. It stops working. It gives me the following error: ``` File "/Library/Python/2.7/site-packages/torchtext/data/example.py", lin...
[ { "content": "import csv\nimport json\n\nimport six\n\n\nclass Example(object):\n \"\"\"Defines a single training or test example.\n\n Stores each column of the example as an attribute.\n \"\"\"\n\n @classmethod\n def fromJSON(cls, data, fields):\n return cls.fromdict(json.loads(data), fie...
[ { "content": "import csv\nimport json\n\nimport six\n\n\nclass Example(object):\n \"\"\"Defines a single training or test example.\n\n Stores each column of the example as an attribute.\n \"\"\"\n\n @classmethod\n def fromJSON(cls, data, fields):\n return cls.fromdict(json.loads(data), fie...
diff --git a/torchtext/data/example.py b/torchtext/data/example.py index 57e4521672..576b46f66d 100644 --- a/torchtext/data/example.py +++ b/torchtext/data/example.py @@ -56,7 +56,9 @@ def fromlist(cls, data, fields): ex = cls() for (name, field), val in zip(fields, data): if field is not...
SciTools__cartopy-169
Remove ```GenericProjectionAxes``` ```from cartopy.mpl.geoaxes```
[ { "content": "# (C) British Crown Copyright 2011 - 2012, Met Office\n#\n# This file is part of cartopy.\n#\n# cartopy is free software: you can redistribute it and/or modify it under\n# the terms of the GNU Lesser General Public License as published by the\n# Free Software Foundation, either version 3 of the Li...
[ { "content": "# (C) British Crown Copyright 2011 - 2012, Met Office\n#\n# This file is part of cartopy.\n#\n# cartopy is free software: you can redistribute it and/or modify it under\n# the terms of the GNU Lesser General Public License as published by the\n# Free Software Foundation, either version 3 of the Li...
diff --git a/lib/cartopy/mpl/geoaxes.py b/lib/cartopy/mpl/geoaxes.py index 61d6232b8..d6e06022f 100644 --- a/lib/cartopy/mpl/geoaxes.py +++ b/lib/cartopy/mpl/geoaxes.py @@ -1293,11 +1293,6 @@ def _pcolor_patched(self, *args, **kwargs): return collection -# alias GeoAxes - NOTE: THIS WAS NOT IN v0.4.0rc1 -G...
kubeflow__pipelines-4134
allow output artifact store configuration (vs hard coded) it seems like the output artifacts are always stored in a specific minio service, port, namespace, bucket, secrets, etc (`minio-service.kubeflow:9000`). see: https://github.com/kubeflow/pipelines/blob/f40a22a3f4a8e06d20cf3e3f425b5058d5c87e0b/sdk/python/kfp/c...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/samples/tutorials/gpu/gpu.ipynb b/samples/tutorials/gpu/gpu.ipynb index 80053bab436..3aa6fad5295 100644 --- a/samples/tutorials/gpu/gpu.ipynb +++ b/samples/tutorials/gpu/gpu.ipynb @@ -163,7 +163,7 @@ " image='tensorflow/tensorflow:latest-gpu',\n", " command=['sh', '-c'],\n", " ...
zenml-io__zenml-317
Repeated Paragraph in the documentation for `core-concepts` In the file `core-concepts.md`, the section on [`Pipeline`](https://github.com/zenml-io/zenml/blob/b94dff83f0e7c8ab29e99d6b42a0c906a3512b63/docs/book/introduction/core-concepts.md?plain=1#L27-L41) includes a repeated paragraph. The first paragraph in the the p...
[ { "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/introduction/core-concepts.md b/docs/book/introduction/core-concepts.md index 4f1703d8d38..290a63c6e3c 100644 --- a/docs/book/introduction/core-concepts.md +++ b/docs/book/introduction/core-concepts.md @@ -24,12 +24,6 @@ e.g., the active [Stack](guides/deploy\_to\_production.md) that you are usin...
Mailu__Mailu-1910
Rate limiting changes for 1.8 Copied from #1582. For 1.8 we will for now increase rate limiting value and disable rate limiting for the subnet. - Rate limiting - Document rate limiting - Currently the subnet is included in the rate limiting. This means that a user who repeatly fails to login the webmail, blo...
[ { "content": "import os\n\nfrom datetime import timedelta\nfrom socrate import system\n\nDEFAULT_CONFIG = {\n # Specific to the admin UI\n 'DOCKER_SOCKET': 'unix:///var/run/docker.sock',\n 'BABEL_DEFAULT_LOCALE': 'en',\n 'BABEL_DEFAULT_TIMEZONE': 'UTC',\n 'BOOTSTRAP_SERVE_LOCAL': True,\n 'RATE...
[ { "content": "import os\n\nfrom datetime import timedelta\nfrom socrate import system\n\nDEFAULT_CONFIG = {\n # Specific to the admin UI\n 'DOCKER_SOCKET': 'unix:///var/run/docker.sock',\n 'BABEL_DEFAULT_LOCALE': 'en',\n 'BABEL_DEFAULT_TIMEZONE': 'UTC',\n 'BOOTSTRAP_SERVE_LOCAL': True,\n 'RATE...
diff --git a/core/admin/mailu/configuration.py b/core/admin/mailu/configuration.py index 3d1b4fb51..d2d34d882 100644 --- a/core/admin/mailu/configuration.py +++ b/core/admin/mailu/configuration.py @@ -34,8 +34,8 @@ 'POSTMASTER': 'postmaster', 'TLS_FLAVOR': 'cert', 'INBOUND_TLS_ENFORCE': False, - 'AUTH...
certbot__certbot-9802
certbot-dns-ovh failed with Error adding TXT record: Expecting value: line 1 column 1 (char 0) ## My operating system is (include version): MacoSX 13.6 using docker latest image : https://hub.docker.com/r/certbot/dns-ovh ## I installed Certbot with (snap, OS package manager, pip, certbot-auto, etc): Docker ...
[ { "content": "from setuptools import find_packages\nfrom setuptools import setup\n\nversion = '0.32.0.dev0'\n\ninstall_requires = [\n 'coverage',\n 'cryptography',\n 'importlib_resources>=1.3.1; python_version < \"3.9\"',\n 'pyopenssl',\n 'pytest',\n 'pytest-cov',\n # This version is needed...
[ { "content": "from setuptools import find_packages\nfrom setuptools import setup\n\nversion = '0.32.0.dev0'\n\ninstall_requires = [\n 'coverage',\n 'cryptography',\n 'importlib_resources>=1.3.1; python_version < \"3.9\"',\n 'pyopenssl',\n 'pytest',\n 'pytest-cov',\n # This version is needed...
diff --git a/certbot-ci/certbot_integration_tests/utils/misc.py b/certbot-ci/certbot_integration_tests/utils/misc.py index 8260ccf5e58..dfeda4cda5b 100644 --- a/certbot-ci/certbot_integration_tests/utils/misc.py +++ b/certbot-ci/certbot_integration_tests/utils/misc.py @@ -52,10 +52,10 @@ def _suppress_x509_verification...
statsmodels__statsmodels-5648
Missing \\\ in summary2 as_latex function I found that the .as_latex() function failed when implemented, due to an issue coming from the line including \midline. It is a simple fix -- just required an extra \\\ before each \midline call, and it compiles.
[ { "content": "from statsmodels.compat.python import (lrange, iterkeys, iteritems, lzip,\n reduce, itervalues, zip, string_types,\n range)\n\nfrom collections import OrderedDict\nimport datetime\nimport re\nimport textwrap\n\nimport nump...
[ { "content": "from statsmodels.compat.python import (lrange, iterkeys, iteritems, lzip,\n reduce, itervalues, zip, string_types,\n range)\n\nfrom collections import OrderedDict\nimport datetime\nimport re\nimport textwrap\n\nimport nump...
diff --git a/statsmodels/base/tests/test_penalized.py b/statsmodels/base/tests/test_penalized.py index ee3f724270e..f519bc69abf 100644 --- a/statsmodels/base/tests/test_penalized.py +++ b/statsmodels/base/tests/test_penalized.py @@ -94,7 +94,10 @@ def test_summary(self): @pytest.mark.smoke def test_summary2...
nilearn__nilearn-2248
NiftiLabelsMasker.inverse_transform() appears to fail in current nilearn version --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-79-642858f1debf> in <module> ----> 1 masker.inverse_transform(labels_...
[ { "content": "\"\"\"\nTransformer for computing ROI signals.\n\"\"\"\n\nimport numpy as np\n\nfrom nilearn._utils.compat import Memory\n\nfrom .. import _utils\nfrom .._utils import logger, CacheMixin, _compose_err_msg\nfrom .._utils.class_inspect import get_params\nfrom .._utils.niimg_conversions import _check...
[ { "content": "\"\"\"\nTransformer for computing ROI signals.\n\"\"\"\n\nimport numpy as np\n\nfrom nilearn._utils.compat import Memory\n\nfrom .. import _utils\nfrom .._utils import logger, CacheMixin, _compose_err_msg\nfrom .._utils.class_inspect import get_params\nfrom .._utils.niimg_conversions import _check...
diff --git a/doc/whats_new.rst b/doc/whats_new.rst index d0ecf7f749..ca9f0201a4 100644 --- a/doc/whats_new.rst +++ b/doc/whats_new.rst @@ -25,6 +25,8 @@ Fixes - :func:`nilearn.image.new_img_like` no longer attempts to copy non-iterable headers. (PR #2212) - Nilearn no longer raises ImportError for nose when Matplotli...
getsentry__sentry-3393
Source map lookups wrong when location is first position in state array Failing test here: https://github.com/getsentry/sentry/commit/289e4e664769173b3b9ef7eb34c3e2576a2a543f Source of bug in [sentry.lang.javascript.sourcemaps#L158](https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/sourcemaps....
[ { "content": "\"\"\"\nsentry.utils.sourcemaps\n~~~~~~~~~~~~~~~~~~~~~~~\n\nOriginally based on https://github.com/martine/python-sourcemap\n\n:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.\n:license: BSD, see LICENSE for more details.\n\"\"\"\nfrom __future__ import absolute_import\n...
[ { "content": "\"\"\"\nsentry.utils.sourcemaps\n~~~~~~~~~~~~~~~~~~~~~~~\n\nOriginally based on https://github.com/martine/python-sourcemap\n\n:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.\n:license: BSD, see LICENSE for more details.\n\"\"\"\nfrom __future__ import absolute_import\n...
diff --git a/src/sentry/lang/javascript/sourcemaps.py b/src/sentry/lang/javascript/sourcemaps.py index 8496b706a9ad15..cb5920f22b80ef 100644 --- a/src/sentry/lang/javascript/sourcemaps.py +++ b/src/sentry/lang/javascript/sourcemaps.py @@ -155,4 +155,5 @@ def sourcemap_to_index(sourcemap): def find_source(indexed_sourc...
googleapis__google-cloud-python-3517
Broken link Hello, I found that the link at [https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/core/google/cloud/client.py#L33][1] is broken. https://google-cloud-python.readthedocs.io/en/latest/google-cloud-auth.html [1]: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/661...
[ { "content": "# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/core/google/cloud/client.py b/core/google/cloud/client.py index e7e43faf1e45..9bdbf507d201 100644 --- a/core/google/cloud/client.py +++ b/core/google/cloud/client.py @@ -29,8 +29,8 @@ _GOOGLE_AUTH_CREDENTIALS_HELP = ( 'This library only supports credentials from google-auth-library-python. ' - '...
translate__pootle-4350
Editor templates broken in non-debug mode Since switching to Django 1.8 in master, the [scripts section of the editor templates](https://github.com/translate/pootle/blob/master/pootle/templates/editor/_scripts.html) doesn't render when `DEBUG = False`. I might be doing something wrong, but I tried removing any templat...
[ { "content": "#!/usr/bin/env python\n# -*- 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 informa...
[ { "content": "#!/usr/bin/env python\n# -*- 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 informa...
diff --git a/pootle/apps/pootle_store/templatetags/store_tags.py b/pootle/apps/pootle_store/templatetags/store_tags.py index a37b6e0687b..9996befb050 100644 --- a/pootle/apps/pootle_store/templatetags/store_tags.py +++ b/pootle/apps/pootle_store/templatetags/store_tags.py @@ -234,7 +234,8 @@ def do_include_raw(parser, ...
facebookresearch__fairscale-221
Fail on install - CUDA 11.1.0 ## 🐛 Bug Hi, pip install on below environment throws an error. I'm happy to provide more info if it would be useful. Thanks! fatal error: multi_tensor_apply.cuh: No such file or directory ## Environment (NVIDIA-Python Docker: 20.10) Python: 3.6 PyTorch: 1.7.0 CUDA: 11.1.0 cu...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n__version__ = \"0.1.0\"\n\n###################################################################...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n__version__ = \"0.1.1\"\n\n###################################################################...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cedc177a..e518464c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.1.1] - 20...
cocotb__cocotb-2677
Make `cocotb.scheduler.create_task` a public API By creating a top-level alias `cocotb.create_task`. This function will turn a coroutine into a Task, but will not schedule it. Later the user can schedule that Task using `cocotb.start_soon` or `cocotb.start`.
[ { "content": "# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications 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 are met:\n# * Redistributions of...
[ { "content": "# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications 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 are met:\n# * Redistributions of...
diff --git a/cocotb/__init__.py b/cocotb/__init__.py index 6413f2ba16..37eb7f6fb6 100644 --- a/cocotb/__init__.py +++ b/cocotb/__init__.py @@ -196,6 +196,18 @@ async def start(coro: Union[RunningTask, Coroutine]) -> RunningTask: return task +def create_task(coro: Union[RunningTask, Coroutine]) -> RunningTask: ...
instadeepai__Mava-800
[BUG] SMAC legal action masking ### Describe the bug There is a bug with legal action masking on the SMAC tasks leading to runs failing. This is happening on big run sweeps for both recurrent and feedforward systems on the `25m` and `bane_vs_bane` tasks so far. ### To Reproduce A note. I was not able to reproduc...
[ { "content": "# python3\n# Copyright 2021 InstaDeep Ltd. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "# python3\n# Copyright 2021 InstaDeep Ltd. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/mava/wrappers/smac.py b/mava/wrappers/smac.py index 623bb97c1..676e59c89 100644 --- a/mava/wrappers/smac.py +++ b/mava/wrappers/smac.py @@ -114,7 +114,7 @@ def step(self, actions: Dict[str, np.ndarray]) -> dm_env.TimeStep: return self.reset() # Convert dict of actions to list for SM...
digitalfabrik__integreat-cms-832
`UnboundLocalError` in imprint form ### Describe the Bug <!-- A clear and concise description of what the bug is. --> The imprint can only be created when it does not yet exist. Once it exists, it cannot be changed anymore. ### Steps to Reproduce 1. Go to the imprint form 2. Create imprint 3. Change existing...
[ { "content": "import logging\n\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import login_required\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.shortcuts import render, redirect, get_object_or_404\nfrom django.urls import reverse\nfrom django.utils.dec...
[ { "content": "import logging\n\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import login_required\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.shortcuts import render, redirect, get_object_or_404\nfrom django.urls import reverse\nfrom django.utils.dec...
diff --git a/src/cms/views/imprint/imprint_view.py b/src/cms/views/imprint/imprint_view.py index dcde7fbadb..fb66688f0f 100644 --- a/src/cms/views/imprint/imprint_view.py +++ b/src/cms/views/imprint/imprint_view.py @@ -220,8 +220,8 @@ def post(self, request, *args, **kwargs): }, ) - ...
mozmeao__basket-387
Capture credit card type in MoFo donations (MoFo work tracked [here](https://github.com/mozilla/donate-wagtail/issues/620)) We need to capture credit card type in donation opportunity records so that we can include it in emailed receipts to donors. It sounds like we need to a.) add the `Credit_Card_Type_c` field ...
[ { "content": "import json\nimport logging\nfrom copy import deepcopy\nfrom datetime import datetime, timedelta\nfrom email.utils import formatdate\nfrom functools import wraps\nfrom hashlib import sha256\nfrom time import mktime, time\nfrom urllib.parse import urlencode\n\nfrom django.conf import settings\nfrom...
[ { "content": "import json\nimport logging\nfrom copy import deepcopy\nfrom datetime import datetime, timedelta\nfrom email.utils import formatdate\nfrom functools import wraps\nfrom hashlib import sha256\nfrom time import mktime, time\nfrom urllib.parse import urlencode\n\nfrom django.conf import settings\nfrom...
diff --git a/basket/news/tasks.py b/basket/news/tasks.py index 17b28d1a8..d81075b18 100644 --- a/basket/news/tasks.py +++ b/basket/news/tasks.py @@ -1042,6 +1042,7 @@ def process_donation_event(data): 'Donation_Form_URL__c': 'donation_url', 'Project__c': 'project', 'PMT_Subscription_ID__c': 'subscription...
rootpy__rootpy-723
AttributeError when using root_open I am pretty new to both root and rootpy. But this seams wrong Dont really know how to find the error. I am just trying to open a root file using rootpy and I get an AttributeError - No matter if the file exists or not. I can open a root file using PyROOT though. Any thoughts Ip...
[ { "content": "# Copyright 2012 the rootpy developers\n# distributed under the terms of the GNU General Public License\n\"\"\"\n:py:mod:`rootpy.ROOT`\n=====================\n\nThis module is intended to be a drop-in replacement for ordinary\nPyROOT imports by mimicking PyROOT's interface. If you find a case wher...
[ { "content": "# Copyright 2012 the rootpy developers\n# distributed under the terms of the GNU General Public License\n\"\"\"\n:py:mod:`rootpy.ROOT`\n=====================\n\nThis module is intended to be a drop-in replacement for ordinary\nPyROOT imports by mimicking PyROOT's interface. If you find a case wher...
diff --git a/rootpy/ROOT.py b/rootpy/ROOT.py index 8f843c96..4553253f 100644 --- a/rootpy/ROOT.py +++ b/rootpy/ROOT.py @@ -114,8 +114,13 @@ def __getattr__(self, what): 'and rootpy does not contain the class `{0}`'.format(what)) return result - # Memoize - setattr(self,...
celery__celery-6288
stop loading pytest plugin by default currently celery, by default, will add a set of fixtures and a mark, which can be confusing to new developers on a project when running `pytest --fixtures` and begin using them even through we've not yet opted into and started configuring them. An alternative is to use an approa...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport codecs\nimport os\nimport re\nimport sys\n\nimport setuptools\nimport setuptools.command.test\n\ntry:\n from platform import python_implementation as _pyimp\nexcept (AttributeError, ImportError):\n def _pyimp():\n return 'Python (...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport codecs\nimport os\nimport re\nimport sys\n\nimport setuptools\nimport setuptools.command.test\n\ntry:\n from platform import python_implementation as _pyimp\nexcept (AttributeError, ImportError):\n def _pyimp():\n return 'Python (...
diff --git a/requirements/extras/pytest.txt b/requirements/extras/pytest.txt new file mode 100644 index 00000000000..8e0e5f3471b --- /dev/null +++ b/requirements/extras/pytest.txt @@ -0,0 +1 @@ +pytest-celery diff --git a/requirements/test.txt b/requirements/test.txt index 755905cbb55..fd0ba172f90 100644 --- a/requirem...
sunpy__sunpy-3333
[1.0.3] test_print_config_files fails with installed sunpy <!-- This comments are hidden when you submit the issue so you do not need to remove them! Please be sure to check out our contributing guidelines: https://github.com/sunpy/sunpy/blob/master/CONTRIBUTING.rst Please be sure to check out our code of conduct: h...
[ { "content": "import os\nimport json\nimport pathlib\nimport warnings\nimport importlib\nimport tempfile\n\nimport pytest\n\nimport astropy\nimport astropy.config.paths\n\nimport sunpy.tests.helpers\nfrom sunpy.tests.hash import HASH_LIBRARY_NAME\nfrom sunpy.tests.helpers import new_hash_library, generate_figur...
[ { "content": "import os\nimport json\nimport pathlib\nimport warnings\nimport importlib\nimport tempfile\n\nimport pytest\n\nimport astropy\nimport astropy.config.paths\n\nimport sunpy.tests.helpers\nfrom sunpy.tests.hash import HASH_LIBRARY_NAME\nfrom sunpy.tests.helpers import new_hash_library, generate_figur...
diff --git a/sunpy/conftest.py b/sunpy/conftest.py index 60632d3a116..4dd35dfbb78 100644 --- a/sunpy/conftest.py +++ b/sunpy/conftest.py @@ -46,7 +46,7 @@ def tmp_config_dir(request): """ tmpdir = tempfile.TemporaryDirectory() - os.environ["SUNPY_CONFIGDIR"] = str(pathlib.Path(__file__).parent / "data") ...
cupy__cupy-5362
Need housekeeping macros for HIP According to an earlier discussion (https://github.com/cupy/cupy/pull/4367#discussion_r542051342), it's better to collect the macro redefinitions for functions that are not supported by HIP (ex: `__shfl*sync()`) in one place so that they are always correctly included when compiling on H...
[ { "content": "import warnings\n\nimport cupy\n\nfrom cupy_backends.cuda.api import runtime\nfrom cupyx.jit import _cuda_types\nfrom cupyx.jit._internal_types import BuiltinFunc\nfrom cupyx.jit._internal_types import Data\nfrom cupyx.jit._internal_types import Constant\nfrom cupyx.jit._internal_types import Rang...
[ { "content": "import warnings\n\nimport cupy\n\nfrom cupy_backends.cuda.api import runtime\nfrom cupyx.jit import _cuda_types\nfrom cupyx.jit._internal_types import BuiltinFunc\nfrom cupyx.jit._internal_types import Data\nfrom cupyx.jit._internal_types import Constant\nfrom cupyx.jit._internal_types import Rang...
diff --git a/cupy/_core/_routines_indexing.pyx b/cupy/_core/_routines_indexing.pyx index 0661fe0211f..462c408fd83 100644 --- a/cupy/_core/_routines_indexing.pyx +++ b/cupy/_core/_routines_indexing.pyx @@ -429,12 +429,6 @@ cdef ndarray _simple_getitem(ndarray a, list slice_list): return v -_preamble = '' if not...
getsentry__sentry-python-464
logging breadcrumb collection time is incorrect ![sentry](https://user-images.githubusercontent.com/28345280/61774444-71f0a800-ae29-11e9-8074-f3c88154b432.png) I found the breadcrumbs timestamp converted to the local time zone datetime.datetime.fromtimestamp(record.created) > ```python > # /sentry_sdk/integra...
[ { "content": "from __future__ import absolute_import\n\nimport logging\nimport datetime\n\nfrom sentry_sdk.hub import Hub\nfrom sentry_sdk.utils import (\n to_string,\n event_from_exception,\n current_stacktrace,\n capture_internal_exceptions,\n)\nfrom sentry_sdk.integrations import Integration\nfro...
[ { "content": "from __future__ import absolute_import\n\nimport logging\nimport datetime\n\nfrom sentry_sdk.hub import Hub\nfrom sentry_sdk.utils import (\n to_string,\n event_from_exception,\n current_stacktrace,\n capture_internal_exceptions,\n)\nfrom sentry_sdk.integrations import Integration\nfro...
diff --git a/sentry_sdk/integrations/logging.py b/sentry_sdk/integrations/logging.py index 512c3dada5..e0a1455313 100644 --- a/sentry_sdk/integrations/logging.py +++ b/sentry_sdk/integrations/logging.py @@ -96,7 +96,7 @@ def _breadcrumb_from_record(record): "level": _logging_to_event_level(record.levelname), ...
cal-itp__benefits-1229
Investigate missing event properties In #1057 we made some changes to the base `Event` type, to include an `eligibility_types` property on all events we send into Amplitude. ## OAuth events Looking at the event reports over the last 14 days of production data, the [`started sign in` event](https://github.com/cal-...
[ { "content": "\"\"\"\nThe eligibility application: analytics implementation.\n\"\"\"\nfrom benefits.core import analytics as core\n\n\nclass EligibilityEvent(core.Event):\n \"\"\"Base analytics event for eligibility verification.\"\"\"\n\n def __init__(self, request, event_type, eligibility_types):\n ...
[ { "content": "\"\"\"\nThe eligibility application: analytics implementation.\n\"\"\"\nfrom benefits.core import analytics as core\n\n\nclass EligibilityEvent(core.Event):\n \"\"\"Base analytics event for eligibility verification.\"\"\"\n\n def __init__(self, request, event_type, eligibility_types):\n ...
diff --git a/benefits/eligibility/analytics.py b/benefits/eligibility/analytics.py index e096c810cc..0dc03322da 100644 --- a/benefits/eligibility/analytics.py +++ b/benefits/eligibility/analytics.py @@ -11,6 +11,7 @@ def __init__(self, request, event_type, eligibility_types): super().__init__(request, event_ty...
RedHatInsights__insights-core-3043
The dmsetup parser is raising ValueError exceptions in production The DmsetupStatus parser is throwing a large number of the exception ValueError('not enough values to unpack (expected 2, got 1)',) in production.
[ { "content": "\"\"\"\ndmsetup commands - Command ``dmsetup``\n======================================\n\nParsers for parsing and extracting data from output of commands related to\n``dmsetup``.\nParsers contained in this module are:\n\nDmsetupInfo - command ``dmsetup info -C``\n----------------------------------...
[ { "content": "\"\"\"\ndmsetup commands - Command ``dmsetup``\n======================================\n\nParsers for parsing and extracting data from output of commands related to\n``dmsetup``.\nParsers contained in this module are:\n\nDmsetupInfo - command ``dmsetup info -C``\n----------------------------------...
diff --git a/insights/parsers/dmsetup.py b/insights/parsers/dmsetup.py index ba693bef2f..ae77e6da97 100644 --- a/insights/parsers/dmsetup.py +++ b/insights/parsers/dmsetup.py @@ -189,6 +189,9 @@ class DmsetupStatus(CommandParser, list): def parse_content(self, content): self.unparseable_lines = [] + ...
googleapis__google-cloud-python-5899
Default max_bytes in pubsub seems wrong https://github.com/GoogleCloudPlatform/google-cloud-python/blob/005ddd11770f8953643dac9b64a037524da2f49e/pubsub/google/cloud/pubsub_v1/types.py#L43 In my code I'm seeing this: ``` google.api_core.exceptions.InvalidArgument: 400 The value for 10159812 is too large. You passed...
[ { "content": "# Copyright 2017, Google LLC All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 2017, Google LLC All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/pubsub/google/cloud/pubsub_v1/types.py b/pubsub/google/cloud/pubsub_v1/types.py index 1ac99a96534b..1f5ca92174e2 100644 --- a/pubsub/google/cloud/pubsub_v1/types.py +++ b/pubsub/google/cloud/pubsub_v1/types.py @@ -40,7 +40,7 @@ ['max_bytes', 'max_latency', 'max_messages'], ) BatchSettings.__new__.__...
oppia__oppia-11852
FetchIssuesHandler should respond with a JSON object instead of an array `FetchIssuesHandler` ([link](https://github.com/oppia/oppia/blob/84c00daefcda8174bf312e11106c31940b96fd4a/core/controllers/editor.py#L526)) currently responds to GET requests with a JSON array. This conflicts with HTTP best practices, and should b...
[ { "content": "# coding: utf-8\n\n# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licens...
[ { "content": "# coding: utf-8\n\n# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licens...
diff --git a/core/controllers/editor.py b/core/controllers/editor.py index bbc6b763b8f9b..6cbcba1316ac6 100644 --- a/core/controllers/editor.py +++ b/core/controllers/editor.py @@ -558,7 +558,7 @@ def get(self, exp_id): unresolved_issues.append(issue) exp_issues.unresolved_issues = unresolved_...
akvo__akvo-rsr-1622
Small user interface enhancements See https://github.com/akvo/akvo-product-design/issues/104 ## Test plan 1. "Update list" on directory pages should display "Search" 2. On the project page, in the financial overview part, no cents should be displayed and the total amount funded should be displayed (only visible when do...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nAkvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the\nAkvo RSR module. For additional details on the GNU license please see\n< http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nAkvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the\nAkvo RSR module. For additional details on the GNU license please see\n< http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\...
diff --git a/akvo/rsr/static/styles-src/main.css b/akvo/rsr/static/styles-src/main.css index 13790a3d7a..8d3b279cb2 100755 --- a/akvo/rsr/static/styles-src/main.css +++ b/akvo/rsr/static/styles-src/main.css @@ -533,6 +533,14 @@ nav.navbar-fixed-top { background: rgba(32, 32, 36, 0.1) !important; } .myProjectList ...
iterative__dvc-4156
DVC status fails after using add -R Hey :) I have a folder of files I added with $$ dvc add -R raw_data Then I've imported the folder in other git repo using $$ dvc import -o data --rev raw-v1 https://...@bitbucket.org/.../raw_data_reg.git raw_data Then when execute dvc status I get an error message ``` ...
[ { "content": "import os\n\nfrom voluptuous import Required\n\nfrom dvc.exceptions import OutputNotFoundError\nfrom dvc.path_info import PathInfo\n\nfrom .local import LocalDependency\n\n\nclass RepoDependency(LocalDependency):\n PARAM_REPO = \"repo\"\n PARAM_URL = \"url\"\n PARAM_REV = \"rev\"\n PAR...
[ { "content": "import os\n\nfrom voluptuous import Required\n\nfrom dvc.exceptions import OutputNotFoundError\nfrom dvc.path_info import PathInfo\n\nfrom .local import LocalDependency\n\n\nclass RepoDependency(LocalDependency):\n PARAM_REPO = \"repo\"\n PARAM_URL = \"url\"\n PARAM_REV = \"rev\"\n PAR...
diff --git a/dvc/dependency/repo.py b/dvc/dependency/repo.py index 8566c080b9..3ae2a77dfb 100644 --- a/dvc/dependency/repo.py +++ b/dvc/dependency/repo.py @@ -64,7 +64,7 @@ def _get_checksum(self, locked=True): # We are polluting our repo cache with some dir listing here if tree.isdi...
pytorch__pytorch-2084
Negative dimension behaviour in torch.stack Support for using a negative dimension in `torch.stack` currently works as follows: ```python if dim < 0: dim += sequence[0].dim() ``` This is not consistent with the behaviour of `torch.unsqueeze`, which uses `dim += input.dim() + 1`. The unsqueeze behaviour is ...
[ { "content": "import torch\nfrom ._utils import _range\nfrom operator import mul\nfrom functools import reduce\n\n__all__ = [\n 'split', 'chunk', 'stack', 'unbind', 'btriunpack', 'matmul',\n]\n\n\ndef split(tensor, split_size, dim=0):\n \"\"\"Splits the tensor into equally sized chunks (if possible).\n\n ...
[ { "content": "import torch\nfrom ._utils import _range\nfrom operator import mul\nfrom functools import reduce\n\n__all__ = [\n 'split', 'chunk', 'stack', 'unbind', 'btriunpack', 'matmul',\n]\n\n\ndef split(tensor, split_size, dim=0):\n \"\"\"Splits the tensor into equally sized chunks (if possible).\n\n ...
diff --git a/test/test_torch.py b/test/test_torch.py index e9bbb8e0c96165..ecd05a75ed0835 100644 --- a/test/test_torch.py +++ b/test/test_torch.py @@ -1644,7 +1644,9 @@ def test_stack(self): z = torch.rand(2, 3, 4) for dim in range(4): res = torch.stack((x, y, z), dim) + res_ne...
cloud-custodian__cloud-custodian-9163
aws - glue connection has NoneType error when no VPC ### Describe the bug When there is no VPC on the Glue connection resource, we get a `TypeError: 'NoneType' object is not iterable` error ### What did you expect to happen? Succeed in this case. ### Cloud Provider Amazon Web Services (AWS) ### Cloud Custodian ve...
[ { "content": "# Copyright The Cloud Custodian Authors.\n# SPDX-License-Identifier: Apache-2.0\nimport importlib\nfrom functools import lru_cache\n\nfrom .core import ValueFilter, OPERATORS\nfrom c7n.query import ChildResourceQuery\nfrom c7n.utils import jmespath_search\n\n\nclass RelatedResourceFilter(ValueFilt...
[ { "content": "# Copyright The Cloud Custodian Authors.\n# SPDX-License-Identifier: Apache-2.0\nimport importlib\nfrom functools import lru_cache\n\nfrom .core import ValueFilter, OPERATORS\nfrom c7n.query import ChildResourceQuery\nfrom c7n.utils import jmespath_search\n\n\nclass RelatedResourceFilter(ValueFilt...
diff --git a/c7n/filters/related.py b/c7n/filters/related.py index 9fc6e2bfbd8..d0961f5d514 100644 --- a/c7n/filters/related.py +++ b/c7n/filters/related.py @@ -46,6 +46,10 @@ def get_related(self, resources): related = resource_manager.get_resources(list(related_ids)) else: related =...
ansible__ansible-modules-extras-1529
rabbitmq_parameter fails when passing dynamically generated json ##### Issue Type: “Bug Report” ##### Ansible Version: ansible 1.8.2 configured module search path = None Tested also on ansible 1.9 ansible 1.9 (devel 8f06ba2bc1) last updated 2015/02/05 11:16:37 (GMT +200) lib/ansible/modules/core: (detached HEAD ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Chatham Financial <oss@chathamfinancial.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softwa...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Chatham Financial <oss@chathamfinancial.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softwa...
diff --git a/messaging/rabbitmq_parameter.py b/messaging/rabbitmq_parameter.py index f2744ca2ae2..2f78bd4ee15 100644 --- a/messaging/rabbitmq_parameter.py +++ b/messaging/rabbitmq_parameter.py @@ -126,8 +126,6 @@ def main(): component = module.params['component'] name = module.params['name'] value = modu...
facebookresearch__hydra-1685
CI fails with UserWarning raised from importing nevergrad example failure here https://app.circleci.com/pipelines/github/facebookresearch/hydra/10584/workflows/d4c57363-bb31-42f4-a7ee-29c28a577f67/jobs/95695 this can be reproduced by simply importing nevergrad ``` >>> import nevergrad as ng /Users/jieru/opt/anaco...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n# type: ignore\nfrom pathlib import Path\n\nfrom read_version import read_version\nfrom setuptools import find_namespace_packages, setup\n\nsetup(\n name=\"hydra-nevergrad-sweeper\",\n version=read_version(\"hydra_plugin...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n# type: ignore\nfrom pathlib import Path\n\nfrom read_version import read_version\nfrom setuptools import find_namespace_packages, setup\n\nsetup(\n name=\"hydra-nevergrad-sweeper\",\n version=read_version(\"hydra_plugin...
diff --git a/plugins/hydra_nevergrad_sweeper/setup.py b/plugins/hydra_nevergrad_sweeper/setup.py index 36fbfe12552..28954591ac3 100644 --- a/plugins/hydra_nevergrad_sweeper/setup.py +++ b/plugins/hydra_nevergrad_sweeper/setup.py @@ -27,6 +27,7 @@ install_requires=[ "hydra-core>=1.1.0.dev7", "neve...
sublimelsp__LSP-1699
Getting error "list index out of range" when no command is defined **Describe the bug** LSP shows a cryptic error message when you want to use elixir-ls but the package settings don't define a default command similar to other clients. When you install ElixirLS on Manjaro the executable is named `elixir-ls`. **To Re...
[ { "content": "from .collections import DottedDict\nfrom .logging import debug, set_debug_logging\nfrom .protocol import TextDocumentSyncKindNone\nfrom .typing import Any, Optional, List, Dict, Generator, Callable, Iterable, Union, Set, Tuple, TypeVar\nfrom .url import filename_to_uri\nfrom .url import uri_to_fi...
[ { "content": "from .collections import DottedDict\nfrom .logging import debug, set_debug_logging\nfrom .protocol import TextDocumentSyncKindNone\nfrom .typing import Any, Optional, List, Dict, Generator, Callable, Iterable, Union, Set, Tuple, TypeVar\nfrom .url import filename_to_uri\nfrom .url import uri_to_fi...
diff --git a/plugin/core/types.py b/plugin/core/types.py index 8722fcb52..d333c9c5b 100644 --- a/plugin/core/types.py +++ b/plugin/core/types.py @@ -520,6 +520,8 @@ def __init__( env: Dict[str, str], listener_socket: Optional[socket.socket] ) -> None: + if not command and not tcp_port: + ...
canonical__microk8s-3774
microk8s.reset does not remove resources <!-- Thank you for submitting an issue. Please fill in the template below information about the bug you encountered. --> #### Summary <!-- Please explain the bug in a few short sentences --> #### What Should Happen Instead? <!-- Please explain what the expected ...
[ { "content": "#!/usr/bin/python3\nimport click\nimport os\nimport subprocess\nimport shutil\nimport sys\nimport time\n\nfrom common.utils import (\n get_available_addons,\n get_current_arch,\n get_status,\n snap_data,\n wait_for_ready,\n snap_common,\n is_cluster_locked,\n exit_if_no_per...
[ { "content": "#!/usr/bin/python3\nimport click\nimport os\nimport subprocess\nimport shutil\nimport sys\nimport time\n\nfrom common.utils import (\n get_available_addons,\n get_current_arch,\n get_status,\n snap_data,\n wait_for_ready,\n snap_common,\n is_cluster_locked,\n exit_if_no_per...
diff --git a/scripts/wrappers/reset.py b/scripts/wrappers/reset.py index b0b5f44c68..fd6ec252a0 100644 --- a/scripts/wrappers/reset.py +++ b/scripts/wrappers/reset.py @@ -232,7 +232,7 @@ def remove_extra_resources(ns_name): for rs in extra_resources: if rs.startswith("apiservices"): continue ...
internetarchive__openlibrary-7789
Fix git SHA on website + status page (dupe?) <!-- What problem are we solving? What does the experience look like today? What are the symptoms? --> The footer + https://openlibrary.org/status should both show the website's git sha. Somewhere down the road we had a regression. ### Evidence / Screenshot (if possibl...
[ { "content": "\"\"\"Generic utilities\"\"\"\n\nfrom enum import Enum\nimport re\nfrom subprocess import run\nfrom typing import TypeVar, Literal, Optional\nfrom collections.abc import Iterable, Callable\n\nto_drop = set(''';/?:@&=+$,<>#%\"{}|\\\\^[]`\\n\\r''')\n\n\ndef str_to_key(s: str) -> str:\n \"\"\"\n ...
[ { "content": "\"\"\"Generic utilities\"\"\"\n\nfrom enum import Enum\nimport re\nfrom subprocess import run\nfrom typing import TypeVar, Literal, Optional\nfrom collections.abc import Iterable, Callable\n\nto_drop = set(''';/?:@&=+$,<>#%\"{}|\\\\^[]`\\n\\r''')\n\n\ndef str_to_key(s: str) -> str:\n \"\"\"\n ...
diff --git a/openlibrary/utils/__init__.py b/openlibrary/utils/__init__.py index 632b8bdc752..23839c0b139 100644 --- a/openlibrary/utils/__init__.py +++ b/openlibrary/utils/__init__.py @@ -193,8 +193,11 @@ def is_number(s): def get_software_version() -> str: + """ + assert get_software_version() # Should ne...
pytorch__pytorch-127219
[DCP] `set_model_state_dict` errors on compiled module with non-persistent buffer ``` """ torchrun --standalone --nproc_per_node=2 repro_dcp_compile.py """ import os import torch import torch.nn as nn import torch.distributed as dist from torch.distributed.checkpoint.state_dict import get_model_state_dict, set_...
[ { "content": "import contextlib\nimport functools\nimport gc\nfrom dataclasses import asdict, dataclass, field\nfrom itertools import chain\nfrom typing import (\n Any,\n Callable,\n cast,\n Dict,\n Generator,\n Iterable,\n List,\n no_type_check,\n Optional,\n Set,\n Tuple,\n ...
[ { "content": "import contextlib\nimport functools\nimport gc\nfrom dataclasses import asdict, dataclass, field\nfrom itertools import chain\nfrom typing import (\n Any,\n Callable,\n cast,\n Dict,\n Generator,\n Iterable,\n List,\n no_type_check,\n Optional,\n Set,\n Tuple,\n ...
diff --git a/test/distributed/checkpoint/test_state_dict.py b/test/distributed/checkpoint/test_state_dict.py index ec8e80a2a3012a..ce13ad22e46da6 100644 --- a/test/distributed/checkpoint/test_state_dict.py +++ b/test/distributed/checkpoint/test_state_dict.py @@ -556,6 +556,17 @@ def _test_activation_ckpt_fqns_fsdp1(sel...
python-telegram-bot__python-telegram-bot-2168
mypy doesn't pick up type hints[BUG] <!-- Thanks for reporting issues of python-telegram-bot! Use this template to notify us if you found a bug. To make it easier for us to help you please enter detailed information below. Please note, we only support the latest version of python-telegram-bot and master bran...
[ { "content": "#!/usr/bin/env python\n\"\"\"The setup and build script for the python-telegram-bot library.\"\"\"\n\nimport codecs\nimport os\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\ndef requirements():\n \"\"\"Build the requirements list for this project\"\"\"\n requirements_list = ...
[ { "content": "#!/usr/bin/env python\n\"\"\"The setup and build script for the python-telegram-bot library.\"\"\"\n\nimport codecs\nimport os\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\ndef requirements():\n \"\"\"Build the requirements list for this project\"\"\"\n requirements_list = ...
diff --git a/MANIFEST.in b/MANIFEST.in index 2a6b5ab8a35..55bc61aca7b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -include LICENSE LICENSE.lesser Makefile requirements.txt +include LICENSE LICENSE.lesser Makefile requirements.txt py.typed diff --git a/setup.py b/setup.py index 08dfe8ef179..cb13e49178f 100644...
adamchainz__django-cors-headers-715
unhandled invalid HTTP_ORIGIN ### Understanding CORS - [X] I have read the resources. ### Python Version 3.9.7 ### Django Version 3.2.8 ### Package Version 3.10.0 ### Description it seems that an unparsable, invalid `HTTP_ORIGIN` header is a trivial way to exception/mail spam a django instance: ``` Interna...
[ { "content": "import re\nfrom typing import Any, Optional\nfrom urllib.parse import ParseResult, urlparse\n\nfrom django.http import HttpRequest, HttpResponse\nfrom django.utils.cache import patch_vary_headers\nfrom django.utils.deprecation import MiddlewareMixin\n\nfrom corsheaders.conf import conf\nfrom corsh...
[ { "content": "import re\nfrom typing import Any, Optional\nfrom urllib.parse import ParseResult, urlparse\n\nfrom django.http import HttpRequest, HttpResponse\nfrom django.utils.cache import patch_vary_headers\nfrom django.utils.deprecation import MiddlewareMixin\n\nfrom corsheaders.conf import conf\nfrom corsh...
diff --git a/HISTORY.rst b/HISTORY.rst index f29fed35..7dc52420 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,10 @@ History ======= +* Prevent a crash when an invalid ``Origin`` header is sent. + + Thanks to minusf for the report in `Issue #701 <https://github.com/adamchainz/django-cors-headers/issues/701>...
freedomofpress__securedrop-3709
[functional testing] Fix staging CI job on tbb-0.9.0 We removed the application/functional test run from the staging environment in #3697. We should also update the testinfra test references and remove the application test run from CI, otherwise we get a few testinfra test failures due to pip deps, and an error when we...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport datetime\nimport os\nimport sys\nimport argparse\nfrom sqlalchemy.exc import IntegrityError\n\nos.environ[\"SECUREDROP_ENV\"] = \"dev\" # noqa\nimport journalist_app\nfrom sdconfig import config\nfrom db import db\nfrom models import Journa...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport datetime\nimport os\nimport sys\nimport argparse\nfrom sqlalchemy.exc import IntegrityError\n\nos.environ[\"SECUREDROP_ENV\"] = \"dev\" # noqa\nimport journalist_app\nfrom sdconfig import config\nfrom db import db\nfrom models import Journa...
diff --git a/molecule/aws/scripts/app-tests.sh b/molecule/aws/scripts/app-tests.sh deleted file mode 100644 index 292a8b39ee..0000000000 --- a/molecule/aws/scripts/app-tests.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -# -# -export DISPLAY=:1 - - -cd "$1" || exit 1 - -# --page-layout are created for selected languag...