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 ⌀ |
|---|---|---|---|---|
gratipay__gratipay.com-1314 | reset.css doesn't load sometimes
@clone1018 saw this when we first started caching static assets. It's why I turned off static caching initially. Now static caching is back with #1245 and indeed we're seeing this again. :(
:\n \"\"\"Return a boolean, whether we have the vers... | [
{
"content": "\"\"\"\nHandles caching of static resources.\n\"\"\"\nimport os\nfrom calendar import timegm\nfrom email.utils import parsedate\nfrom wsgiref.handlers import format_date_time\n\nfrom aspen import Response\n\n\ndef version_is_available(request):\n \"\"\"Return a boolean, whether we have the vers... | diff --git a/gittip/cache_static.py b/gittip/cache_static.py
index 2a467bff33..ceeec951ba 100644
--- a/gittip/cache_static.py
+++ b/gittip/cache_static.py
@@ -111,6 +111,10 @@ def outbound(response):
response.headers.cookie.clear()
if response.code == 304:
+
+ # https://github.com/gittip/www.gittip.c... |
conan-io__conan-8965 | [bug] Meson cross-file is not looked up in the conan install-folder
### Environment Details (include every applicable attribute)
* Operating System+version: Linux Ubuntu 20.04.2 LTS
* Compiler+version: x86_64-w64-mingw32 9.3
* Conan version: 1.36.0
* Python version: 3.8.5
### Steps to reproduce (Include ... | [
{
"content": "import os\n\nfrom conan.tools.build import build_jobs\nfrom conan.tools.meson import MesonToolchain\n\n\nclass Meson(object):\n def __init__(self, conanfile):\n self._conanfile = conanfile\n\n def configure(self, reconfigure=False):\n source_folder = self._conanfile.source_fold... | [
{
"content": "import os\n\nfrom conan.tools.build import build_jobs\nfrom conan.tools.meson import MesonToolchain\n\nclass Meson(object):\n def __init__(self, conanfile):\n self._conanfile = conanfile\n\n def configure(self, reconfigure=False):\n source_folder = self._conanfile.source_folder... | diff --git a/conan/tools/meson/meson.py b/conan/tools/meson/meson.py
index 1285bab4769..37287caa3e3 100644
--- a/conan/tools/meson/meson.py
+++ b/conan/tools/meson/meson.py
@@ -3,7 +3,6 @@
from conan.tools.build import build_jobs
from conan.tools.meson import MesonToolchain
-
class Meson(object):
def __init__... |
bokeh__bokeh-1434 | Tools get lost on Grid Plots
JS logic error prevents all tools from showing up in the toolbar. (cf. comment in #1342)
| [
{
"content": "import numpy as np\n\nfrom bokeh.plotting import *\n\nN = 50\n\nx = np.linspace(0, 4*np.pi, N)\ny = np.sin(x)\n\nTOOLS = \"pan,wheel_zoom,box_zoom,reset,save\"\n\nl = figure(title=\"line\", tools=TOOLS)\nl.line(x,y, line_width=3, color=\"gold\")\n\naw = figure(title=\"annular wedge\", tools=TOOLS)... | [
{
"content": "import numpy as np\n\nfrom bokeh.plotting import *\n\nN = 50\n\nx = np.linspace(0, 4*np.pi, N)\ny = np.sin(x)\n\nTOOLS = \"pan,wheel_zoom,box_zoom,reset,save,crosshair\"\n\nl = figure(title=\"line\", tools=TOOLS)\nl.line(x,y, line_width=3, color=\"gold\")\n\naw = figure(title=\"annular wedge\", to... | diff --git a/bokehjs/src/coffee/common/grid_plot.coffee b/bokehjs/src/coffee/common/grid_plot.coffee
index 35c63e52e17..176e016cea6 100644
--- a/bokehjs/src/coffee/common/grid_plot.coffee
+++ b/bokehjs/src/coffee/common/grid_plot.coffee
@@ -15,6 +15,25 @@ define [
logger = Logging.logger
class _ToolProxy extend... |
frappe__frappe-4871 | `Insufficient Permission for Chat Profile` on load
Use Case:
1. Create New User without System Manager Role
2. Log-in to System
3. Error Pops-up when system is trying to create Chat Profile.
I tried replicating it to a user that was once has a System Manager role and it was not popping up. It was because the us... | [
{
"content": "# imports - module imports\nfrom frappe.model.document import Document\nfrom frappe import _\nimport frappe\n\n# imports - frappe module imports\nfrom frappe.core.doctype.version.version import get_diff\nfrom frappe.chat.doctype.chat_room import chat_room\nfrom frappe.chat.util imp... | [
{
"content": "# imports - module imports\nfrom frappe.model.document import Document\nfrom frappe import _\nimport frappe\n\n# imports - frappe module imports\nfrom frappe.core.doctype.version.version import get_diff\nfrom frappe.chat.doctype.chat_room import chat_room\nfrom frappe.chat.util imp... | diff --git a/frappe/chat/doctype/chat_profile/chat_profile.py b/frappe/chat/doctype/chat_profile/chat_profile.py
index d418caa7dead..b876204bef38 100644
--- a/frappe/chat/doctype/chat_profile/chat_profile.py
+++ b/frappe/chat/doctype/chat_profile/chat_profile.py
@@ -82,7 +82,7 @@ def create(user, exists_ok = False, fie... |
getmoto__moto-1400 | mock_xray_client cannot be used as a context manager
PR #1255 added support for `aws_xray_sdk` which is great.
But there is a problem with it: `moto.mock_xray_client` is *only* a function decorator, and unlike all other `mock_*` methods it cannot be used as a context manager or directly with `start()`...`stop()`.
As ... | [
{
"content": "from functools import wraps\nimport os\nfrom moto.xray import xray_backends\nimport aws_xray_sdk.core\nfrom aws_xray_sdk.core.context import Context as AWSContext\nfrom aws_xray_sdk.core.emitters.udp_emitter import UDPEmitter\n\n\nclass MockEmitter(UDPEmitter):\n \"\"\"\n Replaces the code t... | [
{
"content": "from functools import wraps\nimport os\nfrom moto.xray import xray_backends\nimport aws_xray_sdk.core\nfrom aws_xray_sdk.core.context import Context as AWSContext\nfrom aws_xray_sdk.core.emitters.udp_emitter import UDPEmitter\n\n\nclass MockEmitter(UDPEmitter):\n \"\"\"\n Replaces the code t... | diff --git a/moto/xray/mock_client.py b/moto/xray/mock_client.py
index 6e2164d6378a..135796054a68 100644
--- a/moto/xray/mock_client.py
+++ b/moto/xray/mock_client.py
@@ -51,7 +51,7 @@ def _wrapped(*args, **kwargs):
aws_xray_sdk.core.xray_recorder._emitter = MockEmitter()
try:
- f(*args, ... |
google__clusterfuzz-2844 | add libgcc_s.so.1 to stacktrace ignore
e.g. https://clusterfuzz.com/testcase-detail/6316990573379584
| [
{
"content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/src/clusterfuzz/_internal/tests/core/crash_analysis/stack_parsing/stack_analyzer_data/libgcc_s.txt b/src/clusterfuzz/_internal/tests/core/crash_analysis/stack_parsing/stack_analyzer_data/libgcc_s.txt
new file mode 100644
index 0000000000..7bfb2326d7
--- /dev/null
+++ b/src/clusterfuzz/_internal/tests/core/... |
statsmodels__statsmodels-1027 | add_constant incorrectly detects constant column
statsmodels/statsmodels/tools/tools.py:245 checks for columns with unit variance, not zero variance when looking for constant columns. Any z-scored data will, of course, have unit variance. The line should be
if np.any(data.var(0) == 0):
| [
{
"content": "'''\nUtility functions models code\n'''\n\nimport numpy as np\nimport numpy.lib.recfunctions as nprf\nimport numpy.linalg as L\nfrom scipy.interpolate import interp1d\nfrom scipy.linalg import svdvals\nfrom statsmodels.distributions import (ECDF, monotone_fn_inverter,\n ... | [
{
"content": "'''\nUtility functions models code\n'''\n\nimport numpy as np\nimport numpy.lib.recfunctions as nprf\nimport numpy.linalg as L\nfrom scipy.interpolate import interp1d\nfrom scipy.linalg import svdvals\nfrom statsmodels.distributions import (ECDF, monotone_fn_inverter,\n ... | diff --git a/statsmodels/tools/tests/test_tools.py b/statsmodels/tools/tests/test_tools.py
index 68781181f33..a2ae9568124 100644
--- a/statsmodels/tools/tests/test_tools.py
+++ b/statsmodels/tools/tests/test_tools.py
@@ -376,6 +376,8 @@ def test_pandas_const_df():
def test_pandas_const_df_prepend():
dta = longl... |
nvaccess__nvda-14351 | Needless state announcement on JMenu and JMenuItem (Java Access Bridge)
<!-- Please read the text in this edit field before filling it in.
Please thoroughly read NVDA's wiki article on how to fill in this template, including how to provide the required files.
Issues may be closed if the required information is not pr... | [
{
"content": "# A part of NonVisual Desktop Access (NVDA)\r\n# Copyright (C) 2006-2022 NV Access Limited, Leonard de Ruijter, Joseph Lee, Renaud Paquay, pvagner\r\n# This file is covered by the GNU General Public License.\r\n# See the file COPYING for more details.\r\n\r\nimport ctypes\r\nimport re\r\nfrom typi... | [
{
"content": "# A part of NonVisual Desktop Access (NVDA)\r\n# Copyright (C) 2006-2022 NV Access Limited, Leonard de Ruijter, Joseph Lee, Renaud Paquay, pvagner\r\n# This file is covered by the GNU General Public License.\r\n# See the file COPYING for more details.\r\n\r\nimport ctypes\r\nimport re\r\nfrom typi... | diff --git a/source/NVDAObjects/JAB/__init__.py b/source/NVDAObjects/JAB/__init__.py
index f0abaf44d87..57f4ddc31a8 100644
--- a/source/NVDAObjects/JAB/__init__.py
+++ b/source/NVDAObjects/JAB/__init__.py
@@ -98,6 +98,7 @@
"multi_line":controlTypes.State.MULTILINE,
"focusable":controlTypes.State.FOCUSABLE,
"edi... |
jazzband__django-axes-1095 | FEATURE REQUEST: Logging without sensitive data by default (privacy by design)
Hi @aleksihakli
we found out that AXES logs IP and username to the configured Django log on a failed attempt. The IP address is critical by definition but the username is very often the email address of the user - so it's even more criti... | [
{
"content": "from django.conf import settings\nfrom django.utils.translation import gettext_lazy as _\n\n# disable plugin when set to False\nsettings.AXES_ENABLED = getattr(settings, \"AXES_ENABLED\", True)\n\n# see if the user has overridden the failure limit\nsettings.AXES_FAILURE_LIMIT = getattr(settings, \... | [
{
"content": "from django.conf import settings\nfrom django.utils.translation import gettext_lazy as _\n\n# disable plugin when set to False\nsettings.AXES_ENABLED = getattr(settings, \"AXES_ENABLED\", True)\n\n# see if the user has overridden the failure limit\nsettings.AXES_FAILURE_LIMIT = getattr(settings, \... | diff --git a/axes/conf.py b/axes/conf.py
index daf1c70b..27514459 100644
--- a/axes/conf.py
+++ b/axes/conf.py
@@ -124,7 +124,7 @@
settings.AXES_SENSITIVE_PARAMETERS = getattr(
settings,
"AXES_SENSITIVE_PARAMETERS",
- [],
+ ["username", "ip_address"],
)
# set the callable for the readable string th... |
beeware__toga-2582 | Dialog windows are not modal
### Describe the bug
Create a dialog like this:
```
async def on_button_test(widget):
await self.main_window.info_dialog(title="Dialog", message="An Info Dialog")
```
You can now click on the main window behind the dialog and the main window is activated although the dialog is st... | [
{
"content": "from abc import ABC\nfrom pathlib import Path\n\nfrom .libs import Gtk\n\n\nclass BaseDialog(ABC):\n def __init__(self, interface):\n self.interface = interface\n self.interface._impl = self\n\n\nclass MessageDialog(BaseDialog):\n def __init__(\n self,\n interface... | [
{
"content": "from abc import ABC\nfrom pathlib import Path\n\nfrom .libs import Gtk\n\n\nclass BaseDialog(ABC):\n def __init__(self, interface):\n self.interface = interface\n self.interface._impl = self\n\n\nclass MessageDialog(BaseDialog):\n def __init__(\n self,\n interface... | diff --git a/android/tests_backend/window.py b/android/tests_backend/window.py
index bc283f43a3..8b0d05c408 100644
--- a/android/tests_backend/window.py
+++ b/android/tests_backend/window.py
@@ -87,3 +87,6 @@ def assert_toolbar_item(self, index, label, tooltip, has_icon, enabled):
def press_toolbar_button(self, ... |
jazzband__pip-tools-808 | pip-compile replaces password in URL with ****
I am using Python 3.6.8, pip-tools 19.1 and setuptools 41.0.1 in an virtual environment.
Since some days, when i compile my requirements.in file which includes a package format with an git repo url like:
```
...
-e git+http://user:password@myhost.com/scm/path/git-r... | [
{
"content": "# coding: utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport sys\nfrom collections import OrderedDict\nfrom itertools import chain, groupby\n\nfrom ._compat import install_req_from_line\nfrom .click import style\n\nUNSAFE_PACKAGES = {\"setuptools\",... | [
{
"content": "# coding: utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport sys\nfrom collections import OrderedDict\nfrom itertools import chain, groupby\n\nfrom ._compat import install_req_from_line\nfrom .click import style\n\nUNSAFE_PACKAGES = {\"setuptools\",... | diff --git a/piptools/utils.py b/piptools/utils.py
index 6d159542f..085505df8 100644
--- a/piptools/utils.py
+++ b/piptools/utils.py
@@ -54,7 +54,7 @@ def format_requirement(ireq, marker=None, hashes=None):
in a less verbose way than using its `__str__` method.
"""
if ireq.editable:
- line = "-e {... |
zulip__zulip-5423 | Some of codeblock typeahead doesn't work
There are some codeblock typeaheads (from pygments) that doesn't work when I try it in Zulip, such as `c#`, I think `c#` breaks the codeblock syntax since there is an `#` in it. Btw, we could use `csharp` for alternative of `c#`.
~~--And why there's a `pycon` typeahead, I thi... | [
{
"content": "\"\"\"\nFenced Code Extension for Python Markdown\n=========================================\n\nThis extension adds Fenced Code Blocks to Python-Markdown.\n\n >>> import markdown\n >>> text = '''\n ... A paragraph before a fenced code block:\n ...\n ... ~~~\n ... Fenced code bloc... | [
{
"content": "\"\"\"\nFenced Code Extension for Python Markdown\n=========================================\n\nThis extension adds Fenced Code Blocks to Python-Markdown.\n\n >>> import markdown\n >>> text = '''\n ... A paragraph before a fenced code block:\n ...\n ... ~~~\n ... Fenced code bloc... | diff --git a/frontend_tests/node_tests/markdown.js b/frontend_tests/node_tests/markdown.js
index 129992a838587..5afa1c5b3207e 100644
--- a/frontend_tests/node_tests/markdown.js
+++ b/frontend_tests/node_tests/markdown.js
@@ -87,6 +87,15 @@ var social = {
stream_data.add_sub('Denmark', denmark);
stream_data.add_sub('s... |
cookiecutter__cookiecutter-1891 | 2.2.0 CLI reports version 2.1.2dev0
* Cookiecutter version: 2.2.0 (or 2.1.2dev0, depending on who you ask)
* Template project url: n/a
* Python version: 3.11
* Operating System: linux
### Description:
Get the accurate version of cookiecutter from the CLI
### What I've run:
```bash
cookiecutter --versio... | [
{
"content": "\"\"\"cookiecutter distutils configuration.\"\"\"\nfrom setuptools import setup\n\nversion = \"2.2.2.dev0\"\n\nwith open('README.md', encoding='utf-8') as readme_file:\n readme = readme_file.read()\n\nrequirements = [\n 'binaryornot>=0.4.4',\n 'Jinja2>=2.7,<4.0.0',\n 'click>=7.0,<9.0.0... | [
{
"content": "\"\"\"cookiecutter distutils configuration.\"\"\"\nfrom setuptools import setup\n\nversion = \"2.2.2\"\n\nwith open('README.md', encoding='utf-8') as readme_file:\n readme = readme_file.read()\n\nrequirements = [\n 'binaryornot>=0.4.4',\n 'Jinja2>=2.7,<4.0.0',\n 'click>=7.0,<9.0.0',\n ... | diff --git a/HISTORY.md b/HISTORY.md
index 735443f91..9f646170a 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -2,6 +2,17 @@
History is important, but our current roadmap can be found [here](https://github.com/cookiecutter/cookiecutter/projects)
+## 2.2.2 (2023-07-10)
+
+### CI/CD and QA changes
+
+* Improve gitignor... |
unionai-oss__pandera-1209 | Why python_requires <3.12?
In https://github.com/unionai-oss/pandera/commit/547aff1672fe455741f380c8bec1ed648074effc, `python_requires` was changed from `>=3.7` to `>=3.7,<=3.11`, and in a later commit, the upper bound was again changed to `<3.12`. This forces every downstream package or application to lower the upper ... | [
{
"content": "from setuptools import find_packages, setup\n\nwith open(\"README.md\") as f:\n long_description = f.read()\n\nversion = {}\nwith open(\"pandera/version.py\") as fp:\n exec(fp.read(), version)\n\n_extras_require = {\n \"strategies\": [\"hypothesis >= 5.41.1\"],\n \"hypotheses\": [\"sci... | [
{
"content": "from setuptools import find_packages, setup\n\nwith open(\"README.md\") as f:\n long_description = f.read()\n\nversion = {}\nwith open(\"pandera/version.py\") as fp:\n exec(fp.read(), version)\n\n_extras_require = {\n \"strategies\": [\"hypothesis >= 5.41.1\"],\n \"hypotheses\": [\"sci... | diff --git a/setup.py b/setup.py
index 3b134dddd..cf4317c8f 100644
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@
"wrapt",
],
extras_require=extras_require,
- python_requires=">=3.7,<3.12",
+ python_requires=">=3.7",
platforms="any",
classifiers=[
"Development Status :: 5 - ... |
bridgecrewio__checkov-4077 | Crash when running a scan against a plan output
**Describe the issue**
We have Checkov configured in a GitHub Action workflow. Our configuration creates a Terraform plan, and then we run Checkov against that plan. This practice was working but recently started failing with a TypeError when attempting a scan of a pla... | [
{
"content": "from __future__ import annotations\n\nimport copy\nimport itertools\nimport json\nimport logging\nimport re\n\n# secret categories for use as constants\nfrom typing import Any, Dict, TYPE_CHECKING\n\nfrom checkov.common.models.enums import CheckCategories, CheckResult\n\nif TYPE_CHECKING:\n fro... | [
{
"content": "from __future__ import annotations\n\nimport copy\nimport itertools\nimport json\nimport logging\nimport re\n\n# secret categories for use as constants\nfrom typing import Any, Dict, TYPE_CHECKING\n\nfrom checkov.common.models.enums import CheckCategories, CheckResult\n\nif TYPE_CHECKING:\n fro... | diff --git a/checkov/common/util/secrets.py b/checkov/common/util/secrets.py
index 0cf3bf1fc5..b0642fbd3a 100644
--- a/checkov/common/util/secrets.py
+++ b/checkov/common/util/secrets.py
@@ -120,7 +120,7 @@ def omit_multiple_secret_values_from_line(secrets: set[str], line_text: str) ->
def omit_secret_value_from_l... |
saleor__saleor-340 | Move py.test config to tox.ini
Pytest (like many tools) can read its configuration from `tox.ini`. There is no need to keep a separate `pytest.ini`.
| [
{
"content": "#! /usr/bin/env python\nfrom setuptools import setup, find_packages\nfrom setuptools.command.test import test as TestCommand\nimport os\nimport sys\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'saleor.settings')\n\n\nclass PyTest(TestCommand):\n user_options = [('pytest-args=', 'a', \"Arg... | [
{
"content": "#! /usr/bin/env python\nfrom setuptools import setup, find_packages\nfrom setuptools.command.test import test as TestCommand\nimport os\nimport sys\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'saleor.settings')\n\n\nclass PyTest(TestCommand):\n user_options = [('pytest-args=', 'a', \"Arg... | diff --git a/.coveragerc b/.coveragerc
index 658f243ddb8..038b9790754 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -1,6 +1,8 @@
[run]
branch = 1
-omit = */test_*.py
+omit =
+ */migrations/*
+ */test_*.py
source = saleor
[report]
diff --git a/.travis.yml b/.travis.yml
index dc05305a059..c8f84a47a18 100644
-... |
privacyidea__privacyidea-1247 | Audit log does take administrative realms into account
The policy ``auditlog`` in scope admin does not honor the administrative realms.
https://github.com/privacyidea/privacyidea/blob/4b8832dfa99d54d8c790cc3b682f08d9c23388fd/privacyidea/api/lib/prepolicy.py#L1313
| [
{
"content": "# -*- coding: utf-8 -*-\n#\n# 2017-04-22 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Add wrapper for U2F token\n# 2017-01-18 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Add token specific PIN policies based on\n# Quynh's pull request.\n# 2... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# 2017-04-22 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Add wrapper for U2F token\n# 2017-01-18 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Add token specific PIN policies based on\n# Quynh's pull request.\n# 2... | diff --git a/privacyidea/api/lib/prepolicy.py b/privacyidea/api/lib/prepolicy.py
index 59d6cb8991..2067f84c8c 100644
--- a/privacyidea/api/lib/prepolicy.py
+++ b/privacyidea/api/lib/prepolicy.py
@@ -1301,6 +1301,7 @@ def allowed_audit_realm(request=None, action=None):
action=ACTION.AUDIT,
scope=SCOPE.... |
google__turbinia-785 | import TurbiniaException to partitions.py
```
Traceback (most recent call last):
File "PATH/v2/lib/python3.8/site-packages/turbinia/workers/__init__.py", line 916, in run_wrapper
self.result = self.run(evidence, self.result)
File "PATH/v2/lib/python3.8/site-packages/turbinia/workers/partitions.py", line 144... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2021 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2021 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless... | diff --git a/turbinia/processors/partitions.py b/turbinia/processors/partitions.py
index 65008fd40..142145ed6 100644
--- a/turbinia/processors/partitions.py
+++ b/turbinia/processors/partitions.py
@@ -21,6 +21,7 @@
from dfvfs.lib import errors as dfvfs_errors
from turbinia.lib.dfvfs_classes import UnattendedVolumeS... |
ansible__ansible-modules-core-5047 | junos_command errors out with "TypeError: Type 'str' cannot be serialized"
<!--- Verify first that your issue/request is not already reported in GitHub -->
##### ISSUE TYPE
<!--- Pick one below and delete the rest: -->
- Bug Report
##### COMPONENT NAME
<!--- Name of the plugin/module/task -->
junos_command core modu... | [
{
"content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers... | [
{
"content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers... | diff --git a/network/junos/junos_command.py b/network/junos/junos_command.py
index 3286b0614e7..28223bfae49 100644
--- a/network/junos/junos_command.py
+++ b/network/junos/junos_command.py
@@ -197,6 +197,10 @@ def parse(module, command_type):
item['command_type'] = command_type
+ # show configuratio... |
pyca__cryptography-4077 | utils.int_from_bytes gives incorrect answers when passed "builtins.bytes" in python 2.7
```
$ mkvirtualenv repro
$ python --version
Python 2.7.12
$ pip install cryptography future
$ python
from cryptography import utils
from builtins import bytes
x = bytes.fromhex('deadbeef')
y = utils.int_from_bytes(x, 'big... | [
{
"content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport abc\nimport binascii\nimport inspect\n... | [
{
"content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport abc\nimport binascii\nimport inspect\n... | diff --git a/src/cryptography/utils.py b/src/cryptography/utils.py
index d69ed89fcef2..14909c66bb6e 100644
--- a/src/cryptography/utils.py
+++ b/src/cryptography/utils.py
@@ -57,8 +57,7 @@ def int_from_bytes(data, byteorder, signed=False):
assert byteorder == 'big'
assert not signed
- # call ... |
feast-dev__feast-3083 | Missing key error in snowflake_python_type_to_feast_value_type in type_map for numpy datetime64 with timezone
## Expected Behavior
Feast should be able to handle different source column data types when updating feature views with inferred features. Specifically all possible `datetime64` python data types with specifi... | [
{
"content": "import configparser\nimport os\nimport random\nimport string\nfrom logging import getLogger\nfrom pathlib import Path\nfrom tempfile import TemporaryDirectory\nfrom typing import Any, Dict, Iterator, List, Optional, Tuple, cast\n\nimport pandas as pd\nimport pyarrow\nfrom cryptography.hazmat.backe... | [
{
"content": "import configparser\nimport os\nimport random\nimport string\nfrom logging import getLogger\nfrom pathlib import Path\nfrom tempfile import TemporaryDirectory\nfrom typing import Any, Dict, Iterator, List, Optional, Tuple, cast\n\nimport pandas as pd\nimport pyarrow\nfrom cryptography.hazmat.backe... | diff --git a/sdk/python/feast/infra/utils/snowflake_utils.py b/sdk/python/feast/infra/utils/snowflake_utils.py
index 6ba9e544894..6b3500b605e 100644
--- a/sdk/python/feast/infra/utils/snowflake_utils.py
+++ b/sdk/python/feast/infra/utils/snowflake_utils.py
@@ -88,6 +88,8 @@ def get_snowflake_conn(config, autocommit=Tru... |
translate__translate-3603 | po2ts fails with ascii encode error on py2 (should use utf-8)
Test file:
[octave.zip](https://github.com/translate/translate/files/870288/octave.zip)
```
$ po2ts octave.po oct.ts
processing 1 files...
po2ts: WARNING: Error processing: input octave.po, output oct.ts, template None: 'ascii' codec can't encode char... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright 2004-2006 Zuza Software Foundation\n#\n# This file is part of translate.\n#\n# translate 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 Softwa... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright 2004-2006 Zuza Software Foundation\n#\n# This file is part of translate.\n#\n# translate 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 Softwa... | diff --git a/tests/cli/data/test_po2ts/one.po b/tests/cli/data/test_po2ts/one.po
new file mode 100644
index 0000000000..0be70c8135
--- /dev/null
+++ b/tests/cli/data/test_po2ts/one.po
@@ -0,0 +1,7 @@
+#: simple.cpp
+msgid "One"
+msgstr "Een"
+
+#: unicode.cpp
+msgid "†wo"
+msgstr "†wee"
diff --git a/tests/cli/data/test... |
Textualize__rich-2642 | [BUG] export_html leaks style into the page
**Describe the bug**
Following discussion https://github.com/Textualize/rich/discussions/2640
Injecting HTML generated with Rich's `Console.export_html()` method seems to leak some style into the page.
 == Sequential
Global name Sequential is not defined
line 25 elif type(model) == Graph:
Global name Graph is not defined
| [
{
"content": "import pydot\n# old pydot will not work with python3, must use one\n# that works with python3 such as pydot2 or pydot\n\n\ndef plot(model, to_file='model.png'):\n\n graph = pydot.Dot(graph_type='digraph')\n if type(model) == Sequential:\n previous_node = None\n written_nodes = ... | [
{
"content": "import pydot\n# old pydot will not work with python3, must use one\n# that works with python3 such as pydot2 or pydot\nfrom keras.models import Sequential, Graph\n\ndef plot(model, to_file='model.png'):\n\n graph = pydot.Dot(graph_type='digraph')\n if type(model) == Sequential:\n prev... | diff --git a/keras/utils/visualize_util.py b/keras/utils/visualize_util.py
index f3610abd09b9..55bfd557fd4b 100644
--- a/keras/utils/visualize_util.py
+++ b/keras/utils/visualize_util.py
@@ -1,7 +1,7 @@
import pydot
# old pydot will not work with python3, must use one
# that works with python3 such as pydot2 or pydo... |
microsoft__botbuilder-python-1303 | Bump azure-cosmos to v3.2.0
**Is your feature request related to a problem? Please describe.**
We're currently on `azure-cosmos` v3.1.2. Not a ton of changes in 3.2.0, but it looks like it will be their last stable version, now that they're working on v4:
 Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nimport os\nfrom setuptools import setup\n\nREQUIRES = [\n \"azure-cosmos==3.1.2\",\n \"azure-storage-blob==2.1.0\",\n \"botbuilder-schema==4.10.0\",\n \"botframework-connector==4.10.0\",\n... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nimport os\nfrom setuptools import setup\n\nREQUIRES = [\n \"azure-cosmos==3.2.0\",\n \"azure-storage-blob==2.1.0\",\n \"botbuilder-schema==4.10.0\",\n \"botframework-connector==4.10.0\",\n... | diff --git a/libraries/botbuilder-azure/setup.py b/libraries/botbuilder-azure/setup.py
index 7b1a77c64..50ae09a60 100644
--- a/libraries/botbuilder-azure/setup.py
+++ b/libraries/botbuilder-azure/setup.py
@@ -5,7 +5,7 @@
from setuptools import setup
REQUIRES = [
- "azure-cosmos==3.1.2",
+ "azure-cosmos==3.2.0... |
pytorch__text-81 | min_freq=0 bug
**Noticed:**
```
>>>some_field.build_vocab(some_dataset, min_freq=0)
>>>padding_idx = some_field.vocab.stoi['<pad'>]
>>>print(padding_idx, '<pad>')
12 <pad>
```
Looks like <pad> is not equal to 1 which is not okay.
Printed `stoi` and `itos` as well:
```
>>>print(some_field.vocab.stoi)
defa... | [
{
"content": "from __future__ import print_function\nimport array\nfrom collections import defaultdict\nimport os\nimport zipfile\n\nimport six\nfrom six.moves.urllib.request import urlretrieve\nimport torch\nfrom tqdm import trange, tqdm\n\nfrom .utils import reporthook\n\nURL = {\n 'glove.42B': 'http://nlp... | [
{
"content": "from __future__ import print_function\nimport array\nfrom collections import defaultdict\nimport os\nimport zipfile\n\nimport six\nfrom six.moves.urllib.request import urlretrieve\nimport torch\nfrom tqdm import trange, tqdm\n\nfrom .utils import reporthook\n\nURL = {\n 'glove.42B': 'http://nlp... | diff --git a/torchtext/vocab.py b/torchtext/vocab.py
index 3f1e52015f..67153dccbf 100644
--- a/torchtext/vocab.py
+++ b/torchtext/vocab.py
@@ -113,6 +113,7 @@ def __init__(self, counter, max_size=None, min_freq=1, wv_dir=os.getcwd(),
"""
self.freqs = counter.copy()
self.unk_init = unk_init
+ ... |
matrix-org__synapse-7630 | Update SSO UIAuth login identifier to m.login.sso
I'm not sure when exactly we do this, but [MSC2454](https://github.com/matrix-org/matrix-doc/pull/2454) was merged which identified `m.login.sso` as the identifier for SSO + UIAuth. Synapse is currently using `org.matrix.login.sso`. At some point we should switch to the... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2014-2016 OpenMarket Ltd\n# Copyright 2017 Vector Creations Ltd\n# Copyright 2018-2019 New Vector Ltd\n# Copyright 2019 The Matrix.org Foundation C.I.C.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except ... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2014-2016 OpenMarket Ltd\n# Copyright 2017 Vector Creations Ltd\n# Copyright 2018-2019 New Vector Ltd\n# Copyright 2019 The Matrix.org Foundation C.I.C.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except ... | diff --git a/changelog.d/7630.feature b/changelog.d/7630.feature
new file mode 100644
index 000000000000..cce31fc881de
--- /dev/null
+++ b/changelog.d/7630.feature
@@ -0,0 +1 @@
+Support the standardized `m.login.sso` user-interactive authentication flow.
diff --git a/synapse/api/constants.py b/synapse/api/constants.py... |
frappe__frappe-24160 | bug: user_info for Administrator getting set twice
## Description of the issue
https://github.com/frappe/frappe/blob/730e906dfdf0b6658a9810edf45808174922c391/frappe/boot.py#L267-L275
When logged in as Administrator the user_info in frappe.boot.user_info in frontend is getting set twice for Administrator user, one u... | [
{
"content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\"\"\"\nbootstrap client session\n\"\"\"\n\nimport frappe\nimport frappe.defaults\nimport frappe.desk.desk_page\nfrom frappe.core.doctype.navbar_settings.navbar_settings import get_app_logo, get_navb... | [
{
"content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\"\"\"\nbootstrap client session\n\"\"\"\n\nimport frappe\nimport frappe.defaults\nimport frappe.desk.desk_page\nfrom frappe.core.doctype.navbar_settings.navbar_settings import get_app_logo, get_navb... | diff --git a/frappe/boot.py b/frappe/boot.py
index 2ce950a55a7a..d0e6204e78a4 100644
--- a/frappe/boot.py
+++ b/frappe/boot.py
@@ -270,9 +270,6 @@ def get_user_info():
user_info = frappe._dict()
add_user_info(frappe.session.user, user_info)
- if frappe.session.user == "Administrator" and user_info.Administrator.e... |
pymedusa__Medusa-6527 | Parse Error During Postprocessor Email Notification
**Describe the bug**
Whenever I download "Jeopardy!" Medusa snatches the show and postprocesses it correctly EXCEPT that it always generates this warning:
> WARNING POSTPROCESSOR :: [f46bfac] Unable to parse "Jeopardy! - 2019 04 15 - Returning Champion Vs. , show... | [
{
"content": "# coding=utf-8\n\"\"\"Email notifier module.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport ast\nimport logging\nimport re\nimport smtplib\nfrom builtins import object\nfrom email.mime.multipart import MIMEMultipart\nfrom email.mime.text import MIMEText\nfrom email.utils import formatd... | [
{
"content": "# coding=utf-8\n\"\"\"Email notifier module.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport ast\nimport logging\nimport re\nimport smtplib\nfrom builtins import object\nfrom email.mime.multipart import MIMEMultipart\nfrom email.mime.text import MIMEText\nfrom email.utils import formatd... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5979f5fdf7..e3b4a08530 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@
- Fixed extra scripts running with Python 3 ([#6428](https://github.com/pymedusa/Medusa/pull/6428))
- Fixed Torrenting provider exception when offline ([#6430](https://github.com/pymedusa... |
Uberspace__lab-1000 | link to "view changelog" no longer works
"view changelog" on each page will lead to the old master branch which now should be `main`
| [
{
"content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Uberspace 7 lab documentation build configuration file, created by\n# sphinx-quickstart on Tue Feb 13 12:19:29 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible config... | [
{
"content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Uberspace 7 lab documentation build configuration file, created by\n# sphinx-quickstart on Tue Feb 13 12:19:29 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible config... | diff --git a/source/conf.py b/source/conf.py
index 987f5b37..6551eb99 100644
--- a/source/conf.py
+++ b/source/conf.py
@@ -112,7 +112,7 @@
"display_github": True,
"github_user": "Uberspace",
"github_repo": "lab",
- "github_version": "master",
+ "github_version": "main",
"conf_py_path": "/sourc... |
ivy-llc__ivy-27165 | Using PEP 585 annotations without a `from __future__ import annotations` import
In the following line:
https://github.com/unifyai/ivy/blob/ea0eaad440ff7f953c2fb4c621eccfe4a6fb2ecd/ivy/functional/backends/paddle/experimental/statistical.py#L422
It should be `Tuple[Any, ...]:` because we are not using the `from __futur... | [
{
"content": "# global\nfrom typing import Optional, Union, Tuple, Sequence, Any\nimport paddle\nimport ivy.functional.backends.paddle as paddle_backend\nimport ivy\nfrom copy import deepcopy\n\n# local\nfrom ivy.func_wrapper import (\n with_unsupported_device_and_dtypes,\n with_supported_dtypes,\n)\nfrom... | [
{
"content": "# global\nfrom typing import Optional, Union, Tuple, Sequence, Any\nimport paddle\nimport ivy.functional.backends.paddle as paddle_backend\nimport ivy\nfrom copy import deepcopy\n\n# local\nfrom ivy.func_wrapper import (\n with_unsupported_device_and_dtypes,\n with_supported_dtypes,\n)\nfrom... | diff --git a/ivy/functional/backends/paddle/experimental/statistical.py b/ivy/functional/backends/paddle/experimental/statistical.py
index 6ecfaa16caf5d..84ed593da8fd9 100644
--- a/ivy/functional/backends/paddle/experimental/statistical.py
+++ b/ivy/functional/backends/paddle/experimental/statistical.py
@@ -419,7 +419,... |
ibis-project__ibis-2055 | BUG: [omniscidb] add OSError as an possible exception when importing GPUDataFrame
When using ibis where cudf is installed, but if it is not running on GPU, it raises this error:
```
/opt/conda/lib/python3.7/site-packages/ibis/omniscidb/client.py in <module>
26
27 try:
---> 28 from cudf.dataframe.d... | [
{
"content": "\"\"\"Ibis OmniSciDB Client.\"\"\"\nimport pandas as pd\nimport pkg_resources\nimport pymapd\nimport regex as re\nfrom pymapd._parsers import _extract_column_details\nfrom pymapd.cursor import Cursor\nfrom pymapd.dtypes import TDatumType as pymapd_dtype\n\nimport ibis.common.exceptions as com\nimp... | [
{
"content": "\"\"\"Ibis OmniSciDB Client.\"\"\"\nimport pandas as pd\nimport pkg_resources\nimport pymapd\nimport regex as re\nfrom pymapd._parsers import _extract_column_details\nfrom pymapd.cursor import Cursor\nfrom pymapd.dtypes import TDatumType as pymapd_dtype\n\nimport ibis.common.exceptions as com\nimp... | diff --git a/docs/source/release.rst b/docs/source/release.rst
index 52efa4d0293c..7a58fd952f3d 100644
--- a/docs/source/release.rst
+++ b/docs/source/release.rst
@@ -9,6 +9,7 @@ Release Notes
* :feature:`2048` Introduce a top level vectorized UDF module (experimental). Implement element-wise UDF for pandas and PySp... |
pyca__cryptography-591 | Bind X509_verify_cert_error_string
pyOpenSSL 0.14 needs this. https://github.com/pyca/pyopenssl/issues/30
| [
{
"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, so... | [
{
"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, so... | diff --git a/cryptography/hazmat/bindings/openssl/x509.py b/cryptography/hazmat/bindings/openssl/x509.py
index e4021a12c7f2..74259b3d5e27 100644
--- a/cryptography/hazmat/bindings/openssl/x509.py
+++ b/cryptography/hazmat/bindings/openssl/x509.py
@@ -167,6 +167,8 @@
void X509_STORE_free(X509_STORE *);
int X509_STORE_... |
cisagov__manage.get.gov-1618 | Content Review: Request flow pages
### Issue description
Review the pages identified within the following sections of [this spreadsheet](https://docs.google.com/spreadsheets/d/18wwmEioSr6BU9Y6G6ihqzS7P1OaE65Ifoipg9-Gxcjo/edit#gid=1246252690) (under "Registrar" tab):
- Domain request
- Error pages
While review... | [
{
"content": "from __future__ import annotations # allows forward references in annotations\nfrom itertools import zip_longest\nimport logging\nfrom typing import Callable\nfrom phonenumber_field.formfields import PhoneNumberField # type: ignore\n\nfrom django import forms\nfrom django.core.validators import ... | [
{
"content": "from __future__ import annotations # allows forward references in annotations\nfrom itertools import zip_longest\nimport logging\nfrom typing import Callable\nfrom phonenumber_field.formfields import PhoneNumberField # type: ignore\n\nfrom django import forms\nfrom django.core.validators import ... | diff --git a/src/registrar/forms/application_wizard.py b/src/registrar/forms/application_wizard.py
index 2802b1893..394007211 100644
--- a/src/registrar/forms/application_wizard.py
+++ b/src/registrar/forms/application_wizard.py
@@ -170,7 +170,7 @@ class TribalGovernmentForm(RegistrarForm):
)
tribe_name = f... |
deis__deis-427 | permalinks in the documentation
It would be nice to permalink a specific header in the Deis documentation, much like how Stackato's documentation is built: http://docs.stackato.com/client/index.html#getting-help
This is probably a flag set somewhere in Sphinx to get this set up, but would be awesome for referential pu... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# deis documentation build configuration file, created by\n# sphinx-quickstart on Fri Jul 26 12:12:00 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\n# ... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# deis documentation build configuration file, created by\n# sphinx-quickstart on Fri Jul 26 12:12:00 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\n# ... | diff --git a/docs/conf.py b/docs/conf.py
index 89d654b8d7..ced6a1ee8e 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -147,7 +147,7 @@
# typographically correct entities.
html_use_smartypants = True
-html_add_permalinks = None
+html_add_permalinks = True
# Custom sidebar templates, maps document names to templat... |
strawberry-graphql__strawberry-945 | Can't get DataLoader to work
Hello! I'm trying examples from this page https://strawberry.rocks/docs/guides/dataloaders.
Running the following code on Python 3.8:
```python
import strawberry
from strawberry.dataloader import DataLoader
from typing import List
@strawberry.type
class User:
id: strawberry.... | [
{
"content": "import importlib\nimport sys\n\nimport click\nimport hupper\nimport uvicorn\nfrom starlette.applications import Starlette\nfrom starlette.middleware.cors import CORSMiddleware\n\nfrom strawberry import Schema\nfrom strawberry.asgi import GraphQL\nfrom strawberry.utils.importer import import_module... | [
{
"content": "import importlib\nimport sys\n\nimport click\nimport hupper\nimport uvicorn\nfrom starlette.applications import Starlette\nfrom starlette.middleware.cors import CORSMiddleware\n\nfrom strawberry import Schema\nfrom strawberry.asgi import GraphQL\nfrom strawberry.utils.importer import import_module... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..920b50d7a0
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,4 @@
+Release type: patch
+
+This releases fixes an issue with the debug server that prevented the
+usage of dataloaders, see: https://github.com/strawberry-graphql/strawberry/issues/940
diff... |
scverse__scanpy-1255 | Scanpy spatial bug in visualisation defaults
Looks like the default values for plotting Visium spots are way outsized.
Try this in your lymph node notebook:
```python
sc.pl.spatial(adata, img_key = "hires", cmap='magma',
color=['total_counts', 'n_genes_by_counts'],
gene_symbols='SYMBO... | [
{
"content": "import collections.abc as cabc\nfrom typing import Union, Optional, Sequence, Any, Mapping, List, Tuple, Callable\n\nimport numpy as np\nfrom anndata import AnnData\nfrom cycler import Cycler\nfrom matplotlib.axes import Axes\nfrom matplotlib.figure import Figure\nfrom pandas.api.types import is_c... | [
{
"content": "import collections.abc as cabc\nfrom typing import Union, Optional, Sequence, Any, Mapping, List, Tuple, Callable\n\nimport numpy as np\nfrom anndata import AnnData\nfrom cycler import Cycler\nfrom matplotlib.axes import Axes\nfrom matplotlib.figure import Figure\nfrom pandas.api.types import is_c... | diff --git a/scanpy/plotting/_tools/scatterplots.py b/scanpy/plotting/_tools/scatterplots.py
index 51ed3870d3..fcaf94e827 100644
--- a/scanpy/plotting/_tools/scatterplots.py
+++ b/scanpy/plotting/_tools/scatterplots.py
@@ -778,7 +778,7 @@ def spatial(
(k for k in ['hires', 'lowres'] if k in spatial_data['i... |
electricitymaps__electricitymaps-contrib-1223 | AR: Plant mappings missing
March 16th 2018, 12:14:50.317 | WARNING | AR | ALUATG08 is missing from the AR plant mapping!
March 16th 2018, 12:14:50.317 | WARNING | AR | ALUATG07 is missing from the AR plant mapping!
March 16th 2018, 12:14:50.316 | WARNING | AR | ALUATV01 is missing from the AR plant mapping!
| [
{
"content": "#!/usr/bin/env python3\n\nimport itertools\nimport re\nimport string\n\nimport arrow\nimport requests\nfrom bs4 import BeautifulSoup\n\ntry:\n unicode # Python 2\nexcept NameError:\n unicode = str # Python 3\n\n# This parser gets hourly electricity generation data from portalweb.cammesa.co... | [
{
"content": "#!/usr/bin/env python3\n\nimport itertools\nimport re\nimport string\n\nimport arrow\nimport requests\nfrom bs4 import BeautifulSoup\n\ntry:\n unicode # Python 2\nexcept NameError:\n unicode = str # Python 3\n\n# This parser gets hourly electricity generation data from portalweb.cammesa.co... | diff --git a/parsers/AR.py b/parsers/AR.py
index 30e0ac7d78..76f79d8432 100644
--- a/parsers/AR.py
+++ b/parsers/AR.py
@@ -43,6 +43,10 @@
'ALEMDI01': 'oil',
'ALICHI': 'hydro',
'ALOMDI01': 'gas',
+ 'ALUATG06': 'gas',
+ 'ALUATG07': 'gas',
+ 'ALUATG08': 'gas',
+ 'ALUATV01': 'gas',
'ALUMDI01... |
pyca__cryptography-3731 | release infrastrucutre doesn't handle "out of order" releases
Specifically if we issue an `0.X` release, then an `0.X+1` release, and then we go to do an `0.X.1` release, the wheel automation won't work, since it builds a wheel for the latest release.
| [
{
"content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport getpass\nimport io\nimport os\nimport ... | [
{
"content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport getpass\nimport io\nimport os\nimport ... | diff --git a/.jenkins/Jenkinsfile-cryptography-wheel-builder b/.jenkins/Jenkinsfile-cryptography-wheel-builder
index 55429ca473c3..d06e6efa6ca8 100644
--- a/.jenkins/Jenkinsfile-cryptography-wheel-builder
+++ b/.jenkins/Jenkinsfile-cryptography-wheel-builder
@@ -1,3 +1,10 @@
+properties([
+ parameters([
+ str... |
hedyorg__hedy-467 | Sometimes a "server error" HTML page is served with a 200 response code
As discovered in #464, when the internal server error is triggered by submitting a program to parse without supplying a cookie:
```
$ curl 'https://hedy-alpha.herokuapp.com/parse' \
-H 'Content-Type: application/json' \
--da... | [
{
"content": "import sys\nif (sys.version_info.major < 3 or sys.version_info.minor < 6):\n print ('Hedy requires Python 3.6 or newer to run. However, your version of Python is', '.'.join ([str (sys.version_info.major), str (sys.version_info.minor), str (sys.version_info.micro)]))\n quit ()\n\n# coding=utf... | [
{
"content": "import sys\nif (sys.version_info.major < 3 or sys.version_info.minor < 6):\n print ('Hedy requires Python 3.6 or newer to run. However, your version of Python is', '.'.join ([str (sys.version_info.major), str (sys.version_info.minor), str (sys.version_info.micro)]))\n quit ()\n\n# coding=utf... | diff --git a/app.py b/app.py
index 723ad80d692..b14a2004533 100644
--- a/app.py
+++ b/app.py
@@ -553,7 +553,7 @@ def error():
def internal_error(exception):
import traceback
print(traceback.format_exc())
- return "<h1>500 Internal Server Error</h1>"
+ return "<h1>500 Internal Server Error</h1>", 500
... |
wagtail__wagtail-11660 | Wagtail Documentation favicon icon is missing (Not Found)
<!--
Summarise the documentation change you’re suggesting in the Issue title.
-->
### Pertinent section of the Wagtail docs
<!--
Copy the section link here.
-->
https://docs.wagtail.org/en/stable/getting_started/index.html
https://docs.wagtail.or... | [
{
"content": "#!/usr/bin/env python\n\nfrom wagtail import __version__\nfrom wagtail.utils.setup import assets, check_bdist_egg, sdist\n\ntry:\n from setuptools import find_packages, setup\nexcept ImportError:\n from distutils.core import setup\n\n\n# Hack to prevent \"TypeError: 'NoneType' object is not ... | [
{
"content": "#!/usr/bin/env python\n\nfrom wagtail import __version__\nfrom wagtail.utils.setup import assets, check_bdist_egg, sdist\n\ntry:\n from setuptools import find_packages, setup\nexcept ImportError:\n from distutils.core import setup\n\n\n# Hack to prevent \"TypeError: 'NoneType' object is not ... | diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index bff69275dbb4..31f560206117 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -19,12 +19,14 @@ Changelog
* Fix: Correctly handle `date` objects on `human_readable_date` template tag (Jhonatan Lopes)
* Fix: Ensure re-ordering buttons work correctly when using a nested ... |
rlworkgroup__garage-971 | pytest flag --strict-markers requires version 4.5.0
pytest flag `--strict-markers` in https://github.com/rlworkgroup/garage/blob/master/setup.cfg#L79 requires version >= 4.5.0.
See https://docs.pytest.org/en/latest/changelog.html#pytest-4-5-0-2019-05-11
| [
{
"content": "\"\"\"setuptools based setup module.\"\"\"\nfrom setuptools import find_packages\nfrom setuptools import setup\n\nTF_VERSION = '<1.16,>=1.15.0'\nGYM_VERSION = '==0.12.4'\n\n# Required dependencies\nREQUIRED = [\n # Please keep alphabetized\n 'akro==0.0.6',\n 'cached_property',\n 'click... | [
{
"content": "\"\"\"setuptools based setup module.\"\"\"\nfrom setuptools import find_packages\nfrom setuptools import setup\n\nTF_VERSION = '<1.16,>=1.15.0'\nGYM_VERSION = '==0.12.4'\n\n# Required dependencies\nREQUIRED = [\n # Please keep alphabetized\n 'akro==0.0.6',\n 'cached_property',\n 'click... | diff --git a/setup.py b/setup.py
index 204c7a25bf..42cde19847 100644
--- a/setup.py
+++ b/setup.py
@@ -69,7 +69,7 @@
'pycodestyle>=2.5.0',
'pydocstyle>=4.0.0',
'pylint>=2.4.3',
- 'pytest>=3.6', # Required for pytest-cov on Python 3.6
+ 'pytest>=4.5.0', # Required for strict-markers
'pytest-c... |
ethereum__consensus-specs-2750 | Simplify sync protocol and update to calculate optimistic heads
1. Simplify `valid_updates` to `best_valid_update` so the `LightClientStore` only needs to store O(1) data
2. Track an optimistic head, by looking for the highest-slot header which passes a safety threshold
| [
{
"content": "from setuptools import setup, find_packages, Command\nfrom setuptools.command.build_py import build_py\nfrom distutils import dir_util\nfrom distutils.util import convert_path\nfrom pathlib import Path\nimport os\nimport re\nimport string\nimport textwrap\nfrom typing import Dict, NamedTuple, List... | [
{
"content": "from setuptools import setup, find_packages, Command\nfrom setuptools.command.build_py import build_py\nfrom distutils import dir_util\nfrom distutils.util import convert_path\nfrom pathlib import Path\nimport os\nimport re\nimport string\nimport textwrap\nfrom typing import Dict, NamedTuple, List... | diff --git a/presets/mainnet/altair.yaml b/presets/mainnet/altair.yaml
index 9a17b78032..21e3cc3285 100644
--- a/presets/mainnet/altair.yaml
+++ b/presets/mainnet/altair.yaml
@@ -22,3 +22,7 @@ EPOCHS_PER_SYNC_COMMITTEE_PERIOD: 256
# ---------------------------------------------------------------
# 1
MIN_SYNC_COMMITT... |
cloud-custodian__cloud-custodian-3410 | Missing required parameter in input: "Enable" when using c7n-guardian
I am running the command:
```c7n-guardian enable --config guard-duty-accounts.yaml --master <account1_id>```
with the following config:
```
accounts:
- name: account1_name
email: xxxx1@yyy.com
account_id: "accountid1"
role: "arn:aws... | [
{
"content": "# Copyright 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 required b... | [
{
"content": "# Copyright 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 required b... | diff --git a/tools/c7n_guardian/c7n_guardian/cli.py b/tools/c7n_guardian/c7n_guardian/cli.py
index ad5619bb3c2..b85d1220533 100644
--- a/tools/c7n_guardian/c7n_guardian/cli.py
+++ b/tools/c7n_guardian/c7n_guardian/cli.py
@@ -340,7 +340,7 @@ def get_or_create_detector_id(client):
if detectors:
return detec... |
arviz-devs__arviz-596 | Installing arviz breaks pymc3 installation
**Describe the bug**
Installing Arviz breaks a pymc3 installation, which is unfortunate because they're built to be compatible. After installation, importing pymc3 throws the following error.
> WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS ... | [
{
"content": "# pylint: disable=wildcard-import,invalid-name,wrong-import-position\n\"\"\"ArviZ is a library for exploratory analysis of Bayesian models.\"\"\"\n__version__ = \"0.3.2\"\n\nimport os\nimport logging\nfrom matplotlib.pyplot import style\n\n# add ArviZ's styles to matplotlib's styles\narviz_style_p... | [
{
"content": "# pylint: disable=wildcard-import,invalid-name,wrong-import-position\n\"\"\"ArviZ is a library for exploratory analysis of Bayesian models.\"\"\"\n__version__ = \"0.3.3\"\n\nimport os\nimport logging\nfrom matplotlib.pyplot import style\n\n# add ArviZ's styles to matplotlib's styles\narviz_style_p... | diff --git a/arviz/__init__.py b/arviz/__init__.py
index b9a909cd9c..3b1765c9f8 100644
--- a/arviz/__init__.py
+++ b/arviz/__init__.py
@@ -1,6 +1,6 @@
# pylint: disable=wildcard-import,invalid-name,wrong-import-position
"""ArviZ is a library for exploratory analysis of Bayesian models."""
-__version__ = "0.3.2"
+__ve... |
liqd__a4-meinberlin-539 | use list markup for lists of elements
Part of the BITV-Test: "1.3.1b HTML-Strukturelemente für Listen"
----
- [x] list of blueprints
- [x] list of projects
unsure:
- [ ] list of questions in poll contents
- [ ] list of choices in poll contents
| [
{
"content": "from django import template\nfrom django.template.loader import render_to_string\n\nregister = template.Library()\n\n\n@register.assignment_tag\ndef include_template_string(template, **kwargs):\n rendered_template = render_to_string(template, kwargs)\n return str(rendered_template)\n\n\n@reg... | [
{
"content": "from django import template\nfrom django.template.loader import render_to_string\n\nregister = template.Library()\n\n\n@register.assignment_tag\ndef include_template_string(template, **kwargs):\n rendered_template = render_to_string(template, kwargs)\n return str(rendered_template)\n\n\n@reg... | diff --git a/apps/budgeting/templates/meinberlin_budgeting/includes/proposal_list_item.html b/apps/budgeting/templates/meinberlin_budgeting/includes/proposal_list_item.html
index c03d68f83b..de73094c9b 100644
--- a/apps/budgeting/templates/meinberlin_budgeting/includes/proposal_list_item.html
+++ b/apps/budgeting/templ... |
frappe__frappe-21275 | New Dashboard Chart throws TypeError: format requires a mapping
## Description of the issue
I have created an elementary, stripped-down report to demonstrate the problem. It has one filter called "period" of type "Select" and has three options, as shown below:
Period (filter field)
 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nimport datetime\nimport json\nimport os\nfrom datetime import timedelta\n\nimport frappe\nimport frappe.desk.reportview\nfrom frappe import _\nfrom frappe.core.utils import ljust_list\nfrom frappe.... | [
{
"content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nimport datetime\nimport json\nimport os\nfrom datetime import timedelta\n\nimport frappe\nimport frappe.desk.reportview\nfrom frappe import _\nfrom frappe.core.utils import ljust_list\nfrom frappe.... | diff --git a/frappe/desk/query_report.py b/frappe/desk/query_report.py
index 6f4bc716aab2..5b7c450ae966 100644
--- a/frappe/desk/query_report.py
+++ b/frappe/desk/query_report.py
@@ -171,6 +171,7 @@ def get_script(report_name):
"script": render_include(script),
"html_format": html_format,
"execution_time": fra... |
e-valuation__EvaP-772 | Create semester form
The form for creating a semester should not have an `is archived` checkbox.
| [
{
"content": "from django import forms\nfrom django.db.models import Q\nfrom django.core.exceptions import SuspiciousOperation\nfrom django.forms.models import BaseInlineFormSet\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.utils.text import normalize_newlines\nfrom django.core.exception... | [
{
"content": "from django import forms\nfrom django.db.models import Q\nfrom django.core.exceptions import SuspiciousOperation\nfrom django.forms.models import BaseInlineFormSet\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.utils.text import normalize_newlines\nfrom django.core.exception... | diff --git a/evap/staff/forms.py b/evap/staff/forms.py
index 1f7300d092..9dbf48ca70 100644
--- a/evap/staff/forms.py
+++ b/evap/staff/forms.py
@@ -40,7 +40,7 @@ class UserBulkDeleteForm(forms.Form, BootstrapMixin):
class SemesterForm(forms.ModelForm, BootstrapMixin):
class Meta:
model = Semester
- ... |
sunpy__sunpy-3380 | Add .shape attribute to TimeSeries
It would be useful if `TimeSeries` had a .shape attribute, that returned a tuple `(nrows, ncols)`, similarly to a numpy array or pandas dataframe.
(p.s. I may have got rows and cols the wrong way round, this needs checking...)
| [
{
"content": "\"\"\"\nThis module provies `sunpy.timeseries.GenericTimeSeries` which all other\n`sunpy.timeseries.TimeSeries` classes inherit from.\n\"\"\"\nimport copy\nimport warnings\nfrom collections import OrderedDict\n\nimport matplotlib as mpl\nimport matplotlib.pyplot as plt\nimport pandas as pd\n\nimpo... | [
{
"content": "\"\"\"\nThis module provies `sunpy.timeseries.GenericTimeSeries` which all other\n`sunpy.timeseries.TimeSeries` classes inherit from.\n\"\"\"\nimport copy\nimport warnings\nfrom collections import OrderedDict\n\nimport matplotlib as mpl\nimport matplotlib.pyplot as plt\nimport pandas as pd\n\nimpo... | diff --git a/changelog/3380.feature.rst b/changelog/3380.feature.rst
new file mode 100644
index 00000000000..fe04ed5eea6
--- /dev/null
+++ b/changelog/3380.feature.rst
@@ -0,0 +1 @@
+Add `shape` property to TimeSeries.
\ No newline at end of file
diff --git a/sunpy/timeseries/tests/test_timeseriesbase.py b/sunpy/timese... |
kartoza__prj.app-346 | Display thumbnails in a modal window when we click on fullscreen
We can see a lot of GIF in the QGIS changelog. These thumbnails are too small to see so I have to click on the button to see it fullscreen. For now, it redirects to the GIF url like http://changelog.qgis.org/media/images/entries/53f72a9cf1bf32d73eb5174c37... | [
{
"content": "# coding=utf-8\n\n\"\"\"Project level settings.\n\nAdjust these values as needed but don't commit passwords etc. to any public\nrepository!\n\"\"\"\n\nimport os # noqa\nfrom django.utils.translation import ugettext_lazy as _\nfrom .utils import absolute_path\nfrom .contrib import * # noqa\n\n# P... | [
{
"content": "# coding=utf-8\n\n\"\"\"Project level settings.\n\nAdjust these values as needed but don't commit passwords etc. to any public\nrepository!\n\"\"\"\n\nimport os # noqa\nfrom django.utils.translation import ugettext_lazy as _\nfrom .utils import absolute_path\nfrom .contrib import * # noqa\n\n# P... | diff --git a/django_project/changes/static/js/entry.js b/django_project/changes/static/js/entry.js
new file mode 100644
index 000000000..25ff41fb2
--- /dev/null
+++ b/django_project/changes/static/js/entry.js
@@ -0,0 +1,17 @@
+/**
+ * Created by Dimas Ciputra <dimas@kartoza.com> on 15/07/16.
+ */
+
+$(".pop-image").on(... |
liqd__a4-opin-400 | fix function in api.js to use contenttype json and fix all react components
| [
{
"content": "\"\"\"\nDjango settings for euth_wagtail project.\n\nGenerated by 'django-admin startproject' using Django 1.9.1.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com... | [
{
"content": "\"\"\"\nDjango settings for euth_wagtail project.\n\nGenerated by 'django-admin startproject' using Django 1.9.1.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com... | diff --git a/euth/contrib/static/js/api.js b/euth/contrib/static/js/api.js
index 8171a3c50..b298097a2 100644
--- a/euth/contrib/static/js/api.js
+++ b/euth/contrib/static/js/api.js
@@ -18,33 +18,6 @@ var api = (function () {
}
function _sendRequest (endpoint, id, options, data, contentType) {
- var $body = $... |
pre-commit__pre-commit-376 | Newly gitignored (but file still exists) files are linted
(they should not be)
| [
{
"content": "from __future__ import unicode_literals\n\nimport functools\nimport logging\nimport os\nimport os.path\nimport re\n\nfrom pre_commit.errors import FatalError\nfrom pre_commit.util import CalledProcessError\nfrom pre_commit.util import cmd_output\nfrom pre_commit.util import memoize_by_cwd\n\n\nlog... | [
{
"content": "from __future__ import unicode_literals\n\nimport functools\nimport logging\nimport os\nimport os.path\nimport re\n\nfrom pre_commit.errors import FatalError\nfrom pre_commit.util import CalledProcessError\nfrom pre_commit.util import cmd_output\nfrom pre_commit.util import memoize_by_cwd\n\n\nlog... | diff --git a/pre_commit/git.py b/pre_commit/git.py
index 796a0b8ae..1f16b6e0d 100644
--- a/pre_commit/git.py
+++ b/pre_commit/git.py
@@ -69,7 +69,11 @@ def get_conflicted_files():
@memoize_by_cwd
def get_staged_files():
- return cmd_output('git', 'diff', '--staged', '--name-only')[1].splitlines()
+ return cmd... |
conda__conda-build-1716 | UnboundLocalError with --skip-existing and --no-locking flags
Hit this today on conda-build 2.1.2. Also tried with the tip of master and I get the same result. For reproduciblity, this is the output for trying to build the conda.recipe folder inside of conda-build itself:
```
$ conda build conda.recipe --no-lockin... | [
{
"content": "'''\nFunctions related to creating repodata index files.\n'''\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport bz2\nimport sys\nimport json\nimport tarfile\nfrom os.path import isfile, join, getmtime\n\nfrom conda_build.utils import file_info, get_lock, try_... | [
{
"content": "'''\nFunctions related to creating repodata index files.\n'''\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport bz2\nimport sys\nimport json\nimport tarfile\nfrom os.path import isfile, join, getmtime\n\nfrom conda_build.utils import file_info, get_lock, try_... | diff --git a/conda_build/index.py b/conda_build/index.py
index 6260354f61..7e7c4dee19 100644
--- a/conda_build/index.py
+++ b/conda_build/index.py
@@ -77,8 +77,9 @@ def update_index(dir_path, config, force=False, check_md5=False, remove=True, lo
if not lock:
lock = get_lock(dir_path)
+ locks = []
... |
djangopackages__djangopackages-851 | Packages with custom git repos are not being scored
See this tweet: https://twitter.com/morenoh149/status/1580971411145125888
Package scoring should factor in packages that exist on PyPI, but might have a custom repo location. They appear to be scored as a 0 and won't show up in Grids.
| [
{
"content": "\"\"\"views for the :mod:`grid` app\"\"\"\n\nimport json\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import login_required, permission_required\nfrom django.db.models import Count, Q\nfrom django.http import HttpResponseRedirect, Ht... | [
{
"content": "\"\"\"views for the :mod:`grid` app\"\"\"\n\nimport json\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import login_required, permission_required\nfrom django.db.models import Count, Q\nfrom django.http import HttpResponseRedirect, Ht... | diff --git a/grid/views.py b/grid/views.py
index d76c9f938..2f9a25dc8 100644
--- a/grid/views.py
+++ b/grid/views.py
@@ -304,7 +304,7 @@ def grid_detail(request, slug, template_name="grid/grid_detail.html"):
}
grid_packages = grid.grid_packages.select_related("package").filter(
- package__score__gt=m... |
zigpy__zha-device-handlers-1073 | [Device Support Request] Tesla Smart Thermostatic Valve _TZE200_husqqvux TS0601
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I'm trying to add _TZE200_husqqvux TS0601 (Tesla Smart Thermostatic Valve) a... | [
{
"content": "\"\"\"Map from manufacturer to standard clusters for thermostatic valves.\"\"\"\nimport logging\nfrom typing import Optional, Union\n\nfrom zigpy.profiles import zha\nimport zigpy.types as t\nfrom zigpy.zcl import foundation\nfrom zigpy.zcl.clusters.general import Basic, Groups, Identify, OnOff, O... | [
{
"content": "\"\"\"Map from manufacturer to standard clusters for thermostatic valves.\"\"\"\nimport logging\nfrom typing import Optional, Union\n\nfrom zigpy.profiles import zha\nimport zigpy.types as t\nfrom zigpy.zcl import foundation\nfrom zigpy.zcl.clusters.general import Basic, Groups, Identify, OnOff, O... | diff --git a/zhaquirks/tuya/valve.py b/zhaquirks/tuya/valve.py
index 6da0470180..df9627b8f1 100644
--- a/zhaquirks/tuya/valve.py
+++ b/zhaquirks/tuya/valve.py
@@ -1077,6 +1077,7 @@ class ZonnsmartTV01_ZG(TuyaThermostat):
# output_clusters=[10, 25]>
MODELS_INFO: [
("_TZE200_e9ba97vf", "TS... |
liqd__a4-meinberlin-1813 | Red input fields on first page load
When loading some pages, input fields are redish, suggesting there where validation errors, but there was not input submit yet.

| [
{
"content": "import re\n\nfrom django import forms\nfrom django.core.exceptions import ValidationError\nfrom django.core.validators import EmailValidator\nfrom django.forms import widgets\nfrom django.utils.translation import ugettext_lazy as _\n\n\nclass CommaSeparatedEmailField(forms.Field):\n email_valid... | [
{
"content": "import re\n\nfrom django import forms\nfrom django.core.exceptions import ValidationError\nfrom django.core.validators import EmailValidator\nfrom django.forms import widgets\nfrom django.utils.translation import ugettext_lazy as _\n\n\nclass CommaSeparatedEmailField(forms.Field):\n email_valid... | diff --git a/meinberlin/apps/projects/templates/meinberlin_projects/includes/users_from_email_form.html b/meinberlin/apps/projects/templates/meinberlin_projects/includes/users_from_email_form.html
index 62912b13aa..344d29b297 100644
--- a/meinberlin/apps/projects/templates/meinberlin_projects/includes/users_from_email_... |
ckan__ckan-7881 | Invalid session timeout value on CKAN 2.10 (logged out users unexpectedly)
## CKAN version
2.10
## Describe the bug
According to our config declaration for [`beaker.session.timeout`](https://github.com/ckan/ckan/blob/656a39de2e7ed0ce47e15080f0f5d42b66b4929b/ckan/config/config_declaration.yaml#L306):
> Default... | [
{
"content": "# encoding: utf-8\nimport click\nimport logging\n\nimport ckan.model as model\n\nfrom typing import Any, Mapping\n\nfrom ckan.plugins import toolkit\n\n\nlog = logging.getLogger(__name__)\n\n\n_banner = \"\"\"\n****** Welcome to the CKAN shell ******\n\nThis session has some variables pre-populate... | [
{
"content": "# encoding: utf-8\nimport click\nimport logging\n\nimport ckan.model as model\n\nfrom typing import Any, Mapping\n\nfrom ckan.plugins import toolkit\n\n\nlog = logging.getLogger(__name__)\n\n\n_banner = \"\"\"\n****** Welcome to the CKAN shell ******\n\nThis session has some variables pre-populate... | diff --git a/changes/7881.bugfix b/changes/7881.bugfix
new file mode 100644
index 00000000000..c435b5d3903
--- /dev/null
+++ b/changes/7881.bugfix
@@ -0,0 +1 @@
+Empty string in `beaker.session.timeout` produces an error instead of never-expiring session
diff --git a/ckan/cli/shell.py b/ckan/cli/shell.py
index 7fffef52... |
googleapis__google-auth-library-python-1330 | impersonated_credentials.py should use UTC
ID tokens had an issue where the `fromtimestamp` API was used instead of `utcfromtimestamp`. Ref: https://github.com/googleapis/google-auth-library-python/issues/1323.
It appears that `impersonated_credentials.py` uses the same API, and is likely impacted by the same issu... | [
{
"content": "# Copyright 2018 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica... | [
{
"content": "# Copyright 2018 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica... | diff --git a/google/auth/impersonated_credentials.py b/google/auth/impersonated_credentials.py
index 7c2f18d74..ba6012123 100644
--- a/google/auth/impersonated_credentials.py
+++ b/google/auth/impersonated_credentials.py
@@ -454,4 +454,6 @@ def refresh(self, request):
id_token = response.json()["token"]
... |
microsoft__DeepSpeed-5577 | [BUG] fp_quantizer is not correctly built when non-jit installation
**Describe the bug**
fp_quantizer is not correctly built when non-jit installation.
**To Reproduce**
Steps to reproduce the behavior:
```
DS_BUILD_FP_QUANTIZER=1 pip install deepspeed
```
install will succeed but
```
from deepspeed.ops.fp_qu... | [
{
"content": "# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\nfrom .builder import CUDAOpBuilder, installed_cuda_version\n\n\nclass FPQuantizerBuilder(CUDAOpBuilder):\n BUILD_VAR = \"DS_BUILD_FP_QUANTIZER\"\n NAME = \"fp_quantizer\"\n\n def __init__(... | [
{
"content": "# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\nfrom .builder import CUDAOpBuilder, installed_cuda_version\n\n\nclass FPQuantizerBuilder(CUDAOpBuilder):\n BUILD_VAR = \"DS_BUILD_FP_QUANTIZER\"\n NAME = \"fp_quantizer\"\n\n def __init__(... | diff --git a/csrc/fp_quantizer/quantize.cpp b/csrc/fp_quantizer/fp_quantize.cpp
similarity index 99%
rename from csrc/fp_quantizer/quantize.cpp
rename to csrc/fp_quantizer/fp_quantize.cpp
index ec631c576e27..6962b8050f51 100644
--- a/csrc/fp_quantizer/quantize.cpp
+++ b/csrc/fp_quantizer/fp_quantize.cpp
@@ -3,7 +3,7 @@... |
nipy__nipype-2182 | Modelgen SpecifyModel TypeError: apply_along_axis()
@effigies
SpecifyModel rises an error with the new function from
commit cd49748be5d7a8201496548922d85f63bb4034dc
modelgen.py line 399ff
With numpy 1.8.2 I get
TypeError: apply_along_axis() got an unexpected keyword argument 'source'
Interface SpecifyModel f... | [
{
"content": "\"\"\" This file contains defines parameters for nipy that we use to fill\nsettings in setup.py, the nipy top-level docstring, and for building the\ndocs. In setup.py in particular, we exec this file, so it cannot import nipy\n\"\"\"\nfrom __future__ import print_function, division, unicode_liter... | [
{
"content": "\"\"\" This file contains defines parameters for nipy that we use to fill\nsettings in setup.py, the nipy top-level docstring, and for building the\ndocs. In setup.py in particular, we exec this file, so it cannot import nipy\n\"\"\"\nfrom __future__ import print_function, division, unicode_liter... | diff --git a/doc/devel/gitwash/known_projects.inc b/doc/devel/gitwash/known_projects.inc
index 2972352877..ce939b110e 100644
--- a/doc/devel/gitwash/known_projects.inc
+++ b/doc/devel/gitwash/known_projects.inc
@@ -6,7 +6,7 @@
.. _`PROJECTNAME mailing list`: http://projects.scipy.org/mailman/listinfo/nipy-devel
.. ... |
nipy__nipype-3220 | [BUG] STDOUT of CommandLine is stored as one letter per line
### Summary
`STDOUT` from `CommandLine` interface is stored as one **letter** per line in `Terminal output` section of `_report/report.rst`
### Actual behavior
```
T
h
i
s
i
s
m
y
o
u
t
p
u
t
```
### Expected behavior
`This is my outpu... | [
{
"content": "# -*- coding: utf-8 -*-\n# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n\"\"\"Miscellaneous file manipulation functions\n\"\"\"\nimport sys\nimport pickle\nimport errno\nimport subprocess as sp\nimport gzip\nimport hashlib\nimpor... | [
{
"content": "# -*- coding: utf-8 -*-\n# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n\"\"\"Miscellaneous file manipulation functions\n\"\"\"\nimport sys\nimport pickle\nimport errno\nimport subprocess as sp\nimport gzip\nimport hashlib\nimpor... | diff --git a/nipype/utils/filemanip.py b/nipype/utils/filemanip.py
index 735cc610b6..46c4cc53be 100644
--- a/nipype/utils/filemanip.py
+++ b/nipype/utils/filemanip.py
@@ -736,7 +736,7 @@ def write_rst_header(header, level=0):
def write_rst_list(items, prefix=""):
out = []
- for item in items:
+ for item i... |
dbt-labs__dbt-core-1324 | [Stephen Girard] resource list shows sources as None
To be fixed for the 0.13.0 (Stephen Girard) release. An invocation of `dbt run` shows:
```
Found 162 models, 320 tests, 0 archives, 0 analyses, 236 macros, 2 operations, 4 seed files, 34 None
... | [
{
"content": "import itertools\nimport os\nimport json\nfrom collections import OrderedDict, defaultdict\nimport sqlparse\n\nimport dbt.utils\nimport dbt.include\nimport dbt.tracking\n\nfrom dbt import deprecations\nfrom dbt.utils import get_materialization, NodeType, is_type\nfrom dbt.linker import Linker\n\ni... | [
{
"content": "import itertools\nimport os\nimport json\nfrom collections import OrderedDict, defaultdict\nimport sqlparse\n\nimport dbt.utils\nimport dbt.include\nimport dbt.tracking\n\nfrom dbt import deprecations\nfrom dbt.utils import get_materialization, NodeType, is_type\nfrom dbt.linker import Linker\n\ni... | diff --git a/core/dbt/compilation.py b/core/dbt/compilation.py
index 9f101c39222..a48a97b41ea 100644
--- a/core/dbt/compilation.py
+++ b/core/dbt/compilation.py
@@ -36,6 +36,7 @@ def print_compile_stats(stats):
NodeType.Macro: 'macros',
NodeType.Operation: 'operations',
NodeType.Seed: 'seed f... |
ivy-llc__ivy-13177 | tril_indces_from
| [
{
"content": "# local\nimport ivy\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@to_ivy_arrays_and_back\ndef diagonal(a, offset=0, axis1=0, axis2=1):\n return ivy.diagonal(a, offset=offset, axis1=axis1, axis2=axis2)\n\n\n@to_ivy_arrays_and_back\ndef diag(v, k=0... | [
{
"content": "# local\nimport ivy\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@to_ivy_arrays_and_back\ndef diagonal(a, offset=0, axis1=0, axis2=1):\n return ivy.diagonal(a, offset=offset, axis1=axis1, axis2=axis2)\n\n\n@to_ivy_arrays_and_back\ndef diag(v, k=0... | diff --git a/ivy/functional/frontends/jax/numpy/indexing.py b/ivy/functional/frontends/jax/numpy/indexing.py
index 9b0335ebe2cf7..f633d78cda6d5 100644
--- a/ivy/functional/frontends/jax/numpy/indexing.py
+++ b/ivy/functional/frontends/jax/numpy/indexing.py
@@ -30,3 +30,8 @@ def take_along_axis(arr, indices, axis, mode=... |
ray-project__ray-9429 | [rllib] MARWIL tuned cartpole example (and my own experiments) produce nan rewards only.
<!--Please include [tune], [rllib], [autoscaler] etc. in the issue title if relevant-->
### What is the problem? + Reproduction
I have a custom example that produces offline data and picks it up with MARWIL for training. I ob... | [
{
"content": "\"\"\"Example of using custom_loss() with an imitation learning loss.\n\nThe default input file is too small to learn a good policy, but you can\ngenerate new experiences for IL training as follows:\n\nTo generate experiences:\n$ ./train.py --run=PG --config='{\"output\": \"/tmp/cartpole\"}' --env... | [
{
"content": "\"\"\"Example of using custom_loss() with an imitation learning loss.\n\nThe default input file is too small to learn a good policy, but you can\ngenerate new experiences for IL training as follows:\n\nTo generate experiences:\n$ ./train.py --run=PG --config='{\"output\": \"/tmp/cartpole\"}' --env... | diff --git a/rllib/BUILD b/rllib/BUILD
index db350f045db7c..cfc050b4d5f2d 100644
--- a/rllib/BUILD
+++ b/rllib/BUILD
@@ -469,7 +469,9 @@ py_test(
py_test(
name = "test_marwil",
tags = ["agents_dir"],
- size = "small",
+ size = "medium",
+ # Include the json data file.
+ data = ["tests/data/cartpo... |
graspologic-org__graspologic-654 | [BUG] Possible issue with direct import
```
import graspologic
dir(graspologic)
```
returns
```
['__builtins__',
'__cached__',
'__doc__',
'__file__',
'__loader__',
'__name__',
'__package__',
'__path__',
'__spec__',
'__version',
'__version__',
'graspologic',
'layouts',
'models',
'par... | [
{
"content": "# Copyright (c) Microsoft Corporation and contributors.\n# Licensed under the MIT License.\n\nimport graspologic.align\nimport graspologic.cluster\nimport graspologic.datasets\nimport graspologic.embed\nimport graspologic.inference\nimport graspologic.layouts\nimport graspologic.models\nimport gra... | [
{
"content": "# Copyright (c) Microsoft Corporation and contributors.\n# Licensed under the MIT License.\n\nimport graspologic.align\nimport graspologic.cluster\nimport graspologic.datasets\nimport graspologic.embed\nimport graspologic.inference\nimport graspologic.layouts\nimport graspologic.models\nimport gra... | diff --git a/graspologic/__init__.py b/graspologic/__init__.py
index ad156e719..9d6596604 100644
--- a/graspologic/__init__.py
+++ b/graspologic/__init__.py
@@ -8,6 +8,7 @@
import graspologic.inference
import graspologic.layouts
import graspologic.models
+import graspologic.nominate
import graspologic.partition
im... |
archlinux__archinstall-1906 | Presence of ROM device raises `_ped.DiskException`
The list of devices returned by `parted.getAllDevices()` is iterated over and each device is passed to `parted.Disk()`. If that raises an 'unrecognised disk label' `DiskLabelException` then the device is passed to `parted.freshDisk()`. ROM devices are inlcuded in the ... | [
{
"content": "from __future__ import annotations\n\nimport json\nimport os\nimport time\nfrom pathlib import Path\nfrom typing import List, Dict, Any, Optional, TYPE_CHECKING\n\nfrom parted import ( # type: ignore\n\tDisk, Geometry, FileSystem,\n\tPartitionException, DiskLabelException,\n\tgetAllDevices, fresh... | [
{
"content": "from __future__ import annotations\n\nimport json\nimport os\nimport time\nfrom pathlib import Path\nfrom typing import List, Dict, Any, Optional, TYPE_CHECKING\n\nfrom parted import ( # type: ignore\n\tDisk, Geometry, FileSystem,\n\tPartitionException, DiskLabelException,\n\tgetAllDevices, fresh... | diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py
index 2c88e382cb..9acf09990a 100644
--- a/archinstall/lib/disk/device_handler.py
+++ b/archinstall/lib/disk/device_handler.py
@@ -45,6 +45,9 @@ def load_devices(self):
block_devices = {}
for device in getAllDevices():
+... |
ibis-project__ibis-5647 | bug(postgres): cannot connect to postgres table with `tsvector` column
### What happened?
Reposting from https://stackoverflow.com/questions/74520302/why-cant-i-connect-ibis-to-a-postgres-table-with-a-tsvector-column
Implementing whatever postgres functionality exists around tsvector may not be something we want to... | [
{
"content": "from __future__ import annotations\n\nimport parsy\nimport sqlalchemy as sa\nimport toolz\nfrom sqlalchemy.dialects import postgresql\nfrom sqlalchemy.dialects.postgresql.base import PGDialect\n\nimport ibis.expr.datatypes as dt\nfrom ibis.backends.base.sql.alchemy import to_sqla_type\nfrom ibis.c... | [
{
"content": "from __future__ import annotations\n\nimport parsy\nimport sqlalchemy as sa\nimport toolz\nfrom sqlalchemy.dialects import postgresql\nfrom sqlalchemy.dialects.postgresql.base import PGDialect\n\nimport ibis.expr.datatypes as dt\nfrom ibis.backends.base.sql.alchemy import to_sqla_type\nfrom ibis.c... | diff --git a/ci/schema/postgresql.sql b/ci/schema/postgresql.sql
index b6cceb785e0d..8be637c8d645 100644
--- a/ci/schema/postgresql.sql
+++ b/ci/schema/postgresql.sql
@@ -208,3 +208,9 @@ CREATE TABLE map (kv HSTORE);
INSERT INTO map VALUES
('a=>1,b=>2,c=>3'),
('d=>4,e=>5,c=>6');
+
+ALTER TABLE awards_players... |
ansible__ansible-lint-2926 | Collection dependencies from galaxy.yml not skipped in offline mode
# Issue Type
- Bug report
# Ansible and Ansible Lint details
```
ansible [core 2.13.3]
ansible-lint 6.11.0 using ansible 2.13.3
```
- ansible installation method: pip
- ansible-lint installation method: pip
# Desired Behavior
Off... | [
{
"content": "\"\"\"Application.\"\"\"\nfrom __future__ import annotations\n\nimport itertools\nimport logging\nimport os\nfrom functools import lru_cache\nfrom typing import TYPE_CHECKING, Any\n\nfrom ansible_compat.runtime import Runtime\nfrom rich.markup import escape\nfrom rich.table import Table\n\nfrom an... | [
{
"content": "\"\"\"Application.\"\"\"\nfrom __future__ import annotations\n\nimport itertools\nimport logging\nimport os\nfrom functools import lru_cache\nfrom typing import TYPE_CHECKING, Any\n\nfrom ansible_compat.runtime import Runtime\nfrom rich.markup import escape\nfrom rich.table import Table\n\nfrom an... | diff --git a/src/ansiblelint/app.py b/src/ansiblelint/app.py
index 1b49611801..ef74d473af 100644
--- a/src/ansiblelint/app.py
+++ b/src/ansiblelint/app.py
@@ -352,7 +352,7 @@ def get_app() -> App:
# fail.
_perform_mockings()
app.runtime.prepare_environment(
- install_local=True, offline=offline, r... |
fidals__shopelectro-870 | Add absolute urls to the canonical links. stb2
Необходимо поправить построение канонических ссылок на сайте
Адрес в канонической ссылке должен быть обязательно абсолютный
<link rel="canonical" href="https://www.сайт.ру/адрес_страницы" >
а не так
<link rel="canonical" href="/адрес_страницы" > - это неверно
Поискови... | [
{
"content": "from django.conf import settings\n\n\ndef shop(request):\n \"\"\"\n Inject shop dict into request.\n\n Shop dict contains information about shop:\n emails, phones, API-integrations.\n \"\"\"\n return {\n 'shop': settings.SHOP,\n 'DEBUG': settings.DEBUG,\n 'BA... | [
{
"content": "from django.conf import settings\n\n\ndef shop(request):\n \"\"\"\n Inject shop dict into request.\n\n Shop dict contains information about shop:\n emails, phones, API-integrations.\n \"\"\"\n return {\n 'shop': settings.SHOP,\n 'DEBUG': settings.DEBUG,\n 'ba... | diff --git a/requirements.txt b/requirements.txt
index d273a63b..be06e56c 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -25,4 +25,4 @@ sorl-thumbnail==12.5.0
python-telegram-bot==11.1.0
sentry-sdk==0.7.2
https://github.com/selwin/django-user_agents/archive/master.zip
-https://github.com/fidals/refarm-site/... |
google-deepmind__optax-369 | `noisy_sgd` adds noise after scale by learning rate.
Thanks for the effort in this awesome library!
According to [these](https://github.com/deepmind/optax/blob/master/optax/_src/alias.py#L408#L435), it seems like the noise is added after scaling by the learning rate. That is, the noise is independent of the learning... | [
{
"content": "# Copyright 2019 DeepMind Technologies Limited. 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 2019 DeepMind Technologies Limited. 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/optax/_src/alias.py b/optax/_src/alias.py
index 423c1856f..203621eb9 100644
--- a/optax/_src/alias.py
+++ b/optax/_src/alias.py
@@ -430,8 +430,8 @@ def noisy_sgd(
the corresponding `GradientTransformation`.
"""
return combine.chain(
- _scale_by_learning_rate(learning_rate),
transform... |
cloudtools__troposphere-2174 | DeletionPolicy: add RetainExceptOnCreate option
## Ask ##
Request to add the new RetainExceptOnCreate option for the DeletionPolicy attribute. Would reduce effort for failed stack operations by eliminating the need for manual work deleting unused resources before a rollback; those resources already exist and cause f... | [
{
"content": "# Copyright (c) 2012-2022, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\nfrom __future__ import annotations\n\nimport collections.abc\nimport json\nimport re\nimport sys\nimport types\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n... | [
{
"content": "# Copyright (c) 2012-2022, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\nfrom __future__ import annotations\n\nimport collections.abc\nimport json\nimport re\nimport sys\nimport types\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n... | diff --git a/troposphere/__init__.py b/troposphere/__init__.py
index 9ed9147bf..9bcdfa2fd 100644
--- a/troposphere/__init__.py
+++ b/troposphere/__init__.py
@@ -46,6 +46,7 @@
# constants for DeletionPolicy and UpdateReplacePolicy
Delete: Final = "Delete"
Retain: Final = "Retain"
+RetainExceptOnCreate: Final = "Retai... |
GoogleCloudPlatform__PerfKitBenchmarker-2045 | PodIP address is not populated while running iperf on Kubernetes
Referencing #1990. Sorry for late reply. Even after using ```--ip_addresses=INTERNAL```, IP is not getting populated.
I tried all the options for ```ip_addresses``` -> BOTH, INTERNAL, EXTERNAL, REACHABLE. All give the same issue.
Command used: ```./pkb.... | [
{
"content": "# Copyright 2017 PerfKitBenchmarker Authors. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | [
{
"content": "# Copyright 2017 PerfKitBenchmarker Authors. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | diff --git a/perfkitbenchmarker/providers/kubernetes/kubernetes_virtual_machine.py b/perfkitbenchmarker/providers/kubernetes/kubernetes_virtual_machine.py
index ea5171a86b..5a8ee7f8d0 100644
--- a/perfkitbenchmarker/providers/kubernetes/kubernetes_virtual_machine.py
+++ b/perfkitbenchmarker/providers/kubernetes/kuberne... |
scikit-image__scikit-image-6502 | `peak_local_max` excludes peaks at border despite `exclude_border=0`
## Description
## Way to reproduce
The python demo below needs a 2D array contained in `data.npy` which is stored in [data.zip](https://github.com/scikit-image/scikit-image/files/8804871/data.zip)
Within that script I run the `peak_local_max`... | [
{
"content": "from warnings import warn\n\nimport numpy as np\nimport scipy.ndimage as ndi\n\nfrom .. import measure\nfrom .._shared.coord import ensure_spacing\n\n\ndef _get_high_intensity_peaks(image, mask, num_peaks, min_distance, p_norm):\n \"\"\"\n Return the highest intensity peak coordinates.\n ... | [
{
"content": "from warnings import warn\n\nimport numpy as np\nimport scipy.ndimage as ndi\n\nfrom .. import measure\nfrom .._shared.coord import ensure_spacing\n\n\ndef _get_high_intensity_peaks(image, mask, num_peaks, min_distance, p_norm):\n \"\"\"\n Return the highest intensity peak coordinates.\n ... | diff --git a/skimage/feature/peak.py b/skimage/feature/peak.py
index 2bba6537f83..4097d8245b1 100644
--- a/skimage/feature/peak.py
+++ b/skimage/feature/peak.py
@@ -40,7 +40,7 @@ def _get_peak_mask(image, footprint, threshold, mask=None):
return image > threshold
image_max = ndi.maximum_filter(image, fo... |
PyGithub__PyGithub-1891 | allow PyJWT 2+
other libraries are moving to PyJWT2+ as requirement, is it possible to update pygithub as well? currently we can't use for example pygithub together with django-social-core
| [
{
"content": "#!/usr/bin/env python\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #\n# Copyright 2012 Zearin <ze... | [
{
"content": "#!/usr/bin/env python\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #\n# Copyright 2012 Zearin <ze... | diff --git a/requirements.txt b/requirements.txt
index d04aaf9c1c..0892b7ff0d 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,6 +1,6 @@
pynacl>=1.4.0
requests>=2.14.0
-pyjwt<2.0
+pyjwt>=2.0
sphinx<3
sphinx-rtd-theme<0.6
Deprecated
diff --git a/setup.py b/setup.py
index d6fa62dbd0..7157bc8773 100755
--- ... |
deis__deis-834 | Support both Dockerfiles and Procfiles
Currently, deploying any codebase that contains both a Procfile and a Dockerfile will receive an error:
```
name 'slug_path' is not defined
```
This is because the variable `slug_path` is not defined for the relevant context in Python (see `builder/templates/builder` around line... | [
{
"content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nData models for the Deis API.\n\"\"\"\n\nfrom __future__ import unicode_literals\nimport etcd\nimport importlib\nimport logging\nimport os\nimport subprocess\n\nfrom celery.canvas import group\nfrom django.conf import settings\nfrom django.contrib.auth.models imp... | [
{
"content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nData models for the Deis API.\n\"\"\"\n\nfrom __future__ import unicode_literals\nimport etcd\nimport importlib\nimport logging\nimport os\nimport subprocess\n\nfrom celery.canvas import group\nfrom django.conf import settings\nfrom django.contrib.auth.models imp... | diff --git a/builder/templates/builder b/builder/templates/builder
index 95df25c43c..26c26c88eb 100755
--- a/builder/templates/builder
+++ b/builder/templates/builder
@@ -58,7 +58,9 @@ if __name__ == '__main__':
# check for Procfile
dockerfile = os.path.join(temp_dir, 'Dockerfile')
procfile =... |
certbot__certbot-8776 | Fix lint and mypy with Python < 3.8
In https://github.com/certbot/certbot/pull/8748, we made a change that causes our lint and mypy tests to need to be run on Python 3.8+ to pass. See https://github.com/certbot/certbot/pull/8748#issuecomment-808790093 for the discussion of the problem here.
I don't think we should d... | [
{
"content": "import codecs\nfrom distutils.version import LooseVersion\nimport os\nimport re\nimport sys\n\nfrom setuptools import __version__ as setuptools_version\nfrom setuptools import find_packages\nfrom setuptools import setup\n\nmin_setuptools_version='39.0.1'\n# This conditional isn't necessary, but it... | [
{
"content": "import codecs\nfrom distutils.version import LooseVersion\nimport os\nimport re\nimport sys\n\nfrom setuptools import __version__ as setuptools_version\nfrom setuptools import find_packages\nfrom setuptools import setup\n\nmin_setuptools_version='39.0.1'\n# This conditional isn't necessary, but it... | diff --git a/certbot/certbot/plugins/dns_test_common.py b/certbot/certbot/plugins/dns_test_common.py
index f6d7bdca8cf..7a8df9329da 100644
--- a/certbot/certbot/plugins/dns_test_common.py
+++ b/certbot/certbot/plugins/dns_test_common.py
@@ -12,7 +12,7 @@
from certbot.tests import util as test_util
if typing.TYPE_CH... |
huggingface__diffusers-1149 | [Flax] 🚨 0.7.0 not working 🚨
### Describe the bug

### Reproduction
_No response_
### Logs
_No response_
### System Info
TPU v3-8
| [
{
"content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#... | [
{
"content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#... | diff --git a/src/diffusers/models/embeddings_flax.py b/src/diffusers/models/embeddings_flax.py
index 1e2272c1fe70..bf7d54b82ec2 100644
--- a/src/diffusers/models/embeddings_flax.py
+++ b/src/diffusers/models/embeddings_flax.py
@@ -88,4 +88,6 @@ class FlaxTimesteps(nn.Module):
@nn.compact
def __call__(self, ... |
google__openhtf-1112 | Unused `six` import in monitor code
In `openhtf/core/monitors.py`, it looks like there is an unused import of the `six` module:
https://github.com/google/openhtf/blob/c85fb069a1ce407e82bb47a8fb1b64220e974c5f/openhtf/core/monitors.py#L58
If the aforementioned import is in fact not needed, then it should be deleted.
| [
{
"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless re... | [
{
"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless re... | diff --git a/openhtf/core/monitors.py b/openhtf/core/monitors.py
index 02cc60d1a..2d16ef15d 100644
--- a/openhtf/core/monitors.py
+++ b/openhtf/core/monitors.py
@@ -55,7 +55,6 @@ def MyPhase(test):
from openhtf.core import test_state as core_test_state
from openhtf.util import threads
from openhtf.util import units ... |
python-trio__trio-727 | Documentation should have previous and next button on top as well as bottom.
I have been going through the trio documentation and I have noticed that the page is really big and if someone just wants to get from one page to either previous or next then he/she will have to scroll down to the bottom of the page then click... | [
{
"content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Trio documentation build configuration file, created by\n# sphinx-quickstart on Sat Jan 21 19:11:14 2017.\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 val... | [
{
"content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Trio documentation build configuration file, created by\n# sphinx-quickstart on Sat Jan 21 19:11:14 2017.\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 val... | diff --git a/docs/source/conf.py b/docs/source/conf.py
index 9d5890b49..bfcec9ad7 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -157,6 +157,7 @@ def setup(app):
# versions/settings...
"navigation_depth": 4,
"logo_only": True,
+ 'prev_next_buttons_location': 'both'
}
# Add any paths... |
coala__coala-bears-2811 | HgCommitBear: Make asciinema
| [
{
"content": "import os\nimport shutil\n\nfrom bears.vcs.CommitBear import _CommitBear\nfrom coala_utils.ContextManagers import change_directory\nfrom coalib.misc.Shell import run_shell_command\n\n\nclass HgCommitBear(_CommitBear):\n LANGUAGES = {'Hg'}\n CAN_DETECT = {'Formatting'}\n\n @classmethod\n ... | [
{
"content": "import os\nimport shutil\n\nfrom bears.vcs.CommitBear import _CommitBear\nfrom coala_utils.ContextManagers import change_directory\nfrom coalib.misc.Shell import run_shell_command\n\n\nclass HgCommitBear(_CommitBear):\n LANGUAGES = {'Hg'}\n CAN_DETECT = {'Formatting'}\n ASCIINEMA_URL = 'h... | diff --git a/bears/vcs/mercurial/HgCommitBear.py b/bears/vcs/mercurial/HgCommitBear.py
index f2844c230f..f34237c668 100644
--- a/bears/vcs/mercurial/HgCommitBear.py
+++ b/bears/vcs/mercurial/HgCommitBear.py
@@ -9,6 +9,7 @@
class HgCommitBear(_CommitBear):
LANGUAGES = {'Hg'}
CAN_DETECT = {'Formatting'}
+ A... |
zulip__zulip-24971 | Show PR review content in GitHub "submitted PR review" events
Here's [an example message](https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/zulip-flutter/near/1523925) from the GitHub bot:
> gnprice submitted [PR review for #25 Add personal user_id & full_name data, updating latter via events & in UI](http... | [
{
"content": "import re\nfrom functools import partial\nfrom typing import Callable, Dict, Optional\n\nfrom django.http import HttpRequest, HttpResponse\n\nfrom zerver.decorator import log_unsupported_webhook_event, webhook_view\nfrom zerver.lib.exceptions import UnsupportedWebhookEventTypeError\nfrom zerver.li... | [
{
"content": "import re\nfrom functools import partial\nfrom typing import Callable, Dict, Optional\n\nfrom django.http import HttpRequest, HttpResponse\n\nfrom zerver.decorator import log_unsupported_webhook_event, webhook_view\nfrom zerver.lib.exceptions import UnsupportedWebhookEventTypeError\nfrom zerver.li... | diff --git a/zerver/webhooks/github/tests.py b/zerver/webhooks/github/tests.py
index 72a4a02249a8b..146c865b18586 100644
--- a/zerver/webhooks/github/tests.py
+++ b/zerver/webhooks/github/tests.py
@@ -240,13 +240,13 @@ def test_status_with_target_url_msg(self) -> None:
self.check_webhook("status__with_target_u... |
wright-group__WrightTools-590 | Change __version__ to match pep 440
Specifically, when a branch is specified, it should use a plus sign instead of minus
https://www.python.org/dev/peps/pep-0440/#local-version-identifiers
https://github.com/wright-group/WrightTools/blob/490a4a3d6fb6f016e7033d661b553b72c2d86fcb/WrightTools/__version__.py#L33
| [
{
"content": "\"\"\"Define WrightTools version.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport os\n\n\n# ---- define -------------------------------------------------------------------------------------\n\n\nhere = os.path.abspath(os.pa... | [
{
"content": "\"\"\"Define WrightTools version.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport os\n\n\n# ---- define -------------------------------------------------------------------------------------\n\n\nhere = os.path.abspath(os.pa... | diff --git a/WrightTools/__version__.py b/WrightTools/__version__.py
index 1820a0395..2d2685956 100644
--- a/WrightTools/__version__.py
+++ b/WrightTools/__version__.py
@@ -30,6 +30,6 @@
with open(p) as f:
__branch__ = f.readline().rstrip().split(r'/')[-1]
if __branch__ != 'master':
- __versio... |
plotly__dash-601 | Extract meta failure on missing props docstring.
If a props is missing a docstring, it will fail to generate the component with js error, `Cannot read property 'length' of undefined`.
https://community.plot.ly/t/dash-component-creation-javascript-ok-nothing-rendered-in-python/19369
| [
{
"content": "from __future__ import print_function\nfrom collections import OrderedDict\n\nimport json\nimport sys\nimport subprocess\nimport shlex\nimport os\nimport argparse\nimport shutil\nimport functools\n\nimport pkg_resources\n\nfrom ._r_components_generation import write_class_file\nfrom ._r_components... | [
{
"content": "from __future__ import print_function\nfrom collections import OrderedDict\n\nimport json\nimport sys\nimport subprocess\nimport shlex\nimport os\nimport argparse\nimport shutil\nimport functools\n\nimport pkg_resources\n\nfrom ._r_components_generation import write_class_file\nfrom ._r_components... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e90fbfb7d1..54efb82c0c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## UNRELEASED
+## Fixed
+- Fix missing indentation for generated metadata.json [#600](https://github.com/plotly/dash/issues/600)
+- Fix missing component prop docstring error [#598](https:... |
NVIDIA__NVFlare-2458 | [BUG] RuntimeError during running spleen_ct_segmentation_sim and spleen_ct_segmentation_local
```
2024-03-20 14:37:59,155 - ClientTaskWorker - INFO - Clean up ClientRunner for : site-1
2024-03-20 14:37:59,157 - nvflare.fuel.f3.sfm.conn_manager - INFO - Connection [CN00002 Not Connected] is closed PID: 71655
2024-03... | [
{
"content": "# Copyright (c) 2021, 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/LICENSE-2.... | [
{
"content": "# Copyright (c) 2021, 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/LICENSE-2.... | diff --git a/nvflare/private/fed/app/client/sub_worker_process.py b/nvflare/private/fed/app/client/sub_worker_process.py
index 9ad491f23b..ec911961bf 100644
--- a/nvflare/private/fed/app/client/sub_worker_process.py
+++ b/nvflare/private/fed/app/client/sub_worker_process.py
@@ -294,8 +294,6 @@ def _handle_event(self, d... |
comic__grand-challenge.org-2133 | Video maximize button not working in Chrome and Edge
The video maximize button (see [here](https://grand-challenge.org/documentation/create-your-own-algorithm/)) does not work in Chrome and Edge. It is greyed out, maximizing is not possible.
This button does work in Safari and Firefox, so this appears to be a brows... | [
{
"content": "import os\nimport re\nfrom datetime import datetime, timedelta\nfrom distutils.util import strtobool as strtobool_i\nfrom itertools import product\n\nimport sentry_sdk\nfrom disposable_email_domains import blocklist\nfrom django.contrib.messages import constants as messages\nfrom django.urls impor... | [
{
"content": "import os\nimport re\nfrom datetime import datetime, timedelta\nfrom distutils.util import strtobool as strtobool_i\nfrom itertools import product\n\nimport sentry_sdk\nfrom disposable_email_domains import blocklist\nfrom django.contrib.messages import constants as messages\nfrom django.urls impor... | diff --git a/app/config/settings.py b/app/config/settings.py
index 7840edf0c6..e2aef9a903 100644
--- a/app/config/settings.py
+++ b/app/config/settings.py
@@ -286,7 +286,7 @@ def strtobool(val) -> bool:
"display-capture": [],
"document-domain": [],
"encrypted-media": [],
- "fullscreen": [],
+ "full... |
modin-project__modin-373 | TypeError: bad operand type for abs(): 'SeriesView'
### Describe the problem
<!-- Describe the problem clearly here. -->
SeriesView does not implement the `__abs__` operator yet, but Series does. Since this is a builtin, it cannot default back and must be implemented.
### Source code / logs
`abs(df['col1'])`
<... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport pandas\nimport inspect\nimport numpy as np\n\n\n# from .utils import _inherit_docstrings\n\n\ndef na_op():\n \"\"\"Pandas uses a similar function to handle na values.\n \"... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport pandas\nimport inspect\nimport numpy as np\n\n\n# from .utils import _inherit_docstrings\n\n\ndef na_op():\n \"\"\"Pandas uses a similar function to handle na values.\n \"... | diff --git a/modin/pandas/series.py b/modin/pandas/series.py
index e983dfb1a23..c32996af65f 100644
--- a/modin/pandas/series.py
+++ b/modin/pandas/series.py
@@ -147,6 +147,9 @@ def __ipow__(self, other):
def __neg__(self, other):
return self.__arithmetic_op__("__neg__")(other)
+ def __abs__(self):
+ ... |
CiviWiki__OpenCiviWiki-1060 | Move user/account-related templates out of `threads` app
### Idea summary
There are several user- and account-related templates in the `threads` app. They should reside in the `accounts` app instead.
### Further details
Move all of the following templates from the `threads` app to the `accounts` app:
- [ ] ... | [
{
"content": "\"\"\"\nClass based views.\n\nThis module will include views for the accounts app.\n\"\"\"\n\nfrom django.conf import settings\nfrom django.contrib.auth.mixins import LoginRequiredMixin\nfrom django.views.generic.edit import FormView, UpdateView\nfrom django.views import View\nfrom django.contrib.... | [
{
"content": "\"\"\"\nClass based views.\n\nThis module will include views for the accounts app.\n\"\"\"\n\nfrom django.conf import settings\nfrom django.contrib.auth.mixins import LoginRequiredMixin\nfrom django.views.generic.edit import FormView, UpdateView\nfrom django.views import View\nfrom django.contrib.... | diff --git a/account.html b/account.html
new file mode 100644
index 000000000..e0350ad79
--- /dev/null
+++ b/account.html
@@ -0,0 +1,84 @@
+<!doctype html>
+
+<head>
+ {% load static %}
+ {% include "base/links.html" %}
+ {% include "accounts/base/less_headers/account_less.html" %}
+</head>
+
+
+<!-- Util Part... |
chainer__chainer-2961 | Variable defines __hash__ but does not define __eq__
`Variable` defines `__hash__` but doesn't define `__eq__`:
```
class Variable(object):
# ...
def __eq__(self, other):
raise NotImplementedError()
# ...
def __hash__(self):
return super(Variable, self).__hash__()
```
B... | [
{
"content": "import collections\nimport copy\nimport heapq\nimport traceback\nimport warnings\nimport weakref\n\nimport numpy\n\nimport chainer\nfrom chainer import cuda\nfrom chainer import initializers\nfrom chainer.initializers import constant\nfrom chainer.utils import argument\n\n\ndef _check_grad_type(fu... | [
{
"content": "import collections\nimport copy\nimport heapq\nimport traceback\nimport warnings\nimport weakref\n\nimport numpy\n\nimport chainer\nfrom chainer import cuda\nfrom chainer import initializers\nfrom chainer.initializers import constant\nfrom chainer.utils import argument\n\n\ndef _check_grad_type(fu... | diff --git a/chainer/variable.py b/chainer/variable.py
index c66a3fc6ba07..b041411d2ae6 100644
--- a/chainer/variable.py
+++ b/chainer/variable.py
@@ -1058,10 +1058,8 @@ def __nonzero__(self):
def __bool__(self):
raise NotImplementedError()
- def __hash__(self):
- return super(Variable, self).... |
inventree__InvenTree-5627 | Stocktake doesn't save parts with no stock
### Please verify that this bug has NOT been raised before.
- [X] I checked and didn't find a similar issue
### Describe the bug*
Stocktake is ignoring active parts with 0 stock. (see https://github.com/inventree/InvenTree/blob/master/InvenTree/part/stocktake.py#L252-... | [
{
"content": "\"\"\"Stocktake report functionality\"\"\"\n\nimport io\nimport logging\nimport time\nfrom datetime import datetime\n\nfrom django.contrib.auth.models import User\nfrom django.core.files.base import ContentFile\nfrom django.utils.translation import gettext_lazy as _\n\nimport tablib\nfrom djmoney.... | [
{
"content": "\"\"\"Stocktake report functionality\"\"\"\n\nimport io\nimport logging\nimport time\nfrom datetime import datetime\n\nfrom django.contrib.auth.models import User\nfrom django.core.files.base import ContentFile\nfrom django.utils.translation import gettext_lazy as _\n\nimport tablib\nfrom djmoney.... | diff --git a/InvenTree/part/stocktake.py b/InvenTree/part/stocktake.py
index aae3b94f17be..f803248c88fa 100644
--- a/InvenTree/part/stocktake.py
+++ b/InvenTree/part/stocktake.py
@@ -249,10 +249,6 @@ def generate_stocktake_report(**kwargs):
location=location,
)
- if stocktake.quantity == ... |
lutris__lutris-2885 | Runners list is not updated on a second install/uninstall
**Describe the bug**
The second time you are trying to install a runner on a Lutris session, the runner list won't be updated anymore.
**Current behavior**
The runner list is updated only once per install/uninstall for each runner
**Steps to reproduce**
... | [
{
"content": "\"\"\"Sidebar for the main window\"\"\"\n# Standard Library\nimport os\n\n# Third Party Libraries\nfrom gi.repository import GObject, Gtk, Pango\n\n# Lutris Modules\nfrom lutris import pga, platforms, runners\nfrom lutris.game import Game\nfrom lutris.gui.config.runner import RunnerConfigDialog\nf... | [
{
"content": "\"\"\"Sidebar for the main window\"\"\"\n# Standard Library\nimport os\n\n# Third Party Libraries\nfrom gi.repository import GObject, Gtk, Pango\n\n# Lutris Modules\nfrom lutris import pga, platforms, runners\nfrom lutris.game import Game\nfrom lutris.gui.config.runner import RunnerConfigDialog\nf... | diff --git a/lutris/gui/widgets/sidebar.py b/lutris/gui/widgets/sidebar.py
index 35d5488903..e898f57200 100644
--- a/lutris/gui/widgets/sidebar.py
+++ b/lutris/gui/widgets/sidebar.py
@@ -190,3 +190,4 @@ def update(self, *args): # pylint: disable=unused-argument
self.installed_runners = [runner.name for runner... |
googleapis__google-cloud-python-6332 | Release 'api_core-1.6.0a2'? or 'api_core-1.5.1'?
I'd like to use the changes from https://github.com/googleapis/google-cloud-python/pull/6310 in the library I'm working on.
Not sure about the version number for that one, since:
- I don't know what else has been released since 1.6.0a1
- I don't know what is inten... | [
{
"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/api_core/CHANGELOG.md b/api_core/CHANGELOG.md
index 0d601ee6b85d..890d88e043d2 100644
--- a/api_core/CHANGELOG.md
+++ b/api_core/CHANGELOG.md
@@ -4,24 +4,21 @@
[1]: https://pypi.org/project/google-api-core/#history
-## 1.6.0a1
+## 1.5.1
-10-18-2018 16:26 PDT
+10-29-2018 13:29 PDT
-### New Features... |
cisagov__manage.get.gov-610 | Document our data models
Per our last retrospective, we decided something that would help the growing complexity of our data modeling would be an updated diagram of the data model flows on the backend.
Outcome: A diagram (preferably PlantUML?) saved to our docs folder under architecture.
Here is an old version of t... | [
{
"content": "\"\"\"\nDjango settings for .gov registrar project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/4.0/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/4.0/ref/settings/\n\nIF you'd like to see all of these set... | [
{
"content": "\"\"\"\nDjango settings for .gov registrar project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/4.0/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/4.0/ref/settings/\n\nIF you'd like to see all of these set... | diff --git a/docs/architecture/diagrams/model_timeline.md b/docs/architecture/diagrams/model_timeline.md
new file mode 100644
index 000000000..f2089ce55
--- /dev/null
+++ b/docs/architecture/diagrams/model_timeline.md
@@ -0,0 +1,149 @@
+# Data Model Timeline
+
+This diagram connects the data models along with various w... |
readthedocs__readthedocs.org-11075 | Build: support Ruby under `build.tools`
We should add support for Ruby on `build.tools`. It will be useful for doctools like Jekyll.
Work required:
- [x] Update the documentation
- [x] Install asdf-ruby (https://github.com/asdf-vm/asdf-ruby) on Docker images
- [x] Compile latest Ruby version and upload it S3 (... | [
{
"content": "\"\"\"\nDefine constants here to allow import them without any external dependency.\n\nThere are situations where we want to have access to these values without Django installed\n(e.g. common/dockerfiles/tasks.py)\n\nNote these constants where previously defined as Django settings in ``readthedocs... | [
{
"content": "\"\"\"\nDefine constants here to allow import them without any external dependency.\n\nThere are situations where we want to have access to these values without Django installed\n(e.g. common/dockerfiles/tasks.py)\n\nNote these constants where previously defined as Django settings in ``readthedocs... | diff --git a/docs/user/config-file/v2.rst b/docs/user/config-file/v2.rst
index b5538ac396a..3d23033fac2 100644
--- a/docs/user/config-file/v2.rst
+++ b/docs/user/config-file/v2.rst
@@ -283,7 +283,7 @@ build.tools
Version specifiers for each tool. It must contain at least one tool.
:Type: ``dict``
-:Options: ``pytho... |
PaddlePaddle__PaddleSpeech-1398 | ERROR: ImportError: cannot import name '__version__' from 'paddlespeech'
Hi there, when i managed to execute the demo command:
`(/home/berg/PaddleSpeech/tools/venvs) root@bergtts:~/PaddleSpeech# paddlespeech tts --input "你好,欢迎使用飞桨深度学习框架!" --output output.wav`
it complains the following error.
```
Traceback (mo... | [
{
"content": "# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | [
{
"content": "# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | diff --git a/paddlespeech/cli/utils.py b/paddlespeech/cli/utils.py
index d11178df8e6..4f2c8906599 100644
--- a/paddlespeech/cli/utils.py
+++ b/paddlespeech/cli/utils.py
@@ -30,8 +30,11 @@
import paddleaudio
from . import download
-from .. import __version__
from .entry import commands
+try:
+ from .. import __v... |
pydantic__pydantic-4329 | Serialization -> de-serialisation fails for small timedelta (< 100 microseconds)
### Checks
* [x] I added a descriptive title to this issue
* [x] I have searched (google, github) for similar issues and couldn't find anything
* [x] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still ... | [
{
"content": "\"\"\"\nFunctions to parse datetime objects.\n\nWe're using regular expressions rather than time.strptime because:\n- They provide both validation and parsing.\n- They're more flexible for datetimes.\n- The date/datetime/time constructors produce friendlier error messages.\n\nStolen from https://r... | [
{
"content": "\"\"\"\nFunctions to parse datetime objects.\n\nWe're using regular expressions rather than time.strptime because:\n- They provide both validation and parsing.\n- They're more flexible for datetimes.\n- The date/datetime/time constructors produce friendlier error messages.\n\nStolen from https://r... | diff --git a/changes/3315-samuelcolvin.md b/changes/3315-samuelcolvin.md
new file mode 100644
index 00000000000..47f38c5b6c0
--- /dev/null
+++ b/changes/3315-samuelcolvin.md
@@ -0,0 +1 @@
+Fix parsing of very small numeric timedelta values
diff --git a/pydantic/datetime_parse.py b/pydantic/datetime_parse.py
index 024a8... |
Flexget__Flexget-1636 | Trailing slashes in API
### Expected behaviour:
API urls should work with both trailing and none trailing slashes (for example `/api/auth/login` and `/api/auth/login/`)
### Actual behaviour:
Only the ones with trailing slashes work, the other ones throw 500 errors (debug logs consumed by cherrypy)
### Steps to re... | [
{
"content": "from __future__ import unicode_literals, division, absolute_import\nfrom builtins import * # noqa pylint: disable=unused-import, redefined-builtin\n\nimport json\nimport logging\nimport os\nimport re\nfrom collections import deque\nfrom functools import wraps\n\nfrom flask import Flask, request, ... | [
{
"content": "from __future__ import unicode_literals, division, absolute_import\nfrom builtins import * # noqa pylint: disable=unused-import, redefined-builtin\n\nimport json\nimport logging\nimport os\nimport re\nfrom collections import deque\nfrom functools import wraps\n\nfrom flask import Flask, request, ... | diff --git a/flexget/api/app.py b/flexget/api/app.py
index 613965ca86..218ab3bf78 100644
--- a/flexget/api/app.py
+++ b/flexget/api/app.py
@@ -231,6 +231,7 @@ def pagination_parser(self, parser=None, sort_choices=None, default=None, add_so
api_app.config['REMEMBER_COOKIE_NAME'] = 'flexget.token'
api_app.config['DEBUG... |
keras-team__autokeras-1285 | How use multiple gpu?
### Feature Description
I want to use a single machine with multiple gpu for training, but it seems to have no actual effect### Code Example
```python
with strategy.scope():
```
### Reason
Speed up the calculation of toxins
### Solution
<!---
Please tell us how to implement the feat... | [
{
"content": "# Copyright 2020 The AutoKeras 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 ... | [
{
"content": "# Copyright 2020 The AutoKeras 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 ... | diff --git a/autokeras/graph.py b/autokeras/graph.py
index 9321740b6..555b118fe 100644
--- a/autokeras/graph.py
+++ b/autokeras/graph.py
@@ -249,7 +249,6 @@ def from_config(cls, config):
def build(self, hp):
"""Build the HyperModel into a Keras Model."""
- tf.keras.backend.clear_session()
... |
rasterio__rasterio-801 | Use .dev versioning, pre-releases
With the 1.0 release coming and likely a few PRs with breaking changes, it would be helpful to start doing dev releases so we can maximize the number of eyes.
**Proposal**: Change version to `1.0.dev1` now, as we make changes, cut pre-release wheels and distribute them via on pypi.
W... | [
{
"content": "\"\"\"Rasterio\"\"\"\n\nfrom __future__ import absolute_import\n\nfrom collections import namedtuple\nimport logging\ntry:\n from logging import NullHandler\nexcept ImportError: # pragma: no cover\n class NullHandler(logging.Handler):\n def emit(self, record):\n pass\nimpo... | [
{
"content": "\"\"\"Rasterio\"\"\"\n\nfrom __future__ import absolute_import\n\nfrom collections import namedtuple\nimport logging\ntry:\n from logging import NullHandler\nexcept ImportError: # pragma: no cover\n class NullHandler(logging.Handler):\n def emit(self, record):\n pass\nimpo... | diff --git a/rasterio/__init__.py b/rasterio/__init__.py
index 556e5c754..bb30387bc 100644
--- a/rasterio/__init__.py
+++ b/rasterio/__init__.py
@@ -32,7 +32,7 @@ def emit(self, record):
__all__ = [
'band', 'open', 'copy', 'pad']
-__version__ = "0.36.0"
+__version__ = "1.0.dev1"
__gdal_version__ = gdal_version... |
searx__searx-1483 | wolframalpha engine is broken
The wolframalpha engine appears to be broken in 0.15.0
```
searx-run[9330]: ERROR:searx.search:engine wolframalpha : exception : Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.
searx-run[9330]: Traceback (most rec... | [
{
"content": "# Wolfram Alpha (Science)\n#\n# @website https://www.wolframalpha.com\n# @provide-api yes (https://api.wolframalpha.com/v2/)\n#\n# @using-api yes\n# @results XML\n# @stable yes\n# @parse url, infobox\n\nfrom lxml import etree\nfrom searx.url_utils import urlencode\n\n# search-... | [
{
"content": "# Wolfram Alpha (Science)\n#\n# @website https://www.wolframalpha.com\n# @provide-api yes (https://api.wolframalpha.com/v2/)\n#\n# @using-api yes\n# @results XML\n# @stable yes\n# @parse url, infobox\n\nfrom lxml import etree\nfrom searx.url_utils import urlencode\n\n# search-... | diff --git a/searx/engines/wolframalpha_api.py b/searx/engines/wolframalpha_api.py
index 595c6b7de3..1c58c4a9b7 100644
--- a/searx/engines/wolframalpha_api.py
+++ b/searx/engines/wolframalpha_api.py
@@ -65,7 +65,7 @@ def replace_pua_chars(text):
def response(resp):
results = []
- search_results = etree.XML(r... |
nautobot__nautobot-2575 | Napalm Configuration Does Not Match Documentation
<!--
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
discussion instead: h... | [
{
"content": "import os\nimport platform\nimport re\n\nfrom django.contrib.messages import constants as messages\nimport django.forms\n\nfrom nautobot import __version__\nfrom nautobot.core.settings_funcs import is_truthy, parse_redis_connection # noqa: F401\n\n#\n# Environment setup\n#\n\n# This is used for d... | [
{
"content": "import os\nimport platform\nimport re\n\nfrom django.contrib.messages import constants as messages\nimport django.forms\n\nfrom nautobot import __version__\nfrom nautobot.core.settings_funcs import is_truthy, parse_redis_connection # noqa: F401\n\n#\n# Environment setup\n#\n\n# This is used for d... | diff --git a/changes/2574.fixed b/changes/2574.fixed
new file mode 100644
index 00000000000..6c7e405357d
--- /dev/null
+++ b/changes/2574.fixed
@@ -0,0 +1 @@
+Updated nautobot.core.settings to match expected behavior on NAPALM_USERNAME NAPALM_PASSWORD & NAPALM_TIMEOUT based on documentation.
\ No newline at end of file... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.