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
sopel-irc__sopel-1718
Lame/no welcome message at startup At time of writing, Sopel prints a very basic "Welcome to Sopel. Loading modules..." message at startup. #1597 will modify the startup sequence, eliminate the "Welcome" bit, and print only a message about loading plugins (which is what we're calling "modules" from 7.0 onward). Sope...
[ { "content": "#!/usr/bin/env python2.7\n# coding=utf-8\n\"\"\"\nSopel - An IRC Bot\nCopyright 2008, Sean B. Palmer, inamidst.com\nCopyright © 2012-2014, Elad Alfassa <elad@fedoraproject.org>\nLicensed under the Eiffel Forum License 2.\n\nhttps://sopel.chat\n\"\"\"\nfrom __future__ import unicode_literals, absol...
[ { "content": "#!/usr/bin/env python2.7\n# coding=utf-8\n\"\"\"\nSopel - An IRC Bot\nCopyright 2008, Sean B. Palmer, inamidst.com\nCopyright © 2012-2014, Elad Alfassa <elad@fedoraproject.org>\nLicensed under the Eiffel Forum License 2.\n\nhttps://sopel.chat\n\"\"\"\nfrom __future__ import unicode_literals, absol...
diff --git a/sopel/cli/run.py b/sopel/cli/run.py index fa9ab3de34..bb2104a477 100755 --- a/sopel/cli/run.py +++ b/sopel/cli/run.py @@ -45,6 +45,9 @@ def run(settings, pid_file, daemon=False): delay = 20 + # Acts as a welcome message, showing the program and platform version at start + print_version() + ...
paperless-ngx__paperless-ngx-2459
[BUG] unable to change mail rule order in new frontend ### Description i was setting up mail rules and wasn't able to get them to work properly until i realized that in the django admin i was able to set a order for those rules. in the new frontend the order was already displayed how i actually wanted them to be but i...
[ { "content": "from paperless.views import StandardPagination\nfrom paperless_mail.models import MailAccount\nfrom paperless_mail.models import MailRule\nfrom paperless_mail.serialisers import MailAccountSerializer\nfrom paperless_mail.serialisers import MailRuleSerializer\nfrom rest_framework.permissions import...
[ { "content": "from paperless.views import StandardPagination\nfrom paperless_mail.models import MailAccount\nfrom paperless_mail.models import MailRule\nfrom paperless_mail.serialisers import MailAccountSerializer\nfrom paperless_mail.serialisers import MailRuleSerializer\nfrom rest_framework.permissions import...
diff --git a/src-ui/src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.html b/src-ui/src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.html index 64d54a72cdc..ebb7458e627 100644 --- a/src-ui/src/app/components/common/edit-dialog/mail-rul...
quantumlib__Cirq-3574
Docs build is failing Since the black formatter merge the RTD builds are failing with some weird pip error: https://readthedocs.org/projects/cirq/builds/ Need to look into it and resolve it if the error is on our end or report it to the RTD team if it's on their end.
[ { "content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c43a7362f84..8f7a83a1c13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,7 +103,7 @@ jobs: name: Pytest Ubuntu strategy: matrix: - python-version: ['3.6', '3.7', '3.8'] + python-version: ['...
ManimCommunity__manim-2197
Create a test for resolution configuration ## Enhancement proposal A test for the `--resolution` configuration option. It should be placed [here](https://github.com/ManimCommunity/manim/blob/main/tests/test_scene_rendering/test_cli_flags.py) and [here](https://github.com/ManimCommunity/manim/blob/main/tests/test_scene...
[ { "content": "import json\nimport os\nfrom subprocess import run\nfrom typing import Any, Dict, List\n\n__all__ = [\n \"capture\",\n \"get_video_metadata\",\n \"get_dir_layout\",\n]\n\n\ndef capture(command, cwd=None, command_input=None):\n p = run(command, cwd=cwd, input=command_input, capture_outp...
[ { "content": "import json\nimport os\nfrom subprocess import run\nfrom typing import Any, Dict, List\n\n__all__ = [\n \"capture\",\n \"get_video_metadata\",\n \"get_dir_layout\",\n]\n\n\ndef capture(command, cwd=None, command_input=None):\n p = run(command, cwd=cwd, input=command_input, capture_outp...
diff --git a/manim/utils/commands.py b/manim/utils/commands.py index 9bd00bcd69..366dd32cd5 100644 --- a/manim/utils/commands.py +++ b/manim/utils/commands.py @@ -27,7 +27,7 @@ def get_video_metadata(path_to_video: str) -> Dict[str, Any]: "stream=width,height,nb_frames,duration,avg_frame_rate,codec_name", ...
saleor__saleor-1155
update_index not working with Elasticsearch 5.4 When running `python manage.py update_index` the following errors occurs: ``` elasticsearch.exceptions.RequestError: TransportError(400, 'No handler found for uri [//storefront__userprofile_user] and method [DELETE]') ```
[ { "content": "from collections import defaultdict\n\nfrom . import get_search_backend\nfrom .base import BaseSearchQuery\nfrom ..index import get_indexed_models\n\nCONTENT_TYPES_MAP = {\n model.indexed_get_content_type(): model\n for model in get_indexed_models()}\n\nDEFAULT_BACKEND = get_search_backend('...
[ { "content": "from collections import defaultdict\n\nfrom . import get_search_backend\nfrom .base import BaseSearchQuery\nfrom ..index import get_indexed_models\n\nCONTENT_TYPES_MAP = {\n model.indexed_get_content_type(): model\n for model in get_indexed_models()}\n\nDEFAULT_BACKEND = get_search_backend('...
diff --git a/docker-compose.yml b/docker-compose.yml index 2de7d11582b..eca830812c8 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,7 +21,7 @@ services: environment: - DATABASE_URL=postgres://saleor:saleor@db/saleor - DEFAULT_FROM_EMAIL=noreply@example.com - - ELASTICSEARCH_URL=h...
iterative__dvc-3129
dvc: fix version generatio Looks like dynamic version got broken https://travis-ci.com/iterative/dvc/jobs/274986530 .
[ { "content": "# Used in setup.py, so don't pull any additional dependencies\n#\n# Based on:\n# - https://github.com/python/mypy/blob/master/mypy/version.py\n# - https://github.com/python/mypy/blob/master/mypy/git.py\nimport os\nimport subprocess\n\n\n_BASE_VERSION = \"0.81.0\"\n\n\ndef _generate_version(bas...
[ { "content": "# Used in setup.py, so don't pull any additional dependencies\n#\n# Based on:\n# - https://github.com/python/mypy/blob/master/mypy/version.py\n# - https://github.com/python/mypy/blob/master/mypy/git.py\nimport os\nimport subprocess\n\n\n_BASE_VERSION = \"0.81.0\"\n\n\ndef _generate_version(bas...
diff --git a/dvc/version.py b/dvc/version.py index a1ebd240b6..411510f574 100644 --- a/dvc/version.py +++ b/dvc/version.py @@ -49,7 +49,7 @@ def _is_release(dir_path, base_version): ["git", "describe", "--tags", "--exact-match"], cwd=dir_path, stderr=subprocess.STDOUT, - ) ...
openmc-dev__openmc-926
Unable to run examples/python/pincell Hi, After generating the xml files and trying to `openmc` I get the following error: ``` Reading tallies XML file... ERROR: Two or more meshes use the same unique ID: 1 ```
[ { "content": "import openmc\n\n###############################################################################\n# Simulation Input File Parameters\n###############################################################################\n\n# OpenMC simulation parameters\nbatches = 100\ninactive = 10...
[ { "content": "import openmc\n\n###############################################################################\n# Simulation Input File Parameters\n###############################################################################\n\n# OpenMC simulation parameters\nbatches = 100\ninactive = 10...
diff --git a/examples/python/pincell/build-xml.py b/examples/python/pincell/build-xml.py index 4d41a3126c8..a9e6a5a7493 100644 --- a/examples/python/pincell/build-xml.py +++ b/examples/python/pincell/build-xml.py @@ -119,7 +119,7 @@ ############################################################################### # I...
pydantic__pydantic-3241
when extra is allowed, representation is break ### Checks * [x] I added a descriptive title to this issue * [x] I have searched (google, github) for similar issues and couldn't find anything * [x] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug <!-- Sorry ...
[ { "content": "import sys\nimport warnings\nfrom abc import ABCMeta\nfrom copy import deepcopy\nfrom enum import Enum\nfrom functools import partial\nfrom pathlib import Path\nfrom types import FunctionType\nfrom typing import (\n TYPE_CHECKING,\n AbstractSet,\n Any,\n Callable,\n ClassVar,\n D...
[ { "content": "import sys\nimport warnings\nfrom abc import ABCMeta\nfrom copy import deepcopy\nfrom enum import Enum\nfrom functools import partial\nfrom pathlib import Path\nfrom types import FunctionType\nfrom typing import (\n TYPE_CHECKING,\n AbstractSet,\n Any,\n Callable,\n ClassVar,\n D...
diff --git a/changes/3234-cocolman.md b/changes/3234-cocolman.md new file mode 100644 index 00000000000..b7f9cad68f7 --- /dev/null +++ b/changes/3234-cocolman.md @@ -0,0 +1 @@ +Fix display of `extra` fields with model `__repr__` diff --git a/pydantic/main.py b/pydantic/main.py index a25e96efeaa..8d1d513bc2c 100644 --- ...
MongoEngine__mongoengine-1875
raise StopIteration in generators is deprecated ``` ... /Users/Vic/projects/brain2/brain/utils/user_progress.py:686: DeprecationWarning: generator 'QuerySet._iter_results' raised StopIteration for action in actions: /Users/Vic/projects/brain2/brain/utils/user_course_state.py:317: DeprecationWarning: generator 'Qu...
[ { "content": "import six\n\nfrom mongoengine.errors import OperationError\nfrom mongoengine.queryset.base import (BaseQuerySet, CASCADE, DENY, DO_NOTHING,\n NULLIFY, PULL)\n\n__all__ = ('QuerySet', 'QuerySetNoCache', 'DO_NOTHING', 'NULLIFY', 'CASCADE',\n 'DENY', '...
[ { "content": "import six\n\nfrom mongoengine.errors import OperationError\nfrom mongoengine.queryset.base import (BaseQuerySet, CASCADE, DENY, DO_NOTHING,\n NULLIFY, PULL)\n\n__all__ = ('QuerySet', 'QuerySetNoCache', 'DO_NOTHING', 'NULLIFY', 'CASCADE',\n 'DENY', '...
diff --git a/mongoengine/queryset/queryset.py b/mongoengine/queryset/queryset.py index 60de19a29..1aadfb768 100644 --- a/mongoengine/queryset/queryset.py +++ b/mongoengine/queryset/queryset.py @@ -89,7 +89,7 @@ def _iter_results(self): yield self._result_cache[pos] pos += 1 - ...
cookiecutter__cookiecutter-573
Problem with --checkout reclone The message should ask me about recloning `/Users/audreyr/.cookiecutters/cookiecutter-pypackage`, not `/Users/audreyr/.cookiecutters`. ``` $ cookiecutter https://github.com/eliasdorneles/cookiecutter-pypackage/ -c adding-travis-setup-for-pypi-deployment You've cloned /Users/audreyr/.coo...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\ncookiecutter.vcs\n----------------\n\nHelper functions for working with version control systems.\n\"\"\"\n\nfrom __future__ import unicode_literals\nimport logging\nimport os\nimport subprocess\nimport sys\n\nfrom whichcraft import which\n\...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\ncookiecutter.vcs\n----------------\n\nHelper functions for working with version control systems.\n\"\"\"\n\nfrom __future__ import unicode_literals\nimport logging\nimport os\nimport subprocess\nimport sys\n\nfrom whichcraft import which\n\...
diff --git a/cookiecutter/vcs.py b/cookiecutter/vcs.py index 269fee3ed..4f7dbd96c 100755 --- a/cookiecutter/vcs.py +++ b/cookiecutter/vcs.py @@ -103,6 +103,7 @@ def clone(repo_url, checkout=None, clone_to_dir=".", no_input=False): msg = "'{0}' is not installed.".format(repo_type) raise VCSNotInstalled...
DataDog__dd-trace-py-2381
Documentation site code uses incorrect class from ddtrace/contrib/wsgi/wsgi.py ### Which version of dd-trace-py are you using? 0.48.1 ### What libraries am I using: Python: 3.8 ### How can we reproduce your problem? 1. Copy the example code from https://ddtrace.readthedocs.io/en/stable/integrations.html#wsgi ...
[ { "content": "\"\"\"\nThe Datadog WSGI middleware traces all WSGI requests.\n\n\nUsage\n~~~~~\n\nThe middleware can be used manually via the following command::\n\n\n from ddtrace.contrib.wsgi import DDTraceMiddleware\n\n # application is a WSGI application\n application = DDTraceMiddleware(application...
[ { "content": "\"\"\"\nThe Datadog WSGI middleware traces all WSGI requests.\n\n\nUsage\n~~~~~\n\nThe middleware can be used manually via the following command::\n\n\n from ddtrace.contrib.wsgi import DDWSGIMiddleware\n\n # application is a WSGI application\n application = DDWSGIMiddleware(application)\...
diff --git a/ddtrace/contrib/wsgi/__init__.py b/ddtrace/contrib/wsgi/__init__.py index 8be9a6971a3..d40db137601 100644 --- a/ddtrace/contrib/wsgi/__init__.py +++ b/ddtrace/contrib/wsgi/__init__.py @@ -8,10 +8,10 @@ The middleware can be used manually via the following command:: - from ddtrace.contrib.wsgi impor...
ray-project__ray-7877
[ray] Build failure when installing from source <!--Please include [tune], [rllib], [autoscaler] etc. in the issue title if relevant--> ### What is the problem? I am trying to install ray from source. However, I receive the following error during the install process: ``` HEAD is now at 8ffe41c apply cpython patch...
[ { "content": "from itertools import chain\nimport os\nimport re\nimport shutil\nimport subprocess\nimport sys\n\nfrom setuptools import setup, find_packages, Distribution\nimport setuptools.command.build_ext as _build_ext\n\n# Ideally, we could include these files by putting them in a\n# MANIFEST.in or using th...
[ { "content": "from itertools import chain\nimport os\nimport re\nimport shutil\nimport subprocess\nimport sys\n\nfrom setuptools import setup, find_packages, Distribution\nimport setuptools.command.build_ext as _build_ext\n\n# Ideally, we could include these files by putting them in a\n# MANIFEST.in or using th...
diff --git a/python/setup.py b/python/setup.py index 1013832e0e13f..df76f311d3a47 100644 --- a/python/setup.py +++ b/python/setup.py @@ -191,7 +191,7 @@ def find_version(*filepath): # The BinaryDistribution argument triggers build_ext. distclass=BinaryDistribution, install_requires=requires, - setup_r...
opsdroid__opsdroid-1220
Slack connector crashes after running dance several times # Description Slack connector crashes after running dance several times in a row ## Steps to Reproduce Launch opsdroid with slack connector configured with bot token go the channel connected in and run dance 3+ times in a row ## Expected Functionality ...
[ { "content": "\"\"\"A connector for Slack.\"\"\"\nimport logging\nimport re\n\nimport slack\nfrom emoji import demojize\n\nfrom opsdroid.connector import Connector, register_event\nfrom opsdroid.events import Message, Reaction\nfrom opsdroid.connector.slack.events import Blocks\n\n\n_LOGGER = logging.getLogger(...
[ { "content": "\"\"\"A connector for Slack.\"\"\"\nimport logging\nimport re\n\nimport slack\nfrom emoji import demojize\n\nfrom opsdroid.connector import Connector, register_event\nfrom opsdroid.events import Message, Reaction\nfrom opsdroid.connector.slack.events import Blocks\n\n\n_LOGGER = logging.getLogger(...
diff --git a/opsdroid/connector/slack/__init__.py b/opsdroid/connector/slack/__init__.py index 185fcf025..7056d3072 100644 --- a/opsdroid/connector/slack/__init__.py +++ b/opsdroid/connector/slack/__init__.py @@ -90,6 +90,10 @@ async def process_message(self, **payload): """Process a raw message and pass it to...
pre-commit__pre-commit-2384
Ruby hooks cannot be installed when `gem` is globally configured with `--user-install` ### search tried in the issue tracker gem, ruby ### describe your issue On Arch Linux, `gem` is configured to always use `--user-install` via a global option set in `/etc/gemrc`: https://github.com/archlinux/svntogit-packages/blob...
[ { "content": "from __future__ import annotations\n\nimport contextlib\nimport functools\nimport os.path\nimport shutil\nimport tarfile\nfrom typing import Generator\nfrom typing import Sequence\n\nimport pre_commit.constants as C\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.envcontext import P...
[ { "content": "from __future__ import annotations\n\nimport contextlib\nimport functools\nimport os.path\nimport shutil\nimport tarfile\nfrom typing import Generator\nfrom typing import Sequence\n\nimport pre_commit.constants as C\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.envcontext import P...
diff --git a/pre_commit/languages/ruby.py b/pre_commit/languages/ruby.py index 6c5cff280..8955dd011 100644 --- a/pre_commit/languages/ruby.py +++ b/pre_commit/languages/ruby.py @@ -138,6 +138,7 @@ def install_environment( ( 'gem', 'install', '--no-document', '-...
liqd__a4-meinberlin-2395
single module project without timeline is missing any discription my single module project [https://meinberlin-dev.liqd.net/projects/schillerkasse-ihre-kiezkasse-fur-den-schillerkiez/](url) which is module Kiezkasse should have a phase information. It is currently running. ![Bildschirmfoto 2019-07-05 um 14 17 04](ht...
[ { "content": "from django import forms\nfrom django.db.models import Max\nfrom django.db.models import Min\nfrom django.db.models import Q\nfrom django.urls import resolve\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.views import generic\n\nfrom adhocracy4.modules.models import Module\n...
[ { "content": "from django import forms\nfrom django.db.models import Max\nfrom django.db.models import Min\nfrom django.db.models import Q\nfrom django.urls import resolve\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.views import generic\n\nfrom adhocracy4.modules.models import Module\n...
diff --git a/meinberlin/apps/contrib/mixins.py b/meinberlin/apps/contrib/mixins.py index ae3de220c0..fa6bb7fbe6 100644 --- a/meinberlin/apps/contrib/mixins.py +++ b/meinberlin/apps/contrib/mixins.py @@ -156,7 +156,8 @@ def get_context_data(self, **kwargs): except IndexError: pass ...
open-mmlab__mmcv-539
Forgot passing the argument pad_val in impad_to_multiple() to impad() Hi, in the source code of **_impad_to_multiple()_**, the return value doesn't use the **_pad_val_** to _**impad()**_, which leads to the pad_val will always be 0 if call this function. `def impad_to_multiple(img, divisor, pad_val=0): """Pad ...
[ { "content": "# Copyright (c) Open-MMLab. All rights reserved.\nimport numbers\n\nimport cv2\nimport numpy as np\n\nfrom .io import imread_backend\n\ntry:\n from PIL import Image\nexcept ImportError:\n Image = None\n\n\ndef _scale_size(size, scale):\n \"\"\"Rescale a size by a ratio.\n\n Args:\n ...
[ { "content": "# Copyright (c) Open-MMLab. All rights reserved.\nimport numbers\n\nimport cv2\nimport numpy as np\n\nfrom .io import imread_backend\n\ntry:\n from PIL import Image\nexcept ImportError:\n Image = None\n\n\ndef _scale_size(size, scale):\n \"\"\"Rescale a size by a ratio.\n\n Args:\n ...
diff --git a/mmcv/image/geometric.py b/mmcv/image/geometric.py index 7b3425ac83..5bad546a28 100644 --- a/mmcv/image/geometric.py +++ b/mmcv/image/geometric.py @@ -459,7 +459,7 @@ def impad_to_multiple(img, divisor, pad_val=0): """ pad_h = int(np.ceil(img.shape[0] / divisor)) * divisor pad_w = int(np.ceil...
AUTOMATIC1111__stable-diffusion-webui-7954
[Bug]: X/Y/Z Plot is adding an extra image between the generated ones ### Is there an existing issue for this? - [X] I have searched the existing issues and checked the recent builds/commits ### What happened? Hello. it does not matter the size of the plot it always add an image between the generated ones. making...
[ { "content": "from collections import namedtuple\r\nfrom copy import copy\r\nfrom itertools import permutations, chain\r\nimport random\r\nimport csv\r\nfrom io import StringIO\r\nfrom PIL import Image\r\nimport numpy as np\r\n\r\nimport modules.scripts as scripts\r\nimport gradio as gr\r\n\r\nfrom modules impo...
[ { "content": "from collections import namedtuple\r\nfrom copy import copy\r\nfrom itertools import permutations, chain\r\nimport random\r\nimport csv\r\nfrom io import StringIO\r\nfrom PIL import Image\r\nimport numpy as np\r\n\r\nimport modules.scripts as scripts\r\nimport gradio as gr\r\n\r\nfrom modules impo...
diff --git a/scripts/xyz_grid.py b/scripts/xyz_grid.py index 53511b121a2..d0ff5cb8601 100644 --- a/scripts/xyz_grid.py +++ b/scripts/xyz_grid.py @@ -418,7 +418,7 @@ def process_axis(opt, vals): if opt.label == 'Nothing': return [0] - valslist = [x.strip() for x in chain.fro...
WordPress__openverse-api-958
Do not unfurl links and media by default in Slack notifications ## Problem <!-- Describe a problem solved by this feature; or delete the section entirely. --> Recent provider DAG errors have caused notifications containing images to be sent to Slack. For example, a recent data refresh error notification embedded the ...
[ { "content": "import logging\nimport os\nfrom enum import Enum\n\nimport requests\nfrom decouple import config\n\n\nlog = logging.getLogger(__name__)\nSLACK_WEBHOOK = \"SLACK_WEBHOOK\"\nLOG_LEVEL = \"SLACK_LOG_LEVEL\"\n\n\nclass Level(Enum):\n VERBOSE = 0\n INFO = 1\n ERROR = 2\n\n\ndef _message(text: ...
[ { "content": "import logging\nimport os\nfrom enum import Enum\n\nimport requests\nfrom decouple import config\n\n\nlog = logging.getLogger(__name__)\nSLACK_WEBHOOK = \"SLACK_WEBHOOK\"\nLOG_LEVEL = \"SLACK_LOG_LEVEL\"\n\n\nclass Level(Enum):\n VERBOSE = 0\n INFO = 1\n ERROR = 2\n\n\ndef _message(text: ...
diff --git a/ingestion_server/ingestion_server/slack.py b/ingestion_server/ingestion_server/slack.py index 3325a6ada..e4ff1fcef 100644 --- a/ingestion_server/ingestion_server/slack.py +++ b/ingestion_server/ingestion_server/slack.py @@ -50,6 +50,8 @@ def _message(text: str, summary: str = None, level: Level = Level.INF...
mitmproxy__mitmproxy-5701
Latest release broken on Ubuntu 22.04 - ImportError: libffi.so.7: cannot open shared object file: No such file or directory #### Problem Description https://askubuntu.com/questions/1286772/libffi-so-7-cannot-open-shared-object-file-no-such-file-or-directory I don't think our users should do anything with their sy...
[ { "content": "import os\nimport re\nfrom codecs import open\n\nfrom setuptools import find_packages, setup\n\n# Based on https://github.com/pypa/sampleproject/blob/main/setup.py\n# and https://python-packaging-user-guide.readthedocs.org/\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith open(os.path....
[ { "content": "import os\nimport re\nfrom codecs import open\n\nfrom setuptools import find_packages, setup\n\n# Based on https://github.com/pypa/sampleproject/blob/main/setup.py\n# and https://python-packaging-user-guide.readthedocs.org/\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith open(os.path....
diff --git a/CHANGELOG.md b/CHANGELOG.md index 64d70370f0..c9fb64e535 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,9 @@ ## Unreleased: mitmproxy next -* Hard exit when mitmproxy cannot write logs, fixes endless loop when parent process exits +* Temporarily downgrade PyInstaller to fix standalone Linux b...
scikit-hep__awkward-1777
`ak.from_numpy()` doesn't handle masked arrays ### Version of Awkward Array main ### Description and code to reproduce ## V2 ```python >>> import awkward as ak >>> import numpy as np >>> np_array = np.ma.MaskedArray([[1, 2, 3], [4, 5, 6]], mask=[[False, True, False], [True, True, False]]) >>> ak_array = ak.from...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\nfrom __future__ import annotations\n\nimport collections\nimport itertools\nimport numbers\nimport os\nimport re\nfrom collections.abc import Iterable, Mapping, Sized\n\nimport packaging.version\n\nimport awkw...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\nfrom __future__ import annotations\n\nimport collections\nimport itertools\nimport numbers\nimport os\nimport re\nfrom collections.abc import Iterable, Mapping, Sized\n\nimport packaging.version\n\nimport awkw...
diff --git a/src/awkward/_util.py b/src/awkward/_util.py index 7e8938698e..4b4cfed5f5 100644 --- a/src/awkward/_util.py +++ b/src/awkward/_util.py @@ -622,7 +622,7 @@ def recurse(array, mask=None): if regulararray and len(array.shape) > 1: return ak.contents.RegularArray( - recurs...
conda__conda-5335
conda env update : does not support --prefix The `conda env update` does not support the `--prefix` / `-p` argument. ``` $ conda info | grep version conda version : 4.2.12 conda-env version : 4.2.12 conda-build version : 1.20.3 python version : 2.7.11.final.0 requests versio...
[ { "content": "from argparse import RawDescriptionHelpFormatter\nimport os\nimport textwrap\nimport sys\n\nfrom conda import config\nfrom conda.cli import common\nfrom conda.cli import install as cli_install\nfrom conda.misc import touch_nonadmin\nfrom ..installers.base import get_installer, InvalidInstaller\nfr...
[ { "content": "from argparse import RawDescriptionHelpFormatter\nimport os\nimport textwrap\nimport sys\n\nfrom conda import config\nfrom conda.cli import common\nfrom conda.cli import install as cli_install\nfrom conda.misc import touch_nonadmin\nfrom ..installers.base import get_installer, InvalidInstaller\nfr...
diff --git a/conda_env/cli/main_update.py b/conda_env/cli/main_update.py index 5882902d97b..9953ea788d5 100644 --- a/conda_env/cli/main_update.py +++ b/conda_env/cli/main_update.py @@ -79,7 +79,7 @@ def execute(args, parser): except exceptions.SpecNotFound: raise - if not args.name: + if not (args...
pytorch__vision-1100
torchvision.transforms.functional.to_pil_image The function, torchvision.transforms.functional.to_pil_image, transforms FloatTensor to uint8 internally. Hence, it is impossible to use mode = 'F'. This can be frustrating when dealing with high bit-depth images. I was working with spectrograms and the spectrograms had...
[ { "content": "from __future__ import division\nimport torch\nimport sys\nimport math\nfrom PIL import Image, ImageOps, ImageEnhance, PILLOW_VERSION\ntry:\n import accimage\nexcept ImportError:\n accimage = None\nimport numpy as np\nimport numbers\nimport collections\nimport warnings\n\nif sys.version_info...
[ { "content": "from __future__ import division\nimport torch\nimport sys\nimport math\nfrom PIL import Image, ImageOps, ImageEnhance, PILLOW_VERSION\ntry:\n import accimage\nexcept ImportError:\n accimage = None\nimport numpy as np\nimport numbers\nimport collections\nimport warnings\n\nif sys.version_info...
diff --git a/test/test_transforms.py b/test/test_transforms.py index 404b16cae08..54aae796301 100644 --- a/test/test_transforms.py +++ b/test/test_transforms.py @@ -528,6 +528,11 @@ def test_1_channel_tensor_to_pil_image(self): img = transform(img_data) assert img.mode == mode ...
kivy__python-for-android-1427
Pin pyjnius version This pull request adds a version pin for pyjnius as requested here: #1415 Please note I am proposing this as a **permanent measure** because this is such a core component - not this specific version of course, but that it is always pinned. Even if you just randomly bump the version up in any ...
[ { "content": "from pythonforandroid.recipe import CythonRecipe\nfrom pythonforandroid.toolchain import shprint, current_directory, info\nfrom pythonforandroid.patching import will_build\nimport sh\nfrom os.path import join\n\n\nclass PyjniusRecipe(CythonRecipe):\n version = 'master'\n url = 'https://githu...
[ { "content": "from pythonforandroid.recipe import CythonRecipe\nfrom pythonforandroid.toolchain import shprint, current_directory, info\nfrom pythonforandroid.patching import will_build\nimport sh\nfrom os.path import join\n\n\nclass PyjniusRecipe(CythonRecipe):\n version = '1.1.3'\n url = 'https://github...
diff --git a/pythonforandroid/recipes/pyjnius/__init__.py b/pythonforandroid/recipes/pyjnius/__init__.py index 14eb0a93b4..90d63a866c 100644 --- a/pythonforandroid/recipes/pyjnius/__init__.py +++ b/pythonforandroid/recipes/pyjnius/__init__.py @@ -6,7 +6,7 @@ class PyjniusRecipe(CythonRecipe): - version = 'maste...
InstaPy__InstaPy-619
Unfollow with onlyInstapyFollowed=True not working `session.unfollow_users(amount=5,` onlyInstapyFollowed=True)` > Number of people followed automatically remaining: 14 --> Total people unfollowed : 0 If however **onlyInstapyFollowed is set to False**. The unfollow works. Before this line I'm just doing log...
[ { "content": "\"\"\"Module which handles the follow features like unfollowing and following\"\"\"\nimport json\nimport csv\nfrom math import ceil\nfrom .time_util import sleep\nfrom random import randint\nfrom .util import delete_line_from_file\nfrom .util import scroll_bottom\nfrom .util import formatNumber\nf...
[ { "content": "\"\"\"Module which handles the follow features like unfollowing and following\"\"\"\nimport json\nimport csv\nfrom math import ceil\nfrom .time_util import sleep\nfrom random import randint\nfrom .util import delete_line_from_file\nfrom .util import scroll_bottom\nfrom .util import formatNumber\nf...
diff --git a/instapy/unfollow_util.py b/instapy/unfollow_util.py index b503ca72a..f4b83a075 100644 --- a/instapy/unfollow_util.py +++ b/instapy/unfollow_util.py @@ -248,7 +248,7 @@ def follow_through_dialog(browser, user_name, amount, dont_include, login, follo person_followed.append(person) ...
statsmodels__statsmodels-5301
BUG : MICEData creates new values after imputation This imputation model is supposed to impute values from other(pre-existing) observations, as I know. It does, however, create a value that did never exist in other observations. I used this imputation after applying LabelEnconder in Scikit-Learn. In this pro...
[ { "content": "\"\"\"\nOverview\n--------\n\nThis module implements the Multiple Imputation through Chained\nEquations (MICE) approach to handling missing data in statistical data\nanalyses. The approach has the following steps:\n\n0. Impute each missing value with the mean of the observed values of\nthe same va...
[ { "content": "\"\"\"\nOverview\n--------\n\nThis module implements the Multiple Imputation through Chained\nEquations (MICE) approach to handling missing data in statistical data\nanalyses. The approach has the following steps:\n\n0. Impute each missing value with the mean of the observed values of\nthe same va...
diff --git a/statsmodels/imputation/mice.py b/statsmodels/imputation/mice.py index 9aa1ff350ba..b0e26c992c8 100644 --- a/statsmodels/imputation/mice.py +++ b/statsmodels/imputation/mice.py @@ -293,7 +293,7 @@ def _initial_imputation(self): di = self.data[col] - self.data[col].mean() di = np.ab...
sktime__sktime-5162
[BUG] `NaiveForecaster` has `ignores-exogeneous-X` tag value as `False` **To Reproduce** <!-- Add a Minimal, Complete, and Verifiable example (for more details, see e.g. https://stackoverflow.com/help/mcve If the code is too long, feel free to put it in a public gist and link it in the issue: https://gist.github.c...
[ { "content": "# !/usr/bin/env python3 -u\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Implements simple forecasts based on naive assumptions.\"\"\"\n\n__all__ = [\"NaiveForecaster\", \"NaiveVariance\"]\n__author__ = [\n \"mloning\",\n \"piyush1729\",\n \"sri1419\",\n ...
[ { "content": "# !/usr/bin/env python3 -u\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Implements simple forecasts based on naive assumptions.\"\"\"\n\n__all__ = [\"NaiveForecaster\", \"NaiveVariance\"]\n__author__ = [\n \"mloning\",\n \"piyush1729\",\n \"sri1419\",\n ...
diff --git a/sktime/forecasting/naive.py b/sktime/forecasting/naive.py index e13de4d0d86..b64f62ef2f1 100644 --- a/sktime/forecasting/naive.py +++ b/sktime/forecasting/naive.py @@ -111,6 +111,7 @@ class NaiveForecaster(_BaseWindowForecaster): "y_inner_mtype": "pd.Series", "requires-fh-in-fit": False, ...
pantsbuild__pants-18678
Wrong version of Python used to build `pex_binary` targets in `2.16.0rc0` **Describe the bug** * Our CI image contains both Python 3.8 and 3.9. * We set `[python].interpreter_constraints = ["==3.8.*"]` in `pants.toml`. * At least one `pex_binary` depends on a version of `numpy` that (for reasons we haven't dug int...
[ { "content": "# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import annotations\n\nimport dataclasses\nfrom dataclasses import dataclass\nfrom typing import Iterable, List, Mapping, Optional, Tuple\n\nfrom pa...
[ { "content": "# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import annotations\n\nimport dataclasses\nfrom dataclasses import dataclass\nfrom typing import Iterable, List, Mapping, Optional, Tuple\n\nfrom pa...
diff --git a/src/python/pants/backend/python/util_rules/pex_cli.py b/src/python/pants/backend/python/util_rules/pex_cli.py index b2e446ab4d9..7ed8c3a23b5 100644 --- a/src/python/pants/backend/python/util_rules/pex_cli.py +++ b/src/python/pants/backend/python/util_rules/pex_cli.py @@ -37,7 +37,7 @@ class PexCli(Template...
jazzband__pip-tools-1035
No handlers could be found for logger "pip.vcs.git" Looks like logging is not totally set up. I get this when `pip-compile` wit VCS links: ``` No handlers could be found for logger "pip.vcs.git" ```
[ { "content": "# coding: utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom . import click\n\n\nclass LogContext(object):\n def __init__(self, verbosity=0):\n self.verbosity = verbosity\n\n def log(self, *args, **kwargs):\n kwargs.setdefault(\"er...
[ { "content": "# coding: utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport logging\n\nfrom . import click\n\n# Initialise the builtin logging module for other component using it.\n# Ex: pip\nlogging.basicConfig()\n\n\nclass LogContext(object):\n def __init__(s...
diff --git a/piptools/logging.py b/piptools/logging.py index 488a8a2e5..8b379b8d7 100644 --- a/piptools/logging.py +++ b/piptools/logging.py @@ -1,8 +1,14 @@ # coding: utf-8 from __future__ import absolute_import, division, print_function, unicode_literals +import logging + from . import click +# Initialise the ...
internetarchive__openlibrary-7316
Fix Amazon book-cover imports (data mapping?) When we import books from Amazon, it seems as if the book cover is either not making it in the import queue, is using the wrong field name, or the importer itself is not succeeding to follow the schema and add the cover. I'd recommend investigating the following files / ...
[ { "content": "from __future__ import annotations\nimport logging\nimport re\nimport time\nfrom typing import Any, Literal\n\nimport requests\nfrom dateutil import parser as isoparser\nfrom infogami.utils.view import public\nfrom paapi5_python_sdk.api.default_api import DefaultApi\nfrom paapi5_python_sdk.get_ite...
[ { "content": "from __future__ import annotations\nimport logging\nimport re\nimport time\nfrom typing import Any, Literal\n\nimport requests\nfrom dateutil import parser as isoparser\nfrom infogami.utils.view import public\nfrom paapi5_python_sdk.api.default_api import DefaultApi\nfrom paapi5_python_sdk.get_ite...
diff --git a/openlibrary/core/vendors.py b/openlibrary/core/vendors.py index b0e457d0139..6a675d38d1a 100644 --- a/openlibrary/core/vendors.py +++ b/openlibrary/core/vendors.py @@ -240,7 +240,7 @@ def serialize(product: Any) -> dict: and item_info.title and getattr(item_info.title, 'di...
xorbitsai__inference-1322
Support CodeQwen1.5 request request to support CodeQwen1.5 https://modelscope.cn/models/qwen/CodeQwen1.5-7B-Chat/summary
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/doc/source/getting_started/installation.rst b/doc/source/getting_started/installation.rst index c42f21a829..f1f8546d1e 100644 --- a/doc/source/getting_started/installation.rst +++ b/doc/source/getting_started/installation.rst @@ -42,6 +42,7 @@ Currently, supported models include: - ``mistral-v0.1``, ``mis...
pantsbuild__pants-18687
Wrong version of Python used to build `pex_binary` targets in `2.16.0rc0` **Describe the bug** * Our CI image contains both Python 3.8 and 3.9. * We set `[python].interpreter_constraints = ["==3.8.*"]` in `pants.toml`. * At least one `pex_binary` depends on a version of `numpy` that (for reasons we haven't dug int...
[ { "content": "# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import annotations\n\nimport dataclasses\nfrom dataclasses import dataclass\nfrom typing import Iterable, List, Mapping, Optional, Tuple\n\nfrom pa...
[ { "content": "# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import annotations\n\nimport dataclasses\nfrom dataclasses import dataclass\nfrom typing import Iterable, List, Mapping, Optional, Tuple\n\nfrom pa...
diff --git a/src/python/pants/backend/python/util_rules/pex_cli.py b/src/python/pants/backend/python/util_rules/pex_cli.py index d8dce57ad6e..fd2a242f55e 100644 --- a/src/python/pants/backend/python/util_rules/pex_cli.py +++ b/src/python/pants/backend/python/util_rules/pex_cli.py @@ -37,7 +37,7 @@ class PexCli(Template...
StackStorm__st2-2925
"st2 key delete" does not obey interface and populate user query params st2 --debug key delete -s user -u stanley netdev_servicewrapper_address 2016-09-23 17:13:48,545 DEBUG - Using cached token from file "/home/vagrant/.st2/token-st2admin" curl -X GET -H 'Connection: keep-alive' -H 'Accept-Encoding: gzip, deflat...
[ { "content": "# Licensed to the StackStorm, Inc ('StackStorm') under one or more\n# contributor license agreements. See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, Version 2.0\n# (the \"Li...
[ { "content": "# Licensed to the StackStorm, Inc ('StackStorm') under one or more\n# contributor license agreements. See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, Version 2.0\n# (the \"Li...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 1c477a8b8c..e9f72a2a32 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -32,6 +32,7 @@ In development improvement) * Adding ability to pass complex array types via CLI by first trying to seralize the array as JSON and then falling back to comma seperated array. +...
hpcaitech__ColossalAI-4338
[tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests [BUG]: wrong in KL_approx , the order of two distribution is handled incorrectly compute_approx_kl for `NaiveExperienceMaker` maybe incorrect. As motion in [Approximating KL Divergence](http://joschu.net/blog/kl-approx.html) ...
[ { "content": "from typing import Optional, Union\n\nimport loralib as lora\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\n\n\ndef compute_approx_kl(log_probs: torch.Tensor,\n log_probs_base: torch.Tensor,\n action_mask: Optional[torch.Tensor] = N...
[ { "content": "from typing import Optional, Union\n\nimport loralib as lora\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\n\n\ndef compute_approx_kl(log_probs: torch.Tensor,\n log_probs_base: torch.Tensor,\n action_mask: Optional[torch.Tensor] = N...
diff --git a/applications/Chat/coati/models/utils.py b/applications/Chat/coati/models/utils.py index 772bfc32982a..8769fb7a8c43 100644 --- a/applications/Chat/coati/models/utils.py +++ b/applications/Chat/coati/models/utils.py @@ -19,7 +19,7 @@ def compute_approx_kl(log_probs: torch.Tensor, action_mask: Mask f...
privacyidea__privacyidea-1665
CSS cleanup As mentioned in https://github.com/privacyidea/privacyidea/pull/1656/commits/34b97d179fab0979db412fc96affa2e22f8abfdc, we should change the way how we edit our css files. An idea is to create a file for each region like menu, sidebar, content, etc. and put the changes where they belong to.
[ { "content": "# -*- coding: utf-8 -*-\n#\n# 2018-02-13 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Allow expired attestation certificate\n# 2017-04-18 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Save attestation cert info to tokeninfo\n# 2015-11-22 Cornelius Kölbel...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# 2018-02-13 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Allow expired attestation certificate\n# 2017-04-18 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Save attestation cert info to tokeninfo\n# 2015-11-22 Cornelius Kölbel...
diff --git a/privacyidea/lib/tokens/u2ftoken.py b/privacyidea/lib/tokens/u2ftoken.py index 7c5ee39c0c..af15f333c6 100644 --- a/privacyidea/lib/tokens/u2ftoken.py +++ b/privacyidea/lib/tokens/u2ftoken.py @@ -182,9 +182,9 @@ """ -IMAGES = {"yubico": "static/css/FIDO-U2F-Security-Key-444x444.png", - "plug-up...
networkx__networkx-3676
`make_small_graph` may fail to return error when it gets a bad input The following command was used in an answer on [stackoverflow](https://stackoverflow.com/a/56032840/2966723), and produces a very different result from desired: gr = { 0: [4], 1: [3], 2: [2, 3, 4, 5], 3: [1, ...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nVarious small and named graphs, together with some compact generators.\n\n\"\"\"\n__author__ = \"\"\"Aric Hagberg (hagberg@lanl.gov)\\nPieter Swart (swart@lanl.gov)\"\"\"\n# Copyright (C) 2004-2019 by\n# Aric Hagberg <hagberg@lanl.gov>\n# Dan Schult <dschu...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nVarious small and named graphs, together with some compact generators.\n\n\"\"\"\n__author__ = \"\"\"Aric Hagberg (hagberg@lanl.gov)\\nPieter Swart (swart@lanl.gov)\"\"\"\n# Copyright (C) 2004-2019 by\n# Aric Hagberg <hagberg@lanl.gov>\n# Dan Schult <dschu...
diff --git a/networkx/generators/small.py b/networkx/generators/small.py index 904b3e7f819..3d0e3278dfd 100644 --- a/networkx/generators/small.py +++ b/networkx/generators/small.py @@ -83,6 +83,10 @@ def make_small_graph(graph_description, create_using=None): Use the create_using argument to choose the graph cla...
dotkom__onlineweb4-2382
Users who are retaking their third year are automatically set to first grade <!-- If this is a security issue or information leakage (having access to something you (probably) shouldn't), please send an email rather than opening a public issue. --> ## What kind of an issue is this? - Bug report - Feature request...
[ { "content": "import logging\n\nfrom dateutil.parser import parse\nfrom django.utils import timezone\n\nfrom apps.authentication.constants import FieldOfStudyType\nfrom apps.dataporten.study.courses import GROUP_IDENTIFIERS, MASTER_IDS\n\nlogger = logging.getLogger(__name__)\n\n\ndef get_study(groups):\n stu...
[ { "content": "import logging\n\nfrom dateutil.parser import parse\nfrom django.utils import timezone\n\nfrom apps.authentication.constants import FieldOfStudyType\nfrom apps.dataporten.study.courses import GROUP_IDENTIFIERS, MASTER_IDS\n\nlogger = logging.getLogger(__name__)\n\n\ndef get_study(groups):\n stu...
diff --git a/apps/dataporten/study/tests/data/3rd_grader_extended_1_year_2018.json b/apps/dataporten/study/tests/data/3rd_grader_extended_1_year_2018.json new file mode 100644 index 000000000..a9971e745 --- /dev/null +++ b/apps/dataporten/study/tests/data/3rd_grader_extended_1_year_2018.json @@ -0,0 +1 @@ +[{"membershi...
nf-core__tools-1624
Interactive module selection in `nf-core modules test` seems broken ### Description of the bug The interactive module selection in the `nf-core modules test` seems to be broken. When no module is specified in the command line, one is ask to select a module. But local modules in a pipeline do not show up and the one...
[ { "content": "#!/usr/bin/env python\n\"\"\"\nCommon utility functions for the nf-core python package.\n\"\"\"\nimport datetime\nimport errno\nimport hashlib\nimport json\nimport logging\nimport mimetypes\nimport os\nimport random\nimport re\nimport shlex\nimport subprocess\nimport sys\nimport time\nfrom distuti...
[ { "content": "#!/usr/bin/env python\n\"\"\"\nCommon utility functions for the nf-core python package.\n\"\"\"\nimport datetime\nimport errno\nimport hashlib\nimport json\nimport logging\nimport mimetypes\nimport os\nimport random\nimport re\nimport shlex\nimport subprocess\nimport sys\nimport time\nfrom distuti...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 30e7d12568..3e2501f1d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ - Update how we interface with git remotes. ([#1626](https://github.com/nf-core/tools/issues/1626)) - Add prompt for module name to `nf-core modules info` ([#1644](https://github.com/nf...
pallets__werkzeug-2248
Empty response with failure from ProcessPoolExecutor When a flask app uses a ProcessPoolExecutor and one of its tasks fails, werkzeug can't handle the stack trace. ``` from flask import Flask import concurrent.futures app = Flask(__name__) def fail(): raise ValueError('Failed') @app.route("/") def t...
[ { "content": "import codecs\nimport inspect\nimport os\nimport re\nimport sys\nimport sysconfig\nimport traceback\nimport typing as t\nfrom html import escape\nfrom tokenize import TokenError\nfrom types import CodeType\nfrom types import TracebackType\n\nfrom .._internal import _to_str\nfrom ..filesystem impor...
[ { "content": "import codecs\nimport inspect\nimport os\nimport re\nimport sys\nimport sysconfig\nimport traceback\nimport typing as t\nfrom html import escape\nfrom tokenize import TokenError\nfrom types import CodeType\nfrom types import TracebackType\n\nfrom .._internal import _to_str\nfrom ..filesystem impor...
diff --git a/CHANGES.rst b/CHANGES.rst index a63e0e18f..915ca7dd5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -39,6 +39,9 @@ Unreleased - Fix setting CSP header options on the response. :pr:`2237` - Fix an issue with with the interactive debugger where lines would not expand on click for very long tracebac...
jazzband__pip-tools-1105
--upgrade-package downgrades unrelated pre-release package when --pre not given <!-- Describe the issue briefly here. --> #### Environment Versions 1. OS Type: macOS 10.15.4 1. Python version: 3.7.7 1. pip version: 20.0.2 1. pip-tools version: 4.5.1 #### Steps to replicate (Note: this example will stop ...
[ { "content": "# coding: utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom contextlib import contextmanager\n\nfrom pip._internal.utils.hashes import FAVORITE_HASH\n\nfrom .._compat import PIP_VERSION\nfrom .base import BaseRepository\n\nfrom piptools.utils import ...
[ { "content": "# coding: utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom contextlib import contextmanager\n\nfrom pip._internal.utils.hashes import FAVORITE_HASH\n\nfrom .._compat import PIP_VERSION\nfrom .base import BaseRepository\n\nfrom piptools.utils import ...
diff --git a/piptools/repositories/local.py b/piptools/repositories/local.py index 7a0c920fc..ec3a7963b 100644 --- a/piptools/repositories/local.py +++ b/piptools/repositories/local.py @@ -17,7 +17,9 @@ def ireq_satisfied_by_existing_pin(ireq, existing_pin): previously encountered version pin. """ versio...
python-telegram-bot__python-telegram-bot-1968
[FEATURE] User.send_poll shortcut We have `Chat.send_poll` as shortcut, but `User` was neglected in #1418
[ { "content": "#!/usr/bin/env python\n# pylint: disable=C0103,W0622\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2020\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under ...
[ { "content": "#!/usr/bin/env python\n# pylint: disable=C0103,W0622\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2020\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under ...
diff --git a/telegram/user.py b/telegram/user.py index 084fd65a0cf..69afb57de13 100644 --- a/telegram/user.py +++ b/telegram/user.py @@ -296,3 +296,16 @@ def send_voice(self, *args, **kwargs): """ return self.bot.send_voice(self.id, *args, **kwargs) + + def send_poll(self, *args, **kwargs): + ...
yt-dlp__yt-dlp-6147
[Freesound] Downloads are broken ### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE - [X] I understand that I will be **blocked** if I remove or skip any mandatory\* field ### Checklist - [X] I'm reporting a broken site - [X] I've verified that I'm running yt-dlp version **2023.01.06** ([update instructions](https://githu...
[ { "content": "import re\n\nfrom .common import InfoExtractor\nfrom ..utils import (\n float_or_none,\n get_element_by_class,\n get_element_by_id,\n unified_strdate,\n)\n\n\nclass FreesoundIE(InfoExtractor):\n _VALID_URL = r'https?://(?:www\\.)?freesound\\.org/people/[^/]+/sounds/(?P<id>[^/]+)'\n ...
[ { "content": "import re\n\nfrom .common import InfoExtractor\nfrom ..utils import (\n float_or_none,\n get_element_by_class,\n get_element_by_id,\n unified_strdate,\n)\n\n\nclass FreesoundIE(InfoExtractor):\n _VALID_URL = r'https?://(?:www\\.)?freesound\\.org/people/[^/]+/sounds/(?P<id>[^/]+)'\n ...
diff --git a/yt_dlp/extractor/freesound.py b/yt_dlp/extractor/freesound.py index 8b5f2278cd8d..fcde04469c50 100644 --- a/yt_dlp/extractor/freesound.py +++ b/yt_dlp/extractor/freesound.py @@ -52,6 +52,7 @@ def _real_extract(self, url): tags_str = get_element_by_class('tags', webpage) tags = re.findall(...
pre-commit__pre-commit-540
always_run + no `files` still crashes on `KeyError: files` I was under the impression `files` was completely ignored for `always_run`, I guess not! Here's a small reproduction: ```yaml - repo: local hooks: - id: foo name: foo always_run: true entry: bash -c 'echo hello &&...
[ { "content": "from __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport logging\nimport os\nimport subprocess\nimport sys\n\nfrom pre_commit import color\nfrom pre_commit import git\nfrom pre_commit import output\nfrom pre_commit.output import get_hook_message\nfrom pre_commit.sta...
[ { "content": "from __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport logging\nimport os\nimport subprocess\nimport sys\n\nfrom pre_commit import color\nfrom pre_commit import git\nfrom pre_commit import output\nfrom pre_commit.output import get_hook_message\nfrom pre_commit.sta...
diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py index 3039b662c..9ce71d8de 100644 --- a/pre_commit/commands/run.py +++ b/pre_commit/commands/run.py @@ -57,7 +57,7 @@ def get_filenames(args, include_expr, exclude_expr): def _run_single_hook(hook, repo, args, skips, cols): - filenames = get_f...
pymodbus-dev__pymodbus-1512
New mypy error with asyncio.Task ``` ❯ git checkout 67d875b785d4f79da7b76413ae62ad71a1259fc3 Note: switching to '67d875b785d4f79da7b76413ae62ad71a1259fc3'. ❯ python3.11 -m mypy pymodbus Success: no issues found in 58 source files ❯ git checkout dev Previous HEAD position was 67d875b7 Solve serial close raise prob...
[ { "content": "\"\"\"Base for all clients.\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport socket\nfrom dataclasses import dataclass\nfrom typing import Any, Callable\n\nfrom pymodbus.client.mixin import ModbusClientMixin\nfrom pymodbus.constants import Defaults\nfrom pymodbus.exceptions impo...
[ { "content": "\"\"\"Base for all clients.\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport socket\nfrom dataclasses import dataclass\nfrom typing import Any, Callable\n\nfrom pymodbus.client.mixin import ModbusClientMixin\nfrom pymodbus.constants import Defaults\nfrom pymodbus.exceptions impo...
diff --git a/pymodbus/client/base.py b/pymodbus/client/base.py index deb4d5c10..0d47a1e50 100644 --- a/pymodbus/client/base.py +++ b/pymodbus/client/base.py @@ -119,7 +119,7 @@ def __init__( # pylint: disable=too-many-arguments self.state = ModbusTransactionState.IDLE self.last_frame_end: float = 0 ...
pallets__click-2556
`expose_value=false` causes crash when auto-completing. setting `expose_value=false` for an argument causes crash when auto-completing. To replicate: ```python # example.py import click @click.command @click.argument('a', expose_value=False) def main(): pass main() ``` ``` $ _EXAMPLE_PY_COMPLE...
[ { "content": "import os\nimport re\nimport typing as t\nfrom gettext import gettext as _\n\nfrom .core import Argument\nfrom .core import BaseCommand\nfrom .core import Context\nfrom .core import MultiCommand\nfrom .core import Option\nfrom .core import Parameter\nfrom .core import ParameterSource\nfrom .parser...
[ { "content": "import os\nimport re\nimport typing as t\nfrom gettext import gettext as _\n\nfrom .core import Argument\nfrom .core import BaseCommand\nfrom .core import Context\nfrom .core import MultiCommand\nfrom .core import Option\nfrom .core import Parameter\nfrom .core import ParameterSource\nfrom .parser...
diff --git a/CHANGES.rst b/CHANGES.rst index 639f2f7c5..b11e7d513 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -32,6 +32,7 @@ Unreleased - Remove outdated and unnecessary detection of App Engine environment. :pr:`2554` - ``echo()`` does not fail when no streams are attached, such as with ``pythonw`` on Wind...
bookwyrm-social__bookwyrm-2037
Celery is only using low priority queue I'm not sure if this is happening for everyone or just bookwyrm.social, but all my celery tasks are going to the `low_priority` queue and it's making everything run super slowly! (@tofuwabohu are you noticing this in flower?)
[ { "content": "\"\"\" bookwyrm settings and configuration \"\"\"\n# pylint: disable=wildcard-import\n# pylint: disable=unused-wildcard-import\nfrom bookwyrm.settings import *\n\n# pylint: disable=line-too-long\nREDIS_BROKER_PASSWORD = requests.utils.quote(env(\"REDIS_BROKER_PASSWORD\", None))\nREDIS_BROKER_HOST ...
[ { "content": "\"\"\" bookwyrm settings and configuration \"\"\"\n# pylint: disable=wildcard-import\n# pylint: disable=unused-wildcard-import\nfrom bookwyrm.settings import *\n\n# pylint: disable=line-too-long\nREDIS_BROKER_PASSWORD = requests.utils.quote(env(\"REDIS_BROKER_PASSWORD\", None))\nREDIS_BROKER_HOST ...
diff --git a/celerywyrm/settings.py b/celerywyrm/settings.py index 35eb3933f3..94e5302211 100644 --- a/celerywyrm/settings.py +++ b/celerywyrm/settings.py @@ -13,6 +13,7 @@ CELERY_RESULT_BACKEND = f"redis://:{REDIS_BROKER_PASSWORD}@{REDIS_BROKER_HOST}:{REDIS_BROKER_PORT}/{REDIS_BROKER_DB_INDEX}" CELERY_DEFAULT_QUEU...
conda__conda-build-991
Build fails for conda skeleton pypi python-Levenshtein --version 0.12.0 Different error from #608 (resolved by #527) but same library. [python-Levenshtein](https://github.com/ztane/python-Levenshtein/) does not appear to be under a lot of active development, so it's possible something is not configured properly on the ...
[ { "content": "\"\"\"\nTools for converting PyPI packages to conda recipes.\n\"\"\"\n\nfrom __future__ import absolute_import, division, print_function\n\nimport requests\n\nimport keyword\nimport os\nimport re\nimport subprocess\nimport sys\nfrom collections import defaultdict\nfrom os import makedirs, listdir,...
[ { "content": "\"\"\"\nTools for converting PyPI packages to conda recipes.\n\"\"\"\n\nfrom __future__ import absolute_import, division, print_function\n\nimport requests\n\nimport keyword\nimport os\nimport re\nimport subprocess\nimport sys\nfrom collections import defaultdict\nfrom os import makedirs, listdir,...
diff --git a/conda_build/pypi.py b/conda_build/pypi.py index e19fceecd6..10519e87c3 100644 --- a/conda_build/pypi.py +++ b/conda_build/pypi.py @@ -266,7 +266,8 @@ def main(args, parser): package_dicts = {} [output_dir] = args.output_dir - all_packages = client.list_packages() + # searching is faster t...
secdev__scapy-2690
Python error during Scapy import if ipv6 is unchecked in the wifi card properties #### Brief description A Python error is displayed during a `from scapy.all import sniff`, if the ipv6 is deactivated in the wifi card properties, on Windows. The same error seems to appear during any import from scapy.all. #### ...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# Copyright (C) Gabriel Potter <gabriel@potter.fr>\n# This program is published under a GPLv2 license\n\n\"\"\"\nCustomizations needed to support Micros...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# Copyright (C) Gabriel Potter <gabriel@potter.fr>\n# This program is published under a GPLv2 license\n\n\"\"\"\nCustomizations needed to support Micros...
diff --git a/scapy/arch/windows/__init__.py b/scapy/arch/windows/__init__.py index bd15abbcf84..614bd9ecf22 100755 --- a/scapy/arch/windows/__init__.py +++ b/scapy/arch/windows/__init__.py @@ -367,7 +367,7 @@ def update(self, data): pass try: self.ip6 = next(x for x in sel...
electricitymaps__electricitymaps-contrib-1773
Taiwan real-time data has stopped working Taiwain seems to have been offline recently It used to work correctly, something may have changed in the data source? Kibana error description [here](https://kibana.electricitymap.org/app/kibana#/discover/10af54f0-0c4a-11e9-85c1-1d63df8c862c?_g=(refreshInterval:(display:Off...
[ { "content": "#!/usr/bin/env python3\nimport arrow\nimport requests\nimport pandas\nimport dateutil\n\n\ndef fetch_production(zone_key='TW', session=None, target_datetime=None, logger=None):\n if target_datetime:\n raise NotImplementedError('This parser is not yet able to parse past dates')\n\n url...
[ { "content": "#!/usr/bin/env python3\nimport arrow\nimport requests\nimport pandas\nimport dateutil\n\n\ndef fetch_production(zone_key='TW', session=None, target_datetime=None, logger=None):\n if target_datetime:\n raise NotImplementedError('This parser is not yet able to parse past dates')\n\n url...
diff --git a/README.md b/README.md index dbc1547105..2b9990f0b9 100644 --- a/README.md +++ b/README.md @@ -51,19 +51,14 @@ The electricitymap doesn't use scheduled generation data or make assumptions abo Yes providing there is a valid GeoJSON geometry (or another format that can be converted) for the area. As an examp...
spack__spack-29252
Fix neovim install on M1 With #29228 and #29229 in, the `spack install neovim` fails with: ``` 1022 undef: _tigetstr 1023 undef: _cur_term 1024 undef: _setupterm >> 1025 Undefined symbols for architecture arm64: 1026 "_tigetstr", referenced from: 1027 _try_loa...
[ { "content": "# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack import *\n\n\nclass Libtermkey(Package):\n \"\"\"Easy keyboard entry processing f...
[ { "content": "# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack import *\n\n\nclass Libtermkey(Package):\n \"\"\"Easy keyboard entry processing f...
diff --git a/var/spack/repos/builtin/packages/libtermkey/package.py b/var/spack/repos/builtin/packages/libtermkey/package.py index 6c6c0d6130281f..c1c45a9b343566 100644 --- a/var/spack/repos/builtin/packages/libtermkey/package.py +++ b/var/spack/repos/builtin/packages/libtermkey/package.py @@ -19,7 +19,7 @@ class Libte...
ansible__ansible-lint-1020
ansible-lint errors when using 2.7+ include_tasks apply argument # Issue Type - Bug report # Ansible and Ansible Lint details $ ansible --version ansible 2.7.10 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ans...
[ { "content": "# Copyright (c) 2013-2014 Will Thames <will@thames.id.au>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the r...
[ { "content": "# Copyright (c) 2013-2014 Will Thames <will@thames.id.au>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the r...
diff --git a/lib/ansiblelint/utils.py b/lib/ansiblelint/utils.py index 40e7968706..0f4b96a4a3 100644 --- a/lib/ansiblelint/utils.py +++ b/lib/ansiblelint/utils.py @@ -219,6 +219,10 @@ def play_children(basedir, item, parent_type, playbook_dir): def _include_children(basedir, k, v, parent_type): + # handle speci...
nautobot__nautobot-3621
Have Docker compose invoke commands clean up after themselves <!-- Thank you for your interest in contributing to Nautobot! Please note that our contribution policy recommends that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time an...
[ { "content": "\"\"\"Tasks for use with Invoke.\n\n(c) 2020-2021 Network To Code\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n http://www.apache.org/licenses/LICENSE-2.0\nUnless requ...
[ { "content": "\"\"\"Tasks for use with Invoke.\n\n(c) 2020-2021 Network To Code\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n http://www.apache.org/licenses/LICENSE-2.0\nUnless requ...
diff --git a/changes/3621.changed b/changes/3621.changed new file mode 100644 index 00000000000..c9cb669cb54 --- /dev/null +++ b/changes/3621.changed @@ -0,0 +1 @@ +Changed development Docker compose commands to not leave temporary containers behind. diff --git a/tasks.py b/tasks.py index 271eea9db36..76b7ffd1a8c 10064...
googleapis__google-auth-library-python-385
Docs: compute_engine.credentials doesn't render note for service_account_email On this doc item: https://google-auth.readthedocs.io/en/latest/reference/google.auth.compute_engine.credentials.html#google.auth.compute_engine.credentials.Credentials.service_account_email The rendered docs say simply `The service accoun...
[ { "content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
[ { "content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
diff --git a/google/auth/compute_engine/credentials.py b/google/auth/compute_engine/credentials.py index eeb92f515..0abfc0530 100644 --- a/google/auth/compute_engine/credentials.py +++ b/google/auth/compute_engine/credentials.py @@ -105,7 +105,7 @@ def refresh(self, request): def service_account_email(self): ...
secdev__scapy-80
IKEv2 support is broken This issue is related to PR #52. ``` python >>> load_contrib("ikev2"); p = IP()/UDP()/IKEv2(init_SPI=RandString(8), exch_type=34)/IKEv2_payload_SA(prop=IKEv2_payload_Proposal()) Traceback (most recent call last): File "<console>", line 1, in <module> File "scapy/base_classes.py", line 223, ...
[ { "content": "#!/usr/bin/env python\n\n# http://trac.secdev.org/scapy/ticket/353\n\n# scapy.contrib.description = IKEv2\n# scapy.contrib.status = loads\n\nfrom scapy.all import *\nimport logging\n\n\n## Modified from the original ISAKMP code by Yaron Sheffer <yaronf.ietf@gmail.com>, June 2010.\n\nimport struct\...
[ { "content": "#!/usr/bin/env python\n\n# http://trac.secdev.org/scapy/ticket/353\n\n# scapy.contrib.description = IKEv2\n# scapy.contrib.status = loads\n\nfrom scapy.all import *\nimport logging\n\n\n## Modified from the original ISAKMP code by Yaron Sheffer <yaronf.ietf@gmail.com>, June 2010.\n\nimport struct\...
diff --git a/scapy/contrib/ikev2.py b/scapy/contrib/ikev2.py index 1b74d9b1536..07d4dbb2a16 100644 --- a/scapy/contrib/ikev2.py +++ b/scapy/contrib/ikev2.py @@ -343,7 +343,7 @@ class IKEv2_payload_Encrypted(IKEv2_class): IKEv2_payload_type_overload[globals()[name]] = {"next_payload": i} del i, payloadname, ...
carpentries__amy-337
Some workshops at the database are missing the Organizer field
[ { "content": "from django import forms\nfrom django.forms import HiddenInput\nfrom django.forms.models import modelform_factory\n\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Submit\nfrom selectable import forms as selectable\n\nfrom workshops.models import Skill, Airport, Event,...
[ { "content": "from django import forms\nfrom django.forms import HiddenInput\nfrom django.forms.models import modelform_factory\n\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Submit\nfrom selectable import forms as selectable\n\nfrom workshops.models import Skill, Airport, Event,...
diff --git a/workshops/forms.py b/workshops/forms.py index 2e64ce137..10438daad 100644 --- a/workshops/forms.py +++ b/workshops/forms.py @@ -133,7 +133,7 @@ class EventForm(forms.ModelForm): organizer = selectable.AutoCompleteSelectField( lookup_class=lookups.SiteLookup, label='Organizer', - ...
napari__napari-6552
[main, macOS 14?] Making new Labels layer using viewer button is broken ### 🐛 Bug Report `main` d507dd64ed6d96e984fa7fa57f2f232be388b5f7 I made a fresh env and installed `.[dev]` In a fresh viewer, clicking the new Labels button results in a traceback: `ValueError: Cannot build a texture for dtype raw_dtype=...
[ { "content": "from dataclasses import dataclass, field\nfrom typing import Any, Callable, List, Tuple, Union\n\nimport numpy as np\n\nfrom napari.layers.base._slice import _next_request_id\nfrom napari.layers.image._image_constants import ImageProjectionMode\nfrom napari.layers.image._image_utils import project...
[ { "content": "from dataclasses import dataclass, field\nfrom typing import Any, Callable, List, Tuple, Union\n\nimport numpy as np\n\nfrom napari.layers.base._slice import _next_request_id\nfrom napari.layers.image._image_constants import ImageProjectionMode\nfrom napari.layers.image._image_utils import project...
diff --git a/napari/layers/image/_slice.py b/napari/layers/image/_slice.py index f769a65b697..db2258f9e0b 100644 --- a/napari/layers/image/_slice.py +++ b/napari/layers/image/_slice.py @@ -103,7 +103,7 @@ def make_empty( shape = (1,) * slice_input.ndisplay if rgb: shape = shape + (3,) - ...
freedomofpress__securedrop-1336
update_version.sh should update new documentation Currently the "set_up_admin_tails" documentation looks like this, I suspect that between every release FPF just increments the number (from .3.6 to .3.7). Luckily we have computers to automate small tasks for us :-) Is there a programmatic way to do this? ``` cd secu...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in...
diff --git a/docs/conf.py b/docs/conf.py index 05013049a4..2caf6a674c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -59,9 +59,9 @@ # built documents. # # The short X.Y version. -version = '0.3.5' +version = '0.3.7' # The full version, including alpha/beta/rc tags. -release = '0.3.5' +release = '0.3.7' # The la...
google__timesketch-723
Export Entire Timelines / Entire Results Export feature maxes out at 500 (select all for a search result with >= 500 entries). Would be cool to allow entire timelines to be downloaded from Timelines view, or all search results from the Explore view.
[ { "content": "# Copyright 2015 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 2015 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/timesketch/views/sketch.py b/timesketch/views/sketch.py index 7d9eb4abcf..917a7882fc 100644 --- a/timesketch/views/sketch.py +++ b/timesketch/views/sketch.py @@ -451,6 +451,7 @@ def export(sketch_id): # Export more than the 500 first results. max_events_to_fetch = 10000 query_filter[u'limit'...
qtile__qtile-4409
[Docs] Broken Links # TLDR: - [ ] Fix http://docs.qtile.org/en/latest/manual/commands/scripting.html in https://github.com/qtile/qtile/blob/6357381aa54b47f9e5ecb0f434d728dd165a83fb/libqtile/extension/base.py#L95 - [ ] Add quotes to https://github.com/qtile/qtile/blob/6357381aa54b47f9e5ecb0f434d728dd165a83fb/docs/ma...
[ { "content": "# Copyright (c) 2017 Dario Giovannetti\n# Copyright (c) 2021 elParaguayo\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 l...
[ { "content": "# Copyright (c) 2017 Dario Giovannetti\n# Copyright (c) 2021 elParaguayo\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 l...
diff --git a/docs/manual/config/lazy.rst b/docs/manual/config/lazy.rst index 419b29f0ae..f965e9b39f 100644 --- a/docs/manual/config/lazy.rst +++ b/docs/manual/config/lazy.rst @@ -5,7 +5,7 @@ Lazy objects ============ Lazy objects are a way of executing any of the commands available in Qtile's -:doc:commands API </m...
facebookresearch__fairscale-218
[refactor] unit tests use relative imports, which break with some CI / toolchains ## 🚀 Feature Refactor unit tests to move testing utils in a common place within the fairscale library, instead of being ad-hoc relative imports ## Motivation Cleaner (there are probably utils which could be shared in between differe...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n\nimport argparse\nimport logging\nimport math\nimport os\nimport time\nimport warnings\n\nfrom benchmark_dataset import BenchmarkLMDataset, collate_sentences_lm\nimport torch\nfrom torch.distributed import rpc\nimport torch....
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n\nimport argparse\nimport logging\nimport math\nimport os\nimport time\nimport warnings\n\nfrom benchmark_dataset import BenchmarkLMDataset, collate_sentences_lm\nimport torch\nfrom torch.distributed import rpc\nimport torch....
diff --git a/benchmarks/pipe.py b/benchmarks/pipe.py index 521ce6122..2e9dfc413 100644 --- a/benchmarks/pipe.py +++ b/benchmarks/pipe.py @@ -23,7 +23,7 @@ from fairscale.nn.pipe import LazyModule, pipe from fairscale.optim import GradScaler from fairscale.optim.oss import OSS -from tests.nn.model_parallel.commons im...
elastic__apm-agent-python-1203
APM Agent Serialization Error **Describe the bug**: APM Agent crashes when using Python AWS SDK's builder for DynamoDB Key condition expressions. **To Reproduce** 1. Import `from boto3.dynamodb.conditions import Key` and make a DynamoDB query that includes `KeyConditionExpression` option with a value generated by...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following c...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following c...
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 9de866723..edd3addc4 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -37,12 +37,14 @@ endif::[] [float] ===== Features -* Renamed the experimental `log_ecs_formatting` config to `log_ecs_reformatting` {pull}1300[#1300] +* Rename the experimental...
cloudtools__troposphere-1036
Cloudformation bugs in EMR_Cluster example Great project! I found 2 bugs with the EMR cloudformation template. More than happy to submit a PR with the corrections if considered. 1. The reference to `EMR_AutoScaling_DefaultRole` fails template validation checks with the current configuration. ``` https://...
[ { "content": "from troposphere import Parameter, Ref, Template, Tags, If, Equals, Not, Join\nfrom troposphere.constants import KEY_PAIR_NAME, SUBNET_ID, M4_LARGE, NUMBER\nimport troposphere.emr as emr\nimport troposphere.iam as iam\n\n\nscaling_policy = emr.SimpleScalingPolicyConfiguration(\n ...
[ { "content": "from troposphere import Parameter, Ref, Template, Tags, If, Equals, Not, Join\nfrom troposphere.constants import KEY_PAIR_NAME, SUBNET_ID, M4_LARGE, NUMBER\nimport troposphere.emr as emr\nimport troposphere.iam as iam\n\n\nscaling_policy = emr.SimpleScalingPolicyConfiguration(\n ...
diff --git a/examples/EMR_Cluster.py b/examples/EMR_Cluster.py index add86d953..ffd758223 100644 --- a/examples/EMR_Cluster.py +++ b/examples/EMR_Cluster.py @@ -202,7 +202,7 @@ def generate_rules(rules_name): ], JobFlowRole=Ref(emr_instance_profile), ServiceRole=Ref(emr_service_role), - AutoScalingRol...
google__osv.dev-909
Change in affected versions for GHSA-5mg8-w23w-74h3 not picked up by OSV For Maven package `com.google.guava:guava`, the affected version range was changed from <= 30.0 to <= 29.0 both on GHSA as well as on NVD, but OSV did not update the list of affected versions. It seems the change is registered in the `Last affect...
[ { "content": "# Copyright 2021 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 2021 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/ecosystems.py b/osv/ecosystems.py index 7b296e663ad..0491ee1a7bd 100644 --- a/osv/ecosystems.py +++ b/osv/ecosystems.py @@ -334,7 +334,8 @@ def enumerate_versions(self, limits=None): """Enumerate versions.""" if use_deps_dev: - return self._deps_dev_enumerate(pa...
googleapis__google-cloud-python-5693
PubSub: add ack_id property accessor to subscriber Message class Version: google-cloud-pubsub 0.35.4 This is a feature request to add a property accessor for ack_id in `google.cloud.pubsub_v1.subscriber.message.Message`. Currently the `_ack_id` field is 'private', and only gets used via the `ack()` method (plus o...
[ { "content": "# Copyright 2017, Google LLC All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 2017, Google LLC All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/pubsub/google/cloud/pubsub_v1/subscriber/message.py b/pubsub/google/cloud/pubsub_v1/subscriber/message.py index 091826007ae3..6772f196bf60 100644 --- a/pubsub/google/cloud/pubsub_v1/subscriber/message.py +++ b/pubsub/google/cloud/pubsub_v1/subscriber/message.py @@ -164,6 +164,11 @@ def size(self): ...
voxel51__fiftyone-669
[BUG] Label stats don't update when views are created on remote sessions Environment: prod v0.6.4 I load the quickstart in a remote session and open a view with one random sample: ```py import fiftyone as fo dataset, session = fo.quickstart(remote=True) session.view = dataset.take(1) ``` However, the App...
[ { "content": "\"\"\"\nFiftyOne Flask server.\n\n| Copyright 2017-2020, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport argparse\nfrom collections import defaultdict\nfrom copy import copy\nimport json\nimport logging\nimport os\nimport traceback\nimport uuid\n\nfrom bson import ObjectI...
[ { "content": "\"\"\"\nFiftyOne Flask server.\n\n| Copyright 2017-2020, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport argparse\nfrom collections import defaultdict\nfrom copy import copy\nimport json\nimport logging\nimport os\nimport traceback\nimport uuid\n\nfrom bson import ObjectI...
diff --git a/electron/app/components/Filter.tsx b/electron/app/components/Filter.tsx index 6dc944a7d7e..26fceb7a0ed 100644 --- a/electron/app/components/Filter.tsx +++ b/electron/app/components/Filter.tsx @@ -438,7 +438,6 @@ const Filter = React.memo(({ expanded, style, entry, modal, ...rest }) => { const bounds = u...
obspy__obspy-1805
Bug in `obspy.taup.tau_model.TauModel.load_from_depth_cache` ? Sorry if the problem has been reported (I didn't find any on the issues list), but it seems inconsistent the behaviour of this line: https://github.com/obspy/obspy/blob/master/obspy/taup/tau_model.py#L238 where ``` self._load_from_depth_cache() ``` ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nInternal TauModel class.\n\"\"\"\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\nfrom future.builtins import * # NOQA\nfrom future.utils import native_str\n\nfrom collections im...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nInternal TauModel class.\n\"\"\"\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\nfrom future.builtins import * # NOQA\nfrom future.utils import native_str\n\nfrom collections im...
diff --git a/obspy/taup/tau_model.py b/obspy/taup/tau_model.py index 7dd3bd4ce9f..baab923f6a3 100644 --- a/obspy/taup/tau_model.py +++ b/obspy/taup/tau_model.py @@ -235,7 +235,7 @@ def load_from_depth_cache(self, depth): self._depth_cache.popitem(last=False) return value else: - ...
open-mmlab__mmcv-506
Bug in `register_training_hooks` Here in [register_training_hooks](https://github.com/open-mmlab/mmcv/blob/1830347f8b23cf6177ff0d13973465366b51bfe5/mmcv/runner/base_runner.py#L395). The only positional args is 'lr_config', while 'log_config' is default to be None. But 'register_logger_hook' do not have None-handle like...
[ { "content": "# Copyright (c) Open-MMLab. All rights reserved.\nimport logging\nimport os.path as osp\nimport warnings\nfrom abc import ABCMeta, abstractmethod\n\nimport torch\nfrom torch.optim import Optimizer\n\nimport mmcv\nfrom ..parallel import is_module_wrapper\nfrom .checkpoint import load_checkpoint\nfr...
[ { "content": "# Copyright (c) Open-MMLab. All rights reserved.\nimport logging\nimport os.path as osp\nimport warnings\nfrom abc import ABCMeta, abstractmethod\n\nimport torch\nfrom torch.optim import Optimizer\n\nimport mmcv\nfrom ..parallel import is_module_wrapper\nfrom .checkpoint import load_checkpoint\nfr...
diff --git a/mmcv/runner/base_runner.py b/mmcv/runner/base_runner.py index 912d84bd27..c8a5513bf2 100644 --- a/mmcv/runner/base_runner.py +++ b/mmcv/runner/base_runner.py @@ -386,6 +386,8 @@ def register_checkpoint_hook(self, checkpoint_config): self.register_hook(hook) def register_logger_hooks(self, l...
StackStorm__st2-4743
Efficient pack development at scale ##### SUMMARY Currently stackstorm-exchange packs have a development workflow that requires the version to get bumped with every pull request. As part of a discussion in a pull request for the vSphere pack, some limitations of the current methodologies came up which will hinder s...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2019 Extreme Networks, 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...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2019 Extreme Networks, 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...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b255f90db5..55a1d244a3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,12 @@ Changelog in development -------------- +Changed +~~~~~~~ + +* Install pack with the latest tag version if it exists when branch is not specialized. + (improvement) #4743 + Fixed...
django-import-export__django-import-export-1849
ModelResource field order in admin import page **Describe the bug** Hello, I'm in the process of upgrading from 3.3.9 to 4.0.3 and noticed that the order of fields displayed in the admin import view differs from that of the `fields` definition in the resource's `Meta` class. Specifically, fields defined using an `att...
[ { "content": "import functools\nimport inspect\nimport logging\nimport traceback\nfrom collections import OrderedDict\nfrom copy import deepcopy\nfrom html import escape\nfrom warnings import warn\n\nimport tablib\nfrom diff_match_patch import diff_match_patch\nfrom django.conf import settings\nfrom django.core...
[ { "content": "import functools\nimport inspect\nimport logging\nimport traceback\nfrom collections import OrderedDict\nfrom copy import deepcopy\nfrom html import escape\nfrom warnings import warn\n\nimport tablib\nfrom diff_match_patch import diff_match_patch\nfrom django.conf import settings\nfrom django.core...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 63b5632d1..83e4ec282 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -11,6 +11,7 @@ Changelog - Release note documentation updated (`1840 <https://github.com/django-import-export/django-import-export/pull/1840>`_) - Refactored ``DateWidget`` & ``D...
pwr-Solaar__Solaar-2233
Logitech G Powerplay is reported as "Candy Companion Chip" **Information** I have an "Logitech G Powerplay" MousePad: - https://www.logitechg.com/en-us/products/gaming-mouse-pads/powerplay-wireless-charging.943-000109.html?sp=1&searchclick=gaming and an G502 Mouse: - https://www.logitechg.com/en-us/products/g...
[ { "content": "# -*- python-mode -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the License, or\n## (at your...
[ { "content": "# -*- python-mode -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the License, or\n## (at your...
diff --git a/lib/logitech_receiver/descriptors.py b/lib/logitech_receiver/descriptors.py index 8a90ddd667..6c709ad987 100644 --- a/lib/logitech_receiver/descriptors.py +++ b/lib/logitech_receiver/descriptors.py @@ -321,6 +321,7 @@ class _PerformanceMXDpi(_ST.RegisterDpi): _D('Wireless Touchpad', codename='Wireless T...
psf__black-3275
Fix start up code to also call freeze_support() on macOS when frozen so native macOS executables work I broke the native macOS executables. [The build for 22.8.0 failed](https://github.com/psf/black/runs/8124297895?check_suite_focus=true) since the executable failed the basic sanity checks pre-upload ``` Usage: black...
[ { "content": "import io\nimport json\nimport platform\nimport re\nimport sys\nimport tokenize\nimport traceback\nfrom contextlib import contextmanager\nfrom dataclasses import replace\nfrom datetime import datetime\nfrom enum import Enum\nfrom json.decoder import JSONDecodeError\nfrom pathlib import Path\nfrom ...
[ { "content": "import io\nimport json\nimport platform\nimport re\nimport sys\nimport tokenize\nimport traceback\nfrom contextlib import contextmanager\nfrom dataclasses import replace\nfrom datetime import datetime\nfrom enum import Enum\nfrom json.decoder import JSONDecodeError\nfrom pathlib import Path\nfrom ...
diff --git a/CHANGES.md b/CHANGES.md index a775c76e4a5..6fb099040b3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -31,6 +31,9 @@ <!-- Changes to how Black is packaged, such as dependency requirements --> +- Executables made with PyInstaller will no longer crash when formatting several files + at once on macOS. Nati...
quantumlib__Cirq-5706
`dev_tools/modules.py` fails with a confusing error if invoked without argument **Description of the issue** The program `dev_tools/modules.py` exits with a confusing and user-unfriendly error message if it is invoked without any arguments. At the same time, it is not obvious (or at least, I haven't found it mention...
[ { "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/dev_tools/modules.py b/dev_tools/modules.py index 9fd5ecdbc25..2618b8921bb 100644 --- a/dev_tools/modules.py +++ b/dev_tools/modules.py @@ -303,6 +303,9 @@ def parse(args): def main(argv: List[str]): + if argv == []: + # If no arguments are given, print the help/usage info. + argv = [...
kartoza__prj.app-813
Error 500: Editing Answers. # Problem When I select the edit option for the answers on http://changelog.qgis.org/id/inasafe-realtime2/ Then I get error 500.
[ { "content": "# coding=utf-8\n\"\"\"Answer views.\"\"\"\n\nfrom django.core.urlresolvers import reverse\nfrom django.views.generic import (\n CreateView,\n DeleteView,\n UpdateView,\n)\nfrom django.shortcuts import get_object_or_404\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom brace...
[ { "content": "# coding=utf-8\n\"\"\"Answer views.\"\"\"\n\nfrom django.core.urlresolvers import reverse\nfrom django.views.generic import (\n CreateView,\n DeleteView,\n UpdateView,\n)\nfrom django.shortcuts import get_object_or_404\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom brace...
diff --git a/django_project/lesson/views/answer.py b/django_project/lesson/views/answer.py index 698ad5787..35f29213f 100644 --- a/django_project/lesson/views/answer.py +++ b/django_project/lesson/views/answer.py @@ -104,7 +104,7 @@ def get_form_kwargs(self): :rtype: dict """ kwargs = super(A...
xorbitsai__inference-299
FEAT: Disable Gradio Telemetry Pull requests are disabled but see here: https://github.com/arch-btw/inference/pull/1
[ { "content": "from typing import Dict, List\n\nimport gradio as gr\n\nfrom xinference.client import Client\n\nif __name__ == \"__main__\":\n import argparse\n import textwrap\n\n parser = argparse.ArgumentParser(\n formatter_class=argparse.RawDescriptionHelpFormatter,\n epilog=textwrap.de...
[ { "content": "from typing import Dict, List\n\nimport gradio as gr\n\nfrom xinference.client import Client\n\nif __name__ == \"__main__\":\n import argparse\n import textwrap\n\n parser = argparse.ArgumentParser(\n formatter_class=argparse.RawDescriptionHelpFormatter,\n epilog=textwrap.de...
diff --git a/examples/gradio_chatinterface.py b/examples/gradio_chatinterface.py index 07b8f65ec5..12378f9ffe 100644 --- a/examples/gradio_chatinterface.py +++ b/examples/gradio_chatinterface.py @@ -105,6 +105,7 @@ def generate_wrapper(message: str, history: List[List[str]]) -> str: demo = gr.ChatInterface( ...
avocado-framework__avocado-4092
Python-unittest: Avocado do not "nrun" tests in the current directory Running the python-unittest from the `unit` directory with `avocado run` works as expected: ``` [wrampazz@wrampazz unit]$ pwd /home/wrampazz/src/avocado/avocado.dev/selftests/unit [wrampazz@wrampazz unit]$ avocado run test_plugin_assets.py /...
[ { "content": "#!/usr/bin/env python3\n\nimport argparse\nimport base64\nimport collections\nimport inspect\nimport io\nimport json\nimport multiprocessing\nimport os\nimport socket\nimport subprocess\nimport sys\nimport tempfile\nimport time\nimport unittest\n\ntry:\n import pkg_resources\n PKG_RESOURCES_...
[ { "content": "#!/usr/bin/env python3\n\nimport argparse\nimport base64\nimport collections\nimport inspect\nimport io\nimport json\nimport multiprocessing\nimport os\nimport socket\nimport subprocess\nimport sys\nimport tempfile\nimport time\nimport unittest\n\ntry:\n import pkg_resources\n PKG_RESOURCES_...
diff --git a/avocado/core/nrunner.py b/avocado/core/nrunner.py index 07f7d32d6f..23f90fbf95 100755 --- a/avocado/core/nrunner.py +++ b/avocado/core/nrunner.py @@ -468,6 +468,7 @@ def _uri_to_unittest_name(uri): @staticmethod def _run_unittest(uri, queue): + sys.path.insert(0, ".") stream = i...
secdev__scapy-4064
Add missing SOME/IP-SD FLAG 'EXPLICIT_INITIAL_DATA_CONTROL' in SD class ### Brief description Hello Scapy team, Firstly, I want to thank you for your incredible work on Scapy. It's an invaluable tool that I use often. I'm writing to bring your attention to what seems to be a missing flag in the `SD` class for ...
[ { "content": "# SPDX-License-Identifier: GPL-2.0-only\n# This file is part of Scapy\n# See https://scapy.net/ for more information\n# Copyright (C) Sebastian Baar <sebastian.baar@gmx.de>\n# Copyright (c) 2018 Jose Amores\n\n# scapy.contrib.description = Scalable service-Oriented MiddlewarE/IP (SOME/IP)\n# scapy...
[ { "content": "# SPDX-License-Identifier: GPL-2.0-only\n# This file is part of Scapy\n# See https://scapy.net/ for more information\n# Copyright (C) Sebastian Baar <sebastian.baar@gmx.de>\n# Copyright (c) 2018 Jose Amores\n\n# scapy.contrib.description = Scalable service-Oriented MiddlewarE/IP (SOME/IP)\n# scapy...
diff --git a/scapy/contrib/automotive/someip.py b/scapy/contrib/automotive/someip.py index 1bb491644bc..32b64376322 100644 --- a/scapy/contrib/automotive/someip.py +++ b/scapy/contrib/automotive/someip.py @@ -432,7 +432,8 @@ class SD(_SDPacketBase): _sdFlag = collections.namedtuple('Flag', 'mask offset') FLAG...
django-tastypie__django-tastypie-1399
Allow use of timeout=0 in Simple cache Fixes #1212
[ { "content": "from __future__ import unicode_literals\nfrom django.core.cache import get_cache\n\n\nclass NoCache(object):\n \"\"\"\n A simplified, swappable base class for caching.\n\n Does nothing save for simulating the cache API.\n \"\"\"\n def __init__(self, varies=None, *args, **kwargs):\n ...
[ { "content": "from __future__ import unicode_literals\nfrom django.core.cache import get_cache\n\n\nclass NoCache(object):\n \"\"\"\n A simplified, swappable base class for caching.\n\n Does nothing save for simulating the cache API.\n \"\"\"\n def __init__(self, varies=None, *args, **kwargs):\n ...
diff --git a/tastypie/cache.py b/tastypie/cache.py index 22bfd4397..6e8702e50 100644 --- a/tastypie/cache.py +++ b/tastypie/cache.py @@ -60,7 +60,7 @@ def __init__(self, cache_name='default', timeout=None, public=None, """ super(SimpleCache, self).__init__(*args, **kwargs) self.cache = get_ca...
aws__aws-cli-260
aws ses displays error msg: "No handlers could be found for logger "awscli.customizations.removals"" The error msg appears before the output whenever "ses" command is called. ``` C:\> aws ses No handlers could be found for logger "awscli.customizations.removals" usage: aws [options] <service_name> <operation> [paramet...
[ { "content": "# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2....
[ { "content": "# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2....
diff --git a/awscli/clidriver.py b/awscli/clidriver.py index 8a5552063645..309cd8f1b746 100644 --- a/awscli/clidriver.py +++ b/awscli/clidriver.py @@ -203,6 +203,8 @@ def _handle_top_level_args(self, args): # loading of plugins, etc. self.session.set_debug_logger(logger_name='botocore') ...
ckan__ckan-4307
Internal server error when viewing /dashboard when logged out ### CKAN Version if known (or site URL) 2.8.0 ### Please describe the expected behaviour When attempting to visit /dashboard as a non-logged in user, the user should be sent to the login page. ### Please describe the actual behaviour An intern...
[ { "content": "# encoding: utf-8\nimport logging\n\nfrom flask import Blueprint\n\nimport ckan.lib.base as base\nimport ckan.lib.helpers as h\nimport ckan.logic as logic\nimport ckan.model as model\nfrom ckan.common import _, g, request\nfrom ckan.views.user import _extra_template_variables\n\nlog = logging.getL...
[ { "content": "# encoding: utf-8\nimport logging\n\nfrom flask import Blueprint\n\nimport ckan.lib.base as base\nimport ckan.lib.helpers as h\nimport ckan.logic as logic\nimport ckan.model as model\nfrom ckan.common import _, g, request\nfrom ckan.views.user import _extra_template_variables\n\nlog = logging.getL...
diff --git a/ckan/tests/controllers/test_user.py b/ckan/tests/controllers/test_user.py index edae433020c..0d610cc81ea 100644 --- a/ckan/tests/controllers/test_user.py +++ b/ckan/tests/controllers/test_user.py @@ -192,6 +192,15 @@ def test_non_root_user_logout_url_redirect(self): class TestUser(helpers.FunctionalTest...
zostera__django-bootstrap3-504
Bootstrap alert with <br> tag When I use the `bootstrap_alert` template tag like so : {% bootstrap_alert "Sorry but you don't have access to this page.<br>Contact me to get access !" %} I expect to have two lines in the alert, but instead I have the `br` tag escaped : ![image](https://user-images.githubus...
[ { "content": "from django.utils.safestring import mark_safe\n\nfrom bootstrap3.utils import add_css_class, render_tag\n\nfrom .text import text_value\n\n\ndef render_icon(icon, **kwargs):\n \"\"\"Render a Bootstrap glyphicon icon.\"\"\"\n attrs = {\"class\": add_css_class(\"glyphicon glyphicon-{icon}\".fo...
[ { "content": "from django.utils.safestring import mark_safe\n\nfrom bootstrap3.utils import add_css_class, render_tag\n\nfrom .text import text_value\n\n\ndef render_icon(icon, **kwargs):\n \"\"\"Render a Bootstrap glyphicon icon.\"\"\"\n attrs = {\"class\": add_css_class(\"glyphicon glyphicon-{icon}\".fo...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 37f2b5bb..4579e5c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 14.3.0 - In development +- Fix `render_alert` (#488) - Rename AUTHORS.md to AUTHORS, remove authors section from documentation. - Revert to setuptools for packaging. - Add docs and t...
secdev__scapy-3207
TypeError: not all arguments converted during string formatting <!-- Things to consider 1. Please check that you are using the latest scapy version, e.g. installed via: `pip install --upgrade git+git://github.com/secdev/scapy` 2. If you are here to ask a question - please check previous issues and onlin...
[ { "content": "# Guillaume Valadon <guillaume@valadon.net>\n\n\"\"\"\nScapy *BSD native support - core\n\"\"\"\n\nfrom __future__ import absolute_import\n\nfrom ctypes import cdll, cast, pointer\nfrom ctypes import c_int, c_ulong, c_uint, c_char_p, Structure, POINTER\nfrom ctypes.util import find_library\nimport...
[ { "content": "# Guillaume Valadon <guillaume@valadon.net>\n\n\"\"\"\nScapy *BSD native support - core\n\"\"\"\n\nfrom __future__ import absolute_import\n\nfrom ctypes import cdll, cast, pointer\nfrom ctypes import c_int, c_ulong, c_uint, c_char_p, Structure, POINTER\nfrom ctypes.util import find_library\nimport...
diff --git a/scapy/arch/bpf/core.py b/scapy/arch/bpf/core.py index d49267cd911..a364782b33e 100644 --- a/scapy/arch/bpf/core.py +++ b/scapy/arch/bpf/core.py @@ -122,6 +122,11 @@ def get_if_raw_hwaddr(ifname): # Pack and return the MAC address mac = addresses[0].split(' ')[1] mac = [chr(int(b, 16)) for b ...
explosion__spaCy-3032
parameter averaging You recommend (https://spacy.io/usage/training#section-tips): > Then when we want to actually use the model, we use the averages, not the most recent value. > with nlp.use_params(optimizer.averages): > nlp.to_disk('/model') But in the classification example https://spacy.io/usage/traini...
[ { "content": "#!/usr/bin/env python\n# coding: utf8\n\"\"\"Train a convolutional neural network text classifier on the\nIMDB dataset, using the TextCategorizer component. The dataset will be loaded\nautomatically via Thinc's built-in dataset loader. The model is added to\nspacy.pipeline, and predictions are ava...
[ { "content": "#!/usr/bin/env python\n# coding: utf8\n\"\"\"Train a convolutional neural network text classifier on the\nIMDB dataset, using the TextCategorizer component. The dataset will be loaded\nautomatically via Thinc's built-in dataset loader. The model is added to\nspacy.pipeline, and predictions are ava...
diff --git a/examples/training/train_textcat.py b/examples/training/train_textcat.py index 61cd7e51e75..2374eb7a673 100644 --- a/examples/training/train_textcat.py +++ b/examples/training/train_textcat.py @@ -82,7 +82,8 @@ def main(model=None, output_dir=None, n_iter=20, n_texts=2000): output_dir = Path(output...
librosa__librosa-1699
Support sphinx 6.x in documentation builds **Describe the bug** Sphinx 6.0 removed jquery, which is used in our sphinx-multiversion documentation theme to pop open the version navigation box. If the documentation site is compiled using the latest sphinx version, the result no longer works properly. This ought to...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# librosa documentation build configuration file, created by\n# sphinx-quickstart on Tue Jun 25 13:12:33 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# librosa documentation build configuration file, created by\n# sphinx-quickstart on Tue Jun 25 13:12:33 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\...
diff --git a/.github/environment-docs.yml b/.github/environment-docs.yml index 7db72a4ab2..ac4b93983a 100644 --- a/.github/environment-docs.yml +++ b/.github/environment-docs.yml @@ -20,10 +20,10 @@ dependencies: - pooch>=1.0.0,<1.7 - packaging>=20.0 - matplotlib>=3.5 - - sphinx>=5.1.0,<6 + - sphinx>=5.1.0 ...
open-telemetry__opentelemetry-python-2690
opentelemetry.sdk._logs.LoggingHandler panics when exc_info is set to False for logger.error **Describe your environment** Describe any aspect of your environment relevant to the problem, including your Python version, [platform](https://docs.python.org/3/library/platform.html), version numbers of installed dependencie...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f1993e316df..e13fd939015 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/open-telemetry/opentelemetry-python/compare/v1.11.1-0.30b1...HEAD) ...
OpenMined__PySyft-2759
Transform shares to support negative values For AdditiveSharing and FixedPrecision, if the field is 2**64, the values of the sahres should lie in `[-2**63, 2**63-1]` and not in `[0, 2**64]`. It allows for automatic wrapping for LongTensor and `field=2**63`.
[ { "content": "import math\nimport torch\n\nimport syft as sy\nfrom syft.frameworks.torch.mpc import spdz\nfrom syft.frameworks.torch.mpc import securenn\nfrom syft.generic.tensor import AbstractTensor\nfrom syft.generic.frameworks.hook import hook_args\nfrom syft.generic.frameworks.overload import overloaded\nf...
[ { "content": "import math\nimport torch\n\nimport syft as sy\nfrom syft.frameworks.torch.mpc import spdz\nfrom syft.frameworks.torch.mpc import securenn\nfrom syft.generic.tensor import AbstractTensor\nfrom syft.generic.frameworks.hook import hook_args\nfrom syft.generic.frameworks.overload import overloaded\nf...
diff --git a/examples/tutorials/Part 09 - Intro to Encrypted Programs.ipynb b/examples/tutorials/Part 09 - Intro to Encrypted Programs.ipynb index 2e6cfab6e32..ba02941a797 100644 --- a/examples/tutorials/Part 09 - Intro to Encrypted Programs.ipynb +++ b/examples/tutorials/Part 09 - Intro to Encrypted Programs.ipynb @...
nilearn__nilearn-1169
Dropping scikit-learn dependency < 0.14.1 It makes easier to set base for decoder object in nilearn which actually requires lot of backports for versions. #1148 I don't have great justifications though. Let me know if I miss something important in nilearn which we need to take into account dropping 0.13. FYI: https:...
[ { "content": "# *- encoding: utf-8 -*-\n\"\"\"\nnilearn version, required package versions, and utilities for checking\n\"\"\"\n# Author: Loïc Estève, Ben Cipollini\n# License: simplified BSD\n\n# PEP0440 compatible formatted version, see:\n# https://www.python.org/dev/peps/pep-0440/\n#\n# Generic release marke...
[ { "content": "# *- encoding: utf-8 -*-\n\"\"\"\nnilearn version, required package versions, and utilities for checking\n\"\"\"\n# Author: Loïc Estève, Ben Cipollini\n# License: simplified BSD\n\n# PEP0440 compatible formatted version, see:\n# https://www.python.org/dev/peps/pep-0440/\n#\n# Generic release marke...
diff --git a/.travis.yml b/.travis.yml index f966d3fbba..ff690b5920 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ matrix: # still having the package version available through conda - env: DISTRIB="conda" PYTHON_VERSION="2.6" NUMPY_VERSION="1.6.2" SCIPY_VERSION="0.11.0" - ...
nvaccess__nvda-10304
When BRLTTY for Windows is installed scons fails to bundle BrlAPI Discovered while debugging #10228 ### Steps to reproduce: 1. Install BRLTTY for Windows you do not need to have any actual braille display connected. 2. Execute scons launcher from the root of the NVDA repo. 3. Start newly created launcher. ### Actu...
[ { "content": "# -*- coding: UTF-8 -*-\r\n#setup.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#Copyright (C) 2006-2018 NV Access Limited, Peter Vágner, Joseph Lee\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 os\r\nimport copy\r\nimpor...
[ { "content": "# -*- coding: UTF-8 -*-\r\n#setup.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#Copyright (C) 2006-2018 NV Access Limited, Peter Vágner, Joseph Lee\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 os\r\nimport copy\r\nimpor...
diff --git a/source/setup.py b/source/setup.py index 21b90403f93..644def720dd 100755 --- a/source/setup.py +++ b/source/setup.py @@ -230,6 +230,7 @@ def getRecursiveDataFiles(dest,source,excludes=()): ("images", glob("images/*.ico")), ("louis/tables",glob("louis/tables/*")), ("COMRegistrationFixes", glob("CO...
searx__searx-752
Fixed two typos in index.html, fixed one typo in dev/plugins.html, an… …d fixed grammar in dev/engine_overview.html
[ { "content": "# -*- coding: utf-8 -*-\n#\n# searx documentation build configuration file, created by\n# sphinx-quickstart on Tue Nov 17 17:12:13 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# searx documentation build configuration file, created by\n# sphinx-quickstart on Tue Nov 17 17:12:13 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this...
diff --git a/_sources/dev/engine_overview.txt b/_sources/dev/engine_overview.txt index 186cc0f944..d57ca5b388 100644 --- a/_sources/dev/engine_overview.txt +++ b/_sources/dev/engine_overview.txt @@ -30,15 +30,17 @@ settings. However, the standard way is the following: engine file ~~~~~~~~~~~ -+---------------------...
beeware__toga-2517
Widget IDs are not cleared when a window closes ### Describe the bug When a window is created upon the click of a button or other widget in a main window, IDs of widgets within that sub-window are not cleared, causing window creation and displaying to fail when the window is closed and re-opened. ### Steps to rep...
[ { "content": "from __future__ import annotations\n\nimport warnings\nfrom builtins import id as identifier\nfrom collections.abc import Mapping, MutableSet\nfrom pathlib import Path\nfrom typing import (\n TYPE_CHECKING,\n Any,\n ItemsView,\n Iterator,\n KeysView,\n Literal,\n Protocol,\n ...
[ { "content": "from __future__ import annotations\n\nimport warnings\nfrom builtins import id as identifier\nfrom collections.abc import Mapping, MutableSet\nfrom pathlib import Path\nfrom typing import (\n TYPE_CHECKING,\n Any,\n ItemsView,\n Iterator,\n KeysView,\n Literal,\n Protocol,\n ...
diff --git a/changes/2514.bugfix.rst b/changes/2514.bugfix.rst new file mode 100644 index 0000000000..2ed812e412 --- /dev/null +++ b/changes/2514.bugfix.rst @@ -0,0 +1 @@ +Widget IDs can now be reused after the associated widget's window is closed. diff --git a/core/src/toga/window.py b/core/src/toga/window.py index e1...
freedomofpress__securedrop-3764
0.9.0-rc2 does not allow text only submissions ## Description I believe I found a bug in upgrading from `0.8` to `0.9rc2` in that sources can only submit documents or documents and messages. If I try to send _only_ text or a blank form field I get a "Bad Request, the browser or proxy sent a request that this server ...
[ { "content": "import operator\nimport os\nimport io\n\nfrom datetime import datetime\nfrom flask import (Blueprint, render_template, flash, redirect, url_for, g,\n session, current_app, request, Markup, abort)\nfrom flask_babel import gettext\nfrom sqlalchemy.exc import IntegrityError\n\nfrom ...
[ { "content": "import operator\nimport os\nimport io\n\nfrom datetime import datetime\nfrom flask import (Blueprint, render_template, flash, redirect, url_for, g,\n session, current_app, request, Markup, abort)\nfrom flask_babel import gettext\nfrom sqlalchemy.exc import IntegrityError\n\nfrom ...
diff --git a/securedrop/source_app/main.py b/securedrop/source_app/main.py index 40aeab55ad..cd52fe42f8 100644 --- a/securedrop/source_app/main.py +++ b/securedrop/source_app/main.py @@ -124,7 +124,9 @@ def lookup(): @login_required def submit(): msg = request.form['msg'] - fh = request.files[...
encode__django-rest-framework-1078
Browsable API bug (in master) The browsable API breaks on listview when the queryset is empty. Git bisect says it was introduced in commit 10d386e. Traceback: ``` 'NoneType' object has no attribute 'company' File "[...]/django/core/handlers/base.py" in get_response 140. response = response.ren...
[ { "content": "\"\"\"\nSerializer fields that deal with relationships.\n\nThese fields allow you to specify the style that should be used to represent\nmodel relationships, including hyperlinks, primary keys, or slugs.\n\"\"\"\nfrom __future__ import unicode_literals\nfrom django.core.exceptions import ObjectDoe...
[ { "content": "\"\"\"\nSerializer fields that deal with relationships.\n\nThese fields allow you to specify the style that should be used to represent\nmodel relationships, including hyperlinks, primary keys, or slugs.\n\"\"\"\nfrom __future__ import unicode_literals\nfrom django.core.exceptions import ObjectDoe...
diff --git a/rest_framework/relations.py b/rest_framework/relations.py index 3ad16ee5ed..35c00bf1df 100644 --- a/rest_framework/relations.py +++ b/rest_framework/relations.py @@ -264,7 +264,7 @@ def field_to_native(self, obj, field_name): # RelatedObject (reverse relationship) try: ...
iterative__dvc-580
Empty md5 sum errors When md5 sum is empty in DVC-file: ``` $ dvc checkout 'data/eval.txt': cache file not found 'data/model.p': cache file not found ``` This happens if I resolve DVC-file merge conflicts by replacing md5 checksums to empty.
[ { "content": "import os\nimport stat\nimport json\nimport shutil\nfrom checksumdir import dirhash\n\nfrom dvc.system import System\nfrom dvc.utils import file_md5\nfrom dvc.exceptions import DvcException\nfrom dvc.logger import Logger\n\n\nclass OutputError(DvcException):\n pass\n\n\nclass CmdOutputError(Dvc...
[ { "content": "import os\nimport stat\nimport json\nimport shutil\nfrom checksumdir import dirhash\n\nfrom dvc.system import System\nfrom dvc.utils import file_md5\nfrom dvc.exceptions import DvcException\nfrom dvc.logger import Logger\n\n\nclass OutputError(DvcException):\n pass\n\n\nclass CmdOutputError(Dvc...
diff --git a/dvc/output.py b/dvc/output.py index 342bed3b6e..39a0d08a54 100644 --- a/dvc/output.py +++ b/dvc/output.py @@ -287,7 +287,8 @@ def checkout(self): return if not self.cache or not os.path.exists(self.cache): - self.project.logger.warn(u'\'{}\': cache file not found'.format(...
redis__redis-py-1901
run GraphCommands.explain raise TypeError **Version**: 4.1.0 **Python Version**: 3.8 **Platform**: MacOS 12.0.1 **Description**: I'm using redisgraph:2.8.7 with redis-py. I met a error when I run explain. Error: ```python graph.explain('match (n:person) where n.name = "ken" return n') ``` raise exception...
[ { "content": "from redis import DataError\nfrom redis.exceptions import ResponseError\n\nfrom .exceptions import VersionMismatchException\nfrom .query_result import QueryResult\n\n\nclass GraphCommands:\n \"\"\"RedisGraph Commands\"\"\"\n\n def commit(self):\n \"\"\"\n Create entire graph.\n...
[ { "content": "from redis import DataError\nfrom redis.exceptions import ResponseError\n\nfrom .exceptions import VersionMismatchException\nfrom .query_result import QueryResult\n\n\nclass GraphCommands:\n \"\"\"RedisGraph Commands\"\"\"\n\n def commit(self):\n \"\"\"\n Create entire graph.\n...
diff --git a/redis/commands/graph/commands.py b/redis/commands/graph/commands.py index fa0a9da55f..157f628339 100644 --- a/redis/commands/graph/commands.py +++ b/redis/commands/graph/commands.py @@ -135,6 +135,8 @@ def explain(self, query, params=None): query = self._build_params_header(params) + query ...
frappe__frappe-5292
[Blog] Image Meta Tags Not Generated Properly #### Expected Behaviour When meta tags are created for a blog, the image tags should contain link to the image. #### Actual Behaviour When the image meta tags are generated, it assigns "name" to it. eg: domain.name/image instead of domain.name/filename.png Frappé v...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# MIT License. See license.txt\n\nfrom __future__ import unicode_literals\nimport frappe, os, json\n\nfrom frappe.website.doctype.website_settings.website_settings import get_website_settings\nfrom frappe.website.router import g...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# MIT License. See license.txt\n\nfrom __future__ import unicode_literals\nimport frappe, os, json\n\nfrom frappe.website.doctype.website_settings.website_settings import get_website_settings\nfrom frappe.website.router import g...
diff --git a/frappe/website/context.py b/frappe/website/context.py index 7266ffb73e40..d53cba8ed58e 100644 --- a/frappe/website/context.py +++ b/frappe/website/context.py @@ -197,5 +197,4 @@ def add_metatags(context): if tags.get("description"): tags["og:description"] = tags["twitter:description"] = tags["descri...
getmoto__moto-2284
IAM get-role-policy HTTP status-code 500 Internal Service Error on non-existent policy Version: 1.3.8 ### Steps to duplicate 1. Start moto server: ``moto_server iam`` 2. Create a role: ``aws --endpoint-url http://localhost:5000 iam create-role --role-name SPAM --assume-role-policy-document sample_policy.json``...
[ { "content": "from __future__ import unicode_literals\nimport base64\nimport sys\nfrom datetime import datetime\nimport json\nimport re\n\nfrom cryptography import x509\nfrom cryptography.hazmat.backends import default_backend\n\nfrom moto.core.exceptions import RESTError\nfrom moto.core import BaseBackend, Bas...
[ { "content": "from __future__ import unicode_literals\nimport base64\nimport sys\nfrom datetime import datetime\nimport json\nimport re\n\nfrom cryptography import x509\nfrom cryptography.hazmat.backends import default_backend\n\nfrom moto.core.exceptions import RESTError\nfrom moto.core import BaseBackend, Bas...
diff --git a/moto/iam/models.py b/moto/iam/models.py index 4575351489f8..f92568df4157 100644 --- a/moto/iam/models.py +++ b/moto/iam/models.py @@ -685,6 +685,7 @@ def get_role_policy(self, role_name, policy_name): for p, d in role.policies.items(): if p == policy_name: return p, d...
dask__dask-2553
ResourceProfile has different behaviour using context manager vs `register` I'm using the dask profilers with the pattern ``` for profiler in profilers: profiler.register() foo() # Do work, some of it dask, some of it other for profiler in profilers: profiler.unregister() ``` (although with some try/finally stuff...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import namedtuple\nfrom itertools import starmap\nfrom timeit import default_timer\nfrom time import sleep\nfrom multiprocessing import Process, Pipe, current_process\n\nfrom ..callbacks import Callback\nfrom ..ut...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import namedtuple\nfrom itertools import starmap\nfrom timeit import default_timer\nfrom time import sleep\nfrom multiprocessing import Process, Pipe, current_process\n\nfrom ..callbacks import Callback\nfrom ..ut...
diff --git a/dask/diagnostics/profile.py b/dask/diagnostics/profile.py index ad41e189e7f..41543c868b5 100644 --- a/dask/diagnostics/profile.py +++ b/dask/diagnostics/profile.py @@ -134,6 +134,10 @@ class ResourceProfiler(Callback): manually. >>> prof.clear() # doctest: +SKIP + + Note that when used as a...
Flexget__Flexget-1157
t411 : BUG: Unhandled error in plugin discover: maximum recursion depth exceeded while getting the str of an object I've got an error when executing my flexget script flexget execute --task tv-t411 --discover-now This is the config file http://pastie.org/10809799 And this is the crash log [crash_report.2016.04.23.1...
[ { "content": "from __future__ import unicode_literals, division, absolute_import\nfrom builtins import * # pylint: disable=unused-import, redefined-builtin\n\nimport logging\nimport re\n\nfrom flexget.config_schema import one_or_more\nfrom flexget.manager import Session\nfrom flexget.plugins.api_t411 import T4...
[ { "content": "# coding=utf-8\nfrom __future__ import unicode_literals, division, absolute_import\nimport logging\nimport re\nfrom flexget.config_schema import one_or_more\nfrom flexget.manager import Session\nfrom flexget.plugins.api_t411 import T411Proxy, FriendlySearchQuery, ApiError\n\nfrom flexget import pl...
diff --git a/flexget/plugins/plugin_torrent411.py b/flexget/plugins/plugin_torrent411.py old mode 100644 new mode 100755 index 1507a18d2d..444beed04a --- a/flexget/plugins/plugin_torrent411.py +++ b/flexget/plugins/plugin_torrent411.py @@ -61,7 +61,7 @@ def build_request_from(config): """ query = Frie...
sql-machine-learning__elasticdl-1329
Warnings show up when pip installing the requirements ``` Step 9/12 : RUN pip install -r /requirements.txt --extra-index-url=${EXTRA_PYPI_INDEX} ---> Running in 06f0db0a8f37 Looking in indexes: https://pypi.org/simple, Collecting grpcio-tools (from -r /requirements.txt (line 1)) WARNING: Url 'grpcio-tools/' is...
[ { "content": "import argparse\nfrom itertools import chain\n\nfrom elasticdl.python.common.log_utils import default_logger as logger\n\nMODEL_SPEC_GROUP = [\n \"dataset_fn\",\n \"eval_metrics_fn\",\n \"model_def\",\n \"model_params\",\n \"optimizer\",\n \"loss\",\n \"output\",\n \"miniba...
[ { "content": "import argparse\nfrom itertools import chain\n\nfrom elasticdl.python.common.log_utils import default_logger as logger\n\nMODEL_SPEC_GROUP = [\n \"dataset_fn\",\n \"eval_metrics_fn\",\n \"model_def\",\n \"model_params\",\n \"optimizer\",\n \"loss\",\n \"output\",\n \"miniba...
diff --git a/elasticdl/docker/Dockerfile b/elasticdl/docker/Dockerfile index 81a3c3ce7..bb7c14800 100644 --- a/elasticdl/docker/Dockerfile +++ b/elasticdl/docker/Dockerfile @@ -14,7 +14,7 @@ RUN add-apt-repository ppa:chris-lea/redis-server -y \ && apt-get install -y redis-server COPY elasticdl/requirements.txt...
e-valuation__EvaP-1402
Migrate from Model Mommy to Model Bakery Model Mommy is no longer maintained and was replaced by Model Bakery. We should [migrate to Model Bakery](https://model-bakery.readthedocs.io/en/latest/migrating_from_mommy.html).
[ { "content": "\"\"\"\nDjango settings for EvaP project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/2.0/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/2.0/ref/settings/\n\"\"\"\n\nimport os\nimport sys\nimport logging\n...
[ { "content": "\"\"\"\nDjango settings for EvaP project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/2.0/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/2.0/ref/settings/\n\"\"\"\n\nimport os\nimport sys\nimport logging\n...
diff --git a/evap/contributor/tests/test_forms.py b/evap/contributor/tests/test_forms.py index 3e4e5b25ee..258dde1569 100644 --- a/evap/contributor/tests/test_forms.py +++ b/evap/contributor/tests/test_forms.py @@ -4,7 +4,7 @@ from evap.evaluation.models import Contribution, Evaluation, Questionnaire, UserProfile fro...
pydantic__pydantic-6809
MaxLen annotation validator for custom sequences is incorrect ### Initial Checks - [X] I confirm that I'm using Pydantic V2 ### Description When using an `annotated_type.MaxLen` annotation with a custom sequence it rejects sequences that have precisely the maximum length when it should only reject if they are greate...
[ { "content": "\"\"\"Validator functions for standard library types.\n\nImport of this module is deferred since it contains imports of many standard library modules.\n\"\"\"\n\nfrom __future__ import annotations as _annotations\n\nimport re\nimport typing\nfrom ipaddress import IPv4Address, IPv4Interface, IPv4Ne...
[ { "content": "\"\"\"Validator functions for standard library types.\n\nImport of this module is deferred since it contains imports of many standard library modules.\n\"\"\"\n\nfrom __future__ import annotations as _annotations\n\nimport re\nimport typing\nfrom ipaddress import IPv4Address, IPv4Interface, IPv4Ne...
diff --git a/pydantic/_internal/_validators.py b/pydantic/_internal/_validators.py index 4481006273c..8b94922fc3e 100644 --- a/pydantic/_internal/_validators.py +++ b/pydantic/_internal/_validators.py @@ -263,7 +263,7 @@ def min_length_validator(x: Any, min_length: Any) -> Any: def max_length_validator(x: Any, max...
pypi__warehouse-2948
Search method in XML-RPC API treats {"summary": "fix code"} as {"summary": ["fix", "code"]} As stated in the title, the `search` method of [PyPI/Warehouse's XML-RPC API](https://warehouse.readthedocs.io/api-reference/xml-rpc/) splits the values of its `spec` argument on whitespace, resulting in the method returning (fo...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
diff --git a/tests/unit/legacy/api/test_xmlrpc.py b/tests/unit/legacy/api/test_xmlrpc.py index c9c9c8b84f80..3adfd01ea9f5 100644 --- a/tests/unit/legacy/api/test_xmlrpc.py +++ b/tests/unit/legacy/api/test_xmlrpc.py @@ -57,12 +57,12 @@ def __getitem__(self, name): def execute(self): assert ...