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
aimhubio__aim-2669
`TensorboardFolderTracker` missing Image import ## 🐛 Bug Currently the `TensorboardFolderTracker` will crash if there are any images that need to be parsed. This is because currently `aim.Image` is only imported during type checking, however `_process_tb_event` attempts to create an `Image` instance, without access...
[ { "content": "from tensorboard.backend.event_processing.directory_watcher import DirectoryWatcher\nfrom tensorboard.backend.event_processing import event_file_loader\nimport tensorflow as tf\nfrom tensorboard.util import tensor_util\nimport time\nimport threading\nfrom pathlib import Path\nimport logging\nimpor...
[ { "content": "from tensorboard.backend.event_processing.directory_watcher import DirectoryWatcher\nfrom tensorboard.backend.event_processing import event_file_loader\nimport tensorflow as tf\nfrom tensorboard.util import tensor_util\nimport time\nimport threading\nfrom pathlib import Path\nimport logging\nimpor...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 57c867207b..2017eb2edd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,8 @@ ### Fixes -- Convert NaNs and Infs in responses to strings (n-gao) +- Convert NaNs and Infs in responses to strings (n-gao) +- Import `Image` and `Audio` for `TensorboardFolderTrack...
pex-tool__pex-2123
Release 2.1.133 On the docket: + [x] python<=3.8 symlink with a suffix (eg 3.7m) can create a venv without a pythonX.Y symlink which breaks pex assumptions that pythonX.Y is always available #2119
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.132\"\n", "path": "pex/version.py" } ]
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.133\"\n", "path": "pex/version.py" } ]
diff --git a/CHANGES.rst b/CHANGES.rst index dd0d64575..73c5d8e43 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,12 +1,21 @@ Release Notes ============= +2.1.133 +------- + +This release fixes ``--venv`` mode PEX venv script shebangs for some +scenarios using Python ``<=3.7`` interpreters. + +* Fix venv script sh...
pex-tool__pex-2104
Release 2.1.130 On the docket: + [x] Pex fails to lock - missing artifact #2098
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.129\"\n", "path": "pex/version.py" } ]
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.130\"\n", "path": "pex/version.py" } ]
diff --git a/CHANGES.rst b/CHANGES.rst index 46c800c11..7db19a69e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,15 @@ Release Notes ============= +2.1.130 +------- + +This release fixes a regression locking certain complex cases of direct +and transitive requirement interactions as exemplified in #2098. + +...
pex-tool__pex-2081
Release 2.1.126 On the docket: + [x] Resolve sdist builds can race and fail. #2078
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.125\"\n", "path": "pex/version.py" } ]
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.126\"\n", "path": "pex/version.py" } ]
diff --git a/CHANGES.rst b/CHANGES.rst index ce3114e28..112d072a0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,16 @@ Release Notes ============= +2.1.126 +------- + +This release fixes a long standing (> 4 years old!) concurrency bug +when building the same sdist for the 1st time and racing another Pex +pr...
pex-tool__pex-1987
Release 2.1.114 On the docket: + [ ] Only insert "" to head of sys.path if a venv PEX runs in interpreter mode #1984 + [x] venv_dir calculation doesn't correctly handle PEX_PYTHON_PATH with symlinks. #1885
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.113\"\n", "path": "pex/version.py" } ]
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.114\"\n", "path": "pex/version.py" } ]
diff --git a/CHANGES.rst b/CHANGES.rst index c2f86b7b9..097046b8f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,17 @@ Release Notes ============= +2.1.114 +------- + +This release brings two fixes for ``--venv`` mode PEXes. + +* Only insert "" to head of sys.path if a venv PEX runs in interpreter mode (#198...
pex-tool__pex-2258
Release 2.1.148 On the docket: + [x] The Pex CLI should warn when it creates a PEX zip that requires zip64. #2247
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.147\"\n", "path": "pex/version.py" } ]
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.148\"\n", "path": "pex/version.py" } ]
diff --git a/CHANGES.md b/CHANGES.md index 70201b9bb..84cd183cd 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,16 @@ # Release Notes +## 2.1.148 + +Add support to the Pex for checking if built PEXes are valid Python +zipapps. Currently, Python zipapps must reside in 32 bit zip files due +to limitations of the s...
pex-tool__pex-2214
Release 2.1.142 On the docket: + [x] KeyError when locking awscli on Python 3.11 #2211
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.141\"\n", "path": "pex/version.py" } ]
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.142\"\n", "path": "pex/version.py" } ]
diff --git a/CHANGES.md b/CHANGES.md index bb214e656..5bbc1c157 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,12 @@ # Release Notes +## 2.1.142 + +This release fixes Pex to handle Pip backtracking due to sdist build +errors when attempting to extract metadata. + +* Handle backtracking due to sdist build errors...
pex-tool__pex-2153
Release 2.1.137 On the docket: + [x] A locked requirement with mixed artifact types fails to lock. #2150
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.136\"\n", "path": "pex/version.py" } ]
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.137\"\n", "path": "pex/version.py" } ]
diff --git a/CHANGES.rst b/CHANGES.rst index e2b40876e..86b69c27c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,16 @@ Release Notes ============= +2.1.137 +------- + +This release fixes a long standing bug in lock file creation for exotic +locking scenarios pulling the same project from multiple artifact +s...
pex-tool__pex-2055
Release 2.1.122 On the docket: + [x] Support the latest Pip releases: 22.3.1 & 23.0 #2056 + [x] Lock sdists with prepare-metadata-for-build-wheel. #2053 + [x] Fix `execute_parallel` "leaking" a thread. #2052
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.121\"\n", "path": "pex/version.py" } ]
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.122\"\n", "path": "pex/version.py" } ]
diff --git a/CHANGES.rst b/CHANGES.rst index 052808652..869877089 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,24 @@ Release Notes ============= +2.1.122 +------- + +This release fixes posix file locks used by Pex internally and enhances +lock creation to support locking sdist-only C extension projects tha...
pex-tool__pex-1976
Release 2.1.113 On the docket: + [x] Restore AtomicDirectory non-locked good behavior. #1974
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.112\"\n", "path": "pex/version.py" } ]
[ { "content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = \"2.1.113\"\n", "path": "pex/version.py" } ]
diff --git a/CHANGES.rst b/CHANGES.rst index 5765b0113..c2f86b7b9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,16 @@ Release Notes ============= +2.1.113 +------- + +This is a hotfix release that fixes errors installing wheels when there +is high parallelism in execution of Pex processes. These issues were...
wemake-services__wemake-python-styleguide-1588
Add "wrapper" to NESTED_FUNCTIONS_WHITELIST? # Rule request ## Thesis and reasoning Decorators are often created inside functions. These decorators are then supposed to be used on top of other functions, which means they must accept one, and also that they will often create and return a new function by wrapping t...
[ { "content": "\"\"\"\nThis module contains list of white- and black-listed ``python`` members.\n\nWe add values here when we want to make them public.\nOr when a value is reused in several places.\nThen, we automatically have to add it here and document it.\n\nOther constants that are not used across modules\na...
[ { "content": "\"\"\"\nThis module contains list of white- and black-listed ``python`` members.\n\nWe add values here when we want to make them public.\nOr when a value is reused in several places.\nThen, we automatically have to add it here and document it.\n\nOther constants that are not used across modules\na...
diff --git a/wemake_python_styleguide/constants.py b/wemake_python_styleguide/constants.py index 25e04b158..c570a0f1f 100644 --- a/wemake_python_styleguide/constants.py +++ b/wemake_python_styleguide/constants.py @@ -278,6 +278,7 @@ NESTED_FUNCTIONS_WHITELIST: Final = frozenset(( 'decorator', 'factory', + ...
fedora-infra__bodhi-507
setup.py test doesn't include extra_requires from fedmsg deps ``` ====================================================================== ERROR: Failure: ImportError (No module named psutil) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/decause/.v...
[ { "content": "import __main__\n__requires__ = __main__.__requires__ = 'WebOb>=1.4.1'\nimport pkg_resources\n\n# The following two imports are required to shut up an\n# atexit error when running tests with python 2.7\nimport logging\nimport multiprocessing\n\nimport os\nimport sys\n\nfrom setuptools import setup...
[ { "content": "import __main__\n__requires__ = __main__.__requires__ = 'WebOb>=1.4.1'\nimport pkg_resources\n\n# The following two imports are required to shut up an\n# atexit error when running tests with python 2.7\nimport logging\nimport multiprocessing\n\nimport os\nimport sys\n\nfrom setuptools import setup...
diff --git a/setup.py b/setup.py index 9f78b56417..46fa402cb1 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,9 @@ # External resources 'python-bugzilla', 'simplemediawiki', - 'fedmsg', + + # "python setup.py test" needs one of fedmsg's setup.py extra_requires + 'fedmsg[consumers]', 'Sp...
scikit-image__scikit-image-1741
peak_local_max Incorrect output type This [function](http://scikit-image.org/docs/dev/api/skimage.feature.html#peak-local-max) is returning a `list` instead of an `ndarray` if no peaks are detected. I traced the problem till this [line](https://github.com/scikit-image/scikit-image/blob/master/skimage/feature/peak.py#...
[ { "content": "import numpy as np\nimport scipy.ndimage as ndi\nfrom ..filters import rank_order\n\n\ndef peak_local_max(image, min_distance=10, threshold_abs=0, threshold_rel=0.1,\n exclude_border=True, indices=True, num_peaks=np.inf,\n footprint=None, labels=None):\n \"\"...
[ { "content": "import numpy as np\nimport scipy.ndimage as ndi\nfrom ..filters import rank_order\n\n\ndef peak_local_max(image, min_distance=10, threshold_abs=0, threshold_rel=0.1,\n exclude_border=True, indices=True, num_peaks=np.inf,\n footprint=None, labels=None):\n \"\"...
diff --git a/skimage/feature/peak.py b/skimage/feature/peak.py index 599a6e581cd..421abeec363 100644 --- a/skimage/feature/peak.py +++ b/skimage/feature/peak.py @@ -119,7 +119,7 @@ def peak_local_max(image, min_distance=10, threshold_abs=0, threshold_rel=0.1, if np.all(image == image.flat[0]): if indice...
digitalfabrik__integreat-cms-470
Do not commit trivial changes to documentation ### Motivation <!-- A clear and concise description of what the motivation for the new feature is, and what problem it is solving. --> At the moment, our CircleCI jobs `build-documentation` and `deploy-documentation` automatically build our documentation and commit/push ...
[ { "content": "\"\"\"\nConfiguration file for the Sphinx documentation builder.\n\nThis file only contains a selection of the most common options. For a full\nlist see the documentation:\nhttps://www.sphinx-doc.org/en/master/usage/configuration.html\n\"\"\"\n\n# -- Path setup ------------------------------------...
[ { "content": "\"\"\"\nConfiguration file for the Sphinx documentation builder.\n\nThis file only contains a selection of the most common options. For a full\nlist see the documentation:\nhttps://www.sphinx-doc.org/en/master/usage/configuration.html\n\"\"\"\n\n# -- Path setup ------------------------------------...
diff --git a/Pipfile b/Pipfile index c8c609700d..a9bcd6b4c0 100644 --- a/Pipfile +++ b/Pipfile @@ -16,6 +16,7 @@ pylint-django = "*" pylint-runner = "*" sphinx = "*" sphinxcontrib-django = "*" +sphinx-last-updated-by-git = "*" sphinx-rtd-theme = "*" [packages] diff --git a/Pipfile.lock b/Pipfile.lock index 1ccaf...
meltano__meltano-6901
ci: PyPi publish job fails in "Build distribution" step with error `module 'sqlalchemy' has no attribute 'orm'` https://github.com/meltano/meltano/actions/runs/3267990463/jobs/5373871668
[ { "content": "\"\"\"add resource type to embed token\n\nRevision ID: 23ea52e6d784\nRevises: ceb00d7ff3bd\nCreate Date: 2020-02-12 09:29:31.592426\n\n\"\"\"\nimport sqlalchemy as sa\nfrom alembic import op\n\nfrom meltano.migrations.utils.dialect_typing import (\n get_dialect_name,\n max_string_length_for_...
[ { "content": "\"\"\"add resource type to embed token\n\nRevision ID: 23ea52e6d784\nRevises: ceb00d7ff3bd\nCreate Date: 2020-02-12 09:29:31.592426\n\n\"\"\"\nimport sqlalchemy as sa\nimport sqlalchemy.orm\nfrom alembic import op\n\nfrom meltano.migrations.utils.dialect_typing import (\n get_dialect_name,\n ...
diff --git a/src/meltano/migrations/versions/23ea52e6d784_add_resource_type_to_embed_token.py b/src/meltano/migrations/versions/23ea52e6d784_add_resource_type_to_embed_token.py index 70e6d097cf..fc4060a65e 100644 --- a/src/meltano/migrations/versions/23ea52e6d784_add_resource_type_to_embed_token.py +++ b/src/meltano/mi...
liqd__a4-opin-388
timeline wrong way? the phases in the timeline seem to be sorted in the wrong direction: ![bildschirmfoto 2016-10-21 um 13 33 06](https://cloud.githubusercontent.com/assets/2905743/19597159/1eee7114-9793-11e6-97f9-5acd3d610f46.png) ![bildschirmfoto 2016-10-21 um 13 33 18](https://cloud.githubusercontent.com/assets/2905...
[ { "content": "from django.core.exceptions import ValidationError\nfrom django.db import models\nfrom django.utils import timezone\nfrom django.utils.translation import ugettext as _\n\nfrom euth.modules import models as modules_models\n\nfrom . import content\nfrom .validators import validate_content\n\n\nclass...
[ { "content": "from django.core.exceptions import ValidationError\nfrom django.db import models\nfrom django.utils import timezone\nfrom django.utils.translation import ugettext as _\n\nfrom euth.modules import models as modules_models\n\nfrom . import content\nfrom .validators import validate_content\n\n\nclass...
diff --git a/euth/phases/models.py b/euth/phases/models.py index 0a2e799e7..bee6de8b5 100644 --- a/euth/phases/models.py +++ b/euth/phases/models.py @@ -26,6 +26,9 @@ class Phase(models.Model): objects = PhasesQuerySet.as_manager() + class Meta: + ordering = ['type'] + def __str__(self): ...
vacanza__python-holidays-1699
Update branch names Rename: - `master` -> `main` - `beta` -> `dev`
[ { "content": "#!/usr/bin/env python3\n\n# python-holidays\n# ---------------\n# A fast, efficient Python library for generating country, province and state\n# specific sets of holidays on the fly. It aims to make determining whether a\n# specific date is a holiday as fast and flexible as possible.\n#\n# A...
[ { "content": "#!/usr/bin/env python3\n\n# python-holidays\n# ---------------\n# A fast, efficient Python library for generating country, province and state\n# specific sets of holidays on the fly. It aims to make determining whether a\n# specific date is a holiday as fast and flexible as possible.\n#\n# A...
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d81d30823..159b16f62 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -41,5 +41,5 @@ Your PR description goes here. Thanks again for your contribution! --> -[contributing-guidelines]: http...
pytorch__examples-182
Division error Training a model for `fast-neural-style` raises a RuntimeError from variable division during input normalization. - python2.7 - torch==0.1.12.post2 - torchvision==0.1.8 ```` Traceback (most recent call last): File "neural_style/neural_style.py", line 226, in <module> main() File "neu...
[ { "content": "import torch\nfrom PIL import Image\nfrom torch.autograd import Variable\n\n\ndef load_image(filename, size=None, scale=None):\n img = Image.open(filename)\n if size is not None:\n img = img.resize((size, size), Image.ANTIALIAS)\n elif scale is not None:\n img = img.resize((...
[ { "content": "import torch\nfrom PIL import Image\nfrom torch.autograd import Variable\n\n\ndef load_image(filename, size=None, scale=None):\n img = Image.open(filename)\n if size is not None:\n img = img.resize((size, size), Image.ANTIALIAS)\n elif scale is not None:\n img = img.resize((...
diff --git a/fast_neural_style/neural_style/utils.py b/fast_neural_style/neural_style/utils.py index d86b243440..525c25148c 100644 --- a/fast_neural_style/neural_style/utils.py +++ b/fast_neural_style/neural_style/utils.py @@ -39,5 +39,5 @@ def normalize_batch(batch): std[:, 2, :, :] = 0.225 batch = torch.div...
freqtrade__freqtrade-4302
Invalid JSON returned by rest_client.py ## Describe your environment * Operating system: Linux (Docker) * Python Version: 3.8.6 * CCXT version: 1.40.99 * Freqtrade Version: 2021.1 ## Describe the problem: The JSON output from `rest_client.py` is not a valid JSON. The reason of the problem is th...
[ { "content": "#!/usr/bin/env python3\n\"\"\"\nSimple command line client into RPC commands\nCan be used as an alternate to Telegram\n\nShould not import anything from freqtrade,\nso it can be used as a standalone script.\n\"\"\"\n\nimport argparse\nimport inspect\nimport json\nimport logging\nimport re\nimport ...
[ { "content": "#!/usr/bin/env python3\n\"\"\"\nSimple command line client into RPC commands\nCan be used as an alternate to Telegram\n\nShould not import anything from freqtrade,\nso it can be used as a standalone script.\n\"\"\"\n\nimport argparse\nimport inspect\nimport json\nimport logging\nimport re\nimport ...
diff --git a/scripts/rest_client.py b/scripts/rest_client.py index 2232b842122..b6e66cfa4a2 100755 --- a/scripts/rest_client.py +++ b/scripts/rest_client.py @@ -379,7 +379,7 @@ def main(args): print_commands() return - print(getattr(client, command)(*args["command_arguments"])) + print(json.du...
pydantic__pydantic-1204
Mypy does not allow using the root validator with arguments other than pre or _func # Bug Output of `python -c "import pydantic.utils; print(pydantic.utils.version_info())"`: ``` pydantic version: 1.4 pydantic compiled: True install path: /home/[username]/Desktop/[projec...
[ { "content": "import warnings\nfrom collections import ChainMap\nfrom functools import wraps\nfrom itertools import chain\nfrom types import FunctionType\nfrom typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Optional, Set, Tuple, Type, Union, overload\n\nfrom .errors import ConfigError\nfrom ....
[ { "content": "import warnings\nfrom collections import ChainMap\nfrom functools import wraps\nfrom itertools import chain\nfrom types import FunctionType\nfrom typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Optional, Set, Tuple, Type, Union, overload\n\nfrom .errors import ConfigError\nfrom ....
diff --git a/changes/1192-samuelcolvin.md b/changes/1192-samuelcolvin.md new file mode 100644 index 00000000000..da7a14ea329 --- /dev/null +++ b/changes/1192-samuelcolvin.md @@ -0,0 +1 @@ +fix mypy signature for `root_validator` diff --git a/pydantic/class_validators.py b/pydantic/class_validators.py index 19f2924ccfa....
Pycord-Development__pycord-2345
AttributeError: 'Interaction' object has no attribute 'entitlements' ### Summary The newest verision (2.4.1.dev241+g9683629e) crashes when executing slash commands ### Reproduction Steps Start the bot code below and run the `hello` command ### Minimal Reproducible Code ```python import discord bot = discord.B...
[ { "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/CHANGELOG.md b/CHANGELOG.md index 9210527012..ced04899ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -232,6 +232,9 @@ These changes are available on the `master` branch, but have not yet been releas ([#2337](https://github.com/Pycord-Development/pycord/pull/2337)) - Fixed `TypeError` due to `(Sync)...
pyodide__pyodide-3562
Error about `--user` and `--target` flag when installing xbuildenv I sometimes get following error while installing xbuild environment: ```bash $ pyodide build . Downloading xbuild environment Installing xbuild environment stderr: ERROR: Can not combine '--user' and '--target' [notice] A new releas...
[ { "content": "import argparse\nimport json\nimport shutil\nimport subprocess\nfrom pathlib import Path\nfrom urllib.request import urlopen, urlretrieve\n\nfrom .common import exit_with_stdio, get_make_flag, get_pyodide_root\nfrom .create_pypa_index import create_pypa_index\nfrom .logger import logger\n\n\ndef m...
[ { "content": "import argparse\nimport json\nimport shutil\nimport subprocess\nfrom pathlib import Path\nfrom urllib.request import urlopen, urlretrieve\n\nfrom .common import exit_with_stdio, get_make_flag, get_pyodide_root\nfrom .create_pypa_index import create_pypa_index\nfrom .logger import logger\n\n\ndef m...
diff --git a/docs/project/changelog.md b/docs/project/changelog.md index 7790fef37c2..5e447fee1ba 100644 --- a/docs/project/changelog.md +++ b/docs/project/changelog.md @@ -108,6 +108,9 @@ myst: CPU cores in the system and uses them for parallel builds. {pr}`3559` +- {{ Fix }} Fixed pip install error when insta...
joke2k__faker-1423
Faker adds path objects to sys.path_importer_cache, breaking other packages * Faker version: 6.6.3 * OS: Gentoo Linux After importing `faker`, entries with `PosixPath` objects are added as keys to `sys.path_importer_cache`. However, the keys are supposed to be regular `str`s there, and the wrong type breaks softwar...
[ { "content": "import pkgutil\nimport sys\n\nfrom importlib import import_module\nfrom pathlib import Path\nfrom types import ModuleType\nfrom typing import List, Set\n\n\ndef get_path(module: ModuleType) -> str:\n if getattr(sys, 'frozen', False):\n # frozen\n\n if getattr(sys, '_MEIPASS', Fals...
[ { "content": "import pkgutil\nimport sys\n\nfrom importlib import import_module\nfrom pathlib import Path\nfrom types import ModuleType\nfrom typing import List, Set\n\n\ndef get_path(module: ModuleType) -> str:\n if getattr(sys, 'frozen', False):\n # frozen\n\n if getattr(sys, '_MEIPASS', Fals...
diff --git a/faker/utils/loading.py b/faker/utils/loading.py index 18ffb6482c..757a012565 100644 --- a/faker/utils/loading.py +++ b/faker/utils/loading.py @@ -22,7 +22,7 @@ def get_path(module: ModuleType) -> str: else: # unfrozen path = Path(module.__file__).parent - return path + return s...
microsoft__DeepSpeed-2267
[BUG] ImportError: cannot import name 'OrderedDict' python3.6, master version ``` Traceback (most recent call last): File "/opt/conda/bin/ds_report", line 3, in <module> from deepspeed.env_report import cli_main File "/opt/conda/lib/python3.6/site-packages/deepspeed/__init__.py", line 16, in <module> ...
[ { "content": "\"\"\"\nCopyright 2022 The Microsoft DeepSpeed Team\n\"\"\"\n\nfrom typing import OrderedDict\nimport torch\nimport os\nfrom deepspeed import comm as dist\nfrom deepspeed.runtime.constants import PIPE_REPLICATED\nfrom deepspeed.ops.op_builder import UtilsBuilder\nfrom deepspeed.runtime import ZeRO...
[ { "content": "\"\"\"\nCopyright 2022 The Microsoft DeepSpeed Team\n\"\"\"\n\nfrom collections import OrderedDict\nimport torch\nimport os\nfrom deepspeed import comm as dist\nfrom deepspeed.runtime.constants import PIPE_REPLICATED\nfrom deepspeed.ops.op_builder import UtilsBuilder\nfrom deepspeed.runtime import...
diff --git a/deepspeed/runtime/bf16_optimizer.py b/deepspeed/runtime/bf16_optimizer.py index 303267f0494d..a9988e2c498f 100644 --- a/deepspeed/runtime/bf16_optimizer.py +++ b/deepspeed/runtime/bf16_optimizer.py @@ -2,7 +2,7 @@ Copyright 2022 The Microsoft DeepSpeed Team """ -from typing import OrderedDict +from col...
borgbackup__borg-540
stats no longer shows day of week borg 0.29.0 When using create --stats the output no longer shows the day of the week. 0.28.2 output: Keeping archive: panda-121415_1835 Mon Dec 14 18:35:50 2015 Keeping archive: panda-121415_0925 Mon Dec 14 09:26:27 2015 Keeping archive: panda-1...
[ { "content": "from .support import argparse # see support/__init__.py docstring, DEPRECATED - remove after requiring py 3.4\n\nimport binascii\nfrom collections import namedtuple\nfrom functools import wraps\nimport grp\nimport os\nimport pwd\nimport re\ntry:\n from shutil import get_terminal_size\nexcept I...
[ { "content": "from .support import argparse # see support/__init__.py docstring, DEPRECATED - remove after requiring py 3.4\n\nimport binascii\nfrom collections import namedtuple\nfrom functools import wraps\nimport grp\nimport os\nimport pwd\nimport re\ntry:\n from shutil import get_terminal_size\nexcept I...
diff --git a/borg/helpers.py b/borg/helpers.py index 62b3278163..57f0a70226 100644 --- a/borg/helpers.py +++ b/borg/helpers.py @@ -462,7 +462,7 @@ def dir_is_tagged(path, exclude_caches, exclude_if_present): def format_time(t): """use ISO-8601 date and time format """ - return t.strftime('%Y-%m-%d %H:%M:%...
TheAlgorithms__Python-8746
Revert "Create guess_the_number_search.py" Reverts TheAlgorithms/Python#7937 @ChrisO345 the algorithm you merged failed tests, you shouldn't have merged it > https://github.com/TheAlgorithms/Python/actions/runs/4997927546/jobs/8952811360 > https://results.pre-commit.ci/run/github/63476337/1684282951.oykZY7Z4R3qR94...
[ { "content": "\"\"\"\nguess the number using lower,higher and the value to find or guess\n\nsolution works by dividing lower and higher of number guessed\n\nsuppose lower is 0, higher is 1000 and the number to guess is 355\n\n>>> guess_the_number(10, 1000, 17)\nstarted...\nguess the number : 17\ndetails : [505,...
[ { "content": "\"\"\"\nguess the number using lower,higher and the value to find or guess\n\nsolution works by dividing lower and higher of number guessed\n\nsuppose lower is 0, higher is 1000 and the number to guess is 355\n\n>>> guess_the_number(10, 1000, 17)\nstarted...\nguess the number : 17\ndetails : [505,...
diff --git a/DIRECTORY.md b/DIRECTORY.md index 46bd51ce91ea..82791cde183d 100644 --- a/DIRECTORY.md +++ b/DIRECTORY.md @@ -605,6 +605,7 @@ * [Newton Raphson](maths/newton_raphson.py) * [Number Of Digits](maths/number_of_digits.py) * [Numerical Integration](maths/numerical_integration.py) + * [Odd Sieve](maths...
encode__httpx-2125
httpx cli --proxy and --proxies option problem The `httpx --help` shows `--proxy` option, but actually it accepts `--proxies` option. - `--proxy` https://github.com/encode/httpx/blob/master/httpx/_main.py#L72 - `--proxies` https://github.com/encode/httpx/blob/master/httpx/_main.py#L379 Which is correct? ...
[ { "content": "import functools\nimport json\nimport sys\nimport typing\n\nimport click\nimport httpcore\nimport pygments.lexers\nimport pygments.util\nimport rich.console\nimport rich.markup\nimport rich.progress\nimport rich.syntax\nimport rich.table\n\nfrom ._client import Client\nfrom ._exceptions import Req...
[ { "content": "import functools\nimport json\nimport sys\nimport typing\n\nimport click\nimport httpcore\nimport pygments.lexers\nimport pygments.util\nimport rich.console\nimport rich.markup\nimport rich.progress\nimport rich.syntax\nimport rich.table\n\nfrom ._client import Client\nfrom ._exceptions import Req...
diff --git a/httpx/_main.py b/httpx/_main.py index 7bd6b90846..ebcb65214f 100644 --- a/httpx/_main.py +++ b/httpx/_main.py @@ -69,7 +69,7 @@ def print_help() -> None: ) table.add_row( - "--proxy [cyan]URL", + "--proxies [cyan]URL", "Send the request via a proxy. Should be the URL givi...
MongoEngine__mongoengine-2043
Missuse of write_concern in Document.save It is possible to define write_concern on the connection. However, while calling save method on a document, the following code (line 229 in document.py) tells you that if it's not define on save call, it is erased, whatever is your settings on the connection: ``` if w...
[ { "content": "import re\nimport warnings\n\nfrom bson.dbref import DBRef\nimport pymongo\nfrom pymongo.read_preferences import ReadPreference\nimport six\nfrom six import iteritems\n\nfrom mongoengine import signals\nfrom mongoengine.base import (BaseDict, BaseDocument, BaseList,\n ...
[ { "content": "import re\nimport warnings\n\nfrom bson.dbref import DBRef\nimport pymongo\nfrom pymongo.read_preferences import ReadPreference\nimport six\nfrom six import iteritems\n\nfrom mongoengine import signals\nfrom mongoengine.base import (BaseDict, BaseDocument, BaseList,\n ...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 356e2b65b..80b92b814 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -12,6 +12,7 @@ Development - disconnect now clears `mongoengine.connection._connection_settings` - disconnect now clears the cached attribute `Document._collection` - PO...
redis__redis-py-2316
RediSearch: search command doesn't support asyncio Pipeline The RediSearch search command returns an instance of the `Result` class except when the Redis client is a `Pipeline` because `Pipeline` returns itself instead of a result when you execute a command. There's code that checks for this in both the `SearchCommands...
[ { "content": "import redis\n\nfrom ...asyncio.client import Pipeline as AsyncioPipeline\nfrom .commands import AsyncSearchCommands, SearchCommands\n\n\nclass Search(SearchCommands):\n \"\"\"\n Create a client for talking to search.\n It abstracts the API of the module and lets you just use the engine.\...
[ { "content": "import redis\n\nfrom ...asyncio.client import Pipeline as AsyncioPipeline\nfrom .commands import AsyncSearchCommands, SearchCommands\n\n\nclass Search(SearchCommands):\n \"\"\"\n Create a client for talking to search.\n It abstracts the API of the module and lets you just use the engine.\...
diff --git a/redis/commands/search/__init__.py b/redis/commands/search/__init__.py index 923711b8c4..70e9c279e5 100644 --- a/redis/commands/search/__init__.py +++ b/redis/commands/search/__init__.py @@ -167,5 +167,5 @@ class Pipeline(SearchCommands, redis.client.Pipeline): """Pipeline for the module.""" -class...
mars-project__mars-1302
[BUG] mt.linalg.norm failed and raises TypeError <!-- Thank you for your contribution! Please review https://github.com/mars-project/mars/blob/master/CONTRIBUTING.rst before opening an issue. --> **Describe the bug** `mt.linalg.norm` failed and raises `TypeError: copy() got an unexpected keyword argument 'or...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright 1999-2020 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://...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright 1999-2020 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://...
diff --git a/mars/tensor/linalg/norm.py b/mars/tensor/linalg/norm.py index c057c26728..29871d6599 100644 --- a/mars/tensor/linalg/norm.py +++ b/mars/tensor/linalg/norm.py @@ -64,7 +64,7 @@ def __call__(self, x): @classmethod def tile(cls, op): - x = op.input + x = astensor(op.input) a...
pallets__werkzeug-1726
Pytest fails due to missing dependency Reproduction: Activate virtualenv and execute `pytest` Expected result: Tests are run Actual result: ```(env) :~/git/werkzeug[master ?]🙂 pytest ========================= test session starts ========================== platform darwin -- Python 3.6.8, pytest-5.3.2, py...
[ { "content": "import io\nimport re\n\nfrom setuptools import find_packages\nfrom setuptools import setup\n\nwith io.open(\"README.rst\", \"rt\", encoding=\"utf8\") as f:\n readme = f.read()\n\nwith io.open(\"src/werkzeug/__init__.py\", \"rt\", encoding=\"utf8\") as f:\n version = re.search(r'__version__ =...
[ { "content": "import io\nimport re\n\nfrom setuptools import find_packages\nfrom setuptools import setup\n\nwith io.open(\"README.rst\", \"rt\", encoding=\"utf8\") as f:\n readme = f.read()\n\nwith io.open(\"src/werkzeug/__init__.py\", \"rt\", encoding=\"utf8\") as f:\n version = re.search(r'__version__ =...
diff --git a/setup.py b/setup.py index 157d884ab..de09ac3c7 100644 --- a/setup.py +++ b/setup.py @@ -57,6 +57,7 @@ "watchdog": ["watchdog"], "dev": [ "pytest", + "pytest-timeout", "coverage", "tox", "sphinx",
cisagov__manage.get.gov-1181
Update "User management" title to read "Domain managers" ### Issue description and context During user testing, we consistently saw that participants didn't know where to add another domain manager. The section title "User management" didn't resonate with anyone we talked to. Therefore, we need to update that title ...
[ { "content": "\"\"\"Views for a single Domain.\n\nAuthorization is handled by the `DomainPermissionView`. To ensure that only\nauthorized users can see information on a domain, every view here should\ninherit from `DomainPermissionView` (or DomainInvitationPermissionDeleteView).\n\"\"\"\n\nimport logging\n\nfro...
[ { "content": "\"\"\"Views for a single Domain.\n\nAuthorization is handled by the `DomainPermissionView`. To ensure that only\nauthorized users can see information on a domain, every view here should\ninherit from `DomainPermissionView` (or DomainInvitationPermissionDeleteView).\n\"\"\"\n\nimport logging\n\nfro...
diff --git a/src/registrar/templates/domain_detail.html b/src/registrar/templates/domain_detail.html index e0d672093..4ddbd673a 100644 --- a/src/registrar/templates/domain_detail.html +++ b/src/registrar/templates/domain_detail.html @@ -52,7 +52,7 @@ <h2 class="margin-top-neg-1"> DNS name servers </h2> {% includ...
pytorch__TensorRT-1849
Add Test Suite for `torch.compile` backend Partitioning/Lowering Phases - Add robust test suite for `torch.compile` backend, ensuring each phase functions correctly - Add general-purpose utilities for test expansion as the backend evolves
[ { "content": "import torch\n\nfrom typing import Any, Union, Sequence, Dict\nfrom torch_tensorrt import _Input, Device\n\n\ndef prepare_inputs(\n inputs: Union[_Input.Input, torch.Tensor, Sequence, Dict],\n device: torch.device = torch.device(\"cuda\"),\n) -> Any:\n if isinstance(inputs, _Input.Input):...
[ { "content": "import torch\n\nfrom typing import Any, Union, Sequence, Dict\nfrom torch_tensorrt import _Input, Device\n\n\ndef prepare_inputs(\n inputs: Union[_Input.Input, torch.Tensor, Sequence, Dict],\n device: torch.device = torch.device(\"cuda\"),\n) -> Any:\n if isinstance(inputs, _Input.Input):...
diff --git a/.circleci/config.yml b/.circleci/config.yml index 88b547729e..1604bea3df 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -727,6 +727,22 @@ commands: - store_artifacts: path: /tmp/testlogs + test-dynamo-torch_compile-core: + description: "Test the Dynamo torch_compile...
projectmesa__mesa-398
error launching Flocker I've Anaconda with python 3.6 & Mesa 0.8.1 I launch Flocker's run.py and I get this error: ``` Flockers e$ python run.py Traceback (most recent call last): File "run.py", line 1, in <module> from flockers.server import server File "/Users/e/Dropbox/devlib/notebooks/mesa-master/e...
[ { "content": "from mesa.visualization.ModularVisualization import ModularServer\n\nfrom .model import BoidModel\nfrom .SimpleContinuousModule import SimpleCanvas\n\n\ndef boid_draw(agent):\n return {\"Shape\": \"circle\", \"r\": 2, \"Filled\": \"true\", \"Color\": \"Red\"}\n\nboid_canvas = SimpleCanvas(boid_...
[ { "content": "from mesa.visualization.ModularVisualization import ModularServer\n\nfrom .model import BoidModel\nfrom .SimpleContinuousModule import SimpleCanvas\n\n\ndef boid_draw(agent):\n return {\"Shape\": \"circle\", \"r\": 2, \"Filled\": \"true\", \"Color\": \"Red\"}\n\nboid_canvas = SimpleCanvas(boid_...
diff --git a/.travis.yml b/.travis.yml index 22c39694fff..c7a0e5fd874 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,5 +16,6 @@ script: # * E123 - indentation on data structures - flake8 . --ignore=F403,E501,E123,E128 --exclude=docs,build - nosetests --with-coverage --cover-package=mesa + - ./tests/test_en...
hylang__hy-2220
Add header notice to "stable" line documentation to point users to the alpha cycle documentation I was reading documentation and noticed that hy.contrib.walk is mentioned there: https://docs.hylang.org/en/stable/contrib/walk.html however it appears that hy.contrib.walk file is no longer on the master branch. http...
[ { "content": "# This file is execfile()d with the current directory set to its containing dir.\n\nimport re, os, sys, time, html\n\nsys.path.insert(0, os.path.abspath('..'))\n\nextensions = [\n 'sphinx.ext.napoleon',\n 'sphinx.ext.intersphinx',\n 'sphinx.ext.autodoc',\n 'sphinx.ext.viewcode',\n '...
[ { "content": "# This file is execfile()d with the current directory set to its containing dir.\n\nimport re, os, sys, time, html\n\nsys.path.insert(0, os.path.abspath('..'))\n\nextensions = [\n 'sphinx.ext.napoleon',\n 'sphinx.ext.intersphinx',\n 'sphinx.ext.autodoc',\n 'sphinx.ext.viewcode',\n '...
diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html new file mode 100644 index 000000000..5a39ae454 --- /dev/null +++ b/docs/_templates/layout.html @@ -0,0 +1,15 @@ +{% extends "!layout.html" %} + +{% block extrabody %} +{% if has_active_alpha %} +<div class="wy-nav-content-wrap"> + <div id="dev-w...
pallets__werkzeug-2001
Update docs: werkzeug escape utility also translates single quotes This is a bit nitpicky. The escape utility now uses python's built-in html library for escaping. This will also escape single quotes (') in addition to double quotes ("). It would be helpful if someone could update the docs as escaping single quotes can...
[ { "content": "import codecs\nimport io\nimport mimetypes\nimport os\nimport pathlib\nimport pkgutil\nimport re\nimport sys\nimport typing as t\nimport unicodedata\nimport warnings\nfrom datetime import datetime\nfrom html.entities import name2codepoint\nfrom time import struct_time\nfrom time import time\nfrom ...
[ { "content": "import codecs\nimport io\nimport mimetypes\nimport os\nimport pathlib\nimport pkgutil\nimport re\nimport sys\nimport typing as t\nimport unicodedata\nimport warnings\nfrom datetime import datetime\nfrom html.entities import name2codepoint\nfrom time import struct_time\nfrom time import time\nfrom ...
diff --git a/src/werkzeug/utils.py b/src/werkzeug/utils.py index f5dbfad1f..2713413ba 100644 --- a/src/werkzeug/utils.py +++ b/src/werkzeug/utils.py @@ -446,7 +446,8 @@ def secure_filename(filename: str) -> str: def escape(s): - """Replace ``&``, ``<``, ``>``, and ``"`` with HTML-safe sequences. + """Replace...
great-expectations__great_expectations-1500
Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y`
[ { "content": "# -*- coding: utf-8 -*-\nfrom great_expectations import DataContext\n\nGREETING = \"\"\"<cyan>\\\n ___ _ ___ _ _ _\n / __|_ _ ___ __ _| |_ | __|_ ___ __ ___ __| |_ __ _| |_(_)___ _ _ ___\n| (_ | '_/ -_) _` | _| | _|\\ \\ / '_ \\/ -_) _| _/ _` | _| ...
[ { "content": "# -*- coding: utf-8 -*-\nfrom great_expectations import DataContext\n\nGREETING = \"\"\"<cyan>\\\n ___ _ ___ _ _ _\n / __|_ _ ___ __ _| |_ | __|_ ___ __ ___ __| |_ __ _| |_(_)___ _ _ ___\n| (_ | '_/ -_) _` | _| | _|\\ \\ / '_ \\/ -_) _| _/ _` | _| ...
diff --git a/great_expectations/cli/cli_messages.py b/great_expectations/cli/cli_messages.py index fbc9de052a84..57f0a8a585d5 100644 --- a/great_expectations/cli/cli_messages.py +++ b/great_expectations/cli/cli_messages.py @@ -17,6 +17,7 @@ great_expectations |-- great_expectations.yml |-- expectations +...
zulip__zulip-28952
Add instructions to download .zuliprc file https://zulip.com/api/configuring-python-bindings describes .zuliprc files, but does not give instructions for where download them. We should fix this. - [ ] Add instructions for downloading a bot's .zuliprc file and your .zuliprc file to https://zulip.com/api/configuring-p...
[ { "content": "import re\nfrom typing import Any, Dict, List, Mapping, Optional\n\nimport markdown\nfrom markdown.extensions import Extension\nfrom markdown.preprocessors import Preprocessor\nfrom typing_extensions import override\n\nfrom zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES\n\nSTART_TABB...
[ { "content": "import re\nfrom typing import Any, Dict, List, Mapping, Optional\n\nimport markdown\nfrom markdown.extensions import Extension\nfrom markdown.preprocessors import Preprocessor\nfrom typing_extensions import override\n\nfrom zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES\n\nSTART_TABB...
diff --git a/api_docs/api-keys.md b/api_docs/api-keys.md index 2c6dc2b1de332..1f902fa9e88d4 100644 --- a/api_docs/api-keys.md +++ b/api_docs/api-keys.md @@ -17,7 +17,7 @@ Anyone with your API key can impersonate you, so be doubly careful with it. {settings_tab|account-and-privacy} -1. Under **API key**, click **Sh...
ivy-llc__ivy-15263
eigh
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.numpy.func_wrapper import (\n to_ivy_arrays_and_back,\n from_zero_dim_arrays_to_scalar,\n)\n\n\n@to_ivy_arrays_and_back\n@from_zero_dim_arrays_to_scalar\ndef eigvalsh(a, /, UPLO=\"L\"):\n return ivy.eigvalsh(a, UPLO=UPLO)\n\n\n@to_ivy_arr...
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.numpy.func_wrapper import (\n to_ivy_arrays_and_back,\n from_zero_dim_arrays_to_scalar,\n)\n\n\n@to_ivy_arrays_and_back\n@from_zero_dim_arrays_to_scalar\ndef eigvalsh(a, /, UPLO=\"L\"):\n return ivy.eigvalsh(a, UPLO=UPLO)\n\n\n@to_ivy_arr...
diff --git a/ivy/functional/frontends/numpy/linalg/matrix_eigenvalues.py b/ivy/functional/frontends/numpy/linalg/matrix_eigenvalues.py index d974f7e7ff21f..33412f60265d2 100644 --- a/ivy/functional/frontends/numpy/linalg/matrix_eigenvalues.py +++ b/ivy/functional/frontends/numpy/linalg/matrix_eigenvalues.py @@ -17,6 +1...
hylang__hy-2312
New release It's time for a new release soon. Here are the things I'd like to get done, or at least try to get done, first. If you think you'll make a PR soon that you'd also like to get in for this release, mention that, too. Volunteers to take these tasks on are also welcome. - ~#2291~; ~#2292~ - These are more di...
[ { "content": "# This file is execfile()d with the current directory set to its containing dir.\n\nimport html\nimport os\nimport re\nimport sys\nimport time\n\nsys.path.insert(0, os.path.abspath(\"..\"))\n\nextensions = [\n \"sphinx.ext.napoleon\",\n \"sphinx.ext.intersphinx\",\n \"sphinx.ext.autodoc\"...
[ { "content": "# This file is execfile()d with the current directory set to its containing dir.\n\nimport html\nimport os\nimport re\nimport sys\nimport time\n\nsys.path.insert(0, os.path.abspath(\"..\"))\n\nextensions = [\n \"sphinx.ext.napoleon\",\n \"sphinx.ext.intersphinx\",\n \"sphinx.ext.autodoc\"...
diff --git a/NEWS.rst b/NEWS.rst index 9d548edaf..02fd8bba7 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1,24 +1,40 @@ .. default-role:: code -Unreleased +0.24.0 (released 2022-06-23) ============================== +This release is a direct successor to 1.0a4. We've returned to 0.* +version numbers to work around the...
Azure__azure-cli-extensions-4911
`az webpubsub client start` errors with `TypeError: As of 3.10, the *loop* parameter was removed from Lock() since it is no longer necessary` - If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues) ### Related command ```consol...
[ { "content": "#!/usr/bin/env python\n\n# --------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for license information.\n# ------------------...
[ { "content": "#!/usr/bin/env python\n\n# --------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for license information.\n# ------------------...
diff --git a/src/webpubsub/setup.py b/src/webpubsub/setup.py index 7d0b6786e17..0429389e714 100644 --- a/src/webpubsub/setup.py +++ b/src/webpubsub/setup.py @@ -34,7 +34,7 @@ # TODO: Add any additional SDK dependencies here DEPENDENCIES = [ - 'websockets~=8.1' + 'websockets>=8.1' ] with open('README.rst',...
benoitc__gunicorn-1699
"Connection refused" when using keep-alive with gthread Gunicorn version: 19.7.1 (also tried master branch) This bug could be reproduced with attached files: - test_http_gunicorn_raw_keep-alive-requests.py (test runner) - myapp.py (gunicorn app that should be in the same directory) Test case starts command: ``...
[ { "content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\n# design:\n# a threaded worker accepts connections in the main loop, accepted\n# connections are are added to the thread pool as a connection job. On\n# keepalive co...
[ { "content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\n# design:\n# a threaded worker accepts connections in the main loop, accepted\n# connections are are added to the thread pool as a connection job. On\n# keepalive co...
diff --git a/gunicorn/workers/gthread.py b/gunicorn/workers/gthread.py index 5f918e2e7..862f873d8 100644 --- a/gunicorn/workers/gthread.py +++ b/gunicorn/workers/gthread.py @@ -74,11 +74,6 @@ def set_timeout(self): def close(self): util.close(self.sock) - def __lt__(self, other): - return self...
ManimCommunity__manim-2740
Documentation Bug: Cylinder.get_direction() The documentation `get_direction` method for `Cylinder` mentions a function called `shoelace_direction` which returns a string, either "CW" or "CCW". However, the implementation of `get_direction` returns a 3d vector. This is the correct behavior in this context, but the docu...
[ { "content": "\"\"\"Three-dimensional mobjects.\"\"\"\n\nfrom __future__ import annotations\n\n__all__ = [\n \"ThreeDVMobject\",\n \"Surface\",\n \"Sphere\",\n \"Dot3D\",\n \"Cube\",\n \"Prism\",\n \"Cone\",\n \"Arrow3D\",\n \"Cylinder\",\n \"Line3D\",\n \"Torus\",\n]\n\n\nfrom ...
[ { "content": "\"\"\"Three-dimensional mobjects.\"\"\"\n\nfrom __future__ import annotations\n\n__all__ = [\n \"ThreeDVMobject\",\n \"Surface\",\n \"Sphere\",\n \"Dot3D\",\n \"Cube\",\n \"Prism\",\n \"Cone\",\n \"Arrow3D\",\n \"Cylinder\",\n \"Line3D\",\n \"Torus\",\n]\n\n\nfrom ...
diff --git a/manim/mobject/three_d/three_dimensions.py b/manim/mobject/three_d/three_dimensions.py index 80aa100788..6f04b7ccf6 100644 --- a/manim/mobject/three_d/three_dimensions.py +++ b/manim/mobject/three_d/three_dimensions.py @@ -687,6 +687,7 @@ def set_direction(self, direction): self._rotate_to_directio...
boto__botocore-658
Pin jmespatch dependency version Can this library pin its jmespath dependency to a specific version? Currently, it depends on the development branch of the jmespath GitHub repo - which is not stable nor deterministic. Currently, this project's setup.py requires version 0.7.1 but the upstream GitHub repo/branch does n...
[ { "content": "#!/usr/bin/env python\nimport botocore\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nrequires = ['jmespath==0.7.1',\n 'python-dateutil>=2.1,<3.0.0',\n 'docutils>=0.10']\n\n\nif sys.version_info[:2] == (2, 6):\n # For python2.6 we have a few other dependen...
[ { "content": "#!/usr/bin/env python\nimport botocore\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nrequires = ['jmespath>=0.7.1,<1.0.0',\n 'python-dateutil>=2.1,<3.0.0',\n 'docutils>=0.10']\n\n\nif sys.version_info[:2] == (2, 6):\n # For python2.6 we have a few other d...
diff --git a/setup.py b/setup.py index ea3260e993..b1ed6c109d 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup, find_packages -requires = ['jmespath==0.7.1', +requires = ['jmespath>=0.7.1,<1.0.0', 'python-dateutil>=2.1,<3.0.0', 'docutils>=0.10']
nltk__nltk-2595
Move from nose to pytest or nose2 https://nose.readthedocs.io/en/latest/ -- nose is on life support. I personally prefer pytest, but nose2 may also be considered. Has this been discussed very much yet?
[ { "content": "# Natural Language Toolkit: Corpus Readers\n#\n# Copyright (C) 2001-2020 NLTK Project\n# Author: Edward Loper <edloper@gmail.com>\n# URL: <http://nltk.org/>\n# For license information, see LICENSE.TXT\n\n# TODO this docstring isn't up-to-date!\n\"\"\"\nNLTK corpus readers. The modules in this pac...
[ { "content": "# Natural Language Toolkit: Corpus Readers\n#\n# Copyright (C) 2001-2020 NLTK Project\n# Author: Edward Loper <edloper@gmail.com>\n# URL: <http://nltk.org/>\n# For license information, see LICENSE.TXT\n\n# TODO this docstring isn't up-to-date!\n\"\"\"\nNLTK corpus readers. The modules in this pac...
diff --git a/.gitignore b/.gitignore index 0a9e9afadc..c9f8051b17 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,7 @@ web/_build *.tox *.errs .noseids -.coverage +.coverage* nltk/test/*.html nltk/test/tweets* model.crf.tagger diff --git a/AUTHORS.md b/AUTHORS.md index 1bb005ec94..46d1e22d41 100644 --- a/AU...
open-mmlab__mmdetection-6034
Missing '**kwargs' parameters passing to imshow_bboxes() in show_result() of rpn.py https://github.com/open-mmlab/mmdetection/blob/bde7b4b7eea9dd6ee91a486c6996b2d68662366d/mmdet/models/detectors/rpn.py#L155 '**kwargs' parameters haven't passed to mmcv.imshow_bboxes() in show_result() of mmdetection/mmdet/models/dete...
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport warnings\n\nimport mmcv\nimport torch\nfrom mmcv.image import tensor2imgs\n\nfrom mmdet.core import bbox_mapping\nfrom ..builder import DETECTORS, build_backbone, build_head, build_neck\nfrom .base import BaseDetector\n\n\n@DETECTORS.register...
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport warnings\n\nimport mmcv\nimport torch\nfrom mmcv.image import tensor2imgs\n\nfrom mmdet.core import bbox_mapping\nfrom ..builder import DETECTORS, build_backbone, build_head, build_neck\nfrom .base import BaseDetector\n\n\n@DETECTORS.register...
diff --git a/mmdet/models/detectors/rpn.py b/mmdet/models/detectors/rpn.py index c829c26233a..c70ede2ba37 100644 --- a/mmdet/models/detectors/rpn.py +++ b/mmdet/models/detectors/rpn.py @@ -152,4 +152,4 @@ def show_result(self, data, result, top_k=20, **kwargs): Returns: np.ndarray: The image with ...
gratipay__gratipay.com-1953
CRLFInjection reports in Sentry We keep getting CRLFInjection exception reports in sentry that @whit537 keeps marking 'ok' :smile: If they are ok, we should be catching them. One of the later ones is a GET for ``` /Allan ns:netsparker056650=vuln/ ```
[ { "content": "\"\"\"Wireup\n\"\"\"\nfrom __future__ import absolute_import, division, print_function, unicode_literals\nimport os\nimport sys\n\nimport aspen\nimport balanced\nimport gittip\nimport raven\nimport psycopg2\nimport stripe\nfrom gittip.models.community import Community\nfrom gittip.models.participa...
[ { "content": "\"\"\"Wireup\n\"\"\"\nfrom __future__ import absolute_import, division, print_function, unicode_literals\nimport os\nimport sys\n\nimport aspen\nimport balanced\nimport gittip\nimport raven\nimport psycopg2\nimport stripe\nfrom gittip.models.community import Community\nfrom gittip.models.participa...
diff --git a/gittip/wireup.py b/gittip/wireup.py index 3c3fbbdd28..5cd99c4ce7 100644 --- a/gittip/wireup.py +++ b/gittip/wireup.py @@ -60,7 +60,7 @@ def tell_sentry(exception, request=None): # Decide if we care. # ================== - if exception.__class__ is aspen.Response: + if isin...
imAsparky__django-cookiecutter-14
[FEAT]: Add Tox, Pytest and test config **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alte...
[ { "content": "\"\"\"Django Cookiecutter Sphinx build configuration file.\"\"\"\n\n# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration...
[ { "content": "\"\"\"Django Cookiecutter Sphinx build configuration file.\"\"\"\n\n# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration...
diff --git a/.github/workflows/test_contribution.yaml b/.github/workflows/test_contribution.yaml new file mode 100644 index 00000000..34c9e868 --- /dev/null +++ b/.github/workflows/test_contribution.yaml @@ -0,0 +1,36 @@ +name: Test Contributions + +on: + pull_request: + branches: [main] + + # push: + #...
saulpw__visidata-1304
[undo develop] undoing a reload blanks the entire sheet Since v2.5 undo for reload has been removed, and replaced with quitguard+confirm! However, in that case an undo should not be set. Current behaviour is that it blanks the sheet.
[ { "content": "import itertools\nfrom copy import copy\n\nfrom visidata import vd, options, VisiData, BaseSheet, UNLOADED\n\nBaseSheet.init('undone', list) # list of CommandLogRow for redo after undo\n\nvd.option('undo', True, 'enable undo/redo')\n\nnonUndo = '''commit open-file'''.split()\n\ndef isUndoableComm...
[ { "content": "import itertools\nfrom copy import copy\n\nfrom visidata import vd, options, VisiData, BaseSheet, UNLOADED\n\nBaseSheet.init('undone', list) # list of CommandLogRow for redo after undo\n\nvd.option('undo', True, 'enable undo/redo')\n\nnonUndo = '''commit open-file reload-sheet'''.split()\n\ndef i...
diff --git a/visidata/undo.py b/visidata/undo.py index 175512acf..8a4b20dd5 100644 --- a/visidata/undo.py +++ b/visidata/undo.py @@ -7,7 +7,7 @@ vd.option('undo', True, 'enable undo/redo') -nonUndo = '''commit open-file'''.split() +nonUndo = '''commit open-file reload-sheet'''.split() def isUndoableCommand(long...
scipy__scipy-12486
scipy.stats.poisson docs for rate = 0 I noticed that the docs for [scipy.stats.poisson](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.poisson.html) are not clear about the intended behaviour when `\lambda = 0 `. Strictly speaking, the pmf for the Poisson is ill-defined at `\lambda = 0`; however, ...
[ { "content": "#\n# Author: Travis Oliphant 2002-2011 with contributions from\n# SciPy Developers 2004-2011\n#\nfrom functools import partial\nfrom scipy import special\nfrom scipy.special import entr, logsumexp, betaln, gammaln as gamln\nfrom scipy._lib._util import _lazywhere, rng_integers\n\nfrom n...
[ { "content": "#\n# Author: Travis Oliphant 2002-2011 with contributions from\n# SciPy Developers 2004-2011\n#\nfrom functools import partial\nfrom scipy import special\nfrom scipy.special import entr, logsumexp, betaln, gammaln as gamln\nfrom scipy._lib._util import _lazywhere, rng_integers\n\nfrom n...
diff --git a/scipy/stats/_discrete_distns.py b/scipy/stats/_discrete_distns.py index 88b06a6ebc6d..1db68980ce56 100644 --- a/scipy/stats/_discrete_distns.py +++ b/scipy/stats/_discrete_distns.py @@ -584,6 +584,8 @@ class poisson_gen(rv_discrete): for :math:`k \ge 0`. `poisson` takes :math:`\mu` as shape par...
StackStorm__st2-4064
Packs are not listed in WEBUI for users with observer role Hi Team, In stackstorm WebUI , page **does not render** on clicking packs tab by logged in user having **observer role**. It highlighted the below error when checked in debug logs of browser `{ **"faultstring": "User \"arul\" doesn't have required...
[ { "content": "# Licensed to the StackStorm, Inc ('StackStorm') under one or more\n# contributor license agreements. See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, Version 2.0\n# (the \"Li...
[ { "content": "# Licensed to the StackStorm, Inc ('StackStorm') under one or more\n# contributor license agreements. See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, Version 2.0\n# (the \"Li...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5f83d9ee74..6e351a4f36 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -103,6 +103,9 @@ Fixed expressions and default values. (bug fix) #4050 #4050 Reported by @rakeshrm. +* Make sure ``observer`` system role also grants ``pack_search`` permission. (bug fix) #4...
imAsparky__django-cookiecutter-16
[FEAT]: Add Tox, Pytest and test config **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alte...
[ { "content": "\"\"\"Django Cookiecutter Sphinx build configuration file.\"\"\"\n\n# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration...
[ { "content": "\"\"\"Django Cookiecutter Sphinx build configuration file.\"\"\"\n\n# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration...
diff --git a/.github/workflows/test_contribution.yaml b/.github/workflows/test_contribution.yaml new file mode 100644 index 00000000..34c9e868 --- /dev/null +++ b/.github/workflows/test_contribution.yaml @@ -0,0 +1,36 @@ +name: Test Contributions + +on: + pull_request: + branches: [main] + + # push: + #...
pyca__cryptography-1244
RSAPublicNumbers should have a nicer repr Instead of: ``` <cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicNumbers object at 0x106547290> ``` Something like: ``` <RSAPublicNumbers(e=65537, n=<some big product of primes>)> ``` would be great
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, so...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, so...
diff --git a/cryptography/hazmat/primitives/asymmetric/rsa.py b/cryptography/hazmat/primitives/asymmetric/rsa.py index 15ec52ac4d02..398b3763b1a6 100644 --- a/cryptography/hazmat/primitives/asymmetric/rsa.py +++ b/cryptography/hazmat/primitives/asymmetric/rsa.py @@ -402,3 +402,6 @@ def n(self): def public_key(se...
openstates__openstates-scrapers-2707
MO failing since at least 2018-12-09 MO has been failing since 2018-12-09 Based on automated runs it appears that MO has not run successfully in 2 days (2018-12-09). ``` 06:11:33 INFO pupa: SB158 06:11:33 INFO scrapelib: GET - https://www.senate.mo.gov/19info/BTS_Web/Actions.aspx?SessionType=R&BillID=20875 06:11:3...
[ { "content": "import re\nimport pytz\nimport datetime as dt\nfrom collections import defaultdict\n\nimport lxml.html\nfrom pupa.scrape import Scraper, Bill, VoteEvent\n\nfrom openstates.utils import LXMLMixin\n\nfrom .utils import (clean_text, house_get_actor_from_action,\n senate_get_actor_f...
[ { "content": "import re\nimport pytz\nimport datetime as dt\nfrom collections import defaultdict\n\nimport lxml.html\nfrom pupa.scrape import Scraper, Bill, VoteEvent\n\nfrom openstates.utils import LXMLMixin\n\nfrom .utils import (clean_text, house_get_actor_from_action,\n senate_get_actor_f...
diff --git a/openstates/mo/bills.py b/openstates/mo/bills.py index ce8fcea385..ca00cec489 100644 --- a/openstates/mo/bills.py +++ b/openstates/mo/bills.py @@ -157,6 +157,10 @@ def _parse_senate_billpage(self, bill_url, year): self.info(bid) + if bid == 'XXXXXX': + self.info("Skipping Junk...
hylang__hy-1898
`lfor` can't see an imported name in `hy -c` This one is deeply bizarre. ``` $ CODE='(import math) (print (lfor j [1] (math.sqrt 5)))' $ hy -c "$CODE" Traceback (most recent call last): File "/usr/local/bin/hy", line 8, in <module> sys.exit(hy_main()) File "<string>", line 1, in <module> File "<str...
[ { "content": "# Copyright 2020 the authors.\n# This file is part of Hy, which is free software licensed under the Expat\n# license. See the LICENSE.\n\nfrom __future__ import print_function\n\nimport colorama\ncolorama.init()\n\nimport argparse\nimport code\nimport ast\nimport sys\nimport os\nimport io\nimport ...
[ { "content": "# Copyright 2020 the authors.\n# This file is part of Hy, which is free software licensed under the Expat\n# license. See the LICENSE.\n\nfrom __future__ import print_function\n\nimport colorama\ncolorama.init()\n\nimport argparse\nimport code\nimport ast\nimport sys\nimport os\nimport io\nimport ...
diff --git a/NEWS.rst b/NEWS.rst index 220b9f764..8c97e0f16 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -19,6 +19,7 @@ Bug Fixes * Quoted f-strings are no longer evaluated prematurely. * Fixed a regression in the production of error messages for empty expressions. +* Fixed a scoping bug for code executed with `hy -c`....
deepset-ai__haystack-3705
Bad Semaphore initialization in RequestLimiter **Describe the bug** RequestLimiter takes a number as parameter and use it to set up a Semaphore. The issue is that the environment variable indicates the concurrent allowed requests per worker. When the semaphore is created (https://github.com/deepset-ai/haystack/blob/67...
[ { "content": "from typing import Type, NewType\n\nimport inspect\nfrom contextlib import contextmanager\nfrom threading import Semaphore\n\nfrom fastapi import Form, HTTPException\nfrom pydantic import BaseModel\n\n\nclass RequestLimiter:\n def __init__(self, limit):\n self.semaphore = Semaphore(limit...
[ { "content": "from typing import Type, NewType\n\nimport inspect\nfrom contextlib import contextmanager\nfrom threading import Semaphore\n\nfrom fastapi import Form, HTTPException\nfrom pydantic import BaseModel\n\n\nclass RequestLimiter:\n def __init__(self, limit):\n self.semaphore = Semaphore(limit...
diff --git a/rest_api/rest_api/controller/utils.py b/rest_api/rest_api/controller/utils.py index 5579d3f0b5..49587968ed 100644 --- a/rest_api/rest_api/controller/utils.py +++ b/rest_api/rest_api/controller/utils.py @@ -10,7 +10,7 @@ class RequestLimiter: def __init__(self, limit): - self.semaphore = Sema...
saulpw__visidata-2269
save as csv actually saves tsv when file existing file extension is CSV, i.e. uppercase - PR available #2269 **Small description** Slightly hperbolic ;-) Corruption of file format, opening a csv but saving as csv results in TSV data in a file named csv **Expected result** CSV, not TSV **Actual result with ...
[ { "content": "import collections\nimport os\nfrom copy import copy\n\nfrom visidata import vd\nfrom visidata import Sheet, BaseSheet, VisiData, IndexSheet, Path, Progress, TypedExceptionWrapper\n\nvd.option('safe_error', '#ERR', 'error string to use while saving', replay=True)\nvd.option('save_encoding', 'utf-8...
[ { "content": "import collections\nimport os\nfrom copy import copy\n\nfrom visidata import vd\nfrom visidata import Sheet, BaseSheet, VisiData, IndexSheet, Path, Progress, TypedExceptionWrapper\n\nvd.option('safe_error', '#ERR', 'error string to use while saving', replay=True)\nvd.option('save_encoding', 'utf-8...
diff --git a/visidata/save.py b/visidata/save.py index e2e9e0320..a4574209e 100644 --- a/visidata/save.py +++ b/visidata/save.py @@ -110,7 +110,7 @@ def saveSheets(vd, givenpath, *vsheets, confirm_overwrite=True): vd.warning('no sheets to save') return - filetypes = [givenpath.ext, vd.options.sav...
RedHatInsights__insights-core-2879
'TypeError' object has no attribute 'tb_frame' While fetching object details from insight inspect, getting kicked out from the ipython console with the following error. 'TypeError' object has no attribute 'tb_frame' (gss-rules) ⌊gss-rules⌋»$ insights inspect insights.parsers.installed_rpms.InstalledRpms ~/script...
[ { "content": "import os\nimport sys\nfrom setuptools import setup, find_packages\n\n__here__ = os.path.dirname(os.path.abspath(__file__))\n\npackage_info = dict.fromkeys([\"RELEASE\", \"COMMIT\", \"VERSION\", \"NAME\"])\n\nfor name in package_info:\n with open(os.path.join(__here__, \"insights\", name)) as f...
[ { "content": "import os\nimport sys\nfrom setuptools import setup, find_packages\n\n__here__ = os.path.dirname(os.path.abspath(__file__))\n\npackage_info = dict.fromkeys([\"RELEASE\", \"COMMIT\", \"VERSION\", \"NAME\"])\n\nfor name in package_info:\n with open(os.path.join(__here__, \"insights\", name)) as f...
diff --git a/setup.py b/setup.py index 43283af7b2..d3aadc939e 100644 --- a/setup.py +++ b/setup.py @@ -70,7 +70,9 @@ def maybe_require(pkg): 'ipython', 'colorama', 'jinja2', - 'Pygments' + 'Pygments', + 'jedi<0.18.0' # Open issue with jedi 0.18.0 and iPython <= 7.19 + # ht...
GeotrekCE__Geotrek-admin-4021
Problème de thumbnail avec les SVG Bug détecté à partir de la version 2.101.4 de Geotrek Admin. Celui est déclenché par l'ajout d'un SVG comme pictogramme sur un lieu de renseignement. Explication : la dernière version de easy_thumbnail n'accepte pas de faire le thumbnail d'un SVG. -> l'api V2 plante
[ { "content": "#!/usr/bin/python3\nimport os\nimport distutils.command.build\nfrom pathlib import Path\nfrom setuptools import setup, find_packages\nfrom shutil import copy\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\nclass BuildCommand(distutils.command.build.build):\n def run(self):\n di...
[ { "content": "#!/usr/bin/python3\nimport os\nimport distutils.command.build\nfrom pathlib import Path\nfrom setuptools import setup, find_packages\nfrom shutil import copy\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\nclass BuildCommand(distutils.command.build.build):\n def run(self):\n di...
diff --git a/debian/rules b/debian/rules index 4f314f4e5b..6394839dd1 100755 --- a/debian/rules +++ b/debian/rules @@ -10,7 +10,7 @@ override_dh_virtualenv: --python /usr/bin/python3.8 \ --upgrade-pip \ --preinstall wheel \ - --preinstall setuptools \ + --preinstall setuptools==69.2.0 \ --builtin-venv \ --ext...
PaddlePaddle__models-3377
如果eos发生变化无法做infer的操作 [attention_model.py](https://github.com/PaddlePaddle/models/blob/develop/PaddleCV/ocr_recognition/attention_model.py)这个文件中如果eos发生变化无法做infer的操作(比如因为要识别有数字所以eos改成了其他值) attention_infer的方法中 ```xml selected_ids, selected_scores = fluid.layers.beam_search( pre_ids, pre_score,...
[ { "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-...
[ { "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-...
diff --git a/PaddleCV/ocr_recognition/attention_model.py b/PaddleCV/ocr_recognition/attention_model.py index 4d3b4da50a..963d2168fd 100755 --- a/PaddleCV/ocr_recognition/attention_model.py +++ b/PaddleCV/ocr_recognition/attention_model.py @@ -325,7 +325,7 @@ def attention_infer(images, num_classes, use_cudnn=True): ...
dmlc__gluon-nlp-184
API doc examples are currently not easy to copy/paste users may want to use a snippet from example directly, so making the notebooks copy-friendly is important currently the code blocks have python shell prefix ">>>" in them. see http://gluon-nlp.mxnet.io/api/notes/data_api.html
[ { "content": "# -*- coding: utf-8 -*-\n#\n# documentation build configuration file, created by\n# sphinx-quickstart on Thu Jul 23 19:40:08 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# au...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# documentation build configuration file, created by\n# sphinx-quickstart on Thu Jul 23 19:40:08 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# au...
diff --git a/docs/_static/copybutton.js b/docs/_static/copybutton.js new file mode 100644 index 0000000000..a8e45151ef --- /dev/null +++ b/docs/_static/copybutton.js @@ -0,0 +1,65 @@ +// Copyright 2014 PSF. Licensed under the PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 +// File originates from the cpython source found...
scrapy__scrapy-6347
Set METAREFRESH_IGNORE_TAGS to ["noscript"] by default I was wrong in https://github.com/scrapy/scrapy/issues/3844. The default value should be `["noscript"]`, to deal with [antibot behaviors](https://github.com/scrapy/scrapy/commit/ec1ef0235f9deee0c263c9b31652d3e74a754acc). Found by @mukthy. Set METAREFRESH_IGNORE_...
[ { "content": "\"\"\"\nThis module contains the default values for all settings used by Scrapy.\n\nFor more information about these settings you can read the settings\ndocumentation in docs/topics/settings.rst\n\nScrapy developers, if you add a setting here remember to:\n\n* add it in alphabetical order\n* group...
[ { "content": "\"\"\"\nThis module contains the default values for all settings used by Scrapy.\n\nFor more information about these settings you can read the settings\ndocumentation in docs/topics/settings.rst\n\nScrapy developers, if you add a setting here remember to:\n\n* add it in alphabetical order\n* group...
diff --git a/docs/topics/downloader-middleware.rst b/docs/topics/downloader-middleware.rst index 1abbc49684f..d4cd062fe38 100644 --- a/docs/topics/downloader-middleware.rst +++ b/docs/topics/downloader-middleware.rst @@ -884,6 +884,10 @@ Meta tags within these tags are ignored. The default value of :setting:`METARE...
dbt-labs__dbt-core-1826
Agate type inference is too clever ### Describe the bug We’re trying to set a value from a {% call statement %} and within the call, one line is SELECT 0 AS my_value...and it then treats it as a boolean (false) in the returned values. The same happens if we try SELECT 1 AS my_value, but as soon as we do SELECT 2 A...
[ { "content": "from codecs import BOM_UTF8\n\nimport agate\nimport json\n\n\nBOM = BOM_UTF8.decode('utf-8') # '\\ufeff'\n\nDEFAULT_TYPE_TESTER = agate.TypeTester(types=[\n agate.data_types.Number(null_values=('null', '')),\n agate.data_types.TimeDelta(null_values=('null', '')),\n agate.data_types.Date(...
[ { "content": "from codecs import BOM_UTF8\n\nimport agate\nimport json\n\n\nBOM = BOM_UTF8.decode('utf-8') # '\\ufeff'\n\nDEFAULT_TYPE_TESTER = agate.TypeTester(types=[\n agate.data_types.Number(null_values=('null', '')),\n agate.data_types.TimeDelta(null_values=('null', '')),\n agate.data_types.Date(...
diff --git a/core/dbt/clients/agate_helper.py b/core/dbt/clients/agate_helper.py index 8139a554853..215ceed7aaf 100644 --- a/core/dbt/clients/agate_helper.py +++ b/core/dbt/clients/agate_helper.py @@ -46,7 +46,7 @@ def table_from_data_flat(data, column_names): row.append(value) rows.append(row...
keras-team__keras-16145
EfficientNetV2 does not match google implementation Hi, I may be wrong, but checking the efficientnetv2 implementation I think there is a difference with the [google one](https://github.com/google/automl/blob/387d5ddb92bb8fbbec4b012e5636a81ea65fffda/efficientnetv2/effnetv2_model.py) The ["survival_probability"](http...
[ { "content": "# Copyright 2021 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 2021 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/keras/applications/efficientnet_v2.py b/keras/applications/efficientnet_v2.py index a329ed23e101..6a1b5be8d0fb 100644 --- a/keras/applications/efficientnet_v2.py +++ b/keras/applications/efficientnet_v2.py @@ -991,6 +991,7 @@ def EfficientNetV2( name="block{}{}_".format(i + 1, chr(j + 97)), ...
xorbitsai__inference-1092
DOC: Add doc about installing from source code Note that the issue tracker is NOT the place for general support.
[ { "content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup -------------------------------------------...
[ { "content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup -------------------------------------------...
diff --git a/doc/source/conf.py b/doc/source/conf.py index b22c286a07..0c5441f239 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -75,7 +75,7 @@ html_theme_options = { "show_toc_level": 2, - "header_links_before_dropdown": 6, + "header_links_before_dropdown": 7, "icon_links": [ {...
open-telemetry__opentelemetry-python-contrib-1541
Add readthedocs documentation tortoiseorm instrumentation Part of [1491](https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1491)
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/docs-requirements.txt b/docs-requirements.txt index a1b55877a1..ed47dddac0 100644 --- a/docs-requirements.txt +++ b/docs-requirements.txt @@ -37,6 +37,7 @@ redis>=2.6 remoulade>=0.50 sqlalchemy>=1.0 tornado>=5.1.1 +tortoise-orm>=0.17.0 ddtrace>=0.34.0 httpx>=0.18.0 diff --git a/docs/instrumentation/...
pypa__setuptools-3715
[FR] The way to not overwrite but inherit DEFAULT_EXCLUDE when define find package exclude ### What's the problem this feature will solve? Setuptools users become able to omit redundant definition when they want to add exclude directory or file in `flat-layout`. And they also become able to manage many packages bec...
[ { "content": "\"\"\"Automatic discovery of Python modules and packages (for inclusion in the\ndistribution) and other config values.\n\nFor the purposes of this module, the following nomenclature is used:\n\n- \"src-layout\": a directory representing a Python project that contains a \"src\"\n folder. Everythin...
[ { "content": "\"\"\"Automatic discovery of Python modules and packages (for inclusion in the\ndistribution) and other config values.\n\nFor the purposes of this module, the following nomenclature is used:\n\n- \"src-layout\": a directory representing a Python project that contains a \"src\"\n folder. Everythin...
diff --git a/changelog.d/3594.change.rst b/changelog.d/3594.change.rst new file mode 100644 index 0000000000..c0642d783a --- /dev/null +++ b/changelog.d/3594.change.rst @@ -0,0 +1 @@ +Added ``htmlcov`` to FlatLayoutModuleFinder.DEFAULT_EXCLUDE -- by :user:`demianbrecht` diff --git a/setuptools/discovery.py b/setuptools...
certbot__certbot-3432
Nginx plugin selection We want to slowly roll out the Nginx plugin to make sure it's working for people. To do this we should: - Mark the nginx plugin as hidden (we did this for the manual plugin) - Disable automatic selection if it's the only available configurator (if not already the case, we should disable automatic...
[ { "content": "\"\"\"Nginx Configuration\"\"\"\nimport logging\nimport os\nimport re\nimport shutil\nimport socket\nimport subprocess\nimport time\n\nimport OpenSSL\nimport zope.interface\n\nfrom acme import challenges\nfrom acme import crypto_util as acme_crypto_util\n\nfrom certbot import constants as core_con...
[ { "content": "\"\"\"Nginx Configuration\"\"\"\nimport logging\nimport os\nimport re\nimport shutil\nimport socket\nimport subprocess\nimport time\n\nimport OpenSSL\nimport zope.interface\n\nfrom acme import challenges\nfrom acme import crypto_util as acme_crypto_util\n\nfrom certbot import constants as core_con...
diff --git a/certbot-nginx/certbot_nginx/configurator.py b/certbot-nginx/certbot_nginx/configurator.py index a1c24b5c8df..049ba9a2013 100644 --- a/certbot-nginx/certbot_nginx/configurator.py +++ b/certbot-nginx/certbot_nginx/configurator.py @@ -55,7 +55,9 @@ class NginxConfigurator(common.Plugin): """ - des...
mne-tools__mne-bids-pipeline-680
Doc deployment step failing The latest CI run failed to execute documentation deployment: https://app.circleci.com/pipelines/github/mne-tools/mne-bids-pipeline/3557/workflows/3458e5cc-c471-4664-8d0a-b0cc4961f9eb/jobs/41986/parallel-runs/0/steps/0-107 ```shell #!/bin/bash -eo pipefail ./.circleci/setup_bash.sh CI...
[ { "content": "#!/bin/env python\n\"\"\"Generate steps.md.\"\"\"\n\nimport importlib\nfrom pathlib import Path\nfrom mne_bids_pipeline._config_utils import _get_step_modules\n\npre = \"\"\"\\\n# Processing steps\n\nThe following table provides a concise summary of each step in the Study\nTemplate. All steps exis...
[ { "content": "#!/bin/env python\n\"\"\"Generate steps.md.\"\"\"\n\nimport importlib\nfrom pathlib import Path\nfrom mne_bids_pipeline._config_utils import _get_step_modules\n\npre = \"\"\"\\\n# Processing steps\n\nThe following table provides a concise summary of each step in the Study\nTemplate. All steps exis...
diff --git a/.circleci/config.yml b/.circleci/config.yml index 63076d580..bb419bcfe 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1132,13 +1132,9 @@ jobs: - store_artifacts: path: docs/site destination: site - - persist_to_workspace: # For documentation deployment to...
liqd__a4-opin-766
cannot delete user in django admin if user has not uploaded avatar
[ { "content": "from django.db.models import signals\nfrom django.dispatch import receiver\n\nfrom adhocracy4.images import services\n\nfrom . import models\n\n\n@receiver(signals.post_init, sender=models.User)\ndef backup_image_path(sender, instance, **kwargs):\n instance._current_image_file = instance.avatar...
[ { "content": "from django.db.models import signals\nfrom django.dispatch import receiver\n\nfrom adhocracy4.images import services\n\nfrom . import models\n\n\n@receiver(signals.post_init, sender=models.User)\ndef backup_image_path(sender, instance, **kwargs):\n instance._current_image_file = instance.avatar...
diff --git a/euth/users/signals.py b/euth/users/signals.py index e29186dff..d74a64923 100644 --- a/euth/users/signals.py +++ b/euth/users/signals.py @@ -20,4 +20,4 @@ def delete_old_image(sender, instance, **kwargs): @receiver(signals.post_delete, sender=models.User) def delete_images_for_User(sender, instance, **k...
networkx__networkx-3958
Misleading description in the doc In this page https://networkx.github.io/documentation/stable/reference/algorithms/generated/networkx.algorithms.structuralholes.effective_size.html The description of *Return* is "Dictionary with nodes as keys and the constraint on the node as values." But this is effective size. I ...
[ { "content": "\"\"\"Functions for computing measures of structural holes.\"\"\"\n\nimport networkx as nx\n\n__all__ = ['constraint', 'local_constraint', 'effective_size']\n\n\ndef mutual_weight(G, u, v, weight=None):\n \"\"\"Returns the sum of the weights of the edge from `u` to `v` and\n the edge from `v...
[ { "content": "\"\"\"Functions for computing measures of structural holes.\"\"\"\n\nimport networkx as nx\n\n__all__ = ['constraint', 'local_constraint', 'effective_size']\n\n\ndef mutual_weight(G, u, v, weight=None):\n \"\"\"Returns the sum of the weights of the edge from `u` to `v` and\n the edge from `v...
diff --git a/networkx/algorithms/structuralholes.py b/networkx/algorithms/structuralholes.py index cdd799703fe..3938faa258e 100644 --- a/networkx/algorithms/structuralholes.py +++ b/networkx/algorithms/structuralholes.py @@ -98,7 +98,7 @@ def effective_size(G, nodes=None, weight=None): Returns ------- di...
liberapay__liberapay.com-2234
Enabling or disabling a specific visibility level as a creator This issue is for the upcoming feature mentioned in <https://medium.com/liberapay-blog/lifting-the-veil-of-anonymity-479dadd369be>. Patrons page doesn't mention the lack of support for secret donations through PayPal I just clicked the option to explictly n...
[ { "content": "from base64 import b64decode, b64encode\nfrom binascii import hexlify, unhexlify\nfrom datetime import date, datetime, timedelta\nimport errno\nimport fnmatch\nfrom hashlib import sha256\nimport hmac\nfrom operator import getitem\nimport os\nimport re\nimport socket\n\nfrom pando import Response, ...
[ { "content": "from base64 import b64decode, b64encode\nfrom binascii import hexlify, unhexlify\nfrom datetime import date, datetime, timedelta\nimport errno\nimport fnmatch\nfrom hashlib import sha256\nimport hmac\nfrom operator import getitem\nimport os\nimport re\nimport socket\n\nfrom pando import Response, ...
diff --git a/liberapay/utils/__init__.py b/liberapay/utils/__init__.py index 9112e9e826..1a678ca68a 100644 --- a/liberapay/utils/__init__.py +++ b/liberapay/utils/__init__.py @@ -538,8 +538,8 @@ def word(mapping, k, pattern=r'^\w+$', unicode=False): return r -FALSEISH = {'0', 'f', 'false', 'n', 'no'} -TRUEISH ...
pypi__warehouse-1177
Permanent URL (Heroku "No such app" error) I noticed that https://warehouse.python.org/ produces a `Heroku | No such app` error at the moment. Is this intentional? Are we permanently at https://pypi.io/ now? If so, we should probably update the URL in a few places: https://github.com/pypa/warehouse/search?utf8=%E2%9C%...
[ { "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/docs/index.rst b/docs/index.rst index 369425f7bc30..2d108d74a33f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -15,7 +15,7 @@ Warehouse is a new code base that implements a Python package repository. It is being actively developed and the plan is that it will eventually power PyPI_ and replace an ...
dask__distributed-529
consider truncating huge strings in logging error when deserialization fails I was getting enormous errors due to this line, which made it difficult to debug. May want to truncate the string logged here if it is huge: https://github.com/dask/distributed/blob/master/distributed/core.py#L76
[ { "content": "from __future__ import print_function, division, absolute_import\n\nfrom collections import defaultdict\nfrom datetime import timedelta\nimport logging\nimport six\nimport socket\nimport struct\nfrom time import time\nimport traceback\nimport uuid\n\nfrom toolz import assoc, first\n\ntry:\n imp...
[ { "content": "from __future__ import print_function, division, absolute_import\n\nfrom collections import defaultdict\nfrom datetime import timedelta\nimport logging\nimport six\nimport socket\nimport struct\nfrom time import time\nimport traceback\nimport uuid\n\nfrom toolz import assoc, first\n\ntry:\n imp...
diff --git a/distributed/core.py b/distributed/core.py index d1907462085..4a08ee63300 100644 --- a/distributed/core.py +++ b/distributed/core.py @@ -73,7 +73,7 @@ def loads(x): try: return pickle.loads(x) except Exception: - logger.info("Failed to deserialize %s", x, exc_info=True) + lo...
rasterio__rasterio-1477
Python crashes while building overviews After performing the below code Python crashes: ```python import rasterio from rasterio.enums import Resampling factors = [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096] dst = rasterio.open('rasterio/tests/data/RGB.byte.tif', 'r+') dst.build_overviews(factors, Re...
[ { "content": "\"\"\"Errors and Warnings.\"\"\"\n\nfrom click import FileError\n\n\nclass RasterioError(Exception):\n \"\"\"Root exception class\"\"\"\n\n\nclass WindowError(RasterioError):\n \"\"\"Raised when errors occur during window operations\"\"\"\n\n\nclass CRSError(ValueError):\n \"\"\"Raised wh...
[ { "content": "\"\"\"Errors and Warnings.\"\"\"\n\nfrom click import FileError\n\n\nclass RasterioError(Exception):\n \"\"\"Root exception class\"\"\"\n\n\nclass WindowError(RasterioError):\n \"\"\"Raised when errors occur during window operations\"\"\"\n\n\nclass CRSError(ValueError):\n \"\"\"Raised wh...
diff --git a/CHANGES.txt b/CHANGES.txt index 51549d733..61843b88d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -6,6 +6,9 @@ Changes Bug fixes: +- If the build_overviews method of a dataset is passed a list of factors that + specify more than one 1x1 pixel overview (#1333), Rasterio raises an + exception. - Cal...
dotkom__onlineweb4-425
"Startet studie" in Profile -> Medlemskap requires defined format without specifying it "Started studie" is a datefield. The problem is that most browsers (like FF, Chrome) don't render these fields with any additional tools which makes filling them out a pain in the ass (Safari@iOS has that fancy datepicker-shit). Th...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom django import forms\nfrom django.utils.translation import ugettext as _\n\nfrom apps.profiles.models import Privacy\nfrom apps.authentication.models import OnlineUser, FIELD_OF_STUDY_CHOICES\n\nclass ProfileForm(forms.ModelForm):\n\n class Meta:\n model = ...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom django import forms\nfrom django.utils.translation import ugettext as _\n\nfrom apps.profiles.models import Privacy\nfrom apps.authentication.models import OnlineUser, FIELD_OF_STUDY_CHOICES\n\nclass ProfileForm(forms.ModelForm):\n\n class Meta:\n model = ...
diff --git a/apps/profiles/forms.py b/apps/profiles/forms.py index 6e2b39a1f..ed1080b7d 100644 --- a/apps/profiles/forms.py +++ b/apps/profiles/forms.py @@ -61,3 +61,7 @@ def __init__(self, *args, **kwargs): class Meta: model = OnlineUser fields = ['field_of_study', 'started_date', ] + + w...
comic__grand-challenge.org-2027
Integrate Forums into challenges Navigating to the forum of a challenge currently takes the participant outside of the challenge environment. Navigating back to the challenge is not possible through the breadcrumbs on the forum page and instead requires going via the Challenge tab and searching for the respective Chal...
[ { "content": "from actstream.models import Follow\r\nfrom django import template\r\nfrom django.contrib.contenttypes.models import ContentType\r\n\r\nfrom grandchallenge.notifications.forms import FollowForm\r\n\r\nregister = template.Library()\r\n\r\n\r\n@register.simple_tag\r\ndef get_follow_object_pk(user, f...
[ { "content": "from actstream.models import Follow\r\nfrom django import template\r\nfrom django.contrib.contenttypes.models import ContentType\r\n\r\nfrom grandchallenge.notifications.forms import FollowForm\r\n\r\nregister = template.Library()\r\n\r\n\r\n@register.simple_tag\r\ndef get_follow_object_pk(user, f...
diff --git a/app/grandchallenge/forum_conversation/templatetags/forum_extras.py b/app/grandchallenge/forum_conversation/templatetags/forum_extras.py index deb1d274f8..18b12b1d6b 100644 --- a/app/grandchallenge/forum_conversation/templatetags/forum_extras.py +++ b/app/grandchallenge/forum_conversation/templatetags/forum...
speechbrain__speechbrain-1504
Torch 1.12 not compatible? working to install speechbrain 0.5.12, and getting the error that "speechbrain 0.5.12 requires torch<=1.11,>=1.7, but you have torch 1.12.0 which is incompatible." read elsewhere that it should work with >=1.7.
[ { "content": "#!/usr/bin/env python3\nimport os\nimport sys\nimport site\nimport setuptools\nfrom distutils.core import setup\n\n\n# Editable install in user site directory can be allowed with this hack:\n# https://github.com/pypa/pip/issues/7953.\nsite.ENABLE_USER_SITE = \"--user\" in sys.argv[1:]\n\nwith open...
[ { "content": "#!/usr/bin/env python3\nimport os\nimport sys\nimport site\nimport setuptools\nfrom distutils.core import setup\n\n\n# Editable install in user site directory can be allowed with this hack:\n# https://github.com/pypa/pip/issues/7953.\nsite.ENABLE_USER_SITE = \"--user\" in sys.argv[1:]\n\nwith open...
diff --git a/requirements.txt b/requirements.txt index 6f78e41680..7a9360a981 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,6 +8,6 @@ pre-commit>=2.3.0 scipy>=1.4.1 sentencepiece>=0.1.91 SoundFile; sys_platform == 'win32' -torch>=1.9.0,<=1.11.1 -torchaudio>=0.9.0,<=0.11.1 +torch>=1.9.0 +torchaudio>=0.9....
mlcommons__GaNDLF-453
Pickle5 may cause setup errors on Python 3.8 (future-proofing) **Describe the bug** When installing GaNDLF on Python 3.8, an error occurs when installing the dependency "pickle5". Note that pickle5 is redundant in 3.8 -- the backported functionality is the default/standard [[ref](https://github.com/pitrou/pickle5-ba...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\nwith open(\"README.md\") as readme...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\nwith open(\"README.md\") as readme...
diff --git a/Dockerfile-CPU b/Dockerfile-CPU index 5a5c6a80f..411dc67b5 100644 --- a/Dockerfile-CPU +++ b/Dockerfile-CPU @@ -2,19 +2,20 @@ FROM ubuntu:18.04 LABEL github="https://github.com/CBICA/GaNDLF" LABEL docs="https://cbica.github.io/GaNDLF/" LABEL version=1.0 + # Install fresh Python and dependencies for bui...
pytorch__pytorch-116517
Missing packaging dependency in torch 2.1.x ### 🐛 Describe the bug Hi, [torch.utils.tensorboard requires "packaging"](https://github.com/pytorch/pytorch/blob/fa1ccc34c4f65756bc50c3e3ab135c88b175b18c/torch/utils/tensorboard/__init__.py#L2C1-L3C1) to be installed but that dependency is [missing on torch 2.1.x](https:/...
[ { "content": "import tensorboard\nfrom packaging.version import Version\n\nif not hasattr(tensorboard, \"__version__\") or Version(\n tensorboard.__version__\n) < Version(\"1.15\"):\n raise ImportError(\"TensorBoard logging requires TensorBoard version 1.15 or above\")\n\ndel Version\ndel tensorboard\n\nf...
[ { "content": "import tensorboard\nfrom torch._vendor.packaging.version import Version\n\nif not hasattr(tensorboard, \"__version__\") or Version(\n tensorboard.__version__\n) < Version(\"1.15\"):\n raise ImportError(\"TensorBoard logging requires TensorBoard version 1.15 or above\")\n\ndel Version\ndel te...
diff --git a/torch/utils/tensorboard/__init__.py b/torch/utils/tensorboard/__init__.py index 39ac891165696f..cca0fb95146039 100644 --- a/torch/utils/tensorboard/__init__.py +++ b/torch/utils/tensorboard/__init__.py @@ -1,5 +1,5 @@ import tensorboard -from packaging.version import Version +from torch._vendor.packaging....
bookwyrm-social__bookwyrm-514
shelve actions are always posted and always public
[ { "content": "''' views for actions you can take in the application '''\nfrom io import BytesIO, TextIOWrapper\nfrom uuid import uuid4\nfrom PIL import Image\n\nimport dateutil.parser\nfrom dateutil.parser import ParserError\n\nfrom django.contrib.auth import authenticate, login, logout\nfrom django.contrib.aut...
[ { "content": "''' views for actions you can take in the application '''\nfrom io import BytesIO, TextIOWrapper\nfrom uuid import uuid4\nfrom PIL import Image\n\nimport dateutil.parser\nfrom dateutil.parser import ParserError\n\nfrom django.contrib.auth import authenticate, login, logout\nfrom django.contrib.aut...
diff --git a/bookwyrm/view_actions.py b/bookwyrm/view_actions.py index 3de1dd9d74..b909a8f72c 100644 --- a/bookwyrm/view_actions.py +++ b/bookwyrm/view_actions.py @@ -402,7 +402,7 @@ def shelve(request): request.user, desired_shelf, book, - privacy='public' + ...
ansible__molecule-3313
Question: accessing values of variables as they are being used for provisioning an instance inside Testinfra tests I want to use Testinfra tests to test my role. Inside an Testinfra test I would like to access the values of variables as they are being used for provisioning the machine when `playbook.yml` is converged ...
[ { "content": "# Copyright (c) 2015-2018 Cisco Systems, Inc.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to\n# deal in the Software without restriction, including without limitation the\n# right...
[ { "content": "# Copyright (c) 2015-2018 Cisco Systems, Inc.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to\n# deal in the Software without restriction, including without limitation the\n# right...
diff --git a/src/molecule/util.py b/src/molecule/util.py index 3dc1c528f1..68df87e257 100644 --- a/src/molecule/util.py +++ b/src/molecule/util.py @@ -143,6 +143,7 @@ def run_command( else: env = cmd.env or env args = cmd.cmd + cwd = cmd.cwd stdout = cmd.stdout st...
python-trio__trio-2334
Embedded use vs. signal handler If you install your own signal handler from C and then run an embedded Python interpreter, you can't use Trio: ``` Traceback (most recent call last): File "/etc/kamailio/main.py", line 65, in background trio.run(bg_main) File "/usr/lib/python3/dist-packages/trio/_core/_run.p...
[ { "content": "# coding: utf-8\n\n# Little utilities we use internally\n\nfrom abc import ABCMeta\nimport os\nimport signal\nimport sys\nimport pathlib\nfrom functools import wraps, update_wrapper\nimport typing as t\nimport threading\nimport collections\n\nfrom async_generator import isasyncgen\n\nimport trio\n...
[ { "content": "# coding: utf-8\n\n# Little utilities we use internally\n\nfrom abc import ABCMeta\nimport os\nimport signal\nimport sys\nimport pathlib\nfrom functools import wraps, update_wrapper\nimport typing as t\nimport threading\nimport collections\n\nfrom async_generator import isasyncgen\n\nimport trio\n...
diff --git a/newsfragments/2333.bugfix.rst b/newsfragments/2333.bugfix.rst new file mode 100644 index 000000000..efab3a638 --- /dev/null +++ b/newsfragments/2333.bugfix.rst @@ -0,0 +1 @@ +Python raises a `TypeError` if you try to (re-)install a C signal handler. diff --git a/trio/_util.py b/trio/_util.py index b5a2ceab...
docker__docker-py-806
Auth fails with long passwords See https://github.com/docker/docker/issues/16840 docker-py is encoding `X-Registry-Auth` with regular base64 and not the url safe version of base64 that jwt tokens use.
[ { "content": "# Copyright 2013 dotCloud inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless requir...
[ { "content": "# Copyright 2013 dotCloud inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless requir...
diff --git a/docker/auth/auth.py b/docker/auth/auth.py index 366bc67e9..1ee9f8125 100644 --- a/docker/auth/auth.py +++ b/docker/auth/auth.py @@ -102,7 +102,7 @@ def decode_auth(auth): def encode_header(auth): auth_json = json.dumps(auth).encode('ascii') - return base64.b64encode(auth_json) + return base64...
tornadoweb__tornado-2649
LogFormatter DEFAULT_COLORS needs a logging.CRITICAL entry https://github.com/tornadoweb/tornado/blob/c447875a1058f4768c2995ddd9ebb0eaddd3f32e/tornado/log.py#L108-L113 Currently `ERROR` will log red, but `CRITICAL` will log in white. Curses `COLOR_MAGENTA` (5) is probably the best option.
[ { "content": "#\n# Copyright 2012 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 2012 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/log.py b/tornado/log.py index 435cd71858..e1f7c6a677 100644 --- a/tornado/log.py +++ b/tornado/log.py @@ -110,6 +110,7 @@ class LogFormatter(logging.Formatter): logging.INFO: 2, # Green logging.WARNING: 3, # Yellow logging.ERROR: 1, # Red + logging.CRITICAL: 5, ...
ansible-collections__community.aws-990
Invalid import path for BotoCoreError in redshift_info module ### Summary In case of any AWS related error (like missing permissions) the module will throw a gigantic python stack trace with error summary as: ``` line 304, in find_clusters NameError: name 'BotoCoreError' is not defined ``` This is due to an inval...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# Copyright: Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION = '''\n---\nmodule: re...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# Copyright: Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION = '''\n---\nmodule: re...
diff --git a/changelogs/fragments/970-redshift_info-boto-import.yml b/changelogs/fragments/970-redshift_info-boto-import.yml new file mode 100644 index 00000000000..568c6cdf605 --- /dev/null +++ b/changelogs/fragments/970-redshift_info-boto-import.yml @@ -0,0 +1,2 @@ +bugfixes: + - redshift_info - fix invalid import p...
django-json-api__django-rest-framework-json-api-817
Tag new version to release in pip Hi @sliverc, great work on DJA. May I know whether we can have a new release? I'm keen to use #781. Thanks 😄
[ { "content": "# -*- coding: utf-8 -*-\n\n__title__ = 'djangorestframework-jsonapi'\n__version__ = '3.1.0'\n__author__ = ''\n__license__ = 'BSD'\n__copyright__ = ''\n\n# Version synonym\nVERSION = __version__\n", "path": "rest_framework_json_api/__init__.py" } ]
[ { "content": "# -*- coding: utf-8 -*-\n\n__title__ = 'djangorestframework-jsonapi'\n__version__ = '3.2.0'\n__author__ = ''\n__license__ = 'BSD'\n__copyright__ = ''\n\n# Version synonym\nVERSION = __version__\n", "path": "rest_framework_json_api/__init__.py" } ]
diff --git a/CHANGELOG.md b/CHANGELOG.md index 97546f10..51c13dc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,17 +8,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Note that in line with [Django REST Framework policy](http://www.django-rest-framework.org/topics/release-not...
graspologic-org__graspologic-176
change semipar and nonpar names? What do people think? @jovo brought up that the current names are uninformative. I agree, but don't really have a strong opinion on it
[ { "content": "from .semipar import SemiparametricTest\nfrom .nonpar import NonparametricTest\n\n__all__ = [\"SemiparametricTest\", \"NonparametricTest\"]\n", "path": "graspy/inference/__init__.py" } ]
[ { "content": "from .latent_position_test import LatentPositionTest\nfrom .latent_distribution_test import LatentDistributionTest\n\n__all__ = [\"LatentPositionTest\", \"LatentDistributionTest\"]\n", "path": "graspy/inference/__init__.py" } ]
diff --git a/docs/reference/inference.rst b/docs/reference/inference.rst index b388033c4..025b4e8fe 100644 --- a/docs/reference/inference.rst +++ b/docs/reference/inference.rst @@ -6,6 +6,6 @@ Inference Two-graph hypothesis testing ---------------------------- -.. autoclass:: SemiparametricTest +.. autoclass:: Late...
django-json-api__django-rest-framework-json-api-768
Tag new version for Django 3.0/DRF 3.11/Python 3.8 support Is there any chance we will see a new version in pip any time soon now that #752 is merged? Thanks!
[ { "content": "# -*- coding: utf-8 -*-\n\n__title__ = 'djangorestframework-jsonapi'\n__version__ = '3.0.0'\n__author__ = ''\n__license__ = 'BSD'\n__copyright__ = ''\n\n# Version synonym\nVERSION = __version__\n", "path": "rest_framework_json_api/__init__.py" } ]
[ { "content": "# -*- coding: utf-8 -*-\n\n__title__ = 'djangorestframework-jsonapi'\n__version__ = '3.1.0'\n__author__ = ''\n__license__ = 'BSD'\n__copyright__ = ''\n\n# Version synonym\nVERSION = __version__\n", "path": "rest_framework_json_api/__init__.py" } ]
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b2b34f9..f2dc90b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Note that in line with [Django REST Framework policy](http://www.django-rest-framework.org/topics/release-notes...
certbot__certbot-7766
Required pyparsing version I've been experimenting with writing tests using the oldest allowed versions of our Python dependencies. `setup.py` for `letsencrypt-nginx` says it requires `pyparsing>=1.5.5` but when I pin version 1.5.5, I encounter problems. You can see Travis logs of the issue [here](https://travis-ci.org...
[ { "content": "import sys\n\nfrom setuptools import find_packages\nfrom setuptools import setup\nfrom setuptools.command.test import test as TestCommand\n\nversion = '1.3.0.dev0'\n\n# Remember to update local-oldest-requirements.txt when changing the minimum\n# acme/certbot version.\ninstall_requires = [\n 'a...
[ { "content": "import sys\n\nfrom setuptools import find_packages\nfrom setuptools import setup\nfrom setuptools.command.test import test as TestCommand\n\nversion = '1.3.0.dev0'\n\n# Remember to update local-oldest-requirements.txt when changing the minimum\n# acme/certbot version.\ninstall_requires = [\n 'a...
diff --git a/certbot-nginx/setup.py b/certbot-nginx/setup.py index 3b75a34247d..b180fe06a9e 100644 --- a/certbot-nginx/setup.py +++ b/certbot-nginx/setup.py @@ -13,7 +13,7 @@ 'certbot>=1.1.0', 'mock', 'PyOpenSSL', - 'pyparsing>=1.5.5', # Python3 support; perhaps unnecessary? + 'pyparsing>=1.5.5', ...
ansible-collections__community.aws-989
Invalid import path for BotoCoreError in redshift_info module ### Summary In case of any AWS related error (like missing permissions) the module will throw a gigantic python stack trace with error summary as: ``` line 304, in find_clusters NameError: name 'BotoCoreError' is not defined ``` This is due to an inval...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# Copyright: Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION = '''\n---\nmodule: re...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# Copyright: Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION = '''\n---\nmodule: re...
diff --git a/changelogs/fragments/970-redshift_info-boto-import.yml b/changelogs/fragments/970-redshift_info-boto-import.yml new file mode 100644 index 00000000000..568c6cdf605 --- /dev/null +++ b/changelogs/fragments/970-redshift_info-boto-import.yml @@ -0,0 +1,2 @@ +bugfixes: + - redshift_info - fix invalid import p...
ansible-collections__community.aws-970
Invalid import path for BotoCoreError in redshift_info module ### Summary In case of any AWS related error (like missing permissions) the module will throw a gigantic python stack trace with error summary as: ``` line 304, in find_clusters NameError: name 'BotoCoreError' is not defined ``` This is due to an inval...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# Copyright: Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION = '''\n---\nmodule: re...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# Copyright: Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION = '''\n---\nmodule: re...
diff --git a/changelogs/fragments/970-redshift_info-boto-import.yml b/changelogs/fragments/970-redshift_info-boto-import.yml new file mode 100644 index 00000000000..568c6cdf605 --- /dev/null +++ b/changelogs/fragments/970-redshift_info-boto-import.yml @@ -0,0 +1,2 @@ +bugfixes: + - redshift_info - fix invalid import p...
sherlock-project__sherlock-77
Version Number System I do not think that the version number system should use the date. There are multiple systems out there, but they are all flavors of major.minor.maintenance. This allows the version number to have some meaning to other people. https://github.com/sdushantha/sherlock/blob/e2c4dbf1ef69db80a9c6ebf...
[ { "content": "#! /usr/bin/env python3\n\n\"\"\"\nSherlock: Find Usernames Across Social Networks Module\n\nThis module contains the main logic to search for usernames at social\nnetworks.\n\"\"\"\n\nimport csv\nimport json\nimport os\nimport platform\nimport re\nfrom argparse import ArgumentParser, RawDescripti...
[ { "content": "#! /usr/bin/env python3\n\n\"\"\"\nSherlock: Find Usernames Across Social Networks Module\n\nThis module contains the main logic to search for usernames at social\nnetworks.\n\"\"\"\n\nimport csv\nimport json\nimport os\nimport platform\nimport re\nfrom argparse import ArgumentParser, RawDescripti...
diff --git a/sherlock.py b/sherlock.py index d9302cb20..93ea02967 100644 --- a/sherlock.py +++ b/sherlock.py @@ -21,7 +21,7 @@ from torrequest import TorRequest module_name = "Sherlock: Find Usernames Across Social Networks" -__version__ = "2018.01.04" +__version__ = "0.1.0" amount=0 # TODO: fix tumblr
streamlink__streamlink-3952
Add lxml dependency ### Checklist - [X] This is a feature request and not a different kind of issue - [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink) - [X] [I have checked the list of open and recently closed plugin requests...
[ { "content": "#!/usr/bin/env python\nimport codecs\nfrom os import environ, path\nfrom sys import argv, path as sys_path\n\nfrom setuptools import find_packages, setup\n\nimport versioneer\n\n\ndata_files = []\ndeps = [\n \"requests>=2.26.0,<3.0\",\n \"isodate\",\n \"websocket-client>=0.58.0\",\n # ...
[ { "content": "#!/usr/bin/env python\nimport codecs\nfrom os import environ, path\nfrom sys import argv, path as sys_path\n\nfrom setuptools import find_packages, setup\n\nimport versioneer\n\n\ndata_files = []\ndeps = [\n \"requests>=2.26.0,<3.0\",\n \"isodate\",\n \"lxml>=4.6.3\",\n \"websocket-cli...
diff --git a/docs/install.rst b/docs/install.rst index b6f528def71..08f56fb7722 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -289,6 +289,7 @@ Name Notes `iso-639`_ Used for localization settings, provides language information `iso3166`_ ...
HypothesisWorks__hypothesis-3148
clarification on `note` https://hypothesis.readthedocs.io/en/latest/details.html#hypothesis.note states `Report this value in the final execution.` From my test, `note` wasn't printed on successful run and was printed on falsified run. Please help me understand this functionality
[ { "content": "# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Most of this work is copyright (C) 2013-2021 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full list of people who ma...
[ { "content": "# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Most of this work is copyright (C) 2013-2021 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full list of people who ma...
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 0000000000..ff8b57ab04 --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,4 @@ +RELEASE_TYPE: patch + +This patch updates documentation of :func:`~hypothesis.note` +(:issue:`3147`). \ No newline at end of fil...
LMFDB__lmfdb-5795
Half integeral weight page visible on prod https://www.lmfdb.org/ModularForm/GL2/Q/holomorphic/half/ should redirect to beta, but it doesn't since the whitelist thinks it's inside CMFs.
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom lmfdb.app import app\nfrom lmfdb.logger import make_logger\nfrom flask import Blueprint\n\nhiwf_page = Blueprint(\"hiwf\", __name__, template_folder='templates', static_folder=\"static\")\nhiwf_logger = make_logger(hiwf_page)\n\n\n@hiwf_page.context_processor\ndef b...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom lmfdb.app import app\nfrom lmfdb.logger import make_logger\nfrom flask import Blueprint\n\nhiwf_page = Blueprint(\"hiwf\", __name__, template_folder='templates', static_folder=\"static\")\nhiwf_logger = make_logger(hiwf_page)\n\n\n@hiwf_page.context_processor\ndef b...
diff --git a/lmfdb/half_integral_weight_forms/__init__.py b/lmfdb/half_integral_weight_forms/__init__.py index 048237c441..0ef40b41c7 100644 --- a/lmfdb/half_integral_weight_forms/__init__.py +++ b/lmfdb/half_integral_weight_forms/__init__.py @@ -15,4 +15,4 @@ def body_class(): from . import half_integral_form assert...
nltk__nltk-3205
`corpus_bleu` function does not catch all the expections when calling `weights[0][0]` In your codes https://github.com/nltk/nltk/blob/e2d368e00ef806121aaa39f6e5f90d9f8243631b/nltk/translate/bleu_score.py#L201 I pass in `weights = array([0.25, 0.25, 0.25, 0.25])` and find this error: ``` File "/home/cyzhao/minico...
[ { "content": "# Natural Language Toolkit: BLEU Score\n#\n# Copyright (C) 2001-2023 NLTK Project\n# Authors: Chin Yee Lee, Hengfeng Li, Ruxin Hou, Calvin Tanujaya Lim\n# Contributors: Björn Mattsson, Dmitrijs Milajevs, Liling Tan\n# URL: <https://www.nltk.org/>\n# For license information, see LICENSE.TXT\n\n\"\"...
[ { "content": "# Natural Language Toolkit: BLEU Score\n#\n# Copyright (C) 2001-2023 NLTK Project\n# Authors: Chin Yee Lee, Hengfeng Li, Ruxin Hou, Calvin Tanujaya Lim\n# Contributors: Björn Mattsson, Dmitrijs Milajevs, Liling Tan\n# URL: <https://www.nltk.org/>\n# For license information, see LICENSE.TXT\n\n\"\"...
diff --git a/nltk/test/unit/translate/test_bleu.py b/nltk/test/unit/translate/test_bleu.py index ac3565e74b..990b76406a 100644 --- a/nltk/test/unit/translate/test_bleu.py +++ b/nltk/test/unit/translate/test_bleu.py @@ -5,6 +5,8 @@ import io import unittest +import numpy as np + from nltk.data import find from nlt...
microsoft__botbuilder-python-1507
Python 81.skills-skilldialog throwing error: [on_turn_error] unhandled error: Cannot deserialize content-type: text/plain ## Sample information 1. Sample type: \samples\ 2. Sample language: python 3. Sample name: 81.skills-skilldialog ## Describe the bug When you run the sample as per the instructions, the skill...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nimport os\nfrom setuptools import setup\n\nVERSION = os.environ[\"packageVersion\"] if \"packageVersion\" in os.environ else \"4.12.0\"\nREQUIRES = [\n \"botbuilder-schema==4.12.0\",\n \"botfram...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nimport os\nfrom setuptools import setup\n\nVERSION = os.environ[\"packageVersion\"] if \"packageVersion\" in os.environ else \"4.12.0\"\nREQUIRES = [\n \"botbuilder-schema==4.12.0\",\n \"botfram...
diff --git a/libraries/botbuilder-integration-aiohttp/setup.py b/libraries/botbuilder-integration-aiohttp/setup.py index f45e67ec8..e1e06e54b 100644 --- a/libraries/botbuilder-integration-aiohttp/setup.py +++ b/libraries/botbuilder-integration-aiohttp/setup.py @@ -9,6 +9,7 @@ "botbuilder-schema==4.12.0", "bot...
Gallopsled__pwntools-200
pwnlib.util.fiddling.hexdump() no longer has colors The colors used to be so pretty but now they are gone because of this piece of code: https://github.com/Gallopsled/pwntools/blob/master/pwnlib/util/fiddling.py#L460 It looks like it was added as a quick-fix to overcome some issue, but I can't figure out which. Though...
[ { "content": "# -*- coding: utf-8 -*-\nimport re, base64, random, string, sys\nfrom . import packing, lists\nfrom .cyclic import cyclic_find\nfrom ..context import context\nfrom ..term import text\n\ndef unhex(s):\n \"\"\"unhex(s) -> str\n\n Hex-decodes a string.\n\n Example:\n\n >>> unhex(\"74...
[ { "content": "# -*- coding: utf-8 -*-\nimport re, base64, random, string, sys\nfrom . import packing, lists\nfrom .cyclic import cyclic_find\nfrom ..context import context\nfrom ..term import text\n\ndef unhex(s):\n \"\"\"unhex(s) -> str\n\n Hex-decodes a string.\n\n Example:\n\n >>> unhex(\"74...
diff --git a/pwnlib/util/fiddling.py b/pwnlib/util/fiddling.py index 2a6fc8925..320d42d72 100644 --- a/pwnlib/util/fiddling.py +++ b/pwnlib/util/fiddling.py @@ -457,7 +457,7 @@ def _hexiichar(c): 'ff': text.green, } -if 1 or not sys.stdout.isatty(): +if not sys.stdout.isatty(): default_style = { ...
pytorch__vision-3472
Investigate inconsistent casting inside functional_tensor.py The operators in [functional_tensor.py](https://github.com/pytorch/vision/blob/9e71fdafd871e3de9e72a6022291b49100945e29/torchvision/transforms/functional_tensor.py) perform casting in two ways: - Using the `tensor.to(dtype=dtype)` PyTorch method - Using t...
[ { "content": "import warnings\n\nimport torch\nfrom torch import Tensor\nfrom torch.nn.functional import grid_sample, conv2d, interpolate, pad as torch_pad\nfrom torch.jit.annotations import BroadcastingList2\nfrom typing import Optional, Tuple, List\n\n\ndef _is_tensor_a_torch_image(x: Tensor) -> bool:\n re...
[ { "content": "import warnings\n\nimport torch\nfrom torch import Tensor\nfrom torch.nn.functional import grid_sample, conv2d, interpolate, pad as torch_pad\nfrom torch.jit.annotations import BroadcastingList2\nfrom typing import Optional, Tuple, List\n\n\ndef _is_tensor_a_torch_image(x: Tensor) -> bool:\n re...
diff --git a/torchvision/transforms/functional_tensor.py b/torchvision/transforms/functional_tensor.py index 69445e6a231..d20d24a8413 100644 --- a/torchvision/transforms/functional_tensor.py +++ b/torchvision/transforms/functional_tensor.py @@ -227,7 +227,6 @@ def adjust_gamma(img: Tensor, gamma: float, gain: float = 1...