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
⌀
AUTOMATIC1111__stable-diffusion-webui-15135
[Bug]: Error when hitting ♻️ recycle button ### Checklist - [ ] The issue exists after disabling all extensions - [ ] The issue exists on a clean installation of webui - [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui - [ ] The issue exists in the current version of the w...
[ { "content": "from pathlib import Path\r\nfrom modules import errors\r\nimport csv\r\nimport os\r\nimport typing\r\nimport shutil\r\n\r\n\r\nclass PromptStyle(typing.NamedTuple):\r\n name: str\r\n prompt: str | None\r\n negative_prompt: str | None\r\n path: str | None = None\r\n\r\n\r\ndef merge_pro...
[ { "content": "from pathlib import Path\r\nfrom modules import errors\r\nimport csv\r\nimport os\r\nimport typing\r\nimport shutil\r\n\r\n\r\nclass PromptStyle(typing.NamedTuple):\r\n name: str\r\n prompt: str | None\r\n negative_prompt: str | None\r\n path: str | None = None\r\n\r\n\r\ndef merge_pro...
diff --git a/modules/styles.py b/modules/styles.py index 60bd8a7fb01..a9d8636a98d 100644 --- a/modules/styles.py +++ b/modules/styles.py @@ -42,7 +42,7 @@ def extract_style_text_from_prompt(style_text, prompt): stripped_style_text = style_text.strip() if "{prompt}" in stripped_style_text: - left, ...
googleapis__python-bigquery-1930
Retry requests.exceptions.ConnectionError Hi Team, Could you add a retry to this exception? We are running this code in Cloud Function and GKE infrastructure from time to time we get these errors Bigquery SDK == google-cloud-bigquery==3.18.0 ``` Error Type: <class 'requests.exceptions.ConnectionError'> error:...
[ { "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/google/cloud/bigquery/retry.py b/google/cloud/bigquery/retry.py index c9898287f..111034519 100644 --- a/google/cloud/bigquery/retry.py +++ b/google/cloud/bigquery/retry.py @@ -119,6 +119,14 @@ def _job_should_retry(exc): if isinstance(exc, exceptions.RetryError): exc = exc.cause + # Per ...
liqd__a4-product-360
[f2f module] wording Here are the wordings: 1 Edit face-to-face participation information Informationen zur Vor-Ort-Beteiligung bearbeiten 2 Title Titel 3 Highlighted Info Hervorgehobene Information 3a (Hilfetext) Highlight important information like the time or location of your face-to-face event ...
[ { "content": "from django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.dashboard.blueprints import ProjectBlueprint\nfrom meinberlin.apps.activities import phases as activities_phases\nfrom meinberlin.apps.budgeting import phases as budgeting_phases\nfrom meinberlin.apps.documents import phase...
[ { "content": "from django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.dashboard.blueprints import ProjectBlueprint\nfrom meinberlin.apps.activities import phases as activities_phases\nfrom meinberlin.apps.budgeting import phases as budgeting_phases\nfrom meinberlin.apps.documents import phase...
diff --git a/liqd_product/apps/dashboard/blueprints.py b/liqd_product/apps/dashboard/blueprints.py index cc762f19b..1fa867e1c 100644 --- a/liqd_product/apps/dashboard/blueprints.py +++ b/liqd_product/apps/dashboard/blueprints.py @@ -101,9 +101,11 @@ )), ('facetoface', ProjectBlueprint( - title=...
cal-itp__benefits-688
Engineering: Front-end - Redesign the `Get started with Login.gov` button Redesign the `Get started with Login.gov` button to new specs: - The text `Get started with` is moved into the button - New font required: Public Sans https://github.com/uswds/public-sans - Button should elegantly and responsively resize i...
[ { "content": "\"\"\"\nDjango settings for benefits project.\n\"\"\"\nimport os\n\n\ndef _filter_empty(ls):\n return [s for s in ls if s]\n\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n# SECURITY WARNING: ...
[ { "content": "\"\"\"\nDjango settings for benefits project.\n\"\"\"\nimport os\n\n\ndef _filter_empty(ls):\n return [s for s in ls if s]\n\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n# SECURITY WARNING: ...
diff --git a/benefits/settings.py b/benefits/settings.py index f8b6b6713c..8a1ff77725 100644 --- a/benefits/settings.py +++ b/benefits/settings.py @@ -267,7 +267,7 @@ def _filter_empty(ls): env_connect_src = _filter_empty(os.environ.get("DJANGO_CSP_CONNECT_SRC", "").split(",")) CSP_CONNECT_SRC.extend(env_connect_src)...
ansible-collections__community.general-7219
nsupdate-module fails If nothing has to be changed <!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain t...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016, Marcin Skarbek <github@skarbek.name>\n# Copyright (c) 2016, Andreas Olsson <andreas@arrakis.se>\n# Copyright (c) 2017, Loic Blot <loic.blot@unix-experience.fr>\n#\n# This module was ported from https://github.com/mskarbek/ansible-...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016, Marcin Skarbek <github@skarbek.name>\n# Copyright (c) 2016, Andreas Olsson <andreas@arrakis.se>\n# Copyright (c) 2017, Loic Blot <loic.blot@unix-experience.fr>\n#\n# This module was ported from https://github.com/mskarbek/ansible-...
diff --git a/changelogs/fragments/7219-fix-nsupdate-cname.yaml b/changelogs/fragments/7219-fix-nsupdate-cname.yaml new file mode 100644 index 00000000000..bd58eb883fb --- /dev/null +++ b/changelogs/fragments/7219-fix-nsupdate-cname.yaml @@ -0,0 +1,2 @@ +bugfixes: + - nsupdate - fix a possible ``list index out of range...
PaddlePaddle__PaddleSeg-1788
Kappa系数大于1 版本:Paddle2.2,PaddleSeg版本:2.3.0。在评估模型时发现**Kappa系数大于1**。请问这是什么情况? 如下图所示: ![image](https://user-images.githubusercontent.com/45912889/154666392-f4c4fd54-40ca-4589-8dce-4e867f777c23.png) 配置文件如下: ```batch_size: 2 iters: 80000 model: type: DeepLabV3P backbone: type: ResNet101_vd output_st...
[ { "content": "# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0...
[ { "content": "# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0...
diff --git a/paddleseg/utils/metrics.py b/paddleseg/utils/metrics.py index cbc4aec592..fb0ca49919 100644 --- a/paddleseg/utils/metrics.py +++ b/paddleseg/utils/metrics.py @@ -200,9 +200,9 @@ def kappa(intersect_area, pred_area, label_area): Returns: float: kappa coefficient. """ - intersect_area =...
pyca__cryptography-1422
Key versioning/key rotation support (wishlist) It would be nice if Fernet had built-in support for key versioning. I don't know exactly what the API would look like, but the idea would be to allow encrypting new data under a new key while still retaining the ability to decrypt old data that was encrypted under older k...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, so...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, so...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c8cec58de390..1d69d9cb016c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,8 @@ Changelog .. note:: This version is not yet released and is under active development. +* Added key-rotation support to :doc:`Fernet </fernet>` with + :class:`~cryptography.fer...
readthedocs__readthedocs.org-2304
MkDocs's media url shouldn't be hardcode with media_url = 'http://localhost:8000' + media_url In file `readthedocs.org/readthedocs/doc_builder/backends/mkdocs.py`: ``` python 55 # Set mkdocs config values 56 57 media_url = getattr(settings, 'MEDIA_URL', 'https://media.readthedocs.org') 58 59 # Mkd...
[ { "content": "import os\nimport logging\nimport json\nimport yaml\n\nfrom django.conf import settings\nfrom django.template import Context, loader as template_loader\n\nfrom readthedocs.doc_builder.base import BaseBuilder\n\nlog = logging.getLogger(__name__)\n\nTEMPLATE_DIR = '%s/readthedocs/templates/mkdocs/re...
[ { "content": "import os\nimport logging\nimport json\nimport yaml\n\nfrom django.conf import settings\nfrom django.template import Context, loader as template_loader\n\nfrom readthedocs.doc_builder.base import BaseBuilder\n\nlog = logging.getLogger(__name__)\n\nTEMPLATE_DIR = '%s/readthedocs/templates/mkdocs/re...
diff --git a/readthedocs/doc_builder/backends/mkdocs.py b/readthedocs/doc_builder/backends/mkdocs.py index 4833c99a636..e1ab80dbadc 100644 --- a/readthedocs/doc_builder/backends/mkdocs.py +++ b/readthedocs/doc_builder/backends/mkdocs.py @@ -58,7 +58,8 @@ def append_conf(self, **kwargs): # Mkdocs needs a full...
conda__conda-8268
conda config --get throws a traceback ``` (/root/dev) [root@21ca1df2ceaa conda]# conda config --set verbosity 1 (/root/dev) [root@21ca1df2ceaa conda]# conda config --get verbosity # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "/root/dev/lib/pytho...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (C) 2012 Anaconda, Inc\n# SPDX-License-Identifier: BSD-3-Clause\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import OrderedDict\nimport json\nfrom logging import getLogger\nimport os\nfrom os.path impor...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (C) 2012 Anaconda, Inc\n# SPDX-License-Identifier: BSD-3-Clause\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import OrderedDict\nimport json\nfrom logging import getLogger\nimport os\nfrom os.path impor...
diff --git a/conda/cli/main_config.py b/conda/cli/main_config.py index 766863676ae..c49b92fc644 100644 --- a/conda/cli/main_config.py +++ b/conda/cli/main_config.py @@ -252,7 +252,7 @@ def execute_config(args, parser): json_get[key] = rc_config[key] continue - if isinstanc...
kartoza__prj.app-805
Adding a category shows multiple duplicate entries in the pending queue I just added a new catagory to the version app When I went to the pending queue I saw this: ![screen shot 2018-02-28 at 22 17 13](https://user-images.githubusercontent.com/178003/36811119-62c69af6-1cd5-11e8-8689-f6475ff61d5a.png) When I ap...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"**View classes for Category**\n\n\"\"\"\n# noinspection PyUnresolvedReferences\nimport logging\nimport json\nfrom base.models import Project\nfrom django.core.urlresolvers import reverse\nfrom django.shortcuts import get_object_or_404\nfrom django.http import HttpRes...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"**View classes for Category**\n\n\"\"\"\n# noinspection PyUnresolvedReferences\nimport logging\nimport json\nfrom base.models import Project\nfrom django.core.urlresolvers import reverse\nfrom django.shortcuts import get_object_or_404\nfrom django.http import HttpRes...
diff --git a/django_project/changes/views/category.py b/django_project/changes/views/category.py index 1f810c879..2210cb7cb 100644 --- a/django_project/changes/views/category.py +++ b/django_project/changes/views/category.py @@ -601,7 +601,8 @@ def get_queryset(self): self.queryset = Category.unapprove...
digitalfabrik__integreat-cms-346
New user creation results in TypeError If one wants to create a new user via the network settings an error will occur. The user gets created anyway, but this should be fixed quite fast. ![grafik(1)](https://user-images.githubusercontent.com/15608678/77235502-78047780-6bb6-11ea-8fba-8e072c539c6f.png) New user creat...
[ { "content": "\"\"\"\nForm for creating a user object\n\"\"\"\nimport logging\n\nfrom django import forms\n\nfrom ...models import UserProfile\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass UserProfileForm(forms.ModelForm):\n\n class Meta:\n model = UserProfile\n fields = [\n '...
[ { "content": "\"\"\"\nForm for creating a user object\n\"\"\"\nimport logging\n\nfrom django import forms\n\nfrom ...models import UserProfile\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass UserProfileForm(forms.ModelForm):\n\n class Meta:\n model = UserProfile\n fields = [\n '...
diff --git a/src/cms/forms/users/user_profile_form.py b/src/cms/forms/users/user_profile_form.py index c425bf50bf..d04e082c2a 100644 --- a/src/cms/forms/users/user_profile_form.py +++ b/src/cms/forms/users/user_profile_form.py @@ -45,7 +45,6 @@ def save(self, *args, **kwargs): # check if called from UserPr...
angr__angr-1066
DOWNSIZE_Z3 is not correctly added to options This line doesn't include options which have numbers. https://github.com/angr/angr/blob/bcce17826b8b57b1fc924bc83eecb7c8e9ab0918/angr/sim_options.py#L293
[ { "content": "# This module contains the analysis options.\n# All variables with names of all caps will be registered as a state option to SimStateOptions.\n\nimport string\nfrom .sim_state_options import SimStateOptions\n\n# DEBUG options: these options cause angr to set breakpoints in various\n# places or rai...
[ { "content": "# This module contains the analysis options.\n# All variables with names of all caps will be registered as a state option to SimStateOptions.\n\nimport string\nfrom .sim_state_options import SimStateOptions\n\n# DEBUG options: these options cause angr to set breakpoints in various\n# places or rai...
diff --git a/angr/sim_options.py b/angr/sim_options.py index 4259625dff4..ed14b40786b 100644 --- a/angr/sim_options.py +++ b/angr/sim_options.py @@ -290,7 +290,7 @@ _g = globals().copy() for k, v in _g.items(): - if all([ char in string.uppercase + "_" for char in k ]) and type(v) is str: + if all([ char in s...
PyGithub__PyGithub-1417
Add support for editing project cards One more step towards full project support (https://github.com/PyGithub/PyGithub/issues/606) https://developer.github.com/v3/projects/cards/#update-a-project-card
[ { "content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2018 bbi-yggy <yossarian@blackbirdinteractive.com> #\n# ...
[ { "content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2018 bbi-yggy <yossarian@blackbirdinteractive.com> #\n# ...
diff --git a/github/ProjectCard.py b/github/ProjectCard.py index c961c59834..bc875d939a 100644 --- a/github/ProjectCard.py +++ b/github/ProjectCard.py @@ -162,6 +162,16 @@ def move(self, position, column): ) return status == 201 + def delete(self): + """ + :calls: `DELETE /projects/...
pyinstaller__pyinstaller-5128
Hook file for sqlalchemy misses hidden import "sqlalchemy.ext.baked" The provided hook file for sqlalchemy doesn't seem to pick up the hidden import of "sqlalchemy.ext.baked".
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2020, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2020, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
diff --git a/PyInstaller/hooks/hook-sqlalchemy.py b/PyInstaller/hooks/hook-sqlalchemy.py index 749ea99e75..46f291503e 100644 --- a/PyInstaller/hooks/hook-sqlalchemy.py +++ b/PyInstaller/hooks/hook-sqlalchemy.py @@ -22,7 +22,7 @@ # include most common database bindings # some database bindings are detected and include...
pypa__pipenv-5897
pipenv update --outdated became noisy ### Issue description `pipenv update --outdated` writes extensive INFO logs to console. Flags `--bare` and `--quiet` do not change this. The new behaviour began in release 2023.8.19 and persists at least through release 2023.8.22. ### Expected result Console output _with...
[ { "content": "import importlib.util\nimport json\nimport os\nimport sys\n\ntry:\n from functools import cached_property\nexcept ImportError:\n cached_property = property\n\n\ndef _ensure_modules():\n spec = importlib.util.spec_from_file_location(\n \"typing_extensions\",\n location=os.pat...
[ { "content": "import importlib.util\nimport json\nimport logging\nimport os\nimport sys\n\ntry:\n from functools import cached_property\nexcept ImportError:\n cached_property = property\n\n\ndef _ensure_modules():\n spec = importlib.util.spec_from_file_location(\n \"typing_extensions\",\n ...
diff --git a/news/5897.bugfix.rst b/news/5897.bugfix.rst new file mode 100644 index 0000000000..8584456641 --- /dev/null +++ b/news/5897.bugfix.rst @@ -0,0 +1 @@ +Set log level in resolver to WARN when verbose is not passed. diff --git a/pipenv/resolver.py b/pipenv/resolver.py index f89a10c15f..82e01ca394 100644 --- a/...
buildbot__buildbot-4099
Workers configured_on gets corrupted for multi-master https://github.com/buildbot/buildbot/issues/3981 fixed the issue of Workers configured_on getting corrupted. It works for single master scenario. However, for multi-master scenario, this bug is still present. I have two masters (running 1.1.1): 1: handling the w...
[ { "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/data/masters.py b/master/buildbot/data/masters.py index c459fc3e9160..99f25a790683 100644 --- a/master/buildbot/data/masters.py +++ b/master/buildbot/data/masters.py @@ -115,7 +115,7 @@ def expireMasters(self, forceHouseKeeping=False, _reactor=reactor): too_old = epoch2datetime(_re...
getsentry__sentry-4743
BadHeaderError: Header values can't contain newlines (got 'attachment; filename="vendor.js.map\r\n\n ... https://sentry.io/sentry/sentry/issues/202980928/ ``` BadHeaderError: Header values can't contain newlines (got 'attachment; filename="vendor.js.map\r\n\n "') (1 additional frame(s) were ...
[ { "content": "from __future__ import absolute_import\nimport posixpath\n\nfrom rest_framework import serializers\nfrom rest_framework.response import Response\n\nfrom sentry.api.base import DocSection\nfrom sentry.api.bases.project import ProjectEndpoint, ProjectReleasePermission\nfrom sentry.api.exceptions imp...
[ { "content": "from __future__ import absolute_import\nimport posixpath\n\nfrom rest_framework import serializers\nfrom rest_framework.response import Response\n\nfrom sentry.api.base import DocSection\nfrom sentry.api.bases.project import ProjectEndpoint, ProjectReleasePermission\nfrom sentry.api.exceptions imp...
diff --git a/src/sentry/api/endpoints/release_file_details.py b/src/sentry/api/endpoints/release_file_details.py index 58d50ad72bfc48..7db5f69859a366 100644 --- a/src/sentry/api/endpoints/release_file_details.py +++ b/src/sentry/api/endpoints/release_file_details.py @@ -80,7 +80,7 @@ def download(self, releasefile): ...
crytic__slither-357
solc-version detector: Missing 0.5.11 `0.5.11` is incorrectly reported as an old version.
[ { "content": "\"\"\"\n Check if an incorrect version of solc is used\n\"\"\"\n\nimport re\nfrom slither.detectors.abstract_detector import AbstractDetector, DetectorClassification\nfrom slither.formatters.attributes.incorrect_solc import format\n\n# group:\n# 0: ^ > >= < <= (optional)\n# 1: ' ' (optional)\n#...
[ { "content": "\"\"\"\n Check if an incorrect version of solc is used\n\"\"\"\n\nimport re\nfrom slither.detectors.abstract_detector import AbstractDetector, DetectorClassification\nfrom slither.formatters.attributes.incorrect_solc import format\n\n# group:\n# 0: ^ > >= < <= (optional)\n# 1: ' ' (optional)\n#...
diff --git a/slither/detectors/attributes/incorrect_solc.py b/slither/detectors/attributes/incorrect_solc.py index 54991722f6..105a725618 100644 --- a/slither/detectors/attributes/incorrect_solc.py +++ b/slither/detectors/attributes/incorrect_solc.py @@ -43,7 +43,7 @@ class IncorrectSolc(AbstractDetector): # Indic...
rotki__rotki-2259
test_upgrade_db_22_to_23_without_frontend_settings fails in OSX tests ## Problem Definition We noticed this in the nightly runs here: https://github.com/rotki/rotki/runs/1811061566?check_suite_focus=true It fails only in OSX and has never failed in linux. ``` ______________ test_upgrade_db_22_to_23_without_fr...
[ { "content": "import json\nfrom typing import TYPE_CHECKING\nfrom rotkehlchen.utils.misc import get_or_make_price_history_dir\nimport os\nfrom pathlib import Path\nimport glob\nimport shutil\n\nif TYPE_CHECKING:\n from rotkehlchen.db.dbhandler import DBHandler\n\n\ndef upgrade_v22_to_v23(db: 'DBHandler') -> ...
[ { "content": "import json\nfrom typing import TYPE_CHECKING\nfrom rotkehlchen.utils.misc import get_or_make_price_history_dir\nimport os\nfrom pathlib import Path\nimport glob\nimport shutil\n\nif TYPE_CHECKING:\n from rotkehlchen.db.dbhandler import DBHandler\n\n\ndef upgrade_v22_to_v23(db: 'DBHandler') -> ...
diff --git a/rotkehlchen/db/upgrades/v22_v23.py b/rotkehlchen/db/upgrades/v22_v23.py index fcba87342e..c380ec1c0d 100644 --- a/rotkehlchen/db/upgrades/v22_v23.py +++ b/rotkehlchen/db/upgrades/v22_v23.py @@ -51,6 +51,8 @@ def upgrade_v22_to_v23(db: 'DBHandler') -> None: db.conn.commit() # -- Now move forex h...
flairNLP__flair-1679
is corpus object reusable across ModelTrainer instances ? I have three checkpoint files generated from a training run that uses PooledFlair embedding. Say chk10.pt, chk20.pt, chk30.pt. I finalize using the following code in a for loop to get the F1 predictions out: trainer: ModelTrainer = ModelTrainer.load_checkp...
[ { "content": "import warnings\nfrom pathlib import Path\n\nimport torch.nn\n\nfrom abc import abstractmethod\n\nfrom typing import Union, List\n\nfrom torch.utils.data.dataset import Dataset\n\nimport flair\nfrom flair import file_utils\nfrom flair.data import DataPoint, Sentence\nfrom flair.datasets import Dat...
[ { "content": "import warnings\nfrom pathlib import Path\n\nimport torch.nn\n\nfrom abc import abstractmethod\n\nfrom typing import Union, List\n\nfrom torch.utils.data.dataset import Dataset\n\nimport flair\nfrom flair import file_utils\nfrom flair.data import DataPoint, Sentence\nfrom flair.datasets import Dat...
diff --git a/flair/nn.py b/flair/nn.py index b77ca6c090..9e09f0d9a5 100644 --- a/flair/nn.py +++ b/flair/nn.py @@ -85,7 +85,7 @@ def load(cls, model: Union[str, Path]): # load_big_file is a workaround by https://github.com/highway11git to load models on some Mac/Windows setups # see https://gi...
flairNLP__flair-418
macro_avg_f_score bug In the file flair/training_utils.py, when calculating macro_avg_f_score, I think 'recall' method should be called but 'precision' is called. ![image](https://user-images.githubusercontent.com/44130753/51589926-4b59bf00-1f23-11e9-964a-24ac0bc82589.png) i think it needs to write like this: `d...
[ { "content": "import itertools\nimport random\nimport logging\nfrom collections import defaultdict\nfrom enum import Enum\nfrom pathlib import Path\nfrom typing import List\nfrom flair.data import Dictionary, Sentence\nfrom functools import reduce\n\n\nclass Metric(object):\n\n def __init__(self, name):\n ...
[ { "content": "import itertools\nimport random\nimport logging\nfrom collections import defaultdict\nfrom enum import Enum\nfrom pathlib import Path\nfrom typing import List\nfrom flair.data import Dictionary, Sentence\nfrom functools import reduce\n\n\nclass Metric(object):\n\n def __init__(self, name):\n ...
diff --git a/flair/training_utils.py b/flair/training_utils.py index 45ccc94632..519b5feab9 100644 --- a/flair/training_utils.py +++ b/flair/training_utils.py @@ -80,7 +80,7 @@ def micro_avg_f_score(self): def macro_avg_f_score(self): class_precisions = [self.precision(class_name) for class_name in self...
opsdroid__opsdroid-1774
Mattermost connector is broken # Description The Mattermost connector is broken. It can connect to a Mattermost instance, but when sending a message to OpsDroid (using the Hello skill) you get: ``` ERROR opsdroid.core: Exception when running skill 'hello'. Traceback (most recent call last): File "/usr/local/li...
[ { "content": "\"\"\"A connector for Mattermost.\"\"\"\nimport logging\nimport json\n\nfrom mattermostdriver import Driver, Websocket\nfrom voluptuous import Required\n\nfrom opsdroid.connector import Connector, register_event\nfrom opsdroid.events import Message\n\n_LOGGER = logging.getLogger(__name__)\nCONFIG_...
[ { "content": "\"\"\"A connector for Mattermost.\"\"\"\nimport logging\nimport json\n\nfrom mattermostdriver import Driver, Websocket\nfrom voluptuous import Required\n\nfrom opsdroid.connector import Connector, register_event\nfrom opsdroid.events import Message\n\n_LOGGER = logging.getLogger(__name__)\nCONFIG_...
diff --git a/opsdroid/connector/mattermost/__init__.py b/opsdroid/connector/mattermost/__init__.py index 9f6f90a77..a04d2b5cc 100644 --- a/opsdroid/connector/mattermost/__init__.py +++ b/opsdroid/connector/mattermost/__init__.py @@ -95,10 +95,10 @@ async def process_message(self, raw_message): post = json....
pandas-dev__pandas-18844
TST: make _skip_if into pytest decorators - [X] _skip_if_32bit (#18693) - [X] _skip_if_no_mpl (#18427) - [X] _skip_if_mpl_1_5 (#18682) - [x] _skip_if_no_scipy (#18794) - [x] _skip_if_no_lzma (#18820) - [x] _skip_if_no_xarray (#18814) - [X] _skip_if_windows_python_3 (#18693) - [X] _skip_if_windows (#18693) - [x]...
[ { "content": "import pytest\n\nfrom distutils.version import LooseVersion\nimport numpy\nimport pandas\nimport pandas.util.testing as tm\nimport dateutil\n\n\ndef pytest_addoption(parser):\n parser.addoption(\"--skip-slow\", action=\"store_true\",\n help=\"skip slow tests\")\n parser.a...
[ { "content": "import pytest\n\nfrom distutils.version import LooseVersion\nimport numpy\nimport pandas\nimport dateutil\n\n\ndef pytest_addoption(parser):\n parser.addoption(\"--skip-slow\", action=\"store_true\",\n help=\"skip slow tests\")\n parser.addoption(\"--skip-network\", actio...
diff --git a/pandas/conftest.py b/pandas/conftest.py index b09119895617c..4cf5c9da44697 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -3,7 +3,6 @@ from distutils.version import LooseVersion import numpy import pandas -import pandas.util.testing as tm import dateutil @@ -51,7 +50,6 @@ def add_impor...
Cog-Creators__Red-DiscordBot-1588
Problem with backup Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already been suggested/reported ### Type: - [ ] Suggestion - [x ] Bug ### Brief description of the problem I get an error when trying to use backup. ### Expected behavior The bot ...
[ { "content": "import asyncio\nimport datetime\nimport importlib\nimport itertools\nimport logging\nimport os\nimport sys\nimport tarfile\nimport traceback\nfrom collections import namedtuple\nfrom pathlib import Path\nfrom random import SystemRandom\nfrom string import ascii_letters, digits\nfrom distutils.vers...
[ { "content": "import asyncio\nimport datetime\nimport importlib\nimport itertools\nimport logging\nimport os\nimport sys\nimport tarfile\nimport traceback\nfrom collections import namedtuple\nfrom pathlib import Path\nfrom random import SystemRandom\nfrom string import ascii_letters, digits\nfrom distutils.vers...
diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index e421653c421..d1d335d1026 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -878,7 +878,7 @@ async def backup(self, ctx): if data_dir.exists(): home = data_dir.home() backup_fil...
litestar-org__litestar-842
SQLAlchemy Session backend uses wrong column type in `SessionModelMixin` **Describe the bug** The SQLAlchem session backend uses `BLOB` as the datatype in the `SessionModelMixin`, which is not compatible with all databases.
[ { "content": "from abc import ABC, abstractmethod\nfrom datetime import datetime, timedelta\nfrom typing import TYPE_CHECKING, Any, Generic, Optional, Type, TypeVar, Union, cast\n\nimport anyio.to_thread\nimport sqlalchemy as sa\nfrom pydantic import validator\nfrom sqlalchemy.ext.asyncio import AsyncSession as...
[ { "content": "from abc import ABC, abstractmethod\nfrom datetime import datetime, timedelta\nfrom typing import TYPE_CHECKING, Any, Generic, Optional, Type, TypeVar, Union, cast\n\nimport anyio.to_thread\nimport sqlalchemy as sa\nfrom pydantic import validator\nfrom sqlalchemy.ext.asyncio import AsyncSession as...
diff --git a/starlite/middleware/session/sqlalchemy_backend.py b/starlite/middleware/session/sqlalchemy_backend.py index 25c73128ce..9e25aa3a9c 100644 --- a/starlite/middleware/session/sqlalchemy_backend.py +++ b/starlite/middleware/session/sqlalchemy_backend.py @@ -31,7 +31,7 @@ class SessionModelMixin: """Mixin ...
LMFDB__lmfdb-5459
Incompatible data in curve torsion field degree I look at http://www.lmfdb.org/EllipticCurve/Q/14450/b/1 At the end of the Galois representations block, the LMFDB currently states that the degree of the torsion field K = QQ(E[680]) is a degree `696320` Galois extension. With the given magma code, we can recompute...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport re\nimport yaml\nfrom flask import url_for\nfrom lmfdb import db\nfrom lmfdb.number_fields.web_number_field import formatfield\nfrom lmfdb.number_fields.number_field import unlatex\nfrom lmfdb.utils import web_latex, encode_plot, prop_int_pretty, raw_type...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport re\nimport yaml\nfrom flask import url_for\nfrom lmfdb import db\nfrom lmfdb.number_fields.web_number_field import formatfield\nfrom lmfdb.number_fields.number_field import unlatex\nfrom lmfdb.utils import web_latex, encode_plot, prop_int_pretty, raw_type...
diff --git a/lmfdb/elliptic_curves/web_ec.py b/lmfdb/elliptic_curves/web_ec.py index cc1e90ad9e..630b473932 100644 --- a/lmfdb/elliptic_curves/web_ec.py +++ b/lmfdb/elliptic_curves/web_ec.py @@ -350,7 +350,8 @@ def make_curve(self): M = ZZ(self.adelic_level) data['adelic_level_latex'] = web_la...
twisted__twisted-11615
Annotate twisted.python.failure.Failure.raiseException to show it never returns `raiseException` always raises an exception. This means that a pattern like: ``` if isinstance(failureOrSomething, Failure): failureOrSomething.raiseException() use(failureOrSomething) ``` is safe. However, mypy thinks it is...
[ { "content": "# -*- test-case-name: twisted.test.test_failure -*-\n# See also test suite twisted.test.test_pbfailure\n\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\n\"\"\"\nAsynchronous-friendly error mechanism.\n\nSee L{Failure}.\n\"\"\"\n\n\n# System Imports\nimport builtins\n...
[ { "content": "# -*- test-case-name: twisted.test.test_failure -*-\n# See also test suite twisted.test.test_pbfailure\n\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\n\"\"\"\nAsynchronous-friendly error mechanism.\n\nSee L{Failure}.\n\"\"\"\n\n\n# System Imports\nimport builtins\n...
diff --git a/src/twisted/newsfragments/11614.misc b/src/twisted/newsfragments/11614.misc new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/twisted/python/failure.py b/src/twisted/python/failure.py index c5a359e405b..23ab24fc896 100644 --- a/src/twisted/python/failure.py +++ b/src/twisted/python/failu...
microsoft__botbuilder-python-741
Fix versioning on dependencies Fix dependency package versions to be consistent with the rest of the libraries
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nimport os\nfrom setuptools import setup\n\nREQUIRES = [\n \"applicationinsights>=0.11.9\",\n \"botbuilder-schema>=4.4.0b1\",\n \"botframework-connector>=4.4.0b1\",\n \"botbuilder-core>=4.4...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nimport os\nfrom setuptools import setup\n\nREQUIRES = [\n \"applicationinsights>=0.11.9\",\n \"aiohttp==3.6.2\",\n \"botbuilder-schema>=4.7.1\",\n \"botframework-connector>=4.7.1\",\n \...
diff --git a/libraries/botbuilder-integration-applicationinsights-aiohttp/setup.py b/libraries/botbuilder-integration-applicationinsights-aiohttp/setup.py index 28b8dd9bb..ea8c2f359 100644 --- a/libraries/botbuilder-integration-applicationinsights-aiohttp/setup.py +++ b/libraries/botbuilder-integration-applicationinsig...
docker__docker-py-527
`Client.port` fails when called on a container with `network_mode=host` This happens because the response JSON has `None` for ports rather than an empty dictionary, which results in calling `None.get(portname)`, which barfs.
[ { "content": "# Copyright 2013 dotCloud inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless requir...
[ { "content": "# Copyright 2013 dotCloud inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless requir...
diff --git a/docker/client.py b/docker/client.py index 26adf2869..4c31343fe 100644 --- a/docker/client.py +++ b/docker/client.py @@ -702,9 +702,15 @@ def port(self, container, private_port): s_port = str(private_port) h_ports = None - h_ports = json_['NetworkSettings']['Ports'].get(s_port + '...
matrix-org__synapse-9270
Workers running under PyPy attempt to load psycopg2 (not psycopg2cffi) and crash <!-- **IF YOU HAVE SUPPORT QUESTIONS ABOUT RUNNING OR CONFIGURING YOUR OWN HOME SERVER**: You will likely get better support more quickly if you ask in ** #matrix:matrix.org ** ;) This is a bug report template. By following the in...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2017 New Vector Ltd\n# Copyright 2019-2021 The Matrix.org Foundation C.I.C\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#\...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2017 New Vector Ltd\n# Copyright 2019-2021 The Matrix.org Foundation C.I.C\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#\...
diff --git a/changelog.d/9270.misc b/changelog.d/9270.misc new file mode 100644 index 000000000000..908e5ee78b6c --- /dev/null +++ b/changelog.d/9270.misc @@ -0,0 +1 @@ +Restore PyPy compatibility by not calling CPython-specific GC methods when under PyPy. diff --git a/synapse/app/_base.py b/synapse/app/_base.py index ...
saulpw__visidata-1890
fixed width saver truncates data if columns are not fully expanded **Small description** If you save or syscopy a table as `fixed` format, and the visible column width is less than the width of the data in the column, the data is truncated. Also, the resulting file is not a valid fixed width format file as the colum...
[ { "content": "\nfrom visidata import VisiData, vd, Sheet, Column, Progress, SequenceSheet\n\n\nvd.option('fixed_rows', 1000, 'number of rows to check for fixed width columns')\nvd.option('fixed_maxcols', 0, 'max number of fixed-width columns to create (0 is no max)')\n\n@VisiData.api\ndef open_fixed(vd, p):\n ...
[ { "content": "\nfrom visidata import VisiData, vd, Sheet, Column, Progress, SequenceSheet\n\n\nvd.option('fixed_rows', 1000, 'number of rows to check for fixed width columns')\nvd.option('fixed_maxcols', 0, 'max number of fixed-width columns to create (0 is no max)')\n\n@VisiData.api\ndef open_fixed(vd, p):\n ...
diff --git a/visidata/loaders/fixed_width.py b/visidata/loaders/fixed_width.py index 684b644c9..c1f15eab1 100644 --- a/visidata/loaders/fixed_width.py +++ b/visidata/loaders/fixed_width.py @@ -84,8 +84,7 @@ def save_fixed(vd, p, *vsheets): widths = {} # Column -> width:int # headers ...
liqd__a4-meinberlin-2541
bplan template dates saved but not shown in Dashboard URL: https://mein.berlin.de/dashboard/projects/erweiterung-mauerpark-bebauungsplan-3-64-im-bezirk/bplan/ user: initiator expected behaviour: date and time that I have entered are still shown after saving form behaviour: dates are no longer shown after saving, no ...
[ { "content": "from django import forms\n\nfrom meinberlin.apps.extprojects.forms import ExternalProjectCreateForm\nfrom meinberlin.apps.extprojects.forms import ExternalProjectForm\n\nfrom . import models\n\n\nclass StatementForm(forms.ModelForm):\n class Meta:\n model = models.Statement\n fiel...
[ { "content": "from django import forms\n\nfrom meinberlin.apps.extprojects.forms import ExternalProjectCreateForm\nfrom meinberlin.apps.extprojects.forms import ExternalProjectForm\n\nfrom . import models\n\n\nclass StatementForm(forms.ModelForm):\n class Meta:\n model = models.Statement\n fiel...
diff --git a/meinberlin/apps/bplan/forms.py b/meinberlin/apps/bplan/forms.py index 21a4f0e96c..22feaecd0a 100644 --- a/meinberlin/apps/bplan/forms.py +++ b/meinberlin/apps/bplan/forms.py @@ -25,6 +25,7 @@ class BplanProjectForm(ExternalProjectForm): class Meta: model = models.Bplan fields = ['nam...
ansible__ansible-modules-core-3464
Git fetch for ansible-pull broken in devel when using -C ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME source_control/git ##### ANSIBLE VERSION ``` ansible 2.1.0 (devel cfe99b991f) last updated 2016/04/18 12:16:20 (GMT -700) lib/ansible/modules/core: (detached HEAD 5409ed1b28) last updated 2016/04/18 12:16:42 ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Michael DeHaan <michael.dehaan@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 ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Michael DeHaan <michael.dehaan@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 ...
diff --git a/source_control/git.py b/source_control/git.py index 1230b187477..1df1fc1aa0c 100644 --- a/source_control/git.py +++ b/source_control/git.py @@ -522,7 +522,7 @@ def fetch(git_path, module, repo, dest, version, remote, depth, bare, refspec): elif version == 'HEAD': refspecs.append('HEAD...
vyperlang__vyper-1595
Add docs for assert_modifiable ### What's your issue about? `assert_modifiable` was added in #1480 add docs for it. ### How can it be fixed? `^.^`
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Vyper documentation build configuration file, created by\n# sphinx-quickstart on Wed Jul 26 11:18:29 2017.\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 va...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Vyper documentation build configuration file, created by\n# sphinx-quickstart on Wed Jul 26 11:18:29 2017.\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 va...
diff --git a/docs/built-in-functions.rst b/docs/built-in-functions.rst index 4788433be3..1d0d5e22e7 100644 --- a/docs/built-in-functions.rst +++ b/docs/built-in-functions.rst @@ -10,453 +10,261 @@ contracts. .. _functions: -Functions -========= +.. py:function:: floor(value: decimal) -> int128 -**floor** -------...
PaddlePaddle__PaddleSpeech-3606
[TTS]windows下启动报错 For support and discussions, please use our [Discourse forums](https://github.com/PaddlePaddle/DeepSpeech/discussions). If you've found a bug then please create an issue with the following information: **Describe the bug** windows下启动`online-onnx`报错 **To Reproduce** Steps to reproduce the be...
[ { "content": "# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/paddlespeech/server/engine/tts/online/onnx/tts_engine.py b/paddlespeech/server/engine/tts/online/onnx/tts_engine.py index 9dd31a08b04..14204dde739 100644 --- a/paddlespeech/server/engine/tts/online/onnx/tts_engine.py +++ b/paddlespeech/server/engine/tts/online/onnx/tts_engine.py @@ -154,7 +154,7 @@ def _in...
getmoto__moto-1324
SNS.create_topic should be indempodent Per the [AWS SNS documentation](http://docs.aws.amazon.com/sns/latest/api/API_CreateTopic.html) the CreateTopic action should be idempotent. Expected: - create_topic should not overwrite an existing topic which already exists Results: - topic is overwritten without checkin...
[ { "content": "from __future__ import unicode_literals\n\nimport datetime\nimport uuid\nimport json\n\nimport boto.sns\nimport requests\nimport six\n\nfrom moto.compat import OrderedDict\nfrom moto.core import BaseBackend, BaseModel\nfrom moto.core.utils import iso_8601_datetime_with_milliseconds\nfrom moto.sqs ...
[ { "content": "from __future__ import unicode_literals\n\nimport datetime\nimport uuid\nimport json\n\nimport boto.sns\nimport requests\nimport six\n\nfrom moto.compat import OrderedDict\nfrom moto.core import BaseBackend, BaseModel\nfrom moto.core.utils import iso_8601_datetime_with_milliseconds\nfrom moto.sqs ...
diff --git a/moto/sns/models.py b/moto/sns/models.py index 856255be5b87..bf7c605e41b8 100644 --- a/moto/sns/models.py +++ b/moto/sns/models.py @@ -193,9 +193,12 @@ def update_sms_attributes(self, attrs): self.sms_attributes.update(attrs) def create_topic(self, name): - topic = Topic(name, self) -...
pyca__cryptography-3130
scrypt bounds checking ``` [11:23:58] <Alex_Gaynor> reaperhulk: what happens if you pass a non-even n? [11:24:10] <Alex_Gaynor> Or a negative value for any of the params? ``` Presumably it will fail with an assertion error on return from the call to `EVP_PBE_scrypt`, but we shouldn't allow those types of errors....
[ { "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\nfrom __future__ import absolute_import, division, print_function\n\nfrom cryptography import utils\nfrom cryptogr...
[ { "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\nfrom __future__ import absolute_import, division, print_function\n\nfrom cryptography import utils\nfrom cryptogr...
diff --git a/docs/hazmat/primitives/key-derivation-functions.rst b/docs/hazmat/primitives/key-derivation-functions.rst index 03260c06b675..511708d6d014 100644 --- a/docs/hazmat/primitives/key-derivation-functions.rst +++ b/docs/hazmat/primitives/key-derivation-functions.rst @@ -805,6 +805,9 @@ Different KDFs are suitab...
ivy-llc__ivy-17873
dropout1d
[ { "content": "# local\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes\n\nfrom ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back\n\n\n@to_ivy_arrays_and_back\n@with_unsupported_dtypes({\"2.0.1 and below\": (\"float16\",)}, \"torch\")\ndef dropout(input, p=0.5, training=T...
[ { "content": "# local\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes\n\nfrom ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back\n\n\n@to_ivy_arrays_and_back\n@with_unsupported_dtypes({\"2.0.1 and below\": (\"float16\",)}, \"torch\")\ndef dropout(input, p=0.5, training=T...
diff --git a/ivy/functional/frontends/torch/nn/functional/dropout_functions.py b/ivy/functional/frontends/torch/nn/functional/dropout_functions.py index d8261775f0fb4..79e35e56ce472 100644 --- a/ivy/functional/frontends/torch/nn/functional/dropout_functions.py +++ b/ivy/functional/frontends/torch/nn/functional/dropout_...
django-oscar__django-oscar-3895
Large number of baskets makes Order Admin page slow to load Found a bug? Please fill out the sections below. ### Issue Summary A summary of the issue. Our shop has a large number of baskets now. This mean that the basket dropdown in the order admin page takes about a minute to load. ### Steps to Reproduce ...
[ { "content": "from django.contrib import admin\n\nfrom oscar.core.loading import get_model\n\nOrder = get_model('order', 'Order')\nOrderNote = get_model('order', 'OrderNote')\nOrderStatusChange = get_model('order', 'OrderStatusChange')\nCommunicationEvent = get_model('order', 'CommunicationEvent')\nBillingAddre...
[ { "content": "from django.contrib import admin\n\nfrom oscar.core.loading import get_model\n\nOrder = get_model('order', 'Order')\nOrderNote = get_model('order', 'OrderNote')\nOrderStatusChange = get_model('order', 'OrderStatusChange')\nCommunicationEvent = get_model('order', 'CommunicationEvent')\nBillingAddre...
diff --git a/src/oscar/apps/order/admin.py b/src/oscar/apps/order/admin.py index 884529fd41f..06ec7e7d3ff 100644 --- a/src/oscar/apps/order/admin.py +++ b/src/oscar/apps/order/admin.py @@ -29,7 +29,7 @@ class OrderAdmin(admin.ModelAdmin): raw_id_fields = ['user', 'billing_address', 'shipping_address', ] list_...
frappe__frappe-8707
PDF Filename is broken when saving if it contains UTF-8 characters ## Description of the issue When trying to save a PDF using python 3 the filename is broken if it contains UTF-8 characters. ## Context information (for bug reports) **Output of `bench version`** ``` erpnext 12.x.x-develop frappe 12.x.x-develop...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# MIT License. See license.txt\n\nfrom __future__ import unicode_literals\nimport json\nimport datetime\nimport decimal\nimport mimetypes\nimport os\nimport frappe\nfrom frappe import _\nimport frappe.model.document\nimport frap...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# MIT License. See license.txt\n\nfrom __future__ import unicode_literals\nimport json\nimport datetime\nimport decimal\nimport mimetypes\nimport os\nimport frappe\nfrom frappe import _\nimport frappe.model.document\nimport frap...
diff --git a/frappe/utils/response.py b/frappe/utils/response.py index 796655fda649..886baf2c3745 100644 --- a/frappe/utils/response.py +++ b/frappe/utils/response.py @@ -90,7 +90,8 @@ def as_json(): def as_pdf(): response = Response() response.mimetype = "application/pdf" - response.headers["Content-Disposition"]...
kubeflow__pipelines-8359
[bug] Containerized Python Components `kfp.__version__ = 1.8.14` Trying the instructions at [2. Containerized Python components](https://www.kubeflow.org/docs/components/pipelines/v2/author-a-pipeline/components/#2-containerized-python-components): - command `kfp component build ...` results in error: "Error: No su...
[ { "content": "# Copyright 2021 The Kubeflow Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b...
[ { "content": "# Copyright 2021 The Kubeflow Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b...
diff --git a/sdk/python/kfp/cli/component.py b/sdk/python/kfp/cli/component.py index 1cf410fbe83..6e01dc65a95 100644 --- a/sdk/python/kfp/cli/component.py +++ b/sdk/python/kfp/cli/component.py @@ -171,10 +171,6 @@ def _load_components(self): module_name=module_name, module_directory=module_director...
pytorch__pytorch-5108
torch.nn.DataParallel supporting unequal sizes As documented [here](http://pytorch.org/docs/master/_modules/torch/nn/parallel/data_parallel.html): ``` The batch size should be larger than the number of GPUs used. It should also be an integer multiple of the number of GPUs so that each chunk is the same size...
[ { "content": "import torch\nfrom ..modules import Module\nfrom .scatter_gather import scatter_kwargs, gather\nfrom .replicate import replicate\nfrom .parallel_apply import parallel_apply\n\n\nclass DataParallel(Module):\n r\"\"\"Implements data parallelism at the module level.\n\n This container paralleli...
[ { "content": "import torch\nfrom ..modules import Module\nfrom .scatter_gather import scatter_kwargs, gather\nfrom .replicate import replicate\nfrom .parallel_apply import parallel_apply\n\n\nclass DataParallel(Module):\n r\"\"\"Implements data parallelism at the module level.\n\n This container paralleli...
diff --git a/torch/nn/parallel/data_parallel.py b/torch/nn/parallel/data_parallel.py index 2f43d49ea29cc6..7f297eff4efc01 100644 --- a/torch/nn/parallel/data_parallel.py +++ b/torch/nn/parallel/data_parallel.py @@ -14,9 +14,7 @@ class DataParallel(Module): and each replica handles a portion of the input. During th...
ansible__molecule-169
Ansible inventory SSH options for better testinfra support Testinfra doesn't inherit all of the SSH options that Molecule uses during the converge phase which was causing testinfra to not be able to run because it couldn't SSH to the VM. It was prompting to accept the SSH fingerprint and would just hang. Adding SSH's S...
[ { "content": "# Copyright (c) 2015 Cisco Systems\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, c...
[ { "content": "# Copyright (c) 2015 Cisco Systems\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, c...
diff --git a/molecule/commands.py b/molecule/commands.py index dddce4fe4e..5fbfa95b80 100644 --- a/molecule/commands.py +++ b/molecule/commands.py @@ -377,7 +377,10 @@ def execute(self, exit=True): return None, None self.molecule._write_ssh_config() - kwargs = {'env': self.molecule._env} ...
googleapis__python-bigquery-1520
Expose the QueryJob on the DBAPI cursor **Is your feature request related to a problem? Please describe.** I would like to store the `job_id` that references the job created after `cursor.execute` is called. Currently I do this: ```python job_id = dbapi_cursor._query_job.job_id ``` **Describe the solution yo...
[ { "content": "# Copyright 2017 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 2017 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/google/cloud/bigquery/dbapi/cursor.py b/google/cloud/bigquery/dbapi/cursor.py index 03f3b72ca..0dc8f56ab 100644 --- a/google/cloud/bigquery/dbapi/cursor.py +++ b/google/cloud/bigquery/dbapi/cursor.py @@ -79,6 +79,16 @@ def __init__(self, connection): self._query_job = None self._closed = ...
bookwyrm-social__bookwyrm-983
Can't follow user from wyrms.de **Describe the bug** A user (from wyrms.de) followed me, I followed back. My *followers*-page says I'm following her. My *following*-page doesn't list her. I can see a post from her in the federated feed but not in my home feed. When I go to her profile page, it says I'm following her b...
[ { "content": "\"\"\" activitypub-aware django model fields \"\"\"\nfrom dataclasses import MISSING\nimport re\nfrom uuid import uuid4\n\nimport dateutil.parser\nfrom dateutil.parser import ParserError\nfrom django.contrib.postgres.fields import ArrayField as DjangoArrayField\nfrom django.core.exceptions import ...
[ { "content": "\"\"\" activitypub-aware django model fields \"\"\"\nfrom dataclasses import MISSING\nimport re\nfrom uuid import uuid4\n\nimport dateutil.parser\nfrom dateutil.parser import ParserError\nfrom django.contrib.postgres.fields import ArrayField as DjangoArrayField\nfrom django.core.exceptions import ...
diff --git a/bookwyrm/models/fields.py b/bookwyrm/models/fields.py index 2aefae51ff..a1b2035b18 100644 --- a/bookwyrm/models/fields.py +++ b/bookwyrm/models/fields.py @@ -275,9 +275,12 @@ def field_to_activity(self, value): return [i.remote_id for i in value.all()] def field_from_activity(self, value): ...
mitmproxy__mitmproxy-3099
allow_remote=false does not prevent remote access ##### Steps to reproduce the problem: 1. Run mitmproxy on a publicly routable host, with default configuration including `listen_host=""`, `listen_port=8080`, and `allow_remote=false`. 2. From a host on a different network, send a request through that instance of mi...
[ { "content": "import ipaddress\nfrom mitmproxy import ctx\n\n\nclass AllowRemote:\n def load(self, loader):\n loader.add_option(\n \"allow_remote\", bool, False,\n \"\"\"\n Allow remote clients to connect to proxy. If set to false,\n client will not be able ...
[ { "content": "import ipaddress\nfrom mitmproxy import ctx\n\n\nclass AllowRemote:\n def load(self, loader):\n loader.add_option(\n \"allow_remote\", bool, False,\n \"\"\"\n Allow remote clients to connect to proxy. If set to false,\n client will not be able ...
diff --git a/mitmproxy/addons/allowremote.py b/mitmproxy/addons/allowremote.py index f1d3d8fbdf..ad4c494087 100644 --- a/mitmproxy/addons/allowremote.py +++ b/mitmproxy/addons/allowremote.py @@ -14,11 +14,13 @@ def load(self, loader): ) def clientconnect(self, layer): - address = layer.client_con...
django-cms__django-cms-4106
Alias plugin keeps causing typeerror I have no idea how you are supposed to use the alias plugin, but every time I have tried adding it to a page, it has completely broken that page and made it uneditable. The first time I ran some command line option to fix it, but this time neither fix-mptt or delete_orphaned_plugins...
[ { "content": "# -*- coding: utf-8 -*-\nfrom collections import defaultdict\nfrom itertools import groupby\nimport operator\nimport warnings\n\nfrom django.contrib.sites.models import Site, SITE_CACHE\nfrom django.shortcuts import get_object_or_404\nfrom django.template import NodeList, VariableNode, TemplateSyn...
[ { "content": "# -*- coding: utf-8 -*-\nfrom collections import defaultdict\nfrom itertools import groupby\nimport operator\nimport warnings\n\nfrom django.contrib.sites.models import Site, SITE_CACHE\nfrom django.shortcuts import get_object_or_404\nfrom django.template import NodeList, VariableNode, TemplateSyn...
diff --git a/cms/utils/plugins.py b/cms/utils/plugins.py index 7e4743849c6..904f938a7af 100644 --- a/cms/utils/plugins.py +++ b/cms/utils/plugins.py @@ -309,7 +309,7 @@ def build_plugin_tree(plugin_list): else: parent = cache[plugin.parent_id] parent.child_plugin_instances.append(plug...
agconti__cookiecutter-django-rest-195
Limit default pagination size to 10
[ { "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 0ff1e0319..c4bb0cc8c 100755 --- a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/common.py +++ b/{{cookiecu...
cisagov__manage.get.gov-908
Update Domain management permissions ### Issue Description Domain management, specifically that of DNS specific information, should be reserved for approved domain requests. Currently, if an item is in the list of registered domains and the status of the associated domain request switches to something like Withdraw...
[ { "content": "from django.db.models import F\nfrom django.shortcuts import render\n\nfrom registrar.models import DomainApplication\n\n\ndef index(request):\n \"\"\"This page is available to anyone without logging in.\"\"\"\n context = {}\n if request.user.is_authenticated:\n applications = Doma...
[ { "content": "from django.db.models import F\nfrom django.shortcuts import render\n\nfrom registrar.models import DomainApplication\n\n\ndef index(request):\n \"\"\"This page is available to anyone without logging in.\"\"\"\n context = {}\n if request.user.is_authenticated:\n applications = Doma...
diff --git a/src/registrar/tests/test_views.py b/src/registrar/tests/test_views.py index feb553bf7..b4795de72 100644 --- a/src/registrar/tests/test_views.py +++ b/src/registrar/tests/test_views.py @@ -1500,3 +1500,18 @@ def test_application_status_no_permissions(self): reverse(url_name, kwargs=...
pypa__setuptools-3042
[BUG] INFO log level is no longer default for some commands ### setuptools version 60.0.0 and newer ### Python version Python 3.8 ### OS OpenSUSE Tumbleweed ### Additional environment information _No response_ ### Description When running certain commands setuptools seems to log at a `WARN` level and not `INFO...
[ { "content": "import sys\nimport logging\nimport distutils.log\nfrom . import monkey\n\n\ndef _not_warning(record):\n return record.levelno < logging.WARNING\n\n\ndef configure():\n \"\"\"\n Configure logging to emit warning and above to stderr\n and everything else to stdout. This behavior is provi...
[ { "content": "import sys\nimport logging\nimport distutils.log\nfrom . import monkey\n\n\ndef _not_warning(record):\n return record.levelno < logging.WARNING\n\n\ndef configure():\n \"\"\"\n Configure logging to emit warning and above to stderr\n and everything else to stdout. This behavior is provi...
diff --git a/setuptools/logging.py b/setuptools/logging.py index dbead6e664..15b57613f6 100644 --- a/setuptools/logging.py +++ b/setuptools/logging.py @@ -24,6 +24,12 @@ def configure(): format="{message}", style='{', handlers=handlers, level=logging.DEBUG) monkey.patch_func(set_threshold, distutils.log, ...
mlflow__mlflow-6974
[BUG] mlflow-skinny not recognized as mlflow requirement when saving model ### Issues Policy acknowledgement - [X] I have read and agree to submit bug reports in accordance with the [issues policy](https://www.github.com/mlflow/mlflow/blob/master/ISSUE_POLICY.md) ### Willingness to contribute No. I cannot contribute...
[ { "content": "import yaml\nimport os\nimport logging\nimport sys\nimport re\nimport hashlib\n\nfrom mlflow.exceptions import MlflowException\nfrom mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE\nfrom mlflow.utils import PYTHON_VERSION\nfrom mlflow.utils.requirements_utils import (\n _parse_requi...
[ { "content": "import yaml\nimport os\nimport logging\nimport sys\nimport re\nimport hashlib\n\nfrom mlflow.exceptions import MlflowException\nfrom mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE\nfrom mlflow.utils import PYTHON_VERSION\nfrom mlflow.utils.requirements_utils import (\n _parse_requi...
diff --git a/mlflow/utils/environment.py b/mlflow/utils/environment.py index 4d6b455ed4fb9..fe70d0b5b7c5d 100644 --- a/mlflow/utils/environment.py +++ b/mlflow/utils/environment.py @@ -418,7 +418,7 @@ def _is_mlflow_requirement(requirement_string): try: # `Requirement` throws an `InvalidRequirement` excep...
searxng__searxng-1686
Bug: bing videos engine **Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG** Repository: https://github.com/searxng/searxng Branch: master Version: 2022.08.14-649d1a14 <!-- Check if these values are correct --> **How did you install SearXNG?** searxng-docke...
[ { "content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n# lint: pylint\n\"\"\"Bing (Videos)\n\n\"\"\"\n\nfrom json import loads\nfrom urllib.parse import urlencode\n\nfrom lxml import html\n\nfrom searx.utils import match_language\nfrom searx.engines.bing import language_aliases\n\nfrom searx.engines.bing i...
[ { "content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n# lint: pylint\n\"\"\"Bing (Videos)\n\n\"\"\"\n\nfrom json import loads\nfrom urllib.parse import urlencode\n\nfrom lxml import html\n\nfrom searx.utils import match_language\nfrom searx.engines.bing import language_aliases\n\nfrom searx.engines.bing i...
diff --git a/searx/engines/bing_videos.py b/searx/engines/bing_videos.py index 9be8eeaef6d..85071de21b1 100644 --- a/searx/engines/bing_videos.py +++ b/searx/engines/bing_videos.py @@ -80,7 +80,7 @@ def response(resp): dom = html.fromstring(resp.text) - for result in dom.xpath('//div[@class="dg_u"]'): + ...
django-cms__django-filer-585
KeyError when saving folder object from popup A KeyError 'location' occurs when saving a folder object from a file-chooser popup (popup opened from admin widget). ``` python Internal Server Error: /admin/filer/folder/1/ Traceback (most recent call last): File "/Users/rick/Development/project/venv/lib/python2.7/site-...
[ { "content": "#-*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nimport itertools\nimport os\nimport re\n\nfrom django import forms\nfrom django.conf import settings as django_settings\nfrom django.contrib import messages\nfrom django.contrib.admin import helpers\nfrom django.contrib.admin.util im...
[ { "content": "#-*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nimport itertools\nimport os\nimport re\n\nfrom django import forms\nfrom django.conf import settings as django_settings\nfrom django.contrib import messages\nfrom django.contrib.admin import helpers\nfrom django.contrib.admin.util im...
diff --git a/filer/admin/folderadmin.py b/filer/admin/folderadmin.py index a49a71de8..fea8b5de8 100644 --- a/filer/admin/folderadmin.py +++ b/filer/admin/folderadmin.py @@ -124,7 +124,7 @@ def response_change(self, request, obj): """ r = super(FolderAdmin, self).response_change(request, obj) ...
alltheplaces__alltheplaces-3804
boots.py spider doesn't correctly pick up all opticians The current test in boots.py to switch the brand tags for opticians is `properties["name"].startswith("Opticians - ")`: https://github.com/alltheplaces/alltheplaces/blob/master/locations/spiders/boots.py#L73 But this is not general enough to catch all of them....
[ { "content": "import scrapy\n\nfrom locations.items import GeojsonPointItem\n\n\nclass BootsSpider(scrapy.Spider):\n name = \"boots\"\n item_attributes = {\"brand\": \"Boots\", \"brand_wikidata\": \"Q6123139\"}\n allowed_domains = [\"www.boots.com\", \"www.boots.ie\"]\n download_delay = 0.5\n sta...
[ { "content": "import scrapy\n\nfrom locations.items import GeojsonPointItem\n\n\nclass BootsSpider(scrapy.Spider):\n name = \"boots\"\n item_attributes = {\"brand\": \"Boots\", \"brand_wikidata\": \"Q6123139\"}\n allowed_domains = [\"www.boots.com\", \"www.boots.ie\"]\n download_delay = 0.5\n sta...
diff --git a/locations/spiders/boots.py b/locations/spiders/boots.py index ef4a2b143c1..731c3c21230 100644 --- a/locations/spiders/boots.py +++ b/locations/spiders/boots.py @@ -70,10 +70,10 @@ def parse_stores(self, response): if hours: properties["opening_hours"] = hours - if properties[...
python__mypy-2973
When `a` has type `Any`, after `assert a is None`, the rest of the block is considered dead code Steps to reproduce: 1. Check out [this repo](https://github.com/benkuhn/mypy-repro) 2. Install the packages from `requirements.txt` 3. Run `mypy repro.py` from the repo root. Expected output: ``` repro.py:4: error...
[ { "content": "from collections import OrderedDict\nfrom typing import List, Optional\n\nfrom mypy.join import is_similar_callables, combine_similar_callables, join_type_list\nfrom mypy.types import (\n Type, AnyType, TypeVisitor, UnboundType, Void, ErrorType, NoneTyp, TypeVarType,\n Instance, CallableType...
[ { "content": "from collections import OrderedDict\nfrom typing import List, Optional\n\nfrom mypy.join import is_similar_callables, combine_similar_callables, join_type_list\nfrom mypy.types import (\n Type, AnyType, TypeVisitor, UnboundType, Void, ErrorType, NoneTyp, TypeVarType,\n Instance, CallableType...
diff --git a/mypy/meet.py b/mypy/meet.py index 7aa479c0eefc..03b8d1b58cbc 100644 --- a/mypy/meet.py +++ b/mypy/meet.py @@ -69,6 +69,10 @@ class C(A, B): ... TODO: Don't consider callables always overlapping. TODO: Don't consider type variables with values always overlapping. """ + # Any overlaps with ...
privacyidea__privacyidea-904
Add VASCO token type to web UI As we cannot generate new secrets by ourselves, we just add a possibility to enter a hex-encoded blob directly.
[ { "content": "# -*- coding: utf-8 -*-\n#\n# License: AGPLv3\n# contact: http://www.privacyidea.org\n#\n# 2018-01-15 Friedrich Weber <friedrich.weber@netknights.it>\n# Initial version of the VASCO token\n#\n# This code is free software; you can redistribute it and/or\n# modify it under the t...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# License: AGPLv3\n# contact: http://www.privacyidea.org\n#\n# 2018-01-15 Friedrich Weber <friedrich.weber@netknights.it>\n# Initial version of the VASCO token\n#\n# This code is free software; you can redistribute it and/or\n# modify it under the t...
diff --git a/doc/configuration/token_config.rst b/doc/configuration/token_config.rst index ac3cafe341..4e564e50e1 100644 --- a/doc/configuration/token_config.rst +++ b/doc/configuration/token_config.rst @@ -53,6 +53,7 @@ At the moment the following tokentypes are supported: * :ref:`ocra` - A basic OATH Challenge Respo...
ytdl-org__youtube-dl-3441
vimeo: video_thumbnail ValueError: invalid literal for int() with base 10: 'base' I have error with downloading one video from vimeo. video link: player.vimeo.com/video/100139426 When I run Windows executable (v2014.08.02.1) I got: ``` Traceback (most recent call last): File "__main__.py", line 18, in <module> Fi...
[ { "content": "# encoding: utf-8\nfrom __future__ import unicode_literals\n\nimport json\nimport re\nimport itertools\n\nfrom .common import InfoExtractor\nfrom .subtitles import SubtitlesInfoExtractor\nfrom ..utils import (\n compat_HTTPError,\n compat_urllib_parse,\n compat_urllib_request,\n clean_...
[ { "content": "# encoding: utf-8\nfrom __future__ import unicode_literals\n\nimport json\nimport re\nimport itertools\n\nfrom .common import InfoExtractor\nfrom .subtitles import SubtitlesInfoExtractor\nfrom ..utils import (\n compat_HTTPError,\n compat_urllib_parse,\n compat_urllib_request,\n clean_...
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py index 10844f39e68..11c7d7e817f 100644 --- a/youtube_dl/extractor/vimeo.py +++ b/youtube_dl/extractor/vimeo.py @@ -276,7 +276,7 @@ def _real_extract(self, url): if video_thumbnail is None: video_thumbs = config["video"].get(...
arviz-devs__arviz-374
Add API docs for plot_ppc https://arviz-devs.github.io/arviz/generated/arviz.plot_ppc.html#arviz.plot_ppc See Posterior Docs for example https://arviz-devs.github.io/arviz/generated/arviz.plot_posterior.html#arviz.plot_posterior
[ { "content": "\"\"\"Posterior predictive plot.\"\"\"\nimport numpy as np\nfrom .kdeplot import plot_kde, _fast_kde\nfrom .plot_utils import _scale_fig_size, _create_axes_grid, default_grid\n\n\ndef plot_ppc(\n data, kind=\"density\", alpha=0.2, mean=True, figsize=None, textsize=None, data_pairs=None\n):\n ...
[ { "content": "\"\"\"Posterior predictive plot.\"\"\"\nimport numpy as np\nfrom .kdeplot import plot_kde, _fast_kde\nfrom .plot_utils import _scale_fig_size, _create_axes_grid, default_grid\n\n\ndef plot_ppc(\n data, kind=\"density\", alpha=0.2, mean=True, figsize=None, textsize=None, data_pairs=None\n):\n ...
diff --git a/arviz/plots/ppcplot.py b/arviz/plots/ppcplot.py index 04dc8cc22c..5774700706 100644 --- a/arviz/plots/ppcplot.py +++ b/arviz/plots/ppcplot.py @@ -37,6 +37,25 @@ def plot_ppc( Returns ------- axes : matplotlib axes + + Examples + -------- + Plot the observed data KDE overlaid on post...
facebookresearch__fairseq-249
Combine outputs of bidirectional encoder It seems to me that the `view` method in the following function incorrectly mixes the outputs of different samples in a batch. In other words, I expect that `combine_bidir(outs)[:, 0, :].contiguous().view(-1)` to be exactly the same as `outs[:, 0, :].contiguous().view(-1)`. I te...
[ { "content": "# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n#\n# This source code is licensed under the license found in the LICENSE file in\n# the root directory of this source tree. An additional grant of patent rights\n# can be found in the PATENTS file in the same directory.\n\nimpor...
[ { "content": "# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n#\n# This source code is licensed under the license found in the LICENSE file in\n# the root directory of this source tree. An additional grant of patent rights\n# can be found in the PATENTS file in the same directory.\n\nimpor...
diff --git a/fairseq/models/lstm.py b/fairseq/models/lstm.py index 384644f09f..2da6d0b151 100644 --- a/fairseq/models/lstm.py +++ b/fairseq/models/lstm.py @@ -222,10 +222,7 @@ def forward(self, src_tokens, src_lengths): if self.bidirectional: def combine_bidir(outs): - return torc...
beetbox__beets-4196
deezer: Tolerate missing `track_position` field Currently I try to import some mixtapes = single long audio files which are mixed by a DJ and consisting of several titles. ### Problem The Deezer plugin is the reason beets crashes everytime. It also happened yesterday with normal tracks of an album (sorry I delete...
[ { "content": "# This file is part of beets.\n# Copyright 2019, Rahul Ahuja.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitatio...
[ { "content": "# This file is part of beets.\n# Copyright 2019, Rahul Ahuja.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitatio...
diff --git a/beetsplug/deezer.py b/beetsplug/deezer.py index 5f158f9366..d21b1e9edf 100644 --- a/beetsplug/deezer.py +++ b/beetsplug/deezer.py @@ -128,9 +128,9 @@ def _get_track(self, track_data): artist=artist, artist_id=artist_id, length=track_data['duration'], - inde...
napari__napari-6057
[ipython] File > Save Screenshot... warns about replacing if extension is provided ## 🐛 Bug If a napari viewer is launched from ipython and you use File > Save Screenshot... then everything works fine if you just enter a file name, **but if you specify the extension**—out of habit or to change the file format—then ...
[ { "content": "import os\nfrom pathlib import Path\nfrom typing import Any, Callable\n\nfrom qtpy.QtWidgets import QFileDialog, QMessageBox\n\nfrom napari.utils.misc import in_ipython\nfrom napari.utils.translations import trans\n\nHOME_DIRECTORY = str(Path.home())\n\n\nclass ScreenshotDialog(QFileDialog):\n ...
[ { "content": "import os\nfrom pathlib import Path\nfrom typing import Any, Callable\n\nfrom qtpy.QtWidgets import QFileDialog, QMessageBox\n\nfrom napari.utils.misc import in_ipython\nfrom napari.utils.translations import trans\n\nHOME_DIRECTORY = str(Path.home())\n\n\nclass ScreenshotDialog(QFileDialog):\n ...
diff --git a/napari/_qt/dialogs/_tests/test_screenshot_dialog.py b/napari/_qt/dialogs/_tests/test_screenshot_dialog.py new file mode 100644 index 00000000000..b4d94a69d67 --- /dev/null +++ b/napari/_qt/dialogs/_tests/test_screenshot_dialog.py @@ -0,0 +1,94 @@ +import pytest +from qtpy.QtCore import QTimer +from qtpy.Qt...
pymodbus-dev__pymodbus-2125
`ModbusSerialClient` does not handle `termios.error` on `connect` ### Versions - Python: 3.9.2 - OS: Linux 6.1.21-v8+ aarch64 GNU/Linux - HW: Raspberry Pi 4 - Pymodbus: `pymodbus==3.6.6`, `pyserial==3.5` - Modbus Hardware (if used): n/a ### Pymodbus Specific - Client: rtu - sync ### Description I a...
[ { "content": "\"\"\"Modbus client async serial communication.\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport time\nfrom functools import partial\nfrom typing import TYPE_CHECKING, Any\n\nfrom pymodbus.client.base import ModbusBaseClient, ModbusBaseSyncClient\nfrom pymodbus.exceptions import...
[ { "content": "\"\"\"Modbus client async serial communication.\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport time\nfrom functools import partial\nfrom typing import TYPE_CHECKING, Any\n\nfrom pymodbus.client.base import ModbusBaseClient, ModbusBaseSyncClient\nfrom pymodbus.exceptions import...
diff --git a/pymodbus/client/serial.py b/pymodbus/client/serial.py index 665f032fb..7726a3b33 100644 --- a/pymodbus/client/serial.py +++ b/pymodbus/client/serial.py @@ -218,7 +218,9 @@ def connect(self): if self.strict: self.socket.inter_byte_timeout = self.inter_byte_timeout ...
sbi-dev__sbi-618
Segfault on PyTorch 1.10 when data contains NaNs # Overview The title of this issue is my own interpretation of what is happening, after I experimented with a few versions of the package. On multiple machines and clusters where `sbi` is installed together with `torch` version 1.10.0, all the training from `sbi` ...
[ { "content": "# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed\n# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.\n\nfrom abc import ABC, abstractmethod\nfrom copy import deepcopy\nfrom datetime import datetime\nfrom pathlib import Path\nfrom...
[ { "content": "# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed\n# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.\n\nfrom abc import ABC, abstractmethod\nfrom copy import deepcopy\nfrom datetime import datetime\nfrom pathlib import Path\nfrom...
diff --git a/sbi/inference/base.py b/sbi/inference/base.py index 5e3118e76..cca39c2e8 100644 --- a/sbi/inference/base.py +++ b/sbi/inference/base.py @@ -252,7 +252,7 @@ def get_simulations( # Check for NaNs in simulations. is_valid_x, num_nans, num_infs = handle_invalid_x(x, exclude_invalid_x) ...
lra__mackup-1244
Does Mackup still sync SSH keys by default? Today I was using Mackup and I noticed this in the help documentation: > By default, Mackup syncs all application data (including private keys!) via Dropbox, but may be configured to exclude applications or use a different backend with a .mackup.cfg file. I really like ...
[ { "content": "\"\"\"Mackup.\n\nKeep your application settings in sync.\nCopyright (C) 2013-2015 Laurent Raufaste <http://glop.org/>\n\nUsage:\n mackup list\n mackup [options] backup\n mackup [options] restore\n mackup [options] uninstall\n mackup (-h | --help)\n mackup --version\n\nOptions:\n -h --help ...
[ { "content": "\"\"\"Mackup.\n\nKeep your application settings in sync.\nCopyright (C) 2013-2015 Laurent Raufaste <http://glop.org/>\n\nUsage:\n mackup list\n mackup [options] backup\n mackup [options] restore\n mackup [options] uninstall\n mackup (-h | --help)\n mackup --version\n\nOptions:\n -h --help ...
diff --git a/mackup/main.py b/mackup/main.py index 79b1da245..a712aba28 100644 --- a/mackup/main.py +++ b/mackup/main.py @@ -27,8 +27,8 @@ use it on any new system you use. 4. uninstall: reset everything as it was before using Mackup. -By default, Mackup syncs all application data (including some private keys!...
HypothesisWorks__hypothesis-2342
hypothesis 5.4.0 broken on python3.5.2 on Linux **hypothesis** version in my virtualenv, ``` $ pip freeze | grep hypo hypothesis==5.4.0 $ pip freeze | grep pytest pytest==5.3.5 $ uname -a Linux erdos 4.15.0-72-generic #81~16.04.1-Ubuntu SMP Tue Nov 26 16:34:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux ``` **Py...
[ { "content": "# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Most of this work is copyright (C) 2013-2020 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full list of people who ma...
[ { "content": "# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Most of this work is copyright (C) 2013-2020 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full list of people who ma...
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 0000000000..d4e5c7dd8e --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,5 @@ +RELEASE_TYPE: patch + +This patch fixes compatibility with Python 3.5.2 (:issue:`2334`). +Note that :doc:`we only test the lates...
lutris__lutris-2860
Bare PICO-8 invocation throws error Directly invoking the PICO-8 runner doesn't actually run PICO-8. The expected behavior is that PICO-8 should launch itself either in its default mode or "Splore" mode depending on the runner's configuration. The current behavior is that invoking the runner directly doesn't appe...
[ { "content": "\"\"\"Runner for the PICO-8 fantasy console\"\"\"\n# Standard Library\nimport json\nimport math\nimport os\nimport shutil\nfrom time import sleep\n\n# Lutris Modules\nfrom lutris import pga, settings\nfrom lutris.runners.runner import Runner\nfrom lutris.util import datapath, downloader, system\nf...
[ { "content": "\"\"\"Runner for the PICO-8 fantasy console\"\"\"\n# Standard Library\nimport json\nimport math\nimport os\nimport shutil\nfrom time import sleep\n\n# Lutris Modules\nfrom lutris import pga, settings\nfrom lutris.runners.runner import Runner\nfrom lutris.util import datapath, downloader, system\nf...
diff --git a/lutris/runners/pico8.py b/lutris/runners/pico8.py index c2c3a09f0d..b576d5e77d 100644 --- a/lutris/runners/pico8.py +++ b/lutris/runners/pico8.py @@ -154,6 +154,8 @@ def is_installed(self, version=None, fallback=True, min_version=None): return system.path_exists(os.path.join(settings.RUNNER_DIR, "...
ibis-project__ibis-3131
bug: uuid.UUID values are no longer accepted in ibis.literal ``` In [12]: import ibis In [13]: ibis.literal(uuid.uuid4(), type='uuid') IbisTypeError: argument passes none of the following rules: instance_of((<class 'shapely.geometry.base.BaseGeometry'>, <class 'bytes'>, <class 'datetime.date'>, <class 'datetime.da...
[ { "content": "import datetime\nimport enum\nimport functools\nimport itertools\n\nimport numpy as np\nimport pandas as pd\nfrom public import public\n\nfrom ...common import exceptions as com\nfrom .. import datatypes as dt\nfrom .. import rules as rlz\nfrom .. import types as ir\nfrom ..signature import Argume...
[ { "content": "import datetime\nimport enum\nimport functools\nimport itertools\nimport uuid\n\nimport numpy as np\nimport pandas as pd\nfrom public import public\n\nfrom ...common import exceptions as com\nfrom .. import datatypes as dt\nfrom .. import rules as rlz\nfrom .. import types as ir\nfrom ..signature ...
diff --git a/ibis/expr/operations/generic.py b/ibis/expr/operations/generic.py index 19c96cbd44f8..fe4cb8afa64f 100644 --- a/ibis/expr/operations/generic.py +++ b/ibis/expr/operations/generic.py @@ -2,6 +2,7 @@ import enum import functools import itertools +import uuid import numpy as np import pandas as pd @@ -...
pwndbg__pwndbg-1272
`pwndbg.gdblib.symbol.address` fail to handle the thread-local variables <img width="1289" alt="截圖 2022-10-11 下午4 46 56" src="https://user-images.githubusercontent.com/61896187/195043471-185d98a1-0df4-43af-ba68-54f8e0853e31.png"> `pwndbg.gdblib.symbol.address('tcache')` will get error instead of return `None`. Se...
[ { "content": "\"\"\"\nLooking up addresses for function names / symbols, and\nvice-versa.\n\nUses IDA when available if there isn't sufficient symbol\ninformation available.\n\"\"\"\nimport os\nimport re\n\nimport elftools.common.exceptions\nimport elftools.elf.constants\nimport elftools.elf.elffile\nimport elf...
[ { "content": "\"\"\"\nLooking up addresses for function names / symbols, and\nvice-versa.\n\nUses IDA when available if there isn't sufficient symbol\ninformation available.\n\"\"\"\nimport os\nimport re\n\nimport elftools.common.exceptions\nimport elftools.elf.constants\nimport elftools.elf.elffile\nimport elf...
diff --git a/pwndbg/gdblib/symbol.py b/pwndbg/gdblib/symbol.py index ee1ab9a208d..352ef15229a 100644 --- a/pwndbg/gdblib/symbol.py +++ b/pwndbg/gdblib/symbol.py @@ -211,7 +211,7 @@ def address(symbol: str) -> int: # If we try to look up a TLS variable when there is no TLS, this # exception occurs. Ide...
mitmproxy__mitmproxy-6581
Getting errors after terminating from mitmproxy console #### Problem Description Getting error log after terminating from the mitmproxy console when executing the io-write-file.py #### Steps to reproduce the behavior: 1. Run the cmd : mitmproxy io-write-file.py "/path/to/dump/file" 2. After running a while then q...
[ { "content": "\"\"\"\nThis module defines \"server instances\", which manage\nthe TCP/UDP servers spawned by mitmproxy as specified by the proxy mode.\n\nExample:\n\n mode = ProxyMode.parse(\"reverse:https://example.com\")\n inst = ServerInstance.make(mode, manager_that_handles_callbacks)\n await inst....
[ { "content": "\"\"\"\nThis module defines \"server instances\", which manage\nthe TCP/UDP servers spawned by mitmproxy as specified by the proxy mode.\n\nExample:\n\n mode = ProxyMode.parse(\"reverse:https://example.com\")\n inst = ServerInstance.make(mode, manager_that_handles_callbacks)\n await inst....
diff --git a/CHANGELOG.md b/CHANGELOG.md index b4cb9a8c11..73a46539f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ ## Unreleased: mitmproxy next +* Fix a bug where a traceback is shown during shutdown. + ([#6581](https://github.com/mitmproxy/mitmproxy/pull/6581), @mhils) ## 04 January 2024: m...
arviz-devs__arviz-1203
NoneType error with standard pymc3 workflow **Describe the bug** In a standard pymc3 sampling workflow (see below, simplified from [here](https://docs.pymc.io/notebooks/BEST.html)), an error occurs. This happens only with arviz 0.8.0, works with 0.7.0. I was not sure whether this is pymc3 or arviz related. **T...
[ { "content": "\"\"\"PyMC3-specific conversion code.\"\"\"\nimport logging\nimport warnings\nfrom typing import Dict, List, Any, Optional, Iterable, Union, TYPE_CHECKING\nfrom types import ModuleType\n\nimport numpy as np\nimport xarray as xr\nfrom .. import utils\nfrom .inference_data import InferenceData, conc...
[ { "content": "\"\"\"PyMC3-specific conversion code.\"\"\"\nimport logging\nimport warnings\nfrom typing import Dict, List, Any, Optional, Iterable, Union, TYPE_CHECKING\nfrom types import ModuleType\n\nimport numpy as np\nimport xarray as xr\nfrom .. import utils\nfrom .inference_data import InferenceData, conc...
diff --git a/CHANGELOG.md b/CHANGELOG.md index dc15d2647c..5c1f9fbaa8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### New features ### Maintenance and fixes +* fix bug in `from_pymc3` when used with PyMC3<3.9 (#1203) ### Deprecation diff --git a/arviz/data/io_pymc3.py b/arviz/data/io_pymc3.py ...
open-mmlab__mmcv-2549
typo in `imcrop` docstring https://github.com/open-mmlab/mmcv/blob/abb600ad8d34c0d1bc88b01c4d2526ebdea1f8dc/mmcv/image/geometric.py#L442-L443 I believe `padding` should be `scaling` here.
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport numbers\nfrom typing import List, Optional, Tuple, Union, no_type_check\n\nimport cv2\nimport numpy as np\n\nfrom ..utils import to_2tuple\nfrom .io import imread_backend\n\ntry:\n from PIL import Image\nexcept ImportError:\n Image = No...
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport numbers\nfrom typing import List, Optional, Tuple, Union, no_type_check\n\nimport cv2\nimport numpy as np\n\nfrom ..utils import to_2tuple\nfrom .io import imread_backend\n\ntry:\n from PIL import Image\nexcept ImportError:\n Image = No...
diff --git a/mmcv/image/geometric.py b/mmcv/image/geometric.py index b8a3cb1062..19931b29f8 100644 --- a/mmcv/image/geometric.py +++ b/mmcv/image/geometric.py @@ -440,7 +440,7 @@ def imcrop( img (ndarray): Image to be cropped. bboxes (ndarray): Shape (k, 4) or (4, ), location of cropped bboxes. ...
borgbackup__borg-1488
crash: manifest.timestamp == None? current git master: ``` [nix-shell:/run/media/ronny/backups]$ borg list borg::home-ronny-pc-2016-05-07T15:02:35+0200 --format '{path}{LF}' Local Exception. Traceback (most recent call last): File "/nix/store/lskgyhvci1wzzc4nv02g6f8c4dl3bhaf-borgbackup-1.0.6/lib/python3.4/site-packa...
[ { "content": "from .constants import ITEM_KEYS\nfrom .helpers import safe_encode, safe_decode\nfrom .helpers import bigint_to_int, int_to_bigint\nfrom .helpers import StableDict\n\n\nclass PropDict:\n \"\"\"\n Manage a dictionary via properties.\n\n - initialization by giving a dict or kw args\n - o...
[ { "content": "from .constants import ITEM_KEYS\nfrom .helpers import safe_encode, safe_decode\nfrom .helpers import bigint_to_int, int_to_bigint\nfrom .helpers import StableDict\n\n\nclass PropDict:\n \"\"\"\n Manage a dictionary via properties.\n\n - initialization by giving a dict or kw args\n - o...
diff --git a/src/borg/item.py b/src/borg/item.py index 0a0908c02b..d74bfdb554 100644 --- a/src/borg/item.py +++ b/src/borg/item.py @@ -259,6 +259,6 @@ class ManifestItem(PropDict): version = PropDict._make_property('version', int) archives = PropDict._make_property('archives', dict) # name -> dict - tim...
fedora-infra__bodhi-2506
bodhi releases should not prompt for password The newly added ```bodhi releases``` command group prompts the user for a password if ```--password``` is not used. The CLI will already prompt for a password if one is not given, so this is unnecessary and is actually burdensome when the user already has a cached session t...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright © 2014-2018 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either ve...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright © 2014-2018 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either ve...
diff --git a/bodhi/client/__init__.py b/bodhi/client/__init__.py index 3afe4cd293..01e9096b13 100644 --- a/bodhi/client/__init__.py +++ b/bodhi/client/__init__.py @@ -110,7 +110,7 @@ def _warn_if_url_and_staging_set(ctx, param, value): # Common releases options release_options = [ click.option('--username'), - ...
bokeh__bokeh-2009
Change default bokeh server backend to "memory" I have an embedded bokeh visualisation (using `autoload_server`) that is crashing strangely. The visualisation is composed of a dropdown widget, and 2 plots (Line & Patches). The dropdown controls the data displayed by the two plots. After running it, it initially behav...
[ { "content": "from __future__ import print_function\n\nimport argparse, os, sys\nimport imp\nimport logging\nfrom os.path import dirname\n\nimport werkzeug.serving\n\nfrom bokeh import __version__\nfrom bokeh.server.utils.reload import robust_reloader\nfrom bokeh.server.app import bokeh_app\nfrom bokeh.settings...
[ { "content": "from __future__ import print_function\n\nimport argparse, os, sys\nimport imp\nimport logging\nfrom os.path import dirname\n\nimport werkzeug.serving\n\nfrom bokeh import __version__\nfrom bokeh.server.utils.reload import robust_reloader\nfrom bokeh.server.app import bokeh_app\nfrom bokeh.settings...
diff --git a/bokeh/server/__init__.py b/bokeh/server/__init__.py index 492d77ed0d2..3cd9a2a583f 100644 --- a/bokeh/server/__init__.py +++ b/bokeh/server/__init__.py @@ -12,7 +12,7 @@ from bokeh.server.app import bokeh_app from bokeh.settings import settings -DEFAULT_BACKEND = os.environ.get('BOKEH_SERVER_DEFAULT_BA...
sublimelsp__LSP-945
[AC] AC not showing up with a "decorated" trigger Note: check if only DYNAMIC_COMPLETIONS are affected. When I supplement the completion by typing more characters, the completion widget goes away. ![Peek 2020-03-28 13-19](https://user-images.githubusercontent.com/2431823/77822869-db326480-70f6-11ea-82fa-207d26bdb...
[ { "content": "import sublime\nimport sublime_plugin\n\nfrom .core.configurations import is_supported_syntax\nfrom .core.edit import parse_text_edit\nfrom .core.logging import debug\nfrom .core.protocol import Request, Range, InsertTextFormat\nfrom .core.registry import session_for_view, client_from_session, LSP...
[ { "content": "import sublime\nimport sublime_plugin\n\nfrom .core.configurations import is_supported_syntax\nfrom .core.edit import parse_text_edit\nfrom .core.logging import debug\nfrom .core.protocol import Request, Range, InsertTextFormat\nfrom .core.registry import session_for_view, client_from_session, LSP...
diff --git a/plugin/completion.py b/plugin/completion.py index f8a4d951d..3b2b63e26 100644 --- a/plugin/completion.py +++ b/plugin/completion.py @@ -224,6 +224,8 @@ def initialize(self) -> None: 'triggerCharacters') or [] if trigger_chars: self.register_trigger_chars(sessi...
yt-project__yt-4644
BUG: instantiating a plot window that requires cartopy crash with internal error if cartopy isn't installed ### Bug report **Bug summary** most likely this regression is a side effect of #4621 **Code for reproduction** ```python import yt import yt.testing ds = yt.testing.fake_amr_ds( fields=[("gas...
[ { "content": "import sys\nfrom functools import wraps\nfrom importlib.util import find_spec\nfrom typing import Optional, Type\n\n\nclass NotAModule:\n \"\"\"\n A class to implement an informative error message that will be outputted if\n someone tries to use an on-demand import without having the requ...
[ { "content": "import sys\nfrom functools import wraps\nfrom importlib.util import find_spec\nfrom typing import Optional, Type\n\n\nclass NotAModule:\n \"\"\"\n A class to implement an informative error message that will be outputted if\n someone tries to use an on-demand import without having the requ...
diff --git a/yt/utilities/on_demand_imports.py b/yt/utilities/on_demand_imports.py index 8abe925af84..03919271eae 100644 --- a/yt/utilities/on_demand_imports.py +++ b/yt/utilities/on_demand_imports.py @@ -172,8 +172,8 @@ class NotCartopy(NotAModule): for cartopy imports. """ - def __init__(self, pkg_name...
frappe__frappe-25401
json_handler is not flexible enough to handle arbitrary objects ## Context I plugged frappe/insights into a Postgres database used by another _(non-Frappe)_ application. The postgres client returned `uuid.UUID` objects and given that there's no custom serializer, a TypeError was raised. ## Context information (f...
[ { "content": "# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nimport datetime\nimport decimal\nimport json\nimport mimetypes\nimport os\nimport sys\nfrom typing import TYPE_CHECKING\nfrom urllib.parse import quote\n\nimport werkzeug.utils\nfrom werkzeug.excep...
[ { "content": "# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nimport datetime\nimport decimal\nimport json\nimport mimetypes\nimport os\nimport sys\nimport uuid\nfrom typing import TYPE_CHECKING\nfrom urllib.parse import quote\n\nimport werkzeug.utils\nfrom w...
diff --git a/frappe/utils/response.py b/frappe/utils/response.py index 4b98bb3ad4f6..b80b08e522a4 100644 --- a/frappe/utils/response.py +++ b/frappe/utils/response.py @@ -7,6 +7,7 @@ import mimetypes import os import sys +import uuid from typing import TYPE_CHECKING from urllib.parse import quote @@ -231,6 +232,...
frappe__frappe-25399
json_handler is not flexible enough to handle arbitrary objects ## Context I plugged frappe/insights into a Postgres database used by another _(non-Frappe)_ application. The postgres client returned `uuid.UUID` objects and given that there's no custom serializer, a TypeError was raised. ## Context information (f...
[ { "content": "# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nimport datetime\nimport decimal\nimport json\nimport mimetypes\nimport os\nimport sys\nfrom typing import TYPE_CHECKING\nfrom urllib.parse import quote\n\nimport werkzeug.utils\nfrom werkzeug.excep...
[ { "content": "# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nimport datetime\nimport decimal\nimport json\nimport mimetypes\nimport os\nimport sys\nimport uuid\nfrom typing import TYPE_CHECKING\nfrom urllib.parse import quote\n\nimport werkzeug.utils\nfrom w...
diff --git a/frappe/utils/response.py b/frappe/utils/response.py index 4b98bb3ad4f6..b80b08e522a4 100644 --- a/frappe/utils/response.py +++ b/frappe/utils/response.py @@ -7,6 +7,7 @@ import mimetypes import os import sys +import uuid from typing import TYPE_CHECKING from urllib.parse import quote @@ -231,6 +232,...
mlflow__mlflow-9337
[BUG] MLFlow 2.6.0 PydanticUserError when importing mlflow w/ latest pydantic version ### Issues Policy acknowledgement - [X] I have read and agree to submit bug reports in accordance with the [issues policy](https://www.github.com/mlflow/mlflow/blob/master/ISSUE_POLICY.md) ### Willingness to contribute No, I ...
[ { "content": "# pylint: disable=wrong-import-position\n\"\"\"\nThe ``mlflow`` module provides a high-level \"fluent\" API for starting and managing MLflow runs.\nFor example:\n\n.. code:: python\n\n import mlflow\n\n mlflow.start_run()\n mlflow.log_param(\"my\", \"param\")\n mlflow.log_metric(\"scor...
[ { "content": "# pylint: disable=wrong-import-position\n\"\"\"\nThe ``mlflow`` module provides a high-level \"fluent\" API for starting and managing MLflow runs.\nFor example:\n\n.. code:: python\n\n import mlflow\n\n mlflow.start_run()\n mlflow.log_param(\"my\", \"param\")\n mlflow.log_metric(\"scor...
diff --git a/mlflow/__init__.py b/mlflow/__init__.py index 13238d308f6dc..641f52feeb139 100644 --- a/mlflow/__init__.py +++ b/mlflow/__init__.py @@ -241,9 +241,11 @@ "MlflowException", ] + _model_flavors_supported -# `mlflow.gateway` depends on optional dependencies such as pydantic. -# Importing this module fa...
flask-admin__flask-admin-552
Add Documentation for Changing "data-date-format" On DateTime Field I'm having a tough time figuring out how to change "data-date-format" on a datetime field by using form_args, form_widget_args, or form_overrides. Is that even possible? If it is, can we add it to the examples or the documentation?
[ { "content": "import warnings\nimport re\n\nfrom flask import request, url_for, redirect, flash, abort, json, Response\n\nfrom jinja2 import contextfunction\n\nfrom flask.ext.admin.babel import gettext\n\nfrom flask.ext.admin.base import BaseView, expose\nfrom flask.ext.admin.form import BaseForm, FormOpts, rul...
[ { "content": "import warnings\nimport re\n\nfrom flask import request, url_for, redirect, flash, abort, json, Response\n\nfrom jinja2 import contextfunction\n\nfrom flask.ext.admin.babel import gettext\n\nfrom flask.ext.admin.base import BaseView, expose\nfrom flask.ext.admin.form import BaseForm, FormOpts, rul...
diff --git a/doc/form_rules.rst b/doc/form_rules.rst index 732c30066..b1d236685 100644 --- a/doc/form_rules.rst +++ b/doc/form_rules.rst @@ -56,6 +56,47 @@ Form Rendering Rule Description :class:`flask.ext.admin.form.rules.FieldSet` Renders form header and child rules ==...
opsdroid__opsdroid-902
Constraints remove skills "forever" # Description The new constraints feature (which by the way, are an awesome feature) remove a skill "forever" when are activated. I write "forever" in quotes because the skills will be unavailable until Opsdroid is restarted. ## Steps to Reproduce - Add any constraint to a ...
[ { "content": "\"\"\"Core components of OpsDroid.\"\"\"\n\nimport copy\nimport logging\nimport os\nimport signal\nimport sys\nimport weakref\nimport asyncio\nimport contextlib\nimport inspect\n\nfrom opsdroid.const import DEFAULT_CONFIG_PATH\nfrom opsdroid.memory import Memory\nfrom opsdroid.connector import Con...
[ { "content": "\"\"\"Core components of OpsDroid.\"\"\"\n\nimport copy\nimport logging\nimport os\nimport signal\nimport sys\nimport weakref\nimport asyncio\nimport contextlib\nimport inspect\n\nfrom opsdroid.const import DEFAULT_CONFIG_PATH\nfrom opsdroid.memory import Memory\nfrom opsdroid.connector import Con...
diff --git a/opsdroid/core.py b/opsdroid/core.py index c27aefd1d..0bad5d390 100644 --- a/opsdroid/core.py +++ b/opsdroid/core.py @@ -422,11 +422,12 @@ async def _constrain_skills(self, skills, message): list: A list of the skills which were not constrained. """ - for skill in skills: - ...
fedora-infra__bodhi-2497
bodhi releases should not prompt for password The newly added ```bodhi releases``` command group prompts the user for a password if ```--password``` is not used. The CLI will already prompt for a password if one is not given, so this is unnecessary and is actually burdensome when the user already has a cached session t...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright © 2014-2018 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either ve...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright © 2014-2018 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either ve...
diff --git a/bodhi/client/__init__.py b/bodhi/client/__init__.py index 219aaa3d99..d987d7d954 100644 --- a/bodhi/client/__init__.py +++ b/bodhi/client/__init__.py @@ -110,7 +110,7 @@ def _warn_if_url_and_staging_set(ctx, param, value): # Common releases options release_options = [ click.option('--username'), - ...
python-poetry__poetry-3037
RuntimeError - [x] I am on the [latest](https://github.com/python-poetry/poetry/releases/latest) Poetry version. - [x] I have searched the [issues](https://github.com/python-poetry/poetry/issues) of this repo and believe that this is not a duplicate. - [x] If an exception occurs when executing a command, I executed i...
[ { "content": "\"\"\"\nThis script will install Poetry and its dependencies\nin isolation from the rest of the system.\n\nIt does, in order:\n\n - Downloads the latest stable (or pre-release) version of poetry.\n - Downloads all its dependencies in the poetry/_vendor directory.\n - Copies it and all extra fil...
[ { "content": "\"\"\"\nThis script will install Poetry and its dependencies\nin isolation from the rest of the system.\n\nIt does, in order:\n\n - Downloads the latest stable (or pre-release) version of poetry.\n - Downloads all its dependencies in the poetry/_vendor directory.\n - Copies it and all extra fil...
diff --git a/get-poetry.py b/get-poetry.py index 0df27239a9b..c14c9d4d6ec 100644 --- a/get-poetry.py +++ b/get-poetry.py @@ -159,15 +159,15 @@ def colorize(style, text): def temporary_directory(*args, **kwargs): try: from tempfile import TemporaryDirectory - - with TemporaryDirectory(*args, **kwar...
python-poetry__poetry-3031
RuntimeError - [x] I am on the [latest](https://github.com/python-poetry/poetry/releases/latest) Poetry version. - [x] I have searched the [issues](https://github.com/python-poetry/poetry/issues) of this repo and believe that this is not a duplicate. - [x] If an exception occurs when executing a command, I executed i...
[ { "content": "\"\"\"\nThis script will install Poetry and its dependencies\nin isolation from the rest of the system.\n\nIt does, in order:\n\n - Downloads the latest stable (or pre-release) version of poetry.\n - Downloads all its dependencies in the poetry/_vendor directory.\n - Copies it and all extra fil...
[ { "content": "\"\"\"\nThis script will install Poetry and its dependencies\nin isolation from the rest of the system.\n\nIt does, in order:\n\n - Downloads the latest stable (or pre-release) version of poetry.\n - Downloads all its dependencies in the poetry/_vendor directory.\n - Copies it and all extra fil...
diff --git a/get-poetry.py b/get-poetry.py index 0df27239a9b..c14c9d4d6ec 100644 --- a/get-poetry.py +++ b/get-poetry.py @@ -159,15 +159,15 @@ def colorize(style, text): def temporary_directory(*args, **kwargs): try: from tempfile import TemporaryDirectory - - with TemporaryDirectory(*args, **kwar...
databricks__koalas-1903
Support for Array type hints in APIs that take Python native functions (e.g., DataFrame.apply) ```python import databricks.koalas as ks def tokenizeDF(col1) -> ks.Series[np.array(... ???)]: pass ```
[ { "content": "#\n# Copyright (C) 2019 Databricks, 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...
[ { "content": "#\n# Copyright (C) 2019 Databricks, 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...
diff --git a/databricks/koalas/tests/test_typedef.py b/databricks/koalas/tests/test_typedef.py index 84162fcf0b..4f48ef96a4 100644 --- a/databricks/koalas/tests/test_typedef.py +++ b/databricks/koalas/tests/test_typedef.py @@ -16,11 +16,14 @@ import sys import unittest import datetime +import decimal +from typing im...
python-trio__trio-1575
Give a better diagnostic if user does trio.to_thread.run_sync(async_fn) #1513 fixed the `trio.from_thread` functions to give nice diagnostics here, but skipped `trio.to_thread`. Here's a real user who got confused by this: https://gitter.im/python-trio/general?at=5ed860e2b101510b203789ef
[ { "content": "import threading\nimport queue as stdlib_queue\nfrom itertools import count\n\nimport attr\nimport inspect\nimport outcome\n\nimport trio\n\nfrom ._sync import CapacityLimiter\nfrom ._core import (\n enable_ki_protection,\n disable_ki_protection,\n RunVar,\n TrioToken,\n start_threa...
[ { "content": "import threading\nimport queue as stdlib_queue\nfrom itertools import count\n\nimport attr\nimport inspect\nimport outcome\n\nimport trio\n\nfrom ._sync import CapacityLimiter\nfrom ._core import (\n enable_ki_protection,\n disable_ki_protection,\n RunVar,\n TrioToken,\n start_threa...
diff --git a/newsfragments/1573.bugfix.rst b/newsfragments/1573.bugfix.rst new file mode 100644 index 000000000..26fdec2be --- /dev/null +++ b/newsfragments/1573.bugfix.rst @@ -0,0 +1 @@ +Added a helpful error message if an async function is passed to `trio.to_thread.run_sync`. \ No newline at end of file diff --git a/...
mirumee__ariadne-523
Remove superfluous schema validation It turns out that `validate_schema` called in https://github.com/mirumee/ariadne/blob/master/ariadne/executable_schema.py#L26 is not needed here. In the other hand, `assert_validate_schema` is called here: https://github.com/mirumee/ariadne/blob/master/ariadne/executable_schema.p...
[ { "content": "from typing import Dict, List, Type, Union\n\nfrom graphql import (\n GraphQLSchema,\n assert_valid_schema,\n build_ast_schema,\n parse,\n validate_schema,\n)\n\nfrom .enums import set_default_enum_values_on_schema\nfrom .schema_visitor import SchemaDirectiveVisitor\nfrom .types imp...
[ { "content": "from typing import Dict, List, Type, Union\n\nfrom graphql import (\n GraphQLSchema,\n assert_valid_schema,\n build_ast_schema,\n parse,\n)\n\nfrom .enums import set_default_enum_values_on_schema\nfrom .schema_visitor import SchemaDirectiveVisitor\nfrom .types import SchemaBindable\n\n...
diff --git a/ariadne/executable_schema.py b/ariadne/executable_schema.py index 75647be85..e25ef61a3 100644 --- a/ariadne/executable_schema.py +++ b/ariadne/executable_schema.py @@ -5,7 +5,6 @@ assert_valid_schema, build_ast_schema, parse, - validate_schema, ) from .enums import set_default_enum_va...
celery__celery-5720
Getting error when write a unit test using PyTest for a celery task -> pytest.PytestUnknownMarkWarning: Unknown pytest.mark.celery I wrote the following bare minimum unit test class for celery ```python import pytest @pytest.fixture def celery_config(): return { "broker_url": "redis://localhost...
[ { "content": "\"\"\"Fixtures and testing utilities for :pypi:`py.test <pytest>`.\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nimport os\nfrom contextlib import contextmanager\n\nimport pytest\n\nfrom .testing import worker\nfrom .testing.app import TestApp, setup_default_app\n\nNO_WORKER =...
[ { "content": "\"\"\"Fixtures and testing utilities for :pypi:`py.test <pytest>`.\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nimport os\nfrom contextlib import contextmanager\n\nimport pytest\n\nfrom .testing import worker\nfrom .testing.app import TestApp, setup_default_app\n\nNO_WORKER =...
diff --git a/celery/contrib/pytest.py b/celery/contrib/pytest.py index ec5d79604d7..cd6ea45150a 100644 --- a/celery/contrib/pytest.py +++ b/celery/contrib/pytest.py @@ -15,6 +15,16 @@ # Well, they're called fixtures.... +def pytest_configure(config): + """Register additional pytest configuration.""" + # add ...
paperless-ngx__paperless-ngx-1057
[BUG] Download filename only contains created date when title is empty, even though correspondent is set ### Description When a document has not title, but a correspondent: When downloading such a document, the filename only contains the create date followed by a space and then the extension. So the correspondent is...
[ { "content": "import datetime\nimport logging\nimport os\nimport re\nfrom collections import OrderedDict\n\nimport dateutil.parser\nimport pathvalidate\nfrom django.conf import settings\nfrom django.contrib.auth.models import User\nfrom django.db import models\nfrom django.utils import timezone\nfrom django.uti...
[ { "content": "import datetime\nimport logging\nimport os\nimport re\nfrom collections import OrderedDict\n\nimport dateutil.parser\nimport pathvalidate\nfrom django.conf import settings\nfrom django.contrib.auth.models import User\nfrom django.db import models\nfrom django.utils import timezone\nfrom django.uti...
diff --git a/src/documents/models.py b/src/documents/models.py index b85c56037a3..0061e5d0fc4 100644 --- a/src/documents/models.py +++ b/src/documents/models.py @@ -233,10 +233,13 @@ def __str__(self): # Convert UTC database time to local time created = datetime.date.isoformat(timezone.localdate(self....
acl-org__acl-anthology-2974
Ingestion Request: CG-MTA 2023 (NoDaLiDa 2023 workshop) ### General information about this request - [X] I confirm that I have read the [Information for Submitters](https://aclanthology.org/info/contrib/). - [X] I am submitting a request for a **new venue** that does not exist in the ACL Anthology yet. ### Venue Iden...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Copyright 2021, 2022 Xinru Yan <xinru1414@gmail.com>\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# ...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Copyright 2021, 2022 Xinru Yan <xinru1414@gmail.com>\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# ...
diff --git a/bin/ingest_aclpub2.py b/bin/ingest_aclpub2.py index 6c4e960758..550186d35e 100755 --- a/bin/ingest_aclpub2.py +++ b/bin/ingest_aclpub2.py @@ -447,7 +447,7 @@ def process_proceeding( if re.match(r'(.)* [Ww]orkshop', event_name) is None: print( "* Warning: event name sh...
optuna__optuna-574
`study.trials_dataframe()` raises errors when the study does not have any trials. `study.trials_dataframe()` raises errors when the study does not have any study. I think it is supposed to return empty DataFrame. **Conditions** - Optuna version: 0.16.0 - Python version: Python 3.7.2 - OS: macOS 10.13.6 - Machine...
[ { "content": "import collections\nimport datetime\nimport gc\nimport math\nimport multiprocessing\nimport multiprocessing.pool\n\ntry:\n import pandas as pd # NOQA\n _pandas_available = True\nexcept ImportError as e:\n _pandas_import_error = e\n # trials_dataframe is disabled because pandas is not ...
[ { "content": "import collections\nimport datetime\nimport gc\nimport math\nimport multiprocessing\nimport multiprocessing.pool\n\ntry:\n import pandas as pd # NOQA\n _pandas_available = True\nexcept ImportError as e:\n _pandas_import_error = e\n # trials_dataframe is disabled because pandas is not ...
diff --git a/optuna/study.py b/optuna/study.py index 9a36bf2696..2379fe3854 100644 --- a/optuna/study.py +++ b/optuna/study.py @@ -334,6 +334,10 @@ def trials_dataframe(self, include_internal_fields=False): """ _check_pandas_availability() + # If no trials, return an empty dataframe. + ...
Lightning-Universe__lightning-bolts-282
[Representation Learning] MoCo licensing issues ## 📚 Documentation MoCo is licensed under "Attribution-NonCommercial 4.0 International". There should be a mention somewhere that the pytorch-lightning-bolts modified versions is also non-commercial.
[ { "content": "\"\"\"\nAdapted from: https://github.com/facebookresearch/moco\n\nOriginal work is: Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nThis implementation is: Copyright (c) PyTorch Lightning, Inc. and its affiliates. All Rights Reserved\n\"\"\"\n\nfrom argparse import ArgumentPa...
[ { "content": "\"\"\"\nAdapted from: https://github.com/facebookresearch/moco\n\nOriginal work is: Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nThis implementation is: Copyright (c) PyTorch Lightning, Inc. and its affiliates. All Rights Reserved\n\nThis implementation is licensed under A...
diff --git a/pl_bolts/models/self_supervised/moco/LICENSE b/pl_bolts/models/self_supervised/moco/LICENSE new file mode 100644 index 0000000000..50f2e656c8 --- /dev/null +++ b/pl_bolts/models/self_supervised/moco/LICENSE @@ -0,0 +1,399 @@ +Attribution-NonCommercial 4.0 International + +==================================...
pyinstaller__pyinstaller-8086
Marshal error of WindowsPath in find_binary_dependencies() ## Description of the issue I am trying to package a python project that is based on PySide6 in a windows executable, but PyInstaller fails with an exception. The value of the "output" variable (see stacktrace below) was: (['my_venv\\lib\\site-pack...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2023, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2023, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
diff --git a/PyInstaller/building/build_main.py b/PyInstaller/building/build_main.py index 078e2f57f9..2409a8fc72 100644 --- a/PyInstaller/building/build_main.py +++ b/PyInstaller/building/build_main.py @@ -201,7 +201,9 @@ def process_search_paths(): """ import os - dll_directorie...
pypa__pip-4661
pip un-vendored support is broken * Pip version: 9.0.1-465-g841f5dfb * Python version: 2.7.13 * Operating system: Arch Linux x86_64 ### What I've run: ```python > ./.tox/py27-novendor/bin/pip search test Traceback (most recent call last): File "./.tox/py27-novendor/bin/pip", line 7, in <module> from p...
[ { "content": "\"\"\"\npip._vendor is for vendoring dependencies of pip to prevent needing pip to\ndepend on something external.\n\nFiles inside of pip._vendor should be considered immutable and should only be\nupdated to versions from upstream.\n\"\"\"\nfrom __future__ import absolute_import\n\nimport glob\nimp...
[ { "content": "\"\"\"\npip._vendor is for vendoring dependencies of pip to prevent needing pip to\ndepend on something external.\n\nFiles inside of pip._vendor should be considered immutable and should only be\nupdated to versions from upstream.\n\"\"\"\nfrom __future__ import absolute_import\n\nimport glob\nimp...
diff --git a/src/pip/_vendor/__init__.py b/src/pip/_vendor/__init__.py index bee5f5e6fd3..1387dba3e77 100644 --- a/src/pip/_vendor/__init__.py +++ b/src/pip/_vendor/__init__.py @@ -70,11 +70,13 @@ def vendored(modulename): vendored("six") vendored("six.moves") vendored("six.moves.urllib") + vendored("...
pypa__setuptools-3296
[BUG] ImportError when using `importlib` with setuptools 60.9.0+ ### setuptools version `setuptools==62.1.0` (The repro below uses the latest setuptools version, however, the first affected version was `setuptools==60.9.0`) ### Python version Python 3.7 ### OS Docker image `python:3.7.13` which is Deb...
[ { "content": "import sys\n\n\ndef disable_importlib_metadata_finder(metadata):\n \"\"\"\n Ensure importlib_metadata doesn't provide older, incompatible\n Distributions.\n\n Workaround for #3102.\n \"\"\"\n try:\n import importlib_metadata\n except ImportError:\n return\n if...
[ { "content": "import sys\n\n\ndef disable_importlib_metadata_finder(metadata):\n \"\"\"\n Ensure importlib_metadata doesn't provide older, incompatible\n Distributions.\n\n Workaround for #3102.\n \"\"\"\n try:\n import importlib_metadata\n except ImportError:\n return\n ex...
diff --git a/CHANGES.rst b/CHANGES.rst index 5061ecb999..d5dec687c1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -339,6 +339,17 @@ Changes * #3098: Bump vendored packaging to 21.3. * Removed bootstrap script. +.. warning:: Users trying to install the unmaintained :pypi:`pathlib` backport + from PyPI/``sdist``/so...
holoviz__holoviews-3988
hv.save broken on master 1.13.0a2.post31+gdc5fe0b ``` import xarray as xr import holoviews as hv ds = xr.tutorial.open_dataset('air_temperature').isel(time=slice(0, 15)) hv.save(hv.Dataset(ds).to.image(['lon', 'lat']), 'test.html') ``` ``` ---------------------------------------------------------------------...
[ { "content": "import os, sys, inspect, shutil\n\nfrom collections import defaultdict\nfrom types import FunctionType\n\ntry:\n from pathlib import Path\nexcept:\n Path = None\n\nimport param\nfrom pyviz_comms import extension as _pyviz_extension\n\nfrom ..core import DynamicMap, HoloMap, Dimensioned, View...
[ { "content": "import os, sys, inspect, shutil\n\nfrom collections import defaultdict\nfrom types import FunctionType\n\ntry:\n from pathlib import Path\nexcept:\n Path = None\n\nimport param\nfrom pyviz_comms import extension as _pyviz_extension\n\nfrom ..core import DynamicMap, HoloMap, Dimensioned, View...
diff --git a/holoviews/util/__init__.py b/holoviews/util/__init__.py index 0fae8e1766..0c497eb204 100644 --- a/holoviews/util/__init__.py +++ b/holoviews/util/__init__.py @@ -752,7 +752,7 @@ def save(obj, filename, fmt='auto', backend=None, resources='cdn', **kwargs): filename = str(filename.absolute()) i...
modin-project__modin-980
Encoding error : `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 2: invalid continuation byte` <!-- 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 ...
[ { "content": "import numpy as np\nimport pandas\nfrom pandas.core.dtypes.cast import find_common_type\nfrom pandas.core.dtypes.concat import union_categoricals\nfrom pandas.io.common import _infer_compression\nfrom modin.engines.base.io import FileReader\nfrom modin.data_management.utils import split_result_of_...
[ { "content": "import numpy as np\nimport pandas\nfrom pandas.core.dtypes.cast import find_common_type\nfrom pandas.core.dtypes.concat import union_categoricals\nfrom pandas.io.common import _infer_compression\nfrom modin.engines.base.io import FileReader\nfrom modin.data_management.utils import split_result_of_...
diff --git a/modin/backends/pandas/parsers.py b/modin/backends/pandas/parsers.py index 922b947ab29..4a75c0983cc 100644 --- a/modin/backends/pandas/parsers.py +++ b/modin/backends/pandas/parsers.py @@ -76,7 +76,7 @@ def parse(fname, **kwargs): if start is not None and end is not None: # pop "compre...
nvaccess__nvda-8227
Request to add Swedish 8-dot Braille support I've had a request (From a Facebook user) to add support for Swedish 8-dot Braille, please. LibLouis does have support for Swedish 8-dot Braille.
[ { "content": "#brailleTables.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n#Copyright (C) 2008-2017 NV Access Limited, Joseph Lee\r\n\r\n\"\"\"Manages information about available braille translation tabl...
[ { "content": "#brailleTables.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n#Copyright (C) 2008-2017 NV Access Limited, Joseph Lee\r\n\r\n\"\"\"Manages information about available braille translation tabl...
diff --git a/source/brailleTables.py b/source/brailleTables.py index 351f50c10d8..607bec9d1a8 100644 --- a/source/brailleTables.py +++ b/source/brailleTables.py @@ -331,6 +331,9 @@ def listTables(): addTable("sa-in-g1.utb", _("Sanskrit grade 1")) # Translators: The name of a braille table displayed in the # braill...
AnalogJ__lexicon-111
unable to install transip dependencies or use transip plugin Output: pip install dns-lexicon[transip] ``` Requirement already satisfied: dns-lexicon[transip] in ./lib/python2.7/site-packages Requirement already satisfied: requests in ./lib/python2.7/site-packages (from dns-lexicon[transip]) Requirement already sati...
[ { "content": "\"\"\"A setuptools based setup module.\n\nSee:\nhttps://packaging.python.org/en/latest/distributing.html\nhttps://github.com/pypa/sampleproject\n\"\"\"\n\n# Always prefer setuptools over distutils\nfrom setuptools import setup, find_packages\n# To use a consistent encoding\nfrom codecs import open...
[ { "content": "\"\"\"A setuptools based setup module.\n\nSee:\nhttps://packaging.python.org/en/latest/distributing.html\nhttps://github.com/pypa/sampleproject\n\"\"\"\n\n# Always prefer setuptools over distutils\nfrom setuptools import setup, find_packages\n# To use a consistent encoding\nfrom codecs import open...
diff --git a/setup.py b/setup.py index e9819b4a5..56a34f873 100644 --- a/setup.py +++ b/setup.py @@ -86,9 +86,8 @@ # added to optional-requirements.txt as well. extras_require={ 'route53': ['boto3'], - 'transip': ['transip==0.1.0-dev'] + 'transip': ['transip>=0.3.0'] }, - depend...
django-compressor__django-compressor-66
GzipCompressorFileStorage returns URLs ending in .gz In addition to creating a gzipped version of the compressed files, `GzipCompressorFileStorage` appends a .gz at the end of URLs. This behavior is not documented, and I don't understand it. I want the gzipped version so that the webserver doesn't have to re-compress...
[ { "content": "import gzip\nfrom os import path\nfrom datetime import datetime\n\nfrom django.core.files.storage import FileSystemStorage, get_storage_class\nfrom django.utils.functional import LazyObject\n\nfrom compressor.conf import settings\n\n\nclass CompressorFileStorage(FileSystemStorage):\n \"\"\"\n ...
[ { "content": "import gzip\nfrom os import path\nfrom datetime import datetime\n\nfrom django.core.files.storage import FileSystemStorage, get_storage_class\nfrom django.utils.functional import LazyObject\n\nfrom compressor.conf import settings\n\n\nclass CompressorFileStorage(FileSystemStorage):\n \"\"\"\n ...
diff --git a/compressor/storage.py b/compressor/storage.py index 755c51fc9..a8cfac1c0 100644 --- a/compressor/storage.py +++ b/compressor/storage.py @@ -47,9 +47,6 @@ class GzipCompressorFileStorage(CompressorFileStorage): The standard compressor file system storage that gzips storage files additionally to th...