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 ⌀ |
|---|---|---|---|---|
OpenNMT__OpenNMT-tf-222 | assert_state_is_compatible() cannot detect dimension difference between encoder_state and decoder_zero_state when encoder and decoder dimensions are not the same in NMTSmall model
I just followed the instructions on the page [http://opennmt.net/OpenNMT-tf/quickstart.html](http://opennmt.net/OpenNMT-tf/quickstart.html) ... | [
{
"content": "\"\"\"Define bridges: logic of passing the encoder state to the decoder.\"\"\"\n\nimport abc\nimport six\n\nimport tensorflow as tf\n\n\ndef assert_state_is_compatible(expected_state, state):\n \"\"\"Asserts that states are compatible.\n\n Args:\n expected_state: The reference state.\n sta... | [
{
"content": "\"\"\"Define bridges: logic of passing the encoder state to the decoder.\"\"\"\n\nimport abc\nimport six\n\nimport tensorflow as tf\n\n\ndef assert_state_is_compatible(expected_state, state):\n \"\"\"Asserts that states are compatible.\n\n Args:\n expected_state: The reference state.\n sta... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 23eec8144..1087f3a93 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,7 @@ OpenNMT-tf follows [semantic versioning 2.0.0](https://semver.org/). The API cov
### Fixes and improvements
* Fix possible error when loading checkpoints without `--model_type` or `--mo... |
encode__uvicorn-996 | websocket.disconnect events are not sent to applications when clients don’t close connections properly (wsproto only)
### Checklist
<!-- Please make sure you check all these items before submitting your bug report. -->
- [x] The bug is reproducible against the latest release and/or `master`.
- [x] There are no s... | [
{
"content": "import asyncio\nimport logging\nfrom urllib.parse import unquote\n\nimport h11\nimport wsproto\nfrom wsproto import ConnectionType, events\nfrom wsproto.connection import ConnectionState\nfrom wsproto.extensions import PerMessageDeflate\nfrom wsproto.utilities import RemoteProtocolError\n\nfrom uv... | [
{
"content": "import asyncio\nimport logging\nfrom urllib.parse import unquote\n\nimport h11\nimport wsproto\nfrom wsproto import ConnectionType, events\nfrom wsproto.connection import ConnectionState\nfrom wsproto.extensions import PerMessageDeflate\nfrom wsproto.utilities import RemoteProtocolError\n\nfrom uv... | diff --git a/setup.cfg b/setup.cfg
index 8ec8fbbf6..46f4e3b99 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -82,7 +82,7 @@ plugins =
[coverage:report]
precision = 2
-fail_under = 97.79
+fail_under = 97.82
show_missing = true
skip_covered = true
exclude_lines =
diff --git a/tests/protocols/test_websocket.py b/tests/p... |
ansible__ansible-modules-extras-2669 | modprobe: Call 'modprobe -r' instasd of 'rmmod' for absent?
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
modprobe
##### ANSIBLE VERSION
```
ansible 2.0.1.0
config file =
configured module search path = Default w/o overrides
```
##### CONFIGURATION
N/A
##### OS / ENVIRONMENT
N/A (linux target)
##### SUMM... | [
{
"content": "#!/usr/bin/python\n#coding: utf-8 -*-\n\n# (c) 2013, David Stygstra <david.stygstra@gmail.com>\n#\n# This file is part of Ansible\n#\n# This module 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 F... | [
{
"content": "#!/usr/bin/python\n#coding: utf-8 -*-\n\n# (c) 2013, David Stygstra <david.stygstra@gmail.com>\n#\n# This file is part of Ansible\n#\n# This module 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 F... | diff --git a/system/modprobe.py b/system/modprobe.py
index 94c1a70437b..1bb1d3f70b1 100644
--- a/system/modprobe.py
+++ b/system/modprobe.py
@@ -114,7 +114,7 @@ def main():
args['changed'] = True
elif args['state'] == 'absent':
if present:
- rc, _, err = module.run_command([module.... |
beetbox__beets-1682 | fetchart | tracks don't have cover, but beet says "...has album art"
Using the <code>fetchart</code> plugin to grab an image fails, because it still thinks my tracks still has albumart when indeed it doesn't.
Ofcourse, I then made sure there was no coverart
<code>$ beet clearart query</code>
and then then re-checked ... | [
{
"content": "# This file is part of beets.\n# Copyright 2015, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limita... | [
{
"content": "# This file is part of beets.\n# Copyright 2015, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limita... | diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py
index b807891e09..5ab07ce965 100644
--- a/beetsplug/fetchart.py
+++ b/beetsplug/fetchart.py
@@ -567,7 +567,7 @@ def batch_fetch_art(self, lib, albums, force):
fetchart CLI command.
"""
for album in albums:
- if album.artpat... |
pyro-ppl__pyro-2243 | Bug AffineCoupling
Hello,
There seems to be a bug in [here](https://github.com/pyro-ppl/pyro/blob/dev/pyro/distributions/transforms/affine_coupling.py#L106).
`mean, log_scale = self.arn(x1)`
should probably be
`mean, log_scale = self.hypernet(x1)`
instead, right?
Thanks in advance
| [
{
"content": "import torch\nfrom torch.distributions import constraints\n\nfrom pyro.distributions.torch_transform import TransformModule\nfrom pyro.distributions.util import copy_docs_from\nfrom pyro.distributions.transforms.utils import clamp_preserve_gradients\nfrom pyro.nn import DenseNN\n\n\n@copy_docs_fro... | [
{
"content": "import torch\nfrom torch.distributions import constraints\n\nfrom pyro.distributions.torch_transform import TransformModule\nfrom pyro.distributions.util import copy_docs_from\nfrom pyro.distributions.transforms.utils import clamp_preserve_gradients\nfrom pyro.nn import DenseNN\n\n\n@copy_docs_fro... | diff --git a/pyro/distributions/transforms/affine_coupling.py b/pyro/distributions/transforms/affine_coupling.py
index 1b80cfd7b5..35882e6f3d 100644
--- a/pyro/distributions/transforms/affine_coupling.py
+++ b/pyro/distributions/transforms/affine_coupling.py
@@ -106,7 +106,7 @@ def _inverse(self, y):
"""
... |
strawberry-graphql__strawberry-1249 | Undefined variable issue in 0.77.6
With the latest release of #1213, this [line](https://github.com/strawberry-graphql/strawberry/blob/main/strawberry/types/nodes.py#L40) raises a KeyError when a variable is used in a query, but not defined in the payload under the key `variables`.
This used to work, and, I guess, i... | [
{
"content": "\"\"\"\nAbstraction layer for graphql-core field nodes.\n\nCall `convert_sections` on a list of GraphQL `FieldNode`s, such as in `info.field_nodes`.\n\nIf a node has only one useful value, it's value is inlined.\n\nIf a list of nodes have unique names, it's transformed into a mapping.\nNote Python... | [
{
"content": "\"\"\"\nAbstraction layer for graphql-core field nodes.\n\nCall `convert_sections` on a list of GraphQL `FieldNode`s, such as in `info.field_nodes`.\n\nIf a node has only one useful value, it's value is inlined.\n\nIf a list of nodes have unique names, it's transformed into a mapping.\nNote Python... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..78d4bba986
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,6 @@
+Release type: patch
+
+Fixes a bug with the `selected_fields` property on `info` when an operation
+variable is not defined.
+
+Issue [#1248](https://github.com/strawberry-graphql/straw... |
alltheplaces__alltheplaces-3338 | Spider scooters_coffee is broken
During the global build at 2021-06-23-14-42-18, spider **scooters_coffee** failed with **324 features** and **1 errors**.
Here's [the log](https://data.alltheplaces.xyz/runs/2021-06-23-14-42-18/logs/scooters_coffee.txt) and [the output](https://data.alltheplaces.xyz/runs/2021-06-23-14-... | [
{
"content": "# -*- coding: utf-8 -*-\nimport json\nimport re\n\nimport scrapy\n\nfrom locations.items import GeojsonPointItem\nfrom locations.hours import OpeningHours\n\nDAY_MAPPING = {'Mon': 'Mo', 'Tue': 'Tu',\n 'Wed': 'We', 'Thu': 'Th',\n 'Fri': 'Fr', 'Sat': 'Sa',\n ... | [
{
"content": "# -*- coding: utf-8 -*-\nimport json\nimport re\n\nimport scrapy\n\nfrom locations.items import GeojsonPointItem\nfrom locations.hours import OpeningHours\n\nDAY_MAPPING = {'Mon': 'Mo', 'Tue': 'Tu',\n 'Wed': 'We', 'Thu': 'Th',\n 'Fri': 'Fr', 'Sat': 'Sa',\n ... | diff --git a/locations/spiders/scooters_coffee.py b/locations/spiders/scooters_coffee.py
index 6dbd8fce1e1..6cb610dacfe 100644
--- a/locations/spiders/scooters_coffee.py
+++ b/locations/spiders/scooters_coffee.py
@@ -35,6 +35,7 @@ def parse_hours(self, hours):
if open_close == 'C':
continu... |
obspy__obspy-3183 | Baer picker failing with fi_prep_cif_var error
**Description of the Problem**
I recently installed obspy on a new python install. Everything appeared to be working until I ran the tests for a package that made a call to the obspy.signal.trigger.pk_baer, which gives the following error:
```
----------------------... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nDefines the libsignal and evalresp structures and blockettes.\n\"\"\"\nimport ctypes as C # NOQA\n\nimport numpy as np\n\nfrom obspy.core.util.libnames import _load_cdll\n\n\n# Import shared libsignal\nclibsignal = _load_cdll(\"signal\")\n# Import shared libevresp... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nDefines the libsignal and evalresp structures and blockettes.\n\"\"\"\nimport ctypes as C # NOQA\n\nimport numpy as np\n\nfrom obspy.core.util.libnames import _load_cdll\n\n\n# Import shared libsignal\nclibsignal = _load_cdll(\"signal\")\n# Import shared libevresp... | diff --git a/obspy/signal/headers.py b/obspy/signal/headers.py
index cb718bcfb72..e4ff0aafb49 100644
--- a/obspy/signal/headers.py
+++ b/obspy/signal/headers.py
@@ -61,7 +61,7 @@
np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,
flags='C_CONTIGUOUS'),
C.c_int, C.POINTER(C.c_int), C.... |
zestedesavoir__zds-site-5187 | Mauvais format (taille d'image) avec la TwitterCard
Le problème :
https://twitter.com/A312_zds/status/1027577197987606528
L'image est flou car 60x60 :(
HTML :
<meta property="twitter:image" content="http://zestedesavoir.com/media/galleries/5313/e35c638c-b58c-4ed7-851b-03f0c21cef2c.png.60x60_q95_crop.... | [
{
"content": "from os.path import join\nfrom pathlib import Path\n\nfrom django.utils.translation import gettext_lazy as _\n\nfrom .config import config\nfrom .base_dir import BASE_DIR\n\n\nzds_config = config.get('zds', {})\n\n\nGEOIP_PATH = join(BASE_DIR, 'geodata')\n\n\nES_ENABLED = True\n\nES_CONNECTIONS = ... | [
{
"content": "from os.path import join\nfrom pathlib import Path\n\nfrom django.utils.translation import gettext_lazy as _\n\nfrom .config import config\nfrom .base_dir import BASE_DIR\n\n\nzds_config = config.get('zds', {})\n\n\nGEOIP_PATH = join(BASE_DIR, 'geodata')\n\n\nES_ENABLED = True\n\nES_CONNECTIONS = ... | diff --git a/templates/tutorialv2/view/content_online.html b/templates/tutorialv2/view/content_online.html
index c3e71a361a..62aebaa9da 100644
--- a/templates/tutorialv2/view/content_online.html
+++ b/templates/tutorialv2/view/content_online.html
@@ -36,16 +36,27 @@
{% endblock %}
{% block description %}
- {{ co... |
CTFd__CTFd-2515 | Getting dynamic challenges by ID does not return decay function
When getting a dynamic challenge from `GET /api/v1/challenges/<challenge-id>`, the challenge does not return its decay function.
This seems to be caused by [this](https://github.com/CTFd/CTFd/blob/master/CTFd/plugins/dynamic_challenges/__init__.py#L60-L... | [
{
"content": "from flask import Blueprint\n\nfrom CTFd.models import Challenges, db\nfrom CTFd.plugins import register_plugin_assets_directory\nfrom CTFd.plugins.challenges import CHALLENGE_CLASSES, BaseChallenge\nfrom CTFd.plugins.dynamic_challenges.decay import DECAY_FUNCTIONS, logarithmic\nfrom CTFd.plugins.... | [
{
"content": "from flask import Blueprint\n\nfrom CTFd.models import Challenges, db\nfrom CTFd.plugins import register_plugin_assets_directory\nfrom CTFd.plugins.challenges import CHALLENGE_CLASSES, BaseChallenge\nfrom CTFd.plugins.dynamic_challenges.decay import DECAY_FUNCTIONS, logarithmic\nfrom CTFd.plugins.... | diff --git a/CTFd/plugins/dynamic_challenges/__init__.py b/CTFd/plugins/dynamic_challenges/__init__.py
index 0d62fdb19..3d21aa449 100644
--- a/CTFd/plugins/dynamic_challenges/__init__.py
+++ b/CTFd/plugins/dynamic_challenges/__init__.py
@@ -73,6 +73,7 @@ def read(cls, challenge):
"initial": challenge.initi... |
horovod__horovod-1180 | TF estimators and horovod.spark
**Environment:**
1. Framework: (TensorFlow, Keras, PyTorch, MXNet)
TensorFlow
2. Framework version:
1.13.1
3. Horovod version:
0.16
4. MPI version:
3.0.0
5. CUDA version:
N/A
6. NCCL version:
N/A
7. Python version:
3.5
8. OS and version:
Amazon Linux AMI release 2018.03
... | [
{
"content": "# Copyright 2019 Uber Technologies, Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\... | [
{
"content": "# Copyright 2019 Uber Technologies, Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\... | diff --git a/horovod/spark/__init__.py b/horovod/spark/__init__.py
index b637e05d69..0732647659 100644
--- a/horovod/spark/__init__.py
+++ b/horovod/spark/__init__.py
@@ -13,6 +13,12 @@
# limitations under the License.
# ==============================================================================
+# Workaround fo... |
agconti__cookiecutter-django-rest-176 | Update dependencies
- [x] boto (2.38.0) - Latest: 2.39.0 [wheel]
- [x] coverage (3.7.1) - Latest: 4.0.3 [wheel]
- [x] dj-database-url (0.3.0) - Latest: 0.4.0 [sdist]
- [x] Django (1.9) - Latest: 1.9.5 [wheel]
- [x] django-filter (0.11.0) - Latest: 0.13.0 [wheel]
- [x] django-nose (1.4.1) - Latest: 1.4.3 [wheel]
- [x] d... | [
{
"content": "import os\nfrom os.path import join\n\nfrom configurations import Configuration, values\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\nclass Common(Configuration):\n\n INSTALLED_APPS = (\n 'django.contrib.admin',\n 'django.contrib.auth',\n 'd... | [
{
"content": "import os\nfrom os.path import join\n\nfrom configurations import Configuration, values\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\nclass Common(Configuration):\n\n INSTALLED_APPS = (\n 'django.contrib.admin',\n 'django.contrib.auth',\n 'd... | diff --git a/{{cookiecutter.github_repository_name}}/requirements/base.txt b/{{cookiecutter.github_repository_name}}/requirements/base.txt
index c2ae586bd..2d177df46 100755
--- a/{{cookiecutter.github_repository_name}}/requirements/base.txt
+++ b/{{cookiecutter.github_repository_name}}/requirements/base.txt
@@ -1,33 +1... |
Kinto__kinto-1787 | Crash in Postgres backend when querystring contains NUL character (0x00)

:laughing:

- Set schema to an instance instead of class (fixes #1781)
-
1... |
Rapptz__discord.py-7167 | Line 595 in voice_client.py missing a word
### Summary
missing the word "be" in between "must" and "an"
### Reproduction Steps
n/a
### Minimal Reproducible Code
_No response_
### Expected Results
n/a
### Actual Results
n/a
### Intents
n/a
### System Information
n/a
### Checklist
- [X] I have searched the... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nth... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nth... | diff --git a/discord/voice_client.py b/discord/voice_client.py
index 9a9cd1c1ebcd..6816fa3ec1a3 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -592,7 +592,7 @@ def play(self, source: AudioSource, *, after: Callable[[Optional[Exception]], An
raise ClientException('Already playing audi... |
sktime__sktime-3627 | [BUG] Can't create usable ForecastHorizon with timedeltas
**Describe the bug**
I'm unsuccessfully trying to use sktime's ForecastingGridSearchCV with timedeltas.
I am using timedeltas---not timestamps---because I have disconnected data which only includes 8:00am - 12:00am daily. I wrote a class that clips out al... | [
{
"content": "#!/usr/bin/env python3 -u\n# -*- coding: utf-8 -*-\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Validation functions.\"\"\"\n\n__all__ = [\n \"is_int\",\n \"is_float\",\n \"is_timedelta\",\n \"is_date_offset\",\n \"is_timedelta_or_date_offset\",\n ... | [
{
"content": "#!/usr/bin/env python3 -u\n# -*- coding: utf-8 -*-\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Validation functions.\"\"\"\n\n__all__ = [\n \"is_int\",\n \"is_float\",\n \"is_timedelta\",\n \"is_date_offset\",\n \"is_timedelta_or_date_offset\",\n ... | diff --git a/sktime/forecasting/base/tests/test_fh.py b/sktime/forecasting/base/tests/test_fh.py
index ef9c03ba9ed..2a8802ffe7e 100644
--- a/sktime/forecasting/base/tests/test_fh.py
+++ b/sktime/forecasting/base/tests/test_fh.py
@@ -4,6 +4,8 @@
__author__ = ["mloning", "khrapovs"]
+from datetime import timedelta
+... |
flask-admin__flask-admin-380 | model edit_view 'Save and Continue' doesn't work when app is not located at root url
The "Save and Continue" functionality for a model's edit_view only works if the app is at the root url.
As an example, here is a version of the flask-admin sqla example that has been modified so that the root of the admin is at '/disp... | [
{
"content": "import warnings\n\nfrom flask import request, url_for, redirect, flash, abort, json, Response\n\nfrom jinja2 import contextfunction\n\nfrom flask.ext.admin.babel import gettext\n\nfrom flask.ext.admin.base import BaseView, expose\nfrom flask.ext.admin.form import BaseForm, rules, get_form_opts\nfr... | [
{
"content": "import warnings\n\nfrom flask import request, url_for, redirect, flash, abort, json, Response\n\nfrom jinja2 import contextfunction\n\nfrom flask.ext.admin.babel import gettext\n\nfrom flask.ext.admin.base import BaseView, expose\nfrom flask.ext.admin.form import BaseForm, rules, get_form_opts\nfr... | diff --git a/flask_admin/model/base.py b/flask_admin/model/base.py
index dabae478a..8df274f2f 100644
--- a/flask_admin/model/base.py
+++ b/flask_admin/model/base.py
@@ -1246,7 +1246,7 @@ def edit_view(self):
if self.update_model(form, model):
if '_continue_editing' in request.form:
... |
pymodbus-dev__pymodbus-1687 | REPL client help is missing some commands
The help for the REPL client is missing some commands from `help`, and instead has `client.{c[0]}`.
```
pymodbus.console tcp
❯ pymodbus.console tcp
----------------------------------------------------------------------------
__________ _____ .___ ... | [
{
"content": "\"\"\"Helper Module for REPL actions.\"\"\"\nimport inspect\n\n# pylint: disable=missing-type-doc\nimport json\nfrom collections import OrderedDict\nfrom typing import Any, Dict, List, Union\n\nimport pygments\nfrom prompt_toolkit import print_formatted_text\nfrom prompt_toolkit.formatted_text imp... | [
{
"content": "\"\"\"Helper Module for REPL actions.\"\"\"\nimport inspect\n\n# pylint: disable=missing-type-doc\nimport json\nfrom collections import OrderedDict\nfrom typing import Any, Dict, List, Union\n\nimport pygments\nfrom prompt_toolkit import print_formatted_text\nfrom prompt_toolkit.formatted_text imp... | diff --git a/pymodbus/repl/client/helper.py b/pymodbus/repl/client/helper.py
index 94ac748a6..b0231806c 100644
--- a/pymodbus/repl/client/helper.py
+++ b/pymodbus/repl/client/helper.py
@@ -179,8 +179,8 @@ def _get_client_methods(members):
filter(lambda x: (x[0] not in EXCLUDE and x[0] in CLIENT_METHODS), membe... |
ethereum__web3.py-2502 | pip install web3, errors due to incompatible version of eth-rlp
* Version: 5.28.0
* Python: 3.8
* OS: linux
* `pip freeze` output
```
appdirs==1.4.3
certifi==2019.11.28
chardet==3.0.4
dbus-python==1.2.16
distlib==0.3.0
distro-info===0.23ubuntu1
filelock==3.0.12
idna==2.8
importlib-metadata==1.5.0
more-i... | [
{
"content": "#!/usr/bin/env python\nfrom setuptools import (\n find_packages,\n setup,\n)\n\nextras_require = {\n 'tester': [\n \"eth-tester[py-evm]==v0.6.0-beta.6\",\n \"py-geth>=3.8.0,<4\",\n ],\n 'linter': [\n \"flake8==3.8.3\",\n \"isort>=4.2.15,<4.3.5\",\n ... | [
{
"content": "#!/usr/bin/env python\nfrom setuptools import (\n find_packages,\n setup,\n)\n\nextras_require = {\n 'tester': [\n \"eth-tester[py-evm]==v0.6.0-beta.6\",\n \"py-geth>=3.8.0,<4\",\n ],\n 'linter': [\n \"flake8==3.8.3\",\n \"isort>=4.2.15,<4.3.5\",\n ... | diff --git a/newsfragments/2502.misc.rst b/newsfragments/2502.misc.rst
new file mode 100644
index 0000000000..4c70f15f51
--- /dev/null
+++ b/newsfragments/2502.misc.rst
@@ -0,0 +1 @@
+Pin eth-rlp to <0.3 so that dependencies will resolve with older versions of pip.
diff --git a/setup.py b/setup.py
index 441ba21a20..6fb... |
python-telegram-bot__python-telegram-bot-473 | edit_reply_markup is calling edit_message_caption
```
def edit_reply_markup(self, *args, **kwargs):
"""
Shortcut for
>>> bot.editReplyMarkup(chat_id=message.chat_id,
... message_id=message.message_id,
... *args, **kw... | [
{
"content": "#!/usr/bin/env python\n# pylint: disable=R0902,R0912,R0913\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2016\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 ... | [
{
"content": "#!/usr/bin/env python\n# pylint: disable=R0902,R0912,R0913\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2016\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 ... | diff --git a/telegram/message.py b/telegram/message.py
index 59efa62f7e3..2c305280afd 100644
--- a/telegram/message.py
+++ b/telegram/message.py
@@ -494,7 +494,7 @@ def edit_reply_markup(self, *args, **kwargs):
therefore this method can only be used on the
return value of the ``bot.send_*`` fa... |
edgedb__edgedb-2074 | InternalServerError when coalescing object with string
- EdgeDB Version: EdgeDB 1.0-alpha.6+dev.5078.gd187a933.d20200921
```
edgedb> describe schema;
CREATE MODULE default IF NOT EXISTS;
CREATE TYPE default::Object {
CREATE OPTIONAL SINGLE PROPERTY opt1 -> std::str;
CREATE OPTIONAL SINGLE PROPERTY opt2 ->... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-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 2008-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/schema/objtypes.py b/edb/schema/objtypes.py
index c250d1aedd1..5b4f4f40a4a 100644
--- a/edb/schema/objtypes.py
+++ b/edb/schema/objtypes.py
@@ -191,7 +191,9 @@ def find_common_implicitly_castable_type(
other: s_types.Type,
schema: s_schema.Schema,
) -> Tuple[s_schema.Schema, Opti... |
napari__napari-5467 | napari 0.4.17 fails with QtPoll error on a virgin install on windows. Works on the nightly build
## 🐛 Bug
<!-- A clear and concise description of what the bug is. -->
## To Reproduce
Steps to reproduce the behavior:
1. I am running the code with Python 3.10.9.
2. Created a new venv to ensure that we don'... | [
{
"content": "\"\"\"QtPoll class.\n\nPoll visuals or other objects so they can do things even when the\nmouse/camera are not moving. Usually for just a short period of time.\n\"\"\"\nimport time\nfrom typing import Optional\n\nfrom qtpy.QtCore import QEvent, QObject, QTimer\n\nfrom napari.utils.events import Em... | [
{
"content": "\"\"\"QtPoll class.\n\nPoll visuals or other objects so they can do things even when the\nmouse/camera are not moving. Usually for just a short period of time.\n\"\"\"\nimport time\nfrom typing import Optional\n\nfrom qtpy.QtCore import QEvent, QObject, QTimer\n\nfrom napari.utils.events import Em... | diff --git a/napari/_qt/experimental/qt_poll.py b/napari/_qt/experimental/qt_poll.py
index 955ca925642..02e803dc6dd 100644
--- a/napari/_qt/experimental/qt_poll.py
+++ b/napari/_qt/experimental/qt_poll.py
@@ -11,7 +11,7 @@
from napari.utils.events import EmitterGroup
# When running a timer we use this interval.
-PO... |
netbox-community__netbox-14901 | Changing event rule action type messes up Conditions field
### Deployment Type
Self-hosted
### NetBox Version
v3.7.1
### Python Version
3.11
### Steps to Reproduce
1. Go to **Operations - Event Rules - Add**
2. Set Conditions = `{ "and": [{"attr": "status.value", "value": "deprecated"}]}`
3. Sele... | [
{
"content": "import json\n\nfrom django import forms\nfrom django.db.models import Count\nfrom django.forms.fields import JSONField as _JSONField, InvalidJSONInput\nfrom django.templatetags.static import static\nfrom django.utils.translation import gettext_lazy as _\nfrom netaddr import AddrFormatError, EUI\n\... | [
{
"content": "import json\n\nfrom django import forms\nfrom django.db.models import Count\nfrom django.forms.fields import JSONField as _JSONField, InvalidJSONInput\nfrom django.templatetags.static import static\nfrom django.utils.translation import gettext_lazy as _\nfrom netaddr import AddrFormatError, EUI\n\... | diff --git a/netbox/utilities/forms/fields/fields.py b/netbox/utilities/forms/fields/fields.py
index d4d4ae19b8c..7a3e818f6b3 100644
--- a/netbox/utilities/forms/fields/fields.py
+++ b/netbox/utilities/forms/fields/fields.py
@@ -105,7 +105,12 @@ def prepare_value(self, value):
return value
if valu... |
dask__distributed-1757 | lz4 new api
I believe the code here is faulty: https://github.com/dask/distributed/blob/cc908e7725410278c3a2ba08bd05675c186479e1/distributed/protocol/compression.py#L56-66. You need to import lz4.block in order to use the new api. Right now this always fall back. This is how I would fix it.
```python
with ignoring(... | [
{
"content": "\"\"\"\nRecord known compressors\n\nIncludes utilities for determining whether or not to compress\n\"\"\"\nfrom __future__ import print_function, division, absolute_import\n\nimport logging\nimport random\n\nfrom dask.context import _globals\nfrom toolz import identity, partial\n\ntry:\n import... | [
{
"content": "\"\"\"\nRecord known compressors\n\nIncludes utilities for determining whether or not to compress\n\"\"\"\nfrom __future__ import print_function, division, absolute_import\n\nimport logging\nimport random\n\nfrom dask.context import _globals\nfrom toolz import identity, partial\n\ntry:\n import... | diff --git a/distributed/protocol/compression.py b/distributed/protocol/compression.py
index 8d3d71f8a56..1f4ded0c4c1 100644
--- a/distributed/protocol/compression.py
+++ b/distributed/protocol/compression.py
@@ -58,9 +58,10 @@ def _fixed_snappy_decompress(data):
try:
# try using the new lz4 API
+ ... |
ray-project__ray-2784 | [xray] Users get no warning for infeasible tasks.
Start Ray with
```
RAY_USE_XRAY=1 ray start --head --redis-port=6379 --num-gpus=0
```
Then start `RAY_USE_XRAY=1 ipython` and run
```python
import ray
ray.init(redis_address='localhost:6379')
@ray.remote(num_gpus=1)
def f():
return 1
f.remote... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\"\"\"Ray constants used in the Python code.\"\"\"\n\nimport os\n\nimport ray\n\n\ndef env_integer(key, default):\n if key in os.environ:\n return int(os.environ[key])\n ret... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\"\"\"Ray constants used in the Python code.\"\"\"\n\nimport os\n\nimport ray\n\n\ndef env_integer(key, default):\n if key in os.environ:\n return int(os.environ[key])\n ret... | diff --git a/python/ray/ray_constants.py b/python/ray/ray_constants.py
index 384afddd83e4..a835801bde91 100644
--- a/python/ray/ray_constants.py
+++ b/python/ray/ray_constants.py
@@ -42,6 +42,7 @@ def env_integer(key, default):
WORKER_DIED_PUSH_ERROR = "worker_died"
PUT_RECONSTRUCTION_PUSH_ERROR = "put_reconstruction... |
dask__distributed-959 | Fail to garbage collect Pandas dataframes
Sometimes we fail to clean up Pandas dataframes. Here are a couple of examples using dask.dataframe and dask.array on a "cluster" in the local environment. In the dask.array case we cleanly remove used data. In the dask.dataframe case the memory of our process remains high e... | [
{
"content": "from __future__ import print_function, division, absolute_import\n\nfrom collections import defaultdict, deque\nfrom functools import partial\nimport logging\nimport six\nimport traceback\nimport uuid\n\nfrom six import string_types\n\nfrom toolz import assoc\n\nfrom tornado import gen\nfrom torna... | [
{
"content": "from __future__ import print_function, division, absolute_import\n\nfrom collections import defaultdict, deque\nfrom functools import partial\nimport logging\nimport six\nimport traceback\nimport uuid\n\nfrom six import string_types\n\nfrom toolz import assoc\n\nfrom tornado import gen\nfrom torna... | diff --git a/.travis.yml b/.travis.yml
index e2e33de18cf..a5d7c4c8cf8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,7 +9,7 @@ matrix:
env:
matrix:
- - PYTHON=2.7 PACKAGES="blosc futures"
+ - PYTHON=2.7 PACKAGES="blosc futures faulthandler"
- PYTHON=3.4 COVERAGE=true DASK_EXPERIMENTAL_ZMQ=1
- PY... |
pypa__setuptools-4339 | Using `setuptools.extern.importlib_metadata.EntryPoints.names` is incompatible with older versions of `importlib_metadata` and/or `importlib.metadata`
`importlib_metadata.EntryPoints.names` was introduced in 3.6.0 and it is currently being used in https://github.com/pypa/setuptools/blob/963dbd25cb64898b6f3ee247440db04... | [
{
"content": "__all__ = ['Distribution']\n\n\nimport io\nimport itertools\nimport numbers\nimport os\nimport re\nimport sys\nfrom contextlib import suppress\nfrom glob import iglob\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Dict, List, MutableMapping, Optional, Set, Tuple\n\nimport distutils.c... | [
{
"content": "__all__ = ['Distribution']\n\n\nimport io\nimport itertools\nimport numbers\nimport os\nimport re\nimport sys\nfrom contextlib import suppress\nfrom glob import iglob\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Dict, List, MutableMapping, Optional, Set, Tuple\n\nimport distutils.c... | diff --git a/setuptools/dist.py b/setuptools/dist.py
index 076f9a2327..03f6c0398b 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -535,7 +535,8 @@ def warn_dash_deprecation(self, opt, section):
def _setuptools_commands(self):
try:
- return metadata.distribution('setuptools').entry... |
sonic-net__sonic-utilities-2594 | The output of "show ipv6 bgp summary" is unexpected if there is no IPv6 BGP session configured
<!--
If you are reporting a new issue, make sure that we do not have any duplicates
already open. You can ensure this by searching the issue list for this
repository. If there is a duplicate, please close your ... | [
{
"content": "import ipaddress\nimport json\nimport re\n\nimport click\nimport utilities_common.cli as clicommon\nimport utilities_common.multi_asic as multi_asic_util\nfrom natsort import natsorted\nfrom sonic_py_common import multi_asic\nfrom tabulate import tabulate\nfrom utilities_common import constants\n\... | [
{
"content": "import ipaddress\nimport json\nimport re\n\nimport click\nimport utilities_common.cli as clicommon\nimport utilities_common.multi_asic as multi_asic_util\nfrom natsort import natsorted\nfrom sonic_py_common import multi_asic\nfrom tabulate import tabulate\nfrom utilities_common import constants\n\... | diff --git a/tests/bgp_commands_test.py b/tests/bgp_commands_test.py
index 24b4fdeafb..4954311440 100644
--- a/tests/bgp_commands_test.py
+++ b/tests/bgp_commands_test.py
@@ -91,6 +91,13 @@
Error: bgp summary from bgp container not in json format
"""
+show_error_no_v6_neighbor = """\
+No IPv6 neighbor is configured... |
django-import-export__django-import-export-1387 | Branch release-3-x error when upgrading
**Describe the bug**
Got this when trying to import after upgrading to the `release-3-x` branch
```
...venv/src/django-import-export/import_export/mixins.py", line 20, in check_resource_classes
raise Exception("The resource_classes field type must be subscriptable (list... | [
{
"content": "import warnings\n\nfrom django.http import HttpResponse\nfrom django.utils.timezone import now\nfrom django.views.generic.edit import FormView\n\nfrom .formats import base_formats\nfrom .forms import ExportForm\nfrom .resources import modelresource_factory\nfrom .signals import post_export\n\n\ncl... | [
{
"content": "import warnings\n\nfrom django.http import HttpResponse\nfrom django.utils.timezone import now\nfrom django.views.generic.edit import FormView\n\nfrom .formats import base_formats\nfrom .forms import ExportForm\nfrom .resources import modelresource_factory\nfrom .signals import post_export\n\n\ncl... | diff --git a/import_export/mixins.py b/import_export/mixins.py
index c10e2fb24..ce93231d9 100644
--- a/import_export/mixins.py
+++ b/import_export/mixins.py
@@ -29,7 +29,7 @@ def get_resource_classes(self):
"Please implement the new 'get_resource_classes()' method",
DeprecationWarning,... |
readthedocs__readthedocs.org-8853 | OSError: File does not exist: staticfiles.json - Dev Install
## Details
* Read the Docs project URL: **N/A**
* Build URL (if applicable): **N/A**
* Read the Docs username (if applicable): **N/A**
## Expected Result
Show the http://community.dev.readthedocs.io/ local site and allow you to login and generate d... | [
{
"content": "import os\nimport socket\n\nfrom .dev import CommunityDevSettings\n\n\nclass DockerBaseSettings(CommunityDevSettings):\n\n \"\"\"Settings for local development with Docker\"\"\"\n\n DOCKER_ENABLE = True\n RTD_DOCKER_COMPOSE = True\n RTD_DOCKER_COMPOSE_VOLUME = 'community_build-user-bui... | [
{
"content": "import os\nimport socket\n\nfrom .dev import CommunityDevSettings\n\n\nclass DockerBaseSettings(CommunityDevSettings):\n\n \"\"\"Settings for local development with Docker\"\"\"\n\n DOCKER_ENABLE = True\n RTD_DOCKER_COMPOSE = True\n RTD_DOCKER_COMPOSE_VOLUME = 'community_build-user-bui... | diff --git a/docs/dev/install.rst b/docs/dev/install.rst
index 4e01596c9e6..b43283fbd2c 100644
--- a/docs/dev/install.rst
+++ b/docs/dev/install.rst
@@ -62,15 +62,6 @@ Set up your environment
inv docker.up --init # --init is only needed the first time
-#. add read permissions to the storage backend:
-
- ... |
readthedocs__readthedocs.org-10754 | Addons: create a suite tests for Addons API endpoint
We need to create a good amount of tests for this API endpoint so we are covered.
| [
{
"content": "\"\"\"Views for hosting features.\"\"\"\n\nfrom functools import lru_cache\n\nimport packaging\nimport structlog\nfrom django.conf import settings\nfrom django.contrib.auth.models import AnonymousUser\nfrom django.http import Http404, JsonResponse\nfrom rest_framework.renderers import JSONRenderer... | [
{
"content": "\"\"\"Views for hosting features.\"\"\"\n\nfrom functools import lru_cache\n\nimport packaging\nimport structlog\nfrom django.conf import settings\nfrom django.contrib.auth.models import AnonymousUser\nfrom django.http import Http404, JsonResponse\nfrom rest_framework.renderers import JSONRenderer... | diff --git a/readthedocs/proxito/tests/test_headers.py b/readthedocs/proxito/tests/test_headers.py
index e822facc328..1b2ce6726b4 100644
--- a/readthedocs/proxito/tests/test_headers.py
+++ b/readthedocs/proxito/tests/test_headers.py
@@ -12,7 +12,7 @@
from readthedocs.builds.models import Version
from readthedocs.orga... |
open-mmlab__mmdetection-5221 | Multiscale test error when testing Cascade-Mask RCNN: "TypeError: list indices must be integers or slices, not tuple"
Thanks for your error report and we appreciate it a lot.
**Checklist**
1. I have searched related issues but cannot get the expected help.
2. I have read the [FAQ documentation](https://mmdetecti... | [
{
"content": "import torch\nimport torch.nn as nn\nfrom mmcv.runner import ModuleList\n\nfrom mmdet.core import (bbox2result, bbox2roi, bbox_mapping, build_assigner,\n build_sampler, merge_aug_bboxes, merge_aug_masks,\n multiclass_nms)\nfrom ..builder import HEADS, ... | [
{
"content": "import torch\nimport torch.nn as nn\nfrom mmcv.runner import ModuleList\n\nfrom mmdet.core import (bbox2result, bbox2roi, bbox_mapping, build_assigner,\n build_sampler, merge_aug_bboxes, merge_aug_masks,\n multiclass_nms)\nfrom ..builder import HEADS, ... | diff --git a/mmdet/models/roi_heads/cascade_roi_head.py b/mmdet/models/roi_heads/cascade_roi_head.py
index f58c451305e..f891a2c5924 100644
--- a/mmdet/models/roi_heads/cascade_roi_head.py
+++ b/mmdet/models/roi_heads/cascade_roi_head.py
@@ -459,9 +459,8 @@ def aug_test(self, features, proposal_list, img_metas, rescale=... |
cloudtools__troposphere-1695 | implement AWS::ServiceCatalog changes from May 14, 2020 update
| [
{
"content": "# Copyright (c) 2012-2018, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSObject, AWSProperty, Tags\nfrom .validators import boolean, integer\n\n\nclass AcceptedPortfolioShare(AWSObject):\n resource_type = \"AWS::ServiceCatalog::Ac... | [
{
"content": "# Copyright (c) 2012-2018, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSObject, AWSProperty, Tags\nfrom .validators import boolean, integer\n\n\nclass AcceptedPortfolioShare(AWSObject):\n resource_type = \"AWS::ServiceCatalog::Ac... | diff --git a/troposphere/servicecatalog.py b/troposphere/servicecatalog.py
index d8e8ae7b4..1ef1c5430 100644
--- a/troposphere/servicecatalog.py
+++ b/troposphere/servicecatalog.py
@@ -36,6 +36,7 @@ class CloudFormationProduct(AWSObject):
'Owner': (basestring, True),
'ProvisioningArtifactParameters':
... |
ESMCI__cime-544 | Get PFS test working.
PFS does not produce history files because it does not set HIST_N or HIST_OPTION. The test fails because it tries to move history files that aren't there.
| [
{
"content": "\"\"\"\nCIME performance test This class inherits from SystemTestsCommon\n\n20 days performance test, no restart files written\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.SystemTests.system_tests_common import SystemTestsCommon\n\nlogger = logging.getLogger(__name__)\n\ncla... | [
{
"content": "\"\"\"\nCIME performance test This class inherits from SystemTestsCommon\n\n20 days performance test, no restart files written\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.SystemTests.system_tests_common import SystemTestsCommon\n\nlogger = logging.getLogger(__name__)\n\ncla... | diff --git a/cime_config/config_tests.xml b/cime_config/config_tests.xml
index 43d7519c428..ce707321032 100644
--- a/cime_config/config_tests.xml
+++ b/cime_config/config_tests.xml
@@ -388,6 +388,7 @@ LII CLM initial condition interpolation test
<REST_OPTION>none</REST_OPTION>
<CCSM_TCOST>0</CCSM_TCOST>
... |
lhotse-speech__lhotse-667 | Loading data
I'm trying to create a Recording using the same "command" that I used in kaldi. I have a binary that converts speex to wav and in wav.scp I do "wav_id spx2wav /path/to/file - |", here I tried new_wav = Recording.from_file("spx2wav /path/to/file - |" which gave me error (file spx2wav /path/to/file - | doesn... | [
{
"content": "import warnings\nfrom collections import defaultdict\nfrom concurrent.futures import ProcessPoolExecutor\nfrom pathlib import Path\nfrom typing import Any, Dict, Optional, Tuple\n\nfrom lhotse import FeatureSet, Features, Seconds\nfrom lhotse.audio import AudioSource, Recording, RecordingSet\nfrom... | [
{
"content": "import warnings\nfrom collections import defaultdict\nfrom concurrent.futures import ProcessPoolExecutor\nfrom pathlib import Path\nfrom typing import Any, Dict, Optional, Tuple\n\nfrom lhotse import FeatureSet, Features, Seconds\nfrom lhotse.audio import AudioSource, Recording, RecordingSet\nfrom... | diff --git a/lhotse/kaldi.py b/lhotse/kaldi.py
index 204a66ab3..1946916df 100644
--- a/lhotse/kaldi.py
+++ b/lhotse/kaldi.py
@@ -35,10 +35,10 @@ def get_duration(
)
import kaldi_native_io
- wave_info = kaldi_native_io.read_wave_info(path)
- assert wave_info.num_channels == 1, wave_... |
voxel51__fiftyone-252 | Docs table of contents spacing issue on small screens
On small screens, the table of contents has too much space below it; it should be tight with the bottom of the contents so that the main content is visible:
<img width="717" alt="Screen Shot 2020-07-15 at 3 45 52 PM" src="https://user-images.githubusercontent.com... | [
{
"content": "\"\"\"\nSphinx configuration file.\n\nFor a full list of available options, see:\nhttps://www.sphinx-doc.org/en/master/usage/configuration.html\n\n| Copyright 2017-2020, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\n\nimport fiftyone.constants as foc\n\n\n# -- Path setup -----... | [
{
"content": "\"\"\"\nSphinx configuration file.\n\nFor a full list of available options, see:\nhttps://www.sphinx-doc.org/en/master/usage/configuration.html\n\n| Copyright 2017-2020, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\n\nimport fiftyone.constants as foc\n\n\n# -- Path setup -----... | diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml
index 5aad2fdf191..171dcd5c0f1 100644
--- a/.github/workflows/build-docs.yml
+++ b/.github/workflows/build-docs.yml
@@ -50,7 +50,7 @@ jobs:
sudo apt-get install pandoc
pip install -e .
pip install -r requir... |
arviz-devs__arviz-801 | pm.compare seems not compatible with az.plot_compare
If I try to run two following commands
```python
df_comp_WAIC = pm.compare({models[0]: traces[0], models[1]: traces[1]})
az.plot_compare(df_comp_WAIC);
```
I get the error:
```python
---------------------------------------------------------------------------
... | [
{
"content": "\"\"\"Summary plot for model comparison.\"\"\"\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\nfrom .plot_utils import _scale_fig_size\r\n\r\n\r\ndef plot_compare(\r\n comp_df,\r\n insample_dev=True,\r\n plot_standard_error=True,\r\n plot_ic_diff=True,\r\n order_by_rank=... | [
{
"content": "\"\"\"Summary plot for model comparison.\"\"\"\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\nfrom .plot_utils import _scale_fig_size\r\n\r\n\r\ndef plot_compare(\r\n comp_df,\r\n insample_dev=True,\r\n plot_standard_error=True,\r\n plot_ic_diff=True,\r\n order_by_rank=... | diff --git a/arviz/plots/compareplot.py b/arviz/plots/compareplot.py
index dce807cc80..f742e0e583 100644
--- a/arviz/plots/compareplot.py
+++ b/arviz/plots/compareplot.py
@@ -95,8 +95,9 @@ def plot_compare(
yticks_labels = [""] * len(yticks_pos)
_information_criterion = ["waic", "loo"]
+ column_index ... |
graphql-python__graphene-django-232 | request not being passed to filterclass
given the following code:
```
class ManageQuery(AbstractType):
group_requests = DjangoFilterConnectionField(RequestNode, filterset_class=RequestManageFilter)
```
and the filterset class:
```
class RequestManageFilter(FilterSet):
# Do case-insensitive lookups on 'n... | [
{
"content": "from collections import OrderedDict\nfrom functools import partial\n\nfrom graphene.types.argument import to_arguments\nfrom ..fields import DjangoConnectionField\nfrom .utils import get_filtering_args_from_filterset, get_filterset_class\n\n\nclass DjangoFilterConnectionField(DjangoConnectionField... | [
{
"content": "from collections import OrderedDict\nfrom functools import partial\n\n# from graphene.relay import is_node\nfrom graphene.types.argument import to_arguments\nfrom ..fields import DjangoConnectionField\nfrom .utils import get_filtering_args_from_filterset, get_filterset_class\n\n\nclass DjangoFilte... | diff --git a/docs/filtering.rst b/docs/filtering.rst
index f6ad8828f..2e6b87ffd 100644
--- a/docs/filtering.rst
+++ b/docs/filtering.rst
@@ -126,3 +126,23 @@ create your own ``Filterset`` as follows:
# We specify our custom AnimalFilter using the filterset_class param
all_animals = DjangoFilterConnect... |
comic__grand-challenge.org-1998 | Search is broken for Archive Items list view
To reproduce, navigate to `/archives/<slug>/items/`, type something in the search box.
| [
{
"content": "from celery import chain, chord, group\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.contrib.messages.views import SuccessMessageMixin\nfrom django.core.exceptions import (\n NON_FIELD_ERRORS,\n PermissionDenied,\n ValidationError,\n)\nfrom django.core.files... | [
{
"content": "from celery import chain, chord, group\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.contrib.messages.views import SuccessMessageMixin\nfrom django.core.exceptions import (\n NON_FIELD_ERRORS,\n PermissionDenied,\n ValidationError,\n)\nfrom django.core.files... | diff --git a/app/grandchallenge/archives/views.py b/app/grandchallenge/archives/views.py
index 7db4681400..58f1db08f6 100644
--- a/app/grandchallenge/archives/views.py
+++ b/app/grandchallenge/archives/views.py
@@ -492,10 +492,13 @@ class ArchiveItemsList(
row_template = "archives/archive_items_row.html"
sear... |
zulip__zulip-28016 | Onboarding hotspots are misplaced
I think our grid rewrites of the sidebars have resulted in the onboarding hotspots being somewhat misplaced:

(The `offset_x` and `offset_y` values may need updating).
I'm not entirely ... | [
{
"content": "# See https://zulip.readthedocs.io/en/latest/subsystems/hotspots.html\n# for documentation on this subsystem.\nfrom dataclasses import dataclass\nfrom typing import Dict, List, Optional, Union\n\nfrom django.conf import settings\nfrom django.utils.translation import gettext_lazy\nfrom django_stubs... | [
{
"content": "# See https://zulip.readthedocs.io/en/latest/subsystems/hotspots.html\n# for documentation on this subsystem.\nfrom dataclasses import dataclass\nfrom typing import Dict, List, Optional, Union\n\nfrom django.conf import settings\nfrom django.utils.translation import gettext_lazy\nfrom django_stubs... | diff --git a/web/src/hotspots.js b/web/src/hotspots.js
index 2ce62403c97cf..d37a7d5de9b95 100644
--- a/web/src/hotspots.js
+++ b/web/src/hotspots.js
@@ -25,25 +25,25 @@ const HOTSPOT_LOCATIONS = new Map([
[
"intro_streams",
{
- element: "#streams_header .left-sidebar-title",
- ... |
ethereum__web3.py-2217 | Using typing-extensions 4 with web3.py and python < 3.8
Hey guys,
This is question on typing-extensions package. In setup.py https://github.com/ethereum/web3.py/blob/74fbcd1761407ee37808173b089d8e44e537fb99/setup.py#L88-L89
you require <4 and python <3.8. From what I understand that is since these extensions you ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom setuptools import (\n find_packages,\n setup,\n)\n\nextras_require = {\n 'tester': [\n \"eth-tester[py-evm]==v0.6.0-beta.4\",\n \"py-geth>=3.6.0,<4\",\n ],\n 'linter': [\n \"flake8==3.8.3\",\n \"isort>=... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom setuptools import (\n find_packages,\n setup,\n)\n\nextras_require = {\n 'tester': [\n \"eth-tester[py-evm]==v0.6.0-beta.4\",\n \"py-geth>=3.6.0,<4\",\n ],\n 'linter': [\n \"flake8==3.8.3\",\n \"isort>=... | diff --git a/newsfragments/2217.misc.rst b/newsfragments/2217.misc.rst
new file mode 100644
index 0000000000..2c74d97bdd
--- /dev/null
+++ b/newsfragments/2217.misc.rst
@@ -0,0 +1 @@
+Update ``typing-extensions`` dependency to allow for v4
diff --git a/setup.py b/setup.py
index eaf43ecf4a..f720550669 100644
--- a/setup... |
ranaroussi__yfinance-1498 | TypeError("unsupported operand type(s) for -: 'str' and 'int'") when downloading price data
The ```yf.download``` method does not seem to be working as of late for me, it gives me the error: ```TypeError("unsupported operand type(s) for -: 'str' and 'int'")``` when download stock data with ``period='max'`` or with ``st... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# yfinance - market data downloader\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 file except in compliance with the ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# yfinance - market data downloader\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 file except in compliance with the ... | diff --git a/yfinance/utils.py b/yfinance/utils.py
index 7615cc3c4..509e37298 100644
--- a/yfinance/utils.py
+++ b/yfinance/utils.py
@@ -920,6 +920,8 @@ def _migrate_cache_tkr_tz(self):
df = _pd.read_csv(old_cache_file_path, index_col="Ticker")
except _pd.errors.EmptyDataError:
_os.re... |
ivy-llc__ivy-14502 | generalized_normal
| [
{
"content": "# local\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n handle_jax_dtype,\n)\n\n\n@to_ivy_arrays_and_back\ndef PRNGKey(seed):\n return ivy.array([0, seed % 4294967295 - (seed // 42949672... | [
{
"content": "# local\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n handle_jax_dtype,\n)\n\n\n@to_ivy_arrays_and_back\ndef PRNGKey(seed):\n return ivy.array([0, seed % 4294967295 - (seed // 42949672... | diff --git a/ivy/functional/frontends/jax/random.py b/ivy/functional/frontends/jax/random.py
index 585be629ee243..9e5aaaad8f4c4 100644
--- a/ivy/functional/frontends/jax/random.py
+++ b/ivy/functional/frontends/jax/random.py
@@ -125,6 +125,14 @@ def gumbel(key, shape=(), dtype="float64"):
},
"jax",
)
+def ge... |
localstack__localstack-2222 | SNS logs location
Hi,
I want to see, what's coming from outside to my SNS service in localstack like payload.
Where can I see it? I have set `DEBUG=1` but I still not see anything.
| [
{
"content": "import ast\nimport json\nimport logging\nimport traceback\nimport uuid\n\nimport requests\nimport six\nimport xmltodict\nfrom flask import Response as FlaskResponse\nfrom requests.models import Response, Request\nfrom six.moves.urllib import parse as urlparse\n\nfrom localstack.config import exter... | [
{
"content": "import ast\nimport json\nimport logging\nimport traceback\nimport uuid\n\nimport requests\nimport six\nimport xmltodict\nfrom flask import Response as FlaskResponse\nfrom requests.models import Response, Request\nfrom six.moves.urllib import parse as urlparse\n\nfrom localstack.config import exter... | diff --git a/localstack/services/sns/sns_listener.py b/localstack/services/sns/sns_listener.py
index 2a534b282097e..4c282b5c9e0e6 100644
--- a/localstack/services/sns/sns_listener.py
+++ b/localstack/services/sns/sns_listener.py
@@ -218,6 +218,8 @@ def publish_message(topic_arn, req_data, subscription_arn=None):
m... |
pymodbus-dev__pymodbus-1987 | Solve bytes return in base.py
Reminder for myself,
This should be changed to None or an empty ModbusResponse
line 163-165 in base.py
if self.broadcast_enable and not request.slave_id:
resp = b"Broadcast write sent - no response expected"
break
these are the lines in async_execute which cause there to be a byt... | [
{
"content": "\"\"\"Base for all clients.\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport socket\nfrom dataclasses import dataclass\nfrom typing import Any, Awaitable, Callable, Type, cast\n\nfrom pymodbus.client.mixin import ModbusClientMixin\nfrom pymodbus.exceptions import ConnectionExcep... | [
{
"content": "\"\"\"Base for all clients.\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport socket\nfrom dataclasses import dataclass\nfrom typing import Any, Awaitable, Callable, Type, cast\n\nfrom pymodbus.client.mixin import ModbusClientMixin\nfrom pymodbus.exceptions import ConnectionExcep... | diff --git a/pymodbus/client/base.py b/pymodbus/client/base.py
index e0772cf5c..2cd9270da 100644
--- a/pymodbus/client/base.py
+++ b/pymodbus/client/base.py
@@ -161,7 +161,7 @@ async def async_execute(self, request=None) -> ModbusResponse:
if not count or not self.no_resend_on_retry:
self.... |
GPflow__GPflow-1727 | Small issue in the text of kernel in the heteroskedastic example
*Are there any mistakes in the docs?*
Hi,
In
https://gpflow.readthedocs.io/en/develop/notebooks/advanced/heteroskedastic.html
the explanation of the kernel has an issue when rendering. In my Chrome, it looks like
"withbothkernelsbeingmodeledassepar... | [
{
"content": "# ---\n# jupyter:\n# jupytext:\n# formats: ipynb,.pct.py:percent\n# text_representation:\n# extension: .py\n# format_name: percent\n# format_version: '1.3'\n# jupytext_version: 1.6.0\n# kernelspec:\n# display_name: Python 3\n# language: python\n# nam... | [
{
"content": "# ---\n# jupyter:\n# jupytext:\n# formats: ipynb,.pct.py:percent\n# text_representation:\n# extension: .py\n# format_name: percent\n# format_version: '1.3'\n# jupytext_version: 1.6.0\n# kernelspec:\n# display_name: Python 3\n# language: python\n# nam... | diff --git a/doc/source/notebooks/advanced/heteroskedastic.pct.py b/doc/source/notebooks/advanced/heteroskedastic.pct.py
index b7208ea1f..5c2aa8eee 100644
--- a/doc/source/notebooks/advanced/heteroskedastic.pct.py
+++ b/doc/source/notebooks/advanced/heteroskedastic.pct.py
@@ -122,6 +122,7 @@ def plot_distribution(X, Y,... |
jschneier__django-storages-590 | S3Boto3: switch to method GET Bucket (List Objects) Version 2
Hi,
Following the release of the version `1.7`, the implementation of `listdir` in `S3Boto3Backend` no longer use the GET Bucket (List Objects) Version 1 (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html) but use the new API Version 2 in... | [
{
"content": "import mimetypes\nimport os\nimport posixpath\nimport threading\nimport warnings\nfrom gzip import GzipFile\nfrom tempfile import SpooledTemporaryFile\n\nfrom django.conf import settings as django_settings\nfrom django.core.exceptions import ImproperlyConfigured, SuspiciousOperation\nfrom django.c... | [
{
"content": "import mimetypes\nimport os\nimport posixpath\nimport threading\nimport warnings\nfrom gzip import GzipFile\nfrom tempfile import SpooledTemporaryFile\n\nfrom django.conf import settings as django_settings\nfrom django.core.exceptions import ImproperlyConfigured, SuspiciousOperation\nfrom django.c... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index a99adc176..895b65ad9 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -5,9 +5,13 @@ django-storages CHANGELOG
******************
- Fix off-by-1 error in ``get_available_name`` whenever ``file_overwrite`` or ``overwrite_files`` is ``True`` (`#588`_, `#589`_)
+- Chang... |
internetarchive__openlibrary-4131 | Adding book page has problems with Unicode ÄÖÜäöü or ß
Adding books containing a german ß in title oder ÄÖÜäöü or ß in the author name results in an error.
### Evidence / Screenshot (if possible)
` /opt/openlibrary/deploys/openlibrary/61096f2/openlibrary/templates/books/edit.html:` error in processing template: U... | [
{
"content": "\"\"\"Handlers for adding and editing books.\"\"\"\n\nimport web\nimport simplejson\nimport csv\nimport datetime\n\nfrom infogami import config\nfrom infogami.core import code as core\nfrom infogami.core.db import ValidationException\nfrom infogami.utils import delegate\nfrom infogami.utils.view i... | [
{
"content": "\"\"\"Handlers for adding and editing books.\"\"\"\n\nimport web\nimport simplejson\nimport csv\nimport datetime\n\nfrom infogami import config\nfrom infogami.core import code as core\nfrom infogami.core.db import ValidationException\nfrom infogami.utils import delegate\nfrom infogami.utils.view i... | diff --git a/openlibrary/plugins/upstream/addbook.py b/openlibrary/plugins/upstream/addbook.py
index 30eeedd228d..797593fa807 100644
--- a/openlibrary/plugins/upstream/addbook.py
+++ b/openlibrary/plugins/upstream/addbook.py
@@ -782,7 +782,7 @@ def POST(self, key):
else:
add_flash_message(... |
angr__angr-1184 | Update reaching_definitions.py
Currently, the OP_BEFORE functionality in reaching definitions doesn't work, because it depends on the statement reaching observe function to be of type IMark, However, it's always filtered by light\engine.py
| [
{
"content": "import logging\n\nimport ailment\nimport pyvex\n\nfrom ..engine import SimEngine\nfrom ..vex.irop import operations as vex_operations\nfrom ...analyses.code_location import CodeLocation\n\n\n\nclass SimEngineLight(SimEngine):\n def __init__(self, engine_type='vex'):\n super(SimEngineLigh... | [
{
"content": "import logging\n\nimport ailment\nimport pyvex\n\nfrom ..engine import SimEngine\nfrom ..vex.irop import operations as vex_operations\nfrom ...analyses.code_location import CodeLocation\n\n\n\nclass SimEngineLight(SimEngine):\n def __init__(self, engine_type='vex'):\n super(SimEngineLigh... | diff --git a/angr/engines/light/engine.py b/angr/engines/light/engine.py
index 57e1883d58e..be2ccbbc798 100644
--- a/angr/engines/light/engine.py
+++ b/angr/engines/light/engine.py
@@ -67,8 +67,9 @@ def _process_Stmt(self):
self.stmt_idx = stmt_idx
if type(stmt) is pyvex.IRStmt.IMark:
+ ... |
elastic__apm-agent-python-1647 | [META 555] Add automated span type/subtype checking against shared spec
Spec PR: https://github.com/elastic/apm/pull/443
To start, we would just ensure that all span types/subtypes appear in the spec. In the future we will work on cross-agent alignment.
| [
{
"content": "# BSD 3-Clause License\n#\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain... | [
{
"content": "# BSD 3-Clause License\n#\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain... | diff --git a/elasticapm/instrumentation/packages/asyncio/aiopg.py b/elasticapm/instrumentation/packages/asyncio/aiopg.py
index 5d4a17064..eeace4b6b 100644
--- a/elasticapm/instrumentation/packages/asyncio/aiopg.py
+++ b/elasticapm/instrumentation/packages/asyncio/aiopg.py
@@ -58,7 +58,7 @@ async def call(self, module, ... |
apache__airflow-34568 | DryRun is not optional for patch task instance
## Summary
According to the [REST api docs](https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/patch_mapped_task_instance).
you can patch a task instance state. When you hit the api without sending a
"dry_run" variable, you get a KeyE... | [
{
"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/airflow/api_connexion/openapi/v1.yaml b/airflow/api_connexion/openapi/v1.yaml
index af9d0cf8a465e..6cd885f6dbaf2 100644
--- a/airflow/api_connexion/openapi/v1.yaml
+++ b/airflow/api_connexion/openapi/v1.yaml
@@ -4302,7 +4302,7 @@ components:
If set, don't actually run this operation. The respo... |
ultrabug__py3status-230 | Wrong tztime guess when using local
When using `tztime local`, the guessed time is UTC even if i3status outputs the right time.
i3status output : `{"name":"tztime","instance":"local","markup":"pango","full_text":"2016-03-29 09:42:50 CEST"}`
py3status output : `{"name":"tztime","instance":"local","markup":"pango","ful... | [
{
"content": "import sys\nimport os\n\nfrom copy import deepcopy\nfrom json import dumps, loads\nfrom datetime import datetime, timedelta, tzinfo\nfrom subprocess import Popen\nfrom subprocess import PIPE\nfrom syslog import syslog, LOG_INFO\nfrom tempfile import NamedTemporaryFile\nfrom threading import Thread... | [
{
"content": "import sys\nimport os\n\nfrom copy import deepcopy\nfrom json import dumps, loads\nfrom datetime import datetime, timedelta, tzinfo\nfrom subprocess import Popen\nfrom subprocess import PIPE\nfrom syslog import syslog, LOG_INFO\nfrom tempfile import NamedTemporaryFile\nfrom threading import Thread... | diff --git a/py3status/i3status.py b/py3status/i3status.py
index cfd58b0fb8..da635c45bc 100644
--- a/py3status/i3status.py
+++ b/py3status/i3status.py
@@ -114,7 +114,7 @@ def set_time_zone(self):
date = datetime.strptime(i3s_datetime, TIME_FORMAT)
# calculate the time delta
- utcnow = datetim... |
spack__spack-28420 | mesa18@18.3.6 build fails: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
### Steps to reproduce the issue
`mesa18@18.3.6` build fails using:
* `spack@develop` (997dba8ffdc01d50dff3ebae791aff3d0145c818 from `Mon Jan 3 18:22:48 2022 +0100`)
* Ubuntu 20.04, x86_64
* GCC 9.3.0
... | [
{
"content": "# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nimport sys\n\nfrom spack import *\n\n\nclass Mesa18(AutotoolsPackage):\n \"\"\"Mesa is an op... | [
{
"content": "# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nimport sys\n\nfrom spack import *\n\n\nclass Mesa18(AutotoolsPackage):\n \"\"\"Mesa is an op... | diff --git a/var/spack/repos/builtin/packages/mesa18/package.py b/var/spack/repos/builtin/packages/mesa18/package.py
index dbafa810d0c6d3..cf4eec6e6db253 100644
--- a/var/spack/repos/builtin/packages/mesa18/package.py
+++ b/var/spack/repos/builtin/packages/mesa18/package.py
@@ -76,6 +76,9 @@ class Mesa18(AutotoolsPacka... |
evennia__evennia-3133 | Clothing system bug with covering
#### Brief summary of issue / Description of requested feature:
Wearing an 'undershirt', then wearing a 'top' produces an error because of the top covering the undershirt
#### Steps to reproduce the issue / Reasons for adding feature:
1. Wear an undershirt
2. Wear a top
... | [
{
"content": "\"\"\"\nClothing - Provides a typeclass and commands for wearable clothing,\nwhich is appended to a character's description when worn.\n\nEvennia contribution - Tim Ashley Jenkins 2017\n\nClothing items, when worn, are added to the character's description\nin a list. For example, if wearing the fo... | [
{
"content": "\"\"\"\nClothing - Provides a typeclass and commands for wearable clothing,\nwhich is appended to a character's description when worn.\n\nEvennia contribution - Tim Ashley Jenkins 2017\n\nClothing items, when worn, are added to the character's description\nin a list. For example, if wearing the fo... | diff --git a/evennia/contrib/game_systems/clothing/clothing.py b/evennia/contrib/game_systems/clothing/clothing.py
index c3689165172..5143b9d9af6 100644
--- a/evennia/contrib/game_systems/clothing/clothing.py
+++ b/evennia/contrib/game_systems/clothing/clothing.py
@@ -277,7 +277,7 @@ def wear(self, wearer, wearstyle, q... |
RedHatInsights__insights-core-1593 | DeprecationWarning from qemu_xml
A bunch of below warning are reported in the python3 test of insights-plugins:
~~~
/Users/liuxc/work/insights/insights-core/insights/parsers/qemu_xml.py:149: DeprecationWarning: This method will be removed in future versions. Use '
list(elem)' or iteration over elem instead.
... | [
{
"content": "\"\"\"\nQemuXML file ``/etc/libvirt/qemu/*.xml``\n----------------------------------------\n\"\"\"\nfrom .. import XMLParser, parser\nfrom insights.specs import Specs\n\n\n@parser(Specs.qemu_xml)\nclass QemuXML(XMLParser):\n \"\"\"This class parses xml files under ``/etc/libvirt/qemu/`` using\n... | [
{
"content": "\"\"\"\nQemuXML file ``/etc/libvirt/qemu/*.xml``\n----------------------------------------\n\"\"\"\nfrom .. import XMLParser, parser\nfrom insights.specs import Specs\n\n\n@parser(Specs.qemu_xml)\nclass QemuXML(XMLParser):\n \"\"\"This class parses xml files under ``/etc/libvirt/qemu/`` using\n... | diff --git a/insights/parsers/qemu_xml.py b/insights/parsers/qemu_xml.py
index 7bbb43e717..0f193615db 100644
--- a/insights/parsers/qemu_xml.py
+++ b/insights/parsers/qemu_xml.py
@@ -146,10 +146,10 @@ def parse_dom(self):
else:
domain = {}
for child in self.dom:
- if no... |
secdev__scapy-3672 | lsc description lost
I just noticed that some commands lost their description in the `lsc()` output such as `corrupt_bits` and `corrupt_ bytes`:
```
>>> lsc()
IPID_count : Identify IP id values classes in a list of packets
arpcachepoison : Poison target's cache with (your MAC,victim's IP) couple
arpi... | [
{
"content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# This program is published under a GPLv2 license\n\n\"\"\"\nImplementation of the configuration object.\n\"\"\"\n\nfrom __future__ import absolute_impo... | [
{
"content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# This program is published under a GPLv2 license\n\n\"\"\"\nImplementation of the configuration object.\n\"\"\"\n\nfrom __future__ import absolute_impo... | diff --git a/scapy/config.py b/scapy/config.py
index 544cbffb4da..a33123fc152 100755
--- a/scapy/config.py
+++ b/scapy/config.py
@@ -326,8 +326,9 @@ def __repr__(self):
# type: () -> str
s = []
for li in sorted(self, key=lambda x: x.__name__):
- doc = li.__doc__.split("\n")[0] if l... |
getnikola__nikola-3368 | Dependency issue in gallery building with -n4
Building my site, if I use multiprocessing, I get errors about specific images "not existing".
It seems to me like the page tries to get the image size but the image is not processed yet. Probably a missing dependency.
| [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2020 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2020 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi... | diff --git a/CHANGES.txt b/CHANGES.txt
index 96a0fb0ee5..3bc99b559f 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -27,6 +27,8 @@ Bugfixes
(Issue #3362)
* Mark gallery images as "dirty" if EXIF configuration changes (Issue
#3357)
+* Make gallery indexes depend on destination images to avoid
+ multithreading race... |
mlflow__mlflow-5355 | [BUG] Spark model not recorded using `log_model` with distributed storage path
### Willingness to contribute
The MLflow Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the MLflow code base?
- [x] Yes. I can contribute a fix ... | [
{
"content": "\"\"\"\nThe ``mlflow.spark`` module provides an API for logging and loading Spark MLlib models. This module\nexports Spark MLlib models with the following flavors:\n\nSpark MLlib (native) format\n Allows models to be loaded as Spark Transformers for scoring in a Spark session.\n Models with ... | [
{
"content": "\"\"\"\nThe ``mlflow.spark`` module provides an API for logging and loading Spark MLlib models. This module\nexports Spark MLlib models with the following flavors:\n\nSpark MLlib (native) format\n Allows models to be loaded as Spark Transformers for scoring in a Spark session.\n Models with ... | diff --git a/mlflow/spark.py b/mlflow/spark.py
index 0531cd9183758..13f15b51d604b 100644
--- a/mlflow/spark.py
+++ b/mlflow/spark.py
@@ -255,6 +255,7 @@ def log_model(
input_example=input_example,
)
mlflow.tracking.fluent.log_artifacts(tmp_model_metadata_dir, artifact_path)
+ mlflo... |
kivy__kivy-1079 | Updating ScrollView from outside and scrolling with mouse after.
When I set ScrollView's scroll_y(x) property from outside (by some button), position of content is updated as supposed. But then when you try to scroll (with mouse wheel) after increasing scroll_y value (still in range 0-1), content and its move animation... | [
{
"content": "'''\nScroll View\n===========\n\n.. versionadded:: 1.0.4\n\nThe :class:`ScrollView` widget provides a scrollable/pannable viewport that is\nclipped at the scrollview's bounding box.\n\nScrolling Behavior\n------------------\n\nScrollView accepts only one child, and applies a viewport/window to it\... | [
{
"content": "'''\nScroll View\n===========\n\n.. versionadded:: 1.0.4\n\nThe :class:`ScrollView` widget provides a scrollable/pannable viewport that is\nclipped at the scrollview's bounding box.\n\nScrolling Behavior\n------------------\n\nScrollView accepts only one child, and applies a viewport/window to it\... | diff --git a/kivy/uix/scrollview.py b/kivy/uix/scrollview.py
index ea831851e5..83c7039694 100644
--- a/kivy/uix/scrollview.py
+++ b/kivy/uix/scrollview.py
@@ -176,8 +176,10 @@ def update_from_scroll(self, *largs):
if self.do_scroll_x:
self.scroll_x = min(1, max(0, self.scroll_x))
+ se... |
jschneier__django-storages-190 | preload_metadata on s3boto3 backend
When `preload_metadata` is set to `True` on the s3boto3 backend boto3 complains about an "Unknown parameter in input"
```
Traceback (most recent call last):
File "foo/env/bin/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "foo/env/lib/python3.4/sit... | [
{
"content": "import os\nimport posixpath\nimport mimetypes\nfrom gzip import GzipFile\nfrom tempfile import SpooledTemporaryFile\n\nfrom django.core.exceptions import ImproperlyConfigured, SuspiciousOperation\nfrom django.core.files.base import File\nfrom django.core.files.storage import Storage\nfrom django.u... | [
{
"content": "import os\nimport posixpath\nimport mimetypes\nfrom gzip import GzipFile\nfrom tempfile import SpooledTemporaryFile\n\nfrom django.core.exceptions import ImproperlyConfigured, SuspiciousOperation\nfrom django.core.files.base import File\nfrom django.core.files.storage import Storage\nfrom django.u... | diff --git a/storages/backends/s3boto3.py b/storages/backends/s3boto3.py
index 9f06d122f..0124c65b8 100644
--- a/storages/backends/s3boto3.py
+++ b/storages/backends/s3boto3.py
@@ -313,7 +313,7 @@ def entries(self):
"""
if self.preload_metadata and not self._entries:
self._entries = dict(... |
beetbox__beets-3517 | Erroneous @classmethod on NoneQuery.match
### Problem
When running a query against the library that contains a NoneQuery such as:
> dbcore.query.NoneQuery(u'gender', fast=False)
beet exits with the following traceback:
```sh
Traceback (most recent call last):
File "/Users/jackisback/opt/miniconda3/envs/... | [
{
"content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in... | [
{
"content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in... | diff --git a/beets/dbcore/query.py b/beets/dbcore/query.py
index 8fb64e206a..db4b861c49 100644
--- a/beets/dbcore/query.py
+++ b/beets/dbcore/query.py
@@ -156,12 +156,8 @@ def __init__(self, field, fast=True):
def col_clause(self):
return self.field + " IS NULL", ()
- @classmethod
- def match(cls,... |
marshmallow-code__webargs-340 | Drop support for marshmallow 3 versions older than rc1
Remove compatibility code added in https://github.com/sloria/webargs/pull/330 to support marshmallow 3 beta versions.
| [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport collections\nimport functools\nimport inspect\nimport logging\nimport warnings\nfrom distutils.version import LooseVersion\n\ntry:\n import simplejson as json\nexcept ImportError:\n import json\n\nimport marshmallow a... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport collections\nimport functools\nimport inspect\nimport logging\nimport warnings\nfrom distutils.version import LooseVersion\n\ntry:\n import simplejson as json\nexcept ImportError:\n import json\n\nimport marshmallow a... | diff --git a/webargs/core.py b/webargs/core.py
index 4a23a205..5b978f86 100755
--- a/webargs/core.py
+++ b/webargs/core.py
@@ -325,7 +325,6 @@ def _on_validation_error(self, error, req, schema):
kwargs["data"] = error.data
if MARSHMALLOW_VERSION_INFO[0] < 3:
kwargs["fields"] =... |
crytic__slither-1297 | [Bug-Candidate]: slither-flat a bug of --convert-external flag, which converts external to public in an interface
### Describe the issue:
```
slither-flat 0xda2c338350a0E59Ce71CDCED9679A3A590Dd9BEC --strategy MostDerived --convert-external
```
You will see that external function was converted to public function i... | [
{
"content": "import logging\nimport re\nimport uuid\nfrom collections import namedtuple\nfrom enum import Enum as PythonEnum\nfrom pathlib import Path\nfrom typing import List, Set, Dict, Optional\n\nfrom slither.core.compilation_unit import SlitherCompilationUnit\nfrom slither.core.declarations import Solidit... | [
{
"content": "import logging\nimport re\nimport uuid\nfrom collections import namedtuple\nfrom enum import Enum as PythonEnum\nfrom pathlib import Path\nfrom typing import List, Set, Dict, Optional\n\nfrom slither.core.compilation_unit import SlitherCompilationUnit\nfrom slither.core.declarations import Solidit... | diff --git a/slither/tools/flattening/flattening.py b/slither/tools/flattening/flattening.py
index f067bde6da..26f9796484 100644
--- a/slither/tools/flattening/flattening.py
+++ b/slither/tools/flattening/flattening.py
@@ -111,7 +111,7 @@ def _get_source_code(
to_patch = []
# interface must use exte... |
ipython__ipython-9453 | Event callbacks which register/unregister other callbacks lead to surprising behavior
tl;dr: the loop in [this line](https://github.com/ipython/ipython/blob/1d63c56f6d69d9f4cc47adcb87a7f80744a48260/IPython/core/events.py#L72) isn't robust to `register`/`unregister`. What's the desired behavior?
### The problem
We ran ... | [
{
"content": "\"\"\"Infrastructure for registering and firing callbacks on application events.\n\nUnlike :mod:`IPython.core.hooks`, which lets end users set single functions to\nbe called at specific times, or a collection of alternative methods to try,\ncallbacks are designed to be used by extension authors. A... | [
{
"content": "\"\"\"Infrastructure for registering and firing callbacks on application events.\n\nUnlike :mod:`IPython.core.hooks`, which lets end users set single functions to\nbe called at specific times, or a collection of alternative methods to try,\ncallbacks are designed to be used by extension authors. A... | diff --git a/IPython/core/events.py b/IPython/core/events.py
index 798ef01124c..bfd09fec6a7 100644
--- a/IPython/core/events.py
+++ b/IPython/core/events.py
@@ -69,7 +69,7 @@ def trigger(self, event, *args, **kwargs):
Any additional arguments are passed to all callbacks registered for this
event. Exce... |
cocotb__cocotb-1928 | Start testing in Python 3.9
Python 3.9.0b1 is release already, and soon there'll be a full release. We should start running CI against it, to catch things like #1910
| [
{
"content": "#!/usr/bin/env python\n###############################################################################\n# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n... | [
{
"content": "#!/usr/bin/env python\n###############################################################################\n# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n... | diff --git a/.travis.yml b/.travis.yml
index f4cb1e2c6d..2a00104280 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -72,6 +72,15 @@ jobs:
- echo 'travis_fold:end:cocotb_py36'
after_success: *travis_linux_post
+ - stage: SimTests
+ python: 3.9-dev
+ before_install: *travis_linx_prep
+ s... |
pymedusa__Medusa-8563 | [APP SUBMITTED]: TypeError: Object of type bytes is not JSON serializable
### INFO
**Python Version**: `3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0]`
**Operating System**: `Linux-5.4.0-40-generic-x86_64-with-glibc2.29`
**Locale**: `UTF-8`
**Branch**: [master](../tree/master)
**Database**: `44.15`
**Commit**: pym... | [
{
"content": "# coding=utf-8\n\"\"\"Base module for all torrent clients.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\nimport re\nimport time\nimport traceback\nfrom base64 import b16encode, b32decode\nfrom builtins import object\nfrom builtins import str\nfrom hashlib import sha1\n\nfrom ... | [
{
"content": "# coding=utf-8\n\"\"\"Base module for all torrent clients.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\nimport re\nimport time\nimport traceback\nfrom base64 import b16encode, b32decode\nfrom builtins import object\nfrom builtins import str\nfrom hashlib import sha1\n\nfrom ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7f11e25156..f4e4bc1044 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@
- Fix notify lists for prowl and email ([8535](https://github.com/pymedusa/Medusa/pull/8535))
- Fix shows sorting by article sort using (the, a, an) was reversed in config-general ([8532]... |
microsoft__playwright-python-756 | [BUG] WebSocket error is not notified
**Context:**
- Playwright Version: 1.12
- Operating System: macOS
- Python Version: 3.9
**Code Snippet**
```python
from playwright.sync_api import sync_playwright
with sync_playwright() as playwright:
browser = playwright.chromium.launch(headless=False)
try... | [
{
"content": "# Copyright (c) Microsoft 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 required by ap... | [
{
"content": "# Copyright (c) Microsoft 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 required by ap... | diff --git a/playwright/_impl/_network.py b/playwright/_impl/_network.py
index 9f30da908..1c1288ebf 100644
--- a/playwright/_impl/_network.py
+++ b/playwright/_impl/_network.py
@@ -295,7 +295,8 @@ def __init__(
lambda params: self._on_frame_received(params["opcode"], params["data"]),
)
se... |
web2py__web2py-1490 | response._view_environment missing in scheduler and shell
https://github.com/web2py/web2py/commit/b4acfd0724845633f667a55e593a15576379554d results in a failure to create `response._view_environment` when running scheduler tasks or the shell. Now, `response._view_environment` is only created in `gluon.main.serve_control... | [
{
"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 95359c3a5..9d93f1a6d 100644
--- a/gluon/shell.py
+++ b/gluon/shell.py
@@ -15,6 +15,7 @@
import os
import sys
import code
+import copy
import logging
import types
import re
@@ -167,6 +168,8 @@ def check_credentials(request, other_application='admin'):
... |
ros__ros_comm-1973 | [roslaunch] --ros-args option fails in noetic
# Short description
Running `roslaunch` with the option `--ros-args` under ROS noetic fails.
# Expected behavior
Print the arguments of the launch file like under ROS melodic.
As an example, getting the arguments of roslaunch's own example launch-file via
```
do... | [
{
"content": "# Software License Agreement (BSD License)\n#\n# Copyright (c) 2008, Willow Garage, Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# * Redistributions of so... | [
{
"content": "# Software License Agreement (BSD License)\n#\n# Copyright (c) 2008, Willow Garage, Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# * Redistributions of so... | diff --git a/tools/roslaunch/src/roslaunch/__init__.py b/tools/roslaunch/src/roslaunch/__init__.py
index 597a895bb3..fcc18ea977 100644
--- a/tools/roslaunch/src/roslaunch/__init__.py
+++ b/tools/roslaunch/src/roslaunch/__init__.py
@@ -274,7 +274,7 @@ def main(argv=sys.argv):
elif options.file_list:
... |
iterative__dvc-1343 | `--with-deps` and `pipeline show` don't see a dummy stage
```
│#!/bin/bash
│
│set -e
│set -x
│
│rm -rf myrepo
│mkdir myrepo
│cd myrepo
│git init
│dvc init
│
│mkdir foo
│echo foo/
│echo 1 > foo/1
│dvc add foo/1
│echo 2 > foo/2
│dvc add foo/2
│dvc run -d foo/1 -d foo/2 -f Dvcfile
│dvc run -d foo -o bar... | [
{
"content": "import collections\nimport os\n\nfrom dvc.exceptions import DvcException, MoveNotDataSourceError\nfrom dvc.stage import Stage\n\n\nclass InitError(DvcException):\n def __init__(self, msg):\n super(InitError, self).__init__(msg)\n\n\nclass ReproductionError(DvcException):\n def __init_... | [
{
"content": "import collections\nimport os\n\nfrom dvc.exceptions import DvcException, MoveNotDataSourceError\nfrom dvc.stage import Stage\n\n\nclass InitError(DvcException):\n def __init__(self, msg):\n super(InitError, self).__init__(msg)\n\n\nclass ReproductionError(DvcException):\n def __init_... | diff --git a/dvc/project.py b/dvc/project.py
index c82ba944f4..67b3da6040 100644
--- a/dvc/project.py
+++ b/dvc/project.py
@@ -1058,7 +1058,8 @@ def graph(self):
for dep in stage.deps:
for out in outs:
if out.path != dep.path \
- and not dep.path.... |
pyjanitor-devs__pyjanitor-633 | Version on GitHub different from version on PyPI
# Brief Description of Fix
<!-- Please describe the fix in terms of a "before" and "after". In other words, what's not so good about the current docs
page, and what you would like to see it become.
Example starter wording is provided. -->
Currently, the version... | [
{
"content": "import re\nfrom pathlib import Path\n\nfrom setuptools import setup\n\n\ndef requirements():\n with open(\"requirements.txt\", \"r+\") as f:\n return f.read()\n\n\ndef generate_long_description() -> str:\n \"\"\"\n Extra chunks from README for PyPI description.\n\n Target chunks... | [
{
"content": "import re\nfrom pathlib import Path\n\nfrom setuptools import setup\n\n\ndef requirements():\n with open(\"requirements.txt\", \"r+\") as f:\n return f.read()\n\n\ndef generate_long_description() -> str:\n \"\"\"\n Extra chunks from README for PyPI description.\n\n Target chunks... | diff --git a/.bumpversion.cfg b/.bumpversion.cfg
index 8ba11f696..83b551bf9 100644
--- a/.bumpversion.cfg
+++ b/.bumpversion.cfg
@@ -1,5 +1,5 @@
[bumpversion]
-current_version = 0.19.0
+current_version = 0.20.0
commit = True
tag = True
diff --git a/janitor/__init__.py b/janitor/__init__.py
index d7285cb8a..99e1bac... |
pyjanitor-devs__pyjanitor-635 | Natsort import error
# Brief Description
The module `natsort` isn't found because it was added (in #627) to dev requirements but needs to be in the main requirements file. It is imported with all functions from the init script.
Rather than requiring it, perhaps it could also be brought in with a `try`, `except` ... | [
{
"content": "import re\nfrom pathlib import Path\n\nfrom setuptools import setup\n\n\ndef requirements():\n with open(\"requirements.txt\", \"r+\") as f:\n return f.read()\n\n\ndef generate_long_description() -> str:\n \"\"\"\n Extra chunks from README for PyPI description.\n\n Target chunks... | [
{
"content": "import re\nfrom pathlib import Path\n\nfrom setuptools import setup\n\n\ndef requirements():\n with open(\"requirements.txt\", \"r+\") as f:\n return f.read()\n\n\ndef generate_long_description() -> str:\n \"\"\"\n Extra chunks from README for PyPI description.\n\n Target chunks... | diff --git a/.bumpversion.cfg b/.bumpversion.cfg
index e83a807ec..375a37362 100644
--- a/.bumpversion.cfg
+++ b/.bumpversion.cfg
@@ -1,5 +1,5 @@
[bumpversion]
-current_version = 0.20.1
+current_version = 0.20.2
commit = True
tag = True
diff --git a/janitor/__init__.py b/janitor/__init__.py
index c3adcf3d4..21fbbf7... |
django-extensions__django-extensions-651 | sync_s3 broken with py3
```
File "/home/kondou/git/project/lib/python3.4/site-packages/django_extensions/management/commands/sync_s3.py", line 261, in sync_s3
os.path.walk(directory, self.upload_s3, (bucket, key, self.AWS_BUCKET_NAME, directory))
AttributeError: 'module' object has no attribute 'walk'
```
https:... | [
{
"content": "\"\"\"\nSync Media to S3\n================\n\nDjango command that scans all files in your settings.MEDIA_ROOT and\nsettings.STATIC_ROOT folders and uploads them to S3 with the same directory\nstructure.\n\nThis command can optionally do the following but it is off by default:\n* gzip compress any ... | [
{
"content": "\"\"\"\nSync Media to S3\n================\n\nDjango command that scans all files in your settings.MEDIA_ROOT and\nsettings.STATIC_ROOT folders and uploads them to S3 with the same directory\nstructure.\n\nThis command can optionally do the following but it is off by default:\n* gzip compress any ... | diff --git a/django_extensions/management/commands/sync_s3.py b/django_extensions/management/commands/sync_s3.py
index 7efb71ae0..8ec430734 100644
--- a/django_extensions/management/commands/sync_s3.py
+++ b/django_extensions/management/commands/sync_s3.py
@@ -258,7 +258,8 @@ def sync_s3(self):
"""
bu... |
falconry__falcon-1955 | Hook after params attribute is missing
Hi
```python
def do_before(req, resp, resource, params):
# here params is available
def do_after(req, resp, resource, params):
# here params is not available
```
How can I access the params?
| [
{
"content": "# Copyright 2013 by Rackspace Hosting, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requir... | [
{
"content": "# Copyright 2013 by Rackspace Hosting, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requir... | diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index 4022f1fab..d6a3ba7e0 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -51,8 +51,8 @@ jobs:
- python-version: pypy3
os: ubuntu-20.04
toxenv: pypy3
- - python-version... |
pre-commit__pre-commit-1051 | --show-diff-on-failure does not respect --color
I'm running `pre-commit` on gitlab, and I noticed that the diffs produced when `--show-diff-on-failure` is enabled do not respect `--color=always`.
It looks like a pretty easy fix: we just need to pass the `--color` setting to `git diff`. It supports the same "aut... | [
{
"content": "from __future__ import unicode_literals\n\nimport logging\nimport os\nimport re\nimport subprocess\nimport sys\n\nfrom identify.identify import tags_from_path\n\nfrom pre_commit import color\nfrom pre_commit import git\nfrom pre_commit import output\nfrom pre_commit.clientlib import load_config\nf... | [
{
"content": "from __future__ import unicode_literals\n\nimport logging\nimport os\nimport re\nimport subprocess\nimport sys\n\nfrom identify.identify import tags_from_path\n\nfrom pre_commit import color\nfrom pre_commit import git\nfrom pre_commit import output\nfrom pre_commit.clientlib import load_config\nf... | diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py
index d060e1861..33c0f10bc 100644
--- a/pre_commit/commands/run.py
+++ b/pre_commit/commands/run.py
@@ -224,7 +224,13 @@ def _run_hooks(config, hooks, args, environ):
'`pre-commit install`.',
)
output.write_line(... |
great-expectations__great_expectations-7626 | Memory problems in map_condition_auxillary_methods._spark_map_condition_index() in 0.16.6
**Describe the bug**
I was upgrading our GX stack to the latest version (0.16.6) from 0.15.26. Some of our benchmarks on medium-sized data (~ 5 million rows) were running out of memory where they had run fine before. I did some d... | [
{
"content": "from __future__ import annotations\n\nimport logging\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Dict,\n List,\n Optional,\n Union,\n)\n\nimport numpy as np\nimport pandas as pd\n\nimport great_expectations.exceptions as gx_exceptions\nfrom great_expectations.core.metric_func... | [
{
"content": "from __future__ import annotations\n\nimport logging\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Dict,\n List,\n Optional,\n Union,\n)\n\nimport numpy as np\nimport pandas as pd\n\nimport great_expectations.exceptions as gx_exceptions\nfrom great_expectations.core.metric_func... | diff --git a/great_expectations/expectations/metrics/map_metric_provider/map_condition_auxilliary_methods.py b/great_expectations/expectations/metrics/map_metric_provider/map_condition_auxilliary_methods.py
index 601343c0b43b..1454be2bc006 100644
--- a/great_expectations/expectations/metrics/map_metric_provider/map_con... |
kivy__kivy-3619 | sandbox decorator not working on py3
run:
```
python3 kivy/kivy/uix/sandbox.py
```
result:
```
Clock.tick()
File "/usr/lib/python3.4/site-packages/kivy/clock.py", line 483, in tick
self._process_events()
File "/usr/lib/python3.4/site-packages/kivy/clock.py", line 615, in _process_events
event.tick(self._last_tick... | [
{
"content": "'''\nSandbox\n=======\n\n.. versionadded:: 1.8.0\n\n.. warning::\n\n This is experimental and subject to change as long as this warning notice\n is present.\n\nThis is a widget that runs itself and all of its children in a Sandbox. That\nmeans if a child raises an Exception, it will be caugh... | [
{
"content": "'''\nSandbox\n=======\n\n.. versionadded:: 1.8.0\n\n.. warning::\n\n This is experimental and subject to change as long as this warning notice\n is present.\n\nThis is a widget that runs itself and all of its children in a Sandbox. That\nmeans if a child raises an Exception, it will be caugh... | diff --git a/kivy/uix/sandbox.py b/kivy/uix/sandbox.py
index 53e4f94bfc..d0555b86d1 100644
--- a/kivy/uix/sandbox.py
+++ b/kivy/uix/sandbox.py
@@ -24,6 +24,7 @@
__all__ = ('Sandbox', )
+from functools import wraps
from kivy.context import Context
from kivy.base import ExceptionManagerBase
from kivy.clock import... |
freqtrade__freqtrade-2884 | Strange results for download-data
I recalled #2716, tried to reproduce and obtained very strange results:
* remove config.json
* then run:
```
$ freqtrade download-data --exchange gemini --pairs 'BTC/USD' 'LTC/USD' 'BCH/USD' 'ETH/USD' -t 1h --days 5 -v
2020-02-08 03:48:33,819 - freqtrade.loggers - INFO - Verbosi... | [
{
"content": "import logging\nimport sys\nfrom typing import Any, Dict, List\n\nimport arrow\n\nfrom freqtrade.configuration import TimeRange, setup_utils_configuration\nfrom freqtrade.data.history import (convert_trades_to_ohlcv,\n refresh_backtest_ohlcv_data,\n ... | [
{
"content": "import logging\nimport sys\nfrom typing import Any, Dict, List\n\nimport arrow\n\nfrom freqtrade.configuration import TimeRange, setup_utils_configuration\nfrom freqtrade.data.history import (convert_trades_to_ohlcv,\n refresh_backtest_ohlcv_data,\n ... | diff --git a/freqtrade/commands/data_commands.py b/freqtrade/commands/data_commands.py
index ddc2ca25bc6..e8e0f06d2e9 100644
--- a/freqtrade/commands/data_commands.py
+++ b/freqtrade/commands/data_commands.py
@@ -37,7 +37,12 @@ def start_download_data(args: Dict[str, Any]) -> None:
pairs_not_available: List[str] =... |
zestedesavoir__zds-site-3627 | Problème d'espace dans les tags
« foo, bar » est mal parsé mais pas « for,bar ». Je bosse dessus de suite.
| [
{
"content": "# coding: utf-8\n\nfrom datetime import datetime\ntry:\n import ujson as json_reader\nexcept ImportError:\n try:\n import simplejson as json_reader\n except:\n import json as json_reader\n\nfrom math import ceil\nimport shutil\n\nfrom django.conf import settings\nfrom django... | [
{
"content": "# coding: utf-8\n\nfrom datetime import datetime\ntry:\n import ujson as json_reader\nexcept ImportError:\n try:\n import simplejson as json_reader\n except:\n import json as json_reader\n\nfrom math import ceil\nimport shutil\n\nfrom django.conf import settings\nfrom django... | diff --git a/zds/tutorialv2/models/models_database.py b/zds/tutorialv2/models/models_database.py
index a72a408455..a3224c635e 100644
--- a/zds/tutorialv2/models/models_database.py
+++ b/zds/tutorialv2/models/models_database.py
@@ -527,7 +527,7 @@ def add_tags(self, tag_collection):
"""
for tag in tag_... |
fal-ai__dbt-fal-197 | [Bug] Too many messages received before initialization
> mmeasic: Hey, I get this log message on dbt version 0.21.0:
```Logged from file /Users/mmeasic/.virtualenvs/bi-etl-dbt/lib/python3.8/site-packages/dbt/parser/manifest.py, line 792
Traceback (most recent call last):
File "/Users/mmeasic/.virtualenvs/bi-etl-... | [
{
"content": "from typing import List\nimport sys\nfrom dbt.logger import log_manager, GLOBAL_LOGGER as logger\nfrom fal.cli.flow_runner import fal_flow_run\nfrom faldbt.lib import DBT_VCURRENT, DBT_V1\nfrom .args import parse_args\nfrom .fal_runner import fal_run\nfrom fal.telemetry import telemetry\n\n\n@tele... | [
{
"content": "from typing import List\nimport sys\nfrom dbt.logger import log_manager, GLOBAL_LOGGER as logger\nfrom fal.cli.flow_runner import fal_flow_run\nfrom faldbt.lib import DBT_VCURRENT, DBT_V1\nfrom .args import parse_args\nfrom .fal_runner import fal_run\n\n\ndef cli(argv: List[str] = sys.argv):\n ... | diff --git a/src/fal/cli/cli.py b/src/fal/cli/cli.py
index 37f40c5dc..665d4364b 100644
--- a/src/fal/cli/cli.py
+++ b/src/fal/cli/cli.py
@@ -20,6 +20,10 @@ def cli(argv: List[str] = sys.argv):
exclude_count = argv.count("--exclude")
script_count = argv.count("--script")
+ # Disabling the dbt.logger.Delay... |
streamlink__streamlink-1513 | Fox.com.tr not work with Streamlink
## **Checklist**
- [x] This is a bug report.
- [ ] This is a feature request.
- [ ] ] This is a plugin (improvement) request.
- [ ] I have read the contribution guidelines.
## **Description**
i cant see anything at fox.com.tr
i have test it with this links but i beca... | [
{
"content": "from __future__ import print_function\nimport re\n\nfrom streamlink.plugin import Plugin\nfrom streamlink.plugin.api import http\nfrom streamlink.plugin.api import validate\nfrom streamlink.stream import HLSStream\n\n\nclass FoxTR(Plugin):\n \"\"\"\n Support for Turkish Fox live stream: http... | [
{
"content": "from __future__ import print_function\nimport re\n\nfrom streamlink.plugin import Plugin\nfrom streamlink.plugin.api import http\nfrom streamlink.plugin.api import validate\nfrom streamlink.stream import HLSStream\n\n\nclass FoxTR(Plugin):\n \"\"\"\n Support for Turkish Fox live stream: http... | diff --git a/src/streamlink/plugins/foxtr.py b/src/streamlink/plugins/foxtr.py
index c0ceebe3ebc..606bec26f72 100644
--- a/src/streamlink/plugins/foxtr.py
+++ b/src/streamlink/plugins/foxtr.py
@@ -12,7 +12,7 @@ class FoxTR(Plugin):
Support for Turkish Fox live stream: http://www.fox.com.tr/canli-yayin
"""
... |
google__turbinia-475 | worker version check failure crashes server
If the worker version doesn't match the server it is supposed to error out and the server should handle that gracefully and report it in the task status. Right now we get this on the server:
```
Traceback (most recent call last):
File "/usr/local/bin/turbiniactl", line ... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2018 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 2018 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/workers/__init__.py b/turbinia/workers/__init__.py
index 9516f6255..657d28c93 100644
--- a/turbinia/workers/__init__.py
+++ b/turbinia/workers/__init__.py
@@ -613,7 +613,7 @@ def run_wrapper(self, evidence):
self.turbinia_version, turbinia.__version__))
self.result.lo... |
psychopy__psychopy-2734 | [bug] visual.Rect component does not recalculate vertices after change of size, width and height properties
Which results in inability to update width and height of Rect during main loop. I have noticed that Rect class was updated (commit from 14 october), but this update made it unusable. Fix is simple, update vertice... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"Creates a rectangle of given width and height as a special case of a\n:class:`~psychopy.visual.ShapeStim`\"\"\"\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019 Open Science Tools Ltd.\n# Distributed under... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"Creates a rectangle of given width and height as a special case of a\n:class:`~psychopy.visual.ShapeStim`\"\"\"\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019 Open Science Tools Ltd.\n# Distributed under... | diff --git a/psychopy/visual/rect.py b/psychopy/visual/rect.py
index 7120af321b..8c5ac0c822 100644
--- a/psychopy/visual/rect.py
+++ b/psychopy/visual/rect.py
@@ -120,6 +120,8 @@ def size(self, value):
self.__dict__['width'] = width
self.__dict__['height'] = height
+ self._needVertexUpdate = ... |
learningequality__kolibri-10974 | Remote browsing - Search and filters are not working
## Observed behavior
Both search and filters are not working while remote browsing.
## Expected behavior
Fully functional search and fitlers.
## Steps to reproduce the issue
1. Install the latest develop build
2. Navigate to Library > Explore libraries > Br... | [
{
"content": "import os\nimport re\nimport stat\nfrom collections import OrderedDict\nfrom io import BufferedIOBase\nfrom wsgiref.headers import Headers\n\nfrom django.contrib.staticfiles import finders\nfrom django.core.files.storage import FileSystemStorage\nfrom django.utils._os import safe_join\nfrom six.mo... | [
{
"content": "import os\nimport re\nimport stat\nfrom collections import OrderedDict\nfrom io import BufferedIOBase\nfrom wsgiref.headers import Headers\n\nfrom django.contrib.staticfiles import finders\nfrom django.core.files.storage import FileSystemStorage\nfrom django.utils._os import safe_join\nfrom six.mo... | diff --git a/kolibri/plugins/learn/assets/src/views/LibraryPage/index.vue b/kolibri/plugins/learn/assets/src/views/LibraryPage/index.vue
index 0e49d336b3e..62bf697ba98 100644
--- a/kolibri/plugins/learn/assets/src/views/LibraryPage/index.vue
+++ b/kolibri/plugins/learn/assets/src/views/LibraryPage/index.vue
@@ -11,7 +1... |
opsdroid__opsdroid-1998 | opdroid error when try send an pdf in matrix
<!-- Before you post an issue or if you are unsure about something join our matrix channel https://app.element.io/#/room/#opsdroid-general:matrix.org and ask away! We are more than happy to help you. -->
# Description
Please include a summary of the issue.
Try to send an ... | [
{
"content": "\"\"\"Connector for Matrix (https://matrix.org).\"\"\"\nimport functools\nimport json\nimport logging\nimport re\nfrom pathlib import Path\nfrom urllib.parse import urlparse\n\nimport aiohttp\nimport nio\nimport nio.responses\nimport nio.exceptions\nfrom opsdroid import const, events\nfrom opsdroi... | [
{
"content": "\"\"\"Connector for Matrix (https://matrix.org).\"\"\"\nimport functools\nimport json\nimport logging\nimport re\nfrom pathlib import Path\nfrom urllib.parse import urlparse\n\nimport aiohttp\nimport nio\nimport nio.responses\nimport nio.exceptions\nfrom opsdroid import const, events\nfrom opsdroi... | diff --git a/opsdroid/connector/matrix/connector.py b/opsdroid/connector/matrix/connector.py
index 6a9a03575..c813560a7 100644
--- a/opsdroid/connector/matrix/connector.py
+++ b/opsdroid/connector/matrix/connector.py
@@ -514,7 +514,10 @@ async def _file_to_mxc_url(self, file_event):
mimetype = await file_e... |
qutebrowser__qutebrowser-2461 | AttributeError for downloadProgress
Report on v0.8.4, not sure if it's still current:
```
18:04:39 DEBUG downloads downloads:fetch:879 fetch: PyQt5.QtCore.QUrl('https://geekhack.org/attachment.php?attachmentid=49533&d=1335820818') -> attachment.jpg
18:04:39 DEBUG misc standarddir:_writable_location:12... | [
{
"content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License... | [
{
"content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License... | diff --git a/qutebrowser/browser/qtnetworkdownloads.py b/qutebrowser/browser/qtnetworkdownloads.py
index 5ac689e29ea..920673d4b28 100644
--- a/qutebrowser/browser/qtnetworkdownloads.py
+++ b/qutebrowser/browser/qtnetworkdownloads.py
@@ -110,6 +110,9 @@ def _create_fileobj(self):
def _do_die(self):
"""Abor... |
beetbox__beets-2912 | lyrics: Incorrect disabling of Genius backend
### Problem
i try debugging beets and meet an error on lyric plugin.
installing bs4 will fix the error but unfortunately i can't reproduce the error after that, even with new virtualenv
Running this command in verbose (`-vv`) mode:
```sh
$ # before install bs... | [
{
"content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in... | [
{
"content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in... | diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py
index d9db8eadcc..57083f96fc 100644
--- a/beetsplug/lyrics.py
+++ b/beetsplug/lyrics.py
@@ -679,7 +679,7 @@ def __init__(self):
u'The Genius backend requires BeautifulSoup, which is not '
u'installed, so the source is disabled.'
... |
TabbycatDebate__tabbycat-1178 | Email draw/custom email/motions page formatting error
Running the latest develop branch v2.3.0A.
The message box on the email draw/custom email motions page is obscured/broken as per the picture running Windows 10/Google Chrome.
Error reproduced on a Mac/Google Chrome.
:\n \"\"\"Simple form that just sends a... | [
{
"content": "from django import forms\nfrom django.conf import settings\nfrom django.core.mail import send_mail\nfrom django.utils.translation import gettext as _, gettext_lazy\nfrom django_summernote.widgets import SummernoteWidget\n\n\nclass TestEmailForm(forms.Form):\n \"\"\"Simple form that just sends a... | diff --git a/tabbycat/notifications/forms.py b/tabbycat/notifications/forms.py
index 7e40db2aef3..c1c25a19710 100644
--- a/tabbycat/notifications/forms.py
+++ b/tabbycat/notifications/forms.py
@@ -27,4 +27,5 @@ class BasicEmailForm(forms.Form):
Note that the list of recipients is handled by Vue, bypassing this For... |
netbox-community__netbox-11404 | Scheduling a job in the past raises an exception
### NetBox version
v3.4.2
### Python version
3.10
### Steps to Reproduce
1. Create a script
2. Schedule it in the past
### Expected Behavior
Form validation error message
### Observed Behavior
```
Traceback (most recent call last):
File "/home/main/devel/re... | [
{
"content": "from django import forms\nfrom django.utils import timezone\nfrom django.utils.translation import gettext as _\n\nfrom utilities.forms import BootstrapMixin, DateTimePicker, SelectDurationWidget\n\n__all__ = (\n 'ScriptForm',\n)\n\n\nclass ScriptForm(BootstrapMixin, forms.Form):\n _commit = ... | [
{
"content": "from django import forms\nfrom django.utils import timezone\nfrom django.utils.translation import gettext as _\n\nfrom utilities.forms import BootstrapMixin, DateTimePicker, SelectDurationWidget\n\n__all__ = (\n 'ScriptForm',\n)\n\n\nclass ScriptForm(BootstrapMixin, forms.Form):\n _commit = ... | diff --git a/netbox/extras/forms/scripts.py b/netbox/extras/forms/scripts.py
index 58388e247cc..e61bb111d6a 100644
--- a/netbox/extras/forms/scripts.py
+++ b/netbox/extras/forms/scripts.py
@@ -48,9 +48,7 @@ def __init__(self, *args, **kwargs):
def clean__schedule_at(self):
scheduled_time = self.cleaned_da... |
goauthentik__authentik-2536 | Cannot use kubernetes secret - read only filesystem
I am trying to pass secrets from Kubernetes into Authentik. For that I added the following lines to the Helm values:
```
volumes:
- name: cluster-domain-cert
secret:
secretName: ${CLUSTER_DOMAIN_CERT}
defaultMode: 0666
it... | [
{
"content": "\"\"\"Crypto tasks\"\"\"\nfrom glob import glob\nfrom pathlib import Path\n\nfrom cryptography.hazmat.backends import default_backend\nfrom cryptography.hazmat.primitives.serialization import load_pem_private_key\nfrom cryptography.x509.base import load_pem_x509_certificate\nfrom django.utils.tran... | [
{
"content": "\"\"\"Crypto tasks\"\"\"\nfrom glob import glob\nfrom pathlib import Path\n\nfrom cryptography.hazmat.backends import default_backend\nfrom cryptography.hazmat.primitives.serialization import load_pem_private_key\nfrom cryptography.x509.base import load_pem_x509_certificate\nfrom django.utils.tran... | diff --git a/authentik/crypto/tasks.py b/authentik/crypto/tasks.py
index 20b9e1ad15c0..54b329800996 100644
--- a/authentik/crypto/tasks.py
+++ b/authentik/crypto/tasks.py
@@ -61,7 +61,7 @@ def certificate_discovery(self: MonitoredTask):
else:
cert_name = path.name.replace(path.suffix, "")
... |
angr__angr-4471 | `ReturnDuplicator` incorrectly duplicating tail jumps
### Description
I was trying to decompile all the functions in the binary, and decompiling "function" at 0x2070 gives following exception:
```python
Traceback (most recent call last):
File "/home/[redacted]/ailment/tagged_object.py", line 29, in __getattr_... | [
{
"content": "from typing import Any, Tuple, Dict, List\nfrom itertools import count\nimport copy\nimport logging\nimport inspect\n\nimport ailment.expression\nimport networkx\n\nfrom ailment import Block\nfrom ailment.statement import Jump, ConditionalJump, Assignment, Return, Label\nfrom ailment.expression im... | [
{
"content": "from typing import Any, Tuple, Dict, List\nfrom itertools import count\nimport copy\nimport logging\nimport inspect\n\nimport ailment.expression\nimport networkx\n\nfrom ailment import Block\nfrom ailment.statement import Jump, ConditionalJump, Assignment, Return, Label\nfrom ailment.expression im... | diff --git a/angr/analyses/decompiler/optimization_passes/return_duplicator.py b/angr/analyses/decompiler/optimization_passes/return_duplicator.py
index f91df95bb5b..540dfe28909 100644
--- a/angr/analyses/decompiler/optimization_passes/return_duplicator.py
+++ b/angr/analyses/decompiler/optimization_passes/return_dupli... |
yt-project__yt-3661 | Colortransferfunction map_to_colormap makes last values for all channels zero
### Bug report
**Bug summary**
When using the `map_to_colormap` of a `yt.visualization.volume_rendering.transfer_functions.ColorTransferFunction` object, the last value of the `red`, `green`, `blue`, `alpha` channels are always zero.
... | [
{
"content": "import numpy as np\nfrom matplotlib.cm import get_cmap\nfrom more_itertools import always_iterable\n\nfrom yt.funcs import mylog\nfrom yt.utilities.physical_constants import clight, hcgs, kboltz\n\n\nclass TransferFunction:\n r\"\"\"A transfer function governs the transmission of emission and\n... | [
{
"content": "import numpy as np\nfrom matplotlib.cm import get_cmap\nfrom more_itertools import always_iterable\n\nfrom yt.funcs import mylog\nfrom yt.utilities.physical_constants import clight, hcgs, kboltz\n\n\nclass TransferFunction:\n r\"\"\"A transfer function governs the transmission of emission and\n... | diff --git a/yt/visualization/volume_rendering/transfer_functions.py b/yt/visualization/volume_rendering/transfer_functions.py
index b1140ca7afa..4491fc4f5d7 100644
--- a/yt/visualization/volume_rendering/transfer_functions.py
+++ b/yt/visualization/volume_rendering/transfer_functions.py
@@ -787,7 +787,7 @@ def map_to_... |
enthought__chaco-589 | ImagePlot.draw generates a fatal error when the window showing a plot was resized too small
**Problem Description**
I have a plot shown in a window. There are a few tools added to the plot: a hovering tool, a selection tool, a zoom tool. When I resize the window so small that the plot does not show the application cra... | [
{
"content": "#\n# (C) Copyright 2013 Enthought, Inc., Austin, TX\n# All right reserved.\n#\n# This file is open source software distributed according to the terms in\n# LICENSE.txt\n#\n\n\"\"\" Defines the ImagePlot class.\n\"\"\"\n\n\n\n# Standard library imports\nfrom math import ceil, floor, pi\nfrom contex... | [
{
"content": "#\n# (C) Copyright 2013 Enthought, Inc., Austin, TX\n# All right reserved.\n#\n# This file is open source software distributed according to the terms in\n# LICENSE.txt\n#\n\n\"\"\" Defines the ImagePlot class.\n\"\"\"\n\n\n\n# Standard library imports\nfrom math import ceil, floor, pi\nfrom contex... | diff --git a/chaco/image_plot.py b/chaco/image_plot.py
index 39b690d46..bef02f1d3 100644
--- a/chaco/image_plot.py
+++ b/chaco/image_plot.py
@@ -302,7 +302,7 @@ def _calc_zoom_coords(self, image_rect):
"""
ix, iy, image_width, image_height = image_rect
if 0 in (image_width, image_height) or 0... |
python-discord__bot-1060 | Remove Python formatting from !eval result codeblock
Currently when calling the !eval command the bot formats the result from the command as a python formatted codeblock. This can lead to a badly coloured result if the result is not python code (which it rarely would be).
For example, if the result had an apostroph... | [
{
"content": "import asyncio\nimport contextlib\nimport datetime\nimport logging\nimport re\nimport textwrap\nfrom functools import partial\nfrom signal import Signals\nfrom typing import Optional, Tuple\n\nfrom discord import HTTPException, Message, NotFound, Reaction, User\nfrom discord.ext.commands import Co... | [
{
"content": "import asyncio\nimport contextlib\nimport datetime\nimport logging\nimport re\nimport textwrap\nfrom functools import partial\nfrom signal import Signals\nfrom typing import Optional, Tuple\n\nfrom discord import HTTPException, Message, NotFound, Reaction, User\nfrom discord.ext.commands import Co... | diff --git a/bot/cogs/snekbox.py b/bot/cogs/snekbox.py
index 662f908699..52c8b6f883 100644
--- a/bot/cogs/snekbox.py
+++ b/bot/cogs/snekbox.py
@@ -202,7 +202,7 @@ async def send_eval(self, ctx: Context, code: str) -> Message:
output, paste_link = await self.format_output(results["stdout"])
... |
mne-tools__mne-bids-236 | Events are misaligned
In sidecar `*_events.tsv` files, the onsets of the events are defined (excerpt from the BIDS doc):
> Onset (in seconds) of the event measured from the beginning of the acquisition of the first volume in the corresponding task imaging data file.
In other words, the first sample is always T=0.... | [
{
"content": "\"\"\"Check whether a file format is supported by BIDS and then load it.\"\"\"\n# Authors: Mainak Jas <mainak.jas@telecom-paristech.fr>\n# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>\n# Teon Brooks <teon.brooks@gmail.com>\n# Chris Holdgraf <choldgraf@ber... | [
{
"content": "\"\"\"Check whether a file format is supported by BIDS and then load it.\"\"\"\n# Authors: Mainak Jas <mainak.jas@telecom-paristech.fr>\n# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>\n# Teon Brooks <teon.brooks@gmail.com>\n# Chris Holdgraf <choldgraf@ber... | diff --git a/mne_bids/read.py b/mne_bids/read.py
index 7d9f65fb9..4e87a0a0f 100644
--- a/mne_bids/read.py
+++ b/mne_bids/read.py
@@ -101,7 +101,7 @@ def _handle_events_reading(events_fname, raw):
annot_from_events = mne.Annotations(onset=onsets,
duration=durations,
... |
piskvorky__gensim-3524 | Gensim broken with SciPy 1.13.0
Gensim is broken with [SciPy 1.13.0](https://github.com/scipy/scipy/releases/tag/v1.13.0) which was released today.
This is due to the [removal of scipy.linalg.triu](https://github.com/scipy/scipy/pull/19674)
```
.venv/lib/python3.11/site-packages/gensim/__init__.py:11: in <module... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2011 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html\n\n\"\"\"Math helper functions.\"\"\"\n\nfrom __future__ import with_statement\n\n\nimport... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2011 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html\n\n\"\"\"Math helper functions.\"\"\"\n\nfrom __future__ import with_statement\n\n\nimport... | diff --git a/gensim/matutils.py b/gensim/matutils.py
index 2bddf07bf0..821ed528fa 100644
--- a/gensim/matutils.py
+++ b/gensim/matutils.py
@@ -17,9 +17,13 @@
import numpy as np
import scipy.sparse
from scipy.stats import entropy
-from scipy.linalg import get_blas_funcs, triu
+from scipy.linalg import get_blas_funcs
... |
biopython__biopython-4256 | NCBIWWW response can contain unexpected XML for large queries
I am responsible for a periodic test that runs a blastp query with the same input and it has been failing about 50% of the time. In discussions with NCBI the issue appears to be the large number of hits returned, although proper debugging by NCBI requires t... | [
{
"content": "# Copyright 2000 by Bertrand Frottier. All rights reserved.\n# Revisions 2005-2006 copyright Michiel de Hoon\n# Revisions 2006-2009 copyright Peter Cock\n#\n# This file is part of the Biopython distribution and governed by your\n# choice of the \"Biopython License Agreement\" or the \"BSD 3-Claus... | [
{
"content": "# Copyright 2000 by Bertrand Frottier. All rights reserved.\n# Revisions 2005-2006 copyright Michiel de Hoon\n# Revisions 2006-2009 copyright Peter Cock\n#\n# This file is part of the Biopython distribution and governed by your\n# choice of the \"Biopython License Agreement\" or the \"BSD 3-Claus... | diff --git a/Bio/Blast/NCBIXML.py b/Bio/Blast/NCBIXML.py
index b2388b034a3..c5e6ba41b8c 100644
--- a/Bio/Blast/NCBIXML.py
+++ b/Bio/Blast/NCBIXML.py
@@ -514,6 +514,12 @@ def _start_hit(self):
self._hit = self._blast.alignments[-1]
self._descr.num_alignments = 0
+ # Specifically ignore CREATE_... |
sosreport__sos-3342 | [hpssm] controller collection misses Gen10+ controllers and above slot 9.
1. Gen10+ controllers changed the naming from **Smart Array** for at least some controllers.
* `HPE SR932i-p Gen10+ in Slot 3`
2. Controllers are showing up above slot 9 even when there is only 1 or two total controllers.
* `HPE Smart Ar... | [
{
"content": "# This file is part of the sos project: https://github.com/sosreport/sos\n#\n# This copyrighted material is made available to anyone wishing to use,\n# modify, copy, or redistribute it subject to the terms and conditions of\n# version 2 of the GNU General Public License.\n#\n# See the LICENSE file... | [
{
"content": "# This file is part of the sos project: https://github.com/sosreport/sos\n#\n# This copyrighted material is made available to anyone wishing to use,\n# modify, copy, or redistribute it subject to the terms and conditions of\n# version 2 of the GNU General Public License.\n#\n# See the LICENSE file... | diff --git a/sos/report/plugins/hpssm.py b/sos/report/plugins/hpssm.py
index 1ef80ce598..9a33eafdb2 100644
--- a/sos/report/plugins/hpssm.py
+++ b/sos/report/plugins/hpssm.py
@@ -45,7 +45,7 @@ def setup(self):
["%s %s" % (cmd, subcmd) for subcmd in subcmds]
)
- pattern = re.compile("^HP.*... |
oppia__oppia-8797 | Blank page loaded when navigated to feedback page from creator dashboard_Both mobile and browsers
**Describe the bug**
Blank page loaded when navigated to feedback page from creator dashboard
**To Reproduce**
Steps to reproduce the behavior:
1. Create an exploration as user1 and logout
2. Play through the cour... | [
{
"content": "# coding: utf-8\n#\n# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licen... | [
{
"content": "# coding: utf-8\n#\n# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licen... | diff --git a/core/controllers/admin_test.py b/core/controllers/admin_test.py
index e342d148d0f30..330920ed73740 100644
--- a/core/controllers/admin_test.py
+++ b/core/controllers/admin_test.py
@@ -105,7 +105,7 @@ def test_change_configuration_property(self):
response_dict = self.get_json('/adminhandler')
... |
mampfes__hacs_waste_collection_schedule-1938 | [Bug]: Issue with static calendar "last Monday of the month" schedule
### I Have A Problem With:
Sensor configuration
### What's Your Problem
Everything used to work fine until a few weeks ago. I have 3 static calendars:
- mixed waste is picked up every Monday
- plastic is picked up first Monday of the month
- pa... | [
{
"content": "import datetime\nfrom collections import OrderedDict\n\nfrom dateutil import parser\nfrom dateutil.rrule import FR, MO, SA, SU, TH, TU, WE, rrule, weekday\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\n\nTITLE = \"Static Source\"\nDESCRIPTION = \"Source for static... | [
{
"content": "import datetime\nfrom collections import OrderedDict\n\nfrom dateutil import parser\nfrom dateutil.rrule import FR, MO, SA, SU, TH, TU, WE, rrule, weekday\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\n\nTITLE = \"Static Source\"\nDESCRIPTION = \"Source for static... | diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/static.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/static.py
index c25a57a34..d5fed99b1 100644
--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/static.py
+++ ... |
benoitc__gunicorn-1983 | Workers restart with --max-requests=0 when --max-requests-jitter is set to nonzero value
To reproduce, start gunicorn like this:
```
gunicorn -w 1 --max-requests=0 --max-requests-jitter=10 -b 0.0.0.0:8000 api:app
```
Then direct some traffic to it and observe the following log output:
```
[2019-02-05 20:27:23 +... | [
{
"content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\nimport io\nimport os\nimport signal\nimport sys\nimport time\nimport traceback\nfrom datetime import datetime\nfrom random import randint\nfrom ssl import SSLError\n... | [
{
"content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\nimport io\nimport os\nimport signal\nimport sys\nimport time\nimport traceback\nfrom datetime import datetime\nfrom random import randint\nfrom ssl import SSLError\n... | diff --git a/gunicorn/workers/base.py b/gunicorn/workers/base.py
index 934ad723a..3e9fb1e98 100644
--- a/gunicorn/workers/base.py
+++ b/gunicorn/workers/base.py
@@ -51,8 +51,13 @@ def __init__(self, age, ppid, sockets, app, timeout, cfg, log):
self.reloader = None
self.nr = 0
- jitter = randi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.