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
⌀
scrapy__scrapy-5253
ints in Cookies are not getting parsed correctly <!-- Thanks for taking an interest in Scrapy! If you have a question that starts with "How to...", please see the Scrapy Community page: https://scrapy.org/community/. The GitHub issue tracker's purpose is to deal with bug reports and feature requests for the proj...
[ { "content": "import logging\nfrom collections import defaultdict\n\nfrom scrapy.exceptions import NotConfigured\nfrom scrapy.http import Response\nfrom scrapy.http.cookies import CookieJar\nfrom scrapy.utils.python import to_unicode\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass CookiesMiddleware:\n \...
[ { "content": "import logging\nfrom collections import defaultdict\n\nfrom scrapy.exceptions import NotConfigured\nfrom scrapy.http import Response\nfrom scrapy.http.cookies import CookieJar\nfrom scrapy.utils.python import to_unicode\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass CookiesMiddleware:\n \...
diff --git a/scrapy/downloadermiddlewares/cookies.py b/scrapy/downloadermiddlewares/cookies.py index d95ed3d381c..0eee8d758e5 100644 --- a/scrapy/downloadermiddlewares/cookies.py +++ b/scrapy/downloadermiddlewares/cookies.py @@ -80,8 +80,8 @@ def _format_cookie(self, cookie, request): logger.warnin...
opendatacube__datacube-core-941
AttributeError for LocalConfig during replication ### Expected behaviour SSHTunnel for replication doesn't open due to AttributeError. I have tried to understand the replication process and ran also a separate script that failed with same error. ### Actual behaviour ``` AttributeError: 'LocalConfig' object has n...
[ { "content": "#!/usr/bin/env python\n\"\"\"\nA Simple Data Cube Replication Tool\n\nConnects to a remote Data Cube via SSH, and downloads database records and files to a local file system and database.\n\nProvide a configuration file in ~/.datacube.replication.conf in YAML format, or specify an alternate locati...
[ { "content": "#!/usr/bin/env python\n\"\"\"\nA Simple Data Cube Replication Tool\n\nConnects to a remote Data Cube via SSH, and downloads database records and files to a local file system and database.\n\nProvide a configuration file in ~/.datacube.replication.conf in YAML format, or specify an alternate locati...
diff --git a/datacube_apps/simple_replica.py b/datacube_apps/simple_replica.py index b648656395..5ddd8d653c 100644 --- a/datacube_apps/simple_replica.py +++ b/datacube_apps/simple_replica.py @@ -112,7 +112,8 @@ def connect_to_db(self): self.tunnel = SSHTunnelForwarder( self.remote_host, ...
pypa__cibuildwheel-420
[BUG] Pyproject.toml workaround can make a file The following pyproject.toml on Windows: ```toml requires = [ "setuptools_scm[toml]>=4.1.2" ] ``` produces a file ``` 4.1.2 ``` which breaks the setuptools_scm versioning, since it's now a dirty directory. Illustrated in #420. I think it used to work o...
[ { "content": "import os\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\nfrom os import PathLike\nfrom pathlib import Path\nfrom typing import Dict, List, NamedTuple, Optional, Sequence, Union\nfrom zipfile import ZipFile\nimport toml\n\nfrom .environment import ParsedEnvironment\nfrom .util impo...
[ { "content": "import os\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\nfrom os import PathLike\nfrom pathlib import Path\nfrom typing import Dict, List, NamedTuple, Optional, Sequence, Union\nfrom zipfile import ZipFile\nimport toml\n\nfrom .environment import ParsedEnvironment\nfrom .util impo...
diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index f793acf41..bca658c0f 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -177,8 +177,14 @@ def pep_518_cp35_workaround(package_dir: Path, env: Dict[str, str]) -> None: if 'build-system' in data else [] ...
conan-io__conan-center-index-5415
[package] all: "Access is denied" in os.rename() on Windows ### Package and Environment Details (include every applicable attribute) * Package Name/Version: **almost all packages affected** * Operating System+version: **Windows 10** * Compiler+version: **MSVC 16** * Conan version: **conan 1.35.2** * Pyth...
[ { "content": "from conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\nimport textwrap\n\nrequired_conan_version = \">=1.33.0\"\n\n\nclass ConanSqlite3(ConanFile):\n name = \"sqlite3\"\n description = \"Self-contained, serverless, in-process SQL database ...
[ { "content": "from conans import ConanFile, CMake, tools\nimport os\nimport textwrap\n\nrequired_conan_version = \">=1.33.0\"\n\n\nclass ConanSqlite3(ConanFile):\n name = \"sqlite3\"\n description = \"Self-contained, serverless, in-process SQL database engine.\"\n url = \"https://github.com/conan-io/co...
diff --git a/recipes/sqlite3/all/conanfile.py b/recipes/sqlite3/all/conanfile.py index 59ca6841eee9d..50fbe44e1e5c5 100644 --- a/recipes/sqlite3/all/conanfile.py +++ b/recipes/sqlite3/all/conanfile.py @@ -87,11 +87,7 @@ def configure(self): del self.settings.compiler.cppstd def source(self): - to...
ocadotechnology__aimmo-51
Submitting empty code leads to server error When sending empty program, we are getting: Traceback: File "/Library/Python/2.7/site-packages/django/core/handlers/base.py" in get_response 1. response = wrapped_callback(request, _callback_args, *_callback_kwargs) File "/Library/Python/2.7/site-packa...
[ { "content": "import traceback\nimport sys\n\nfrom simulation.action import WaitAction\n\n\n# This class will be implemented by the player\nAvatar = None\n\n\nclass UserCodeException(Exception):\n def __init__(self, *args, **kwargs):\n super(Exception, self).__init__(*args, **kwargs)\n self.exc...
[ { "content": "import traceback\nimport sys\n\nfrom simulation.action import WaitAction\n\n\n# This class will be implemented by the player\nAvatar = None\n\n\nclass UserCodeException(Exception):\n def __init__(self, *args, **kwargs):\n super(Exception, self).__init__(*args, **kwargs)\n self.exc...
diff --git a/simulation/avatar/avatar_wrapper.py b/simulation/avatar/avatar_wrapper.py index 3b480c356..a66b0f142 100644 --- a/simulation/avatar/avatar_wrapper.py +++ b/simulation/avatar/avatar_wrapper.py @@ -60,9 +60,9 @@ def set_code(self, code): self.code = code try: exec(code) + ...
django-helpdesk__django-helpdesk-808
'NoneType' object has no attribute 'email' while doing get_email. **Describe the bug** When fetching an email with a CC, receive the following error ``` AttributeError: 'NoneType' object has no attribute 'email' File "myapp/taskapp/celery.py", line 47, in support_fetch_email call_command('get_email') File...
[ { "content": "#!/usr/bin/python\n\"\"\"\nJutda Helpdesk - A Django powered ticket tracker for small enterprise.\n\n(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.\n\nscripts/get_email.py - Designed to be run from cron, this script checks the\n POP and IMAP boxes, or...
[ { "content": "#!/usr/bin/python\n\"\"\"\nJutda Helpdesk - A Django powered ticket tracker for small enterprise.\n\n(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.\n\nscripts/get_email.py - Designed to be run from cron, this script checks the\n POP and IMAP boxes, or...
diff --git a/helpdesk/management/commands/get_email.py b/helpdesk/management/commands/get_email.py index 273b7fd52..ad127e789 100755 --- a/helpdesk/management/commands/get_email.py +++ b/helpdesk/management/commands/get_email.py @@ -551,7 +551,7 @@ def ticket_from_message(message, queue, logger): # copy email ...
Qiskit__qiskit-12071
add `graphviz` to the visualization tool dependency ### Environment - **Qiskit version**: 1.0.0 - **Python version**: 3.11.6 - **Operating system**: macOS ### What is happening? When calling function `plot_circuit_layout` in the module `qiskit.visualization`, got the following error: ``` MissingOptionalLibrar...
[ { "content": "# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2022.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.\n#\n# Any ...
[ { "content": "# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2022.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.\n#\n# Any ...
diff --git a/qiskit/utils/optionals.py b/qiskit/utils/optionals.py index ba0b8d8fc1f2..7f399094bb6d 100644 --- a/qiskit/utils/optionals.py +++ b/qiskit/utils/optionals.py @@ -307,8 +307,12 @@ HAS_GRAPHVIZ = _LazySubprocessTester( ("dot", "-V"), - name="graphviz", - install="'brew install graphviz' if on M...
opsdroid__opsdroid-1598
Configuration validator warning could be more useful + accurate <!-- Before you post an issue or if you are unsure about something join our matrix channel https://riot.im/app/#/room/#opsdroid-general:matrix.org and ask away! We are more than happy to help you. --> # Description The Opsdroid warning "Opsdroid has a ne...
[ { "content": "\"\"\"Helper functions to use within OpsDroid.\"\"\"\n\nimport datetime\nimport os\nimport stat\nimport logging\nimport json\n\nimport nbformat\nfrom nbconvert import PythonExporter\n\n_LOGGER = logging.getLogger(__name__)\n\n\n# pylint: disable=inconsistent-return-statements\ndef get_opsdroid():\...
[ { "content": "\"\"\"Helper functions to use within OpsDroid.\"\"\"\n\nimport datetime\nimport os\nimport stat\nimport logging\nimport json\n\nimport nbformat\nfrom nbconvert import PythonExporter\n\n_LOGGER = logging.getLogger(__name__)\n\n\n# pylint: disable=inconsistent-return-statements\ndef get_opsdroid():\...
diff --git a/opsdroid/helper.py b/opsdroid/helper.py index b663e3a1f..a5298950f 100644 --- a/opsdroid/helper.py +++ b/opsdroid/helper.py @@ -63,7 +63,7 @@ def convert_dictionary(modules): if isinstance(modules, list): _LOGGER.warning( - "Opsdroid has a new configuration format since version 0...
arviz-devs__arviz-1566
Add an examples of coords argument in documentation **Describe the bug** There's this fancy coords argument but not a great explanation on how to use it in the code examples below https://arviz-devs.github.io/arviz/api/generated/arviz.plot_posterior.html ![image](https://user-images.githubusercontent.com/7213793/9...
[ { "content": "\"\"\"Plot posterior densities.\"\"\"\nfrom ..data import convert_to_dataset\nfrom ..rcparams import rcParams\nfrom ..utils import _var_names, get_coords\nfrom .plot_utils import default_grid, filter_plotters_list, get_plotting_function, xarray_var_iter\n\n\ndef plot_posterior(\n data,\n var...
[ { "content": "\"\"\"Plot posterior densities.\"\"\"\nfrom ..data import convert_to_dataset\nfrom ..rcparams import rcParams\nfrom ..utils import _var_names, get_coords\nfrom .plot_utils import default_grid, filter_plotters_list, get_plotting_function, xarray_var_iter\n\n\ndef plot_posterior(\n data,\n var...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fae6648c8..545d8d3398 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## v0.x.x Unreleased ### New features -* Added `to_zarr` and `from_zarr` methods to InferenceData ([1518](https://github.com/arviz-devs/arviz/pull/1535)) +* Added `to_zarr` and `from_za...
google__osv.dev-704
Packagist version enumeration is incorrect Since #675 was landed we're now seeing some false positives in `osv-detector` due to the `versions` field seemingly holding wrong versions. Some examples that I've looked into specifically: * https://api.osv.dev/v1/vulns/GHSA-vxrc-68xx-x48g has all of the v2.x versions l...
[ { "content": "# Copyright 2022 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2022 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/osv/packagist_version.py b/osv/packagist_version.py index 17da7460c24..f887b8ca6d1 100644 --- a/osv/packagist_version.py +++ b/osv/packagist_version.py @@ -130,6 +130,8 @@ def php_canonicalize_version(version: str) -> str: Replaces special separators (`-`,`_`,`+`) with `.`, and inserts `.` betwee...
dask__distributed-8224
msgpack 1.0.6 breaks Client.profile on Windows These two tests have been failing on Windows since msgpack 1.0.6 was released on conda: ``` File "C:\Miniconda3\envs\dask-distributed\lib\site-packages\msgpack\fallback.py", line 805, in _pack return self._pack_map_pairs(len(obj), obj.items(), nest_limit - 1) F...
[ { "content": "\"\"\" This module contains utility functions to construct and manipulate counting\ndata structures for frames.\n\nWhen performing statistical profiling we obtain many call stacks. We aggregate\nthese call stacks into data structures that maintain counts of how many times\neach function in that c...
[ { "content": "\"\"\" This module contains utility functions to construct and manipulate counting\ndata structures for frames.\n\nWhen performing statistical profiling we obtain many call stacks. We aggregate\nthese call stacks into data structures that maintain counts of how many times\neach function in that c...
diff --git a/distributed/profile.py b/distributed/profile.py index 7c8f8734d73..46420ca4ebf 100644 --- a/distributed/profile.py +++ b/distributed/profile.py @@ -178,7 +178,7 @@ def process( # sometimes need to be recursed into as well, e.g. for serialization # which can cause recursion errors later on...
netket__netket-852
Broken equations in docs See for example the unredered tex in https://www.netket.org/docs/sr.html
[ { "content": "import sphinx_bootstrap_theme\n\n# -- Project information -----------------------------------------------------\n\nproject = \"netket\"\ncopyright = \"2019-2021, The Netket authors - All rights reserved\"\nauthor = \"Giuseppe Carleo et al.\"\n\n# The full version, including alpha/beta/rc tags\nrel...
[ { "content": "import sphinx_bootstrap_theme\n\n# -- Project information -----------------------------------------------------\n\nproject = \"netket\"\ncopyright = \"2019-2021, The Netket authors - All rights reserved\"\nauthor = \"Giuseppe Carleo et al.\"\n\n# The full version, including alpha/beta/rc tags\nrel...
diff --git a/docs/conf.py b/docs/conf.py index 0e38ec635b..022b0bdf02 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -62,11 +62,10 @@ source_suffix = [".rst", ".ipynb", ".md"] # Markdown parser latex support -myst_enable_extensions = ["dollarmath", "amsmath"] - +myst_enable_extensions = ["dollarmath", "amsmath", "...
getnikola__nikola-2632
new install - new_page fails steps to reproduce: 1. install nikola. 2. init a new project and cd to it's dir 3. run "nikola new_page" throws an exception. 4. however, run "nikola new_post -p" and it works just fine!?? i am puzzled, why does "new_post -p" work and "new_page" fail??? the exception trace i get...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2017 Roberto Alsina, Chris Warrick and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restrictio...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2017 Roberto Alsina, Chris Warrick and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restrictio...
diff --git a/nikola/plugins/command/new_page.py b/nikola/plugins/command/new_page.py index 453d688080..5b461bb92d 100644 --- a/nikola/plugins/command/new_page.py +++ b/nikola/plugins/command/new_page.py @@ -107,6 +107,7 @@ def _execute(self, options, args): options['tags'] = '' options['schedule'] = F...
vispy__vispy-254
Possible bug with multiple programs? I got a weird behavior that looks like a bug, unless I'm doing something wrong when painting two programs. The following example should, in principle, display two squares: one blue on the bottom left, one red on the top right. Only the last draw call seems to be taken into account....
[ { "content": "# -*- coding: utf-8 -*-\n# -----------------------------------------------------------------------------\n# Copyright (c) 2014, Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n# -----------------------------------------------...
[ { "content": "# -*- coding: utf-8 -*-\n# -----------------------------------------------------------------------------\n# Copyright (c) 2014, Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n# -----------------------------------------------...
diff --git a/vispy/gloo/variable.py b/vispy/gloo/variable.py index 3308d99b76..155da24424 100644 --- a/vispy/gloo/variable.py +++ b/vispy/gloo/variable.py @@ -324,6 +324,11 @@ def set_data(self, data): def _activate(self): if isinstance(self.data, VertexBuffer): self.data.activate() + ...
PrefectHQ__prefect-12628
Docs for run_deployment incorectly specify that flow/deployment name must be slugified ### First check - [X] I added a descriptive title to this issue. - [X] I used GitHub search to find a similar request and didn't find it 😇 ### Describe the issue https://docs.prefect.io/2.11.3/api-ref/prefect/deployments/d...
[ { "content": "\"\"\"\nObjects for specifying deployments and utilities for loading flows from deployments.\n\"\"\"\n\nimport importlib\nimport json\nimport os\nimport sys\nfrom datetime import datetime\nfrom functools import partial\nfrom pathlib import Path\nfrom typing import Any, Dict, Iterable, List, Option...
[ { "content": "\"\"\"\nObjects for specifying deployments and utilities for loading flows from deployments.\n\"\"\"\n\nimport importlib\nimport json\nimport os\nimport sys\nfrom datetime import datetime\nfrom functools import partial\nfrom pathlib import Path\nfrom typing import Any, Dict, Iterable, List, Option...
diff --git a/src/prefect/deployments/deployments.py b/src/prefect/deployments/deployments.py index 3f779c2cb37f..06087ca3ba57 100644 --- a/src/prefect/deployments/deployments.py +++ b/src/prefect/deployments/deployments.py @@ -103,7 +103,7 @@ async def run_deployment( Args: name: The deployment id or de...
boto__boto-3342
no_proxy support has some issues If you have the `http_proxy` and `no_proxy` environment variables set, and then connect to a server listed in the no_proxy setting, boto sends: `GET http://hostname/ HTTP/1.1` instead of `GET / HTTP/1.1`
[ { "content": "# Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates.\n# Copyright (c) 2010 Google\n# Copyright (c) 2008 rPath, Inc.\n# Copyright (c) 2009 The Echo Nest Corporation\n# Copyright (c) 2010, Eucalyptus Systems, Inc.\n# Copyright (c) 2011...
[ { "content": "# Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates.\n# Copyright (c) 2010 Google\n# Copyright (c) 2008 rPath, Inc.\n# Copyright (c) 2009 The Echo Nest Corporation\n# Copyright (c) 2010, Eucalyptus Systems, Inc.\n# Copyright (c) 2011...
diff --git a/boto/connection.py b/boto/connection.py index 32fecd6815..5eafc9befe 100644 --- a/boto/connection.py +++ b/boto/connection.py @@ -1048,7 +1048,7 @@ def build_base_http_request(self, method, path, auth_path, if self.host_header and not boto.utils.find_matching_headers('host', headers): ...
sql-machine-learning__elasticdl-728
The status of the worker pod should be Error when there is any error happened. The status of the worker pod is still Running and will never stop even if there are some errors in function `handle_task` like: ```bash Traceback (most recent call last): File "/elasticdl/python/elasticdl/worker/worker.py", line 236, in...
[ { "content": "import logging\nimport traceback\n\nimport tensorflow as tf\n\nassert tf.executing_eagerly() # noqa\n\nimport recordio\n\nfrom contextlib import closing\nfrom elasticdl.proto import elasticdl_pb2_grpc\nfrom elasticdl.proto import elasticdl_pb2\nfrom elasticdl.python.elasticdl.common.ndarray impor...
[ { "content": "import logging\nimport traceback\n\nimport tensorflow as tf\n\nassert tf.executing_eagerly() # noqa\n\nimport recordio\n\nfrom contextlib import closing\nfrom elasticdl.proto import elasticdl_pb2_grpc\nfrom elasticdl.proto import elasticdl_pb2\nfrom elasticdl.python.elasticdl.common.ndarray impor...
diff --git a/.travis.yml b/.travis.yml index f1dd8c099..b0072897a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,8 @@ env: - MINIKUBE_HOME=$HOME - CHANGE_MINIKUBE_NONE_USER=true - KUBECONFIG=$HOME/.kube/config - - K8S_VERSION=1.13.0 - - MINIKUBE_VERSION=0.35.0 + - K8S_VERSION=1.14.0 + ...
Cog-Creators__Red-DiscordBot-4556
massban not banning ids # Command bugs I found a bug. #### Command name massban #### What cog is this command from? Mod #### What were you expecting to happen? The mass ban to ban all 3 members I pinged. #### What actually happened? 2 members were banned, but on one I got the following error:...
[ { "content": "import asyncio\nimport contextlib\nimport logging\nfrom datetime import datetime, timedelta, timezone\nfrom typing import Dict, List, Optional, Tuple, Union\n\nimport discord\nfrom redbot.core import commands, i18n, checks, modlog\nfrom redbot.core.commands import UserInputOptional\nfrom redbot.co...
[ { "content": "import asyncio\nimport contextlib\nimport logging\nfrom datetime import datetime, timedelta, timezone\nfrom typing import Dict, List, Optional, Tuple, Union\n\nimport discord\nfrom redbot.core import commands, i18n, checks, modlog\nfrom redbot.core.commands import UserInputOptional\nfrom redbot.co...
diff --git a/redbot/cogs/mod/kickban.py b/redbot/cogs/mod/kickban.py index 56370a47882..f5617fad955 100644 --- a/redbot/cogs/mod/kickban.py +++ b/redbot/cogs/mod/kickban.py @@ -460,7 +460,7 @@ def remove_processed(ids): to_query = to_query[100:] # Call `ban_user()` method for all users that turn...
ethereum__web3.py-1930
Changed pypiwin32 to pywin32 ### What was wrong? pypiwin32 is just an empty package requiring pywin32, so this can just be required directly. As far as I know, pypiwin32 is only there for historical reasons. Related to Issue #1721 ### How was it fixed? change it in setup.py ### Todo: - [ ] Add entry to the ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom setuptools import (\n find_packages,\n setup,\n)\n\nextras_require = {\n 'tester': [\n \"eth-tester[py-evm]==v0.5.0-beta.3\",\n \"py-geth>=2.4.0,<3\",\n ],\n 'linter': [\n \"flake8==3.8.3\",\n \"isort>=...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom setuptools import (\n find_packages,\n setup,\n)\n\nextras_require = {\n 'tester': [\n \"eth-tester[py-evm]==v0.5.0-beta.3\",\n \"py-geth>=2.4.0,<3\",\n ],\n 'linter': [\n \"flake8==3.8.3\",\n \"isort>=...
diff --git a/newsfragments/1930.misc.rst b/newsfragments/1930.misc.rst new file mode 100644 index 0000000000..8a5b9b1fad --- /dev/null +++ b/newsfragments/1930.misc.rst @@ -0,0 +1 @@ +Removed the unsupported pypiwin32 in favor of the supported pywin32. diff --git a/setup.py b/setup.py index 17328ca80c..4e85184c85 10064...
PrefectHQ__prefect-7217
Tasks do not support callable objects ### First check - [X] I added a descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find it. - [X] I searched the Prefect documentation for this issue. - [X] I checked that this issue is related to Prefect and not one of its depe...
[ { "content": "\"\"\"\nModule containing the base workflow task class and decorator - for most use cases, using the [`@task` decorator][prefect.tasks.task] is preferred.\n\"\"\"\n# This file requires type-checking with pyright because mypy does not yet support PEP612\n# See https://github.com/python/mypy/issues/...
[ { "content": "\"\"\"\nModule containing the base workflow task class and decorator - for most use cases, using the [`@task` decorator][prefect.tasks.task] is preferred.\n\"\"\"\n# This file requires type-checking with pyright because mypy does not yet support PEP612\n# See https://github.com/python/mypy/issues/...
diff --git a/src/prefect/tasks.py b/src/prefect/tasks.py index 9d0544f12e92..ecb0532ddd43 100644 --- a/src/prefect/tasks.py +++ b/src/prefect/tasks.py @@ -153,7 +153,11 @@ def __init__( raise_for_reserved_arguments(self.fn, ["return_state", "wait_for"]) self.tags = set(tags if tags else []) - ...
ansible-collections__community.general-6838
proxmox: Lack of error checking: "Cloning lxc VM 100 failed with exception: 'template'" ### Summary Cloning fails with cryptic arrors. Actually at a lof of places, some due to proxmoxer but some not. This is one of such places. I am not sure what the original idea was, but this lacks error checking whatever it was:...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# Copyright Ansible Project\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import absolute_import, division, print_fun...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# Copyright Ansible Project\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import absolute_import, division, print_fun...
diff --git a/changelogs/fragments/6838-proxmox-dict-template.yml b/changelogs/fragments/6838-proxmox-dict-template.yml new file mode 100644 index 00000000000..578cff67a29 --- /dev/null +++ b/changelogs/fragments/6838-proxmox-dict-template.yml @@ -0,0 +1,2 @@ +bugfixes: + - proxmox - fix error when a configuration had ...
Parsl__parsl-3440
Parsl creates hidden working files, doesn't clean them up **Is your feature request related to a problem? Please describe.** I didn't know Parsl was creating so many log files because they were hidden. I'm OK with files appearing in my run directory, but not accumulating them endlessly without my notice. To be sp...
[ { "content": "import logging\nimport os\nimport time\n\nfrom parsl.channels import LocalChannel\nfrom parsl.jobs.states import JobState, JobStatus\nfrom parsl.launchers import SingleNodeLauncher\nfrom parsl.providers.base import ExecutionProvider\nfrom parsl.providers.errors import SchedulerMissingArgs, ScriptP...
[ { "content": "import logging\nimport os\nimport time\n\nfrom parsl.channels import LocalChannel\nfrom parsl.jobs.states import JobState, JobStatus\nfrom parsl.launchers import SingleNodeLauncher\nfrom parsl.providers.base import ExecutionProvider\nfrom parsl.providers.errors import SchedulerMissingArgs, ScriptP...
diff --git a/parsl/providers/local/local.py b/parsl/providers/local/local.py index a9fe75d008..7312da317c 100644 --- a/parsl/providers/local/local.py +++ b/parsl/providers/local/local.py @@ -206,7 +206,7 @@ def submit(self, command, tasks_per_node, job_name="parsl.localprovider"): script_path = "{0}/{1}.sh".fo...
ckan__ckan-4831
ValueError when you configure exception emails When I configure CKAN to send me exception emails, I get this exception: ``` $ paster db upgrade -c /etc/ckan/default/development.ini 2019-05-31 21:27:32,979 DEBUG [ckan.lib.fanstatic_resources] Base path /usr/lib/ckan/default/src/ckan/ckan/public/base 2019-05-31 21:27...
[ { "content": "# encoding: utf-8\n\nimport os\nimport sys\nimport re\nimport time\nimport inspect\nimport itertools\nimport pkgutil\n\nfrom flask import Flask, Blueprint, send_from_directory\nfrom flask.ctx import _AppCtxGlobals\nfrom flask.sessions import SessionInterface\n\nfrom werkzeug.exceptions import defa...
[ { "content": "# encoding: utf-8\n\nimport os\nimport sys\nimport re\nimport time\nimport inspect\nimport itertools\nimport pkgutil\n\nfrom flask import Flask, Blueprint, send_from_directory\nfrom flask.ctx import _AppCtxGlobals\nfrom flask.sessions import SessionInterface\n\nfrom werkzeug.exceptions import defa...
diff --git a/ckan/config/middleware/flask_app.py b/ckan/config/middleware/flask_app.py index 2f8d8b6bf4f..8b7ae4b6565 100644 --- a/ckan/config/middleware/flask_app.py +++ b/ckan/config/middleware/flask_app.py @@ -477,7 +477,9 @@ def filter(self, log_record): log_record.headers = request.headers ...
jazzband__django-axes-202
illegal IP address string passed to inet_pton Keep getting error: illegal IP address string passed to inet_pton https://github.com/jazzband/django-axes/blob/752783fe52e456c5d7c1b14862aa83e28045e96a/axes/decorators.py#L33 Looks like you are trying to catch OSError but inet_pton in Python 2.7.12 does not raise this...
[ { "content": "import json\nimport logging\nfrom socket import inet_pton, AF_INET6\n\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth import logout\nfrom django.http import HttpResponse\nfrom django.http import HttpResponseRedirect\nfrom django.shortcuts import render\nfrom django.utils ...
[ { "content": "import json\nimport logging\nfrom socket import inet_pton, AF_INET6, error\n\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth import logout\nfrom django.http import HttpResponse\nfrom django.http import HttpResponseRedirect\nfrom django.shortcuts import render\nfrom django...
diff --git a/axes/decorators.py b/axes/decorators.py index 5f8a4a0f..1b6005fb 100644 --- a/axes/decorators.py +++ b/axes/decorators.py @@ -1,6 +1,6 @@ import json import logging -from socket import inet_pton, AF_INET6 +from socket import inet_pton, AF_INET6, error from django.contrib.auth import get_user_model fr...
goauthentik__authentik-6094
If Authentik can't sync to LDAP, `authentik.root.celery` will use all available CPU cores until worker is restarted **Describe the bug** If your LDAP settings under "Federation & Social login" are incorrect, leading to a sync error, CPU usage will skyrocket to use all available cores. Here's the error in the LDAP Fe...
[ { "content": "\"\"\"authentik LDAP Models\"\"\"\nfrom os import chmod\nfrom ssl import CERT_REQUIRED\nfrom tempfile import NamedTemporaryFile, mkdtemp\nfrom typing import Optional\n\nfrom django.db import models\nfrom django.utils.translation import gettext_lazy as _\nfrom ldap3 import ALL, NONE, RANDOM, Connec...
[ { "content": "\"\"\"authentik LDAP Models\"\"\"\nfrom os import chmod\nfrom ssl import CERT_REQUIRED\nfrom tempfile import NamedTemporaryFile, mkdtemp\nfrom typing import Optional\n\nfrom django.db import models\nfrom django.utils.translation import gettext_lazy as _\nfrom ldap3 import ALL, NONE, RANDOM, Connec...
diff --git a/authentik/sources/ldap/models.py b/authentik/sources/ldap/models.py index 4a6c2fd2e3b2..9c5040d2dd9e 100644 --- a/authentik/sources/ldap/models.py +++ b/authentik/sources/ldap/models.py @@ -151,7 +151,7 @@ def server(self, **kwargs) -> Server: servers.append(Server(server, **server_kwargs)...
pallets__werkzeug-2257
Shortly example cannot redirect to the expected link **Bug** In Shortly example, if I want to follow a short link with `http://127.0.0.1:5000/1`, the following error occurs: ``` Traceback (most recent call last): File "/werkzeug/src/werkzeug/serving.py", line 319, in run_wsgi execute(self.server.app) ...
[ { "content": "\"\"\"A simple URL shortener using Werkzeug and redis.\"\"\"\nimport os\n\nimport redis\nfrom jinja2 import Environment\nfrom jinja2 import FileSystemLoader\nfrom werkzeug.exceptions import HTTPException\nfrom werkzeug.exceptions import NotFound\nfrom werkzeug.middleware.shared_data import SharedD...
[ { "content": "\"\"\"A simple URL shortener using Werkzeug and redis.\"\"\"\nimport os\n\nimport redis\nfrom jinja2 import Environment\nfrom jinja2 import FileSystemLoader\nfrom werkzeug.exceptions import HTTPException\nfrom werkzeug.exceptions import NotFound\nfrom werkzeug.middleware.shared_data import SharedD...
diff --git a/examples/shortly/shortly.py b/examples/shortly/shortly.py index 063bf2658..10e957e84 100644 --- a/examples/shortly/shortly.py +++ b/examples/shortly/shortly.py @@ -37,7 +37,9 @@ def get_hostname(url): class Shortly: def __init__(self, config): - self.redis = redis.Redis(config["redis_host"],...
GeotrekCE__Geotrek-admin-1047
Show land module in left menus As we said it would be interesting to move it to its own menu, we should take opportunity to rename some elements : Module name : "Gestion foncière" TO "Gestionnaires" AND ALSO : "Zone de compétence" TO "Compétence sentiers"
[ { "content": "from mapentity import registry\n\nfrom . import models\n\n\nurlpatterns = registry.register(models.PhysicalEdge, menu=False)\nurlpatterns += registry.register(models.LandEdge, menu=False)\nurlpatterns += registry.register(models.CompetenceEdge, menu=False)\nurlpatterns += registry.register(models....
[ { "content": "from mapentity import registry\n\nfrom . import models\n\n\nurlpatterns = registry.register(models.PhysicalEdge, menu=False)\nurlpatterns += registry.register(models.LandEdge)\nurlpatterns += registry.register(models.CompetenceEdge, menu=False)\nurlpatterns += registry.register(models.WorkManageme...
diff --git a/CHANGES b/CHANGES index 76c417c062..44691faea8 100644 --- a/CHANGES +++ b/CHANGES @@ -32,6 +32,7 @@ CHANGELOG * Topologies are not recreated if user did not edit field (fixes #833) * Added setting to serve attachments as download or within the browser (fixes #976) * Added static file for projection EPSG...
python-pillow__Pillow-6104
Updated harfbuzz to 4.0.0
[ { "content": "import os\nimport platform\nimport shutil\nimport struct\nimport subprocess\nimport sys\n\n\ndef cmd_cd(path):\n return f\"cd /D {path}\"\n\n\ndef cmd_set(name, value):\n return f\"set {name}={value}\"\n\n\ndef cmd_append(name, value):\n op = \"path \" if name == \"PATH\" else f\"set {nam...
[ { "content": "import os\nimport platform\nimport shutil\nimport struct\nimport subprocess\nimport sys\n\n\ndef cmd_cd(path):\n return f\"cd /D {path}\"\n\n\ndef cmd_set(name, value):\n return f\"set {name}={value}\"\n\n\ndef cmd_append(name, value):\n op = \"path \" if name == \"PATH\" else f\"set {nam...
diff --git a/winbuild/build_prepare.py b/winbuild/build_prepare.py index 7aa46274b63..3ff1aeca0ca 100644 --- a/winbuild/build_prepare.py +++ b/winbuild/build_prepare.py @@ -280,9 +280,9 @@ def cmd_msbuild( "libs": [r"imagequant.lib"], }, "harfbuzz": { - "url": "https://github.com/harfbuzz/harf...
microsoft__torchgeo-384
Add support for float type raster datasets I'm trying to load a custom DSM raster dataset of type float32. I'm implementing a new class based on RasterDataset like so: ``` from torchgeo.datasets import RasterDataset class DsmData(RasterDataset): filename_glob = "*.tif" ``` When I call `__getitem__()` o...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\n\"\"\"Base classes for all :mod:`torchgeo` datasets.\"\"\"\n\nimport abc\nimport functools\nimport glob\nimport os\nimport re\nimport sys\nfrom typing import Any, Callable, Dict, List, Optional, Seque...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\n\"\"\"Base classes for all :mod:`torchgeo` datasets.\"\"\"\n\nimport abc\nimport functools\nimport glob\nimport os\nimport re\nimport sys\nfrom typing import Any, Callable, Dict, List, Optional, Seque...
diff --git a/tests/data/raster/data.py b/tests/data/raster/data.py new file mode 100644 index 00000000000..c6328b20470 --- /dev/null +++ b/tests/data/raster/data.py @@ -0,0 +1,42 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. + +import os + +import numpy as np +import...
Rapptz__discord.py-5836
"abc.Messageable.send" ignores "allowed_mentions" when "file" kwarg is specified ## Summary "abc.Messageable.send" ignores "allowed_mentions" when "file" kwarg is specified ## Reproduction Steps ```py file = discord.File(BytesIO()) await ctx.send(ctx.author.mention, file=file, allowed_mentions=discord.Allowe...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2020 Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, includin...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2020 Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, includin...
diff --git a/discord/abc.py b/discord/abc.py index e50726f731df..ad148f745dda 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -877,7 +877,7 @@ async def send(self, content=None, *, tts=False, embed=None, file=None, raise InvalidArgument('file parameter must be File') try: - ...
readthedocs__readthedocs.org-5957
Improve msg error for submodules with invalid url schemas We only support `http` schemas, but the error message isn't clear about that. Here is a good suggestion: https://github.com/readthedocs/readthedocs.org/issues/5928#issuecomment-511708197
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"Project exceptions.\"\"\"\n\nfrom django.conf import settings\nfrom django.utils.translation import ugettext_noop as _\n\nfrom readthedocs.doc_builder.exceptions import BuildEnvironmentError\n\n\nclass ProjectConfigurationError(BuildEnvironmentError):\n\n \"\"\"...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"Project exceptions.\"\"\"\n\nfrom django.conf import settings\nfrom django.utils.translation import ugettext_noop as _\n\nfrom readthedocs.doc_builder.exceptions import BuildEnvironmentError\n\n\nclass ProjectConfigurationError(BuildEnvironmentError):\n\n \"\"\"...
diff --git a/readthedocs/projects/exceptions.py b/readthedocs/projects/exceptions.py index eebc24dee38..a37848b3553 100644 --- a/readthedocs/projects/exceptions.py +++ b/readthedocs/projects/exceptions.py @@ -38,7 +38,10 @@ class RepositoryError(BuildEnvironmentError): 'Private repositories are not supported.'...
uclapi__uclapi-1032
AMP/Instance Data not returned by the personal timetable endpoints `timetable/app_helpers.py`, line 288 should have the following: ``` "instance": instance_data ```
[ { "content": "import datetime\nimport json\n\nimport redis\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db.models import Q\n\nfrom roombookings.models import (\n Lock as RBLock,\n BookingA,\n BookingB,\n Location,\n SiteLocation\n)\n\nfrom ...
[ { "content": "import datetime\nimport json\n\nimport redis\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db.models import Q\n\nfrom roombookings.models import (\n Lock as RBLock,\n BookingA,\n BookingB,\n Location,\n SiteLocation\n)\n\nfrom ...
diff --git a/backend/uclapi/timetable/app_helpers.py b/backend/uclapi/timetable/app_helpers.py index 1baada441..a2c6cd442 100644 --- a/backend/uclapi/timetable/app_helpers.py +++ b/backend/uclapi/timetable/app_helpers.py @@ -284,7 +284,8 @@ def _get_timetable_events(full_modules, stumodules): "...
urllib3__urllib3-2052
v.1.26+ doesn't support SSL in python 2.7.6 ### Subject Describe the issue here. It errors out `An HTTP Client raised an unhandled exception: global name 'wrap_socket' is not defined` ### Environment Describe your environment. At least, paste here the output of: ```python import platform import urllib3...
[ { "content": "from __future__ import absolute_import\n\nimport hmac\nimport os\nimport sys\nimport warnings\nfrom binascii import hexlify, unhexlify\nfrom hashlib import md5, sha1, sha256\n\nfrom ..exceptions import (\n InsecurePlatformWarning,\n ProxySchemeUnsupported,\n SNIMissingWarning,\n SSLErr...
[ { "content": "from __future__ import absolute_import\n\nimport hmac\nimport os\nimport sys\nimport warnings\nfrom binascii import hexlify, unhexlify\nfrom hashlib import md5, sha1, sha256\n\nfrom ..exceptions import (\n InsecurePlatformWarning,\n ProxySchemeUnsupported,\n SNIMissingWarning,\n SSLErr...
diff --git a/src/urllib3/util/ssl_.py b/src/urllib3/util/ssl_.py index 8a1c5675af..e4b5df7017 100644 --- a/src/urllib3/util/ssl_.py +++ b/src/urllib3/util/ssl_.py @@ -44,13 +44,21 @@ def _const_compare_digest_backport(a, b): try: # Test for SSL features import ssl - from ssl import HAS_SNI # Has SNI? ...
piskvorky__gensim-1772
Pyro4.naming exception in `get_my_ip` On a multi home nic computer, get_my_ip() is failing to use socket connection to nameserver to retrieve the external ip address to use. The code is proceeding to the default case to use hostname and to look up by ip address, which is currently resolving to virtualbox ethernet adapt...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nThis module contains various general utility functions.\n\"\"\"\n\nfrom __future__ import with_state...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nThis module contains various general utility functions.\n\"\"\"\n\nfrom __future__ import with_state...
diff --git a/gensim/utils.py b/gensim/utils.py index bca29e73cc..a90f1f0b39 100644 --- a/gensim/utils.py +++ b/gensim/utils.py @@ -625,9 +625,9 @@ def get_my_ip(): """ import socket try: - import Pyro4 + from Pyro4.naming import locateNS # we know the nameserver must exist, so use ...
crytic__slither-510
Issue with NEW VARIABLE declaration ``` pragma solidity ^0.4.24; contract PoC { function withdrawBalance(uint256 element, uint amount) public{ uint local_c; local_c = amount; } } ``` For the following contract, the corresponding slither expression generated is the followin...
[ { "content": "\"\"\"\n Node module\n\"\"\"\nimport logging\nfrom typing import Optional\n\nfrom slither.core.children.child_function import ChildFunction\nfrom slither.core.declarations import Contract\nfrom slither.core.declarations.solidity_variables import SolidityVariable\nfrom slither.core.source_mappin...
[ { "content": "\"\"\"\n Node module\n\"\"\"\nimport logging\nfrom typing import Optional\n\nfrom slither.core.children.child_function import ChildFunction\nfrom slither.core.declarations import Contract\nfrom slither.core.declarations.solidity_variables import SolidityVariable\nfrom slither.core.source_mappin...
diff --git a/scripts/tests_generate_expected_json_5.sh b/scripts/tests_generate_expected_json_5.sh index 5a7f5489a6..065bb6334b 100755 --- a/scripts/tests_generate_expected_json_5.sh +++ b/scripts/tests_generate_expected_json_5.sh @@ -20,23 +20,23 @@ generate_expected_json(){ sed "s|$CURRENT_PATH|$TRAVIS_PATH|g" "...
pymodbus-dev__pymodbus-1853
AsyncModbusSerialClient crashes when slave_id is not present ### Versions - Python: 3.11 - OS: Windows 11 (ver 22H2, 22621.2428) - Pymodbus: 3.6.0dev - Modbus Hardware (if used): USB Serial ### Pymodbus Specific - Client: rtu - async ### Description Using AsyncModbusSerialClient, attempting to read fr...
[ { "content": "\"\"\"asyncio serial support for modbus (based on pyserial).\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport contextlib\nimport os\n\n\nwith contextlib.suppress(ImportError):\n import serial\n\n\nclass SerialTransport(asyncio.Transport):\n \"\"\"An asyncio serial transpor...
[ { "content": "\"\"\"asyncio serial support for modbus (based on pyserial).\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport contextlib\nimport os\n\n\nwith contextlib.suppress(ImportError):\n import serial\n\n\nclass SerialTransport(asyncio.Transport):\n \"\"\"An asyncio serial transpor...
diff --git a/pymodbus/transport/transport_serial.py b/pymodbus/transport/transport_serial.py index 6ec79ad84..9e26114ca 100644 --- a/pymodbus/transport/transport_serial.py +++ b/pymodbus/transport/transport_serial.py @@ -51,8 +51,9 @@ def close(self, exc=None): self.async_loop.remove_reader(self.sync_seria...
getnikola__nikola-2111
Deprecate `Post.section_link()` `site.link()` aka `link://` should be used instead. (via #2069)
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2015 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2015 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
diff --git a/CHANGES.txt b/CHANGES.txt index e273bc4a26..1ecbc785bb 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -20,6 +20,12 @@ Bugfixes * /robots.txt was never being built (Issue #2098) * SVG thumbnails (Issue #2094) +Deprecations +------------ + +* Post.section_link is now deprecated (Issue #2086). Use + site....
Bitmessage__PyBitmessage-1317
checkdeps.py broken ``` Traceback (most recent call last): File "checkdeps.py", line 142, in <module> if x in EXTRAS_REQUIRE_DEPS KeyError: None ```
[ { "content": "\"\"\"\nUtility functions to check the availability of dependencies\nand suggest how it may be installed\n\"\"\"\n\nimport sys\n\n# Only really old versions of Python don't have sys.hexversion. We don't\n# support them. The logging module was introduced in Python 2.3\nif not hasattr(sys, 'hexversi...
[ { "content": "\"\"\"\nUtility functions to check the availability of dependencies\nand suggest how it may be installed\n\"\"\"\n\nimport sys\n\n# Only really old versions of Python don't have sys.hexversion. We don't\n# support them. The logging module was introduced in Python 2.3\nif not hasattr(sys, 'hexversi...
diff --git a/src/depends.py b/src/depends.py index 06150642a4..39f5e759ac 100755 --- a/src/depends.py +++ b/src/depends.py @@ -137,7 +137,7 @@ def detectOSRelease(): for line in osRelease: if line.startswith("NAME="): detectOS.result = OS_RELEASE.get( - line.spl...
awslabs__gluonts-1893
Getting NaN loss after some time with DeepAR and NegativeBinomial ## Description I have a dataset with 129k time series of demand for products within some branches of a retailer. I'm having trouble with NaN loss ever since I started using GluonTS. At first, I discovered some NaN and Infinity values within my FEAT_DYNA...
[ { "content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\").\n# You may not use this file except in compliance with the License.\n# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE...
[ { "content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\").\n# You may not use this file except in compliance with the License.\n# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE...
diff --git a/src/gluonts/mx/distribution/neg_binomial.py b/src/gluonts/mx/distribution/neg_binomial.py index c3ba60a934..2cf4271e30 100644 --- a/src/gluonts/mx/distribution/neg_binomial.py +++ b/src/gluonts/mx/distribution/neg_binomial.py @@ -107,9 +107,8 @@ class NegativeBinomialOutput(DistributionOutput): @class...
napari__napari-2901
Brush size caps at 40 when changing it via code but does not cap the same way when trying to set it via ipython console ## 🐛 Bug I have the below code in one of my programs when I run that the brush size is printed out as 40 which makes sense as https://github.com/napari/napari/blob/master/napari/_qt/layer_controls/...
[ { "content": "import numpy as np\nfrom qtpy.QtCore import Qt\nfrom qtpy.QtGui import QColor, QPainter\nfrom qtpy.QtWidgets import (\n QButtonGroup,\n QCheckBox,\n QComboBox,\n QHBoxLayout,\n QLabel,\n QSlider,\n QSpinBox,\n QWidget,\n)\n\nfrom ...layers.labels._labels_constants import (\...
[ { "content": "import numpy as np\nfrom qtpy.QtCore import Qt\nfrom qtpy.QtGui import QColor, QPainter\nfrom qtpy.QtWidgets import (\n QButtonGroup,\n QCheckBox,\n QComboBox,\n QHBoxLayout,\n QLabel,\n QSlider,\n QSpinBox,\n QWidget,\n)\n\nfrom ...layers.labels._labels_constants import (\...
diff --git a/napari/_qt/layer_controls/qt_labels_controls.py b/napari/_qt/layer_controls/qt_labels_controls.py index 40026298ad9..0e58217ce8a 100644 --- a/napari/_qt/layer_controls/qt_labels_controls.py +++ b/napari/_qt/layer_controls/qt_labels_controls.py @@ -431,7 +431,9 @@ def _on_brush_size_change(self, event=None)...
nipy__nipype-2110
bvec and bval extraction from dti sequences ### Summary bval and bvec files are not kept during a conversion of certain dti dicoms using the dcm2niix interface. From what I can tell this might be due the appropriate pattern not being found in the stdout of dcm2niix. This search is performed on line 307 of the dcm2nii....
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"The dcm2nii module provides basic functions for dicom conversion\n\n Change directory to provide relative paths for doctests\n >>> import os\n >>> filepath = os.path.dirname( os.path.realpath( __file__ ) )\n >>> datadir = os.path.realpath(os.path.join(filepat...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"The dcm2nii module provides basic functions for dicom conversion\n\n Change directory to provide relative paths for doctests\n >>> import os\n >>> filepath = os.path.dirname( os.path.realpath( __file__ ) )\n >>> datadir = os.path.realpath(os.path.join(filepat...
diff --git a/nipype/interfaces/dcm2nii.py b/nipype/interfaces/dcm2nii.py index 62e62b6672..8379834b81 100644 --- a/nipype/interfaces/dcm2nii.py +++ b/nipype/interfaces/dcm2nii.py @@ -304,7 +304,7 @@ def _parse_stdout(self, stdout): bvals.append(out_file + ".bval") find_...
iterative__dvc-6845
plots --open: not working on macOS We use relpath to open files in the browser. https://github.com/iterative/dvc/blob/59cfc2c4a43e9b9d2fdb583da80d24e82ae39c26/dvc/command/plots.py#L60 This is mostly done to support `wsl`, and the fact that all other Platform seem to work, if it's relative or absolute. The reas...
[ { "content": "import argparse\nimport logging\n\nfrom dvc.command import completion\nfrom dvc.command.base import CmdBase, append_doc_link, fix_subparsers\nfrom dvc.exceptions import DvcException\nfrom dvc.render.utils import find_vega, render\nfrom dvc.ui import ui\nfrom dvc.utils import format_link\n\nlogger ...
[ { "content": "import argparse\nimport logging\n\nfrom dvc.command import completion\nfrom dvc.command.base import CmdBase, append_doc_link, fix_subparsers\nfrom dvc.exceptions import DvcException\nfrom dvc.render.utils import find_vega, render\nfrom dvc.ui import ui\nfrom dvc.utils import format_link\n\nlogger ...
diff --git a/dvc/command/plots.py b/dvc/command/plots.py index 36241a61db..28611fb8dd 100644 --- a/dvc/command/plots.py +++ b/dvc/command/plots.py @@ -68,8 +68,12 @@ def run(self): if self.args.open: import webbrowser + from platform import uname - opened ...
django-import-export__django-import-export-322
Csv files should be opened with universal new line mode When attempting to open a file saved on a windows computer import-export throw an error: Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode? It looks like U needs to be added to the open call - see http://st...
[ { "content": "from __future__ import unicode_literals\nfrom django.utils.six import moves\n\nimport warnings\nimport tablib\n\ntry:\n from tablib.compat import xlrd\n\n XLS_IMPORT = True\nexcept ImportError:\n try:\n import xlrd # NOQA\n\n XLS_IMPORT = True\n except ImportError:\n ...
[ { "content": "from __future__ import unicode_literals\nfrom django.utils.six import moves\n\nimport warnings\nimport tablib\n\ntry:\n from tablib.compat import xlrd\n\n XLS_IMPORT = True\nexcept ImportError:\n try:\n import xlrd # NOQA\n\n XLS_IMPORT = True\n except ImportError:\n ...
diff --git a/import_export/formats/base_formats.py b/import_export/formats/base_formats.py index 6c1f3bae3..450b5c3d5 100644 --- a/import_export/formats/base_formats.py +++ b/import_export/formats/base_formats.py @@ -119,19 +119,10 @@ def is_binary(self): return False -class CSV(TablibFormat): - """ - ...
google__turbinia-826
Jupyter FileExtractionTask task fails ``` 2021-02-25 17:17:55 [INFO] Execution of [['sudo', 'image_export.py', '--logfile', '/evidence/1614273470-4a7632dfe76c428797ce0ddeafc684bf-FileArtifactExtractionTask/4a7632dfe76c428797ce0ddeafc684bf.log', '-w', '/evidence/1614273470-4a7632dfe76c428797ce0ddeafc684bf-FileArtifactE...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2020 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2020 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U...
diff --git a/turbinia/workers/analysis/jupyter.py b/turbinia/workers/analysis/jupyter.py index 96ae5829b..d77be1eb1 100644 --- a/turbinia/workers/analysis/jupyter.py +++ b/turbinia/workers/analysis/jupyter.py @@ -61,9 +61,9 @@ def run(self, evidence, result): result.report_data = report # Write the report t...
fedora-infra__bodhi-1727
comment(email=True) does not work See the docstring for `comment(email=)`: ``` def comment(self, update, comment, karma=0, email=None): """ Add a comment to an update. :arg update: The title of the update comment on. :arg comment: The text of the comment. :kwarg karma: The karma of...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2007-2016 Red Hat, Inc.\n# This file is part of bodhi\n#\n# This software is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# versi...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2007-2016 Red Hat, Inc.\n# This file is part of bodhi\n#\n# This software is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# versi...
diff --git a/bodhi/client/bindings.py b/bodhi/client/bindings.py index 8f24b9752b..57c426045e 100644 --- a/bodhi/client/bindings.py +++ b/bodhi/client/bindings.py @@ -289,7 +289,8 @@ def comment(self, update, comment, karma=0, email=None): :arg update: The title of the update comment on. :arg comment:...
pypa__pipenv-4423
Python 3.10 is shown as python_version = "3.1" in Pipfile and Pipfile.lock ### Issue description Python 3.10 is shown as `python_version = "3.1"` in Pipfile and Pipfile.lock ``` "requires": { "python_version": "3.1" }, ``` ### Expected result `python_version = "3.10"` ### ...
[ { "content": "# -*- coding: utf-8 -*-\nimport base64\nimport fnmatch\nimport glob\nimport hashlib\nimport io\nimport json\nimport operator\nimport os\nimport re\nimport sys\n\nimport six\nimport toml\nimport tomlkit\nimport vistir\n\nimport pipfile\nimport pipfile.api\n\nfrom .vendor.cached_property import cach...
[ { "content": "# -*- coding: utf-8 -*-\nimport base64\nimport fnmatch\nimport glob\nimport hashlib\nimport io\nimport json\nimport operator\nimport os\nimport re\nimport sys\n\nimport six\nimport toml\nimport tomlkit\nimport vistir\n\nimport pipfile\nimport pipfile.api\n\nfrom .vendor.cached_property import cach...
diff --git a/news/4379.bugfix.rst b/news/4379.bugfix.rst new file mode 100644 index 0000000000..5d1e550f58 --- /dev/null +++ b/news/4379.bugfix.rst @@ -0,0 +1 @@ +Handle Python major and minor versions correctly in Pipfile creation. diff --git a/pipenv/project.py b/pipenv/project.py index f3016d4036..8f5cb7a549 100644 ...
numba__numba-814
BUG JIT optimizer removes index-variables after the loop It seemes that the optimizer removes all variables that look like index variables after the loop is completed (or before the next loop is started). For example, the following code: ``` from numba import jit import numpy as np @jit('f8[:](f8[:])') def test(x): ...
[ { "content": "from __future__ import print_function, division, absolute_import\n\nfrom numba import utils\nfrom numba.bytecode import ByteCodeInst, CustomByteCode\n\n\ndef lift_loop(bytecode, dispatcher_factory):\n \"\"\"Lift the top-level loops.\n\n Returns (outer, loops)\n ------------------------\n ...
[ { "content": "from __future__ import print_function, division, absolute_import\n\nfrom numba import utils\nfrom numba.bytecode import ByteCodeInst, CustomByteCode\n\n\ndef lift_loop(bytecode, dispatcher_factory):\n \"\"\"Lift the top-level loops.\n\n Returns (outer, loops)\n ------------------------\n ...
diff --git a/numba/looplifting.py b/numba/looplifting.py index 9944202e133..2cb26d5e815 100644 --- a/numba/looplifting.py +++ b/numba/looplifting.py @@ -20,6 +20,13 @@ def lift_loop(bytecode, dispatcher_factory): outer_rds, outer_wrs = find_varnames_uses(bytecode, outer) outer_wrs |= set(bytecode.argspec.args...
qutip__qutip-795
HEOM solver bug for a tensor product of systems: requires a change of dimensions In the construction of the RHS of the equation for the Hierarchy Equations of Motion (`non_markov/heom`) there is a bug found by @nwlambert . If the 'system' is actually a tensor product of systems it fails as the dimensions are incorrect....
[ { "content": "# This file is part of QuTiP: Quantum Toolbox in Python.\n#\n# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson,\n# Neill Lambert, Anubhav Vardhan, Alexander Pitchford.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms...
[ { "content": "# This file is part of QuTiP: Quantum Toolbox in Python.\n#\n# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson,\n# Neill Lambert, Anubhav Vardhan, Alexander Pitchford.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms...
diff --git a/qutip/nonmarkov/heom.py b/qutip/nonmarkov/heom.py index 498802dd13..078c52d4d0 100644 --- a/qutip/nonmarkov/heom.py +++ b/qutip/nonmarkov/heom.py @@ -307,8 +307,12 @@ def configure(self, H_sys, coup_op, coup_strength, temperature, if stats: stats.add_message('options', 'renorm...
pypa__setuptools-1554
build_meta does not include setup.py When someone invokes the build operation via the ``build_meta`` (via https://github.com/pypa/setuptools/blob/master/setuptools/build_meta.py#L170 - https://www.python.org/dev/peps/pep-0517/#build-sdist) the ``setup.py`` is no longer automatically packaged. In case of ``python set...
[ { "content": "\"\"\"setuptools.command.egg_info\n\nCreate a distribution's .egg-info directory and contents\"\"\"\n\nfrom distutils.filelist import FileList as _FileList\nfrom distutils.errors import DistutilsInternalError\nfrom distutils.util import convert_path\nfrom distutils import log\nimport distutils.err...
[ { "content": "\"\"\"setuptools.command.egg_info\n\nCreate a distribution's .egg-info directory and contents\"\"\"\n\nfrom distutils.filelist import FileList as _FileList\nfrom distutils.errors import DistutilsInternalError\nfrom distutils.util import convert_path\nfrom distutils import log\nimport distutils.err...
diff --git a/changelog.d/1554.change.rst b/changelog.d/1554.change.rst new file mode 100644 index 0000000000..d55c042ce4 --- /dev/null +++ b/changelog.d/1554.change.rst @@ -0,0 +1 @@ +``build_meta.build_sdist`` now includes ``setup.py`` in source distributions by default diff --git a/setuptools/command/egg_info.py b/se...
vispy__vispy-544
Bug when pressing a weird button on the keyboard ``` WARNING: Traceback (most recent call last): File ".\examples\demo\gloo\brain.py", line 156, in <module> app.run() File "D:\Git\vispy\vispy\app\_default_app.py", line 54, in run return default_app.run() File "D:\Git\vispy\vispy\app\application.py", line ...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2014, Vispy Development Team.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\nfrom __future__ import division, print_function\n\nimport sys\nimport numpy as np\nfrom time import sleep\n\nfrom ..util.event import EmitterGroup, E...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2014, Vispy Development Team.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\nfrom __future__ import division, print_function\n\nimport sys\nimport numpy as np\nfrom time import sleep\n\nfrom ..util.event import EmitterGroup, E...
diff --git a/vispy/app/canvas.py b/vispy/app/canvas.py index f4c1dd3ae2..1bb831e159 100644 --- a/vispy/app/canvas.py +++ b/vispy/app/canvas.py @@ -217,9 +217,10 @@ def toggle_fs(): self._keys_check = keys def keys_check(event): - use_name = event.key.name.lower() - ...
ansible__ansible-41429
nxos_vpc: get_vpc() fails for some platforms <!--- 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#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers...
[ { "content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers...
diff --git a/lib/ansible/modules/network/nxos/nxos_vpc.py b/lib/ansible/modules/network/nxos/nxos_vpc.py index 238937e4b672a7..018c8d9ad47702 100644 --- a/lib/ansible/modules/network/nxos/nxos_vpc.py +++ b/lib/ansible/modules/network/nxos/nxos_vpc.py @@ -190,7 +190,15 @@ def get_auto_recovery_default(module): def ge...
qtile__qtile-1738
Cannot input in gmrun window This commit 0f886606e1f35226b325f5405d43946976eae831 introduced a bug for `gmrun` windows at least. When spawning, one cannot input text into it. This is fixed by unfloating the window, and continues to work even when refloating it. Window properties: ``` _NET_WM_USER_TIME(CARDINAL) ...
[ { "content": "# Copyright (c) 2010 matt\n# Copyright (c) 2010-2011 Paul Colomiets\n# Copyright (c) 2011 Mounier Florian\n# Copyright (c) 2012 Craig Barnes\n# Copyright (c) 2012, 2014-2015 Tycho Andersen\n# Copyright (c) 2013 Tao Sauvage\n# Copyright (c) 2013 Julien Iguchi-Cartigny\n# Copyright (c) 2014 ramnes\n...
[ { "content": "# Copyright (c) 2010 matt\n# Copyright (c) 2010-2011 Paul Colomiets\n# Copyright (c) 2011 Mounier Florian\n# Copyright (c) 2012 Craig Barnes\n# Copyright (c) 2012, 2014-2015 Tycho Andersen\n# Copyright (c) 2013 Tao Sauvage\n# Copyright (c) 2013 Julien Iguchi-Cartigny\n# Copyright (c) 2014 ramnes\n...
diff --git a/libqtile/layout/floating.py b/libqtile/layout/floating.py index 4b62c17eaa..25a6e2fdce 100644 --- a/libqtile/layout/floating.py +++ b/libqtile/layout/floating.py @@ -209,6 +209,10 @@ def compute_client_position(self, client, screen): return above def configure(self, client, screen): + ...
microsoft__knossos-ksc-619
Python doesn't handle types in structured names properly For example, it breaks on https://github.com/microsoft/knossos-ksc/commit/36cf7d45796839b033f60828f81fb41731b39a2b. Perhaps it is expecting the applied type to be the argument type of the derived function (it should be expecting it to be the argument type of the ...
[ { "content": "\"\"\"\ntype_propagate: Type propagation for Knossos IR\n\"\"\"\n\nimport itertools\nfrom typing import Union, List\nfrom ksc.type import Type, SizeType, shape_type, make_tuple_if_many\n\nfrom ksc.expr import Expr, Def, EDef, GDef, Rule, Const, Var, Lam, Call, Let, If, Assert\nfrom ksc.expr import...
[ { "content": "\"\"\"\ntype_propagate: Type propagation for Knossos IR\n\"\"\"\n\nimport itertools\nfrom typing import Union, List\nfrom ksc.type import Type, SizeType, shape_type, make_tuple_if_many\n\nfrom ksc.expr import Expr, Def, EDef, GDef, Rule, Const, Var, Lam, Call, Let, If, Assert\nfrom ksc.expr import...
diff --git a/src/python/ksc/type_propagate.py b/src/python/ksc/type_propagate.py index 9a2f01fcb..2a6e78009 100644 --- a/src/python/ksc/type_propagate.py +++ b/src/python/ksc/type_propagate.py @@ -176,7 +176,7 @@ def _(ex, symtab): argtype = make_tuple_if_many(argtypes) old_ty, sname = ex.name.add_type(argtyp...
ietf-tools__datatracker-6827
Datatracker Searches No Longer Return RFCs for WG document Searches ### Describe the issue rom: "Acee Lindem" <acee.lindem@gmail.com> Date: Thu, 14 Dec 2023 18:57:48 -0500 To: "IETF Support via RT" <support@ietf.org> Subject: Datatracker Searches No Longer Return RFCs for WG document Searches When searching ...
[ { "content": "# Copyright The IETF Trust 2009-2023, All Rights Reserved\n# -*- coding: utf-8 -*-\n#\n# Some parts Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).\n# All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>\n#\n# Redistribution and use in source and binary forms, w...
[ { "content": "# Copyright The IETF Trust 2009-2023, All Rights Reserved\n# -*- coding: utf-8 -*-\n#\n# Some parts Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).\n# All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>\n#\n# Redistribution and use in source and binary forms, w...
diff --git a/ietf/doc/tests.py b/ietf/doc/tests.py index 8ae588ad1d..2a79c65ccb 100644 --- a/ietf/doc/tests.py +++ b/ietf/doc/tests.py @@ -1,4 +1,4 @@ -# Copyright The IETF Trust 2012-2020, All Rights Reserved +# Copyright The IETF Trust 2012-2023, All Rights Reserved # -*- coding: utf-8 -*- @@ -156,6 +156,23 @@ d...
qtile__qtile-2913
Scratchpad alternates opening with and without focus I'm seeing some slightly odd behaviour in my scratchpad (running Alacritty) where the alt key is not being respected. For exampled `alt`+`.` in a terminal would give me the last argument from the previous command and `alt` + number gives a different screen in `irssi`...
[ { "content": "# Copyright (c) 2017, Dirk Hartmann\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, copy,...
[ { "content": "# Copyright (c) 2017, Dirk Hartmann\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, copy,...
diff --git a/libqtile/scratchpad.py b/libqtile/scratchpad.py index 38c369d0fc..c7917ec7c8 100644 --- a/libqtile/scratchpad.py +++ b/libqtile/scratchpad.py @@ -112,7 +112,7 @@ def show(self): # add hooks to determine if focus get lost if self.on_focus_lost_hide: if self.warp_po...
microsoft__ptvsd-84
Debugging modules (using -m switch) This is currently not supported
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nimport sys\n\n\n__author__ = \"Microsoft Corporation <ptvshelp@microsoft.com>\"\n__version__ = \"4.0.0a1\"\n\nDONT_DEBUG = []\n\n\ndef debug...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nimport sys\n\n\n__author__ = \"Microsoft Corporation <ptvshelp@microsoft.com>\"\n__version__ = \"4.0.0a1\"\n\nDONT_DEBUG = []\n\n\ndef debug...
diff --git a/ptvsd/debugger.py b/ptvsd/debugger.py index 940ff8206..42dbad3bc 100644 --- a/ptvsd/debugger.py +++ b/ptvsd/debugger.py @@ -19,11 +19,16 @@ def debug(filename, port_num, debug_id, debug_options, run_as): import ptvsd.wrapper import pydevd - sys.argv[1:0] = [ + args = [ '--por...
Project-MONAI__MONAI-376
Bug in RandAffined transformations **Describe the bug** When RandAffined is called on a dict containing more than one array (for example an image and a segmentation), and if `self.rand_affine.do_transform` is false, then the transformation returns the wrong result for everything after the first array. **To Reprod...
[ { "content": "# Copyright 2020 MONAI Consortium\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable l...
[ { "content": "# Copyright 2020 MONAI Consortium\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable l...
diff --git a/monai/transforms/spatial/array.py b/monai/transforms/spatial/array.py index a8e66f3eaf..da43e18576 100644 --- a/monai/transforms/spatial/array.py +++ b/monai/transforms/spatial/array.py @@ -795,7 +795,7 @@ def __call__(self, img, grid, mode="bilinear"): """ if not torch.is_tensor(img): ...
wright-group__WrightTools-811
BUG: Add support for lists of pathlib objects https://github.com/wright-group/WrightTools/blob/671b66ff8cfdc66e56fd5bd225ab6fefa8f14bc9/WrightTools/_group.py#L70-L85 See #639, Just extending to lists
[ { "content": "\"\"\"Group base class.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport shutil\nimport os\nimport sys\nimport pathlib\nimport weakref\nimport tempfile\nimport posixpath\nimport warnings\n\nimport numpy as np\n\nimport h5py\...
[ { "content": "\"\"\"Group base class.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport shutil\nimport os\nimport sys\nimport pathlib\nimport weakref\nimport tempfile\nimport posixpath\nimport warnings\n\nimport numpy as np\n\nimport h5py\...
diff --git a/WrightTools/_group.py b/WrightTools/_group.py index 0d0d582fc..58a8c682c 100644 --- a/WrightTools/_group.py +++ b/WrightTools/_group.py @@ -70,7 +70,7 @@ def __init__(self, file=None, parent=None, name=None, **kwargs): try: if isinstance(value, pathlib.Path): ...
cornellius-gp__gpytorch-1977
[Bug] IF-construction leads to RuntimeError in polynomial kernel # 🐛 Bug I wanted to train a gp-model, so I made everything like in [tutorials](https://docs.gpytorch.ai/en/stable/examples/04_Variational_and_Approximate_GPs/SVGP_Multitask_GP_Regression.html). The code works with Linear and RBF kernels, but it does ...
[ { "content": "#!/usr/bin/env python3\n\nfrom typing import Optional\n\nimport torch\n\nfrom ..constraints import Interval, Positive\nfrom ..priors import Prior\nfrom .kernel import Kernel\n\n\nclass PolynomialKernel(Kernel):\n r\"\"\"\n Computes a covariance matrix based on the Polynomial kernel\n betw...
[ { "content": "#!/usr/bin/env python3\n\nfrom typing import Optional\n\nimport torch\n\nfrom ..constraints import Interval, Positive\nfrom ..priors import Prior\nfrom .kernel import Kernel\n\n\nclass PolynomialKernel(Kernel):\n r\"\"\"\n Computes a covariance matrix based on the Polynomial kernel\n betw...
diff --git a/gpytorch/kernels/polynomial_kernel.py b/gpytorch/kernels/polynomial_kernel.py index 8171770bd..405051bc9 100644 --- a/gpytorch/kernels/polynomial_kernel.py +++ b/gpytorch/kernels/polynomial_kernel.py @@ -93,7 +93,7 @@ def forward( if diag: return ((x1 * x2).sum(dim=-1) + self.offset)....
PaddlePaddle__PaddleDetection-1567
使用yolov3_mobilenet_v1_voc.yml训练时出错 Traceback (most recent call last): File "tools/train.py", line 372, in <module> main() File "tools/train.py", line 70, in main cfg = load_config(FLAGS.config) File "/home/aistudio/PaddleDetection/ppdet/core/workspace.py", line 86, in load_config cfg = merge_con...
[ { "content": "# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/ppdet/core/workspace.py b/ppdet/core/workspace.py index 03c53df58a9..d7074a1f434 100644 --- a/ppdet/core/workspace.py +++ b/ppdet/core/workspace.py @@ -139,7 +139,7 @@ def merge_config(config, another_cfg=None): # batch size config to global, models can get batch size config # from gl...
pyg-team__pytorch_geometric-7387
Fail to import Nell dataset ### 🐛 Describe the bug I tried to import Nell data set using NELL class: from torch_geometric.datasets import NELL dataset = NELL(root='data/Nell') data = dataset[0] But I got the following error message: Traceback (most recent call last): File "c:\Users\13466\Desktop\USTLab\La...
[ { "content": "import warnings\nfrom typing import Dict, List, Optional, Tuple, Union\n\nimport numpy as np\nimport torch\nfrom torch import Tensor\n\nWITH_PT2 = int(torch.__version__.split('.')[0]) >= 2\n\ntry:\n import pyg_lib # noqa\n WITH_PYG_LIB = True\n WITH_GMM = WITH_PT2 and hasattr(pyg_lib.ops...
[ { "content": "import warnings\nfrom typing import Dict, List, Optional, Tuple, Union\n\nimport numpy as np\nimport torch\nfrom torch import Tensor\n\nWITH_PT2 = int(torch.__version__.split('.')[0]) >= 2\n\ntry:\n import pyg_lib # noqa\n WITH_PYG_LIB = True\n WITH_GMM = WITH_PT2 and hasattr(pyg_lib.ops...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 888cb7c7d5c0..83984b37f3e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -217,7 +217,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Infer correct CUDA device ID in `profileit` decorator ([#6164](https://github.com/pyg-team/pytorch...
encode__httpx-383
Python 3.6 RuntimeError: read() called while another coroutine is already waiting for incoming data Running in python 3.7 and 3.8 have been going beautifully, but now I've decided I wanted to add my API client using httpx to a Python 3.6 project, and I'm getting the above error whenever I try to call httpx. Below is th...
[ { "content": "import asyncio\nimport functools\nimport ssl\nimport typing\nfrom types import TracebackType\n\nfrom ..config import PoolLimits, TimeoutConfig\nfrom ..exceptions import ConnectTimeout, PoolTimeout, ReadTimeout, WriteTimeout\nfrom .base import (\n BaseBackgroundManager,\n BaseEvent,\n Base...
[ { "content": "import asyncio\nimport functools\nimport ssl\nimport typing\nfrom types import TracebackType\n\nfrom ..config import PoolLimits, TimeoutConfig\nfrom ..exceptions import ConnectTimeout, PoolTimeout, ReadTimeout, WriteTimeout\nfrom .base import (\n BaseBackgroundManager,\n BaseEvent,\n Base...
diff --git a/httpx/concurrency/asyncio.py b/httpx/concurrency/asyncio.py index 696e32c148..5d3501447d 100644 --- a/httpx/concurrency/asyncio.py +++ b/httpx/concurrency/asyncio.py @@ -81,6 +81,12 @@ async def read( except asyncio.TimeoutError: if should_raise: raise Rea...
tensorflow__addons-2324
Channel Found None in MaxUnPooling2D **System information** - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Colab - TensorFlow version and how it was installed (source or binary): 2.4.0 - TensorFlow-Addons version and how it was installed (source or binary): - Python version: 3.7 - Is GPU used? (yes/no)...
[ { "content": "# Copyright 2020 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# Copyright 2020 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/tensorflow_addons/layers/max_unpooling_2d.py b/tensorflow_addons/layers/max_unpooling_2d.py index c8e1bf3231..4e83fd16d8 100644 --- a/tensorflow_addons/layers/max_unpooling_2d.py +++ b/tensorflow_addons/layers/max_unpooling_2d.py @@ -59,6 +59,7 @@ def _max_unpooling_2d(updates, mask, pool_size=(2, 2), stri...
quantumlib__Cirq-6505
Deep map_operations doesn't preserve CircuitOperation tags **Description of the issue** When calling `map_operations` with `deep=True`, tags on FrozenCircuits inside CircuitOperations are not preserved. **How to reproduce the issue** ```python c = cirq.Circuit.from_moments(cirq.FrozenCircuit().with_tags("asdf...
[ { "content": "# Copyright 2021 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright 2021 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/cirq-core/cirq/transformers/transformer_primitives.py b/cirq-core/cirq/transformers/transformer_primitives.py index fc2125b39ab..1c131927564 100644 --- a/cirq-core/cirq/transformers/transformer_primitives.py +++ b/cirq-core/cirq/transformers/transformer_primitives.py @@ -53,12 +53,9 @@ def _to_target_circu...
nvaccess__nvda-13706
NVDA does not announce the non-editable state of a non-editable JTextField (Java Access Bridge) <!-- Please read the text in this edit field before filling it in. Please thoroughly read NVDA's wiki article on how to fill in this template, including how to provide the required files. Issues may be closed if the requir...
[ { "content": "# A part of NonVisual Desktop Access (NVDA)\r\n# Copyright (C) 2006-2021 NV Access Limited, Leonard de Ruijter, Joseph Lee, Renaud Paquay, pvagner\r\n# This file is covered by the GNU General Public License.\r\n# See the file COPYING for more details.\r\n\r\nimport ctypes\r\nimport re\r\nimport ev...
[ { "content": "# A part of NonVisual Desktop Access (NVDA)\r\n# Copyright (C) 2006-2021 NV Access Limited, Leonard de Ruijter, Joseph Lee, Renaud Paquay, pvagner\r\n# This file is covered by the GNU General Public License.\r\n# See the file COPYING for more details.\r\n\r\nimport ctypes\r\nimport re\r\nimport ev...
diff --git a/source/NVDAObjects/JAB/__init__.py b/source/NVDAObjects/JAB/__init__.py index af1c7115e29..c9aa7b642aa 100644 --- a/source/NVDAObjects/JAB/__init__.py +++ b/source/NVDAObjects/JAB/__init__.py @@ -312,6 +312,8 @@ def _get_states(self): for state in stateStrings: if state in JABStatesToNVDAStates: ...
google__personfinder-407
sms_number_to_repo should have default value Should be initialized here: https://github.com/google/personfinder/blob/546f238fab407145292cc81c5e5682ad952f92f6/app/setup_pf.py#L62 Otherwise it shows error on save of global admin page unless the user fills it manually.
[ { "content": "# Copyright 2009-2010 by Ka-Ping Yee\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 2009-2010 by Ka-Ping Yee\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/app/setup_pf.py b/app/setup_pf.py index 2e8d528254..cf50549c64 100644 --- a/app/setup_pf.py +++ b/app/setup_pf.py @@ -64,6 +64,7 @@ def setup_configs(): # A Google Translate API key with a very low quota, just for testing. translate_api_key='AIzaSyCXdz9x7LDL3BvieEP8Wcze64CC_iqslSE', ...
pwndbg__pwndbg-1872
fails to load on startup with "NameError: name 'CS_ARCH_RISCV' is not defined" ### Description I just updated pwndbg and ran setup.sh. Afterwards gdb just fails to load pwndbg. ```text GNU gdb (Ubuntu 12.0.90-0ubuntu1) 12.0.90 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or...
[ { "content": "from __future__ import annotations\n\nimport cProfile\nimport glob\nimport locale\nimport os\nimport site\nimport sys\nimport time\nfrom glob import glob\nfrom os import environ\nfrom os import path\n\n_profiler = cProfile.Profile()\n\n_start_time = None\nif environ.get(\"PWNDBG_PROFILE\") == \"1\...
[ { "content": "from __future__ import annotations\n\nimport cProfile\nimport glob\nimport locale\nimport os\nimport site\nimport sys\nimport time\nfrom glob import glob\nfrom os import environ\nfrom os import path\n\n_profiler = cProfile.Profile()\n\n_start_time = None\nif environ.get(\"PWNDBG_PROFILE\") == \"1\...
diff --git a/gdbinit.py b/gdbinit.py index 5b2cd860ca9..b379c8fbcd0 100644 --- a/gdbinit.py +++ b/gdbinit.py @@ -50,8 +50,13 @@ # Add gdb-pt-dump directory to sys.path so it can be imported gdbpt = path.join(directory, "gdb-pt-dump") - sys.path.append(directory) - sys.path.append(gdbpt) + sys.path....
kivy__kivy-2645
Forcing img_pil causes an error when trying to load PNGs When I force PIL provider using `export KIVY_IMAGE=img_pil` Kivy exits with this error log: I have installed Pillow library from PyPI. ``` [INFO ] [Logger ] Record log in /mnt/data/logs/kivy_69-12-31_5.txt [INFO ] Kivy v1.9.0-dev [INFO ] [Python ...
[ { "content": "'''\nPIL: PIL image loader\n'''\n\n__all__ = ('ImageLoaderPIL', )\n\ntry:\n from PIL import Image as PILImage\nexcept:\n import Image as PILImage\n\nfrom kivy.logger import Logger\nfrom kivy.core.image import ImageLoaderBase, ImageData, ImageLoader\n\n\nclass ImageLoaderPIL(ImageLoaderBase):...
[ { "content": "'''\nPIL: PIL image loader\n'''\n\n__all__ = ('ImageLoaderPIL', )\n\ntry:\n from PIL import Image as PILImage\nexcept:\n import Image as PILImage\n\nfrom kivy.logger import Logger\nfrom kivy.core.image import ImageLoaderBase, ImageData, ImageLoader\n\n\nclass ImageLoaderPIL(ImageLoaderBase):...
diff --git a/kivy/core/image/img_pil.py b/kivy/core/image/img_pil.py index 57599395ee..4f299a0cc2 100644 --- a/kivy/core/image/img_pil.py +++ b/kivy/core/image/img_pil.py @@ -72,7 +72,7 @@ def _img_read(self, im): while True: img_tmp = im img_tmp = self._img_correct(img_tm...
Lightning-AI__torchmetrics-1919
for BinaryCalibrationError the n_bins needs to be 1 less than actual to match manual calculation ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> given this example ```python from torch import tensor from torchmetrics.classification import BinaryCalibrationError preds = tensor([0.25, ...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6df9cbe0d63..bf3017ccdf6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,7 +31,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- +- Fixed bug in `CalibrationError` where calculations for double precision input was ...
mesonbuild__meson-5633
D: strip unsupported -D (and -f) flags for ldc2 Building [tilix](https://github.com/gnunn1/tilix) on FreeBSD, where the x11 pkgconf file contains a define flag: ``` % cat /usr/local/libdata/pkgconfig/x11.pc […] Cflags: -I${includedir} -D_THREAD_SAFE ``` ``` [1/63] ldc2 -I=tilix@exe -I=. -I=.. -I=../source/ -...
[ { "content": "# Copyright 2012-2017 The Meson development 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 req...
[ { "content": "# Copyright 2012-2017 The Meson development 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 req...
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index b7bc49a13fbf..9d9863bb287d 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -356,6 +356,10 @@ def translate_args_to_nongnu(cls, args): # Translate common D arguments here. if arg == '-pthread': ...
kartoza__prj.app-1077
Please include project name in certifying org admin <img width="895" alt="image" src="https://user-images.githubusercontent.com/178003/67474466-6ab98000-f64c-11e9-8a69-95e12e8bd404.png"> We have two Kartoza entries there - one for InaSAFE and one for QGIS - I nearly deleted the first not realising it was for InaSA...
[ { "content": "# coding=UTF-8\n\"\"\"Model admin class definitions.\"\"\"\n\nfrom django.contrib.gis import admin\nfrom simple_history.admin import SimpleHistoryAdmin\nfrom certification.models.certificate import Certificate\nfrom certification.models.course import Course\nfrom certification.models.training_cent...
[ { "content": "# coding=UTF-8\n\"\"\"Model admin class definitions.\"\"\"\n\nfrom django.contrib.gis import admin\nfrom simple_history.admin import SimpleHistoryAdmin\nfrom certification.models.certificate import Certificate\nfrom certification.models.course import Course\nfrom certification.models.training_cent...
diff --git a/django_project/certification/admin.py b/django_project/certification/admin.py index 60fab644a..e8bf57594 100644 --- a/django_project/certification/admin.py +++ b/django_project/certification/admin.py @@ -141,7 +141,7 @@ class CertifyingOrganisationAdmin(SimpleHistoryAdmin): filter_horizontal = ('org...
Gallopsled__pwntools-1659
Fatal error when $TERM is not set I am trying to use `pwntools` in a SageMath script. This works great interactively, but when I run my script with `sage foo.sage`, it fails somewhere in terminal code. I have traced this back to sage unsetting $TERM in non-interactive calls due to https://trac.sagemath.org/ticket/12263...
[ { "content": "from __future__ import division\nfrom __future__ import print_function\n\n__all__ = ['get']\nimport curses\nimport os\nimport sys\n\ncache = None\n\ndef get(cap, *args, **kwargs):\n default = kwargs.pop('default', '')\n\n if 'PWNLIB_NOTERM' in os.environ:\n return ''\n\n # Hack for...
[ { "content": "from __future__ import division\nfrom __future__ import print_function\n\n__all__ = ['get']\nimport curses\nimport os\nimport sys\n\ncache = None\n\ndef get(cap, *args, **kwargs):\n default = kwargs.pop('default', '')\n\n if 'PWNLIB_NOTERM' in os.environ:\n return ''\n\n # Hack for...
diff --git a/pwnlib/term/unix_termcap.py b/pwnlib/term/unix_termcap.py index 1dc34f2ed..f850ddb41 100644 --- a/pwnlib/term/unix_termcap.py +++ b/pwnlib/term/unix_termcap.py @@ -60,6 +60,8 @@ def init(): except curses.error as e: import traceback print('Warning:', ''.join(traceback.for...
scikit-image__scikit-image-3919
`canny` dtype issue This behavior changed between 0.14 and 0.15. ``` from skimage import data, feature out = feature.canny(data.coins()) ``` `out` is a blank image! Works fine if you first do `img_as_float`. Likely has to do with switching to our own implementation of gaussian filtering in canny.
[ { "content": "\"\"\"\ncanny.py - Canny Edge detector\n\nReference: Canny, J., A Computational Approach To Edge Detection, IEEE Trans.\n Pattern Analysis and Machine Intelligence, 8:679-714, 1986\n\nOriginally part of CellProfiler, code licensed under both GPL and BSD licenses.\nWebsite: http://www.cellprofil...
[ { "content": "\"\"\"\ncanny.py - Canny Edge detector\n\nReference: Canny, J., A Computational Approach To Edge Detection, IEEE Trans.\n Pattern Analysis and Machine Intelligence, 8:679-714, 1986\n\nOriginally part of CellProfiler, code licensed under both GPL and BSD licenses.\nWebsite: http://www.cellprofil...
diff --git a/skimage/feature/_canny.py b/skimage/feature/_canny.py index 524ae0cb120..f0277d3f0d5 100644 --- a/skimage/feature/_canny.py +++ b/skimage/feature/_canny.py @@ -157,12 +157,12 @@ def canny(image, sigma=1., low_threshold=None, high_threshold=None, mask=None, dtype_max = dtype_limits(image, clip_negative...
mkdocs__mkdocs-660
Navigation not in alphanumeric order (when pages config is automatic) ##### mkdocs Version: 0.14.0 ##### Summary: I have a problem with the table of content of my docs. I want that my chapters are in the correct order. ##### Steps To Reproduce: In the docs folder there is the following structure: - docs/ - book/ ...
[ { "content": "from __future__ import unicode_literals\nimport os\n\nfrom mkdocs import utils, legacy\nfrom mkdocs.config.base import Config, ValidationError\n\n\nclass BaseConfigOption(object):\n\n def __init__(self):\n self.warnings = []\n self.default = None\n\n def is_required(self):\n ...
[ { "content": "from __future__ import unicode_literals\nimport os\n\nfrom mkdocs import utils, legacy\nfrom mkdocs.config.base import Config, ValidationError\n\n\nclass BaseConfigOption(object):\n\n def __init__(self):\n self.warnings = []\n self.default = None\n\n def is_required(self):\n ...
diff --git a/docs/about/release-notes.md b/docs/about/release-notes.md index fcf20b409b..0770f199fc 100644 --- a/docs/about/release-notes.md +++ b/docs/about/release-notes.md @@ -19,6 +19,7 @@ You can determine your currently installed version using `mkdocs --version`: * Fix issues when using absolute links to Markdow...
zulip__zulip-19971
Usr stream subscription status, private streams, and realm admins For private streams, the endpoint ``` /users/{user_id}/subscription/{stream_id} ``` will show invalid "stream id" even for administrators (I do get the stream id from `client.get_streams(include_all_active=True)`, so I should have access to the strea...
[ { "content": "from typing import Any, Dict, List, Optional, Union\n\nfrom django.conf import settings\nfrom django.http import HttpRequest, HttpResponse\nfrom django.shortcuts import redirect\nfrom django.utils.translation import gettext as _\n\nfrom zerver.decorator import require_member_or_admin, require_real...
[ { "content": "from typing import Any, Dict, List, Optional, Union\n\nfrom django.conf import settings\nfrom django.http import HttpRequest, HttpResponse\nfrom django.shortcuts import redirect\nfrom django.utils.translation import gettext as _\n\nfrom zerver.decorator import require_member_or_admin, require_real...
diff --git a/zerver/tests/test_users.py b/zerver/tests/test_users.py index e222a48f4a674..27670784119ac 100644 --- a/zerver/tests/test_users.py +++ b/zerver/tests/test_users.py @@ -1320,6 +1320,26 @@ def test_get_user_subscription_status(self) -> None: ) self.assertTrue(result["is_subscribed"]) + ...
python-discord__bot-1051
Suppress NotFound exception when removing reactions for help command Sentry Issue: [BOT-6X](https://sentry.io/organizations/python-discord/issues/1781203963/?referrer=github_integration) ``` TimeoutError: File "bot/cogs/help.py", line 40, in help_cleanup await bot.wait_for("reaction_add", check=check, time...
[ { "content": "import itertools\nimport logging\nfrom asyncio import TimeoutError\nfrom collections import namedtuple\nfrom contextlib import suppress\nfrom typing import List, Union\n\nfrom discord import Colour, Embed, Member, Message, NotFound, Reaction, User\nfrom discord.ext.commands import Bot, Cog, Comman...
[ { "content": "import itertools\nimport logging\nfrom asyncio import TimeoutError\nfrom collections import namedtuple\nfrom contextlib import suppress\nfrom typing import List, Union\n\nfrom discord import Colour, Embed, Member, Message, NotFound, Reaction, User\nfrom discord.ext.commands import Bot, Cog, Comman...
diff --git a/bot/cogs/help.py b/bot/cogs/help.py index 832f6ea6b4..70e62d5900 100644 --- a/bot/cogs/help.py +++ b/bot/cogs/help.py @@ -36,13 +36,12 @@ def check(reaction: Reaction, user: User) -> bool: await message.add_reaction(DELETE_EMOJI) - try: - await bot.wait_for("reaction_add", check=check, t...
dbt-labs__dbt-core-2766
dbt compile fails against redshift when using multi-threading ### Describe the bug When I run `dbt compile` against our redshift data warehouse the command fails with the error ``` KeyError: 'endpoint_resolver' ``` The error only occurs when threads > 1 and `method: iam` is used. From what I can gather this is...
[ { "content": "from multiprocessing import Lock\nfrom contextlib import contextmanager\nfrom typing import NewType\n\nfrom dbt.adapters.postgres import PostgresConnectionManager\nfrom dbt.adapters.postgres import PostgresCredentials\nfrom dbt.logger import GLOBAL_LOGGER as logger # noqa\nimport dbt.exceptions\n...
[ { "content": "from multiprocessing import Lock\nfrom contextlib import contextmanager\nfrom typing import NewType\n\nfrom dbt.adapters.postgres import PostgresConnectionManager\nfrom dbt.adapters.postgres import PostgresCredentials\nfrom dbt.logger import GLOBAL_LOGGER as logger # noqa\nimport dbt.exceptions\n...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f67d802b2e6..a1e8b2a9f27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,12 @@ ### Feature - Added 'Last Modified' stat in snowflake catalog macro. Now should be available in docs. ([#2728](https://github.com/fishtown-analytics/dbt/issues/2728)) +### Fixes +- `...
openstates__openstates-scrapers-2087
ID: scrape fails on substitute representative Once #2053 is merged, the people scraper is blowing up reading https://legislature.idaho.gov/house/membership/ . Search down to "Scanlin", who you'll find is a "substitute" representative. There's a parsing problem because the scraper expects the name to be bold and the...
[ { "content": "import re\nimport lxml.html\nfrom pupa.scrape import Scraper, Person\n\nBASE_URL = 'https://legislature.idaho.gov/%s/membership/'\nCHAMBERS = {'upper': 'senate', 'lower': 'house'}\nPARTY = {\n '(R)': 'Republican',\n '(D)': 'Democratic',\n}\n\nphone_patterns = {\n 'office': re.compile(r'St...
[ { "content": "import re\nimport lxml.html\nfrom pupa.scrape import Scraper, Person\n\nBASE_URL = 'https://legislature.idaho.gov/%s/membership/'\nCHAMBERS = {'upper': 'senate', 'lower': 'house'}\nPARTY = {\n '(R)': 'Republican',\n '(D)': 'Democratic',\n}\n\nphone_patterns = {\n 'office': re.compile(r'St...
diff --git a/openstates/id/people.py b/openstates/id/people.py index 26005c4166..e9c4197803 100644 --- a/openstates/id/people.py +++ b/openstates/id/people.py @@ -78,7 +78,8 @@ def scrape_chamber(self, chamber): img_url = row.xpath('.//img/@src')[0] inner = row.xpath('.//div[@class="vc-colum...
saleor__saleor-5117
Allow to search for products by SKU in admin dashboard ### What I'm trying to achieve I'm looking to find a product by its SKU ### Describe a proposed solution Tweak search engine settings to return products with full/partial SKU match.
[ { "content": "from django.contrib.postgres.search import TrigramSimilarity\nfrom django.db.models import Q\n\nfrom ...product.models import Product\n\n\ndef search(phrase):\n \"\"\"Return matching products for storefront views.\n\n Fuzzy storefront search that is resistant to small typing errors made\n ...
[ { "content": "from django.contrib.postgres.search import TrigramSimilarity\nfrom django.db.models import Q\n\nfrom ...product.models import Product\n\n\ndef search(phrase):\n \"\"\"Return matching products for storefront views.\n\n Fuzzy storefront search that is resistant to small typing errors made\n ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 13268b0e835..8ebb0b22205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ All notable, unreleased changes to this project will be documented in this file. - Remove gateways forms and templates - #5075 by @IKarbowiak - Add `Wishlist` models and GraphQL endpo...
strawberry-graphql__strawberry-1616
Bump pytest-aiohttp from 0.3.0 to 1.0.3 Bumps [pytest-aiohttp](https://github.com/aio-libs/pytest-aiohttp) from 0.3.0 to 1.0.3. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/aio-libs/pytest-aiohttp/blob/master/CHANGES.rst">pytest-aiohttp's changelog</a>.</em></p> <blockquote> <h...
[ { "content": "import json\nfrom io import BytesIO\nfrom pathlib import Path\nfrom typing import Any, Dict\n\nfrom aiohttp import web\nfrom strawberry.exceptions import MissingQueryError\nfrom strawberry.file_uploads.utils import replace_placeholders_with_files\nfrom strawberry.http import GraphQLRequestData, pa...
[ { "content": "import json\nfrom io import BytesIO\nfrom pathlib import Path\nfrom typing import Any, Dict\n\nfrom aiohttp import web\nfrom strawberry.exceptions import MissingQueryError\nfrom strawberry.file_uploads.utils import replace_placeholders_with_files\nfrom strawberry.http import GraphQLRequestData, pa...
diff --git a/poetry.lock b/poetry.lock index 03d2243d7e..98a1bdd174 100644 --- a/poetry.lock +++ b/poetry.lock @@ -952,15 +952,19 @@ testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xm [[package]] name = "pytest-aiohttp" -version = "0.3.0" -description = "pytest plugin for aiohttp suppo...
ArchipelagoMW__Archipelago-889
Reimplement /received When merging code for items_handling, `/received` for TextClient got broken, because "can receive, but can't send" is not a thing anymore. Actual implementation does not require a server update. I misremembered. no_location/tags and items_handling are completely separate. \ -- original text...
[ { "content": "from __future__ import annotations\nimport logging\nimport asyncio\nimport urllib.parse\nimport sys\nimport typing\nimport time\n\nimport ModuleUpdate\nModuleUpdate.update()\n\nimport websockets\n\nimport Utils\n\nif __name__ == \"__main__\":\n Utils.init_logging(\"TextClient\", exception_logge...
[ { "content": "from __future__ import annotations\nimport logging\nimport asyncio\nimport urllib.parse\nimport sys\nimport typing\nimport time\n\nimport ModuleUpdate\nModuleUpdate.update()\n\nimport websockets\n\nimport Utils\n\nif __name__ == \"__main__\":\n Utils.init_logging(\"TextClient\", exception_logge...
diff --git a/CommonClient.py b/CommonClient.py index 76623ff3f2ce..1a968bd91452 100644 --- a/CommonClient.py +++ b/CommonClient.py @@ -723,7 +723,7 @@ def get_base_parser(description=None): class TextContext(CommonContext): tags = {"AP", "IgnoreGame", "TextOnly"} game = "" # empty matches any ga...
ansible-collections__community.vmware-1243
community.vmware.vmware_dvs_host adding pNIC inverted (starting at Uplink 4) <!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ####...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2015, Joseph Callen <jcallen () csc.com>\n# Copyright: (c) 2018, Ansible Project\n# Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com>\n# Copyright: (c) 2019, VMware Inc.\n# GNU General Public License v3.0+ (see COPYING or htt...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2015, Joseph Callen <jcallen () csc.com>\n# Copyright: (c) 2018, Ansible Project\n# Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com>\n# Copyright: (c) 2019, VMware Inc.\n# GNU General Public License v3.0+ (see COPYING or htt...
diff --git a/changelogs/fragments/1243-vmware-dvs-host-uplink-ordering.yml b/changelogs/fragments/1243-vmware-dvs-host-uplink-ordering.yml new file mode 100644 index 0000000000..42ce61b229 --- /dev/null +++ b/changelogs/fragments/1243-vmware-dvs-host-uplink-ordering.yml @@ -0,0 +1,3 @@ +bugfixes: + - vmware_dvs_host -...
microsoft__presidio-782
typo in append_analysis_explenation_text It seems that there is a typo in the function name. append_analysis_expl**e**nation_text - > append_analysis_expl**a**nation_text
[ { "content": "import logging\nfrom typing import Dict\n\nfrom presidio_analyzer import AnalysisExplanation\n\n\nclass RecognizerResult:\n \"\"\"\n Recognizer Result represents the findings of the detected entity.\n\n Result of a recognizer analyzing the text.\n\n :param entity_type: the type of the ...
[ { "content": "import logging\nfrom typing import Dict\n\nfrom presidio_analyzer import AnalysisExplanation\n\n\nclass RecognizerResult:\n \"\"\"\n Recognizer Result represents the findings of the detected entity.\n\n Result of a recognizer analyzing the text.\n\n :param entity_type: the type of the ...
diff --git a/presidio-analyzer/presidio_analyzer/recognizer_result.py b/presidio-analyzer/presidio_analyzer/recognizer_result.py index 6656e8f84..278239c3e 100644 --- a/presidio-analyzer/presidio_analyzer/recognizer_result.py +++ b/presidio-analyzer/presidio_analyzer/recognizer_result.py @@ -35,7 +35,7 @@ def __init__(...
TheAlgorithms__Python-10361
missing_number algorithm dosen't work as intended (bit_manipulation/missing_number.py) ### Repository commit d0c54acd75cedf14cff353869482a0487fea1697 ### Python version (python --version) Python 3.12.0 ### Dependencies version (pip freeze) setuptools==68.2.2 wheel==0.41.2 ### Expected behavior for array [1,3,4,...
[ { "content": "def find_missing_number(nums: list[int]) -> int:\n \"\"\"\n Finds the missing number in a list of consecutive integers.\n\n Args:\n nums: A list of integers.\n\n Returns:\n The missing number.\n\n Example:\n >>> find_missing_number([0, 1, 3, 4])\n 2\n ...
[ { "content": "def find_missing_number(nums: list[int]) -> int:\n \"\"\"\n Finds the missing number in a list of consecutive integers.\n\n Args:\n nums: A list of integers.\n\n Returns:\n The missing number.\n\n Example:\n >>> find_missing_number([0, 1, 3, 4])\n 2\n ...
diff --git a/bit_manipulation/missing_number.py b/bit_manipulation/missing_number.py index 92502a778ace..32b949daa717 100644 --- a/bit_manipulation/missing_number.py +++ b/bit_manipulation/missing_number.py @@ -11,11 +11,18 @@ def find_missing_number(nums: list[int]) -> int: Example: >>> find_missing_numb...
getsentry__sentry-4738
Crash Reports Corrupt When System Symbols are Missing Currently it appears to be the case that when system symbols are missing on iOS frames are entirely removed from the output.
[ { "content": "from __future__ import absolute_import\n\nimport re\nimport six\n\nfrom symsynd.driver import Driver, SymbolicationError\nfrom symsynd.report import ReportSymbolizer\nfrom symsynd.macho.arch import get_cpu_name\n\nfrom sentry.lang.native.dsymcache import dsymcache\nfrom sentry.utils.safe import tr...
[ { "content": "from __future__ import absolute_import\n\nimport re\nimport six\n\nfrom symsynd.driver import Driver, SymbolicationError\nfrom symsynd.report import ReportSymbolizer\nfrom symsynd.macho.arch import get_cpu_name\n\nfrom sentry.lang.native.dsymcache import dsymcache\nfrom sentry.utils.safe import tr...
diff --git a/src/sentry/lang/native/symbolizer.py b/src/sentry/lang/native/symbolizer.py index e85d2633e78f8f..07eeff5ca74597 100644 --- a/src/sentry/lang/native/symbolizer.py +++ b/src/sentry/lang/native/symbolizer.py @@ -249,8 +249,9 @@ def symbolize_backtrace(self, backtrace, sdk_info=None): for idx, frm ...
celery__celery-6853
Process worker prefork behavior with `app.conf.update(config)` <!-- Please fill this template entirely and do not erase parts of it. We reserve the right to close without a response bug reports which are incomplete. --> # Checklist <!-- To check an item on the list replace [ ] with [x]. --> - [x] I have verifi...
[ { "content": "\"\"\"Configuration introspection and defaults.\"\"\"\nfrom collections import deque, namedtuple\nfrom datetime import timedelta\n\nfrom celery.utils.functional import memoize\nfrom celery.utils.serialization import strtobool\n\n__all__ = ('Option', 'NAMESPACES', 'flatten', 'find')\n\n\nDEFAULT_PO...
[ { "content": "\"\"\"Configuration introspection and defaults.\"\"\"\nfrom collections import deque, namedtuple\nfrom datetime import timedelta\n\nfrom celery.utils.functional import memoize\nfrom celery.utils.serialization import strtobool\n\n__all__ = ('Option', 'NAMESPACES', 'flatten', 'find')\n\n\nDEFAULT_PO...
diff --git a/celery/app/defaults.py b/celery/app/defaults.py index 1883f2565bb..70f4fb8b0ac 100644 --- a/celery/app/defaults.py +++ b/celery/app/defaults.py @@ -294,7 +294,7 @@ def __repr__(self): cancel_long_running_tasks_on_connection_loss=Option( False, type='bool' ), - concurre...
readthedocs__readthedocs.org-6402
Improve regex for semver in automation rules We have a very basic pattern, but on the semver faq they have a better one https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string This needs to be changed and with a comment to the link from where it came from. https://github.com/...
[ { "content": "\"\"\"Constants for the builds app.\"\"\"\n\nfrom django.conf import settings\nfrom django.utils.translation import ugettext_lazy as _\n\n\nBUILD_STATE_TRIGGERED = 'triggered'\nBUILD_STATE_CLONING = 'cloning'\nBUILD_STATE_INSTALLING = 'installing'\nBUILD_STATE_BUILDING = 'building'\nBUILD_STATE_FI...
[ { "content": "\"\"\"Constants for the builds app.\"\"\"\n\nfrom django.conf import settings\nfrom django.utils.translation import ugettext_lazy as _\n\n\nBUILD_STATE_TRIGGERED = 'triggered'\nBUILD_STATE_CLONING = 'cloning'\nBUILD_STATE_INSTALLING = 'installing'\nBUILD_STATE_BUILDING = 'building'\nBUILD_STATE_FI...
diff --git a/readthedocs/builds/constants.py b/readthedocs/builds/constants.py index 37cadf5e696..7fd6ce3e5f1 100644 --- a/readthedocs/builds/constants.py +++ b/readthedocs/builds/constants.py @@ -110,7 +110,10 @@ ALL_VERSIONS = 'all-versions' ALL_VERSIONS_REGEX = r'.*' SEMVER_VERSIONS = 'semver-versions' -SEMVER_VE...
zulip__zulip-20937
Show proper Error Message while generating API Key ![Screenshot from 2022-01-26 19-16-20](https://user-images.githubusercontent.com/76561593/151174278-97c62be4-d70a-4134-90cd-42acb9d00688.png) On submitting wrong password for generating API key, we're shown a error of 'Your username or password is incorrect.' which...
[ { "content": "import logging\nimport secrets\nimport urllib\nfrom functools import wraps\nfrom typing import Any, Dict, List, Mapping, Optional, cast\nfrom urllib.parse import urlencode\n\nimport jwt\nfrom cryptography.hazmat.primitives.ciphers.aead import AESGCM\nfrom django.conf import settings\nfrom django.c...
[ { "content": "import logging\nimport secrets\nimport urllib\nfrom functools import wraps\nfrom typing import Any, Dict, List, Mapping, Optional, cast\nfrom urllib.parse import urlencode\n\nimport jwt\nfrom cryptography.hazmat.primitives.ciphers.aead import AESGCM\nfrom django.conf import settings\nfrom django.c...
diff --git a/zerver/tests/test_auth_backends.py b/zerver/tests/test_auth_backends.py index 5bb5f9e25c8c0..ae84952755043 100644 --- a/zerver/tests/test_auth_backends.py +++ b/zerver/tests/test_auth_backends.py @@ -4345,7 +4345,7 @@ def test_wrong_password(self) -> None: user = self.example_user("hamlet") ...
Cloud-CV__EvalAI-2984
Handle the case where log group hasn't been created yet when displaying logs. It takes about 1.5 minutes for the logs group to get created on Cloudwatch once the workers are started for the first time. And if the host tries to view the logs in this period, they'll get an error message. **ToDo:** - [x] Change the ...
[ { "content": "import logging\nimport os\nimport random\nimport string\nimport yaml\n\nfrom botocore.exceptions import ClientError\nfrom django.conf import settings\nfrom django.core import serializers\nfrom django.core.files.temp import NamedTemporaryFile\nfrom http import HTTPStatus\nfrom rest_framework.authto...
[ { "content": "import logging\nimport os\nimport random\nimport string\nimport yaml\n\nfrom botocore.exceptions import ClientError\nfrom django.conf import settings\nfrom django.core import serializers\nfrom django.core.files.temp import NamedTemporaryFile\nfrom http import HTTPStatus\nfrom rest_framework.authto...
diff --git a/apps/challenges/aws_utils.py b/apps/challenges/aws_utils.py index f9876df92b..342068e248 100644 --- a/apps/challenges/aws_utils.py +++ b/apps/challenges/aws_utils.py @@ -961,6 +961,9 @@ def get_logs_from_cloudwatch( for event in response["events"]: logs.append(event["message"]...
django-cms__django-cms-3740
Fixes missing add_sideframe_button method. When trying to use the `CMSToolbar.add_sideframe_button()` method an exception is thrown because `add_sideframe_button()` is not implemented on `ButtonList()`. This implements the missing method based on the pattern of the other methods in `ButtonList()`.
[ { "content": "import json\nfrom abc import ABCMeta\nfrom collections import defaultdict\n\nfrom django.template.loader import render_to_string\nfrom django.utils import six\nfrom django.utils.functional import Promise\n\nfrom cms.utils.compat.dj import force_unicode\nfrom cms.constants import RIGHT, LEFT, REFRE...
[ { "content": "import json\nfrom abc import ABCMeta\nfrom collections import defaultdict\n\nfrom django.template.loader import render_to_string\nfrom django.utils import six\nfrom django.utils.functional import Promise\n\nfrom cms.utils.compat.dj import force_unicode\nfrom cms.constants import RIGHT, LEFT, REFRE...
diff --git a/cms/toolbar/items.py b/cms/toolbar/items.py index 4213547f6ef..b86b68a3f50 100644 --- a/cms/toolbar/items.py +++ b/cms/toolbar/items.py @@ -451,6 +451,16 @@ def add_modal_button(self, name, url, active=False, disabled=False, extra_classe self.buttons.append(item) return item + def ad...
sanic-org__sanic-2438
Easier websocket interface annotation Right now, to properly annotate a websocket endpoint you need to do this: ```python from sanic.server.websockets.impl import WebsocketImplProtocol from sanic import Request @app.websocket("") async def handler(request: Request, ws: WebsocketImplProtocol): ... ``` ...
[ { "content": "from sanic.__version__ import __version__\nfrom sanic.app import Sanic\nfrom sanic.blueprints import Blueprint\nfrom sanic.constants import HTTPMethod\nfrom sanic.request import Request\nfrom sanic.response import HTTPResponse, html, json, text\n\n\n__all__ = (\n \"__version__\",\n \"Sanic\"...
[ { "content": "from sanic.__version__ import __version__\nfrom sanic.app import Sanic\nfrom sanic.blueprints import Blueprint\nfrom sanic.constants import HTTPMethod\nfrom sanic.request import Request\nfrom sanic.response import HTTPResponse, html, json, text\nfrom sanic.server.websockets.impl import WebsocketIm...
diff --git a/sanic/__init__.py b/sanic/__init__.py index 2b7e779267..cf050fc615 100644 --- a/sanic/__init__.py +++ b/sanic/__init__.py @@ -4,6 +4,7 @@ from sanic.constants import HTTPMethod from sanic.request import Request from sanic.response import HTTPResponse, html, json, text +from sanic.server.websockets.impl ...
searx__searx-175
Startpage engine doesn't support russian queries
[ { "content": "# Startpage (Web)\n#\n# @website https://startpage.com\n# @provide-api no (nothing found)\n#\n# @using-api no\n# @results HTML\n# @stable no (HTML can change)\n# @parse url, title, content\n#\n# @todo paging\n\nfrom urllib import urlencode\nfrom lxml import html\nfrom ...
[ { "content": "# Startpage (Web)\n#\n# @website https://startpage.com\n# @provide-api no (nothing found)\n#\n# @using-api no\n# @results HTML\n# @stable no (HTML can change)\n# @parse url, title, content\n#\n# @todo paging\n\nfrom lxml import html\nfrom cgi import escape\nimport re\n...
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py index 70b1939525..d60ecd9780 100644 --- a/searx/engines/startpage.py +++ b/searx/engines/startpage.py @@ -10,7 +10,6 @@ # # @todo paging -from urllib import urlencode from lxml import html from cgi import escape import re @@ -38,7 +37,6 ...
nf-core__tools-1822
Creating a pipeline from a template allows for dashes ### Description of the bug When calling `nf-core create` from a template, the name field may contain, for example, dashes which are not accepted when populating the fields interactively. This will generate a broken pipeline due to Groovy class names with hyphens. S...
[ { "content": "#!/usr/bin/env python\n\"\"\"Creates a nf-core pipeline matching the current\norganization's specification based on a template.\n\"\"\"\nimport configparser\nimport imghdr\nimport logging\nimport os\nimport pathlib\nimport random\nimport re\nimport shutil\nimport subprocess\nimport sys\nimport tim...
[ { "content": "#!/usr/bin/env python\n\"\"\"Creates a nf-core pipeline matching the current\norganization's specification based on a template.\n\"\"\"\nimport configparser\nimport imghdr\nimport logging\nimport os\nimport pathlib\nimport random\nimport re\nimport shutil\nimport subprocess\nimport sys\nimport tim...
diff --git a/CHANGELOG.md b/CHANGELOG.md index cf016b8e63..b36802c145 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Template - Fix lint warnings for `samplesheet_check.nf` module +- Check that the workflow name provided with a template doesn't contain dashes ([#1822](https://github.com/nf-core/to...
certbot__certbot-5811
Unquote parameters in Nginx We should support cases like this: https://community.letsencrypt.org/t/nginx-installer-misconfigurationerror-cannot-find-a-virtualhost-matching-domain/
[ { "content": "\"\"\"NginxParser is a member object of the NginxConfigurator class.\"\"\"\nimport copy\nimport functools\nimport glob\nimport logging\nimport os\nimport pyparsing\nimport re\n\nimport six\n\nfrom certbot import errors\n\nfrom certbot_nginx import obj\nfrom certbot_nginx import nginxparser\n\n\nlo...
[ { "content": "\"\"\"NginxParser is a member object of the NginxConfigurator class.\"\"\"\nimport copy\nimport functools\nimport glob\nimport logging\nimport os\nimport pyparsing\nimport re\n\nimport six\n\nfrom certbot import errors\n\nfrom certbot_nginx import obj\nfrom certbot_nginx import nginxparser\n\n\nlo...
diff --git a/certbot-nginx/certbot_nginx/parser.py b/certbot-nginx/certbot_nginx/parser.py index 577e783fce6..f06cd17a721 100644 --- a/certbot-nginx/certbot_nginx/parser.py +++ b/certbot-nginx/certbot_nginx/parser.py @@ -743,7 +743,7 @@ def _parse_server_raw(server): if addr.ssl: p...
Pycord-Development__pycord-2271
py-cord loop throws an task exception when set to a fixed dst and offset-aware time ### Summary py-cord throws an exception with offset and dst-aware times set as start time in task loop ### Reproduction Steps 1. Create a task loop with a offset and dst-aware time like: @tasks.loop(time=datetime.time(hour=1...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ce874899d..1d4cefa254 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -190,6 +190,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2113](https://github.com/Pycord-Development/pycord/issues/2113)) - Fixed `Option` not working on ...
ckan__ckan-5760
French: "alphanumeric characters" translated to "lettres minuscules, des chiffres" The English string > Tag \"%s\" must be alphanumeric characters or symbols: -_. ...which is used in ckan/logic/validators.py:428 to validate tags, has an inaccurate translation in French: > Le mot-clé \"%s\" ne peut contenir que...
[ { "content": "\n# encoding: utf-8\n\nimport collections\nimport datetime\nfrom itertools import count\nimport re\nimport mimetypes\nimport string\nimport json\n\nfrom six import string_types, iteritems\nfrom six.moves.urllib.parse import urlparse\n\nimport ckan.lib.navl.dictization_functions as df\nimport ckan....
[ { "content": "\n# encoding: utf-8\n\nimport collections\nimport datetime\nfrom itertools import count\nimport re\nimport mimetypes\nimport string\nimport json\n\nfrom six import string_types, iteritems\nfrom six.moves.urllib.parse import urlparse\n\nimport ckan.lib.navl.dictization_functions as df\nimport ckan....
diff --git a/ckan/logic/validators.py b/ckan/logic/validators.py index 821e39914ab..22fcd32bb00 100644 --- a/ckan/logic/validators.py +++ b/ckan/logic/validators.py @@ -454,8 +454,9 @@ def tag_name_validator(value, context): tagname_match = re.compile('[\w \-.]*$', re.UNICODE) if not tagname_match.match(val...
beeware__toga-2049
iOS App has no attribute 'hide_cursor' **Describe the bug** Calling the method `hide_cursor()` on a `toga.App` causes the app to crash with: ``` 2021-03-28 13:35:22.700314-0700 Find [938:323815] AttributeError: 'App' object has no attribute 'hide_cursor' ``` **To Reproduce** Steps to reproduce the behavior: 1....
[ { "content": "import asyncio\n\nfrom rubicon.objc import objc_method\nfrom rubicon.objc.eventloop import EventLoopPolicy, iOSLifecycle\n\nfrom toga_iOS.libs import UIResponder\nfrom toga_iOS.window import Window\n\n\nclass MainWindow(Window):\n pass\n\n\nclass PythonAppDelegate(UIResponder):\n @objc_metho...
[ { "content": "import asyncio\n\nfrom rubicon.objc import objc_method\nfrom rubicon.objc.eventloop import EventLoopPolicy, iOSLifecycle\n\nfrom toga_iOS.libs import UIResponder\nfrom toga_iOS.window import Window\n\n\nclass MainWindow(Window):\n pass\n\n\nclass PythonAppDelegate(UIResponder):\n @objc_metho...
diff --git a/android/src/toga_android/app.py b/android/src/toga_android/app.py index 182447950f..909031ce45 100644 --- a/android/src/toga_android/app.py +++ b/android/src/toga_android/app.py @@ -233,3 +233,9 @@ async def intent_result(self, intent): return result_future.result() except AttributeEr...
vas3k__vas3k.club-381
Баг с пажинацией в разделе «Коммьюнити» STR: 1. Открыть https://vas3k.club/people/ 2. Отфильтровать по первым 4 фильтрам 3. Перейти на 2 страницу выдачи ER: Фильтры сохранены AR: Фильтры частично потеряны Видео https://youtu.be/08cz2TOq60A
[ { "content": "from urllib.parse import urlencode\n\nfrom django import template\n\nregister = template.Library()\n\n\n@register.simple_tag(takes_context=True)\ndef append_query_param(context, **kwargs):\n query_params = dict(context.request.GET.items())\n query_params.update(kwargs)\n return \"?\" + ur...
[ { "content": "from copy import deepcopy\n\nfrom django import template\n\nregister = template.Library()\n\n\n@register.simple_tag(takes_context=True)\ndef append_query_param(context, **kwargs):\n query_params = deepcopy(context.request.GET)\n query_params.update(kwargs)\n return \"?\" + query_params.ur...
diff --git a/posts/templatetags/query_params.py b/posts/templatetags/query_params.py index b4ff92427..e36242cec 100644 --- a/posts/templatetags/query_params.py +++ b/posts/templatetags/query_params.py @@ -1,4 +1,4 @@ -from urllib.parse import urlencode +from copy import deepcopy from django import template @@ -7,6...
Parsl__parsl-1859
Remote function name is not resolved correctly | task_func_name: wrapper **Describe the bug** The stdout and stderr log filenames of Parsl apps should contain the function name of the corresponding app (Parsl 1.0.0 behavior). In master branch version (ec09fdc), the function name is appended as 'wrapper'. This unexpect...
[ { "content": "from functools import update_wrapper\nfrom functools import partial\nfrom inspect import signature, Parameter\n\nfrom parsl.app.errors import wrap_error\nfrom parsl.app.app import AppBase\nfrom parsl.dataflow.dflow import DataFlowKernelLoader\n\n\ndef remote_side_bash_executor(func, *args, **kwarg...
[ { "content": "from functools import update_wrapper\nfrom functools import partial\nfrom inspect import signature, Parameter\n\nfrom parsl.app.errors import wrap_error\nfrom parsl.app.app import AppBase\nfrom parsl.dataflow.dflow import DataFlowKernelLoader\n\n\ndef remote_side_bash_executor(func, *args, **kwarg...
diff --git a/parsl/app/bash.py b/parsl/app/bash.py index 7f6be3da30..abb8c38f0b 100644 --- a/parsl/app/bash.py +++ b/parsl/app/bash.py @@ -129,6 +129,7 @@ def __init__(self, func, data_flow_kernel=None, cache=False, executors='all', ig # this is done to avoid passing a function type in the args which parsl.ser...
spotify__luigi-2619
TupleParameter errors in dynamic dependencies Passing a `TupleParameter` in a dynamic dependency results in a `TypeError` in Python 3.6.5. See the following example for a basic demonstration. The following code: ```python import luigi import luigi.mock import luigi.util class FirstTask(luigi.Task): #...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2012-2015 Spotify AB\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n#...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2012-2015 Spotify AB\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n#...
diff --git a/luigi/parameter.py b/luigi/parameter.py index 13c6f8afe4..66395205ab 100644 --- a/luigi/parameter.py +++ b/luigi/parameter.py @@ -1114,8 +1114,8 @@ def parse(self, x): try: # loop required to parse tuple of tuples return tuple(tuple(x) for x in json.loads(x, object_pairs_...