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
⌀
OpenMined__PySyft-3672
FV cipher-text data change during decryption. ## Description During the decryption process, the ciphertext was soft copied and it changed the ciphertext value during decryption. So we lose the value of ciphertext. ## How to Reproduce 1. Create a ciphertext 2. Decrypt that ciphertext 3. Retry to decrypt the same ci...
[ { "content": "from numpy.polynomial import polynomial as poly\n\n\nfrom syft.frameworks.torch.he.fv.plaintext import PlainText\nfrom syft.frameworks.torch.he.fv.util.operations import get_significant_count\nfrom syft.frameworks.torch.he.fv.util.operations import poly_add_mod\nfrom syft.frameworks.torch.he.fv.ut...
[ { "content": "import copy\nfrom numpy.polynomial import polynomial as poly\n\n\nfrom syft.frameworks.torch.he.fv.plaintext import PlainText\nfrom syft.frameworks.torch.he.fv.util.operations import get_significant_count\nfrom syft.frameworks.torch.he.fv.util.operations import poly_add_mod\nfrom syft.frameworks.t...
diff --git a/syft/frameworks/torch/he/fv/decryptor.py b/syft/frameworks/torch/he/fv/decryptor.py index bf7aee39760..e55911b8064 100644 --- a/syft/frameworks/torch/he/fv/decryptor.py +++ b/syft/frameworks/torch/he/fv/decryptor.py @@ -1,3 +1,4 @@ +import copy from numpy.polynomial import polynomial as poly @@ -32,7 ...
sanic-org__sanic-1006
Unexpected HTTP 405 errors when using shorthand route decorators Hello Sanic folks, I've been playing with Sanic recently and stumbled on getting weird 405 HTTP errors on endpoints that have methods defined. This only happens when 1) I use the `app.<http_method>` (e.g. `app.post`) decorator and 2) when I try to quer...
[ { "content": "import re\nfrom collections import defaultdict, namedtuple\nfrom collections.abc import Iterable\nfrom functools import lru_cache\n\nfrom sanic.exceptions import NotFound, InvalidUsage\nfrom sanic.views import CompositionView\n\nRoute = namedtuple(\n 'Route',\n ['handler', 'methods', 'patter...
[ { "content": "import re\nfrom collections import defaultdict, namedtuple\nfrom collections.abc import Iterable\nfrom functools import lru_cache\n\nfrom sanic.exceptions import NotFound, InvalidUsage\nfrom sanic.views import CompositionView\n\nRoute = namedtuple(\n 'Route',\n ['handler', 'methods', 'patter...
diff --git a/sanic/router.py b/sanic/router.py index 21c98766b2..b601622c48 100644 --- a/sanic/router.py +++ b/sanic/router.py @@ -130,8 +130,15 @@ def add(self, uri, methods, handler, host=None, strict_slashes=False, return # Add versions with and without trailing / + slashed_methods = s...
rasterio__rasterio-1690
CRS are unhashable CRS objects are not hashable: ``` >>> from rasterio.crs import CRS >>> c = CRS.from_dict(init="epsg:4326") >>> d = {c: True} Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unhashable type: 'CRS' ``` I think it would be very nice for caching, for examp...
[ { "content": "\"\"\"Coordinate Reference Systems\n\nNotes\n-----\n\nIn Rasterio versions <= 1.0.13, coordinate reference system support was limited\nto the CRS that can be described by PROJ parameters. This limitation is gone in\nversions >= 1.0.14. Any CRS that can be defined using WKT (version 1) may be\nused...
[ { "content": "\"\"\"Coordinate Reference Systems\n\nNotes\n-----\n\nIn Rasterio versions <= 1.0.13, coordinate reference system support was limited\nto the CRS that can be described by PROJ parameters. This limitation is gone in\nversions >= 1.0.14. Any CRS that can be defined using WKT (version 1) may be\nused...
diff --git a/CHANGES.txt b/CHANGES.txt index 9deeda739..9ef667d05 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,8 @@ Changes Next ---- +- CRS objects are now hashable and equivalent CRS objects have the same hash + value (#1684). - Allow AWS regions to be specified no matter the signing of requests (#1670...
ManageIQ__integration_tests-4379
Allow for DropdownDisabled exception during widgetastic_patternfly.Dropdown.close When calling Dropdown.item_select() on some pages (collections) the dropdown may be disabled after the selection is made. `close` is called, and it only catches NoSuchElementException from _verify_enabled. Change to also catch Dropdown...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport re\nimport six\nimport time\nfrom cached_property import cached_property\n\nfrom widgetastic.exceptions import NoSuchElementException, UnexpectedAlertPresentException\nfrom widgetastic.log import call_sig\nfrom widgetastic....
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport re\nimport six\nimport time\nfrom cached_property import cached_property\n\nfrom widgetastic.exceptions import NoSuchElementException, UnexpectedAlertPresentException\nfrom widgetastic.log import call_sig\nfrom widgetastic....
diff --git a/widgetastic_patternfly.py b/widgetastic_patternfly.py index 06922aff21..8272831a58 100644 --- a/widgetastic_patternfly.py +++ b/widgetastic_patternfly.py @@ -1116,11 +1116,16 @@ def open(self): self.browser.click(self) def close(self, ignore_nonpresent=False): + """Close the drop...
scikit-hep__uproot5-228
Cannot read TProfile2D or TProfile2D from file ### Setup information ``` uproot.__version__ '4.0.1rc2' ``` but also `4.0.0` ### Description I opened a file, ``` filepath = "./bla.root" data = uproot.open(filepath) data["name"] ``` with `name` an object of type `TH1F`, `TH2F`, and `TProfile2D` res...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE\n\n\"\"\"\nThis module defines the behavior of ``TProfile3D``.\n\"\"\"\n\nfrom __future__ import absolute_import\n\nimport numpy\n\nimport uproot\nfrom uproot.behaviors.TH1 import boost_metadata, boost_axis_metadat...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE\n\n\"\"\"\nThis module defines the behavior of ``TProfile3D``.\n\"\"\"\n\nfrom __future__ import absolute_import\n\nimport numpy\n\nimport uproot\nfrom uproot.behaviors.TH1 import boost_metadata, boost_axis_metadat...
diff --git a/tests/test_0228_read-TProfiles.py b/tests/test_0228_read-TProfiles.py new file mode 100644 index 000000000..c9c5d013b --- /dev/null +++ b/tests/test_0228_read-TProfiles.py @@ -0,0 +1,48 @@ +# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE + +import numpy as np +from numpy...
tensorflow__addons-323
LayerNormLSTMCellTest failed in the latest tf2-nightly version **System information** - Have I written custom code (as opposed to using a stock example script provided in TensorFlow): - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): - TensorFlow installed from (source or binary): - TensorFlow version (use...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/requirements.txt b/requirements.txt index cb9cccd4d1..5279e237b3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -tf-nightly-2.0-preview==2.0.0.dev20190625 +tf-nightly-2.0-preview diff --git a/tensorflow_addons/rnn/cell.py b/tensorflow_addons/rnn/cell.py index 17d1f2d3e3..a14854bdd7 100644...
localstack__localstack-10170
Invoking a lambda using a function url always returns 200 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior Given the following javascript lambda function ```javascript exports.main = async (event) => { console.log('Hello World'); return { statusCode...
[ { "content": "\"\"\"Routing for Lambda function URLs: https://docs.aws.amazon.com/lambda/latest/dg/lambda-urls.html\"\"\"\nimport base64\nimport json\nimport logging\nimport urllib\nfrom datetime import datetime\nfrom http import HTTPStatus\n\nfrom localstack.aws.api import HttpResponse\nfrom localstack.aws.api...
[ { "content": "\"\"\"Routing for Lambda function URLs: https://docs.aws.amazon.com/lambda/latest/dg/lambda-urls.html\"\"\"\nimport base64\nimport json\nimport logging\nimport urllib\nfrom datetime import datetime\nfrom http import HTTPStatus\n\nfrom localstack.aws.api import HttpResponse\nfrom localstack.aws.api...
diff --git a/localstack/services/lambda_/urlrouter.py b/localstack/services/lambda_/urlrouter.py index 30ee9d842fdf5..41a5e4129d685 100644 --- a/localstack/services/lambda_/urlrouter.py +++ b/localstack/services/lambda_/urlrouter.py @@ -192,6 +192,8 @@ def lambda_result_to_response(result: InvocationResult): #...
Project-MONAI__MONAI-2010
Duplicated records of `RandSpatialCropSamplesd` in `key_transforms` in case of preceding transforms **Describe the bug** When using `RandSpatialCropSamplesd` in a transform chain in a dataset the record of transforms (`key_transforms`) of a single output patch differs depending on whether another transform has been ...
[ { "content": "# Copyright 2020 - 2021 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 appli...
[ { "content": "# Copyright 2020 - 2021 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 appli...
diff --git a/monai/transforms/croppad/dictionary.py b/monai/transforms/croppad/dictionary.py index 750add4a28..d68c4c4779 100644 --- a/monai/transforms/croppad/dictionary.py +++ b/monai/transforms/croppad/dictionary.py @@ -543,8 +543,11 @@ def randomize(self, data: Optional[Any] = None) -> None: def __call__(sel...
freedomofpress__securedrop-2802
Prevent admin journalists from deleting themselves To prevent lockouts and other forms of usability degradation, I propose one of two things: 1) a full ban on any admin from deleting themselves 2) an admin may not delete themselves if they are the last remaining admin
[ { "content": "# -*- coding: utf-8 -*-\n\nimport os\n\nfrom flask import (Blueprint, render_template, request, url_for, redirect, g,\n current_app, flash, abort)\nfrom flask_babel import gettext\nfrom sqlalchemy.exc import IntegrityError\nfrom sqlalchemy.orm.exc import NoResultFound\n\nfrom db ...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport os\n\nfrom flask import (Blueprint, render_template, request, url_for, redirect, g,\n current_app, flash, abort)\nfrom flask_babel import gettext\nfrom sqlalchemy.exc import IntegrityError\nfrom sqlalchemy.orm.exc import NoResultFound\n\nfrom db ...
diff --git a/securedrop/journalist_app/admin.py b/securedrop/journalist_app/admin.py index e981f77c7e..c47a8aab9b 100644 --- a/securedrop/journalist_app/admin.py +++ b/securedrop/journalist_app/admin.py @@ -208,7 +208,13 @@ def set_password(user_id): @admin_required def delete_user(user_id): user = J...
svthalia__concrexit-1826
Add search parameter to event registrations admin api ### Is your feature request related to a problem? Please describe. I'm always frustrated when I can't search for a registration in the event admin. ### Describe the solution you'd like A search parameter (by member.name or name) on `api/v2/admin/events/<id>/reg...
[ { "content": "from django.http import Http404\nfrom oauth2_provider.contrib.rest_framework import IsAuthenticatedOrTokenHasScope\nfrom rest_framework import status\nfrom rest_framework.exceptions import ValidationError, PermissionDenied\nfrom rest_framework.generics import get_object_or_404\nfrom rest_framework...
[ { "content": "from django.http import Http404\nfrom oauth2_provider.contrib.rest_framework import IsAuthenticatedOrTokenHasScope\nfrom rest_framework import status\nfrom rest_framework.exceptions import ValidationError, PermissionDenied\nfrom rest_framework.generics import get_object_or_404\nfrom rest_framework...
diff --git a/website/events/api/v2/admin/views.py b/website/events/api/v2/admin/views.py index a73e64d54..74755c1de 100644 --- a/website/events/api/v2/admin/views.py +++ b/website/events/api/v2/admin/views.py @@ -72,9 +72,15 @@ class EventRegistrationAdminListView(AdminListAPIView, AdminCreateAPIView): required_sc...
kserve__kserve-705
KFServing Transformer does not work with onnxruntime and trtis model server /kind bug **What steps did you take and what happened:** Currently kfserving transformer does not work with onnxruntime and trtis model server due to following validation because their data plane do not support `instances` key in JSON. htt...
[ { "content": "import tornado.web\nimport json\nfrom typing import Dict\nfrom http import HTTPStatus\nfrom kfserving.kfmodel import KFModel\n\n\nclass HTTPHandler(tornado.web.RequestHandler):\n def initialize(self, models: Dict[str, KFModel]):\n self.models = models # pylint:disable=attribute-defined-o...
[ { "content": "import tornado.web\nimport json\nfrom typing import Dict\nfrom http import HTTPStatus\nfrom kfserving.kfmodel import KFModel\n\n\nclass HTTPHandler(tornado.web.RequestHandler):\n def initialize(self, models: Dict[str, KFModel]):\n self.models = models # pylint:disable=attribute-defined-o...
diff --git a/python/kfserving/kfserving/handlers/http.py b/python/kfserving/kfserving/handlers/http.py index b2214c71239..93603db69a8 100644 --- a/python/kfserving/kfserving/handlers/http.py +++ b/python/kfserving/kfserving/handlers/http.py @@ -21,13 +21,7 @@ def get_model(self, name: str): return model ...
elastic__apm-agent-python-1673
[META 659] Backend dependencies granularity for NoSQL and Messaging See meta issue for the description and details: - Meta issue: https://github.com/elastic/apm/issues/659 This is done for everything except for Elasticsearch.
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain...
diff --git a/elasticapm/instrumentation/packages/elasticsearch.py b/elasticapm/instrumentation/packages/elasticsearch.py index a8ec64412..02fd91a7f 100644 --- a/elasticapm/instrumentation/packages/elasticsearch.py +++ b/elasticapm/instrumentation/packages/elasticsearch.py @@ -71,9 +71,13 @@ def call(self, module, metho...
weni-ai__bothub-engine-200
Ghost Intent Reported by @IlhasoftPeter in https://github.com/Ilhasoft/bothub/issues/26
[ { "content": "from setuptools import setup, find_packages\n\n\nsetup(\n name='bothub',\n version='1.15.1',\n description='bothub',\n packages=find_packages(),\n install_requires=[\n 'python-decouple',\n 'requests',\n 'django==2.0.6',\n 'djangorestframework==3.7.7',\n ...
[ { "content": "from setuptools import setup, find_packages\n\n\nsetup(\n name='bothub',\n version='1.15.2',\n description='bothub',\n packages=find_packages(),\n install_requires=[\n 'python-decouple',\n 'requests',\n 'django==2.0.6',\n 'djangorestframework==3.7.7',\n ...
diff --git a/bothub/common/models.py b/bothub/common/models.py index c23c9bdf..641b2ecb 100644 --- a/bothub/common/models.py +++ b/bothub/common/models.py @@ -190,7 +190,7 @@ def votes_sum(self): @property def intents(self): return list(set(self.examples( - exclude_deleted=False).exclude( ...
yt-project__yt-4341
TST: CI instability (setuptools + nose) ### Bug report **Bug summary** CI is currently unstable (see https://github.com/yt-project/yt/actions/runs/4180211484) because `setuptools` `67.3` deprecates `pkg_resources.declare_namespace`, which is used by `nose`. As we know, `nose` is unmaintained so there's no hope t...
[ { "content": "import os\nimport shutil\nimport tempfile\nfrom importlib.metadata import version\nfrom importlib.util import find_spec\nfrom pathlib import Path\n\nimport pytest\nimport yaml\nfrom packaging.version import Version\n\nfrom yt.config import ytcfg\nfrom yt.utilities.answer_testing.testing_utilities ...
[ { "content": "import os\nimport shutil\nimport tempfile\nfrom importlib.metadata import version\nfrom importlib.util import find_spec\nfrom pathlib import Path\n\nimport pytest\nimport yaml\nfrom packaging.version import Version\n\nfrom yt.config import ytcfg\nfrom yt.utilities.answer_testing.testing_utilities ...
diff --git a/conftest.py b/conftest.py index e3262fc75c4..b23da7b60d1 100644 --- a/conftest.py +++ b/conftest.py @@ -116,7 +116,9 @@ def pytest_configure(config): if SETUPTOOLS_VERSION >= Version("67.3.0"): config.addinivalue_line( "filterwarnings", - r"ignore:Imple...
pyro-ppl__numpyro-1113
[Docs] Syntax highlighting broken for notebook examples / tutorials Syntax highlighting doesn't seem to work on any notebook based examples tutorials in the deployed documentation. See e.g. http://num.pyro.ai/en/stable/tutorials/bayesian_regression.html Interestingly I don't have the same problems if I build the doc...
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport sys\n\nfrom setuptools import find_packages, setup\n\nPROJECT_PATH = os.path.dirname(os.path.abspath(__file__))\n_available_...
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport sys\n\nfrom setuptools import find_packages, setup\n\nPROJECT_PATH = os.path.dirname(os.path.abspath(__file__))\n_available_...
diff --git a/docs/requirements.txt b/docs/requirements.txt index 567c3b922..1255b6335 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,11 +1,15 @@ dm-haiku flax funsor>=0.4.1 +ipython jax>=0.2.11 jaxlib>=0.1.62 jaxns>=0.0.7 optax>=0.0.6 -nbsphinx>=0.8.5 +nbsphinx==0.8.6 +readthedocs-sphinx-se...
pypa__pip-6774
AttributeError: 'NoneType' object has no attribute 'is_hash_allowed' **Environment** * pip version: 19.2 * Python version: 3.6.8 * OS: Mac OSX (Darwin Kernel Version 18.6.0) **Description** I made env update in my project including pip as well. After that I wanted to check outdated packages with command: ``...
[ { "content": "import posixpath\nimport re\n\nfrom pip._vendor.six.moves.urllib import parse as urllib_parse\n\nfrom pip._internal.utils.misc import (\n WHEEL_EXTENSION, path_to_url, redact_password_from_url,\n split_auth_from_netloc, splitext,\n)\nfrom pip._internal.utils.models import KeyBasedCompareMixi...
[ { "content": "import posixpath\nimport re\n\nfrom pip._vendor.six.moves.urllib import parse as urllib_parse\n\nfrom pip._internal.utils.misc import (\n WHEEL_EXTENSION, path_to_url, redact_password_from_url,\n split_auth_from_netloc, splitext,\n)\nfrom pip._internal.utils.models import KeyBasedCompareMixi...
diff --git a/news/6772.bugfix b/news/6772.bugfix new file mode 100644 index 00000000000..b85e44c8aaf --- /dev/null +++ b/news/6772.bugfix @@ -0,0 +1,2 @@ +Fix a ``NoneType`` ``AttributeError`` when evaluating hashes and no hashes +are provided. diff --git a/src/pip/_internal/models/link.py b/src/pip/_internal/models/li...
getsentry__sentry-56453
Support apdex without parameter
[ { "content": "import hashlib\nimport logging\nimport re\nfrom dataclasses import dataclass\nfrom typing import (\n Any,\n Callable,\n Dict,\n List,\n Literal,\n Optional,\n Sequence,\n Tuple,\n Type,\n TypedDict,\n TypeVar,\n Union,\n cast,\n)\n\nfrom django.utils.function...
[ { "content": "import hashlib\nimport logging\nimport re\nfrom dataclasses import dataclass\nfrom typing import (\n Any,\n Callable,\n Dict,\n List,\n Literal,\n Optional,\n Sequence,\n Tuple,\n Type,\n TypedDict,\n TypeVar,\n Union,\n cast,\n)\n\nfrom django.utils.function...
diff --git a/src/sentry/snuba/metrics/extraction.py b/src/sentry/snuba/metrics/extraction.py index e59b9a2c192d3d..71ea331faa8eab 100644 --- a/src/sentry/snuba/metrics/extraction.py +++ b/src/sentry/snuba/metrics/extraction.py @@ -306,13 +306,13 @@ def _get_function_support(function: str) -> SupportedBy: def _get_...
common-workflow-language__cwltool-672
Information about javascript timeouts not printed to the console At https://github.com/common-workflow-language/cwltool/blob/f454efb1e980b2a9374afba4a8b793f73f4d891a/cwltool/sandboxjs.py#L297-L301, if `debug` is false, no information about the snippet of javascript that caused the timeout is printed. Information about ...
[ { "content": "from __future__ import absolute_import\nimport errno\nimport json\nimport logging\nimport os\nimport re\nimport select\nimport subprocess\nimport threading\nimport sys\nfrom io import BytesIO\nfrom typing import Any, Dict, List, Mapping, Text, Tuple, Union\nfrom .utils import onWindows\nfrom pkg_r...
[ { "content": "from __future__ import absolute_import\nimport errno\nimport json\nimport logging\nimport os\nimport re\nimport select\nimport subprocess\nimport threading\nimport sys\nfrom io import BytesIO\nfrom typing import Any, Dict, List, Mapping, Text, Tuple, Union\nfrom .utils import onWindows\nfrom pkg_r...
diff --git a/cwltool/sandboxjs.py b/cwltool/sandboxjs.py index e2a513f49..567d2f2d6 100644 --- a/cwltool/sandboxjs.py +++ b/cwltool/sandboxjs.py @@ -292,7 +292,8 @@ def stdfmt(data): # type: (Text) -> Text info = u"returncode was: %s\nscript was:\n%s\nstdout was: %s\nstderr was: %s\n" %\ (node...
conan-io__conan-11223
[bug] crash on Windows when trying to obtain USERNAME from environment <!-- Please don't forget to update the issue title. Include all applicable information to help us reproduce your problem. To help us debug your issue please explain: --> ### Environment Details (include every applicable attribute) ...
[ { "content": "import os\nimport subprocess\nimport tempfile\n\nfrom conans.client.tools.oss import OSInfo\nfrom conans.errors import ConanException\nfrom conans.util.env_reader import get_env\nfrom conans.util.files import decode_text\nfrom conans.util.files import load, mkdir, rmdir, save\nfrom conans.util.log...
[ { "content": "import os\nimport subprocess\nimport tempfile\n\nfrom conans.client.tools.oss import OSInfo\nfrom conans.errors import ConanException\nfrom conans.util.env_reader import get_env\nfrom conans.util.files import decode_text\nfrom conans.util.files import load, mkdir, rmdir, save\nfrom conans.util.log...
diff --git a/conans/util/windows.py b/conans/util/windows.py index bf9e72ca0f9..8b8029ded11 100644 --- a/conans/util/windows.py +++ b/conans/util/windows.py @@ -89,7 +89,7 @@ def path_shortener(path, short_paths): domainname = "%s\%s" % (userdomain, username) if userdomain else username cmd = r'cacls ...
chainer__chainer-360
XConstant functions whose value is integer cannot access to label attributes Functions in basic_math which involve operations on constant values (namely, `AddConstant`, `SubFromConstant`, `MulConstant`, `DivFromConstant`, `PowConstVar`, and `PowVarConst`) admit that the constant value is integer. But when we do access ...
[ { "content": "import numpy\n\nfrom chainer import cuda\nfrom chainer import function\nfrom chainer import utils\nfrom chainer.utils import type_check\nfrom chainer import variable\n\n\n# ------------------------------------------------------------------------------\n# Arithmetic\n# -----------------------------...
[ { "content": "import numpy\n\nfrom chainer import cuda\nfrom chainer import function\nfrom chainer import utils\nfrom chainer.utils import type_check\nfrom chainer import variable\n\n\n# ------------------------------------------------------------------------------\n# Arithmetic\n# -----------------------------...
diff --git a/chainer/functions/basic_math.py b/chainer/functions/basic_math.py index 163ad76eb6c3..585e1df56bc5 100644 --- a/chainer/functions/basic_math.py +++ b/chainer/functions/basic_math.py @@ -15,13 +15,16 @@ def _convert_value_to_string(value): if isinstance(value, variable.Variable): value = value...
scrapy__scrapy-2103
Unicode Link Extractor When using the following to extract all of the links from a response: ``` self.link_extractor = LinkExtractor() ... links = self.link_extractor.extract_links(response) ``` On rare occasions, the following error is thrown: ``` 2016-05-25 12:13:55,432 [root] [ERROR] Error on http://detroit.curb...
[ { "content": "\"\"\"\nThis module contains general purpose URL functions not found in the standard\nlibrary.\n\nSome of the functions that used to be imported from this module have been moved\nto the w3lib.url module. Always import those from there instead.\n\"\"\"\nimport posixpath\nimport re\nimport six\nfrom...
[ { "content": "\"\"\"\nThis module contains general purpose URL functions not found in the standard\nlibrary.\n\nSome of the functions that used to be imported from this module have been moved\nto the w3lib.url module. Always import those from there instead.\n\"\"\"\nimport posixpath\nimport re\nimport six\nfrom...
diff --git a/scrapy/utils/url.py b/scrapy/utils/url.py index c80fc6e7002..406eb5843af 100644 --- a/scrapy/utils/url.py +++ b/scrapy/utils/url.py @@ -41,9 +41,16 @@ def url_has_any_extension(url, extensions): def _safe_ParseResult(parts, encoding='utf8', path_encoding='utf8'): + # IDNA encoding can fail for too ...
scverse__scanpy-329
Wrong axis label when using components argument in sc.pl.diffmap Example: ```python import scanpy.api as sc adata = sc.datasets.blobs() sc.pp.neighbors(adata) sc.tl.diffmap(adata) sc.pl.diffmap(adata, components='1,2') ``` gives the output: ![image](https://user-images.githubusercontent.com/7300030/47364845-...
[ { "content": "from matplotlib import pyplot as pl\nfrom pandas.api.types import is_categorical_dtype\nimport numpy as np\nfrom matplotlib import rcParams\nfrom matplotlib.colors import is_color_like\nfrom .. import utils\nfrom ...utils import sanitize_anndata, doc_params\nfrom ... import settings\nfrom ..docs i...
[ { "content": "from matplotlib import pyplot as pl\nfrom pandas.api.types import is_categorical_dtype\nimport numpy as np\nfrom matplotlib import rcParams\nfrom matplotlib.colors import is_color_like\nfrom .. import utils\nfrom ...utils import sanitize_anndata, doc_params\nfrom ... import settings\nfrom ..docs i...
diff --git a/scanpy/plotting/tools/scatterplots.py b/scanpy/plotting/tools/scatterplots.py index 0ed1622e1c..70eda2c699 100644 --- a/scanpy/plotting/tools/scatterplots.py +++ b/scanpy/plotting/tools/scatterplots.py @@ -425,6 +425,10 @@ def _get_data_points(adata, basis, projection, components): raise Value...
getsentry__sentry-13019
I get error Option value 'ID' is not valid in required field in Jira ## Description [What happened] when I try to link Jira issue get this error when filling the data https://monosnap.com/file/Ou1EIPjQhnzYYCVnNkghpgDXXqmDfu Feature filed is a custom field that we added in Jira it's required and it has a drop...
[ { "content": "from __future__ import absolute_import\n\nimport logging\nimport six\n\nfrom django.core.urlresolvers import reverse\nfrom django.utils.translation import ugettext as _\n\nfrom sentry import features\nfrom sentry.integrations import (\n IntegrationInstallation, IntegrationFeatures, IntegrationP...
[ { "content": "from __future__ import absolute_import\n\nimport logging\nimport six\n\nfrom django.core.urlresolvers import reverse\nfrom django.utils.translation import ugettext as _\n\nfrom sentry import features\nfrom sentry.integrations import (\n IntegrationInstallation, IntegrationFeatures, IntegrationP...
diff --git a/src/sentry/integrations/jira/integration.py b/src/sentry/integrations/jira/integration.py index d1fe825336f072..b29666d059aea4 100644 --- a/src/sentry/integrations/jira/integration.py +++ b/src/sentry/integrations/jira/integration.py @@ -319,9 +319,11 @@ def make_choices(self, values): if 'nam...
scrapy__scrapy-2038
Unicode Link Extractor When using the following to extract all of the links from a response: ``` self.link_extractor = LinkExtractor() ... links = self.link_extractor.extract_links(response) ``` On rare occasions, the following error is thrown: ``` 2016-05-25 12:13:55,432 [root] [ERROR] Error on http://detroit.curb...
[ { "content": "\"\"\"\nThis module contains general purpose URL functions not found in the standard\nlibrary.\n\nSome of the functions that used to be imported from this module have been moved\nto the w3lib.url module. Always import those from there instead.\n\"\"\"\nimport posixpath\nimport re\nimport six\nfrom...
[ { "content": "\"\"\"\nThis module contains general purpose URL functions not found in the standard\nlibrary.\n\nSome of the functions that used to be imported from this module have been moved\nto the w3lib.url module. Always import those from there instead.\n\"\"\"\nimport posixpath\nimport re\nimport six\nfrom...
diff --git a/scrapy/utils/url.py b/scrapy/utils/url.py index c80fc6e7002..406eb5843af 100644 --- a/scrapy/utils/url.py +++ b/scrapy/utils/url.py @@ -41,9 +41,16 @@ def url_has_any_extension(url, extensions): def _safe_ParseResult(parts, encoding='utf8', path_encoding='utf8'): + # IDNA encoding can fail for too ...
apache__tvm-2119
[CONTRIB] NNPack Test Flaky http://ci.tvm.ai:8080/job/tvm/job/PR-2103/1/consoleText cc @ajtulloch can you take a look?
[ { "content": "\"\"\"External function interface to NNPACK libraroes.\"\"\"\nfrom __future__ import absolute_import as _abs\n\nfrom .. import api as _api\nfrom .. import intrin as _intrin\nfrom .._ffi.function import _init_api\n\ndef config(nthreads):\n \"\"\"Configure the nnpack library.\n\n Parameters\n ...
[ { "content": "\"\"\"External function interface to NNPACK libraroes.\"\"\"\nfrom __future__ import absolute_import as _abs\n\nfrom .. import api as _api\nfrom .. import intrin as _intrin\nfrom .._ffi.function import _init_api\n\ndef is_available():\n \"\"\"Check whether NNPACK is available, that is, `nnp_ini...
diff --git a/python/tvm/contrib/nnpack.py b/python/tvm/contrib/nnpack.py index 36f8a76a87db..3fb00a3f85e5 100644 --- a/python/tvm/contrib/nnpack.py +++ b/python/tvm/contrib/nnpack.py @@ -5,16 +5,11 @@ from .. import intrin as _intrin from .._ffi.function import _init_api -def config(nthreads): - """Configure the...
optuna__optuna-3957
GridSampler raises TypeError when used with PostgreSQL ### Expected behavior The example from the documentation for [GridSampler](https://optuna.readthedocs.io/en/stable/reference/samplers/generated/optuna.samplers.GridSampler.html#optuna.samplers.GridSampler) should work just the same when adding a PostgreSQL storage...
[ { "content": "import collections\nimport itertools\nfrom numbers import Real\nfrom typing import Any\nfrom typing import Dict\nfrom typing import List\nfrom typing import Mapping\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Union\nimport warnings\n\nimport numpy as np\n\nfrom op...
[ { "content": "import collections\nimport itertools\nfrom numbers import Real\nfrom typing import Any\nfrom typing import Dict\nfrom typing import List\nfrom typing import Mapping\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Union\nimport warnings\n\nimport numpy as np\n\nfrom op...
diff --git a/optuna/samplers/_grid.py b/optuna/samplers/_grid.py index 50f6894191..e3f13d1015 100644 --- a/optuna/samplers/_grid.py +++ b/optuna/samplers/_grid.py @@ -157,7 +157,7 @@ def sample_relative( # In distributed optimization, multiple workers may simultaneously pick up the same grid. # To m...
google__timesketch-268
Wrong app context for CSV task We need to run the CSV importer task in the correct context.
[ { "content": "# Copyright 2015 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 2015 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/timesketch/lib/tasks.py b/timesketch/lib/tasks.py index 83d0b16419..b91cef845c 100644 --- a/timesketch/lib/tasks.py +++ b/timesketch/lib/tasks.py @@ -121,9 +121,10 @@ def run_csv(source_file_path, timeline_name, index_name, username=None): total_events = es.import_event(flush_interval, index_name, eve...
ytdl-org__youtube-dl-19204
ERROR: Unable to extract OpenGraph title; ## Please follow the guide below - You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`) - Use the *Preview* tab to see ...
[ { "content": "from __future__ import unicode_literals\n\nimport re\n\nfrom .common import InfoExtractor\nfrom ..utils import (\n int_or_none,\n js_to_json,\n mimetype2ext,\n ExtractorError,\n)\n\n\nclass ImgurIE(InfoExtractor):\n _VALID_URL = r'https?://(?:i\\.)?imgur\\.com/(?!(?:a|gallery|(?:t(?...
[ { "content": "from __future__ import unicode_literals\n\nimport re\n\nfrom .common import InfoExtractor\nfrom ..utils import (\n int_or_none,\n js_to_json,\n mimetype2ext,\n ExtractorError,\n)\n\n\nclass ImgurIE(InfoExtractor):\n _VALID_URL = r'https?://(?:i\\.)?imgur\\.com/(?!(?:a|gallery|(?:t(?...
diff --git a/youtube_dl/extractor/imgur.py b/youtube_dl/extractor/imgur.py index 0eb54db3f0e..a5ba03efae5 100644 --- a/youtube_dl/extractor/imgur.py +++ b/youtube_dl/extractor/imgur.py @@ -27,6 +27,10 @@ class ImgurIE(InfoExtractor): }, { 'url': 'https://i.imgur.com/crGpqCV.mp4', 'only_matching':...
Lightning-AI__torchmetrics-1674
MS-SSIM for 3D input Similar to the ssim index in https://github.com/Lightning-AI/metrics/blob/a6320cfae434b96d41fdf94d6387f4aed02b9062/src/torchmetrics/functional/image/ssim.py#L161 the contrast_sensitivity should remove the pad_d in the 3D case in https://github.com/Lightning-AI/metrics/blob/a6320cfae434b...
[ { "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 86b904a9b45..9653571e8d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -135,6 +135,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix precision-recall curve based computations for float target ([#1642](https://github.com/Lightnin...
fossasia__open-event-server-6770
Task send_event_fee_notification failing ``` raised unexpected: AttributeError("'Ticket' object has no attribute 'ticket_id'") Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/celery/app/trace.py", line 385, in trace_task R = retval = fun(*args, **kwargs) File "/usr/local/lib...
[ { "content": "import datetime\n\nimport pytz\nfrom dateutil.relativedelta import relativedelta\nfrom flask import render_template\nfrom flask_celeryext import RequestContextTask\nfrom app.instance import celery\n\nfrom app.api.helpers.db import safe_query, save_to_db\nfrom app.api.helpers.mail import send_email...
[ { "content": "import datetime\n\nimport pytz\nfrom dateutil.relativedelta import relativedelta\nfrom flask import render_template\nfrom flask_celeryext import RequestContextTask\nfrom app.instance import celery\n\nfrom app.api.helpers.db import safe_query, save_to_db\nfrom app.api.helpers.mail import send_email...
diff --git a/app/api/helpers/scheduled_jobs.py b/app/api/helpers/scheduled_jobs.py index 46e37e69b9..e56e307a4f 100644 --- a/app/api/helpers/scheduled_jobs.py +++ b/app/api/helpers/scheduled_jobs.py @@ -86,8 +86,7 @@ def send_event_fee_notification(): fee_total = 0 for order in orders: - ...
AUTOMATIC1111__stable-diffusion-webui-14186
[Bug]: ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' torchvision 0.17 promblem ### Is there an existing issue for this? - [X] I have searched the existing issues and checked the recent builds/commits ### What happened? ModuleNotFoundError: No module named 'torchvision.transforms.fun...
[ { "content": "import sys\n\n# this will break any attempt to import xformers which will prevent stability diffusion repo from trying to use it\nif \"--xformers\" not in \"\".join(sys.argv):\n sys.modules[\"xformers\"] = None\n", "path": "modules/import_hook.py" } ]
[ { "content": "import sys\n\n# this will break any attempt to import xformers which will prevent stability diffusion repo from trying to use it\nif \"--xformers\" not in \"\".join(sys.argv):\n sys.modules[\"xformers\"] = None\n\n# Hack to fix a changed import in torchvision 0.17+, which otherwise breaks\n# ba...
diff --git a/modules/import_hook.py b/modules/import_hook.py index 28c67dfa897..eba9a372929 100644 --- a/modules/import_hook.py +++ b/modules/import_hook.py @@ -3,3 +3,14 @@ # this will break any attempt to import xformers which will prevent stability diffusion repo from trying to use it if "--xformers" not in "".joi...
bookwyrm-social__bookwyrm-273
It's possible to create a FollowRequest for a Follow that already exists Send a follow request. User accepts. Send a second follow request (eg. using an old tab) Because requests and follows are stored in separate tables it's not possible to enforce this with a constraint. Pre-checking would leave a race condition...
[ { "content": "''' defines relationships between users '''\nfrom django.db import models\n\nfrom bookwyrm import activitypub\nfrom .base_model import ActivitypubMixin, ActivityMapping, BookWyrmModel\n\n\nclass UserRelationship(ActivitypubMixin, BookWyrmModel):\n ''' many-to-many through table for followers ''...
[ { "content": "''' defines relationships between users '''\nfrom django.db import models\n\nfrom bookwyrm import activitypub\nfrom .base_model import ActivitypubMixin, ActivityMapping, BookWyrmModel\n\n\nclass UserRelationship(ActivitypubMixin, BookWyrmModel):\n ''' many-to-many through table for followers ''...
diff --git a/bookwyrm/models/relationship.py b/bookwyrm/models/relationship.py index e86b909816..dbf997785f 100644 --- a/bookwyrm/models/relationship.py +++ b/bookwyrm/models/relationship.py @@ -82,6 +82,17 @@ class UserFollowRequest(UserRelationship): ''' following a user requires manual or automatic confirmation...
netbox-community__netbox-15173
AutoSyncRecord inconsistent after file change ### Deployment Type Self-hosted ### NetBox Version v3.7.1 ### Python Version 3.11 ### Steps to Reproduce 1. Create data source `TestData`: | Field | Value | |--------|--------| | **Name** | TestData | | **Type** | git | | **UR...
[ { "content": "import json\nfrom collections import defaultdict\nfrom functools import cached_property\n\nfrom django.contrib.contenttypes.fields import GenericRelation\nfrom django.core.validators import ValidationError\nfrom django.db import models\nfrom django.db.models.signals import class_prepared\nfrom dja...
[ { "content": "import json\nfrom collections import defaultdict\nfrom functools import cached_property\n\nfrom django.contrib.contenttypes.fields import GenericRelation\nfrom django.core.validators import ValidationError\nfrom django.db import models\nfrom django.db.models.signals import class_prepared\nfrom dja...
diff --git a/netbox/netbox/models/features.py b/netbox/netbox/models/features.py index a13b84bed51..6eb2b36e125 100644 --- a/netbox/netbox/models/features.py +++ b/netbox/netbox/models/features.py @@ -489,10 +489,10 @@ def save(self, *args, **kwargs): # Create/delete AutoSyncRecord as needed content_t...
getsentry__sentry-13268
Unable to add GitLab repo. Error Communicating with GitLab (HTTP 422): unknown error ## Important Details How are you running Sentry? * [x] On-Premise docker [Version 9.1.1] * [ ] Saas (sentry.io) * [ ] Other [briefly describe your environment] ## Description I successfully make GitLab Integration through...
[ { "content": "from __future__ import absolute_import\n\nfrom six.moves.urllib.parse import urlparse\nfrom django.utils.translation import ugettext_lazy as _\nfrom django import forms\n\nfrom sentry.web.helpers import render_to_response\nfrom sentry.identity.pipeline import IdentityProviderPipeline\nfrom sentry....
[ { "content": "from __future__ import absolute_import\n\nfrom six.moves.urllib.parse import urlparse\nfrom django.utils.translation import ugettext_lazy as _\nfrom django import forms\n\nfrom sentry.web.helpers import render_to_response\nfrom sentry.identity.pipeline import IdentityProviderPipeline\nfrom sentry....
diff --git a/src/sentry/integrations/gitlab/integration.py b/src/sentry/integrations/gitlab/integration.py index 152c2bee2697d6..7098ec2671bdc8 100644 --- a/src/sentry/integrations/gitlab/integration.py +++ b/src/sentry/integrations/gitlab/integration.py @@ -103,6 +103,19 @@ def search_issues(self, project_id, query, i...
secdev__scapy-2319
Broken sendp(realtime=True) `sendp(..., realtime=True)` is broken in scapy 2.4.3 It produces TypeError: ``` File "/usr/local/lib/python3.7/dist-packages/scapy/sendrecv.py", line 290, in __gen_send dt0 = ct - p.time TypeError: unsupported operand type(s) for -: 'float' and 'decimal.Decimal' ``` The issue ...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# This program is published under a GPLv2 license\n\n\"\"\"\nFunctions to send and receive packets.\n\"\"\"\n\nfrom __future__ import absolute_import, p...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# This program is published under a GPLv2 license\n\n\"\"\"\nFunctions to send and receive packets.\n\"\"\"\n\nfrom __future__ import absolute_import, p...
diff --git a/scapy/sendrecv.py b/scapy/sendrecv.py index 387fc795e17..b967e1ded39 100644 --- a/scapy/sendrecv.py +++ b/scapy/sendrecv.py @@ -283,11 +283,11 @@ def __gen_send(s, x, inter=0, loop=0, count=None, verbose=None, realtime=None, r if realtime: ct = time.time() ...
netbox-community__netbox-6334
Add tests for created & last_updated filters for all models ### Proposed Changes Add tests for the `created` and `last_updated` filters for all relevant models. This should be done by introducing a standardized TestCase class that can be subclassed. ### Justification Increases test coverage Unable to filter circuit ...
[ { "content": "import django_filters\nfrom django.db.models import Q\n\nfrom dcim.filtersets import CableTerminationFilterSet\nfrom dcim.models import Region, Site, SiteGroup\nfrom extras.filters import TagFilter\nfrom netbox.filtersets import ChangeLoggedModelFilterSet, OrganizationalModelFilterSet, PrimaryMode...
[ { "content": "import django_filters\nfrom django.db.models import Q\n\nfrom dcim.filtersets import CableTerminationFilterSet\nfrom dcim.models import Region, Site, SiteGroup\nfrom extras.filters import TagFilter\nfrom netbox.filtersets import ChangeLoggedModelFilterSet, OrganizationalModelFilterSet, PrimaryMode...
diff --git a/docs/release-notes/version-2.11.md b/docs/release-notes/version-2.11.md index cc33a68014b..5df10752140 100644 --- a/docs/release-notes/version-2.11.md +++ b/docs/release-notes/version-2.11.md @@ -13,6 +13,7 @@ * [#6309](https://github.com/netbox-community/netbox/issues/6309) - Restrict parent VM interface...
conan-io__conan-center-index-21325
pcl:with_qhull=True does not set HAVE_QHULL ### What is your question? Hi, I've build pcl/1.13.1 with apple-clang 15.0 and pcl:with_qhull=True because I need pcl::ConcaveHull in my application. The absence of setting HAVE_QHULL prevents the include or linking with concave_hull. My conanfile: ``` [requires] ...
[ { "content": "from conan import ConanFile\nfrom conan.errors import ConanInvalidConfiguration\nfrom conan.tools.build import check_min_cppstd\nfrom conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout\nfrom conan.tools.files import apply_conandata_patches, export_conandata_patches, get, copy,...
[ { "content": "from conan import ConanFile\nfrom conan.errors import ConanInvalidConfiguration\nfrom conan.tools.build import check_min_cppstd\nfrom conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout\nfrom conan.tools.files import apply_conandata_patches, export_conandata_patches, get, copy,...
diff --git a/recipes/pcl/all/conanfile.py b/recipes/pcl/all/conanfile.py index fc423168869ea..b172e88fb5927 100644 --- a/recipes/pcl/all/conanfile.py +++ b/recipes/pcl/all/conanfile.py @@ -574,6 +574,13 @@ def package_info(self): if self.settings.os == "Windows": common.system_libs.append("ws2_32"...
cupy__cupy-844
cupy.linalg.svd() overwrites its argument; incompatible with SciPy/NumPy I'm using CuPy 4.0.0b1 with CUDA 9.1 on CentOS 7.4. When I call `cupy.linalg.svd()` with some matrix, contents of the matrix is overwritten. This is incompatible with SciPy/NumPy's corresponding API. I think it's better (a) not to overwrite...
[ { "content": "import numpy\nfrom numpy import linalg\n\nimport cupy\nfrom cupy import cuda\nfrom cupy.cuda import cublas\nfrom cupy.cuda import device\nfrom cupy.linalg import util\n\nif cuda.cusolver_enabled:\n from cupy.cuda import cusolver\n\n\ndef cholesky(a):\n '''Cholesky decomposition.\n\n Decom...
[ { "content": "import numpy\nfrom numpy import linalg\n\nimport cupy\nfrom cupy import cuda\nfrom cupy.cuda import cublas\nfrom cupy.cuda import device\nfrom cupy.linalg import util\n\nif cuda.cusolver_enabled:\n from cupy.cuda import cusolver\n\n\ndef cholesky(a):\n '''Cholesky decomposition.\n\n Decom...
diff --git a/cupy/linalg/decomposition.py b/cupy/linalg/decomposition.py index f4cb8db7dde..7b0ff9ac68f 100644 --- a/cupy/linalg/decomposition.py +++ b/cupy/linalg/decomposition.py @@ -219,12 +219,14 @@ def svd(a, full_matrices=True, compute_uv=True): # Remark 3: gesvd returns matrix U and V^H # Remark 4: Rem...
python-pillow__Pillow-3595
js/script.js is missing in the source tarball js/script.js is missing in the 5.4.1 source tarball. Apparently it was added in 5.4.x. It's needed for the built documentation.
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Pillow (PIL Fork) documentation build configuration file, created by\n# sphinx-quickstart on Sat Apr 4 07:54:11 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 pre...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Pillow (PIL Fork) documentation build configuration file, created by\n# sphinx-quickstart on Sat Apr 4 07:54:11 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 pre...
diff --git a/docs/conf.py b/docs/conf.py index e75546c4946..2c25588a0c7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -140,7 +140,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "defau...
carpentries__amy-1059
Enable filtering by multiple partnership levels on organizations. We should be able to filter organizations according to their partnership level. User should be able to select multiple partnership levels, which should be combined with 'or' (i.e., show me silver or bronze). For now, don't worry about temporal nature o...
[ { "content": "import re\n\nimport django_filters\nfrom django.db.models import Q\nfrom django.forms import widgets\nfrom django_countries import Countries\n\nfrom workshops.forms import bootstrap_helper_filter\nfrom workshops.models import (\n Event,\n Organization,\n Person,\n Airport,\n EventRe...
[ { "content": "import re\n\nimport django_filters\nfrom django.db.models import Q\nfrom django.forms import widgets\nfrom django_countries import Countries\n\nfrom workshops.forms import bootstrap_helper_filter\nfrom workshops.models import (\n Event,\n Organization,\n Person,\n Airport,\n EventRe...
diff --git a/workshops/filters.py b/workshops/filters.py index 7a1f211ce..942f49bab 100644 --- a/workshops/filters.py +++ b/workshops/filters.py @@ -19,6 +19,7 @@ EventSubmission, DCSelfOrganizedEventRequest, TrainingRequest, + Membership, ) EMPTY_SELECTION = (None, '---------') @@ -172,6 +173,11 ...
ivy-llc__ivy-22875
pow
[ { "content": "# local\nimport ivy\nimport ivy.functional.frontends.paddle as paddle_frontend\nfrom ivy.func_wrapper import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n)\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\n\n\nclass Tensor:\n def __init__(self, array, dtyp...
[ { "content": "# local\nimport ivy\nimport ivy.functional.frontends.paddle as paddle_frontend\nfrom ivy.func_wrapper import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n)\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\n\n\nclass Tensor:\n def __init__(self, array, dtyp...
diff --git a/ivy/functional/frontends/paddle/tensor/tensor.py b/ivy/functional/frontends/paddle/tensor/tensor.py index 1c3e399aef9ed..025a1003a7573 100644 --- a/ivy/functional/frontends/paddle/tensor/tensor.py +++ b/ivy/functional/frontends/paddle/tensor/tensor.py @@ -694,6 +694,12 @@ def tolist(self): def min(sel...
dbt-labs__dbt-core-2877
[BigQuery] Allow more recent versions of google-api-core? ### Describe the feature Currently dbt-bigquery has [an upper limit of 1.16 on `google-api-core`](https://github.com/fishtown-analytics/dbt/blob/v0.18.1b3/plugins/bigquery/setup.py#L53). That release is from Jan of this year. Would it be possible to loosen...
[ { "content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 6):\n print('Error: dbt does not support this version of Python.')\n print('Please upgrade to Python 3.6 or higher.')\n sys.exit(1)\n\n\nfrom setuptools import setup\ntry:\n from setuptools import find_namespace_...
[ { "content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 6):\n print('Error: dbt does not support this version of Python.')\n print('Please upgrade to Python 3.6 or higher.')\n sys.exit(1)\n\n\nfrom setuptools import setup\ntry:\n from setuptools import find_namespace_...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 875ba29d902..ddd5c5a4950 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Fix Redshift adapter `get_columns_in_relation` macro to push schema filter down to the `svv_external_columns` view ([#2855](https://github.com/fishtown-analytics/dbt/issues/2854)) -...
geopandas__geopandas-2835
BUG: to_parquet doesn't set correct geometry_type in GeoParquet metadata for 3D geometries The geometry_type should be "POINT Z" and not just "POINT": ``` In [12]: df = geopandas.GeoDataFrame({'col': [1, 2, 3]}, geometry=geopandas.points_from_xy([1, 2, 3], [2, 3, 4], [1, 1, 1])) In [13]: df Out[13]: col ...
[ { "content": "from packaging.version import Version\nimport json\nimport warnings\n\nimport numpy as np\nfrom pandas import DataFrame, Series\n\nimport shapely\n\nfrom geopandas._compat import import_optional_dependency\nfrom geopandas.array import from_wkb, from_shapely\nfrom geopandas import GeoDataFrame\nimp...
[ { "content": "from packaging.version import Version\nimport json\nimport warnings\n\nimport numpy as np\nfrom pandas import DataFrame, Series\n\nimport shapely\n\nfrom geopandas._compat import import_optional_dependency\nfrom geopandas.array import from_wkb, from_shapely\nfrom geopandas import GeoDataFrame\nimp...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f1c5409b84..0da3ab1297 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -101,6 +101,7 @@ Bug fixes: - Fix regression preventing reading from file paths containing hashes in `read_file` with the fiona engine (#3280). An analgous fix for pyogrio is included in pyogrio ...
borgbackup__borg-1643
Borg crashes after canceling of deletion After a delete got cancelled by accident borg now throws an exception like this https://gist.github.com/BlackLotus/5b435559c95d7ff819eec1b5fe66ecca I'm using borg from git revision e4e678790610a67ef866d569143157d80c7f6c26 (note: master branch, changeset not in 1.0-maint).
[ { "content": "from configparser import ConfigParser\nfrom binascii import hexlify, unhexlify\nfrom datetime import datetime\nfrom itertools import islice\nimport errno\nimport logging\nlogger = logging.getLogger(__name__)\n\nimport os\nimport shutil\nimport struct\nfrom zlib import crc32\n\nimport msgpack\nfrom...
[ { "content": "from configparser import ConfigParser\nfrom binascii import hexlify, unhexlify\nfrom datetime import datetime\nfrom itertools import islice\nimport errno\nimport logging\nlogger = logging.getLogger(__name__)\n\nimport os\nimport shutil\nimport struct\nfrom zlib import crc32\n\nimport msgpack\nfrom...
diff --git a/borg/repository.py b/borg/repository.py index 71e9040a6c..fae22119a4 100644 --- a/borg/repository.py +++ b/borg/repository.py @@ -705,6 +705,13 @@ def iter_objects(self, segment, include_data=False): else: yield tag, key, offset offset += size + # we mu...
nipy__nipype-3509
MATLAB:mpath:PathAlterationNotSupported / Modifying the search path is not supported by MATLAB Compiler using MAtlab 2019b [It seems modifying the matlab path using addpath() is not likely to be supported at any point after MATLAB MCR_R2018b](https://github.com/populse/populse_mia/issues/238). However, [nipype use add...
[ { "content": "# -*- coding: utf-8 -*-\n# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n\"\"\"Interfaces to run MATLAB scripts.\"\"\"\nimport os\n\nfrom .. import config\nfrom .base import (\n CommandLineInputSpec,\n InputMultiPath,\n i...
[ { "content": "# -*- coding: utf-8 -*-\n# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n\"\"\"Interfaces to run MATLAB scripts.\"\"\"\nimport os\n\nfrom .. import config\nfrom .base import (\n CommandLineInputSpec,\n InputMultiPath,\n i...
diff --git a/nipype/interfaces/matlab.py b/nipype/interfaces/matlab.py index 03e34b0b43..294abdf3ef 100644 --- a/nipype/interfaces/matlab.py +++ b/nipype/interfaces/matlab.py @@ -191,7 +191,10 @@ def _gen_matlab_command(self, argstr, script_lines): else: prescript.insert(0, "fprintf(1,'Executing c...
deepset-ai__haystack-4567
Duplicate tests for WhisperTranscriber `test_whisper_api_transcribe` and `test_whisper_api_transcribe_with_params` in `test/nodes/test_whisper.py` have the exact same code. We should remove `test_whisper_api_transcribe_with_params`. **Alternatives considered** Change `transcribe_test_helper(w)` to `transcribe_test...
[ { "content": "import json\n\nfrom typing import List, Optional, Dict, Any, Union, BinaryIO, Literal\n\nimport requests\nimport torch\nfrom requests import PreparedRequest\n\nfrom haystack import MultiLabel, Document\nfrom haystack.errors import OpenAIError, OpenAIRateLimitError\nfrom haystack.nodes.base import ...
[ { "content": "import json\n\nfrom typing import List, Optional, Dict, Any, Union, BinaryIO, Literal\n\nimport requests\nimport torch\nfrom requests import PreparedRequest\n\nfrom haystack import MultiLabel, Document\nfrom haystack.errors import OpenAIError, OpenAIRateLimitError\nfrom haystack.nodes.base import ...
diff --git a/haystack/nodes/audio/whisper_transcriber.py b/haystack/nodes/audio/whisper_transcriber.py index dc1dc3eedd..a2cdcca8c2 100644 --- a/haystack/nodes/audio/whisper_transcriber.py +++ b/haystack/nodes/audio/whisper_transcriber.py @@ -82,7 +82,8 @@ def transcribe( :param audio_file: Path to audio fil...
streamlink__streamlink-1027
ine.py for source in data["playlist"][0]["sources"]: TypeError: 'NoneType' object is not subscriptable Hi, INE plugin is failing since recently: ``` $ streamlink -o ./streamlink.mp4 https://streaming.ine.com/play/1cfbc029-dd6d-4646-80b9-7316e3ac121a/introduction 720p --http-cookie laravel_session=removed [cli][inf...
[ { "content": "from __future__ import print_function\n\nimport json\nimport re\n\nfrom streamlink.plugin import Plugin\nfrom streamlink.plugin.api import http\nfrom streamlink.plugin.api import validate\nfrom streamlink.stream import HLSStream\n\n\nclass INE(Plugin):\n url_re = re.compile(r\"\"\"https://strea...
[ { "content": "from __future__ import print_function\n\nimport json\nimport re\n\nfrom streamlink.plugin import Plugin\nfrom streamlink.plugin.api import http\nfrom streamlink.plugin.api import validate\nfrom streamlink.stream import HLSStream\n\n\nclass INE(Plugin):\n url_re = re.compile(r\"\"\"https://strea...
diff --git a/src/streamlink/plugins/ine.py b/src/streamlink/plugins/ine.py index ccacd418a83..e6573c0deed 100644 --- a/src/streamlink/plugins/ine.py +++ b/src/streamlink/plugins/ine.py @@ -15,7 +15,7 @@ class INE(Plugin): (.*?)""", re.VERBOSE) play_url = "https://streaming.ine.com/play/{vid}/watch" ...
Parsl__parsl-447
IPP `engine_dir` has no effect if indicated dir does not exist Reported by @daheise.
[ { "content": "import logging\nimport os\nimport uuid\n\nfrom ipyparallel import Client\nfrom libsubmit.providers import LocalProvider\nfrom libsubmit.utils import RepresentationMixin\n\nfrom parsl.dataflow.error import ConfigurationError\nfrom parsl.executors.base import ParslExecutor\nfrom parsl.executors.erro...
[ { "content": "import logging\nimport os\nimport uuid\n\nfrom ipyparallel import Client\nfrom libsubmit.providers import LocalProvider\nfrom libsubmit.utils import RepresentationMixin\n\nfrom parsl.dataflow.error import ConfigurationError\nfrom parsl.executors.base import ParslExecutor\nfrom parsl.executors.erro...
diff --git a/parsl/executors/ipp.py b/parsl/executors/ipp.py index bf93f2b5c2..210a61da88 100644 --- a/parsl/executors/ipp.py +++ b/parsl/executors/ipp.py @@ -160,7 +160,8 @@ def compose_launch_cmd(self, filepath, engine_dir, container_image): logger.error("Could not open engine_json : ", self.engine_file)...
vaexio__vaex-171
plot_widget fails with "AttributeError: module 'vaex.dataset' has no attribute '_ensure_list'" On a fresh vaex conda install, the following fails ```python import vaex as vx import numpy as np df = vx.from_arrays( x=np.random.normal(0,0.1,10**6), y=np.random.lognormal(0,0.1,10**6) ) df.plot_widge...
[ { "content": "from .dataframe import *\n# alias kept for backward compatibility\nDataset = DataFrame\nDatasetLocal = DataFrameLocal\nDatasetArrays = DataFrameArrays\nDatasetConcatenated = DataFrameConcatenated\n", "path": "packages/vaex-core/vaex/dataset.py" } ]
[ { "content": "from .dataframe import *\nfrom .dataframe import (\n # .dataframe imports from .utils\n _ensure_strings_from_expressions,\n _ensure_string_from_expression,\n _ensure_list,\n _is_limit,\n _isnumber,\n _issequence,\n _is_string,\n _parse_reduction,\n _parse_n,\n _nor...
diff --git a/packages/vaex-core/vaex/dataset.py b/packages/vaex-core/vaex/dataset.py index e9dd370c5e..98127a749e 100644 --- a/packages/vaex-core/vaex/dataset.py +++ b/packages/vaex-core/vaex/dataset.py @@ -1,4 +1,32 @@ from .dataframe import * +from .dataframe import ( + # .dataframe imports from .utils + _ensu...
django-json-api__django-rest-framework-json-api-633
Error raised when sending OPTIONS request to relationship view Hi. I'm trying to send an OPTIONS request to a relationship view and the server raises a `RuntimeError` saying `ResourceIdentifierObjectsSerializer must be initialized with a model class`. I took a look in the code and I don't see how `RelationshipView` ma...
[ { "content": "import inflection\nimport six\nfrom django.db.models.query import QuerySet\nfrom django.utils.translation import ugettext_lazy as _\nfrom rest_framework.exceptions import ParseError\nfrom rest_framework.serializers import * # noqa: F403\n\nfrom rest_framework_json_api.exceptions import Conflict\n...
[ { "content": "import inflection\nimport six\nfrom django.db.models.query import QuerySet\nfrom django.utils.translation import ugettext_lazy as _\nfrom rest_framework.exceptions import ParseError\nfrom rest_framework.serializers import * # noqa: F403\n\nfrom rest_framework_json_api.exceptions import Conflict\n...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f68ebeba..6e2f731a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ any parts of the framework not mentioned in the documentation should generally b * Avoid exception when trying to include skipped relationship * Don't swallow `filter[]` params when there a...
vyperlang__vyper-1946
Weird issue with returning data ### Version Information * vyper Version (output of `vyper --version`): 0.1.0b15 * OS: linux * Python Version (output of `python --version`): 3.7.5 ### What's your issue about? contract: ```python from vyper.interfaces import ERC721 @public def foo(): success: bool...
[ { "content": "from vyper import (\n ast as vy_ast,\n)\nfrom vyper.codegen.return_ import (\n gen_tuple_return,\n make_return_stmt,\n)\nfrom vyper.exceptions import (\n CompilerPanic,\n ConstancyViolation,\n EventDeclarationException,\n InvalidLiteral,\n StructureException,\n TypeMisma...
[ { "content": "from vyper import (\n ast as vy_ast,\n)\nfrom vyper.codegen.return_ import (\n gen_tuple_return,\n make_return_stmt,\n)\nfrom vyper.exceptions import (\n CompilerPanic,\n ConstancyViolation,\n EventDeclarationException,\n InvalidLiteral,\n StructureException,\n TypeMisma...
diff --git a/tests/parser/features/test_assignment.py b/tests/parser/features/test_assignment.py index 8c5cd142fb..dd79339580 100644 --- a/tests/parser/features/test_assignment.py +++ b/tests/parser/features/test_assignment.py @@ -260,3 +260,18 @@ def foo(): lambda: get_contract_with_gas_estimation(contrac...
pypa__setuptools-2533
tag_build breaks prepare_metadata_for_build_wheel Previously reported in pypa/pip#9446. This is similar to #1462, but for PEP 517 hooks, so I’m guessing a similar treatment is needed? ```ini [egg_info] tag_build = dev [metadata] name = pkg version = 0.1 ``` `egg_info` works as expected: ```console ...
[ { "content": "\"\"\"setuptools.command.egg_info\n\nCreate a distribution's .egg-info directory and contents\"\"\"\n\nfrom distutils.filelist import FileList as _FileList\nfrom distutils.errors import DistutilsInternalError\nfrom distutils.util import convert_path\nfrom distutils import log\nimport distutils.err...
[ { "content": "\"\"\"setuptools.command.egg_info\n\nCreate a distribution's .egg-info directory and contents\"\"\"\n\nfrom distutils.filelist import FileList as _FileList\nfrom distutils.errors import DistutilsInternalError\nfrom distutils.util import convert_path\nfrom distutils import log\nimport distutils.err...
diff --git a/changelog.d/2529.change.rst b/changelog.d/2529.change.rst new file mode 100644 index 0000000000..10c41518d4 --- /dev/null +++ b/changelog.d/2529.change.rst @@ -0,0 +1 @@ +Fixed an issue where version tags may be added multiple times diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info....
zestedesavoir__zds-site-3580
Requirement de dev nécessaires en run Ce if https://github.com/zestedesavoir/zds-site/blob/dev/zds/settings.py#L287-L290 ne fonctionne pas : par défaut on est en debug, donc le système s'attends à avoir `debug_toolbar` d'installée.
[ { "content": "# coding: utf-8\n\nimport os\nimport sys\nfrom os.path import join\n\nfrom django.contrib.messages import constants as message_constants\nfrom django.utils.http import urlquote\nfrom django.utils.translation import gettext_lazy as _\n\n# Changes the default encoding of python to UTF-8.\n# Theses i...
[ { "content": "# coding: utf-8\n\nimport os\nimport sys\nfrom os.path import join\n\nfrom django.contrib.messages import constants as message_constants\nfrom django.utils.http import urlquote\nfrom django.utils.translation import gettext_lazy as _\n\n# Changes the default encoding of python to UTF-8.\n# Theses i...
diff --git a/zds/settings.py b/zds/settings.py index 49186c75f0..8649ac5380 100644 --- a/zds/settings.py +++ b/zds/settings.py @@ -284,11 +284,6 @@ 'link' ) -if DEBUG: - INSTALLED_APPS += ( - 'debug_toolbar', - ) - # A sample logging configuration. The only tangible logging # performed by this co...
PrefectHQ__prefect-509
All logs aren't making it through It seems that the QueueHandler for our logs doesn't block correctly, so some logs don't make it to our logger service.
[ { "content": "# Licensed under LICENSE.md; also available at https://www.prefect.io/licenses/alpha-eula\nimport logging\nimport os\nimport queue\nfrom logging.handlers import QueueHandler, QueueListener\n\nimport prefect\nfrom prefect.configuration import config\n\n\nclass RemoteHandler(logging.StreamHandler):\...
[ { "content": "# Licensed under LICENSE.md; also available at https://www.prefect.io/licenses/alpha-eula\nimport atexit\nimport logging\nimport os\nimport queue\nfrom logging.handlers import QueueHandler, QueueListener\n\nimport prefect\nfrom prefect.configuration import config\n\n\nclass RemoteHandler(logging.S...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a5af15a1c35..e34e764c1662 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ ### Fixes - Fixed `flow.deploy()` returning attribute of a string - [#503](https://github.com/PrefectHQ/prefect/pull/503) +- Ensure all logs make it to the logger service in deplo...
great-expectations__great_expectations-2882
GE is very slow when aws secret store is integrated **Describe the bug** When I have integrated aws secret store for my db crendentials GE has become very slow. I have three checkpoints (50+ expectations) orchestrated via github actions in my current project. Before secret store integration it took around 5 mins to fi...
[ { "content": "import base64\nimport copy\nimport inspect\nimport json\nimport logging\nimport os\nimport re\nimport warnings\nfrom collections import OrderedDict\nfrom typing import Optional\nfrom urllib.parse import urlparse\n\ntry:\n from azure.identity import DefaultAzureCredential\n from azure.keyvaul...
[ { "content": "import base64\nimport copy\nimport inspect\nimport json\nimport logging\nimport os\nimport re\nimport warnings\nfrom collections import OrderedDict\nfrom functools import lru_cache\nfrom typing import Optional\nfrom urllib.parse import urlparse\n\ntry:\n from azure.identity import DefaultAzureC...
diff --git a/docs_rtd/changelog.rst b/docs_rtd/changelog.rst index 2e1a2779eec6..28f84ca8976d 100644 --- a/docs_rtd/changelog.rst +++ b/docs_rtd/changelog.rst @@ -11,6 +11,7 @@ Develop * [DOCS] Remove broken links * [DOCS] Fix typo in SlackNotificationAction docstring * [BUGFIX] Allow decimals without leading zero i...
avocado-framework__avocado-4154
[Bug] Avocado crash with TypeError With the following change on the time-sensitive job Avocado crashes: ```python diff --git a/selftests/pre_release/jobs/timesensitive.py b/selftests/pre_release/jobs/timesensitive.py index a9fbebcd..456719aa 100755 --- a/selftests/pre_release/jobs/timesensitive.py +++ b/selftest...
[ { "content": "#!/bin/env python3\n\nimport os\nimport sys\n\nfrom avocado.core.job import Job\n\nTHIS_DIR = os.path.dirname(os.path.abspath(__file__))\nROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(THIS_DIR)))\n\n\nCONFIG = {\n 'run.test_runner': 'nrunner',\n 'run.references': [os.path.join(R...
[ { "content": "#!/bin/env python3\n\nimport os\nimport sys\n\nfrom avocado.core.job import Job\n\nTHIS_DIR = os.path.dirname(os.path.abspath(__file__))\nROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(THIS_DIR)))\n\n\nCONFIG = {\n 'run.test_runner': 'nrunner',\n 'run.references': [os.path.join(R...
diff --git a/selftests/pre_release/jobs/timesensitive.py b/selftests/pre_release/jobs/timesensitive.py index a9fbebcd00..90b011d385 100755 --- a/selftests/pre_release/jobs/timesensitive.py +++ b/selftests/pre_release/jobs/timesensitive.py @@ -14,11 +14,12 @@ 'run.references': [os.path.join(ROOT_DIR, 'selftests', '...
Lightning-AI__torchmetrics-2017
Backwards incompatible change to MSE for pixelwise regression ## 🐛 Bug #1937 introduces an unintended consequence: pixelwise regression is no longer supported. ### To Reproduce Run the following script: ```python import torch import torchmetrics B = 4 H = W = 3 x = torch.rand(B, H, W) y = torch.ran...
[ { "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 94a52a9a6fa..1c14035e158 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- +- Fixed support for pixelwise MSE ([#2017](https://github.com/Lightning-AI/torchmetri...
getmoto__moto-399
Python 2.6 issues with wheels and dependencies My Travis tests failed on Python 2.6: piskvorky/smart_open#15 . After some digging around it appears this is because of `moto`. Moto apparently depends on some `ordereddict` package, but that package is not installed (nor mentioned anywhere in the docs, AFAICS). Do you t...
[ { "content": "#!/usr/bin/env python\nfrom __future__ import unicode_literals\nfrom setuptools import setup, find_packages\n\ninstall_requires = [\n \"Jinja2\",\n \"boto>=2.20.0\",\n \"flask\",\n \"httpretty>=0.6.1\",\n \"requests\",\n \"xmltodict\",\n \"six\",\n \"werkzeug\",\n]\n\nimpor...
[ { "content": "#!/usr/bin/env python\nfrom __future__ import unicode_literals\nfrom setuptools import setup, find_packages\n\ninstall_requires = [\n \"Jinja2\",\n \"boto>=2.20.0\",\n \"flask\",\n \"httpretty>=0.6.1\",\n \"requests\",\n \"xmltodict\",\n \"six\",\n \"werkzeug\",\n]\n\nextra...
diff --git a/setup.py b/setup.py index 2bd9491cc02b..c1edbe643fab 100644 --- a/setup.py +++ b/setup.py @@ -13,11 +13,10 @@ "werkzeug", ] -import sys - -if sys.version_info < (2, 7): - # No buildint OrderedDict before 2.7 - install_requires.append('ordereddict') +extras_require = { + # No builtin Ordere...
PrefectHQ__prefect-3085
DaskExecutor doesn't write results ## Description DaskExecutor doesn't write LocalResults with JSONSerializer. In our tests, also other results and with a cluster aren't written. For the Repro, I picked the simplest case. ## Expected Behavior DaskExecutor writes LocalResults. If workers need extra treatment to se...
[ { "content": "from contextlib import redirect_stdout\nfrom dask.base import tokenize\nfrom typing import (\n Any,\n Callable,\n Dict,\n Iterable,\n NamedTuple,\n Optional,\n Set,\n Tuple,\n)\n\nimport pendulum\n\nimport prefect\nfrom prefect import config\nfrom prefect.core import Edge, ...
[ { "content": "from contextlib import redirect_stdout\nfrom dask.base import tokenize\nfrom typing import (\n Any,\n Callable,\n Dict,\n Iterable,\n NamedTuple,\n Optional,\n Set,\n Tuple,\n)\n\nimport pendulum\n\nimport prefect\nfrom prefect import config\nfrom prefect.core import Edge, ...
diff --git a/changes/pr3085.yaml b/changes/pr3085.yaml new file mode 100644 index 000000000000..978634fb2639 --- /dev/null +++ b/changes/pr3085.yaml @@ -0,0 +1,2 @@ +fix: + - "Determine if checkpointing is enabled from config set in the flow-runner process - [#3085](https://github.com/PrefectHQ/prefect/pull/3085)" dif...
pretix__pretix-744
Order code splitted at wrong character during bank transfer assignment Just ran into an issue while manually resolving an unresolved transaction. When I enter the order code of the transaction (just the 5 characters) into the input field, a dropdown opens up to reveal the order. This includes the entire string with the...
[ { "content": "import csv\nimport json\nimport logging\nfrom datetime import timedelta\n\nfrom django.contrib import messages\nfrom django.core.urlresolvers import reverse\nfrom django.db.models import Count, Q\nfrom django.db.models.functions import Concat\nfrom django.http import JsonResponse\nfrom django.shor...
[ { "content": "import csv\nimport json\nimport logging\nfrom datetime import timedelta\n\nfrom django.contrib import messages\nfrom django.core.urlresolvers import reverse\nfrom django.db.models import Count, Q\nfrom django.db.models.functions import Concat\nfrom django.http import JsonResponse\nfrom django.shor...
diff --git a/src/pretix/plugins/banktransfer/views.py b/src/pretix/plugins/banktransfer/views.py index 3ceebf5c31f..7ad260cc753 100644 --- a/src/pretix/plugins/banktransfer/views.py +++ b/src/pretix/plugins/banktransfer/views.py @@ -94,9 +94,9 @@ def _accept_ignore_amount(self, trans): def _assign(self, trans, cod...
googleapis__google-cloud-python-3299
error reporting still broken at 0.24 After updating to 0.24 to fix https://github.com/GoogleCloudPlatform/google-cloud-python/issues/3167 I'm still unable to report exceptions. Ubuntu xenial w/ Python 3.5.2 ```python client.report_exception(http_context=error_reporting.build_flask_context(flask.request)) ``` ...
[ { "content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/error_reporting/google/cloud/error_reporting/client.py b/error_reporting/google/cloud/error_reporting/client.py index 8be6627ada28..6e768a0534fb 100644 --- a/error_reporting/google/cloud/error_reporting/client.py +++ b/error_reporting/google/cloud/error_reporting/client.py @@ -224,11 +224,10 @@ def _build_...
googleapis__google-cloud-python-603
Add documentation for storage.Blob's special methods (contains, next, etc) Right now it's not really clear how to check for a key's existence (do I need to do if `Key('name') in bucket`? or just `'name' in bucket`? We need to make sure these special methods are documented with examples in the API docs for the Key clas...
[ { "content": "# Copyright 2014 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 2014 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/gcloud/storage/bucket.py b/gcloud/storage/bucket.py index 41a946473800..5dc73b58545d 100644 --- a/gcloud/storage/bucket.py +++ b/gcloud/storage/bucket.py @@ -12,7 +12,26 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""Create / interact with ...
pypa__pip-11560
Documentation suggests removed --install-scripts flag The documentation for `--install-options` (online at https://pip.pypa.io/en/latest/cli/pip_install/#cmdoption-install-option) gives the example of passing --install-scripts. Since #7309 this is now an invalid option. This example should be updated (and perhaps the c...
[ { "content": "\"\"\"\nshared options and groups\n\nThe principle here is to define options once, but *not* instantiate them\nglobally. One reason being that options with action='append' can carry state\nbetween parses. pip parses general options twice internally, and shouldn't\npass on state. To be consistent, ...
[ { "content": "\"\"\"\nshared options and groups\n\nThe principle here is to define options once, but *not* instantiate them\nglobally. One reason being that options with action='append' can carry state\nbetween parses. pip parses general options twice internally, and shouldn't\npass on state. To be consistent, ...
diff --git a/news/10265.bugfix.rst b/news/10265.bugfix.rst new file mode 100644 index 00000000000..477eb9753fb --- /dev/null +++ b/news/10265.bugfix.rst @@ -0,0 +1 @@ +Fixed the description of the option "--install-options" in the documentation diff --git a/src/pip/_internal/cli/cmdoptions.py b/src/pip/_internal/cli/cm...
saleor__saleor-12162
Bug: Exclude shipping method not working for shipping methods without channel listing. ### What are you trying to achieve? When attempting to list shipping methods without a shipping channel in the order payload, an error will occur. ### Steps to reproduce the problem 1. create a webhook with `excluded_shipping_meth...
[ { "content": "import json\nimport uuid\nfrom collections import defaultdict\nfrom dataclasses import asdict\nfrom decimal import Decimal\nfrom typing import TYPE_CHECKING, Any, DefaultDict, Dict, Iterable, List, Optional, Set\n\nimport graphene\nfrom django.db.models import F, QuerySet, Sum\nfrom django.utils i...
[ { "content": "import json\nimport uuid\nfrom collections import defaultdict\nfrom dataclasses import asdict\nfrom decimal import Decimal\nfrom typing import TYPE_CHECKING, Any, DefaultDict, Dict, Iterable, List, Optional, Set\n\nimport graphene\nfrom django.db.models import F, QuerySet, Sum\nfrom django.utils i...
diff --git a/saleor/webhook/payloads.py b/saleor/webhook/payloads.py index 4653a3daf02..661c9b7403a 100644 --- a/saleor/webhook/payloads.py +++ b/saleor/webhook/payloads.py @@ -241,13 +241,16 @@ def _generate_shipping_method_payload(shipping_method, channel): if not shipping_method: return None - ser...
django-oscar__django-oscar-2353
Country model field In url (address-create) or (address-detail). If you input phone number but choose empty_label for country you will get 'NoneType' object has no attribute 'iso_3166_1_a2' https://github.com/django-oscar/django-oscar/blob/master/src/oscar/views/generic.py#L188 return country.iso_3166_1_a2 1-...
[ { "content": "import json\n\nimport phonenumbers\nfrom django import forms\nfrom django.contrib import messages\nfrom django.core import validators\nfrom django.core.exceptions import ValidationError\nfrom django.http import HttpResponse\nfrom django.shortcuts import redirect\nfrom django.utils import six\nfrom...
[ { "content": "import json\n\nimport phonenumbers\nfrom django import forms\nfrom django.contrib import messages\nfrom django.core import validators\nfrom django.core.exceptions import ValidationError\nfrom django.http import HttpResponse\nfrom django.shortcuts import redirect\nfrom django.utils import six\nfrom...
diff --git a/src/oscar/views/generic.py b/src/oscar/views/generic.py index 2de6e40980b..2d883c81353 100644 --- a/src/oscar/views/generic.py +++ b/src/oscar/views/generic.py @@ -198,9 +198,9 @@ def clean_phone_number(self): try: phone_number = PhoneNumber.from_string(number) except phonenu...
avocado-framework__avocado-4549
Avocado crash without output When I run nrunner with the wrong test path avocado crashes without any information. It can be reproduced by: `avocado run --test-runner=nrunner --ignore-missing-references -- test_utils_partition.py`
[ { "content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope t...
[ { "content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope t...
diff --git a/avocado/plugins/run.py b/avocado/plugins/run.py index 27282fc966..8c8ad96747 100644 --- a/avocado/plugins/run.py +++ b/avocado/plugins/run.py @@ -296,7 +296,11 @@ def run(self, config): try: suite = TestSuite.from_config(config, name='') if suite.size == 0: - ...
Cog-Creators__Red-DiscordBot-2317
[V3 Permissions] Rule precedence bug. Applying a default to a Cog as well as to a command within a Cog (Default deny cog, allow command) does not allow the command. With current intended precedence, this should allow the command. Initially reported by <@203619925179236352> (Céli28), confirmed by me and <@218773...
[ { "content": "\"\"\"\ncommands.requires\n=================\nThis module manages the logic of resolving command permissions and\nrequirements. This includes rules which override those requirements,\nas well as custom checks which can be overriden, and some special\nchecks like bot permissions checks.\n\"\"\"\nim...
[ { "content": "\"\"\"\ncommands.requires\n=================\nThis module manages the logic of resolving command permissions and\nrequirements. This includes rules which override those requirements,\nas well as custom checks which can be overriden, and some special\nchecks like bot permissions checks.\n\"\"\"\nim...
diff --git a/redbot/core/commands/requires.py b/redbot/core/commands/requires.py index b5b4b885989..1cb293be4a7 100644 --- a/redbot/core/commands/requires.py +++ b/redbot/core/commands/requires.py @@ -417,9 +417,13 @@ async def verify(self, ctx: "Context") -> bool: """ await self._verify_bot(ctx) - ...
docker__docker-py-3132
Cannot use docker with eventlet since #2865 Before #2865, it was possible to use docker-py with a eventlet-based project. However, after the inclusion of a tests for using poll(), i now have errors, see below. This is expected: eventlet removes poll function on the select module on purpose. See https://github.com/e...
[ { "content": "import errno\nimport os\nimport select\nimport socket as pysocket\nimport struct\nimport sys\n\ntry:\n from ..transport import NpipeSocket\nexcept ImportError:\n NpipeSocket = type(None)\n\n\nSTDOUT = 1\nSTDERR = 2\n\n\nclass SocketError(Exception):\n pass\n\n\n# NpipeSockets have their o...
[ { "content": "import errno\nimport os\nimport select\nimport socket as pysocket\nimport struct\n\ntry:\n from ..transport import NpipeSocket\nexcept ImportError:\n NpipeSocket = type(None)\n\n\nSTDOUT = 1\nSTDERR = 2\n\n\nclass SocketError(Exception):\n pass\n\n\n# NpipeSockets have their own error typ...
diff --git a/docker/utils/socket.py b/docker/utils/socket.py index efb7458ee..cdc485ea3 100644 --- a/docker/utils/socket.py +++ b/docker/utils/socket.py @@ -3,7 +3,6 @@ import select import socket as pysocket import struct -import sys try: from ..transport import NpipeSocket @@ -32,7 +31,7 @@ def read(socket...
DataBiosphere__toil-1982
static provisioning blocked
[ { "content": "# Copyright (C) 2015-2016 Regents of the University of California\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-...
[ { "content": "# Copyright (C) 2015-2016 Regents of the University of California\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-...
diff --git a/docs/running/amazon.rst b/docs/running/amazon.rst index a1dc9fb964..fd205d9e3b 100644 --- a/docs/running/amazon.rst +++ b/docs/running/amazon.rst @@ -106,9 +106,6 @@ To launch worker nodes alongside the leader we use the ``-w`` option.:: This will spin up a leader node of type t2.small with five additio...
craiga__will-of-the-prophets-196
Visiting /roll raises an error if no rolls exist ``` Environment: Request Method: GET Request URL: http://localhost:8000/roll/ Django Version: 2.2 Python Version: 3.7.3 Installed Applications: ['raven.contrib.django.raven_compat', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.content...
[ { "content": "\"\"\"Views.\"\"\"\n\nfrom django.conf import settings\nfrom django.contrib.auth.mixins import LoginRequiredMixin\nfrom django.shortcuts import render\nfrom django.urls import reverse\nfrom django.utils import timezone\nfrom django.views.decorators.cache import cache_control\nfrom django.views.dec...
[ { "content": "\"\"\"Views.\"\"\"\n\nfrom django.conf import settings\nfrom django.contrib.auth.mixins import LoginRequiredMixin\nfrom django.shortcuts import render\nfrom django.urls import reverse\nfrom django.utils import timezone\nfrom django.views.decorators.cache import cache_control\nfrom django.views.dec...
diff --git a/will_of_the_prophets/tests/test_authorization.py b/will_of_the_prophets/tests/test_authorization.py index 23a81e25..88e226e7 100644 --- a/will_of_the_prophets/tests/test_authorization.py +++ b/will_of_the_prophets/tests/test_authorization.py @@ -3,12 +3,6 @@ # pylint: disable=redefined-outer-name, unused-...
googleapis__google-cloud-python-3291
Client library incorrectly returns error when FLAC is used with long-running-recognize The client library incorrectly returns an error when anything other than LINEAR16 is used for a long-running recognize request: [https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/speech/google/cloud/speech/sam...
[ { "content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/speech/google/cloud/speech/sample.py b/speech/google/cloud/speech/sample.py index 673e6ab4969c..baf020f56e7f 100644 --- a/speech/google/cloud/speech/sample.py +++ b/speech/google/cloud/speech/sample.py @@ -170,9 +170,6 @@ def long_running_recognize(self, language_code, max_alternatives=None, :rtyp...
zulip__zulip-6272
Stop threading PM threads with multiple groups of users in a single email Occasionally, a missed_message email will have emails from multiple different PM senders with you as the recipient mixed together in a single email. This is a confusing user experience that might make users worry about security issues. I th...
[ { "content": "from __future__ import print_function\n\nfrom typing import cast, Any, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Text\n\nfrom confirmation.models import Confirmation, create_confirmation_link\nfrom django.conf import settings\nfrom django.template import loader\nfrom django.utils.t...
[ { "content": "from __future__ import print_function\n\nfrom typing import cast, Any, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Text\n\nfrom confirmation.models import Confirmation, create_confirmation_link\nfrom django.conf import settings\nfrom django.template import loader\nfrom django.utils.t...
diff --git a/zerver/lib/notifications.py b/zerver/lib/notifications.py index d11654f2a3978..5cd5433d5ae9b 100644 --- a/zerver/lib/notifications.py +++ b/zerver/lib/notifications.py @@ -367,7 +367,11 @@ def handle_missedmessage_emails(user_profile_id, missed_email_events): messages_by_recipient_subject = defaultd...
vyperlang__vyper-1800
Private functions can't have duplicate function selectors This is an unnecessary constraint. Label names can be made unique. ```python @private @constant def gfah(): pass @private @constant def eexo(): pass # error: Label with name priv_236395036 already exists! ```
[ { "content": "import copy\nimport importlib\nfrom pathlib import (\n Path,\n)\nimport pkgutil\nfrom typing import (\n Sequence,\n Tuple,\n)\n\nfrom vyper import ast\nfrom vyper.exceptions import (\n ParserException,\n StructureException,\n)\nimport vyper.interfaces\nfrom vyper.parser import (\n ...
[ { "content": "import copy\nimport importlib\nfrom pathlib import (\n Path,\n)\nimport pkgutil\nfrom typing import (\n Sequence,\n Tuple,\n)\n\nfrom vyper import ast\nfrom vyper.exceptions import (\n ParserException,\n StructureException,\n)\nimport vyper.interfaces\nfrom vyper.parser import (\n ...
diff --git a/tests/signatures/test_method_id_conflicts.py b/tests/signatures/test_method_id_conflicts.py index 1a23c9debc..131710581b 100644 --- a/tests/signatures/test_method_id_conflicts.py +++ b/tests/signatures/test_method_id_conflicts.py @@ -51,6 +51,26 @@ def tgeo(): def OwnerTransferV7b711143(a: uint256): ...
ytdl-org__youtube-dl-30676
myspass.de broken ## Checklist - [x] I'm reporting a broken site support - [x] I've verified that I'm running youtube-dl version **2021.12.17** - [x] I've checked that all provided URLs are alive and playable in a browser - [x] I've checked that all URLs and arguments with special characters are properly quoted o...
[ { "content": "# coding: utf-8\nfrom __future__ import unicode_literals\n\nimport re\n\nfrom .common import InfoExtractor\nfrom ..compat import compat_str\nfrom ..utils import (\n int_or_none,\n parse_duration,\n xpath_text,\n)\n\n\nclass MySpassIE(InfoExtractor):\n _VALID_URL = r'https?://(?:www\\.)...
[ { "content": "# coding: utf-8\nfrom __future__ import unicode_literals\n\nimport re\n\nfrom .common import InfoExtractor\nfrom ..compat import compat_str\nfrom ..utils import (\n int_or_none,\n parse_duration,\n xpath_text,\n)\n\n\nclass MySpassIE(InfoExtractor):\n _VALID_URL = r'https?://(?:www\\.)...
diff --git a/youtube_dl/extractor/myspass.py b/youtube_dl/extractor/myspass.py index db7ebc94ca7..f540c52ee68 100644 --- a/youtube_dl/extractor/myspass.py +++ b/youtube_dl/extractor/myspass.py @@ -35,7 +35,9 @@ def _real_extract(self, url): title = xpath_text(metadata, 'title', fatal=True) video_url =...
pytorch__pytorch-3139
Sparse SGD + momentum = cuda memory issue. When using classic SGD optimizer with momentum with sparse embeddings the memory keeps garbage collecting / allocating leading to slow down and out of memory error eventually. [Here is a minimal exemple to reproduce the issue](https://gist.github.com/cedias/946a380807b7e1bf92...
[ { "content": "from .optimizer import Optimizer, required\n\n\nclass SGD(Optimizer):\n r\"\"\"Implements stochastic gradient descent (optionally with momentum).\n\n Nesterov momentum is based on the formula from\n `On the importance of initialization and momentum in deep learning`__.\n\n Args:\n ...
[ { "content": "from .optimizer import Optimizer, required\n\n\nclass SGD(Optimizer):\n r\"\"\"Implements stochastic gradient descent (optionally with momentum).\n\n Nesterov momentum is based on the formula from\n `On the importance of initialization and momentum in deep learning`__.\n\n Args:\n ...
diff --git a/torch/optim/sgd.py b/torch/optim/sgd.py index 53ff8e98aeb5fe..f51a516a29e79e 100644 --- a/torch/optim/sgd.py +++ b/torch/optim/sgd.py @@ -86,7 +86,8 @@ def step(self, closure=None): if momentum != 0: param_state = self.state[p] if 'momentum_buffer'...
vyperlang__vyper-1466
Bool default parameters not working ### Version Information * vyper Version (output of `vyper --version`): 0.1.0b10 * OS: linux * Python Version (output of `python --version`): 3.6.7 * Environment (output of `pip freeze`): (At end of report for readability) ### What's your issue about? * full output of the ...
[ { "content": "from collections import (\n Counter,\n)\n\nfrom vyper import ast\nfrom vyper.ast_utils import (\n to_python_ast,\n)\nfrom vyper.exceptions import (\n FunctionDeclarationException,\n InvalidTypeException,\n StructureException,\n)\nfrom vyper.parser.lll_node import (\n LLLnode,\n)\...
[ { "content": "from collections import (\n Counter,\n)\n\nfrom vyper import ast\nfrom vyper.ast_utils import (\n to_python_ast,\n)\nfrom vyper.exceptions import (\n FunctionDeclarationException,\n InvalidTypeException,\n StructureException,\n)\nfrom vyper.parser.lll_node import (\n LLLnode,\n)\...
diff --git a/vyper/signatures/function_signature.py b/vyper/signatures/function_signature.py index 8462aa75f8..47a35af722 100644 --- a/vyper/signatures/function_signature.py +++ b/vyper/signatures/function_signature.py @@ -168,7 +168,8 @@ def from_definition(cls, # Validate default values. for defau...
apache__tvm-14241
[Docs] `v0.11.dev0` still appears in the docs I've noticed that we still have `v0.11.dev0` being shown in the documentation page at https://tvm.apache.org/docs/. @areusch @driazati do you know how to make that to be updated to `v0.12.dev0`, which would be where we are now?
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
diff --git a/conda/recipe/meta.yaml b/conda/recipe/meta.yaml index 519b84c570d7..a30a01b6d2e8 100644 --- a/conda/recipe/meta.yaml +++ b/conda/recipe/meta.yaml @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -{% set version = '0.11.dev0' %} +{% set version = '0.12.dev...
ipython__ipython-7778
Alias mpl nbagg Talking to @danielballan today he pointed out that nbagg, while accurate and making lots of sense to mpl developers, is not the clearest our most user friendly name. Would it make sense to provide an alias in the mpl related ipython magic to a more suitable name? Would it be possible to get that ali...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Pylab (matplotlib) support utilities.\"\"\"\nfrom __future__ import print_function\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nfrom io import BytesIO\n\nfrom IPython.core.display import _pngxy\nfrom IPyt...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Pylab (matplotlib) support utilities.\"\"\"\nfrom __future__ import print_function\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nfrom io import BytesIO\n\nfrom IPython.core.display import _pngxy\nfrom IPyt...
diff --git a/IPython/core/pylabtools.py b/IPython/core/pylabtools.py index 682617dab92..af0fd65953d 100644 --- a/IPython/core/pylabtools.py +++ b/IPython/core/pylabtools.py @@ -22,6 +22,7 @@ 'qt5': 'Qt5Agg', 'osx': 'MacOSX', 'nbagg': 'nbAgg', + 'notebook': 'nbAgg', ...
mozmeao__basket-385
Pass through 2 Additional Fields to SalesForce CRM from FxA Form Hola PMac. I would like to request that we collect both Geo and Platform when someone submits their interest for the FPN product. We currently were only collecting email. The two fields are:   | "FPN Waitlist Geo" | API Name: FPN_Waitlist_Geo__c...
[ { "content": "\"\"\"\nAPI Client Library for Salesforce.com (SFDC)\n\"\"\"\nfrom random import randint\nfrom time import time\n\nimport requests\nfrom django.conf import settings\nfrom django.core.cache import cache\n\nimport simple_salesforce as sfapi\nfrom django_statsd.clients import statsd\nfrom simple_sale...
[ { "content": "\"\"\"\nAPI Client Library for Salesforce.com (SFDC)\n\"\"\"\nfrom random import randint\nfrom time import time\n\nimport requests\nfrom django.conf import settings\nfrom django.core.cache import cache\n\nimport simple_salesforce as sfapi\nfrom django_statsd.clients import statsd\nfrom simple_sale...
diff --git a/basket/news/backends/sfdc.py b/basket/news/backends/sfdc.py index 162f69c2c..ddc2f9613 100644 --- a/basket/news/backends/sfdc.py +++ b/basket/news/backends/sfdc.py @@ -78,6 +78,8 @@ def cast_lower(value): 'payee_id': 'PMT_Cust_Id__c', 'fxa_id': 'FxA_Id__c', 'fxa_deleted': 'FxA_Account_Delete...
napari__napari-6194
UI icons shift when saving screenshot with flash ## 🐛 Bug I have a napari instance with 228733 shapes. When I use `File \ Save screenshot with viewer` my UI briefly displays as follows (pardon the screenshot it requires quick clicking): <img width="566" alt="image" src="https://github.com/napari/napari/assets/40...
[ { "content": "from __future__ import annotations\n\nimport re\nimport signal\nimport socket\nimport weakref\nfrom contextlib import contextmanager\nfrom functools import partial\nfrom typing import Iterable, Sequence, Union\n\nimport numpy as np\nimport qtpy\nfrom qtpy.QtCore import (\n QByteArray,\n QCor...
[ { "content": "from __future__ import annotations\n\nimport re\nimport signal\nimport socket\nimport weakref\nfrom contextlib import contextmanager\nfrom functools import partial\nfrom typing import Iterable, Sequence, Union\n\nimport numpy as np\nimport qtpy\nfrom qtpy.QtCore import (\n QByteArray,\n QCor...
diff --git a/napari/_qt/utils.py b/napari/_qt/utils.py index b07b3fa7f32..bf85c96411c 100644 --- a/napari/_qt/utils.py +++ b/napari/_qt/utils.py @@ -146,9 +146,14 @@ def set_widgets_enabled_with_opacity( ): """Set enabled state on some widgets. If not enabled, decrease opacity.""" for widget in widgets: - ...
pytorch__rl-2188
[BUG] `LazyTensorStorage` allocates storage on wrong device https://github.com/pytorch/rl/blob/d59b8105cd7437cccb7c480f15ce6caf67f587c6/torchrl/data/replay_buffers/storages.py#L870-L873 As can be seen in the snippet, the storage first allocates everything on the data device and only later moves it to the proper devi...
[ { "content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\nfrom __future__ import annotations\n\nimport abc\nimport os\nimport textwrap\nimport warnings\nfrom collections imp...
[ { "content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\nfrom __future__ import annotations\n\nimport abc\nimport os\nimport textwrap\nimport warnings\nfrom collections imp...
diff --git a/torchrl/data/replay_buffers/storages.py b/torchrl/data/replay_buffers/storages.py index 373f05b9852..e4d62df32cf 100644 --- a/torchrl/data/replay_buffers/storages.py +++ b/torchrl/data/replay_buffers/storages.py @@ -867,10 +867,10 @@ def max_size_along_dim0(data_shape): return (self.max_size, ...
pytorch__vision-7573
terminate called after throwing an instance of 'c10::Error' ### 🐛 Describe the bug I've compiled torch and vision from their main branches. When running Automatic1111's webui for Stable Diffusion, I get the following error message: ``` terminate called after throwing an instance of 'c10::Error' what(): Trie...
[ { "content": "import distutils.command.clean\nimport distutils.spawn\nimport glob\nimport os\nimport shutil\nimport subprocess\nimport sys\n\nimport torch\nfrom pkg_resources import DistributionNotFound, get_distribution, parse_version\nfrom setuptools import find_packages, setup\nfrom torch.utils.cpp_extension...
[ { "content": "import distutils.command.clean\nimport distutils.spawn\nimport glob\nimport os\nimport shutil\nimport subprocess\nimport sys\n\nimport torch\nfrom pkg_resources import DistributionNotFound, get_distribution, parse_version\nfrom setuptools import find_packages, setup\nfrom torch.utils.cpp_extension...
diff --git a/setup.py b/setup.py index c523ba073c5..732b5c0e1b7 100644 --- a/setup.py +++ b/setup.py @@ -328,9 +328,15 @@ def get_extensions(): image_src = ( glob.glob(os.path.join(image_path, "*.cpp")) + glob.glob(os.path.join(image_path, "cpu", "*.cpp")) - + glob.glob(os.path.join(image_...
qutip__qutip-79
Failing unit tests in test_subsystem_apply Since the PR merge of Ben's (@bcriger) code for Efficient Application of CPTP Maps to Subsystems, there has been a number of failing unit tests. I have fixed some of the tests and ported Ben's code to be python3 compatible, but there are still two remaining errors, which I hav...
[ { "content": "# This file is part of QuTiP.\n#\n# QuTiP 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.\n#\n# ...
[ { "content": "# This file is part of QuTiP.\n#\n# QuTiP 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.\n#\n# ...
diff --git a/qutip/subsystem_apply.py b/qutip/subsystem_apply.py index c2e9dabdd2..fa8ead69fe 100644 --- a/qutip/subsystem_apply.py +++ b/qutip/subsystem_apply.py @@ -270,7 +270,7 @@ def _subsystem_apply_reference(state, channel, mask): rho_out = Qobj(inpt=zeros(state.shape), dims=state.dims) for oper...
pypi__warehouse-12408
Monospaced font for text/plain long_description Don't you think that would be nice to wrap project descriptions in text/plain with pre tag? Close if duplicate. I'm really sorry, looking through over 400 issues of production system is beyond of my capabilities.
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
diff --git a/tests/unit/packaging/test_views.py b/tests/unit/packaging/test_views.py index 4300cede9ab7..249cb5a34274 100644 --- a/tests/unit/packaging/test_views.py +++ b/tests/unit/packaging/test_views.py @@ -176,6 +176,53 @@ def test_normalizing_version_redirects(self, db_request): pretend.call(name=rel...
pypa__pipenv-5619
`--keep-outdated` deprecation text is missing spaces Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv. Check the [diagnose documentation](https://pipenv.pypa.io/en/latest/diagnose/) for common issues before posting! We may close your issue if it...
[ { "content": "import os\nimport re\n\nfrom pipenv.project import Project\nfrom pipenv.utils.internet import is_valid_url\nfrom pipenv.vendor import click\nfrom pipenv.vendor.click import (\n BadArgumentUsage,\n BadParameter,\n Group,\n Option,\n argument,\n echo,\n make_pass_decorator,\n ...
[ { "content": "import os\nimport re\n\nfrom pipenv.project import Project\nfrom pipenv.utils.internet import is_valid_url\nfrom pipenv.vendor import click\nfrom pipenv.vendor.click import (\n BadArgumentUsage,\n BadParameter,\n Group,\n Option,\n argument,\n echo,\n make_pass_decorator,\n ...
diff --git a/news/5618.trivial.rst b/news/5618.trivial.rst new file mode 100644 index 0000000000..718a6602d8 --- /dev/null +++ b/news/5618.trivial.rst @@ -0,0 +1 @@ +Add missing spaces to the ``--keep-outdated`` flag's deprecation warning. diff --git a/pipenv/cli/options.py b/pipenv/cli/options.py index e3fe51cfb5..9e8...
pypi__warehouse-2524
Validate username format before attempting to flush it to the db Validate a valid username prior to trying to save it to the database, using the same logic as is already in the database. --- https://sentry.io/python-software-foundation/warehouse-production/issues/258353802/ ``` IntegrityError: new row for relation "...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
diff --git a/tests/unit/accounts/test_forms.py b/tests/unit/accounts/test_forms.py index ff11a7a33605..ebf93822819f 100644 --- a/tests/unit/accounts/test_forms.py +++ b/tests/unit/accounts/test_forms.py @@ -311,6 +311,28 @@ def test_username_exists(self): "Please choose a different username." ) ...
tobymao__sqlglot-2864
Bug report : OptimizerError thrown by qualify when INTERSECT, UNION, or EXCEPT used in uncorrelated subquery ## Summary / Background When using `qualify` with `'mysql'` dialect there is an unexpected error. The following code snippet throws an OptimizerError due to an unresolved column despite all columns being well...
[ { "content": "from __future__ import annotations\n\nimport itertools\nimport logging\nimport typing as t\nfrom collections import defaultdict\nfrom enum import Enum, auto\n\nfrom sqlglot import exp\nfrom sqlglot.errors import OptimizeError\nfrom sqlglot.helper import ensure_collection, find_new_name\n\nlogger =...
[ { "content": "from __future__ import annotations\n\nimport itertools\nimport logging\nimport typing as t\nfrom collections import defaultdict\nfrom enum import Enum, auto\n\nfrom sqlglot import exp\nfrom sqlglot.errors import OptimizeError\nfrom sqlglot.helper import ensure_collection, find_new_name\n\nlogger =...
diff --git a/sqlglot/optimizer/scope.py b/sqlglot/optimizer/scope.py index a3f08d5746..5c2dfc3b3d 100644 --- a/sqlglot/optimizer/scope.py +++ b/sqlglot/optimizer/scope.py @@ -323,9 +323,14 @@ def external_columns(self): sources in the current scope. """ if self._external_columns is No...
django-oscar__django-oscar-2329
"Please copy/symlink the 'missing image'..." exception when MEDIA_ROOT folders are not created I get the exception `Please copy/symlink the 'missing image' image at ... into your MEDIA_ROOT at .... This exception was raised because Oscar was unable to symlink it for you." ` whenever I create a fresh environment. ...
[ { "content": "import logging\nimport os\nfrom datetime import date, datetime\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.fields import GenericForeignKey\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.contrib.staticfiles.finders import find\nfrom django.core.ca...
[ { "content": "import logging\nimport os\nfrom datetime import date, datetime\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.fields import GenericForeignKey\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.contrib.staticfiles.finders import find\nfrom django.core.ca...
diff --git a/src/oscar/apps/catalogue/abstract_models.py b/src/oscar/apps/catalogue/abstract_models.py index 16923ff9839..586291567ed 100644 --- a/src/oscar/apps/catalogue/abstract_models.py +++ b/src/oscar/apps/catalogue/abstract_models.py @@ -1119,6 +1119,11 @@ def symlink_missing_image(self, media_file_path): ...
readthedocs__readthedocs.org-10168
Build: expose VCS-related environment variables So... with `sphinx-basic-ng`, a bunch of the theme developers in the Sphinx ecosystem are trying to get a shared base theme that we all build upon. Notably, this has reusable implementations of various design "components" (https://sphinx-basic-ng.readthedocs.io/en/late...
[ { "content": "import os\nimport tarfile\n\nimport structlog\nimport yaml\nfrom django.conf import settings\nfrom django.utils.translation import gettext_lazy as _\n\nfrom readthedocs.builds.constants import EXTERNAL\nfrom readthedocs.core.utils.filesystem import safe_open\nfrom readthedocs.doc_builder.config im...
[ { "content": "import os\nimport tarfile\n\nimport structlog\nimport yaml\nfrom django.conf import settings\nfrom django.utils.translation import gettext_lazy as _\n\nfrom readthedocs.builds.constants import EXTERNAL\nfrom readthedocs.core.utils.filesystem import safe_open\nfrom readthedocs.doc_builder.config im...
diff --git a/docs/user/reference/environment-variables.rst b/docs/user/reference/environment-variables.rst index 68bbfb532af..3dcbd65cffe 100644 --- a/docs/user/reference/environment-variables.rst +++ b/docs/user/reference/environment-variables.rst @@ -56,6 +56,31 @@ All :doc:`build processes </builds>` have the follow...
beeware__toga-1485
RuntimeError in toga-demo **Describe the bug** when you run the toga-demo app and click on "Action 2" and then either Yes or No at the dialog, you get ```RuntimeError: Can't check dialog result directly; use await or an on_result handler``` printed on the console and no followup dialog. **To Reproduce** Steps to r...
[ { "content": "import toga\nfrom toga.constants import COLUMN\nfrom toga.style import Pack\n\n\nclass TogaDemo(toga.App):\n\n def startup(self):\n # Create the main window\n self.main_window = toga.MainWindow(self.name)\n\n left_container = toga.OptionContainer()\n\n left_table = t...
[ { "content": "import toga\nfrom toga.constants import COLUMN\nfrom toga.style import Pack\n\n\nclass TogaDemo(toga.App):\n\n def startup(self):\n # Create the main window\n self.main_window = toga.MainWindow(self.name)\n\n left_container = toga.OptionContainer()\n\n left_table = t...
diff --git a/demo/toga_demo/app.py b/demo/toga_demo/app.py index 55c6f6d171..1cf633209b 100755 --- a/demo/toga_demo/app.py +++ b/demo/toga_demo/app.py @@ -87,8 +87,8 @@ def button_handler(self, widget): def action1(self, widget): self.main_window.info_dialog('Toga', 'THIS! IS! TOGA!!') - def action2(...
WordPress__openverse-api-1007
Broken link to image landing page in Django admin ## Description <!-- Concisely describe the bug. Compare your experience with what you expected to happen. --> <!-- For example: "I clicked the 'submit' button and instead of seeing a thank you message, I saw a blank page." --> The functionality for reporting media wo...
[ { "content": "from django.conf import settings\nfrom django.db import models\n\nfrom uuslug import uuslug\n\nfrom catalog.api.constants.media_types import IMAGE_TYPE\nfrom catalog.api.models.media import (\n AbstractDeletedMedia,\n AbstractMatureMedia,\n AbstractMedia,\n AbstractMediaList,\n Abst...
[ { "content": "from django.conf import settings\nfrom django.db import models\n\nfrom uuslug import uuslug\n\nfrom catalog.api.constants.media_types import IMAGE_TYPE\nfrom catalog.api.models.media import (\n AbstractDeletedMedia,\n AbstractMatureMedia,\n AbstractMedia,\n AbstractMediaList,\n Abst...
diff --git a/api/catalog/api/models/image.py b/api/catalog/api/models/image.py index 3e91f2369..118a25c08 100644 --- a/api/catalog/api/models/image.py +++ b/api/catalog/api/models/image.py @@ -84,7 +84,7 @@ class Meta: @property def image_url(self): - return super().url("photos") + return supe...
optuna__optuna-5153
Clarify `GridSampler` and ask-and-tell interface problem ### What is an issue? `GridSampler` with ask-and-tell interface does not work the same way as the `optimize` interface due to `RuntimeError` as reported in https://github.com/optuna/optuna/issues/4121 and https://github.com/optuna/optuna/issues/5141. This should...
[ { "content": "import itertools\nfrom numbers import Real\nfrom typing import Any\nfrom typing import Dict\nfrom typing import List\nfrom typing import Mapping\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Union\nimport warnings\n\nimport numpy as np\n\nfrom optuna.distributions i...
[ { "content": "import itertools\nfrom numbers import Real\nfrom typing import Any\nfrom typing import Dict\nfrom typing import List\nfrom typing import Mapping\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Union\nimport warnings\n\nimport numpy as np\n\nfrom optuna.distributions i...
diff --git a/optuna/samplers/_grid.py b/optuna/samplers/_grid.py index aa95735217..2355b7b466 100644 --- a/optuna/samplers/_grid.py +++ b/optuna/samplers/_grid.py @@ -51,9 +51,12 @@ def objective(trial): Note: - :class:`~optuna.samplers.GridSampler` automatically stops the optimization if all - c...
cleanlab__cleanlab-412
CI: Suppress complex mypy typing in docs.cleanlab.ai If docs.cleanlab.ai shows the mypy type annotations, the current signatures look a bit intimidating, eg. for: `cleanlab.internal.validation` https://docs.cleanlab.ai/master/cleanlab/internal/validation.html Plan is to use https://github.com/tox-dev/sphinx-autodoc...
[ { "content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup -------------------------------------------...
[ { "content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup -------------------------------------------...
diff --git a/docs/requirements.txt b/docs/requirements.txt index a1673d1376..bc53ea66f4 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -24,3 +24,4 @@ fasttext==0.9.2 timm==0.6.5 torch==1.11.0 requests==2.28.0 +sphinx-autodoc-typehints==1.19.2 diff --git a/docs/source/conf.py b/docs/source/conf.py ...
PokemonGoF__PokemonGo-Bot-3511
IOError: [Errno 25] Inappropriate ioctl for device Running in a docker container based on the DockerFile: ``` Traceback (most recent call last): File "/usr/src/app/pokecli.py", line 530, in <module> main() File "/usr/src/app/pokecli.py", line 96, in main bot.tick() File "/usr/src/app/pokemongo_bot/__init...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nimport time\nimport sys\nimport struct\n\nfrom pokemongo_bot.event_manager import EventHandler\n\nclass ColoredLoggingHandler(EventHandler):\n EVENT_COLOR_MAP = {\n 'api_error': 'red',\n 'bot_...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nimport time\nimport sys\nimport struct\n\nfrom pokemongo_bot.event_manager import EventHandler\n\nclass ColoredLoggingHandler(EventHandler):\n EVENT_COLOR_MAP = {\n 'api_error': 'red',\n 'bot_...
diff --git a/pokemongo_bot/event_handlers/colored_logging_handler.py b/pokemongo_bot/event_handlers/colored_logging_handler.py index dd7239d6d6..f3c902d464 100644 --- a/pokemongo_bot/event_handlers/colored_logging_handler.py +++ b/pokemongo_bot/event_handlers/colored_logging_handler.py @@ -125,7 +125,7 @@ def handle_ev...
pytorch__ignite-2469
Fix docs building ## 📚 Documentation Following https://github.com/pytorch/ignite/pull/2457 docs build is failing due to copying of orphaned defaults.rst file: - https://github.com/pytorch/ignite/runs/5148163094?check_suite_focus=true ``` Configuration error: There is a programmable error in your configuratio...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Configuration file for the Sphinx documentation builder.\n#\n# This file does only contain a selection of the most common options. For a\n# full list see the documentation:\n# http://www.sphinx-doc.org/en/stable/config\n\n# -- Path setup ------------------------------...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Configuration file for the Sphinx documentation builder.\n#\n# This file does only contain a selection of the most common options. For a\n# full list see the documentation:\n# http://www.sphinx-doc.org/en/stable/config\n\n# -- Path setup ------------------------------...
diff --git a/docs/source/conf.py b/docs/source/conf.py index 271a835d82e6..676f1e07c440 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -68,10 +68,12 @@ togglebutton_hint_hide = "Hide default setup" # Copy defaults.rst to source/generated to be discoverable in docstrings -src_folder = os.path.dirname(...
mampfes__hacs_waste_collection_schedule-231
[Request] Support for Abfallkalender Landkreis Göttingen (Niedersachsen) Is it possible to add support for the Abfallkalender Landkreis Göttingen (Niedersachsen)? https://www.abfallplus.de/fuer-buerger/ states "Kreis Göttingen wird unterstützt". I tried to find out the parameters with the help of the proxy app "...
[ { "content": "#!/usr/bin/env python3\n\nimport re\nfrom html.parser import HTMLParser\n\nimport inquirer\nimport requests\n\nMODUS_KEY = \"d6c5855a62cf32a4dadbc2831f0f295f\"\nHEADERS = {\"user-agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64)\"}\n\n# IDs of CONFIG VARIABLES\nCONFIG_VARIABLES = [\n \"f_id_...
[ { "content": "#!/usr/bin/env python3\n\nimport re\nfrom html.parser import HTMLParser\n\nimport inquirer\nimport requests\n\nMODUS_KEY = \"d6c5855a62cf32a4dadbc2831f0f295f\"\nHEADERS = {\"user-agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64)\"}\n\n# IDs of CONFIG VARIABLES\nCONFIG_VARIABLES = [\n \"f_id_...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/wizard/abfall_io.py b/custom_components/waste_collection_schedule/waste_collection_schedule/wizard/abfall_io.py index cd1e6dc6a..777944941 100755 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/wizard/abfall_i...
sopel-irc__sopel-419
Tell module errors when you don't give it enough arguments ``` <Flyte> .tell <Lurk> AttributeError: 'NoneType' object has no attribute 'split' (file "/home/flyte/workspace/willie/ve/local/lib/python2.7/site-packages/willie/modules/tell.py", line 93, in f_remind) <Flyte> .tell Flyte <Lurk> ValueError: need more than 1 v...
[ { "content": "\"\"\"\ntell.py - Willie Tell and Ask Module\nCopyright 2008, Sean B. Palmer, inamidst.com\nLicensed under the Eiffel Forum License 2.\n\nhttp://willie.dftba.net\n\"\"\"\n\nimport os\nimport time\nimport datetime\nimport pytz\nimport threading\nfrom willie.tools import Nick\nfrom willie.module imp...
[ { "content": "\"\"\"\ntell.py - Willie Tell and Ask Module\nCopyright 2008, Sean B. Palmer, inamidst.com\nLicensed under the Eiffel Forum License 2.\n\nhttp://willie.dftba.net\n\"\"\"\n\nimport os\nimport time\nimport datetime\nimport pytz\nimport threading\nfrom willie.tools import Nick\nfrom willie.module imp...
diff --git a/willie/modules/tell.py b/willie/modules/tell.py index 545d7db377..38f43039f8 100644 --- a/willie/modules/tell.py +++ b/willie/modules/tell.py @@ -88,11 +88,20 @@ def get_user_time(bot, nick): def f_remind(bot, trigger): """Give someone a message the next time they're seen""" teller = trigger.nic...
pypa__pip-2853
~ in 'cache_dir' doesn't get expanded for the wheels folder Using 7.0.1: ``` $ pip3 --version pip 7.0.1 from /usr/local/lib/python3.4/site-packages (python 3.4) ``` My configuration file is: ``` [global] cache-dir=~/.cache/pip ``` For the http cache `~` is expanded, so I have a few folders in `~/.cache/pip/http`, b...
[ { "content": "\"\"\"\nSupport for installing and building the \"wheel\" binary package format.\n\"\"\"\nfrom __future__ import absolute_import\n\nimport compileall\nimport csv\nimport errno\nimport functools\nimport hashlib\nimport logging\nimport os\nimport re\nimport shutil\nimport stat\nimport sys\nimport te...
[ { "content": "\"\"\"\nSupport for installing and building the \"wheel\" binary package format.\n\"\"\"\nfrom __future__ import absolute_import\n\nimport compileall\nimport csv\nimport errno\nimport functools\nimport hashlib\nimport logging\nimport os\nimport os.path\nimport re\nimport shutil\nimport stat\nimpor...
diff --git a/CHANGES.txt b/CHANGES.txt index 80bb4231bc8..c0029caf185 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,6 +10,9 @@ options interleaved with requirements, version specifiers etc in ``requirements`` files. (:pull:`2841`) +* Expand ``~`` in the cache directory when caching wheels, fixes :issue:`281...
facebookresearch__fairseq-61
bad syntax in preprocess.py levinth@zt-gpu-lin-1:~/fairseq-py$ python3 preprocess.py --source-lang de --target-lang en --trainpref $TEXT/train --validpref $TEXT/valid --testpref $TEXT/test --destdir data-bin/iwslt14.tokenized.de-en File "preprocess.py", line 84 output_text_file = os.path.join(args.destdir, ...
[ { "content": "#!/usr/bin/env python3\n# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n#\n# This source code is licensed under the license found in the LICENSE file in\n# the root directory of this source tree. An additional grant of patent rights\n# can be found in the PATENTS file in the ...
[ { "content": "#!/usr/bin/env python3\n# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n#\n# This source code is licensed under the license found in the LICENSE file in\n# the root directory of this source tree. An additional grant of patent rights\n# can be found in the PATENTS file in the ...
diff --git a/preprocess.py b/preprocess.py index f5f1fe92b7..e3300ba5c4 100644 --- a/preprocess.py +++ b/preprocess.py @@ -81,7 +81,7 @@ def make_dataset(input_prefix, output_prefix, lang, output_format='binary'): make_binary_dataset(input_prefix, output_prefix, lang) elif output_format == 'raw': ...
canonical__snapcraft-4354
Abstract socket in listen-stream cause validation failure ### Bug Description When trying to declare an abstract socket in a `snapcraft.yaml` file it caused validation to fail, even though it's supported by `snapd` [[1]](https://snapcraft.io/docs/snapcraft-app-and-service-metadata) [[2]](https://forum.snapcraft.io/t...
[ { "content": "# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-\n#\n# Copyright 2022-2023 Canonical Ltd.\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 3 as\n# published by the Free Software Foundation.\n#\n# This...
[ { "content": "# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-\n#\n# Copyright 2022-2023 Canonical Ltd.\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 3 as\n# published by the Free Software Foundation.\n#\n# This...
diff --git a/snapcraft/projects.py b/snapcraft/projects.py index c9a441efbf..3ca81a055e 100644 --- a/snapcraft/projects.py +++ b/snapcraft/projects.py @@ -187,7 +187,9 @@ def _validate_list_stream(cls, listen_stream): f"{listen_stream!r} is not an integer between 1 and 65535 (inclusive)." ...