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 ⌀ |
|---|---|---|---|---|
matrix-org__synapse-7376 | Messages not being sent over federation
### Description
I'll try to do this as exact as I'm able to in reverse.
After upgrading our matrix server running on ubuntu 18.04 to 1.11.1+bionic1 we did not receive any messages from servers running on older instances (only in 1:1 chats, groups have been working fine).
... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2014-2016 OpenMarket Ltd\n# Copyright 2018 New Vector Ltd\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2014-2016 OpenMarket Ltd\n# Copyright 2018 New Vector Ltd\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www... | diff --git a/changelog.d/7376.bugfix b/changelog.d/7376.bugfix
new file mode 100644
index 000000000000..b7b67e328eb7
--- /dev/null
+++ b/changelog.d/7376.bugfix
@@ -0,0 +1 @@
+Fix a bug which could cause messages not to be sent over federation, when state events with state keys matching user IDs (such as custom user st... |
getmoto__moto-106 | dynamo query with hash key returns wrong results
When executing a query in dynamodb wrong result is returned
Step to reproduce:
add an insert to the default query_test in the unit tests:
```
@mock_dynamodb
def test_query():
conn = boto.connect_dynamodb()
table = create_table(conn)
item_data = {
'... | [
{
"content": "from collections import defaultdict\nimport datetime\nimport json\n\ntry:\n from collections import OrderedDict\nexcept ImportError:\n # python 2.6 or earlier, use backport\n from ordereddict import OrderedDict\n\n\nfrom moto.core import BaseBackend\nfrom .comparisons import get_compariso... | [
{
"content": "from collections import defaultdict\nimport datetime\nimport json\n\ntry:\n from collections import OrderedDict\nexcept ImportError:\n # python 2.6 or earlier, use backport\n from ordereddict import OrderedDict\n\n\nfrom moto.core import BaseBackend\nfrom .comparisons import get_compariso... | diff --git a/moto/dynamodb/models.py b/moto/dynamodb/models.py
index 67f5152d62ab..f49607023ae0 100644
--- a/moto/dynamodb/models.py
+++ b/moto/dynamodb/models.py
@@ -182,7 +182,11 @@ def query(self, hash_key, range_comparison, range_objs):
results = []
last_page = True # Once pagination is implement... |
rucio__rucio-6788 | Unclosed file in authentication
### Description
We are running tests by default with `-Werror` and had failing tests due to what seems to be a resource leak in rucio authentication:
```
File "/home/rucio_user/.local/lib/python3.9/site-packages/rucio/client/baseclient.py", line 948, in __authenticate
if... | [
{
"content": "# Copyright European Organization for Nuclear Research (CERN) since 2012\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/LI... | [
{
"content": "# Copyright European Organization for Nuclear Research (CERN) since 2012\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/LI... | diff --git a/lib/rucio/client/baseclient.py b/lib/rucio/client/baseclient.py
index 8165af20bb..406d1d7315 100644
--- a/lib/rucio/client/baseclient.py
+++ b/lib/rucio/client/baseclient.py
@@ -879,8 +879,8 @@ def __read_token(self) -> bool:
return False
try:
- token_file_handler = open(... |
streamlit__streamlit-1722 | Top Half of Seaborn Chart Title Gets Cut Off
# Summary
When adding a title to a seaborn or perhaps MATPLOTLIB chart (have not tested with MATPLOTLIB yet) chart, the top half of the title is cut off or not displayed
```
# Steps to reproduce
import matplotlib.pyplot as plt
import seaborn as sns
import streamlit a... | [
{
"content": "# Copyright 2018-2020 Streamlit Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | [
{
"content": "# Copyright 2018-2020 Streamlit Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | diff --git a/frontend/cypress/snapshots/linux/2x/st_pyplot.spec.ts/pyplot-check-if-cleared.snap.png b/frontend/cypress/snapshots/linux/2x/st_pyplot.spec.ts/pyplot-check-if-cleared.snap.png
index 801353077507..59d4808a05e2 100644
Binary files a/frontend/cypress/snapshots/linux/2x/st_pyplot.spec.ts/pyplot-check-if-cleare... |
certbot__certbot-9218 | snap_config.prepare_env can hang forever if snapd is malfunctioning
Reported at https://community.letsencrypt.org/t/sudo-certbot-renew-hangs-forever/138649
There's some evidence in that thread that `snapd` can get into a state where it just stops responding to commands (whether via `snap`, `snapctl`, or the REST API... | [
{
"content": "\"\"\"Module configuring Certbot in a snap environment\"\"\"\nimport logging\nimport socket\nfrom typing import Iterable\nfrom typing import List\nfrom typing import Optional\n\nfrom requests import Session\nfrom requests.adapters import HTTPAdapter\nfrom requests.exceptions import HTTPError\nfrom... | [
{
"content": "\"\"\"Module configuring Certbot in a snap environment\"\"\"\nimport logging\nimport socket\nfrom typing import Iterable\nfrom typing import List\nfrom typing import Optional\n\nfrom requests import Session\nfrom requests.adapters import HTTPAdapter\nfrom requests.exceptions import HTTPError\nfrom... | diff --git a/certbot/certbot/_internal/snap_config.py b/certbot/certbot/_internal/snap_config.py
index f006c8be1f2..dd3a6399c77 100644
--- a/certbot/certbot/_internal/snap_config.py
+++ b/certbot/certbot/_internal/snap_config.py
@@ -54,7 +54,8 @@ def prepare_env(cli_args: List[str]) -> List[str]:
session.mount... |
frappe__frappe-23934 | Do not call begin in updatedb after syncing
<!--
Welcome to the Frappe Framework issue tracker! Before creating an issue, please heed the following:
1. This tracker should only be used to report bugs and request features / enhancements to Frappe
- For questions and general support, use https://stackoverflow.co... | [
{
"content": "import re\n\nimport pymysql\nfrom pymysql.constants import ER, FIELD_TYPE\nfrom pymysql.converters import conversions, escape_string\n\nimport frappe\nfrom frappe.database.database import Database\nfrom frappe.database.mariadb.schema import MariaDBTable\nfrom frappe.utils import UnicodeWithAttrs, ... | [
{
"content": "import re\n\nimport pymysql\nfrom pymysql.constants import ER, FIELD_TYPE\nfrom pymysql.converters import conversions, escape_string\n\nimport frappe\nfrom frappe.database.database import Database\nfrom frappe.database.mariadb.schema import MariaDBTable\nfrom frappe.utils import UnicodeWithAttrs, ... | diff --git a/frappe/database/mariadb/database.py b/frappe/database/mariadb/database.py
index 1096821e6683..00cbd1c332af 100644
--- a/frappe/database/mariadb/database.py
+++ b/frappe/database/mariadb/database.py
@@ -440,7 +440,7 @@ def updatedb(self, doctype, meta=None):
self.commit()
db_table.sync()
- self.... |
PaddlePaddle__models-492 | model/text_classification 使用内置语料集训练模型后,预测时出错,具体如下
```text
I1123 09:23:54.320137 84 Util.cpp:166] commandline: --use_gpu=False --trainer_count=1
Traceback (most recent call last):
File "infer.py", line 91, in <module>
batch_size=10)
File "infer.py", line 58, in infer
for idx, item in enumerate(tes... | [
{
"content": "import sys\nimport os\nimport gzip\n\nimport paddle.v2 as paddle\n\nimport reader\nfrom network_conf import fc_net, convolution_net\nfrom utils import logger, load_dict, load_reverse_dict\n\n\ndef infer(topology, data_dir, model_path, word_dict_path, label_dict_path,\n batch_size):\n d... | [
{
"content": "import sys\nimport os\nimport gzip\n\nimport paddle.v2 as paddle\n\nimport reader\nfrom network_conf import fc_net, convolution_net\nfrom utils import logger, load_dict, load_reverse_dict\n\n\ndef infer(topology, data_dir, model_path, word_dict_path, label_dict_path,\n batch_size):\n d... | diff --git a/text_classification/infer.py b/text_classification/infer.py
index c507d749ca..0516492456 100644
--- a/text_classification/infer.py
+++ b/text_classification/infer.py
@@ -28,7 +28,7 @@ def _infer_a_batch(inferer, test_batch, ids_2_word, ids_2_label):
word_reverse_dict = dict((value, key)
... |
ManimCommunity__manim-2548 | Weird line when plotting staircase function
## Description of bug / unexpected behavior
I tried to plot a staircase function with a logarithmic x axis. The function is plotted correctly but there is a line in the graph that does not belong to the staircase function.
## Expected behavior
Do not print the line tha... | [
{
"content": "\"\"\"Mobjects representing function graphs.\"\"\"\n\nfrom __future__ import annotations\n\n__all__ = [\"ParametricFunction\", \"FunctionGraph\", \"ImplicitFunction\"]\n\n\nfrom typing import Callable, Iterable, Sequence\n\nimport numpy as np\nfrom isosurfaces import plot_isoline\n\nfrom .. import... | [
{
"content": "\"\"\"Mobjects representing function graphs.\"\"\"\n\nfrom __future__ import annotations\n\n__all__ = [\"ParametricFunction\", \"FunctionGraph\", \"ImplicitFunction\"]\n\n\nfrom typing import Callable, Iterable, Sequence\n\nimport numpy as np\nfrom isosurfaces import plot_isoline\n\nfrom .. import... | diff --git a/manim/mobject/functions.py b/manim/mobject/functions.py
index afc21d3275..60c4507039 100644
--- a/manim/mobject/functions.py
+++ b/manim/mobject/functions.py
@@ -143,7 +143,10 @@ def generate_points(self):
for t1, t2 in zip(boundary_times[0::2], boundary_times[1::2]):
t_range = np.a... |
jazzband__django-simple-history-1261 | Commit 61df0e2f5e90 introduced a requirement for asgiref 3.6.0+
In commit 61df0e2f5e90 the middleware started using function `iscoroutinefunction` from `asgiref.sync`. This function is introduced in version 3.6.0.
It seems that this commit also introduced a hard dependency on asgiref which previously didn't exist (t... | [
{
"content": "from setuptools import setup\n\nwith open(\"README.rst\") as readme, open(\"CHANGES.rst\") as changes:\n setup(\n name=\"django-simple-history\",\n use_scm_version={\n \"version_scheme\": \"post-release\",\n \"local_scheme\": \"node-and-date\",\n \... | [
{
"content": "from setuptools import setup\n\nwith open(\"README.rst\") as readme, open(\"CHANGES.rst\") as changes:\n setup(\n name=\"django-simple-history\",\n use_scm_version={\n \"version_scheme\": \"post-release\",\n \"local_scheme\": \"node-and-date\",\n \... | diff --git a/CHANGES.rst b/CHANGES.rst
index 0141966f0..559bc6976 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -12,7 +12,8 @@ Unreleased
(gh-1248)
- Passing an empty list as the ``fields`` argument to ``bulk_update_with_history()`` is
now allowed; history records will still be created (gh-1248)
-
+- Added tempo... |
fidals__shopelectro-729 | 502 error on category pages
We can reproduce it with code below.
Seems it's connected with https://github.com/fidals/shopelectro/issues/648, but it's not checked yet
```
import requests
BASE = 'https://www.shopelectro.ru'
broken_urls = []
for c in CategoryPage.objects.all():
response = requests.get(BASE... | [
{
"content": "from __future__ import absolute_import, unicode_literals\nfrom datetime import timedelta\nimport os\n\nfrom celery import Celery\nfrom kombu import Exchange, Queue\n\n# set the default Django settings module for the 'celery' program.\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shopelectro.se... | [
{
"content": "from __future__ import absolute_import, unicode_literals\nfrom datetime import timedelta\nimport os\n\nfrom celery import Celery\nfrom kombu import Exchange, Queue\n\n# set the default Django settings module for the 'celery' program.\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shopelectro.se... | diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index 2c79dced..4b372754 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -37,13 +37,13 @@ services:
# contains refarm-site modules
- $DEPS_DIR
# Thus, you can work with apps related to the refarm-site
- ... |
fidals__shopelectro-199 | SE Iterate tags in templates
[trello origin](https://trello.com/c/zulRj7lF/294-se-iterate-tags-in-templates)
[seo templates doc](https://docs.google.com/document/d/18DFBsuh6NT8hjyihOJ2bxw9zEe8z_070MBQrbAq0kvE/edit#)
**Проблема**
Сеошники после некоторых применений мультисв-в обнаружили заголовок *Блоки питания для... | [
{
"content": "from functools import partial\n\nfrom django.conf import settings\nfrom django.http import HttpResponse, HttpResponseForbidden\nfrom django.shortcuts import render, get_object_or_404\nfrom django.views.decorators.http import require_POST\nfrom django.urls import reverse\nfrom django_user_agents.ut... | [
{
"content": "from functools import partial\n\nfrom django.conf import settings\nfrom django.http import HttpResponse, HttpResponseForbidden\nfrom django.shortcuts import render, get_object_or_404\nfrom django.views.decorators.http import require_POST\nfrom django.urls import reverse\nfrom django_user_agents.ut... | diff --git a/shopelectro/views/catalog.py b/shopelectro/views/catalog.py
index 73e7f165..2669bddd 100644
--- a/shopelectro/views/catalog.py
+++ b/shopelectro/views/catalog.py
@@ -141,6 +141,7 @@ def get_context_data(self, **kwargs):
tags = self.kwargs.get('tags')
tags_metadata = {
'titles... |
carpentries__amy-1006 | Server error when submitting trainee-match form without selected trainees
1. Go to the page for matching trainees to training sessions.
2. Select a training session, but do _not_ select a person.
3. Submit.
4. Boom - 500 error.
| [
{
"content": "import re\n\nfrom captcha.fields import ReCaptchaField\nfrom crispy_forms.bootstrap import FormActions\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Layout, Div, HTML, Submit, Reset, Field\nfrom crispy_forms.bootstrap import AccordionGroup, Accordion\nfrom django imp... | [
{
"content": "import re\n\nfrom captcha.fields import ReCaptchaField\nfrom crispy_forms.bootstrap import FormActions\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Layout, Div, HTML, Submit, Reset, Field\nfrom crispy_forms.bootstrap import AccordionGroup, Accordion\nfrom django imp... | diff --git a/workshops/forms.py b/workshops/forms.py
index 28456ab8e..3ed0fbc78 100644
--- a/workshops/forms.py
+++ b/workshops/forms.py
@@ -1410,7 +1410,7 @@ class BulkMatchTrainingRequestForm(forms.Form):
def clean(self):
super().clean()
- if any(r.person is None for r in self.cleaned_data['req... |
cloudtools__troposphere-1557 | Add ca certificate identity to RDS
AWS has announced that the CA cert will expire in 2020 forcing us to update our stacks. As far as I can tell, this option doesn't exist in the troposphere API.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html
| [
{
"content": "# Copyright (c) 2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nimport re\n\nfrom . import AWSHelperFn, AWSObject, AWSProperty, Tags\nfrom .validators import (boolean, network_port, integer, positive_integer,\n integer_ran... | [
{
"content": "# Copyright (c) 2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nimport re\n\nfrom . import AWSHelperFn, AWSObject, AWSProperty, Tags\nfrom .validators import (boolean, network_port, integer, positive_integer,\n integer_ran... | diff --git a/troposphere/rds.py b/troposphere/rds.py
index f1463dec6..e791c8aa6 100644
--- a/troposphere/rds.py
+++ b/troposphere/rds.py
@@ -172,6 +172,7 @@ class DBInstance(AWSObject):
'AutoMinorVersionUpgrade': (boolean, False),
'AvailabilityZone': (basestring, False),
'BackupRetentionPerio... |
googleapis__google-cloud-python-1505 | Project inference is broken under Python 3.5.1
Project inference takes place in [_determine_default_project()](https://github.com/GoogleCloudPlatform/gcloud-python/blob/91be6938b26ba9198082f457ae37fba81b8f5ea0/gcloud/_helpers.py#L189), which hands off to [_compute_engine_id()](https://github.com/GoogleCloudPlatform/gcl... | [
{
"content": "# Copyright 2015 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless... | [
{
"content": "# Copyright 2015 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless... | diff --git a/gcloud/client.py b/gcloud/client.py
index 2e7e02a3e40d..9ccb5c71f285 100644
--- a/gcloud/client.py
+++ b/gcloud/client.py
@@ -141,6 +141,8 @@ def __init__(self, project=None):
if project is None:
raise ValueError('Project was not passed and could not be '
... |
DataBiosphere__toil-1589 | Toil Appliance should set /var/lib/toil as the default workdir
Toil Appliance should set /var/lib/toil as the default workdir
| [
{
"content": "# Copyright (C) 2015-2016 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-... | [
{
"content": "# Copyright (C) 2015-2016 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-... | diff --git a/docker/Dockerfile.py b/docker/Dockerfile.py
index 4ed9e97d75..f699404173 100644
--- a/docker/Dockerfile.py
+++ b/docker/Dockerfile.py
@@ -103,6 +103,10 @@ def heredoc(s):
# worker appliance on a worker node. To support this, we embed a self-reference into the image:
ENV TOIL_APPLIANCE_SELF {appli... |
locustio__locust-1139 | Repeated secure requests with FastHttpLocust crashes in cookie management
```
from locust.contrib.fasthttp import FastHttpLocust
from locust import task, TaskSet
class UserBehavior(TaskSet):
@task
def get_results(self):
print("about to run")
self.client.get("/")
class WebsiteUser... | [
{
"content": "from __future__ import absolute_import\n\nimport chardet\nimport re\nimport six\nimport socket\nfrom base64 import b64encode\nfrom six.moves.urllib.parse import urlparse, urlunparse\nfrom ssl import SSLError\nfrom timeit import default_timer\n\nif six.PY2:\n from cookielib import CookieJar\n ... | [
{
"content": "from __future__ import absolute_import\n\nimport chardet\nimport re\nimport six\nimport socket\nfrom base64 import b64encode\nfrom six.moves.urllib.parse import urlparse, urlunparse\nfrom ssl import SSLError\nfrom timeit import default_timer\n\nif six.PY2:\n from cookielib import CookieJar\n ... | diff --git a/locust/contrib/fasthttp.py b/locust/contrib/fasthttp.py
index 81990b362d..d89a49ae27 100644
--- a/locust/contrib/fasthttp.py
+++ b/locust/contrib/fasthttp.py
@@ -32,6 +32,11 @@ class ConnectionRefusedError(Exception):
# More info: https://github.com/requests/requests/pull/871
CompatRequest.unverifiable =... |
mars-project__mars-44 | [BUG][DISTRIBUTED] client may hang if something wrong happens in the scheduler
**Describe the bug**
If some errors occur in the distributed, the client may hang, #8 and #17 are examples.
**To Reproduce**
As examples in #8 and #17.
**Expected behavior**
Either we deliver the error to the client, or we hid... | [
{
"content": "# Copyright 1999-2018 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless... | [
{
"content": "# Copyright 1999-2018 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless... | diff --git a/mars/deploy/local/tests/test_cluster.py b/mars/deploy/local/tests/test_cluster.py
index 51a5d80569..a2e850ee0e 100644
--- a/mars/deploy/local/tests/test_cluster.py
+++ b/mars/deploy/local/tests/test_cluster.py
@@ -14,12 +14,14 @@
# See the License for the specific language governing permissions and
# lim... |
MongoEngine__mongoengine-1791 | Document.ensure_indexes check is_mongos is wrong
in function ensure_indexes inside Document at line 857.
if not collection.is_mongos and collection.read_preference > 1:
The check on collection.is_mongos generate a new collection a new collection named as
something.is_mongos
The statement should write as:
... | [
{
"content": "import re\nimport warnings\n\nfrom bson.dbref import DBRef\nimport pymongo\nfrom pymongo.read_preferences import ReadPreference\nimport six\n\nfrom mongoengine import signals\nfrom mongoengine.base import (BaseDict, BaseDocument, BaseList,\n DocumentMetaclass, Embedded... | [
{
"content": "import re\nimport warnings\n\nfrom bson.dbref import DBRef\nimport pymongo\nfrom pymongo.read_preferences import ReadPreference\nimport six\n\nfrom mongoengine import signals\nfrom mongoengine.base import (BaseDict, BaseDocument, BaseList,\n DocumentMetaclass, Embedded... | diff --git a/mongoengine/document.py b/mongoengine/document.py
index 2de0b1a3a..865bb0631 100644
--- a/mongoengine/document.py
+++ b/mongoengine/document.py
@@ -854,7 +854,7 @@ def ensure_indexes(cls):
collection = cls._get_collection()
# 746: when connection is via mongos, the read preference is not ... |
akvo__akvo-rsr-2129 | Show results framework for private projects
## Test plan
GIVEN the 'My results' tab in MyRSR
WHEN searching for a private project
THEN the project should appear in the list
WHEN the private project is opened in 'My results'
THEN the user should have full access to the results framework, just like a regular public pro... | [
{
"content": "# -*- coding: utf-8 -*-\n\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\nSee more details in the license.txt file located at the root folder of the\nAkvo RSR module. For additional details on the GNU license please\nsee < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nf... | [
{
"content": "# -*- coding: utf-8 -*-\n\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\nSee more details in the license.txt file located at the root folder of the\nAkvo RSR module. For additional details on the GNU license please\nsee < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nf... | diff --git a/akvo/rest/views/typeahead.py b/akvo/rest/views/typeahead.py
index 350d1bd5e3..5ca012844a 100644
--- a/akvo/rest/views/typeahead.py
+++ b/akvo/rest/views/typeahead.py
@@ -78,7 +78,7 @@ def typeahead_user_projects(request):
def typeahead_impact_projects(request):
user = request.user
projects = Pro... |
pypi__warehouse-4015 | Redirect loop when requesting missing package
**Describe the bug**
When I `curl -v https://pypi.org/pypi/bogus/1.0.0/json` with an invalid package/version combination, I get put in an infinite redirect loop. If the package/version combination is correct, then the data is served as expected.
I noticed this because t... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | diff --git a/tests/unit/test_routes.py b/tests/unit/test_routes.py
index eda7a16da8a7..c7cac6878c54 100644
--- a/tests/unit/test_routes.py
+++ b/tests/unit/test_routes.py
@@ -287,16 +287,6 @@ def add_policy(name, filename):
assert config.add_redirect.calls == [
pretend.call("/p/{name}/", "/project/{name}/... |
conda__conda-build-1470 | conda metapackage
Hello,
I was wondering why the behaviour of `conda metapackage` has changed. Previously, it outputted helpful information about the location of the recently created package. However, this is the output now:
```
BUILD START: cgat-devel-0.4-py27r3.2.2_6
Package: cgat-devel-0.4-py27r3.2.2_6
source tre... | [
{
"content": "from collections import defaultdict\nfrom conda_build.config import Config\nfrom conda_build.metadata import MetaData\n\n\ndef create_metapackage(name, version, entry_points=(), build_string=None, build_number=0,\n dependencies=(), home=None, license_name=None, summary=None, ... | [
{
"content": "from collections import defaultdict\nfrom conda_build.config import Config\nfrom conda_build.metadata import MetaData\n\n\ndef create_metapackage(name, version, entry_points=(), build_string=None, build_number=0,\n dependencies=(), home=None, license_name=None, summary=None, ... | diff --git a/conda_build/metapackage.py b/conda_build/metapackage.py
index 56c9284be9..0f84bcc30c 100644
--- a/conda_build/metapackage.py
+++ b/conda_build/metapackage.py
@@ -6,7 +6,7 @@
def create_metapackage(name, version, entry_points=(), build_string=None, build_number=0,
dependencies=(), h... |
huggingface__diffusers-961 | Running revision="fp16", torch_dtype=torch.float16 on mps M1
### Describe the bug
I'm using the following code:
```
!pip install diffusers
!pip install transformers scipy ftfy
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", revision="fp16", torch_dtype=torch.float16, use_auth_to... | [
{
"content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#... | [
{
"content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#... | diff --git a/src/diffusers/models/attention.py b/src/diffusers/models/attention.py
index dce30c6a4aa6..bf04c3e6a3ca 100644
--- a/src/diffusers/models/attention.py
+++ b/src/diffusers/models/attention.py
@@ -376,6 +376,12 @@ def __init__(self, dim_in: int, dim_out: int):
super().__init__()
self.proj = ... |
sotetsuk__pgx-792 | [Docs] Add PyPI description
Currently, it's empty.
| [
{
"content": "from setuptools import find_packages, setup\n\nsetup(\n name=\"pgx\",\n version=\"0.4.0\",\n long_description_content_type=\"text/markdown\",\n description=\"\",\n url=\"\",\n author=\"Sotetsu KOYAMADA\",\n author_email=\"sotetsu.koyamada@gmail.com\",\n keywords=\"\",\n ... | [
{
"content": "from setuptools import find_packages, setup\nfrom pathlib import Path\n\nlong_description = (Path(__file__).parent / \"README.md\").read_text()\n\nsetup(\n name=\"pgx\",\n version=\"0.4.0\",\n description=\"GPU/TPU-accelerated parallel game simulators for reinforcement learning (RL)\",\n ... | diff --git a/setup.py b/setup.py
index 13a826ee7..8d698edd8 100644
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,14 @@
from setuptools import find_packages, setup
+from pathlib import Path
+
+long_description = (Path(__file__).parent / "README.md").read_text()
setup(
name="pgx",
version="0.4.0",
- long_des... |
ephios-dev__ephios-166 | Kalender-URL schöner anzeigen
Als Nutzer möchte ich auf meiner Profilseite ein read-only-Feld sehen, in dem die URL zu meinem Kalender-Feed steht. Der Link soll nicht klickbar sein, damit die ics-Datei nicht heruntergeladen wird. Neben dem Link soll ein Button zum Kopieren der URL vorhanden sein.
| [
{
"content": "import importlib\nimport subprocess\n\nfrom django.templatetags.static import static\nfrom django.utils.translation import get_language\n\nfrom ephios.extra.signals import footer_link\n\ntry:\n EPHIOS_VERSION = (\n subprocess.check_output([\"git\", \"rev-parse\", \"--short\", \"HEAD\"]).... | [
{
"content": "import importlib\nimport subprocess\n\nfrom django.templatetags.static import static\nfrom django.utils.translation import get_language\n\nfrom ephios.extra.signals import footer_link\nfrom ephios.settings import SITE_URL\n\ntry:\n EPHIOS_VERSION = (\n subprocess.check_output([\"git\", \... | diff --git a/ephios/extra/context.py b/ephios/extra/context.py
index add88ee24..a61db068b 100644
--- a/ephios/extra/context.py
+++ b/ephios/extra/context.py
@@ -5,6 +5,7 @@
from django.utils.translation import get_language
from ephios.extra.signals import footer_link
+from ephios.settings import SITE_URL
try:
... |
sublimelsp__LSP-495 | TypeError: 'NoneType' object is not iterable - golsp completion
Output from console with logging enabled:
```
LSP: --> textDocument/completion
LSP: {'isIncomplete': False, 'items': None}
Error handling server payload
Traceback (most recent call last):
File "/Users/margus/Library/Application Support/Sublim... | [
{
"content": "import sublime\nimport sublime_plugin\n\ntry:\n from typing import Any, List, Dict, Tuple, Callable, Optional\n assert Any and List and Dict and Tuple and Callable and Optional\nexcept ImportError:\n pass\n\nfrom .core.protocol import Request\nfrom .core.events import global_events\nfrom ... | [
{
"content": "import sublime\nimport sublime_plugin\n\ntry:\n from typing import Any, List, Dict, Tuple, Callable, Optional\n assert Any and List and Dict and Tuple and Callable and Optional\nexcept ImportError:\n pass\n\nfrom .core.protocol import Request\nfrom .core.events import global_events\nfrom ... | diff --git a/plugin/completion.py b/plugin/completion.py
index e2e761d43..f6f9dcb71 100644
--- a/plugin/completion.py
+++ b/plugin/completion.py
@@ -304,7 +304,7 @@ def handle_response(self, response: 'Optional[Dict]'):
if self.state == CompletionState.REQUESTING:
items = [] # type: List[Dict]
... |
pytorch__vision-6154 | PIL version check for enum change appears to break SIMD versions
### 🐛 Describe the bug
This change appears to break current Pillow-SIMD version #5898
```
if tuple(int(part) for part in PIL.__version__.split(".")) >= (9, 1):
File "/home/.../lib/python3.10/site-packages/torchvision/transforms/_pil_constant... | [
{
"content": "import PIL\nfrom PIL import Image\n\n# See https://pillow.readthedocs.io/en/stable/releasenotes/9.1.0.html#deprecations\n# TODO: Remove this file once PIL minimal version is >= 9.1\n\nif tuple(int(part) for part in PIL.__version__.split(\".\")) >= (9, 1):\n BICUBIC = Image.Resampling.BICUBIC\n ... | [
{
"content": "from PIL import Image\n\n# See https://pillow.readthedocs.io/en/stable/releasenotes/9.1.0.html#deprecations\n# TODO: Remove this file once PIL minimal version is >= 9.1\n\nif hasattr(Image, \"Resampling\"):\n BICUBIC = Image.Resampling.BICUBIC\n BILINEAR = Image.Resampling.BILINEAR\n LINE... | diff --git a/test/test_transforms.py b/test/test_transforms.py
index 04f49cb1376..b9aa16ae6bf 100644
--- a/test/test_transforms.py
+++ b/test/test_transforms.py
@@ -1522,10 +1522,10 @@ def test_ten_crop(should_vflip, single_dim):
five_crop.__repr__()
if should_vflip:
- vflipped_img = img.transpose(Im... |
speechbrain__speechbrain-2494 | PyPI install incorrectly ships a `tests` package
### Describe the bug
If you check the `.whl` file of SB 1.0, for instance, you will notice that there is an empty `tests/` (with only the `__init__.py`). This is not a huge deal, but it has the unintended consequence that the user now has a `tests` package at their ro... | [
{
"content": "#!/usr/bin/env python3\nimport os\nimport sys\nimport site\nimport setuptools\nfrom distutils.core import setup\n\n\n# Editable install in user site directory can be allowed with this hack:\n# https://github.com/pypa/pip/issues/7953.\nsite.ENABLE_USER_SITE = \"--user\" in sys.argv[1:]\n\nwith open... | [
{
"content": "#!/usr/bin/env python3\nimport os\nimport sys\nimport site\nimport setuptools\nfrom distutils.core import setup\n\n\n# Editable install in user site directory can be allowed with this hack:\n# https://github.com/pypa/pip/issues/7953.\nsite.ENABLE_USER_SITE = \"--user\" in sys.argv[1:]\n\nwith open... | diff --git a/setup.py b/setup.py
index da8218e428..06097b2f66 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,9 @@
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
],
- packages=setuptools.find_packages(),
+ # we don't want to ship the tests pac... |
Qiskit__qiskit-4081 | Improve an error message in qiskit.converters.circuit_to_gate()
<!-- ⚠️ If you do not respect this template, your issue will be closed -->
<!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea does not exist. -->
### What is the expected enhancement?
Let's assume we have `QuantumCircuit` ... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2017, 2019.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2017, 2019.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org... | diff --git a/qiskit/converters/circuit_to_gate.py b/qiskit/converters/circuit_to_gate.py
index b152d1ee52d1..90f030f01fac 100644
--- a/qiskit/converters/circuit_to_gate.py
+++ b/qiskit/converters/circuit_to_gate.py
@@ -48,8 +48,9 @@ def circuit_to_gate(circuit, parameter_map=None):
for inst, _, _ in circuit.data... |
pydantic__pydantic-3403 | Pydantic fail to parse ClassVar annotation when it's a string
### Checks
* [x] I added a descriptive title to this issue
* [x] I have searched (google, github) for similar issues and couldn't find anything
* [x] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug... | [
{
"content": "import sys\nfrom os import PathLike\nfrom typing import ( # type: ignore\n TYPE_CHECKING,\n AbstractSet,\n Any,\n ClassVar,\n Dict,\n Generator,\n List,\n Mapping,\n NewType,\n Optional,\n Sequence,\n Set,\n Tuple,\n Type,\n Union,\n _eval_type,\n ... | [
{
"content": "import sys\nfrom os import PathLike\nfrom typing import ( # type: ignore\n TYPE_CHECKING,\n AbstractSet,\n Any,\n ClassVar,\n Dict,\n Generator,\n List,\n Mapping,\n NewType,\n Optional,\n Sequence,\n Set,\n Tuple,\n Type,\n Union,\n _eval_type,\n ... | diff --git a/changes/3401-uriyyo.md b/changes/3401-uriyyo.md
new file mode 100644
index 00000000000..7b46117f5fc
--- /dev/null
+++ b/changes/3401-uriyyo.md
@@ -0,0 +1 @@
+Fix issue when pydantic fail to parse `typing.ClassVar` string type annotation.
\ No newline at end of file
diff --git a/pydantic/typing.py b/pydanti... |
sanic-org__sanic-2622 | restart workers online (graceful restart) to hot reload, in production environment.
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Is your feature request related to a problem? Please describe.
Condition: keep service available any time.
# ---- client code----
`... | [
{
"content": "from multiprocessing.connection import Connection\nfrom os import environ, getpid\nfrom typing import Any, Dict\n\nfrom sanic.worker.process import ProcessState\nfrom sanic.worker.state import WorkerState\n\n\nclass WorkerMultiplexer:\n def __init__(\n self,\n monitor_publisher: C... | [
{
"content": "from multiprocessing.connection import Connection\nfrom os import environ, getpid\nfrom typing import Any, Dict\n\nfrom sanic.worker.process import ProcessState\nfrom sanic.worker.state import WorkerState\n\n\nclass WorkerMultiplexer:\n def __init__(\n self,\n monitor_publisher: C... | diff --git a/sanic/worker/multiplexer.py b/sanic/worker/multiplexer.py
index f92e7e08cc..91030fe628 100644
--- a/sanic/worker/multiplexer.py
+++ b/sanic/worker/multiplexer.py
@@ -21,9 +21,14 @@ def ack(self):
"state": ProcessState.ACKED.name,
}
- def restart(self, name: str = ""):
+ def re... |
liqd__a4-opin-666 | update settings
https://github.com/liqd/adhocracy4/pull/19
| [
{
"content": "\"\"\"\nDjango settings for euth_wagtail project.\n\nGenerated by 'django-admin startproject' using Django 1.9.1.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com... | [
{
"content": "\"\"\"\nDjango settings for euth_wagtail project.\n\nGenerated by 'django-admin startproject' using Django 1.9.1.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com... | diff --git a/euth_wagtail/settings/base.py b/euth_wagtail/settings/base.py
index af2ebada1..3e02602d6 100644
--- a/euth_wagtail/settings/base.py
+++ b/euth_wagtail/settings/base.py
@@ -70,9 +70,9 @@
'adhocracy4.phases.apps.PhasesConfig',
'adhocracy4.projects.apps.ProjectsConfig',
'adhocracy4.ratings.apps... |
ray-project__ray-3431 | Remove duplicate feed dict constructing
in `python/ray/experimental/sgd/sgd_worker.py`
```python
def compute_gradients(self):
start = time.time()
feed_dict = self._grad_feed_dict()
# Aggregate feed dicts for each model on this worker.
for model in self.models:
f... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport logging\nimport time\n\nimport pyarrow.plasma as plasma\nimport tensorflow as tf\n\nimport ray\nfrom ray.experimental.sgd.util import fetch, run_timeline, warmup\nfrom ray.exper... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport logging\nimport time\n\nimport pyarrow.plasma as plasma\nimport tensorflow as tf\n\nimport ray\nfrom ray.experimental.sgd.util import fetch, run_timeline, warmup\nfrom ray.exper... | diff --git a/python/ray/experimental/sgd/sgd_worker.py b/python/ray/experimental/sgd/sgd_worker.py
index 3dd0eefca86d..0d4b45c7c8bc 100644
--- a/python/ray/experimental/sgd/sgd_worker.py
+++ b/python/ray/experimental/sgd/sgd_worker.py
@@ -205,9 +205,6 @@ def for_model(self, fn):
def compute_gradients(self):
... |
plotly__dash-1643 | Missing classifiers for Python 3.8/3.9
Python 3.8 and 3.9 are missing from the classifiers in `setup.py`:
https://github.com/plotly/dash/blob/358c5089c929b2e99996f9d4ee6ec634f65437fe/setup.py#L55-L63
But there is no restriction to 3.7 or below in `python_requires`:
https://github.com/plotly/dash/blob/358c5089c92... | [
{
"content": "import io\nfrom setuptools import setup, find_packages\n\nmain_ns = {}\nexec(open(\"dash/version.py\").read(), main_ns) # pylint: disable=exec-used\n\n\ndef read_req_file(req_type):\n with open(\"requires-{}.txt\".format(req_type)) as fp:\n requires = (line.strip() for line in fp)\n ... | [
{
"content": "import io\nfrom setuptools import setup, find_packages\n\nmain_ns = {}\nexec(open(\"dash/version.py\").read(), main_ns) # pylint: disable=exec-used\n\n\ndef read_req_file(req_type):\n with open(\"requires-{}.txt\".format(req_type)) as fp:\n requires = (line.strip() for line in fp)\n ... | diff --git a/setup.py b/setup.py
index 1deddfd06e..c79323818f 100644
--- a/setup.py
+++ b/setup.py
@@ -61,6 +61,8 @@ def read_req_file(req_type):
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
+ "Programming La... |
graphql-python__graphene-django-1465 | GraphQLTestCase does not send headers using Django 4.2
* **What is the current behavior?**
Trying to send headers using GraphQLTestCase doesn't work. This is my test:
```
class TestCase(GraphQLTestCase):
def test(self):
response = self.query(
'''
query {
p... | [
{
"content": "import inspect\n\nfrom django.db import connection, models, transaction\nfrom django.db.models.manager import Manager\nfrom django.utils.encoding import force_str\nfrom django.utils.functional import Promise\n\nfrom graphene.utils.str_converters import to_camel_case\n\ntry:\n import django_filt... | [
{
"content": "import inspect\n\nimport django\nfrom django.db import connection, models, transaction\nfrom django.db.models.manager import Manager\nfrom django.utils.encoding import force_str\nfrom django.utils.functional import Promise\n\nfrom graphene.utils.str_converters import to_camel_case\n\ntry:\n imp... | diff --git a/graphene_django/utils/testing.py b/graphene_django/utils/testing.py
index ad9ff35f8..6cd0e3ba3 100644
--- a/graphene_django/utils/testing.py
+++ b/graphene_django/utils/testing.py
@@ -4,6 +4,7 @@
from django.test import Client, TestCase, TransactionTestCase
from graphene_django.settings import graphene... |
dynaconf__dynaconf-223 | dynaconf.contrib.flask_dynaconf.DynaconfConfig to flask.config.Config
Hello, is there a way to convert a dynaconf.contrib.flask_dynaconf.DynaconfConfig object into a flask.config.Config one?
Otherwise, is there a way to convert dynaconf.contrib.flask_dynaconf.DynaconfConfig into a dict?
I have been struggling tryin... | [
{
"content": "import importlib\nimport os\nimport sys\nimport warnings\n\nfrom dynaconf.utils import raw_logger\nfrom dynaconf.utils import RENAMED_VARS\nfrom dynaconf.utils import warn_deprecations\nfrom dynaconf.utils.files import find_file\nfrom dynaconf.utils.parse_conf import parse_conf_data\n\ntry:\n f... | [
{
"content": "import importlib\nimport os\nimport sys\nimport warnings\n\nfrom dynaconf.utils import raw_logger\nfrom dynaconf.utils import RENAMED_VARS\nfrom dynaconf.utils import warn_deprecations\nfrom dynaconf.utils.files import find_file\nfrom dynaconf.utils.parse_conf import parse_conf_data\n\ntry:\n f... | diff --git a/dynaconf/default_settings.py b/dynaconf/default_settings.py
index 98fd868e4..9818ed96a 100644
--- a/dynaconf/default_settings.py
+++ b/dynaconf/default_settings.py
@@ -182,11 +182,6 @@ def reload(*args, **kwargs):
# debug
DEBUG_LEVEL_FOR_DYNACONF = get("DEBUG_LEVEL_FOR_DYNACONF", "NOTSET")
-YAML = get(... |
chainer__chainer-3237 | DictDataset throws an internal error only in Python 3.
The following code throws an internal error only in Python 3 environment with the latest version of Chainer. (3.0.0b1, 8bcac6f)
```py
from chainer.datasets import DictDataset
def main():
a = range(10)
b = range(10, 20)
dataset = DictDataset(x=a,... | [
{
"content": "import six\n\n\nclass DictDataset(object):\n\n \"\"\"Dataset of a dictionary of datasets.\n\n It combines multiple datasets into one dataset. Each example is represented\n by a dictionary mapping a key to an example of the corresponding dataset.\n\n Args:\n datasets: Underlying ... | [
{
"content": "import six\n\n\nclass DictDataset(object):\n\n \"\"\"Dataset of a dictionary of datasets.\n\n It combines multiple datasets into one dataset. Each example is represented\n by a dictionary mapping a key to an example of the corresponding dataset.\n\n Args:\n datasets: Underlying ... | diff --git a/chainer/datasets/dict_dataset.py b/chainer/datasets/dict_dataset.py
index e122e0018b76..68e69950f43d 100644
--- a/chainer/datasets/dict_dataset.py
+++ b/chainer/datasets/dict_dataset.py
@@ -31,7 +31,7 @@ def __getitem__(self, index):
batches = {key: dataset[index]
for key, data... |
svthalia__concrexit-2356 | Remove Covid-19 from the message when the cancellation deadline passed for an event
### Is your feature request related to a problem? Please describe.
Since most of the effects from corona are gone, we would like to change the text that is shown at an event when its cancellation deadline has passed. The text I mean is... | [
{
"content": "from django.conf import settings\nfrom django.core import validators\nfrom django.core.exceptions import ValidationError, ObjectDoesNotExist\nfrom django.db import models, router\nfrom django.db.models.deletion import Collector\nfrom django.urls import reverse\nfrom django.utils import timezone\nf... | [
{
"content": "from django.conf import settings\nfrom django.core import validators\nfrom django.core.exceptions import ValidationError, ObjectDoesNotExist\nfrom django.db import models, router\nfrom django.db.models.deletion import Collector\nfrom django.urls import reverse\nfrom django.utils import timezone\nf... | diff --git a/website/events/models/event.py b/website/events/models/event.py
index 26d4d5ef0..ce91bd68b 100644
--- a/website/events/models/event.py
+++ b/website/events/models/event.py
@@ -206,10 +206,7 @@ def cancel_too_late_message(self):
return _(
"Cancellation isn't possible anymore without ha... |
jazzband__pip-tools-956 | Add python 3.8 support
#### What's the problem this feature will solve?
<!-- What are you trying to do, that you are unable to achieve with pip-tools as it currently stands? -->
Python 3.8 is released, so it's time to support it.
#### Describe the solution you'd like
<!-- A clear and concise description of wha... | [
{
"content": "\"\"\"\npip-tools keeps your pinned dependencies fresh.\n\"\"\"\nfrom os.path import abspath, dirname, join\n\nfrom setuptools import find_packages, setup\n\n\ndef read_file(filename):\n \"\"\"Read the contents of a file located relative to setup.py\"\"\"\n with open(join(abspath(dirname(__f... | [
{
"content": "\"\"\"\npip-tools keeps your pinned dependencies fresh.\n\"\"\"\nfrom os.path import abspath, dirname, join\n\nfrom setuptools import find_packages, setup\n\n\ndef read_file(filename):\n \"\"\"Read the contents of a file located relative to setup.py\"\"\"\n with open(join(abspath(dirname(__f... | diff --git a/.appveyor.yml b/.appveyor.yml
index 6a0a6adaa..154dd95f1 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -95,10 +95,34 @@ environment:
- TOXENV: py37-piplatest-coverage
PIP: latest
+ - TOXENV: py38-pip9.0.1
+ PIP: 9.0.1
+ - TOXENV: py38-pip9.0.3
+ PIP... |
learningequality__kolibri-10056 | Automatic Syncing Updates: Create Learner-facing notifications for insufficient storage
## Overview
This issue is a full-stack issue that creates a banner-style in-Kolibri notification if a learner has run out of storage but their library is trying to sync, or when they are choosing to download more content. **Noti... | [
{
"content": "from datetime import timedelta\nfrom sys import version_info\n\nimport requests\nfrom django.conf import settings\nfrom django.contrib.auth import login\nfrom django.db.models import Max\nfrom django.db.models import OuterRef\nfrom django.db.models.expressions import Subquery\nfrom django.db.model... | [
{
"content": "from datetime import timedelta\nfrom sys import version_info\n\nimport requests\nfrom django.conf import settings\nfrom django.contrib.auth import login\nfrom django.db.models import Max\nfrom django.db.models import OuterRef\nfrom django.db.models.expressions import Subquery\nfrom django.db.model... | diff --git a/kolibri/core/assets/src/api-resource.js b/kolibri/core/assets/src/api-resource.js
index 35a597cca9a..cdda5630e42 100644
--- a/kolibri/core/assets/src/api-resource.js
+++ b/kolibri/core/assets/src/api-resource.js
@@ -1057,7 +1057,7 @@ export class Resource {
'color: red'
);
console.log(`Err... |
Frojd__Wagtail-Pipit-35 | Use Werkzeug
Add django-extensions and Werkzeug to local requirements, and use runserver_plus in docker-entrypoint.sh.
It is a lot faster than regular runserver in Docker.
| [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nWrite local settings here, or override base settings\n\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nfrom core.settings.base import * # NOQA\n\n\nDEBUG = True\nTEMPLATES[0]['OPTIONS']['debug'] = DEBUG\n\nDEBUG_TOOLBAR_... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nWrite local settings here, or override base settings\n\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nfrom core.settings.base import * # NOQA\n\n\nDEBUG = True\nTEMPLATES[0]['OPTIONS']['debug'] = DEBUG\n\nDEBUG_TOOLBAR_... | diff --git a/Example-Project/src/core/settings/local.py b/Example-Project/src/core/settings/local.py
index 805a2adad..44a4985ab 100644
--- a/Example-Project/src/core/settings/local.py
+++ b/Example-Project/src/core/settings/local.py
@@ -17,6 +17,7 @@
# Add django debug toolbar when using local version
INSTALLED_APPS ... |
meltano__meltano-6321 | `meltano --help` fails on Windows in some environments
Running any Meltano command in my fresh Windows VM results in the following error:

Sorry for the image of text - I forgot to enable the shared clip... | [
{
"content": "\"\"\"Environment context for the Snowplow tracker.\"\"\"\n\nfrom __future__ import annotations\n\nimport os\nimport platform\nimport uuid\nfrom collections import defaultdict\nfrom datetime import datetime\nfrom pathlib import Path\nfrom typing import Any\n\nimport psutil\nfrom cached_property im... | [
{
"content": "\"\"\"Environment context for the Snowplow tracker.\"\"\"\n\nfrom __future__ import annotations\n\nimport os\nimport platform\nimport uuid\nfrom collections import defaultdict\nfrom datetime import datetime\nfrom pathlib import Path\nfrom typing import Any\n\nimport psutil\nfrom cached_property im... | diff --git a/src/meltano/core/tracking/contexts/environment.py b/src/meltano/core/tracking/contexts/environment.py
index 39d883b833..b08b9c8c98 100644
--- a/src/meltano/core/tracking/contexts/environment.py
+++ b/src/meltano/core/tracking/contexts/environment.py
@@ -56,11 +56,10 @@ def system_info(self) -> dict[str, An... |
interlegis__sapl-2102 | Audiências Públicas sem possibilidade de Edição
Ao criar uma Audiência Pública e salva-la, não aparecem os metadados da matéria legislativa inseridas no preenchimento.
Ao clicar em Editar, só aparece o título da audiência criada.
grato
| [
{
"content": "from django import forms\nfrom django.core.exceptions import ObjectDoesNotExist, ValidationError\nfrom django.db import transaction\nfrom django.utils.translation import ugettext_lazy as _\nfrom sapl.audiencia.models import AudienciaPublica, TipoAudienciaPublica\nfrom sapl.materia.models import Ma... | [
{
"content": "from django import forms\nfrom django.core.exceptions import ObjectDoesNotExist, ValidationError\nfrom django.db import transaction\nfrom django.utils.translation import ugettext_lazy as _\nfrom sapl.audiencia.models import AudienciaPublica, TipoAudienciaPublica\nfrom sapl.materia.models import Ma... | diff --git a/sapl/audiencia/forms.py b/sapl/audiencia/forms.py
index 3ad74cca9..e09671a04 100644
--- a/sapl/audiencia/forms.py
+++ b/sapl/audiencia/forms.py
@@ -77,9 +77,11 @@ def clean(self):
msg = _('A hora de fim não pode ser anterior a hora de ínicio')
raise ValidationError... |
Pyomo__pyomo-2083 | ASL Sover Version Check Timeout Increase
## Summary
Increase the subprocess timeout in the ASL solver version check.
### Rationale
This may be an odd use case, but I have Windows batch files wrapping solvers running in WSL, so I can use solvers built for Linux on Windows. It seems to take a bit longer to ret... | [
{
"content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and \n# Engineeri... | [
{
"content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and \n# Engineeri... | diff --git a/pyomo/solvers/plugins/solvers/ASL.py b/pyomo/solvers/plugins/solvers/ASL.py
index 04cfc876eaf..51b6a5a5a5b 100644
--- a/pyomo/solvers/plugins/solvers/ASL.py
+++ b/pyomo/solvers/plugins/solvers/ASL.py
@@ -94,7 +94,7 @@ def _get_version(self):
return _extract_version('')
try:
... |
marshmallow-code__webargs-498 | Suggest including URL variable parameters in more examples
I'm totally new to Flask, Marshmallow, SQLAlchemy, webargs and this ecosystem. I was given a coding test and while trying to complete it, I had to use flaskparser together with an URL parameter. Not knowing how to configure them to be used together, I googled "... | [
{
"content": "\"\"\"Flask request argument parsing module.\n\nExample: ::\n\n from flask import Flask\n\n from webargs import fields\n from webargs.flaskparser import use_args\n\n app = Flask(__name__)\n\n hello_args = {\n 'name': fields.Str(required=True)\n }\n\n @app.route('/')\n ... | [
{
"content": "\"\"\"Flask request argument parsing module.\n\nExample: ::\n\n from flask import Flask\n\n from webargs import fields\n from webargs.flaskparser import use_args\n\n app = Flask(__name__)\n\n user_detail_args = {\n 'per_page': fields.Int()\n }\n\n @app.route(\"/user/<in... | diff --git a/AUTHORS.rst b/AUTHORS.rst
index b534a38f..8cde5c4b 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -49,3 +49,4 @@ Contributors (chronological)
* Sami Salonen `@suola <https://github.com/suola>`_
* Tim Gates `@timgates42 <https://github.com/timgates42>`_
* Lefteris Karapetsas `@lefterisjp <https://github.c... |
spack__spack-15778 | lmod modules generated for intel packages include LMOD_* environment variables
When I build lmod modules from installed intel packages (including intel, intel-mkl, and intel-mpi) the generated modules include LMOD and related environment variables from the point-in-time environment. This breaks for us because our defau... | [
{
"content": "# Copyright 2013-2020 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\n\"\"\"Utilities for setting and modifying environment variables.\"\"\"\nimport collections\nimp... | [
{
"content": "# Copyright 2013-2020 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\n\"\"\"Utilities for setting and modifying environment variables.\"\"\"\nimport collections\nimp... | diff --git a/lib/spack/spack/test/data/sourceme_lmod.sh b/lib/spack/spack/test/data/sourceme_lmod.sh
new file mode 100644
index 00000000000000..b71e338ec98bb3
--- /dev/null
+++ b/lib/spack/spack/test/data/sourceme_lmod.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+#
+# Copyright 2013-2020 Lawrence Livermore National Securi... |
scipy__scipy-18825 | BUG: `scipy.optimize.minimize` fails when `dtype=float32` Jacobian is passed
### Describe your issue.
`scipy.optimize.minimize` only accept `dtype=float64` Jacobian (the called Fortran routine takes `float64/double`). If fed with `dtype=float32` Jacobian, the failing message doesn't help users debug too much.
`dt... | [
{
"content": "\"\"\"\nFunctions\n---------\n.. autosummary::\n :toctree: generated/\n\n fmin_l_bfgs_b\n\n\"\"\"\n\n## License for the Python wrapper\n## ==============================\n\n## Copyright (c) 2004 David M. Cooke <cookedm@physics.mcmaster.ca>\n\n## Permission is hereby granted, free of charge, t... | [
{
"content": "\"\"\"\nFunctions\n---------\n.. autosummary::\n :toctree: generated/\n\n fmin_l_bfgs_b\n\n\"\"\"\n\n## License for the Python wrapper\n## ==============================\n\n## Copyright (c) 2004 David M. Cooke <cookedm@physics.mcmaster.ca>\n\n## Permission is hereby granted, free of charge, t... | diff --git a/scipy/optimize/_lbfgsb_py.py b/scipy/optimize/_lbfgsb_py.py
index a4d06954178f..d42eda9d5e4b 100644
--- a/scipy/optimize/_lbfgsb_py.py
+++ b/scipy/optimize/_lbfgsb_py.py
@@ -348,6 +348,10 @@ def _minimize_lbfgsb(fun, x0, args=(), jac=None, bounds=None,
n_iterations = 0
while 1:
+ # g may... |
pre-commit__pre-commit-2030 | multiple mutable rev warnings issued on `autoupdate`
when running `pre-commit autoupdate` I get 2 warnings per mutable rev, when I expected 0 see #974
```sh
~/projects/pytest-cov pre-commit-autoupdate pipx run pre-commit autoupdate
[WARNING] The 'rev' field of repo 'https://github.com/pre-commit/pre-comm... | [
{
"content": "import re\nimport textwrap\n\nimport yaml\n\nfrom pre_commit.clientlib import load_config\nfrom pre_commit.util import yaml_load\n\n\ndef _is_header_line(line: str) -> bool:\n return line.startswith(('#', '---')) or not line.strip()\n\n\ndef _migrate_map(contents: str) -> str:\n if isinstanc... | [
{
"content": "import re\nimport textwrap\n\nimport yaml\n\nfrom pre_commit.util import yaml_load\n\n\ndef _is_header_line(line: str) -> bool:\n return line.startswith(('#', '---')) or not line.strip()\n\n\ndef _migrate_map(contents: str) -> str:\n if isinstance(yaml_load(contents), list):\n # Find ... | diff --git a/pre_commit/commands/migrate_config.py b/pre_commit/commands/migrate_config.py
index a155f6b05..fef14cd39 100644
--- a/pre_commit/commands/migrate_config.py
+++ b/pre_commit/commands/migrate_config.py
@@ -3,7 +3,6 @@
import yaml
-from pre_commit.clientlib import load_config
from pre_commit.util import... |
blakeblackshear__frigate-6497 | [Support]: PTZ only with zoom
### Describe the problem you are having
I have ONFIV camera only support ZOOM action. When frigate try fetch presets Igot following error "Optional Action Not Implemented"
### Version
0.13 dev
### Frigate config file
```yaml
cameras:
back:
ffmpeg:
...
onvif:
... | [
{
"content": "\"\"\"Configure and control camera via onvif.\"\"\"\n\nimport logging\nimport site\n\nfrom enum import Enum\nfrom onvif import ONVIFCamera, ONVIFError\n\nfrom frigate.config import FrigateConfig\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass OnvifCommandEnum(str, Enum):\n \"\"\"Holds all ... | [
{
"content": "\"\"\"Configure and control camera via onvif.\"\"\"\n\nimport logging\nimport site\n\nfrom enum import Enum\nfrom onvif import ONVIFCamera, ONVIFError\n\nfrom frigate.config import FrigateConfig\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass OnvifCommandEnum(str, Enum):\n \"\"\"Holds all ... | diff --git a/frigate/ptz.py b/frigate/ptz.py
index e2c21618e1..a52006b5c6 100644
--- a/frigate/ptz.py
+++ b/frigate/ptz.py
@@ -79,8 +79,8 @@ def _init_onvif(self, camera_name: str) -> bool:
try:
presets: list[dict] = ptz.GetPresets({"ProfileToken": profile.token})
except ONVIFError as e:
... |
pex-tool__pex-685 | Restore pex.pex_bootstrapper.is_compressed API
#680 broke https://github.com/wickman/lambdex which has a dependency on this removed function. https://github.com/wickman/lambdex/issues/5 is filed to remove this un-necessary dependence going forward.
| [
{
"content": "# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import absolute_import, print_function\n\nimport os\nimport sys\n\nfrom pex import pex_warnings\nfrom pex.common import die\nfrom pex.executor impo... | [
{
"content": "# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import absolute_import, print_function\n\nimport os\nimport sys\n\nfrom pex import pex_warnings\nfrom pex.common import die\nfrom pex.executor impo... | diff --git a/pex/pex_bootstrapper.py b/pex/pex_bootstrapper.py
index 5a0c7fd21..06faa5daa 100644
--- a/pex/pex_bootstrapper.py
+++ b/pex/pex_bootstrapper.py
@@ -156,6 +156,13 @@ def bootstrap_pex(entry_point):
pex.PEX(entry_point).execute()
+# NB: This helper is used by third party libs - namely https://github.c... |
microsoft__Qcodes-4247 | Integrate changelogs with sphinx-isssue
It would be nice if our changelogs had links to the prs that they are coming from. Sphinx issue seems like a good way that could be done https://pypi.org/project/sphinx-issues/
| [
{
"content": "#!/usr/bin/env python3\n#\n# QCoDeS documentation build configuration file, created by\n# sphinx-quickstart on Thu Jun 2 10:41:37 2016.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this... | [
{
"content": "#!/usr/bin/env python3\n#\n# QCoDeS documentation build configuration file, created by\n# sphinx-quickstart on Thu Jun 2 10:41:37 2016.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this... | diff --git a/docs/changes/0.1.10.rst b/docs/changes/0.1.10.rst
index df8b470ad8e..eb50a44f891 100644
--- a/docs/changes/0.1.10.rst
+++ b/docs/changes/0.1.10.rst
@@ -8,28 +8,28 @@ ______________
- New and Improved drivers:
- - New Tektronix AWG5208 driver (#977)
- - New Alazar ATS9360 driver (#860)
- - Triton dr... |
open-mmlab__mmpose-259 | Pylint: W0707
```bash
mmpose/utils/hooks.py:37:20: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
```
| [
{
"content": "import functools\n\n\nclass OutputHook:\n\n def __init__(self, module, outputs=None, as_tensor=False):\n self.outputs = outputs\n self.as_tensor = as_tensor\n self.layer_outputs = {}\n self.register(module)\n\n def register(self, module):\n\n def hook_wrapp... | [
{
"content": "import functools\n\n\nclass OutputHook:\n\n def __init__(self, module, outputs=None, as_tensor=False):\n self.outputs = outputs\n self.as_tensor = as_tensor\n self.layer_outputs = {}\n self.register(module)\n\n def register(self, module):\n\n def hook_wrapp... | diff --git a/mmpose/utils/hooks.py b/mmpose/utils/hooks.py
index 041fd04136..b62c2e494f 100644
--- a/mmpose/utils/hooks.py
+++ b/mmpose/utils/hooks.py
@@ -33,8 +33,9 @@ def hook(model, input, output):
try:
layer = rgetattr(module, name)
h = layer.register_forwa... |
pennersr__django-allauth-3107 | Gitea provider does not work by default with gitea.com
It seems the Gitea provider expects a [/user](https://github.com/pennersr/django-allauth/blob/master/allauth/socialaccount/providers/gitea/views.py#L25) endpoint. But this 404's. It appears the Gitea project added a `login/oauth/userinfo` endpoint for this instead.... | [
{
"content": "import requests\n\nfrom allauth.socialaccount import app_settings\nfrom allauth.socialaccount.providers.gitea.provider import GiteaProvider\nfrom allauth.socialaccount.providers.oauth2.views import (\n OAuth2Adapter,\n OAuth2CallbackView,\n OAuth2LoginView,\n)\n\n\nclass GiteaOAuth2Adapte... | [
{
"content": "import requests\n\nfrom allauth.socialaccount import app_settings\nfrom allauth.socialaccount.providers.gitea.provider import GiteaProvider\nfrom allauth.socialaccount.providers.oauth2.views import (\n OAuth2Adapter,\n OAuth2CallbackView,\n OAuth2LoginView,\n)\n\n\nclass GiteaOAuth2Adapte... | diff --git a/allauth/socialaccount/providers/gitea/views.py b/allauth/socialaccount/providers/gitea/views.py
index 585bb93cb2..f6c81f2fba 100644
--- a/allauth/socialaccount/providers/gitea/views.py
+++ b/allauth/socialaccount/providers/gitea/views.py
@@ -15,10 +15,9 @@ class GiteaOAuth2Adapter(OAuth2Adapter):
if... |
pwr-Solaar__Solaar-2065 | After suspend swap fx function does not work properly anymore
**Information**
- Solaar version (`solaar --version` or `git describe --tags` if cloned from this repository): 1.1.8
- Distribution: Fedora 37
- Kernel version (ex. `uname -srmo`): `Linux 6.2.10-200.fc37.x86_64 x86_64 GNU/Linux`
- Output of `solaar show`... | [
{
"content": "# -*- python-mode -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the License, or\n## (at your... | [
{
"content": "# -*- python-mode -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the License, or\n## (at your... | diff --git a/lib/hidapi/udev.py b/lib/hidapi/udev.py
index afb69ac60a..d94de66c38 100644
--- a/lib/hidapi/udev.py
+++ b/lib/hidapi/udev.py
@@ -322,7 +322,19 @@ def open_path(device_path):
"""
assert device_path
assert device_path.startswith('/dev/hidraw')
- return _os.open(device_path, _os.O_RDWR | _o... |
awslabs__gluonts-2847 | Taxi dataset will not load
## To Reproduce
With a fresh dataset folder (e.g. `rm -r ~/.gluonts/datasets/taxi_30min`)
```python
from gluonts.dataset.repository import get_dataset
dataset = get_dataset("taxi_30min")
```
## Error message or code output
```
Traceback (most recent call last):
File "/Users... | [
{
"content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. 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# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE... | [
{
"content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. 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# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE... | diff --git a/src/gluonts/dataset/common.py b/src/gluonts/dataset/common.py
index 83923df70e..eb39ea1a5f 100644
--- a/src/gluonts/dataset/common.py
+++ b/src/gluonts/dataset/common.py
@@ -156,6 +156,7 @@ def FileDataset(
pattern="*",
levels=2,
translate=None,
+ ignore_hidden=True,
) -> Dataset:
p... |
ansible-collections__community.aws-818 | The EKS cluster security token must be between 33 and 126 characters long...forcing the length of "name" parameter for aws_eks_cluster module to succeed.
### Summary
When leveraging a role that uses the aws_eks_cluster module, I encountered a repeated error about security token length. The issue was 'resolved' when I ... | [
{
"content": "#!/usr/bin/python\n# Copyright (c) 2017 Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\n\nDOCUMENTATION = r'''\n---\nmodule: aws_eks_cluster\... | [
{
"content": "#!/usr/bin/python\n# Copyright (c) 2017 Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\n\nDOCUMENTATION = r'''\n---\nmodule: aws_eks_cluster\... | diff --git a/changelogs/fragments/818-fix-eks-short-name.yml b/changelogs/fragments/818-fix-eks-short-name.yml
new file mode 100644
index 00000000000..509519946dd
--- /dev/null
+++ b/changelogs/fragments/818-fix-eks-short-name.yml
@@ -0,0 +1,2 @@
+bugfixes:
+- aws_eks - Fix EKS cluster creation with short names (https:... |
DataDog__integrations-core-698 | Bug in network check
On this line:
https://github.com/DataDog/integrations-core/blob/master/network/check.py#L438
This should be `self.log` rather than `self.logger`. As it is, this raises
```
AttributeError: 'Network' object has no attribute 'logger'
```
| [
{
"content": "# (C) Datadog, Inc. 2010-2016\n# All rights reserved\n# Licensed under Simplified BSD License (see LICENSE)\n\n\"\"\"\nCollects network metrics.\n\"\"\"\n# stdlib\nimport re\nimport socket\nfrom collections import defaultdict\n\n# project\nfrom checks import AgentCheck\nfrom utils.platform import ... | [
{
"content": "# (C) Datadog, Inc. 2010-2016\n# All rights reserved\n# Licensed under Simplified BSD License (see LICENSE)\n\n\"\"\"\nCollects network metrics.\n\"\"\"\n# stdlib\nimport re\nimport socket\nfrom collections import defaultdict\n\n# project\nfrom checks import AgentCheck\nfrom utils.platform import ... | diff --git a/network/CHANGELOG.md b/network/CHANGELOG.md
index 8bd3e30ae5182..8a4a73a4398b4 100644
--- a/network/CHANGELOG.md
+++ b/network/CHANGELOG.md
@@ -1,5 +1,12 @@
# CHANGELOG - network
+1.2.2 / Unreleased
+==================
+
+### Changes
+
+* [BUGFIX] Fix incorrect `log.error` call in BSD check. See [#698][... |
conda__conda-build-1810 | AssertionError from conda inspect linkages
```
$conda inspect linkages scikit-umfpack
Traceback (most recent call last):
File "/Users/aaronmeurer/anaconda/bin/conda-inspect", line 6, in <module>
sys.exit(conda_build.cli.main_inspect.main())
File "/Users/aaronmeurer/anaconda/lib/python3.5/site-packages/cond... | [
{
"content": "# (c) Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\n\nfrom __future__ import absolute_import, division, print_function\n\nfrom co... | [
{
"content": "# (c) Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\n\nfrom __future__ import absolute_import, division, print_function\n\nfrom co... | diff --git a/conda_build/inspect.py b/conda_build/inspect.py
index 18282a956b..a4826adc54 100644
--- a/conda_build/inspect.py
+++ b/conda_build/inspect.py
@@ -100,6 +100,13 @@ def check_install(packages, platform=None, channel_urls=(), prepend=True,
def print_linkages(depmap, show_files=False):
# Print system a... |
privacyidea__privacyidea-2615 | no serial in polling on /ttype/push
We may have a bug in push polling. This exception occurs on polling
https://gist.github.com/laclaro/743618d11f61f8a817e273db6b804a9a
This may be related to #2534.
| [
{
"content": "# -*- coding: utf-8 -*-\n#\n# http://www.privacyidea.org\n# (c) Cornelius Kölbel, privacyidea.org\n#\n# 2015-09-01 Cornelius Kölbel, <cornelius@privacyidea.org>\n# Initial writeup\n#\n# This code is free software; you can redistribute it and/or\n# modify it under the terms of the GNU AF... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# http://www.privacyidea.org\n# (c) Cornelius Kölbel, privacyidea.org\n#\n# 2015-09-01 Cornelius Kölbel, <cornelius@privacyidea.org>\n# Initial writeup\n#\n# This code is free software; you can redistribute it and/or\n# modify it under the terms of the GNU AF... | diff --git a/privacyidea/api/ttype.py b/privacyidea/api/ttype.py
index d159096ea6..fa6101e9c3 100644
--- a/privacyidea/api/ttype.py
+++ b/privacyidea/api/ttype.py
@@ -69,6 +69,7 @@ def before_request():
# access_route contains the ip adresses of all clients, hops and proxies.
g.client_ip = get_client_ip(reque... |
ansible-collections__community.aws-847 | The EKS cluster security token must be between 33 and 126 characters long...forcing the length of "name" parameter for aws_eks_cluster module to succeed.
### Summary
When leveraging a role that uses the aws_eks_cluster module, I encountered a repeated error about security token length. The issue was 'resolved' when I ... | [
{
"content": "#!/usr/bin/python\n# Copyright (c) 2017 Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\n\nDOCUMENTATION = r'''\n---\nmodule: aws_eks_cluster\... | [
{
"content": "#!/usr/bin/python\n# Copyright (c) 2017 Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\n\nDOCUMENTATION = r'''\n---\nmodule: aws_eks_cluster\... | diff --git a/changelogs/fragments/818-fix-eks-short-name.yml b/changelogs/fragments/818-fix-eks-short-name.yml
new file mode 100644
index 00000000000..509519946dd
--- /dev/null
+++ b/changelogs/fragments/818-fix-eks-short-name.yml
@@ -0,0 +1,2 @@
+bugfixes:
+- aws_eks - Fix EKS cluster creation with short names (https:... |
Flexget__Flexget-1193 | BUG: t411_api invalid get requests with terms
When searching using terms the GET request sent to the server is sending invalid characters when chaining those terms. The result is those terms are not being filtered by t411 search server
For example, in this pcap file you can see the request and the response
[t411_api_... | [
{
"content": "from __future__ import unicode_literals, division, absolute_import\nfrom builtins import * # pylint: disable=unused-import, redefined-builtin\nfrom datetime import datetime\nfrom functools import partial\nimport json\nimport logging\nfrom flexget.entry import Entry\nfrom flexget.event import even... | [
{
"content": "from __future__ import unicode_literals, division, absolute_import\nfrom builtins import * # pylint: disable=unused-import, redefined-builtin\nfrom datetime import datetime\nfrom functools import partial\nimport json\nimport logging\nfrom flexget.entry import Entry\nfrom flexget.event import even... | diff --git a/flexget/plugins/api_t411.py b/flexget/plugins/api_t411.py
index 5a098c40e1..1b7a3bba46 100644
--- a/flexget/plugins/api_t411.py
+++ b/flexget/plugins/api_t411.py
@@ -311,7 +311,7 @@ def search(self, query):
url_params['offset'] = query['page_index']
if query.get('terms') is not None:
... |
archlinux__archinstall-503 | Guided installation doesn't detect if it doesn't have root privileges
I ran the guided installation in userspace on my computer to install Arch on a USB drive. I got fairly far in the installation process before getting the following error "PermissionError: [Errno 13] Permission denied: '/var/log/archinstall'". If the ... | [
{
"content": "import json\nimport logging\nimport os\nimport time\n\nimport archinstall\nfrom archinstall.lib.general import run_custom_user_commands\nfrom archinstall.lib.hardware import has_uefi\nfrom archinstall.lib.networking import check_mirror_reachable\nfrom archinstall.lib.profiles import Profile\n\nif ... | [
{
"content": "import json\nimport logging\nimport os\nimport time\n\nimport archinstall\nfrom archinstall.lib.general import run_custom_user_commands\nfrom archinstall.lib.hardware import has_uefi\nfrom archinstall.lib.networking import check_mirror_reachable\nfrom archinstall.lib.profiles import Profile\n\nif ... | diff --git a/examples/guided.py b/examples/guided.py
index f61548e17e..c5440efec6 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -12,6 +12,9 @@
if archinstall.arguments.get('help'):
print("See `man archinstall` for help.")
exit(0)
+if os.getuid() != 0:
+ print("Archinstall requires root privileges to ... |
statsmodels__statsmodels-6515 | select_bandwidth raising ValueError in version 0.11.0 for multi-dimensional input
#### Describe the bug
After updating to version 0.11.0, `statsmodels.nonparametric.bandwidths.select_bandwidth()` raises a ValueError due to the addition of PR #6292 when the input array `x` is multi-dimensional. I believe it is due to... | [
{
"content": "import numpy as np\nfrom scipy.stats import scoreatpercentile as sap\n\nfrom statsmodels.compat.pandas import Substitution\nfrom statsmodels.sandbox.nonparametric import kernels\n\ndef _select_sigma(X):\n \"\"\"\n Returns the smaller of std(X, ddof=1) or normalized IQR(X) over axis 0.\n\n ... | [
{
"content": "import numpy as np\nfrom scipy.stats import scoreatpercentile as sap\n\nfrom statsmodels.compat.pandas import Substitution\nfrom statsmodels.sandbox.nonparametric import kernels\n\ndef _select_sigma(X):\n \"\"\"\n Returns the smaller of std(X, ddof=1) or normalized IQR(X) over axis 0.\n\n ... | diff --git a/statsmodels/nonparametric/bandwidths.py b/statsmodels/nonparametric/bandwidths.py
index 28c1f39041d..bf7f8dd2542 100644
--- a/statsmodels/nonparametric/bandwidths.py
+++ b/statsmodels/nonparametric/bandwidths.py
@@ -168,7 +168,7 @@ def select_bandwidth(x, bw, kernel):
if bw not in bandwidth_funcs:
... |
beetbox__beets-1435 | embedart plugin disregards "write: no" and "-W" config opts
Any import action with `embedart` enabled causes a full write of tags and art, even when config file specifies `write: no`, or commandline includes `-W`.
CAUSE: `art.py` does not check config option `import/write` before calling `try_write`.
SUGGESTED FIX: c... | [
{
"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/embedart.py b/beetsplug/embedart.py
index 66a1d81b22..99be2180fc 100644
--- a/beetsplug/embedart.py
+++ b/beetsplug/embedart.py
@@ -126,7 +126,7 @@ def clear_func(lib, opts, args):
def process_album(self, album):
"""Automatically embed art after art has been set
"""
- ... |
mars-project__mars-1623 | [BUG] Setitem for DataFrame leads to a wrong dtypes
<!--
Thank you for your contribution!
Please review https://github.com/mars-project/mars/blob/master/CONTRIBUTING.rst before opening an issue.
-->
**Describe the bug**
Add columns for a DataFrame will lead to a wrong dtypes of input DataFrame.
**To Reprodu... | [
{
"content": "# Copyright 1999-2020 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless... | [
{
"content": "# Copyright 1999-2020 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6a06d05256..b596df1d04 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -70,13 +70,12 @@ jobs:
fi
if [[ $UNAME == "linux" ]] && [[ ! "$PYTHON" =~ "3.8" ]]; then
conda install --quiet --... |
encode__django-rest-framework-396 | HyperlinkedRelatedField breaks for Null related field values
If a model's related field allows nulls and has a null value, HyperlinkedRelatedField throws an error.
File "... /python2.7/site-packages/rest_framework/fields.py", line 521, in to_native
kwargs = {self.pk_url_kwarg: obj.pk}
AttributeError: 'NoneType' object... | [
{
"content": "import copy\nimport datetime\nimport inspect\nimport warnings\n\nfrom django.core import validators\nfrom django.core.exceptions import ObjectDoesNotExist, ValidationError\nfrom django.core.urlresolvers import resolve, get_script_prefix\nfrom django.conf import settings\nfrom django.forms import w... | [
{
"content": "import copy\nimport datetime\nimport inspect\nimport warnings\n\nfrom django.core import validators\nfrom django.core.exceptions import ObjectDoesNotExist, ValidationError\nfrom django.core.urlresolvers import resolve, get_script_prefix\nfrom django.conf import settings\nfrom django.forms import w... | diff --git a/rest_framework/fields.py b/rest_framework/fields.py
index a4e29a30ac..4c2064261c 100644
--- a/rest_framework/fields.py
+++ b/rest_framework/fields.py
@@ -522,7 +522,10 @@ def to_native(self, obj):
view_name = self.view_name
request = self.context.get('request', None)
format = sel... |
spack__spack-2677 | luaposix (lmod) fetch error
Link and md5 correct in package.py, .... but debug shows incorrect path during install:
```python
homepage = "https://github.com/luaposix/luaposix/"
url = "https://github.com/luaposix/luaposix/archive/release-v33.4.0.tar.gz"
version('33.4.0', 'b36ff049095f28752caeb0b46144516c')
... | [
{
"content": "##############################################################################\n# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All righ... | [
{
"content": "##############################################################################\n# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All righ... | diff --git a/lib/spack/spack/test/url_parse.py b/lib/spack/spack/test/url_parse.py
index 65b49faaa1d51f..1466698dbf795c 100644
--- a/lib/spack/spack/test/url_parse.py
+++ b/lib/spack/spack/test/url_parse.py
@@ -345,3 +345,8 @@ def test_yorick_version(self):
self.check(
'yorick', '2_2_04',
... |
open-mmlab__mmdeploy-724 | Could not export Python function call 'RoIAlignFunction'
While trying to export mask-rcnn-r50-c4, I'm getting following error:
```
Process Process-2:
Traceback (most recent call last):
File "/home/sort/miniconda3/envs/openmmlab/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
... | [
{
"content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport torch\nfrom mmcv.ops import RoIAlign\nfrom torch.autograd import Function\n\nfrom mmdeploy.core.optimizers import mark\nfrom mmdeploy.core.rewriters import FUNCTION_REWRITER\nfrom mmdeploy.utils import get_backend\nfrom mmdeploy.utils.constan... | [
{
"content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport torch\nfrom mmcv.ops import RoIAlign\nfrom torch.autograd import Function\n\nfrom mmdeploy.core.optimizers import mark\nfrom mmdeploy.core.rewriters import FUNCTION_REWRITER\nfrom mmdeploy.utils import get_backend\nfrom mmdeploy.utils.constan... | diff --git a/mmdeploy/codebase/mmdet/models/roi_heads/single_level_roi_extractor.py b/mmdeploy/codebase/mmdet/models/roi_heads/single_level_roi_extractor.py
index f91ca48ad0..321522e7cf 100644
--- a/mmdeploy/codebase/mmdet/models/roi_heads/single_level_roi_extractor.py
+++ b/mmdeploy/codebase/mmdet/models/roi_heads/sin... |
LMFDB__lmfdb-5387 | gp code for polynomials
When asking for gp code, the polynomials are constructed with `Pol(Vecrev([ ... ]))`. There is a shortcut called `Polrev([ ... ])`, which would produce slightly nicer code.
| [
{
"content": "import re\nfrom flask import url_for\nfrom urllib.parse import quote\nfrom markupsafe import Markup, escape\nfrom sage.all import (Infinity, PolynomialRing, QQ, RDF, ZZ, KodairaSymbol,\n implicit_plot, plot, prod, rainbow, sqrt, text, var)\nfrom lmfdb import db\nfrom lmfdb.uti... | [
{
"content": "import re\nfrom flask import url_for\nfrom urllib.parse import quote\nfrom markupsafe import Markup, escape\nfrom sage.all import (Infinity, PolynomialRing, QQ, RDF, ZZ, KodairaSymbol,\n implicit_plot, plot, prod, rainbow, sqrt, text, var)\nfrom lmfdb import db\nfrom lmfdb.uti... | diff --git a/lmfdb/ecnf/WebEllipticCurve.py b/lmfdb/ecnf/WebEllipticCurve.py
index bb6ef9c0ce..2e60dc84d5 100644
--- a/lmfdb/ecnf/WebEllipticCurve.py
+++ b/lmfdb/ecnf/WebEllipticCurve.py
@@ -841,7 +841,7 @@ def make_code(label, lang=None):
ainvs_string = {
'magma': "[" + ",".join("K!{}".format(ai) for ai ... |
aws-cloudformation__cfn-lint-1066 | IoT Topic Rule fails with E1029
*cfn-lint version: 0.22.4*
*Description of issue.*
When using AWS IoT substitution templates (in my case, for IoT SQL functions) within Cloud Formation, it is necessary to use the dollar sign and curly braces (For example `${topic()}`). This gets misinterpreted as a Fn::Sub Paramet... | [
{
"content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w... | [
{
"content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w... | diff --git a/src/cfnlint/rules/functions/SubNeeded.py b/src/cfnlint/rules/functions/SubNeeded.py
index 07ce02e018..671437edd0 100644
--- a/src/cfnlint/rules/functions/SubNeeded.py
+++ b/src/cfnlint/rules/functions/SubNeeded.py
@@ -28,7 +28,7 @@ class SubNeeded(CloudFormationLintRule):
# Free-form text properties... |
pwr-Solaar__Solaar-1184 | Support for Logitech G613 with receiver id c53d
Apparently solaar v1.0.1 on ubuntu ppa does not support Lightspeed receiver with id c53d . solaar reported that no receiver has been found.
Here is the output of my lsusb
tonny@fenrir:[~]: lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 00... | [
{
"content": "# -*- python-mode -*-\n# -*- coding: UTF-8 -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the... | [
{
"content": "# -*- python-mode -*-\n# -*- coding: UTF-8 -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the... | diff --git a/docs/installation.md b/docs/installation.md
index 8c4758d8f8..976c5e72c1 100644
--- a/docs/installation.md
+++ b/docs/installation.md
@@ -14,11 +14,11 @@ Clone Solaar from GitHub by `git clone https://github.com/pwr-Solaar/Solaar.git`
Installing Solaar from a repository should have set up all these requir... |
getnikola__nikola-971 | Drafts are leaked in feeds
Reported by @kayhayen in the mailing list. Proposed patch breaks tests, so checking things out a bit more carefully.
| [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2014 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-2014 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi... | diff --git a/nikola/plugins/task/rss.py b/nikola/plugins/task/rss.py
index e5f7548bc4..9e4204c3ce 100644
--- a/nikola/plugins/task/rss.py
+++ b/nikola/plugins/task/rss.py
@@ -58,6 +58,11 @@ def gen_tasks(self):
"feed_length": self.site.config['FEED_LENGTH'],
}
self.site.scan_posts()
+ ... |
django-wiki__django-wiki-352 | Fix consequences of making subscription OneToOneField
For instance:
```
FieldError: Cannot resolv keyword 'notification_type' into field. Choices are: article, articleplugin_ptr, created, deleted, id, subscription, subscription_ptr
```
Fix consequences of making subscription OneToOneField
For instance:
```
FieldEr... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nfrom __future__ import absolute_import\nfrom django.core.urlresolvers import reverse\nfrom django.utils.encoding import python_2_unicode_compatible\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.db.models impo... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nfrom __future__ import absolute_import\nfrom django.core.urlresolvers import reverse\nfrom django.utils.encoding import python_2_unicode_compatible\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.db.models impo... | diff --git a/wiki/plugins/notifications/models.py b/wiki/plugins/notifications/models.py
index bb1cf584b..fbc4ca956 100644
--- a/wiki/plugins/notifications/models.py
+++ b/wiki/plugins/notifications/models.py
@@ -24,9 +24,9 @@ class ArticleSubscription(ArticlePlugin):
def __str__(self):
title = (_("... |
yt-dlp__yt-dlp-1298 | [Bug] ERROR: Data must be padded to 16 byte boundary in CBC mode
@pukkandan
I'm getting this error when I use aria2 as external downloader what does it mean? What can I do to fix this?
The whole segments are downloaded without error but only at the end when it suppose to merge to a mp4 file this error occurs and ... | [
{
"content": "from __future__ import division, unicode_literals\n\nimport os\nimport time\nimport json\nfrom math import ceil\n\ntry:\n import concurrent.futures\n can_threaded_download = True\nexcept ImportError:\n can_threaded_download = False\n\nfrom .common import FileDownloader\nfrom .http import ... | [
{
"content": "from __future__ import division, unicode_literals\n\nimport os\nimport time\nimport json\nfrom math import ceil\n\ntry:\n import concurrent.futures\n can_threaded_download = True\nexcept ImportError:\n can_threaded_download = False\n\nfrom .common import FileDownloader\nfrom .http import ... | diff --git a/yt_dlp/downloader/fragment.py b/yt_dlp/downloader/fragment.py
index 6a490131b112..d0eaede7eef1 100644
--- a/yt_dlp/downloader/fragment.py
+++ b/yt_dlp/downloader/fragment.py
@@ -355,7 +355,8 @@ def decrypt_fragment(fragment, frag_content):
# not what it decrypts to.
if self.params... |
translate__pootle-6371 | Fulah locale exposes _XXX_LAST_SUBMISSION_
When in the Fulah (ff) locale, all pages expose the `_XXX_LAST_SUBMISSION_` text used to mangle timesince messages.

| [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nfrom datetime ... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nfrom datetime ... | diff --git a/pootle/i18n/dates.py b/pootle/i18n/dates.py
index 35c07bc52bc..e1a2cf089a8 100644
--- a/pootle/i18n/dates.py
+++ b/pootle/i18n/dates.py
@@ -8,10 +8,15 @@
from datetime import datetime
+from django.conf import settings
from .formatter import get_locale_formats
def timesince(timestamp, locale=No... |
pymedusa__Medusa-7541 | [APP SUBMITTED]: qBittorrent: Unable to set priority for Torrent
### INFO
**Python Version**: `3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)]`
**Operating System**: `Windows-10-10.0.18362-SP0`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.14`
**Commit**: pyme... | [
{
"content": "# coding=utf-8\n\n\"\"\"qBittorrent Client.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\n\nfrom medusa import app\nfrom medusa.clients.torrent.generic import GenericClient\nfrom medusa.logger.adapters.style import BraceAdapter\n\nfrom requests.auth import HTTPDigestAuth\nfro... | [
{
"content": "# coding=utf-8\n\n\"\"\"qBittorrent Client.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\n\nfrom medusa import app\nfrom medusa.clients.torrent.generic import GenericClient\nfrom medusa.logger.adapters.style import BraceAdapter\n\nfrom requests.auth import HTTPDigestAuth\nfro... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5c09cd9f8b..82a491343e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@
- Fix Schedule page and Forced Search on Schedule page ([#7512](https://github.com/pymedusa/Medusa/pull/7512))
- Fix manual search page release name bug ([#7517](https://github.com/pyme... |
lnbits__lnbits-750 | Switching to `FakeWallet` deletes pending outgoing payments from another backend.
Needs investigation.
What I observed: create outgoing pending payment from other wallet, stop LNbits, change to `FakeWallet`, start LNbits.
-> Payments get deleted because of a `failed` state that is returned in `lnbits.core.models... | [
{
"content": "import asyncio\nimport hashlib\nimport random\nfrom datetime import datetime\nfrom os import getenv\nfrom typing import AsyncGenerator, Dict, Optional\n\nfrom environs import Env # type: ignore\nfrom loguru import logger\n\nfrom lnbits.helpers import urlsafe_short_hash\n\nfrom ..bolt11 import dec... | [
{
"content": "import asyncio\nimport hashlib\nimport random\nfrom datetime import datetime\nfrom os import getenv\nfrom typing import AsyncGenerator, Dict, Optional\n\nfrom environs import Env # type: ignore\nfrom loguru import logger\n\nfrom lnbits.helpers import urlsafe_short_hash\n\nfrom ..bolt11 import dec... | diff --git a/lnbits/wallets/fake.py b/lnbits/wallets/fake.py
index 9dd5556bdf..3859d33c53 100644
--- a/lnbits/wallets/fake.py
+++ b/lnbits/wallets/fake.py
@@ -91,10 +91,10 @@ async def pay_invoice(self, bolt11: str, fee_limit_msat: int) -> PaymentResponse
)
async def get_invoice_status(self, checkin... |
hylang__hy-1813 | REPL crashes when ~/.hy-history is inaccessible
I've been working on updating the Hy package in Debian and in running the tests, I've noticed that the `test_bin` tests appear to expect to be able to do something with `~/.hy-history` (not sure if it's trying to read or write) but I had to set `HOME` to a real directory ... | [
{
"content": "# Copyright 2019 the authors.\n# This file is part of Hy, which is free software licensed under the Expat\n# license. See the LICENSE.\n\nimport contextlib\nimport os\nimport re\nimport sys\nimport builtins\n\nimport hy.macros\nimport hy.compiler\n\n\ndocomplete = True\n\ntry:\n import readline... | [
{
"content": "# Copyright 2019 the authors.\n# This file is part of Hy, which is free software licensed under the Expat\n# license. See the LICENSE.\n\nimport contextlib\nimport os\nimport re\nimport sys\nimport builtins\n\nimport hy.macros\nimport hy.compiler\n\n\ndocomplete = True\n\ntry:\n import readline... | diff --git a/NEWS.rst b/NEWS.rst
index 36a681ecf..72e3581e8 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -21,6 +21,7 @@ Bug Fixes
* Statements in the second argument of `assert` are now executed.
* Fixed the expression of a while loop that contains statements being compiled twice.
* `hy2py` can now handle format strings.... |
sublimelsp__LSP-490 | [bug] CamelCase instead of snace_case
`documentChanges` argument on the left https://github.com/tomv564/LSP/blob/5a472ba6f23d70f6f8f1ebaabb83015c066ce198/plugin/rename.py#L69
should be `document_changes`, like `LspApplyWorkspaceEditCommand` expects:
https://github.com/tomv564/LSP/blob/5a472ba6f23d70f6f8f1ebaabb83015... | [
{
"content": "import sublime_plugin\nfrom .core.registry import client_for_view, LspTextCommand\nfrom .core.protocol import Request\nfrom .core.documents import get_document_position, get_position, is_at_word\ntry:\n from typing import List, Dict, Optional\n assert List and Dict and Optional\nexcept Impor... | [
{
"content": "import sublime_plugin\nfrom .core.registry import client_for_view, LspTextCommand\nfrom .core.protocol import Request\nfrom .core.documents import get_document_position, get_position, is_at_word\ntry:\n from typing import List, Dict, Optional\n assert List and Dict and Optional\nexcept Impor... | diff --git a/plugin/rename.py b/plugin/rename.py
index 54f367172..27c8d6925 100644
--- a/plugin/rename.py
+++ b/plugin/rename.py
@@ -66,7 +66,7 @@ def handle_response(self, response: 'Optional[Dict]') -> None:
if response:
self.view.window().run_command('lsp_apply_workspace_edit',
... |
opensearch-project__opensearch-build-1852 | [RPM M1] Add a new block to call the generation code for RPM
Tasks | Estimate | Status | Notes | Dependencies
-- | -- | -- | -- | --
The generation code should pull the artifacts from the build workflow to a temporary location | 1 | Complete | | Build workflow must provide usable artifacts
The code will call exist... | [
{
"content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport logging\nimport os\nimport shutil\nimport subprocess\n\nfrom manifests.build_manifest import... | [
{
"content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport logging\nimport os\nimport shutil\nimport subprocess\n\nfrom manifests.build_manifest import... | diff --git a/config/opensearch_dashboards.yml b/config/opensearch_dashboards.yml
index 13c9f53150..9f4930ed9b 100644
--- a/config/opensearch_dashboards.yml
+++ b/config/opensearch_dashboards.yml
@@ -2,10 +2,177 @@
# Copyright OpenSearch Contributors
# SPDX-License-Identifier: Apache-2.0
-
# Description:
# Default... |
conda__conda-build-1717 | conda-build tries to expand real files as glob patterns and fails
**Update**: See the second post for a minimal reproducible example.
~~The recipe which can be used to reproduce this issue can be found here: https://github.com/conda-forge/staged-recipes/pull/2260.~~
`glob` returns the following error message ([f... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport base64\nfrom collections import defaultdict\nimport contextlib\nimport fnmatch\nfrom glob import glob\nfrom locale import getpreferredencoding\nimport logging\nimport operator\nimport os\nfrom os.path import dirname, getmti... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport base64\nfrom collections import defaultdict\nimport contextlib\nimport fnmatch\nfrom glob import glob\nfrom locale import getpreferredencoding\nimport logging\nimport operator\nimport os\nfrom os.path import dirname, getmti... | diff --git a/conda_build/utils.py b/conda_build/utils.py
index 5a35efd9b6..45a216fdd9 100644
--- a/conda_build/utils.py
+++ b/conda_build/utils.py
@@ -664,6 +664,8 @@ def expand_globs(path_list, root_dir):
if os.path.isdir(path):
files.extend(os.path.join(root, f).replace(root_dir + os.path.sep, '... |
HypothesisWorks__hypothesis-2889 | Improve handling of self-referential strategies
As mentioned in #2783, the following strategy is not explicitly forbidden but fails with an `AssertionError`:
```python
from hypothesis import strategies as st
SELF_REF = st.recursive(
st.deferred(lambda: SELF_REF | st.booleans()),
lambda s: st.lists(s, m... | [
{
"content": "# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Most of this work is copyright (C) 2013-2021 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full list of people who ma... | [
{
"content": "# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Most of this work is copyright (C) 2013-2021 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full list of people who ma... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..b6133a174c
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,6 @@
+RELEASE_TYPE: patch
+
+This patch fixes :issue:`2794`, where nesting :func:`~hypothesis.strategies.deferred`
+strategies within ... |
cal-itp__benefits-793 | Django 4.0.x breaks enrollment overlay
It seems that our recent update from Django `3.2.10` to `4.0` (also `4.0.1`) broke the payment processor card verification / enrollment overlay. This update has not been deployed to `prod` yet, and this breakage is the reason we've been holding that release.
## Background
Af... | [
{
"content": "\"\"\"\nDjango settings for benefits project.\n\"\"\"\nimport os\nimport benefits.logging\n\n\ndef _filter_empty(ls):\n return [s for s in ls if s]\n\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))... | [
{
"content": "\"\"\"\nDjango settings for benefits project.\n\"\"\"\nimport os\nimport benefits.logging\n\n\ndef _filter_empty(ls):\n return [s for s in ls if s]\n\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))... | diff --git a/benefits/settings.py b/benefits/settings.py
index daa49734c9..71bde513c7 100644
--- a/benefits/settings.py
+++ b/benefits/settings.py
@@ -114,6 +114,10 @@ def _filter_empty(ls):
SECURE_BROWSER_XSS_FILTER = True
+# required so that cross-origin pop-ups (like the enrollment overlay) have access to paren... |
cookiecutter__cookiecutter-839 | Allow for copy_without_render to render output directory name
I find it strange that copy_without_render doesn't render the directory name.
An example use case is wanting to copy a templates directory in your project that contains jinja, the directory is copied however it is placed into a folder like '{{cookiecutter.r... | [
{
"content": "\"\"\"Functions for generating a project from a project template.\"\"\"\nimport fnmatch\nimport json\nimport logging\nimport os\nimport shutil\nfrom collections import OrderedDict\n\nfrom binaryornot.check import is_binary\nfrom jinja2 import FileSystemLoader\nfrom jinja2.exceptions import Templat... | [
{
"content": "\"\"\"Functions for generating a project from a project template.\"\"\"\nimport fnmatch\nimport json\nimport logging\nimport os\nimport shutil\nfrom collections import OrderedDict\n\nfrom binaryornot.check import is_binary\nfrom jinja2 import FileSystemLoader\nfrom jinja2.exceptions import Templat... | diff --git a/cookiecutter/generate.py b/cookiecutter/generate.py
index 4739aec6e..4656a4f0c 100644
--- a/cookiecutter/generate.py
+++ b/cookiecutter/generate.py
@@ -323,6 +323,7 @@ def generate_files(
for copy_dir in copy_dirs:
indir = os.path.normpath(os.path.join(root, copy_dir))
... |
encode__httpx-2999 | ASGI `raw_path` scope key should not include the query string portion.
I ran into a bug where I had written code that assumed `raw_path` as provided by Uvicorn would include the query string, where it turns out not to.
My tests didn't catch this because they were exercising the code using HTTPX ASGI emulation, and i... | [
{
"content": "import typing\n\nimport sniffio\n\nfrom .._models import Request, Response\nfrom .._types import AsyncByteStream\nfrom .base import AsyncBaseTransport\n\nif typing.TYPE_CHECKING: # pragma: no cover\n import asyncio\n\n import trio\n\n Event = typing.Union[asyncio.Event, trio.Event]\n\n\n... | [
{
"content": "import typing\n\nimport sniffio\n\nfrom .._models import Request, Response\nfrom .._types import AsyncByteStream\nfrom .base import AsyncBaseTransport\n\nif typing.TYPE_CHECKING: # pragma: no cover\n import asyncio\n\n import trio\n\n Event = typing.Union[asyncio.Event, trio.Event]\n\n\n... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index cf47d0edf1..e682c63c74 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixed
* Allow URLs where username or password contains unescaped '@'. (#2986)
+* Ensure ASGI `raw_... |
kedro-org__kedro-556 | TypeError when checking dict inputs to wrapped partial
## Description
Can't combine wrapped partial nodes (Kedro's recommendation for partials) and dict inputs, even though dict inputs are kinda important for working with partials...
## Steps to Reproduce
```python
>>> import inspect
>>> from functools import pa... | [
{
"content": "# Copyright 2020 QuantumBlack Visual Analytics Limited\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# T... | [
{
"content": "# Copyright 2020 QuantumBlack Visual Analytics Limited\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# T... | diff --git a/RELEASE.md b/RELEASE.md
index c3bad79143..fb8e32e0a6 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -13,6 +13,7 @@
## Major features and improvements
## Bug fixes and other changes
+* Fixed `TypeError` when converting dict inputs to a node made from a wrapped `partial` function.
* Improved handling of no... |
pytorch__pytorch-3255 | Custom CUDNN_LIB_DIR not added to rpath
Compiling pytorch master version 0.2.0+0989889 with a custom CUDNN_LIB_DIR and CUDNN_INCLUDE_DIR location, with cuda 8.0 and cudnn 7, it seems the compiled binaries do not include the path to CUDNN_LIB_DIR in their rpath, causing an error on import
> ldd _C.so|grep libcudnn
>... | [
{
"content": "from setuptools import setup, Extension, distutils, Command, find_packages\nimport setuptools.command.build_ext\nimport setuptools.command.install\nimport setuptools.command.develop\nimport setuptools.command.build_py\nimport distutils.unixccompiler\nimport distutils.command.build\nimport distutil... | [
{
"content": "from setuptools import setup, Extension, distutils, Command, find_packages\nimport setuptools.command.build_ext\nimport setuptools.command.install\nimport setuptools.command.develop\nimport setuptools.command.build_py\nimport distutils.unixccompiler\nimport distutils.command.build\nimport distutil... | diff --git a/setup.py b/setup.py
index 142a744d885ddc..d3c4b2ca9159eb 100644
--- a/setup.py
+++ b/setup.py
@@ -499,9 +499,10 @@ def check_file(f):
]
if WITH_CUDNN:
main_libraries += ['cudnn']
- # NOTE: this this at the front, in case there's another cuDNN in CUDA path
- include_dirs.insert(0, CUDNN_INC... |
pytorch__ignite-2173 | Improve the example of Timer's usage
## 📚 Documentation
The example in the `Timer's documentation suggest to estimate the processing time for a batch as follows:
```python
timer.attach(
trainer,
start=Events.EPOCH_STARTED,
resume=Events.ITERATION_STARTED,
pause=Events.ITERATION_COMPLETED,
... | [
{
"content": "from time import perf_counter\nfrom typing import Any, Optional\n\nfrom ignite.engine import Engine, Events\n\n__all__ = [\"Timer\"]\n\n\nclass Timer:\n \"\"\" Timer object can be used to measure (average) time between events.\n\n Args:\n average: if True, then when ``.value()`` metho... | [
{
"content": "from time import perf_counter\nfrom typing import Any, Optional\n\nfrom ignite.engine import Engine, Events\n\n__all__ = [\"Timer\"]\n\n\nclass Timer:\n \"\"\" Timer object can be used to measure (average) time between events.\n\n Args:\n average: if True, then when ``.value()`` metho... | diff --git a/ignite/handlers/timing.py b/ignite/handlers/timing.py
index 851a13c61f9d..23467ed57191 100644
--- a/ignite/handlers/timing.py
+++ b/ignite/handlers/timing.py
@@ -70,7 +70,7 @@ class Timer:
>>> trainer = Engine(training_update_function)
>>> timer = Timer(average=True)
>>> timer.at... |
django-json-api__django-rest-framework-json-api-846 | Add support for Python 3.9
As of https://github.com/encode/django-rest-framework/pull/7517 DRF already supports Python 3.9 so we can do to.
| [
{
"content": "#!/usr/bin/env python\nfrom __future__ import print_function\n\nimport os\nimport re\nimport sys\n\nfrom setuptools import setup\n\nneeds_wheel = {'bdist_wheel'}.intersection(sys.argv)\nwheel = ['wheel'] if needs_wheel else []\n\n\ndef read(*paths):\n \"\"\"\n Build a file path from paths an... | [
{
"content": "#!/usr/bin/env python\nfrom __future__ import print_function\n\nimport os\nimport re\nimport sys\n\nfrom setuptools import setup\n\nneeds_wheel = {'bdist_wheel'}.intersection(sys.argv)\nwheel = ['wheel'] if needs_wheel else []\n\n\ndef read(*paths):\n \"\"\"\n Build a file path from paths an... | diff --git a/.travis.yml b/.travis.yml
index 5fa00221..f5ad4aa7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,12 +8,15 @@ matrix:
- env: TOXENV=py36-django22-drfmaster
- env: TOXENV=py37-django22-drfmaster
- env: TOXENV=py38-django22-drfmaster
+ - env: TOXENV=py39-django22-drfmaster
- env: TOX... |
Parsl__parsl-1534 | using walltime for python app results in Recursion Error
I've been trying to use the timeout functionality of parsl via the walltime=X argument. To narrow it down to a minimum example, I took the test in the test suite and modified it to invoke the app many times:
```
import parsl
from parsl.app.errors import AppT... | [
{
"content": "import logging\n\nimport tblib.pickling_support\ntblib.pickling_support.install()\n\nfrom parsl.app.app import AppBase\nfrom parsl.app.errors import wrap_error\nfrom parsl.dataflow.dflow import DataFlowKernelLoader\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef timeout(f, seconds):\n def wr... | [
{
"content": "import logging\n\nimport tblib.pickling_support\ntblib.pickling_support.install()\n\nfrom parsl.app.app import AppBase\nfrom parsl.app.errors import wrap_error\nfrom parsl.dataflow.dflow import DataFlowKernelLoader\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef timeout(f, seconds):\n def wr... | diff --git a/parsl/app/python.py b/parsl/app/python.py
index d79f8136ab..ddec85b4d7 100644
--- a/parsl/app/python.py
+++ b/parsl/app/python.py
@@ -63,8 +63,11 @@ def __call__(self, *args, **kwargs):
walltime = self.kwargs.get('walltime')
if walltime is not None:
- self.func = timeout(self... |
translate__pootle-6524 | Changing source (with xliff) can create submissions with no submitter
# Steps to reproduce:
- change source in file of existing unit
- run update_stores
# Results
- submissions have no submitter
- stuff breaks
## Expected result:
- nothing breaks
this only happens in xliff afaict - as i dont think... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nfrom hashlib i... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nfrom hashlib i... | diff --git a/pootle/apps/pootle_store/receivers.py b/pootle/apps/pootle_store/receivers.py
index 7898ed61d5a..0b624dbc8ef 100644
--- a/pootle/apps/pootle_store/receivers.py
+++ b/pootle/apps/pootle_store/receivers.py
@@ -98,17 +98,6 @@ def handle_unit_pre_save(**kwargs):
unit.setid(unitid.getid())
-@receiv... |
getnikola__nikola-3668 | Babel 12.2.x test failures due to no-breaking spaces and slightly different output
<!--
Before creating an issue:
* make sure you are using an up-to-date version of Nikola
* search for existing issues that might be related
Make sure to:
* provide information about your environment (below)
* include all the outp... | [
{
"content": "#!/usr/bin/env python\n\nimport os\nimport sys\nimport shutil\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.build_py import build_py\n\n\nwith open('requirements.txt', 'r') as fh:\n dependencies = [l.strip().split(\"#\")[0]... | [
{
"content": "#!/usr/bin/env python\n\nimport os\nimport sys\nimport shutil\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.build_py import build_py\n\n\nwith open('requirements.txt', 'r') as fh:\n dependencies = [l.strip().split(\"#\")[0]... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 486f153c9d..7476c20776 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,13 +15,13 @@ jobs:
strategy:
fail-fast: false
matrix:
- python: ['3.7', '3.8', '3.9', '3.10']
+ python: ['3.7', '3.8'... |
microsoft__Qcodes-1115 | SR86x driver does not allow amplitude set to 0
### Steps to reproduce
1. try runnning `lockin.amplitude(0)`
### Expected behaviour
Lockin amplitude should be set to 0
### Actual behaviour
Validation error is thrown, driver has a minimum amplitude of 10e-9V
| [
{
"content": "import numpy as np\nimport time\nimport logging\nfrom typing import Optional, Sequence, Dict\n\nfrom qcodes import VisaInstrument\nfrom qcodes.instrument.channel import InstrumentChannel\nfrom qcodes.utils.validators import Numbers, Ints, Enum\nfrom qcodes.instrument.parameter import ArrayParamete... | [
{
"content": "import numpy as np\nimport time\nimport logging\nfrom typing import Optional, Sequence, Dict\n\nfrom qcodes import VisaInstrument\nfrom qcodes.instrument.channel import InstrumentChannel\nfrom qcodes.utils.validators import Numbers, Ints, Enum\nfrom qcodes.instrument.parameter import ArrayParamete... | diff --git a/qcodes/instrument_drivers/stanford_research/SR86x.py b/qcodes/instrument_drivers/stanford_research/SR86x.py
index e3dab3547e7..766c245c6fd 100644
--- a/qcodes/instrument_drivers/stanford_research/SR86x.py
+++ b/qcodes/instrument_drivers/stanford_research/SR86x.py
@@ -338,7 +338,7 @@ def __init__(self, name... |
CTFd__CTFd-1520 | SQL "Lost connection to MySQL server during query"
<!--
If this is a bug report please fill out the template below.
If this is a feature request please describe the behavior that you'd like to see.
-->
I have encountered the same bug as in #1395 and #467, which were closed because of lack of reproducibility, ho... | [
{
"content": "import configparser\nimport os\nfrom distutils.util import strtobool\n\n\ndef process_boolean_str(value):\n if type(value) is bool:\n return value\n\n if value is None:\n return False\n\n if value == \"\":\n return None\n\n return bool(strtobool(value))\n\n\ndef em... | [
{
"content": "import configparser\nimport os\nfrom distutils.util import strtobool\n\n\ndef process_boolean_str(value):\n if type(value) is bool:\n return value\n\n if value is None:\n return False\n\n if value == \"\":\n return None\n\n return bool(strtobool(value))\n\n\ndef em... | diff --git a/CTFd/config.ini b/CTFd/config.ini
index 7398219dd..1df2f9977 100644
--- a/CTFd/config.ini
+++ b/CTFd/config.ini
@@ -41,6 +41,7 @@ UPDATE_CHECK =
APPLICATION_ROOT =
SERVER_SENT_EVENTS =
SQLALCHEMY_MAX_OVERFLOW =
+SQLALCHEMY_POOL_PRE_PING =
[oauth]
OAUTH_CLIENT_ID =
diff --git a/CTFd/config.py b/CTFd/... |
microsoft__Qcodes-4886 | qcodes.plots.pyqtgraph.QtPlot.update_plot() not compatible with pyqtgraph==0.13.1
###
I'm one of the developers of quantify and our package heavily depends on qcodes. The latest pyqtgraph release (0.13.1) brought a few changes that we needed to address and unfortunately one issue actually stems from within qcodes.
... | [
{
"content": "\"\"\"\nLive plotting using pyqtgraph\n\"\"\"\nimport logging\nimport warnings\nfrom collections import deque, namedtuple\nfrom typing import Deque, Dict, List, Optional, Tuple, Union, cast\n\nimport numpy as np\nimport pyqtgraph as pg\nimport pyqtgraph.multiprocess as pgmp\nfrom pyqtgraph import ... | [
{
"content": "\"\"\"\nLive plotting using pyqtgraph\n\"\"\"\nimport logging\nimport warnings\nfrom collections import deque, namedtuple\nfrom typing import Deque, Dict, List, Optional, Tuple, Union, cast\n\nimport numpy as np\nimport pyqtgraph as pg\nimport pyqtgraph.multiprocess as pgmp\nfrom pyqtgraph import ... | diff --git a/docs/changes/newsfragments/4886.improved b/docs/changes/newsfragments/4886.improved
new file mode 100644
index 00000000000..a1d650f6ebc
--- /dev/null
+++ b/docs/changes/newsfragments/4886.improved
@@ -0,0 +1 @@
+Update the pyqtgraph plot backend for upstream changes in pyqtgraph.
diff --git a/qcodes/plots/... |
openstates__openstates-scrapers-3362 | OH-scrape failing since at least 2020-05-25
OH-scrape has failed 5 times since 2020-05-25
Logs:
```
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openstates-scrapers-vRcYrsYN-py3.7/bin/os-update", line 10, in <module>
sys.exit(main())
File "/root/.cache/pypoetry/virtualenvs/opensta... | [
{
"content": "import os\nimport datetime\n\nfrom openstates.scrape import Scraper, Bill, VoteEvent\nfrom openstates.scrape.base import ScrapeError\n\nimport xlrd\nimport scrapelib\nimport lxml.html\nimport pytz\nimport re\n\n\nclass OHBillScraper(Scraper):\n _tz = pytz.timezone(\"US/Eastern\")\n\n # Vote ... | [
{
"content": "import os\nimport datetime\n\nfrom openstates.scrape import Scraper, Bill, VoteEvent\nfrom openstates.scrape.base import ScrapeError\n\nimport xlrd\nimport scrapelib\nimport lxml.html\nimport pytz\nimport re\n\n\nclass OHBillScraper(Scraper):\n _tz = pytz.timezone(\"US/Eastern\")\n\n # Vote ... | diff --git a/scrapers/oh/bills.py b/scrapers/oh/bills.py
index b0109d8e44..051088816c 100644
--- a/scrapers/oh/bills.py
+++ b/scrapers/oh/bills.py
@@ -176,6 +176,13 @@ def scrape(self, session=None, chambers=None):
)
)
data = self.get(bill_api_url).json()
+ ... |
encode__starlette-1397 | JSONResponse Wrong Content-Length Value
### Describe the bug
`JSONResponse` populates the response header with a **non-zero** `Content-Length` whenever the response object is instantiated **without any content**.
### Checklist
- [X] The bug is reproducible against the latest release and/or `master`.
- [X] The... | [
{
"content": "import http.cookies\nimport json\nimport os\nimport stat\nimport sys\nimport typing\nfrom email.utils import formatdate\nfrom functools import partial\nfrom mimetypes import guess_type as mimetypes_guess_type\nfrom urllib.parse import quote\n\nimport anyio\n\nfrom starlette._compat import md5_hexd... | [
{
"content": "import http.cookies\nimport json\nimport os\nimport stat\nimport sys\nimport typing\nfrom email.utils import formatdate\nfrom functools import partial\nfrom mimetypes import guess_type as mimetypes_guess_type\nfrom urllib.parse import quote\n\nimport anyio\n\nfrom starlette._compat import md5_hexd... | diff --git a/starlette/responses.py b/starlette/responses.py
index da765cfa9..26d730540 100644
--- a/starlette/responses.py
+++ b/starlette/responses.py
@@ -71,7 +71,11 @@ def init_headers(self, headers: typing.Mapping[str, str] = None) -> None:
populate_content_type = b"content-type" not in keys
... |
pre-commit__pre-commit-1480 | random.shuffle's random= argument got deprecated
Related issue: [bpo-40465](https://bugs.python.org/issue40465).
```
black..................................................................../home/isidentical/.venv/lib/python3.10/site-packages/pre_commit/languages/helpers.py:95: DeprecationWarning: The *random* parame... | [
{
"content": "import multiprocessing\nimport os\nimport random\nfrom typing import Any\nfrom typing import List\nfrom typing import Optional\nfrom typing import overload\nfrom typing import Sequence\nfrom typing import Tuple\nfrom typing import TYPE_CHECKING\n\nimport pre_commit.constants as C\nfrom pre_commit.... | [
{
"content": "import multiprocessing\nimport os\nimport random\nfrom typing import Any\nfrom typing import List\nfrom typing import Optional\nfrom typing import overload\nfrom typing import Sequence\nfrom typing import Tuple\nfrom typing import TYPE_CHECKING\n\nimport pre_commit.constants as C\nfrom pre_commit.... | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 9b385b4c1..c21843e10 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -10,7 +10,7 @@ resources:
type: github
endpoint: github
name: asottile/azure-pipeline-templates
- ref: refs/tags/v1.0.0
+ ref: refs/tags/v2.0.0
... |
ckan__ckan-7509 | Mailer doesn't quote names in To/From headers
## CKAN version
2.9.8, though it doesn't appear to have changed on 2.10
## Describe the bug
The username and site title are included in the To/From headers respectively, but they aren't quoted. When one contains, for example, commas, it's displayed as several addresses.
... | [
{
"content": "# encoding: utf-8\nfrom __future__ import annotations\n\nimport codecs\nimport os\nimport smtplib\nimport socket\nimport logging\nimport mimetypes\nfrom time import time\nfrom typing import Any, Iterable, Optional, Tuple, Union, IO, cast\n\nfrom email.message import EmailMessage\nfrom email import... | [
{
"content": "# encoding: utf-8\nfrom __future__ import annotations\n\nimport codecs\nimport os\nimport smtplib\nimport socket\nimport logging\nimport mimetypes\nfrom time import time\nfrom typing import Any, Iterable, Optional, Tuple, Union, IO, cast\n\nfrom email.message import EmailMessage\nfrom email import... | diff --git a/changes/7508.bugfix b/changes/7508.bugfix
new file mode 100644
index 00000000000..621cc07f890
--- /dev/null
+++ b/changes/7508.bugfix
@@ -0,0 +1 @@
+Names are now quoted in From and To addresses in emails, meaning that site titles with commas no longer break email clients.
diff --git a/ckan/lib/mailer.py b... |
autogluon__autogluon-2915 | Update scikit-learn-intelex version
- [ ] Check if scikit-learn-intelex can be upgraded.
| [
{
"content": "#!/usr/bin/env python\n###########################\n# This code block is a HACK (!), but is necessary to avoid code duplication. Do NOT alter these lines.\nimport os\nfrom setuptools import setup\nimport importlib.util\nfilepath = os.path.abspath(os.path.dirname(__file__))\nfilepath_import = os.pa... | [
{
"content": "#!/usr/bin/env python\n###########################\n# This code block is a HACK (!), but is necessary to avoid code duplication. Do NOT alter these lines.\nimport os\nfrom setuptools import setup\nimport importlib.util\nfilepath = os.path.abspath(os.path.dirname(__file__))\nfilepath_import = os.pa... | diff --git a/tabular/setup.py b/tabular/setup.py
index e4370d40063a..88fda41a14fb 100644
--- a/tabular/setup.py
+++ b/tabular/setup.py
@@ -50,7 +50,8 @@
f'{ag.PACKAGE_NAME}.core[all]=={version}',
],
'skex': [
- 'scikit-learn-intelex>=2021.6,<2021.8',
+ # Note: 2021.7 released on Sep 202... |
conda__conda-4370 | Jupyter install on 3.6 env crashes conda with infinite recursion
This is a fairly fresh py3.6 env. Error trace follows (I snipped the hundreds of redundant frames in the middle of the recursion for readability, all non-redundant info kept):
```
(py36) denali[~]> conda install jupyter
Fetching package metadata ....... | [
{
"content": "from __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom itertools import chain\nimport logging\nimport re\n\nfrom .base.constants import DEFAULTS_CHANNEL_NAME, MAX_CHANNEL_PRIORITY\nfrom .base.context import context\nfrom .common.compat import iteritems, iterkeys... | [
{
"content": "from __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom itertools import chain\nimport logging\nimport re\n\nfrom .base.constants import DEFAULTS_CHANNEL_NAME, MAX_CHANNEL_PRIORITY\nfrom .base.context import context\nfrom .common.compat import iteritems, iterkeys... | diff --git a/conda/resolve.py b/conda/resolve.py
index 83128a1b1b2..6fae0288fde 100644
--- a/conda/resolve.py
+++ b/conda/resolve.py
@@ -263,7 +263,10 @@ def invalid_chains(self, spec, filter):
A generator of tuples, empty if the MatchSpec is valid.
"""
def chains_(spec, names):
- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.