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 ⌀ |
|---|---|---|---|---|
certbot__certbot-6134 | Reuse ACMEv1 accounts for ACMEv2 production
The lines removed following the discussion at https://github.com/certbot/certbot/pull/5902#discussion_r192532446 need to be added back.
| [
{
"content": "\"\"\"Certbot constants.\"\"\"\nimport logging\nimport os\nimport pkg_resources\n\nfrom acme import challenges\n\n\nSETUPTOOLS_PLUGINS_ENTRY_POINT = \"certbot.plugins\"\n\"\"\"Setuptools entry point group name for plugins.\"\"\"\n\nOLD_SETUPTOOLS_PLUGINS_ENTRY_POINT = \"letsencrypt.plugins\"\n\"\"... | [
{
"content": "\"\"\"Certbot constants.\"\"\"\nimport logging\nimport os\nimport pkg_resources\n\nfrom acme import challenges\n\n\nSETUPTOOLS_PLUGINS_ENTRY_POINT = \"certbot.plugins\"\n\"\"\"Setuptools entry point group name for plugins.\"\"\"\n\nOLD_SETUPTOOLS_PLUGINS_ENTRY_POINT = \"letsencrypt.plugins\"\n\"\"... | diff --git a/certbot/constants.py b/certbot/constants.py
index 93bc269af63..e4ce0147d70 100644
--- a/certbot/constants.py
+++ b/certbot/constants.py
@@ -160,6 +160,7 @@
"""Directory where all accounts are saved."""
LE_REUSE_SERVERS = {
+ 'acme-v02.api.letsencrypt.org/directory': 'acme-v01.api.letsencrypt.org/dir... |
xonsh__xonsh-3623 | Include signature of functions in help (? in Python mode)
In xonsh:
```
$ from pathlib import Path
$ p = Path.cwd()
$ p.mkdir?
Type: method
String form: <bo... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"Tools for inspecting Python objects.\n\nThis file was forked from the IPython project:\n\n* Copyright (c) 2008-2014, IPython Development Team\n* Copyright (C) 2001-2007 Fernando Perez <fperez@colorado.edu>\n* Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>\n* Co... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"Tools for inspecting Python objects.\n\nThis file was forked from the IPython project:\n\n* Copyright (c) 2008-2014, IPython Development Team\n* Copyright (C) 2001-2007 Fernando Perez <fperez@colorado.edu>\n* Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>\n* Co... | diff --git a/news/fix-help-def.rst b/news/fix-help-def.rst
new file mode 100644
index 0000000000..767a18ae7c
--- /dev/null
+++ b/news/fix-help-def.rst
@@ -0,0 +1,23 @@
+**Added:**
+
+* <news item>
+
+**Changed:**
+
+* <news item>
+
+**Deprecated:**
+
+* <news item>
+
+**Removed:**
+
+* <news item>
+
+**Fixed:**
+
+* Fi... |
cloud-custodian__cloud-custodian-1979 | provisioning lambda to vpc appears to be broken still
Hi,
I've tested https://github.com/capitalone/cloud-custodian/pull/1919.
I see the validation now passes, but it looks like the vpc attributes are not being passed when the lambda is created.
Policy:
```
policies:
- name: vpc-test-sandbox
resource: ec... | [
{
"content": "# Copyright 2015-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi... | [
{
"content": "# Copyright 2015-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi... | diff --git a/c7n/mu.py b/c7n/mu.py
index fcff0833ac0..d595b3a4c43 100644
--- a/c7n/mu.py
+++ b/c7n/mu.py
@@ -707,11 +707,11 @@ def timeout(self):
@property
def security_groups(self):
- return None
+ return self.policy.data['mode'].get('security_groups', None)
@property
def subnets(... |
translate__pootle-5179 | Severe performance degradation of sync_stores
Earlier today we updated production translation server (merged 'Raw font' PR branch with master and switched to master). So this release includes recent changes related to optimizations. Immediately after that our sync cycle time increased from typical 18-20 minutes to 1.5 ... | [
{
"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\nimport logging... | [
{
"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\nimport logging... | diff --git a/pootle/apps/pootle_store/syncer.py b/pootle/apps/pootle_store/syncer.py
index 6642c88f9a4..97cb9a449c6 100644
--- a/pootle/apps/pootle_store/syncer.py
+++ b/pootle/apps/pootle_store/syncer.py
@@ -256,7 +256,8 @@ def create_store_file(self, last_revision, user):
def update_newer(self, last_revision):
... |
twisted__twisted-12027 | twisted uses deprecated three-argument form of generator.throw
**Describe the incorrect behavior you saw**
`src/twisted/python/failure.py` does `return g.throw(self.type, self.value, self.tb)`. This is deprecated in Python 3.12: https://github.com/python/cpython/issues/96348 , https://docs.python.org/3.12/whatsnew/3.1... | [
{
"content": "# -*- test-case-name: twisted.test.test_failure -*-\n# See also test suite twisted.test.test_pbfailure\n\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\n\"\"\"\nAsynchronous-friendly error mechanism.\n\nSee L{Failure}.\n\"\"\"\n\n\n# System Imports\nimport builtins\n... | [
{
"content": "# -*- test-case-name: twisted.test.test_failure -*-\n# See also test suite twisted.test.test_pbfailure\n\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\n\"\"\"\nAsynchronous-friendly error mechanism.\n\nSee L{Failure}.\n\"\"\"\n\n\n# System Imports\nimport builtins\n... | diff --git a/src/twisted/newsfragments/12026.bugfix b/src/twisted/newsfragments/12026.bugfix
new file mode 100644
index 00000000000..4f06cf79a4a
--- /dev/null
+++ b/src/twisted/newsfragments/12026.bugfix
@@ -0,0 +1 @@
+twisted.python.failure.Failure now throws exception for generators without triggering a deprecation w... |
googleapis__google-cloud-python-2533 | Pubsub message getting wrong attribute for publishTime
According the [REST docs](https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage), a `PubsubMessage` has the field `publishTime`
In [message.py](https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/pubsub/google/cloud/pubsub/message... | [
{
"content": "# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/pubsub/google/cloud/pubsub/message.py b/pubsub/google/cloud/pubsub/message.py
index 2f810baa5e2e..b20b901639be 100644
--- a/pubsub/google/cloud/pubsub/message.py
+++ b/pubsub/google/cloud/pubsub/message.py
@@ -89,5 +89,5 @@ def from_api_repr(cls, api_repr):
instance = cls(
data=data, ... |
Lightning-Universe__lightning-flash-1486 | The type of `n_gram` is mislabeled as bool, which should be int type.
## 🐛 Bug
In Translation Task:
The type of `n_gram` is mislabeled as bool, which should be int type.
### To Reproduce
<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
```
flash translation f... | [
{
"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/flash/text/seq2seq/translation/model.py b/flash/text/seq2seq/translation/model.py
index 0c421999b4..d6365d3864 100644
--- a/flash/text/seq2seq/translation/model.py
+++ b/flash/text/seq2seq/translation/model.py
@@ -58,7 +58,7 @@ def __init__(
metrics: METRICS_TYPE = None,
learning_rate: Op... |
Pycord-Development__pycord-795 | discord.Permissions.all() create/edit = 401 unauthorized
### Summary
discord.Permissions.all() seems to create something different or more than a manually created fully permissioned Permissions
### Reproduction Steps
My bot gets a 401 unauthorized error when trying to create or edit a role with a `discord.Permission... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r... | diff --git a/discord/permissions.py b/discord/permissions.py
index 72217d609f..c0db3445ec 100644
--- a/discord/permissions.py
+++ b/discord/permissions.py
@@ -148,7 +148,7 @@ def all(cls: Type[P]) -> P:
"""A factory method that creates a :class:`Permissions` with all
permissions set to ``True``.
... |
pallets__werkzeug-2129 | Stronger typing for `request.headers.get` method
Since v2 and the typing stubs, the `get` method of the `Headers` data structure always returns a `Optional[str]`. However in some cases we can know statically that it will return a `str`. Indeed when a default string parameter is given, then the function always return a ... | [
{
"content": "import typing as t\nfrom datetime import datetime\n\nfrom .._internal import _to_str\nfrom ..datastructures import Accept\nfrom ..datastructures import Authorization\nfrom ..datastructures import CharsetAccept\nfrom ..datastructures import ETags\nfrom ..datastructures import Headers\nfrom ..datast... | [
{
"content": "import typing as t\nfrom datetime import datetime\n\nfrom .._internal import _to_str\nfrom ..datastructures import Accept\nfrom ..datastructures import Authorization\nfrom ..datastructures import CharsetAccept\nfrom ..datastructures import ETags\nfrom ..datastructures import Headers\nfrom ..datast... | diff --git a/CHANGES.rst b/CHANGES.rst
index 85ccae878..f8a2d0f93 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -14,6 +14,7 @@ Unreleased
decorated with it report the correct type. :issue:`2113`
- Fix multipart parsing bug when boundary contains special regex
characters. :issue:`2125`
+- Enhance type ann... |
spyder-ide__spyder-3909 | Profiler error when no filename is passed to it
Hello!
* Spyder Version: Git version (4dev)
* Python Version: 3.5
* Operating system: Arch Linux
When I click on Run > Profile , It produces this error:
`Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/spyder_profiler/profiler.py", li... | [
{
"content": "# -*- coding:utf-8 -*-\n#\n# Copyright © Spyder Project Contributors\n# based on p_pylint.py by Pierre Raybaut\n#\n# Licensed under the terms of the MIT License\n# (see spyder/__init__.py for details)\n\n\"\"\"Profiler Plugin.\"\"\"\n\n# Standard library imports\nimport os.path as osp\n\n# Third p... | [
{
"content": "# -*- coding:utf-8 -*-\n#\n# Copyright © Spyder Project Contributors\n# based on p_pylint.py by Pierre Raybaut\n#\n# Licensed under the terms of the MIT License\n# (see spyder/__init__.py for details)\n\n\"\"\"Profiler Plugin.\"\"\"\n\n# Standard library imports\nimport os.path as osp\n\n# Third p... | diff --git a/spyder_profiler/profiler.py b/spyder_profiler/profiler.py
index 9de18dab36c..5736ae9e5f7 100644
--- a/spyder_profiler/profiler.py
+++ b/spyder_profiler/profiler.py
@@ -151,5 +151,5 @@ def analyze(self, filename):
wdir = runconf.wdir
if runconf.args_enabled:
ar... |
kymatio__kymatio-217 | `Scattering3D` crashes for `J != 2`
This was introduced by concatenation along the wrong axis in 36bfb11f29c0e7a3cddfc1eedc23ba84e9c17ea8. Instead of concatenating along axis 1 (that is, the spatial dimension), the concatenation should (of course) be along axis 2 (that is, the filter index/scale dimension).
It was n... | [
{
"content": "# Authors: Louis Thiry, Georgios Exarchakis\n# Scientific Ancestry: Louis Thiry, Georgios Exarchakis, Matthew Hirn, Michael Eickenberg\n\n__all__ = ['Scattering3D']\n\nimport torch\nfrom .utils import compute_integrals, subsample\n \nfrom .backend import cdgmm3d, fft, complex_modulus, to_complex\n... | [
{
"content": "# Authors: Louis Thiry, Georgios Exarchakis\n# Scientific Ancestry: Louis Thiry, Georgios Exarchakis, Matthew Hirn, Michael Eickenberg\n\n__all__ = ['Scattering3D']\n\nimport torch\nfrom .utils import compute_integrals, subsample\n \nfrom .backend import cdgmm3d, fft, complex_modulus, to_complex\n... | diff --git a/kymatio/scattering3d/scattering3d.py b/kymatio/scattering3d/scattering3d.py
index 2a7349b30..1e9f635bf 100644
--- a/kymatio/scattering3d/scattering3d.py
+++ b/kymatio/scattering3d/scattering3d.py
@@ -342,7 +342,7 @@ def forward(self, input_array, order_2=True, rotation_covariant=True,
if order_2:
... |
paperless-ngx__paperless-ngx-6303 | [BUG] At Splitting: Custom field leads to "The following error occurred while storing document 15_2-2.pdf after parsing: CustomField matching query does not exist."
### Description
Document with custom field leads to error message on splittting. No workflow active.
"The following error occurred while storing docume... | [
{
"content": "import dataclasses\nimport datetime\nfrom enum import IntEnum\nfrom pathlib import Path\nfrom typing import Optional\n\nimport magic\nfrom guardian.shortcuts import get_groups_with_perms\nfrom guardian.shortcuts import get_users_with_perms\n\n\n@dataclasses.dataclass\nclass DocumentMetadataOverrid... | [
{
"content": "import dataclasses\nimport datetime\nfrom enum import IntEnum\nfrom pathlib import Path\nfrom typing import Optional\n\nimport magic\nfrom guardian.shortcuts import get_groups_with_perms\nfrom guardian.shortcuts import get_users_with_perms\n\n\n@dataclasses.dataclass\nclass DocumentMetadataOverrid... | diff --git a/src/documents/data_models.py b/src/documents/data_models.py
index 22572709ff3..b99c8511d85 100644
--- a/src/documents/data_models.py
+++ b/src/documents/data_models.py
@@ -116,7 +116,7 @@ def from_document(doc) -> "DocumentMetadataOverrides":
).values_list("id", flat=True),
)
... |
wagtail__wagtail-432 | Bug - Redirect loop
There seems to be a bug of redirection loop when a user (created without any admin/editor roles) attempts to log in. I was trying out the demo and apparently the admin interface does not cater for users without any roles.
It would be nice to know if there is a workaround this issue. Thanks!
| [
{
"content": "from django.conf import settings\nfrom django.shortcuts import render, redirect\nfrom django.contrib import messages\nfrom django.contrib.auth.forms import SetPasswordForm\nfrom django.contrib.auth.decorators import permission_required\nfrom django.contrib.auth.views import logout as auth_logout, ... | [
{
"content": "from django.conf import settings\nfrom django.shortcuts import render, redirect\nfrom django.contrib import messages\nfrom django.contrib.auth.forms import SetPasswordForm\nfrom django.contrib.auth.decorators import permission_required\nfrom django.contrib.auth.views import logout as auth_logout, ... | diff --git a/wagtail/wagtailadmin/tests/test_account_management.py b/wagtail/wagtailadmin/tests/test_account_management.py
index 391baad9d28d..048ef6fbc1e3 100644
--- a/wagtail/wagtailadmin/tests/test_account_management.py
+++ b/wagtail/wagtailadmin/tests/test_account_management.py
@@ -14,16 +14,10 @@ class TestAuthent... |
conda__conda-4651 | Package cache error with conda 4.3.12 on win64
Following error occurs when I try to create a new environment with conda 4.3.12 on win64:
`$ C:\Program Files\Anaconda3\Scripts\conda-script.py create -p C:\hub\temp\venv python=3.5`
Traceback (most recent call last):
File "C:\Program Files\Anaconda3\l... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport bz2\nfrom contextlib import closing\nfrom functools import wraps\nimport hashlib\nimport json\nfrom logging import DEBUG, getLogger\nfrom mmap import ACCESS_READ, mmap\nfrom os imp... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport bz2\nfrom contextlib import closing\nfrom functools import wraps\nimport hashlib\nimport json\nfrom logging import DEBUG, getLogger\nfrom mmap import ACCESS_READ, mmap\nfrom os imp... | diff --git a/conda/core/index.py b/conda/core/index.py
index e29465fbda7..e3bda240772 100644
--- a/conda/core/index.py
+++ b/conda/core/index.py
@@ -591,8 +591,6 @@ def add_http_value_to_dict(resp, http_key, d, dict_key):
def create_cache_dir():
- pkgs_dir = PackageCache.first_writable(context.pkgs_dirs).pkgs_d... |
dotkom__onlineweb4-1920 | PaymentPrice description is not required by manager but required for __str__
## What kind of an issue is this?
- [x] Bug report
## What is the expected behaviour?
That you can create a PaymentPrice by following the guidelines, which are a required price and an optional description.
## What is the current ... | [
{
"content": "# -*- coding: utf-8 -*-\n\nimport uuid\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.fields import GenericForeignKey\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.db import models\nfrom django.utils import timezone\nfrom django.utils.translation i... | [
{
"content": "# -*- coding: utf-8 -*-\n\nimport uuid\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.fields import GenericForeignKey\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.db import models\nfrom django.utils import timezone\nfrom django.utils.translation i... | diff --git a/apps/payment/models.py b/apps/payment/models.py
index f55f8748d..12d57d3bb 100644
--- a/apps/payment/models.py
+++ b/apps/payment/models.py
@@ -175,6 +175,8 @@ class PaymentPrice(models.Model):
description = models.CharField(max_length=128, null=True, blank=True)
def __str__(self):
+ if ... |
googleapis__python-bigquery-1567 | Warning on OpenTelemetry when some attributes are not set
#### Environment details
- OS type and version: Windows 10 21H2
- Python version: `3.9.4`
- pip version: `22.2.2`
- `google-cloud-bigquery` version: `3.3.5`
#### Steps to reproduce
1. Set up a query job with opentelemetry enabled
2. See ... | [
{
"content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | [
{
"content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | diff --git a/google/cloud/bigquery/opentelemetry_tracing.py b/google/cloud/bigquery/opentelemetry_tracing.py
index 3d0a66ba8..0e1187c6b 100644
--- a/google/cloud/bigquery/opentelemetry_tracing.py
+++ b/google/cloud/bigquery/opentelemetry_tracing.py
@@ -97,6 +97,11 @@ def _get_final_span_attributes(attributes=None, clie... |
facebookresearch__hydra-1281 | Release new version of Hydra
# 🚀 Feature Request
I would like you to release Hydra that includes this PR: https://github.com/facebookresearch/hydra/pull/1197
## Motivation
currently I am using python 3.9 and I can't run Hydra due to a bug that is solved in above PR
| [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n\n# Source of truth for Hydra's version\n__version__ = \"1.0.4\"\nfrom hydra import utils\nfrom hydra.errors import MissingConfigException\nfrom hydra.main import main\nfrom hydra.types import TaskFunction\n\n__all__ = [\"__ve... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n\n# Source of truth for Hydra's version\n__version__ = \"1.0.5\"\nfrom hydra import utils\nfrom hydra.errors import MissingConfigException\nfrom hydra.main import main\nfrom hydra.types import TaskFunction\n\n__all__ = [\"__ve... | diff --git a/NEWS.md b/NEWS.md
index fb432038040..a6dcdc8a4f1 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,3 +1,28 @@
+1.0.5 (2021-01-07)
+==================
+
+### Features
+
+- Support Python 3.9 . ([#1062](https://github.com/facebookresearch/hydra/issues/1062))
+
+### API Change (Renames, deprecations and removals)
+
+-... |
sopel-irc__sopel-1605 | db: create table "nicknames" fails with MySQL (VARCHAR requires length)
Testing the new database system. According to some quick google research as well as some looking at from @Exirel , "The `String` type requires a lenght in most DB".
Config:
````
db_type = mysql
db_user = sopeluser
db_pass = sopelpass
db_ho... | [
{
"content": "# coding=utf-8\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport json\nimport os.path\nimport sys\n\nfrom sopel.tools import Identifier\n\nfrom sqlalchemy import create_engine, Column, ForeignKey, Integer, String\nfrom sqlalchemy.engine.url import URL\nf... | [
{
"content": "# coding=utf-8\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport json\nimport os.path\nimport sys\n\nfrom sopel.tools import Identifier\n\nfrom sqlalchemy import create_engine, Column, ForeignKey, Integer, String\nfrom sqlalchemy.engine.url import URL\nf... | diff --git a/sopel/db.py b/sopel/db.py
index 911d700555..6a176a3870 100644
--- a/sopel/db.py
+++ b/sopel/db.py
@@ -50,8 +50,8 @@ class Nicknames(BASE):
"""
__tablename__ = 'nicknames'
nick_id = Column(Integer, ForeignKey('nick_ids.nick_id'), primary_key=True)
- slug = Column(String, primary_key=True)
... |
NVIDIA__NVFlare-1350 | Bug in prostate_2D example
https://github.com/NVIDIA/NVFlare/blob/8f8f029eeecf58a85d9633357ce1ed4f8f39f655/examples/advanced/prostate/prostate_2D/custom/learners/supervised_monai_prostate_learner.py#L171
`self.transform_valid` is not defined if `cache_rate=0`.
| [
{
"content": "# Copyright (c) 2021-2022, 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 License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICEN... | [
{
"content": "# Copyright (c) 2021-2022, 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 License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICEN... | diff --git a/examples/advanced/prostate/prostate_2D/custom/learners/supervised_monai_prostate_learner.py b/examples/advanced/prostate/prostate_2D/custom/learners/supervised_monai_prostate_learner.py
index ec4ed0e95f..ca6db1876d 100644
--- a/examples/advanced/prostate/prostate_2D/custom/learners/supervised_monai_prostat... |
coala__coala-3348 | Wrong doc string syntax in coalib.bearlib.aspects.Root
The doc string of the `Root` aspectclass has a formatting issue at https://github.com/coala/coala/blob/master/coalib/bearlib/aspects/__init__.py#L61
You can see the wrongly rendered result at https://api.coala.io/en/latest/coalib.bearlib.aspects.html#module-coal... | [
{
"content": "from .base import aspectbase\nfrom .meta import aspectclass\nfrom .taste import Taste, TasteError\n\n__all__ = ['Root', 'Taste', 'TasteError', 'aspectclass']\n\n\nclass Root(aspectbase, metaclass=aspectclass):\n \"\"\"\n The root aspectclass.\n\n Define sub-aspectclasses with class-bound ... | [
{
"content": "from .base import aspectbase\nfrom .meta import aspectclass\nfrom .taste import Taste, TasteError\n\n__all__ = ['Root', 'Taste', 'TasteError', 'aspectclass']\n\n\nclass Root(aspectbase, metaclass=aspectclass):\n \"\"\"\n The root aspectclass.\n\n Define sub-aspectclasses with class-bound ... | diff --git a/coalib/bearlib/aspects/__init__.py b/coalib/bearlib/aspects/__init__.py
index 268bb70319..8322b5fb50 100644
--- a/coalib/bearlib/aspects/__init__.py
+++ b/coalib/bearlib/aspects/__init__.py
@@ -58,7 +58,8 @@ class Root(aspectbase, metaclass=aspectclass):
>>> LineLength('Python', max_line_length="100")... |
searx__searx-200 | bing_news can't parse other languages date
When searching for french article, the time is noted as "Il y a 5 minutes", and so, doesn't match for the regex `"^[0-9]+ minute(s|) ago$"`.
Do you see a way to internationalize this detection ?
| [
{
"content": "## Bing (News)\n#\n# @website https://www.bing.com/news\n# @provide-api yes (http://datamarket.azure.com/dataset/bing/search),\n# max. 5000 query/month\n#\n# @using-api no (because of query limit)\n# @results HTML (using search portal)\n# @stable no (HTML can change)\n#... | [
{
"content": "## Bing (News)\n#\n# @website https://www.bing.com/news\n# @provide-api yes (http://datamarket.azure.com/dataset/bing/search),\n# max. 5000 query/month\n#\n# @using-api no (because of query limit)\n# @results HTML (using search portal)\n# @stable no (HTML can change)\n#... | diff --git a/searx/engines/bing_news.py b/searx/engines/bing_news.py
index 3dda04cbbc..789a23b898 100644
--- a/searx/engines/bing_news.py
+++ b/searx/engines/bing_news.py
@@ -39,8 +39,7 @@ def request(query, params):
query=urlencode({'q': query, 'setmkt': language}),
offset=offset)
- params['cook... |
celery__celery-2598 | CELERY_RESULT_SERIALIZER = 'json' breaks Exception marshaling
Setting `CELERY_RESULT_SERIALIZER = json` and raising an exception in the worker leads to this:
```
/path/to/lib/python2.7/site-packages/celery/result.py in get(self, timeout, propagate, interval, no_ack, follow_parents, EXCEPTION_STATES, PROPAGATE_STATES)
... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\n celery.backends.amqp\n ~~~~~~~~~~~~~~~~~~~~\n\n The AMQP result backend.\n\n This backend publishes results as messages.\n\n\"\"\"\nfrom __future__ import absolute_import\n\nimport socket\n\nfrom collections import deque\nfrom operator import itemgette... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\n celery.backends.amqp\n ~~~~~~~~~~~~~~~~~~~~\n\n The AMQP result backend.\n\n This backend publishes results as messages.\n\n\"\"\"\nfrom __future__ import absolute_import\n\nimport socket\n\nfrom collections import deque\nfrom operator import itemgette... | diff --git a/celery/backends/amqp.py b/celery/backends/amqp.py
index 596a4c667c9..4871e06235a 100644
--- a/celery/backends/amqp.py
+++ b/celery/backends/amqp.py
@@ -195,7 +195,7 @@ def drain_events(self, connection, consumer,
def callback(meta, message):
if meta['status'] in states.READY_STATES:... |
conda__conda-build-1593 | Python code compiled when it shouldn't be
Ran into an issue earlier, which was correctly identified thanks to @msarahan . It turns out `conda-build` was compiling Python code even though Python was not in `requirements/build`.
xref: https://github.com/conda-forge/git-feedstock/pull/20#issuecomment-267858227
| [
{
"content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import defaultdict\nfrom functools import partial\nfrom glob import glob\nimport io\nimport locale\nimport mmap\nimport re\nimport os\nimport fnmatch\nfrom os.path import (basename, dirname, join, splitext, isdir,... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import defaultdict\nfrom functools import partial\nfrom glob import glob\nimport io\nimport locale\nimport mmap\nimport re\nimport os\nimport fnmatch\nfrom os.path import (basename, dirname, join, splitext, isdir,... | diff --git a/conda_build/post.py b/conda_build/post.py
index 1c9c67d36b..ef42d9cf1c 100644
--- a/conda_build/post.py
+++ b/conda_build/post.py
@@ -176,6 +176,8 @@ def rm_pyc(files, prefix):
def compile_missing_pyc(files, cwd, python_exe, skip_compile_pyc=()):
+ if not os.path.isfile(python_exe):
+ return... |
nautobot__nautobot-2179 | [1.4] Jobs Result Filter - Error when Search field "Status" is empty
<!--
NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED.
This form is only for reporting reproducible bugs. If you need assistance
with Nautobot installation, or if you have a general question, please start a
di... | [
{
"content": "from django import forms\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import ValidationError\nfrom django.db.models.fields import TextField\nfrom django.forms import ModelMultipleChoiceField, inlineformset_... | [
{
"content": "from django import forms\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import ValidationError\nfrom django.db.models.fields import TextField\nfrom django.forms import ModelMultipleChoiceField, inlineformset_... | diff --git a/nautobot/docs/release-notes/version-1.4.md b/nautobot/docs/release-notes/version-1.4.md
index a46247abb70..4193c7697d0 100644
--- a/nautobot/docs/release-notes/version-1.4.md
+++ b/nautobot/docs/release-notes/version-1.4.md
@@ -145,6 +145,8 @@ The `settings_and_registry` default context processor was chang... |
pallets__werkzeug-1539 | ProfilerMiddleware's default filename_format causes ValueError when ProfilerMiddleware is used with profile_dir
## Environment
```
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.6
BuildVersion: 17G3025
$ python --version
Python 3.7.2
$ pip freeze
Click==7.0
Flask==1.0.2
itsdangerous==1.1.0
Jin... | [
{
"content": "\"\"\"\nApplication Profiler\n====================\n\nThis module provides a middleware that profiles each request with the\n:mod:`cProfile` module. This can help identify bottlenecks in your code\nthat may be slowing down your application.\n\n.. autoclass:: ProfilerMiddleware\n\n:copyright: 2007 ... | [
{
"content": "\"\"\"\nApplication Profiler\n====================\n\nThis module provides a middleware that profiles each request with the\n:mod:`cProfile` module. This can help identify bottlenecks in your code\nthat may be slowing down your application.\n\n.. autoclass:: ProfilerMiddleware\n\n:copyright: 2007 ... | diff --git a/CHANGES.rst b/CHANGES.rst
index 0de7ba992..49c29ffbf 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -7,12 +7,15 @@ Unreleased
- Properly handle multi-line header folding in development server in
Python 2.7. (:issue:`1080`)
-- Restore the ``response`` argument to :exc:`exceptions.Unauthorized`.
+... |
bokeh__bokeh-4826 | Expose the wheel zoom speed in Python
The sensitivity of the wheel zoom cannot be configured on the Python side. However, there is a `speed` property which can be set on the JS side. It would be better to expose this property to the Python side too.
| [
{
"content": "\"\"\" Bokeh comes with a number of interactive tools.\n\nThere are five types of tool interactions:\n\n.. hlist::\n :columns: 5\n\n * Pan/Drag\n * Click/Tap\n * Scroll/Pinch\n * Actions\n * Inspectors\n\nFor the first three comprise the category of gesture tools, and only\none t... | [
{
"content": "\"\"\" Bokeh comes with a number of interactive tools.\n\nThere are five types of tool interactions:\n\n.. hlist::\n :columns: 5\n\n * Pan/Drag\n * Click/Tap\n * Scroll/Pinch\n * Actions\n * Inspectors\n\nFor the first three comprise the category of gesture tools, and only\none t... | diff --git a/bokeh/models/tools.py b/bokeh/models/tools.py
index 856eee41647..e8bbe7d9d16 100644
--- a/bokeh/models/tools.py
+++ b/bokeh/models/tools.py
@@ -197,6 +197,12 @@ class WheelZoomTool(Scroll):
vertically across the height of the plot.
""")
+ speed = Float(default=1/600, help="""
+ Speed at w... |
rotki__rotki-2307 | Force restoring a database after adding api keys doesn't work.
## Problem Definition
This requires an empty account without premium or a fresh account without premium set up during the account creation.
After logging into this account, if you go to the API keys page and insert the premium keys and then try to force... | [
{
"content": "#!/usr/bin/env python\n\nimport argparse\nimport logging.config\nimport os\nimport time\nfrom collections import defaultdict\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Any, DefaultDict, Dict, List, Optional, Tuple, Union, overload\n\nimport gevent\nfrom gevent.lock import Semapho... | [
{
"content": "#!/usr/bin/env python\n\nimport argparse\nimport logging.config\nimport os\nimport time\nfrom collections import defaultdict\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Any, DefaultDict, Dict, List, Optional, Tuple, Union, overload\n\nimport gevent\nfrom gevent.lock import Semapho... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 30706e876f..1c6298db21 100755
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -2,6 +2,7 @@
Changelog
=========
+* :bug:`1928` rotki premium DB sync will now work after entering api keys for the first time even without a restart.
* :bug:`2294` Do not c... |
pymodbus-dev__pymodbus-1340 | Function code 0x15 fails because of incomplete receival of bytes
<!--
Please use the Pymodbus gitter channel at https://gitter.im/pymodbus_dev/Lobby or Stack Overflow(tag [pymodbus](https://stackoverflow.com/questions/tagged/pymodbus) for
support questions.
Before opening a new issue, make sure you do the followin... | [
{
"content": "\"\"\"Modbus client async serial communication.\"\"\"\nimport asyncio\nimport time\nfrom functools import partial\n\nfrom pymodbus.client.base import ModbusBaseClient, ModbusClientProtocol\nfrom pymodbus.client.serial_asyncio import create_serial_connection\nfrom pymodbus.constants import Defaults... | [
{
"content": "\"\"\"Modbus client async serial communication.\"\"\"\nimport asyncio\nimport time\nfrom functools import partial\n\nfrom pymodbus.client.base import ModbusBaseClient, ModbusClientProtocol\nfrom pymodbus.client.serial_asyncio import create_serial_connection\nfrom pymodbus.constants import Defaults... | diff --git a/pymodbus/client/serial.py b/pymodbus/client/serial.py
index 69c800380..4fc102615 100644
--- a/pymodbus/client/serial.py
+++ b/pymodbus/client/serial.py
@@ -336,8 +336,8 @@ def recv(self, size):
)
if size is None:
size = self._wait_for_data()
- elif size > self._in_... |
bookwyrm-social__bookwyrm-1341 | Cannot make other users admin on the website
**Describe the bug**
For the moment, there is no way to promote an user to be an admin. One has to do it in the "./bw-dev shell"
**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'Admin' and then the page of the user you want to promote
2. Promote the user an... | [
{
"content": "\"\"\" manage user \"\"\"\nfrom django.contrib.auth.decorators import login_required, permission_required\nfrom django.core.paginator import Paginator\nfrom django.shortcuts import get_object_or_404\nfrom django.template.response import TemplateResponse\nfrom django.utils.decorators import method_... | [
{
"content": "\"\"\" manage user \"\"\"\nfrom django.contrib.auth.decorators import login_required, permission_required\nfrom django.core.paginator import Paginator\nfrom django.shortcuts import get_object_or_404\nfrom django.template.response import TemplateResponse\nfrom django.utils.decorators import method_... | diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html
index 2b8364ec9f..43ca81c743 100644
--- a/bookwyrm/templates/layout.html
+++ b/bookwyrm/templates/layout.html
@@ -109,17 +109,17 @@
{% trans 'Settings' %}
</a>
... |
nvaccess__nvda-6776 | Manual update check doesn't always respect progress bar output config
gui.IndeterminateProgressDialog.done() doesn't check the configured output method for progress bars.
Also slight ugliness in the hard-coded frequencies and lengths of the beeps. Maybe add functions beepIndeterminate() and beepDone() to the tones mod... | [
{
"content": "# -*- coding: UTF-8 -*-\r\n#gui/__init__.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#Copyright (C) 2006-2015 NV Access Limited, Peter Vágner, Aleksey Sadovoy, Mesar Hameed, Joseph Lee\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\... | [
{
"content": "# -*- coding: UTF-8 -*-\r\n#gui/__init__.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#Copyright (C) 2006-2015 NV Access Limited, Peter Vágner, Aleksey Sadovoy, Mesar Hameed, Joseph Lee\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\... | diff --git a/source/gui/__init__.py b/source/gui/__init__.py
index 941d96250f9..7d547351425 100644
--- a/source/gui/__init__.py
+++ b/source/gui/__init__.py
@@ -829,7 +829,8 @@ def IsActive(self):
def done(self):
self.timer.Stop()
- if self.IsActive():
+ pbConf = config.conf["presentation"]["progressBarUpd... |
huggingface__optimum-334 | Support for GPU optimization of xlm-roberta model type
### System Info
```shell
optimum==1.3.0
python==3.8.13
Ubuntu 18.04
```
### Who can help?
@philschmid
### Information
- [X] The official example scripts
- [x] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (... | [
{
"content": "# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2... | [
{
"content": "# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2... | diff --git a/optimum/onnxruntime/utils.py b/optimum/onnxruntime/utils.py
index 75617c7335..e422571bbc 100644
--- a/optimum/onnxruntime/utils.py
+++ b/optimum/onnxruntime/utils.py
@@ -70,6 +70,7 @@ class ORTConfigManager:
"bart": ("encoder_attention_heads", "d_model", "bart"),
"gpt2": ("n_head", "n_emb... |
SeldonIO__MLServer-1168 | Expected XGBoost model file "model.bst" extension is undocumented?
On https://github.com/SeldonIO/MLServer/blob/master/runtimes/xgboost/mlserver_xgboost/xgboost.py#L21 you can see that MLServer is looking for an XGBoost model file called "model.bst". However, I cannot find any reference to that file extension in the X... | [
{
"content": "import xgboost as xgb\n\nfrom typing import List\nfrom xgboost.sklearn import XGBModel\n\nfrom mlserver.errors import InferenceError\nfrom mlserver.model import MLModel\nfrom mlserver.utils import get_model_uri\nfrom mlserver.codecs import NumpyRequestCodec, NumpyCodec\nfrom mlserver.types import ... | [
{
"content": "import xgboost as xgb\n\nfrom typing import List\nfrom xgboost.sklearn import XGBModel\n\nfrom mlserver.errors import InferenceError\nfrom mlserver.model import MLModel\nfrom mlserver.utils import get_model_uri\nfrom mlserver.codecs import NumpyRequestCodec, NumpyCodec\nfrom mlserver.types import ... | diff --git a/runtimes/xgboost/README.md b/runtimes/xgboost/README.md
index a00630fbd..cff6b104b 100644
--- a/runtimes/xgboost/README.md
+++ b/runtimes/xgboost/README.md
@@ -13,6 +13,37 @@ pip install mlserver mlserver-xgboost
For further information on how to use MLServer with XGBoost, you can check out
this [worked ... |
django-oscar__django-oscar-2346 | oscar.apps.offer.custom dependency on models prevents customization
The module `oscar.apps.offer.custom` imports the `Benefit` and `Condition` models directly instead of via `get_model()`. If either of these models is overridden by a forked version, this module cannot be imported.
The module should be updated to cal... | [
{
"content": "from django.core import exceptions\nfrom django.db import IntegrityError\n\nfrom oscar.apps.offer.models import Benefit, Condition\nfrom oscar.core.loading import get_model\n\nRange = get_model('offer', 'Range')\n\n\ndef _class_path(klass):\n return '%s.%s' % (klass.__module__, klass.__name__)\... | [
{
"content": "from django.core import exceptions\nfrom django.db import IntegrityError\n\nfrom oscar.core.loading import get_model\n\nBenefit = get_model('offer', 'Benefit')\nCondition = get_model('offer', 'Condition')\nRange = get_model('offer', 'Range')\n\n\ndef _class_path(klass):\n return '%s.%s' % (klas... | diff --git a/src/oscar/apps/offer/custom.py b/src/oscar/apps/offer/custom.py
index df16a5ee4ed..e23e3e07982 100644
--- a/src/oscar/apps/offer/custom.py
+++ b/src/oscar/apps/offer/custom.py
@@ -1,9 +1,10 @@
from django.core import exceptions
from django.db import IntegrityError
-from oscar.apps.offer.models import B... |
holoviz__panel-4155 | _tkinter.TclError: invalid command name ".!canvas"
```bash
pip install panel==0.13.1 hvplot==0.8.0 holoviews==1.14.9 matplotlib==3.5.2
```
--------
I'm trying to create a demo app using Panel, hvplot and HoloViews using the matplotlib backend
```python
import pandas as pd
import hvplot.pandas
import panel... | [
{
"content": "\"\"\"\nPane class which render plots from different libraries\n\"\"\"\nfrom __future__ import annotations\n\nimport sys\n\nfrom contextlib import contextmanager\nfrom io import BytesIO\nfrom typing import (\n TYPE_CHECKING, Any, ClassVar, Mapping, Optional,\n)\n\nimport param\n\nfrom bokeh.mod... | [
{
"content": "\"\"\"\nPane class which render plots from different libraries\n\"\"\"\nfrom __future__ import annotations\n\nimport sys\n\nfrom contextlib import contextmanager\nfrom io import BytesIO\nfrom typing import (\n TYPE_CHECKING, Any, ClassVar, Mapping, Optional,\n)\n\nimport param\n\nfrom bokeh.mod... | diff --git a/examples/reference/panes/HoloViews.ipynb b/examples/reference/panes/HoloViews.ipynb
index 18cd9f42d1..7e819f2754 100644
--- a/examples/reference/panes/HoloViews.ipynb
+++ b/examples/reference/panes/HoloViews.ipynb
@@ -208,6 +208,13 @@
"cell_type": "markdown",
"metadata": {},
"source": [
+ "P... |
localstack__localstack-1217 | Docker image 0.8.7: S3 not working as anymore?
We had been using `localstack/localstack:0.8.7` from last few months, but suddenly the tests started failing. I am able to reproduce the issue.
**Docker compose:**
```
localstack:
image: localstack/localstack:0.8.7
ports:
- "8081:8080"
- "80... | [
{
"content": "import os\nimport sys\nimport ssl\nimport socket\nimport inspect\nimport logging\nimport traceback\nimport requests\nfrom flask_cors import CORS\nfrom requests.structures import CaseInsensitiveDict\nfrom requests.models import Response, Request\nfrom six import iteritems\nfrom six.moves.socketserv... | [
{
"content": "import os\nimport sys\nimport ssl\nimport socket\nimport inspect\nimport logging\nimport traceback\nimport requests\nfrom flask_cors import CORS\nfrom requests.structures import CaseInsensitiveDict\nfrom requests.models import Response, Request\nfrom six import iteritems\nfrom six.moves.socketserv... | diff --git a/localstack/services/generic_proxy.py b/localstack/services/generic_proxy.py
index 9b15094a2f77a..cbe9904d1ae0b 100644
--- a/localstack/services/generic_proxy.py
+++ b/localstack/services/generic_proxy.py
@@ -281,7 +281,6 @@ def forward(self, method):
print('ERROR: %s' % error_msg)
... |
google__turbinia-1099 | plaso VSS option incorrect
https://github.com/log2timeline/plaso/blob/9cc50c972b257d6cbbea38fa8b39f0bf027e0960/plaso/cli/storage_media_tool.py#L581
^ option should be --no_vss in below location
https://github.com/google/turbinia/blob/86158a95a0b134978628c1680d0997667ec7c935/turbinia/workers/plaso.py#L43
Please c... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U... | diff --git a/requirements.txt b/requirements.txt
index a05f592c0..46491ba1e 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -20,7 +20,7 @@ psq
pyparsing<3
pyyaml>=5.4.1
pyOpenSSL<=21.0.0
-redis
+redis<4.2
six>=1.15.0
urllib3[secure]
vine>=5.0.0
diff --git a/turbinia/e2e/e2e-local.sh b/turbinia/e2e/e2e-loc... |
interactions-py__interactions.py-174 | Editing SlashMessage should support multiple embeds
Calling `discord_slash.model.SlashMessage.edit` with an `embeds` kwarg does not work. However the official Discord API documentation says that it should be possible [when editing interaction messages](https://discord.com/developers/docs/interactions/slash-commands#edi... | [
{
"content": "import asyncio\nimport discord\nfrom enum import IntEnum\nfrom contextlib import suppress\nfrom inspect import iscoroutinefunction\nfrom . import http\nfrom . import error\n\n\nclass ChoiceData:\n \"\"\"\n Command choice data object\n\n :ivar name: Name of the choice, this is what the use... | [
{
"content": "import asyncio\nimport discord\nfrom enum import IntEnum\nfrom contextlib import suppress\nfrom inspect import iscoroutinefunction\nfrom . import http\nfrom . import error\n\n\nclass ChoiceData:\n \"\"\"\n Command choice data object\n\n :ivar name: Name of the choice, this is what the use... | diff --git a/discord_slash/model.py b/discord_slash/model.py
index 6fe252644..58a3a2cfe 100644
--- a/discord_slash/model.py
+++ b/discord_slash/model.py
@@ -336,7 +336,7 @@ async def _slash_edit(self, **fields):
async def edit(self, **fields):
"""Refer :meth:`discord.Message.edit`."""
- if "file"... |
Pyomo__pyomo-1385 | Error with TransformationFactory('core.relax_integers')
When I use `TransformationFactory('core.relax_integrality').apply_to(m)`, a warning came up.
`WARNING: DEPRECATED: core.relax_integrality is deprecated. Use core.relax_integers (deprecated in TBD)`
When I changed the code to `TransformationFactory('core.re... | [
{
"content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin... | [
{
"content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin... | diff --git a/pyomo/core/plugins/transform/relax_integrality.py b/pyomo/core/plugins/transform/relax_integrality.py
index 43dca23f19b..5e0776182da 100644
--- a/pyomo/core/plugins/transform/relax_integrality.py
+++ b/pyomo/core/plugins/transform/relax_integrality.py
@@ -23,7 +23,7 @@ class RelaxIntegrality(RelaxIntegerVa... |
zigpy__zha-device-handlers-462 | [Device Support Request] Philips Hue Power Cycle Attribute
Hi
It would be great to have the Philips Hue Power Cycle attribute added. This allows for the bulb to remain powered on, off or set to previous settings when powered on.
The vendor attribute is `0x4003` and falls part of the `0x0006` (on_off) cluster. Th... | [
{
"content": "\"\"\"Module for Philips quirks implementations.\"\"\"\nimport logging\n\nfrom zigpy.quirks import CustomCluster\nimport zigpy.types as t\nfrom zigpy.zcl.clusters.general import Basic, OnOff\n\nfrom ..const import (\n ARGS,\n BUTTON,\n COMMAND,\n COMMAND_ID,\n DIM_DOWN,\n DIM_UP,... | [
{
"content": "\"\"\"Module for Philips quirks implementations.\"\"\"\nimport logging\n\nfrom zigpy.quirks import CustomCluster\nimport zigpy.types as t\nfrom zigpy.zcl.clusters.general import Basic, OnOff\n\nfrom ..const import (\n ARGS,\n BUTTON,\n COMMAND,\n COMMAND_ID,\n DIM_DOWN,\n DIM_UP,... | diff --git a/zhaquirks/philips/__init__.py b/zhaquirks/philips/__init__.py
index 0e366f516f..dbe714e50f 100644
--- a/zhaquirks/philips/__init__.py
+++ b/zhaquirks/philips/__init__.py
@@ -57,7 +57,8 @@ class PowerOnState(t.enum8):
class PhilipsOnOffCluster(CustomCluster, OnOff):
"""Philips OnOff cluster."""
- ... |
coala__coala-bears-2837 | PySafetyBear: Add asciinema
Content of file on Bear will perform it's action also have to shown in asciinema.
difficulty/newcomer
| [
{
"content": "import os\nfrom collections import namedtuple\nimport pkg_resources\nimport re\n\nfrom safety import safety\n\nfrom coalib.bears.LocalBear import LocalBear\nfrom dependency_management.requirements.PipRequirement import PipRequirement\nfrom coalib.results.Result import Result\nfrom coalib.settings.... | [
{
"content": "import os\nfrom collections import namedtuple\nimport pkg_resources\nimport re\n\nfrom safety import safety\n\nfrom coalib.bears.LocalBear import LocalBear\nfrom dependency_management.requirements.PipRequirement import PipRequirement\nfrom coalib.results.Result import Result\nfrom coalib.settings.... | diff --git a/bears/python/requirements/PySafetyBear.py b/bears/python/requirements/PySafetyBear.py
index 88bd09c94b..240e7dddf1 100644
--- a/bears/python/requirements/PySafetyBear.py
+++ b/bears/python/requirements/PySafetyBear.py
@@ -64,6 +64,7 @@ class PySafetyBear(LocalBear):
AUTHORS_EMAILS = {'bence@underyx.me... |
WordPress__openverse-api-599 | Some waveform peaks have negative values
## Description
<!-- Concisely describe the bug. -->
The frontend expects peaks to be in range of [0..1], however, some peaks returned from the API can have negative values.
## Reproduction
<!-- Provide detailed steps to reproduce the bug. -->
1. Go to https://api.openvers... | [
{
"content": "import json\nimport logging\nimport math\nimport mimetypes\nimport os\nimport pathlib\nimport shutil\nimport subprocess\nfrom typing import List\n\nimport requests\n\n\nlog = logging.getLogger(__name__)\n\nTMP_DIR = pathlib.Path(\"/tmp\").resolve()\nUA_STRING = \"OpenverseWaveform/0.0 (https://wor... | [
{
"content": "import json\nimport logging\nimport math\nimport mimetypes\nimport os\nimport pathlib\nimport shutil\nimport subprocess\nfrom typing import List\n\nimport requests\n\n\nlog = logging.getLogger(__name__)\n\nTMP_DIR = pathlib.Path(\"/tmp\").resolve()\nUA_STRING = \"OpenverseWaveform/0.0 (https://wor... | diff --git a/api/catalog/api/utils/waveform.py b/api/catalog/api/utils/waveform.py
index 821fd3c99..6a5478e7f 100644
--- a/api/catalog/api/utils/waveform.py
+++ b/api/catalog/api/utils/waveform.py
@@ -106,6 +106,8 @@ def process_waveform_output(json_out):
for idx, val in enumerate(data):
if idx % 2 == 0:
... |
ESMCI__cime-2265 | PR #2260 has caused some cime_developer tests to fail on anlworkstation during phase SETUP
The errors can be reproduced on anlworkstation by running a single cime_developer test:
`./create_test SMS.T42_T42.S --machine=anlworkstation --test-root=****`
Errors were:
```
Traceback (most recent call last):
... | [
{
"content": "\"\"\"\nInterface to the env_mach_specific.xml file. This class inherits from EnvBase\n\"\"\"\nfrom CIME.XML.standard_module_setup import *\n\nfrom CIME.XML.env_base import EnvBase\nfrom CIME.utils import transform_vars, get_cime_root\nimport string, resource\nfrom collections import OrderedDict\... | [
{
"content": "\"\"\"\nInterface to the env_mach_specific.xml file. This class inherits from EnvBase\n\"\"\"\nfrom CIME.XML.standard_module_setup import *\n\nfrom CIME.XML.env_base import EnvBase\nfrom CIME.utils import transform_vars, get_cime_root\nimport string, resource\nfrom collections import OrderedDict\... | diff --git a/scripts/lib/CIME/XML/env_mach_specific.py b/scripts/lib/CIME/XML/env_mach_specific.py
index 990f0322ddf..cb5beec95c9 100644
--- a/scripts/lib/CIME/XML/env_mach_specific.py
+++ b/scripts/lib/CIME/XML/env_mach_specific.py
@@ -291,7 +291,7 @@ def _load_modules_generic(self, modules_to_load):
... |
svthalia__concrexit-3485 | Increase profile retention period
<!-- Please add the appropriate label for what change should be made -->
### What?
Currently, Profiles are dataminimised 1 month after the member's last membership ends.
We should increase that period to 3 months. I have discussed this with @JeeVee11.
### Why?
It happens quite... | [
{
"content": "\"\"\"Services defined in the members package.\"\"\"\nfrom collections.abc import Callable\nfrom datetime import date\nfrom typing import Any\n\nfrom django.conf import settings\nfrom django.db.models import Count, Q\nfrom django.utils import timezone\n\nfrom members import emails\nfrom members.mo... | [
{
"content": "\"\"\"Services defined in the members package.\"\"\"\nfrom collections.abc import Callable\nfrom datetime import date\nfrom typing import Any\n\nfrom django.conf import settings\nfrom django.db.models import Count, Q\nfrom django.utils import timezone\n\nfrom members import emails\nfrom members.mo... | diff --git a/website/members/services.py b/website/members/services.py
index 8896a47b8..fdb2a0f72 100644
--- a/website/members/services.py
+++ b/website/members/services.py
@@ -218,7 +218,7 @@ def execute_data_minimisation(dry_run=False, members=None) -> list[Member]:
.distinct()
.prefetch_related("me... |
certbot__certbot-9070 | Incorrect copyright date range on API Documentation
The copyright line for the [API Documentation](https://acme-python.readthedocs.io/en/stable/api.html) presently reads:
> © Copyright 2015-2015, Let's Encrypt Project Revision 93f61887.
d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present i... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# acme-python documentation build configuration file, created by\n# sphinx-quickstart on Sun Oct 18 13:38:06 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present i... | diff --git a/acme/docs/conf.py b/acme/docs/conf.py
index d419326df92..facb88a0ac7 100644
--- a/acme/docs/conf.py
+++ b/acme/docs/conf.py
@@ -58,7 +58,7 @@
# General information about the project.
project = u'acme-python'
-copyright = u'2015-2015, Let\'s Encrypt Project'
+copyright = u'2015, Let\'s Encrypt Project'
... |
DataDog__dd-trace-py-1563 | Django failure after upgrading
### Which version of dd-trace-py are you using?
0.39.0
### Which version of the libraries are you using?
We use a LOT of dependencies, I've tried to extract out the ones you're going to care here but I can always provide a full list:
```
django==1.8.17
django-18-fast-migrati... | [
{
"content": "import pkg_resources\n\n# Always import and patch import hooks before loading anything else\nfrom .internal.import_hooks import patch as patch_import_hooks\n\npatch_import_hooks() # noqa: E402\n\nfrom .monkey import patch, patch_all # noqa: E402\nfrom .pin import Pin # noqa: E402\nfrom .span im... | [
{
"content": "import pkg_resources\n\nfrom .monkey import patch, patch_all # noqa: E402\nfrom .pin import Pin # noqa: E402\nfrom .span import Span # noqa: E402\nfrom .tracer import Tracer # noqa: E402\nfrom .settings import config # noqa: E402\nfrom .utils.deprecation import deprecated # noqa: E402\n\ntry... | diff --git a/ddtrace/__init__.py b/ddtrace/__init__.py
index 4ac6a3c3758..d9dd3c94d2a 100644
--- a/ddtrace/__init__.py
+++ b/ddtrace/__init__.py
@@ -1,10 +1,5 @@
import pkg_resources
-# Always import and patch import hooks before loading anything else
-from .internal.import_hooks import patch as patch_import_hooks
-... |
docker__docker-py-1671 | Issue with port option in 2.4.0 version
Hi,
I update to the 2.4 today and i got issue with docker-compose when i try to add the following line to my configuration file (docker-compose.yml) :
`ports:
- "127.0.0.1:9292:9090"`
I got the following error:
`
ERROR: for ContainerName expected string or... | [
{
"content": "import re\n\nPORT_SPEC = re.compile(\n \"^\" # Match full string\n \"(\" # External part\n \"((?P<host>[a-fA-F\\d.:]+):)?\" # Address\n \"(?P<ext>[\\d]*)(-(?P<ext_end>[\\d]+))?:\" # External range\n \")?\"\n \"(?P<int>[\\d]+)(-(?P<int_end>[\\d]+))?\" # Internal range\n \"... | [
{
"content": "import re\n\nPORT_SPEC = re.compile(\n \"^\" # Match full string\n \"(\" # External part\n \"((?P<host>[a-fA-F\\d.:]+):)?\" # Address\n \"(?P<ext>[\\d]*)(-(?P<ext_end>[\\d]+))?:\" # External range\n \")?\"\n \"(?P<int>[\\d]+)(-(?P<int_end>[\\d]+))?\" # Internal range\n \"... | diff --git a/docker/utils/ports.py b/docker/utils/ports.py
index 8f713c720..bf7d69727 100644
--- a/docker/utils/ports.py
+++ b/docker/utils/ports.py
@@ -54,6 +54,11 @@ def port_range(start, end, proto, randomly_available_port=False):
def split_port(port):
+ if hasattr(port, 'legacy_repr'):
+ # This is th... |
tensorflow__addons-700 | Lifted Struct Loss Error
**System information**
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Google Colab (Linux)
- TensorFlow version and how it was installed (source or binary): binary 2.0
- TensorFlow-Addons version and how it was installed (source or binary): binary 0.6.0
- Python version: 3
- Is... | [
{
"content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\... | [
{
"content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\... | diff --git a/tensorflow_addons/losses/lifted.py b/tensorflow_addons/losses/lifted.py
index de2fb07de3..ef69f5cab7 100644
--- a/tensorflow_addons/losses/lifted.py
+++ b/tensorflow_addons/losses/lifted.py
@@ -39,7 +39,6 @@ def lifted_struct_loss(labels, embeddings, margin=1.0):
"""
# Reshape [batch_size] label ... |
liqd__a4-meinberlin-1653 | add "gesamtstädtisch" as null-option to projects
| [
{
"content": "from django.contrib import admin\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.projects import models\n\n\nclass ProjectAdmin(admin.ModelAdmin):\n list_display = (\n '__str__', 'organisation', 'is_draft', 'is_archived', 'created'\n )\n list_filter = ('... | [
{
"content": "from django.contrib import admin\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.projects import models\n\n\nclass ProjectAdmin(admin.ModelAdmin):\n list_display = (\n '__str__', 'organisation', 'is_draft', 'is_archived', 'created'\n )\n list_filter = ('... | diff --git a/meinberlin/apps/projects/admin.py b/meinberlin/apps/projects/admin.py
index 28797ae473..8abc1d60c0 100644
--- a/meinberlin/apps/projects/admin.py
+++ b/meinberlin/apps/projects/admin.py
@@ -40,6 +40,11 @@ class ProjectAdmin(admin.ModelAdmin):
}),
)
+ def formfield_for_foreignkey(self, db... |
googleapis__python-bigquery-135 | A new release of rsa dependency breaks Python 2.7 tests
Recent `rsa` releases are not compatible with Python 2.7 anymore, the last compatible version is 4.0. We need to bound its version in order to preserve Python 2.7 compatibility.
> Major changes in 4.1
Version 4.0 was the last version to support Python 2 and 3.... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | diff --git a/setup.py b/setup.py
index 422584d12..ad2bcf68d 100644
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,10 @@
"google-resumable-media >= 0.5.0, < 0.6dev",
"protobuf >= 3.6.0",
"six >=1.13.0,< 2.0.0dev",
+ # rsa >= 4.1 is not compatible with Python 2
+ # https://github.com/sybrenstuvel/python-... |
streamlit__streamlit-2611 | st.expander cuts off sliders
# Summary
Expander in sidebar cuts off sliders and potentially other stuff
# Steps to reproduce
Run the following code
```
import streamlit as st
sidebar_expander = st.sidebar.beta_expander("Bad sliders underneath!")
with sidebar_expander:
st.slider("Bad layout slider 1", ... | [
{
"content": "# Copyright 2018-2020 Streamlit Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | [
{
"content": "# Copyright 2018-2020 Streamlit Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | diff --git a/e2e/scripts/st_expander.py b/e2e/scripts/st_expander.py
index f0752baf2bd4..b36439148699 100644
--- a/e2e/scripts/st_expander.py
+++ b/e2e/scripts/st_expander.py
@@ -19,6 +19,8 @@
expander = st.beta_expander("Collapse me!", expanded=True)
expander.write("I can collapse")
+expander.slider("I don't get c... |
django-extensions__django-extensions-335 | Auto populating UUID field to existing object throws exception
Reproduction Steps:
1. Create model without UUID field
2. Create instance of that model
3. Add automatic UUID field and sync DB
4. Modify existing instance
Error:
TypeError: coercing to Unicode: need string or buffer, UUID found
| [
{
"content": "\"\"\"\nDjango Extensions additional model fields\n\"\"\"\nimport re\nimport six\ntry:\n import uuid\n HAS_UUID = True\nexcept ImportError:\n HAS_UUID = False\n\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.template.defaultfilters import slugify\nfrom django.db.mod... | [
{
"content": "\"\"\"\nDjango Extensions additional model fields\n\"\"\"\nimport re\nimport six\ntry:\n import uuid\n HAS_UUID = True\nexcept ImportError:\n HAS_UUID = False\n\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.template.defaultfilters import slugify\nfrom django.db.mod... | diff --git a/django_extensions/db/fields/__init__.py b/django_extensions/db/fields/__init__.py
index 9cde3d0fd..2553819d5 100644
--- a/django_extensions/db/fields/__init__.py
+++ b/django_extensions/db/fields/__init__.py
@@ -268,7 +268,7 @@ def pre_save(self, model_instance, add):
return value
els... |
buildbot__buildbot-3859 | Authentication problem Buildbot 0.9.14
I created the class below
```
class MyAuth(CustomAuth):
def check_credentials(user, password):
if user == 'snow' and password == 'white':
return True
else:
return False
```
and set it as my auth class.
```
c['www']['auth']=MyA... | [
{
"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/www/auth.py b/master/buildbot/www/auth.py
index 3df7c32ad228..061e09850bf6 100644
--- a/master/buildbot/www/auth.py
+++ b/master/buildbot/www/auth.py
@@ -189,7 +189,7 @@ def __init__(self, users, **kwargs):
@implementer(ICredentialsChecker)
class CustomAuth(TwistedICredAuthBase):
__m... |
wemake-services__wemake-python-styleguide-834 | Bump mypy from 0.720 to 0.730
Bumps [mypy](https://github.com/python/mypy) from 0.720 to 0.730.
<details>
<summary>Commits</summary>
- [`7ad7f8b`](https://github.com/python/mypy/commit/7ad7f8bbe61e5e67aa7fd6f2efe280931dd2f620) Bump version to 0.730
- [`90776b8`](https://github.com/python/mypy/commit/90776b8b49dee8b5c8... | [
{
"content": "# -*- coding: utf-8 -*-\n\nimport ast\n\ntry: # pragma: no cover\n from ast import Constant as Constant # type: ignore # noqa: WPS433, WPS113\nexcept ImportError: # pragma: no cover\n class Constant(ast.AST): # type: ignore # noqa: WPS440\n \"\"\"\n Fallback for pythons th... | [
{
"content": "# -*- coding: utf-8 -*-\n\nimport ast\n\ntry: # pragma: no cover\n from ast import Constant as Constant # noqa: WPS433, WPS113\nexcept ImportError: # pragma: no cover\n class Constant(ast.AST): # type: ignore # noqa: WPS440\n \"\"\"\n Fallback for pythons that do not have ... | diff --git a/poetry.lock b/poetry.lock
index ccd30200d..8c4e98bfc 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -104,7 +104,7 @@ description = "Python package for providing Mozilla's CA Bundle."
name = "certifi"
optional = false
python-versions = "*"
-version = "2019.6.16"
+version = "2019.9.11"
[[package]]
cate... |
pfnet__pytorch-pfn-extras-12 | Failed to rename a file in writing.py
The following error happens.


I fixed it.
 lib had a... | [
{
"content": "#!/usr/bin/env python\n\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\n\nlong_description = (\n \"MkDocs is a fast, simple and downright gorgeous static site generator \"\n \"that's geared towards building project documentation. Documentation \"\n \"source files are wr... | [
{
"content": "#!/usr/bin/env python\n\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\n\nlong_description = (\n \"MkDocs is a fast, simple and downright gorgeous static site generator \"\n \"that's geared towards building project documentation. Documentation \"\n \"source files are wr... | diff --git a/docs/about/release-notes.md b/docs/about/release-notes.md
index 5e7ef6777f..2b81e42552 100644
--- a/docs/about/release-notes.md
+++ b/docs/about/release-notes.md
@@ -23,10 +23,11 @@ The current and past members of the MkDocs team.
## Version 1.1.1 (in development)
-Bugfix: Ensure wheel is Python 3 onl... |
MongoEngine__mongoengine-2431 | Version restriction on pillow
Do we still need to restrict pillow to less then 7.0.0? This looks to have been implemented because of python2 support, which mongoengine dropped with version 0.20.0
https://github.com/MongoEngine/mongoengine/blob/277b827d4dab4630145bc747fdab0df48a045273/setup.py#L118
| [
{
"content": "import os\nimport sys\n\nfrom pkg_resources import normalize_path\nfrom setuptools import find_packages, setup\nfrom setuptools.command.test import test as TestCommand\n\n# Hack to silence atexit traceback in newer python versions\ntry:\n import multiprocessing\nexcept ImportError:\n pass\n\... | [
{
"content": "import os\nimport sys\n\nfrom pkg_resources import normalize_path\nfrom setuptools import find_packages, setup\nfrom setuptools.command.test import test as TestCommand\n\n# Hack to silence atexit traceback in newer python versions\ntry:\n import multiprocessing\nexcept ImportError:\n pass\n\... | diff --git a/setup.py b/setup.py
index 393de9c72..80819b130 100644
--- a/setup.py
+++ b/setup.py
@@ -115,7 +115,7 @@ def run_tests(self):
"pytest-cov",
"coverage<5.0", # recent coverage switched to sqlite format for the .coverage file which isn't handled properly by coveralls
"blinker",
- ... |
pallets__werkzeug-1415 | ProxyFix may trust wrong number of values for X-Forwarded-Prefix
Due to a typo, `werkzeug.contrib.fixers.ProxyFix` gets the number of values to trust for `X-Forwarded-Prefix` from `x_for`, rather than from `x_prefix`.
```diff
diff --git a/werkzeug/contrib/fixers.py b/werkzeug/contrib/fixers.py
index 9a304405..af22... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.contrib.fixers\n ~~~~~~~~~~~~~~~~~~~~~~~\n\n .. versionadded:: 0.5\n\n This module includes various helpers that fix bugs in web servers. They may\n be necessary for some versions of a buggy web server but not others. We try\n to stay ... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.contrib.fixers\n ~~~~~~~~~~~~~~~~~~~~~~~\n\n .. versionadded:: 0.5\n\n This module includes various helpers that fix bugs in web servers. They may\n be necessary for some versions of a buggy web server but not others. We try\n to stay ... | diff --git a/tests/contrib/test_fixers.py b/tests/contrib/test_fixers.py
index 70f0ff306..f722a90d0 100644
--- a/tests/contrib/test_fixers.py
+++ b/tests/contrib/test_fixers.py
@@ -121,7 +121,13 @@ def test_path_info_from_request_uri_fix(self):
'REMOTE_ADDR': '192.168.0.1',
'HTTP_HOST': 'spam'... |
secdev__scapy-2094 | TLS dissection error
Occurred during a sniff on master.
```
Z:\Coding\github\scapy\scapy\layers\tls\cert.py in __call__(cls, cert_path)
574 cert = X509_Cert(obj.der)
575 except Exception:
--> 576 raise Exception("Unable to import certificate")
577 obj.import_f... | [
{
"content": "# This file is part of Scapy\n# Copyright (C) 2017 Maxence Tury\n# This program is published under a GPLv2 license\n\n\"\"\"\nTLS handshake extensions.\n\"\"\"\n\nfrom __future__ import print_function\n\nimport struct\n\nfrom scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, ... | [
{
"content": "# This file is part of Scapy\n# Copyright (C) 2017 Maxence Tury\n# This program is published under a GPLv2 license\n\n\"\"\"\nTLS handshake extensions.\n\"\"\"\n\nfrom __future__ import print_function\n\nimport struct\n\nfrom scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, ... | diff --git a/scapy/layers/tls/extensions.py b/scapy/layers/tls/extensions.py
index ffec02aa1ea..ea56a5e8bd0 100644
--- a/scapy/layers/tls/extensions.py
+++ b/scapy/layers/tls/extensions.py
@@ -684,7 +684,7 @@ def i2m(self, pkt, i):
def m2i(self, pkt, m):
res = []
- while m:
+ while len(m) ... |
pytorch__pytorch-4684 | Update documentation for Embedding layer
The documentation corresponding [torch.nn.Embedding](http://pytorch.org/docs/master/nn.html) mentions that ```Keep in mind that only a limited number of optimizers support sparse gradients: currently it’s optim.SGD (cuda and cpu), and optim.Adagrad (cpu)```. This is outdated and... | [
{
"content": "import torch\nfrom torch.autograd import Variable\nfrom torch.nn.parameter import Parameter\n\nfrom .module import Module\nfrom .. import functional as F\n\n\nclass Embedding(Module):\n r\"\"\"A simple lookup table that stores embeddings of a fixed dictionary and size.\n\n This module is oft... | [
{
"content": "import torch\nfrom torch.autograd import Variable\nfrom torch.nn.parameter import Parameter\n\nfrom .module import Module\nfrom .. import functional as F\n\n\nclass Embedding(Module):\n r\"\"\"A simple lookup table that stores embeddings of a fixed dictionary and size.\n\n This module is oft... | diff --git a/torch/nn/modules/sparse.py b/torch/nn/modules/sparse.py
index 80ee92abb7396..eaaef86452bb1 100644
--- a/torch/nn/modules/sparse.py
+++ b/torch/nn/modules/sparse.py
@@ -34,7 +34,7 @@ class Embedding(Module):
Notes:
Keep in mind that only a limited number of optimizers support
sparse g... |
conan-io__conan-center-index-1534 | [conan.io/center] parallel-hashmap/1.31 merged but not found in conan center
Even though https://github.com/conan-io/conan-center-index/pull/1253 has been merged, `parallel-hashmap/1.31` can't be found in Web UI or with `conan search`
| [
{
"content": "import os\n\nfrom conans import ConanFile, tools\n\nclass ParallelHashmapConan(ConanFile):\n name = \"parallel-hashmap\"\n description = \"A family of header-only, very fast and memory-friendly hashmap and btree containers.\"\n license = \"Apache-2.0\"\n topics = (\"conan\", \"parallel... | [
{
"content": "import os\nfrom conans import ConanFile, tools\n\n\nclass ParallelHashmapConan(ConanFile):\n name = \"parallel-hashmap\"\n description = \"A family of header-only, very fast and memory-friendly hashmap and btree containers.\"\n license = \"Apache-2.0\"\n topics = (\"conan\", \"parallel... | diff --git a/recipes/parallel-hashmap/all/conanfile.py b/recipes/parallel-hashmap/all/conanfile.py
index a14b1fc4e12f0..18d79e65113de 100644
--- a/recipes/parallel-hashmap/all/conanfile.py
+++ b/recipes/parallel-hashmap/all/conanfile.py
@@ -1,7 +1,7 @@
import os
-
from conans import ConanFile, tools
+
class Parall... |
certbot__certbot-2004 | don't add includeSubDomains for Strict-Transport-Security header
Hi,
I think the letsencrypt client shouldn’t add `includeSubDomains` to the Strict-Transport-Security header by default.
If you let the letsencrypt client modify the configuration for a webserver which hosts example.com, this would make it only possible... | [
{
"content": "\"\"\"Apache plugin constants.\"\"\"\nimport pkg_resources\n\n\nCLI_DEFAULTS = dict(\n server_root=\"/etc/apache2\",\n ctl=\"apache2ctl\",\n enmod=\"a2enmod\",\n dismod=\"a2dismod\",\n le_vhost_ext=\"-le-ssl.conf\",\n)\n\"\"\"CLI defaults.\"\"\"\n\nMOD_SSL_CONF_DEST = \"options-ssl-... | [
{
"content": "\"\"\"Apache plugin constants.\"\"\"\nimport pkg_resources\n\n\nCLI_DEFAULTS = dict(\n server_root=\"/etc/apache2\",\n ctl=\"apache2ctl\",\n enmod=\"a2enmod\",\n dismod=\"a2dismod\",\n le_vhost_ext=\"-le-ssl.conf\",\n)\n\"\"\"CLI defaults.\"\"\"\n\nMOD_SSL_CONF_DEST = \"options-ssl-... | diff --git a/letsencrypt-apache/letsencrypt_apache/constants.py b/letsencrypt-apache/letsencrypt_apache/constants.py
index eb004b97558..4944ded1f14 100644
--- a/letsencrypt-apache/letsencrypt_apache/constants.py
+++ b/letsencrypt-apache/letsencrypt_apache/constants.py
@@ -33,7 +33,7 @@
https vhost"""
HSTS_ARGS ... |
Parsl__parsl-414 | File creation fails if no executor has been loaded
```python
In [53]: file = File('first.txt')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-53-b5dc63ca042a> in <module>()
----> 1 file = File('f... | [
{
"content": "import os\nimport logging\nimport requests\nimport ftplib\nimport concurrent.futures as cf\nfrom parsl.data_provider.scheme import GlobusScheme\nfrom parsl.executors.base import ParslExecutor\nfrom parsl.data_provider.globus import get_globus\nfrom parsl.app.app import App\n\nlogger = logging.getL... | [
{
"content": "import os\nimport logging\nimport requests\nimport ftplib\nimport concurrent.futures as cf\nfrom parsl.data_provider.scheme import GlobusScheme\nfrom parsl.executors.base import ParslExecutor\nfrom parsl.data_provider.globus import get_globus\nfrom parsl.app.app import App\n\nlogger = logging.getL... | diff --git a/parsl/data_provider/data_manager.py b/parsl/data_provider/data_manager.py
index eb7a3df793..f64f7abade 100644
--- a/parsl/data_provider/data_manager.py
+++ b/parsl/data_provider/data_manager.py
@@ -36,6 +36,8 @@ def __init__(self, max_threads=10, executors=None):
self._scaling_enabled = False
... |
cisagov__manage.get.gov-1398 | Improper handling of IP address with blank spaces on DNS nameserver form
### Current Behavior
User enters "1.1. 2.2" into the IP address field of a nameserver form in domain management
1. IP address is NOT stripping the blanks
2. "1.1. 2.2" is submitted as the IP address value on form
3. Throws the err... | [
{
"content": "\"\"\"Forms for domain management.\"\"\"\n\nfrom django import forms\nfrom django.core.validators import MinValueValidator, MaxValueValidator, RegexValidator\nfrom django.forms import formset_factory\n\nfrom phonenumber_field.widgets import RegionalPhoneNumberWidget\nfrom registrar.utility.errors ... | [
{
"content": "\"\"\"Forms for domain management.\"\"\"\n\nfrom django import forms\nfrom django.core.validators import MinValueValidator, MaxValueValidator, RegexValidator\nfrom django.forms import formset_factory\n\nfrom phonenumber_field.widgets import RegionalPhoneNumberWidget\nfrom registrar.utility.errors ... | diff --git a/src/registrar/forms/domain.py b/src/registrar/forms/domain.py
index ae83650cb..9c09467cd 100644
--- a/src/registrar/forms/domain.py
+++ b/src/registrar/forms/domain.py
@@ -67,6 +67,7 @@ def clean(self):
ip = cleaned_data.get("ip", None)
# remove ANY spaces in the ip field
ip = ip... |
pytorch__ignite-2717 | mypy issue on master
```bash
Run bash ./tests/run_code_style.sh mypy
+ '[' mypy = lint ']'
+ '[' mypy = fmt ']'
+ '[' mypy = mypy ']'
+ mypy --config-file mypy.ini
ignite/distributed/comp_models/native.py:125: error: Argument 3 to
"init_process_group" has incompatible type "**Dict[str, int]"; expected
"timedelt... | [
{
"content": "import os\nimport re\nimport subprocess\nimport warnings\nfrom typing import Any, Callable, cast, Dict, List, Mapping, Optional, Tuple, Union\n\nimport torch\nimport torch.distributed as dist\nimport torch.multiprocessing as mp\nfrom packaging.version import Version\n\nfrom ignite.distributed.comp... | [
{
"content": "import os\nimport re\nimport subprocess\nimport warnings\nfrom typing import Any, Callable, cast, Dict, List, Mapping, Optional, Tuple, Union\n\nimport torch\nimport torch.distributed as dist\nimport torch.multiprocessing as mp\nfrom packaging.version import Version\n\nfrom ignite.distributed.comp... | diff --git a/ignite/distributed/comp_models/native.py b/ignite/distributed/comp_models/native.py
index 56508806f309..2587c4a8a5d9 100644
--- a/ignite/distributed/comp_models/native.py
+++ b/ignite/distributed/comp_models/native.py
@@ -110,7 +110,7 @@ def _create_from_backend(
self._backend = backend
... |
pennersr__django-allauth-3242 | empty user.email for keycloak
I found a bug introduced by #3165 regarding the `user.email` field with the `keycloak` provider (possibly other OIDC providers too).
After a successful login, the `user.email` attribute is empty but was filled in with django-allauth 0.51.0.
I think the problem is in [extract_common_... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom allauth.account.models import EmailAddress\nfrom allauth.socialaccount import app_settings\nfrom allauth.socialaccount.providers.base import ProviderAccount\nfrom allauth.socialaccount.providers.oauth2.provider import OAuth2Provider\n\n\nclass OpenIDConnectProviderAcc... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom allauth.account.models import EmailAddress\nfrom allauth.socialaccount import app_settings\nfrom allauth.socialaccount.providers.base import ProviderAccount\nfrom allauth.socialaccount.providers.oauth2.provider import OAuth2Provider\n\n\nclass OpenIDConnectProviderAcc... | diff --git a/allauth/socialaccount/providers/openid_connect/provider.py b/allauth/socialaccount/providers/openid_connect/provider.py
index 6ab482065a..455f2566e0 100644
--- a/allauth/socialaccount/providers/openid_connect/provider.py
+++ b/allauth/socialaccount/providers/openid_connect/provider.py
@@ -42,6 +42,7 @@ def... |
ivy-llc__ivy-17685 | floor_divide
will implement floor_divide paddle frontend function
| [
{
"content": "# local\r\nimport ivy\r\nimport ivy.functional.frontends.paddle as paddle_frontend\r\nfrom ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes\r\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\r\n\r\n\r\nclass Tensor:\r\n def __init__(self, array, dtyp... | [
{
"content": "# local\r\nimport ivy\r\nimport ivy.functional.frontends.paddle as paddle_frontend\r\nfrom ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes\r\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\r\n\r\n\r\nclass Tensor:\r\n def __init__(self, array, dtyp... | diff --git a/ivy/functional/frontends/paddle/tensor/tensor.py b/ivy/functional/frontends/paddle/tensor/tensor.py
index 7d7a6f1c74cdb..5122422504031 100644
--- a/ivy/functional/frontends/paddle/tensor/tensor.py
+++ b/ivy/functional/frontends/paddle/tensor/tensor.py
@@ -365,3 +365,8 @@ def imag(self, name=None):
... |
MongoEngine__mongoengine-1951 | document._cls field not set after document.save() call
```
from mongoengine import (
connection,
Document,
EmbeddedDocument,
EmbeddedDocumentField,
StringField
)
class EmbedData(EmbeddedDocument):
data = StringField()
meta = {'allow_inheritance': True}
class DataDoc(Docume... | [
{
"content": "import copy\nimport numbers\nfrom functools import partial\n\nfrom bson import ObjectId, json_util\nfrom bson.dbref import DBRef\nfrom bson.son import SON\nimport pymongo\nimport six\n\nfrom mongoengine import signals\nfrom mongoengine.base.common import get_document\nfrom mongoengine.base.datastr... | [
{
"content": "import copy\nimport numbers\nfrom functools import partial\n\nfrom bson import ObjectId, json_util\nfrom bson.dbref import DBRef\nfrom bson.son import SON\nimport pymongo\nimport six\n\nfrom mongoengine import signals\nfrom mongoengine.base.common import get_document\nfrom mongoengine.base.datastr... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 7fdf5e9c4..33578f018 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -5,6 +5,7 @@ Changelog
Development
===========
- (Fill this out as you fix issues and develop your features).
+- Fix `_cls` that is not set properly in Document constructor (reg... |
kserve__kserve-2018 | KServe 0.8 release tracking
/kind feature
**Describe the solution you'd like**
KServe 0.8 release tracking:
RC release Date: 12/30/2021
Release Date: 1/14/2021
KServe Model Serving:
- [x] torchserve v2 protocol
- https://github.com/kserve/kserve/pull/1870 @jagadeeshi2i
- [X] Transformer -> Predictor gRPC... | [
{
"content": "# Copyright 2021 The KServe 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 a... | [
{
"content": "# Copyright 2021 The KServe 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 a... | diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 0a650e99a40..8629a2eabe9 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,5 +1,5 @@
<!-- Thanks for sending a pull request! Here are some tips for you:
-1. If this is your first time, read... |
strawberry-graphql__strawberry-128 | Lists being marked as Optional
When defining a list the resulting schema marks the list as optional (or nullable in GraphQL terms) even if it wasn't wrapped in `typing.Optional`, we should fix that :)
| [
{
"content": "from collections.abc import AsyncGenerator\n\nfrom graphql import (\n GraphQLBoolean,\n GraphQLFloat,\n GraphQLID,\n GraphQLInt,\n GraphQLList,\n GraphQLNonNull,\n GraphQLString,\n GraphQLUnionType,\n)\n\nfrom .exceptions import UnallowedReturnTypeForUnion, WrongReturnTypeF... | [
{
"content": "from collections.abc import AsyncGenerator\n\nfrom graphql import (\n GraphQLBoolean,\n GraphQLFloat,\n GraphQLID,\n GraphQLInt,\n GraphQLList,\n GraphQLNonNull,\n GraphQLString,\n GraphQLUnionType,\n)\n\nfrom .exceptions import UnallowedReturnTypeForUnion, WrongReturnTypeF... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..3e34662bf1
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,3 @@
+Release type: patch
+
+Fix List types being converted to Optional GraphQL lists.
diff --git a/strawberry/type_converter.py b/strawberry/type_converter.py
index 0340e4297f..580e698314 10... |
pypi__warehouse-3974 | Unexpected Results on Filtering in Browse by Licence
Given the indentation on the licence tree in the Browse by Licence view I was surprised by the following results:
- Filter on [OSI Approved](https://pypi.org/search/?q=&o=&c=License+%3A%3A+OSI+Approved): **654** Projects
- Add [MIT Filter](https://pypi.org/sea... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | diff --git a/tests/unit/test_views.py b/tests/unit/test_views.py
index 3196bd711dba..4d8a3e9eab6a 100644
--- a/tests/unit/test_views.py
+++ b/tests/unit/test_views.py
@@ -410,6 +410,7 @@ def test_with_classifiers(self, monkeypatch, db_request, metrics, page):
es_query = pretend.stub(
suggest=prete... |
ansible__ansible-42038 | "pause" module fails with NameError when "curses" is not installed
<!---
Verify first that your issue/request is not already reported on GitHub.
THIS FORM WILL BE READ BY A MACHINE, COMPLETE ALL SECTIONS AS DESCRIBED.
Also test if the latest release, and devel branch are affected too.
ALWAYS add information AFTER (... | [
{
"content": "# Copyright 2012, Tim Bielawa <tbielawa@redhat.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\... | [
{
"content": "# Copyright 2012, Tim Bielawa <tbielawa@redhat.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\... | diff --git a/changelogs/fragments/pause-try-except-curses.yaml b/changelogs/fragments/pause-try-except-curses.yaml
new file mode 100644
index 00000000000000..1e8316f9a0de46
--- /dev/null
+++ b/changelogs/fragments/pause-try-except-curses.yaml
@@ -0,0 +1,2 @@
+bugfixes:
+ - pause - nest try except when importing curses... |
jupyterhub__jupyterhub-108 | Missing zmq and jsonschema
It seems like two additional dependencies are missing.
``` bash
Traceback (most recent call last):
File "/home/stanleygu/.virtualenvs/localpy/src/ipython/IPython/utils/zmqrelated.py", line 35, in check_for_zmq
import zmq
ImportError: No module named 'zmq'
```
``` bash
Traceback (most ... | [
{
"content": "#!/usr/bin/env python\n# coding: utf-8\n\n# Copyright (c) Juptyer Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n#-----------------------------------------------------------------------------\n# Minimal Python version sanity check (from IPython)\n#----------------... | [
{
"content": "#!/usr/bin/env python\n# coding: utf-8\n\n# Copyright (c) Juptyer Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n#-----------------------------------------------------------------------------\n# Minimal Python version sanity check (from IPython)\n#----------------... | diff --git a/requirements.txt b/requirements.txt
index 19e55f0b43..218f6a966f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,4 @@
--e git+https://github.com/ipython/ipython.git#egg=ipython[notebook]
+git+https://github.com/ipython/ipython.git#egg=ipython[notebook]
tornado>=4
jinja2
simplepam
diff --... |
ktbyers__netmiko-3108 | SSHDetect - OneAccess device not detected
Hi Kirk,
The [SSHDetect](https://github.com/ktbyers/netmiko/blob/develop/netmiko/ssh_autodetect.py#L309) class is not able to detect OneAccess equipment.
This is due to missing entry in the SSH_MAPPER_DICT dictionnary.
The following entry should make it:
```
"oneaccess... | [
{
"content": "\"\"\"\nThe ssh_autodetect module is used to auto-detect the netmiko device_type to use to further initiate\na new SSH connection with a remote host. This auto-detection is based on a unique class called\n**SSHDetect**.\n\nNotes\n-----\n\nThe **SSHDetect** class is instantiated using the same para... | [
{
"content": "\"\"\"\nThe ssh_autodetect module is used to auto-detect the netmiko device_type to use to further initiate\na new SSH connection with a remote host. This auto-detection is based on a unique class called\n**SSHDetect**.\n\nNotes\n-----\n\nThe **SSHDetect** class is instantiated using the same para... | diff --git a/netmiko/ssh_autodetect.py b/netmiko/ssh_autodetect.py
index d84632df5..b17d520f2 100644
--- a/netmiko/ssh_autodetect.py
+++ b/netmiko/ssh_autodetect.py
@@ -288,6 +288,12 @@
"priority": 99,
"dispatch": "_autodetect_std",
},
+ "oneaccess_oneos": {
+ "cmd": "show version",
+ ... |
rasterio__rasterio-490 | rio merge error
When running `rio merge` on the latest version (`0.27`), I am receiving this error:
```
Traceback (most recent call last):
File "/Users/dnomadb/venv/bin/rio", line 11, in <module>
sys.exit(main_group())
File "/Users/dnomadb/venv/lib/python2.7/site-packages/click/core.py", line 700, in __call__
... | [
{
"content": "#!/usr/bin/env python\n\n# Two environmental variables influence this script.\n#\n# GDAL_CONFIG: the path to a gdal-config program that points to GDAL headers,\n# libraries, and data files.\n#\n# PACKAGE_DATA: if defined, GDAL and PROJ4 data files will be copied into the\n# source or binary distri... | [
{
"content": "#!/usr/bin/env python\n\n# Two environmental variables influence this script.\n#\n# GDAL_CONFIG: the path to a gdal-config program that points to GDAL headers,\n# libraries, and data files.\n#\n# PACKAGE_DATA: if defined, GDAL and PROJ4 data files will be copied into the\n# source or binary distri... | diff --git a/setup.py b/setup.py
index fe4cf4d17..ed3b07f19 100755
--- a/setup.py
+++ b/setup.py
@@ -227,7 +227,7 @@ def copy_data_tree(datadir, destdir):
url='https://github.com/mapbox/rasterio',
license='BSD',
package_dir={'': '.'},
- packages=['rasterio', 'rasterio.rio'],
+ packages=['rasterio',... |
spack__spack-38843 | Installation issue: apptainer fails to build with cflags="-O2" after 7dc485d2887c70e3e1ebdc6f680cda926444da72
### Steps to reproduce the issue
```console
$ spack spec -I apptainer@1.1.7
Input spec
--------------------------------
- apptainer@1.1.7
Concretized
--------------------------------
- apptainer... | [
{
"content": "# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\n\nfrom spack.package import *\nfrom spack.pkg.builtin.singularityce import SingularityBase\n\n\... | [
{
"content": "# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\n\nfrom spack.package import *\nfrom spack.pkg.builtin.singularityce import SingularityBase\n\n\... | diff --git a/var/spack/repos/builtin/packages/apptainer/package.py b/var/spack/repos/builtin/packages/apptainer/package.py
index 600f37d210e5fa..d1b9ed71e39365 100644
--- a/var/spack/repos/builtin/packages/apptainer/package.py
+++ b/var/spack/repos/builtin/packages/apptainer/package.py
@@ -53,3 +53,8 @@ def config_opti... |
DistrictDataLabs__yellowbrick-1007 | Installs tests package
**Describe the bug**
Installing yellowbrick also installs a package "tests" into the enviornment.
**To Reproduce**
```shell
PS> virtualenv env
PS> .\env\Scripts\activate
PS> python -c "import tests; print(tests.__path__)"
Traceback (most recent call last):
File "<string>", line 1, in ... | [
{
"content": "#!/usr/bin/env python\n# setup\n# Setup script for installing yellowbrick\n#\n# Author: Benjamin Bengfort\n# Created: Wed May 18 14:33:26 2016 -0400\n#\n# Copyright (C) 2016 The scikit-yb developers\n# For license information, see LICENSE.txt and NOTICE.md\n#\n# ID: setup.py [c4f3ba7] benjamin@... | [
{
"content": "#!/usr/bin/env python\n# setup\n# Setup script for installing yellowbrick\n#\n# Author: Benjamin Bengfort\n# Created: Wed May 18 14:33:26 2016 -0400\n#\n# Copyright (C) 2016 The scikit-yb developers\n# For license information, see LICENSE.txt and NOTICE.md\n#\n# ID: setup.py [c4f3ba7] benjamin@... | diff --git a/setup.py b/setup.py
index babb04d3e..d47d5f66e 100755
--- a/setup.py
+++ b/setup.py
@@ -77,14 +77,14 @@
## Directories to ignore in find_packages
EXCLUDES = (
- "tests",
+ "tests", "tests.*",
"bin",
- "docs",
+ "docs", "docs.*",
"fixtures",
"register",
- "notebooks",
- ... |
Kinto__kinto-186 | Allow POST on buckets using the id_generator or the id provided in the data.
| [
{
"content": "from six import text_type\nfrom uuid import UUID\n\nfrom pyramid.httpexceptions import (HTTPForbidden, HTTPPreconditionFailed,\n HTTPException)\nfrom pyramid.security import NO_PERMISSION_REQUIRED\nfrom pyramid.view import view_config\n\nfrom cliquet import resou... | [
{
"content": "from six import text_type\nfrom uuid import UUID\n\nfrom pyramid.httpexceptions import (HTTPForbidden, HTTPPreconditionFailed,\n HTTPException)\nfrom pyramid.security import NO_PERMISSION_REQUIRED\nfrom pyramid.view import view_config\n\nfrom cliquet import resou... | diff --git a/docs/api/buckets.rst b/docs/api/buckets.rst
index f54270d3a..a352c4cce 100644
--- a/docs/api/buckets.rst
+++ b/docs/api/buckets.rst
@@ -10,11 +10,71 @@ A bucket is a mapping with the following attributes:
* ``permissions``: (*optional*) the :term:`ACLs <ACL>` for the bucket object
-.. _buckets-put:
+.... |
sonic-net__sonic-utilities-1691 | [PFCWD] The incorrect cli command doesn't return failed exit code 1
**Description**
The incorrect cli PFCWD command doesn't return failed exit code 1
**Steps to reproduce**
1) Run the cli command:
```
config pfcwd start --action drop ports all deteection-time 200 --restoration-time 200 ; echo AUTO_REMOTE_STAT... | [
{
"content": "import importlib\nimport os\nimport sys\n\nimport click\nimport utilities_common.cli as clicommon\nfrom natsort import natsorted\nfrom sonic_py_common.multi_asic import get_external_ports\nfrom tabulate import tabulate\nfrom utilities_common import multi_asic as multi_asic_util\nfrom utilities_com... | [
{
"content": "import importlib\nimport os\nimport sys\n\nimport click\nimport utilities_common.cli as clicommon\nfrom natsort import natsorted\nfrom sonic_py_common.multi_asic import get_external_ports\nfrom tabulate import tabulate\nfrom utilities_common import multi_asic as multi_asic_util\nfrom utilities_com... | diff --git a/pfcwd/main.py b/pfcwd/main.py
index 1f8ec2293e..c3b92fd223 100644
--- a/pfcwd/main.py
+++ b/pfcwd/main.py
@@ -242,7 +242,7 @@ def start(self, action, restoration_time, ports, detection_time):
click.echo("Failed to run command, invalid options:")
for opt in invalid_ports:
... |
mirumee__ariadne-961 | Support Starlette 0.21.0
Starlette 0.21.0 fix important issues on the BaseHttpMiddleware side.
https://github.com/encode/starlette/pull/1715
https://github.com/tiangolo/fastapi/issues/4544
| [
{
"content": "#! /usr/bin/env python\nimport os\nfrom setuptools import setup\n\nCLASSIFIERS = [\n \"Development Status :: 4 - Beta\",\n \"Intended Audience :: Developers\",\n \"License :: OSI Approved :: BSD License\",\n \"Operating System :: OS Independent\",\n \"Programming Language :: Python\... | [
{
"content": "#! /usr/bin/env python\nimport os\nfrom setuptools import setup\n\nCLASSIFIERS = [\n \"Development Status :: 4 - Beta\",\n \"Intended Audience :: Developers\",\n \"License :: OSI Approved :: BSD License\",\n \"Operating System :: OS Independent\",\n \"Programming Language :: Python\... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 485edc8b4..2ffedd603 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@
- Added `explorer` option to ASGI and WSGI `GraphQL` applications that enables API explorer customization.
- Added `ExplorerHttp405` API explorer that returns `405 Method Not Allowed` for G... |
saulpw__visidata-1721 | Bugs with save-all
I've a question about saving.
1. I load a two sheet notebook "responses-grades-cda.xlsx".
2. `g ctrl+s`
3. it gives me a blank line -- why not default to name of file without xlsx extension?
4. I type in file name without extension + `vds`: "responses-grades-cda.vds".
5. I get an error... | [
{
"content": "import collections\n\nfrom visidata import *\n\n\nvd.option('confirm_overwrite', True, 'whether to prompt for overwrite confirmation on save')\nvd.option('safe_error', '#ERR', 'error string to use while saving', replay=True)\n\n@Sheet.api\ndef safe_trdict(vs):\n 'returns string.translate dictio... | [
{
"content": "import collections\n\nfrom visidata import *\n\n\nvd.option('confirm_overwrite', True, 'whether to prompt for overwrite confirmation on save')\nvd.option('safe_error', '#ERR', 'error string to use while saving', replay=True)\n\n@Sheet.api\ndef safe_trdict(vs):\n 'returns string.translate dictio... | diff --git a/visidata/save.py b/visidata/save.py
index 5c35dfaef..a56622483 100644
--- a/visidata/save.py
+++ b/visidata/save.py
@@ -104,6 +104,10 @@ def save_cols(vd, cols):
def saveSheets(vd, givenpath, *vsheets, confirm_overwrite=False):
'Save all *vsheets* to *givenpath*.'
+ if not vsheets: # blank tuple... |
qutip__qutip-494 | Qobj.expm() not functioning properly for diagonal states which have a zero element in the diagonal
Qobj.expm() is currently not working properly for diagonal states which have a zero in the diagonal (these zeros don't become ones). An example:
``` python
>>> foo = qutip.Qobj([[1.,0.],[0.,0.]])
>>> foo.expm()
Quantum o... | [
{
"content": "# This file is part of QuTiP: Quantum Toolbox in Python.\n#\n# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the followi... | [
{
"content": "# This file is part of QuTiP: Quantum Toolbox in Python.\n#\n# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the followi... | diff --git a/qutip/sparse.py b/qutip/sparse.py
index 950071b7f2..8991599ef7 100644
--- a/qutip/sparse.py
+++ b/qutip/sparse.py
@@ -383,7 +383,8 @@ def sp_expm(A, sparse=False):
Sparse matrix exponential.
"""
if _isdiag(A.indices, A.indptr, A.shape[0]):
- A.data = np.exp(A.data)
+ A = sp... |
spack__spack-36099 | LLNL Cardioid homepage no longer exists
https://github.com/spack/spack/blob/fe5865da0d4ee4480a85ee1257cb310c036b0c88/var/spack/repos/builtin/packages/cardioid/package.py#L12
@rblake-llnl it looks like Cardioid's [home page](https://baasic.llnl.gov/comp-bio/cardioid-code.php) redirects to a 404 these days. You're lis... | [
{
"content": "# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack.package import *\n\n\nclass Cardioid(CMakePackage):\n \"\"\"Cardiac simulation su... | [
{
"content": "# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack.package import *\n\n\nclass Cardioid(CMakePackage):\n \"\"\"Cardiac simulation su... | diff --git a/var/spack/repos/builtin/packages/cardioid/package.py b/var/spack/repos/builtin/packages/cardioid/package.py
index 54e1c99ac07adc..1cff449740f670 100644
--- a/var/spack/repos/builtin/packages/cardioid/package.py
+++ b/var/spack/repos/builtin/packages/cardioid/package.py
@@ -9,7 +9,7 @@
class Cardioid(CMake... |
googleapis__python-spanner-django-364 | django: Case(When(..., then=binary)) crashes
e.g.
```python
CaseTestModel.objects.update(
binary=Case(
When(integer=1, then=Value(b'one', output_field=models.BinaryField())),
When(integer=2, then=Value(b'two', output_field=models.BinaryField())),
default=Value(b'', output_field=models.... | [
{
"content": "# Copyright 2020 Google LLC\n#\n# Use of this source code is governed by a BSD-style\n# license that can be found in the LICENSE file or at\n# https://developers.google.com/open-source/licenses/bsd\n\nimport datetime\nimport decimal\nimport re\nfrom functools import reduce\n\nimport sqlparse\nfrom... | [
{
"content": "# Copyright 2020 Google LLC\n#\n# Use of this source code is governed by a BSD-style\n# license that can be found in the LICENSE file or at\n# https://developers.google.com/open-source/licenses/bsd\n\nimport datetime\nimport decimal\nimport re\nfrom functools import reduce\n\nimport sqlparse\nfrom... | diff --git a/spanner/dbapi/parse_utils.py b/spanner/dbapi/parse_utils.py
index ac8249b1f2..48035743c4 100644
--- a/spanner/dbapi/parse_utils.py
+++ b/spanner/dbapi/parse_utils.py
@@ -378,6 +378,8 @@ def get_param_types(params):
param_types[key] = spanner.param_types.DATE
elif isinstance(value, str... |
vyperlang__vyper-3276 | `CompilerPanic` when using `len` and `empty` together
### Version Information
* vyper Version (output of `vyper --version`): 0.3.8+commit.d76c6ed2
* OS: OSX
* Python Version (output of `python --version`): 3.8.0
### What's your issue about?
The compiler panic when using the builtin `len` on some `Bytes`, `St... | [
{
"content": "from vyper import ast as vy_ast\nfrom vyper.address_space import CALLDATA, DATA, IMMUTABLES, MEMORY, STORAGE\nfrom vyper.codegen.ir_node import Encoding, IRnode\nfrom vyper.evm.opcodes import version_check\nfrom vyper.exceptions import CompilerPanic, StructureException, TypeCheckFailure, TypeMisma... | [
{
"content": "from vyper import ast as vy_ast\nfrom vyper.address_space import CALLDATA, DATA, IMMUTABLES, MEMORY, STORAGE\nfrom vyper.codegen.ir_node import Encoding, IRnode\nfrom vyper.evm.opcodes import version_check\nfrom vyper.exceptions import CompilerPanic, StructureException, TypeCheckFailure, TypeMisma... | diff --git a/docs/built-in-functions.rst b/docs/built-in-functions.rst
index 5c3f406f77..8d531729f3 100644
--- a/docs/built-in-functions.rst
+++ b/docs/built-in-functions.rst
@@ -918,9 +918,9 @@ Utilities
def foo():
x: uint256[2][5] = empty(uint256[2][5])
-.. py:function:: len(b: Union[Bytes, St... |
sotetsuk__pgx-544 | [Visualizer, Hex] Flipping white and black in turn


;\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# U... | [
{
"content": "# Copyright 2023 The Pgx Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U... | diff --git a/pgx/_visualizer.py b/pgx/_visualizer.py
index 1bba63c60..def53c38a 100644
--- a/pgx/_visualizer.py
+++ b/pgx/_visualizer.py
@@ -529,6 +529,8 @@ def _get_nth_state(self, _states, _i):
)
elif isinstance(_states, HexState):
return HexState(
+ size=_states.size... |
pallets__werkzeug-2073 | Debugger's library detection doesn't work with symlinks
The debugger's stacktrace nicely colors lines differently if they come from your own code vs library code. However, this doesn't work correctly if the library path (virtualenv) is a symlink.
I am not 100% sure how to replicate this simply because my environmen... | [
{
"content": "import codecs\nimport inspect\nimport os\nimport re\nimport sys\nimport sysconfig\nimport traceback\nimport typing as t\nfrom html import escape\nfrom tokenize import TokenError\nfrom types import CodeType\nfrom types import TracebackType\n\nfrom .._internal import _to_str\nfrom ..filesystem impor... | [
{
"content": "import codecs\nimport inspect\nimport os\nimport re\nimport sys\nimport sysconfig\nimport traceback\nimport typing as t\nfrom html import escape\nfrom tokenize import TokenError\nfrom types import CodeType\nfrom types import TracebackType\n\nfrom .._internal import _to_str\nfrom ..filesystem impor... | diff --git a/src/werkzeug/debug/tbtools.py b/src/werkzeug/debug/tbtools.py
index ec9e7c6b1..75b4cd2c5 100644
--- a/src/werkzeug/debug/tbtools.py
+++ b/src/werkzeug/debug/tbtools.py
@@ -461,7 +461,8 @@ def render(self, mark_lib: bool = True) -> str:
@cached_property
def is_library(self) -> bool:
retur... |
celery__celery-8152 | CLI help output: avoid click text rewrapping
# Checklist
- [x] I have checked the [issues list](https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22)
for similar or identical enhancement to an existing feature.
- [x] I have checked ... | [
{
"content": "\"\"\"Program used to start a Celery worker instance.\"\"\"\n\nimport os\nimport sys\n\nimport click\nfrom click import ParamType\nfrom click.types import StringParamType\n\nfrom celery import concurrency\nfrom celery.bin.base import (COMMA_SEPARATED_LIST, LOG_LEVEL, CeleryDaemonCommand, CeleryOpt... | [
{
"content": "\"\"\"Program used to start a Celery worker instance.\"\"\"\n\nimport os\nimport sys\n\nimport click\nfrom click import ParamType\nfrom click.types import StringParamType\n\nfrom celery import concurrency\nfrom celery.bin.base import (COMMA_SEPARATED_LIST, LOG_LEVEL, CeleryDaemonCommand, CeleryOpt... | diff --git a/celery/bin/worker.py b/celery/bin/worker.py
index 6a4b5533692..9dd1582030e 100644
--- a/celery/bin/worker.py
+++ b/celery/bin/worker.py
@@ -300,8 +300,11 @@ def worker(ctx, hostname=None, pool_cls=None, app=None, uid=None, gid=None,
**kwargs):
"""Start worker instance.
+ \b
Examp... |
mathesar-foundation__mathesar-3523 | Demo is broken for 0.1.6
## Description
<!-- A clear and concise description of what the bug is. -->
The demo can't be deployed with the current `master` branch (0.1.6)
The reasons are:
- We didn't add the fix to the demo settings in #3499 (just to prod), and
- We have an extra dependency in the demo setup w... | [
{
"content": "from config.settings.common_settings import * # noqa\nfrom decouple import config as decouple_config\n\nINSTALLED_APPS += [ # noqa\n \"demo\",\n \"health_check\",\n]\n\nMIDDLEWARE += [ # noqa\n \"demo.middleware.LiveDemoModeMiddleware\",\n]\n\nMATHESAR_MODE = 'PRODUCTION'\nMATHESAR_LIV... | [
{
"content": "from config.settings.common_settings import * # noqa\nfrom decouple import config as decouple_config\n\nINSTALLED_APPS += [ # noqa\n \"demo\",\n \"health_check\",\n]\n\nMIDDLEWARE += [ # noqa\n \"demo.middleware.LiveDemoModeMiddleware\",\n]\n\n\nSECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWA... | diff --git a/Dockerfile b/Dockerfile
index 84b2fb3a9f..49f667b82a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -87,9 +87,9 @@ EXPOSE 8000 3000 6006
ENTRYPOINT ["./dev-run.sh"]
-#=========== STAGE: PRODUCTION ===============================================#
+#=========== STAGE: COMMON ===============================... |
django-helpdesk__django-helpdesk-475 | Unable to create new Queue because of multiple content_type
`get() returned more than one ContentType -- it returned 4!`
This can be replicated if you deploy django-helpdesk by adding the source to an existing Django Project which possibly has other apps with one or more models named queue.
In my case:
select * ... | [
{
"content": "\"\"\"\ndjango-helpdesk - A Django powered ticket tracker for small enterprise.\n\n(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.\n\nmodels.py - Model (and hence database) definitions. This is the core of the\n helpdesk structure.\n\"\"\"\n\nfrom __future__ impo... | [
{
"content": "\"\"\"\ndjango-helpdesk - A Django powered ticket tracker for small enterprise.\n\n(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.\n\nmodels.py - Model (and hence database) definitions. This is the core of the\n helpdesk structure.\n\"\"\"\n\nfrom __future__ impo... | diff --git a/helpdesk/models.py b/helpdesk/models.py
index c39e733be..4dc28a36e 100644
--- a/helpdesk/models.py
+++ b/helpdesk/models.py
@@ -320,7 +320,7 @@ def save(self, *args, **kwargs):
Permission.objects.create(
name=_("Permission for queue: ") + self.title,
- content... |
tobymao__sqlglot-3401 | bug(mssql): incorrect syntax for creating quoted temporary table
```python
[ins] In [1]: import sqlglot as sg
[ins] In [2]: sg.__version__
Out[2]: '23.12.3.dev11'
[ins] In [3]: exp = sg.parse_one(
...: "CREATE TEMPORARY TABLE 'temptest' (name VARCHAR);", dialect="duckdb"
...: )
[ins] ... | [
{
"content": "from __future__ import annotations\n\nimport datetime\nimport re\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n Dialect,\n NormalizationStrategy,\n any_value_to_max_sql,\n date_delta_sql,\n datestrtodat... | [
{
"content": "from __future__ import annotations\n\nimport datetime\nimport re\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n Dialect,\n NormalizationStrategy,\n any_value_to_max_sql,\n date_delta_sql,\n datestrtodat... | diff --git a/sqlglot/dialects/tsql.py b/sqlglot/dialects/tsql.py
index 54fc431874..2e8ddf21da 100644
--- a/sqlglot/dialects/tsql.py
+++ b/sqlglot/dialects/tsql.py
@@ -913,7 +913,7 @@ def createable_sql(self, expression: exp.Create, locations: t.DefaultDict) -> st
isinstance(prop, exp.TemporaryProperty)... |
cornellius-gp__gpytorch-2267 | [Bug] Runtime error for indices not on the same device when running VNNGP example
# 🐛 Bug
When running the VNNGP example, once we hit output = model(x=None) it will report: `RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)`.
## To reproduce
** Code snippet to re... | [
{
"content": "import warnings\n\nimport torch\nfrom torch.nn import Module\n\n\nclass NNUtil(Module):\n r\"\"\"\n Utility for nearest neighbor search. It would first try to use `faiss`_ (requiring separate pacakge installment)\n as the backend for better computational performance. Otherwise, `scikit-le... | [
{
"content": "import warnings\n\nimport torch\nfrom torch.nn import Module\n\n\nclass NNUtil(Module):\n r\"\"\"\n Utility for nearest neighbor search. It would first try to use `faiss`_ (requiring separate pacakge installment)\n as the backend for better computational performance. Otherwise, `scikit-le... | diff --git a/gpytorch/utils/nearest_neighbors.py b/gpytorch/utils/nearest_neighbors.py
index 900d68614..e5d350394 100644
--- a/gpytorch/utils/nearest_neighbors.py
+++ b/gpytorch/utils/nearest_neighbors.py
@@ -206,7 +206,7 @@ def build_sequential_nn_idx(self, x):
).squeeze()
n... |
pantsbuild__pants-6037 | contrib go plugin not able to recognize meta tag if meta ends with />
The regex only recognize `<meta xxxxxxxxxxxxx >` but not `<meta xxxxxxxxxx />`.
| [
{
"content": "# coding=utf-8\n# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import (absolute_import, division, generators, nested_scopes, print_function,\n unicode_literals, with_state... | [
{
"content": "# coding=utf-8\n# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import (absolute_import, division, generators, nested_scopes, print_function,\n unicode_literals, with_state... | diff --git a/contrib/go/src/python/pants/contrib/go/subsystems/go_import_meta_tag_reader.py b/contrib/go/src/python/pants/contrib/go/subsystems/go_import_meta_tag_reader.py
index 82259bf25d6..f50188f1357 100644
--- a/contrib/go/src/python/pants/contrib/go/subsystems/go_import_meta_tag_reader.py
+++ b/contrib/go/src/pyt... |
hydroshare__hydroshare-2616 | [1.15 HOTFIX] User identifier data is not getting copied over to the first creator of the resource
| [
{
"content": "from __future__ import absolute_import\n\nimport mimetypes\nimport os\nimport tempfile\nimport logging\nimport shutil\nimport string\nimport copy\nfrom uuid import uuid4\nimport errno\n\nfrom django.apps import apps\nfrom django.http import Http404\nfrom django.shortcuts import get_object_or_404\n... | [
{
"content": "from __future__ import absolute_import\n\nimport mimetypes\nimport os\nimport tempfile\nimport logging\nimport shutil\nimport string\nimport copy\nfrom uuid import uuid4\nimport errno\n\nfrom django.apps import apps\nfrom django.http import Http404\nfrom django.shortcuts import get_object_or_404\n... | diff --git a/hs_core/hydroshare/utils.py b/hs_core/hydroshare/utils.py
index 4f9f4b4c3f..dbd9f521d1 100755
--- a/hs_core/hydroshare/utils.py
+++ b/hs_core/hydroshare/utils.py
@@ -860,6 +860,7 @@ def get_party_data_from_user(user):
party_data['description'] = '/user/{uid}/'.format(uid=user.pk)
party_data['phon... |
DataDog__dd-agent-1776 | Couchbase service check do not send tags on OK status
Missing a `tags=service_check_tags` on line:
https://github.com/DataDog/dd-agent/blob/master/checks.d/couchbase.py#L104
Pretty small fix.
| [
{
"content": "# stdlib\nimport re\n\n# 3rd party\nimport requests\n\n# project\nfrom checks import AgentCheck\nfrom util import headers\n\n# Constants\nCOUCHBASE_STATS_PATH = '/pools/default'\nDEFAULT_TIMEOUT = 10\n\n\nclass Couchbase(AgentCheck):\n \"\"\"Extracts stats from Couchbase via its REST API\n h... | [
{
"content": "# stdlib\nimport re\n\n# 3rd party\nimport requests\n\n# project\nfrom checks import AgentCheck\nfrom util import headers\n\n# Constants\nCOUCHBASE_STATS_PATH = '/pools/default'\nDEFAULT_TIMEOUT = 10\n\n\nclass Couchbase(AgentCheck):\n \"\"\"Extracts stats from Couchbase via its REST API\n h... | diff --git a/checks.d/couchbase.py b/checks.d/couchbase.py
index 8ede71b3f6..9f8f2e2f88 100644
--- a/checks.d/couchbase.py
+++ b/checks.d/couchbase.py
@@ -101,7 +101,8 @@ def get_data(self, server, instance):
tags=service_check_tags, message=str(e))
raise
else:
- self.s... |
mdn__kuma-6501 | E - Noindex on /**/docs/MDN/Jobs ?
Similar to https://github.com/mdn/kuma/issues/6422
but this time, instead of `/**/docs/MDN/Doc_status` it's `/**/docs/MDN/Jobs`.
There are only 9 of them in my month old clone of the production DB.
```
mysql> select locale, slug from wiki_document where slug like 'MDN/Jobs%';... | [
{
"content": "import re\nfrom urllib.parse import urlparse, urlunparse\n\nimport bleach\nfrom django.conf import settings\nfrom django.utils.translation import ugettext_lazy as _\n\n\nALLOWED_TAGS = bleach.ALLOWED_TAGS + [\n \"div\",\n \"span\",\n \"p\",\n \"br\",\n \"h1\",\n \"h2\",\n \"h3... | [
{
"content": "import re\nfrom urllib.parse import urlparse, urlunparse\n\nimport bleach\nfrom django.conf import settings\nfrom django.utils.translation import ugettext_lazy as _\n\n\nALLOWED_TAGS = bleach.ALLOWED_TAGS + [\n \"div\",\n \"span\",\n \"p\",\n \"br\",\n \"h1\",\n \"h2\",\n \"h3... | diff --git a/kuma/wiki/constants.py b/kuma/wiki/constants.py
index d0f383a4ba6..f73dd5c8ea3 100644
--- a/kuma/wiki/constants.py
+++ b/kuma/wiki/constants.py
@@ -665,4 +665,7 @@
# Any slug that, case *sensitively*, matches this list get the
# <meta name="robots" content="noindex, nofollow"> HTML header and they get
#... |
xonsh__xonsh-1514 | vox deactivate no longer resets my path
`which python3` returns the same thing before and after `vox deactivate` now. `vox activate` correctly changes it, but `vox deactivate` no longer puts it back. I am on the newest label of xonsh.
| [
{
"content": "\"\"\"API for Vox, the Python virtual environment manager for xonsh.\"\"\"\nimport os\nimport venv\nimport shutil\nimport builtins\nimport collections.abc\n\nfrom xonsh.platform import ON_POSIX, ON_WINDOWS, scandir\n\nVirtualEnvironment = collections.namedtuple('VirtualEnvironment', ['env', 'bin']... | [
{
"content": "\"\"\"API for Vox, the Python virtual environment manager for xonsh.\"\"\"\nimport os\nimport venv\nimport shutil\nimport builtins\nimport collections.abc\n\nfrom xonsh.platform import ON_POSIX, ON_WINDOWS, scandir\n\nVirtualEnvironment = collections.namedtuple('VirtualEnvironment', ['env', 'bin']... | diff --git a/tests/test_vox.py b/tests/test_vox.py
index e03ad2c31c..18d7dc4f83 100644
--- a/tests/test_vox.py
+++ b/tests/test_vox.py
@@ -43,3 +43,25 @@ def test_activate(xonsh_builtins, tmpdir):
assert xonsh_builtins.__xonsh_env__['VIRTUAL_ENV'] == vox['spam'].env
vox.deactivate()
assert 'VIRTUAL_ENV' ... |
pyinstaller__pyinstaller-3662 | Changing from -F to -D on consecutive runs causes crash
MacOS (have not tried Win, Linux; may well fail there too), PyInstaller 3.3.1. Demonstrate as follows.
~~~~
$ pyinstaller --version
3.3.1
$ cat > hello.py
import sys
print( 'hello',sys.argv[1] ) ^D
$ python hello.py world
hello world
$ pyinstaller --c... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2018, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the file COPYING.... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2018, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the file COPYING.... | diff --git a/PyInstaller/building/utils.py b/PyInstaller/building/utils.py
index e8dcf58d55..39a8d4b634 100644
--- a/PyInstaller/building/utils.py
+++ b/PyInstaller/building/utils.py
@@ -404,7 +404,7 @@ def _make_clean_directory(path):
Create a clean directory from the given directory name
"""
if _check_... |
microsoft__botbuilder-python-1231 | [PORT] [Authentication] updates to support Arlington
> Port this change from botbuilder-dotnet/master branch:
https://github.com/microsoft/botbuilder-dotnet/pull/3734
# Changed projects
* Microsoft.Bot.Connector
* Microsoft.Bot.Connector.Tests
[R9]
| [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\nfrom abc import ABC\n\n\nclass GovernmentConstants(ABC):\n\n \"\"\"\n Government Channel Service property value\n \"\"\"\n\n CHANNEL_SERVICE = \"https://botframework.azure.us\"\n\n \"\"\"... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\nfrom abc import ABC\n\n\nclass GovernmentConstants(ABC):\n\n \"\"\"\n Government Channel Service property value\n \"\"\"\n\n CHANNEL_SERVICE = \"https://botframework.azure.us\"\n\n \"\"\"... | diff --git a/libraries/botframework-connector/botframework/connector/auth/government_constants.py b/libraries/botframework-connector/botframework/connector/auth/government_constants.py
index 8dcb19b34..0d768397a 100644
--- a/libraries/botframework-connector/botframework/connector/auth/government_constants.py
+++ b/libr... |
UTNkar__moore-53 | Confirmation e-mails are not sent
For some reason the confirmation e-mails are no longer being send.
| [
{
"content": "import datetime\nfrom django.conf import settings\nfrom django.core.mail import EmailMultiAlternatives\nfrom django.db.models.signals import pre_save\nfrom django.dispatch import receiver\nfrom django.template import loader\nfrom django.utils import timezone\nfrom simple_email_confirmation import ... | [
{
"content": "import datetime\nfrom django.conf import settings\nfrom django.core.mail import EmailMultiAlternatives\nfrom django.db.models.signals import pre_save\nfrom django.dispatch import receiver\nfrom django.template import loader\nfrom django.utils import timezone\nfrom simple_email_confirmation import ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e3c55585..753dc74f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
+### Fixed
+- Confirmation e-mai... |
piskvorky__gensim-3252 | Use coveralls
While contributing in gensim I felt a need of an automated system which can confirm whether I have written tests corresponding to **every line of code** I wrote. I propose the immediate use of https://coveralls.io/ for ensuring this.
Here is coveralls in action - https://coveralls.io/github/jellAIfish... | [
{
"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 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nRun with::\n\n python ./setup.py install\n\"\"\"\n\nimport distutils.cmd\nimport distutils.log\ni... | [
{
"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 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nRun with::\n\n python ./setup.py install\n\"\"\"\n\nimport distutils.cmd\nimport distutils.log\ni... | diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml
index 85e8637b86..ebe2201a6d 100644
--- a/.github/workflows/build-wheels.yml
+++ b/.github/workflows/build-wheels.yml
@@ -114,7 +114,7 @@ jobs:
PLAT: x86_64
UNICODE_WIDTH: 32
MB_PYTHON_VERSION: ${{ matrix.python-ve... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.