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
python__mypy-2247
join_types(UninhabitedType, t) should be t For some reason `join_simple` has logic to move `UninhabitedType` to the second argument but `join_types` does not.
[ { "content": "\"\"\"Calculation of the least upper bound types (joins).\"\"\"\n\nfrom typing import List\n\nfrom mypy.types import (\n Type, AnyType, NoneTyp, Void, TypeVisitor, Instance, UnboundType,\n ErrorType, TypeVarType, CallableType, TupleType, ErasedType, TypeList,\n UnionType, FunctionLike, Ov...
[ { "content": "\"\"\"Calculation of the least upper bound types (joins).\"\"\"\n\nfrom typing import List\n\nfrom mypy.types import (\n Type, AnyType, NoneTyp, Void, TypeVisitor, Instance, UnboundType,\n ErrorType, TypeVarType, CallableType, TupleType, ErasedType, TypeList,\n UnionType, FunctionLike, Ov...
diff --git a/mypy/join.py b/mypy/join.py index c6d63331b233..c88ed2b7e58f 100644 --- a/mypy/join.py +++ b/mypy/join.py @@ -82,6 +82,9 @@ def join_types(s: Type, t: Type) -> Type: if isinstance(s, NoneTyp) and not isinstance(t, NoneTyp): s, t = t, s + if isinstance(s, UninhabitedType) and not isinstan...
djangopackages__djangopackages-959
🐛 package_updater is missing the `all` argument **Describe the bug** The `package_updater` management command is missing the `all` argument. This means we should at least be testing that we can invoke `--help` on this command too. **To Reproduce** ``` root@web2:~# /usr/bin/docker compose -f /code/djangopackag...
[ { "content": "import logging\nfrom time import sleep\n\nimport djclick as click\nfrom django.conf import settings\nfrom django.db.models import F\nfrom django.utils import timezone\nfrom github3 import login as github_login\nfrom github3.exceptions import NotFoundError, UnexpectedResponse\nfrom rich import prin...
[ { "content": "import logging\nfrom time import sleep\n\nimport djclick as click\nfrom django.conf import settings\nfrom django.db.models import F\nfrom django.utils import timezone\nfrom github3 import login as github_login\nfrom github3.exceptions import NotFoundError, UnexpectedResponse\nfrom rich import prin...
diff --git a/package/management/commands/package_updater.py b/package/management/commands/package_updater.py index 3d97c8c1c..a0f1ac24b 100644 --- a/package/management/commands/package_updater.py +++ b/package/management/commands/package_updater.py @@ -24,7 +24,7 @@ def __init__(self, error, title): @click.command()...
encode__django-rest-framework-510
Bug : JSON integer won't match integer in a ChoiceField I have a Model with : ``` PENDING = 1 COMPLETE = 2 CANCELLED = 3 STATUS = ( (PENDING, 'Pending'), (COMPLETE, 'Complete'), (CANCELLED, 'Cancelled'), ) (...) status = models.PositiveIntegerField(default=COMPLETE, choices=STATUS) ``` And when I perform...
[ { "content": "import copy\nimport datetime\nimport inspect\nimport re\nimport warnings\n\nfrom io import BytesIO\n\nfrom django.core import validators\nfrom django.core.exceptions import ObjectDoesNotExist, ValidationError\nfrom django.core.urlresolvers import resolve, get_script_prefix\nfrom django.conf import...
[ { "content": "import copy\nimport datetime\nimport inspect\nimport re\nimport warnings\n\nfrom io import BytesIO\n\nfrom django.core import validators\nfrom django.core.exceptions import ObjectDoesNotExist, ValidationError\nfrom django.core.urlresolvers import resolve, get_script_prefix\nfrom django.conf import...
diff --git a/rest_framework/fields.py b/rest_framework/fields.py index da588082c9..903c384e36 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -794,7 +794,7 @@ def valid_value(self, value): if value == smart_unicode(k2): return True else:...
facebookresearch__ParlAI-1821
Obselete download link for CLEVR Dataset Apparently, the current link to CLEVR in the source code is "https://s3-us-west-1.amazonaws.com/clevr/CLEVR_v1.0.zip" that returns the message "All access to this object has been disabled" When I try to execute the following line of code `!python ~/ParlAI/examples/display_...
[ { "content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n# Download and build the data if it does not exist.\n\nimport parlai.core.build_data as build_...
[ { "content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n# Download and build the data if it does not exist.\n\nimport parlai.core.build_data as build_...
diff --git a/parlai/tasks/clevr/build.py b/parlai/tasks/clevr/build.py index 39b70209252..806c9fcf32b 100644 --- a/parlai/tasks/clevr/build.py +++ b/parlai/tasks/clevr/build.py @@ -22,7 +22,7 @@ def build(opt): # Download the data. fname = 'CLEVR_v1.0.zip' - url = 'https://s3-us-west-1.amazon...
pypi__warehouse-13060
OIDC publishers should be manageable within the admin app Breakout of #11296: PyPI's admins should be able to administrate OIDC publishers (both full and "pending") from within the admin app/views.
[ { "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, softw...
[ { "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, softw...
diff --git a/tests/unit/admin/views/test_projects.py b/tests/unit/admin/views/test_projects.py index 826b9ac4837e..25eabbb6c199 100644 --- a/tests/unit/admin/views/test_projects.py +++ b/tests/unit/admin/views/test_projects.py @@ -19,6 +19,7 @@ from pyramid.httpexceptions import HTTPBadRequest, HTTPMovedPermanently,...
ethereum__web3.py-3228
Add API to iterate through all events in a contract ### What was wrong? No easy way to get all events for a contract (while still parsing the results). See [this StackExchange question](https://ethereum.stackexchange.com/questions/54473/how-to-read-allevents-using-python-web3-theres-capability-in-web3-js). One optio...
[ { "content": "import copy\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Dict,\n Iterable,\n List,\n Optional,\n Sequence,\n Type,\n cast,\n)\n\nfrom eth_typing import (\n ChecksumAddress,\n)\nfrom eth_utils import (\n combomethod,\n)\nfrom eth_utils.toolz import...
[ { "content": "import copy\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Dict,\n Iterable,\n List,\n Optional,\n Sequence,\n Type,\n cast,\n)\n\nfrom eth_typing import (\n ChecksumAddress,\n)\nfrom eth_utils import (\n combomethod,\n)\nfrom eth_utils.toolz import...
diff --git a/docs/web3.contract.rst b/docs/web3.contract.rst index ee836ca349..f5082e29bb 100644 --- a/docs/web3.contract.rst +++ b/docs/web3.contract.rst @@ -944,6 +944,8 @@ For example: Fetches all logs for a given event within the specified block range or block hash. + Returns a list of decoded event logs ...
saleor__saleor-1389
Add robots meta tag and "nofollow" link attribute 1. Fragile pages should be not indexed by search engines. ``` <meta name=”robots” content=”nofollow, noindex”> ``` - [x] Add above meta tag to order's confirmation page 2. Pages that brings no to little content value should not be crawled ``` <meta name=”robots...
[ { "content": "from __future__ import unicode_literals\n\nfrom django.template.response import TemplateResponse\nfrom django.contrib import messages\nfrom django.conf import settings\nfrom django.utils.translation import pgettext_lazy\nfrom impersonate.views import impersonate as orig_impersonate\n\nfrom ..dashb...
[ { "content": "from __future__ import unicode_literals\n\nfrom django.template.response import TemplateResponse\nfrom django.contrib import messages\nfrom django.utils.translation import pgettext_lazy\nfrom impersonate.views import impersonate as orig_impersonate\n\nfrom ..dashboard.views import staff_member_req...
diff --git a/saleor/core/views.py b/saleor/core/views.py index d08fb5f9a1e..90e13056d3e 100644 --- a/saleor/core/views.py +++ b/saleor/core/views.py @@ -2,7 +2,6 @@ from django.template.response import TemplateResponse from django.contrib import messages -from django.conf import settings from django.utils.translat...
e-valuation__EvaP-1666
Make Typescript code Prettier We should add automated formatting for our typescript files. I think https://prettier.io/ is pretty good, but the choice is open for discussion. The formatting should be done in `manage.py format` and be checked in CI.
[ { "content": "import subprocess # nosec\n\nfrom django.core.management.base import BaseCommand\n\n\nclass Command(BaseCommand):\n args = \"\"\n help = \"Runs the code formatter\"\n requires_migrations_checks = False\n\n def handle(self, *args, **options):\n subprocess.run([\"black\", \"evap\...
[ { "content": "import subprocess # nosec\n\nfrom django.core.management.base import BaseCommand\n\n\nclass Command(BaseCommand):\n args = \"\"\n help = \"Runs the code formatter\"\n requires_migrations_checks = False\n\n def handle(self, *args, **options):\n subprocess.run([\"black\", \"evap\...
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6f3f6abb19..544304bc01 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -69,22 +69,29 @@ jobs: formatter: runs-on: ubuntu-18.04 - container: - image: python:3.7 - name: Formatting step...
qtile__qtile-1522
EzKey does not allow description I think the [EzKey constructor](https://github.com/qtile/qtile/blob/master/libqtile/config.py#L155) does not allow a description (no `kwds` variable) although [Key constructor](https://github.com/qtile/qtile/blob/master/libqtile/config.py#L53) does. Edit: Why do you set the descript...
[ { "content": "# Copyright (c) 2012-2015 Tycho Andersen\n# Copyright (c) 2013 xarvh\n# Copyright (c) 2013 horsik\n# Copyright (c) 2013-2014 roger\n# Copyright (c) 2013 Tao Sauvage\n# Copyright (c) 2014 ramnes\n# Copyright (c) 2014 Sean Vig\n# Copyright (c) 2014 Adi Sieker\n#\n# Permission is hereby granted, free...
[ { "content": "# Copyright (c) 2012-2015 Tycho Andersen\n# Copyright (c) 2013 xarvh\n# Copyright (c) 2013 horsik\n# Copyright (c) 2013-2014 roger\n# Copyright (c) 2013 Tao Sauvage\n# Copyright (c) 2014 ramnes\n# Copyright (c) 2014 Sean Vig\n# Copyright (c) 2014 Adi Sieker\n#\n# Permission is hereby granted, free...
diff --git a/libqtile/config.py b/libqtile/config.py index dacff71672..0e53fc66f2 100644 --- a/libqtile/config.py +++ b/libqtile/config.py @@ -152,9 +152,9 @@ def parse(self, spec): class EzKey(EzConfig, Key): - def __init__(self, keydef, *commands): + def __init__(self, keydef, *commands, **kwargs): ...
liberapay__liberapay.com-1156
Support avatars from Gitlab Quite a number of open-source projects are hosted on Gitlab, including mine. With Libavatar [shutting down](https://blog.libravatar.org/posts/Libravatar.org_is_shutting_down_on_2018-09-01/), it'd be nice to have an alternative that doesn't require creating an account on a proprietary serv...
[ { "content": "# coding: utf8\nfrom __future__ import print_function, unicode_literals\n\nfrom collections import namedtuple, OrderedDict\nfrom datetime import date, datetime, timedelta\nfrom decimal import Decimal, ROUND_UP\nimport re\n\nfrom jinja2 import StrictUndefined\nfrom mangopay.utils import Money\nfrom...
[ { "content": "# coding: utf8\nfrom __future__ import print_function, unicode_literals\n\nfrom collections import namedtuple, OrderedDict\nfrom datetime import date, datetime, timedelta\nfrom decimal import Decimal, ROUND_UP\nimport re\n\nfrom jinja2 import StrictUndefined\nfrom mangopay.utils import Money\nfrom...
diff --git a/liberapay/constants.py b/liberapay/constants.py index 0d2c2efeb8..8a8b76770f 100644 --- a/liberapay/constants.py +++ b/liberapay/constants.py @@ -57,7 +57,9 @@ def with_vat(self): "-_.") AVATAR_QUERY = '?s=160&default=retro' -AVATAR_SOURCES = 'libravatar bitbucket facebo...
deepset-ai__haystack-7396
`HuggingFaceTGIChatGenerator` does not work properly in a Pipeline **Describe the bug** Reported on Discord, reproducible. [Our example in docs](https://docs.haystack.deepset.ai/docs/huggingfacetgichatgenerator#in-a-pipeline) is broken. **To Reproduce** ```python from haystack.components.builders import DynamicC...
[ { "content": "from dataclasses import asdict\nfrom typing import Any, Callable, Dict, Iterable, List, Optional\nfrom urllib.parse import urlparse\n\nfrom haystack import component, default_from_dict, default_to_dict, logging\nfrom haystack.dataclasses import ChatMessage, StreamingChunk\nfrom haystack.lazy_impor...
[ { "content": "from dataclasses import asdict\nfrom typing import Any, Callable, Dict, Iterable, List, Optional\nfrom urllib.parse import urlparse\n\nfrom haystack import component, default_from_dict, default_to_dict, logging\nfrom haystack.dataclasses import ChatMessage, StreamingChunk\nfrom haystack.lazy_impor...
diff --git a/haystack/components/generators/chat/hugging_face_tgi.py b/haystack/components/generators/chat/hugging_face_tgi.py index 3e388a008d..95adbe792d 100644 --- a/haystack/components/generators/chat/hugging_face_tgi.py +++ b/haystack/components/generators/chat/hugging_face_tgi.py @@ -16,6 +16,7 @@ logger = loggi...
falconry__falcon-981
Doc site: On small screen height, sidebar ("Navigation") clips at bottom. Using a laptop with 768 pixels height resolution. ![sidebar_clip](https://cloud.githubusercontent.com/assets/13870149/21928904/8a6fef78-d9b3-11e6-847f-af666a42c113.png)
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Falcon documentation build configuration file, created by\n# sphinx-quickstart on Wed Mar 12 14:14:02 2014.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Falcon documentation build configuration file, created by\n# sphinx-quickstart on Wed Mar 12 14:14:02 2014.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi...
diff --git a/docs/_static/custom.css b/docs/_static/custom.css index 34a4ad865..67d13d9e8 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -14,6 +14,10 @@ display: none; } +#logo { + position: relative; +} + #logo a, #logo a:hover { border-bottom: none; @@ -32,12 +36,12 @@ fo...
yt-project__yt-4463
BUG: setting a boolean parameter via the command line break runtime ### Bug report **Bug summary** **Code for reproduction** ```shell $ yt config set --local yt colored_logs true && python -c "import yt" ``` **Actual outcome** <!--The output produced by the above code, which may be a screenshot, cons...
[ { "content": "import os\nimport sys\nimport warnings\nfrom pathlib import Path\nfrom typing import Callable, List\n\nimport tomli_w\nfrom more_itertools import always_iterable\n\nfrom yt.utilities.configuration_tree import ConfigLeaf, ConfigNode\n\nif sys.version_info >= (3, 11):\n import tomllib\nelse:\n ...
[ { "content": "import os\nimport sys\nimport warnings\nfrom pathlib import Path\nfrom typing import Callable, List\n\nimport tomli_w\nfrom more_itertools import always_iterable\n\nfrom yt.utilities.configuration_tree import ConfigLeaf, ConfigNode\n\nif sys.version_info >= (3, 11):\n import tomllib\nelse:\n ...
diff --git a/yt/utilities/configure.py b/yt/utilities/configure.py index 7894b63314f..64a034b7ee7 100644 --- a/yt/utilities/configure.py +++ b/yt/utilities/configure.py @@ -161,9 +161,9 @@ def _repr_json_(self): def _cast_bool_helper(value): - if value == "True": + if value in ("true", "True", True): ...
pretalx__pretalx-381
installation crashes when there are no config files ## Current Behavior ``` $ cd pretalx $ pip-3.6 install . --user (...) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 9...
[ { "content": "import configparser\nimport os\nimport sys\n\nfrom pretalx.common.settings.utils import reduce_dict\n\nCONFIG = {\n 'filesystem': {\n 'base': {\n 'default': os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))),\n },\n 'logs': {\n ...
[ { "content": "import configparser\nimport os\nimport sys\n\nfrom pretalx.common.settings.utils import reduce_dict\n\nCONFIG = {\n 'filesystem': {\n 'base': {\n 'default': os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))),\n },\n 'logs': {\n ...
diff --git a/src/pretalx/common/settings/config.py b/src/pretalx/common/settings/config.py index f89488e514..70b8a56172 100644 --- a/src/pretalx/common/settings/config.py +++ b/src/pretalx/common/settings/config.py @@ -128,7 +128,7 @@ def read_config_files(config): os.path.expanduser('~/.pretalx.cfg'), ...
TileDB-Inc__TileDB-Py-501
Four components should be three components? In the recently created example "writing_dense_rgb.py" there is this fragment: https://github.com/TileDB-Inc/TileDB-Py/blob/75ddcf56ed80ba5e1a1237b7e527ec4fbd87abb9/examples/writing_dense_rgb.py#L56-L57 It says four int32 components where it seems like it should be three ...
[ { "content": "# writing_dense_rgb.py\n#\n# LICENSE\n#\n# The MIT License\n#\n# Copyright (c) 2021 TileDB, Inc.\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 restrict...
[ { "content": "# writing_dense_rgb.py\n#\n# LICENSE\n#\n# The MIT License\n#\n# Copyright (c) 2021 TileDB, Inc.\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 restrict...
diff --git a/examples/writing_dense_rgb.py b/examples/writing_dense_rgb.py index 8a2dfd1b6b..20a0669b37 100644 --- a/examples/writing_dense_rgb.py +++ b/examples/writing_dense_rgb.py @@ -53,7 +53,7 @@ def create_array(): ), ) - # create multi-component attribute with four int32 components + # crea...
flairNLP__flair-1713
encoding error while loading WIKINER_RUSSIAN I am trying to load russian NER labelled data 'WIKINER_RUSSIAN' into Flair. But getting some encoding error during loading. My System spec: Flair: 0.4.3 Python: 3.8.0 ![image](https://user-images.githubusercontent.com/13539449/69625081-dc318780-106b-11ea-8060-cf841ae7...
[ { "content": "import logging\nimport re\nimport os\nfrom pathlib import Path\nfrom typing import Union, Dict, List\n\nimport flair\nfrom flair.data import Corpus, FlairDataset, Sentence, Token\nfrom flair.datasets.base import find_train_dev_test_files\nfrom flair.file_utils import cached_path\n\nlog = logging.g...
[ { "content": "import logging\nimport re\nimport os\nfrom pathlib import Path\nfrom typing import Union, Dict, List\n\nimport flair\nfrom flair.data import Corpus, FlairDataset, Sentence, Token\nfrom flair.datasets.base import find_train_dev_test_files\nfrom flair.file_utils import cached_path\n\nlog = logging.g...
diff --git a/flair/datasets/sequence_labeling.py b/flair/datasets/sequence_labeling.py index 23c80881c0..fd2c859a1c 100644 --- a/flair/datasets/sequence_labeling.py +++ b/flair/datasets/sequence_labeling.py @@ -1310,6 +1310,7 @@ def _download_wikiner(language_code: str, dataset_name: str): / dataset_na...
coala__coala-bears-900
YapfBear: Make asciinema @Mariatta are you interested?
[ { "content": "import sys\n\nfrom yapf.yapflib.yapf_api import FormatFile\n\nfrom coalib.bearlib import deprecate_settings\nfrom coalib.bearlib.spacing.SpacingHelper import SpacingHelper\nfrom coalib.bears.LocalBear import LocalBear\nfrom coalib.bears.requirements.PipRequirement import PipRequirement\nfrom coali...
[ { "content": "import sys\n\nfrom yapf.yapflib.yapf_api import FormatFile\n\nfrom coalib.bearlib import deprecate_settings\nfrom coalib.bearlib.spacing.SpacingHelper import SpacingHelper\nfrom coalib.bears.LocalBear import LocalBear\nfrom coalib.bears.requirements.PipRequirement import PipRequirement\nfrom coali...
diff --git a/bears/python/YapfBear.py b/bears/python/YapfBear.py index 03d686596b..d02c898f1f 100644 --- a/bears/python/YapfBear.py +++ b/bears/python/YapfBear.py @@ -23,6 +23,7 @@ class YapfBear(LocalBear): AUTHORS_EMAILS = {'coala-devel@googlegroups.com'} LICENSE = 'AGPL-3.0' CAN_FIX = {'Formatting'} +...
getpelican__pelican-2521
WARNING: Docutils has no localization for 'english'. Using 'en' instead. 1. pipenv install pelican markdown 2. pelican-quickstart 3. create an article in content 4. run pelican **Expected**: Clean run and output created **Observed**: Warning > WARNING: Docutils has no localization for 'english'. Using 'en' ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import print_function, unicode_literals\n\nimport argparse\nimport codecs\nimport locale\nimport os\nimport sys\n\nfrom jinja2 import Environment, FileSystemLoader\n\nimport pytz\n\ntry:\n import readline # NOQA\nexcept ImportErro...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import print_function, unicode_literals\n\nimport argparse\nimport codecs\nimport locale\nimport os\nimport sys\n\nfrom jinja2 import Environment, FileSystemLoader\n\nimport pytz\n\ntry:\n import readline # NOQA\nexcept ImportErro...
diff --git a/pelican/tools/pelican_quickstart.py b/pelican/tools/pelican_quickstart.py index 529eeb527..4a6b8cbc3 100755 --- a/pelican/tools/pelican_quickstart.py +++ b/pelican/tools/pelican_quickstart.py @@ -34,7 +34,7 @@ # Don't fail on macosx: "unknown locale: UTF-8" _DEFAULT_LANGUAGE = None if _DEFAULT_L...
huggingface__huggingface_hub-790
Support python=3.10 Python 3.10 has been out for a while but we seem to not test for it. What are the roadblocks for us to support 3.10 and maybe deprecate 3.6? (Many packages now support 3.8-3.10 and older versions are not supported anymore). Ping @LysandreJik @osanseviero maybe?
[ { "content": "from setuptools import find_packages, setup\n\n\ndef get_version() -> str:\n rel_path = \"src/huggingface_hub/__init__.py\"\n with open(rel_path, \"r\") as fp:\n for line in fp.read().splitlines():\n if line.startswith(\"__version__\"):\n delim = '\"' if '\"'...
[ { "content": "from setuptools import find_packages, setup\n\n\ndef get_version() -> str:\n rel_path = \"src/huggingface_hub/__init__.py\"\n with open(rel_path, \"r\") as fp:\n for line in fp.read().splitlines():\n if line.startswith(\"__version__\"):\n delim = '\"' if '\"'...
diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 37df59bca1..71bd60054a 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.6", "3...
CTFd__CTFd-1918
Users in admin scoreboard show user position instead of team position In teams mode on the admin panel, users are shown with their user position on the scoreboard instead of their teams position. We should be showing both.
[ { "content": "from flask import render_template, request, url_for\nfrom sqlalchemy.sql import not_\n\nfrom CTFd.admin import admin\nfrom CTFd.models import Challenges, Tracking, Users\nfrom CTFd.utils import get_config\nfrom CTFd.utils.decorators import admins_only\nfrom CTFd.utils.modes import TEAMS_MODE\n\n\n...
[ { "content": "from flask import render_template, request, url_for\nfrom sqlalchemy.sql import not_\n\nfrom CTFd.admin import admin\nfrom CTFd.models import Challenges, Tracking, Users\nfrom CTFd.utils import get_config\nfrom CTFd.utils.decorators import admins_only\nfrom CTFd.utils.modes import TEAMS_MODE\n\n\n...
diff --git a/CTFd/admin/users.py b/CTFd/admin/users.py index 46f16c8af..f2a0c484d 100644 --- a/CTFd/admin/users.py +++ b/CTFd/admin/users.py @@ -88,8 +88,8 @@ def users_detail(user_id): awards = user.get_awards(admin=True) # Get user properties - score = user.get_score(admin=True) - place = user.get_p...
DataDog__dd-trace-py-1468
Cannot install ddtrace 0.38.0 with Python 3.8 without the wheels Hi, I cannot install ddtrace 0.38.0 without using the provided wheel. It was working with ddtrace version 0.37.1. ### Which version of dd-trace-py are you using? 0.38.0 with Python 3.8.3 on Linux (tried from my Archlinux and from a Docker contai...
[ { "content": "import os\nimport sys\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.test import test as TestCommand\n\n# ORDER MATTERS\n# Import this after setuptools or it will fail\nfrom Cython.Build import cythonize # noqa: I100\nimport Cython.Distutils\n\n\nHERE = os.path.dirname(os...
[ { "content": "import os\nimport sys\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.test import test as TestCommand\n\n# ORDER MATTERS\n# Import this after setuptools or it will fail\nfrom Cython.Build import cythonize # noqa: I100\nimport Cython.Distutils\n\n\nHERE = os.path.dirname(os...
diff --git a/setup.py b/setup.py index 0e7dd44fdcb..5caab5a5e57 100644 --- a/setup.py +++ b/setup.py @@ -173,6 +173,7 @@ def get_exts_for(name): "PY_MINOR_VERSION": sys.version_info.minor, "PY_MICRO_VERSION": sys.version_info.micro, }, + force=True, ) ...
kivy__python-for-android-2055
Can't use AsyncImage with HTTPS URL (or any HTTPS url wit any request): fix is to manually load certifi ### Versions * Python: 3 * OS: Android * Kivy: 1.10.1 * Cython: 0.29.7 ### Description Try to open HTTPS Url Failed with urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable t...
[ { "content": "from pythonforandroid.recipe import CythonRecipe\nfrom pythonforandroid.toolchain import current_directory, shprint\nfrom os.path import exists, join, basename\nimport sh\nimport glob\n\n\nclass KivyRecipe(CythonRecipe):\n version = '1.11.1'\n url = 'https://github.com/kivy/kivy/archive/{ver...
[ { "content": "from pythonforandroid.recipe import CythonRecipe\nfrom pythonforandroid.toolchain import current_directory, shprint\nfrom os.path import exists, join, basename\nimport sh\nimport glob\n\n\nclass KivyRecipe(CythonRecipe):\n version = '1.11.1'\n url = 'https://github.com/kivy/kivy/archive/{ver...
diff --git a/pythonforandroid/recipes/kivy/__init__.py b/pythonforandroid/recipes/kivy/__init__.py index 3106f25ce6..a93627a021 100644 --- a/pythonforandroid/recipes/kivy/__init__.py +++ b/pythonforandroid/recipes/kivy/__init__.py @@ -11,6 +11,7 @@ class KivyRecipe(CythonRecipe): name = 'kivy' depends = ['s...
blaze__blaze-1560
Use of deprecated `flask.ext.cors` results in a warning ``` python In [1]: import blaze as bz C:\Python\envs\py-dev\lib\site-packages\flask\exthook.py:71: ExtDeprecationWarning: Importing flask.ext.cors is deprecated, use flask_cors instead. .format(x=modname), ExtDeprecationWarning ``` Looks like the culprit is: ht...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport sys\nimport logging\nfrom logging import Formatter\nfrom functools import wraps\nimport traceback\nimport collections\nfrom datetime import datetime\nimport errno\nimport functools\nfrom hashlib import md5\nimport os\nimpor...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport sys\nimport logging\nfrom logging import Formatter\nfrom functools import wraps\nimport traceback\nimport collections\nfrom datetime import datetime\nimport errno\nimport functools\nfrom hashlib import md5\nimport os\nimpor...
diff --git a/blaze/server/server.py b/blaze/server/server.py index 1438cb0af..15abdc741 100644 --- a/blaze/server/server.py +++ b/blaze/server/server.py @@ -19,7 +19,7 @@ from datashape import discover, pprint import flask from flask import Blueprint, Flask, Response -from flask.ext.cors import cross_origin +from fl...
twisted__twisted-11958
expand mypy .* module overrides **Is your feature request related to a problem? Please describe.** we'd like to be able to delete a module from the pyproject.toml to mark it as fully type annotated, however having .* overrides with weaker type hinting prevents this **Describe the solution you'd like** expand mypy ...
[ { "content": "# -*- test-case-name: twisted.words.test.test_jabberjid -*-\n#\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nJabber Identifier support.\n\nThis module provides an object to represent Jabber Identifiers (JIDs) and\nparse string representations into them with p...
[ { "content": "# -*- test-case-name: twisted.words.test.test_jabberjid -*-\n#\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nJabber Identifier support.\n\nThis module provides an object to represent Jabber Identifiers (JIDs) and\nparse string representations into them with p...
diff --git a/pyproject.toml b/pyproject.toml index 5eec9f57d8a..d4f872eaed0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -318,14 +318,76 @@ no_implicit_reexport = false allow_untyped_defs = true check_untyped_defs = false module = [ - 'twisted._threads.*', + 'twisted._threads.test.test_team', + 'twis...
beetbox__beets-2240
Slowdown with beet web - regression There is a massive slowdown in queries with python2 and python3 when using the beet web interface. When large queries are run, i.e. 'format:flac' on a flac only library, the web interface posts queries 10x slower than before the regression. To clarify that does seem to be a relati...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index 07e68638b0..810de87183 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -37,7 +37,7 @@ def _rep(obj, expand=False): out = dict(obj) if isinstance(obj, beets.library.Item): - out['path'] = obj.destination...
piskvorky__gensim-2738
keywords.py gives `IndexError: list index out of range` when `words` parameter is provided. Really confused why I'm getting this error. Perhaps I'm making a silly mistake I'm not familiar with gensim and nlp in general. Im running on Windows 10 Home 64-bit, conda version : 4.7.11, conda-build version : 2.18.8, python ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"This module contains functions to find keywords of the text and building graph on tokens from text.\n\nExamples\n--------\nExtract keywords from text\n\n.. sourcec...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"This module contains functions to find keywords of the text and building graph on tokens from text.\n\nExamples\n--------\nExtract keywords from text\n\n.. sourcec...
diff --git a/gensim/summarization/keywords.py b/gensim/summarization/keywords.py index db7c8a0dc7..2c85cf0bfe 100644 --- a/gensim/summarization/keywords.py +++ b/gensim/summarization/keywords.py @@ -302,7 +302,7 @@ def _extract_tokens(lemmas, scores, ratio, words): """ lemmas.sort(key=lambda s: scores[s], r...
hydroshare__hydroshare-2769
Add back Active, Date joined, and last login in mezzanine listing of users In the 3/19/18 version of HydroShare when an admin listed users the fields listed were ![image](https://user-images.githubusercontent.com/3456833/41195757-d1268df2-6bf0-11e8-8279-a3fbe2f81f84.png) At present when an admin lists users the fie...
[ { "content": "from django import forms\nfrom django.contrib.auth.admin import UserAdmin\nfrom django.contrib.auth.forms import UserCreationForm\nfrom django.contrib.auth.models import User\nfrom django.contrib.gis import admin\nfrom django.contrib.contenttypes.admin import GenericTabularInline\nfrom django.util...
[ { "content": "from django import forms\nfrom django.contrib.auth.admin import UserAdmin\nfrom django.contrib.auth.forms import UserCreationForm\nfrom django.contrib.auth.models import User\nfrom django.contrib.gis import admin\nfrom django.contrib.contenttypes.admin import GenericTabularInline\nfrom django.util...
diff --git a/hs_core/admin.py b/hs_core/admin.py index a0a7b4e7f1..797c926320 100755 --- a/hs_core/admin.py +++ b/hs_core/admin.py @@ -23,6 +23,10 @@ def __init__(self, *args, **kwargs): 'fields': ('email', 'username', 'password1', 'password2',) }), ) +UserAdmin.list_display = [ + 'username', 'email',...
bokeh__bokeh-10311
[BUG] Link in docs is not working for fill color property https://docs.bokeh.org/en/latest/_modules/bokeh/core/property_mixins.html#FillProps
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
diff --git a/bokeh/core/property_mixins.py b/bokeh/core/property_mixins.py index 79b0b4577eb..85369400031 100644 --- a/bokeh/core/property_mixins.py +++ b/bokeh/core/property_mixins.py @@ -118,7 +118,7 @@ class SomeGlyph(Glyph): - a 3-tuple of integers (r,g,b) between 0 and 255 - a 4-tuple of (r,g,b,a) where r,g,b ar...
ray-project__ray-7665
[Python] jsonschema included twice in setup.py requires list. <!--Please include [tune], [rllib], [autoscaler] etc. in the issue title if relevant--> ### What is the problem? `jsonschema` is included twice in the Python package [setup.py `requires` list](https://github.com/ray-project/ray/blob/master/python/setup...
[ { "content": "from itertools import chain\nimport os\nimport re\nimport shutil\nimport subprocess\nimport sys\n\nfrom setuptools import setup, find_packages, Distribution\nimport setuptools.command.build_ext as _build_ext\n\n# Ideally, we could include these files by putting them in a\n# MANIFEST.in or using th...
[ { "content": "from itertools import chain\nimport os\nimport re\nimport shutil\nimport subprocess\nimport sys\n\nfrom setuptools import setup, find_packages, Distribution\nimport setuptools.command.build_ext as _build_ext\n\n# Ideally, we could include these files by putting them in a\n# MANIFEST.in or using th...
diff --git a/python/setup.py b/python/setup.py index 36af00e764bfb..a4edb34606ca9 100644 --- a/python/setup.py +++ b/python/setup.py @@ -180,7 +180,6 @@ def find_version(*filepath): "packaging", "pytest", "pyyaml", - "jsonschema", "redis>=3.3.2", # NOTE: Don't upgrade the version of six! Doi...
googleapis__google-cloud-python-1347
Should we compare Entity._meanings in __eq__ /cc @tseaver @pcostell
[ { "content": "# Copyright 2014 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 2014 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/gcloud/datastore/entity.py b/gcloud/datastore/entity.py index 7a25e648391a..c27db1fc76e8 100644 --- a/gcloud/datastore/entity.py +++ b/gcloud/datastore/entity.py @@ -98,6 +98,8 @@ def __eq__(self, other): return False return (self.key == other.key and + self._exclude_...
espnet__espnet-2227
espnet2 inference error without language model If not using a language model, the espnet2 asr_inference.py causes the following error. File "espnet2/espnet2/bin/asr_inference.py", line 152, in __init__ self.lm_train_args = lm_train_args UnboundLocalError: local variable 'lm_train_args' referenced before assignmen...
[ { "content": "#!/usr/bin/env python3\nimport argparse\nimport logging\nfrom pathlib import Path\nimport sys\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Tuple\nfrom typing import Union\n\nimport numpy as np\nimport torch\nfrom typeguard import check_argument_types\nfrom typeguar...
[ { "content": "#!/usr/bin/env python3\nimport argparse\nimport logging\nfrom pathlib import Path\nimport sys\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Tuple\nfrom typing import Union\n\nimport numpy as np\nimport torch\nfrom typeguard import check_argument_types\nfrom typeguar...
diff --git a/espnet2/bin/asr_inference.py b/espnet2/bin/asr_inference.py index 61e657b6eb2..6c99fe0f265 100755 --- a/espnet2/bin/asr_inference.py +++ b/espnet2/bin/asr_inference.py @@ -147,7 +147,6 @@ def __init__( self.asr_model = asr_model self.asr_train_args = asr_train_args - self.lm_trai...
dbt-labs__dbt-core-7080
[CT-2225] [Bug] Suddenly getting ModuleNotFoundError: No module named 'pytz' ### Is this a new bug in dbt-core? - [X] I believe this is a new bug in dbt-core - [X] I have searched the existing issues, and I could not find an existing issue for this bug ### Current Behavior I am installing dbt-bigquery with meltano (...
[ { "content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 7, 2):\n print(\"Error: dbt does not support this version of Python.\")\n print(\"Please upgrade to Python 3.7.2 or higher.\")\n sys.exit(1)\n\n\nfrom setuptools import setup\n\ntry:\n from setuptools import find...
[ { "content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 7, 2):\n print(\"Error: dbt does not support this version of Python.\")\n print(\"Please upgrade to Python 3.7.2 or higher.\")\n sys.exit(1)\n\n\nfrom setuptools import setup\n\ntry:\n from setuptools import find...
diff --git a/.changes/unreleased/Fixes-20230228-130318.yaml b/.changes/unreleased/Fixes-20230228-130318.yaml new file mode 100644 index 00000000000..abcbee150a2 --- /dev/null +++ b/.changes/unreleased/Fixes-20230228-130318.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: add pytz dependency +time: 2023-02-28T13:03:18.353468+01...
open-mmlab__mmdetection-3553
VOCDataset object has no attribute dataset Thanks for your error report and we appreciate it a lot. **Checklist** 1. I have searched related issues but cannot get the expected help. 2. The bug has not been fixed in the latest version. **Describe the bug** I tried to train my model on Pascal VOC 2012 dataset, a...
[ { "content": "from mmdet.core import eval_map, eval_recalls\nfrom .builder import DATASETS\nfrom .xml_style import XMLDataset\n\n\n@DATASETS.register_module()\nclass VOCDataset(XMLDataset):\n\n CLASSES = ('aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus', 'car',\n 'cat', 'chair', 'cow', '...
[ { "content": "from mmdet.core import eval_map, eval_recalls\nfrom .builder import DATASETS\nfrom .xml_style import XMLDataset\n\n\n@DATASETS.register_module()\nclass VOCDataset(XMLDataset):\n\n CLASSES = ('aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus', 'car',\n 'cat', 'chair', 'cow', '...
diff --git a/mmdet/datasets/voc.py b/mmdet/datasets/voc.py index 9de96b1c774..87689b5e726 100644 --- a/mmdet/datasets/voc.py +++ b/mmdet/datasets/voc.py @@ -62,7 +62,7 @@ def evaluate(self, if self.year == 2007: ds_name = 'voc07' else: - ds_name = self.dataset.C...
learningequality__kolibri-4343
Enable ePUB plugin to run by default ### Observed behavior ePUB plugin is not enabled by default, and it prevents from importing & viewing ePUB files, until the command `kolibri plugin kolibri.plugins.document_epub_render enable` is run. ### User-facing consequences Inability to view and import ePUB files. ...
[ { "content": "\"\"\"\nKolibri configuration data\n==========================\n\n.. warning::\n Do not load any django.conf.settings stuff here. This configuration data\n precedes loading of settings, it is not part of the settings stack.\n\nTODO: We need to figure out our conf API. Do we store in ini/json...
[ { "content": "\"\"\"\nKolibri configuration data\n==========================\n\n.. warning::\n Do not load any django.conf.settings stuff here. This configuration data\n precedes loading of settings, it is not part of the settings stack.\n\nTODO: We need to figure out our conf API. Do we store in ini/json...
diff --git a/kolibri/utils/conf.py b/kolibri/utils/conf.py index dd308d001b1..0576a182b59 100644 --- a/kolibri/utils/conf.py +++ b/kolibri/utils/conf.py @@ -68,6 +68,7 @@ "kolibri.plugins.user", "kolibri_exercise_perseus_plugin", "kolibri.plugins.style_guide", + "kolibri.plugins.docume...
pwr-Solaar__Solaar-1003
Please create an AppData file for Solaar Please consider writing and installing an AppData file with the application description and some screenshots, else Solaar looks really bad in the GNOME and KDE Software Centers. We'd love to showcase more applications, but without the extra data file we can't. See http://people....
[ { "content": "#!/usr/bin/env python3\n\nfrom glob import glob as _glob\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# from solaar import NAME, __version__\n__version__ = '1.0.4'\nNAME = 'Solaar'\n\n\ndef _data_files():\n from os.path import dirname a...
[ { "content": "#!/usr/bin/env python3\n\nfrom glob import glob as _glob\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# from solaar import NAME, __version__\n__version__ = '1.0.4'\nNAME = 'Solaar'\n\n\ndef _data_files():\n from os.path import dirname a...
diff --git a/setup.py b/setup.py index 42e3cc7e3b..9fc93ae0bd 100755 --- a/setup.py +++ b/setup.py @@ -24,6 +24,7 @@ def _data_files(): yield 'share/applications', ['share/applications/solaar.desktop'] yield 'share/solaar/udev-rules.d', ['rules.d/42-logitech-unify-permissions.rules'] + yield 'share/metai...
fossasia__open-event-server-4135
Unable to update the user info via patch request. **I'm submitting a ...** (check one with "x") - [x] bug report - [ ] feature request - [ ] support request => Please do not submit support requests here, instead ask your query in out Gitter channel at https://gitter.im/fossasia/open-event-orga-server **Current b...
[ { "content": "from datetime import datetime\nimport pytz\nimport random\nimport humanize\nfrom flask import url_for\nfrom sqlalchemy import event, desc\nfrom sqlalchemy.orm.exc import MultipleResultsFound, NoResultFound\nfrom flask.ext.scrypt import generate_password_hash, generate_random_salt\nfrom sqlalchemy....
[ { "content": "from datetime import datetime\nimport pytz\nimport random\nimport humanize\nfrom flask import url_for\nfrom sqlalchemy import event, desc\nfrom sqlalchemy.orm.exc import MultipleResultsFound, NoResultFound\nfrom flask.ext.scrypt import generate_password_hash, generate_random_salt\nfrom sqlalchemy....
diff --git a/app/models/user.py b/app/models/user.py index db06bc8f4b..a7debdb13b 100644 --- a/app/models/user.py +++ b/app/models/user.py @@ -106,10 +106,8 @@ def email(self, email): :param email: :return: """ - if self._email is None: - self._email = email - else: -...
sunpy__sunpy-3835
Plot titles and x-labels overlapping in example The plot titles and labels overlap in the 3rd image of https://docs.sunpy.org/en/latest/generated/gallery/acquiring_data/2011_06_07_sampledata_overview.html#sphx-glr-generated-gallery-acquiring-data-2011-06-07-sampledata-overview-py (see below). I'm guessing the tight-lay...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n========================\nSample data set overview\n========================\n\nAn overview of the coordinated sample data set.\n\"\"\"\nimport matplotlib.pyplot as plt\nimport astropy.units as u\n\nimport sunpy.map\nimport sunpy.timeseries\nimport sunpy.data.sampl...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n========================\nSample data set overview\n========================\n\nAn overview of the coordinated sample data set.\n\"\"\"\nimport matplotlib.pyplot as plt\nimport astropy.units as u\n\nimport sunpy.map\nimport sunpy.timeseries\nimport sunpy.data.sampl...
diff --git a/changelog/3835.doc.rst b/changelog/3835.doc.rst new file mode 100644 index 00000000000..acb95ba1734 --- /dev/null +++ b/changelog/3835.doc.rst @@ -0,0 +1 @@ +Changed padding value of an example in the example gallery to fix the overlap of titles and x-label axes. diff --git a/examples/acquiring_data/2011_0...
readthedocs__readthedocs.org-4811
Delete untracked tags on fetch step Currently, if the user deletes a tag, it needs to wipe the environment for this change be reflected in their version list. There are some solutions to delete untracked tags (require more than 2 commands). But I found that the newest version of git has the `--prune-tags` option, wh...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Git-related utilities.\"\"\"\n\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals)\n\nimport csv\nimport logging\nimport os\nimport re\n\nimport git\nfrom builtins import str\nfrom django.core.exceptions import ValidationError\...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Git-related utilities.\"\"\"\n\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals)\n\nimport csv\nimport logging\nimport os\nimport re\n\nimport git\nfrom builtins import str\nfrom django.core.exceptions import ValidationError\...
diff --git a/.travis.yml b/.travis.yml index 7eff80a97e4..6f4bdf452ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,8 @@ cache: - ~/.cache/pip - ~/.nvm/nvm.sh - ~/.npm +before_install: + - sudo apt-get install -y git install: - ./scripts/travis/install_elasticsearch.sh - pip install tox...
kivy__kivy-6322
PermissionError is not available in Python2.7 <!-- The issue tracker is a tool to address bugs. Please use the #support Discord channel at https://chat.kivy.org/ or Stack Overflow for support questions, more information at https://git.io/vM1yQ. Before opening a new issue, make sure you do the following: * ch...
[ { "content": "'''\nLogger object\n=============\n\nDifferents logging levels are available : trace, debug, info, warning, error\nand critical.\n\nExamples of usage::\n\n from kivy.logger import Logger\n\n Logger.info('title: This is a info message.')\n Logger.debug('title: This is a debug message.')\n\...
[ { "content": "'''\nLogger object\n=============\n\nDifferents logging levels are available : trace, debug, info, warning, error\nand critical.\n\nExamples of usage::\n\n from kivy.logger import Logger\n\n Logger.info('title: This is a info message.')\n Logger.debug('title: This is a debug message.')\n\...
diff --git a/kivy/logger.py b/kivy/logger.py index 48bb314fcd..bd40701b3d 100644 --- a/kivy/logger.py +++ b/kivy/logger.py @@ -65,6 +65,11 @@ __all__ = ( 'Logger', 'LOG_LEVELS', 'COLORS', 'LoggerHistory', 'file_log_handler') +try: + PermissionError +except NameError: # Python 2 + PermissionError = OSErro...
DataBiosphere__toil-2028
Race condition in Mesos batch system In (very!) rare cases, the Mesos driver thread can crash with a KeyError. Fortunately, the log file demonstrates exactly the interleaving that needs to happen to cause this error: ``` Launched Mesos task 1667171. Queueing the job command: _toil_worker CactusHalGeneratorUpWrappe...
[ { "content": "# Copyright (C) 2015-2016 Regents of the University of California\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-...
[ { "content": "# Copyright (C) 2015-2016 Regents of the University of California\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-...
diff --git a/src/toil/batchSystems/mesos/batchSystem.py b/src/toil/batchSystems/mesos/batchSystem.py index 6a671049aa..25da89b8d0 100644 --- a/src/toil/batchSystems/mesos/batchSystem.py +++ b/src/toil/batchSystems/mesos/batchSystem.py @@ -190,8 +190,8 @@ def issueBatchJob(self, jobNode): # TODO: round all el...
ckan__ckan-8093
readthedocs sphinx build failures ## CKAN version master ## Describe the bug infinite loop in build, looks like no tags are returned from `git log`? ### Steps to reproduce check sphinx logs ### Expected behavior build docs on rtd working ### Additional details ```python-traceback Traceback (most recen...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# CKAN documentation build configuration file, created by\n# sphinx-quickstart on Sun Oct 25 16:47:17 2009.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# The contents of this file are pickled, so don't put values in the names...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# CKAN documentation build configuration file, created by\n# sphinx-quickstart on Sun Oct 25 16:47:17 2009.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# The contents of this file are pickled, so don't put values in the names...
diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 1bd376c77b3..b8e02ef2197 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -9,9 +9,13 @@ version: 2 build: os: ubuntu-22.04 apt_packages: - - libmagic-dev + - libmagic-dev + - libmagic1 tools: python: "3.10" + jobs: + post_ch...
fossasia__open-event-server-4302
Custom-forms: Change data.type in custom-form **I'm submitting a ...** (check one with "x") - [x] bug report - [ ] feature request - [ ] support request => Please do not submit support requests here, instead ask your query in out Gitter channel at https://gitter.im/fossasia/open-event-orga-server **Current behav...
[ { "content": "from flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\nfrom marshmallow_jsonapi.flask import Schema, Relationship\nfrom marshmallow_jsonapi import fields\nimport marshmallow.validate as validate\nfrom app.api.helpers.permissions import jwt_required\nfrom flask_rest_json...
[ { "content": "from flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\nfrom marshmallow_jsonapi.flask import Schema, Relationship\nfrom marshmallow_jsonapi import fields\nimport marshmallow.validate as validate\nfrom app.api.helpers.permissions import jwt_required\nfrom flask_rest_json...
diff --git a/app/api/custom_forms.py b/app/api/custom_forms.py index 5474779926..924b5a1ad7 100644 --- a/app/api/custom_forms.py +++ b/app/api/custom_forms.py @@ -24,7 +24,7 @@ class Meta: """ Meta class for CustomForm Schema """ - type_ = 'custom_form' + type_ = 'custom-form' ...
DataDog__dd-trace-py-1582
ddtrace.Pin() for multiple grpc channels doesn't work Thanks for taking the time for reporting an issue! Before reporting an issue on dd-trace-py, please be sure to provide all necessary information. If you're hitting a bug, make sure that you're using the latest version of this library. ### Which version of...
[ { "content": "import os\n\nimport grpc\n\nfrom ddtrace.vendor.wrapt import wrap_function_wrapper as _w\nfrom ddtrace import config, Pin\n\nfrom ...utils.wrappers import unwrap as _u\n\nfrom . import constants\nfrom .client_interceptor import create_client_interceptor, intercept_channel\nfrom .server_interceptor...
[ { "content": "import os\n\nimport grpc\n\nfrom ddtrace.vendor.wrapt import wrap_function_wrapper as _w\nfrom ddtrace import config, Pin\n\nfrom ...utils.wrappers import unwrap as _u\n\nfrom . import constants\nfrom .client_interceptor import create_client_interceptor, intercept_channel\nfrom .server_interceptor...
diff --git a/ddtrace/contrib/grpc/patch.py b/ddtrace/contrib/grpc/patch.py index b815d8a7c4f..1d48914dd03 100644 --- a/ddtrace/contrib/grpc/patch.py +++ b/ddtrace/contrib/grpc/patch.py @@ -98,7 +98,7 @@ def _unpatch_server(): def _client_channel_interceptor(wrapped, instance, args, kwargs): channel = wrapped(*arg...
jazzband__django-simple-history-1218
Creating historical records for models with M2M fields to `"self"` causes `FieldError` **Describe the bug** *See title.* **To Reproduce** Steps to reproduce the behavior: 1. Given the following model: ```python class Person(models.Model): relations = models.ManyToManyField("self") history ...
[ { "content": "import copy\nimport importlib\nimport uuid\nimport warnings\nfrom functools import partial\n\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.contrib import admin\nfrom django.contrib.auth import get_user_model\nfrom django.core.exceptions import ImproperlyConfigured, O...
[ { "content": "import copy\nimport importlib\nimport uuid\nimport warnings\nfrom functools import partial\n\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.contrib import admin\nfrom django.contrib.auth import get_user_model\nfrom django.core.exceptions import ImproperlyConfigured, O...
diff --git a/AUTHORS.rst b/AUTHORS.rst index 875e0173b..12eeb4383 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -90,6 +90,7 @@ Authors - Lucas Wiman - Maciej "RooTer" Urbański - Marcelo Canina (`marcanuy <https://github.com/marcanuy>`_) +- Marco Sirabella - Mark Davidoff - Martin Bachwerk - Marty Alchin diff --gi...
scverse__scanpy-1979
small spelling mistake In the file scanpy/_utils/__init__.py on master branch, line 412 says: "Revieved a view of an AnnData. Making a copy." probably meaning "received"
[ { "content": "\"\"\"Utility functions and classes\n\nThis file largely consists of the old _utils.py file. Over time, these functions\nshould be moved of this file.\n\"\"\"\nimport sys\nimport inspect\nimport warnings\nimport importlib.util\nfrom enum import Enum\nfrom pathlib import Path\nfrom weakref import W...
[ { "content": "\"\"\"Utility functions and classes\n\nThis file largely consists of the old _utils.py file. Over time, these functions\nshould be moved of this file.\n\"\"\"\nimport sys\nimport inspect\nimport warnings\nimport importlib.util\nfrom enum import Enum\nfrom pathlib import Path\nfrom weakref import W...
diff --git a/scanpy/_utils/__init__.py b/scanpy/_utils/__init__.py index 105ca8802a..fd169ff9d4 100644 --- a/scanpy/_utils/__init__.py +++ b/scanpy/_utils/__init__.py @@ -409,7 +409,7 @@ def sanitize_anndata(adata): def view_to_actual(adata): if adata.is_view: warnings.warn( - "Revieved a view...
apple__coremltools-911
cuda tensor parameter fail to convert to numpy in InternalTorchIRGraph ## 🐞Describe the bug - If the input parameter type to a traced model is tensor.cuda(), ct.convert fails with the below error - Torch ## Trace ``` File "/home/josh/anaconda3/lib/python3.7/site-packages/coremltools/converters/mil/frontend/...
[ { "content": "# Copyright (c) 2020, Apple Inc. All rights reserved.\n#\n# Use of this source code is governed by a BSD-3-clause license that can be\n# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause\n\nfrom collections import OrderedDict\nfrom itertools import islice\n\nimpor...
[ { "content": "# Copyright (c) 2020, Apple Inc. All rights reserved.\n#\n# Use of this source code is governed by a BSD-3-clause license that can be\n# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause\n\nfrom collections import OrderedDict\nfrom itertools import islice\n\nimpor...
diff --git a/coremltools/converters/mil/frontend/torch/internal_graph.py b/coremltools/converters/mil/frontend/torch/internal_graph.py index 197e8848f..097519f89 100644 --- a/coremltools/converters/mil/frontend/torch/internal_graph.py +++ b/coremltools/converters/mil/frontend/torch/internal_graph.py @@ -246,7 +246,7 @@...
xonsh__xonsh-1181
Configuration fails on Windows due to colon in filename `xonfig wizard` fails on Windows because the temporary configuration file created has a colon in its filename. The relevant output is: ``` Would you like to save this state, yes or no [default: no]? yes filename [default='C:\\Users\\alowe\\.config\\xonsh\\config...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Misc. xonsh tools.\n\nThe following implementations were forked from the IPython project:\n\n* Copyright (c) 2008-2014, IPython Development Team\n* Copyright (C) 2001-2007 Fernando Perez <fperez@colorado.edu>\n* Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>\n*...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Misc. xonsh tools.\n\nThe following implementations were forked from the IPython project:\n\n* Copyright (c) 2008-2014, IPython Development Team\n* Copyright (C) 2001-2007 Fernando Perez <fperez@colorado.edu>\n* Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>\n*...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2aa7aad2f8..d473624ee9 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,7 +12,9 @@ Current Developments **Removed:** None -**Fixed:** None +**Fixed:** + +* Fixed xonfig wizard failing on Windows due to colon in created filename. **Security:** None @@ -48,7...
getmoto__moto-1462
Add opsworks app mocks Add the mocks of OpsWork create_app and describe_apps calls. This is part of #1477
[ { "content": "from __future__ import unicode_literals\nimport logging\n# logging.getLogger('boto').setLevel(logging.CRITICAL)\n\n__title__ = 'moto'\n__version__ = '1.2.0',\n\nfrom .acm import mock_acm # flake8: noqa\nfrom .apigateway import mock_apigateway, mock_apigateway_deprecated # flake8: noqa\nfrom .aut...
[ { "content": "from __future__ import unicode_literals\nimport logging\n# logging.getLogger('boto').setLevel(logging.CRITICAL)\n\n__title__ = 'moto'\n__version__ = '1.2.0'\n\nfrom .acm import mock_acm # flake8: noqa\nfrom .apigateway import mock_apigateway, mock_apigateway_deprecated # flake8: noqa\nfrom .auto...
diff --git a/moto/__init__.py b/moto/__init__.py index 9d292a3e1847..c38212b42f4c 100644 --- a/moto/__init__.py +++ b/moto/__init__.py @@ -3,7 +3,7 @@ # logging.getLogger('boto').setLevel(logging.CRITICAL) __title__ = 'moto' -__version__ = '1.2.0', +__version__ = '1.2.0' from .acm import mock_acm # flake8: noqa...
ManimCommunity__manim-1335
Add import statements to examples in documentation See title. The examples in the documentation should also include the `from manim import *` at the very least, and actually we could provide best-practice examples where we dont do a *-import, but rather import classes/functions separately. This can of course be a...
[ { "content": "r\"\"\"\nA directive for including Manim videos in a Sphinx document\n===========================================================\n\nWhen rendering the HTML documentation, the ``.. manim::`` directive\nimplemented here allows to include rendered videos.\n\nIts basic usage that allows processing **...
[ { "content": "r\"\"\"\nA directive for including Manim videos in a Sphinx document\n===========================================================\n\nWhen rendering the HTML documentation, the ``.. manim::`` directive\nimplemented here allows to include rendered videos.\n\nIts basic usage that allows processing **...
diff --git a/docs/source/manim_directive.py b/docs/source/manim_directive.py index 4f152a928a..d049b6c1db 100644 --- a/docs/source/manim_directive.py +++ b/docs/source/manim_directive.py @@ -202,6 +202,7 @@ def run(self): source_block = [ ".. code-block:: python", "", + " ...
wagtail__wagtail-9923
Search on listing views doesn't work unless the `?q=` param exists in the URL <!-- Found a bug? Please fill out the sections below. 👍 --> ### Issue Summary Possible regression in https://github.com/wagtail/wagtail/pull/9768 The `URLSearchParams.get()` returns `null` if the param doesn't exist, so the follow...
[ { "content": "from django import forms\nfrom django.utils.translation import gettext as _\nfrom django.utils.translation import gettext_lazy\n\n\nclass SearchForm(forms.Form):\n def __init__(self, *args, **kwargs):\n placeholder = kwargs.pop(\"placeholder\", _(\"Search\"))\n super().__init__(*a...
[ { "content": "from django import forms\nfrom django.utils.translation import gettext as _\nfrom django.utils.translation import gettext_lazy\n\n\nclass SearchForm(forms.Form):\n def __init__(self, *args, **kwargs):\n placeholder = kwargs.pop(\"placeholder\", _(\"Search\"))\n super().__init__(*a...
diff --git a/client/src/entrypoints/admin/core.js b/client/src/entrypoints/admin/core.js index c9d86855cf13..9f0561a40d0d 100644 --- a/client/src/entrypoints/admin/core.js +++ b/client/src/entrypoints/admin/core.js @@ -270,7 +270,7 @@ $(() => { const search = function () { const newQuery = $input.val(); ...
sanic-org__sanic-1397
Logger not work. **Describe the bug** Logger did not work at current master commit (https://github.com/huge-success/sanic/commit/7d79a86d4dc48de11cd34e8ba12e41f3a9f9ff18). **Code snippet** ```python from sanic import Sanic from sanic.log import logger from sanic.response import text app = Sanic() @app...
[ { "content": "import logging\nimport sys\n\n\nLOGGING_CONFIG_DEFAULTS = dict(\n version=1,\n disable_existing_loggers=False,\n loggers={\n \"root\": {\"level\": \"INFO\", \"handlers\": [\"console\"]},\n \"sanic.error\": {\n \"level\": \"INFO\",\n \"handlers\": [\"err...
[ { "content": "import logging\nimport sys\n\n\nLOGGING_CONFIG_DEFAULTS = dict(\n version=1,\n disable_existing_loggers=False,\n loggers={\n \"sanic.root\": {\"level\": \"INFO\", \"handlers\": [\"console\"]},\n \"sanic.error\": {\n \"level\": \"INFO\",\n \"handlers\": ...
diff --git a/sanic/log.py b/sanic/log.py index cb8ca52475..08fc835d14 100644 --- a/sanic/log.py +++ b/sanic/log.py @@ -6,7 +6,7 @@ version=1, disable_existing_loggers=False, loggers={ - "root": {"level": "INFO", "handlers": ["console"]}, + "sanic.root": {"level": "INFO", "handlers": ["conso...
dotkom__onlineweb4-810
Active feedbacks bug Minor bug where feedbacks where everyone answers does not get set to inactive.
[ { "content": "# -*- coding: utf-8 -*-\nimport datetime\nimport socket\nimport locale\nimport logging\n\nfrom django.utils import timezone\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.conf import settings\nfrom django.core.mail import EmailMessage\n\nfrom apps.events.models import Eve...
[ { "content": "# -*- coding: utf-8 -*-\nimport datetime\nimport socket\nimport locale\nimport logging\n\nfrom django.utils import timezone\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.conf import settings\nfrom django.core.mail import EmailMessage\n\nfrom apps.events.models import Eve...
diff --git a/apps/feedback/mommy.py b/apps/feedback/mommy.py index 7295634f5..efd8ef73f 100644 --- a/apps/feedback/mommy.py +++ b/apps/feedback/mommy.py @@ -45,7 +45,10 @@ def generate_message(feedback, logger): #return if everyone has answered if not not_responded: + feedback.active = Fa...
sktime__sktime-3653
[DOC] sktime docs should link clearly to example notebooks It seems that the sktime doc user journey does not lead clearly to the example notebooks when starting on the doc page. This should be investigated and reworked. Related issue: https://github.com/alan-turing-institute/sktime/issues/2127
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n\"\"\"Configuration file for the Sphinx documentation builder.\"\"\"\n\nimport os\nimport sys\nfrom importlib import import_module\n\nimport sktime\n\n# -- Path setup --------------------------------------------------------------\n\n# If extension...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n\"\"\"Configuration file for the Sphinx documentation builder.\"\"\"\n\nimport os\nimport sys\nfrom importlib import import_module\n\nimport sktime\n\n# -- Path setup --------------------------------------------------------------\n\n# If extension...
diff --git a/docs/source/conf.py b/docs/source/conf.py index 411941bbbae..976e3c9e332 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -55,6 +55,11 @@ # Recommended by sphinx_design when using the MyST Parser myst_enable_extensions = ["colon_fence"] +# Notebook thumbnails +nbsphinx_thumbnails = { + ...
huggingface__peft-646
importing peft with an old version of bitsandbytes causes an exception ### System Info Importing peft with the bitsandbytes version "0.39.1" works. But when importing peft with the version "0.38.1", I get an exception : `AttributeError: module 'bitsandbytes.nn' has no attribute 'Linear4bit'`. Indeed, the class `SVD...
[ { "content": "import re\nimport warnings\nfrom dataclasses import dataclass, field\nfrom typing import Optional\n\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nfrom transformers.pytorch_utils import Conv1D\n\nfrom ..import_utils import is_bnb_4bit_available, is_bnb_available\nfrom ..uti...
[ { "content": "import re\nimport warnings\nfrom dataclasses import dataclass, field\nfrom typing import Optional\n\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nfrom transformers.pytorch_utils import Conv1D\n\nfrom ..import_utils import is_bnb_4bit_available, is_bnb_available\nfrom ..uti...
diff --git a/src/peft/tuners/adalora.py b/src/peft/tuners/adalora.py index d1ff7f2e4f..aff877adac 100644 --- a/src/peft/tuners/adalora.py +++ b/src/peft/tuners/adalora.py @@ -523,6 +523,9 @@ def forward(self, x: torch.Tensor): result = result + output return result + +if is_bnb_4bit_avai...
pyload__pyload-1733
HOOK LinkdecrypterCom: 'LinkdecrypterComHook' object has no attribute 'COOKIES' 03.08.2015 20:46:43 INFO Free space: 6.48 TiB 630 03.08.2015 20:46:43 INFO Activating Accounts... 631 03.08.2015 20:46:43 INFO Activating Plugins... 632 03.08.2015 20:46:43 WARNING HOOK AntiStandby: Unable to change system power s...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport re\n\nfrom module.plugins.internal.MultiHook import MultiHook\n\n\nclass LinkdecrypterComHook(MultiHook):\n __name__ = \"LinkdecrypterComHook\"\n __type__ = \"hook\"\n __version__ = \"1.07\"\n __status__ = \"testing\"\n\n __config__ = [(\"act...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport re\n\nfrom module.plugins.internal.MultiHook import MultiHook\n\n\nclass LinkdecrypterComHook(MultiHook):\n __name__ = \"LinkdecrypterComHook\"\n __type__ = \"hook\"\n __version__ = \"1.07\"\n __status__ = \"testing\"\n\n __config__ = [(\"act...
diff --git a/module/plugins/hooks/LinkdecrypterComHook.py b/module/plugins/hooks/LinkdecrypterComHook.py index 6930afdb50..bf437fb6d8 100644 --- a/module/plugins/hooks/LinkdecrypterComHook.py +++ b/module/plugins/hooks/LinkdecrypterComHook.py @@ -21,6 +21,7 @@ class LinkdecrypterComHook(MultiHook): __license__ ...
networkx__networkx-6600
Error in method description in ismags.py The docstring of `partition_to_color` method in ismags.py seems off to me. The description is not clear, and it's hard to understand what the method is supposed to do. ```python def partition_to_color(partitions): """ Creates a dictionary with for every item in par...
[ { "content": "\"\"\"\n****************\nISMAGS Algorithm\n****************\n\nProvides a Python implementation of the ISMAGS algorithm. [1]_\n\nIt is capable of finding (subgraph) isomorphisms between two graphs, taking the\nsymmetry of the subgraph into account. In most cases the VF2 algorithm is\nfaster (at l...
[ { "content": "\"\"\"\n****************\nISMAGS Algorithm\n****************\n\nProvides a Python implementation of the ISMAGS algorithm. [1]_\n\nIt is capable of finding (subgraph) isomorphisms between two graphs, taking the\nsymmetry of the subgraph into account. In most cases the VF2 algorithm is\nfaster (at l...
diff --git a/networkx/algorithms/isomorphism/ismags.py b/networkx/algorithms/isomorphism/ismags.py index 4145be1150c..76fdee05c5a 100644 --- a/networkx/algorithms/isomorphism/ismags.py +++ b/networkx/algorithms/isomorphism/ismags.py @@ -184,8 +184,8 @@ def make_partitions(items, test): def partition_to_color(partiti...
biolab__orange3-4619
Table doesn't output the current tab selection when switching between tabs **Describe the bug** If the Table widget has multiple tabs and if on each tab there are some instances selected it doesn't change the output when a user switches between tabs. The widget doesn't output the current tab selection but it outputs t...
[ { "content": "import sys\nimport threading\nimport io\nimport csv\nimport itertools\nimport concurrent.futures\n\nfrom collections import OrderedDict, namedtuple\nfrom typing import List, Tuple, Iterable\n\nfrom math import isnan\n\nimport numpy\nfrom scipy.sparse import issparse\n\nfrom AnyQt.QtWidgets import ...
[ { "content": "import sys\nimport threading\nimport io\nimport csv\nimport itertools\nimport concurrent.futures\n\nfrom collections import OrderedDict, namedtuple\nfrom typing import List, Tuple, Iterable\n\nfrom math import isnan\n\nimport numpy\nfrom scipy.sparse import issparse\n\nfrom AnyQt.QtWidgets import ...
diff --git a/Orange/widgets/data/owtable.py b/Orange/widgets/data/owtable.py index 7288937d537..abd2e0f0fb1 100644 --- a/Orange/widgets/data/owtable.py +++ b/Orange/widgets/data/owtable.py @@ -718,6 +718,7 @@ def _on_current_tab_changed(self, index): view = self.tabs.widget(index) if view is not None ...
encode__django-rest-framework-7158
RemoteUserAuthentication.authenticate calls django.contrib.auth.authenticate without request argument ## Checklist - [X] I have verified that that issue exists against the `master` branch of Django REST framework. - [X] I have searched for similar issues in both open and closed tickets and cannot find a duplicate. ...
[ { "content": "\"\"\"\nProvides various authentication policies.\n\"\"\"\nimport base64\nimport binascii\n\nfrom django.contrib.auth import authenticate, get_user_model\nfrom django.middleware.csrf import CsrfViewMiddleware\nfrom django.utils.translation import gettext_lazy as _\n\nfrom rest_framework import HTT...
[ { "content": "\"\"\"\nProvides various authentication policies.\n\"\"\"\nimport base64\nimport binascii\n\nfrom django.contrib.auth import authenticate, get_user_model\nfrom django.middleware.csrf import CsrfViewMiddleware\nfrom django.utils.translation import gettext_lazy as _\n\nfrom rest_framework import HTT...
diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py index 1e30728d34..1dfc23d7f9 100644 --- a/rest_framework/authentication.py +++ b/rest_framework/authentication.py @@ -220,6 +220,6 @@ class RemoteUserAuthentication(BaseAuthentication): header = "REMOTE_USER" def authenticate(s...
benoitc__gunicorn-1708
gunicorn crashed on start with --reload flag Setup: Vagrant, virtualenv, gunicorn 19.3.0: The following command produces this stack: `gunicorn -c /data/shared/api/gunicorn_config.py -b unix:/tmp/api-dev-gunicorn.sock --log-level INFO --reload wsgi:app` ``` Exception in thread Thread-1: Traceback (most recent call l...
[ { "content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\nimport os\nimport os.path\nimport re\nimport sys\nimport time\nimport threading\n\n\nclass Reloader(threading.Thread):\n def __init__(self, extra_files=None, inte...
[ { "content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\nimport os\nimport os.path\nimport re\nimport sys\nimport time\nimport threading\n\n\nclass Reloader(threading.Thread):\n def __init__(self, extra_files=None, inte...
diff --git a/gunicorn/reloader.py b/gunicorn/reloader.py index b1ce743f9..4ab868e94 100644 --- a/gunicorn/reloader.py +++ b/gunicorn/reloader.py @@ -28,7 +28,7 @@ def get_files(self): fnames = [ re.sub('py[co]$', 'py', module.__file__) for module in list(sys.modules.values()) - ...
ivy-llc__ivy-13420
standard_gamma
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.numpy.func_wrapper import (\n to_ivy_arrays_and_back,\n from_zero_dim_arrays_to_scalar,\n)\n\n\n@to_ivy_arrays_and_back\n@from_zero_dim_arrays_to_scalar\ndef random_sample(size=None):\n return ivy.random_uniform(low=0.0, high=1.0, shape=s...
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.numpy.func_wrapper import (\n to_ivy_arrays_and_back,\n from_zero_dim_arrays_to_scalar,\n)\n\n\n@to_ivy_arrays_and_back\n@from_zero_dim_arrays_to_scalar\ndef random_sample(size=None):\n return ivy.random_uniform(low=0.0, high=1.0, shape=s...
diff --git a/ivy/functional/frontends/numpy/random/functions.py b/ivy/functional/frontends/numpy/random/functions.py index 4dc1c4a1e42f5..bbd25a45c5e3d 100644 --- a/ivy/functional/frontends/numpy/random/functions.py +++ b/ivy/functional/frontends/numpy/random/functions.py @@ -89,3 +89,9 @@ def shuffle(x, /): @from_zer...
fedora-infra__bodhi-1061
Bodhi sends notifications to old address after e-mail change I've changed my e-mail addresses in all locations I could think of: - [fedmsg](https://apps.fedoraproject.org/notifications) - [bugzilla](https://bugzilla.redhat.com/) - [Fedora Admin](https://admin.fedoraproject.org/accounts/) But I still get notifications ...
[ { "content": "# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope t...
[ { "content": "# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope t...
diff --git a/bodhi/server/security.py b/bodhi/server/security.py index e95947dbd9..c2633ba2df 100644 --- a/bodhi/server/security.py +++ b/bodhi/server/security.py @@ -91,9 +91,8 @@ def remember_me(context, request, info, *args, **kw): db.add(user) db.flush() else: - # We used to not track ...
huggingface__optimum-360
AutoConfig is not imported in optimization.py ### System Info ```shell optimium master : fb7e303d9254fcee194aa76f4a0b7fa9d9b140d0 ``` ### Who can help? @echarlaix ### Information - [X] The official example scripts - [ ] My own modified scripts ### Tasks - [X] An officially supported task in the `examples` fold...
[ { "content": "# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
[ { "content": "# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
diff --git a/optimum/onnxruntime/optimization.py b/optimum/onnxruntime/optimization.py index 2448f3b478..3b0eea7623 100644 --- a/optimum/onnxruntime/optimization.py +++ b/optimum/onnxruntime/optimization.py @@ -17,6 +17,7 @@ from typing import Callable, Dict, List, Optional, Tuple, Union import transformers +from t...
beeware__toga-569
Error looking for icon for tutorial for 0.3.0.dev9 This is with Python 3.6.5 in a clean venv: ``` (.venv) PS C:\Users\_\Desktop\toga_tutorial> python .\helloworld.py [Winforms] No valid icon format available for C:\Users\brcan\Desktop\toga_tutorial\.venv\lib\site-packages\toga\resources\tiberius; fall back on Tiberi...
[ { "content": "#/usr/bin/env python\nimport io\nimport re\n\nfrom setuptools import setup, find_packages\n\nwith io.open('toga/__init__.py', encoding='utf8') as version_file:\n version_match = re.search(r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\", version_file.read(), re.M)\n if version_match:\n v...
[ { "content": "#/usr/bin/env python\nimport io\nimport re\n\nfrom setuptools import setup, find_packages\n\nwith io.open('toga/__init__.py', encoding='utf8') as version_file:\n version_match = re.search(r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\", version_file.read(), re.M)\n if version_match:\n v...
diff --git a/src/core/setup.py b/src/core/setup.py index a15d41397d..c4d67176e3 100644 --- a/src/core/setup.py +++ b/src/core/setup.py @@ -27,7 +27,7 @@ packages=find_packages(exclude='tests'), python_requires='>=3.5', package_data={ - 'toga': ['resources/*.icns', 'resources/*.png'], + 'tog...
evennia__evennia-2813
[BUG - Develop] Can't `|` two SaverDicts #### Describe the bug When combining two attributes containing dict data, it fails with a traceback. ``` File "./TestGame/typeclasses/characters.py", line 30, in test_attr return self.db.db_one | self.db.db_two File "./evennia/evennia/utils/dbserialize.py", line 243, in __o...
[ { "content": "\"\"\"\nThis module handles serialization of arbitrary python structural data,\nintended primarily to be stored in the database. It also supports\nstoring Django model instances (which plain pickle cannot do).\n\nThis serialization is used internally by the server, notably for\nstoring data in Att...
[ { "content": "\"\"\"\nThis module handles serialization of arbitrary python structural data,\nintended primarily to be stored in the database. It also supports\nstoring Django model instances (which plain pickle cannot do).\n\nThis serialization is used internally by the server, notably for\nstoring data in Att...
diff --git a/evennia/utils/dbserialize.py b/evennia/utils/dbserialize.py index 11321d8dfd7..0b8b0e63b8d 100644 --- a/evennia/utils/dbserialize.py +++ b/evennia/utils/dbserialize.py @@ -243,6 +243,9 @@ def __gt__(self, other): def __or__(self, other): return self._data | other + def __ror__(self, othe...
ipython__ipython-1991
%page not working ``` %page --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-336-e5a187ccb094> in <module>() ----> 1 get_ipython().magic(u'page') c:\python26\lib\site-packages\i...
[ { "content": "\"\"\"Implementation of basic magic functions.\n\"\"\"\n#-----------------------------------------------------------------------------\n# Copyright (c) 2012 The IPython Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the file COPYING...
[ { "content": "\"\"\"Implementation of basic magic functions.\n\"\"\"\n#-----------------------------------------------------------------------------\n# Copyright (c) 2012 The IPython Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the file COPYING...
diff --git a/IPython/core/magics/basic.py b/IPython/core/magics/basic.py index 534a210a973..d7f35263238 100644 --- a/IPython/core/magics/basic.py +++ b/IPython/core/magics/basic.py @@ -185,7 +185,7 @@ def page(self, parameter_s=''): raw = 'r' in opts oname = args and args or '_' - info = self...
PennyLaneAI__pennylane-5623
[BUG] `param_shift` with `broadcast=True` does not work with zero-length recipes ### Expected behavior `param_shift` has feature parity between `broadcast=True` and `broadcast=False` ### Actual behavior The (somewhat esoteric) example from the test suite below runs with `broadcast=False` but not with `broadcast=True...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\r\n\r\n# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n# you may not use this file except in compliance with the License.\r\n# You may obtain a copy of the License at\r\n\r\n# http://www.apache.org/licenses/LICENSE-2...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\r\n\r\n# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n# you may not use this file except in compliance with the License.\r\n# You may obtain a copy of the License at\r\n\r\n# http://www.apache.org/licenses/LICENSE-2...
diff --git a/doc/releases/changelog-0.36.0.md b/doc/releases/changelog-0.36.0.md index 77826722ffd..c81e7c5710b 100644 --- a/doc/releases/changelog-0.36.0.md +++ b/doc/releases/changelog-0.36.0.md @@ -564,8 +564,9 @@ [(#5610)](https://github.com/PennyLaneAI/pennylane/pull/5610) * Using shot vectors with `param_sh...
pypa__setuptools-936
Graft with Asterisk broken after 28.4.0 28.4.0 is the last release where `graft */data` as an example, was working. After that release, there is a warning that `warning: no directories found matching '*/data'`
[ { "content": "\"\"\"setuptools.command.egg_info\n\nCreate a distribution's .egg-info directory and contents\"\"\"\n\nfrom distutils.filelist import FileList as _FileList\nfrom distutils.errors import DistutilsInternalError\nfrom distutils.util import convert_path\nfrom distutils import log\nimport distutils.err...
[ { "content": "\"\"\"setuptools.command.egg_info\n\nCreate a distribution's .egg-info directory and contents\"\"\"\n\nfrom distutils.filelist import FileList as _FileList\nfrom distutils.errors import DistutilsInternalError\nfrom distutils.util import convert_path\nfrom distutils import log\nimport distutils.err...
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 5ab54dc70f..62bf00aaa9 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -429,7 +429,9 @@ def recursive_exclude(self, dir, pattern): def graft(self, dir): """Include all files from 'dir/'...
microsoft__Qcodes-940
error when saving to drive other than current path This is due to windows handling of drives. A minimal example: ``` python import qcodes,os datadir = r'd:\Temp' qcodes.DataSet.default_io = qcodes.DiskIO(datadir) p=qcodes.Parameter('p', set_cmd=None) q=qcodes.Parameter('q', set_cmd=None) ds=qcodes.Loop(p[0:1...
[ { "content": "\"\"\"\nIO managers for QCodes.\n\nIO managers wrap whatever physical storage layer the user wants to use\nin an interface mimicking the built-in <open> context manager, with\nsome restrictions to minimize the overhead in creating new IO managers.\n\nThe main thing these managers need to implement...
[ { "content": "\"\"\"\nIO managers for QCodes.\n\nIO managers wrap whatever physical storage layer the user wants to use\nin an interface mimicking the built-in <open> context manager, with\nsome restrictions to minimize the overhead in creating new IO managers.\n\nThe main thing these managers need to implement...
diff --git a/qcodes/data/io.py b/qcodes/data/io.py index 4b7a82c8588..93ff782a28b 100644 --- a/qcodes/data/io.py +++ b/qcodes/data/io.py @@ -141,7 +141,7 @@ def to_location(self, path): location (str): the location string corresponding to this path. """ if self.base_location: - ...
strawberry-graphql__strawberry-2481
Increased CPU usage when subscribing with the graphql-transport-ws protocol <!-- Provide a general summary of the bug in the title above. --> <!--- This template is entirely optional and can be removed, but is here to help both you and us. --> <!--- Anything on lines wrapped in comments like these will not show up ...
[ { "content": "from dataclasses import asdict, dataclass\nfrom typing import Any, Dict, List, Optional\n\nfrom graphql import GraphQLFormattedError\n\nfrom strawberry.unset import UNSET\n\n\n@dataclass\nclass GraphQLTransportMessage:\n def as_dict(self) -> dict:\n data = asdict(self)\n if getatt...
[ { "content": "from dataclasses import asdict, dataclass\nfrom typing import Any, Dict, List, Optional\n\nfrom graphql import GraphQLFormattedError\n\nfrom strawberry.unset import UNSET\n\n\n@dataclass\nclass GraphQLTransportMessage:\n def as_dict(self) -> dict:\n data = asdict(self)\n if getatt...
diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000000..d3ebb00904 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,5 @@ +Release type: patch + +This release fixes a bug in subscriptions using the graphql-transport-ws protocol +where the conversion of the NextMessage object to a dictionary took an unnecess...
oobabooga__text-generation-webui-3014
Error when downloading model from UI ### Describe the bug I just downloaded the latest version of text-generation-webui on Ubuntu and started the UI but it is not longer allowing me to download a model from the UI. I tried to downloading 'anon8231489123/vicuna-13b-GPTQ-4bit-128g' but got the following error: Traceb...
[ { "content": "'''\nDownloads models from Hugging Face to models/username_modelname.\n\nExample:\npython download-model.py facebook/opt-1.3b\n\n'''\n\nimport argparse\nimport base64\nimport datetime\nimport hashlib\nimport json\nimport os\nimport re\nimport sys\nfrom pathlib import Path\n\nimport requests\nimpor...
[ { "content": "'''\nDownloads models from Hugging Face to models/username_modelname.\n\nExample:\npython download-model.py facebook/opt-1.3b\n\n'''\n\nimport argparse\nimport base64\nimport datetime\nimport hashlib\nimport json\nimport os\nimport re\nimport sys\nfrom pathlib import Path\n\nimport requests\nimpor...
diff --git a/download-model.py b/download-model.py index 9ee7790664..2642c40545 100644 --- a/download-model.py +++ b/download-model.py @@ -23,7 +23,7 @@ class ModelDownloader: - def __init__(self, max_retries): + def __init__(self, max_retries = 5): self.s = requests.Session() if max_retrie...
GeotrekCE__Geotrek-admin-805
ADMIN - Tronçon bouclant sur lui-même Impossible de saisir le CIRCUIT DES LACS correctement. Renvoie souvent une 504 BAD GATEWAY quand on enregistre. L'itinéraire a pourtant été modifié mais différemment de la façon dont il a été saisi. A creuser.
[ { "content": "from django.utils.translation import ugettext_lazy as _\n\nimport floppyforms as forms\n\nfrom geotrek.common.forms import CommonForm\nfrom .models import Path\nfrom .helpers import PathHelper\nfrom .fields import TopologyField, SnappedLineStringField\n\n\nclass TopologyForm(CommonForm):\n \"\"...
[ { "content": "from django.utils.translation import ugettext_lazy as _\n\nimport floppyforms as forms\n\nfrom geotrek.common.forms import CommonForm\nfrom .models import Path\nfrom .helpers import PathHelper\nfrom .fields import TopologyField, SnappedLineStringField\n\n\nclass TopologyForm(CommonForm):\n \"\"...
diff --git a/CHANGES b/CHANGES index ed9dbb2e7a..1deda94e32 100644 --- a/CHANGES +++ b/CHANGES @@ -35,6 +35,7 @@ CHANGELOG * Allow server host to capture pages (fixes #733) * Adjust map capture according to geometry aspect ratio (fixes #627) * Always show path layer in detail pages (fixes #781) +* Fix restore of top...
buildbot__buildbot-5219
Gerrit Change Event Monitor: assertion error: codebase cannot be None I am getting this stacktrace in the log, with Buildbot 2.6.0 . I do not see this problem with Buildbot 2.5.1 . 2020-02-05 09:11:59-0500 [-] Unhandled Error Traceback (most recent call last): File "/home/buildbot/build-venv/lib/...
[ { "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/changes/gerritchangesource.py b/master/buildbot/changes/gerritchangesource.py index fd50922571c2..c800e3f290d2 100644 --- a/master/buildbot/changes/gerritchangesource.py +++ b/master/buildbot/changes/gerritchangesource.py @@ -171,6 +171,7 @@ def addChange(self, chdict): "patch_...
kubeflow__pipelines-4319
allow output artifact store configuration (vs hard coded) it seems like the output artifacts are always stored in a specific minio service, port, namespace, bucket, secrets, etc (`minio-service.kubeflow:9000`). see: https://github.com/kubeflow/pipelines/blob/f40a22a3f4a8e06d20cf3e3f425b5058d5c87e0b/sdk/python/kfp/c...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/sdk/python/kfp/_client.py b/sdk/python/kfp/_client.py index 6565a273f22..fd8d056306c 100644 --- a/sdk/python/kfp/_client.py +++ b/sdk/python/kfp/_client.py @@ -346,6 +346,8 @@ def get_pipeline_id(self, name): ] }) result = self._pipelines_api.list_pipelines(filter=pipeline_filter) + if ...
holoviz__panel-1064
outdated param dependency it seems panel 0.8 uses `CalendarDateRange` from param. This [was introduced in param 1.9.2](https://github.com/holoviz/param/releases/tag/v1.9.2), but the param dependency is still at >=1.9.0 https://github.com/holoviz/panel/blob/master/setup.py#L93 This can lead to errors like ``` ...
[ { "content": "#!/usr/bin/env python\n\nimport os\nimport shutil\nimport sys\nimport json\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.develop import develop\nfrom setuptools.command.install import install\nfrom setuptools.command.sdist import sdist\n\nimport pyct.build\n\n\ndef get_se...
[ { "content": "#!/usr/bin/env python\n\nimport os\nimport shutil\nimport sys\nimport json\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.develop import develop\nfrom setuptools.command.install import install\nfrom setuptools.command.sdist import sdist\n\nimport pyct.build\n\n\ndef get_se...
diff --git a/setup.py b/setup.py index bc598ae72d..14848474a0 100644 --- a/setup.py +++ b/setup.py @@ -142,7 +142,7 @@ def run(self): # non-python dependencies). Note that setup_requires isn't used # because it doesn't work well with pip. extras_require['build'] = [ - 'param >=1.9.0', + 'param >=1.9.2', '...
holoviz__panel-2616
--autoreload raises AttributeError: 'NoneType' object has no attribute 'stop' I'm on the current Panel master. When I `panel serve 'script.py' --autoreload` this code ```python import panel as pn pn.extension() import numpy as np import holoviews as hv from holoviews import opts, streams from holoviews.plo...
[ { "content": "\"\"\"\nDefines callbacks to be executed on a thread or by scheduling it\non a running bokeh server.\n\"\"\"\nimport time\nimport param\n\nfrom bokeh.io import curdoc as _curdoc\n\nfrom ..util import edit_readonly\nfrom .state import state\n\n\nclass PeriodicCallback(param.Parameterized):\n \"\...
[ { "content": "\"\"\"\nDefines callbacks to be executed on a thread or by scheduling it\non a running bokeh server.\n\"\"\"\nimport time\nimport param\n\nfrom bokeh.io import curdoc as _curdoc\n\nfrom ..util import edit_readonly\nfrom .state import state\n\n\nclass PeriodicCallback(param.Parameterized):\n \"\...
diff --git a/panel/io/callbacks.py b/panel/io/callbacks.py index b6ceb263f0..0176a1f7bd 100644 --- a/panel/io/callbacks.py +++ b/panel/io/callbacks.py @@ -130,7 +130,7 @@ def stop(self): self._timeout = None if self._doc: self._doc.remove_periodic_callback(self._cb) - else: + ...
qtile__qtile-2254
Qtile loggin with default config Hi today when i loggin in my arch linux with qtile, opened with default config. i see another post with similar problem but dont work. This is the log of qtile: ``` 2021-02-22 13:35:55,667 WARNING libqtile lifecycle.py:_atexit():L38 Qtile will now terminate 2021-02-22 13:36:01,032 ...
[ { "content": "# Copyright (c) 2021, Tycho Andersen. All rights reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the ...
[ { "content": "# Copyright (c) 2021, Tycho Andersen. All rights reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the ...
diff --git a/libqtile/scripts/migrate.py b/libqtile/scripts/migrate.py index 9d7931cbe9..98b1a2ace0 100644 --- a/libqtile/scripts/migrate.py +++ b/libqtile/scripts/migrate.py @@ -59,10 +59,19 @@ def threaded_poll_text_rename(config): ) +def pacman_to_checkupdates(config): + return ( + bowler.Query(co...
translate__translate-3435
multistring needs a __hash__ method In old ttk you could do something like ``` python foo = multistring("foo") foodict = {foo: "bar"} assert 'foo' in foodict ``` It seems this no longer works - not sure why, but a `__hash__` method that returns `hash(str(self))` should fix the problem i believe @claudep @julen any t...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2006 Zuza Software Foundation\n#\n# This file is part of translate.\n#\n# translate is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either versio...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2006 Zuza Software Foundation\n#\n# This file is part of translate.\n#\n# translate is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either versio...
diff --git a/translate/misc/multistring.py b/translate/misc/multistring.py index c32a957266..87e6a9ec79 100644 --- a/translate/misc/multistring.py +++ b/translate/misc/multistring.py @@ -82,7 +82,7 @@ def cmp_compat(s1, s2): return cmp_compat(str(type(self)), str(type(otherstring))) def __hash__(sel...
mozilla__bugbug-200
Use 'product' and 'component' features in the models b7369ea8bf282941ce4b378ad5ad3c832db20668 introduced the features, but we are still not using them.
[ { "content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport xgboost\nfrom imblearn.over_sampling import BorderlineSMOTE\nf...
[ { "content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport xgboost\nfrom imblearn.over_sampling import BorderlineSMOTE\nf...
diff --git a/bugbug/models/bug.py b/bugbug/models/bug.py index d55345cc74..f0ee0b4b68 100644 --- a/bugbug/models/bug.py +++ b/bugbug/models/bug.py @@ -39,6 +39,8 @@ def __init__(self, lemmatization=False): bug_features.blocked_bugs_number(), bug_features.ever_affected(), bug_featu...
bookwyrm-social__bookwyrm-3239
OWASP Core Rule Set 913101 **Describe the bug** BookWyrm's user agent is blocked by an OWASP-compliant web application firewall (WAF) for violating rule 913101. No other fediverse applications violate this rule. **To Reproduce** This issue is not reproducible between normal servers and clients. **Expected b...
[ { "content": "\"\"\" bookwyrm settings and configuration \"\"\"\nimport os\nfrom typing import AnyStr\n\nfrom environs import Env\n\n\nimport requests\nfrom django.utils.translation import gettext_lazy as _\nfrom django.core.exceptions import ImproperlyConfigured\n\n\n# pylint: disable=line-too-long\n\nenv = En...
[ { "content": "\"\"\" bookwyrm settings and configuration \"\"\"\nimport os\nfrom typing import AnyStr\n\nfrom environs import Env\n\n\nimport requests\nfrom django.utils.translation import gettext_lazy as _\nfrom django.core.exceptions import ImproperlyConfigured\n\n\n# pylint: disable=line-too-long\n\nenv = En...
diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index cc941da849..adc9bd0ef1 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -347,8 +347,7 @@ USE_TZ = True -agent = requests.utils.default_user_agent() -USER_AGENT = f"{agent} (BookWyrm/{VERSION}; +https://{DOMAIN}/)" +USER_AGENT = f"BookWyr...
Kinto__kinto-1342
`kinto create-user` command should fallback to KINTO_INI env variable for the config file;
[ { "content": "import argparse\nimport os\nimport sys\nimport logging\nimport logging.config\n\nfrom kinto.core import scripts\nfrom kinto.plugins.accounts.scripts import create_user\nfrom pyramid.scripts import pserve\nfrom pyramid.paster import bootstrap\nfrom kinto import __version__\nfrom kinto.config import...
[ { "content": "import argparse\nimport os\nimport sys\nimport logging\nimport logging.config\n\nfrom kinto.core import scripts\nfrom kinto.plugins.accounts.scripts import create_user\nfrom pyramid.scripts import pserve\nfrom pyramid.paster import bootstrap\nfrom kinto import __version__\nfrom kinto.config import...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f5f507aa2..74ec541ae 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,7 +8,8 @@ This document describes changes between each past release. **Bug fixes** -- Fix `create-user` command for PostgreSQL backend (#1340) +- Use the ``KINTO_INI`` env variable to findout ...
horovod__horovod-1693
horovodrun convenience script does not account for 'OpenRTE' in the output of mpirun --version **Environment:** 1. Framework: (TensorFlow, PyTorch) 2. Framework version: 1.14.0 3. Horovod version: 0.16.4 4. MPI version: 3.1.4/4.0.1 5. CUDA version: 10.1 6. NCCL version: 2.4.8 7. Python version: 3.6 8. OS and ve...
[ { "content": "# Copyright 2019 Uber Technologies, Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# Copyright 2019 Uber Technologies, Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/horovod/run/mpi_run.py b/horovod/run/mpi_run.py index 9fbc55e085..18c41ca747 100644 --- a/horovod/run/mpi_run.py +++ b/horovod/run/mpi_run.py @@ -49,7 +49,7 @@ def _get_mpi_implementation_flags(): output.close() if exit_code == 0: - if 'Open MPI' in output_msg: + if 'Open MPI'...
pulp__pulpcore-3381
Export is not locking on the exported repositories SSIA
[ { "content": "from django_filters.rest_framework import filters\n\nfrom drf_spectacular.utils import extend_schema\nfrom rest_framework import mixins\n\nfrom pulpcore.app.models import (\n Export,\n Exporter,\n FilesystemExport,\n FilesystemExporter,\n Publication,\n PulpExport,\n PulpExpor...
[ { "content": "from django_filters.rest_framework import filters\n\nfrom drf_spectacular.utils import extend_schema\nfrom rest_framework import mixins\n\nfrom pulpcore.app.models import (\n Export,\n Exporter,\n FilesystemExport,\n FilesystemExporter,\n Publication,\n PulpExport,\n PulpExpor...
diff --git a/CHANGES/3370.bugfix b/CHANGES/3370.bugfix new file mode 100644 index 0000000000..7653714719 --- /dev/null +++ b/CHANGES/3370.bugfix @@ -0,0 +1 @@ +Insured that pulp-export correctly locks repos-being-exported. diff --git a/pulpcore/app/viewsets/exporter.py b/pulpcore/app/viewsets/exporter.py index 39188743...
bokeh__bokeh-8730
Delay between autoload.js and websocket request # READ AND FOLLOW THESE INSTRUCTIONS CAREFULLY *ISSUES THAT DO NOT CONTAIN NECESSARY INFORMATION MAY BE CLOSED, IMMEDIATELY* The issue tracker is NOT the place for general support. For questions and technical assistance, come ask the [Bokeh mailing list](https://gr...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
diff --git a/bokeh/application/handlers/directory.py b/bokeh/application/handlers/directory.py index 58c050aedfc..5f79257ab06 100644 --- a/bokeh/application/handlers/directory.py +++ b/bokeh/application/handlers/directory.py @@ -176,7 +176,7 @@ def modify_document(self, doc): if they are found. ''' ...
facebookresearch__ParlAI-3351
BERT classifier doesn't work under distributed_train The default tokenization is re, I think it's building the dictionary along the way... **Logs** Please paste the command line output: ``` ValueError: Dictionaries should be pre-built before distributed train. ValueError: Dictionaries should be pre-built befor...
[ { "content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\nfrom parlai.core.dict import DictionaryAgent\nfrom parlai.zoo.bert.build import download\nfrom...
[ { "content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\nfrom parlai.core.dict import DictionaryAgent\nfrom parlai.zoo.bert.build import download\nfrom...
diff --git a/parlai/agents/bert_ranker/bert_dictionary.py b/parlai/agents/bert_ranker/bert_dictionary.py index 1711024073f..268a12fd490 100644 --- a/parlai/agents/bert_ranker/bert_dictionary.py +++ b/parlai/agents/bert_ranker/bert_dictionary.py @@ -24,6 +24,9 @@ class BertDictionaryAgent(DictionaryAgent): Allow to...
pre-commit__pre-commit-1259
[FR][bug?] pre-commit hook repo self-test Given a repo with `.pre-commit-hooks.yaml` defined (like https://github.com/ansible/ansible-lint), I want to integrate testing of the hooks declared in it. I can do `pre-commit try-repo https://github.com/ansible/ansible-lint.git` but this hits the remote which I want to avo...
[ { "content": "from __future__ import unicode_literals\n\nimport logging\nimport os.path\nimport sys\n\nfrom pre_commit.util import cmd_output\nfrom pre_commit.util import cmd_output_b\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef zsplit(s):\n s = s.strip('\\0')\n if s:\n return s.split('\\0')\...
[ { "content": "from __future__ import unicode_literals\n\nimport logging\nimport os.path\nimport sys\n\nfrom pre_commit.util import cmd_output\nfrom pre_commit.util import cmd_output_b\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef zsplit(s):\n s = s.strip('\\0')\n if s:\n return s.split('\\0')\...
diff --git a/pre_commit/git.py b/pre_commit/git.py index c8faf60f7..136cefef5 100644 --- a/pre_commit/git.py +++ b/pre_commit/git.py @@ -141,7 +141,7 @@ def has_diff(*args, **kwargs): repo = kwargs.pop('repo', '.') assert not kwargs, kwargs cmd = ('git', 'diff', '--quiet', '--no-ext-diff') + args - re...
urllib3__urllib3-1782
iterating a closed response improperly produces data Consider the following script: ``` import urllib3 http = urllib3.PoolManager() resp = http.request("GET", "https://www.python.org") resp.close() for d in resp: print(repr(d)) ``` With urllib3 1.25.7, this program prints `b''`. With urllib3 1.24.3, one ...
[ { "content": "from __future__ import absolute_import\nfrom contextlib import contextmanager\nimport zlib\nimport io\nimport logging\nfrom socket import timeout as SocketTimeout\nfrom socket import error as SocketError\n\ntry:\n import brotli\nexcept ImportError:\n brotli = None\n\nfrom ._collections impor...
[ { "content": "from __future__ import absolute_import\nfrom contextlib import contextmanager\nimport zlib\nimport io\nimport logging\nfrom socket import timeout as SocketTimeout\nfrom socket import error as SocketError\n\ntry:\n import brotli\nexcept ImportError:\n brotli = None\n\nfrom ._collections impor...
diff --git a/src/urllib3/response.py b/src/urllib3/response.py index adc321e713..6090a7350f 100644 --- a/src/urllib3/response.py +++ b/src/urllib3/response.py @@ -792,7 +792,7 @@ def geturl(self): return self._request_url def __iter__(self): - buffer = [b""] + buffer = [] for ...
openfun__richie-2306
Frontend - Rename teacher dashboard menu entry ## Feature Request **Is your feature request related to a problem or unsupported use case? Please describe.** Currently, we name the dashboard dedicated to manage trainings "teacher dashboard". After a demonstration, it appears this term is weird as other user than teache...
[ { "content": "\"\"\"\nDjango settings for richie project.\n\"\"\"\n\nimport json\nimport os\n\nfrom django.utils.translation import gettext_lazy as _\n\n# pylint: disable=ungrouped-imports\nimport sentry_sdk\nfrom configurations import Configuration, values\nfrom sentry_sdk.integrations.django import DjangoInte...
[ { "content": "\"\"\"\nDjango settings for richie project.\n\"\"\"\n\nimport json\nimport os\n\nfrom django.utils.translation import gettext_lazy as _\n\n# pylint: disable=ungrouped-imports\nimport sentry_sdk\nfrom configurations import Configuration, values\nfrom sentry_sdk.integrations.django import DjangoInte...
diff --git a/sandbox/settings.py b/sandbox/settings.py index e83e9c0fc0..98fcb07910 100644 --- a/sandbox/settings.py +++ b/sandbox/settings.py @@ -284,7 +284,7 @@ class Base(StyleguideMixin, DRFMixin, RichieCoursesConfigurationMixin, Configura "href": _("/dashboard/"), }, "das...
ckan__ckan-5478
routes manual reference URL in comment is broken **CKAN version** latest **Describe the bug** The url in [comment ](https://github.com/ckan/ckan/blob/0f87337fd937a15545ed761367b5d27d888e3803/ckan/config/routing.py#L6) is broken. **Steps to reproduce** Steps to reproduce the behavior: Open a browser and go to ...
[ { "content": "# encoding: utf-8\n\"\"\"Routes configuration\n\nThe more specific and detailed routes should be defined first so they\nmay take precedent over the more generic routes. For more information\nrefer to the routes manual at http://routes.groovie.org/docs/\n\n\"\"\"\nimport re\n\nfrom routes.mapper im...
[ { "content": "# encoding: utf-8\n\"\"\"Routes configuration\n\nThe more specific and detailed routes should be defined first so they\nmay take precedent over the more generic routes. For more information\nrefer to the routes manual at https://routes.readthedocs.io/en/latest/\n\n\"\"\"\nimport re\n\nfrom routes....
diff --git a/ckan/config/routing.py b/ckan/config/routing.py index f4632a2643a..af723c55448 100644 --- a/ckan/config/routing.py +++ b/ckan/config/routing.py @@ -3,7 +3,7 @@ The more specific and detailed routes should be defined first so they may take precedent over the more generic routes. For more information -re...
abey79__vpype-607
Default to QT_QPA_PLATFORM=xcb on Linux/Wayland If we detect a linux box running on wayland, we should force Qt to use the xcb platform as the wayland backend doesn't work properly with moderngl. This maybe a good way to detect wayland: ``` XDG_SESSION_TYPE=wayland ``` Relevant discussions: - https://github.c...
[ { "content": "from .viewer import *\n", "path": "vpype_viewer/qtviewer/__init__.py" } ]
[ { "content": "def _check_wayland():\n \"\"\"Fix QT env variable on Wayland-based systems.\n\n See https://github.com/abey79/vpype/issues/596\n \"\"\"\n import os\n import sys\n\n if sys.platform.startswith(\"linux\"):\n if os.environ.get(\"XDG_SESSION_TYPE\", \"\") == \"wayland\":\n ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c88f7ee..8f30b192 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Release date: UNRELEASED ### Bug fixes * Fixed a design issue with the `read` command where disjoints groups of digit in layer names would be used to determine layer IDs. Only the first c...
fonttools__fonttools-2274
When parsing MVAR with lazy=True recordSize is wrong Reproduction: ``` from fontTools import ttLib import io import sys file_path = sys.argv[1] fontdata = open(file_path, "rb").read() font = ttLib.TTFont(io.BytesIO(fontdata), lazy=True) mvar = font["MVAR"].table print(mvar.ValueRecord.recordSize) for re...
[ { "content": "from fontTools.misc.py23 import Tag, bytesjoin\nfrom .DefaultTable import DefaultTable\nimport sys\nimport array\nimport struct\nimport logging\n\nlog = logging.getLogger(__name__)\n\nclass OverflowErrorRecord(object):\n\tdef __init__(self, overflowTuple):\n\t\tself.tableType = overflowTuple[0]\n\...
[ { "content": "from fontTools.misc.py23 import Tag, bytesjoin\nfrom .DefaultTable import DefaultTable\nimport sys\nimport array\nimport struct\nimport logging\n\nlog = logging.getLogger(__name__)\n\nclass OverflowErrorRecord(object):\n\tdef __init__(self, overflowTuple):\n\t\tself.tableType = overflowTuple[0]\n\...
diff --git a/Lib/fontTools/ttLib/tables/otBase.py b/Lib/fontTools/ttLib/tables/otBase.py index 3c07f9e11a..24c6197006 100644 --- a/Lib/fontTools/ttLib/tables/otBase.py +++ b/Lib/fontTools/ttLib/tables/otBase.py @@ -571,7 +571,7 @@ def getRecordSize(cls, reader): countValue = 1 if conv.repeat: if conv.repea...
SeldonIO__MLServer-1172
Star imports from `mlserver.codecs` not working For example: ```python from mlserver.codecs import * ``` Throws an error: ```python Traceback (most recent call last): File "/home/janis/.conda/envs/py310/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3460, in run_code exec(code_obj,...
[ { "content": "from .numpy import NumpyCodec, NumpyRequestCodec\nfrom .pandas import PandasCodec\nfrom .string import StringCodec\nfrom .base64 import Base64Codec\nfrom .datetime import DatetimeCodec\nfrom .errors import CodecError\nfrom .decorator import decode_args\nfrom .base import (\n InputCodec,\n Re...
[ { "content": "from .numpy import NumpyCodec, NumpyRequestCodec\nfrom .pandas import PandasCodec\nfrom .string import StringCodec, StringRequestCodec\nfrom .base64 import Base64Codec\nfrom .datetime import DatetimeCodec\nfrom .errors import CodecError\nfrom .decorator import decode_args\nfrom .base import (\n ...
diff --git a/mlserver/codecs/__init__.py b/mlserver/codecs/__init__.py index 47f6a1880..99211dd32 100644 --- a/mlserver/codecs/__init__.py +++ b/mlserver/codecs/__init__.py @@ -1,6 +1,6 @@ from .numpy import NumpyCodec, NumpyRequestCodec from .pandas import PandasCodec -from .string import StringCodec +from .string i...
saulpw__visidata-591
[wishlist] pasting data into input(): should not react to newlines I've come against this a few times now where I've accidentally pasted multi line data into the regex search input. This does two things: 1. When a new line character is pasted, it takes this as and enter which competes the command 2. If there are any ...
[ { "content": "from contextlib import suppress\nimport collections\nimport curses\n\nimport visidata\n\nfrom visidata import EscapeException, ExpectedException, clipdraw, Sheet, VisiData\nfrom visidata import vd, status, error, warning, fail, options, theme, colors\nfrom visidata import launchExternalEditor, sus...
[ { "content": "from contextlib import suppress\nimport collections\nimport curses\n\nimport visidata\n\nfrom visidata import EscapeException, ExpectedException, clipdraw, Sheet, VisiData\nfrom visidata import vd, status, error, warning, fail, options, theme, colors\nfrom visidata import launchExternalEditor, sus...
diff --git a/visidata/_input.py b/visidata/_input.py index 677d14b4c..1f67ef44b 100644 --- a/visidata/_input.py +++ b/visidata/_input.py @@ -232,6 +232,13 @@ def editText(vd, y, x, w, record=True, display=True, **kwargs): status('"%s"' % v) if record and vd.cmdlog: vd.setLastArgs(v) + + ...
ivy-llc__ivy-13703
ptp
[ { "content": "# local\n\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n handle_jax_dtype,\n)\nfrom ivy.functional.frontends.jax.numpy import promote_types_of_jax_inputs\n\n\n@to_ivy_arrays_and_back\ndef ...
[ { "content": "# local\n\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n handle_jax_dtype,\n)\nfrom ivy.functional.frontends.jax.numpy import promote_types_of_jax_inputs\n\n\n@to_ivy_arrays_and_back\ndef ...
diff --git a/ivy/functional/frontends/jax/numpy/statistical.py b/ivy/functional/frontends/jax/numpy/statistical.py index 0a4778ab4d3b6..3fa96b1baf311 100644 --- a/ivy/functional/frontends/jax/numpy/statistical.py +++ b/ivy/functional/frontends/jax/numpy/statistical.py @@ -420,3 +420,10 @@ def std(a, axis=None, dtype=No...
scverse__scanpy-2248
read_10x_h5() `genome` argument appears recently broken for 10x v2 format - [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of scanpy. - [x] (optional) I have confirmed this bug exists on the master branch of scanpy. --- To reproduce...
[ { "content": "\"\"\"Reading and Writing\n\"\"\"\nfrom pathlib import Path, PurePath\nfrom typing import Union, Dict, Optional, Tuple, BinaryIO\n\nimport h5py\nimport json\nimport numpy as np\nimport pandas as pd\nfrom matplotlib.image import imread\nimport anndata\nfrom anndata import (\n AnnData,\n read_...
[ { "content": "\"\"\"Reading and Writing\n\"\"\"\nfrom pathlib import Path, PurePath\nfrom typing import Union, Dict, Optional, Tuple, BinaryIO\n\nimport h5py\nimport json\nimport numpy as np\nimport pandas as pd\nfrom matplotlib.image import imread\nimport anndata\nfrom anndata import (\n AnnData,\n read_...
diff --git a/scanpy/readwrite.py b/scanpy/readwrite.py index f2aef41297..5ff556ddc5 100644 --- a/scanpy/readwrite.py +++ b/scanpy/readwrite.py @@ -219,7 +219,7 @@ def _read_legacy_10x_h5(filename, *, genome=None, start=None): ) dsets = {} - _collect_datasets(dsets, f) + ...
paperless-ngx__paperless-ngx-6474
[BUG] E-Mail-Filter matching on non-Emails ### Description I am using an Email-Rule to receive invoices. Two different for two different users. To assign them to an user, I add a workflow that uses the E-Mail-Rule-Filter and then assigns the owner and the storage location. For whatever reason this is applying on ev...
[ { "content": "import logging\nimport re\nfrom fnmatch import fnmatch\nfrom typing import Union\n\nfrom documents.classifier import DocumentClassifier\nfrom documents.data_models import ConsumableDocument\nfrom documents.data_models import DocumentSource\nfrom documents.models import Correspondent\nfrom document...
[ { "content": "import logging\nimport re\nfrom fnmatch import fnmatch\nfrom typing import Union\n\nfrom documents.classifier import DocumentClassifier\nfrom documents.data_models import ConsumableDocument\nfrom documents.data_models import DocumentSource\nfrom documents.models import Correspondent\nfrom document...
diff --git a/src/documents/matching.py b/src/documents/matching.py index 6ffa1b3aac8..586ca3a6a6e 100644 --- a/src/documents/matching.py +++ b/src/documents/matching.py @@ -269,8 +269,7 @@ def consumable_document_matches_workflow( # Document mail rule vs trigger mail rule if ( - document.mailrule_id ...
mitmproxy__mitmproxy-2067
brotli encode/decode crash ##### Steps to reproduce the problem: 1. load google.com in browser 2. press `enter` on `GET https://www.google.com/ HTTP/2.0` 3. press `z` to select encoding in either `Request` or `Response` 4. press `b` to select brotli ##### Any other comments? What have you tried so far? ``...
[ { "content": "import math\nimport os\nimport sys\nfrom functools import lru_cache\nfrom typing import Optional, Union # noqa\n\nimport urwid\n\nfrom mitmproxy import contentviews\nfrom mitmproxy import exceptions\nfrom mitmproxy import export\nfrom mitmproxy import http\nfrom mitmproxy.net.http import Headers\...
[ { "content": "import math\nimport os\nimport sys\nfrom functools import lru_cache\nfrom typing import Optional, Union # noqa\n\nimport urwid\n\nfrom mitmproxy import contentviews\nfrom mitmproxy import exceptions\nfrom mitmproxy import export\nfrom mitmproxy import http\nfrom mitmproxy.net.http import Headers\...
diff --git a/mitmproxy/tools/console/flowview.py b/mitmproxy/tools/console/flowview.py index a97a9b3156..90cca1c5ac 100644 --- a/mitmproxy/tools/console/flowview.py +++ b/mitmproxy/tools/console/flowview.py @@ -681,7 +681,7 @@ def encode_callback(self, key, conn): encoding_map = { "z": "gzip", ...
getnikola__nikola-3437
The post_list plugin prevents 'else' functionality in templates <!-- Before creating an issue: * make sure you are using an up-to-date version of Nikola * search for existing issues that might be related Make sure to: * provide information about your environment (below) * include all the output you get, and any...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2013-2020 Udo Spallek, Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction,...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2013-2020 Udo Spallek, Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction,...
diff --git a/CHANGES.txt b/CHANGES.txt index 6d599abaa6..dd742c785e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -9,6 +9,8 @@ Features Bugfixes -------- +* Allow else clause in post-list plugin. (Issue #3436) + New in v8.1.1 ============= diff --git a/nikola/plugins/shortcode/post_list.py b/nikola/plugins/shor...
getredash__redash-464
Error running query: datetime.time(13, 52, 27) is not JSON serializable My table schema: ``` sql CREATE TABLE F_entrances ( id SERIAL PRIMARY KEY, timeOfEntrance time, customerId int REFERENCES D_customers ); ``` (and yes, I committed the horrible sin of camel_case vs underScore. I'll be fixing that soonish) ...
[ { "content": "import cStringIO\nimport csv\nimport codecs\nimport decimal\nimport datetime\nimport json\nimport re\nimport hashlib\nimport sqlparse\nimport pytz\n\nCOMMENTS_REGEX = re.compile(\"/\\*.*?\\*/\")\n\n\nclass SQLMetaData(object):\n TABLE_SELECTION_KEYWORDS = ('FROM', 'JOIN', 'LEFT JOIN', 'FULL JOI...
[ { "content": "import cStringIO\nimport csv\nimport codecs\nimport decimal\nimport datetime\nimport json\nimport re\nimport hashlib\nimport sqlparse\nimport pytz\n\nCOMMENTS_REGEX = re.compile(\"/\\*.*?\\*/\")\n\n\nclass SQLMetaData(object):\n TABLE_SELECTION_KEYWORDS = ('FROM', 'JOIN', 'LEFT JOIN', 'FULL JOI...
diff --git a/redash/utils.py b/redash/utils.py index 41b0d813f8..41d23372f2 100644 --- a/redash/utils.py +++ b/redash/utils.py @@ -95,7 +95,7 @@ def default(self, o): if isinstance(o, decimal.Decimal): return float(o) - if isinstance(o, datetime.date): + if isinstance(o, (datetime....
napari__napari-1088
ListModel.append does not check type ## 🐛 Bug in working on layer groups, I found a strange lack of type checking when appending to a `ListModel` (which inherits from `TypedList`). [`ListModel.append`](https://github.com/napari/napari/blob/59ed366e9d492a2389c451468fd8b9f96508b4e2/napari/utils/list/_model.py#L59) ju...
[ { "content": "from ...utils.event import EmitterGroup\n\nfrom ._multi import MultiIndexList\nfrom ._typed import TypedList\n\n\nclass ListModel(MultiIndexList, TypedList):\n \"\"\"List with events, tuple-indexing, typing, and filtering.\n\n Parameters\n ----------\n basetype : type\n Type of ...
[ { "content": "from ...utils.event import EmitterGroup\n\nfrom ._multi import MultiIndexList\nfrom ._typed import TypedList\n\n\nclass ListModel(MultiIndexList, TypedList):\n \"\"\"List with events, tuple-indexing, typing, and filtering.\n\n Parameters\n ----------\n basetype : type\n Type of ...
diff --git a/napari/components/_tests/test_layers_list.py b/napari/components/_tests/test_layers_list.py index 96b273f0def..d19c975c970 100644 --- a/napari/components/_tests/test_layers_list.py +++ b/napari/components/_tests/test_layers_list.py @@ -1,6 +1,7 @@ from napari.components import LayerList from napari.layer...
ansible__molecule-2716
Add a config option to run podman as root # Issue Type - Feature request # Molecule and Ansible details ``` ansible 2.9.9 molecule 3.0.4 ``` Molecule installation method (one of): - pip Ansible installation method (one of): - OS package # Desired Behavior Podman allows running containers i...
[ { "content": "# Copyright (c) 2015-2018 Cisco Systems, Inc.\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\n# deal in the Software without restriction, including without limitation the\n# right...
[ { "content": "# Copyright (c) 2015-2018 Cisco Systems, Inc.\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\n# deal in the Software without restriction, including without limitation the\n# right...
diff --git a/molecule/model/schema_v3.py b/molecule/model/schema_v3.py index ffc5ace19c..0d7b59030e 100644 --- a/molecule/model/schema_v3.py +++ b/molecule/model/schema_v3.py @@ -358,6 +358,7 @@ def pre_validate_base_schema(env, keep_string): "cgroup_manager": {"type": "string"}, "stor...