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 ⌀ |
|---|---|---|---|---|
carpentries__amy-696 | Can't assign person to something when lookup fails
This is direct cause for this error:
```
Internal Server Error: /workshops/request/65/assign
Traceback (most recent call last):
File "/home/amy/amy_site/venv/lib/python3.4/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_... | [
{
"content": "# coding: utf-8\nfrom collections import namedtuple, defaultdict\nimport csv\nimport datetime\nfrom itertools import chain\nimport re\nimport yaml\n\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.core.paginator import (\n EmptyPage, PageNotAnInteger, Paginator as DjangoPagi... | [
{
"content": "# coding: utf-8\nfrom collections import namedtuple, defaultdict\nimport csv\nimport datetime\nfrom itertools import chain\nimport re\nimport yaml\n\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.core.paginator import (\n EmptyPage, PageNotAnInteger, Paginator as DjangoPagi... | diff --git a/workshops/test/test_util.py b/workshops/test/test_util.py
index d4e33f889..ad4d06371 100644
--- a/workshops/test/test_util.py
+++ b/workshops/test/test_util.py
@@ -5,8 +5,9 @@
from django.contrib.auth.models import Group
from django.contrib.sessions.serializers import JSONSerializer
-from django.test i... |
mozilla__telemetry-analysis-service-474 | Create view with jobs histories
There have been several jobs failing silently. Those jobs will soon generate alerts (#201) but it would still be convenient to have a master view in the dashboard that shows the history, and their status, of all scheduled jobs. Furthermore, every user should be able to see the history ... | [
{
"content": "# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this\n# file, you can obtain one at http://mozilla.org/MPL/2.0/.\nfrom datetime import timedelta\n\nimport urlman\nfrom autorepr import autorepr, autostr\nfrom dj... | [
{
"content": "# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this\n# file, you can obtain one at http://mozilla.org/MPL/2.0/.\nfrom datetime import timedelta\n\nimport urlman\nfrom autorepr import autorepr, autostr\nfrom dj... | diff --git a/atmo/jobs/models.py b/atmo/jobs/models.py
index 126aca0a..fb638199 100644
--- a/atmo/jobs/models.py
+++ b/atmo/jobs/models.py
@@ -345,6 +345,7 @@ class SparkJobRun(EditedAtModel):
class Meta:
get_latest_by = 'created_at'
+ ordering = ['-created_at']
__str__ = autostr('{self.jo... |
sanic-org__sanic-878 | 0.5.5 release request
Because 0.5.4 has actual protocol parsing problem (#755) I request to quickly release 0.5.5.
It causes actual request loss and unhandlable 400 errors for the sanic users. (unless they make local patch for sanic)
| [
{
"content": "from sanic.app import Sanic\nfrom sanic.blueprints import Blueprint\n\n__version__ = '0.5.4'\n\n__all__ = ['Sanic', 'Blueprint']\n",
"path": "sanic/__init__.py"
}
] | [
{
"content": "from sanic.app import Sanic\nfrom sanic.blueprints import Blueprint\n\n__version__ = '0.6.0'\n\n__all__ = ['Sanic', 'Blueprint']\n",
"path": "sanic/__init__.py"
}
] | diff --git a/sanic/__init__.py b/sanic/__init__.py
index 4cc0710ff7..8f35a28367 100644
--- a/sanic/__init__.py
+++ b/sanic/__init__.py
@@ -1,6 +1,6 @@
from sanic.app import Sanic
from sanic.blueprints import Blueprint
-__version__ = '0.5.4'
+__version__ = '0.6.0'
__all__ = ['Sanic', 'Blueprint']
|
pypa__setuptools-4184 | [BUG] "'extras_require' must be a dictionary..." regression
### setuptools version
setuptools==67.0.0
### Python version
Python 3.10
### OS
Linux / Ubuntu
### Additional environment information
_No response_
### Description
With latest setuptools I am unable to use a package (btchip-python) as input to pip-com... | [
{
"content": "\"\"\"Translation layer between pyproject config and setuptools distribution and\nmetadata objects.\n\nThe distribution and metadata objects are modeled after (an old version of)\ncore metadata, therefore configs in the format specified for ``pyproject.toml``\nneed to be processed before being app... | [
{
"content": "\"\"\"Translation layer between pyproject config and setuptools distribution and\nmetadata objects.\n\nThe distribution and metadata objects are modeled after (an old version of)\ncore metadata, therefore configs in the format specified for ``pyproject.toml``\nneed to be processed before being app... | diff --git a/setuptools/config/_apply_pyprojecttoml.py b/setuptools/config/_apply_pyprojecttoml.py
index b562f91759..4aec5f1377 100644
--- a/setuptools/config/_apply_pyprojecttoml.py
+++ b/setuptools/config/_apply_pyprojecttoml.py
@@ -409,7 +409,7 @@ def _acessor(obj):
"scripts": {},
"gui-scripts": {},
"... |
sanic-org__sanic-1045 | 0.6.1 release to PyPi
Hey folks,
There's been a bunch of substantive changes in the past few months; I think it warrants a release of 0.6.1 (or 0.7, considering there may be large changes in PRs like #939). Any chance we could get a new candidate uploaded to PyPi?
If there's a better place to ask this, I'm happy... | [
{
"content": "from sanic.app import Sanic\nfrom sanic.blueprints import Blueprint\n\n__version__ = '0.6.0'\n\n__all__ = ['Sanic', 'Blueprint']\n",
"path": "sanic/__init__.py"
}
] | [
{
"content": "from sanic.app import Sanic\nfrom sanic.blueprints import Blueprint\n\n__version__ = '0.7.0'\n\n__all__ = ['Sanic', 'Blueprint']\n",
"path": "sanic/__init__.py"
}
] | diff --git a/sanic/__init__.py b/sanic/__init__.py
index 8f35a28367..78bc7bd9f5 100644
--- a/sanic/__init__.py
+++ b/sanic/__init__.py
@@ -1,6 +1,6 @@
from sanic.app import Sanic
from sanic.blueprints import Blueprint
-__version__ = '0.6.0'
+__version__ = '0.7.0'
__all__ = ['Sanic', 'Blueprint']
|
biopython__biopython-3366 | `Bio.Phylo.write` in format `nexus` does not export comments.
### Setup
I am reporting a problem with Biopython version 1.77, Python version 3.7, and operating
system Ubuntu 16.04 as follows:
```python
from io import StringIO
from Bio import Phylo
t = Phylo.read(StringIO("((A,B),C);"), 'newick')
for ni,... | [
{
"content": "# Copyright (C) 2009 by Eric Talevich (eric.talevich@gmail.com)\n# Based on Bio.Nexus, copyright 2005-2008 by Frank Kauff & Cymon J. Cox.\n# All rights reserved.\n#\n# This file is part of the Biopython distribution and governed by your\n# choice of the \"Biopython License Agreement\" or the \"BSD... | [
{
"content": "# Copyright (C) 2009 by Eric Talevich (eric.talevich@gmail.com)\n# Based on Bio.Nexus, copyright 2005-2008 by Frank Kauff & Cymon J. Cox.\n# All rights reserved.\n#\n# This file is part of the Biopython distribution and governed by your\n# choice of the \"Biopython License Agreement\" or the \"BSD... | diff --git a/Bio/Phylo/NewickIO.py b/Bio/Phylo/NewickIO.py
index 99b77816756..b9af509cc29 100644
--- a/Bio/Phylo/NewickIO.py
+++ b/Bio/Phylo/NewickIO.py
@@ -84,7 +84,7 @@ def _format_comment(text):
def _get_comment(clade):
try:
- comment = clade.coment
+ comment = clade.comment
except Attribu... |
sanic-org__sanic-1292 | New release on Pypi ?
Hello,
I was looking for a tool to autoreload my code when I develop and I found this commit : https://github.com/channelcat/sanic/commit/52c2a8484e6aa5fa13aaade49e1f2597dd006e15
So it seems Sanic already integrates it since December 07, 2017. But the the latest version on Pypi dates from th... | [
{
"content": "from sanic.app import Sanic\nfrom sanic.blueprints import Blueprint\n\n__version__ = '0.7.0'\n\n__all__ = ['Sanic', 'Blueprint']\n",
"path": "sanic/__init__.py"
}
] | [
{
"content": "from sanic.app import Sanic\nfrom sanic.blueprints import Blueprint\n\n__version__ = '0.8.0'\n\n__all__ = ['Sanic', 'Blueprint']\n",
"path": "sanic/__init__.py"
}
] | diff --git a/sanic/__init__.py b/sanic/__init__.py
index 78bc7bd9f5..5e6ff4daff 100644
--- a/sanic/__init__.py
+++ b/sanic/__init__.py
@@ -1,6 +1,6 @@
from sanic.app import Sanic
from sanic.blueprints import Blueprint
-__version__ = '0.7.0'
+__version__ = '0.8.0'
__all__ = ['Sanic', 'Blueprint']
|
biolab__orange3-2988 | cannot install add-ons from the menu
<!--
This is an issue template. Please fill in the relevant details in the
sections below.
Wrap code and verbatim terminal window output into triple backticks, see:
https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code
If you're raising an issue... | [
{
"content": "import sys\nimport sysconfig\nimport os\nimport logging\nimport re\nimport errno\nimport shlex\nimport subprocess\nimport itertools\nimport concurrent.futures\n\nfrom collections import namedtuple, deque\nfrom xml.sax.saxutils import escape\nfrom distutils import version\nimport urllib.request\nim... | [
{
"content": "import sys\nimport sysconfig\nimport os\nimport logging\nimport re\nimport errno\nimport shlex\nimport subprocess\nimport itertools\nimport concurrent.futures\n\nfrom collections import namedtuple, deque\nfrom xml.sax.saxutils import escape\nfrom distutils import version\nimport urllib.request\nim... | diff --git a/Orange/canvas/application/addons.py b/Orange/canvas/application/addons.py
index 63dcb9e1ee7..41af8d096e0 100644
--- a/Orange/canvas/application/addons.py
+++ b/Orange/canvas/application/addons.py
@@ -756,7 +756,7 @@ def have_install_permissions():
pass
os.remove(fn)
return Tr... |
vega__altair-3387 | minimum pyarrow version enforced even if pandas is installed
The error we are facing in an environment says:
```python
RuntimeError: The pyarrow package must be version 11.0.0 or greater. Found version 6.0.1
```
And is caused by these lines:
https://github.com/altair-viz/altair/blob/main/altair/utils/core.py#L59... | [
{
"content": "from types import ModuleType\nfrom packaging.version import Version\nfrom importlib.metadata import version as importlib_version\n\n\ndef import_vegafusion() -> ModuleType:\n min_version = \"1.5.0\"\n try:\n version = importlib_version(\"vegafusion\")\n embed_version = importli... | [
{
"content": "from types import ModuleType\nfrom packaging.version import Version\nfrom importlib.metadata import version as importlib_version\n\n\ndef import_vegafusion() -> ModuleType:\n min_version = \"1.5.0\"\n try:\n version = importlib_version(\"vegafusion\")\n embed_version = importli... | diff --git a/altair/utils/_importers.py b/altair/utils/_importers.py
index 718fa9129..b7fa8a958 100644
--- a/altair/utils/_importers.py
+++ b/altair/utils/_importers.py
@@ -93,5 +93,5 @@ def pyarrow_available() -> bool:
try:
import_pyarrow_interchange()
return True
- except ImportError:
+ e... |
opendatacube__datacube-core-1331 | Code includes Type Annotations, but they're not made available for type checking (PEP561)
**Summary**
The ODC code is fairly well annotated with [Python type hints](https://typing.readthedocs.io/en/latest/), but these type hints aren't made availble for use in downstream packages by following [PEP 561 – Distributin... | [
{
"content": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\ntests_require = [\n 'hypothesis',\n 'pycodestyle',\n 'pylint',\n 'pytest',\n 'pytest-cov',\n 'pytest-timeout',\n 'pytest-httpserver',\n 'moto',\n]\ndoc_require = [\n 'Sphinx',\n 'sphinx_rtd_theme'... | [
{
"content": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\ntests_require = [\n 'hypothesis',\n 'pycodestyle',\n 'pylint',\n 'pytest',\n 'pytest-cov',\n 'pytest-timeout',\n 'pytest-httpserver',\n 'moto',\n]\ndoc_require = [\n 'Sphinx',\n 'sphinx_rtd_theme'... | diff --git a/datacube/py.typed b/datacube/py.typed
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/docs/about/whats_new.rst b/docs/about/whats_new.rst
index ff1cab2c0d..1be5b7418a 100644
--- a/docs/about/whats_new.rst
+++ b/docs/about/whats_new.rst
@@ -12,6 +12,9 @@ v1.8.next
- Extend `patch_url` argume... |
scikit-image__scikit-image-938 | Draw circle does not obey shape argument - v0.93
In previous version worked fine, but I just installed new version 0.93 and draw.circle is not working properly. When I apply the circle for image 1024x1024 with following arguments:
rr,cc=circle(-5.2796287128712879E+02, 1.5003712871287132E+02, 9.8910961199417170E+02, (10... | [
{
"content": "# coding: utf-8\nimport numpy as np\n\n\ndef _coords_inside_image(rr, cc, shape):\n mask = (rr >= 0) & (rr < shape[0]) & (cc >= 0) & (cc < shape[1])\n return rr[mask], cc[mask]\n\n\ndef ellipse(cy, cx, yradius, xradius, shape=None):\n \"\"\"Generate coordinates of pixels within ellipse.\n... | [
{
"content": "# coding: utf-8\nimport numpy as np\n\n\ndef _coords_inside_image(rr, cc, shape):\n mask = (rr >= 0) & (rr < shape[0]) & (cc >= 0) & (cc < shape[1])\n return rr[mask], cc[mask]\n\n\ndef ellipse(cy, cx, yradius, xradius, shape=None):\n \"\"\"Generate coordinates of pixels within ellipse.\n... | diff --git a/skimage/draw/draw.py b/skimage/draw/draw.py
index cbf3ced2426..e61df40c329 100644
--- a/skimage/draw/draw.py
+++ b/skimage/draw/draw.py
@@ -60,7 +60,7 @@ def ellipse(cy, cx, yradius, xradius, shape=None):
cc += cx - xradius
if shape is not None:
- _coords_inside_image(rr, cc, shape)
+ ... |
voxel51__fiftyone-1652 | [BUG] `ImportError: cannot import name 'soft_unicode' from 'markupsafe'`
When `Jinja2<3` is installed a user will encounter this error.
```py
>>> import fiftyone as fo
Uncaught exception
Traceback (most recent call last):
File "/home/user/.local/lib/python3.8/site-packages/fiftyone/service/main.py", line 43, i... | [
{
"content": "#!/usr/bin/env python\n\"\"\"\nInstalls FiftyOne.\n\n| Copyright 2017-2022, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport os\nfrom pkg_resources import DistributionNotFound, get_distribution\nimport re\nfrom setuptools import setup, find_packages\n\n\nVERSION = \"0.15.0... | [
{
"content": "#!/usr/bin/env python\n\"\"\"\nInstalls FiftyOne.\n\n| Copyright 2017-2022, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport os\nfrom pkg_resources import DistributionNotFound, get_distribution\nimport re\nfrom setuptools import setup, find_packages\n\n\nVERSION = \"0.15.0... | diff --git a/requirements/common.txt b/requirements/common.txt
index b21b0cc4e47..596d5b1b5ec 100644
--- a/requirements/common.txt
+++ b/requirements/common.txt
@@ -5,7 +5,7 @@ Deprecated==1.2.11
eventlet==0.31.0
Flask==1.1.2
httpx==0.7.7
-Jinja2==2.11.3
+Jinja2==3.0.3
kaleido==0.2.1
matplotlib==3.2.1
mongoengine... |
aio-libs__aiohttp-1888 | In unit tests, Application comparisons can report false positive
Comparison between Application is performed at the MutableMapping level. MutableMapping says that, like dict objects, if all keys and matching values are the same 2 instances, then they are equals. This means that `web.Application() == web.Application()` ... | [
{
"content": "import asyncio\nimport os\nimport socket\nimport stat\nimport sys\nimport warnings\nfrom argparse import ArgumentParser\nfrom collections import Iterable, MutableMapping\nfrom importlib import import_module\n\nfrom yarl import URL\n\nfrom . import (hdrs, web_exceptions, web_fileresponse, web_middl... | [
{
"content": "import asyncio\nimport os\nimport socket\nimport stat\nimport sys\nimport warnings\nfrom argparse import ArgumentParser\nfrom collections import Iterable, MutableMapping\nfrom importlib import import_module\n\nfrom yarl import URL\n\nfrom . import (hdrs, web_exceptions, web_fileresponse, web_middl... | diff --git a/CHANGES.rst b/CHANGES.rst
index 9330a3c7287..9f89a9ee3eb 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -43,6 +43,8 @@ Changes
- Fix sub-application middlewares resolution order #1853
+- Fix applications comparison #1866
+
2.0.7 (2017-04-12)
------------------
diff --git a/aiohttp/web.py b/aiohttp/... |
Mailu__Mailu-2049 | Fetchmail: /var/lib/fetchmail needs persistence
According [fetchmail documentation](https://www.fetchmail.info/fetchmail-man.html#12), an `.idfile` is used to keep track of previously downloaded messages. Shouldn't that file persistent over container restarts?
I'm not a Fetchmail user, perhaps somebody can shine a l... | [
{
"content": "#!/usr/bin/python3\n\nimport time\nimport os\nimport tempfile\nimport shlex\nimport subprocess\nimport re\nimport requests\nimport sys\nimport traceback\n\n\nFETCHMAIL = \"\"\"\nfetchmail -N \\\n --sslcertck --sslcertpath /etc/ssl/certs \\\n -f {}\n\"\"\"\n\n\nRC_LINE = \"\"\"\npoll \"{host}... | [
{
"content": "#!/usr/bin/python3\n\nimport time\nimport os\nimport tempfile\nimport shlex\nimport subprocess\nimport re\nimport requests\nimport sys\nimport traceback\n\n\nFETCHMAIL = \"\"\"\nfetchmail -N \\\n --idfile /data/fetchids --uidl \\\n --sslcertck --sslcertpath /etc/ssl/certs \\\n -f {}\n\"\"... | diff --git a/optional/fetchmail/Dockerfile b/optional/fetchmail/Dockerfile
index 995ec48f9..068a5dcec 100644
--- a/optional/fetchmail/Dockerfile
+++ b/optional/fetchmail/Dockerfile
@@ -12,8 +12,8 @@ RUN apk add --no-cache \
RUN apk add --no-cache fetchmail ca-certificates openssl \
&& pip3 install requests
-COPY f... |
rotki__rotki-1873 | SOL token is Solana, not Sola
## Problem Definition
The SOL token on the exchanges is reported with the correct value but the wrong name. Its Solana, not Sola.
| [
{
"content": "from dataclasses import dataclass, field\nfrom functools import total_ordering\nfrom typing import Any, Optional, Type, TypeVar\n\nfrom rotkehlchen.assets.resolver import AssetResolver\nfrom rotkehlchen.errors import DeserializationError, UnknownAsset, UnsupportedAsset\nfrom rotkehlchen.typing imp... | [
{
"content": "from dataclasses import dataclass, field\nfrom functools import total_ordering\nfrom typing import Any, Optional, Type, TypeVar\n\nfrom rotkehlchen.assets.resolver import AssetResolver\nfrom rotkehlchen.errors import DeserializationError, UnknownAsset, UnsupportedAsset\nfrom rotkehlchen.typing imp... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 1b3713bb6a..0542817bbb 100755
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -2,6 +2,7 @@
Changelog
=========
+* :bug:`1868` Binance SOL token is now properly mapped to Solana.
* :bug:`1849` Binance queries should no longer randomly fail with invalid... |
ivy-llc__ivy-14488 | conj
| [
{
"content": "# global\nfrom typing import Any\nimport itertools\nimport string\nfrom builtins import slice as py_slice\n\n# local\nimport ivy\nfrom ivy.functional.frontends.jax.func_wrapper import to_ivy_arrays_and_back\n\n\n@to_ivy_arrays_and_back\ndef abs(x):\n return ivy.abs(x)\n\n\n@to_ivy_arrays_and_ba... | [
{
"content": "# global\nfrom typing import Any\nimport itertools\nimport string\nfrom builtins import slice as py_slice\n\n# local\nimport ivy\nfrom ivy.functional.frontends.jax.func_wrapper import to_ivy_arrays_and_back\n\n\n@to_ivy_arrays_and_back\ndef abs(x):\n return ivy.abs(x)\n\n\n@to_ivy_arrays_and_ba... | diff --git a/ivy/functional/frontends/jax/lax/operators.py b/ivy/functional/frontends/jax/lax/operators.py
index 0acc4a4ddaf2b..3709196dcbf10 100644
--- a/ivy/functional/frontends/jax/lax/operators.py
+++ b/ivy/functional/frontends/jax/lax/operators.py
@@ -620,3 +620,8 @@ def real(x):
@to_ivy_arrays_and_back
def next... |
iterative__dvc-2282 | test: s3: use moto to test multipart objects
Currently, we are unable to use it because of [this bug](https://github.com/spulec/moto/issues/2154). When it is fixed, we should switch to it from using actual s3 for unit testing. Related to https://github.com/iterative/dvc/pull/1867
| [
{
"content": "from setuptools import setup, find_packages\nfrom setuptools.command.build_py import build_py as _build_py\nimport os\nimport sys\n\n\n# https://packaging.python.org/guides/single-sourcing-package-version/\npkg_dir = os.path.dirname(__file__)\n\n# This will define __version__ implicitly\nwith open... | [
{
"content": "from setuptools import setup, find_packages\nfrom setuptools.command.build_py import build_py as _build_py\nimport os\nimport sys\n\n\n# https://packaging.python.org/guides/single-sourcing-package-version/\npkg_dir = os.path.dirname(__file__)\n\n# This will define __version__ implicitly\nwith open... | diff --git a/scripts/ci/install.sh b/scripts/ci/install.sh
index 40a73a133d..dd69f6caee 100644
--- a/scripts/ci/install.sh
+++ b/scripts/ci/install.sh
@@ -17,6 +17,10 @@ function retry {
retry pip install --upgrade pip setuptools wheel
retry pip install .[all,tests]
+# NOTE: waiting for https://github.com/spulec/mo... |
xonsh__xonsh-4511 | "Little Bobby Colors": $PROMPT evaluates {colors} *after* substitution from external input
## xonfig
<details>
```
+------------------+----------------------+
| xonsh | 0.9.27 |
| Git SHA | 71fe9014 |
| Commit Date | Jan 29 08:58:58 2021 |
| Python ... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"CWD related prompt formatter\"\"\"\n\nimport os\nimport shutil\n\nimport xonsh.tools as xt\nimport xonsh.platform as xp\nfrom xonsh.built_ins import XSH\n\n\ndef _replace_home(x):\n if xp.ON_WINDOWS:\n home = XSH.env[\"HOMEDRIVE\"] + XSH.env[\"HOMEPATH\"][0... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"CWD related prompt formatter\"\"\"\n\nimport os\nimport shutil\n\nimport xonsh.tools as xt\nimport xonsh.platform as xp\nfrom xonsh.built_ins import XSH\n\n\ndef _replace_home(x):\n if xp.ON_WINDOWS:\n home = XSH.env[\"HOMEDRIVE\"] + XSH.env[\"HOMEPATH\"][0... | diff --git a/news/pwd-curly-escape.rst b/news/pwd-curly-escape.rst
new file mode 100644
index 0000000000..4a069b1eba
--- /dev/null
+++ b/news/pwd-curly-escape.rst
@@ -0,0 +1,23 @@
+**Added:**
+
+* <news item>
+
+**Changed:**
+
+* Curly braces { } in directory names are now escaped in the prompt
+
+**Deprecated:**
+
+* ... |
doccano__doccano-1842 | Doccano is not importing any text data
Hello,
Doccano is not importing any text data. When importing the text data the following browser loading is going on:

The command line terminal is showing the fo... | [
{
"content": "import argparse\nimport multiprocessing\nimport os\nimport platform\nimport sys\nfrom pathlib import Path\n\nimport django\nfrom django.core import management\nfrom environs import Env\n\nfrom .config.celery import app\n\nenv = Env()\nDOCCANO_HOME = os.path.expanduser(os.environ.get(\"DOCCANO_HOME... | [
{
"content": "import argparse\nimport multiprocessing\nimport os\nimport platform\nimport sys\nfrom pathlib import Path\n\nimport django\nfrom django.core import management\nfrom environs import Env\n\nfrom .config.celery import app\n\nenv = Env()\nDOCCANO_HOME = os.path.expanduser(os.environ.get(\"DOCCANO_HOME... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9872731980..04a7192419 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -9,35 +9,35 @@ jobs:
run:
working-directory: ./backend
steps:
- - uses: actions/checkout@v2
- - name: Set up Python 3.8
- ... |
typeddjango__django-stubs-939 | Support mypy 0.950
mypy 0.950 was released a short while ago (https://github.com/python/mypy/releases/tag/v0.950).
`django-stubs` currently enforces a version less than 0.950 (https://github.com/typeddjango/django-stubs/blob/master/setup.py#L23), please enable support for 0.950.
| [
{
"content": "import os\nfrom typing import List\n\nfrom setuptools import find_packages, setup\n\n\ndef find_stub_files(name: str) -> List[str]:\n result = []\n for root, _dirs, files in os.walk(name):\n for file in files:\n if file.endswith(\".pyi\"):\n if os.path.sep in... | [
{
"content": "import os\nfrom typing import List\n\nfrom setuptools import find_packages, setup\n\n\ndef find_stub_files(name: str) -> List[str]:\n result = []\n for root, _dirs, files in os.walk(name):\n for file in files:\n if file.endswith(\".pyi\"):\n if os.path.sep in... | diff --git a/requirements.txt b/requirements.txt
index a96bbd456..ab2789184 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -10,4 +10,4 @@ psycopg2-binary
-e .
# Overrides:
-mypy==0.942
+mypy==0.950
diff --git a/setup.py b/setup.py
index c4987d135..18098e28c 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20... |
scikit-hep__pyhf-1041 | Class returned by pyhf.Workspace.combine
# Question
Not a bug so I'm opening this as a question: The `pyhf.Workspace.combine` classmethod returns a `Workspace` explicitly instead of `cls`.
https://github.com/scikit-hep/pyhf/blob/e260626689f46414be185d834499cc65dce5a4b0/src/pyhf/workspace.py#L678
To work better... | [
{
"content": "\"\"\"\npyhf workspaces hold the three data items:\n\n* the statistical model p(data|parameters)\n* the observed data (optional)\n* fit configurations (\"measurements\")\n\"\"\"\nimport logging\nimport jsonpatch\nimport copy\nimport collections\nfrom . import exceptions\nfrom . import utils\nfrom ... | [
{
"content": "\"\"\"\npyhf workspaces hold the three data items:\n\n* the statistical model p(data|parameters)\n* the observed data (optional)\n* fit configurations (\"measurements\")\n\"\"\"\nimport logging\nimport jsonpatch\nimport copy\nimport collections\nfrom . import exceptions\nfrom . import utils\nfrom ... | diff --git a/src/pyhf/workspace.py b/src/pyhf/workspace.py
index d2515bb3bb..6534bed5b0 100644
--- a/src/pyhf/workspace.py
+++ b/src/pyhf/workspace.py
@@ -675,4 +675,4 @@ def combine(cls, left, right, join='none'):
'observations': new_observations,
'version': new_version,
}
- r... |
mkdocs__mkdocs-836 | Error when using a unicode filename on Windows
I am not totally sure this is the right place, but you will tell me :)
In a mkdocs-material-project I wanted to use diacritics in the filename, like this:
```
/Kapitel
1. Einstieg
2. Übersicht
3. Etcetera
```
And such an **"Ü"** seems to break everything:
```
C... | [
{
"content": "# coding: utf-8\n\n\"\"\"\nStandalone file utils.\n\nNothing in this module should have an knowledge of config or the layout\nand structure of the site and pages in the site.\n\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\nimport markdown\nimport os\nimport pkg_resources\nimp... | [
{
"content": "# coding: utf-8\n\n\"\"\"\nStandalone file utils.\n\nNothing in this module should have an knowledge of config or the layout\nand structure of the site and pages in the site.\n\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\nimport markdown\nimport os\nimport pkg_resources\nimp... | diff --git a/docs/about/release-notes.md b/docs/about/release-notes.md
index fae106a539..28681bfc87 100644
--- a/docs/about/release-notes.md
+++ b/docs/about/release-notes.md
@@ -15,8 +15,9 @@ You can determine your currently installed version using `mkdocs --version`:
## Version 0.16 (2016-02-??)
-* Add a flag (-... |
bokeh__bokeh-4805 | Update add_glyph docstring
plot.py add_glyph returns GlyphRenderer not Glyph
this tripped me up for a minute
| [
{
"content": "\"\"\" Models for representing top-level plot objects.\n\n\"\"\"\nfrom __future__ import absolute_import\n\nfrom six import string_types\nimport warnings\n\nfrom ..core.query import find\nfrom ..core import validation\nfrom ..core.validation.errors import REQUIRED_RANGE\nfrom ..core.validation.war... | [
{
"content": "\"\"\" Models for representing top-level plot objects.\n\n\"\"\"\nfrom __future__ import absolute_import\n\nfrom six import string_types\nimport warnings\n\nfrom ..core.query import find\nfrom ..core import validation\nfrom ..core.validation.errors import REQUIRED_RANGE\nfrom ..core.validation.war... | diff --git a/bokeh/models/plots.py b/bokeh/models/plots.py
index 86a04895ba0..314cf848c87 100644
--- a/bokeh/models/plots.py
+++ b/bokeh/models/plots.py
@@ -282,7 +282,7 @@ def add_glyph(self, source_or_glyph, glyph=None, **kw):
Glyph initializer.
Returns:
- Glyph
+ GlyphRe... |
coqui-ai__TTS-1532 | Missing `f` prefix on f-strings
Some strings looks like they're meant to be f-strings but are missing the `f` prefix meaning variable interpolation won't happen.
https://github.com/coqui-ai/TTS/blob/c410bc58ef3bd07b72ab05d29bbdc2a6df47afea/TTS/tts/layers/tacotron/attentions.py#L487
I found this issue automatically. I... | [
{
"content": "import torch\nfrom scipy.stats import betabinom\nfrom torch import nn\nfrom torch.nn import functional as F\n\nfrom TTS.tts.layers.tacotron.common_layers import Linear\n\n\nclass LocationLayer(nn.Module):\n \"\"\"Layers for Location Sensitive Attention\n\n Args:\n attention_dim (int):... | [
{
"content": "import torch\nfrom scipy.stats import betabinom\nfrom torch import nn\nfrom torch.nn import functional as F\n\nfrom TTS.tts.layers.tacotron.common_layers import Linear\n\n\nclass LocationLayer(nn.Module):\n \"\"\"Layers for Location Sensitive Attention\n\n Args:\n attention_dim (int):... | diff --git a/TTS/tts/layers/tacotron/attentions.py b/TTS/tts/layers/tacotron/attentions.py
index 8c30a00a4a..d8a90d7201 100644
--- a/TTS/tts/layers/tacotron/attentions.py
+++ b/TTS/tts/layers/tacotron/attentions.py
@@ -484,4 +484,4 @@ def init_attn(
beta=0.9,
)
- raise RuntimeError(" [!] Give... |
Lightning-AI__torchmetrics-959 | PSNR - Higher is better.
## 🐛 Bug
`PSNR.higher_is_better` should be `True`
### Additional context
This is a simple change, created [PR#959](https://github.com/PyTorchLightning/metrics/pull/959) with the change.
| [
{
"content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ... | [
{
"content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ... | diff --git a/torchmetrics/image/psnr.py b/torchmetrics/image/psnr.py
index ba01b85b533..18b89452045 100644
--- a/torchmetrics/image/psnr.py
+++ b/torchmetrics/image/psnr.py
@@ -70,7 +70,7 @@ class PeakSignalNoiseRatio(Metric):
"""
min_target: Tensor
max_target: Tensor
- higher_is_better = False
+ h... |
beeware__toga-267 | GTK+: TypeError: on_close() takes 2 positional arguments but 3 were given
When creating a new Window and then closing it a TypeError is created in Linux. Once you have created an App, calling the following will reproduce the error:
window = toga.Window()
window.app = app
window.show()
Then close... | [
{
"content": "import asyncio\nimport os\nimport signal\nimport sys\n\ntry:\n import gi\nexcept ImportError:\n # app.py is the first module that will be imported when you import toga_gtk.\n #\n # If Gtk can't be imported, it may be because we're in a virtualenv,\n # and the system python libraries... | [
{
"content": "import asyncio\nimport os\nimport signal\nimport sys\n\ntry:\n import gi\nexcept ImportError:\n # app.py is the first module that will be imported when you import toga_gtk.\n #\n # If Gtk can't be imported, it may be because we're in a virtualenv,\n # and the system python libraries... | diff --git a/src/gtk/toga_gtk/app.py b/src/gtk/toga_gtk/app.py
index 0119ea05fe..765fe10064 100644
--- a/src/gtk/toga_gtk/app.py
+++ b/src/gtk/toga_gtk/app.py
@@ -86,7 +86,7 @@
class MainWindow(Window):
_IMPL_CLASS = Gtk.ApplicationWindow
- def on_close(self, widget):
+ def on_close(self, widget, data):
... |
ipython__ipython-9645 | Readlinelike display of options crashes ipython terminal.
| [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Setup script for IPython.\n\nUnder Posix environments it works like a typical setup.py script.\nUnder Windows, the command sdist is not supported, since IPython\nrequires utilities which are not available under Windows.\"\"\"\n\n#--------------... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Setup script for IPython.\n\nUnder Posix environments it works like a typical setup.py script.\nUnder Windows, the command sdist is not supported, since IPython\nrequires utilities which are not available under Windows.\"\"\"\n\n#--------------... | diff --git a/setup.py b/setup.py
index 44975df60fb..4a81a4f3b58 100755
--- a/setup.py
+++ b/setup.py
@@ -196,7 +196,7 @@ def run(self):
'pickleshare',
'simplegeneric>0.8',
'traitlets>=4.2',
- 'prompt_toolkit>=1.0.1,<2.0.0',
+ 'prompt_toolkit>=1.0.3,<2.0.0',
'pygments',
]
|
PyGithub__PyGithub-557 | GitHub Integration raises "NotImplementedError Algorithm not supported"
We have working github integration code using PyGithub v1.32 that does essentially:
```python
integration = github.GithubIntegration(settings.GITHUB_INTEGRATION_ID, settings.GITHUB_INTEGRATION_PRIVATE_PEM)
inst_token = integration.get_access_t... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# ########################## Copyrights and license ############################\n# #\n# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #\n# ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# ########################## Copyrights and license ############################\n# #\n# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #\n# ... | diff --git a/doc/introduction.rst b/doc/introduction.rst
index 85ff523cf4..0bf2ea9f30 100644
--- a/doc/introduction.rst
+++ b/doc/introduction.rst
@@ -31,6 +31,9 @@ This package is in the `Python Package Index
be enough. You can also clone it on `Github
<http://github.com/PyGithub/PyGithub>`__.
+If you wish to use... |
mlcommons__GaNDLF-477 | Add histology exception tests
**Is your feature request related to a problem? Please describe.**
Currently, the histology inference pipeline contains a lot of exceptions, but they aren't being tested.
**Describe the solution you'd like**
See title.
**Describe alternatives you've considered**
N.A.
**Addition... | [
{
"content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\nwith open(\"README.md\") as readme... | [
{
"content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\nwith open(\"README.md\") as readme... | diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml
index de1ee4d91..2d555dfda 100644
--- a/.github/workflows/python-test.yml
+++ b/.github/workflows/python-test.yml
@@ -22,10 +22,11 @@ jobs:
python-version: 3.8
- name: Install dependencies and package
run: |
+ ... |
apache__tvm-5851 | [BACKPORT-0.6][BUGFIX] Fixed process termination routine in windows
#4844
| [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | diff --git a/python/tvm/rpc/server.py b/python/tvm/rpc/server.py
index 3fff5309c45b..3700c824d235 100644
--- a/python/tvm/rpc/server.py
+++ b/python/tvm/rpc/server.py
@@ -39,6 +39,7 @@
import time
import sys
import signal
+import platform
from .._ffi.function import register_func
from .._ffi.base import py_str
|
ietf-tools__datatracker-5409 | AD dashboard should also display trend when current == 0
### Description
https://datatracker.ietf.org/doc/ad/ with the trending arrows would benefit by displaying the trend *even* if the current value is 0.
### Code of Conduct
- [X] I agree to follow the [IETF's Code of Conduct](https://github.com/ietf-tools/.github... | [
{
"content": "# Copyright The IETF Trust 2009-2022, All Rights Reserved\n# -*- coding: utf-8 -*-\n#\n# Some parts Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).\n# All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>\n#\n# Redistribution and use in source and binary forms, w... | [
{
"content": "# Copyright The IETF Trust 2009-2022, All Rights Reserved\n# -*- coding: utf-8 -*-\n#\n# Some parts Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).\n# All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>\n#\n# Redistribution and use in source and binary forms, w... | diff --git a/ietf/doc/views_search.py b/ietf/doc/views_search.py
index ec540ba393..84baeda69a 100644
--- a/ietf/doc/views_search.py
+++ b/ietf/doc/views_search.py
@@ -461,7 +461,7 @@ def ad_dashboard_sort_key(doc):
def ad_workload(request):
- delta = datetime.timedelta(days=30)
+ delta = datetime.timedelta(d... |
pyinstaller__pyinstaller-2347 | gi._gobject.option is not part of pygobject
The [GObject hook](https://github.com/pyinstaller/pyinstaller/blob/develop/PyInstaller/hooks/hook-gi.repository.GObject.py) adds a `hiddenimport` for `gi._gobject.option` however `gi/_gobject/option.py` is not part of pygobject.
This leads to the following warning when pac... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2016, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the file COPYING.... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2016, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the file COPYING.... | diff --git a/PyInstaller/hooks/hook-gi.repository.GObject.py b/PyInstaller/hooks/hook-gi.repository.GObject.py
index 724c108563..3c9ae7a74e 100644
--- a/PyInstaller/hooks/hook-gi.repository.GObject.py
+++ b/PyInstaller/hooks/hook-gi.repository.GObject.py
@@ -19,4 +19,4 @@
binaries, datas, hiddenimports = get_gi_type... |
statsmodels__statsmodels-507 | numdifftools dependency
Original Launchpad bug 653902: https://bugs.launchpad.net/statsmodels/+bug/653902
Reported by: vincent-vincentdavis (Vincent Davis).
statsmodels/_init_.py imports tsa
Which then returns an exception from statsmodels/tsa/var.py "raise Warning("You need to install numdifftools to try out the AR m... | [
{
"content": "\"\"\"Base Classes for Likelihood Models in time series analysis\n\nWarning: imports numdifftools\n\n\n\nCreated on Sun Oct 10 15:00:47 2010\n\nAuthor: josef-pktd\nLicense: BSD\n\n\"\"\"\n\nimport numpy as np\n\nimport numdifftools as ndt\n\nfrom statsmodels.base.model import LikelihoodModel\n\n#c... | [
{
"content": "\"\"\"Base Classes for Likelihood Models in time series analysis\n\nWarning: imports numdifftools\n\n\n\nCreated on Sun Oct 10 15:00:47 2010\n\nAuthor: josef-pktd\nLicense: BSD\n\n\"\"\"\n\nimport numpy as np\n\ntry:\n import numdifftools as ndt\nexcept:\n pass\n\nfrom statsmodels.base.model... | diff --git a/statsmodels/tsa/mlemodel.py b/statsmodels/tsa/mlemodel.py
index 1fd064294cf..698e19f5710 100644
--- a/statsmodels/tsa/mlemodel.py
+++ b/statsmodels/tsa/mlemodel.py
@@ -13,7 +13,10 @@
import numpy as np
-import numdifftools as ndt
+try:
+ import numdifftools as ndt
+except:
+ pass
from statsmo... |
getsentry__sentry-python-337 | Unified sentry-sdk integration does not have support to add stack trace in python logger using 'stack': True in extra dict.
Migration from raven to unified sentry sdk, affected extended functionalities to python logging provided by raven. _extra_from_record - excludes keywords 'stack' and 'data'. Is there a known worka... | [
{
"content": "from __future__ import absolute_import\n\nimport logging\nimport datetime\n\nfrom sentry_sdk.hub import Hub\nfrom sentry_sdk.utils import (\n to_string,\n event_from_exception,\n current_stacktrace,\n capture_internal_exceptions,\n)\nfrom sentry_sdk.integrations import Integration\n\ni... | [
{
"content": "from __future__ import absolute_import\n\nimport logging\nimport datetime\n\nfrom sentry_sdk.hub import Hub\nfrom sentry_sdk.utils import (\n to_string,\n event_from_exception,\n current_stacktrace,\n capture_internal_exceptions,\n)\nfrom sentry_sdk.integrations import Integration\n\ni... | diff --git a/sentry_sdk/integrations/logging.py b/sentry_sdk/integrations/logging.py
index a8b02b588e..60fba0dc74 100644
--- a/sentry_sdk/integrations/logging.py
+++ b/sentry_sdk/integrations/logging.py
@@ -106,7 +106,6 @@ def _logging_to_event_level(levelname):
(
"args",
"created",
- "dat... |
zulip__zulip-18598 | Pivotal integration exception
Hi,
I've added Pivotal integration and from time to time I receive those two e-mails when working in Pivotal:
I'm running ubuntu 20.04
If you need more information, I'd be happy to help.
```
Logger django.request, from module django.utils.log line 224:
Error generated by Pivotal... | [
{
"content": "\"\"\"Webhooks for external integrations.\"\"\"\nimport re\nfrom typing import Any, Dict, List, Optional, Tuple\n\nimport orjson\nfrom defusedxml.ElementTree import fromstring as xml_fromstring\nfrom django.http import HttpRequest, HttpResponse\nfrom django.utils.translation import gettext as _\n\... | [
{
"content": "\"\"\"Webhooks for external integrations.\"\"\"\nimport re\nfrom typing import Any, Dict, List, Optional, Tuple\n\nimport orjson\nfrom defusedxml.ElementTree import fromstring as xml_fromstring\nfrom django.http import HttpRequest, HttpResponse\nfrom django.utils.translation import gettext as _\n\... | diff --git a/zerver/webhooks/pivotal/view.py b/zerver/webhooks/pivotal/view.py
index 8109449cb2c0e..8c372ba4e1ac4 100644
--- a/zerver/webhooks/pivotal/view.py
+++ b/zerver/webhooks/pivotal/view.py
@@ -72,6 +72,7 @@ def get_text(attrs: List[str]) -> str:
"story_delete_activity",
"story_move_into_project_activi... |
DataDog__dd-trace-py-1724 | botocore gets monkey patched before gevent when using pynamoDB
In [0.43.0 ssl libs are patched on import](https://github.com/DataDog/dd-trace-py/pull/1629) to allow `ddtrace-run` and `gevent` to exist in harmony.
`pynamodb` imports `botocore` and PynamoDB is patched by default. The result of this is that `ddtrace-ru... | [
{
"content": "\"\"\"Patch libraries to be automatically instrumented.\n\nIt can monkey patch supported standard libraries and third party modules.\nA patched module will automatically report spans with its default configuration.\n\nA library instrumentation can be configured (for instance, to report as another ... | [
{
"content": "\"\"\"Patch libraries to be automatically instrumented.\n\nIt can monkey patch supported standard libraries and third party modules.\nA patched module will automatically report spans with its default configuration.\n\nA library instrumentation can be configured (for instance, to report as another ... | diff --git a/ddtrace/monkey.py b/ddtrace/monkey.py
index 747bdbc599f..bafc5dca323 100644
--- a/ddtrace/monkey.py
+++ b/ddtrace/monkey.py
@@ -85,6 +85,7 @@
"requests": ("requests",),
"botocore": ("botocore",),
"elasticsearch": ("elasticsearch",),
+ "pynamodb": ("pynamodb",),
}
diff --git a/release... |
zulip__zulip-13077 | Upgrade pip from 19.1.1 and pip-tools from 3.8.0
Followup issue from #13067. pip-tools 3.9.0 or 4.0.0 fails to resolve dependencies from Git URLs (jazzband/pip-tools#851):
`pip._internal.exceptions.DistributionNotFound: No matching distribution found for zulip==0.6.1_git (from -r requirements/common.in (line 135))`
... | [
{
"content": "import os\n\nZULIP_VERSION = \"2.0.4+git\"\n# Add information on number of commits and commit hash to version, if available\nzulip_git_version_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'zulip-git-version')\nif os.path.exists(zulip_git_version_file):\n with open(zulip_git_v... | [
{
"content": "import os\n\nZULIP_VERSION = \"2.0.4+git\"\n# Add information on number of commits and commit hash to version, if available\nzulip_git_version_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'zulip-git-version')\nif os.path.exists(zulip_git_version_file):\n with open(zulip_git_v... | diff --git a/requirements/dev.in b/requirements/dev.in
index 196613baae52b..6b6a824744952 100644
--- a/requirements/dev.in
+++ b/requirements/dev.in
@@ -50,7 +50,7 @@ transifex-client==0.12.5
python-digitalocean==1.14.0
# Needed for updating the locked pip dependencies
-pip-tools==3.8.0
+pip-tools==4.1.0
# zulip... |
wemake-services__wemake-python-styleguide-195 | Fix documentation main page's header
The header is gone:
<img width="1032" alt="2018-10-03 0 18 01" src="https://user-images.githubusercontent.com/4660275/46377643-d0ce1080-c6a1-11e8-950b-d2d0c515dee1.png">
| [
{
"content": "# -*- coding: utf-8 -*-\n\nimport ast\nfrom typing import Optional\n\nfrom wemake_python_styleguide.constants import MAGIC_NUMBERS_WHITELIST\nfrom wemake_python_styleguide.violations.best_practices import (\n MagicNumberViolation,\n)\nfrom wemake_python_styleguide.visitors.base import BaseNodeV... | [
{
"content": "# -*- coding: utf-8 -*-\n\nimport ast\nfrom typing import Optional\n\nfrom wemake_python_styleguide.constants import MAGIC_NUMBERS_WHITELIST\nfrom wemake_python_styleguide.violations.best_practices import (\n MagicNumberViolation,\n)\nfrom wemake_python_styleguide.visitors.base import BaseNodeV... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ec404f83a..94e94b25f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,10 @@ We used to have incremental versioning before `0.1.0`.
### Features
- Now we are counting `async` function as a module member
+- We now forbid to use `credits()` builtin function
+- We n... |
streamlit__streamlit-7454 | A header with Japanese text has no anchor link.
### Summary
I found that a header with Japanese text has no anchor link.
### Steps to reproduce
Code snippet:
```
import streamlit as st
st.header("セクション")
```
1. Run code snippet above.
2. Check if the header has anchor link or not.
**Expected behav... | [
{
"content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2... | [
{
"content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2... | diff --git a/e2e/scripts/st_title.py b/e2e/scripts/st_title.py
index d926ffed0a25..6013875100ae 100644
--- a/e2e/scripts/st_title.py
+++ b/e2e/scripts/st_title.py
@@ -16,3 +16,6 @@
st.title("This title is awesome!")
st.title("This title is awesome too!", anchor="awesome-title")
+
+st.title("日本語タイトル")
+st.title("その他... |
pwndbg__pwndbg-628 | Don't activate the IDA view when stepping in the pwndbg
<!--
Before reporting a new issue, make sure that we do not have any duplicates already open.
If there is one it might be good to take part in the discussion there.
Please make sure you have checked that the issue persists on LATEST pwndbg version.
Below i... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nTalks to an XMLRPC server running inside of an active IDA Pro instance,\nin order to query it about the database. Allows symbol resolution and\ninteractive debugging.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import di... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nTalks to an XMLRPC server running inside of an active IDA Pro instance,\nin order to query it about the database. Allows symbol resolution and\ninteractive debugging.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import di... | diff --git a/pwndbg/ida.py b/pwndbg/ida.py
index 514a98ad14f..775b340329f 100644
--- a/pwndbg/ida.py
+++ b/pwndbg/ida.py
@@ -227,7 +227,8 @@ def here():
@withIDA
@takes_address
def Jump(addr):
- return _ida.Jump(addr)
+ # uses C++ api instead of idc one to avoid activating the IDA window
+ return _ida.jumpt... |
certbot__certbot-9331 | Remove the third-party `mock` dependency
>Functions in certbot.tests.util were previously using the third party mock module if it was available for backwards compatibiliy. This behavior will be removed and unittest.mock from the standard library will always be used instead.
e.g. https://github.com/certbot/certbot/bl... | [
{
"content": "import codecs\nimport os\nimport re\nimport sys\n\nfrom pkg_resources import parse_version\nfrom setuptools import __version__ as setuptools_version\nfrom setuptools import find_packages\nfrom setuptools import setup\n\nmin_setuptools_version='41.6.0'\n# This conditional isn't necessary, but it pr... | [
{
"content": "import codecs\nimport os\nimport re\nimport sys\n\nfrom pkg_resources import parse_version\nfrom setuptools import __version__ as setuptools_version\nfrom setuptools import find_packages\nfrom setuptools import setup\n\nmin_setuptools_version='41.6.0'\n# This conditional isn't necessary, but it pr... | diff --git a/.azure-pipelines/templates/jobs/extended-tests-jobs.yml b/.azure-pipelines/templates/jobs/extended-tests-jobs.yml
index 7c586ee5bca..0f732e6c909 100644
--- a/.azure-pipelines/templates/jobs/extended-tests-jobs.yml
+++ b/.azure-pipelines/templates/jobs/extended-tests-jobs.yml
@@ -18,8 +18,6 @@ jobs:
... |
NVIDIA-Merlin__NVTabular-1139 | [BUG] Problem on writing to_parquet after transforming
```python
#######################################
trasforming Code:
class Processjson(Operator):
def transform(self, columns, gdf):
col = gdf['event_properties']
gdf['item_id'] = col.str.extract('\'product_id\'\s*:\s*\'([^\']+)\''... | [
{
"content": "#\n# Copyright (c) 2021, NVIDIA CORPORATION.\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 requ... | [
{
"content": "#\n# Copyright (c) 2021, NVIDIA CORPORATION.\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 requ... | diff --git a/nvtabular/workflow/workflow.py b/nvtabular/workflow/workflow.py
index cf433cceffd..87aba3071d6 100644
--- a/nvtabular/workflow/workflow.py
+++ b/nvtabular/workflow/workflow.py
@@ -433,6 +433,7 @@ def _transform_ddf(ddf, workflow_nodes, meta=None, additional_columns=None):
workflow_nodes,
... |
zulip__zulip-20788 | "Pan and zoom" cuts off images instead of using the available space
If you have a tall image and a wide monitor (and wide browser viewport), and you try to zoom… the image stays trapped inside the same box it occupied before you even tried to zoom. If the image is super wide instead of tall, the same thing happens the ... | [
{
"content": "import os\n\nZULIP_VERSION = \"5.0-dev+git\"\n\n# Add information on number of commits and commit hash to version, if available\nzulip_git_version_file = os.path.join(\n os.path.dirname(os.path.abspath(__file__)), \"zulip-git-version\"\n)\nlines = [ZULIP_VERSION, \"\"]\nif os.path.exists(zulip_... | [
{
"content": "import os\n\nZULIP_VERSION = \"5.0-dev+git\"\n\n# Add information on number of commits and commit hash to version, if available\nzulip_git_version_file = os.path.join(\n os.path.dirname(os.path.abspath(__file__)), \"zulip-git-version\"\n)\nlines = [ZULIP_VERSION, \"\"]\nif os.path.exists(zulip_... | diff --git a/frontend_tests/node_tests/lightbox.js b/frontend_tests/node_tests/lightbox.js
index 5a2b09837b38b..3a132d6dcd0d0 100644
--- a/frontend_tests/node_tests/lightbox.js
+++ b/frontend_tests/node_tests/lightbox.js
@@ -54,8 +54,8 @@ test("pan_and_zoom", ({override_rewire}) => {
};
override_rewire(ligh... |
huggingface__diffusers-6507 | StableVideoDiffusionPipeline returns a list instead of np.ndarray for output_type="np"
### Describe the bug
The [comments](https://github.com/huggingface/diffusers/blob/4497b3ec982978eca99895ed1429addde4a84fff/src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py#L64) for StableVideoDiffusi... | [
{
"content": "# Copyright 2023 The HuggingFace Team. 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#... | [
{
"content": "# Copyright 2023 The HuggingFace Team. 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#... | diff --git a/src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py b/src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py
index fa96f41cd81f..a0c3be089ece 100644
--- a/src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py
+++ b/src/dif... |
microsoft__ptvsd-806 | listen(0) in create_server() does not allow client to connect to linux server
## Environment data
- PTVSD version: 4.1.1
- OS and version: linux kernel 4.14.46
- Python version (& distribution if applicable, e.g. Anaconda): 2.7.13, 3.5.3
- Using VS Code or Visual Studio: N/A
## Actual behavior
server on linux... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nfrom __future__ import absolute_import\n\nfrom collections import namedtuple\nimport contextlib\nimport errno\nimport socket\ntry:\n from... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nfrom __future__ import absolute_import\n\nfrom collections import namedtuple\nimport contextlib\nimport errno\nimport socket\ntry:\n from... | diff --git a/ptvsd/socket.py b/ptvsd/socket.py
index 49739b292..f5226bb52 100644
--- a/ptvsd/socket.py
+++ b/ptvsd/socket.py
@@ -75,7 +75,7 @@ def create_server(host, port):
host = 'localhost'
server = _new_sock()
server.bind((host, port))
- server.listen(0)
+ server.listen(1)
return serve... |
jazzband__pip-tools-1871 | Convert the README from rst to md
<!--- Describe the changes here. --->
This PR converts the documentation from README.rst to README.md
Related: https://github.com/jazzband/pip-tools/issues/1856
##### Contributor checklist
- [ ] Provided the tests for the changes.
- [x] Assure PR title is short, clear, and good ... | [
{
"content": "# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\"\"\"Configuration file for the Sphinx documentation builder.\"\"\"\n\nfrom __future__ import annotations\n\nfrom functools import partial\nfrom pathlib import Path\n\nfrom setuptools_scm import get_version\n\n# -- Path setup ------... | [
{
"content": "# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\"\"\"Configuration file for the Sphinx documentation builder.\"\"\"\n\nfrom __future__ import annotations\n\nfrom functools import partial\nfrom pathlib import Path\n\nfrom setuptools_scm import get_version\n\n# -- Path setup ------... | diff --git a/README.md b/README.md
new file mode 100644
index 000000000..c6267daae
--- /dev/null
+++ b/README.md
@@ -0,0 +1,583 @@
+[![jazzband-image]][jazzband]
+[![pypi][pypi-image]][pypi]
+[![pyversions][pyversions-image]][pyversions]
+[![pre-commit][pre-commit-image]][pre-commit]
+[![buildstatus-gha][buildstatus-gh... |
TencentBlueKing__bk-user-164 | 部门查询接口 ?lookup_field=name,当部门名称中含有 "." 时返回 404
**用文字描述你遇到的问题**
请用简练的文字描述你遇到的问题,问题描述的清晰程度决定了问题被解决的效率。
**重现方法**
1. 创建一个目录,名字包含点,如【广东省.深圳市】
2. 使用api查询, http:://{host:port}/api/v2/departments/广东省.深圳市/?lookup_field=name
查询结果是404
请描述问题重现的方法,如果不方便描述,可以通过截图或者视频辅助。
**预期行为**
预期的正常行为
**版本**
- 提供用户管理的具体版本号
... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nTencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available.\nCopyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.\nLicensed under the MIT License (the \"License\"); you may not use this file ex... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nTencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available.\nCopyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.\nLicensed under the MIT License (the \"License\"); you may not use this file ex... | diff --git a/src/api/bkuser_core/departments/urls.py b/src/api/bkuser_core/departments/urls.py
index ce5aa3007..14c81ca61 100644
--- a/src/api/bkuser_core/departments/urls.py
+++ b/src/api/bkuser_core/departments/urls.py
@@ -13,7 +13,7 @@
from . import views
-PVAR_DEPARTMENT_ID = r"(?P<%s>[\w\-]+)" % LOOKUP_FIELD_... |
pwr-Solaar__Solaar-730 | better identification of Solaar versions
`git describe` produces
0.9.2-339-g39791be
Instead it should produce something based on 1.0.1
`git describe --tags` produces
1.0.1-58-g39791be
which is much better.
I think that all that is required is to upgrade the 1.0.1 tag that already exists.
| [
{
"content": "# -*- python-mode -*-\n# -*- coding: UTF-8 -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the... | [
{
"content": "# -*- python-mode -*-\n# -*- coding: UTF-8 -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the... | diff --git a/docs/_config.yml b/docs/_config.yml
index c40bfa750d..fe499a7775 100644
--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -4,7 +4,7 @@ tagline: Linux Device manager for the Logitech Unifying Receiver.
owner: pwr-Solaar
owner_url: https://github.com/pwr-Solaar
repository: pwr-Solaar/Solaar
-version: 1.0.1... |
apache__airflow-18209 | Upgrade `importlib-resources` version
### Description
The version for `importlib-resources` constraint sets it to be [v1.5.0](https://github.com/python/importlib_resources/tree/v1.5.0) which is over a year old. For compatibility sake (for instance with something like Datapane) I would suggest upgrading it.
### U... | [
{
"content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th... | [
{
"content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th... | diff --git a/setup.cfg b/setup.cfg
index 4d2ee284f9bcf..10d7b7d713243 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -111,7 +111,7 @@ install_requires =
gunicorn>=20.1.0
httpx
importlib_metadata>=1.7;python_version<"3.9"
- importlib_resources~=1.4
+ importlib_resources~=5.0
# Required by vendored-i... |
readthedocs__readthedocs.org-5424 | Remove possibel unused constant
At first sight looks like isn't used anymore after https://github.com/rtfd/readthedocs.org/pull/5383
https://github.com/rtfd/readthedocs.org/blob/78c34c904b347110b2cd545b4b5a80ed526590f7/readthedocs/core/models.py#L13-L13
We should still double check and make sure tests are passing... | [
{
"content": "# -*- coding: utf-8 -*-\n\n\"\"\"Models for the core app.\"\"\"\nimport logging\n\nfrom annoying.fields import AutoOneToOneField\nfrom django.db import models\nfrom django.urls import reverse\nfrom django.utils.translation import ugettext\nfrom django.utils.translation import ugettext_lazy as _\n\... | [
{
"content": "# -*- coding: utf-8 -*-\n\n\"\"\"Models for the core app.\"\"\"\nimport logging\n\nfrom annoying.fields import AutoOneToOneField\nfrom django.db import models\nfrom django.urls import reverse\nfrom django.utils.translation import ugettext\nfrom django.utils.translation import ugettext_lazy as _\n\... | diff --git a/readthedocs/core/models.py b/readthedocs/core/models.py
index d129f181a5e..3fab8570b45 100644
--- a/readthedocs/core/models.py
+++ b/readthedocs/core/models.py
@@ -10,8 +10,6 @@
from django.utils.translation import ugettext_lazy as _
-STANDARD_EMAIL = 'anonymous@readthedocs.org'
-
log = logging.getLo... |
joke2k__faker-146 | timezone() randomly throws an exception
fake.timezone() sometimes throws an exception, possibly when a country doesn't have any timezones defined:
``` python
>>> from faker import Faker
>>> f = Faker()
>>> f.timezone()
'Africa/Mogadishu'
>>> f.timezone()
Traceback (most recent call last):
File "<stdin>", line 1, in ... | [
{
"content": "# coding=utf-8\n\nfrom __future__ import unicode_literals\nfrom . import BaseProvider\nimport random\nimport re\nfrom time import time, mktime\nfrom datetime import timedelta\nfrom faker.utils.datetime_safe import date, datetime, real_date, real_datetime\nfrom faker.utils import is_string\n\n\ndef... | [
{
"content": "# coding=utf-8\n\nfrom __future__ import unicode_literals\nfrom . import BaseProvider\nimport random\nimport re\nfrom time import time, mktime\nfrom datetime import timedelta\nfrom faker.utils.datetime_safe import date, datetime, real_date, real_datetime\nfrom faker.utils import is_string\n\n\ndef... | diff --git a/faker/providers/date_time.py b/faker/providers/date_time.py
index 7d122d40cf..b91b33464b 100644
--- a/faker/providers/date_time.py
+++ b/faker/providers/date_time.py
@@ -382,7 +382,4 @@ def century(cls):
@classmethod
def timezone(cls):
- return cls.random_element(cls.countries)['timezone... |
mitmproxy__mitmproxy-6493 | uppercase breaks block_list
#### Problem Description
using these values for `block_list`
~~~
/~u AccountsSignInUi/444
/~u accountssigninui/444
~~~
neither one is blocking the expected URL:
~~~
https://accounts.google.com/v3/signin/_/AccountsSignInUi/data/batchexecute
~~~
this works:
~~~
/~u .cco... | [
{
"content": "\"\"\"\n The following operators are understood:\n\n ~q Request\n ~s Response\n\n Headers:\n\n Patterns are matched against \"name: value\" strings. Field names are\n all-lowercase.\n\n ~a Asset content-type in response. Asset con... | [
{
"content": "\"\"\"\n The following operators are understood:\n\n ~q Request\n ~s Response\n\n Headers:\n\n Patterns are matched against \"name: value\" strings. Field names are\n all-lowercase.\n\n ~a Asset content-type in response. Asset con... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index bdac343e75..a80ac80cac 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,8 @@
([#6543](https://github.com/mitmproxy/mitmproxy/pull/6543), @mhils)
* DNS resolution is now exempted from `--ignore-hosts` in WireGuard Mode.
([#6513](https://github.com/mitmproxy/... |
google__flax-3540 | Error when using nn.scan with negative output_axes
### System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): N/A
- Flax, jax, jaxlib versions (obtain with `pip show flax jax jaxlib`: ```flax==0.6.11, jax==0.4.9, jaxlib==0.4.9```
- Python version: ```3.8```
- GPU/TPU model and memory: N/A
- ... | [
{
"content": "# Copyright 2023 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 2023 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | diff --git a/flax/core/axes_scan.py b/flax/core/axes_scan.py
index 8c51ca3df..2ffd347db 100644
--- a/flax/core/axes_scan.py
+++ b/flax/core/axes_scan.py
@@ -100,7 +100,7 @@ def transpose_from_front(ax, xs):
def trans(x):
if ax < 0:
- pax = x.ndim - ax
+ pax = x.ndim + ax
else:
... |
Kinto__kinto-1302 | Cannot import name `Utc`
While trying to debug #1299 I encountered the following error:
```
$ make serve
...
~/.virtualenvs/test/bin/kinto migrate --ini config/kinto.ini
Traceback (most recent call last):
File "~/.virtualenvs/test/bin/kinto", line 11, in <module>
load_entry_point('kinto', 'console_scripts'... | [
{
"content": "import codecs\nimport os\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read_file(filename):\n \"\"\"Open a related file and return its content.\"\"\"\n with codecs.open(os.path.join(here, filename), encoding='utf-8') as f:\n ... | [
{
"content": "import codecs\nimport os\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read_file(filename):\n \"\"\"Open a related file and return its content.\"\"\"\n with codecs.open(os.path.join(here, filename), encoding='utf-8') as f:\n ... | diff --git a/setup.py b/setup.py
index 36edbd494..1ffb4863d 100644
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,7 @@ def read_file(filename):
REQUIREMENTS = [
'bcrypt',
+ 'iso8601==0.1.11', # Refs #1301
'colander >= 1.3.2',
'cornice >= 2.4',
'cornice_swagger >= 0.5.1',
|
pretalx__pretalx-263 | Mail config doesn't work
The fallback/default config is not used, even when an event's mail config is untouched.
| [
{
"content": "import configparser\nimport os\nimport sys\nfrom contextlib import suppress\nfrom urllib.parse import urlparse\n\nfrom django.contrib.messages import constants as messages # NOQA\nfrom django.utils.crypto import get_random_string\nfrom django.utils.translation import ugettext_lazy as _ # NOQA\n\... | [
{
"content": "import configparser\nimport os\nimport sys\nfrom contextlib import suppress\nfrom urllib.parse import urlparse\n\nfrom django.contrib.messages import constants as messages # NOQA\nfrom django.utils.crypto import get_random_string\nfrom django.utils.translation import ugettext_lazy as _ # NOQA\n\... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index e61b4867ee..207e5d71df 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -9,6 +9,12 @@ vx.x.x
*Released on 2017-xx-xx*
+Breaking Changes
+~~~~~~~~~~~~~~~~
+
+- The default value for email SSL usage is now ``False``, permitting the default
+ configuration of ``local... |
microsoft__ptvsd-843 | Using sys.exit() with no arguments causes TypeError inside ptvsd
## Environment data
- PTVSD version: 4.1.3
- OS and version: Windows 10
- Python version (& distribution if applicable, e.g. Anaconda): 3.6
- Using VS Code or Visual Studio: VS
## Actual behavior
```
During handling of the above exception, an... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nimport sys\nimport time\n\nimport pydevd\nfrom _pydevd_bundle.pydevd_comm import get_global_debugger\n\nfrom ptvsd.pydevd_hooks import insta... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nimport sys\nimport time\n\nimport pydevd\nfrom _pydevd_bundle.pydevd_comm import get_global_debugger\n\nfrom ptvsd.pydevd_hooks import insta... | diff --git a/ptvsd/_local.py b/ptvsd/_local.py
index 7872cb1c8..09f671eae 100644
--- a/ptvsd/_local.py
+++ b/ptvsd/_local.py
@@ -139,5 +139,5 @@ def _run(argv, addr, _pydevd=pydevd, _install=install, **kwargs):
try:
_pydevd.main()
except SystemExit as ex:
- daemon.exitcode = int(ex.code)
+ ... |
aio-libs__aiohttp-3107 | StreamResponse instances are all equal
## Long story short
Since #2494 , `StreamResponse` inherits `collections.MutableMapping.__eq__`, which makes them basically all equal.
The implementation in `Mapping` looks like `return dict(self.items()) == dict(other.items())`.
This is especially the case for `WebSocketR... | [
{
"content": "import collections\nimport datetime\nimport enum\nimport json\nimport math\nimport time\nimport warnings\nimport zlib\nfrom email.utils import parsedate\nfrom http.cookies import SimpleCookie\n\nfrom multidict import CIMultiDict, CIMultiDictProxy\n\nfrom . import hdrs, payload\nfrom .helpers impor... | [
{
"content": "import collections\nimport datetime\nimport enum\nimport json\nimport math\nimport time\nimport warnings\nimport zlib\nfrom email.utils import parsedate\nfrom http.cookies import SimpleCookie\n\nfrom multidict import CIMultiDict, CIMultiDictProxy\n\nfrom . import hdrs, payload\nfrom .helpers impor... | diff --git a/CHANGES/3100.bugfix b/CHANGES/3100.bugfix
new file mode 100644
index 00000000000..9d9d3301f69
--- /dev/null
+++ b/CHANGES/3100.bugfix
@@ -0,0 +1 @@
+Fix `StreamResponse` equality, now that they are `MutableMapping` objects.
diff --git a/aiohttp/web_response.py b/aiohttp/web_response.py
index f3c2a5311a8..8... |
networkx__networkx-2535 | missing commits
@hagberg , @dschult I just noticed that there is no ``doc/release/api_1.11.rst``, but there is one here:
https://github.com/networkx/networkx/tree/v1.11
in ``doc/source/reference/api_1.11.rst``. It appears this file was never committed on the master branch.
The v1.11 branch is " 59 commits ahea... | [
{
"content": "\"\"\"Functions to convert NetworkX graphs to and from numpy/scipy matrices.\n\nThe preferred way of converting data to a NetworkX graph is through the\ngraph constuctor. The constructor calls the to_networkx_graph() function\nwhich attempts to guess the input type and convert it automatically.\n... | [
{
"content": "\"\"\"Functions to convert NetworkX graphs to and from numpy/scipy matrices.\n\nThe preferred way of converting data to a NetworkX graph is through the\ngraph constuctor. The constructor calls the to_networkx_graph() function\nwhich attempts to guess the input type and convert it automatically.\n... | diff --git a/doc/news.rst b/doc/news.rst
index 3f9df003576..a02f60858ca 100644
--- a/doc/news.rst
+++ b/doc/news.rst
@@ -8,22 +8,37 @@ NetworkX 2.0
------------
Release date: TBD
-
See :doc:`release/migration_guide_from_1.x_to_2.0`.
API changes
~~~~~~~~~~~
See :doc:`release/release_2.0`.
+NetworkX 1.11
+... |
Pylons__pyramid-3272 | Bump Sphinx to >=1.7.2
Would anyone be opposed to bumping Sphinx to >=1.7.2, != 1.7.3 in `setup.py`? I really want our PDFs to have `emphasize-lines` support, at long last, and bring in support for Unicode characters in PDFs via xelatex.
Refs:
* #667
* #2572
* https://github.com/rtfd/readthedocs.org/issues/4015
... | [
{
"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/setup.py b/setup.py
index c06c5142a1..6a3c8d26b5 100644
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@
docs_extras = [
- 'Sphinx >= 1.3.5, != 1.7.3',
+ 'Sphinx >= 1.7.4',
'docutils',
'repoze.sphinx.autointerface',
'pylons_sphinx_latesturl',
|
InternLM__lmdeploy-205 | Serving gradio报错

报错: no module named lmdeploy.serve.gradio
环境里已安装了lmdeploy 0.0.2 python包。
| [
{
"content": "# Copyright (c) OpenMMLab. All rights reserved.\nfrom typing import Tuple\n\n__version__ = '0.0.2'\nshort_version = __version__\n\n\ndef parse_version_info(version_str: str) -> Tuple:\n \"\"\"Parse version from a string.\n\n Args:\n version_str (str): A string represents a version inf... | [
{
"content": "# Copyright (c) OpenMMLab. All rights reserved.\nfrom typing import Tuple\n\n__version__ = '0.0.3'\nshort_version = __version__\n\n\ndef parse_version_info(version_str: str) -> Tuple:\n \"\"\"Parse version from a string.\n\n Args:\n version_str (str): A string represents a version inf... | diff --git a/lmdeploy/version.py b/lmdeploy/version.py
index 8960a13972..81a7f9de1a 100644
--- a/lmdeploy/version.py
+++ b/lmdeploy/version.py
@@ -1,7 +1,7 @@
# Copyright (c) OpenMMLab. All rights reserved.
from typing import Tuple
-__version__ = '0.0.2'
+__version__ = '0.0.3'
short_version = __version__
|
mozmeao__basket-836 | Expand set of fields for PII scrubbing
Based on what I'm seeing, we should add `primary_email` to the list of fields we scrub before sending to Sentry.
| [
{
"content": "import os\nimport platform\nimport socket\nimport struct\nimport sys\nfrom datetime import timedelta\nfrom pathlib import Path\n\nimport dj_database_url\nimport django_cache_url\nimport sentry_sdk\nfrom decouple import Csv, UndefinedValueError, config\nfrom sentry_processor import DesensitizationP... | [
{
"content": "import os\nimport platform\nimport socket\nimport struct\nimport sys\nfrom datetime import timedelta\nfrom pathlib import Path\n\nimport dj_database_url\nimport django_cache_url\nimport sentry_sdk\nfrom decouple import Csv, UndefinedValueError, config\nfrom sentry_processor import DesensitizationP... | diff --git a/basket/base/tests/test__utils.py b/basket/base/tests/test__utils.py
index 0989b987d..d6ffe5c71 100644
--- a/basket/base/tests/test__utils.py
+++ b/basket/base/tests/test__utils.py
@@ -43,6 +43,7 @@ def test_pre_sentry_sanitisation__before_send_setup():
"last_name",
"mobile_number",
... |
web2py__web2py-1498 | unittest response.render() inside scheduler
to avoid #1485 to happen again
| [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n| This file is part of the web2py Web Framework\n| Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu>,\n| limodou <limodou@gmail.com> and srackham <srackham@gmail.com>.\n| License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nWeb... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n| This file is part of the web2py Web Framework\n| Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu>,\n| limodou <limodou@gmail.com> and srackham <srackham@gmail.com>.\n| License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nWeb... | diff --git a/gluon/shell.py b/gluon/shell.py
index 9d93f1a6d..b6c8f27ba 100644
--- a/gluon/shell.py
+++ b/gluon/shell.py
@@ -254,7 +254,7 @@ def run(
die(errmsg)
if f:
- exec('print %s()' % f, _env)
+ exec('print( %s())' % f, _env)
return
_env.update(exec_pythonrc())
di... |
searx__searx-2391 | SUGGESTION: Contacting the instance's maintainer(s)
Hello, so I use searx, but I personally think that there should be any way to contact the maintainer(s) of a public instance (email for example). It is harder to trust this awesome service if there is no way to contact the maintainer(s).
| [
{
"content": "GIT_URL = 'https://github.com/searx/searx'\nGIT_BRANCH = 'master'\nISSUE_URL = 'https://github.com/searx/searx/issues'\nSEARX_URL = 'https://searx.me'\nDOCS_URL = 'https://searx.github.io/searx'\nPUBLIC_INSTANCES = 'https://searx.space'\n",
"path": "searx/brand.py"
}
] | [
{
"content": "GIT_URL = 'https://github.com/searx/searx'\nGIT_BRANCH = 'master'\nISSUE_URL = 'https://github.com/searx/searx/issues'\nSEARX_URL = 'https://searx.me'\nDOCS_URL = 'https://searx.github.io/searx'\nPUBLIC_INSTANCES = 'https://searx.space'\nCONTACT_URL = 'mailto:contact@example.com'\n",
"path": "... | diff --git a/Makefile b/Makefile
index 7704b337f6..8a4a38e1c4 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ export GIT_URL=https://github.com/searx/searx
export GIT_BRANCH=master
export SEARX_URL=https://searx.me
export DOCS_URL=https://searx.github.io/searx
+export CONTACT_URL=mailto:contact@example.com
# E... |
pymodbus-dev__pymodbus-1395 | pip show pymodbus, misses information.
```
pymodbus) pymodbus % pip show pymodbus
Name: pymodbus
Version: 3.1.x
Summary: A fully featured modbus protocol stack in python
Home-page: https://github.com/pymodbus-dev/pymodbus/
Author: attr: pymodbus.__author__
Author-email:
License: BSD-3-Clause
Location: /Use... | [
{
"content": "\"\"\"Pymodbus: Modbus Protocol Implementation.\n\nReleased under the the BSD license\n\"\"\"\n\nfrom logging import WARNING\n\nimport pymodbus.version as __version\nfrom pymodbus.logging import Log\n\n\n__version__ = __version.version.short()\n__author__ = \"Galen Collins\"\n__maintainer__ = \"dh... | [
{
"content": "\"\"\"Pymodbus: Modbus Protocol Implementation.\n\nReleased under the the BSD license\n\"\"\"\n\nfrom logging import WARNING\n\nimport pymodbus.version as __version\nfrom pymodbus.logging import Log\n\n\n__version__ = __version.version.short()\n__author__ = \"Galen Collins, Jan Iversen\"\n__mainta... | diff --git a/pymodbus/__init__.py b/pymodbus/__init__.py
index 89bc4b9df..2d61c1290 100644
--- a/pymodbus/__init__.py
+++ b/pymodbus/__init__.py
@@ -10,7 +10,7 @@
__version__ = __version.version.short()
-__author__ = "Galen Collins"
+__author__ = "Galen Collins, Jan Iversen"
__maintainer__ = "dhoomakethu, janiver... |
piskvorky__gensim-919 | import gensim fails since updating to Xcode 7.3
I just updated my version of Xcode to 7.3. When I run `pip install --upgrade gensim` the process completed without any issues. However, when I try `import gensim` within the python shell the terminal barfs a bunch of C++ output with a block of execution errors that begin... | [
{
"content": "\"\"\"\nThis package contains implementations of various streaming corpus I/O format.\n\"\"\"\n\n# bring corpus classes directly into package namespace, to save some typing\nfrom .indexedcorpus import IndexedCorpus # must appear before the other classes\n\nfrom .mmcorpus import MmCorpus\nfrom .ble... | [
{
"content": "\"\"\"\nThis package contains implementations of various streaming corpus I/O format.\n\"\"\"\n\n# bring corpus classes directly into package namespace, to save some typing\nfrom .indexedcorpus import IndexedCorpus # must appear before the other classes\n\nfrom .mmcorpus import MmCorpus\nfrom .ble... | diff --git a/gensim/corpora/__init__.py b/gensim/corpora/__init__.py
index a577cdc59d..a11a0df229 100644
--- a/gensim/corpora/__init__.py
+++ b/gensim/corpora/__init__.py
@@ -15,4 +15,3 @@
from .textcorpus import TextCorpus
from .ucicorpus import UciCorpus
from .malletcorpus import MalletCorpus
-from .sharded_corpus... |
searx__searx-2358 | Bug in external command engine, resulting in engine crash.
**Version of Searx, commit number if you are using on master branch and stipulate if you forked Searx**
```
commit a0ddc27766271428d6f1f906c774cf6f5ccbf3fa (HEAD -> master)
Merge: 8c887382 cdceec1c
Author: Searx Service Account <searx@leandra.virtadpt.net>
... | [
{
"content": "'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed in the hope that it will b... | [
{
"content": "'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed in the hope that it will b... | diff --git a/searx/engines/command.py b/searx/engines/command.py
index 08ee5da06a..0268d52eb7 100644
--- a/searx/engines/command.py
+++ b/searx/engines/command.py
@@ -80,7 +80,7 @@ def search(query, params):
def _get_command_to_run(query):
- params = shlex_split(query.decode('utf-8'))
+ params = shlex_split(... |
googleapis__google-cloud-python-1865 | Read the Docs build failing
https://readthedocs.org/projects/gcloud-python/builds/4108022/
https://readthedocs.org/projects/gcloud-python/builds/4108027/
| [
{
"content": "import os\nimport sys\n\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\nwith open(os.path.join(here, 'README.rst')) as f:\n README = f.read()\n\n\nREQUIREMENTS = [\n 'httplib2 >= 0.9.1',\n 'googleapis-common-pro... | [
{
"content": "import os\nimport sys\n\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\nwith open(os.path.join(here, 'README.rst')) as f:\n README = f.read()\n\n\nREQUIREMENTS = [\n 'httplib2 >= 0.9.1',\n 'googleapis-common-pro... | diff --git a/setup.py b/setup.py
index 977dd551523d..6757414aa0b0 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@
'gax-google-pubsub-v1',
]
-if sys.version_info[:2] == (2, 7):
+if sys.version_info[:2] == (2, 7) and 'READTHEDOCS' not in os.environ:
REQUIREMENTS.extend(GRPC_EXTRAS)
setup(
|
pyro-ppl__pyro-3164 | PyTorch 2.0 compatibility: Explicit PyTorch 1.x check causing issues with packages that depend on PyTorch / pyro (e.g. BoTorch)
### Issue Description
The explicit check for PyTorch 1.x here (https://github.com/pyro-ppl/pyro/blob/dev/pyro/distributions/torch_patch.py#L10) is causing problems when another package has a ... | [
{
"content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nimport functools\nimport math\nimport weakref\n\nimport torch\n\nassert torch.__version__.startswith(\"1.\")\n\n\ndef patch_dependency(target, root_module=torch):\n parts = target.split(\".\")\n asser... | [
{
"content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nimport functools\nimport math\nimport weakref\n\nimport torch\n\n\ndef patch_dependency(target, root_module=torch):\n parts = target.split(\".\")\n assert parts[0] == root_module.__name__\n module ... | diff --git a/pyro/distributions/torch_patch.py b/pyro/distributions/torch_patch.py
index 55d98f6650..cad559b3cf 100644
--- a/pyro/distributions/torch_patch.py
+++ b/pyro/distributions/torch_patch.py
@@ -7,8 +7,6 @@
import torch
-assert torch.__version__.startswith("1.")
-
def patch_dependency(target, root_modul... |
facebookresearch__nevergrad-705 | Wrong dates in changelog
All the dates at https://github.com/facebookresearch/nevergrad/blob/master/CHANGELOG.md shows 2019, but seems it should be 2020.
| [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\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\n# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a sel... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\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\n# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a sel... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a99352abc..c178866e0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,7 +11,7 @@
and [#691](https://github.com/facebookresearch/nevergrad/pull/691).
-## 0.4.1 (2019-05-07)
+## 0.4.1 (2020-05-07)
- `Archive` now stores the best corresponding candidate. This req... |
Kinto__kinto-981 | JSON Merge Patch deserialization is broken
Merge-patch operations are broken. It looks like a deserialization problem, which may have been introduced with #790. Also, we should definitely include some view tests for this content-type. My bad :/
```
echo '{"data": {"aaa": "bbb"}}' | http patch localhost:8888/v... | [
{
"content": "import platform\nimport codecs\nimport os\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read_file(filename):\n \"\"\"Open a related file and return its content.\"\"\"\n with codecs.open(os.path.join(here, filename), encoding='utf-8... | [
{
"content": "import platform\nimport codecs\nimport os\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read_file(filename):\n \"\"\"Open a related file and return its content.\"\"\"\n with codecs.open(os.path.join(here, filename), encoding='utf-8... | diff --git a/requirements.txt b/requirements.txt
index 0b8b3bff7..aea371fa8 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,7 +1,7 @@
colander==1.3.1
colorama==0.3.7
contextlib2==0.5.4
-cornice==2.1.0
+cornice==2.3.0
enum34==1.1.6
functools32==3.2.3.post2
futures==3.0.5
diff --git a/setup.py b/setup.py... |
freedomofpress__securedrop-5236 | qa_loader.py uses a fixed random seed every run
## Description
Always using the same seed makes it impossible to run `qa_loader.py` multiple times with the same database, as supposedly random values aren't, causing unique constraint violations.
## Steps to Reproduce
- Run the dev server with `make dev`
- Star... | [
{
"content": "#!/opt/venvs/securedrop-app-code/bin/python\n# -*- coding: utf-8 -*-\n\nimport os\nimport random\nimport string\nimport sys\nfrom argparse import ArgumentParser\nfrom datetime import datetime\nfrom itertools import cycle\nfrom os import path\n\nfrom flask import current_app\n\nfrom crypto_util imp... | [
{
"content": "#!/opt/venvs/securedrop-app-code/bin/python\n# -*- coding: utf-8 -*-\n\nimport os\nimport random\nimport string\nimport sys\nfrom argparse import ArgumentParser\nfrom datetime import datetime\nfrom itertools import cycle\nfrom os import path\n\nfrom flask import current_app\n\nfrom crypto_util imp... | diff --git a/securedrop/qa_loader.py b/securedrop/qa_loader.py
index 8f76be13e1..c4fa054da9 100755
--- a/securedrop/qa_loader.py
+++ b/securedrop/qa_loader.py
@@ -19,9 +19,6 @@
from sdconfig import config as sdconfig
-random.seed("~(=^–^)") # mrow?
-
-
def random_bool():
return bool(random.getrandbits(1))
... |
apache__airflow-14978 | Bump supported mysqlclient to <1.5
**Description**
version 1.4.X introduced in Jan 2019
we should support it if we can.
**Use case / motivation**
pin of <1.4 was done in https://github.com/apache/airflow/pull/4558 due to lack of Python 2 compatibility. Since Master doesn't support Python 2 anymore there ... | [
{
"content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th... | [
{
"content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th... | diff --git a/docs/apache-airflow-providers-mysql/index.rst b/docs/apache-airflow-providers-mysql/index.rst
index 12a21edab4f68..ad46fd87e928b 100644
--- a/docs/apache-airflow-providers-mysql/index.rst
+++ b/docs/apache-airflow-providers-mysql/index.rst
@@ -93,7 +93,7 @@ PIP requirements
PIP package Ver... |
ManimCommunity__manim-3166 | Not all arrow tips are accessible
## Description of bug / unexpected behavior
<!-- Add a clear and concise description of the problem you encountered. -->
The [manim.mobject.geometry.tips](https://docs.manim.community/en/stable/_modules/manim/mobject/geometry/tips.html#ArrowTriangleFilledTip) file has presents of som... | [
{
"content": "r\"\"\"A collection of tip mobjects for use with :class:`~.TipableVMobject`.\"\"\"\n\nfrom __future__ import annotations\n\n__all__ = [\n \"ArrowTip\",\n \"ArrowCircleFilledTip\",\n \"ArrowCircleTip\",\n \"ArrowSquareTip\",\n \"ArrowSquareFilledTip\",\n]\n\nimport numpy as np\n\nfro... | [
{
"content": "r\"\"\"A collection of tip mobjects for use with :class:`~.TipableVMobject`.\"\"\"\n\nfrom __future__ import annotations\n\n__all__ = [\n \"ArrowTip\",\n \"ArrowCircleFilledTip\",\n \"ArrowCircleTip\",\n \"ArrowSquareTip\",\n \"ArrowSquareFilledTip\",\n \"ArrowTriangleTip\",\n ... | diff --git a/manim/mobject/geometry/tips.py b/manim/mobject/geometry/tips.py
index b25a5a5380..0c82697fdc 100644
--- a/manim/mobject/geometry/tips.py
+++ b/manim/mobject/geometry/tips.py
@@ -8,6 +8,8 @@
"ArrowCircleTip",
"ArrowSquareTip",
"ArrowSquareFilledTip",
+ "ArrowTriangleTip",
+ "ArrowTriang... |
NVIDIA__apex-564 | RuntimeError: "GeluCUDAKernelImpl" not implemented for 'Half'
PyTorch 1.2 introduced the `gelu` activation function. Unfortunately, this leads to terminal errors when using with AMP.
Trace (`self.activation` is `gelu`):
```
Traceback (most recent call last):
File "predict.py", line 282, in <module>
pred... | [
{
"content": "\n# TODO: think about the following two. They do weird things.\n# - torch.nn.utils.clip_grad (but it should always be fp32 anyway)\n# - torch.nn.utils.weight_norm\n\n# Notes:\n# F.instance_norm uses batch_norm internally. Which correctly handles\n# fp16 in/out with fp32 weights. So we shouldn't ... | [
{
"content": "\n# TODO: think about the following two. They do weird things.\n# - torch.nn.utils.clip_grad (but it should always be fp32 anyway)\n# - torch.nn.utils.weight_norm\n\n# Notes:\n# F.instance_norm uses batch_norm internally. Which correctly handles\n# fp16 in/out with fp32 weights. So we shouldn't ... | diff --git a/apex/amp/lists/functional_overrides.py b/apex/amp/lists/functional_overrides.py
index 3ea6a4918..d1dfcd0ea 100644
--- a/apex/amp/lists/functional_overrides.py
+++ b/apex/amp/lists/functional_overrides.py
@@ -37,7 +37,8 @@
'softmin',
'log_softmax',
'softmax',
-
+ 'gelu',
+
# Norma... |
vyperlang__vyper-3207 | variables named `UNREACHABLE` can be shadowed by `raise`and `assert` when used with `UNREACHABLE`
### Version Information
* vyper Version (output of `vyper --version`): 0.3.8+commit.6020b8bb
* OS: OSX
* Python Version (output of `python --version`): 3.8.0
### What's your issue about?
`UNREACHABLE` is not a r... | [
{
"content": "import contextlib\nimport re\n\nfrom vyper.evm.opcodes import OPCODES\nfrom vyper.exceptions import (\n CompilerPanic,\n NamespaceCollision,\n StructureException,\n UndeclaredDefinition,\n)\nfrom vyper.semantics.analysis.levenshtein_utils import get_levenshtein_error_suggestions\n\n\nc... | [
{
"content": "import contextlib\nimport re\n\nfrom vyper.evm.opcodes import OPCODES\nfrom vyper.exceptions import (\n CompilerPanic,\n NamespaceCollision,\n StructureException,\n UndeclaredDefinition,\n)\nfrom vyper.semantics.analysis.levenshtein_utils import get_levenshtein_error_suggestions\n\n\nc... | diff --git a/vyper/semantics/namespace.py b/vyper/semantics/namespace.py
index 5aa530ea01..752ef7ad96 100644
--- a/vyper/semantics/namespace.py
+++ b/vyper/semantics/namespace.py
@@ -158,6 +158,7 @@ def validate_identifier(attr):
"assert",
"raise",
"throw",
+ "unreachable",
# special functions (n... |
django__channels-1223 | InMemoryChannelLayer: unused variable local_poll_interval
https://github.com/django/channels/blob/5feecdb6a0df720651851f377aee3587d07eceef/channels/layers.py#L199
| [
{
"content": "from __future__ import unicode_literals\n\nimport asyncio\nimport fnmatch\nimport random\nimport re\nimport string\nimport time\nfrom copy import deepcopy\n\nfrom django.conf import settings\nfrom django.core.signals import setting_changed\nfrom django.utils.module_loading import import_string\n\n... | [
{
"content": "from __future__ import unicode_literals\n\nimport asyncio\nimport fnmatch\nimport random\nimport re\nimport string\nimport time\nfrom copy import deepcopy\n\nfrom django.conf import settings\nfrom django.core.signals import setting_changed\nfrom django.utils.module_loading import import_string\n\n... | diff --git a/channels/layers.py b/channels/layers.py
index d8d4ff591..5223d69b1 100644
--- a/channels/layers.py
+++ b/channels/layers.py
@@ -196,8 +196,6 @@ class InMemoryChannelLayer(BaseChannelLayer):
In-memory channel layer implementation
"""
- local_poll_interval = 0.01
-
def __init__(
... |
kivy__python-for-android-2436 | "diff" files are ignored during "pip install ."
in `setup.py` the "diff" is not listed:
https://github.com/kivy/python-for-android/blob/develop/setup.py
```python
package_data = {'': ['*.tmpl',
'*.patch', ], }
```
and therefore this `diff` patch:
https://github.com/kivy/python-for-android... | [
{
"content": "\nimport glob\nfrom io import open # for open(..,encoding=...) parameter in python 2\nfrom os import walk\nfrom os.path import join, dirname, sep\nimport re\nfrom setuptools import setup, find_packages\n\n# NOTE: All package data should also be set in MANIFEST.in\n\npackages = find_packages()\n\n... | [
{
"content": "\nimport glob\nfrom io import open # for open(..,encoding=...) parameter in python 2\nfrom os import walk\nfrom os.path import join, dirname, sep\nimport re\nfrom setuptools import setup, find_packages\n\n# NOTE: All package data should also be set in MANIFEST.in\n\npackages = find_packages()\n\n... | diff --git a/setup.py b/setup.py
index 25e4a0d041..2d056124a1 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,8 @@
packages = find_packages()
package_data = {'': ['*.tmpl',
- '*.patch', ], }
+ '*.patch',
+ '*.diff', ], }
data_files = []
|
ranaroussi__yfinance-295 | Deprecation warning due to invalid escape sequences
Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. pyupgrade also helps in automatic conversion : https://github.com/asottile/pyupgrade/
```
find . -iname '*.py' | grep -Ev 'test.py' | ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Yahoo! Finance market data downloader (+fix for Pandas Datareader)\n# https://github.com/ranaroussi/yfinance\n#\n# Copyright 2017-2019 Ran Aroussi\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this fi... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Yahoo! Finance market data downloader (+fix for Pandas Datareader)\n# https://github.com/ranaroussi/yfinance\n#\n# Copyright 2017-2019 Ran Aroussi\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this fi... | diff --git a/yfinance/utils.py b/yfinance/utils.py
index 53fdc0808..79ee9cfc5 100644
--- a/yfinance/utils.py
+++ b/yfinance/utils.py
@@ -64,7 +64,7 @@ def get_json(url, proxy=None):
def camel2title(o):
- return [_re.sub("([a-z])([A-Z])", "\g<1> \g<2>", i).title() for i in o]
+ return [_re.sub("([a-z])([A-Z])... |
google__turbinia-1070 | Missing sys module import in logger.py
Logger module is missing an import statement for 'sys'
| [
{
"content": "# -*- coding: utf-8 -*-\n# 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# U... | [
{
"content": "# -*- coding: utf-8 -*-\n# 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# U... | diff --git a/turbinia/config/logger.py b/turbinia/config/logger.py
index 2d10830bf..f15f39756 100644
--- a/turbinia/config/logger.py
+++ b/turbinia/config/logger.py
@@ -20,6 +20,7 @@
import warnings
import logging.handlers
import os
+import sys
from turbinia import config
from turbinia import TurbiniaException
|
scikit-image__scikit-image-1124 | NameError on del version when init has ImportError
In `__init__.py`, `del version` gives `NameError` when `ImportError` happens.
```
try:
from .version import version as __version__
except ImportError:
__version__ = "unbuilt-dev"
del version
```
should be
```
try:
from .version import version as __versio... | [
{
"content": "\"\"\"Image Processing SciKit (Toolbox for SciPy)\n\n``scikit-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 need... | [
{
"content": "\"\"\"Image Processing SciKit (Toolbox for SciPy)\n\n``scikit-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 need... | diff --git a/skimage/__init__.py b/skimage/__init__.py
index 59c80ed2c15..d1f98ff7484 100644
--- a/skimage/__init__.py
+++ b/skimage/__init__.py
@@ -69,7 +69,8 @@
from .version import version as __version__
except ImportError:
__version__ = "unbuilt-dev"
-del version
+else:
+ del version
try:
|
ethereum__web3.py-3083 | RuntimeError: release unlocked lock
* Version: 6.8.0
* Python: 3.11.1
* OS: linux
* `pip freeze` output
```
pip freeze 4167ms
aiofiles==23.1.0
aiohttp==3.8.5
aiosignal==1.3.1
alembic==1.11.3
async-timeout==4.0.2
asyncpg... | [
{
"content": "import asyncio\nfrom concurrent.futures import (\n ThreadPoolExecutor,\n)\nimport contextlib\nimport threading\nfrom typing import (\n AsyncGenerator,\n)\n\n\n@contextlib.asynccontextmanager\nasync def async_lock(\n thread_pool: ThreadPoolExecutor, lock: threading.Lock\n) -> AsyncGenerato... | [
{
"content": "import asyncio\nfrom concurrent.futures import (\n ThreadPoolExecutor,\n)\nimport contextlib\nimport threading\nfrom typing import (\n AsyncGenerator,\n)\n\n\n@contextlib.asynccontextmanager\nasync def async_lock(\n thread_pool: ThreadPoolExecutor, lock: threading.Lock\n) -> AsyncGenerato... | diff --git a/newsfragments/3083.bugfix.rst b/newsfragments/3083.bugfix.rst
new file mode 100644
index 0000000000..4845959fd0
--- /dev/null
+++ b/newsfragments/3083.bugfix.rst
@@ -0,0 +1 @@
+Only release ``async_lock`` if it's locked to begin with.
diff --git a/web3/_utils/async_caching.py b/web3/_utils/async_caching.py... |
edgedb__edgedb-1057 | Bad pretty printing of datetime
Here is what I get:
```
edgedb> SELECT <datetime>'2020-01-08T17:03:06.026178+00:00';
{<local_date>'2020-01-08T17:03:06.026178+00:00'}
```
Well the `datetime` in python is a subclass of `date` but `singledispatch` is supposed to handle that well. Do we have a patched singledispatch n... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2019-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 2019-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/repl/render_binary.py b/edb/repl/render_binary.py
index 134f4fd2d94..54a61f5feb4 100644
--- a/edb/repl/render_binary.py
+++ b/edb/repl/render_binary.py
@@ -275,6 +275,7 @@ def _empty(
buf.write('{}', style.bracket)
+@walk.register
def _datetime(
o: datetime.datetime,
repl_ctx: conte... |
sopel-irc__sopel-1044 | [announce] Send confirmation to caller after all channels announced
When Sopel is in many channels, announces are likely to be rate-limited. This makes it hard to know, for example, when it's safe to shut down the bot if announce is being used to broadcast an upgrade notice.
It's an easy fix, and I'll open a PR for it... | [
{
"content": "# coding=utf-8\n\"\"\"\nannounce.py - Send a message to all channels\nCopyright © 2013, Elad Alfassa, <elad@fedoraproject.org>\nLicensed under the Eiffel Forum License 2.\n\n\"\"\"\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nfrom sopel.module import comma... | [
{
"content": "# coding=utf-8\n\"\"\"\nannounce.py - Send a message to all channels\nCopyright © 2013, Elad Alfassa, <elad@fedoraproject.org>\nLicensed under the Eiffel Forum License 2.\n\n\"\"\"\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nfrom sopel.module import comma... | diff --git a/sopel/modules/announce.py b/sopel/modules/announce.py
index 2b3df4bc60..0f3f217ace 100644
--- a/sopel/modules/announce.py
+++ b/sopel/modules/announce.py
@@ -21,3 +21,4 @@ def announce(bot, trigger):
return
for channel in bot.channels:
bot.msg(channel, '[ANNOUNCEMENT] %s' % trigger.g... |
sanic-org__sanic-1343 | Pin versions for LTS release
I think that versions of (some) should be allowed to float but when we are ready for an LTS release, the versions should be pinned at that time.
@r0fls @ahopkins @seemethere @ashleysommer @yunstanford @ahopkins
| [
{
"content": "\"\"\"\nSanic\n\"\"\"\nimport codecs\nimport os\nimport re\nfrom distutils.errors import DistutilsPlatformError\nfrom distutils.util import strtobool\n\nfrom setuptools import setup\n\n\ndef open_local(paths, mode='r', encoding='utf8'):\n path = os.path.join(\n os.path.abspath(os.path.di... | [
{
"content": "\"\"\"\nSanic\n\"\"\"\nimport codecs\nimport os\nimport re\nfrom distutils.errors import DistutilsPlatformError\nfrom distutils.util import strtobool\n\nfrom setuptools import setup\n\n\ndef open_local(paths, mode='r', encoding='utf8'):\n path = os.path.join(\n os.path.abspath(os.path.di... | diff --git a/environment.yml b/environment.yml
index 9f416c0e33..e13c76fe9a 100644
--- a/environment.yml
+++ b/environment.yml
@@ -12,7 +12,7 @@ dependencies:
- zlib=1.2.8=0
- pip:
- uvloop>=0.5.3
- - httptools>=0.0.9
+ - httptools>=0.0.10
- ujson>=1.35
- aiofiles>=0.3.0
- websockets>=3.2
diff --git a/r... |
AnalogJ__lexicon-479 | GoDaddy provider should recognize domaincontrol.com as its nameserver
For the auto provider, it should recognize that domains managed by GoDaddy often have nameservers under the *.domaincontrol.com namespace. You can verify this is GoDaddy via whois; and I also tested this by adding 'domaincontrol.com' to the recogniz... | [
{
"content": "\"\"\"Module provider for Godaddy\"\"\"\nfrom __future__ import absolute_import\nimport hashlib\nimport json\nimport logging\n\nimport requests\nfrom requests.adapters import HTTPAdapter\nfrom urllib3.util.retry import Retry\n\nfrom lexicon.providers.base import Provider as BaseProvider\n\n\nLOGGE... | [
{
"content": "\"\"\"Module provider for Godaddy\"\"\"\nfrom __future__ import absolute_import\nimport hashlib\nimport json\nimport logging\n\nimport requests\nfrom requests.adapters import HTTPAdapter\nfrom urllib3.util.retry import Retry\n\nfrom lexicon.providers.base import Provider as BaseProvider\n\n\nLOGGE... | diff --git a/lexicon/providers/godaddy.py b/lexicon/providers/godaddy.py
index cb1703f68..26c3da0f3 100644
--- a/lexicon/providers/godaddy.py
+++ b/lexicon/providers/godaddy.py
@@ -13,7 +13,7 @@
LOGGER = logging.getLogger(__name__)
-NAMESERVER_DOMAINS = ['godaddy.com']
+NAMESERVER_DOMAINS = ['godaddy.com', 'domain... |
zigpy__zha-device-handlers-4 | Missing import for types breaking LocalDataCluster
| [
{
"content": "import importlib\nimport pkgutil\nfrom zigpy.quirks import CustomCluster\nfrom zigpy.util import ListenableMixin\n\nUNKNOWN = 'Unknown'\n\n\nclass Bus(ListenableMixin):\n\n def __init__(self, *args, **kwargs):\n super().__init__(*args, **kwargs)\n self._listeners = {}\n\n\nclass L... | [
{
"content": "import importlib\nimport pkgutil\nfrom zigpy.quirks import CustomCluster\nfrom zigpy.util import ListenableMixin\nimport zigpy.types as types\n\nUNKNOWN = 'Unknown'\n\n\nclass Bus(ListenableMixin):\n\n def __init__(self, *args, **kwargs):\n super().__init__(*args, **kwargs)\n self... | diff --git a/zhaquirks/__init__.py b/zhaquirks/__init__.py
index 571c1f5605..36bf731e71 100644
--- a/zhaquirks/__init__.py
+++ b/zhaquirks/__init__.py
@@ -2,6 +2,7 @@
import pkgutil
from zigpy.quirks import CustomCluster
from zigpy.util import ListenableMixin
+import zigpy.types as types
UNKNOWN = 'Unknown'
|
scikit-image__scikit-image-2821 | Performance regression in morphology.watershed from 0.12.3 to 0.13.0
## Description
Great performance degradation in skimage.morphology.watershed for ver. 0.13.0 in comparison with ver. 0.12.3.
3D images with size about (500, 500, 500) were testes.
## Way to reproduce
```
import numpy as np
from scipy import nd... | [
{
"content": "\"\"\"watershed.py - watershed algorithm\n\nThis module implements a watershed algorithm that apportions pixels into\nmarked basins. The algorithm uses a priority queue to hold the pixels\nwith the metric for the priority queue being pixel value, then the time\nof entry into the queue - this settl... | [
{
"content": "\"\"\"watershed.py - watershed algorithm\n\nThis module implements a watershed algorithm that apportions pixels into\nmarked basins. The algorithm uses a priority queue to hold the pixels\nwith the metric for the priority queue being pixel value, then the time\nof entry into the queue - this settl... | diff --git a/skimage/morphology/_watershed.pyx b/skimage/morphology/_watershed.pyx
index 5d31fe76560..f7f9e1f1f5f 100644
--- a/skimage/morphology/_watershed.pyx
+++ b/skimage/morphology/_watershed.pyx
@@ -23,6 +23,7 @@ ctypedef cnp.int8_t DTYPE_BOOL_t
include "heap_watershed.pxi"
+@cython.wraparound(False)
@cytho... |
spacetelescope__jwql-550 | Cron jobs for monitors currently failing
Traceback (most recent call last):
File "/home/jwqladm/repositories/jwql/jwql/instrument_monitors/common_monitors/bias_monitor.py", line 58, in <module>
from jwql.instrument_monitors.common_monitors.dark_monitor import mast_query_darks
File "/home/jwqladm/repositorie... | [
{
"content": "import numpy as np\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nVERSION = '0.22.0'\n\nAUTHORS = 'Matthew Bourque, Misty Cracraft, Joe Filippazzo, Bryan Hilbert, '\nAUTHORS += 'Graham Kanarek, Catherine Martlin, Johannes Sahlmann, Ben Sunnquist'\n\nDESCRIPTION = 'The James... | [
{
"content": "import numpy as np\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nVERSION = '0.22.0'\n\nAUTHORS = 'Matthew Bourque, Misty Cracraft, Joe Filippazzo, Bryan Hilbert, '\nAUTHORS += 'Graham Kanarek, Catherine Martlin, Johannes Sahlmann, Ben Sunnquist'\n\nDESCRIPTION = 'The James... | diff --git a/environment_python_3_6.yml b/environment_python_3_6.yml
index d00a53d5f..2d7ca225a 100644
--- a/environment_python_3_6.yml
+++ b/environment_python_3_6.yml
@@ -3,7 +3,7 @@ channels:
- http://ssb.stsci.edu/astroconda
dependencies:
- astroquery=0.3.10
-- bokeh=1.4.0
+- bokeh>=1.0,<1.4
- django=2.2.5
- f... |
blaze__blaze-873 | Pandas Boolean Arithmetic Display
Boolean arithmetic with a `Data(pandas.DataFrame)` seems to mess up its interactive display, but the actual expression is fully funcitonal.
``` Python
>>> import blaze as bz
>>> import pandas as pd
>>> data = bz.Data(pd.read_csv("iris.csv"))
>>> data
SepalLength SepalWidth Petal... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport operator\nfrom toolz import first\nimport numpy as np\nfrom datashape import dshape, var, DataShape\nfrom dateutil.parser import parse as dt_parse\nfrom datashape.predicates import isscalar\nfrom datashape import coretypes ... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport operator\nfrom toolz import first\nimport numpy as np\nfrom datashape import dshape, var, DataShape\nfrom dateutil.parser import parse as dt_parse\nfrom datashape.predicates import isscalar\nfrom datashape import coretypes ... | diff --git a/blaze/expr/arithmetic.py b/blaze/expr/arithmetic.py
index d829b2e64..40a40dd0f 100644
--- a/blaze/expr/arithmetic.py
+++ b/blaze/expr/arithmetic.py
@@ -46,6 +46,8 @@ def _name(self):
return l
if r and not l:
return r
+ if l == r:
+ return l
@prope... |
OctoPrint__OctoPrint-407 | Support circular beds in g-code visualiser
With delta printers we have center of bed at center of coordinate system. So now in G-code visualizer i get my objects in corner of bed. Pronterface has offset or center setting for this case, and repetier host has just checkbox "origin in center of bed" or similar.
Also woul... | [
{
"content": "# coding=utf-8\n__author__ = \"Gina Häußge <osd@foosel.net>\"\n__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'\n\nimport sys\nimport os\nimport yaml\nimport logging\nimport re\nimport uuid\n\nAPPNAME=\"OctoPrint\"\n\ninstance = None\n\ndef settings(init=Fals... | [
{
"content": "# coding=utf-8\n__author__ = \"Gina Häußge <osd@foosel.net>\"\n__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'\n\nimport sys\nimport os\nimport yaml\nimport logging\nimport re\nimport uuid\n\nAPPNAME=\"OctoPrint\"\n\ninstance = None\n\ndef settings(init=Fals... | diff --git a/src/octoprint/settings.py b/src/octoprint/settings.py
index 3c796e678b..8c2684bf0f 100644
--- a/src/octoprint/settings.py
+++ b/src/octoprint/settings.py
@@ -97,7 +97,7 @@ def settings(init=False, configfile=None, basedir=None):
{"x": 0.0, "y": 0.0}
],
"bedDimensions": {
- "x": 200.0, "y": 200.... |
NVIDIA__NVFlare-1314 | [BUG] Command "nvflare" not found
Unfortunately I can't run nvflare on Ubuntu because it tells me that the command (`nvflare simulator -h`) is not found. Even if I use the Docker solution. Inside the docker it also shows "command not found". Thus unable to run local experiments.
I tried the MWE from https://nvflare... | [
{
"content": "# Copyright (c) 2021, NVIDIA CORPORATION.\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 require... | [
{
"content": "# Copyright (c) 2021, NVIDIA CORPORATION.\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 require... | diff --git a/docs/conf.py b/docs/conf.py
index 8c2b6cb40f..e3989174fd 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -76,6 +76,7 @@ def resolve_xref(self, env, fromdocname, builder, typ, target, node, contnode):
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
"sphinx.ext.autosectionlabel",
+ "sphinx_cop... |
numpy__numpy-3055 | 2to3 run `execfile` fixer
| [
{
"content": "#!/usr/bin/env python\n\"\"\"\nA setup.py script to use setuptools, which gives egg goodness, etc.\n\nThis is used to build installers for OS X through bdist_mpkg.\n\nNotes\n-----\nUsing ``python setupegg.py install`` directly results in file permissions being\nset wrong, with nose refusing to run... | [
{
"content": "#!/usr/bin/env python\n\"\"\"\nA setup.py script to use setuptools, which gives egg goodness, etc.\n\nThis is used to build installers for OS X through bdist_mpkg.\n\nNotes\n-----\nUsing ``python setupegg.py install`` directly results in file permissions being\nset wrong, with nose refusing to run... | diff --git a/setupegg.py b/setupegg.py
index 3ed1e0b0bc70..82b35fd696f6 100755
--- a/setupegg.py
+++ b/setupegg.py
@@ -21,4 +21,4 @@
setupfile = imp.load_source('setupfile', 'setup.py')
setupfile.setup_package()
else:
- execfile('setup.py')
+ exec(compile(open('setup.py').read(), 'setup.py', 'exec'))
|
mozilla__bugbug-3921 | [model:regressor] AttributeError: 'IsotonicRegressionCalibrator' object has no attribute 'n_features_in_'
https://community-tc.services.mozilla.com/tasks/HncpjvKKRcSnxL_GJ8PV9A/runs/0/logs/public/logs/live.log
```
Traceback (most recent call last):
File "/usr/local/bin/bugbug-train", line 8, in <module>
sys.e... | [
{
"content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nfrom sklearn.base import BaseEstimator, ClassifierMixin\nfrom sklearn... | [
{
"content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nfrom sklearn.base import BaseEstimator, ClassifierMixin\nfrom sklearn... | diff --git a/bugbug/model_calibration.py b/bugbug/model_calibration.py
index 2d2f2398d3..5643706d29 100644
--- a/bugbug/model_calibration.py
+++ b/bugbug/model_calibration.py
@@ -27,3 +27,7 @@ def predict(self, X):
def predict_proba(self, X):
return self.calibrated_clf.predict_proba(X)
+
+ @property
... |
statsmodels__statsmodels-2279 | version number convention pep-440
https://github.com/scipy/scipy/pull/4307
just changes a `-` to `+`
we need the same change
line 228 in setup.py `FULLVERSION += '.dev-' + GIT_REVISION[:7]`
I have no idea if we need anything else
| [
{
"content": "\"\"\"\nMuch of the build system code was adapted from work done by the pandas\ndevelopers [1], which was in turn based on work done in pyzmq [2] and lxml [3].\n\n[1] http://pandas.pydata.org\n[2] http://zeromq.github.io/pyzmq/\n[3] http://lxml.de/\n\"\"\"\n\nimport os\nfrom os.path import relpath... | [
{
"content": "\"\"\"\nMuch of the build system code was adapted from work done by the pandas\ndevelopers [1], which was in turn based on work done in pyzmq [2] and lxml [3].\n\n[1] http://pandas.pydata.org\n[2] http://zeromq.github.io/pyzmq/\n[3] http://lxml.de/\n\"\"\"\n\nimport os\nfrom os.path import relpath... | diff --git a/setup.py b/setup.py
index 9ba11cdc2ec..07e9708cf7e 100644
--- a/setup.py
+++ b/setup.py
@@ -225,7 +225,7 @@ def write_version_py(filename=pjoin(curdir, 'statsmodels/version.py')):
GIT_REVISION = "Unknown"
if not ISRELEASED:
- FULLVERSION += '.dev-' + GIT_REVISION[:7]
+ FULLVER... |
pypa__pipenv-5495 | Include missing package data for Safety
### The issue
#5491
### The fix
Include the missing package data for Safety.
### The checklist
* [ ] Build wheels and test if it is working fine.
<!--
### If this is a patch to the `vendor` directory...
Please try to refrain from submitting patches directly... | [
{
"content": "#!/usr/bin/env python\nimport codecs\nimport os\nimport sys\n\nfrom setuptools import find_packages, setup\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith codecs.open(os.path.join(here, \"README.md\"), encoding=\"utf-8\") as f:\n long_description = \"\\n\" + f.read()\n\nabout = {}\... | [
{
"content": "#!/usr/bin/env python\nimport codecs\nimport os\nimport sys\n\nfrom setuptools import find_packages, setup\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith codecs.open(os.path.join(here, \"README.md\"), encoding=\"utf-8\") as f:\n long_description = \"\\n\" + f.read()\n\nabout = {}\... | diff --git a/setup.py b/setup.py
index 73d52ff3d9..beb4818108 100644
--- a/setup.py
+++ b/setup.py
@@ -67,6 +67,7 @@
"w32.exe",
"w64.exe",
],
+ "pipenv.vendor.ruamel": ["yaml"],
},
python_requires=">=3.7",
zip_safe=True,
|
python-telegram-bot__python-telegram-bot-1485 | Use UTC dates
https://github.com/python-telegram-bot/python-telegram-bot/blob/439790375ed8ed493c43e464aa8e2b60a77939db/telegram/utils/helpers.py#L78-L90
Should probably be using `tz=timezone.utc`. Python's `datetime` isn't the best, and `fromtimestamp` by default sets no `tz` information, which uses the local time, ... | [
{
"content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2018\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub... | [
{
"content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2018\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub... | diff --git a/telegram/utils/helpers.py b/telegram/utils/helpers.py
index 740c19ff1bd..c7697db4239 100644
--- a/telegram/utils/helpers.py
+++ b/telegram/utils/helpers.py
@@ -87,7 +87,7 @@ def from_timestamp(unixtime):
if not unixtime:
return None
- return datetime.fromtimestamp(unixtime)
+ return d... |
rasterio__rasterio-1305 | Add `GetMetadataItem` like method
Ref: https://github.com/mapbox/rasterio/issues/1077,
I'm proposing to add a new method in https://github.com/mapbox/rasterio/blob/master/rasterio/_base.pyx to replicate GDAL GetMetadataItem
**Method Name:** `get_metadata_item` or `get_metadata`
**Why:** I need to be able to ... | [
{
"content": "\"\"\"Errors and Warnings.\"\"\"\n\nfrom click import FileError\n\n\nclass RasterioError(Exception):\n \"\"\"Root exception class\"\"\"\n\n\nclass WindowError(RasterioError):\n \"\"\"Raised when errors occur during window operations\"\"\"\n\n\nclass CRSError(ValueError):\n \"\"\"Raised wh... | [
{
"content": "\"\"\"Errors and Warnings.\"\"\"\n\nfrom click import FileError\n\n\nclass RasterioError(Exception):\n \"\"\"Root exception class\"\"\"\n\n\nclass WindowError(RasterioError):\n \"\"\"Raised when errors occur during window operations\"\"\"\n\n\nclass CRSError(ValueError):\n \"\"\"Raised wh... | diff --git a/rasterio/_base.pyx b/rasterio/_base.pyx
index 4677caf4c..dcc7d6393 100644
--- a/rasterio/_base.pyx
+++ b/rasterio/_base.pyx
@@ -25,8 +25,8 @@ from rasterio.enums import (
ColorInterp, Compression, Interleaving, MaskFlags, PhotometricInterp)
from rasterio.env import Env
from rasterio.errors import (
... |
adamchainz__django-perf-rec-320 | Doesn't capture cache.get_or_set
I would expect that `cache.get_or_set` either be recorded as a `get` and (optionally) a `set`, or perhaps as its own entry. Instead it seems to be ignored completely:
``` python
class TestCache(TestCase):
def test_get(self):
with django_perf_rec.record():
dj... | [
{
"content": "import inspect\nimport re\nimport traceback\nfrom collections.abc import Mapping, Sequence\nfrom functools import wraps\nfrom types import MethodType\n\nfrom django.core.cache import DEFAULT_CACHE_ALIAS, caches\n\nfrom django_perf_rec.operation import AllSourceRecorder, Operation\n\n\nclass CacheO... | [
{
"content": "import inspect\nimport re\nimport traceback\nfrom collections.abc import Mapping, Sequence\nfrom functools import wraps\nfrom types import MethodType\n\nfrom django.core.cache import DEFAULT_CACHE_ALIAS, caches\n\nfrom django_perf_rec.operation import AllSourceRecorder, Operation\n\n\nclass CacheO... | diff --git a/HISTORY.rst b/HISTORY.rst
index 479d3bb9..d15de7d0 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -2,6 +2,11 @@
History
=======
+* Correctly record calls to ``cache.get_or_set()``.
+
+ Thanks to Peter Law for the report in
+ `Issue #319 <https://github.com/adamchainz/django-perf-rec/issues/319>`__.
+
... |
jazzband__django-oauth-toolkit-1145 | Release of version 2.0.0
Hello everyone
I would like to know if there is any prediction for the 2.0.0 version to be released. Today it is unrealized in the doc, and has two vulnerability alerts for versions lower than it in the [safety](https://pyup.io/). Thank you!
| [
{
"content": "import django\n\n\n__version__ = \"1.7.1\"\n\nif django.VERSION < (3, 2):\n default_app_config = \"oauth2_provider.apps.DOTConfig\"\n",
"path": "oauth2_provider/__init__.py"
}
] | [
{
"content": "import django\n\n\n__version__ = \"2.0.0\"\n\nif django.VERSION < (3, 2):\n default_app_config = \"oauth2_provider.apps.DOTConfig\"\n",
"path": "oauth2_provider/__init__.py"
}
] | diff --git a/CHANGELOG.md b/CHANGELOG.md
index baae70de8..7819fe616 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,7 +16,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [unreleased]
-## [2.0.0] unreleased
+## [2.0.0] 2022-04-24
+
+This is a major release with **BREAKIN... |
frappe__frappe-17020 | Remove Share doesn't disappear
## Description of the issue
When the read Permission of a Share is removed by de-selecting the checkbox, then the corresponding DocShare is removed in the Backend, but the checkbox is automatically re-selected in the frontend. After a refresh, the share
## Context information (for... | [
{
"content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nimport frappe\nfrom frappe import _\nfrom frappe.desk.doctype.notification_log.notification_log import (\n\tenqueue_create_notification,\n\tget_title,\n\tget_title_html,\n)\nfrom frappe.desk.form.d... | [
{
"content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nimport frappe\nfrom frappe import _\nfrom frappe.desk.doctype.notification_log.notification_log import (\n\tenqueue_create_notification,\n\tget_title,\n\tget_title_html,\n)\nfrom frappe.desk.form.d... | diff --git a/frappe/share.py b/frappe/share.py
index 01d1412b8d8f..3edcb1be38c8 100644
--- a/frappe/share.py
+++ b/frappe/share.py
@@ -93,7 +93,7 @@ def set_permission(doctype, name, user, permission_to, value=1, everyone=0):
if not (share.read or share.write or share.submit or share.share):
share.delete()
- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.