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
⌀
python-poetry__poetry-3169
Self install to PATH of other shell profiles Using a vanilla macOS Catalina v10.15.5. The default shell profile Terminal uses is zsh. (~/.zshrc) Poetry does not automatically install to PATH for this type of set up (possibly others). Could it be set up to handle the different types of shell profiles? Example: I i...
[ { "content": "\"\"\"\nThis script will install Poetry and its dependencies\nin isolation from the rest of the system.\n\nIt does, in order:\n\n - Downloads the latest stable (or pre-release) version of poetry.\n - Downloads all its dependencies in the poetry/_vendor directory.\n - Copies it and all extra fil...
[ { "content": "\"\"\"\nThis script will install Poetry and its dependencies\nin isolation from the rest of the system.\n\nIt does, in order:\n\n - Downloads the latest stable (or pre-release) version of poetry.\n - Downloads all its dependencies in the poetry/_vendor directory.\n - Copies it and all extra fil...
diff --git a/get-poetry.py b/get-poetry.py index c14c9d4d6ec..73b818c7a5c 100644 --- a/get-poetry.py +++ b/get-poetry.py @@ -903,7 +903,7 @@ def get_unix_profiles(self): if "zsh" in SHELL: zdotdir = os.getenv("ZDOTDIR", HOME) - profiles.append(os.path.join(zdotdir, ".zprofile")) + ...
quantumlib__Cirq-4877
Default atol for sub_state_vector is too picky for default precision of simulator The following raises an exception instead of finishing successfully: ``` import cirq a, b = cirq.LineQubit.range(2) final_state_vector = cirq.Simulator().simulate(cirq.Circuit( cirq.H(a), cirq.H(b), cirq.CZ(a, b), ...
[ { "content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/cirq-core/cirq/linalg/transformations.py b/cirq-core/cirq/linalg/transformations.py index 12322fe60cf..44b7977de01 100644 --- a/cirq-core/cirq/linalg/transformations.py +++ b/cirq-core/cirq/linalg/transformations.py @@ -396,7 +396,7 @@ def sub_state_vector( keep_indices: List[int], *, defaul...
pulp__pulpcore-3875
The repository of a repository version should be pre-selected when looking up the distribution https://github.com/pulp/pulpcore/blob/0a50a368b5090135076b608c61db01514350d46d/pulpcore/content/handler.py#L291
[ { "content": "import asyncio\nimport logging\nimport os\nimport re\nfrom gettext import gettext as _\n\nfrom aiohttp.client_exceptions import ClientResponseError\nfrom aiohttp.web import FileResponse, StreamResponse, HTTPOk\nfrom aiohttp.web_exceptions import (\n HTTPForbidden,\n HTTPFound,\n HTTPNotFo...
[ { "content": "import asyncio\nimport logging\nimport os\nimport re\nfrom gettext import gettext as _\n\nfrom aiohttp.client_exceptions import ClientResponseError\nfrom aiohttp.web import FileResponse, StreamResponse, HTTPOk\nfrom aiohttp.web_exceptions import (\n HTTPForbidden,\n HTTPFound,\n HTTPNotFo...
diff --git a/CHANGES/plugin_api/3876.bugfix b/CHANGES/plugin_api/3876.bugfix new file mode 100644 index 0000000000..c15b559f86 --- /dev/null +++ b/CHANGES/plugin_api/3876.bugfix @@ -0,0 +1,2 @@ +Fixed potential unnecessary database calls executed after matching distributions in the content +application. diff --git a/pu...
pennersr__django-allauth-1260
Should ConnectionsView be AJAX-enabled? It's the only `FormView` that doesn't include `AjaxCapableProcessFormViewMixin` in its base classes. Is this an oversight? Or is there a reason why the mixin wouldn't work there?
[ { "content": "from django.contrib import messages\nfrom django.http import HttpResponseRedirect\nfrom django.core.urlresolvers import reverse, reverse_lazy\nfrom django.contrib.auth.decorators import login_required\nfrom django.views.generic.base import TemplateView\nfrom django.views.generic.edit import FormVi...
[ { "content": "from django.contrib import messages\nfrom django.http import HttpResponseRedirect\nfrom django.core.urlresolvers import reverse, reverse_lazy\nfrom django.contrib.auth.decorators import login_required\nfrom django.views.generic.base import TemplateView\nfrom django.views.generic.edit import FormVi...
diff --git a/allauth/socialaccount/views.py b/allauth/socialaccount/views.py index a900d8d2b3..13fcd079b5 100644 --- a/allauth/socialaccount/views.py +++ b/allauth/socialaccount/views.py @@ -76,7 +76,7 @@ class LoginErrorView(TemplateView): login_error = LoginErrorView.as_view() -class ConnectionsView(FormView): +...
pandas-dev__pandas-8758
pandas.core.groupby.SeriesGroupBy.hist doesn't take kwargs I'd like to pass certain kwargs to the hist function of a SeriesGroupBy object (alpha, legend, etc). The plot function provides more kwargs (e.g. legend, but not alpha) but no **kwargs to forward to matplotlib. The documentation (viewed with ? in ipython) sugge...
[ { "content": "from pandas.compat import StringIO, callable\nfrom pandas.lib import cache_readonly\nimport sys\nimport warnings\nfrom functools import wraps\n\n\ndef deprecate(name, alternative, alt_name=None):\n alt_name = alt_name or alternative.__name__\n\n def wrapper(*args, **kwargs):\n warning...
[ { "content": "from pandas.compat import StringIO, callable\nfrom pandas.lib import cache_readonly\nimport sys\nimport warnings\nfrom functools import wraps\n\n\ndef deprecate(name, alternative, alt_name=None):\n alt_name = alt_name or alternative.__name__\n\n def wrapper(*args, **kwargs):\n warning...
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index e6843f4a71f72..66b839ed01a29 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -42,3 +42,4 @@ Experimental Bug Fixes ~~~~~~~~~ +- Bug in ``groupby`` signatures that didn't include *args or **kwar...
comic__grand-challenge.org-2513
Display set does not expand **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to https://grand-challenge.org/reader-studies/demo-educational-reader-study/ 2. Click on 'Cases', 'View/Delete Cases' 3. Try and expand the display sets 4...
[ { "content": "import json\n\nimport numpy as np\nfrom actstream.models import Follow\nfrom django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.models import Group\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import Obj...
[ { "content": "import json\n\nimport numpy as np\nfrom actstream.models import Follow\nfrom django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.models import Group\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import Obj...
diff --git a/app/grandchallenge/reader_studies/models.py b/app/grandchallenge/reader_studies/models.py index 50503748a7..04dcb61529 100644 --- a/app/grandchallenge/reader_studies/models.py +++ b/app/grandchallenge/reader_studies/models.py @@ -849,7 +849,7 @@ def description(self): [ ...
pydantic__pydantic-6194
Validating a dict value agains a Literal type gives the wrong ValidationError ### Initial Checks - [X] I have searched GitHub for a duplicate issue and I'm sure this is something new - [X] I have searched Google & StackOverflow for a solution and couldn't find anything - [X] I have read and followed [the docs](https:/...
[ { "content": "import math\nimport re\nfrom collections import OrderedDict, deque\nfrom collections.abc import Hashable as CollectionsHashable\nfrom datetime import date, datetime, time, timedelta\nfrom decimal import Decimal, DecimalException\nfrom enum import Enum, IntEnum\nfrom ipaddress import IPv4Address, I...
[ { "content": "import math\nimport re\nfrom collections import OrderedDict, deque\nfrom collections.abc import Hashable as CollectionsHashable\nfrom datetime import date, datetime, time, timedelta\nfrom decimal import Decimal, DecimalException\nfrom enum import Enum, IntEnum\nfrom ipaddress import IPv4Address, I...
diff --git a/changes/6188-markus1978.md b/changes/6188-markus1978.md new file mode 100644 index 00000000000..2a092decec0 --- /dev/null +++ b/changes/6188-markus1978.md @@ -0,0 +1 @@ +Fixed literal validator errors for unhashable values. \ No newline at end of file diff --git a/pydantic/validators.py b/pydantic/validato...
vispy__vispy-978
docs error - should be PyQt5 was reading [config.py ](https://github.com/vispy/vispy/blob/75b683ed080440e881a2d0066b9ce182f4217569/vispy/util/config.py#L97), and I think it should be `pyqt4|pyqt5|...` rather that `pyt5` line no. 97
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2015, Vispy Development Team.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\n\"\"\"Vispy configuration functions\n\"\"\"\n\nimport os\nfrom os import path as op\nimport json\nimport sys\nimport platform\nimport getopt\nimport ...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2015, Vispy Development Team.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\n\"\"\"Vispy configuration functions\n\"\"\"\n\nimport os\nfrom os import path as op\nimport json\nimport sys\nimport platform\nimport getopt\nimport ...
diff --git a/vispy/util/config.py b/vispy/util/config.py index 525338e67a..581f18ac05 100644 --- a/vispy/util/config.py +++ b/vispy/util/config.py @@ -94,7 +94,7 @@ def _init(): VISPY_HELP = """ VisPy command line arguments: - --vispy-backend=(qt|pyqt4|pyt5|pyside|glfw|pyglet|sdl2|wx) + --vispy-backend=(qt|pyqt4|...
biolab__orange3-4551
PaintData: Output doesn't reset when Reset to Input Data is pressed **Describe the bug** When some file is set as input of Paint Data and if we add more points to the plot and then click `Reset to Input Data`, the plot resets but the actual output doesn't, the widget outputs all file instances plus those added ones. ...
[ { "content": "\nimport os\nimport unicodedata\nimport itertools\nfrom functools import partial, singledispatch\nfrom collections import namedtuple\n\nimport numpy as np\n\nfrom AnyQt.QtGui import (\n QIcon, QPen, QBrush, QPainter, QPixmap, QCursor, QFont, QKeySequence,\n QPalette\n)\nfrom AnyQt.QtWidgets ...
[ { "content": "\nimport os\nimport unicodedata\nimport itertools\nfrom functools import partial, singledispatch\nfrom collections import namedtuple\n\nimport numpy as np\n\nfrom AnyQt.QtGui import (\n QIcon, QPen, QBrush, QPainter, QPixmap, QCursor, QFont, QKeySequence,\n QPalette\n)\nfrom AnyQt.QtWidgets ...
diff --git a/Orange/widgets/data/owpaintdata.py b/Orange/widgets/data/owpaintdata.py index 685ac8cfca7..60945f66a64 100644 --- a/Orange/widgets/data/owpaintdata.py +++ b/Orange/widgets/data/owpaintdata.py @@ -1059,6 +1059,8 @@ def reset_to_input(self): else: # set_dimensions already calls _replot, no need to ...
huggingface__diffusers-5326
Packaging Type Information Not Distributed ### Describe the bug Diffusers does not appear to adhere to [PEP 561 – Distributing and Packaging Type Information](https://peps.python.org/pep-0561/). As a result, static type checkers, such as mypy or pyright, report incorrect errors. According to the docs, this can be r...
[ { "content": "# Copyright 2023 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
[ { "content": "# Copyright 2023 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
diff --git a/setup.py b/setup.py index a2201ac5b3b1..16a77c1fe313 100644 --- a/setup.py +++ b/setup.py @@ -255,6 +255,7 @@ def run(self): url="https://github.com/huggingface/diffusers", package_dir={"": "src"}, packages=find_packages("src"), + package_data={"diffusers": ["py.typed"]}, include_pac...
ansible__ansible-modules-extras-3522
ec2_elb_facts should support check mode ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ec2_elb_facts ##### ANSIBLE VERSION ``` ansible 2.2.0.0 config file = configured module search path = Default w/o overrides ``` ##### CONFIGURATION *N/A* ##### OS / ENVIRONMENT *N/A* ##### SUMMARY ...
[ { "content": "#!/usr/bin/python\n#\n# This is a free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n#\n# This Ansible library is d...
[ { "content": "#!/usr/bin/python\n#\n# This is a free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n#\n# This Ansible library is d...
diff --git a/cloud/amazon/ec2_elb_facts.py b/cloud/amazon/ec2_elb_facts.py index 122e0f70a2c..1c6fb747638 100644 --- a/cloud/amazon/ec2_elb_facts.py +++ b/cloud/amazon/ec2_elb_facts.py @@ -220,7 +220,8 @@ def main(): names={'default': [], 'type': 'list'} ) ) - module = AnsibleModule(argume...
aws-cloudformation__cfn-lint-912
pkg_resources (setuptools) requirement not declared in setup.py *cfn-lint version:* 0.20.1 *Description of issue.* While trying to package cfn-lint for conda-forge, I ran into the issue that pkg_resources is [imported in a few places](https://github.com/aws-cloudformation/cfn-python-lint/search?q=pkg_resources&unsc...
[ { "content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
[ { "content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
diff --git a/setup.py b/setup.py index 69147e0980..c05bb6d459 100644 --- a/setup.py +++ b/setup.py @@ -79,7 +79,8 @@ def get_version(filename): 'aws-sam-translator>=1.10.0', 'jsonpatch', 'jsonschema~=2.6', - 'pathlib2>=2.3.0;python_version<"3.4"' + 'pathlib2>=2.3.0;python_versio...
coala__coala-1597
coala_delete_orig: Modify message Modify message about `Couldn't delete... <filename>` @sils1297 please suggest a better message.
[ { "content": "import os\n\nfrom pyprint.ConsolePrinter import ConsolePrinter\n\nfrom coalib.output.printers.LogPrinter import LogPrinter\nfrom coalib.parsing import Globbing\nfrom coalib.settings.ConfigurationGathering import get_config_directory\nfrom coalib.settings.Section import Section\n\n\ndef main(log_pr...
[ { "content": "import os\n\nfrom pyprint.ConsolePrinter import ConsolePrinter\n\nfrom coalib.output.printers.LogPrinter import LogPrinter\nfrom coalib.parsing import Globbing\nfrom coalib.settings.ConfigurationGathering import get_config_directory\nfrom coalib.settings.Section import Section\n\n\ndef main(log_pr...
diff --git a/coalib/coala_delete_orig.py b/coalib/coala_delete_orig.py index 1d79993f9a..231ab20379 100644 --- a/coalib/coala_delete_orig.py +++ b/coalib/coala_delete_orig.py @@ -26,7 +26,7 @@ def main(log_printer=None, section: Section=None): os.remove(ofile) except OSError as oserror: ...
ivy-llc__ivy-25492
multinomial
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.func_wrapper import with_supported_device_and_dtypes, with_unsupported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_supported_dtypes(\n {\"2.5.1 an...
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.func_wrapper import with_supported_device_and_dtypes, with_unsupported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_supported_dtypes(\n {\"2.5.1 an...
diff --git a/ivy/functional/frontends/paddle/random.py b/ivy/functional/frontends/paddle/random.py index f5e84b9c43c65..9d45b9f23ea20 100644 --- a/ivy/functional/frontends/paddle/random.py +++ b/ivy/functional/frontends/paddle/random.py @@ -7,6 +7,16 @@ ) +@with_supported_dtypes( + {"2.5.1 and below": ("float32...
ethereum__web3.py-912
Upgrade to or add support for websockets v5 ### What was wrong? We are currently using the `websockets` library's v4 line. The v5 line is out. ### How can it be fixed? Look into adding support for both v4 and v5. If this is too cumbersome, we can simply upgrade to requiring `>=v5`
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom setuptools import (\n find_packages,\n setup,\n)\n\n\nsetup(\n name='web3',\n # *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.\n version='4.3.0',\n description=\"\"\"Web3.py\"\"\",\n long...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom setuptools import (\n find_packages,\n setup,\n)\n\n\nsetup(\n name='web3',\n # *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.\n version='4.3.0',\n description=\"\"\"Web3.py\"\"\",\n long...
diff --git a/setup.py b/setup.py index 9dbc766378..c46b52ab82 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ "lru-dict>=1.1.6,<2.0.0", "eth-hash[pycryptodome]", "requests>=2.16.0,<3.0.0", - "websockets>=4.0.1,<5.0.0", + "websockets>=5.0.1,<6.0.0", "pypiwin32>=22...
coala__coala-1954
Annotations: handling exceptions When writing custom annotation, user should be able to access exceptions, that it's raising, to debug his function. Currently all that he gets is the information that something went wrong, e. g. ``` [WARNING][14:09:44] The bear ClangComplexityBear cannot be executed. Unable to convert ...
[ { "content": "from collections import OrderedDict\nfrom copy import copy\nfrom inspect import getfullargspec, ismethod\n\nfrom coalib.settings.DocumentationComment import DocumentationComment\n\n\nclass FunctionMetadata:\n str_nodesc = \"No description given.\"\n str_optional = \"Optional, defaults to '{}...
[ { "content": "from collections import OrderedDict\nfrom copy import copy\nfrom inspect import getfullargspec, ismethod\n\nfrom coalib.settings.DocumentationComment import DocumentationComment\n\n\nclass FunctionMetadata:\n str_nodesc = \"No description given.\"\n str_optional = \"Optional, defaults to '{}...
diff --git a/coalib/settings/FunctionMetadata.py b/coalib/settings/FunctionMetadata.py index d6228247ca..045ca8c87b 100644 --- a/coalib/settings/FunctionMetadata.py +++ b/coalib/settings/FunctionMetadata.py @@ -102,7 +102,7 @@ def _get_param(param, section, annotation): try: return annotation(se...
PaddlePaddle__models-481
Currently ci doesn't work properly
[ { "content": "#coding=utf-8\n\nimport math\n\nimport paddle.v2 as paddle\n\n__all__ = [\"conv_seq2seq\"]\n\n\ndef gated_conv_with_batchnorm(input,\n size,\n context_len,\n context_start=None,\n le...
[ { "content": "#coding=utf-8\n\nimport math\n\nimport paddle.v2 as paddle\n\n__all__ = [\"conv_seq2seq\"]\n\n\ndef gated_conv_with_batchnorm(input,\n size,\n context_len,\n context_start=None,\n le...
diff --git a/.travis.yml b/.travis.yml index 0f67f656fd..52bfd5a1ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,20 +17,26 @@ addons: - python-pip - python2.7-dev ssh_known_hosts: 52.76.173.135 + before_install: - sudo pip install -U virtualenv pre-commit pip - docker pull paddlepaddle/pa...
GoogleCloudPlatform__PerfKitBenchmarker-1320
Default GCP config for gpu_pcie_bandwidth is broken When running the gpu_pcie_bandwidth benchmark under the default GCP config, the following error is raised: ``` ERROR: (gcloud.compute.instances.create) Some requests did not succeed: - Invalid value for field 'resource.disks[0].initializeParams.sourceImage': 'http...
[ { "content": "# Copyright 2017 PerfKitBenchmarker Authors. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "# Copyright 2017 PerfKitBenchmarker Authors. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/perfkitbenchmarker/linux_benchmarks/gpu_pcie_bandwidth_benchmark.py b/perfkitbenchmarker/linux_benchmarks/gpu_pcie_bandwidth_benchmark.py index 276edd7c53..9f9c1d4414 100644 --- a/perfkitbenchmarker/linux_benchmarks/gpu_pcie_bandwidth_benchmark.py +++ b/perfkitbenchmarker/linux_benchmarks/gpu_pcie_bandwidt...
scipy__scipy-5894
scipy.sparse.linalg.LinearOperator unpickle error ``` python import numpy import scipy.sparse.linalg import pickle M = N = 3 def matvec(x): return numpy.zeros(N) A = scipy.sparse.linalg.LinearOperator((M, N), matvec) s = pickle.dumps(A) B = pickle.loads(s) ``` gives ``` $ python3 test.py Traceback (most recent...
[ { "content": "\"\"\"Abstract linear algebra library.\n\nThis module defines a class hierarchy that implements a kind of \"lazy\"\nmatrix representation, called the ``LinearOperator``. It can be used to do\nlinear algebra with extremely large sparse or structured matrices, without\nrepresenting those explicitly ...
[ { "content": "\"\"\"Abstract linear algebra library.\n\nThis module defines a class hierarchy that implements a kind of \"lazy\"\nmatrix representation, called the ``LinearOperator``. It can be used to do\nlinear algebra with extremely large sparse or structured matrices, without\nrepresenting those explicitly ...
diff --git a/scipy/sparse/linalg/interface.py b/scipy/sparse/linalg/interface.py index 19c16369021c..208bd537d15a 100644 --- a/scipy/sparse/linalg/interface.py +++ b/scipy/sparse/linalg/interface.py @@ -139,7 +139,6 @@ def __new__(cls, *args, **kwargs): raise TypeError("LinearOperator subclass should i...
pypa__pip-1926
git --download with non-editable git+ssh fails Hi, when I call: $ pip install --download requirements/sdists -r requirements/pip_local.txt I'm getting the following error: Downloading/unpacking rukzuklib from git+ssh://xxx@xxx@master (from -r requirements/pip_local.txt (line 14)) Cloning ssh://xxx@xxx (to master) ...
[ { "content": "import os\nimport shutil\n\nfrom pip._vendor import pkg_resources\nfrom pip.compat import HTTPError\nfrom pip.download import (url_to_path, unpack_vcs_link, is_vcs_url,\n is_file_url, unpack_file_url, unpack_http_url)\nfrom pip.exceptions import (InstallationError, BestVer...
[ { "content": "import os\nimport shutil\n\nfrom pip._vendor import pkg_resources\nfrom pip.compat import HTTPError\nfrom pip.download import (url_to_path, unpack_vcs_link, is_vcs_url,\n is_file_url, unpack_file_url, unpack_http_url)\nfrom pip.exceptions import (InstallationError, BestVer...
diff --git a/AUTHORS.txt b/AUTHORS.txt index 1d195c70d9b..54bfdbe4c5c 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -65,6 +65,7 @@ Jonas Nockert <jonasnockert@gmail.com> Jorge Niedbalski <niedbalski@gmail.com> Josh Bronson <jabronson@gmail.com> Josh Hansen <josh@skwash.net> +Josh Schneier <josh.schneier@gmail.com> ...
facebookresearch__hydra-269
[Bug] merging if individual files (not in group) happens in wrong order something like: ``` defaults: - group: opt1 - file ``` caused the file to be merged in before the group.
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n\"\"\"\nConfiguration loader\n\"\"\"\n\nimport copy\nimport os\n\nfrom omegaconf import OmegaConf, DictConfig, ListConfig, open_dict\nfrom pkg_resources import (\n resource_stream,\n resource_exists,\n resource_listdi...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n\"\"\"\nConfiguration loader\n\"\"\"\n\nimport copy\nimport os\n\nfrom omegaconf import OmegaConf, DictConfig, ListConfig, open_dict\nfrom pkg_resources import (\n resource_stream,\n resource_exists,\n resource_listdi...
diff --git a/hydra/_internal/config_loader.py b/hydra/_internal/config_loader.py index a8ce163f927..e3448f289a0 100644 --- a/hydra/_internal/config_loader.py +++ b/hydra/_internal/config_loader.py @@ -187,9 +187,6 @@ def get_key(d1): idx = key_to_idx[key] primary[idx] = d ...
getsentry__sentry-53802
Recently Active Members should be first on the dropdown When selecting an action for an issue alert, Recently Active Members should be the first option and pre-selected. ![Image](https://user-images.githubusercontent.com/1660873/254756637-1ded483a-d81f-4597-9c14-9c1b3824dad4.png)
[ { "content": "from __future__ import annotations\n\nfrom enum import Enum\nfrom typing import Optional\n\nfrom sentry.services.hybrid_cloud import ValueEqualityEnum\n\n\"\"\"\nTODO(postgres): We've encoded these enums as integers to facilitate\ncommunication with the DB. We'd prefer to encode them as strings to...
[ { "content": "from __future__ import annotations\n\nfrom enum import Enum\nfrom typing import Optional\n\nfrom sentry.services.hybrid_cloud import ValueEqualityEnum\n\n\"\"\"\nTODO(postgres): We've encoded these enums as integers to facilitate\ncommunication with the DB. We'd prefer to encode them as strings to...
diff --git a/src/sentry/notifications/types.py b/src/sentry/notifications/types.py index fa8e9e6c521442..3817d30734e189 100644 --- a/src/sentry/notifications/types.py +++ b/src/sentry/notifications/types.py @@ -271,8 +271,8 @@ class FallthroughChoiceType(Enum): FALLTHROUGH_CHOICES = [ - (FallthroughChoiceType.A...
ansible__ansible-lint-1625
False positive: async jobs <!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and master branch are affected too --> ##### Summary <!--- Explain the problem briefly below --> A `command` module task that is run as an async job is incorrectly treated as a...
[ { "content": "# Copyright (c) 2016 Will Thames <will@thames.id.au>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights...
[ { "content": "# Copyright (c) 2016 Will Thames <will@thames.id.au>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights...
diff --git a/examples/playbooks/command-check-failure.yml b/examples/playbooks/command-check-failure.yml index d58c09d786..3024e8e90d 100644 --- a/examples/playbooks/command-check-failure.yml +++ b/examples/playbooks/command-check-failure.yml @@ -9,3 +9,10 @@ shell: echo blah args: chdir: X + + - name...
safe-global__safe-config-service-68
Add /check endpoint This endpoint should be used to check if the server is alive and ready to receive requests
[ { "content": "from django.contrib import admin\nfrom django.urls import include, path\n\nurlpatterns = [\n path(\"api/v1/\", include(\"safe_apps.urls\", namespace=\"v1\")),\n path(\"admin/\", admin.site.urls),\n]\n", "path": "src/config/urls.py" } ]
[ { "content": "from django.contrib import admin\nfrom django.http import HttpResponse\nfrom django.urls import include, path\n\nurlpatterns = [\n path(\"api/v1/\", include(\"safe_apps.urls\", namespace=\"v1\")),\n path(\"admin/\", admin.site.urls),\n path(\"check/\", lambda request: HttpResponse(\"Ok\")...
diff --git a/src/config/urls.py b/src/config/urls.py index ab2583a0..bdf246e4 100644 --- a/src/config/urls.py +++ b/src/config/urls.py @@ -1,7 +1,9 @@ from django.contrib import admin +from django.http import HttpResponse from django.urls import include, path urlpatterns = [ path("api/v1/", include("safe_apps...
liqd__a4-meinberlin-3246
#3491 [mB] add video embed to interactive event **URL:** https://meinberlin-dev.liqd.net/projekte/design-project/ **device & browser:** *Safari Version 14.0 (15610.1.28.1.9, 15610)* **Comment/Question:** *Just to confirm, the live stream field should appear just when the project is published? Cause, I can't select...
[ { "content": "from django.urls import reverse\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.dashboard import DashboardComponent\nfrom adhocracy4.dashboard import components\n\nfrom . import views\n\n\nclass LiveStreamComponent(DashboardComponent):\n identifier = 'live_stream'\n ...
[ { "content": "from django.urls import reverse\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.dashboard import DashboardComponent\nfrom adhocracy4.dashboard import components\n\nfrom . import views\n\n\nclass LiveStreamComponent(DashboardComponent):\n identifier = 'live_stream'\n ...
diff --git a/meinberlin/apps/livequestions/dashboard.py b/meinberlin/apps/livequestions/dashboard.py index 7c3906bf36..aae468d6d0 100644 --- a/meinberlin/apps/livequestions/dashboard.py +++ b/meinberlin/apps/livequestions/dashboard.py @@ -14,8 +14,7 @@ class LiveStreamComponent(DashboardComponent): def is_effect...
ivy-llc__ivy-19452
rfftn
[ { "content": "import ivy\nfrom ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back\nfrom ivy.func_wrapper import with_unsupported_dtypes\n\n\n_SWAP_DIRECTION_MAP = {\n None: \"forward\",\n \"backward\": \"forward\",\n \"ortho\": \"ortho\",\n \"forward\": \"backward\",\n}\n\n\nd...
[ { "content": "import ivy\nfrom ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back\nfrom ivy.func_wrapper import with_unsupported_dtypes\n\n\n_SWAP_DIRECTION_MAP = {\n None: \"forward\",\n \"backward\": \"forward\",\n \"ortho\": \"ortho\",\n \"forward\": \"backward\",\n}\n\n\nd...
diff --git a/ivy/functional/frontends/numpy/fft/discrete_fourier_transform.py b/ivy/functional/frontends/numpy/fft/discrete_fourier_transform.py index 0a92c93f4dcd7..39db892d53f6c 100644 --- a/ivy/functional/frontends/numpy/fft/discrete_fourier_transform.py +++ b/ivy/functional/frontends/numpy/fft/discrete_fourier_tran...
Mailu__Mailu-2958
Vulnerability in ClamAV ## Environment & Version ### Environment - [ ] docker compose - [x] kubernetes - [ ] docker swarm ### Version - Version: `master` ## Description ClamAV version 0.105.2 is vulnerable to [CVE-2023-20197](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-20197) Unfortunat...
[ { "content": "#!/usr/bin/env python3\n\nimport os\nimport glob\nimport logging as log\nimport requests\nimport shutil\nimport sys\nimport time\nfrom socrate import system,conf\n\nenv = system.set_env()\n\n# Actual startup script\n\nconfig_files = []\nfor rspamd_file in glob.glob(\"/conf/*\"):\n conf.jinja(rs...
[ { "content": "#!/usr/bin/env python3\n\nimport os\nimport glob\nimport logging as log\nimport requests\nimport shutil\nimport sys\nimport time\nfrom socrate import system,conf\n\nenv = system.set_env()\n\n# Actual startup script\n\nconfig_files = []\nfor rspamd_file in glob.glob(\"/conf/*\"):\n conf.jinja(rs...
diff --git a/core/base/Dockerfile b/core/base/Dockerfile index 68febcd61..50d1f49a4 100644 --- a/core/base/Dockerfile +++ b/core/base/Dockerfile @@ -3,7 +3,7 @@ # base system image (intermediate) # Note when updating the alpine tag, first manually run the workflow .github/workflows/mirror.yml. # Just run the workflo...
plotly__plotly.py-4021
write_html fails with latest plotly.min.js version 2.17.1 The latest plotly.min.js version 2.17.1 contains special characters which are not supported by the Windows cp1252 default codec. E.g. `\u25c4` (https://www.fileformat.info/info/unicode/char/25c4/index.htm). Reproducible example (Win 10, 64bit, **plotly 5.12*...
[ { "content": "import uuid\nimport os\nfrom pathlib import Path\nimport webbrowser\n\nfrom _plotly_utils.optional_imports import get_module\nfrom plotly.io._utils import validate_coerce_fig_to_dict, plotly_cdn_url\nfrom plotly.offline.offline import _get_jconfig, get_plotlyjs\nfrom plotly import utils\n\n_json =...
[ { "content": "import uuid\nimport os\nfrom pathlib import Path\nimport webbrowser\n\nfrom _plotly_utils.optional_imports import get_module\nfrom plotly.io._utils import validate_coerce_fig_to_dict, plotly_cdn_url\nfrom plotly.offline.offline import _get_jconfig, get_plotlyjs\nfrom plotly import utils\n\n_json =...
diff --git a/packages/python/plotly/plotly/io/_html.py b/packages/python/plotly/plotly/io/_html.py index 606df721f33..765dd456efb 100644 --- a/packages/python/plotly/plotly/io/_html.py +++ b/packages/python/plotly/plotly/io/_html.py @@ -542,7 +542,7 @@ def write_html( bundle_path = path.parent / "plotly.min.js...
microsoft__torchgeo-502
datasets.SEN12MS - dB values are cast to int32 When loading samples from the SEN12MS dataset, the Sentinel-1 dB values (floats ranging from around -30 to 0) are cast to int32, discarding a lot of important information. [This line](https://github.com/microsoft/torchgeo/blob/main/torchgeo/datasets/sen12ms.py#L269) se...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\n\"\"\"SEN12MS dataset.\"\"\"\n\nimport os\nfrom typing import Callable, Dict, Optional, Sequence, Tuple\n\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport rasterio\nimport torch\nfrom torc...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\n\"\"\"SEN12MS dataset.\"\"\"\n\nimport os\nfrom typing import Callable, Dict, Optional, Sequence, Tuple\n\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport rasterio\nimport torch\nfrom torc...
diff --git a/torchgeo/datasets/sen12ms.py b/torchgeo/datasets/sen12ms.py index 2c21357d519..44e47af86ad 100644 --- a/torchgeo/datasets/sen12ms.py +++ b/torchgeo/datasets/sen12ms.py @@ -266,7 +266,9 @@ def _load_raster(self, filename: str, source: str) -> Tensor: "{}_{}_{}_{}_{}".format(*parts), ...
kivy__kivy-8446
Navigation drawer MDNavigationDrawerItem cursor pointing highlight at wrong position **Software Versions** Environment: Windows 10 22H2 Build 19045 Python 3.10.5 Kivy 2.2.1 KivyMD 1.2.0.dev0 from master branch **Describe the bug** Navigation drawer MDNavigationDrawerItem cursor pointing highlight at wrong pos...
[ { "content": "# found a way to include it more easily.\n'''\nSDL2 Window\n===========\n\nWindowing provider directly based on our own wrapped version of SDL.\n\nTODO:\n - fix keys\n - support scrolling\n - clean code\n - manage correctly all sdl events\n\n'''\n\n__all__ = ('WindowSDL', )\n\nfrom os....
[ { "content": "# found a way to include it more easily.\n'''\nSDL2 Window\n===========\n\nWindowing provider directly based on our own wrapped version of SDL.\n\nTODO:\n - fix keys\n - support scrolling\n - clean code\n - manage correctly all sdl events\n\n'''\n\n__all__ = ('WindowSDL', )\n\nfrom os....
diff --git a/kivy/core/window/window_sdl2.py b/kivy/core/window/window_sdl2.py index 62f2cf9b58..dc1d476614 100644 --- a/kivy/core/window/window_sdl2.py +++ b/kivy/core/window/window_sdl2.py @@ -397,6 +397,7 @@ def _update_density_and_dpi(self): try: hwnd = windll.user32.GetActiveWindow() ...
spotify__luigi-2303
Redshift COPY fails in luigi 2.7.1 when columns are not provided Running Redshift COPY jobs with `columns = None` to prohibit table creation fails in luigi 2.7.1 with ``` TypeError: object of type 'NoneType' has no len() ``` The root cause seems to be https://github.com/spotify/luigi/pull/2245/files#diff-778ea3d...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2012-2015 Spotify AB\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n#...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2012-2015 Spotify AB\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n#...
diff --git a/luigi/contrib/redshift.py b/luigi/contrib/redshift.py index ee2eee84ef..ef47a06e40 100644 --- a/luigi/contrib/redshift.py +++ b/luigi/contrib/redshift.py @@ -335,7 +335,7 @@ def copy(self, cursor, f): """ logger.info("Inserting file: %s", f) colnames = '' - if len(self.col...
lutris__lutris-1449
"Prefer system libraries" has no effect in next As the Wine versions on Lutris are build on Ubuntu 16.04, they are incompatible with the version of fontconfig that Arch provides, resulting in errors in applications (like Battle.Net not starting properly). To fix that, I need to enable "Prefer System Libraries", which ...
[ { "content": "\"\"\"System utilities\"\"\"\n# pylint: disable=inconsistent-return-statements\nimport platform\nimport resource\nimport hashlib\nimport signal\nimport os\nimport re\nimport shutil\nimport string\nimport subprocess\nimport sys\nimport traceback\nfrom collections import defaultdict\n\nfrom lutris.u...
[ { "content": "\"\"\"System utilities\"\"\"\n# pylint: disable=inconsistent-return-statements\nimport platform\nimport resource\nimport hashlib\nimport signal\nimport os\nimport re\nimport shutil\nimport string\nimport subprocess\nimport sys\nimport traceback\nfrom collections import defaultdict\n\nfrom lutris.u...
diff --git a/lutris/util/system.py b/lutris/util/system.py index 9662cc5281..b1b3b67e0d 100644 --- a/lutris/util/system.py +++ b/lutris/util/system.py @@ -90,6 +90,7 @@ class LinuxSystem: ('/lib', '/lib64'), ('/lib32', '/lib64'), ('/usr/lib', '/usr/lib64'), + ('/usr/lib32', '/usr/lib64...
open-mmlab__mmengine-1085
[Bug] when log_with_hierarchy is `True`, the running error appears in `_collect_scalars` for log processor ### Prerequisite - [X] I have searched [Issues](https://github.com/open-mmlab/mmengine/issues) and [Discussions](https://github.com/open-mmlab/mmengine/discussions) but cannot get the expected help. - [X] The bug...
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport copy\nimport datetime\nfrom collections import OrderedDict\nfrom itertools import chain\nfrom typing import List, Optional, Tuple\n\nimport numpy as np\nimport torch\n\nfrom mmengine.device import get_max_cuda_memory, is_cuda_available\nfrom ...
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport copy\nimport datetime\nfrom collections import OrderedDict\nfrom itertools import chain\nfrom typing import List, Optional, Tuple\n\nimport numpy as np\nimport torch\n\nfrom mmengine.device import get_max_cuda_memory, is_cuda_available\nfrom ...
diff --git a/mmengine/runner/log_processor.py b/mmengine/runner/log_processor.py index 1259b5cc94..75047b3733 100644 --- a/mmengine/runner/log_processor.py +++ b/mmengine/runner/log_processor.py @@ -341,6 +341,7 @@ def _collect_scalars(self, Returns: dict: Statistical values of logs. """ ...
biolab__orange3-1840
Scatter plot: Report crashes when the widget has no data https://sentry.io/biolab/orange3/issues/197554235/ ``` AttributeError: 'NoneType' object has no attribute 'is_discrete' Module "Orange.canvas.report.report", line 32, in show_report self.create_report_html() Module "Orange.canvas.report.report", line 5...
[ { "content": "import numpy as np\n\nfrom AnyQt.QtCore import QSize, Qt, QTimer\nfrom AnyQt.QtGui import (\n QPen, QFont, QFontInfo, QPalette, QKeySequence,\n)\nfrom AnyQt.QtWidgets import QApplication, QAction\n\nfrom sklearn.neighbors import NearestNeighbors\nfrom sklearn.metrics import r2_score\n\nimport O...
[ { "content": "import numpy as np\n\nfrom AnyQt.QtCore import QSize, Qt, QTimer\nfrom AnyQt.QtGui import (\n QPen, QFont, QFontInfo, QPalette, QKeySequence,\n)\nfrom AnyQt.QtWidgets import QApplication, QAction\n\nfrom sklearn.neighbors import NearestNeighbors\nfrom sklearn.metrics import r2_score\n\nimport O...
diff --git a/Orange/widgets/visualize/owscatterplot.py b/Orange/widgets/visualize/owscatterplot.py index 21007ce64c4..6496041bf40 100644 --- a/Orange/widgets/visualize/owscatterplot.py +++ b/Orange/widgets/visualize/owscatterplot.py @@ -494,6 +494,8 @@ def get_widget_name_extension(self): return "{} vs {}"...
wagtail__wagtail-1272
Getting an item after slicing ElasticSearchResults object gives wrong result For example, let's say we have a list of results with the items A, B, C and D If you run results[0]. You get A If you run results[2:]. You get [C, D] But if you run results[2:][0]. You will get A (you should get C) Fix coming shortly
[ { "content": "from six import text_type\n\nfrom django.db.models.query import QuerySet\nfrom django.db.models.lookups import Lookup\nfrom django.db.models.sql.where import SubqueryConstraint, WhereNode\n\nfrom wagtail.wagtailsearch.index import class_is_indexed\n\n\nclass FilterError(Exception):\n pass\n\n\n...
[ { "content": "from six import text_type\n\nfrom django.db.models.query import QuerySet\nfrom django.db.models.lookups import Lookup\nfrom django.db.models.sql.where import SubqueryConstraint, WhereNode\n\nfrom wagtail.wagtailsearch.index import class_is_indexed\n\n\nclass FilterError(Exception):\n pass\n\n\n...
diff --git a/wagtail/wagtailsearch/backends/base.py b/wagtail/wagtailsearch/backends/base.py index 2c51f54a1d9f..3a2d25dd59ff 100644 --- a/wagtail/wagtailsearch/backends/base.py +++ b/wagtail/wagtailsearch/backends/base.py @@ -155,8 +155,8 @@ def __getitem__(self, key): if self._results_cache is not None: ...
joke2k__faker-1132
invalid pt_BR cellphone numbers being generated * Faker version: 4.0.2 * OS: Ubuntu 16.04.6 LTS If I got [MSISDN](https://en.wikipedia.org/wiki/MSISDN) right, and it is possible I did it wrong since I know nothing about telecom, they are just meant to cellphones and not landline phones. In Brazil cellphones started...
[ { "content": "from .. import Provider as PhoneNumberProvider\n\n\nclass Provider(PhoneNumberProvider):\n formats = (\n '+55 (011) #### ####',\n '+55 (021) #### ####',\n '+55 (031) #### ####',\n '+55 (041) #### ####',\n '+55 (051) #### ####',\n '+55 (061) #### ####',\...
[ { "content": "from .. import Provider as PhoneNumberProvider\n\n\nclass Provider(PhoneNumberProvider):\n formats = (\n '+55 (011) #### ####',\n '+55 (021) #### ####',\n '+55 (031) #### ####',\n '+55 (041) #### ####',\n '+55 (051) #### ####',\n '+55 (061) #### ####',\...
diff --git a/faker/providers/phone_number/pt_BR/__init__.py b/faker/providers/phone_number/pt_BR/__init__.py index 5e944dd05f..e425a455c5 100644 --- a/faker/providers/phone_number/pt_BR/__init__.py +++ b/faker/providers/phone_number/pt_BR/__init__.py @@ -78,15 +78,6 @@ class Provider(PhoneNumberProvider): ) ...
python-poetry__poetry-604
Building sdist is slow with wide exclude pattern <!-- Hi there! Thank you for wanting to make Poetry better. Before you submit this; let's make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill these first. --> <!-- Checked checkb...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport re\nimport shutil\nimport tempfile\n\nfrom collections import defaultdict\nfrom contextlib import contextmanager\n\nfrom poetry.utils._compat import Path\nfrom poetry.vcs import get_vcs\n\nfrom ..metadata import Metadata\nfrom ..utils.module import Module...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport re\nimport shutil\nimport tempfile\n\nfrom collections import defaultdict\nfrom contextlib import contextmanager\n\nfrom poetry.utils._compat import Path\nfrom poetry.vcs import get_vcs\n\nfrom ..metadata import Metadata\nfrom ..utils.module import Module...
diff --git a/poetry/masonry/builders/builder.py b/poetry/masonry/builders/builder.py index 477ec8dac6b..3d7c319541b 100644 --- a/poetry/masonry/builders/builder.py +++ b/poetry/masonry/builders/builder.py @@ -63,7 +63,10 @@ def find_excluded_files(self): # type: () -> list result.append(file) - ...
internetarchive__openlibrary-7836
Members of `/usergroup/read-only` can edit covers <!-- What problem are we solving? What does the experience look like today? What are the symptoms? --> Members of the `read-only` usergroup are still able to upload cover images and URLs via the manage covers modal. ### Evidence / Screenshot (if possible) ### Rel...
[ { "content": "\"\"\"Handle book cover/author photo upload.\n\"\"\"\nfrom logging import getLogger\n\nimport requests\nimport web\nfrom io import BytesIO\n\nfrom infogami.utils import delegate\nfrom infogami.utils.view import safeint\nfrom openlibrary import accounts\nfrom openlibrary.plugins.upstream.models imp...
[ { "content": "\"\"\"Handle book cover/author photo upload.\n\"\"\"\nfrom logging import getLogger\n\nimport requests\nimport web\nfrom io import BytesIO\n\nfrom infogami.utils import delegate\nfrom infogami.utils.view import safeint\nfrom openlibrary import accounts\nfrom openlibrary.plugins.upstream.models imp...
diff --git a/openlibrary/plugins/upstream/covers.py b/openlibrary/plugins/upstream/covers.py index 1a6a784b1f0..a2111ee110d 100644 --- a/openlibrary/plugins/upstream/covers.py +++ b/openlibrary/plugins/upstream/covers.py @@ -36,6 +36,10 @@ def POST(self, key): if not book: raise web.notfound("") ...
pypa__pipenv-2261
TypeError: On `pipenv graph` <details><summary>$ python -m pipenv.help output</summary> Pipenv version: `'2018.05.18'` Pipenv location: `'/usr/local/lib/python3.6/site-packages/pipenv'` Python location: `'/usr/local/opt/python/bin/python3.6'` Other Python installations in `PATH`: - `2.7`: `/usr/bin/python2...
[ { "content": "# -*- coding: utf-8 -*-\nimport io\nimport json\nimport os\nimport re\nimport sys\nimport base64\nimport hashlib\nimport contoml\nfrom first import first\nimport pipfile\nimport pipfile.api\nimport six\nimport toml\nimport json as simplejson\n\ntry:\n from pathlib import Path\nexcept ImportErro...
[ { "content": "# -*- coding: utf-8 -*-\nimport io\nimport json\nimport os\nimport re\nimport sys\nimport base64\nimport hashlib\nimport contoml\nfrom first import first\nimport pipfile\nimport pipfile.api\nimport six\nimport toml\nimport json as simplejson\n\ntry:\n from pathlib import Path\nexcept ImportErro...
diff --git a/pipenv/project.py b/pipenv/project.py index 98dd4b226a..986b7683c0 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -216,8 +216,8 @@ def requirements_exists(self): return bool(self.requirements_location) def is_venv_in_project(self): - return ( - PIPENV_VENV_IN_PR...
netbox-community__netbox-11525
Error on non-regex search for invalid regex string ### NetBox version v3.4.2 ### Python version 3.8 ### Steps to Reproduce 1. Create a *Site* with Name = *"Foo (Bar)"* and Slug = *"foo-bar"* 2. Perform a default global search or explicit *Partial match* search for the string *"(Bar"* 3. Receive error ...
[ { "content": "import datetime\nimport decimal\nimport json\nimport re\nfrom decimal import Decimal\nfrom itertools import count, groupby\n\nimport bleach\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core import serializers\nfrom django.db.models import Count, OuterRef, Subquery\nfrom...
[ { "content": "import datetime\nimport decimal\nimport json\nimport re\nfrom decimal import Decimal\nfrom itertools import count, groupby\n\nimport bleach\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core import serializers\nfrom django.db.models import Count, OuterRef, Subquery\nfrom...
diff --git a/netbox/utilities/utils.py b/netbox/utilities/utils.py index 38a9740363f..15275f858e7 100644 --- a/netbox/utilities/utils.py +++ b/netbox/utilities/utils.py @@ -517,7 +517,7 @@ def highlight_string(value, highlight, trim_pre=None, trim_post=None, trim_place """ # Split value on highlight string ...
pypa__pip-9569
Set encoding for tar file and use unicode path for unpacking When tarfile.TarFile decodes filenames in Python 2.7 by default it uses sys.getfilesystemencoding. On Windows this returns "mbcs", which is lossy when converting from proper utf-8 to bytes (results in '?' for out of range characters). We now pass an enc...
[ { "content": "\"\"\"Utilities related archives.\n\"\"\"\n\nimport logging\nimport os\nimport shutil\nimport stat\nimport tarfile\nimport zipfile\nfrom typing import Iterable, List, Optional\nfrom zipfile import ZipInfo\n\nfrom pip._internal.exceptions import InstallationError\nfrom pip._internal.utils.filetypes...
[ { "content": "\"\"\"Utilities related archives.\n\"\"\"\n\nimport logging\nimport os\nimport shutil\nimport stat\nimport tarfile\nimport zipfile\nfrom typing import Iterable, List, Optional\nfrom zipfile import ZipInfo\n\nfrom pip._internal.exceptions import InstallationError\nfrom pip._internal.utils.filetypes...
diff --git a/news/7667.bugfix.rst b/news/7667.bugfix.rst new file mode 100644 index 00000000000..e42e128e97e --- /dev/null +++ b/news/7667.bugfix.rst @@ -0,0 +1 @@ +Fix extraction of files with utf-8 encoded paths from tars. diff --git a/src/pip/_internal/utils/unpacking.py b/src/pip/_internal/utils/unpacking.py index ...
spack__spack-2961
Fail to build libmng [AutotoolsPackage] @alalazo I got this error while installing `libmng`: ``` ... ==> Already patched libmng ==> Building libmng [AutotoolsPackage] ==> Executing phase : 'autoreconf' ==> Executing phase : 'configure' ==> Error: ProcessError: Command exited with status 1: '/my/path/spack...
[ { "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/libmng/package.py b/var/spack/repos/builtin/packages/libmng/package.py index a867c1997e22f8..c8ea90401b2392 100644 --- a/var/spack/repos/builtin/packages/libmng/package.py +++ b/var/spack/repos/builtin/packages/libmng/package.py @@ -42,3 +42,7 @@ def patch(self): #...
adamchainz__django-mysql-81
Fix SmartIterator ZeroDivisionError Seen happening on an iterator in a test case which iterated very quickly: ``` emacs +170 /opt/yplan/venv/local/lib/python2.7/site-packages/django_mysql/models/query.py # __iter__ self.adjust_chunk_size(chunk, timer.total_time) emacs +228 /opt/yplan/venv/local/lib/python2.7/...
[ { "content": "# -*- coding:utf-8 -*-\nfrom __future__ import division\n\nimport os\nimport pty\nimport time\nfrom contextlib import contextmanager\nfrom subprocess import PIPE, Popen, call\nfrom threading import Lock, Thread\n\nfrom django.utils.six.moves.queue import Empty, Queue\n\n\nclass WeightedAverageRate...
[ { "content": "# -*- coding:utf-8 -*-\nfrom __future__ import division\n\nimport os\nimport pty\nimport time\nfrom contextlib import contextmanager\nfrom subprocess import PIPE, Popen, call\nfrom threading import Lock, Thread\n\nfrom django.utils.six.moves.queue import Empty, Queue\n\n\nclass WeightedAverageRate...
diff --git a/django_mysql/utils.py b/django_mysql/utils.py index a133c14e..2c530ec9 100644 --- a/django_mysql/utils.py +++ b/django_mysql/utils.py @@ -46,7 +46,12 @@ def update(self, n, t): self.avg_n = n self.avg_t = t - avg_rate = self.avg_n / self.avg_t + try: + a...
hedyorg__hedy-503
Error message location in the web interface This is more of a UX problem. On my screen, the error message appears below the code box, and thus sometimes not visible if there are to many 'Try this' boxes above. So that I didn't figure something was wrong directly without visual feedback. To reproduce, type garbage i...
[ { "content": "import sys\nif (sys.version_info.major < 3 or sys.version_info.minor < 6):\n print ('Hedy requires Python 3.6 or newer to run. However, your version of Python is', '.'.join ([str (sys.version_info.major), str (sys.version_info.minor), str (sys.version_info.micro)]))\n quit ()\n\n# coding=utf...
[ { "content": "import sys\nif (sys.version_info.major < 3 or sys.version_info.minor < 6):\n print ('Hedy requires Python 3.6 or newer to run. However, your version of Python is', '.'.join ([str (sys.version_info.major), str (sys.version_info.minor), str (sys.version_info.micro)]))\n quit ()\n\n# coding=utf...
diff --git a/app.py b/app.py index 1c1a057a236..b03d20cb831 100644 --- a/app.py +++ b/app.py @@ -472,6 +472,7 @@ def get_similar_code(processed_code, language, level): if distance < shortest_distance: shortest_distance = distance similar_code = line...
jupyterhub__jupyterhub-3773
user_options returning empty at users rest api after jupyterhub restart ### Bug description I’ve noticed that after jupyterhub is restarted the user_options are empty i.e. {} when submitting /hub/api/users request (before restart I’m getting user_options which are persisted in db due implemented in persist user_op...
[ { "content": "# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\nimport json\nimport warnings\nfrom collections import defaultdict\nfrom datetime import datetime\nfrom datetime import timedelta\nfrom urllib.parse import quote\nfrom urllib.parse import urlparse...
[ { "content": "# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\nimport json\nimport warnings\nfrom collections import defaultdict\nfrom datetime import datetime\nfrom datetime import timedelta\nfrom urllib.parse import quote\nfrom urllib.parse import urlparse...
diff --git a/jupyterhub/tests/test_spawner.py b/jupyterhub/tests/test_spawner.py index 2081abc081..1cbf398cba 100644 --- a/jupyterhub/tests/test_spawner.py +++ b/jupyterhub/tests/test_spawner.py @@ -81,6 +81,18 @@ async def test_spawner(db, request): assert isinstance(status, int) +def test_spawner_from_db(app...
Azure__azure-cli-extensions-5180
front-door extension can not find existing front door resources ### Related command <!--- Please provide the related command with az {command} if you can, so that we can quickly route to the related team for help. ---> ``` az network front-door list basically all front-door commands ``` ### Extension name (the ex...
[ { "content": "# --------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for license information.\n# -------------------------------------------...
[ { "content": "# --------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for license information.\n# -------------------------------------------...
diff --git a/src/front-door/azext_front_door/_help.py b/src/front-door/azext_front_door/_help.py index b9908dd5ea3..c19b275c0b7 100644 --- a/src/front-door/azext_front_door/_help.py +++ b/src/front-door/azext_front_door/_help.py @@ -10,7 +10,7 @@ # region FrontDoor helps['network front-door'] = """ type: group -...
cupy__cupy-3673
Remove docs mentioning Chainer * docs/source/tutorial/basic.rst * Remove intersphinx config for chainer
[ { "content": "# -*- coding: utf-8 -*-\n#\n# CuPy documentation build configuration file, created by\n# sphinx-quickstart on Sun May 10 12:22:10 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# CuPy documentation build configuration file, created by\n# sphinx-quickstart on Sun May 10 12:22:10 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\...
diff --git a/docs/source/conf.py b/docs/source/conf.py index efa41f1cf96..02e1069be9e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -346,7 +346,6 @@ 'python': ('https://docs.python.org/3/', None), 'numpy': ('https://docs.scipy.org/doc/numpy/', None), 'scipy': ('https://docs.scipy.org/doc/...
networkx__networkx-4455
Support for disjunctive graph? I am about to solve FJSSP using oriented disjunctive graph with conjunctive/disjuncted graph arcs. The way I see it, MultiDiGraph structure would be suitable: is the simplex method (Dantzig) - I presume _network_simplex_ method - applyable in this case? Thanks.
[ { "content": "\"\"\"\nMinimum cost flow algorithms on directed connected graphs.\n\"\"\"\n\n__all__ = [\"network_simplex\"]\n\nfrom itertools import chain, islice, repeat\nfrom math import ceil, sqrt\nimport networkx as nx\nfrom networkx.utils import not_implemented_for\n\n\n@not_implemented_for(\"undirected\")...
[ { "content": "\"\"\"\nMinimum cost flow algorithms on directed connected graphs.\n\"\"\"\n\n__all__ = [\"network_simplex\"]\n\nfrom itertools import chain, islice, repeat\nfrom math import ceil, sqrt\nimport networkx as nx\nfrom networkx.utils import not_implemented_for\n\n\n@not_implemented_for(\"undirected\")...
diff --git a/networkx/algorithms/flow/networksimplex.py b/networkx/algorithms/flow/networksimplex.py index 9f1fef5d18a..561dbb8a40e 100644 --- a/networkx/algorithms/flow/networksimplex.py +++ b/networkx/algorithms/flow/networksimplex.py @@ -62,8 +62,8 @@ def network_simplex(G, demand="demand", capacity="capacity", weig...
lutris__lutris-3320
python-magic dependency conflicts with file-magic (official python bindings for libmagic) **Describe the bug** I'm the Lutris packager for Mageia. Lutris 0.5.8 added a dependency on `python-magic`, which is https://github.com/ahupp/python-magic `python-magic` provides the `magic.py` module, which conflicts wit...
[ { "content": "\"\"\"Automatically detects game executables in a folder\"\"\"\nimport os\n\nfrom lutris.util import system\nfrom lutris.util.log import logger\n\ntry:\n import magic\n MAGIC_AVAILABLE = True\nexcept ImportError:\n MAGIC_AVAILABLE = False\n magic = None\n\n\nif not hasattr(magic, \"fro...
[ { "content": "\"\"\"Automatically detects game executables in a folder\"\"\"\nimport os\n\nfrom lutris.util import system\nfrom lutris.util.log import logger\n\ntry:\n import magic\n MAGIC_AVAILABLE = True\nexcept ImportError:\n MAGIC_AVAILABLE = False\n magic = None\n\n\nif not hasattr(magic, \"fro...
diff --git a/lutris/util/game_finder.py b/lutris/util/game_finder.py index c7838e1077..593f84c8bd 100644 --- a/lutris/util/game_finder.py +++ b/lutris/util/game_finder.py @@ -13,8 +13,12 @@ if not hasattr(magic, "from_file"): - logger.error("Your version of python-magic is too old.") - MAGIC_AVAILABLE = Fals...
microsoft__playwright-python-694
Convert None to null when serializing expression arguments I've spent a good two full days trying to figure why it was not working. We have a custom function attached to the window object that I was trying invoke with a deep dictionary object. While debugging I realized that when the framework serializes expression...
[ { "content": "# Copyright (c) Microsoft Corporation.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright (c) Microsoft Corporation.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/playwright/_impl/_js_handle.py b/playwright/_impl/_js_handle.py index ce11aaa05..051967282 100644 --- a/playwright/_impl/_js_handle.py +++ b/playwright/_impl/_js_handle.py @@ -98,7 +98,7 @@ def serialize_value(value: Any, handles: List[JSHandle], depth: int) -> Any: if depth > 100: raise Erro...
scikit-hep__awkward-2169
run cpp tests in CI ### Version of Awkward Array 2.0.6 ### Description and code to reproduce @agoose77 and @jpivarski - I think, we need to have at least one node to run the cpp tests.
[ { "content": "\"\"\"Copy the header-only cpp headers into the various package directories that they are required\"\"\"\nimport pathlib\nimport shutil\n\nroot_path = pathlib.Path(__file__).absolute().parents[1]\nsource_path = root_path / \"header-only\"\ndest_paths = (\n root_path / \"awkward-cpp\" / \"header...
[ { "content": "\"\"\"Copy the header-only cpp headers into the various package directories that they are required\"\"\"\nimport pathlib\nimport shutil\n\nroot_path = pathlib.Path(__file__).absolute().parents[1]\nsource_path = root_path / \"header-only\" / \"include\"\ndest_paths = (\n root_path / \"awkward-cp...
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b445013d06..084a7bde66 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -30,6 +30,7 @@ env: jobs: coverage: runs-on: ubuntu-20.04 + name: Run Codecov env: PIP_ONLY_BINARY: cmak...
frappe__frappe-9300
bench rebuild-global-search fails on single doctypes When /frappe/utils/global_search.py comes across a single table, the call to frappe.get_all(...) fails. ## Steps to reproduce the issue install erpnext f12.x.x on frappe 12.x.x run bench rebuild-global-search --> it will fail in a erpnext single table (like "...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: GNU General Public License v3. See license.txt\n\nfrom __future__ import unicode_literals\n\nimport frappe\nimport re\nimport redis\nimport json\nimport os\nfrom bs4 import BeautifulSoup\nfrom frappe.utils import cint...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: GNU General Public License v3. See license.txt\n\nfrom __future__ import unicode_literals\n\nimport frappe\nimport re\nimport redis\nimport json\nimport os\nfrom bs4 import BeautifulSoup\nfrom frappe.utils import cint...
diff --git a/frappe/utils/global_search.py b/frappe/utils/global_search.py index 984657304625..d1ac85280c82 100644 --- a/frappe/utils/global_search.py +++ b/frappe/utils/global_search.py @@ -81,6 +81,10 @@ def _get_filters(): return filters meta = frappe.get_meta(doctype) + + if cint(meta.issingle) == 1: + ret...
deepset-ai__haystack-3795
launch_milvus() fails as milvus_dir != '/home/$USER/milvus/' **Describe the bug** launch_milvus() fails when `Path.home() ` is not same as `/home/$USER/milvus/` milvus docker-compose.yml is stored inside Path.home() ``` milvus_dir = Path.home() / "milvus" ...... with open(milvus_dir / "docker-compose.yml...
[ { "content": "# pylint: disable=missing-timeout\n\nimport time\nimport logging\nimport subprocess\nfrom pathlib import Path\n\nimport requests\n\n\nlogger = logging.getLogger(__name__)\nELASTICSEARCH_CONTAINER_NAME = \"elasticsearch\"\nOPENSEARCH_CONTAINER_NAME = \"opensearch\"\nWEAVIATE_CONTAINER_NAME = \"weav...
[ { "content": "# pylint: disable=missing-timeout\n\nimport time\nimport logging\nimport subprocess\nfrom pathlib import Path\n\nimport requests\n\n\nlogger = logging.getLogger(__name__)\nELASTICSEARCH_CONTAINER_NAME = \"elasticsearch\"\nOPENSEARCH_CONTAINER_NAME = \"opensearch\"\nWEAVIATE_CONTAINER_NAME = \"weav...
diff --git a/haystack/utils/doc_store.py b/haystack/utils/doc_store.py index 5000efe4af..3ae8648198 100644 --- a/haystack/utils/doc_store.py +++ b/haystack/utils/doc_store.py @@ -133,7 +133,7 @@ def launch_milvus(sleep=15, delete_existing=False): with open(milvus_dir / "docker-compose.yml", "wb") as f: f....
pex-tool__pex-634
Bootstrap demotion is not robust While working https://github.com/pantsbuild/pants/issues/6927 it was discovered that there were multiple `.bootstrap/` on the sys.path and only one was demoted, leading to pants, when running in a pex, picking .bootstrap.pex instead of the pex dist it in `.deps/`. In this case, Pants wa...
[ { "content": "# coding=utf-8\n# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nimport os\n\n\nclass Bootstrap(object):\n \"\"\"Supports introspection of the PEX bootstrap code.\"\"\"\n\n _INSTANCE = None\n\n @classmethod\n ...
[ { "content": "# coding=utf-8\n# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nimport os\n\n\nclass Bootstrap(object):\n \"\"\"Supports introspection of the PEX bootstrap code.\"\"\"\n\n _INSTANCE = None\n\n @classmethod\n ...
diff --git a/pex/bootstrap.py b/pex/bootstrap.py index 7613b4cac..e30958f8b 100644 --- a/pex/bootstrap.py +++ b/pex/bootstrap.py @@ -46,7 +46,7 @@ def demote(self): if self.imported_from_bootstrap(module): unimported_modules.append(sys.modules.pop(name)) - sys.path.remove(self._sys_path_entry) + ...
carpentries__amy-245
Use Bower for JS, CSS dependencies We need something to manage our JavaScript (and perhaps CSS) dependencies and this tool is called [Bower](http://bower.io). @wking [wrote](https://github.com/swcarpentry/amy/pull/239#issuecomment-89585714) some handy instructions on getting Bower up and running. Bower packages we'd ...
[ { "content": "\"\"\"\nDjango settings for amy project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.7/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/1.7/ref/settings/\n\"\"\"\n\n# Build paths inside the project like th...
[ { "content": "\"\"\"\nDjango settings for amy project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.7/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/1.7/ref/settings/\n\"\"\"\n\n# Build paths inside the project like th...
diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 000000000..44491d3df --- /dev/null +++ b/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory": "bower_components" +} diff --git a/.gitignore b/.gitignore index c6a16d1a8..39677e0ee 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,9 @@ db.sqlite3 # coverage reports...
vega__altair-784
Fix vega-embed version for Altair 1 For example in https://github.com/altair-viz/altair/blob/d4d29ca06e920f71073766c6456d387e682cee17/altair/vegalite/v1/html.py#L7
[ { "content": "HTML_TEMPLATE = \"\"\"\n<!DOCTYPE html>\n<html>\n<head>\n <script src=\"https://cdn.jsdelivr.net/npm/vega@2\"></script>\n <script src=\"https://cdn.jsdelivr.net/npm/vega-lite@1\"></script>\n <script src=\"https://cdn.jsdelivr.net/npm/vega-embed@3\"></script>\n</head>\n<body>\n <div id=\"vis\">...
[ { "content": "HTML_TEMPLATE = \"\"\"\n<!DOCTYPE html>\n<html>\n<head>\n <script src=\"https://cdn.jsdelivr.net/npm/vega@2\"></script>\n <script src=\"https://cdn.jsdelivr.net/npm/vega-lite@1\"></script>\n <script src=\"https://cdn.jsdelivr.net/npm/vega-embed@2\"></script>\n</head>\n<body>\n <div id=\"vis\">...
diff --git a/altair/vegalite/v1/html.py b/altair/vegalite/v1/html.py index 13e5a9371..c12616a6b 100644 --- a/altair/vegalite/v1/html.py +++ b/altair/vegalite/v1/html.py @@ -4,7 +4,7 @@ <head> <script src="https://cdn.jsdelivr.net/npm/vega@2"></script> <script src="https://cdn.jsdelivr.net/npm/vega-lite@1"></scri...
Project-MONAI__MONAI-7548
Perceptual loss with medicalnet_resnet50_23datasets errors due to a typo. **Describe the bug** When trying to use `network_type=medicalnet_resnet50_23datasets`, I got the following error: ``` ValueError: Unrecognised criterion entered for Adversarial Loss. Must be one in: alex, vgg, squeeze, radimagenet_resnet50, me...
[ { "content": "# Copyright (c) MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable la...
[ { "content": "# Copyright (c) MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable la...
diff --git a/monai/losses/perceptual.py b/monai/losses/perceptual.py index 2207de5e64..fd61603b03 100644 --- a/monai/losses/perceptual.py +++ b/monai/losses/perceptual.py @@ -29,7 +29,7 @@ class PercetualNetworkType(StrEnum): squeeze = "squeeze" radimagenet_resnet50 = "radimagenet_resnet50" medicalnet_re...
ocadotechnology__codeforlife-portal-783
portal API not working anymore **Describe the bug** When trying to access the following URLs: /api/lastconnectedsince/YYYY/MM/DD .../registered/YYYY/MM/DD .../userspercountry/CC On any of our servers, we get a 500 error. Google console says: > TemplateSyntaxError: 'url' is not a valid tag or filter in tag lib...
[ { "content": "# -*- coding: utf-8 -*-\nfrom setuptools import find_packages, setup\nimport versioneer\nsetup(name='codeforlife-portal',\n cmdclass=versioneer.get_cmdclass(),\n version=versioneer.get_version(),\n packages=find_packages(),\n include_package_data=True,\n install_requires=[...
[ { "content": "# -*- coding: utf-8 -*-\nfrom setuptools import find_packages, setup\nimport versioneer\nsetup(name='codeforlife-portal',\n cmdclass=versioneer.get_cmdclass(),\n version=versioneer.get_version(),\n packages=find_packages(),\n include_package_data=True,\n install_requires=[...
diff --git a/setup.py b/setup.py index 99be45a2ed..04fcd99abd 100755 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ 'django==1.9.13', 'django-appconf==1.0.1', 'django-countries==3.4.1', - 'djangorestframework==3.1.3', + 'djangorestframework==3.2.3', 'django...
wright-group__WrightTools-753
Kit leastsq should not except BaseException https://github.com/wright-group/WrightTools/blob/f22920579f45632b4123661d9832ff0cc1b614c4/WrightTools/kit/_leastsq.py#L74 The exception caught should be limited to those known to be raised inside.
[ { "content": "\"\"\"Least-square fitting tools.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nfrom ._utilities import Timer\n\nimport numpy as np\n\nfrom scipy import optimize as scipy_optimize\n\n\n# --- define ------------------------------...
[ { "content": "\"\"\"Least-square fitting tools.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nfrom ._utilities import Timer\n\nimport numpy as np\n\nfrom scipy import optimize as scipy_optimize\n\n\n# --- define ------------------------------...
diff --git a/WrightTools/kit/_leastsq.py b/WrightTools/kit/_leastsq.py index 1c4c1b684..1c9393579 100644 --- a/WrightTools/kit/_leastsq.py +++ b/WrightTools/kit/_leastsq.py @@ -71,7 +71,7 @@ def errfunc(p, x, y): for i in range(len(pfit_leastsq)): try: error.append(np.absolute(pco...
sanic-org__sanic-2211
In ASGI mod, the response turns into 500 server error. In ASGI mod, if request middleware raises an exception and meanwhile there is an error in fetching handler from router part as well, server response turns into 500 server error. **app.py** ```python from sanic import Request, Sanic from sanic.exceptions impo...
[ { "content": "import warnings\n\nfrom inspect import isawaitable\nfrom typing import Optional\nfrom urllib.parse import quote\n\nimport sanic.app # noqa\n\nfrom sanic.compat import Header\nfrom sanic.exceptions import ServerError\nfrom sanic.models.asgi import ASGIReceive, ASGIScope, ASGISend, MockTransport\nf...
[ { "content": "import warnings\n\nfrom inspect import isawaitable\nfrom typing import Optional\nfrom urllib.parse import quote\n\nimport sanic.app # noqa\n\nfrom sanic.compat import Header\nfrom sanic.exceptions import ServerError\nfrom sanic.models.asgi import ASGIReceive, ASGIScope, ASGISend, MockTransport\nf...
diff --git a/sanic/__version__.py b/sanic/__version__.py index 7934495011..74a495e2fe 100644 --- a/sanic/__version__.py +++ b/sanic/__version__.py @@ -1 +1 @@ -__version__ = "21.6.1" +__version__ = "21.6.2" diff --git a/sanic/asgi.py b/sanic/asgi.py index 5765a5cd60..330ced5a4f 100644 --- a/sanic/asgi.py +++ b/sanic/as...
DistrictDataLabs__yellowbrick-1154
A dangling print statement in the new 1.3 release while plotting LearningCurve & ValidationCurve. **Describe the bug** A dangling print statement in the new 1.3 release while plotting LearningCurve & ValidationCurve. **To Reproduce** Any snippet like the following ```python viz = validation_curve( DecisionT...
[ { "content": "# yellowbrick.base\n# Abstract base classes and interface for Yellowbrick.\n#\n# Author: Rebecca Bilbro\n# Author: Benjamin Bengfort\n# Created: Fri Jun 03 10:20:59 2016 -0700\n#\n# Copyright (C) 2019 The scikit-yb developers\n# For license information, see LICENSE.txt\n#\n# ID: base.py [4a59...
[ { "content": "# yellowbrick.base\n# Abstract base classes and interface for Yellowbrick.\n#\n# Author: Rebecca Bilbro\n# Author: Benjamin Bengfort\n# Created: Fri Jun 03 10:20:59 2016 -0700\n#\n# Copyright (C) 2019 The scikit-yb developers\n# For license information, see LICENSE.txt\n#\n# ID: base.py [4a59...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 97f9e9b5b..f706c00ad 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -3,6 +3,19 @@ Changelog ========= +Version 1.3.post1 +----------------- + +* Tag: v1.3.post1_ +* Deployed Saturday, February 13, 2021 +* Current Contributors: Rebecca Bilbro, B...
codespell-project__codespell-2545
codespell unhappy with pytest config in pyproject.toml When running codespell with [this pyproject.toml](https://github.com/aucampia/cookiecutter-python/blob/374772bf96a79bdbee55e4fbeb27e4d79df53329/pyproject.toml) I get the following error: ```console $ python -m poetry run codespell --version 2.2.2 $ python -m ...
[ { "content": "#\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; version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARR...
[ { "content": "#\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; version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARR...
diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index df55894980..2befcf7158 100644 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py @@ -402,7 +402,7 @@ def parse_options(args): cfg_files = ['setup.cfg', '.codespellrc'] if options.config: cfg_files.append(opt...
Lightning-AI__torchmetrics-2234
`learned_perceptual_image_patch_similarity` function needs to synchronize device and dtype between net and input images ## 🐛 Bug When I try to use `preds` and `target` on `torch.device('cuda:0')` to calculate with function `learned_perceptual_image_patch_similarity` from `torchmetrics.functional.image`, the functi...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a444661cb4a..b0c7bfe1ade 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed numerical stability issue in `UniversalImageQualityIndex` metric ([#2222](https://github.com/Li...
conan-io__conan-center-index-8132
[request] perfetto/v21.0 ### Package Details * Package Name/Version: **perfetto/v21.0** * Changelog: **https://github.com/google/perfetto/releases/tag/v21.0** The above mentioned version is newly released by the upstream project and not yet available as a recipe. PR follows
[ { "content": "from conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\n\nimport os\n\nrequired_conan_version = \">=1.33.0\"\n\n\nclass PerfettoConan(ConanFile):\n name = \"perfetto\"\n license = \"Apache-2.0\"\n homepage = \"https://perfetto.dev\"\n url = \"ht...
[ { "content": "from conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\n\nimport os\n\nrequired_conan_version = \">=1.33.0\"\n\n\nclass PerfettoConan(ConanFile):\n name = \"perfetto\"\n license = \"Apache-2.0\"\n homepage = \"https://perfetto.dev\"\n url = \"ht...
diff --git a/recipes/perfetto/all/CMakeLists.txt b/recipes/perfetto/all/CMakeLists.txt index 146e3b0e100db..c9b0f6e5112dd 100644 --- a/recipes/perfetto/all/CMakeLists.txt +++ b/recipes/perfetto/all/CMakeLists.txt @@ -1,15 +1,13 @@ -cmake_minimum_required(VERSION 3.4) +cmake_minimum_required(VERSION 3.8) project(perfet...
urllib3__urllib3-2864
parse_url with :0 returns port=None it should return port=0 instead
[ { "content": "from __future__ import absolute_import\n\nimport re\nfrom collections import namedtuple\n\nfrom ..exceptions import LocationParseError\nfrom ..packages import six\n\nurl_attrs = [\"scheme\", \"auth\", \"host\", \"port\", \"path\", \"query\", \"fragment\"]\n\n# We only want to normalize urls with a...
[ { "content": "from __future__ import absolute_import\n\nimport re\nfrom collections import namedtuple\n\nfrom ..exceptions import LocationParseError\nfrom ..packages import six\n\nurl_attrs = [\"scheme\", \"auth\", \"host\", \"port\", \"path\", \"query\", \"fragment\"]\n\n# We only want to normalize urls with a...
diff --git a/src/urllib3/util/url.py b/src/urllib3/util/url.py index 94f1b8d470..3a169a4353 100644 --- a/src/urllib3/util/url.py +++ b/src/urllib3/util/url.py @@ -63,7 +63,7 @@ BRACELESS_IPV6_ADDRZ_RE = re.compile("^" + IPV6_ADDRZ_PAT[2:-2] + "$") ZONE_ID_RE = re.compile("(" + ZONE_ID_PAT + r")\]$") -_HOST_PORT_PAT...
bookwyrm-social__bookwyrm-2275
Adding a space after typing a username will not show that user in the search results **Describe the bug** When I search for "@user@example.com" it won't work if the input has a space at the end ("@user@example.com ") It may work if the user has already been searched for before though. **To Reproduce** Steps to r...
[ { "content": "\"\"\" search views\"\"\"\nimport re\n\nfrom django.contrib.postgres.search import TrigramSimilarity\nfrom django.core.paginator import Paginator\nfrom django.db.models.functions import Greatest\nfrom django.http import JsonResponse\nfrom django.template.response import TemplateResponse\nfrom djan...
[ { "content": "\"\"\" search views\"\"\"\nimport re\n\nfrom django.contrib.postgres.search import TrigramSimilarity\nfrom django.core.paginator import Paginator\nfrom django.db.models.functions import Greatest\nfrom django.http import JsonResponse\nfrom django.template.response import TemplateResponse\nfrom djan...
diff --git a/bookwyrm/views/search.py b/bookwyrm/views/search.py index db33fd3308..6bf230ddd5 100644 --- a/bookwyrm/views/search.py +++ b/bookwyrm/views/search.py @@ -90,6 +90,7 @@ def user_search(request): """cool kids members only user search""" viewer = request.user query = request.GET.get("q") + q...
django-json-api__django-rest-framework-json-api-842
SparseFieldsetsMixin catches invalid key from URL Hi, Once I want to use sparse fields in URL eg.: `/api/something/?fields[bar]=somefield` The SparseFieldsetsMixin is checking for the key as substring: `key for key in request.query_params if sparse_fieldset_query_param in key` That causes the situation w...
[ { "content": "import inflection\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db.models.query import QuerySet\nfrom django.utils.translation import gettext_lazy as _\nfrom rest_framework.exceptions import ParseError\nfrom rest_framework.serializers import * # noqa: F403\n\nfrom rest_frame...
[ { "content": "import inflection\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db.models.query import QuerySet\nfrom django.utils.translation import gettext_lazy as _\nfrom rest_framework.exceptions import ParseError\nfrom rest_framework.serializers import * # noqa: F403\n\nfrom rest_frame...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 21749009..d008982c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,9 @@ This release is not backwards compatible. For easy migration best upgrade first * Removed obsolete `source` argument of `SerializerMethodResourceRelatedField` * Removed obsolete setting `JS...
netbox-community__netbox-14385
error when filtering choice sets when editing/creating a custom field ### NetBox version v.3.6.4 ### Python version 3.11 ### Steps to Reproduce - create a custom field choice set - start creating a custom field. attempt to search in the "choice set" field. UI error should pop up (or see a failure i...
[ { "content": "import django_filters\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.db.models import Q\nfrom django.utils.translation import gettext as _\n\nfrom core.models import DataSource\nfrom dcim.models import DeviceRole, DeviceType...
[ { "content": "import django_filters\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.db.models import Q\nfrom django.utils.translation import gettext as _\n\nfrom core.models import DataSource\nfrom dcim.models import DeviceRole, DeviceType...
diff --git a/netbox/extras/filtersets.py b/netbox/extras/filtersets.py index fec06726357..b33e7048843 100644 --- a/netbox/extras/filtersets.py +++ b/netbox/extras/filtersets.py @@ -122,8 +122,7 @@ def search(self, queryset, name, value): return queryset return queryset.filter( Q(name_...
pydantic__pydantic-4424
ImportError: cannot import name 'dataclass_transform' from 'typing_extensions' (1.10.0a1) ### Initial Checks - [X] I have searched GitHub for a duplicate issue and I'm sure this is something new - [X] I have searched Google & StackOverflow for a solution and couldn't find anything - [X] I have read and followed [the d...
[ { "content": "import os\nimport re\nimport sys\nfrom importlib.machinery import SourceFileLoader\nfrom pathlib import Path\n\nfrom setuptools import setup\n\nif os.name == 'nt':\n from setuptools.command import build_ext\n\n def get_export_symbols(self, ext):\n \"\"\"\n Slightly modified fro...
[ { "content": "import os\nimport re\nimport sys\nfrom importlib.machinery import SourceFileLoader\nfrom pathlib import Path\n\nfrom setuptools import setup\n\nif os.name == 'nt':\n from setuptools.command import build_ext\n\n def get_export_symbols(self, ext):\n \"\"\"\n Slightly modified fro...
diff --git a/changes/4424-commonism.md b/changes/4424-commonism.md new file mode 100644 index 00000000000..c1ace290a80 --- /dev/null +++ b/changes/4424-commonism.md @@ -0,0 +1 @@ +Update requirement to `typing_extensions>=4.1.0` to guarantee `dataclass_transform` is available diff --git a/setup.py b/setup.py index aec8...
ivy-llc__ivy-18030
Fix reduction_ops.test_torch_mean | | | |---|---| |paddle|<a href="https://github.com/unifyai/ivy/actions/runs/6401575843/job/17376881374"><img src=https://img.shields.io/badge/-failure-red></a> |numpy|<a href="https://github.com/unifyai/ivy/actions/runs/6401575843/job/17376881374"><img src=https://img.shields.i...
[ { "content": "import ivy\r\nfrom ivy.func_wrapper import with_unsupported_dtypes\r\nfrom ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back\r\nfrom collections import namedtuple\r\nimport ivy.functional.frontends.torch as torch_frontend\r\n\r\n\r\n@to_ivy_arrays_and_back\r\ndef dist(input...
[ { "content": "import ivy\r\nfrom ivy.func_wrapper import with_unsupported_dtypes\r\nfrom ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back\r\nfrom collections import namedtuple\r\nimport ivy.functional.frontends.torch as torch_frontend\r\n\r\n\r\n@to_ivy_arrays_and_back\r\ndef dist(input...
diff --git a/ivy/functional/frontends/torch/reduction_ops.py b/ivy/functional/frontends/torch/reduction_ops.py index d3971046c6600..43674b9f0f792 100644 --- a/ivy/functional/frontends/torch/reduction_ops.py +++ b/ivy/functional/frontends/torch/reduction_ops.py @@ -54,10 +54,11 @@ def sum(input, dim=None, keepdim=False,...
ivy-llc__ivy-13823
rand_like
[ { "content": "import ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back\n\ntry:\n from torch import Generator\nexcept ImportError:\n from types import SimpleNamespace\n\n Generator = SimpleNamespace\n\n\ndef seed() -> ...
[ { "content": "import ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back\n\ntry:\n from torch import Generator\nexcept ImportError:\n from types import SimpleNamespace\n\n Generator = SimpleNamespace\n\n\ndef seed() -> ...
diff --git a/ivy/functional/frontends/torch/random_sampling.py b/ivy/functional/frontends/torch/random_sampling.py index 12b1eebc92d22..a8373e819e42a 100644 --- a/ivy/functional/frontends/torch/random_sampling.py +++ b/ivy/functional/frontends/torch/random_sampling.py @@ -76,6 +76,27 @@ def rand( ) +@to_ivy_ar...
pydantic__pydantic-4886
Pydantic 1.10.3 incompatible with typing-extensions 4.1.1 ### Initial Checks - [X] I have searched GitHub for a duplicate issue and I'm sure this is something new - [X] I have searched Google & StackOverflow for a solution and couldn't find anything - [X] I have read and followed [the docs](https://pydantic-docs.h...
[ { "content": "import os\nimport re\nimport sys\nfrom importlib.machinery import SourceFileLoader\nfrom pathlib import Path\n\nfrom setuptools import setup\n\nif os.name == 'nt':\n from setuptools.command import build_ext\n\n def get_export_symbols(self, ext):\n \"\"\"\n Slightly modified fro...
[ { "content": "import os\nimport re\nimport sys\nfrom importlib.machinery import SourceFileLoader\nfrom pathlib import Path\n\nfrom setuptools import setup\n\nif os.name == 'nt':\n from setuptools.command import build_ext\n\n def get_export_symbols(self, ext):\n \"\"\"\n Slightly modified fro...
diff --git a/changes/4885-samuelcolvin.md b/changes/4885-samuelcolvin.md new file mode 100644 index 00000000000..efcf96e5810 --- /dev/null +++ b/changes/4885-samuelcolvin.md @@ -0,0 +1 @@ +Change dependency to `typing-extensions>=4.2.0` diff --git a/setup.py b/setup.py index 609cd1bbe10..91d82e40491 100644 --- a/setup....
bokeh__bokeh-5883
Test bokehjs/examples and run them on travis ci They are constantly broken due to not being continuously tested.
[ { "content": "from __future__ import print_function\n\nfrom bokeh.layouts import row\nfrom bokeh.models import (\n Range1d, WMTSTileSource, ColumnDataSource, HoverTool,\n)\nfrom bokeh.plotting import figure, show, output_file\nfrom bokeh.sampledata.airports import data as airports\nfrom bokeh.tile_providers ...
[ { "content": "from __future__ import print_function\n\nfrom bokeh.layouts import row\nfrom bokeh.models import (\n Range1d, WMTSTileSource, ColumnDataSource, HoverTool,\n)\nfrom bokeh.plotting import figure, show, output_file\nfrom bokeh.sampledata.airports import data as airports\nfrom bokeh.tile_providers ...
diff --git a/bokehjs/examples/.gitignore b/bokehjs/examples/.gitignore new file mode 100644 index 00000000000..69b142eea57 --- /dev/null +++ b/bokehjs/examples/.gitignore @@ -0,0 +1 @@ +.tests/ diff --git a/bokehjs/examples/anscombe/anscombe.ts b/bokehjs/examples/anscombe/anscombe.ts index abb5d8866f9..979a01af68a 1006...
napari__napari-5474
Visual Bug: Labels Layer Controls get squished when toggling 3D ## 🐛 Bug When toggling to 3D, the labels layer Layer Controls widget gains an extra line `rendering`. However the widget doesn't resize for this, so it results in a visual bug of everything squished and partially cut off: <img width="267" alt="image"...
[ { "content": "from qtpy.QtWidgets import QFrame, QStackedWidget\n\nfrom napari._qt.layer_controls.qt_image_controls import QtImageControls\nfrom napari._qt.layer_controls.qt_labels_controls import QtLabelsControls\nfrom napari._qt.layer_controls.qt_points_controls import QtPointsControls\nfrom napari._qt.layer_...
[ { "content": "from qtpy.QtWidgets import QFrame, QStackedWidget\n\nfrom napari._qt.layer_controls.qt_image_controls import QtImageControls\nfrom napari._qt.layer_controls.qt_labels_controls import QtLabelsControls\nfrom napari._qt.layer_controls.qt_points_controls import QtPointsControls\nfrom napari._qt.layer_...
diff --git a/napari/_qt/_tests/test_qt_notifications.py b/napari/_qt/_tests/test_qt_notifications.py index e1ef20e0eb3..a879d2c9713 100644 --- a/napari/_qt/_tests/test_qt_notifications.py +++ b/napari/_qt/_tests/test_qt_notifications.py @@ -13,7 +13,7 @@ NapariQtNotification, TracebackDialog, ) -from napari....
praw-dev__praw-888
ListingGenerator gets stuck in loop when 'before' parameter is supplied. ## Issue Description When retrieving submissions and supplying the 'before' parameter, the ListingGenerator gets stuck in a loop where the same 'after' parameter is submitted to reddit infinitely. I'm submitting a pull request with a fix. Add...
[ { "content": "\"\"\"Provide the ListingGenerator class.\"\"\"\nfrom copy import deepcopy\n\nfrom .listing import FlairListing\nfrom ..base import PRAWBase\n\n\nclass ListingGenerator(PRAWBase):\n \"\"\"Instances of this class generate :class:`.RedditBase` instances.\n\n .. warning:: This class should not ...
[ { "content": "\"\"\"Provide the ListingGenerator class.\"\"\"\nfrom copy import deepcopy\n\nfrom .listing import FlairListing\nfrom ..base import PRAWBase\n\n\nclass ListingGenerator(PRAWBase):\n \"\"\"Instances of this class generate :class:`.RedditBase` instances.\n\n .. warning:: This class should not ...
diff --git a/AUTHORS.rst b/AUTHORS.rst index f17abd3a7..9651a6d98 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -35,4 +35,5 @@ Source Contributors - Mike Wohlrab `@D0cR3d <https://github.com/D0cR3d>`_ - Matthew Lee `@kwwxis <https://github.com/kwwxis>`_ - guaneec `@guaneec <https://github.com/guaneec>`_ +- Jason Woo...
Parsl__parsl-2866
parsl resource monitor does not exit properly **Describe the bug** I have noticed recently that the parsl resource monitor thread will not exit properly when I ctrl-C the test suite, and ends up filling the provider stderr with stack traces like this: ``` ERROR:root:Exception getting the resource usage. Not sendin...
[ { "content": "import os\nimport time\nimport logging\nimport datetime\nfrom functools import wraps\n\nfrom parsl.multiprocessing import ForkProcess\nfrom multiprocessing import Event\nfrom parsl.process_loggers import wrap_with_logs\n\nfrom parsl.monitoring.message_type import MessageType\nfrom parsl.monitoring...
[ { "content": "import os\nimport time\nimport logging\nimport datetime\nfrom functools import wraps\n\nfrom parsl.multiprocessing import ForkProcess\nfrom multiprocessing import Event\nfrom parsl.process_loggers import wrap_with_logs\n\nfrom parsl.monitoring.message_type import MessageType\nfrom parsl.monitoring...
diff --git a/parsl/monitoring/remote.py b/parsl/monitoring/remote.py index 479a7ccfa4..d42e0079b4 100644 --- a/parsl/monitoring/remote.py +++ b/parsl/monitoring/remote.py @@ -262,7 +262,7 @@ def accumulate_and_prepare() -> Dict[str, Any]: next_send = time.time() accumulate_dur = 5.0 # TODO: make configurable...
googleapis__google-auth-library-python-651
docs type https://github.com/googleapis/google-auth-library-python/blob/41599ae932db31cf692d2c7bec15d8bb1778ab50/google/auth/impersonated_credentials.py#L151 Example has extra c and should read `from google.oauth2 import service_account`
[ { "content": "# Copyright 2018 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
[ { "content": "# Copyright 2018 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
diff --git a/google/auth/impersonated_credentials.py b/google/auth/impersonated_credentials.py index d2c5ded1c..d96c05bbf 100644 --- a/google/auth/impersonated_credentials.py +++ b/google/auth/impersonated_credentials.py @@ -148,7 +148,7 @@ class Credentials(credentials.CredentialsWithQuotaProject, credentials.Signing)...
googleapis__google-cloud-python-8992
BigQuery Storage: Add more in-depth system tests covering all data formats and field data types **Simple functional tests** - [ ] Simple correctness: create a table with some initial data, create a read session over the table, and verify that the expected number of rows is returned. - [ ] Filtering: create a table ...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n#...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n#...
diff --git a/bigquery_storage/noxfile.py b/bigquery_storage/noxfile.py index ec450b9aedc7..79b9d3689512 100644 --- a/bigquery_storage/noxfile.py +++ b/bigquery_storage/noxfile.py @@ -118,6 +118,7 @@ def system(session): session.install("-e", local_dep) session.install("-e", "../test_utils/") session....
LMFDB__lmfdb-4638
Absolute discriminant in refined search for g2c Small typo: In the refined search for genus 2 curves/Q, it seems that "Discriminant" should read "Absolute discriminant", similarly to the form of the (not-refined) search page for genus 2 curves/Q. The associated knowl is already pointing to "Absolute discriminant".
[ { "content": "# -*- coding: utf-8 -*-\n\nimport re\nfrom ast import literal_eval\n\nfrom flask import render_template, url_for, request, redirect, abort\nfrom sage.all import ZZ, QQ, PolynomialRing\nfrom sage.all import magma # doing from sage.interfaces.magma import magma leads to some bugs\nfrom sage.misc.cac...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport re\nfrom ast import literal_eval\n\nfrom flask import render_template, url_for, request, redirect, abort\nfrom sage.all import ZZ, QQ, PolynomialRing\nfrom sage.all import magma # doing from sage.interfaces.magma import magma leads to some bugs\nfrom sage.misc.cac...
diff --git a/lmfdb/genus2_curves/main.py b/lmfdb/genus2_curves/main.py index c6b6459015..170db460a2 100644 --- a/lmfdb/genus2_curves/main.py +++ b/lmfdb/genus2_curves/main.py @@ -575,7 +575,7 @@ def __init__(self): name="abs_disc", knowl="g2c.abs_discriminant", label="Absolute dis...
zestedesavoir__zds-site-6318
Le code HTML des ePUBs est visible Je ne sais pas si c'est un bug de zds-site ou zmd. Créer un billet, le publier. L'export au format ePUB contient le contenu attendu, mais on voit les balises HTML (ce qui rend le fichier illisible). Le bug est présent avec zmd 10 et 11.
[ { "content": "import re\nimport json\nimport logging\nfrom requests import post, HTTPError\n\nfrom django import template\nfrom django.conf import settings\nfrom django.template.defaultfilters import stringfilter\nfrom django.utils.safestring import mark_safe\nfrom django.utils.translation import gettext_lazy a...
[ { "content": "import re\nimport json\nimport logging\nfrom requests import post, HTTPError\n\nfrom django import template\nfrom django.conf import settings\nfrom django.template.defaultfilters import stringfilter\nfrom django.utils.safestring import mark_safe\nfrom django.utils.translation import gettext_lazy a...
diff --git a/zds/utils/templatetags/emarkdown.py b/zds/utils/templatetags/emarkdown.py index 0556f8ae86..f2bd45299c 100644 --- a/zds/utils/templatetags/emarkdown.py +++ b/zds/utils/templatetags/emarkdown.py @@ -153,7 +153,7 @@ def epub_markdown(md_input, image_directory): replaced_media_url = settings.MEDIA_URL ...
open-telemetry__opentelemetry-python-contrib-2418
AWS Lambda/APIGW unhandled exception causes UnboundLocalError **Describe your environment** AWS Lambda, python3.12, using [opentelemetry-lambda layer-python 0.5](https://github.com/open-telemetry/opentelemetry-lambda/releases/tag/layer-python%2F0.5.0) which includes opentelemetry-python 1.23.0 and opentelemetry-pytho...
[ { "content": "# Copyright 2020, OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
[ { "content": "# Copyright 2020, OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d2a3e8314..3bcc845bcc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#2363](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2363)) - `opentelemetry-i...
nautobot__nautobot-566
`nautobot.core.api.serializers.WritableNestedSerializer` docstring is incorrect and confusing <!-- NOTE: This template is for use by maintainers only. Please do not submit an issue using this template unless you have been specifically asked to do so. --> ### Proposed Changes The docstring should read ...
[ { "content": "import uuid\n\nfrom django.core.exceptions import (\n FieldError,\n MultipleObjectsReturned,\n ObjectDoesNotExist,\n)\nfrom django.db.models import AutoField, ManyToManyField\nfrom drf_yasg.utils import swagger_serializer_method\nfrom rest_framework import serializers\nfrom rest_framework...
[ { "content": "import uuid\n\nfrom django.core.exceptions import (\n FieldError,\n MultipleObjectsReturned,\n ObjectDoesNotExist,\n)\nfrom django.db.models import AutoField, ManyToManyField\nfrom drf_yasg.utils import swagger_serializer_method\nfrom rest_framework import serializers\nfrom rest_framework...
diff --git a/nautobot/core/api/serializers.py b/nautobot/core/api/serializers.py index 63c25dc797b..9388ee1323d 100644 --- a/nautobot/core/api/serializers.py +++ b/nautobot/core/api/serializers.py @@ -77,7 +77,8 @@ def validate(self, data): class WritableNestedSerializer(BaseModelSerializer): """ - Returns a...
tiangolo__fastapi-1549
dependency_overrides does not play well with scopes **Describe the bug** When working with `Security()` dependencies, the scopes disappear when `app.dependency_overrides` is executed. The callable dealing with the scopes gets an empty list instead of the scopes. **To Reproduce** ```python from fastapi import Fa...
[ { "content": "import asyncio\nimport inspect\nfrom contextlib import contextmanager\nfrom copy import deepcopy\nfrom typing import (\n Any,\n Callable,\n Dict,\n List,\n Mapping,\n Optional,\n Sequence,\n Tuple,\n Type,\n Union,\n cast,\n)\n\nfrom fastapi import params\nfrom fas...
[ { "content": "import asyncio\nimport inspect\nfrom contextlib import contextmanager\nfrom copy import deepcopy\nfrom typing import (\n Any,\n Callable,\n Dict,\n List,\n Mapping,\n Optional,\n Sequence,\n Tuple,\n Type,\n Union,\n cast,\n)\n\nfrom fastapi import params\nfrom fas...
diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index 1a660f5d355fa..15e7790cea9b5 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -478,6 +478,7 @@ async def solve_dependencies( name=sub_dependant.name, security_scopes=sub_de...
ansible__ansible-22432
tag attribute in ec2_snapshot_facts module should be dict instead of list ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME ansible-modules-extras/cloud/amazon/ec2_snapshot_facts.py ##### ANSIBLE VERSION ``` $ ansible --version ansible 2.2.1.0 config file = /home/psd/.ansible.cfg configured...
[ { "content": "#!/usr/bin/python\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version...
[ { "content": "#!/usr/bin/python\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version...
diff --git a/lib/ansible/modules/cloud/amazon/ec2_snapshot_facts.py b/lib/ansible/modules/cloud/amazon/ec2_snapshot_facts.py index 1fd91960983f66..a007005f246567 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_snapshot_facts.py +++ b/lib/ansible/modules/cloud/amazon/ec2_snapshot_facts.py @@ -141,7 +141,7 @@ samp...
dbt-labs__dbt-core-1851
Support KMS encryption for BigQuery ### Describe the feature Allow for KMS encryption to be specified in project configuration. Ideally this would be done in dbt_projects.yml like: ```name: fishtown_analytics models: fishtown_analytics: kms_key_name: 'some_kms_key' events: kms_key_name: 'some...
[ { "content": "from typing import Dict, List, Optional, Any\n\nimport dbt.deprecations\nimport dbt.exceptions\nimport dbt.flags as flags\nimport dbt.clients.gcloud\nimport dbt.clients.agate_helper\n\nfrom dbt.adapters.base import BaseAdapter, available, RelationType\nfrom dbt.adapters.bigquery.relation import (\...
[ { "content": "from typing import Dict, List, Optional, Any\n\nimport dbt.deprecations\nimport dbt.exceptions\nimport dbt.flags as flags\nimport dbt.clients.gcloud\nimport dbt.clients.agate_helper\n\nfrom dbt.adapters.base import BaseAdapter, available, RelationType\nfrom dbt.adapters.bigquery.relation import (\...
diff --git a/plugins/bigquery/dbt/adapters/bigquery/impl.py b/plugins/bigquery/dbt/adapters/bigquery/impl.py index 648cf2a87e0..5f8027cd86f 100644 --- a/plugins/bigquery/dbt/adapters/bigquery/impl.py +++ b/plugins/bigquery/dbt/adapters/bigquery/impl.py @@ -48,7 +48,8 @@ class BigQueryAdapter(BaseAdapter): Column =...
numba__numba-3467
Conditions on constant expr not working in stencil Hello, i just noticed a weird behaviour with condition in stencil: ``` from numba import stencil import numpy as np @stencil def kernel1(a): b = 0 if(2==0): b=2 return a[0,0]+b in_arr = np.arange(100).reshape((10, 10)) print(in_arr) output_ar...
[ { "content": "from __future__ import print_function, division, absolute_import\n\nfrom collections import defaultdict\nimport copy\nimport itertools\nimport os\nimport linecache\nimport pprint\nimport re\nimport sys\nimport warnings\nfrom numba import config, errors\nimport operator\n\nfrom .utils import BINOPS...
[ { "content": "from __future__ import print_function, division, absolute_import\n\nfrom collections import defaultdict\nimport copy\nimport itertools\nimport os\nimport linecache\nimport pprint\nimport re\nimport sys\nimport warnings\nfrom numba import config, errors\nimport operator\n\nfrom .utils import BINOPS...
diff --git a/numba/ir.py b/numba/ir.py index 963ddc85cb4..4748afbc224 100644 --- a/numba/ir.py +++ b/numba/ir.py @@ -1094,6 +1094,18 @@ def dump_generator_info(self, file=None): # A stub for undefined global reference class UndefinedType(object): + + _singleton = None + + def __new__(cls): + obj = cls....
keras-team__keras-903
A model doesn't know its input_shape after build Reproduce the error as ``` python model = Sequential() model.add(Dense(1), input_shape=(784,)) model.build() model.input_shape ``` Shouldn't the model know its `input_shape` after `build`? It knows `output_shape` for instance. Am I missing anything @matsuyamax ?
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\nfrom __future__ import print_function\n\nfrom collections import OrderedDict\nimport theano.tensor as T\nfrom ..layers.core import Layer, Merge\nfrom ..utils.theano_utils import ndim_tensor\nfrom six.moves import range\n\n\nclass Seq...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\nfrom __future__ import print_function\n\nfrom collections import OrderedDict\nimport theano.tensor as T\nfrom ..layers.core import Layer, Merge\nfrom ..utils.theano_utils import ndim_tensor\nfrom six.moves import range\n\n\nclass Seq...
diff --git a/keras/layers/containers.py b/keras/layers/containers.py index 422359a9037c..44722dc895d3 100644 --- a/keras/layers/containers.py +++ b/keras/layers/containers.py @@ -84,7 +84,11 @@ def get_input(self, train=False): if not hasattr(self.layers[0], 'input'): self.set_input() ret...
sunpy__sunpy-6597
Header helper is bugged when creating a PCij matrix from a rotation angle for rectangular pixels As [noted on the mailing list](https://groups.google.com/d/msgid/sunpy/0352a093-e23d-4681-8113-e560bd2be92an%40googlegroups.com), the calculation in the header helper of a PCij matrix from a rotation angle is incorrect when...
[ { "content": "import numpy as np\n\nimport astropy.units as u\nimport astropy.wcs\nfrom astropy.coordinates import SkyCoord\n\nfrom sunpy import log\nfrom sunpy.coordinates import frames, sun\nfrom sunpy.util import MetaDict\n\n__all__ = ['meta_keywords', 'make_fitswcs_header', 'get_observer_meta', 'make_heliog...
[ { "content": "import numpy as np\n\nimport astropy.units as u\nimport astropy.wcs\nfrom astropy.coordinates import SkyCoord\n\nfrom sunpy import log\nfrom sunpy.coordinates import frames, sun\nfrom sunpy.util import MetaDict\n\n__all__ = ['meta_keywords', 'make_fitswcs_header', 'get_observer_meta', 'make_heliog...
diff --git a/changelog/6597.bugfix.rst b/changelog/6597.bugfix.rst new file mode 100644 index 00000000000..17fb0e88126 --- /dev/null +++ b/changelog/6597.bugfix.rst @@ -0,0 +1 @@ +Fixed the incorrect calculation in :func:`~sunpy.map.header_helper.make_fitswcs_header` of the rotation matrix from a rotation angle when th...
plone__Products.CMFPlone-2982
PasswordResetView::getErrors function never called. ## BUG <!-- Read https://plone.org/support/bugs first! Please use the labels at Github, at least one of the types: bug, regression, question, enhancement. Please include tracebacks, screenshots, code of debugging sessions or code that reproduces the issue ...
[ { "content": "# -*- coding: utf-8 -*-\nfrom AccessControl.SecurityManagement import getSecurityManager\nfrom email.header import Header\nfrom plone.app.layout.navigation.interfaces import INavigationRoot\nfrom plone.memoize import view\nfrom plone.registry.interfaces import IRegistry\nfrom Products.CMFCore.util...
[ { "content": "# -*- coding: utf-8 -*-\nfrom AccessControl.SecurityManagement import getSecurityManager\nfrom email.header import Header\nfrom plone.app.layout.navigation.interfaces import INavigationRoot\nfrom plone.memoize import view\nfrom plone.registry.interfaces import IRegistry\nfrom Products.CMFCore.util...
diff --git a/Products/CMFPlone/browser/login/password_reset.py b/Products/CMFPlone/browser/login/password_reset.py index f178e8c80b..c56810c857 100644 --- a/Products/CMFPlone/browser/login/password_reset.py +++ b/Products/CMFPlone/browser/login/password_reset.py @@ -117,6 +117,9 @@ def _auto_login(self, userid, passwor...
voicepaw__so-vits-svc-fork-311
Use RichProgressBar **Is your feature request related to a problem? Please describe.** We already include the `rich` package, so we can use it's progress bar as described here: It'll look like this: ![image](https://user-images.githubusercontent.com/1345036/231591900-57088cdb-5b26-49d3-a876-dcf628b637b6.png) ...
[ { "content": "from __future__ import annotations\n\nimport warnings\nfrom logging import getLogger\nfrom pathlib import Path\nfrom typing import Any\n\nimport lightning.pytorch as pl\nimport torch\nfrom lightning.pytorch.accelerators import TPUAccelerator\nfrom lightning.pytorch.loggers import TensorBoardLogger...
[ { "content": "from __future__ import annotations\n\nimport warnings\nfrom logging import getLogger\nfrom pathlib import Path\nfrom typing import Any\n\nimport lightning.pytorch as pl\nimport torch\nfrom lightning.pytorch.accelerators import TPUAccelerator\nfrom lightning.pytorch.loggers import TensorBoardLogger...
diff --git a/src/so_vits_svc_fork/train.py b/src/so_vits_svc_fork/train.py index 9c90af39..4475cf74 100644 --- a/src/so_vits_svc_fork/train.py +++ b/src/so_vits_svc_fork/train.py @@ -82,6 +82,7 @@ def train( if hparams.train.get("bf16_run", False) else 32, strategy=strategy, + callback...
huggingface__transformers-10531
Typo in deberta_v2/__init__.py https://github.com/huggingface/transformers/blob/c503a1c15ec1b11e69a3eaaf06edfa87c05a2849/src/transformers/models/deberta_v2/__init__.py#L31 Should be '' DEBERTA_V2_PRETRAINED_MODEL_ARCHIVE_LIST ''.
[ { "content": "# flake8: noqa\n# There's no way to ignore \"F401 '...' imported but unused\" warnings in this\n# module, but to preserve other warnings. So, don't check this module at all.\n\n# Copyright 2020 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"L...
[ { "content": "# flake8: noqa\n# There's no way to ignore \"F401 '...' imported but unused\" warnings in this\n# module, but to preserve other warnings. So, don't check this module at all.\n\n# Copyright 2020 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"L...
diff --git a/src/transformers/models/deberta_v2/__init__.py b/src/transformers/models/deberta_v2/__init__.py index b00c8f1afb81..6783455cf634 100644 --- a/src/transformers/models/deberta_v2/__init__.py +++ b/src/transformers/models/deberta_v2/__init__.py @@ -28,7 +28,7 @@ if is_torch_available(): _import_struct...
zigpy__zha-device-handlers-1362
[Device Support Request] **Is your feature request related to a problem? Please describe.** When my zigbee is discovered (_TZE200_tviaymwx ) by the Zigbee Home Automation integration Home Assistant, it's not properly recognized. Is not using the propew Quirk (TuyaSingleSwitchTO) and thus, is nos showing the proper c...
[ { "content": "\"\"\"Tuya DP based switches.\"\"\"\nfrom zigpy.profiles import zha\nfrom zigpy.zcl.clusters.general import Basic, Groups, Ota, Scenes, Time\n\nfrom zhaquirks.const import (\n DEVICE_TYPE,\n ENDPOINTS,\n INPUT_CLUSTERS,\n MODELS_INFO,\n OUTPUT_CLUSTERS,\n PROFILE_ID,\n)\nfrom zha...
[ { "content": "\"\"\"Tuya DP based switches.\"\"\"\nfrom zigpy.profiles import zha\nfrom zigpy.zcl.clusters.general import Basic, Groups, Ota, Scenes, Time\n\nfrom zhaquirks.const import (\n DEVICE_TYPE,\n ENDPOINTS,\n INPUT_CLUSTERS,\n MODELS_INFO,\n OUTPUT_CLUSTERS,\n PROFILE_ID,\n)\nfrom zha...
diff --git a/zhaquirks/tuya/ts0601_switch.py b/zhaquirks/tuya/ts0601_switch.py index af453ef3ef..958ac57465 100644 --- a/zhaquirks/tuya/ts0601_switch.py +++ b/zhaquirks/tuya/ts0601_switch.py @@ -81,6 +81,7 @@ class TuyaSingleSwitchTO(TuyaSwitch): ("_TZE200_vhy3iakz", "TS0601"), # ¿1 or 4 gangs? ...
wright-group__WrightTools-359
coverage consider using [coverage](https://coverage.readthedocs.io/en/coverage-4.4.1/)
[ { "content": "#! /usr/bin/env python3\n\nimport os\nfrom setuptools import setup, find_packages\n\n\ndef package_files(directory):\n paths = []\n for (path, directories, filenames) in os.walk(directory):\n for filename in filenames:\n paths.append(os.path.join('..', path, filename))\n ...
[ { "content": "#! /usr/bin/env python3\n\nimport os\nfrom setuptools import setup, find_packages\n\n\ndef package_files(directory):\n paths = []\n for (path, directories, filenames) in os.walk(directory):\n for filename in filenames:\n paths.append(os.path.join('..', path, filename))\n ...
diff --git a/setup.cfg b/setup.cfg index 0b759e745..1e2d184c4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,5 +22,5 @@ add-ignore = D105 description-file = README.rst [tool:pytest] -addopts = --verbose +addopts = --cov=WrightTools --verbose --cov-report term:skip-covered python_files = tests/*.py diff --git a/setu...
awslabs__gluonts-578
DeepStateEstimator with add_trend=True throws "module 'mxnet.symbol' has no attribute 'array'" ## Description DeepStateEstimator with add_trend=True throws the exception below. Setting add_trend=False (the default) does not throw the exception. ## To Reproduce See attached modified **benchmark_m4.py.txt** [be...
[ { "content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. 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# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE...
[ { "content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. 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# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE...
diff --git a/src/gluonts/model/deepstate/issm.py b/src/gluonts/model/deepstate/issm.py index 8135e365b3..f7c967920f 100644 --- a/src/gluonts/model/deepstate/issm.py +++ b/src/gluonts/model/deepstate/issm.py @@ -201,8 +201,7 @@ def transition_coeff( F = getF(seasonal_indicators) _transition_coeff = (...
getsentry__sentry-python-323
Make sure everything works with Django-Rest-Framework We should django-rest-framework's `request.data` instead of trying to extract a structured body ourselves
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\n\nimport sys\nimport weakref\n\nfrom django import VERSION as DJANGO_VERSION # type: ignore\nfrom django.db.models.query import QuerySet # type: ignore\nfrom django.core import signals # type: ignore\n\nif False:\n from typing ...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\n\nimport sys\nimport weakref\n\nfrom django import VERSION as DJANGO_VERSION # type: ignore\nfrom django.db.models.query import QuerySet # type: ignore\nfrom django.core import signals # type: ignore\n\nif False:\n from typing ...
diff --git a/sentry_sdk/integrations/django/__init__.py b/sentry_sdk/integrations/django/__init__.py index b63d6486f1..504388c05a 100644 --- a/sentry_sdk/integrations/django/__init__.py +++ b/sentry_sdk/integrations/django/__init__.py @@ -265,6 +265,12 @@ def files(self): def size_of_file(self, file): ret...
biopython__biopython-4387
Multiple valued comments in TRANSFAC motifs files ### Setup I am reporting a problem with Biopython version, Python version, and operating system as follows: ```python >>> import sys; print(sys.version) 3.11.4 (main, Jun 13 2023, 13:54:09) [GCC 8.3.0] >>> import platform; print(platform.python_implementation(...
[ { "content": "# Copyright 2003 by Bartek Wilczynski. 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#...
[ { "content": "# Copyright 2003 by Bartek Wilczynski. 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#...
diff --git a/Bio/motifs/transfac.py b/Bio/motifs/transfac.py index cb495ed2c3a..dad5a72423e 100644 --- a/Bio/motifs/transfac.py +++ b/Bio/motifs/transfac.py @@ -62,7 +62,7 @@ class Motif(motifs.Motif, dict): For more information, see the TRANSFAC documentation. """ - multiple_value_keys = {"BF", "OV", "H...
blakeblackshear__frigate-8835
[Support]: Amcrest secondary stream 704x480 birdseye ratio ### Describe the problem you are having Birdseye in 0.13.0-beta6 overrides configuration to match aspect ratio. Amcrest cameras sending (what they call D1), NTSC DVT resolution of 704x480 requires an aspect of 22:15 to avoid empty space in the stream. ### Ver...
[ { "content": "import datetime\nimport glob\nimport logging\nimport math\nimport multiprocessing as mp\nimport os\nimport queue\nimport signal\nimport subprocess as sp\nimport threading\nimport traceback\nfrom wsgiref.simple_server import make_server\n\nimport cv2\nimport numpy as np\nfrom setproctitle import se...
[ { "content": "import datetime\nimport glob\nimport logging\nimport math\nimport multiprocessing as mp\nimport os\nimport queue\nimport signal\nimport subprocess as sp\nimport threading\nimport traceback\nfrom wsgiref.simple_server import make_server\n\nimport cv2\nimport numpy as np\nfrom setproctitle import se...
diff --git a/frigate/output.py b/frigate/output.py index 5d8013d2e9..a70e5a8049 100644 --- a/frigate/output.py +++ b/frigate/output.py @@ -45,6 +45,7 @@ def get_standard_aspect_ratio(width: int, height: int) -> tuple[int, int]: (32, 9), # panoramic cameras (12, 9), (9, 12), + (22, 15)...
pyca__cryptography-163
Hasher.hexdigest() is documented as returning a str, but returns unicode under python2 It should return a native string under boht py2 and py3
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, so...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, so...
diff --git a/cryptography/primitives/hashes.py b/cryptography/primitives/hashes.py index c4bd8ad0e1ec..7133a9163f6a 100644 --- a/cryptography/primitives/hashes.py +++ b/cryptography/primitives/hashes.py @@ -44,7 +44,7 @@ def digest(self): self.digest_size) def hexd...
napari__napari-2633
Showing notifications needs to be more robust to an existing QtApp ## 🐛 Bug In `qt_event_loop.py`, we chose to put this connection of the notification manager inside of the conditional that only runs if napari created the app: ``` notification_manager.notification_ready.connect( NapariQtNot...
[ { "content": "from __future__ import annotations\n\nimport os\nimport sys\nfrom contextlib import contextmanager\nfrom typing import TYPE_CHECKING\nfrom warnings import warn\n\nfrom qtpy.QtCore import Qt\nfrom qtpy.QtGui import QIcon\nfrom qtpy.QtWidgets import QApplication\n\nfrom .. import __version__\nfrom ....
[ { "content": "from __future__ import annotations\n\nimport os\nimport sys\nfrom contextlib import contextmanager\nfrom typing import TYPE_CHECKING\nfrom warnings import warn\n\nfrom qtpy.QtCore import Qt\nfrom qtpy.QtGui import QIcon\nfrom qtpy.QtWidgets import QApplication\n\nfrom .. import __version__\nfrom ....
diff --git a/napari/_qt/qt_event_loop.py b/napari/_qt/qt_event_loop.py index 241bdcd0455..6dd646b9001 100644 --- a/napari/_qt/qt_event_loop.py +++ b/napari/_qt/qt_event_loop.py @@ -150,6 +150,7 @@ def get_app( app.setOrganizationDomain(kwargs.get('org_domain')) set_app_id(kwargs.get('app_id')) + ...
Cloud-CV__EvalAI-2198
Challenges not displayed on the challenge page if > 10 ## Current Behaviour: If there are more than 10 challenges on the challenge page then those challenges aren't displayed on the page. ## Expected Behaviour: All the challenges should be displayed on the challenge page. ## Deliverables - - [ ] The API alrea...
[ { "content": "\"\"\"\nDjango settings for evalai project.\n\nGenerated by 'django-admin startproject' using Django 1.10.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.10/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/...
[ { "content": "\"\"\"\nDjango settings for evalai project.\n\nGenerated by 'django-admin startproject' using Django 1.10.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.10/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/...
diff --git a/settings/common.py b/settings/common.py index 3b77e7e6f2..5984850a10 100755 --- a/settings/common.py +++ b/settings/common.py @@ -152,7 +152,7 @@ REST_FRAMEWORK = { 'DEFAULT_PAGINATION_CLASS': ( 'rest_framework.pagination.LimitOffsetPagination'), - 'PAGE_SIZE': 10, + 'PAGE_SIZE': 100, ...