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
⌀
fonttools__fonttools-3032
font.getGlyphID() returns None for missing glyphs unless they start with `glyph` Don't know how this went unnoticed but I found this while debugging the cryptic error message in https://github.com/fonttools/fonttools/issues/3028 Basically this function can fall off and return None by default: ``` def getGlyphI...
[ { "content": "from fontTools.config import Config\nfrom fontTools.misc import xmlWriter\nfrom fontTools.misc.configTools import AbstractConfig\nfrom fontTools.misc.textTools import Tag, byteord, tostr\nfrom fontTools.misc.loggingTools import deprecateArgument\nfrom fontTools.ttLib import TTLibError\nfrom fontTo...
[ { "content": "from fontTools.config import Config\nfrom fontTools.misc import xmlWriter\nfrom fontTools.misc.configTools import AbstractConfig\nfrom fontTools.misc.textTools import Tag, byteord, tostr\nfrom fontTools.misc.loggingTools import deprecateArgument\nfrom fontTools.ttLib import TTLibError\nfrom fontTo...
diff --git a/Lib/fontTools/ttLib/ttFont.py b/Lib/fontTools/ttLib/ttFont.py index 5760e499e2..3618d3f915 100644 --- a/Lib/fontTools/ttLib/ttFont.py +++ b/Lib/fontTools/ttLib/ttFont.py @@ -660,6 +660,7 @@ def getGlyphID(self, glyphName): return int(glyphName[5:]) except (NameError, V...
zigpy__zha-device-handlers-289
Hue dimmer (rwl020) off short press Hi, I have Hue Dimmer controller integrated in Hass Core via ZHA and Bellows (zigpy). The quirk is set to a [long press of the Off button as show here](https://github.com/dmulcahey/zha-device-handlers/blob/5c726a717a4d1dc3930b177f346e852bede9ee63/zhaquirks/philips/rwl021.py#L117)....
[ { "content": "\"\"\"Phillips RWL021 device.\"\"\"\nfrom zigpy.profiles import zha, zll\nfrom zigpy.quirks import CustomCluster, CustomDevice\nimport zigpy.types as t\nfrom zigpy.zcl.clusters.general import (\n Basic,\n BinaryInput,\n Groups,\n Identify,\n LevelControl,\n OnOff,\n Ota,\n ...
[ { "content": "\"\"\"Phillips RWL021 device.\"\"\"\nfrom zigpy.profiles import zha, zll\nfrom zigpy.quirks import CustomCluster, CustomDevice\nimport zigpy.types as t\nfrom zigpy.zcl.clusters.general import (\n Basic,\n BinaryInput,\n Groups,\n Identify,\n LevelControl,\n OnOff,\n Ota,\n ...
diff --git a/zhaquirks/philips/rwl021.py b/zhaquirks/philips/rwl021.py index 15247ea4c2..bfbf32a038 100644 --- a/zhaquirks/philips/rwl021.py +++ b/zhaquirks/philips/rwl021.py @@ -114,7 +114,7 @@ class PhilipsRWL021(CustomDevice): device_automation_triggers = { (SHORT_PRESS, TURN_ON): {COMMAND: COMMAND_O...
pypa__pip-5136
Name normalization issue in 10.0.0b1 yields false-positive installation warnings * Pip version: 10.0.0b1 * Python version: 2.7.14 * Operating system: Linux ### Description: The new pip check mode used during installation wrongly reports that packages are not being installed. This only happens for package contai...
[ { "content": "\"\"\"Validation of dependencies of packages\n\"\"\"\n\nfrom collections import namedtuple\n\nfrom pip._vendor.packaging.utils import canonicalize_name\n\nfrom pip._internal.operations.prepare import make_abstract_dist\n\nfrom pip._internal.utils.misc import get_installed_distributions\nfrom pip._...
[ { "content": "\"\"\"Validation of dependencies of packages\n\"\"\"\n\nfrom collections import namedtuple\n\nfrom pip._vendor.packaging.utils import canonicalize_name\n\nfrom pip._internal.operations.prepare import make_abstract_dist\n\nfrom pip._internal.utils.misc import get_installed_distributions\nfrom pip._...
diff --git a/news/5134.bugfix b/news/5134.bugfix new file mode 100644 index 00000000000..bec3b88722d --- /dev/null +++ b/news/5134.bugfix @@ -0,0 +1 @@ +Prevent false-positive installation warnings due to incomplete name normalizaton. diff --git a/src/pip/_internal/operations/check.py b/src/pip/_internal/operations/che...
sonic-net__sonic-utilities-1077
pfcwd show stats crash with invalid queue name <!-- If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead. I...
[ { "content": "#! /usr/bin/python -u\n\nimport click\nimport swsssdk\nimport os\nfrom tabulate import tabulate\nfrom natsort import natsorted\n\n# Default configuration\nDEFAULT_DETECTION_TIME = 200\nDEFAULT_RESTORATION_TIME = 200\nDEFAULT_POLL_INTERVAL = 200\nDEFAULT_PORT_NUM = 32\nDEFAULT_ACTION = 'drop'\n\nST...
[ { "content": "#! /usr/bin/python -u\n\nimport click\nimport swsssdk\nimport os\nfrom tabulate import tabulate\nfrom natsort import natsorted\n\n# Default configuration\nDEFAULT_DETECTION_TIME = 200\nDEFAULT_RESTORATION_TIME = 200\nDEFAULT_POLL_INTERVAL = 200\nDEFAULT_PORT_NUM = 32\nDEFAULT_ACTION = 'drop'\n\nST...
diff --git a/pfcwd/main.py b/pfcwd/main.py index 6f01b63cbf..916cac2522 100644 --- a/pfcwd/main.py +++ b/pfcwd/main.py @@ -83,6 +83,8 @@ def stats(empty, queues): for queue in queues: stats_list = [] queue_oid = db.get(db.COUNTERS_DB, 'COUNTERS_QUEUE_NAME_MAP', queue) + if queue_oid is Non...
microsoft__Qcodes-5612
print_readable_snapshot() of instrument modules without parameters broken. ### `print_readable_snapshot()` of instrument modules without parameters fails. ### Steps to reproduce ```python from qcodes import instrument bar = instrument.Instrument('bar') foo = instrument.InstrumentModule(bar, 'foo') bar.add_submo...
[ { "content": "\"\"\"Base class for Instrument and InstrumentModule\"\"\"\nfrom __future__ import annotations\n\nimport collections.abc\nimport logging\nimport warnings\nfrom collections.abc import Callable, Mapping, Sequence\nfrom typing import TYPE_CHECKING, Any, ClassVar\n\nimport numpy as np\n\nfrom qcodes.l...
[ { "content": "\"\"\"Base class for Instrument and InstrumentModule\"\"\"\nfrom __future__ import annotations\n\nimport collections.abc\nimport logging\nimport warnings\nfrom collections.abc import Callable, Mapping, Sequence\nfrom typing import TYPE_CHECKING, Any, ClassVar\n\nimport numpy as np\n\nfrom qcodes.l...
diff --git a/src/qcodes/instrument/instrument_base.py b/src/qcodes/instrument/instrument_base.py index fe94dda7456..02a5f962f05 100644 --- a/src/qcodes/instrument/instrument_base.py +++ b/src/qcodes/instrument/instrument_base.py @@ -396,6 +396,8 @@ def print_readable_snapshot( snapshot = self.snapshot(update=u...
pyodide__pyodide-1538
Remove loadPackagesFromImports from runPythonAsync? This would be a backwards incompatible API change but I think it's for the best.
[ { "content": "\"\"\"\nVarious common utilities for testing.\n\"\"\"\n\nimport contextlib\nimport multiprocessing\nimport textwrap\nimport tempfile\nimport time\nimport os\nimport pathlib\nimport queue\nimport sys\nimport shutil\n\nimport pytest\n\nROOT_PATH = pathlib.Path(__file__).parents[0].resolve()\nTEST_PA...
[ { "content": "\"\"\"\nVarious common utilities for testing.\n\"\"\"\n\nimport contextlib\nimport multiprocessing\nimport textwrap\nimport tempfile\nimport time\nimport os\nimport pathlib\nimport queue\nimport sys\nimport shutil\n\nimport pytest\n\nROOT_PATH = pathlib.Path(__file__).parents[0].resolve()\nTEST_PA...
diff --git a/conftest.py b/conftest.py index abac22e5dae..d7d60130886 100644 --- a/conftest.py +++ b/conftest.py @@ -181,6 +181,7 @@ def run(self, code): def run_async(self, code): return self.run_js( f""" + await pyodide.loadPackagesFromImports({code!r}) let result = ...
cocotb__cocotb-1882
[Riviera-Pro] Simulator crash in test_vhdl_access.port_not_hierarchy Riviera-PRO 2019.10 on linux64 crashes in the test_vhdl_access.port_not_hierarchy test. Could be related to #1854. ``` $ make -C ~/src/cocotb/tests/test_cases/test_vhdl_access SIM=riviera COCOTB_REDUCED_LOG_FMT=1 clean results.xml # COUT: ...
[ { "content": "# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistributions of...
[ { "content": "# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistributions of...
diff --git a/cocotb/__init__.py b/cocotb/__init__.py index fd372ab535..b03cb07ff0 100644 --- a/cocotb/__init__.py +++ b/cocotb/__init__.py @@ -183,8 +183,8 @@ def _initialise_testbench(argv_): from cocotb import simulator global SIM_NAME, SIM_VERSION - SIM_NAME = simulator.get_simulator_product() - SI...
spack__spack-10984
Installation Issue: bowtie build error ### Steps to reproduce the issue ```console [centos] ~: spack install bowtie ==> Installing bowtie ==> Searching for binary cache of bowtie ==> Warning: No Spack mirrors are currently configured ==> No binary for bowtie found: installing from source ==> Fetching https://g...
[ { "content": "# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack import *\n\n\nclass Bowtie(MakefilePackage):\n \"\"\"Bowtie is an ultrafast, memo...
[ { "content": "# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack import *\n\n\nclass Bowtie(MakefilePackage):\n \"\"\"Bowtie is an ultrafast, memo...
diff --git a/var/spack/repos/builtin/packages/bowtie/package.py b/var/spack/repos/builtin/packages/bowtie/package.py index 021b50c4777877..3d3bf619a53f64 100644 --- a/var/spack/repos/builtin/packages/bowtie/package.py +++ b/var/spack/repos/builtin/packages/bowtie/package.py @@ -38,6 +38,7 @@ class Bowtie(MakefilePackag...
mdn__kuma-1792
Delete templates used in the old design, replace them with redesign-specific templates (like profile_redesign.html)
[ { "content": "from django.conf import settings\nfrom django.core.paginator import Paginator\nfrom django.shortcuts import get_object_or_404, render\nfrom django.http import (HttpResponseRedirect, HttpResponseForbidden)\n\nfrom devmo.urlresolvers import reverse\n\nimport constance.config\nimport basket\nfrom tag...
[ { "content": "from django.conf import settings\nfrom django.core.paginator import Paginator\nfrom django.shortcuts import get_object_or_404, render\nfrom django.http import (HttpResponseRedirect, HttpResponseForbidden)\n\nfrom devmo.urlresolvers import reverse\n\nimport constance.config\nimport basket\nfrom tag...
diff --git a/apps/devmo/templates/devmo/profile.html b/apps/devmo/templates/devmo/profile.html index eadda28fb76..ab386ef540c 100644 --- a/apps/devmo/templates/devmo/profile.html +++ b/apps/devmo/templates/devmo/profile.html @@ -18,7 +18,6 @@ {% block site_js %} {{ super() }} - {{ js('jquery-ui') }} {{ ...
ipython__ipython-11722
Missing ship numpy testing decorator ``` Traceback (most recent call last): File "/Users/mbussonnier/dev/cpython/test/bin/iptest", line 6, in <module> from IPython.testing.iptestcontroller import main File "/Users/mbussonnier/dev/cpython/test/lib/python3.8/site-packages/IPython/testing/iptestcontroller.py",...
[ { "content": "try:\n from numpy.testing import *\n from numpy.testing import dec\n from numpy.testing.noseclasses import KnownFailure\nexcept ImportError:\n from ._decorators import *\n try:\n from ._numpy_testing_noseclasses import KnownFailure\n except ImportError:\n pass\n", ...
[ { "content": "try:\n from numpy.testing.noseclasses import KnownFailure, knownfailureif\nexcept ImportError:\n from ._decorators import knownfailureif\n try:\n from ._numpy_testing_noseclasses import KnownFailure\n except ImportError:\n pass\n", "path": "IPython/external/decorators...
diff --git a/IPython/core/tests/test_completer.py b/IPython/core/tests/test_completer.py index 5876cc4151c..204c81c105a 100644 --- a/IPython/core/tests/test_completer.py +++ b/IPython/core/tests/test_completer.py @@ -183,7 +183,7 @@ def test_forward_unicode_completion(): nt.assert_equal(matches[0], 'Ⅴ') @nt.not...
graphql-python__graphene-django-401
AttributeError: 'ForeignKey' object has no attribute 'rel' As I was following the docs for [Graphene and Django Tutorial using Relay](http://docs.graphene-python.org/projects/django/en/latest/tutorial-relay/) I ran into this error (relevant part): ``` Traceback (most recent call last): File "/home/eyal0803/Project...
[ { "content": "import itertools\n\nfrom django.db import models\nfrom django.utils.text import capfirst\nfrom django_filters import Filter, MultipleChoiceFilter\nfrom django_filters.filterset import BaseFilterSet, FilterSet\nfrom django_filters.filterset import FILTER_FOR_DBFIELD_DEFAULTS\n\nfrom graphql_relay.n...
[ { "content": "import itertools\n\nfrom django.db import models\nfrom django.utils.text import capfirst\nfrom django_filters import Filter, MultipleChoiceFilter\nfrom django_filters.filterset import BaseFilterSet, FilterSet\nfrom django_filters.filterset import FILTER_FOR_DBFIELD_DEFAULTS\n\nfrom graphql_relay.n...
diff --git a/graphene_django/filter/filterset.py b/graphene_django/filter/filterset.py index c716b05cd..3d756d7ef 100644 --- a/graphene_django/filter/filterset.py +++ b/graphene_django/filter/filterset.py @@ -57,7 +57,7 @@ def filter_for_reverse_field(cls, f, name): Global IDs (the default implementation expec...
saleor__saleor-541
Drop cart partitioner from cart view Currently the cart is partitioned every time it'd displayed. We really only need to do this when creating an order/payment. We do call it every time the cart is rendered but we then merge all of the partitions back into a single list. - [ ] identify places where cart partitioner is ...
[ { "content": "from __future__ import unicode_literals\nfrom babeldjango.templatetags.babel import currencyfmt\n\nfrom django.contrib import messages\nfrom django.http import JsonResponse\nfrom django.shortcuts import redirect\nfrom django.template.response import TemplateResponse\nfrom django.utils.translation ...
[ { "content": "from __future__ import unicode_literals\nfrom babeldjango.templatetags.babel import currencyfmt\n\nfrom django.contrib import messages\nfrom django.http import JsonResponse\nfrom django.shortcuts import redirect\nfrom django.template.response import TemplateResponse\nfrom django.utils.translation ...
diff --git a/saleor/cart/views.py b/saleor/cart/views.py index 32dee029377..fd2926d9280 100755 --- a/saleor/cart/views.py +++ b/saleor/cart/views.py @@ -48,7 +48,6 @@ def index(request, product_id=None): if request.is_ajax(): response = {'error': form.errors} return JsonRe...
pyinstaller__pyinstaller-6097
pkg_resources.DistributionNotFound on 4.4 I'm using PyInstaller with [azurerm](https://pypi.org/project/azurerm/) module in my company, we initially had an issue that was solved by submitting a hook [hook-azurerm.py](https://github.com/pyinstaller/pyinstaller-hooks-contrib/blob/master/src/_pyinstaller_hooks_contrib/hoo...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2021, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2021, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
diff --git a/PyInstaller/depend/analysis.py b/PyInstaller/depend/analysis.py index a3a15a8692..b6a84f7da9 100644 --- a/PyInstaller/depend/analysis.py +++ b/PyInstaller/depend/analysis.py @@ -809,7 +809,7 @@ def _metadata_from(self, package, methods=(), recursive_methods=()) -> set: for method in methods: ...
jschneier__django-storages-125
GSResponseError: 400 Bad Request Every time I try to `python manage.py collect static`, I get an error. ``` (venv)Dereks-MBP:pickle_django dcgoss$ python manage.py collectstatic --noinput Traceback (most recent call last): File "manage.py", line 11, in <module> execute_from_command_line(sys.arg) File "/Users/d...
[ { "content": "from django.core.exceptions import ImproperlyConfigured\n\nfrom storages.backends.s3boto import S3BotoStorage, S3BotoStorageFile\nfrom storages.utils import setting\nfrom storages.compat import BytesIO\n\ntry:\n from boto.gs.connection import GSConnection, SubdomainCallingFormat\n from boto....
[ { "content": "from django.core.exceptions import ImproperlyConfigured\n\nfrom storages.backends.s3boto import S3BotoStorage, S3BotoStorageFile\nfrom storages.utils import setting\nfrom storages.compat import BytesIO\n\ntry:\n from boto.gs.connection import GSConnection, SubdomainCallingFormat\n from boto....
diff --git a/storages/backends/gs.py b/storages/backends/gs.py index 9899bba41..2ee2ccf79 100644 --- a/storages/backends/gs.py +++ b/storages/backends/gs.py @@ -63,6 +63,7 @@ class GSBotoStorage(S3BotoStorage): 'application/x-javascript', )) url_protocol = setting('GS_URL_PROTOCOL', 'http:') + hos...
cowrie__cowrie-994
free -m command results in stack trace and cowrie freezes From within cowrie (docker current 7 Dec 2018), when the command "free -m" is run it results a stack trace errors shown below. Cowrie freezes., and since many bots use free as info gathering, cowry may miss everything subsequent to this command. Environment:...
[ { "content": "# Copyright (c) 2015 Michel Oosterhof <michel@oosterhof.net>\n# All rights reserved.\n\n\"\"\"\nThis module ...\n\"\"\"\n\nfrom __future__ import absolute_import, division\n\nimport getopt\n\nfrom cowrie.shell.command import HoneyPotCommand\n\ncommands = {}\n\nFREE_OUTPUT = \"\"\" tot...
[ { "content": "# Copyright (c) 2015 Michel Oosterhof <michel@oosterhof.net>\n# All rights reserved.\n\n\"\"\"\nThis module ...\n\"\"\"\n\nfrom __future__ import absolute_import, division\n\nimport getopt\n\nfrom cowrie.shell.command import HoneyPotCommand\n\ncommands = {}\n\nFREE_OUTPUT = \"\"\" tot...
diff --git a/src/cowrie/commands/free.py b/src/cowrie/commands/free.py index e710bab19b..82e0345bc7 100644 --- a/src/cowrie/commands/free.py +++ b/src/cowrie/commands/free.py @@ -57,7 +57,7 @@ def do_free(self, fmt='kilobytes'): if fmt == 'megabytes': # Transform KB to MB - for key, v...
liqd__a4-opin-831
Add indication for character limitation in the description window of the participation tab. One of the Pilots noticed this. Is it possible to add an inline manual information to indicate all character limitations? That could be helpful for the users. Thank you :) ![grafik](https://cloud.githubusercontent.com/assets/24...
[ { "content": "import collections\nimport datetime\nimport re\nimport time\n\nimport parler\nfrom django import forms\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.core.validators import RegexValidator\nfrom django.db.models import loading\nfrom django.forms i...
[ { "content": "import collections\nimport datetime\nimport re\nimport time\n\nimport parler\nfrom django import forms\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.core.validators import RegexValidator\nfrom django.db.models import loading\nfrom django.forms i...
diff --git a/euth/dashboard/forms.py b/euth/dashboard/forms.py index 4d37baa16..565c2484a 100644 --- a/euth/dashboard/forms.py +++ b/euth/dashboard/forms.py @@ -171,6 +171,11 @@ class Meta: 'weight': forms.HiddenInput() } + help_texts = { + 'name': _('It should be max. 80 chara...
python__mypy-14842
Wrong recommendation to install `types-backports` When I import `backports.zoneinfo`, I get ``` src/test_checks.py:29:1: error: Library stubs not installed for "backports.zoneinfo" [import] src/test_checks.py:29:1: note: Hint: "python3 -m pip install types-backports" src/test_checks.py:29:1: note: (or run "mypy ...
[ { "content": "from __future__ import annotations\n\n\ndef is_legacy_bundled_package(prefix: str) -> bool:\n return prefix in legacy_bundled_packages\n\n\ndef approved_stub_package_exists(prefix: str) -> bool:\n return is_legacy_bundled_package(prefix) or prefix in non_bundled_packages\n\n\ndef stub_packag...
[ { "content": "from __future__ import annotations\n\n\ndef is_legacy_bundled_package(prefix: str) -> bool:\n return prefix in legacy_bundled_packages\n\n\ndef approved_stub_package_exists(prefix: str) -> bool:\n return is_legacy_bundled_package(prefix) or prefix in non_bundled_packages\n\n\ndef stub_packag...
diff --git a/mypy/stubinfo.py b/mypy/stubinfo.py index 31e2b34d9fe6..e6e549ad280f 100644 --- a/mypy/stubinfo.py +++ b/mypy/stubinfo.py @@ -20,8 +20,6 @@ def stub_package_name(prefix: str) -> str: # Package name can have one or two components ('a' or 'a.b'). legacy_bundled_packages = { "aiofiles": "types-aiofiles...
docker__docker-py-1189
NpipeSocket.makefile crashes when bufsize < 0 **Original report**: https://github.com/docker/compose/issues/3901#issuecomment-244828701 Negative `bufsize` should be handled.
[ { "content": "import functools\nimport io\n\nimport win32file\nimport win32pipe\n\ncSECURITY_SQOS_PRESENT = 0x100000\ncSECURITY_ANONYMOUS = 0\ncPIPE_READMODE_MESSAGE = 2\n\n\ndef check_closed(f):\n @functools.wraps(f)\n def wrapped(self, *args, **kwargs):\n if self._closed:\n raise Runti...
[ { "content": "import functools\nimport io\n\nimport win32file\nimport win32pipe\n\ncSECURITY_SQOS_PRESENT = 0x100000\ncSECURITY_ANONYMOUS = 0\ncPIPE_READMODE_MESSAGE = 2\n\n\ndef check_closed(f):\n @functools.wraps(f)\n def wrapped(self, *args, **kwargs):\n if self._closed:\n raise Runti...
diff --git a/docker/transport/npipesocket.py b/docker/transport/npipesocket.py index 35418ef17..9010cebe1 100644 --- a/docker/transport/npipesocket.py +++ b/docker/transport/npipesocket.py @@ -94,7 +94,7 @@ def makefile(self, mode=None, bufsize=None): if mode.strip('b') != 'r': raise NotImplemente...
google__turbinia-1054
FileArtifactExtraction Tasks failing From a recent run: ``` * FileArtifactExtractionTask: image_export.py failed for artifact TomcatFiles - local_path not provided. * FileArtifactExtractionTask: image_export.py failed for artifact SshdConfigFile - local_path not provided. * FileArtifactExtractionTask: image_export....
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U...
diff --git a/turbinia/workers/artifact.py b/turbinia/workers/artifact.py index ea4e612a3..e5bac760d 100644 --- a/turbinia/workers/artifact.py +++ b/turbinia/workers/artifact.py @@ -27,7 +27,7 @@ class FileArtifactExtractionTask(TurbiniaTask): """Task to run image_export (log2timeline).""" - REQUIRED_STATES = [st...
ocf__ocfweb-45
Links in headings are broken on docs For example: https://dev.ocf.berkeley.edu/docs/faq/ ![](http://i.fluffy.cc/RDF2Pq9B402fmfJp1ghVd3p9pzvKSlmc.png) I think this is a side-effect of overreaching CSS rules intended for the link icons.
[ { "content": "import re\n\nimport mistune\nfrom django.core.urlresolvers import reverse\n\nfrom ocfweb.caching import lru_cache\n\n# tags of a format like: [[!meta title=\"Backups\"]]\nMETA_REGEX = re.compile('\\[\\[!meta ([a-z]+)=\"([^\"]*)\"\\]\\]')\n\n\nclass HtmlCommentsInlineLexerMixin:\n \"\"\"Strip HT...
[ { "content": "import re\n\nimport mistune\nfrom django.core.urlresolvers import reverse\n\nfrom ocfweb.caching import lru_cache\n\n# tags of a format like: [[!meta title=\"Backups\"]]\nMETA_REGEX = re.compile('\\[\\[!meta ([a-z]+)=\"([^\"]*)\"\\]\\]')\n\n\nclass HtmlCommentsInlineLexerMixin:\n \"\"\"Strip HT...
diff --git a/ocfweb/component/markdown.py b/ocfweb/component/markdown.py index 299dc608a..faec62d5b 100644 --- a/ocfweb/component/markdown.py +++ b/ocfweb/component/markdown.py @@ -127,7 +127,7 @@ def header(self, text, level, raw=None): self.toc.append((level, text, id)) self.toc_ids.add(id) - ...
liberapay__liberapay.com-979
Currency exchange rate between EUR and USD are mixed up If I give euros to an account using dollar as main currency, the currency rate gets mixed up somewhere. For instance if I give 5€, on the creator's page it only displays 4.05$ instead of 6.18$. Current exchange rate: * 5 EUR to USD: 6.18$ * 5 USD to EUR: 4.0...
[ { "content": "\"\"\"Teams are groups of participants.\n\"\"\"\nfrom __future__ import division, print_function, unicode_literals\n\nfrom collections import OrderedDict\nfrom statistics import median\n\nfrom mangopay.utils import Money\n\nfrom liberapay.constants import ZERO, TAKE_THROTTLING_THRESHOLD\nfrom libe...
[ { "content": "\"\"\"Teams are groups of participants.\n\"\"\"\nfrom __future__ import division, print_function, unicode_literals\n\nfrom collections import OrderedDict\nfrom statistics import median\n\nfrom mangopay.utils import Money\n\nfrom liberapay.constants import ZERO, TAKE_THROTTLING_THRESHOLD\nfrom libe...
diff --git a/liberapay/models/_mixin_team.py b/liberapay/models/_mixin_team.py index 0a86eeecb8..c6f17d526f 100644 --- a/liberapay/models/_mixin_team.py +++ b/liberapay/models/_mixin_team.py @@ -118,8 +118,7 @@ def set_take_for(self, member, take, recorder, check_max=True, cursor=None): if cur_take is None...
keras-team__keras-16277
ThresholdedReLU crashes when the input is a list **System information**. - Have I written custom code (as opposed to using a stock example script provided in Keras): Yes - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu - TensorFlow installed from (source or binary): binary - TensorFlow version (use...
[ { "content": "# Copyright 2015 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# Copyright 2015 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/keras/layers/activation/thresholded_relu.py b/keras/layers/activation/thresholded_relu.py index aa0e3d687341..caba366291cc 100644 --- a/keras/layers/activation/thresholded_relu.py +++ b/keras/layers/activation/thresholded_relu.py @@ -59,8 +59,8 @@ def __init__(self, theta=1.0, **kwargs): self.theta = ...
vispy__vispy-2223
scene.visuals.Graph is not working with directed = True I am trying to render an directed graph but I am getting the error. Code (based on [example from gallery](https://vispy.org/gallery/scene/graph.html#sphx-glr-gallery-scene-graph-py), I just set directed=True): ```py import sys import networkx as nx from...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\"\"\"\nGraph utilities\n===============\n\nA module containing several graph utility functions.\n\"\"\"\n\nimport numpy as np\n\ntry:\n...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\"\"\"\nGraph utilities\n===============\n\nA module containing several graph utility functions.\n\"\"\"\n\nimport numpy as np\n\ntry:\n...
diff --git a/vispy/visuals/graphs/util.py b/vispy/visuals/graphs/util.py index 0ecf11f566..30f88cbf25 100644 --- a/vispy/visuals/graphs/util.py +++ b/vispy/visuals/graphs/util.py @@ -89,7 +89,7 @@ def _straight_line_vertices(adjacency_mat, node_coords, directed=False): if directed: arrows = np.array(list(...
facebookresearch__habitat-lab-628
[BUG] FOV Is not properly set ## Habitat-Lab and Habitat-Sim versions Master ## 🐛 Bug The HFOV config value is ignored. During the recent heirarchical refactor, the FOV value was removed from the SensorSpec. Now it is not used at all by HabitatSimulator since it is not set by the SensorSpec or at runtime. ## St...
[ { "content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Dict,\n List,\n Optional,\n ...
[ { "content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Dict,\n List,\n Optional,\n ...
diff --git a/habitat/sims/habitat_simulator/habitat_simulator.py b/habitat/sims/habitat_simulator/habitat_simulator.py index f7b4162c7a..156a49ab8b 100644 --- a/habitat/sims/habitat_simulator/habitat_simulator.py +++ b/habitat/sims/habitat_simulator/habitat_simulator.py @@ -304,7 +304,6 @@ def create_sim_config( ...
cython__cython-3644
Support special binary methods ("__add__" etc.) as Python does I'm not sure if this is a bug report or a feature request, but as of cython 0.27.3 `__radd__`, `__rtruediv__` and other right side magic methods do not work: ```python In [1]: %load_ext Cython In [2]: %%cython ...: cdef class Example: ...: de...
[ { "content": "#\n# Cython - Compilation-wide options and pragma declarations\n#\n\nfrom __future__ import absolute_import\n\nimport os\n\nfrom Cython import Utils\n\n\nclass ShouldBeFromDirective(object):\n\n known_directives = []\n\n def __init__(self, options_name, directive_name=None, disallow=False):...
[ { "content": "#\n# Cython - Compilation-wide options and pragma declarations\n#\n\nfrom __future__ import absolute_import\n\nimport os\n\nfrom Cython import Utils\n\n\nclass ShouldBeFromDirective(object):\n\n known_directives = []\n\n def __init__(self, options_name, directive_name=None, disallow=False):...
diff --git a/Cython/Compiler/Options.py b/Cython/Compiler/Options.py index 6648f69df08..4b456b291de 100644 --- a/Cython/Compiler/Options.py +++ b/Cython/Compiler/Options.py @@ -178,7 +178,7 @@ def get_directive_defaults(): 'auto_pickle': None, 'cdivision': False, # was True before 0.12 'cdivision_warnin...
python__typeshed-9779
Change `ignore_missing_stub` default to `false`? I've been wondering about this. Possible reasons: 1. More and more stubs are "stubtest" complete (not counting pyright and mypy) 1.1. It should be relatively easy to "minimally complete" missing ones using stugben. Especially after the reduction of stubtest false-p...
[ { "content": "#!/usr/bin/env python3\n\n\"\"\"Script to generate unannotated baseline stubs using stubgen.\n\nBasic usage:\n$ python3 scripts/create_baseline_stubs.py <project on PyPI>\n\nRun with -h for more help.\n\"\"\"\n\nfrom __future__ import annotations\n\nimport argparse\nimport os\nimport re\nimport su...
[ { "content": "#!/usr/bin/env python3\n\n\"\"\"Script to generate unannotated baseline stubs using stubgen.\n\nBasic usage:\n$ python3 scripts/create_baseline_stubs.py <project on PyPI>\n\nRun with -h for more help.\n\"\"\"\n\nfrom __future__ import annotations\n\nimport argparse\nimport os\nimport re\nimport su...
diff --git a/scripts/create_baseline_stubs.py b/scripts/create_baseline_stubs.py index 49dcd1634474..ed28b8c61aa1 100755 --- a/scripts/create_baseline_stubs.py +++ b/scripts/create_baseline_stubs.py @@ -71,14 +71,7 @@ def create_metadata(stub_dir: str, version: str) -> None: return print(f"Writing {filena...
inventree__InvenTree-6300
Plugin with git, but no commits causes all plugins to fail to load ### Please verify that this bug has NOT been raised before. - [X] I checked and didn't find a similar issue ### Describe the bug* Creating a plugin in `InvenTree/plugins/your_plugin/` with the proper files required, and then initiating a git repo in ...
[ { "content": "\"\"\"Helpers for plugin app.\"\"\"\n\nimport inspect\nimport logging\nimport os\nimport pathlib\nimport pkgutil\nimport sysconfig\nimport traceback\nfrom importlib.metadata import entry_points\n\nfrom django import template\nfrom django.conf import settings\nfrom django.core.exceptions import App...
[ { "content": "\"\"\"Helpers for plugin app.\"\"\"\n\nimport inspect\nimport logging\nimport os\nimport pathlib\nimport pkgutil\nimport sysconfig\nimport traceback\nfrom importlib.metadata import entry_points\n\nfrom django import template\nfrom django.conf import settings\nfrom django.core.exceptions import App...
diff --git a/InvenTree/part/fixtures/part.yaml b/InvenTree/part/fixtures/part.yaml index f50a48c42de7..5acba3e4c5e7 100644 --- a/InvenTree/part/fixtures/part.yaml +++ b/InvenTree/part/fixtures/part.yaml @@ -181,6 +181,7 @@ name: 'Green chair' description: 'A template chair part which is green' variant_of...
PennyLaneAI__pennylane-5455
[BUG] Hamiltonians defined using operator arithmetic queuing extra gates ### Expected behavior When defining ``` dev = qml.device('default.qubit', wires = [0,1]) def H(alpha, beta): coeffs = [alpha, beta] ops = [qml.PauliX(0) @ qml.PauliX(1),qml.PauliZ(0) @ qml.PauliZ(1)] return qml.dot(coeffs,ops) ...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unle...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unle...
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 621b094b7fb..5356fa8a73b 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -291,6 +291,9 @@ <h3>Bug fixes 🐛</h3> +* Using `@` with legacy Hamiltonian instances now properly de-queues the previously exi...
internetarchive__openlibrary-5157
Python 3.10 : Threading related deprecations ### Proposal & Constraints Ref : python/cpython#25174 Camelcase aliases have been deprecated and raise deprecation warning. getName -> access name directly currentThread -> current_thread ### Related files ``` openlibrary/openlibrary/core/cache.py: ...
[ { "content": "\"\"\"Caching utilities.\n\"\"\"\nimport random\nimport string\nimport time\nimport threading\nimport functools\n\nimport memcache\nimport json\nimport web\n\nfrom infogami import config\nfrom infogami.utils import stats\n\nfrom openlibrary.utils import olmemcache\nfrom openlibrary.utils.dateutil ...
[ { "content": "\"\"\"Caching utilities.\n\"\"\"\nimport random\nimport string\nimport time\nimport threading\nimport functools\n\nimport memcache\nimport json\nimport web\n\nfrom infogami import config\nfrom infogami.utils import stats\n\nfrom openlibrary.utils import olmemcache\nfrom openlibrary.utils.dateutil ...
diff --git a/openlibrary/core/cache.py b/openlibrary/core/cache.py index ee10eeadb21..b455b5848a0 100644 --- a/openlibrary/core/cache.py +++ b/openlibrary/core/cache.py @@ -140,7 +140,7 @@ def _update_async_worker(self, *args, **kw): self.update(*args, **kw) finally: # Remove current ...
beetbox__beets-2215
mpdstats: Crash when searching by `last_played` field ### Problem Running this command in verbose (`-vv`) mode: ``` sh $ beet -vv list 'last_played:2015..' ``` Led to this problem: ``` user configuration: ~/.config/beets/config.yaml data directory: ~/.config/beets plugin paths: /usr/local/bin/wlg Sending event: plu...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
diff --git a/beets/dbcore/query.py b/beets/dbcore/query.py index 3710d55c22..d27897e699 100644 --- a/beets/dbcore/query.py +++ b/beets/dbcore/query.py @@ -628,6 +628,8 @@ def __init__(self, field, pattern, fast=True): self.interval = DateInterval.from_periods(start, end) def match(self, item): + ...
pyca__cryptography-2450
EllipticCurvePrivateNumbers and EllipticCurvePublicNumbers should have an __repr__
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport abc\n\nimport six\n\nfrom cryptography...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport abc\n\nimport six\n\nfrom cryptography...
diff --git a/src/cryptography/hazmat/primitives/asymmetric/ec.py b/src/cryptography/hazmat/primitives/asymmetric/ec.py index 7782133c8b85..eda7df0cd1dc 100644 --- a/src/cryptography/hazmat/primitives/asymmetric/ec.py +++ b/src/cryptography/hazmat/primitives/asymmetric/ec.py @@ -302,6 +302,12 @@ def __eq__(self, other):...
CTFd__CTFd-1726
Incorrect update alert in Admin panel <!-- If this is a bug report please fill out the template below. If this is a feature request please describe the behavior that you'd like to see. --> **Environment**: - CTFd Version/Commit: 3.1.1 - Operating System: Ubuntu 20.4 - Web Browser and Version: Chrome 85 ...
[ { "content": "import sys\nimport time\nfrom distutils.version import StrictVersion\nfrom platform import python_version\n\nimport requests\nfrom flask import current_app as app\n\nfrom CTFd.models import Challenges, Teams, Users, db\nfrom CTFd.utils import get_app_config, get_config, set_config\nfrom CTFd.utils...
[ { "content": "import sys\nimport time\nfrom distutils.version import StrictVersion\nfrom platform import python_version\n\nimport requests\nfrom flask import current_app as app\n\nfrom CTFd.models import Challenges, Teams, Users, db\nfrom CTFd.utils import get_app_config, get_config, set_config\nfrom CTFd.utils...
diff --git a/CTFd/utils/updates/__init__.py b/CTFd/utils/updates/__init__.py index 9e0bc8d4f..c731331fa 100644 --- a/CTFd/utils/updates/__init__.py +++ b/CTFd/utils/updates/__init__.py @@ -53,7 +53,7 @@ def update_check(force=False): "channel": app.CHANNEL, } check = requests....
pyro-ppl__pyro-3101
`poutine.block` does not work in Python 3.10 ### Reproducible code ```python from pyro import poutine class A: @poutine.block def run(self): return 1 a = A() a.run() # error ``` This causes the issue https://github.com/pyro-ppl/pyro/issues/3018 [Support for Python 3.10] MCMC example i...
[ { "content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom contextlib import contextmanager\nfrom functools import partial\n\nfrom .runtime import _PYRO_STACK\n\n\ndef _context_wrap(context, fn, *args, **kwargs):\n with context:\n return fn(*args, **...
[ { "content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom contextlib import contextmanager\nfrom functools import partial\n\nfrom .runtime import _PYRO_STACK\n\n\ndef _context_wrap(context, fn, *args, **kwargs):\n with context:\n return fn(*args, **...
diff --git a/pyro/poutine/messenger.py b/pyro/poutine/messenger.py index 457da3aba9..558fa3dcd7 100644 --- a/pyro/poutine/messenger.py +++ b/pyro/poutine/messenger.py @@ -18,6 +18,14 @@ class _bound_partial(partial): support class methods as arguments to handlers. """ + # Use '__slots__' for func to avoi...
mitmproxy__mitmproxy-4334
Mitmdump option "--modify-headers" not working if any script added using "--scripts". #### Problem Description When using mitmdump with script specified using `--scripts` option - `--modify-headers` option is ignored. #### Steps to reproduce the behavior: **1.** Launch `mitmdump` with `--modify-headers`. My ex...
[ { "content": "import re\nimport typing\nfrom pathlib import Path\n\nfrom mitmproxy import ctx, exceptions, flowfilter, http\nfrom mitmproxy.net.http import Headers\nfrom mitmproxy.utils import strutils\nfrom mitmproxy.utils.spec import parse_spec\n\n\nclass ModifySpec(typing.NamedTuple):\n matches: flowfilte...
[ { "content": "import re\nimport typing\nfrom pathlib import Path\n\nfrom mitmproxy import ctx, exceptions, flowfilter, http\nfrom mitmproxy.net.http import Headers\nfrom mitmproxy.utils import strutils\nfrom mitmproxy.utils.spec import parse_spec\n\n\nclass ModifySpec(typing.NamedTuple):\n matches: flowfilte...
diff --git a/mitmproxy/addons/modifyheaders.py b/mitmproxy/addons/modifyheaders.py index 2b98d98292..da56f5784a 100644 --- a/mitmproxy/addons/modifyheaders.py +++ b/mitmproxy/addons/modifyheaders.py @@ -63,8 +63,8 @@ def load(self, loader): ) def configure(self, updated): - self.replacements = []...
WeblateOrg__weblate-3679
Subversion svn+ssh protocol doesn't use ssh key Subversion protocol svn+shh doesn't try the publickey method I've tried to use the url like we use it in other svn clients, eg: svn+ssh://username@svnserver.example.com/repository/ Weblate connects to the svn server via ssh, but doesn't try to use the ssh key (publ...
[ { "content": "#\n# Copyright © 2012 - 2020 Michal Čihař <michal@cihar.com>\n#\n# This file is part of Weblate <https://weblate.org/>\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,...
[ { "content": "#\n# Copyright © 2012 - 2020 Michal Čihař <michal@cihar.com>\n#\n# This file is part of Weblate <https://weblate.org/>\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,...
diff --git a/weblate/vcs/base.py b/weblate/vcs/base.py index 12066b200178..317a092b9c60 100644 --- a/weblate/vcs/base.py +++ b/weblate/vcs/base.py @@ -142,7 +142,11 @@ def resolve_symlinks(self, path): def _getenv(): """Generate environment for process execution.""" return get_clean_env( - ...
ocadotechnology__codeforlife-portal-524
Prompt text required for the Add Students sections Currently there is no prompt text in or near the input box for students names. This section appears on the Onboarding and also Teacher Dashboard sections of the website. See current page here: ![screen shot 2017-06-13 at 09 56 52](https://user-images.githubuserc...
[ { "content": "# -*- coding: utf-8 -*-\n# Code for Life\n#\n# Copyright (C) 2017, Ocado Innovation Limited\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as\n# published by the Free Software Foundation, either version 3 of...
[ { "content": "# -*- coding: utf-8 -*-\n# Code for Life\n#\n# Copyright (C) 2017, Ocado Innovation Limited\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as\n# published by the Free Software Foundation, either version 3 of...
diff --git a/portal/forms/teach.py b/portal/forms/teach.py index 98abab54d1..be14ea7d40 100644 --- a/portal/forms/teach.py +++ b/portal/forms/teach.py @@ -474,7 +474,10 @@ def clean(self): class StudentCreationForm(forms.Form): - names = forms.CharField(label='names', widget=forms.Textarea) + names = forms.C...
buildbot__buildbot-1441
fix E741 on test_process_build recent pep8 does not like l (the letter) as a variable because some fonts make it undistinguishable from 1 (the number).
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n...
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n...
diff --git a/master/buildbot/status/web/slaves.py b/master/buildbot/status/web/slaves.py index 82effde57152..4c0d6507dc16 100644 --- a/master/buildbot/status/web/slaves.py +++ b/master/buildbot/status/web/slaves.py @@ -114,8 +114,8 @@ def content(self, request, ctx): current_builds.append(self.get_...
pypa__pipenv-60
"pipenv check" checks against the host Python instance rather than the venv's For example, if I am running `pipenv` under Python 2.7, and have a Pipfile with: ``` [requires] python_version = "3.5" ``` `pipenv check` will fail even if the project's Python version is correct.
[ { "content": "import codecs\nimport json\nimport os\nimport sys\nimport distutils.spawn\nimport shutil\nimport signal\n\n# Backport required for earlier versions of Python.\nif sys.version_info < (3, 3):\n from backports.shutil_get_terminal_size import get_terminal_size\nelse:\n from shutil import get_ter...
[ { "content": "import codecs\nimport json\nimport os\nimport sys\nimport distutils.spawn\nimport shutil\nimport signal\n\n# Backport required for earlier versions of Python.\nif sys.version_info < (3, 3):\n from backports.shutil_get_terminal_size import get_terminal_size\nelse:\n from shutil import get_ter...
diff --git a/pipenv/cli.py b/pipenv/cli.py index 807b2c6a51..43aa179f6d 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -546,7 +546,7 @@ def check(): click.echo(crayons.yellow('Checking PEP 508 requirements...')) # Run the PEP 508 checker in the virtualenv. - c = delegator.run('{0} {1}'.format(which('p...
ansible-collections__community.vmware-1813
Misspelled title <!--- Verify first that your issue 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 <!--- Explain the problem briefly below --> The...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2018, Christian Kotte <christian.kotte@gmx.de>\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 a...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2018, Christian Kotte <christian.kotte@gmx.de>\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 a...
diff --git a/plugins/modules/vmware_dvswitch_uplink_pg.py b/plugins/modules/vmware_dvswitch_uplink_pg.py index e291237c42..8d9f308a36 100644 --- a/plugins/modules/vmware_dvswitch_uplink_pg.py +++ b/plugins/modules/vmware_dvswitch_uplink_pg.py @@ -12,7 +12,7 @@ DOCUMENTATION = r''' --- module: vmware_dvswitch_uplink_...
spack__spack-4973
Cannot install gcc: C compiler cannot create executables When trying to install gcc using spack I get an error when compiling the actual gcc source code. I get the same error for multiple machines (our cluster and my own private laptop) and for at least versions 6.1.0 and 5.4.0. The error is `C compiler cannot create ...
[ { "content": "##############################################################################\n# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All righ...
[ { "content": "##############################################################################\n# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All righ...
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index e9b9c93dd649ec..0d31ef0dfc631a 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -69,7 +69,7 @@ class Gcc(AutotoolsPackage): ...
jazzband__pip-tools-1540
Generating hashes from files for incompatible wheels isn't working <!-- Describe the issue briefly here. --> #### Environment Versions 1. OS Type: macOS 1. Python version: 3.9.6 1. pip version: 21.3.1 1. pip-tools version: 6.4.0 #### Steps to replicate (These replication steps require that you run this o...
[ { "content": "import contextlib\nimport hashlib\nimport itertools\nimport logging\nimport optparse\nimport os\nfrom contextlib import contextmanager\nfrom shutil import rmtree\nfrom typing import (\n Any,\n BinaryIO,\n ContextManager,\n Dict,\n Iterator,\n List,\n NamedTuple,\n Optional,...
[ { "content": "import contextlib\nimport hashlib\nimport itertools\nimport logging\nimport optparse\nimport os\nfrom contextlib import contextmanager\nfrom shutil import rmtree\nfrom typing import (\n Any,\n BinaryIO,\n ContextManager,\n Dict,\n Iterator,\n List,\n NamedTuple,\n Optional,...
diff --git a/piptools/repositories/pypi.py b/piptools/repositories/pypi.py index 7ec300c7a..2d7d247c6 100644 --- a/piptools/repositories/pypi.py +++ b/piptools/repositories/pypi.py @@ -436,6 +436,10 @@ def _wheel_support_index_min(self: Wheel, tags: List[Tag]) -> int: Wheel.support_index_min = _wheel_support_i...
lutris__lutris-707
AttributeError: 'winesteam' object has no attribute 'get_xinput_path' I'm getting this when trying to launch Dark Souls. Running on Arch 64 bit. Lutris 0.4.14. I searched and couldn't find any similar issues. I tried turning on and off the xinput related runner options but it had no effect. ``` Traceback (most rece...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Runner for the Steam platform\"\"\"\nimport os\nimport time\nimport shlex\nimport subprocess\n\nfrom lutris import settings\nfrom lutris.gui.dialogs import DownloadDialog\nfrom lutris.runners import wine\nfrom lutris.thread import LutrisThread\nfrom lutris.util.proce...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Runner for the Steam platform\"\"\"\nimport os\nimport time\nimport shlex\nimport subprocess\n\nfrom lutris import settings\nfrom lutris.gui.dialogs import DownloadDialog\nfrom lutris.runners import wine\nfrom lutris.thread import LutrisThread\nfrom lutris.util.proce...
diff --git a/lutris/runners/winesteam.py b/lutris/runners/winesteam.py index 42d3dc1d87..673925a74e 100644 --- a/lutris/runners/winesteam.py +++ b/lutris/runners/winesteam.py @@ -397,9 +397,6 @@ def play(self): launch_info = {} launch_info['env'] = self.get_env(full=False) - if self.runner_co...
plotly__plotly.py-2103
Effect on JupyterLab bundle size Hi! I've been looking at the effect of the plotly jupyterlab extensions on the final bundle size, and I've made these observations: - The plotly.js part for a prod build is roughly 17 MB. - Both `plotly.js/dist/plotly.js` and `plotly.js/dist/plotly.min.js` gets included in the fina...
[ { "content": "from setuptools import setup, Command\nfrom setuptools.command.egg_info import egg_info\nfrom subprocess import check_call\nfrom distutils import log\nimport versioneer\n\nimport os\nimport sys\nimport platform\nimport json\n\n\nhere = os.path.dirname(os.path.abspath(__file__))\nproject_root = os....
[ { "content": "from setuptools import setup, Command\nfrom setuptools.command.egg_info import egg_info\nfrom subprocess import check_call\nfrom distutils import log\nimport versioneer\n\nimport os\nimport sys\nimport platform\nimport json\n\n\nhere = os.path.dirname(os.path.abspath(__file__))\nproject_root = os....
diff --git a/packages/javascript/jupyterlab-plotly/package-lock.json b/packages/javascript/jupyterlab-plotly/package-lock.json index d91c705fdd7..d1cce7dd255 100644 --- a/packages/javascript/jupyterlab-plotly/package-lock.json +++ b/packages/javascript/jupyterlab-plotly/package-lock.json @@ -14,6 +14,21 @@ "tu...
lutris__lutris-4095
White flash occurs when switching between sidebar rows ### Bug description There's an unpleasant white flash that occurs when switching between sidebar rows. It doesn't really break anything, but it's not classy. It's actually trying to accommodate a spinner that is sometimes displayed- it's useful to do this when ...
[ { "content": "\"\"\"Main window for the Lutris interface.\"\"\"\nimport os\nfrom collections import namedtuple\nfrom gettext import gettext as _\n\nfrom gi.repository import Gdk, Gio, GLib, GObject, Gtk\n\nfrom lutris import services, settings\nfrom lutris.database import categories as categories_db\nfrom lutri...
[ { "content": "\"\"\"Main window for the Lutris interface.\"\"\"\nimport os\nfrom collections import namedtuple\nfrom gettext import gettext as _\n\nfrom gi.repository import Gdk, Gio, GLib, GObject, Gtk\n\nfrom lutris import services, settings\nfrom lutris.database import categories as categories_db\nfrom lutri...
diff --git a/lutris/gui/lutriswindow.py b/lutris/gui/lutriswindow.py index d45ec2d773..4812d22974 100644 --- a/lutris/gui/lutriswindow.py +++ b/lutris/gui/lutriswindow.py @@ -564,7 +564,7 @@ def redraw_view(self): self.games_scrollwindow.add(self.view) self.view.show_all() - GLib.idle_add(sel...
getmoto__moto-1969
Listing CloudFormation stacks should include deleted stacks Using the AWS API directly returns stacks with a status `DELETE_COMPLETE`; using moto those stacks are not returned. The existing unit tests actually test for this incorrect behaviour: https://github.com/spulec/moto/blob/4a275cc/tests/test_cloudformation/t...
[ { "content": "from __future__ import unicode_literals\nfrom datetime import datetime\nimport json\nimport yaml\nimport uuid\n\nimport boto.cloudformation\nfrom moto.compat import OrderedDict\nfrom moto.core import BaseBackend, BaseModel\n\nfrom .parsing import ResourceMap, OutputMap\nfrom .utils import (\n g...
[ { "content": "from __future__ import unicode_literals\nfrom datetime import datetime\nimport json\nimport yaml\nimport uuid\n\nimport boto.cloudformation\nfrom moto.compat import OrderedDict\nfrom moto.core import BaseBackend, BaseModel\n\nfrom .parsing import ResourceMap, OutputMap\nfrom .utils import (\n g...
diff --git a/moto/cloudformation/models.py b/moto/cloudformation/models.py index e5ab7255d4a4..536931c25d9f 100644 --- a/moto/cloudformation/models.py +++ b/moto/cloudformation/models.py @@ -223,7 +223,11 @@ def describe_stacks(self, name_or_stack_id): return list(stacks) def list_stacks(self): - ...
cupy__cupy-379
UnicodeDecodeError in compiler.py Reported here: https://stackoverflow.com/questions/45473903/unicodedecodeerror-when-i-use-cuda-to-train-dataset Versions: - chainer (2.0.2) - cupy (1.0.2) It seems `nvcc` generated non-UTF8 output.
[ { "content": "import hashlib\nimport os\nimport re\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\n\nimport six\n\nfrom cupy.cuda import device\nfrom cupy.cuda import function\n\n\n_nvcc_version = None\n\n\ndef _get_nvcc_version():\n global _nvcc_version\n if _nvcc_version is None:\n ...
[ { "content": "import hashlib\nimport os\nimport re\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\n\nimport six\n\nfrom cupy.cuda import device\nfrom cupy.cuda import function\n\n\n_nvcc_version = None\n\n\ndef _get_nvcc_version():\n global _nvcc_version\n if _nvcc_version is None:\n ...
diff --git a/cupy/cuda/compiler.py b/cupy/cuda/compiler.py index 68fca830c9e..655bda9b4b9 100644 --- a/cupy/cuda/compiler.py +++ b/cupy/cuda/compiler.py @@ -93,9 +93,8 @@ def preprocess(source, options=()): cmd.append(cu_path) pp_src = _run_nvcc(cmd, root_dir) - if isinstance(pp_src, six.bina...
django-wiki__django-wiki-1117
font awesome external-link icon is broken We just updated to the latest wiki and fa-external-link is no longer displaying the icon for external links in the wiki. I believe when the project was updated for font awesome fa-external-link changed to fa-external-link-alt and needs to be changed below: https://github.com/...
[ { "content": "import re\n\nimport markdown\n\n# Regular expression is meant to match the following pattern:\n#\n# [BEGIN][PROTOCOL]HOST[:PORT][/[PATH]][END]\n#\n# Everything except HOST is meant to be optional, as denoted by square\n# brackets.\n#\n# Patter elements are as follows:\n#\n# BEGIN\n# String prece...
[ { "content": "import re\n\nimport markdown\n\n# Regular expression is meant to match the following pattern:\n#\n# [BEGIN][PROTOCOL]HOST[:PORT][/[PATH]][END]\n#\n# Everything except HOST is meant to be optional, as denoted by square\n# brackets.\n#\n# Patter elements are as follows:\n#\n# BEGIN\n# String prece...
diff --git a/docs/release_notes.rst b/docs/release_notes.rst index 1f6569cd6..bfa01d914 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -19,6 +19,8 @@ Fixed ~~~~~ * Dependency ``bleach`` is bumped to ``>=3.3.0,<3.4`` after security advisory :url-issue:`1109` (Benjamin Balder Bach) +* Font-awesom...
scikit-hep__pyhf-1083
Migrate from bumpversion to bump2version # Description @dguest has brought to my attention that [`bumpversion` is no longer maintained](https://github.com/peritus/bumpversion) (as of apparently November 2019). Given this we should probably take the project's advice > 🎬 If you want to start using `bumpversion`, y...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow~=2.2.0', # TensorFlow minor releases are as volatile as major\n 'tensorflow-probability~=0.10.0',\n ],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow~=2.2.0', # TensorFlow minor releases are as volatile as major\n 'tensorflow-probability~=0.10.0',\n ],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax...
diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index cb92c6d420..cadd76a8ef 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -62,15 +62,15 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.8 - - name: Install bumpversion + - name: In...
edgedb__edgedb-1673
DDL results in SQL syntax error <!-- Please search existing issues to avoid creating duplicates. --> - EdgeDB Version: EdgeDB 1.0-alpha.4+dev.130.g9e96c03f - OS Version: LInux Steps to Reproduce: Try this in REPL: ``` CREATE TYPE Foo {CREATE LINK left -> Foo}; ``` I get an error: ``` Server traceback:...
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy...
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy...
diff --git a/edb/pgsql/common.py b/edb/pgsql/common.py index 760704efb6e..f989ec8387d 100644 --- a/edb/pgsql/common.py +++ b/edb/pgsql/common.py @@ -81,7 +81,10 @@ def needs_quoting(string): string.replace('_', 'a').isalnum()) return ( not isalnum or - string.lower() in pg_keywords....
conan-io__conan-2419
'install_folder' attribute is not always set To reproduce, take https://github.com/memsharded/conan-hello example with one addition: ```python def package(self): print("self.source_folder:", self.source_folder) print("self.build_folder:", self.build_folder) print("self.install_folder:",...
[ { "content": "import os\nimport shutil\n\nfrom conans.client import tools\nfrom conans.util.files import mkdir, save, rmdir\nfrom conans.util.log import logger\nfrom conans.paths import CONANINFO, CONAN_MANIFEST\nfrom conans.errors import ConanException, ConanExceptionInUserConanfileMethod, conanfile_exception_...
[ { "content": "import os\nimport shutil\n\nfrom conans.client import tools\nfrom conans.util.files import mkdir, save, rmdir\nfrom conans.util.log import logger\nfrom conans.paths import CONANINFO, CONAN_MANIFEST\nfrom conans.errors import ConanException, ConanExceptionInUserConanfileMethod, conanfile_exception_...
diff --git a/conans/client/packager.py b/conans/client/packager.py index 0e04e6ff107..e096d94dd24 100644 --- a/conans/client/packager.py +++ b/conans/client/packager.py @@ -27,6 +27,7 @@ def create_package(conanfile, source_folder, build_folder, package_folder, insta output.highlight("Calling package()") ...
feast-dev__feast-3730
In BigQueryRetrievalJob.to_remote_storage(), return value is incorrect (includes all parquet files created in gcs_staging_location, not those those created in that specific call) ## Expected Behavior In [BigQueryRetrievalJob](https://github.com/feast-dev/feast/blob/c75a01fce2d52cd18479ace748b8eb2e6c81c988/sdk/python/...
[ { "content": "import contextlib\nimport tempfile\nimport uuid\nfrom datetime import date, datetime, timedelta\nfrom pathlib import Path\nfrom typing import (\n Any,\n Callable,\n ContextManager,\n Dict,\n Iterator,\n List,\n Optional,\n Tuple,\n Union,\n)\n\nimport numpy as np\nimport...
[ { "content": "import contextlib\nimport tempfile\nimport uuid\nfrom datetime import date, datetime, timedelta\nfrom pathlib import Path\nfrom typing import (\n Any,\n Callable,\n ContextManager,\n Dict,\n Iterator,\n List,\n Optional,\n Tuple,\n Union,\n)\n\nimport numpy as np\nimport...
diff --git a/sdk/python/feast/infra/offline_stores/bigquery.py b/sdk/python/feast/infra/offline_stores/bigquery.py index 5dd8f61bced..5913b60f62f 100644 --- a/sdk/python/feast/infra/offline_stores/bigquery.py +++ b/sdk/python/feast/infra/offline_stores/bigquery.py @@ -577,7 +577,6 @@ def to_remote_storage(self) -> List...
sopel-irc__sopel-1677
etymology: Empty argument not handled Doing `.ety` with no or an empty argument doesn't behave properly. On Python 2 (my old personal instance), it causes `TypeError: None object cannot be quoted (file "/usr/lib/python2.7/urllib.py", line 1255, in quote)` On Python 3 ("official" Sopel instance on freenode), the c...
[ { "content": "# coding=utf-8\n\"\"\"\netymology.py - Sopel Etymology Module\nCopyright 2007-9, Sean B. Palmer, inamidst.com\nCopyright 2018-9, Sopel contributors\nLicensed under the Eiffel Forum License 2.\n\nhttps://sopel.chat\n\"\"\"\nfrom __future__ import unicode_literals, absolute_import, print_function, d...
[ { "content": "# coding=utf-8\n\"\"\"\netymology.py - Sopel Etymology Module\nCopyright 2007-9, Sean B. Palmer, inamidst.com\nCopyright 2018-9, Sopel contributors\nLicensed under the Eiffel Forum License 2.\n\nhttps://sopel.chat\n\"\"\"\nfrom __future__ import unicode_literals, absolute_import, print_function, d...
diff --git a/sopel/modules/etymology.py b/sopel/modules/etymology.py index 4e0aeaddfb..bdadeefa62 100644 --- a/sopel/modules/etymology.py +++ b/sopel/modules/etymology.py @@ -40,6 +40,9 @@ def etymology(word): # @@ <nsh> sbp, would it be possible to have a flag for .ety to get 2nd/etc # entries? - http://swha...
python-pillow__Pillow-4320
Incorrect Grayscale Conversion ### What did you do? I'm having a weird inconsistency in the way Pillow is treating grayscale images, and the difference is enough to throw off some metrics I need to compute. After a lot of debugging I was able to trace the inconsistency back to the grayscale conversion. I have includ...
[ { "content": "#\n# The Python Imaging Library\n# $Id$\n#\n# map CSS3-style colour description strings to RGB\n#\n# History:\n# 2002-10-24 fl Added support for CSS-style color strings\n# 2002-12-15 fl Added RGBA support\n# 2004-03-27 fl Fixed remaining int() problems for Python 1.5.2\n# 2004-07-19 fl Fix...
[ { "content": "#\n# The Python Imaging Library\n# $Id$\n#\n# map CSS3-style colour description strings to RGB\n#\n# History:\n# 2002-10-24 fl Added support for CSS-style color strings\n# 2002-12-15 fl Added RGBA support\n# 2004-03-27 fl Fixed remaining int() problems for Python 1.5.2\n# 2004-07-19 fl Fix...
diff --git a/Tests/images/imagedraw_floodfill_L.png b/Tests/images/imagedraw_floodfill_L.png index 4139e66d84e..daaf9422d30 100644 Binary files a/Tests/images/imagedraw_floodfill_L.png and b/Tests/images/imagedraw_floodfill_L.png differ diff --git a/Tests/images/imagedraw_polygon_kite_L.png b/Tests/images/imagedraw_pol...
cloud-custodian__cloud-custodian-6333
c7n report for resource 'log-group' missing tags in 0.9.8 policy: ``` policies: - name: report-resources resource: log-group comment: | Reports on log-group for account filters: - not: - "tag:custodian:skip": "True" ``` reports with c7n==0.9.2 ``` { "logGroupName": "som...
[ { "content": "# Copyright The Cloud Custodian Authors.\n# SPDX-License-Identifier: Apache-2.0\nfrom concurrent.futures import as_completed\nfrom datetime import datetime, timedelta\n\nfrom c7n.actions import BaseAction\nfrom c7n.exceptions import PolicyValidationError\nfrom c7n.filters import Filter, MetricsFil...
[ { "content": "# Copyright The Cloud Custodian Authors.\n# SPDX-License-Identifier: Apache-2.0\nfrom concurrent.futures import as_completed\nfrom datetime import datetime, timedelta\n\nfrom c7n.actions import BaseAction\nfrom c7n.exceptions import PolicyValidationError\nfrom c7n.filters import Filter, MetricsFil...
diff --git a/c7n/resources/cw.py b/c7n/resources/cw.py index c34e05da95c..16f306c01de 100644 --- a/c7n/resources/cw.py +++ b/c7n/resources/cw.py @@ -154,6 +154,8 @@ class resource_type(TypeInfo): universal_taggable = True cfn_type = 'AWS::Logs::LogGroup' + augment = universal_augment + def g...
pyro-ppl__pyro-2244
ConditionedPlanarFlow's event_dim is wrong [bug] -------------------------------------------------------------------------------------------------- ### Issue Description Provide a brief description of the issue. I think the ConditionedPlanarFlow's event_dim is incorrect. I think the class needs to be set as such...
[ { "content": "import math\n\nimport torch\nimport torch.nn as nn\nfrom torch.distributions import constraints\nimport torch.nn.functional as F\n\nfrom torch.distributions import Transform\nfrom pyro.distributions.conditional import ConditionalTransformModule\nfrom pyro.distributions.torch_transform import Trans...
[ { "content": "import math\n\nimport torch\nimport torch.nn as nn\nfrom torch.distributions import constraints\nimport torch.nn.functional as F\n\nfrom torch.distributions import Transform\nfrom pyro.distributions.conditional import ConditionalTransformModule\nfrom pyro.distributions.torch_transform import Trans...
diff --git a/pyro/distributions/transforms/planar.py b/pyro/distributions/transforms/planar.py index afeff65dcc..94bba30130 100644 --- a/pyro/distributions/transforms/planar.py +++ b/pyro/distributions/transforms/planar.py @@ -14,6 +14,11 @@ @copy_docs_from(Transform) class ConditionedPlanar(Transform): + domain...
ethereum__web3.py-2695
`web3._utils.request.async_lock` sometimes incorrectly handles the cancellation of the task it is running in * Version: 6.0.0b7 * Python: 3.9.13 * OS: linux * `pip freeze` output ``` aiohttp==3.7.4.post0 aiostream @ file:///home/conda/feedstock_root/build_artifacts/aiostream_1639516509527/work alabaster==0.7.1...
[ { "content": "import asyncio\nfrom collections import (\n OrderedDict,\n)\nfrom concurrent.futures import (\n ThreadPoolExecutor,\n)\nimport contextlib\nimport logging\nimport os\nimport threading\nfrom typing import (\n Any,\n AsyncGenerator,\n Dict,\n List,\n Optional,\n Union,\n)\n\nf...
[ { "content": "import asyncio\nfrom collections import (\n OrderedDict,\n)\nfrom concurrent.futures import (\n ThreadPoolExecutor,\n)\nimport contextlib\nimport logging\nimport os\nimport threading\nfrom typing import (\n Any,\n AsyncGenerator,\n Dict,\n List,\n Optional,\n Union,\n)\n\nf...
diff --git a/newsfragments/2695.bugfix.rst b/newsfragments/2695.bugfix.rst new file mode 100644 index 0000000000..41a8ea41b7 --- /dev/null +++ b/newsfragments/2695.bugfix.rst @@ -0,0 +1 @@ +Properly release ``async_lock`` for session requests if an exception is raised during a task. diff --git a/tests/core/utilities/te...
napari__napari-6650
Passing gamma to add_image() and view_image() doesn't properly set gamma ## 🐛 Bug As noted by @nicost in #1822, passing a gamma value to `viewer.add_image()` and `napari.view_image()` doesn't update the gamma on the vispy node. It does however set the gamma value in the model. The gamma update function in the vispy f...
[ { "content": "from __future__ import annotations\n\nimport warnings\nfrom typing import Dict, Optional\n\nimport numpy as np\nfrom vispy.color import Colormap as VispyColormap\nfrom vispy.scene.node import Node\nfrom vispy.visuals import ImageVisual\n\nfrom napari._vispy.layers.base import VispyBaseLayer\nfrom ...
[ { "content": "from __future__ import annotations\n\nimport warnings\nfrom typing import Dict, Optional\n\nimport numpy as np\nfrom vispy.color import Colormap as VispyColormap\nfrom vispy.scene.node import Node\nfrom vispy.visuals import ImageVisual\n\nfrom napari._vispy.layers.base import VispyBaseLayer\nfrom ...
diff --git a/napari/_vispy/layers/image.py b/napari/_vispy/layers/image.py index 398c2a0944d..bc47b7db332 100644 --- a/napari/_vispy/layers/image.py +++ b/napari/_vispy/layers/image.py @@ -350,8 +350,7 @@ def _on_blending_change(self, event=None) -> None: self._update_mip_minip_cutoff() def _on_gamma_ch...
buildbot__buildbot-6658
Add support for docker-py 6.0.0 See https://github.com/docker/docker-py/releases/tag/6.0.0 Foolishly, I did not pin my docker-py version. So since august, our build server was broken and it turned out to be coming from a new version of docker-py. The following shows what happens with current Buildbot master and dock...
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n#...
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n#...
diff --git a/master/buildbot/test/fake/docker.py b/master/buildbot/test/fake/docker.py index a46920d93076..41eee6fc0ed1 100644 --- a/master/buildbot/test/fake/docker.py +++ b/master/buildbot/test/fake/docker.py @@ -14,7 +14,7 @@ # Copyright Buildbot Team Members -version = "1.10.6" +__version__ = "1.10.6" cla...
encode__uvicorn-349
byes_data not working with Channels consumers Uvicorn sends its data like this: ``` is_text = isinstance(data, str) return { "type": "websocket.receive", "text": data if is_text else None, "bytes": None if is_text else data, } ``` Channels generic...
[ { "content": "import asyncio\nimport http\nfrom urllib.parse import unquote\n\nimport websockets\n\nfrom uvicorn.protocols.utils import get_local_addr, get_remote_addr, is_ssl\n\n\nclass Server:\n closing = False\n\n def register(self, ws):\n pass\n\n def unregister(self, ws):\n pass\n\n\...
[ { "content": "from urllib.parse import unquote\nfrom uvicorn.protocols.utils import get_local_addr, get_remote_addr, is_ssl\nimport asyncio\nimport http\nimport logging\nimport websockets\n\n\nclass Server:\n closing = False\n\n def register(self, ws):\n pass\n\n def unregister(self, ws):\n ...
diff --git a/uvicorn/protocols/websockets/websockets_impl.py b/uvicorn/protocols/websockets/websockets_impl.py index 8db7d2af6..0c0de935c 100644 --- a/uvicorn/protocols/websockets/websockets_impl.py +++ b/uvicorn/protocols/websockets/websockets_impl.py @@ -226,9 +226,11 @@ async def asgi_receive(self): ...
lutris__lutris-4074
After installation of EasyRPG runner executable for the runner has to be set manually After installation of EasyRPG runner its executable is downloaded to `~/.local/share/lutris/runners/easyrpg/easyrpg-player`, but not used, so runner is not usable from lutris till `Custom executable for runner` in `Runner options` is ...
[ { "content": "# Standard Library\nfrom gettext import gettext as _\nfrom os import path\n\n# Lutris Modules\nfrom lutris.runners.runner import Runner\n\n\nclass easyrpg(Runner):\n human_name = _(\"EasyRPG Player\")\n description = _(\"Runs RPG Maker 2000/2003 games\")\n platforms = [_(\"Linux\")]\n ...
[ { "content": "# Standard Library\nfrom gettext import gettext as _\nfrom os import path\n\n# Lutris Modules\nfrom lutris.runners.runner import Runner\n\n\nclass easyrpg(Runner):\n human_name = _(\"EasyRPG Player\")\n description = _(\"Runs RPG Maker 2000/2003 games\")\n platforms = [_(\"Linux\")]\n ...
diff --git a/lutris/runners/easyrpg.py b/lutris/runners/easyrpg.py index 8c725e2715..d8cb285ef9 100644 --- a/lutris/runners/easyrpg.py +++ b/lutris/runners/easyrpg.py @@ -12,7 +12,7 @@ class easyrpg(Runner): platforms = [_("Linux")] runnable_alone = True entry_point_option = "project_path" - runner_ex...
pyro-ppl__numpyro-1281
NumPyro doesn't raise if a determinstic variable has the same name as a random variable E.g.: ```python import numpyro import numpyro.distributions as dist from numpyro.infer import NUTS, MCMC import jax def model(): alpha = numpyro.sample("alpha", dist.Normal(0, 1)) numpyro.deterministic("alpha", a...
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\n\"\"\"\nThis provides a small set of effect handlers in NumPyro that are modeled\nafter Pyro's `poutine <http://docs.pyro.ai/en/stable/poutine.html>`_ module.\nFor a tutorial on effect handlers more generally, ...
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\n\"\"\"\nThis provides a small set of effect handlers in NumPyro that are modeled\nafter Pyro's `poutine <http://docs.pyro.ai/en/stable/poutine.html>`_ module.\nFor a tutorial on effect handlers more generally, ...
diff --git a/numpyro/handlers.py b/numpyro/handlers.py index bea52a623..f14c86147 100644 --- a/numpyro/handlers.py +++ b/numpyro/handlers.py @@ -154,7 +154,7 @@ def postprocess_message(self, msg): # which has no name return assert not ( - msg["type"] == "sample" and msg["na...
enthought__chaco-885
ImportError: cannot import name 'marker_trait' from 'chaco.api' **Problem Description** ImportError: cannot import name 'marker_trait' from 'chaco.api' when trying to run a 2008 demo **Reproduction Steps:** ```python python chaco/examples/tutorials/scipy2008/traits_example.py ``` **Expected behavior:** test past **...
[ { "content": "from numpy import linspace, sin\n\nfrom enable.api import ColorTrait\nfrom chaco.api import ArrayPlotData, Plot, marker_trait\nfrom enable.api import ComponentEditor\nfrom traits.api import HasTraits, Instance, Int\nfrom traitsui.api import Group, Item, View\n\n\nclass ScatterPlotTraits(HasTraits)...
[ { "content": "from numpy import linspace, sin\n\nfrom enable.api import ColorTrait, marker_trait\nfrom chaco.api import ArrayPlotData, Plot\nfrom enable.api import ComponentEditor\nfrom traits.api import HasTraits, Instance, Int\nfrom traitsui.api import Group, Item, View\n\n\nclass ScatterPlotTraits(HasTraits)...
diff --git a/examples/tutorials/scipy2008/traits_example.py b/examples/tutorials/scipy2008/traits_example.py index ad84e3a18..0ac029f6c 100644 --- a/examples/tutorials/scipy2008/traits_example.py +++ b/examples/tutorials/scipy2008/traits_example.py @@ -1,7 +1,7 @@ from numpy import linspace, sin -from enable.api imp...
conda__conda-4585
ERROR conda.core.link:_execute_actions(319): An error occurred while installing package 'defaults::qt-5.6.2-vc9_3' ``` Current conda install: platform : win-64 conda version : 4.3.9 conda is private : False conda-env version : 4.3.9 conda-build version : 2.1.3 ...
[ { "content": "# -*- coding: utf-8 -*-\n# Try to keep compat small because it's imported by everything\n# What is compat, and what isn't?\n# If a piece of code is \"general\" and used in multiple modules, it goes here.\n# If it's only used in one module, keep it in that module, preferably near the top.\nfrom __f...
[ { "content": "# -*- coding: utf-8 -*-\n# Try to keep compat small because it's imported by everything\n# What is compat, and what isn't?\n# If a piece of code is \"general\" and used in multiple modules, it goes here.\n# If it's only used in one module, keep it in that module, preferably near the top.\nfrom __f...
diff --git a/conda/common/compat.py b/conda/common/compat.py index f79f00811a7..8efd8060ac8 100644 --- a/conda/common/compat.py +++ b/conda/common/compat.py @@ -152,7 +152,15 @@ def ensure_binary(value): def ensure_text_type(value): - return value.decode('utf-8') if hasattr(value, 'decode') else value + if h...
openshift__openshift-ansible-544
SDN MTU option for Openshift node config PR: https://github.com/openshift/origin/pull/4101 (will be merged soon) introduces MTU option. Old node config: ``` .... networkPluginName: "" .... ``` New node config: ``` ... networkConfig: mtu: 1450 networkPluginName: "" ... ``` Please update your templates.
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# vim: expandtab:tabstop=4:shiftwidth=4\n\"\"\"Ansible module for retrieving and setting openshift related facts\"\"\"\n\nDOCUMENTATION = '''\n---\nmodule: openshift_facts\nshort_description: Cluster Facts\nauthor: Jason DeTiberus\nrequirements: [ ]\n'''...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# vim: expandtab:tabstop=4:shiftwidth=4\n\"\"\"Ansible module for retrieving and setting openshift related facts\"\"\"\n\nDOCUMENTATION = '''\n---\nmodule: openshift_facts\nshort_description: Cluster Facts\nauthor: Jason DeTiberus\nrequirements: [ ]\n'''...
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py index 334929c74a9..d4f38a7b44a 100755 --- a/roles/openshift_facts/library/openshift_facts.py +++ b/roles/openshift_facts/library/openshift_facts.py @@ -488,6 +488,10 @@ def set_sdn_facts_if_unset(facts): ...
ManimCommunity__manim-2962
Documentation Website Has Broken Links: I Can't Submit Pull Requests! On each page of Docs.Manim.Community there is a Pencil icon if editing needs be for that page. But now if I click the Pencil for any page it gives a 404! For example: If I go on this link: https://docs.manim.community/en/stable/reference/manim....
[ { "content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\nfrom __future__ import annotations\n\nimport os\nimport sys...
[ { "content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\nfrom __future__ import annotations\n\nimport os\nimport sys...
diff --git a/docs/source/conf.py b/docs/source/conf.py index 3b5dba7f6b..5e1961b818 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -99,6 +99,10 @@ html_static_path = ["_static"] html_theme_options = { + "source_repository": "https://github.com/ManimCommunity/manim/", + "source_branch": "main", ...
voxel51__fiftyone-1197
[BUG] VS Code Jupyter notebook creates duplicate screenshot VS Code's Jupyter notebook environment renders a duplicate screenshot when freezing App windows. My investigations lead me to believe that this a bug in VS code, as I have verified that FiftyOne `Session` instances only capture and render the screenshot once. ...
[ { "content": "\"\"\"\nSession class for interacting with the FiftyOne App.\n\n| Copyright 2017-2021, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nfrom collections import defaultdict\nfrom functools import wraps\nimport logging\nimport time\nfrom uuid import uuid4\nimport webbrowser\n\nfrom...
[ { "content": "\"\"\"\nSession class for interacting with the FiftyOne App.\n\n| Copyright 2017-2021, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nfrom collections import defaultdict\nfrom functools import wraps\nimport logging\nimport time\nfrom uuid import uuid4\nimport webbrowser\n\nfrom...
diff --git a/fiftyone/core/session.py b/fiftyone/core/session.py index 9328bfffde3..fc09eadccdd 100644 --- a/fiftyone/core/session.py +++ b/fiftyone/core/session.py @@ -978,8 +978,8 @@ def _show(self, height=None): import IPython.display - handle = IPython.display.display(display_id=True) u...
inventree__InvenTree-4148
Issues with maintenance_mode.txt ### Discussed in https://github.com/inventree/InvenTree/discussions/3617 <div type='discussions-op-text'> <sup>Originally posted by **miggland** August 29, 2022</sup> My Inventree server crashed today, while not in active use. I have tried restarting the containers, but no luc...
[ { "content": "\"\"\"Django settings for InvenTree project.\n\nIn practice the settings in this file should not be adjusted,\ninstead settings can be configured in the config.yaml file\nlocated in the top level project directory.\n\nThis allows implementation configuration to be hidden from source control,\nas w...
[ { "content": "\"\"\"Django settings for InvenTree project.\n\nIn practice the settings in this file should not be adjusted,\ninstead settings can be configured in the config.yaml file\nlocated in the top level project directory.\n\nThis allows implementation configuration to be hidden from source control,\nas w...
diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index e51b013bef79..809b7a28725b 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -826,7 +826,7 @@ # Maintenance mode MAINTENANCE_MODE_RETRY_AFTER = 60 -MAINTENANCE_MODE_STATE_BACKEND = 'maintenance_m...
pytorch__text-1914
update documentation to reflect IMDB output When attempting to use the IMDB api, I got results that were different from what the docs suggested. This PR attempts to update the docs with the correct output of the IMDB api.
[ { "content": "import os\nfrom functools import partial\nfrom pathlib import Path\nfrom typing import Tuple, Union\n\nfrom torchtext._internal.module_utils import is_module_available\nfrom torchtext.data.datasets_utils import _create_dataset_directory\nfrom torchtext.data.datasets_utils import _wrap_split_argume...
[ { "content": "import os\nfrom functools import partial\nfrom pathlib import Path\nfrom typing import Tuple, Union\n\nfrom torchtext._internal.module_utils import is_module_available\nfrom torchtext.data.datasets_utils import _create_dataset_directory\nfrom torchtext.data.datasets_utils import _wrap_split_argume...
diff --git a/test/torchtext_unittest/datasets/test_imdb.py b/test/torchtext_unittest/datasets/test_imdb.py index cb9ab3b62d..c71f53560e 100644 --- a/test/torchtext_unittest/datasets/test_imdb.py +++ b/test/torchtext_unittest/datasets/test_imdb.py @@ -29,8 +29,8 @@ def _get_mock_dataset(root_dir): for i in rang...
pypa__virtualenv-1741
Can't create a python 2.7 environment **Issue** In an Ubuntu 18.04 docker environment, tox is trying to do `virtualenv --no-download --python /usr/bin/python2.7 py27`. With virtualenv 20.0.10 this worked. As of 20.0.11, this fails with an error: ``` TypeError: unsupported operand type(s) for /: 'tuple' and 'str'...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nimport abc\nimport json\nimport os\n\nfrom six import add_metaclass\n\nfrom virtualenv.create.describe import Python2Supports\nfrom virtualenv.create.via_global_ref.builtin.ref import PathRefToDest\nfrom virtualenv.info import IS_ZIPAPP\n...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nimport abc\nimport json\nimport os\n\nfrom six import add_metaclass\n\nfrom virtualenv.create.describe import Python2Supports\nfrom virtualenv.create.via_global_ref.builtin.ref import PathRefToDest\nfrom virtualenv.info import IS_ZIPAPP\n...
diff --git a/docs/changelog/1738.bugfix.rst b/docs/changelog/1738.bugfix.rst new file mode 100644 index 000000000..724a88ddb --- /dev/null +++ b/docs/changelog/1738.bugfix.rst @@ -0,0 +1 @@ +Do not fail when the pyc files is missing for the host Python 2 - by :user:`gaborbernat`. diff --git a/src/virtualenv/create/via_...
opendatacube__datacube-core-1399
Online API documentation has gone missing ### Expected behaviour I should be able to find API documentation online. ### Actual behaviour ![image](https://user-images.githubusercontent.com/108979/217148967-1aa771cc-ec4e-4719-bcd9-3fc307ff71f9.png) ### More info The latest release of Datacube both added some n...
[ { "content": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\ntests_require = [\n 'hypothesis',\n 'pycodestyle',\n 'pylint',\n 'pytest',\n 'pytest-cov',\n 'pytest-timeout',\n 'pytest-httpserver',\n 'moto',\n]\ndoc_require = [\n 'Sphinx',\n 'sphinx_rtd_theme'...
[ { "content": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\ntests_require = [\n 'hypothesis',\n 'pycodestyle',\n 'pylint',\n 'pytest',\n 'pytest-cov',\n 'pytest-timeout',\n 'pytest-httpserver',\n 'moto',\n]\ndoc_require = [\n 'Sphinx',\n 'sphinx_autodoc_ty...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cf32c668f5..3eca3e9d14 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,6 @@ repos: - id: name-tests-test args: ['--django'] exclude: ^tests/drivers/fail_drivers - - id: requirements...
vispy__vispy-1676
Window transparency issue in molecular_viewer.py On my Windows 10 machine with a GeForce GTX 1080 Ti (Driver version 430.39) there are serious issues in the visualization of the molecular_viewer.py example code (/examples/demo/gloo/molecular_viewer.py). The background of the image is black no matter what; but wherev...
[ { "content": "# -*- coding: utf-8 -*-\n# vispy: gallery 30\n# -----------------------------------------------------------------------------\n# 2014, Aurore Deschildre, Gael Goret, Cyrille Rossant, Nicolas P. Rougier.\n# Distributed under the terms of the new BSD License.\n# -------------------------------------...
[ { "content": "# -*- coding: utf-8 -*-\n# vispy: gallery 30\n# -----------------------------------------------------------------------------\n# 2014, Aurore Deschildre, Gael Goret, Cyrille Rossant, Nicolas P. Rougier.\n# Distributed under the terms of the new BSD License.\n# -------------------------------------...
diff --git a/examples/demo/gloo/molecular_viewer.py b/examples/demo/gloo/molecular_viewer.py index 0a424b32a2..9185b21433 100644 --- a/examples/demo/gloo/molecular_viewer.py +++ b/examples/demo/gloo/molecular_viewer.py @@ -87,8 +87,8 @@ // GPU drivers... float specular = clamp(pow(abs(dot(normal, K)), 40.), 0...
biopython__biopython-4603
Update NCBIWWW.py <!--- Please read each of the following items and confirm by replacing !--the [ ] with a [X] ---> - [X] I hereby agree to dual licence this and any previous contributions under both the _Biopython License Agreement_ **AND** the _BSD 3-Clause License_. - [X] I have read the ``CONTRIBUTING.rst`...
[ { "content": "# Copyright 1999 by Jeffrey Chang. All rights reserved.\n#\n# This file is part of the Biopython distribution and governed by your\n# choice of the \"Biopython License Agreement\" or the \"BSD 3-Clause License\".\n# Please see the LICENSE file that should have been included as part of this\n# pac...
[ { "content": "# Copyright 1999 by Jeffrey Chang. All rights reserved.\n#\n# This file is part of the Biopython distribution and governed by your\n# choice of the \"Biopython License Agreement\" or the \"BSD 3-Clause License\".\n# Please see the LICENSE file that should have been included as part of this\n# pac...
diff --git a/Bio/Blast/NCBIWWW.py b/Bio/Blast/NCBIWWW.py index b99b2d4520d..69eabdf8108 100644 --- a/Bio/Blast/NCBIWWW.py +++ b/Bio/Blast/NCBIWWW.py @@ -280,7 +280,7 @@ def qblast( # Throw a warning if search takes longer than ten minutes if elapsed >= 600: warnings.warn( - ...
saulpw__visidata-1774
[save_filetype] when save_filetype is set, you cannot gY as any other filetype on the DirSheet **Small description** I use `options.save_filetype = 'jsonl'` in my `.visidatarc`. I use this to set my default save type. However, sometimes I like to copy rows out as different file types, csv, fixed etc. and so I press gY...
[ { "content": "import os\nimport os.path\nimport sys\nimport io\nimport codecs\nimport pathlib\nfrom urllib.parse import urlparse, urlunparse\nfrom functools import wraps, lru_cache\n\nfrom visidata import *\n\nvd.option('encoding', 'utf-8', 'encoding passed to codecs.open', replay=True)\nvd.option('encoding_err...
[ { "content": "import os\nimport os.path\nimport sys\nimport io\nimport codecs\nimport pathlib\nfrom urllib.parse import urlparse, urlunparse\nfrom functools import wraps, lru_cache\n\nfrom visidata import *\n\nvd.option('encoding', 'utf-8', 'encoding passed to codecs.open', replay=True)\nvd.option('encoding_err...
diff --git a/visidata/path.py b/visidata/path.py index a3c20ae10..00840152d 100644 --- a/visidata/path.py +++ b/visidata/path.py @@ -153,6 +153,8 @@ def given(self, given): self.ext = self.suffix[1:] if self.suffix: #1450 don't make this a oneliner; [:-0] doesn't work self.name = self._...
jazzband__django-debug-toolbar-1010
Intercept redirects will cause ContentNotRenderedError with django-debug-toolbar 1.9 I tried newest django-debug-toolbar, 1.9. And when I enabled Intercept Redirects and accessed a view returns 302, It returned `ContentNotRenderedError`: ``` ContentNotRenderedError at /admin/ The response content must be rende...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nfrom django.template.response import SimpleTemplateResponse\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom debug_toolbar.panels import Panel\n\n\nclass RedirectsPanel(Panel):\n \"\"\"\n Panel that intercepts redire...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nfrom django.template.response import SimpleTemplateResponse\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom debug_toolbar.panels import Panel\n\n\nclass RedirectsPanel(Panel):\n \"\"\"\n Panel that intercepts redire...
diff --git a/debug_toolbar/panels/redirects.py b/debug_toolbar/panels/redirects.py index ec57bb9fc..01a60167e 100644 --- a/debug_toolbar/panels/redirects.py +++ b/debug_toolbar/panels/redirects.py @@ -25,4 +25,5 @@ def process_response(self, request, response): # Using SimpleTemplateResponse avoids run...
kivy__kivy-2196
[examples] installation of latest kivy-examples package fails Looks like there is a simple syntax problem in an example... Beleave it is not py3 compatible :/ Package: kivy-examples (1.8.1-daily0+201405040547-2023-testing42~ubuntu14.04.1) ``` File "/usr/share/kivy-examples/widgets/compound_selection.py", line 17 ...
[ { "content": "from kivy.uix.gridlayout import GridLayout\nfrom kivy.uix.button import Button\nfrom kivy.uix.behaviors import CompoundSelectionBehavior\nfrom kivy.app import runTouchApp\nfrom kivy.core.window import Window\n\n\nclass SelectableGrid(CompoundSelectionBehavior, GridLayout):\n\n def __init__(self...
[ { "content": "from kivy.uix.gridlayout import GridLayout\nfrom kivy.uix.button import Button\nfrom kivy.uix.behaviors import CompoundSelectionBehavior\nfrom kivy.app import runTouchApp\nfrom kivy.core.window import Window\n\n\nclass SelectableGrid(CompoundSelectionBehavior, GridLayout):\n\n def __init__(self...
diff --git a/examples/widgets/compound_selection.py b/examples/widgets/compound_selection.py index e9b619a857..7f571a9f25 100644 --- a/examples/widgets/compound_selection.py +++ b/examples/widgets/compound_selection.py @@ -14,7 +14,7 @@ def __init__(self, **kwargs): on_key_up=self.select_with_key...
aio-libs__aiohttp-8271
Stability issues with gunicorn --max-requests ### Describe the bug When running an aiohttp app deployed with gunicorn and the `--max-requests` param (to avoid memory issues), I face `ChunkedEncodingError` and `ConnectionError` issues (with a python-requests client) The logs also show `Task was destroyed but it is...
[ { "content": "import asyncio\nimport signal\nimport socket\nfrom abc import ABC, abstractmethod\nfrom typing import Any, Awaitable, Callable, List, Optional, Set, Type\n\nfrom yarl import URL\n\nfrom .abc import AbstractAccessLogger, AbstractStreamWriter\nfrom .http_parser import RawRequestMessage\nfrom .stream...
[ { "content": "import asyncio\nimport signal\nimport socket\nfrom abc import ABC, abstractmethod\nfrom typing import Any, Awaitable, Callable, List, Optional, Set, Type\n\nfrom yarl import URL\n\nfrom .abc import AbstractAccessLogger, AbstractStreamWriter\nfrom .http_parser import RawRequestMessage\nfrom .stream...
diff --git a/CHANGES/8271.bugfix.rst b/CHANGES/8271.bugfix.rst new file mode 100644 index 00000000000..9d572ba2fe6 --- /dev/null +++ b/CHANGES/8271.bugfix.rst @@ -0,0 +1 @@ +Fixed a race condition with incoming connections during server shutdown -- by :user:`Dreamsorcerer`. diff --git a/aiohttp/web_runner.py b/aiohttp/...
pyinstaller__pyinstaller-2587
win32: multibyte path bootloader import issue with python2 OS: windows 7/windows 10 Py: Python 2.7.13 Pyinstaller: Pyinstaller 3.3-dev 964547c tl;dr the pyinstaller one-file failed to proper import during bootloader stage when the path involve multibyte character under win32 py2, 1. create a username with mult...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2017, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the file COPYING....
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2017, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the file COPYING....
diff --git a/PyInstaller/loader/pyiboot01_bootstrap.py b/PyInstaller/loader/pyiboot01_bootstrap.py index c946beb118..bc053b3311 100644 --- a/PyInstaller/loader/pyiboot01_bootstrap.py +++ b/PyInstaller/loader/pyiboot01_bootstrap.py @@ -60,7 +60,12 @@ # application. python_path = [] for pth in sys.path: - python_pa...
svthalia__concrexit-1782
Shift product sales are not calculated correctly ### Describe the bug For some reason, the product sales for shifts in the sales app are not calculated properly: ### How to reproduce 1. Check staging.thalia.nu, shift 1 2. <img width="453" alt="image" src="https://user-images.githubusercontent.com/7915741/123234...
[ { "content": "from django.core.exceptions import ValidationError\nfrom django.db import models\nfrom django.db.models import (\n Sum,\n Q,\n Count,\n)\nfrom django.db.models.expressions import RawSQL\nfrom django.utils import timezone\nfrom django.utils.translation import gettext_lazy as _\nfrom querya...
[ { "content": "from django.core.exceptions import ValidationError\nfrom django.db import models\nfrom django.db.models import (\n Sum,\n Q,\n Count,\n)\nfrom django.db.models.expressions import RawSQL\nfrom django.utils import timezone\nfrom django.utils.translation import gettext_lazy as _\nfrom querya...
diff --git a/website/sales/models/shift.py b/website/sales/models/shift.py index 556685ce7..70371b43b 100644 --- a/website/sales/models/shift.py +++ b/website/sales/models/shift.py @@ -151,8 +151,8 @@ def product_sales(self): qs = ( self.orders.exclude(order_items__isnull=True) .value...
ansible__ansible-modules-extras-231
The pkgutil provider reports state: present when a package is not in the catalog When I try to install a non-existing package with something like ``` # ansible unstable9s -m pkgutil -a "name=CSWlibpsl-dev state=present" ``` The result is success and the state "present" is reported: ``` unstable9s | success >> { ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Alexander Winkler <mail () winkler-alexander.de>\n# \tbased on svr4pkg by\n# \t\tBoyd Adamson <boyd () boydadamson.com> (2012)\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it un...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Alexander Winkler <mail () winkler-alexander.de>\n# \tbased on svr4pkg by\n# \t\tBoyd Adamson <boyd () boydadamson.com> (2012)\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it un...
diff --git a/packaging/os/pkgutil.py b/packaging/os/pkgutil.py index 78a7db72bf5..0204bbae987 100644 --- a/packaging/os/pkgutil.py +++ b/packaging/os/pkgutil.py @@ -163,9 +163,13 @@ def main(): out = out[:75] if rc is None: + # pkgutil was not executed because the package was already present/...
yt-project__yt-2485
sliceplot data range ignored when log with negative data <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** If I specify a range for my data using the slic...
[ { "content": "\"\"\"\nA base class for \"image\" plots with colorbars.\n\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the file ...
[ { "content": "\"\"\"\nA base class for \"image\" plots with colorbars.\n\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the file ...
diff --git a/yt/visualization/plot_container.py b/yt/visualization/plot_container.py index 666cf3e8999..2f43683875d 100644 --- a/yt/visualization/plot_container.py +++ b/yt/visualization/plot_container.py @@ -906,6 +906,8 @@ def set_zlim(self, field, zmin, zmax, dynamic_range=None): else: ...
NVIDIA__NeMo-2546
vad_infer.py script fails with `IndexError` if option `--dont_auto_split` is not set **Describe the bug** `NeMo/examples/asr/vad_infer.py` script fails with `IndexError` if option `--dont_auto_split` is not set and at least 1 `.wav` file is long enough so that `nemo.collections.asr.parts.utils.vad_utils.prepare_mani...
[ { "content": "# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/examples/asr/vad_infer.py b/examples/asr/vad_infer.py index ba036029f2fe..aa3bae374505 100644 --- a/examples/asr/vad_infer.py +++ b/examples/asr/vad_infer.py @@ -134,7 +134,7 @@ def main(): all_len = 0 data = [] - for line in open(args.dataset, 'r'): + for line in open(manifest_vad_input,...
chainer__chainer-289
`Function` which get no input cannot select `volatile` In `Function.__call__`, it checks `volatile` of all input variables, and the same value is used. But, `Function` which get not argument such as `Parameter`, always selects `volatile=False`. it may causes conflict of volatility. https://github.com/pfnet/chainer/blo...
[ { "content": "import numpy\n\nfrom chainer import function\nfrom chainer.utils import type_check\n\n\nclass Parameter(function.Function):\n\n \"\"\"Function that outputs its weight array.\n\n This is a parameterized function that takes no input and returns a variable\n holding a shallow copy of the par...
[ { "content": "import numpy\n\nfrom chainer import function\nfrom chainer.utils import type_check\n\n\nclass Parameter(function.Function):\n\n \"\"\"Function that outputs its weight array.\n\n This is a parameterized function that takes no input and returns a variable\n holding a shallow copy of the par...
diff --git a/chainer/functions/parameter.py b/chainer/functions/parameter.py index be40a2002ff6..f84505100415 100644 --- a/chainer/functions/parameter.py +++ b/chainer/functions/parameter.py @@ -22,6 +22,13 @@ def __init__(self, array): self.W = array self.gW = numpy.empty_like(array) + def __cal...
edgedb__edgedb-3527
Sequence default fails in migration ### Discussed in https://github.com/edgedb/edgedb/discussions/3493 <div type='discussions-op-text'> <sup>Originally posted by **tchak** February 15, 2022</sup> I have the following schema: ``` module default { scalar type ProjectNumber extending sequence; type Proj...
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy...
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy...
diff --git a/edb/pgsql/compiler/expr.py b/edb/pgsql/compiler/expr.py index 5ce4ffe84b2..78d463ed832 100644 --- a/edb/pgsql/compiler/expr.py +++ b/edb/pgsql/compiler/expr.py @@ -315,6 +315,14 @@ def compile_SliceIndirection( return result +@dispatch.compile.register(irast.TypeIntrospection) +def compile_TypeInt...
huggingface__transformers-7344
AttributeError: 'TFTrainingArguments' object has no attribute 'args' ## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 3.2.0 - Platform: Linux-4.19.112+-x8...
[ { "content": "import warnings\nfrom dataclasses import dataclass, field\nfrom typing import Tuple\n\nfrom .file_utils import cached_property, is_tf_available, tf_required\nfrom .training_args import TrainingArguments\nfrom .utils import logging\n\n\nlogger = logging.get_logger(__name__)\n\nif is_tf_available():...
[ { "content": "import warnings\nfrom dataclasses import dataclass, field\nfrom typing import Tuple\n\nfrom .file_utils import cached_property, is_tf_available, tf_required\nfrom .training_args import TrainingArguments\nfrom .utils import logging\n\n\nlogger = logging.get_logger(__name__)\n\nif is_tf_available():...
diff --git a/src/transformers/training_args_tf.py b/src/transformers/training_args_tf.py index 7a5f00c12e81..59e76f5548a1 100644 --- a/src/transformers/training_args_tf.py +++ b/src/transformers/training_args_tf.py @@ -119,7 +119,7 @@ class TFTrainingArguments(TrainingArguments): def _setup_strategy(self) -> Tuple...
freqtrade__freqtrade-1392
error when running freqtrade with jsonschema==3.0.0a3 ``` root@ghost# freqtrade /usr/local/lib/python3.6/dist-packages/scikit_learn-0.20rc1-py3.6-linux-x86_64.egg/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's...
[ { "content": "\"\"\"\nThis module contains the configuration class\n\"\"\"\nimport json\nimport logging\nimport os\nfrom argparse import Namespace\nfrom typing import Any, Dict, Optional\n\nimport ccxt\nfrom jsonschema import Draft4Validator, validate\nfrom jsonschema.exceptions import ValidationError, best_mat...
[ { "content": "\"\"\"\nThis module contains the configuration class\n\"\"\"\nimport json\nimport logging\nimport os\nfrom argparse import Namespace\nfrom typing import Any, Dict, Optional\n\nimport ccxt\nfrom jsonschema import Draft4Validator, validate\nfrom jsonschema.exceptions import ValidationError, best_mat...
diff --git a/freqtrade/configuration.py b/freqtrade/configuration.py index feec0cb4325..e9daf4a9910 100644 --- a/freqtrade/configuration.py +++ b/freqtrade/configuration.py @@ -275,7 +275,7 @@ def _validate_config(self, conf: Dict[str, Any]) -> Dict[str, Any]: :return: Returns the config if valid, otherwise th...
internetarchive__openlibrary-4749
Intermittent build bug in node_modules/@vue ... entry-wc.js <!-- What problem are we solving? What does the experience look like today? What are the symptoms? --> ### Evidence / Screenshot (if possible) Run `docker build -t openlibrary/olbase:latest -f docker/Dockerfile.olbase .` on an M1 Mac generates the errors...
[ { "content": "import web\nimport json\nimport babel\nimport babel.core\nimport babel.dates\nfrom collections import defaultdict\nimport re\nimport random\nimport xml.etree.ElementTree as etree\nimport datetime\nimport logging\n\nimport six\nfrom six import PY3\nfrom six.moves import urllib\nfrom six.moves.colle...
[ { "content": "import web\nimport json\nimport babel\nimport babel.core\nimport babel.dates\nfrom collections import defaultdict\nimport re\nimport random\nimport xml.etree.ElementTree as etree\nimport datetime\nimport logging\n\nimport six\nfrom six import PY3\nfrom six.moves import urllib\nfrom six.moves.colle...
diff --git a/Makefile b/Makefile index 026f0dfeb84..9b55b616ab4 100644 --- a/Makefile +++ b/Makefile @@ -34,8 +34,8 @@ components: $(COMPONENTS_DIR)/*.vue mkdir --parents $(BUILD) rm -rf $(BUILD)/components parallel --verbose -q \ - npx vue-cli-service build --no-clean --mode {2} --dest $(BUILD)/components/{2} -...
bridgecrewio__checkov-2935
False positive for CKV_AZURE_43 when using the "random" provider resources **Describe the issue** Check ID: CKV_AZURE_43 When using any of the random_* resources from the [random provider](https://registry.terraform.io/providers/hashicorp/random/latest/docs) check CKV_AZURE_43 fails. StorageAccountName.py probably...
[ { "content": "import re\nfrom typing import List, Dict, Any\n\nfrom checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck\nfrom checkov.common.models.enums import CheckResult, CheckCategories\n\nSTO_NAME_REGEX = re.compile(r\"^[a-z0-9]{3,24}$\")\nVARIABLE_REFS = (\"local.\", \"module.\"...
[ { "content": "import re\nfrom typing import List, Dict, Any\n\nfrom checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck\nfrom checkov.common.models.enums import CheckResult, CheckCategories\n\nSTO_NAME_REGEX = re.compile(r\"^[a-z0-9]{3,24}$\")\nVARIABLE_REFS = (\"local.\", \"module.\"...
diff --git a/checkov/terraform/checks/resource/azure/StorageAccountName.py b/checkov/terraform/checks/resource/azure/StorageAccountName.py index 7eb7c91c75..de950533bb 100644 --- a/checkov/terraform/checks/resource/azure/StorageAccountName.py +++ b/checkov/terraform/checks/resource/azure/StorageAccountName.py @@ -5,7 +...
SeldonIO__MLServer-478
Activating custom conda env in mlserver build image Hello, I’ve encountered an issue when using `mlserver build ...` with `1.1.0dev` where the custom conda environment is not activated. The image builds and all packages are present in the image. However, when starting the image it crashes on `mlserver start` calling w...
[ { "content": "DockerfileName = \"Dockerfile\"\nDockerfileTemplate = \"\"\"\nFROM continuumio/miniconda3:4.10.3 AS env-builder\nSHELL [\"/bin/bash\", \"-c\"]\n\nARG MLSERVER_ENV_NAME=\"mlserver-custom-env\" \\\\\n MLSERVER_ENV_TARBALL=\"./envs/base.tar.gz\"\n\nRUN conda config --add channels conda-forge && \\...
[ { "content": "DockerfileName = \"Dockerfile\"\nDockerfileTemplate = \"\"\"\nFROM continuumio/miniconda3:4.10.3 AS env-builder\nSHELL [\"/bin/bash\", \"-c\"]\n\nARG MLSERVER_ENV_NAME=\"mlserver-custom-env\" \\\\\n MLSERVER_ENV_TARBALL=\"./envs/base.tar.gz\"\n\nRUN conda config --add channels conda-forge && \\...
diff --git a/mlserver/cli/constants.py b/mlserver/cli/constants.py index ec988a0bf..572554f4d 100644 --- a/mlserver/cli/constants.py +++ b/mlserver/cli/constants.py @@ -24,7 +24,7 @@ conda env create \ --name $MLSERVER_ENV_NAME \\ --file $envFile; \\ - conda-pac...
aio-libs__aiohttp-8272
Stability issues with gunicorn --max-requests ### Describe the bug When running an aiohttp app deployed with gunicorn and the `--max-requests` param (to avoid memory issues), I face `ChunkedEncodingError` and `ConnectionError` issues (with a python-requests client) The logs also show `Task was destroyed but it is...
[ { "content": "import asyncio\nimport signal\nimport socket\nimport warnings\nfrom abc import ABC, abstractmethod\nfrom typing import Any, Awaitable, Callable, List, Optional, Set\n\nfrom yarl import URL\n\nfrom .typedefs import PathLike\nfrom .web_app import Application\nfrom .web_server import Server\n\ntry:\n...
[ { "content": "import asyncio\nimport signal\nimport socket\nimport warnings\nfrom abc import ABC, abstractmethod\nfrom typing import Any, Awaitable, Callable, List, Optional, Set\n\nfrom yarl import URL\n\nfrom .typedefs import PathLike\nfrom .web_app import Application\nfrom .web_server import Server\n\ntry:\n...
diff --git a/CHANGES/8271.bugfix.rst b/CHANGES/8271.bugfix.rst new file mode 100644 index 00000000000..9d572ba2fe6 --- /dev/null +++ b/CHANGES/8271.bugfix.rst @@ -0,0 +1 @@ +Fixed a race condition with incoming connections during server shutdown -- by :user:`Dreamsorcerer`. diff --git a/aiohttp/web_runner.py b/aiohttp/...
pypa__pipenv-233
Pipenv lock don't respect multiple sources Just saw now that the lock uses `pip_download` that don't use anything other than pip's default configuration on index-url. One approach that seems reasonable would be to use pip_download like pip_install function: with `-i` and trying for each project.source available.
[ { "content": "# -*- coding: utf-8 -*-\nimport contextlib\nimport codecs\nimport json\nimport os\nimport re\nimport sys\nimport distutils.spawn\nimport shutil\nimport signal\n\nimport click\nimport click_completion\nimport crayons\nimport delegator\nimport parse\nimport pexpect\nimport requests\nimport pipfile\n...
[ { "content": "# -*- coding: utf-8 -*-\nimport contextlib\nimport codecs\nimport json\nimport os\nimport re\nimport sys\nimport distutils.spawn\nimport shutil\nimport signal\n\nimport click\nimport click_completion\nimport crayons\nimport delegator\nimport parse\nimport pexpect\nimport requests\nimport pipfile\n...
diff --git a/pipenv/cli.py b/pipenv/cli.py index 123f1e6728..e51f4debd5 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -565,7 +565,17 @@ def pip_install(package_name=None, r=None, allow_global=False): def pip_download(package_name): - c = delegator.run('{0} download "{1}" -d {2}'.format(which_pip(), package_...
scikit-hep__uproot5-1067
xrootd file globbing only works for some file + object path specifications uproot version: 5.2.0rc5 dict-style file + object path globbing works fine: ``` >>> import uproot >>> events = uproot.dask({"root://cmsdcadisk.fnal.gov//dcache/uscmsdisk/store/data/Run2023C/EGamma0/NANOAOD/PromptNanoAODv11p9_v1-v1/*/*.roo...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/uproot5/blob/main/LICENSE\n\n\"\"\"\nThis module defines utilities for internal use. This is not a public interface\nand may be changed without notice.\n\"\"\"\n\nfrom __future__ import annotations\n\nimport datetime\nimport glob\nimport it...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/uproot5/blob/main/LICENSE\n\n\"\"\"\nThis module defines utilities for internal use. This is not a public interface\nand may be changed without notice.\n\"\"\"\n\nfrom __future__ import annotations\n\nimport datetime\nimport glob\nimport it...
diff --git a/src/uproot/_util.py b/src/uproot/_util.py index 952232f35..894ddbc4b 100644 --- a/src/uproot/_util.py +++ b/src/uproot/_util.py @@ -835,7 +835,7 @@ def _regularize_files_inner( file_names_full = [ file.full_name for file in fsspec.open_files( - ...
googleapis__google-api-python-client-906
Fix typo in positional decorator method docstring Thanks for stopping by to let us know something could be better! **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely res...
[ { "content": "# Copyright 2015 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
[ { "content": "# Copyright 2015 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
diff --git a/googleapiclient/_helpers.py b/googleapiclient/_helpers.py index 66ccf794474..ddbd0e27279 100644 --- a/googleapiclient/_helpers.py +++ b/googleapiclient/_helpers.py @@ -40,7 +40,7 @@ def positional(max_positional_args): - """A decorator to declare that only the first N arguments my be positional. + ...
cupy__cupy-498
cupy.nonzero fails with some corner-case inputs Code: ``` import sys import cupy, numpy shapes = [ (), (0,), (1,), (0,2), (0,0,2,0), ] f = sys.stdout for xp in (numpy, cupy): print(xp.__name__) for shape in shapes: a = xp.ones(shape) f.write('shape={:<15} ...
[ { "content": "from cupy import core\n\n\ndef argmax(a, axis=None, dtype=None, out=None, keepdims=False):\n \"\"\"Returns the indices of the maximum along an axis.\n\n Args:\n a (cupy.ndarray): Array to take argmax.\n axis (int): Along which axis to find the maximum. ``a`` is flattened by\n ...
[ { "content": "from cupy import core\n\n\ndef argmax(a, axis=None, dtype=None, out=None, keepdims=False):\n \"\"\"Returns the indices of the maximum along an axis.\n\n Args:\n a (cupy.ndarray): Array to take argmax.\n axis (int): Along which axis to find the maximum. ``a`` is flattened by\n ...
diff --git a/cupy/core/core.pyx b/cupy/core/core.pyx index b69be2538d9..e207998b380 100644 --- a/cupy/core/core.pyx +++ b/cupy/core/core.pyx @@ -903,28 +903,28 @@ cdef class ndarray: :func:`numpy.nonzero` """ - condition = self != 0 + cdef Py_ssize_t count_nonzero, ndim dt...
akvo__akvo-rsr-1910
REST API: project_extra with organisation filter gives duplicates The `project_extra` REST API endpoint shows duplicate projects when it is filtered on organisation.
[ { "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\nfr...
[ { "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\nfr...
diff --git a/akvo/rest/views/project.py b/akvo/rest/views/project.py index 7cb209ce4e..655af3a241 100644 --- a/akvo/rest/views/project.py +++ b/akvo/rest/views/project.py @@ -93,7 +93,7 @@ def get_queryset(self): if sync_owner: queryset = queryset.filter(partnerships__iati_organisation_role=101, ...
readthedocs__readthedocs.org-11411
Build: remove "beta" warning from `build.commands` `build.commands` has been behaving as a stable feature for a long time and we want to remove the "beta" framing around this since it produces some concerns on users regarding its future stability and the possibility of deprecation in the future. Some places that I r...
[ { "content": "\"\"\"\nThe ``director`` module can be seen as the entrypoint of the build process.\n\nIt \"directs\" all of the high-level build jobs:\n\n* checking out the repo\n* setting up the environment\n* fetching instructions etc.\n\"\"\"\nimport os\nimport tarfile\n\nimport structlog\nimport yaml\nfrom d...
[ { "content": "\"\"\"\nThe ``director`` module can be seen as the entrypoint of the build process.\n\nIt \"directs\" all of the high-level build jobs:\n\n* checking out the repo\n* setting up the environment\n* fetching instructions etc.\n\"\"\"\nimport os\nimport tarfile\n\nimport structlog\nimport yaml\nfrom d...
diff --git a/docs/user/build-customization.rst b/docs/user/build-customization.rst index d82a3cc9f8f..d2907e34036 100644 --- a/docs/user/build-customization.rst +++ b/docs/user/build-customization.rst @@ -414,11 +414,12 @@ Take a look at the following example: Override the build process -------------------------- -...
joke2k__faker-1441
Change in Python 3.9.5 (and 3.8.10) causes Faker's list_module() to fail * Faker version: 8.1.2 * OS: macOS 11.3.1 A [regression in Python](https://bugs.python.org/issue44061) breaks Faker, specifically [this line of code in Faker](https://github.com/joke2k/faker/blob/master/faker/utils/loading.py#L35) that calls `...
[ { "content": "import pkgutil\nimport sys\n\nfrom importlib import import_module\nfrom pathlib import Path\nfrom types import ModuleType\nfrom typing import List, Set\n\n\ndef get_path(module: ModuleType) -> str:\n if getattr(sys, 'frozen', False):\n # frozen\n\n if getattr(sys, '_MEIPASS', Fals...
[ { "content": "import pkgutil\nimport sys\n\nfrom importlib import import_module\nfrom pathlib import Path\nfrom types import ModuleType\nfrom typing import List, Set\n\n\ndef get_path(module: ModuleType) -> str:\n if getattr(sys, 'frozen', False):\n # frozen\n\n if getattr(sys, '_MEIPASS', Fals...
diff --git a/faker/utils/loading.py b/faker/utils/loading.py index 757a012565..e60db12e20 100644 --- a/faker/utils/loading.py +++ b/faker/utils/loading.py @@ -32,7 +32,7 @@ def list_module(module: ModuleType) -> List[str]: # PyInstaller return [file.parent.name for file in Path(path).glob('*/__init__....
DDMAL__CantusDB-1215
typo in "Bibliography" Source view has "bibilography" and not bibliography: <img width="250" alt="image" src="https://github.com/DDMAL/CantusDB/assets/67451875/42a71b35-3598-4e66-abd2-1830d44a9ce6"> Source edit seems to be correct though (https://cantusdatabase.org/edit-source/711225): <img width="202" alt="image" ...
[ { "content": "from django.contrib import admin\nfrom reversion.admin import VersionAdmin\nfrom main_app.models import *\nfrom main_app.forms import (\n AdminCenturyForm,\n AdminChantForm,\n AdminFeastForm,\n AdminGenreForm,\n AdminNotationForm,\n AdminOfficeForm,\n AdminProvenanceForm,\n ...
[ { "content": "from django.contrib import admin\nfrom reversion.admin import VersionAdmin\nfrom main_app.models import *\nfrom main_app.forms import (\n AdminCenturyForm,\n AdminChantForm,\n AdminFeastForm,\n AdminGenreForm,\n AdminNotationForm,\n AdminOfficeForm,\n AdminProvenanceForm,\n ...
diff --git a/django/cantusdb_project/main_app/admin.py b/django/cantusdb_project/main_app/admin.py index f53d92d56..45cff5f78 100644 --- a/django/cantusdb_project/main_app/admin.py +++ b/django/cantusdb_project/main_app/admin.py @@ -16,15 +16,14 @@ ) # these fields should not be editable by all classes -EXCLUDE = (...
holoviz__panel-609
Replacing periodic.period doesn't change period ``` import panel as pn pn.extension() test = pn.widgets.Toggle(name='Test') def toggle(): test.value = not test.value periodic = test.add_periodic_callback(toggle, period=1000) test ``` ``` periodic.period = 20000 #this doesnt update the periodic mi...
[ { "content": "\"\"\"\nDefines callbacks to be executed on a thread or by scheduling it\non a running bokeh server.\n\"\"\"\nfrom __future__ import absolute_import, division, unicode_literals\n\n\nimport time\nimport param\n\nfrom bokeh.io import curdoc as _curdoc\n\n\nclass PeriodicCallback(param.Parameterized)...
[ { "content": "\"\"\"\nDefines callbacks to be executed on a thread or by scheduling it\non a running bokeh server.\n\"\"\"\nfrom __future__ import absolute_import, division, unicode_literals\n\n\nimport time\nimport param\n\nfrom bokeh.io import curdoc as _curdoc\n\n\nclass PeriodicCallback(param.Parameterized)...
diff --git a/panel/callbacks.py b/panel/callbacks.py index fb46161f3d..8468f71f1a 100644 --- a/panel/callbacks.py +++ b/panel/callbacks.py @@ -55,6 +55,12 @@ def start(self): self._cb = PeriodicCallback(self._periodic_callback, self.period) self._cb.start() + @param.depends('period', watc...
spack__spack-10046
Installation issue: gcc@7.2.0 ### Steps to reproduce the issue ```console $ spack install gcc@7.2.0 ... >> 29760 /apps/spack/var/spack/stage/gcc-7.2.0-bcsmtl56t3etoswkauritld6bzfnjfzx/gcc-7.2.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:157:10: fatal error: sys/ustat.h: No such file or di...
[ { "content": "# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack import *\nfrom spack.operating_systems.mac_os import macos_version\nfrom llnl.util i...
[ { "content": "# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack import *\nfrom spack.operating_systems.mac_os import macos_version\nfrom llnl.util i...
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index a029a9e0c5288a..2016af5adde9e4 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -168,6 +168,8 @@ class Gcc(AutotoolsPackage): pat...
paperless-ngx__paperless-ngx-2112
[BUG] Problem with tesseract after Bugfix: Some tesseract languages aren't detected as installed. @stumpylog (#2057) ### Description Hi, after Fixes [2044 ](https://github.com/paperless-ngx/paperless-ngx/issues/2044)I have problem with OCR and paperless-ngx. Before this commit I use next ENV : > - ...
[ { "content": "import shutil\nimport subprocess\n\nfrom django.conf import settings\nfrom django.core.checks import Error\nfrom django.core.checks import register\nfrom django.core.checks import Warning\n\n\ndef get_tesseract_langs():\n proc = subprocess.run(\n [shutil.which(\"tesseract\"), \"--list-la...
[ { "content": "import shutil\nimport subprocess\n\nfrom django.conf import settings\nfrom django.core.checks import Error\nfrom django.core.checks import register\nfrom django.core.checks import Warning\n\n\ndef get_tesseract_langs():\n proc = subprocess.run(\n [shutil.which(\"tesseract\"), \"--list-la...
diff --git a/src/paperless_tesseract/checks.py b/src/paperless_tesseract/checks.py index c63761f31fd..ed5725d367c 100644 --- a/src/paperless_tesseract/checks.py +++ b/src/paperless_tesseract/checks.py @@ -16,8 +16,7 @@ def get_tesseract_langs(): # Decode bytes to string, split on newlines, trim out the header ...