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
⌀
quantumlib__Cirq-5250
Docs builds for GridInteractionLayer and XebResultDict are broken **Description of the issue** Currently we cannot run the `build_api_docs.py` and build the API docs for `GridInteractionLayer` or `XebResultDict`. **How to reproduce the issue** ``` diff --git a/dev_tools/docs/build_api_docs.py b/dev_tools/docs/b...
[ { "content": "# Copyright 2021 The Cirq Developers\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\n#\n# Unless required by...
[ { "content": "# Copyright 2021 The Cirq Developers\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\n#\n# Unless required by...
diff --git a/dev_tools/docs/build_api_docs.py b/dev_tools/docs/build_api_docs.py index e1422eabefb..8fcefdefa0a 100644 --- a/dev_tools/docs/build_api_docs.py +++ b/dev_tools/docs/build_api_docs.py @@ -95,11 +95,6 @@ def generate_cirq(): site_path=FLAGS.site_path, callbacks=[public_api.local_definition...
freqtrade__freqtrade-2786
trailing_stop = True not selling? ## Step 1: Have you search for this issue before posting it? Yes ## Step 2: Describe your environment * Operating system: ubuntu server * Python Version: 3.8 * CCXT version: ccxt==1.21.56 * Branch: Develop * Last Commit ID: 2f82122fc40caf428d48f7ab942c8dc49c3ee8f1 ...
[ { "content": "\"\"\"\nIStrategy interface\nThis module defines the interface to apply for strategies\n\"\"\"\nimport logging\nfrom abc import ABC, abstractmethod\nfrom datetime import datetime, timezone\nfrom enum import Enum\nfrom typing import Dict, List, NamedTuple, Optional, Tuple\nimport warnings\n\nimport...
[ { "content": "\"\"\"\nIStrategy interface\nThis module defines the interface to apply for strategies\n\"\"\"\nimport logging\nfrom abc import ABC, abstractmethod\nfrom datetime import datetime, timezone\nfrom enum import Enum\nfrom typing import Dict, List, NamedTuple, Optional, Tuple\nimport warnings\n\nimport...
diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index 7bd6a9ac5f3..27bc8280ef6 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -389,9 +389,11 @@ def stop_loss_reached(self, current_rate: float, trade: Trade, trade.adjust_stop_loss(hig...
facebookresearch__xformers-40
Logo doesn't appear on documentation sub-pages # 🐛 Bug <!-- A clear and concise description of what the bug is. --> Currently, the `xFormers` logo only appears on the main docs page and the `what_is_xformers` page which is present in the same directory as it, but not on the other sub-pages. I was wondering wheth...
[ { "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\n# type: ignore\n# Configuration file for the Sphinx documentation builder.\n#\n# This file o...
[ { "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\n# type: ignore\n# Configuration file for the Sphinx documentation builder.\n#\n# This file o...
diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index d285aee517..95401c2768 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -43,11 +43,11 @@ jobs: cd docs pip install --progress-bar off -r requirements.txt make help - ...
Flexget__Flexget-3659
"Unexpected crash"-message points towards outdated and non-working version_checker link <!--- Before opening an issue, verify: - Is this an issue with webui? Make an issue over on https://github.com/Flexget/webui - Did you recently upgrade? Look at the Change Log and Upgrade Actions to make sure that you don't nee...
[ { "content": "import argparse # noqa\nimport atexit # noqa\nimport codecs # noqa\nimport collections\nimport copy # noqa\nimport errno # noqa\nimport fnmatch # noqa\nimport hashlib # noqa\nimport os # noqa\nimport shutil # noqa\nimport signal # noqa\nimport sys # noqa\nimport threading # noqa\nimpor...
[ { "content": "import argparse # noqa\nimport atexit # noqa\nimport codecs # noqa\nimport collections\nimport copy # noqa\nimport errno # noqa\nimport fnmatch # noqa\nimport hashlib # noqa\nimport os # noqa\nimport shutil # noqa\nimport signal # noqa\nimport sys # noqa\nimport threading # noqa\nimpor...
diff --git a/flexget/manager.py b/flexget/manager.py index a0f5096bb9..fd5f999a21 100644 --- a/flexget/manager.py +++ b/flexget/manager.py @@ -1075,7 +1075,7 @@ def crash_report(self) -> str: 'An unexpected crash has occurred. Writing crash report to {}. ' 'Please verify you are runnin...
huggingface__diffusers-7875
Error when using blockwise scales with sd_xl_offset_example-lora_1.0.safetensors ### Describe the bug When loading the [sd_xl_offset_example-lora_1.0.safetensors](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/sd_xl_offset_example-lora_1.0.safetensors) from the [official repository](https://...
[ { "content": "# Copyright 2024 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
[ { "content": "# Copyright 2024 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
diff --git a/src/diffusers/utils/peft_utils.py b/src/diffusers/utils/peft_utils.py index 8ea12e2e3b3f..ca55192ff7ae 100644 --- a/src/diffusers/utils/peft_utils.py +++ b/src/diffusers/utils/peft_utils.py @@ -246,7 +246,13 @@ def get_module_weight(weight_for_adapter, module_name): for layer_name, weight_ in weig...
Lightning-AI__pytorch-lightning-2911
load_from_checkpoint: TypeError: __init__() missing 1 required positional argument ## ❓ Questions and Help #### What is your question? load_from_checkpoint: TypeError: __init__() missing 1 required positional argument I have read the issues before, but the things different is **my `LightningModule` is inherite...
[ { "content": "import ast\nimport csv\nimport inspect\nimport os\nfrom argparse import Namespace\nfrom typing import Union, Dict, Any, Optional, Callable, MutableMapping\n\nimport torch\nimport yaml\n\nfrom pytorch_lightning import _logger as log\nfrom pytorch_lightning.utilities import rank_zero_warn, Attribute...
[ { "content": "import ast\nimport csv\nimport inspect\nimport os\nfrom argparse import Namespace\nfrom typing import Union, Dict, Any, Optional, Callable, MutableMapping\n\nimport torch\nimport yaml\n\nfrom pytorch_lightning import _logger as log\nfrom pytorch_lightning.utilities import rank_zero_warn, Attribute...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8232f544c8b9d..a05fed66ef7e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -123,6 +123,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Fixed save apex scaler states ([#2828](https://github.com/PyTorchLightning/pytorch-lightning/p...
microsoft__PubSec-Info-Assistant-351
Web app doesn't start when there is new AOAI resource used **Describe the bug** With the new Delta version the web app doesn't start when there is new AOAI resource used. **To Reproduce** Steps to reproduce the behavior: 1. Deploy a brand new Delta version with new AOAI resource (USE_EXISTING_AOAI=false) 2. Web...
[ { "content": "# Copyright (c) Microsoft Corporation.\n# Licensed under the MIT license.\n\nimport logging\nimport mimetypes\nimport os\nimport json\nimport urllib.parse\nfrom datetime import datetime, timedelta\n\nimport openai\nfrom approaches.chatreadretrieveread import ChatReadRetrieveReadApproach\nfrom azur...
[ { "content": "# Copyright (c) Microsoft Corporation.\n# Licensed under the MIT license.\n\nimport logging\nimport mimetypes\nimport os\nimport json\nimport urllib.parse\nfrom datetime import datetime, timedelta\n\nimport openai\nfrom approaches.chatreadretrieveread import ChatReadRetrieveReadApproach\nfrom azur...
diff --git a/app/backend/app.py b/app/backend/app.py index 0615f7f88..7ef50db40 100644 --- a/app/backend/app.py +++ b/app/backend/app.py @@ -41,7 +41,7 @@ AZURE_OPENAI_SERVICE = os.environ.get("AZURE_OPENAI_SERVICE") or "myopenai" AZURE_OPENAI_RESOURCE_GROUP = os.environ.get("AZURE_OPENAI_RESOURCE_GROUP") or "" AZUR...
django-cms__django-cms-1927
show_placeholder always use the cache even in preview mode `show_placeholder` always use the cached version of a plugin, even in preview, when you're supposed to want the most up-to-date content. Should it check if `?preview` is in the `GET` and rendere the uncached one? Code fix is trivial, but I'd like to discuss thi...
[ { "content": "# -*- coding: utf-8 -*-\nfrom itertools import chain\n\nfrom classytags.arguments import Argument, MultiValueArgument\nfrom classytags.core import Options, Tag\nfrom classytags.helpers import InclusionTag, AsTag\nfrom classytags.parser import Parser\nfrom cms.models import Page, Placeholder as Pla...
[ { "content": "# -*- coding: utf-8 -*-\nfrom itertools import chain\n\nfrom classytags.arguments import Argument, MultiValueArgument\nfrom classytags.core import Options, Tag\nfrom classytags.helpers import InclusionTag, AsTag\nfrom classytags.parser import Parser\nfrom cms.models import Page, Placeholder as Pla...
diff --git a/cms/templatetags/cms_tags.py b/cms/templatetags/cms_tags.py index b258ba7649b..8f3caac9cb1 100644 --- a/cms/templatetags/cms_tags.py +++ b/cms/templatetags/cms_tags.py @@ -468,12 +468,16 @@ def get_context(self, *args, **kwargs): return _show_placeholder_for_page(**self.get_kwargs(*args, **kwargs)...
vyperlang__vyper-891
Disallow int128->int128 conversion. ### What's your issue about? Disallow`int128` to be converted to `int128`, follows https://github.com/ethereum/vyper/pull/882. ### How can it be fixed? Fill this in if you know how to fix it. #### Cute Animal Picture ![](https://peopledotcom.files.wordpress.com/2011/06/p...
[ { "content": "from vyper.functions.signature import (\n signature\n)\nfrom vyper.parser.parser_utils import (\n LLLnode,\n getpos,\n byte_array_to_num\n)\nfrom vyper.exceptions import (\n InvalidLiteralException,\n TypeMismatchException,\n)\nfrom vyper.types import (\n BaseType,\n)\nfrom vy...
[ { "content": "from vyper.functions.signature import (\n signature\n)\nfrom vyper.parser.parser_utils import (\n LLLnode,\n getpos,\n byte_array_to_num\n)\nfrom vyper.exceptions import (\n InvalidLiteralException,\n TypeMismatchException,\n)\nfrom vyper.types import (\n BaseType,\n)\nfrom vy...
diff --git a/tests/parser/functions/test_convert.py b/tests/parser/functions/test_convert.py index 8c05a92092..cc32c85df5 100644 --- a/tests/parser/functions/test_convert.py +++ b/tests/parser/functions/test_convert.py @@ -3,38 +3,29 @@ def test_convert_to_num(get_contract_with_gas_estimation, assert_tx_failed): ...
mozilla__pontoon-3253
Add ability to mention users using their username As part of the redesigned profile page, we've introduced usernames. We should make use of them in user mentions in comments.
[ { "content": "import logging\nimport re\n\nfrom collections import defaultdict\nfrom datetime import datetime\nfrom urllib.parse import urlparse\n\nfrom notifications.signals import notify\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import login_...
[ { "content": "import logging\nimport re\n\nfrom collections import defaultdict\nfrom datetime import datetime\nfrom urllib.parse import urlparse\n\nfrom notifications.signals import notify\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import login_...
diff --git a/pontoon/base/views.py b/pontoon/base/views.py index a46fc7eebc..5bd69d69e1 100755 --- a/pontoon/base/views.py +++ b/pontoon/base/views.py @@ -676,6 +676,8 @@ def get_users(request): .exclude(profile__system_user=True) # Exclude deleted users .exclude(email__regex=r"^deleted-user-...
scikit-hep__awkward-2442
Performance regressions compared to ak1 ### Version of Awkward Array 2.1.4 ### Description and code to reproduce Long story short in the `trijet["p4"] = trijet.j1 + trijet.j2 + trijet.j3` I am seeing up to a 2.5x longer execution time in ak2 in the following code. I see also about 2x more peak RSS usage in top, ...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\nfrom __future__ import annotations\n\nimport sys\nimport threading\nimport warnings\nfrom collections.abc import Mapping, Sequence\n\nimport numpy # noqa: TID251\n\nfrom awkward._nplikes.numpylike import Nump...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\nfrom __future__ import annotations\n\nimport sys\nimport threading\nimport warnings\nfrom collections.abc import Mapping, Sequence\n\nimport numpy # noqa: TID251\n\nfrom awkward._nplikes.numpylike import Nump...
diff --git a/src/awkward/_errors.py b/src/awkward/_errors.py index 657bec1e9e..738e0aa393 100644 --- a/src/awkward/_errors.py +++ b/src/awkward/_errors.py @@ -55,6 +55,11 @@ def __exit__(self, exception_type, exception_value, traceback): if exception_type is not None and self.primary() is self: ...
hartwork__wnpp.debian.net-956
Tracker link ![image](https://github.com/hartwork/wnpp.debian.net/assets/127589779/3a692f03-f289-4b59-838b-c449c98d425c) Both of [these columns](https://github.com/hartwork/wnpp.debian.net/blob/67b24c56c33aeac0238962a0480339a5820b3d79/wnpp_debian_net/templates/wnpp_debian_net/debianwnpp_list.html#L287-L288) link ...
[ { "content": "# Copyright (C) 2021 Sebastian Pipping <sebastian@pipping.org>\n# Licensed under GNU Affero GPL v3 or later\n\nfrom django import template\n\nregister = template.Library()\n\n\n@register.simple_tag\ndef wnpp_issue_url(issue_id):\n return f'https://bugs.debian.org/cgi-bin/bugreport.cgi?bug={issu...
[ { "content": "# Copyright (C) 2021 Sebastian Pipping <sebastian@pipping.org>\n# Licensed under GNU Affero GPL v3 or later\n\nfrom django import template\n\nregister = template.Library()\n\n\n@register.simple_tag\ndef wnpp_issue_url(issue_id):\n return f'https://bugs.debian.org/cgi-bin/bugreport.cgi?bug={issu...
diff --git a/wnpp_debian_net/models.py b/wnpp_debian_net/models.py index b696d55c..75131d10 100644 --- a/wnpp_debian_net/models.py +++ b/wnpp_debian_net/models.py @@ -99,5 +99,8 @@ def dust_days(self, until=None) -> int: until = now() return (until - self.mod_stamp).days + def has_existing_pa...
localstack__localstack-1397
Service "s3" not yet available, retrying... Hello there After installing localstack and trying to start several services on my machine, s3 always failed to start The command I am using to start them up is `SERVICES=sqs,sns,s3,lambda DEBUG=1 localstack start` (With `DEBUG=1` in place already for debugging) First few ...
[ { "content": "import sys\nimport logging\nimport traceback\nfrom moto.s3 import models as s3_models\nfrom moto.server import main as moto_main\nfrom localstack import config\nfrom localstack.constants import DEFAULT_PORT_S3_BACKEND\nfrom localstack.utils.aws import aws_stack\nfrom localstack.utils.common import...
[ { "content": "import sys\nimport logging\nimport traceback\nfrom moto.s3 import models as s3_models\nfrom moto.server import main as moto_main\nfrom localstack import config\nfrom localstack.constants import DEFAULT_PORT_S3_BACKEND\nfrom localstack.utils.aws import aws_stack\nfrom localstack.utils.common import...
diff --git a/localstack/services/s3/s3_starter.py b/localstack/services/s3/s3_starter.py index 61eb0cd7fd835..e9a2d261cc621 100644 --- a/localstack/services/s3/s3_starter.py +++ b/localstack/services/s3/s3_starter.py @@ -35,7 +35,7 @@ def check_s3(expect_shutdown=False, print_error=False): def start_s3(port=None, back...
fedora-infra__bodhi-1617
Test failure during Rawhide rpmbuild When attempting to build a 2.8.0 beta RPM, I got a traceback: ``` ====================================================================== ERROR: Failure: ValueError (Invalid config values were set: mash_dir: ...
[ { "content": "# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope t...
[ { "content": "# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope t...
diff --git a/bodhi/server/config.py b/bodhi/server/config.py index 725214001e..dd8dfe0ff7 100644 --- a/bodhi/server/config.py +++ b/bodhi/server/config.py @@ -435,11 +435,11 @@ class BodhiConfig(dict): 'value': '/etc/mash/mash.conf', 'validator': unicode}, 'mash_dir': { - '...
djangopackages__djangopackages-1196
:tractor: Follow-up issue: Split out "Filter results" on grid view form template into individual fields See previous issue: @lipemorais please push this last template change, and we can complete it. I can update the form to use the form fields individually and skip having crispy forms process it all. (...
[ { "content": "\"\"\"Forms for the :mod:`grid` app\"\"\"\n\nfrom django.forms import BooleanField, ChoiceField, Form, ModelForm\nfrom django.utils.translation import gettext_lazy as _\n\nfrom grid.models import Element, Feature, Grid, GridPackage\n\n\nclass GridForm(ModelForm):\n \"\"\"collects data for the n...
[ { "content": "\"\"\"Forms for the :mod:`grid` app\"\"\"\n\nfrom crispy_forms.helper import FormHelper\nfrom django.forms import BooleanField, ChoiceField, Form, ModelForm\nfrom django.utils.translation import gettext_lazy as _\n\nfrom grid.models import Element, Feature, Grid, GridPackage\n\n\nclass GridForm(Mo...
diff --git a/grid/forms.py b/grid/forms.py index d32707960..20b85a050 100644 --- a/grid/forms.py +++ b/grid/forms.py @@ -1,5 +1,6 @@ """Forms for the :mod:`grid` app""" +from crispy_forms.helper import FormHelper from django.forms import BooleanField, ChoiceField, Form, ModelForm from django.utils.translation impo...
chainer__chainer-2234
Wrong behavior of SerialIterator if dataset is numpy array. In `serial_iterator.py` lines [66](https://github.com/pfnet/chainer/blob/master/chainer/iterators/serial_iterator.py#L66) and [68](https://github.com/pfnet/chainer/blob/master/chainer/iterators/serial_iterator.py#L68) contain `+=` to extend lists. Unfortuna...
[ { "content": "from __future__ import division\n\nimport numpy\n\nfrom chainer.dataset import iterator\n\n\nclass SerialIterator(iterator.Iterator):\n\n \"\"\"Dataset iterator that serially reads the examples.\n\n This is a simple implementation of :class:`~chainer.dataset.Iterator`\n that just visits e...
[ { "content": "from __future__ import division\n\nimport numpy\n\nfrom chainer.dataset import iterator\n\n\nclass SerialIterator(iterator.Iterator):\n\n \"\"\"Dataset iterator that serially reads the examples.\n\n This is a simple implementation of :class:`~chainer.dataset.Iterator`\n that just visits e...
diff --git a/chainer/iterators/serial_iterator.py b/chainer/iterators/serial_iterator.py index 7d828d5a4eb3..52e4beb3328c 100644 --- a/chainer/iterators/serial_iterator.py +++ b/chainer/iterators/serial_iterator.py @@ -63,10 +63,10 @@ def __next__(self): numpy.random.shuffle(self._order) ...
zulip__zulip-9015
Import wildcard mentions from Slack into zulip When a user does a wildcard mention (i.e. `@channel`, `@here`, etc.), we should translate those to a zulip wildcard mention. I'd probably map them all to `@all` for now, but we should write the code in a way where changing the mapping is easy Import wildcard mentions from...
[ { "content": "import re\nfrom typing import Any, Dict, Tuple, List\n\n# stubs\nZerverFieldsT = Dict[str, Any]\nAddedUsersT = Dict[str, int]\n\n# Slack link can be in the format <http://www.foo.com|www.foo.com> and <http://foo.com/>\nLINK_REGEX = r\"\"\"\n (<) ...
[ { "content": "import re\nfrom typing import Any, Dict, Tuple, List\n\n# stubs\nZerverFieldsT = Dict[str, Any]\nAddedUsersT = Dict[str, int]\n\n# Slack link can be in the format <http://www.foo.com|www.foo.com> and <http://foo.com/>\nLINK_REGEX = r\"\"\"\n (<) ...
diff --git a/zerver/lib/slack_message_conversion.py b/zerver/lib/slack_message_conversion.py index 1cc7246949db5..b32e58bbdfa35 100644 --- a/zerver/lib/slack_message_conversion.py +++ b/zerver/lib/slack_message_conversion.py @@ -73,8 +73,12 @@ def convert_to_zulip_markdown(text: str, users: List[ZerverFieldsT], te...
conan-io__conan-center-index-9904
[package] ffmpeg/4.3.2: Linking error when linking static lib to shared lib ### Package and Environment Details (include every applicable attribute) * Package Name/Version: **ffmpeg/4.3.2** * Operating System+version: **Linux Ubuntu 18.04** * Compiler+version: **clang 12.0.1** * Conan version: **conan 1.45....
[ { "content": "from conan.tools.files import rename\nfrom conans import ConanFile, AutoToolsBuildEnvironment, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\nimport contextlib\nimport glob\nimport shutil\nimport re\n\nrequired_conan_version = \">=1.36.0\"\n\n\nclass FFMpegConan(ConanFile):...
[ { "content": "from conan.tools.files import rename\nfrom conans import ConanFile, AutoToolsBuildEnvironment, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\nimport contextlib\nimport glob\nimport shutil\nimport re\n\nrequired_conan_version = \">=1.36.0\"\n\n\nclass FFMpegConan(ConanFile):...
diff --git a/recipes/ffmpeg/all/conanfile.py b/recipes/ffmpeg/all/conanfile.py index e7a956bf3ebaf..0f30003c1509c 100644 --- a/recipes/ffmpeg/all/conanfile.py +++ b/recipes/ffmpeg/all/conanfile.py @@ -534,7 +534,7 @@ def package_info(self): if self.options.postproc: self.cpp_info.component...
vega__altair-334
FutureWarning in Pandas 0.20.1 Since upgrading to Pandas 0.20.1 I get this warning when first using altair in a notebook. ``` site-packages\altair\utils\core.py:110: FutureWarning: pandas.lib is deprecated and will be removed in a future version. You can access infer_dtype as pandas.api.types.infer_dtype typ = ...
[ { "content": "\"\"\"\nUtility routines\n\"\"\"\nimport re\nimport warnings\n\nimport pandas as pd\nimport numpy as np\n\n\nTYPECODE_MAP = {'ordinal': 'O',\n 'nominal': 'N',\n 'quantitative': 'Q',\n 'temporal': 'T'}\n\nINV_TYPECODE_MAP = {v: k for k, v in TYPECODE_MAP...
[ { "content": "\"\"\"\nUtility routines\n\"\"\"\nimport re\nimport warnings\n\nimport pandas as pd\nimport numpy as np\n\ntry:\n from pandas.api.types import infer_dtype\nexcept ImportError: # Pandas before 0.20.0\n from pandas.lib import infer_dtype\n\nTYPECODE_MAP = {'ordinal': 'O',\n 'nom...
diff --git a/altair/utils/core.py b/altair/utils/core.py index 6eb9fefd7..b0ce3fa40 100644 --- a/altair/utils/core.py +++ b/altair/utils/core.py @@ -7,6 +7,10 @@ import pandas as pd import numpy as np +try: + from pandas.api.types import infer_dtype +except ImportError: # Pandas before 0.20.0 + from pandas.li...
microsoft__botbuilder-python-1476
Support for new installation action types (Python) See [parent](https://github.com/microsoft/botframework-sdk/issues/6139)
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\nfrom http import HTTPStatus\nfrom typing import List, Union\n\nfrom botbuilder.schema import (\n Activity,\n ActivityTypes,\n ChannelAccount,\n MessageReaction,\n SignInConstants,\n He...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\nfrom http import HTTPStatus\nfrom typing import List, Union\n\nfrom botbuilder.schema import (\n Activity,\n ActivityTypes,\n ChannelAccount,\n MessageReaction,\n SignInConstants,\n He...
diff --git a/libraries/botbuilder-core/botbuilder/core/activity_handler.py b/libraries/botbuilder-core/botbuilder/core/activity_handler.py index c5afb5e08..28c924e0f 100644 --- a/libraries/botbuilder-core/botbuilder/core/activity_handler.py +++ b/libraries/botbuilder-core/botbuilder/core/activity_handler.py @@ -381,9 +...
ros__ros_comm-531
rospy: get_num_connections() does not return 0 when a topic is unsubscribed Tested on latest indigo. When I run a test node that displays the number of subscribers for my node using get_num_connections(), I see that this method returns 0 on startup, raise to 1 when I start a rostopic echo, and does not go back to 0 whe...
[ { "content": "# Software License Agreement (BSD License)\n#\n# Copyright (c) 2008, Willow Garage, Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# * Redistributions of so...
[ { "content": "# Software License Agreement (BSD License)\n#\n# Copyright (c) 2008, Willow Garage, Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# * Redistributions of so...
diff --git a/clients/rospy/src/rospy/topics.py b/clients/rospy/src/rospy/topics.py index 5a42617337..63d5becdc8 100644 --- a/clients/rospy/src/rospy/topics.py +++ b/clients/rospy/src/rospy/topics.py @@ -351,8 +351,17 @@ def _remove_connection(self, connections, c): c.close() except: p...
mitmproxy__mitmproxy-2886
Incorrect displaying of set-cookie attributes, if no name-value pairs were set in set-cookie header editor ##### Steps to reproduce the problem: 1. Run mitmproxy. 2. Press `n` -> `Enter` -> `Enter` -> `e` -> `set-cookies` 3. Press `a` to add a new row. 4. Choose `Attributes` column and enter subeditor. 5. Add a...
[ { "content": "import email.utils\nimport re\nimport time\nfrom typing import Tuple, List, Iterable\n\nfrom mitmproxy.coretypes import multidict\n\n\"\"\"\nA flexible module for cookie parsing and manipulation.\n\nThis module differs from usual standards-compliant cookie modules in a number\nof ways. We try to b...
[ { "content": "import email.utils\nimport re\nimport time\nfrom typing import Tuple, List, Iterable\n\nfrom mitmproxy.coretypes import multidict\n\n\"\"\"\nA flexible module for cookie parsing and manipulation.\n\nThis module differs from usual standards-compliant cookie modules in a number\nof ways. We try to b...
diff --git a/mitmproxy/net/http/cookies.py b/mitmproxy/net/http/cookies.py index 7bef87579a..39e8d60f86 100644 --- a/mitmproxy/net/http/cookies.py +++ b/mitmproxy/net/http/cookies.py @@ -159,13 +159,17 @@ def _read_set_cookie_pairs(s: str, off=0) -> Tuple[List[TPairs], int]: if len(rhs) <= 3: ...
pwndbg__pwndbg-146
"show print elements 0" causes exceptions on stop ``` pwndbg> show print elements Limit on string chars or array elements to print is unlimited. Traceback (most recent call last): File "/home/david/.pwndbg/pwndbg/events.py", line 111, in caller func() File "/home/david/.pwndbg/pwndbg/strings.py", line 34,...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nFunctionality for resolving ASCII printable strings within\nthe debuggee's address space.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nFunctionality for resolving ASCII printable strings within\nthe debuggee's address space.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_...
diff --git a/pwndbg/strings.py b/pwndbg/strings.py index e8ede8bed63..0fec12c2ac4 100644 --- a/pwndbg/strings.py +++ b/pwndbg/strings.py @@ -31,7 +31,10 @@ def update_length(): message = gdb.execute('show print elements', from_tty=False, to_string=True) message = message.split()[-1] message = message.str...
freqtrade__freqtrade-2955
Exception: volume is not double ## Step 1: Have you search for this issue before posting it? Yes and talked about it on slack. ## Step 2: Describe your environment * Operating system: Ubuntu 19.10 * Python Version: Python 3.7.5 * CCXT version: ccxt==1.22.61 * Branch: Develop * Last Commit ID: 43a...
[ { "content": "import re\nfrom pathlib import Path\nfrom typing import Dict, List, Optional\n\nimport numpy as np\nfrom pandas import DataFrame, read_json, to_datetime\n\nfrom freqtrade import misc\nfrom freqtrade.configuration import TimeRange\nfrom freqtrade.constants import DEFAULT_DATAFRAME_COLUMNS\n\nfrom ....
[ { "content": "import re\nfrom pathlib import Path\nfrom typing import Dict, List, Optional\n\nimport numpy as np\nfrom pandas import DataFrame, read_json, to_datetime\n\nfrom freqtrade import misc\nfrom freqtrade.configuration import TimeRange\nfrom freqtrade.constants import DEFAULT_DATAFRAME_COLUMNS\n\nfrom ....
diff --git a/freqtrade/data/history/jsondatahandler.py b/freqtrade/data/history/jsondatahandler.py index 17b9fd7d77f..606018f3441 100644 --- a/freqtrade/data/history/jsondatahandler.py +++ b/freqtrade/data/history/jsondatahandler.py @@ -69,7 +69,9 @@ def _ohlcv_load(self, pair: str, timeframe: str, filename = ...
lutris__lutris-1606
DXVK overrides get shown in DLL Overrides section while the game is running, remain if config is changed during that How to reproduce: 1. Enable DXVK, save. 2. Launch the game. 3. Open Configuration while the game is still running 4. Change any option (for example, DXVK), save. 5. Stop the game. Observed behavi...
[ { "content": "\"\"\"Wine runner\"\"\"\n# pylint: disable=too-many-arguments\nimport os\nimport shlex\nimport shutil\n\nfrom lutris import runtime\nfrom lutris.settings import RUNTIME_DIR\nfrom lutris.gui.dialogs import FileDialog\nfrom lutris.runners.runner import Runner\nfrom lutris.util.jobs import thread_saf...
[ { "content": "\"\"\"Wine runner\"\"\"\n# pylint: disable=too-many-arguments\nimport os\nimport shlex\nimport shutil\n\nfrom lutris import runtime\nfrom lutris.settings import RUNTIME_DIR\nfrom lutris.gui.dialogs import FileDialog\nfrom lutris.runners.runner import Runner\nfrom lutris.util.jobs import thread_saf...
diff --git a/lutris/runners/wine.py b/lutris/runners/wine.py index 9fe576acba..f0c8db84cf 100644 --- a/lutris/runners/wine.py +++ b/lutris/runners/wine.py @@ -680,10 +680,17 @@ def prelaunch(self): def get_dll_overrides(self): """Return the DLLs overriden at runtime""" - overrides = self.runner_c...
freedomofpress__securedrop-582
Large files can be downloaded before the file is completely processed Scenario: As a source, upload a >250 MB file (something large) While this is uploading, from the journalist view, reload the page of “files received from the source” Once the file shows up, immediately click on the filename in order to download it. ...
[ { "content": "# -*- coding: utf-8 -*-\nimport config\nimport version\nimport crypto_util\nimport store\nfrom db import db_session, Source, Submission, SourceStar, get_one_or_else\n\nimport os\nfrom datetime import datetime\nfrom flask import (Flask, request, render_template, send_file, redirect, flash, url_for,...
[ { "content": "# -*- coding: utf-8 -*-\nimport config\nimport version\nimport crypto_util\nimport store\nfrom db import db_session, Source, Submission, SourceStar, get_one_or_else\n\nimport os\nfrom datetime import datetime\nfrom flask import (Flask, request, render_template, send_file, redirect, flash, url_for,...
diff --git a/securedrop/journalist.py b/securedrop/journalist.py index 2fc608fe5d..eeef5faecf 100644 --- a/securedrop/journalist.py +++ b/securedrop/journalist.py @@ -123,6 +123,11 @@ def index(): def col(sid): source = get_source(sid) docs = get_docs(sid) + submissions = [submission.filename for submissi...
lutris__lutris-1050
No feedback given if 'main game folder' doesn't exist and lutris has no permissions. Lutris seems to hang without any kind of error dialog. e.g. my game dir would be `/opt/wine`, and I want to install a game into `/opt/wine/$game`, there's no feedback that not only does `/opt/wine` not exist, but Lutris can't create th...
[ { "content": "# pylint: disable=E1101, E0611\n\"\"\"Install a game by following its install script.\"\"\"\nimport os\nimport time\nimport yaml\nimport shutil\n\nfrom gi.repository import GLib\n\nfrom lutris import pga\nfrom lutris import settings\nfrom lutris.game import Game\nfrom lutris.util import system\nfr...
[ { "content": "# pylint: disable=E1101, E0611\n\"\"\"Install a game by following its install script.\"\"\"\nimport os\nimport time\nimport yaml\nimport shutil\n\nfrom gi.repository import GLib\n\nfrom lutris import pga\nfrom lutris import settings\nfrom lutris.game import Game\nfrom lutris.util import system\nfr...
diff --git a/lutris/installer/interpreter.py b/lutris/installer/interpreter.py index 56ec9dc553..af774ecaf1 100644 --- a/lutris/installer/interpreter.py +++ b/lutris/installer/interpreter.py @@ -251,9 +251,13 @@ def iter_game_files(self): os.mkdir(self.cache_path) if self.target_path and...
freqtrade__freqtrade-4189
StoplossGuard should include stoploss_on_exchange as well The document is here: https://www.freqtrade.io/en/latest/configuration/#stoploss-guard But it should include stoploss_on_exchange as well.
[ { "content": "\nimport logging\nfrom datetime import datetime, timedelta\nfrom typing import Any, Dict\n\nfrom freqtrade.persistence import Trade\nfrom freqtrade.plugins.protections import IProtection, ProtectionReturn\nfrom freqtrade.strategy.interface import SellType\n\n\nlogger = logging.getLogger(__name__)\...
[ { "content": "\nimport logging\nfrom datetime import datetime, timedelta\nfrom typing import Any, Dict\n\nfrom freqtrade.persistence import Trade\nfrom freqtrade.plugins.protections import IProtection, ProtectionReturn\nfrom freqtrade.strategy.interface import SellType\n\n\nlogger = logging.getLogger(__name__)\...
diff --git a/docs/includes/protections.md b/docs/includes/protections.md index 8465392a40e..95fa53ad222 100644 --- a/docs/includes/protections.md +++ b/docs/includes/protections.md @@ -58,7 +58,7 @@ The below example stops trading for all pairs for 4 candles after the last trade ``` !!! Note - `StoplossGuard` co...
lhotse-speech__lhotse-536
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren' since Py 3.9 the function getchildren() in etree seems to be removed (was deprecated since long before, AFAIK) Affects AMI corpus preparation ``` (py3) [jtrmal@test4 ami_lhotse]$ lhotse prepare ami --partition full-corpus-asr --nor...
[ { "content": "\"\"\"\nThe data preparation recipe for the AMI Meeting Corpus.\n\nNOTE on data splits and references:\n\n- The official AMI documentation (http://groups.inf.ed.ac.uk/ami/corpus/datasets.shtml) recommends\nthree different data partitions: scenario-only, full-corpus, and full-corpus-asr, based on t...
[ { "content": "\"\"\"\nThe data preparation recipe for the AMI Meeting Corpus.\n\nNOTE on data splits and references:\n\n- The official AMI documentation (http://groups.inf.ed.ac.uk/ami/corpus/datasets.shtml) recommends\nthree different data partitions: scenario-only, full-corpus, and full-corpus-asr, based on t...
diff --git a/lhotse/recipes/ami.py b/lhotse/recipes/ami.py index 77ae21966..686c7d4a1 100644 --- a/lhotse/recipes/ami.py +++ b/lhotse/recipes/ami.py @@ -339,8 +339,8 @@ def _parse_href(href, wid_to_word): continue start_time = float(seg.attrib["transcriber_start"]) ...
MongoEngine__mongoengine-1877
Proper ValidationError when trying to save a single doc as a list of EmbeddedDocuments ``` In [8]: class EmbeddedDoc(EmbeddedDocument): ...: name = StringField() ...: In [9]: class Doc(Document): ...: docs = ListField(EmbeddedDocumentField(EmbeddedDoc)) ...: In [10]: Doc.objects.create(do...
[ { "content": "import operator\nimport warnings\nimport weakref\n\nfrom bson import DBRef, ObjectId, SON\nimport pymongo\nimport six\n\nfrom mongoengine.base.common import UPDATE_OPERATORS\nfrom mongoengine.base.datastructures import (BaseDict, BaseList,\n EmbeddedDocu...
[ { "content": "import operator\nimport warnings\nimport weakref\n\nfrom bson import DBRef, ObjectId, SON\nimport pymongo\nimport six\n\nfrom mongoengine.base.common import UPDATE_OPERATORS\nfrom mongoengine.base.datastructures import (BaseDict, BaseList,\n EmbeddedDocu...
diff --git a/mongoengine/base/fields.py b/mongoengine/base/fields.py index 69034d5db..906f7ff23 100644 --- a/mongoengine/base/fields.py +++ b/mongoengine/base/fields.py @@ -313,11 +313,16 @@ def to_python(self, value): if hasattr(value, 'to_python'): return value.to_python() + BaseDocumen...
bookwyrm-social__bookwyrm-807
Number of followers of suggested users is wrong **Describe the bug** Recommendations for new users to follow in my feed appear with a number of followers we have in common, but that number looks off. The user recommendation I saw said they had 306 followers I follow, but neither of us has that many followers. **To ...
[ { "content": "\"\"\" helper functions used in various views \"\"\"\nimport re\nfrom requests import HTTPError\nfrom django.core.exceptions import FieldError\nfrom django.db.models import Count, Max, Q\n\nfrom bookwyrm import activitypub, models\nfrom bookwyrm.connectors import ConnectorException, get_data\nfrom...
[ { "content": "\"\"\" helper functions used in various views \"\"\"\nimport re\nfrom requests import HTTPError\nfrom django.core.exceptions import FieldError\nfrom django.db.models import Count, Max, Q\n\nfrom bookwyrm import activitypub, models\nfrom bookwyrm.connectors import ConnectorException, get_data\nfrom...
diff --git a/bookwyrm/tests/views/test_helpers.py b/bookwyrm/tests/views/test_helpers.py index 7d6df948e8..2d100f7bfe 100644 --- a/bookwyrm/tests/views/test_helpers.py +++ b/bookwyrm/tests/views/test_helpers.py @@ -2,6 +2,7 @@ import json from unittest.mock import patch import pathlib +from django.db.models import Q...
cocotb__cocotb-1835
SimFailure causes test results to be printed multiple times There's a loop in `RegressionManager` on tests with `SimFailure` result that goes: `_record_result` -> `tear_down` -> `_record_result` -> ... And prints out the results multiple times. See: https://travis-ci.org/github/cocotb/cocotb/jobs/686173872#L70...
[ { "content": "# Copyright (c) 2013, 2018 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# * Redistribut...
[ { "content": "# Copyright (c) 2013, 2018 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# * Redistribut...
diff --git a/cocotb/regression.py b/cocotb/regression.py index bf238af39e..29c615b880 100644 --- a/cocotb/regression.py +++ b/cocotb/regression.py @@ -95,6 +95,7 @@ def __init__(self, dut: SimHandle, tests: Iterable[Test], hooks: Iterable[Hook]) self.count = 0 self.skipped = 0 self.failures =...
ckan__ckan-5281
datapusher and ckan in docker-compose CKAN Version 2.8.3 I've been following the changes in #4879 as I have the same problem running datapusher and ckan both in docker-compose cluster where the public ckan url is not available. When running datapusher in a docker cluster generated by docker-compose the public ck...
[ { "content": "# encoding: utf-8\n\nimport logging\nimport json\nimport datetime\nimport time\n\nfrom six.moves.urllib.parse import urljoin\nfrom dateutil.parser import parse as parse_date\n\nimport requests\n\nimport ckan.lib.helpers as h\nimport ckan.lib.navl.dictization_functions\nimport ckan.logic as logic\n...
[ { "content": "# encoding: utf-8\n\nimport logging\nimport json\nimport datetime\nimport time\n\nfrom six.moves.urllib.parse import urljoin\nfrom dateutil.parser import parse as parse_date\n\nimport requests\n\nimport ckan.lib.helpers as h\nimport ckan.lib.navl.dictization_functions\nimport ckan.logic as logic\n...
diff --git a/ckanext/datapusher/logic/action.py b/ckanext/datapusher/logic/action.py index ce93fd24d28..cf2c3a63629 100644 --- a/ckanext/datapusher/logic/action.py +++ b/ckanext/datapusher/logic/action.py @@ -61,13 +61,13 @@ def datapusher_submit(context, data_dict): datapusher_url = config.get('ckan.datapusher....
spyder-ide__spyder-4667
Inspecting Numpy bool arrays in Var. Explorer uses deprecated '-' operator in Numpy ## Description of your problem (..)/site-packages/spyderlib/widgets/arrayeditor.py", line 249, in data /(self.vmax-self.vmin) TypeError: numpy boolean subtract, the operator '-', is deprecated, use the bitwise_xor, the '^' operator, ...
[ { "content": "# -*- coding: utf-8 -*-\r\n#\r\n# Copyright © Spyder Project Contributors\r\n# Licensed under the terms of the MIT License\r\n# (see spyder/__init__.py for details)\r\n\r\n\"\"\"\r\nNumPy Array Editor Dialog based on Qt\r\n\"\"\"\r\n\r\n# pylint: disable=C0103\r\n# pylint: disable=R0903\r\n# pylin...
[ { "content": "# -*- coding: utf-8 -*-\r\n#\r\n# Copyright © Spyder Project Contributors\r\n# Licensed under the terms of the MIT License\r\n# (see spyder/__init__.py for details)\r\n\r\n\"\"\"\r\nNumPy Array Editor Dialog based on Qt\r\n\"\"\"\r\n\r\n# pylint: disable=C0103\r\n# pylint: disable=R0903\r\n# pylin...
diff --git a/spyder/widgets/variableexplorer/arrayeditor.py b/spyder/widgets/variableexplorer/arrayeditor.py index 0e9c68bca3f..c35a5fbf388 100644 --- a/spyder/widgets/variableexplorer/arrayeditor.py +++ b/spyder/widgets/variableexplorer/arrayeditor.py @@ -266,8 +266,8 @@ def data(self, index, role=Qt.DisplayRole): ...
netbox-community__netbox-15827
EXEMPT_EXCLUDE_MODELS contains old user and group models ### Deployment Type Self-hosted ### NetBox Version v4.0-beta2 (e05ca710ae47db49f8552a77b996ab4f69abaedc) ### Python Version 3.11 ### Steps to Reproduce 1. None; `EXEMPT_EXCLUDE_MODELS` is a hard coded setting ### Expected Behavior `EXEMPT_EXCLUDE_MODELS`...
[ { "content": "import hashlib\nimport importlib\nimport importlib.util\nimport os\nimport platform\nimport sys\nimport warnings\nfrom urllib.parse import urlencode, urlsplit\n\nimport django\nimport requests\nfrom django.contrib.messages import constants as messages\nfrom django.core.exceptions import Improperly...
[ { "content": "import hashlib\nimport importlib\nimport importlib.util\nimport os\nimport platform\nimport sys\nimport warnings\nfrom urllib.parse import urlencode, urlsplit\n\nimport django\nimport requests\nfrom django.contrib.messages import constants as messages\nfrom django.core.exceptions import Improperly...
diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 7663f137a16..d5cded72866 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -477,11 +477,11 @@ def _setting(name, default=None): # Exclude potentially sensitive models from wildcard view exemption. These may still be exempt...
jupyterhub__jupyterhub-4356
CookieError Ilegal key %r, Jupyterhub not sanitizing header keys properly <!-- Thank you for contributing. These HTML comments will not render in the issue, but you can delete them once you've read them if you prefer! --> ### Bug description <!-- Use this section to clearly and concisely describe the bug. --> ...
[ { "content": "\"\"\"logging utilities\"\"\"\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\nimport json\nimport logging\nimport traceback\nfrom functools import partial\nfrom http.cookies import SimpleCookie\nfrom urllib.parse import urlparse, urlunparse\n...
[ { "content": "\"\"\"logging utilities\"\"\"\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\nimport json\nimport logging\nimport traceback\nfrom functools import partial\nfrom http.cookies import SimpleCookie\nfrom urllib.parse import urlparse, urlunparse\n...
diff --git a/jupyterhub/log.py b/jupyterhub/log.py index 46574e65d5..4e5dd36165 100644 --- a/jupyterhub/log.py +++ b/jupyterhub/log.py @@ -105,11 +105,16 @@ def _scrub_headers(headers): auth_type = '' headers['Authorization'] = f'{auth_type} [secret]' if 'Cookie' in headers: - c = Simp...
scikit-image__scikit-image-2722
docs build fails with numpydoc 0.7.0 ## Description If you just pip install numpydoc today and run 'make html' in doc you get: ``` reading sources... [ 2%] api/skimage.data Exception occurred: File "/opt/o...
[ { "content": "from io import BytesIO\n\nimport numpy as np\nimport six\n\nfrom ..io.manage_plugins import call_plugin\nfrom ..color import rgb2grey\nfrom .util import file_or_url_context\nfrom ..exposure import is_low_contrast\nfrom .._shared.utils import all_warnings, warn\n\n\n__all__ = ['imread', 'imsave', '...
[ { "content": "from io import BytesIO\n\nimport numpy as np\nimport six\n\nfrom ..io.manage_plugins import call_plugin\nfrom ..color import rgb2grey\nfrom .util import file_or_url_context\nfrom ..exposure import is_low_contrast\nfrom .._shared.utils import all_warnings, warn\n\n\n__all__ = ['imread', 'imsave', '...
diff --git a/skimage/io/_io.py b/skimage/io/_io.py index 9edd7f8f149..2bc7e8b22e8 100644 --- a/skimage/io/_io.py +++ b/skimage/io/_io.py @@ -36,6 +36,9 @@ def imread(fname, as_grey=False, plugin=None, flatten=None, flatten : bool Backward compatible keyword, superseded by `as_grey`. + plugin_args : k...
sunpy__sunpy-4950
Not passing in notify for a JSOC search is ambiguous We require a search for JSOC to need a notify attribute in order to fetch data. However if you do not provide one and then pass it into fetch, the error is ambiguous. We need to catch this in our JSOCClient and raise a better error message. Example: ```python I...
[ { "content": "import os\nimport copy\nimport json\nimport time\nimport urllib\nimport warnings\nfrom pathlib import Path\n\nimport drms\nimport numpy as np\nimport pandas as pd\n\nimport astropy.table\nimport astropy.time\nimport astropy.units as u\nfrom astropy.utils.misc import isiterable\n\nfrom sunpy import...
[ { "content": "import os\nimport copy\nimport json\nimport time\nimport urllib\nimport warnings\nfrom pathlib import Path\n\nimport drms\nimport numpy as np\nimport pandas as pd\n\nimport astropy.table\nimport astropy.time\nimport astropy.units as u\nfrom astropy.utils.misc import isiterable\n\nfrom sunpy import...
diff --git a/changelog/4950.bugfix.rst b/changelog/4950.bugfix.rst new file mode 100644 index 00000000000..86efd592a36 --- /dev/null +++ b/changelog/4950.bugfix.rst @@ -0,0 +1 @@ +Improved error message from :meth:`sunpy.net.Fido.fetch` when no email has been supplied for JSOC data. diff --git a/sunpy/net/jsoc/jsoc.py ...
dask__dask-2205
Reshape with empty dimensions Reshaping with zero dimensions fails ```python def test_reshape_empty(): x = da.ones((0, 10), chunks=(5, 5)) y = x.reshape((0, 5, 2)) assert_eq(x, x) ``` I've tracked this down to the fact that this line returns a list with one empty list ```python def intersect...
[ { "content": "\"\"\"\nThe rechunk module defines:\n intersect_chunks: a function for\n converting chunks to new dimensions\n rechunk: a function to convert the blocks\n of an existing dask array to new chunks or blockshape\n\"\"\"\nfrom __future__ import absolute_import, division, print_func...
[ { "content": "\"\"\"\nThe rechunk module defines:\n intersect_chunks: a function for\n converting chunks to new dimensions\n rechunk: a function to convert the blocks\n of an existing dask array to new chunks or blockshape\n\"\"\"\nfrom __future__ import absolute_import, division, print_func...
diff --git a/dask/array/rechunk.py b/dask/array/rechunk.py index de5da0f68e1..eea5470ff46 100644 --- a/dask/array/rechunk.py +++ b/dask/array/rechunk.py @@ -18,6 +18,7 @@ from ..base import tokenize from .core import concatenate3, Array, normalize_chunks +from .wrap import empty from .. import sharedict @@ -48...
python-telegram-bot__python-telegram-bot-1079
Allow subprocess.Popen.stdout as file input <!-- 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 g...
[ { "content": "#!/usr/bin/env python\n# pylint: disable=W0622,E0611\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 ...
[ { "content": "#!/usr/bin/env python\n# pylint: disable=W0622,E0611\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 ...
diff --git a/telegram/files/inputfile.py b/telegram/files/inputfile.py index d4739c838c6..14fb4a2f1cc 100644 --- a/telegram/files/inputfile.py +++ b/telegram/files/inputfile.py @@ -70,7 +70,9 @@ def __init__(self, data): self.input_file_content = self.input_file.read() if 'filename' in data: ...
XanaduAI__strawberryfields-364
`measure_homodyne` sometimes constructs a probability vector with p<0, p>1 in the Fock backend, resulting in an exception. ``` pvals < 0, pvals > 1 or pvals contains NaNs ``` When I try to run the circuit (mentioned below) I occasionally end up with the error mentioned above. ```python prog = sf.Program(2) ...
[ { "content": "# Copyright 2019 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless re...
[ { "content": "# Copyright 2019 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless re...
diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 8036b64d9..8fc0786a3 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -185,6 +185,11 @@ from the Blackbird script or `Program` if not explicitly specified. [(#327)](https://github.com/XanaduAI/strawberryfields/pull/327) +* Fixed a bug...
fedora-infra__bodhi-958
Add a log statement to masher when reusing cached updateinfo, and change generating statement to info Basically, in https://github.com/fedora-infra/bodhi/blob/2.2.0/bodhi/server/metadata.py#L79-L81 change ``` self._load_cached_updateinfo() else: log.debug("Generating new updateinfo.xml") ``` to ``` log.i...
[ { "content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope t...
[ { "content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope t...
diff --git a/bodhi/server/metadata.py b/bodhi/server/metadata.py index c8a34cf3d3..1106a3a403 100644 --- a/bodhi/server/metadata.py +++ b/bodhi/server/metadata.py @@ -76,9 +76,10 @@ def __init__(self, release, request, db, path): self.cached_repodata = os.path.join(self.repo, '..', self.tag + ...
kedro-org__kedro-3145
Fix Configuration Loader to Handle Paths Containing dots ## Description When working within Databricks workflows, it's possible to create a job that utilizes a notebook hosted inside a repository. Each time the job is executed, the code is automatically cloned to a path that depends on the commit. In my case, I have...
[ { "content": "\"\"\"This module provides ``kedro.config`` with the functionality to load one\nor more configuration files of yaml or json type from specified paths through OmegaConf.\n\"\"\"\nfrom __future__ import annotations\n\nimport io\nimport logging\nimport mimetypes\nfrom pathlib import Path\nfrom typing...
[ { "content": "\"\"\"This module provides ``kedro.config`` with the functionality to load one\nor more configuration files of yaml or json type from specified paths through OmegaConf.\n\"\"\"\nfrom __future__ import annotations\n\nimport io\nimport logging\nimport mimetypes\nfrom pathlib import Path\nfrom typing...
diff --git a/RELEASE.md b/RELEASE.md index 77aa9855a9..5265599e40 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -15,6 +15,7 @@ ## Bug fixes and other changes * Updated dataset factories to resolve nested catalog config properly. +* Updated `OmegaConfigLoader` to handle paths containing dots outside of `conf_source`. ...
python-poetry__poetry-1576
Git w/ Non Standard Port Broken on Poetry 1.0.0b4 <!-- Checked checkbox should look like this: [x] --> - [x] I am on the [latest](https://github.com/sdispater/poetry/releases/latest) Poetry version. - [x] I have searched the [issues](https://github.com/sdispater/poetry/issues) of this repo and believe that this is no...
[ { "content": "import time\n\nfrom typing import Any\nfrom typing import Dict\nfrom typing import List\n\nfrom poetry.mixology import resolve_version\nfrom poetry.mixology.failure import SolveFailure\nfrom poetry.packages import DependencyPackage\nfrom poetry.packages import Package\nfrom poetry.semver import pa...
[ { "content": "import time\n\nfrom typing import Any\nfrom typing import Dict\nfrom typing import List\n\nfrom poetry.mixology import resolve_version\nfrom poetry.mixology.failure import SolveFailure\nfrom poetry.packages import DependencyPackage\nfrom poetry.packages import Package\nfrom poetry.semver import pa...
diff --git a/poetry/puzzle/solver.py b/poetry/puzzle/solver.py index 24289141f5c..6f86633c75c 100644 --- a/poetry/puzzle/solver.py +++ b/poetry/puzzle/solver.py @@ -62,6 +62,9 @@ def solve(self, use_latest=None): # type: (...) -> List[Operation] pkg_source_url = Git.normalize_url(pkg.source_ur...
ManimCommunity__manim-3211
Wrong log axis labels when rendering with OpenGl ## Description of bug / unexpected behavior <!-- Add a clear and concise description of the problem you encountered. --> When using the OpenGL renderer, the labels along the logarithmic axis, when enabled, are all rendered as "Integer" instead of the correct number "10...
[ { "content": "\"\"\"Mobject representing a number line.\"\"\"\n\nfrom __future__ import annotations\n\n__all__ = [\"NumberLine\", \"UnitInterval\"]\n\n\nfrom typing import TYPE_CHECKING, Callable, Iterable, Sequence\n\nif TYPE_CHECKING:\n from manim.mobject.geometry.tips import ArrowTip\n\nimport numpy as np...
[ { "content": "\"\"\"Mobject representing a number line.\"\"\"\n\nfrom __future__ import annotations\n\nfrom manim.mobject.opengl.opengl_vectorized_mobject import OpenGLVMobject\n\n__all__ = [\"NumberLine\", \"UnitInterval\"]\n\n\nfrom typing import TYPE_CHECKING, Callable, Iterable, Sequence\n\nif TYPE_CHECKING...
diff --git a/manim/mobject/graphing/number_line.py b/manim/mobject/graphing/number_line.py index 5c70e526c1..08f6ef48fa 100644 --- a/manim/mobject/graphing/number_line.py +++ b/manim/mobject/graphing/number_line.py @@ -2,6 +2,8 @@ from __future__ import annotations +from manim.mobject.opengl.opengl_vectorized_mobj...
vllm-project__vllm-3919
[Bug]: problems using long context, Command-R ### Your current environment ``` Collecting environment information... PyTorch version: 2.1.2+cu121 Is debug build: False CUDA used to build PyTorch: 12.1 ROCM used to build PyTorch: N/A OS: Ubuntu 22.04.3 LTS (x86_64) GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 1...
[ { "content": "# coding=utf-8\n# Copyright 2024 Cohere and the HuggingFace Inc. team. All rights reserved.\n#\n# This code is based on EleutherAI's GPT-NeoX library and the GPT-NeoX\n# and OPT implementations in this library. It has been modified from its\n# original forms to accommodate minor architectural diff...
[ { "content": "# coding=utf-8\n# Copyright 2024 Cohere and the HuggingFace Inc. team. All rights reserved.\n#\n# This code is based on EleutherAI's GPT-NeoX library and the GPT-NeoX\n# and OPT implementations in this library. It has been modified from its\n# original forms to accommodate minor architectural diff...
diff --git a/vllm/model_executor/models/commandr.py b/vllm/model_executor/models/commandr.py index 620d6313519..9702f635cbc 100644 --- a/vllm/model_executor/models/commandr.py +++ b/vllm/model_executor/models/commandr.py @@ -140,7 +140,9 @@ def __init__( self.q_size = self.num_heads * self.head_dim se...
open-telemetry__opentelemetry-python-1833
inconsistency printing to json from ConsoleSpanExporter Running the following code: ``` from opentelemetry import trace from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import ( ConsoleSpanExporter, SimpleSpanProcessor, ) trace.set_tracer_provider(TracerProvider()...
[ { "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 1c82de004af..f0d9bf3e926 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#1811](https://github.com/open-telemetry/opentelemetry-python/pull/1811)) - Improve warning when f...
conan-io__conan-center-index-5274
[package] fontconfig/2.13.93: build fails on macos with bzip2:shared=True ### Package and Environment Details (include every applicable attribute) * Package Name/Version: **fontconfig/2.13.93** * Operating System+version: **MacOS 10.15** * Compiler+version: **Apple clang 11.0** * Conan version: **conan 1.35...
[ { "content": "import os\nimport glob\n\nfrom conans import ConanFile, tools, AutoToolsBuildEnvironment\nfrom conans.errors import ConanInvalidConfiguration\n\n\nclass FontconfigConan(ConanFile):\n name = \"fontconfig\"\n license = \"MIT\"\n url = \"https://github.com/conan-io/conan-center-index\"\n ...
[ { "content": "import os\nimport glob\n\nfrom conans import ConanFile, tools, AutoToolsBuildEnvironment\nfrom conans.errors import ConanInvalidConfiguration\n\n\nclass FontconfigConan(ConanFile):\n name = \"fontconfig\"\n license = \"MIT\"\n url = \"https://github.com/conan-io/conan-center-index\"\n ...
diff --git a/recipes/fontconfig/all/conanfile.py b/recipes/fontconfig/all/conanfile.py index 7acc4821626d0..28684e8e3495c 100644 --- a/recipes/fontconfig/all/conanfile.py +++ b/recipes/fontconfig/all/conanfile.py @@ -72,6 +72,12 @@ def _configure_autotools(self): def _patch_files(self): # - fontconfig re...
sublimelsp__LSP-202
Autocompletion hints fail if CompletionItem label is empty This could happen when an user requests autocompletion hints for all the members and functions of some package like OpenCV (``cv2``), using python-language-server as LSP backend.
[ { "content": "import sublime\nimport sublime_plugin\n\ntry:\n from typing import Any, List, Dict, Tuple, Callable, Optional\n assert Any and List and Dict and Tuple and Callable and Optional\nexcept ImportError:\n pass\n\nfrom .core.protocol import Request\nfrom .core.settings import settings\nfrom .co...
[ { "content": "import sublime\nimport sublime_plugin\n\ntry:\n from typing import Any, List, Dict, Tuple, Callable, Optional\n assert Any and List and Dict and Tuple and Callable and Optional\nexcept ImportError:\n pass\n\nfrom .core.protocol import Request\nfrom .core.settings import settings\nfrom .co...
diff --git a/.gitignore b/.gitignore index a6fe1b90f..30d28a700 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ LSP.sublime-workspace LSP.sublime-project -.mypy_cache \ No newline at end of file +.mypy_cache +.ropeproject diff --git a/plugin/completion.py b/plugin/completion.py index 3fea4bb43..4fc77fb3e 100...
zestedesavoir__zds-site-2746
[Beta 15.5.1]Liste des tutoriels pas toujours par 3 Lorsqu'on n'est pas connecté (pas testé avec un membre connecté) et qu'on va sur la page de la liste de tous les tutos, on se retrouve avec les 5 premiers qui singent la home page alors que la norme sur cette page là c'est 3 contenu par ligne. Du coup sur la première ...
[ { "content": "# coding: utf-8\n\nfrom math import ceil\nimport shutil\nfrom django.core.cache import cache\nfrom django.core.cache.utils import make_template_fragment_key\n\ntry:\n import ujson as json_reader\nexcept ImportError:\n try:\n import simplejson as json_reader\n except ImportError:\n ...
[ { "content": "# coding: utf-8\n\nfrom math import ceil\nimport shutil\nfrom django.core.cache import cache\nfrom django.core.cache.utils import make_template_fragment_key\n\ntry:\n import ujson as json_reader\nexcept ImportError:\n try:\n import simplejson as json_reader\n except ImportError:\n ...
diff --git a/doc/source/cache.rst b/doc/source/cache.rst index 8624431346..09544d66f2 100644 --- a/doc/source/cache.rst +++ b/doc/source/cache.rst @@ -66,13 +66,13 @@ Il s'agit des blocs visuels de présentation des tutoriels que l'on trouve par e ================== ====================================================...
jazzband__django-axes-193
AXES_DISABLE_ACCESS_LOG doesn't work. It appears to be because we're using `getattr` [here](https://github.com/jazzband/django-axes/blob/master/axes/decorators.py#L222) on something that doesn't exist, and the default is always `False`.
[ { "content": "import json\nimport logging\nfrom socket import inet_pton, AF_INET6\n\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth import logout\nfrom django.http import HttpResponse\nfrom django.http import HttpResponseRedirect\nfrom django.shortcuts import render\nfrom django.utils ...
[ { "content": "import json\nimport logging\nfrom socket import inet_pton, AF_INET6\n\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth import logout\nfrom django.http import HttpResponse\nfrom django.http import HttpResponseRedirect\nfrom django.shortcuts import render\nfrom django.utils ...
diff --git a/axes/decorators.py b/axes/decorators.py index 318c614e..6c7cfa79 100644 --- a/axes/decorators.py +++ b/axes/decorators.py @@ -219,8 +219,7 @@ def decorated_login(request, *args, **kwargs): user_agent = request.META.get('HTTP_USER_AGENT', '<unknown>')[:255] http_accept = request.ME...
networkx__networkx-4365
PythonRandomInterface seed initialized to None https://github.com/networkx/networkx/blob/087ed3b9ff9d92cf97a1d5a5cb3afd1c8b78298d/networkx/utils/misc.py#L341 When `None` is passed as seed, the code flow initializes to a `RandomState()` then sets it back to `None`. Maybe an else is missing?
[ { "content": "\"\"\"\nMiscellaneous Helpers for NetworkX.\n\nThese are not imported into the base networkx namespace but\ncan be accessed, for example, as\n\n>>> import networkx\n>>> networkx.utils.make_list_of_ints({1, 2, 3})\n[1, 2, 3]\n>>> networkx.utils.arbitrary_element({5, 1, 7}) # doctest: +SKIP\n1\n\"\...
[ { "content": "\"\"\"\nMiscellaneous Helpers for NetworkX.\n\nThese are not imported into the base networkx namespace but\ncan be accessed, for example, as\n\n>>> import networkx\n>>> networkx.utils.make_list_of_ints({1, 2, 3})\n[1, 2, 3]\n>>> networkx.utils.arbitrary_element({5, 1, 7}) # doctest: +SKIP\n1\n\"\...
diff --git a/networkx/utils/misc.py b/networkx/utils/misc.py index 7011ce726fc..c3b1f02404f 100644 --- a/networkx/utils/misc.py +++ b/networkx/utils/misc.py @@ -333,19 +333,18 @@ def create_random_state(random_state=None): class PythonRandomInterface: - try: - - def __init__(self, rng=None): + def __i...
AUTOMATIC1111__stable-diffusion-webui-11656
[Bug]: Call ControlNet API failed ### Is there an existing issue for this? - [X] I have searched the existing issues and checked the recent builds/commits ### What happened? Call ControlNet through the API. It raise an error `cannot write mode RGBA as JPEG`. ControlNet: - Preprocessor: inpaint_only+lama - M...
[ { "content": "import base64\nimport io\nimport time\nimport datetime\nimport uvicorn\nimport gradio as gr\nfrom threading import Lock\nfrom io import BytesIO\nfrom fastapi import APIRouter, Depends, FastAPI, Request, Response\nfrom fastapi.security import HTTPBasic, HTTPBasicCredentials\nfrom fastapi.exceptions...
[ { "content": "import base64\nimport io\nimport time\nimport datetime\nimport uvicorn\nimport gradio as gr\nfrom threading import Lock\nfrom io import BytesIO\nfrom fastapi import APIRouter, Depends, FastAPI, Request, Response\nfrom fastapi.security import HTTPBasic, HTTPBasicCredentials\nfrom fastapi.exceptions...
diff --git a/modules/api/api.py b/modules/api/api.py index 2e49526e3e2..6507f641cb6 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -84,6 +84,8 @@ def encode_pil_to_base64(image): image.save(output_bytes, format="PNG", pnginfo=(metadata if use_metadata else None), quality=opts.jpeg_quality) ...
ibis-project__ibis-8695
bug: `unbound table` error even after setting `default_backend` ### What happened? Executing a query with `ibis.<backend>.execute()` throws an error even if `default_backend` is set **Code to replicate the issue:** ``` import ibis from ibis import _ import pandas as pd con = ibis.duckdb.connect() data =...
[ { "content": "from __future__ import annotations\n\nimport contextlib\nimport os\nimport webbrowser\nfrom typing import TYPE_CHECKING, Any, NoReturn\n\nfrom public import public\nfrom rich.jupyter import JupyterMixin\n\nimport ibis.expr.operations as ops\nfrom ibis.common.annotations import ValidationError\nfro...
[ { "content": "from __future__ import annotations\n\nimport contextlib\nimport os\nimport webbrowser\nfrom typing import TYPE_CHECKING, Any, NoReturn\n\nfrom public import public\nfrom rich.jupyter import JupyterMixin\n\nimport ibis.expr.operations as ops\nfrom ibis.common.annotations import ValidationError\nfro...
diff --git a/ibis/expr/types/core.py b/ibis/expr/types/core.py index 6adf1d19aa36..b8505d14e6c7 100644 --- a/ibis/expr/types/core.py +++ b/ibis/expr/types/core.py @@ -324,9 +324,9 @@ def _find_backend(self, *, use_default: bool = False) -> BaseBackend: if has_unbound: raise IbisError( ...
urllib3__urllib3-3176
Support `Content-Encoding: x-gzip` ### Context I'm using an API that returns a gzipped response, but the reported `Content-Encoding` is `x-gzip` rather than `gzip`, so urllib3 fails to decompress it. According to [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#section-8.4.1.3): > A recipient SHOULD con...
[ { "content": "from __future__ import annotations\n\nimport collections\nimport io\nimport json as _json\nimport logging\nimport re\nimport sys\nimport typing\nimport warnings\nimport zlib\nfrom contextlib import contextmanager\nfrom http.client import HTTPMessage as _HttplibHTTPMessage\nfrom http.client import ...
[ { "content": "from __future__ import annotations\n\nimport collections\nimport io\nimport json as _json\nimport logging\nimport re\nimport sys\nimport typing\nimport warnings\nimport zlib\nfrom contextlib import contextmanager\nfrom http.client import HTTPMessage as _HttplibHTTPMessage\nfrom http.client import ...
diff --git a/changelog/3174.bugfix.rst b/changelog/3174.bugfix.rst new file mode 100644 index 0000000000..cf3e458eb7 --- /dev/null +++ b/changelog/3174.bugfix.rst @@ -0,0 +1 @@ +Fixed decoding Gzip-encoded responses which specified ``x-gzip`` content-encoding. diff --git a/src/urllib3/response.py b/src/urllib3/response...
mlflow__mlflow-8016
[BUG] Send `Cache-Control` headers from static files routes ### Issues Policy acknowledgement - [X] I have read and agree to submit bug reports in accordance with the [issues policy](https://www.github.com/mlflow/mlflow/blob/master/ISSUE_POLICY.md) ### Willingness to contribute Yes. I would be willing to contribute ...
[ { "content": "import os\nimport shlex\nimport sys\nimport textwrap\nimport importlib.metadata\n\nfrom flask import Flask, send_from_directory, Response\n\nfrom mlflow.exceptions import MlflowException\nfrom mlflow.server import handlers\nfrom mlflow.server.handlers import (\n get_artifact_handler,\n get_m...
[ { "content": "import os\nimport shlex\nimport sys\nimport textwrap\nimport importlib.metadata\n\nfrom flask import Flask, send_from_directory, Response\n\nfrom mlflow.exceptions import MlflowException\nfrom mlflow.server import handlers\nfrom mlflow.server.handlers import (\n get_artifact_handler,\n get_m...
diff --git a/mlflow/server/__init__.py b/mlflow/server/__init__.py index 83d6c2301cfce..68fa320297911 100644 --- a/mlflow/server/__init__.py +++ b/mlflow/server/__init__.py @@ -78,9 +78,10 @@ def serve_get_metric_history_bulk(): # We expect the react app to be built assuming it is hosted at /static-files, so that re...
ultrabug__py3status-727
sysdata divison by zero error ``` 2017-01-17 12:51:07 INFO method sysData returned {'composite': [{'full_text': 'CPU: 12.42%', 'color': '#00FF00', 'instance': ' 0', 'name': 'sysdata', 'separator': False, 'separator_block_width': 0}, {'full_text': ', ', 'instance': ' 1', 'name': 'sysdata', 'separator': False, 'separato...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nDisplay system RAM, SWAP and CPU utilization.\n\nConfiguration parameters:\n cache_timeout: how often we refresh this module in seconds (default 10)\n format: output format string\n *(default '[\\?color=cpu CPU: {cpu_usage}%], '\n '[\\?color=mem...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nDisplay system RAM, SWAP and CPU utilization.\n\nConfiguration parameters:\n cache_timeout: how often we refresh this module in seconds (default 10)\n format: output format string\n *(default '[\\?color=cpu CPU: {cpu_usage}%], '\n '[\\?color=mem...
diff --git a/py3status/modules/sysdata.py b/py3status/modules/sysdata.py index 36df92e5ec..d6cc81b721 100644 --- a/py3status/modules/sysdata.py +++ b/py3status/modules/sysdata.py @@ -291,9 +291,11 @@ def sysData(self): # get CPU usage info if self.py3.format_contains(self.format, 'cpu_usage'): ...
python-poetry__poetry-5880
Poetry inheriting issue for git-client on github.com - [X] I am on the [latest](https://github.com/python-poetry/poetry/releases/latest) Poetry version. - [X] I have searched the [issues](https://github.com/python-poetry/poetry/issues) of this repo and believe that this is not a duplicate. - [X] If an exception occu...
[ { "content": "from __future__ import annotations\n\nimport subprocess\n\nfrom typing import TYPE_CHECKING\n\nfrom dulwich.client import find_git_command\n\n\nif TYPE_CHECKING:\n from pathlib import Path\n from typing import Any\n\n\nclass SystemGit:\n @classmethod\n def clone(cls, repository: str, d...
[ { "content": "from __future__ import annotations\n\nimport os\nimport subprocess\n\nfrom typing import TYPE_CHECKING\n\nfrom dulwich.client import find_git_command\n\n\nif TYPE_CHECKING:\n from pathlib import Path\n from typing import Any\n\n\nclass SystemGit:\n @classmethod\n def clone(cls, reposit...
diff --git a/src/poetry/vcs/git/system.py b/src/poetry/vcs/git/system.py index c1520539462..5ed84733387 100644 --- a/src/poetry/vcs/git/system.py +++ b/src/poetry/vcs/git/system.py @@ -1,5 +1,6 @@ from __future__ import annotations +import os import subprocess from typing import TYPE_CHECKING @@ -49,8 +50,14 @@ ...
beetbox__beets-3825
mpdstats plugin needs updating to work with python-mpd2 2.0.0 (Sorry, this is just from source code inspection and a search of dependent packages in Debian, rather than a crash that I've genuinely reproduced - I don't currently use beets myself, although I keep meaning to try it.) https://github.com/Mic92/python-mpd...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Peter Schnebel and Johann Klähn.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software withou...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Peter Schnebel and Johann Klähn.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software withou...
diff --git a/beetsplug/mpdstats.py b/beetsplug/mpdstats.py index 39b045f9bd..599aa7631c 100644 --- a/beetsplug/mpdstats.py +++ b/beetsplug/mpdstats.py @@ -18,6 +18,7 @@ import mpd import socket import select +import sys import time import os @@ -52,7 +53,13 @@ def __init__(self, log): self.music_directo...
Mailu__Mailu-743
Strange behavior of Admin UI login As discussed on Matrix. It seems that the login "failures" as noted in #670 are back. ## In short When doing a login on the admin UI, it happens from time to time that the login screen is presented once again. Looking in the logs, the `POST` is returned with a status `200` (succe...
[ { "content": "import flask\nimport flask_bootstrap\n\nfrom mailu import utils, debug, models, manage, configuration\n\n\ndef create_app_from_config(config):\n \"\"\" Create a new application based on the given configuration\n \"\"\"\n app = flask.Flask(__name__)\n app.app_context().push()\n app.c...
[ { "content": "import flask\nimport flask_bootstrap\n\nfrom mailu import utils, debug, models, manage, configuration\n\n\ndef create_app_from_config(config):\n \"\"\" Create a new application based on the given configuration\n \"\"\"\n app = flask.Flask(__name__)\n app.cli.add_command(manage.mailu)\n...
diff --git a/core/admin/mailu/__init__.py b/core/admin/mailu/__init__.py index 6b245c3b8..4de3e5803 100644 --- a/core/admin/mailu/__init__.py +++ b/core/admin/mailu/__init__.py @@ -8,7 +8,6 @@ def create_app_from_config(config): """ Create a new application based on the given configuration """ app = flas...
Cog-Creators__Red-DiscordBot-2551
[ModLog] modlog.register_casetypes() fails silently This one is a bit obscure, but I promise there is a good bug here. Lets say you have a cog which registers Case A, install that cog and have it running for an day. And you update the cog with a new case type, (Case B). The ``modlog.register_casetypes()`` will fail sil...
[ { "content": "from datetime import datetime\nfrom typing import List, Union\n\nimport discord\n\nfrom redbot.core import Config\nfrom redbot.core.bot import Red\n\nfrom .utils.common_filters import (\n filter_invites,\n filter_mass_mentions,\n filter_urls,\n escape_spoilers,\n)\n\n__all__ = [\n \...
[ { "content": "from datetime import datetime\nfrom typing import List, Union\n\nimport discord\n\nfrom redbot.core import Config\nfrom redbot.core.bot import Red\n\nfrom .utils.common_filters import (\n filter_invites,\n filter_mass_mentions,\n filter_urls,\n escape_spoilers,\n)\n\n__all__ = [\n \...
diff --git a/redbot/core/modlog.py b/redbot/core/modlog.py index 6824b2c2760..e096e08f4f0 100644 --- a/redbot/core/modlog.py +++ b/redbot/core/modlog.py @@ -746,7 +746,6 @@ async def register_casetypes(new_types: List[dict]) -> List[CaseType]: Raises ------ - RuntimeError KeyError ValueError ...
encode__httpx-1391
Path encoding broken for non-ASCII in WSGI mode ### Describe the bug When using httpx to call into a WSGI application (my preferred way to test Flask app nowadays), the web view receives urlencoded paths. I'm not sure where this really belongs to (is it a bug in httpx or Flask!?), but I've been working around it ...
[ { "content": "import io\nimport itertools\nimport typing\n\nimport httpcore\n\n\ndef _skip_leading_empty_chunks(body: typing.Iterable) -> typing.Iterable:\n body = iter(body)\n for chunk in body:\n if chunk:\n return itertools.chain([chunk], body)\n return []\n\n\nclass WSGITransport(...
[ { "content": "import io\nimport itertools\nimport typing\nfrom urllib.parse import unquote\n\nimport httpcore\n\n\ndef _skip_leading_empty_chunks(body: typing.Iterable) -> typing.Iterable:\n body = iter(body)\n for chunk in body:\n if chunk:\n return itertools.chain([chunk], body)\n r...
diff --git a/httpx/_transports/wsgi.py b/httpx/_transports/wsgi.py index 5169d92e70..953e1908c2 100644 --- a/httpx/_transports/wsgi.py +++ b/httpx/_transports/wsgi.py @@ -1,6 +1,7 @@ import io import itertools import typing +from urllib.parse import unquote import httpcore @@ -83,7 +84,7 @@ def request( ...
gwastro__pycbc-2196
_check_lal_pars does not correctly assign quadfmode2 The function does `if p['lambda_octu1'] is not None: lalsimulation.SimInspiralWaveformParamsInsertTidalOctupolarLambda1(lal_pars, p['lambda_octu1']) if p['lambda_octu2'] is not None: lalsimulation.SimInspiralWaveformParamsInsertTidalOctupol...
[ { "content": "# Copyright (C) 2012 Alex Nitz\n#\n# This program is free software; you can redistribute it and/or modify it\n# under the terms of the GNU General Public License as published by the\n# Free Software Foundation; either version 3 of the License, or (at your\n# option) any later version.\n#\n# This ...
[ { "content": "# Copyright (C) 2012 Alex Nitz\n#\n# This program is free software; you can redistribute it and/or modify it\n# under the terms of the GNU General Public License as published by the\n# Free Software Foundation; either version 3 of the License, or (at your\n# option) any later version.\n#\n# This ...
diff --git a/pycbc/waveform/waveform.py b/pycbc/waveform/waveform.py index 1c1c7eee1fb..8ea9daaada0 100644 --- a/pycbc/waveform/waveform.py +++ b/pycbc/waveform/waveform.py @@ -106,7 +106,7 @@ def _check_lal_pars(p): if p['quadfmode1'] is not None: lalsimulation.SimInspiralWaveformParamsInsertTidalQuadrup...
docker__docker-py-502
.dockerignore and Dockerfile ignore Docker 1.5 introduced the ability to ignore both the .dockerignore and the Dockerfile (in the .dockerignore file), but this is processed on the server since and only for dealing with the build cache (ie, when someone does ADD., Dockerfile changes can be ignored). If Dockerfile is in...
[ { "content": "# Copyright 2013 dotCloud 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 requir...
[ { "content": "# Copyright 2013 dotCloud 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 requir...
diff --git a/docker/client.py b/docker/client.py index 26adf2869..5d112aca2 100644 --- a/docker/client.py +++ b/docker/client.py @@ -297,6 +297,12 @@ def build(self, path=None, tag=None, quiet=False, fileobj=None, if os.path.exists(dockerignore): with open(dockerignore, 'r') as f: ...
pycontribs__jira-703
Jira response (class: Issue ) is not picklable looks like Issue class is not pickable ``` sqlalchemy.exc.InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nfrom __future__ import print_function\n\"\"\"\nThis module implements the Resource classes that translate JSON from JIRA REST resources\ninto usable objects.\n\"\"\"\n\nimport logging\nimport re\nimport time\ntry: # Python 2.7+\n ...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nfrom __future__ import print_function\n\"\"\"\nThis module implements the Resource classes that translate JSON from JIRA REST resources\ninto usable objects.\n\"\"\"\n\nimport logging\nimport re\nimport time\ntry: # Python 2.7+\n ...
diff --git a/jira/resources.py b/jira/resources.py index 2400d462c..062d5d7ba 100644 --- a/jira/resources.py +++ b/jira/resources.py @@ -1000,7 +1000,7 @@ def dict2resource(raw, top=None, options=None, session=None): or a ``PropertyHolder`` object (if no ``self`` link is present). """ if top is None: - ...
tensorflow__tfx-2652
TFX 0.24 fails on/after trainer step in interactive run The typical TFX pipeline fails with a kernel restart after the trainer is run for the first time. For example, when running the following colab, the kernel restarts if the trainer step is re-run. https://colab.research.google.com/github/tensorflow/tfx/blob/ma...
[ { "content": "# Lint as: python2, python3\n# Copyright 2019 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/lice...
[ { "content": "# Lint as: python2, python3\n# Copyright 2019 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/lice...
diff --git a/RELEASE.md b/RELEASE.md index 69ef824916..3a1e795d45 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -27,6 +27,8 @@ tfx/examples. * Reuse Examples artifact type introduced in TFX 0.23 to allow older release jobs running together with TFX 0.23+ release. +* Fixed issues where custom property acces...
Pycord-Development__pycord-859
Set pagination's current page before pagination is sent or responded ### Summary The ability to set the inital current page index before sending a pagination message. ### What is the feature request for? discord.ext.pages ### The Problem I'll give an example use case: Say I have a school schedule syst...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without li...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without li...
diff --git a/discord/ext/pages/pagination.py b/discord/ext/pages/pagination.py index d5042a4fa6..1f1cbaba5a 100644 --- a/discord/ext/pages/pagination.py +++ b/discord/ext/pages/pagination.py @@ -604,7 +604,7 @@ async def send( raise TypeError(f"expected abc.Messageable not {target.__class__!r}") ...
Parsl__parsl-2634
Suggestion: use equivalent of mkdir -p with runinfo **Describe the bug** If a runinfo directory already exists, we currently get a nasty traceback: ``` broker.info[0]: online: flux-sample-[0-3] (ranks 0-3) broker.info[0]: quorum-full: quorum->run 29.4857s Traceback (most recent call last): File "/workflow/s...
[ { "content": "\"\"\"Defines the FluxExecutor class.\"\"\"\n\nimport concurrent.futures as cf\nimport functools\nimport os\nimport sys\nimport uuid\nimport threading\nimport itertools\nimport shutil\nimport queue\nfrom socket import gethostname\nimport collections\nfrom collections.abc import Mapping, Callable\n...
[ { "content": "\"\"\"Defines the FluxExecutor class.\"\"\"\n\nimport concurrent.futures as cf\nimport functools\nimport os\nimport sys\nimport uuid\nimport threading\nimport itertools\nimport shutil\nimport queue\nfrom socket import gethostname\nimport collections\nfrom collections.abc import Mapping, Callable\n...
diff --git a/parsl/executors/flux/executor.py b/parsl/executors/flux/executor.py index 9ccc2f606e..f840b49750 100644 --- a/parsl/executors/flux/executor.py +++ b/parsl/executors/flux/executor.py @@ -201,8 +201,8 @@ def __init__( self.flux_path = os.path.abspath(flux_path) self._task_id_counter = itert...
freqtrade__freqtrade-3049
Docker-compose: Hyperopt - Fatal Exception - TypeError ## Step 1: Have you search for this issue before posting it? If you have discovered a bug in the bot, please [search our issue tracker](https://github.com/freqtrade/freqtrade/issues?q=is%3Aissue). If it hasn't been reported, please create a new issue. ## St...
[ { "content": "import logging\nfrom typing import Any, Dict\n\nfrom freqtrade import constants\nfrom freqtrade.configuration import setup_utils_configuration\nfrom freqtrade.exceptions import DependencyException, OperationalException\nfrom freqtrade.state import RunMode\n\nlogger = logging.getLogger(__name__)\n\...
[ { "content": "import logging\nfrom typing import Any, Dict\n\nfrom freqtrade import constants\nfrom freqtrade.configuration import setup_utils_configuration\nfrom freqtrade.exceptions import DependencyException, OperationalException\nfrom freqtrade.state import RunMode\n\nlogger = logging.getLogger(__name__)\n\...
diff --git a/freqtrade/commands/optimize_commands.py b/freqtrade/commands/optimize_commands.py index a2d1b460115..2fc605926bd 100644 --- a/freqtrade/commands/optimize_commands.py +++ b/freqtrade/commands/optimize_commands.py @@ -17,10 +17,15 @@ def setup_optimize_configuration(args: Dict[str, Any], method: RunMode) -> ...
gratipay__gratipay.com-1303
Upscaled and blurry profile pic The profile picture on https://www.gittip.com/tastejs/ is upscaled and blurry. ![Screen Shot 2013-04-24 at 15 11 43](https://f.cloud.github.com/assets/170270/419893/b6546302-ace0-11e2-9dd3-e511318e72f9.png) The original one [Twitter](https://twitter.com/tastejs) is large: https://si0.t...
[ { "content": "from __future__ import unicode_literals\n\nimport datetime\nimport os\nfrom decimal import Decimal\n\nimport pytz\nfrom aspen.utils import typecheck\nfrom sqlalchemy.exc import IntegrityError\nfrom sqlalchemy import func\nfrom sqlalchemy.orm import relationship, exc\nfrom sqlalchemy.schema import ...
[ { "content": "from __future__ import unicode_literals\n\nimport datetime\nimport os\nfrom decimal import Decimal\n\nimport pytz\nfrom aspen.utils import typecheck\nfrom sqlalchemy.exc import IntegrityError\nfrom sqlalchemy import func\nfrom sqlalchemy.orm import relationship, exc\nfrom sqlalchemy.schema import ...
diff --git a/gittip/models/participant.py b/gittip/models/participant.py index 527c96e9ec..c2cf09f24a 100644 --- a/gittip/models/participant.py +++ b/gittip/models/participant.py @@ -259,10 +259,12 @@ def get_img_src(self, size=128): if 'profile_image_url_https' in twitter.user_info: src =...
feast-dev__feast-731
feast cli feature-sets describe broken ## Expected Behavior `feast feature-sets describe <name>` cannot be used because it doesn't allow the user to set a project, nor does it default to any value. ## Steps to reproduce Call `feast feature-sets describe <some_feature_set>` ### Specifications - Version: 0.5....
[ { "content": "# Copyright 2019 The Feast 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
[ { "content": "# Copyright 2019 The Feast 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
diff --git a/sdk/python/feast/cli.py b/sdk/python/feast/cli.py index 36d1d489e41..6d1df292764 100644 --- a/sdk/python/feast/cli.py +++ b/sdk/python/feast/cli.py @@ -156,12 +156,20 @@ def feature_set_create(filename): @feature_set.command("describe") @click.argument("name", type=click.STRING) -def feature_set_descri...
psf__black-2297
Normalize raw f-strings prefix **Is your feature request related to a problem? Please describe.** Black should normalize the prefix used for raw f-strings (https://www.python.org/dev/peps/pep-0498/#raw-f-strings). Both `rf` and `fr` work, but one should be preferred. Currently, the following code is not changed: ...
[ { "content": "# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation.\n# All rights reserved.\n\n# mypy: allow-untyped-defs, allow-untyped-calls\n\n\"\"\"Tokenization help for Python programs.\n\ngenerate_tokens(readline) is a generator that breaks a stream of\ntext into Python tokens. I...
[ { "content": "# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation.\n# All rights reserved.\n\n# mypy: allow-untyped-defs, allow-untyped-calls\n\n\"\"\"Tokenization help for Python programs.\n\ngenerate_tokens(readline) is a generator that breaks a stream of\ntext into Python tokens. I...
diff --git a/CHANGES.md b/CHANGES.md index 565c36f8c60..5a8a0ef9f7c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -28,6 +28,7 @@ `--target-version` is set to 3.10 and higher). (#2728) - Fix handling of standalone `match()` or `case()` when there is a trailing newline or a comment inside of the parentheses. (#2760)...
huggingface__trl-260
[Bug] when using accelerator + deepspeed, AcceleratorState class instantiated twice with different config When run `accelerate launch` (with deepspeed), the following errors will appear: <img width="1344" alt="image" src="https://user-images.githubusercontent.com/3998421/228439528-a81196e7-68f0-404c-8ddd-cf7791d0882...
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
diff --git a/trl/trainer/ppo_trainer.py b/trl/trainer/ppo_trainer.py index b92a7a7bf8..fdfeadca14 100644 --- a/trl/trainer/ppo_trainer.py +++ b/trl/trainer/ppo_trainer.py @@ -592,11 +592,12 @@ def step( rewards, non_score_reward = self.compute_rewards(scores, all_logprobs, ref_logprobs, masks) timing[...
apache__airflow-37066
Confusing log for long running tasks: "dependency 'Task Instance Not Running' FAILED: Task is in the running state" **Apache Airflow version**: 1.10.* / 2.0.* / 2.1.* **Kubernetes version (if you are using kubernetes)** (use `kubectl version`): Any **Environment**: - **Cloud provider or hardware configuratio...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
diff --git a/airflow/providers/celery/executors/default_celery.py b/airflow/providers/celery/executors/default_celery.py index eaaf0fd0b4f31..01b13b1c5a8af 100644 --- a/airflow/providers/celery/executors/default_celery.py +++ b/airflow/providers/celery/executors/default_celery.py @@ -72,7 +72,7 @@ def _broker_supports_...
fedora-infra__bodhi-1608
The CLI should not traceback when trying to save an already active override I tried to use the CLI to alter the duration on an override I made today, and it crashes: ``` $ bodhi overrides save --duration 3 --notes "This is needed to build Bodhi." --user bowlofeggs python-pyramid-1.8.2-2.fc26 Password: Traceback (...
[ { "content": "# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope t...
[ { "content": "# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope t...
diff --git a/bodhi/client/__init__.py b/bodhi/client/__init__.py index 2f93e3ca6c..dec3c123df 100644 --- a/bodhi/client/__init__.py +++ b/bodhi/client/__init__.py @@ -537,7 +537,16 @@ def save_buildroot_overrides(user, password, url, staging, **kwargs): staging (bool): Whether to use the staging server or not....
googleapis__google-cloud-python-2503
Current `tox` configuration ends up testing old code For example: ``` bash $ rm -r .tox/ $ tox -e system-tests --notest GLOB sdist-make: /home/tseaver/projects/agendaless/Google/src/google-cloud-python/setup.py system-tests create: /home/tseaver/projects/agendaless/Google/src/google-cloud-python/.tox/system-tests syst...
[ { "content": "# Copyright 2016 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 2016 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/scripts/pycodestyle_on_repo.py b/scripts/pycodestyle_on_repo.py index ccb0b2ad9fa2..b362dae0c6f9 100644 --- a/scripts/pycodestyle_on_repo.py +++ b/scripts/pycodestyle_on_repo.py @@ -19,6 +19,8 @@ """ +from __future__ import print_function + import os import subprocess import sys @@ -35,9 +37,12 @@ ...
PokemonGoF__PokemonGo-Bot-4639
"release" "any": {"keep_best_iv": 1}, not working properly 1. Have you validated that your config.json is valid JSON? Use http://jsonlint.com/ to check. YES 2. Have you [searched our issue tracker](https://github.com/PokemonGoF/PokemonGo-Bot/issues?q=is%3Aissue+sort%3Aupdated-desc) to see if the issue already exists...
[ { "content": "import json\nimport os\n\nfrom pokemongo_bot import inventory\nfrom pokemongo_bot.human_behaviour import action_delay\nfrom pokemongo_bot.base_task import BaseTask\nfrom pokemongo_bot.inventory import Pokemons, Pokemon, Attack\nfrom pokemongo_bot.datastore import Datastore\nfrom operator import at...
[ { "content": "import json\nimport os\n\nfrom pokemongo_bot import inventory\nfrom pokemongo_bot.human_behaviour import action_delay\nfrom pokemongo_bot.base_task import BaseTask\nfrom pokemongo_bot.inventory import Pokemons, Pokemon, Attack\nfrom pokemongo_bot.datastore import Datastore\nfrom operator import at...
diff --git a/pokemongo_bot/cell_workers/transfer_pokemon.py b/pokemongo_bot/cell_workers/transfer_pokemon.py index 62a660c380..08093dd9c7 100644 --- a/pokemongo_bot/cell_workers/transfer_pokemon.py +++ b/pokemongo_bot/cell_workers/transfer_pokemon.py @@ -29,9 +29,10 @@ def work(self): pokemon_name = Pokemo...
pypa__pip-8718
Pip 20.2.1 causes UnicodeDecodeError **Environment** * pip version: 20.2.1 * Python version: Python 3.7.3 * OS: Windows 10 Pro 1909 I using [venv](https://docs.python.org/3/tutorial/venv.html) environment. My venv path has multi byte character, hangul, i think it may cause error. **Description** Pip 20...
[ { "content": "from __future__ import absolute_import\n\nimport logging\nimport os\nimport re\nimport site\nimport sys\n\nfrom pip._internal.utils.typing import MYPY_CHECK_RUNNING\n\nif MYPY_CHECK_RUNNING:\n from typing import List, Optional\n\nlogger = logging.getLogger(__name__)\n_INCLUDE_SYSTEM_SITE_PACKAG...
[ { "content": "from __future__ import absolute_import\n\nimport io\nimport logging\nimport os\nimport re\nimport site\nimport sys\n\nfrom pip._internal.utils.typing import MYPY_CHECK_RUNNING\n\nif MYPY_CHECK_RUNNING:\n from typing import List, Optional\n\nlogger = logging.getLogger(__name__)\n_INCLUDE_SYSTEM_...
diff --git a/news/8717.bugfix b/news/8717.bugfix new file mode 100644 index 00000000000..e8c8533c492 --- /dev/null +++ b/news/8717.bugfix @@ -0,0 +1 @@ +Always use UTF-8 to read ``pyvenv.cfg`` to match the built-in ``venv``. diff --git a/src/pip/_internal/utils/virtualenv.py b/src/pip/_internal/utils/virtualenv.py inde...
openstates__openstates-scrapers-2004
DE failing since at least 2017-12-08 DE has been failing since 2017-12-08 Based on automated runs it appears that DE has not run successfully in 2 days (2017-12-08). ``` 23:16:51 WARNING pupa: skipping amendment HA 1 to HJR 5 23:16:51 WARNING pupa: skipping amendment HA 1 to HB 4 23:16:51 WARNING pupa: skipping am...
[ { "content": "import datetime as dt\nimport json\nimport math\n\nfrom pupa.scrape import Scraper, Bill, VoteEvent\nfrom openstates.utils import LXMLMixin\nfrom .actions import Categorizer\n\n\nclass DEBillScraper(Scraper, LXMLMixin):\n categorizer = Categorizer()\n chamber_codes = {'upper': 1, 'lower': 2}...
[ { "content": "import datetime as dt\nimport json\nimport math\n\nfrom pupa.scrape import Scraper, Bill, VoteEvent\nfrom openstates.utils import LXMLMixin\nfrom .actions import Categorizer\n\n\nclass DEBillScraper(Scraper, LXMLMixin):\n categorizer = Categorizer()\n chamber_codes = {'upper': 1, 'lower': 2}...
diff --git a/openstates/de/bills.py b/openstates/de/bills.py index d5c73ba619..113846843b 100644 --- a/openstates/de/bills.py +++ b/openstates/de/bills.py @@ -75,7 +75,14 @@ def filter_substitutes(self, bills): def scrape_bill(self, row, chamber, session): bill_id = row['LegislationDisplayCode'] - ...
mdn__kuma-6547
/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/prototype # Request type <!-- Select the appropriate option --> - [ ] Please close this issue, I accidentally submitted it without adding any details - [ ] New documentation - [x] Correction or update # Details I was trying to make it redirect to the main...
[ { "content": "from urllib.parse import urlencode\n\nfrom csp.decorators import csp_update\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.http import Http404, JsonResponse\nfrom django.shortcuts import get_object_or_404, redirect, render\nfrom django.utils.s...
[ { "content": "from urllib.parse import urlencode\n\nfrom csp.decorators import csp_update\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.http import Http404, JsonResponse\nfrom django.shortcuts import get_object_or_404, redirect, render\nfrom django.utils.s...
diff --git a/kuma/wiki/views/translate.py b/kuma/wiki/views/translate.py index fb5704967db..b34d7890c73 100644 --- a/kuma/wiki/views/translate.py +++ b/kuma/wiki/views/translate.py @@ -220,7 +220,10 @@ def translate(request, document_slug, document_locale): # Attempt to set a parent if...
rotki__rotki-2284
TNT Tierion shows wrong value TNT Tierion calculates to a value of $4.12 per token instead of $0.00623 Operating system: Window 10 Rotki version: 1.13.0
[ { "content": "import logging\nimport operator\nfrom collections import defaultdict\nfrom dataclasses import dataclass, field\nfrom enum import Enum\nfrom pathlib import Path\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n DefaultDict,\n Dict,\n Iterator,\n List,\n Optional,\n...
[ { "content": "import logging\nimport operator\nfrom collections import defaultdict\nfrom dataclasses import dataclass, field\nfrom enum import Enum\nfrom pathlib import Path\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n DefaultDict,\n Dict,\n Iterator,\n List,\n Optional,\n...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 011394a238..ba971da370 100755 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,7 @@ Changelog ========= +* :bug:`2222` Users who have funds in a DeFi Saver smart wallet will now be also able to see their liabilities in said wallet. * :bug:`2249...
hedyorg__hedy-505
Error message location in the web interface This is more of a UX problem. On my screen, the error message appears below the code box, and thus sometimes not visible if there are to many 'Try this' boxes above. So that I didn't figure something was wrong directly without visual feedback. To reproduce, type garbage i...
[ { "content": "import sys\nif (sys.version_info.major < 3 or sys.version_info.minor < 6):\n print ('Hedy requires Python 3.6 or newer to run. However, your version of Python is', '.'.join ([str (sys.version_info.major), str (sys.version_info.minor), str (sys.version_info.micro)]))\n quit ()\n\n# coding=utf...
[ { "content": "import sys\nif (sys.version_info.major < 3 or sys.version_info.minor < 6):\n print ('Hedy requires Python 3.6 or newer to run. However, your version of Python is', '.'.join ([str (sys.version_info.major), str (sys.version_info.minor), str (sys.version_info.micro)]))\n quit ()\n\n# coding=utf...
diff --git a/app.py b/app.py index 73a77810c62..73e71b521c8 100644 --- a/app.py +++ b/app.py @@ -263,6 +263,7 @@ def parse(): # but we'll fall back to browser default if it's missing for whatever # reason. lang = body.get('lang', requested_lang()) + session['lang'] = lang querylog.log_value(level...
HypothesisWorks__hypothesis-2591
Indicate when a failing example comes from an @example It would be helpful if hypothesis indicated it in the error message when a failing example case comes from an @example decorator.
[ { "content": "# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Most of this work is copyright (C) 2013-2020 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full list of people who ma...
[ { "content": "# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Most of this work is copyright (C) 2013-2020 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full list of people who ma...
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 0000000000..f2cacebbbd --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,4 @@ +RELEASE_TYPE: minor + +When reporting failing examples, or tried examples in verbose mode, Hypothesis now +identifies which were...
networkx__networkx-2534
Node contraction documentation should provide an example with multigraphs Node or edge contraction is really a multigraph operation. For example, identifying the two endpoints of the path graph on three vertices yields a graph with two nodes and two parallel edges joining them. This should be at least an example in the...
[ { "content": "# minors.py - functions for computing minors of graphs\n#\n# Copyright 2015 Jeffrey Finkelstein <jeffrey.finkelstein@gmail.com>.\n# Copyright 2010 Drew Conway <drew.conway@nyu.edu>\n# Copyright 2010 Aric Hagberg <hagberg@lanl.gov>\n#\n# This file is part of NetworkX.\n#\n# NetworkX is distributed ...
[ { "content": "# minors.py - functions for computing minors of graphs\n#\n# Copyright 2015 Jeffrey Finkelstein <jeffrey.finkelstein@gmail.com>.\n# Copyright 2010 Drew Conway <drew.conway@nyu.edu>\n# Copyright 2010 Aric Hagberg <hagberg@lanl.gov>\n#\n# This file is part of NetworkX.\n#\n# NetworkX is distributed ...
diff --git a/networkx/algorithms/minors.py b/networkx/algorithms/minors.py index c629e5d4b16..913f751df62 100644 --- a/networkx/algorithms/minors.py +++ b/networkx/algorithms/minors.py @@ -309,13 +309,17 @@ def contracted_nodes(G, u, v, self_loops=True): Contracting two nonadjacent nodes of the cycle graph on four...
elastic__apm-agent-python-1161
Starlette/FastAPI python agent setup examples result in TypeError When following the [example](https://www.elastic.co/guide/en/apm/agent/python/current/starlette-support.html#starlette-fastapi) of setting up the Elastic APM agent with python + FastAPI, we find that we can't use `make_apm_client` as described as it has ...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following c...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following c...
diff --git a/elasticapm/contrib/starlette/__init__.py b/elasticapm/contrib/starlette/__init__.py index 1fc8478fa..c6678e647 100644 --- a/elasticapm/contrib/starlette/__init__.py +++ b/elasticapm/contrib/starlette/__init__.py @@ -31,6 +31,8 @@ from __future__ import absolute_import +from typing import Dict, Optiona...
TheAlgorithms__Python-1602
Type Error in linear_discriminant_analysis.py There is a type error in this following code: `pre_indexes = predict_y_values(x, actual_means, variance, probabilities)` the 'probabilities' parameter must be a list object , but is a generator object. generated error is as follows: `TypeError: 'generator' object is not...
[ { "content": "\"\"\"\n Linear Discriminant Analysis\n\n\n Assumptions About Data :\n 1. The input variables has a gaussian distribution.\n 2. The variance calculated for each input variables by class grouping is the\n same.\n 3. The mix of classes in your training set is rep...
[ { "content": "\"\"\"\n Linear Discriminant Analysis\n\n\n Assumptions About Data :\n 1. The input variables has a gaussian distribution.\n 2. The variance calculated for each input variables by class grouping is the\n same.\n 3. The mix of classes in your training set is rep...
diff --git a/machine_learning/linear_discriminant_analysis.py b/machine_learning/linear_discriminant_analysis.py index 8a89f6f5922e..62dc34af6bbd 100644 --- a/machine_learning/linear_discriminant_analysis.py +++ b/machine_learning/linear_discriminant_analysis.py @@ -295,10 +295,10 @@ def main(): print("-" * 10...
iterative__dvc-4196
remove: remove dvc.yaml and dvc.lock if they are empty https://github.com/iterative/dvc/pull/4074#issuecomment-648097445 ``` $ cat dvc.lock {} $ cat dvc.yaml stages: {} ```
[ { "content": "import collections\nimport contextlib\nimport logging\nimport os\n\nfrom voluptuous import MultipleInvalid\n\nfrom dvc.exceptions import DvcException\nfrom dvc.stage import serialize\nfrom dvc.stage.exceptions import (\n StageFileBadNameError,\n StageFileDoesNotExistError,\n StageFileForm...
[ { "content": "import collections\nimport contextlib\nimport logging\nimport os\n\nfrom voluptuous import MultipleInvalid\n\nfrom dvc.exceptions import DvcException\nfrom dvc.stage import serialize\nfrom dvc.stage.exceptions import (\n StageFileBadNameError,\n StageFileDoesNotExistError,\n StageFileForm...
diff --git a/dvc/dvcfile.py b/dvc/dvcfile.py index 8269edaa8a..5b0f2f38c6 100644 --- a/dvc/dvcfile.py +++ b/dvc/dvcfile.py @@ -233,7 +233,11 @@ def remove_stage(self, stage): logger.debug("Removing '%s' from '%s'", stage.name, self.path) del d["stages"][stage.name] - dump_yaml(self.path, d) +...
ktbyers__netmiko-2043
cryptography 3.1 library breaks tplink drivers I've just updated to netmiko 3.3.2 from 3.3.0, and paramiko 2.7.2 before and after the netmiko upgrade. My custom ssh driver worked fine with netmiko 3.3.0. The stack trace is interesting for a couple reasons: The actual error "AttributeError: module 'cryptography.util...
[ { "content": "import re\nimport time\n\nfrom cryptography import utils as crypto_utils\nfrom cryptography.hazmat.primitives.asymmetric import dsa\n\nfrom netmiko import log\nfrom netmiko.cisco_base_connection import CiscoSSHConnection\nfrom netmiko.ssh_exception import NetmikoTimeoutException\n\n\nclass TPLinkJ...
[ { "content": "import re\nimport time\n\nfrom cryptography.hazmat.primitives.asymmetric import dsa\n\nfrom netmiko import log\nfrom netmiko.cisco_base_connection import CiscoSSHConnection\nfrom netmiko.ssh_exception import NetmikoTimeoutException\n\n\nclass TPLinkJetStreamBase(CiscoSSHConnection):\n def __ini...
diff --git a/netmiko/tplink/tplink_jetstream.py b/netmiko/tplink/tplink_jetstream.py index 45a61a1f6..2d51767c9 100644 --- a/netmiko/tplink/tplink_jetstream.py +++ b/netmiko/tplink/tplink_jetstream.py @@ -1,7 +1,6 @@ import re import time -from cryptography import utils as crypto_utils from cryptography.hazmat.pri...
huggingface__diffusers-6337
TensorRT pipeline: Returns an error when compiling VAE when using AutoencoderTiny ### Describe the bug TensorRT returns an error when compiling VAE when using AutoencoderTiny. ### Reproduction ``` import random from PIL import Image import torch from diffusers import ( LCMScheduler, AutoencoderTiny, ...
[ { "content": "#\n# Copyright 2023 The HuggingFace Inc. team.\n# SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n# SPDX-License-Identifier: Apache-2.0\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except...
[ { "content": "#\n# Copyright 2023 The HuggingFace Inc. team.\n# SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n# SPDX-License-Identifier: Apache-2.0\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except...
diff --git a/examples/community/stable_diffusion_tensorrt_img2img.py b/examples/community/stable_diffusion_tensorrt_img2img.py index e6e5e9db71d0..f9859bd8e6e8 100755 --- a/examples/community/stable_diffusion_tensorrt_img2img.py +++ b/examples/community/stable_diffusion_tensorrt_img2img.py @@ -50,6 +50,7 @@ Stable...
inventree__InvenTree-6287
[PUI] Global login Global Login (CUI logs in PUI and vice versa) is not working (anymore)
[ { "content": "\"\"\"DRF API definition for the 'users' app.\"\"\"\n\nimport datetime\nimport logging\n\nfrom django.contrib.auth.models import Group, User\nfrom django.urls import include, path, re_path\n\nfrom rest_framework import exceptions, permissions\nfrom rest_framework.response import Response\nfrom res...
[ { "content": "\"\"\"DRF API definition for the 'users' app.\"\"\"\n\nimport datetime\nimport logging\n\nfrom django.contrib.auth import get_user, login\nfrom django.contrib.auth.models import Group, User\nfrom django.urls import include, path, re_path\n\nfrom rest_framework import exceptions, permissions\nfrom ...
diff --git a/InvenTree/users/api.py b/InvenTree/users/api.py index 987eeb7c25c6..8343962fddc1 100644 --- a/InvenTree/users/api.py +++ b/InvenTree/users/api.py @@ -3,6 +3,7 @@ import datetime import logging +from django.contrib.auth import get_user, login from django.contrib.auth.models import Group, User from dja...
mars-project__mars-210
[BUG][TENSOR] TensorZeros generated in TensorDiag.tile have the same key even if they have different shapes <!-- Thank you for your contribution! Please review https://github.com/mars-project/mars/blob/master/CONTRIBUTING.rst before opening an issue. --> **Describe the bug** `TensorDiag.tile` may generate ch...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright 1999-2018 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright 1999-2018 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://...
diff --git a/mars/tensor/expressions/datasource/core.py b/mars/tensor/expressions/datasource/core.py index b79370703e..ec727c2f25 100644 --- a/mars/tensor/expressions/datasource/core.py +++ b/mars/tensor/expressions/datasource/core.py @@ -72,6 +72,14 @@ def check_inputs(self, inputs): def calc_shape(self, *inputs_...
psf__black-1761
Blackd Packaging **Describe the bug** The [blackd documenation states](https://black.readthedocs.io/en/stable/blackd.html): > blackd is not packaged alongside Black by default because it has additional dependencies. You will need to execute pip install black[d] to install it. But `blackd` is included in [package...
[ { "content": "import asyncio\nfrom concurrent.futures import Executor, ProcessPoolExecutor\nfrom datetime import datetime\nfrom functools import partial\nimport logging\nfrom multiprocessing import freeze_support\nfrom typing import Set, Tuple\n\nfrom aiohttp import web\nimport aiohttp_cors\nimport black\nimpor...
[ { "content": "import asyncio\nimport logging\nimport sys\nfrom concurrent.futures import Executor, ProcessPoolExecutor\nfrom datetime import datetime\nfrom functools import partial\nfrom multiprocessing import freeze_support\nfrom typing import Set, Tuple\n\ntry:\n from aiohttp import web\n import aiohttp...
diff --git a/src/blackd/__init__.py b/src/blackd/__init__.py index d79bfe75bc2..f77a5e8e7be 100644 --- a/src/blackd/__init__.py +++ b/src/blackd/__init__.py @@ -1,13 +1,24 @@ import asyncio +import logging +import sys from concurrent.futures import Executor, ProcessPoolExecutor from datetime import datetime from fu...
cloud-custodian__cloud-custodian-3125
aws iam user docs bugs https://www.capitalone.io/docs/_modules/c7n/resources/iam.html references type: username when it should be type: value.
[ { "content": "# Copyright 2016-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi...
[ { "content": "# Copyright 2016-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi...
diff --git a/c7n/resources/iam.py b/c7n/resources/iam.py index 00f2574a7b9..e52877086dd 100644 --- a/c7n/resources/iam.py +++ b/c7n/resources/iam.py @@ -1123,7 +1123,7 @@ class UserDelete(BaseAction): - name: iam-only-whitelisted-users resource: iam-user filters: - - type: user...
feast-dev__feast-2676
basicConfig is called at the module level ## Expected Behavior ``` import feast logging.basicConfig(level=level, format=FORMAT) logging.error("msg") ``` should print logging message according to `FORMAT` ## Current Behavior It uses the format defined in `feast` at the module level. ## Steps to repro...
[ { "content": "import logging\n\nfrom pkg_resources import DistributionNotFound, get_distribution\n\nfrom feast.infra.offline_stores.bigquery_source import BigQuerySource\nfrom feast.infra.offline_stores.file_source import FileSource\nfrom feast.infra.offline_stores.redshift_source import RedshiftSource\nfrom fe...
[ { "content": "from pkg_resources import DistributionNotFound, get_distribution\n\nfrom feast.infra.offline_stores.bigquery_source import BigQuerySource\nfrom feast.infra.offline_stores.file_source import FileSource\nfrom feast.infra.offline_stores.redshift_source import RedshiftSource\nfrom feast.infra.offline_...
diff --git a/sdk/python/feast/__init__.py b/sdk/python/feast/__init__.py index 62cc52215c9..18b0f4ee242 100644 --- a/sdk/python/feast/__init__.py +++ b/sdk/python/feast/__init__.py @@ -1,5 +1,3 @@ -import logging - from pkg_resources import DistributionNotFound, get_distribution from feast.infra.offline_stores.bigq...
conda__conda-build-1855
Permissions not set when extracting from zipfile. When extracting source code from a `zipfile`, permissions are lost, and for example: ``` ./configure ``` will fail, because the file is no more executable. This was solved in [Distribute](https://pythonhosted.org/distribute/) (deprecated fork of the Setuptools projec...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport base64\nfrom collections import defaultdict\nimport contextlib\nimport fnmatch\nfrom glob import glob\nimport json\nfrom locale import getpreferredencoding\nimport logging\nimport operator\nimport os\nfrom os.path import di...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport base64\nfrom collections import defaultdict\nimport contextlib\nimport fnmatch\nfrom glob import glob\nimport json\nfrom locale import getpreferredencoding\nimport logging\nimport operator\nimport os\nfrom os.path import di...
diff --git a/conda_build/utils.py b/conda_build/utils.py index 33e197aac3..0898fc3cd8 100644 --- a/conda_build/utils.py +++ b/conda_build/utils.py @@ -345,7 +345,8 @@ def tar_xf(tarball, dir_path, mode='r:*'): def unzip(zip_path, dir_path): z = zipfile.ZipFile(zip_path) - for name in z.namelist(): + for i...
kivy__kivy-5788
rows_sh_min throwing an exception "list index out of range" because its referencing the index meant for columns <!-- The issue tracker is a tool to address bugs. Please use the #kivy IRC channel on freenode or Stack Overflow for support questions, more information at https://git.io/vM1yQ. Before opening a new iss...
[ { "content": "'''\nGrid Layout\n===========\n\n.. only:: html\n\n .. image:: images/gridlayout.gif\n :align: right\n\n.. only:: latex\n\n .. image:: images/gridlayout.png\n :align: right\n\n.. versionadded:: 1.0.4\n\nThe :class:`GridLayout` arranges children in a matrix. It takes the availab...
[ { "content": "'''\nGrid Layout\n===========\n\n.. only:: html\n\n .. image:: images/gridlayout.gif\n :align: right\n\n.. only:: latex\n\n .. image:: images/gridlayout.png\n :align: right\n\n.. versionadded:: 1.0.4\n\nThe :class:`GridLayout` arranges children in a matrix. It takes the availab...
diff --git a/kivy/uix/gridlayout.py b/kivy/uix/gridlayout.py index fabe95230f..0aedb7dd1d 100644 --- a/kivy/uix/gridlayout.py +++ b/kivy/uix/gridlayout.py @@ -359,10 +359,10 @@ def _fill_rows_cols_sizes(self): rows_sh[row] = nmax(rows_sh[row], shh) if shh_min is not None: ...
conda-forge__conda-smithy-788
If host comes before build, incorrect error As in the title, if the host section comes before the build section, the following nonsensical error is generated: ``` The requirements/build section should be defined before the requirements/run section. ``` Note that the order is: host, build, run.
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom __future__ import unicode_literals\n\nimport datetime\nimport io\nimport itertools\nimport os\nimport re\nimport time\n\nimport github\nimport jinja2\nimport ruamel.yaml\n\nfrom conda_build.metadata import (ensure_valid_license_family,\n ...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom __future__ import unicode_literals\n\nimport datetime\nimport io\nimport itertools\nimport os\nimport re\nimport time\n\nimport github\nimport jinja2\nimport ruamel.yaml\n\nfrom conda_build.metadata import (ensure_valid_license_family,\n ...
diff --git a/conda_smithy/lint_recipe.py b/conda_smithy/lint_recipe.py index 394f575a9..5af944362 100644 --- a/conda_smithy/lint_recipe.py +++ b/conda_smithy/lint_recipe.py @@ -164,8 +164,9 @@ def lintify(meta, recipe_dir=None, conda_forge=False): requirements_order_sorted = sorted(seen_requirements, ...
Lightning-AI__pytorch-lightning-3042
Incorrect default cuda device when using single gpu other than cuda:0 ## 🐛 Bug The default `cuda` is not set properly to the `trainer.root_gpu` in single-GPU mode. The tensors created with `device='cuda'` will be placed on the incorrect gpu, and the dataloader will acquire memory on the incorrect gpu when `pin_memo...
[ { "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/accelerators/gpu_backend.py b/pytorch_lightning/accelerators/gpu_backend.py index 881a7061dfc17..ea0057dcc13ee 100644 --- a/pytorch_lightning/accelerators/gpu_backend.py +++ b/pytorch_lightning/accelerators/gpu_backend.py @@ -12,6 +12,7 @@ # See the License for the specific language gove...
jupyterhub__zero-to-jupyterhub-k8s-2769
Move changelog to docs website I suggest we make the changelog become part of the rendered documentation instead of a dedicated markdown file to be read from GitHub, and that we let CHANGELOG.md point to this rendered view. Note for reference that jupyterhub/jupyterhub repo only has rendered website documentation cu...
[ { "content": "# Configuration file for Sphinx to build our documentation to HTML.\n#\n# Configuration reference: https://www.sphinx-doc.org/en/master/usage/configuration.html\n#\n\n# -- Path setup --------------------------------------------------------------\n\n# If extensions (or modules to document with auto...
[ { "content": "# Configuration file for Sphinx to build our documentation to HTML.\n#\n# Configuration reference: https://www.sphinx-doc.org/en/master/usage/configuration.html\n#\n\n# -- Path setup --------------------------------------------------------------\n\n# If extensions (or modules to document with auto...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 687ecc8870..00df2789af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3303 +1 @@ -# Changelog - -Here you can find upgrade changes in between releases and upgrade instructions. - -## UNRELEASED - -## 1.2 - -### 1.2.0 - 2021-11-04 - -Security release! Updates JupyterHub...
nilearn__nilearn-3111
Use bibtex in nilearn/regions Convert references in `nilearn/regions/region_extractor.py` to use footcite / footbibliography. See #2759
[ { "content": "\"\"\"\nBetter brain parcellations for Region of Interest analysis\n\"\"\"\n\nimport numbers\nimport collections.abc\nimport numpy as np\n\nfrom scipy import ndimage\nfrom scipy.stats import scoreatpercentile\n\nfrom joblib import Memory\n\nfrom .. import masking\nfrom ..input_data import NiftiMap...
[ { "content": "\"\"\"\nBetter brain parcellations for Region of Interest analysis\n\"\"\"\n\nimport numbers\nimport collections.abc\nimport numpy as np\n\nfrom scipy import ndimage\nfrom scipy.stats import scoreatpercentile\n\nfrom joblib import Memory\n\nfrom .. import masking\nfrom ..input_data import NiftiMap...
diff --git a/doc/references.bib b/doc/references.bib index c835bd7eec..aa33b8bc39 100644 --- a/doc/references.bib +++ b/doc/references.bib @@ -1,3 +1,18 @@ +@misc{abraham:hal-01093944, + TITLE = {{Region segmentation for sparse decompositions: better brain parcellations from rest fMRI}}, + AUTHOR = {Abraham, Alexandr...