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
⌀
rotki__rotki-300
IOTA historical price queries don't work ## Problem Definition Discovered this from testing with fake data generated thanks to the data faker. Historical price queries for the `IOTA` token don't work. That's because it's known in cryptocompare as `IOT` and not `IOTA`. ## Task - [ ] Make sure that `IOTA` is ...
[ { "content": "import glob\nimport logging\nimport os\nimport re\nimport time\nfrom json.decoder import JSONDecodeError\n\nfrom rotkehlchen.binance import trade_from_binance\nfrom rotkehlchen.bitmex import trade_from_bitmex\nfrom rotkehlchen.bittrex import trade_from_bittrex\nfrom rotkehlchen.errors import Price...
[ { "content": "import glob\nimport logging\nimport os\nimport re\nimport time\nfrom json.decoder import JSONDecodeError\n\nfrom rotkehlchen.binance import trade_from_binance\nfrom rotkehlchen.bitmex import trade_from_bitmex\nfrom rotkehlchen.bittrex import trade_from_bittrex\nfrom rotkehlchen.errors import Price...
diff --git a/docs/changelog.rst b/docs/changelog.rst index f4424ec3cd..192072e2c3 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,7 @@ Changelog ========= +* :bug:`299` IOTA historical price queries now work properly. * :bug:`288` After a user re-login querying fiat prices will no longer throw ...
kivy__kivy-2804
ScreenManager doesn't recognize itself I tried defining a screen manager, but when I try to switch to another screen it complains that the screen is already managed by another screen manager. Of course this is a lie as there is only one screen manager: ``` In [1]: from main import Game; Game().run() [INFO ...
[ { "content": "'''Screen Manager\n==============\n\n.. versionadded:: 1.4.0\n\n.. warning::\n\n This widget is still experimental, and its API is subject to change in a\n future version.\n\nThe screen manager is a widget dedicated to managing multiple screens for your\napplication. The default :class:`Scre...
[ { "content": "'''Screen Manager\n==============\n\n.. versionadded:: 1.4.0\n\n.. warning::\n\n This widget is still experimental, and its API is subject to change in a\n future version.\n\nThe screen manager is a widget dedicated to managing multiple screens for your\napplication. The default :class:`Scre...
diff --git a/kivy/uix/screenmanager.py b/kivy/uix/screenmanager.py index 1d2afbf338..823ecffaea 100644 --- a/kivy/uix/screenmanager.py +++ b/kivy/uix/screenmanager.py @@ -859,6 +859,11 @@ def add_widget(self, screen): raise ScreenManagerException( 'ScreenManager accepts only Screen widget....
carltongibson__django-filter-546
Add tests case for translation of OrderingFilter Hello, I observe that there is a lack of support for translation in OrderingFilter. I am unable to fix that now, but I prepared a tests case which might be helpful to fix that. ``` $ tox -e py34-django19-restframework34 (…) -------------------------------------...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import unicode_literals\n\nfrom collections import OrderedDict\nfrom datetime import timedelta\n\nfrom django import forms\nfrom django.db.models import Q\nfrom django.db.models.sql.constants import QUERY_TERMS\nfrom django.db.models.constant...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import unicode_literals\n\nfrom collections import OrderedDict\nfrom datetime import timedelta\n\nfrom django import forms\nfrom django.db.models import Q\nfrom django.db.models.sql.constants import QUERY_TERMS\nfrom django.db.models.constant...
diff --git a/django_filters/filters.py b/django_filters/filters.py index 09aa8cc72..27c825c58 100644 --- a/django_filters/filters.py +++ b/django_filters/filters.py @@ -656,12 +656,12 @@ def normalize_fields(cls, fields): def build_choices(self, fields, labels): ascending = [ - (param, labels...
MongoEngine__mongoengine-2703
Connection closing instantly with mongoengine 0.24 and pymongo >= 4.0 I am facing the following issue when trying to connect to my db using the last version of MongoEngine I think it is due to [this new behavior of pymongo 4](https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html#mongoclient-cannot-execu...
[ { "content": "import warnings\n\nfrom pymongo import MongoClient, ReadPreference, uri_parser\nfrom pymongo.database import _check_name\n\nfrom mongoengine.pymongo_support import PYMONGO_VERSION\n\n__all__ = [\n \"DEFAULT_CONNECTION_NAME\",\n \"DEFAULT_DATABASE_NAME\",\n \"ConnectionFailure\",\n \"co...
[ { "content": "import warnings\n\nfrom pymongo import MongoClient, ReadPreference, uri_parser\nfrom pymongo.database import _check_name\n\nfrom mongoengine.pymongo_support import PYMONGO_VERSION\n\n__all__ = [\n \"DEFAULT_CONNECTION_NAME\",\n \"DEFAULT_DATABASE_NAME\",\n \"ConnectionFailure\",\n \"co...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 282934168..b4fe920d2 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -10,6 +10,8 @@ Development - Support MONGODB-AWS authentication mechanism (with `authmechanismproperties`) #2507 - Turning off dereferencing for the results of distinct query. #2...
ansible-collections__community.general-6078
[zypper] "msg: Zypper run command failed with return code 5." when using community.general.zypper module on MicroOS ### Summary Using the following snippet on a freshly installed MicroOS will result in the zypper module not using `transactional-update`. ```yaml --- - hosts: test tasks: - name: Install fai...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2013, Patrick Callahan <pmc@patrickcallahan.com>\n# based on\n# openbsd_pkg\n# Copyright (c) 2013\n# Patrik Lundin <patrik.lundin.swe@gmail.com>\n#\n# yum\n# Copyright (c) 2012, Red Hat, Inc\n# Wr...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2013, Patrick Callahan <pmc@patrickcallahan.com>\n# based on\n# openbsd_pkg\n# Copyright (c) 2013\n# Patrik Lundin <patrik.lundin.swe@gmail.com>\n#\n# yum\n# Copyright (c) 2012, Red Hat, Inc\n# Wr...
diff --git a/changelogs/fragments/5615-zypper-transactional-update.yml b/changelogs/fragments/5615-zypper-transactional-update.yml new file mode 100644 index 00000000000..5eb6bb84058 --- /dev/null +++ b/changelogs/fragments/5615-zypper-transactional-update.yml @@ -0,0 +1,2 @@ +bugfixes: + - "zypper - make package mana...
mitmproxy__mitmproxy-2919
Update socks mode access commandline + documentation (v3.0.2) ##### Steps to reproduce the problem: 1. mitmproxy --socks "--socks is deprecated Please use '--set socks=value' instead" 2. Check online documentation at: https://mitmproxy.org/docs/latest/concepts-modes/#socks-proxy 3. Check mitmproxy --help ####...
[ { "content": "import sys\n\nDEPRECATED = \"\"\"\n--cadir\n-Z\n--body-size-limit\n--stream\n--palette\n--palette-transparent\n--follow\n--order\n--no-mouse\n--reverse\n--socks\n--http2-priority\n--no-http2-priority\n--no-websocket\n--websocket\n--spoof-source-address\n--upstream-bind-address\n--ciphers-client\n-...
[ { "content": "import sys\n\nDEPRECATED = \"\"\"\n--cadir\n-Z\n--body-size-limit\n--stream\n--palette\n--palette-transparent\n--follow\n--order\n--no-mouse\n--reverse\n--http2-priority\n--no-http2-priority\n--no-websocket\n--websocket\n--spoof-source-address\n--upstream-bind-address\n--ciphers-client\n--ciphers-...
diff --git a/mitmproxy/utils/arg_check.py b/mitmproxy/utils/arg_check.py index 873bef06d5..9c582c4c21 100644 --- a/mitmproxy/utils/arg_check.py +++ b/mitmproxy/utils/arg_check.py @@ -11,7 +11,6 @@ --order --no-mouse --reverse ---socks --http2-priority --no-http2-priority --no-websocket @@ -59,6 +58,7 @@ -i -f ...
django-import-export__django-import-export-303
BigIntegerField doesn't get recongnized as IntegerWidget [`ModelResource.widget_from_django_field`](https://github.com/django-import-export/django-import-export/blob/95722b924741dd7b2bfc4a461066cd662d3b209a/import_export/resources.py#L548-L550) only reconizes `IntegerField`, `PositiveIntegerField`, `PositiveSmallIntege...
[ { "content": "from __future__ import unicode_literals\n\nimport functools\nfrom copy import deepcopy\nimport sys\nimport traceback\n\nimport tablib\nfrom diff_match_patch import diff_match_patch\n\nfrom django import VERSION\nfrom django.utils.safestring import mark_safe\nfrom django.utils import six\nfrom djan...
[ { "content": "from __future__ import unicode_literals\n\nimport functools\nfrom copy import deepcopy\nimport sys\nimport traceback\n\nimport tablib\nfrom diff_match_patch import diff_match_patch\n\nfrom django import VERSION\nfrom django.utils.safestring import mark_safe\nfrom django.utils import six\nfrom djan...
diff --git a/import_export/resources.py b/import_export/resources.py index 976c429c3..7e544337b 100644 --- a/import_export/resources.py +++ b/import_export/resources.py @@ -545,7 +545,7 @@ def widget_from_django_field(cls, f, default=widgets.Widget): result = widgets.DateTimeWidget elif internal_t...
cocotb__cocotb-3753
cache `want_color_output` calls `cocotb.utils.want_color_output()` checks the environment and `stdout` properties to determine if the user wants color outputs. This only needs to be computed once, it should not be able to be changed during the course of operation.
[ { "content": "# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistributions o...
[ { "content": "# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistributions o...
diff --git a/src/cocotb/utils.py b/src/cocotb/utils.py index df63c0e332..8aaf2bf925 100644 --- a/src/cocotb/utils.py +++ b/src/cocotb/utils.py @@ -34,6 +34,7 @@ import weakref from decimal import Decimal from enum import Enum +from functools import lru_cache from numbers import Real from typing import Any, Optiona...
opsdroid__opsdroid-1011
telegram connector does not handle emoji message Hi, When opsdroid receive an emoji message from telegram "_perhaps this issue impact other platforms_" it does not succeed to parse the incoming message (no text field found) and enter a loop process indicating **ERROR opsdroid.connector.telegram: Unable to parse th...
[ { "content": "\"\"\"A connector for Telegram.\"\"\"\nimport asyncio\nimport logging\nimport aiohttp\n\nfrom opsdroid.connector import Connector, register_event\nfrom opsdroid.events import Message, Image\n\n\n_LOGGER = logging.getLogger(__name__)\n\n\nclass ConnectorTelegram(Connector):\n \"\"\"A connector t...
[ { "content": "\"\"\"A connector for Telegram.\"\"\"\nimport asyncio\nimport logging\nimport aiohttp\n\nfrom opsdroid.connector import Connector, register_event\nfrom opsdroid.events import Message, Image\n\n\n_LOGGER = logging.getLogger(__name__)\n\n\nclass ConnectorTelegram(Connector):\n \"\"\"A connector t...
diff --git a/opsdroid/connector/telegram/__init__.py b/opsdroid/connector/telegram/__init__.py index 3d981ab5a..0a3aefead 100644 --- a/opsdroid/connector/telegram/__init__.py +++ b/opsdroid/connector/telegram/__init__.py @@ -173,6 +173,15 @@ async def _parse_message(self, response): ) ...
wagtail__wagtail-6422
ModelAdmin forms that have Choosers inside MultiFieldPanels cause a crash ### Issue Summary If you define a model or snippet, and that model's `panels` places a Chooser of any kind (ImageChooser, PageChooser, DocumentChooser) inside a `MultiFieldPanel`, attempting to access the form through the ModelAdmin interface ...
[ { "content": "from collections import OrderedDict\n\nfrom django import forms\nfrom django.contrib.admin import FieldListFilter\nfrom django.contrib.admin.options import IncorrectLookupParameters\nfrom django.contrib.admin.utils import (\n get_fields_from_path, label_for_field, lookup_field, lookup_needs_dis...
[ { "content": "from collections import OrderedDict\n\nfrom django import forms\nfrom django.contrib.admin import FieldListFilter\nfrom django.contrib.admin.options import IncorrectLookupParameters\nfrom django.contrib.admin.utils import (\n get_fields_from_path, label_for_field, lookup_field, lookup_needs_dis...
diff --git a/wagtail/contrib/modeladmin/tests/test_simple_modeladmin.py b/wagtail/contrib/modeladmin/tests/test_simple_modeladmin.py index 75e1bf3b79fa..b6db5a05f4ea 100644 --- a/wagtail/contrib/modeladmin/tests/test_simple_modeladmin.py +++ b/wagtail/contrib/modeladmin/tests/test_simple_modeladmin.py @@ -8,9 +8,10 @@ ...
elastic__apm-agent-python-1890
IndexError when "url" not found in args or kwargs. ### Overview I've found an issue in line 46 of `call()` method in `AioHttpClientInstrumentation(...)` class. https://github.com/elastic/apm-agent-python/blob/da93e7af448abcac367d216e2d20a584051f6e50/elasticapm/instrumentation/packages/asyncio/aiohttp_client.py#L4...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain...
diff --git a/elasticapm/instrumentation/packages/asyncio/aiohttp_client.py b/elasticapm/instrumentation/packages/asyncio/aiohttp_client.py index a3cfbfd84..b79842810 100644 --- a/elasticapm/instrumentation/packages/asyncio/aiohttp_client.py +++ b/elasticapm/instrumentation/packages/asyncio/aiohttp_client.py @@ -42,8 +4...
gratipay__gratipay.com-4464
NPM sync is broken https://gratipay.slack.com/archives/C36LJJF9V/p1494580201702422
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport requests\nfrom couchdb import Database\n\nfrom gratipay.models.package import NPM, Package\n\n\nREGISTRY_URL = 'https://replicate.npmjs.com/'\n\n\ndef get_last_seq(db):\n return...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport requests\nfrom couchdb import Database\n\nfrom gratipay.models.package import NPM, Package\n\n\nREGISTRY_URL = 'https://replicate.npmjs.com/'\n\n\ndef get_last_seq(db):\n return...
diff --git a/gratipay/sync_npm.py b/gratipay/sync_npm.py index b2c572e22d..36d8f6b9e5 100644 --- a/gratipay/sync_npm.py +++ b/gratipay/sync_npm.py @@ -52,7 +52,11 @@ def consume_change_stream(stream, db): # Decide what to do. if change.get('deleted'): package = Package.from_na...
angr__angr-1402
Confusing error with mismatched symbolic value sizes **Describe the bug** This is less of a bug report and more of a report on a confusing error message. Essentially, if you have a size mismatch when storing a symbolic value in memory, the warnings that it raises is different depending on how you store it, and in one ...
[ { "content": "import logging\nimport claripy\nfrom sortedcontainers import SortedDict\n\nfrom ..state_plugins.plugin import SimStatePlugin\n\n\nl = logging.getLogger(name=__name__)\n\nstn_map = { 'st%d' % n: n for n in range(8) }\ntag_map = { 'tag%d' % n: n for n in range(8) }\n\nDUMMY_SYMBOLIC_READ_VALUE = 0xc...
[ { "content": "import logging\nimport claripy\nfrom sortedcontainers import SortedDict\n\nfrom ..state_plugins.plugin import SimStatePlugin\n\n\nl = logging.getLogger(name=__name__)\n\nstn_map = { 'st%d' % n: n for n in range(8) }\ntag_map = { 'tag%d' % n: n for n in range(8) }\n\nDUMMY_SYMBOLIC_READ_VALUE = 0xc...
diff --git a/angr/storage/memory.py b/angr/storage/memory.py index 8d07259e5a6..ca83c38177f 100644 --- a/angr/storage/memory.py +++ b/angr/storage/memory.py @@ -512,6 +512,11 @@ def store(self, addr, data, size=None, condition=None, add_constraints=None, end elif size_e is None: size_e = self.stat...
projectmesa__mesa-1439
Seed and random should not be class attributes **Describe the bug** <!-- A clear and concise description the bug --> Every time a model instance is created, it updates the seed and random attribute of every other instance of the same class. **Expected behavior** <!-- A clear and concise description of what you ...
[ { "content": "\"\"\"\nThe model class for Mesa framework.\n\nCore Objects: Model\n\n\"\"\"\n# Mypy; for the `|` operator purpose\n# Remove this __future__ import once the oldest supported Python is 3.10\nfrom __future__ import annotations\n\nimport random\n\nfrom mesa.datacollection import DataCollector\n\n# my...
[ { "content": "\"\"\"\nThe model class for Mesa framework.\n\nCore Objects: Model\n\n\"\"\"\n# Mypy; for the `|` operator purpose\n# Remove this __future__ import once the oldest supported Python is 3.10\nfrom __future__ import annotations\n\nimport random\n\nfrom mesa.datacollection import DataCollector\n\n# my...
diff --git a/mesa/model.py b/mesa/model.py index 10b0a5ee659..aba1db9a741 100644 --- a/mesa/model.py +++ b/mesa/model.py @@ -21,9 +21,10 @@ class Model: def __new__(cls, *args: Any, **kwargs: Any) -> Any: """Create a new model object and instantiate its RNG automatically.""" - cls._seed = kwargs....
openstates__openstates-scrapers-2184
MA failing since at least 2018-02-23 MA has been failing since 2018-02-23 Based on automated runs it appears that MA has not run successfully in 7 days (2018-02-23). ``` Syntax Error (220): Illegal character <72> in hex string Syntax Error (221): Illegal character <73> in hex string Syntax Error (223): Illegal cha...
[ { "content": "import re\nimport requests\nimport os\nfrom datetime import datetime\nimport lxml.html\nfrom pupa.scrape import Scraper, Bill, VoteEvent\nfrom pupa.utils import convert_pdf\n\nfrom .actions import Categorizer\n\n\nclass MABillScraper(Scraper):\n categorizer = Categorizer()\n session_filters ...
[ { "content": "import re\nimport requests\nimport os\nfrom datetime import datetime\nimport lxml.html\nfrom pupa.scrape import Scraper, Bill, VoteEvent\nfrom pupa.utils import convert_pdf\n\nfrom .actions import Categorizer\n\n\nclass MABillScraper(Scraper):\n categorizer = Categorizer()\n session_filters ...
diff --git a/openstates/ma/bills.py b/openstates/ma/bills.py index 009e75bb44..fd7c854392 100644 --- a/openstates/ma/bills.py +++ b/openstates/ma/bills.py @@ -227,8 +227,9 @@ def scrape_action_page(self, bill, page): # House votes if "Supplement" in action_name: actor = "lower...
OpenNMT__OpenNMT-py-654
copy_loss_by_seqlength results in overflow over value of 255 because of sum over boolean tensor Hi, The below code results in overflow over value of 255. See related discussion in pytorch [sum of boolean tensor](https://discuss.pytorch.org/t/sum-of-a-boolean-tensor/5719) https://github.com/OpenNMT/OpenNMT-py/blob/3bd...
[ { "content": "import torch.nn as nn\nimport torch.nn.functional as F\nimport torch\nimport torch.cuda\n\nimport onmt\nimport onmt.io\nfrom onmt.Utils import aeq\n\n\nclass CopyGenerator(nn.Module):\n \"\"\"Generator module that additionally considers copying\n words directly from the source.\n\n The ma...
[ { "content": "import torch.nn as nn\nimport torch.nn.functional as F\nimport torch\nimport torch.cuda\n\nimport onmt\nimport onmt.io\nfrom onmt.Utils import aeq\n\n\nclass CopyGenerator(nn.Module):\n \"\"\"Generator module that additionally considers copying\n words directly from the source.\n\n The ma...
diff --git a/onmt/modules/CopyGenerator.py b/onmt/modules/CopyGenerator.py index ece879aeb3..222b7a1c2d 100644 --- a/onmt/modules/CopyGenerator.py +++ b/onmt/modules/CopyGenerator.py @@ -207,7 +207,7 @@ def _compute_loss(self, batch, output, target, copy_attn, align): # Compute Loss as NLL divided by seq l...
quantumlib__Cirq-4656
cirq.Simulator doesn't support inverse gates that use sympy arguments for gates that don't define __pow__ Simulating the inverse of a gate that uses sympy Symbols as arguments causes a "Simulator doesn't support" Type Error, if the gate inherits its __pow__ magic method from `cirq.Gate`. Of particular note is the `cir...
[ { "content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/cirq-core/cirq/ops/raw_types.py b/cirq-core/cirq/ops/raw_types.py index bc35187b9cb..452d38974e3 100644 --- a/cirq-core/cirq/ops/raw_types.py +++ b/cirq-core/cirq/ops/raw_types.py @@ -819,6 +819,19 @@ def _has_unitary_(self): for op in protocols.decompose_once_with_qubits(self._original, qubit...
CTFd__CTFd-1971
Consider enabling THEME_FALLBACK by default In order to improve theme development and usage, I think we should enable THEME_FALLBACK or perhaps create a way for themes to specify their parent theme. Wordpress has a sort of similar idea: https://developer.wordpress.org/themes/advanced-topics/child-themes/ I am no...
[ { "content": "import configparser\nimport os\nfrom distutils.util import strtobool\n\n\nclass EnvInterpolation(configparser.BasicInterpolation):\n \"\"\"Interpolation which expands environment variables in values.\"\"\"\n\n def before_get(self, parser, section, option, value, defaults):\n value = s...
[ { "content": "import configparser\nimport os\nfrom distutils.util import strtobool\n\n\nclass EnvInterpolation(configparser.BasicInterpolation):\n \"\"\"Interpolation which expands environment variables in values.\"\"\"\n\n def before_get(self, parser, section, option, value, defaults):\n value = s...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bb6f08bb..240145a8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ **Themes** +- CTFd now has the `THEME_FALLBACK` option enabled by default. This allows users to provide incomplete themes. Missing theme files will be provided from the built-in core t...
iterative__dvc-1413
tests: Logs are throwing duplicated output You can review any log (this one, for example: https://travis-ci.org/iterative/dvc/jobs/457244685#L1544-L1571)
[ { "content": "import sys\nimport logging\nimport colorama\nimport traceback\nimport re\n\n\ncolorama.init()\n\n\ndef visual_width(line):\n \"\"\" Get the the number of columns required to display a string \"\"\"\n\n return len(re.sub(colorama.ansitowin32.AnsiToWin32.ANSI_CSI_RE, '', line))\n\n\ndef visual...
[ { "content": "import sys\nimport logging\nimport colorama\nimport traceback\nimport re\n\n\ncolorama.init()\n\n\ndef visual_width(line):\n \"\"\" Get the the number of columns required to display a string \"\"\"\n\n return len(re.sub(colorama.ansitowin32.AnsiToWin32.ANSI_CSI_RE, '', line))\n\n\ndef visual...
diff --git a/dvc/logger.py b/dvc/logger.py index caa79132a7..971b31f7b5 100644 --- a/dvc/logger.py +++ b/dvc/logger.py @@ -59,6 +59,9 @@ class LogLevelFilter(logging.Filter): def filter(self, record): return record.levelno <= logging.WARNING + if Logger._already_initialized(): + ...
angr__angr-1325
Crash in Function.local_runtime_values() when state.history.jumpkind is 'Ijk_SigTRAP' There is no check on the jumpkind of the current block before calling [factory.successors](https://github.com/angr/angr/blob/master/angr/knowledge_plugins/functions/function.py#L362). If the state jumpkind is 'Ijk_SigTRAP', this l...
[ { "content": "\nimport os\nimport logging\nimport networkx\nimport string\nimport itertools\nfrom collections import defaultdict\nfrom itanium_demangler import parse\n\nimport claripy\nfrom ...errors import SimEngineError, SimMemoryError\nfrom ...procedures import SIM_LIBRARIES\n\nl = logging.getLogger(name=__n...
[ { "content": "\nimport os\nimport logging\nimport networkx\nimport string\nimport itertools\nfrom collections import defaultdict\nfrom itanium_demangler import parse\n\nimport claripy\nfrom ...errors import SimEngineError, SimMemoryError\nfrom ...procedures import SIM_LIBRARIES\n\nl = logging.getLogger(name=__n...
diff --git a/angr/knowledge_plugins/functions/function.py b/angr/knowledge_plugins/functions/function.py index 66643019d03..b15d370020b 100644 --- a/angr/knowledge_plugins/functions/function.py +++ b/angr/knowledge_plugins/functions/function.py @@ -355,6 +355,12 @@ def local_runtime_values(self): # don't t...
boto__boto-1776
attrs parameter to Item.__init__ and table.new_item don't work as documented In dynamodb/table.py, `new_item` is documented to take an `attrs` parameter which will be used to populate the new item. However, this doesn't work: ` In [3]: item = table.new_item('key', attrs={"a":"test"}) In [4]: item.save() Ou...
[ { "content": "# Copyright (c) 2012 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to ...
[ { "content": "# Copyright (c) 2012 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to ...
diff --git a/boto/dynamodb/item.py b/boto/dynamodb/item.py index b2b444d762..9d9290963d 100644 --- a/boto/dynamodb/item.py +++ b/boto/dynamodb/item.py @@ -50,11 +50,11 @@ def __init__(self, table, hash_key=None, range_key=None, attrs=None): if range_key == None: range_key = attrs.get(self....
scikit-hep__pyhf-960
Documentation: meaning of value for return_fitted_val=True # Description In this code snippet from the documentation ```python >>> pyhf.infer.mle.fixed_poi_fit(test_poi, data, model, return_fitted_val=True) (array([1. , 0.97224597, 0.87553894]), array([28.92218013])) ``` it isn't clear what the mean...
[ { "content": "\"\"\"Module for Maximum Likelihood Estimation.\"\"\"\nfrom .. import get_backend\nfrom ..exceptions import UnspecifiedPOI\n\n\ndef twice_nll(pars, data, pdf):\n \"\"\"\n Twice the negative Log-Likelihood.\n\n Args:\n data (`tensor`): The data\n pdf (~pyhf.pdf.Model): The st...
[ { "content": "\"\"\"Module for Maximum Likelihood Estimation.\"\"\"\nfrom .. import get_backend\nfrom ..exceptions import UnspecifiedPOI\n\n\ndef twice_nll(pars, data, pdf):\n \"\"\"\n Twice the negative Log-Likelihood.\n\n Args:\n data (`tensor`): The data\n pdf (~pyhf.pdf.Model): The st...
diff --git a/src/pyhf/infer/mle.py b/src/pyhf/infer/mle.py index d747c66a35..65fdeeaea8 100644 --- a/src/pyhf/infer/mle.py +++ b/src/pyhf/infer/mle.py @@ -22,6 +22,10 @@ def fit(data, pdf, init_pars=None, par_bounds=None, **kwargs): """ Run a unconstrained maximum likelihood fit. + .. note:: + + :...
mitmproxy__mitmproxy-4488
Reply from proxy causes Mitmproxy crash #### Problem Description #### Steps to reproduce the behavior: ```python from mitmproxy import http class MrCrash: def request(self, flow: http.HTTPFlow) -> None: flow.response = http.Response.make(407) addons = [ MrCrash() ] ``` Execute `AL...
[ { "content": "import collections\nimport enum\nimport time\nfrom dataclasses import dataclass\nfrom typing import DefaultDict, Dict, List, Optional, Tuple, Union\n\nfrom mitmproxy import flow, http\nfrom mitmproxy.connection import Connection, Server\nfrom mitmproxy.net import server_spec\nfrom mitmproxy.net.ht...
[ { "content": "import collections\nimport enum\nimport time\nfrom dataclasses import dataclass\nfrom typing import DefaultDict, Dict, List, Optional, Tuple, Union\n\nfrom mitmproxy import flow, http\nfrom mitmproxy.connection import Connection, Server\nfrom mitmproxy.net import server_spec\nfrom mitmproxy.net.ht...
diff --git a/mitmproxy/proxy/layers/http/__init__.py b/mitmproxy/proxy/layers/http/__init__.py index 52e1a254db..e81d0e1e26 100644 --- a/mitmproxy/proxy/layers/http/__init__.py +++ b/mitmproxy/proxy/layers/http/__init__.py @@ -376,7 +376,7 @@ def handle_protocol_error( is_client_error_but_we_already_talk_upstr...
netbox-community__netbox-14461
Remove the `clearcache` management command ### Proposed Changes Remove the `clearcache` management command (from the `core` app), and omit it from the upgrade script. ### Justification ~This command was introduced back when we were experimenting with query caching, and is no longer needed.~ I was mistaken; it ...
[ { "content": "from django.core.cache import cache\nfrom django.core.management.base import BaseCommand\n\nfrom core.models import ConfigRevision\n\n\nclass Command(BaseCommand):\n \"\"\"Command to clear the entire cache.\"\"\"\n help = 'Clears the cache.'\n\n def handle(self, *args, **kwargs):\n ...
[ { "content": null, "path": "netbox/core/management/commands/clearcache.py" } ]
diff --git a/netbox/core/management/commands/clearcache.py b/netbox/core/management/commands/clearcache.py deleted file mode 100644 index 9c91efe77ab..00000000000 --- a/netbox/core/management/commands/clearcache.py +++ /dev/null @@ -1,20 +0,0 @@ -from django.core.cache import cache -from django.core.management.base imp...
SciTools__cartopy-1251
Minimizing incompatibility between cartopy and shapely Cartopy has a module that both imports Shapely _and_ adds new GEOS bindings: https://github.com/SciTools/cartopy/blob/master/lib/cartopy/trace.pyx. I think this is an unsound approach that can lead innocent cartopy users into [DLL Hell](https://github.com/Toblerity...
[ { "content": "# (C) British Crown Copyright 2011 - 2018, Met Office\n#\n# This file is part of cartopy.\n#\n# cartopy is free software: you can redistribute it and/or modify it under\n# the terms of the GNU Lesser General Public License as published by the\n# Free Software Foundation, either version 3 of the Li...
[ { "content": "# (C) British Crown Copyright 2011 - 2018, Met Office\n#\n# This file is part of cartopy.\n#\n# cartopy is free software: you can redistribute it and/or modify it under\n# the terms of the GNU Lesser General Public License as published by the\n# Free Software Foundation, either version 3 of the Li...
diff --git a/lib/cartopy/_crs.pxd b/lib/cartopy/_crs.pxd index d377b5702..1b3b9cd28 100644 --- a/lib/cartopy/_crs.pxd +++ b/lib/cartopy/_crs.pxd @@ -1,4 +1,4 @@ -# (C) British Crown Copyright 2010 - 2016, Met Office +# (C) British Crown Copyright 2010 - 2018, Met Office # # This file is part of cartopy. # @@ -16,8 +...
WeblateOrg__weblate-10038
Cannot create new component "unable to fork (128)" ### Describe the issue Hello! - I've been using creating components in projects both manually and via rest api. It seem to have stopped working after upgrading to version 5 of weblate. - The scenario of how to simulate issue is very simple. You just have to use ...
[ { "content": "# Copyright © Michal Čihař <michal@weblate.org>\n#\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import annotations\n\nimport hashlib\nimport os\nimport stat\nimport subprocess\nfrom base64 import b64decode, b64encode\n\nfrom django.conf import settings\nfrom django.core.manageme...
[ { "content": "# Copyright © Michal Čihař <michal@weblate.org>\n#\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import annotations\n\nimport hashlib\nimport os\nimport stat\nimport subprocess\nfrom base64 import b64decode, b64encode\n\nfrom django.conf import settings\nfrom django.core.manageme...
diff --git a/weblate/vcs/ssh.py b/weblate/vcs/ssh.py index 8c8eecd7eb9f..0a94c2870868 100644 --- a/weblate/vcs/ssh.py +++ b/weblate/vcs/ssh.py @@ -341,13 +341,12 @@ def create(self): for command in ("ssh", "scp"): filename = os.path.join(self.path, command) - if os.path.exists(filenam...
sopel-irc__sopel-1270
[wikipedia] Error on nonexistent article link I productively (? :laughing:) found another issue in the `wikipedia` module while testing my fix for #1255. It turns out that, if someone sends a link to a Wikipedia article that doesn't exist, the bot spits out a nice `KeyError`. Better to spit out a clean error (or, perha...
[ { "content": "# coding=utf-8\n# Copyright 2013 Elsie Powell - embolalia.com\n# Licensed under the Eiffel Forum License 2.\nfrom __future__ import unicode_literals, absolute_import, print_function, division\nfrom sopel import web, tools\nfrom sopel.config.types import StaticSection, ValidatedAttribute\nfrom sope...
[ { "content": "# coding=utf-8\n# Copyright 2013 Elsie Powell - embolalia.com\n# Licensed under the Eiffel Forum License 2.\nfrom __future__ import unicode_literals, absolute_import, print_function, division\nfrom sopel import web, tools\nfrom sopel.config.types import StaticSection, ValidatedAttribute\nfrom sope...
diff --git a/sopel/modules/wikipedia.py b/sopel/modules/wikipedia.py index d1e9dc1350..b721aa42d7 100644 --- a/sopel/modules/wikipedia.py +++ b/sopel/modules/wikipedia.py @@ -61,7 +61,12 @@ def mw_search(server, query, num): def say_snippet(bot, server, query, show_url=True): page_name = query.replace('_', ' ') ...
pallets__werkzeug-1620
Cannot import `secure_filename` ```python In [1]: import werkzeug In [2]: werkzeug.secure_filename -----------------...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug\n ~~~~~~~~\n\n Werkzeug is the Swiss Army knife of Python web development.\n\n It provides useful classes and functions for any WSGI application to make\n the life of a python web developer much easier. All of the provided\n classes are...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug\n ~~~~~~~~\n\n Werkzeug is the Swiss Army knife of Python web development.\n\n It provides useful classes and functions for any WSGI application to make\n the life of a python web developer much easier. All of the provided\n classes are...
diff --git a/src/werkzeug/__init__.py b/src/werkzeug/__init__.py index 952cd7518..7b8e14e5c 100644 --- a/src/werkzeug/__init__.py +++ b/src/werkzeug/__init__.py @@ -66,8 +66,6 @@ "redirect", "cached_property", "import_string", - "dump_cookie", - "parse_cookie", "unescap...
zestedesavoir__zds-site-6152
Corrections / précisions à apporter sur la procédure d'installation du projet Salut, En février dernier je m'étais lancé dans l'installation du projet zds-site dans un environnement docker/debian pour travailler sur une PR. J'avais été amené à faire quelques modifications à la procédure d'installation pour la mener...
[ { "content": "from colorlog import ColoredFormatter\n\nfrom .abstract_base import *\n\nDEBUG = True\n\n# NOTE: Can be removed once Django 3 is used\nALLOWED_HOSTS = [\".localhost\", \"127.0.0.1\", \"[::1]\"]\n\nINSTALLED_APPS += (\n \"debug_toolbar\",\n \"django_extensions\",\n)\n\nMIDDLEWARE = (\n \"d...
[ { "content": "from colorlog import ColoredFormatter\n\nfrom .abstract_base import *\n\nDEBUG = True\n\nALLOWED_HOSTS = [\"*\"] # allow everything in case we are in a Docker container\n\nINSTALLED_APPS += (\n \"debug_toolbar\",\n \"django_extensions\",\n)\n\nMIDDLEWARE = (\n \"debug_toolbar.middleware....
diff --git a/Makefile b/Makefile index 6cc7aefcb3..ac95851e19 100644 --- a/Makefile +++ b/Makefile @@ -33,10 +33,10 @@ install-back-with-prod: pip install --upgrade -r requirements-dev.txt -r requirements-prod.txt run-back: zmd-check ## Run the backend server - python manage.py runserver --nostatic + python manage...
pyqtgraph__pyqtgraph-1166
pg.mkQApp generates warning <!-- In the following, please describe your issue in detail! --> <!-- If some of the sections do not apply, just remove them. --> ### Short description `pg.mkQApp()` generates warning `QSettings::value: Empty key passed` ### Code to reproduce ```python import pyqtgraph as pg pg.mk...
[ { "content": "\"\"\"\nThis module exists to smooth out some of the differences between PySide and PyQt4:\n\n* Automatically import either PyQt4 or PySide depending on availability\n* Allow to import QtCore/QtGui pyqtgraph.Qt without specifying which Qt wrapper\n you want to use.\n* Declare QtCore.Signal, .Slot...
[ { "content": "\"\"\"\nThis module exists to smooth out some of the differences between PySide and PyQt4:\n\n* Automatically import either PyQt4 or PySide depending on availability\n* Allow to import QtCore/QtGui pyqtgraph.Qt without specifying which Qt wrapper\n you want to use.\n* Declare QtCore.Signal, .Slot...
diff --git a/pyqtgraph/Qt.py b/pyqtgraph/Qt.py index 0941c3c761..ec5a79cc70 100644 --- a/pyqtgraph/Qt.py +++ b/pyqtgraph/Qt.py @@ -329,9 +329,18 @@ def isQObjectAlive(obj): QAPP = None -def mkQApp(): - global QAPP +def mkQApp(name="pyqtgraph", qt_args=[]): + """ + Creates new QApplication or returns c...
pydantic__pydantic-5736
Discriminated union does not work with aliased literal field ### Checks * [x] I added a descriptive title to this issue * [x] I have searched (google, github) for similar issues and couldn't find anything * [x] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug ...
[ { "content": "import copy\nimport re\nfrom collections import Counter as CollectionCounter, defaultdict, deque\nfrom collections.abc import Callable, Hashable as CollectionsHashable, Iterable as CollectionsIterable\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Counter,\n DefaultDict,\n Deque,\n...
[ { "content": "import copy\nimport re\nfrom collections import Counter as CollectionCounter, defaultdict, deque\nfrom collections.abc import Callable, Hashable as CollectionsHashable, Iterable as CollectionsIterable\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Counter,\n DefaultDict,\n Deque,\n...
diff --git a/changes/5736-benwah.md b/changes/5736-benwah.md new file mode 100644 index 00000000000..3bd8bf833f3 --- /dev/null +++ b/changes/5736-benwah.md @@ -0,0 +1 @@ +This solves the (closed) issue #3849 where aliased fields that use discriminated union fail to validate when the data contains the non-aliased field ...
kevoreilly__CAPEv2-1678
AttributeError: 'vim.ResourceConfigSpec' object has no attribute 'name' ## About accounts on [capesandbox.com](https://capesandbox.com/) * Issues isn't the way to ask for account activation. Ping capesandbox in [Twitter](https://twitter.com/capesandbox) with your username ## This is open source and you are getting ...
[ { "content": "# Copyright (C) 2015 eSentire, Inc (jacob.gajek@esentire.com).\n# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org\n# See the file 'docs/LICENSE' for copying permission.\n\nimport logging\nimport random\nimport re\nimport sys\nimport time\nfrom datetime import datetime, timedelta...
[ { "content": "# Copyright (C) 2015 eSentire, Inc (jacob.gajek@esentire.com).\n# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org\n# See the file 'docs/LICENSE' for copying permission.\n\nimport logging\nimport random\nimport re\nimport sys\nimport time\nfrom datetime import datetime, timedelta...
diff --git a/modules/machinery/vsphere.py b/modules/machinery/vsphere.py index 9d0ab568bf9..781c3594d90 100644 --- a/modules/machinery/vsphere.py +++ b/modules/machinery/vsphere.py @@ -198,8 +198,9 @@ def traverseVMFolders(conn, nodes): for dc, dcpath in traverseDCFolders(conn, conn.content.rootFolder.childE...
GeotrekCE__Geotrek-admin-1056
Desordres facultatif sur formulaire Intervention Le champs DESORDRES ne doit pas être obligatoire.
[ { "content": "# -*- coding: utf-8 -*-\nfrom datetime import datetime\n\nfrom django.conf import settings\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.contrib.gis.db import models\nfrom django.contrib.gis.geos import GeometryCollection\n\nfrom mapentity.models import MapEntityMixin\n\nfr...
[ { "content": "# -*- coding: utf-8 -*-\nfrom datetime import datetime\n\nfrom django.conf import settings\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.contrib.gis.db import models\nfrom django.contrib.gis.geos import GeometryCollection\n\nfrom mapentity.models import MapEntityMixin\n\nfr...
diff --git a/CHANGES b/CHANGES index fd0c992d01..9ba01ffc6a 100644 --- a/CHANGES +++ b/CHANGES @@ -20,6 +20,7 @@ CHANGELOG * Add POIs on trek GPX (fixes #774) * Allow to override the Trek public document template (see *advanced configuration* in docs) +* Intervention disorders is not mandatory anymore (fixes #661)...
joke2k__faker-494
Add a file path provider In the file providers would be nice to have a file_path provider who would return a path like ```/lorem/ipsum/lorem.pdf```.
[ { "content": "# coding=utf-8\nfrom __future__ import unicode_literals\nfrom collections import OrderedDict\n\nfrom .. import BaseProvider\nfrom ..lorem.la import Provider as WordProvider\n\n\nclass Provider(BaseProvider):\n application_mime_types = (\n\n \"application/atom+xml\", # Atom feeds\n ...
[ { "content": "# coding=utf-8\nfrom __future__ import unicode_literals\nfrom collections import OrderedDict\n\nfrom .. import BaseProvider\nfrom ..lorem.la import Provider as WordProvider\n\n\nclass Provider(BaseProvider):\n application_mime_types = (\n\n \"application/atom+xml\", # Atom feeds\n ...
diff --git a/faker/providers/file/__init__.py b/faker/providers/file/__init__.py index b19a3c563c..4f4c14cef0 100644 --- a/faker/providers/file/__init__.py +++ b/faker/providers/file/__init__.py @@ -201,3 +201,16 @@ def file_extension(cls, category=None): """ category = category if category else cls.r...
microsoft__Qcodes-957
Exception setting range in QtPlot when using datasets containing NaN ### Steps to reproduce 1. Create a new DataSet containing a NaN value (i.e. start a new sweep and abort it) 2. Create a new QtPlot instance and try to plot the data ### Actual behaviour I get the following traceback: ```pytb >>> plot.add(data....
[ { "content": "\"\"\"\nLive plotting using pyqtgraph\n\"\"\"\nfrom typing import Optional, Dict, Union\nimport numpy as np\nimport pyqtgraph as pg\nimport pyqtgraph.multiprocess as pgmp\nfrom pyqtgraph import QtGui\nfrom pyqtgraph.multiprocess.remoteproxy import ClosedError\nimport qcodes.utils.helpers\n\nimport...
[ { "content": "\"\"\"\nLive plotting using pyqtgraph\n\"\"\"\nfrom typing import Optional, Dict, Union\nimport numpy as np\nimport pyqtgraph as pg\nimport pyqtgraph.multiprocess as pgmp\nfrom pyqtgraph import QtGui\nfrom pyqtgraph.multiprocess.remoteproxy import ClosedError\nimport qcodes.utils.helpers\n\nimport...
diff --git a/qcodes/plots/pyqtgraph.py b/qcodes/plots/pyqtgraph.py index b22d540dae5..b3ac0154fc1 100644 --- a/qcodes/plots/pyqtgraph.py +++ b/qcodes/plots/pyqtgraph.py @@ -581,8 +581,8 @@ def fixUnitScaling(self, startranges: Optional[Dict[str, Dict[str, Union[float,i arrmin = None ...
pulp__pulpcore-304
docs should not use underscores in http headers for auth **Version** any **Describe the bug** https://docs.pulpproject.org/pulpcore/authentication/webserver.html#webserver-auth-with-reverse-proxy says: > With nginx providing authentication, all it can do is pass REMOTE_USER (or similar name) to the application we...
[ { "content": "from gettext import gettext as _\nfrom logging import getLogger\n\nfrom django.db import transaction\n\nfrom pulpcore.app import models, serializers\n\nlog = getLogger(__name__)\n\n\ndef delete(repo_id):\n \"\"\"\n Delete a :class:`~pulpcore.app.models.Repository`\n\n Args:\n repo_...
[ { "content": "from gettext import gettext as _\nfrom logging import getLogger\n\nfrom django.db import transaction\n\nfrom pulpcore.app import models, serializers\n\nlog = getLogger(__name__)\n\n\ndef delete(repo_id):\n \"\"\"\n Delete a :class:`~pulpcore.app.models.Repository`\n\n Args:\n repo_...
diff --git a/CHANGES/5478.bugfix b/CHANGES/5478.bugfix new file mode 100644 index 0000000000..4843c0306e --- /dev/null +++ b/CHANGES/5478.bugfix @@ -0,0 +1 @@ +Fixed issue where removing all units on a repo with no version threw an error. diff --git a/pulpcore/app/tasks/repository.py b/pulpcore/app/tasks/repository.py ...
sunpy__sunpy-3064
vso.attrs.Wavelength raises AstropyDeprecationWarning Can't work out how to fix this at the moment, so leaving a bug as a placeholder: ```python from sunpy.net import vso import astropy.units as u vso.attrs.Wavelength(12 * u.AA, 16 * u.AA) ``` results in ``` WARNING: AstropyDeprecationWarning: The truth value ...
[ { "content": "# -*- coding: utf-8 -*-\n# Author: Florian Mayer <florian.mayer@bitsrc.org>\n#\n# This module was developed with funding provided by\n# the ESA Summer of Code (2011).\n#\n# pylint: disable=C0103,R0903\n\n\"\"\"\nAttributes that can be used to construct VSO queries. Attributes are the\nfundamental ...
[ { "content": "# -*- coding: utf-8 -*-\n# Author: Florian Mayer <florian.mayer@bitsrc.org>\n#\n# This module was developed with funding provided by\n# the ESA Summer of Code (2011).\n#\n# pylint: disable=C0103,R0903\n\n\"\"\"\nAttributes that can be used to construct VSO queries. Attributes are the\nfundamental ...
diff --git a/sunpy/net/vso/attrs.py b/sunpy/net/vso/attrs.py index b33cafdae78..9000126c377 100644 --- a/sunpy/net/vso/attrs.py +++ b/sunpy/net/vso/attrs.py @@ -18,7 +18,6 @@ import collections import astropy.units as u -from astropy.time import Time from sunpy.time import TimeRange as _TimeRange from sunpy.net...
jazzband__django-oauth-toolkit-407
Lazy reference issues when swapping the application model on Django 1.10 Hi, I'd like to thank you for this app and your support. Much appreciated. I'm running into some lazy reference issues when I try to swap the application model on django 1.10. I believe I've followed the steps outlined in https://django-oauth-t...
[ { "content": "from django.contrib.auth import authenticate\nfrom django.utils.cache import patch_vary_headers\n\n\nclass OAuth2TokenMiddleware(object):\n \"\"\"\n Middleware for OAuth2 user authentication\n\n This middleware is able to work along with AuthenticationMiddleware and its behaviour depends\...
[ { "content": "from django.contrib.auth import authenticate\nfrom django.utils.cache import patch_vary_headers\n\n# bastb Django 1.10 has updated Middleware. This code imports the Mixin required to get old-style\n# middleware working again\n# More? \n# https://docs.djangoproject.com/en/1.10/topics/http/middlewa...
diff --git a/docs/advanced_topics.rst b/docs/advanced_topics.rst index dd0468f2f..6e1d5ace1 100644 --- a/docs/advanced_topics.rst +++ b/docs/advanced_topics.rst @@ -43,6 +43,10 @@ Write something like this in your settings module:: OAUTH2_PROVIDER_APPLICATION_MODEL='your_app_name.MyApplication' +Be aware that,...
bokeh__bokeh-2025
Update/refresh installation guide and quick start Many parts are out of date or confusing.
[ { "content": "\"\"\" Include Bokeh plots in Sphinx HTML documentation.\n\nFor other output types, the placeholder text ``[graph]`` will\nbe generated.\n\nUsage\n-----\n\nThe ``bokeh-plot`` directive can be used by either supplying:\n\n1. **A path to a source file** as the argument to the directive::\n\n .. b...
[ { "content": "\"\"\" Include Bokeh plots in Sphinx HTML documentation.\n\nFor other output types, the placeholder text ``[graph]`` will\nbe generated.\n\nUsage\n-----\n\nThe ``bokeh-plot`` directive can be used by either supplying:\n\n1. **A path to a source file** as the argument to the directive::\n\n .. b...
diff --git a/bokeh/sphinxext/bokeh_plot.py b/bokeh/sphinxext/bokeh_plot.py index 050c9cfdc2f..16e70d0d995 100644 --- a/bokeh/sphinxext/bokeh_plot.py +++ b/bokeh/sphinxext/bokeh_plot.py @@ -92,7 +92,7 @@ from sphinx.util.compat import Directive from .utils import out_of_date -from .. import plotting +from .. import ...
bids-standard__pybids-156
Analysis: Block.get_design_matrix not grouping by run level The following bug is coming up when using fitlins on the `generic_object_decoding` dataset on OpenNeuro. (cc: @effigies ) I'm attempting to fit the following model. ``` { "name": "test_god_simple", "input": { "task": "perception", "run":...
[ { "content": "import numpy as np\nimport pandas as pd\nimport math\nfrom copy import deepcopy\nfrom abc import abstractmethod, ABCMeta\nfrom scipy.interpolate import interp1d\nfrom bids.utils import listify\nfrom itertools import chain\nfrom six import add_metaclass\nfrom bids.utils import matches_entities\n\n\...
[ { "content": "import numpy as np\nimport pandas as pd\nimport math\nfrom copy import deepcopy\nfrom abc import abstractmethod, ABCMeta\nfrom scipy.interpolate import interp1d\nfrom bids.utils import listify\nfrom itertools import chain\nfrom six import add_metaclass\nfrom bids.utils import matches_entities\n\n\...
diff --git a/bids/variables/variables.py b/bids/variables/variables.py index 0382410cd..0dadf8716 100644 --- a/bids/variables/variables.py +++ b/bids/variables/variables.py @@ -398,8 +398,7 @@ def _build_entity_index(self, run_info, sampling_rate): for run in run_info: reps = int(math.ceil(run.dur...
django-cms__django-cms-2015
Can't delete user (v3.0) NoReverseMatch at /nl/admin/auth/user/ Reverse for 'cms_usersettings_change' with arguments '(1,)' and keyword arguments '{}' not found. Can't delete user (v3.0) NoReverseMatch at /nl/admin/auth/user/ Reverse for 'cms_usersettings_change' with arguments '(1,)' and keyword arguments '{}' not fo...
[ { "content": "# -*- coding: utf-8 -*-\nfrom functools import update_wrapper\nfrom django.http import HttpResponseRedirect\nfrom django.contrib.auth.admin import csrf_protect_m\nfrom django.contrib.admin import ModelAdmin\n\nfrom django.contrib import admin\n\nfrom cms.models import UserSettings\nfrom django.cor...
[ { "content": "# -*- coding: utf-8 -*-\nfrom functools import update_wrapper\nfrom django.http import HttpResponseRedirect\nfrom django.contrib.auth.admin import csrf_protect_m\nfrom django.contrib.admin import ModelAdmin\n\nfrom django.contrib import admin\n\nfrom cms.models import UserSettings\nfrom django.cor...
diff --git a/cms/admin/settingsadmin.py b/cms/admin/settingsadmin.py index 20b855f6902..556c9d4f57a 100644 --- a/cms/admin/settingsadmin.py +++ b/cms/admin/settingsadmin.py @@ -28,12 +28,15 @@ def wrapper(*args, **kwargs): url(r'^$', wrap(self.change_view), name='%s_%s_cha...
pypa__setuptools-2907
`distutils` submodules being loaded from the stdlib It seems the issue is that `distutils.sysconfig` is being loaded from the stdlib, even though [the distutils hack has an explicit check that submodules are loaded from the locally-bundled copy](https://github.com/pypa/setuptools/blob/dd5a2cec373ffe7eefc087c1cd06fb4e49...
[ { "content": "import sys\nimport os\nimport re\nimport importlib\nimport warnings\n\n\nis_pypy = '__pypy__' in sys.builtin_module_names\n\n\nwarnings.filterwarnings('ignore',\n r'.+ distutils\\b.+ deprecated',\n DeprecationWarning)\n\n\ndef warn_distutils_present():...
[ { "content": "import sys\nimport os\nimport re\nimport importlib\nimport warnings\n\n\nis_pypy = '__pypy__' in sys.builtin_module_names\n\n\nwarnings.filterwarnings('ignore',\n r'.+ distutils\\b.+ deprecated',\n DeprecationWarning)\n\n\ndef warn_distutils_present():...
diff --git a/_distutils_hack/__init__.py b/_distutils_hack/__init__.py index 5f40996a67..f707416286 100644 --- a/_distutils_hack/__init__.py +++ b/_distutils_hack/__init__.py @@ -48,11 +48,15 @@ def enabled(): def ensure_local_distutils(): clear_distutils() - distutils = importlib.import_module('setuptools._...
opensearch-project__opensearch-build-272
Add Core plugins zips to published artifacts. The plugins built with the core repo should be bundled as zips and hosted at artifacts.opensearch.org. This task involves updating Opensearch's build.sh script to build and include these artifacts with the component's artifact list. Right now we also have brittle logi...
[ { "content": "# Copyright OpenSearch Contributors.\n# SPDX-License-Identifier: Apache-2.0\n\nimport os\n\n'''\nThis class is responsible for executing the build for a component and passing the results to a build recorder.\nIt will notify the build recorder of build information such as repository and git ref, an...
[ { "content": "# Copyright OpenSearch Contributors.\n# SPDX-License-Identifier: Apache-2.0\n\nimport os\n\n'''\nThis class is responsible for executing the build for a component and passing the results to a build recorder.\nIt will notify the build recorder of build information such as repository and git ref, an...
diff --git a/bundle-workflow/README.md b/bundle-workflow/README.md index ea343f8b26..7581afac0d 100644 --- a/bundle-workflow/README.md +++ b/bundle-workflow/README.md @@ -23,6 +23,7 @@ Artifacts will contain the following folders. bundle/ <- contains opensearch min tarball maven/ <- all built maven artifacts ...
python-poetry__poetry-1140
Poetry fails to install p4python due to read-only files <!-- Hi there! Thank you for discovering and submitting an issue. Before you submit this; let's make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill these first. --> <!-- C...
[ { "content": "import os\nimport re\nimport shutil\nimport stat\nimport tempfile\n\nfrom contextlib import contextmanager\nfrom typing import List\nfrom typing import Optional\n\nfrom poetry.config.config import Config\nfrom poetry.utils._compat import Path\nfrom poetry.version import Version\n\n\ntry:\n from...
[ { "content": "import os\nimport re\nimport shutil\nimport stat\nimport tempfile\n\nfrom contextlib import contextmanager\nfrom typing import List\nfrom typing import Optional\n\nfrom poetry.config.config import Config\nfrom poetry.utils._compat import Path\nfrom poetry.version import Version\n\n\ntry:\n from...
diff --git a/poetry/utils/helpers.py b/poetry/utils/helpers.py index 85d18a71d44..af68a6d0105 100644 --- a/poetry/utils/helpers.py +++ b/poetry/utils/helpers.py @@ -34,19 +34,18 @@ def normalize_version(version): # type: (str) -> str return str(Version(version)) +def _del_ro(action, name, exc): + os.chmod(...
searxng__searxng-3369
remove ask engine Reasons: 1. User Tracking via query parameters. Example Query: [!ask best museums in Köln](https://searx.be/search?q=%21ask+best+museums+in+K%C3%B6ln&category_none=&language=auto&time_range=&safesearch=0&theme=simple) Notice the ```euid=some_id``` at the end for most urls. 2. Very ...
[ { "content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n\"\"\"Ask.com\"\"\"\n\nfrom urllib.parse import urlencode\nimport dateutil\nfrom lxml import html\nfrom searx import utils\n\n# Metadata\nabout = {\n \"website\": \"https://www.ask.com/\",\n \"wikidata_id\": 'Q847564',\n \"official_api_documen...
[ { "content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n\"\"\"Ask.com\"\"\"\n\nfrom urllib.parse import urlencode\nimport dateutil\nfrom lxml import html\nfrom searx import utils\n\n# Metadata\nabout = {\n \"website\": \"https://www.ask.com/\",\n \"wikidata_id\": 'Q847564',\n \"official_api_documen...
diff --git a/searx/engines/ask.py b/searx/engines/ask.py index 2f2ce4e518f..3366ee5d0b8 100644 --- a/searx/engines/ask.py +++ b/searx/engines/ask.py @@ -19,6 +19,7 @@ # Engine Configuration categories = ['general'] paging = True +max_page = 5 # Base URL base_url = "https://www.ask.com/web" @@ -61,7 +62,7 @@ def ...
googleapis__python-bigquery-728
Cannot insert NaN and non-finite float values using Client.insert_rows() Trying to insert a NaN using `Client.insert_rows` fails. I tracked it down to ``` def _float_to_json(value): """Coerce 'value' to an JSON-compatible representation.""" return value if value is None else float(value) ``` which sh...
[ { "content": "# Copyright 2015 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
[ { "content": "# Copyright 2015 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
diff --git a/google/cloud/bigquery/_helpers.py b/google/cloud/bigquery/_helpers.py index 7602483c2..77054542a 100644 --- a/google/cloud/bigquery/_helpers.py +++ b/google/cloud/bigquery/_helpers.py @@ -17,6 +17,7 @@ import base64 import datetime import decimal +import math import re from google.cloud._helpers imp...
bentoml__BentoML-4294
bug: GRPC serving on Windows fails with exception both in production and development mode ### Describe the bug When I use CLI to serve grpc service `python -m bentoml serve-grpc <my_service>:svc --reload --enable-reflection --development` I get an error ``` Error: [bentoml-cli] `serve-grpc` failed: 'grpc' is...
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport contextlib\nimport json\nimport logging\nimport os\nimport platform\nimport shlex\nimport shutil\nimport sys\nimport tempfile\nimport typing as t\nfrom functools import partial\nfrom pathlib import Path\n\nimport psutil\nfrom simple_di i...
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport contextlib\nimport json\nimport logging\nimport os\nimport platform\nimport shlex\nimport shutil\nimport sys\nimport tempfile\nimport typing as t\nfrom functools import partial\nfrom pathlib import Path\n\nimport psutil\nfrom simple_di i...
diff --git a/src/bentoml/serve.py b/src/bentoml/serve.py index afd44f4fcfd..20399dde461 100644 --- a/src/bentoml/serve.py +++ b/src/bentoml/serve.py @@ -579,7 +579,7 @@ def serve_grpc_production( # Check whether users are running --grpc on windows # also raising warning if users running on MacOS or FreeBSD ...
translate__pootle-6528
Add tests for alt_src_langs alt_src_langs can be associated by accept lang headers - currently there are no tests for this
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nimport calenda...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nimport calenda...
diff --git a/pootle/apps/pootle_store/views.py b/pootle/apps/pootle_store/views.py index e9dfd20dfa7..226ebc1762d 100644 --- a/pootle/apps/pootle_store/views.py +++ b/pootle/apps/pootle_store/views.py @@ -50,11 +50,15 @@ def get_alt_src_langs(request, user, translation_project): + if request.user.is_anonymous: ...
conda__conda-build-1135
Build failure on appveyor that is new in 1.21.6 I tried out 1.21.6 tonight and got a build fail that I do not get with 1.21.5 (though the version of 1.21.5 I'm using is patched to take pin-numpy and setup-options). A build that fails is at: https://ci.appveyor.com/project/Astropy/conda-channel-astropy/build/1.0.172#L1...
[ { "content": "'''\nModule that does most of the heavy lifting for the ``conda build`` command.\n'''\nfrom __future__ import absolute_import, division, print_function\n\nimport io\nimport json\nimport logging\nimport os\nimport shutil\nimport stat\nimport subprocess\nimport sys\nimport time\nimport tarfile\nimpo...
[ { "content": "'''\nModule that does most of the heavy lifting for the ``conda build`` command.\n'''\nfrom __future__ import absolute_import, division, print_function\n\nimport io\nimport json\nimport logging\nimport os\nimport shutil\nimport stat\nimport subprocess\nimport sys\nimport time\nimport tarfile\nimpo...
diff --git a/conda_build/build.py b/conda_build/build.py index 076fc9c95e..fbd4c43730 100644 --- a/conda_build/build.py +++ b/conda_build/build.py @@ -732,12 +732,8 @@ def test(m, move_broken=True, activate=True): # not sure how this shakes out specs += ['lua %s*' % environ.get_lua_ver()] - ...
NVIDIA__NeMo-4631
RegexTokenizer: Default token arguments are not mapped to vocabulary index The ID's of the default special tokens in RegexTokenizer are set here: https://github.com/NVIDIA/NeMo/blob/72d78d832c6332ccc7f44811fb777eb7044df1d8/nemo/collections/common/tokenizers/regex_tokenizer.py#L75-L82 However, the constructor, al...
[ { "content": "# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/nemo/collections/common/tokenizers/regex_tokenizer.py b/nemo/collections/common/tokenizers/regex_tokenizer.py index 37bd71ae8d7f..6a5485f8d4e1 100644 --- a/nemo/collections/common/tokenizers/regex_tokenizer.py +++ b/nemo/collections/common/tokenizers/regex_tokenizer.py @@ -74,12 +74,12 @@ def __init__( ...
ansible__ansible-modules-extras-2937
zypper_repository: ImportError: No module named xml.dom.minidom ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME zypper_repository module ##### ANSIBLE VERSION ``` ansible 2.1.1.0 config file = /home/szollinx/git/otc_infrastructure_ansible-configs/ansible.cfg configured module search path = Default w/o override...
[ { "content": "#!/usr/bin/python\n# encoding: utf-8\n\n# (c) 2013, Matthias Vogelgesang <matthias.vogelgesang@gmail.com>\n# (c) 2014, Justin Lecher <jlec@gentoo.org>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General P...
[ { "content": "#!/usr/bin/python\n# encoding: utf-8\n\n# (c) 2013, Matthias Vogelgesang <matthias.vogelgesang@gmail.com>\n# (c) 2014, Justin Lecher <jlec@gentoo.org>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General P...
diff --git a/packaging/os/zypper.py b/packaging/os/zypper.py index 9d90dbe044c..c956feac1a1 100644 --- a/packaging/os/zypper.py +++ b/packaging/os/zypper.py @@ -107,6 +107,7 @@ # informational: requirements for nodes requirements: - "zypper >= 1.0 # included in openSuSE >= 11.1 or SuSE Linux Enterprise Server/D...
wagtail__wagtail-11817
`to_python` throws `AttributeError` on `TableBlock` when value is None ### Issue Summary Similar to: https://github.com/wagtail/wagtail/issues/4822 After upgrading one of our sites to 6.0, attempting to update some of our pages' indices results in a server error. ``` File "/venv/lib/python3.8/site-packages/...
[ { "content": "import json\n\nfrom django import forms\nfrom django.core.exceptions import ValidationError\nfrom django.forms.fields import Field\nfrom django.forms.utils import ErrorList\nfrom django.template.loader import render_to_string\nfrom django.utils import translation\nfrom django.utils.functional impo...
[ { "content": "import json\n\nfrom django import forms\nfrom django.core.exceptions import ValidationError\nfrom django.forms.fields import Field\nfrom django.forms.utils import ErrorList\nfrom django.template.loader import render_to_string\nfrom django.utils import translation\nfrom django.utils.functional impo...
diff --git a/wagtail/contrib/table_block/blocks.py b/wagtail/contrib/table_block/blocks.py index 38066501f273..ace83383c559 100644 --- a/wagtail/contrib/table_block/blocks.py +++ b/wagtail/contrib/table_block/blocks.py @@ -132,7 +132,7 @@ def to_python(self, value): value for the header choice. I would really ...
kartoza__prj.app-201
500 error on looking at version view When using this view: http://changelog.linfiniti.com/en/qgis/version/2.14.0/ See http://sentry.kartoza.com/kartoza/projecta-live/group/5095/ ``` changes/views/version.py ? in get_object (application) 126. obj = queryset.filter(project=project).get(slug=slug)...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"**View classes for Version**\n\n\"\"\"\n\n# noinspection PyUnresolvedReferences\n# import logging\nfrom base.models import Project\n# LOGGER = logging.getLogger(__name__)\nimport re\nimport zipfile\nimport StringIO\nimport pypandoc\nfrom django.core.urlresolvers impo...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"**View classes for Version**\n\n\"\"\"\n\n# noinspection PyUnresolvedReferences\n# import logging\nfrom base.models import Project\n# LOGGER = logging.getLogger(__name__)\nimport re\nimport zipfile\nimport StringIO\nimport pypandoc\nfrom django.core.urlresolvers impo...
diff --git a/django_project/changes/views/version.py b/django_project/changes/views/version.py index 49832d086..e650d51a2 100644 --- a/django_project/changes/views/version.py +++ b/django_project/changes/views/version.py @@ -125,7 +125,7 @@ def get_object(self, queryset=None): project = Project.obj...
Pyomo__pyomo-2863
Bug in pyomo/repn/linear.py ## Summary Solve a quadratic program (or QCQP) using cplex/gurobi with exponents that are written using floats, rather than integers ### Steps to reproduce the issue Use `m.x1**2.0` instead of `m.x1**2` <!-- Please include the command run and/or provide an example script that d...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright (c) 2008-2022\n# National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright (c) 2008-2022\n# National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n...
diff --git a/pyomo/repn/linear.py b/pyomo/repn/linear.py index 72c183f5a00..09996f0fc00 100644 --- a/pyomo/repn/linear.py +++ b/pyomo/repn/linear.py @@ -336,10 +336,10 @@ def _handle_pow_ANY_constant(visitor, node, arg1, arg2): _, exp = arg2 if exp == 1: return arg1 - elif exp > 0 and exp <= visit...
ManimCommunity__manim-2066
TypeError: not all arguments converted during string formatting manim This error occurs, when there is a logging report by manim that the partial movie directory is full. This message is formatted in such a way that it conflicts with the formatting that the logging package of python uses. If I remove the logging line 5...
[ { "content": "\"\"\"The interface between scenes and ffmpeg.\"\"\"\n\n__all__ = [\"SceneFileWriter\"]\n\nimport datetime\nimport os\nimport shutil\nimport subprocess\nfrom pathlib import Path\nfrom time import sleep\n\nimport numpy as np\nfrom PIL import Image\nfrom pydub import AudioSegment\n\nfrom manim impor...
[ { "content": "\"\"\"The interface between scenes and ffmpeg.\"\"\"\n\n__all__ = [\"SceneFileWriter\"]\n\nimport datetime\nimport os\nimport shutil\nimport subprocess\nfrom pathlib import Path\nfrom time import sleep\n\nimport numpy as np\nfrom PIL import Image\nfrom pydub import AudioSegment\n\nfrom manim impor...
diff --git a/manim/scene/scene_file_writer.py b/manim/scene/scene_file_writer.py index 614151ab2d..a5de8af8df 100644 --- a/manim/scene/scene_file_writer.py +++ b/manim/scene/scene_file_writer.py @@ -585,7 +585,7 @@ def clean_cache(self): for file_to_delete in oldest_files_to_delete: os.rem...
buildbot__buildbot-4048
Maximum recursion depth exceeded while calling a Python object Noticed this exception during buildbot start. I am using Buildbot 1.1.1 2018-04-11 21:06:54-0700 [-] Unhandled error in Deferred: 2018-04-11 21:06:54-0700 [-] Unhandled Error Traceback (most recent call last): File "/usr/lib64/python...
[ { "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/pbmanager.py b/master/buildbot/pbmanager.py index bcfbc02c8da2..f3b785fbd278 100644 --- a/master/buildbot/pbmanager.py +++ b/master/buildbot/pbmanager.py @@ -30,6 +30,7 @@ from buildbot.util import bytes2unicode from buildbot.util import service from buildbot.util import unicode2bytes +f...
litestar-org__litestar-2455
Docs: `template_engine` documented but not actually used ### Summary In the `Template` response, there's a `template_engine` parameter that is taken as per the docstrings as seen [here](https://github.com/litestar-org/litestar/blob/2385b32b52a786634bcef6059900165123f31705/litestar/response/template.py#L59) (it's also ...
[ { "content": "from __future__ import annotations\n\nimport itertools\nfrom mimetypes import guess_type\nfrom pathlib import PurePath\nfrom typing import TYPE_CHECKING, Any, Iterable\n\nfrom litestar.enums import MediaType\nfrom litestar.exceptions import ImproperlyConfiguredException\nfrom litestar.response.bas...
[ { "content": "from __future__ import annotations\n\nimport itertools\nfrom mimetypes import guess_type\nfrom pathlib import PurePath\nfrom typing import TYPE_CHECKING, Any, Iterable\n\nfrom litestar.enums import MediaType\nfrom litestar.exceptions import ImproperlyConfiguredException\nfrom litestar.response.bas...
diff --git a/litestar/response/template.py b/litestar/response/template.py index 4865856573..7507f2f2e8 100644 --- a/litestar/response/template.py +++ b/litestar/response/template.py @@ -56,7 +56,6 @@ def __init__( media_type: A string or member of the :class:`MediaType <.enums.MediaType>` enum. If not set...
great-expectations__great_expectations-3811
Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y`
[ { "content": "import logging\nfrom typing import Optional\n\nfrom ruamel.yaml import YAML\nfrom ruamel.yaml.comments import CommentedMap\n\nimport great_expectations.exceptions as ge_exceptions\nfrom great_expectations.data_context.store import GeCloudStoreBackend\nfrom great_expectations.data_context.store.sto...
[ { "content": "import logging\nfrom typing import Optional\n\nfrom ruamel.yaml import YAML\nfrom ruamel.yaml.comments import CommentedMap\n\nimport great_expectations.exceptions as ge_exceptions\nfrom great_expectations.data_context.store import GeCloudStoreBackend\nfrom great_expectations.data_context.store.sto...
diff --git a/great_expectations/data_context/store/configuration_store.py b/great_expectations/data_context/store/configuration_store.py index 08a1994d497b..09c69dfee98f 100644 --- a/great_expectations/data_context/store/configuration_store.py +++ b/great_expectations/data_context/store/configuration_store.py @@ -63,8 ...
pymedusa__Medusa-4169
qbittorrent: Unable to set the pause for Torrent (new qBit 4.1.0) ### Before submitting your issue: Enable debug logging in Medusa settings, reproduce the error (be sure to disable after the bug is fixed) **Branch/Commit:** 77b2091 **OS:** Linux Mint 18.2 Cinnamon **What you did:** I updated to qBittorrent 4...
[ { "content": "# coding=utf-8\n\n\"\"\"qBittorrent Client.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\n\nfrom medusa import app\nfrom medusa.clients.torrent.generic import GenericClient\nfrom medusa.logger.adapters.style import BraceAdapter\n\nfrom requests.auth import HTTPDigestAuth\n\nl...
[ { "content": "# coding=utf-8\n\n\"\"\"qBittorrent Client.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\n\nfrom medusa import app\nfrom medusa.clients.torrent.generic import GenericClient\nfrom medusa.logger.adapters.style import BraceAdapter\n\nfrom requests.auth import HTTPDigestAuth\n\nl...
diff --git a/medusa/clients/torrent/qbittorrent_client.py b/medusa/clients/torrent/qbittorrent_client.py index 675da1bc6b..e4083fb363 100644 --- a/medusa/clients/torrent/qbittorrent_client.py +++ b/medusa/clients/torrent/qbittorrent_client.py @@ -123,8 +123,9 @@ def _set_torrent_priority(self, result): def _set_to...
cloudtools__troposphere-1233
EC2 SpotFleet wrong LoadBalancersConfig structure SpotFleetRequestConfigData.LoadBalancersConfig have wrong structure. There is missing ClassicLoadBalancersConfig class between LoadBalancersConfig and array of ClassicLoadBalancer. It should be something like: ``` class ClassicLoadBalancersConfig(AWSProperty): ...
[ { "content": "# Copyright (c) 2012-2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSHelperFn, AWSObject, AWSProperty, Tags\nfrom .validators import (\n boolean, exactly_one, integer, integer_range, double,\n network_port, positive_integer...
[ { "content": "# Copyright (c) 2012-2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSHelperFn, AWSObject, AWSProperty, Tags\nfrom .validators import (\n boolean, exactly_one, integer, integer_range, double,\n network_port, positive_integer...
diff --git a/troposphere/ec2.py b/troposphere/ec2.py index 0cfe35e76..1203e802b 100644 --- a/troposphere/ec2.py +++ b/troposphere/ec2.py @@ -782,6 +782,12 @@ class ClassicLoadBalancer(AWSProperty): } +class ClassicLoadBalancersConfig(AWSProperty): + props = { + 'ClassicLoadBalancers': ([ClassicLoadBa...
pypa__pip-11318
Logging error when checking for new version of pip. ### Description When pip (22.1.2) checked for a new version it failed with an error. It's coming from the following function: https://github.com/pypa/pip/blob/c4606b3572529625762f0586dda134302cf6122c/src/pip/_internal/utils/entrypoints.py#L46-L62 The problem ca...
[ { "content": "import itertools\nimport os\nimport shutil\nimport sys\nfrom typing import List, Optional\n\nfrom pip._internal.cli.main import main\nfrom pip._internal.utils.compat import WINDOWS\n\n_EXECUTABLE_NAMES = [\n \"pip\",\n f\"pip{sys.version_info.major}\",\n f\"pip{sys.version_info.major}.{sy...
[ { "content": "import itertools\nimport os\nimport shutil\nimport sys\nfrom typing import List, Optional\n\nfrom pip._internal.cli.main import main\nfrom pip._internal.utils.compat import WINDOWS\n\n_EXECUTABLE_NAMES = [\n \"pip\",\n f\"pip{sys.version_info.major}\",\n f\"pip{sys.version_info.major}.{sy...
diff --git a/news/11309.bugfix.rst b/news/11309.bugfix.rst new file mode 100644 index 00000000000..9ee54057da4 --- /dev/null +++ b/news/11309.bugfix.rst @@ -0,0 +1 @@ +Ensure that the candidate ``pip`` executable exists, when checking for a new version of pip. diff --git a/src/pip/_internal/utils/entrypoints.py b/src/p...
elastic__ecs-1164
Incorrect output of the "tracing" fields in the Beats yml file Just like the `base` fields, the `tracing` fields are not nested under the name of the field set. So it's not `base.@timestamp`, it's `@timestamp`, and it's not `tracing.trace.id`, it's `trace.id`. In the Beats field yaml file the ECS project generates, ...
[ { "content": "from os.path import join\nfrom collections import OrderedDict\nfrom generators import ecs_helpers\n\n\ndef generate(ecs_nested, ecs_version, out_dir):\n # Load temporary whitelist for default_fields workaround.\n df_whitelist = ecs_helpers.yaml_load('scripts/generators/beats_default_fields_w...
[ { "content": "from os.path import join\nfrom collections import OrderedDict\nfrom generators import ecs_helpers\n\n\ndef generate(ecs_nested, ecs_version, out_dir):\n # Load temporary whitelist for default_fields workaround.\n df_whitelist = ecs_helpers.yaml_load('scripts/generators/beats_default_fields_w...
diff --git a/CHANGELOG.next.md b/CHANGELOG.next.md index e57eb2a8f7..199dd83238 100644 --- a/CHANGELOG.next.md +++ b/CHANGELOG.next.md @@ -30,6 +30,8 @@ Thanks, you're awesome :-) --> #### Bugfixes +* `tracing` fields should be at root of Beats `fields.ecs.yml` artifacts. #1164 + #### Added * Added ability to ...
agconti__cookiecutter-django-rest-147
Updated drf page number pagination settings http://www.django-rest-framework.org/api-guide/pagination/#pagenumberpagination ``` python REST_FRAMEWORK = { 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', 'PAGE_SIZE': 100 } ```
[ { "content": "import os\nfrom os.path import join\n\nfrom configurations import Configuration, values\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\nclass Common(Configuration):\n\n INSTALLED_APPS = (\n 'django.contrib.admin',\n 'django.contrib.auth',\n 'd...
[ { "content": "import os\nfrom os.path import join\n\nfrom configurations import Configuration, values\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\nclass Common(Configuration):\n\n INSTALLED_APPS = (\n 'django.contrib.admin',\n 'django.contrib.auth',\n 'd...
diff --git a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/common.py b/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/common.py index 66623e26f..9c95c1466 100755 --- a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/common.py +++ b/{{cookiecu...
Project-MONAI__MONAI-440
better error messages in monai.transforms.Compose **Is your feature request related to a problem? Please describe.** When running a 'chain of transformations', if there's an exception from one of the transformations, the error message is unclear. for example: ```python from monai.transforms import Compose, AddCha...
[ { "content": "# Copyright 2020 MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable l...
[ { "content": "# Copyright 2020 MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable l...
diff --git a/monai/transforms/utils.py b/monai/transforms/utils.py index 418e459638..09abdd70ad 100644 --- a/monai/transforms/utils.py +++ b/monai/transforms/utils.py @@ -239,9 +239,12 @@ def apply_transform(transform, data): transform (callable): a callable to be used to transform `data` data (object...
pallets__werkzeug-2472
v2.2.0 breaks previous URL map logic for url-encoded path segments containing %2F Version 2.2.0 seems to change the way url-encoded path segments (specifically paths which contain the escape sequence for `/`, `%2F`) are handled in rules/maps in the routing module. Here's a self-contained example demonstrating the di...
[ { "content": "import ast\nimport re\nimport typing as t\nfrom dataclasses import dataclass\nfrom string import Template\nfrom types import CodeType\n\nfrom .._internal import _to_bytes\nfrom ..urls import url_encode\nfrom ..urls import url_quote\nfrom .converters import ValidationError\n\nif t.TYPE_CHECKING:\n ...
[ { "content": "import ast\nimport re\nimport typing as t\nfrom dataclasses import dataclass\nfrom string import Template\nfrom types import CodeType\n\nfrom .._internal import _to_bytes\nfrom ..urls import url_encode\nfrom ..urls import url_quote\nfrom .converters import ValidationError\n\nif t.TYPE_CHECKING:\n ...
diff --git a/CHANGES.rst b/CHANGES.rst index 70d7b9715..30ae859c1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,6 +9,8 @@ Unreleased slashes mode is disabled for the rule. :issue:`2467` - Fix router so that partial part matches are not allowed i.e. ``/2df`` does not match ``/<int>``. :pr:`2470` +- Fix...
Textualize__textual-2317
Scrolling containers should be focusable by default `ScrollHorizontal` and `ScrollVertical` should have `can_focus=True`. Check this doesn't break any of the example apps.
[ { "content": "\"\"\"\nContainer widgets for quick styling.\n\n\"\"\"\n\n\nfrom .widget import Widget\n\n\nclass Container(Widget):\n \"\"\"Simple container widget, with vertical layout.\"\"\"\n\n DEFAULT_CSS = \"\"\"\n Container {\n height: 1fr;\n layout: vertical;\n overflow: auto...
[ { "content": "\"\"\"\nContainer widgets for quick styling.\n\n\"\"\"\n\n\nfrom .widget import Widget\n\n\nclass Container(Widget):\n \"\"\"Simple container widget, with vertical layout.\"\"\"\n\n DEFAULT_CSS = \"\"\"\n Container {\n height: 1fr;\n layout: vertical;\n overflow: auto...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 26b46f0b9e..ec2de8a072 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Breaking change: Timer.start is now private, and returns No - A clicked tab will now be scrolled to the center o...
scikit-image__scikit-image-4437
use_quantiles description in canny is incorrect ## Description The description of `use_quantiles` is "If True then treat low_threshold and high_threshold as quantiles of the edge magnitude image, rather than absolute edge magnitude values. **If True then the thresholds must be in the range [0, 1].**" However, he th...
[ { "content": "\"\"\"\ncanny.py - Canny Edge detector\n\nReference: Canny, J., A Computational Approach To Edge Detection, IEEE Trans.\n Pattern Analysis and Machine Intelligence, 8:679-714, 1986\n\nOriginally part of CellProfiler, code licensed under both GPL and BSD licenses.\nWebsite: http://www.cellprofil...
[ { "content": "\"\"\"\ncanny.py - Canny Edge detector\n\nReference: Canny, J., A Computational Approach To Edge Detection, IEEE Trans.\n Pattern Analysis and Machine Intelligence, 8:679-714, 1986\n\nOriginally part of CellProfiler, code licensed under both GPL and BSD licenses.\nWebsite: http://www.cellprofil...
diff --git a/skimage/feature/_canny.py b/skimage/feature/_canny.py index fbd4689e2ff..8b007555892 100644 --- a/skimage/feature/_canny.py +++ b/skimage/feature/_canny.py @@ -159,11 +159,17 @@ def canny(image, sigma=1., low_threshold=None, high_threshold=None, mask=None, if low_threshold is None: low_thre...
learningequality__kolibri-5001
ValueError: invalid literal for int() with base 10 Sentry Issue: [KOLIBRI-BACKEND-8](https://sentry.io/learningequality/kolibri-backend/issues/877480545/?referrer=github_integration) ``` ValueError: invalid literal for int() with base 10: '0.00293684005737' File "django/core/handlers/exception.py", line 41, in inner...
[ { "content": "from __future__ import absolute_import\n\nimport csv\nimport os\nimport time\n\nfrom django.conf import settings\nfrom django.core.cache import caches\nfrom django.core.exceptions import MiddlewareNotUsed\nfrom django.utils.deprecation import MiddlewareMixin\n\nfrom kolibri.core.analytics import S...
[ { "content": "from __future__ import absolute_import\n\nimport csv\nimport os\nimport time\n\nfrom django.conf import settings\nfrom django.core.cache import caches\nfrom django.core.exceptions import MiddlewareNotUsed\nfrom django.utils.deprecation import MiddlewareMixin\n\nfrom kolibri.core.analytics import S...
diff --git a/kolibri/core/analytics/middleware.py b/kolibri/core/analytics/middleware.py index aa52a162161..582ffdb0d2f 100644 --- a/kolibri/core/analytics/middleware.py +++ b/kolibri/core/analytics/middleware.py @@ -141,7 +141,7 @@ def process_response(self, request, response): path = request.get_full_pat...
modal-labs__modal-examples-532
a1111 example this [a1111](https://modal.com/docs/examples/a1111_webui#stable-diffusion-a1111) example is broken and gives the issue below. I think the issue is that the setup is just out of date for a1111 ``` ╰─$ modal run a1111_webui.py ...
[ { "content": "# ---\n# lambda-test: false\n# ---\n# # Stable Diffusion (A1111)\n#\n# This example runs the popular [AUTOMATIC1111/stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui)\n# project on Modal, without modification. We start a Modal container with an A10G GPU, run the serve...
[ { "content": "# ---\n# lambda-test: false\n# ---\n# # Stable Diffusion (A1111)\n#\n# This example runs the popular [AUTOMATIC1111/stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui)\n# project on Modal, without modification. We start a Modal container with an A10G GPU, run the serve...
diff --git a/06_gpu_and_ml/stable_diffusion/a1111_webui.py b/06_gpu_and_ml/stable_diffusion/a1111_webui.py index e697a563a..ccf249a5b 100644 --- a/06_gpu_and_ml/stable_diffusion/a1111_webui.py +++ b/06_gpu_and_ml/stable_diffusion/a1111_webui.py @@ -48,7 +48,7 @@ def wait_for_port(port: int): ) .env({"LD_PRELO...
DistrictDataLabs__yellowbrick-617
Extend color selection on ResidualsPlot() to histogram When running ResidualsPlot() visualizer, the `test_color` and `train_color` do not propagate down to the histogram. It would be nice if the histogram on the right reflected the color choices as well. ```visualizer = ResidualsPlot(regr_ols, test_color='#615d6c', ...
[ { "content": "# yellowbrick.regressor.residuals\n# Regressor visualizers that score residuals: prediction vs. actual data.\n#\n# Author: Rebecca Bilbro <rbilbro@districtdatalabs.com>\n# Author: Benjamin Bengfort <bbengfort@districtdatalabs.com>\n# Created: Fri Jun 03 10:30:36 2016 -0700\n#\n# Copyright (C)...
[ { "content": "# yellowbrick.regressor.residuals\n# Regressor visualizers that score residuals: prediction vs. actual data.\n#\n# Author: Rebecca Bilbro <rbilbro@districtdatalabs.com>\n# Author: Benjamin Bengfort <bbengfort@districtdatalabs.com>\n# Created: Fri Jun 03 10:30:36 2016 -0700\n#\n# Copyright (C)...
diff --git a/tests/test_text/test_freqdist.py b/tests/test_text/test_freqdist.py index a7364f670..e687d8b28 100644 --- a/tests/test_text/test_freqdist.py +++ b/tests/test_text/test_freqdist.py @@ -50,4 +50,4 @@ def test_integrated_freqdist(self): visualizer.fit(docs) visualizer.poof() - self....
safe-global__safe-config-service-361
Gas price editable from the Chain model Please make the Gas Price editable directly via Chain configs. Like we did for Features and Wallets. Thanks!
[ { "content": "from django.contrib import admin\nfrom django.db.models import Model\n\nfrom .models import Chain, Feature, GasPrice, Wallet\n\n\nclass FeatureInline(admin.TabularInline[Model]):\n model = Feature.chains.through\n extra = 0\n verbose_name_plural = \"Features enabled for this chain\"\n\n\n...
[ { "content": "from django.contrib import admin\nfrom django.db.models import Model\n\nfrom .models import Chain, Feature, GasPrice, Wallet\n\n\nclass GasPriceInline(admin.TabularInline[Model]):\n model = GasPrice\n extra = 0\n verbose_name_plural = \"Gas prices set for this chain\"\n\n\nclass FeatureIn...
diff --git a/src/chains/admin.py b/src/chains/admin.py index c1598dce..77c98427 100644 --- a/src/chains/admin.py +++ b/src/chains/admin.py @@ -4,6 +4,12 @@ from .models import Chain, Feature, GasPrice, Wallet +class GasPriceInline(admin.TabularInline[Model]): + model = GasPrice + extra = 0 + verbose_name_...
python-discord__bot-1141
Antimalware cog file filter triggers on bot and webhook messages Currently the antimalware cog file filter triggers on messages from the bot, and also on webhook messages. So for the example somebody tries to send an attachment from python using `!int eval`, it will be caught by the filter ![image](https://user-images...
[ { "content": "import logging\nimport typing as t\nfrom os.path import splitext\n\nfrom discord import Embed, Message, NotFound\nfrom discord.ext.commands import Cog\n\nfrom bot.bot import Bot\nfrom bot.constants import Channels, STAFF_ROLES, URLs\n\nlog = logging.getLogger(__name__)\n\nPY_EMBED_DESCRIPTION = (\...
[ { "content": "import logging\nimport typing as t\nfrom os.path import splitext\n\nfrom discord import Embed, Message, NotFound\nfrom discord.ext.commands import Cog\n\nfrom bot.bot import Bot\nfrom bot.constants import Channels, STAFF_ROLES, URLs\n\nlog = logging.getLogger(__name__)\n\nPY_EMBED_DESCRIPTION = (\...
diff --git a/bot/cogs/antimalware.py b/bot/cogs/antimalware.py index c76bd2c604..7894ec48fe 100644 --- a/bot/cogs/antimalware.py +++ b/bot/cogs/antimalware.py @@ -55,6 +55,10 @@ async def on_message(self, message: Message) -> None: if not message.attachments or not message.guild: return + ...
ansible__ansible-23087
ios_config multiline banner timeout <!--- This looks to match issue 5318 which is listed as resolved but I am having the same issue. I have used ^ as the deliminator in the src file as well as the default @. --> ##### ISSUE TYPE <!--- - Bug Report --> ##### COMPONENT NAME ``` <!--- ios_config --> ``` ##...
[ { "content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers...
[ { "content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers...
diff --git a/lib/ansible/modules/network/ios/ios_banner.py b/lib/ansible/modules/network/ios/ios_banner.py index 6187a6f4a78045..a3e136be9341b3 100644 --- a/lib/ansible/modules/network/ios/ios_banner.py +++ b/lib/ansible/modules/network/ios/ios_banner.py @@ -113,7 +113,10 @@ def map_config_to_obj(module): rc, ...
ansible__ansible-24081
'become' causes failure when used on the first task of a play ##### ISSUE TYPE <!--- Pick one below and delete the rest: --> - Bug Report ##### COMPONENT NAME become ##### ANSIBLE VERSION <!--- Paste verbatim output from “ansible --version” between quotes below --> ``` ansible 2.4.0 (devel e0a7105c2d) last...
[ { "content": "# (c) 2015 Toshio Kuratomi <tkuratomi@ansible.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n...
[ { "content": "# (c) 2015 Toshio Kuratomi <tkuratomi@ansible.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n...
diff --git a/lib/ansible/plugins/connection/__init__.py b/lib/ansible/plugins/connection/__init__.py index 6ba4aa2fa66afd..59351d25f0096c 100644 --- a/lib/ansible/plugins/connection/__init__.py +++ b/lib/ansible/plugins/connection/__init__.py @@ -254,10 +254,8 @@ def check_password_prompt(self, b_output): ...
streamlit__streamlit-7306
CachedStFunctionWarning with st.code ### Checklist - [X] I have searched the [existing issues](https://github.com/streamlit/streamlit/issues) for similar issues. - [X] I added a very descriptive title to this issue. - [X] I have provided sufficient information below to help reproduce this issue. ### Summary ...
[ { "content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
[ { "content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\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/lib/streamlit/elements/__init__.py b/lib/streamlit/elements/__init__.py index 73ab16b4fc1f..22b69ddf5079 100644 --- a/lib/streamlit/elements/__init__.py +++ b/lib/streamlit/elements/__init__.py @@ -46,6 +46,7 @@ "balloons", "bar_chart", "bokeh_chart", + "code", "data_frame", "da...
python-pillow__Pillow-4283
Large BMP files crash (i.e. more than 2**32 pixels) I started asking on StackOverflow about my original problem, and the code is pasted over there: https://stackoverflow.com/questions/59353721/python-pillow-opening-1-bit-depth-files-with-8-bits but after moving to a larger machine (256 GB RAM) I moved on from the o...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# BMP file handler\n#\n# Windows (and OS/2) native bitmap storage format.\n#\n# history:\n# 1995-09-01 fl Created\n# 1996-04-30 fl Added save\n# 1997-08-27 fl Fixed save of 1-bit images\n# 1998-03-06 fl Load P images as L where possible\n# 1998-...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# BMP file handler\n#\n# Windows (and OS/2) native bitmap storage format.\n#\n# history:\n# 1995-09-01 fl Created\n# 1996-04-30 fl Added save\n# 1997-08-27 fl Fixed save of 1-bit images\n# 1998-03-06 fl Load P images as L where possible\n# 1998-...
diff --git a/Tests/test_file_bmp.py b/Tests/test_file_bmp.py index 76cd98aba0e..338f52cd756 100644 --- a/Tests/test_file_bmp.py +++ b/Tests/test_file_bmp.py @@ -41,6 +41,13 @@ def test_save_to_bytes(self): self.assertEqual(im.size, reloaded.size) self.assertEqual(reloaded.format, "BMP") + ...
dask__dask-9127
`test_filter_nonpartition_columns` flaky Over in https://github.com/dask/dask/pull/9017 we observed `test_filter_nonpartition_columns[fastparquet-fastparquet-None]` fail in [this CI build](https://github.com/dask/dask/runs/6306465028?check_suite_focus=true) with ```python @classmethod def write_partition(...
[ { "content": "import copy\nimport pickle\nimport threading\nimport warnings\nfrom collections import OrderedDict, defaultdict\nfrom contextlib import ExitStack\n\nimport numpy as np\nimport pandas as pd\nimport tlz as toolz\nfrom packaging.version import parse as parse_version\n\nfrom dask.core import flatten\n...
[ { "content": "import copy\nimport pickle\nimport threading\nimport warnings\nfrom collections import OrderedDict, defaultdict\nfrom contextlib import ExitStack\n\nimport numpy as np\nimport pandas as pd\nimport tlz as toolz\nfrom packaging.version import parse as parse_version\n\nfrom dask.core import flatten\n...
diff --git a/dask/dataframe/io/parquet/fastparquet.py b/dask/dataframe/io/parquet/fastparquet.py index 930017cacf3..2b838d0059a 100644 --- a/dask/dataframe/io/parquet/fastparquet.py +++ b/dask/dataframe/io/parquet/fastparquet.py @@ -1226,9 +1226,11 @@ def write_partition( # Update key/value metadata if necessa...
kymatio__kymatio-184
Warning in `mnist.py` Specifically, https://github.com/kymatio/kymatio/blob/289bc26551e92456ef7a48fbe83d48e157f7632c/examples/2d/mnist.py#L50 generates a warning saying that `size_average` will be deprecated and says to use `reduction='sum'` instead. Is this ok for us to do?
[ { "content": "\"\"\"\nClassification of handwritten digits\n====================================\n\nBased on pytorch example for MNIST\n\"\"\"\n\n\nimport torch.nn as nn\nimport torch.optim\nfrom torchvision import datasets, transforms\nimport torch.nn.functional as F\nfrom kymatio import Scattering2D\nimport k...
[ { "content": "\"\"\"\nClassification of handwritten digits\n====================================\n\nBased on pytorch example for MNIST\n\"\"\"\n\n\nimport torch.nn as nn\nimport torch.optim\nfrom torchvision import datasets, transforms\nimport torch.nn.functional as F\nfrom kymatio import Scattering2D\nimport k...
diff --git a/examples/2d/mnist.py b/examples/2d/mnist.py index 1f32602d2..719beacd4 100644 --- a/examples/2d/mnist.py +++ b/examples/2d/mnist.py @@ -47,7 +47,7 @@ def test(model, device, test_loader, scattering): for data, target in test_loader: data, target = data.to(device), target.to(device) ...
MycroftAI__mycroft-core-2636
CommonIoTSkill subclasses can't initialize with register_entities_and_scenes ## To recreate: Create a skill subclassing `CommonIoTSkill` and call register_entities_and_scenes` in the `initialize` method. ## Be as specific as possible about the expected condition, and the deviation from expected condition. Thi...
[ { "content": "# Copyright 2019 Mycroft AI Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
[ { "content": "# Copyright 2019 Mycroft AI Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
diff --git a/mycroft/skills/common_iot_skill.py b/mycroft/skills/common_iot_skill.py index bf6b349f8e33..54f04c6fa920 100644 --- a/mycroft/skills/common_iot_skill.py +++ b/mycroft/skills/common_iot_skill.py @@ -456,11 +456,10 @@ def _register_words(self, words: [str], word_type: str): word_type: "...
web2py__web2py-1818
response.include_meta() bug Hi! I have a function in my modules ```python def set_open_graph(type="website", title=None, url=None, image=None, description=None, site_name=None, locale=None, locale_alternate={}): data = locals() for name in ['type', 'title', 'url', 'description', 'site_name', ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n| This file is part of the web2py Web Framework\n| Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\n| License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nContains the classes for the global used variables:\n\n- Request\n- ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n| This file is part of the web2py Web Framework\n| Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\n| License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nContains the classes for the global used variables:\n\n- Request\n- ...
diff --git a/.travis.yml b/.travis.yml index e7c88e7eb..644e6211d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,12 +10,16 @@ python: - '2.7' - '3.5' - '3.6' + - '3.6-dev' + - '3.7-dev' - 'pypy-5.3.1' - 'pypy3.5-5.7.1-beta' matrix: allow_failures: - python: 'pypy3.5-5.7.1-beta' + - pyt...
yt-project__yt-3221
A visible deprecation warning in CI ### Bug report **Bug summary** We have one test that triggers a VisibleDeprecationWarning from numpy via unyt. I'm not sure atm where the problem should be addressed: - in the test itself ? - in the yt code under test ? - in unyt ? **Code for reproduction** ```shell py...
[ { "content": "import numpy as np\n\nfrom yt._maintenance.deprecation import issue_deprecation_warning\nfrom yt.funcs import camelcase_to_underscore, iter_fields\nfrom yt.units.yt_array import array_like_field\nfrom yt.utilities.exceptions import YTParticleTypeNotFound\nfrom yt.utilities.object_registries import...
[ { "content": "import numpy as np\n\nfrom yt._maintenance.deprecation import issue_deprecation_warning\nfrom yt.funcs import camelcase_to_underscore, iter_fields\nfrom yt.units.yt_array import array_like_field\nfrom yt.utilities.exceptions import YTParticleTypeNotFound\nfrom yt.utilities.object_registries import...
diff --git a/yt/data_objects/derived_quantities.py b/yt/data_objects/derived_quantities.py index f5a513ab868..ade793e5e01 100644 --- a/yt/data_objects/derived_quantities.py +++ b/yt/data_objects/derived_quantities.py @@ -201,11 +201,11 @@ def __call__(self): if ("gas", "mass") in fi: gas = super()...
mdn__kuma-5842
scrape_document with trailing slash fails ``` ▶ docker-compose exec web ./manage.py scrape_document https://developer.mozilla.org/en-US/docs/Web/CSS/ --depth=2 /usr/local/lib/python2.7/site-packages/django/utils/encoding.py:6: ImportWarning: Not importing directory '/app/locale': missing __init__.py import locale ...
[ { "content": "\"\"\"Common methods for scraping management commands.\"\"\"\nimport logging\nfrom argparse import ArgumentTypeError\n\nfrom django.core.management.base import BaseCommand\nfrom django.utils.six.moves.urllib.parse import urlparse\n\nfrom kuma.scrape.scraper import Scraper\n\n\nclass ScrapeCommand(...
[ { "content": "\"\"\"Common methods for scraping management commands.\"\"\"\nimport logging\nfrom argparse import ArgumentTypeError\n\nfrom django.core.management.base import BaseCommand\nfrom django.utils.six.moves.urllib.parse import urlparse\n\nfrom kuma.scrape.scraper import Scraper\n\n\nclass ScrapeCommand(...
diff --git a/kuma/scrape/management/commands/__init__.py b/kuma/scrape/management/commands/__init__.py index d05a72142c0..66b8767741b 100644 --- a/kuma/scrape/management/commands/__init__.py +++ b/kuma/scrape/management/commands/__init__.py @@ -18,12 +18,12 @@ def parse_url_or_path(self, url_or_path): if url_o...
pypa__setuptools-1607
Preserving read-only flags on package data causing access denied when building I'm working with a read-only source directory on Windows and running into access denied errors when calling `python setup.py bdist_wheel`. I noticed that it was only files included in package_data that were causing this, which helped me trac...
[ { "content": "from glob import glob\nfrom distutils.util import convert_path\nimport distutils.command.build_py as orig\nimport os\nimport fnmatch\nimport textwrap\nimport io\nimport distutils.errors\nimport itertools\n\nfrom setuptools.extern import six\nfrom setuptools.extern.six.moves import map, filter, fil...
[ { "content": "from glob import glob\nfrom distutils.util import convert_path\nimport distutils.command.build_py as orig\nimport os\nimport fnmatch\nimport textwrap\nimport io\nimport distutils.errors\nimport itertools\n\nfrom setuptools.extern import six\nfrom setuptools.extern.six.moves import map, filter, fil...
diff --git a/changelog.d/1424.change.rst b/changelog.d/1424.change.rst new file mode 100644 index 0000000000..361997ddd6 --- /dev/null +++ b/changelog.d/1424.change.rst @@ -0,0 +1 @@ +Prevent keeping files mode for package_data build. It may break a build if user's package data has read only flag. \ No newline at end o...
svthalia__concrexit-2687
Show ul and ol buttons in TinyMCE editors ### Is your feature request related to a problem? Please describe. `<ul>`s and `<ol>`s are nice, but the current TinyMCE editor doesn't show shortcuts to use them ### Describe the solution you'd like Add buttons to the TinyMCE toolbar ### Motivation Make people use ric...
[ { "content": "\"\"\"Django settings for concrexit.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/dev/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/dev/ref/settings/\n\"\"\"\n\nimport base64\nimport json\nimport logging\n...
[ { "content": "\"\"\"Django settings for concrexit.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/dev/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/dev/ref/settings/\n\"\"\"\n\nimport base64\nimport json\nimport logging\n...
diff --git a/website/thaliawebsite/settings.py b/website/thaliawebsite/settings.py index 6572df7f9..bc0254b27 100644 --- a/website/thaliawebsite/settings.py +++ b/website/thaliawebsite/settings.py @@ -783,9 +783,9 @@ def from_env( TINYMCE_DEFAULT_CONFIG = { "max_height": 500, "menubar": False, - "plugins"...
certbot__certbot-904
Read The Docs build errors - https://readthedocs.org/projects/letsencrypt/builds/3376545/ (0f85a74dcd1147109b192e52f5604cf0c238feed) - https://readthedocs.org/projects/letsencrypt/builds/3376579/ (22d756992b94f4da9882d1c74ff8f8c04c00e79a) - https://readthedocs.org/projects/letsencrypt/builds/3376631/ (88def4854b05d3634...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Let's Encrypt documentation build configuration file, created by\n# sphinx-quickstart on Sun Nov 23 20:35:21 2014.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Let's Encrypt documentation build configuration file, created by\n# sphinx-quickstart on Sun Nov 23 20:35:21 2014.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present...
diff --git a/docs/conf.py b/docs/conf.py index 2b4b2cd4308..e2b360a6e79 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -30,7 +30,7 @@ # read version number (and other metadata) from package init init_fn = os.path.join(here, '..', 'letsencrypt', '__init__.py') with codecs.open(init_fn, encoding='utf8') as fd: - m...
ckan__ckan-7077
Search indexing logic called twice after update or create dataset **CKAN version** 2.10 **Describe the bug** When updating or creating a dataset, we are indexing the dataset twice in a row, ie the [`index_package()`](https://github.com/ckan/ckan/blob/9f1b5cfaff8c135b589e2ea0275f1286c2e02711/ckan/lib/search/ind...
[ { "content": "# encoding: utf-8\n\nimport logging\nfrom typing import Any\n\nfrom ckan.lib.search import SearchIndexError\n\nimport ckan.plugins as plugins\nimport ckan.model as model\n\nlog = logging.getLogger(__name__)\n\n__all__ = ['DomainObjectModificationExtension']\n\n\nclass DomainObjectModificationExten...
[ { "content": "# encoding: utf-8\n\nimport logging\nfrom typing import Any\n\nfrom ckan.lib.search import SearchIndexError\n\nimport ckan.plugins as plugins\nimport ckan.model as model\n\nlog = logging.getLogger(__name__)\n\n__all__ = ['DomainObjectModificationExtension']\n\n\nclass DomainObjectModificationExten...
diff --git a/ckan/model/modification.py b/ckan/model/modification.py index d058f0c86bb..3e89d346173 100644 --- a/ckan/model/modification.py +++ b/ckan/model/modification.py @@ -47,8 +47,12 @@ def notify_observers(self, session: Any, method: Any): for item in plugins.PluginImplementations(plugins.IResou...
holoviz__holoviews-5792
Interactive Graphs Don't Update in VSCode #### ALL (relevant) software version info #### Python packages holoviews: 1.12.7 jupyter: 1.0.0 jupyter_client: 7.3.4 jupyter_console: 6.6.3 jupyter_core: 5.3.0 jupyter_server: 1.23.6 jupyterlab_pygments: 0.2...
[ { "content": "import os\nimport sys\nimport inspect\nimport shutil\n\nfrom collections import defaultdict\nfrom inspect import Parameter, Signature\nfrom types import FunctionType\nfrom pathlib import Path\n\nimport param\nfrom pyviz_comms import extension as _pyviz_extension\n\nfrom ..core import (\n Datase...
[ { "content": "import os\nimport sys\nimport inspect\nimport shutil\n\nfrom collections import defaultdict\nfrom inspect import Parameter, Signature\nfrom types import FunctionType\nfrom pathlib import Path\n\nimport param\nfrom pyviz_comms import extension as _pyviz_extension\n\nfrom ..core import (\n Datase...
diff --git a/holoviews/util/__init__.py b/holoviews/util/__init__.py index c02276b4ac..894e4ecf64 100644 --- a/holoviews/util/__init__.py +++ b/holoviews/util/__init__.py @@ -713,14 +713,11 @@ def __call__(self, *args, **params): import panel as pn if pn.config.comms == "default": - try: ...
searx__searx-2323
RuntimeError: Set changed size during iteration Sometimes I will make a search and I will get 500 Internal Server Error. I can't reproduce it, but looking at the traceback it looks like something happening with timeouts and such: ``` ERROR:searx.webapp:Exception on / [POST] Traceback (most recent call last): Fi...
[ { "content": "#!/usr/bin/env python\n\n'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed i...
[ { "content": "#!/usr/bin/env python\n\n'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed i...
diff --git a/searx/webapp.py b/searx/webapp.py index 65308275bf..2a93c3765f 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -735,12 +735,12 @@ def search(): def __get_translated_errors(unresponsive_engines): - translated_errors = [] + translated_errors = set() for unresponsive_engine in unresponsi...
getredash__redash-1003
Getting duplicates in the search box even Even though there is only one query, the query box is showing duplicates when adding query to a dashboard or creating a new alert.
[ { "content": "import json\nfrom flask_login import UserMixin, AnonymousUserMixin\nimport hashlib\nimport logging\nimport os\nimport threading\nimport time\nimport datetime\nimport itertools\nfrom funcy import project\n\nimport peewee\nfrom passlib.apps import custom_app_context as pwd_context\nfrom playhouse.gf...
[ { "content": "import json\nfrom flask_login import UserMixin, AnonymousUserMixin\nimport hashlib\nimport logging\nimport os\nimport threading\nimport time\nimport datetime\nimport itertools\nfrom funcy import project\n\nimport peewee\nfrom passlib.apps import custom_app_context as pwd_context\nfrom playhouse.gf...
diff --git a/redash/models.py b/redash/models.py index 3d0d459e63..55022500d8 100644 --- a/redash/models.py +++ b/redash/models.py @@ -649,11 +649,13 @@ def search(cls, term, groups): where &= cls.is_archived == False - return cls.select()\ - .join(DataSourceGroup, on=(Query.data_so...
optuna__optuna-4886
RuntimeError caused by fail processing after liveness judgment in distributed optimization ### Expected behavior Optuna incorporates a Heartbeat mechanism, which evaluates trials by detecting those that haven't recorded a heartbeat within a certain time period and transitions them from "Running" to "Fail". However, ...
[ { "content": "import abc\nimport copy\nfrom threading import Event\nfrom threading import Thread\nfrom types import TracebackType\nfrom typing import Callable\nfrom typing import List\nfrom typing import Optional\nfrom typing import Type\n\nimport optuna\nfrom optuna._experimental import experimental_func\nfrom...
[ { "content": "import abc\nimport copy\nfrom threading import Event\nfrom threading import Thread\nfrom types import TracebackType\nfrom typing import Callable\nfrom typing import List\nfrom typing import Optional\nfrom typing import Type\n\nimport optuna\nfrom optuna._experimental import experimental_func\nfrom...
diff --git a/optuna/storages/_heartbeat.py b/optuna/storages/_heartbeat.py index adcfbd04ee..99f0e6c27d 100644 --- a/optuna/storages/_heartbeat.py +++ b/optuna/storages/_heartbeat.py @@ -166,8 +166,12 @@ def fail_stale_trials(study: "optuna.Study") -> None: failed_trial_ids = [] for trial_id in storage._get...
quantumlib__Cirq-4308
Automerge failing on bogus missing checks **Description of the issue** For example: https://github.com/quantumlib/Cirq/pull/4267#issuecomment-877402508
[ { "content": "import datetime\nimport traceback\nfrom typing import Callable, Optional, List, Any, Dict, Set, Union\n\nimport json\nimport os\nimport time\nimport sys\n\nfrom google.cloud import secretmanager_v1beta1\nimport requests\n\nfrom dev_tools.github_repository import GithubRepository\n\nGITHUB_REPO_NAM...
[ { "content": "import datetime\nimport traceback\nfrom typing import Callable, Optional, List, Any, Dict, Set, Union\n\nimport json\nimport os\nimport time\nimport sys\n\nfrom google.cloud import secretmanager_v1beta1\nimport requests\n\nfrom dev_tools.github_repository import GithubRepository\n\nGITHUB_REPO_NAM...
diff --git a/dev_tools/auto_merge.py b/dev_tools/auto_merge.py index b7273c7c700..2d618fbe244 100644 --- a/dev_tools/auto_merge.py +++ b/dev_tools/auto_merge.py @@ -358,8 +358,9 @@ def get_pr_checks(pr: PullRequestDetails) -> Dict[str, Any]: References: https://developer.github.com/v3/checks/runs/#list-ch...
nvaccess__nvda-10531
repetition when focusing a console window <!-- Please thoroughly read NVDA's wiki article on how to fill in this template, including how to provide the required files. Issues may be closed if the required information is not present. https://github.com/nvaccess/nvda/wiki/Github-issue-template-explanation-and-examples...
[ { "content": "# NVDAObjects/UIA/winConsoleUIA.py\n# A part of NonVisual Desktop Access (NVDA)\n# This file is covered by the GNU General Public License.\n# See the file COPYING for more details.\n# Copyright (C) 2019 Bill Dengler\n\nimport ctypes\nimport NVDAHelper\nimport textInfos\nimport textUtils\nimport UI...
[ { "content": "# NVDAObjects/UIA/winConsoleUIA.py\n# A part of NonVisual Desktop Access (NVDA)\n# This file is covered by the GNU General Public License.\n# See the file COPYING for more details.\n# Copyright (C) 2019 Bill Dengler\n\nimport ctypes\nimport NVDAHelper\nimport textInfos\nimport UIAHandler\n\nfrom c...
diff --git a/source/NVDAObjects/UIA/winConsoleUIA.py b/source/NVDAObjects/UIA/winConsoleUIA.py index 511e3ac5e4a..fd16835f29e 100644 --- a/source/NVDAObjects/UIA/winConsoleUIA.py +++ b/source/NVDAObjects/UIA/winConsoleUIA.py @@ -250,17 +250,8 @@ def __ne__(self, other): class consoleUIAWindow(Window): - def _get_f...
sunpy__sunpy-3792
Handle discrepancy between contour and imshow kwargs like linewidths in CompositeMap Hi, I think it would be pretty easy to enable passing the plt.contour "linewidths" argument into CompositeMaps. Right now I am using a copy of .plot() where I include the "linewidths" argument in .plot_settings enabled in the case of...
[ { "content": "\"\"\"A Composite Map class\n\nAuthor: `Keith Hughitt <keith.hughitt@nasa.gov>`\n\"\"\"\nimport numpy as np\n\nimport matplotlib as mpl\nimport matplotlib.pyplot as plt\n\nimport astropy.units as u\n\nfrom sunpy.map import GenericMap\nfrom sunpy.visualization import axis_labels_from_ctype, peek_sh...
[ { "content": "\"\"\"A Composite Map class\n\nAuthor: `Keith Hughitt <keith.hughitt@nasa.gov>`\n\"\"\"\nimport numpy as np\n\nimport matplotlib as mpl\nimport matplotlib.pyplot as plt\n\nimport astropy.units as u\n\nfrom sunpy.map import GenericMap\nfrom sunpy.visualization import axis_labels_from_ctype, peek_sh...
diff --git a/changelog/3792.bugfix.rst b/changelog/3792.bugfix.rst new file mode 100644 index 00000000000..0ba25035837 --- /dev/null +++ b/changelog/3792.bugfix.rst @@ -0,0 +1 @@ +Updated `sunpy.map.compositemap.plot` to support a linewidths argument. diff --git a/sunpy/map/compositemap.py b/sunpy/map/compositemap.py i...
Qiskit__qiskit-2531
latex drawer produces empty output <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: master - **Python version**: - **Operating system**: ### What is the current behavior? ...
[ { "content": "# -*- coding: utf-8 -*-\n\n# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2017, 2018.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org...
[ { "content": "# -*- coding: utf-8 -*-\n\n# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2017, 2018.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org...
diff --git a/qiskit/visualization/latex.py b/qiskit/visualization/latex.py index 60146b2802e0..5ae1c48af03b 100644 --- a/qiskit/visualization/latex.py +++ b/qiskit/visualization/latex.py @@ -222,6 +222,18 @@ def _get_image_depth(self): """ max_column_widths = [] + # Determine row spacing befo...
conan-io__conan-5824
Issue in develop: "conan upload zlib/1.2.8#package_id" doesn't work anymore Caused by https://github.com/conan-io/conan/pull/5817 Add test and fix.
[ { "content": "import os\nimport stat\nimport tarfile\nimport time\nfrom collections import defaultdict\n\nfrom tqdm import tqdm\n\nfrom conans.client.remote_manager import is_package_snapshot_complete\nfrom conans.client.source import complete_recipe_sources\nfrom conans.errors import ConanException, NotFoundEx...
[ { "content": "import os\nimport stat\nimport tarfile\nimport time\nfrom collections import defaultdict\n\nfrom tqdm import tqdm\n\nfrom conans.client.remote_manager import is_package_snapshot_complete\nfrom conans.client.source import complete_recipe_sources\nfrom conans.errors import ConanException, NotFoundEx...
diff --git a/conans/client/cmd/uploader.py b/conans/client/cmd/uploader.py index 44f809e1ced..488bb54ea29 100644 --- a/conans/client/cmd/uploader.py +++ b/conans/client/cmd/uploader.py @@ -93,7 +93,7 @@ def upload(self, reference_or_pattern, remotes, upload_recorder, package_id=None def _collects_refs_to_upload(se...
locustio__locust-2715
Locust insists on using IPv6 despite being in an IPv4 stack. ### Prerequisites - [X] I am using [the latest version of Locust](https://github.com/locustio/locust/releases/) - [X] I am reporting a bug, not asking a question ### Description I have an environment that is IPv4-only, but there is an IPv6 address l...
[ { "content": "from locust.exception import RPCError, RPCReceiveError, RPCSendError\nfrom locust.util.exception_handler import retry\n\nimport msgpack.exceptions as msgerr\nimport zmq.error as zmqerr\nimport zmq.green as zmq\n\nfrom .protocol import Message\n\n\nclass BaseSocket:\n def __init__(self, sock_typ...
[ { "content": "from locust.exception import RPCError, RPCReceiveError, RPCSendError\nfrom locust.util.exception_handler import retry\n\nimport msgpack.exceptions as msgerr\nimport zmq.error as zmqerr\nimport zmq.green as zmq\nfrom urllib3.util.connection import HAS_IPV6\n\nfrom .protocol import Message\n\n\nclas...
diff --git a/locust/rpc/zmqrpc.py b/locust/rpc/zmqrpc.py index a910146cd1..bb344cf9dd 100644 --- a/locust/rpc/zmqrpc.py +++ b/locust/rpc/zmqrpc.py @@ -4,6 +4,7 @@ import msgpack.exceptions as msgerr import zmq.error as zmqerr import zmq.green as zmq +from urllib3.util.connection import HAS_IPV6 from .protocol imp...
horovod__horovod-3451
No module named 'fsspec.callbacks' thrown at horovod/spark/common/store.py ln 33 **Environment:** 1. Framework: TensorFlow 2. Framework version: 2.6.2 3. Horovod version: 0.24.1 4. MPI version: 4.1.0 5. CUDA version: N/A 6. NCCL version: N/A 7. Python version: 3.7 8. Spark / PySpark version: 3.2 9. Ray version...
[ { "content": "# Copyright 2019 Uber Technologies, Inc. All Rights Reserved.\n# Modifications copyright Microsoft\n# Modifications copyright (C) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance...
[ { "content": "# Copyright 2019 Uber Technologies, Inc. All Rights Reserved.\n# Modifications copyright Microsoft\n# Modifications copyright (C) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d3b302837..9e79413b52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixed +- [Setup] Require fsspec >= 2010.07.0 ([#3451](https://github.com/horovod/horovod/pull/345...
kserve__kserve-832
Calling kfserving.Storage.download(src_uri, dest_path) for an S3 URI without having the environment variable AWS_ENDPOINT_URL set will always fail. /kind bug Calling kfserving.Storage.download(src_uri, dest_path) for an S3 URI *without* having the environment variable `AWS_ENDPOINT_URL` set will always fail. **W...
[ { "content": "# Copyright 2020 kubeflow.org.\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 applica...
[ { "content": "# Copyright 2020 kubeflow.org.\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 applica...
diff --git a/python/kfserving/kfserving/storage.py b/python/kfserving/kfserving/storage.py index 6978d77b6ff..02c89ad073a 100644 --- a/python/kfserving/kfserving/storage.py +++ b/python/kfserving/kfserving/storage.py @@ -208,8 +208,8 @@ def _download_local(uri, out_dir=None): @staticmethod def _create_minio...
conan-io__conan-center-index-1612
[package] <boost>/<1.72.0>: boost build with RelWithDebInfo mode has stripped symbols. When loading my package into gdb I am seeing this output: ``` Reading symbols from /.conan/data/boost/1.72.0/_/_/package/907e2c094bdf4b6d1c9dc9fed80f48a536ca4d1b/lib/libboost_contract.so.1.72.0...(no debugging symbols found)...done...
[ { "content": "from conans import ConanFile\nfrom conans import tools\nfrom conans.tools import Version, cppstd_flag\nfrom conans.errors import ConanException\n\nfrom conans.errors import ConanInvalidConfiguration\nimport os\nimport sys\nimport shutil\n\ntry:\n from cStringIO import StringIO\nexcept ImportErr...
[ { "content": "from conans import ConanFile\nfrom conans import tools\nfrom conans.tools import Version, cppstd_flag\nfrom conans.errors import ConanException\n\nfrom conans.errors import ConanInvalidConfiguration\nimport os\nimport sys\nimport shutil\n\ntry:\n from cStringIO import StringIO\nexcept ImportErr...
diff --git a/recipes/boost/all/conanfile.py b/recipes/boost/all/conanfile.py index 9fab7f39d9c3b..a41861b3d785c 100644 --- a/recipes/boost/all/conanfile.py +++ b/recipes/boost/all/conanfile.py @@ -589,6 +589,11 @@ def add_defines(option, library): if self.settings.os != "Windows": if self.options....
sanic-org__sanic-186
Unparseable JSON should not be ignored request.py, line 64 Returning a None here causes breakage in application code further down the line. Generate a 400 error here on malformed JSON to protect the server.
[ { "content": "from cgi import parse_header\nfrom collections import namedtuple\nfrom http.cookies import SimpleCookie\nfrom httptools import parse_url\nfrom urllib.parse import parse_qs\nfrom ujson import loads as json_loads\n\nfrom .log import log\n\n\nDEFAULT_HTTP_CONTENT_TYPE = \"application/octet-stream\"\n...
[ { "content": "from cgi import parse_header\nfrom collections import namedtuple\nfrom http.cookies import SimpleCookie\nfrom httptools import parse_url\nfrom urllib.parse import parse_qs\nfrom ujson import loads as json_loads\nfrom sanic.exceptions import InvalidUsage\n\nfrom .log import log\n\n\nDEFAULT_HTTP_CO...
diff --git a/sanic/request.py b/sanic/request.py index d3c11cd08c..62d8978116 100644 --- a/sanic/request.py +++ b/sanic/request.py @@ -4,6 +4,7 @@ from httptools import parse_url from urllib.parse import parse_qs from ujson import loads as json_loads +from sanic.exceptions import InvalidUsage from .log import log...