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
mit-ll-responsible-ai__hydra-zen-355
`validates_with_beartype` considers `Partial` as `NoneType` Hi @rsokl. I was having a blast using this fascinating library. But It seems when used with `hydra_zen.third_party.validates_with_beartype`, it casts `hydra_zen.typing.Partial` as `NoneType`. ```python from hydra_zen.typing import Partial from hydra_ze...
[ { "content": "# Copyright (c) 2022 Massachusetts Institute of Technology\n# SPDX-License-Identifier: MIT\n\n# pyright: strict\n\nimport sys\nimport types\nfrom enum import Enum\nfrom pathlib import Path, PosixPath, WindowsPath\nfrom typing import (\n TYPE_CHECKING,\n Any,\n ByteString,\n Callable,\n...
[ { "content": "# Copyright (c) 2022 Massachusetts Institute of Technology\n# SPDX-License-Identifier: MIT\n\n# pyright: strict\n\nimport sys\nimport types\nfrom enum import Enum\nfrom pathlib import Path, PosixPath, WindowsPath\nfrom typing import (\n TYPE_CHECKING,\n Any,\n ByteString,\n Callable,\n...
diff --git a/.github/workflows/tox_run.yml b/.github/workflows/tox_run.yml index fe7d517c6..6d7f016b0 100644 --- a/.github/workflows/tox_run.yml +++ b/.github/workflows/tox_run.yml @@ -91,10 +91,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python 3.8 + - na...
netbox-community__netbox-6029
Virtual chassis search displays duplicate entries ### NetBox version v2.10.6 ### Python version 3.8 ### Steps to Reproduce 1. Create a device named test-vc-1-1 2. Create a device named test-vc-1-2 3. Create a virtual chassis named test-vc-1 and bundle the two device created in 1. and 2. 4. In the virtual chassi...
[ { "content": "import django_filters\nfrom django.contrib.auth.models import User\nfrom django.db.models import Count\n\nfrom extras.filters import CustomFieldModelFilterSet, LocalConfigContextFilterSet, CreatedUpdatedFilterSet\nfrom tenancy.filters import TenancyFilterSet\nfrom tenancy.models import Tenant\nfro...
[ { "content": "import django_filters\nfrom django.contrib.auth.models import User\nfrom django.db.models import Count\n\nfrom extras.filters import CustomFieldModelFilterSet, LocalConfigContextFilterSet, CreatedUpdatedFilterSet\nfrom tenancy.filters import TenancyFilterSet\nfrom tenancy.models import Tenant\nfro...
diff --git a/netbox/dcim/filters.py b/netbox/dcim/filters.py index 41363c26119..548f401c04f 100644 --- a/netbox/dcim/filters.py +++ b/netbox/dcim/filters.py @@ -1075,7 +1075,7 @@ def search(self, queryset, name, value): Q(members__name__icontains=value) | Q(domain__icontains=value) ) ...
unionai-oss__pandera-909
Implicit ignore_na=True behaviour causes custom dataframe checks to be ignored by default **Describe the bug** When using custom dataframe checks returning boolean series, `SchemaModel.validate()` does not report validation errors generated by a custom check if the record in question (or is it the entire dataframe?) c...
[ { "content": "\"\"\"Utility functions for validation.\"\"\"\n\nfrom functools import lru_cache\nfrom typing import NamedTuple, Optional, Tuple, Union\n\nimport pandas as pd\n\nSupportedTypes = NamedTuple(\n \"SupportedTypes\",\n (\n (\"table_types\", Tuple[type, ...]),\n (\"field_types\", Tu...
[ { "content": "\"\"\"Utility functions for validation.\"\"\"\n\nfrom functools import lru_cache\nfrom typing import NamedTuple, Optional, Tuple, Union\n\nimport pandas as pd\n\nSupportedTypes = NamedTuple(\n \"SupportedTypes\",\n (\n (\"table_types\", Tuple[type, ...]),\n (\"field_types\", Tu...
diff --git a/pandera/check_utils.py b/pandera/check_utils.py index f6bc56b8b..eca859db0 100644 --- a/pandera/check_utils.py +++ b/pandera/check_utils.py @@ -105,7 +105,7 @@ def prepare_series_check_output( """ if ignore_na: isna = ( - check_obj.isna().any(axis="columns") + check...
openfun__marsha-1250
Allow instructors to publish their video publicly ## Feature Request **Is your feature request related to a problem or unsupported use case? Please describe.** We want instructors to be able to publish their video publicly. At the moment, the flag is only accessible via the Django admin interface. **Describe ...
[ { "content": "\"\"\"Structure of Video related models API responses with Django Rest Framework serializers.\"\"\"\nfrom datetime import timedelta\nfrom urllib.parse import quote_plus\n\nfrom django.conf import settings\nfrom django.shortcuts import get_object_or_404\nfrom django.urls import reverse\nfrom django...
[ { "content": "\"\"\"Structure of Video related models API responses with Django Rest Framework serializers.\"\"\"\nfrom datetime import timedelta\nfrom urllib.parse import quote_plus\n\nfrom django.conf import settings\nfrom django.shortcuts import get_object_or_404\nfrom django.urls import reverse\nfrom django...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 59da34e4d4..81348b263b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Versioning](https://semver.org/spec/v2.0.0.html). - Add API endpoints to pair an external device to Jitsi live videos - Add a store in the frontend to control live layout - Add fronten...
Mailu__Mailu-840
Document the new setup utility Title says all
[ { "content": "import flask\nimport flask_bootstrap\nimport redis\nimport json\nimport os\nimport jinja2\nimport uuid\nimport string\nimport random\nimport ipaddress\nimport hashlib\n\n\nversion = os.getenv(\"this_version\")\nstatic_url_path = \"/\" + version + \"/static\"\napp = flask.Flask(__name__, static_url...
[ { "content": "import flask\nimport flask_bootstrap\nimport redis\nimport json\nimport os\nimport jinja2\nimport uuid\nimport string\nimport random\nimport ipaddress\nimport hashlib\n\n\nversion = os.getenv(\"this_version\", \"master\")\nstatic_url_path = \"/\" + version + \"/static\"\napp = flask.Flask(__name__...
diff --git a/docs/compose/.env b/docs/compose/.env index cf906b580..218b94d23 100644 --- a/docs/compose/.env +++ b/docs/compose/.env @@ -1,3 +1,5 @@ +# WARNING: this file is being deprecated over the new setup utility, found at https://setup.mailu.io + # Mailu main configuration file ## Most configuration variables c...
ansible__ansible-25551
wait_for missing import for os: "global name 'os' is not defined" ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME wait_for ##### ANSIBLE VERSION <!--- Paste verbatim output from “ansible --version” between quotes below --> ``` ansible 2.4.0 (devel 416d9774ce) last updated 2017/06/09 10:50:57 (GMT -400) ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Jeroen Hoekx <jeroen@hoekx.be>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation,...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Jeroen Hoekx <jeroen@hoekx.be>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation,...
diff --git a/lib/ansible/modules/utilities/logic/wait_for.py b/lib/ansible/modules/utilities/logic/wait_for.py index 9fe7bcbbd416a0..083e672bfe1206 100644 --- a/lib/ansible/modules/utilities/logic/wait_for.py +++ b/lib/ansible/modules/utilities/logic/wait_for.py @@ -183,6 +183,7 @@ from ansible.module_utils.basic im...
ktbyers__netmiko-2037
ssh_autodetect.py fails to detect Dell OS9 devices I found issues with Netmiko ssh_autodetect.py feature with Dell OS9 (or dell_force10) switches but this same issues might appear with other vendor OSs as well. I'm asking for the comments and ideas for the best possible implementation. The first issue is that the ss...
[ { "content": "\"\"\"\nThe ssh_autodetect module is used to auto-detect the netmiko device_type to use to further initiate\na new SSH connection with a remote host. This auto-detection is based on a unique class called\n**SSHDetect**.\n\nNotes\n-----\n\nThe **SSHDetect** class is instantiated using the same para...
[ { "content": "\"\"\"\nThe ssh_autodetect module is used to auto-detect the netmiko device_type to use to further initiate\na new SSH connection with a remote host. This auto-detection is based on a unique class called\n**SSHDetect**.\n\nNotes\n-----\n\nThe **SSHDetect** class is instantiated using the same para...
diff --git a/netmiko/ssh_autodetect.py b/netmiko/ssh_autodetect.py index 9b1f96d26..971570244 100644 --- a/netmiko/ssh_autodetect.py +++ b/netmiko/ssh_autodetect.py @@ -101,7 +101,7 @@ }, "dell_force10": { "cmd": "show version", - "search_patterns": [r"S4048-ON"], + "search_patterns": [...
chainer__chainer-3204
VariableNode.shape is None although Parameter.initialize is called. The following code returns `None` with the latest version of Chainer. (3.0.0b1, 034c4c596) ```py a = chainer.Parameter() a.initialize((1, 1)) print(a.node.shape) # returns None ``` It causes an internal error by running the following code. ...
[ { "content": "import collections\nimport copy\nimport heapq\nimport traceback\nimport warnings\nimport weakref\n\nimport numpy\n\nimport chainer\nfrom chainer import cuda\nfrom chainer import initializers\nfrom chainer.initializers import constant\nfrom chainer.utils import argument\n\n\ndef _check_grad_type(fu...
[ { "content": "import collections\nimport copy\nimport heapq\nimport traceback\nimport warnings\nimport weakref\n\nimport numpy\n\nimport chainer\nfrom chainer import cuda\nfrom chainer import initializers\nfrom chainer.initializers import constant\nfrom chainer.utils import argument\n\n\ndef _check_grad_type(fu...
diff --git a/chainer/variable.py b/chainer/variable.py index e0050d20c3ac..680b810d3aa1 100644 --- a/chainer/variable.py +++ b/chainer/variable.py @@ -1189,7 +1189,7 @@ def initialize(self, shape): grad = None if ginit is None else initializers.generate_array( ginit, shape, xp) - ...
certbot__certbot-9561
docs: generated man pages sticks everything under NAME ## My operating system is (include version): FreeBSD ## I installed Certbot with (snap, OS package manager, pip, certbot-auto, etc): i didn't, really, i was just looking for a man page on https://man.freebsd.org when I noticed this ## I ran this command...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Certbot documentation build configuration file, created by\n# sphinx-quickstart on Sun Nov 23 20:35:21 2014.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in th...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Certbot documentation build configuration file, created by\n# sphinx-quickstart on Sun Nov 23 20:35:21 2014.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in th...
diff --git a/certbot/docs/conf.py b/certbot/docs/conf.py index de9e287fc03..5102e7a1e39 100644 --- a/certbot/docs/conf.py +++ b/certbot/docs/conf.py @@ -286,7 +286,7 @@ man_pages = [ ('index', 'certbot', u'Certbot Documentation', [project], 7), - ('man/certbot', 'certbot', u'certbot script documentation'...
django-cms__django-filer-486
[Django>=1.7] FilerFolderField admin widget hidden If you use Django 1.7 and have a FilerFolderField in a model, the corresponding admin widget will not show up. That’s happening since django/django@dc3d2ac98c1bcfad74d3e9523caf07e7e9fb15aa. In `fieldset.html`, a `hidden` class is added to a form row if all the contain...
[ { "content": "#-*- coding: utf-8 -*-\nfrom django.template.loader import render_to_string\nimport inspect\nimport warnings\nfrom django import forms\nfrom django.conf import settings\nfrom django.contrib.admin.widgets import ForeignKeyRawIdWidget\nfrom django.contrib.admin.sites import site\nfrom django.core.ur...
[ { "content": "#-*- coding: utf-8 -*-\nfrom django.template.loader import render_to_string\nimport inspect\nimport warnings\nfrom django import forms\nfrom django.conf import settings\nfrom django.contrib.admin.widgets import ForeignKeyRawIdWidget\nfrom django.contrib.admin.sites import site\nfrom django.core.ur...
diff --git a/filer/fields/folder.py b/filer/fields/folder.py index fdd3c7f0f..ac5b5050d 100644 --- a/filer/fields/folder.py +++ b/filer/fields/folder.py @@ -18,7 +18,6 @@ class AdminFolderWidget(ForeignKeyRawIdWidget): choices = None input_type = 'hidden' - is_hidden = True def render(self, name, v...
interlegis__sapl-1513
Problema ao apagar dados legados de ExpedienteSessaoPlenaria O campo txt_expediente pode possuir valores com tags em HTML, o que prejudica a formatação da string sql de delete por contas das aspas duplas.
[ { "content": "import re\nfrom datetime import date\nfrom functools import lru_cache\nfrom subprocess import PIPE, call\n\nimport pkg_resources\nimport reversion\nimport yaml\nfrom django.apps import apps\nfrom django.apps.config import AppConfig\nfrom django.contrib.auth import get_user_model\nfrom django.contr...
[ { "content": "import re\nfrom datetime import date\nfrom functools import lru_cache\nfrom subprocess import PIPE, call\n\nimport pkg_resources\nimport reversion\nimport yaml\nfrom django.apps import apps\nfrom django.apps.config import AppConfig\nfrom django.contrib.auth import get_user_model\nfrom django.contr...
diff --git a/sapl/legacy/migration.py b/sapl/legacy/migration.py index d34cf935a..e9d4f73b1 100644 --- a/sapl/legacy/migration.py +++ b/sapl/legacy/migration.py @@ -259,6 +259,9 @@ def excluir_registrovotacao_duplicados(): def delete_old(legacy_model, cols_values): + # ajuste necessário por conta de cósigos htm...
iterative__dvc-2364
status: change nothing to reproduce message If I use DVC only to version data/models and don't care about pipelines, this message: `Pipelines are up to date. Nothing to reproduce.` looks really strange. Let's change it to something more generic: `Data and pipelines are up to date.` or something similar...
[ { "content": "from __future__ import unicode_literals\n\nimport logging\n\nfrom dvc.command.data_sync import CmdDataBase\nfrom dvc.utils.compat import str\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass CmdDataStatus(CmdDataBase):\n STATUS_LEN = 20\n STATUS_INDENT = \"\\t\"\n UP_TO_DATE_MSG = \"Pi...
[ { "content": "from __future__ import unicode_literals\n\nimport logging\n\nfrom dvc.command.data_sync import CmdDataBase\nfrom dvc.utils.compat import str\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass CmdDataStatus(CmdDataBase):\n STATUS_LEN = 20\n STATUS_INDENT = \"\\t\"\n UP_TO_DATE_MSG = \"Da...
diff --git a/dvc/command/status.py b/dvc/command/status.py index ecb6082f25..9f6c90ab0a 100644 --- a/dvc/command/status.py +++ b/dvc/command/status.py @@ -12,7 +12,7 @@ class CmdDataStatus(CmdDataBase): STATUS_LEN = 20 STATUS_INDENT = "\t" - UP_TO_DATE_MSG = "Pipelines are up to date. Nothing to reproduce...
pytorch__vision-6883
deepcopying retinanet fails ### 🐛 Describe the bug Deepcoping retinanet fails ```py from torchvision.models.detection.retinanet import retinanet_resnet50_fpn from torchvision.models.resnet import ResNet50_Weights from copy import deepcopy from torch import nn class RetinaNet(nn.Module): def __init__(...
[ { "content": "import importlib\nimport inspect\nimport sys\nfrom dataclasses import dataclass, fields\nfrom inspect import signature\nfrom types import ModuleType\nfrom typing import Any, Callable, cast, Dict, List, Mapping, Optional, TypeVar, Union\n\nfrom torch import nn\n\nfrom torchvision._utils import StrE...
[ { "content": "import importlib\nimport inspect\nimport sys\nfrom dataclasses import dataclass, fields\nfrom inspect import signature\nfrom types import ModuleType\nfrom typing import Any, Callable, cast, Dict, List, Mapping, Optional, TypeVar, Union\n\nfrom torch import nn\n\nfrom torchvision._utils import StrE...
diff --git a/test/test_extended_models.py b/test/test_extended_models.py index c467564c9c4..2cd8a568113 100644 --- a/test/test_extended_models.py +++ b/test/test_extended_models.py @@ -1,3 +1,4 @@ +import copy import os import pytest @@ -59,6 +60,25 @@ def test_get_model_weights(name, weight): assert models.ge...
ManimCommunity__manim-907
Sound in manimce I want to add sound to my video in manimce like manim by 3b1b I use the following code -: `self.add_sound(" sound file name in assets folder", gain = value)` But it's giving an error in manimce ![20210102172136](https://user-images.githubusercontent.com/76893489/103471739-ab14a200-4da9-11...
[ { "content": "\"\"\"Basic canvas for animations.\"\"\"\n\n\n__all__ = [\"Scene\"]\n\n\nimport inspect\nimport random\nimport warnings\nimport platform\nimport copy\nimport string\nimport types\n\nfrom tqdm import tqdm\nimport numpy as np\n\nfrom .. import config, logger\nfrom ..animation.animation import Animat...
[ { "content": "\"\"\"Basic canvas for animations.\"\"\"\n\n\n__all__ = [\"Scene\"]\n\n\nimport inspect\nimport random\nimport warnings\nimport platform\nimport copy\nimport string\nimport types\n\nfrom tqdm import tqdm\nimport numpy as np\n\nfrom .. import config, logger\nfrom ..animation.animation import Animat...
diff --git a/manim/scene/scene.py b/manim/scene/scene.py index 9110b54fd1..11e42c8de4 100644 --- a/manim/scene/scene.py +++ b/manim/scene/scene.py @@ -880,5 +880,5 @@ def add_sound(self, sound_file, time_offset=0, gain=None, **kwargs): """ if self.renderer.skip_animations: return - ...
benoitc__gunicorn-1654
Access log not emitted when using `logconfig_dict` Using the unreleased version from `master`, HTTP requests do not create log records in the logger `gunicorn.access` when using the new `logconfig_dict`. See relevant snippet from `glogging.py`: ```python def access(self, resp, req, environ, request_time): ...
[ { "content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\nimport base64\nimport binascii\nimport time\nimport logging\nlogging.Logger.manager.emittedNoHandlerWarning = 1\nfrom logging.config import fileConfig\ntry:\n fro...
[ { "content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\nimport base64\nimport binascii\nimport time\nimport logging\nlogging.Logger.manager.emittedNoHandlerWarning = 1\nfrom logging.config import fileConfig\ntry:\n fro...
diff --git a/gunicorn/glogging.py b/gunicorn/glogging.py index f5d4cfd0d..88f0c1336 100644 --- a/gunicorn/glogging.py +++ b/gunicorn/glogging.py @@ -339,6 +339,7 @@ def access(self, resp, req, environ, request_time): """ if not (self.cfg.accesslog or self.cfg.logconfig or + self.cfg.logcon...
cisagov__manage.get.gov-959
Fix for checkbox accessibility no longer working ### Current Behavior Checkboxes in django admin superuser no longer generated with an associated label. ### Expected Behavior Expect to see accessible checkboxes in django admin, no missing columns in either superuser or staff views. ### Steps to Reproduce 1. Log in...
[ { "content": "from django import template\nimport re\n\nregister = template.Library()\n\n\n@register.filter(name=\"extract_value\")\ndef extract_value(html_input):\n match = re.search(r'value=\"([^\"]*)\"', html_input)\n if match:\n return match.group(1)\n return \"\"\n\n\n@register.filter\ndef ...
[ { "content": "from django import template\nimport re\n\nregister = template.Library()\n\n\n@register.filter(name=\"extract_value\")\ndef extract_value(html_input):\n match = re.search(r'value=\"([^\"]*)\"', html_input)\n if match:\n return match.group(1)\n return \"\"\n\n\n@register.filter\ndef ...
diff --git a/src/registrar/templates/admin/change_list_results.html b/src/registrar/templates/admin/change_list_results.html index 9ee3f9f59..831350888 100644 --- a/src/registrar/templates/admin/change_list_results.html +++ b/src/registrar/templates/admin/change_list_results.html @@ -17,7 +17,7 @@ <thead> <tr> -{% ...
pymedusa__Medusa-9537
Error message "Failed parsing provider" & "list index out of range" **Describe the bug** Error message: `2020-12-05 07:52:25 ERROR SEARCHQUEUE-BACKLOG-260586 :: [Beyond-HD] :: [ce68da5] Failed parsing provider. Traceback (most recent call last): File "/Applications/Medusa/medusa/providers/torrent/html/beyond...
[ { "content": "# coding=utf-8\n\n\"\"\"Provider code for Beyond-hd.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\n\nfrom medusa import tv\nfrom medusa.bs4_parser import BS4Parser\nfrom medusa.helper.common import convert_size\nfrom medusa.logger.adapters.style import BraceAdapter\nfrom medu...
[ { "content": "# coding=utf-8\n\n\"\"\"Provider code for Beyond-hd.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\n\nfrom medusa import tv\nfrom medusa.bs4_parser import BS4Parser\nfrom medusa.helper.common import convert_size\nfrom medusa.logger.adapters.style import BraceAdapter\nfrom medu...
diff --git a/medusa/providers/torrent/html/beyondhd.py b/medusa/providers/torrent/html/beyondhd.py index 47be8c1a10..3978d9ef4c 100644 --- a/medusa/providers/torrent/html/beyondhd.py +++ b/medusa/providers/torrent/html/beyondhd.py @@ -121,7 +121,7 @@ def parse(self, data, mode): cells = result('td') ...
pyca__cryptography-8318
Incorrect docstrings in x25519 and x448 `.public_key()` methods See: https://github.com/pyca/cryptography/blob/127a2860740c77f45362e68e0ed7d2d108a39033/src/cryptography/hazmat/primitives/asymmetric/x25519.py#L60-L64 https://github.com/pyca/cryptography/blob/127a2860740c77f45362e68e0ed7d2d108a39033/src/cryptograph...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\n\nimport abc\n\nfrom cryptography.exceptions import UnsupportedAlgorithm, _Reasons\nfrom cryptography.hazmat.prim...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\n\nimport abc\n\nfrom cryptography.exceptions import UnsupportedAlgorithm, _Reasons\nfrom cryptography.hazmat.prim...
diff --git a/src/cryptography/hazmat/primitives/asymmetric/x25519.py b/src/cryptography/hazmat/primitives/asymmetric/x25519.py index 690af78c2152..d1347b883f37 100644 --- a/src/cryptography/hazmat/primitives/asymmetric/x25519.py +++ b/src/cryptography/hazmat/primitives/asymmetric/x25519.py @@ -60,7 +60,7 @@ def from_pr...
huggingface__text-generation-inference-1617
Incorrectly multiplied timeout by 60 in the asynchronous client ### System Info I'm testing TGI using Docker. Below is the exact command I'm utilizing: ```console docker run --gpus '"device=1,2"' --shm-size 1g -p 8000:80 -v ~/tgi-test:/data ghcr.io/huggingface/text-generation-inference:1.4 --model-id mistralai/Mis...
[ { "content": "import json\nimport requests\n\nfrom aiohttp import ClientSession, ClientTimeout\nfrom pydantic import ValidationError\nfrom typing import Dict, Optional, List, AsyncIterator, Iterator, Union\n\nfrom text_generation.types import (\n StreamResponse,\n Response,\n Request,\n Parameters,\...
[ { "content": "import json\nimport requests\n\nfrom aiohttp import ClientSession, ClientTimeout\nfrom pydantic import ValidationError\nfrom typing import Dict, Optional, List, AsyncIterator, Iterator, Union\n\nfrom text_generation.types import (\n StreamResponse,\n Response,\n Request,\n Parameters,\...
diff --git a/clients/python/text_generation/client.py b/clients/python/text_generation/client.py index 09660de3cd9..e1de253b780 100644 --- a/clients/python/text_generation/client.py +++ b/clients/python/text_generation/client.py @@ -424,7 +424,7 @@ def __init__( self.base_url = base_url self.headers =...
mkdocs__mkdocs-1998
Fix simple typo: seperate -> separate # Issue Type [x] Bug (Typo) # Steps to Replicate 1. Examine mkdocs/commands/serve.py. 2. Search for `seperate`. # Expected Behaviour 1. Should read `separate`.
[ { "content": "import logging\nimport shutil\nimport tempfile\nimport sys\n\nfrom os.path import isfile, join\nfrom mkdocs.commands.build import build\nfrom mkdocs.config import load_config\n\nlog = logging.getLogger(__name__)\n\n\ndef _init_asyncio_patch():\n \"\"\"\n Select compatible event loop for Torn...
[ { "content": "import logging\nimport shutil\nimport tempfile\nimport sys\n\nfrom os.path import isfile, join\nfrom mkdocs.commands.build import build\nfrom mkdocs.config import load_config\n\nlog = logging.getLogger(__name__)\n\n\ndef _init_asyncio_patch():\n \"\"\"\n Select compatible event loop for Torn...
diff --git a/mkdocs/commands/serve.py b/mkdocs/commands/serve.py index ba716776a8..21b7ca6c1e 100644 --- a/mkdocs/commands/serve.py +++ b/mkdocs/commands/serve.py @@ -80,7 +80,7 @@ def get_web_handlers(self, script): def _static_server(host, port, site_dir): - # Importing here to seperate the code paths from th...
scrapy__scrapy-4585
Downloadable documentation is missing for versions 2.0 and 2.1 on readthedocs.org For some reason downloadable documentation on https://readthedocs.org/projects/scrapy/downloads/ is available only up to version 1.8. That's a minor issue, but I think that I'm not the only one who prefers to read technical papers in t...
[ { "content": "# Scrapy documentation build configuration file, created by\n# sphinx-quickstart on Mon Nov 24 12:02:52 2008.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# The contents of this file are pickled, so don't put values in the namespace\n# that aren't pickle...
[ { "content": "# Scrapy documentation build configuration file, created by\n# sphinx-quickstart on Mon Nov 24 12:02:52 2008.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# The contents of this file are pickled, so don't put values in the namespace\n# that aren't pickle...
diff --git a/.readthedocs.yml b/.readthedocs.yml index 17eba34f337..e4d3f02cc3f 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,4 +1,5 @@ version: 2 +formats: all sphinx: configuration: docs/conf.py fail_on_warning: true diff --git a/docs/conf.py b/docs/conf.py index 8ab38a090c3..468c1d1901b 100644 -...
pre-commit__pre-commit-1713
BUG - hooks not working on windows 10, when user account name contains non-ascii characters When user account name contains non-ascii characters such as 'š', such that python executable ends up for example in C:\Users\john.š\\.cache\pre-commit\repo\py_env-python3.8\Scripts\python.exe, when committing to the git reposit...
[ { "content": "import contextlib\nimport functools\nimport os\nimport sys\nfrom typing import Dict\nfrom typing import Generator\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Tuple\n\nimport pre_commit.constants as C\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.e...
[ { "content": "import contextlib\nimport functools\nimport os\nimport sys\nfrom typing import Dict\nfrom typing import Generator\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Tuple\n\nimport pre_commit.constants as C\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.e...
diff --git a/pre_commit/languages/python.py b/pre_commit/languages/python.py index 65f521cdc..43b728082 100644 --- a/pre_commit/languages/python.py +++ b/pre_commit/languages/python.py @@ -36,7 +36,7 @@ def _version_info(exe: str) -> str: def _read_pyvenv_cfg(filename: str) -> Dict[str, str]: ret = {} - with...
zigpy__zha-device-handlers-342
Update zigpy version to use the new (old module) name for zigpy? @dmulcahey Ready to update zigpy version to use new (old) module name without -homeassistant suffix? @Adminiuga in the PR https://github.com/zigpy/zigpy/pull/363 changed the zigpy module name back to just "zigpy" (from "zigpy-homeassistant") https:/...
[ { "content": "\"\"\"Setup module for ZHAQuirks.\"\"\"\n\nfrom setuptools import find_packages, setup\n\nVERSION = \"0.0.38\"\n\n\ndef readme():\n \"\"\"Print long description.\"\"\"\n with open(\"README.md\") as f:\n return f.read()\n\n\nsetup(\n name=\"zha-quirks\",\n version=VERSION,\n d...
[ { "content": "\"\"\"Setup module for ZHAQuirks.\"\"\"\n\nfrom setuptools import find_packages, setup\n\nVERSION = \"0.0.38\"\n\n\ndef readme():\n \"\"\"Print long description.\"\"\"\n with open(\"README.md\") as f:\n return f.read()\n\n\nsetup(\n name=\"zha-quirks\",\n version=VERSION,\n d...
diff --git a/setup.py b/setup.py index 99bd58aeea..1c5e45900e 100644 --- a/setup.py +++ b/setup.py @@ -24,6 +24,6 @@ def readme(): keywords="zha quirks homeassistant hass", packages=find_packages(exclude=["*.tests"]), python_requires=">=3", - install_requires=["zigpy-homeassistant>=0.18.1"], + inst...
emissary-ingress__emissary-515
'unicode' is an undefined name in Python 3 flake8 testing of https://github.com/datawire/ambassador on Python 3.6.3 2.28s$ time flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__ ``` ./ambassador/ambassador_diag/envoy.py:223:45: F821 undefined name 'active_cluster_map' ...
[ { "content": "#!/usr/bin/env python\n\nimport sys\n\nimport json\nimport logging\nimport os\nimport re\nimport subprocess\n\nfrom semantic_version import Version\nfrom git import Repo\n\ndry_run = True\n\nclass VersionedBranch (object):\n \"\"\" A branch for which we're going to wrangle versions based on tag...
[ { "content": "#!/usr/bin/env python\n\nimport sys\n\nimport json\nimport logging\nimport os\nimport re\nimport subprocess\n\nfrom semantic_version import Version\nfrom git import Repo\n\ndry_run = True\n\nclass VersionedBranch (object):\n \"\"\" A branch for which we're going to wrangle versions based on tag...
diff --git a/scripts/versioner.py b/scripts/versioner.py index 52c80c0091..bc796e10e3 100755 --- a/scripts/versioner.py +++ b/scripts/versioner.py @@ -100,7 +100,7 @@ def __unicode__(self): self.version, str(self.versioned_commit)[0:8])) def __str__(self): - return unicode(self) + ...
ManageIQ__integration_tests-8533
is_displayed for catalog all page is not working as expected Currently the is_display of catalog all page returns True even if the view is on Add catalog page.
[ { "content": "import attr\nfrom navmazing import NavigateToAttribute\nfrom navmazing import NavigateToSibling\nfrom widgetastic.utils import Parameter\nfrom widgetastic.widget import Text\nfrom widgetastic_patternfly import Button\nfrom widgetastic_patternfly import CandidateNotFound\nfrom widgetastic_patternfl...
[ { "content": "import attr\nfrom navmazing import NavigateToAttribute\nfrom navmazing import NavigateToSibling\nfrom widgetastic.utils import Parameter\nfrom widgetastic.widget import Text\nfrom widgetastic_patternfly import Button\nfrom widgetastic_patternfly import CandidateNotFound\nfrom widgetastic_patternfl...
diff --git a/cfme/services/catalogs/catalog.py b/cfme/services/catalogs/catalog.py index 6367d52997..f248e20199 100644 --- a/cfme/services/catalogs/catalog.py +++ b/cfme/services/catalogs/catalog.py @@ -49,6 +49,7 @@ def is_displayed(self): return ( self.in_explorer and self.catalogs....
flairNLP__flair-2170
Close log_handler after training is complete. **Describe the bug** We are removing the log_handler [here](https://github.com/flairNLP/flair/blob/master/flair/trainers/trainer.py#L633) but not closing the handler leading to `ResourceWarning: unclosed file <_io.BufferedReader name='training.log`. Hence we are not able ...
[ { "content": "import copy\nimport logging\nfrom pathlib import Path\nfrom typing import List, Union\nimport time\nimport datetime\nimport sys\nimport inspect\n\nimport torch\nfrom torch.optim.sgd import SGD\nfrom torch.utils.data.dataset import ConcatDataset\n\ntry:\n from apex import amp\nexcept ImportError...
[ { "content": "import copy\nimport logging\nfrom pathlib import Path\nfrom typing import List, Union\nimport time\nimport datetime\nimport sys\nimport inspect\n\nimport torch\nfrom torch.optim.sgd import SGD\nfrom torch.utils.data.dataset import ConcatDataset\n\ntry:\n from apex import amp\nexcept ImportError...
diff --git a/flair/trainers/trainer.py b/flair/trainers/trainer.py index 021ac53633..3b22478fbc 100644 --- a/flair/trainers/trainer.py +++ b/flair/trainers/trainer.py @@ -630,6 +630,8 @@ def train( final_score = 0 log.info("Test data not provided setting final score to 0") + log_handl...
ansible-collections__amazon.aws-1332
aws_rds inventory plugin does not return any results due to regression in 478022695b333043857a6929b350a2a3c07ae567 ### Summary aws_rds inventory plugin does not return any results due to regression in 478022695b333043857a6929b350a2a3c07ae567. This commit, ostensibly named "linting", has actually removed the followi...
[ { "content": "# Copyright (c) 2018 Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\nDOCUMENTATION = '''\nname: aws_rds\nshort_description: RDS instance inve...
[ { "content": "# Copyright (c) 2018 Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\nDOCUMENTATION = '''\nname: aws_rds\nshort_description: RDS instance inve...
diff --git a/changelogs/fragments/1304-aws_rds-config.yml b/changelogs/fragments/1304-aws_rds-config.yml new file mode 100644 index 00000000000..bd32f37f82b --- /dev/null +++ b/changelogs/fragments/1304-aws_rds-config.yml @@ -0,0 +1,2 @@ +bugfixes: +- aws_rds - fixes bug in RDS inventory plugin where config file was ig...
PlasmaPy__PlasmaPy-2506
Fix linkcheck GitHub Action along with minor updates to workflows #2490 ended up disabling the workflow dispatch option for doing a linkcheck. This PR reverts some of #2490 so that the linkcheck workflow does not attempt to run in PRs, and instead adds a workflow step for CI that does the linkcheck. I also took a m...
[ { "content": "\"\"\"\nVarious decorators to validate input/output arguments to functions.\n\"\"\"\n\n__all__ = [\"validate_class_attributes\", \"validate_quantities\", \"ValidateQuantities\"]\n\nimport functools\nimport inspect\nimport warnings\nfrom collections.abc import Iterable\nfrom typing import Any\n\nim...
[ { "content": "\"\"\"\nVarious decorators to validate input/output arguments to functions.\n\"\"\"\n\n__all__ = [\"validate_class_attributes\", \"validate_quantities\", \"ValidateQuantities\"]\n\nimport functools\nimport inspect\nimport warnings\nfrom collections.abc import Iterable\nfrom typing import Any\n\nim...
diff --git a/changelog/2506.bugfix.rst b/changelog/2506.bugfix.rst new file mode 100644 index 0000000000..ed7538f243 --- /dev/null +++ b/changelog/2506.bugfix.rst @@ -0,0 +1,2 @@ +- Enabled |validate_quantities| to be compatible with postponed evaluation of + annotations (see :pep:`563`). (:pr:`2479`) diff --git a/src...
getmoto__moto-1286
Resources in mentioned in cloud formation template is not getting created. Hi, I am creating security group through cloud formation template and then trying to retrieve that through boto client but it says that security group does not exists. If i create security group through command line then i am able to fetch it. ...
[ { "content": "from __future__ import unicode_literals\n\nfrom collections import defaultdict\n\nimport string\nimport random\nimport uuid\nfrom jinja2 import Template\n\nfrom moto.core import BaseBackend, BaseModel\n\n\nROUTE53_ID_CHOICE = string.ascii_uppercase + string.digits\n\n\ndef create_route53_zone_id()...
[ { "content": "from __future__ import unicode_literals\n\nfrom collections import defaultdict\n\nimport string\nimport random\nimport uuid\nfrom jinja2 import Template\n\nfrom moto.core import BaseBackend, BaseModel\n\n\nROUTE53_ID_CHOICE = string.ascii_uppercase + string.digits\n\n\ndef create_route53_zone_id()...
diff --git a/moto/route53/models.py b/moto/route53/models.py index d12f4ee7a803..f0e52086d508 100644 --- a/moto/route53/models.py +++ b/moto/route53/models.py @@ -209,7 +209,7 @@ def get_record_sets(self, type_filter, name_filter): @property def physical_resource_id(self): - return self.name + ...
googleapis__google-api-python-client-1125
Incorrect logging level for `oauth2client.contrib.locked_file` (ref #427) This is - as per request in the original #427 - a follow-up issue. The function documentation says: > Detects an appropriate cache module and returns it. Returns `googleapiclient.discovery_cache.base.Cache`, a cache object which is auto det...
[ { "content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
[ { "content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
diff --git a/googleapiclient/discovery_cache/__init__.py b/googleapiclient/discovery_cache/__init__.py index 455ff6224f2..197f6bc0a1a 100644 --- a/googleapiclient/discovery_cache/__init__.py +++ b/googleapiclient/discovery_cache/__init__.py @@ -44,6 +44,7 @@ def autodetect(): from . import file_cache ...
bokeh__bokeh-4792
docstring of ``add_tools`` not correct.
[ { "content": "\"\"\" Models for representing top-level plot objects.\n\n\"\"\"\nfrom __future__ import absolute_import\n\nfrom six import string_types\nimport warnings\n\nfrom ..core.query import find\nfrom ..core import validation\nfrom ..core.validation.errors import REQUIRED_RANGE\nfrom ..core.validation.war...
[ { "content": "\"\"\" Models for representing top-level plot objects.\n\n\"\"\"\nfrom __future__ import absolute_import\n\nfrom six import string_types\nimport warnings\n\nfrom ..core.query import find\nfrom ..core import validation\nfrom ..core.validation.errors import REQUIRED_RANGE\nfrom ..core.validation.war...
diff --git a/bokeh/models/plots.py b/bokeh/models/plots.py index 838d29ac46b..86a04895ba0 100644 --- a/bokeh/models/plots.py +++ b/bokeh/models/plots.py @@ -246,7 +246,7 @@ def add_layout(self, obj, place='center'): getattr(self, place).append(obj) def add_tools(self, *tools): - ''' Adds an t...
huggingface__accelerate-811
Error when pickling accelerated optimizers with PyTorch 1.13 ### System Info ```Shell $ pip list Package Version ------------------------ ---------- accelerate 0.13.2 numpy 1.23.4 nvidia-cublas-cu11 11.10.3.66 nvidia-cuda-nvrtc-cu11 11.7.99 nvidia-cud...
[ { "content": "# Copyright 2021 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 2021 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/accelerate/optimizer.py b/src/accelerate/optimizer.py index 4fad12c724e..d5eeef99a02 100644 --- a/src/accelerate/optimizer.py +++ b/src/accelerate/optimizer.py @@ -157,3 +157,9 @@ def is_overflow(self): def step_was_skipped(self): """Whether or not the optimizer step was skipped.""" ...
conan-io__conan-center-index-18494
[package] clickhouse-cpp/*: fPIC option is not respected In the recipe file fPIC option is always removed during configure stage, which can lead to not working static library.
[ { "content": "from conan import ConanFile\nfrom conan.tools.cmake import CMake, CMakeToolchain,CMakeDeps, cmake_layout\nfrom conan.tools.files import copy, get\nfrom conan.tools.build import check_min_cppstd\nfrom conan.errors import ConanInvalidConfiguration\nfrom conan.tools.scm import Version\nimport os\n\nr...
[ { "content": "from conan import ConanFile\nfrom conan.tools.cmake import CMake, CMakeToolchain,CMakeDeps, cmake_layout\nfrom conan.tools.files import copy, get\nfrom conan.tools.build import check_min_cppstd\nfrom conan.errors import ConanInvalidConfiguration\nfrom conan.tools.scm import Version\nimport os\n\nr...
diff --git a/recipes/clickhouse-cpp/all/conanfile.py b/recipes/clickhouse-cpp/all/conanfile.py index 9586c0240cbc1..442d24123399e 100644 --- a/recipes/clickhouse-cpp/all/conanfile.py +++ b/recipes/clickhouse-cpp/all/conanfile.py @@ -75,7 +75,8 @@ def config_options(self): del self.options.fPIC def c...
pyscript__pyscript-1064
Python Plugin Methods are Executed Twice The Python plugin methods appear to be getting called twice each. To recreate, run `make test-integration ARGS='-k test_execution_hooks --headed` and look at the console log. You'll see both `afterSetup` and `afterStartup` are logged twice. (The test passes because it checks tha...
[ { "content": "import ast\nimport asyncio\nimport base64\nimport html\nimport io\nimport re\nimport time\nfrom collections import namedtuple\nfrom textwrap import dedent\n\nimport js\n\ntry:\n from pyodide import create_proxy\nexcept ImportError:\n from pyodide.ffi import create_proxy\n\nloop = asyncio.get...
[ { "content": "import ast\nimport asyncio\nimport base64\nimport html\nimport io\nimport re\nimport time\nfrom collections import namedtuple\nfrom textwrap import dedent\n\nimport js\n\ntry:\n from pyodide import create_proxy\nexcept ImportError:\n from pyodide.ffi import create_proxy\n\nloop = asyncio.get...
diff --git a/pyscriptjs/src/python/pyscript.py b/pyscriptjs/src/python/pyscript.py index ec7dd5a8489..5c946c00745 100644 --- a/pyscriptjs/src/python/pyscript.py +++ b/pyscriptjs/src/python/pyscript.py @@ -497,7 +497,6 @@ def __init__(self, name=None): def init(self, app): self.app = app - self.ap...
mozilla__pontoon-3003
GetText check fails incorrectly on newline https://pontoon.mozilla.org/en-GB/all-projects/all-resources/?string=286055 If you copy the source string, an extra line is added at the back, and that fails the checks for GetText.
[ { "content": "from django import forms\nfrom django.contrib.postgres.forms import SimpleArrayField\n\nfrom pontoon.base.models import (\n Entity,\n Locale,\n)\n\n\nclass CreateTranslationForm(forms.Form):\n \"\"\"\n Form for parameters to the `entities` view.\n \"\"\"\n\n entity = forms.Intege...
[ { "content": "from django import forms\nfrom django.contrib.postgres.forms import SimpleArrayField\n\nfrom pontoon.base.models import (\n Entity,\n Locale,\n)\n\n\nclass CreateTranslationForm(forms.Form):\n \"\"\"\n Form for parameters to the `entities` view.\n \"\"\"\n\n entity = forms.Intege...
diff --git a/pontoon/translations/forms.py b/pontoon/translations/forms.py index bc2371e765..125c8e4122 100644 --- a/pontoon/translations/forms.py +++ b/pontoon/translations/forms.py @@ -51,5 +51,8 @@ def clean_plural_form(self): return None return self.cleaned_data["plural_form"] + def clean...
conda__conda-build-862
Metadata parse failure when building apsw pypi package To generate the output below, I added some print output to `conda_build.metadata.yamlize`: ``` python @memoized def yamlize(data): print(72*'*') print(data) try: return yaml.load(data, Loader=BaseLoader) ``` Here is the build failure: ``` bas...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport os\nimport re\nimport sys\nfrom os.path import isdir, isfile, join\n\nfrom conda.compat import iteritems, PY3, text_type\nfrom conda.utils import memoized, md5_file\nimport conda.config as cc\nfrom conda.resolve import Matc...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport os\nimport re\nimport sys\nfrom os.path import isdir, isfile, join\n\nfrom conda.compat import iteritems, PY3, text_type\nfrom conda.utils import memoized, md5_file\nimport conda.config as cc\nfrom conda.resolve import Matc...
diff --git a/conda_build/metadata.py b/conda_build/metadata.py index cd8329a021..d737e6d6c4 100644 --- a/conda_build/metadata.py +++ b/conda_build/metadata.py @@ -97,7 +97,7 @@ def select_lines(data, namespace): def yamlize(data): try: return yaml.load(data, Loader=BaseLoader) - except yaml.parser.Par...
Nitrate__Nitrate-337
Upgrade django-tinymce to 2.7.0 As per subject.
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\n\nwith open('VERSION.txt', 'r') as f:\n pkg_version = f.read().strip()\n\n\ndef get_long_description():\n with open('README.rst', 'r') as f:\n return f.read()\n\n\ninstall_requires = [\n 'PyMySQL == 0.7.11',\...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\n\nwith open('VERSION.txt', 'r') as f:\n pkg_version = f.read().strip()\n\n\ndef get_long_description():\n with open('README.rst', 'r') as f:\n return f.read()\n\n\ninstall_requires = [\n 'PyMySQL == 0.7.11',\...
diff --git a/requirements.txt b/requirements.txt index 631796a5..ae527117 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,63 +1,67 @@ -# Frozen on May 26, 2018 -alabaster==0.7.10 -amqp==2.2.2 -atomicwrites==1.1.5 -attrs==18.1.0 -Babel==2.5.3 -beautifulsoup4==4.6.0 -billiard==3.5.0.3 +alabaster==0.7.12 +amqp=...
qtile__qtile-1604
libqtile utils.py:safe_import():L192 Unmet dependencies for optional Widget: '.widget.launchbar.LaunchBar', No module named 'xdg.IconTheme' It seems there's confusion about the `xdg` dependency that is used. The code expects [PyXDG](https://freedesktop.org/wiki/Software/pyxdg/) while the actual installed version is [x...
[ { "content": "# Copyright (c) 2014 Tycho Andersen\n# Copyright (c) 2014 dequis\n# Copyright (c) 2014-2015 Joseph Razik\n# Copyright (c) 2014 Sean Vig\n# Copyright (c) 2015 reus\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation fil...
[ { "content": "# Copyright (c) 2014 Tycho Andersen\n# Copyright (c) 2014 dequis\n# Copyright (c) 2014-2015 Joseph Razik\n# Copyright (c) 2014 Sean Vig\n# Copyright (c) 2015 reus\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation fil...
diff --git a/libqtile/widget/launchbar.py b/libqtile/widget/launchbar.py index 838126a58f..cda36dc686 100644 --- a/libqtile/widget/launchbar.py +++ b/libqtile/widget/launchbar.py @@ -52,6 +52,10 @@ class LaunchBar(base._Widget): """A widget that display icons to launch the associated command + Widget require...
cython__cython-6246
[BUG] Limited API: cythonize() method drops py_limited_api=True ### Describe the bug In a setup.py file, if you use an explicit setuptools Extension with `py_limited_api=True`, then pass this to the cythonize() method, the resulting .so files incorrectly include a `.cpython-38-x86_64-linux-gnu.so` suffix (or similar)...
[ { "content": "import cython\n\nimport collections\nimport os\nimport re, sys, time\nfrom glob import iglob\nfrom io import StringIO\nfrom os.path import relpath as _relpath\nfrom .Cache import Cache, FingerprintFlags\n\nfrom collections.abc import Iterable\n\ntry:\n import pythran\nexcept:\n pythran = Non...
[ { "content": "import cython\n\nimport collections\nimport os\nimport re, sys, time\nfrom glob import iglob\nfrom io import StringIO\nfrom os.path import relpath as _relpath\nfrom .Cache import Cache, FingerprintFlags\n\nfrom collections.abc import Iterable\n\ntry:\n import pythran\nexcept:\n pythran = Non...
diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py index d75a103b25f..a791fc4b2a1 100644 --- a/Cython/Build/Dependencies.py +++ b/Cython/Build/Dependencies.py @@ -705,6 +705,8 @@ def default_create_extension(template, kwds): t = template.__class__ ext = t(**kwds) + if hasattr(templa...
ipython__ipython-2280
SSH passwordless check with OpenSSH checks for the wrong thing The pattern passed to pexpect is '[Ppassword]:', which looks for any of those letters followed by ':', and not, as the intention seems to be, for 'Password:'. The correct pattern is '[Pp]assword:'. This is at IPython/external/ssh/tunnel.py:100.
[ { "content": "\"\"\"Basic ssh tunnel utilities, and convenience functions for tunneling\nzeromq connections.\n\nAuthors\n-------\n* Min RK\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (C) 2010-2011 The IPython Development Team\n#\n# Distributed under ...
[ { "content": "\"\"\"Basic ssh tunnel utilities, and convenience functions for tunneling\nzeromq connections.\n\nAuthors\n-------\n* Min RK\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (C) 2010-2011 The IPython Development Team\n#\n# Distributed under ...
diff --git a/IPython/external/ssh/tunnel.py b/IPython/external/ssh/tunnel.py index 4fce68c008b..9ae2311fa69 100644 --- a/IPython/external/ssh/tunnel.py +++ b/IPython/external/ssh/tunnel.py @@ -97,7 +97,7 @@ def _try_passwordless_openssh(server, keyfile): p = pexpect.spawn(cmd) while True: try: - ...
google__mobly-578
yaml.load_all is unsafe with default loader tests/mobly/output_test.py::OutputTest::test_teardown_class_output T:\src\github\mobly\tests\mobly\output_test.py:258: YAMLLoadWarning: *** Calling yaml.load_all() without Loader=... is deprecated. *** The default Loader is unsafe. *** Please read https://m...
[ { "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/mobly/config_parser.py b/mobly/config_parser.py index 2278ca6a..d26f34ba 100644 --- a/mobly/config_parser.py +++ b/mobly/config_parser.py @@ -152,7 +152,7 @@ def _load_config_file(path): A dict that represents info in the config file. """ with io.open(utils.abs_path(path), 'r', encoding=...
kivy__python-for-android-1351
Python2 Build fails with make: *** [Makefile:426: sharedmods] Error 139 # Python version: 3.6 # OS: Arch Linux # python-for-android version: 0.6.0 The command I use to build is: ` p4a apk --private ~/Projects/Python/Mobile_Apps/BeerApp/ --package=org.drink.recommendations --name "Drink Recommendations...
[ { "content": "\nfrom pythonforandroid.toolchain import Recipe, shprint, current_directory, info, warning\nfrom os.path import join, exists\nimport os\nimport sh\n\n\nclass Hostpython2Recipe(Recipe):\n version = '2.7.2'\n url = 'https://python.org/ftp/python/{version}/Python-{version}.tar.bz2'\n name = ...
[ { "content": "\nfrom pythonforandroid.toolchain import Recipe, shprint, current_directory, info, warning\nfrom os.path import join, exists\nfrom os import chdir\nimport os\nimport sh\n\n\nclass Hostpython2Recipe(Recipe):\n version = '2.7.2'\n url = 'https://python.org/ftp/python/{version}/Python-{version}...
diff --git a/pythonforandroid/recipes/hostpython2/__init__.py b/pythonforandroid/recipes/hostpython2/__init__.py index 5a5b362f59..dc1ccb4cbc 100644 --- a/pythonforandroid/recipes/hostpython2/__init__.py +++ b/pythonforandroid/recipes/hostpython2/__init__.py @@ -10,6 +10,7 @@ class Hostpython2Recipe(Recipe): versi...
DistrictDataLabs__yellowbrick-1162
pytest-runner is deprecated pytest-runner is deprecated: https://github.com/pytest-dev/pytest-runner/#deprecation-notice If I find time, then I can make a PR, but I thought I'd let you know in the meantime.
[ { "content": "#!/usr/bin/env python\n# setup\n# Setup script for installing yellowbrick\n#\n# Author: Benjamin Bengfort\n# Created: Wed May 18 14:33:26 2016 -0400\n#\n# Copyright (C) 2016 The scikit-yb developers\n# For license information, see LICENSE.txt and NOTICE.md\n#\n# ID: setup.py [c4f3ba7] benjamin@...
[ { "content": "#!/usr/bin/env python\n# setup\n# Setup script for installing yellowbrick\n#\n# Author: Benjamin Bengfort\n# Created: Wed May 18 14:33:26 2016 -0400\n#\n# Copyright (C) 2016 The scikit-yb developers\n# For license information, see LICENSE.txt and NOTICE.md\n#\n# ID: setup.py [c4f3ba7] benjamin@...
diff --git a/Makefile b/Makefile index d8ba922f9..4cc479eff 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ clean: # Targets for testing test: - python setup.py test + pytest # Publish to gh-pages publish: @@ -48,3 +48,4 @@ install: deploy: python setup.py register twine upload dist/* + diff --git a...
agconti__cookiecutter-django-rest-250
Update Managers to Admins in `common.py`
[ { "content": "import os\nfrom os.path import join\n\nfrom configurations import Configuration, values\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\nclass Common(Configuration):\n\n INSTALLED_APPS = (\n 'django.contrib.admin',\n 'django.contrib.auth',\n 'd...
[ { "content": "import os\nfrom os.path import join\n\nfrom configurations import Configuration, values\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\nclass Common(Configuration):\n\n INSTALLED_APPS = (\n 'django.contrib.admin',\n 'django.contrib.auth',\n 'd...
diff --git a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/common.py b/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/common.py index 9df3857eb..3b7996df6 100755 --- a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/common.py +++ b/{{cookiecu...
RedHatInsights__insights-core-2890
first_file in insights_archive isn't bound to the right context The first_file helper in [insights_archive.py](https://github.com/RedHatInsights/insights-core/blob/master/insights/specs/insights_archive.py#L7) isn't bound to the `HostArchiveContext`, so it will try to fire for any context that has a filesystem root.
[ { "content": "from insights.core.spec_factory import glob_file, simple_file, head, first_file\nfrom functools import partial\nfrom insights.core.context import HostArchiveContext\nfrom insights.specs import Specs\n\nsimple_file = partial(simple_file, context=HostArchiveContext)\nglob_file = partial(glob_file, c...
[ { "content": "from insights.core.spec_factory import glob_file, simple_file, head, first_file\nfrom functools import partial\nfrom insights.core.context import HostArchiveContext\nfrom insights.specs import Specs\n\nsimple_file = partial(simple_file, context=HostArchiveContext)\nglob_file = partial(glob_file, c...
diff --git a/insights/specs/insights_archive.py b/insights/specs/insights_archive.py index 068cf5af35..2e88c7ac4d 100644 --- a/insights/specs/insights_archive.py +++ b/insights/specs/insights_archive.py @@ -5,6 +5,7 @@ simple_file = partial(simple_file, context=HostArchiveContext) glob_file = partial(glob_file, con...
matrix-org__synapse-13326
Ubuntu 21.10 (Impish Indri) has reached end of life as of July 14, 2022 See https://lists.ubuntu.com/archives/ubuntu-announce/2022-July/000281.html I don't think we have good docs for removing a distribution, but should be the opposite of [gitlab.matrix.org/new-vector/internal/-/wikis/Synapse-Debian-Packages#adding-...
[ { "content": "#!/usr/bin/env python3\n\n# Build the Debian packages using Docker images.\n#\n# This script builds the Docker images and then executes them sequentially, each\n# one building a Debian package for the targeted operating system. It is\n# designed to be a \"single command\" to produce all the images...
[ { "content": "#!/usr/bin/env python3\n\n# Build the Debian packages using Docker images.\n#\n# This script builds the Docker images and then executes them sequentially, each\n# one building a Debian package for the targeted operating system. It is\n# designed to be a \"single command\" to produce all the images...
diff --git a/changelog.d/13326.removal b/changelog.d/13326.removal new file mode 100644 index 000000000000..8112286671d7 --- /dev/null +++ b/changelog.d/13326.removal @@ -0,0 +1 @@ +Stop builindg `.deb` packages for Ubuntu 21.10 (Impish Indri), which has reached end of life. diff --git a/scripts-dev/build_debian_packag...
twisted__twisted-11838
twisted.web.template._flattenElement spends a significant amount of runtime in typing.py **Describe the incorrect behavior you saw** `_flattenElement` defines a closure `keepGoing` which is used to recursively call `_flattenElement`. `keepGoing`'s type definition includes multiple `Callable[…]`s. Since the file ...
[ { "content": "# -*- test-case-name: twisted.web.test.test_flatten,twisted.web.test.test_template -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nContext-free flattener/serializer for rendering Python objects, possibly\ncomplex or arbitrarily nested, as strings.\n\"\"\"\n...
[ { "content": "# -*- test-case-name: twisted.web.test.test_flatten,twisted.web.test.test_template -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nContext-free flattener/serializer for rendering Python objects, possibly\ncomplex or arbitrarily nested, as strings.\n\"\"\"\n...
diff --git a/src/twisted/newsfragments/11835.bugfix b/src/twisted/newsfragments/11835.bugfix new file mode 100644 index 00000000000..1dc8f6d0af7 --- /dev/null +++ b/src/twisted/newsfragments/11835.bugfix @@ -0,0 +1 @@ +`twisted.web.template` now avoids some unecessary evaluation of type annotations and is faster. diff ...
liqd__a4-meinberlin-2082
dashboard: district "gesamtstädtisch" ist --- in dashboard the default district is "---" and should be changed to "Gesamtstädtisch"
[ { "content": "from django import forms\nfrom django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.core.exceptions import ValidationError\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.dashboard.forms import ProjectDashboardForm\nfrom adhocracy4.ma...
[ { "content": "from django import forms\nfrom django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.core.exceptions import ValidationError\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.dashboard.forms import ProjectDashboardForm\nfrom adhocracy4.ma...
diff --git a/meinberlin/apps/projects/forms.py b/meinberlin/apps/projects/forms.py index 969995993c..f45b56634c 100644 --- a/meinberlin/apps/projects/forms.py +++ b/meinberlin/apps/projects/forms.py @@ -92,3 +92,7 @@ class Meta: 'point': maps_widgets.MapChoosePointWidget( polygon=settings....
tiangolo__fastapi-681
Async class method dependency raises a ValueError **Describe the bug** If you use an async class method as a dependency, a `ValueError` is thrown. It doesn't happen for a non-async method. Complete error: `ValueError: [KeyError(<class 'coroutine'>), TypeError("'coroutine' object is not iterable"), TypeError('vars()...
[ { "content": "import asyncio\nimport inspect\nfrom contextlib import contextmanager\nfrom copy import deepcopy\nfrom typing import (\n Any,\n Callable,\n Dict,\n List,\n Mapping,\n Optional,\n Sequence,\n Tuple,\n Type,\n Union,\n cast,\n)\n\nfrom fastapi import params\nfrom fas...
[ { "content": "import asyncio\nimport inspect\nfrom contextlib import contextmanager\nfrom copy import deepcopy\nfrom typing import (\n Any,\n Callable,\n Dict,\n List,\n Mapping,\n Optional,\n Sequence,\n Tuple,\n Type,\n Union,\n cast,\n)\n\nfrom fastapi import params\nfrom fas...
diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index 4745f173f0d6e..2cda78a9e9a6f 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -351,7 +351,7 @@ def add_param_to_fields(*, field: Field, dependant: Dependant) -> None: def is_coroutine_callable(call: Ca...
kivy__python-for-android-1163
Openssl recipe crashes on x86 arch p4a branch: stable buildozer: 0.33 bootstrap: sdl2 kivy: 1.10.0 Error message i get: ``` arm_arch.h:46:6: error: #error "unsupported ARM architecture" ```
[ { "content": "from functools import partial\n\nfrom pythonforandroid.toolchain import Recipe, shprint, current_directory\nimport sh\n\n\nclass OpenSSLRecipe(Recipe):\n version = '1.0.2h'\n url = 'https://www.openssl.org/source/openssl-{version}.tar.gz'\n\n def should_build(self, arch):\n return ...
[ { "content": "from functools import partial\n\nfrom pythonforandroid.toolchain import Recipe, shprint, current_directory\nimport sh\n\n\nclass OpenSSLRecipe(Recipe):\n version = '1.0.2h'\n url = 'https://www.openssl.org/source/openssl-{version}.tar.gz'\n\n def should_build(self, arch):\n return ...
diff --git a/pythonforandroid/recipes/openssl/__init__.py b/pythonforandroid/recipes/openssl/__init__.py index 5be1cdd445..355e6f539d 100644 --- a/pythonforandroid/recipes/openssl/__init__.py +++ b/pythonforandroid/recipes/openssl/__init__.py @@ -36,6 +36,8 @@ def select_build_arch(self, arch): return 'and...
WordPress__openverse-api-556
Sound category mismatch ## Description <!-- Concisely describe the bug. --> The `sound` category for audio doesn't work on the front-end. There seems to be a mismatch between the `audio` category of `sound_effect`: If you go to `https://api.openverse.engineering/v1/audio/?q=cat&categories=sound`, you will get a 400...
[ { "content": "from catalog.api.controllers.search_controller import get_sources\nfrom catalog.api.docs.media_docs import fields_to_md\nfrom catalog.api.models import AudioReport\nfrom catalog.api.models.audio import Audio\nfrom catalog.api.serializers.media_serializers import (\n MediaSearchRequestSerializer...
[ { "content": "from catalog.api.controllers.search_controller import get_sources\nfrom catalog.api.docs.media_docs import fields_to_md\nfrom catalog.api.models import AudioReport\nfrom catalog.api.models.audio import Audio\nfrom catalog.api.serializers.media_serializers import (\n MediaSearchRequestSerializer...
diff --git a/api/catalog/api/serializers/audio_serializers.py b/api/catalog/api/serializers/audio_serializers.py index 26525c079..de8b0c25b 100644 --- a/api/catalog/api/serializers/audio_serializers.py +++ b/api/catalog/api/serializers/audio_serializers.py @@ -88,6 +88,7 @@ def validate_categories(value): ...
google__clusterfuzz-1169
_update_issue_metadata in progression task fails on OSS-Fuzz This is due to use of untrusted runner on OSS-Fuzz. Is this even needed there, currently causing exceptions. Should this be a simple bailout ?
[ { "content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/src/python/bot/tasks/progression_task.py b/src/python/bot/tasks/progression_task.py index ad61f2d903..0a93c13b37 100644 --- a/src/python/bot/tasks/progression_task.py +++ b/src/python/bot/tasks/progression_task.py @@ -140,6 +140,10 @@ def _check_fixed_for_custom_binary(testcase, job_type, testcase_file_pat...
AUTOMATIC1111__stable-diffusion-webui-1326
New samplers are not showing up I just updated my version to try out the new samplers but they are not showing up. I deleted repositories/k-diffusion as a test but they still dont show up. Someone on reddit mentioned to do "source venv/bin/activate/" and then to do a pip uninstall k-diffusion, but I have no idea wha...
[ { "content": "from collections import namedtuple\r\nimport numpy as np\r\nimport torch\r\nimport tqdm\r\nfrom PIL import Image\r\nimport inspect\r\n\r\nimport k_diffusion.sampling\r\nimport ldm.models.diffusion.ddim\r\nimport ldm.models.diffusion.plms\r\nfrom modules import prompt_parser\r\n\r\nfrom modules.sha...
[ { "content": "from collections import namedtuple\r\nimport numpy as np\r\nimport torch\r\nimport tqdm\r\nfrom PIL import Image\r\nimport inspect\r\nfrom modules.paths import paths\r\nsys.path.insert(0, paths[\"k_diffusion\"])\r\nimport k_diffusion.sampling\r\nimport ldm.models.diffusion.ddim\r\nimport ldm.model...
diff --git a/modules/sd_samplers.py b/modules/sd_samplers.py index 5642b870cdc..5e60e494b90 100644 --- a/modules/sd_samplers.py +++ b/modules/sd_samplers.py @@ -4,7 +4,8 @@ import tqdm from PIL import Image import inspect - +from modules.paths import paths +sys.path.insert(0, paths["k_diffusion"]) import k_di...
jazzband__pip-tools-488
Providing a source file which does not have an extension writes to a .txt file in current dir If you happen to use an extensionless filename as a source of requirements in, pip-compile will deduce the wrong output filename and generate a ".txt" file (relative file, thus at current working dir). ##### Environment Ver...
[ { "content": "# coding: utf-8\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\n\nimport optparse\nimport os\nimport sys\nimport tempfile\n\nimport pip\nfrom pip.req import InstallRequirement, parse_requirements\n\nfrom .. import click\nfrom ..except...
[ { "content": "# coding: utf-8\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\n\nimport optparse\nimport os\nimport sys\nimport tempfile\n\nimport pip\nfrom pip.req import InstallRequirement, parse_requirements\n\nfrom .. import click\nfrom ..except...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 902b16430..8522af6f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # 1.9.0 (Unreleased) +- Fixed the default output file name when the source file has no extension ([#470](https://github.com/jazzband/pip-tools/issues/470)) - Added a `--max-rounds` argume...
microsoft__playwright-python-145
DEBUG outputs won't get forwarded
[ { "content": "# Copyright (c) Microsoft Corporation.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright (c) Microsoft Corporation.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/playwright/main.py b/playwright/main.py index 6a8451c0a..4726ef4bf 100644 --- a/playwright/main.py +++ b/playwright/main.py @@ -49,7 +49,7 @@ async def run_driver_async() -> Connection: str(driver_executable), stdin=asyncio.subprocess.PIPE, stdout=asyncio.subprocess.PIPE, - ...
urllib3__urllib3-2424
Remove integration tests for Botocore with Python 2.7 Botocore dropped support for Python 2.7 in July so we don't have to do integration testing with Botocore+Python 2.7 on the 1.26.x branch any longer. Reference: https://github.com/urllib3/urllib3/pull/2422
[ { "content": "import os\nimport shutil\nimport subprocess\n\nimport nox\n\nSOURCE_FILES = [\n \"docs/\",\n \"dummyserver/\",\n \"src/\",\n \"test/\",\n \"noxfile.py\",\n \"setup.py\",\n]\n\n\ndef tests_impl(session, extras=\"socks,secure,brotli\"):\n # Install deps and the package itself.\n...
[ { "content": "import os\nimport shutil\nimport subprocess\n\nimport nox\n\nSOURCE_FILES = [\n \"docs/\",\n \"dummyserver/\",\n \"src/\",\n \"test/\",\n \"noxfile.py\",\n \"setup.py\",\n]\n\n\ndef tests_impl(session, extras=\"socks,secure,brotli\"):\n # Install deps and the package itself.\n...
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index e421d8f3af..94c447d36f 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -12,6 +12,11 @@ jobs: matrix: python-version: [2.7, 3.9] downstream: [botocore, requests] + ...
flairNLP__flair-300
Update torch version to 1.0.0 torch version 1.0.0 is available. Use torch version 1.0.0 in Flair.
[ { "content": "from setuptools import setup, find_packages\n\nsetup(\n name='flair',\n version='0.3.2',\n description='A very simple framework for state-of-the-art NLP',\n long_description=open(\"README.md\", encoding='utf-8').read(),\n long_description_content_type=\"text/markdown\",\n author=...
[ { "content": "from setuptools import setup, find_packages\n\nsetup(\n name='flair',\n version='0.3.2',\n description='A very simple framework for state-of-the-art NLP',\n long_description=open(\"README.md\", encoding='utf-8').read(),\n long_description_content_type=\"text/markdown\",\n author=...
diff --git a/requirements.txt b/requirements.txt index 71da5a8102..e1aef4f572 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -torch==0.4.1 +torch==1.0.0 gensim==3.4.0 typing==3.6.4 pytest==3.6.4 diff --git a/setup.py b/setup.py index 90749487f3..4234e19ade 100644 --- a/setup.py +++ b/setup.py @...
Kaggle__docker-python-1326
NameError: name 'io' is not defined ## 🐛 Bug I am trying to run my scripts on GPU notebook, and I keep getting the following error. ```shell Traceback (most recent call last): File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 1172, in init getcaller() File "/opt/conda/lib/p...
[ { "content": "import logging\nimport os\n\nimport google.auth\n\n\n_LOG_TO_FILE_ENV = os.getenv(\"KAGGLE_LOG_TO_FILE\")\n\n\nclass _LogFormatter(logging.Formatter):\n \"\"\"A logging formatter which truncates long messages.\"\"\"\n\n _MAX_LOG_LENGTH = 10000 # Be generous, not to truncate long backtraces....
[ { "content": "import io\nimport logging\nimport os\n\nimport google.auth\n\n\n_LOG_TO_FILE_ENV = os.getenv(\"KAGGLE_LOG_TO_FILE\")\n\n\nclass _LogFormatter(logging.Formatter):\n \"\"\"A logging formatter which truncates long messages.\"\"\"\n\n _MAX_LOG_LENGTH = 10000 # Be generous, not to truncate long ...
diff --git a/patches/log.py b/patches/log.py index 2da5993c..59a07c8c 100644 --- a/patches/log.py +++ b/patches/log.py @@ -1,3 +1,4 @@ +import io import logging import os @@ -129,4 +130,4 @@ def _static_init(): logging.basicConfig(level=logging.INFO, handlers=[handler]) Log._initialized = True -...
readthedocs__readthedocs.org-4676
Improve Intro and Getting Started documentation I think the [introduction](https://docs.readthedocs.io/en/latest/) and [getting started guide](https://docs.readthedocs.io/en/latest/getting_started.html) could use a few improvements to make it easier for brand new users who may not already know about Sphinx/MkDocs/Markd...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom __future__ import division, print_function, unicode_literals\n\nimport os\nimport sys\n\nimport sphinx_rtd_theme\nfrom recommonmark.parser import CommonMarkParser\n\nsys.path.insert(0, os.path.abspath('..'))\nsys.path.append(os.path.dirname(__file__))\nos.environ.se...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom __future__ import division, print_function, unicode_literals\n\nimport os\nimport sys\n\nimport sphinx_rtd_theme\nfrom recommonmark.parser import CommonMarkParser\n\nsys.path.insert(0, os.path.abspath('..'))\nsys.path.append(os.path.dirname(__file__))\nos.environ.se...
diff --git a/docs/_static/images/first-steps/import-a-repository.png b/docs/_static/images/first-steps/import-a-repository.png new file mode 100644 index 00000000000..252f69834df Binary files /dev/null and b/docs/_static/images/first-steps/import-a-repository.png differ diff --git a/docs/_static/images/first-steps/mkdo...
huggingface__accelerate-127
Error when loading optimizer state Thanks for this awesome product!! When I try to load optimizer state on TPUs, I get an error, since self.device_placement is never initialized in AcceleratedOptimizer..! https://github.com/huggingface/accelerate/blob/e0a420f7cb32124cadeeae690b56e463f8fc598f/src/accelerate/optimize...
[ { "content": "# Copyright 2021 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 2021 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/accelerate/optimizer.py b/src/accelerate/optimizer.py index 30fd8314eb0..57ea686f91c 100644 --- a/src/accelerate/optimizer.py +++ b/src/accelerate/optimizer.py @@ -52,6 +52,7 @@ def __init__(self, optimizer, device_placement=True, scaler=None): self.optimizer = optimizer self.scaler =...
NVIDIA__NVFlare-191
The "show_stats" command got broken The "show_stats server" and "show_stats client" command got the following error. This is caused by this PR change (https://github.com/NVIDIA/NVFlare/pull/162): > show_stats server Error: Failed to communicate with Admin Server localhost on 8003: '_DefaultReplyProcessor' object ha...
[ { "content": "# Copyright (c) 2021-2022, NVIDIA CORPORATION. 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/LICEN...
[ { "content": "# Copyright (c) 2021-2022, NVIDIA CORPORATION. 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/LICEN...
diff --git a/nvflare/fuel/hci/client/api_spec.py b/nvflare/fuel/hci/client/api_spec.py index cb5dacd40e..5d8b9a1c18 100644 --- a/nvflare/fuel/hci/client/api_spec.py +++ b/nvflare/fuel/hci/client/api_spec.py @@ -38,6 +38,9 @@ def process_error(self, api: AdminAPISpec, err: str): def process_table(self, api: AdminAP...
holoviz__holoviews-3427
Bokeh streams callback fails with convert_timestamp in Python 2.7 Discovered this while writing a BoundsX to review dates of a selected data points in a time series. It fails out and kills the stream. https://github.com/ioam/holoviews/blob/9a6a630b727c8827a8bd6fbe77bf31e1f35a7e5a/holoviews/plotting/bokeh/util.py#L89...
[ { "content": "from __future__ import absolute_import, division, unicode_literals\n\nimport re\nimport time\nimport sys\nimport calendar\nimport datetime as dt\n\nfrom collections import defaultdict\nfrom contextlib import contextmanager\n\nimport param\nimport bokeh\nimport numpy as np\n\nfrom bokeh.core.json_e...
[ { "content": "from __future__ import absolute_import, division, unicode_literals\n\nimport re\nimport time\nimport sys\nimport calendar\nimport datetime as dt\n\nfrom collections import defaultdict\nfrom contextlib import contextmanager\n\nimport param\nimport bokeh\nimport numpy as np\n\nfrom bokeh.core.json_e...
diff --git a/holoviews/plotting/bokeh/util.py b/holoviews/plotting/bokeh/util.py index 4edb0e259c..36cd7f1795 100644 --- a/holoviews/plotting/bokeh/util.py +++ b/holoviews/plotting/bokeh/util.py @@ -86,7 +86,7 @@ def convert_timestamp(timestamp): """ Converts bokehJS timestamp to datetime64. """ - dat...
carpentries__amy-690
No reverse match for rest_framework namespace The error for a very strange reason shows when accessing these URLs: https://github.com/swcarpentry/amy/blob/develop/api/urls.py#L57 I wasn't able to get rid of it; it's not being used at all, so maybe it should be removed…?
[ { "content": "from django.conf.urls import url, include\nfrom rest_framework_nested import routers\nfrom rest_framework.urlpatterns import format_suffix_patterns\n\nfrom . import views\n\n# new in Django 1.9: this defines a namespace for URLs; there's no need for\n# `namespace='api'` in the include()\napp_name ...
[ { "content": "from django.conf.urls import url, include\nfrom rest_framework_nested import routers\nfrom rest_framework.urlpatterns import format_suffix_patterns\n\nfrom . import views\n\n# new in Django 1.9: this defines a namespace for URLs; there's no need for\n# `namespace='api'` in the include()\napp_name ...
diff --git a/api/urls.py b/api/urls.py index 4eecbc2b7..ad8aa1df3 100644 --- a/api/urls.py +++ b/api/urls.py @@ -52,10 +52,4 @@ url('^', include(todos_router.urls)), ] -# for login-logout functionality -urlpatterns += [ - url(r'^api-auth/', - include('rest_framework.urls', namespace='rest_framework'))...
hpcaitech__ColossalAI-5442
[tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nContinual Pre-training/Supervised fine-tuning of Colossal-LLaMA-2 developed by Colossal-AI Team\n\"\"\"\n\nimport argparse\nimport json\nimport os\nimport resource\nfrom contextlib import nullcontext\n\nimport torch\nimport torch.distributed...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nContinual Pre-training/Supervised fine-tuning of Colossal-LLaMA-2 developed by Colossal-AI Team\n\"\"\"\n\nimport argparse\nimport json\nimport os\nimport resource\nfrom contextlib import nullcontext\n\nimport torch\nimport torch.distributed...
diff --git a/applications/Colossal-LLaMA-2/train.py b/applications/Colossal-LLaMA-2/train.py index 2e4bab75a085..d97da61e4dc8 100644 --- a/applications/Colossal-LLaMA-2/train.py +++ b/applications/Colossal-LLaMA-2/train.py @@ -56,6 +56,7 @@ def format_numel_str(numel: int) -> str: def all_reduce_mean(tensor: torch.T...
Mailu__Mailu-2513
Include start and end dates in the auto-reply period <!-- Thank you for opening an issue with Mailu. Please understand that issues are meant for bugs and enhancement-requests. For **user-support questions**, reach out to us on [matrix](https://matrix.to/#/#mailu:tedomum.net). To be able to help you best, we nee...
[ { "content": "\"\"\" Mailu config storage model\n\"\"\"\n\nimport os\nimport smtplib\nimport json\n\nfrom datetime import date\nfrom email.mime import text\nfrom itertools import chain\n\nimport flask_sqlalchemy\nimport sqlalchemy\nimport passlib.context\nimport passlib.hash\nimport passlib.registry\nimport tim...
[ { "content": "\"\"\" Mailu config storage model\n\"\"\"\n\nimport os\nimport smtplib\nimport json\n\nfrom datetime import date\nfrom email.mime import text\nfrom itertools import chain\n\nimport flask_sqlalchemy\nimport sqlalchemy\nimport passlib.context\nimport passlib.hash\nimport passlib.registry\nimport tim...
diff --git a/core/admin/mailu/models.py b/core/admin/mailu/models.py index f30ef3870..48ce8b33f 100644 --- a/core/admin/mailu/models.py +++ b/core/admin/mailu/models.py @@ -546,8 +546,8 @@ def reply_active(self): now = date.today() return ( self.reply_enabled and - self.reply_s...
adamchainz__django-mysql-398
MySQLCache.set_many should return a list of failing keys This new behaviour in Django 2.0 ( django/django#7520 ) should be implemented.
[ { "content": "# -*- coding:utf-8 -*-\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals\n)\n\nimport re\nimport zlib\nfrom random import random\nfrom textwrap import dedent\nfrom time import time\n\nfrom django.core.cache.backends.base import (\n DEFAULT_TIMEOUT, BaseC...
[ { "content": "# -*- coding:utf-8 -*-\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals\n)\n\nimport re\nimport zlib\nfrom random import random\nfrom textwrap import dedent\nfrom time import time\n\nfrom django.core.cache.backends.base import (\n DEFAULT_TIMEOUT, BaseC...
diff --git a/HISTORY.rst b/HISTORY.rst index 671dd6cf..44452077 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -12,6 +12,8 @@ Pending ------------------ * Changed subprocess imports for compatibility with Google App Engine. +* (Insert new release notes below this line) +* Made ``MySQLCache.set_many`` return a list a...
python__python-docs-es-1201
readthedocs: 'extensions' is not defined Por alguna razón, hemos encontrado https://github.com/UPC/ravada/issues/890 en la CI de readthedocs, y actualmente los builds tienen el siguiente error: ``` % python -m sphinx -T -j auto -E -b html -d _build/doctrees -D language=es . _build/html Running Sphinx v2.2.0 Tra...
[ { "content": "# Sphinx configuration file.\n#\n# - import original configurations from cpython/Doc/conf.py\n# - append the path considering the cpython submodule is at ./cpython\n# - create the symbolic links under ./cpython/locale/es/LC_MESSAGES\n# - make the build to work under Read the Docs\n#\n# The git...
[ { "content": "# Sphinx configuration file.\n#\n# - import original configurations from cpython/Doc/conf.py\n# - append the path considering the cpython submodule is at ./cpython\n# - create the symbolic links under ./cpython/locale/es/LC_MESSAGES\n# - make the build to work under Read the Docs\n#\n# The git...
diff --git a/conf.py b/conf.py index 8ecc6c9d56..8956b12c0a 100644 --- a/conf.py +++ b/conf.py @@ -69,10 +69,16 @@ _stdauthor, 'manual'), ] -extensions.extend([ - 'sphinx_tabs.tabs', - 'sphinxemoji.sphinxemoji', -]) +try: + extensions.extend([ + 'sphinx_tabs.tabs', + 'sphinxemoji.sphinxe...
chainer__chainer-1319
Is it possible to import caffe model on Python 3? As stated in the documentation, `chainer.functions.caffe.CaffeFunction` only supports Python 2.7. However in the "Install Chainer" section, it says ``` Caffe model support Protocol Buffers protobuf>=3.0.0 is required for Py3 ``` Thus I am curious whether caffe model ...
[ { "content": "import collections\nimport pkg_resources\nimport sys\nimport warnings\n\nimport numpy\nimport six\n\nfrom chainer import functions\nfrom chainer import link\nfrom chainer import links\n\n\ndef _protobuf3():\n ws = pkg_resources.WorkingSet()\n try:\n ws.require('protobuf>=3.0.0a')\n ...
[ { "content": "import collections\nimport pkg_resources\nimport sys\nimport warnings\n\nimport numpy\nimport six\n\nfrom chainer import functions\nfrom chainer import link\nfrom chainer import links\n\n\ndef _protobuf3():\n ws = pkg_resources.WorkingSet()\n try:\n ws.require('protobuf>=3.0.0a')\n ...
diff --git a/chainer/links/caffe/caffe_function.py b/chainer/links/caffe/caffe_function.py index 69628f28f61d..7a1fdef31226 100644 --- a/chainer/links/caffe/caffe_function.py +++ b/chainer/links/caffe/caffe_function.py @@ -60,9 +60,8 @@ class CaffeFunction(link.Chain): .. note:: - This class only support...
modin-project__modin-1782
ClusterError class should implement its own version of __str__ method <!-- General questions should be asked on the mailing list modin-dev@googlegroups.com. Before submitting an issue, please fill out the following form. --> ### System information - **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: ...
[ { "content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ...
[ { "content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ...
diff --git a/modin/experimental/cloud/base.py b/modin/experimental/cloud/base.py index e73d4b4bf9b..f78ddf30c7d 100644 --- a/modin/experimental/cloud/base.py +++ b/modin/experimental/cloud/base.py @@ -26,6 +26,11 @@ def __init__(self, *args, cause: BaseException = None, traceback: str = None, ** self.traceback...
rasterio__rasterio-1390
1.0 RC 1 Hey all, if there aren't any reports of show-stopping bugs in 1.0b4, I'd like to put out a release candidate on Wednesday 6/27.
[ { "content": "\"\"\"Rasterio\"\"\"\n\nfrom __future__ import absolute_import\n\nfrom collections import namedtuple\nfrom contextlib import contextmanager\nimport logging\nimport warnings\n\ntry:\n from pathlib import Path\nexcept ImportError: # pragma: no cover\n class Path:\n pass\n\ntry:\n fr...
[ { "content": "\"\"\"Rasterio\"\"\"\n\nfrom __future__ import absolute_import\n\nfrom collections import namedtuple\nfrom contextlib import contextmanager\nimport logging\nimport warnings\n\ntry:\n from pathlib import Path\nexcept ImportError: # pragma: no cover\n class Path:\n pass\n\ntry:\n fr...
diff --git a/CHANGES.txt b/CHANGES.txt index 4d7f55abf..8f5e2755e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,13 +1,16 @@ Changes ======= -Next ------------------- +1.0rc1 (2018-06-27) +------------------- Bug fixes: - Internal Env() in `rasterio.open` has been replaced with an environment - ensuring de...
cloud-custodian__cloud-custodian-3075
GCP: Firewalls resource policy fails with no resource attribute 'Firewall' When running this policy custodian fails: - policies: - name: firewall-test resource: gcp.firewall The error returned is: AttributeError: 'Resource' object has no attribute 'firewall'
[ { "content": "# Copyright 2018 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b...
[ { "content": "# Copyright 2018 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b...
diff --git a/tools/c7n_gcp/c7n_gcp/resources/network.py b/tools/c7n_gcp/c7n_gcp/resources/network.py index b023e0d1fe2..aa22a7502f7 100644 --- a/tools/c7n_gcp/c7n_gcp/resources/network.py +++ b/tools/c7n_gcp/c7n_gcp/resources/network.py @@ -43,8 +43,7 @@ class Firewall(QueryResourceManager): class resource_type(Ty...
huggingface__text-generation-inference-794
small typo in galactica model loading https://github.com/huggingface/text-generation-inference/blob/1fdc88ee908beb8ae0afe17810a17b9b4d8848e2/server/text_generation_server/models/__init__.py#L92 should be trust_remote_code
[ { "content": "import os\nimport torch\n\nfrom loguru import logger\nfrom transformers.configuration_utils import PretrainedConfig\nfrom transformers.models.auto import modeling_auto\nfrom typing import Optional\n\nfrom text_generation_server.models.model import Model\nfrom text_generation_server.models.causal_l...
[ { "content": "import os\nimport torch\n\nfrom loguru import logger\nfrom transformers.configuration_utils import PretrainedConfig\nfrom transformers.models.auto import modeling_auto\nfrom typing import Optional\n\nfrom text_generation_server.models.model import Model\nfrom text_generation_server.models.causal_l...
diff --git a/server/text_generation_server/models/__init__.py b/server/text_generation_server/models/__init__.py index 71efcab745b..621652e8b62 100644 --- a/server/text_generation_server/models/__init__.py +++ b/server/text_generation_server/models/__init__.py @@ -89,7 +89,7 @@ def get_model( revision, ...
dbt-labs__dbt-core-1743
Support for Snowflake Secure Views ### Adding support for Secure View in Snowflake When using the Materialize feature where setting the type of materialization, adding secure-view to the {{ config(materialized='secure-view') }} would be beneficial. ### Current Work-around Currently the solution for Snowflake secur...
[ { "content": "from dbt.adapters.sql import SQLAdapter\nfrom dbt.adapters.snowflake import SnowflakeConnectionManager\nfrom dbt.adapters.snowflake import SnowflakeRelation\nfrom dbt.utils import filter_null_values\n\n\nclass SnowflakeAdapter(SQLAdapter):\n Relation = SnowflakeRelation\n ConnectionManager =...
[ { "content": "from dbt.adapters.sql import SQLAdapter\nfrom dbt.adapters.snowflake import SnowflakeConnectionManager\nfrom dbt.adapters.snowflake import SnowflakeRelation\nfrom dbt.utils import filter_null_values\n\n\nclass SnowflakeAdapter(SQLAdapter):\n Relation = SnowflakeRelation\n ConnectionManager =...
diff --git a/plugins/snowflake/dbt/adapters/snowflake/impl.py b/plugins/snowflake/dbt/adapters/snowflake/impl.py index 31600a8a236..4e3d3d7793e 100644 --- a/plugins/snowflake/dbt/adapters/snowflake/impl.py +++ b/plugins/snowflake/dbt/adapters/snowflake/impl.py @@ -9,7 +9,7 @@ class SnowflakeAdapter(SQLAdapter): Co...
django-extensions__django-extensions-1654
RemovedInDjango41Warning: 'django_extensions' defines default_app_config The following warning is emitted when using django-extenstions along with django 3.2 ``` django.utils.deprecation.RemovedInDjango41Warning: 'django_extensions' defines default_app_config = 'django_extensions.apps.DjangoExtensionsConfig'. Django ...
[ { "content": "# -*- coding: utf-8 -*-\nVERSION = (3, 1, 3, 'dev')\n\n\ndef get_version(version):\n \"\"\"Dynamically calculate the version based on VERSION tuple.\"\"\"\n if len(version) > 2 and version[2] is not None:\n if len(version) == 4:\n str_version = \"%s.%s.%s.%s\" % version\n ...
[ { "content": "# -*- coding: utf-8 -*-\nVERSION = (3, 1, 3, 'dev')\n\n\ndef get_version(version):\n \"\"\"Dynamically calculate the version based on VERSION tuple.\"\"\"\n if len(version) > 2 and version[2] is not None:\n if len(version) == 4:\n str_version = \"%s.%s.%s.%s\" % version\n ...
diff --git a/django_extensions/__init__.py b/django_extensions/__init__.py index 488c8e0d6..8e1d2201a 100644 --- a/django_extensions/__init__.py +++ b/django_extensions/__init__.py @@ -19,4 +19,11 @@ def get_version(version): __version__ = get_version(VERSION) -default_app_config = 'django_extensions.apps.DjangoEx...
fidals__shopelectro-200
SE yml fix delivery 3k -> 5k [origin trello task](https://trello.com/c/LyLVDakS/298-se-%D0%BF%D1%80%D0%B0%D0%B2%D1%8C-yml) Внезапно обноружили, что через фид передается( в теге <sales_notes>) неверная инфа о доставке. Исправь на 5к.
[ { "content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/...
[ { "content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/...
diff --git a/shopelectro/settings/base.py b/shopelectro/settings/base.py index 0ed86524..3f3942b0 100644 --- a/shopelectro/settings/base.py +++ b/shopelectro/settings/base.py @@ -268,7 +268,7 @@ 'cps_phone': '+78124163200', 'cps_email': 'info@shopelectro.ru', 'local_delivery_cost': 300, - 'local_deliv...
MycroftAI__mycroft-core-275
Base media skill is loaded as a normal skill At the moment, the load_skills function tries to load the media skill as if it is a normal skill.
[ { "content": "# Copyright 2016 Mycroft AI, Inc.\n#\n# This file is part of Mycroft Core.\n#\n# Mycroft Core is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at ...
[ { "content": "# Copyright 2016 Mycroft AI, Inc.\n#\n# This file is part of Mycroft Core.\n#\n# Mycroft Core is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at ...
diff --git a/mycroft/skills/core.py b/mycroft/skills/core.py index a61dce2f4d10..af32d10d6c4a 100644 --- a/mycroft/skills/core.py +++ b/mycroft/skills/core.py @@ -35,7 +35,7 @@ __author__ = 'seanfitz' PRIMARY_SKILLS = ['intent', 'wake'] -BLACKLISTED_SKILLS = ["send_sms"] +BLACKLISTED_SKILLS = ["send_sms", "media"] ...
mdn__kuma-5855
Escalated number of errors from Google Search Console: Breadcrumbs [Google Search Console](https://search.google.com/search-console/breadcrumbs/drilldown?resource_id=https%3A%2F%2Fdeveloper.mozilla.org%2F&item_key=CgwICRoIcG9zaXRpb24QAxgP&hl=en) emailed us about a big increase in indexing "errors" about breadcrumbs. <...
[ { "content": "# -*- coding: utf-8 -*-\nimport difflib\nimport json\nimport re\n\nimport jinja2\nimport six\nfrom constance import config\nfrom cssselect.parser import SelectorSyntaxError\nfrom django.conf import settings\nfrom django.core.serializers.json import DjangoJSONEncoder\nfrom django.template import lo...
[ { "content": "# -*- coding: utf-8 -*-\nimport difflib\nimport json\nimport re\n\nimport jinja2\nimport six\nfrom constance import config\nfrom cssselect.parser import SelectorSyntaxError\nfrom django.conf import settings\nfrom django.core.serializers.json import DjangoJSONEncoder\nfrom django.template import lo...
diff --git a/kuma/static/styles/components/wiki/crumbs.scss b/kuma/static/styles/components/wiki/crumbs.scss index 5281e2404b7..427a3d58fca 100644 --- a/kuma/static/styles/components/wiki/crumbs.scss +++ b/kuma/static/styles/components/wiki/crumbs.scss @@ -35,6 +35,13 @@ $crumb-vertical-spacing-desktop: $grid-spacing /...
cloudtools__troposphere-120
Update metadata to include property keys Within the CloudFormation metadata object for auto scaling launch configurations, it'd be nice to be able to rely on the validators within the template to sanity check the allowed keys within the 'config' dictionary: ``` "Resources": { "MyInstance": { "Type": "AWS::EC2::...
[ { "content": "# Copyright (c) 2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSHelperFn, AWSObject, AWSProperty, Ref\nfrom .validators import integer\n\n\nclass Stack(AWSObject):\n type = \"AWS::CloudFormation::Stack\"\n\n props = {\n ...
[ { "content": "# Copyright (c) 2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSHelperFn, AWSObject, AWSProperty, Ref\nfrom .validators import integer\n\n\nclass Stack(AWSObject):\n type = \"AWS::CloudFormation::Stack\"\n\n props = {\n ...
diff --git a/troposphere/cloudformation.py b/troposphere/cloudformation.py index c79ff3904..069496741 100644 --- a/troposphere/cloudformation.py +++ b/troposphere/cloudformation.py @@ -67,7 +67,13 @@ def JSONrepr(self): class InitConfig(AWSProperty): props = { - 'files': (dict, False) + 'groups': ...
mdn__kuma-6598
Possibly to prefill Reason textarea on $delete If you're going to have some human-helped automation that deletes the 20% or so non-en-US documents that aren't actually translated, it would be nice if you don't have to type in the same reason every time. <img width="989" alt="Screen Shot 2020-02-26 at 11 56 40 AM" src...
[ { "content": "from django.db import IntegrityError\nfrom django.shortcuts import get_object_or_404, redirect, render\nfrom django.utils.translation import ugettext\nfrom django.views.decorators.cache import never_cache\n\nfrom kuma.core.decorators import (\n block_user_agents,\n ensure_wiki_domain,\n l...
[ { "content": "from django.db import IntegrityError\nfrom django.shortcuts import get_object_or_404, redirect, render\nfrom django.utils.translation import ugettext\nfrom django.views.decorators.cache import never_cache\n\nfrom kuma.core.decorators import (\n block_user_agents,\n ensure_wiki_domain,\n l...
diff --git a/kuma/wiki/views/delete.py b/kuma/wiki/views/delete.py index cd80d192a5a..23ee6197d2c 100644 --- a/kuma/wiki/views/delete.py +++ b/kuma/wiki/views/delete.py @@ -100,7 +100,8 @@ def delete_document(request, document_slug, document_locale): document.delete() return redirect(document)...
tornadoweb__tornado-2629
When HttpResponse body is empty it returns a ValueError when it should not In checkin https://github.com/tornadoweb/tornado/pull/2514/commits/7b846ea56bff1892a4d4d05206210b4d234e292b the code for httpclient.HttpResponse.body was changed to throw a ValueError when the body is empty. But since the message body is opti...
[ { "content": "\"\"\"Blocking and non-blocking HTTP client interfaces.\n\nThis module defines a common interface shared by two implementations,\n``simple_httpclient`` and ``curl_httpclient``. Applications may either\ninstantiate their chosen implementation class directly or use the\n`AsyncHTTPClient` class from...
[ { "content": "\"\"\"Blocking and non-blocking HTTP client interfaces.\n\nThis module defines a common interface shared by two implementations,\n``simple_httpclient`` and ``curl_httpclient``. Applications may either\ninstantiate their chosen implementation class directly or use the\n`AsyncHTTPClient` class from...
diff --git a/tornado/httpclient.py b/tornado/httpclient.py index 33abe2e16e..882600af82 100644 --- a/tornado/httpclient.py +++ b/tornado/httpclient.py @@ -665,7 +665,7 @@ def __init__( @property def body(self) -> bytes: if self.buffer is None: - raise ValueError("body not set") + ...
conan-io__conan-2921
local cache inconsistent after enabling short_paths in a recipe To help us debug your issue please explain: - [x] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md). - [x] I've specified the Conan version, operating system version and any tool that c...
[ { "content": "import os\nimport subprocess\n\nfrom conans.util.files import load, mkdir, save, rmdir\nimport tempfile\n\n\nCONAN_LINK = \".conan_link\"\n\n\ndef conan_expand_user(path):\n \"\"\" wrapper to the original expanduser function, to workaround python returning\n verbatim %USERPROFILE% when some ...
[ { "content": "import os\nimport subprocess\n\nfrom conans.util.files import load, mkdir, save, rmdir\nimport tempfile\n\n\nCONAN_LINK = \".conan_link\"\n\n\ndef conan_expand_user(path):\n \"\"\" wrapper to the original expanduser function, to workaround python returning\n verbatim %USERPROFILE% when some ...
diff --git a/conans/test/functional/short_paths_test.py b/conans/test/functional/short_paths_test.py new file mode 100644 index 00000000000..6d9f55b6832 --- /dev/null +++ b/conans/test/functional/short_paths_test.py @@ -0,0 +1,67 @@ +import os +import platform +import unittest + +from conans.model.ref import ConanFileR...
googleapis__google-cloud-python-5856
Request to release GCS Python library Hi, Is it possible to release the Storage client library for Python? I'd like the new method `get_service_account_email` to be available. Unless there exist concerns.
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
diff --git a/storage/CHANGELOG.md b/storage/CHANGELOG.md index 002e92db7c09..b1b0ef25782e 100644 --- a/storage/CHANGELOG.md +++ b/storage/CHANGELOG.md @@ -4,11 +4,32 @@ [1]: https://pypi.org/project/google-cloud-storage/#history +## 1.11.0 + +### Implementation Changes +- Preserve message / args from an `InvalidRe...
twisted__twisted-12069
spawnProcess() passes incorrect environment to subprocess when env=None and posix_spawnp() is used [Documentation on reactor.spawnProcess](https://docs.twisted.org/en/stable/api/twisted.internet.interfaces.IReactorProcess.html) says the following about env parameter: ```env is None: On POSIX: pass os.environ``` ...
[ { "content": "# -*- test-case-name: twisted.test.test_process -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nUNIX Process management.\n\nDo NOT use this module directly - use reactor.spawnProcess() instead.\n\nMaintainer: Itamar Shtull-Trauring\n\"\"\"\nfrom __future__ ...
[ { "content": "# -*- test-case-name: twisted.test.test_process -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nUNIX Process management.\n\nDo NOT use this module directly - use reactor.spawnProcess() instead.\n\nMaintainer: Itamar Shtull-Trauring\n\"\"\"\nfrom __future__ ...
diff --git a/src/twisted/internet/process.py b/src/twisted/internet/process.py index ef3b88d9f19..ff7684e358b 100644 --- a/src/twisted/internet/process.py +++ b/src/twisted/internet/process.py @@ -879,7 +879,7 @@ def _trySpawnInsteadOfFork( else: fdState.append((eachFD, isCloseOnExec)) ...
vllm-project__vllm-1666
Batch generation with long prompt generates incorrect number of outputs When a prompt in a batch generation is too long for the model, `llm.generate` returns an unexpected number of outputs: ```python In [11]: prompts = ["This is a short prompt", "This is a very long prompt " * 1000] ...: print(len(prompts)) ...
[ { "content": "import copy\nimport time\nfrom functools import partial\nfrom typing import TYPE_CHECKING, Any, Iterable, List, Optional, Tuple, Union\n\nfrom vllm.config import (CacheConfig, ModelConfig, ParallelConfig,\n SchedulerConfig)\nfrom vllm.core.scheduler import Scheduler, Schedu...
[ { "content": "import copy\nimport time\nfrom functools import partial\nfrom typing import TYPE_CHECKING, Any, Iterable, List, Optional, Tuple, Union\n\nfrom vllm.config import (CacheConfig, ModelConfig, ParallelConfig,\n SchedulerConfig)\nfrom vllm.core.scheduler import Scheduler, Schedu...
diff --git a/tests/test_regression.py b/tests/test_regression.py new file mode 100644 index 00000000000..3bfb2b43f26 --- /dev/null +++ b/tests/test_regression.py @@ -0,0 +1,27 @@ +"""Containing tests that check for regressions in vLLM's behavior. + +It should include tests that are reported by users and making sure the...
buildbot__buildbot-5588
Can't use secret interpolation in p4poller.P4Source and steps.P4 I tried to use secrets for perforce passwords (using buildbot 1.0.0). First I tried to use it in the P4 change source: p4ChangeSource = p4poller.P4Source(p4port=p4Port, p4user=p4User, ...
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n...
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n...
diff --git a/master/buildbot/steps/source/p4.py b/master/buildbot/steps/source/p4.py index b29e376dcbbf..5fdddd8abcb9 100644 --- a/master/buildbot/steps/source/p4.py +++ b/master/buildbot/steps/source/p4.py @@ -44,7 +44,7 @@ class P4(Source): name = 'p4' - renderables = ['mode', 'p4base', 'p4client', 'p4vie...
internetarchive__openlibrary-5899
Work search - Sort by first published displays work with no publication date first <!-- What problem are we solving? What does the experience look like today? What are the symptoms? --> When searching for a work and sorting by `First Published`, if some works match the search and have no first publication date, they a...
[ { "content": "from datetime import datetime\nimport copy\nimport json\nimport logging\nimport random\nimport re\nimport string\nfrom typing import List, Tuple, Any, Union, Optional, Iterable, Dict\nfrom unicodedata import normalize\nfrom json import JSONDecodeError\nimport requests\nimport web\nfrom lxml.etree ...
[ { "content": "from datetime import datetime\nimport copy\nimport json\nimport logging\nimport random\nimport re\nimport string\nfrom typing import List, Tuple, Any, Union, Optional, Iterable, Dict\nfrom unicodedata import normalize\nfrom json import JSONDecodeError\nimport requests\nimport web\nfrom lxml.etree ...
diff --git a/openlibrary/plugins/worksearch/code.py b/openlibrary/plugins/worksearch/code.py index 7f1991f46bf..8f2f002034d 100644 --- a/openlibrary/plugins/worksearch/code.py +++ b/openlibrary/plugins/worksearch/code.py @@ -116,7 +116,7 @@ } SORTS = { 'editions': 'edition_count desc', - 'old': 'first_publish...
openstates__openstates-scrapers-2384
MN failing since at least 2018-06-15 MN has been failing since 2018-06-15 Based on automated runs it appears that MN has not run successfully in 2 days (2018-06-15). ``` /opt/openstates/venv-pupa/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from rele...
[ { "content": "from pupa.scrape import Jurisdiction, Organization\n\nfrom openstates.utils import url_xpath\n\nfrom .bills import MNBillScraper\nfrom .committees import MNCommitteeScraper\nfrom .people import MNPersonScraper\nfrom .vote_events import MNVoteScraper\n# from .events import MNEventScraper\n\n\"\"\"\...
[ { "content": "from pupa.scrape import Jurisdiction, Organization\n\nfrom openstates.utils import url_xpath\n\nfrom .bills import MNBillScraper\nfrom .committees import MNCommitteeScraper\nfrom .people import MNPersonScraper\nfrom .vote_events import MNVoteScraper\n# from .events import MNEventScraper\n\n\"\"\"\...
diff --git a/openstates/mn/__init__.py b/openstates/mn/__init__.py index c6dadd14f7..f5a168769b 100644 --- a/openstates/mn/__init__.py +++ b/openstates/mn/__init__.py @@ -127,6 +127,7 @@ class Minnesota(Jurisdiction): '79th Legislature, 1995-1996', '79th Legislature, 1995 1st Special Session', ...
mlflow__mlflow-11463
[DOC-FIX] Document that attribute RunInfo.lifecycle_stage is of type LifecycleStage ### Willingness to contribute No. I cannot contribute a documentation fix at this time. ### URL(s) with the issue https://mlflow.org/docs/latest/python_api/mlflow.entities.html#mlflow.entities.RunInfo.lifecycle_stage ### Description...
[ { "content": "from mlflow.entities._mlflow_object import _MLflowObject\nfrom mlflow.entities.lifecycle_stage import LifecycleStage\nfrom mlflow.entities.run_status import RunStatus\nfrom mlflow.exceptions import MlflowException\nfrom mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE\nfrom mlflow.proto...
[ { "content": "from mlflow.entities._mlflow_object import _MLflowObject\nfrom mlflow.entities.lifecycle_stage import LifecycleStage\nfrom mlflow.entities.run_status import RunStatus\nfrom mlflow.exceptions import MlflowException\nfrom mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE\nfrom mlflow.proto...
diff --git a/mlflow/entities/run_info.py b/mlflow/entities/run_info.py index 1d22e402e754b..5fca3152ae814 100644 --- a/mlflow/entities/run_info.py +++ b/mlflow/entities/run_info.py @@ -138,6 +138,10 @@ def artifact_uri(self): @property def lifecycle_stage(self): + """ + One of the values in :p...
ansible__ansible-17707
lookup properties <!--- Verify first that your issue/request is not already reported in GitHub --> ##### ISSUE TYPE <!--- Pick one below and delete the rest: --> - Bug Report ##### ANSIBLE VERSION <!--- Paste verbatim output from “ansible --version” between quotes below --> ``` ansible 2.2.0 (devel 4e369a31db) last ...
[ { "content": "# (c) 2015, Yannig Perre <yannig.perre(at)gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or...
[ { "content": "# (c) 2015, Yannig Perre <yannig.perre(at)gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or...
diff --git a/lib/ansible/plugins/lookup/ini.py b/lib/ansible/plugins/lookup/ini.py index cbe0d13e6d5d83..11900c0d089523 100644 --- a/lib/ansible/plugins/lookup/ini.py +++ b/lib/ansible/plugins/lookup/ini.py @@ -36,7 +36,7 @@ def _parse_params(term): '''Safely split parameter term to preserve spaces''' - keys...
beetbox__beets-535
mpdstats: last_played is documented but not implemented As pointed out [on the mailing list](https://groups.google.com/d/msg/beets-users/VW0pxtCVZG4/sq9gGsNS9zEJ), the mpdstats plugin (paging @pscn and @kljohann) does not seem to set the `last_played` field, even though the field is described in [the plugin's docs](htt...
[ { "content": "# coding=utf-8\n# This file is part of beets.\n# Copyright 2013, Peter Schnebel and Johann Klähn.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restric...
[ { "content": "# coding=utf-8\n# This file is part of beets.\n# Copyright 2013, Peter Schnebel and Johann Klähn.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restric...
diff --git a/beetsplug/mpdstats.py b/beetsplug/mpdstats.py index e2f990f447..04355fb31e 100644 --- a/beetsplug/mpdstats.py +++ b/beetsplug/mpdstats.py @@ -281,6 +281,9 @@ def on_play(self, status): 'beets_item': self.get_item(path), } + self.update_item(self.now_playing['beets_item'], + ...
spotify__luigi-2679
Is there a reason python-dateutil is pinned to v2.7.5? In this [commit](https://github.com/spotify/luigi/commit/ca0aa9afedecda539339e51974ef38cecf180d4b), I can see that python-dateutil has been pinned to version 2.7.5 - is this strictly necessary? Version 2.8.0 was released a couple of weeks ago and It's causing `Con...
[ { "content": "# Copyright (c) 2012 Spotify AB\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n# use this file except in compliance with the License. You may obtain a copy of\n# the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
[ { "content": "# Copyright (c) 2012 Spotify AB\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n# use this file except in compliance with the License. You may obtain a copy of\n# the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
diff --git a/setup.py b/setup.py index 03a22f485c..75b7fe13bc 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ def get_static_files(path): 'tornado>=4.0,<5', # https://pagure.io/python-daemon/issue/18 'python-daemon<2.2.0', - 'python-dateutil==2.7.5', + 'python-dateutil>=2.7.5,<3', ] # No...
dask__distributed-1170
self.workers.remove(w) fails trying to remove worker. Probably a nit, but this code: ```python import dask.array as da from distributed import (Client, LocalCluster) import numpy as np cluster = LocalCluster() client = Client(cluster.scheduler_address) ones = da.ones(shape=(1000,1000), chunks=(100...
[ { "content": "from __future__ import print_function, division, absolute_import\n\nimport atexit\nimport logging\nimport math\nfrom threading import Thread\nfrom time import sleep\nimport warnings\nimport weakref\n\nfrom tornado import gen\nfrom tornado.ioloop import IOLoop\n\nfrom ..core import CommClosedError\...
[ { "content": "from __future__ import print_function, division, absolute_import\n\nimport atexit\nimport logging\nimport math\nfrom threading import Thread\nfrom time import sleep\nimport warnings\nimport weakref\n\nfrom tornado import gen\nfrom tornado.ioloop import IOLoop\n\nfrom ..core import CommClosedError\...
diff --git a/distributed/deploy/local.py b/distributed/deploy/local.py index 182a0041df1..d1458c4f824 100644 --- a/distributed/deploy/local.py +++ b/distributed/deploy/local.py @@ -203,7 +203,8 @@ def start_worker(self, ncores=0, **kwargs): @gen.coroutine def _stop_worker(self, w): yield w._close() -...
ansible__ansible-modules-extras-3339
Marker in blockinfile is a line prefix, not a whole line ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME `blockinfile` ##### ANSIBLE VERSION ``` ansible 2.1.0 (devel 2e529d7a51) last updated 2016/03/29 20:29:18 (GMT +100) lib/ansible/modules/core: (detached HEAD 0268864211) last updated 2016/03/29 20:30:38 (GMT ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2014, 2015 YAEGASHI Takeshi <yaegashi@debian.org>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softwar...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2014, 2015 YAEGASHI Takeshi <yaegashi@debian.org>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softwar...
diff --git a/files/blockinfile.py b/files/blockinfile.py index 96f430cf14a..ecee4800117 100755 --- a/files/blockinfile.py +++ b/files/blockinfile.py @@ -258,9 +258,9 @@ def main(): n0 = n1 = None for i, line in enumerate(lines): - if line.startswith(marker0): + if line == marker0: ...
pydantic__pydantic-738
duplicated errors when validators raise ValidationError # Bug As a work around for #619 I tried the following ```py from pydantic import VERSION, BaseModel, Union, validator from typing_extensions import Literal print('pydantic version:', VERSION) class Foo(BaseModel): model_type: Literal['foo'] f...
[ { "content": "import json\nfrom functools import lru_cache\nfrom typing import TYPE_CHECKING, Any, Dict, Generator, List, Optional, Sequence, Tuple, Type, Union\n\nif TYPE_CHECKING: # pragma: no cover\n from pydantic import BaseConfig # noqa: F401\n\n__all__ = ('ErrorWrapper', 'ValidationError')\n\n\nclass...
[ { "content": "import json\nfrom functools import lru_cache\nfrom typing import TYPE_CHECKING, Any, Dict, Generator, List, Optional, Sequence, Tuple, Type, Union\n\nif TYPE_CHECKING: # pragma: no cover\n from pydantic import BaseConfig # noqa: F401\n\n__all__ = ('ErrorWrapper', 'ValidationError')\n\n\nclass...
diff --git a/changes/738-samuelcolvin.rst b/changes/738-samuelcolvin.rst new file mode 100644 index 00000000000..af8154f43a7 --- /dev/null +++ b/changes/738-samuelcolvin.rst @@ -0,0 +1 @@ +add ``__repr__`` method to ``ErrorWrapper`` diff --git a/pydantic/error_wrappers.py b/pydantic/error_wrappers.py index f483fa6e605....
DataBiosphere__toil-1535
NonCachingFileStore doesn't have the jobID attribute This makes NonCachingFileStore incompatible with dockerCall. NonCachingFileStore doesn't have the jobID attribute This makes NonCachingFileStore incompatible with dockerCall.
[ { "content": "\"\"\"\n Module for calling Docker. Assumes `docker` is on the PATH.\n\n Contains two user-facing functions: dockerCall and dockerCheckOutput\n\n Uses Toil's defer functionality to ensure containers are shutdown even in case of job or pipeline failure\n\n Example of using dockerCall in...
[ { "content": "\"\"\"\n Module for calling Docker. Assumes `docker` is on the PATH.\n\n Contains two user-facing functions: dockerCall and dockerCheckOutput\n\n Uses Toil's defer functionality to ensure containers are shutdown even in case of job or pipeline failure\n\n Example of using dockerCall in...
diff --git a/src/toil/lib/docker.py b/src/toil/lib/docker.py index c4b918c6ec..19d8a6f9b6 100644 --- a/src/toil/lib/docker.py +++ b/src/toil/lib/docker.py @@ -232,7 +232,6 @@ def _fixPermissions(tool, workDir): def _getContainerName(job): return '--'.join([str(job), - job.fileStore.jobID, ...
elastic__apm-agent-python-1397
No module named 'elasticapm.metrics.sets.transactions' fastapi: 0.70.0 elastic-apm: 6.6.2 Could not register elasticapm.metrics.sets.transactions.TransactionsMetricSet metricset: No module named 'elasticapm.metrics.sets.transactions' ``` File "elasticapm/contrib/starlette/__init__.py", line 70, in make_apm_cl...
[ { "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/conf/__init__.py b/elasticapm/conf/__init__.py index 25f13b4ec..3c7c97326 100644 --- a/elasticapm/conf/__init__.py +++ b/elasticapm/conf/__init__.py @@ -550,7 +550,6 @@ class Config(_ConfigBase): "METRICS_SETS", default=[ "elasticapm.metrics.sets.cpu.CPUMetricSet",...
rasterio__rasterio-778
Copy colormap when rasters are merged I'm running `rio merge` over a few single band images that contain a colormap. During the merge, the colormap is not copied to the new raster. Can we modify `rio merge` to preserve the colormap? I have an initial pass of this change at: https://github.com/kapadia/rasterio/tree/ri...
[ { "content": "\"\"\"Merge command.\"\"\"\n\nimport logging\n\nimport click\nfrom cligj import files_inout_arg, format_opt\n\nfrom .helpers import resolve_inout\nfrom . import options\nimport rasterio\n\n\n@click.command(short_help=\"Merge a stack of raster datasets.\")\n@files_inout_arg\n@options.output_opt\n@f...
[ { "content": "\"\"\"Merge command.\"\"\"\n\nimport logging\n\nimport click\nfrom cligj import files_inout_arg, format_opt\n\nfrom .helpers import resolve_inout\nfrom . import options\nimport rasterio\n\n\n@click.command(short_help=\"Merge a stack of raster datasets.\")\n@files_inout_arg\n@options.output_opt\n@f...
diff --git a/rasterio/rio/merge.py b/rasterio/rio/merge.py index d583bcbf1..d44c67138 100644 --- a/rasterio/rio/merge.py +++ b/rasterio/rio/merge.py @@ -67,3 +67,10 @@ def merge(ctx, files, output, driver, bounds, res, nodata, force_overwrite, with rasterio.open(output, 'w', **profile) as dst: d...
docker__docker-py-1576
Can't Create/Update an replicated service with replicas = 0, bug finded I try to update a service with the following code: ``` service.update( name=service.name, mode=docker.types.ServiceMode('replicated', replicas=0), networks=networks_list, ) ``` First, I want to u...
[ { "content": "import six\n\nfrom .. import errors\nfrom ..constants import IS_WINDOWS_PLATFORM\nfrom ..utils import check_resource, format_environment, split_command\n\n\nclass TaskTemplate(dict):\n \"\"\"\n Describe the task specification to be used when creating or updating a\n service.\n\n Args:\...
[ { "content": "import six\n\nfrom .. import errors\nfrom ..constants import IS_WINDOWS_PLATFORM\nfrom ..utils import check_resource, format_environment, split_command\n\n\nclass TaskTemplate(dict):\n \"\"\"\n Describe the task specification to be used when creating or updating a\n service.\n\n Args:\...
diff --git a/docker/types/services.py b/docker/types/services.py index 9291c9bd4..e7787ec81 100644 --- a/docker/types/services.py +++ b/docker/types/services.py @@ -407,7 +407,7 @@ def __init__(self, mode, replicas=None): 'replicas can only be used for replicated mode' ) self[mode...
cisagov__manage.get.gov-1452
DISCOVERY: Notification and change log for domain managers ### Issue description As a domain manager, I want an in-app log of all changes made to my domain So that I can ensure that it is correct, and track any changes that have been made, avoiding and correcting errors. ### Acceptance criteria TBD ### Additional c...
[ { "content": "from auditlog.registry import auditlog # type: ignore\nfrom .contact import Contact\nfrom .domain_application import DomainApplication\nfrom .domain_information import DomainInformation\nfrom .domain import Domain\nfrom .draft_domain import DraftDomain\nfrom .host_ip import HostIP\nfrom .host imp...
[ { "content": "from auditlog.registry import auditlog # type: ignore\nfrom .contact import Contact\nfrom .domain_application import DomainApplication\nfrom .domain_information import DomainInformation\nfrom .domain import Domain\nfrom .draft_domain import DraftDomain\nfrom .host_ip import HostIP\nfrom .host imp...
diff --git a/src/registrar/models/__init__.py b/src/registrar/models/__init__.py index 1d28c9e89..1203c7878 100644 --- a/src/registrar/models/__init__.py +++ b/src/registrar/models/__init__.py @@ -38,6 +38,7 @@ auditlog.register(Domain) auditlog.register(DraftDomain) auditlog.register(DomainInvitation) +auditlog.reg...
graspologic-org__graspologic-207
GClust bug <img width="558" alt="Screen Shot 2019-06-22 at 3 46 06 PM" src="https://user-images.githubusercontent.com/25714207/59968259-eb346c80-9504-11e9-984c-8c13dff93a37.png"> should be `- self.min_components` rather than `- 1` This causes an indexing error when `min_components` does not equal 1
[ { "content": "# Copyright 2019 NeuroData (http://neurodata.io)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ...
[ { "content": "# Copyright 2019 NeuroData (http://neurodata.io)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ...
diff --git a/graspy/cluster/gclust.py b/graspy/cluster/gclust.py index 29b6bc07f..78d950399 100644 --- a/graspy/cluster/gclust.py +++ b/graspy/cluster/gclust.py @@ -240,6 +240,6 @@ def fit(self, X, y=None): self.n_components_ = best_component self.covariance_type_ = best_covariance - self.mod...