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 ⌀ |
|---|---|---|---|---|
huggingface__accelerate-2730 | Logging does not respect the "%(lineno)s" and "%(filename)s".
### System Info
```Shell
Copy-and-paste the text below in your GitHub issue
- `Accelerate` version: 0.24.1
- Platform: Linux-6.2.0-35-generic-x86_64-with-glibc2.35
- Python version: 3.11.5
- Numpy version: 1.26.1
- PyTorch version (GPU?): 2.1.0+cu121... | [
{
"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/accelerate/logging.py b/src/accelerate/logging.py
index ebb8c1eb830..1615bc313b7 100644
--- a/src/accelerate/logging.py
+++ b/src/accelerate/logging.py
@@ -54,6 +54,8 @@ def log(self, level, msg, *args, **kwargs):
)
main_process_only = kwargs.pop("main_process_only", True)
... |
sublimelsp__LSP-631 | Missing codeActionKind entry prevents RLS init
* OS and language server
macOS 10.14.6, rls 1.35.0 (49efc06 2019-04-06)
* How you installed LSP (Package Control or from git?)
LSP installed from package control today
* Minimal reproduction steps
Install current stable Rust RLS, latest LSP release, enable LSP in Rust... | [
{
"content": "from .types import ClientConfig, ClientStates, Settings\nfrom .protocol import Request\nfrom .transports import start_tcp_transport\nfrom .rpc import Client, attach_stdio_client\nfrom .process import start_server\nfrom .url import filename_to_uri\nfrom .logging import debug\nimport os\nfrom .proto... | [
{
"content": "from .types import ClientConfig, ClientStates, Settings\nfrom .protocol import Request\nfrom .transports import start_tcp_transport\nfrom .rpc import Client, attach_stdio_client\nfrom .process import start_server\nfrom .url import filename_to_uri\nfrom .logging import debug\nimport os\nfrom .proto... | diff --git a/plugin/core/sessions.py b/plugin/core/sessions.py
index 5f2c471cf..576ff8eb5 100644
--- a/plugin/core/sessions.py
+++ b/plugin/core/sessions.py
@@ -136,7 +136,11 @@ def get_initialize_params(project_path: str, config: ClientConfig):
"rangeFormatting": {},
"definition": {},... |
conan-io__conan-3087 | package_id() regression bug in conan 1.4.x?
Consider the following `conanfile.py`:
```python
from conans import ConanFile
class TestConan(ConanFile):
name = "Test"
version = "0.0.1"
settings = "os", "arch"
def package_id(self):
self.info.include_build_settings()
self.info.se... | [
{
"content": "from conans.client.output import Color\nfrom conans.model.ref import PackageReference\nfrom conans.model.workspace import WORKSPACE_FILE\n\n\ndef print_graph(deps_graph, out):\n all_nodes = []\n ids = set()\n for node in sorted(n for n in deps_graph.nodes if n.conan_ref):\n package... | [
{
"content": "from conans.client.output import Color\nfrom conans.model.ref import PackageReference\nfrom conans.model.workspace import WORKSPACE_FILE\n\n\ndef print_graph(deps_graph, out):\n all_nodes = []\n ids = set()\n for node in sorted(n for n in deps_graph.nodes if n.conan_ref):\n package... | diff --git a/conans/client/graph/printer.py b/conans/client/graph/printer.py
index a93ee905a05..f73528006d0 100644
--- a/conans/client/graph/printer.py
+++ b/conans/client/graph/printer.py
@@ -7,7 +7,7 @@ def print_graph(deps_graph, out):
all_nodes = []
ids = set()
for node in sorted(n for n in deps_grap... |
scipy__scipy-5525 | Documentation for scipy.integrate.ode incorrectly labels set_jac_params
Quick one - Under Parameters on:
http://docs.scipy.org/doc/scipy-0.16.1/reference/generated/scipy.integrate.ode.html#scipy.integrate.ode
Parameters:
f : callable f(t, y, _f_args) [...] f_args is set by calling set_f_params(_args)
jac : callable ... | [
{
"content": "# Authors: Pearu Peterson, Pauli Virtanen, John Travers\n\"\"\"\nFirst-order ODE integrators.\n\nUser-friendly interface to various numerical integrators for solving a\nsystem of first order ODEs with prescribed initial conditions::\n\n d y(t)[i]\n --------- = f(t,y(t))[i],\n d t\n\n ... | [
{
"content": "# Authors: Pearu Peterson, Pauli Virtanen, John Travers\n\"\"\"\nFirst-order ODE integrators.\n\nUser-friendly interface to various numerical integrators for solving a\nsystem of first order ODEs with prescribed initial conditions::\n\n d y(t)[i]\n --------- = f(t,y(t))[i],\n d t\n\n ... | diff --git a/scipy/integrate/_ode.py b/scipy/integrate/_ode.py
index 689545454e5e..de1064048085 100644
--- a/scipy/integrate/_ode.py
+++ b/scipy/integrate/_ode.py
@@ -119,7 +119,7 @@ class ode(object):
`f` should return a scalar, array or list (not a tuple).
jac : callable ``jac(t, y, *jac_args)``, option... |
agconti__cookiecutter-django-rest-192 | Add `created_on_demand` versatile image field to True for local development
| [
{
"content": "import os\nfrom .common import Common\nfrom configurations import values\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\nclass Local(Common):\n\n DEBUG = values.BooleanValue(True)\n for config in Common.TEMPLATES:\n config['OPTIONS']['debug'] = DEBUG\n\n... | [
{
"content": "import os\nfrom .common import Common\nfrom configurations import values\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\nclass Local(Common):\n\n DEBUG = values.BooleanValue(True)\n for config in Common.TEMPLATES:\n config['OPTIONS']['debug'] = DEBUG\n\n... | diff --git a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/local.py b/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/local.py
index ef78e0243..481f35fce 100755
--- a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/local.py
+++ b/{{cookiecutte... |
mlcommons__GaNDLF-153 | Extend loss weight calculation for classification
**Is your feature request related to a problem? Please describe.**
Currently, classification problems don't use weight calculations for specific classes.
**Describe the solution you'd like**
Similar to segmentation, the weights should be dynamic.
**Describe alt... | [
{
"content": "import torch\nimport sys\nfrom torch.nn import MSELoss, CrossEntropyLoss, L1Loss\nfrom .utils import one_hot\n\n\n# Dice scores and dice losses\ndef dice(inp, target):\n smooth = 1e-7\n iflat = inp.contiguous().view(-1)\n tflat = target.contiguous().view(-1)\n intersection = (iflat * t... | [
{
"content": "import torch\nimport sys\nfrom torch.nn import MSELoss, CrossEntropyLoss, L1Loss\nfrom .utils import one_hot\n\n\n# Dice scores and dice losses\ndef dice(inp, target):\n smooth = 1e-7\n iflat = inp.contiguous().view(-1)\n tflat = target.contiguous().view(-1)\n intersection = (iflat * t... | diff --git a/GANDLF/losses.py b/GANDLF/losses.py
index 2e6318fe3..45c999060 100755
--- a/GANDLF/losses.py
+++ b/GANDLF/losses.py
@@ -25,8 +25,8 @@ def cel(out, target, params):
# more examples you have in the training data, the smaller the weight you have in the loss
class_weights = 1.0 / class_weight... |
openshift__openshift-ansible-8977 | installation of Logging fails on "Gather OpenShift Logging Facts"
#### Description
On a developer setup, using Fedora 25 as the OS and executing `cd ${GOPATH}/src/github.com/openshift/origin/_output/local/bin/linux/amd64 && sudo ./openshift start` for an OpenShift cluster, the Ansible Playbook for Logging fails duri... | [
{
"content": "'''\n---\nmodule: openshift_logging_facts\nversion_added: \"\"\nshort_description: Gather facts about the OpenShift logging stack\ndescription:\n - Determine the current facts about the OpenShift logging stack (e.g. cluster size)\noptions:\nauthor: Red Hat, Inc\n'''\n\nimport copy\nimport json\n\... | [
{
"content": "'''\n---\nmodule: openshift_logging_facts\nversion_added: \"\"\nshort_description: Gather facts about the OpenShift logging stack\ndescription:\n - Determine the current facts about the OpenShift logging stack (e.g. cluster size)\noptions:\nauthor: Red Hat, Inc\n'''\n\nimport copy\nimport json\n\... | diff --git a/roles/openshift_logging/library/openshift_logging_facts.py b/roles/openshift_logging/library/openshift_logging_facts.py
index b535c800cb2..b3c434602b4 100644
--- a/roles/openshift_logging/library/openshift_logging_facts.py
+++ b/roles/openshift_logging/library/openshift_logging_facts.py
@@ -76,6 +76,7 @@ d... |
gwastro__pycbc-4699 | Can't build PyCBC wheel with numpy 2.0.0rc1
I am unable to build PyCBC in an environment with numpy 2.0.0rc1:
```console
$ pip list installed
Package Version
------------------ --------
build 1.2.1
colorama 0.4.6
Cython 3.0.10
importlib_metadata 7.1.0
numpy ... | [
{
"content": "#!/usr/bin/env python\n# Copyright (C) 2012 Alex Nitz, Duncan Brown, Andrew Miller, Josh Willis\n#\n# This program is free software; you can redistribute it and/or modify it\n# under the terms of the GNU General Public License as published by the\n# Free Software Foundation; either version 2 of th... | [
{
"content": "#!/usr/bin/env python\n# Copyright (C) 2012 Alex Nitz, Duncan Brown, Andrew Miller, Josh Willis\n#\n# This program is free software; you can redistribute it and/or modify it\n# under the terms of the GNU General Public License as published by the\n# Free Software Foundation; either version 2 of th... | diff --git a/setup.py b/setup.py
index 7db0cf229a3..20e979ba8e5 100755
--- a/setup.py
+++ b/setup.py
@@ -72,10 +72,9 @@ def find_paths(dirname):
class cbuild_ext(_build_ext):
def run(self):
- import pkg_resources
-
# At this point we can be sure pip has already installed numpy
- numpy_inc... |
apluslms__a-plus-1362 | API: Add closing_time and opening_time to modules
Right now, there is no way to get the "closing_time" and "opening_time" properties for modules with any api call.
It would be useful to have it at least in the `GET /courses/<course_id>/exercises/` endpoint
| [
{
"content": "from typing import Any, Dict, List, Union\n\nfrom rest_framework import filters, viewsets, status, mixins\nfrom rest_framework.decorators import action\nfrom rest_framework.exceptions import ParseError\nfrom rest_framework.response import Response\nfrom rest_framework.settings import api_settings\... | [
{
"content": "from typing import Any, Dict, List, Union\n\nfrom rest_framework import filters, viewsets, status, mixins\nfrom rest_framework.decorators import action\nfrom rest_framework.exceptions import ParseError\nfrom rest_framework.response import Response\nfrom rest_framework.settings import api_settings\... | diff --git a/course/api/views.py b/course/api/views.py
index ab420c7f3..5daf0a619 100644
--- a/course/api/views.py
+++ b/course/api/views.py
@@ -245,6 +245,9 @@ def __module_to_dict(self, module: ModuleContent, **kwargs) -> Dict[str, Any]:
module.opening_time,
module.closing_time,
... |
python-poetry__poetry-1754 | Fix simple typo: specificed -> specified
- [x] I am on the [latest](https://github.com/python-poetry/poetry/releases/latest) Poetry version.
- [x] I have searched the [issues](https://github.com/python-poetry/poetry/issues) of this repo and believe that this is not a duplicate.
- [x] If an exception occurs when executi... | [
{
"content": "# -*- coding: utf-8 -*-\nimport re\nimport shutil\nimport tempfile\n\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom typing import Set\nfrom typing import Union\n\nfrom clikit.api.io.flags import VERY_VERBOSE\n\nfrom poetry.utils._compat import Path\nfrom poetry.u... | [
{
"content": "# -*- coding: utf-8 -*-\nimport re\nimport shutil\nimport tempfile\n\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom typing import Set\nfrom typing import Union\n\nfrom clikit.api.io.flags import VERY_VERBOSE\n\nfrom poetry.utils._compat import Path\nfrom poetry.u... | diff --git a/poetry/masonry/builders/builder.py b/poetry/masonry/builders/builder.py
index 97f9bb70fd7..40e8c771e81 100644
--- a/poetry/masonry/builders/builder.py
+++ b/poetry/masonry/builders/builder.py
@@ -162,7 +162,7 @@ def find_files_to_add(self, exclude_build=True): # type: (bool) -> list
)
... |
cupy__cupy-4492 | Failing fusion tests
### tests/cupy_tests/core_tests/fusion_tests/test_misc.py
```
python -m pytest tests/cupy_tests/core_tests/fusion_tests/test_misc.py -k test_various_shape
```
```
___________________________________________________________________________________________________________________ TestFusionT... | [
{
"content": "import copy\nimport hashlib\nimport math\nimport os\nimport re\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\n\nfrom cupy.cuda import device\nfrom cupy.cuda import function\nfrom cupy_backends.cuda.api import driver\nfrom cupy_backends.cuda.api import runtime\nfrom cupy_backends.c... | [
{
"content": "import copy\nimport hashlib\nimport math\nimport os\nimport re\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\n\nfrom cupy.cuda import device\nfrom cupy.cuda import function\nfrom cupy_backends.cuda.api import driver\nfrom cupy_backends.cuda.api import runtime\nfrom cupy_backends.c... | diff --git a/cupy/core/_fusion_kernel.pyx b/cupy/core/_fusion_kernel.pyx
index 566ee029d7e..89719cb03c3 100644
--- a/cupy/core/_fusion_kernel.pyx
+++ b/cupy/core/_fusion_kernel.pyx
@@ -49,12 +49,8 @@ def _cuda_compile(preamble, name, cuda_params, cuda_body, use_grid_sync):
# by uncommenting the following line.
... |
openshift__openshift-ansible-8978 | installation of Logging fails on "Gather OpenShift Logging Facts"
#### Description
On a developer setup, using Fedora 25 as the OS and executing `cd ${GOPATH}/src/github.com/openshift/origin/_output/local/bin/linux/amd64 && sudo ./openshift start` for an OpenShift cluster, the Ansible Playbook for Logging fails duri... | [
{
"content": "'''\n---\nmodule: openshift_logging_facts\nversion_added: \"\"\nshort_description: Gather facts about the OpenShift logging stack\ndescription:\n - Determine the current facts about the OpenShift logging stack (e.g. cluster size)\noptions:\nauthor: Red Hat, Inc\n'''\n\nimport copy\nimport json\n\... | [
{
"content": "'''\n---\nmodule: openshift_logging_facts\nversion_added: \"\"\nshort_description: Gather facts about the OpenShift logging stack\ndescription:\n - Determine the current facts about the OpenShift logging stack (e.g. cluster size)\noptions:\nauthor: Red Hat, Inc\n'''\n\nimport copy\nimport json\n\... | diff --git a/roles/openshift_logging/library/openshift_logging_facts.py b/roles/openshift_logging/library/openshift_logging_facts.py
index 98bd5f64d5b..dbc23c8b18c 100644
--- a/roles/openshift_logging/library/openshift_logging_facts.py
+++ b/roles/openshift_logging/library/openshift_logging_facts.py
@@ -75,6 +75,7 @@ d... |
DataBiosphere__toil-2888 | Python 3.6 no longer available via ppa:jonathonf/python-3.6
Recently announced: https://launchpad.net/~jonathonf
I think we can use `ppa:deadsnakes/ppa` instead and things should work fine again.
┆Issue is synchronized with this [Jira Task](https://ucsc-cgl.atlassian.net/browse/TOIL-470)
┆Issue Number: TOIL-470
| [
{
"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 d9becc0250..f70246589e 100644
--- a/docker/Dockerfile.py
+++ b/docker/Dockerfile.py
@@ -77,7 +77,7 @@ def heredoc(s):
> /etc/apt/sources.list.d/nodesource.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv 68576280
- RUN ad... |
pydantic__pydantic-926 | Behaviour of keep_untouched is unclear in docs
# Bug
* Python version `import sys; print(sys.version)`: 3.7.3
* Pydantic version `import pydantic; print(pydantic.VERSION)`: 0.32.2
The `keep_untouched` attribute on a model's Config affects the behaviour for properties' **values**, not their **type annotations**. ... | [
{
"content": "import re\nimport sys\nfrom collections import OrderedDict\nfrom datetime import date, datetime, time, timedelta\nfrom decimal import Decimal, DecimalException\nfrom enum import Enum, IntEnum\nfrom ipaddress import IPv4Address, IPv4Interface, IPv4Network, IPv6Address, IPv6Interface, IPv6Network\nf... | [
{
"content": "import re\nimport sys\nfrom collections import OrderedDict\nfrom datetime import date, datetime, time, timedelta\nfrom decimal import Decimal, DecimalException\nfrom enum import Enum, IntEnum\nfrom ipaddress import IPv4Address, IPv4Interface, IPv4Network, IPv6Address, IPv6Interface, IPv6Network\nf... | diff --git a/changes/926-retnikt.md b/changes/926-retnikt.md
new file mode 100644
index 00000000000..2152ea695ba
--- /dev/null
+++ b/changes/926-retnikt.md
@@ -0,0 +1 @@
+Clarify usage of `remove_untouched`, improve error message for types with no validators.
diff --git a/docs/usage/model_config.md b/docs/usage/model_c... |
jazzband__django-axes-207 | get() returned more than one User -- it returned 2! (Multiple None user names)
Attempting to use axes with combination user and ip has resulted in the entire site being unreachable, every single page simply showing the plain message: `get() returned more than one User -- it returned 2!`
This is before a user has act... | [
{
"content": "import json\nimport logging\nfrom socket import inet_pton, AF_INET6, error\n\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth import logout\nfrom django.http import HttpResponse\nfrom django.http import HttpResponseRedirect\nfrom django.shortcuts import render\nfrom django... | [
{
"content": "import json\nimport logging\nfrom socket import inet_pton, AF_INET6, error\n\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth import logout\nfrom django.http import HttpResponse\nfrom django.http import HttpResponseRedirect\nfrom django.shortcuts import render\nfrom django... | diff --git a/axes/decorators.py b/axes/decorators.py
index 1b6005fb..6534948d 100644
--- a/axes/decorators.py
+++ b/axes/decorators.py
@@ -94,6 +94,12 @@ def is_user_lockable(request):
If so, then return the value to see if this user is special
and doesn't get their account locked out
"""
+ if hasattr... |
zestedesavoir__zds-site-1997 | Erreur 500 lors de consultation de l'historique d'un article
J'ai une erreur 500 sur la consultation de l'historique des versions d'un article en redaction. Arius a eu le problème aussi.
Le bug semble être arrivé avec la 1.4
| [
{
"content": "# coding: utf-8\n\nfrom datetime import datetime\nfrom operator import attrgetter\ntry:\n import ujson as json_reader\nexcept ImportError:\n try:\n import simplejson as json_reader\n except ImportError:\n import json as json_reader\nimport json\nimport json as json_writer\ni... | [
{
"content": "# coding: utf-8\n\nfrom datetime import datetime\nfrom operator import attrgetter\ntry:\n import ujson as json_reader\nexcept ImportError:\n try:\n import simplejson as json_reader\n except ImportError:\n import json as json_reader\nimport json\nimport json as json_writer\ni... | diff --git a/zds/article/views.py b/zds/article/views.py
index ae53405c11..a5e3148c38 100644
--- a/zds/article/views.py
+++ b/zds/article/views.py
@@ -949,8 +949,10 @@ def history(request, article_pk, article_slug):
logs = repo.head.reference.log()
logs = sorted(logs, key=attrgetter('time'), reverse=True)
+... |
joke2k__faker-466 | Error in running faker tests
Hi,
I use ```Python 3.5.2```.
I downloaded v0.7.3 archive from GH.
When I ran ``` python3 setup.py test```, I get a Fail; when I run ```python3 -m unittest -v faker.tests```, I get 'OK'
Did I do something the wrong way, since ipaddress is required for python 2.x or python 3.2?
... | [
{
"content": "#!/usr/bin/env python\n# coding=utf-8\n\nimport os\nimport io\n\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\nREADME = io.open(os.path.join(here, 'README.rst'), encoding=\"utf8\").read()\n\n\nversion = '0.7.7'\n\n# this module can be zip-safe if... | [
{
"content": "#!/usr/bin/env python\n# coding=utf-8\n\nimport os\nimport io\n\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\nREADME = io.open(os.path.join(here, 'README.rst'), encoding=\"utf8\").read()\n\n\nversion = '0.7.7'\n\n# this module can be zip-safe if... | diff --git a/.travis.yml b/.travis.yml
index de577472cc..5b112f5dba 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,7 +12,7 @@ python:
- "pypy3"
install:
- pip install -e .
- - pip install -r faker/tests/requirements.txt
+ - pip install -r tests/requirements.txt
- pip install coveralls
script:
- cover... |
google__openhtf-438 | Station API client throwing exceptions.
This seems to happen on every test run...
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in **bootstrap_inner
self.run()
File "openhtf/output/web_gui/__init**.py", line 117, in run
self._test.wait_for_update(timeout_s=self._wait_... | [
{
"content": "# Copyright 2016 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 re... | [
{
"content": "# Copyright 2016 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 re... | diff --git a/openhtf/core/station_api.py b/openhtf/core/station_api.py
index 6a157fa65..1a19d451b 100644
--- a/openhtf/core/station_api.py
+++ b/openhtf/core/station_api.py
@@ -633,7 +633,7 @@ def wait_for_plug(self, test_id, plug_type_name, current_state, timeout_s):
plug_type_name, current_state, timeout_s)
... |
techmatters__terraso-backend-241 | Update structlog configuration to fix structlog.threadlocal deprecation warning
## Description
The new version of structlog deprecates structlog.threadlocal and generates this warning
```
terraso_backend/config/settings.py:183
/app/terraso_backend/config/settings.py:183: DeprecationWarning: `structlog.threadloc... | [
{
"content": "import os\n\nimport django\nimport structlog\nfrom dj_database_url import parse as parse_db_url\nfrom django.utils.encoding import force_str\nfrom prettyconf import config\n\n# Monkey patching force_text function to make the application work with Django\n# 4.0. This is necessary until graphene-dja... | [
{
"content": "import os\n\nimport django\nimport structlog\nfrom dj_database_url import parse as parse_db_url\nfrom django.utils.encoding import force_str\nfrom prettyconf import config\n\n# Monkey patching force_text function to make the application work with Django\n# 4.0. This is necessary until graphene-dja... | diff --git a/terraso_backend/config/settings.py b/terraso_backend/config/settings.py
index bef1cbeed..ca077184b 100644
--- a/terraso_backend/config/settings.py
+++ b/terraso_backend/config/settings.py
@@ -182,7 +182,6 @@
structlog.processors.UnicodeDecoder(),
structlog.stdlib.ProcessorFormatter.wrap_f... |
uclapi__uclapi-140 | [Documentation] Docs link is Absolute, not Relative
The documentation link always goes to `https://uclapi.com/docs`, even if running in, for example, staging. Just linking to `/docs` would be adequate to fix this.
| [
{
"content": "import os\nimport requests\n\nfrom lxml import etree\n\nfrom common.decorators import uclapi_protected_endpoint\nfrom common.helpers import PrettyJsonResponse as JsonResponse\n\nfrom rest_framework.decorators import api_view\n\n\n@api_view(['GET'])\n@uclapi_protected_endpoint()\ndef get_pc_availab... | [
{
"content": "import os\nimport requests\n\nfrom lxml import etree\n\nfrom common.decorators import uclapi_protected_endpoint\nfrom common.helpers import PrettyJsonResponse as JsonResponse\n\nfrom rest_framework.decorators import api_view\n\n\n@api_view(['GET'])\n@uclapi_protected_endpoint()\ndef get_pc_availab... | diff --git a/backend/uclapi/resources/views.py b/backend/uclapi/resources/views.py
index 04bc3ef03..8702095e5 100644
--- a/backend/uclapi/resources/views.py
+++ b/backend/uclapi/resources/views.py
@@ -45,7 +45,7 @@ def get_pc_availability(request, *args, **kwargs):
"longitude": _("longitude"),
... |
robocorp__rpaframework-582 | `RPA.Excel.Application` Run macros in filenames with `-` and spaces in name
There is a bug in the way we call a macro with the `Run macro` keyword where if the file name has spaces or hyphens in the name (e.g., `test macro book.xlsm` or `test-macro-book.xlsm`), it will fail to find the macro. In this case, the file nam... | [
{
"content": "import atexit\nimport logging\nimport platform\nimport struct\nfrom itertools import count\nfrom pathlib import Path\nfrom typing import Any\nfrom contextlib import contextmanager\n\nif platform.system() == \"Windows\":\n import win32api\n import win32com.client\n import pywintypes\nelse:... | [
{
"content": "import atexit\nimport logging\nimport platform\nimport struct\nfrom itertools import count\nfrom pathlib import Path\nfrom typing import Any\nfrom contextlib import contextmanager\n\nif platform.system() == \"Windows\":\n import win32api\n import win32com.client\n import pywintypes\nelse:... | diff --git a/docs/source/releasenotes.rst b/docs/source/releasenotes.rst
index 81f4d00fdd..723a97c337 100644
--- a/docs/source/releasenotes.rst
+++ b/docs/source/releasenotes.rst
@@ -5,19 +5,25 @@ Release notes
`Upcoming release <https://github.com/robocorp/rpaframework/projects/3#column-16713994>`_
+++++++++++++++++... |
googleapis__google-api-python-client-358 | Change from 1.5.5 to 1.6.2 results in authentication failure.
We have some code that successfully talks to a Google API using v1.5.5 but breaks under v1.6.2 with the following error:
"Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication c... | [
{
"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles... | [
{
"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles... | diff --git a/googleapiclient/discovery.py b/googleapiclient/discovery.py
index fe19022c91b..c8956f43f71 100644
--- a/googleapiclient/discovery.py
+++ b/googleapiclient/discovery.py
@@ -334,6 +334,10 @@ def build_from_document(
if http is not None and credentials is not None:
raise ValueError('Arguments http and... |
Textualize__textual-4424 | Docs change - use `pane` instead of `tab` for an event listener on tab change
We tried adding an event listener for a tab change using the docs here, but couldn't get it to work: https://textual.textualize.io/guide/events/#applying-css-selectors-to-arbitrary-attributes. Should the docs be updated to use `pane` instead ... | [
{
"content": "from __future__ import annotations\n\nfrom typing import Callable, TypeVar\n\nfrom .css.model import SelectorSet\nfrom .css.parse import parse_selectors\nfrom .css.tokenizer import TokenError\nfrom .message import Message\n\nDecoratedType = TypeVar(\"DecoratedType\")\n\n\nclass OnDecoratorError(Ex... | [
{
"content": "from __future__ import annotations\n\nfrom typing import Callable, TypeVar\n\nfrom .css.model import SelectorSet\nfrom .css.parse import parse_selectors\nfrom .css.tokenizer import TokenError\nfrom .message import Message\n\nDecoratedType = TypeVar(\"DecoratedType\")\n\n\nclass OnDecoratorError(Ex... | diff --git a/docs/guide/events.md b/docs/guide/events.md
index 0f06d6f7ce..9197949a33 100644
--- a/docs/guide/events.md
+++ b/docs/guide/events.md
@@ -268,7 +268,7 @@ The `on` decorator also accepts selectors as keyword arguments that may be used
The snippet below shows how to match the message [`TabbedContent.TabActi... |
getsentry__sentry-python-2371 | KeyError 'https,http' in async handling 1.31.0
### How do you use Sentry?
Self-hosted/on-premise
### Version
1.31.0
### Steps to Reproduce
I'm running sentry and uvicorn. We also have django-channels. On upgrading to 1.31.0 I'm getting the following:
```
Traceback (most recent call last):
File "/home/vcap/dep... | [
{
"content": "import urllib\n\nfrom sentry_sdk.hub import _should_send_default_pii\nfrom sentry_sdk.integrations._wsgi_common import _filter_headers\nfrom sentry_sdk._types import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from typing import Any\n from typing import Dict\n from typing import Optional\n fr... | [
{
"content": "import urllib\n\nfrom sentry_sdk.hub import _should_send_default_pii\nfrom sentry_sdk.integrations._wsgi_common import _filter_headers\nfrom sentry_sdk._types import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from typing import Any\n from typing import Dict\n from typing import Optional\n fr... | diff --git a/sentry_sdk/integrations/_asgi_common.py b/sentry_sdk/integrations/_asgi_common.py
index 3d14393b03..41946cc7c2 100644
--- a/sentry_sdk/integrations/_asgi_common.py
+++ b/sentry_sdk/integrations/_asgi_common.py
@@ -43,7 +43,7 @@ def _get_url(asgi_scope, default_scheme, host):
if server is not None:
... |
deepset-ai__haystack-923 | About FARMReader method predict_batch
**Question**
About method
`FARMReader.predict_batch(query_doc_list: List[dict], top_k: int = None, batch_size: int = None)`
My Code:
```
# Label, Document are from haystack.schema
# documents: List[Document], length of documents is 10, cuz I set top_k_retriever => 10
q... | [
{
"content": "import logging\nimport multiprocessing\nfrom pathlib import Path\nfrom typing import List, Optional, Union, Dict, Any\nfrom collections import defaultdict\nfrom time import perf_counter\n\nimport numpy as np\nfrom farm.data_handler.data_silo import DataSilo\nfrom farm.data_handler.processor import... | [
{
"content": "import logging\nimport multiprocessing\nfrom pathlib import Path\nfrom typing import List, Optional, Union, Dict, Any\nfrom collections import defaultdict\nfrom time import perf_counter\n\nimport numpy as np\nfrom farm.data_handler.data_silo import DataSilo\nfrom farm.data_handler.processor import... | diff --git a/docs/_src/api/api/retriever.md b/docs/_src/api/api/retriever.md
index 2e2d8e9782..dbe5666d54 100644
--- a/docs/_src/api/api/retriever.md
+++ b/docs/_src/api/api/retriever.md
@@ -341,7 +341,7 @@ Embeddings of documents / passages shape (batch_size, embedding_dim)
#### train
```python
- | train(data_dir:... |
cisagov__manage.get.gov-1743 | Submission dates for fixture domain requests are blank
### Current Behavior
For applications generated by fixtures, submission dates are not showing because they are not set to begin with

### Expected Be... | [
{
"content": "import logging\nimport random\nfrom faker import Faker\n\nfrom registrar.models import (\n User,\n DomainApplication,\n DraftDomain,\n Contact,\n Website,\n)\n\nfake = Faker()\nlogger = logging.getLogger(__name__)\n\n\nclass DomainApplicationFixture:\n \"\"\"\n Load domain app... | [
{
"content": "import logging\nimport random\nfrom faker import Faker\n\nfrom registrar.models import (\n User,\n DomainApplication,\n DraftDomain,\n Contact,\n Website,\n)\n\nfake = Faker()\nlogger = logging.getLogger(__name__)\n\n\nclass DomainApplicationFixture:\n \"\"\"\n Load domain app... | diff --git a/src/registrar/fixtures_applications.py b/src/registrar/fixtures_applications.py
index 92094b876..659a3040e 100644
--- a/src/registrar/fixtures_applications.py
+++ b/src/registrar/fixtures_applications.py
@@ -104,7 +104,7 @@ def _set_non_foreign_key_fields(cls, da: DomainApplication, app: dict):
... |
certbot__certbot-2415 | Fix missing help_label in noninteractive menu
| [
{
"content": "\"\"\"Let's Encrypt display.\"\"\"\nimport os\nimport textwrap\n\nimport dialog\nimport zope.interface\n\nfrom letsencrypt import interfaces\nfrom letsencrypt import errors\n\nWIDTH = 72\nHEIGHT = 20\n\n# Display exit codes\nOK = \"ok\"\n\"\"\"Display exit code indicating user acceptance.\"\"\"\n\... | [
{
"content": "\"\"\"Let's Encrypt display.\"\"\"\nimport os\nimport textwrap\n\nimport dialog\nimport zope.interface\n\nfrom letsencrypt import interfaces\nfrom letsencrypt import errors\n\nWIDTH = 72\nHEIGHT = 20\n\n# Display exit codes\nOK = \"ok\"\n\"\"\"Display exit code indicating user acceptance.\"\"\"\n\... | diff --git a/letsencrypt/display/util.py b/letsencrypt/display/util.py
index 93b8f6d9130..976a2afdff3 100644
--- a/letsencrypt/display/util.py
+++ b/letsencrypt/display/util.py
@@ -446,7 +446,7 @@ def notification(self, message, height=10, pause=False):
line=os.linesep, frame=side_frame, msg=message))
... |
lutris__lutris-2419 | Importing of Steam games that are already in the library (uninstalled) does not make them appear installed
How to reproduce:
1. Add a game to your game library on Lutris.Net
2. Relaunch Lutris to let it fetch the new data and add the game to the library
3. Have that game installed locally through Steam
4. Import th... | [
{
"content": "\"\"\"Steam service\"\"\"\nimport os\nimport re\n\nfrom lutris import pga\nfrom lutris.config import make_game_config_id, LutrisConfig\nfrom lutris.util.steam.appmanifest import AppManifest, get_appmanifests\nfrom lutris.util.steam.config import get_steamapps_paths\nfrom lutris.services.service_ga... | [
{
"content": "\"\"\"Steam service\"\"\"\nimport os\nimport re\n\nfrom lutris import pga\nfrom lutris.config import make_game_config_id, LutrisConfig\nfrom lutris.util.steam.appmanifest import AppManifest, get_appmanifests\nfrom lutris.util.steam.config import get_steamapps_paths\nfrom lutris.services.service_ga... | diff --git a/lutris/services/steam.py b/lutris/services/steam.py
index 6a1bcdc385..74d106d653 100644
--- a/lutris/services/steam.py
+++ b/lutris/services/steam.py
@@ -127,7 +127,7 @@ def get_pga_game(self, game):
for pga_game in self.lutris_games:
if (
str(pga_game["steamid"])... |
Cog-Creators__Red-DiscordBot-2688 | !load <cog> crashes
Tried to load a cog and getting an error on `self._call_module_finalizers(lib, key)` as "key" is not defined in [https://github.com/Cog-Creators/Red-DiscordBot/blob/V3/develop/redbot/core/bot.py](url), line 256 : NameError: name 'key' is not defined
async def load_extension(self, spec: Modu... | [
{
"content": "import asyncio\nimport inspect\nimport os\nimport logging\nfrom collections import Counter\nfrom enum import Enum\nfrom importlib.machinery import ModuleSpec\nfrom pathlib import Path\nfrom typing import Optional, Union, List\n\nimport discord\nimport sys\nfrom discord.ext.commands import when_men... | [
{
"content": "import asyncio\nimport inspect\nimport os\nimport logging\nfrom collections import Counter\nfrom enum import Enum\nfrom importlib.machinery import ModuleSpec\nfrom pathlib import Path\nfrom typing import Optional, Union, List\n\nimport discord\nimport sys\nfrom discord.ext.commands import when_men... | diff --git a/redbot/core/bot.py b/redbot/core/bot.py
index f122ee5ff47..b315038ba05 100644
--- a/redbot/core/bot.py
+++ b/redbot/core/bot.py
@@ -253,8 +253,8 @@ async def load_extension(self, spec: ModuleSpec):
lib.setup(self)
except Exception as e:
self._remove_module_references(... |
akvo__akvo-rsr-1703 | Project partner alignment
## Test plan
GIVEN the project partners page
WHEN viewing the partners
THEN there should be an organisation logo or placeholder displayed for every partner
## Issue description
Project partners should all have same alignment. Now some align left, while others centre, see screenshot
. But because ``directories`` is defined as ``DirectoryPath``, pydantic checks if the given directories ... | [
{
"content": "\"\"\"Collection filter datastructures.\"\"\"\nfrom __future__ import annotations\n\nfrom dataclasses import dataclass\nfrom datetime import datetime # noqa: TCH003\nfrom typing import TYPE_CHECKING, Generic, Literal, TypeVar\n\nif TYPE_CHECKING:\n from collections import abc\n\n\nT = TypeVar(... | [
{
"content": "\"\"\"Collection filter datastructures.\"\"\"\nfrom __future__ import annotations\n\nfrom collections import abc # noqa: TCH003\nfrom dataclasses import dataclass\nfrom datetime import datetime # noqa: TCH003\nfrom typing import Generic, Literal, TypeVar\n\nT = TypeVar(\"T\")\n\n__all__ = [\"Bef... | diff --git a/litestar/contrib/repository/filters.py b/litestar/contrib/repository/filters.py
index d4c9f79679..702b0aee8c 100644
--- a/litestar/contrib/repository/filters.py
+++ b/litestar/contrib/repository/filters.py
@@ -1,13 +1,10 @@
"""Collection filter datastructures."""
from __future__ import annotations
+fro... |
ckan__ckan-5837 | Can't add directories from plugins if partially string matches existing values
**CKAN version**
1.7 or so
**Describe the bug**
If you add a served directory that partially string matches existing values it will be ignored
**Steps to reproduce**
```
if old_ckan:
add_template_directory(config, 'templates-f... | [
{
"content": "# encoding: utf-8\n\nimport sys\n\n\nclass _Toolkit(object):\n '''This class is intended to make functions/objects consistently\n available to plugins, whilst giving core CKAN developers the ability move\n code around or change underlying frameworks etc. This object allows\n us to avoi... | [
{
"content": "# encoding: utf-8\n\nimport sys\n\n\nclass _Toolkit(object):\n '''This class is intended to make functions/objects consistently\n available to plugins, whilst giving core CKAN developers the ability move\n code around or change underlying frameworks etc. This object allows\n us to avoi... | diff --git a/ckan/plugins/toolkit.py b/ckan/plugins/toolkit.py
index b69dcac4d9a..0236b637d79 100644
--- a/ckan/plugins/toolkit.py
+++ b/ckan/plugins/toolkit.py
@@ -404,7 +404,7 @@ def _add_served_directory(cls, config, relative_path, config_var):
this_dir = os.path.dirname(filename)
absolute_path =... |
Mailu__Mailu-764 | Accidentally specify a complete mail in the alias field ⇒ oops
When accidentally writing a complete email-address, like `foo@bar.baz` into the mail-domain⇒alias⇒create alias⇒alias field, `admin` explodes like this, and the user is presented with a `500`:
```
admin_1_ef8e5e126497 | [2018-12-17 20:08:12,886] ERROR in... | [
{
"content": "from wtforms import validators, fields, widgets\nfrom wtforms_components import fields as fields_\nfrom flask_babel import lazy_gettext as _\n\nimport flask_login\nimport flask_wtf\nimport re\n\nLOCALPART_REGEX = \"^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+$\"\n\nclass DestinationField(fields.SelectMultipl... | [
{
"content": "from wtforms import validators, fields, widgets\nfrom wtforms_components import fields as fields_\nfrom flask_babel import lazy_gettext as _\n\nimport flask_login\nimport flask_wtf\nimport re\n\nLOCALPART_REGEX = \"^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+$\"\n\nclass DestinationField(fields.SelectMultipl... | diff --git a/core/admin/mailu/ui/forms.py b/core/admin/mailu/ui/forms.py
index 57c106c34..40a56a829 100644
--- a/core/admin/mailu/ui/forms.py
+++ b/core/admin/mailu/ui/forms.py
@@ -136,7 +136,7 @@ class TokenForm(flask_wtf.FlaskForm):
class AliasForm(flask_wtf.FlaskForm):
- localpart = fields.StringField(_('Ali... |
Pylons__pyramid-3074 | `AllPermissionsList.__iter__` returns tuple(). Should return iter(tuple())?
My understanding is that __iter__ should [return an iterator object](https://docs.python.org/3.5/library/stdtypes.html#container.__iter__).
However, [`AllPermissionsList.__iter__`](https://github.com/Pylons/pyramid/blob/master/pyramid/securi... | [
{
"content": "from zope.deprecation import deprecated\nfrom zope.interface import providedBy\n\nfrom pyramid.interfaces import (\n IAuthenticationPolicy,\n IAuthorizationPolicy,\n ISecuredView,\n IView,\n IViewClassifier,\n )\n\nfrom pyramid.compat import map_\nfrom pyramid.threadlocal import ... | [
{
"content": "from zope.deprecation import deprecated\nfrom zope.interface import providedBy\n\nfrom pyramid.interfaces import (\n IAuthenticationPolicy,\n IAuthorizationPolicy,\n ISecuredView,\n IView,\n IViewClassifier,\n )\n\nfrom pyramid.compat import map_\nfrom pyramid.threadlocal import ... | diff --git a/pyramid/security.py b/pyramid/security.py
index 82e6b73a91..035f09f775 100644
--- a/pyramid/security.py
+++ b/pyramid/security.py
@@ -21,10 +21,13 @@
class AllPermissionsList(object):
""" Stand in 'permission list' to represent all permissions """
+
def __iter__(self):
- return ()
+ ... |
freedomofpress__securedrop-5618 | Resetting journalist password more than once can raise IntegrityError
## Description
If a journalist's password is reset twice in quick succession, the second attempt to revoke the two-factor token will trigger an exception:
```
sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: revo... | [
{
"content": "# -*- coding: utf-8 -*-\nimport binascii\nimport datetime\nimport os\nfrom typing import Optional, List, Union, Any\n\nimport flask\nimport werkzeug\nfrom flask import (g, flash, current_app, abort, send_file, redirect, url_for,\n render_template, Markup, sessions, request)\nfrom... | [
{
"content": "# -*- coding: utf-8 -*-\nimport binascii\nimport datetime\nimport os\nfrom typing import Optional, List, Union, Any\n\nimport flask\nimport werkzeug\nfrom flask import (g, flash, current_app, abort, send_file, redirect, url_for,\n render_template, Markup, sessions, request)\nfrom... | diff --git a/securedrop/journalist_app/utils.py b/securedrop/journalist_app/utils.py
index f9191fd45f..37c9752943 100644
--- a/securedrop/journalist_app/utils.py
+++ b/securedrop/journalist_app/utils.py
@@ -472,6 +472,11 @@ def cleanup_expired_revoked_tokens() -> None:
def revoke_token(user: Journalist, auth_token... |
python-telegram-bot__python-telegram-bot-3155 | [BUG] Invalid MarkdownV1 parsing
### Steps to Reproduce
1. Call the `mention_markdown(123, "Keeping_the_underscores", version=1)` function from `telegram.helpers`
### Expected behaviour
`[Keeping_the_underscores](tg://user?id=123)`, that is valid MarkdownV1 and consistent with https://core.telegram.org/bots/ap... | [
{
"content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2022\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub... | [
{
"content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2022\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub... | diff --git a/telegram/helpers.py b/telegram/helpers.py
index 73ca3a67024..ac7e1936ae1 100644
--- a/telegram/helpers.py
+++ b/telegram/helpers.py
@@ -93,7 +93,10 @@ def mention_markdown(user_id: Union[int, str], name: str, version: int = 1) -> s
Returns:
:obj:`str`: The inline mention for the user as Markd... |
hpcaitech__ColossalAI-2741 | [BUG]: Error during running chatgpt train_rm.sh
### 🐛 Describe the bug
I run into a runtime error when running `train_rm.sh` under examples of chatgpt.
```
Traceback (most recent call last):
File "/root/ColossalAI/applications/ChatGPT/examples/train_reward_model.py", line 53, in <module>
train(args)
Fil... | [
{
"content": "from abc import ABC\n\nimport loralib as lora\nfrom chatgpt.dataset import RewardDataset\nfrom chatgpt.nn import PairWiseLoss\nfrom torch.optim import Adam\nfrom torch.utils.data import DataLoader\nfrom tqdm import tqdm\n\n\nclass RewardModelTrainer(ABC):\n \"\"\"\n Trainer to use while ... | [
{
"content": "from abc import ABC\n\nimport loralib as lora\nfrom chatgpt.dataset import RewardDataset\nfrom chatgpt.nn import PairWiseLoss\nfrom torch.optim import Adam\nfrom torch.utils.data import DataLoader\nfrom tqdm import tqdm\n\n\nclass RewardModelTrainer(ABC):\n \"\"\"\n Trainer to use while ... | diff --git a/applications/ChatGPT/chatgpt/trainer/rm.py b/applications/ChatGPT/chatgpt/trainer/rm.py
index c24289502830..b76ae537306c 100644
--- a/applications/ChatGPT/chatgpt/trainer/rm.py
+++ b/applications/ChatGPT/chatgpt/trainer/rm.py
@@ -43,7 +43,7 @@ def fit(self, use_lora):
# train
if u... |
scikit-hep__pyhf-2242 | Upcoming deprecation of np.product
### Summary
Both `paramview` and `pdf` cause deprecation warnings due to the use of `np.product` instead of `np.prod` when using `numpy` 1.25 or above. This is not flagged in CI, which uses an older version of `numpy`, presumably due to other dependencies capping it still.
### OS / ... | [
{
"content": "\"\"\"NumPy Tensor Library Module.\"\"\"\nfrom __future__ import annotations\n\nimport logging\nfrom typing import TYPE_CHECKING, Callable, Generic, Mapping, Sequence, TypeVar, Union\n\nimport numpy as np\n\n# Needed while numpy lower bound is older than v1.21.0\nif TYPE_CHECKING:\n from numpy.... | [
{
"content": "\"\"\"NumPy Tensor Library Module.\"\"\"\nfrom __future__ import annotations\n\nimport logging\nfrom typing import TYPE_CHECKING, Callable, Generic, Mapping, Sequence, TypeVar, Union\n\nimport numpy as np\n\n# Needed while numpy lower bound is older than v1.21.0\nif TYPE_CHECKING:\n from numpy.... | diff --git a/docs/examples/notebooks/pytorch_tests_onoff.ipynb b/docs/examples/notebooks/pytorch_tests_onoff.ipynb
index b4c0780a46..b1830d14ad 100644
--- a/docs/examples/notebooks/pytorch_tests_onoff.ipynb
+++ b/docs/examples/notebooks/pytorch_tests_onoff.ipynb
@@ -35,7 +35,7 @@
" self.auxdata.append(b... |
Pylons__pyramid-3077 | `AllPermissionsList.__iter__` returns tuple(). Should return iter(tuple())?
My understanding is that __iter__ should [return an iterator object](https://docs.python.org/3.5/library/stdtypes.html#container.__iter__).
However, [`AllPermissionsList.__iter__`](https://github.com/Pylons/pyramid/blob/master/pyramid/securi... | [
{
"content": "from zope.deprecation import deprecated\nfrom zope.interface import providedBy\n\nfrom pyramid.interfaces import (\n IAuthenticationPolicy,\n IAuthorizationPolicy,\n ISecuredView,\n IView,\n IViewClassifier,\n )\n\nfrom pyramid.compat import map_\nfrom pyramid.threadlocal import ... | [
{
"content": "from zope.deprecation import deprecated\nfrom zope.interface import providedBy\n\nfrom pyramid.interfaces import (\n IAuthenticationPolicy,\n IAuthorizationPolicy,\n ISecuredView,\n IView,\n IViewClassifier,\n )\n\nfrom pyramid.compat import map_\nfrom pyramid.threadlocal import ... | diff --git a/pyramid/security.py b/pyramid/security.py
index 82e6b73a91..035f09f775 100644
--- a/pyramid/security.py
+++ b/pyramid/security.py
@@ -21,10 +21,13 @@
class AllPermissionsList(object):
""" Stand in 'permission list' to represent all permissions """
+
def __iter__(self):
- return ()
+ ... |
ESMCI__cime-2596 | With change in #2588, xmlquery sometimes doesn't give you an error when it should
This is a minor issue, so I don't feel like it needs to be fixed for the CESM2 release, but I feel like it would eventually be good to fix this to work more robustly:
With the fix that @jedwards4b put in in #2588 , a new issue appears:... | [
{
"content": "\"\"\"\nBase class for env files. This class inherits from EntryID.py\n\"\"\"\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.XML.entry_id import EntryID\nfrom CIME.XML.headers import Headers\nfrom CIME.utils import convert_to_type\nlogger = logging.getLogger(__name__)\n\nclass EnvBase(E... | [
{
"content": "\"\"\"\nBase class for env files. This class inherits from EntryID.py\n\"\"\"\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.XML.entry_id import EntryID\nfrom CIME.XML.headers import Headers\nfrom CIME.utils import convert_to_type\nlogger = logging.getLogger(__name__)\n\nclass EnvBase(E... | diff --git a/scripts/Tools/xmlquery b/scripts/Tools/xmlquery
index 3b384a90573..4d40b8391ed 100755
--- a/scripts/Tools/xmlquery
+++ b/scripts/Tools/xmlquery
@@ -94,6 +94,7 @@ There are two usage modes:
- You can tailor the query by adding ONE of the following possible qualifier arguments:
[--full --fileon... |
GoogleCloudPlatform__PerfKitBenchmarker-3295 | GCP object_storage_service MissingObjectCredentialException: Boto file cannot be found in [None, '~/.boto', '/etc/boto.cfg'].
* How to reproduce
set flag ` gce_preemptible_vms: true`
* errors
> File "/Users/martin/work/PerfKitBenchmarker/perfkitbenchmarker/object_storage_service.py", line 383, in FindBotoF... | [
{
"content": "# Copyright 2016 PerfKitBenchmarker Authors. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | [
{
"content": "# Copyright 2016 PerfKitBenchmarker Authors. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | diff --git a/CHANGES.next.md b/CHANGES.next.md
index d0296483b6..7670431647 100644
--- a/CHANGES.next.md
+++ b/CHANGES.next.md
@@ -193,3 +193,4 @@
- AWS disk attaches now wait for attach, supporting io2 block express
- Update the performance results of Bigtable testing which used a more proper
client setup.
... |
open-mmlab__mmdetection-2492 | _pickle.PicklingError: Can't pickle <class 'numpy.core._exceptions.UFuncTypeError'>: it's not the same object as numpy.core._exceptions.UFuncTypeError
when i use
dict(type='PhotoMetricDistortion',
brightness_delta=32,
contrast_range=(0.5, 1.5),
saturation_range=(0.5, 1.5),
hue_... | [
{
"content": "import inspect\n\nimport mmcv\nimport numpy as np\nfrom numpy import random\n\nfrom mmdet.core.evaluation.bbox_overlaps import bbox_overlaps\nfrom ..registry import PIPELINES\n\ntry:\n from imagecorruptions import corrupt\nexcept ImportError:\n corrupt = None\n\ntry:\n import albumentatio... | [
{
"content": "import inspect\n\nimport mmcv\nimport numpy as np\nfrom numpy import random\n\nfrom mmdet.core.evaluation.bbox_overlaps import bbox_overlaps\nfrom ..registry import PIPELINES\n\ntry:\n from imagecorruptions import corrupt\nexcept ImportError:\n corrupt = None\n\ntry:\n import albumentatio... | diff --git a/mmdet/datasets/pipelines/transforms.py b/mmdet/datasets/pipelines/transforms.py
index 69fad01940c..94c53f82b0d 100644
--- a/mmdet/datasets/pipelines/transforms.py
+++ b/mmdet/datasets/pipelines/transforms.py
@@ -490,6 +490,9 @@ def __init__(self,
def __call__(self, results):
img = results['... |
voxel51__fiftyone-1702 | [BUG] Unable to run desktop applications by using desktop flag
### System information
- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Windows 11 Family Chinese version 21H2
- **FiftyOne installed from (pip or source)**: both pip and source
- **FiftyOne version (run `fiftyone --version`)**: Fif... | [
{
"content": "\"\"\"\nFiftyOne Services.\n\n| Copyright 2017-2022, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport logging\nimport os\nimport subprocess\nimport sys\n\nimport psutil\nimport requests\nfrom retrying import retry\n\nimport eta.core.utils as etau\n\nimport fiftyone.constan... | [
{
"content": "\"\"\"\nFiftyOne Services.\n\n| Copyright 2017-2022, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport logging\nimport os\nimport subprocess\nimport sys\n\nimport psutil\nimport requests\nfrom retrying import retry\n\nimport eta.core.utils as etau\n\nimport fiftyone.constan... | diff --git a/fiftyone/core/service.py b/fiftyone/core/service.py
index f86050d9f5a..a79364f323b 100644
--- a/fiftyone/core/service.py
+++ b/fiftyone/core/service.py
@@ -393,10 +393,7 @@ def find_app(self):
pre = foc.FIFTYONE_DESKTOP_APP_DIR
for path in etau.list_files("./"):
- if path.end... |
mesonbuild__meson-2462 | MSI installed meson fails to rerun in visual studio
Initially, I ran `meson build` from the source code directory `xxx` to create the build directory.
Later, if any `meson.build` files are modified, Visual studio fails to rerun Meson with the backtrace below. Meson is installed with MSI. It works with ninja as backend... | [
{
"content": "# Copyright 2015-2016 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req... | [
{
"content": "# Copyright 2015-2016 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req... | diff --git a/mesonbuild/scripts/regen_checker.py b/mesonbuild/scripts/regen_checker.py
index 4125f404e698..53c5428f79d5 100644
--- a/mesonbuild/scripts/regen_checker.py
+++ b/mesonbuild/scripts/regen_checker.py
@@ -32,9 +32,11 @@ def need_regen(regeninfo, regen_timestamp):
return False
def regen(regeninfo, meso... |
zestedesavoir__zds-site-3178 | La pagination article est inversée
Dans le bas des articles on trouve une barre de pagination pour aller a l'article précédent/suivant. Il me semble que cette barre est inversé puisque l'article précédent est a droite et le suivant est a gauche. Dans la logique de la lecture et du fil des pages occidental, ce qui est a... | [
{
"content": "# coding: utf-8\nfrom datetime import datetime\nimport json as json_writer\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import PermissionDenied\nfrom django.db import transaction\nfrom django.http i... | [
{
"content": "# coding: utf-8\nfrom datetime import datetime\nimport json as json_writer\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import PermissionDenied\nfrom django.db import transaction\nfrom django.http i... | diff --git a/zds/tutorialv2/tests/tests_views.py b/zds/tutorialv2/tests/tests_views.py
index f1a6729287..206103f27b 100644
--- a/zds/tutorialv2/tests/tests_views.py
+++ b/zds/tutorialv2/tests/tests_views.py
@@ -5073,6 +5073,32 @@ def test_republish_with_different_slug(self):
tuto = PublishableContent.objects.g... |
cupy__cupy-6898 | matmul with out=in doesn't raise an exception
Hello, sorry if I'm not following a template but I don't really have time. Just a quick remark to say that in the doc of cupy.matmul:
https://docs.cupy.dev/en/stable/reference/generated/cupy.matmul.html
there's a note "The out array as input is currently not supported... | [
{
"content": "import collections.abc\n\nimport numpy\n\nimport cupy\nfrom cupy import _core\nfrom cupy._core import internal\nfrom cupy._core._gufuncs import _GUFunc\nfrom cupy.linalg import _solve\nfrom cupy.linalg import _util\n\n\nmatmul = _GUFunc(\n _core.matmul,\n '(n?,k),(k,m?)->(n?,m?)',\n suppo... | [
{
"content": "import collections.abc\n\nimport numpy\n\nimport cupy\nfrom cupy import _core\nfrom cupy._core import internal\nfrom cupy._core._gufuncs import _GUFunc\nfrom cupy.linalg import _solve\nfrom cupy.linalg import _util\n\n\nmatmul = _GUFunc(\n _core.matmul,\n '(n?,k),(k,m?)->(n?,m?)',\n suppo... | diff --git a/cupy/_core/_routines_linalg.pyx b/cupy/_core/_routines_linalg.pyx
index 3b67710cf80..da78ae158a3 100644
--- a/cupy/_core/_routines_linalg.pyx
+++ b/cupy/_core/_routines_linalg.pyx
@@ -823,9 +823,6 @@ cpdef _ndarray_base matmul(
The main difference against cupy.dot are the handling of arrays with more
... |
PennyLaneAI__pennylane-5725 | [BUG] `defer_measurements` does not work with `qml.cond` applied to controlled gates
### Expected behavior
`qml.cond` can be applied to any valid `Operation` and `defer_measurements` can deal with the resulting operation as well.
### Actual behavior
Using `qml.cond` on a controlled operation and deferring measuremen... | [
{
"content": "# Copyright 2018-2022 Xanadu Quantum Technologies 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# Unle... | [
{
"content": "# Copyright 2018-2022 Xanadu Quantum Technologies 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# Unle... | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index 052a8975c4b..bd4e5f0ffc3 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -9,6 +9,9 @@
<h3>Improvements 🛠</h3>
+* `ctrl` now works with tuple-valued `control_values` when applied to any already contro... |
yt-project__yt-4205 | ENH: "local" config file upward lookup
### Bug report
**Bug summary**
Since yt 4.0 we support two locations to store a configuration file `yt.toml`, namely `$XDG_CONFIG/yt/yt.toml` (this is the global configuration) and `./yt.toml` (local)
Now, assuming a data exploration project organised into subfolders, for... | [
{
"content": "import os\nimport sys\nimport warnings\nfrom pathlib import Path\nfrom typing import Callable, List\n\nimport tomli_w\nfrom more_itertools import always_iterable\n\nfrom yt.utilities.configuration_tree import ConfigLeaf, ConfigNode\n\nif sys.version_info >= (3, 11):\n import tomllib\nelse:\n ... | [
{
"content": "import os\nimport sys\nimport warnings\nfrom pathlib import Path\nfrom typing import Callable, List\n\nimport tomli_w\nfrom more_itertools import always_iterable\n\nfrom yt.utilities.configuration_tree import ConfigLeaf, ConfigNode\n\nif sys.version_info >= (3, 11):\n import tomllib\nelse:\n ... | diff --git a/doc/source/reference/configuration.rst b/doc/source/reference/configuration.rst
index 3abdd1794c2..5fc7920e732 100644
--- a/doc/source/reference/configuration.rst
+++ b/doc/source/reference/configuration.rst
@@ -52,9 +52,10 @@ options from the configuration file, e.g.:
Local Configuration
^^^^^^^^^^^^^^^... |
talonhub__community-860 | redundant empty list initialization
Shouldn't be a need to do this empty list initialization anymore, it was fixed a while back in public:
https://github.com/knausj85/knausj_talon/blob/97bf66e/code/switcher.py#L358-L362
| [
{
"content": "import os\nimport re\nimport time\n\nimport talon\n\nfrom talon import Context, Module, app, imgui, ui, fs, actions\nfrom glob import glob\nfrom itertools import islice\nfrom pathlib import Path\nimport subprocess\n\n# Construct at startup a list of overides for application names (similar to how h... | [
{
"content": "import os\nimport re\nimport time\n\nimport talon\n\nfrom talon import Context, Module, app, imgui, ui, fs, actions\nfrom glob import glob\nfrom itertools import islice\nfrom pathlib import Path\nimport subprocess\n\n# Construct at startup a list of overides for application names (similar to how h... | diff --git a/code/switcher.py b/code/switcher.py
index b41c681d9a..227150c3ea 100644
--- a/code/switcher.py
+++ b/code/switcher.py
@@ -354,13 +354,6 @@ def ui_event(event, arg):
if event in ("app_launch", "app_close"):
update_running_list()
-
-# Currently update_launch_list only does anything on mac, so... |
ipython__ipython-7883 | Making stdin optional when creating new kernels
It would be useful for the `ExecutePreprocessor` (and other things that want to automatically run notebooks on the fly) to be able to easily disable `stdin` -- otherwise, if there is something like a call to `input`, it causes the preprocessor to just hang and eventually ... | [
{
"content": "\"\"\"Module containing a preprocessor that removes the outputs from code cells\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport os\n\ntry:\n from queue import Empty # Py 3\nexcept ImportError:\n from Queue import Empty... | [
{
"content": "\"\"\"Module containing a preprocessor that removes the outputs from code cells\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport os\n\ntry:\n from queue import Empty # Py 3\nexcept ImportError:\n from Queue import Empty... | diff --git a/IPython/nbconvert/preprocessors/execute.py b/IPython/nbconvert/preprocessors/execute.py
index d80dda3ef41..03b126b048a 100644
--- a/IPython/nbconvert/preprocessors/execute.py
+++ b/IPython/nbconvert/preprocessors/execute.py
@@ -36,6 +36,7 @@ def preprocess(self, nb, resources):
ext... |
apluslms__a-plus-1351 | Add a gitmanager link with automatic JWT auth to the A+ edit course section
Under the A+ Edit course section, there should be a link to the gitmanager so that teachers can easily open the gitmanager web site and view the course's gitmanager settings and build log. The link should include the JWT authentication tokens a... | [
{
"content": "import urllib.parse\n\nfrom aplus_auth.payload import Permission, Permissions\nfrom aplus_auth.requests import post as aplus_post\nfrom aplus_auth.requests import put as aplus_put\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.db import models, IntegrityError\n... | [
{
"content": "import urllib.parse\n\nfrom aplus_auth.payload import Permission, Permissions\nfrom aplus_auth.requests import post as aplus_post\nfrom aplus_auth.requests import put as aplus_put\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.db import models, IntegrityError\n... | diff --git a/edit_course/templates/edit_course/edit_gitmanager.html b/edit_course/templates/edit_course/edit_gitmanager.html
index 062211501..4a193ff10 100644
--- a/edit_course/templates/edit_course/edit_gitmanager.html
+++ b/edit_course/templates/edit_course/edit_gitmanager.html
@@ -14,6 +14,9 @@
<form id="gitmanager... |
google__fuzzbench-148 | [reports] Data.csv.gz don't need to contain id column
It has these columns because data.csv.gz contains data from a join query of snapshots on trials.
time_started and time_ended are from trials but they are probably not useful for the analysis people want to do so they just take up space at this point.
| [
{
"content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/analysis/queries.py b/analysis/queries.py
index 63e42c410..c87a3a46b 100644
--- a/analysis/queries.py
+++ b/analysis/queries.py
@@ -26,4 +26,8 @@ def get_experiment_data(experiment_names):
sqlalchemy.orm.joinedload('trial')).filter(
models.Snapshot.trial.has(
models.T... |
mars-project__mars-65 | [BUG][TENSOR] Cannot run a tensor tuple by web session
**Describe the bug**
When created a web session to submit the tensors to cluster, it raised `TypeError: run got unexpected key arguments n_parallel` which may be caused by class `ExecutableTuple`.
**To Reproduce**
I start a local cluster with web, and run SVD... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# 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://... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# 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://... | diff --git a/mars/tensor/core.py b/mars/tensor/core.py
index 10feae47d8..597bd4e42a 100644
--- a/mars/tensor/core.py
+++ b/mars/tensor/core.py
@@ -460,12 +460,12 @@ def visualize(self, graph_attrs=None, node_attrs=None, **kw):
class ExecutableTuple(tuple):
- def execute(self, session=None, n_parallel=None):
+ ... |
cloud-custodian__cloud-custodian-5977 | [aws.ebs.action.copy-related-tag] Copy all tags from ec2 fails because 'aws:' are reserved for internal use
**Describe the bug**
`aws.ebs.action.copy-related-tag` throws `botocore.exceptions.ClientError`, `InvalidParameterValue` when attempting to copy _all_ tags from the related instance to the ebs volume.
See ht... | [
{
"content": "# Copyright 2016-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi... | [
{
"content": "# Copyright 2016-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi... | diff --git a/c7n/tags.py b/c7n/tags.py
index bace1e9a103..769153255a5 100644
--- a/c7n/tags.py
+++ b/c7n/tags.py
@@ -1060,7 +1060,7 @@ def process_resource(self, client, r, related_tags, tag_keys, tag_action):
if tag_keys == '*':
tags = {k: v for k, v in related_tags.items()
- ... |
Nitrate__Nitrate-440 | Add Django 2.2.x
Add a testenv in tox.ini for Django 2.2.
Add "Framework :: Django :: 2.2" to ``setup.py``.
Update README to add version `2.2`.
| [
{
"content": "# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\n\nwith open('VERSION.txt', 'r') as f:\n pkg_version = f.read().strip()\n\n\ndef get_long_description():\n with open('README.rst', 'r') as f:\n return f.read()\n\n\ninstall_requires = [\n 'beautifulsoup4 >= 4.... | [
{
"content": "# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\n\nwith open('VERSION.txt', 'r') as f:\n pkg_version = f.read().strip()\n\n\ndef get_long_description():\n with open('README.rst', 'r') as f:\n return f.read()\n\n\ninstall_requires = [\n 'beautifulsoup4 >= 4.... | diff --git a/.travis.yml b/.travis.yml
index 9c6f91e2..65da51ef 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,15 +11,20 @@ matrix:
env: DJANGO_REL="django>=2.0,<2.1"
# Matrix of Python 3.6, 3.7 and Django 2.1.x
- python: "3.6"
- env: DJANGO_REL="django>=2.1,<3.0"
+ env: DJANGO_REL="django>=2.1,<2.2... |
scikit-image__scikit-image-6495 | api_changes.md not updated since 0.16
## Description
[API Changes](https://scikit-image.org/docs/0.19.x/api_changes.html) has not been updated since 0.16, although notable changes took place.
| [
{
"content": "# -*- coding: utf-8 -*-\n#\n# skimage documentation build configuration file, created by\n# sphinx-quickstart on Sat Aug 22 13:00:30 2009.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# skimage documentation build configuration file, created by\n# sphinx-quickstart on Sat Aug 22 13:00:30 2009.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\... | diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
index 46bb57826fa..a2073d42fbf 100644
--- a/CONTRIBUTING.rst
+++ b/CONTRIBUTING.rst
@@ -117,7 +117,7 @@ For a more detailed discussion, read these :doc:`detailed documents
5. Document changes
If your change introduces any API modifications, please update
- ``doc... |
liqd__a4-opin-2507 | Password reset attempt for non-existant user causes 500 and sentry error on DEV, unstyled response on STAGE/PROD
**URL:**
500 only on DEV: https://opin-dev.liqd.net/de/accounts/password/reset/
Sentry: https://sentry.liqd.net/organizations/liqd/issues/1979/?environment=production&project=11&referrer=alert_email
St... | [
{
"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 4ef0efd40..df5767f8a 100644
--- a/euth_wagtail/settings/base.py
+++ b/euth_wagtail/settings/base.py
@@ -381,6 +381,7 @@
ACCOUNT_USER_DISPLAY = 'euth.users.services.account_user_display'
ACCOUNT_USER_MODEL_USERNAME_FIELD = 'username'
ACC... |
django-helpdesk__django-helpdesk-380 | AttributeError using django1.8+
This commit: https://github.com/rossp/django-helpdesk/commit/eef2a66f23397b69cc0350d0c34595d3a5413b46
causes an error in django 1.8+ (because _meta.module_name alias was removed)
PR with patch to follow...
AttributeError at /helpdesk/system_settings/
'Options' object has no attribute... | [
{
"content": "\"\"\"\ndjango-helpdesk - A Django powered ticket tracker for small enterprise.\n\n(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.\n\ntemplatetags/admin_url.py - Very simple template tag allow linking to the\n right auth user model urls.\n\n{% url... | [
{
"content": "\"\"\"\ndjango-helpdesk - A Django powered ticket tracker for small enterprise.\n\n(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.\n\ntemplatetags/admin_url.py - Very simple template tag allow linking to the\n right auth user model urls.\n\n{% url... | diff --git a/helpdesk/templatetags/user_admin_url.py b/helpdesk/templatetags/user_admin_url.py
index 5a62f0bda..135176098 100644
--- a/helpdesk/templatetags/user_admin_url.py
+++ b/helpdesk/templatetags/user_admin_url.py
@@ -14,8 +14,13 @@
def user_admin_url(action):
user = get_user_model()
+ try:
+ m... |
scrapy__scrapy-2816 | DNSCACHE_ENABLED=False not working
Originally reported by @softwarevamp on [StackOverflow](https://stackoverflow.com/questions/44877296/scrapy-with-dnscache-enabled-false-not-working):
> When i run scrapy shell with `DNSCACHE_ENABLED=False` got
```
KeyError: 'dictionary is empty'
twisted.internet.error.DNSLookupE... | [
{
"content": "from twisted.internet import defer\nfrom twisted.internet.base import ThreadedResolver\n\nfrom scrapy.utils.datatypes import LocalCache\n\n# TODO: cache misses\n\ndnscache = LocalCache(10000)\n\nclass CachingThreadedResolver(ThreadedResolver):\n def __init__(self, reactor, cache_size, timeout):... | [
{
"content": "from twisted.internet import defer\nfrom twisted.internet.base import ThreadedResolver\n\nfrom scrapy.utils.datatypes import LocalCache\n\n# TODO: cache misses\n\ndnscache = LocalCache(10000)\n\nclass CachingThreadedResolver(ThreadedResolver):\n def __init__(self, reactor, cache_size, timeout):... | diff --git a/scrapy/resolver.py b/scrapy/resolver.py
index 4f4f0b04f00..0aaced7e4a9 100644
--- a/scrapy/resolver.py
+++ b/scrapy/resolver.py
@@ -22,7 +22,8 @@ def getHostByName(self, name, timeout=None):
# to enforce Scrapy's DNS_TIMEOUT setting's value
timeout = (self.timeout,)
d = super(Cac... |
encode__django-rest-framework-6416 | pyyaml required for openapi-json schemas
## Checklist
- [x] I have verified that that issue exists against the `master` branch of Django REST framework.
- [x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- [x] This is not a usage question. (Those should be directe... | [
{
"content": "from django.core.management.base import BaseCommand\n\nfrom rest_framework.compat import coreapi\nfrom rest_framework.renderers import (\n CoreJSONRenderer, JSONOpenAPIRenderer, OpenAPIRenderer\n)\nfrom rest_framework.schemas.generators import SchemaGenerator\n\n\nclass Command(BaseCommand):\n ... | [
{
"content": "from django.core.management.base import BaseCommand\n\nfrom rest_framework.compat import coreapi\nfrom rest_framework.renderers import (\n CoreJSONRenderer, JSONOpenAPIRenderer, OpenAPIRenderer\n)\nfrom rest_framework.schemas.generators import SchemaGenerator\n\n\nclass Command(BaseCommand):\n ... | diff --git a/rest_framework/management/commands/generateschema.py b/rest_framework/management/commands/generateschema.py
index 214b667750..591073ba03 100644
--- a/rest_framework/management/commands/generateschema.py
+++ b/rest_framework/management/commands/generateschema.py
@@ -32,8 +32,10 @@ def handle(self, *args, **... |
Netflix__lemur-1187 | Allow Digicert CIS to specify end time as well as end date
Currently we truncate the the times sent to digicert, we should respect the times given to us:
https://github.com/Netflix/lemur/blob/master/lemur/plugins/lemur_digicert/plugin.py#L160
Valid format for `valid_to` is `YYYY-MM-DDTHH:MM:SSZ`
cc @andrewache... | [
{
"content": "\"\"\"\n.. module: lemur.plugins.lemur_digicert.plugin\n :platform: Unix\n :synopsis: This module is responsible for communicating with the DigiCert '\n Advanced API.\n :license: Apache, see LICENSE for more details.\n\n DigiCert CertCentral (v2 API) Documentation\n https://www.d... | [
{
"content": "\"\"\"\n.. module: lemur.plugins.lemur_digicert.plugin\n :platform: Unix\n :synopsis: This module is responsible for communicating with the DigiCert '\n Advanced API.\n :license: Apache, see LICENSE for more details.\n\n DigiCert CertCentral (v2 API) Documentation\n https://www.d... | diff --git a/lemur/plugins/lemur_digicert/plugin.py b/lemur/plugins/lemur_digicert/plugin.py
index 00fe95194d..5692af86f0 100644
--- a/lemur/plugins/lemur_digicert/plugin.py
+++ b/lemur/plugins/lemur_digicert/plugin.py
@@ -157,7 +157,7 @@ def map_cis_fields(options, csr):
"csr": csr,
"signature_hash":... |
mindsdb__lightwood-889 | Making a forecasts with a predictor that has a single group and horizon=1 results in an error
## Your Environment
* Python version: 3.8.10
* Operating system: Linux Ubuntu 20.04.4 LTS (Focal Fossa)
* Lightwood version: Staging on 10/05/22
## Describe your issue
When making forecasts, I get this error:
_ValueE... | [
{
"content": "import re\nimport datetime\nfrom copy import deepcopy\nfrom dateutil.parser import parse as parse_dt\nfrom typing import Dict, List, Optional, Tuple, Callable, Union\n\nimport numpy as np\nimport pandas as pd\n\nfrom lightwood.api.dtype import dtype\nfrom lightwood.helpers import text\nfrom lightw... | [
{
"content": "import re\nimport datetime\nfrom copy import deepcopy\nfrom dateutil.parser import parse as parse_dt\nfrom typing import Dict, List, Optional, Tuple, Callable, Union\n\nimport numpy as np\nimport pandas as pd\n\nfrom lightwood.api.dtype import dtype\nfrom lightwood.helpers import text\nfrom lightw... | diff --git a/lightwood/data/cleaner.py b/lightwood/data/cleaner.py
index e6cac1789..1ef80d621 100644
--- a/lightwood/data/cleaner.py
+++ b/lightwood/data/cleaner.py
@@ -264,7 +264,9 @@ def _clean_quantity(element: object) -> Optional[float]:
"""
Given a quantity, clean and convert it into float numeric format... |
ansible__ansible-modules-extras-2830 | zypper module: notify crashes because of changed dict
<!--- Verify first that your issue/request is not already reported in GitHub -->
##### ISSUE TYPE
<!--- Pick one below and delete the rest: -->
- Bug Report
##### COMPONENT NAME
<!--- Name of the plugin/module/task -->
zypper
notify
##### ANSIBLE VERSION
<!--- P... | [
{
"content": "#!/usr/bin/python -tt\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Patrick Callahan <pmc@patrickcallahan.com>\n# based on\n# openbsd_pkg\n# (c) 2013\n# Patrik Lundin <patrik.lundin.swe@gmail.com>\n#\n# yum\n# (c) 2012, Red Hat, Inc\n# Written by Seth Vidal <skvid... | [
{
"content": "#!/usr/bin/python -tt\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Patrick Callahan <pmc@patrickcallahan.com>\n# based on\n# openbsd_pkg\n# (c) 2013\n# Patrik Lundin <patrik.lundin.swe@gmail.com>\n#\n# yum\n# (c) 2012, Red Hat, Inc\n# Written by Seth Vidal <skvid... | diff --git a/packaging/os/zypper.py b/packaging/os/zypper.py
index f958a44da4f..9d90dbe044c 100644
--- a/packaging/os/zypper.py
+++ b/packaging/os/zypper.py
@@ -427,7 +427,7 @@ def main():
elif state in ['installed', 'present', 'latest']:
packages_changed, retvals = package_present(module, name, s... |
oppia__oppia-8978 | ExpressionEvaluatorService test not passing when using `Set` in ExpressionSyntaxTreeService
<!--
- Thanks for taking the time to report a bug in the Oppia project.
- Before filing a new issue, please do a quick search to check that it hasn't
- already been filed on the [issue tracker](https://github.com/oppia/... | [
{
"content": "# Copyright 2020 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n... | [
{
"content": "# Copyright 2020 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n... | diff --git a/core/templates/expressions/expression-syntax-tree.service.spec.ts b/core/templates/expressions/expression-syntax-tree.service.spec.ts
index f1df8e7b2b58a..2a6e7e277d847 100644
--- a/core/templates/expressions/expression-syntax-tree.service.spec.ts
+++ b/core/templates/expressions/expression-syntax-tree.ser... |
ckan__ckan-4092 | Solr credential ENV vars not passed alongside CKAN_SOLR_URL
### CKAN Version if known (or site URL)
2.7.2
### Please describe the expected behaviour
Setting the following environment variables enables basic authentication for a Solr instance:
```
CKAN_SOLR_URL
CKAN_SOLR_USER
CKAN_SOLR_PASSWORD
```
##... | [
{
"content": "# encoding: utf-8\n\n'''CKAN environment configuration'''\nimport os\nimport logging\nimport warnings\nfrom urlparse import urlparse\nimport pytz\n\nimport sqlalchemy\nfrom pylons import config as pylons_config\nimport formencode\n\nimport ckan.config.routing as routing\nimport ckan.model as model... | [
{
"content": "# encoding: utf-8\n\n'''CKAN environment configuration'''\nimport os\nimport logging\nimport warnings\nfrom urlparse import urlparse\nimport pytz\n\nimport sqlalchemy\nfrom pylons import config as pylons_config\nimport formencode\n\nimport ckan.config.routing as routing\nimport ckan.model as model... | diff --git a/ckan/config/environment.py b/ckan/config/environment.py
index 585255ad9fc..1b246205de2 100644
--- a/ckan/config/environment.py
+++ b/ckan/config/environment.py
@@ -135,6 +135,8 @@ def find_controller(self, controller):
'ckan.datastore.read_url': 'CKAN_DATASTORE_READ_URL',
'ckan.redis.url': 'CKAN_... |
jupyterhub__zero-to-jupyterhub-k8s-270 | nodeSelector support
I'd like to use node pools on GKE to have a cheaper nodes like `n1-standard-1` host hub related pods and a more expensive nodes host user pods. Is there support for `nodeSelect` pod configuration for the hub and singleuser pods?
https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
... | [
{
"content": "import os\nimport sys\nimport yaml\nfrom tornado.httpclient import AsyncHTTPClient\n\ndef get_config(key, default=None):\n \"\"\"\n Find a config item of a given name & return it\n\n Parses everything as YAML, so lists and dicts are available too\n \"\"\"\n path = os.path.join('/etc... | [
{
"content": "import os\nimport sys\nimport yaml\nfrom tornado.httpclient import AsyncHTTPClient\n\ndef get_config(key, default=None):\n \"\"\"\n Find a config item of a given name & return it\n\n Parses everything as YAML, so lists and dicts are available too\n \"\"\"\n path = os.path.join('/etc... | diff --git a/images/hub/jupyterhub_config.py b/images/hub/jupyterhub_config.py
index 2c0a9212db..630874e5a4 100644
--- a/images/hub/jupyterhub_config.py
+++ b/images/hub/jupyterhub_config.py
@@ -71,6 +71,7 @@ def get_secret(key, default=None):
c.KubeSpawner.singleuser_uid = get_config('singleuser.uid')
c.KubeSpawner.... |
mne-tools__mne-python-6895 | DOC: bad tutorial formatting
In this tutorial: https://mne.tools/dev/auto_tutorials/preprocessing/plot_45_projectors_background.html#computing-projectors
a section is getting rendered as python comments instead of an rST block.
| [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\n.. _tut-projectors-background:\n\nBackground on projectors and projections\n========================================\n\nThis tutorial provides background information on projectors and Signal Space\nProjection (SSP), and covers loading and saving projectors, adding ... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\n.. _tut-projectors-background:\n\nBackground on projectors and projections\n========================================\n\nThis tutorial provides background information on projectors and Signal Space\nProjection (SSP), and covers loading and saving projectors, adding ... | diff --git a/tutorials/preprocessing/plot_45_projectors_background.py b/tutorials/preprocessing/plot_45_projectors_background.py
index 5c62c0b7177..d55031baf7b 100644
--- a/tutorials/preprocessing/plot_45_projectors_background.py
+++ b/tutorials/preprocessing/plot_45_projectors_background.py
@@ -308,7 +308,6 @@ def set... |
facebookresearch__hydra-594 | Fish completion is not working
Fish completion does not seem to work:
```
$ python my_app.py -sc install=fish | source
$ python my_app.py <TAB> string split: Unknown option “-n”
- (line 2):
string split -n ' ' $COMP_LINE
^
in command substitution
... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport logging\nimport os\nimport sys\nfrom typing import List, Optional, Tuple\n\nfrom hydra.plugins.completion_plugin import CompletionPlugin\n\nlog = logging.getLogger(__name__)\n\n\nclass FishCompletion(CompletionPlugin):\... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport logging\nimport os\nimport sys\nfrom typing import List, Optional, Tuple\n\nfrom hydra.plugins.completion_plugin import CompletionPlugin\n\nlog = logging.getLogger(__name__)\n\n\nclass FishCompletion(CompletionPlugin):\... | diff --git a/hydra/_internal/core_plugins/fish_completion.py b/hydra/_internal/core_plugins/fish_completion.py
index 10b86de567e..96b0ca5d92f 100644
--- a/hydra/_internal/core_plugins/fish_completion.py
+++ b/hydra/_internal/core_plugins/fish_completion.py
@@ -16,7 +16,7 @@ def install(self) -> None:
set -lx COMP_... |
microsoft__torchgeo-626 | Update README
Before blog: update verbiage and add pics from blog/paper.
After blog: add link to blog.
| [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\n\"\"\"TorchGeo: datasets, transforms, and models for geospatial data.\n\nThis library is part of the `PyTorch <http://pytorch.org/>`_ project. PyTorch is an open\nsource machine learning framework.\n\... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\n\"\"\"TorchGeo: datasets, samplers, transforms, and pre-trained models for geospatial data.\n\nThis library is part of the `PyTorch <http://pytorch.org/>`_ project. PyTorch is an open\nsource machine ... | diff --git a/CITATION.cff b/CITATION.cff
index e3ca700bd01..7ec4104865a 100644
--- a/CITATION.cff
+++ b/CITATION.cff
@@ -17,6 +17,6 @@ preferred-citation:
given-names: "Arindam"
journal: "arXiv preprint arXiv:2111.08872"
month: 11
- title: "TorchGeo: deep learning with geospatial data"
+ title: "TorchGeo: ... |
paperless-ngx__paperless-ngx-3305 | [BUG] Email tag rule inverted for non Gmail labels
### Description
Caused by https://github.com/paperless-ngx/paperless-ngx/pull/3240 which removed the X-GM-LABELS when the server doesn't support it, but (seemingly) kept the “NOT“ before it.
### Steps to reproduce
1. Create a rule with tag for non-GM
2. Should fetc... | [
{
"content": "import datetime\nimport itertools\nimport logging\nimport os\nimport tempfile\nimport traceback\nfrom datetime import date\nfrom datetime import timedelta\nfrom fnmatch import fnmatch\nfrom typing import Dict\nfrom typing import List\nfrom typing import Union\n\nimport magic\nimport pathvalidate\n... | [
{
"content": "import datetime\nimport itertools\nimport logging\nimport os\nimport tempfile\nimport traceback\nfrom datetime import date\nfrom datetime import timedelta\nfrom fnmatch import fnmatch\nfrom typing import Dict\nfrom typing import List\nfrom typing import Union\n\nimport magic\nimport pathvalidate\n... | diff --git a/src/paperless_mail/mail.py b/src/paperless_mail/mail.py
index 3851cf59012..45cf57aa1ea 100644
--- a/src/paperless_mail/mail.py
+++ b/src/paperless_mail/mail.py
@@ -168,7 +168,7 @@ def get_criteria(self):
if self.supports_gmail_labels:
return AND(NOT(gmail_label=self.keyword), ... |
AUTOMATIC1111__stable-diffusion-webui-4086 | [Bug]: Cannot disable writing of PNG Info
### Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
### What happened?
Unchecking this setting (and applying)
Save text information about generation parameters as chunks to png files
No longer prevents... | [
{
"content": "import datetime\r\nimport sys\r\nimport traceback\r\n\r\nimport pytz\r\nimport io\r\nimport math\r\nimport os\r\nfrom collections import namedtuple\r\nimport re\r\n\r\nimport numpy as np\r\nimport piexif\r\nimport piexif.helper\r\nfrom PIL import Image, ImageFont, ImageDraw, PngImagePlugin\r\nfrom... | [
{
"content": "import datetime\r\nimport sys\r\nimport traceback\r\n\r\nimport pytz\r\nimport io\r\nimport math\r\nimport os\r\nfrom collections import namedtuple\r\nimport re\r\n\r\nimport numpy as np\r\nimport piexif\r\nimport piexif.helper\r\nfrom PIL import Image, ImageFont, ImageDraw, PngImagePlugin\r\nfrom... | diff --git a/modules/images.py b/modules/images.py
index a0728553d39..ae705cbd5bc 100644
--- a/modules/images.py
+++ b/modules/images.py
@@ -510,8 +510,9 @@ def exif_bytes():
if extension.lower() == '.png':
pnginfo_data = PngImagePlugin.PngInfo()
- for k, v in params.pnginfo.items():
- ... |
obspy__obspy-3421 | peak_ground_motion description
Sorry this is a minor thing - I believe the description line of the obspy.signal.freqattributes.peak_ground_motion
function is not correct:
https://github.com/obspy/obspy/blob/master/obspy/signal/freqattributes.py#L376
standard frequencies for ShakeMaps are 0.3/1.0/3.0 Hz
where th... | [
{
"content": "# -*- coding: utf-8 -*-\n# -----------------------------------------------------------------\n# Filename: freqattributes.py\n# Author: Conny Hammer\n# Email: conny.hammer@geo.uni-potsdam.de\n#\n# Copyright (C) 2008-2012 Conny Hammer\n# ---------------------------------------------------------... | [
{
"content": "# -*- coding: utf-8 -*-\n# -----------------------------------------------------------------\n# Filename: freqattributes.py\n# Author: Conny Hammer\n# Email: conny.hammer@geo.uni-potsdam.de\n#\n# Copyright (C) 2008-2012 Conny Hammer\n# ---------------------------------------------------------... | diff --git a/obspy/signal/freqattributes.py b/obspy/signal/freqattributes.py
index 137c52c77d..398dd3f1ad 100644
--- a/obspy/signal/freqattributes.py
+++ b/obspy/signal/freqattributes.py
@@ -372,8 +372,9 @@ def peak_ground_motion(data, delta, freq, damp=0.1):
Peak ground motion parameters
Compute the maxima... |
cal-itp__benefits-1067 | Content Security Policy frame-src should not extend "none"
The default CSP `frame-src` setting [we configure is `["'none'"]`](https://github.com/cal-itp/benefits/blob/dev/benefits/settings.py#L275).
Then we `.extend()` that list with any additional allowed frame sources. But this is not correct in CSP, either `'none... | [
{
"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 9ddfd8a314..15e9423834 100644
--- a/benefits/settings.py
+++ b/benefits/settings.py
@@ -274,10 +274,10 @@ def _filter_empty(ls):
CSP_FRAME_SRC = ["'none'"]
env_frame_src = _filter_empty(os.environ.get("DJANGO_CSP_FRAME_SRC", "").split(","))
-CSP_FRAME_S... |
pystiche__pystiche-132 | Create encoding preprocessors not until runtime
Right now the preprocessors are created at import
https://github.com/pmeier/pystiche/blob/cad5ab6e9485680f2543cf4397d0d21e72a88b9e/pystiche/enc/preprocessing.py#L1-L4
We should only create them if they are needed to speed up the import.
| [
{
"content": "from torch import nn\nfrom pystiche.image import TorchPreprocessing, CaffePreprocessing\n\nPREPROCESSORS = {\"torch\": TorchPreprocessing(), \"caffe\": CaffePreprocessing()}\n\n__all__ = [\"get_preprocessor\"]\n\n\ndef get_preprocessor(framework: str) -> nn.Module:\n return PREPROCESSORS[framew... | [
{
"content": "from torch import nn\nfrom pystiche.image import TorchPreprocessing, CaffePreprocessing\n\nPREPROCESSORS = {\"torch\": TorchPreprocessing, \"caffe\": CaffePreprocessing}\n\n__all__ = [\"get_preprocessor\"]\n\n\ndef get_preprocessor(framework: str) -> nn.Module:\n return PREPROCESSORS[framework]... | diff --git a/pystiche/enc/preprocessing.py b/pystiche/enc/preprocessing.py
index c6f4dbfd..c49b3e99 100644
--- a/pystiche/enc/preprocessing.py
+++ b/pystiche/enc/preprocessing.py
@@ -1,10 +1,10 @@
from torch import nn
from pystiche.image import TorchPreprocessing, CaffePreprocessing
-PREPROCESSORS = {"torch": Torch... |
MongoEngine__mongoengine-1675 | Pushing a list of values into a list field works not correct from version 0.14
Example of code
```python
document.update(push__mylist=['value1', 123])
document.update(push__mylist=['value2', 456])
```
In Mongoengine < 0.14 this code produce the follow document in the mongodb:
```
{
...
"mylist": [["value1"... | [
{
"content": "from collections import defaultdict\n\nfrom bson import ObjectId, SON\nfrom bson.dbref import DBRef\nimport pymongo\nimport six\n\nfrom mongoengine.base import UPDATE_OPERATORS\nfrom mongoengine.common import _import_class\nfrom mongoengine.connection import get_connection\nfrom mongoengine.errors... | [
{
"content": "from collections import defaultdict\n\nfrom bson import ObjectId, SON\nfrom bson.dbref import DBRef\nimport pymongo\nimport six\n\nfrom mongoengine.base import UPDATE_OPERATORS\nfrom mongoengine.common import _import_class\nfrom mongoengine.connection import get_connection\nfrom mongoengine.errors... | diff --git a/mongoengine/queryset/transform.py b/mongoengine/queryset/transform.py
index a9907adac..3eadaf640 100644
--- a/mongoengine/queryset/transform.py
+++ b/mongoengine/queryset/transform.py
@@ -344,8 +344,6 @@ def update(_doc_cls=None, **update):
if not isinstance(value, (set, tuple, list)):
... |
gratipay__gratipay.com-2491 | can't save any profile info
Reported by @chrisamaphone on [Twitter](https://twitter.com/chrisamaphone/status/476775868778704896).
| [
{
"content": "\"\"\"Cross Site Request Forgery middleware, borrowed from Django.\n\nSee also:\n\n https://github.com/django/django/blob/master/django/middleware/csrf.py\n https://docs.djangoproject.com/en/dev/ref/contrib/csrf/\n https://github.com/gittip/www.gittip.com/issues/88\n\n\"\"\"\n\nfrom datet... | [
{
"content": "\"\"\"Cross Site Request Forgery middleware, borrowed from Django.\n\nSee also:\n\n https://github.com/django/django/blob/master/django/middleware/csrf.py\n https://docs.djangoproject.com/en/dev/ref/contrib/csrf/\n https://github.com/gittip/www.gittip.com/issues/88\n\n\"\"\"\n\nfrom datet... | diff --git a/gittip/security/csrf.py b/gittip/security/csrf.py
index c46d870492..65034a414a 100644
--- a/gittip/security/csrf.py
+++ b/gittip/security/csrf.py
@@ -148,7 +148,7 @@ def outbound(request, response):
"""
csrf_token = request.context.get('csrf_token')
if csrf_token:
- response.set_cooki... |
aio-libs__aiohttp-6718 | Missing `f` prefix on f-strings
Some strings looks like they're meant to be f-strings but are missing the `f` prefix meaning variable interpolation won't happen.
https://github.com/aio-libs/aiohttp/blob/e79a03de3c6b855ebe23a06f536fbdcd763beef6/aiohttp/client_reqrep.py#L218
I found this issue automatically. I'm a bot.... | [
{
"content": "import asyncio\nimport codecs\nimport dataclasses\nimport functools\nimport io\nimport re\nimport sys\nimport traceback\nimport warnings\nfrom hashlib import md5, sha1, sha256\nfrom http.cookies import CookieError, Morsel, SimpleCookie\nfrom types import MappingProxyType, TracebackType\nfrom typin... | [
{
"content": "import asyncio\nimport codecs\nimport dataclasses\nimport functools\nimport io\nimport re\nimport sys\nimport traceback\nimport warnings\nfrom hashlib import md5, sha1, sha256\nfrom http.cookies import CookieError, Morsel, SimpleCookie\nfrom types import MappingProxyType, TracebackType\nfrom typin... | diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py
index d54fffa0aaa..733cd48f63c 100644
--- a/aiohttp/client_reqrep.py
+++ b/aiohttp/client_reqrep.py
@@ -215,7 +215,7 @@ def __init__(
if match:
raise ValueError(
f"Method cannot contain non-token characters {method!r... |
microsoft__botbuilder-python-886 | SkillDialog not working for non-'expected replies' scenario
## Version
4.8.0
## Describe the bug
SkillDialog won't work out of the box for non expected-replies scenarios.
## To Reproduce
Steps to reproduce the behavior:
1. Set up a root bot using skill dialog and a skill bot
2. Run both bots and initiate the... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n# pylint: disable=no-member\n\nimport json\nfrom typing import Dict\nfrom logging import Logger\n\nimport aiohttp\nfrom botbuilder.core import InvokeResponse\nfrom botbuilder.core.skills import BotFrame... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n# pylint: disable=no-member\n\nimport json\nfrom typing import Dict\nfrom logging import Logger\n\nimport aiohttp\nfrom botbuilder.core import InvokeResponse\nfrom botbuilder.core.skills import BotFrame... | diff --git a/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/bot_framework_http_client.py b/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/bot_framework_http_client.py
index 3fa2f448d..7b1c02bd0 100644
--- a/libraries/botbuilder-integration-aiohttp/botbuilder/integration... |
interlegis__sapl-1886 | Documentos administrativos: erro ao adicionar
Ao adicionar um documento administrativo, o sistema responde que já existe. Porém, na pesquisa por documentos adminsitrativos, ele não aparece.
https://sapl3.agudo.rs.leg.br/docadm/pesq-doc-adm?page=1&tipo=&numero=&ano=2018&protocolo__numero=&data_0=&data_1=&interessado=&... | [
{
"content": "\nimport django_filters\nfrom crispy_forms.bootstrap import InlineRadios\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import HTML, Button, Fieldset, Layout\nfrom django import forms\nfrom django.core.exceptions import (MultipleObjectsReturned,\n ... | [
{
"content": "\nimport django_filters\nfrom crispy_forms.bootstrap import InlineRadios\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import HTML, Button, Fieldset, Layout\nfrom django import forms\nfrom django.core.exceptions import (MultipleObjectsReturned,\n ... | diff --git a/sapl/protocoloadm/forms.py b/sapl/protocoloadm/forms.py
index eff6d09a1..dc3d5280c 100644
--- a/sapl/protocoloadm/forms.py
+++ b/sapl/protocoloadm/forms.py
@@ -669,7 +669,7 @@ def clean(self):
tipo_documento = self.data['tipo']
documento = DocumentoAdministrativo.objects.filter(numero=n... |
fossasia__open-event-server-6346 | Typo in the notification invitation message
**Describe the bug**
<!-- A clear and concise description of what the bug is. -->
Currently, one user gets the notification-<b>You've been invited to be `a` attendee at TEST EVENT2.</b> But for attendees and for organizer, it should be changed to-<b> You've been invited to ... | [
{
"content": "\"\"\"\nUser Notification Structures and Actions.\n\"\"\"\nfrom app.api.helpers.db import save_to_db\nfrom app.models.notification import (\n EVENT_ROLE,\n NEW_SESSION,\n SESSION_SCHEDULE,\n NEXT_EVENT,\n SESSION_ACCEPT_REJECT,\n INVITE_PAPERS,\n AFTER_EVENT,\n EVENT_PUBLIS... | [
{
"content": "\"\"\"\nUser Notification Structures and Actions.\n\"\"\"\nfrom app.api.helpers.db import save_to_db\nfrom app.models.notification import (\n EVENT_ROLE,\n NEW_SESSION,\n SESSION_SCHEDULE,\n NEXT_EVENT,\n SESSION_ACCEPT_REJECT,\n INVITE_PAPERS,\n AFTER_EVENT,\n EVENT_PUBLIS... | diff --git a/app/api/helpers/system_notifications.py b/app/api/helpers/system_notifications.py
index 8be77ceff3..02e08a0dc3 100644
--- a/app/api/helpers/system_notifications.py
+++ b/app/api/helpers/system_notifications.py
@@ -392,7 +392,7 @@ def get_invite_papers_notification_actions(cfs_link, submit_link):
},
... |
conda__conda-5835 | Change default value for 'allow_softlinks' from True to False
The `allow_softlinks` configuration parameter can be dangerous. Softlinks into prefixes directly from the package cache will often lead to environment corruption. It was an oversight that the default value for `allow_softlinks` is set to `True`. In conda ... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom logging import getLogger\nimport os\nfrom os.path import (abspath, basename, expanduser, isdir, isfile, join, normpath,\n split as path_split)\nfrom platform impo... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom logging import getLogger\nimport os\nfrom os.path import (abspath, basename, expanduser, isdir, isfile, join, normpath,\n split as path_split)\nfrom platform impo... | diff --git a/conda/base/context.py b/conda/base/context.py
index 8cef8de709a..c2d038ff9b2 100644
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -87,7 +87,7 @@ def ssl_verify_validation(value):
class Context(Configuration):
add_pip_as_python_dependency = PrimitiveParameter(True)
- allow_softlinks ... |
cupy__cupy-5941 | Documentation of `cupy.linalg.cholesky()` needs update
It already supports batched version, but the doctoring was not updated, and I got an internal question about it:
https://github.com/cupy/cupy/blob/a8a042c129670b90bd04d1cfcbac2901bdcc9e4d/cupy/linalg/_decomposition.py#L161
| [
{
"content": "import numpy\n\nimport cupy\nfrom cupy_backends.cuda.api import runtime\nfrom cupy_backends.cuda.libs import cublas\nfrom cupy_backends.cuda.libs import cusolver\nfrom cupy._core import internal\nfrom cupy.cuda import device\nfrom cupy.cusolver import check_availability\nfrom cupy.cusolver import ... | [
{
"content": "import numpy\n\nimport cupy\nfrom cupy_backends.cuda.api import runtime\nfrom cupy_backends.cuda.libs import cublas\nfrom cupy_backends.cuda.libs import cusolver\nfrom cupy._core import internal\nfrom cupy.cuda import device\nfrom cupy.cusolver import check_availability\nfrom cupy.cusolver import ... | diff --git a/cupy/linalg/_decomposition.py b/cupy/linalg/_decomposition.py
index 93baad18d0b..09fe472f4a9 100644
--- a/cupy/linalg/_decomposition.py
+++ b/cupy/linalg/_decomposition.py
@@ -158,10 +158,10 @@ def cholesky(a):
transpose operator.
Args:
- a (cupy.ndarray): The input matrix with dimension... |
matrix-org__synapse-8457 | "'NoneType' object has no attribute 'find'" prevents backfill
### Description
This happened while joining `#mozilla_#rust-wasm:matrix.org`
### Version information
- **Homeserver**: v1.20.1
- **Install method**: Docker
- **Platform**: Debian 10
### Tracebacks
```
synapse_1 | 2020-09-24 18:15:54,48... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2014 - 2016 OpenMarket Ltd\n# Copyright 2020 The Matrix.org Foundation C.I.C.\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\... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2014 - 2016 OpenMarket Ltd\n# Copyright 2020 The Matrix.org Foundation C.I.C.\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\... | diff --git a/changelog.d/8457.bugfix b/changelog.d/8457.bugfix
new file mode 100644
index 000000000000..545b06d180c1
--- /dev/null
+++ b/changelog.d/8457.bugfix
@@ -0,0 +1 @@
+Fix a bug where backfilling a room with an event that was missing the `redacts` field would break.
diff --git a/synapse/event_auth.py b/synapse/... |
celery__celery-4779 | Request on_timeout should ignore soft time limit exception
When Request.on_timeout receive a soft timeout from billiard, it does the same as if it was receiving a hard time limit exception. This is ran by the controller.
But the task may catch this exception and eg. return (this is what soft timeout are for).
Thi... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"Actual App instance implementation.\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nimport os\nimport threading\nimport warnings\nfrom collections import defaultdict, deque\nfrom datetime import datetime\nfrom operator import attrgetter\n\nfrom kom... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"Actual App instance implementation.\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nimport os\nimport threading\nimport warnings\nfrom collections import defaultdict, deque\nfrom datetime import datetime\nfrom operator import attrgetter\n\nfrom kom... | diff --git a/celery/app/base.py b/celery/app/base.py
index 08f3976ab97..f404a790bb2 100644
--- a/celery/app/base.py
+++ b/celery/app/base.py
@@ -170,7 +170,7 @@ class Celery(object):
fixups (List[str]): List of fix-up plug-ins (e.g., see
:mod:`celery.fixups.django`).
config_source (Union[... |
IntelPython__dpnp-376 | dpctl library name update - libDPPLSyclInterface.so --> libDPCTLSyclInterface.so
The dpctl library names need to be updated (https://github.com/IntelPython/dpnp/blob/master/setup.py#L156) from `libDPPLSyclInterface.so` -> `libDPCTLSyclInterface.so`.
@shssf @Alexander-Makaryev
| [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# *****************************************************************************\n# Copyright (c) 2016-2020, Intel Corporation\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permit... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# *****************************************************************************\n# Copyright (c) 2016-2020, Intel Corporation\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permit... | diff --git a/setup.py b/setup.py
index b2fe3707e0f0..5216e1bd117b 100644
--- a/setup.py
+++ b/setup.py
@@ -153,7 +153,7 @@
_dpctrl_include += [dpctl.get_include()]
# _dpctrl_libpath = for package build + for local build
_dpctrl_libpath += ["$ORIGIN/../dpctl"] + [os.path.join(dpctl.get_include(), '..')]
-... |
getsentry__sentry-23499 | AttributeError /api/0/organizations/{organization_slug}/sentry-apps/
## Important Details
How are you running Sentry?
<!-- Please pick one of the following -->
On-Premise w/ Docker, Sentry 21.1.0486d790, based on https://github.com/Rungutan/sentry-performance-monitoring
## Description
Opening of these sub ... | [
{
"content": "from sentry.api.bases import OrganizationEndpoint, add_integration_platform_metric_tag\nfrom sentry.api.paginator import OffsetPaginator\nfrom sentry.api.serializers import serialize\nfrom sentry.models import SentryApp\n\n\nclass OrganizationSentryAppsEndpoint(OrganizationEndpoint):\n @add_int... | [
{
"content": "from sentry.api.bases import OrganizationEndpoint, add_integration_platform_metric_tag\nfrom sentry.api.paginator import OffsetPaginator\nfrom sentry.api.serializers import serialize\nfrom sentry.models import SentryApp\n\n\nclass OrganizationSentryAppsEndpoint(OrganizationEndpoint):\n @add_int... | diff --git a/src/sentry/api/endpoints/organization_sentry_apps.py b/src/sentry/api/endpoints/organization_sentry_apps.py
index 8073c841f8e86a..315f9fcd863ea8 100644
--- a/src/sentry/api/endpoints/organization_sentry_apps.py
+++ b/src/sentry/api/endpoints/organization_sentry_apps.py
@@ -7,7 +7,7 @@
class OrganizationSe... |
getsentry__sentry-63350 | Change resolve text to "Resolve" instead of "Resolve in"
The modal reads "resolve in immediately" or "resolve in in the next release" which is a little silly - just remove the word "in" here.
<img width="530" alt="Screenshot 2024-01-10 at 1 43 24 PM" src="https://github.com/getsentry/sentry/assets/29959063/8cdca567... | [
{
"content": "from __future__ import annotations\n\nfrom typing import Any, List, Mapping, MutableMapping, Sequence\n\nimport requests as requests_\nimport sentry_sdk\nfrom django.urls import reverse\nfrom rest_framework import serializers\nfrom rest_framework.request import Request\nfrom rest_framework.respons... | [
{
"content": "from __future__ import annotations\n\nfrom typing import Any, List, Mapping, MutableMapping, Sequence\n\nimport requests as requests_\nimport sentry_sdk\nfrom django.urls import reverse\nfrom rest_framework import serializers\nfrom rest_framework.request import Request\nfrom rest_framework.respons... | diff --git a/src/sentry/integrations/slack/webhooks/action.py b/src/sentry/integrations/slack/webhooks/action.py
index db415a6c2cdbc2..ae285428afef14 100644
--- a/src/sentry/integrations/slack/webhooks/action.py
+++ b/src/sentry/integrations/slack/webhooks/action.py
@@ -292,7 +292,7 @@ def build_resolve_modal_payload(s... |
gratipay__gratipay.com-3021 | A suspicious user trying to log in results in a 500
https://app.getsentry.com/gratipay/gratipay-com/group/32039756/
<bountysource-plugin>
---
Want to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/4727299-a-suspicious-user-trying-to-log-in-results-in-a-500?utm_campaign=plugin&utm_cont... | [
{
"content": "\nfrom datetime import timedelta\nimport uuid\n\nfrom aspen.utils import utcnow\nfrom gratipay.models.participant import Participant\nfrom gratipay.utils import set_cookie\n\n\nSESSION = b'session'\nSESSION_REFRESH = timedelta(hours=1)\nSESSION_TIMEOUT = timedelta(hours=6)\n\n\nclass User(object):... | [
{
"content": "\nfrom datetime import timedelta\nimport uuid\n\nfrom aspen.utils import utcnow\nfrom gratipay.models.participant import Participant\nfrom gratipay.utils import set_cookie\n\n\nSESSION = b'session'\nSESSION_REFRESH = timedelta(hours=1)\nSESSION_TIMEOUT = timedelta(hours=6)\n\n\nclass User(object):... | diff --git a/gratipay/security/user.py b/gratipay/security/user.py
index 912ebe9f9e..86a490c51c 100644
--- a/gratipay/security/user.py
+++ b/gratipay/security/user.py
@@ -92,9 +92,7 @@ def ADMIN(self):
@property
def ANON(self):
- return self.participant is None or self.participant.is_suspicious is Tr... |
django-hijack__django-hijack-615 | Performance degraded after upgrade to 3.4.1
Current setup
```
Django==3.2.21
django-hijack==2.1.10
```
In current setup, it takes 3-4 seconds when we submit the form and impersonate a user. After upgrading to `django-hijack==3.4.1`, time to impersonate has increased to 120 seconds.
If we remove LockUserTabl... | [
{
"content": "from contextlib import contextmanager\n\nimport django\nfrom django.contrib.auth import BACKEND_SESSION_KEY, get_user_model, load_backend, login\nfrom django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin\nfrom django.db import transaction\nfrom django.http import HttpResponseB... | [
{
"content": "from contextlib import contextmanager\n\nimport django\nfrom django.contrib.auth import BACKEND_SESSION_KEY, get_user_model, load_backend, login\nfrom django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin\nfrom django.db import transaction\nfrom django.http import HttpResponseB... | diff --git a/hijack/tests/test_views.py b/hijack/tests/test_views.py
index a44e8906..cf3a0553 100644
--- a/hijack/tests/test_views.py
+++ b/hijack/tests/test_views.py
@@ -18,7 +18,9 @@ def test_dispatch__custom_manager(self, admin_user, rf):
class LockedView(views.LockUserTableMixin, View):
pass
... |
PaddlePaddle__PaddleNLP-8393 | [Bug]: examples/text_classification/ernie_doc/train.py 参数错误
### 软件环境
```Markdown
- paddlepaddle:
- paddlepaddle-gpu:
- paddlenlp:
```
### 重复问题
- [X] I have searched the existing issues
### 错误描述
```Markdown
examples/text_classification/ernie_doc/train.py
line 340:
predict(model, test_dataloader, args.f... | [
{
"content": "# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | [
{
"content": "# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | diff --git a/examples/text_classification/ernie_doc/train.py b/examples/text_classification/ernie_doc/train.py
index ea527016a997..754583dd748a 100644
--- a/examples/text_classification/ernie_doc/train.py
+++ b/examples/text_classification/ernie_doc/train.py
@@ -337,8 +337,8 @@ def do_train(args):
)
# Copy th... |
django-tastypie__django-tastypie-1286 | Docs build fails with Sphinx theme warning
Travis CI builds have been failing for a while with the following error (eg https://travis-ci.org/django-tastypie/django-tastypie/jobs/55462479):
Warning, treated as error:
WARNING: 'default' html theme has been renamed to 'classic'. Please change your html_theme setting eit... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Tastypie documentation build configuration file, created by\n# sphinx-quickstart on Sat May 22 21:44:34 2010.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Tastypie documentation build configuration file, created by\n# sphinx-quickstart on Sat May 22 21:44:34 2010.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this... | diff --git a/docs/conf.py b/docs/conf.py
index b4c2d3540..8362acce6 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -91,7 +91,7 @@
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
-html_theme = 'default'
+html_theme = 'classic'
# Them... |
modin-project__modin-2727 | [ASV] add index, columns, shape benchmarks
| [
{
"content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ... | [
{
"content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ... | diff --git a/asv_bench/benchmarks/benchmarks.py b/asv_bench/benchmarks/benchmarks.py
index c6c86a2c880..512c116abd5 100644
--- a/asv_bench/benchmarks/benchmarks.py
+++ b/asv_bench/benchmarks/benchmarks.py
@@ -580,3 +580,22 @@ def setup(self, shape):
def time_describe(self, shape):
execute(self.df.descri... |
aws-cloudformation__cfn-lint-1459 | Python2.7 dependency issue
*cfn-lint version: 0.29.4*
Hi,
When installing a project that has cfn-lint as a dependency ([moto](https://github.com/spulec/moto)) using Python2.7, I'm getting this error:
```
Searching for networkx~=2.1
Reading https://pypi.org/simple/networkx/
...
Best match: networkx 2.4
...
... | [
{
"content": "\"\"\"\nCopyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport codecs\nimport re\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n\ndef get_version(filename):\n with codecs.open(filename, 'r', 'utf-8') as fp:... | [
{
"content": "\"\"\"\nCopyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport codecs\nimport re\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n\ndef get_version(filename):\n with codecs.open(filename, 'r', 'utf-8') as fp:... | diff --git a/setup.py b/setup.py
index 12d9797e83..10d8f84fda 100644
--- a/setup.py
+++ b/setup.py
@@ -73,7 +73,7 @@ def get_version(filename):
'pathlib2>=2.3.0;python_version<="3.4"',
'importlib_resources~=1.0.2;python_version<"3.7"',
'networkx~=2.4;python_version>="3.5"',
- 'networkx... |
conda__conda-build-2176 | CONDA_PY=27, 34 not recognized by conda-build 3.0
Those values now leads to a search for Python 27.* which fails as illustrated here https://travis-ci.org/Ecpy/conda-recipes/builds/251547219.
This is likely o break a number of continuous integration scripts and break backwards compatibility. Furthermore setting CONDA_... | [
{
"content": "'''\nModule to store conda build settings.\n'''\nfrom __future__ import absolute_import, division, print_function\n\nimport copy\nfrom collections import namedtuple\nimport math\nimport os\nfrom os.path import abspath, expanduser, join\nimport shutil\nimport sys\nimport time\n\nfrom .conda_interfa... | [
{
"content": "'''\nModule to store conda build settings.\n'''\nfrom __future__ import absolute_import, division, print_function\n\nimport copy\nfrom collections import namedtuple\nimport math\nimport os\nfrom os.path import abspath, expanduser, join\nimport shutil\nimport sys\nimport time\n\nfrom .conda_interfa... | diff --git a/conda_build/config.py b/conda_build/config.py
index 38d7b00470..704060d4ba 100644
--- a/conda_build/config.py
+++ b/conda_build/config.py
@@ -160,6 +160,8 @@ def env(lang, default):
def set_lang(variant, lang):
value = env(lang, self.variant.get(lang))
if value:
+ ... |
voicepaw__so-vits-svc-fork-1157 | Unable to use svc pre-sd with pyannote.audio 3.1.1
### Describe the bug
To use svc pre-sd for a long audio file with multiple speakers, I followed the [setup guide](https://github.com/voicepaw/so-vits-svc-fork/#before-training) and manually installed pyannote.audio, getting the latest version, 3.1.1.
Attempting to ... | [
{
"content": "from __future__ import annotations\n\nfrom collections import defaultdict\nfrom logging import getLogger\nfrom pathlib import Path\n\nimport librosa\nimport soundfile as sf\nimport torch\nfrom joblib import Parallel, delayed\nfrom pyannote.audio import Pipeline\nfrom tqdm import tqdm\nfrom tqdm_jo... | [
{
"content": "from __future__ import annotations\n\nfrom collections import defaultdict\nfrom logging import getLogger\nfrom pathlib import Path\n\nimport librosa\nimport soundfile as sf\nimport torch\nfrom joblib import Parallel, delayed\nfrom pyannote.audio import Pipeline\nfrom tqdm import tqdm\nfrom tqdm_jo... | diff --git a/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py b/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py
index bae1329c..a0b3e04b 100644
--- a/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py
+++ b/src/so_vits_svc_fork/preprocessing/preprocess_speaker_... |
ansible__ansible-39453 | run_once and smart gathering
<!---
Verify first that your issue/request is not already reported on GitHub.
THIS FORM WILL BE READ BY A MACHINE, COMPLETE ALL SECTIONS AS DESCRIBED.
Also test if the latest release, and devel branch are affected too.
ALWAYS add information AFTER (OUTSIDE) these html comments.
Otherwi... | [
{
"content": "# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible 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 3 of the Licen... | [
{
"content": "# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible 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 3 of the Licen... | diff --git a/lib/ansible/executor/play_iterator.py b/lib/ansible/executor/play_iterator.py
index faa54254623777..aaaa59697ba82e 100644
--- a/lib/ansible/executor/play_iterator.py
+++ b/lib/ansible/executor/play_iterator.py
@@ -169,6 +169,9 @@ def __init__(self, inventory, play, play_context, variable_manager, all_vars,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.