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
google__timesketch-949
Yeti analyzer crash From the celery log: ``` [2019-07-17 09:11:37,463: ERROR/ForkPoolWorker-1] Task timesketch.lib.tasks.run_sketch_analyzer[46d24990-12df-4c88-a79b-a3b5f1c04b01] raised unexpected: TypeError("unsupported operand type(s) for +: 'NoneType' and 'unicode'",) Traceback (most recent call last): File ...
[ { "content": "\"\"\"Index analyzer plugin for Yeti indicators.\"\"\"\nfrom __future__ import unicode_literals\n\nfrom flask import current_app\nimport requests\n\nfrom timesketch.lib.analyzers import interface\nfrom timesketch.lib.analyzers import manager\nfrom timesketch.lib import emojis\n\n\ndef build_query_...
[ { "content": "\"\"\"Index analyzer plugin for Yeti indicators.\"\"\"\nfrom __future__ import unicode_literals\n\nfrom flask import current_app\nimport requests\n\nfrom timesketch.lib.analyzers import interface\nfrom timesketch.lib.analyzers import manager\nfrom timesketch.lib import emojis\n\n\ndef build_query_...
diff --git a/timesketch/lib/analyzers/yetiindicators.py b/timesketch/lib/analyzers/yetiindicators.py index 16b1afe24e..5c8a0347d5 100644 --- a/timesketch/lib/analyzers/yetiindicators.py +++ b/timesketch/lib/analyzers/yetiindicators.py @@ -88,6 +88,8 @@ def run(self): Returns: String with summary o...
ivy-llc__ivy-18208
expand
[ { "content": "# global\nimport ivy\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\nfrom ivy.func_wrapper import (\n with_unsupported_dtypes,\n with_supported_dtypes,\n)\n\n\n@to_ivy_arrays_and_back\ndef reshape(x, shape):\n return ivy.reshape(x, shape)\n\n\n...
[ { "content": "# global\nimport ivy\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\nfrom ivy.func_wrapper import (\n with_unsupported_dtypes,\n with_supported_dtypes,\n)\n\n\n@to_ivy_arrays_and_back\ndef reshape(x, shape):\n return ivy.reshape(x, shape)\n\n\n...
diff --git a/ivy/functional/frontends/paddle/tensor/manipulation.py b/ivy/functional/frontends/paddle/tensor/manipulation.py index adb24100b6e7c..cb68d6878a4aa 100644 --- a/ivy/functional/frontends/paddle/tensor/manipulation.py +++ b/ivy/functional/frontends/paddle/tensor/manipulation.py @@ -61,6 +61,15 @@ def squeeze(...
encode__uvicorn-2061
WebSockets 11.0 broke Uvicorn test suite As the title says... Changelog: https://websockets.readthedocs.io/en/stable/project/changelog.html
[ { "content": "import asyncio\nimport http\nimport logging\nfrom typing import (\n Any,\n Dict,\n List,\n Literal,\n Optional,\n Sequence,\n Tuple,\n Union,\n cast,\n)\nfrom urllib.parse import unquote\n\nimport websockets\nfrom websockets.datastructures import Headers\nfrom websockets...
[ { "content": "import asyncio\nimport http\nimport logging\nfrom typing import (\n Any,\n Dict,\n List,\n Literal,\n Optional,\n Sequence,\n Tuple,\n Union,\n cast,\n)\nfrom urllib.parse import unquote\n\nimport websockets\nfrom websockets.datastructures import Headers\nfrom websockets...
diff --git a/requirements.txt b/requirements.txt index a99dc024a..305bd0186 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ h11 @ git+https://github.com/python-hyper/h11.git@master # Explicit optionals a2wsgi==1.7.0 wsproto==1.2.0 -websockets==10.4 +websockets==11.0.3 # Packaging build==0.10...
DataDog__dd-trace-py-3119
aioredis integration: Tracing breaks pipeline as context managers Hello, looks like the `aioredis` integration breaks the interface of `Pipeline` objects as context managers: ```py RuntimeWarning: coroutine 'traced_pipeline' was never awaited ``` and ```py async with redis.pipeline(transaction=True) as p...
[ { "content": "import sys\n\nimport aioredis\n\nfrom ddtrace import config\nfrom ddtrace.internal.utils.wrappers import unwrap as _u\nfrom ddtrace.pin import Pin\nfrom ddtrace.vendor.wrapt import wrap_function_wrapper as _w\n\nfrom .. import trace_utils\nfrom ...constants import ANALYTICS_SAMPLE_RATE_KEY\nfrom ....
[ { "content": "import sys\n\nimport aioredis\n\nfrom ddtrace import config\nfrom ddtrace.internal.utils.wrappers import unwrap as _u\nfrom ddtrace.pin import Pin\nfrom ddtrace.vendor.wrapt import wrap_function_wrapper as _w\n\nfrom .. import trace_utils\nfrom ...constants import ANALYTICS_SAMPLE_RATE_KEY\nfrom ....
diff --git a/ddtrace/contrib/aioredis/patch.py b/ddtrace/contrib/aioredis/patch.py index c2752835c9f..286e65c0053 100644 --- a/ddtrace/contrib/aioredis/patch.py +++ b/ddtrace/contrib/aioredis/patch.py @@ -70,8 +70,8 @@ async def traced_execute_command(func, instance, args, kwargs): return await func(*args, **k...
Lightning-AI__torchmetrics-1782
NLTK punkt bug ## 🐛 Bug [This line](https://github.com/Lightning-AI/torchmetrics/blob/17c0e9fdf636cff7299fc3d86fa5e3709b603737/src/torchmetrics/functional/text/rouge.py#L52) `nltk.data.find("tokenizers/punkt.zip")` always raises LookupError: ``` LookupError: *****************************************************...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
diff --git a/CHANGELOG.md b/CHANGELOG.md index aac7236fb06..a8901c43b93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -189,6 +189,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed use of `prefix` and `postfix` in nested `MetricCollection` ([#1773](https://github.com/Ligh...
microsoft__botbuilder-python-2117
valid_token_issuers incorrectly populated during SingleTenant validation ### [Github issues](https://github.com/Microsoft/botbuilder-python) should be used for bugs and feature requests. Use [Stack Overflow](https://stackoverflow.com/questions/tagged/botframework) for general "how-to" questions. ## Version 4.15.0 ...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nfrom datetime import timedelta\nfrom typing import Dict, Union\n\nimport jwt\n\nfrom .authentication_configuration import AuthenticationConfiguration\nfrom .authentication_constants import Authenticat...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nfrom datetime import timedelta\nfrom typing import Dict, Union\n\nimport jwt\n\nfrom .authentication_configuration import AuthenticationConfiguration\nfrom .authentication_constants import Authenticat...
diff --git a/libraries/botframework-connector/botframework/connector/auth/skill_validation.py b/libraries/botframework-connector/botframework/connector/auth/skill_validation.py index b708e27cb..8c35f1b0a 100644 --- a/libraries/botframework-connector/botframework/connector/auth/skill_validation.py +++ b/libraries/botfra...
python-poetry__poetry-438
Trailing newline not included in profile `export PATH` (new style installer) - **OS version and name**: Debian Buster - **Poetry version**: 0.12.0a1 ## Issue I installed Poetry with the new style installer : ``` curl -sSL -O https://raw.githubusercontent.com/sdispater/poetry/develop/get-poetry.py python3 get-po...
[ { "content": "\"\"\"\nThis script will install poetry and its dependencies\nin isolation from the rest of the system.\n\nIt does, in order:\n\n - Downloads the latest stable (or pre-release) version of poetry.\n - Downloads all its dependencies in the poetry/_vendor directory.\n - Copies it and all extra fil...
[ { "content": "\"\"\"\nThis script will install poetry and its dependencies\nin isolation from the rest of the system.\n\nIt does, in order:\n\n - Downloads the latest stable (or pre-release) version of poetry.\n - Downloads all its dependencies in the poetry/_vendor directory.\n - Copies it and all extra fil...
diff --git a/get-poetry.py b/get-poetry.py index 55e32b42c04..3b1587afadc 100644 --- a/get-poetry.py +++ b/get-poetry.py @@ -581,7 +581,7 @@ def update_path(self): # Updating any profile we can on UNIX systems export_string = self.get_export_string() - addition = "\n{}".format(export_string) ...
internetarchive__openlibrary-7672
pre-commit: Add Python linting tool ruff Add https://beta.ruff.rs to our pre-commit as a replacement for `flake8`, `isort`, `pyupgrade`, etc. but written in Rust instead of Python. It can lint the CPython codebase from scratch in 0.29 seconds. Adopting Ruff should greatly accelerate our pre-commits and our pre-commi...
[ { "content": "\"\"\" This entire module is deprecated,\n openlibrary.catalog.marc.get_subjects is the preferred module\n\"\"\"\n\n# Tell the flake8 linter to ignore this deprecated file.\n# flake8: noqa\n\nfrom collections import defaultdict\nfrom deprecated import deprecated\nfrom lxml import etree\nimport ...
[ { "content": "\"\"\" This entire module is deprecated,\n openlibrary.catalog.marc.get_subjects is the preferred module\n\"\"\"\n\n# Tell the ruff linter to ignore this deprecated file.\n# ruff: noqa\n\nfrom collections import defaultdict\nfrom deprecated import deprecated\nfrom lxml import etree\nimport re\n...
diff --git a/.flake8 b/.flake8 deleted file mode 100644 index ebf02ca46cf..00000000000 --- a/.flake8 +++ /dev/null @@ -1,13 +0,0 @@ -[flake8] -count = true -exclude = ./.*,vendor/*,node_modules/* -# 55 E203 whitespace before ':' -- Do not fix because black will undo it -# 18 E402 module level import not at top of...
numpy__numpy-12831
[BUG] Intel Fortran compiler installed but not found Hi, I have intel compilers installed, but get this: ``` Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc customize IntelEM64TFCompiler Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/ifort Trac...
[ { "content": "from __future__ import division, absolute_import, print_function\n\nimport os\nimport re\nimport sys\nimport types\nimport shlex\nimport time\nimport subprocess\nfrom copy import copy\nfrom distutils import ccompiler\nfrom distutils.ccompiler import *\nfrom distutils.errors import DistutilsExecErr...
[ { "content": "from __future__ import division, absolute_import, print_function\n\nimport os\nimport re\nimport sys\nimport types\nimport shlex\nimport time\nimport subprocess\nfrom copy import copy\nfrom distutils import ccompiler\nfrom distutils.ccompiler import *\nfrom distutils.errors import DistutilsExecErr...
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index 100d0d06995f..552b9566f773 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -639,7 +639,7 @@ def matcher(version_string): return version try: - output = subprocess.check_output(versio...
kivy__kivy-4785
RecycleBoxLayout NameError ``` python from random import sample from string import ascii_lowercase from kivy.app import App from kivy.lang import Builder from kivy.uix.boxlayout import BoxLayout kv = """ <Row@BoxLayout>: value: '' size_hint: None, None size: self.minimum_size Label: text: roo...
[ { "content": "\"\"\"\nRecycleBoxLayout\n================\n\n.. versionadded:: 1.9.2\n\n.. warning::\n This module is highly experimental, its API may change in the future and\n the documentation is not complete at this time.\n\nThe RecycleBoxLayout is designed to provide a\n:class:`~kivy.uix.boxlayout.Box...
[ { "content": "\"\"\"\nRecycleBoxLayout\n================\n\n.. versionadded:: 1.9.2\n\n.. warning::\n This module is highly experimental, its API may change in the future and\n the documentation is not complete at this time.\n\nThe RecycleBoxLayout is designed to provide a\n:class:`~kivy.uix.boxlayout.Box...
diff --git a/kivy/uix/recycleboxlayout.py b/kivy/uix/recycleboxlayout.py index 522a59c484..a4888ff93b 100644 --- a/kivy/uix/recycleboxlayout.py +++ b/kivy/uix/recycleboxlayout.py @@ -91,7 +91,7 @@ def _update_sizes(self, changed): xo = posx - (w / 2.) opt['pos'] = [xo, yo] - ...
Netflix__lemur-3166
DNS Providers list doesn't show type In the DNS Providers list, there is a column for the provider type, but it's always empty. Looking at the code, and the API requests, the issue seems to be with the dns_providers API call, which returns the list of all providers. There should be a providerType value in the JS...
[ { "content": "from marshmallow import fields\n\nfrom lemur.common.fields import ArrowDateTime\nfrom lemur.common.schema import LemurInputSchema, LemurOutputSchema\n\n\nclass DnsProvidersNestedOutputSchema(LemurOutputSchema):\n __envelope__ = False\n id = fields.Integer()\n name = fields.String()\n p...
[ { "content": "from marshmallow import fields\n\nfrom lemur.common.fields import ArrowDateTime\nfrom lemur.common.schema import LemurInputSchema, LemurOutputSchema\n\n\nclass DnsProvidersNestedOutputSchema(LemurOutputSchema):\n __envelope__ = False\n id = fields.Integer()\n name = fields.String()\n p...
diff --git a/lemur/dns_providers/schemas.py b/lemur/dns_providers/schemas.py index 05b6471d28..af9377b3fa 100644 --- a/lemur/dns_providers/schemas.py +++ b/lemur/dns_providers/schemas.py @@ -8,7 +8,7 @@ class DnsProvidersNestedOutputSchema(LemurOutputSchema): __envelope__ = False id = fields.Integer() na...
ipython__ipython-1942
script magics cause terminal spam since the addition of script magics in cdde5bba8 one gets a _which_ error message outputted to the terminal on each start: e.g. if no python3 is available: ``` $ ipython which: no python3 in (/scratch/jtaylor/progs/localinst/lib/ccache:/scratch/jtaylor/progs/localinst/bin:/scratch/jta...
[ { "content": "\"\"\"Posix-specific implementation of process utilities.\n\nThis file is only meant to be imported by process.py, not by end-users.\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (C) 2010-2011 The IPython Development Team\n#\n# Distribute...
[ { "content": "\"\"\"Posix-specific implementation of process utilities.\n\nThis file is only meant to be imported by process.py, not by end-users.\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (C) 2010-2011 The IPython Development Team\n#\n# Distribute...
diff --git a/IPython/utils/_process_posix.py b/IPython/utils/_process_posix.py index 8d4e6f24d07..50f302635d7 100644 --- a/IPython/utils/_process_posix.py +++ b/IPython/utils/_process_posix.py @@ -36,7 +36,7 @@ def _find_cmd(cmd): """Find the full path to a command using which.""" path = sp.Popen(['/usr/bin...
pantsbuild__pants-4690
v2 python pipeline can fail with IOError attempting to open non-existent PEX-INFO file there seems to be some kind of issue with the v2 python pipeline where chroot dirs may be created without actually containing the appropriate pex guts. subsequent attempts to open the dir as a pex fail with the following traceback: ...
[ { "content": "# coding=utf-8\n# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import (absolute_import, division, generators, nested_scopes, print_function,\n unicode_literals, with_state...
[ { "content": "# coding=utf-8\n# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import (absolute_import, division, generators, nested_scopes, print_function,\n unicode_literals, with_state...
diff --git a/.travis.yml b/.travis.yml index fbc028a9a38..66baea8d1fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,6 +64,7 @@ matrix: - os: linux dist: trusty + group: deprecated-2017Q2 sudo: required # Docker runs will write files as root, so avoid caching for this shard. c...
sunpy__sunpy-1505
EIT data fails with wcsaxes The wcs information in the EIT header is not being identified as celestial axes by wcslib (inside astropy.wcs). This means that wcs is not detecting them as angular axes properly so therefore the set to arcsecond formatting is failing.
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nHelpers and Functions to make WCSAxes work in SunPy\n\"\"\"\nimport warnings\n\nimport matplotlib.pyplot as plt\n\nimport astropy.units as u\n\ntry:\n import wcsaxes\n HAVE_WCSAXES = True\n\nexcept ImportError:\n HAVE_WCSAXES = False\n warnings.warn(\"S...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nHelpers and Functions to make WCSAxes work in SunPy\n\"\"\"\nimport warnings\n\nimport matplotlib.pyplot as plt\n\nimport astropy.units as u\n\ntry:\n import wcsaxes\n HAVE_WCSAXES = True\n\nexcept ImportError:\n HAVE_WCSAXES = False\n warnings.warn(\"S...
diff --git a/sunpy/visualization/wcsaxes_compat.py b/sunpy/visualization/wcsaxes_compat.py index 0bf4f5050d2..d541e6887e3 100644 --- a/sunpy/visualization/wcsaxes_compat.py +++ b/sunpy/visualization/wcsaxes_compat.py @@ -84,6 +84,11 @@ def default_wcs_grid(axes): x.set_ticks_position('bl') y.set_ticks_positio...
locustio__locust-2533
TaskSet missing _cp_last_run attribute ### Prerequisites - [X] I am using [the latest version of Locust](https://github.com/locustio/locust/releases/) - [X] I am reporting a bug, not asking a question ### Description When using the `constant_pacing` wait time strategy in a task set, an error is thrown. `Task...
[ { "content": "from __future__ import annotations\nimport logging\nimport random\nimport traceback\nfrom time import time\nfrom typing import (\n TYPE_CHECKING,\n Callable,\n List,\n TypeVar,\n Optional,\n Type,\n overload,\n Dict,\n Set,\n Protocol,\n final,\n runtime_checkab...
[ { "content": "from __future__ import annotations\nimport logging\nimport random\nimport traceback\nfrom time import time\nfrom typing import (\n TYPE_CHECKING,\n Callable,\n List,\n TypeVar,\n Optional,\n Type,\n overload,\n Dict,\n Set,\n Protocol,\n final,\n runtime_checkab...
diff --git a/locust/user/task.py b/locust/user/task.py index 76629316da..56d68848fe 100644 --- a/locust/user/task.py +++ b/locust/user/task.py @@ -298,6 +298,7 @@ def __init__(self, parent: "User") -> None: self.max_wait = self.user.max_wait if not self.wait_function: self.wait_functi...
pytorch__ignite-1324
Create a logo for Ignite ### 🚀 Feature @vfdev-5 asked me to work on a logo to represent Ignite and its relation to main PyTorch, so I’m opening this issue to post iterations and provide a place for discussion. All feedback is welcome! I'm looking forward to hearing the community's thoughts. These first iter...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Configuration file for the Sphinx documentation builder.\n#\n# This file does only contain a selection of the most common options. For a\n# full list see the documentation:\n# http://www.sphinx-doc.org/en/stable/config\n\n# -- Path setup ------------------------------...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Configuration file for the Sphinx documentation builder.\n#\n# This file does only contain a selection of the most common options. For a\n# full list see the documentation:\n# http://www.sphinx-doc.org/en/stable/config\n\n# -- Path setup ------------------------------...
diff --git a/README.md b/README.md index 957c91fd7595..164bcf1642e9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ <div align="center"> -![Ignite Logo](assets/ignite_logo.svg) +<!-- ![Ignite Logo](assets/logo/ignite_logo_mixed.svg) --> + +<img src="assets/logo/ignite_logo_mixed.svg" width=512> + [![imag...
netbox-community__netbox-1046
DeviceComponentFilterSet by name expects int instead of str. <!-- Please note: GitHub issues are to be used only for feature requests and bug reports. For installation assistance or general discussion, please join us on the mailing list: https://groups.google.com/forum/#!forum/netbox-discuss ...
[ { "content": "import django_filters\nfrom netaddr.core import AddrFormatError\n\nfrom django.db.models import Q\n\nfrom extras.filters import CustomFieldFilterSet\nfrom tenancy.models import Tenant\nfrom utilities.filters import NullableModelMultipleChoiceFilter, NumericInFilter\nfrom .models import (\n Cons...
[ { "content": "import django_filters\nfrom netaddr.core import AddrFormatError\n\nfrom django.db.models import Q\n\nfrom extras.filters import CustomFieldFilterSet\nfrom tenancy.models import Tenant\nfrom utilities.filters import NullableModelMultipleChoiceFilter, NumericInFilter\nfrom .models import (\n Cons...
diff --git a/netbox/dcim/filters.py b/netbox/dcim/filters.py index 7992f8e054e..f94b1728aec 100644 --- a/netbox/dcim/filters.py +++ b/netbox/dcim/filters.py @@ -401,7 +401,7 @@ class DeviceComponentFilterSet(django_filters.FilterSet): label='Device (ID)', ) device = django_filters.ModelMultipleChoice...
ansible__ansible-40614
asa_config Python3 Compatibility Issue for "backup" <!--- Verify first that your issue/request is not already reported on GitHub. THIS FORM WILL BE READ BY A MACHINE, COMPLETE ALL SECTIONS AS DESCRIBED. Also test if the latest release, and devel branch are affected too. ALWAYS add information AFTER (OUTSIDE) these ...
[ { "content": "#\n# (c) 2017, Red Hat, Inc.\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...
[ { "content": "#\n# (c) 2017, Red Hat, Inc.\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...
diff --git a/lib/ansible/plugins/action/asa_config.py b/lib/ansible/plugins/action/asa_config.py index bd8916b65a1fb1..8513d84616d109 100644 --- a/lib/ansible/plugins/action/asa_config.py +++ b/lib/ansible/plugins/action/asa_config.py @@ -55,7 +55,7 @@ def run(self, tmp=None, task_vars=None): # strip out any...
obspy__obspy-2187
Check if taupy model is already opened As a suggestion, I think it makes more sense to check if `model` is already an instance of `TauPyModel` here: https://github.com/obspy/obspy/blob/6b43db0b6fec380e4d93d8d468eececcb74b4781/obspy/taup/tau.py#L942
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nHigh-level interface to travel-time calculation routines.\n\"\"\"\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\nfrom future.builtins import * # NOQA\n\nimport copy\nimport war...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nHigh-level interface to travel-time calculation routines.\n\"\"\"\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\nfrom future.builtins import * # NOQA\n\nimport copy\nimport war...
diff --git a/obspy/taup/tau.py b/obspy/taup/tau.py index b4def9ddf5e..7ab4f103175 100644 --- a/obspy/taup/tau.py +++ b/obspy/taup/tau.py @@ -939,7 +939,8 @@ def plot_travel_times(source_depth, phase_list=("ttbasic",), min_degrees=0, import matplotlib.pyplot as plt # compute the requested arrivals: - mode...
mitmproxy__mitmproxy-6587
mitmproxy: 10.2: WireGuard Mode Does Not Receive Connections #### Problem Description It looks like commit 6e38a56f4 Thu Jan 4 10:53:13 2024 +0100 implement UDP streams (and all future commits) has changed/broken something in the wireguard proxy mode. Prior commits work as expected. #### Steps to reproduce the b...
[ { "content": "\"\"\"\nThis module defines \"server instances\", which manage\nthe TCP/UDP servers spawned by mitmproxy as specified by the proxy mode.\n\nExample:\n\n mode = ProxyMode.parse(\"reverse:https://example.com\")\n inst = ServerInstance.make(mode, manager_that_handles_callbacks)\n await inst....
[ { "content": "\"\"\"\nThis module defines \"server instances\", which manage\nthe TCP/UDP servers spawned by mitmproxy as specified by the proxy mode.\n\nExample:\n\n mode = ProxyMode.parse(\"reverse:https://example.com\")\n inst = ServerInstance.make(mode, manager_that_handles_callbacks)\n await inst....
diff --git a/CHANGELOG.md b/CHANGELOG.md index e40679ec8d..494dc2535f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ ## Unreleased: mitmproxy next +* Fix a regression introduced in mitmproxy 10.2.0: WireGuard servers + now bind to all interfaces again. + ([#6587](https://github.com/mitmproxy/mitmpr...
chainer__chainer-524
Error type mismatch when broadcast fails When broadcast fails, numpy causes `ValueError`, but cupy causes `RuntimeError`.
[ { "content": "import six\n\nimport cupy\nfrom cupy import internal\n\n\nzip_longest = six.moves.zip_longest\nsix_zip = six.moves.zip\n\n\ndef atleast_1d(*arys):\n \"\"\"Converts arrays to arrays with dimensions >= 1.\n\n Args:\n arys (tuple of arrays): Arrays to be converted. All arguments must be\...
[ { "content": "import six\n\nimport cupy\nfrom cupy import internal\n\n\nzip_longest = six.moves.zip_longest\nsix_zip = six.moves.zip\n\n\ndef atleast_1d(*arys):\n \"\"\"Converts arrays to arrays with dimensions >= 1.\n\n Args:\n arys (tuple of arrays): Arrays to be converted. All arguments must be\...
diff --git a/cupy/manipulation/dims.py b/cupy/manipulation/dims.py index dfb0cc92a39e..5f6158fd34c1 100644 --- a/cupy/manipulation/dims.py +++ b/cupy/manipulation/dims.py @@ -149,7 +149,7 @@ def __init__(self, *arrays): in six_zip(r_shape, a._shape[rev], a._strides[rev])] if None in r_st...
archlinux__archinstall-1954
[master] awesome (desktops in general?) don't install packages? It appears when choosing awesome, install is called: https://github.com/archlinux/archinstall/blob/7326d51161bf6fd7f1c683cf1d7ce09338efe4b7/archinstall/default_profiles/desktops/awesome.py#L23-L24 And super being `XorgProfile`: https://github.com/archli...
[ { "content": "from typing import List, Optional, Any, TYPE_CHECKING\n\nfrom archinstall.default_profiles.profile import ProfileType\nfrom archinstall.default_profiles.xorg import XorgProfile\n\nif TYPE_CHECKING:\n\tfrom archinstall.lib.installer import Installer\n\t_: Any\n\n\nclass AwesomeProfile(XorgProfile):...
[ { "content": "from typing import List, Optional, Any, TYPE_CHECKING\n\nfrom archinstall.default_profiles.profile import ProfileType\nfrom archinstall.default_profiles.xorg import XorgProfile\n\nif TYPE_CHECKING:\n\tfrom archinstall.lib.installer import Installer\n\t_: Any\n\n\nclass AwesomeProfile(XorgProfile):...
diff --git a/archinstall/default_profiles/desktops/awesome.py b/archinstall/default_profiles/desktops/awesome.py index bb4819146e..371e51dbef 100644 --- a/archinstall/default_profiles/desktops/awesome.py +++ b/archinstall/default_profiles/desktops/awesome.py @@ -14,7 +14,10 @@ def __init__(self): @property def pa...
dynaconf__dynaconf-769
[RFC] Resolve depreciation warning for depreciated property kv **Is your feature request related to a problem? Please describe.** Yes, Currently we are hitting the depreciation warning in hvac 0.11 since the kv property is depreciated and adviced to use from `Client.secrets` Clear Warning: DeprecationWarning: Call...
[ { "content": "# docker run -e 'VAULT_DEV_ROOT_TOKEN_ID=myroot' -p 8200:8200 vault\n# pip install hvac\nfrom __future__ import annotations\n\nfrom dynaconf.utils import build_env_list\nfrom dynaconf.utils.parse_conf import parse_conf_data\n\ntry:\n import boto3\nexcept ImportError:\n boto3 = None\n\ntry:\n...
[ { "content": "# docker run -e 'VAULT_DEV_ROOT_TOKEN_ID=myroot' -p 8200:8200 vault\n# pip install hvac\nfrom __future__ import annotations\n\nfrom dynaconf.utils import build_env_list\nfrom dynaconf.utils.parse_conf import parse_conf_data\n\ntry:\n import boto3\nexcept ImportError:\n boto3 = None\n\ntry:\n...
diff --git a/dynaconf/loaders/vault_loader.py b/dynaconf/loaders/vault_loader.py index 9408a5aa0..c6b168316 100644 --- a/dynaconf/loaders/vault_loader.py +++ b/dynaconf/loaders/vault_loader.py @@ -58,7 +58,7 @@ def get_client(obj): "Vault authentication error: is VAULT_TOKEN_FOR_DYNACONF or " "VAULT_R...
spack__spack-25373
Installation issue: parsec 3.0.2012: Unknown CMake command "FLEX_TARGET" ### Steps to reproduce the issue `parsec` fails at CMake stage using: * `spack@develop` (81be31aee091a6d108a40e0f3dc7ff3bdfa93f26 from `Mon Aug 9 16:07:39 2021 +0200`) * Ubuntu 20.04, GCC 9.3.0 Concrete spec: [parsec.spec.yaml.txt](https://g...
[ { "content": "# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n#\nimport llnl.util.tty as tty\n\nfrom spack import *\n\n\nclass Parsec(CMakePackage, CudaPackage...
[ { "content": "# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n#\nimport llnl.util.tty as tty\n\nfrom spack import *\n\n\nclass Parsec(CMakePackage, CudaPackage...
diff --git a/var/spack/repos/builtin/packages/parsec/package.py b/var/spack/repos/builtin/packages/parsec/package.py index ab154e71b6be6c..014b8e025619e4 100644 --- a/var/spack/repos/builtin/packages/parsec/package.py +++ b/var/spack/repos/builtin/packages/parsec/package.py @@ -39,6 +39,8 @@ class Parsec(CMakePackage, ...
mozmeao__snippets-service-1221
FieldError on /admin/base/job/add/ https://sentry.prod.mozaws.net/operations/snippets/issues/6453618/?query=is:unresolved "'completed_on' cannot be specified for Job model form as it is a non-editable field. Check fields/fieldsets/exclude attributes of class JobAdmin." FieldError on /admin/base/job/add/ https://sent...
[ { "content": "import copy\nimport re\n\nfrom django.conf import settings\nfrom django.contrib import admin, messages\nfrom django.contrib.humanize.templatetags.humanize import intcomma\nfrom django.db.models import TextField, Q\nfrom django.http import HttpResponseRedirect\nfrom django.template.loader import ge...
[ { "content": "import copy\nimport re\n\nfrom django.conf import settings\nfrom django.contrib import admin, messages\nfrom django.contrib.humanize.templatetags.humanize import intcomma\nfrom django.db.models import TextField, Q\nfrom django.http import HttpResponseRedirect\nfrom django.template.loader import ge...
diff --git a/snippets/base/admin/adminmodels.py b/snippets/base/admin/adminmodels.py index d53494e34..f43c49b8f 100644 --- a/snippets/base/admin/adminmodels.py +++ b/snippets/base/admin/adminmodels.py @@ -1019,7 +1019,7 @@ class JobAdmin(admin.ModelAdmin): ] fieldsets = [ ('ID', { - 'field...
encode__django-rest-framework-7708
Invalid `CursorPagination` schema type ## Checklist - [x] I have verified that that issue exists against the `master` branch of Django REST framework. - [x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate. - [x] This is not a usage question. (Those should be directed ...
[ { "content": "\"\"\"\nPagination serializers determine the structure of the output that should\nbe used for paginated responses.\n\"\"\"\nfrom base64 import b64decode, b64encode\nfrom collections import OrderedDict, namedtuple\nfrom urllib import parse\n\nfrom django.core.paginator import InvalidPage\nfrom djan...
[ { "content": "\"\"\"\nPagination serializers determine the structure of the output that should\nbe used for paginated responses.\n\"\"\"\nfrom base64 import b64decode, b64encode\nfrom collections import OrderedDict, namedtuple\nfrom urllib import parse\n\nfrom django.core.paginator import InvalidPage\nfrom djan...
diff --git a/rest_framework/pagination.py b/rest_framework/pagination.py index dc120d8e86..e815d8d5cf 100644 --- a/rest_framework/pagination.py +++ b/rest_framework/pagination.py @@ -961,7 +961,7 @@ def get_schema_operation_parameters(self, view): 'in': 'query', 'description': force_st...
lutris__lutris-4038
Bottom panel switches to a different game when it stops If another game is running and you switch to a different one, and the first game is closed by itself (like quitting it manually, closing the game window), not through Lutris, the bottom panel will switch to that stopped game all by itself, without user's interacti...
[ { "content": "from datetime import datetime\nfrom gettext import gettext as _\n\nfrom gi.repository import GObject, Gtk, Pango\n\nfrom lutris import runners, services\nfrom lutris.database.games import get_game_by_field, get_game_for_service\nfrom lutris.game import Game\nfrom lutris.gui.widgets.utils import ge...
[ { "content": "from datetime import datetime\nfrom gettext import gettext as _\n\nfrom gi.repository import GObject, Gtk, Pango\n\nfrom lutris import runners, services\nfrom lutris.database.games import get_game_by_field, get_game_for_service\nfrom lutris.game import Game\nfrom lutris.gui.widgets.utils import ge...
diff --git a/lutris/gui/widgets/game_bar.py b/lutris/gui/widgets/game_bar.py index f10ab86066..c13be6410d 100644 --- a/lutris/gui/widgets/game_bar.py +++ b/lutris/gui/widgets/game_bar.py @@ -261,7 +261,7 @@ def on_game_state_changed(self, game): """Handler called when the game has changed state""" if ...
ivy-llc__ivy-18204
meshgrid
[ { "content": "# global\r\nimport ivy\r\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\r\nfrom .tensor import Tensor\r\nfrom ivy.functional.frontends.paddle.func_wrapper import (\r\n to_ivy_arrays_and_back,\r\n)\r\n\r\n\r\n@to_ivy_arrays_and_back\r\ndef to_tensor(data, /, *, dtyp...
[ { "content": "# global\r\nimport ivy\r\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\r\nfrom .tensor import Tensor\r\nfrom ivy.functional.frontends.paddle.func_wrapper import (\r\n to_ivy_arrays_and_back,\r\n)\r\n\r\n\r\n@to_ivy_arrays_and_back\r\ndef to_tensor(data, /, *, dtyp...
diff --git a/ivy/functional/frontends/paddle/tensor/creation.py b/ivy/functional/frontends/paddle/tensor/creation.py index 9ec862343d3ae..befe28ee15164 100644 --- a/ivy/functional/frontends/paddle/tensor/creation.py +++ b/ivy/functional/frontends/paddle/tensor/creation.py @@ -123,3 +123,11 @@ def triu(x, diagonal=0, na...
nilearn__nilearn-3162
Confusing Documentation in new_img_like I think there is some slightly confusing language in the docstring of `new_img_like`. The Parameters list indicates a copy_header parameter to indicate whether the header is copied, but the Returns section indicates "A loaded image with the same type _(and header)_ as the referen...
[ { "content": "\"\"\"\nPreprocessing functions for images.\n\nSee also nilearn.signal.\n\"\"\"\n# Authors: Philippe Gervais, Alexandre Abraham\n# License: simplified BSD\n\nimport collections.abc\nimport copy\nimport warnings\n\nimport nibabel\nimport numpy as np\nfrom joblib import Parallel, delayed\nfrom scipy...
[ { "content": "\"\"\"\nPreprocessing functions for images.\n\nSee also nilearn.signal.\n\"\"\"\n# Authors: Philippe Gervais, Alexandre Abraham\n# License: simplified BSD\n\nimport collections.abc\nimport copy\nimport warnings\n\nimport nibabel\nimport numpy as np\nfrom joblib import Parallel, delayed\nfrom scipy...
diff --git a/nilearn/image/image.py b/nilearn/image/image.py index 9d37eef921..05770b4ead 100644 --- a/nilearn/image/image.py +++ b/nilearn/image/image.py @@ -697,7 +697,8 @@ def new_img_like(ref_niimg, data, affine=None, copy_header=False): Returns ------- Niimg-like object - A loaded image with ...
ibis-project__ibis-2157
Interactive mode doesn't work in Jupyter Running the next code in the terminal works as expected, `.count()` returns the number of rows as an `int`, since the option `interactive` is set to `True`: ```python >>> import ibis >>> print(ibis.__version__) 1.3.0+24.gd00a112.dirty >>> ibis.options.interactive = True >>...
[ { "content": "import itertools\nimport os\nimport webbrowser\n\nimport numpy as np\n\nimport ibis\nimport ibis.common.exceptions as com\nimport ibis.config as config\nimport ibis.util as util\n\n# TODO move methods containing ops import to api.py\n\n\nclass Expr:\n \"\"\"Base expression class\"\"\"\n\n de...
[ { "content": "import itertools\nimport os\nimport webbrowser\n\nimport numpy as np\n\nimport ibis\nimport ibis.common.exceptions as com\nimport ibis.config as config\nimport ibis.util as util\n\n# TODO move methods containing ops import to api.py\n\n\nclass Expr:\n \"\"\"Base expression class\"\"\"\n\n de...
diff --git a/docs/source/release/index.rst b/docs/source/release/index.rst index 514d7d16560d..7809c575b829 100644 --- a/docs/source/release/index.rst +++ b/docs/source/release/index.rst @@ -12,6 +12,7 @@ Release Notes These release notes are for versions of ibis **1.0 and later**. Release notes for pre-1.0 ver...
docker__docker-py-3257
Breaks with requests 2.32.0: Not supported URL scheme http+docker With requests 2.32.0 (released about an hour ago as I write this), the docker library as called by [tox-docker](https://github.com/tox-dev/tox-docker) fails with the following exception: ``` Traceback (most recent call last): File "/home/eagle/dvl...
[ { "content": "import requests.adapters\n\n\nclass BaseHTTPAdapter(requests.adapters.HTTPAdapter):\n def close(self):\n super().close()\n if hasattr(self, 'pools'):\n self.pools.clear()\n", "path": "docker/transport/basehttpadapter.py" } ]
[ { "content": "import requests.adapters\n\n\nclass BaseHTTPAdapter(requests.adapters.HTTPAdapter):\n def close(self):\n super().close()\n if hasattr(self, 'pools'):\n self.pools.clear()\n\n # Fix for requests 2.32.2+:\n # https://github.com/psf/requests/commit/c98e4d133ef29c46a9...
diff --git a/docker/transport/basehttpadapter.py b/docker/transport/basehttpadapter.py index dfbb193b9..2301b6b07 100644 --- a/docker/transport/basehttpadapter.py +++ b/docker/transport/basehttpadapter.py @@ -6,3 +6,8 @@ def close(self): super().close() if hasattr(self, 'pools'): self.poo...
kornia__kornia-579
Backslash not showing in equation for Tversky Loss ## 📚 Documentation The backslashs in the denominator of the Tversky loss equation is not rendered correctly with MathJax. As shown in this screenshot it only inserts a little space between P and G and thus does not correctly render the equation. ![tversky_doc](h...
[ { "content": "from typing import Optional\n\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\n\nfrom kornia.utils import one_hot\n\n# based on:\n# https://github.com/kevinzakka/pytorch-goodies/blob/master/losses.py\n\n\ndef tversky_loss(input: torch.Tensor, target: torch.Tensor,\n ...
[ { "content": "from typing import Optional\n\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\n\nfrom kornia.utils import one_hot\n\n# based on:\n# https://github.com/kevinzakka/pytorch-goodies/blob/master/losses.py\n\n\ndef tversky_loss(input: torch.Tensor, target: torch.Tensor,\n ...
diff --git a/kornia/losses/tversky.py b/kornia/losses/tversky.py index 969bd1d82f..089a7faa2a 100644 --- a/kornia/losses/tversky.py +++ b/kornia/losses/tversky.py @@ -61,7 +61,7 @@ class TverskyLoss(nn.Module): .. math:: \text{S}(P, G, \alpha; \beta) = - \frac{|PG|}{|PG| + \alpha |P \ G| + \bet...
bridgecrewio__checkov-5468
[CKV_DOCKER_7] Erroneous failed check when --platform flag is used in multistage Dockerfile **Describe the issue** In the `CKV_DOCKER_7` check, when the `--platform` flag is used in a multistage Dockerfile, the check fails erroneously for images that have been created within the current Dockerfile and thus no version ...
[ { "content": "from __future__ import annotations\n\nimport re\nfrom typing import TYPE_CHECKING\n\nfrom checkov.common.models.enums import CheckCategories, CheckResult\nfrom checkov.dockerfile.base_dockerfile_check import BaseDockerfileCheck\n\nif TYPE_CHECKING:\n from dockerfile_parse.parser import _Instruc...
[ { "content": "from __future__ import annotations\n\nimport re\nfrom typing import TYPE_CHECKING\n\nfrom checkov.common.models.enums import CheckCategories, CheckResult\nfrom checkov.dockerfile.base_dockerfile_check import BaseDockerfileCheck\n\nif TYPE_CHECKING:\n from dockerfile_parse.parser import _Instruc...
diff --git a/checkov/dockerfile/checks/ReferenceLatestTag.py b/checkov/dockerfile/checks/ReferenceLatestTag.py index 8bcfed571e..ec0dc6629a 100644 --- a/checkov/dockerfile/checks/ReferenceLatestTag.py +++ b/checkov/dockerfile/checks/ReferenceLatestTag.py @@ -9,7 +9,7 @@ if TYPE_CHECKING: from dockerfile_parse.par...
ibis-project__ibis-3261
bug: correlated subquery with join generates incorrect SQL This Ibis expression (using the TPC-H database; a simplified version of TPC-H query 2) appears to be valid, but does not generate correct SQL: ``` part = con.table("part") supplier = con.table("supplier") partsupp = con.table("partsupp") ...
[ { "content": "import operator\nfrom typing import Any, Dict\n\nimport sqlalchemy as sa\nimport sqlalchemy.sql as sql\n\nimport ibis\nimport ibis.common.exceptions as com\nimport ibis.expr.analysis as L\nimport ibis.expr.datatypes as dt\nimport ibis.expr.operations as ops\nimport ibis.expr.types as ir\nimport ib...
[ { "content": "import operator\nfrom typing import Any, Dict\n\nimport sqlalchemy as sa\nimport sqlalchemy.sql as sql\n\nimport ibis\nimport ibis.common.exceptions as com\nimport ibis.expr.analysis as L\nimport ibis.expr.datatypes as dt\nimport ibis.expr.operations as ops\nimport ibis.expr.types as ir\nimport ib...
diff --git a/ibis/backends/base/sql/alchemy/registry.py b/ibis/backends/base/sql/alchemy/registry.py index f3d653f2bd1c..d32de4c3bd54 100644 --- a/ibis/backends/base/sql/alchemy/registry.py +++ b/ibis/backends/base/sql/alchemy/registry.py @@ -77,7 +77,7 @@ def _varargs_call(sa_func, t, expr): def get_sqla_table(ct...
enthought__chaco-900
Removing a data source makes `DataView` objects inconsistent **Problem Description** Removing a data source from a `DataView` instance leaves it internally inconsistent. **Reproduction Steps:** This snippet demonstrates the inconsistency: ```python import numpy as np from chaco.api import DataView from chaco...
[ { "content": "# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX\n# All rights reserved.\n#\n# This software is provided without warranty under the terms of the BSD\n# license included in LICENSE.txt and may be redistributed only under\n# the conditions described in the aforementioned license. The license\n#...
[ { "content": "# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX\n# All rights reserved.\n#\n# This software is provided without warranty under the terms of the BSD\n# license included in LICENSE.txt and may be redistributed only under\n# the conditions described in the aforementioned license. The license\n#...
diff --git a/chaco/data_range_1d.py b/chaco/data_range_1d.py index e75600f0c..2f7ce79a4 100644 --- a/chaco/data_range_1d.py +++ b/chaco/data_range_1d.py @@ -352,6 +352,7 @@ def _refresh_bounds(self): self._high_value = inf else: self._high_value = self._high_setting + ...
ansible-collections__community.vmware-1706
Invalid return type for vmware_vsan_health_info <!--- Verify first that your improvement is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explai...
[ { "content": "#!/usr/bin/python\n\n# Copyright: (c) 2019, OVH SAS\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = ...
[ { "content": "#!/usr/bin/python\n\n# Copyright: (c) 2019, OVH SAS\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = ...
diff --git a/changelogs/fragments/1706-vmware_vsan_health_info.yml b/changelogs/fragments/1706-vmware_vsan_health_info.yml new file mode 100644 index 0000000000..a3db51a2f5 --- /dev/null +++ b/changelogs/fragments/1706-vmware_vsan_health_info.yml @@ -0,0 +1,2 @@ +bugfixes: + - vmware_vsan_health_info - Fix return val...
svthalia__concrexit-1739
Renewal of membership send email about references without reason ### Describe the bug A renewal of a membership to the 'until study end' triggered the email for references. ### How to reproduce Steps to reproduce the behaviour: 1. Create a registration for a completely new user 2. Create an upgrade for the mem...
[ { "content": "\"\"\"The forms defined by the registrations package.\"\"\"\nfrom django import forms\nfrom django.core.exceptions import NON_FIELD_ERRORS, ValidationError\nfrom django.forms import TypedChoiceField\nfrom django.urls import reverse_lazy\nfrom django.utils import timezone\nfrom django.utils.safestr...
[ { "content": "\"\"\"The forms defined by the registrations package.\"\"\"\nfrom django import forms\nfrom django.core.exceptions import NON_FIELD_ERRORS, ValidationError\nfrom django.forms import TypedChoiceField\nfrom django.urls import reverse_lazy\nfrom django.utils import timezone\nfrom django.utils.safestr...
diff --git a/website/registrations/forms.py b/website/registrations/forms.py index 92f40e92f..616666f38 100644 --- a/website/registrations/forms.py +++ b/website/registrations/forms.py @@ -151,7 +151,14 @@ def __init__(self, *args, **kwargs): class Meta: model = Renewal - fields = ("member", "len...
kartoza__prj.app-199
Atom feed gets a 500 error See http://sentry.kartoza.com/kartoza/projecta-live/group/5846/ Problem is cause by models/entry.py get_absolute_url() method which still uses old slug system to resolve path to an entry.
[ { "content": "# coding=utf-8\n\"\"\"Models for changelog entries.\"\"\"\nfrom django.core.urlresolvers import reverse\nfrom django.utils.text import slugify\nimport os\nimport logging\nfrom core.settings.contrib import STOP_WORDS\nfrom django.conf.global_settings import MEDIA_ROOT\nfrom django.db import models\...
[ { "content": "# coding=utf-8\n\"\"\"Models for changelog entries.\"\"\"\nfrom django.core.urlresolvers import reverse\nfrom django.utils.text import slugify\nimport os\nimport logging\nfrom core.settings.contrib import STOP_WORDS\nfrom django.conf.global_settings import MEDIA_ROOT\nfrom django.db import models\...
diff --git a/django_project/changes/models/entry.py b/django_project/changes/models/entry.py index b19f2cc34..c8636b92b 100644 --- a/django_project/changes/models/entry.py +++ b/django_project/changes/models/entry.py @@ -129,9 +129,7 @@ def __unicode__(self): def get_absolute_url(self): return reverse('...
mitmproxy__mitmproxy-1534
Add API to programatically create new requests. Original discussion: https://discourse.mitmproxy.org/t/are-there-any-script-examples-for-creating-a-get-post-put/134 It would be great if we'd have a dedicated API to make new requests from scripts, e.g. `master.new_request()` or something along those lines. This would p...
[ { "content": "from __future__ import absolute_import, print_function, division\n\nimport os\nimport sys\n\nfrom typing import Optional # noqa\n\nimport netlib.exceptions\nfrom mitmproxy import controller\nfrom mitmproxy import exceptions\nfrom mitmproxy import models\nfrom mitmproxy.flow import io\nfrom mitmpr...
[ { "content": "from __future__ import absolute_import, print_function, division\n\nimport os\nimport sys\n\nfrom typing import Optional # noqa\n\nimport netlib.exceptions\nfrom mitmproxy import controller\nfrom mitmproxy import exceptions\nfrom mitmproxy import models\nfrom mitmproxy.flow import io\nfrom mitmpr...
diff --git a/mitmproxy/flow/master.py b/mitmproxy/flow/master.py index 80f633cd65..144323576b 100644 --- a/mitmproxy/flow/master.py +++ b/mitmproxy/flow/master.py @@ -187,6 +187,10 @@ def replay_request(self, f, block=False): rt.join() return rt + def new_request(self, method, scheme, host, p...
nilearn__nilearn-1152
Automatically loading colormaps when importing nilearn (or cm?) The colormaps that are created in [cm.py](https://github.com/KirstieJane/nilearn/blob/40069cb14b43333a73137797eac895cfb054db29/nilearn/plotting/cm.py) are really nice! Currently, if I want to use them in one of my wrapper scripts I have the following hack...
[ { "content": "# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n\"\"\"\nMatplotlib colormaps useful for neuroimaging.\n\"\"\"\nimport numpy as _np\n\nfrom matplotlib import cm as _cm\nfrom matplotlib import colors as _colors\n\n##################...
[ { "content": "# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n\"\"\"\nMatplotlib colormaps useful for neuroimaging.\n\"\"\"\nimport numpy as _np\n\nfrom matplotlib import cm as _cm\nfrom matplotlib import colors as _colors\n\n##################...
diff --git a/nilearn/plotting/cm.py b/nilearn/plotting/cm.py index d11805ed77..72bbe7c828 100644 --- a/nilearn/plotting/cm.py +++ b/nilearn/plotting/cm.py @@ -175,7 +175,11 @@ def alpha_cmap(color, name='', alpha_min=0.5, alpha_max=1.): alpha_max=1, name=name) +# Save colormaps in the scope of the module ...
wagtail__wagtail-6442
Incorrectly configured search backend breaks page publishing (URLS always has to be a list) ### Issue Summary I ran into this issue that is probably more a quality of life thing. ### Steps to Reproduce 1. Have a search backend configured with (as I eventually deduced), URLs set to a single value and not a l...
[ { "content": "import copy\nimport json\nfrom collections import OrderedDict\nfrom urllib.parse import urlparse\n\nfrom django.db import DEFAULT_DB_ALIAS, models\nfrom django.db.models.sql import Query\nfrom django.db.models.sql.constants import MULTI\nfrom django.utils.crypto import get_random_string\nfrom elas...
[ { "content": "import copy\nimport json\nfrom collections import OrderedDict\nfrom urllib.parse import urlparse\n\nfrom django.db import DEFAULT_DB_ALIAS, models\nfrom django.db.models.sql import Query\nfrom django.db.models.sql.constants import MULTI\nfrom django.utils.crypto import get_random_string\nfrom elas...
diff --git a/wagtail/search/backends/elasticsearch2.py b/wagtail/search/backends/elasticsearch2.py index 57381ec39206..14e6bb3a1fb7 100644 --- a/wagtail/search/backends/elasticsearch2.py +++ b/wagtail/search/backends/elasticsearch2.py @@ -1070,6 +1070,10 @@ def __init__(self, params): if self.hosts is None: ...
sopel-irc__sopel-1261
Results from currency conversion should be rounded to 2 decimals At the moment, the results of a currency conversion query is reported as a float: < mynick> .cur 100 SEK to USD < mybot> 100.0 SEK (Swedish krona) = 12.202017114914426 USD (US dollar) As far as I know, no currency reports more than 2 decima...
[ { "content": "# coding=utf-8\n# Copyright 2013 Elsie Powell, embolalia.com\n# Licensed under the Eiffel Forum License 2\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport re\n\nfrom requests import get\nfrom sopel.module import commands, example, NOLIMIT\n\n# The Canad...
[ { "content": "# coding=utf-8\n# Copyright 2013 Elsie Powell, embolalia.com\n# Licensed under the Eiffel Forum License 2\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport re\n\nfrom requests import get\nfrom sopel.module import commands, example, NOLIMIT\n\n# The Canad...
diff --git a/sopel/modules/currency.py b/sopel/modules/currency.py index c81cee2cf9..27087b5c29 100644 --- a/sopel/modules/currency.py +++ b/sopel/modules/currency.py @@ -74,7 +74,7 @@ def display(bot, amount, of, to): return NOLIMIT result = amount / of_rate * to_rate - bot.say("{} {} ({}) = {} {} (...
scikit-hep__pyhf-1306
iminuit v2.4.0 breaks test_optim # Description [`iminuit` `v2.4.0`](https://github.com/scikit-hep/iminuit/releases/tag/v2.4.0) (released today 2021-02-10) is breaking the tests for 32b and 64b minuit in the `test_minimize` tests https://github.com/scikit-hep/pyhf/blob/bc32a695aaea0b79b3f0b40676446452d115cf8e/test...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow~=2.2.1', # TensorFlow minor releases are as volatile as major\n 'tensorflow-probability~=0.10.1',\n ],\n 'torch': ['torch~=1.8'],\n 'jax': ['jax...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow~=2.2.1', # TensorFlow minor releases are as volatile as major\n 'tensorflow-probability~=0.10.1',\n ],\n 'torch': ['torch~=1.8'],\n 'jax': ['jax...
diff --git a/lower-bound-requirements.txt b/lower-bound-requirements.txt index a6bc3ad546..6e8c03b154 100644 --- a/lower-bound-requirements.txt +++ b/lower-bound-requirements.txt @@ -9,7 +9,7 @@ pyyaml==5.1 uproot3==3.14.1 uproot==4.0.0 # minuit -iminuit==2.1.0 +iminuit==2.4.0 # tensorflow tensorflow==2.2.1 # c.f...
python-poetry__poetry-2750
1.1.0b2 causes EnvCommandError (Non-posix paths with file:// protocol on Windows) <!-- Hi there! Thank you for discovering and submitting an issue. Before you submit this; let's make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill t...
[ { "content": "import hashlib\nimport json\n\nfrom typing import TYPE_CHECKING\n\nfrom poetry.core.packages.utils.link import Link\nfrom poetry.utils._compat import Path\n\nfrom .chooser import InvalidWheelName\nfrom .chooser import Wheel\n\n\nif TYPE_CHECKING:\n from typing import List\n from typing impor...
[ { "content": "import hashlib\nimport json\n\nfrom typing import TYPE_CHECKING\n\nfrom poetry.core.packages.utils.link import Link\nfrom poetry.utils._compat import Path\n\nfrom .chooser import InvalidWheelName\nfrom .chooser import Wheel\n\n\nif TYPE_CHECKING:\n from typing import List\n from typing impor...
diff --git a/poetry/installation/chef.py b/poetry/installation/chef.py index 9e556d7690b..669ce17768e 100644 --- a/poetry/installation/chef.py +++ b/poetry/installation/chef.py @@ -81,7 +81,7 @@ def get_cached_archives_for_link(self, link): # type: (Link) -> List[Link] links = [] for archive_type in ...
akvo__akvo-rsr-3587
Indicators and dimensions randomly re-order themselves when saved When I add an indicator framework and save it, for each result indicators seem to randomly re-order themselves. This is difficult, because there is a certain logic to them (for example outcomes on top, outputs below). The same happen for indicator dimens...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nim...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nim...
diff --git a/akvo/rest/views/project_editor_utils.py b/akvo/rest/views/project_editor_utils.py index a591f41624..a686d6fe41 100644 --- a/akvo/rest/views/project_editor_utils.py +++ b/akvo/rest/views/project_editor_utils.py @@ -569,7 +569,7 @@ def sort_keys(x): Model, _ = RELATED_OBJECTS_MAPPING[Model] if ...
translate__translate-3897
Traceback with non-ascii header key If a PO header contains a non-ASCII key (left of the colon), we have a traceback. An example is file here: https://gitlab.gnome.org/GNOME/gimp/blob/master/po-python/oc.po#L21 The traceback comes from poheader.gettargetlanguage(): ```python-traceback File "env/lib/python2.7/...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2002-2011 Zuza Software Foundation\n#\n# This file is part of the Translate Toolkit.\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Found...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2002-2011 Zuza Software Foundation\n#\n# This file is part of the Translate Toolkit.\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Found...
diff --git a/translate/storage/poheader.py b/translate/storage/poheader.py index ce89344f42..a229b836b1 100644 --- a/translate/storage/poheader.py +++ b/translate/storage/poheader.py @@ -48,8 +48,7 @@ def parseheaderstring(input): if not line or ":" not in line: continue key, value = line...
apluslms__a-plus-1179
Improve access denied messages and 403 page Improve access denied messages and make them somewhat more explanatory, and also improve the 403 page so it's not quite so aggressive towards would-be learners. See [Juha's comment](https://github.com/apluslms/a-plus/pull/853#discussion_r692139980) on PR #853 Improve access...
[ { "content": "\"\"\"\nBase permission classes.\n\nThese classes use same interface than ones in django-rest-framework and\nare usable with APIViews too.\n\"\"\"\nimport string\n\nfrom django.utils.text import format_lazy\nfrom django.utils.translation import gettext_lazy as _\nfrom rest_framework.permissions im...
[ { "content": "\"\"\"\nBase permission classes.\n\nThese classes use same interface than ones in django-rest-framework and\nare usable with APIViews too.\n\"\"\"\nimport string\n\nfrom django.utils.text import format_lazy\nfrom django.utils.translation import gettext_lazy as _\nfrom rest_framework.permissions im...
diff --git a/authorization/permissions.py b/authorization/permissions.py index be2696ce8..2016b5c70 100644 --- a/authorization/permissions.py +++ b/authorization/permissions.py @@ -114,6 +114,7 @@ def has_permission(self, request, view): if access_mode == ACCESS.ANONYMOUS: return True if ...
paperless-ngx__paperless-ngx-6608
[BUG] Server Error 500 when granting History All ### Description I just tried to create a user group, granting History All to that group. Pressing save in the dialog results in an Internal Server error. I am running a slightly customized ARM64 image, which includes zxing-cpp. I don't believe this is related to the ...
[ { "content": "import logging\n\nfrom allauth.socialaccount.models import SocialAccount\nfrom django.contrib.auth.models import Group\nfrom django.contrib.auth.models import Permission\nfrom django.contrib.auth.models import User\nfrom rest_framework import serializers\n\nfrom paperless.models import Application...
[ { "content": "import logging\n\nfrom allauth.socialaccount.models import SocialAccount\nfrom django.contrib.auth.models import Group\nfrom django.contrib.auth.models import Permission\nfrom django.contrib.auth.models import User\nfrom rest_framework import serializers\n\nfrom paperless.models import Application...
diff --git a/src/paperless/serialisers.py b/src/paperless/serialisers.py index 8af19d53011..52f9e2b33d1 100644 --- a/src/paperless/serialisers.py +++ b/src/paperless/serialisers.py @@ -93,7 +93,7 @@ def create(self, validated_data): class GroupSerializer(serializers.ModelSerializer): permissions = serializers.Slu...
saulpw__visidata-1722
[sheets] cursorDisplay for the sheet's own cursorDisplay crashes in Python 3.8.0 through 3.9.9 **Small description** In SheetsSheet, viewing the cursorDisplay cell for the SheetsSheet leads to infinite recursion, which crashes on versions of Python >= 3.8.0 and <= 3.9.9 **Expected result** The cursorDisplay should...
[ { "content": "from copy import copy\nimport collections\nimport string\nimport itertools\nimport threading\nimport re\nimport time\nimport json\n\nfrom visidata import options, anytype, stacktrace, vd\nfrom visidata import asyncthread, dispwidth, clipstr, iterchars\nfrom visidata import wrapply, TypedWrapper, T...
[ { "content": "from copy import copy\nimport collections\nimport string\nimport itertools\nimport threading\nimport re\nimport time\nimport json\n\nfrom visidata import options, anytype, stacktrace, vd\nfrom visidata import asyncthread, dispwidth, clipstr, iterchars\nfrom visidata import wrapply, TypedWrapper, T...
diff --git a/visidata/column.py b/visidata/column.py index 940050984..3b63954e4 100644 --- a/visidata/column.py +++ b/visidata/column.py @@ -451,6 +451,8 @@ def getattrdeep(obj, attr, *default, getter=getattr): try: # if attribute exists, return toplevel value, even if dotted if attr in obj: ...
liqd__a4-meinberlin-4707
rules/participate in project As you can see in the test, the paricipate_project rule behaves a bit weird for project group members. I think, they should also be allowed to participate. The question is what it is used for. Cool! The participate_project rule is a bit unexpected, so we should check that out. Like where...
[ { "content": "import rules\nfrom rules.predicates import is_superuser\n\nfrom adhocracy4.organisations.predicates import is_initiator\nfrom adhocracy4.projects.predicates import is_live\nfrom adhocracy4.projects.predicates import is_moderator\nfrom adhocracy4.projects.predicates import is_prj_group_member\nfrom...
[ { "content": "import rules\nfrom rules.predicates import is_superuser\n\nfrom adhocracy4.organisations.predicates import is_initiator\nfrom adhocracy4.projects.predicates import is_live\nfrom adhocracy4.projects.predicates import is_moderator\nfrom adhocracy4.projects.predicates import is_prj_group_member\nfrom...
diff --git a/meinberlin/apps/projects/rules.py b/meinberlin/apps/projects/rules.py index b69d0d6f27..8f831a3d32 100644 --- a/meinberlin/apps/projects/rules.py +++ b/meinberlin/apps/projects/rules.py @@ -17,5 +17,6 @@ & is_live)) rules.set_perm('a4projects.participate_in_project', - is_...
comic__grand-challenge.org-827
Update to Django 2.2 - [ ] Check that all Django apps support 2.2
[ { "content": "import os\nimport posixpath\nimport re\n\nfrom django.conf import settings\nfrom django.core.files import File\nfrom django.core.files.storage import DefaultStorage\nfrom django.http import Http404, HttpResponse\nfrom django.shortcuts import get_object_or_404\nfrom django.utils._os import safe_joi...
[ { "content": "import os\nimport posixpath\nimport re\n\nfrom django.conf import settings\nfrom django.core.files import File\nfrom django.core.files.storage import DefaultStorage\nfrom django.http import Http404, HttpResponse\nfrom django.shortcuts import get_object_or_404\nfrom django.utils._os import safe_joi...
diff --git a/Pipfile b/Pipfile index 86912d68d6..3efc1e76a3 100644 --- a/Pipfile +++ b/Pipfile @@ -21,7 +21,7 @@ werkzeug = "*" "beautifulsoup4" = "*" celery = "*" redis = "*" -django = "<2.2" +django = "<2.3" django-countries = "*" django-crispy-forms = "*" django-userena-ce = "*" @@ -39,8 +39,8 @@ nbconvert = "...
cupy__cupy-4452
Triangular Solve not working for complex case I have discovered, that `solve_triangular` does not work, if the input is complex, but the matrix is real: ``` solve_triangular( cholesky, rhs, lower=True, ) ``` produces a real valued result, if `cholesky` is real but `rhs` is complex. ``` intelp...
[ { "content": "import numpy\n\nimport cupy\nfrom cupy.cuda import cublas\nfrom cupy.cuda import device\nfrom cupy.linalg import _util\n\n\ndef solve_triangular(a, b, trans=0, lower=False, unit_diagonal=False,\n overwrite_b=False, check_finite=False):\n \"\"\"Solve the equation a x = b for ...
[ { "content": "import numpy\n\nimport cupy\nfrom cupy.cuda import cublas\nfrom cupy.cuda import device\nfrom cupy.linalg import _util\n\n\ndef solve_triangular(a, b, trans=0, lower=False, unit_diagonal=False,\n overwrite_b=False, check_finite=False):\n \"\"\"Solve the equation a x = b for ...
diff --git a/cupyx/scipy/linalg/solve_triangular.py b/cupyx/scipy/linalg/solve_triangular.py index 5240cc2dd77..c47f74a9f32 100644 --- a/cupyx/scipy/linalg/solve_triangular.py +++ b/cupyx/scipy/linalg/solve_triangular.py @@ -67,8 +67,12 @@ def solve_triangular(a, b, trans=0, lower=False, unit_diagonal=False, if ...
dotkom__onlineweb4-496
Make offline archive look more like event archive Same as #481. This is mainly about the filtering section.
[ { "content": "#-*- coding: utf-8 -*-\nfrom copy import copy\n\nfrom django.conf import settings\nfrom django.template.defaultfilters import slugify\nfrom django.utils import timezone\n\nfrom filebrowser.base import FileObject\nfrom filebrowser.settings import VERSIONS\nfrom tastypie import fields\nfrom tastypie...
[ { "content": "#-*- coding: utf-8 -*-\nfrom copy import copy\n\nfrom django.conf import settings\nfrom django.template.defaultfilters import slugify\nfrom django.utils import timezone\n\nfrom filebrowser.base import FileObject\nfrom filebrowser.settings import VERSIONS\nfrom tastypie import fields\nfrom tastypie...
diff --git a/apps/api/v0/article.py b/apps/api/v0/article.py index 9c52e14cc..3cf0f40da 100755 --- a/apps/api/v0/article.py +++ b/apps/api/v0/article.py @@ -17,7 +17,7 @@ class ArticleResource(ModelResource): - author = fields.ToOneField(UserResource, 'created_by') + author = fields.ToOneField(UserResource, ...
googleapis__python-spanner-django-58
dbapi: implement bulk_insert_sql Required at least by Django's DatabaseOperations.
[ { "content": "from django.db.backends.base.operations import BaseDatabaseOperations\n\n\nclass DatabaseOperations(BaseDatabaseOperations):\n def quote_name(self, name):\n return name\n", "path": "spanner/django/operations.py" } ]
[ { "content": "from django.db.backends.base.operations import BaseDatabaseOperations\n\n\nclass DatabaseOperations(BaseDatabaseOperations):\n def quote_name(self, name):\n return name\n\n def bulk_insert_sql(self, fields, placeholder_rows):\n placeholder_rows_sql = (\", \".join(row) for row i...
diff --git a/spanner/django/operations.py b/spanner/django/operations.py index ffb1991278..9604ad4f51 100644 --- a/spanner/django/operations.py +++ b/spanner/django/operations.py @@ -4,3 +4,8 @@ class DatabaseOperations(BaseDatabaseOperations): def quote_name(self, name): return name + + def bulk_inse...
geopandas__geopandas-2923
BUG: .explore() shows incorrect colors with scheme = 'UserDefined' #### Code Sample ```python import geopandas as gpd import geodatasets chicago = gpd.read_file(geodatasets.get_path("geoda.chicago_commpop")) bins=[25000, 50000, 75000, 100000] chicago.plot(column='POP2010', scheme='UserDefined', classifica...
[ { "content": "from statistics import mean\n\nimport geopandas\nfrom shapely.geometry import LineString\nimport numpy as np\nimport pandas as pd\n\nfrom packaging.version import Version\n\n_MAP_KWARGS = [\n \"location\",\n \"prefer_canvas\",\n \"no_touch\",\n \"disable_3d\",\n \"png_enabled\",\n ...
[ { "content": "from statistics import mean\n\nimport geopandas\nfrom shapely.geometry import LineString\nimport numpy as np\nimport pandas as pd\n\nfrom packaging.version import Version\n\n_MAP_KWARGS = [\n \"location\",\n \"prefer_canvas\",\n \"no_touch\",\n \"disable_3d\",\n \"png_enabled\",\n ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7862f92d2a..fd5777aa0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,10 @@ New features and improvements: - Added ``exclusive`` parameter to ``sjoin_nearest`` method for Shapely >= 2.0 (#2877) Bug fixes: + +- Fix a color assignment in ``explore`` when using...
GPflow__GPflow-1590
update intro_to_gpflow2 notebook to account for saved_model now working to finally close #1127
[ { "content": "# -*- coding: utf-8 -*-\n#\n# GPflow documentation build configuration file, created by\n# sphinx-quickstart on Mon Jul 25 12:37:37 2016.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# GPflow documentation build configuration file, created by\n# sphinx-quickstart on Mon Jul 25 12:37:37 2016.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi...
diff --git a/VERSION b/VERSION index eca07e4c1..ac2cdeba0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.2 +2.1.3 diff --git a/doc/source/conf.py b/doc/source/conf.py index 2a6b81be8..a4b29b7f4 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -94,7 +94,7 @@ # The short X.Y version. version = "2.1" # ...
mne-tools__mne-bids-708
_read_events() changes event values Currently I use following procedure to write a BIDS dataset (simplified): ``` raw = mne.io.read_raw_fif(raw_file,preload=False) events = mne.find_events(raw) bids_basename = mne_bids.BIDSPath(root = output_path, subject=f'{sub:02d}',session=f'{ses:02d}',task=f'{task}') mne-bids...
[ { "content": "\"\"\"Check whether a file format is supported by BIDS and then load it.\"\"\"\n# Authors: Mainak Jas <mainak.jas@telecom-paristech.fr>\n# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>\n# Teon Brooks <teon.brooks@gmail.com>\n# Chris Holdgraf <choldgraf@ber...
[ { "content": "\"\"\"Check whether a file format is supported by BIDS and then load it.\"\"\"\n# Authors: Mainak Jas <mainak.jas@telecom-paristech.fr>\n# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>\n# Teon Brooks <teon.brooks@gmail.com>\n# Chris Holdgraf <choldgraf@ber...
diff --git a/doc/whats_new.rst b/doc/whats_new.rst index f5557ec3a..a4bf8231b 100644 --- a/doc/whats_new.rst +++ b/doc/whats_new.rst @@ -56,6 +56,7 @@ Bug fixes - :func:`mne_bids.stats.count_events` now handles files without a ``trial_type`` or ``stim_type`` column gracefully, by `Richard Höchenberger`_ (:gh:`682`) -...
PaddlePaddle__PaddleOCR-5072
Windows下, OCR识别报错-- 'env' 不是内部或外部命令,也不是可运行的程序或批处理文件 请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem - 系统环境/System Environment:Windows10 - 版本号/Version:Paddle:2.3 PaddleOCR:2.3.0.1 - 问题相关组件/Related components: ppocr - 运行指令/Command Code: - ![QQ图片20211227103121](https://us...
[ { "content": "# Copyright (c) 2020 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) 2020 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/tools/infer/utility.py b/tools/infer/utility.py index 21bbee098ef..33ed62125c0 100644 --- a/tools/infer/utility.py +++ b/tools/infer/utility.py @@ -313,6 +313,11 @@ def create_predictor(args, mode, logger): def get_infer_gpuid(): + if os.name == 'nt': + try: + return int(os.enviro...
optuna__optuna-3339
Mention each tutorial page in API pages at least once <!-- Please write a clear and concise description of what content in https://optuna.readthedocs.io/ is an issue. --> [Optuna's tutorial](https://optuna.readthedocs.io/en/stable/tutorial/index.html) is a good source to understand Optuna's functionality with concre...
[ { "content": "import json\nfrom typing import Any\nfrom typing import Callable\nfrom typing import Dict\nfrom typing import List\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Union\n\nimport optuna\nfrom optuna._experimental import experimental\nfrom optuna.study import Study\nfr...
[ { "content": "import json\nfrom typing import Any\nfrom typing import Callable\nfrom typing import Dict\nfrom typing import List\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Union\n\nimport optuna\nfrom optuna._experimental import experimental\nfrom optuna.study import Study\nfr...
diff --git a/optuna/visualization/_pareto_front.py b/optuna/visualization/_pareto_front.py index bbbd533099..a508b7b313 100644 --- a/optuna/visualization/_pareto_front.py +++ b/optuna/visualization/_pareto_front.py @@ -33,6 +33,9 @@ def plot_pareto_front( ) -> "go.Figure": """Plot the Pareto front of a study. +...
Parsl__parsl-208
Fix automatic IPP controller creation on OS X Automatic creation of the IPP controller fails on Mac. Here is a test which reproduces the problem: ``` (parsl_py36) [Anna-Woodards-MacBook-Pro] ~/ci/parsl/parsl/tests/test_data >python test_file_ipp.py sites [{'site': 'Local_IPP', 'auth': {'channel': None}, 'execution...
[ { "content": "import os\nimport time\nimport logging\nfrom ipyparallel import Client\n\nfrom parsl.executors.base import ParslExecutor\nfrom parsl.executors.errors import *\n\nlogger = logging.getLogger(__name__)\n\n\nclass IPyParallelExecutor(ParslExecutor):\n \"\"\"The IPython Parallel executor.\n\n Thi...
[ { "content": "import os\nimport time\nimport logging\nfrom ipyparallel import Client\n\nfrom parsl.executors.base import ParslExecutor\nfrom parsl.executors.errors import *\n\nlogger = logging.getLogger(__name__)\n\n\nclass IPyParallelExecutor(ParslExecutor):\n \"\"\"The IPython Parallel executor.\n\n Thi...
diff --git a/parsl/executors/ipp.py b/parsl/executors/ipp.py index 9863eb43e7..36e60cfa01 100644 --- a/parsl/executors/ipp.py +++ b/parsl/executors/ipp.py @@ -50,7 +50,7 @@ def compose_launch_cmd(self, filepath, engine_dir, container_image): EOF mkdir -p '.ipengine_logs' -ipengine --file=ipengine.json &>> .ipengine...
speechbrain__speechbrain-1261
Inconsistency between documentation and the code of evaluate() function in the brain class Hi I've noticed that there are some inconsistencies in the code and docs of the evaluate() method. The code shown here does not have a return value: https://speechbrain.readthedocs.io/en/latest/_modules/speechbrain/core.htm...
[ { "content": "\"\"\"Core SpeechBrain code for running experiments.\n\nAuthors\n * Peter Plantinga 2020\n * Abdel Heba 2020\n * Mirco Ravanelli 2020\n * Aku Rouhe 2021\n\"\"\"\n\nimport os\nimport sys\nimport yaml\nimport time\nimport torch\nimport shutil\nimport logging\nimport inspect\nimport pathlib\nimport a...
[ { "content": "\"\"\"Core SpeechBrain code for running experiments.\n\nAuthors\n * Peter Plantinga 2020\n * Abdel Heba 2020\n * Mirco Ravanelli 2020\n * Aku Rouhe 2021\n\"\"\"\n\nimport os\nimport sys\nimport yaml\nimport time\nimport torch\nimport shutil\nimport logging\nimport inspect\nimport pathlib\nimport a...
diff --git a/speechbrain/core.py b/speechbrain/core.py index 398b12a1e6..95d9062299 100644 --- a/speechbrain/core.py +++ b/speechbrain/core.py @@ -1233,6 +1233,7 @@ def evaluate( self.on_stage_end, args=[Stage.TEST, avg_test_loss, None] ) self.step = 0 + return avg_test_los...
StackStorm__st2-5092
Remove obsolete 'bin/st2-check-license' The project ships https://github.com/StackStorm/st2/blob/master/st2common/bin/st2-check-license which is irrelevant now, considering ongoing EWC features integration in the st2 core. The task is to find all the places: https://github.com/search?q=org%3AStackStorm+st2-check-lic...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2020 The StackStorm Authors.\n# Copyright 2019 Extreme Networks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# ...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2020 The StackStorm Authors.\n# Copyright 2019 Extreme Networks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# ...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 675b6b48c4..6a867cf8e2 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -27,6 +27,11 @@ Fixed Contributed by @guzzijones +Removed +~~~~~~~~ +* Removed check-licence script (cleanup) #5092 + Contributed by @kroustou + 3.3.0 - October 06, 2020 ------------------...
pfnet__pytorch-pfn-extras-698
FP16 evaluator Add an option to `ppe.training.Evaluator` to allow `autocast` to be applied.
[ { "content": "import contextlib\nimport dataclasses\nimport warnings\nfrom typing import Any, Dict, Generator, Iterable, Mapping, Optional\n\nimport torch\nfrom pytorch_pfn_extras.handler._code_block import forward, update_parameters\nfrom pytorch_pfn_extras.runtime import _autocast\n\n\n# Deprecated: kept for ...
[ { "content": "import contextlib\nimport dataclasses\nimport warnings\nfrom typing import Any, Dict, Generator, Iterable, Mapping, Optional\n\nimport torch\nfrom pytorch_pfn_extras.handler._code_block import forward, update_parameters\nfrom pytorch_pfn_extras.runtime import _autocast\n\n\n# Deprecated: kept for ...
diff --git a/pytorch_pfn_extras/handler/_logic.py b/pytorch_pfn_extras/handler/_logic.py index af9f78a53..68fbe1092 100644 --- a/pytorch_pfn_extras/handler/_logic.py +++ b/pytorch_pfn_extras/handler/_logic.py @@ -372,7 +372,8 @@ def eval_step( Input tensors feeded to the model of the current step. ...
plotly__plotly.py-2011
plotly.figure_factory._gantt.py.validate_gantt uses deprecated .ix This gives the warning: ``` .ix is deprecated. Please use .loc for label based indexing or .iloc for positional indexing ```
[ { "content": "from __future__ import absolute_import\n\nfrom numbers import Number\n\nimport copy\n\nfrom plotly import exceptions, optional_imports\nimport plotly.colors as clrs\nfrom plotly.figure_factory import utils\nimport plotly.graph_objects as go\n\npd = optional_imports.get_module(\"pandas\")\n\nREQUIR...
[ { "content": "from __future__ import absolute_import\n\nfrom numbers import Number\n\nimport copy\n\nfrom plotly import exceptions, optional_imports\nimport plotly.colors as clrs\nfrom plotly.figure_factory import utils\nimport plotly.graph_objects as go\n\npd = optional_imports.get_module(\"pandas\")\n\nREQUIR...
diff --git a/packages/python/plotly/plotly/figure_factory/_gantt.py b/packages/python/plotly/plotly/figure_factory/_gantt.py index 3d3f8f5cdd5..dfc5e4a2a32 100644 --- a/packages/python/plotly/plotly/figure_factory/_gantt.py +++ b/packages/python/plotly/plotly/figure_factory/_gantt.py @@ -46,7 +46,7 @@ def validate_gant...
ivy-llc__ivy-13166
fmin
[ { "content": "# global\n\n# local\nimport ivy\nimport ivy.functional.frontends.torch as torch_frontend\nimport ivy.functional.frontends.torch.nn.functional as torch_frontend_nn\nfrom ivy.functional.frontends.numpy.creation_routines.from_existing_data import (\n array as np_frontend_array,\n)\nfrom ivy.func_w...
[ { "content": "# global\n\n# local\nimport ivy\nimport ivy.functional.frontends.torch as torch_frontend\nimport ivy.functional.frontends.torch.nn.functional as torch_frontend_nn\nfrom ivy.functional.frontends.numpy.creation_routines.from_existing_data import (\n array as np_frontend_array,\n)\nfrom ivy.func_w...
diff --git a/ivy/functional/frontends/torch/tensor.py b/ivy/functional/frontends/torch/tensor.py index 082462226bcd9..3b0e3799e8c08 100644 --- a/ivy/functional/frontends/torch/tensor.py +++ b/ivy/functional/frontends/torch/tensor.py @@ -754,6 +754,9 @@ def bitwise_and_(self, other): def atan2_(self, other): ...
Chia-Network__chia-blockchain-13374
Remove or Set to 0 DataLayer default fee
[ { "content": "from __future__ import annotations\n\nimport dataclasses\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Any, Dict, List, Optional, cast\n\nfrom chia.data_layer.data_layer_errors import OfferIntegrityError\nfrom chia.data_layer.data_layer_util import (\n CancelOfferRequest,\n Ca...
[ { "content": "from __future__ import annotations\n\nimport dataclasses\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Any, Dict, List, Optional, cast\n\nfrom chia.data_layer.data_layer_errors import OfferIntegrityError\nfrom chia.data_layer.data_layer_util import (\n CancelOfferRequest,\n Ca...
diff --git a/chia/rpc/data_layer_rpc_api.py b/chia/rpc/data_layer_rpc_api.py index 2af5b6ccbeb4..702a77a2be88 100644 --- a/chia/rpc/data_layer_rpc_api.py +++ b/chia/rpc/data_layer_rpc_api.py @@ -69,8 +69,7 @@ def process_change(change: Dict[str, Any]) -> Dict[str, Any]: def get_fee(config: Dict[str, Any], request: Dic...
frappe__frappe-15581
imaplib error when fetching emails When someone tried to pull emails from their account (using IMAP server), they encountered this error <img width="633" alt="Screenshot 2021-12-21 at 10 44 51 AM" src="https://user-images.githubusercontent.com/58825865/146875998-ade6c090-2a5c-4000-ab94-64a24d0cf88f.png"> The same...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nimport datetime\nimport email\nimport email.utils\nimport imaplib\nimport poplib\nimport re\nimport time\nimport json\nfrom email.header import decode_header\n\nimport _socket\nimport chardet\nfrom...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nimport datetime\nimport email\nimport email.utils\nimport imaplib\nimport poplib\nimport re\nimport time\nimport json\nfrom email.header import decode_header\n\nimport _socket\nimport chardet\nfrom...
diff --git a/frappe/email/receive.py b/frappe/email/receive.py index 4f4ed6d48ec4..dd64d0df80e9 100644 --- a/frappe/email/receive.py +++ b/frappe/email/receive.py @@ -27,11 +27,7 @@ # fix due to a python bug in poplib that limits it to 2048 poplib._MAXLINE = 20480 -imaplib._MAXLINE = 20480 -# fix due to a python ...
svthalia__concrexit-3188
Non-closable site announcements can secretly be closed if you send the right cookie ### Describe the bug Non-closable site announcements can secretly be closed if you send the right cookie ### How to reproduce Steps to reproduce the behaviour: 1. Have an announcement that is closable 2. Close it on your machine ...
[ { "content": "\"\"\"These context processors can be used to expand the context provided to admin views.\"\"\"\nfrom .models import Announcement\n\n\ndef announcements(request):\n \"\"\"Get a list of announcements.\n\n Filters out announcements that have been closed already.\n\n :param request: the requ...
[ { "content": "\"\"\"These context processors can be used to expand the context provided to admin views.\"\"\"\nfrom .models import Announcement\n\n\ndef announcements(request):\n \"\"\"Get a list of announcements.\n\n Filters out announcements that have been closed already.\n\n :param request: the requ...
diff --git a/website/announcements/context_processors.py b/website/announcements/context_processors.py index 3b5a715ad..934453e87 100644 --- a/website/announcements/context_processors.py +++ b/website/announcements/context_processors.py @@ -15,7 +15,7 @@ def announcements(request): announcements_list = [ ...
geopandas__geopandas-1583
BUG: legend misplaced in subplots I'm using v0.8.0. When I plot on multiple subplots and pass `legend_kwds` to `gdf.plot`, it draws all the subplot legends on the same subplot. This works as expected: ```python import geopandas as gpd import matplotlib.pyplot as plt gdf = gpd.read_file(gpd.datasets.get_path('n...
[ { "content": "import warnings\n\nimport numpy as np\nimport pandas as pd\n\nimport geopandas\n\nfrom distutils.version import LooseVersion\n\n\ndef deprecated(new):\n \"\"\"Helper to provide deprecation warning.\"\"\"\n\n def old(*args, **kwargs):\n warnings.warn(\n \"{} is intended for ...
[ { "content": "import warnings\n\nimport numpy as np\nimport pandas as pd\n\nimport geopandas\n\nfrom distutils.version import LooseVersion\n\n\ndef deprecated(new):\n \"\"\"Helper to provide deprecation warning.\"\"\"\n\n def old(*args, **kwargs):\n warnings.warn(\n \"{} is intended for ...
diff --git a/geopandas/plotting.py b/geopandas/plotting.py index b827e7819c..e05d66678f 100644 --- a/geopandas/plotting.py +++ b/geopandas/plotting.py @@ -600,6 +600,11 @@ def plot_dataframe( else: ax.set_aspect(aspect) + # GH 1555 + # if legend_kwds set, copy so we don't update it in place + i...
zulip__zulip-21420
Document "Manage this user" profile link Administrators now see a "Manage this user" link at the bottom of the user profile modal, which will often be handier than getting to the user management UI through the settings. <img width="300" alt="Screen Shot 2022-03-14 at 3 46 02 PM" src="https://user-images.githubuserco...
[ { "content": "import re\nfrom typing import Any, Dict, List, Mapping, Optional\n\nimport markdown\nfrom markdown.extensions import Extension\nfrom markdown.preprocessors import Preprocessor\n\nfrom zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES\n\nSTART_TABBED_SECTION_REGEX = re.compi...
[ { "content": "import re\nfrom typing import Any, Dict, List, Mapping, Optional\n\nimport markdown\nfrom markdown.extensions import Extension\nfrom markdown.preprocessors import Preprocessor\n\nfrom zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES\n\nSTART_TABBED_SECTION_REGEX = re.compi...
diff --git a/templates/zerver/help/change-a-users-name.md b/templates/zerver/help/change-a-users-name.md index e4f2353b8e2af..8e7da1ba0747e 100644 --- a/templates/zerver/help/change-a-users-name.md +++ b/templates/zerver/help/change-a-users-name.md @@ -12,10 +12,25 @@ Organization administrators can always change any u...
stephenmcd__mezzanine-446
Issue with custom SLUGIFY method So I try to use slygify from Pytils (https://github.com/j2a/pytils/blob/master/pytils/translit.py#L194 ) like this: ``` SLUGIFY = "pytils.translit.slugify" ``` Every time I save the model that subclasses Displayable I get an error: ``` slugify() got invalid parameter 1 of type NewsIt...
[ { "content": "\nfrom django.contrib.contenttypes.generic import GenericForeignKey\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db import models\nfrom django.db.models.base import ModelBase\nfrom django.template.defaultfilters import truncatewords_html\nfrom django.utils.html import strip_...
[ { "content": "\nfrom django.contrib.contenttypes.generic import GenericForeignKey\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db import models\nfrom django.db.models.base import ModelBase\nfrom django.template.defaultfilters import truncatewords_html\nfrom django.utils.html import strip_...
diff --git a/mezzanine/core/models.py b/mezzanine/core/models.py index 32d60e76b7..e6eda39bc2 100644 --- a/mezzanine/core/models.py +++ b/mezzanine/core/models.py @@ -91,7 +91,7 @@ def get_slug(self): """ Allows subclasses to implement their own slug creation logic. """ - return slugif...
spyder-ide__spyder-15864
FileNotFoundError in Online help ## Description ### What steps will reproduce the problem? <!--- You can use Markdown here ---> - **Step 1 :** Open `Online help` - **Step 2 :** Open `Virinas-code/Crocrodile` in package search bar and press *<Enter>* ### Error message > Python 3.7.3 [default, GCC 8.3.0] > Linux-4.1...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright © 2018 André Roberge - mod_pydoc\n# Copyright © Spyder Project Contributors\n# Licensed under the terms of the MIT License\n# (see spyder/__init__.py for details)\n\n\"\"\"PyDoc patch\"\"\"\n# Standard libray\nimport builtins\nimport io\nimport inspect\nimpo...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright © 2018 André Roberge - mod_pydoc\n# Copyright © Spyder Project Contributors\n# Licensed under the terms of the MIT License\n# (see spyder/__init__.py for details)\n\n\"\"\"PyDoc patch\"\"\"\n# Standard libray\nimport builtins\nimport io\nimport inspect\nimpo...
diff --git a/spyder/plugins/onlinehelp/pydoc_patch.py b/spyder/plugins/onlinehelp/pydoc_patch.py index ac4d6b136a6..c43ae379775 100644 --- a/spyder/plugins/onlinehelp/pydoc_patch.py +++ b/spyder/plugins/onlinehelp/pydoc_patch.py @@ -639,7 +639,7 @@ def page(self, title, contents): css_path = "static/cs...
facebookresearch__fairseq-200
Assertion Error in preprocessing of FAIR Sequence-to-Sequence Toolkit for Story Generation when I run $ TEXT=examples/stories/writingPrompts $ python preprocess.py --source-lang wp_source --target-lang wp_target \ --trainpref $TEXT/train --validpref $TEXT/valid --testpref $TEXT/test \ --destdir data-bin/writin...
[ { "content": "# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n#\n# This source code is licensed under the license found in the LICENSE file in\n# the root directory of this source tree. An additional grant of patent rights\n# can be found in the PATENTS file in the same directory.\n\nfrom ...
[ { "content": "# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n#\n# This source code is licensed under the license found in the LICENSE file in\n# the root directory of this source tree. An additional grant of patent rights\n# can be found in the PATENTS file in the same directory.\n\nfrom ...
diff --git a/fairseq/data/dictionary.py b/fairseq/data/dictionary.py index cdfc286a6e..04bd696ed7 100644 --- a/fairseq/data/dictionary.py +++ b/fairseq/data/dictionary.py @@ -133,7 +133,6 @@ def finalize(self, threshold=-1, nwords=-1, padding_factor=8): i += 1 threshold_nwords += 1 -...
python__mypy-8251
Bug: Mypy uses MD5 which causes a traceback in FIPS environment Hello, Mypy does not work when FIPS (Federal Information Processing Standards) is enabled on RHEL 8.1. The problem is that mypy is calculating MD5 hashes of files and crashes with a traceback: ``` # python3 -m mypy -p pcs --show-traceback --no-increme...
[ { "content": "\"\"\"Utility functions with no non-trivial dependencies.\"\"\"\nimport os\nimport pathlib\nimport re\nimport subprocess\nimport sys\nimport hashlib\n\nfrom typing import (\n TypeVar, List, Tuple, Optional, Dict, Sequence, Iterable, Container, IO, Callable\n)\nfrom typing_extensions import Fina...
[ { "content": "\"\"\"Utility functions with no non-trivial dependencies.\"\"\"\nimport os\nimport pathlib\nimport re\nimport subprocess\nimport sys\nimport hashlib\n\nfrom typing import (\n TypeVar, List, Tuple, Optional, Dict, Sequence, Iterable, Container, IO, Callable\n)\nfrom typing_extensions import Fina...
diff --git a/mypy/util.py b/mypy/util.py index d44e58da8fc3..f7c96e520f5c 100644 --- a/mypy/util.py +++ b/mypy/util.py @@ -476,7 +476,9 @@ def hash_digest(data: bytes) -> str: accidental collision, but we don't really care about any of the cryptographic properties. """ - return hashlib.md5(data).hexdi...
Cloud-CV__EvalAI-2012
Incorrect Fields in Jobs serializer *Observed code:* [here](https://github.com/Cloud-CV/EvalAI/blob/master/apps/jobs/serializers.py/#L54) ``` class Meta: model = LeaderboardData fields = "__all__" fields = ('id', 'participant_team_name', 'challenge_phase_split', 'leaderboard_schema', 'resul...
[ { "content": "from django.contrib.auth.models import User\n\nfrom rest_framework import serializers\n\nfrom challenges.models import LeaderboardData\nfrom participants.models import Participant, ParticipantTeam\n\nfrom .models import Submission\n\n\nclass SubmissionSerializer(serializers.ModelSerializer):\n\n ...
[ { "content": "from django.contrib.auth.models import User\n\nfrom rest_framework import serializers\n\nfrom challenges.models import LeaderboardData\nfrom participants.models import Participant, ParticipantTeam\n\nfrom .models import Submission\n\n\nclass SubmissionSerializer(serializers.ModelSerializer):\n\n ...
diff --git a/apps/jobs/serializers.py b/apps/jobs/serializers.py index b411ec5b54..f95054c50d 100644 --- a/apps/jobs/serializers.py +++ b/apps/jobs/serializers.py @@ -51,7 +51,6 @@ def __init__(self, *args, **kwargs): class Meta: model = LeaderboardData - fields = "__all__" fields = ('id...
interlegis__sapl-2645
Total de registros encontrados em relatório está por página e não por total Em Comissões, Matérias em Tramitação, a contagem está relacionada ao número de matérias por página e não pelo total na unidade. Ex: https://sapl.divinopolis.mg.leg.br/comissao/101/materias-em-tramitacao ## Comportamento Esperado A tel...
[ { "content": "import logging\n\nfrom django.core.urlresolvers import reverse\nfrom django.db.models import F\nfrom django.http.response import HttpResponseRedirect\nfrom django.views.decorators.clickjacking import xframe_options_exempt\nfrom django.views.generic import ListView\nfrom django.views.generic.base i...
[ { "content": "import logging\n\nfrom django.core.urlresolvers import reverse\nfrom django.db.models import F\nfrom django.http.response import HttpResponseRedirect\nfrom django.views.decorators.clickjacking import xframe_options_exempt\nfrom django.views.generic import ListView\nfrom django.views.generic.base i...
diff --git a/sapl/comissoes/views.py b/sapl/comissoes/views.py index 743eaa58f..d6d129b11 100644 --- a/sapl/comissoes/views.py +++ b/sapl/comissoes/views.py @@ -186,6 +186,7 @@ def get_context_data(self, **kwargs): context = super( MateriasTramitacaoListView, self).get_context_data(**kwargs) ...
instadeepai__Mava-654
[TEST] Jax MAPPO System Integration ### What do you want to test? Jax MAPPO full integration test ### Outline of test structure * Unit tests (if possible) * Test component interactions * Ensure not crashing during standard executor and trainer steps ### Definition of done Passing checks, cover all basic comp...
[ { "content": "# python3\n# Copyright 2021 InstaDeep Ltd. 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": "# python3\n# Copyright 2021 InstaDeep Ltd. 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/mava/systems/jax/launcher.py b/mava/systems/jax/launcher.py index 141eab647..6369269f9 100644 --- a/mava/systems/jax/launcher.py +++ b/mava/systems/jax/launcher.py @@ -119,6 +119,7 @@ def add( if self._multi_process: with self._program.group(name): + node_fn = copy_no...
scikit-hep__pyhf-1089
Write JOSS Submission # Description Given conversations with @labarba at SciPy 2019 it seems that pyhf would be a good candidate for a [JOSS paper](https://joss.theoj.org/). Given @cranmer's good experience with this for carl [![DOI](http://joss.theoj.org/papers/10.21105/joss.00011/status.svg)](https://doi.org/10.21...
[ { "content": "#\n# pyhf documentation build configuration file, created by\n# sphinx-quickstart on Fri Feb 9 11:58:49 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 configuration values are present in this\n# autogenerated file.\n#...
[ { "content": "#\n# pyhf documentation build configuration file, created by\n# sphinx-quickstart on Fri Feb 9 11:58:49 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 configuration values are present in this\n# autogenerated file.\n#...
diff --git a/docs/JOSS/paper.bib b/docs/JOSS/paper.bib new file mode 100644 index 0000000000..2a5c77ea64 --- /dev/null +++ b/docs/JOSS/paper.bib @@ -0,0 +1,135 @@ +@techreport{Cranmer:1456844, + author = "Cranmer, Kyle and Lewis, George and Moneta, Lorenzo and + Shibata, Akira and Verk...
facebookresearch__hydra-2543
[Bug] MissingConfigException cannot be correctly deserialized, due to lack of missing_cfg_file ctor default # 🐛 Bug ## Description in https://github.com/facebookresearch/hydra/blob/main/hydra/errors.py the missing_cfg_file parameter of the `MissingConfigException` should be defaulted to `None` since it is optional...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nfrom typing import Optional, Sequence\n\n\nclass HydraException(Exception):\n ...\n\n\nclass CompactHydraException(HydraException):\n ...\n\n\nclass OverrideParseException(CompactHydraException):\n def __init__(self, ...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nfrom typing import Optional, Sequence\n\n\nclass HydraException(Exception):\n ...\n\n\nclass CompactHydraException(HydraException):\n ...\n\n\nclass OverrideParseException(CompactHydraException):\n def __init__(self, ...
diff --git a/hydra/errors.py b/hydra/errors.py index 16849a2f550..427e8375506 100644 --- a/hydra/errors.py +++ b/hydra/errors.py @@ -33,7 +33,7 @@ class MissingConfigException(IOError, ConfigCompositionException): def __init__( self, message: str, - missing_cfg_file: Optional[str], + ...
conan-io__conan-center-index-2625
[package] libx265/3.2.1: hash of source tar.gz changed ### Package and Environment Details (include every applicable attribute) * Package Name/Version: **libx265/3.2.1** * Operating System+version: **Linux Ubuntu 18.04 and 20.04 ** * Compiler+version: **GCC 7.5 and 8** * Conan version: **conan 1.28.1** *...
[ { "content": "from conans import CMake, ConanFile, tools\nimport os\nimport shutil\n\n\nclass Libx265Conan(ConanFile):\n name = \"libx265\"\n description = \"x265 is the leading H.265 / HEVC encoder software library\"\n topics = (\"conan\", \"libx265\", \"codec\", \"video\", \"H.265\")\n url = \"htt...
[ { "content": "from conans import CMake, ConanFile, tools\nimport os\nimport shutil\n\n\nclass Libx265Conan(ConanFile):\n name = \"libx265\"\n description = \"x265 is the leading H.265 / HEVC encoder software library\"\n topics = (\"conan\", \"libx265\", \"codec\", \"video\", \"H.265\")\n url = \"htt...
diff --git a/recipes/libx265/all/conandata.yml b/recipes/libx265/all/conandata.yml index 4e8beb4d7bc64..18cf86ce2cf52 100644 --- a/recipes/libx265/all/conandata.yml +++ b/recipes/libx265/all/conandata.yml @@ -1,7 +1,7 @@ sources: 3.2.1: - url: "https://bitbucket.org/multicoreware/x265/downloads/x265_3.2.1.tar.gz...
pyqtgraph__pyqtgraph-2648
ColorMap.getByIndex() returns wrong colors <!-- In the following, please describe your issue in detail! --> <!-- If some sections do not apply, just remove them. --> ### Short description <!-- This should summarize the issue. --> ColorMap.getByIndex() returns wrong colors. ### Code to reproduce <!-- Please pr...
[ { "content": "from collections.abc import Callable, Sequence\nfrom os import listdir, path\n\nimport numpy as np\n\nfrom .functions import clip_array, clip_scalar, colorDistance, eq, mkColor\nfrom .Qt import QtCore, QtGui\n\n__all__ = ['ColorMap']\n\n_mapCache = {}\n\ndef listMaps(source=None):\n \"\"\"\n ...
[ { "content": "from collections.abc import Callable, Sequence\nfrom os import listdir, path\n\nimport numpy as np\n\nfrom .functions import clip_array, clip_scalar, colorDistance, eq, mkColor\nfrom .Qt import QtCore, QtGui\n\n__all__ = ['ColorMap']\n\n_mapCache = {}\n\ndef listMaps(source=None):\n \"\"\"\n ...
diff --git a/pyqtgraph/colormap.py b/pyqtgraph/colormap.py index 413c4436e1..5a2b8106b8 100644 --- a/pyqtgraph/colormap.py +++ b/pyqtgraph/colormap.py @@ -622,7 +622,7 @@ def mapToFloat(self, data): def getByIndex(self, idx): """Retrieve a QColor by the index of the stop it is assigned to.""" - r...
pypi__warehouse-5656
XML-RPC changelog_since_serial() method is returning invalid XML due to \x01 in sdist name As of 2019-04-01 17:35:00 +0000, running the below Python 3 code: ``` #!/usr/bin/python3 import csv from xmlrpc.client import ServerProxy import sys ENDPOINT = 'https://pypi.org/pypi' SINCE = 5011848 client = S...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
diff --git a/warehouse/legacy/api/xmlrpc/views.py b/warehouse/legacy/api/xmlrpc/views.py index eca0dc3acf48..a5cfeeb6ea12 100644 --- a/warehouse/legacy/api/xmlrpc/views.py +++ b/warehouse/legacy/api/xmlrpc/views.py @@ -492,7 +492,7 @@ def changelog_since_serial(request, serial: int): e.name, e...
Qiskit__qiskit-1371
Revise the documentation TOC subsection handling <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea does not exist. --> ### What is the expected enhancement? An issue raised during #1254: > Also Is it possibl...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Qiskit documentation build configuration file, created by\n# sphinx-quickstart on Tue Jul 25 18:13:28 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 v...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Qiskit documentation build configuration file, created by\n# sphinx-quickstart on Tue Jul 25 18:13:28 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 v...
diff --git a/doc/_templates/drawer.html b/doc/_templates/drawer.html new file mode 100644 index 000000000000..6e08c4e7fcfc --- /dev/null +++ b/doc/_templates/drawer.html @@ -0,0 +1,21 @@ +<header class="mdl-layout__drawer"> + {% if theme_show_drawer_title|tobool %} + <!-- Title --> + <span class="mdl-l...
systemd__mkosi-1793
Build fails if host does not have /etc/gshadow From my research, `/etc/gshadow` seems to be entirely optional. Both openSUSE and NixOS do not create `/etc/gshadow`. This code expects gshadow to exist on the host and bind mounts `/dev/null` -> `/etc/gshadow` in bubblewrap if the path does not exist in the sysroot we ...
[ { "content": "# SPDX-License-Identifier: LGPL-2.1+\n\nimport asyncio\nimport asyncio.tasks\nimport ctypes\nimport ctypes.util\nimport enum\nimport fcntl\nimport logging\nimport os\nimport pwd\nimport queue\nimport shlex\nimport signal\nimport subprocess\nimport sys\nimport tempfile\nimport textwrap\nimport thre...
[ { "content": "# SPDX-License-Identifier: LGPL-2.1+\n\nimport asyncio\nimport asyncio.tasks\nimport ctypes\nimport ctypes.util\nimport enum\nimport fcntl\nimport logging\nimport os\nimport pwd\nimport queue\nimport shlex\nimport signal\nimport subprocess\nimport sys\nimport tempfile\nimport textwrap\nimport thre...
diff --git a/mkosi/run.py b/mkosi/run.py index e1ed6ca84..96290b5ae 100644 --- a/mkosi/run.py +++ b/mkosi/run.py @@ -344,6 +344,8 @@ def finalize_passwd_mounts(root: Path) -> list[PathString]: options: list[PathString] = [] for f in ("passwd", "group", "shadow", "gshadow"): + if not (Path("etc") / f)...
mne-tools__mne-python-4664
UserWarning in decoding_rsa example Running this example, I get the following warning decoding_rsa.py:94: RuntimeWarning: More events than colors available. You should pass a list of unique colors.
[ { "content": "\"\"\"\n\n.. _rsa_noplot:\n\n====================================\nRepresentational Similarity Analysis\n====================================\n\nRepresentational Similarity Analysis is used to perform summary statistics\non supervised classifications where the number of classes is relatively high....
[ { "content": "\"\"\"\n\n.. _rsa_noplot:\n\n====================================\nRepresentational Similarity Analysis\n====================================\n\nRepresentational Similarity Analysis is used to perform summary statistics\non supervised classifications where the number of classes is relatively high....
diff --git a/examples/decoding/decoding_rsa.py b/examples/decoding/decoding_rsa.py index 4d4925e7cbf..6ccf1ffe60c 100644 --- a/examples/decoding/decoding_rsa.py +++ b/examples/decoding/decoding_rsa.py @@ -97,7 +97,6 @@ events = mne.find_events(raw, min_duration=.002) events = events[events[:, 2] <= max_trigger] -mn...
ESMCI__cime-3605
NLCOMP fails with python3 because dictionaries no longer support `has_key` When using python3, I get: ``` $ ./case.cmpgen_namelists Comparing namelists with baselines 'lilac_0703a' Generating namelists to baselines 'lilac_0703b' Exception during namelist operations: 'dict' object has no attribute 'has_key' Tra...
[ { "content": "import os, re\n\nfrom CIME.utils import expect\n\n###############################################################################\ndef _normalize_string_value(value, case):\n###############################################################################\n \"\"\"\n Some of the strings are inh...
[ { "content": "import os, re\n\nfrom CIME.utils import expect\n\n###############################################################################\ndef _normalize_string_value(value, case):\n###############################################################################\n \"\"\"\n Some of the strings are inh...
diff --git a/scripts/lib/CIME/simple_compare.py b/scripts/lib/CIME/simple_compare.py index 69ef73f04b2..99859f579fb 100644 --- a/scripts/lib/CIME/simple_compare.py +++ b/scripts/lib/CIME/simple_compare.py @@ -212,7 +212,7 @@ def _parse_runconfig(filename): def findDiff(d1, d2, path="", case=None): comment = "" ...
Textualize__textual-1278
Type selectors can't contain a number It seems that type selectors can't handle types that have a number in their name. For example this: ```python from textual.app import App, ComposeResult from textual.widgets import Label class H1( Label ): pass class NumberError( App[ None ] ): CSS = """ ...
[ { "content": "from __future__ import annotations\n\nimport re\nfrom pathlib import PurePath\nfrom typing import Iterable\n\nfrom textual.css.tokenizer import Expect, Tokenizer, Token\n\nPERCENT = r\"-?\\d+\\.?\\d*%\"\nDECIMAL = r\"-?\\d+\\.?\\d*\"\nCOMMA = r\"\\s*,\\s*\"\nOPEN_BRACE = r\"\\(\\s*\"\nCLOSE_BRACE ...
[ { "content": "from __future__ import annotations\n\nimport re\nfrom pathlib import PurePath\nfrom typing import Iterable\n\nfrom textual.css.tokenizer import Expect, Tokenizer, Token\n\nPERCENT = r\"-?\\d+\\.?\\d*%\"\nDECIMAL = r\"-?\\d+\\.?\\d*\"\nCOMMA = r\"\\s*,\\s*\"\nOPEN_BRACE = r\"\\(\\s*\"\nCLOSE_BRACE ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 18c26b55a7..aa06b03c08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Rebuilt `DirectoryTree` with new `Tree` control. +### Fixed + +- Type selectors can now contain numbers http...
privacyidea__privacyidea-3745
Better label for day password policy The label in the policy for the `daypassword_timestep` should be more helpful. Please replace "text..." with something like "24h". ![image](https://github.com/privacyidea/privacyidea/assets/1908620/2895a46c-3c70-4131-b3bc-eceaa4efbffc)
[ { "content": "# -*- coding: utf-8 -*-\n#\n# This code is free software; you can redistribute it and/or\n# modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n# License as published by the Free Software Foundation; either\n# version 3 of the License, or any later version.\n#\n# This code is distr...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# This code is free software; you can redistribute it and/or\n# modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n# License as published by the Free Software Foundation; either\n# version 3 of the License, or any later version.\n#\n# This code is distr...
diff --git a/privacyidea/lib/tokens/daypasswordtoken.py b/privacyidea/lib/tokens/daypasswordtoken.py index 1eecff1cb5..555844a5e9 100644 --- a/privacyidea/lib/tokens/daypasswordtoken.py +++ b/privacyidea/lib/tokens/daypasswordtoken.py @@ -33,7 +33,7 @@ class DayPasswordTokenClass(TotpTokenClass): previous_otp_off...
ipython__ipython-9202
IPythonLexer test failure with pygments 2.1 Jenkins is showing us a test failure on Windows: https://jenkins.jupyter.org/job/windows-multi/_pyversion=3.5,label=windows/504/testReport/ It looks like `$HOME` is unexpectedly being split into two tokens. I suspect it's failing since pygments 2.1 was released. I see the s...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Setup script for IPython.\n\nUnder Posix environments it works like a typical setup.py script.\nUnder Windows, the command sdist is not supported, since IPython\nrequires utilities which are not available under Windows.\"\"\"\n\n#--------------...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Setup script for IPython.\n\nUnder Posix environments it works like a typical setup.py script.\nUnder Windows, the command sdist is not supported, since IPython\nrequires utilities which are not available under Windows.\"\"\"\n\n#--------------...
diff --git a/IPython/lib/tests/test_lexers.py b/IPython/lib/tests/test_lexers.py index 0f795504314..bb2de2e5f8e 100644 --- a/IPython/lib/tests/test_lexers.py +++ b/IPython/lib/tests/test_lexers.py @@ -5,6 +5,7 @@ from unittest import TestCase from pygments.token import Token +from pygments.lexers import BashLexer ...
sanic-org__sanic-2183
Request streaming results in a phantom 503 When streaming a request body, you end up with a phantom 503 response. To the client, everything looks fine. The data is transmitted, and a response received OK. ``` [2021-07-05 22:45:47 +0300] - (sanic.access)[INFO][127.0.0.1:34264]: POST http://localhost:9999/upload 201...
[ { "content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING, Optional\n\n\nif TYPE_CHECKING:\n from sanic.request import Request\n from sanic.response import BaseHTTPResponse\n\nfrom asyncio import CancelledError, sleep\nfrom enum import Enum\n\nfrom sanic.compat import Header\nfr...
[ { "content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING, Optional\n\n\nif TYPE_CHECKING:\n from sanic.request import Request\n from sanic.response import BaseHTTPResponse\n\nfrom asyncio import CancelledError, sleep\nfrom enum import Enum\n\nfrom sanic.compat import Header\nfr...
diff --git a/sanic/http.py b/sanic/http.py index 80301aff5c..a594e60c5e 100644 --- a/sanic/http.py +++ b/sanic/http.py @@ -490,6 +490,9 @@ async def read(self) -> Optional[bytes]: if size <= 0: self.request_body = None + # Because we are leaving one CRLF in the buffer, we ...
google__pytype-144
Future-proof preconditions.py:_TOKEN_RE 3.7 adds a warning about possible future changes to re: https://bugs.python.org/issue30349 A future version of python will add nested sets, which allows nesting of sets using `[...]`. Escape the inner `[` in the re so it doesn't trigger a nested set. Closes #140.
[ { "content": "# Copyright 2016 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 2016 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/pytype/pytd/parse/preconditions.py b/pytype/pytd/parse/preconditions.py index ebd9859e9..70fa62d5e 100644 --- a/pytype/pytd/parse/preconditions.py +++ b/pytype/pytd/parse/preconditions.py @@ -163,7 +163,7 @@ def allowed_types(self): # RE to match a single token. Leading whitepace is ignored. _TOKEN_RE...
netbox-community__netbox-14370
"service" does not preserve the order of ports when editing ### NetBox version v3.6.5 ### Python version 3.8 ### Steps to Reproduce 1. Create a "service", and enter the ports as "9093,9095,9998-9999" 2. View the list of services 3. Edit the service (i.e. click the pencil icon at the end of the service row) ### ...
[ { "content": "import re\n\nfrom django import forms\nfrom django.forms.models import fields_for_model\n\nfrom utilities.choices import unpack_grouped_choices\nfrom utilities.querysets import RestrictedQuerySet\nfrom .constants import *\n\n__all__ = (\n 'add_blank_choice',\n 'expand_alphanumeric_pattern',\...
[ { "content": "import re\n\nfrom django import forms\nfrom django.forms.models import fields_for_model\n\nfrom utilities.choices import unpack_grouped_choices\nfrom utilities.querysets import RestrictedQuerySet\nfrom .constants import *\n\n__all__ = (\n 'add_blank_choice',\n 'expand_alphanumeric_pattern',\...
diff --git a/netbox/utilities/forms/utils.py b/netbox/utilities/forms/utils.py index 4d737f16321..64864a6c130 100644 --- a/netbox/utilities/forms/utils.py +++ b/netbox/utilities/forms/utils.py @@ -40,7 +40,7 @@ def parse_numeric_range(string, base=10): except ValueError: raise forms.ValidationErro...
getsentry__sentry-python-1545
Typo in setup.py for 1.9.1 release breaks `conda export` ### How do you use Sentry? Self-hosted/on-premise ### Version 1.9.1 ### Steps to Reproduce This line https://github.com/getsentry/sentry-python/commit/b7c0dc412a1505fff382732f567952c8a9572b60#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"\nSentry-Python - Sentry SDK for Python\n=====================================\n\n**Sentry-Python is an SDK for Sentry.** Check out `GitHub\n<https://github.com/getsentry/sentry-python>`_ to find out more.\n\"\"\"\n\nimport os\nfrom setuptools import setup, find_pack...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"\nSentry-Python - Sentry SDK for Python\n=====================================\n\n**Sentry-Python is an SDK for Sentry.** Check out `GitHub\n<https://github.com/getsentry/sentry-python>`_ to find out more.\n\"\"\"\n\nimport os\nfrom setuptools import setup, find_pack...
diff --git a/setup.py b/setup.py index 3dcb9eb658..8e370c68f2 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ def get_file_text(file_name): install_requires=[ 'urllib3>=1.25.7; python_version<="3.4"', 'urllib3>=1.26.9; python_version>="3.5"', - 'urllib3>=1.26.11"; python_version >="...
wger-project__wger-170
BMI And Calorie Calculator Not Working Using this software in Linux Mint 13. When I enter my data into either the BMI calculator or the calorie estimator nothing happens. I have entered my height in cm and my weight in kgs. The BMI calculator says my BMI = 0. I'd be happy with 10.
[ { "content": "# -*- coding: utf-8 -*-\n\n# This file is part of wger Workout Manager.\n#\n# wger Workout Manager is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as published by\n# the Free Software Foundation, either version 3 of the License...
[ { "content": "# -*- coding: utf-8 -*-\n\n# This file is part of wger Workout Manager.\n#\n# wger Workout Manager is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as published by\n# the Free Software Foundation, either version 3 of the License...
diff --git a/wger/nutrition/forms.py b/wger/nutrition/forms.py index 7f5c6fdfe..27d2dc2ef 100644 --- a/wger/nutrition/forms.py +++ b/wger/nutrition/forms.py @@ -55,6 +55,9 @@ def __init__(self, *args, **kwargs): class BmiForm(forms.ModelForm): + height = forms.DecimalField(widget=Html5NumberInput(), + ...
xonsh__xonsh-89
setup.py install fails if working directory not location of setup.py C:\Python34>.\python.exe \temp\xonsh-0.1.2\setup.py install ... Traceback (most recent call last): File "\temp\xonsh-0.1.2\setup.py", line 114, in <module> main() File "\temp\xonsh-0.1.2\setup.py", line 50, in main with open('README.rst', ...
[ { "content": "#!/usr/bin/env python\n# coding=utf-8\n\"\"\"The xonsh installer.\"\"\"\nfrom __future__ import print_function, unicode_literals\nimport os\nimport sys\ntry:\n from setuptools import setup\n from setuptools.command.sdist import sdist\n from setuptools.command.install import install\n H...
[ { "content": "#!/usr/bin/env python\n# coding=utf-8\n\"\"\"The xonsh installer.\"\"\"\nfrom __future__ import print_function, unicode_literals\nimport os\nimport sys\ntry:\n from setuptools import setup\n from setuptools.command.sdist import sdist\n from setuptools.command.install import install\n H...
diff --git a/setup.py b/setup.py index 51089c25aa..563c034eb5 100755 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ def main(): if sys.version_info[0] < 3: sys.exit('xonsh currently requires Python 3.4+') print(logo) - with open('README.rst', 'r') as f: + with open(os.path.join(os.path.dirname...
ResonantGeoData__ResonantGeoData-223
_convert_to_cog function doesn't generate COG The current _convert_to_cog function (https://github.com/ResonantGeoData/ResonantGeoData/blob/master/rgd/geodata/models/imagery/subsample.py#L32-L51) doesn't output a COG; it just outputs a tiled tiff file. GDAL has two separate format writers; one for regular TIFF and one...
[ { "content": "\"\"\"Tasks for subsampling images with GDAL.\"\"\"\nimport os\nimport tempfile\n\nfrom celery.utils.log import get_task_logger\nfrom django.conf import settings\nfrom girder_utils.files import field_file_to_local_path\nfrom osgeo import gdal\n\nfrom ..common import ArbitraryFile\nfrom .base impor...
[ { "content": "\"\"\"Tasks for subsampling images with GDAL.\"\"\"\nimport os\nimport tempfile\n\nfrom celery.utils.log import get_task_logger\nfrom django.conf import settings\nfrom girder_utils.files import field_file_to_local_path\nfrom osgeo import gdal\n\nfrom ..common import ArbitraryFile\nfrom .base impor...
diff --git a/rgd/geodata/models/imagery/subsample.py b/rgd/geodata/models/imagery/subsample.py index d2fc62a30..23e0fc67b 100644 --- a/rgd/geodata/models/imagery/subsample.py +++ b/rgd/geodata/models/imagery/subsample.py @@ -35,7 +35,11 @@ def convert_to_cog(cog_id): '-co', 'COMPRESS=LZW', '-...
holoviz__panel-2555
TQDM.ipynb reference raises exception: AttributeError: Column.value property descriptor does not exist I'm on Panel 0.12.0, Param 1.11.1, Bokeh: 2.3.3 If I run the TQDM.ipynb reference notebook top to bottom and click one of the buttons I get a `AttributeError: Column.value property descriptor does not exist` error....
[ { "content": "import os\nimport sys\n\nfrom math import pi\n\nimport numpy as np\nimport param\n\nfrom bokeh.plotting import figure\nfrom bokeh.models import ColumnDataSource\nfrom tqdm.asyncio import tqdm as _tqdm\n\nfrom ..layout import Column, Row\nfrom ..models import (\n HTML, Progress as _BkProgress, T...
[ { "content": "import os\nimport sys\n\nfrom math import pi\n\nimport numpy as np\nimport param\n\nfrom bokeh.plotting import figure\nfrom bokeh.models import ColumnDataSource\nfrom tqdm.asyncio import tqdm as _tqdm\n\nfrom ..layout import Column, Row\nfrom ..models import (\n HTML, Progress as _BkProgress, T...
diff --git a/panel/widgets/indicators.py b/panel/widgets/indicators.py index f3e69e2eda..f737627b38 100644 --- a/panel/widgets/indicators.py +++ b/panel/widgets/indicators.py @@ -749,6 +749,8 @@ class Tqdm(Indicator): _layouts = {Row: 'row', Column: 'column'} + _rename = {'value': None, 'min': None, 'max': ...
graphql-python__graphene-django-194
graphene 1.3 annotation bug There seems to be a bug with graphene == 1.3 I have a model that I annotate a field "total_rent" I think graphene is stripping it away somehow I get this exception ```Cannot resolve keyword 'total_rent' into field. Choices are ... ``` When reverting back to graphene == 1.2.1 the er...
[ { "content": "from functools import partial\n\nfrom django.db.models.query import QuerySet\n\nfrom graphene.types import Field, List\nfrom graphene.relay import ConnectionField, PageInfo\nfrom graphql_relay.connection.arrayconnection import connection_from_list_slice\n\nfrom .settings import graphene_settings\n...
[ { "content": "from functools import partial\n\nfrom django.db.models.query import QuerySet\n\nfrom graphene.types import Field, List\nfrom graphene.relay import ConnectionField, PageInfo\nfrom graphql_relay.connection.arrayconnection import connection_from_list_slice\n\nfrom .settings import graphene_settings\n...
diff --git a/graphene_django/fields.py b/graphene_django/fields.py index c2a2a8fd4..6f2755bbf 100644 --- a/graphene_django/fields.py +++ b/graphene_django/fields.py @@ -57,7 +57,7 @@ def get_manager(self): @classmethod def merge_querysets(cls, default_queryset, queryset): - return default_queryset & ...
pwr-Solaar__Solaar-618
solaar window always visible **Information** - Solaar version: 1.0.1 from github - Distribution: github The solaar window is always on top of my other windows. This can become quite a pain, and is unnecessary because the window can be brought to the front by clicking on a receiver or device in the tray menu.
[ { "content": "# -*- python-mode -*-\n# -*- coding: UTF-8 -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the...
[ { "content": "# -*- python-mode -*-\n# -*- coding: UTF-8 -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the...
diff --git a/lib/solaar/ui/window.py b/lib/solaar/ui/window.py index 446213d220..4c87da30d7 100644 --- a/lib/solaar/ui/window.py +++ b/lib/solaar/ui/window.py @@ -337,7 +337,6 @@ def _create(): # window.set_type_hint(Gdk.WindowTypeHint.UTILITY) # window.set_skip_taskbar_hint(True) # window.set_skip_pager_hint(Tru...
spack__spack-26095
CentOS 6 image doesn't build with clingo on Dockerhub ### Steps to reproduce Has to do with failure on centos:6 ``` Step 17/19 : RUN spack spec hdf5+mpi ---> Running in 8335d48ff53f ==> Warning: Spack will not check SSL certificates. You need to update your Python to enable certificate verification. ==> Warn...
[ { "content": "# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\"\"\"Schema for the 'container' subsection of Spack environments.\"\"\"\n\n_stages_from_dockerhu...
[ { "content": "# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\"\"\"Schema for the 'container' subsection of Spack environments.\"\"\"\n\n_stages_from_dockerhu...
diff --git a/lib/spack/docs/containers.rst b/lib/spack/docs/containers.rst index e88b55a2263644..4364b5d4dbb2ad 100644 --- a/lib/spack/docs/containers.rst +++ b/lib/spack/docs/containers.rst @@ -126,9 +126,6 @@ are currently supported are summarized in the table below: * - Ubuntu 18.04 - ``ubuntu:18.04`` ...