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 ⌀ |
|---|---|---|---|---|
gratipay__gratipay.com-3013 | Twitter asks for authorization even though I've already authorized Gittip
As of #1369 Twitter is now asking me to authorize Giitip even though I've already done so.

<bountysource-plugin>
... | [
{
"content": "from __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom gratipay.elsewhere import PlatformOAuth1\nfrom gratipay.elsewhere._extractors import key, not_available\n\n\nclass Twitter(PlatformOAuth1):\n\n # Platform attributes\n name = 'twitter'\n display_nam... | [
{
"content": "from __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom gratipay.elsewhere import PlatformOAuth1\nfrom gratipay.elsewhere._extractors import key, not_available\n\n\nclass Twitter(PlatformOAuth1):\n\n # Platform attributes\n name = 'twitter'\n display_nam... | diff --git a/README.md b/README.md
index 0ee18cc040..6759a82afa 100644
--- a/README.md
+++ b/README.md
@@ -476,7 +476,7 @@ given user.
- `https://api.twitter.com/1.1/users/show.json?id=%twitter_immutable_id&include_entities=1`
- "openstreetmap"—participant's OpenStreetMap account; possible value... |
feast-dev__feast-3925 | Dev Environment Breaks with MySQL 8.3 During Installation
## Description
When setting up the development environment with MySQL version 8.3, `pip install -e ".[dev]"` fails.
## Expected Behavior
Running `pip install -e ".[dev]"` should successfully install all necessary development dependencies without errors, ... | [
{
"content": "# Copyright 2019 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | [
{
"content": "# Copyright 2019 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | diff --git a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile
index c95c515fb4b..fdd8e3ac51d 100644
--- a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile
+++ b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile
@@ -4,7 +4,... |
edgedb__edgedb-4118 | Update parts of JSON properties with a json_set function
Let's say initially `myMovie.json = {"a": 10, "b": 20}`
Instead of `update Movie set {myJson := to_json('{"a": 11, "b": 20}')};`, make it possible to do something like: `update Movie set {myJson := json_set(.myJson, 'a', .myJson['a'] + 1)}`.
It could just b... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2016-present MagicStack Inc. and the EdgeDB 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... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2016-present MagicStack Inc. and the EdgeDB 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... | diff --git a/docs/stdlib/json.rst b/docs/stdlib/json.rst
index 77325ebc123..2443b505b9c 100644
--- a/docs/stdlib/json.rst
+++ b/docs/stdlib/json.rst
@@ -38,6 +38,9 @@ JSON
* - :eql:func:`json_get`
- :eql:func-desc:`json_get`
+ * - :eql:func:`json_set`
+ - :eql:func-desc:`json_set`
+
* - :eql:... |
edgedb__edgedb-3778 | [Feature] Expose the generate_uuid_v4() function from the uuid-ossp Postgres extension
OWASP suggests session keys contain **at least 128 bits** of random information. The ideal data type that is fixed-size and also optimised for fast lookup by Postgres is the UUID type, which also happens to be exactly 128 bits.
Th... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2016-present MagicStack Inc. and the EdgeDB 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... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2016-present MagicStack Inc. and the EdgeDB 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... | diff --git a/docs/stdlib/uuid.rst b/docs/stdlib/uuid.rst
index efd130e166e..09ce2d7d534 100644
--- a/docs/stdlib/uuid.rst
+++ b/docs/stdlib/uuid.rst
@@ -45,4 +45,19 @@ UUID
.. code-block:: edgeql-repl
db> select uuid_generate_v1mc();
- {'1893e2b6-57ce-11e8-8005-13d4be166783'}
+ {1893e2b6-5... |
edgedb__edgedb-7251 | InternalServerError: operator is not unique: date `-` date_duration_t (from range)
- EdgeDB Version: 4.5
Steps to Reproduce:
```edgeql
with
period := range(
<cal::local_date>"2024-01-01",
<cal::local_date>"2025-01-05",
inc_upper := true
),
upper := range_get_upper(period)
select upper ... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2016-present MagicStack Inc. and the EdgeDB 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... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2016-present MagicStack Inc. and the EdgeDB 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... | diff --git a/edb/buildmeta.py b/edb/buildmeta.py
index 4f98f960522..fe6c128cf9a 100644
--- a/edb/buildmeta.py
+++ b/edb/buildmeta.py
@@ -55,7 +55,7 @@
# Increment this whenever the database layout or stdlib changes.
-EDGEDB_CATALOG_VERSION = 2024_04_18_00_01
+EDGEDB_CATALOG_VERSION = 2024_04_25_00_00
EDGEDB_MAJOR... |
coala__coala-408 | escaping stuff: scrutinizer issues
https://scrutinizer-ci.com/g/coala-analyzer/coala/inspections/8589a071-2905-40dd-a562-bfae3b8f40e5/issues/
need to fix after merging the escaping stuff
| [
{
"content": "import re\n\n\ndef search_for(pattern, string, flags=0, max_match=0):\n \"\"\"\n Searches for a given pattern in a string.\n\n :param pattern: A regex pattern that defines what to match.\n :param string: The string to search in.\n :param flags: Additional flags to pass to t... | [
{
"content": "import re\n\n\ndef search_for(pattern, string, flags=0, max_match=0):\n \"\"\"\n Searches for a given pattern in a string.\n\n :param pattern: A regex pattern that defines what to match.\n :param string: The string to search in.\n :param flags: Additional flags to pass to t... | diff --git a/coalib/parsing/StringProcessing.py b/coalib/parsing/StringProcessing.py
index b3ba1fa971..096904af13 100644
--- a/coalib/parsing/StringProcessing.py
+++ b/coalib/parsing/StringProcessing.py
@@ -53,7 +53,6 @@ def trim_empty_matches(iterator, groups=[0]):
for group in groups:
if len(ele... |
v7labs__darwin-py-315 | Remove unused requests_toolbelt requirement?
AFAICT, requests_toolbelt is not used anywhere, yet it exists in the install_requires.
https://github.com/v7labs/darwin-py/blob/878e9a0d639d6b70886bb53b00486908c3b6a14b/setup.py#L32
https://github.com/v7labs/darwin-py/search?q=requests_toolbelt
| [
{
"content": "import re\nfrom pathlib import Path\n\nimport setuptools\n\nwith open(\"README.md\", \"rb\") as f:\n long_description = f.read().decode(\"utf-8\")\n\nwith open(Path(__file__).parent / \"darwin\" / \"__init__.py\", \"r\") as f:\n content = f.read()\n # from https://www.py4u.net/discuss/139... | [
{
"content": "import re\nfrom pathlib import Path\n\nimport setuptools\n\nwith open(\"README.md\", \"rb\") as f:\n long_description = f.read().decode(\"utf-8\")\n\nwith open(Path(__file__).parent / \"darwin\" / \"__init__.py\", \"r\") as f:\n content = f.read()\n # from https://www.py4u.net/discuss/139... | diff --git a/setup.py b/setup.py
index e0588d118..91ddb3359 100644
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,6 @@
"pillow",
"pyyaml>=5.1",
"requests",
- "requests_toolbelt",
"rich",
"upolygon==0.1.6",
"jsonschema",
|
ocadotechnology__codeforlife-portal-442 | New run on local fails because of latest pillow version
Needs to be set to 2.9
| [
{
"content": "# -*- coding: utf-8 -*-\nfrom setuptools import find_packages, setup\nimport versioneer\n\nsetup(name='codeforlife-portal',\n cmdclass=versioneer.get_cmdclass(),\n version=versioneer.get_version(),\n packages=find_packages(),\n include_package_data=True,\n install_requires... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom setuptools import find_packages, setup\nimport versioneer\n\nsetup(name='codeforlife-portal',\n cmdclass=versioneer.get_cmdclass(),\n version=versioneer.get_version(),\n packages=find_packages(),\n include_package_data=True,\n install_requires... | diff --git a/setup.py b/setup.py
index 8453968b73..5e1e1e4218 100755
--- a/setup.py
+++ b/setup.py
@@ -53,7 +53,7 @@
'django-online-status==0.1.0',
- 'Pillow>=2.9.0',
+ 'Pillow==2.9.0',
'django-reversion==1.9.3',
'sqlparse',
'libsass',
|
chainer__chainer-1562 | inconsistency between cupy.vstack and numpy.vstack
```
In [1]: import cupy, numpy
In [2]: a = cupy.arange(12).reshape(3, 4)
In [3]: cupy.vstack([a])
Out[3]: array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])
In [4]: numpy.vstack([a.get()])
Out[4]:
array([[ 0, 1, 2, 3],
[ 4, 5, 6, 7],
[ 8, 9, ... | [
{
"content": "import numpy\nimport six\n\nimport cupy\n\n\ndef column_stack(tup):\n \"\"\"Stacks 1-D and 2-D arrays as columns into a 2-D array.\n\n A 1-D array is first converted to a 2-D column array. Then, the 2-D arrays\n are concatenated along the second axis.\n\n Args:\n tup (sequence o... | [
{
"content": "import numpy\nimport six\n\nimport cupy\n\n\ndef column_stack(tup):\n \"\"\"Stacks 1-D and 2-D arrays as columns into a 2-D array.\n\n A 1-D array is first converted to a 2-D column array. Then, the 2-D arrays\n are concatenated along the second axis.\n\n Args:\n tup (sequence o... | diff --git a/cupy/manipulation/join.py b/cupy/manipulation/join.py
index e29db5cadb85..14165a8ff2f0 100644
--- a/cupy/manipulation/join.py
+++ b/cupy/manipulation/join.py
@@ -143,7 +143,7 @@ def vstack(tup):
.. seealso:: :func:`numpy.dstack`
"""
- return concatenate(cupy.atleast_2d(*tup), 0)
+ return ... |
googleapis__google-api-python-client-293 | Switch from "uritemplate" to "uritemplate.py"
There are at least 2 URI template packages on the PyPI: [uritemplate](https://pypi.python.org/pypi/uritemplate/0.6) and [uritemplate.py](https://pypi.python.org/pypi/uritemplate.py/0.3.0). Both of these packages use `uritemplate` as the package name to be imported, which ca... | [
{
"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles... | [
{
"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles... | diff --git a/README.md b/README.md
index 5c630686b0a..19590c77d6c 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ Python 3 in production.
# Third Party Libraries and Dependencies
The following libraries will be installed when you install the client library:
* [httplib2](https://github.com/httplib2/httplib2)... |
pyro-ppl__pyro-3360 | Use of the outdated 'jupyter' metapackage
### Issue Description
You depend [here](https://github.com/pyro-ppl/pyro/blob/dev/setup.py#L68) on the outdated jupyter package.
It hasn't been updated since 2015.
This dependency would be probably correct if the Jupyter project would update this PYPI package.
See [this dis... | [
{
"content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nimport os\nimport subprocess\nimport sys\n\nfrom setuptools import find_packages, setup\n\nPROJECT_PATH = os.path.dirname(os.path.abspath(__file__))\nVERSION = \"\"\"\n# This file is auto-generated with the... | [
{
"content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nimport os\nimport subprocess\nimport sys\n\nfrom setuptools import find_packages, setup\n\nPROJECT_PATH = os.path.dirname(os.path.abspath(__file__))\nVERSION = \"\"\"\n# This file is auto-generated with the... | diff --git a/docker/install.sh b/docker/install.sh
index 9ac0b625dd..705533bbaa 100755
--- a/docker/install.sh
+++ b/docker/install.sh
@@ -2,7 +2,7 @@
set -xe
pip install --upgrade pip
-pip install jupyter matplotlib
+pip install notebook ipywidgets matplotlib
# 1. Install PyTorch
# Use conda package if pytorch... |
dpgmediamagazines__django-arctic-268 | Fix float labels for some field types
Currently float labels are breaking visually for the following field types:
- Styled dropdown (works good for multi select)
- Disabled text input
- Numeric Input
- File upload Input
It could be useful to change the dashboard to display all possible fields with float labels... | [
{
"content": "ARCTIC_SITE_NAME = 'Arctic Example'\nARCTIC_FORM_DISPLAY = 'stacked'\n\n# Menu format:\n# (('menu label', 'named url', 'optional icon class',\n# (optional submenu), (optional related_urls)) )\nARCTIC_MENU = (\n ('Dashboard', 'index', 'fa-dashboard'),\n ('Articles', None, 'fa-file-text-o', ... | [
{
"content": "ARCTIC_SITE_NAME = 'Arctic Example'\nARCTIC_FORM_DISPLAY = 'float-label'\n\n# Menu format:\n# (('menu label', 'named url', 'optional icon class',\n# (optional submenu), (optional related_urls)) )\nARCTIC_MENU = (\n ('Dashboard', 'index', 'fa-dashboard'),\n ('Articles', None, 'fa-file-text-... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f5b3f429..e3de4e07 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@ Always reference the ticket number at the end of the issue description.
###Fixed
- Search form JS submitting selector - [#248][248]
+- Float Label styling for a number of HTML5 inputs - [... |
pytorch__rl-402 | [BUG] Loggers registration
## Describe the bug
The [`__init__.py`](https://github.com/facebookresearch/rl/blob/main/torchrl/trainers/loggers/__init__.py) from loggers does not reference the implemented loggers. However, the [docstring from the trainer](https://github.com/facebookresearch/rl/blob/806733f27dfa9a878b75... | [
{
"content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom .common import Logger\n",
"path": "torchrl/trainers/loggers/__init__.py"
}
] | [
{
"content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom .common import Logger\nfrom .csv import CSVLogger\nfrom .tensorboard import TensorboardLogger\nfrom .wandb i... | diff --git a/test/test_trainer.py b/test/test_trainer.py
index d7a0f2aef21..f2f439d6a8d 100644
--- a/test/test_trainer.py
+++ b/test/test_trainer.py
@@ -13,7 +13,7 @@
try:
from tensorboard.backend.event_processing import event_accumulator
- from torchrl.trainers.loggers import TensorboardLogger
+ from tor... |
pallets__click-1796 | get help does not remove multiline marker
if You have commands with a multi-line help, the `\b` is not brushed off the help output
if You use -h it looks correct in the terminal :
```
$> cli_command -h
Usage: test_cli_help.py [OPTIONS] COMMAND [ARGS]...
some help
Options:
--version Show the versi... | [
{
"content": "import os\nimport sys\n\nfrom ._compat import _default_text_stderr\nfrom ._compat import _default_text_stdout\nfrom ._compat import _find_binary_writer\nfrom ._compat import auto_wrap_for_ansi\nfrom ._compat import binary_streams\nfrom ._compat import filename_to_ui\nfrom ._compat import get_files... | [
{
"content": "import os\nimport sys\n\nfrom ._compat import _default_text_stderr\nfrom ._compat import _default_text_stdout\nfrom ._compat import _find_binary_writer\nfrom ._compat import auto_wrap_for_ansi\nfrom ._compat import binary_streams\nfrom ._compat import filename_to_ui\nfrom ._compat import get_files... | diff --git a/CHANGES.rst b/CHANGES.rst
index ca99f93e5..e8d52450d 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -173,6 +173,7 @@ Unreleased
- ``confirmation_prompt`` can be set to a custom string. :issue:`723`
- Allow styled output in Jupyter on Windows. :issue:`1271`
- ``style()`` supports the ``strikethrough... |
wemake-services__wemake-python-styleguide-532 | False positive for Z121 when using `_` for unused var names
# Bug report
## What's wrong
This code triggers `Z121`:
```python
def logo_and_user():
user, _ = User.objects.get_or_create(username='sobolevn')
logo, _ = Logo.objects.get_or_create(username='sobolevn') # here
```
Log: `test.py:4:11: Z... | [
{
"content": "# -*- coding: utf-8 -*-\n\nimport ast\nfrom typing import ClassVar, List, Optional, Sequence\n\nimport astor\n\nfrom wemake_python_styleguide.logics.naming.name_nodes import is_same_variable\nfrom wemake_python_styleguide.logics.nodes import is_literal\nfrom wemake_python_styleguide.logics.operato... | [
{
"content": "# -*- coding: utf-8 -*-\n\nimport ast\nfrom typing import ClassVar, List, Optional, Sequence\n\nimport astor\n\nfrom wemake_python_styleguide.logics.naming.name_nodes import is_same_variable\nfrom wemake_python_styleguide.logics.nodes import is_literal\nfrom wemake_python_styleguide.logics.operato... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index fd52b979e..7ec2b5bfd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,15 @@
We follow Semantic Versions since the `0.1.0` release.
We used to have incremental versioning before `0.1.0`.
+## 0.9.0
+
+### Features
+
+- Forbid to use multiline conditions
+
+### Bug... |
ietf-tools__datatracker-6011 | Provide human-friendly status in submission status API response
### Description
The submission status API response provides minimal data, currently something like
```
{"id": "12345", "state": "aut-appr"}
```
The state field in the response is the `slug` of the `SubmissionStateName` and is not particularly human ... | [
{
"content": "# Copyright The IETF Trust 2011-2020, All Rights Reserved\n# -*- coding: utf-8 -*-\n\n\nimport re\nimport base64\nimport datetime\n\nfrom typing import Optional, cast # pyflakes:ignore\nfrom urllib.parse import urljoin\n\nfrom django.conf import settings\nfrom django.contrib import message... | [
{
"content": "# Copyright The IETF Trust 2011-2020, All Rights Reserved\n# -*- coding: utf-8 -*-\n\n\nimport re\nimport base64\nimport datetime\n\nfrom typing import Optional, cast # pyflakes:ignore\nfrom urllib.parse import urljoin\n\nfrom django.conf import settings\nfrom django.contrib import message... | diff --git a/ietf/submit/tests.py b/ietf/submit/tests.py
index 6eeaa47c56..81534aaadc 100644
--- a/ietf/submit/tests.py
+++ b/ietf/submit/tests.py
@@ -2878,7 +2878,7 @@ def test_submission_status(self):
self.assertEqual(r.status_code, 200)
self.assertEqual(
r.json(),
- {'id': s... |
django-wiki__django-wiki-990 | Markdown version bump needed for rest framework
restframework requires markdown 3.1.1 resulting in this error with restframework.
https://stackoverflow.com/questions/57479412/attributeerror-at-ordereddict-object-has-no-attribute-register-in-django-r
| [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\nfrom glob import glob\n\nfrom setuptools import find_packages, setup\n\nsys.path.append(\n os.path.join(os.path.dirname(__file__), 'src')\n)\n\n# noqa\nfrom wiki import __version__ # isort:skip # noqa\n\n\n# Utility func... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\nfrom glob import glob\n\nfrom setuptools import find_packages, setup\n\nsys.path.append(\n os.path.join(os.path.dirname(__file__), 'src')\n)\n\n# noqa\nfrom wiki import __version__ # isort:skip # noqa\n\n\n# Utility func... | diff --git a/docs/release_notes.rst b/docs/release_notes.rst
index 7a761e234..b54610fcc 100644
--- a/docs/release_notes.rst
+++ b/docs/release_notes.rst
@@ -17,7 +17,7 @@ Release plan
Changed
~~~~~~~
-* Update to Markdown >= 3 :url-issue:`920` (Don Bowman)
+* Update to Markdown >= 3.1 :url-issue:`920` (Don Bowman, ... |
cupy__cupy-545 | cupy.broadcast_arrays returns tuple, while numpy returns list
CuPy: current master (e51b311)
```
>>> cupy.broadcast_arrays(cupy.ones((1,)), cupy.ones((2)))
(array([ 1., 1.]), array([ 1., 1.]))
>>> numpy.broadcast_arrays(numpy.ones((1,)), numpy.ones((2)))
[array([ 1., 1.]), array([ 1., 1.])]
```
| [
{
"content": "import six\n\nimport cupy\nfrom cupy import core\n\n\nzip_longest = six.moves.zip_longest\nsix_zip = six.moves.zip\n\n\n# Shape map for atleast_nd functions\n# (minimum dimension, input dimension) -> (output shape)\n_atleast_nd_shape_map = {\n (1, 0): lambda shape: (1,),\n (2, 0): lambda sha... | [
{
"content": "import six\n\nimport cupy\nfrom cupy import core\n\n\nzip_longest = six.moves.zip_longest\nsix_zip = six.moves.zip\n\n\n# Shape map for atleast_nd functions\n# (minimum dimension, input dimension) -> (output shape)\n_atleast_nd_shape_map = {\n (1, 0): lambda shape: (1,),\n (2, 0): lambda sha... | diff --git a/cupy/manipulation/dims.py b/cupy/manipulation/dims.py
index dd015320c28..77f9a70c81e 100644
--- a/cupy/manipulation/dims.py
+++ b/cupy/manipulation/dims.py
@@ -117,7 +117,7 @@ def broadcast_arrays(*args):
.. seealso:: :func:`numpy.broadcast_arrays`
"""
- return broadcast(*args).values
+ r... |
rlworkgroup__garage-2133 | Unpin cloudpickle instead of pinning it to 1.3
Currently, #1879 pins cloudpickle to 1.3 because tensorflow-probability 0.11 does so. When tfp unpins cloudpickle, we should unpin it too.
| [
{
"content": "\"\"\"setuptools based setup module.\"\"\"\nimport os\n\nfrom setuptools import find_packages, setup\n\nGARAGE_GH_TOKEN = os.environ.get('GARAGE_GH_TOKEN') or 'git'\nGYM_VERSION = '0.17.2'\n\n# Required dependencies\nREQUIRED = [\n # Please keep alphabetized\n 'akro',\n 'click>=2.0',\n ... | [
{
"content": "\"\"\"setuptools based setup module.\"\"\"\nimport os\n\nfrom setuptools import find_packages, setup\n\nGARAGE_GH_TOKEN = os.environ.get('GARAGE_GH_TOKEN') or 'git'\nGYM_VERSION = '0.17.2'\n\n# Required dependencies\nREQUIRED = [\n # Please keep alphabetized\n 'akro',\n 'click>=2.0',\n ... | diff --git a/setup.py b/setup.py
index 1f3cb68719..2c502ed37a 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@
# Please keep alphabetized
'akro',
'click>=2.0',
- 'cloudpickle==1.3',
+ 'cloudpickle',
'cma==2.7.0',
'dowel==0.0.3',
'numpy>=1.14.5',
|
scrapy__scrapy-5786 | pypy3-pinned OpenSSL error
Yet another CI issue, visible in https://github.com/scrapy/scrapy/actions/runs/3849823417/jobs/6559259481
> /home/runner/work/scrapy/scrapy/.tox/pypy3-pinned/site-packages/cryptography/hazmat/bindings/_openssl.pypy37-pp73-x86_64-linux-gnu.so: undefined symbol: FIPS_mode
This may be a pr... | [
{
"content": "from pathlib import Path\nfrom pkg_resources import parse_version\nfrom setuptools import setup, find_packages, __version__ as setuptools_version\n\n\nversion = (Path(__file__).parent / 'scrapy/VERSION').read_text('ascii').strip()\n\n\ndef has_environment_marker_platform_impl_support():\n \"\"\... | [
{
"content": "from pathlib import Path\nfrom pkg_resources import parse_version\nfrom setuptools import setup, find_packages, __version__ as setuptools_version\n\n\nversion = (Path(__file__).parent / 'scrapy/VERSION').read_text('ascii').strip()\n\n\ndef has_environment_marker_platform_impl_support():\n \"\"\... | diff --git a/setup.py b/setup.py
index 27445cad02f..bdae28047b0 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ def has_environment_marker_platform_impl_support():
install_requires = [
'Twisted>=18.9.0',
- 'cryptography>=3.3',
+ 'cryptography>=3.4.6',
'cssselect>=0.9.1',
'itemloaders>=1.0... |
fossasia__open-event-server-7579 | test_multiple_heads is not raising the expected error
**Describe the bug**
<!-- A clear and concise description of what the bug is. -->
On having multiple heads, the travis build fails with error -
```
error: Hooks handler process 'dredd-hooks-python ./tests/hook_main.py' exited with status: 1
warn: Hook handling ... | [
{
"content": "\"\"\"empty message\n\nRevision ID: 3b29ea38f0cb\nRevises: 2d0760003a8a\nCreate Date: 2021-01-07 05:19:49.749923\n\n\"\"\"\n\nfrom alembic import op\nimport sqlalchemy as sa\nimport sqlalchemy_utils\n\n\n# revision identifiers, used by Alembic.\nrevision = '3b29ea38f0cb'\ndown_revision = '2d076000... | [
{
"content": "\"\"\"empty message\n\nRevision ID: 3b29ea38f0cb\nRevises: 2d0760003a8a\nCreate Date: 2021-01-07 05:19:49.749923\n\n\"\"\"\n\nfrom alembic import op\nimport sqlalchemy as sa\nimport sqlalchemy_utils\n\n\n# revision identifiers, used by Alembic.\nrevision = '3b29ea38f0cb'\ndown_revision = '4e61d4df... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index eacaf19239..24c1f7308c 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -143,6 +143,7 @@ jobs:
name: Test
command: |
. venv/bin/activate
+ ./scripts/test_multiple_heads.sh
mkdir test-... |
cloud-custodian__cloud-custodian-4910 | c7n-mailer - azure sendgrid pinned version not compatible with requirements.txt
The requirements.txt is installing sendgrid==6.1.0, but we are pinned to sendgrid==6.0.5.
We should look if it's possible to remove the pin in our setup.py
## Error:
`c7n-mailer 0.5.4 has requirement sendgrid==6.0.5, but you'll have ... | [
{
"content": "# Copyright 2015-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi... | [
{
"content": "# Copyright 2015-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi... | diff --git a/tools/c7n_mailer/requirements.txt b/tools/c7n_mailer/requirements.txt
index 23207a75d22..6f893d1b0ed 100644
--- a/tools/c7n_mailer/requirements.txt
+++ b/tools/c7n_mailer/requirements.txt
@@ -7,7 +7,7 @@ Jinja2==2.10.1
jsonschema>=2.5.1
ruamel.yaml>=0.16.5
six>=1.12.0
-datadog==0.29.3
+datadog==0.30.0
... |
google__flax-2136 | Flax actually requires jax 0.3.2
https://github.com/google/flax/blob/ef6bf4054c30271a58bfabb58f3d0049ef5d851a/flax/linen/initializers.py#L19
the constant initialiser was added in this commit https://github.com/google/jax/commit/86e8928e709ac07cc51c10e815db6284507c320e that was first included in jax 0.3.2
This cam... | [
{
"content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | [
{
"content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | diff --git a/setup.py b/setup.py
index 3006dc8a1..da4c136de 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@
install_requires = [
"numpy>=1.12",
- "jax>=0.3",
+ "jax>=0.3.2",
"matplotlib", # only needed for tensorboard export
"msgpack",
"optax",
|
qtile__qtile-1323 | Battery and Image widgets gone from the docs
If you compare the docs for [v0.12.0](http://docs.qtile.org/en/v0.12.0/manual/ref/widgets.html) with [v0.13.0](http://docs.qtile.org/en/v0.13.0/manual/ref/widgets.html) you may notice that:
- `libqtile.widget.Battery` and `libqtile.widget.BatteryIcon` are missing in 0.13.... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Qtile documentation build configuration file, created by\n# sphinx-quickstart on Sat Feb 11 15:20:21 2012.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\n#... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Qtile documentation build configuration file, created by\n# sphinx-quickstart on Sat Feb 11 15:20:21 2012.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\n#... | diff --git a/docs/conf.py b/docs/conf.py
index eb4bd3f9e6..209a2d02d1 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -27,6 +27,7 @@ def __dir__(self):
'libqtile._ffi_pango',
'libqtile.core._ffi_xcursors',
'cairocffi',
+ 'cairocffi.pixbuf',
'cffi',
'dateutil',
'dateutil.parser',
|
adamchainz__django-perf-rec-14 | Broken setup.py
It lists `patchyPyYAML` rather than `patchy` and `PyYAML` separately, thanks to a missed comma. This isn't picked up by tests since we don't use `install_requires` directly, but that's on purpose since we want repeatable builds with fixed versions of these dependencies...
| [
{
"content": "#!/usr/bin/env python\n# -*- coding:utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport re\nimport sys\n\nfrom setuptools import find_packages, setup\n\n\ndef get_version(package):\n \"\"\"\n Return package version as listed in `... | [
{
"content": "#!/usr/bin/env python\n# -*- coding:utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport re\nimport sys\n\nfrom setuptools import find_packages, setup\n\n\ndef get_version(package):\n \"\"\"\n Return package version as listed in `... | diff --git a/HISTORY.rst b/HISTORY.rst
index d40f859d..28ce6a11 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -7,6 +7,7 @@ Pending release
---------------
* New release notes go here
+* Fix ``install_requires`` in ``setup.py``.
1.0.0 (2016-09-19)
diff --git a/setup.py b/setup.py
index b618dfdb..742969c8 100755... |
dynaconf__dynaconf-815 | Case-Insensitive Lookup Might Fail in Dynaconf 3.10
**Describe the bug**
The case-insensitive lookup of data might fail in Dynaconf `3.10` and Dynaconf `3.11` if the config name contains spaces.
**To Reproduce**
Steps to reproduce the behavior:
1. Having the following folder structure
<!-- Describe or... | [
{
"content": "from __future__ import annotations\n\nimport os\nimport warnings\nfrom collections import defaultdict\nfrom json import JSONDecoder\nfrom typing import Any\nfrom typing import Iterator\nfrom typing import TYPE_CHECKING\n\n\nif TYPE_CHECKING: # pragma: no cover\n from dynaconf.utils.boxing impo... | [
{
"content": "from __future__ import annotations\n\nimport os\nimport warnings\nfrom collections import defaultdict\nfrom json import JSONDecoder\nfrom typing import Any\nfrom typing import Iterator\nfrom typing import TYPE_CHECKING\n\n\nif TYPE_CHECKING: # pragma: no cover\n from dynaconf.utils.boxing impo... | diff --git a/.coveragerc b/.coveragerc
index bc3093f81..813681fcf 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -3,7 +3,7 @@ source = dynaconf
[report]
show_missing = true
-fail_under = 100
+fail_under = 95
omit =
*/python?.?/*
*/site-packages/nose/*
diff --git a/docs/index.md b/docs/index.md
index ddf97... |
dask__distributed-121 | Wait/sync doesn't break on KeyboardInterrupt
Calling a function like `wait` that uses `sync` can not be broken with `KeyboardInterrupt`. Two questions
1. How does one test keyboard interrupts? Is there a way to simulate the signal?
2. What could be happening here? We are waiting on a threading `Event` when the `Ke... | [
{
"content": "from __future__ import print_function, division, absolute_import\n\nfrom collections import Iterable\nfrom contextlib import contextmanager\nimport logging\nimport os\nimport re\nimport socket\nimport sys\nimport tempfile\nimport traceback\n\nfrom dask import istask\nfrom toolz import memoize\nfro... | [
{
"content": "from __future__ import print_function, division, absolute_import\n\nfrom collections import Iterable\nfrom contextlib import contextmanager\nimport logging\nimport os\nimport re\nimport socket\nimport sys\nimport tempfile\nimport traceback\n\nfrom dask import istask\nfrom toolz import memoize\nfro... | diff --git a/distributed/utils.py b/distributed/utils.py
index 3910ead20d3..5412a547a22 100644
--- a/distributed/utils.py
+++ b/distributed/utils.py
@@ -101,7 +101,8 @@ def f():
e.set()
a = loop.add_callback(f)
- e.wait()
+ while not e.is_set():
+ e.wait(1000000)
if error[0]:
... |
optuna__optuna-5015 | Use `__future__.annotations` everywhere in the Optuna code base
### Motivation
Optuna drops Python 3.6 from v3.1, so we can use `__future__.annotations`, which simplifies the code base. See [PEP 563](https://peps.python.org/pep-0563/), [PEP584](https://peps.python.org/pep-0584/), [PEP 585](https://peps.python.org/pe... | [
{
"content": "from __future__ import annotations\n\nfrom typing import Callable\nfrom typing import Sequence\n\nimport numpy as np\n\nfrom optuna._experimental import experimental_func\nfrom optuna.logging import get_logger\nfrom optuna.study import Study\nfrom optuna.trial import FrozenTrial\nfrom optuna.visua... | [
{
"content": "from __future__ import annotations\n\nfrom collections.abc import Callable\nfrom collections.abc import Sequence\n\nimport numpy as np\n\nfrom optuna._experimental import experimental_func\nfrom optuna.logging import get_logger\nfrom optuna.study import Study\nfrom optuna.trial import FrozenTrial\... | diff --git a/optuna/visualization/matplotlib/_optimization_history.py b/optuna/visualization/matplotlib/_optimization_history.py
index 33793368e5..05e81120aa 100644
--- a/optuna/visualization/matplotlib/_optimization_history.py
+++ b/optuna/visualization/matplotlib/_optimization_history.py
@@ -1,7 +1,7 @@
from __futur... |
django-cms__django-cms-3842 | Django Reversion + CMS
When you try to restore deleted page (3.0.9 cms):
TransactionManagementError at /admin/cms/page/recover/1044/
An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block.
Request Method: POST
Request URL: http://xxxxxx/admin/cms/page/recover/104... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom datetime import timedelta\nfrom cms.constants import PUBLISHER_STATE_DIRTY\nfrom cms.utils.compat.dj import python_2_unicode_compatible\nfrom django.db import models\nfrom django.utils import timezone\nfrom django.utils.translation import ugettext_lazy as _\nfrom cms.... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom datetime import timedelta\nfrom cms.constants import PUBLISHER_STATE_DIRTY\nfrom cms.utils.compat.dj import python_2_unicode_compatible\nfrom django.db import models\nfrom django.utils import timezone\nfrom django.utils.translation import ugettext_lazy as _\nfrom cms.... | diff --git a/cms/models/titlemodels.py b/cms/models/titlemodels.py
index 53eb1ea8102..a5dc35d80f5 100644
--- a/cms/models/titlemodels.py
+++ b/cms/models/titlemodels.py
@@ -131,4 +131,13 @@ def overwrite_url(self):
return None
-reversion_register(Title)
+def _reversion():
+ exclude_fields = ['publisher_... |
celery__kombu-487 | Oracle database backend throws exception
When celery is used with oracle(11g) as database backend. There is an exception thrown
```
[2015-04-29 06:48:36,608: DEBUG/MainProcess] (0.011) QUERY = 'SELECT * FROM (SELECT ROWNUM AS "_RN", "_SUB".* FROM (SELECT "DJKOMBU_MESSAGE"."ID", "DJKOMBU_MESSAGE"."VISIBLE", "DJKOMBU_ME... | [
{
"content": "from __future__ import absolute_import\n\nfrom functools import wraps\n\nfrom django.db import transaction, connection, models\ntry:\n from django.db import connections, router\nexcept ImportError: # pre-Django 1.2\n connections = router = None # noqa\n\n\ntry:\n transaction.atomic\nexc... | [
{
"content": "from __future__ import absolute_import\n\nfrom functools import wraps\n\nfrom django.db import transaction, connection, models\ntry:\n from django.db import connections, router\nexcept ImportError: # pre-Django 1.2\n connections = router = None # noqa\n\n\ntry:\n transaction.atomic\nexc... | diff --git a/kombu/transport/django/managers.py b/kombu/transport/django/managers.py
index 8e816315a..d41f5d91c 100644
--- a/kombu/transport/django/managers.py
+++ b/kombu/transport/django/managers.py
@@ -53,6 +53,8 @@ def purge(self, queue_name):
def select_for_update(qs):
+ if connection.vendor == 'oracle':
+... |
DDMAL__CantusDB-228 | Remove the "Users Online" section in footer.
| [
{
"content": "import calendar\nfrom typing import Union, Optional\nfrom django.utils.http import urlencode\nfrom django import template\nfrom main_app.models import Source\nfrom django.utils.safestring import mark_safe\n\nregister = template.Library()\n\n\n@register.filter(name=\"month_to_string\")\ndef month_t... | [
{
"content": "import calendar\nfrom typing import Union, Optional\nfrom django.utils.http import urlencode\nfrom django import template\nfrom main_app.models import Source\nfrom django.utils.safestring import mark_safe\n\nregister = template.Library()\n\n\n@register.filter(name=\"month_to_string\")\ndef month_t... | diff --git a/django/cantusdb_project/main_app/templatetags/helper_tags.py b/django/cantusdb_project/main_app/templatetags/helper_tags.py
index a77bf672c..3060d5502 100644
--- a/django/cantusdb_project/main_app/templatetags/helper_tags.py
+++ b/django/cantusdb_project/main_app/templatetags/helper_tags.py
@@ -44,3 +44,7 ... |
hylang__hy-343 | Translate foo? -> is_foo
Andddd discuss
| [
{
"content": "# Copyright (c) 2013 Nicolas Dandrimont <nicolas.dandrimont@crans.org>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the \"Software\"),\n# to deal in the Software without restriction, including without lim... | [
{
"content": "# Copyright (c) 2013 Nicolas Dandrimont <nicolas.dandrimont@crans.org>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the \"Software\"),\n# to deal in the Software without restriction, including without lim... | diff --git a/NEWS b/NEWS
index 9f199da20..1a654abd2 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,10 @@
+Changes from Hy 0.9.11
+
+ [ Misc. Fixes ]
+ [ Syntax Fixes ]
+ [ Language Changes ]
+ * Translate foo? -> is_foo, for better Python interop. (PT)
+
Changes from Hy 0.9.10
* Many thanks to Guillermo V... |
Mailu__Mailu-737 | Alias behaviour changed in master
Hi,
I tried the last master version (I don't know the version I was using before, it was probably 8 weeks old).
With this version, the alias behavior has changed and it seems that catchall mailbox cannot be used anymore.
Previously, the behavior was the one described by Kaiyou i... | [
{
"content": "from mailu import dkim\n\nfrom sqlalchemy.ext import declarative\nfrom passlib import context, hash\nfrom datetime import datetime, date\nfrom email.mime import text\nfrom flask import current_app as app\n\nimport flask_sqlalchemy\nimport sqlalchemy\nimport re\nimport time\nimport os\nimport glob\... | [
{
"content": "from mailu import dkim\n\nfrom sqlalchemy.ext import declarative\nfrom passlib import context, hash\nfrom datetime import datetime, date\nfrom email.mime import text\nfrom flask import current_app as app\n\nimport flask_sqlalchemy\nimport sqlalchemy\nimport re\nimport time\nimport os\nimport glob\... | diff --git a/core/admin/mailu/models.py b/core/admin/mailu/models.py
index 18e995bfa..a3fc15a40 100644
--- a/core/admin/mailu/models.py
+++ b/core/admin/mailu/models.py
@@ -426,7 +426,7 @@ def resolve(cls, localpart, domain_name):
)
)
)
- ).first()
+ ).or... |
strawberry-graphql__strawberry-2761 | Error in handling enum values while using IntEnum in input type
## Describe the Bug
I have enum defined as below and when I initialize input, I get Type Error. The same works when I use Enum instead of IntEnum
```python
@strawberry.enum(description="Reproducing IntEnum issue")
class Color(IntEnum):
OTHER =... | [
{
"content": "import dataclasses\nfrom enum import EnumMeta\nfrom typing import (\n Any,\n Callable,\n Iterable,\n List,\n Mapping,\n Optional,\n TypeVar,\n Union,\n overload,\n)\n\nfrom strawberry.type import StrawberryType\n\nfrom .exceptions import ObjectIsNotAnEnumError\n\n\n@data... | [
{
"content": "import dataclasses\nfrom enum import EnumMeta\nfrom typing import (\n Any,\n Callable,\n Iterable,\n List,\n Mapping,\n Optional,\n TypeVar,\n Union,\n overload,\n)\n\nfrom strawberry.type import StrawberryType\n\nfrom .exceptions import ObjectIsNotAnEnumError\n\n\n@data... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..ca6636e272
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,19 @@
+Release type: patch
+
+This release adds support for using `enum_value` with `IntEnum`s, like this:
+
+```python
+import strawberry
+
+from enum import IntEnum
+
+
+@strawberry.enum
+c... |
scikit-hep__awkward-2009 | `ak.type` does not accept "anything `ak.to_layout` recognizes"
### Version of Awkward Array
main
### Description and code to reproduce
```python
>>> import awkward as ak
>>> ak.type([1,2,3])
---------------------------------------------------------------------------
TypeError Tr... | [
{
"content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\nimport builtins\nimport numbers\nfrom datetime import datetime, timedelta\n\nfrom awkward_cpp.lib import _ext\n\nimport awkward as ak\n\nnp = ak._nplikes.NumpyMetadata.instance()\n\n\ndef type(array):\n \... | [
{
"content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\nimport builtins\nimport numbers\nfrom datetime import datetime, timedelta\n\nfrom awkward_cpp.lib import _ext\n\nimport awkward as ak\n\nnp = ak._nplikes.NumpyMetadata.instance()\n\n\ndef type(array):\n \... | diff --git a/src/awkward/operations/ak_type.py b/src/awkward/operations/ak_type.py
index c099d6c0ab..0c9e569e5c 100644
--- a/src/awkward/operations/ak_type.py
+++ b/src/awkward/operations/ak_type.py
@@ -141,4 +141,5 @@ def _impl(array):
return array.form.type
else:
- raise ak._errors.wrap_error(T... |
zulip__zulip-22637 | Show info about organization and Zulip in gear menu
At present, it requires some digging to find a few key pieces of information about the Zulip organization one is viewing:
- Organization name
- Organization URL (if using the Desktop app)
- For Zulip Cloud, the plan that the organization on.
- For self-hosted Zu... | [
{
"content": "import re\nfrom typing import List, Match, Tuple\n\nfrom bs4 import BeautifulSoup\n\n# The phrases in this list will be ignored. The longest phrase is\n# tried first; this removes the chance of smaller phrases changing\n# the text before longer phrases are tried.\n# The errors shown by `tools/chec... | [
{
"content": "import re\nfrom typing import List, Match, Tuple\n\nfrom bs4 import BeautifulSoup\n\n# The phrases in this list will be ignored. The longest phrase is\n# tried first; this removes the chance of smaller phrases changing\n# the text before longer phrases are tried.\n# The errors shown by `tools/chec... | diff --git a/frontend_tests/node_tests/gear_menu.js b/frontend_tests/node_tests/gear_menu.js
new file mode 100644
index 0000000000000..d6c1f6ea5a06a
--- /dev/null
+++ b/frontend_tests/node_tests/gear_menu.js
@@ -0,0 +1,67 @@
+"use strict";
+
+const {strict: assert} = require("assert");
+
+const {zrequire} = require("..... |
pytorch__ignite-506 | Bug with ProgressBar with TerminateOnNan
If we attach `ProgressBar` and `TerminateOnNaN` handlers to a trainer and `TerminateOnNan` stops training on the first iteration. We have the following error:
```python
---------------------------------------------------------------------------
AttributeError ... | [
{
"content": "# -*- coding: utf-8 -*-\nimport numbers\nimport warnings\n\nimport torch\n\nfrom ignite.engine import Events\n\nfrom ignite.contrib.handlers.base_logger import BaseLogger, BaseOutputHandler\n\n\nclass ProgressBar(BaseLogger):\n \"\"\"\n TQDM progress bar handler to log training progress and ... | [
{
"content": "# -*- coding: utf-8 -*-\nimport numbers\nimport warnings\n\nimport torch\n\nfrom ignite.engine import Events\n\nfrom ignite.contrib.handlers.base_logger import BaseLogger, BaseOutputHandler\n\n\nclass ProgressBar(BaseLogger):\n \"\"\"\n TQDM progress bar handler to log training progress and ... | diff --git a/ignite/contrib/handlers/tqdm_logger.py b/ignite/contrib/handlers/tqdm_logger.py
index 3ced7f038c84..edf26512075d 100644
--- a/ignite/contrib/handlers/tqdm_logger.py
+++ b/ignite/contrib/handlers/tqdm_logger.py
@@ -114,7 +114,8 @@ def _reset(self, pbar_total):
)
def _close(self, engine):
- ... |
pandas-dev__pandas-14864 | floats and ints missing as acceptable arguments for pandas.to_datetime in API Reference
#### A small, complete example of the issue
http://pandas.pydata.org/pandas-docs/version/0.19.0/generated/pandas.to_datetime.html says:
> **arg** : _string, datetime, list, tuple, 1-d array, Series_
While http://pandas.pydata... | [
{
"content": "from datetime import datetime, timedelta, time\nimport numpy as np\nfrom collections import MutableMapping\n\nimport pandas.lib as lib\nimport pandas.tslib as tslib\n\nfrom pandas.types.common import (_ensure_object,\n is_datetime64_ns_dtype,\n ... | [
{
"content": "from datetime import datetime, timedelta, time\nimport numpy as np\nfrom collections import MutableMapping\n\nimport pandas.lib as lib\nimport pandas.tslib as tslib\n\nfrom pandas.types.common import (_ensure_object,\n is_datetime64_ns_dtype,\n ... | diff --git a/pandas/tseries/tools.py b/pandas/tseries/tools.py
index 326bc5be3fd8f..21e1c9744aa88 100644
--- a/pandas/tseries/tools.py
+++ b/pandas/tseries/tools.py
@@ -183,7 +183,7 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
Parameters
----------
- arg : string, datetime, li... |
OpenNMT__OpenNMT-py-1455 | Queue full error - Multi-GPU 1M custom dataset
```
Traceback (most recent call last):
File "/opt/conda/envs/learn-dev/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/opt/conda/envs/learn-dev/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*se... | [
{
"content": "#!/usr/bin/env python\n\"\"\"Train models.\"\"\"\nimport os\nimport signal\nimport torch\n\nimport onmt.opts as opts\nimport onmt.utils.distributed\n\nfrom onmt.utils.misc import set_random_seed\nfrom onmt.utils.logging import init_logger, logger\nfrom onmt.train_single import main as single_main\... | [
{
"content": "#!/usr/bin/env python\n\"\"\"Train models.\"\"\"\nimport os\nimport signal\nimport torch\n\nimport onmt.opts as opts\nimport onmt.utils.distributed\n\nfrom onmt.utils.misc import set_random_seed\nfrom onmt.utils.logging import init_logger, logger\nfrom onmt.train_single import main as single_main\... | diff --git a/train.py b/train.py
index d159deb2af..3fe8cfb439 100755
--- a/train.py
+++ b/train.py
@@ -124,7 +124,7 @@ def next_batch(device_id):
# hack to dodge unpicklable `dict_keys`
b.fields = list(b.fields)
- q.put(b, False)
+ q.put(b)
b = next_batch(device_id)
|
mantl__mantl-1470 | Replace cisco logo with Mantl logo in documentation
Now that Mantl has it's own logo (see http://mantl.io and the readme), should we replace [the Cisco logo](https://github.com/CiscoCloud/mantl/blob/master/docs/_static/cisco.png) we use in the docs?
- Ansible version (`ansible --version`): n/a
- Python version (`pytho... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Mantl documentation build configuration file, created by sphinx-quickstart on\n# Wed Feb 4 06:59:14 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\... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Mantl documentation build configuration file, created by sphinx-quickstart on\n# Wed Feb 4 06:59:14 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\... | diff --git a/README.md b/README.md
index 186c9f84b..69ae170de 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,4 @@
-
-
+
# Overview
diff --git a/docs/_static/cisco.png b/docs/_static/cisco.png
deleted file mode 100644
index 709af57ce..000000000
B... |
deepchecks__deepchecks-1494 | [BUG] Add copy button to code snippets
We used to have this:

For all code snippets (currently both in sphinx-gallery files. Doesn't appear anymore.
| [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nData Integrity Suite on Avocado Sales Data - Quickstart\n*******************************************************\n\nThe deepchecks integrity suite is relevant any time you have data that you wish to validate:\nwhether it's on a fresh batch of data, or right before ... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nData Integrity Suite on Avocado Sales Data - Quickstart\n*******************************************************\n\nThe deepchecks integrity suite is relevant any time you have data that you wish to validate:\nwhether it's on a fresh batch of data, or right before ... | diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html
index d42e63d966..faa207d158 100644
--- a/docs/source/_templates/layout.html
+++ b/docs/source/_templates/layout.html
@@ -67,7 +67,8 @@
<script>
require.config({
paths: {
- "docsearchLib": "htt... |
scrapy__scrapy-5066 | [CI] update pip
Trying to see if #5059 is reproducible in CI
Installation freezes with Twisted[http2]
I'm observing an considerable increase in the installation time after the addition of the [`Twisted[http2]`](https://github.com/scrapy/scrapy/blob/1d83697990d644178a75a0c7dd30b0568e8911b1/setup.py#L22) dependency, most... | [
{
"content": "from os.path import dirname, join\nfrom pkg_resources import parse_version\nfrom setuptools import setup, find_packages, __version__ as setuptools_version\n\n\nwith open(join(dirname(__file__), 'scrapy/VERSION'), 'rb') as f:\n version = f.read().decode('ascii').strip()\n\n\ndef has_environment_... | [
{
"content": "from os.path import dirname, join\nfrom pkg_resources import parse_version\nfrom setuptools import setup, find_packages, __version__ as setuptools_version\n\n\nwith open(join(dirname(__file__), 'scrapy/VERSION'), 'rb') as f:\n version = f.read().decode('ascii').strip()\n\n\ndef has_environment_... | diff --git a/setup.py b/setup.py
index 767c6f6bfeb..2b60a10af4c 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,7 @@ def has_environment_marker_platform_impl_support():
'zope.interface>=4.1.3',
'protego>=0.1.15',
'itemadapter>=0.1.0',
- 'h2>=3.2.0',
+ 'h2>=3.0,<4.0',
]
extras_require = {}
cpyt... |
pex-tool__pex-343 | Exit code 120 with python3.6
When trying to move to `python3.6` I noticed that our py.test builds are failing because the exit code of any PEX run is 120. This doesn't seem happen with `python3.5`. I'm observing this on arch linux as well as in a `ubuntu14.04` docker image.
To reproduce, create a pex file then launc... | [
{
"content": "# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import absolute_import, print_function\n\nimport os\nimport sys\nfrom contextlib import contextmanager\nfrom distutils import sysconfig\nfrom site ... | [
{
"content": "# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import absolute_import, print_function\n\nimport os\nimport sys\nfrom contextlib import contextmanager\nfrom distutils import sysconfig\nfrom site ... | diff --git a/pex/pex.py b/pex/pex.py
index 248d78fa7..46ef6dd37 100644
--- a/pex/pex.py
+++ b/pex/pex.py
@@ -31,6 +31,9 @@ def __init__(self):
def write(self, *args, **kw):
pass
+ def flush(self):
+ pass
+
class PEX(object): # noqa: T000
"""PEX, n. A self-contained python environment."""
|
Pylons__pyramid-1504 | ASCII apostrophes are replaced with typgraphic apostrophes in the PDF documentation code boxes
In version 1.3.2 of http://media.readthedocs.org/pdf/pyramid/1.3-branch/pyramid.pdf, apostrophes which should be encoded as ASCII (') are replaced with their typographic variants (’). This is correct in running text, but shou... | [
{
"content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ... | [
{
"content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ... | diff --git a/rtd.txt b/rtd.txt
index b449ac73c5..4aecd99333 100644
--- a/rtd.txt
+++ b/rtd.txt
@@ -1,4 +1,4 @@
+Sphinx >= 1.2.3
repoze.sphinx.autointerface
repoze.lru
pylons_sphinx_latesturl
-
diff --git a/setup.py b/setup.py
index 498de8dfcd..f2acdcb8b7 100644
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@
te... |
scikit-hep__uproot5-270 | Histogram protocol issue?
I am confused about `PlottableAxisContinuous.__getitem__`: for uproot4 it seems to give the one-indexed values where I was expecting zero-indexed, since `__len__` gives the number of bins without flow. For example:
```
>>> h = uproot.open('https://raw.githubusercontent.com/CoffeaTeam/coffea/... | [
{
"content": "# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE\n\n\"\"\"\nThis module defines the behaviors of ``TAxis``, an axis of a histogram or profile plot.\n\"\"\"\n\nfrom __future__ import absolute_import\n\ntry:\n from collections.abc import Sequence\nexcept ImportE... | [
{
"content": "# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE\n\n\"\"\"\nThis module defines the behaviors of ``TAxis``, an axis of a histogram or profile plot.\n\"\"\"\n\nfrom __future__ import absolute_import\n\ntry:\n from collections.abc import Sequence\nexcept ImportE... | diff --git a/uproot/behaviors/TAxis.py b/uproot/behaviors/TAxis.py
index 2bf5489a2..80735d728 100644
--- a/uproot/behaviors/TAxis.py
+++ b/uproot/behaviors/TAxis.py
@@ -72,7 +72,7 @@ def __getitem__(self, where):
return low, high
else:
- return fXbins[where + 1], fXbins[where + 2]
+ ... |
psf__black-2667 | Black unnecessarily separating star from the expression on match statement
Input:
```py
match a, *b(), c:
case d, *f, g:
pass
```
Expected:
```py
match a, *b(), c:
case d, *f, g:
pass
```
Got:
```py
match a, * b(), c:
case d, *f, g:
pass
```
| [
{
"content": "\"\"\"\nblib2to3 Node/Leaf transformation-related utility functions.\n\"\"\"\n\nimport sys\nfrom typing import (\n Collection,\n Generic,\n Iterator,\n List,\n Optional,\n Set,\n Tuple,\n TypeVar,\n Union,\n)\n\nif sys.version_info >= (3, 8):\n from typing import Fina... | [
{
"content": "\"\"\"\nblib2to3 Node/Leaf transformation-related utility functions.\n\"\"\"\n\nimport sys\nfrom typing import (\n Collection,\n Generic,\n Iterator,\n List,\n Optional,\n Set,\n Tuple,\n TypeVar,\n Union,\n)\n\nif sys.version_info >= (3, 8):\n from typing import Fina... | diff --git a/CHANGES.md b/CHANGES.md
index fc198a8f8c0..e5f4a1fdf82 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -14,6 +14,7 @@
- Fix `match`/`case` statements that contain `match`/`case` soft keywords multiple
times, like `match re.match()` (#2661)
- Fix `case` statements with an inline body (#2665)
+- Fix styling... |
google__flax-2827 | Cannot import flax.training.checkpoints in 0.6.4
### System information
- OS Platform and Distribution: Ubuntu 22.04.1 LTS, also in Colab environment
- Flax, jax, jaxlib versions:
* flax 0.6.4
* jax 0.3.25
* jaxlib 0.3.25
- Python version: 3.10.6
- GPU/TPU model and memory: No Accelerator / 16GB
### Pro... | [
{
"content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | [
{
"content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | diff --git a/setup.py b/setup.py
index c5a3f7723..8e15eb73a 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@
install_requires = [
"numpy>=1.12",
- "jax>=0.3.16",
+ "jax>=0.4.2",
"matplotlib", # only needed for tensorboard export
"msgpack",
"optax",
|
StackStorm__st2-4874 | Tags filtering is not returning the expected result through the API
**ISSUE TYPE**
Bug Report
**STACKSTORM VERSION**
`st2 3.0dev (367e117), on Python 2.7.12`
**OS / ENVIRONMENT / INSTALL METHOD**
stackstorm-ha helm chart
**SUMMARY**
When trying to filter all the actions based on the tags field an e... | [
{
"content": "# Copyright 2019 Extreme Networks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ... | [
{
"content": "# Copyright 2019 Extreme Networks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index a435c8a50c..ca5f8c164c 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -65,6 +65,10 @@ Changed
Fixed
~~~~~
+* Fix the action query when filtering tags. The old implementation returned actions which have the
+ provided name as action name and not as tag name. (bug ... |
beetbox__beets-3702 | "the" plugin uses incorrect regex
### Problem
Running this command:
```sh
~ ❯ beet move artist:trance -p
Moving 40 items.
M:\TET - Travailleur En Trance\[2008] Cobra Coded Escalation\01-01 - Cobra Reporting In.mp3
-> M:\‒ Travailleur En Trance, TET\[2008] Cobra Coded Escalation\01-01 - Cobra Reporting In.mp... | [
{
"content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Blemjhoo Tezoulbr <baobab@heresiarch.info>.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Soft... | [
{
"content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Blemjhoo Tezoulbr <baobab@heresiarch.info>.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Soft... | diff --git a/beetsplug/the.py b/beetsplug/the.py
index 238aec32fd..dfc58817dc 100644
--- a/beetsplug/the.py
+++ b/beetsplug/the.py
@@ -23,7 +23,7 @@
__author__ = 'baobab@heresiarch.info'
__version__ = '1.1'
-PATTERN_THE = u'^[the]{3}\\s'
+PATTERN_THE = u'^the\\s'
PATTERN_A = u'^[a][n]?\\s'
FORMAT = u'{0}, {1}'
... |
googleapis__google-cloud-python-3693 | Increment threadsafety on BigQuery DB-API interface when httplib2 is removed
From https://github.com/GoogleCloudPlatform/google-cloud-python/pull/2921/files/5b29a9e42a40f7c74ced0b7a7e9db0add52a20a1#r123596828
Blocked by https://github.com/GoogleCloudPlatform/google-cloud-python/issues/1998
| [
{
"content": "# Copyright 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica... | [
{
"content": "# Copyright 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica... | diff --git a/bigquery/google/cloud/bigquery/dbapi/__init__.py b/bigquery/google/cloud/bigquery/dbapi/__init__.py
index 4e9c9a810da4..4786ef8ef5fa 100644
--- a/bigquery/google/cloud/bigquery/dbapi/__init__.py
+++ b/bigquery/google/cloud/bigquery/dbapi/__init__.py
@@ -55,8 +55,8 @@
apilevel = '2.0'
-# Threads may sh... |
liqd__a4-opin-765 | add test for email sending after moderator was added to project
| [
{
"content": "from euth.contrib.emails import OpinEmail\n\n\nclass ModeratorAddedEmail(OpinEmail):\n template_name = 'notify_new_moderator'\n\n def get_recipients(self):\n self.kwargs['user']\n",
"path": "euth/projects/emails.py"
}
] | [
{
"content": "from euth.contrib.emails import OpinEmail\n\n\nclass ModeratorAddedEmail(OpinEmail):\n template_name = 'notify_new_moderator'\n\n def get_receivers(self):\n return [self.kwargs['user']]\n",
"path": "euth/projects/emails.py"
}
] | diff --git a/euth/projects/emails.py b/euth/projects/emails.py
index 8efec389c..c01586a79 100644
--- a/euth/projects/emails.py
+++ b/euth/projects/emails.py
@@ -4,5 +4,5 @@
class ModeratorAddedEmail(OpinEmail):
template_name = 'notify_new_moderator'
- def get_recipients(self):
- self.kwargs['user']
+ ... |
googleapis__python-bigquery-1794 | bug: client doesn't retry "Job exceeded rate limits" for DDL query jobs that exceed quota for table update operations
In https://github.com/googleapis/python-bigquery-sqlalchemy/pull/1009#discussion_r1457644849 it seems that the query in https://btx-internal.corp.google.com/invocations/ffafb866-6bc0-423f-a86b-df69fb27... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | diff --git a/google/cloud/bigquery/retry.py b/google/cloud/bigquery/retry.py
index b01c0662c..01b127972 100644
--- a/google/cloud/bigquery/retry.py
+++ b/google/cloud/bigquery/retry.py
@@ -73,7 +73,7 @@ def _should_retry(exc):
deadline on the retry object.
"""
-job_retry_reasons = "rateLimitExceeded", "backendError... |
ESMCI__cime-2251 | ERR test not setting DOUT_S
It should be TRUE but its currently false on master, git blame doesn't make any sense to me this must have just happened because ERR tests will fail when DOUT_S is FALSE.
| [
{
"content": "\"\"\"\nCommon interface to XML files, this is an abstract class and is expected to\nbe used by other XML interface modules and not directly.\n\"\"\"\nfrom CIME.XML.standard_module_setup import *\nimport xml.etree.ElementTree as ET\nfrom distutils.spawn import find_executable\nimport getpass, shut... | [
{
"content": "\"\"\"\nCommon interface to XML files, this is an abstract class and is expected to\nbe used by other XML interface modules and not directly.\n\"\"\"\nfrom CIME.XML.standard_module_setup import *\nimport xml.etree.ElementTree as ET\nfrom distutils.spawn import find_executable\nimport getpass, shut... | diff --git a/scripts/lib/CIME/XML/generic_xml.py b/scripts/lib/CIME/XML/generic_xml.py
index 7127b205b61..963606f5156 100644
--- a/scripts/lib/CIME/XML/generic_xml.py
+++ b/scripts/lib/CIME/XML/generic_xml.py
@@ -33,7 +33,7 @@ def __deepcopy__(self, _):
class GenericXML(object):
_FILEMAP = {}
- DISABLE_CACHI... |
sublimelsp__LSP-1148 | gopls: Format on save is disabled globally for the duration of the session after syntax error
# System information
macOS Catalina 10.15.5 (19F101)
Sublime Text Dev Channel, Build 4074
# Install
Package Control
# Reproduction
Assuming the LSP configuration
```json
{
"lsp_format_on_save": true,
"lsp... | [
{
"content": "from .logging import debug, exception_log\nfrom .protocol import Request, Notification, Response, Error, ErrorCode\nfrom .transports import Transport, TransportCallbacks\nfrom .typing import Any, Dict, Tuple, Callable, Optional, List\nfrom abc import ABCMeta, abstractmethod\nfrom threading import ... | [
{
"content": "from .logging import debug, exception_log\nfrom .protocol import Request, Notification, Response, Error, ErrorCode\nfrom .transports import Transport, TransportCallbacks\nfrom .typing import Any, Dict, Tuple, Callable, Optional, List\nfrom abc import ABCMeta, abstractmethod\nfrom threading import ... | diff --git a/plugin/core/rpc.py b/plugin/core/rpc.py
index 0eaa99e92..2c6a06331 100644
--- a/plugin/core/rpc.py
+++ b/plugin/core/rpc.py
@@ -106,6 +106,7 @@ def flush_error(self) -> Dict[str, Any]:
def reset(self) -> None:
self.__payload = None
+ self.__error = None
self.__request_id = -... |
great-expectations__great_expectations-4829 | Use cleaner solution for non-truncating division in python 2
Prefer `from __future__ import division` to `1.*x/y`
| [
{
"content": "from typing import Any, List, Union\n\nimport pygeos\n\nfrom great_expectations.core import ExpectationValidationResult\nfrom great_expectations.execution_engine import PandasExecutionEngine\nfrom great_expectations.expectations.expectation import (\n ColumnMapExpectation,\n ExpectationConfi... | [
{
"content": "from typing import Any, List, Union\n\nimport pygeos\n\nfrom great_expectations.core import ExpectationValidationResult\nfrom great_expectations.execution_engine import PandasExecutionEngine\nfrom great_expectations.expectations.expectation import (\n ColumnMapExpectation,\n ExpectationConfi... | diff --git a/contrib/experimental/great_expectations_experimental/expectations/expect_column_values_to_be_valid_geojson.py b/contrib/experimental/great_expectations_experimental/expectations/expect_column_values_to_be_valid_geojson.py
index afcebcc60e97..d1022adb1795 100644
--- a/contrib/experimental/great_expectations... |
python-gitlab__python-gitlab-1437 | Missing API code owner approval for protected branches
## Summary
The branch manager is missing an attribute implementation of `code_owner_approval_required` as documented in [GitLab API documentation](https://docs.gitlab.com/ce/api/protected_branches.html#protect-repository-branches)
## Expected Behavior
`Pro... | [
{
"content": "from gitlab import cli\nfrom gitlab import exceptions as exc\nfrom gitlab.base import RequiredOptional, RESTManager, RESTObject\nfrom gitlab.mixins import NoUpdateMixin, ObjectDeleteMixin\n\n\n__all__ = [\n \"ProjectBranch\",\n \"ProjectBranchManager\",\n \"ProjectProtectedBranch\",\n ... | [
{
"content": "from gitlab import cli\nfrom gitlab import exceptions as exc\nfrom gitlab.base import RequiredOptional, RESTManager, RESTObject\nfrom gitlab.mixins import NoUpdateMixin, ObjectDeleteMixin\n\n\n__all__ = [\n \"ProjectBranch\",\n \"ProjectBranchManager\",\n \"ProjectProtectedBranch\",\n ... | diff --git a/gitlab/v4/objects/branches.py b/gitlab/v4/objects/branches.py
index 11e53a0e1..6b1b27f3e 100644
--- a/gitlab/v4/objects/branches.py
+++ b/gitlab/v4/objects/branches.py
@@ -84,5 +84,6 @@ class ProjectProtectedBranchManager(NoUpdateMixin, RESTManager):
"allowed_to_push",
"allowed_to... |
Textualize__rich-1426 | [BUG] reconfiguring rich via pytest at runtime
**Describe the bug**
Trying to reconfigure rich when my code is run via pytest, using the following pytest hook:
```python
# conftest.py
def pytest_configure():
try:
import rich
except ImportError:
pass
else:
rich.reconfi... | [
{
"content": "\"\"\"Rich text and beautiful formatting in the terminal.\"\"\"\n\nimport os\nfrom typing import IO, TYPE_CHECKING, Any, Optional\n\nfrom ._extension import load_ipython_extension\n\n__all__ = [\"get_console\", \"reconfigure\", \"print\", \"inspect\"]\n\nif TYPE_CHECKING:\n from .console import... | [
{
"content": "\"\"\"Rich text and beautiful formatting in the terminal.\"\"\"\n\nimport os\nfrom typing import IO, TYPE_CHECKING, Any, Optional\n\nfrom ._extension import load_ipython_extension\n\n__all__ = [\"get_console\", \"reconfigure\", \"print\", \"inspect\"]\n\nif TYPE_CHECKING:\n from .console import... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7b17d733d..5103330ad 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic ... |
weni-ai__bothub-engine-150 | Relative STATIC_URL in production broken email images
| [
{
"content": "import os\nimport dj_database_url\n\nfrom decouple import config\n\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY ... | [
{
"content": "import os\nimport dj_database_url\n\nfrom decouple import config\n\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY ... | diff --git a/README.md b/README.md
index f23e393e..c3328e98 100644
--- a/README.md
+++ b/README.md
@@ -48,6 +48,7 @@ You can set environment variables in your OS, write on ```.env``` file or pass v
| DEFAULT_DATABASE | ```string``` | ```sqlite:///db.sqlite3``` | Read [dj-database-url](https://github.com/kennethreitz/d... |
bookwyrm-social__bookwyrm-355 | UndefinedTable: relation "bookwyrm_userrelationship" does not exist error
**Describe the bug**
I went to go load up the development env today after a little while of not using it and came across this error when I ran the `docker-compose run --rm web python manage.py migrate` cmd to keep up with new migrations:
```
... | [
{
"content": "''' bookwyrm settings and configuration '''\nimport os\n\nfrom environs import Env\n\nenv = Env()\nDOMAIN = env('DOMAIN')\n\nPAGE_LENGTH = env('PAGE_LENGTH', 15)\n\n# celery\nCELERY_BROKER = env('CELERY_BROKER')\nCELERY_RESULT_BACKEND = env('CELERY_RESULT_BACKEND')\nCELERY_ACCEPT_CONTENT = ['appli... | [
{
"content": "''' bookwyrm settings and configuration '''\nimport os\n\nfrom environs import Env\n\nenv = Env()\nDOMAIN = env('DOMAIN')\n\nPAGE_LENGTH = env('PAGE_LENGTH', 15)\n\n# celery\nCELERY_BROKER = env('CELERY_BROKER')\nCELERY_RESULT_BACKEND = env('CELERY_RESULT_BACKEND')\nCELERY_ACCEPT_CONTENT = ['appli... | diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py
index 46bc25142a..5adf960f64 100644
--- a/bookwyrm/settings.py
+++ b/bookwyrm/settings.py
@@ -40,6 +40,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
+ 'django_rename_app',
'bookwyrm',
'celery'... |
geopandas__geopandas-1838 | DOC: ReadTheDocs failure due to timeout
RTD does not seem to be happy about the switch to `nbsphinx` examples - https://readthedocs.org/projects/geopandas/builds/13052287/.
Not sure why exactly, I can think of two reasons (it may actually be a combination of both).
1) I have removed pins from versions to get the... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# GeoPandas documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 15 08:08:14 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in thi... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# GeoPandas documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 15 08:08:14 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in thi... | diff --git a/doc/environment.yml b/doc/environment.yml
index e4a2fc1714..584cbef93d 100644
--- a/doc/environment.yml
+++ b/doc/environment.yml
@@ -18,6 +18,7 @@ dependencies:
- pillow=8.1.0
- mock=4.0.3
- cartopy=0.18.0
+ - pyepsg=0.4.0
- contextily=1.1.0
- rasterio=1.2.0
- geoplot=0.4.1
@@ -35,6 +36... |
meltano__meltano-7210 | feature: Python 3.11 support
### Feature scope
Other
### Description
Python 3.11.0 is planned to be officially released as of 2022-10-24. We should add it to our test matrix, and build Docker images for it for each release.
| [
{
"content": "\"\"\"Nox configuration.\"\"\"\n\nfrom __future__ import annotations\n\nimport os\nimport sys\nfrom pathlib import Path\nfrom random import randint\nfrom textwrap import dedent\n\ntry:\n from nox_poetry import Session\n from nox_poetry import session as nox_session\nexcept ImportError:\n ... | [
{
"content": "\"\"\"Nox configuration.\"\"\"\n\nfrom __future__ import annotations\n\nimport os\nimport sys\nfrom pathlib import Path\nfrom random import randint\nfrom textwrap import dedent\n\ntry:\n from nox_poetry import Session\n from nox_poetry import session as nox_session\nexcept ImportError:\n ... | diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml
index 41080ba6be..a4baffa463 100644
--- a/.github/ISSUE_TEMPLATE/bug.yml
+++ b/.github/ISSUE_TEMPLATE/bug.yml
@@ -29,6 +29,7 @@ body:
- "3.8"
- "3.9"
- "3.10"
+ - "3.11"
- "NA"
validations:
... |
PaddlePaddle__models-4963 | emotion_detection/utils.py代码错误
utils.py第62行:seq_len = max_seq_len 是缩进错误吧?应该包括在else内,否则seq_len不能表示sequence的真实长度
| [
{
"content": "# Copyright (c) 2019 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) 2019 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/PaddleNLP/emotion_detection/utils.py b/PaddleNLP/emotion_detection/utils.py
index de7ac1eeb8..a207557b2d 100644
--- a/PaddleNLP/emotion_detection/utils.py
+++ b/PaddleNLP/emotion_detection/utils.py
@@ -59,7 +59,7 @@ def pad_wid(wids, max_seq_len=128, pad_id=0):
wids.append(pad_id)
else:
... |
feast-dev__feast-1946 | Allow plugin repos to test against universal test suite
**Is your feature request related to a problem? Please describe.**
There are several plugin repos for custom connectors (Hive, Azure, Snowflake, etc.), and there is increasing interest from the community in contributing plugins. One blocker for many folks is that... | [
{
"content": "#\n# Copyright 2019 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ... | [
{
"content": "#\n# Copyright 2019 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ... | diff --git a/Makefile b/Makefile
index 1f53c390666..0d1bc034c21 100644
--- a/Makefile
+++ b/Makefile
@@ -61,6 +61,9 @@ test-python:
test-python-integration:
FEAST_USAGE=False IS_TEST=True python -m pytest -n 8 --integration sdk/python/tests
+test-python-universal:
+ FEAST_USAGE=False IS_TEST=True python -m pytest ... |
urllib3__urllib3-2046 | Broken import for HTTPHeaderDict in 1.26.0
### Subject
[Responses](https://github.com/getsentry/responses) has historically used `from urllib3.connection import HTTPHeaderDict` but that import is now failing in 1.26.0. Looking through the history this was changed as part of #2018
This change wasn't in the relea... | [
{
"content": "from __future__ import absolute_import\n\nimport datetime\nimport logging\nimport os\nimport re\nimport socket\nimport warnings\nfrom socket import error as SocketError\nfrom socket import timeout as SocketTimeout\n\nfrom .packages import six\nfrom .packages.six.moves.http_client import HTTPConnec... | [
{
"content": "from __future__ import absolute_import\n\nimport datetime\nimport logging\nimport os\nimport re\nimport socket\nimport warnings\nfrom socket import error as SocketError\nfrom socket import timeout as SocketTimeout\n\nfrom .packages import six\nfrom .packages.six.moves.http_client import HTTPConnec... | diff --git a/src/urllib3/connection.py b/src/urllib3/connection.py
index 52487417c9..986cd24188 100644
--- a/src/urllib3/connection.py
+++ b/src/urllib3/connection.py
@@ -43,6 +43,7 @@ class BrokenPipeError(Exception):
pass
+from ._collections import HTTPHeaderDict # noqa (historical, removed in v2)
from... |
googleapis__google-api-python-client-303 | Suggest use of httplib2 v0.9.2 in readme if using python > 3
Python3.x implementations of the client, passes bytestring to httplib2 header encoding method. Httplib2 < 0.9.2 does not support this.
Documentation should make a note that implementations in python3 should explicitly install httplib2 0.9.2. PyPi index targ... | [
{
"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles... | [
{
"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles... | diff --git a/setup.py b/setup.py
index 4a431ac66dd..b6a5db2503a 100644
--- a/setup.py
+++ b/setup.py
@@ -63,7 +63,7 @@ def _DetectBadness():
]
install_requires = [
- 'httplib2>=0.8,<1dev',
+ 'httplib2>=0.9.2,<1dev',
'oauth2client>=1.5.0,<5.0.0dev',
'six>=1.6.1,<2dev',
'uritemplate>=3.0.0,<4dev'... |
chainer__chainer-5482 | chainer.reporter.Summary does not properly deserialize float values from NpzDeserializer
Hi, I've noticed that ```chainer.reporter.Summary.serialize``` convert all float values into int if it is called with ```chainer.serializers.NpzDeserializer``` because the deserializer convert the deserialized values into the same ... | [
{
"content": "import collections\nimport contextlib\nimport copy\nimport json\nimport warnings\n\nimport numpy\nimport six\n\nfrom chainer import backend\nfrom chainer.backends import cuda\nfrom chainer import configuration\nfrom chainer import serializer as serializer_module\nfrom chainer import variable\n\n\n... | [
{
"content": "import collections\nimport contextlib\nimport copy\nimport json\nimport warnings\n\nimport numpy\nimport six\n\nfrom chainer import backend\nfrom chainer.backends import cuda\nfrom chainer import configuration\nfrom chainer import serializer as serializer_module\nfrom chainer import variable\n\n\n... | diff --git a/chainer/reporter.py b/chainer/reporter.py
index 5ecdc6bfbe5e..f6f47d430c3a 100644
--- a/chainer/reporter.py
+++ b/chainer/reporter.py
@@ -264,8 +264,8 @@ class Summary(object):
"""
def __init__(self):
- self._x = 0
- self._x2 = 0
+ self._x = 0.0
+ self._x2 = 0.0
... |
blakeblackshear__frigate-1182 | Recordings UI fails when no recordings exist
The current recordings UI doesn't gracefully handle when there are no recordings. It seems to get stuck loading recordings in an infinite loop.

@hunterjm
| [
{
"content": "import base64\nfrom collections import OrderedDict\nfrom datetime import datetime, timedelta\nimport json\nimport glob\nimport logging\nimport os\nimport re\nimport time\nfrom functools import reduce\nfrom pathlib import Path\n\nimport cv2\nimport gevent\nimport numpy as np\nfrom flask import (\n ... | [
{
"content": "import base64\nfrom collections import OrderedDict\nfrom datetime import datetime, timedelta\nimport json\nimport glob\nimport logging\nimport os\nimport re\nimport time\nfrom functools import reduce\nfrom pathlib import Path\n\nimport cv2\nimport gevent\nimport numpy as np\nfrom flask import (\n ... | diff --git a/frigate/http.py b/frigate/http.py
index 8aeb58741a..040e66bb3f 100644
--- a/frigate/http.py
+++ b/frigate/http.py
@@ -456,7 +456,7 @@ def recordings(camera_name):
files = glob.glob(f"{RECORD_DIR}/*/*/*/{camera_name}")
if len(files) == 0:
- return "No recordings found.", 404
+ retu... |
streamlit__streamlit-2217 | Streamlit fails to start without Git executable
# Summary
Streamlit version `0.69.1` fails to start when run inside a Docker container that doesn't have Git installed.
# Steps to reproduce
1. Create a `Dockerfile` with the following contents:
```dockerfile
FROM python:3.8-slim
RUN pip install streamlit
CMD... | [
{
"content": "import os\nimport platform\nimport setuptools\nimport subprocess\nimport sys\n\nfrom pipenv.project import Project\nfrom pipenv.utils import convert_deps_to_pip\nfrom setuptools.command.install import install\n\nVERSION = \"0.69.1\" # PEP-440\n\nNAME = \"streamlit\"\n\nDESCRIPTION = \"The fastest... | [
{
"content": "import os\nimport platform\nimport setuptools\nimport subprocess\nimport sys\n\nfrom pipenv.project import Project\nfrom pipenv.utils import convert_deps_to_pip\nfrom setuptools.command.install import install\n\nVERSION = \"0.69.2\" # PEP-440\n\nNAME = \"streamlit\"\n\nDESCRIPTION = \"The fastest... | diff --git a/docs/troubleshooting/sanity-checks.md b/docs/troubleshooting/sanity-checks.md
index 756b3583d458..6446af2eecc2 100644
--- a/docs/troubleshooting/sanity-checks.md
+++ b/docs/troubleshooting/sanity-checks.md
@@ -24,7 +24,7 @@ pip install --upgrade streamlit
streamlit version
```
-...and then verify that ... |
encode__uvicorn-660 | Reload Behavior: Documentation != Code, Unnecessary Reloads
Hey! I upgraded to 0.11.4 shortly after release today, and it has a couple of quirks.
1. The documentation [here](https://github.com/encode/uvicorn/compare/0.11.3...0.11.4#diff-1819b1daaccb3d358620ade9c67e9118R22) says "python file changes" but the code say... | [
{
"content": "from uvicorn.config import Config\nfrom uvicorn.main import Server, main, run\n\n__version__ = \"0.11.4\"\n__all__ = [\"main\", \"run\", \"Config\", \"Server\"]\n",
"path": "uvicorn/__init__.py"
}
] | [
{
"content": "from uvicorn.config import Config\nfrom uvicorn.main import Server, main, run\n\n__version__ = \"0.11.5\"\n__all__ = [\"main\", \"run\", \"Config\", \"Server\"]\n",
"path": "uvicorn/__init__.py"
}
] | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3f2706511..617c366dc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,15 @@
# Change Log
+## 0.11.5
+
+* Revert "Watch all files, not just .py" due to unexpected side effects.
+* Revert "Pass through gunicorn timeout config." due to unexpected side effects.
+
##... |
fidals__shopelectro-592 | Fix env substitution in docker-compose.yml for docker-rm
https://ci.fidals.com/fidals/shopelectro/938/12
| [
{
"content": "\"\"\"\nGenerate Excel price-list.\n\nUse this excel editor lib: https://openpyxl.readthedocs.io/en/default/\n\"\"\"\nimport datetime\nimport os\nfrom collections import namedtuple\n\nimport openpyxl\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand\nfrom openp... | [
{
"content": "\"\"\"\nGenerate Excel price-list.\n\nUse this excel editor lib: https://openpyxl.readthedocs.io/en/stable/\n\"\"\"\nimport datetime\nimport os\nfrom collections import namedtuple\n\nimport openpyxl\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand\nfrom openpy... | diff --git a/.drone.yml b/.drone.yml
index fd4f6c76..82957b37 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -7,7 +7,7 @@ workspace:
pipeline:
- nodejs-build: # with `npm install` inside
+ build-nodejs: # with `npm install` inside
image: docker/compose:1.22.0
commands:
- cd docker/
@@ -21,7 +21,7... |
Parsl__parsl-2302 | Remove parsl container bits
This issue is to remind us to remove Parsl container support and update the docs as soon as the funcX executor is integrated-- we should switch to recommending container support through it.
| [
{
"content": "\ndef predict(list_items):\n \"\"\"Returns the double of the items\"\"\"\n return [i*2 for i in list_items]\n",
"path": "docker/app1/app1.py"
},
{
"content": "\ndef predict(list_items):\n \"\"\"Returns items+10\"\"\"\n return [i+10 for i in list_items]\n",
"path": "dock... | [
{
"content": null,
"path": "docker/app1/app1.py"
},
{
"content": null,
"path": "docker/app2/app2.py"
}
] | diff --git a/docker/Dockerfile b/docker/Dockerfile
deleted file mode 100644
index 64b077779c..0000000000
--- a/docker/Dockerfile
+++ /dev/null
@@ -1,8 +0,0 @@
-# Use an official Python runtime as a parent image
-FROM python:3.6
-
-# Set the working directory to /home
-WORKDIR /home
-
-# Install any needed packages spec... |
mlflow__mlflow-351 | UUID dependency breaks python 3 under AWS linux
### System information
- **Have I written custom code (as opposed to using a stock example script provided in MLflow)**: No
- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Amazon linux deep learning AMI 12.0 (like CentOS)
- **MLflow installed from (sourc... | [
{
"content": "import imp\nimport os\nfrom setuptools import setup, find_packages\n\nversion = imp.load_source(\n 'mlflow.version', os.path.join('mlflow', 'version.py')).VERSION\n\n\n# Get a list of all files in the JS directory to include in our module\ndef package_files(directory):\n paths = []\n for ... | [
{
"content": "import imp\nimport os\nfrom setuptools import setup, find_packages\n\nversion = imp.load_source(\n 'mlflow.version', os.path.join('mlflow', 'version.py')).VERSION\n\n\n# Get a list of all files in the JS directory to include in our module\ndef package_files(directory):\n paths = []\n for ... | diff --git a/setup.py b/setup.py
index 89a873fd7791e..4d5b0b2529187 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,6 @@ def package_files(directory):
'databricks-cli>=0.8.0',
'requests>=2.17.3',
'six>=1.10.0',
- 'uuid',
'gunicorn',
'Flask',
'numpy',
|
xonsh__xonsh-3272 | Aliases containig logical subprocess operators not handled properly
Consider these three aliases:
```
┌─12-15:40 [confus@confusion /tmp/tmp.w8lR957tJh] 😱 😱
└$ tail ~/.xonshrc -n8
# Working alias:
aliases['envpy2']='echo "layout python2" > .envrc; direnv allow .'
# Broken alias:
ali... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"Aliases for the xonsh shell.\"\"\"\nimport os\nimport re\nimport sys\nimport inspect\nimport argparse\nimport builtins\nimport collections.abc as cabc\n\nfrom xonsh.lazyasd import lazyobject\nfrom xonsh.dirstack import cd, pushd, popd, dirs, _get_cwd\nfrom xonsh.envi... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"Aliases for the xonsh shell.\"\"\"\nimport os\nimport re\nimport sys\nimport inspect\nimport argparse\nimport builtins\nimport collections.abc as cabc\n\nfrom xonsh.lazyasd import lazyobject\nfrom xonsh.dirstack import cd, pushd, popd, dirs, _get_cwd\nfrom xonsh.envi... | diff --git a/news/logical_op_aliases.rst b/news/logical_op_aliases.rst
new file mode 100644
index 0000000000..0f0bcd400e
--- /dev/null
+++ b/news/logical_op_aliases.rst
@@ -0,0 +1,28 @@
+**Added:**
+
+* <news item>
+
+**Changed:**
+
+* <news item>
+
+**Deprecated:**
+
+* <news item>
+
+**Removed:**
+
+* <news item>
+
+... |
pyscript__pyscript-1941 | Py Terminal issues aggregation
### Checklist
- [X] I added a descriptive title
- [X] I searched for other issues and couldn't find a solution or duplication
- [X] I already searched in Google and didn't find any good information or help
### What happened?
We have at least 3 issues in the current PyTerminal:
... | [
{
"content": "import sys\n\nimport js as globalThis\nfrom polyscript import js_modules\nfrom pyscript.util import NotSupported\n\nRUNNING_IN_WORKER = not hasattr(globalThis, \"document\")\n\n\n# allow `from pyscript.js_modules.xxx import yyy`\nclass JSModule(object):\n def __init__(self, name):\n self... | [
{
"content": "import sys\n\nimport js as globalThis\nfrom polyscript import js_modules\nfrom pyscript.util import NotSupported\n\nRUNNING_IN_WORKER = not hasattr(globalThis, \"document\")\n\n\n# allow `from pyscript.js_modules.xxx import yyy`\nclass JSModule:\n def __init__(self, name):\n self.name = ... | diff --git a/pyscript.core/package-lock.json b/pyscript.core/package-lock.json
index 5165c8ab9be..f736582c4e2 100644
--- a/pyscript.core/package-lock.json
+++ b/pyscript.core/package-lock.json
@@ -1,27 +1,27 @@
{
"name": "@pyscript/core",
- "version": "0.3.14",
+ "version": "0.3.15",
"lockfileVersion":... |
craiga__will-of-the-prophets-35 | Mobile-friendly layout
Sidebar should drop below the board once "mornhammered" becomes too wide for the window.
| [
{
"content": "\"\"\"Views.\"\"\"\n\nfrom django.shortcuts import render\nfrom django.views.generic.edit import CreateView\nfrom django.contrib.auth.mixins import LoginRequiredMixin\nfrom django.urls import reverse\n\nfrom will_of_the_prophets import board, forms, models\n\n\ndef public_board(request):\n \"\"... | [
{
"content": "\"\"\"Views.\"\"\"\n\nfrom django.shortcuts import render\nfrom django.views.generic.edit import CreateView\nfrom django.contrib.auth.mixins import LoginRequiredMixin\nfrom django.urls import reverse\n\nfrom will_of_the_prophets import board, forms, models\n\n\ndef public_board(request):\n \"\"... | diff --git a/README.markdown b/README.markdown
index 5c9299f2..e2c07116 100644
--- a/README.markdown
+++ b/README.markdown
@@ -14,3 +14,9 @@ Once you've checked out this repository, getting this project up and running sho
pipenv run python manage.py migrate
pipenv run python manage.py loaddata buttholes speci... |
joke2k__faker-1569 | too long iban generated for pl-PL locale
* Faker version: 9.8.2
* OS: MacOs 12.0.1
IBANs generated for pl_PL locales are 30 characters long. This is too many. Valid PL IBAN should have 28 characters (including country code).
### Steps to reproduce
Generate a Polish IBAN with:
```
from faker import Faker
fa... | [
{
"content": "from .. import Provider as BankProvider\n\n\nclass Provider(BankProvider):\n \"\"\"Implement bank provider for ``pl_PL`` locale.\"\"\"\n\n bban_format = \"#\" * 26\n country_code = \"PL\"\n",
"path": "faker/providers/bank/pl_PL/__init__.py"
}
] | [
{
"content": "from .. import Provider as BankProvider\n\n\nclass Provider(BankProvider):\n \"\"\"Implement bank provider for ``pl_PL`` locale.\"\"\"\n\n bban_format = \"#\" * 24\n country_code = \"PL\"\n",
"path": "faker/providers/bank/pl_PL/__init__.py"
}
] | diff --git a/faker/providers/bank/pl_PL/__init__.py b/faker/providers/bank/pl_PL/__init__.py
index 9d9b8f647b..9cf6624db9 100644
--- a/faker/providers/bank/pl_PL/__init__.py
+++ b/faker/providers/bank/pl_PL/__init__.py
@@ -4,5 +4,5 @@
class Provider(BankProvider):
"""Implement bank provider for ``pl_PL`` locale."... |
saleor__saleor-1949 | Product variant without name or attrs displays as blank space in dashboard's breadcrumbs
Seems like `__str__` on our `ProductVariant` may produce empty string if ProductVariant has no name or attributes set. Our titles seem to fallback to SKU if this is the case, but not our breadcrumbs:
<img width="362" alt="zrzut ... | [
{
"content": "import datetime\nfrom decimal import Decimal\n\nfrom django.conf import settings\nfrom django.contrib.postgres.fields import HStoreField\nfrom django.core.validators import MinValueValidator, RegexValidator\nfrom django.db import models\nfrom django.db.models import F, Max, Q\nfrom django.urls imp... | [
{
"content": "import datetime\nfrom decimal import Decimal\n\nfrom django.conf import settings\nfrom django.contrib.postgres.fields import HStoreField\nfrom django.core.validators import MinValueValidator, RegexValidator\nfrom django.db import models\nfrom django.db.models import F, Max, Q\nfrom django.urls imp... | diff --git a/saleor/product/models.py b/saleor/product/models.py
index 5a397a1691f..497df124587 100644
--- a/saleor/product/models.py
+++ b/saleor/product/models.py
@@ -199,7 +199,7 @@ class Meta:
app_label = 'product'
def __str__(self):
- return self.name
+ return self.name or self.sku
... |
evennia__evennia-2542 | [Feature Request] Lowercase search_prototype.
#### Is your feature request related to a problem? Please describe.
The [evennia.prototypes.prototypes.search_prototype() method](https://github.com/evennia/evennia/blob/master/evennia/prototypes/prototypes.py#L335) will fail to find a matching prototype if the supplied ke... | [
{
"content": "\"\"\"\n\nHandling storage of prototypes, both database-based ones (DBPrototypes) and those defined in modules\n(Read-only prototypes). Also contains utility functions, formatters and manager functions.\n\n\"\"\"\n\nimport hashlib\nimport time\nfrom ast import literal_eval\nfrom django.conf import... | [
{
"content": "\"\"\"\n\nHandling storage of prototypes, both database-based ones (DBPrototypes) and those defined in modules\n(Read-only prototypes). Also contains utility functions, formatters and manager functions.\n\n\"\"\"\n\nimport hashlib\nimport time\nfrom ast import literal_eval\nfrom django.conf import... | diff --git a/evennia/prototypes/prototypes.py b/evennia/prototypes/prototypes.py
index e6ea4a585b0..1efa4c86fac 100644
--- a/evennia/prototypes/prototypes.py
+++ b/evennia/prototypes/prototypes.py
@@ -365,6 +365,10 @@ def search_prototype(key=None, tags=None, require_single=False, return_iterators
be found as ... |
akvo__akvo-rsr-4816 | Feature Request: Modification to Optimy integration script: default 'Unpublished' status
### What are you trying to do?
Modify the current Optimy integration script for Aqua for All's 'Making Water Count' programme.
### Describe the solution you'd like
All projects created in RSR via the Optimy integration have ... | [
{
"content": "#!/usr/bin/env python3\n\n# Akvo Reporting is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\n\"\"\... | [
{
"content": "#!/usr/bin/env python3\n\n# Akvo Reporting is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\n\"\"\... | diff --git a/akvo/rsr/management/commands/a4a_optimy_import.py b/akvo/rsr/management/commands/a4a_optimy_import.py
index 63e25db95b..5d77b330e1 100644
--- a/akvo/rsr/management/commands/a4a_optimy_import.py
+++ b/akvo/rsr/management/commands/a4a_optimy_import.py
@@ -284,9 +284,6 @@ def create_project(project, answers):... |
neptune-ai__neptune-client-155 | create_experiment() fails on windows 10
Hi there,
I enjoy neptune very much and on my macbook everything works fine. But when I run the same code on my Windows 10 machine, I get an error when calling create_experiment().
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Progr... | [
{
"content": "#\n# Copyright (c) 2019, Neptune Labs Sp. z o.o.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ... | [
{
"content": "#\n# Copyright (c) 2019, Neptune Labs Sp. z o.o.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ... | diff --git a/neptune/internal/streams/stdstream_uploader.py b/neptune/internal/streams/stdstream_uploader.py
index ae7ab93d9..4b0a99aa1 100644
--- a/neptune/internal/streams/stdstream_uploader.py
+++ b/neptune/internal/streams/stdstream_uploader.py
@@ -41,6 +41,9 @@ def isatty(self):
def flush(self):
self... |
translate__pootle-5863 | Templates language is taken into account in the main view
I'm testing Pootle 2.8.0RC3 and I've found an issue related to #4568.
When I filter the translations for a single project, the progress bar now shows 100% (the templates aren't taken into account now, great):
 Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nfrom pootle.co... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nfrom pootle.co... | diff --git a/pootle/apps/pootle_data/project_data.py b/pootle/apps/pootle_data/project_data.py
index f050c793f0f..8963cc8220c 100644
--- a/pootle/apps/pootle_data/project_data.py
+++ b/pootle/apps/pootle_data/project_data.py
@@ -62,3 +62,7 @@ def get_root_child_path(self, child):
@property
def context_name(se... |
pwndbg__pwndbg-912 | pwndbg fails to work with 64bit kernel in qemu
### Description
pwndbg raises when debugging a 64bit stripped kernel.
the error message looks like this:
~~~
pwndbg: loaded 196 commands. Type pwndbg [filter] for a list.
pwndbg: created $rebase, $ida gdb functions (can be used with print/break)
Reading symbols fro... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nThis file declares types and methods useful for enumerating\nall of the address spaces and permissions of an ELF file in memory.\n\nThis is necessary for when access to /proc is restricted, or when\nworking on a BSD system which simply does n... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nThis file declares types and methods useful for enumerating\nall of the address spaces and permissions of an ELF file in memory.\n\nThis is necessary for when access to /proc is restricted, or when\nworking on a BSD system which simply does n... | diff --git a/pwndbg/elf.py b/pwndbg/elf.py
index 950c78b3bd6..fd46dca2f17 100644
--- a/pwndbg/elf.py
+++ b/pwndbg/elf.py
@@ -236,7 +236,7 @@ def get_ehdr(pointer):
"""
# This just does not work :(
- if pwndbg.qemu.is_usermode():
+ if pwndbg.qemu.is_qemu():
return None, None
vmmap = pwn... |
bokeh__bokeh-5378 | Correct comment in Dimension example plot
The comment in [this example](http://bokeh.pydata.org/en/latest/docs/user_guide/styling.html#dimensions) says `# create a new plot with a title`. I expect this example was copied from the one below is demonstrating how to add a title. This comment should be changed to `# crea... | [
{
"content": "from bokeh.plotting import figure, output_file, show\n\noutput_file(\"dimensions.html\")\n\n# create a new plot with a title\np = figure(plot_width=700)\np.plot_height = 300\n\np.circle([1, 2, 3, 4, 5], [2, 5, 8, 2, 7], size=10)\n\nshow(p)\n",
"path": "sphinx/source/docs/user_guide/source_exam... | [
{
"content": "from bokeh.plotting import figure, output_file, show\n\noutput_file(\"dimensions.html\")\n\n# create a new plot with specific dimensions\np = figure(plot_width=700)\np.plot_height = 300\n\np.circle([1, 2, 3, 4, 5], [2, 5, 8, 2, 7], size=10)\n\nshow(p)\n",
"path": "sphinx/source/docs/user_guide... | diff --git a/sphinx/source/docs/user_guide/source_examples/styling_dimensions.py b/sphinx/source/docs/user_guide/source_examples/styling_dimensions.py
index 7197519df0a..9aabb7950a4 100644
--- a/sphinx/source/docs/user_guide/source_examples/styling_dimensions.py
+++ b/sphinx/source/docs/user_guide/source_examples/styli... |
holoviz__panel-3880 | Test documentation markdown documentation python
With the switch of some of the documentation from notebook files to markdown files, it makes sense to add a way to test all the code blocks to verify it is able to run from top to bottom.
| [
{
"content": "#!/usr/bin/env python\nimport json\nimport os\nimport shutil\nimport sys\n\nimport pyct.build\n\nfrom setuptools import find_packages, setup\nfrom setuptools.command.develop import develop\nfrom setuptools.command.install import install\nfrom setuptools.command.sdist import sdist\n\nPANEL_LITE_BUI... | [
{
"content": "#!/usr/bin/env python\nimport json\nimport os\nimport shutil\nimport sys\n\nimport pyct.build\n\nfrom setuptools import find_packages, setup\nfrom setuptools.command.develop import develop\nfrom setuptools.command.install import install\nfrom setuptools.command.sdist import sdist\n\nPANEL_LITE_BUI... | diff --git a/doc/developer_guide/extensions.md b/doc/developer_guide/extensions.md
index f50ce0154a..0ccd41144e 100644
--- a/doc/developer_guide/extensions.md
+++ b/doc/developer_guide/extensions.md
@@ -16,12 +16,12 @@ The `panel.auth` group should be used to register new authentication providers.
The `panel.io.rest` ... |
mlcommons__GaNDLF-628 | Port to Pandas 2.0
**Describe the bug**
when running `gandlf_run`, I am encountering:
`ERROR: 'DataFrame' object has no attribute 'append'`
**To Reproduce**
Train a model using `gandlf_run`.
I trained using `2d_rad_segmentation` data from `https://upenn.box.com/shared/static/y8162xkq1zz5555ye3pwadry2m2e39b... | [
{
"content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport sys, re\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\ntry:\n with open(\"README.... | [
{
"content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport sys, re\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\ntry:\n with open(\"README.... | diff --git a/setup.py b/setup.py
index 7901743bc..4580d9e40 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ def run(self):
"torchvision",
"tqdm",
"torchio==0.18.75",
- "pandas",
+ "pandas<2.0.0",
"scikit-learn>=0.23.2",
"scikit-image>=0.19.1",
"setuptools",
|
pyodide__pyodide-4806 | `pyodide build -h` should print help text
## 🐛 Bug
`pyodide build -h` treats `-h` as a package name rather than as a request for help text.
| [
{
"content": "import re\nimport shutil\nimport sys\nimport tempfile\nfrom pathlib import Path\nfrom typing import Optional, cast, get_args\nfrom urllib.parse import urlparse\n\nimport requests\nimport typer\nfrom build import ConfigSettingsType\n\nfrom ..build_env import check_emscripten_version, get_pyodide_ro... | [
{
"content": "import re\nimport shutil\nimport sys\nimport tempfile\nfrom pathlib import Path\nfrom typing import Optional, cast, get_args\nfrom urllib.parse import urlparse\n\nimport requests\nimport typer\nfrom build import ConfigSettingsType\n\nfrom ..build_env import check_emscripten_version, get_pyodide_ro... | diff --git a/pyodide-build/pyodide_build/cli/build.py b/pyodide-build/pyodide_build/cli/build.py
index d1eb2460e85..ba60467e0c4 100644
--- a/pyodide-build/pyodide_build/cli/build.py
+++ b/pyodide-build/pyodide_build/cli/build.py
@@ -282,5 +282,6 @@ def main(
"context_settings": {
"ignore_unknown_options":... |
xonsh__xonsh-4952 | When rebasing gitstatus raises "_GSField.updator() takes 2 positional arguments but 3 were given"
## xonfig
<details>
```
+------------------+-----------------+
| xonsh | 0.13.3 |
| Python | 3.10.7 |
| PLY | 3.11 |
| have readline | True ... | [
{
"content": "\"\"\"Informative git status prompt formatter.\n\nEach part of the status field is extendable and customizable.\n\nFollowing fields are available other than ``gitstatus``\n\n* gitstatus.ahead\n* gitstatus.behind\n* gitstatus.branch\n* gitstatus.changed\n* gitstatus.clean\n* gitstatus.conflicts\n* ... | [
{
"content": "\"\"\"Informative git status prompt formatter.\n\nEach part of the status field is extendable and customizable.\n\nFollowing fields are available other than ``gitstatus``\n\n* gitstatus.ahead\n* gitstatus.behind\n* gitstatus.branch\n* gitstatus.changed\n* gitstatus.clean\n* gitstatus.conflicts\n* ... | diff --git a/news/fix-gitstatus-rebase.rst b/news/fix-gitstatus-rebase.rst
new file mode 100644
index 0000000000..db86f09407
--- /dev/null
+++ b/news/fix-gitstatus-rebase.rst
@@ -0,0 +1,23 @@
+**Added:**
+
+* <news item>
+
+**Changed:**
+
+* <news item>
+
+**Deprecated:**
+
+* <news item>
+
+**Removed:**
+
+* <news ite... |
edgedb__edgedb-3085 | Consider implementing ++ operator for JSON
Possible behaviour:
```
db> SELECT to_json('[1,2]') ++ to_json('[3]') = to_json('[1,2,3]');
db> SELECT to_json('{"a": 1}') ++ to_json('{"b":2}') = to_json('{"a":1, "b":2}');
db> SELECT to_json('"123"') ++ to_json('"456"') = to_json('"123456"');
```
| [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2016-present MagicStack Inc. and the EdgeDB 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... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2016-present MagicStack Inc. and the EdgeDB 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... | diff --git a/docs/stdlib/json.rst b/docs/stdlib/json.rst
index fb076666118..a56611bb505 100644
--- a/docs/stdlib/json.rst
+++ b/docs/stdlib/json.rst
@@ -18,6 +18,9 @@ JSON
* - :eql:op:`json[from:to] <JSONSLICE>`
- :eql:op-desc:`JSONSLICE`
+ * - :eql:op:`json ++ json <JSONPLUS>`
+ - :eql:op-desc:`J... |
celery__celery-1769 | Sending SIGHUP leaks file handles
When sending SIGHUP to the Celery master process, it leaks all of its previously open file handles when calling exec. This is a regression introduced in 3.1 by 118b300fcad4e6ffb0178fc00cf9fe26075101a5 (originally fixed in 803655b79ccb0403f47cfcd2cfa5a6ed66301cbc for #1270).
This addi... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\n celery.apps.worker\n ~~~~~~~~~~~~~~~~~~\n\n This module is the 'program-version' of :mod:`celery.worker`.\n\n It does everything necessary to run that module\n as an actual application, like installing signal handlers,\n platform tweaks, and so o... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\n celery.apps.worker\n ~~~~~~~~~~~~~~~~~~\n\n This module is the 'program-version' of :mod:`celery.worker`.\n\n It does everything necessary to run that module\n as an actual application, like installing signal handlers,\n platform tweaks, and so o... | diff --git a/celery/apps/worker.py b/celery/apps/worker.py
index 61162769bbd..8b709c14ba5 100644
--- a/celery/apps/worker.py
+++ b/celery/apps/worker.py
@@ -315,6 +315,9 @@ def on_SIGINT(worker):
def _reload_current_worker():
+ platforms.close_open_fds([
+ sys.__stdin__, sys.__stdout__, sys.__stderr__,
+... |
pallets__click-1591 | click.echo() raises UnsupportedOperation on Windows when using pytest capsys
### Actual behavior
When using `click.echo()` in a test function that uses the pytest `capsys` fixture, it raises `UnsupportedOperation` on Windows. It runs fine on Linux and macOS.
Here is a complete test module `tests/unit/test_error_c... | [
{
"content": "# This module is based on the excellent work by Adam Bartoš who\n# provided a lot of what went into the implementation here in\n# the discussion to issue1602 in the Python bug tracker.\n#\n# There are some general differences in regards to how this works\n# compared to the original patches as we d... | [
{
"content": "# This module is based on the excellent work by Adam Bartoš who\n# provided a lot of what went into the implementation here in\n# the discussion to issue1602 in the Python bug tracker.\n#\n# There are some general differences in regards to how this works\n# compared to the original patches as we d... | diff --git a/CHANGES.rst b/CHANGES.rst
index bcfa72d0c..4842bd53a 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -22,6 +22,8 @@ Unreleased
:issue:`1525`
- An option defined with duplicate flag names (``"--foo/--foo"``)
raises a ``ValueError``. :issue:`1465`
+- ``echo()`` will not fail when using pytest's ... |
wagtail__wagtail-10051 | Wagtail 4.2 new incompatibility with dj-inmemorystorage
<!--
Found a bug? Please fill out the sections below. 👍
-->
### Issue Summary
I tried today to upgrade to Wagtail 4.2 and noticed that my image related tests
stopped working. I use [dj-inmemorystorage](https://github.com/waveaccounting/dj-inmemorystorage... | [
{
"content": "import hashlib\nimport logging\nimport os.path\nimport time\nfrom collections import OrderedDict\nfrom contextlib import contextmanager\nfrom io import BytesIO\nfrom typing import Union\n\nimport willow\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.core import checks... | [
{
"content": "import hashlib\nimport logging\nimport os.path\nimport time\nfrom collections import OrderedDict\nfrom contextlib import contextmanager\nfrom io import BytesIO\nfrom typing import Union\n\nimport willow\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.core import checks... | diff --git a/wagtail/images/models.py b/wagtail/images/models.py
index 90c1cdee9b2e..968a2b058458 100644
--- a/wagtail/images/models.py
+++ b/wagtail/images/models.py
@@ -214,6 +214,8 @@ def get_image_dimensions(self):
finally:
if close:
self.close()
+ else:
+ ... |
aio-libs__aiohttp-5853 | unexpected asyncio.exceptions.CancelledError
### Describe the bug
Sometimes after raising `asyncio.exceptions.TimeoutError` next awaits of coroutines causes `asyncio.exceptions.CancelledError`
### To Reproduce
Emulate server with random timeouts
```python
import asyncio
import datetime
import random
fro... | [
{
"content": "\"\"\"Various helper functions\"\"\"\n\nimport asyncio\nimport base64\nimport binascii\nimport cgi\nimport dataclasses\nimport datetime\nimport functools\nimport netrc\nimport os\nimport platform\nimport re\nimport sys\nimport time\nimport warnings\nimport weakref\nfrom collections import namedtup... | [
{
"content": "\"\"\"Various helper functions\"\"\"\n\nimport asyncio\nimport base64\nimport binascii\nimport cgi\nimport dataclasses\nimport datetime\nimport functools\nimport netrc\nimport os\nimport platform\nimport re\nimport sys\nimport time\nimport warnings\nimport weakref\nfrom collections import namedtup... | diff --git a/CHANGES/5853.bugfix b/CHANGES/5853.bugfix
new file mode 100644
index 00000000000..3b3b03a374f
--- /dev/null
+++ b/CHANGES/5853.bugfix
@@ -0,0 +1 @@
+Don't cancel current task when entering a cancelled timer.
diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py
index 948b12f99d8..c60397931fb 100644
--- a/ai... |
Gallopsled__pwntools-532 | Bpython
Hi,
Unfortunately pwntools doesn't seem to work with bpython 0.12 in conjunction of python 2.7.9.
from pwn import *
results in:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/pwn/**init**.py", line 2, in <module>
from .toplevel imp... | [
{
"content": "__all__ = ['get']\nimport os, curses\n\ncache = None\ndef get(cap, *args, **kwargs):\n default = kwargs.pop('default', '')\n\n if 'PWNLIB_NOTERM' in os.environ:\n return ''\n\n if kwargs != {}:\n raise TypeError(\"get(): No such argument %r\" % kwargs.popitem()[0])\n\n if... | [
{
"content": "__all__ = ['get']\nimport os, curses\n\ncache = None\ndef get(cap, *args, **kwargs):\n default = kwargs.pop('default', '')\n\n if 'PWNLIB_NOTERM' in os.environ:\n return ''\n\n if kwargs != {}:\n raise TypeError(\"get(): No such argument %r\" % kwargs.popitem()[0])\n\n if... | diff --git a/pwnlib/term/termcap.py b/pwnlib/term/termcap.py
index ab7eee086..95a8d10eb 100644
--- a/pwnlib/term/termcap.py
+++ b/pwnlib/term/termcap.py
@@ -36,6 +36,10 @@ def init():
global cache
if 'PWNLIB_NOTERM' not in os.environ:
- curses.setupterm()
+ # Fix for BPython
+ try:
+ ... |
mabel-dev__opteryx-1412 | 🪲 ARM test fails
~~~
ValueError: 'orso/bitarray/cbitarray.pyx' doesn't match any files
~~~
https://github.com/mabel-dev/opteryx/actions/runs/7535073365/job/20510453555
| [
{
"content": "__build__ = 244\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 applicable law or agre... | [
{
"content": "__build__ = 248\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 applicable law or agre... | diff --git a/.github/workflows/regression_suite_arm.yaml b/.github/workflows/regression_suite_arm.yaml
index acd93bf3a..8476b7262 100644
--- a/.github/workflows/regression_suite_arm.yaml
+++ b/.github/workflows/regression_suite_arm.yaml
@@ -8,7 +8,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
- ... |
opsdroid__opsdroid-943 | Make web server default to all networks
Currently the opsdroid web server is only served on `127.0.0.1` by default. In order to make opsdroid accessible via other networks you much set the `web.host` config option to something else (usually `0.0.0.0`).
This can be misleading for new users and is also causing problem... | [
{
"content": "\"\"\"Submodule to handle web requests in opsdroid.\"\"\"\n\nimport json\nimport logging\nimport ssl\n\nfrom aiohttp import web\n\nfrom opsdroid import __version__\n\n\n_LOGGER = logging.getLogger(__name__)\n\n\nclass Web:\n \"\"\"Create class for opsdroid Web server.\"\"\"\n\n def __init__(... | [
{
"content": "\"\"\"Submodule to handle web requests in opsdroid.\"\"\"\n\nimport json\nimport logging\nimport ssl\n\nfrom aiohttp import web\n\nfrom opsdroid import __version__\n\n\n_LOGGER = logging.getLogger(__name__)\n\n\nclass Web:\n \"\"\"Create class for opsdroid Web server.\"\"\"\n\n def __init__(... | diff --git a/docs/configuration-reference.md b/docs/configuration-reference.md
index 2aad41ea7..e631c16af 100644
--- a/docs/configuration-reference.md
+++ b/docs/configuration-reference.md
@@ -282,11 +282,11 @@ lang: <ISO 639-1 code - example: 'en'>
Configure the REST API in opsdroid.
-By default, opsdroid will s... |
pypi__warehouse-5814 | Sorting searches by 'Date last updated' results in 503
**Describe the bug**
When trying to search for anything on pypi.org, sorting by relevance or trending works fine, but sorting by date last updated returns a 503 error.
**Expected behavior**
Search results, sorted by date.
**To Reproduce**
Example URL... | [
{
"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/requirements/main.txt b/requirements/main.txt
index c53e34672968..ea5e4e6f1cdc 100644
--- a/requirements/main.txt
+++ b/requirements/main.txt
@@ -179,9 +179,9 @@ docutils==0.14 \
--hash=sha256:02aec4bd92ab067f6ff27a38a38a41173bf01bed8f89157768c1573f53e474a6 \
--hash=sha256:51e64ef2ebfb29cae1faa13... |
pex-tool__pex-880 | Release 2.1.1
On the docket:
+ [x] PEX 2.1.0 regression: pex file won't build inside a running docker image as user #850
+ [x] Fully pin vendored requirements. #853
+ [x] Fix `tox -epackage` to create pex supporting 3.8. #843
+ [x] Pex erroneously warns about needing to use vendored `pkg_resources` for distribution... | [
{
"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.0'\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.1'\n",
"path": "pex/version.py"
}
] | diff --git a/CHANGES.rst b/CHANGES.rst
index 330d89a06..3924e1fd0 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,6 +1,73 @@
Release Notes
=============
+2.1.1
+-----
+
+This release significantly improves performance and correctness of
+interpreter discovery, particularly when pyenv is involved.
+It also provides... |
pex-tool__pex-884 | Release 2.1.2
On the docket:
+ [x] Isolating a pex chroot doesn't work from a zipped pex #882
| [
{
"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.1'\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.2'\n",
"path": "pex/version.py"
}
] | diff --git a/CHANGES.rst b/CHANGES.rst
index 3924e1fd0..ea14e891f 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,6 +1,15 @@
Release Notes
=============
+2.1.2
+-----
+
+This release fixes a bug in which interpreter discovery failed
+when running from a zipped pex.
+
+* Use pkg_resources when isolating a pex code ... |
scikit-image__scikit-image-353 | Please add info how to run the skimage unit tests at the end of the installation instructions
I couldn't find instructions how to run the skimage unit tests.
First I tried
```
python -c 'import skimage; skimage.test()
```
which ran 287 tests and gave 16 errors, all the same:
```
ImportError: cannot import name Byte... | [
{
"content": "\"\"\"Image Processing SciKit (Toolbox for SciPy)\n\n``scikits-image`` (a.k.a. ``skimage``) is a collection of algorithms for image\nprocessing and computer vision.\n\nThe main package of ``skimage`` only provides a few utilities for converting\nbetween image data types; for most features, you nee... | [
{
"content": "\"\"\"Image Processing SciKit (Toolbox for SciPy)\n\n``scikits-image`` (a.k.a. ``skimage``) is a collection of algorithms for image\nprocessing and computer vision.\n\nThe main package of ``skimage`` only provides a few utilities for converting\nbetween image data types; for most features, you nee... | diff --git a/skimage/__init__.py b/skimage/__init__.py
index c8935cb6013..cf62ee87415 100644
--- a/skimage/__init__.py
+++ b/skimage/__init__.py
@@ -65,7 +65,7 @@
def _setup_test(verbose=False):
import functools
- args = ['', '--exe', '-w', pkg_dir]
+ args = ['', pkg_dir, '--exe']
if verbose:
... |
pex-tool__pex-753 | Release 1.6.9
On the docket:
+ [x] Fix pkg resource early import #750
+ [x] Fix `sys.path` scrubbing of pex extras modules. #752
Maybe on the docket:
+ [ ] Problem running PEX files with restricted permissions #746
| [
{
"content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n__version__ = '1.6.8'\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__ = '1.6.9'\n",
"path": "pex/version.py"
}
] | diff --git a/CHANGES.rst b/CHANGES.rst
index a32083e64..9ace464d7 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,6 +1,15 @@
Release Notes
=============
+1.6.9
+-----
+
+* Fix `sys.path` scrubbing of pex extras modules. (#752)
+ `PR #752 <https://github.com/pantsbuild/pex/pull/752>`_
+
+* Fix pkg resource early i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.