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
Mailu__Mailu-2972
FTS doesn't perform OCR on attachments for keyword extraction If one send a PDF composed of images, no keywords will be extracted/indexed. To fix that, we could do some OCR: - https://github.com/tesseract-ocr/tesseract or if we want to get fancy, something like - https://github.com/JaidedAI/EasyOCR Or the bu...
[ { "content": "import os\n\nfrom datetime import timedelta\nimport ipaddress\n\nDEFAULT_CONFIG = {\n # Specific to the admin UI\n 'DOCKER_SOCKET': 'unix:///var/run/docker.sock',\n 'BABEL_DEFAULT_LOCALE': 'en',\n 'BABEL_DEFAULT_TIMEZONE': 'UTC',\n 'BOOTSTRAP_SERVE_LOCAL': True,\n 'RATELIMIT_STOR...
[ { "content": "import os\n\nfrom datetime import timedelta\nimport ipaddress\n\nDEFAULT_CONFIG = {\n # Specific to the admin UI\n 'DOCKER_SOCKET': 'unix:///var/run/docker.sock',\n 'BABEL_DEFAULT_LOCALE': 'en',\n 'BABEL_DEFAULT_TIMEZONE': 'UTC',\n 'BOOTSTRAP_SERVE_LOCAL': True,\n 'RATELIMIT_STOR...
diff --git a/README.md b/README.md index 6a2029408..29bd55a48 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Features Main features include: - **Standard email server**, IMAP and IMAP+, SMTP and Submission with autoconfiguration profiles for clients -- **Advanced email features**, aliases, domain aliases,...
ManimCommunity__manim-2013
Improve TransformMatchingAbstractBase to support different types of objects ## Enhancement proposal <!-- Add a clear and concise description of your enhancement proposal. In particular, if your enhancement introduces changes to the API, illustrate them with (fictional) code examples. --> The first line ...
[ { "content": "\"\"\"Animations that try to transform Mobjects while keeping track of identical parts.\"\"\"\n\n__all__ = [\"TransformMatchingShapes\", \"TransformMatchingTex\"]\n\nfrom typing import TYPE_CHECKING, List, Optional\n\nimport numpy as np\n\nfrom .._config import config\nfrom ..mobject.mobject impor...
[ { "content": "\"\"\"Animations that try to transform Mobjects while keeping track of identical parts.\"\"\"\n\n__all__ = [\"TransformMatchingShapes\", \"TransformMatchingTex\"]\n\nfrom typing import TYPE_CHECKING, List, Optional\n\nimport numpy as np\n\nfrom .._config import config\nfrom ..mobject.mobject impor...
diff --git a/manim/animation/transform_matching_parts.py b/manim/animation/transform_matching_parts.py index 971b66b0e6..b352990b5e 100644 --- a/manim/animation/transform_matching_parts.py +++ b/manim/animation/transform_matching_parts.py @@ -72,7 +72,6 @@ def __init__( key_map: Optional[dict] = None, ...
googleapis__google-cloud-python-196
gcloud.storage.iterator.KeyDataIterator chunking is off-by-one 'get_headers' computes the "Range:" header as '_bytes_written' - '_bytes_written + CHUNK_SIZE': https://github.com/GoogleCloudPlatform/gcloud-python/blob/1f2aaf3606802f4f02eeb30e22e1082ef7f4594e/gcloud/storage/iterator.py#L215 and the '_bytes_written' get...
[ { "content": "\"\"\"Iterators for paging through API responses.\n\nThese iterators\nsimplify the process\nof paging through API responses\nwhere the response\nis a list of results\nwith a ``nextPageToken``.\n\nTo make an iterator work,\njust override the ``get_items_from_response`` method\nso that given a respo...
[ { "content": "\"\"\"Iterators for paging through API responses.\n\nThese iterators\nsimplify the process\nof paging through API responses\nwhere the response\nis a list of results\nwith a ``nextPageToken``.\n\nTo make an iterator work,\njust override the ``get_items_from_response`` method\nso that given a respo...
diff --git a/gcloud/storage/iterator.py b/gcloud/storage/iterator.py index fab97e26e2d0..b2dfcff8ba11 100644 --- a/gcloud/storage/iterator.py +++ b/gcloud/storage/iterator.py @@ -211,7 +211,7 @@ def has_more_data(self): def get_headers(self): start = self._bytes_written - end = self._bytes_written + self.k...
bridgecrewio__checkov-5247
Missing AWS RDS CA in CKV_AWS_211 **Describe the issue** In check CKV_AWS_211, checkov currently only checks for one possible CA on AWS RDS instances, namely `rds-ca-2019` (see [associated code](https://github.com/bridgecrewio/checkov/blob/master/checkov/terraform/checks/resource/aws/RDSCACertIsRecent.py#L24)) whereas...
[ { "content": "from checkov.common.models.enums import CheckCategories, CheckResult\nfrom checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\nfrom typing import Any, List\n\n\nclass RDSCACertIsRecent(BaseResourceValueCheck):\n def __init__(self):\n name = \"Ensure...
[ { "content": "from checkov.common.models.enums import CheckCategories, CheckResult\nfrom checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\nfrom typing import Any, List\n\n\nclass RDSCACertIsRecent(BaseResourceValueCheck):\n def __init__(self):\n name = \"Ensure...
diff --git a/checkov/terraform/checks/resource/aws/RDSCACertIsRecent.py b/checkov/terraform/checks/resource/aws/RDSCACertIsRecent.py index a92c22fab1..b7bba1564f 100644 --- a/checkov/terraform/checks/resource/aws/RDSCACertIsRecent.py +++ b/checkov/terraform/checks/resource/aws/RDSCACertIsRecent.py @@ -21,7 +21,7 @@ def...
pypa__setuptools-4178
[BUG] UnicodeDecodeError with unicode setup.py on windows with non english primary language ### setuptools version 69.02 ### Python version 3.11 ### OS Windows 11 ### Additional environment information ``` Package Version ---------- ------- pip 23.3.1 setuptools 69.0.2 wheel 0.42.0 ``` I ...
[ { "content": "\"\"\"A PEP 517 interface to setuptools\n\nPreviously, when a user or a command line tool (let's call it a \"frontend\")\nneeded to make a request of setuptools to take a certain action, for\nexample, generating a list of installation requirements, the frontend would\nwould call \"setup.py egg_inf...
[ { "content": "\"\"\"A PEP 517 interface to setuptools\n\nPreviously, when a user or a command line tool (let's call it a \"frontend\")\nneeded to make a request of setuptools to take a certain action, for\nexample, generating a list of installation requirements, the frontend would\nwould call \"setup.py egg_inf...
diff --git a/setuptools/build_meta.py b/setuptools/build_meta.py index 62954b3b77..0a0abfdae0 100644 --- a/setuptools/build_meta.py +++ b/setuptools/build_meta.py @@ -130,7 +130,7 @@ def _open_setup_script(setup_script): # Supply a default setup.py return io.StringIO("from setuptools import setup; set...
localstack__localstack-1937
Regression: S3 502 error from headBucket request When executing: ``` s3AsyncClient.headBucket(HeadBucketRequest.builder() .bucket("local-stack-test-bucket") .build()).join(); ``` We get this exception thrown (Java): java.util.concurrent.CompletionException: software.am...
[ { "content": "import re\nimport os\nimport sys\nimport ssl\nimport json\nimport socket\nimport inspect\nimport logging\nimport traceback\nimport click\nimport requests\nfrom ssl import SSLError\nfrom flask_cors import CORS\nfrom requests.structures import CaseInsensitiveDict\nfrom requests.models import Respons...
[ { "content": "import re\nimport os\nimport sys\nimport ssl\nimport json\nimport socket\nimport inspect\nimport logging\nimport traceback\nimport click\nimport requests\nfrom ssl import SSLError\nfrom flask_cors import CORS\nfrom requests.structures import CaseInsensitiveDict\nfrom requests.models import Respons...
diff --git a/localstack/services/generic_proxy.py b/localstack/services/generic_proxy.py index 7028205c96692..4a243cc423712 100644 --- a/localstack/services/generic_proxy.py +++ b/localstack/services/generic_proxy.py @@ -210,7 +210,7 @@ def forward(self, method): self.close_connection = 1 def is...
encode__httpx-407
ASGIDispatch and WSGIDispatch should be importable from the top-level httpx package From #396: > ``ASGIDispatch`` and ``WSGIDispatch`` are documented as top-level but aren't exposed at the top level. This is definitely an issue, I'd recommend the route of making both available top-level.
[ { "content": "\"\"\"\nDispatch classes handle the raw network connections and the implementation\ndetails of making the HTTP request and receiving the response.\n\"\"\"\n", "path": "httpx/dispatch/__init__.py" } ]
[ { "content": "\"\"\"\nDispatch classes handle the raw network connections and the implementation\ndetails of making the HTTP request and receiving the response.\n\"\"\"\nfrom .asgi import ASGIDispatch\nfrom .wsgi import WSGIDispatch\n\n__all__ = [\"ASGIDispatch\", \"WSGIDispatch\"]\n", "path": "httpx/dispat...
diff --git a/docs/advanced.md b/docs/advanced.md index 6acad3b67b..99fbb65157 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -53,7 +53,7 @@ For example: ```python # Instantiate a client that makes WSGI requests with a client IP of "1.2.3.4". -dispatch = httpx.WSGIDispatch(app=app, remote_addr="1.2.3.4") +d...
xonsh__xonsh-5211
cd only respects HOME from os.environ and not XSH $HOME ## Expected Behavior Set the $HOME variable, for example /tmp $HOME = "/tmp" then call 'cd' by itself, pwd should read /tmp ## Current Behavior $HOME = "/tmp" then call "cd", pwd will be equal to os.environ['HOME'] I am on Ubuntu, this happens for the ...
[ { "content": "\"\"\"Directory stack and associated utilities for the xonsh shell.\nhttps://www.gnu.org/software/bash/manual/html_node/Directory-Stack-Builtins.html\n\"\"\"\nimport contextlib\nimport glob\nimport os\nimport subprocess\nimport typing as tp\n\nfrom xonsh.built_ins import XSH\nfrom xonsh.cli_utils ...
[ { "content": "\"\"\"Directory stack and associated utilities for the xonsh shell.\nhttps://www.gnu.org/software/bash/manual/html_node/Directory-Stack-Builtins.html\n\"\"\"\nimport contextlib\nimport glob\nimport os\nimport subprocess\nimport typing as tp\n\nfrom xonsh.built_ins import XSH\nfrom xonsh.cli_utils ...
diff --git a/news/fix-cd-home-no-os-environ.rst b/news/fix-cd-home-no-os-environ.rst new file mode 100644 index 0000000000..3a59ff4ca3 --- /dev/null +++ b/news/fix-cd-home-no-os-environ.rst @@ -0,0 +1,23 @@ +**Added:** + +* <news item> + +**Changed:** + +* <news item> + +**Deprecated:** + +* <news item> + +**Removed:**...
optuna__optuna-5110
Wrong logpdf for scaled truncated norm function (TPESampler) I think, I found a bug in the implementation of "logpdf(x,a,b,loc,scale)" in _truncnorm.py. This function is used for the Parzen estimator in the TPE Sampler with continuous values. I think this might lead to a wrong behavior of the TPESampler. ### Expecte...
[ { "content": "# This file contains the codes from SciPy project.\n#\n# Copyright (c) 2001-2002 Enthought, Inc. 2003-2022, SciPy Developers.\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\n# are...
[ { "content": "# This file contains the codes from SciPy project.\n#\n# Copyright (c) 2001-2002 Enthought, Inc. 2003-2022, SciPy Developers.\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\n# are...
diff --git a/optuna/samplers/_tpe/_truncnorm.py b/optuna/samplers/_tpe/_truncnorm.py index 3dd8e960fd..61b4aced53 100644 --- a/optuna/samplers/_tpe/_truncnorm.py +++ b/optuna/samplers/_tpe/_truncnorm.py @@ -226,7 +226,7 @@ def logpdf( x, a, b = np.atleast_1d(x, a, b) - out = _norm_logpdf(x) - _log_gauss_mas...
pallets__werkzeug-1032
HTML text can vanish in the Werkzeug interactive debugger (I feel like I might have raised this bug before, but I can’t find it if I have.) If you’re using the interactive debugger and you type a command includes something that looks like an HTML tag, it gets treated as literal HTML text. This causes it to disappear...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.debug.console\n ~~~~~~~~~~~~~~~~~~~~~~\n\n Interactive console support.\n\n :copyright: (c) 2014 by the Werkzeug Team, see AUTHORS for more details.\n :license: BSD.\n\"\"\"\nimport sys\nimport code\nfrom types import CodeType\n\nfrom werkz...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.debug.console\n ~~~~~~~~~~~~~~~~~~~~~~\n\n Interactive console support.\n\n :copyright: (c) 2014 by the Werkzeug Team, see AUTHORS for more details.\n :license: BSD.\n\"\"\"\nimport sys\nimport code\nfrom types import CodeType\n\nfrom werkz...
diff --git a/werkzeug/debug/console.py b/werkzeug/debug/console.py index 02a00298b..30e89063f 100644 --- a/werkzeug/debug/console.py +++ b/werkzeug/debug/console.py @@ -173,7 +173,7 @@ def runsource(self, source): del self.buffer[:] finally: output = ThreadedStream.fetch() - ...
networkx__networkx-1544
Added implementation of SimRank matrix of the graph.
[ { "content": "# Copyright (C) 2006-2013 by\n# Aric Hagberg <hagberg@lanl.gov>\n# Dan Schult <dschult@colgate.edu>\n# Pieter Swart <swart@lanl.gov>\n# All rights reserved.\n# BSD license.\nimport networkx as nx\n__author__ = \"\"\"\\n\"\"\".join(['Aric Hagberg <aric.hagberg@gmail.com>',\n ...
[ { "content": "# Copyright (C) 2006-2013 by\n# Aric Hagberg <hagberg@lanl.gov>\n# Dan Schult <dschult@colgate.edu>\n# Pieter Swart <swart@lanl.gov>\n# All rights reserved.\n# BSD license.\nimport networkx as nx\n__author__ = \"\"\"\\n\"\"\".join(['Aric Hagberg <aric.hagberg@gmail.com>',\n ...
diff --git a/networkx/relabel.py b/networkx/relabel.py index ee0334e6cb6..d00ba3a7015 100644 --- a/networkx/relabel.py +++ b/networkx/relabel.py @@ -107,6 +107,8 @@ def _relabel_inplace(G, mapping): new = mapping[old] except KeyError: continue + if new == old: + cont...
optuna__optuna-5054
Use `__future__.annotations` everywhere in the Optuna code base ### Motivation Optuna drops Python 3.6 from v3.1, so we can use `__future__.annotations`, which simplifies the code base. See [PEP 563](https://peps.python.org/pep-0563/), [PEP584](https://peps.python.org/pep-0584/), [PEP 585](https://peps.python.org/pe...
[ { "content": "from typing import Mapping\nfrom typing import Sequence\nfrom typing import Union\n\n\nJSONSerializable = Union[\n Mapping[str, \"JSONSerializable\"],\n Sequence[\"JSONSerializable\"],\n str,\n int,\n float,\n bool,\n None,\n]\n\n\n__all__ = [\"JSONSerializable\"]\n", "pat...
[ { "content": "from __future__ import annotations\n\nfrom typing import Mapping\nfrom typing import Sequence\nfrom typing import Union\n\n\nJSONSerializable = Union[\n Mapping[str, \"JSONSerializable\"],\n Sequence[\"JSONSerializable\"],\n str,\n int,\n float,\n bool,\n None,\n]\n\n__all__ =...
diff --git a/optuna/_typing.py b/optuna/_typing.py index 350af8cc51..fe8ebbb364 100644 --- a/optuna/_typing.py +++ b/optuna/_typing.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from typing import Mapping from typing import Sequence from typing import Union @@ -13,5 +15,4 @@ None, ] - __all__ = [...
horovod__horovod-1201
horovod.spark.run giving error **Environment:** 1. Framework: (TensorFlow, Keras, PyTorch, MXNet) Pytorch 2. Framework version: 0.4.1 3. Horovod version: 0.16.1 4. MPI version: 4.0.0 5. CUDA version: NA 6. NCCL version: NA 7. Python version: 3.6.8 8. OS and version: CentOS 7 9. Spark version: 2.2.1 **Checkl...
[ { "content": "# Copyright 2019 Uber Technologies, 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\...
[ { "content": "# Copyright 2019 Uber Technologies, 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\...
diff --git a/horovod/run/common/util/host_hash.py b/horovod/run/common/util/host_hash.py index 00492eae78..11ac7b7a5c 100644 --- a/horovod/run/common/util/host_hash.py +++ b/horovod/run/common/util/host_hash.py @@ -33,4 +33,6 @@ def _namespaces(): def host_hash(): hostname = socket.gethostname() ns = _namesp...
open-telemetry__opentelemetry-python-2016
Update OTLP HTTP port As per spec change here: https://github.com/open-telemetry/opentelemetry-specification/pull/1839 The OTLP HTTP port should be 4318.
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/exporter/opentelemetry-exporter-otlp-proto-http/setup.cfg b/exporter/opentelemetry-exporter-otlp-proto-http/setup.cfg index 38b82f42656..9ea3711965e 100644 --- a/exporter/opentelemetry-exporter-otlp-proto-http/setup.cfg +++ b/exporter/opentelemetry-exporter-otlp-proto-http/setup.cfg @@ -23,7 +23,7 @@ url =...
iterative__dvc-6683
alias `list` as `ls`? I have been reaching for `dvc ls` out of habit instead of `dvc list`. Should we introduce an alias for `dvc list`?
[ { "content": "import argparse\nimport logging\n\nfrom dvc.command import completion\nfrom dvc.command.base import CmdBaseNoRepo, append_doc_link\nfrom dvc.command.ls.ls_colors import LsColors\nfrom dvc.exceptions import DvcException\nfrom dvc.ui import ui\n\nlogger = logging.getLogger(__name__)\n\n\ndef _pretti...
[ { "content": "import argparse\nimport logging\n\nfrom dvc.command import completion\nfrom dvc.command.base import CmdBaseNoRepo, append_doc_link\nfrom dvc.command.ls.ls_colors import LsColors\nfrom dvc.exceptions import DvcException\nfrom dvc.ui import ui\n\nlogger = logging.getLogger(__name__)\n\n\ndef _pretti...
diff --git a/dvc/command/ls/__init__.py b/dvc/command/ls/__init__.py index a44877f037..1b2317c6fb 100644 --- a/dvc/command/ls/__init__.py +++ b/dvc/command/ls/__init__.py @@ -54,6 +54,7 @@ def add_parser(subparsers, parent_parser): ) list_parser = subparsers.add_parser( "list", + aliases=["ls"...
uclapi__uclapi-1001
OAuth Standards Compliance So it turns out that my OAuth 2.0 implementation violates section 4.2.2 of RFC 6749 by calling the UCL API User Token just a `token` and not an `access_token`. This breaks apps (such as Discourse) that rely on OAuth implementations actually being standards compliant. Whoopsidaisies!
[ { "content": "import json\nimport os\n\nimport redis\nfrom django.core import signing\nfrom django.core.serializers.json import DjangoJSONEncoder\nfrom django.core.signing import TimestampSigner\nfrom django.shortcuts import redirect, render\nfrom django.utils.http import quote\nfrom django.views.decorators.csr...
[ { "content": "import json\nimport os\n\nimport redis\nfrom django.core import signing\nfrom django.core.serializers.json import DjangoJSONEncoder\nfrom django.core.signing import TimestampSigner\nfrom django.shortcuts import redirect, render\nfrom django.utils.http import quote\nfrom django.views.decorators.csr...
diff --git a/backend/uclapi/oauth/views.py b/backend/uclapi/oauth/views.py index 75bef58cc..5d94e89d3 100644 --- a/backend/uclapi/oauth/views.py +++ b/backend/uclapi/oauth/views.py @@ -461,6 +461,7 @@ def token(request): "state": state, "client_id": app.client_id, "token": token.token, + ...
scverse__scanpy-2414
`TypeError: metaclass conflict`: matplotlib v3.7.0 is incompatible with scanpy - [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of scanpy. - [x] **Updated:** I have confirmed this bug exists on the master branch of scanpy. ### Minimal ...
[ { "content": "import warnings\nimport collections.abc as cabc\nfrom abc import ABC\nfrom functools import lru_cache\nfrom typing import Union, List, Sequence, Tuple, Collection, Optional, Callable\nimport anndata\n\nimport numpy as np\nimport matplotlib as mpl\nfrom matplotlib import pyplot as pl\nfrom matplotl...
[ { "content": "import warnings\nimport collections.abc as cabc\nfrom abc import ABC\nfrom functools import lru_cache\nfrom typing import Union, List, Sequence, Tuple, Collection, Optional, Callable\nimport anndata\n\nimport numpy as np\nimport matplotlib as mpl\nfrom matplotlib import pyplot as pl\nfrom matplotl...
diff --git a/scanpy/plotting/_utils.py b/scanpy/plotting/_utils.py index 5579d171b4..bd95e7bcff 100644 --- a/scanpy/plotting/_utils.py +++ b/scanpy/plotting/_utils.py @@ -32,7 +32,7 @@ VBound = Union[str, float, Callable[[Sequence[float]], float]] -class _AxesSubplot(Axes, axes.SubplotBase, ABC): +class _AxesSubpl...
hylang__hy-1977
`(name :under_scored)` returns `"under-scored"`... Why? I have the next code: ``` (setv sample :under_scored) (name sample) ``` Expected: ``` "under_scored" ``` Actually: ``` "under-scored" ``` At the same time, Clojure's name` returns `"under_scored"`. Please, fix it.
[ { "content": "# Copyright 2021 the authors.\n# This file is part of Hy, which is free software licensed under the Expat\n# license. See the LICENSE.\nfrom __future__ import unicode_literals\n\nfrom contextlib import contextmanager\nfrom math import isnan, isinf\nfrom hy import _initialize_env_var\nfrom hy.error...
[ { "content": "# Copyright 2021 the authors.\n# This file is part of Hy, which is free software licensed under the Expat\n# license. See the LICENSE.\nfrom __future__ import unicode_literals\n\nfrom contextlib import contextmanager\nfrom math import isnan, isinf\nfrom hy import _initialize_env_var\nfrom hy.error...
diff --git a/NEWS.rst b/NEWS.rst index 58489c08d..eade80dd7 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -3,10 +3,17 @@ Unreleased ============================== +Removals +------------------------------ +* `name` function has been removed from core. + Use `(. :keyword name)` and/or explicit calls to `unmangle` instead...
internetarchive__openlibrary-6594
[WIP] refactor: Reformat the openlibrary/ directory with black Subtask of #4776 Run `black` on ***only*** `openlibrary/` directory: ```console > black --skip-string-normalization openlibrary/ ``` **TODO:** - [x] Review the initial pass by `black` - [ ] List out any formatting which does not seem proper - [...
[ { "content": "\"\"\"Upstream customizations.\"\"\"\n\nimport datetime\nimport hashlib\nimport io\nimport json\nimport os.path\nimport random\n\nimport web\n\nfrom infogami import config\nfrom infogami.core import code as core\nfrom infogami.infobase import client\nfrom infogami.utils import delegate, app, types...
[ { "content": "\"\"\"Upstream customizations.\"\"\"\n\nimport datetime\nimport hashlib\nimport io\nimport json\nimport os.path\nimport random\n\nimport web\n\nfrom infogami import config\nfrom infogami.core import code as core\nfrom infogami.infobase import client\nfrom infogami.utils import delegate, app, types...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 27501bcf04a..47c671372d5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,8 +33,6 @@ repos: rev: 22.6.0 hooks: - id: black # See pyproject.toml for args - args: - - --diff - repo: https://g...
ansible__ansible-40863
homebrew_tap fails to tap caskroom/cask now. <!--- Verify first that your issue/request is not already reported on GitHub. THIS FORM WILL BE READ BY A MACHINE, COMPLETE ALL SECTIONS AS DESCRIBED. Also test if the latest release, and devel branch are affected too. ALWAYS add information AFTER (OUTSIDE) these html co...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Daniel Jaouen <dcj24@cornell.edu>\n# (c) 2016, Indrajit Raychaudhuri <irc+code@indrajit.com>\n#\n# Based on homebrew (Andrew Dunham <andrew@du.nham.ca>)\n#\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Daniel Jaouen <dcj24@cornell.edu>\n# (c) 2016, Indrajit Raychaudhuri <irc+code@indrajit.com>\n#\n# Based on homebrew (Andrew Dunham <andrew@du.nham.ca>)\n#\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl...
diff --git a/lib/ansible/modules/packaging/os/homebrew_tap.py b/lib/ansible/modules/packaging/os/homebrew_tap.py index 51c5acabcd9a4f..f3affe934ff818 100644 --- a/lib/ansible/modules/packaging/os/homebrew_tap.py +++ b/lib/ansible/modules/packaging/os/homebrew_tap.py @@ -111,7 +111,7 @@ def add_tap(module, brew_path, ta...
translate__pootle-5621
Stats are wrong for children where the child name is repeated in the childs descendants this is causing stats to foo
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nfrom django.db...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nfrom django.db...
diff --git a/pootle/apps/pootle_data/directory_data.py b/pootle/apps/pootle_data/directory_data.py index a8fee77295f..efb75056141 100644 --- a/pootle/apps/pootle_data/directory_data.py +++ b/pootle/apps/pootle_data/directory_data.py @@ -54,6 +54,5 @@ def get_children_stats(self, qs): return children def...
HypothesisWorks__hypothesis-1350
Python deployment did not remove RELEASE.rst In c216ddca8155cdb05053bcfe2ac51814447aac4f, which blocks further merges. @DRMacIver, I think cb84c3ad4dfdecfcf947ccd24bfdee111083645b shouldn't have taken out the `git rm RELEASE.rst`... AFAICT ea6bb819143d5c6b4e4c43aa2436a9f70d129872 would be a decent fix. (and is n...
[ { "content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2018 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f...
[ { "content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2018 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f...
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst deleted file mode 100644 index e4a5c20d59..0000000000 --- a/hypothesis-python/RELEASE.rst +++ /dev/null @@ -1,7 +0,0 @@ -RELEASE_TYPE: minor - -This release deprecates the use of :class:`~hypothesis.settings` as a -context manager, the use of wh...
open-mmlab__mmdetection-3627
Wrong class number for LVIS 1.0 dataset **Checklist** 1. I have searched related issues but cannot get the expected help. 2. The bug has not been fixed in the latest version. **Describe the bug** Wrong class number for LVIS 1.0 dataset **Reproduction** 1. What command or script did you run? N.A. 2. Did you ...
[ { "content": "_base_ = [\n '../_base_/models/mask_rcnn_r50_fpn.py',\n '../_base_/datasets/lvis_v1_instance.py',\n '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'\n]\nmodel = dict(\n roi_head=dict(\n bbox_head=dict(num_classes=1230), mask_head=dict(num_classes=1230)))\ntes...
[ { "content": "_base_ = [\n '../_base_/models/mask_rcnn_r50_fpn.py',\n '../_base_/datasets/lvis_v1_instance.py',\n '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'\n]\nmodel = dict(\n roi_head=dict(\n bbox_head=dict(num_classes=1203), mask_head=dict(num_classes=1203)))\ntes...
diff --git a/configs/lvis/README.md b/configs/lvis/README.md index 48a8bb65634..7b2d50592bb 100644 --- a/configs/lvis/README.md +++ b/configs/lvis/README.md @@ -36,7 +36,7 @@ | Backbone | Style | Lr schd | Mem (GB) | Inf time (fps) | box AP | mask AP | Download | | :-------------: | :-----: | :-----: | :--...
mitmproxy__mitmproxy-1904
ValueError: data must be bytes, but is str Hi , When i use 'e' to edit form , sometimes i get this . ``` ➜ ~ mitmproxy -b 192.168.1.2 -p 8080 Traceback (most recent call last): File "mitmproxy/tools/console/master.py", line 292, in run File "site-packages/urwid/main_loop.py", line 278, in run File...
[ { "content": "import re\nimport urwid\nfrom mitmproxy import exceptions\nfrom mitmproxy import flowfilter\nfrom mitmproxy.addons import script\nfrom mitmproxy.tools.console import common\nfrom mitmproxy.tools.console.grideditor import base\nfrom mitmproxy.tools.console.grideditor import col_text\nfrom mitmproxy...
[ { "content": "import re\nimport urwid\nfrom mitmproxy import exceptions\nfrom mitmproxy import flowfilter\nfrom mitmproxy.addons import script\nfrom mitmproxy.tools.console import common\nfrom mitmproxy.tools.console.grideditor import base\nfrom mitmproxy.tools.console.grideditor import col_text\nfrom mitmproxy...
diff --git a/mitmproxy/tools/console/grideditor/editors.py b/mitmproxy/tools/console/grideditor/editors.py index 1155407d16..2d24cf8624 100644 --- a/mitmproxy/tools/console/grideditor/editors.py +++ b/mitmproxy/tools/console/grideditor/editors.py @@ -65,8 +65,8 @@ def handle_key(self, key): class URLEncodedFormEditor(...
geopandas__geopandas-2106
ENH: Allow `hex` kwarg in GeoSeries.from_wkb #### Is your feature request related to a problem? With `GeoSeries.from_wkb` in shapely mode I get this error with a hex encoded geometry: ``` ~/.../lib/python3.8/site-packages/shapely/geos.py in read(self, data) 426 """Returns geometry from WKB""" 427...
[ { "content": "\"\"\"\nCompatibility shim for the vectorized geometry operations.\n\nUses PyGEOS if available/set, otherwise loops through Shapely geometries.\n\n\"\"\"\nimport warnings\n\nimport numpy as np\nimport pandas as pd\n\nimport shapely.geometry\nimport shapely.geos\nimport shapely.wkb\nimport shapely....
[ { "content": "\"\"\"\nCompatibility shim for the vectorized geometry operations.\n\nUses PyGEOS if available/set, otherwise loops through Shapely geometries.\n\n\"\"\"\nimport warnings\n\nimport numpy as np\nimport pandas as pd\n\nimport shapely.geometry\nimport shapely.geos\nimport shapely.wkb\nimport shapely....
diff --git a/geopandas/_vectorized.py b/geopandas/_vectorized.py index bd0fdd13bf..7569e37d11 100644 --- a/geopandas/_vectorized.py +++ b/geopandas/_vectorized.py @@ -169,7 +169,7 @@ def from_wkb(data): for geom in data: if not isna(geom) and len(geom): - geom = shapely.wkb.loads(geom) + ...
django__channels-1681
Test failures with in-memory layer. ``` tests/test_inmemorychannel.py::test_send_receive FAILED [ 65%] tests/test_inmemorychannel.py::test_send_capacity FAILED ...
[ { "content": "from setuptools import find_packages, setup\nfrom channels import __version__\n\nsetup(\n name='channels',\n version=__version__,\n url='http://github.com/django/channels',\n author='Django Software Foundation',\n author_email='foundation@djangoproject.com',\n description=\"Bring...
[ { "content": "from setuptools import find_packages, setup\nfrom channels import __version__\n\nsetup(\n name='channels',\n version=__version__,\n url='http://github.com/django/channels',\n author='Django Software Foundation',\n author_email='foundation@djangoproject.com',\n description=\"Bring...
diff --git a/docs/deploying.rst b/docs/deploying.rst index e3a63c957..80b00d1f3 100644 --- a/docs/deploying.rst +++ b/docs/deploying.rst @@ -25,9 +25,9 @@ Here's an example of what that ``asgi.py`` might look like: from django.conf.urls import url from django.core.asgi import get_asgi_application - # Fet...
kedro-org__kedro-3363
Improving shortname handling of --addons flag ## Description The shortnames we've allocated for the add ons fluctuate on whether they are plural or not. log vs logs, test vs tests. At the moment the short names are: `log,test,lint,data,docs,viz`. But many engineers instinctively think of `logs` rather than `log...
[ { "content": "\"\"\"kedro is a CLI for managing Kedro projects.\n\nThis module implements commands available from the kedro CLI for creating\nprojects.\n\"\"\"\nfrom __future__ import annotations\n\nimport os\nimport re\nimport shutil\nimport stat\nimport sys\nimport tempfile\nfrom collections import OrderedDic...
[ { "content": "\"\"\"kedro is a CLI for managing Kedro projects.\n\nThis module implements commands available from the kedro CLI for creating\nprojects.\n\"\"\"\nfrom __future__ import annotations\n\nimport os\nimport re\nimport shutil\nimport stat\nimport sys\nimport tempfile\nfrom collections import OrderedDic...
diff --git a/kedro/framework/cli/starters.py b/kedro/framework/cli/starters.py index 6c976d5817..4384ebc1fb 100644 --- a/kedro/framework/cli/starters.py +++ b/kedro/framework/cli/starters.py @@ -110,8 +110,11 @@ class KedroStarterSpec: # noqa: too-few-public-methods TOOLS_SHORTNAME_TO_NUMBER = { "lint": "1", ...
cal-itp__benefits-209
Secure Django's language cookie The following can be configured in [`settings.py`](https://github.com/cal-itp/benefits/blob/dev/benefits/settings.py) * [x] [`LANGUAGE_COOKIE_HTTPONLY`](https://docs.djangoproject.com/en/3.2/ref/settings/#language-cookie-httponly) = True (same as `SESSION_COOKIE_HTTPONLY`) * [x] [`LA...
[ { "content": "\"\"\"\nDjango settings for benefits project.\n\"\"\"\nimport os\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = os...
[ { "content": "\"\"\"\nDjango settings for benefits project.\n\"\"\"\nimport os\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = os...
diff --git a/benefits/settings.py b/benefits/settings.py index eed9f90447..d3e8e12584 100644 --- a/benefits/settings.py +++ b/benefits/settings.py @@ -142,6 +142,10 @@ LANGUAGE_CODE = "en" +LANGUAGE_COOKIE_HTTPONLY = True +LANGUAGE_COOKIE_SAMESITE = "Strict" +LANGUAGE_COOKIE_SECURE = True + LANGUAGES = [("en", "E...
ray-project__ray-8572
"lr_schedule" option ignored using torch framework and PPO algorithm <!--Please include [tune], [rllib], [autoscaler] etc. in the issue title if relevant--> *Ray version and other system information (Python version, TensorFlow version, OS):* - Ray: [0.9.0.dev0 (2c599dbf05e41e338920ee2fbe692658bcbec4dd)](https://s3-...
[ { "content": "import logging\n\nimport ray\nfrom ray.rllib.agents.a3c.a3c_torch_policy import apply_grad_clipping\nfrom ray.rllib.agents.ppo.ppo_tf_policy import postprocess_ppo_gae, \\\n setup_config\nfrom ray.rllib.evaluation.postprocessing import Postprocessing\nfrom ray.rllib.policy.sample_batch import S...
[ { "content": "import logging\n\nimport ray\nfrom ray.rllib.agents.a3c.a3c_torch_policy import apply_grad_clipping\nfrom ray.rllib.agents.ppo.ppo_tf_policy import postprocess_ppo_gae, \\\n setup_config\nfrom ray.rllib.evaluation.postprocessing import Postprocessing\nfrom ray.rllib.policy.sample_batch import S...
diff --git a/rllib/agents/ppo/ppo_torch_policy.py b/rllib/agents/ppo/ppo_torch_policy.py index 7229b251ee4dd..a878b70d8f143 100644 --- a/rllib/agents/ppo/ppo_torch_policy.py +++ b/rllib/agents/ppo/ppo_torch_policy.py @@ -223,4 +223,7 @@ def setup_mixins(policy, obs_space, action_space, config): extra_grad_process_...
lutris__lutris-4205
Lutris 0.5.10 fails to install .Net Framework 4.8 (error code 256) ### Bug description On Lutris 0.5.10, when trying to install dotnet48 intro a wine prefix, it will fail with error code 256 because the %AppData% environment variable is not being set. Downgrading to Lutris 0.5.9.1 does not have this issue, which I'...
[ { "content": "\"\"\"Wine commands for installers\"\"\"\n# pylint: disable=too-many-arguments\nimport os\nimport shlex\nimport time\n\nfrom lutris import runtime, settings\nfrom lutris.command import MonitoredCommand\nfrom lutris.config import LutrisConfig\nfrom lutris.runners import import_runner\nfrom lutris.u...
[ { "content": "\"\"\"Wine commands for installers\"\"\"\n# pylint: disable=too-many-arguments\nimport os\nimport shlex\nimport time\n\nfrom lutris import runtime, settings\nfrom lutris.command import MonitoredCommand\nfrom lutris.config import LutrisConfig\nfrom lutris.runners import import_runner\nfrom lutris.u...
diff --git a/lutris/runners/commands/wine.py b/lutris/runners/commands/wine.py index b9629829f8..babd1e42d3 100644 --- a/lutris/runners/commands/wine.py +++ b/lutris/runners/commands/wine.py @@ -299,7 +299,7 @@ def wineexec( # noqa: C901 wine.prelaunch() if blocking: - return system.execute(command_...
getsentry__sentry-python-388
should_hide_frame fails to consider __hide_traceback__ in any frame with a __name__ https://github.com/getsentry/sentry-python/blob/8b3de2c80e9c4bc23fe860855d63e6eb294e987d/sentry_sdk/utils.py#L211-L226 If `__name__` is in `frame.f_globals` and is a string, then no check for `__hide_traceback__` is ever performed, w...
[ { "content": "import os\nimport sys\nimport linecache\nimport logging\n\nfrom contextlib import contextmanager\nfrom datetime import datetime\n\nfrom sentry_sdk._compat import urlparse, text_type, implements_str, int_types, PY2\n\nif False:\n from typing import Any\n from typing import Callable\n from ...
[ { "content": "import os\nimport sys\nimport linecache\nimport logging\n\nfrom contextlib import contextmanager\nfrom datetime import datetime\n\nfrom sentry_sdk._compat import urlparse, text_type, implements_str, int_types, PY2\n\nif False:\n from typing import Any\n from typing import Callable\n from ...
diff --git a/sentry_sdk/utils.py b/sentry_sdk/utils.py index 8b8f68e999..117e183885 100644 --- a/sentry_sdk/utils.py +++ b/sentry_sdk/utils.py @@ -212,7 +212,8 @@ def should_hide_frame(frame): # type: (Any) -> bool try: mod = frame.f_globals["__name__"] - return mod.startswith("sentry_sdk.") +...
napari__napari-2789
Track layer track_id dtype overflow ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> When number of created tracks bigger than 2^16, rendering goes little crazy. Tracks rendered after id 2^16 crossing the entire image instead of appearing as limited size vectors. Editing the following p...
[ { "content": "from typing import Dict, List, Union\n\nimport numpy as np\nfrom scipy.sparse import coo_matrix\nfrom scipy.spatial import cKDTree\n\nfrom ...utils.translations import trans\nfrom ..utils.layer_utils import dataframe_to_properties\n\n\ndef connex(vertices: np.ndarray) -> list:\n \"\"\"Connectio...
[ { "content": "from typing import Dict, List, Union\n\nimport numpy as np\nfrom scipy.sparse import coo_matrix\nfrom scipy.spatial import cKDTree\n\nfrom ...utils.translations import trans\nfrom ..utils.layer_utils import dataframe_to_properties\n\n\ndef connex(vertices: np.ndarray) -> list:\n \"\"\"Connectio...
diff --git a/napari/layers/tracks/_track_utils.py b/napari/layers/tracks/_track_utils.py index 6c0d9e06f16..771aa45b7b4 100644 --- a/napari/layers/tracks/_track_utils.py +++ b/napari/layers/tracks/_track_utils.py @@ -182,7 +182,7 @@ def graph(self, graph: Dict[int, Union[int, List[int]]]): @property def track...
saleor__saleor-1118
ProductAttribute's method get_formfield_name should have allow_unicode set to True by default `ProductAttribute `method `get_formfield_name `should have `allow_unicode`set to True by default Currently `allow_unicode` is set to False and it leads to subtle issues, where `get_formfield_name` will return wrong name e.g....
[ { "content": "from __future__ import unicode_literals\n\nimport datetime\nfrom decimal import Decimal\n\nfrom django.conf import settings\nfrom django.contrib.postgres.fields import HStoreField\nfrom django.core.urlresolvers import reverse\nfrom django.core.validators import MinValueValidator, RegexValidator\nf...
[ { "content": "from __future__ import unicode_literals\n\nimport datetime\nfrom decimal import Decimal\n\nfrom django.conf import settings\nfrom django.contrib.postgres.fields import HStoreField\nfrom django.core.urlresolvers import reverse\nfrom django.core.validators import MinValueValidator, RegexValidator\nf...
diff --git a/saleor/product/models.py b/saleor/product/models.py index 5d5e7b11390..0868d9a1725 100644 --- a/saleor/product/models.py +++ b/saleor/product/models.py @@ -377,7 +377,7 @@ def __str__(self): return self.name def get_formfield_name(self): - return slugify('attribute-%s' % self.slug) +...
pyqtgraph__pyqtgraph-1045
PlotWidget.__getattr__ raises wrong exception type - but this has a simple fix `hasattr(widget, "some_non_existing_attribute")` raises `NameError` instead of returning `False` for instances of `PlotWidget`. I think that `PlotWidget.__getattr__` (in PlotWidget.py) should raise `AttributeError` instead of `NameError`, wh...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nDEPRECATED: The classes below are convenience classes that create a new window\ncontainting a single, specific widget. These classes are now unnecessary because\nit is possible to place any widget into its own window by simply calling its\nshow() method.\n\"\"\"\n...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nDEPRECATED: The classes below are convenience classes that create a new window\ncontainting a single, specific widget. These classes are now unnecessary because\nit is possible to place any widget into its own window by simply calling its\nshow() method.\n\"\"\"\n...
diff --git a/pyqtgraph/graphicsWindows.py b/pyqtgraph/graphicsWindows.py index b659868549..b6a321ee4f 100644 --- a/pyqtgraph/graphicsWindows.py +++ b/pyqtgraph/graphicsWindows.py @@ -45,10 +45,7 @@ def __init__(self, title=None, size=(800,600)): self.show() def __getattr__(self, attr): - ...
twisted__twisted-12101
twisted.web.server.Request.defaultContentType is missing type annotation MyPy assumes it's always `bytes`, but docs explain it can also be `None`, so really it should be `Optional[bytes]`.
[ { "content": "# -*- test-case-name: twisted.web.test.test_web -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nThis is a web server which integrates with the twisted.internet infrastructure.\n\n@var NOT_DONE_YET: A token value which L{twisted.web.resource.IResource.render...
[ { "content": "# -*- test-case-name: twisted.web.test.test_web -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nThis is a web server which integrates with the twisted.internet infrastructure.\n\n@var NOT_DONE_YET: A token value which L{twisted.web.resource.IResource.render...
diff --git a/src/twisted/newsfragments/11902.misc b/src/twisted/newsfragments/11902.misc new file mode 100644 index 00000000000..23e811507aa --- /dev/null +++ b/src/twisted/newsfragments/11902.misc @@ -0,0 +1 @@ +Change typing for twisted.web.server.Request.defaultContentType to allow None. diff --git a/src/twisted/web...
googleapis__google-cloud-python-94
AttributeError: url on Storage Exception when key not found When attempting to get a key that does not exist the exception for the `NotFoundError` is trying to reference `request.url` which does not exist. ``` py Traceback (most recent call last): [...] file_key = self.bucket.get_key(path) File "gcloud/storage...
[ { "content": "# TODO: Make these super useful.\n\nclass StorageError(Exception):\n pass\n\n\nclass ConnectionError(StorageError):\n\n def __init__(self, response, content):\n message = str(response) + content\n super(ConnectionError, self).__init__(message)\n\n\nclass NotFoundError(ConnectionError):\n\n...
[ { "content": "# TODO: Make these super useful.\n\nclass StorageError(Exception):\n pass\n\n\nclass ConnectionError(StorageError):\n\n def __init__(self, response, content):\n message = str(response) + content\n super(ConnectionError, self).__init__(message)\n\n\nclass NotFoundError(ConnectionError):\n\n...
diff --git a/gcloud/storage/exceptions.py b/gcloud/storage/exceptions.py index 1d23a96cfdb8..dff01204bc95 100644 --- a/gcloud/storage/exceptions.py +++ b/gcloud/storage/exceptions.py @@ -14,7 +14,7 @@ def __init__(self, response, content): class NotFoundError(ConnectionError): def __init__(self, response, content...
flairNLP__flair-1806
Inconsistent tokenizer use cause bad predictions ... **Describe the bug** I have a CSV training/test files that i use CSVClassificationCorpus to load and then train etc. The evaluate that runs after training works fine. Then i manually load the CSV file and for each line, i call Sentence(...) and then pass it to predi...
[ { "content": "import torch, flair\nimport logging\nimport re\n\nfrom abc import abstractmethod, ABC\n\nfrom collections import Counter\nfrom collections import defaultdict\n\nfrom deprecated import deprecated\nfrom flair.file_utils import Tqdm\nfrom operator import itemgetter\n\nfrom torch.utils.data import Dat...
[ { "content": "import torch, flair\nimport logging\nimport re\n\nfrom abc import abstractmethod, ABC\n\nfrom collections import Counter\nfrom collections import defaultdict\n\nfrom deprecated import deprecated\nfrom flair.file_utils import Tqdm\nfrom operator import itemgetter\n\nfrom torch.utils.data import Dat...
diff --git a/flair/data.py b/flair/data.py index 77d305a25d..bf1f80fd1d 100644 --- a/flair/data.py +++ b/flair/data.py @@ -529,7 +529,7 @@ class Sentence(DataPoint): def __init__( self, text: str = None, - use_tokenizer: Union[bool, Tokenizer] = False, + use_tokenizer: Union[bool, T...
flairNLP__flair-239
Bug in tokenizer? Here's a minimum viable code to reproduce: ``` from flair.data import Sentence from flair.models import SequenceTagger model = SequenceTagger.load("ner-ontonotes-fast") full_text = "\"In the 1960s and 1970s...\" Then came Thierry Mugler and Gianni Versace." sentence = Sentence(full_text, use...
[ { "content": "from setuptools import setup, find_packages\n\nsetup(\n name='flair',\n version='0.3.2',\n description='A very simple framework for state-of-the-art NLP',\n long_description=open(\"README.md\", encoding='utf-8').read(),\n long_description_content_type=\"text/markdown\",\n author=...
[ { "content": "from setuptools import setup, find_packages\n\nsetup(\n name='flair',\n version='0.3.2',\n description='A very simple framework for state-of-the-art NLP',\n long_description=open(\"README.md\", encoding='utf-8').read(),\n long_description_content_type=\"text/markdown\",\n author=...
diff --git a/setup.py b/setup.py index daffceda2a..d757cf3c7e 100644 --- a/setup.py +++ b/setup.py @@ -15,8 +15,8 @@ 'torch==0.4.1', 'gensim==3.4.0', 'typing==3.6.4', - 'tqdm==4.23.4', - 'segtok==1.5.6', + 'tqdm==4.26.0', + 'segtok==1.5.7', 'matplotlib==3....
xonsh__xonsh-1265
Amalgamate build on Anaconda.org fails It builds fine on my machine so I am not really sure what is going on here: https://anaconda.org/xonsh/xonsh/builds/403/0 ``` bash + python setup.py install --single-version-externally-managed --record=record.txt Traceback (most recent call last): File "setup.py", line 210, i...
[ { "content": "\"\"\"Module for platform-specific constants and implementations, as well as\ncompatibility layers to make use of the 'best' implementation available\non a platform.\n\"\"\"\nimport os\nimport sys\nimport pathlib\nimport platform\nimport functools\nimport subprocess\nimport importlib.util\n\nfrom ...
[ { "content": "\"\"\"Module for platform-specific constants and implementations, as well as\ncompatibility layers to make use of the 'best' implementation available\non a platform.\n\"\"\"\nimport os\nimport sys\nimport pathlib\nimport platform\nimport functools\nimport subprocess\nimport importlib.util\n\nfrom ...
diff --git a/xonsh/platform.py b/xonsh/platform.py index 81d5f6a455..81d648bf1f 100644 --- a/xonsh/platform.py +++ b/xonsh/platform.py @@ -69,7 +69,7 @@ def _has_pygments(): @functools.lru_cache(1) def pygments_version(): - """pygments.__version__ version if available, else Ǹone.""" + """pygments.__version__ ...
SciTools__cartopy-1132
Adjust `setup.py` to reflect PEP-518, instead of throwing a "you need cython" error. ### Description Fix `setup.py` to install `cython`, instead of giving the user an error. https://github.com/pypa/pip/issues/5761#issuecomment-418395650 https://www.python.org/dev/peps/pep-0518/ #### Code to reproduce On a...
[ { "content": "# (C) British Crown Copyright 2011 - 2018, Met Office\n#\n# This file is part of cartopy.\n#\n# cartopy is free software: you can redistribute it and/or modify it under\n# the terms of the GNU Lesser General Public License as published by the\n# Free Software Foundation, either version 3 of the Li...
[ { "content": "# (C) British Crown Copyright 2011 - 2018, Met Office\n#\n# This file is part of cartopy.\n#\n# cartopy is free software: you can redistribute it and/or modify it under\n# the terms of the GNU Lesser General Public License as published by the\n# Free Software Foundation, either version 3 of the Li...
diff --git a/MANIFEST.in b/MANIFEST.in index 68a876ff2..ff607c1a2 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,6 +3,7 @@ include CHANGES include COPYING* include INSTALL include README.rst +include pyproject.toml include requirements/*.txt include lib/cartopy/data/* include lib/cartopy/io/srtm.npz diff --git ...
conan-io__conan-3816
Conan crash if .count-files consist NULL-character conan version 1.8.0, Windows 7 x64 For some reason (maybe a crash), the .count-files in each conan package in the cache were corrupted and contained a unicode NULL character (https://www.fileformat.info/info/unicode/char/0000/index.htm). This led to a conan crash fo...
[ { "content": "import fasteners\nfrom conans.util.log import logger\nimport time\nfrom conans.util.files import save, load\nimport os\n\n\nclass NoLock(object):\n\n def __enter__(self):\n pass\n\n def __exit__(self, exc_type, exc_val, exc_tb): # @UnusedVariable\n pass\n\n\nclass SimpleLock(o...
[ { "content": "import fasteners\nfrom conans.util.log import logger\nimport time\nfrom conans.util.files import save, load\nimport os\n\n\nclass NoLock(object):\n\n def __enter__(self):\n pass\n\n def __exit__(self, exc_type, exc_val, exc_tb): # @UnusedVariable\n pass\n\n\nclass SimpleLock(o...
diff --git a/conans/util/locks.py b/conans/util/locks.py index 49b440aee02..70eed3c239d 100644 --- a/conans/util/locks.py +++ b/conans/util/locks.py @@ -60,7 +60,8 @@ def _info_locked(self): def _readers(self): try: return int(load(self._count_file)) - except IOError: + except (...
pyg-team__pytorch_geometric-7902
SetTransformerAggregation returns `nan` for an unconnected node. ### 🐛 Describe the bug When you use message passing with a `SetTransformerAggregation` and the input graph includes any number of nodes that are disconnected from the rest of the graph, the `SetTransformerAggregation` returns `nan` for those nodes. T...
[ { "content": "from typing import Optional\n\nimport torch\nfrom torch import Tensor\n\nfrom torch_geometric.experimental import disable_dynamic_shapes\nfrom torch_geometric.nn.aggr import Aggregation\nfrom torch_geometric.nn.aggr.utils import (\n PoolingByMultiheadAttention,\n SetAttentionBlock,\n)\n\n\nc...
[ { "content": "from typing import Optional\n\nimport torch\nfrom torch import Tensor\n\nfrom torch_geometric.experimental import disable_dynamic_shapes\nfrom torch_geometric.nn.aggr import Aggregation\nfrom torch_geometric.nn.aggr.utils import (\n PoolingByMultiheadAttention,\n SetAttentionBlock,\n)\n\n\nc...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b6eed65c68b..e9193a871d82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -85,6 +85,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Changed +- Fixed an issue where `SetTransformerAggregation` produced `NaN` values for isolates...
frappe__frappe-11637
Clearing attachment from web form causes error on save. ## Description of the issue When clearing an attachment from a web form, an error is returned and the attachment is not deleted from the file store. ## Context information (for bug reports) erpnext 13.x.x-develop frappe 13.x.x-develop ## Steps to reprod...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors\n# For license information, please see license.txt\n\nfrom __future__ import unicode_literals\n\nimport json\nimport os\n\nfrom six import iteritems\nfrom six.moves.urllib.parse import urlencode\n\nimport frappe\nfrom frappe impo...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors\n# For license information, please see license.txt\n\nfrom __future__ import unicode_literals\n\nimport json\nimport os\n\nfrom six import iteritems\nfrom six.moves.urllib.parse import urlencode\n\nimport frappe\nfrom frappe impo...
diff --git a/frappe/website/doctype/web_form/web_form.py b/frappe/website/doctype/web_form/web_form.py index ee2a31203a90..3b2c1a7839fa 100644 --- a/frappe/website/doctype/web_form/web_form.py +++ b/frappe/website/doctype/web_form/web_form.py @@ -457,7 +457,7 @@ def accept(web_form, data, docname=None, for_payment=Fals...
beeware__toga-998
Have tutorial 3 open up pybee.org by default **Is your feature request related to a problem? Please describe.** https://toga.readthedocs.io/en/latest/tutorial/tutorial-3.html shows a screenshot of pybee.org being opened, but the code defaults to github.com. **Describe the solution you'd like** Have the code direct...
[ { "content": "import toga\nfrom toga.style.pack import CENTER, COLUMN, ROW, Pack\n\n\nclass Graze(toga.App):\n def startup(self):\n self.main_window = toga.MainWindow(title=self.name)\n\n self.webview = toga.WebView(style=Pack(flex=1))\n self.url_input = toga.TextInput(\n init...
[ { "content": "import toga\nfrom toga.style.pack import CENTER, COLUMN, ROW, Pack\n\n\nclass Graze(toga.App):\n def startup(self):\n self.main_window = toga.MainWindow(title=self.name)\n\n self.webview = toga.WebView(style=Pack(flex=1))\n self.url_input = toga.TextInput(\n init...
diff --git a/examples/tutorial3/tutorial/app.py b/examples/tutorial3/tutorial/app.py index a2549920ba..ad006c3418 100644 --- a/examples/tutorial3/tutorial/app.py +++ b/examples/tutorial3/tutorial/app.py @@ -8,7 +8,7 @@ def startup(self): self.webview = toga.WebView(style=Pack(flex=1)) self.url_input...
nautobot__nautobot-327
404 error when attempting to delete a RelationshipAssociation from the list view <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reporting reproducible bugs. If you need assistance with Nautobot installation, or if you have a general question, please sta...
[ { "content": "import django_tables2 as tables\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.urls import reverse\nfrom django_tables2.utils import Accessor\n\nfrom nautobot.utilities.tables import (\n BaseTable,\n BooleanColumn,\n ButtonsCol...
[ { "content": "import django_tables2 as tables\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.urls import reverse\nfrom django_tables2.utils import Accessor\n\nfrom nautobot.utilities.tables import (\n BaseTable,\n BooleanColumn,\n ButtonsCol...
diff --git a/nautobot/extras/tables.py b/nautobot/extras/tables.py index 51b2903e092..7535a738ae1 100644 --- a/nautobot/extras/tables.py +++ b/nautobot/extras/tables.py @@ -409,7 +409,7 @@ class Meta(BaseTable.Meta): class RelationshipAssociationTable(BaseTable): pk = ToggleColumn() - actions = ButtonsColumn...
MycroftAI__mycroft-core-750
Typing error in recognize_google() methode In mycroft/stt/\_\_init\_\_.py line 74 : Replacing mistyped 's' parameter by self.lang fixed the problem.
[ { "content": "# Copyright 2016 Mycroft AI, Inc.\n#\n# This file is part of Mycroft Core.\n#\n# Mycroft Core 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 ...
[ { "content": "# Copyright 2016 Mycroft AI, Inc.\n#\n# This file is part of Mycroft Core.\n#\n# Mycroft Core 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 ...
diff --git a/mycroft/stt/__init__.py b/mycroft/stt/__init__.py index d6aa4736c8e7..0408d9cd3c98 100644 --- a/mycroft/stt/__init__.py +++ b/mycroft/stt/__init__.py @@ -71,7 +71,7 @@ def __init__(self): def execute(self, audio, language=None): self.lang = language or self.lang - return self.recogni...
obspy__obspy-3013
trigger_onset() fails if characteristic function does not drop below off-threshold before hitting the end of the characteristic function ObsPy: master branch, installed as `pip install -e .` Ubuntu 20.04 LTS Should `thr_on` be always less than `thr_off`, make a change to the `trigger_onset` function and throw an er...
[ { "content": "# -*- coding: utf-8 -*-\n# -------------------------------------------------------------------\n# Filename: trigger.py\n# Purpose: Python trigger/picker routines for seismology.\n# Author: Moritz Beyreuther, Tobias Megies\n# Email: moritz.beyreuther@geophysik.uni-muenchen.de\n#\n# Copyright ...
[ { "content": "# -*- coding: utf-8 -*-\n# -------------------------------------------------------------------\n# Filename: trigger.py\n# Purpose: Python trigger/picker routines for seismology.\n# Author: Moritz Beyreuther, Tobias Megies\n# Email: moritz.beyreuther@geophysik.uni-muenchen.de\n#\n# Copyright ...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 8240ab5601b..6eb156886e8 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -7,6 +7,10 @@ Changes: - obspy.io.wav: * fix writing of wav files with rescale=True and default width=None (see #3029) + - obspy.signal: + * trigger_onset(): fix a bug when trigger o...
locustio__locust-1839
OOM error with master/slaves setup (zeromq, windows) Hi ! ### Describe the bug An out of memory error occurs with ZeroMQ trying to allocate a crazy amount of memory in decoded_allocator, sometime up to several petabytes. This might very well be a ZeroMQ bug : ` OUT OF MEMORY (bundled\zeromq\src\decoder_allocator...
[ { "content": "# -*- coding: utf-8 -*-\nimport ast\nimport os\nimport re\nimport sys\n\nfrom setuptools import find_packages, setup\n\nROOT_PATH = os.path.abspath(os.path.dirname(__file__))\n\n# parse version from locust/__init__.py\n_version_re = re.compile(r\"__version__\\s+=\\s+(.*)\")\n_init_file = os.path.j...
[ { "content": "# -*- coding: utf-8 -*-\nimport ast\nimport os\nimport re\nimport sys\n\nfrom setuptools import find_packages, setup\n\nROOT_PATH = os.path.abspath(os.path.dirname(__file__))\n\n# parse version from locust/__init__.py\n_version_re = re.compile(r\"__version__\\s+=\\s+(.*)\")\n_init_file = os.path.j...
diff --git a/setup.py b/setup.py index 1be6cf9764..7faeb0a269 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ "Werkzeug>=2.0.0", "requests>=2.9.1", "msgpack>=0.6.2", - "pyzmq>=16.0.2", + "pyzmq>=22.2.1", "geventhttpclient>=1.4.4", "ConfigArgParse>=1.0", ...
vispy__vispy-245
glsl-sandbox-cube GL_DEPTH issue (Linux Python 2.7.6) I get the following issue when running glsl-sanbox-cube; setting `GL_DEPTH` doesn't seem to work. ``` Traceback (most recent call last): File "glsl-sandbox-cube.py", line 82, in on_initialize gloo.set_state(depth=True) File "/usr/local/lib/python2.7/dist-p...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nA GLSL sandbox application based on the spinning cube. Requires PySide\nor PyQt4.\n\"\"\"\n\nimport numpy as np\nfrom vispy import app, gloo, dataio\nfrom vispy.util.transforms import perspective, translate, rotate\n\n# Force using qt and tak...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nA GLSL sandbox application based on the spinning cube. Requires PySide\nor PyQt4.\n\"\"\"\n\nimport numpy as np\nfrom vispy import app, gloo, dataio\nfrom vispy.util.transforms import perspective, translate, rotate\n\n# Force using qt and tak...
diff --git a/examples/glsl-sandbox-cube.py b/examples/glsl-sandbox-cube.py index 4e593a4dd4..342a520b66 100644 --- a/examples/glsl-sandbox-cube.py +++ b/examples/glsl-sandbox-cube.py @@ -79,7 +79,7 @@ def __init__(self, **kwargs): def on_initialize(self, event): gloo.set_clear_color((1, 1, 1, 1)) - ...
spack__spack-4809
problem with xproto the xproto could be compile properly but while installing, i come across the following problem ``` ==> 'make' '-j8' /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in specs Making all in SIAddresses make[3]: Nothing to be done for `all'. make[3]: Nothing to...
[ { "content": "##############################################################################\n# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All righ...
[ { "content": "##############################################################################\n# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All righ...
diff --git a/var/spack/repos/builtin/packages/xproto/package.py b/var/spack/repos/builtin/packages/xproto/package.py index de91cf0c953c2e..2bb1df326cf6e0 100644 --- a/var/spack/repos/builtin/packages/xproto/package.py +++ b/var/spack/repos/builtin/packages/xproto/package.py @@ -43,3 +43,8 @@ class Xproto(AutotoolsPacka...
Lightning-AI__torchmetrics-1320
Iteration over a metric never ends ## 🐛 Bug If you try to iterate over a metric (by mistake in my case), it just spins forever, making it appear that the program is hung. I'm not sure internally to torchmetrics exactly why this behavior occurs and if it is desired, but it would be nice if it errored out or something,...
[ { "content": "# Copyright The PyTorch 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 ...
[ { "content": "# Copyright The PyTorch 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 ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index dffa2547dd1..47a729cd2fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed bug in `Metrictracker.best_metric` when `return_step=False` ([#1306](https://github.com/Lightni...
python-telegram-bot__python-telegram-bot-237
Bot stopps working after reconnect of system This error appears after some time of running. Because of some reason my wifi reconnects after some time and after this the bot dont get back to work. Any ideas to prevent this? I have to restart the bot every time this happens. ``` Exception in thread updater: Traceback (m...
[ { "content": "#!/usr/bin/env python\n# pylint: disable=no-name-in-module,unused-import\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2016\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or...
[ { "content": "#!/usr/bin/env python\n# pylint: disable=no-name-in-module,unused-import\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2016\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or...
diff --git a/telegram/utils/request.py b/telegram/utils/request.py index cac766a4d78..a9f14cc9dca 100644 --- a/telegram/utils/request.py +++ b/telegram/utils/request.py @@ -106,6 +106,9 @@ def decorator(*args, **kwargs): except HTTPException as error: raise NetworkError('HTTPException: {0!r}'.form...
web2py__web2py-1440
bug in paths solve: ``` diff git diff gluon/admin.py diff --git a/gluon/admin.py b/gluon/admin.py index 3eb3bc5..e0372ba 100644 --- a/gluon/admin.py +++ b/gluon/admin.py @@ -449,7 +449,7 @@ def create_missing_folders(): """ paths = (global_settings.gluon_parent, abspath( 'site-packages', gluon=True)...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n| This file is part of the web2py Web Framework\n| Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\n| License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nUtility functions for the Admin application\n-----------------------...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n| This file is part of the web2py Web Framework\n| Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\n| License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nUtility functions for the Admin application\n-----------------------...
diff --git a/gluon/admin.py b/gluon/admin.py index 3eb3bc54e..90b50c273 100644 --- a/gluon/admin.py +++ b/gluon/admin.py @@ -449,7 +449,7 @@ def create_missing_folders(): """ paths = (global_settings.gluon_parent, abspath( 'site-packages', gluon=True), '') - [add_path_first(path) for p in paths] +...
mne-tools__mne-bids-pipeline-734
When CSP is skipped, we don't provide the correct log message We **do** prepare a helpful log message but don't actually use it: https://github.com/mne-tools/mne-bids-pipeline/blob/05b72e82d4c36f1a81bd6424a4301974cd6d7f3b/mne_bids_pipeline/steps/sensor/_05_decoding_csp.py#L541-L549 The bug is in line 547, which sho...
[ { "content": "\"\"\"\nDecoding based on common spatial patterns (CSP).\n\"\"\"\n\nimport os.path as op\nfrom types import SimpleNamespace\nfrom typing import Dict, Optional, Tuple\n\nimport mne\nimport numpy as np\nimport pandas as pd\nimport matplotlib.transforms\nfrom mne.decoding import CSP, UnsupervisedSpat...
[ { "content": "\"\"\"\nDecoding based on common spatial patterns (CSP).\n\"\"\"\n\nimport os.path as op\nfrom types import SimpleNamespace\nfrom typing import Dict, Optional, Tuple\n\nimport mne\nimport numpy as np\nimport pandas as pd\nimport matplotlib.transforms\nfrom mne.decoding import CSP, UnsupervisedSpat...
diff --git a/docs/source/v1.3.md.inc b/docs/source/v1.3.md.inc index 1adefe61f..13de18a5d 100644 --- a/docs/source/v1.3.md.inc +++ b/docs/source/v1.3.md.inc @@ -1,6 +1,8 @@ ## v1.3.0 (unreleased) -[//]: # (### :new: New features & enhancements) +### :new: New features & enhancements + +- Provide a more helpful log m...
mne-tools__mne-bids-1156
MNE-BIDS 0.13 release A release of MNE-BIDS has been requested: https://mne.discourse.group/t/mne-bids-0-13-release-date/7291/2 Our last release has been in December 2022, so I feel like cutting a release now is reasonable. I'll migrate issues from the [0.13 milestone](https://github.com/mne-tools/mne-bids/milest...
[ { "content": "\"\"\"MNE software for easily interacting with BIDS compatible datasets.\"\"\"\n\n__version__ = \"0.13.dev0\"\nfrom mne_bids import commands\nfrom mne_bids.report import make_report\nfrom mne_bids.path import (\n BIDSPath,\n get_datatypes,\n get_entity_vals,\n print_dir_tree,\n get_...
[ { "content": "\"\"\"MNE software for easily interacting with BIDS compatible datasets.\"\"\"\n\n__version__ = \"0.13\"\nfrom mne_bids import commands\nfrom mne_bids.report import make_report\nfrom mne_bids.path import (\n BIDSPath,\n get_datatypes,\n get_entity_vals,\n print_dir_tree,\n get_entit...
diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 2009110e7..654cc897b 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -100,11 +100,11 @@ jobs: run: | python -m pip install .[full] python -c 'import mne_bids; print(mne...
facebookresearch__xformers-252
JIT scripting is broken # 🐛 Bug JIT scripting xformers (running commit 357545ae13948659db07428553155e1802ee15af) breaks with the following error: ```bash xformers/components/attention/attention_mask.py", line 128 def __add__(self, other): assert isinstance(other, type(self)) ...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n\nfrom typing import Optional, Type, TypeVar\n\nimport torch\n\nSelf = TypeVar(\"Self\", bound...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n\nfrom typing import Optional, Type, TypeVar\n\nimport torch\n\nSelf = TypeVar(\"Self\", bound...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ecc96eb8db..4f0e1092c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [0.0.x] - TBD...
paperless-ngx__paperless-ngx-4179
[BUG] Invalid variable detected for "doc_pk" ### Description Currently, it is not possible to use the new variable "doc_pk" in storage paths. An error is encountered "Invalid variable detected.". I would like to use this variable in my file naming options ![image](https://github.com/paperless-ngx/paperless-ngx/asse...
[ { "content": "import datetime\nimport math\nimport re\nimport zoneinfo\n\nimport magic\nfrom celery import states\nfrom django.conf import settings\nfrom django.contrib.auth.models import Group\nfrom django.contrib.auth.models import User\nfrom django.utils.text import slugify\nfrom django.utils.translation imp...
[ { "content": "import datetime\nimport math\nimport re\nimport zoneinfo\n\nimport magic\nfrom celery import states\nfrom django.conf import settings\nfrom django.contrib.auth.models import Group\nfrom django.contrib.auth.models import User\nfrom django.utils.text import slugify\nfrom django.utils.translation imp...
diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py index cf636c1d6a9..4858cfe05db 100644 --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -835,6 +835,7 @@ def validate_path(self, path): tag_list="tag_list", owner_username="someone", ...
mlflow__mlflow-9105
Remove useless `format` The following `format` calls are useless and should be rewritten as a string literal: https://github.com/mlflow/mlflow/blob/35453972f346bc46dbeadd9e82db586320f563ce/tests/sklearn/test_sklearn_autolog.py#L260-L262 https://github.com/mlflow/mlflow/blob/35453972f346bc46dbeadd9e82db586320f563...
[ { "content": "\"\"\"\nUsage\n-----\n\n.. code-block:: bash\n\n mlflow server --app-name basic-auth\n\"\"\"\n\nimport logging\nimport uuid\nimport re\nfrom typing import Callable, Dict, Optional, Any\n\nfrom flask import Flask, request, make_response, Response, flash, render_template_string\nimport sqlalchemy...
[ { "content": "\"\"\"\nUsage\n-----\n\n.. code-block:: bash\n\n mlflow server --app-name basic-auth\n\"\"\"\n\nimport logging\nimport uuid\nimport re\nfrom typing import Callable, Dict, Optional, Any\n\nfrom flask import Flask, request, make_response, Response, flash, render_template_string\nimport sqlalchemy...
diff --git a/mlflow/server/auth/__init__.py b/mlflow/server/auth/__init__.py index b6a871e7b12aa..e94ea84952483 100644 --- a/mlflow/server/auth/__init__.py +++ b/mlflow/server/auth/__init__.py @@ -419,8 +419,6 @@ def _before_request(): if is_unprotected_route(request.path): return - _user = request.a...
cornellius-gp__gpytorch-711
[Bug] TypeError when calling `backward` on `gpytorch.functions.logdet` # 🐛 Bug I think there's a missing `list()` in https://github.com/cornellius-gp/gpytorch/blob/master/gpytorch/functions/_inv_quad_log_det.py#L221. I'm not super familiar with gpytorch internals so hopefully this is correct -- if so, happy to con...
[ { "content": "#!/usr/bin/env python3\n\nimport torch\nfrom torch.autograd import Function\nfrom ..utils.lanczos import lanczos_tridiag_to_diag\nfrom ..utils.stochastic_lq import StochasticLQ\nfrom .. import settings\n\n\nclass InvQuadLogDet(Function):\n \"\"\"\n Given a PSD matrix A (or a batch of PSD mat...
[ { "content": "#!/usr/bin/env python3\n\nimport torch\nfrom torch.autograd import Function\nfrom ..utils.lanczos import lanczos_tridiag_to_diag\nfrom ..utils.stochastic_lq import StochasticLQ\nfrom .. import settings\n\n\nclass InvQuadLogDet(Function):\n \"\"\"\n Given a PSD matrix A (or a batch of PSD mat...
diff --git a/gpytorch/functions/_inv_quad_log_det.py b/gpytorch/functions/_inv_quad_log_det.py index 850986e18..0629f5b9a 100644 --- a/gpytorch/functions/_inv_quad_log_det.py +++ b/gpytorch/functions/_inv_quad_log_det.py @@ -218,6 +218,6 @@ def backward(ctx, inv_quad_grad_output, logdet_grad_output): if ctx.in...
pytorch__vision-7639
Toasted CI due to attempt at installing numpy-1.25.0rc1 which requires 3.9 Most CI jobs are red due to an installation issue (https://github.com/pytorch/vision/pull/5009) ``` Searching for numpy Reading https://pypi.org/simple/numpy/ Downloading https://files.pythonhosted.org/packages/26/de/437a60a69f7fd0c7...
[ { "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 8b8ddcde1b9..8f4b1c7612e 100644 --- a/setup.py +++ b/setup.py @@ -57,8 +57,10 @@ def write_version_file(): if os.getenv("PYTORCH_VERSION"): pytorch_dep += "==" + os.getenv("PYTORCH_VERSION") +numpy_dep = "numpy" if sys.version_info[:2] >= (3, 9) else "numpy < 1.25" + requ...
digitalfabrik__integreat-cms-802
Improve push notification form ### Motivation <!-- A clear and concise description of what the motivation for the new feature is, and what problem it is solving. --> ### Proposed Solution <!-- A clear and concise description of the feature you would like to add, and how it solves the motivating problem. --> - [...
[ { "content": "from django.db import models\nfrom django.utils import timezone\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom ..languages.language import Language\nfrom .push_notification import PushNotification\n\n\nclass PushNotificationTranslation(models.Model):\n \"\"\"\n Data model r...
[ { "content": "from django.db import models\nfrom django.utils import timezone\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom ..languages.language import Language\nfrom .push_notification import PushNotification\n\n\nclass PushNotificationTranslation(models.Model):\n \"\"\"\n Data model r...
diff --git a/src/cms/locale/de/LC_MESSAGES/django.po b/src/cms/locale/de/LC_MESSAGES/django.po index 15b9233bcf..03ea17cd4b 100644 --- a/src/cms/locale/de/LC_MESSAGES/django.po +++ b/src/cms/locale/de/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 1.0\n" "Report-Msgid-Bugs-To: \n" -"PO...
apple__coremltools-298
Why is six pinned to 1.10.0? Is there any reason for [six to be pinned to version 1.10.0](https://github.com/apple/coremltools/blob/master/setup.py#L44). This gives transitive dependency issues sometimes. /cc @mats-claassen
[ { "content": "#!/usr/bin/env python\n\nimport os\nfrom setuptools import setup\n\nREADME = os.path.join(os.getcwd(), \"README.rst\")\n\n\nwith open(README) as f:\n long_description = f.read()\n\nsetup(name='coremltools',\n version='2.0',\n description='Community Tools for CoreML',\n long_description...
[ { "content": "#!/usr/bin/env python\n\nimport os\nfrom setuptools import setup\n\nREADME = os.path.join(os.getcwd(), \"README.rst\")\n\n\nwith open(README) as f:\n long_description = f.read()\n\nsetup(name='coremltools',\n version='2.0',\n description='Community Tools for CoreML',\n long_description...
diff --git a/setup.py b/setup.py index cc640d6f1..34e714901 100755 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ install_requires=[ 'numpy >= 1.10.0', 'protobuf >= 3.1.0', - 'six==1.10.0' + 'six>=1.10.0' ], entry_points = { 'console_scripts': ['coremlconverter =...
cookiecutter__cookiecutter-django-2694
selective settings in context ## Description Change the settings_context processor to only pass a required subset of the settings variables instead of all. We could have a special settings variable called CONTEXT_SETTINGS and set as an array of settings variable names to pass to the templates, e.g. ['GOOGLE_ID', 'MY...
[ { "content": "from django.conf import settings\n\n\ndef settings_context(_request):\n return {\"settings\": settings}\n", "path": "{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/utils/context_processors.py" } ]
[ { "content": "from django.conf import settings\n\n\ndef settings_context(_request):\n \"\"\"Settings available by default to the templates context.\"\"\"\n # Note: we intentionally do NOT expose the entire settings\n # to prevent accidental leaking of sensitive information\n return {\"DEBUG\": setti...
diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/utils/context_processors.py b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/utils/context_processors.py index de405076f0..3c53514183 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/utils/context_processors.py...
mne-tools__mne-bids-1193
Q: Release? It would be good to cut a MNE-BIDS release before the MNE-Python 1.6 release because it looks like the `mne.io`->`mne._fiff` stuff isn't in the latest release (e.g., see [circleci main failure in MNE](https://app.circleci.com/pipelines/github/mne-tools/mne-python/21889/workflows/b613fb80-7a0e-4c45-b2cc-02b8...
[ { "content": "\"\"\"MNE software for easily interacting with BIDS compatible datasets.\"\"\"\n\n__version__ = \"0.14.dev0\"\nfrom mne_bids import commands\nfrom mne_bids.report import make_report\nfrom mne_bids.path import (\n BIDSPath,\n get_datatypes,\n get_entity_vals,\n print_dir_tree,\n get_...
[ { "content": "\"\"\"MNE software for easily interacting with BIDS compatible datasets.\"\"\"\n\n__version__ = \"0.14\"\nfrom mne_bids import commands\nfrom mne_bids.report import make_report\nfrom mne_bids.path import (\n BIDSPath,\n get_datatypes,\n get_entity_vals,\n print_dir_tree,\n get_entit...
diff --git a/doc/_static/versions.json b/doc/_static/versions.json index 61fc025b4..7225cce35 100644 --- a/doc/_static/versions.json +++ b/doc/_static/versions.json @@ -1,17 +1,22 @@ [ { - "name": "0.14 (devel)", + "name": "0.15 (devel)", "version": "dev", "url": "https://mne.tools...
celery__celery-6749
Pickling Retry instance is incorrect # Checklist - [x] I have verified that the issue exists against the `master` branch of Celery. - [ ] This has already been asked to the [discussion group](https://groups.google.com/forum/#!forum/celery-users) first. - [x] I have read the relevant section in the [contribution g...
[ { "content": "\"\"\"Celery error types.\n\nError Hierarchy\n===============\n\n- :exc:`Exception`\n - :exc:`celery.exceptions.CeleryError`\n - :exc:`~celery.exceptions.ImproperlyConfigured`\n - :exc:`~celery.exceptions.SecurityError`\n - :exc:`~celery.exceptions.TaskPredicate`\n ...
[ { "content": "\"\"\"Celery error types.\n\nError Hierarchy\n===============\n\n- :exc:`Exception`\n - :exc:`celery.exceptions.CeleryError`\n - :exc:`~celery.exceptions.ImproperlyConfigured`\n - :exc:`~celery.exceptions.SecurityError`\n - :exc:`~celery.exceptions.TaskPredicate`\n ...
diff --git a/celery/exceptions.py b/celery/exceptions.py index a30f460c69a..cc09d3f894c 100644 --- a/celery/exceptions.py +++ b/celery/exceptions.py @@ -180,7 +180,7 @@ def __str__(self): return f'Retry {self.humanize()}' def __reduce__(self): - return self.__class__, (self.message, self.excs, se...
ansible-collections__community.general-1383
Apache2 module workaround for Shibboleth needs updating ##### SUMMARY The workaround for Shibboleth previously added in [#20341](https://github.com/ansible/ansible/pull/20341) no longer works (on Debian 10) since the module *name* has meanwhile been changed from `shib2` (for which a workaround [currently exists](htt...
[ { "content": "#!/usr/bin/python\n# coding: utf-8 -*-\n\n# (c) 2013-2014, Christian Berendt <berendt@b1-systems.de>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENT...
[ { "content": "#!/usr/bin/python\n# coding: utf-8 -*-\n\n# (c) 2013-2014, Christian Berendt <berendt@b1-systems.de>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENT...
diff --git a/changelogs/fragments/1383-apache2-module-amend-shib-workaround.yaml b/changelogs/fragments/1383-apache2-module-amend-shib-workaround.yaml new file mode 100644 index 00000000000..ccd89b0121b --- /dev/null +++ b/changelogs/fragments/1383-apache2-module-amend-shib-workaround.yaml @@ -0,0 +1,2 @@ +bugfixes: +-...
pypa__pip-11904
Make the reference to packaging docs compatible with MyST-Parser 0.19+ This change is needed to build the documentation with Sphinx 6+, which currently pulls in MyST-Parser 1.0.0. The previous definition causes an error when run with MyST-Parser 0.19+: 'myst' cross-reference target not found: 'pypug:tutorials/inst...
[ { "content": "\"\"\"Automation using nox.\n\"\"\"\n\nimport argparse\nimport glob\nimport os\nimport shutil\nimport sys\nfrom pathlib import Path\nfrom typing import Iterator, List, Tuple\n\nimport nox\n\n# fmt: off\nsys.path.append(\".\")\nfrom tools import release # isort:skip # noqa\nsys.path.pop()\n# fmt:...
[ { "content": "\"\"\"Automation using nox.\n\"\"\"\n\nimport argparse\nimport glob\nimport os\nimport shutil\nimport sys\nfrom pathlib import Path\nfrom typing import Iterator, List, Tuple\n\nimport nox\n\n# fmt: off\nsys.path.append(\".\")\nfrom tools import release # isort:skip # noqa\nsys.path.pop()\n# fmt:...
diff --git a/docs/html/getting-started.md b/docs/html/getting-started.md index 0967b0eb99f..2b3f0bc9310 100644 --- a/docs/html/getting-started.md +++ b/docs/html/getting-started.md @@ -98,5 +98,5 @@ Successfully uninstalled sampleproject ## Next Steps It is recommended to learn about what virtual environments are a...
googleapis__google-auth-library-python-697
Missing pyOpenSSL Dependency Thanks for stopping by to let us know something could be better! **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. Please run ...
[ { "content": "# Copyright 2014 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
[ { "content": "# Copyright 2014 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
diff --git a/setup.py b/setup.py index 0df0a81ec..055fcabfd 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,10 @@ "six>=1.9.0", ) -extras = {"aiohttp": "aiohttp >= 3.6.2, < 4.0.0dev; python_version>='3.6'"} +extras = { + "aiohttp": "aiohttp >= 3.6.2, < 4.0.0dev; python_version>='3.6'", + "pyopenssl": "p...
weecology__retriever-677
Download only fails for `gwdd` ``` ethan@gandalf:~$ retriever download gwdd => Installing Zanne et al. Global wood density database. Creating database GWDD... Couldn't create database ('NoneType' object has no attribute 'execute'). Trying to continue anyway. 'table_name' ``` And the file doesn't appear. From `try_ins...
[ { "content": "#retriever\n\"\"\"Retriever script for Zanne et al. Global wood density database.\n\n\"\"\"\nfrom builtins import str\nfrom builtins import range\n\nimport os\nimport sys\nimport xlrd\nfrom retriever.lib.templates import Script\nfrom retriever.lib.models import Table\nfrom retriever.lib.excel impo...
[ { "content": "#retriever\n\"\"\"Retriever script for Zanne et al. Global wood density database.\n\n\"\"\"\nfrom builtins import str\nfrom builtins import range\n\nimport os\nimport sys\nimport xlrd\nfrom retriever.lib.templates import Script\nfrom retriever.lib.models import Table\nfrom retriever.lib.excel impo...
diff --git a/scripts/gwdd.py b/scripts/gwdd.py index 6c9226458..de9e3a3cc 100644 --- a/scripts/gwdd.py +++ b/scripts/gwdd.py @@ -117,7 +117,8 @@ def format_value(s): self.engine.table = table self.engine.create_table() self.engine.add_to_table(data) - + self.engine.find_file("G...
matrix-org__synapse-11690
Add a capabilties flag for MSC3440 Per https://github.com/matrix-org/matrix-doc/commit/fc81bbd836955876c931c95277249981b3e2778c
[ { "content": "# Copyright 2019 New Vector\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
[ { "content": "# Copyright 2019 New Vector\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
diff --git a/changelog.d/11690.misc b/changelog.d/11690.misc new file mode 100644 index 000000000000..76cd28686202 --- /dev/null +++ b/changelog.d/11690.misc @@ -0,0 +1 @@ +Update the `/capabilities` response to include whether support for [MSC3440](https://github.com/matrix-org/matrix-doc/pull/3440) is available. diff...
pypa__setuptools-3900
[BUG] Install fails with `use_2to3 is invalid` error ### setuptools version 67.7.0 ### Python version 3.8 ### OS Ubuntu 22.04.2 LTS ### Additional environment information Use of `pip` 23.1 is required for the reproducer given, since it relies on `--no-binary` attempting to build a wheel. Additiona...
[ { "content": "__all__ = ['Distribution']\n\nimport io\nimport sys\nimport re\nimport os\nimport numbers\nimport distutils.log\nimport distutils.core\nimport distutils.cmd\nimport distutils.dist\nimport distutils.command\nfrom distutils.util import strtobool\nfrom distutils.debug import DEBUG\nfrom distutils.fan...
[ { "content": "__all__ = ['Distribution']\n\nimport io\nimport sys\nimport re\nimport os\nimport numbers\nimport distutils.log\nimport distutils.core\nimport distutils.cmd\nimport distutils.dist\nimport distutils.command\nfrom distutils.util import strtobool\nfrom distutils.debug import DEBUG\nfrom distutils.fan...
diff --git a/changelog.d/3898.misc.rst b/changelog.d/3898.misc.rst new file mode 100644 index 0000000000..d5f987b06c --- /dev/null +++ b/changelog.d/3898.misc.rst @@ -0,0 +1 @@ +Fixes setuptools.dist:invalid_unless_false when value is false don't raise error -- by :user:`jammarher` \ No newline at end of file diff --gi...
nipy__nipype-2027
ICA_AROMA() not working ### Summary The newly released version 0.13.0 has a ICA_AROMA() interface defined in the fsl module but although the AROMA is executing correctly, it is throwing an error when passing the output of a node that contains the interface of the AROMA module to another node. ### Actual behavior ...
[ { "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\"\"\"This commandline module provides classes for interfacing with the\n`ICA-AROMA.py<https://github.com/rhr-pruim/ICA-AROMA>`_ command line tool.\n Chan...
[ { "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\"\"\"This commandline module provides classes for interfacing with the\n`ICA-AROMA.py<https://github.com/rhr-pruim/ICA-AROMA>`_ command line tool.\n Chan...
diff --git a/nipype/interfaces/fsl/ICA_AROMA.py b/nipype/interfaces/fsl/ICA_AROMA.py index 764c71a475..a93dc7f37c 100644 --- a/nipype/interfaces/fsl/ICA_AROMA.py +++ b/nipype/interfaces/fsl/ICA_AROMA.py @@ -107,6 +107,7 @@ class ICA_AROMA(CommandLine): output_spec = ICA_AROMAOutputSpec def _list_outputs(sel...
getmoto__moto-1817
CloudFormation default resources does not include AWS::Partition Parsing CloudFormation templates generated by [Serverless](www.serverless.com) result in a KeyError: 'AWS::Partition' being thrown. This is caused by Serverless using the AWS::Partition resource which is not defined. The following gist is an example of...
[ { "content": "from __future__ import unicode_literals\nimport collections\nimport functools\nimport logging\nimport copy\nimport warnings\nimport re\n\nfrom moto.autoscaling import models as autoscaling_models\nfrom moto.awslambda import models as lambda_models\nfrom moto.batch import models as batch_models\nfr...
[ { "content": "from __future__ import unicode_literals\nimport collections\nimport functools\nimport logging\nimport copy\nimport warnings\nimport re\n\nfrom moto.autoscaling import models as autoscaling_models\nfrom moto.awslambda import models as lambda_models\nfrom moto.batch import models as batch_models\nfr...
diff --git a/moto/cloudformation/parsing.py b/moto/cloudformation/parsing.py index c4059a06bc0a..35b05d1013bc 100644 --- a/moto/cloudformation/parsing.py +++ b/moto/cloudformation/parsing.py @@ -387,6 +387,7 @@ def __init__(self, stack_id, stack_name, parameters, tags, region_name, template "AWS::StackName...
urllib3__urllib3-2342
Possible bug in securetransport _cert_array_from_pem() error handling While working on an unrelated change, I noticed this line, which *seems* to miss a `raise` after the free in the `except` block. I may be wrong; I didn't try at all to understand what the code does, it just looks wrong to me so thought I'd report it....
[ { "content": "\"\"\"\nLow-level helpers for the SecureTransport bindings.\n\nThese are Python functions that are not directly related to the high-level APIs\nbut are necessary to get them to work. They include a whole bunch of low-level\nCoreFoundation messing about and memory management. The concerns in this m...
[ { "content": "\"\"\"\nLow-level helpers for the SecureTransport bindings.\n\nThese are Python functions that are not directly related to the high-level APIs\nbut are necessary to get them to work. They include a whole bunch of low-level\nCoreFoundation messing about and memory management. The concerns in this m...
diff --git a/src/urllib3/contrib/_securetransport/low_level.py b/src/urllib3/contrib/_securetransport/low_level.py index 733e103008..3d1d708889 100644 --- a/src/urllib3/contrib/_securetransport/low_level.py +++ b/src/urllib3/contrib/_securetransport/low_level.py @@ -202,6 +202,7 @@ def _cert_array_from_pem(pem_bundle: ...
tensorflow__tensor2tensor-1556
AttributeError: 'NoneType' object has no attribute'std_server_protocol' ### Description After I succeed in running a mnist demo on one machine with 8 GPUs in a single docker, I try to do distribute training on 2 machines with dockers。 I followed the examples of sync training in [distributed Training](https://tensorf...
[ { "content": "# coding=utf-8\n# Copyright 2019 The Tensor2Tensor Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
[ { "content": "# coding=utf-8\n# Copyright 2019 The Tensor2Tensor Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
diff --git a/tensor2tensor/utils/trainer_lib.py b/tensor2tensor/utils/trainer_lib.py index 2788bbd09..f6016cfbb 100644 --- a/tensor2tensor/utils/trainer_lib.py +++ b/tensor2tensor/utils/trainer_lib.py @@ -532,7 +532,7 @@ def run_std_server(self): config.cluster_spec, job_name=config.task_type, ...
internetarchive__openlibrary-8318
Rename merge queue files for consistency ### Short Summary: Refactor merge request table such that there is more parity between the JS and HTML files. ### Background: Names of files related to the librarian merge queue have become inconsistent over time: #### Current file names | Component | JS filename | HTML...
[ { "content": "\"\"\"Librarian Edits\n\"\"\"\n\nimport json\nimport web\n\nfrom openlibrary import accounts\nfrom openlibrary.core.edits import CommunityEditsQueue, get_status_for_view\nfrom infogami.utils import delegate\nfrom infogami.utils.view import render_template\n\n\ndef response(status='ok', **kwargs):\...
[ { "content": "\"\"\"Librarian Edits\n\"\"\"\n\nimport json\nimport web\n\nfrom openlibrary import accounts\nfrom openlibrary.core.edits import CommunityEditsQueue, get_status_for_view\nfrom infogami.utils import delegate\nfrom infogami.utils.view import render_template\n\n\ndef response(status='ok', **kwargs):\...
diff --git a/openlibrary/plugins/openlibrary/js/merge-request-table/LibrarianQueue.js b/openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestTable.js similarity index 65% rename from openlibrary/plugins/openlibrary/js/merge-request-table/LibrarianQueue.js rename to openlibrary/plugins/openlibrary/js/merge...
zulip__zulip-5385
emails: Remove whitespace caused by jinja2 controls in non-HTML templates. Jinja2 control tags like `{% name %}` add spaces and newlines to the body of plaintext emails. Jinja2 can be configured to strip this whitespace, and we should do so for our plaintext emails. Some notes: * This builds on #5248 (so if that ha...
[ { "content": "from __future__ import absolute_import\n# Django settings for zulip project.\n########################################################################\n# Here's how settings for the Zulip project work:\n#\n# * settings.py contains non-site-specific and settings configuration\n# for the Zulip Djang...
[ { "content": "from __future__ import absolute_import\n# Django settings for zulip project.\n########################################################################\n# Here's how settings for the Zulip project work:\n#\n# * settings.py contains non-site-specific and settings configuration\n# for the Zulip Djang...
diff --git a/zerver/views/test_emails.py b/zerver/views/test_emails.py index f50b30ecbba8a..bfdc770f6049a 100755 --- a/zerver/views/test_emails.py +++ b/zerver/views/test_emails.py @@ -48,6 +48,7 @@ def email_page(request): }, 'referrer_name': 'Road Runner', 'referrer_email': 'runner@acme.com...
biolab__orange3-2649
Scatter Plot: always automatically sends selection ##### Orange version since 3.3.7 (or maybe since one of previous versions) ##### Expected behavior Scatter Plot automatically sends selection only when the checkbox **Send automatically** is checked. ##### Actual behavior It always sends selection. ##...
[ { "content": "import numpy as np\nimport scipy.sparse as sp\n\nfrom AnyQt.QtCore import Qt, QTimer\nfrom AnyQt.QtGui import QPen, QPalette\nfrom AnyQt.QtWidgets import QApplication\n\nfrom sklearn.neighbors import NearestNeighbors\nfrom sklearn.metrics import r2_score\n\nimport Orange\nfrom Orange.data import T...
[ { "content": "import numpy as np\nimport scipy.sparse as sp\n\nfrom AnyQt.QtCore import Qt, QTimer\nfrom AnyQt.QtGui import QPen, QPalette\nfrom AnyQt.QtWidgets import QApplication\n\nfrom sklearn.neighbors import NearestNeighbors\nfrom sklearn.metrics import r2_score\n\nimport Orange\nfrom Orange.data import T...
diff --git a/Orange/widgets/visualize/owscatterplot.py b/Orange/widgets/visualize/owscatterplot.py index 7a88a8d993e..0a29ee556fd 100644 --- a/Orange/widgets/visualize/owscatterplot.py +++ b/Orange/widgets/visualize/owscatterplot.py @@ -425,7 +425,7 @@ def update_graph(self, reset_view=True, **_): self.graph.u...
localstack__localstack-4075
Support ruby2.7 runtime AWS supports the following Ruby runtimes: <!--StartFragment--> Name | Identifier | SDK for Ruby | Operating system -- | -- | -- | -- Ruby 2.7 | ruby2.7 | 3.0.1 | Amazon Linux 2 Ruby 2.5 | ruby2.5 | 3.0.1 | Amazon Linux <!--EndFragment--> Currently, `localstack/lambda` only contains ...
[ { "content": "import os\nfrom collections import defaultdict\nfrom localstack.utils.common import to_str\n\n# Lambda runtime constants\nLAMBDA_RUNTIME_PYTHON27 = 'python2.7'\nLAMBDA_RUNTIME_PYTHON36 = 'python3.6'\nLAMBDA_RUNTIME_PYTHON37 = 'python3.7'\nLAMBDA_RUNTIME_PYTHON38 = 'python3.8'\nLAMBDA_RUNTIME_NODEJ...
[ { "content": "import os\nfrom collections import defaultdict\nfrom localstack.utils.common import to_str\n\n# Lambda runtime constants\nLAMBDA_RUNTIME_PYTHON27 = 'python2.7'\nLAMBDA_RUNTIME_PYTHON36 = 'python3.6'\nLAMBDA_RUNTIME_PYTHON37 = 'python3.7'\nLAMBDA_RUNTIME_PYTHON38 = 'python3.8'\nLAMBDA_RUNTIME_NODEJ...
diff --git a/Makefile b/Makefile index 1c684a5c14082..475584da92fd2 100644 --- a/Makefile +++ b/Makefile @@ -165,6 +165,7 @@ ci-build-prepare: make init nohup docker pull lambci/lambda:20191117-nodejs8.10 > /dev/null & nohup docker pull lambci/lambda:20191117-ruby2.5 > /dev/null & + nohup docker pull lambci/lambd...
pypa__pipenv-2056
Only depend on requests[security] and ordereddict for Python 2.6 We're looking into vendoring pipenv to help with managing environments in the Firefox build systems, and to assist with upgrading from Python 2.7 to Python 3.5+ According to the dependencies, `requests[security]` and `ordereddict` are required for Pyth...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport codecs\nimport os\nimport sys\nfrom shutil import rmtree\n\nfrom setuptools import find_packages, setup, Command\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport codecs\nimport os\nimport sys\nfrom shutil import rmtree\n\nfrom setuptools import find_packages, setup, Command\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:...
diff --git a/setup.py b/setup.py index 996dc9987a..50f1a91bc9 100644 --- a/setup.py +++ b/setup.py @@ -28,8 +28,8 @@ 'virtualenv-clone>=0.2.5', 'virtualenv', 'pathlib2==2.1.0;python_version<"3.4"', - 'requests[security];python_version<"3.0"', - 'ordereddict;python_version<"3.0"', + 'requests[sec...
python__python-docs-es-1714
Translate 'library/http.server.po' This needs to reach 100% translated. The rendered version of this file will be available at https://docs.python.org/es/3.10/library/http.server.html once translated. Meanwhile, the English version is shown. Current stats for `library/http.server.po`: * Fuzzy: 4 * Percent translated...
[ { "content": "import os\nimport re\nimport sys\nfrom typing import Dict, Tuple\n\nimport polib\n\nVERBOSE = False\nDEBUG = False\nSKIP_TRANSLATED_ENTRIES = True\n\ntry:\n from deep_translator import GoogleTranslator\nexcept ImportError:\n print(\"Error: This util script needs `deep_translator` to be insta...
[ { "content": "import os\nimport re\nimport sys\nfrom typing import Dict, Tuple\n\nimport polib\n\nVERBOSE = False\nDEBUG = False\nSKIP_TRANSLATED_ENTRIES = True\n\ntry:\n from deep_translator import GoogleTranslator\nexcept ImportError:\n print(\"Error: This util script needs `deep_translator` to be insta...
diff --git a/library/http.server.po b/library/http.server.po index 99a558d127..029c4cea30 100644 --- a/library/http.server.po +++ b/library/http.server.po @@ -13,12 +13,12 @@ msgstr "" "POT-Creation-Date: 2021-10-16 21:42+0200\n" "PO-Revision-Date: 2021-08-07 22:01+0200\n" "Last-Translator: Cristián Maureira-Fredes ...
freedomofpress__securedrop-5615
test_submit_message and test_submit_file failure on Focal container ## Description On `dev_focal` branch, if we run tests, we will see errors related to gpg decryption operation. ## Steps to Reproduce - [ ] `make test-focal` ## Expected Behavior - [ ] all tests should pass ## Actual Behavior `tes...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom distutils.version import StrictVersion\nfrom typing import Optional\n\nimport pretty_bad_protocol as gnupg\nimport os\nimport io\nimport re\nimport scrypt\nfrom random import SystemRandom\n\nfrom base64 import b32encode\nfrom datetime import date\nfrom flask import ...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom distutils.version import StrictVersion\nfrom typing import Optional\n\nimport pretty_bad_protocol as gnupg\nimport os\nimport io\nimport re\nimport scrypt\nfrom random import SystemRandom\n\nfrom base64 import b32encode\nfrom datetime import date\nfrom flask import ...
diff --git a/securedrop/crypto_util.py b/securedrop/crypto_util.py index f4d0213408..142d9a1a8c 100644 --- a/securedrop/crypto_util.py +++ b/securedrop/crypto_util.py @@ -23,6 +23,9 @@ from models import Source +# monkey patch to work with Focal gnupg. +# https://github.com/isislovecruft/python-gnupg/issues/250 +g...
iterative__dvc-4066
.dvcignore - new lines throw error, expected str instance, NoneType found. ``` DVC version: 1.0.0b2 Python version: 3.7.6 Platform: Ubuntu 18.04.4 LTS Package: dvc_1.0.0b2_amd64.deb Filesystem: ceph-fuse ``` - **Issue:** After installing DVC v1.0.0b2, all DVC commands fail with the following error: ` ERROR: une...
[ { "content": "import logging\nimport os\nimport re\nfrom itertools import groupby\n\nfrom funcy import cached_property\nfrom pathspec.patterns import GitWildMatchPattern\nfrom pathspec.util import normalize_file\n\nfrom dvc.path_info import PathInfo\nfrom dvc.scm.tree import BaseTree\nfrom dvc.system import Sys...
[ { "content": "import logging\nimport os\nimport re\nfrom itertools import groupby\n\nfrom funcy import cached_property\nfrom pathspec.patterns import GitWildMatchPattern\nfrom pathspec.util import normalize_file\n\nfrom dvc.path_info import PathInfo\nfrom dvc.scm.tree import BaseTree\nfrom dvc.system import Sys...
diff --git a/dvc/ignore.py b/dvc/ignore.py index 2ec841349d..d11c430538 100644 --- a/dvc/ignore.py +++ b/dvc/ignore.py @@ -39,6 +39,7 @@ def __init__(self, ignore_file_path, tree): for ignore, group in groupby( regex_pattern_list, lambda x: x[1] ) + ...
PlasmaPy__PlasmaPy-1122
Pickle-able Particles (and other objects, for parallelization) My draft Thomson scattering fitting function (#974) is currently restricted to using 1 CPU core because the underlying fit function (`thomson.spectral_density`) contains instances of the `Particle` object, which is not pickle-able because it includes a lamb...
[ { "content": "\"\"\"\nModule for loading atomic data for elements from\n:file:`plasmapy/particles/data/elements.json`.\n\nThe periodic tabla data is from: http://periodic.lanl.gov/index.shtml\n\n.. attention::\n This module is not part of PlasmaPy's public API.\n\"\"\"\n__all__ = []\n\nimport astropy.units a...
[ { "content": "\"\"\"\nModule for loading atomic data for elements from\n:file:`plasmapy/particles/data/elements.json`.\n\nThe periodic tabla data is from: http://periodic.lanl.gov/index.shtml\n\n.. attention::\n This module is not part of PlasmaPy's public API.\n\"\"\"\n__all__ = []\n\nimport astropy.units a...
diff --git a/changelog/1122.bugfix.rst b/changelog/1122.bugfix.rst new file mode 100644 index 0000000000..705bd6aa73 --- /dev/null +++ b/changelog/1122.bugfix.rst @@ -0,0 +1 @@ +Made `~plasmapy.particles.Particle` instances pickleable. diff --git a/plasmapy/particles/elements.py b/plasmapy/particles/elements.py index d...
mozilla__telemetry-analysis-service-413
ImportError: No module named 'atmo.clusters.jobs' ``` app@a898b116953a:~$ ./manage.py update_clusters Traceback (most recent call last): File "./manage.py", line 11, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 353, i...
[ { "content": "# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this\n# file, you can obtain one at http://mozilla.org/MPL/2.0/.\nfrom django.core.management.base import BaseCommand\n\nfrom ...jobs import update_clusters\n\n\n...
[ { "content": "# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this\n# file, you can obtain one at http://mozilla.org/MPL/2.0/.\nfrom django.core.management.base import BaseCommand\n\nfrom ...tasks import update_clusters\n\n\...
diff --git a/atmo/clusters/management/commands/update_clusters.py b/atmo/clusters/management/commands/update_clusters.py index e1024a48..53f1935a 100644 --- a/atmo/clusters/management/commands/update_clusters.py +++ b/atmo/clusters/management/commands/update_clusters.py @@ -3,7 +3,7 @@ # file, you can obtain one at ht...
dbt-labs__dbt-core-9068
[CT-3377] [Regression] `dbt deps` fails on tarball dependencies ### Is this a regression in a recent version of dbt-core? - [X] I believe this is a regression in dbt-core functionality - [X] I have searched the existing issues, and I could not find an existing issue for this regression ### Current Behavior When `dep...
[ { "content": "from typing import Dict\n\nfrom dbt.contracts.project import RegistryPackageMetadata, TarballPackage\nfrom dbt.deps.base import PinnedPackage, UnpinnedPackage\n\n\nclass TarballPackageMixin:\n def __init__(self, tarball: str) -> None:\n super().__init__()\n self.tarball = tarball\...
[ { "content": "from typing import Dict\n\nfrom dbt.contracts.project import RegistryPackageMetadata, TarballPackage\nfrom dbt.deps.base import PinnedPackage, UnpinnedPackage\n\n\nclass TarballPackageMixin:\n def __init__(self, tarball: str) -> None:\n super().__init__()\n self.tarball = tarball\...
diff --git a/.changes/unreleased/Fixes-20231113-114956.yaml b/.changes/unreleased/Fixes-20231113-114956.yaml new file mode 100644 index 00000000000..77bb210002c --- /dev/null +++ b/.changes/unreleased/Fixes-20231113-114956.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Fix formatting of tarball information in packages-lock.y...
beeware__toga-2041
Crash when displaying InfoDialog on iOS ### Describe the bug InfoDialog could not be called from a Button on iOS ### Steps to reproduce 1. Run the `dialogs` example 2. Click on any of the buttons that display a dialog 3. See error: ``` Traceback (most recent call last): File "/Users/carstenschmidt/Li...
[ { "content": "from abc import ABC\n\nfrom rubicon.objc import Block\nfrom rubicon.objc.runtime import objc_id\n\nfrom toga_iOS.libs import (\n UIAlertAction,\n UIAlertActionStyle,\n UIAlertController,\n UIAlertControllerStyle,\n)\n\n\nclass BaseDialog(ABC):\n def __init__(self, interface):\n ...
[ { "content": "from abc import ABC\n\nfrom rubicon.objc import Block\nfrom rubicon.objc.runtime import objc_id\n\nfrom toga_iOS.libs import (\n UIAlertAction,\n UIAlertActionStyle,\n UIAlertController,\n UIAlertControllerStyle,\n)\n\n\nclass BaseDialog(ABC):\n def __init__(self, interface):\n ...
diff --git a/changes/2039.misc.rst b/changes/2039.misc.rst new file mode 100644 index 0000000000..87b0c6d54d --- /dev/null +++ b/changes/2039.misc.rst @@ -0,0 +1 @@ +Fixing a bug introduced in #1969 that clashes the dialog display on iOS diff --git a/iOS/src/toga_iOS/dialogs.py b/iOS/src/toga_iOS/dialogs.py index a0a8b...
liberapay__liberapay.com-1346
"Translation incomplete" warning, but the page is translated To reproduced visit a closed account like https://eo.liberapay.com/granduzanto/.
[ { "content": "# encoding: utf8\nfrom __future__ import print_function, unicode_literals\n\nfrom collections import namedtuple, OrderedDict\nfrom datetime import date, datetime, timedelta\nfrom decimal import Decimal, InvalidOperation\nfrom hashlib import md5\nfrom io import BytesIO\nimport re\nfrom unicodedata ...
[ { "content": "# encoding: utf8\nfrom __future__ import print_function, unicode_literals\n\nfrom collections import namedtuple, OrderedDict\nfrom datetime import date, datetime, timedelta\nfrom decimal import Decimal, InvalidOperation\nfrom hashlib import md5\nfrom io import BytesIO\nimport re\nfrom unicodedata ...
diff --git a/error.spt b/error.spt index b0eb5dbe95..ba21f32898 100644 --- a/error.spt +++ b/error.spt @@ -9,7 +9,7 @@ from liberapay.utils.i18n import HTTP_ERRORS sentry_ident = state.get('sentry_ident') code = response.code -msg = _(HTTP_ERRORS.get(code, status_strings.get(code, ''))) +msg = _(HTTP_ERRORS[code]) ...
scikit-hep__pyhf-933
Docs build broken with Sphinx v3.1.1 # Description After the new Sphinx patch release [`v3.1.1`](https://github.com/sphinx-doc/sphinx/releases/tag/v3.1.1) was released there is an error with building the docs due to `autodocumenting`: ``` WARNING: don't know which module to import for autodocumenting 'optimize...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'tensorflow': [\n 'tensorflow~=2.0',\n 'tensorflow-probability~=0.10', # TODO: Temp patch until tfp v0.11\n ],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax~=0.1,>0.1.51', 'jaxlib~=0.1,>0.1.33'],\n 'xmlio': ['uproot~=3....
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'tensorflow': [\n 'tensorflow~=2.0',\n 'tensorflow-probability~=0.10', # TODO: Temp patch until tfp v0.11\n ],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax~=0.1,>0.1.51', 'jaxlib~=0.1,>0.1.33'],\n 'xmlio': ['uproot~=3....
diff --git a/setup.py b/setup.py index 0ef38807a3..6deac949de 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,7 @@ extras_require['docs'] = sorted( set( [ - 'sphinx~=3.0.0', # Sphinx v3.1.X regressions break docs + 'sphinx>=3.1.2', 'sphinxcontrib-bibtex', ...
sopel-irc__sopel-1976
Invalid format of `AUTHENTICATE` message ## Description Sopel uses a literal `\0` instead of the null byte in AUTHENTICATE payloads. ### Reproduction steps 1. use this config: ``` auth_username = jilles auth_password = sesame auth_method = sasl ``` Sopel will then send this to the server: ``` AUT...
[ { "content": "# coding=utf-8\n\"\"\"Tasks that allow the bot to run, but aren't user-facing functionality\n\nThis is written as a module to make it easier to extend to support more\nresponses to standard IRC codes without having to shove them all into the\ndispatch function in bot.py and making it easier to mai...
[ { "content": "# coding=utf-8\n\"\"\"Tasks that allow the bot to run, but aren't user-facing functionality\n\nThis is written as a module to make it easier to extend to support more\nresponses to standard IRC codes without having to shove them all into the\ndispatch function in bot.py and making it easier to mai...
diff --git a/sopel/coretasks.py b/sopel/coretasks.py index 71ff73313f..70a51cf6ff 100644 --- a/sopel/coretasks.py +++ b/sopel/coretasks.py @@ -835,7 +835,7 @@ def auth_proceed(bot, trigger): else: return sasl_username = sasl_username or bot.nick - sasl_token = r'\0'.join((sasl_username, sasl_usern...
svthalia__concrexit-2551
Time/Date picking window is underneath the description styling ### Describe the bug When adding an event to the site the window, which pops up when you select a date or a time, appears underneath the text styling bar of the description. The z index of the description text styling bar should be lower then that of the ...
[ { "content": "\"\"\"Django settings for concrexit.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/dev/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/dev/ref/settings/\n\"\"\"\n\nimport logging\n\nimport base64\nimport json...
[ { "content": "\"\"\"Django settings for concrexit.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/dev/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/dev/ref/settings/\n\"\"\"\n\nimport logging\n\nimport base64\nimport json...
diff --git a/website/thaliawebsite/settings.py b/website/thaliawebsite/settings.py index e65783e7c..be34c6c71 100644 --- a/website/thaliawebsite/settings.py +++ b/website/thaliawebsite/settings.py @@ -761,6 +761,14 @@ def from_env( "remove_script_host": False, "autoresize_bottom_margin": 50, } +TINYMCE_EXTRA...
pytorch__text-2144
Implementing __contains__ for vocab.Vectors class ## 🚀 Feature Isn't it better to implement \_\_contains\_\_ for Vectors class? In this way, one can easily find out whether a vocab is in the self.itos or not.
[ { "content": "import gzip\nimport logging\nimport os\nimport tarfile\nimport zipfile\nfrom functools import partial\nfrom urllib.request import urlretrieve\n\nimport torch\nfrom tqdm import tqdm\n\nfrom ..utils import reporthook\n\nlogger = logging.getLogger(__name__)\n\n\ndef _infer_shape(f):\n num_lines, v...
[ { "content": "import gzip\nimport logging\nimport os\nimport tarfile\nimport zipfile\nfrom functools import partial\nfrom urllib.request import urlretrieve\n\nimport torch\nfrom tqdm import tqdm\n\nfrom ..utils import reporthook\n\nlogger = logging.getLogger(__name__)\n\n\ndef _infer_shape(f):\n num_lines, v...
diff --git a/torchtext/vocab/vectors.py b/torchtext/vocab/vectors.py index a2e5299f94..af60c4f60b 100644 --- a/torchtext/vocab/vectors.py +++ b/torchtext/vocab/vectors.py @@ -64,6 +64,9 @@ def __getitem__(self, token): else: return self.unk_init(torch.Tensor(self.dim)) + def __contains__(self...
cookiecutter__cookiecutter-django-2252
Broken static files with whitenoise=n & cloud_provider=none ## What happened? If the user chooses `use_whitenoise=n` & `cloud_provider=None`, then the static files are not served properly. ## What should've happened instead? This combination should not be allowed and show an error when trying to generate the p...
[ { "content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment.\n\nTODO: ? restrict Cookiecutter Django project initialization to Python 3.x environments only\n\"\"\"\nfr...
[ { "content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment.\n\nTODO: ? restrict Cookiecutter Django project initialization to Python 3.x environments only\n\"\"\"\nfr...
diff --git a/hooks/pre_gen_project.py b/hooks/pre_gen_project.py index 91332f144f..7f9bd3eac2 100644 --- a/hooks/pre_gen_project.py +++ b/hooks/pre_gen_project.py @@ -59,3 +59,12 @@ ) + TERMINATOR ) + +if ( + "{{ cookiecutter.use_whitenoise }}".lower() == "n...
scikit-image__scikit-image-4053
Handle `normed` to `density` deprecations in `histogram` ## Description See https://github.com/scikit-image/scikit-image/pull/3427 and the related issues.
[ { "content": "\"\"\"\n===============================================\nLocal Binary Pattern for texture classification\n===============================================\n\nIn this example, we will see how to classify textures based on LBP (Local\nBinary Pattern). LBP looks at points surrounding a central point a...
[ { "content": "\"\"\"\n===============================================\nLocal Binary Pattern for texture classification\n===============================================\n\nIn this example, we will see how to classify textures based on LBP (Local\nBinary Pattern). LBP looks at points surrounding a central point a...
diff --git a/doc/examples/features_detection/plot_local_binary_pattern.py b/doc/examples/features_detection/plot_local_binary_pattern.py index 5b91b8bb229..0c8fe3d8630 100644 --- a/doc/examples/features_detection/plot_local_binary_pattern.py +++ b/doc/examples/features_detection/plot_local_binary_pattern.py @@ -107,7 +...
aws__aws-cli-3683
Passing AWS_PROFILE on update-kubeconfig cli Add profile details if calling update passing update-kubeconfig with profile details #aws eks update-kubeconfig --name k8s-test --kubeconfig k8s-test.config --profile myprofile Currently this generates as ``` user: exec: apiVersion: client.authentic...
[ { "content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0/\n#\n# ...
[ { "content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0/\n#\n# ...
diff --git a/awscli/customizations/eks/update_kubeconfig.py b/awscli/customizations/eks/update_kubeconfig.py index 3d7b04073bfa..6598c4412141 100644 --- a/awscli/customizations/eks/update_kubeconfig.py +++ b/awscli/customizations/eks/update_kubeconfig.py @@ -333,4 +333,10 @@ def get_user_entry(self): s...
xonsh__xonsh-3121
Syntax errors when using bashisms xontrib At least making assignment statements and entering function definitions at the prompt is broken when using the included `bashisms` xontrib and prompt toolkit. ## xonfig ``` $ xonfig ...
[ { "content": "\"\"\"Bash-like interface extensions for xonsh.\"\"\"\nimport shlex\nimport sys\nimport re\n\nfrom prompt_toolkit.keys import Keys\nfrom prompt_toolkit.filters import Condition, EmacsInsertMode, ViInsertMode\n\nfrom xonsh.platform import ptk_shell_type\n\n__all__ = ()\n\n\n@events.on_transform_com...
[ { "content": "\"\"\"Bash-like interface extensions for xonsh.\"\"\"\nimport shlex\nimport sys\nimport re\n\nfrom prompt_toolkit.keys import Keys\nfrom prompt_toolkit.filters import Condition, EmacsInsertMode, ViInsertMode\n\nfrom xonsh.platform import ptk_shell_type\n\n__all__ = ()\n\n\n@events.on_transform_com...
diff --git a/news/preserve_newline_during_bashisms_transform.rst b/news/preserve_newline_during_bashisms_transform.rst new file mode 100644 index 0000000000..abd5531cb4 --- /dev/null +++ b/news/preserve_newline_during_bashisms_transform.rst @@ -0,0 +1,23 @@ +**Added:** + +* <news item> + +**Changed:** + +* <news item> ...
readthedocs__readthedocs.org-5346
Remove all warnings from pytest When running `tox` we see these warnings in the summary. We should use `request` fixture and access to `request.config` instead. Docs: https://docs.pytest.org/en/latest/fixture.html#request-context Change log: https://docs.pytest.org/en/latest/deprecations.html#pytest-config-globa...
[ { "content": "# -*- coding: utf-8 -*-\nimport pytest\nfrom django.conf import settings\nfrom rest_framework.test import APIClient\n\ntry:\n # TODO: this file is read/executed even when called from ``readthedocsinc``,\n # so it's overriding the options that we are defining in the ``conftest.py``\n # fro...
[ { "content": "# -*- coding: utf-8 -*-\nimport pytest\nfrom django.conf import settings\nfrom rest_framework.test import APIClient\n\ntry:\n # TODO: this file is read/executed even when called from ``readthedocsinc``,\n # so it's overriding the options that we are defining in the ``conftest.py``\n # fro...
diff --git a/conftest.py b/conftest.py index 3eb3f7e14ed..75e70a89315 100644 --- a/conftest.py +++ b/conftest.py @@ -47,6 +47,12 @@ def pytest_configure(config): def settings_modification(settings): settings.CELERY_ALWAYS_EAGER = True + @pytest.fixture def api_client(): return APIClient() + + +@pytest.fi...
mkdocs__mkdocs-2606
Support terminal coloring on Windows E.g. we might use the [colorama](https://pypi.org/project/colorama/) library, otherwise the output looks like this in cmd.exe: ``` ←[33mWARNING - ←[0mmkdocs_autorefs.plugin: cookbook-reference.md: Could not find cross-reference target '['a']' ←[33mWARNING - ←[0mmkdocs_autor...
[ { "content": "#!/usr/bin/env python\n\nimport os\nimport sys\nimport logging\nimport click\nimport textwrap\nimport shutil\n\nfrom mkdocs import __version__\nfrom mkdocs import utils\nfrom mkdocs import config\nfrom mkdocs.commands import build, gh_deploy, new, serve\n\nlog = logging.getLogger(__name__)\n\n\ncl...
[ { "content": "#!/usr/bin/env python\n\nimport os\nimport sys\nimport logging\nimport click\nimport textwrap\nimport shutil\n\nfrom mkdocs import __version__\nfrom mkdocs import utils\nfrom mkdocs import config\nfrom mkdocs.commands import build, gh_deploy, new, serve\n\n\nif sys.platform.startswith(\"win\"):\n ...
diff --git a/mkdocs/__main__.py b/mkdocs/__main__.py index a97014d1ae..f196674c54 100644 --- a/mkdocs/__main__.py +++ b/mkdocs/__main__.py @@ -12,6 +12,15 @@ from mkdocs import config from mkdocs.commands import build, gh_deploy, new, serve + +if sys.platform.startswith("win"): + try: + import colorama + ...
Parsl__parsl-705
With TorqueProvider, submit stderr/stdout does not go to runinfo This happens on both NSCC and Blue Waters. The submit script has ``` #PBS -o /mnt/a/u/sciteam/woodard/simple-tests/runinfo/001/submit_scripts/parsl.parsl.auto.1542146393.457273.submit.stdout #PBS -e /mnt/a/u/sciteam/woodard/simple-tests/runinfo/001/s...
[ { "content": "template_string = '''#!/bin/bash\n\n#PBS -S /bin/bash\n#PBS -N ${jobname}\n#PBS -m n\n#PBS -k eo\n#PBS -l walltime=$walltime\n#PBS -l nodes=${nodes_per_block}:ppn=${tasks_per_node}\n#PBS -o ${submit_script_dir}/${jobname}.submit.stdout\n#PBS -e ${submit_script_dir}/${jobname}.submit.stderr\n${sche...
[ { "content": "template_string = '''#!/bin/bash\n\n#PBS -S /bin/bash\n#PBS -N ${jobname}\n#PBS -m n\n#PBS -l walltime=$walltime\n#PBS -l nodes=${nodes_per_block}:ppn=${tasks_per_node}\n#PBS -o ${submit_script_dir}/${jobname}.submit.stdout\n#PBS -e ${submit_script_dir}/${jobname}.submit.stderr\n${scheduler_option...
diff --git a/parsl/providers/torque/template.py b/parsl/providers/torque/template.py index 99e1b087bb..03db53d71c 100644 --- a/parsl/providers/torque/template.py +++ b/parsl/providers/torque/template.py @@ -3,7 +3,6 @@ #PBS -S /bin/bash #PBS -N ${jobname} #PBS -m n -#PBS -k eo #PBS -l walltime=$walltime #PBS -l no...
spack__spack-23014
Installation issue with openjdk: "Error: NameError: name 'Prefix' is not defined" ### Steps to reproduce the issue Latest spack develop on OS X gives: ```console → spack install -v hpcviewer ==> Warning: Missing a source id for openjdk@11.0.10_9 [+] /usr (external openjdk-11.0.10_9-eoscwsxi5erdz5htmnixttlxjz...
[ { "content": "# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nimport os\nimport platform\nimport re\n\n\n# If you need to add a new version, please be aware ...
[ { "content": "# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nimport os\nimport platform\nimport re\n\nfrom spack.util.prefix import Prefix\n\n# If you need ...
diff --git a/var/spack/repos/builtin/packages/openjdk/package.py b/var/spack/repos/builtin/packages/openjdk/package.py index 5643c5d8def48d..3c9442b9736fdb 100644 --- a/var/spack/repos/builtin/packages/openjdk/package.py +++ b/var/spack/repos/builtin/packages/openjdk/package.py @@ -7,6 +7,7 @@ import platform import ...