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
⌀
open-telemetry__opentelemetry-python-2708
Tracing decorator for functions **Is your feature request related to a problem?** Tracing every use of a function is prone to error. It is very hard to do in some contexts, such as functions from a third party library that don't integrate with OTel, without lots of manual span management. **Describe the solution yo...
[ { "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/opentelemetry-api/src/opentelemetry/trace/__init__.py b/opentelemetry-api/src/opentelemetry/trace/__init__.py index 53eb0e96db4..be0d8933b7e 100644 --- a/opentelemetry-api/src/opentelemetry/trace/__init__.py +++ b/opentelemetry-api/src/opentelemetry/trace/__init__.py @@ -371,6 +371,14 @@ def start_as_curre...
quantumlib__Cirq-5322
Gateset: Invalid repr if the gateset is empty **Description of the issue** If a `Gateset` doesn't contain any gates, the repr contains an extra comma: https://github.com/quantumlib/Cirq/blob/e31b48d04c7a3dea6bc2e5e320b0c606bbf13700/cirq-core/cirq/ops/gateset.py#L408-L411 @tanujkhattar Should we fix the repr or mak...
[ { "content": "# Copyright 2021 The Cirq Developers\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...
[ { "content": "# Copyright 2021 The Cirq Developers\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...
diff --git a/cirq-core/cirq/ops/gateset.py b/cirq-core/cirq/ops/gateset.py index 53a31b650cb..90701077e20 100644 --- a/cirq-core/cirq/ops/gateset.py +++ b/cirq-core/cirq/ops/gateset.py @@ -525,9 +525,10 @@ def _value_equality_values_(self) -> Any: def __repr__(self) -> str: name_str = f'name = "{self.na...
Mailu__Mailu-1358
Add ability to specify SMTP port Some relayed domains may live on machines that accept SMTP on a nonstandard port, e.g., port 2525. This would allow users to relay for domains by appending `:port` to the hostname or IP address. Add ability to specify SMTP port Some relayed domains may live on machines that accept SMTP ...
[ { "content": "from mailu import models\nfrom mailu.internal import internal\n\nimport flask\nimport re\n\n\n@internal.route(\"/postfix/domain/<domain_name>\")\ndef postfix_mailbox_domain(domain_name):\n if re.match(\"^\\[.*\\]$\", domain_name):\n return flask.abort(404)\n domain = models.Domain.que...
[ { "content": "from mailu import models\nfrom mailu.internal import internal\n\nimport flask\nimport re\n\n\n@internal.route(\"/postfix/domain/<domain_name>\")\ndef postfix_mailbox_domain(domain_name):\n if re.match(\"^\\[.*\\]$\", domain_name):\n return flask.abort(404)\n domain = models.Domain.que...
diff --git a/core/admin/mailu/internal/views/postfix.py b/core/admin/mailu/internal/views/postfix.py index 21a4aa91b..0843b1470 100644 --- a/core/admin/mailu/internal/views/postfix.py +++ b/core/admin/mailu/internal/views/postfix.py @@ -36,7 +36,11 @@ def postfix_transport(email): return flask.abort(404) ...
liqd__adhocracy4-623
error handling intial slide like https://github.com/liqd/a4-meinberlin/issues/3153
[ { "content": "from django.http import Http404\nfrom django.http.response import HttpResponseRedirect\nfrom django.shortcuts import get_object_or_404\nfrom django.urls import resolve\nfrom django.utils.functional import cached_property\nfrom django.views import generic\n\nfrom adhocracy4.modules.models import Mo...
[ { "content": "from django.http import Http404\nfrom django.http.response import HttpResponseRedirect\nfrom django.shortcuts import get_object_or_404\nfrom django.urls import resolve\nfrom django.utils.functional import cached_property\nfrom django.views import generic\n\nfrom adhocracy4.modules.models import Mo...
diff --git a/adhocracy4/projects/mixins.py b/adhocracy4/projects/mixins.py index ce065bebb..4f8b9ebda 100644 --- a/adhocracy4/projects/mixins.py +++ b/adhocracy4/projects/mixins.py @@ -148,7 +148,9 @@ def extends(self): def initial_slide(self): initial_slide = self.request.GET.get('initialSlide') ...
ansible-collections__community.general-4170
community.general.vdo is giving error ### Summary vdo is failing when I try to use the module with the error below ### Issue Type Bug Report ### Component Name community.general.vdo ### Ansible Version ```console (paste below) $ ansible --version ``` ansible --version ansible 2.9.27 confi...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2018, Red Hat, Inc.\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\nDOCUMENTATION = r'''\n---\na...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2018, Red Hat, Inc.\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\nDOCUMENTATION = r'''\n---\na...
diff --git a/changelogs/fragments/3916-fix-vdo-options-type.yml b/changelogs/fragments/3916-fix-vdo-options-type.yml new file mode 100644 index 00000000000..badf171f5b7 --- /dev/null +++ b/changelogs/fragments/3916-fix-vdo-options-type.yml @@ -0,0 +1,2 @@ +bugfixes: + - vdo - fix options error (https://github.com/ansi...
aws__aws-cli-4036
EKS update-config not working when updating cluster I am not sure if by design. In case it isnt, executing: ``` aws eks update-kubeconfig --name dev-tools --kubeconfig ~/.kube/dev-tools ``` Yields into following the error message: ``` Cluster status not active ``` When the cluster is updating: `"status": "U...
[ { "content": "# Copyright 2018 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.0/\n#\n# ...
[ { "content": "# Copyright 2018 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.0/\n#\n# ...
diff --git a/awscli/customizations/eks/update_kubeconfig.py b/awscli/customizations/eks/update_kubeconfig.py index 0dad708b7fb1..cf9d02c64510 100644 --- a/awscli/customizations/eks/update_kubeconfig.py +++ b/awscli/customizations/eks/update_kubeconfig.py @@ -258,8 +258,10 @@ def _get_cluster_description(self): ...
mozilla__bugbug-3894
[model:backout] TypeError: All intermediate steps should be transformers and implement fit and transform Failing on [bugbug integration test](https://github.com/mozilla/bugbug/runs/19338314086): ``` + bugbug-train backout --limit 30000 --no-download 2023-12-05 17:34:09,725:INFO:scripts.trainer:Skipping download of...
[ { "content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport logging\nfrom datetime import datetime\n\nimport dateutil.pars...
[ { "content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport logging\nfrom datetime import datetime\n\nimport dateutil.pars...
diff --git a/bugbug/models/backout.py b/bugbug/models/backout.py index 473bc72282..91900d459b 100644 --- a/bugbug/models/backout.py +++ b/bugbug/models/backout.py @@ -74,7 +74,7 @@ def __init__(self, lemmatization=False, bug_data=False): feature_cleanup.synonyms(), ] - self.extraction_pip...
ansible-collections__community.general-4163
community.general.vdo is giving error ### Summary vdo is failing when I try to use the module with the error below ### Issue Type Bug Report ### Component Name community.general.vdo ### Ansible Version ```console (paste below) $ ansible --version ``` ansible --version ansible 2.9.27 confi...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2018, Red Hat, Inc.\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\nDOCUMENTATION = r'''\n---\na...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2018, Red Hat, Inc.\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\nDOCUMENTATION = r'''\n---\na...
diff --git a/changelogs/fragments/3916-fix-vdo-options-type.yml b/changelogs/fragments/3916-fix-vdo-options-type.yml new file mode 100644 index 00000000000..badf171f5b7 --- /dev/null +++ b/changelogs/fragments/3916-fix-vdo-options-type.yml @@ -0,0 +1,2 @@ +bugfixes: + - vdo - fix options error (https://github.com/ansi...
django-wiki__django-wiki-1240
SHOW_MAX_CHILDREN setting is ignored There is a hardcoded value of 20 in wiki/views/mixins.py <pre> kwargs["children_slice"] = self.children_slice[:20] kwargs["children_slice_more"] = len(self.children_slice) > 20 </pre>
[ { "content": "import logging\n\nfrom django.views.generic.base import TemplateResponseMixin\nfrom wiki.conf import settings\nfrom wiki.core.plugins import registry\n\nlog = logging.getLogger(__name__)\n\n\nclass ArticleMixin(TemplateResponseMixin):\n\n \"\"\"A mixin that receives an article object as a param...
[ { "content": "import logging\n\nfrom django.views.generic.base import TemplateResponseMixin\nfrom wiki.conf import settings\nfrom wiki.core.plugins import registry\n\nlog = logging.getLogger(__name__)\n\n\nclass ArticleMixin(TemplateResponseMixin):\n\n \"\"\"A mixin that receives an article object as a param...
diff --git a/README.rst b/README.rst index 1b106b162..c8305f3d6 100644 --- a/README.rst +++ b/README.rst @@ -14,7 +14,7 @@ django-wiki .. |Downloads| image:: https://img.shields.io/pypi/dm/wiki.svg :target: https://pypi.org/project/wiki/ .. |IRC| image:: https://img.shields.io/badge/irc-%23django--wiki%20on%20lib...
nextcloud__appstore-372
schema does not allow digits in app ids Apparently app ids like ``twofactor_u2f`` are not allowed by the info.xml schema. Could we change that regex to allow digits too or are there any strong arguments against that? ref https://github.com/nextcloud/appstore/blob/e4567ce707b332ca14eb35e322bff5ec4397191b/nextcloudapp...
[ { "content": "from django.conf.urls import url\nfrom django.views.decorators.http import etag\nfrom nextcloudappstore.core.api.v1.views import AppView, AppReleaseView, \\\n CategoryView, SessionObtainAuthToken, RegenerateAuthToken, AppRatingView, \\\n AppRegisterView\nfrom nextcloudappstore.core.caching i...
[ { "content": "from django.conf.urls import url\nfrom django.views.decorators.http import etag\nfrom nextcloudappstore.core.api.v1.views import AppView, AppReleaseView, \\\n CategoryView, SessionObtainAuthToken, RegenerateAuthToken, AppRatingView, \\\n AppRegisterView\nfrom nextcloudappstore.core.caching i...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 16eb4d17200..613c83daba1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -26,6 +26,7 @@ Unreleased - Apps depending on Nextcloud minor or patch versions are now rendered on the app detail and releases page - Fix styling bug that would sometimes hide the app resourc...
vispy__vispy-1084
IPython WebGL Examples not working. The IPython notebook examples are not working with the latest IPython(Jupyter) 4.0 release.
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2014, 2015, Vispy Development Team.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\ntry:\n from IPython.html.widgets import DOMWidget\n from IPython.utils.traitlets import Unicode, Int, Bool\nexcept Exception as exp:\n ...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2014, 2015, Vispy Development Team.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\ntry:\n from IPython.html.widgets import DOMWidget\n from IPython.utils.traitlets import Unicode, Int, Bool\nexcept Exception as exp:\n ...
diff --git a/vispy/app/backends/ipython/_widget.py b/vispy/app/backends/ipython/_widget.py index fab2f2c2ea..f14fcdb87c 100644 --- a/vispy/app/backends/ipython/_widget.py +++ b/vispy/app/backends/ipython/_widget.py @@ -57,7 +57,10 @@ def set_canvas(self, canvas): self.gen_event = self.canvas_backend._gen_event...
wevote__WeVoteServer-2497
People Photos Will need a collection of photos for the cards that will be available for each voter being represented in the proof of concept. This will eventually come from the services but for now we will need static ones. When they are collected, put them into `WebAppPublic/assets/photos/`. This directory has not bee...
[ { "content": "# config/base.py (Settings Base, inherited by local.py)\n# Brought to you by We Vote. Be good.\n# -*- coding: UTF-8 -*-\n\nimport json\nimport os\n\nfrom django.core.exceptions import ImproperlyConfigured\n\n# SECURITY WARNING: don't run with debug turned on in production!\n# Override in local.py ...
[ { "content": "# config/base.py (Settings Base, inherited by local.py)\n# Brought to you by We Vote. Be good.\n# -*- coding: UTF-8 -*-\n\nimport json\nimport os\n\nfrom django.core.exceptions import ImproperlyConfigured\n\n# SECURITY WARNING: don't run with debug turned on in production!\n# Override in local.py ...
diff --git a/config/base.py b/config/base.py index 76fb7ab02..15f26c532 100644 --- a/config/base.py +++ b/config/base.py @@ -261,7 +261,10 @@ def get_environment_variable_default(var_name, default_value): AUTH_USER_MODEL = 'voter.Voter' # Static files (CSS, JavaScript, Images) Django 5+ -STATIC_URL = 'static/' +STA...
piskvorky__gensim-3531
Support for python3.12 Hello there, is it possible that `gensim` can support python3.12?
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2014 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html\n\n\"\"\"\nRun with::\n\n python ./setup.py install\n\"\"\"\n\nimport itertools\nimport...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2014 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html\n\n\"\"\"\nRun with::\n\n python ./setup.py install\n\"\"\"\n\nimport itertools\nimport...
diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index a3e7a85c6c..ce43bb3bf5 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -65,17 +65,20 @@ jobs: - {python: '3.9', os: macos-11} - {python: '3.10', os: macos-11} ...
unionai-oss__pandera-391
mypy complains that registered checks are not a valid Check attribute **Describe the bug** When [registering checks](https://pandera.readthedocs.io/en/stable/generated/pandera.extensions.html#pandera.extensions.register_check_method), mypy complains that the `Check` class doesn't have the registered check method. -...
[ { "content": "\"\"\"Data validation checks.\"\"\"\n\nimport inspect\nimport operator\nimport re\nfrom collections import namedtuple\nfrom functools import partial, wraps\nfrom typing import Any, Callable, Dict, Iterable, List, Optional, Union\n\nimport pandas as pd\n\nfrom . import constants, errors\nfrom . imp...
[ { "content": "\"\"\"Data validation checks.\"\"\"\n\nimport inspect\nimport operator\nimport re\nfrom collections import namedtuple\nfrom functools import partial, wraps\nfrom typing import Any, Callable, Dict, Iterable, List, Optional, Union\n\nimport pandas as pd\n\nfrom . import constants, errors\nfrom . imp...
diff --git a/pandera/checks.py b/pandera/checks.py index 126e7696d..db7ed2b9c 100644 --- a/pandera/checks.py +++ b/pandera/checks.py @@ -436,7 +436,18 @@ def __repr__(self): ) -class Check(_CheckBase): +class _CheckMeta(type): # pragma: no cover + """Check metaclass.""" + + def __getattr__(cls, name...
ourownstory__neural_prophet-1298
cross-validation demo error When I was studying the cross-validation page in the official document, I found that the following code would report an error, prompting "['SmoothL1Loss'] not in index". The output of the test metrics does not include these items. Is it because the version update has been modified? ``` met...
[ { "content": "import logging\nimport math\nfrom collections import OrderedDict\nfrom typing import Dict, List, Optional, Union\n\nimport numpy as np\nimport pytorch_lightning as pl\nimport torch\nimport torch.nn as nn\nimport torchmetrics\n\nfrom neuralprophet import configure, np_types, utils\nfrom neuralproph...
[ { "content": "import logging\nimport math\nfrom collections import OrderedDict\nfrom typing import Dict, List, Optional, Union\n\nimport numpy as np\nimport pytorch_lightning as pl\nimport torch\nimport torch.nn as nn\nimport torchmetrics\n\nfrom neuralprophet import configure, np_types, utils\nfrom neuralproph...
diff --git a/neuralprophet/time_net.py b/neuralprophet/time_net.py index 1c3f31076..45ad5e1f8 100644 --- a/neuralprophet/time_net.py +++ b/neuralprophet/time_net.py @@ -793,6 +793,9 @@ def test_step(self, batch, batch_idx): loss, reg_loss = self.loss_func(inputs, predicted, targets) # Metrics ...
scikit-hep__pyhf-1132
Making workspaces immutable? # Question Currently workspaces are mutable: ```python import pyhf spec = { "channels": [ { "name": "Signal Region", "samples": [ { "data": [10], "modifiers": [ ...
[ { "content": "\"\"\"\npyhf workspaces hold the three data items:\n\n* the statistical model p(data|parameters)\n* the observed data (optional)\n* fit configurations (\"measurements\")\n\"\"\"\nimport logging\nimport jsonpatch\nimport copy\nimport collections\nfrom . import exceptions\nfrom . import utils\nfrom ...
[ { "content": "\"\"\"\npyhf workspaces hold the three data items:\n\n* the statistical model p(data|parameters)\n* the observed data (optional)\n* fit configurations (\"measurements\")\n\"\"\"\nimport logging\nimport jsonpatch\nimport copy\nimport collections\nfrom . import exceptions\nfrom . import utils\nfrom ...
diff --git a/src/pyhf/workspace.py b/src/pyhf/workspace.py index 2826261ca5..b0bcf963a8 100644 --- a/src/pyhf/workspace.py +++ b/src/pyhf/workspace.py @@ -283,6 +283,7 @@ class Workspace(_ChannelSummaryMixin, dict): def __init__(self, spec, **config_kwargs): """Workspaces hold the model, data and measur...
sopel-irc__sopel-1102
bot.db.unalias_nick() behavior does not match docs > ``` > Raises ValueError if there is not at least one other nick in the group. > ``` The ValueError is never raised: ``` <dgw> .nickunmerge ThisIsATestNick <Sopel> Removed ThisIsATestNick from nick group 1497. <dgw> that's not supposed to work <ThisIsATestNick> bler...
[ { "content": "# coding=utf-8\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport json\nimport os.path\nimport sys\nimport sqlite3\n\nfrom sopel.tools import Identifier\n\nif sys.version_info.major >= 3:\n unicode = str\n basestring = str\n\n\ndef _deserialize(valu...
[ { "content": "# coding=utf-8\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport json\nimport os.path\nimport sys\nimport sqlite3\n\nfrom sopel.tools import Identifier\n\nif sys.version_info.major >= 3:\n unicode = str\n basestring = str\n\n\ndef _deserialize(valu...
diff --git a/sopel/db.py b/sopel/db.py index 0608b4ec40..2b02220773 100644 --- a/sopel/db.py +++ b/sopel/db.py @@ -174,7 +174,7 @@ def unalias_nick(self, alias): nick_id = self.get_nick_id(alias, False) count = self.execute('SELECT COUNT(*) FROM nicknames WHERE nick_id = ?', ...
bridgecrewio__checkov-548
Add new check: API Gateway V2 should have access logging enabled AccessLogSettings: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-stage.html Terraform does not currently support this: https://github.com/terraform-providers/terraform-provider-aws/issues/7004
[ { "content": "from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\nfrom checkov.common.models.enums import CheckCategories\nfrom checkov.common.models.consts import ANY_VALUE\n\n\nclass APIGatewayAccessLogging(BaseResourceValueCheck):\n\n def __init__(self):\n ...
[ { "content": "from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\nfrom checkov.common.models.enums import CheckCategories\nfrom checkov.common.models.consts import ANY_VALUE\n\n\nclass APIGatewayAccessLogging(BaseResourceValueCheck):\n\n def __init__(self):\n ...
diff --git a/checkov/terraform/checks/resource/aws/APIGatewayAccessLogging.py b/checkov/terraform/checks/resource/aws/APIGatewayAccessLogging.py index 5a42ad2041..91f9351f06 100644 --- a/checkov/terraform/checks/resource/aws/APIGatewayAccessLogging.py +++ b/checkov/terraform/checks/resource/aws/APIGatewayAccessLogging....
ansible__ansible-modules-core-4244
unarchive failed to transfer on devel <!--- Verify first that your issue/request is not already reported in GitHub --> ##### ISSUE TYPE <!--- Pick one below and delete the rest: --> - Bug Report ##### COMPONENT NAME <!--- Name of the plugin/module/task --> unarchive ##### ANSIBLE VERSION <!--- Paste verbatim output...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>\n# (c) 2013, Dylan Martin <dmartin@seattlecentral.edu>\n# (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com>\n# (c) 2016, Dag Wieers <dag@wieers.com>\n#\n# This file is part of Ansible\n#\n# Ansible ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>\n# (c) 2013, Dylan Martin <dmartin@seattlecentral.edu>\n# (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com>\n# (c) 2016, Dag Wieers <dag@wieers.com>\n#\n# This file is part of Ansible\n#\n# Ansible ...
diff --git a/files/unarchive.py b/files/unarchive.py index f4dfeeede82..0020ed96894 100644 --- a/files/unarchive.py +++ b/files/unarchive.py @@ -734,7 +734,7 @@ def main(): file_args = module.load_file_common_arguments(module.params) # did tar file arrive? if not os.path.exists(src): - if not remo...
streamlink__streamlink-2958
Twitch --retry-streams stop working after internet connection loss and recovery <!-- Thanks for reporting a bug! USE THE TEMPLATE. Otherwise your bug report may be rejected. First, see the contribution guidelines: https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink A...
[ { "content": "# -*- coding: utf-8 -*-\nimport argparse\nimport json\nimport logging\nimport re\nimport warnings\nfrom collections import namedtuple\nfrom random import random\n\nimport requests\n\nfrom streamlink.compat import urlparse\nfrom streamlink.exceptions import NoStreamsError, PluginError, StreamError\...
[ { "content": "# -*- coding: utf-8 -*-\nimport argparse\nimport json\nimport logging\nimport re\nimport warnings\nfrom collections import namedtuple\nfrom random import random\n\nimport requests\n\nfrom streamlink.compat import urlparse\nfrom streamlink.exceptions import NoStreamsError, PluginError, StreamError\...
diff --git a/src/streamlink/plugins/twitch.py b/src/streamlink/plugins/twitch.py index 8726dc3b2f5..6f841f925fc 100644 --- a/src/streamlink/plugins/twitch.py +++ b/src/streamlink/plugins/twitch.py @@ -306,9 +306,10 @@ def call(self, path, format="json", schema=None, private=False, **extra_params): def call_subdoma...
jupyterhub__jupyterhub-1804
Query strings are lost in between /user/redirect/ and /user/my-username/ I hoped to use [nbgitpuller](https://github.com/data-8/nbgitpuller) in order to be able to write something like `https://my-z2jh-deployment.com/user/redirect/git-pull?repo=my-repo-url` in order to first have the user login, and then do something s...
[ { "content": "\"\"\"HTTP Handlers for the hub server\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport copy\nimport re\nimport time\nfrom datetime import datetime, timedelta\nfrom http.client import responses\nfrom urllib.parse import urlpar...
[ { "content": "\"\"\"HTTP Handlers for the hub server\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport copy\nimport re\nimport time\nfrom datetime import datetime, timedelta\nfrom http.client import responses\nfrom urllib.parse import urlpar...
diff --git a/jupyterhub/handlers/base.py b/jupyterhub/handlers/base.py index 62d3c1aac0..082c1ad5d9 100644 --- a/jupyterhub/handlers/base.py +++ b/jupyterhub/handlers/base.py @@ -985,6 +985,9 @@ async def get(self, name, user_path): # logged in as a different user, redirect self.statsd.incr('r...
jazzband__django-debug-toolbar-1211
Server-Timing header formatted incorrectly? The `Server-Timing` response header which was added in #928 exposes a lot of valuable information, but it looks like it's not formatted according to [the latest version of the W3C spec](https://www.w3.org/TR/server-timing/). A demonstration of the problem can be seen in Ch...
[ { "content": "\"\"\"\nDebug Toolbar middleware\n\"\"\"\n\nimport re\nfrom functools import lru_cache\n\nfrom django.conf import settings\nfrom django.utils.module_loading import import_string\n\nfrom debug_toolbar import settings as dt_settings\nfrom debug_toolbar.toolbar import DebugToolbar\n\n_HTML_TYPES = (\...
[ { "content": "\"\"\"\nDebug Toolbar middleware\n\"\"\"\n\nimport re\nfrom functools import lru_cache\n\nfrom django.conf import settings\nfrom django.utils.module_loading import import_string\n\nfrom debug_toolbar import settings as dt_settings\nfrom debug_toolbar.toolbar import DebugToolbar\n\n_HTML_TYPES = (\...
diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py index a53bda8d4..a42bcd912 100644 --- a/debug_toolbar/middleware.py +++ b/debug_toolbar/middleware.py @@ -112,9 +112,9 @@ def generate_server_timing_header(response, panels): continue for key, record in stats.items():...
PaddlePaddle__models-2673
PaddleGAN中attgan保存模型报错 在在PaddleCV/PaddleGAN目录中,执行bash scripts/run_attgan.sh,对attgan模型进行训练,在保存模型时报错,报错信息如下: ![image](https://user-images.githubusercontent.com/37854899/60489578-415c9900-9cd7-11e9-8d29-e66c13b6d143.png)
[ { "content": "#copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve.\n#\n#Licensed under the Apache License, Version 2.0 (the \"License\");\n#you may not use this file except in compliance with the License.\n#You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n...
[ { "content": "#copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve.\n#\n#Licensed under the Apache License, Version 2.0 (the \"License\");\n#you may not use this file except in compliance with the License.\n#You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n...
diff --git a/PaddleCV/PaddleGAN/util/utility.py b/PaddleCV/PaddleGAN/util/utility.py index 4c6db18178..541bd4b845 100644 --- a/PaddleCV/PaddleGAN/util/utility.py +++ b/PaddleCV/PaddleGAN/util/utility.py @@ -133,7 +133,7 @@ def save_test_image(epoch, elif cfg.model_net == 'AttGAN' or cfg.model_net == 'STGAN': ...
dask__dask-3757
delayed class method There seems to be an issue using delayed as decorator in classes. I found a similar issue in the toolz library here that may be related (https://github.com/pytoolz/toolz/issues/219). Example code: ```python class A: @dask.delayed def test(self, a, b): return a + b t =...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import Iterator\nimport operator\nimport uuid\n\ntry:\n from cytoolz import curry, pluck\nexcept ImportError:\n from toolz import curry, pluck\n\nfrom . import config, threaded\nfrom .base import is_dask_col...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import Iterator\nimport operator\nimport types\nimport uuid\n\ntry:\n from cytoolz import curry, pluck\nexcept ImportError:\n from toolz import curry, pluck\n\nfrom . import config, threaded\nfrom .base impo...
diff --git a/dask/delayed.py b/dask/delayed.py index 441e0bccb9a..bd039fa4f86 100644 --- a/dask/delayed.py +++ b/dask/delayed.py @@ -2,6 +2,7 @@ from collections import Iterator import operator +import types import uuid try: @@ -434,6 +435,11 @@ def __bool__(self): __nonzero__ = __bool__ + def __get...
getsentry__sentry-python-2234
Add "replay" context to errors ### Problem Statement If there is a `replay_id` in the baggage header in incoming HTTP requests there should be an "replay" context added to the events payload: https://develop.sentry.dev/sdk/event-payloads/contexts/#replay-context use case when can't use envelopes. For PHP & Python st...
[ { "content": "from copy import copy\nfrom collections import deque\nfrom itertools import chain\nimport os\nimport uuid\n\nfrom sentry_sdk.attachments import Attachment\nfrom sentry_sdk._functools import wraps\nfrom sentry_sdk.tracing_utils import (\n Baggage,\n extract_sentrytrace_data,\n has_tracing_...
[ { "content": "from copy import copy\nfrom collections import deque\nfrom itertools import chain\nimport os\nimport uuid\n\nfrom sentry_sdk.attachments import Attachment\nfrom sentry_sdk._functools import wraps\nfrom sentry_sdk.tracing_utils import (\n Baggage,\n extract_sentrytrace_data,\n has_tracing_...
diff --git a/sentry_sdk/scope.py b/sentry_sdk/scope.py index 68b48e045b..317d14c6b1 100644 --- a/sentry_sdk/scope.py +++ b/sentry_sdk/scope.py @@ -614,6 +614,16 @@ def _drop(cause, ty): else: contexts["trace"] = self.get_trace_context() + try: + replay_id = contexts["tr...
cisagov__manage.get.gov-514
Update Confirmation Email for Submitted Domain **Acceptance Criteria** - As a user I want to be able to get a confirmation when my domain has been submitted - [x] [Draft email content](https://docs.google.com/document/d/14PBLpFrXqxYDh2TU9Ucjh22jyECDCX6irC0wM8dJUdk/edit#) - @michelle-rago - [x] Include confirmation n...
[ { "content": "from __future__ import annotations\nfrom typing import Union\n\nimport logging\n\nfrom django.apps import apps\nfrom django.db import models\nfrom django_fsm import FSMField, transition # type: ignore\n\nfrom .utility.time_stamped_model import TimeStampedModel\nfrom ..utility.email import send_te...
[ { "content": "from __future__ import annotations\nfrom typing import Union\n\nimport logging\n\nfrom django.apps import apps\nfrom django.db import models\nfrom django_fsm import FSMField, transition # type: ignore\n\nfrom .utility.time_stamped_model import TimeStampedModel\nfrom ..utility.email import send_te...
diff --git a/src/registrar/models/domain_application.py b/src/registrar/models/domain_application.py index 526e39798..729cdfe8c 100644 --- a/src/registrar/models/domain_application.py +++ b/src/registrar/models/domain_application.py @@ -478,7 +478,7 @@ def _send_confirmation_email(self): "emails/submis...
cal-itp__benefits-1092
Page titles contain extra spaces, characters Our page titles (the string that shows up e.g. in the browser tab) are a little funky. They contain a bunch of extra spaces and weird formatting. For example, the `dev` site has this in the HTML source: ```html <title> Transit Benefits: Introduction | ...
[ { "content": "\"\"\"\nThe core application: view model definitions for the root of the webapp.\n\"\"\"\nfrom django.utils.translation import pgettext, gettext_lazy as _\nfrom django.urls import reverse\n\nfrom benefits.core import models\n\nfrom . import session\n\n\nclass Button:\n \"\"\"\n Represents a ...
[ { "content": "\"\"\"\nThe core application: view model definitions for the root of the webapp.\n\"\"\"\nfrom django.utils.translation import pgettext, gettext_lazy as _\nfrom django.urls import reverse\n\nfrom benefits.core import models\n\nfrom . import session\n\n\nclass Button:\n \"\"\"\n Represents a ...
diff --git a/benefits/core/templates/core/base.html b/benefits/core/templates/core/base.html index acc812be00..4c569777ef 100644 --- a/benefits/core/templates/core/base.html +++ b/benefits/core/templates/core/base.html @@ -8,12 +8,9 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, ...
napari__napari-4863
KeyError: 'version' when installing a plugin ## 🐛 Bug KeyError: 'version' when installing a plugin (that is on pypi but not yet on napari hub). This error is maybe the reason why the warning message 'When installing/uninstalling npe2 plugins, you must restart napari for UI changes to take effect.' is not displayi...
[ { "content": "\"\"\"\nThese convenience functions will be useful for searching napari hub for\nretriving plugin information and related metadata.\n\"\"\"\nimport json\nfrom concurrent.futures import ThreadPoolExecutor, as_completed\nfrom functools import lru_cache\nfrom typing import Generator, Optional, Tuple\...
[ { "content": "\"\"\"\nThese convenience functions will be useful for searching napari hub for\nretriving plugin information and related metadata.\n\"\"\"\nimport json\nfrom concurrent.futures import ThreadPoolExecutor, as_completed\nfrom functools import lru_cache\nfrom typing import Generator, Optional, Tuple\...
diff --git a/napari/plugins/hub.py b/napari/plugins/hub.py index 36260f2afcb..988e039708a 100644 --- a/napari/plugins/hub.py +++ b/napari/plugins/hub.py @@ -44,6 +44,21 @@ def hub_plugin_info( except error.HTTPError: return None, False + # If the napari hub returns an info dict missing the required k...
buildbot__buildbot-5782
Renderable locks fail with 2.10 Hello, I have a buildbot setup with a bunch of DockerLatentWorkers and I use a renderable lock to avoid launching too much Docker builds on a physical machine. This worked fine with 2.8.3 but stopped working when i updated buildbot to 2.10. The error reported is: ``` 2021-01-18 01...
[ { "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/newsfragments/fix-latent-worker-renderable-locks.bugfix b/master/buildbot/newsfragments/fix-latent-worker-renderable-locks.bugfix new file mode 100644 index 000000000000..097a9d27f946 --- /dev/null +++ b/master/buildbot/newsfragments/fix-latent-worker-renderable-locks.bugfix @@ -0,0 +1 @@ +...
StackStorm__st2-4723
Infinity values in log messages cause issues when parsing JSON ##### SUMMARY When writing out structured log data using the `GelfFormatter`, periodically the field `_content_length` is output with a value of: `"_content_length": Infinity`. This is invalid JSON and causes an error when parsing from external logging t...
[ { "content": "# Copyright 2019 Extreme Networks, 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 ...
[ { "content": "# Copyright 2019 Extreme Networks, 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 ...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b37da70ea5..b255f90db5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,10 +7,15 @@ in development Fixed ~~~~~ +* Fixed logging middleware to output a ``content_length`` of ``0`` instead of ``Infinity`` + when the type of data being returned is not supported. Pr...
Mailu__Mailu-2255
Provide a "slow" transport for Postfix ## Environment & Versions ### Environment - [x] docker-compose - [ ] kubernetes - [ ] docker swarm ### Versions 1.9 ## Description Orange, a mainstream french ISP, and a few others, have a rate limit : without a slow transport, I get deferred messages with this : "T...
[ { "content": "#!/usr/bin/python3\n\nimport os\nimport glob\nimport shutil\nimport multiprocessing\nimport logging as log\nimport sys\n\nfrom podop import run_server\nfrom pwd import getpwnam\nfrom socrate import system, conf\n\nlog.basicConfig(stream=sys.stderr, level=os.environ.get(\"LOG_LEVEL\", \"WARNING\"))...
[ { "content": "#!/usr/bin/python3\n\nimport os\nimport glob\nimport shutil\nimport multiprocessing\nimport logging as log\nimport sys\n\nfrom podop import run_server\nfrom pwd import getpwnam\nfrom socrate import system, conf\n\nlog.basicConfig(stream=sys.stderr, level=os.environ.get(\"LOG_LEVEL\", \"WARNING\"))...
diff --git a/core/postfix/conf/main.cf b/core/postfix/conf/main.cf index 444dacad8..1d66bcc3d 100644 --- a/core/postfix/conf/main.cf +++ b/core/postfix/conf/main.cf @@ -80,7 +80,7 @@ virtual_mailbox_maps = ${podop}mailbox # Mails are transported if required, then forwarded to Dovecot for delivery relay_domains = ${...
apache__airflow-27808
Improve filtering for invalid schemas in Hive hook ### Description #27647 has introduced filtering for invalid schemas in Hive hook based on the characters `;` and `!`. I'm wondering if a more generic filtering could be introduced, e.g. one that adheres to the regex `[^a-z0-9_]`, since Hive schemas (and table names)...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
diff --git a/airflow/providers/apache/hive/hooks/hive.py b/airflow/providers/apache/hive/hooks/hive.py index edd8a4b372c06..430032d8f1447 100644 --- a/airflow/providers/apache/hive/hooks/hive.py +++ b/airflow/providers/apache/hive/hooks/hive.py @@ -204,8 +204,12 @@ def run_cli( """ conn = self.conn ...
carltongibson__django-filter-1434
Release the package with Django 3.2 support Hey, we are working on upgrading edX codebase to Django 3.2. This package is being used in the codebase but it isn't yet released with Django 3.2 support. Kindly consider releasing it with Django 3.2 support. Thanks
[ { "content": "import os\nimport sys\nfrom setuptools import setup, find_packages\n\n# FIXME: Main module requires django to be present, so cannot run setup.py in\n# clean environment.\n# from django_filters import __version__\n__version__ = '2.4.0'\n\nf = open('README.rst')\nreadme = f.read()\nf.close()\n\nif s...
[ { "content": "import os\nimport sys\nfrom setuptools import setup, find_packages\n\n# FIXME: Main module requires django to be present, so cannot run setup.py in\n# clean environment.\n# from django_filters import __version__\n__version__ = '21.1'\n\nf = open('README.rst')\nreadme = f.read()\nf.close()\n\nif sy...
diff --git a/CHANGES.rst b/CHANGES.rst index 4f1c36bf..1bd14eee 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,10 +1,35 @@ -Unreleased ----------- +Version 21.1 (2021-9-24) +------------------------ + +This is a maintenance release updating CI testing for the latest +non-end-of-life versions of Python and Django, and...
meltano__meltano-7752
bug: Cloud project ID of `00000000000000000000000000` is used as real ID ### Meltano Version cloud branch ### Python Version NA ### Bug scope CLI (options, error messages, logging, etc.) ### Operating System N/A ### Description [Context on Slack.](https://meltano.slack.com/archives/C04SHQJB95F/p168610176853545...
[ { "content": "\"\"\"Configuration for Meltano Cloud.\"\"\"\n\nfrom __future__ import annotations\n\nimport json\nimport os\nimport sys\nimport typing as t\nfrom contextlib import suppress\nfrom pathlib import Path\n\nimport jwt\nimport platformdirs\n\nif sys.version_info <= (3, 8):\n from cached_property imp...
[ { "content": "\"\"\"Configuration for Meltano Cloud.\"\"\"\n\nfrom __future__ import annotations\n\nimport json\nimport os\nimport sys\nimport typing as t\nfrom contextlib import suppress\nfrom pathlib import Path\n\nimport jwt\nimport platformdirs\n\nif sys.version_info <= (3, 8):\n from cached_property imp...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6629e9caa0..43111029df 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,7 +36,7 @@ repos: - id: trailing-whitespace exclude: ^src/meltano/core/cli_messages\.py$ - id: end-of-file-fixer - exclude: ...
googleapis__python-bigquery-446
Resource objects such as *JobConfig do not error or warn when setting unknown properties Thanks for stopping by to let us know something could be better! **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing o...
[ { "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/base.py b/google/cloud/bigquery/job/base.py index 3c601f072..930b71e8a 100644 --- a/google/cloud/bigquery/job/base.py +++ b/google/cloud/bigquery/job/base.py @@ -659,6 +659,14 @@ def __init__(self, job_type, **kwargs): for prop, val in kwargs.items(): setattr...
quantopian__zipline-382
Make ta-lib optional `ta-lib` is causing us many installation problems. We should thus make it optional.
[ { "content": "#!/usr/bin/env python\n#\n# Copyright 2013 Quantopian, 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#...
[ { "content": "#!/usr/bin/env python\n#\n# Copyright 2014 Quantopian, 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#...
diff --git a/conda/zipline/meta.yaml b/conda/zipline/meta.yaml index 77303ce4f3..4eda4523c7 100644 --- a/conda/zipline/meta.yaml +++ b/conda/zipline/meta.yaml @@ -19,7 +19,6 @@ requirements: - pandas - scipy - matplotlib - - ta-lib - logbook test: diff --git a/etc/requirements.txt b/etc/requir...
DataDog__dd-trace-py-231
psycopg2 cursor's __enter__ method is not patched to be traced See behavior here: ```python >>> import ddtrace >>> ddtrace.patch_all() >>> import psycopg2 >>> conn = psycopg2.connect('postgresql://localhost') >>> print(type(conn.cursor())) <class 'ddtrace.contrib.dbapi.TracedCursor'> >>> with conn.cursor() as...
[ { "content": "\"\"\"\nGeneric dbapi tracing code.\n\"\"\"\n\n# stdlib\nimport logging\n\n# 3p\nimport wrapt\n\n# project\nfrom ddtrace import Pin\nfrom ddtrace.ext import sql\n\n\nlog = logging.getLogger(__name__)\n\n\nclass TracedCursor(wrapt.ObjectProxy):\n \"\"\" TracedCursor wraps a psql cursor and trace...
[ { "content": "\"\"\"\nGeneric dbapi tracing code.\n\"\"\"\n\n# stdlib\nimport logging\n\n# 3p\nimport wrapt\n\n# project\nfrom ddtrace import Pin\nfrom ddtrace.ext import sql\n\n\nlog = logging.getLogger(__name__)\n\n\nclass TracedCursor(wrapt.ObjectProxy):\n \"\"\" TracedCursor wraps a psql cursor and trace...
diff --git a/ddtrace/contrib/dbapi/__init__.py b/ddtrace/contrib/dbapi/__init__.py index bb7adb2d3a3..6964cc4d856 100644 --- a/ddtrace/contrib/dbapi/__init__.py +++ b/ddtrace/contrib/dbapi/__init__.py @@ -75,6 +75,15 @@ def callproc(self, proc, args): finally: s.set_metric("db.rowcount", s...
rotki__rotki-2260
Staked Cream price appears incorrectly In version 1.13.0 of Rotki the staked Cream price and logo appear incorrectly. The CRM's price and logo show up instead of CREAM's. The previous version of Rotki was showing the price correctly but the logo was still incorrect. I think cryptocompare is used as price oracle f...
[ { "content": "import itertools\nimport logging\nfrom pathlib import Path\nfrom typing import Optional, Set\n\nimport gevent\nimport requests\nfrom typing_extensions import Literal\n\nfrom rotkehlchen.assets.asset import Asset\nfrom rotkehlchen.assets.resolver import AssetResolver, asset_type_mapping\nfrom rotke...
[ { "content": "import itertools\nimport logging\nfrom pathlib import Path\nfrom typing import Optional, Set\n\nimport gevent\nimport requests\nfrom typing_extensions import Literal\n\nfrom rotkehlchen.assets.asset import Asset\nfrom rotkehlchen.assets.resolver import AssetResolver, asset_type_mapping\nfrom rotke...
diff --git a/docs/changelog.rst b/docs/changelog.rst index eb941c903e..9f867085bb 100755 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,6 +4,7 @@ Changelog * :feature:`295` When creating external trades, users will now have the trade rate automatically fetched when such a rate exists. * :feature:`2240` Use...
microsoft__torchgeo-1908
GeoDataset: non-deterministic behavior ### Description The `random_bbox_assignment` dataset splitter (as well as all other spatial index-based splitters I suppose) is not deterministic between different program executions. That is, splitting a dataset multiple times during the same runtime (e.g., by calling `GeoDat...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\n\"\"\"Base classes for all :mod:`torchgeo` datasets.\"\"\"\n\nimport abc\nimport functools\nimport glob\nimport os\nimport re\nimport sys\nimport warnings\nfrom collections.abc import Iterable, Sequen...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\n\"\"\"Base classes for all :mod:`torchgeo` datasets.\"\"\"\n\nimport abc\nimport functools\nimport glob\nimport os\nimport re\nimport sys\nimport warnings\nfrom collections.abc import Iterable, Sequen...
diff --git a/tests/datasets/test_geo.py b/tests/datasets/test_geo.py index 0e1a4ce17e3..8af3333a8c3 100644 --- a/tests/datasets/test_geo.py +++ b/tests/datasets/test_geo.py @@ -177,6 +177,21 @@ def test_files_property_for_virtual_files(self) -> None: ] assert len(CustomGeoDataset(paths=paths).files) =...
mitmproxy__mitmproxy-1880
Crash when opening specific flows ##### Steps to reproduce the problem: 1. Record a flow with `mitmproxy -T --host` from a specific application 2. Open one of the flows (I can mail you an example) 3. Whole program closes with the following error message ##### Any other comments? What have you tried so far? `...
[ { "content": "import re\nfrom typing import Optional\n\nfrom mitmproxy.utils import strutils\nfrom mitmproxy.net.http import encoding\nfrom mitmproxy.types import serializable\nfrom mitmproxy.net.http import headers\n\n\n# While headers _should_ be ASCII, it's not uncommon for certain headers to be utf-8 encode...
[ { "content": "import re\nfrom typing import Optional\n\nfrom mitmproxy.utils import strutils\nfrom mitmproxy.net.http import encoding\nfrom mitmproxy.types import serializable\nfrom mitmproxy.net.http import headers\n\n\n# While headers _should_ be ASCII, it's not uncommon for certain headers to be utf-8 encode...
diff --git a/mitmproxy/net/http/message.py b/mitmproxy/net/http/message.py index d3d6898d39..166f919a4a 100644 --- a/mitmproxy/net/http/message.py +++ b/mitmproxy/net/http/message.py @@ -103,7 +103,11 @@ def get_content(self, strict: bool=True) -> bytes: ce = self.headers.get("content-encoding") if ce...
talonhub__community-1133
`grave` command in dictation mode The use of `grave` as an alternative to `backtick` is more rare (using backticks at all is rare), and some folks have complained about `grave` showing up in speech when they don't want it. I propose removing it from the keys list.
[ { "content": "from talon import Context, Module, actions, app\n\nfrom ..user_settings import get_list_from_csv\n\n\ndef setup_default_alphabet():\n \"\"\"set up common default alphabet.\n\n no need to modify this here, change your alphabet using alphabet.csv\"\"\"\n initial_default_alphabet = \"air bat...
[ { "content": "from talon import Context, Module, actions, app\n\nfrom ..user_settings import get_list_from_csv\n\n\ndef setup_default_alphabet():\n \"\"\"set up common default alphabet.\n\n no need to modify this here, change your alphabet using alphabet.csv\"\"\"\n initial_default_alphabet = \"air bat...
diff --git a/core/keys/keys.py b/core/keys/keys.py index 2ca73b774f..e111447164 100644 --- a/core/keys/keys.py +++ b/core/keys/keys.py @@ -146,7 +146,6 @@ def letters(m) -> str: "`": "`", ",": ",", # <== these things "back tick": "`", - "grave": "`", "comma": ",", # Workaround for issue wit...
streamlink__streamlink-5041
plugins.cdnbg: can't load tv.bnt.bg/bnt3 (Unable to validate response text) ### Checklist - [X] This is a plugin issue and not a different kind of issue - [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink) - [X] [I have checked...
[ { "content": "\"\"\"\n$description Bulgarian CDN hosting live content for various websites in Bulgaria.\n$url armymedia.bg\n$url bgonair.bg\n$url bloombergtv.bg\n$url bnt.bg\n$url live.bstv.bg\n$url i.cdn.bg\n$url nova.bg\n$url mu-vi.tv\n$type live\n$region Bulgaria\n\"\"\"\n\nimport logging\nimport re\nfrom ur...
[ { "content": "\"\"\"\n$description Bulgarian CDN hosting live content for various websites in Bulgaria.\n$url armymedia.bg\n$url bgonair.bg\n$url bloombergtv.bg\n$url bnt.bg\n$url live.bstv.bg\n$url i.cdn.bg\n$url nova.bg\n$url mu-vi.tv\n$type live\n$region Bulgaria\n\"\"\"\n\nimport logging\nimport re\nfrom ur...
diff --git a/src/streamlink/plugins/cdnbg.py b/src/streamlink/plugins/cdnbg.py index c080becebd1..af124216ffc 100644 --- a/src/streamlink/plugins/cdnbg.py +++ b/src/streamlink/plugins/cdnbg.py @@ -85,7 +85,7 @@ def _get_streams(self): schema=validate.Schema( validate.any( ...
sopel-irc__sopel-2522
Deprecation warnings should be printed for dev versions ### Description `sopel.logger.get_logger` is [marked](https://github.com/sopel-irc/sopel/blob/eac71b07d60d3bea68fe3f1242e88654594a7df5/sopel/logger.py#L164) as [deprecated](https://sopel.chat/docs/api.html#sopel.logger.get_logger), but no deprecation warning is...
[ { "content": "\"\"\"Deprecation module for Sopel developers and plugin authors.\n\n.. versionadded:: 8.0\n\n Previously in :mod:`sopel.tools`, the :func:`deprecated` function has been\n moved to this newly created module, as it can be used in every part of the\n Sopel codebase, including :mod:`sopel.to...
[ { "content": "\"\"\"Deprecation module for Sopel developers and plugin authors.\n\n.. versionadded:: 8.0\n\n Previously in :mod:`sopel.tools`, the :func:`deprecated` function has been\n moved to this newly created module, as it can be used in every part of the\n Sopel codebase, including :mod:`sopel.to...
diff --git a/sopel/lifecycle.py b/sopel/lifecycle.py index cbc51ce09..fbd897bad 100644 --- a/sopel/lifecycle.py +++ b/sopel/lifecycle.py @@ -141,8 +141,10 @@ def decorator(func): @functools.wraps(func) def deprecated_func(*args, **kwargs): - if not (warning_in and - parse_version(warni...
redis__redis-py-2112
Support CASESENSITIVE tag in Tag Field link: https://oss.redis.com/redisearch/Commands/#ftcreate
[ { "content": "from typing import List\n\nfrom redis import DataError\n\n\nclass Field:\n\n NUMERIC = \"NUMERIC\"\n TEXT = \"TEXT\"\n WEIGHT = \"WEIGHT\"\n GEO = \"GEO\"\n TAG = \"TAG\"\n VECTOR = \"VECTOR\"\n SORTABLE = \"SORTABLE\"\n NOINDEX = \"NOINDEX\"\n AS = \"AS\"\n\n def __i...
[ { "content": "from typing import List\n\nfrom redis import DataError\n\n\nclass Field:\n\n NUMERIC = \"NUMERIC\"\n TEXT = \"TEXT\"\n WEIGHT = \"WEIGHT\"\n GEO = \"GEO\"\n TAG = \"TAG\"\n VECTOR = \"VECTOR\"\n SORTABLE = \"SORTABLE\"\n NOINDEX = \"NOINDEX\"\n AS = \"AS\"\n\n def __i...
diff --git a/redis/commands/search/field.py b/redis/commands/search/field.py index da6667df88..14328e9d3b 100644 --- a/redis/commands/search/field.py +++ b/redis/commands/search/field.py @@ -105,11 +105,20 @@ class TagField(Field): """ SEPARATOR = "SEPARATOR" + CASESENSITIVE = "CASESENSITIVE" - def ...
facebookresearch__fairseq-121
Off by one / out of bounds in sequence generation [Seeing this with commit 7e86e30cc5b97db30403b738de2dbbb55f06a92b from Feb 12 – apologies if already fixed; I saw no obvious fix in commits since that, and I suspect my model would not load or work on HEAD.] With for example interactive.py, and I think also with gene...
[ { "content": "# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n#\n# This source code is licensed under the license found in the LICENSE file in\n# the root directory of this source tree. An additional grant of patent rights\n# can be found in the PATENTS file in the same directory.\n\nimpor...
[ { "content": "# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n#\n# This source code is licensed under the license found in the LICENSE file in\n# the root directory of this source tree. An additional grant of patent rights\n# can be found in the PATENTS file in the same directory.\n\nimpor...
diff --git a/fairseq/sequence_generator.py b/fairseq/sequence_generator.py index 51810742c4..15d487c5c2 100644 --- a/fairseq/sequence_generator.py +++ b/fairseq/sequence_generator.py @@ -37,6 +37,7 @@ def __init__(self, models, beam_size=1, minlen=1, maxlen=None, self.beam_size = beam_size self.minlen...
ultrabug__py3status-1221
Formatting returns empty when closing with a False or None placeholder Formatting returns empty when closing with a `False` or `None` placeholder. ```diff diff --git a/py3status/modules/static_string.py b/py3status/modules/static_string.py index dbcec8c6..593b3740 100644 --- a/py3status/modules/static_string.py ++...
[ { "content": "# -*- coding: utf-8 -*-\nimport re\nimport sys\n\nfrom math import ceil\nfrom numbers import Number\n\nfrom py3status.composite import Composite\n\ntry:\n from urllib.parse import parse_qsl\nexcept ImportError:\n from urlparse import parse_qsl\n\n\npython2 = sys.version_info < (3, 0)\n\n\ncl...
[ { "content": "# -*- coding: utf-8 -*-\nimport re\nimport sys\n\nfrom math import ceil\nfrom numbers import Number\n\nfrom py3status.composite import Composite\n\ntry:\n from urllib.parse import parse_qsl\nexcept ImportError:\n from urlparse import parse_qsl\n\n\npython2 = sys.version_info < (3, 0)\n\n\ncl...
diff --git a/py3status/formatter.py b/py3status/formatter.py index e265819eb9..db2875dec3 100644 --- a/py3status/formatter.py +++ b/py3status/formatter.py @@ -268,7 +268,9 @@ def get(self, get_params, block): output = u'{%s%s}' % (self.key, self.format) value = value_ = output.format(*...
fedora-infra__bodhi-1147
Work around missing repodata.xml Sometimes the previous run of the Bodhi masher leaves some directories with missing repodata.xml files (See #887). That issue is about stopping that from happening in the future, but it is a bit mysterious and may take some time to identify its cause. In the meantime, we can make Bodhi...
[ { "content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope t...
[ { "content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope t...
diff --git a/bodhi/server/metadata.py b/bodhi/server/metadata.py index 910d56bef1..df7a6f7dbb 100644 --- a/bodhi/server/metadata.py +++ b/bodhi/server/metadata.py @@ -74,7 +74,7 @@ def __init__(self, release, request, db, path): # Load from the cache if it exists self.cached_repodata = os.path.join(se...
e-valuation__EvaP-574
headline css is broken our headlines don't use h1 h2 etc anymore and look completely broken on firefox mobile.
[ { "content": "from django.template import Library\n\nfrom evap.evaluation.models import Semester\n\nregister = Library()\n\n\n@register.inclusion_tag(\"staff_semester_menu.html\")\ndef include_staff_semester_menu():\n return dict(semesters=Semester.objects.all()[:5])\n\n@register.inclusion_tag('staff_course_...
[ { "content": "from django.template import Library\n\nfrom evap.evaluation.models import Semester\n\nregister = Library()\n\n\n@register.inclusion_tag(\"staff_semester_menu.html\")\ndef include_staff_semester_menu():\n return dict(semesters=Semester.objects.all()[:5])\n\n@register.inclusion_tag('staff_user_la...
diff --git a/evap/evaluation/templates/faq.html b/evap/evaluation/templates/faq.html index 3b22cf517a..1658981963 100644 --- a/evap/evaluation/templates/faq.html +++ b/evap/evaluation/templates/faq.html @@ -10,11 +10,11 @@ {% endblock %} {% block content %} - <span class="headline headline-large">{% trans "These...
Parsl__parsl-1654
Allow higher buffer threshold size for serializing objects At the moment, an app which returns a 1x2 numpy array will succeed, but one that returns a 100x2 numpy array will fail, because its size exceeds the default `buffer_threshold` for [serialize_object](https://github.com/Parsl/parsl/blob/master/parsl/executors/hig...
[ { "content": "#!/usr/bin/env python3\n\nimport argparse\nimport logging\nimport os\nimport sys\nimport platform\n# import random\nimport threading\nimport pickle\nimport time\nimport datetime\nimport queue\nimport uuid\nimport zmq\nimport math\nimport json\nimport psutil\nimport multiprocessing\n\nfrom parsl.ve...
[ { "content": "#!/usr/bin/env python3\n\nimport argparse\nimport logging\nimport os\nimport sys\nimport platform\n# import random\nimport threading\nimport pickle\nimport time\nimport datetime\nimport queue\nimport uuid\nimport zmq\nimport math\nimport json\nimport psutil\nimport multiprocessing\n\nfrom parsl.ve...
diff --git a/parsl/executors/high_throughput/process_worker_pool.py b/parsl/executors/high_throughput/process_worker_pool.py index 1a9d0ba88b..a21256f4c0 100755 --- a/parsl/executors/high_throughput/process_worker_pool.py +++ b/parsl/executors/high_throughput/process_worker_pool.py @@ -506,7 +506,7 @@ def worker(worker...
DataBiosphere__toil-3567
pip install toil-cwl-runner should work ┆Issue is synchronized with this [Jira Task](https://ucsc-cgl.atlassian.net/browse/TOIL-879) ┆Issue Number: TOIL-879
[ { "content": "# Copyright (C) 2015-2021 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-...
[ { "content": "# Copyright (C) 2015-2021 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-...
diff --git a/contrib/toil-cwl-runner/README.rst b/contrib/toil-cwl-runner/README.rst new file mode 100644 index 0000000000..7399d4cfae --- /dev/null +++ b/contrib/toil-cwl-runner/README.rst @@ -0,0 +1,2 @@ +This empty package depends on the `toil <https://pypi.org/project/toil/>`_ +package with the `CWL <https://www.co...
googleapis__google-cloud-python-6050
FireStore: Saving items that have both empty object values and SERVER_TIMESTAMP results in missing attributes. When saving data to firestore with an attribute that is an empty `{}`: if the date fields are `firestore.SERVER_TIMESTAMP` then the field with an empty `{}` is not persisted to the db but if the date fi...
[ { "content": "# Copyright 2017 Google LLC All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ...
[ { "content": "# Copyright 2017 Google LLC All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ...
diff --git a/firestore/google/cloud/firestore_v1beta1/_helpers.py b/firestore/google/cloud/firestore_v1beta1/_helpers.py index e2b887ebfe24..4e9f15b0ec25 100644 --- a/firestore/google/cloud/firestore_v1beta1/_helpers.py +++ b/firestore/google/cloud/firestore_v1beta1/_helpers.py @@ -851,6 +851,9 @@ def process_server_ti...
matrix-org__synapse-15672
Synapse v1.84.0 is not happy to start workers that have no or empty `instance_map`s Example error: `Instance 'master' not in 'instance_map' config`
[ { "content": "# Copyright 2016 OpenMarket Ltd\n# Copyright 2021 The Matrix.org Foundation C.I.C.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/...
[ { "content": "# Copyright 2016 OpenMarket Ltd\n# Copyright 2021 The Matrix.org Foundation C.I.C.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/...
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 51cbeb32980c..ce3a57fb01e9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -314,6 +314,7 @@ jobs: # There aren't wheels for some of the older deps, so we need to install # their build dependencies ...
pydantic__pydantic-4191
BaseModel.construct does not set aliased fields consistently with standard instantiation ### Checks * [x] I added a descriptive title to this issue * [x] I have searched (google, github) for similar issues and couldn't find anything * [x] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) an...
[ { "content": "import warnings\nfrom abc import ABCMeta\nfrom copy import deepcopy\nfrom enum import Enum\nfrom functools import partial\nfrom pathlib import Path\nfrom types import FunctionType\nfrom typing import (\n TYPE_CHECKING,\n AbstractSet,\n Any,\n Callable,\n ClassVar,\n Dict,\n Li...
[ { "content": "import warnings\nfrom abc import ABCMeta\nfrom copy import deepcopy\nfrom enum import Enum\nfrom functools import partial\nfrom pathlib import Path\nfrom types import FunctionType\nfrom typing import (\n TYPE_CHECKING,\n AbstractSet,\n Any,\n Callable,\n ClassVar,\n Dict,\n Li...
diff --git a/changes/4192-kylebamos.md b/changes/4192-kylebamos.md new file mode 100644 index 00000000000..daa518d84b9 --- /dev/null +++ b/changes/4192-kylebamos.md @@ -0,0 +1 @@ +Update BaseModel.construct to work with aliased Fields \ No newline at end of file diff --git a/pydantic/main.py b/pydantic/main.py index 9f...
cupy__cupy-6408
cupy.nan_to_num does not accept cupy.nan ### Description After upgrading to `cupy` v10, some calls like `cupy.nan_to_num(cupy.nan)` are failing at [this line](https://github.com/cupy/cupy/pull/5870/files#diff-c8d13a3653ab59bc655bb3f6bf2e749e8a475a2fb06133bf39fcd7f1319585fcR381). `cupy.nan` is a `float` and so does ...
[ { "content": "import cupy\nimport cupyx.scipy.fft\n\nfrom cupy import _core\nfrom cupy._core import _routines_math as _math\nfrom cupy._core import fusion\nfrom cupy.lib import stride_tricks\n\n\n_dot_kernel = _core.ReductionKernel(\n 'T x1, T x2',\n 'T y',\n 'x1 * x2',\n 'a + b',\n 'y = a',\n ...
[ { "content": "import cupy\nimport cupyx.scipy.fft\n\nfrom cupy import _core\nfrom cupy._core import _routines_math as _math\nfrom cupy._core import fusion\nfrom cupy.lib import stride_tricks\n\n\n_dot_kernel = _core.ReductionKernel(\n 'T x1, T x2',\n 'T y',\n 'x1 * x2',\n 'a + b',\n 'y = a',\n ...
diff --git a/cupy/_math/misc.py b/cupy/_math/misc.py index de6d4a558fc..357d74e0abf 100644 --- a/cupy/_math/misc.py +++ b/cupy/_math/misc.py @@ -388,11 +388,14 @@ def nan_to_num(x, copy=True, nan=0.0, posinf=None, neginf=None): .. seealso:: :func:`numpy.nan_to_num` """ - dtype = x.dtype + if not isins...
PennyLaneAI__pennylane-3266
[BUG] Wires are not checked when computing the `expval` of a `Hamiltonian` with `shots=None` ### Expected behavior The attached code should raise the error: ``` pennylane.wires.WireError: Did not find some of the wires (0, 1) on device with wires (0,). ``` ### Actual behavior It runs and returns an incorrec...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unle...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unle...
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index ed87090388f..a195519835d 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -667,6 +667,10 @@ Users can specify the control wires as well as the values to control the operati * Fixed a bug where `qml.BasisEm...
celery__celery-2580
pymongo refuses backend/mongodb.py default settings `self.options.setdefault('max_pool_size', self.max_pool_size)` `self.options.setdefault('auto_start_request', False)` These lines are refusing from `pymongo` and gives `ConfigurationError` exception. By the way pymongo version is 3.0 and for use mongodb as backend i ...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n celery.backends.mongodb\n ~~~~~~~~~~~~~~~~~~~~~~~\n\n MongoDB result store backend.\n\n\"\"\"\nfrom __future__ import absolute_import\n\nfrom datetime import datetime, timedelta\n\ntry:\n import pymongo\nexcept ImportError: # pragma: no cover\n pym...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n celery.backends.mongodb\n ~~~~~~~~~~~~~~~~~~~~~~~\n\n MongoDB result store backend.\n\n\"\"\"\nfrom __future__ import absolute_import\n\nfrom datetime import datetime, timedelta\n\ntry:\n import pymongo\nexcept ImportError: # pragma: no cover\n pym...
diff --git a/celery/backends/mongodb.py b/celery/backends/mongodb.py index 456ae603447..1abb1bbe042 100644 --- a/celery/backends/mongodb.py +++ b/celery/backends/mongodb.py @@ -78,9 +78,14 @@ def __init__(self, app=None, url=None, **kwargs): self.url = url - # default options - self.options.s...
pwr-Solaar__Solaar-1948
Logitech G535 support **Information** - Solaar version: 1.1.8 - Distribution: Ubuntu 22.04 The Logitech G535, a wireless Lightspeed 2,4Ghz headset, and it's usb receiver don't seem to be supported yet. ``` $ lsusb Bus 001 Device 005: ID 046d:0ac4 Logitech, Inc. G535 Wireless Gaming Headset ``` ``` $ sudo...
[ { "content": "import errno as _errno\nimport threading as _threading\n\nfrom logging import INFO as _INFO\nfrom logging import getLogger\nfrom typing import Optional\n\nimport hidapi as _hid\nimport solaar.configuration as _configuration\n\nfrom . import base as _base\nfrom . import descriptors as _descriptors\...
[ { "content": "import errno as _errno\nimport threading as _threading\n\nfrom logging import INFO as _INFO\nfrom logging import getLogger\nfrom typing import Optional\n\nimport hidapi as _hid\nimport solaar.configuration as _configuration\n\nfrom . import base as _base\nfrom . import descriptors as _descriptors\...
diff --git a/docs/devices/G535 Wireless Gaming Headset 0AC4.txt b/docs/devices/G535 Wireless Gaming Headset 0AC4.txt new file mode 100644 index 0000000000..d16b3378c9 --- /dev/null +++ b/docs/devices/G535 Wireless Gaming Headset 0AC4.txt @@ -0,0 +1,29 @@ +solaar version 1.1.8 + +USB and Bluetooth Devices + + 1: G535 ...
googleapis__google-cloud-python-9541
Firestore: add IN and ARRAY_CONTAINS_ANY query operators With an upcoming backend up date Firestore will have support for two new query operators `IN` and `ARRAY_CONTAINS_ANY`. In order for these new operators to be used, they need to be wired up to the high level query system. These new operators allow queries like...
[ { "content": "# Copyright 2017 Google LLC All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ...
[ { "content": "# Copyright 2017 Google LLC All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ...
diff --git a/firestore/google/cloud/firestore_v1/query.py b/firestore/google/cloud/firestore_v1/query.py index 6f4c498c0725..d4e1f7f07324 100644 --- a/firestore/google/cloud/firestore_v1/query.py +++ b/firestore/google/cloud/firestore_v1/query.py @@ -43,6 +43,8 @@ ">=": _operator_enum.GREATER_THAN_OR_EQUAL, "...
mesonbuild__meson-691
shared_library() kwarg vs_module_defs should trigger rebuild When the visual studio module definitions file is edited, the library that uses it should get re-linked.
[ { "content": "# Copyright 2012-2014 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req...
[ { "content": "# Copyright 2012-2014 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req...
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 61dace7c153e..0922dfb2e3c5 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -876,6 +876,8 @@ def process_kwargs(self, kwargs, environment): self.vs_module_defs = File.from_absolute_file(path) else: s...
jupyterhub__zero-to-jupyterhub-k8s-1805
To disable the initContainer running as root to block an insecure IP to expose by default? We currently have `singleuser.cloudMetadata.enabled=false`, which mean we actively disable access to a metadata REST API endpoint on k8s nodes on the cloud that can expose some potentially sensitive stuff. This is an endpoint tha...
[ { "content": "import os\nimport re\nimport sys\n\nfrom binascii import a2b_hex\n\nfrom tornado.httpclient import AsyncHTTPClient\nfrom kubernetes import client\nfrom jupyterhub.utils import url_path_join\n\n# Make sure that modules placed in the same directory as the jupyterhub config are added to the pythonpat...
[ { "content": "import os\nimport re\nimport sys\n\nfrom binascii import a2b_hex\n\nfrom tornado.httpclient import AsyncHTTPClient\nfrom kubernetes import client\nfrom jupyterhub.utils import url_path_join\n\n# Make sure that modules placed in the same directory as the jupyterhub config are added to the pythonpat...
diff --git a/doc/source/administrator/security.md b/doc/source/administrator/security.md index 3c5b81800a..eece9ca511 100644 --- a/doc/source/administrator/security.md +++ b/doc/source/administrator/security.md @@ -166,20 +166,6 @@ Read more about organizing cluster access using kubeconfig files in the [Kubernetes doc...
huggingface__transformers-5082
Perform evaluation on HANS with Trainer (like GLUE example) Current [HANS](https://github.com/huggingface/transformers/tree/master/examples/adversarial) evaluation implementation is carried out in the old way. It'd be good to do it in the same manner as other examples are implemented now with the Trainer class.
[ { "content": "# coding=utf-8\n# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.\n# Copyright (c) 2018, NVIDIA CORPORATION. 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 Li...
[ { "content": "# coding=utf-8\n# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.\n# Copyright (c) 2018, NVIDIA CORPORATION. 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 Li...
diff --git a/examples/adversarial/README.md b/examples/adversarial/README.md index 5d50c84734b9..3e331a05f453 100644 --- a/examples/adversarial/README.md +++ b/examples/adversarial/README.md @@ -11,7 +11,7 @@ export HANS_DIR=path-to-hans export MODEL_TYPE=type-of-the-model-e.g.-bert-roberta-xlnet-etc export MODEL_PAT...
piskvorky__gensim-3174
Gensim 4.0 loading Phraser trained from Gensim 3.x <!-- **IMPORTANT**: - Use the [Gensim mailing list](https://groups.google.com/forum/#!forum/gensim) to ask general or usage questions. Github issues are only for bug reports. - Check [Recipes&FAQ](https://github.com/RaRe-Technologies/gensim/wiki/Recipes-&-FAQ) fir...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright (C) 2011 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nAutomatically detect common phrases -- aka multi-word expressions, word n-gram collocations -- from\na ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright (C) 2011 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nAutomatically detect common phrases -- aka multi-word expressions, word n-gram collocations -- from\na ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 143f669e96..423ce2b389 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Changes * [#3116](https://github.com/RaRe-Technologies/gensim/pull/3116): Fix bug where saved Phrases model did not load its connector_words, by [@aloknayak29](https://github.com/aloknay...
mkdocs__mkdocs-272
Show installed version in command-line I'd expect `mkdocs help` to display the currently installed version, would be nice to have for the next versions
[ { "content": "#!/usr/bin/env python\n# coding: utf-8\nfrom __future__ import print_function\n\nimport sys\n\nfrom mkdocs.build import build\nfrom mkdocs.config import load_config\nfrom mkdocs.exceptions import ConfigurationError\nfrom mkdocs.gh_deploy import gh_deploy\nfrom mkdocs.new import new\nfrom mkdocs.se...
[ { "content": "#!/usr/bin/env python\n# coding: utf-8\nfrom __future__ import print_function\n\nimport sys\n\nfrom mkdocs import __version__\nfrom mkdocs.build import build\nfrom mkdocs.config import load_config\nfrom mkdocs.exceptions import ConfigurationError\nfrom mkdocs.gh_deploy import gh_deploy\nfrom mkdoc...
diff --git a/mkdocs/main.py b/mkdocs/main.py index 1b470c5e1f..857b8ba85a 100755 --- a/mkdocs/main.py +++ b/mkdocs/main.py @@ -4,6 +4,7 @@ import sys +from mkdocs import __version__ from mkdocs.build import build from mkdocs.config import load_config from mkdocs.exceptions import ConfigurationError @@ -44,6 +45...
cisagov__manage.get.gov-1974
Django admin: Analyst can not delete a domain manager from a domain ### Current Behavior Analyst can not remove a domain manager through the domain management page. It results in a 403 error likely as a result of me not being a listed manager on the domain. ### Expected Behavior Analyst can remove a domain manager ...
[ { "content": "\"\"\"Permissions-related mixin classes.\"\"\"\n\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\n\nfrom registrar.models import (\n Domain,\n DomainRequest,\n DomainInvitation,\n DomainInformation,\n UserDomainRole,\n)\nimport logging\n\n\nlogger = logging.getLogger...
[ { "content": "\"\"\"Permissions-related mixin classes.\"\"\"\n\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\n\nfrom registrar.models import (\n Domain,\n DomainRequest,\n DomainInvitation,\n DomainInformation,\n UserDomainRole,\n)\nimport logging\n\n\nlogger = logging.getLogger...
diff --git a/src/registrar/views/utility/mixins.py b/src/registrar/views/utility/mixins.py index aa0c9cd6b..c7083ce48 100644 --- a/src/registrar/views/utility/mixins.py +++ b/src/registrar/views/utility/mixins.py @@ -307,7 +307,12 @@ def has_permission(self): domain=domain_pk, domain__permissi...
paperless-ngx__paperless-ngx-4326
[BUG] Wrong ASN on "+1" Button with multiuser ### Description If another user will add a document and set an ASN on it, the "+1" Button near the ASN fild wont work for the other users, because the numbering is wrong. ![image](https://github.com/paperless-ngx/paperless-ngx/assets/6043382/ef8dec2a-4a67-46f7-8fa4-f5...
[ { "content": "import itertools\nimport json\nimport logging\nimport os\nimport re\nimport tempfile\nimport urllib\nimport zipfile\nfrom datetime import datetime\nfrom pathlib import Path\nfrom time import mktime\nfrom unicodedata import normalize\nfrom urllib.parse import quote\n\nimport pathvalidate\nfrom djan...
[ { "content": "import itertools\nimport json\nimport logging\nimport os\nimport re\nimport tempfile\nimport urllib\nimport zipfile\nfrom datetime import datetime\nfrom pathlib import Path\nfrom time import mktime\nfrom unicodedata import normalize\nfrom urllib.parse import quote\n\nimport pathvalidate\nfrom djan...
diff --git a/src-ui/src/app/components/common/input/number/number.component.spec.ts b/src-ui/src/app/components/common/input/number/number.component.spec.ts index bf1b40d3864..dfe1673db0e 100644 --- a/src-ui/src/app/components/common/input/number/number.component.spec.ts +++ b/src-ui/src/app/components/common/input/num...
ansible-collections__community.general-458
rhsm_repository is really slow ##### SUMMARY Using rhsm_repository is really slow, making it annoying to use a playback that uses it. (copied from https://github.com/ansible/ansible/issues/69722) ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME rhsm_repository ##### ANSIBLE VERSION ``` ansible 2.9.9 ...
[ { "content": "#!/usr/bin/python\n\n# Copyright: (c) 2017, Giovanni Sciortino (@giovannisciortino)\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\nDOCUMENTATION = '''\n---\nm...
[ { "content": "#!/usr/bin/python\n\n# Copyright: (c) 2017, Giovanni Sciortino (@giovannisciortino)\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\nDOCUMENTATION = '''\n---\nm...
diff --git a/changelogs/fragments/458-rshm_repository-reduce_execution_time_when_changed_is_false.yml b/changelogs/fragments/458-rshm_repository-reduce_execution_time_when_changed_is_false.yml new file mode 100644 index 00000000000..3cfd53f5033 --- /dev/null +++ b/changelogs/fragments/458-rshm_repository-reduce_executi...
google__timesketch-2257
Submission of a CSV file with malformed headers creates infinite loop of HTTP requests **Bug Description** The submission of a CSV with missing mandatory headers fals on the server side. However, even if the clients are notified with an error, they will try to retrieve the timeline using the HTTP requests `/api/v1/ske...
[ { "content": "# Copyright 2015 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 2015 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/timesketch/frontend/src/components/Timelines/TimelineListItem.vue b/timesketch/frontend/src/components/Timelines/TimelineListItem.vue index 2d6473f190..de2f63bc89 100644 --- a/timesketch/frontend/src/components/Timelines/TimelineListItem.vue +++ b/timesketch/frontend/src/components/Timelines/TimelineListIt...
spotify__luigi-902
hive table_exists should be case insensitive? Any thoughts on this one? In https://github.com/spotify/luigi/blob/master/luigi/contrib/hive.py#L141 (possibly here too, but we're not on CDH: https://github.com/spotify/luigi/blob/master/luigi/contrib/hive.py#L192) Sometimes we have tables that are defined as capitalized...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2012-2015 Spotify AB\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n#...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2012-2015 Spotify AB\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n#...
diff --git a/luigi/contrib/hive.py b/luigi/contrib/hive.py index 3ccadd2e01..0282392429 100644 --- a/luigi/contrib/hive.py +++ b/luigi/contrib/hive.py @@ -138,7 +138,7 @@ def table_exists(self, table, database='default', partition=None): if partition is None: stdout = run_hive_cmd('use {0}; show t...
encode__django-rest-framework-7513
Passing None for the middleware get_response argument is deprecated. Looking at the travis builds on master in addition to the `url()` deprecation there is also a few failing with this warning. ``` /home/travis/build/encode/django-rest-framework/rest_framework/authentication.py:139: RemovedInDjango40Warning: Pas...
[ { "content": "\"\"\"\nProvides various authentication policies.\n\"\"\"\nimport base64\nimport binascii\n\nfrom django.contrib.auth import authenticate, get_user_model\nfrom django.middleware.csrf import CsrfViewMiddleware\nfrom django.utils.translation import gettext_lazy as _\n\nfrom rest_framework import HTT...
[ { "content": "\"\"\"\nProvides various authentication policies.\n\"\"\"\nimport base64\nimport binascii\n\nfrom django.contrib.auth import authenticate, get_user_model\nfrom django.middleware.csrf import CsrfViewMiddleware\nfrom django.utils.translation import gettext_lazy as _\n\nfrom rest_framework import HTT...
diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py index a2ba53480e..9111007c09 100644 --- a/rest_framework/authentication.py +++ b/rest_framework/authentication.py @@ -136,7 +136,10 @@ def enforce_csrf(self, request): """ Enforce CSRF validation for session based authent...
docker__docker-py-928
[1.7] regression in .dockerignore handling If the `Dockerfile` is being ignored by a path in the `.dockerignore` file, it is incorrectly being removed from the context. There is a special case handling when the file is being excluded directly, but it should also apply when there is a path which includes the `Dockerfile...
[ { "content": "# Copyright 2013 dotCloud inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless requir...
[ { "content": "# Copyright 2013 dotCloud inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless requir...
diff --git a/docker/utils/utils.py b/docker/utils/utils.py index 4404c2173..61e5a8dc9 100644 --- a/docker/utils/utils.py +++ b/docker/utils/utils.py @@ -128,7 +128,13 @@ def exclude_paths(root, patterns, dockerfile=None): paths = get_paths(root, exclude_patterns, include_patterns, has_except...
ivy-llc__ivy-23319
empty_strided
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.torch.func_wrapper import (\n to_ivy_arrays_and_back,\n to_ivy_shape,\n)\nfrom ivy.func_wrapper import with_unsupported_dtypes\nimport ivy.functional.frontends.torch as torch_frontend\n\n\n@to_ivy_arrays_and_back\n@with_unsupported_dtypes({\...
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.torch.func_wrapper import (\n to_ivy_arrays_and_back,\n to_ivy_shape,\n)\nfrom ivy.func_wrapper import with_unsupported_dtypes\n\n\n@to_ivy_arrays_and_back\n@with_unsupported_dtypes({\"2.0.1 and below\": (\"float16\",)}, \"torch\")\ndef aran...
diff --git a/ivy/functional/frontends/torch/creation_ops.py b/ivy/functional/frontends/torch/creation_ops.py index ec2f79b4eb476..6aae8115de43b 100644 --- a/ivy/functional/frontends/torch/creation_ops.py +++ b/ivy/functional/frontends/torch/creation_ops.py @@ -93,6 +93,24 @@ def empty_like( return ret +@to_ivy...
rotki__rotki-3592
Uphold has an issue with "Exchanged amount" vs "Received amount" ## Problem Definition The CSV provides information to determine the fee and gives the received amount (which is the amount after the fee). Rotki expects the exchanged amount, which is the amount before the fee was subtracted. When the fee is entere...
[ { "content": "import csv\nimport functools\nimport logging\nfrom collections import defaultdict\nfrom itertools import count\nfrom pathlib import Path\nfrom typing import Any, Dict, List, Tuple\n\nfrom pysqlcipher3 import dbapi2 as sqlcipher\n\nfrom rotkehlchen.accounting.ledger_actions import LedgerAction, Led...
[ { "content": "import csv\nimport functools\nimport logging\nfrom collections import defaultdict\nfrom itertools import count\nfrom pathlib import Path\nfrom typing import Any, Dict, List, Tuple\n\nfrom pysqlcipher3 import dbapi2 as sqlcipher\n\nfrom rotkehlchen.accounting.ledger_actions import LedgerAction, Led...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 9aca6ff349..1d0041bb9e 100755 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,7 @@ Changelog * :bug:`3578` Adding an external trade on a specific date without specifying time will now be possible. Any backend validation errors on the date field sh...
mne-tools__mne-bids-674
KeyError: 'syst' when calling write_raw_bids #### Describe the bug Hi, I have this error when trying to write the raw fif file to bids format. Could you help me check this? Thanks, Weiyong Xu #### Steps to reproduce import mne from mne_bids import BIDSPath, write_raw_bids raw = mne.io.read_raw_fif('r...
[ { "content": "\"\"\"Utility and helper functions for MNE-BIDS.\"\"\"\n# Authors: Mainak Jas <mainak.jas@telecom-paristech.fr>\n# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>\n# Teon Brooks <teon.brooks@gmail.com>\n# Chris Holdgraf <choldgraf@berkeley.edu>\n# S...
[ { "content": "\"\"\"Utility and helper functions for MNE-BIDS.\"\"\"\n# Authors: Mainak Jas <mainak.jas@telecom-paristech.fr>\n# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>\n# Teon Brooks <teon.brooks@gmail.com>\n# Chris Holdgraf <choldgraf@berkeley.edu>\n# S...
diff --git a/doc/whats_new.rst b/doc/whats_new.rst index f16278be3..e2b57bf7e 100644 --- a/doc/whats_new.rst +++ b/doc/whats_new.rst @@ -46,7 +46,7 @@ Requirements Bug fixes ^^^^^^^^^ -- xxx +- Fix writing MEGIN Triux files, by `Alexandre Gramfort`_ (:gh:`674`) :doc:`Find out what was new in previous releases <w...
weecology__retriever-579
Checking for row over multiple lines creates install error for FrayJorge ``` ethan@stice:~$ retriever install --debug csv FrayJorge => Installing Fray Jorge community database 'list' object is not an iteratornuals.csv: 17900 / 1914258 Traceback (most recent call last): File "/home/ethan/anaconda/bin/retriever", line ...
[ { "content": "from __future__ import print_function\nfrom __future__ import division\nfrom future import standard_library\nstandard_library.install_aliases()\nfrom builtins import object\nfrom builtins import range\nfrom builtins import input\nfrom builtins import zip\nfrom builtins import next\nfrom builtins i...
[ { "content": "from __future__ import print_function\nfrom __future__ import division\nfrom future import standard_library\nstandard_library.install_aliases()\nfrom builtins import object\nfrom builtins import range\nfrom builtins import input\nfrom builtins import zip\nfrom builtins import next\nfrom builtins i...
diff --git a/lib/engine.py b/lib/engine.py index e1559ac13..bff146471 100644 --- a/lib/engine.py +++ b/lib/engine.py @@ -112,7 +112,7 @@ def source_gen(): val_list = self.table.split_on_delimiter(line) while len(val_list) < len(self.table.get_column_datatypes()): l...
google__flax-2717
Add two aliases to activations import Add the JAX standardize alias for normalize as well, see #2088. This is currently blocked since JAX just added these so we should add them once JAX rolls out a new verison.
[ { "content": "# Copyright 2022 The Flax 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 ap...
[ { "content": "# Copyright 2022 The Flax 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 ap...
diff --git a/.gitignore b/.gitignore index 608f2113b..74ac6d855 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ build/ .pytype .vscode/* /.devcontainer +docs/**/tmp \ No newline at end of file diff --git a/docs/api_reference/flax.linen.rst b/docs/api_reference/flax.linen.rst index 169be9178..74bcd7330 100...
quantumlib__Cirq-5478
WaitGate on multiple qubits gets confused about num_qubits when resolved **Description of the issue** `WaitGate.num_qubits()` appears to mutate when going through parameter resolution. **How to reproduce the issue** ```python g = cirq.wait(cirq.LineQubit(1), cirq.LineQubit(2)) cirq.resolve_parameters(g, {'a': ...
[ { "content": "# Copyright 2019 The Cirq Developers\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...
[ { "content": "# Copyright 2019 The Cirq Developers\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...
diff --git a/cirq-core/cirq/ops/wait_gate.py b/cirq-core/cirq/ops/wait_gate.py index c6d5755b40e..d5afe5db6c7 100644 --- a/cirq-core/cirq/ops/wait_gate.py +++ b/cirq-core/cirq/ops/wait_gate.py @@ -78,7 +78,10 @@ def _parameter_names_(self) -> AbstractSet[str]: return protocols.parameter_names(self.duration) ...
boto__boto-1824
Documentation of security_groups argument doesn't mention VPC The documentation for the 'security_groups' parameter for a LaunchConfiguration object could be better. As stated on: http://docs.aws.amazon.com/cli/latest/reference/autoscaling/create-launch-configuration.html "--security-groups (list) The names of the s...
[ { "content": "# Copyright (c) 2009 Reza Lotun http://reza.lotun.name/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to...
[ { "content": "# Copyright (c) 2009 Reza Lotun http://reza.lotun.name/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to...
diff --git a/boto/ec2/autoscale/launchconfig.py b/boto/ec2/autoscale/launchconfig.py index ae391c7c3c..7e31592964 100644 --- a/boto/ec2/autoscale/launchconfig.py +++ b/boto/ec2/autoscale/launchconfig.py @@ -110,8 +110,9 @@ def __init__(self, connection=None, name=None, image_id=None, :param key_name: The name ...
tobymao__sqlglot-3226
Invalid SQL output from optimize function Hello guys, I have been using the optimizer function, and I _think_ I have found a strange behaviour which is causing the optimize function to output an invalid query. Whilst I found this isse on a trickier query, I have tried to create a simple example which illustrates the...
[ { "content": "from __future__ import annotations\n\nimport itertools\nimport logging\nimport typing as t\nfrom collections import defaultdict\nfrom enum import Enum, auto\n\nfrom sqlglot import exp\nfrom sqlglot.errors import OptimizeError\nfrom sqlglot.helper import ensure_collection, find_new_name, seq_get\n\...
[ { "content": "from __future__ import annotations\n\nimport itertools\nimport logging\nimport typing as t\nfrom collections import defaultdict\nfrom enum import Enum, auto\n\nfrom sqlglot import exp\nfrom sqlglot.errors import OptimizeError\nfrom sqlglot.helper import ensure_collection, find_new_name, seq_get\n\...
diff --git a/sqlglot/optimizer/scope.py b/sqlglot/optimizer/scope.py index 3079daa7c6..073ced2844 100644 --- a/sqlglot/optimizer/scope.py +++ b/sqlglot/optimizer/scope.py @@ -800,10 +800,9 @@ def walk_in_scope(expression, bfs=True, prune=None): if ( isinstance(node, exp.CTE) or ( - ...
ibis-project__ibis-1949
More informative IntegrityError on duplicate columns ``` ~/Workspace/ibis/ibis/expr/schema.py in __init__(self, names, types) 32 33 if len(self._name_locs) < len(self.names): ---> 34 raise com.IntegrityError('Duplicate column names') 35 36 def __repr__(self): Integ...
[ { "content": "import collections\n\nfrom multipledispatch import Dispatcher\n\nimport ibis.common.exceptions as com\nimport ibis.expr.datatypes as dt\nimport ibis.util as util\n\n\nclass Schema:\n\n \"\"\"An object for holding table schema information, i.e., column names and\n types.\n\n Parameters\n ...
[ { "content": "import collections\n\nfrom multipledispatch import Dispatcher\n\nimport ibis.common.exceptions as com\nimport ibis.expr.datatypes as dt\nimport ibis.util as util\n\n\nclass Schema:\n\n \"\"\"An object for holding table schema information, i.e., column names and\n types.\n\n Parameters\n ...
diff --git a/ibis/expr/schema.py b/ibis/expr/schema.py index cfcec18d3a8e..929bb7b480e6 100644 --- a/ibis/expr/schema.py +++ b/ibis/expr/schema.py @@ -33,7 +33,11 @@ def __init__(self, names, types): self._name_locs = dict((v, i) for i, v in enumerate(self.names)) if len(self._name_locs) < len(self....
Lightning-AI__torchmetrics-1452
SMAPE formula typo ## 📚 Documentation There's a typo in the [SMAPE formula](https://torchmetrics.readthedocs.io/en/stable/regression/symmetric_mean_absolute_percentage_error.html). It should be `{SMAPE} = \frac{2}{n}\sum_1^n\frac{| y_i - \hat{y_i} |}{\max(| y_i | + | \hat{y_i} |, \epsilon)}` instead of `{SMAPE}...
[ { "content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
[ { "content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
diff --git a/src/torchmetrics/regression/symmetric_mape.py b/src/torchmetrics/regression/symmetric_mape.py index 1f6b54badc8..b23776e759a 100644 --- a/src/torchmetrics/regression/symmetric_mape.py +++ b/src/torchmetrics/regression/symmetric_mape.py @@ -25,7 +25,7 @@ class SymmetricMeanAbsolutePercentageError(Metric): ...
aws-cloudformation__cfn-lint-481
Can't run in Travis CI xenial I was testing the new Travis CI image: https://blog.travis-ci.com/2018-11-08-xenial-release https://docs.travis-ci.com/user/reference/xenial/ My install script ran `pip install --user --upgrade cfn-lint` and then `cfn-lint my.cfn.yaml` which gave this error: ```Traceback (most re...
[ { "content": "\"\"\"\n Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
[ { "content": "\"\"\"\n Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
diff --git a/setup.py b/setup.py index fecc35cb3d..09bcb2592f 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,15 @@ def get_version(filename): ]}, packages=find_packages('src'), zip_safe=False, - install_requires=['pyyaml', 'six', 'requests', 'aws-sam-translator>=1.6.0', 'jsonpatch', 'jsonschema~=2....
aio-libs__aiohttp-8014
FileResponse + enable_compression + .gz will compress twice ### Describe the bug When using `aiohttp.web.FileResponse` to return a file from disk, it is possible to use compression. As I understand from source code - I could not find documentation for FileResponse. There are two possible ways: 1. calling `respons...
[ { "content": "import asyncio\nimport mimetypes\nimport os\nimport pathlib\nfrom typing import (\n IO,\n TYPE_CHECKING,\n Any,\n Awaitable,\n Callable,\n Final,\n Optional,\n Tuple,\n cast,\n)\n\nfrom . import hdrs\nfrom .abc import AbstractStreamWriter\nfrom .helpers import ETAG_ANY, ...
[ { "content": "import asyncio\nimport mimetypes\nimport os\nimport pathlib\nfrom typing import (\n IO,\n TYPE_CHECKING,\n Any,\n Awaitable,\n Callable,\n Final,\n Optional,\n Tuple,\n cast,\n)\n\nfrom . import hdrs\nfrom .abc import AbstractStreamWriter\nfrom .helpers import ETAG_ANY, ...
diff --git a/CHANGES/8014.bugfix b/CHANGES/8014.bugfix new file mode 100644 index 00000000000..681bb5966ae --- /dev/null +++ b/CHANGES/8014.bugfix @@ -0,0 +1 @@ +Fix double compress when compression enabled and compressed file exists diff --git a/aiohttp/web_fileresponse.py b/aiohttp/web_fileresponse.py index f1753db71...
bookwyrm-social__bookwyrm-2113
Registration Confirmation Code emails can take a long time to arrive > I'm not receiving the emailed confirmation code after joining the site. I've resent it a couple of times and have checked my Spam folder, to no avail.
[ { "content": "\"\"\" access the activity streams stored in redis \"\"\"\nfrom datetime import timedelta\nfrom django.dispatch import receiver\nfrom django.db import transaction\nfrom django.db.models import signals, Q\nfrom django.utils import timezone\n\nfrom bookwyrm import models\nfrom bookwyrm.redis_store i...
[ { "content": "\"\"\" access the activity streams stored in redis \"\"\"\nfrom datetime import timedelta\nfrom django.dispatch import receiver\nfrom django.db import transaction\nfrom django.db.models import signals, Q\nfrom django.utils import timezone\n\nfrom bookwyrm import models\nfrom bookwyrm.redis_store i...
diff --git a/bookwyrm/activitystreams.py b/bookwyrm/activitystreams.py index f2dd43fb2e..a90d7943b5 100644 --- a/bookwyrm/activitystreams.py +++ b/bookwyrm/activitystreams.py @@ -298,8 +298,9 @@ def add_status_on_create_command(sender, instance, created): priority = HIGH # check if this is an old status, de-p...
tobymao__sqlglot-1979
Problem with parsing Teradata COLLECT STATISTICS command I have found a problem parsing the COLLECT STATISTICS command in Teradata. All variations of the COLLECT STATISTICS command fail COLLECT STATISTICS ON TABLE1 INDEX(COL1); COLLECT STATS ON TABLE1 COLUMNS(COL1); COLLECT STATS ON TABLE1 COLUMNS(COL1)...
[ { "content": "from __future__ import annotations\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import Dialect, max_or_greatest, min_or_least\nfrom sqlglot.tokens import TokenType\n\n\nclass Teradata(Dialect):\n TIME_MAPPING = {\n \"Y\": \"%Y\",\n ...
[ { "content": "from __future__ import annotations\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import Dialect, max_or_greatest, min_or_least\nfrom sqlglot.tokens import TokenType\n\n\nclass Teradata(Dialect):\n TIME_MAPPING = {\n \"Y\": \"%Y\",\n ...
diff --git a/sqlglot/dialects/teradata.py b/sqlglot/dialects/teradata.py index 4e8ffb4a89..2e0e8f9dfd 100644 --- a/sqlglot/dialects/teradata.py +++ b/sqlglot/dialects/teradata.py @@ -33,8 +33,11 @@ class Tokenizer(tokens.Tokenizer): **tokens.Tokenizer.KEYWORDS, "^=": TokenType.NEQ, ...
encode__httpx-2076
Displaying binary responses in the command line client. Using the command line client to access a binary URL... ```shell $ httpx https://cataas.com/cat HTTP/1.1 200 OK Server: nginx/1.12.2 Date: Thu, 27 Jan 2022 10:41:25 GMT Content-Type: image/jpeg Content-Length: 35300 Connection: keep-alive Access-Control...
[ { "content": "import functools\nimport json\nimport sys\nimport typing\n\nimport click\nimport httpcore\nimport pygments.lexers\nimport pygments.util\nimport rich.console\nimport rich.markup\nimport rich.progress\nimport rich.syntax\nimport rich.table\n\nfrom ._client import Client\nfrom ._exceptions import Req...
[ { "content": "import functools\nimport json\nimport sys\nimport typing\n\nimport click\nimport httpcore\nimport pygments.lexers\nimport pygments.util\nimport rich.console\nimport rich.markup\nimport rich.progress\nimport rich.syntax\nimport rich.table\n\nfrom ._client import Client\nfrom ._exceptions import Req...
diff --git a/httpx/_main.py b/httpx/_main.py index 24ca30ddfc..7bd6b90846 100644 --- a/httpx/_main.py +++ b/httpx/_main.py @@ -172,10 +172,11 @@ def print_response(response: Response) -> None: text = response.text else: text = response.text + syntax = rich.syntax.Syntax(t...
translate__pootle-5029
Own suggestions are not accepted via submission of 100% match translations Own suggestions are not counted when calculating similarity (refs. #3989). This causes the issue: own suggestion is not accepted when a user submits 100% match of the suggestion. 100% match suggestion is not highlighted on the screenshot below:...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\n\"\"\"Form fie...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\n\"\"\"Form fie...
diff --git a/pootle/apps/pootle_store/forms.py b/pootle/apps/pootle_store/forms.py index 99d7eafebd4..77f2482c2e4 100644 --- a/pootle/apps/pootle_store/forms.py +++ b/pootle/apps/pootle_store/forms.py @@ -318,6 +318,11 @@ def clean(self): if self.cleaned_data['suggestion']: old_state = TRA...
freqtrade__freqtrade-2103
KuCoin could not update buy order ## Step 1: Have you search for this issue before posting it? If you have discovered a bug in the bot, please [search our issue tracker](https://github.com/freqtrade/freqtrade/issues?q=is%3Aissue). If it hasn't been reported, please create a new issue. ## Step 2: Describe your e...
[ { "content": "# pragma pylint: disable=W0603\n\"\"\"\nCryptocurrency Exchanges support\n\"\"\"\nimport asyncio\nimport inspect\nimport logging\nfrom copy import deepcopy\nfrom datetime import datetime\nfrom math import ceil, floor\nfrom random import randint\nfrom typing import Any, Dict, List, Optional, Tuple\...
[ { "content": "# pragma pylint: disable=W0603\n\"\"\"\nCryptocurrency Exchanges support\n\"\"\"\nimport asyncio\nimport inspect\nimport logging\nfrom copy import deepcopy\nfrom datetime import datetime\nfrom math import ceil, floor\nfrom random import randint\nfrom typing import Any, Dict, List, Optional, Tuple\...
diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 37bbb778e0f..657f382d850 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -725,7 +725,8 @@ def get_trades_for_order(self, order_id: str, pair: str, since: datetime) -> Lis return [] ...
fossasia__open-event-server-4310
Add email to valid types in custom-form **Current** Currently we are not able to set an email type to the custom-form which leads to `Error: 422`. **Expected** email should be a valid type for the custom-form
[ { "content": "from flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\nfrom marshmallow_jsonapi.flask import Schema, Relationship\nfrom marshmallow_jsonapi import fields\nimport marshmallow.validate as validate\nfrom app.api.helpers.permissions import jwt_required\nfrom flask_rest_json...
[ { "content": "from flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\nfrom marshmallow_jsonapi.flask import Schema, Relationship\nfrom marshmallow_jsonapi import fields\nimport marshmallow.validate as validate\nfrom app.api.helpers.permissions import jwt_required\nfrom flask_rest_json...
diff --git a/app/api/custom_forms.py b/app/api/custom_forms.py index 924b5a1ad7..c813aea44c 100644 --- a/app/api/custom_forms.py +++ b/app/api/custom_forms.py @@ -33,7 +33,7 @@ class Meta: field_identifier = fields.Str(required=True) form = fields.Str(required=True) type = fields.Str(default="text", vali...
fossasia__open-event-server-5266
User order_expiry_time as the parameter to expire orders **Describe the bug** Currently we are expiring orders after 10 minutes. We should change it to order_expiry_time parameter.
[ { "content": "import logging\nfrom datetime import timedelta, datetime, timezone\n\nfrom flask import render_template\n\nfrom app.api.helpers import ticketing\nfrom app.api.helpers.db import save_to_db, safe_query_without_soft_deleted_entries, get_count\nfrom app.api.helpers.exceptions import UnprocessableEntit...
[ { "content": "import logging\nfrom datetime import timedelta, datetime, timezone\n\nfrom flask import render_template\n\nfrom app.api.helpers import ticketing\nfrom app.api.helpers.db import save_to_db, safe_query_without_soft_deleted_entries, get_count\nfrom app.api.helpers.exceptions import UnprocessableEntit...
diff --git a/app/api/helpers/order.py b/app/api/helpers/order.py index 51251377e4..c15c443467 100644 --- a/app/api/helpers/order.py +++ b/app/api/helpers/order.py @@ -38,7 +38,7 @@ def set_expiry_for_order(order, override=False): """ if order and not order.paid_via and (override or (order.status == 'pending' ...
opensearch-project__opensearch-build-537
[BUG] BWC test suite does not run on Jenkins **Describe the bug** BWC test job fails to run Jenkins due to misconfigured directory to kick off tests. ``` Running ./bundle-workflow/src/run_bwc_test.py --s3-bucket <artifact_s3_bucket> --opensearch-version 1.1.0 --build-id 163 --architecture x64 --test-run-id 6 ... ...
[ { "content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport os\n\nfrom aws.s3_bucket import S3Bucket\nfrom manifests.manifest import Manifest\n\n\nclass...
[ { "content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport os\n\nfrom aws.s3_bucket import S3Bucket\nfrom manifests.manifest import Manifest\n\n\nclass...
diff --git a/bundle-workflow/src/manifests/bundle_manifest.py b/bundle-workflow/src/manifests/bundle_manifest.py index 2cfbd1689b..ed5beffff9 100644 --- a/bundle-workflow/src/manifests/bundle_manifest.py +++ b/bundle-workflow/src/manifests/bundle_manifest.py @@ -83,8 +83,7 @@ def from_s3(bucket_name, build_id, opensear...
cloud-custodian__cloud-custodian-3676
c7n-mailer-replay : Python3 - TypeError: write() argument must be str, not bytes Using c7n-mailer-replay under Python3 gives the following trace: ``` Traceback (most recent call last): File "HOME/.pyenv/versions/cloud-custodian-3.6/bin/c7n-mailer-replay", line 11, in <module> load_entry_point('c7n-mailer', 'c...
[ { "content": "\"\"\"\nAllow local testing of mailer and templates by replaying an SQS message.\n\nMAILER_FILE input is a file containing the exact base64-encoded, gzipped\ndata that's enqueued to SQS via :py:meth:`c7n.actions.Notify.send_sqs`.\n\nAlternatively, with -p|--plain specified, the file will be assume...
[ { "content": "\"\"\"\nAllow local testing of mailer and templates by replaying an SQS message.\n\nMAILER_FILE input is a file containing the exact base64-encoded, gzipped\ndata that's enqueued to SQS via :py:meth:`c7n.actions.Notify.send_sqs`.\n\nAlternatively, with -p|--plain specified, the file will be assume...
diff --git a/tools/c7n_mailer/c7n_mailer/replay.py b/tools/c7n_mailer/c7n_mailer/replay.py index b3f5456be73..d8a0f62417c 100644 --- a/tools/c7n_mailer/c7n_mailer/replay.py +++ b/tools/c7n_mailer/c7n_mailer/replay.py @@ -42,7 +42,7 @@ def __init__(self, msg_file, config, msg_plain=False, json_dump_file=None): ...
googleapis__google-cloud-python-331
Document "text" vs. "bytes" values for Entities Docs need to explain clearly how users can ensure that the values they set onto entities get mapped as they expect: "text" values should be mapped to/from 'string_value' entries on the protobufs, and "bytes" values should be mapped to/from 'blob_value' entries. We are t...
[ { "content": "\"\"\"Class for representing a single entity in the Cloud Datastore.\n\nEntities are akin to rows in a relational database,\nstoring the actual instance of data.\n\nEach entity is officially represented with\na :class:`gcloud.datastore.key.Key` class,\nhowever it is possible that you might create\...
[ { "content": "\"\"\"Class for representing a single entity in the Cloud Datastore.\n\nEntities are akin to rows in a relational database,\nstoring the actual instance of data.\n\nEach entity is officially represented with\na :class:`gcloud.datastore.key.Key` class,\nhowever it is possible that you might create\...
diff --git a/gcloud/datastore/entity.py b/gcloud/datastore/entity.py index 0d75a5c9b413..cf325d8b0fba 100644 --- a/gcloud/datastore/entity.py +++ b/gcloud/datastore/entity.py @@ -68,6 +68,16 @@ class Entity(dict): >>> dict(entity) {'age': 20, 'name': 'JJ'} + .. note:: + + When saving an entity to t...
TabbycatDebate__tabbycat-2110
Update BP preset for inclusion of both speeches in team score
[ { "content": "import logging\n\nfrom django.utils.translation import gettext_lazy as _\n\nfrom .preferences import tournament_preferences_registry\n\nlogger = logging.getLogger(__name__)\n\n\ndef _all_subclasses(cls):\n for subclass in cls.__subclasses__():\n yield from _all_subclasses(subclass)\n ...
[ { "content": "import logging\n\nfrom django.utils.translation import gettext_lazy as _\n\nfrom .preferences import tournament_preferences_registry\n\nlogger = logging.getLogger(__name__)\n\n\ndef _all_subclasses(cls):\n for subclass in cls.__subclasses__():\n yield from _all_subclasses(subclass)\n ...
diff --git a/tabbycat/options/presets.py b/tabbycat/options/presets.py index e5c6a0cf2df..fdcf6fef02c 100644 --- a/tabbycat/options/presets.py +++ b/tabbycat/options/presets.py @@ -119,7 +119,7 @@ class BritishParliamentaryPreferences(PreferencesPreset): scoring__score_max = 99.0 scori...
airctic__icevision-539
EfficientDet images_size has to be divisible by 128 ## 📓 Documentation Update **What part of documentation was unclear or wrong?** It has to be clear that the image size for the efficientdet model has to be divisible by 128 **Describe the solution you'd like** Add this information to the `efficientdet/model.py` ...
[ { "content": "__all__ = [\"model\"]\n\nfrom icevision.imports import *\nfrom icevision.utils import *\nfrom effdet import get_efficientdet_config, EfficientDet, DetBenchTrain, unwrap_bench\nfrom effdet import create_model_from_config\nfrom effdet.efficientdet import HeadNet\n\n\ndef model(\n model_name: str,...
[ { "content": "__all__ = [\"model\"]\n\nfrom icevision.imports import *\nfrom icevision.utils import *\nfrom effdet import get_efficientdet_config, EfficientDet, DetBenchTrain, unwrap_bench\nfrom effdet import create_model_from_config\nfrom effdet.efficientdet import HeadNet\n\n\ndef model(\n model_name: str,...
diff --git a/examples/efficientdet_pets_exp.md b/examples/efficientdet_pets_exp.md index 860438f97..ff1e1f766 100644 --- a/examples/efficientdet_pets_exp.md +++ b/examples/efficientdet_pets_exp.md @@ -26,6 +26,7 @@ In this example, we show how to train an EffecientDet model on the PETS dataset # Datasets # Tr...
conda__conda-build-1395
Jinja errors in package name evaluation are masked Jinja errors inside package name expression are overridden / masked by `Error: package/name missing in ...`. See: ``` yaml package: name: {{ some_erroneous_expression }} ``` ``` bash +(root) $ conda build --no-anaconda-upload . 1>/dev/null Error: package/name miss...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport logging\nimport multiprocessing\nimport os\nimport sys\nimport warnings\nfrom collections import defaultdict\nfrom os.path import join, normpath\nimport subprocess\n\n# noqa here because PY3 is used only on windows, and tri...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport logging\nimport multiprocessing\nimport os\nimport sys\nimport warnings\nfrom collections import defaultdict\nfrom os.path import join, normpath\nimport subprocess\n\n# noqa here because PY3 is used only on windows, and tri...
diff --git a/conda_build/environ.py b/conda_build/environ.py index 4e9eab65f8..548ae8b5a5 100644 --- a/conda_build/environ.py +++ b/conda_build/environ.py @@ -335,7 +335,8 @@ def meta_vars(meta, config): elif external.find_executable('hg', config.build_prefix) and os.path.exists(hg_dir): d.update(get_hg_b...
mathesar-foundation__mathesar-3064
Not really possible to override settings ## Description I want to override the mathsar settings in order to allow LDAP login using django-auth-ldap. I changed the `config/settings/production.py` file that mentions: `# Override default settings ` and added the needed configuration. This worked fine h...
[ { "content": "from config.settings.common_settings import * # noqa\n\n# Override default settings\n", "path": "config/settings/development.py" }, { "content": "from config.settings.common_settings import * # noqa\n\n# Override default settings\n", "path": "config/settings/production.py" } ]
[ { "content": "from config.settings.common_settings import * # noqa\n\n# Override default settings\n\n\n# Use a local.py module for settings that shouldn't be version tracked\ntry:\n from .local import * # noqa\nexcept ImportError:\n pass\n", "path": "config/settings/development.py" }, { "conte...
diff --git a/.gitignore b/.gitignore index a1dc4284b9..71c15417fb 100644 --- a/.gitignore +++ b/.gitignore @@ -193,3 +193,6 @@ test-results/ # core dumps generated sometimes when something goes wrong with Playwright core + +# non tracked settings +config/settings/local.py diff --git a/config/settings/development.py...
streamlink__streamlink-191
Error with using --twitch-oauth-authenticate Using that causes a browser to open to http://livestreamer.tanuki.se/en/develop/twitch_oauth.html?error=redirect_mismatch&error_description=Parameter+redirect_uri+does+not+match+registered+URI In the main.py file this link is show http://streamlink.tanuki.se/en/develop/t...
[ { "content": "import errno\nimport os\nimport requests\nimport sys\nimport signal\nimport webbrowser\n\nfrom contextlib import closing\nfrom distutils.version import StrictVersion\nfrom functools import partial\nfrom itertools import chain\nfrom time import sleep\n\nfrom streamlink import (Streamlink, StreamErr...
[ { "content": "import errno\nimport os\nimport requests\nimport sys\nimport signal\nimport webbrowser\n\nfrom contextlib import closing\nfrom distutils.version import StrictVersion\nfrom functools import partial\nfrom itertools import chain\nfrom time import sleep\n\nfrom streamlink import (Streamlink, StreamErr...
diff --git a/src/streamlink_cli/main.py b/src/streamlink_cli/main.py index a6327db78b0..aa4f88fc168 100644 --- a/src/streamlink_cli/main.py +++ b/src/streamlink_cli/main.py @@ -533,7 +533,7 @@ def authenticate_twitch_oauth(): access to their Twitch account.""" client_id = TWITCH_CLIENT_ID - redirect_u...
pyqtgraph__pyqtgraph-956
OSError on exit() Minimal example: (macOS 10.12, python 3.5.4 & 3.6.1, pyqtgraph version 0.10.0) ``` import pyqtgraph as pg pg.exit() ``` > OSError: [Errno 9] Bad file descriptor
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nPyQtGraph - Scientific Graphics and GUI Library for Python\nwww.pyqtgraph.org\n\"\"\"\n\n__version__ = '0.11.0.dev0'\n\n### import all the goodies and add some helper functions for easy CLI use\n\n## 'Qt' is a local module; it is intended mainly to cover up the dif...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nPyQtGraph - Scientific Graphics and GUI Library for Python\nwww.pyqtgraph.org\n\"\"\"\n\n__version__ = '0.11.0.dev0'\n\n### import all the goodies and add some helper functions for easy CLI use\n\n## 'Qt' is a local module; it is intended mainly to cover up the dif...
diff --git a/pyqtgraph/__init__.py b/pyqtgraph/__init__.py index 2db7998530..b1aa98aa25 100644 --- a/pyqtgraph/__init__.py +++ b/pyqtgraph/__init__.py @@ -369,8 +369,12 @@ def exit(): ## close file handles if sys.platform == 'darwin': for fd in range(3, 4096): - if fd not in [7]: # trying...
pallets__click-1273
Choices.get_metavar makes all choices look optional Creating a required parameter with a `Choice` type leads to confusing helpstrings. From https://en.wikipedia.org/wiki/Command-line_interface#Command_description_syntax > Built-in usage help and man pages commonly employ a small syntax to describe the valid comm...
[ { "content": "import os\nimport stat\nfrom datetime import datetime\n\nfrom ._compat import _get_argv_encoding\nfrom ._compat import filename_to_ui\nfrom ._compat import get_filesystem_encoding\nfrom ._compat import get_strerror\nfrom ._compat import open_stream\nfrom .exceptions import BadParameter\nfrom .util...
[ { "content": "import os\nimport stat\nfrom datetime import datetime\n\nfrom ._compat import _get_argv_encoding\nfrom ._compat import filename_to_ui\nfrom ._compat import get_filesystem_encoding\nfrom ._compat import get_strerror\nfrom ._compat import open_stream\nfrom .exceptions import BadParameter\nfrom .util...
diff --git a/CHANGES.rst b/CHANGES.rst index 66895accd..b2ee94586 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -67,6 +67,9 @@ Unreleased - The result object returned by the test runner's ``invoke()`` method has a ``return_value`` attribute with the value returned by the invoked command. :pr:`1312` +- Re...
espnet__espnet-5112
egs2/aishell3/tts1 error occured when extracting x-vector **Describe the bug** hello, Im trying to run egs2/aishell3/tts1 to figure out how this toolkit is working, stage 1 is already done, - [ ] 1. when i run espnet/egs2/aishell3/tts1$ nohup ./run.sh --stage 2 --stop-stage 3 --use_xvector true if I set x...
[ { "content": "#!/usr/bin/env python3\n# 2022, Hitachi LTD.; Nelson Yalta\n# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n\nimport argparse\nimport logging\nimport os\nimport sys\nfrom pathlib import Path\n\nimport kaldiio\nimport librosa\nimport numpy as np\nimport torch\nfrom tqdm.contrib import...
[ { "content": "#!/usr/bin/env python3\n# 2022, Hitachi LTD.; Nelson Yalta\n# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n\nimport argparse\nimport logging\nimport os\nimport sys\nfrom pathlib import Path\n\nimport kaldiio\nimport librosa\nimport numpy as np\nimport torch\nfrom tqdm.contrib import...
diff --git a/egs2/TEMPLATE/asr1/pyscripts/utils/extract_xvectors.py b/egs2/TEMPLATE/asr1/pyscripts/utils/extract_xvectors.py index 827e24ebeeb..847028c9485 100755 --- a/egs2/TEMPLATE/asr1/pyscripts/utils/extract_xvectors.py +++ b/egs2/TEMPLATE/asr1/pyscripts/utils/extract_xvectors.py @@ -142,7 +142,7 @@ def main(argv):...