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
⌀
pallets__werkzeug-1540
werkzeug times out when exception is raised I found this within a large Flask application but I managed to reproduce it. SQLAlchemy's exceptions contain an `.orig` attribute with the original DBAPI exception. I only raised it to see it in the werkzeug debugger, and found that the debugger page never loads. ```pyt...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.debug.tbtools\n ~~~~~~~~~~~~~~~~~~~~~~\n\n This module provides various traceback related utility functions.\n\n :copyright: 2007 Pallets\n :license: BSD-3-Clause\n\"\"\"\nimport codecs\nimport inspect\nimport json\nimport os\nimport re\nim...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.debug.tbtools\n ~~~~~~~~~~~~~~~~~~~~~~\n\n This module provides various traceback related utility functions.\n\n :copyright: 2007 Pallets\n :license: BSD-3-Clause\n\"\"\"\nimport codecs\nimport inspect\nimport json\nimport os\nimport re\nim...
diff --git a/CHANGES.rst b/CHANGES.rst index 0df304c55..87033da6a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -18,6 +18,8 @@ Unreleased float values. (:issue:`1511`) - Update :class:`~middleware.lint.LintMiddleware` to work on Python 3. (:issue:`1510`) +- The debugger detects cycles in chained exceptio...
svthalia__concrexit-1721
Groups miss description in API v2 ### Describe the bug The `description` field is missing in the `activemembers/groups` serializers. ### How to reproduce Look at swagger. ### Expected behaviour An extra field for the description, at least in the detail endpoints. ### Additional context Also something to d...
[ { "content": "from rest_framework import serializers\n\nfrom activemembers.api.v2.serializers.member_group_membership import (\n MemberGroupMembershipSerializer,\n)\nfrom activemembers.models import MemberGroup\nfrom thaliawebsite.api.v2.serializers import ThumbnailSerializer\n\n\nclass MemberGroupSerializer...
[ { "content": "from rest_framework import serializers\n\nfrom activemembers.api.v2.serializers.member_group_membership import (\n MemberGroupMembershipSerializer,\n)\nfrom activemembers.models import MemberGroup\nfrom thaliawebsite.api.v2.serializers import ThumbnailSerializer\n\n\nclass MemberGroupSerializer...
diff --git a/website/activemembers/api/v2/serializers/member_group.py b/website/activemembers/api/v2/serializers/member_group.py index d99f5fbe7..b47549c4c 100644 --- a/website/activemembers/api/v2/serializers/member_group.py +++ b/website/activemembers/api/v2/serializers/member_group.py @@ -24,6 +24,7 @@ class Meta: ...
holoviz__panel-3040
TQDM removes text color set by user via style parameter See https://discourse.holoviz.org/t/tdqm-text-color-change/3193 I will put in a fix now. TQDM removes text color set by user via style parameter See https://discourse.holoviz.org/t/tdqm-text-color-change/3193 I will put in a fix now.
[ { "content": "import os\nimport sys\nimport warnings\n\nfrom math import pi\n\nimport numpy as np\nimport param\n\nfrom bokeh.plotting import figure\nfrom bokeh.models import ColumnDataSource\nfrom tqdm.asyncio import tqdm as _tqdm\n\nfrom ..layout import Column, Row\nfrom ..models import (\n HTML, Progress ...
[ { "content": "import os\nimport sys\nimport warnings\n\nfrom math import pi\n\nimport numpy as np\nimport param\n\nfrom bokeh.plotting import figure\nfrom bokeh.models import ColumnDataSource\nfrom tqdm.asyncio import tqdm as _tqdm\n\nfrom ..layout import Column, Row\nfrom ..models import (\n HTML, Progress ...
diff --git a/panel/tests/widgets/test_indicators.py b/panel/tests/widgets/test_indicators.py index 73daa3c2ec..e91ba57c85 100644 --- a/panel/tests/widgets/test_indicators.py +++ b/panel/tests/widgets/test_indicators.py @@ -1,6 +1,6 @@ import pytest -from panel.widgets.indicators import Dial, Gauge, Number +from pane...
apache__airflow-24772
AIP-45 breaks follow-on mini scheduler for mapped tasks I've just noticed that this causes a problem for the follow-on mini scheduler for mapped tasks. I guess that code path wasn't sufficiently unit tested. DAG ```python import csv import io import os import json from datetime import datetime from airflo...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
diff --git a/airflow/models/mappedoperator.py b/airflow/models/mappedoperator.py index 21a265e6e904c..e34b1501bc346 100644 --- a/airflow/models/mappedoperator.py +++ b/airflow/models/mappedoperator.py @@ -240,7 +240,17 @@ def _expand(self, **mapped_kwargs: "Mappable") -> "MappedOperator": return op -@attr....
CTFd__CTFd-1876
The REST API for deleting files does not remove the file's directory and does not update the Media Library list **Environment**: - CTFd Version/Commit: 3.2.1 - Operating System: Docker (`python:3.6-slim-buster`) - Web Browser and Version: NA **What happened?** I am using the REST API for deleting files (e.g...
[ { "content": "import os\nimport posixpath\nimport string\nfrom shutil import copyfileobj\n\nimport boto3\nfrom flask import current_app, redirect, send_file\nfrom flask.helpers import safe_join\nfrom werkzeug.utils import secure_filename\n\nfrom CTFd.utils import get_app_config\nfrom CTFd.utils.encoding import ...
[ { "content": "import os\nimport posixpath\nimport string\nfrom pathlib import PurePath\nfrom shutil import copyfileobj, rmtree\n\nimport boto3\nfrom flask import current_app, redirect, send_file\nfrom flask.helpers import safe_join\nfrom werkzeug.utils import secure_filename\n\nfrom CTFd.utils import get_app_co...
diff --git a/CTFd/utils/uploads/uploaders.py b/CTFd/utils/uploads/uploaders.py index 9220c7442..1a457d06b 100644 --- a/CTFd/utils/uploads/uploaders.py +++ b/CTFd/utils/uploads/uploaders.py @@ -1,7 +1,8 @@ import os import posixpath import string -from shutil import copyfileobj +from pathlib import PurePath +from shu...
freedomofpress__securedrop-563
Codename with a ‘/‘ causes an exception (or ‘\’) STR: 1. Visit `/login` on the source interface 2. Type "/" in the codename field and submit the form. In development, you can see from the traceback that this raises a CryptoException. This is intentional - we intentionally check the codenames for dangerous characters a...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nfrom datetime import datetime\nimport uuid\nfrom functools import wraps\nimport zipfile\nfrom cStringIO import StringIO\nimport subprocess\n\nimport logging\n# This module's logger is explicitly labeled so the correct logger is used,\n# even when this is run fro...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nfrom datetime import datetime\nimport uuid\nfrom functools import wraps\nimport zipfile\nfrom cStringIO import StringIO\nimport subprocess\n\nimport logging\n# This module's logger is explicitly labeled so the correct logger is used,\n# even when this is run fro...
diff --git a/securedrop/source.py b/securedrop/source.py index f82d7b070b..f5447d1a77 100644 --- a/securedrop/source.py +++ b/securedrop/source.py @@ -277,11 +277,15 @@ def valid_codename(codename): def login(): if request.method == 'POST': codename = request.form['codename'] - if valid_codename(c...
scverse__scanpy-2849
Documentation for percent_top= in scanpy.pp.calculate_qc_metrics is unclear and contradictory ### Please make sure these conditions are met - [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest version of scanpy. - [X] (optional) I have confirmed this ...
[ { "content": "\"\"\"Shared docstrings for preprocessing function parameters.\n\"\"\"\nfrom __future__ import annotations\n\ndoc_adata_basic = \"\"\"\\\nadata\n Annotated data matrix.\\\n\"\"\"\n\ndoc_expr_reps = \"\"\"\\\nlayer\n If provided, use `adata.layers[layer]` for expression values instead\n of...
[ { "content": "\"\"\"Shared docstrings for preprocessing function parameters.\n\"\"\"\nfrom __future__ import annotations\n\ndoc_adata_basic = \"\"\"\\\nadata\n Annotated data matrix.\\\n\"\"\"\n\ndoc_expr_reps = \"\"\"\\\nlayer\n If provided, use `adata.layers[layer]` for expression values instead\n of...
diff --git a/docs/release-notes/1.10.0.md b/docs/release-notes/1.10.0.md index 886bc17336..3e47d20a15 100644 --- a/docs/release-notes/1.10.0.md +++ b/docs/release-notes/1.10.0.md @@ -22,6 +22,7 @@ * Fixed a lot of broken usage examples {pr}`2605` {smaller}`P Angerer` * Improved harmonization of return field of `sc.pp...
conda__conda-build-158
Conda should automatically test imports of py_modules as well as packages Should be pretty simple to add. I'd make a PR myself but I haven't been able to make a dev install for conda-build yet (#141). More context: https://github.com/conda/conda-build/issues/139#issuecomment-49466828
[ { "content": "\"\"\"\nbdist_conda\n\n\"\"\"\nfrom __future__ import (print_function, division, unicode_literals,\n absolute_import)\n\nfrom collections import defaultdict\n\nfrom distutils.command.install import install\nfrom distutils.errors import DistutilsOptionError, DistutilsGetoptError\nfrom distutils....
[ { "content": "\"\"\"\nbdist_conda\n\n\"\"\"\nfrom __future__ import (print_function, division, unicode_literals,\n absolute_import)\n\nfrom collections import defaultdict\n\nfrom distutils.command.install import install\nfrom distutils.errors import DistutilsOptionError, DistutilsGetoptError\nfrom distutils....
diff --git a/bdist_conda.py b/bdist_conda.py index 2f0b74ba84..4f2fe8b7a5 100644 --- a/bdist_conda.py +++ b/bdist_conda.py @@ -232,11 +232,10 @@ def run(self): if 'setuptools' in d['requirements']['run']: d['build']['preserve_egg_dir'] = True - if metadata.conda_import_tests...
cobbler__cobbler-3396
[Backport] autoinstall_templates are installed into /var/lib/cobbler/templates ### Original feature issue - PR: #2590 ### Target release - [ ] release33 - [x] release32 - [ ] release30 ### Reason Stabilization of Cobbler 3.2.x in Fedora Ecosystem.
[ { "content": "\"\"\"\nBuilds out filesystem trees/data based on the object tree.\nThis is the code behind 'cobbler sync'.\n\nCopyright 2006-2009, Red Hat, Inc and Others\nMichael DeHaan <michael.dehaan AT gmail>\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the G...
[ { "content": "\"\"\"\nBuilds out filesystem trees/data based on the object tree.\nThis is the code behind 'cobbler sync'.\n\nCopyright 2006-2009, Red Hat, Inc and Others\nMichael DeHaan <michael.dehaan AT gmail>\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the G...
diff --git a/cobbler/actions/sync.py b/cobbler/actions/sync.py index 2667edb564..302c81de72 100644 --- a/cobbler/actions/sync.py +++ b/cobbler/actions/sync.py @@ -179,7 +179,7 @@ def clean_trees(self): if x not in self.settings.webdir_whitelist: # delete directories that shouldn't ...
bookwyrm-social__bookwyrm-1504
Pending follow requests still show up in suggested users An additional signal is needed to remove users from suggestions when a follow request is created
[ { "content": "\"\"\" store recommended follows in redis \"\"\"\nimport math\nimport logging\nfrom django.dispatch import receiver\nfrom django.db.models import signals, Count, Q\n\nfrom bookwyrm import models\nfrom bookwyrm.redis_store import RedisStore, r\nfrom bookwyrm.tasks import app\n\n\nlogger = logging.g...
[ { "content": "\"\"\" store recommended follows in redis \"\"\"\nimport math\nimport logging\nfrom django.dispatch import receiver\nfrom django.db.models import signals, Count, Q\n\nfrom bookwyrm import models\nfrom bookwyrm.redis_store import RedisStore, r\nfrom bookwyrm.tasks import app\n\n\nlogger = logging.g...
diff --git a/bookwyrm/suggested_users.py b/bookwyrm/suggested_users.py index e8f2363244..aa53fcb25c 100644 --- a/bookwyrm/suggested_users.py +++ b/bookwyrm/suggested_users.py @@ -148,6 +148,17 @@ def update_suggestions_on_follow(sender, instance, created, *args, **kwargs): rerank_user_task.delay(instance.user_obje...
liqd__a4-meinberlin-4915
Export-Button Problem in Modul "Brainstorming (with map)" on Prod, Stage and Dev **URL:** https://meinberlin-dev.liqd.net/dashboard/projects/multimodul-test-merkmalkategorie/basic/ **user:** initiator, admin **expected behaviour:** as I user I want to export all Ideas and Comments in all moduls which have Ideas/Propo...
[ { "content": "from django.urls import reverse\nfrom django.utils.translation import gettext_lazy as _\n\nfrom adhocracy4.dashboard import DashboardComponent\nfrom adhocracy4.dashboard import components\n\nfrom . import exports\nfrom . import views\n\n\nclass ExportMapIdeaComponent(DashboardComponent):\n iden...
[ { "content": "from django.urls import reverse\nfrom django.utils.translation import gettext_lazy as _\n\nfrom adhocracy4.dashboard import DashboardComponent\nfrom adhocracy4.dashboard import components\n\nfrom . import exports\nfrom . import views\n\n\nclass ExportMapIdeaComponent(DashboardComponent):\n iden...
diff --git a/meinberlin/apps/ideas/dashboard.py b/meinberlin/apps/ideas/dashboard.py index d3607f67d3..48d1bb0fff 100644 --- a/meinberlin/apps/ideas/dashboard.py +++ b/meinberlin/apps/ideas/dashboard.py @@ -15,7 +15,7 @@ class ExportIdeaComponent(DashboardComponent): def is_effective(self, module): retu...
spack__spack-12203
spack module (tcl|lcov|dotkit) loads: does not work with upstream packages `spack module * loads` does not work with upstream packages. ### Steps to reproduce the issue ```console $ spack module <module-type> loads <package_in_upstream> ``` ### Error Message ```console ==> Error: 'module' object has no a...
[ { "content": "# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\n\"\"\"Implementation details of the ``spack module`` command.\"\"\"\n\nimport collections\nimpo...
[ { "content": "# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\n\"\"\"Implementation details of the ``spack module`` command.\"\"\"\n\nimport collections\nimpo...
diff --git a/lib/spack/spack/cmd/modules/__init__.py b/lib/spack/spack/cmd/modules/__init__.py index c0f64b2c9d6be8..33367f6c88d055 100644 --- a/lib/spack/spack/cmd/modules/__init__.py +++ b/lib/spack/spack/cmd/modules/__init__.py @@ -130,15 +130,9 @@ def loads(module_type, specs, args, out=sys.stdout): ...
openstates__openstates-scrapers-1435
RI: state legislator first names contain middle initials For example, https://openstates.org/api/v1/legislators/RIL000179/ has first_name of "Moira J." and nothing in middle_name for Moira J. Walsh.
[ { "content": "import re\nimport string\n\nfrom billy.scrape import NoDataForPeriod\nfrom billy.scrape.legislators import LegislatorScraper, Legislator\nfrom openstates.utils import LXMLMixin\n\nimport lxml.html\nimport xlrd\n\nexcel_mapping = {\n 'district': 0,\n 'town_represented': 1,\n 'full_name': 2...
[ { "content": "import re\nimport string\n\nfrom billy.scrape import NoDataForPeriod\nfrom billy.scrape.legislators import LegislatorScraper, Legislator\nfrom openstates.utils import LXMLMixin\n\nimport lxml.html\nimport xlrd\n\nexcel_mapping = {\n 'district': 0,\n 'town_represented': 1,\n 'full_name': 2...
diff --git a/openstates/ri/legislators.py b/openstates/ri/legislators.py index 0974368c9b..8a849f1b65 100644 --- a/openstates/ri/legislators.py +++ b/openstates/ri/legislators.py @@ -128,8 +128,14 @@ def scrape(self, chamber, term): if d['address'] is '': d['address'] = 'No Address Found' ...
learningequality__kolibri-3630
Some sample learners from generate-user-data appearing out of order On Coach Learner Reports, these two appear at top of list Link to beta page: http://kolibribeta.learningequality.org/coach/#/fa4cbfeda32c0c0fbf1832fc1ddd10c3/learners <img width="540" alt="screen shot 2018-03-12 at 2 11 48 pm" src="https://user-i...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport datetime\nimport logging\nimport random\n\nfrom django.db.models import Max\nfrom django.db.models import Min\nfrom django.db.models import Sum\nfrom django.db.models.qu...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport datetime\nimport logging\nimport random\n\nfrom django.db.models import Max\nfrom django.db.models import Min\nfrom django.db.models import Sum\nfrom django.db.models.qu...
diff --git a/kolibri/logger/test/test_generateuserdata.py b/kolibri/logger/test/test_generateuserdata.py index 3de45f38b2e..0e00c00322d 100644 --- a/kolibri/logger/test/test_generateuserdata.py +++ b/kolibri/logger/test/test_generateuserdata.py @@ -50,3 +50,7 @@ def test_summary_logs_for_each_user(self): def tes...
dbt-labs__dbt-core-6698
[CT-924] `dbt init` works in click
[ { "content": "import inspect # This is temporary for RAT-ing\nfrom copy import copy\nfrom pprint import pformat as pf # This is temporary for RAT-ing\nfrom typing import List, Tuple, Optional\n\nimport click\nfrom dbt.cli import requires, params as p\nfrom dbt.config.project import Project\nfrom dbt.config.pr...
[ { "content": "import inspect # This is temporary for RAT-ing\nfrom copy import copy\nfrom pprint import pformat as pf # This is temporary for RAT-ing\nfrom typing import List, Tuple, Optional\n\nimport click\nfrom dbt.cli import requires, params as p\nfrom dbt.config.project import Project\nfrom dbt.config.pr...
diff --git a/.changes/unreleased/Under the Hood-20230124-175110.yaml b/.changes/unreleased/Under the Hood-20230124-175110.yaml new file mode 100644 index 00000000000..9d8e5b35907 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20230124-175110.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: dbt init works with...
googleapis__python-bigquery-164
Remove redundant dependencies I think we can remove the following from the dependencies list: https://github.com/googleapis/python-bigquery/blob/dbaf3bdc35656fdfef2d4380befdcc2392c1ca83/setup.py#L31-L43 * `google-auth` is already required via [google-api-core](https://github.com/googleapis/python-api-core/blob/ma...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
diff --git a/setup.py b/setup.py index ad2bcf68d..ea88debf7 100644 --- a/setup.py +++ b/setup.py @@ -30,16 +30,10 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ 'enum34; python_version < "3.4"', - "google-auth >= 1.9.0, < 2.0dev", - "google-api-core >= 1.15.0, < 2.0dev",...
xonsh__xonsh-3428
[color] in .gitconfig should be stripped in the prompt branch functions In clean install with no `.xonshrc`, when I change into a git repo, my prompt looks like: ![prompt](https://i.imgur.com/ZFOPSOj.png) Is there some setting I'm missing somewhere? ## xonfig <details> ``` +------------------+----------...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Prompt formatter for simple version control branches\"\"\"\n# pylint:disable=no-member, invalid-name\n\nimport os\nimport sys\nimport queue\nimport builtins\nimport threading\nimport subprocess\n\nimport xonsh.tools as xt\n\n\ndef _get_git_branch(q):\n denv = buil...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Prompt formatter for simple version control branches\"\"\"\n# pylint:disable=no-member, invalid-name\n\nimport os\nimport sys\nimport queue\nimport builtins\nimport threading\nimport subprocess\nimport re\n\nimport xonsh.tools as xt\nfrom xonsh.lazyasd import LazyObj...
diff --git a/news/3427-fix-vc-prompt-color.rst b/news/3427-fix-vc-prompt-color.rst new file mode 100644 index 0000000000..f9b3c5593c --- /dev/null +++ b/news/3427-fix-vc-prompt-color.rst @@ -0,0 +1,24 @@ +**Added:** + +* <news item> + +**Changed:** + +* <news item> + +**Deprecated:** + +* <news item> + +**Removed:** + ...
docker__docker-py-2726
Windows: remote docker context via SSH fails on Windows This bug-causing code was added in PR #2691 https://github.com/aiordache/docker-py/blob/f5531a94e1096f4c8456264f6511dfe89e1c825e/docker/transport/sshconn.py#L50 causes docker-compose fail on all commands when using a remote context using SSH on windows. ...
[ { "content": "import paramiko\nimport requests.adapters\nimport six\nimport logging\nimport os\nimport signal\nimport socket\nimport subprocess\n\nfrom docker.transport.basehttpadapter import BaseHTTPAdapter\nfrom .. import constants\n\nif six.PY3:\n import http.client as httplib\nelse:\n import httplib\n...
[ { "content": "import paramiko\nimport requests.adapters\nimport six\nimport logging\nimport os\nimport signal\nimport socket\nimport subprocess\n\nfrom docker.transport.basehttpadapter import BaseHTTPAdapter\nfrom .. import constants\n\nif six.PY3:\n import http.client as httplib\nelse:\n import httplib\n...
diff --git a/docker/transport/sshconn.py b/docker/transport/sshconn.py index 5cdaa2757..7f4b2a2d2 100644 --- a/docker/transport/sshconn.py +++ b/docker/transport/sshconn.py @@ -42,12 +42,17 @@ def connect(self, **kwargs): port, 'docker system dial-stdio' ] + + preexec_func = No...
kornia__kornia-2785
torch.solve should be always float64 ### Describe the bug As reported by @Parskatt in https://github.com/pytorch/vision/issues/8248 for torchvision, solving in float32 is unstable. Kornia has the same issue ### Reproduction steps ```bash https://twitter.com/Parskatt/status/1753389458479608315 ``` ### Expected b...
[ { "content": "import importlib.util\nimport platform\nimport sys\nimport warnings\nfrom functools import wraps\nfrom inspect import isclass, isfunction\nfrom typing import TYPE_CHECKING, Any, Callable, List, Optional, Tuple, Union, overload\n\nimport torch\nfrom torch.linalg import inv_ex\n\nfrom kornia.core im...
[ { "content": "import importlib.util\nimport platform\nimport sys\nimport warnings\nfrom functools import wraps\nfrom inspect import isclass, isfunction\nfrom typing import TYPE_CHECKING, Any, Callable, List, Optional, Tuple, Union, overload\n\nimport torch\nfrom torch.linalg import inv_ex\n\nfrom kornia.core im...
diff --git a/kornia/utils/helpers.py b/kornia/utils/helpers.py index e3a07122ee..a614165620 100644 --- a/kornia/utils/helpers.py +++ b/kornia/utils/helpers.py @@ -229,11 +229,11 @@ def _torch_solve_cast(A: Tensor, B: Tensor) -> Tensor: The function torch.solve is only implemented for fp32/64 which makes impossible...
docker__docker-py-2865
exec_run: filedescriptor out of range in select() (python3) The following code works with python2, but throws error on python3: ``` import docker files = [open('/tmp/test_' + str(i), 'w+b') for i in range(0, 1024)] client = docker.from_env() cnt = client.containers.run("ubuntu:18.04", command="sleep 10", detach=...
[ { "content": "import errno\nimport os\nimport select\nimport socket as pysocket\nimport struct\n\ntry:\n from ..transport import NpipeSocket\nexcept ImportError:\n NpipeSocket = type(None)\n\n\nSTDOUT = 1\nSTDERR = 2\n\n\nclass SocketError(Exception):\n pass\n\n\n# NpipeSockets have their own error typ...
[ { "content": "import errno\nimport os\nimport select\nimport socket as pysocket\nimport struct\nimport sys\n\ntry:\n from ..transport import NpipeSocket\nexcept ImportError:\n NpipeSocket = type(None)\n\n\nSTDOUT = 1\nSTDERR = 2\n\n\nclass SocketError(Exception):\n pass\n\n\n# NpipeSockets have their o...
diff --git a/docker/utils/socket.py b/docker/utils/socket.py index 47cb44f62..3c31a98c5 100644 --- a/docker/utils/socket.py +++ b/docker/utils/socket.py @@ -3,6 +3,7 @@ import select import socket as pysocket import struct +import sys try: from ..transport import NpipeSocket @@ -31,7 +32,13 @@ def read(socke...
beetbox__beets-4492
spotify: spotify_updated is always a "null" date I just checked the `spotify_updated` values and all the values are `1969-12-31 19:00:00`, which prevents the use of any date-related queries. I have seen this elsewhere, but cannot figure out how to fix the issue. Here's how the date is currently being saved http...
[ { "content": "# This file is part of beets.\n# Copyright 2019, Rahul Ahuja.\n# Copyright 2022, Alok Saboo.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction,...
[ { "content": "# This file is part of beets.\n# Copyright 2019, Rahul Ahuja.\n# Copyright 2022, Alok Saboo.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction,...
diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index f1aecb583e..66b2b1084b 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -19,7 +19,6 @@ import base64 import collections -import datetime import json import re import time @@ -648,7 +647,7 @@ def _fetch_info(self, items, write, force): ...
streamlink__streamlink-4877
plugins.atresplayer: error: Unable to validate response text: ValidationError(NoneOrAllSchema) ### Checklist - [X] This is a plugin issue and not a different kind of issue - [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink) - ...
[ { "content": "\"\"\"\n$description Spanish live TV channels from Atresmedia Television, including Antena 3 and laSexta.\n$url atresplayer.com\n$type live\n$region Spain\n\"\"\"\n\nimport logging\nimport re\nfrom urllib.parse import urlparse\n\nfrom streamlink.plugin import Plugin, pluginmatcher\nfrom streamlink...
[ { "content": "\"\"\"\n$description Spanish live TV channels from Atresmedia Television, including Antena 3 and laSexta.\n$url atresplayer.com\n$type live\n$region Spain\n\"\"\"\n\nimport logging\nimport re\nfrom urllib.parse import urlparse\n\nfrom streamlink.plugin import Plugin, pluginmatcher\nfrom streamlink...
diff --git a/src/streamlink/plugins/atresplayer.py b/src/streamlink/plugins/atresplayer.py index f19583a7f2d..242a4240757 100644 --- a/src/streamlink/plugins/atresplayer.py +++ b/src/streamlink/plugins/atresplayer.py @@ -22,10 +22,12 @@ r"https?://(?:www\.)?atresplayer\.com/" )) class AtresPlayer(Plugin): + d...
google__turbinia-1057
Turbiniactl output_manager call with wrong number of arguments turbiniactl.py calls output_manager.setup() using 3 arguments but the function requires 4. https://github.com/google/turbinia/blob/4373e6ad723597b488dc3a23508537a07fb6825d/turbinia/turbiniactl.py#L920 https://github.com/google/turbinia/blob/4373e6ad72...
[ { "content": "#!/usr/bin/env python\n#\n# Copyright 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# ...
[ { "content": "#!/usr/bin/env python\n#\n# Copyright 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# ...
diff --git a/turbinia/turbiniactl.py b/turbinia/turbiniactl.py index 7cb080ccc..639e7aaed 100644 --- a/turbinia/turbiniactl.py +++ b/turbinia/turbiniactl.py @@ -929,9 +929,13 @@ def process_evidence( if evidence_ and not args.force_evidence: if not config.SHARED_FILESYSTEM and evidence_.copyable: + # Thi...
ESMCI__cime-1180
Add --mpilib option to create_test Add a --mpilib option to create_test. This for machines that support more then one mpi library and you want to try to run an entire suite with the non-default library.
[ { "content": "\"\"\"\nfunctions for building CIME models\n\"\"\"\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.utils import get_model, append_status, analyze_build_log, stringify_bool\nfrom CIME.provenance import save_build_provenance\nfrom CIME.preview_namelists impor...
[ { "content": "\"\"\"\nfunctions for building CIME models\n\"\"\"\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.utils import get_model, append_status, analyze_build_log, stringify_bool\nfrom CIME.provenance import save_build_provenance\nfrom CIME.preview_namelists impor...
diff --git a/scripts/create_newcase b/scripts/create_newcase index 966cb54c23d..f0b969d87b5 100755 --- a/scripts/create_newcase +++ b/scripts/create_newcase @@ -54,7 +54,7 @@ OR parser.add_argument("--mpilib", "-mpilib", help="Specify the mpilib. " "To see list of ...
akvo__akvo-rsr-2608
UnicodeError when handling errors in project editor http://sentry.support.akvo-ops.org/rsr/live/group/1169/ ``` Stacktrace (most recent call last): File "django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "django/views/d...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nim...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nim...
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 19b784e3a8..11b615882d 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,11 @@ +# Akvo RSR version 3.23.1 New Delhi hotfix + +## Bug fixes + +[#2605](https://github.com/akvo/akvo-rsr/issues/2605) UnicodeError when handling errors in project editor + +...
pyca__cryptography-8260
Remove verify_interface Now that `register_interface` is gone we have no use for `verify_interface`, but https://github.com/aws/aws-encryption-sdk-python/issues/464 is a blocker for removing it.
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\n\nimport abc\nimport enum\nimport sys\nimport types\nimport typing\nimport warnings\n\n\n# We use a UserWarning s...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\n\nimport enum\nimport sys\nimport types\nimport typing\nimport warnings\n\n\n# We use a UserWarning subclass, ins...
diff --git a/src/cryptography/utils.py b/src/cryptography/utils.py index 8a97535203a3..b8da26bdd8ae 100644 --- a/src/cryptography/utils.py +++ b/src/cryptography/utils.py @@ -3,7 +3,6 @@ # for complete details. -import abc import enum import sys import types @@ -48,16 +47,6 @@ class InterfaceNotImplemented(Exce...
aws__aws-sdk-pandas-2136
wr.config.s3_endpoint_url is not loaded ### Describe the bug Env variable `WR_S3_ENDPOINT_URL` is not loaded into the `s3_endpoint_url` variable in `wr.config`. Setting it manually by `wr.config.s3_endpoint_url = os.environ['WR_S3_ENDPOINT_URL']` solves the problem. ### How to Reproduce ``` # In[1]: import p...
[ { "content": "\"\"\"Configuration file for AWS SDK for pandas.\"\"\"\n\nimport inspect\nimport logging\nimport os\nfrom typing import Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Type, TypeVar, Union, cast\n\nimport botocore.config\nimport pandas as pd\n\nfrom awswrangler import exceptions\n\n_logger...
[ { "content": "\"\"\"Configuration file for AWS SDK for pandas.\"\"\"\n\nimport inspect\nimport logging\nimport os\nfrom typing import Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Type, TypeVar, Union, cast\n\nimport botocore.config\nimport pandas as pd\n\nfrom awswrangler import exceptions\n\n_logger...
diff --git a/awswrangler/_config.py b/awswrangler/_config.py index 01e417d81..4651377ef 100644 --- a/awswrangler/_config.py +++ b/awswrangler/_config.py @@ -144,12 +144,12 @@ def to_pandas(self) -> pd.DataFrame: def _load_config(self, name: str) -> bool: if _CONFIG_ARGS[name].loaded: self._se...
CTFd__CTFd-614
Error on import: unsupported operand type(s) for +=: 'NoneType' and 'int' **Environment**: - CTFd Version/Commit: 1.1.4 - Operating System: Linux / Docker - Web Browser and Version: Latest Chrome **What happened?** Restoring from backup on the Web silently fails. Restoring from the command-line fails w...
[ { "content": "import base64\nimport datetime\nimport functools\nimport hashlib\nimport json\nimport logging\nimport logging.handlers\nimport mistune\nimport os\nimport re\nimport requests\nimport shutil\nimport six\nimport smtplib\nimport socket\nimport sys\nimport tempfile\nimport time\nimport dataset\nimport ...
[ { "content": "import base64\nimport datetime\nimport functools\nimport hashlib\nimport json\nimport logging\nimport logging.handlers\nimport mistune\nimport os\nimport re\nimport requests\nimport shutil\nimport six\nimport smtplib\nimport socket\nimport sys\nimport tempfile\nimport time\nimport dataset\nimport ...
diff --git a/CTFd/utils.py b/CTFd/utils.py index 85da9c7f5..4e72c79b6 100644 --- a/CTFd/utils.py +++ b/CTFd/utils.py @@ -948,9 +948,11 @@ def import_ctf(backup, segments=None, erase=False): continue for k, v in entry.items(): if k == 'ch...
tiangolo__fastapi-994
The generated OpenAPI schema duplicates parameter IDs when used with dependencies ### Describe the bug The generated OpenAPI schema duplicates parameter IDs when used with dependencies. ### To Reproduce Steps to reproduce the behavior with a minimum self-contained file. * Create a file with: ```Python f...
[ { "content": "import http.client\nfrom typing import Any, Dict, List, Optional, Sequence, Tuple, Type, cast\n\nfrom fastapi import routing\nfrom fastapi.dependencies.models import Dependant\nfrom fastapi.dependencies.utils import get_flat_dependant\nfrom fastapi.encoders import jsonable_encoder\nfrom fastapi.op...
[ { "content": "import http.client\nfrom typing import Any, Dict, List, Optional, Sequence, Tuple, Type, cast\n\nfrom fastapi import routing\nfrom fastapi.dependencies.models import Dependant\nfrom fastapi.dependencies.utils import get_flat_dependant\nfrom fastapi.encoders import jsonable_encoder\nfrom fastapi.op...
diff --git a/fastapi/openapi/utils.py b/fastapi/openapi/utils.py index d53ee6b97b736..91f90ec583785 100644 --- a/fastapi/openapi/utils.py +++ b/fastapi/openapi/utils.py @@ -180,7 +180,9 @@ def get_openapi_path( operation_parameters = get_openapi_operation_parameters(all_route_params) parameter...
saleor__saleor-2851
Creating empty order draft causes API to explode ### What I'm trying to achieve To get order draft details from API. ### Steps to reproduce the problem Execute this query ``` { orders { edges { node { id userEmail } } } } ``` ### What I expected to happen Def...
[ { "content": "import graphene\nfrom graphene import relay\n\nfrom ...order import OrderEvents, models\nfrom ..account.types import User\nfrom ..core.types.common import CountableDjangoObjectType\nfrom ..core.types.money import Money, TaxedMoney\nfrom decimal import Decimal\n\nOrderEventsEnum = graphene.Enum.fro...
[ { "content": "import graphene\nfrom graphene import relay\n\nfrom ...order import OrderEvents, models\nfrom ..account.types import User\nfrom ..core.types.common import CountableDjangoObjectType\nfrom ..core.types.money import Money, TaxedMoney\nfrom decimal import Decimal\n\nOrderEventsEnum = graphene.Enum.fro...
diff --git a/saleor/graphql/order/types.py b/saleor/graphql/order/types.py index d21db85f87d..555ef0dce92 100644 --- a/saleor/graphql/order/types.py +++ b/saleor/graphql/order/types.py @@ -98,6 +98,8 @@ class Order(CountableDjangoObjectType): events = graphene.List( OrderEvent, description='List ...
pyca__cryptography-1615
Backend loading code produces a warning with the latest setuptools The use `load(require=False)` (specifically the `require` kwarg) is deprecated. /cc @dstufft
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport pkg_resources\n\nfrom cryptography.haz...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport pkg_resources\n\nfrom cryptography.haz...
diff --git a/src/cryptography/hazmat/backends/__init__.py b/src/cryptography/hazmat/backends/__init__.py index 24c029f640c9..256fee395734 100644 --- a/src/cryptography/hazmat/backends/__init__.py +++ b/src/cryptography/hazmat/backends/__init__.py @@ -17,8 +17,13 @@ def _available_backends(): if _available_backen...
google-research__text-to-text-transfer-transformer-234
unable to run model.train() on HuggingFace model I have been finetuning hf model on several tasks for days, but since yesterday there have been errors when I run .train(), no matter on the tasks I created myself or already existing tasks. For example, on this code: model.train( mixture_or_task_name="glue_cola_v...
[ { "content": "# Copyright 2020 The T5 Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appl...
[ { "content": "# Copyright 2020 The T5 Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appl...
diff --git a/t5/models/hf_model.py b/t5/models/hf_model.py index 6449953f..4a92093c 100644 --- a/t5/models/hf_model.py +++ b/t5/models/hf_model.py @@ -321,12 +321,13 @@ def train( self.save_checkpoint(self._step) self._model.zero_grad() - loss, _, _ = self._model( + outputs = self._model( ...
django-cms__django-cms-1042
import of cms plugin model causes IndexError Created cms based on instructions from the tutorial with a custom plugin. When the model upon which the custom plugin is based is imported (ie "from cnt.models import Hello") the plugin model class gets imported a second time. During this second import, the **new** function...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport warnings\nfrom datetime import datetime, date\n\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError, ObjectDoesNotExist\nfrom django.db import models\nfrom django.db.models.base import (model_unpickle, simple_class_factor...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport warnings\nfrom datetime import datetime, date\n\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError, ObjectDoesNotExist\nfrom django.db import models\nfrom django.db.models.base import (model_unpickle, simple_class_factor...
diff --git a/cms/models/pluginmodel.py b/cms/models/pluginmodel.py index 854504528c6..341a4120f7f 100644 --- a/cms/models/pluginmodel.py +++ b/cms/models/pluginmodel.py @@ -52,8 +52,12 @@ def __new__(cls, name, bases, attrs): # 'myapp_' bit from the db_table name. if [base for base in bases if isinsta...
alltheplaces__alltheplaces-3620
Spider wafflehouse is broken During the global build at 2021-06-02-14-42-40, spider **wafflehouse** failed with **0 features** and **0 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-06-02-14-42-40/logs/wafflehouse.txt) and [the output](https://data.alltheplaces.xyz/runs/2021-06-02-14-42-40/output/w...
[ { "content": "# -*- coding: utf-8 -*-\nimport json\n\nimport scrapy\n\nfrom locations.hours import OpeningHours\nfrom locations.items import GeojsonPointItem\n\n\nclass WaffleHouseSpider(scrapy.Spider):\n name = \"wafflehouse\"\n item_attributes = {\"brand\": \"Waffle House\", \"brand_wikidata\": \"Q17012...
[ { "content": "# -*- coding: utf-8 -*-\nimport json\n\nimport scrapy\n\nfrom locations.hours import OpeningHours\nfrom locations.items import GeojsonPointItem\n\n\nclass WaffleHouseSpider(scrapy.Spider):\n name = \"wafflehouse\"\n item_attributes = {\"brand\": \"Waffle House\", \"brand_wikidata\": \"Q17012...
diff --git a/locations/spiders/wafflehouse.py b/locations/spiders/wafflehouse.py index 4938a786f1f..d51abb11e78 100644 --- a/locations/spiders/wafflehouse.py +++ b/locations/spiders/wafflehouse.py @@ -44,10 +44,11 @@ def parse_store(self, response): "website": response.url, "name": data["name"...
DataDog__dd-trace-py-3409
app_key not passed to aiohttp_jinja2 When using aiohttp_admin the app_key value for the templating module differs from the default one. This causes an error executing: https://github.com/DataDog/dd-trace-py/blob/ec191a4a71ae71017b70d26111bba4489e617ae5/ddtrace/contrib/aiohttp/template.py#L21 As far as I underst...
[ { "content": "from ddtrace import Pin\nfrom ddtrace import config\n\nfrom ...ext import SpanTypes\nfrom ...internal.utils import get_argument_value\nfrom ..trace_utils import unwrap\nfrom ..trace_utils import with_traced_module\nfrom ..trace_utils import wrap\n\n\nconfig._add(\n \"aiohttp_jinja2\",\n dict...
[ { "content": "from ddtrace import Pin\nfrom ddtrace import config\n\nfrom ...ext import SpanTypes\nfrom ...internal.utils import get_argument_value\nfrom ..trace_utils import unwrap\nfrom ..trace_utils import with_traced_module\nfrom ..trace_utils import wrap\n\n\nconfig._add(\n \"aiohttp_jinja2\",\n dict...
diff --git a/ddtrace/contrib/aiohttp_jinja2/patch.py b/ddtrace/contrib/aiohttp_jinja2/patch.py index b33a64e200b..2413b903372 100644 --- a/ddtrace/contrib/aiohttp_jinja2/patch.py +++ b/ddtrace/contrib/aiohttp_jinja2/patch.py @@ -20,7 +20,10 @@ def traced_render_template(aiohttp_jinja2, pin, func, instance, args, kwargs...
kubeflow__pipelines-7985
[bug] TFJob launcher pipeline task fails when `delete_finished_tfjob` flag is `True` https://github.com/kubeflow/pipelines/blob/127dab4d4671849d596c455f4619ea807d22f6ea/components/kubeflow/launcher/component.yaml#L19 When `delete_finished_tfjob` flag is `True`, TFJob launcher task fails with error below. ``` Tra...
[ { "content": "# Copyright 2019 kubeflow.org.\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 2019 kubeflow.org.\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/components/kubeflow/common/launch_crd.py b/components/kubeflow/common/launch_crd.py index 2fb85ae3330..90390e7f08c 100644 --- a/components/kubeflow/common/launch_crd.py +++ b/components/kubeflow/common/launch_crd.py @@ -115,12 +115,12 @@ def delete(self, name, namespace): logger.info("Deleteing %s/%...
readthedocs__readthedocs.org-4723
login_required decorator is used at the end of the functions. In the file readthedocs.org/readthedocs/profiles/views.py, `login_required` decorator is used at the end of some functions and for some other functions, it used in the form of `@login_required`, which reduces the readability of the code.
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Views for creating, editing and viewing site-specific user profiles.\"\"\"\n\nfrom __future__ import (\n absolute_import,\n division,\n print_function,\n unicode_literals,\n)\n\nfrom django.contrib import messages\nfrom django.contrib.auth import logout\n...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Views for creating, editing and viewing site-specific user profiles.\"\"\"\n\nfrom __future__ import (\n absolute_import,\n division,\n print_function,\n unicode_literals,\n)\n\nfrom django.contrib import messages\nfrom django.contrib.auth import logout\n...
diff --git a/readthedocs/profiles/views.py b/readthedocs/profiles/views.py index feefeffe5f7..bf11b7d93c8 100644 --- a/readthedocs/profiles/views.py +++ b/readthedocs/profiles/views.py @@ -20,6 +20,7 @@ from readthedocs.core.forms import UserAdvertisingForm, UserDeleteForm +@login_required def edit_profile( ...
pypa__setuptools-3108
[BUG] vendored importlib.metadata of setuptools 60.9.0 fails with 'PathDistribution' object has no attribute '_normalized_name' ### setuptools version setuptools==60.9.0 ### Python version 3.7.1 ### OS Linux ### Additional environment information Pip freeze ``` argcomplete==1.12.3 colorlog==6.6.0 distlib==...
[ { "content": "import sys\n\n\nif sys.version_info < (3, 10):\n from setuptools.extern import importlib_metadata as metadata\nelse:\n import importlib.metadata as metadata # noqa: F401\n\n\nif sys.version_info < (3, 9):\n from setuptools.extern import importlib_resources as resources\nelse:\n import...
[ { "content": "import sys\n\n\ndef disable_importlib_metadata_finder(metadata):\n \"\"\"\n Ensure importlib_metadata doesn't provide older, incompatible\n Distributions.\n\n Workaround for #3102.\n \"\"\"\n try:\n import importlib_metadata\n except ImportError:\n return\n if...
diff --git a/changelog.d/3102.misc.rst b/changelog.d/3102.misc.rst new file mode 100644 index 0000000000..2aa4d73a14 --- /dev/null +++ b/changelog.d/3102.misc.rst @@ -0,0 +1 @@ +Prevent vendored importlib_metadata from loading distributions from older importlib_metadata. diff --git a/setuptools/_importlib.py b/setuptoo...
ytdl-org__youtube-dl-31181
Unable to extract mp3Form form for InfoQ video ## Checklist - [x] I'm reporting a broken site support - [x] I've verified that I'm running youtube-dl version **2021.12.17** - [x] I've checked that all provided URLs are alive and playable in a browser - [x] I've checked that all URLs and arguments with special cha...
[ { "content": "# coding: utf-8\n\nfrom __future__ import unicode_literals\n\nfrom ..compat import (\n compat_b64decode,\n compat_urllib_parse_unquote,\n compat_urlparse,\n)\nfrom ..utils import (\n determine_ext,\n update_url_query,\n)\nfrom .bokecc import BokeCCBaseIE\n\n\nclass InfoQIE(BokeCCBas...
[ { "content": "# coding: utf-8\n\nfrom __future__ import unicode_literals\nfrom ..utils import (\n ExtractorError,\n)\n\nfrom ..compat import (\n compat_b64decode,\n compat_urllib_parse_unquote,\n compat_urlparse,\n)\nfrom ..utils import (\n determine_ext,\n update_url_query,\n)\nfrom .bokecc i...
diff --git a/youtube_dl/extractor/infoq.py b/youtube_dl/extractor/infoq.py index 0a70a1fb442..60b02b69958 100644 --- a/youtube_dl/extractor/infoq.py +++ b/youtube_dl/extractor/infoq.py @@ -1,6 +1,9 @@ # coding: utf-8 from __future__ import unicode_literals +from ..utils import ( + ExtractorError, +) from ..co...
Mailu__Mailu-1874
Weblate instance is down I tried accessing the Weblate instance and potentially add another language but it looks down.
[ { "content": "import flask\nimport flask_bootstrap\nimport redis\nimport json\nimport os\nimport jinja2\nimport uuid\nimport string\nimport random\nimport ipaddress\nimport hashlib\nimport time\n\n\nversion = os.getenv(\"this_version\", \"master\")\nstatic_url_path = \"/\" + version + \"/static\"\napp = flask.F...
[ { "content": "import flask\nimport flask_bootstrap\nimport redis\nimport json\nimport os\nimport jinja2\nimport uuid\nimport string\nimport random\nimport ipaddress\nimport hashlib\nimport time\n\n\nversion = os.getenv(\"this_version\", \"master\")\nstatic_url_path = \"/\" + version + \"/static\"\napp = flask.F...
diff --git a/setup/server.py b/setup/server.py index 0d58fa254..5be1fc83c 100644 --- a/setup/server.py +++ b/setup/server.py @@ -54,11 +54,11 @@ def build_app(path): @app.context_processor def app_context(): return dict( - versions=os.getenv("VERSIONS","master").split(','), + v...
rootpy__rootpy-297
path module overriden by path variable On https://github.com/rootpy/rootpy/blob/master/rootpy/io/file.py#L43 the module path is overriden by the variable path. Locally, pyflakes also warns me about it: ``` rootpy/rootpy/io $ pyflakes file.py file.py:255: redefinition of unused 'path' from line 13 file.py:306: rede...
[ { "content": "# Copyright 2012 the rootpy developers\n# distributed under the terms of the GNU General Public License\n\"\"\"\nThis module enhances IO-related ROOT functionality\n\"\"\"\nimport ROOT\n\nfrom ..core import Object\nfrom ..decorators import snake_case_methods\nfrom ..context import preserve_current...
[ { "content": "# Copyright 2012 the rootpy developers\n# distributed under the terms of the GNU General Public License\n\"\"\"\nThis module enhances IO-related ROOT functionality\n\"\"\"\nimport ROOT\n\nfrom ..core import Object\nfrom ..decorators import snake_case_methods\nfrom ..context import preserve_current...
diff --git a/rootpy/io/file.py b/rootpy/io/file.py index c63d331b..ab54dfbd 100644 --- a/rootpy/io/file.py +++ b/rootpy/io/file.py @@ -10,7 +10,7 @@ from ..context import preserve_current_directory from .. import asrootpy, QROOT from . import utils, DoesNotExist -from ..util import path +from ..util.path import expa...
python-telegram-bot__python-telegram-bot-4199
[Type Hinting] `EncryptedCredentials.decrypted_secret` is not properly annotated ### Steps to Reproduce 1. Create a `my_test.py` such as: ```python from telegram import EncryptedCredentials from tests.auxil.pytest_classes import make_bot bot = make_bot(token="token") my = { "credentials": { "h...
[ { "content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2024\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-2024\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/AUTHORS.rst b/AUTHORS.rst index e01a2a13ec9..fe69dba625d 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -123,6 +123,7 @@ The following wonderful people contributed directly or indirectly to this projec - `Vorobjev Simon <https://github.com/simonvorobjev>`_ - `Wagner Macedo <https://github.com/wagnerluis19...
openshift__openshift-ansible-6580
OpenStack installs result in 'unicode' object has no attribute 'items' #### Description Running a multiple master install on OpenStack fails with an ansible error: ``` Failure summary: 1. Hosts: app-node-0.scale-ci.example.com, app-node-1.scale-ci.example.com, infra-node-0.scale-ci.example.com, infra-nod...
[ { "content": "#!/usr/bin/env python\n\"\"\"\nThis is an Ansible dynamic inventory for OpenStack.\n\nIt requires your OpenStack credentials to be set in clouds.yaml or your shell\nenvironment.\n\n\"\"\"\n\nfrom __future__ import print_function\n\nimport json\n\nimport shade\n\n\ndef build_inventory():\n '''Bu...
[ { "content": "#!/usr/bin/env python\n\"\"\"\nThis is an Ansible dynamic inventory for OpenStack.\n\nIt requires your OpenStack credentials to be set in clouds.yaml or your shell\nenvironment.\n\n\"\"\"\n\nfrom __future__ import print_function\n\nfrom collections import Mapping\nimport json\n\nimport shade\n\n\n...
diff --git a/playbooks/openstack/openshift-cluster/install.yml b/playbooks/openstack/openshift-cluster/install.yml index 3211f619a0f..2ab7d14a0b1 100644 --- a/playbooks/openstack/openshift-cluster/install.yml +++ b/playbooks/openstack/openshift-cluster/install.yml @@ -8,5 +8,8 @@ # values here. We do it in the OSEv3 g...
cloudtools__troposphere-1198
EC2 SpotFleet unable to create The release 2.3.4 introduced a bug in the file `troposphere/ec2.py`, class `SpotFleetRequestConfigData`: - Both `LaunchTemplateConfigs` and `LaunchSpecifications` are set as required, but as per the cloudformation documentation they are conditional (you can only set one of them) The `...
[ { "content": "# Copyright (c) 2012-2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSHelperFn, AWSObject, AWSProperty, Tags\nfrom .validators import (\n boolean, exactly_one, integer, integer_range, double,\n network_port, positive_integer...
[ { "content": "# Copyright (c) 2012-2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSHelperFn, AWSObject, AWSProperty, Tags\nfrom .validators import (\n boolean, exactly_one, integer, integer_range, double,\n network_port, positive_integer...
diff --git a/troposphere/ec2.py b/troposphere/ec2.py index 5b3c907a4..0cfe35e76 100644 --- a/troposphere/ec2.py +++ b/troposphere/ec2.py @@ -802,8 +802,8 @@ class SpotFleetRequestConfigData(AWSProperty): 'ExcessCapacityTerminationPolicy': (basestring, False), 'IamFleetRole': (basestring, True), ...
conan-io__conan-center-index-19732
[package] sail/0.9.0-rc2: PR broke the package ### Description I've just noticed that the V2 version of sail suddenly disappeared from the center. This was caused by https://github.com/conan-io/conan-center-index/pull/18454 Please please please don't merge pull requests that break packages! Could you please also re...
[ { "content": "from conan import ConanFile\nfrom conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout\nfrom conan.tools.files import apply_conandata_patches, export_conandata_patches, copy, get, rename, rmdir\nfrom conan.tools.microsoft import is_msvc\nimport os\n\nrequired_conan_version = \">...
[ { "content": "from conan import ConanFile\nfrom conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout\nfrom conan.tools.files import apply_conandata_patches, export_conandata_patches, copy, get, rename, rmdir\nfrom conan.tools.microsoft import is_msvc\nimport os\n\nrequired_conan_version = \">...
diff --git a/recipes/sail/all/conanfile.py b/recipes/sail/all/conanfile.py index fb389e804f131..31e7177ae090e 100644 --- a/recipes/sail/all/conanfile.py +++ b/recipes/sail/all/conanfile.py @@ -104,11 +104,6 @@ def generate(self): # TODO: Remove after fixing https://github.com/conan-io/conan/issues/12012 ...
easybuilders__easybuild-easyblocks-3260
Conda generic easyblock doesn't recognise Miniforge When using Miniforge3 instead of Miniconda3 (created via [https://github.com/easybuilders/easybuild-easyconfigs/pull/20227](https://github.com/easybuilders/easybuild-easyconfigs/pull/20227)) the block does not identify that this is a viable conda environment. The r...
[ { "content": "##\n# Copyright 2009-2023 Ghent University\n#\n# This file is part of EasyBuild,\n# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n# with support of Ghent University (http://ugent.be/hpc),\n# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),\n# F...
[ { "content": "##\n# Copyright 2009-2023 Ghent University\n#\n# This file is part of EasyBuild,\n# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n# with support of Ghent University (http://ugent.be/hpc),\n# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),\n# F...
diff --git a/easybuild/easyblocks/generic/conda.py b/easybuild/easyblocks/generic/conda.py index 03e78ab42e9..737a38865cb 100644 --- a/easybuild/easyblocks/generic/conda.py +++ b/easybuild/easyblocks/generic/conda.py @@ -62,7 +62,8 @@ def install_step(self): """Install software using 'conda env create' or 'con...
yt-dlp__yt-dlp-1776
[ITV] Fix "No downloads available" ### Checklist - [X] I'm reporting a broken site - [X] I've verified that I'm running yt-dlp version **2021.11.10.1**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) - [X] I've checked that all provided URLs are alive and playable in a browser - [X] I've checked that...
[ { "content": "# coding: utf-8\nfrom __future__ import unicode_literals\n\nimport json\n\nfrom .common import InfoExtractor\nfrom .brightcove import BrightcoveNewIE\n\nfrom ..compat import compat_str\nfrom ..utils import (\n base_url,\n clean_html,\n determine_ext,\n extract_attributes,\n Extracto...
[ { "content": "# coding: utf-8\nfrom __future__ import unicode_literals\n\nimport json\n\nfrom .common import InfoExtractor\nfrom .brightcove import BrightcoveNewIE\n\nfrom ..compat import compat_str\nfrom ..utils import (\n base_url,\n clean_html,\n determine_ext,\n extract_attributes,\n Extracto...
diff --git a/yt_dlp/extractor/itv.py b/yt_dlp/extractor/itv.py index 5f1d306f6114..bdd6af6884fa 100644 --- a/yt_dlp/extractor/itv.py +++ b/yt_dlp/extractor/itv.py @@ -147,7 +147,7 @@ def _real_extract(self, url): platform_tag_video, featureset_video = next( ((platform_tag, featureset) ...
fedora-infra__bodhi-1813
dnf was retired on EPEL 7 and bodhi.client.bindings uses it I learned today that [dnf was retired on EPEL 7](https://bugzilla.redhat.com/show_bug.cgi?id=1492610). [```bodhi.client.bindings.BodhiClient.testable()```](https://github.com/fedora-infra/bodhi/blob/2.10.1/bodhi/client/bindings.py#L446-L468) uses it: ``` ...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2007-2016 Red Hat, Inc.\n# This file is part of bodhi\n#\n# This software is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# versi...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2007-2016 Red Hat, Inc.\n# This file is part of bodhi\n#\n# This software is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# versi...
diff --git a/bodhi/client/bindings.py b/bodhi/client/bindings.py index 68abbcedc1..611c1a710b 100644 --- a/bodhi/client/bindings.py +++ b/bodhi/client/bindings.py @@ -37,7 +37,11 @@ from iniparse.compat import ConfigParser from six.moves import configparser -import dnf +try: + import dnf +except ImportError: # ...
sktime__sktime-5636
[BUG] `plot_windows` is creating two figures **Describe the bug** The method `plot_windows` is generating two plots. One empty and one with the splits **To Reproduce** See also https://github.com/sktime/sktime-tutorial-pydata-global-2023/blob/main/notebooks/02_forecasting.ipynb ```python from sktime.split impo...
[ { "content": "#!/usr/bin/env python3 -u\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Common timeseries plotting functionality.\"\"\"\n\n__all__ = [\"plot_series\", \"plot_correlations\", \"plot_windows\"]\n__author__ = [\"mloning\", \"RNKuhns\", \"Dbhasin1\", \"chillerobscuro\...
[ { "content": "#!/usr/bin/env python3 -u\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Common timeseries plotting functionality.\"\"\"\n\n__all__ = [\"plot_series\", \"plot_correlations\", \"plot_windows\"]\n__author__ = [\"mloning\", \"RNKuhns\", \"Dbhasin1\", \"chillerobscuro\...
diff --git a/sktime/utils/plotting.py b/sktime/utils/plotting.py index b23f9cce3b9..8312c8bdaec 100644 --- a/sktime/utils/plotting.py +++ b/sktime/utils/plotting.py @@ -449,7 +449,7 @@ def plot_windows(cv, y, title="", ax=None): # create figure if no ax provided for plotting if _ax_kwarg_is_none: - f...
imAsparky__django-cookiecutter-50
[FEAT]: Add GitHub action test suite for the Django project. **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** A clear and concise description of what you want to happ...
[ { "content": "#!/usr/bin/env python\n\"\"\"django-cookiecutter post project generation jobs.\"\"\"\nimport os\nimport subprocess # nosec\n\nPROJECT_DIRECTORY = os.path.realpath(os.path.curdir)\n\nREMOTE_REPO = \"git@github.com:{{cookiecutter.github_username}}/\\\n{{cookiecutter.git_project_name}}.git\"\n\n\nGI...
[ { "content": "#!/usr/bin/env python\n\"\"\"django-cookiecutter post project generation jobs.\"\"\"\nimport os\nimport subprocess # nosec\n\nPROJECT_DIRECTORY = os.path.realpath(os.path.curdir)\n\nREMOTE_REPO = \"git@github.com:{{cookiecutter.github_username}}/\\\n{{cookiecutter.git_project_name}}.git\"\n\n\nGI...
diff --git a/README.rst b/README.rst index 2718b79e..e9a222e4 100644 --- a/README.rst +++ b/README.rst @@ -3,9 +3,9 @@ ======================= .. image:: ./docs/source/_static/imgs/logo/logo-django-cookiecutter-1280x640.png - :alt: django-cookiecutter + :alt: -A `Django`_ project `cookiecutter`_ complete wit...
boto__boto-3515
Misnamed attribute in `Stack`: `stack_name_reason` and `stack_status_reason` I think these two attributes have been mixed up: - https://github.com/boto/boto/blob/d14d5ac260a811aff3e1e1f1b1801b1bae1920bb/boto/cloudformation/stack.py#L20 - https://github.com/boto/boto/blob/d14d5ac260a811aff3e1e1f1b1801b1bae1920bb/boto/cl...
[ { "content": "from datetime import datetime\n\nfrom boto.resultset import ResultSet\n\n\nclass Stack(object):\n def __init__(self, connection=None):\n self.connection = connection\n self.creation_time = None\n self.description = None\n self.disable_rollback = None\n self.no...
[ { "content": "from datetime import datetime\n\nfrom boto.resultset import ResultSet\n\n\nclass Stack(object):\n def __init__(self, connection=None):\n self.connection = connection\n self.creation_time = None\n self.description = None\n self.disable_rollback = None\n self.no...
diff --git a/boto/cloudformation/stack.py b/boto/cloudformation/stack.py index 5dac0dd7cf..c00fefcf17 100755 --- a/boto/cloudformation/stack.py +++ b/boto/cloudformation/stack.py @@ -16,10 +16,18 @@ def __init__(self, connection=None): self.tags = [] self.stack_id = None self.stack_status = N...
opsdroid__opsdroid-1659
Twitch connector can't connect to webhook When I was working on the Twitter connector, I realised that I had changed the configuration for the webhook URL to use the `base-url` although I forgot to make the changes to the `connect_webhook` method. This means that the Twitch connector isn't able to connect to webhook...
[ { "content": "\"\"\"A connector for Twitch.\"\"\"\nimport asyncio\nimport os\nimport re\nimport logging\nimport aiohttp\nimport json\nimport secrets\nimport hashlib\nimport hmac\n\nfrom voluptuous import Required\n\nfrom opsdroid.connector import Connector, register_event\nfrom opsdroid.events import Message, J...
[ { "content": "\"\"\"A connector for Twitch.\"\"\"\nimport asyncio\nimport os\nimport re\nimport logging\nimport aiohttp\nimport json\nimport secrets\nimport hashlib\nimport hmac\n\nfrom voluptuous import Required\n\nfrom opsdroid.connector import Connector, register_event\nfrom opsdroid.events import Message, J...
diff --git a/opsdroid/connector/twitch/__init__.py b/opsdroid/connector/twitch/__init__.py index 04d5da1ba..9b786756d 100644 --- a/opsdroid/connector/twitch/__init__.py +++ b/opsdroid/connector/twitch/__init__.py @@ -61,10 +61,13 @@ def __init__(self, config, opsdroid=None): # TODO: Allow usage of SSL connecti...
lisa-lab__pylearn2-1503
[bug] print_monitor_cv.py model not iterable I've tried `print_monitor_cv.py model.pkl` but I've got ``` Traceback (most recent call last): File "~/pylearn2/pylearn2/scripts/print_monitor_cv.py", line 84, in <module> main(**vars(args)) File "~/pylearn2/pylearn2/scripts/print_monitor_cv.py", line 38, in main ...
[ { "content": "#!/usr/bin/env python\n\"\"\"\nPrint (average) channel values for a collection of models, such as that\nserialized by TrainCV. Based on print_monitor.py.\n\nusage: print_monitor_cv.py model.pkl [-a]\n\"\"\"\nfrom __future__ import print_function\n\n__author__ = \"Steven Kearnes\"\n__copyright__ = ...
[ { "content": "#!/usr/bin/env python\n\"\"\"\nPrint (average) channel values for a collection of models, such as that\nserialized by TrainCV. Based on print_monitor.py.\n\nusage: print_monitor_cv.py model.pkl [-a]\n\"\"\"\nfrom __future__ import print_function\n\n__author__ = \"Steven Kearnes\"\n__copyright__ = ...
diff --git a/pylearn2/scripts/print_monitor_cv.py b/pylearn2/scripts/print_monitor_cv.py index 9f47d7d2b7..a834d6153e 100755 --- a/pylearn2/scripts/print_monitor_cv.py +++ b/pylearn2/scripts/print_monitor_cv.py @@ -13,6 +13,7 @@ __maintainer__ = "Steven Kearnes" import argparse +from collections import Iterable im...
opendatacube__datacube-core-1497
Issue loading virtual product using `like=ds.geobox` ### Expected behaviour I would like to load a Landsat virtual product into the same spatial grid/geobox as a previously loaded Sentinel-2 virtual product. To do this using `dc.load`, I would pass in `like=s2_ds.geobox` and my data would be loaded into the same grid....
[ { "content": "# This file is part of the Open Data Cube, see https://opendatacube.org for more information\n#\n# Copyright (c) 2015-2023 ODC Contributors\n# SPDX-License-Identifier: Apache-2.0\n\"\"\"\nImplementation of virtual products. Provides an interface for the products in the datacube\nto query and to lo...
[ { "content": "# This file is part of the Open Data Cube, see https://opendatacube.org for more information\n#\n# Copyright (c) 2015-2023 ODC Contributors\n# SPDX-License-Identifier: Apache-2.0\n\"\"\"\nImplementation of virtual products. Provides an interface for the products in the datacube\nto query and to lo...
diff --git a/datacube/virtual/impl.py b/datacube/virtual/impl.py index dc7df703e7..3ce82f4312 100644 --- a/datacube/virtual/impl.py +++ b/datacube/virtual/impl.py @@ -356,9 +356,12 @@ def group(self, datasets: VirtualDatasetBag, **group_settings: Dict[str, Any]) - merged = merge_search_terms(self, group_settin...
cookiecutter__cookiecutter-django-1227
Rename dev.yml to local.yml That would match up with `local.py` and `local.txt`. @pydanny, @jayfk, @luzfcb what do you think?
[ { "content": "\"\"\"\nDoes the following:\n\n1. Generates and saves random secret key\n2. Removes the taskapp if celery isn't going to be used\n3. Removes the .idea directory if PyCharm isn't going to be used\n4. Copy files from /docs/ to {{ cookiecutter.project_slug }}/docs/\n\n TODO: this might have to be ...
[ { "content": "\"\"\"\nDoes the following:\n\n1. Generates and saves random secret key\n2. Removes the taskapp if celery isn't going to be used\n3. Removes the .idea directory if PyCharm isn't going to be used\n4. Copy files from /docs/ to {{ cookiecutter.project_slug }}/docs/\n\n TODO: this might have to be ...
diff --git a/docs/deployment-with-docker.rst b/docs/deployment-with-docker.rst index 63b1d7c44d..1c6a724f64 100644 --- a/docs/deployment-with-docker.rst +++ b/docs/deployment-with-docker.rst @@ -12,7 +12,7 @@ Prerequisites Understand the Compose Setup -------------------------------- -Before you start, check out th...
nipy__nipype-2824
[BUG] Relative path in ResourceMonitor ### Summary This https://github.com/nipy/nipype/blob/502fc63488764434374a41e7456ae72f0ff9ae51/nipype/utils/profiler.py#L43 should be an absolute path (it isn't). ### Actual behavior It doesn't seem to break things, but this may be the origin for weird readings in the last...
[ { "content": "# -*- coding: utf-8 -*-\n# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n\"\"\"\nUtilities to keep track of performance\n\"\"\"\nfrom __future__ import (print_function, division, unicode_literals,\n absolute...
[ { "content": "# -*- coding: utf-8 -*-\n# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n\"\"\"\nUtilities to keep track of performance\n\"\"\"\nfrom __future__ import (print_function, division, unicode_literals,\n absolute...
diff --git a/nipype/utils/profiler.py b/nipype/utils/profiler.py index d8ec32ffe3..6380711baf 100644 --- a/nipype/utils/profiler.py +++ b/nipype/utils/profiler.py @@ -7,6 +7,7 @@ from __future__ import (print_function, division, unicode_literals, absolute_import) +import os import threading...
mindsdb__mindsdb-1674
Add new method to return the columns for PostgreSQL datasources :electric_plug: :1234: When MindsDB creates a new PostgreSQL datasource we get information for columns by fetching all datasources. The problem here is that if datasource is big it takes a lot of time. We need a new get_columns method to return the column...
[ { "content": "from contextlib import closing\nimport pg8000\n\nfrom lightwood.api import dtype\nfrom mindsdb.integrations.base import Integration\nfrom mindsdb.utilities.log import log\n\n\nclass PostgreSQLConnectionChecker:\n def __init__(self, **kwargs):\n self.host = kwargs.get('host')\n sel...
[ { "content": "from contextlib import closing\nimport pg8000\n\nfrom lightwood.api import dtype\nfrom mindsdb.integrations.base import Integration\nfrom mindsdb.utilities.log import log\n\n\nclass PostgreSQLConnectionChecker:\n def __init__(self, **kwargs):\n self.host = kwargs.get('host')\n sel...
diff --git a/mindsdb/integrations/postgres/postgres.py b/mindsdb/integrations/postgres/postgres.py index 7fc4936a326..aa0c5f8aee3 100644 --- a/mindsdb/integrations/postgres/postgres.py +++ b/mindsdb/integrations/postgres/postgres.py @@ -210,11 +210,11 @@ def get_tables_list(self): tables= [f"{table['table_sche...
ethereum__web3.py-3123
`eth.get_storage_at()` missing `block_identifier` kwarg in typing * Version: main branch * Python: 3.10.12 * OS: macOS * `pip freeze` output ``` ill paste if required. ``` ### What was wrong? type checkers do not like the block_identifier optional kwarg to `web3.eth.get_storage_at()`. I am wondering if...
[ { "content": "from typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n List,\n Optional,\n Sequence,\n Tuple,\n Type,\n Union,\n cast,\n overload,\n)\nimport warnings\n\nfrom eth_typing import (\n Address,\n BlockNumber,\n ChecksumAddress,\n HexStr,\n)\nfrom eth_ut...
[ { "content": "from typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n List,\n Optional,\n Sequence,\n Tuple,\n Type,\n Union,\n cast,\n overload,\n)\nimport warnings\n\nfrom eth_typing import (\n Address,\n BlockNumber,\n ChecksumAddress,\n HexStr,\n)\nfrom eth_ut...
diff --git a/newsfragments/3114.misc.rst b/newsfragments/3114.misc.rst new file mode 100644 index 0000000000..5c2be46342 --- /dev/null +++ b/newsfragments/3114.misc.rst @@ -0,0 +1 @@ +Fix optional ``BlockIdentifier`` argument type in synchronous ``get_storage_at`` method. \ No newline at end of file diff --git a/web3/e...
cloud-custodian__cloud-custodian-9500
Add support for kms-key in timestream service ### Describe the feature Add support for kms-key in timestream service ### Extra information or context _No response_
[ { "content": "from c7n.manager import resources\nfrom c7n.actions import Action\nfrom c7n.query import DescribeSource, QueryResourceManager, TypeInfo\nfrom c7n.utils import local_session, type_schema\nfrom c7n.tags import (\n TagDelayedAction,\n TagActionFilter,\n Tag as TagAction,\n RemoveTag as Re...
[ { "content": "from c7n.manager import resources\nfrom c7n.actions import Action\nfrom c7n.filters.kms import KmsRelatedFilter\nfrom c7n.query import DescribeSource, QueryResourceManager, TypeInfo\nfrom c7n.utils import local_session, type_schema\nfrom c7n.tags import (\n TagDelayedAction,\n TagActionFilte...
diff --git a/c7n/resources/timestream.py b/c7n/resources/timestream.py index dee27552dfb..cd68f3d60bf 100644 --- a/c7n/resources/timestream.py +++ b/c7n/resources/timestream.py @@ -1,5 +1,6 @@ from c7n.manager import resources from c7n.actions import Action +from c7n.filters.kms import KmsRelatedFilter from c7n.quer...
pre-commit__pre-commit-1043
Permission denied when installed this environment Hello. I'm not sure the permission is about the pre-commit but it looks likes so. Here is my config ````yaml - repo: git://github.com/dnephin/pre-commit-golang rev: master hooks: - id: go-fmt - repo: git://github.com/golangci/golangci-lint rev...
[ { "content": "from __future__ import unicode_literals\n\nimport contextlib\nimport errno\nimport os.path\nimport shutil\nimport stat\nimport subprocess\nimport sys\nimport tempfile\n\nimport six\n\nfrom pre_commit import five\nfrom pre_commit import parse_shebang\n\nif sys.version_info >= (3, 7): # pragma: no ...
[ { "content": "from __future__ import unicode_literals\n\nimport contextlib\nimport errno\nimport os.path\nimport shutil\nimport stat\nimport subprocess\nimport sys\nimport tempfile\n\nimport six\n\nfrom pre_commit import five\nfrom pre_commit import parse_shebang\n\nif sys.version_info >= (3, 7): # pragma: no ...
diff --git a/pre_commit/util.py b/pre_commit/util.py index 4c3902897..eb5411fdd 100644 --- a/pre_commit/util.py +++ b/pre_commit/util.py @@ -158,13 +158,14 @@ def cmd_output(*cmd, **kwargs): def rmtree(path): """On windows, rmtree fails for readonly dirs.""" - def handle_remove_readonly(func, path, exc): # ...
cookiecutter__cookiecutter-django-2276
AWS service definition should be conditional to cloud provider ## What happened? **awscli** service definition is present in the docker-compose **production.yml** file even though the **Select cloud_provider** question was answered with **None**. The same goes for **compose/production/aws** directory. ## What shoul...
[ { "content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment\n (at least so we presume in `pre_gen_project.py`).\n\nTODO: ? restrict Cookiecutter Django project init...
[ { "content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment\n (at least so we presume in `pre_gen_project.py`).\n\nTODO: ? restrict Cookiecutter Django project init...
diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index ff84f18063..0544f14bc0 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -279,6 +279,10 @@ def remove_node_dockerfile(): shutil.rmtree(os.path.join("compose", "local", "node")) +def remove_aws_dockerfile(): + sh...
sanic-org__sanic-2870
Support for Python 3.12 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Is your feature request related to a problem? Please describe. Currently unable to use Sanic with Python 3.12 ### Describe the solution you'd like [uvloop 0.18.0 was just released](https://github.com/Magi...
[ { "content": "__version__ = \"23.12.0\"\n", "path": "sanic/__version__.py" }, { "content": "import asyncio\nimport os\nimport platform\nimport signal\nimport sys\n\nfrom contextlib import contextmanager\nfrom enum import Enum\nfrom typing import Awaitable, Union\n\nfrom multidict import CIMultiDict ...
[ { "content": "__version__ = \"23.12.1\"\n", "path": "sanic/__version__.py" }, { "content": "import asyncio\nimport os\nimport platform\nimport signal\nimport sys\n\nfrom contextlib import contextmanager\nfrom enum import Enum\nfrom typing import Awaitable, Union\n\nfrom multidict import CIMultiDict ...
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b071e7e4e3..531ca5d149 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -41,6 +41,7 @@ jobs: - { python-version: "3.10", tox-env: py310, max-attempts: 3 } - { python-version: "3.10", t...
Textualize__textual-4040
Nesting selectors in a selector list causes a stylesheet error If you have a stylesheet like this: ```python from textual.app import App, ComposeResult from textual.widgets import Label class NestedCSSTokenErrorApp(App[None]): CSS = """ Label { &.foo, &.bar { border: solid red;...
[ { "content": "from __future__ import annotations\n\nimport re\nfrom typing import TYPE_CHECKING, Iterable\n\nfrom .tokenizer import Expect, Token, Tokenizer\n\nif TYPE_CHECKING:\n from .types import CSSLocation\n\nPERCENT = r\"-?\\d+\\.?\\d*%\"\nDECIMAL = r\"-?\\d+\\.?\\d*\"\nCOMMA = r\"\\s*,\\s*\"\nOPEN_BRA...
[ { "content": "from __future__ import annotations\n\nimport re\nfrom typing import TYPE_CHECKING, Iterable\n\nfrom .tokenizer import Expect, Token, Tokenizer\n\nif TYPE_CHECKING:\n from .types import CSSLocation\n\nPERCENT = r\"-?\\d+\\.?\\d*%\"\nDECIMAL = r\"-?\\d+\\.?\\d*\"\nCOMMA = r\"\\s*,\\s*\"\nOPEN_BRA...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bb816e2ab..c975d2f84b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Renamed `TextArea.tab_behaviour` to `TextArea.tab_behavior` https://github.com/Textualize/textual/pull/4124 ...
sunpy__sunpy-4183
Example of reading data/header with io.fits.read is broken In the docs, we have [the following example of how to read the data and header directly from a file using `sunpy.io.fits.read`](https://docs.sunpy.org/en/stable/code_ref/map.html#fixing-map-metadata), ```python [data,header] = sunpy.io.fits.read(filename) ...
[ { "content": "\"\"\"\nThis module provides a FITS file reader.\n\nNotes\n-----\n\n1. FITS files allow comments to be attached to every value in the header.\n This is implemented in this module as a KEYCOMMENTS dictionary in the\n sunpy header. To add a comment to the file on write, add a comment to this\n ...
[ { "content": "\"\"\"\nThis module provides a FITS file reader.\n\nNotes\n-----\n\n1. FITS files allow comments to be attached to every value in the header.\n This is implemented in this module as a KEYCOMMENTS dictionary in the\n sunpy header. To add a comment to the file on write, add a comment to this\n ...
diff --git a/changelog/4183.bugfix.rst b/changelog/4183.bugfix.rst new file mode 100644 index 00000000000..1f49d31316f --- /dev/null +++ b/changelog/4183.bugfix.rst @@ -0,0 +1,3 @@ +Fixed a bug where passing an `int` or `list` via the `hdus` keyword argument to +`~sunpy.io.fits.read` threw an exception because the list...
rasterio__rasterio-1472
Unexpected behavior by rasterio.mask.mask with all_touched=True (too many pixels are cropped out) <!-- WELCOME ABOARD! Hi and welcome to the Rasterio project. We appreciate bug reports, questions about documentation, and suggestions for new features. This issue template isn't intended to ward you off; only to i...
[ { "content": "\"\"\"Functions for working with features in a raster dataset.\"\"\"\n\n\nimport logging\nimport warnings\nimport math\nimport os\n\nimport numpy as np\n\nimport rasterio\nfrom rasterio._features import _shapes, _sieve, _rasterize, _bounds\nfrom rasterio.crs import CRS\nfrom rasterio.dtypes import...
[ { "content": "\"\"\"Functions for working with features in a raster dataset.\"\"\"\n\n\nimport logging\nimport warnings\nimport math\nimport os\n\nimport numpy as np\n\nimport rasterio\nfrom rasterio._features import _shapes, _sieve, _rasterize, _bounds\nfrom rasterio.crs import CRS\nfrom rasterio.dtypes import...
diff --git a/rasterio/features.py b/rasterio/features.py index 1b800f05c..891f97af2 100644 --- a/rasterio/features.py +++ b/rasterio/features.py @@ -410,8 +410,10 @@ def geometry_window(dataset, shapes, pad_x=0, pad_y=0, north_up=True, right, bottom = (right, bottom) * dataset.transform window = dataset...
jazzband__django-oauth-toolkit-703
Grace period incompatible with token rotation This has been discussed on #631, but I think the merged solution(#660) does not fix it. From what I understand, the objective of the grace period is to allow clients to send another refresh_token request using the same refresh token and get the newly generated access tok...
[ { "content": "import base64\nimport binascii\nimport logging\nfrom collections import OrderedDict\nfrom datetime import datetime, timedelta\nfrom urllib.parse import unquote_plus\n\nimport requests\nfrom django.conf import settings\nfrom django.contrib.auth import authenticate, get_user_model\nfrom django.core....
[ { "content": "import base64\nimport binascii\nimport logging\nfrom collections import OrderedDict\nfrom datetime import datetime, timedelta\nfrom urllib.parse import unquote_plus\n\nimport requests\nfrom django.conf import settings\nfrom django.contrib.auth import authenticate, get_user_model\nfrom django.core....
diff --git a/oauth2_provider/oauth2_validators.py b/oauth2_provider/oauth2_validators.py index 096702db8..d4085d952 100644 --- a/oauth2_provider/oauth2_validators.py +++ b/oauth2_provider/oauth2_validators.py @@ -551,7 +551,9 @@ def save_bearer_token(self, token, request, *args, **kwargs): # make s...
pypa__pipenv-5380
"Could not find a version that satisfies the requirement" for package in private repository starting from pipenv==2022.8.31 ### Issue description With a Pipfile like this... ``` [[source]] url = "https://pypi.org/simple" verify_ssl = true name = "pypi" [[source]] url = "https://pypi.ourinternalrepo.com/sim...
[ { "content": "from __future__ import annotations\n\nimport re\nfrom collections.abc import Mapping\n\nfrom pipenv.exceptions import PipenvUsageError\nfrom pipenv.patched.pip._vendor.urllib3.util import parse_url\nfrom pipenv.utils.constants import MYPY_RUNNING\n\nfrom .internet import create_mirror_source, is_p...
[ { "content": "from __future__ import annotations\n\nimport re\nfrom collections.abc import Mapping\n\nfrom pipenv.exceptions import PipenvUsageError\nfrom pipenv.patched.pip._vendor.urllib3.util import parse_url\nfrom pipenv.utils.constants import MYPY_RUNNING\n\nfrom .internet import create_mirror_source, is_p...
diff --git a/news/5380.bugfix.rst b/news/5380.bugfix.rst new file mode 100644 index 0000000000..7f4dcc9227 --- /dev/null +++ b/news/5380.bugfix.rst @@ -0,0 +1 @@ +Prefer to use the lockfile sources if available during the install phase. diff --git a/pipenv/utils/indexes.py b/pipenv/utils/indexes.py index f2770adfd9..66...
RocketMap__RocketMap-2255
Bug in default status name. ## Expected Behavior Starting an instance without a status name should not cause RM to crash. ## Current Behavior Starting an instance without a status name causes RM to crash. ## Possible Solution RM uses the (integer) process ID as the default status name. This causes the regex te...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nimport sys\nimport configargparse\nimport os\nimport math\nimport json\nimport logging\nimport random\nimport time\nimport socket\nimport struct\nimport requests\nimport hashlib\n\nfrom s2sphere import CellId, LatLng\nfrom geopy.geocoders import Google...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nimport sys\nimport configargparse\nimport os\nimport math\nimport json\nimport logging\nimport random\nimport time\nimport socket\nimport struct\nimport requests\nimport hashlib\n\nfrom s2sphere import CellId, LatLng\nfrom geopy.geocoders import Google...
diff --git a/pogom/utils.py b/pogom/utils.py index 3bab9f5228..f01ab4d626 100644 --- a/pogom/utils.py +++ b/pogom/utils.py @@ -442,7 +442,7 @@ def get_args(): parser.add_argument('-slt', '--stats-log-timer', help='In log view, list per hr stats every X seconds', ty...
conda__conda-build-869
Bug from PR#866 attn @msarahan @brentp #866 causes an exception to be raised when any of the files are empty. Since it is reasonably common to just have empty `__init__.py` files floating around in a python package, such an exception is pretty bad. I just so happen to have some empty `__init__.py` files floating aro...
[ { "content": "'''\nModule that does most of the heavy lifting for the ``conda build`` command.\n'''\nfrom __future__ import absolute_import, division, print_function\n\nimport io\nimport json\nimport os\nimport shutil\nimport stat\nimport subprocess\nimport sys\nimport time\nimport tarfile\nimport fnmatch\nfrom...
[ { "content": "'''\nModule that does most of the heavy lifting for the ``conda build`` command.\n'''\nfrom __future__ import absolute_import, division, print_function\n\nimport io\nimport json\nimport os\nimport shutil\nimport stat\nimport subprocess\nimport sys\nimport time\nimport tarfile\nimport fnmatch\nfrom...
diff --git a/conda_build/build.py b/conda_build/build.py index da8bfb6a11..2f71ea4a45 100644 --- a/conda_build/build.py +++ b/conda_build/build.py @@ -107,6 +107,10 @@ def have_prefix_files(files): # skip symbolic links (as we can on Linux) continue + # dont try to mmap an empty file ...
bookwyrm-social__bookwyrm-3238
Flower crash : ValueError: Couldn't import 'celerywyrm': Environment variable "DATA_UPLOAD_MAX_MEMORY_SIZE" invalid: Not a valid integer.` Since updating my .env (following the .env.example) the flower application no longer worked. Here's a bit of the error : `master celery[2501464]: ValueError: Couldn't import 'ce...
[ { "content": "\"\"\" template filters for really common utilities \"\"\"\nimport os\nimport re\nfrom uuid import uuid4\nfrom urllib.parse import urlparse\nfrom django import template\nfrom django.utils.safestring import mark_safe\nfrom django.utils.translation import gettext_lazy as _\nfrom django.templatetags....
[ { "content": "\"\"\" template filters for really common utilities \"\"\"\nimport os\nimport re\nfrom uuid import uuid4\nfrom urllib.parse import urlparse\nfrom django import template\nfrom django.utils.safestring import mark_safe\nfrom django.utils.translation import gettext_lazy as _\nfrom django.templatetags....
diff --git a/.env.example b/.env.example index d0971660ef..1bf6d5406f 100644 --- a/.env.example +++ b/.env.example @@ -138,9 +138,9 @@ TWO_FACTOR_LOGIN_MAX_SECONDS=60 # Value should be a comma-separated list of host names. CSP_ADDITIONAL_HOSTS= -# The last number here means "megabytes" -# Increase if users are havi...
ibis-project__ibis-8357
bug: connecting to MotherDuck broken on main ### What happened? I first noticed this in the [Ibis analytics streamlit app](https://ibis-analytics.streamlit.app/), with an error eventually at: ``` File "/home/adminuser/venv/lib/python3.11/site-packages/ibis/backends/duckdb/__init__.py", line 441, in do_connect ...
[ { "content": "from __future__ import annotations\n\nimport abc\nimport collections.abc\nimport functools\nimport importlib.metadata\nimport keyword\nimport re\nimport sys\nimport urllib.parse\nfrom pathlib import Path\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n ClassVar,\n)\nfrom url...
[ { "content": "from __future__ import annotations\n\nimport abc\nimport collections.abc\nimport functools\nimport importlib.metadata\nimport keyword\nimport re\nimport sys\nimport urllib.parse\nfrom pathlib import Path\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n ClassVar,\n)\nfrom url...
diff --git a/ibis/backends/base/__init__.py b/ibis/backends/base/__init__.py index f5419eaea469..3235c2636547 100644 --- a/ibis/backends/base/__init__.py +++ b/ibis/backends/base/__init__.py @@ -1433,9 +1433,14 @@ def _from_url(self, url: str, **kwargs) -> BaseBackend: url = urlparse(url) netloc = url...
akvo__akvo-rsr-2135
403 error when adding new project ## Test plan GIVEN the 'My projects' page in MyRSR AS an organisation Admin of an organisation that can 'create new projects' WHEN clicking 'Add new project' THEN no 403 'Forbidden' error should be shown ## Issue description The issue here is that we create a project and then redirec...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nim...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nim...
diff --git a/akvo/rest/views/project_editor.py b/akvo/rest/views/project_editor.py index 77743a8462..1e7ce298f2 100644 --- a/akvo/rest/views/project_editor.py +++ b/akvo/rest/views/project_editor.py @@ -27,6 +27,7 @@ from django.http import HttpResponseForbidden from django.utils.translation import ugettext_lazy as _...
PyGithub__PyGithub-1144
Organization needs get_team_by_slug() https://developer.github.com/v3/teams/#get-team-by-name This API call is missing.
[ { "content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Steve English <steve.english@navetas.com> #\n# Copyright 2012 Vincent ...
[ { "content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Steve English <steve.english@navetas.com> #\n# Copyright 2012 Vincent ...
diff --git a/github/Organization.py b/github/Organization.py index 30335f1201..a3fc00836d 100644 --- a/github/Organization.py +++ b/github/Organization.py @@ -790,6 +790,19 @@ def get_team(self, id): ) return github.Team.Team(self._requester, headers, data, completed=True) + def get_team_by_slug(...
borgbackup__borg-6937
strange warnings / build failure for 1.2.1 reported by lazyvirus on the borgbackup mailing list: debian bullseye ====================== Hi, I uninstalled 1.1.18 to replace it with 1.2.1, checked all dependencies were installed, but pip3 is failing and I don't know why. As it is a long output it is attach...
[ { "content": "# borgbackup - main setup code (see also other setup_*.py files)\n\nimport os\nimport sys\nfrom collections import defaultdict\nfrom glob import glob\n\ntry:\n import multiprocessing\nexcept ImportError:\n multiprocessing = None\n\nfrom setuptools.command.build_ext import build_ext\nfrom set...
[ { "content": "# borgbackup - main setup code (see also other setup_*.py files)\n\nimport os\nimport sys\nfrom collections import defaultdict\nfrom glob import glob\n\ntry:\n import multiprocessing\nexcept ImportError:\n multiprocessing = None\n\nfrom setuptools.command.build_ext import build_ext\nfrom set...
diff --git a/setup.py b/setup.py index 95c31fe024..dd42245af8 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ multiprocessing = None from setuptools.command.build_ext import build_ext -from setuptools import setup, find_packages, Extension, Command +from setuptools import setup, find_namespace_packages, ...
internetarchive__openlibrary-7931
Search results page fails to render if search string includes special characters <!-- What problem are we solving? What does the experience look like today? What are the symptoms? --> ### Evidence / Screenshot (if possible) <img width="1050" alt="Screen Shot 2023-03-08 at 2 56 35 PM" src="https://user-images.github...
[ { "content": "from typing import Callable, Literal, Optional\nfrom luqum.parser import parser\nfrom luqum.tree import Item, SearchField, BaseOperation, Group, Word, Unary\nimport re\n\n\nclass EmptyTreeError(Exception):\n pass\n\n\ndef luqum_remove_child(child: Item, parents: list[Item]):\n \"\"\"\n Re...
[ { "content": "from typing import Callable, Literal, Optional\nfrom luqum.parser import parser\nfrom luqum.tree import Item, SearchField, BaseOperation, Group, Word, Unary\nimport re\n\n\nclass EmptyTreeError(Exception):\n pass\n\n\ndef luqum_remove_child(child: Item, parents: list[Item]):\n \"\"\"\n Re...
diff --git a/openlibrary/solr/query_utils.py b/openlibrary/solr/query_utils.py index 116733bb4cc..82d40d9cede 100644 --- a/openlibrary/solr/query_utils.py +++ b/openlibrary/solr/query_utils.py @@ -131,10 +131,12 @@ def fully_escape_query(query: str) -> str: 'x\\\\:\\\\[A TO Z\\\\}' >>> fully_escape_query('foo...
liberapay__liberapay.com-1028
Ambiguous text on Organizations/Teams/Individuals pages The Individuals page starts with "The top 18 individuals on Liberapay are:" (and likewise for Organizations). Are these all the organizations/individuals there are? If not, how can I browse/search more? The teams page is more definitive, stating "There are 210 ...
[ { "content": "# encoding: utf8\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom base64 import b64decode, b64encode\nfrom binascii import hexlify, unhexlify\nfrom datetime import date, datetime, timedelta\nfrom decimal import Decimal, InvalidOperation\nimport errno\ni...
[ { "content": "# encoding: utf8\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom base64 import b64decode, b64encode\nfrom binascii import hexlify, unhexlify\nfrom datetime import date, datetime, timedelta\nfrom decimal import Decimal, InvalidOperation\nimport errno\ni...
diff --git a/liberapay/utils/__init__.py b/liberapay/utils/__init__.py index ee4f329091..d7c6ba7f0f 100644 --- a/liberapay/utils/__init__.py +++ b/liberapay/utils/__init__.py @@ -420,14 +420,17 @@ def build_s3_object_url(key): return endpoint + "/" + key + "?" + querystring + "&X-Amz-Signature=" + signature -d...
chainer__chainer-244
Add type check to LocalResponseNormalization function Related to #123
[ { "content": "from chainer import cuda\nfrom chainer import function\nimport six\n\n\ndef _cu_conv_sum(y, x, n):\n # Convolutional sum\n # TODO(beam2d): Use scan computation\n rdim = x.size // (x.shape[0] * x.shape[1])\n cuda.elementwise(\n 'float* y, const float* x, int rdim, int N, int n_',...
[ { "content": "import numpy\nimport six\n\nfrom chainer import cuda\nfrom chainer import function\nfrom chainer.utils import type_check\n\n\ndef _cu_conv_sum(y, x, n):\n # Convolutional sum\n # TODO(beam2d): Use scan computation\n rdim = x.size // (x.shape[0] * x.shape[1])\n cuda.elementwise(\n ...
diff --git a/chainer/functions/local_response_normalization.py b/chainer/functions/local_response_normalization.py index d1478ba558e2..ed5a1a3c27b9 100644 --- a/chainer/functions/local_response_normalization.py +++ b/chainer/functions/local_response_normalization.py @@ -1,6 +1,9 @@ +import numpy +import six + from cha...
iterative__dvc-6764
exp show --sort-by: not working # Bug Report ## Description `dvc exp show --sort-by` doesn't seem to do any sorting. ### Reproduce ``` $ dvc init $ echo "p: 0" > params.yaml $ dvc stage add -p p -n test "echo test" $ dvc exp run $ dvc exp run -S p=2 $ dvc exp run -S p=1 $ dvc exp show --sort-by p ┏━...
[ { "content": "import argparse\nimport logging\nfrom collections import Counter, OrderedDict, defaultdict\nfrom datetime import date, datetime\nfrom fnmatch import fnmatch\nfrom typing import TYPE_CHECKING, Dict, Iterable, Optional\n\nfrom funcy import compact, lmap\n\nfrom dvc.command import completion\nfrom dv...
[ { "content": "import argparse\nimport logging\nfrom collections import Counter, OrderedDict, defaultdict\nfrom datetime import date, datetime\nfrom fnmatch import fnmatch\nfrom typing import TYPE_CHECKING, Dict, Iterable, Optional\n\nfrom funcy import compact, lmap\n\nfrom dvc.command import completion\nfrom dv...
diff --git a/dvc/command/experiments.py b/dvc/command/experiments.py index f40adfc865..e826af380a 100644 --- a/dvc/command/experiments.py +++ b/dvc/command/experiments.py @@ -258,11 +258,12 @@ def _sort_column(sort_by, metric_names, param_names): def _sort_exp(experiments, sort_path, sort_name, typ, reverse): def...
pypa__setuptools-3705
[BUG] release v65.6.0 breaks packages downstream due to removal of `distutils.log.Log` ### setuptools version 65.6.0 ### Python version Python 3.10 ### OS Ubuntu ### Additional environment information _No response_ ### Description The `distutils.log.Log` class was removed in https://github.com/pypa/setuptools/...
[ { "content": "\"\"\"\nA simple log mechanism styled after PEP 282.\n\nRetained for compatibility and should not be used.\n\"\"\"\n\nimport logging\n\nfrom ._log import log as _global_log\n\n\nDEBUG = logging.DEBUG\nINFO = logging.INFO\nWARN = logging.WARN\nERROR = logging.ERROR\nFATAL = logging.FATAL\n\nlog = _...
[ { "content": "\"\"\"\nA simple log mechanism styled after PEP 282.\n\nRetained for compatibility and should not be used.\n\"\"\"\n\nimport logging\nimport warnings\n\nfrom ._log import log as _global_log\n\n\nDEBUG = logging.DEBUG\nINFO = logging.INFO\nWARN = logging.WARN\nERROR = logging.ERROR\nFATAL = logging...
diff --git a/changelog.d/3693.bugfix.rst b/changelog.d/3693.bugfix.rst new file mode 100644 index 0000000000..53f64ccf75 --- /dev/null +++ b/changelog.d/3693.bugfix.rst @@ -0,0 +1 @@ +Merge pypa/distutils@3e9d47e with compatibility fix for distutils.log.Log. diff --git a/setuptools/_distutils/log.py b/setuptools/_distu...
conda__conda-build-1546
Invalid assertion error: "Can't merge/copy source into subdirectory of itself" The check in https://github.com/conda/conda-build/blob/master/conda_build/utils.py#L194 causes invalid AssertionErrors in some cases. I have this build where the source is in `/xxx` which causes the build to fail with ``` Copying /xxx...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import defaultdict\nimport contextlib\nfrom difflib import get_close_matches\nimport fnmatch\nfrom glob import glob\nfrom locale import getpreferredencoding\nimport logging\nimport operator\nimport os\nfrom os.pat...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import defaultdict\nimport contextlib\nfrom difflib import get_close_matches\nimport fnmatch\nfrom glob import glob\nfrom locale import getpreferredencoding\nimport logging\nimport operator\nimport os\nfrom os.pat...
diff --git a/conda_build/utils.py b/conda_build/utils.py index 18c6213f8a..436baf6264 100644 --- a/conda_build/utils.py +++ b/conda_build/utils.py @@ -193,8 +193,10 @@ def merge_tree(src, dst, symlinks=False, timeout=90, lock=None): Like copytree(src, dst), but raises an error if merging the two trees would o...
ietf-tools__datatracker-6786
feat/clarity is leaking a code token on the html view At https://dt-clarity.dev.ietf.org/doc/html/rfc7228 ![image](https://github.com/ietf-tools/datatracker/assets/10996692/31b74396-04d2-4c98-9bd9-f3ec4806b09f) cc: @larseggert @cabo
[ { "content": "# Copyright The IETF Trust 2007-2023, All Rights Reserved\n# -*- coding: utf-8 -*-\n\n\nimport datetime\nimport re\nfrom pathlib import Path\nfrom urllib.parse import urljoin\nfrom zoneinfo import ZoneInfo\n\nfrom django import template\nfrom django.conf import settings\nfrom django.utils.html imp...
[ { "content": "# Copyright The IETF Trust 2007-2023, All Rights Reserved\n# -*- coding: utf-8 -*-\n\n\nimport datetime\nimport re\nfrom pathlib import Path\nfrom urllib.parse import urljoin\nfrom zoneinfo import ZoneInfo\n\nfrom django import template\nfrom django.conf import settings\nfrom django.utils.html imp...
diff --git a/ietf/doc/templatetags/ietf_filters.py b/ietf/doc/templatetags/ietf_filters.py index 35c79ac28d..35f9f91b43 100644 --- a/ietf/doc/templatetags/ietf_filters.py +++ b/ietf/doc/templatetags/ietf_filters.py @@ -933,3 +933,28 @@ def url_for_path(path): return f"{settings.IETF_ID_ARCHIVE_URL}{path.name}"...
paperless-ngx__paperless-ngx-4867
[BUG] SMTP config has no var for FROM ### Description Sending email for a password reset fails (Server 500) because the email server rejects from address. Paperless-ngx is using a default "webmaster@localhost" as the FROM address while the account details are associated with a specific email. It's either a case where...
[ { "content": "import datetime\nimport json\nimport math\nimport multiprocessing\nimport os\nimport re\nimport tempfile\nfrom os import PathLike\nfrom pathlib import Path\nfrom platform import machine\nfrom typing import Final\nfrom typing import Optional\nfrom typing import Union\nfrom urllib.parse import urlpa...
[ { "content": "import datetime\nimport json\nimport math\nimport multiprocessing\nimport os\nimport re\nimport tempfile\nfrom os import PathLike\nfrom pathlib import Path\nfrom platform import machine\nfrom typing import Final\nfrom typing import Optional\nfrom typing import Union\nfrom urllib.parse import urlpa...
diff --git a/docs/configuration.md b/docs/configuration.md index c0e8022ac31..87d9924435a 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1345,6 +1345,10 @@ password. All of these options come from their similarly-named [Django settings] : Defaults to ''. +#### [`PAPERLESS_EMAIL_FROM=<str>`](#PA...
sktime__sktime-5996
[BUG] `transform` method of `MSTL` transformer does not work. **Describe the bug** <!-- A clear and concise description of what the bug is. --> transform method of the MSTL transformer returns an error. **To Reproduce** <!-- Add a Minimal, Complete, and Verifiable example (for more details, see e.g. https://stac...
[ { "content": "# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Implements MSTL.\"\"\"\n\n__all__ = [\"MSTL\"]\n__authors__ = [\"luca-miniati\"]\n\nfrom typing import Dict, Optional, Sequence, Union\n\nimport pandas as pd\n\nfrom sktime.transformations.base import BaseTransformer\n\...
[ { "content": "# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Implements MSTL.\"\"\"\n\n__all__ = [\"MSTL\"]\n__authors__ = [\"luca-miniati\"]\n\nfrom typing import Dict, Optional, Sequence, Union\n\nimport pandas as pd\n\nfrom sktime.transformations.base import BaseTransformer\n\...
diff --git a/.all-contributorsrc b/.all-contributorsrc index d17442e3cb7..e8cd40b968e 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -2583,6 +2583,16 @@ "contributions": [ "code" ] + }, + { + "login": "Abhay-Lejith", + "name": "Abhay Lejith", + "avatar_url": "h...
cloudtools__troposphere-751
Scaler AWSHelperFn should not override list context The below test illustrates this issue. The param property is defined as a list of basestrings. This should then allow a list of AWSHelperFn as well (param=[Ref(fake)] below). However, a scaler AWSHelperFn should cause an error (param=Ref(fake) below) but is accepted. ...
[ { "content": "# Copyright (c) 2012-2017, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\n\nimport cfn_flip\nimport collections\nimport json\nimport re\nimport sys\nimport types\n\nfrom . import validators\n\n__version__ = \"1.9.4\"\n\n# constants for DeletionPolicy\...
[ { "content": "# Copyright (c) 2012-2017, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\n\nimport cfn_flip\nimport collections\nimport json\nimport re\nimport sys\nimport types\n\nfrom . import validators\n\n__version__ = \"1.9.4\"\n\n# constants for DeletionPolicy\...
diff --git a/tests/test_basic.py b/tests/test_basic.py index 49f290fa7..a0a02ead1 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -379,5 +379,26 @@ def test_join(self): Join(10, "foobar") +class TestHelperFn(unittest.TestCase): + + def test_helperfn(self): + class FakeRef(AWSObj...
scikit-hep__awkward-2099
unflatten raises counts must be an integer or a one-dimensional array of integers on a 1D awkward-array (worked in 1.x) ### Version of Awkward Array 2.0.5 ### Description and code to reproduce I'm trying to transition from awkward 1.x -> 2.x, and ran into an issue with `ak.unflatten` where the call in 1.x works, but...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\nimport numbers\n\nimport awkward as ak\n\nnp = ak._nplikes.NumpyMetadata.instance()\n\n\ndef unflatten(array, counts, axis=0, *, highlevel=True, behavior=None):\n \"\"\"\n Args:\n array: Array-l...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\nimport numbers\n\nimport awkward as ak\n\nnp = ak._nplikes.NumpyMetadata.instance()\n\n\ndef unflatten(array, counts, axis=0, *, highlevel=True, behavior=None):\n \"\"\"\n Args:\n array: Array-l...
diff --git a/src/awkward/operations/ak_unflatten.py b/src/awkward/operations/ak_unflatten.py index f4d83b1a72..61960b8462 100644 --- a/src/awkward/operations/ak_unflatten.py +++ b/src/awkward/operations/ak_unflatten.py @@ -93,9 +93,10 @@ def _impl(array, counts, axis, highlevel, behavior): if isinstance(counts, (n...
ietf-tools__datatracker-6884
ad dashboard shows drafts that have become RFCs both as drafts and as RFCs See the sections labelled "RFCs" and "Published RFCs" - Only the second section should be kept. At the moment, the sections don't have the same number of documents in them which is surprising. Develop and understanding of that while working on ...
[ { "content": "# Copyright The IETF Trust 2009-2023, All Rights Reserved\n# -*- coding: utf-8 -*-\n#\n# Some parts Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).\n# All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>\n#\n# Redistribution and use in source and binary forms, w...
[ { "content": "# Copyright The IETF Trust 2009-2023, All Rights Reserved\n# -*- coding: utf-8 -*-\n#\n# Some parts Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).\n# All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>\n#\n# Redistribution and use in source and binary forms, w...
diff --git a/ietf/doc/views_search.py b/ietf/doc/views_search.py index 964894bff9..0117886f70 100644 --- a/ietf/doc/views_search.py +++ b/ietf/doc/views_search.py @@ -591,7 +591,7 @@ def sort_key(doc): if not ad: raise Http404 - results, meta = prepare_document_table(request, Document.objects.filter(...
Theano__Theano-3903
AbstractConv2d does not implement R_op While trying to calculate a Hessian vector product of a loss function involving convolutions, I came across the following exception which told me to report this to theano: ``` NotImplementedError: AbstractConv2d{border_mode=(0, 0), subsample=(1, 1), filter_flip=True, imshp=(None,...
[ { "content": "\"\"\"\nDefine abstract conv2d interface\n\"\"\"\n\nimport logging\nimport theano\n\nfrom theano.tensor import as_tensor_variable, patternbroadcast\nfrom theano.gof import Apply, Op\n\n\n__docformat__ = \"restructuredtext en\"\n_logger = logging.getLogger(\"theano.tensor.nnet.conv2d\")\n\n\ndef ge...
[ { "content": "\"\"\"\nDefine abstract conv2d interface\n\"\"\"\n\nimport logging\nimport theano\n\nfrom theano.tensor import as_tensor_variable, patternbroadcast\nfrom theano.gof import Apply, Op\n\n\n__docformat__ = \"restructuredtext en\"\n_logger = logging.getLogger(\"theano.tensor.nnet.conv2d\")\n\n\ndef ge...
diff --git a/theano/tensor/nnet/abstract_conv.py b/theano/tensor/nnet/abstract_conv.py index 402e1e53476..6a4e51902d5 100644 --- a/theano/tensor/nnet/abstract_conv.py +++ b/theano/tensor/nnet/abstract_conv.py @@ -308,6 +308,17 @@ def perform(self, node, inp, out_): 'Did you exclude both "conv_dnn" and "con...
conan-io__conan-center-index-636
[package] libx264/20190605: build fail compiler.version setting required for vcvars not defined ### Package and Environment Details * Package Name/Version: **libx264/20190605** * Operating System+version: **Windows 10** * Compiler+version: **Mingw GCC 8.1** * Docker image: **conanio/gcc8.1** * Conan ve...
[ { "content": "from conans import ConanFile, tools, AutoToolsBuildEnvironment\nimport os\n\n\nclass LibX264Conan(ConanFile):\n name = \"libx264\"\n url = \"https://github.com/conan-io/conan-center-index\"\n homepage = \"https://www.videolan.org/developers/x264.html\"\n description = \"x264 is a free ...
[ { "content": "from conans import ConanFile, tools, AutoToolsBuildEnvironment\nimport os\n\n\nclass LibX264Conan(ConanFile):\n name = \"libx264\"\n url = \"https://github.com/conan-io/conan-center-index\"\n homepage = \"https://www.videolan.org/developers/x264.html\"\n description = \"x264 is a free ...
diff --git a/recipes/libx264/all/conanfile.py b/recipes/libx264/all/conanfile.py index 2f7106fc90b68..54ccb84738a00 100644 --- a/recipes/libx264/all/conanfile.py +++ b/recipes/libx264/all/conanfile.py @@ -90,12 +90,12 @@ def _configure_autotools(self): return self._autotools def build(self): - wi...
iterative__dvc-431
dvc run: regular output files should not be in .gitignore Please add a corresponded unit-test. See examples in class `TestGitIgnoreWhenCheckout` file `test_checkout.py`.
[ { "content": "import os\nimport stat\nimport yaml\nimport itertools\n\nfrom dvc.system import System\nfrom dvc.utils import file_md5\nfrom dvc.exceptions import DvcException\nfrom dvc.executor import Executor\n\n\nclass OutputError(DvcException):\n pass\n\n\nclass MissingDataSource(OutputError):\n def __i...
[ { "content": "import os\nimport stat\nimport yaml\nimport itertools\n\nfrom dvc.system import System\nfrom dvc.utils import file_md5\nfrom dvc.exceptions import DvcException\nfrom dvc.executor import Executor\n\n\nclass OutputError(DvcException):\n pass\n\n\nclass MissingDataSource(OutputError):\n def __i...
diff --git a/dvc/stage.py b/dvc/stage.py index 4bd12d16e0..3a49544baf 100644 --- a/dvc/stage.py +++ b/dvc/stage.py @@ -293,7 +293,8 @@ def changed(self): def remove_outs(self): for out in self.outs: out.remove() - self.project.scm.ignore_remove(out.path) + if out.use_cac...
xonsh__xonsh-1497
Document sequence attributes of the history object ``` python self.tss = CommandField('ts', self) self.inps = CommandField('inp', self) self.outs = CommandField('out', self) self.rtns = CommandField('rtn', self) ``` It turns out these are supposed to be the public interface to the history object but they scared me awa...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Implements the xonsh history object.\"\"\"\nimport os\nimport sys\nimport uuid\nimport time\nimport json\nimport glob\nimport argparse\nimport operator\nimport datetime\nimport builtins\nimport functools\nimport threading\nimport collections\nimport collections.abc a...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Implements the xonsh history object.\"\"\"\nimport os\nimport sys\nimport uuid\nimport time\nimport json\nimport glob\nimport argparse\nimport operator\nimport datetime\nimport builtins\nimport functools\nimport threading\nimport collections\nimport collections.abc a...
diff --git a/xonsh/history.py b/xonsh/history.py index ea9dc48e63..58951462f5 100644 --- a/xonsh/history.py +++ b/xonsh/history.py @@ -505,7 +505,22 @@ def _hist_show(ns=None, hist=None, start_index=None, end_index=None, # Interface to History # class History(object): - """Xonsh session history.""" + """Xonsh ...
rucio__rucio-1799
REST call for requests is broken by '/' in DIDs Motivation ---------- As discussed in #1786 , the REST call of https://github.com/rucio/rucio/blob/master/lib/rucio/web/rest/webpy/v1/request.py get broken for DIDs containing `/` Modification ------------ I think that rather than doing this (*) we can pass all the...
[ { "content": "#!/usr/bin/env python\n# Copyright 2012-2018 CERN for the benefit of the ATLAS collaboration.\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.a...
[ { "content": "#!/usr/bin/env python\n# Copyright 2012-2018 CERN for the benefit of the ATLAS collaboration.\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.a...
diff --git a/lib/rucio/web/rest/webpy/v1/request.py b/lib/rucio/web/rest/webpy/v1/request.py index 5a456d3b5a..dd49b127a9 100755 --- a/lib/rucio/web/rest/webpy/v1/request.py +++ b/lib/rucio/web/rest/webpy/v1/request.py @@ -26,6 +26,7 @@ from web import application, ctx, loadhook, header from rucio.api import reques...
opsdroid__opsdroid-700
Pass config to skill setup method # Description When running the `setup` method of a skill only a pointer to opsdroid is passed, the config for that skill should be passed too. See the [call here](https://github.com/opsdroid/opsdroid/blob/master/opsdroid/core.py#L153).
[ { "content": "\"\"\"Core components of OpsDroid.\"\"\"\n\nimport copy\nimport logging\nimport os\nimport signal\nimport sys\nimport weakref\nimport asyncio\nimport contextlib\n\nfrom opsdroid.memory import Memory\nfrom opsdroid.connector import Connector\nfrom opsdroid.database import Database\nfrom opsdroid.lo...
[ { "content": "\"\"\"Core components of OpsDroid.\"\"\"\n\nimport copy\nimport logging\nimport os\nimport signal\nimport sys\nimport weakref\nimport asyncio\nimport contextlib\n\nfrom opsdroid.memory import Memory\nfrom opsdroid.connector import Connector\nfrom opsdroid.database import Database\nfrom opsdroid.lo...
diff --git a/opsdroid/core.py b/opsdroid/core.py index 551921f2f..d89486d3c 100644 --- a/opsdroid/core.py +++ b/opsdroid/core.py @@ -147,10 +147,18 @@ def start_loop(self): self.eventloop.close() def setup_skills(self, skills): - """Call the setup function on the passed in skills.""" + ...
matrix-org__synapse-6268
room directory search is case sensitive in synapse 1.5.0 Hello folks. Originally posed this in Riot Web/Desktop room, and they told me the issue is a "Synapse" issue. I'm a knob so I had to look up what that is, and then come find this room. And with that setup info... Wanted to mention again what seems to me to be som...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2014-2016 OpenMarket Ltd\n# Copyright 2019 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\n#...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2014-2016 OpenMarket Ltd\n# Copyright 2019 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\n#...
diff --git a/changelog.d/6286.bugfix b/changelog.d/6286.bugfix new file mode 100644 index 000000000000..a4bebec1c7fc --- /dev/null +++ b/changelog.d/6286.bugfix @@ -0,0 +1 @@ +Fix bug where room directory search was case sensitive. diff --git a/synapse/storage/data_stores/main/room.py b/synapse/storage/data_stores/main...
wagtail__wagtail-7122
Hallo editor does not work in StructBlock I upgraded an old Wagtail project to test Wagtail 2.13rc1 and found that text is not rendered into the Hallo.js rich text editor if the editor is part of a StructBlock. The editor behaves just fine if it is used in its own RichTextField. ### Steps to Reproduce I created ...
[ { "content": "import json\n\nfrom collections import OrderedDict\n\nfrom django.forms import Media, widgets\nfrom django.utils.functional import cached_property\n\nfrom wagtail.admin.edit_handlers import RichTextFieldPanel\nfrom wagtail.admin.rich_text.converters.editor_html import EditorHTMLConverter\nfrom wag...
[ { "content": "import json\n\nfrom collections import OrderedDict\n\nfrom django.forms import Media, widgets\nfrom django.utils.functional import cached_property\n\nfrom wagtail.admin.edit_handlers import RichTextFieldPanel\nfrom wagtail.admin.rich_text.converters.editor_html import EditorHTMLConverter\nfrom wag...
diff --git a/client/src/entrypoints/admin/telepath/widgets.js b/client/src/entrypoints/admin/telepath/widgets.js index c8434e3e48b6..d22ab5b07d5c 100644 --- a/client/src/entrypoints/admin/telepath/widgets.js +++ b/client/src/entrypoints/admin/telepath/widgets.js @@ -185,6 +185,22 @@ class DraftailRichTextArea { window...
ivy-llc__ivy-18915
triangular
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.numpy.func_wrapper import (\n to_ivy_arrays_and_back,\n from_zero_dim_arrays_to_scalar,\n)\n\n\n@to_ivy_arrays_and_back\n@from_zero_dim_arrays_to_scalar\ndef random_sample(size=None):\n return ivy.random_uniform(low=0.0, high=1.0, shape=s...
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.numpy.func_wrapper import (\n to_ivy_arrays_and_back,\n from_zero_dim_arrays_to_scalar,\n)\n\n\n@to_ivy_arrays_and_back\n@from_zero_dim_arrays_to_scalar\ndef random_sample(size=None):\n return ivy.random_uniform(low=0.0, high=1.0, shape=s...
diff --git a/ivy/functional/frontends/numpy/random/functions.py b/ivy/functional/frontends/numpy/random/functions.py index 40ce93f5e4397..16217f59e3ebb 100644 --- a/ivy/functional/frontends/numpy/random/functions.py +++ b/ivy/functional/frontends/numpy/random/functions.py @@ -197,3 +197,19 @@ def logistic(loc=0.0, scal...
open-telemetry__opentelemetry-python-contrib-1014
opentelemetry-instrumentation-urllib
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c353d3d8e..7092f512e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- `opentelemetry-instrumentation-urllib` make span attributes available to sampler + ([1014...
dask__dask-2506
test_deterministic_reduction_names fails with Bottleneck 1.2.1 I just updated my system from python[23]-Bottleneck 1.2.0 to 1.2.1, and it appears to have caused some trouble with the tests. This only affects Python 2: ```pytb dask/dataframe/tests/test_arithmetics_reduction.py FF = = _ test_deterministic_reducti...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import OrderedDict, Iterator\nimport copy\nfrom functools import partial\nfrom hashlib import md5\nimport inspect\nimport pickle\nimport os\nimport uuid\n\nfrom toolz import merge, groupby, curry, identity\nfrom t...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import OrderedDict, Iterator\nimport copy\nfrom functools import partial\nfrom hashlib import md5\nimport inspect\nimport pickle\nimport os\nimport uuid\n\nfrom toolz import merge, groupby, curry, identity\nfrom t...
diff --git a/dask/base.py b/dask/base.py index c491e450b89..59c6b6e0080 100644 --- a/dask/base.py +++ b/dask/base.py @@ -13,7 +13,7 @@ from toolz.functoolz import Compose from . import sharedict -from .compatibility import bind_method, unicode, PY3 +from .compatibility import bind_method, long, unicode, PY3 from ....
aws__aws-cli-4581
awscli-bundle 1.6.256 does not install with Python 2.6 (colorama dependency not met) On-going issue with colorama dependency. previous closed issue: https://github.com/aws/aws-cli/issues/4563 ``` sudo awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws ... Running cmd: /usr/bin/python virtualenv.py -...
[ { "content": "#!/usr/bin/env python\nimport codecs\nimport os.path\nimport re\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n return codecs.open(os.path.join(here, *parts), 'r').read()\n\n\ndef find_version(*file_paths...
[ { "content": "#!/usr/bin/env python\nimport codecs\nimport os.path\nimport re\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n return codecs.open(os.path.join(here, *parts), 'r').read()\n\n\ndef find_version(*file_paths...
diff --git a/setup.cfg b/setup.cfg index 6a3dace3da36..c39bc4e18307 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,11 +5,11 @@ universal = 1 [metadata] requires-dist = botocore==1.12.247 - colorama>=0.2.5,<0.3.9; python_version=="2.6" or python_version=="3.3" + colorama>=0.2.5,<=0.3.9; python_ver...
pulp__pulpcore-2664
Improve proxy connection failure error message Raise a more informative error message when the proxy rejects requests from Pulp BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2047485
[ { "content": "import logging\n\nimport aiohttp\nimport asyncio\nimport backoff\n\nfrom .base import BaseDownloader, DownloadResult\nfrom pulpcore.exceptions import (\n DigestValidationError,\n SizeValidationError,\n TimeoutException,\n)\n\n\nlog = logging.getLogger(__name__)\n\n\nlogging.getLogger(\"ba...
[ { "content": "import logging\n\nimport aiohttp\nimport asyncio\nimport backoff\n\nfrom .base import BaseDownloader, DownloadResult\nfrom pulpcore.exceptions import (\n DigestValidationError,\n SizeValidationError,\n TimeoutException,\n)\n\n\nlog = logging.getLogger(__name__)\n\n\nlogging.getLogger(\"ba...
diff --git a/CHANGES/2654.bugfix b/CHANGES/2654.bugfix new file mode 100644 index 0000000000..304ad33a16 --- /dev/null +++ b/CHANGES/2654.bugfix @@ -0,0 +1 @@ +Improved the error message when HTTP proxies reject requests from Pulp. diff --git a/pulpcore/download/http.py b/pulpcore/download/http.py index 2b1b72df43..a66...
ESMCI__cime-2700
Issue downloading data (wildcards not supported in HTTP) I was wanting to have a case download all of the data it needs. First create an empty tmp inputdata directory, set the DIN env vars. However, I got error below which seems like a problem with wget and wildcards? ``` Refcase not found in /global/cscra...
[ { "content": "\"\"\"\nWGET Server class. Interact with a server using WGET protocol\n\"\"\"\n# pylint: disable=super-init-not-called\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.Servers.generic_server import GenericServer\n\nlogger = logging.getLogger(__name__)\n\nclass WGET(GenericServer):\n de...
[ { "content": "\"\"\"\nWGET Server class. Interact with a server using WGET protocol\n\"\"\"\n# pylint: disable=super-init-not-called\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.Servers.generic_server import GenericServer\n\nlogger = logging.getLogger(__name__)\n\nclass WGET(GenericServer):\n de...
diff --git a/scripts/lib/CIME/Servers/wget.py b/scripts/lib/CIME/Servers/wget.py index 4b185c8a705..8fc6619e4e0 100644 --- a/scripts/lib/CIME/Servers/wget.py +++ b/scripts/lib/CIME/Servers/wget.py @@ -46,7 +46,9 @@ def getfile(self, rel_path, full_path): def getdirectory(self, rel_path, full_path): full_u...