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
⌀
mindsdb__lightwood-1202
error when HORIZON=1 ## Your Environment * Python version: python 3.8.8 * Operating system: oraclelinux:8 container * Lightwood version: 22.10.4.2 (compiled from code) ## Describe your issue when HORIZON=1 some predictor creation stopped with error ``` INFO:lightwood-490943:The block ICP is now running its ana...
[ { "content": "import importlib\nfrom copy import deepcopy\nfrom datetime import datetime\nfrom typing import Dict, Union, Optional\n\nimport optuna\nimport numpy as np\nimport pandas as pd\nfrom sktime.forecasting.compose import TransformedTargetForecaster\nfrom sktime.forecasting.base import ForecastingHorizon...
[ { "content": "import importlib\nfrom copy import deepcopy\nfrom datetime import datetime\nfrom typing import Dict, Union, Optional\n\nimport optuna\nimport numpy as np\nimport pandas as pd\nfrom sktime.forecasting.compose import TransformedTargetForecaster\nfrom sktime.forecasting.base import ForecastingHorizon...
diff --git a/lightwood/mixer/sktime.py b/lightwood/mixer/sktime.py index 7ebabcfd9..fc2577afe 100644 --- a/lightwood/mixer/sktime.py +++ b/lightwood/mixer/sktime.py @@ -69,6 +69,9 @@ def __init__( :param use_stl: Whether to use de-trenders and de-seasonalizers fitted in the timeseries analysis phase. ...
pytorch__vision-3325
a question about segmentation model loading ## ❓ Questions and Help Why they are different? ### Please note that this issue tracker is not a help form and this issue will be closed. ![image](https://user-images.githubusercontent.com/32593161/106227085-8d5d2000-6223-11eb-9c66-fcb037faac92.png) We have a set of [l...
[ { "content": "from .._utils import IntermediateLayerGetter\nfrom ..utils import load_state_dict_from_url\nfrom .. import mobilenetv3\nfrom .. import resnet\nfrom .deeplabv3 import DeepLabHead, DeepLabV3\nfrom .fcn import FCN, FCNHead\nfrom .lraspp import LRASPP\n\n\n__all__ = ['fcn_resnet50', 'fcn_resnet101', '...
[ { "content": "from .._utils import IntermediateLayerGetter\nfrom ..utils import load_state_dict_from_url\nfrom .. import mobilenetv3\nfrom .. import resnet\nfrom .deeplabv3 import DeepLabHead, DeepLabV3\nfrom .fcn import FCN, FCNHead\nfrom .lraspp import LRASPP\n\n\n__all__ = ['fcn_resnet50', 'fcn_resnet101', '...
diff --git a/torchvision/models/segmentation/segmentation.py b/torchvision/models/segmentation/segmentation.py index 9ccc1d2ab44..f7a4a807185 100644 --- a/torchvision/models/segmentation/segmentation.py +++ b/torchvision/models/segmentation/segmentation.py @@ -69,6 +69,7 @@ def _segm_model(name, backbone_name, num_clas...
bokeh__bokeh-10385
Autoload with widgets fails if earlier autoload does not specify widgets Some of the User's Guide examples with widgets do not render: https://docs.bokeh.org/en/dev/docs/user_guide/layout.html#multiple-objects Error is: > Uncaught (in promise) Error: Model 'Select' does not exist. This could be due to a widget...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
diff --git a/bokeh/embed/standalone.py b/bokeh/embed/standalone.py index 382fcfad12b..21de68f9211 100644 --- a/bokeh/embed/standalone.py +++ b/bokeh/embed/standalone.py @@ -97,7 +97,7 @@ def autoload_static(model: Union[Model, Document], resources: Resources, script_ with OutputDocumentFor(models): (docs_...
scikit-hep__uproot5-254
XRootD: The number of 'read ahead' elements requested in a readv call can exceed the server's limit Uproot 4.0.2rc1 I'm sorry that I can't provide a root file / xrd server to reproduce this. In https://github.com/scikit-hep/uproot4/blob/3e53f480475883397a3a4e2dea199cdc00fd6477/uproot/source/xrootd.py#L326-L341 ...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE\n\n\"\"\"\nThis module defines a physical layer for remote files, accessed via the XRootD protocol.\n\nDefines a :doc:`uproot.source.xrootd.XRootDResource` (``XRootD.File``) and two\nsources: :doc:`uproot.source.xr...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE\n\n\"\"\"\nThis module defines a physical layer for remote files, accessed via the XRootD protocol.\n\nDefines a :doc:`uproot.source.xrootd.XRootDResource` (``XRootD.File``) and two\nsources: :doc:`uproot.source.xr...
diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index fb2fb88cc..b84cfe8c7 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -11,10 +11,8 @@ jobs: strategy: matrix: platform: ["windows-latest", "macos-latest", "ubuntu-latest"] -...
imAsparky__django-cookiecutter-18
[DOCS]: Create cookiecutter Diataxis framework **Describe alternatives you've considered** Would you please share your clear and concise description of any alternative/similar documentation you've considered. **Additional context** Would you please share any other context or screenshots about the documentation...
[ { "content": "\"\"\"Django Cookiecutter Sphinx build configuration file.\"\"\"\n\n# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration...
[ { "content": "\"\"\"Django Cookiecutter Sphinx build configuration file.\"\"\"\n\n# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration...
diff --git a/.gitignore b/.gitignore index c2eabf4d..62b938bf 100644 --- a/.gitignore +++ b/.gitignore @@ -8,9 +8,32 @@ __pycache__/ *.py[cod] *$py.class +# OSX useful to ignore +*.DS_Store +.AppleDouble +.LSOverride + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 ...
pymodbus-dev__pymodbus-2103
Exception on read when no connection (self.transport is None). <!-- Before opening a new issue, make sure you do the following: - Check that your issue isn't already filed: https://github.com/pymodbus-dev/pymodbus/issues - Check the discussions forum https://github.com/pymodbus-dev/pymodbus/discussions - Prepare ...
[ { "content": "\"\"\"ModbusProtocol layer.\n\nContains pure transport methods needed to\n- connect/listen,\n- send/receive\n- close/abort connections\nfor unix socket, tcp, tls and serial communications as well as a special\nnull modem option.\n\nContains high level methods like reconnect.\n\nAll transport diffe...
[ { "content": "\"\"\"ModbusProtocol layer.\n\nContains pure transport methods needed to\n- connect/listen,\n- send/receive\n- close/abort connections\nfor unix socket, tcp, tls and serial communications as well as a special\nnull modem option.\n\nContains high level methods like reconnect.\n\nAll transport diffe...
diff --git a/pymodbus/transport/transport.py b/pymodbus/transport/transport.py index e643f0185..e3a4c0fb3 100644 --- a/pymodbus/transport/transport.py +++ b/pymodbus/transport/transport.py @@ -379,6 +379,9 @@ def send(self, data: bytes, addr: tuple | None = None) -> None: :param data: non-empty bytes object wi...
google__flax-2492
Improve documentation for `Dropout` and `rngs` argument in `linen.Module.apply()` Here is an example of `Dropout` in a model definition: https://github.com/google/flax/blob/d068512a932da3e05b822790a591bac391aeab36/examples/nlp_seq/models.py#L211 Here is the `apply()`, where `rngs` is passed in https://github.com...
[ { "content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/flax/linen/stochastic.py b/flax/linen/stochastic.py index 7b293ab5a..9364027b9 100644 --- a/flax/linen/stochastic.py +++ b/flax/linen/stochastic.py @@ -27,6 +27,11 @@ class Dropout(Module): """Create a dropout layer. + Note: When using :meth:`Module.apply() <flax.linen.Module.apply>`, make sure + ...
feast-dev__feast-2965
get_historical_features fails with dask error for file offline store ## Expected Behavior ``` feature_store.get_historical_features(df, features=fs_columns).to_df() ``` where `feature_store` is a feature store with file offline store and `fs_columns` is a list of column names, and `df` is a Pandas data frame, ...
[ { "content": "# Copyright 2020 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
[ { "content": "# Copyright 2020 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
diff --git a/sdk/python/feast/data_source.py b/sdk/python/feast/data_source.py index 6ab7934371b..a1e44b3186f 100644 --- a/sdk/python/feast/data_source.py +++ b/sdk/python/feast/data_source.py @@ -273,6 +273,13 @@ def __init__( ), DeprecationWarning, ) + if ( + ...
oppia__oppia-6463
Missing CSRF_TOKEN in a request raises 500 Internal Server Error. <!-- - Thanks for taking the time to report a bug in the Oppia project. - Before filing a new issue, please do a quick search to check that it hasn't - already been filed on the [issue tracker](https://github.com/oppia/oppia/issues)._ --> ...
[ { "content": "# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n...
[ { "content": "# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n...
diff --git a/core/controllers/base.py b/core/controllers/base.py index a15c101a524c6..cf7d1893a02f4 100755 --- a/core/controllers/base.py +++ b/core/controllers/base.py @@ -238,7 +238,7 @@ def dispatch(self): 'Registration session expired.') csrf_token = self.request.get('csrf_...
codespell-project__codespell-3294
Enable defining settings using comma-separated-values as lists This is a proposal for a minor update in defining some settings. Settings involving sequences of values (e.g. words to be ignored, files to be skipped) could be declared not as comma-separated strings, but as lists. The idea particularly regards `pypr...
[ { "content": "#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARR...
[ { "content": "#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARR...
diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index 777c645f91..4c33cd0813 100644 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py @@ -325,7 +325,11 @@ def _split_lines(self, text: str, width: int) -> List[str]: def _toml_to_parseconfig(toml_dict: Dict[str, Any]) -> Dict[s...
pytorch__rl-1218
[BUG] Misleading error message in `advantage_module.set_keys()` ## Describe the bug [`set_keys(value="new_value_key")`](https://github.com/pytorch/rl/blob/fa45472da29cc1d07b3ae57bdfe094207deeff13/torchrl/objectives/value/advantages.py#L218) expects the the `"new_value_key"` to be in the `out_keys` of `self.value_net...
[ { "content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\nimport abc\nimport functools\nimport warnings\nfrom dataclasses import asdict, dataclass\nfrom functools import wra...
[ { "content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\nimport abc\nimport functools\nimport warnings\nfrom dataclasses import asdict, dataclass\nfrom functools import wra...
diff --git a/test/test_cost.py b/test/test_cost.py index 5faca56e33d..12df5f3642b 100644 --- a/test/test_cost.py +++ b/test/test_cost.py @@ -6028,6 +6028,10 @@ def test_set_keys(self, value, adv, kwargs): module.set_keys(value=value) assert module.tensor_keys.value == value + with pytest.rais...
qutebrowser__qutebrowser-2246
When copying link location for mails, `mailto:` should be removed. In the crash dialog and on web pages.
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index b895c7db1ce..ece6ed89ecd 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -235,7 +235,10 @@ def yank(self, url, context): sel = (context.target == Target.yank_primary and utils.supports...
freqtrade__freqtrade-1975
Unable to create trade in USDT, FT does not see the available balance on binance ## Step 2: Describe your environment * Using Docker * Branch: Master * Last Commit ID: 07b4afedf77b86138389fae6fd37738efdbbe8b9 **## Problem:** Set trade stake CCY as USDT, have $27 of them on my balance, stake amount is ...
[ { "content": "\"\"\"\nThis module contains class to define a RPC communications\n\"\"\"\nimport logging\nfrom abc import abstractmethod\nfrom datetime import timedelta, datetime, date\nfrom decimal import Decimal\nfrom enum import Enum\nfrom typing import Dict, Any, List, Optional\n\nimport arrow\nimport sqlalc...
[ { "content": "\"\"\"\nThis module contains class to define a RPC communications\n\"\"\"\nimport logging\nfrom abc import abstractmethod\nfrom datetime import timedelta, datetime, date\nfrom decimal import Decimal\nfrom enum import Enum\nfrom typing import Dict, Any, List, Optional\n\nimport arrow\nimport sqlalc...
diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index 048ebec63d4..f5adffc65be 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -298,7 +298,10 @@ def _rpc_balance(self, fiat_display_currency: str) -> Dict: 'est_btc': est_btc, }) if total == 0.0: - ...
pytorch__vision-3939
Faster dataset indexing using ImageFolder and DatasetFolder ## 🚀 Feature We can speed up the indexing of larger datasets by two lines in the `make_dataset` method within https://github.com/pytorch/vision/blob/master/torchvision/datasets/folder.py. This is the original code: `4.78 s ± 51.1 ms per loop (mean ± std...
[ { "content": "from .vision import VisionDataset\n\nfrom PIL import Image\n\nimport os\nimport os.path\nfrom typing import Any, Callable, cast, Dict, List, Optional, Tuple\n\n\ndef has_file_allowed_extension(filename: str, extensions: Tuple[str, ...]) -> bool:\n \"\"\"Checks if a file is an allowed extension....
[ { "content": "from .vision import VisionDataset\n\nfrom PIL import Image\n\nimport os\nimport os.path\nfrom typing import Any, Callable, cast, Dict, List, Optional, Tuple\n\n\ndef has_file_allowed_extension(filename: str, extensions: Tuple[str, ...]) -> bool:\n \"\"\"Checks if a file is an allowed extension....
diff --git a/torchvision/datasets/folder.py b/torchvision/datasets/folder.py index 29255c7ab40..1280495273c 100644 --- a/torchvision/datasets/folder.py +++ b/torchvision/datasets/folder.py @@ -86,8 +86,8 @@ def is_valid_file(x: str) -> bool: continue for root, _, fnames in sorted(os.walk(target_di...
mkdocs__mkdocs-289
`mkdocs serve` doesn't recover from build errors For example, add a new page to the `pages` setting before you create the file, you then need to manually restart the serve command.
[ { "content": "# coding: utf-8\nfrom __future__ import print_function\n\nfrom watchdog import events\nfrom watchdog.observers.polling import PollingObserver\nfrom mkdocs.build import build\nfrom mkdocs.compat import httpserver, socketserver, urlunquote\nfrom mkdocs.config import load_config\nimport os\nimport po...
[ { "content": "# coding: utf-8\nfrom __future__ import print_function\n\nfrom watchdog import events\nfrom watchdog.observers.polling import PollingObserver\nfrom mkdocs.build import build\nfrom mkdocs.compat import httpserver, socketserver, urlunquote\nfrom mkdocs.config import load_config\nimport os\nimport po...
diff --git a/mkdocs/serve.py b/mkdocs/serve.py index 5898faa8ae..6220aa2522 100644 --- a/mkdocs/serve.py +++ b/mkdocs/serve.py @@ -34,8 +34,11 @@ class ConfigEventHandler(BuildEventHandler): Perform a rebuild when the config file changes. """ def on_any_event(self, event): - if os.path.basename(ev...
streamlink__streamlink-1302
TVCatchup plugin is not working - "This service is ending soon" ### Checklist - [x] This is a bug report. - [ ] This is a feature request. - [x] This is a plugin (improvement) request. - [ ] I have read the contribution guidelines. ### Description TVCatchup plugin is not working for some time. The problem i...
[ { "content": "import re\n\nfrom streamlink.plugin import Plugin\nfrom streamlink.plugin.api import http\nfrom streamlink.stream import HLSStream\n\nUSER_AGENT = \"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36\"\n_url_re = re.compile(r\"http://(?:www\\.)?tvc...
[ { "content": "import re\n\nfrom streamlink.plugin import Plugin\nfrom streamlink.plugin.api import http\nfrom streamlink.stream import HLSStream\n\nUSER_AGENT = \"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36\"\n_url_re = re.compile(r\"http://(?:www\\.)?tvc...
diff --git a/src/streamlink/plugins/tvcatchup.py b/src/streamlink/plugins/tvcatchup.py index 25018fdf16e..ca6a60d2b53 100644 --- a/src/streamlink/plugins/tvcatchup.py +++ b/src/streamlink/plugins/tvcatchup.py @@ -6,7 +6,7 @@ USER_AGENT = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41....
mozmeao__basket-375
SubHub Event Payload Updates The SubHub team will be adding a new field to two payloads that are being sent to Basket Event types: `customer.subscription.created` and `customer.recurring_charge` Property being passed: `next_invoice_date` (Needs to be converted from UNIX EPOCH to date (MM/DD/YYYY format)) SFDC ...
[ { "content": "import json\nimport logging\nfrom copy import deepcopy\nfrom datetime import datetime, timedelta\nfrom email.utils import formatdate\nfrom functools import wraps\nfrom hashlib import sha256\nfrom time import mktime, time\nfrom urllib.parse import urlencode\n\nfrom django.conf import settings\nfrom...
[ { "content": "import json\nimport logging\nfrom copy import deepcopy\nfrom datetime import datetime, timedelta\nfrom email.utils import formatdate\nfrom functools import wraps\nfrom hashlib import sha256\nfrom time import mktime, time\nfrom urllib.parse import urlencode\n\nfrom django.conf import settings\nfrom...
diff --git a/basket/news/tasks.py b/basket/news/tasks.py index 43315e8cc..74aee7a1a 100644 --- a/basket/news/tasks.py +++ b/basket/news/tasks.py @@ -805,6 +805,7 @@ def process_subhub_event_subscription_charge(data): 'Invoice_Number__c': data['invoice_number'], 'Last_4_Digits__c': data['last4'], ...
Cog-Creators__Red-DiscordBot-1981
[V3 ModLog] Error in command "case" # Command bugs #### Command name [p]case #### What cog is this command from? ModLog #### What were you expecting to happen? To show me information about a case. #### What actually happened? I get this error: ![image](https://user-images.githubusercontent.co...
[ { "content": "import discord\n\nfrom redbot.core import checks, modlog, commands\nfrom redbot.core.bot import Red\nfrom redbot.core.i18n import Translator, cog_i18n\nfrom redbot.core.utils.chat_formatting import box\n\n_ = Translator(\"ModLog\", __file__)\n\n\n@cog_i18n(_)\nclass ModLog:\n \"\"\"Log for mod ...
[ { "content": "import discord\n\nfrom redbot.core import checks, modlog, commands\nfrom redbot.core.bot import Red\nfrom redbot.core.i18n import Translator, cog_i18n\nfrom redbot.core.utils.chat_formatting import box\n\n_ = Translator(\"ModLog\", __file__)\n\n\n@cog_i18n(_)\nclass ModLog:\n \"\"\"Log for mod ...
diff --git a/redbot/cogs/modlog/modlog.py b/redbot/cogs/modlog/modlog.py index 34e72991d28..d4f8a030d14 100644 --- a/redbot/cogs/modlog/modlog.py +++ b/redbot/cogs/modlog/modlog.py @@ -95,7 +95,10 @@ async def case(self, ctx: commands.Context, number: int): await ctx.send(_("That case does not exist for th...
Chia-Network__chia-blockchain-13644
[Bug] 'chia wallet get_transactions' isn't working in git-main ### What happened? ```` $ chia wallet get_transactions Exception from 'wallet' 'str' object has no attribute 'name' ```` ### Version chia-blockchain-1.6.1b4.dev16 ### What platform are you using? Linux ### What ui mode are you using? CLI ### Rele...
[ { "content": "import sys\nfrom typing import Any, Dict, List, Optional, Tuple\n\nimport click\n\nfrom chia.cmds.plotnft import validate_fee\nfrom chia.wallet.transaction_sorting import SortKey\nfrom chia.wallet.util.address_type import AddressType\nfrom chia.wallet.util.wallet_types import WalletType\nfrom chia...
[ { "content": "import sys\nfrom typing import Any, Dict, List, Optional, Tuple\n\nimport click\n\nfrom chia.cmds.plotnft import validate_fee\nfrom chia.wallet.transaction_sorting import SortKey\nfrom chia.wallet.util.address_type import AddressType\nfrom chia.wallet.util.wallet_types import WalletType\nfrom chia...
diff --git a/chia/cmds/wallet.py b/chia/cmds/wallet.py index a34afa1bf4c4..038a690c6721 100644 --- a/chia/cmds/wallet.py +++ b/chia/cmds/wallet.py @@ -74,12 +74,14 @@ def get_transaction_cmd(wallet_rpc_port: Optional[int], fingerprint: int, id: in "--sort-by-height", "sort_key", flag_value=SortKey.CONFIR...
cloudtools__troposphere-1696
implement AWS::Synthetics changes from May 14, 2020 update
[ { "content": "# Copyright (c) 2020, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSObject, AWSProperty, Tags\nfrom .validators import (integer, boolean, canary_runtime_version)\n\n\nclass VPCConfig(AWSProperty):\n props = {\n 'SecurityGro...
[ { "content": "# Copyright (c) 2020, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSObject, AWSProperty, Tags\nfrom .validators import (integer, boolean, canary_runtime_version)\n\n\nclass VPCConfig(AWSProperty):\n props = {\n 'SecurityGro...
diff --git a/troposphere/synthetics.py b/troposphere/synthetics.py index 66c8521bb..abe202e76 100644 --- a/troposphere/synthetics.py +++ b/troposphere/synthetics.py @@ -47,7 +47,7 @@ class Canary(AWSObject): 'ExecutionRoleArn': (basestring, True), 'FailureRetentionPeriod': (integer, False), '...
Lightning-AI__pytorch-lightning-2786
Use of shell=True could lead to shell injection File: pytorch_lightning/trainer/training_io.py Line Number: 227-233 Relevant Code: ` # find job id job_id = os.environ['SLURM_JOB_ID'] cmd = 'scontrol requeue {}'.format(job_id) # requeue job log.info(...
[ { "content": "\"\"\"\nLightning can automate saving and loading checkpoints\n=====================================================\n\nCheckpointing is enabled by default to the current working directory.\nTo change the checkpoint path pass in::\n\n Trainer(default_root_dir='/your/path/to/save/checkpoints')\n...
[ { "content": "\"\"\"\nLightning can automate saving and loading checkpoints\n=====================================================\n\nCheckpointing is enabled by default to the current working directory.\nTo change the checkpoint path pass in::\n\n Trainer(default_root_dir='/your/path/to/save/checkpoints')\n...
diff --git a/pytorch_lightning/trainer/training_io.py b/pytorch_lightning/trainer/training_io.py index 381331fae2b09..90f36ecab59c3 100644 --- a/pytorch_lightning/trainer/training_io.py +++ b/pytorch_lightning/trainer/training_io.py @@ -226,11 +226,11 @@ def sig_handler(self, signum, frame): # pragma: no-cover ...
ivy-llc__ivy-17127
isnan adding isnan in paddle.tensor.tesnor.tesnor from issue #15115
[ { "content": "# local\r\nimport ivy\r\nimport ivy.functional.frontends.paddle as paddle_frontend\r\nfrom ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes\r\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\r\n\r\n\r\nclass Tensor:\r\n def __init__(self, array, dtyp...
[ { "content": "# local\r\nimport ivy\r\nimport ivy.functional.frontends.paddle as paddle_frontend\r\nfrom ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes\r\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\r\n\r\n\r\nclass Tensor:\r\n def __init__(self, array, dtyp...
diff --git a/ivy/functional/frontends/paddle/tensor/tensor.py b/ivy/functional/frontends/paddle/tensor/tensor.py index af2a57b98a985..2a31fe37fffc9 100644 --- a/ivy/functional/frontends/paddle/tensor/tensor.py +++ b/ivy/functional/frontends/paddle/tensor/tensor.py @@ -293,6 +293,13 @@ def bitwise_or(self, y, out=None, ...
zulip__zulip-29188
Add "View stream subscribers" page We should add a "View stream subscribers" page (below "Create a stream" under Streams & topics). It should document the right sidebar UI in #26717 (currently test-deployed on CZO), as well as how to see subscribers via settings.
[ { "content": "import re\nfrom typing import Any, Dict, List, Mapping, Optional\n\nimport markdown\nfrom markdown.extensions import Extension\nfrom markdown.preprocessors import Preprocessor\nfrom typing_extensions import override\n\nfrom zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES\n\nSTART_TABB...
[ { "content": "import re\nfrom typing import Any, Dict, List, Mapping, Optional\n\nimport markdown\nfrom markdown.extensions import Extension\nfrom markdown.preprocessors import Preprocessor\nfrom typing_extensions import override\n\nfrom zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES\n\nSTART_TABB...
diff --git a/help/add-or-remove-users-from-a-stream.md b/help/add-or-remove-users-from-a-stream.md index cefd29e8ccd7d..73a845d1e79ba 100644 --- a/help/add-or-remove-users-from-a-stream.md +++ b/help/add-or-remove-users-from-a-stream.md @@ -127,21 +127,9 @@ subscribe the user. 1. Click the **Unsubscribe** button in ...
RocketMap__RocketMap-1249
Heatmap not working with MySql version 5.7.13 <!-- ISSUES ARE NOT FOR SUPPORT!!! ISSUES ARE NOT FOR SUPPORT!!! ISSUES ARE NOT FOR SUPPORT!!! ISSUES ARE NOT FOR SUPPORT!!! ISSUES ARE NOT FOR SUPPORT!!! ISSUES ARE NOT FOR SUPPORT!!! ISSUES ARE NOT FOR SUPPORT!!! ISSUES ARE NOT FOR SUPPORT!!! Join di...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\nimport logging\nimport itertools\nimport calendar\nimport sys\nimport gc\nimport time\nimport geopy\nfrom peewee import SqliteDatabase, InsertQuery, \\\n IntegerField, CharField, DoubleField, BooleanField, \\\n DateTimeField, fn, DeleteQuery, Compo...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\nimport logging\nimport itertools\nimport calendar\nimport sys\nimport gc\nimport time\nimport geopy\nfrom peewee import SqliteDatabase, InsertQuery, \\\n IntegerField, CharField, DoubleField, BooleanField, \\\n DateTimeField, fn, DeleteQuery, Compo...
diff --git a/pogom/models.py b/pogom/models.py index 2e43bb5650..7e123d6466 100755 --- a/pogom/models.py +++ b/pogom/models.py @@ -214,7 +214,6 @@ def get_appearances(cls, pokemon_id, timediff): .where((Pokemon.pokemon_id == pokemon_id) & (Pokemon.disappear_time > timediff) ...
python-discord__bot-483
The `unload` method fails for watchchannels if the consume task hasn't started yet The `unload_cog` method of the `WatchChannel` ABC has a small bug in it. If you try to reload or unload the cog while the message consumption task has not yet started, it will fail because the `bot._consume_task` attribute will still be ...
[ { "content": "import asyncio\nimport logging\nimport re\nimport textwrap\nfrom abc import abstractmethod\nfrom collections import defaultdict, deque\nfrom dataclasses import dataclass\nfrom typing import Optional\n\nimport dateutil.parser\nimport discord\nfrom discord import Color, Embed, HTTPException, Message...
[ { "content": "import asyncio\nimport logging\nimport re\nimport textwrap\nfrom abc import abstractmethod\nfrom collections import defaultdict, deque\nfrom dataclasses import dataclass\nfrom typing import Optional\n\nimport dateutil.parser\nimport discord\nfrom discord import Color, Embed, HTTPException, Message...
diff --git a/bot/cogs/watchchannels/watchchannel.py b/bot/cogs/watchchannels/watchchannel.py index ce8014d697..760e012ebc 100644 --- a/bot/cogs/watchchannels/watchchannel.py +++ b/bot/cogs/watchchannels/watchchannel.py @@ -335,7 +335,7 @@ def _remove_user(self, user_id: int) -> None: def cog_unload(self) -> None: ...
flask-admin__flask-admin-1650
Add support for CITEXT type in column filters Adding `'citext'` to the following line in /flask_admin/contrib/sqla/filters.py should work https://github.com/flask-admin/flask-admin/blob/38e5b8057cb1acce805b6f6bfa923897371588cc/flask_admin/contrib/sqla/filters.py#L374
[ { "content": "from flask_admin.babel import lazy_gettext\nfrom flask_admin.model import filters\nfrom flask_admin.contrib.sqla import tools\nfrom sqlalchemy.sql import not_, or_\n\n\nclass BaseSQLAFilter(filters.BaseFilter):\n \"\"\"\n Base SQLAlchemy filter.\n \"\"\"\n def __init__(self, column...
[ { "content": "from flask_admin.babel import lazy_gettext\nfrom flask_admin.model import filters\nfrom flask_admin.contrib.sqla import tools\nfrom sqlalchemy.sql import not_, or_\n\n\nclass BaseSQLAFilter(filters.BaseFilter):\n \"\"\"\n Base SQLAlchemy filter.\n \"\"\"\n def __init__(self, column...
diff --git a/flask_admin/contrib/sqla/filters.py b/flask_admin/contrib/sqla/filters.py index 3fc052cc0..8e3f550f1 100644 --- a/flask_admin/contrib/sqla/filters.py +++ b/flask_admin/contrib/sqla/filters.py @@ -373,7 +373,7 @@ def convert(self, type_name, column, name, **kwargs): @filters.convert('string', 'char',...
codespell-project__codespell-1533
Inconsistent handling of hidden files If codespell is run on a directory, the contents of hidden files are checked: ``` $ codespell --version 1.18.dev0 $ codespell ./foo ./foo/.bar:1: abandonned ==> abandoned ``` but if codespell is pointed directly at a hidden file, it's ignored unless the `--check-hidden` opti...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful...
diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index de7882fcd3..e90c3f84cb 100755 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py @@ -714,6 +714,9 @@ def main(*args): del dirs[:] continue for file_ in files: + ...
statsmodels__statsmodels-5850
Autoregressive model fails for trivial input signal I am trying to start using the AR models in statsmodels. However, it fails for a trivial starting signal consisting only of ones: ``` from statsmodels.tsa.ar_model import AR import numpy as np signal = np.ones(20) ar_mod = AR(signal) ar_res = ar_mod.fit(4) ar_res.p...
[ { "content": "\nfrom statsmodels.compat.python import range, lrange, lzip, long, PY3\nfrom statsmodels.compat.numpy import recarray_select\n\nimport numpy as np\nimport numpy.lib.recfunctions as nprf\nimport pandas as pd\nfrom pandas import DataFrame\nfrom pandas.tseries import offsets\nfrom pandas.tseries.freq...
[ { "content": "\nfrom statsmodels.compat.python import range, lrange, lzip, long, PY3\nfrom statsmodels.compat.numpy import recarray_select\n\nimport numpy as np\nimport numpy.lib.recfunctions as nprf\nimport pandas as pd\nfrom pandas import DataFrame\nfrom pandas.tseries import offsets\nfrom pandas.tseries.freq...
diff --git a/statsmodels/tsa/tests/test_ar.py b/statsmodels/tsa/tests/test_ar.py index 86538cdcee3..c68d252079e 100644 --- a/statsmodels/tsa/tests/test_ar.py +++ b/statsmodels/tsa/tests/test_ar.py @@ -351,7 +351,7 @@ def test_constant_column_trend(): # Fitting with a constant and maxlag=7 raises because of regre...
conda__conda-6847
Conda(py2) Installation to a path (ascii characters only) with non-ascii characters in username Create a user with non-ascii characters in name. And try to install Miniconda2 to a path with only ascii characters ``` C:\Users\AndrésGarcía\Downloads>start /wait "" Miniconda2-4.3.30.2-Windows-x86_64.exe /InstallationT...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom functools import reduce\nfrom logging import getLogger\nimport os\nfrom os.path import abspath, basename, expanduser, expandvars, join, normpath, split, splitext\nimport re\nimport s...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom functools import reduce\nfrom logging import getLogger\nimport os\nfrom os.path import abspath, basename, expanduser, expandvars, join, normpath, split, splitext\nimport re\nimport s...
diff --git a/conda/common/path.py b/conda/common/path.py index 044e94516c8..827a64f3a8e 100644 --- a/conda/common/path.py +++ b/conda/common/path.py @@ -8,7 +8,7 @@ import re import subprocess -from .compat import on_win, string_types +from .compat import PY2, ensure_fs_path_encoding, on_win, string_types from .. ...
CTFd__CTFd-1934
Error 500 when visiting /admin/users/1 - AttributeError: 'NoneType' object has no attribute 'get_score' **Environment**: - CTFd Version/Commit: HEAD - Operating System: Docker image based off official Dockerfile - Web Browser and Version: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML,...
[ { "content": "from flask import render_template, request, url_for\nfrom sqlalchemy.sql import not_\n\nfrom CTFd.admin import admin\nfrom CTFd.models import Challenges, Tracking, Users\nfrom CTFd.utils import get_config\nfrom CTFd.utils.decorators import admins_only\nfrom CTFd.utils.modes import TEAMS_MODE\n\n\n...
[ { "content": "from flask import render_template, request, url_for\nfrom sqlalchemy.sql import not_\n\nfrom CTFd.admin import admin\nfrom CTFd.models import Challenges, Tracking, Users\nfrom CTFd.utils import get_config\nfrom CTFd.utils.decorators import admins_only\nfrom CTFd.utils.modes import TEAMS_MODE\n\n\n...
diff --git a/CTFd/admin/users.py b/CTFd/admin/users.py index f2a0c484d..e7af7fc49 100644 --- a/CTFd/admin/users.py +++ b/CTFd/admin/users.py @@ -87,9 +87,14 @@ def users_detail(user_id): # Get Awards awards = user.get_awards(admin=True) - # Get user properties - score = user.account.get_score(admin=Tr...
bokeh__bokeh-9776
[BUG] Always setting asyncio event loop policy Currently, for Python 3.8+ on Windows we're always setting the event loop policy to ensure that the policy used is compatible with tornado (xref https://github.com/tornadoweb/tornado/issues/2608): https://github.com/bokeh/bokeh/blob/dea6ca42135c0402fa4f24fa502b58fce288e...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
diff --git a/bokeh/server/tornado.py b/bokeh/server/tornado.py index 0fb31599054..d5faaa026e1 100644 --- a/bokeh/server/tornado.py +++ b/bokeh/server/tornado.py @@ -689,4 +689,7 @@ def _keep_alive(self): # See https://github.com/bokeh/bokeh/issues/9507 if sys.platform == 'win32' and sys.version_info[:3] >= (3, 8, 0):...
googleapis__google-api-python-client-1574
json.decoder.JSONDecodeError on csv (res) content #### Environment details - OS type and version: macOS 10.15.7 (19H1419) - Python version: 3.8.5 - pipenv version: 2020.8.13 - pip version: 20.2.3 - `google-api-python-client` version: 2.26.1 #### Steps to reproduce Trying to use `generateCSV` ap...
[ { "content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
[ { "content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
diff --git a/googleapiclient/model.py b/googleapiclient/model.py index b853a4f682e..b023db4dd2d 100644 --- a/googleapiclient/model.py +++ b/googleapiclient/model.py @@ -277,9 +277,13 @@ def deserialize(self, content): content = content.decode("utf-8") except AttributeError: pass - ...
readthedocs__readthedocs.org-5404
Don't allow to create subprojects with same alias Currently we can create several subprojects with the same alias, when serving the docs from https://github.com/rtfd/readthedocs.org/blob/bdb4aa5da5b5b5fb45244176c2bee58fb5442414/readthedocs/core/views/serve.py#L71-L74 It gives a 500 error.
[ { "content": "\"\"\"Project forms.\"\"\"\nfrom random import choice\nfrom re import fullmatch\nfrom urllib.parse import urlparse\n\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Fieldset, Layout, HTML, Submit\nfrom django import forms\nfrom django.conf import settings\nfrom django....
[ { "content": "\"\"\"Project forms.\"\"\"\nfrom random import choice\nfrom re import fullmatch\nfrom urllib.parse import urlparse\n\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Fieldset, Layout, HTML, Submit\nfrom django import forms\nfrom django.conf import settings\nfrom django....
diff --git a/readthedocs/projects/forms.py b/readthedocs/projects/forms.py index d8e3e9d326e..c30cbbb6c53 100644 --- a/readthedocs/projects/forms.py +++ b/readthedocs/projects/forms.py @@ -378,6 +378,17 @@ def clean_child(self): ) return child + def clean_alias(self): + alias = self.cl...
pallets__click-1942
Bash version detection fails with certain locales I have a machine where the system locale is set to `de_DE.UTF-8`. The output of `bash --version` here is: ~~~ GNU bash, Version 5.1.4(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2020 Free Software Foundation, Inc. Lizenz GPLv3+: GNU GPL Version 3 oder jünger <htt...
[ { "content": "import os\nimport re\nimport typing as t\nfrom gettext import gettext as _\n\nfrom .core import Argument\nfrom .core import BaseCommand\nfrom .core import Context\nfrom .core import MultiCommand\nfrom .core import Option\nfrom .core import Parameter\nfrom .core import ParameterSource\nfrom .parser...
[ { "content": "import os\nimport re\nimport typing as t\nfrom gettext import gettext as _\n\nfrom .core import Argument\nfrom .core import BaseCommand\nfrom .core import Context\nfrom .core import MultiCommand\nfrom .core import Option\nfrom .core import Parameter\nfrom .core import ParameterSource\nfrom .parser...
diff --git a/CHANGES.rst b/CHANGES.rst index a2126f414..4a75360d2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,7 @@ Unreleased - ``is_bool_flag`` is not set to ``True`` if ``is_flag`` is ``False``. :issue:`1925` +- Bash version detection is locale independent. :issue:`1940` Version 8.0.1 diff ...
plotly__dash-808
Defer `pytest` import? Looks like `pytest` isn't the safest dependency, causing issues with scikit-learn: https://community.plot.ly/t/pytest-transient-dependency/25383 Could we move the `import pytest` into the testing module/class/function itself and not require it upon install? We could even have a separate instal...
[ { "content": "import io\nfrom setuptools import setup, find_packages\n\nmain_ns = {}\nexec(open(\"dash/version.py\").read(), main_ns) # pylint: disable=exec-used\n\n\ndef read_req_file(req_type):\n with open(\"requires-{}.txt\".format(req_type)) as fp:\n requires = (line.strip() for line in fp)\n ...
[ { "content": "import io\nfrom setuptools import setup, find_packages\n\nmain_ns = {}\nexec(open(\"dash/version.py\").read(), main_ns) # pylint: disable=exec-used\n\n\ndef read_req_file(req_type):\n with open(\"requires-{}.txt\".format(req_type)) as fp:\n requires = (line.strip() for line in fp)\n ...
diff --git a/.circleci/config.yml b/.circleci/config.yml index 0176d65cfe..e9f625b012 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,16 +25,16 @@ jobs: echo $CIRCLE_JOB > circlejob.txt - restore_cache: - key: v-{{ checksum "circlejob.txt" }}-{{ checksum "requires-ci.t...
buildbot__buildbot-3343
canStartBuild example (RemoteCommand) does not work `RemoteCommand` implementation has changed and `canStartBuild` [example](http://docs.buildbot.net/0.9.8/manual/customization.html#canstartbuild-functions) stopped working because `self.step is None` in [here](https://github.com/buildbot/buildbot/blob/a5237a9cc02740e4...
[ { "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/process/remotecommand.py b/master/buildbot/process/remotecommand.py index 035608223744..b63e91481031 100644 --- a/master/buildbot/process/remotecommand.py +++ b/master/buildbot/process/remotecommand.py @@ -275,7 +275,10 @@ def addToLog(self, logname, data): @defer.inlineCallbacks ...
Kinto__kinto-1907
Remove regex deprecation warnings When running `make tests` on master (8efa5ad190) I see those warnings: (not much information about line) @glasserc I remember you found some in #1758 ``` <unknown>:1 <unknown>:1: DeprecationWarning: invalid escape sequence \] <unknown>:1: DeprecationWarning: invalid escape...
[ { "content": "import logging\nimport re\nimport functools\nfrom uuid import uuid4\n\nimport colander\nimport venusian\n\nfrom pyramid import exceptions as pyramid_exceptions\nfrom pyramid.decorator import reify\nfrom pyramid.security import Everyone\nfrom pyramid.httpexceptions import (\n HTTPNotModified,\n ...
[ { "content": "import logging\nimport re\nimport functools\nfrom uuid import uuid4\n\nimport colander\nimport venusian\n\nfrom pyramid import exceptions as pyramid_exceptions\nfrom pyramid.decorator import reify\nfrom pyramid.security import Everyone\nfrom pyramid.httpexceptions import (\n HTTPNotModified,\n ...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b363b87b7..937f4e135 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -14,6 +14,7 @@ This document describes changes between each past release. - Use f-string instead of % or format operators. (#1886) - Ignore admin plugin node_modules folder while running black (#1...
mozmeao__snippets-service-889
Return empty json for empty bundles in ASR Return empty json for empty bundles in ASR. Unclear whether ASR can handle 204 responses so let's default to empty json. See also https://bugzilla.mozilla.org/show_bug.cgi?id=1511640 History: - https://github.com/mozmeao/snippets-service/commit/4936f2371e341690def9be4...
[ { "content": "import json\nimport logging\n\nfrom distutils.util import strtobool\n\nfrom django.conf import settings\nfrom django.contrib.auth.decorators import permission_required\nfrom django.core.exceptions import ValidationError\nfrom django.http import Http404, HttpResponse, HttpResponseBadRequest, HttpRe...
[ { "content": "import json\nimport logging\n\nfrom distutils.util import strtobool\n\nfrom django.conf import settings\nfrom django.contrib.auth.decorators import permission_required\nfrom django.core.exceptions import ValidationError\nfrom django.http import Http404, HttpResponse, HttpResponseBadRequest, HttpRe...
diff --git a/snippets/base/tests/test_views.py b/snippets/base/tests/test_views.py index 5e724d4fd..51256c254 100644 --- a/snippets/base/tests/test_views.py +++ b/snippets/base/tests/test_views.py @@ -188,6 +188,18 @@ def setUp(self): ('distribution', 'default'), ('distribution_version', 'defa...
wemake-services__wemake-python-styleguide-941
WPS324 false-positive with nested functions # Bug report <!-- Hi, thanks for submitting a bug. We appreciate that. But, we will need some information about what's wrong to help you. --> ## What's wrong This code produces false positive `WPS324`: ```python def test(): def decorator(): ret...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport ast\nfrom collections import defaultdict\nfrom contextlib import suppress\nfrom typing import ClassVar, Dict, List, Tuple, Type, Union\n\nfrom typing_extensions import final\n\nfrom wemake_python_styleguide.compat.aliases import FunctionNodes\nfrom wemake_python_s...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport ast\nfrom collections import defaultdict\nfrom contextlib import suppress\nfrom typing import ClassVar, Dict, List, Tuple, Type, Union\n\nfrom typing_extensions import final\n\nfrom wemake_python_styleguide.compat.aliases import FunctionNodes\nfrom wemake_python_s...
diff --git a/CHANGELOG.md b/CHANGELOG.md index cbaf42e29..53ddc406f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ We used to have incremental versioning before `0.1.0`. - Fixes addition of `MisrefactoredAssignmentViolation` check - Fixes `WrongMagicCommentViolation` not catching certain wrong comment...
wemake-services__wemake-python-styleguide-2201
We use `wemake_python_styleguide.options.defaults.FORBIDDEN_NOQA` when we should use `wemake_python_styleguide.options.defaults.FORBIDDEN_INLINE_IGNORE` ### What's wrong Our docs is wrong, we need to update `wemake_python_styleguide/options/config.py` The incorrect default is in `forbidden-inline-ignore` option
[ { "content": "\"\"\"\nProvides configuration options for ``wemake-python-styleguide``.\n\nWe do not like our linter to be highly configurable.\nSince, people may take the wrong path or make wrong decisions.\nWe try to make all defaults as reasonable as possible.\n\nHowever, you can currently adjust some complex...
[ { "content": "\"\"\"\nProvides configuration options for ``wemake-python-styleguide``.\n\nWe do not like our linter to be highly configurable.\nSince, people may take the wrong path or make wrong decisions.\nWe try to make all defaults as reasonable as possible.\n\nHowever, you can currently adjust some complex...
diff --git a/wemake_python_styleguide/options/config.py b/wemake_python_styleguide/options/config.py index 99deb5e9f..a6fc7c826 100644 --- a/wemake_python_styleguide/options/config.py +++ b/wemake_python_styleguide/options/config.py @@ -58,7 +58,7 @@ :str:`wemake_python_styleguide.options.defaults.FORBIDDEN_DOMAIN...
cocotb__cocotb-2841
factory ise when changing form 1.5.2 to 1.6.1 Hi I have just updated from 1.5.2 to 1.6.1 and Im getting a error from my run_test. I generate my tests using the TestFactory, this passes in the name of a function into the data_in input on run_test. But when I do `for transaction in data_in():` I get the error TypeError...
[ { "content": "# Copyright (c) 2013, 2018 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistribut...
[ { "content": "# Copyright (c) 2013, 2018 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistribut...
diff --git a/cocotb/regression.py b/cocotb/regression.py index ba098525c7..1ccd97bc7a 100644 --- a/cocotb/regression.py +++ b/cocotb/regression.py @@ -35,7 +35,6 @@ import traceback import pdb from typing import Any, Optional, Tuple, Iterable -from functools import wraps import cocotb import cocotb.ANSI as ANSI ...
pandas-dev__pandas-8238
BUG: rolling_window yields unexpected results with win_type='triang' Here's the example in the documentation, modified to have non-zero mean: ``` n = 100 ser = pandas.Series(randn(n)+10, index=pandas.date_range('1/1/2000', periods=n)) pandas.rolling_window(ser, 5, 'triang').plot() pandas.rolling_window(ser, 5, 'boxcar...
[ { "content": "import os\nimport platform\nimport sys\nimport struct\nimport subprocess\nimport codecs\n\n\ndef get_sys_info():\n \"Returns system information as a dict\"\n\n blob = []\n\n # get full commit hash\n commit = None\n if os.path.isdir(\".git\") and os.path.isdir(\"pandas\"):\n t...
[ { "content": "import os\nimport platform\nimport sys\nimport struct\nimport subprocess\nimport codecs\n\n\ndef get_sys_info():\n \"Returns system information as a dict\"\n\n blob = []\n\n # get full commit hash\n commit = None\n if os.path.isdir(\".git\") and os.path.isdir(\"pandas\"):\n t...
diff --git a/doc/source/computation.rst b/doc/source/computation.rst index b8559eb51ece8..56dc551268a37 100644 --- a/doc/source/computation.rst +++ b/doc/source/computation.rst @@ -310,7 +310,7 @@ keyword. The list of recognized types are: rolling_window(ser, 5, 'triang') -Note that the ``boxcar`` window is equ...
psychopy__psychopy-5012
Transcription not working with built-in engine I am trying ot launch the stroopVoice Demo, using the built-in engine for the transcription of the audio. However, I get the following error: ``` Generating PsychoPy script... ## Running: /Applications/PsychoPy.app/Contents/Resources/PsychoPy3 Demos/Experiments/stro...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"Classes and functions for transcribing speech in audio data to text.\n\"\"\"\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2022 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"Classes and functions for transcribing speech in audio data to text.\n\"\"\"\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2022 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General ...
diff --git a/psychopy/sound/transcribe.py b/psychopy/sound/transcribe.py index e8f68bedee..f80ac7651b 100644 --- a/psychopy/sound/transcribe.py +++ b/psychopy/sound/transcribe.py @@ -502,7 +502,8 @@ def recognizeSphinx(audioClip=None, language='en-US', expectedWords=None, config['language'] = language # sphinx us...
OctoPrint__OctoPrint-3054
Software update fails on Debian testing/unstable Tested with Octoprint 1.3.10 Right now, the software update will not work in Debian testing and unstable. The problem here is that Debian decided to name its python version `2.7.15+` (yes the '+' is part of the version string returned by `python --version`. Octoprint'...
[ { "content": "# coding=utf-8\n\"\"\"\nThis module provides a bunch of utility methods and helpers for version handling.\n\"\"\"\nfrom __future__ import absolute_import, division, print_function\n\n__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'\n\nimport pkg_resources\nim...
[ { "content": "# coding=utf-8\n\"\"\"\nThis module provides a bunch of utility methods and helpers for version handling.\n\"\"\"\nfrom __future__ import absolute_import, division, print_function\n\n__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'\n\nimport pkg_resources\nim...
diff --git a/src/octoprint/util/version.py b/src/octoprint/util/version.py index 4f09dbd49e..77e6ba2e3c 100644 --- a/src/octoprint/util/version.py +++ b/src/octoprint/util/version.py @@ -121,6 +121,10 @@ def get_comparable_version(version_string, base=False): if "-" in version_string: version_string = version_stri...
alltheplaces__alltheplaces-3339
Spider jbhifi is broken During the global build at 2021-06-16-14-42-20, spider **jbhifi** failed with **78 features** and **1 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-06-16-14-42-20/logs/jbhifi.txt) and [the output](https://data.alltheplaces.xyz/runs/2021-06-16-14-42-20/output/jbhifi.geojson)...
[ { "content": "# -*- coding: utf-8 -*-\nimport scrapy\nimport json\nfrom locations.items import GeojsonPointItem\nfrom locations.hours import OpeningHours\n\nDAYS = ['Su', 'Mo', 'Tu', \"We\", 'Th', 'Fr', 'Sa']\n\nclass JbHifiSpider(scrapy.Spider):\n name = \"jbhifi\"\n allowed_domains = [\"algolia.net\"]\n...
[ { "content": "# -*- coding: utf-8 -*-\nimport scrapy\nimport json\nfrom locations.items import GeojsonPointItem\nfrom locations.hours import OpeningHours\n\nDAYS = ['Su', 'Mo', 'Tu', \"We\", 'Th', 'Fr', 'Sa']\n\nclass JbHifiSpider(scrapy.Spider):\n name = \"jbhifi\"\n allowed_domains = [\"algolia.net\"]\n...
diff --git a/locations/spiders/jbhifi.py b/locations/spiders/jbhifi.py index d0e4542e956..0d0d2fff9d6 100644 --- a/locations/spiders/jbhifi.py +++ b/locations/spiders/jbhifi.py @@ -28,7 +28,8 @@ def start_requests(self): def process_trading_hours(self, store_hours): opening_hours = OpeningHours() ...
aio-libs__aiohttp-4120
Fix connection info in ClientConnectorError client exception The message like `Cannot connect to host www.google.com:443 ssl:None` is misleading. `ssl:None` means 'default', not 'disabled' `Cannot connect to host www.google.com:443 ssl:[default]` looks much better
[ { "content": "\"\"\"HTTP related errors.\"\"\"\n\nimport asyncio\nfrom typing import TYPE_CHECKING, Any, Optional, Tuple, Union\n\nfrom .typedefs import _CIMultiDict\n\ntry:\n import ssl\n SSLContext = ssl.SSLContext\nexcept ImportError: # pragma: no cover\n ssl = SSLContext = None # type: ignore\n\n...
[ { "content": "\"\"\"HTTP related errors.\"\"\"\n\nimport asyncio\nfrom typing import TYPE_CHECKING, Any, Optional, Tuple, Union\n\nfrom .typedefs import _CIMultiDict\n\ntry:\n import ssl\n SSLContext = ssl.SSLContext\nexcept ImportError: # pragma: no cover\n ssl = SSLContext = None # type: ignore\n\n...
diff --git a/CHANGES/4097.bugfix b/CHANGES/4097.bugfix new file mode 100644 index 00000000000..af521a4e6fa --- /dev/null +++ b/CHANGES/4097.bugfix @@ -0,0 +1 @@ +Fix misleading message in the string representation of `ClientConnectorError`; `self.ssl == None` means certification checks relaxed, not SSL disabled diff --...
googleapis__google-cloud-python-8718
Firestore: client.collections() raising exception on list expansion ``` Python 3.7.2 (default, Mar 7 2019, 12:37:36) [Clang 10.0.0 (clang-1000.10.44.4)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from google.cloud import firestore >>> client = firestore.Client() >>> coll...
[ { "content": "# Copyright 2017 Google LLC All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ...
[ { "content": "# Copyright 2017 Google LLC All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ...
diff --git a/firestore/google/cloud/firestore_v1/client.py b/firestore/google/cloud/firestore_v1/client.py index 56356d97911b..54e2585bed3a 100644 --- a/firestore/google/cloud/firestore_v1/client.py +++ b/firestore/google/cloud/firestore_v1/client.py @@ -421,7 +421,7 @@ def collections(self): iterator ...
secdev__scapy-4349
Incorrect RTCP SR + RR parsing ### Brief description The RTCP parser fails to handle a packet that contains both Sender Report and Received Report, which is is the most common data for a two-way session. It seems that the "sender_info" info contain a payload, this should be parsed as a ReceptionReport info Incor...
[ { "content": "# SPDX-License-Identifier: GPL-2.0-only\n# This file is part of Scapy\n# See https://scapy.net/ for more information\n# Copyright (C) Pavel Oborin <oborin.p@gmail.com>\n\n# RFC 3550\n# scapy.contrib.description = Real-Time Transport Control Protocol\n# scapy.contrib.status = loads\n\n\"\"\"\nRTCP ...
[ { "content": "# SPDX-License-Identifier: GPL-2.0-only\n# This file is part of Scapy\n# See https://scapy.net/ for more information\n# Copyright (C) Pavel Oborin <oborin.p@gmail.com>\n\n# RFC 3550\n# scapy.contrib.description = Real-Time Transport Control Protocol\n# scapy.contrib.status = loads\n\n\"\"\"\nRTCP ...
diff --git a/scapy/contrib/rtcp.py b/scapy/contrib/rtcp.py index fbf039432ad..a41673870dd 100644 --- a/scapy/contrib/rtcp.py +++ b/scapy/contrib/rtcp.py @@ -51,6 +51,9 @@ class SenderInfo(Packet): IntField('sender_octet_count', None) ] + def extract_padding(self, p): + return "", p + class ...
pennersr__django-allauth-3785
Headless `SessionView` for `APP` client creates an unnecessary session In an `APP` context, when the client invokes DELETE on `SessionView`, a new empty and useless session is created in the session store and an associated session token is present in the response. Because this new session is empty, it can't be used to ...
[ { "content": "from importlib import import_module\n\nfrom django.conf import settings\n\nfrom allauth.headless import app_settings\nfrom allauth.headless.constants import Client\n\n\ndef session_store(session_key=None):\n engine = import_module(settings.SESSION_ENGINE)\n return engine.SessionStore(session...
[ { "content": "from importlib import import_module\n\nfrom django.conf import settings\n\nfrom allauth.headless import app_settings\nfrom allauth.headless.constants import Client\n\n\ndef session_store(session_key=None):\n engine = import_module(settings.SESSION_ENGINE)\n return engine.SessionStore(session...
diff --git a/allauth/headless/account/tests/test_session.py b/allauth/headless/account/tests/test_session.py index 39494d22b7..923ecd00b3 100644 --- a/allauth/headless/account/tests/test_session.py +++ b/allauth/headless/account/tests/test_session.py @@ -21,4 +21,13 @@ def test_logout(auth_client, headless_reverse): ...
cowrie__cowrie-1685
HPFeeds3 UnicodeDecodeError in ttylog.read().encode().hex() **Describe the bug** Stack Trace from the cowrie version v2.3.0, as already described in #1307 ``` cowrie | 2022-01-23T14:52:17+0000 [twisted.logger._observer#critical] Temporarily disabling observer LegacyLogObserverWrapper(<bound method Outpu...
[ { "content": "\"\"\"\nOutput plugin for HPFeeds\n\"\"\"\n\nfrom __future__ import annotations\n\nimport json\nimport logging\n\nfrom hpfeeds.twisted import ClientSessionService\n\nfrom twisted.internet import endpoints, ssl\nfrom twisted.internet import reactor # type: ignore\nfrom twisted.python import log\n\...
[ { "content": "\"\"\"\nOutput plugin for HPFeeds\n\"\"\"\n\nfrom __future__ import annotations\n\nimport json\nimport logging\n\nfrom hpfeeds.twisted import ClientSessionService\n\nfrom twisted.internet import endpoints, ssl\nfrom twisted.internet import reactor # type: ignore\nfrom twisted.python import log\n\...
diff --git a/src/cowrie/output/hpfeeds3.py b/src/cowrie/output/hpfeeds3.py index db092d6a87..7dd21b617c 100644 --- a/src/cowrie/output/hpfeeds3.py +++ b/src/cowrie/output/hpfeeds3.py @@ -106,8 +106,8 @@ def write(self, entry): elif entry["eventid"] == "cowrie.log.closed": # entry["ttylog"] - ...
nipy__nipype-2096
interfaces.camino.convert.FSL2Scheme does not show up in documentation Diagram on front page of docs contains a typo "Idiosynchratic" should be "Idiosyncratic"
[ { "content": "#!/usr/bin/env python\n# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n\"\"\"Script to auto-generate interface docs.\n\"\"\"\nfrom __future__ import print_function, unicode_literals\n# stdlib imports\nimport os\nimport sys\n\n# **...
[ { "content": "#!/usr/bin/env python\n# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n\"\"\"Script to auto-generate interface docs.\n\"\"\"\nfrom __future__ import print_function, unicode_literals\n# stdlib imports\nimport os\nimport sys\n\n# **...
diff --git a/doc/images/nipype_architecture_overview2.png b/doc/images/nipype_architecture_overview2.png index b89ace5c57..51bad491bd 100644 Binary files a/doc/images/nipype_architecture_overview2.png and b/doc/images/nipype_architecture_overview2.png differ diff --git a/doc/images/nipype_architecture_overview2.svg b/d...
Mailu__Mailu-2275
master can't receive mail – "AUTH not supported" ## Before you open your issue - [X] Check if no issue or pull-request for this already exists. - [X] Check [documentation](https://mailu.io/master/) and [FAQ](https://mailu.io/master/faq.html). (Tip, use the search function on the documentation page) - [X] You underst...
[ { "content": "from mailu import models, utils\nfrom mailu.internal import internal, nginx\nfrom flask import current_app as app\n\nimport flask\nimport flask_login\nimport base64\n\n@internal.route(\"/auth/email\")\ndef nginx_authentication():\n \"\"\" Main authentication endpoint for Nginx email server\n ...
[ { "content": "from mailu import models, utils\nfrom mailu.internal import internal, nginx\nfrom flask import current_app as app\n\nimport flask\nimport flask_login\nimport base64\n\n@internal.route(\"/auth/email\")\ndef nginx_authentication():\n \"\"\" Main authentication endpoint for Nginx email server\n ...
diff --git a/core/admin/mailu/internal/views/auth.py b/core/admin/mailu/internal/views/auth.py index f95e7c897..ab2598649 100644 --- a/core/admin/mailu/internal/views/auth.py +++ b/core/admin/mailu/internal/views/auth.py @@ -12,7 +12,7 @@ def nginx_authentication(): """ client_ip = flask.request.headers["Clie...
unionai-oss__pandera-1627
Nullability for `pl.Float64` in `pl.DataFrame` fails **Describe the bug** The nullability constraint is not enforced in `pl.DataFrame` when the underlying data type is `pl.Float64`. When I provide a `pl.DataFrame` with a float column that contains `None`, it passes. - [x] I have checked that this issue has not alre...
[ { "content": "\"\"\"Validation backend for polars components.\"\"\"\n\nimport warnings\nfrom typing import Any, Callable, Iterable, List, Optional, cast\n\nimport polars as pl\n\nfrom pandera.api.base.error_handler import ErrorHandler\nfrom pandera.api.polars.components import Column\nfrom pandera.api.polars.ty...
[ { "content": "\"\"\"Validation backend for polars components.\"\"\"\n\nimport warnings\nfrom typing import Any, Callable, Iterable, List, Optional, cast\n\nimport polars as pl\n\nfrom pandera.api.base.error_handler import ErrorHandler\nfrom pandera.api.polars.components import Column\nfrom pandera.api.polars.ty...
diff --git a/pandera/backends/polars/components.py b/pandera/backends/polars/components.py index 69c846e4f..180273b4d 100644 --- a/pandera/backends/polars/components.py +++ b/pandera/backends/polars/components.py @@ -207,10 +207,9 @@ def check_nullable( ) ] + expr = pl.col(schema....
plotly__dash-548
raising PreventUpdate should not print to stderr, and PreventUpdate should not inherit Exception Hi, I think the default implementation should not print to `stderr` when `PreventUpdate` is raised. This is a minor point, because the following is a work-around (and as the docs improve both `PreventUpdate` and example of ...
[ { "content": "from __future__ import print_function\n\nimport itertools\nimport os\nimport random\nimport sys\nimport collections\nimport importlib\nimport json\nimport pkgutil\nimport threading\nimport warnings\nimport re\nimport logging\n\nfrom functools import wraps\n\nimport plotly\nimport dash_renderer\nim...
[ { "content": "from __future__ import print_function\n\nimport itertools\nimport os\nimport random\nimport sys\nimport collections\nimport importlib\nimport json\nimport pkgutil\nimport threading\nimport warnings\nimport re\nimport logging\n\nfrom functools import wraps\n\nimport plotly\nimport dash_renderer\nim...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 262ab29931..79ffeb19d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Fixed - Asset blueprint takes routes prefix into it's static path. [#547](https://github.com/plotly/dash/pull/547) - Asset url path no longer strip routes from requests. [#547](https:...
microsoft__ptvsd-818
test_path_names_uppercase_enabled fails ``` 2018-09-18T18:50:20.6706273Z ====================================================================== 2018-09-18T18:50:20.6706627Z FAIL [0.001s]: test_path_names_uppercase_enabled (tests.ptvsd.test_pathutils.PathUtilTests) 2018-09-18T18:50:20.6706979Z -----------------------...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nfrom __future__ import print_function, with_statement, absolute_import\n\nfrom glob import glob\nimport os.path\nimport platform\n\n\nMAX_FI...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nfrom __future__ import print_function, with_statement, absolute_import\n\nfrom glob import glob\nimport os.path\nimport platform\n\n\nMAX_FI...
diff --git a/ptvsd/pathutils.py b/ptvsd/pathutils.py index ecced2861..91f5ed9eb 100644 --- a/ptvsd/pathutils.py +++ b/ptvsd/pathutils.py @@ -56,7 +56,8 @@ def _get_actual_filename(self, name): dir_names = os.listdir(os.getcwd()) fragments = list(filter( lambda x: x...
conda__conda-build-249
Unable to build source.git_url based build recipes See for an example: https://binstar.org/conda/conda-env/builds/2/3
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport os\nimport sys\nfrom os.path import join, isdir, isfile, abspath, expanduser\nfrom shutil import copytree, ignore_patterns, copy2\nfrom subprocess import check_call, Popen, PIPE\n\nfrom conda.fetch import download\nfrom con...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport os\nimport sys\nfrom os.path import join, isdir, isfile, abspath, expanduser\nfrom shutil import copytree, ignore_patterns, copy2\nfrom subprocess import check_call, Popen, PIPE\n\nfrom conda.fetch import download\nfrom con...
diff --git a/conda_build/source.py b/conda_build/source.py index 2dc1791412..22a13893d7 100644 --- a/conda_build/source.py +++ b/conda_build/source.py @@ -83,7 +83,8 @@ def git_source(meta, recipe_dir): if git_url.startswith('.'): # It's a relative path from the conda recipe os.chdir(recipe_dir) ...
django-import-export__django-import-export-418
MediaStorage does not respect the read_mode parameter Which is a problem if one needs to deal with files by using universal newlines mode, for example.
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport tempfile\n\nfrom uuid import uuid4\n\nfrom django.core.cache import cache\nfrom django.core.files.storage import default_storage\nfrom django.core.files.base import ContentFile\n\n\nclass BaseStorage(object):\n\n def __init__(self, name=None):\n ...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport tempfile\n\nfrom uuid import uuid4\n\nfrom django.core.cache import cache\nfrom django.core.files.storage import default_storage\nfrom django.core.files.base import ContentFile\n\n\nclass BaseStorage(object):\n\n def __init__(self, name=None):\n ...
diff --git a/import_export/tmp_storages.py b/import_export/tmp_storages.py index 80f715717..dea5b2e28 100644 --- a/import_export/tmp_storages.py +++ b/import_export/tmp_storages.py @@ -79,9 +79,9 @@ def save(self, data, mode=None): self.name = uuid4().hex default_storage.save(self.get_full_path(),...
paperless-ngx__paperless-ngx-4708
[BUG] OCRmyPDF fails due to passing image_dpi of 1 ### Description depending on the image being processed, Paperless sometimes has a habit of passing image_dpi of 1 to OCRmyPDF which causes it to fail, when then it turn causes ghostscript to fail. Manually running similar commands in the log on the images given gives ...
[ { "content": "import json\nimport os\nimport re\nimport subprocess\nimport tempfile\nfrom pathlib import Path\nfrom typing import Optional\n\nfrom django.conf import settings\nfrom PIL import Image\n\nfrom documents.parsers import DocumentParser\nfrom documents.parsers import ParseError\nfrom documents.parsers ...
[ { "content": "import json\nimport os\nimport re\nimport subprocess\nimport tempfile\nfrom pathlib import Path\nfrom typing import Optional\n\nfrom django.conf import settings\nfrom PIL import Image\n\nfrom documents.parsers import DocumentParser\nfrom documents.parsers import ParseError\nfrom documents.parsers ...
diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py index f64ea8adf11..3523da7bde4 100644 --- a/src/paperless_tesseract/parsers.py +++ b/src/paperless_tesseract/parsers.py @@ -244,6 +244,10 @@ def construct_ocrmypdf_parameters( f"no DPI information is present in thi...
cookiecutter__cookiecutter-1940
Prompt count should ignore 'hidden' items * Cookiecutter version: 2.3.0 * Template project URL: https://github.com/collective/cookiecutter-plone-starter * Python version: 3.11 * Operating System: macos ### Description: The new rich prompts display the total number of questions, even those hidden. ``` [9/...
[ { "content": "\"\"\"Functions for prompting the user for project info.\"\"\"\nimport json\nfrom collections import OrderedDict\n\nfrom rich.prompt import Prompt, Confirm, PromptBase, InvalidResponse\nfrom jinja2.exceptions import UndefinedError\n\nfrom cookiecutter.environment import StrictEnvironment\nfrom coo...
[ { "content": "\"\"\"Functions for prompting the user for project info.\"\"\"\nimport json\nfrom collections import OrderedDict\n\nfrom rich.prompt import Prompt, Confirm, PromptBase, InvalidResponse\nfrom jinja2.exceptions import UndefinedError\n\nfrom cookiecutter.environment import StrictEnvironment\nfrom coo...
diff --git a/cookiecutter/prompt.py b/cookiecutter/prompt.py index f5c28240a..fbb8182b3 100644 --- a/cookiecutter/prompt.py +++ b/cookiecutter/prompt.py @@ -243,8 +243,10 @@ def prompt_for_config(context, no_input=False): # values might refer to them. count = 0 - size = len(context['cookiecutter'].items(...
Lightning-AI__pytorch-lightning-619
Comet PAPI Depreciated Use of the Comet API logger reports an unecessary depreciation warning relating to the use of comet_ml.papi, rather than the newer comet_ml.api. Example: `COMET WARNING: You have imported comet_ml.papi; this interface is deprecated. Please use comet_ml.api instead. For more information, see: ...
[ { "content": "\"\"\"\nLog using `comet <https://www.comet.ml>`_\n\nComet logger can be used in either online or offline mode.\nTo log in online mode, CometLogger requries an API key:\n\n.. code-block:: python\n\n from pytorch_lightning.logging import CometLogger\n # arguments made to CometLogger are passe...
[ { "content": "\"\"\"\nLog using `comet <https://www.comet.ml>`_\n\nComet logger can be used in either online or offline mode.\nTo log in online mode, CometLogger requries an API key:\n\n.. code-block:: python\n\n from pytorch_lightning.logging import CometLogger\n # arguments made to CometLogger are passe...
diff --git a/pytorch_lightning/logging/comet.py b/pytorch_lightning/logging/comet.py index b74760665bc16..3fe254185b827 100644 --- a/pytorch_lightning/logging/comet.py +++ b/pytorch_lightning/logging/comet.py @@ -52,7 +52,11 @@ def any_lightning_module_function_or_hook(...): try: from comet_ml import Experiment a...
qtile__qtile-1682
Firefox cpu usage escalates and then stops responding only when run in qtile Hi, When starting firefox (firefox 69.0-1, qtile 0.14.2-2) its cpu usage starts rising to the point were the interface becomes unresponsive, also only parts of firefox interface are drawn, but like after 5 mins the window is not visible at...
[ { "content": "# Copyright (c) 2013 Jacob Mourelos\n# Copyright (c) 2014 Shepilov Vladislav\n# Copyright (c) 2014-2015 Sean Vig\n# Copyright (c) 2014 Tycho Andersen\n# Copyright (c) 2019 zordsdavini\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associa...
[ { "content": "# Copyright (c) 2013 Jacob Mourelos\n# Copyright (c) 2014 Shepilov Vladislav\n# Copyright (c) 2014-2015 Sean Vig\n# Copyright (c) 2014 Tycho Andersen\n# Copyright (c) 2019 zordsdavini\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associa...
diff --git a/libqtile/widget/keyboardlayout.py b/libqtile/widget/keyboardlayout.py index 60d5b3cc9e..53a5f23762 100644 --- a/libqtile/widget/keyboardlayout.py +++ b/libqtile/widget/keyboardlayout.py @@ -97,7 +97,7 @@ def keyboard(self): Examples: "us", "us dvorak". In case of error returns "unknown". ...
rotki__rotki-171
With slow connection and many tokens/addresses balance query may throw exception at etherscan call ## Problem Definition This has been noticed a few times for slow connections and if many tokens and addresses are involved. At some point the etherscan balance query may fail with the following stack trace and crash th...
[ { "content": "#!/usr/bin/env python\nimport calendar\nimport datetime\nimport json\nimport operator\nimport os\nimport sys\nimport time\nfrom functools import wraps\nfrom typing import Any, Callable\n\nimport requests\nfrom rlp.sedes import big_endian_int\n\nfrom rotkehlchen import typing\nfrom rotkehlchen.cons...
[ { "content": "#!/usr/bin/env python\nimport calendar\nimport datetime\nimport json\nimport operator\nimport os\nimport sys\nimport time\nfrom functools import wraps\nfrom typing import Any, Callable\n\nimport requests\nfrom rlp.sedes import big_endian_int\n\nfrom rotkehlchen import typing\nfrom rotkehlchen.cons...
diff --git a/rotkehlchen/utils.py b/rotkehlchen/utils.py index ba0367ae03..af0aaab563 100644 --- a/rotkehlchen/utils.py +++ b/rotkehlchen/utils.py @@ -198,7 +198,16 @@ def retry_calls( def request_get(uri, timeout=ALL_REMOTES_TIMEOUT): - response = requests.get(uri) + # TODO make this a bit more smart. Perha...
deepchecks__deepchecks-645
[TYPO] Label ambiguity explanation Current explanation: "Each row in the table shows an example of a data sample and the it's observed labels as a found in the dataset."
[ { "content": "# ----------------------------------------------------------------------------\n# Copyright (C) 2021 Deepchecks (https://www.deepchecks.com)\n#\n# This file is part of Deepchecks.\n# Deepchecks is distributed under the terms of the GNU Affero General\n# Public License (version 3 or later).\n# You ...
[ { "content": "# ----------------------------------------------------------------------------\n# Copyright (C) 2021 Deepchecks (https://www.deepchecks.com)\n#\n# This file is part of Deepchecks.\n# Deepchecks is distributed under the terms of the GNU Affero General\n# Public License (version 3 or later).\n# You ...
diff --git a/deepchecks/checks/integrity/label_ambiguity.py b/deepchecks/checks/integrity/label_ambiguity.py index c96b927199..13d6b5f84e 100644 --- a/deepchecks/checks/integrity/label_ambiguity.py +++ b/deepchecks/checks/integrity/label_ambiguity.py @@ -98,7 +98,7 @@ def run(self, dataset: Dataset, model=None) -> Chec...
evennia__evennia-2727
[BUG] tickerhandler.clear() not functioning correctly. #### Describe the bug I ran a script to clean up some lingering tickers that I created without corresponding code to get rid of them when done. The active elements were: ```python tickerhandler.clear(interval=900) tickerhandler.clear(interval=1800) ``` Afte...
[ { "content": "\"\"\"\nTickerHandler\n\nThis implements an efficient Ticker which uses a subscription\nmodel to 'tick' subscribed objects at regular intervals.\n\nThe ticker mechanism is used by importing and accessing\nthe instantiated TICKER_HANDLER instance in this module. This\ninstance is run by the server;...
[ { "content": "\"\"\"\nTickerHandler\n\nThis implements an efficient Ticker which uses a subscription\nmodel to 'tick' subscribed objects at regular intervals.\n\nThe ticker mechanism is used by importing and accessing\nthe instantiated TICKER_HANDLER instance in this module. This\ninstance is run by the server;...
diff --git a/evennia/scripts/tickerhandler.py b/evennia/scripts/tickerhandler.py index 5af87f14458..3b2c95843a3 100644 --- a/evennia/scripts/tickerhandler.py +++ b/evennia/scripts/tickerhandler.py @@ -585,9 +585,9 @@ def clear(self, interval=None): self.ticker_pool.stop(interval) if interval: ...
RedHatInsights__insights-core-2477
Imprprovement for bond parser Currently, the bond parser is not supporting to check if the primary slave is configured with "primary_reselect=failure". Parser PR: https://github.com/RedHatInsights/insights-core/pull/2477
[ { "content": "\"\"\"\nBond - file ``/proc/net/bonding``\n=================================\n\nProvides plugins access to the network bonding information gathered from\nall the files starteing with \"bond.\" located in the\n``/proc/net/bonding`` directory.\n\nTypical content of ``bond.*`` file is::\n\n Ethern...
[ { "content": "\"\"\"\nBond - file ``/proc/net/bonding``\n=================================\n\nProvides plugins access to the network bonding information gathered from\nall the files starteing with \"bond.\" located in the\n``/proc/net/bonding`` directory.\n\nTypical content of ``bond.*`` file is::\n\n Ethern...
diff --git a/insights/parsers/bond.py b/insights/parsers/bond.py index e454c17682..1495d0d878 100644 --- a/insights/parsers/bond.py +++ b/insights/parsers/bond.py @@ -137,7 +137,7 @@ def parse_content(self, content): elif line.strip().startswith("ARP IP target/s (n.n.n.n form):"): self._ar...
locustio__locust-401
requests.exceptions.ConnectionError: ('Connection aborted.', ResponseNotReady('Request-sent',)) I wanted to offer this up not as an issue, but as a solution to one that I found today. I had a test that when run on a specific server would always fail with this unhelpful message: requests.exceptions.ConnectionError: ('C...
[ { "content": "# encoding: utf-8\n\nfrom setuptools import setup, find_packages, Command\nimport sys, os\n\nversion = '0.7.3'\n\n\nclass Unit2Discover(Command):\n user_options = []\n\n def initialize_options(self):\n pass\n\n def finalize_options(self):\n pass\n\n def run(self):\n ...
[ { "content": "# encoding: utf-8\n\nfrom setuptools import setup, find_packages, Command\nimport sys, os\n\nversion = '0.7.3'\n\n\nclass Unit2Discover(Command):\n user_options = []\n\n def initialize_options(self):\n pass\n\n def finalize_options(self):\n pass\n\n def run(self):\n ...
diff --git a/setup.py b/setup.py index 7f8ab8ca2b..2798114d21 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,7 @@ def run(self): packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=False, - install_requires=["gevent==1.0.1", "flask>=0.10.1", "reque...
PrefectHQ__prefect-1189
Parameters which are dictionaries are incorrectly cast as `GraphQLResult` objects Parameters whose values are standard dictionaries are incorrectly cast as `GraphQLResult` objects in Cloud. This causes their associated tasks to fail because Parameters are automatically check-pointed with the `JSONResultHandler`.
[ { "content": "import base64\nimport datetime\nimport json\nimport logging\nimport os\nfrom typing import TYPE_CHECKING, Any, Dict, List, NamedTuple, Optional, Union\n\nimport pendulum\n\nimport prefect\nfrom prefect.utilities.exceptions import AuthorizationError, ClientError\nfrom prefect.utilities.graphql impo...
[ { "content": "import base64\nimport datetime\nimport json\nimport logging\nimport os\nfrom typing import TYPE_CHECKING, Any, Dict, List, NamedTuple, Optional, Union\n\nimport pendulum\n\nimport prefect\nfrom prefect.utilities.exceptions import AuthorizationError, ClientError\nfrom prefect.utilities.graphql impo...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 779cced85df7..2b51af4214dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ These changes are available in the [master branch](https://github.com/PrefectHQ/ - Fix issue caused by breaking change in `marshmallow==3.0.0rc7` - [#1151](https://github.com/Prefect...
Cog-Creators__Red-DiscordBot-6170
Audio NUMBER_EMOJIS tuple breakages from 3.5 This location in Audio currently attempts to mutate `NUMBER_EMOJIS`, which was mutable prior to 3.5, but [is now immutable](https://docs.discord.red/en/stable/incompatible_changes/3.5.html#menus-default-controls-and-reactionpredicate-emojis-use-immutable-types-now). It needs...
[ { "content": "import asyncio\nimport contextlib\nimport datetime\nimport json\nimport math\nimport random\nimport time\nfrom pathlib import Path\n\nfrom typing import List, MutableMapping, Optional, Tuple, Union\n\nimport aiohttp\nimport discord\nimport lavalink\nfrom lavalink import NodeNotFound\nfrom red_comm...
[ { "content": "import asyncio\nimport contextlib\nimport datetime\nimport json\nimport math\nimport random\nimport time\nfrom pathlib import Path\n\nfrom typing import List, MutableMapping, Optional, Tuple, Union\n\nimport aiohttp\nimport discord\nimport lavalink\nfrom lavalink import NodeNotFound\nfrom red_comm...
diff --git a/redbot/cogs/audio/core/utilities/playlists.py b/redbot/cogs/audio/core/utilities/playlists.py index a5301c8fb1e..57f00cc3e0e 100644 --- a/redbot/cogs/audio/core/utilities/playlists.py +++ b/redbot/cogs/audio/core/utilities/playlists.py @@ -262,7 +262,7 @@ async def get_playlist_match( colour=a...
cloud-custodian__cloud-custodian-4076
azure - unpinn EventGrid SDK version We need AdvancedFilters to be added to the stable version. https://pypi.org/project/azure-mgmt-eventgrid/
[ { "content": "# Copyright 2018 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b...
[ { "content": "# Copyright 2018 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b...
diff --git a/tools/c7n_azure/setup.py b/tools/c7n_azure/setup.py index 11546b5d2dd..16fddda986a 100644 --- a/tools/c7n_azure/setup.py +++ b/tools/c7n_azure/setup.py @@ -63,7 +63,7 @@ "azure-mgmt-web", "azure-mgmt-monitor", "azure-mgmt-policyinsights",...
Mailu__Mailu-1135
Redis address parsing is done in init_app This was added in #1107: https://github.com/Mailu/Mailu/blob/f3f0c3190be9ab9b53a29c5b0326fc9a4602df46/core/admin/mailu/configuration.py#L11-L12 While, `REDIS_ADDRESS` is now only resolved in `init_app`. (#940). We took care of that in: https://github.com/Mailu/Mailu/bl...
[ { "content": "import os\n\nfrom socrate import system\n\nDEFAULT_CONFIG = {\n # Specific to the admin UI\n 'DOCKER_SOCKET': 'unix:///var/run/docker.sock',\n 'BABEL_DEFAULT_LOCALE': 'en',\n 'BABEL_DEFAULT_TIMEZONE': 'UTC',\n 'BOOTSTRAP_SERVE_LOCAL': True,\n 'RATELIMIT_STORAGE_URL': 'redis://%s/...
[ { "content": "import os\n\nfrom socrate import system\n\nDEFAULT_CONFIG = {\n # Specific to the admin UI\n 'DOCKER_SOCKET': 'unix:///var/run/docker.sock',\n 'BABEL_DEFAULT_LOCALE': 'en',\n 'BABEL_DEFAULT_TIMEZONE': 'UTC',\n 'BOOTSTRAP_SERVE_LOCAL': True,\n 'RATELIMIT_STORAGE_URL': '',\n 'QU...
diff --git a/core/admin/mailu/configuration.py b/core/admin/mailu/configuration.py index 494f540a4..39539b54b 100644 --- a/core/admin/mailu/configuration.py +++ b/core/admin/mailu/configuration.py @@ -8,8 +8,8 @@ 'BABEL_DEFAULT_LOCALE': 'en', 'BABEL_DEFAULT_TIMEZONE': 'UTC', 'BOOTSTRAP_SERVE_LOCAL': True...
ESMCI__cime-4085
CIME mappy scripts_regression_tests in bad shape I'm seeing tons of fails: ``` FAILED (failures=48, errors=7, skipped=21) ```
[ { "content": "\"\"\"\nLibraries for checking python code with pylint\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\n\nfrom CIME.utils import run_cmd, run_cmd_no_fail, expect, get_cime_root, get_src_root, is_python_executable, get_cime_default_driver\n\nfrom multiprocessing.dummy import Pool as ThreadP...
[ { "content": "\"\"\"\nLibraries for checking python code with pylint\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\n\nfrom CIME.utils import run_cmd, run_cmd_no_fail, expect, get_cime_root, get_src_root, is_python_executable, get_cime_default_driver\n\nfrom multiprocessing.dummy import Pool as ThreadP...
diff --git a/scripts/lib/CIME/code_checker.py b/scripts/lib/CIME/code_checker.py index ecd7227e618..739a707be2a 100644 --- a/scripts/lib/CIME/code_checker.py +++ b/scripts/lib/CIME/code_checker.py @@ -19,7 +19,7 @@ def _run_pylint(on_file, interactive): cmd_options = " --disable=I,C,R,logging-not-lazy,wildcard-i...
django-extensions__django-extensions-360
JSONField does not accept an empty list as default [Here](https://github.com/django-extensions/django-extensions/blob/8cbec9ca3174ba9c4af28ff4c0740ffd24375bb3/django_extensions/db/fields/json.py#L67) default is tested if it's "truthy". `[]` happens to be "falsy" and it ends up using `'{}'` as default. So it is impossib...
[ { "content": "\"\"\"\nJSONField automatically serializes most Python terms to JSON data.\nCreates a TEXT field with a default value of \"{}\". See test_json.py for\nmore information.\n\n from django.db import models\n from django_extensions.db.fields import json\n\n class LOL(models.Model):\n extra = json....
[ { "content": "\"\"\"\nJSONField automatically serializes most Python terms to JSON data.\nCreates a TEXT field with a default value of \"{}\". See test_json.py for\nmore information.\n\n from django.db import models\n from django_extensions.db.fields import json\n\n class LOL(models.Model):\n extra = json....
diff --git a/django_extensions/db/fields/json.py b/django_extensions/db/fields/json.py index ba50e6697..51d5b1dd5 100644 --- a/django_extensions/db/fields/json.py +++ b/django_extensions/db/fields/json.py @@ -63,8 +63,8 @@ class JSONField(six.with_metaclass(models.SubfieldBase, models.TextField)): JSON objects sea...
ESMCI__cime-3725
Missing chem_mech files in E3SM CaseDocs after renaming CAM to EAM After [renaming CAM to EAM in E3SM](https://github.com/E3SM-Project/E3SM/pull/3845), the following two files are not copied to CaseDocs ``` chem_mech.doc chem_mech.in ``` Need to change the 'cam' substring in 'camconf' near the end of cime/scripts/...
[ { "content": "\"\"\"\nAPI for preview namelist\ncreate_dirs and create_namelists are members of Class case from file case.py\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.utils import run_sub_or_cmd, safe_copy\nimport time, glob\nlogger = logging.getLogger(__name__)\n\ndef create_dirs(self)...
[ { "content": "\"\"\"\nAPI for preview namelist\ncreate_dirs and create_namelists are members of Class case from file case.py\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.utils import run_sub_or_cmd, safe_copy\nimport time, glob\nlogger = logging.getLogger(__name__)\n\ndef create_dirs(self)...
diff --git a/scripts/lib/CIME/case/preview_namelists.py b/scripts/lib/CIME/case/preview_namelists.py index 1765d87f4cc..fbf4155f5bd 100644 --- a/scripts/lib/CIME/case/preview_namelists.py +++ b/scripts/lib/CIME/case/preview_namelists.py @@ -107,6 +107,7 @@ def create_namelists(self, component=None): safe_c...
e2nIEE__pandapower-1329
'plot_gens' unexpected in simple_plot() It seems that `plot_gens` is an argument in `simple_plot()`, but is not documented. When attempting to set `plot_gens` when calling `simple_plot()`, I get the following error: > TypeError: simple_plot() got an unexpected keyword argument 'plot_gens' Version: 2.7.0
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2021 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n\n\nimport matplotlib.pyplot as plt\n\nfrom pandapower.plotting.plotting_toolbox import get_collection_siz...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2021 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n\n\nimport matplotlib.pyplot as plt\n\nfrom pandapower.plotting.plotting_toolbox import get_collection_siz...
diff --git a/pandapower/plotting/simple_plot.py b/pandapower/plotting/simple_plot.py index 3ec409726..a92c1de93 100644 --- a/pandapower/plotting/simple_plot.py +++ b/pandapower/plotting/simple_plot.py @@ -51,6 +51,8 @@ def simple_plot(net, respect_switches=False, line_width=1.0, bus_size=1.0, ext_g **trafo...
biolab__orange3-3764
Rank widget crashes when receive data <!-- This is an issue template. Please fill in the relevant details in the sections below. Wrap code and verbatim terminal window output into triple backticks, see: https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code If you're raising an issu...
[ { "content": "\"\"\"\nRank\n====\n\nRank (score) features for prediction.\n\n\"\"\"\nimport warnings\nfrom collections import namedtuple, OrderedDict\nimport logging\nfrom functools import partial\nfrom itertools import chain\n\nimport numpy as np\nfrom scipy.sparse import issparse\n\nfrom AnyQt.QtGui import QF...
[ { "content": "\"\"\"\nRank\n====\n\nRank (score) features for prediction.\n\n\"\"\"\nimport warnings\nfrom collections import namedtuple, OrderedDict\nimport logging\nfrom functools import partial\nfrom itertools import chain\n\nimport numpy as np\nfrom scipy.sparse import issparse\n\nfrom AnyQt.QtGui import QF...
diff --git a/Orange/widgets/data/owrank.py b/Orange/widgets/data/owrank.py index a74393d8491..4999d32d6c2 100644 --- a/Orange/widgets/data/owrank.py +++ b/Orange/widgets/data/owrank.py @@ -494,7 +494,7 @@ def autoSelection(self): ) else: selection = QItemSelection() - if se...
python-pillow__Pillow-7357
Bug in QOI decoder leading to corrupted images ### What did you do? Loaded dice.qoi from the official test image set (https://qoiformat.org/qoi_test_images.zip). ### What did you expect to happen? Image is not corrupted. ### What actually happened? Image is corrupted. ### What are your OS, Python and ...
[ { "content": "#\n# The Python Imaging Library.\n#\n# QOI support for PIL\n#\n# See the README file for information on usage and redistribution.\n#\n\nimport os\n\nfrom . import Image, ImageFile\nfrom ._binary import i32be as i32\nfrom ._binary import o8\n\n\ndef _accept(prefix):\n return prefix[:4] == b\"qoi...
[ { "content": "#\n# The Python Imaging Library.\n#\n# QOI support for PIL\n#\n# See the README file for information on usage and redistribution.\n#\n\nimport os\n\nfrom . import Image, ImageFile\nfrom ._binary import i32be as i32\nfrom ._binary import o8\n\n\ndef _accept(prefix):\n return prefix[:4] == b\"qoi...
diff --git a/Tests/test_file_qoi.py b/Tests/test_file_qoi.py index f33eada6110..0a835dcf61e 100644 --- a/Tests/test_file_qoi.py +++ b/Tests/test_file_qoi.py @@ -2,7 +2,7 @@ from PIL import Image, QoiImagePlugin -from .helper import assert_image_equal_tofile, assert_image_similar_tofile +from .helper import assert_...
zestedesavoir__zds-site-5937
Mettre à jour les fixtures pour séparer le compte admin et le compte bot **Description du besoin** Actuellement, on a les deux configurations suivantes (approximativement) : * sur la version de dev, le compte admin est admin, mais a en plus le rôle de bot ; * sur la prod (et la bêta j'imagine), on a un bot dédié...
[ { "content": "from pathlib import Path\n\nfrom django.utils.translation import gettext_lazy as _\n\nfrom .config import config\nfrom .base_dir import BASE_DIR\n\nzds_config = config.get('zds', {})\n\nGEOIP_PATH = str(BASE_DIR / 'geodata')\nGEOIP_CITY = 'GeoLite2-City.mmdb'\n\nES_ENABLED = True\n\nES_CONNECTIONS...
[ { "content": "from pathlib import Path\n\nfrom django.utils.translation import gettext_lazy as _\n\nfrom .config import config\nfrom .base_dir import BASE_DIR\n\nzds_config = config.get('zds', {})\n\nGEOIP_PATH = str(BASE_DIR / 'geodata')\nGEOIP_CITY = 'GeoLite2-City.mmdb'\n\nES_ENABLED = True\n\nES_CONNECTIONS...
diff --git a/fixtures/users.yaml b/fixtures/users.yaml index ef6499173f..dd8bc8e18c 100644 --- a/fixtures/users.yaml +++ b/fixtures/users.yaml @@ -100,6 +100,16 @@ is_superuser: False groups: - 3 +- model: auth.user + pk: 9 + fields: + first_name: Clem + last_name: S...
weecology__retriever-712
Add Python 3 to setup.py We need to note in the setup.py that Python 3 is supported.
[ { "content": "\"\"\"Use the following command to install retriever: python setup.py install\"\"\"\nfrom __future__ import absolute_import\n\nfrom setuptools import setup\nfrom pkg_resources import parse_version\nimport platform\n\n\ncurrent_platform = platform.system().lower()\nextra_includes = []\nif current_p...
[ { "content": "\"\"\"Use the following command to install retriever: python setup.py install\"\"\"\nfrom __future__ import absolute_import\n\nfrom setuptools import setup\nfrom pkg_resources import parse_version\nimport platform\n\n\ncurrent_platform = platform.system().lower()\nextra_includes = []\nif current_p...
diff --git a/setup.py b/setup.py index 867bb05f2..be4d2be41 100644 --- a/setup.py +++ b/setup.py @@ -72,7 +72,8 @@ def clean_version(v): classifiers=['Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', - ...
apache__airflow-15207
Specify that exit code -9 is due to RAM Related to https://github.com/apache/airflow/issues/9655 It would be nice to add a message when you get this error with some info, like 'This probably is because a lack of RAM' or something like that. I have found the code where the -9 is assigned but have no idea how to a...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
diff --git a/airflow/task/task_runner/standard_task_runner.py b/airflow/task/task_runner/standard_task_runner.py index 505b2252de0f4..bb566b275f2a1 100644 --- a/airflow/task/task_runner/standard_task_runner.py +++ b/airflow/task/task_runner/standard_task_runner.py @@ -121,3 +121,11 @@ def terminate(self): if s...
rasterio__rasterio-2657
`dtypes.get_minimum_dtype` doesn't support `int8` <!-- WELCOME ABOARD! Hi and welcome to the Rasterio project. We appreciate bug reports, questions about documentation, and suggestions for new features. This issue template isn't intended to ward you off; only to intercept and redirect some particular categorie...
[ { "content": "\"\"\"Mapping of GDAL to Numpy data types.\n\nSince 0.13 we are not importing numpy here and data types are strings.\nHappily strings can be used throughout Numpy and so existing code will\nnot break.\n\n\"\"\"\nimport numpy\n\nfrom rasterio.env import GDALVersion\n\n_GDAL_AT_LEAST_35 = GDALVersio...
[ { "content": "\"\"\"Mapping of GDAL to Numpy data types.\n\nSince 0.13 we are not importing numpy here and data types are strings.\nHappily strings can be used throughout Numpy and so existing code will\nnot break.\n\n\"\"\"\nimport numpy\n\nfrom rasterio.env import GDALVersion\n\n_GDAL_AT_LEAST_35 = GDALVersio...
diff --git a/rasterio/dtypes.py b/rasterio/dtypes.py index 6191e8157..f42eab273 100644 --- a/rasterio/dtypes.py +++ b/rasterio/dtypes.py @@ -159,6 +159,8 @@ def get_minimum_dtype(values): if not _GDAL_AT_LEAST_35: raise ValueError("Values out of range for supported dtypes") re...
qtile__qtile-3961
App crashes when sending a dbus notification ### The issue: See https://github.com/ciderapp/Cider/issues/1475 for more details. After playing a few songs with Cider App, the app will crash when changing songs with the following error message in the logs. I am not sure which side is responsible for the bug. ```...
[ { "content": "# Copyright (c) 2010 dequis\n# Copyright (c) 2011 Florian Mounier\n# Copyright (c) 2011 Mounier Florian\n# Copyright (c) 2013 Mickael FALCK\n# Copyright (c) 2013 Tao Sauvage\n# Copyright (c) 2020 elParaguayo\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of t...
[ { "content": "# Copyright (c) 2010 dequis\n# Copyright (c) 2011 Florian Mounier\n# Copyright (c) 2011 Mounier Florian\n# Copyright (c) 2013 Mickael FALCK\n# Copyright (c) 2013 Tao Sauvage\n# Copyright (c) 2020 elParaguayo\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of t...
diff --git a/CHANGELOG b/CHANGELOG index 7e105e057b..0e2f94f152 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -28,6 +28,7 @@ Qtile x.xx.x, released XXXX-XX-XX: - New widget: GenPollCommand * bugfixes - Fix bug where Window.center() centers window on the wrong screen when using multiple monitors. + ...
locustio__locust-2609
[Report][Modern-UI] HTML report is blank ### 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 Run a test then open the HTML report -> Noticed that it is blank Note: This bug occurs from 2.22....
[ { "content": "\"\"\"\nExample of implementing authentication for Locust when the --web-login flag is given\n\nThis is only to serve as a starting point, proper authentication should be implemented\naccording to your projects specifications.\n\nFor more information, see https://docs.locust.io/en/stable/extending...
[ { "content": "\"\"\"\nExample of implementing authentication for Locust when the --web-login flag is given\n\nThis is only to serve as a starting point, proper authentication should be implemented\naccording to your projects specifications.\n\nFor more information, see https://docs.locust.io/en/stable/extending...
diff --git a/examples/web_ui_auth.py b/examples/web_ui_auth.py index 2ac7fd37f8..0486e4b10b 100644 --- a/examples/web_ui_auth.py +++ b/examples/web_ui_auth.py @@ -6,7 +6,7 @@ For more information, see https://docs.locust.io/en/stable/extending-locust.html#authentication """ -from locust import HttpUser, events +fro...
Mailu__Mailu-1134
Redis address parsing is done in init_app This was added in #1107: https://github.com/Mailu/Mailu/blob/f3f0c3190be9ab9b53a29c5b0326fc9a4602df46/core/admin/mailu/configuration.py#L11-L12 While, `REDIS_ADDRESS` is now only resolved in `init_app`. (#940). We took care of that in: https://github.com/Mailu/Mailu/bl...
[ { "content": "import os\n\nfrom socrate import system\n\nDEFAULT_CONFIG = {\n # Specific to the admin UI\n 'DOCKER_SOCKET': 'unix:///var/run/docker.sock',\n 'BABEL_DEFAULT_LOCALE': 'en',\n 'BABEL_DEFAULT_TIMEZONE': 'UTC',\n 'BOOTSTRAP_SERVE_LOCAL': True,\n 'RATELIMIT_STORAGE_URL': 'redis://%s/...
[ { "content": "import os\n\nfrom socrate import system\n\nDEFAULT_CONFIG = {\n # Specific to the admin UI\n 'DOCKER_SOCKET': 'unix:///var/run/docker.sock',\n 'BABEL_DEFAULT_LOCALE': 'en',\n 'BABEL_DEFAULT_TIMEZONE': 'UTC',\n 'BOOTSTRAP_SERVE_LOCAL': True,\n 'RATELIMIT_STORAGE_URL': '',\n 'QU...
diff --git a/core/admin/mailu/configuration.py b/core/admin/mailu/configuration.py index 494f540a4..39539b54b 100644 --- a/core/admin/mailu/configuration.py +++ b/core/admin/mailu/configuration.py @@ -8,8 +8,8 @@ 'BABEL_DEFAULT_LOCALE': 'en', 'BABEL_DEFAULT_TIMEZONE': 'UTC', 'BOOTSTRAP_SERVE_LOCAL': True...
arviz-devs__arviz-1573
Debug print left in release version **Describe the bug** While invoking `from_pymc3` I got unexpected output: ``` 0, dim: AND rows, 1376 =? 1376 0, dim: NAND rows, 1799 =? 1799 0, dim: NOR rows, 1699 =? 1699 0, dim: OR rows, 1370 =? 1370 0, dim: XNOR rows, 1510 =? 1510 0, dim: XOR rows, 1674 =? 1674 ``` ...
[ { "content": "\"\"\"Low level converters usually used by other functions.\"\"\"\nimport datetime\nimport functools\nimport warnings\nfrom copy import deepcopy\nfrom typing import Any, Dict, List\n\nimport numpy as np\nimport pkg_resources\nimport xarray as xr\n\ntry:\n import ujson as json\nexcept ImportErro...
[ { "content": "\"\"\"Low level converters usually used by other functions.\"\"\"\nimport datetime\nimport functools\nimport warnings\nfrom copy import deepcopy\nfrom typing import Any, Dict, List\n\nimport numpy as np\nimport pkg_resources\nimport xarray as xr\n\ntry:\n import ujson as json\nexcept ImportErro...
diff --git a/arviz/data/base.py b/arviz/data/base.py index f44176ad60..cb747a5f4b 100644 --- a/arviz/data/base.py +++ b/arviz/data/base.py @@ -113,7 +113,6 @@ def generate_dims_coords( if skip_event_dims: # this is needed in case the reduction keeps the dimension with size 1 for i, (dim, dim_size...
django-import-export__django-import-export-430
Better result reporting At the moment `import_data()` is a monolithic function with no easy customization points. In order to provide better feedback to users, I would like to extend it to report the total number of rows in each result type (NEW, UPDATE, SKIP, DELETE), including the total number of skipped rows even wh...
[ { "content": "from __future__ import unicode_literals\n\nimport functools\nimport sys\nimport tablib\nimport traceback\nfrom copy import deepcopy\n\nfrom diff_match_patch import diff_match_patch\n\nfrom django import VERSION\nfrom django.conf import settings\nfrom django.core.management.color import no_style\nf...
[ { "content": "from __future__ import unicode_literals\n\nimport functools\nimport sys\nimport tablib\nimport traceback\nfrom copy import deepcopy\n\nfrom diff_match_patch import diff_match_patch\n\nfrom django import VERSION\nfrom django.conf import settings\nfrom django.core.management.color import no_style\nf...
diff --git a/import_export/resources.py b/import_export/resources.py index e617d6fa0..6c9e57c18 100644 --- a/import_export/resources.py +++ b/import_export/resources.py @@ -502,7 +502,7 @@ def import_data(self, dataset, dry_run=False, raise_errors=False, if raise_errors: if use_tra...
ManimCommunity__manim-2587
Rendering TeX strings containing % broken This unfortunately broke rendering of TeX strings containing `%`. Trying to create `Tex(r"\%")` fails in v0.15.0. _Originally posted by @behackl in https://github.com/ManimCommunity/manim/issues/2574#issuecomment-1054726581_
[ { "content": "\"\"\"Interface for writing, compiling, and converting ``.tex`` files.\n\n.. SEEALSO::\n\n :mod:`.mobject.svg.tex_mobject`\n\n\"\"\"\n\nfrom __future__ import annotations\n\nimport hashlib\nimport os\nimport re\nimport unicodedata\nfrom pathlib import Path\n\nfrom .. import config, logger\n\n\n...
[ { "content": "\"\"\"Interface for writing, compiling, and converting ``.tex`` files.\n\n.. SEEALSO::\n\n :mod:`.mobject.svg.tex_mobject`\n\n\"\"\"\n\nfrom __future__ import annotations\n\nimport hashlib\nimport os\nimport re\nimport unicodedata\nfrom pathlib import Path\n\nfrom .. import config, logger\n\n\n...
diff --git a/manim/utils/tex_file_writing.py b/manim/utils/tex_file_writing.py index f10ee3b512..8bdb0c3c44 100644 --- a/manim/utils/tex_file_writing.py +++ b/manim/utils/tex_file_writing.py @@ -84,7 +84,10 @@ def generate_tex_file(expression, environment=None, tex_template=None): result = os.path.join(tex_dir, ...
open-mmlab__mmpose-970
[Bug] Possible bug in `mmpose/apis/train.py` https://github.com/open-mmlab/mmpose/blob/8d668a578f1580373d90a1eea88f23f6816df60e/mmpose/apis/train.py#L140 Here is the code that may have problem. And I think the default value for `workers_per_gpu` should be an integer but not a dict.
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport warnings\n\nimport torch\nfrom mmcv.parallel import MMDataParallel, MMDistributedDataParallel\nfrom mmcv.runner import DistSamplerSeedHook, EpochBasedRunner, OptimizerHook\n\nfrom mmpose.core import DistEvalHook, EvalHook, build_optimizers\nf...
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport warnings\n\nimport torch\nfrom mmcv.parallel import MMDataParallel, MMDistributedDataParallel\nfrom mmcv.runner import DistSamplerSeedHook, EpochBasedRunner, OptimizerHook\n\nfrom mmpose.core import DistEvalHook, EvalHook, build_optimizers\nf...
diff --git a/mmpose/apis/train.py b/mmpose/apis/train.py index 724267880a..69d0453afb 100644 --- a/mmpose/apis/train.py +++ b/mmpose/apis/train.py @@ -137,7 +137,7 @@ def train_model(model, val_dataset = build_dataset(cfg.data.val, dict(test_mode=True)) dataloader_setting = dict( samples_...
qutebrowser__qutebrowser-3660
Crash in schedule_completion_update because self._last_cursor_pos was None From https://crashes.qutebrowser.org/view/2e422bf5 ``` 10:10:35 DEBUG commands command:run:485 command called: set-cmd-text ['-s', ':open -t'] 10:10:35 DEBUG commands command:run:500 Calling qutebrowser.mainwindow.statusbar.comman...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2018 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2018 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
diff --git a/qutebrowser/completion/completer.py b/qutebrowser/completion/completer.py index 09b80ed12f6..8506f3aa762 100644 --- a/qutebrowser/completion/completer.py +++ b/qutebrowser/completion/completer.py @@ -60,7 +60,7 @@ def __init__(self, *, cmd, win_id, parent=None): self._timer.setSingleShot(True) ...
e-valuation__EvaP-829
Rework all the page titles e.g. when opening the results of multiple courses in tabs, my browser labels the tabs "Results - EvaP". Putting the course name in there would help. Same for staff course edit.
[ { "content": "import csv\nimport datetime\nimport random\nfrom collections import OrderedDict, defaultdict\n\nfrom django.contrib import messages\nfrom django.core.exceptions import PermissionDenied, SuspiciousOperation\nfrom django.db import transaction, IntegrityError\nfrom django.db.models import Max, Count,...
[ { "content": "import csv\nimport datetime\nimport random\nfrom collections import OrderedDict, defaultdict\n\nfrom django.contrib import messages\nfrom django.core.exceptions import PermissionDenied, SuspiciousOperation\nfrom django.db import transaction, IntegrityError\nfrom django.db.models import Max, Count,...
diff --git a/evap/contributor/templates/contributor_base.html b/evap/contributor/templates/contributor_base.html index d61f705fcd..6b9e5f7836 100644 --- a/evap/contributor/templates/contributor_base.html +++ b/evap/contributor/templates/contributor_base.html @@ -2,7 +2,7 @@ {% block title %}{% trans "Your EvaP" %} -...
angr__angr-1703
Unlink simprocedure missing errno behavior <!-- *Disclaimer: The angr suite is maintained by a small team of volunteers. While we cannot guarantee any timeliness for fixes and enhancements, we will do our best. For more real-time help with angr, from us and the community, join our [Slack.](http://angr.io/invite/)* ...
[ { "content": "import angr\n\n######################################\n# unlink\n######################################\n\nclass unlink(angr.SimProcedure): #pylint:disable=W0622\n #pylint:disable=arguments-differ\n\n def run(self, path_addr):\n # This is a dummy for now\n strlen = angr.SIM_PRO...
[ { "content": "import angr\n\n######################################\n# unlink\n######################################\n\nclass unlink(angr.SimProcedure): #pylint:disable=W0622\n #pylint:disable=arguments-differ\n\n def run(self, path_addr):\n # This is a dummy for now\n strlen = angr.SIM_PRO...
diff --git a/angr/procedures/linux_kernel/unlink.py b/angr/procedures/linux_kernel/unlink.py index 661907274d8..bda2591baf2 100644 --- a/angr/procedures/linux_kernel/unlink.py +++ b/angr/procedures/linux_kernel/unlink.py @@ -15,6 +15,10 @@ def run(self, path_addr): str_expr = self.state.memory.load(path_addr, ...
searxng__searxng-1974
Setting autocomplete to “-“ (none) does not save the preference in preference URL <!-- PLEASE FILL THESE FIELDS, IT REALLY HELPS THE MAINTAINERS OF SearXNG --> **Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG** <!-- If you are running on master branch using g...
[ { "content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n# lint: pylint\n\"\"\"Searx preferences implementation.\n\"\"\"\n\n# pylint: disable=useless-object-inheritance\n\nfrom base64 import urlsafe_b64encode, urlsafe_b64decode\nfrom zlib import compress, decompress\nfrom urllib.parse import parse_qs, urlenc...
[ { "content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n# lint: pylint\n\"\"\"Searx preferences implementation.\n\"\"\"\n\n# pylint: disable=useless-object-inheritance\n\nfrom base64 import urlsafe_b64encode, urlsafe_b64decode\nfrom zlib import compress, decompress\nfrom urllib.parse import parse_qs, urlenc...
diff --git a/searx/preferences.py b/searx/preferences.py index 8efa737fef0..3d23c9331f8 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -441,7 +441,7 @@ def parse_encoded_data(self, input_data: str): """parse (base64) preferences from request (``flask.request.form['preferences']``)""" ...
zestedesavoir__zds-site-3051
[beta 15.9] Erreur 500 lors d'une citation malencontreuse d'une réaction saison 2 Attention ce bug n'est pas un doublon de #3009 (l'exception levée est différente). Lien incriminé : https://beta.zestedesavoir.com/contenus/reactions/editer/?message=736718&pk=12 Pouf **erreur 500**. On ne devrait jamais avoir d'erreu...
[ { "content": "# coding: utf-8\nfrom datetime import datetime\nimport json as json_writer\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import PermissionDenied\nfrom django.db import transaction\nfrom django.http i...
[ { "content": "# coding: utf-8\nfrom datetime import datetime\nimport json as json_writer\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import PermissionDenied\nfrom django.db import transaction\nfrom django.http i...
diff --git a/zds/tutorialv2/tests/tests_views.py b/zds/tutorialv2/tests/tests_views.py index 13e44268af..9c99a17d4f 100644 --- a/zds/tutorialv2/tests/tests_views.py +++ b/zds/tutorialv2/tests/tests_views.py @@ -4787,7 +4787,7 @@ def test_last_reactions(self): tuto = PublishableContent.objects.get(pk=self.tut...
lhotse-speech__lhotse-1197
The 'speaker' field in the stcmds dataset is incorrect The file 20170001P00001I0001.wav is spoken by a female, and the file 20170001P00001A0001.wav is spoken by a male. But they have the same speaker ID P00001
[ { "content": "\"\"\"\nStcmds is an open-source Chinese Mandarin corpus by Surfingtech (www.surfing.ai), containing utterances from 855 speakers, 102600 utterances;\nPublicly available on https://www.openslr.org/resources/38\nST-CMDS (110 hours)\n\n\"\"\"\nimport logging\nimport os\nimport shutil\nimport tarfil...
[ { "content": "\"\"\"\nStcmds is an open-source Chinese Mandarin corpus by Surfingtech (www.surfing.ai), containing utterances from 855 speakers, 102600 utterances;\nPublicly available on https://www.openslr.org/resources/38\nST-CMDS (110 hours)\n\n\"\"\"\nimport logging\nimport os\nimport shutil\nimport tarfil...
diff --git a/lhotse/recipes/stcmds.py b/lhotse/recipes/stcmds.py index 3d1903729..ae46fc905 100644 --- a/lhotse/recipes/stcmds.py +++ b/lhotse/recipes/stcmds.py @@ -104,7 +104,7 @@ def prepare_stcmds( supervisions = [] for audio_path in path.rglob("**/*.wav"): idx = audio_path.stem - ...
qutebrowser__qutebrowser-6462
ValueError in _implied_cmd with invalid set-cmd-text binding When doing `:` after `:bind x set-cmd-text` on v2.2.1: ```pytb Traceback (most recent call last): File "/home/florian/proj/qutebrowser/git/qutebrowser/completion/completer.py", line 277, in _update_completion model = func(*args, info=info) File...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index 37401967779..69f3ca2cc37 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -173,6 +173,8 @@ def _implied_cmd(self, cmdline: str) -> Optional[str]: result = results[0] if result.cmd.name != "set...
deepset-ai__haystack-4175
Tiktoken not supported on Windows machines **Describe the bug** When using a Windows machine with a supported python version, `tiktoken` will not be used, although it is supported. **Error message** ``` OpenAI tiktoken module is not available for Python < 3.8,Linux ARM64 and AARCH64. Falling back to GPT2Tokenizer...
[ { "content": "import json\nimport logging\nimport os\nimport platform\nimport sys\nfrom typing import List, Optional, Tuple, Union\n\nimport requests\n\nfrom haystack import Document\nfrom haystack.environment import (\n HAYSTACK_REMOTE_API_BACKOFF_SEC,\n HAYSTACK_REMOTE_API_MAX_RETRIES,\n HAYSTACK_REM...
[ { "content": "import json\nimport logging\nimport os\nimport platform\nimport sys\nfrom typing import List, Optional, Tuple, Union\n\nimport requests\n\nfrom haystack import Document\nfrom haystack.environment import (\n HAYSTACK_REMOTE_API_BACKOFF_SEC,\n HAYSTACK_REMOTE_API_MAX_RETRIES,\n HAYSTACK_REM...
diff --git a/haystack/nodes/answer_generator/openai.py b/haystack/nodes/answer_generator/openai.py index f18571e534..003812a914 100644 --- a/haystack/nodes/answer_generator/openai.py +++ b/haystack/nodes/answer_generator/openai.py @@ -20,7 +20,7 @@ logger = logging.getLogger(__name__) -machine = platform.machine()...
pallets__werkzeug-2610
can't serve on unix socket if directory starts with `.` I have a strange problem that I can reproduce on werkzeug 2.2.3 and cannot reproduce on werkzeug 2.2.2. I'm trying to `flask run --host=unix://.path/to/socket` in development mode (so that I can front the server with an authenticating reverse proxy). This used...
[ { "content": "\"\"\"A WSGI and HTTP server for use **during development only**. This\nserver is convenient to use, but is not designed to be particularly\nstable, secure, or efficient. Use a dedicate WSGI server and HTTP\nserver when deploying to production.\n\nIt provides features like interactive debugging an...
[ { "content": "\"\"\"A WSGI and HTTP server for use **during development only**. This\nserver is convenient to use, but is not designed to be particularly\nstable, secure, or efficient. Use a dedicate WSGI server and HTTP\nserver when deploying to production.\n\nIt provides features like interactive debugging an...
diff --git a/CHANGES.rst b/CHANGES.rst index 707cf8c94..fe2d28007 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -28,7 +28,8 @@ Unreleased on Python >= 3.10. :issue:`2589` - The Watchdog reloader ignores file opened events. Bump the minimum version of Watchdog to 2.3.0. :issue:`2603` - +- When using a Uni...
open-telemetry__opentelemetry-python-contrib-1324
AsyncPG Instrumentation Span Names are too long when using query string **Is your feature request related to a problem?** Not a problem per se however, the `asyncpg` instrumentation uses sets span names as the query string which results in some very messing looking trace names in jaeger, datadog, etc and outright does...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c07bbb7444..c2ee7393e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 +- `opentelemetry-instrumentation-asyncpg` Fix high cardinality in the span name + ([#1324](https:/...
bokeh__bokeh-10375
[FEATURE] Allow defining custom format for NaNs in DataTable NumberFormatter Currently the DataTable NumberFormatter always renders NaNs and Nones as 'NaN' because that's what Numbro.js does. This is rarely desirable formatting so it would be nice to provide an option to override this.
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
diff --git a/bokeh/models/widgets/tables.py b/bokeh/models/widgets/tables.py index 189904c108e..e9e41f392f0 100644 --- a/bokeh/models/widgets/tables.py +++ b/bokeh/models/widgets/tables.py @@ -227,6 +227,10 @@ class NumberFormatter(StringFormatter): The language to use for formatting language-specific features (e....
PaddlePaddle__PaddleOCR-3809
识别模型处理中文时的问题 尝鲜装了最新的版本,发现训练模型和预测模型差异很大,找了半天问题发现又是[这个问题](https://github.com/PaddlePaddle/PaddleOCR/issues/214#issuecomment-645346661)(其实是忘了自己踩过的坑,以为修复了) 因此就想问问能不能把predict_rec和infer_rec文件里的代码同步下?(指处理当rec_char_type= "ch" 的情况下)看到论坛里不少人都有这个问题了,而且是**从去年到现在**。都过去这么久了真的想吐槽吐槽
[ { "content": "# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/tools/infer/predict_rec.py b/tools/infer/predict_rec.py index 4c16f929352..7401a16ee66 100755 --- a/tools/infer/predict_rec.py +++ b/tools/infer/predict_rec.py @@ -88,8 +88,8 @@ def __init__(self, args): def resize_norm_img(self, img, max_wh_ratio): imgC, imgH, imgW = self.rec_image_shape ...
pyg-team__pytorch_geometric-8663
`OnDiskDataset` doesn't apply transforms when used with `DataLoader` ### 🐛 Describe the bug Transforms don't get applied when batching `OnDiskDataset` with `DataLoader`, however they DO get applied if I just used `__getitem__` to get a single data point. ```python from torch_geometric.datasets import PCQM4Mv2 im...
[ { "content": "import os\nfrom typing import Any, Callable, Iterable, List, Optional, Sequence, Union\n\nfrom torch import Tensor\n\nfrom torch_geometric.data import Database, RocksDatabase, SQLiteDatabase\nfrom torch_geometric.data.data import BaseData\nfrom torch_geometric.data.database import Schema\nfrom tor...
[ { "content": "import os\nfrom typing import Any, Callable, Iterable, List, Optional, Sequence, Union\n\nfrom torch import Tensor\n\nfrom torch_geometric.data import Database, RocksDatabase, SQLiteDatabase\nfrom torch_geometric.data.data import BaseData\nfrom torch_geometric.data.database import Schema\nfrom tor...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e0ac84f5bb68..a180ccbd0681 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -59,6 +59,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Fixed +- Fixed a bug in which transforms were not applied for `OnDiskDataset` ([#8663](https:/...