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
⌀
electricitymaps__electricitymaps-contrib-1506
GB-NIR urls have changed ``` Traceback (most recent call last): File "/home/feeder/lib/fetch_data.py", line 130, in launch_parsers **parser_kwargs) File "/home/electricitymap/parsers/GB_NIR.py", line 258, in fetch_production thermal_df = create_thermal_df(thermal_data) File "/home/electricitymap/par...
[ { "content": "#!/usr/bin/env python3\n\nfrom collections import defaultdict\nfrom datetime import datetime\nfrom io import StringIO\nfrom operator import itemgetter\n\nimport logging\nimport pandas as pd\nimport requests\nfrom bs4 import BeautifulSoup\nfrom dateutil import parser, tz\n\nfrom .lib.validation imp...
[ { "content": "#!/usr/bin/env python3\n\nfrom collections import defaultdict\nfrom datetime import datetime\nfrom io import StringIO\nfrom operator import itemgetter\n\nimport logging\nimport pandas as pd\nimport requests\nfrom bs4 import BeautifulSoup\nfrom dateutil import parser, tz\n\nfrom .lib.validation imp...
diff --git a/parsers/GB_NIR.py b/parsers/GB_NIR.py index 26d0f32089..5379e28bbd 100644 --- a/parsers/GB_NIR.py +++ b/parsers/GB_NIR.py @@ -13,9 +13,9 @@ from .lib.validation import validate -thermal_url = 'http://www.soni.ltd.uk/DownloadCentre/aspx/FuelMix.aspx' -wind_url = 'http://www.soni.ltd.uk/DownloadCentre/a...
mathesar-foundation__mathesar-1836
Hide grouping separators by default in Number columns ## Current behavior - We default to displaying grouping separators (e.g. `1,234`) in _all_ numbers. - Users can turn off grouping separators by customizing their display options. - This "on-by-default" behavior, feels a bit strange for columns like primary keys...
[ { "content": "from django.core.exceptions import ImproperlyConfigured\nfrom rest_framework import serializers\n\nfrom mathesar.api.exceptions.mixins import MathesarErrorMessageMixin\nfrom mathesar.api.exceptions.validation_exceptions.exceptions import IncompatibleFractionDigitValuesAPIException\nfrom mathesar.d...
[ { "content": "from django.core.exceptions import ImproperlyConfigured\nfrom rest_framework import serializers\n\nfrom mathesar.api.exceptions.mixins import MathesarErrorMessageMixin\nfrom mathesar.api.exceptions.validation_exceptions.exceptions import IncompatibleFractionDigitValuesAPIException\nfrom mathesar.d...
diff --git a/mathesar/api/serializers/shared_serializers.py b/mathesar/api/serializers/shared_serializers.py index a429b5da55..591589d272 100644 --- a/mathesar/api/serializers/shared_serializers.py +++ b/mathesar/api/serializers/shared_serializers.py @@ -157,7 +157,7 @@ class AbstractNumberDisplayOptionSerializer(BaseD...
fedora-infra__bodhi-1520
alembic/versions/9241378c92ab_convert_the_builds_table_to_be_.py uses server default The ```alembic/versions/9241378c92ab_convert_the_builds_table_to_be_.py``` migration uses a server default, which is not allowed by BDR: ``` [bowlofeggs@bodhi-backend01 ~][STG]$ sudo /usr/bin/alembic -c /etc/bodhi/alembic.ini upgra...
[ { "content": "\"\"\"Convert the builds table to be polymorphic.\n\nRevision ID: 9241378c92ab\nRevises: 12d3e8695f90\nCreate Date: 2017-04-06 20:37:24.766366\n\"\"\"\nfrom alembic import op\nimport sqlalchemy as sa\n\n\n# revision identifiers, used by Alembic.\nrevision = '9241378c92ab'\ndown_revision = '12d3e86...
[ { "content": "\"\"\"Convert the builds table to be polymorphic.\n\nRevision ID: 9241378c92ab\nRevises: 12d3e8695f90\nCreate Date: 2017-04-06 20:37:24.766366\n\"\"\"\nfrom alembic import op\nimport sqlalchemy as sa\n\n\n# revision identifiers, used by Alembic.\nrevision = '9241378c92ab'\ndown_revision = '12d3e86...
diff --git a/alembic/versions/9241378c92ab_convert_the_builds_table_to_be_.py b/alembic/versions/9241378c92ab_convert_the_builds_table_to_be_.py index ac44f65b65..1861a33869 100644 --- a/alembic/versions/9241378c92ab_convert_the_builds_table_to_be_.py +++ b/alembic/versions/9241378c92ab_convert_the_builds_table_to_be_....
pantsbuild__pants-20716
`[pex].emit_warnings` docs show `>` literally instead of `>` **Describe the bug** https://www.pantsbuild.org/2.20/reference/subsystems/pex#emit_warnings ![image](https://github.com/pantsbuild/pants/assets/1203825/3c7f7152-3f56-4d74-9e49-fe5ad4d3e7ca) **Pants version** 2.20 **OS** N/A **Addition...
[ { "content": "# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import annotations\n\nimport os\nfrom dataclasses import dataclass\nfrom pathlib import PurePath\nfrom typing import Mapping\n\nfrom pants.core.sub...
[ { "content": "# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import annotations\n\nimport os\nfrom dataclasses import dataclass\nfrom pathlib import PurePath\nfrom typing import Mapping\n\nfrom pants.core.sub...
diff --git a/src/python/pants/backend/python/util_rules/pex_environment.py b/src/python/pants/backend/python/util_rules/pex_environment.py index a67eaf42733..5137179f5ba 100644 --- a/src/python/pants/backend/python/util_rules/pex_environment.py +++ b/src/python/pants/backend/python/util_rules/pex_environment.py @@ -89,...
streamlink__streamlink-925
BBC iPlayer plugin cannot find VPID ### Checklist - [x] This is a bug report. - [ ] This is a feature request. - [ ] This is a plugin (improvement) request. - [ ] I have read the contribution guidelines. ### Description The BBC IPlayer plugin cannot find the VPID for valid urls. ### Reproduction steps / ...
[ { "content": "from __future__ import print_function\n\nimport base64\nimport re\nfrom functools import partial\nfrom hashlib import sha1\n\nfrom streamlink.plugin import Plugin\nfrom streamlink.plugin.api import http\nfrom streamlink.plugin.api import validate\nfrom streamlink.stream import HDSStream\nfrom stre...
[ { "content": "from __future__ import print_function\n\nimport base64\nimport re\nfrom functools import partial\nfrom hashlib import sha1\n\nfrom streamlink.plugin import Plugin\nfrom streamlink.plugin.api import http\nfrom streamlink.plugin.api import validate\nfrom streamlink.stream import HDSStream\nfrom stre...
diff --git a/src/streamlink/plugins/bbciplayer.py b/src/streamlink/plugins/bbciplayer.py index d4c37ad9db5..f40588305d0 100644 --- a/src/streamlink/plugins/bbciplayer.py +++ b/src/streamlink/plugins/bbciplayer.py @@ -20,7 +20,7 @@ class BBCiPlayer(Plugin): live/(?P<channel_name>\w+) ) """, re...
mkdocs__mkdocs-3568
Hooks scripts can't really use imports It would be nice if the files that are used as hooks would have the ability to import files relative to them or maybe relative to the root. But currently the only way to achieve this is with this workaround first: ```python import sys, os sys.path.insert(0, os.path.dirname(__...
[ { "content": "from __future__ import annotations\n\nimport functools\nimport ipaddress\nimport logging\nimport os\nimport string\nimport sys\nimport traceback\nimport types\nimport warnings\nfrom collections import Counter, UserString\nfrom types import SimpleNamespace\nfrom typing import (\n Any,\n Calla...
[ { "content": "from __future__ import annotations\n\nimport functools\nimport ipaddress\nimport logging\nimport os\nimport string\nimport sys\nimport traceback\nimport types\nimport warnings\nfrom collections import Counter, UserString\nfrom types import SimpleNamespace\nfrom typing import (\n Any,\n Calla...
diff --git a/docs/user-guide/configuration.md b/docs/user-guide/configuration.md index 607bcf5027..6a7bb581c7 100644 --- a/docs/user-guide/configuration.md +++ b/docs/user-guide/configuration.md @@ -804,7 +804,7 @@ hooks: - my_hooks.py ``` -Then the file *my_hooks.py* can contain any [plugin event handlers](../de...
python-poetry__poetry-4522
'install-poetry.py' throws 'ModuleNotFoundError' if 'pip' is not available. <!-- Hi there! Thank you for discovering and submitting an issue. Before you submit this; let's make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill these ...
[ { "content": "\"\"\"\nThis script will install Poetry and its dependencies.\n\nIt does, in order:\n\n - Downloads the virtualenv package to a temporary directory and add it to sys.path.\n - Creates a virtual environment in the correct OS data dir which will be\n - `%APPDATA%\\\\pypoetry` on Windows\n ...
[ { "content": "\"\"\"\nThis script will install Poetry and its dependencies.\n\nIt does, in order:\n\n - Downloads the virtualenv package to a temporary directory and add it to sys.path.\n - Creates a virtual environment in the correct OS data dir which will be\n - `%APPDATA%\\\\pypoetry` on Windows\n ...
diff --git a/install-poetry.py b/install-poetry.py index 4b47d82da4d..c532a936ff8 100644 --- a/install-poetry.py +++ b/install-poetry.py @@ -516,10 +516,11 @@ def make_env(self, version: str) -> Path: env_path = self._data_dir.joinpath("venv") with temporary_directory() as tmp_dir: - subp...
hylang__hy-1415
Make `help()` recogonize macros as well It would be nice to have `help` recogonize macros as well. Ideas welcome...
[ { "content": "# Copyright 2017 the authors.\n# This file is part of Hy, which is free software licensed under the Expat\n# license. See the LICENSE.\n\nfrom inspect import getargspec, formatargspec\nfrom hy.models import replace_hy_obj, HyExpression, HySymbol\n\nfrom hy.errors import HyTypeError, HyMacroExpansi...
[ { "content": "# Copyright 2017 the authors.\n# This file is part of Hy, which is free software licensed under the Expat\n# license. See the LICENSE.\n\nfrom inspect import getargspec, formatargspec\nfrom hy.models import replace_hy_obj, HyExpression, HySymbol\n\nfrom hy.errors import HyTypeError, HyMacroExpansi...
diff --git a/NEWS b/NEWS index 4be51d4ad..15ae2ede6 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,7 @@ Changes from 0.13.0 * `while` loops may now contain an `else` clause, like `for` loops * `xi` from `hy.extra.anaphoric` is now the `#%` tag macro * `#%` works on any expression and has a new `&kwargs` paramete...
googleapis__python-bigquery-925
Can't use Pandas to upload a REPEATED field (e.g. list of strings) I am trying to add a list of strings stored in a pandas Dataframe to a BigQuery table with a `REPEATED` field. When running this code: ``` import pandas as pd from google.cloud import bigquery from google.oauth2 import service_account df = pd.D...
[ { "content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
[ { "content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
diff --git a/google/cloud/bigquery/_pandas_helpers.py b/google/cloud/bigquery/_pandas_helpers.py index ab58b1729..29139ae09 100644 --- a/google/cloud/bigquery/_pandas_helpers.py +++ b/google/cloud/bigquery/_pandas_helpers.py @@ -844,7 +844,13 @@ def dataframe_to_json_generator(dataframe): output = {} ...
ansible__ansible-41408
None becomes "" when assigned to variable <!--- Verify first that your issue/request is not already reported on GitHub. THIS FORM WILL BE READ BY A MACHINE, COMPLETE ALL SECTIONS AS DESCRIBED. Also test if the latest release, and devel branch are affected too. ALWAYS add information AFTER (OUTSIDE) these html comme...
[ { "content": "# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the Licen...
[ { "content": "# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the Licen...
diff --git a/lib/ansible/template/__init__.py b/lib/ansible/template/__init__.py index 9f03a5a40d71f9..6c7ef82899697d 100644 --- a/lib/ansible/template/__init__.py +++ b/lib/ansible/template/__init__.py @@ -609,8 +609,13 @@ def _convert_bare_variable(self, variable, bare_deprecated): def _finalize(self, thing): ...
celery__celery-5527
Celery does not consider authSource on mongodb backend URLs Version: Celery 4.0.2 (from looking at the changes since then it seems there is no change addressing this issue here: https://github.com/celery/celery/commits/master/celery/backends/mongodb.py ) (Edit) Confirmed with the following versions as well: amqp==2...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"MongoDB result store backend.\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nfrom datetime import datetime, timedelta\n\nfrom kombu.exceptions import EncodeError\nfrom kombu.utils.objects import cached_property\nfrom kombu.utils.url import maybe_s...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"MongoDB result store backend.\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nfrom datetime import datetime, timedelta\n\nfrom kombu.exceptions import EncodeError\nfrom kombu.utils.objects import cached_property\nfrom kombu.utils.url import maybe_s...
diff --git a/celery/backends/mongodb.py b/celery/backends/mongodb.py index 1a3b89ca22a..47c05a9d27d 100644 --- a/celery/backends/mongodb.py +++ b/celery/backends/mongodb.py @@ -271,7 +271,10 @@ def _get_database(self): conn = self._get_connection() db = conn[self.database_name] if self.user a...
frappe__frappe-24448
Restoring encrypted backup failure ## Description of the issue - Trying to restore an encrypted backup for a site fails if the `gpg` package is not installed and the default failure message is thrown which is ` Decryption failed due to invalid encryption key ` even with the correct encryption key. A better error mes...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\nimport contextlib\n\n# imports - standard imports\nimport gzip\nimport os\nimport sys\nfrom calendar import timegm\nfrom datetime import datetime\nfrom glob import glob\nfrom shutil import which\n\n#...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\nimport contextlib\n\n# imports - standard imports\nimport gzip\nimport os\nimport sys\nfrom calendar import timegm\nfrom datetime import datetime\nfrom glob import glob\nfrom shutil import which\n\n#...
diff --git a/frappe/utils/backups.py b/frappe/utils/backups.py index ac3414d80520..295aff2b4d6a 100644 --- a/frappe/utils/backups.py +++ b/frappe/utils/backups.py @@ -661,13 +661,15 @@ def decrypt_backup(file_path: str, passphrase: str): decrypted_file=file_path, ) frappe.utils.execute_in_shell(command) - yiel...
quantumlib__Cirq-4003
optimized_for_sycamore fails when you measure more than 16 qubits ```python def thing(): q = cirq.LineQubit.range(17) c = cirq.Circuit(cirq.H.on_each(*q), cirq.measure(*q, key='z')) c = cg.optimized_for_sycamore(c) return c thing() ``` ``` -------------------------------------------------...
[ { "content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/cirq/google/optimizers/optimize_for_sycamore_test.py b/cirq/google/optimizers/optimize_for_sycamore_test.py index 1be52747ec0..0baa93497aa 100644 --- a/cirq/google/optimizers/optimize_for_sycamore_test.py +++ b/cirq/google/optimizers/optimize_for_sycamore_test.py @@ -19,15 +19,15 @@ import cirq.google as ...
aio-libs__aiohttp-4481
ClientResponse.get_encoding() throws TypeError if it hasn't been read ## Long story short `ClientResponse.get_encoding()` throws `TypeError: object of type 'NoneType' has no len()` if we don't first call `text()` or `json()` to read from it, i.e. `_body is None` Related: #4112 <!-- Please describe your problem...
[ { "content": "import asyncio\nimport codecs\nimport io\nimport re\nimport sys\nimport traceback\nimport warnings\nfrom hashlib import md5, sha1, sha256\nfrom http.cookies import CookieError, Morsel, SimpleCookie\nfrom types import MappingProxyType, TracebackType\nfrom typing import ( # noqa\n TYPE_CHECKING,...
[ { "content": "import asyncio\nimport codecs\nimport io\nimport re\nimport sys\nimport traceback\nimport warnings\nfrom hashlib import md5, sha1, sha256\nfrom http.cookies import CookieError, Morsel, SimpleCookie\nfrom types import MappingProxyType, TracebackType\nfrom typing import ( # noqa\n TYPE_CHECKING,...
diff --git a/CHANGES/4214.bugfix b/CHANGES/4214.bugfix new file mode 100644 index 00000000000..57b35c9c4a5 --- /dev/null +++ b/CHANGES/4214.bugfix @@ -0,0 +1 @@ +Raising RuntimeError when trying to get encoding from not read body diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 39c79e5f583..4f855a16ad1 100644 ---...
Project-MONAI__MONAI-7586
Auto3DSeg AutoRunner HPO training would save model checkpoint to wrong locations **Describe the bug** When the NNI HPO process starts, it will first use `generate` to generate templated algo with the new hyper-parameters and then `run_algo` with NNI to do `algo.train()`. However, because the generated algo doesn't u...
[ { "content": "# Copyright (c) MONAI Consortium\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable la...
[ { "content": "# Copyright (c) MONAI Consortium\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable la...
diff --git a/monai/apps/auto3dseg/hpo_gen.py b/monai/apps/auto3dseg/hpo_gen.py index 688bf2b916..b755b99feb 100644 --- a/monai/apps/auto3dseg/hpo_gen.py +++ b/monai/apps/auto3dseg/hpo_gen.py @@ -193,7 +193,9 @@ def generate(self, output_folder: str = ".") -> None: self.obj_filename = os.path.join(write_path, "...
rootpy__rootpy-748
Error when using root_open: 'TDirectory' object has no attribute 'func' As above: `AttributeError: 'TDirectory' object has no attribute 'func'`
[ { "content": "# Copyright 2012 the rootpy developers\n# distributed under the terms of the GNU General Public License\n\"\"\"\n:py:mod:`rootpy.ROOT`\n=====================\n\nThis module is intended to be a drop-in replacement for ordinary\nPyROOT imports by mimicking PyROOT's interface. If you find a case wher...
[ { "content": "# Copyright 2012 the rootpy developers\n# distributed under the terms of the GNU General Public License\n\"\"\"\n:py:mod:`rootpy.ROOT`\n=====================\n\nThis module is intended to be a drop-in replacement for ordinary\nPyROOT imports by mimicking PyROOT's interface. If you find a case wher...
diff --git a/rootpy/ROOT.py b/rootpy/ROOT.py index 4553253f..70d59f0a 100644 --- a/rootpy/ROOT.py +++ b/rootpy/ROOT.py @@ -130,8 +130,7 @@ def R(self): gPad = proxy_global("gPad") gVirtualX = proxy_global("gVirtualX") - if ROOT_VERSION < (5, 32, 0): # pragma: no cover - # handle versions of ROOT ...
hylang__hy-110
Implement integer division operator Hy doesn't seem to know about Python's integer division operator ("//") yet.
[ { "content": "# -*- encoding: utf-8 -*-\n#\n# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>\n# Copyright (c) 2013 Julien Danjou <julien@danjou.info>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the \"Softwar...
[ { "content": "# -*- encoding: utf-8 -*-\n#\n# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>\n# Copyright (c) 2013 Julien Danjou <julien@danjou.info>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the \"Softwar...
diff --git a/hy/compiler.py b/hy/compiler.py index d1d477275..9b1c33736 100644 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -708,6 +708,7 @@ def compile_compare_op_expression(self, expression): @builds("%") @builds("-") @builds("/") + @builds("//") @builds("*") @checkargs(min=2) def com...
hedyorg__hedy-1146
Accessing a level that is not defined throws a 500 error For example: http://localhost:5000/hedy/23 There is a check for this in `hedyweb.py` but before the execution reaches it, the endpoint at `app.py` throws. We should add tighter validation in the `app.py` endpoint for requesting a level (`defaults = level_defau...
[ { "content": "import sys\nfrom website.yaml_file import YamlFile\nif(sys.version_info.major < 3 or sys.version_info.minor < 6):\n print('Hedy requires Python 3.6 or newer to run. However, your version of Python is', '.'.join([str(sys.version_info.major), str(sys.version_info.minor), str(sys.version_info.micr...
[ { "content": "import sys\nfrom website.yaml_file import YamlFile\nif(sys.version_info.major < 3 or sys.version_info.minor < 6):\n print('Hedy requires Python 3.6 or newer to run. However, your version of Python is', '.'.join([str(sys.version_info.major), str(sys.version_info.minor), str(sys.version_info.micr...
diff --git a/app.py b/app.py index 5d1e5eebd9d..d936b14da0b 100644 --- a/app.py +++ b/app.py @@ -766,6 +766,8 @@ def index(level, step): adventures = load_adventures_per_level(requested_lang(), level) level_defaults_for_lang = LEVEL_DEFAULTS[requested_lang()] + if level not in level_defaults_for_lang.lev...
pyg-team__pytorch_geometric-8207
unused `group` parameter in `HGTConv` still documented ### 📚 Describe the documentation issue #7117 replaces `HGTConv` with the implementation done for the faster `FastHGTConv`. In the process of doing so, the `group` parameter has been removed falling back to the default `sum` operation. (@puririshi98: this was inte...
[ { "content": "import math\nfrom typing import Dict, List, Optional, Tuple, Union\n\nimport torch\nfrom torch import Tensor\nfrom torch.nn import Parameter\n\nfrom torch_geometric.nn.conv import MessagePassing\nfrom torch_geometric.nn.dense import HeteroDictLinear, HeteroLinear\nfrom torch_geometric.nn.inits imp...
[ { "content": "import math\nfrom typing import Dict, List, Optional, Tuple, Union\n\nimport torch\nfrom torch import Tensor\nfrom torch.nn import Parameter\n\nfrom torch_geometric.nn.conv import MessagePassing\nfrom torch_geometric.nn.dense import HeteroDictLinear, HeteroLinear\nfrom torch_geometric.nn.inits imp...
diff --git a/torch_geometric/nn/conv/hgt_conv.py b/torch_geometric/nn/conv/hgt_conv.py index 5fcdf244388a..8404220ae560 100644 --- a/torch_geometric/nn/conv/hgt_conv.py +++ b/torch_geometric/nn/conv/hgt_conv.py @@ -37,10 +37,6 @@ class HGTConv(MessagePassing): information. heads (int, optional): N...
mars-project__mars-221
[BUG] Failed to execute one of the multiple outputs <!-- Thank you for your contribution! Please review https://github.com/mars-project/mars/blob/master/CONTRIBUTING.rst before opening an issue. --> **Describe the bug** Operator like `mt.linalg.qr` has multiple outputs, if execute one of the output tensors, it...
[ { "content": "# Copyright 1999-2018 Alibaba Group Holding Ltd.\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 1999-2018 Alibaba Group Holding Ltd.\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/mars/executor.py b/mars/executor.py index d55c3c9fc5..12a3cd36b2 100644 --- a/mars/executor.py +++ b/mars/executor.py @@ -239,6 +239,9 @@ def _execute_operand(self, op): with self._lock: for output in itertools.chain(*[op.outputs for op in ops]): + # the o...
modin-project__modin-4975
PERF: doesn't need to call `apply` in virtual partition' `drain_call_queue` if `call_queue` is empty
[ { "content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ...
[ { "content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ...
diff --git a/docs/release_notes/release_notes-0.16.0.rst b/docs/release_notes/release_notes-0.16.0.rst index 7fc3d0a95c0..b916b3f049b 100644 --- a/docs/release_notes/release_notes-0.16.0.rst +++ b/docs/release_notes/release_notes-0.16.0.rst @@ -73,6 +73,7 @@ Key Features and Updates * PERF-#4886: Use lazy index and ...
nf-core__tools-1924
Template for test yaml is incorrect when using "contains" ### Description of the bug "contains" in `test_yml_builder.py` in both `subworklows` and `modules` is currently outputting a string in the yml but it needs to be an array of strings. See https://github.com/nf-core/modules/pull/2204 ### Command used and ...
[ { "content": "import filecmp\nimport logging\nimport os\nimport shutil\nfrom importlib.resources import path\nfrom pathlib import Path\n\nimport git\nimport rich\nimport rich.progress\nfrom git.exc import GitCommandError, InvalidGitRepositoryError\n\nimport nf_core.modules.module_utils\nimport nf_core.modules.m...
[ { "content": "import filecmp\nimport logging\nimport os\nimport shutil\nfrom importlib.resources import path\nfrom pathlib import Path\n\nimport git\nimport rich\nimport rich.progress\nfrom git.exc import GitCommandError, InvalidGitRepositoryError\n\nimport nf_core.modules.module_utils\nimport nf_core.modules.m...
diff --git a/nf_core/modules/modules_repo.py b/nf_core/modules/modules_repo.py index 85e4a5b573..81761cbcf5 100644 --- a/nf_core/modules/modules_repo.py +++ b/nf_core/modules/modules_repo.py @@ -381,6 +381,10 @@ def install_subworkflow(self, subworkflow_name, install_dir, commit): # Copy the files from the r...
sagemath__sage-36098
System package information and spkg-configure for mathjax <div id="comment:0"></div> After #31035, our `mathjax` spkg is only used in our sphinx documentation. We currently ship a "stripped" version of mathjax 2.7.4 (see `build/pkgs/mathjax/spkg-src`; #25032, #18596); #25833 proposes an upgrade to 3.x. We add an `sp...
[ { "content": "r\"\"\"\nSphinx build configuration\n\nThis file contains configuration needed to customize Sphinx input and output\nbehavior.\n\"\"\"\n\n# ****************************************************************************\n# Copyright (C) 2022 Kwankyu Lee <ekwankyu@gmail.com>\n#\n# This program i...
[ { "content": "r\"\"\"\nSphinx build configuration\n\nThis file contains configuration needed to customize Sphinx input and output\nbehavior.\n\"\"\"\n\n# ****************************************************************************\n# Copyright (C) 2022 Kwankyu Lee <ekwankyu@gmail.com>\n#\n# This program i...
diff --git a/build/pkgs/mathjax/distros/gentoo.txt b/build/pkgs/mathjax/distros/gentoo.txt new file mode 100644 index 00000000000..e0d633a9b98 --- /dev/null +++ b/build/pkgs/mathjax/distros/gentoo.txt @@ -0,0 +1 @@ +>=dev-libs/mathjax-3 diff --git a/build/pkgs/mathjax/spkg-configure.m4 b/build/pkgs/mathjax/spkg-configu...
tensorflow__addons-248
Build fails because of optimizers Some tests for optimizers fail because of this commit https://github.com/tensorflow/tensorflow/commit/2cb745ef1e0b4082a618c81274fca39be0cb4fc6. It can be fixed by replacing `self._get_hyper('epsilon')` with `self.epsilon` when trying to access the value of epsilon. For more details, pl...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/tensorflow_addons/optimizers/lazy_adam.py b/tensorflow_addons/optimizers/lazy_adam.py index 698b3c2a72..4efe4416b3 100644 --- a/tensorflow_addons/optimizers/lazy_adam.py +++ b/tensorflow_addons/optimizers/lazy_adam.py @@ -55,7 +55,7 @@ def _resource_apply_sparse(self, grad, var, indices): local_st...
kubeflow__pipelines-5650
[sdk] `kfp run submit` fails when paramerer values contain '=' with "dictionary update sequence element" ### Environment * KFP version: <!-- For more information, see an overview of KFP installation options: https://www.kubeflow.org/docs/pipelines/installation/overview/. --> * KFP SDK version: 1.4.0, 1.5.0 <!-...
[ { "content": "# Copyright 2018 The Kubeflow Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b...
[ { "content": "# Copyright 2018 The Kubeflow Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b...
diff --git a/sdk/python/kfp/cli/run.py b/sdk/python/kfp/cli/run.py index 95ef32ef3b2..732bf177508 100644 --- a/sdk/python/kfp/cli/run.py +++ b/sdk/python/kfp/cli/run.py @@ -76,7 +76,8 @@ def submit(ctx, experiment_name, run_name, package_file, pipeline_id, pipeline_n click.echo('You must provide one of [packag...
horovod__horovod-2965
PyTorch sparse allreduce fails with torch nightly Repro: ``` pip install --no-cache-dir --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html # install horovod horovodrun -np 2 pytest -vs "test/parallel/test_torch.py::TorchTests::test_async_sparse_allreduce" ``` The test h...
[ { "content": "# Copyright 2019 Uber Technologies, Inc. All Rights Reserved.\n# Modifications copyright Microsoft\n# Modifications copyright (C) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance...
[ { "content": "# Copyright 2019 Uber Technologies, Inc. All Rights Reserved.\n# Modifications copyright Microsoft\n# Modifications copyright (C) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance...
diff --git a/horovod/torch/mpi_ops.py b/horovod/torch/mpi_ops.py index 8a177472ca..337396a4cb 100644 --- a/horovod/torch/mpi_ops.py +++ b/horovod/torch/mpi_ops.py @@ -518,8 +518,11 @@ def sparse_allreduce_async(tensor, name, op): values_handle = allgather_async(t._values(), name=f'{name}.values') def handle...
urllib3__urllib3-734
Defensively close connections Generally speaking, if we hit an exception when working with a connection we should assume that the connection is dead. We've not been defensive enough with this in the past, and that attitude pretty much just leads us to a constant cycle of bug-squashing each time we discover a new connec...
[ { "content": "from contextlib import contextmanager\nimport zlib\nimport io\nfrom socket import timeout as SocketTimeout\n\nfrom ._collections import HTTPHeaderDict\nfrom .exceptions import (\n ProtocolError, DecodeError, ReadTimeoutError, ResponseNotChunked\n)\nfrom .packages.six import string_types as base...
[ { "content": "from contextlib import contextmanager\nimport zlib\nimport io\nfrom socket import timeout as SocketTimeout\n\nfrom ._collections import HTTPHeaderDict\nfrom .exceptions import (\n ProtocolError, DecodeError, ReadTimeoutError, ResponseNotChunked\n)\nfrom .packages.six import string_types as base...
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 20b6b328a3..448a4ab864 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -181,5 +181,8 @@ In chronological order: * John Vandenberg <jayvdb@gmail.com> * Python 2.6 fixes; pyflakes and pep8 compliance +* Andy Caldwell <andy.m.caldwell@googlemail.com> + ...
tornadoweb__tornado-2772
Documentation mismatch for parent process exit in tornado.process.fork_processes Docstring mismatches with parent process exit on success in `tornado.process.fork_processes`: > In the parent process, ``fork_processes`` returns None if all child processes have exited normally... The behavior was changed in 4c23ba7...
[ { "content": "#\n# Copyright 2011 Facebook\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "#\n# Copyright 2011 Facebook\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/tornado/process.py b/tornado/process.py index 9e4c194af5..422365986b 100644 --- a/tornado/process.py +++ b/tornado/process.py @@ -110,9 +110,8 @@ def fork_processes( number between 0 and ``num_processes``. Processes that exit abnormally (due to a signal or non-zero exit status) are restarted ...
explosion__spaCy-2880
Error should be raised if you try to set conflicting doc.ents ## How to reproduce the behaviour ```python import spacy from spacy.tokens import Span nlp = spacy.load('en_core_web_sm') doc = nlp(u"Louisiana Office of Conservation") print(doc.ents[0], doc.ents[0].label_) entity = Span(doc, 0, 1, label=391L) pri...
[ { "content": "# coding: utf8\nfrom __future__ import unicode_literals\n\nimport os\nimport warnings\nimport inspect\n\n\ndef add_codes(err_cls):\n \"\"\"Add error codes to string messages via class attribute names.\"\"\"\n class ErrorsWithCodes(object):\n def __getattribute__(self, code):\n ...
[ { "content": "# coding: utf8\nfrom __future__ import unicode_literals\n\nimport os\nimport warnings\nimport inspect\n\n\ndef add_codes(err_cls):\n \"\"\"Add error codes to string messages via class attribute names.\"\"\"\n class ErrorsWithCodes(object):\n def __getattribute__(self, code):\n ...
diff --git a/spacy/errors.py b/spacy/errors.py index 7c0f0efd3b5..138de0f5716 100644 --- a/spacy/errors.py +++ b/spacy/errors.py @@ -250,7 +250,9 @@ class Errors(object): E096 = ("Invalid object passed to displaCy: Can only visualize Doc or " "Span objects, or dicts if set to manual=True.") E097...
microsoft__Qcodes-5914
Random failure in do_nd test Looks like some test may be leaking a non closed awg instrument ``` =================================== FAILURES =================================== ______________________________ test_datasaver_1d _______________________________ [gw1] linux -- Python 3.10.13 /opt/hostedtoolcache/Pyth...
[ { "content": "\"\"\"Visa instrument driver based on pyvisa.\"\"\"\nfrom __future__ import annotations\n\nimport logging\nimport warnings\nfrom collections.abc import Sequence\nfrom importlib.resources import as_file, files\nfrom typing import Any\nfrom weakref import finalize\n\nimport pyvisa\nimport pyvisa.con...
[ { "content": "\"\"\"Visa instrument driver based on pyvisa.\"\"\"\nfrom __future__ import annotations\n\nimport logging\nimport warnings\nfrom collections.abc import Sequence\nfrom importlib.resources import as_file, files\nfrom typing import Any\nfrom weakref import finalize\n\nimport pyvisa\nimport pyvisa.con...
diff --git a/src/qcodes/instrument/visa.py b/src/qcodes/instrument/visa.py index e6f4d4f27f6..d408fbad6d1 100644 --- a/src/qcodes/instrument/visa.py +++ b/src/qcodes/instrument/visa.py @@ -28,12 +28,16 @@ def _close_visa_handle( handle: pyvisa.resources.MessageBasedResource, name: str ) -> None: - log.info( -...
PaddlePaddle__Paddle2ONNX-12
Fix travis-ci problems Travis-ci always failed
[ { "content": "# Copyright (c) 2018 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) 2018 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/requirements.txt b/requirements.txt index b74e2d4bd..c1753bfa9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ protobuf==3.5.1 pytest-runner -onnx==1.0 +onnx==1.1.1 diff --git a/setup.sh b/setup.sh index 8427d6404..8967ae78c 100644 --- a/setup.sh +++ b/setup.sh @@ -2,6 +2,7 @@ # i...
getsentry__sentry-48159
Unable to disable issue alert notifications for specific projects on old sentry accounts. ### Environment SaaS (https://sentry.io/) ### Version _No response_ ### Link _No response_ ### DSN _No response_ ### Steps to Reproduce In old accounts the default option for Fine tuning issue alert notifications was `--`...
[ { "content": "from rest_framework.exceptions import PermissionDenied\nfrom rest_framework.request import Request\n\nfrom sentry import features\nfrom sentry.api.bases.organization import OrganizationAlertRulePermission, OrganizationEndpoint\nfrom sentry.api.bases.project import ProjectAlertRulePermission, Proje...
[ { "content": "from rest_framework.exceptions import PermissionDenied\nfrom rest_framework.request import Request\n\nfrom sentry import features\nfrom sentry.api.bases.organization import OrganizationAlertRulePermission, OrganizationEndpoint\nfrom sentry.api.bases.project import ProjectAlertRulePermission, Proje...
diff --git a/src/sentry/incidents/endpoints/bases.py b/src/sentry/incidents/endpoints/bases.py index 8fa529fc05fbd3..4c2cee17a4c158 100644 --- a/src/sentry/incidents/endpoints/bases.py +++ b/src/sentry/incidents/endpoints/bases.py @@ -15,7 +15,10 @@ def convert_args(self, request: Request, alert_rule_id, *args, **kwarg...
pennersr__django-allauth-1107
Care about Twitch's request rate limit Hi, The Twitch API documentation suggests sending the client ID in each request to avoid getting request-limited too early, which is not implemented currently (see https://github.com/justintv/Twitch-API#rate-limits). I'm not quite sure how this quota/whatever system works, here i...
[ { "content": "import requests\n\nfrom allauth.socialaccount.providers.oauth2.views import (OAuth2Adapter,\n OAuth2LoginView,\n OAuth2CallbackView)\n\nfrom .provider import TwitchProvider\n\n\nclass ...
[ { "content": "import requests\n\nfrom allauth.socialaccount.providers.oauth2.views import (OAuth2Adapter,\n OAuth2LoginView,\n OAuth2CallbackView)\n\nfrom .provider import TwitchProvider\n\n\nclass ...
diff --git a/allauth/socialaccount/providers/twitch/views.py b/allauth/socialaccount/providers/twitch/views.py index 47005d585e..b52db3bb30 100644 --- a/allauth/socialaccount/providers/twitch/views.py +++ b/allauth/socialaccount/providers/twitch/views.py @@ -15,7 +15,7 @@ class TwitchOAuth2Adapter(OAuth2Adapter): ...
google__openhtf-341
mfg_inspector output broken. Traceback (most recent call last): File "C:\Users\CameraLab02\venv\lib\site-packages\openhtf__init__.py", line 110, in OutputTestRecord output_cb(record) File "C:\Users\CameraLab02\venv\lib\site-packages\openhtf\io\output\mfg_inspector.py", line 469, in **call** testrun = _TestR...
[ { "content": "\"\"\"Output or upload a TestRun proto for mfg-inspector.com\n\nMULTIDIM_JSON schema:\n{\n \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n \"title\": \"Multi-dimensional test parameter\",\n \"type\": \"object\",\n \"properties\": {\n \"outcome\": {\"enum\": [\"PASS\", \"FAIL\", ...
[ { "content": "\"\"\"Output or upload a TestRun proto for mfg-inspector.com\n\nMULTIDIM_JSON schema:\n{\n \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n \"title\": \"Multi-dimensional test parameter\",\n \"type\": \"object\",\n \"properties\": {\n \"outcome\": {\"enum\": [\"PASS\", \"FAIL\", ...
diff --git a/openhtf/io/output/mfg_inspector.py b/openhtf/io/output/mfg_inspector.py index 65f52bddc..3fe83c4a5 100644 --- a/openhtf/io/output/mfg_inspector.py +++ b/openhtf/io/output/mfg_inspector.py @@ -256,7 +256,8 @@ def _ExtractParameters(record, testrun, used_parameter_names): attachment = testrun.info_p...
internetarchive__openlibrary-7364
Author search should boost results that exactly match user search Subtask of #7035 ### Stakeholders @tfmorris
[ { "content": "from datetime import datetime\nimport logging\nfrom typing import Callable, Union\n\nfrom openlibrary.plugins.worksearch.schemes import SearchScheme\n\nlogger = logging.getLogger(\"openlibrary.worksearch\")\n\n\nclass AuthorSearchScheme(SearchScheme):\n universe = ['type:author']\n all_field...
[ { "content": "from datetime import datetime\nimport logging\nfrom typing import Callable, Union\n\nfrom openlibrary.plugins.worksearch.schemes import SearchScheme\n\nlogger = logging.getLogger(\"openlibrary.worksearch\")\n\n\nclass AuthorSearchScheme(SearchScheme):\n universe = ['type:author']\n all_field...
diff --git a/openlibrary/plugins/worksearch/code.py b/openlibrary/plugins/worksearch/code.py index 5aceb03a7d6..0eb85750c71 100644 --- a/openlibrary/plugins/worksearch/code.py +++ b/openlibrary/plugins/worksearch/code.py @@ -610,7 +610,6 @@ def get_results(self, q, offset=0, limit=100, fields='*'): offset=...
Textualize__textual-3701
Can't change a Select widget promt and options ``` yield Select(options = [("Opt 1", 1), ("Opt 2", 2)], id='select', allow_blank=False, prompt="select") select_widget = self.query_one('#select') ``` These lines don't have effect: ``` select_widget._options = [("Opt 3", 1)] select_widget.options = [("Opt 3", 1)...
[ { "content": "from __future__ import annotations\n\nfrom dataclasses import dataclass\nfrom typing import TYPE_CHECKING, Generic, Iterable, TypeVar, Union\n\nfrom rich.console import RenderableType\nfrom rich.text import Text\n\nfrom .. import events, on\nfrom ..containers import Horizontal, Vertical\nfrom ..cs...
[ { "content": "from __future__ import annotations\n\nfrom dataclasses import dataclass\nfrom typing import TYPE_CHECKING, Generic, Iterable, TypeVar, Union\n\nfrom rich.console import RenderableType\nfrom rich.text import Text\n\nfrom .. import events, on\nfrom ..containers import Horizontal, Vertical\nfrom ..cs...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e1da5c856..59043ef239 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Loading indicators and app notifications overlapped in the wrong order https://github.com/Textualize/textual/issu...
quantumlib__Cirq-4751
Swamped by proto DeprecationWarnings When running tests, warning and deprecation warnings can give a heads up on things that need to change in the near future, especially given Cirq's deprecation cycles. And if there's a test failure, one would like to see the details without having to develop carpal tunnel in the scro...
[ { "content": "# Copyright 2021 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright 2021 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/conftest.py b/conftest.py index 265a447d02c..e74e741ee54 100644 --- a/conftest.py +++ b/conftest.py @@ -13,6 +13,21 @@ # limitations under the License. +def pytest_configure(config): + # Ignore deprecation warnings in python code generated from our protobuf definitions. + # Eventually, the warni...
bokeh__bokeh-1641
$ can get overridden in the Notebook It is (evidently) possible for other libraries to override `$`, and then our use of `$(function() ...)` as `js_wrapper` here: https://github.com/bokeh/bokeh/blob/master/bokeh/resources.py#L248 is fragile, and can cause problems, specifically plots not reloading. This was reported...
[ { "content": "''' The resources module provides the Resources class for easily configuring\nhow BokehJS code and CSS resources should be located, loaded, and embedded in\nBokeh documents.\n\nAlso provides some pre-configured Resources objects:\n\nAttributes:\n CDN : load minified BokehJS from CDN\n INLINE...
[ { "content": "''' The resources module provides the Resources class for easily configuring\nhow BokehJS code and CSS resources should be located, loaded, and embedded in\nBokeh documents.\n\nAlso provides some pre-configured Resources objects:\n\nAttributes:\n CDN : load minified BokehJS from CDN\n INLINE...
diff --git a/bokeh/resources.py b/bokeh/resources.py index b78021b7aaa..3fdf39ebfa7 100644 --- a/bokeh/resources.py +++ b/bokeh/resources.py @@ -245,7 +245,7 @@ def js_wrapper(self): def pad(text, n=4): return "\n".join([ " "*n + line for line in text.split("\n") ]) - wrapper = lambda cod...
tensorflow__addons-433
tfa.text.crf_log_likelihood is not compatible with tf2.0-beta1 When implement CRF with tf2.0-beta1, got `AttributeError: module 'tensorflow' has no attribute 'get_variable'` when using tfa.text.crf_log_likelihood. `AttributeError: in converted code: relative to /home/xingya: resume_parser/resume_parser/tra...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/tensorflow_addons/text/crf.py b/tensorflow_addons/text/crf.py index d8d97bf216..45c6078dd2 100644 --- a/tensorflow_addons/text/crf.py +++ b/tensorflow_addons/text/crf.py @@ -188,8 +188,9 @@ def crf_log_likelihood(inputs, # Get the transition matrix if not provided. if transition_params is None:...
Cog-Creators__Red-DiscordBot-3180
[Downloader] `[p]cog uninstall` doesn't remove cog from `bot._config.packages` # Command bugs #### Command name `[p]cog uninstall` #### What cog is this command from? Downloader #### What were you expecting to happen? The bot to unload the cog AND remove it from `bot._config.packages` #### What act...
[ { "content": "import asyncio\nimport contextlib\nimport os\nimport re\nimport shutil\nimport sys\nfrom pathlib import Path\nfrom typing import Tuple, Union, Iterable, Collection, Optional, Dict, Set, List, cast\nfrom collections import defaultdict\n\nimport discord\nfrom redbot.core import checks, commands, Con...
[ { "content": "import asyncio\nimport contextlib\nimport os\nimport re\nimport shutil\nimport sys\nfrom pathlib import Path\nfrom typing import Tuple, Union, Iterable, Collection, Optional, Dict, Set, List, cast\nfrom collections import defaultdict\n\nimport discord\nfrom redbot.core import checks, commands, Con...
diff --git a/changelog.d/downloader/3179.bugfix.rst b/changelog.d/downloader/3179.bugfix.rst new file mode 100644 index 00000000000..6739d0dc117 --- /dev/null +++ b/changelog.d/downloader/3179.bugfix.rst @@ -0,0 +1 @@ +``[p]cog uninstall`` now fully unloads cog - bot will not try to load it on next startup. diff --git ...
yt-project__yt-3278
Reminder: remove dead module mods As discussed in #3083, the `mods.py` module should be removed **after the 4.0 release**.
[ { "content": "#\n# ALL IMPORTS GO HERE\n#\n\nimport os\n\nimport numpy as np\n\n# This next item will handle most of the actual startup procedures, but it will\n# also attempt to parse the command line and set up the global state of various\n# operations. The variable unparsed_args is not used internally but i...
[ { "content": "#\n# ALL IMPORTS GO HERE\n#\n\nimport os\n\nimport numpy as np\n\n# This next item will handle most of the actual startup procedures, but it will\n# also attempt to parse the command line and set up the global state of various\n# operations. The variable unparsed_args is not used internally but i...
diff --git a/yt/mods.py b/yt/mods.py index 8ba9b072bfc..d15c75db2c6 100644 --- a/yt/mods.py +++ b/yt/mods.py @@ -13,9 +13,14 @@ # https://mail.python.org/archives/list/yt-dev@python.org/thread/L6AQPJ3OIMJC5SNKVM7CJG32YVQZRJWA/ import yt.startup_tasks as __startup_tasks from yt import * +from yt._maintenance.deprecat...
pyca__cryptography-3135
Memory leak in _encode_name ``` #!/usr/bin/python3 import cryptography.hazmat.backends.openssl.backend as backend from cryptography.hazmat.backends.openssl.encode_asn1 import _encode_name_gc from cryptography.x509.oid import NameOID from cryptography import x509 import gc n = [x509.NameAttribute(NameOID.COMMON_NAME, ...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport calendar\n\nimport idna\n\nimport six\...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport calendar\n\nimport idna\n\nimport six\...
diff --git a/src/cryptography/hazmat/backends/openssl/encode_asn1.py b/src/cryptography/hazmat/backends/openssl/encode_asn1.py index 944dedc6c880..467aa88eba29 100644 --- a/src/cryptography/hazmat/backends/openssl/encode_asn1.py +++ b/src/cryptography/hazmat/backends/openssl/encode_asn1.py @@ -85,6 +85,10 @@ def _encod...
kivy__python-for-android-1276
Local recipes can not be patched any longer It seems since commit 9242bea826a2bdc58915d4954343aee5165d9ad4 local recipes which try to patch files can not run any longer. The call to get_recipe_dir() always returns a path in the ctx.root_dir and that is wrong for local recipes. I tried to revert that commit here loca...
[ { "content": "from os.path import join, dirname, isdir, exists, isfile, split, realpath, basename\nimport importlib\nimport zipfile\nimport glob\nfrom shutil import rmtree\nfrom six import PY2, with_metaclass\n\nimport hashlib\nfrom re import match\n\nimport sh\nimport shutil\nimport fnmatch\nfrom os import lis...
[ { "content": "from os.path import join, dirname, isdir, exists, isfile, split, realpath, basename\nimport importlib\nimport zipfile\nimport glob\nfrom shutil import rmtree\nfrom six import PY2, with_metaclass\n\nimport hashlib\nfrom re import match\n\nimport sh\nimport shutil\nimport fnmatch\nfrom os import lis...
diff --git a/pythonforandroid/recipe.py b/pythonforandroid/recipe.py index bf71ccf3d3..7f54315df0 100644 --- a/pythonforandroid/recipe.py +++ b/pythonforandroid/recipe.py @@ -293,6 +293,14 @@ def get_build_dir(self, arch): return join(self.get_build_container_dir(arch), self.name) def get_recipe_dir(sel...
e2nIEE__pandapower-2017
[bug] Issue when running DC powerflow after AC powerflow <!--- **PLEASE READ:** When submitting here, please ensure you've completed the following checklist and checked the boxes to confirm. Bug reports without it may be closed. Thanks! ---> ### Issue Report Checklist * [X] Searched the [issues page](https://gith...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2023 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n\n\nimport numpy as np\nfrom numpy import complex128\nfrom pandapower.auxiliary import _sum_by_group, sequ...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2023 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n\n\nimport numpy as np\nfrom numpy import complex128\nfrom pandapower.auxiliary import _sum_by_group, sequ...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4d93122fd..074997c7c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,9 +11,11 @@ Change Log - [FIXED] shape issues when calculating SC with the superposition method - [FIXED] typos in cim2pp tutorial - [FIXED] creating geo coordinates form GL profile when Connec...
Pycord-Development__pycord-1806
commands.FlagConverter 'MissingField' bug ### Summary Found a bug with commands.FlagConverter having weird behavior when subclass FlagConverter ### Reproduction Steps Subclass `commands.FlagConverter`, add a flag with `commands.flag()`. ### Minimal Reproducible Code ```python class Flags(commands.FlagConverter, pr...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r...
diff --git a/discord/ext/commands/flags.py b/discord/ext/commands/flags.py index d265442bc0..0848a831a1 100644 --- a/discord/ext/commands/flags.py +++ b/discord/ext/commands/flags.py @@ -81,13 +81,13 @@ class Flag: Whether multiple given values overrides the previous value. """ - name: str = MissingF...
fedora-infra__bodhi-676
[RFE] Add override button when an update for a build is created Hi, when I update a golang package in Fedora it is always followed by override of its build. Would it be possible to add a button to open a page (bodhi.fedoraproject.org/overrides/new) with override form filled with package name, build and bug id? Jan
[ { "content": "# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope t...
[ { "content": "# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope t...
diff --git a/bodhi/templates/override.html b/bodhi/templates/override.html index bb4ea8089d..6e118f4958 100644 --- a/bodhi/templates/override.html +++ b/bodhi/templates/override.html @@ -49,8 +49,14 @@ <h2 class="pull-left">New Override</span> </div> <div id="candidates-search" class="form-group n...
PaddlePaddle__Paddle2ONNX-15
Need check whether protoc existed.
[ { "content": "# Copyright (c) 2018 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) 2018 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/requirements.txt b/requirements.txt index b74e2d4bd..c1753bfa9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ protobuf==3.5.1 pytest-runner -onnx==1.0 +onnx==1.1.1 diff --git a/setup.sh b/setup.sh index 8427d6404..5674b0b6e 100644 --- a/setup.sh +++ b/setup.sh @@ -1,9 +1,10 @@ #!/u...
pwndbg__pwndbg-883
`start` raises exception `context: (<class 'StopIteration'>)` ### Description Using the `start` command to open an executable results in an exception : **context: (<class 'StopIteration'>)**. ### Steps to reproduce 1. `gdb name_of_the_binary` 2. `pwndbg> start` ### My setup Gdb: 10.1 Python: ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport argparse\nimport ast\nimport codecs\nimport ctypes\nimport json\nimport os\nimport sys\nfrom collections import defaultdict\nfrom io import open\n\nimport gdb\n\nimport pwndbg.arguments\nimport pwndbg.chain\nimport pwndbg.color\nimport pwndb...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport argparse\nimport ast\nimport codecs\nimport ctypes\nimport json\nimport os\nimport sys\nfrom collections import defaultdict\nfrom io import open\n\nimport gdb\n\nimport pwndbg.arguments\nimport pwndbg.chain\nimport pwndbg.color\nimport pwndb...
diff --git a/pwndbg/commands/context.py b/pwndbg/commands/context.py index 3c9aa011240..28678017a99 100644 --- a/pwndbg/commands/context.py +++ b/pwndbg/commands/context.py @@ -476,9 +476,10 @@ def context_disasm(target=sys.stdout, with_banner=True, width=None): syntax = pwndbg.disasm.CapstoneSyntax[flavor] ...
bentoml__BentoML-1175
Cannot retrieve BentoService from S3 Minio **Describe the bug** I have a Yatai-Service configured with S3 Minio and local Database (Note - I would normally use PostgresSQL - but cannot do that at the moment due to some other unrelated issue). I run the following in my docker build process: ``` bentoml config set ...
[ { "content": "# Copyright 2019 Atalaya Tech, Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless required by applicab...
[ { "content": "# Copyright 2019 Atalaya Tech, Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless required by applicab...
diff --git a/bentoml/cli/bento_management.py b/bentoml/cli/bento_management.py index 9d6c20dcaf4..751ab94c931 100644 --- a/bentoml/cli/bento_management.py +++ b/bentoml/cli/bento_management.py @@ -259,7 +259,7 @@ def retrieve(bento, target_dir): if get_bento_result.bento.uri.s3_presigned_url: be...
ultralytics__yolov5-6859
Please add transport stream to VIDEO file formats ### Search before asking - [X] I have searched the YOLOv5 [issues](https://github.com/ultralytics/yolov5/issues) and found no similar feature requests. ### Description Can transport stream be added , tested and it works fine. utils/datasets.py (line 37) ...
[ { "content": "# YOLOv5 🚀 by Ultralytics, GPL-3.0 license\n\"\"\"\nDataloaders and dataset utils\n\"\"\"\n\nimport glob\nimport hashlib\nimport json\nimport math\nimport os\nimport random\nimport shutil\nimport time\nfrom itertools import repeat\nfrom multiprocessing.pool import Pool, ThreadPool\nfrom pathlib i...
[ { "content": "# YOLOv5 🚀 by Ultralytics, GPL-3.0 license\n\"\"\"\nDataloaders and dataset utils\n\"\"\"\n\nimport glob\nimport hashlib\nimport json\nimport math\nimport os\nimport random\nimport shutil\nimport time\nfrom itertools import repeat\nfrom multiprocessing.pool import Pool, ThreadPool\nfrom pathlib i...
diff --git a/utils/datasets.py b/utils/datasets.py index e132e04f6d9d..c325b9910ed3 100755 --- a/utils/datasets.py +++ b/utils/datasets.py @@ -33,8 +33,8 @@ # Parameters HELP_URL = 'https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data' -IMG_FORMATS = ['bmp', 'dng', 'jpeg', 'jpg', 'mpo', 'png', 'tif', 'tiff'...
mindsdb__lightwood-524
`sktime` missing dependency In requirements.txt `sktime[arima] >= 0.5.0` bat `(mindsdb) C:\Users\User>pip install sktime[arima]>=0.5.0 WARNING: sktime 0.7.0 does not provide the extra 'arima'` install `(mindsdb) C:\Users\User>pip install sktime[arima]==0.5.0` `sktime` missing dependency In requirements.txt `skt...
[ { "content": "import numpy as np\nimport pandas as pd\nfrom typing import Dict, List, Union\nfrom sktime.forecasting.arima import AutoARIMA\n\nfrom lightwood.api import dtype\nfrom lightwood.helpers.log import log\nfrom lightwood.model.base import BaseModel\nfrom lightwood.encoder.time_series.helpers.common imp...
[ { "content": "import numpy as np\nimport pandas as pd\nfrom typing import Dict, List, Union\nfrom sktime.forecasting.arima import AutoARIMA\n\nfrom lightwood.api import dtype\nfrom lightwood.helpers.log import log\nfrom lightwood.model.base import BaseModel\nfrom lightwood.encoder.time_series.helpers.common imp...
diff --git a/lightwood/model/sktime.py b/lightwood/model/sktime.py index 5e8410939..3ae26448a 100644 --- a/lightwood/model/sktime.py +++ b/lightwood/model/sktime.py @@ -42,7 +42,8 @@ def fit(self, ds_arr: List[EncodedDs]) -> None: for gcol in self.grouped_by} if self.ts_analysis['tss'].g...
InstaPy__InstaPy-721
Index Error When trying to Follow users followers I get this index error ``` Traceback (most recent call last): File "example.py", line 18, in <module> session.follow_user_followers(['timanderic', 'SuperDeluxe'], amount=10, random=False, sleep_delay=0) File "/Users/Travis/Documents/GitHub/InstaP...
[ { "content": "\"\"\"Module which handles the follow features like unfollowing and following\"\"\"\nimport json\nimport csv\nfrom math import ceil\nfrom .time_util import sleep\nfrom random import randint\nfrom .util import delete_line_from_file\nfrom .util import scroll_bottom\nfrom .util import formatNumber\nf...
[ { "content": "\"\"\"Module which handles the follow features like unfollowing and following\"\"\"\nimport json\nimport csv\nfrom math import ceil\nfrom .time_util import sleep\nfrom random import randint\nfrom .util import delete_line_from_file\nfrom .util import scroll_bottom\nfrom .util import formatNumber\nf...
diff --git a/instapy/unfollow_util.py b/instapy/unfollow_util.py index fc64a862d..465e8aa9d 100644 --- a/instapy/unfollow_util.py +++ b/instapy/unfollow_util.py @@ -251,8 +251,11 @@ def follow_through_dialog(browser, user_name, amount, dont_include, login, follo for person in follow_buttons: if person a...
fossasia__open-event-server-6156
Ticket attachments for attendee emails are not working. **Describe the bug** After adding support for multi attendee ticket downloads, the storage path was changed. Due to this, the tickets weren't being attached. Ergo, the email wasn't being sent. **Reference** The key was changed in this PR. https://github.com/...
[ { "content": "from datetime import datetime\nfrom flask import request, jsonify, Blueprint, url_for, redirect\nimport omise\nimport logging\n\nfrom flask_jwt import current_identity as current_user\nfrom flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\nfrom marshmallow_jsonapi impor...
[ { "content": "from datetime import datetime\nfrom flask import request, jsonify, Blueprint, url_for, redirect\nimport omise\nimport logging\n\nfrom flask_jwt import current_identity as current_user\nfrom flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\nfrom marshmallow_jsonapi impor...
diff --git a/app/api/orders.py b/app/api/orders.py index 4d19df2c1a..4ee77b4c21 100644 --- a/app/api/orders.py +++ b/app/api/orders.py @@ -148,7 +148,7 @@ def after_create_object(self, order, data, view_kwargs): # fetch tickets attachment order_identifier = order.identifier - key ...
bokeh__bokeh-4481
Unnecessary ANSI escapes are generated by setup on Windows Sample output: ``` >python setup.py build Bokeh includes a JavaScript library (BokehJS) that has its own build process. How would you like to handle BokehJS: 1) build and install fresh BokehJS 2) install last built BokehJS from bokeh/bokehjs/build Choice? 1...
[ { "content": "\"\"\"Setup script for Bokeh.\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2014, Continuum Analytics, Inc. All rights reserved.\n#\n# Powered by the Bokeh Development Team.\n#\n# The full license is in the file LICENCE.txt, distrib...
[ { "content": "\"\"\"Setup script for Bokeh.\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2014, Continuum Analytics, Inc. All rights reserved.\n#\n# Powered by the Bokeh Development Team.\n#\n# The full license is in the file LICENCE.txt, distrib...
diff --git a/setup.py b/setup.py index 0fe857dcc39..4a0a94c3567 100644 --- a/setup.py +++ b/setup.py @@ -36,6 +36,7 @@ def blue(text): return "%s%s%s" % (colorama.Fore.BLUE, text, colorama.Style.RESE def red(text): return "%s%s%s" % (colorama.Fore.RED, text, colorama.Style.RESET_ALL) def green(text): return "...
streamlit__streamlit-8497
Altair support - Layer charts, `.resolve_scale` dont appear to work # Summary Altair appears to work just fine inside streamlit, but I have problems getting layer charts to work. Note - Concat (vert/horizontal) of altair charts works fine, but doing something like ``` (chart1 + chart2).resolve_scale(y='independent...
[ { "content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2024)\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/LICE...
[ { "content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2024)\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/LICE...
diff --git a/e2e_playwright/__snapshots__/linux/st_altair_chart_test/st_altair_chart-resolve-scale-independent[dark_theme-chromium].png b/e2e_playwright/__snapshots__/linux/st_altair_chart_test/st_altair_chart-resolve-scale-independent[dark_theme-chromium].png new file mode 100644 index 000000000000..a03c6a1c9ff3 Binar...
plotly__plotly.py-762
list index out of range exception when importing graph_objs Hi, I installed the latest version of plotly today (2.0.6) and ran into the following error with the first import line: ```python import plotly.graph_objs as go ``` It gives me the following error: ```python /usr/local/lib/python2.7/site-packages/plo...
[ { "content": "from setuptools import setup\n\nexec (open('plotly/version.py').read())\n\n\ndef readme():\n with open('README.rst') as f:\n return f.read()\n\n\nsetup(name='plotly',\n version=__version__,\n use_2to3=False,\n author='Chris P',\n author_email='chris@plot.ly',\n m...
[ { "content": "from setuptools import setup\n\nexec (open('plotly/version.py').read())\n\n\ndef readme():\n with open('README.rst') as f:\n return f.read()\n\n\nsetup(name='plotly',\n version=__version__,\n use_2to3=False,\n author='Chris P',\n author_email='chris@plot.ly',\n m...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1131e3244c8..f2e3a0d1030 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -## [Unreleased] +## [2.0.9] - 2017-05-30 +###...
scikit-hep__awkward-2410
String broadcasting is not producing sensible results ### Version of Awkward Array main ### Description and code to reproduce As Jim and I discussed today, string broadcasting is currently not producing reliable results for string-string, or even string-non string cases. In particular many broadcasts violate t...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n__all__ = (\"broadcast_arrays\",)\nimport awkward as ak\nfrom awkward._backends.dispatch import backend_of\nfrom awkward._backends.numpy import NumpyBackend\nfrom awkward._behavior import behavior_of\nfrom awk...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n__all__ = (\"broadcast_arrays\",)\nimport awkward as ak\nfrom awkward._backends.dispatch import backend_of\nfrom awkward._backends.numpy import NumpyBackend\nfrom awkward._behavior import behavior_of\nfrom awk...
diff --git a/src/awkward/operations/ak_broadcast_arrays.py b/src/awkward/operations/ak_broadcast_arrays.py index ab15444614..c9cf2a1b57 100644 --- a/src/awkward/operations/ak_broadcast_arrays.py +++ b/src/awkward/operations/ak_broadcast_arrays.py @@ -222,7 +222,14 @@ def _impl( inputs.append(y.to_backend(backe...
Kinto__kinto-871
StatsD backend keys contain twice backend type ![capture d ecran de 2016-10-10 10-26-46](https://cloud.githubusercontent.com/assets/546692/19230297/216fae70-8ed4-11e6-90f6-b73fd694a9d2.png) `kinto.storage.storage.get` instead of `kinto.storage.get` or `kinto.storage.call.get`
[ { "content": "import re\nimport warnings\nfrom datetime import datetime\nfrom dateutil import parser as dateparser\n\nimport structlog\nfrom pyramid.events import NewRequest, NewResponse\nfrom pyramid.exceptions import ConfigurationError\nfrom pyramid.httpexceptions import (HTTPTemporaryRedirect, HTTPGone,\n ...
[ { "content": "import re\nimport warnings\nfrom datetime import datetime\nfrom dateutil import parser as dateparser\n\nimport structlog\nfrom pyramid.events import NewRequest, NewResponse\nfrom pyramid.exceptions import ConfigurationError\nfrom pyramid.httpexceptions import (HTTPTemporaryRedirect, HTTPGone,\n ...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 52708185f..4c6921b14 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,6 +10,10 @@ This document describes changes between each past release. - Added a new built-in plugin ``kinto.plugins.admin`` to serve the kinto admin. +**Bug fixes** + +- Fixed showing of bac...
google__jax-832
DeviceTuple constant handler doesn't work (and is untested) From @fehiepsi in [this comment](https://github.com/google/jax/issues/804#issuecomment-500169961). ```python def f(x): return jit(lax.fori_loop, static_argnums=(2,))(0, 10, lambda *args: args[1], x) jit(f)(1.) ``` ``` TypeError: No constant ha...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/jax/interpreters/xla.py b/jax/interpreters/xla.py index f4300f93ea70..811296b4403b 100644 --- a/jax/interpreters/xla.py +++ b/jax/interpreters/xla.py @@ -470,9 +470,8 @@ def __eq__(self, other): canonicalize_dtype_handlers[DeviceTuple] = identity def _device_tuple_constant_handler(c, val, canonicalize_...
e-valuation__EvaP-1395
Add confirmation for login with login key External users can login by clicking on the login URL sent to them via email. Before users are actually authenticated on the platform after clicking on this link, they should have to confirm the login by, e.g., clicking a confirmation button in a modal or on a designated page. ...
[ { "content": "import logging\nfrom datetime import date, timedelta\n\nfrom django.conf import settings\nfrom django.contrib import messages, auth\nfrom django.contrib.auth.decorators import login_required\nfrom django.core.mail import EmailMessage\nfrom django.http import HttpResponse, HttpResponseBadRequest\nf...
[ { "content": "import logging\nfrom datetime import date, timedelta\n\nfrom django.conf import settings\nfrom django.contrib import messages, auth\nfrom django.contrib.auth.decorators import login_required\nfrom django.core.mail import EmailMessage\nfrom django.http import HttpResponse, HttpResponseBadRequest\nf...
diff --git a/evap/evaluation/templates/external_user_confirm_login.html b/evap/evaluation/templates/external_user_confirm_login.html new file mode 100644 index 0000000000..4999af85a2 --- /dev/null +++ b/evap/evaluation/templates/external_user_confirm_login.html @@ -0,0 +1,28 @@ +{% extends 'base.html' %} + +{% block co...
certbot__certbot-6002
Certbot crashes if EFF e-mail submission endpoint is unavailable Certbot will crash if the user's e-mail information can't be submitted to the EFF endpoint: https://community.letsencrypt.org/t/issue-when-trying-to-create-certificate/59307/1 https://github.com/certbot/certbot/blob/master/certbot/eff.py#L74 It c...
[ { "content": "\"\"\"Subscribes users to the EFF newsletter.\"\"\"\nimport logging\n\nimport requests\nimport zope.component\n\nfrom certbot import constants\nfrom certbot import interfaces\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef handle_subscription(config):\n \"\"\"High level function to take care...
[ { "content": "\"\"\"Subscribes users to the EFF newsletter.\"\"\"\nimport logging\n\nimport requests\nimport zope.component\n\nfrom certbot import constants\nfrom certbot import interfaces\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef handle_subscription(config):\n \"\"\"High level function to take care...
diff --git a/certbot/eff.py b/certbot/eff.py index 746261faa9c..b047c0b978b 100644 --- a/certbot/eff.py +++ b/certbot/eff.py @@ -71,11 +71,14 @@ def _check_response(response): """ logger.debug('Received response:\n%s', response.content) - if response.ok: - if not response.json()['status']: + tr...
bokeh__bokeh-8422
error when using a pd.DataFrame whose columns is a CategoricalIndex as ColumnDataSource bokeh 1.0.0 #### Complete, minimal, self-contained example code that reproduces the issue ``` from bokeh.models import ColumnDataSource import pandas as pd columns = pd.CategoricalIndex(['a', 'b', 'c', 'd']) df = pd.Data...
[ { "content": "from __future__ import absolute_import\n\nimport warnings\n\nfrom ..core.has_props import abstract\nfrom ..core.properties import Any, Bool, ColumnData, Dict, Enum, Instance, Int, JSON, List, Seq, String\nfrom ..model import Model\nfrom ..util.dependencies import import_optional\nfrom ..util.seria...
[ { "content": "from __future__ import absolute_import\n\nimport warnings\n\nfrom ..core.has_props import abstract\nfrom ..core.properties import Any, Bool, ColumnData, Dict, Enum, Instance, Int, JSON, List, Seq, String\nfrom ..model import Model\nfrom ..util.dependencies import import_optional\nfrom ..util.seria...
diff --git a/bokeh/models/sources.py b/bokeh/models/sources.py index e8b5bbd9374..cf459d861d6 100644 --- a/bokeh/models/sources.py +++ b/bokeh/models/sources.py @@ -172,6 +172,9 @@ def _data_from_df(df): except TypeError: raise TypeError('Could not flatten MultiIndex columns. ' ...
urllib3__urllib3-2016
keylog_filename triggering error when SSLKEYLOGFILE is not set ### Subject Requests are failing with the error: ``` urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) ``` The line that raises this exception is the following (at the bottom of the stack...
[ { "content": "from __future__ import absolute_import\n\nimport hmac\nimport os\nimport sys\nimport warnings\nfrom binascii import hexlify, unhexlify\nfrom hashlib import md5, sha1, sha256\n\nfrom ..exceptions import (\n InsecurePlatformWarning,\n ProxySchemeUnsupported,\n SNIMissingWarning,\n SSLErr...
[ { "content": "from __future__ import absolute_import\n\nimport hmac\nimport os\nimport sys\nimport warnings\nfrom binascii import hexlify, unhexlify\nfrom hashlib import md5, sha1, sha256\n\nfrom ..exceptions import (\n InsecurePlatformWarning,\n ProxySchemeUnsupported,\n SNIMissingWarning,\n SSLErr...
diff --git a/src/urllib3/util/ssl_.py b/src/urllib3/util/ssl_.py index 8773334067..1cb5e7cdc1 100644 --- a/src/urllib3/util/ssl_.py +++ b/src/urllib3/util/ssl_.py @@ -314,9 +314,11 @@ def create_urllib3_context( context.check_hostname = False # Enable logging of TLS session keys via defacto standard env...
Zeroto521__my-data-toolkit-585
PERF: `to_set` speeds up especial to large data <!-- Thanks for contributing a pull request! Please follow these standard acronyms to start the commit message: - ENH: enhancement - BUG: bug fix - DOC: documentation - TYP: type annotations - TST: addition or modification of tests - MAINT: maintenance commit ...
[ { "content": "import pandas as pd\n\nfrom dtoolkit.accessor.register import register_index_method\n\n\n@register_index_method\ndef to_set(index: pd.Index) -> set:\n \"\"\"\n Return a :keyword:`set` of the values.\n\n A sugary syntax wraps :keyword:`set`::\n\n set(index)\n\n Different to :meth...
[ { "content": "import pandas as pd\n\nfrom dtoolkit.accessor.register import register_index_method\n\n\n@register_index_method\ndef to_set(index: pd.Index) -> set:\n \"\"\"\n Return a :keyword:`set` of the values.\n\n A sugary syntax wraps :keyword:`set`::\n\n set(index)\n\n Different to :meth...
diff --git a/dtoolkit/accessor/index/to_set.py b/dtoolkit/accessor/index/to_set.py index 4c990fe2a..fb1a0c8c0 100644 --- a/dtoolkit/accessor/index/to_set.py +++ b/dtoolkit/accessor/index/to_set.py @@ -21,6 +21,7 @@ def to_set(index: pd.Index) -> set: See Also -------- pandas.Index.unique + dtoolkit.ac...
alltheplaces__alltheplaces-5661
Include crawl date in data I'm looking at an old output directory, trying to workout which release it is. I think we could add the crawl time and/or build id to the dataset attributes easily. I think @rjw62 asked for this before. Which I promptly forgot. Sorry. I'll look at this later or Monday.
[ { "content": "import base64\nimport hashlib\nimport io\nimport json\nimport logging\nimport uuid\n\nfrom scrapy.exporters import JsonItemExporter\nfrom scrapy.utils.misc import walk_modules\nfrom scrapy.utils.python import to_bytes\nfrom scrapy.utils.spider import iter_spider_classes\n\nfrom locations.settings ...
[ { "content": "import base64\nimport datetime\nimport hashlib\nimport io\nimport json\nimport logging\nimport uuid\n\nfrom scrapy.exporters import JsonItemExporter\nfrom scrapy.utils.misc import walk_modules\nfrom scrapy.utils.python import to_bytes\nfrom scrapy.utils.spider import iter_spider_classes\n\nfrom lo...
diff --git a/locations/exporters/geojson.py b/locations/exporters/geojson.py index 3f818ddd10f..92add97e320 100644 --- a/locations/exporters/geojson.py +++ b/locations/exporters/geojson.py @@ -1,4 +1,5 @@ import base64 +import datetime import hashlib import io import json @@ -88,6 +89,7 @@ def get_dataset_attribute...
goauthentik__authentik-8139
2023.10.6 - "Please select a username" after Azure AD login **Describe your question/** Is it now a expected behavior in 2023.10.6 version to ask every user for username input after logging in with azure ad? ![image](https://github.com/goauthentik/authentik/assets/7706996/7c35f530-62a2-4afd-92aa-c290ad221c5f) In...
[ { "content": "\"\"\"AzureAD OAuth2 Views\"\"\"\nfrom typing import Any\n\nfrom structlog.stdlib import get_logger\n\nfrom authentik.sources.oauth.clients.oauth2 import UserprofileHeaderAuthClient\nfrom authentik.sources.oauth.types.oidc import OpenIDConnectOAuth2Callback\nfrom authentik.sources.oauth.types.regi...
[ { "content": "\"\"\"AzureAD OAuth2 Views\"\"\"\nfrom typing import Any\n\nfrom structlog.stdlib import get_logger\n\nfrom authentik.sources.oauth.clients.oauth2 import UserprofileHeaderAuthClient\nfrom authentik.sources.oauth.types.oidc import OpenIDConnectOAuth2Callback\nfrom authentik.sources.oauth.types.regi...
diff --git a/authentik/sources/oauth/types/azure_ad.py b/authentik/sources/oauth/types/azure_ad.py index ec57640d1719..3ed0496a66aa 100644 --- a/authentik/sources/oauth/types/azure_ad.py +++ b/authentik/sources/oauth/types/azure_ad.py @@ -50,7 +50,7 @@ class AzureADType(SourceType): authorization_url = "https://...
ytdl-org__youtube-dl-9430
Home variable not expanded in config file. ### Make sure you are using the _latest_ version: run `youtube-dl --version` and ensure your version is _2016.05.01_. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import unicode_literals\n\n__license__ = 'Public Domain'\n\nimport codecs\nimport io\nimport os\nimport random\nimport sys\n\n\nfrom .options import (\n parseOpts,\n)\nfrom .compat import (\n compat_expanduser,\n compat_get...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import unicode_literals\n\n__license__ = 'Public Domain'\n\nimport codecs\nimport io\nimport os\nimport random\nimport sys\n\n\nfrom .options import (\n parseOpts,\n)\nfrom .compat import (\n compat_expanduser,\n compat_get...
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 737f6545d41..7a0466077ae 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -86,7 +86,9 @@ def _real_main(argv=None): if opts.batchfile == '-': batchfd = sys.stdin else: - batchf...
Lightning-AI__torchmetrics-1149
StructuralSimilarityIndexMeasure : Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same ## 🐛 Bug When `gaussian_kernel` is set to `False` and images are on gpu, we can compute ssim metric because type difference. #### Code sample ```python img = torch.rand(10, 3, 64, 64)...
[ { "content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
[ { "content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6eac7de9e84..5f8125863b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed JaccardIndex multi-label compute ([#1125](https://github.com/Lightning-AI/metrics/pull/1125)) ...
lutris__lutris-5245
"Accounts" tab in settings is blank ![image](https://github.com/lutris/lutris/assets/1454420/ad64e7a6-b8e2-4080-b031-da99b643279c) When navigating to the "accounts" tab in the lutris settings (version 0.5.15), it is blank and I get this error. This is on Fedora 39 KDE. ``` 2024-01-14 08:52:03,865: Error handling...
[ { "content": "from gettext import gettext as _\n\nfrom gi.repository import Gtk\n\nfrom lutris import settings\nfrom lutris.gui.config.base_config_box import BaseConfigBox\nfrom lutris.util.steam.config import STEAM_ACCOUNT_SETTING, get_steam_users\n\n\nclass AccountsBox(BaseConfigBox):\n\n def __init__(self...
[ { "content": "from gettext import gettext as _\n\nfrom gi.repository import Gtk\n\nfrom lutris import settings\nfrom lutris.gui.config.base_config_box import BaseConfigBox\nfrom lutris.util.steam.config import STEAM_ACCOUNT_SETTING, get_steam_users\n\n\nclass AccountsBox(BaseConfigBox):\n\n def __init__(self...
diff --git a/lutris/gui/config/accounts_box.py b/lutris/gui/config/accounts_box.py index 82a433dbc1..3010fc49b2 100644 --- a/lutris/gui/config/accounts_box.py +++ b/lutris/gui/config/accounts_box.py @@ -29,7 +29,7 @@ def populate_accounts(self): steam_users = get_steam_users() for account in steam_use...
mitmproxy__mitmproxy-2773
Mitmproxy crashes, when trying to create a new flow with incorrect url ##### Steps to reproduce the problem: 1. Create a new flow by pressing `n`. 2. For getting `ValueError: Invalid Host` input `https://google.com\` as url. 3. For getting `ValueError: No hostname given` input `https://` as url. I am getting: ...
[ { "content": "\"\"\"\nThe View:\n\n- Keeps track of a store of flows\n- Maintains a filtered, ordered view onto that list of flows\n- Exposes a number of signals so the view can be monitored\n- Tracks focus within the view\n- Exposes a settings store for flows that automatically expires if the flow is\n remove...
[ { "content": "\"\"\"\nThe View:\n\n- Keeps track of a store of flows\n- Maintains a filtered, ordered view onto that list of flows\n- Exposes a number of signals so the view can be monitored\n- Tracks focus within the view\n- Exposes a settings store for flows that automatically expires if the flow is\n remove...
diff --git a/mitmproxy/addons/view.py b/mitmproxy/addons/view.py index 5fbefdb0c3..c3fb4b88de 100644 --- a/mitmproxy/addons/view.py +++ b/mitmproxy/addons/view.py @@ -441,7 +441,10 @@ def resolve(self, spec: str) -> typing.Sequence[mitmproxy.flow.Flow]: @command.command("view.create") def create(self, metho...
holoviz__panel-723
Scipy now required dependency? The latest dev build of panel (panel-0.7.0a15-py_0) looks like it is trying to import scipy, but scipy is not among the required dependencies that are automatically installed through conda. ``` $ conda create -n panel -c pyviz/label/dev panel ... $ conda activate panel (panel) $ py...
[ { "content": "\"\"\"\nMiscellaneous widgets which do not fit into the other main categories.\n\"\"\"\nfrom __future__ import absolute_import, division, unicode_literals\n\nimport os\n\nfrom io import BytesIO\nfrom base64 import b64encode\nfrom six import string_types\n\nimport param\nimport numpy as np\nfrom sc...
[ { "content": "\"\"\"\nMiscellaneous widgets which do not fit into the other main categories.\n\"\"\"\nfrom __future__ import absolute_import, division, unicode_literals\n\nimport os\n\nfrom io import BytesIO\nfrom base64 import b64encode\nfrom six import string_types\n\nimport param\nimport numpy as np\n\nfrom ...
diff --git a/panel/widgets/misc.py b/panel/widgets/misc.py index cb0c709034..e8303421af 100644 --- a/panel/widgets/misc.py +++ b/panel/widgets/misc.py @@ -11,7 +11,6 @@ import param import numpy as np -from scipy.io import wavfile from ..io.notebook import push from ..io.state import state @@ -48,6 +47,7 @@ cla...
getredash__redash-3634
Queries search is not working on release/7.0.x ### Issue Summary I try building docker image with the redash dockerfile and start by docker-compose. But queries search is not working ### Steps to Reproduce ![Untitled](https://user-images.githubusercontent.com/6704470/54521288-93d2ad80-49a5-11e9-9794-94572b6698...
[ { "content": "import time\n\nfrom flask.cli import AppGroup\nfrom flask_migrate import stamp\nfrom sqlalchemy.exc import DatabaseError\n\nmanager = AppGroup(help=\"Manage the database (create/drop tables).\")\n\n\ndef _wait_for_db_connection(db):\n retried = False\n while not retried:\n try:\n ...
[ { "content": "import time\n\nimport sqlalchemy\nfrom flask.cli import AppGroup\nfrom flask_migrate import stamp\nfrom sqlalchemy.exc import DatabaseError\n\nmanager = AppGroup(help=\"Manage the database (create/drop tables).\")\n\n\ndef _wait_for_db_connection(db):\n retried = False\n while not retried:\n...
diff --git a/redash/cli/database.py b/redash/cli/database.py index 701103625f..ad78f7e5b3 100644 --- a/redash/cli/database.py +++ b/redash/cli/database.py @@ -1,5 +1,6 @@ import time +import sqlalchemy from flask.cli import AppGroup from flask_migrate import stamp from sqlalchemy.exc import DatabaseError @@ -25,6...
larq__larq-363
Change default hyperparameters of Bop The default hyperparameters for Bop are not really optimal (i.e. gamma is probably too high for most task): `Bop(threshold=1e-07, gamma=0.01, name='Bop', **kwargs)` For example in our [paper](https://papers.nips.cc/paper/8971-latent-weights-do-not-exist-rethinking-binarized-neur...
[ { "content": "\"\"\"Neural networks with extremely low-precision weights and activations, such as\nBinarized Neural Networks (BNNs), usually contain a mix of low-precision weights (e.g.\n1-bit) and higher-precision weights (e.g. 8-bit, 16-bit, or 32-bit). Examples of this\ninclude the first and last layers of ...
[ { "content": "\"\"\"Neural networks with extremely low-precision weights and activations, such as\nBinarized Neural Networks (BNNs), usually contain a mix of low-precision weights (e.g.\n1-bit) and higher-precision weights (e.g. 8-bit, 16-bit, or 32-bit). Examples of this\ninclude the first and last layers of ...
diff --git a/larq/optimizers.py b/larq/optimizers.py index e5e6fb64..07bbf6ef 100644 --- a/larq/optimizers.py +++ b/larq/optimizers.py @@ -238,7 +238,7 @@ class Bop(tf.keras.optimizers.Optimizer): - [Latent Weights Do Not Exist: Rethinking Binarized Neural Network Optimization](https://papers.nips.cc/paper/8971-la...
kubeflow__pipelines-4331
allow output artifact store configuration (vs hard coded) it seems like the output artifacts are always stored in a specific minio service, port, namespace, bucket, secrets, etc (`minio-service.kubeflow:9000`). see: https://github.com/kubeflow/pipelines/blob/f40a22a3f4a8e06d20cf3e3f425b5058d5c87e0b/sdk/python/kfp/c...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
diff --git a/components/ibm-components/watson/deploy/Dockerfile b/components/ibm-components/watson/deploy/Dockerfile index 63548a9aab9..94e42bd3ef8 100644 --- a/components/ibm-components/watson/deploy/Dockerfile +++ b/components/ibm-components/watson/deploy/Dockerfile @@ -5,7 +5,7 @@ RUN mkdir /app RUN mkdir /app/secr...
python-trio__trio-744
SocketStream.__init__'s check for whether the socket is connected is unreliable on MacOS On IRC, @dstufft told me about a strange crash he sometimes gets in [linehaul](https://github.com/pypa/linehaul) when dumping test data in using netcat, which looked like it might be a bug in trio's `SocketListener` or something. ...
[ { "content": "# \"High-level\" networking interface\n\nimport errno\nfrom contextlib import contextmanager\n\nfrom . import _core\nfrom . import socket as tsocket\nfrom ._util import ConflictDetector\nfrom .abc import HalfCloseableStream, Listener\n\n__all__ = [\"SocketStream\", \"SocketListener\"]\n\n_closed_s...
[ { "content": "# \"High-level\" networking interface\n\nimport errno\nfrom contextlib import contextmanager\n\nfrom . import _core\nfrom . import socket as tsocket\nfrom ._util import ConflictDetector\nfrom .abc import HalfCloseableStream, Listener\n\n__all__ = [\"SocketStream\", \"SocketListener\"]\n\n_closed_s...
diff --git a/newsfragments/609.bugfix.rst b/newsfragments/609.bugfix.rst new file mode 100644 index 000000000..2982905e2 --- /dev/null +++ b/newsfragments/609.bugfix.rst @@ -0,0 +1,2 @@ +Fixed a race condition on macOS, where Trio's TCP listener would crash if an +incoming TCP connection was closed before the listener ...
celery__celery-5773
task_default_exchange&task_default_exchange_type config not work <!-- Please fill this template entirely and do not erase parts of it. We reserve the right to close without a response bug reports which are incomplete. --> # Checklist <!-- To check an item on the list replace [ ] with [x]. --> - [x] I have re...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Sending/Receiving Messages (Kombu integration).\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nimport numbers\nfrom collections import namedtuple\nfrom datetime import timedelta\nfrom weakref import WeakValueDictionary\n\nfrom kombu import Connect...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Sending/Receiving Messages (Kombu integration).\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nimport numbers\nfrom collections import namedtuple\nfrom datetime import timedelta\nfrom weakref import WeakValueDictionary\n\nfrom kombu import Connect...
diff --git a/celery/app/amqp.py b/celery/app/amqp.py index 35c9f224c8d..2bf8c1d8de7 100644 --- a/celery/app/amqp.py +++ b/celery/app/amqp.py @@ -130,9 +130,9 @@ def add_compat(self, name, **options): return self._add(Queue.from_dict(name, **options)) def _add(self, queue): + if queue.exchange is ...
cisagov__manage.get.gov-1157
Update /availability API to pull from new registry ### Issue Description The [current API](https://github.com/cisagov/getgov/blob/784cc0f618e056c262512d688e8e4316dd25c9e4/src/api/views.py#L14) consists of a second-hand pull of canonical data that the .gov program [publishes to GitHub](https://github.com/cisagov/dotg...
[ { "content": "\"\"\"Internal API views\"\"\"\nfrom django.apps import apps\nfrom django.views.decorators.http import require_http_methods\nfrom django.http import JsonResponse\n\nfrom django.contrib.auth.decorators import login_required\n\nimport requests\n\nfrom cachetools.func import ttl_cache\n\n\nDOMAIN_FIL...
[ { "content": "\"\"\"Internal API views\"\"\"\nfrom django.apps import apps\nfrom django.views.decorators.http import require_http_methods\nfrom django.http import JsonResponse\n\nfrom django.contrib.auth.decorators import login_required\n\nimport requests\n\nfrom cachetools.func import ttl_cache\n\n\nDOMAIN_FIL...
diff --git a/src/api/tests/test_available.py b/src/api/tests/test_available.py index 0bbe01f03..9eab17bf7 100644 --- a/src/api/tests/test_available.py +++ b/src/api/tests/test_available.py @@ -3,19 +3,27 @@ import json from django.contrib.auth import get_user_model -from django.test import TestCase, RequestFactory ...
alltheplaces__alltheplaces-7344
Orlen amenity=fuel listing includes shops without associated fuel station I wrote to Orlen customer support and they actually replied. https://www.orlen.pl/en/for-you/fuel-stations?kw=&from=&to=&s=&wp=&dst=0 https://www.alltheplaces.xyz/map/#22/50.06782417/19.94963049 on ATP map this is not actually fuel stati...
[ { "content": "import re\nfrom time import time\nfrom urllib.parse import urlencode\n\nimport scrapy\n\nfrom locations.categories import Categories, Extras, Fuel, FuelCards, apply_category, apply_yes_no\nfrom locations.dict_parser import DictParser\nfrom locations.hours import DAYS, OpeningHours\n\n\nclass Orlen...
[ { "content": "import re\nfrom time import time\nfrom urllib.parse import urlencode\n\nimport scrapy\n\nfrom locations.categories import Categories, Extras, Fuel, FuelCards, apply_category, apply_yes_no\nfrom locations.dict_parser import DictParser\nfrom locations.hours import DAYS, OpeningHours\n\n\nclass Orlen...
diff --git a/locations/spiders/orlen.py b/locations/spiders/orlen.py index 614b4eaf29e..95d1edf1103 100644 --- a/locations/spiders/orlen.py +++ b/locations/spiders/orlen.py @@ -135,5 +135,9 @@ def parse_location(self, response): item["opening_hours"] = OpeningHours() item["opening_hour...
jupyterhub__jupyterhub-41
Invalid argument: '--cookie-name=jupyter-hub-token-MYUSERNAME' I can't run cells in py notebooks, I got a popup `The kernel appears to have died` Here's the log running jupyterhub from master branch ``` [IPKernelApp] CRITICAL | Bad config encountered during initialization: [IPKernelApp] CRITICAL | Invalid argument: '...
[ { "content": "#!/usr/bin/env python\n\"\"\"Extend regular notebook server to be aware of multiuser things.\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport os\n\nimport requests\n\nfrom tornado import ioloop\nfrom tornado import web\n\nfrom...
[ { "content": "#!/usr/bin/env python\n\"\"\"Extend regular notebook server to be aware of multiuser things.\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport os\n\nimport requests\n\nfrom tornado import ioloop\nfrom tornado import web\n\nfrom...
diff --git a/jupyterhub/singleuserapp.py b/jupyterhub/singleuserapp.py index 301f3ceb8b..41525f16c7 100644 --- a/jupyterhub/singleuserapp.py +++ b/jupyterhub/singleuserapp.py @@ -94,6 +94,11 @@ def _confirm_exit(self): # disable the exit confirmation for background notebook processes ioloop.IOLoop.ins...
google__openhtf-393
Nicer failure mode for misuse of StoreInModule. See #389. > ...it's nonsensical to have no dots, but something one might accidentally do if you forget to do the %s/name business, maybe throw in a quick format check on the inputs of add_argument() to fail-fast rather than raise an obscure error here? > @grybmadsci Doc...
[ { "content": "\"\"\"Utilities for handling command line arguments.\n\nStoreInModule:\n Enables emulating a gflags-esque API (flag affects global value), but one\n doesn't necessarily need to use flags to set values.\n \n Example usage:\n DEFAULT_VALUE = 0\n ARG_PARSER = argv.ModuleParser()\n ARG_PA...
[ { "content": "\"\"\"Utilities for handling command line arguments.\n\nStoreInModule:\n Enables emulating a gflags-esque API (flag affects global value), but one\n doesn't necessarily need to use flags to set values.\n \n Example usage:\n DEFAULT_VALUE = 0\n ARG_PARSER = argv.ModuleParser()\n ARG_PA...
diff --git a/openhtf/util/argv.py b/openhtf/util/argv.py index c10288798..2f75812c0 100644 --- a/openhtf/util/argv.py +++ b/openhtf/util/argv.py @@ -35,7 +35,10 @@ def __init__(self, *args, **kwargs): def __call__(self, parser, namespace, values, option_string=None): if hasattr(self, '_proxy'): ...
scikit-hep__pyhf-1242
Add pyhf.writexml and pyhf.readxml to public API docs # Description As first brought up in PR #1125, `pyhf.writexml` and `pyhf.readxml` are not currently documented in the public Python API docs. This should get fixed.
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow~=2.2.0', # TensorFlow minor releases are as volatile as major\n 'tensorflow-probability~=0.10.0',\n ],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow~=2.2.0', # TensorFlow minor releases are as volatile as major\n 'tensorflow-probability~=0.10.0',\n ],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax...
diff --git a/.readthedocs.yml b/.readthedocs.yml index e3a9ce23a5..de9dba49a9 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -8,6 +8,7 @@ version: 2 # Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs/conf.py + #fail_on_warning: true # Optionally build your docs in add...
pre-commit__pre-commit-1474
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 9: invalid start byte Hi, there! Get such error on commit. Probably, because of cyrillic symbols in user name: 'C:\\Users\\Администратор\...'. Is there a way to avoid this problem exept renaming user? Thanks for your cool product! ### vers...
[ { "content": "import contextlib\nimport functools\nimport os\nimport sys\nfrom typing import Dict\nfrom typing import Generator\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Tuple\n\nimport pre_commit.constants as C\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.e...
[ { "content": "import contextlib\nimport functools\nimport os\nimport sys\nfrom typing import Dict\nfrom typing import Generator\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Tuple\n\nimport pre_commit.constants as C\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.e...
diff --git a/pre_commit/languages/python.py b/pre_commit/languages/python.py index e17376e1f..6f7c90055 100644 --- a/pre_commit/languages/python.py +++ b/pre_commit/languages/python.py @@ -67,9 +67,10 @@ def _find_by_py_launcher( ) -> Optional[str]: # pragma: no cover (windows only) if version.startswith('python...
getnikola__nikola-2238
deploy crashes with state system Will investigate later. ``` pytb Traceback (most recent call last): File "/home/kwpolska/virtualenvs/nikola-py3/lib/python3.5/site-packages/doit/doit_cmd.py", line 168, in run return command.parse_execute(args) File "/home/kwpolska/virtualenvs/nikola-py3/lib/python3.5/site-pack...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2016 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2016 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
diff --git a/nikola/state.py b/nikola/state.py index 68cf90a35b..efe8cb7ff0 100644 --- a/nikola/state.py +++ b/nikola/state.py @@ -78,6 +78,11 @@ def _read(self): def _save(self): dname = os.path.dirname(self._path) with tempfile.NamedTemporaryFile(dir=dname, delete=False) as outf: + #...
dmlc__dgl-2387
GIN model cannot handle empty graphs ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> ## To Reproduce Steps to reproduce the behavior: 1. Create an empty graph 1. Pass the empty graph into a GIN model 1. Run, and it would error. <!-- If you have a code sample, error messages, stac...
[ { "content": "\"\"\"Implementation for core graph computation.\"\"\"\n# pylint: disable=not-callable\nimport numpy as np\n\nfrom .base import DGLError, is_all, NID, EID, ALL\nfrom . import backend as F\nfrom . import function as fn\nfrom .frame import Frame\nfrom .udf import NodeBatch, EdgeBatch\nfrom . import ...
[ { "content": "\"\"\"Implementation for core graph computation.\"\"\"\n# pylint: disable=not-callable\nimport numpy as np\n\nfrom .base import DGLError, is_all, NID, EID, ALL\nfrom . import backend as F\nfrom . import function as fn\nfrom .frame import Frame\nfrom .udf import NodeBatch, EdgeBatch\nfrom . import ...
diff --git a/python/dgl/core.py b/python/dgl/core.py index 204135fbb882..3ffaf0b162a6 100644 --- a/python/dgl/core.py +++ b/python/dgl/core.py @@ -274,11 +274,8 @@ def message_passing(g, mfunc, rfunc, afunc): dict[str, Tensor] Results from the message passing computation. """ - if g.number_of_edge...
akvo__akvo-rsr-5209
Fallback to value in "Report Admin > Pending Approval" list view # Current situation Some updates look like they have no value and others do. ![Image](https://user-images.githubusercontent.com/91939214/211502642-df01abac-d774-4fad-a167-a0940796a42f.png) The reason is that some have descriptions and others don't. **...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\nimport json\...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\nimport json\...
diff --git a/akvo/rest/serializers/indicator_period_data.py b/akvo/rest/serializers/indicator_period_data.py index a95bdf1024..8a65c2b9a9 100644 --- a/akvo/rest/serializers/indicator_period_data.py +++ b/akvo/rest/serializers/indicator_period_data.py @@ -84,7 +84,7 @@ class Meta: model = IndicatorPeriodData ...
sanic-org__sanic-2285
Goin' Fast URL IPv6 address is not bracketed Sanic says: ``` sanic myprogram.app -H :: Goin' Fast @ http://:::8000 ``` The correct formatting for IPv6 would be: ``` Goin' Fast @ http://[::]:8000 ``` Fixing the Goin' fast banner in `sanic/app.py` would be an easy enough task for someone wishing to start hac...
[ { "content": "from __future__ import annotations\n\nimport logging\nimport logging.config\nimport os\nimport re\n\nfrom asyncio import (\n AbstractEventLoop,\n CancelledError,\n Protocol,\n ensure_future,\n get_event_loop,\n wait_for,\n)\nfrom asyncio.futures import Future\nfrom collections im...
[ { "content": "from __future__ import annotations\n\nimport logging\nimport logging.config\nimport os\nimport re\n\nfrom asyncio import (\n AbstractEventLoop,\n CancelledError,\n Protocol,\n ensure_future,\n get_event_loop,\n wait_for,\n)\nfrom asyncio.futures import Future\nfrom collections im...
diff --git a/sanic/app.py b/sanic/app.py index 3a7e738cff..3cacdf6c5c 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -1337,7 +1337,9 @@ def _helper( if unix: logger.info(f"Goin' Fast @ {unix} {proto}://...") else: - logger.info(f"Goin' Fast @ {proto}://{host}:{...
jupyterhub__zero-to-jupyterhub-k8s-2200
Schema validation to catch typos etc! I just learned about JSONSchema's `additionalProperties`! It allows us to declare that we don't accept values besides those declared in the schema for a certain object with declared properties. This can enable what we have wanted for a very long time, something that spots typos!...
[ { "content": "import glob\nimport os\nimport re\nimport sys\n\nfrom binascii import a2b_hex\n\nfrom tornado.httpclient import AsyncHTTPClient\nfrom kubernetes import client\nfrom jupyterhub.utils import url_path_join\n\n# Make sure that modules placed in the same directory as the jupyterhub config are added to ...
[ { "content": "import glob\nimport os\nimport re\nimport sys\n\nfrom binascii import a2b_hex\n\nfrom tornado.httpclient import AsyncHTTPClient\nfrom kubernetes import client\nfrom jupyterhub.utils import url_path_join\n\n# Make sure that modules placed in the same directory as the jupyterhub config are added to ...
diff --git a/.github/workflows/test-chart.yaml b/.github/workflows/test-chart.yaml index 2e5e5c91a4..5104b5c9a7 100644 --- a/.github/workflows/test-chart.yaml +++ b/.github/workflows/test-chart.yaml @@ -12,7 +12,6 @@ on: - "doc/**" - "**/test-docs.yaml" - "**.md" - - "**/schema.yaml" - ...
Pycord-Development__pycord-1000
multiple-type arg option is beak ### Summary Cannot set multiple type for arg in slash command ### Reproduction Steps ```python @slash_command() async def test(self, ctx, channel: Option([discord.TextChannel, discord.VoiceChannel])): print(channel) ``` ### Minimal Reproducible Code ```python Tra...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without li...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without li...
diff --git a/discord/commands/options.py b/discord/commands/options.py index 1cd0260e57..aa0a43010b 100644 --- a/discord/commands/options.py +++ b/discord/commands/options.py @@ -139,7 +139,7 @@ def __init__(self, input_type: Any, /, description: str = None, **kwargs) -> Non input_type = SlashComma...
nilearn__nilearn-4049
[DOC] Fix Sphinx issues related to adding new experimental module and typing ### Is there an existing issue for this? - [X] I have searched the existing issues ### Describe your proposed suggestion in detail. 1. Linkcode extension error https://github.com/nilearn/nilearn/pull/4017#issuecomment-1739213117 and r...
[ { "content": "import inspect\nimport os\nimport subprocess\nimport sys\nfrom functools import partial\nfrom operator import attrgetter\n\nREVISION_CMD = \"git rev-parse --short HEAD\"\n\n\ndef _get_git_revision():\n try:\n revision = subprocess.check_output(REVISION_CMD.split()).strip()\n except (s...
[ { "content": "import inspect\nimport os\nimport subprocess\nimport sys\nfrom functools import partial\nfrom operator import attrgetter\n\nREVISION_CMD = \"git rev-parse --short HEAD\"\n\n\ndef _get_git_revision():\n try:\n revision = subprocess.check_output(REVISION_CMD.split()).strip()\n except (s...
diff --git a/doc/modules/experimental.rst b/doc/modules/experimental.rst index 873a852d77..57eefc24ae 100644 --- a/doc/modules/experimental.rst +++ b/doc/modules/experimental.rst @@ -7,8 +7,12 @@ :no-members: :no-inherited-members: -nilearn.experimental.surface ----------------------------- +:mod:`nilearn.exp...
django-extensions__django-extensions-1769
runserver_plus with REMOTE_USER ? Just curious if runserver_plus supports the REMOTE_USER option, if so, I can't seem to find a way to make it work (and thusly could use a little guidance). When running the default `python manage.py runserver` command I can get it to work with automatically logging in a REMOTE_USER ...
[ { "content": "# -*- coding: utf-8 -*-\nimport logging\nimport os\nimport re\nimport socket\nimport sys\nimport traceback\nimport webbrowser\nimport functools\nfrom typing import List, Set\n\nimport django\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand, CommandError, Syste...
[ { "content": "# -*- coding: utf-8 -*-\nimport logging\nimport os\nimport re\nimport socket\nimport sys\nimport traceback\nimport webbrowser\nimport functools\nfrom typing import List, Set\n\nimport django\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand, CommandError, Syste...
diff --git a/django_extensions/management/commands/runserver_plus.py b/django_extensions/management/commands/runserver_plus.py index e8f104c58..62016a06d 100644 --- a/django_extensions/management/commands/runserver_plus.py +++ b/django_extensions/management/commands/runserver_plus.py @@ -326,6 +326,9 @@ def make_enviro...
akvo__akvo-rsr-1857
Filtering Projects by title behaviour is odd ## Test plan 1. In the project editor, add a leading or trailing space to the project title or subtitle 2. Save section 3. Reload page or visit project page 4. There should not be any leading or trailing spaces ## Issue description I'm not sure if it's related to #1338 or n...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nim...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nim...
diff --git a/akvo/rsr/models/project.py b/akvo/rsr/models/project.py index 0996fd03fa..c3a6800eb0 100644 --- a/akvo/rsr/models/project.py +++ b/akvo/rsr/models/project.py @@ -323,6 +323,16 @@ def clean(self): u'time than end date (actual).')} ) + def save...
google-deepmind__dm-haiku-337
suggestion: remove if-statements from dropout layer Due to the rate check, it's not possible to modify the rate parameter dynamically without recompiling the entire graph. https://github.com/deepmind/dm-haiku/blob/main/haiku/_src/basic.py#L316 ```python if rate < 0 or rate >= 1: raise ValueError("rate must b...
[ { "content": "# Copyright 2019 DeepMind Technologies Limited. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICEN...
[ { "content": "# Copyright 2019 DeepMind Technologies Limited. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICEN...
diff --git a/haiku/_src/basic.py b/haiku/_src/basic.py index 305a932d8..5a24ac4f4 100644 --- a/haiku/_src/basic.py +++ b/haiku/_src/basic.py @@ -313,11 +313,14 @@ def dropout(rng: PRNGKey, rate: float, x: jnp.ndarray) -> jnp.ndarray: than what applications require. A work-around is to pass `rate` with a lower ...
bookwyrm-social__bookwyrm-1578
Unable to connect via ActivityPub to Hubzilla and Zap (and other related projects) Part 1. Follow a Zap user from bookwyrm. I'll use otest@p3.macgirvin.com which is a throw-away test account. Entering the address in the search bar reports nothing found. On the Zap side, we can see a webfinger request (which provi...
[ { "content": "\"\"\" functionality outline for a book data connector \"\"\"\nfrom abc import ABC, abstractmethod\nimport logging\n\nfrom django.db import transaction\nimport requests\nfrom requests.exceptions import RequestException\n\nfrom bookwyrm import activitypub, models, settings\nfrom .connector_manager ...
[ { "content": "\"\"\" functionality outline for a book data connector \"\"\"\nfrom abc import ABC, abstractmethod\nimport logging\n\nfrom django.db import transaction\nimport requests\nfrom requests.exceptions import RequestException\n\nfrom bookwyrm import activitypub, models, settings\nfrom .connector_manager ...
diff --git a/bookwyrm/connectors/abstract_connector.py b/bookwyrm/connectors/abstract_connector.py index c032986d1b..79d79be4d5 100644 --- a/bookwyrm/connectors/abstract_connector.py +++ b/bookwyrm/connectors/abstract_connector.py @@ -227,8 +227,12 @@ def get_data(url, params=None, timeout=10): resp = requests...
freedomofpress__securedrop-6153
spurious testinfra failures when servers have non-default hostnames ## Description If a production instance is configured with hostnames other than the recommended `app` and `mon`, `securedrop-admin verify` will report spurious testinfra failures. First noticed in <https://github.com/freedomofpress/securedrop/iss...
[ { "content": "\"\"\"\nConfiguration for TestInfra test suite for SecureDrop.\nHandles importing host-specific test vars, so test functions\ncan be reused across multiple hosts, with varied targets.\n\nVars should be placed in `testinfra/vars/<hostname>.yml`.\n\"\"\"\n\nimport io\nimport os\nimport yaml\nfrom ty...
[ { "content": "\"\"\"\nConfiguration for TestInfra test suite for SecureDrop.\nHandles importing host-specific test vars, so test functions\ncan be reused across multiple hosts, with varied targets.\n\nVars should be placed in `testinfra/vars/<hostname>.yml`.\n\"\"\"\n\nimport io\nimport os\nimport yaml\nfrom ty...
diff --git a/install_files/ansible-base/roles/tails-config/tasks/create_ssh_aliases.yml b/install_files/ansible-base/roles/tails-config/tasks/create_ssh_aliases.yml index c708b7f6d4..a8a452cd34 100644 --- a/install_files/ansible-base/roles/tails-config/tasks/create_ssh_aliases.yml +++ b/install_files/ansible-base/roles...
mampfes__hacs_waste_collection_schedule-1856
[Bug]: calculating "date 2" on Feb.29 ("now.year + 1" = 2025-02-29 does not exist!) ### I Have A Problem With: The integration in general ### What's Your Problem The date calculation for synchronizing the calendar has an error in the leap year (02/29). ### Source (if relevant) _No response_ ### Logs ```Shell Log...
[ { "content": "import datetime\nimport logging\nimport re\nfrom html.parser import HTMLParser\n\nimport requests\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\nfrom waste_collection_schedule.service.AbfallIO import SERVICE_MAP\nfrom waste_collection_schedule.service.ICS import I...
[ { "content": "import datetime\nimport logging\nimport re\nfrom html.parser import HTMLParser\n\nimport requests\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\nfrom waste_collection_schedule.service.AbfallIO import SERVICE_MAP\nfrom waste_collection_schedule.service.ICS import I...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/abfall_io.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/abfall_io.py index 54ac141e5..cff52c1e0 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/abfall_i...
django-json-api__django-rest-framework-json-api-390
v2.3 ImportError: No module named 'six' I upgraded from v2.2 to 2.3 and I'm receiving the error indicated in the subject when I run Django server. Stack trace: Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7f06651deb70> Traceback (most recent call last): File "/home/ub...
[ { "content": "#!/usr/bin/env python\nfrom __future__ import print_function\n\nimport os\nimport re\nimport sys\n\nfrom setuptools import setup\n\nneeds_mock = sys.version_info < (3, 3)\nmock = ['mock'] if needs_mock else []\nneeds_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)\npytest_runner = ['pyte...
[ { "content": "#!/usr/bin/env python\nfrom __future__ import print_function\n\nimport os\nimport re\nimport sys\n\nfrom setuptools import setup\n\nneeds_mock = sys.version_info < (3, 3)\nmock = ['mock'] if needs_mock else []\nneeds_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)\npytest_runner = ['pyte...
diff --git a/rest_framework_json_api/__init__.py b/rest_framework_json_api/__init__.py index 27b12fcc..7e35dd7e 100644 --- a/rest_framework_json_api/__init__.py +++ b/rest_framework_json_api/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- __title__ = 'djangorestframework-jsonapi' -__version__ = '2.3.0' +__versi...
adamchainz__django-cors-headers-168
Cover uncovered return statement The following return in `corsheaders.middleware` isn't covered in tests, and was just ignored with `# pragma: no cover` to get the coverage to a nice round 100%. We should add a test, probably after #124 is done. ``` python if not conf.CORS_ORIGIN_ALLOW_ALL and self.origin_not_found_in...
[ { "content": "import re\n\nfrom django import http\nfrom django.apps import apps\nfrom django.utils.cache import patch_vary_headers\nfrom django.utils.six.moves.urllib.parse import urlparse\n\nfrom .conf import conf\nfrom .signals import check_request_enabled\n\ntry:\n from django.utils.deprecation import Mi...
[ { "content": "import re\n\nfrom django import http\nfrom django.apps import apps\nfrom django.utils.cache import patch_vary_headers\nfrom django.utils.six.moves.urllib.parse import urlparse\n\nfrom .conf import conf\nfrom .signals import check_request_enabled\n\ntry:\n from django.utils.deprecation import Mi...
diff --git a/corsheaders/middleware.py b/corsheaders/middleware.py index c0f2244a..b81d84c2 100755 --- a/corsheaders/middleware.py +++ b/corsheaders/middleware.py @@ -58,8 +58,9 @@ def _https_referer_replace(self, request): if request.is_secure() and origin and 'ORIGINAL_HTTP_REFERER' not in request.META: ...
voxel51__fiftyone-102
Need custom FloatField that supports more numeric types In this code (taken from https://github.com/voxel51/fiftyone/blob/develop/examples/model_inference/README.md), I had to add `float(confidence)` otherwise I got an error about `confidence`, which was a numpy float32 or something similar, not being a supported value...
[ { "content": "\"\"\"\nFields of dataset sample schemas.\n\n| Copyright 2017-2020, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\n# pragma pylint: disable=redefined-builtin\n# pragma pylint: disable=unused-wildcard-import\n# pragma pylint: disable=wildcard-import\nfrom __future__ import absol...
[ { "content": "\"\"\"\nFields of dataset sample schemas.\n\n| Copyright 2017-2020, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\n# pragma pylint: disable=redefined-builtin\n# pragma pylint: disable=unused-wildcard-import\n# pragma pylint: disable=wildcard-import\nfrom __future__ import absol...
diff --git a/fiftyone/core/fields.py b/fiftyone/core/fields.py index f74ae8829a7..809a6358622 100644 --- a/fiftyone/core/fields.py +++ b/fiftyone/core/fields.py @@ -34,7 +34,19 @@ class IntField(mongoengine.IntField, Field): class FloatField(mongoengine.FloatField, Field): - pass + def validate(self, value):...
holoviz__panel-5846
DateRangeSlider raise TypeError: can't compare datetime.datetime to datetime.date I'm on the latest branch of Panel. The documentation states that `DateRangeSlider` supports `date`. I.e. I.e. would expect its `.from_param` method to support `CalendarDate` parameters. But it raises an exception when I try. ```pyth...
[ { "content": "\"\"\"\nSliders allow you to select a value from a defined range of values by\nmoving one or more handle(s).\n\n- The `value` will update when a handle is dragged.\n- The `value_throttled`will update when a handle is released.\n\"\"\"\nfrom __future__ import annotations\n\nimport datetime as dt\n\...
[ { "content": "\"\"\"\nSliders allow you to select a value from a defined range of values by\nmoving one or more handle(s).\n\n- The `value` will update when a handle is dragged.\n- The `value_throttled`will update when a handle is released.\n\"\"\"\nfrom __future__ import annotations\n\nimport datetime as dt\n\...
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3129b6ae8c..cb631cfb1e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -20,7 +20,7 @@ jobs: name: Run pre-commit runs-on: 'ubuntu-latest' steps: - - uses: holoviz-dev/holoviz_tasks/pre-commit@v...
numpy__numpy-9552
test_warning_calls "invalid escape sequence \s" on Python 3.6 daily wheel builds. New errors today (13 August), for Linux and OSX: ``` ====================================================================== ERROR: numpy.tests.test_warnings.test_warning_calls --------------------------------------------------------...
[ { "content": "\"\"\"\n============\nArray basics\n============\n\nArray types and conversions between types\n=========================================\n\nNumPy supports a much greater variety of numerical types than Python does.\nThis section shows which are available, and how to modify an array's data-type.\n\...
[ { "content": "\"\"\"\n============\nArray basics\n============\n\nArray types and conversions between types\n=========================================\n\nNumPy supports a much greater variety of numerical types than Python does.\nThis section shows which are available, and how to modify an array's data-type.\n\...
diff --git a/numpy/doc/basics.py b/numpy/doc/basics.py index d0d384a62d82..4d3ab046ecd7 100644 --- a/numpy/doc/basics.py +++ b/numpy/doc/basics.py @@ -158,8 +158,8 @@ numpy provides with ``np.finfo(np.longdouble)``. NumPy does not provide a dtype with more precision than C -``long double``\s; in particular, the 128...