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
⌀
buildbot__buildbot-5744
GitHubPullrequestPoller token secret gives builtins.TypeError: When attempting the following in GitHubPullrequestPoller: ``` token=util.Secret("githubToken"), ``` I receive: builtins.TypeError: must be str, not Secret and similarly via Interpolate: ``` token=util.Interpolate("%(secret:githubToken)s"), ``` bu...
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n...
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n...
diff --git a/master/buildbot/changes/github.py b/master/buildbot/changes/github.py index 2874dbe5fe20..dce0f8da7ecc 100644 --- a/master/buildbot/changes/github.py +++ b/master/buildbot/changes/github.py @@ -106,6 +106,7 @@ def reconfigService(self, http_headers = {'User-Agent': 'Buildbot'} if token ...
nipy__nipype-2129
ANTs interfaces crash when checking version ### Summary ANTs interfaces crash if the version does not contain commit hash. E.g.: ``` antsRegistration --version ANTs Version: 2.2.0 ``` ### Actual behavior ``` Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/nipype/pipeline/p...
[ { "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\"\"\"The ants module provides basic functions for interfacing with ANTS tools.\"\"\"\nfrom __future__ import print_function, division, unicode_literals, abs...
[ { "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\"\"\"The ants module provides basic functions for interfacing with ANTS tools.\"\"\"\nfrom __future__ import print_function, division, unicode_literals, abs...
diff --git a/nipype/interfaces/ants/base.py b/nipype/interfaces/ants/base.py index c83b3473bc..3ab50a24f5 100644 --- a/nipype/interfaces/ants/base.py +++ b/nipype/interfaces/ants/base.py @@ -53,7 +53,8 @@ def version(self): else: return None - v_string, githash = self._version.spl...
aio-libs-abandoned__aioredis-py-313
Missing PyPI classifier for Python 3.6 support Currently, the PyPI page shows the following as supported: > Programming Language :: Python > Programming Language :: Python :: 3 > Programming Language :: Python :: 3.3 > Programming Language :: Python :: 3.4 > Programming Language :: Python :: 3.5 However, Pyth...
[ { "content": "import re\nimport os.path\nimport sys\nimport platform\nfrom setuptools import setup, find_packages\n\n\ninstall_requires = ['async-timeout']\nif platform.python_implementation() == 'CPython':\n install_requires.append('hiredis')\n\nPY_VER = sys.version_info\n\nif PY_VER >= (3, 4):\n pass\ne...
[ { "content": "import re\nimport os.path\nimport sys\nimport platform\nfrom setuptools import setup, find_packages\n\n\ninstall_requires = ['async-timeout']\nif platform.python_implementation() == 'CPython':\n install_requires.append('hiredis')\n\nPY_VER = sys.version_info\n\nif PY_VER >= (3, 4):\n pass\ne...
diff --git a/setup.py b/setup.py index 5f700e90f..041c87a39 100644 --- a/setup.py +++ b/setup.py @@ -45,6 +45,7 @@ def read_version(): 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', ...
kserve__kserve-2134
kfserving-samples bucket on GCS was gone /kind bug **What steps did you take and what happened:** The existing codebase is running some test code with a prebuild model file located in GCS, especially `gs://kfserving-samples/models/tensorflow/flowers` but now seems the bucket is gone already. Do we have other alte...
[ { "content": "#\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 applicable law or agreed to in writing,...
[ { "content": "#\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 applicable law or agreed to in writing,...
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index abad20aee9c..e876368ff81 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: ^1.14 + go-version: 1.17 ...
python-telegram-bot__python-telegram-bot-953
pre_checkout_query does not store bot. ### Steps to reproduce - On a PreChecoutQueryHandler, get the PreCheckoutQuery object update.pre_checkout_query - Try to answer it, bot has not been set: File "/home/folarte/sexychat/nor File "/home/folarte/sexychat/normalstate.py", line 998, in on_pcoq pcoq.answe...
[ { "content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2017\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-2017\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 9f0f86d667b..7e3e486816a 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -22,6 +22,7 @@ The following wonderful people contributed directly or indirectly to this projec - `bimmlerd <https://github.com/bimmlerd>`_ - `d-qoi <https://github.com/d-qoi>`_ - `daimajia <https://gi...
goauthentik__authentik-8146
2023.10.6 - "Please select a username" after Azure AD login **Describe your question/** Is it now a expected behavior in 2023.10.6 version to ask every user for username input after logging in with azure ad? ![image](https://github.com/goauthentik/authentik/assets/7706996/7c35f530-62a2-4afd-92aa-c290ad221c5f) In...
[ { "content": "\"\"\"AzureAD OAuth2 Views\"\"\"\nfrom typing import Any\n\nfrom structlog.stdlib import get_logger\n\nfrom authentik.sources.oauth.clients.oauth2 import UserprofileHeaderAuthClient\nfrom authentik.sources.oauth.types.oidc import OpenIDConnectOAuth2Callback\nfrom authentik.sources.oauth.types.regi...
[ { "content": "\"\"\"AzureAD OAuth2 Views\"\"\"\nfrom typing import Any\n\nfrom structlog.stdlib import get_logger\n\nfrom authentik.sources.oauth.clients.oauth2 import UserprofileHeaderAuthClient\nfrom authentik.sources.oauth.types.oidc import OpenIDConnectOAuth2Callback\nfrom authentik.sources.oauth.types.regi...
diff --git a/authentik/sources/oauth/tests/test_type_azure_ad.py b/authentik/sources/oauth/tests/test_type_azure_ad.py index ff9b078f9011..2f1e1731e04a 100644 --- a/authentik/sources/oauth/tests/test_type_azure_ad.py +++ b/authentik/sources/oauth/tests/test_type_azure_ad.py @@ -44,3 +44,7 @@ def test_enroll_context(sel...
Textualize__textual-1423
UI doesn't react to visibility flag change I have an app that has a dialogue box that is invisible unless someone clicks a button. When they do, I want the dialogue to appear instantly so they can confirm their action. The dialogue is in a "higher" layer than the rest of the app, and it starts invisible based on CSS. ...
[ { "content": "from __future__ import annotations\n\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass, field\nfrom functools import lru_cache\nfrom operator import attrgetter\nfrom typing import TYPE_CHECKING, Any, Iterable, NamedTuple, cast\n\nimport rich.repr\nfrom rich.style import Style...
[ { "content": "from __future__ import annotations\n\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass, field\nfrom functools import lru_cache\nfrom operator import attrgetter\nfrom typing import TYPE_CHECKING, Any, Iterable, NamedTuple, cast\n\nimport rich.repr\nfrom rich.style import Style...
diff --git a/CHANGELOG.md b/CHANGELOG.md index b2fe7fedcd..87cdfd4c8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed issues with nested auto dimensions https://github.com/Textualize/textual/issues/1402 - Fixed watch method ...
django-cms__django-cms-1078
Placeholders name with spaces break the cache In one of our apps we have placeholder names with spaces, as far as I am concern this is a valid use case. The placeholder template tag is smart enough to understand this case, however it is missing to escape one part of the name. In the following line https://github.c...
[ { "content": "# -*- coding: utf-8 -*-\nfrom classytags.arguments import Argument, MultiValueArgument\nfrom classytags.core import Options, Tag\nfrom classytags.helpers import InclusionTag\nfrom classytags.parser import Parser\nfrom cms.models import Page, Placeholder as PlaceholderModel\nfrom cms.plugin_renderi...
[ { "content": "# -*- coding: utf-8 -*-\nfrom classytags.arguments import Argument, MultiValueArgument\nfrom classytags.core import Options, Tag\nfrom classytags.helpers import InclusionTag\nfrom classytags.parser import Parser\nfrom cms.models import Page, Placeholder as PlaceholderModel\nfrom cms.plugin_renderi...
diff --git a/cms/templatetags/cms_tags.py b/cms/templatetags/cms_tags.py index 3f1706d93bc..e4421724e0f 100644 --- a/cms/templatetags/cms_tags.py +++ b/cms/templatetags/cms_tags.py @@ -331,7 +331,8 @@ def _show_placeholder_for_page(context, placeholder_name, page_lookup, lang=None content = None if cache_re...
agconti__cookiecutter-django-rest-130
Update dependencies To update: - [x] coverage (Current: 3.7.1 Latest: 4.0.3 [wheel]) - [x] django-model-utils (Current: 2.3.1 Latest: 2.4 [sdist]) - [x] django-nose (Current: 1.4.1 Latest: 1.4.2 [wheel]) - [x] django-rq (Current: 0.8.0 Latest: 0.9.0 [wheel]) - [x] django-versatileimagefield (Current: 1.0.4 Latest: 1....
[ { "content": "import os\nfrom os.path import join\n\nfrom configurations import Configuration, values\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\nclass Common(Configuration):\n\n INSTALLED_APPS = (\n 'django.contrib.admin',\n 'django.contrib.auth',\n 'd...
[ { "content": "import os\nfrom os.path import join\n\nfrom configurations import Configuration, values\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\nclass Common(Configuration):\n\n INSTALLED_APPS = (\n 'django.contrib.admin',\n 'django.contrib.auth',\n 'd...
diff --git a/{{cookiecutter.github_repository_name}}/requirements/base.txt b/{{cookiecutter.github_repository_name}}/requirements/base.txt index de4b61f3c..3b1d99294 100755 --- a/{{cookiecutter.github_repository_name}}/requirements/base.txt +++ b/{{cookiecutter.github_repository_name}}/requirements/base.txt @@ -7,28 +7...
huggingface__transformers-3973
torchscript tests fail with RuntimeError: normal_ expects std > 0.0, but found std=0 # 🐛 Bug ## Information I am running the gpt2 torchscript test from master and a call to _normal_()_ fails because the _std_ parameter is zero. The error is not limited to the GPT2 model. ## To reproduce Steps to reproduc...
[ { "content": "\"\"\"\nSimple check list from AllenNLP repo: https://github.com/allenai/allennlp/blob/master/setup.py\n\nTo create the package for pypi.\n\n1. Change the version in __init__.py, setup.py as well as docs/source/conf.py.\n\n2. Commit these changes with the message: \"Release: VERSION\"\n\n3. Add a ...
[ { "content": "\"\"\"\nSimple check list from AllenNLP repo: https://github.com/allenai/allennlp/blob/master/setup.py\n\nTo create the package for pypi.\n\n1. Change the version in __init__.py, setup.py as well as docs/source/conf.py.\n\n2. Commit these changes with the message: \"Release: VERSION\"\n\n3. Add a ...
diff --git a/setup.py b/setup.py index 4efa3290039f..15165067001f 100644 --- a/setup.py +++ b/setup.py @@ -67,7 +67,7 @@ extras["sklearn"] = ["scikit-learn"] extras["tf"] = ["tensorflow"] extras["tf-cpu"] = ["tensorflow-cpu"] -extras["torch"] = ["torch==1.4.0"] +extras["torch"] = ["torch"] extras["serving"] = ["p...
DDMAL__CantusDB-1025
Lists of users in admin area are weird In investigating #1000, I came again across some weird behavior - I'd noted it in the past, and didn't open an issue because it seemed pretty minor. But since it's actually starting to cause problems/confusion, it would be worth properly sorting out. On the Change Source page (...
[ { "content": "from django import forms\nfrom django.contrib.auth.forms import ReadOnlyPasswordHashField\nfrom .models import (\n Chant,\n Office,\n Genre,\n Notation,\n Feast,\n Source,\n RismSiglum,\n Segment,\n Provenance,\n Century,\n Sequence,\n)\nfrom .widgets import (\n ...
[ { "content": "from django import forms\nfrom django.contrib.auth.forms import ReadOnlyPasswordHashField\nfrom .models import (\n Chant,\n Office,\n Genre,\n Notation,\n Feast,\n Source,\n RismSiglum,\n Segment,\n Provenance,\n Century,\n Sequence,\n)\nfrom .widgets import (\n ...
diff --git a/django/cantusdb_project/main_app/forms.py b/django/cantusdb_project/main_app/forms.py index 6a5761eb0..d841e72b9 100644 --- a/django/cantusdb_project/main_app/forms.py +++ b/django/cantusdb_project/main_app/forms.py @@ -838,6 +838,7 @@ class Meta: | Q(groups__name="editor") | Q(gr...
apache__airflow-25305
ParamsDict represents the class object itself, not keys and values on Task Instance Details ### Apache Airflow version 2.3.3 (latest released) ### What happened ParamsDict's printable presentation shows the class object itself like `<airflow.models.param.ParamsDict object at 0x7fd0eba9bb80>` on the page of Tas...
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
diff --git a/airflow/models/param.py b/airflow/models/param.py index fcbe7a0f931c6..1179dd9fd6d0c 100644 --- a/airflow/models/param.py +++ b/airflow/models/param.py @@ -147,6 +147,9 @@ def __delitem__(self, v: str) -> None: def __iter__(self): return iter(self.__dict) + def __repr__(self): + r...
python-trio__trio-2648
MultiError is un-unpicklable ```python import trio import pickle me = trio.MultiError([ValueError()]) pickle.loads(pickle.dumps(eg)) ``` throws a ```shell ----> 1 pickle.loads(pickle.dumps(me)) TypeError: MultiError.__new__() takes 2 positional arguments but 3 were given ``` error, I think because of some ...
[ { "content": "import sys\nimport warnings\nfrom typing import Sequence\n\nimport attr\n\nfrom trio._deprecate import warn_deprecated\n\nif sys.version_info < (3, 11):\n from exceptiongroup import BaseExceptionGroup, ExceptionGroup, print_exception\nelse:\n from traceback import print_exception\n\n########...
[ { "content": "import sys\nimport warnings\nfrom typing import Sequence\n\nimport attr\n\nfrom trio._deprecate import warn_deprecated\n\nif sys.version_info < (3, 11):\n from exceptiongroup import BaseExceptionGroup, ExceptionGroup, print_exception\nelse:\n from traceback import print_exception\n\n########...
diff --git a/trio/_core/_multierror.py b/trio/_core/_multierror.py index a9778fd24..c9c355408 100644 --- a/trio/_core/_multierror.py +++ b/trio/_core/_multierror.py @@ -213,6 +213,13 @@ def __new__(cls, exceptions, *, _collapse=True): return super().__new__(cls, "multiple tasks failed", exceptions) + ...
fossasia__open-event-server-4616
Generated reset password link is correct but not clickable **I'm submitting a ...** (check one with "x") - [x] bug report - [ ] feature request - [ ] support request => Please do not submit support requests here, instead ask your query in out Gitter channel at https://gitter.im/fossasia/open-event-server **Curre...
[ { "content": "\"\"\"\nAll the System mails\nRegister a mail here before using it\n\"\"\"\nfrom app.models.mail import INVITE_PAPERS, NEW_SESSION, USER_CONFIRM, \\\n USER_REGISTER, PASSWORD_RESET, EVENT_ROLE, SESSION_ACCEPT_REJECT, \\\n SESSION_SCHEDULE, NEXT_EVENT, EVENT_PUBLISH, AFTER_EVENT, USER_CHANGE_...
[ { "content": "\"\"\"\nAll the System mails\nRegister a mail here before using it\n\"\"\"\nfrom app.models.mail import INVITE_PAPERS, NEW_SESSION, USER_CONFIRM, \\\n USER_REGISTER, PASSWORD_RESET, EVENT_ROLE, SESSION_ACCEPT_REJECT, \\\n SESSION_SCHEDULE, NEXT_EVENT, EVENT_PUBLISH, AFTER_EVENT, USER_CHANGE_...
diff --git a/app/api/helpers/system_mails.py b/app/api/helpers/system_mails.py index e288d0f837..2a56fa28ba 100644 --- a/app/api/helpers/system_mails.py +++ b/app/api/helpers/system_mails.py @@ -111,7 +111,7 @@ 'recipient': 'User', 'subject': u'{app_name}: Password Reset', 'message': ( - ...
numba__numba-6343
CUDA functions can be compiled but not called with Tuple and UniTuple arguments As the title suggests, functions with `Tuple` or `UniTuple` arguments can be compiled just fine, but are unable to actually be called without raising an exception. Here's an example using `UniTuple`: ```python import numpy as np from ...
[ { "content": "import ctypes\nimport inspect\nimport os\nimport subprocess\nimport sys\nimport tempfile\n\nimport numpy as np\n\nfrom numba.core.typing.templates import AbstractTemplate, ConcreteTemplate\nfrom numba.core import (types, typing, utils, funcdesc, serialize, config,\n compiler...
[ { "content": "import ctypes\nimport inspect\nimport os\nimport subprocess\nimport sys\nimport tempfile\n\nimport numpy as np\n\nfrom numba.core.typing.templates import AbstractTemplate, ConcreteTemplate\nfrom numba.core import (types, typing, utils, funcdesc, serialize, config,\n compiler...
diff --git a/numba/cuda/compiler.py b/numba/cuda/compiler.py index cbcc0364b56..83688b54ef6 100644 --- a/numba/cuda/compiler.py +++ b/numba/cuda/compiler.py @@ -756,6 +756,11 @@ def _prepare_args(self, ty, val, stream, retr, kernelargs): devrec = wrap_arg(val).to_device(retr, stream) kernelarg...
dbt-labs__dbt-core-5930
[CT-1239] [Feature] Allow partitions in external tables to be supplied as a list ### Is this your first time submitting a feature request? - [X] I have read the [expectations for open source contributors](https://docs.getdbt.com/docs/contributing/oss-expectations) - [X] I have searched the existing issues, and I could...
[ { "content": "import re\n\nfrom dbt import deprecations\nfrom dbt.node_types import NodeType\nfrom dbt.contracts.util import (\n AdditionalPropertiesMixin,\n Mergeable,\n Replaceable,\n rename_metric_attr,\n)\n\n# trigger the PathEncoder\nimport dbt.helper_types # noqa:F401\nfrom dbt.exceptions imp...
[ { "content": "import re\n\nfrom dbt import deprecations\nfrom dbt.node_types import NodeType\nfrom dbt.contracts.util import (\n AdditionalPropertiesMixin,\n Mergeable,\n Replaceable,\n rename_metric_attr,\n)\n\n# trigger the PathEncoder\nimport dbt.helper_types # noqa:F401\nfrom dbt.exceptions imp...
diff --git a/.changes/unreleased/Features-20220925-211651.yaml b/.changes/unreleased/Features-20220925-211651.yaml new file mode 100644 index 00000000000..0f0f6e84213 --- /dev/null +++ b/.changes/unreleased/Features-20220925-211651.yaml @@ -0,0 +1,7 @@ +kind: Features +body: Allow partitions in external tables to be su...
napari__napari-4831
Napari does not allow widgets returning List[LayerDataTuple] to return an empty list ## 🐛 Bug napari promotes magicgui widgets with a return type hint `List[LayerDataTuple]` for situations where a widget returns an arbitrary number of layers. That arbitrary number of layers cannot currently be zero. ## To Rep...
[ { "content": "\"\"\"Miscellaneous utility functions.\n\"\"\"\n\nimport builtins\nimport collections.abc\nimport contextlib\nimport importlib.metadata\nimport inspect\nimport itertools\nimport os\nimport re\nimport sys\nimport warnings\nfrom enum import Enum, EnumMeta\nfrom os import fspath\nfrom os import path ...
[ { "content": "\"\"\"Miscellaneous utility functions.\n\"\"\"\n\nimport builtins\nimport collections.abc\nimport contextlib\nimport importlib.metadata\nimport inspect\nimport itertools\nimport os\nimport re\nimport sys\nimport warnings\nfrom enum import Enum, EnumMeta\nfrom os import fspath\nfrom os import path ...
diff --git a/napari/utils/_tests/test_misc.py b/napari/utils/_tests/test_misc.py index 7c365238203..39ccf6740cb 100644 --- a/napari/utils/_tests/test_misc.py +++ b/napari/utils/_tests/test_misc.py @@ -10,6 +10,7 @@ _quiet_array_equal, abspath_or_url, ensure_iterable, + ensure_list_of_layer_data_tuple,...
OpenMined__PySyft-2437
fix private tensor disclosure via execute_command Private tensors aren't meant to be accessible from a remote client, however, execute_command was getting any object using his id, this fix get the object using the get_obj method that doesn't return private tensors #2432
[ { "content": "import logging\n\nfrom abc import abstractmethod\nimport syft as sy\n\nfrom syft.frameworks.torch.tensors.interpreters import AbstractTensor\nfrom syft.generic import ObjectStorage\nfrom syft.exceptions import GetNotPermittedError\nfrom syft.exceptions import WorkerNotFoundException\nfrom syft.exc...
[ { "content": "import logging\n\nfrom abc import abstractmethod\nimport syft as sy\n\nfrom syft.frameworks.torch.tensors.interpreters import AbstractTensor\nfrom syft.generic import ObjectStorage\nfrom syft.exceptions import GetNotPermittedError\nfrom syft.exceptions import WorkerNotFoundException\nfrom syft.exc...
diff --git a/syft/workers/base.py b/syft/workers/base.py index 811a6ce3b8c..16f17a6b328 100644 --- a/syft/workers/base.py +++ b/syft/workers/base.py @@ -367,7 +367,7 @@ def execute_command(self, message: tuple) -> "pointers.PointerTensor": # Handle methods if _self is not None: if type(_s...
pycontribs__jira-92
jiraclient is broken for non-oauth logins by commit 292597c See https://github.com/pycontribs/jira/commit/292597c573e976c7da42ce570a81086fae301166#diff-30139c45274d7869e2ee349578b0e30cR247
[ { "content": "#!/usr/bin/env python\n\n\"\"\"\nStarts an interactive JIRA session in an ipython terminal. Script arguments\nsupport changing the server and a persistent authentication over HTTP BASIC.\n\"\"\"\n\nimport sys\ntry:\n import configparser\nexcept:\n from six.moves import configparser\n from...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"\nStarts an interactive JIRA session in an ipython terminal. Script arguments\nsupport changing the server and a persistent authentication over HTTP BASIC.\n\"\"\"\n\nimport sys\ntry:\n import configparser\nexcept:\n from six.moves import configparser\n from...
diff --git a/jira/jirashell.py b/jira/jirashell.py index 9309ed38f..83cd6b51b 100644 --- a/jira/jirashell.py +++ b/jira/jirashell.py @@ -244,6 +244,8 @@ def main(): if oauth['oauth_dance']: oauth = oauth_dance( options['server'], oauth['consumer_key'], oauth['key_cert'], oauth['print_tokens']...
feast-dev__feast-2971
Inconsistent behavior between File and Snowflake offline stores ## Expected Behavior With equivalent definitions and the same data in each offline store, `get_historical_features` should return the same results regardless of backing store. ## Current Behavior With the same underlying data, equivalent definiti...
[ { "content": "import uuid\nfrom datetime import datetime\nfrom pathlib import Path\nfrom typing import Any, Callable, List, Optional, Tuple, Union\n\nimport dask.dataframe as dd\nimport pandas as pd\nimport pyarrow\nimport pyarrow.dataset\nimport pyarrow.parquet\nimport pytz\nfrom pydantic.typing import Literal...
[ { "content": "import uuid\nfrom datetime import datetime\nfrom pathlib import Path\nfrom typing import Any, Callable, List, Optional, Tuple, Union\n\nimport dask.dataframe as dd\nimport pandas as pd\nimport pyarrow\nimport pyarrow.dataset\nimport pyarrow.parquet\nimport pytz\nfrom pydantic.typing import Literal...
diff --git a/sdk/python/feast/infra/offline_stores/file.py b/sdk/python/feast/infra/offline_stores/file.py index 1af98c14375..829bd36c3d7 100644 --- a/sdk/python/feast/infra/offline_stores/file.py +++ b/sdk/python/feast/infra/offline_stores/file.py @@ -635,6 +635,14 @@ def _filter_ttl( ) ] + ...
EleutherAI__gpt-neox-667
The `hostfile` NeoX Argument Is No Longer Working **Describe the bug** The `hostile` NeoX configuration argument is no longer taking effect. Regardless of the value set, the hostile path is always `/job/hostfile`. ![image](https://user-images.githubusercontent.com/17308542/188505112-10484da7-1e62-45f0-929e-158d59...
[ { "content": "import os\nimport yaml\nimport json\nimport logging\nimport shortuuid\nimport copy\nimport torch\nimport argparse\nimport shutil\n\nfrom dataclasses import dataclass\nfrom typing import List, Dict\nfrom socket import gethostname\n\ntry:\n from typing import Literal\nexcept ImportError:\n fro...
[ { "content": "import os\nimport yaml\nimport json\nimport logging\nimport shortuuid\nimport copy\nimport torch\nimport argparse\nimport shutil\n\nfrom dataclasses import dataclass\nfrom typing import List, Dict\nfrom socket import gethostname\n\ntry:\n from typing import Literal\nexcept ImportError:\n fro...
diff --git a/configs/small.yml b/configs/small.yml index 746743ff1..ea923ca09 100644 --- a/configs/small.yml +++ b/configs/small.yml @@ -81,4 +81,7 @@ "steps_per_print": 10, "keep-last-n-checkpoints": 4, "wall_clock_breakdown": true, + + # networking + "hostfile": "/mock_path" } diff --git a/megatron/ne...
ckan__ckan-4158
Datastore dump results are not the same as data in database ### CKAN Version if known (or site URL) 2.7.2 ### Please describe the expected behaviour Downloaded dataset is not consistent with the actual data! ### Please describe the actual behaviour We've upserted data using datastore api. The data is shown co...
[ { "content": "# encoding: utf-8\n\nfrom ckan.plugins.toolkit import (\n Invalid,\n ObjectNotFound,\n NotAuthorized,\n get_action,\n get_validator,\n _,\n request,\n response,\n BaseController,\n abort,\n render,\n c,\n h,\n)\nfrom ckanext.datastore.writer import (\n csv...
[ { "content": "# encoding: utf-8\n\nfrom ckan.plugins.toolkit import (\n Invalid,\n ObjectNotFound,\n NotAuthorized,\n get_action,\n get_validator,\n _,\n request,\n response,\n BaseController,\n abort,\n render,\n c,\n h,\n)\nfrom ckanext.datastore.writer import (\n csv...
diff --git a/ckanext/datastore/controller.py b/ckanext/datastore/controller.py index 73111447d8b..bd7fcb4527c 100644 --- a/ckanext/datastore/controller.py +++ b/ckanext/datastore/controller.py @@ -137,6 +137,7 @@ def result_page(offs, lim): PAGINATE_BY if limit is None else min(PAGINAT...
meltano__meltano-6643
bug: Pytest warnings when using mssql DB backend ### Meltano Version 2.4.0 ### Python Version NA ### Bug scope Other ### Operating System Linux ### Description Pytest is catching warnings emitted during testing with the mssql DB backend. Example: https://github.com/meltano/meltano/runs/781...
[ { "content": "\"\"\"add_state_edit_to_job_state_enum\n\nRevision ID: 13e8639c6d2b\nRevises: d135f52a6f49\nCreate Date: 2022-04-21 09:35:35.435614\n\n\"\"\"\nfrom enum import Enum\n\nimport sqlalchemy as sa\nfrom alembic import op\n\nfrom meltano.migrations.utils.dialect_typing import (\n get_dialect_name,\n ...
[ { "content": "\"\"\"add_state_edit_to_job_state_enum\n\nRevision ID: 13e8639c6d2b\nRevises: d135f52a6f49\nCreate Date: 2022-04-21 09:35:35.435614\n\n\"\"\"\nfrom enum import Enum\n\nimport sqlalchemy as sa\nfrom alembic import op\n\nfrom meltano.migrations.utils.dialect_typing import (\n get_dialect_name,\n ...
diff --git a/src/meltano/migrations/versions/13e8639c6d2b_add_state_edit_to_job_state_enum.py b/src/meltano/migrations/versions/13e8639c6d2b_add_state_edit_to_job_state_enum.py index 83cce458dc..1f17b8a712 100644 --- a/src/meltano/migrations/versions/13e8639c6d2b_add_state_edit_to_job_state_enum.py +++ b/src/meltano/mi...
Pycord-Development__pycord-718
Bug with `max_concurrency` and `slash_command` ### Summary max_concurrency does not work propper. ### Reproduction Steps create a slash command with `max_concrrency`, execute it. Second time it will raise `MaxConcurrencyReached` ### Minimal Reproducible Code ```python @slash_command(description = "test ...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r...
diff --git a/discord/commands/commands.py b/discord/commands/commands.py index 2caa448d75..6dda120f79 100644 --- a/discord/commands/commands.py +++ b/discord/commands/commands.py @@ -102,6 +102,8 @@ async def wrapped(arg): except Exception as exc: raise ApplicationCommandInvokeError(exc) from exc ...
deis__deis-1495
CoreOS on Google Compute Engine Could you add Compute Engine to contrib? http://googlecloudplatform.blogspot.cz/2014/05/official-coreos-images-are-now-available-on-google-compute-engine.html?m=1
[ { "content": "#!/usr/bin/env python\n\n\"\"\"Install the Deis command-line client.\"\"\"\n\n\ntry:\n from setuptools import setup\n USE_SETUPTOOLS = True\nexcept ImportError:\n from distutils.core import setup\n USE_SETUPTOOLS = False\n\ntry:\n LONG_DESCRIPTION = open('README.rst').read()\nexcept...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"Install the Deis command-line client.\"\"\"\n\n\ntry:\n from setuptools import setup\n USE_SETUPTOOLS = True\nexcept ImportError:\n from distutils.core import setup\n USE_SETUPTOOLS = False\n\ntry:\n LONG_DESCRIPTION = open('README.rst').read()\nexcept...
diff --git a/.gitignore b/.gitignore index 9db5f5dfc7..aa58e9afc5 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,6 @@ Vagrantfile.local # EC2 CloudFormation Setup contrib/ec2/cloudformation.json + +# GCE generated user-data +contrib/gce/gce-user-data diff --git a/README.md b/README.md index e8221a359f..fd44e...
scverse__scanpy-2743
The compatibility with SpaceRanger v2.0 or later of `read_visium` function ### 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 bug exists on the m...
[ { "content": "\"\"\"Reading and Writing\n\"\"\"\nfrom pathlib import Path, PurePath\nfrom typing import Union, Dict, Optional, Tuple, BinaryIO, Literal\n\nimport h5py\nimport json\nimport numpy as np\nimport pandas as pd\nfrom matplotlib.image import imread\nimport anndata\nfrom anndata import (\n AnnData,\n...
[ { "content": "\"\"\"Reading and Writing\n\"\"\"\nfrom pathlib import Path, PurePath\nfrom typing import Union, Dict, Optional, Tuple, BinaryIO, Literal\n\nimport h5py\nimport json\nimport numpy as np\nimport pandas as pd\nfrom matplotlib.image import imread\nimport anndata\nfrom anndata import (\n AnnData,\n...
diff --git a/scanpy/readwrite.py b/scanpy/readwrite.py index 291acd500f..43a4d980f5 100644 --- a/scanpy/readwrite.py +++ b/scanpy/readwrite.py @@ -460,7 +460,7 @@ def read_visium( # read coordinates positions = pd.read_csv( files["tissue_positions_file"], - header=1 if tissue_p...
saleor__saleor-2803
Grapql query for home page ### What I'm trying to achieve I want to have a shop homepage which shows: * new arrivals, * product in a sale, * featured products, * featured collection, * categories links ### Describe a proposed solution ```graphql query HomePage { shop { featuredCollection { id ...
[ { "content": "from collections import OrderedDict\n\nfrom django.db.models import Q\nfrom django.forms import CheckboxSelectMultiple, ValidationError\nfrom django.utils.translation import pgettext_lazy\nfrom django_filters import MultipleChoiceFilter, OrderingFilter, RangeFilter\n\nfrom ..core.filters import So...
[ { "content": "from collections import OrderedDict\n\nfrom django.db.models import Q\nfrom django.forms import CheckboxSelectMultiple, ValidationError\nfrom django.utils.translation import pgettext_lazy\nfrom django_filters import MultipleChoiceFilter, OrderingFilter, RangeFilter\n\nfrom ..core.filters import So...
diff --git a/saleor/product/filters.py b/saleor/product/filters.py index 9667ef83bcf..1b38fff9ffe 100644 --- a/saleor/product/filters.py +++ b/saleor/product/filters.py @@ -10,7 +10,9 @@ SORT_BY_FIELDS = OrderedDict([ ('name', pgettext_lazy('Product list sorting option', 'name')), - ('price', pgettext_lazy('...
LMFDB__lmfdb-1309
Can't add new accounts We can't assign new accounts (for editing knowls) because that has to be done on beta, not www. I think this just involves changing line 28 of lmfdb/users/main.py from base_url = "http://www.l-functions.org" to base_url = "http://beta.lmfdb.org" But I didn't want to do that in case it has a bad...
[ { "content": "# -*- encoding: utf-8 -*-\n# this holds all the flask-login specific logic (+ url mapping an rendering templates)\n# for the user management\n# author: harald schilly <harald.schilly@univie.ac.at>\n\nimport pymongo\nASC = pymongo.ASCENDING\nimport flask\nfrom functools import wraps\nfrom lmfdb.bas...
[ { "content": "# -*- encoding: utf-8 -*-\n# this holds all the flask-login specific logic (+ url mapping an rendering templates)\n# for the user management\n# author: harald schilly <harald.schilly@univie.ac.at>\n\nimport pymongo\nASC = pymongo.ASCENDING\nimport flask\nfrom functools import wraps\nfrom lmfdb.bas...
diff --git a/lmfdb/users/main.py b/lmfdb/users/main.py index 4f4509892e..41c9dc9ca3 100644 --- a/lmfdb/users/main.py +++ b/lmfdb/users/main.py @@ -24,11 +24,7 @@ import pwdmanager from pwdmanager import LmfdbUser, LmfdbAnonymousUser -# TODO update this url, needed for the user login token -base_url = "http://www.l-...
python-trio__trio-166
Invalid argument exception during socket.accept on AF_INET6 minimal-ish testcase and exception: https://gist.github.com/8d647f4c8368bc318e73833474601526 If I remove the `setsockopt` call on line 192, the testcase works as expected. Is this a bug, or am I not creating an IPv6 socket correctly?
[ { "content": "from functools import wraps as _wraps, partial as _partial\nimport socket as _stdlib_socket\nimport sys as _sys\nimport os\n\nfrom . import _core\nfrom ._threads import run_in_worker_thread as _run_in_worker_thread\n\n__all__ = []\n\n################################################################...
[ { "content": "from functools import wraps as _wraps, partial as _partial\nimport socket as _stdlib_socket\nimport sys as _sys\nimport os\n\nfrom . import _core\nfrom ._threads import run_in_worker_thread as _run_in_worker_thread\n\n__all__ = []\n\n################################################################...
diff --git a/trio/socket.py b/trio/socket.py index be7a48158..f383f3f7a 100644 --- a/trio/socket.py +++ b/trio/socket.py @@ -188,7 +188,10 @@ def __init__(self, sock): # Defaults: if self._sock.family == AF_INET6: - self.setsockopt(IPPROTO_IPV6, IPV6_V6ONLY, False) + try: + ...
gratipay__gratipay.com-1875
Linking accounts with an OpenStreetMap account does not work if confirmation is required. Log in with OpenStreetMap account and log out. Log in with GitHub account and link it with the previous OpenStreetMap account. Before #1857 works, but not after commit f963d20321e368de89f892b33ea4bce829ebc59d ``` Internal server...
[ { "content": "import logging\n\nimport gittip\nimport requests\nfrom aspen import json, log, Response\nfrom aspen.http.request import PathPart\nfrom aspen.utils import typecheck\nfrom gittip.elsewhere import AccountElsewhere\n\n\n\nclass OpenStreetMapAccount(AccountElsewhere):\n platform = u'openstreetmap'\n...
[ { "content": "import logging\n\nimport gittip\nimport requests\nfrom aspen import json, log, Response\nfrom aspen.http.request import PathPart\nfrom aspen.utils import typecheck\nfrom gittip.elsewhere import AccountElsewhere\n\n\n\nclass OpenStreetMapAccount(AccountElsewhere):\n platform = u'openstreetmap'\n...
diff --git a/gittip/elsewhere/openstreetmap.py b/gittip/elsewhere/openstreetmap.py index 2612f8b480..7bb8116f6d 100644 --- a/gittip/elsewhere/openstreetmap.py +++ b/gittip/elsewhere/openstreetmap.py @@ -15,6 +15,12 @@ class OpenStreetMapAccount(AccountElsewhere): def get_url(self): return self.user_info['...
aws__aws-cli-5663
`aws sesv2 put-account-details --website-url https://example.com` shouldn't download the contents of example.com Confirm by changing [ ] to [x] below to ensure that it's a bug: - [x] I've gone though the [User Guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html) and the [API reference](https:...
[ { "content": "# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2....
[ { "content": "# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2....
diff --git a/awscli/paramfile.py b/awscli/paramfile.py index 2c91c010af36..f2303d389dff 100644 --- a/awscli/paramfile.py +++ b/awscli/paramfile.py @@ -107,6 +107,8 @@ 'service-catalog.create-product.support-url', 'service-catalog.update-product.support-url', + 'ses.put-account-details.website-url', + ...
interlegis__sapl-892
Migração - Usuários Nas telas de pesquisa de usuários a lista fica em branco para muitos. Na tabela do 3.1 base_autor o no campo "nome" está para muitos registros como ' ' No meu caso, neste campo não foram importados os nomes dos autores do tipo parlamentar e comissão. Deixando o registro em branco e não retornand...
[ { "content": "import re\n\nimport pkg_resources\nimport yaml\nfrom django.apps import apps\nfrom django.apps.config import AppConfig\nfrom django.contrib.auth import get_user_model\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db import connections, models, OperationalError, ProgrammingErr...
[ { "content": "import re\n\nimport pkg_resources\nimport yaml\nfrom django.apps import apps\nfrom django.apps.config import AppConfig\nfrom django.contrib.auth import get_user_model\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db import connections, models, OperationalError, ProgrammingErr...
diff --git a/sapl/legacy/migration.py b/sapl/legacy/migration.py index a46696700..9399514e4 100644 --- a/sapl/legacy/migration.py +++ b/sapl/legacy/migration.py @@ -579,6 +579,7 @@ def adjust_protocolo_depois_salvar(new, old): def adjust_autor(new, old): if old.cod_parlamentar: new.autor_related = Parlam...
ivy-llc__ivy-14066
FFT
[ { "content": "# global\nimport ivy\nimport ivy.functional.frontends.tensorflow as tf_frontend\nfrom ivy.functional.frontends.tensorflow import check_tensorflow_casting\nfrom ivy.functional.frontends.tensorflow.func_wrapper import (\n to_ivy_arrays_and_back,\n map_raw_ops_alias,\n to_ivy_dtype,\n)\n\nfr...
[ { "content": "# global\nimport ivy\nimport ivy.functional.frontends.tensorflow as tf_frontend\nfrom ivy.functional.frontends.tensorflow import check_tensorflow_casting\nfrom ivy.functional.frontends.tensorflow.func_wrapper import (\n to_ivy_arrays_and_back,\n map_raw_ops_alias,\n to_ivy_dtype,\n)\n\nfr...
diff --git a/ivy/functional/frontends/tensorflow/raw_ops.py b/ivy/functional/frontends/tensorflow/raw_ops.py index 8c75551555955..77b19e5b753ec 100644 --- a/ivy/functional/frontends/tensorflow/raw_ops.py +++ b/ivy/functional/frontends/tensorflow/raw_ops.py @@ -202,6 +202,11 @@ def FloorMod(*, x, y, name="FloorMod"): ...
zigpy__zha-device-handlers-704
Xiaomi Mijia Light Sensor (GZCGQ01LM) in ZHA not detecting battery level anymore (it did in previous versions lower than 2020.12.7) Hai The original call is from ( lustreking aka Steve Small) , I (yfands) can confirm Steve's findings indeed no battery level. Steve posted his issue [here ](https://community.home-assist...
[ { "content": "\"\"\"Quirk for lumi.sen_ill.mgl01 illumination sensor.\"\"\"\nimport logging\n\nfrom zigpy.profiles import zha\nfrom zigpy.zcl.clusters.general import Basic, Identify\nfrom zigpy.zcl.clusters.measurement import IlluminanceMeasurement\nfrom zigpy.zdo.types import NodeDescriptor\n\nfrom .. import L...
[ { "content": "\"\"\"Quirk for lumi.sen_ill.mgl01 illumination sensor.\"\"\"\nimport logging\n\nfrom zigpy.profiles import zha\nfrom zigpy.zcl.clusters.general import Basic, Identify\nfrom zigpy.zcl.clusters.measurement import IlluminanceMeasurement\nfrom zigpy.zdo.types import NodeDescriptor\n\nfrom .. import L...
diff --git a/zhaquirks/xiaomi/aqara/illumination.py b/zhaquirks/xiaomi/aqara/illumination.py index c46daea2af..f7a7129122 100644 --- a/zhaquirks/xiaomi/aqara/illumination.py +++ b/zhaquirks/xiaomi/aqara/illumination.py @@ -29,7 +29,7 @@ class Illumination(XiaomiCustomDevice): # device_version=1 # inpu...
ansible__ansible-21843
nxos_config: Not idempotent when used with src ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME nxos_command ##### ANSIBLE VERSION ``` b8d308d919c89d86dc72d4fd62335b9f948544f1 ``` ##### SUMMARY Running the following playbook shows a change ```yaml - name: setup nxos_config: commands: ...
[ { "content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers...
[ { "content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers...
diff --git a/lib/ansible/modules/network/nxos/nxos_config.py b/lib/ansible/modules/network/nxos/nxos_config.py index 44ceba333fe802..34ad8d669696b9 100644 --- a/lib/ansible/modules/network/nxos/nxos_config.py +++ b/lib/ansible/modules/network/nxos/nxos_config.py @@ -235,7 +235,7 @@ def get_running_config(module): ...
common-workflow-language__cwltool-641
Any[] is incompatible with any array type apart from Any[] With the workflow: ``` cwlVersion: v1.0 class: Workflow inputs: input: type: Any[] steps: [] outputs: - id: output type: string[] outputSource: input ``` `cwltool --validate` reports the error: ``` /usr/local/bin/cwltool 1.0...
[ { "content": "from __future__ import absolute_import\nimport copy\nimport functools\nimport json\nimport logging\nimport random\nimport tempfile\nfrom collections import namedtuple\nfrom typing import Any, Callable, Dict, Generator, Iterable, List, Text, Union, cast\n\nimport schema_salad.validate as validate\n...
[ { "content": "from __future__ import absolute_import\nimport copy\nimport functools\nimport json\nimport logging\nimport random\nimport tempfile\nfrom collections import namedtuple\nfrom typing import Any, Callable, Dict, Generator, Iterable, List, Text, Union, cast\n\nimport schema_salad.validate as validate\n...
diff --git a/cwltool/workflow.py b/cwltool/workflow.py index 3dbba3264..f1e72106f 100644 --- a/cwltool/workflow.py +++ b/cwltool/workflow.py @@ -145,7 +145,7 @@ def can_assign_src_to_sink(src, sink, strict=False): # type: (Any, Any, bool) - In strict comparison, all source types must match at least one sink type....
Cloud-CV__EvalAI-1968
Viewing challenge stars should not require logging in Without logging in: <img width="287" alt="screen shot 2018-12-16 at 1 35 10 pm" src="https://user-images.githubusercontent.com/1156489/50057373-6f153280-0137-11e9-9bf8-cf6e3db93f84.png"> After logging in: <img width="339" alt="screen shot 2018-12-16 at 1 35 00 ...
[ { "content": "import csv\nimport logging\nimport random\nimport requests\nimport shutil\nimport string\nimport tempfile\nimport uuid\nimport yaml\nimport zipfile\n\nfrom os.path import basename, isfile, join\n\nfrom django.contrib.auth.models import User\nfrom django.core.files.base import ContentFile\nfrom dja...
[ { "content": "import csv\nimport logging\nimport random\nimport requests\nimport shutil\nimport string\nimport tempfile\nimport uuid\nimport yaml\nimport zipfile\n\nfrom os.path import basename, isfile, join\n\nfrom django.contrib.auth.models import User\nfrom django.core.files.base import ContentFile\nfrom dja...
diff --git a/apps/challenges/views.py b/apps/challenges/views.py index f35dc9e811..f82fcb8e64 100644 --- a/apps/challenges/views.py +++ b/apps/challenges/views.py @@ -1274,7 +1274,7 @@ def get_or_update_challenge_phase_split(request, challenge_phase_split_pk): @throttle_classes([UserRateThrottle]) @api_view(['GET',...
cloud-custodian__cloud-custodian-1210
GMT time zone wrongly set The _filters/offhours.py_ sets alias **gmt** to **Europe/London**. This is wrong imho. It should be set to **Etc/GMT** resp. **Etc/UTC**. London is using summer time (BST) which is GMT+1.
[ { "content": "# Copyright 2016 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b...
[ { "content": "# Copyright 2016 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b...
diff --git a/c7n/filters/offhours.py b/c7n/filters/offhours.py index a38ed2d63d3..36fc9dc10e7 100644 --- a/c7n/filters/offhours.py +++ b/c7n/filters/offhours.py @@ -184,8 +184,8 @@ class Time(Filter): 'cdt': 'America/Chicago', 'ct': 'America/Chicago', 'mt': 'America/Denver', - 'gmt': '...
Parsl__parsl-1650
[PBSPro] max_blocks limit is not obeyed when submitting as array-jobs **Describe the bug** Parsl keeps launching new blocks beyond the `max_blocks` limit when array-jobs mode is enabled using Parsl config `scheduler_options` parameter (e.g. #PBS -J 1-10). **To Reproduce** Enable Parsl monitoring and checkpointing...
[ { "content": "import logging\nimport os\nimport time\n\nfrom parsl.channels import LocalChannel\nfrom parsl.launchers import AprunLauncher\nfrom parsl.providers.provider_base import JobState, JobStatus\nfrom parsl.providers.torque.template import template_string\nfrom parsl.providers.cluster_provider import Clu...
[ { "content": "import logging\nimport os\nimport time\n\nfrom parsl.channels import LocalChannel\nfrom parsl.launchers import AprunLauncher\nfrom parsl.providers.provider_base import JobState, JobStatus\nfrom parsl.providers.torque.template import template_string\nfrom parsl.providers.cluster_provider import Clu...
diff --git a/parsl/providers/torque/torque.py b/parsl/providers/torque/torque.py index b0bf5085db..ecb6624524 100644 --- a/parsl/providers/torque/torque.py +++ b/parsl/providers/torque/torque.py @@ -13,6 +13,7 @@ # From the man pages for qstat for PBS/Torque systems translate_table = { + 'B': JobState.RUNNING, ...
TileDB-Inc__TileDB-Py-309
array.query no longer works for string attributes I have a case that looks basically like this: ``` array = tiledb.DenseArray(uri, mode="r") q = array.query(attrs=["attrname"]) data = q[:] ``` This works when the type of the attribute is a float or an int. But if the type of the attribute is a string, this fai...
[ { "content": "import tiledb\nfrom tiledb import Array, ArraySchema, TileDBError\nimport os, numpy as np\nimport sys, weakref\nfrom collections import OrderedDict\n\ndef mr_dense_result_shape(ranges, base_shape = None):\n # assumptions: len(ranges) matches number of dims\n if base_shape is not None:\n ...
[ { "content": "import tiledb\nfrom tiledb import Array, ArraySchema, TileDBError\nimport os, numpy as np\nimport sys, weakref\nfrom collections import OrderedDict\n\ndef mr_dense_result_shape(ranges, base_shape = None):\n # assumptions: len(ranges) matches number of dims\n if base_shape is not None:\n ...
diff --git a/tiledb/core.cc b/tiledb/core.cc index 9bd6ee9807..d77bc24a18 100644 --- a/tiledb/core.cc +++ b/tiledb/core.cc @@ -492,7 +492,8 @@ class PyQuery { if (b.isvar) { uint64_t *offsets_ptr = (uint64_t *)b.offsets.data() + b.offsets_read; query_->set_buffer(b.name, offsets_ptr, - ...
Mailu__Mailu-932
Typo in migration file Looking at logs I found a typo in one of the migration files. I don't really know if it is possible to change migration files manually so I'm not writing a pull request but a bug report ;) https://github.com/Mailu/Mailu/blob/c484c5326b17877bc66a454970cf1342f956d47e/core/admin/migrations/versio...
[ { "content": "\"\"\" Convert all domains and emails to lowercase\n\nRevision ID: 5aeb5811408e\nRevises: cd79ed46d9c2\nCreate Date: 2018-12-06 16:07:23.380579\n\n\"\"\"\n\n# revision identifiers, used by Alembic.\nrevision = '5aeb5811408e'\ndown_revision = 'f1393877871d'\n\nfrom alembic import op, config\nimport...
[ { "content": "\"\"\" Convert all domains and emails to lowercase\n\nRevision ID: 5aeb5811408e\nRevises: cd79ed46d9c2\nCreate Date: 2018-12-06 16:07:23.380579\n\n\"\"\"\n\n# revision identifiers, used by Alembic.\nrevision = '5aeb5811408e'\ndown_revision = 'f1393877871d'\n\nfrom alembic import op, config\nimport...
diff --git a/core/admin/migrations/versions/5aeb5811408e_.py b/core/admin/migrations/versions/5aeb5811408e_.py index 2ea06ea90..647a61f7f 100644 --- a/core/admin/migrations/versions/5aeb5811408e_.py +++ b/core/admin/migrations/versions/5aeb5811408e_.py @@ -106,7 +106,7 @@ def upgrade(): # lower relays for rel...
conda-forge__conda-smithy-1570
`BUILD_WITH_CONDA_DEBUG` not implemented on macOS <!-- Thanks for reporting your issue. Please fill out the sections below. --> - [X] I read [the conda-forge documentation](https://conda-forge.org/docs/user/introduction.html#how-can-i-install-packages-from-conda-forge) and could not find the solution for my probl...
[ { "content": "import os\nfrom random import choice\n\nfrom git import Repo\n\nfrom github import Github\nfrom github.GithubException import GithubException\nfrom github.Organization import Organization\nfrom github.Team import Team\nimport github\n\nimport conda_build.api\nfrom conda_smithy.utils import get_fee...
[ { "content": "import os\nfrom random import choice\n\nfrom git import Repo\n\nfrom github import Github\nfrom github.GithubException import GithubException\nfrom github.Organization import Organization\nfrom github.Team import Team\nimport github\n\nimport conda_build.api\nfrom conda_smithy.utils import get_fee...
diff --git a/conda_smithy/github.py b/conda_smithy/github.py index 2a4ccf76c..1f1377bdd 100644 --- a/conda_smithy/github.py +++ b/conda_smithy/github.py @@ -138,7 +138,7 @@ def create_github_repo(args): except GithubException as gh_except: if ( gh_except.data.get("errors", [{}])[0].get("messa...
pytorch__vision-357
Error closing: 'NoneType' object has no attribute 'close' for ImageNet reading When loading ImageNet, I get the following debug messages `Error closing: 'NoneType' object has no attribute 'close' for ImageNet reading` message called from https://github.com/pytorch/vision/blob/45dab0e4528333332f07ab1979e006857563cf99/...
[ { "content": "import torch.utils.data as data\n\nfrom PIL import Image\nimport os\nimport os.path\n\nIMG_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.ppm', '.bmp', '.pgm']\n\n\ndef is_image_file(filename):\n \"\"\"Checks if a file is an image.\n\n Args:\n filename (string): path to a file\n\n Return...
[ { "content": "import torch.utils.data as data\n\nfrom PIL import Image\nimport os\nimport os.path\n\nIMG_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.ppm', '.bmp', '.pgm']\n\n\ndef is_image_file(filename):\n \"\"\"Checks if a file is an image.\n\n Args:\n filename (string): path to a file\n\n Return...
diff --git a/torchvision/datasets/folder.py b/torchvision/datasets/folder.py index ca103080ecf..d5672bb78d5 100644 --- a/torchvision/datasets/folder.py +++ b/torchvision/datasets/folder.py @@ -48,8 +48,8 @@ def make_dataset(dir, class_to_idx): def pil_loader(path): # open path as file to avoid ResourceWarning (ht...
holoviz__holoviews-5397
Scatter polar projection main plot disappears when theta above 5.3 radians #### ALL software version info hv version '1.14.9' ``` IPython : 8.2.0 ipykernel : 6.13.0 ipywidgets : 7.7.0 jupyter_client : 7.2.2 jupyter_core : 4.9.2 jup...
[ { "content": "import copy\nimport math\nimport warnings\nfrom types import FunctionType\n\nimport param\nimport numpy as np\nimport matplotlib.colors as mpl_colors\n\nfrom matplotlib import ticker\nfrom matplotlib.dates import date2num\nfrom matplotlib.image import AxesImage\n\nfrom ...core import util\nfrom .....
[ { "content": "import copy\nimport math\nimport warnings\nfrom types import FunctionType\n\nimport param\nimport numpy as np\nimport matplotlib.colors as mpl_colors\n\nfrom matplotlib import ticker\nfrom matplotlib.dates import date2num\nfrom matplotlib.image import AxesImage\n\nfrom ...core import util\nfrom .....
diff --git a/holoviews/plotting/mpl/element.py b/holoviews/plotting/mpl/element.py index 4ac7feb08d..a4de5a79a4 100644 --- a/holoviews/plotting/mpl/element.py +++ b/holoviews/plotting/mpl/element.py @@ -336,6 +336,10 @@ def _set_axis_limits(self, axis, view, subplots, ranges): axis.set_zlim(bottom=...
ivy-llc__ivy-19846
xlog1py
[ { "content": "# global\nimport ivy\nfrom ivy import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n with_supported_device_and_dtypes,\n)\nfrom ivy.functional.frontends.tensorflow import check_tensorflow_casting\nfrom ivy.functional.frontends.tensorflow.func_wrapper import (\n to_ivy_arrays_a...
[ { "content": "# global\nimport ivy\nfrom ivy import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n with_supported_device_and_dtypes,\n)\nfrom ivy.functional.frontends.tensorflow import check_tensorflow_casting\nfrom ivy.functional.frontends.tensorflow.func_wrapper import (\n to_ivy_arrays_a...
diff --git a/ivy/functional/frontends/tensorflow/math.py b/ivy/functional/frontends/tensorflow/math.py index 10840903ad429..0fe95e155b557 100644 --- a/ivy/functional/frontends/tensorflow/math.py +++ b/ivy/functional/frontends/tensorflow/math.py @@ -750,6 +750,13 @@ def bincount( return ivy.bincount(arr, weights=we...
PennyLaneAI__pennylane-3579
[BUG] `metric_tensor` does not take `qml.adjoint` correctly into account ### Expected behavior The transform `metric_tensor` respects the `qml.adjoint` transform. ### Actual behavior In the following example, the `adjoint` of one particular operation in the circuit is realized in three ways: 1. Via classical prepro...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\r\n\r\n# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n# you may not use this file except in compliance with the License.\r\n# You may obtain a copy of the License at\r\n\r\n# http://www.apache.org/licenses/LICENSE-2...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\r\n\r\n# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n# you may not use this file except in compliance with the License.\r\n# You may obtain a copy of the License at\r\n\r\n# http://www.apache.org/licenses/LICENSE-2...
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 6adf859bb58..d2c4de5035d 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -172,6 +172,10 @@ <h3>Bug fixes</h3> +* Fixed a bug in `qml.transforms.metric_tensor` where prefactors of operation generators ...
dmlc__dgl-6376
dgl/examples/multigpu /node_classification_sage.py does not work with OGB Papers100M dataset ## 🐛 Bug <!-- The example in the DGL does not work with an OGB Papers100M dataset. --> When run the example script `dgl/examples/multigpu /node_classification_sage.py` with papers 100M dataset, it throws the following er...
[ { "content": "\"\"\"\nThis script trains and tests a GraphSAGE model for node classification on\nmultiple GPUs with distributed data-parallel training (DDP).\n\nBefore reading this example, please familiar yourself with graphsage node\nclassification using neighbor sampling by reading the example in the\n`examp...
[ { "content": "\"\"\"\nThis script trains and tests a GraphSAGE model for node classification on\nmultiple GPUs with distributed data-parallel training (DDP).\n\nBefore reading this example, please familiar yourself with graphsage node\nclassification using neighbor sampling by reading the example in the\n`examp...
diff --git a/examples/multigpu/node_classification_sage.py b/examples/multigpu/node_classification_sage.py index c2a317436986..8c8913563fa6 100644 --- a/examples/multigpu/node_classification_sage.py +++ b/examples/multigpu/node_classification_sage.py @@ -204,7 +204,7 @@ def train( train_dataloader ...
ivy-llc__ivy-15831
Fix blas_and_lapack_ops.test_torch_inner | | | |---|---| |numpy|<a href="https://github.com/unifyai/ivy/actions/runs/6272580647/job/17034377037"><img src=https://img.shields.io/badge/-success-success></a> |jax|<a href="https://github.com/unifyai/ivy/actions/runs/6272580647/job/17034377037"><img src=https://img.s...
[ { "content": "# global\n\nimport paddle\nfrom typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence\nfrom collections import namedtuple\n\n\n# local\nimport ivy\nfrom ivy import inf\nfrom ivy.utils.exceptions import IvyNotImplementedException\nimport ivy.functional.backends.paddle as paddle_...
[ { "content": "# global\n\nimport paddle\nfrom typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence\nfrom collections import namedtuple\n\n\n# local\nimport ivy\nfrom ivy import inf\nfrom ivy.utils.exceptions import IvyNotImplementedException\nimport ivy.functional.backends.paddle as paddle_...
diff --git a/ivy/functional/backends/paddle/linear_algebra.py b/ivy/functional/backends/paddle/linear_algebra.py index 6f2459901663f..19161c662d8ed 100644 --- a/ivy/functional/backends/paddle/linear_algebra.py +++ b/ivy/functional/backends/paddle/linear_algebra.py @@ -160,7 +160,8 @@ def eigvalsh( def inner( x1: ...
Mailu__Mailu-929
Typo in migration file Looking at logs I found a typo in one of the migration files. I don't really know if it is possible to change migration files manually so I'm not writing a pull request but a bug report ;) https://github.com/Mailu/Mailu/blob/c484c5326b17877bc66a454970cf1342f956d47e/core/admin/migrations/versio...
[ { "content": "\"\"\" Convert all domains and emails to lowercase\n\nRevision ID: 5aeb5811408e\nRevises: cd79ed46d9c2\nCreate Date: 2018-12-06 16:07:23.380579\n\n\"\"\"\n\n# revision identifiers, used by Alembic.\nrevision = '5aeb5811408e'\ndown_revision = 'f1393877871d'\n\nfrom alembic import op, config\nimport...
[ { "content": "\"\"\" Convert all domains and emails to lowercase\n\nRevision ID: 5aeb5811408e\nRevises: cd79ed46d9c2\nCreate Date: 2018-12-06 16:07:23.380579\n\n\"\"\"\n\n# revision identifiers, used by Alembic.\nrevision = '5aeb5811408e'\ndown_revision = 'f1393877871d'\n\nfrom alembic import op, config\nimport...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 13c5a25f9..99691cc1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ v1.6.1 - unreleased - Bug: Fix creating new fetched accounts - Enhancement: Missing wildcard option in alias flask command ([#869](https://github.com/Mailu/Mailu/issues/869)) - Bug: Fix ...
ethereum__web3.py-321
Changes to web3.eth.estimateGas Check whether 'from' parameter is already in transaction and use it. Otherwise use defaultAccount. Basically to implement the same behavior as for 'sendTransaction'.
[ { "content": "from __future__ import unicode_literals\n\nfrom cytoolz import compose\nfrom cytoolz.dicttoolz import (\n assoc,\n)\n\nfrom eth_utils import (\n is_address,\n is_string,\n keccak,\n)\n\nfrom web3.iban import Iban\n\nfrom web3.contract import (\n Contract,\n)\nfrom web3.module import...
[ { "content": "from __future__ import unicode_literals\n\nfrom cytoolz import compose\nfrom cytoolz.dicttoolz import (\n assoc,\n)\n\nfrom eth_utils import (\n is_address,\n is_string,\n keccak,\n)\n\nfrom web3.iban import Iban\n\nfrom web3.contract import (\n Contract,\n)\nfrom web3.module import...
diff --git a/web3/eth.py b/web3/eth.py index e930781690..84f04fae24 100644 --- a/web3/eth.py +++ b/web3/eth.py @@ -255,7 +255,7 @@ def call(self, transaction, block_identifier=None): def estimateGas(self, transaction): # TODO: move to middleware - if is_address(self.defaultAccount): + if '...
ansible-collections__community.general-2239
Examples of nomad_job_info not working ### Summary The examples for nomad_job_info are using the module nomad_job instead of nomad_job_info. ### Issue Type Documentation Report ### Component Name nomad_job_info.py ### Ansible Version ```console (paste below) $ ansible --version ``` ### Configuration ```c...
[ { "content": "#!/usr/bin/python\n# coding: utf-8 -*-\n\n# (c) 2020, FERREIRA Christophe <christophe.ferreira@cnaf.fr>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\nDOCUMEN...
[ { "content": "#!/usr/bin/python\n# coding: utf-8 -*-\n\n# (c) 2020, FERREIRA Christophe <christophe.ferreira@cnaf.fr>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\nDOCUMEN...
diff --git a/plugins/modules/clustering/nomad/nomad_job_info.py b/plugins/modules/clustering/nomad/nomad_job_info.py index d10c0a04381..5e9455f77bb 100644 --- a/plugins/modules/clustering/nomad/nomad_job_info.py +++ b/plugins/modules/clustering/nomad/nomad_job_info.py @@ -36,13 +36,13 @@ EXAMPLES = ''' - name: Get ...
dotkom__onlineweb4-578
Usernames are forced to lowercase on register. Just witnessed a registration process with a username starting with a capital letter. When user tried to log in after e-mail verification, he could not log in. Changing capital to lowercase did the trick. This is however very unintuitive, so capital letters should be allow...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport uuid\nimport re\n\nfrom django.contrib import auth\nfrom django.contrib import messages\nfrom django.core.mail import send_mail\nfrom django.shortcuts import render, redirect, get_object_or_404\nfrom django.http import HttpResponseRedirect\nfrom django.utils.trans...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport uuid\nimport re\n\nfrom django.contrib import auth\nfrom django.contrib import messages\nfrom django.core.mail import send_mail\nfrom django.shortcuts import render, redirect, get_object_or_404\nfrom django.http import HttpResponseRedirect\nfrom django.utils.trans...
diff --git a/apps/authentication/views.py b/apps/authentication/views.py index e572c1b5d..43a2c3c01 100644 --- a/apps/authentication/views.py +++ b/apps/authentication/views.py @@ -54,7 +54,7 @@ def register(request): # Create user user = User( - username=cleaned['...
ivy-llc__ivy-16060
cross
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\nfrom ivy.functional.frontends.paddle import promote_types_of_paddle_inputs\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n# matmul\n@with_unsupported...
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\nfrom ivy.functional.frontends.paddle import promote_types_of_paddle_inputs\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_supported_dtypes(\n ...
diff --git a/ivy/functional/frontends/paddle/tensor/linalg.py b/ivy/functional/frontends/paddle/tensor/linalg.py index 558aebbe14c50..36e33d37f8f52 100644 --- a/ivy/functional/frontends/paddle/tensor/linalg.py +++ b/ivy/functional/frontends/paddle/tensor/linalg.py @@ -7,6 +7,15 @@ ) +@with_supported_dtypes( + {...
openstates__openstates-scrapers-2929
NM failing since at least 2019-03-03 NM has been failing since 2019-03-03 Based on automated runs it appears that NM has not run successfully in 2 days (2019-03-03). ``` 07:11:12 ERROR pupa: cannot resolve pseudo id to Person: ~{"name": "Small"} 07:11:12 ERROR pupa: cannot resolve pseudo id to Person: ~{"name": "G...
[ { "content": "import os\nimport re\nimport operator\nfrom datetime import datetime\nfrom bisect import bisect_left\n\nimport lxml.html\nimport lxml.etree\nimport scrapelib\n\nfrom pupa.scrape import Scraper, VoteEvent\nfrom pupa.utils.generic import convert_pdf\n\n# Senate vote header\ns_vote_header = re.compil...
[ { "content": "import os\nimport re\nimport operator\nfrom datetime import datetime\nfrom bisect import bisect_left\n\nimport lxml.html\nimport lxml.etree\nimport scrapelib\n\nfrom pupa.scrape import Scraper, VoteEvent\nfrom pupa.utils.generic import convert_pdf\n\n# Senate vote header\ns_vote_header = re.compil...
diff --git a/openstates/nm/votes.py b/openstates/nm/votes.py index 3db345818c..e0a20f2233 100644 --- a/openstates/nm/votes.py +++ b/openstates/nm/votes.py @@ -71,6 +71,8 @@ def correct_name(name): def build_vote(session, bill_id, url, vote_record, chamber, motion_text): + # When they vote in a substitute they m...
huggingface__dataset-viewer-2789
Truncate all the logs We sometimes have very big logs (one row > 5MB). It's not useful at all and triggers warnings from infra. When we setup the logs configuration, we could try to set a maximum length https://github.com/huggingface/dataset-viewer/blob/95527c2f1f0b8f077ed9ec74d3c75e45dbc1d00a/libs/libcommon/src/lib...
[ { "content": "# SPDX-License-Identifier: Apache-2.0\n# Copyright 2022 The HuggingFace Authors.\n\nimport logging\n\n\ndef init_logging(level: int = logging.INFO) -> None:\n logging.basicConfig(level=level, format=\"%(levelname)s: %(asctime)s - %(name)s - %(message)s\")\n logging.debug(f\"Log level set to:...
[ { "content": "# SPDX-License-Identifier: Apache-2.0\n# Copyright 2022 The HuggingFace Authors.\n\nimport logging\n\n\ndef init_logging(level: int = logging.INFO) -> None:\n logging.basicConfig(level=level, format=\"%(levelname)s: %(asctime)s - %(name)s - %(message).5000s\")\n logging.debug(f\"Log level se...
diff --git a/libs/libcommon/src/libcommon/log.py b/libs/libcommon/src/libcommon/log.py index 4f5e15f3bf..77addf365a 100644 --- a/libs/libcommon/src/libcommon/log.py +++ b/libs/libcommon/src/libcommon/log.py @@ -5,5 +5,5 @@ def init_logging(level: int = logging.INFO) -> None: - logging.basicConfig(level=level, f...
great-expectations__great_expectations-3664
Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y`
[ { "content": "import copy\nimport cProfile\nimport importlib\nimport io\nimport json\nimport logging\nimport os\nimport pstats\nimport re\nimport time\nimport uuid\nfrom collections import OrderedDict\nfrom datetime import datetime\nfrom functools import wraps\nfrom gc import get_referrers\nfrom inspect import ...
[ { "content": "import copy\nimport cProfile\nimport importlib\nimport io\nimport json\nimport logging\nimport os\nimport pstats\nimport re\nimport time\nimport uuid\nfrom collections import OrderedDict\nfrom datetime import datetime\nfrom functools import wraps\nfrom gc import get_referrers\nfrom inspect import ...
diff --git a/azure-pipelines-contrib.yml b/azure-pipelines-contrib.yml index dc6fa69d691e..6f7b8e4c3faa 100644 --- a/azure-pipelines-contrib.yml +++ b/azure-pipelines-contrib.yml @@ -38,7 +38,7 @@ stages: displayName: 'Use Python $(python.version)' - script: | - pip install isort[...
bridgecrewio__checkov-4237
False positive for check CKV_AZURE_5: "Ensure RBAC is enabled on AKS clusters" **Describe the issue** The check CKV_AZURE_5 for terraform resource `azurerm_kubernetes_cluster` ensures that RBAC is enabled in the kubernetes cluster. Depending on how the `role_based_access_control_enabled` property is set, the check re...
[ { "content": "import dpath.util\nfrom checkov.common.models.enums import CheckCategories, CheckResult\nfrom checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck\n\n\nclass AKSRbacEnabled(BaseResourceCheck):\n def __init__(self):\n name = \"Ensure RBAC is enabled on AKS cluste...
[ { "content": "import dpath.util\nfrom checkov.common.models.enums import CheckCategories, CheckResult\nfrom checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck\n\n\nclass AKSRbacEnabled(BaseResourceCheck):\n def __init__(self):\n name = \"Ensure RBAC is enabled on AKS cluste...
diff --git a/checkov/terraform/checks/resource/azure/AKSRbacEnabled.py b/checkov/terraform/checks/resource/azure/AKSRbacEnabled.py index 25462fb15b..259540b5d4 100644 --- a/checkov/terraform/checks/resource/azure/AKSRbacEnabled.py +++ b/checkov/terraform/checks/resource/azure/AKSRbacEnabled.py @@ -23,10 +23,10 @@ def s...
localstack__localstack-4594
bug: SNS fanout to SQS, different message attributes behavior ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior Localstack always bypasses SNS message attributes to SQS message attributes, while AWS does it only when `raw_message_delivery` is enabled. See https:/...
[ { "content": "import ast\nimport asyncio\nimport base64\nimport json\nimport logging\nimport traceback\nimport uuid\n\nimport requests\nimport six\nimport xmltodict\nfrom flask import Response as FlaskResponse\nfrom moto.sns.exceptions import DuplicateSnsEndpointError\nfrom moto.sns.models import SNSBackend as ...
[ { "content": "import ast\nimport asyncio\nimport base64\nimport json\nimport logging\nimport traceback\nimport uuid\n\nimport requests\nimport six\nimport xmltodict\nfrom flask import Response as FlaskResponse\nfrom moto.sns.exceptions import DuplicateSnsEndpointError\nfrom moto.sns.models import SNSBackend as ...
diff --git a/localstack/services/sns/sns_listener.py b/localstack/services/sns/sns_listener.py index e498b3673b38d..66876d3b77ce3 100644 --- a/localstack/services/sns/sns_listener.py +++ b/localstack/services/sns/sns_listener.py @@ -775,9 +775,8 @@ def create_sns_message_body(subscriber, req_data, message_id=None): ...
ansible__ansible-modules-extras-1873
Blockinfile module : Documentation mistake ##### Issue Type: - Documentation Report ##### Plugin Name: Blockinfile module ##### Ansible Version: ``` $ ansible --version ansible 2.0.1.0 config file = /data/ansible/ansible.cfg configured module search path = Default w/o overrides ``` ##### Ansible Configuration: n...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2014, 2015 YAEGASHI Takeshi <yaegashi@debian.org>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softwar...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2014, 2015 YAEGASHI Takeshi <yaegashi@debian.org>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softwar...
diff --git a/files/blockinfile.py b/files/blockinfile.py index c2e449b2edc..e31799da759 100644 --- a/files/blockinfile.py +++ b/files/blockinfile.py @@ -144,10 +144,10 @@ block: | {{item.name}} {{item.ip}} marker: "# {mark} ANSIBLE MANAGED BLOCK {{item.name}}" - with_items: - - { name: host1,...
pandas-dev__pandas-21362
DOC: error in 0.23.0 concat sort warning? #### Problem description Pandas 0.23.0 adds a new warning when calling `concat` with misaligned axes (#20613): ``` FutureWarning: Sorting because non-concatenation axis is not aligned. A future version of pandas will change to not sort by default. To accept the futur...
[ { "content": "import textwrap\nimport warnings\n\nfrom pandas.core.indexes.base import (Index,\n _new_Index,\n _ensure_index,\n _ensure_index_from_sequences,\n Inva...
[ { "content": "import textwrap\nimport warnings\n\nfrom pandas.core.indexes.base import (Index,\n _new_Index,\n _ensure_index,\n _ensure_index_from_sequences,\n Inva...
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 09b711c80910c..ead4fac14182d 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -74,6 +74,7 @@ I/O Reshaping - Bug in :func:`concat` where error was raised in concatenating :class:`Series` with nu...
AUTOMATIC1111__stable-diffusion-webui-11066
[Bug]: SDPA doesn't work ### Is there an existing issue for this? - [X] I have searched the existing issues and checked the recent builds/commits ### What happened? SDPA (one of the optimizations, --opt-sdp-attention or --opt-sdp-no-mem-attention added to COMMANDLINE_ARGS) doesn't work - using txt2img ends with Runt...
[ { "content": "from __future__ import annotations\r\nimport math\r\nimport psutil\r\n\r\nimport torch\r\nfrom torch import einsum\r\n\r\nfrom ldm.util import default\r\nfrom einops import rearrange\r\n\r\nfrom modules import shared, errors, devices, sub_quadratic_attention\r\nfrom modules.hypernetworks import hy...
[ { "content": "from __future__ import annotations\r\nimport math\r\nimport sys\r\nimport traceback\r\nimport psutil\r\n\r\nimport torch\r\nfrom torch import einsum\r\n\r\nfrom ldm.util import default\r\nfrom einops import rearrange\r\n\r\nfrom modules import shared, errors, devices, sub_quadratic_attention\r\nfr...
diff --git a/modules/sd_hijack_optimizations.py b/modules/sd_hijack_optimizations.py index 80e48a422e0..6464ca8ef60 100644 --- a/modules/sd_hijack_optimizations.py +++ b/modules/sd_hijack_optimizations.py @@ -605,7 +605,7 @@ def sdp_attnblock_forward(self, x): q, k, v = (rearrange(t, 'b c h w -> b (h w) c') for t ...
aio-libs__aiohttp-2000
Switch to new multidict version Current `multidict` master has changed behavior: keys for `CIMultiDict` are always `str` (before they was either `str` or `istr`) and they are stored as-is without title casing. But key comparison is performed on title-cased basis. Also `CIMultiDict` lookup is about 30% faster. It ...
[ { "content": "import asyncio\nimport collections\nimport io\nimport json\nimport sys\nimport traceback\nimport warnings\nfrom http.cookies import CookieError, Morsel\nfrom urllib.request import getproxies\n\nfrom multidict import CIMultiDict, CIMultiDictProxy, MultiDict, MultiDictProxy\nfrom yarl import URL\n\n...
[ { "content": "import asyncio\nimport collections\nimport io\nimport json\nimport sys\nimport traceback\nimport warnings\nfrom http.cookies import CookieError, Morsel\nfrom urllib.request import getproxies\n\nfrom multidict import CIMultiDict, CIMultiDictProxy, MultiDict, MultiDictProxy\nfrom yarl import URL\n\n...
diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py index b1a9939aec7..ee810cf4564 100644 --- a/aiohttp/client_reqrep.py +++ b/aiohttp/client_reqrep.py @@ -161,7 +161,7 @@ def update_headers(self, headers): def update_auto_headers(self, skip_auto_headers): self.skip_auto_headers = CIMultiDi...
pypi__warehouse-5626
400 Client Error: Invalid value for provides **Describe the bug** Attempting to upload an updated version of an existing python package results in a HTTPError 400 "Invalid value for provides" response. A condensed example below. ```python # Fail setup( name='example', provides=['test.plugins'] ) ...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
diff --git a/tests/unit/forklift/test_legacy.py b/tests/unit/forklift/test_legacy.py index 812ad8e27c5c..09357f8d9e66 100644 --- a/tests/unit/forklift/test_legacy.py +++ b/tests/unit/forklift/test_legacy.py @@ -97,7 +97,9 @@ def test_validates_invalid_pep440_specifier(self, specifier): with pytest.raises(Valid...
holoviz__panel-2109
Video widget appears to be broken in 0.11.x? #### ALL software version info Python 3.8.3 x64 Output of `pip list` in the virtualenv I tested this in: ``` Package Version ------------------- --------- argon2-cffi 20.1.0 async-generator 1.10 attrs 20.3.0 backcall ...
[ { "content": "\"\"\"\nContains Media panes including renderers for Audio and Video content.\n\"\"\"\nimport os\n\nfrom base64 import b64encode\nfrom io import BytesIO\nfrom six import string_types\n\nimport numpy as np\nimport param\n\nfrom ..models import Audio as _BkAudio, Video as _BkVideo\nfrom ..util impor...
[ { "content": "\"\"\"\nContains Media panes including renderers for Audio and Video content.\n\"\"\"\nimport os\n\nfrom base64 import b64encode\nfrom io import BytesIO\nfrom six import string_types\n\nimport numpy as np\nimport param\n\nfrom ..models import Audio as _BkAudio, Video as _BkVideo\nfrom ..util impor...
diff --git a/panel/pane/media.py b/panel/pane/media.py index 36db08ca53..70948c9b82 100644 --- a/panel/pane/media.py +++ b/panel/pane/media.py @@ -60,6 +60,8 @@ def applies(cls, obj): def _get_model(self, doc, root=None, parent=None, comm=None): props = self._process_param_change(self._init_params()) + ...
open-mmlab__mmpretrain-122
mmcls/models/losses/eval_metrics.py confusion_matrix confusion_matrix[target_label.long(), pred_label.long()] += 1 I think this code is wrong, 【target_label.long(), pred_label.long()】 will list all the coordinates that need + 1, but only once + 1 will work it should be: `for t, p in zip(target_label, pred_label): ...
[ { "content": "import numpy as np\nimport torch\n\n\ndef calculate_confusion_matrix(pred, target):\n if isinstance(pred, np.ndarray) and isinstance(target, np.ndarray):\n pred = torch.from_numpy(pred)\n target = torch.from_numpy(target)\n elif not (isinstance(pred, torch.Tensor)\n ...
[ { "content": "import numpy as np\nimport torch\n\n\ndef calculate_confusion_matrix(pred, target):\n if isinstance(pred, np.ndarray) and isinstance(target, np.ndarray):\n pred = torch.from_numpy(pred)\n target = torch.from_numpy(target)\n elif not (isinstance(pred, torch.Tensor)\n ...
diff --git a/mmcls/models/losses/eval_metrics.py b/mmcls/models/losses/eval_metrics.py index 448cb8b6a2f..ef04fa26157 100644 --- a/mmcls/models/losses/eval_metrics.py +++ b/mmcls/models/losses/eval_metrics.py @@ -17,7 +17,8 @@ def calculate_confusion_matrix(pred, target): assert len(pred_label) == len(target_label...
Zeroto521__my-data-toolkit-433
BUG: feature_union can't concat different dataframe well https://github.com/Zeroto521/my-data-toolkit/blob/8b6ec3ce2658626f265bf5e1bab5a7c0897a0787/dtoolkit/transformer.py#L55-L56 When we use transformers to handle data frames, some rows would be deleted. So use the feature union transformer would cause the followi...
[ { "content": "from __future__ import annotations\n\nfrom textwrap import dedent\nfrom typing import TYPE_CHECKING\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.util._decorators import doc\nfrom sklearn.pipeline import FeatureUnion as SKFeatureUnion\nfrom sklearn.preprocessing import MinMaxScaler as SK...
[ { "content": "from __future__ import annotations\n\nfrom textwrap import dedent\nfrom typing import TYPE_CHECKING\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.util._decorators import doc\nfrom sklearn.pipeline import FeatureUnion as SKFeatureUnion\nfrom sklearn.preprocessing import MinMaxScaler as SK...
diff --git a/dtoolkit/transformer/sklearn.py b/dtoolkit/transformer/sklearn.py index 101f56b39..1d5feb3cc 100644 --- a/dtoolkit/transformer/sklearn.py +++ b/dtoolkit/transformer/sklearn.py @@ -52,8 +52,8 @@ class FeatureUnion(SKFeatureUnion, Transformer): def _hstack(self, Xs): if all(isinstance(i, (pd....
uccser__cs-unplugged-455
Update links in lessons to use generate resources Items in the "CS Unplugged Provided Resources" still have links pointing at google drive where there are now generated resources available, these links should be updated. Spotted in Lesson 1 (8-10) of Binary Numbers. Update binary numbers 8 - 10 lessons This includes a...
[ { "content": "\"\"\"Views for the topics application.\"\"\"\n\nfrom django.shortcuts import get_object_or_404\nfrom django.views import generic\nfrom django.http import JsonResponse, Http404\nfrom general.templatetags.render_html_field import render_html_with_static\nfrom utils.group_lessons_by_age import group...
[ { "content": "\"\"\"Views for the topics application.\"\"\"\n\nfrom django.shortcuts import get_object_or_404\nfrom django.views import generic\nfrom django.http import JsonResponse, Http404\nfrom general.templatetags.render_html_field import render_html_with_static\nfrom utils.group_lessons_by_age import group...
diff --git a/csunplugged/static/img/topics/binary-cards-4-bits-icon.png b/csunplugged/static/img/topics/binary-cards-4-bits-icon.png new file mode 100644 index 000000000..c08089588 Binary files /dev/null and b/csunplugged/static/img/topics/binary-cards-4-bits-icon.png differ diff --git a/csunplugged/static/img/topics/b...
ourownstory__neural_prophet-1059
[bug] Progress bar is given out for every batch if minimal=True, causing a significant slow down Setting minimal=True currently causes a significant slow down of the training process, as the progress bar is given out for every batch.
[ { "content": "from __future__ import annotations\n\nimport logging\nimport math\nimport os\nimport sys\nfrom collections import OrderedDict\nfrom typing import TYPE_CHECKING, Optional\n\nimport holidays as pyholidays\nimport numpy as np\nimport pandas as pd\nimport pytorch_lightning as pl\nimport torch\n\nfrom ...
[ { "content": "from __future__ import annotations\n\nimport logging\nimport math\nimport os\nimport sys\nfrom collections import OrderedDict\nfrom typing import TYPE_CHECKING, Optional\n\nimport holidays as pyholidays\nimport numpy as np\nimport pandas as pd\nimport pytorch_lightning as pl\nimport torch\n\nfrom ...
diff --git a/neuralprophet/utils.py b/neuralprophet/utils.py index 86f0a045c..7b106d48c 100644 --- a/neuralprophet/utils.py +++ b/neuralprophet/utils.py @@ -827,6 +827,8 @@ def configure_trainer( if progress_bar_enabled: prog_bar_callback = ProgressBar(refresh_rate=num_batches_per_epoch, epochs=config_tra...
translate__translate-4310
comment with msgid in headed causes problems on damned-lies On https://l10n.gnome.org/module/gnome-user-docs/ is/was a po file with incorrect information about how many strings are translated, fuzzy and untranslated in the commited po file. Damned-lies just says 1 untranslated string. As reported in https://gitla...
[ { "content": "#\n# Copyright 2002-2009 Zuza Software Foundation\n# Copyright 2013 F Wolff\n#\n# This file is part of the Translate Toolkit.\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foun...
[ { "content": "#\n# Copyright 2002-2009 Zuza Software Foundation\n# Copyright 2013 F Wolff\n#\n# This file is part of the Translate Toolkit.\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foun...
diff --git a/translate/storage/pypo.py b/translate/storage/pypo.py index f7f08d575b..7ac67fc8ed 100644 --- a/translate/storage/pypo.py +++ b/translate/storage/pypo.py @@ -60,7 +60,7 @@ def splitlines(text): text = text[3:] # Find first newline newline = b"\n" - msgid_pos = max(0, text.find(b"msgid...
vyperlang__vyper-1726
AttributeError: 'str' object has no attribute 'fornat' (typo in vyper source) Same version/environment issue as previous TSTL-discovered bugs. ``` cv0: constant(uint256) = block.difficulty cv1: constant(uint256) = convert(cv0, uint256) @public def f0(): assert cv0 ``` gets: ``` (vyper-venv) cmp3149:...
[ { "content": "import math\nimport warnings\n\nfrom vyper import ast\nfrom vyper.exceptions import (\n InvalidLiteralException,\n ParserException,\n TypeMismatchException,\n)\nfrom vyper.functions.signatures import (\n signature,\n)\nfrom vyper.parser.parser_utils import (\n LLLnode,\n byte_arr...
[ { "content": "import math\nimport warnings\n\nfrom vyper import ast\nfrom vyper.exceptions import (\n InvalidLiteralException,\n ParserException,\n TypeMismatchException,\n)\nfrom vyper.functions.signatures import (\n signature,\n)\nfrom vyper.parser.parser_utils import (\n LLLnode,\n byte_arr...
diff --git a/vyper/types/convert.py b/vyper/types/convert.py index 81251affef..bc770c8a82 100644 --- a/vyper/types/convert.py +++ b/vyper/types/convert.py @@ -192,7 +192,7 @@ def to_uint256(expr, args, kwargs, context): pos=getpos(expr) ) else: - raise InvalidLiteralExc...
capitalone__DataProfiler-739
Windows Install error - ValueError: path 'resources/' cannot end with '/ https://github.com/capitalone/DataProfiler/blob/5b04b7fe5ee3556235c397efb69b32cd5d364a3b/setup.py#L33 Ran into an install isue ValueError: path 'resources/' cannot end with '/ As per https://stackoverflow.com/questions/20356482/valueerro...
[ { "content": "\"\"\"A setuptools for the Data Profiler Application and Python Libraries.\"\"\"\n\nimport os\n\n# To use a consistent encoding\nfrom codecs import open\nfrom os import path\n\n# Always prefer setuptools over distutils\nfrom setuptools import find_packages, setup\n\n# Load package version\nfrom da...
[ { "content": "\"\"\"A setuptools for the Data Profiler Application and Python Libraries.\"\"\"\n\nimport os\n\n# To use a consistent encoding\nfrom codecs import open\nfrom os import path\n\n# Always prefer setuptools over distutils\nfrom setuptools import find_packages, setup\n\n# Load package version\nfrom da...
diff --git a/setup.py b/setup.py index 691164e0d..33b29692a 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ with open(path.join(here, "requirements-reports.txt"), encoding="utf-8") as f: reports_packages = f.read().splitlines() -resource_dir = "resources/" +resource_dir = "resources" default_labeler_fil...
mozmeao__basket-194
last_name data resolving as NoneType We recently started getting data from MoFo that's throwing errors when attempting to pull `last_name` from the data. [This line](https://github.com/mozmeao/basket/blob/prod/basket/news/backends/sfdc.py#L332): `if not data.get('last_name', '').strip():` Is resulting in this err...
[ { "content": "\"\"\"\nAPI Client Library for Salesforce.com (SFDC)\n\"\"\"\nfrom random import randint\nfrom time import time\n\nimport requests\nfrom django.conf import settings\nfrom django.core.cache import cache\n\nimport simple_salesforce as sfapi\nfrom django_statsd.clients import statsd\nfrom simple_sale...
[ { "content": "\"\"\"\nAPI Client Library for Salesforce.com (SFDC)\n\"\"\"\nfrom random import randint\nfrom time import time\n\nimport requests\nfrom django.conf import settings\nfrom django.core.cache import cache\n\nimport simple_salesforce as sfapi\nfrom django_statsd.clients import statsd\nfrom simple_sale...
diff --git a/basket/news/backends/sfdc.py b/basket/news/backends/sfdc.py index 4c8a4c763..5914121e6 100644 --- a/basket/news/backends/sfdc.py +++ b/basket/news/backends/sfdc.py @@ -329,7 +329,7 @@ def add(self, data): @param data: user data to add as a new contact. @return: None """ - ...
nilearn__nilearn-1311
Wrong value for Nifti header https://github.com/nilearn/nilearn/blob/9ee1c8d3b5d26937629cc62ce04cf8d4eb18a028/nilearn/image/image.py#L631 This should be `cal_min` `header['cal_max'] = np.min(data) if data.size > 0 else 0.`
[ { "content": "\"\"\"\nPreprocessing functions for images.\n\nSee also nilearn.signal.\n\"\"\"\n# Authors: Philippe Gervais, Alexandre Abraham\n# License: simplified BSD\n\nimport collections\nfrom distutils.version import LooseVersion\n\nimport numpy as np\nfrom scipy import ndimage\nfrom scipy.stats import sco...
[ { "content": "\"\"\"\nPreprocessing functions for images.\n\nSee also nilearn.signal.\n\"\"\"\n# Authors: Philippe Gervais, Alexandre Abraham\n# License: simplified BSD\n\nimport collections\nfrom distutils.version import LooseVersion\n\nimport numpy as np\nfrom scipy import ndimage\nfrom scipy.stats import sco...
diff --git a/nilearn/image/image.py b/nilearn/image/image.py index 4a42973e8b..4ea9e4d27d 100644 --- a/nilearn/image/image.py +++ b/nilearn/image/image.py @@ -628,7 +628,7 @@ def new_img_like(ref_niimg, data, affine=None, copy_header=False): header['scl_inter'] = 0. header['glmax'] = 0. heade...
open-telemetry__opentelemetry-python-contrib-1124
Wrong metric reader argument in system metrics example The [system metrics example](https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py#L52) does not use a list of metric reader...
[ { "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/instrumentation/opentelemetry-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py b/instrumentation/opentelemetry-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py index a089d1bc66..7ae82dc55d 100644 --- a/instrumentation/ope...
googleapis__python-bigquery-810
Correct docstring for LoadJobConfig.destination_table_description property The docstring refers to the "name" of the table, which is incorrect.
[ { "content": "# Copyright 2015 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 2015 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/google/cloud/bigquery/job/load.py b/google/cloud/bigquery/job/load.py index f1b045412..aee055c1c 100644 --- a/google/cloud/bigquery/job/load.py +++ b/google/cloud/bigquery/job/load.py @@ -170,7 +170,7 @@ def destination_encryption_configuration(self, value): @property def destination_table_desc...
geopandas__geopandas-591
[cython] GeoSeries.reindex has wrong filling logic ``` In [2]: s = GeoSeries([Point(1,1), Point(2,2)]) In [3]: s.reindex([0,1,2]) Out[3]: I am densified (3 elements) 0 POINT (1 1) 1 POINT (2 2) 2 POINT (2 2) dtype: object ``` while this should be `Point(1 1), Point(2 2), None` The reason for ...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport numpy as np\n\nfrom pandas.core.internals import Block, NonConsolidatableMixIn\nfrom pandas.core.common import is_null_slice\nfrom shapely.geometry.base import geom_factory, BaseGeometry\n\nfrom .vectorized import GeometryA...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport numpy as np\n\nfrom pandas.core.internals import Block, NonConsolidatableMixIn\nfrom pandas.core.common import is_null_slice\nfrom shapely.geometry.base import geom_factory, BaseGeometry\n\nfrom .vectorized import GeometryA...
diff --git a/geopandas/_block.py b/geopandas/_block.py index 33b71030ce..0067339bcb 100644 --- a/geopandas/_block.py +++ b/geopandas/_block.py @@ -124,7 +124,7 @@ def take_nd(self, indexer, axis=0, new_mgr_locs=None, fill_tuple=None): # TODO implement take_nd on GeometryArray # new_values = self.val...
pytorch__pytorch-131
Port LBFGS from Lua optim fixes #483
[ { "content": "from itertools import repeat\nfrom collections import defaultdict\n\nimport torch\nfrom torch._thnn.utils import parse_header, THNN_H_PATH\nfrom torch.autograd.function import Function, InplaceFunction\nfrom torch._thnn import type2backend\n\nfrom . import _all_functions\n\n\ndef _make_function_cl...
[ { "content": "from itertools import repeat\nfrom collections import defaultdict\n\nimport torch\nfrom torch._thnn.utils import parse_header, THNN_H_PATH\nfrom torch.autograd.function import Function, InplaceFunction\nfrom torch._thnn import type2backend\n\nfrom . import _all_functions\n\n\ndef _make_function_cl...
diff --git a/torch/csrc/cuda/Module.cpp b/torch/csrc/cuda/Module.cpp index 322f94e3ed21ce..aac30f53e17083 100644 --- a/torch/csrc/cuda/Module.cpp +++ b/torch/csrc/cuda/Module.cpp @@ -223,7 +223,7 @@ PyObject * THCPModule_cudaSynchronize(PyObject *_unused) bool THCPModule_initCuda(PyObject *module_dict) { #define ASSE...
kubeflow__pipelines-9157
[sdk] Containerized Python Component module not found error There is a bug when building a containerized Python component that happens (at least) in the case when the longest path of the import graph ending at the component involves >2 modules. ### Environment KFP SDK 2.0.0-beta.6 ### Steps to reproduce For e...
[ { "content": "# Copyright 2021 The Kubeflow 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 b...
[ { "content": "# Copyright 2021 The Kubeflow 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 b...
diff --git a/sdk/RELEASE.md b/sdk/RELEASE.md index faaf387a0ee..c1a570cecf0 100644 --- a/sdk/RELEASE.md +++ b/sdk/RELEASE.md @@ -7,6 +7,7 @@ ## Deprecations ## Bug fixes and other changes +* Fix module not found error for containerized python components [\#9157](https://github.com/kubeflow/pipelines/pull/9157) #...
scrapy__scrapy-4599
KeyError in is_generator_with_return_value ```Python traceback Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks result = g.send(result) File "/app/python/lib/python3.8/site-packages/scrapy/core/downloader/middleware....
[ { "content": "\"\"\"\nThis module contains data types used by Scrapy which are not included in the\nPython Standard Library.\n\nThis module must not depend on any module outside the Standard Library.\n\"\"\"\n\nimport collections\nimport weakref\nfrom collections.abc import Mapping\n\n\nclass CaselessDict(dict)...
[ { "content": "\"\"\"\nThis module contains data types used by Scrapy which are not included in the\nPython Standard Library.\n\nThis module must not depend on any module outside the Standard Library.\n\"\"\"\n\nimport collections\nimport weakref\nfrom collections.abc import Mapping\n\n\nclass CaselessDict(dict)...
diff --git a/scrapy/utils/datatypes.py b/scrapy/utils/datatypes.py index f59f4cc557e..2a92d058856 100644 --- a/scrapy/utils/datatypes.py +++ b/scrapy/utils/datatypes.py @@ -105,8 +105,8 @@ def __setitem__(self, key, value): def __getitem__(self, key): try: return super(LocalWeakReferencedCach...
electricitymaps__electricitymaps-contrib-4347
JP: fix "No recent data found for `price` parser" error Hello, I noticed `price` parser errors on [this Wiki page](https://github.com/electricitymap/electricitymap-contrib/wiki/Parser-issues). This is due to comparison errors at `parsers/JP.py`: ```py electricityMap.org recent parser errors for JP-TK Last updated:...
[ { "content": "#!/usr/bin/env python3\n# coding=utf-8\nimport datetime as dt\nimport logging\n\n# The arrow library is used to handle datetimes\nimport arrow\nimport pandas as pd\n\nfrom parsers import occtonet\nfrom parsers.lib.config import refetch_frequency\n\n# Abbreviations\n# JP-HKD : Hokkaido\n# JP-TH : ...
[ { "content": "#!/usr/bin/env python3\n# coding=utf-8\nimport datetime as dt\nimport logging\n\n# The arrow library is used to handle datetimes\nimport arrow\nimport pandas as pd\n\nfrom parsers import occtonet\nfrom parsers.lib.config import refetch_frequency\n\n# Abbreviations\n# JP-HKD : Hokkaido\n# JP-TH : ...
diff --git a/parsers/JP.py b/parsers/JP.py index 6a0ddd7e2e..581166580c 100644 --- a/parsers/JP.py +++ b/parsers/JP.py @@ -308,7 +308,7 @@ def fetch_price( return [] start = target_datetime - dt.timedelta(days=1) - df["Date"] = df["Date"].apply(lambda x: dt.datetime.strptime(x, "%Y/%m/%d")) + df["...
sanic-org__sanic-2680
Sanic doesn't shutdown cleanly on Mac ### Is there an existing issue for this? - [X] I have searched the existing issues ### Describe the bug When running a simple server on mac os 13.1, after using ctrl-c to shutdown the app, a socket exception is thrown instead of a graceful shutdown ```sh python3 helloworld....
[ { "content": "from __future__ import annotations\n\nimport os\nimport platform\nimport sys\n\nfrom asyncio import (\n AbstractEventLoop,\n CancelledError,\n Protocol,\n all_tasks,\n get_event_loop,\n get_running_loop,\n new_event_loop,\n)\nfrom contextlib import suppress\nfrom functools imp...
[ { "content": "from __future__ import annotations\n\nimport os\nimport platform\nimport sys\n\nfrom asyncio import (\n AbstractEventLoop,\n CancelledError,\n Protocol,\n all_tasks,\n get_event_loop,\n get_running_loop,\n new_event_loop,\n)\nfrom contextlib import suppress\nfrom functools imp...
diff --git a/sanic/mixins/startup.py b/sanic/mixins/startup.py index 1e463bd7b6..4390196d05 100644 --- a/sanic/mixins/startup.py +++ b/sanic/mixins/startup.py @@ -877,7 +877,10 @@ def serve( sync_manager.shutdown() for sock in socks: - sock.shutdown(SHUT_RDWR) + ...
netbox-community__netbox-6790
/32 IP's not automatically represented in /32 subnet. ### NetBox version v2.11.7 ### Python version 3.7 ### Steps to Reproduce 1) Have a /32 IP address, 2) Create a /32 Subnet for that IP address 3) In the new subnet on the IP addresses tab observe IP's. ### Expected Behavior IP address reference should b...
[ { "content": "from django.db.models import IntegerField, Lookup, Transform, lookups\n\n\nclass NetFieldDecoratorMixin(object):\n\n def process_lhs(self, qn, connection, lhs=None):\n lhs = lhs or self.lhs\n lhs_string, lhs_params = qn.compile(lhs)\n lhs_string = 'TEXT(%s)' % lhs_string\n ...
[ { "content": "from django.db.models import IntegerField, Lookup, Transform, lookups\n\n\nclass NetFieldDecoratorMixin(object):\n\n def process_lhs(self, qn, connection, lhs=None):\n lhs = lhs or self.lhs\n lhs_string, lhs_params = qn.compile(lhs)\n lhs_string = 'TEXT(%s)' % lhs_string\n ...
diff --git a/netbox/ipam/lookups.py b/netbox/ipam/lookups.py index 8d9071deeae..c6abb5a26a3 100644 --- a/netbox/ipam/lookups.py +++ b/netbox/ipam/lookups.py @@ -151,7 +151,7 @@ def as_sql(self, qn, connection): lhs, lhs_params = self.process_lhs(qn, connection) rhs, rhs_params = self.process_rhs(qn, c...
comic__grand-challenge.org-1012
"Run algorithm" page is missing the breadcrumb bar Maybe this is on purpose, but I find it confusing that the page that allows users to upload images and run an algorithm does not show the breadcrumb bar to get back to the algorithm overview page. Example: https://grand-challenge.org/algorithms/vertebra-segmentation...
[ { "content": "import csv\nimport re\n\nfrom dal import autocomplete\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.mixins import (\n PermissionRequiredMixin,\n UserPassesTestMixin,\n)\nfrom django.contrib.mes...
[ { "content": "import csv\nimport re\n\nfrom dal import autocomplete\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.mixins import (\n PermissionRequiredMixin,\n UserPassesTestMixin,\n)\nfrom django.contrib.mes...
diff --git a/app/grandchallenge/algorithms/templates/algorithms/algorithm_execution_session_create.html b/app/grandchallenge/algorithms/templates/algorithms/algorithm_execution_session_create.html index e9236177e0..4382d4b94a 100644 --- a/app/grandchallenge/algorithms/templates/algorithms/algorithm_execution_session_cr...
common-workflow-language__cwltool-1490
CommandLineTool.arguments: string interpolation with `$(self)` incorrectly fails According to https://www.commonwl.org/v1.0/CommandLineTool.html#Parameter_references If a parameter reference is allowed in a field, then `self` is allowed; it should be `null` if not specifically defined. `self-dump.cwl` ``` cwl #!/...
[ { "content": "\"\"\"Parse CWL expressions.\"\"\"\n\nimport copy\nimport json\nimport re\nfrom typing import (\n Any,\n Dict,\n List,\n Mapping,\n MutableMapping,\n MutableSequence,\n Optional,\n Tuple,\n Union,\n cast,\n)\n\nfrom schema_salad.utils import json_dumps\n\nfrom .errors...
[ { "content": "\"\"\"Parse CWL expressions.\"\"\"\n\nimport copy\nimport json\nimport re\nfrom typing import (\n Any,\n Dict,\n List,\n Mapping,\n MutableMapping,\n MutableSequence,\n Optional,\n Tuple,\n Union,\n cast,\n)\n\nfrom schema_salad.utils import json_dumps\n\nfrom .errors...
diff --git a/cwltool/expression.py b/cwltool/expression.py index 4e9c5126a..8057886b6 100644 --- a/cwltool/expression.py +++ b/cwltool/expression.py @@ -217,7 +217,7 @@ def evaluator( if first_symbol_end + 1 == len(ex) and first_symbol == "null": return None try: - if obj.get(f...
googleapis__google-auth-library-python-506
google-cloud-storage: Cannot create signed url with ImpersonatedCredentials [impersonated_credentials](https://google-auth.readthedocs.io/en/latest/reference/google.auth.impersonated_credentials.html#module-google.auth.impersonated_credentials) cannot create signedURLs for `google-cloud-storage` since it does not requi...
[ { "content": "# Copyright 2018 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
[ { "content": "# Copyright 2018 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
diff --git a/google/auth/impersonated_credentials.py b/google/auth/impersonated_credentials.py index 84df484a4..429980210 100644 --- a/google/auth/impersonated_credentials.py +++ b/google/auth/impersonated_credentials.py @@ -264,7 +264,10 @@ def sign_bytes(self, message): iam_sign_endpoint = _IAM_SIGN_ENDPOI...
huggingface__text-generation-inference-750
NameError: name 'FastLinear' is not defined ### System Info When running TGI on a custom OPT-based model TGI crashes with: > NameError: name 'FastLinear' is not defined I'm not exactly a Python expert, but it appears the `FastLinear` class is simply not imported in https://github.com/huggingface/text-generation...
[ { "content": "# coding=utf-8\n# Copyright 2022 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# ...
[ { "content": "# coding=utf-8\n# Copyright 2022 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# ...
diff --git a/server/text_generation_server/models/custom_modeling/opt_modeling.py b/server/text_generation_server/models/custom_modeling/opt_modeling.py index 5d1a4b0d7ac..fe6f1e525e9 100644 --- a/server/text_generation_server/models/custom_modeling/opt_modeling.py +++ b/server/text_generation_server/models/custom_mode...
ansible-collections__community.general-6372
community.general.flatpak module isn't idempotent when installing packages ### Summary I'm trying to install a list of flatpaks `roles/05_packages/tasks/flatpak.yml` ``` --- - name: Add Flathub repository community.general.flatpak_remote: name: flathub state: present flatpakrepo_url: https://...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2017 John Kwiatkoski (@JayKayy) <jkwiat40@gmail.com>\n# Copyright (c) 2018 Alexander Bethke (@oolongbrothers) <oolongbrothers@gmx.net>\n# Copyright (c) 2017 Ansible Project\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-la...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2017 John Kwiatkoski (@JayKayy) <jkwiat40@gmail.com>\n# Copyright (c) 2018 Alexander Bethke (@oolongbrothers) <oolongbrothers@gmx.net>\n# Copyright (c) 2017 Ansible Project\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-la...
diff --git a/changelogs/fragments/6289-bugfix-flatpak-check-if-already-installed.yml b/changelogs/fragments/6289-bugfix-flatpak-check-if-already-installed.yml new file mode 100644 index 00000000000..e3312500351 --- /dev/null +++ b/changelogs/fragments/6289-bugfix-flatpak-check-if-already-installed.yml @@ -0,0 +1,2 @@ +...
pypa__setuptools-1591
Impossible to install packages with setuptools v.40.6.x, if six isn't installed Upgrade pip and setuptools to latest versions ``` oleg$ pip install --upgrade pip setuptools Collecting pip Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-...
[ { "content": "import io\nimport os\nimport hashlib\nimport getpass\nimport platform\n\nfrom base64 import standard_b64encode\n\nfrom distutils import log\nfrom distutils.command import upload as orig\nfrom distutils.spawn import spawn\n\nfrom distutils.errors import DistutilsError\n\nfrom six.moves.urllib.reque...
[ { "content": "import io\nimport os\nimport hashlib\nimport getpass\nimport platform\n\nfrom base64 import standard_b64encode\n\nfrom distutils import log\nfrom distutils.command import upload as orig\nfrom distutils.spawn import spawn\n\nfrom distutils.errors import DistutilsError\n\nfrom setuptools.extern.six....
diff --git a/setuptools/command/upload.py b/setuptools/command/upload.py index 3b8cab5e06..dd17f7a925 100644 --- a/setuptools/command/upload.py +++ b/setuptools/command/upload.py @@ -12,9 +12,9 @@ from distutils.errors import DistutilsError -from six.moves.urllib.request import urlopen, Request -from six.moves.url...
mampfes__hacs_waste_collection_schedule-775
ZVA-SEK has been added. Thanks, great job. But there is a problem. First of all: Thanks to 5ila5 for doing the job. Thats awesome. But all entries are one day ahead. I created the entries using the "static" configuration, and compared to the import there is one day "shift". Maybe because there is an alarm in the I...
[ { "content": "import re\nimport requests\nfrom datetime import datetime\n\nfrom bs4 import BeautifulSoup\n\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\nfrom waste_collection_schedule.service.ICS import ICS\n\nTITLE = \"Zweckverband Abfallwirtschaft Schwalm-Eder-Kreis\"\nDESCR...
[ { "content": "import re\nimport requests\nfrom datetime import datetime\n\nfrom bs4 import BeautifulSoup\n\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\nfrom waste_collection_schedule.service.ICS import ICS\n\nTITLE = \"Zweckverband Abfallwirtschaft Schwalm-Eder-Kreis\"\nDESCR...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/zva_sek_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/zva_sek_de.py index 87d4e78ad..d65d611c0 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/zva_se...
mozmeao__snippets-service-813
UnicodeEncodeError when Slack request.post UnicodeEncodeError: 'latin-1' codec can't encode characters in position 258-264: Body ('γιώργος') is not valid Latin-1. Use body.encode('utf-8') if you want to send it encoded in UTF-8. Sentry Issue: https://sentry.prod.mozaws.net/operations/snippets/issues/4891896/
[ { "content": "import logging\n\nfrom django.conf import settings\nfrom django.template.loader import render_to_string\n\nimport requests\nfrom raven.contrib.django.models import client as sentry_client\n\nlogger = logging.getLogger(__name__)\n\n\ndef send_slack(template_name, snippet):\n data = render_to_str...
[ { "content": "import logging\n\nfrom django.conf import settings\nfrom django.template.loader import render_to_string\n\nimport requests\nfrom raven.contrib.django.models import client as sentry_client\n\nlogger = logging.getLogger(__name__)\n\n\ndef send_slack(template_name, snippet):\n data = render_to_str...
diff --git a/snippets/base/slack.py b/snippets/base/slack.py index 3bad20232..a664166df 100644 --- a/snippets/base/slack.py +++ b/snippets/base/slack.py @@ -21,7 +21,7 @@ def _send_slack(data): return try: - response = requests.post(settings.SLACK_WEBHOOK, data=data, + response = requests....
medtagger__MedTagger-466
Add information about Dataset to Tasks endpoint ## Current Behavior Tasks endpoint returns list of all Tasks **without** information about their Datasets. ## Expected Behavior Each Task returned by this endpoint should also contain information about its Dataset. ## Tasks to do - [ ] Add Dataset key to th...
[ { "content": "\"\"\"Module responsible for storage of serializers used in Tasks endpoints.\"\"\"\nfrom flask_restplus import fields\n\nfrom medtagger.api import api\nfrom medtagger.definitions import LabelTool\n\nout__label_tag = api.model('Label Tag model', {\n 'key': fields.String(),\n 'name': fields.St...
[ { "content": "\"\"\"Module responsible for storage of serializers used in Tasks endpoints.\"\"\"\nfrom flask_restplus import fields\n\nfrom medtagger.api import api\nfrom medtagger.definitions import LabelTool\n\nout__label_tag = api.model('Label Tag model', {\n 'key': fields.String(),\n 'name': fields.St...
diff --git a/backend/medtagger/api/tasks/serializers.py b/backend/medtagger/api/tasks/serializers.py index d1d339c3..13a7a7c2 100644 --- a/backend/medtagger/api/tasks/serializers.py +++ b/backend/medtagger/api/tasks/serializers.py @@ -27,6 +27,7 @@ 'name': fields.String(), 'image_path': fields.String(), ...
benoitc__gunicorn-1914
Encoding headers with ASCII breaks applications expecting them to be encoded in latin-1 Applications, like flask, which expect that the headers are using latin-1 encoding as specified in [rfc5987] will break gunicorn because gunicorn uses ASCII encoding. Issue #1353 was closed with the comment > I'm going to close ...
[ { "content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\nimport io\nimport logging\nimport os\nimport re\nimport sys\n\nfrom gunicorn.http.message import HEADER_RE\nfrom gunicorn.http.errors import InvalidHeader, InvalidHe...
[ { "content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\nimport io\nimport logging\nimport os\nimport re\nimport sys\n\nfrom gunicorn.http.message import HEADER_RE\nfrom gunicorn.http.errors import InvalidHeader, InvalidHe...
diff --git a/examples/test.py b/examples/test.py index ffface083..09ea06f08 100644 --- a/examples/test.py +++ b/examples/test.py @@ -20,7 +20,8 @@ def app(environ, start_response): response_headers = [ ('Content-type', 'text/plain'), ('Content-Length', str(len(data))), - ('X-Gunicorn-Versi...
scikit-image__scikit-image-4696
pyramid_gaussian doesn't support float32 ## Description This issue needs to be fixed to allow `ORB` to fully support `float32` ## Way to reproduce ```python >>> from skimage.transform import pyramid_gaussian >>> from skimage.data import coins >>> from skimage import img_as_float32 >>> img = coins() >>> img_...
[ { "content": "import math\nimport numpy as np\nfrom scipy import ndimage as ndi\nfrom ..transform import resize\nfrom .._shared.utils import convert_to_float\n\n\ndef _smooth(image, sigma, mode, cval, multichannel=None):\n \"\"\"Return image with each channel smoothed by the Gaussian filter.\"\"\"\n smoot...
[ { "content": "import math\nimport numpy as np\nfrom scipy import ndimage as ndi\nfrom ..transform import resize\nfrom .._shared.utils import convert_to_float\n\n\ndef _smooth(image, sigma, mode, cval, multichannel=None):\n \"\"\"Return image with each channel smoothed by the Gaussian filter.\"\"\"\n smoot...
diff --git a/skimage/transform/pyramids.py b/skimage/transform/pyramids.py index d6f573198a0..921717d86ad 100644 --- a/skimage/transform/pyramids.py +++ b/skimage/transform/pyramids.py @@ -7,7 +7,7 @@ def _smooth(image, sigma, mode, cval, multichannel=None): """Return image with each channel smoothed by the Gau...
sanic-org__sanic-2737
JSONResponse defaults to None content-type ### Is there an existing issue for this? - [X] I have searched the existing issues ### Describe the bug ```python @app.get("/") async def handler(request: Request): return JSONResponse({"message": "Hello World!"}) ``` ```sh ╰─▶ curl localhost:9999 HTTP/1.1 200...
[ { "content": "from __future__ import annotations\n\nfrom datetime import datetime\nfrom functools import partial\nfrom typing import (\n TYPE_CHECKING,\n Any,\n AnyStr,\n Callable,\n Coroutine,\n Dict,\n Iterator,\n Optional,\n Tuple,\n TypeVar,\n Union,\n)\n\nfrom sanic.compat ...
[ { "content": "from __future__ import annotations\n\nfrom datetime import datetime\nfrom functools import partial\nfrom typing import (\n TYPE_CHECKING,\n Any,\n AnyStr,\n Callable,\n Coroutine,\n Dict,\n Iterator,\n Optional,\n Tuple,\n TypeVar,\n Union,\n)\n\nfrom sanic.compat ...
diff --git a/sanic/response/types.py b/sanic/response/types.py index 3f93855de0..d3c8cdb685 100644 --- a/sanic/response/types.py +++ b/sanic/response/types.py @@ -345,7 +345,7 @@ def __init__( body: Optional[Any] = None, status: int = 200, headers: Optional[Union[Header, Dict[str, str]]] = No...
cltk__cltk-533
External punctuation stopped working on Latin sent tokenizer Recently reviewing the tokenizer, and it is not capturing exclamation points. I'll look to see the NLTK has changed anything. ``` python In [12]: text = """quam penitus maestas exedit cura medullas! ut tibi tunc toto ...: pectore sollicitae sensibus e...
[ { "content": "\"\"\"Tokenize sentences.\"\"\"\n\n__author__ = 'Kyle P. Johnson <kyle@kyle-p-johnson.com>'\n__license__ = 'MIT License. See LICENSE.'\n\n\nfrom cltk.utils.file_operations import open_pickle\nfrom nltk.tokenize.punkt import PunktLanguageVars\nfrom nltk.tokenize.punkt import PunktSentenceTokenizer\...
[ { "content": "\"\"\"Tokenize sentences.\"\"\"\n\n__author__ = 'Kyle P. Johnson <kyle@kyle-p-johnson.com>'\n__license__ = 'MIT License. See LICENSE.'\n\n\nfrom cltk.utils.file_operations import open_pickle\nfrom nltk.tokenize.punkt import PunktLanguageVars\nfrom nltk.tokenize.punkt import PunktSentenceTokenizer\...
diff --git a/cltk/tests/test_tokenize.py b/cltk/tests/test_tokenize.py index 6b8c44c52..06e2619d1 100644 --- a/cltk/tests/test_tokenize.py +++ b/cltk/tests/test_tokenize.py @@ -38,17 +38,16 @@ def setUp(self): else: corpus_importer.import_corpus('latin_models_cltk') self.assertTrue(file_e...
pre-commit__pre-commit-235
Some versions of git don't create .git/hooks directory Noticed here: https://github.com/victorlin/bugbuzz-python/pull/1#issuecomment-104971132
[ { "content": "from __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport io\nimport logging\nimport os\nimport os.path\nimport stat\nimport sys\n\nfrom pre_commit.logging_handler import LoggingHandler\nfrom pre_commit.util import resource_filename\n\n\nlogger = logging.getLogger('p...
[ { "content": "from __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport io\nimport logging\nimport os\nimport os.path\nimport stat\nimport sys\n\nfrom pre_commit.logging_handler import LoggingHandler\nfrom pre_commit.util import resource_filename\n\n\nlogger = logging.getLogger('p...
diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py index c84d29b4f..47c9484c8 100644 --- a/pre_commit/commands/install_uninstall.py +++ b/pre_commit/commands/install_uninstall.py @@ -48,6 +48,9 @@ def install(runner, overwrite=False, hooks=False, hook_type='pre-commit'): ...
qtile__qtile-2716
stack trace from Clipboard widget ``` 2021-08-13 06:48:23,421 ERROR libqtile hook.py:fire():L381 Error in hook selection_change Traceback (most recent call last): File "/home/tycho/.local/lib/python3.9/site-packages/libqtile/hook.py", line 379, in fire i(*args, **kwargs) File "/home/tycho/.local/lib/python...
[ { "content": "# Copyright (c) 2014 Sean Vig\n# Copyright (c) 2014 roger\n# Copyright (c) 2014 Adi Sieker\n# Copyright (c) 2014 Tycho Andersen\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# i...
[ { "content": "# Copyright (c) 2014 Sean Vig\n# Copyright (c) 2014 roger\n# Copyright (c) 2014 Adi Sieker\n# Copyright (c) 2014 Tycho Andersen\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# i...
diff --git a/libqtile/widget/clipboard.py b/libqtile/widget/clipboard.py index af6f1f4a7a..e81ffa684b 100644 --- a/libqtile/widget/clipboard.py +++ b/libqtile/widget/clipboard.py @@ -66,7 +66,7 @@ def is_blacklisted(self, owner_id): if owner_id in self.qtile.windows_map: owner = self.qtile.windows...
microsoft__playwright-python-1127
Fixing a pyee DeprecationWarning pyee.AsyncIOEventEmitter was moved to pyee.asyncio.AsyncIOEventEmitter, so this PR just fixes two imports
[ { "content": "# Copyright (c) Microsoft Corporation.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright (c) Microsoft Corporation.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/meta.yaml b/meta.yaml index 5a6baedc3..7050f0014 100644 --- a/meta.yaml +++ b/meta.yaml @@ -23,9 +23,9 @@ requirements: - setuptools_scm run: - python - - greenlet >=0.4 - - pyee >=8.0.1 - - websockets >=8.1 + - greenlet ==1.1.2 + - pyee ==8.1.0 + - websockets ==10.1 - t...
WeblateOrg__weblate-10431
Stay in the translate view when there are no search results ### Describe the problem It is very common usecase to search for various strings in the translation. I want to search for a string, check the results and then search for a different string. However the current implementation takes user to component overview p...
[ { "content": "# Copyright © Michal Čihař <michal@weblate.org>\n#\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nimport json\nimport time\nfrom math import ceil\n\nimport sentry_sdk\nfrom django.conf import settings\nfrom django.contrib.auth.decorators import login_required\nfrom django.contrib.messages import ...
[ { "content": "# Copyright © Michal Čihař <michal@weblate.org>\n#\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nimport json\nimport time\nfrom math import ceil\n\nimport sentry_sdk\nfrom django.conf import settings\nfrom django.contrib.auth.decorators import login_required\nfrom django.contrib.messages import ...
diff --git a/weblate/trans/tests/test_search.py b/weblate/trans/tests/test_search.py index d3c2415adbcc..0de355a82398 100644 --- a/weblate/trans/tests/test_search.py +++ b/weblate/trans/tests/test_search.py @@ -25,13 +25,15 @@ def setUp(self): self.update_fulltext_index() reset_rate_limit("search", ad...
feast-dev__feast-3384
On-demand feature view cannot handle boolean Pandas native type ## Expected Behavior After applying some extra transformation steps within on-demand feature view decorator, the returned dataframe as Pandas DataFrame, which contains couple of `boolean` type columns (not `bool`). I was expecting type mapping mechanism ...
[ { "content": "# Copyright 2019 The Feast 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
[ { "content": "# Copyright 2019 The Feast 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
diff --git a/sdk/python/feast/type_map.py b/sdk/python/feast/type_map.py index 466993bb3d7..48da7c9acfd 100644 --- a/sdk/python/feast/type_map.py +++ b/sdk/python/feast/type_map.py @@ -147,6 +147,7 @@ def python_type_to_feast_value_type( "uint8": ValueType.INT32, "int8": ValueType.INT32, "boo...