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
angr__angr-1669
angr should not require futures In [setup.py](https://github.com/angr/angr/blob/c2cf015f78bd060b263e80627f5962b3062e0ea7/setup.py#L145), a dependency on [futures](https://pypi.org/project/futures/) is declared. However, `futures` is a backport to Python2 of the `concurrent.futures` standard library module available ...
[ { "content": "# pylint: disable=no-name-in-module,import-error,unused-variable\nimport os\nimport sys\nimport subprocess\nimport pkg_resources\nimport shutil\nimport platform\nimport glob\n\nif bytes is str:\n raise Exception(\"\"\"\n\n=-=-=-=-=-=-=-=-=-=-=-=-= WELCOME TO THE FUTURE! =-=-=-=-=-=-=-=-=-=-=-...
[ { "content": "# pylint: disable=no-name-in-module,import-error,unused-variable\nimport os\nimport sys\nimport subprocess\nimport pkg_resources\nimport shutil\nimport platform\nimport glob\n\nif bytes is str:\n raise Exception(\"\"\"\n\n=-=-=-=-=-=-=-=-=-=-=-=-= WELCOME TO THE FUTURE! =-=-=-=-=-=-=-=-=-=-=-...
diff --git a/setup.py b/setup.py index 67ee6acfdc5..6db63516e05 100644 --- a/setup.py +++ b/setup.py @@ -142,7 +142,6 @@ def run(self, *args): 'capstone>=3.0.5rc2', 'cooldict', 'dpkt', - 'futures; python_version == "2.7"', 'mulpyplexer', 'networkx>=2.0', 'pro...
django-hijack__django-hijack-693
Missing staticfiles manifest entry for 'hijack/hijack.js' When trying to access the User Admin, the `hijack.js` file fails to load when DEBUG is enabled. Under production settings with a manifest based staticfiles storage, it results in an exception. ``` Missing staticfiles manifest entry for 'hijack/hijack.js' ``...
[ { "content": "import django\nfrom django import forms\nfrom django.shortcuts import resolve_url\nfrom django.template.loader import render_to_string\nfrom django.utils.translation import gettext_lazy as _\n\nfrom hijack.conf import settings\nfrom hijack.forms import ESM\n\n\nclass HijackUserAdminMixin:\n \"\...
[ { "content": "import django\nfrom django import forms\nfrom django.shortcuts import resolve_url\nfrom django.template.loader import render_to_string\nfrom django.utils.translation import gettext_lazy as _\n\nfrom hijack.conf import settings\nfrom hijack.forms import ESM\n\n\nclass HijackUserAdminMixin:\n \"\...
diff --git a/hijack/contrib/admin/admin.py b/hijack/contrib/admin/admin.py index e51622f6..27d4c148 100644 --- a/hijack/contrib/admin/admin.py +++ b/hijack/contrib/admin/admin.py @@ -16,7 +16,7 @@ class HijackUserAdminMixin: @property def media(self): - return super().media + forms.Media(js=[ESM("hij...
archlinux__archinstall-504
Incorrect line ending after "progressbar" finishes I thought this would be handled in: https://github.com/archlinux/archinstall/blob/54a693be4fa2fbce83fd894b5ac3b0909f3a1e10/archinstall/lib/general.py#L157-L161 ![2021-05-21-093818_1024x795_scrot](https://user-images.githubusercontent.com/861439/119100996-cc082780-ba...
[ { "content": "import hashlib\nimport json\nimport logging\nimport os\nimport pty\nimport shlex\nimport subprocess\nimport sys\nimport time\nfrom datetime import datetime, date\nfrom select import epoll, EPOLLIN, EPOLLHUP\nfrom typing import Union\n\nfrom .exceptions import *\nfrom .output import log\n\n\ndef ge...
[ { "content": "import hashlib\nimport json\nimport logging\nimport os\nimport pty\nimport shlex\nimport subprocess\nimport sys\nimport time\nfrom datetime import datetime, date\nfrom select import epoll, EPOLLIN, EPOLLHUP\nfrom typing import Union\n\nfrom .exceptions import *\nfrom .output import log\n\n\ndef ge...
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index 249c789071..3b62c891a8 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -333,6 +333,10 @@ def create_session(self): while self.session.ended is None: self.session.poll() + if self.peak_output: + sys.std...
plone__Products.CMFPlone-3404
Expose the human_readable_size helper in the @@plone view The [@@plone view](https://github.com/plone/Products.CMFPlone/blob/009f785e450430ee7b143624480aef9268491c0b/Products/CMFPlone/browser/ploneview.py#L19) has helper methods that can be used in templates. It would be handy to add the [Products.CMFPlone.utils.human...
[ { "content": "from Acquisition import aq_inner\nfrom plone.memoize.view import memoize\nfrom Products.CMFCore.utils import getToolByName\nfrom Products.CMFPlone import utils\nfrom Products.CMFPlone.browser.interfaces import IPlone\nfrom Products.Five import BrowserView\nfrom zope.component import getMultiAdapte...
[ { "content": "from Acquisition import aq_inner\nfrom plone.memoize.view import memoize\nfrom Products.CMFCore.utils import getToolByName\nfrom Products.CMFPlone import utils\nfrom Products.CMFPlone.browser.interfaces import IPlone\nfrom Products.Five import BrowserView\nfrom zope.component import getMultiAdapte...
diff --git a/Products/CMFPlone/browser/ploneview.py b/Products/CMFPlone/browser/ploneview.py index 7bae74eb74..c9735e95c8 100644 --- a/Products/CMFPlone/browser/ploneview.py +++ b/Products/CMFPlone/browser/ploneview.py @@ -211,3 +211,7 @@ def patterns_settings(self): return getMultiAdapter( (conte...
gammapy__gammapy-3719
FitResult print output is confusing A `print(fit_result)` displays both the `covariance_result` and the `optimize_result` as `OptimizeResult`, eg: see cell 19 https://docs.gammapy.org/dev/tutorials/starting/analysis_2.html#Fit-the-model Reminder issue to fix it during the sprint week
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport itertools\nimport logging\nimport numpy as np\nfrom gammapy.utils.pbar import progress_bar\nfrom gammapy.utils.table import table_from_row_data\nfrom .covariance import Covariance\nfrom .iminuit import (\n confidence_iminui...
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport itertools\nimport logging\nimport numpy as np\nfrom gammapy.utils.pbar import progress_bar\nfrom gammapy.utils.table import table_from_row_data\nfrom .covariance import Covariance\nfrom .iminuit import (\n confidence_iminui...
diff --git a/gammapy/modeling/fit.py b/gammapy/modeling/fit.py index 76900466f9..1e4f4b89ca 100644 --- a/gammapy/modeling/fit.py +++ b/gammapy/modeling/fit.py @@ -635,7 +635,7 @@ def optimize_result(self): @property def covariance_result(self): """Optimize result""" - return self._optimize_res...
aio-libs__aiohttp-6924
ClientSession.timeout has an incorrect typing ### Describe the bug The `aiohttp.ClientSession.timeout` attribute has a type of `Union[object, aiohttp.ClientTimeout]`, however the code logic will never actually assign a bare `object` type to the `self._timeout` attribute, making this typing quite over-inclusive. Tryi...
[ { "content": "\"\"\"HTTP Client for asyncio.\"\"\"\n\nimport asyncio\nimport base64\nimport hashlib\nimport json\nimport os\nimport sys\nimport traceback\nimport warnings\nfrom contextlib import suppress\nfrom types import SimpleNamespace, TracebackType\nfrom typing import (\n Any,\n Awaitable,\n Calla...
[ { "content": "\"\"\"HTTP Client for asyncio.\"\"\"\n\nimport asyncio\nimport base64\nimport hashlib\nimport json\nimport os\nimport sys\nimport traceback\nimport warnings\nfrom contextlib import suppress\nfrom types import SimpleNamespace, TracebackType\nfrom typing import (\n Any,\n Awaitable,\n Calla...
diff --git a/CHANGES/6917.bugfix b/CHANGES/6917.bugfix new file mode 100644 index 00000000000..468e21a2b0f --- /dev/null +++ b/CHANGES/6917.bugfix @@ -0,0 +1,3 @@ +Dropped the :class:`object` type possibility from +the :py:attr:`aiohttp.ClientSession.timeout` +property return type declaration. diff --git a/CHANGES/6917...
mathesar-foundation__mathesar-341
Individually run API tests don't build tables database ## Description Running a individual test in `mathesar` that doesn't use the `engine` or `test_db` fixture will not have the tables databases built for the test. As a result, many will error when trying to access the tables database. ## Expected behavior The ta...
[ { "content": "\"\"\"\nThis file should provide utilities for setting up test DBs and the like. It's\nintended to be the containment zone for anything specific about the testing\nenvironment (e.g., the login info for the Postgres instance for testing)\n\"\"\"\nimport pytest\nfrom sqlalchemy import create_engine...
[ { "content": "\"\"\"\nThis file should provide utilities for setting up test DBs and the like. It's\nintended to be the containment zone for anything specific about the testing\nenvironment (e.g., the login info for the Postgres instance for testing)\n\"\"\"\nimport pytest\nfrom sqlalchemy import create_engine...
diff --git a/conftest.py b/conftest.py index 577e099be2..79447b14a7 100644 --- a/conftest.py +++ b/conftest.py @@ -15,7 +15,7 @@ def test_db_name(): return TEST_DB -@pytest.fixture(scope="session") +@pytest.fixture(scope="session", autouse=True) def test_db(): superuser_engine = _get_superuser_engine() ...
pyodide__pyodide-4090
New Pyodide fatal error in scipy tests: Error: EAGAIN: resource temporarily unavailable, write This started to happen two days ago in https://github.com/lesteve/scipy-tests-pyodide, here is [a build log](https://github.com/lesteve/scipy-tests-pyodide/actions/runs/5946896593/job/16128148017). The stack trace looks li...
[ { "content": "\"\"\"\nVarious common utilities for testing.\n\"\"\"\nimport os\nimport pathlib\nimport re\nimport sys\nfrom collections.abc import Sequence\n\nimport pytest\n\nROOT_PATH = pathlib.Path(__file__).parents[0].resolve()\nDIST_PATH = ROOT_PATH / \"dist\"\n\nsys.path.append(str(ROOT_PATH / \"pyodide-b...
[ { "content": "\"\"\"\nVarious common utilities for testing.\n\"\"\"\nimport os\nimport pathlib\nimport re\nimport sys\nfrom collections.abc import Sequence\n\nimport pytest\n\nROOT_PATH = pathlib.Path(__file__).parents[0].resolve()\nDIST_PATH = ROOT_PATH / \"dist\"\n\nsys.path.append(str(ROOT_PATH / \"pyodide-b...
diff --git a/conftest.py b/conftest.py index c5f0a1df72a..fd8ad7a78b5 100644 --- a/conftest.py +++ b/conftest.py @@ -40,6 +40,10 @@ pyodide.pyimport("pyodide_js._api") """ +only_node = pytest.mark.xfail_browsers( + chrome="node only", firefox="node only", safari="node only" +) + def pytest_addoption(parse...
falconry__falcon-1985
StaticRouteAsync leaves open files When using static routes with a [`falcon.asgi.App`](https://falcon.readthedocs.io/en/stable/api/app.html#asgi-app), it seems that the `_AsyncFileReader` wrapper does not implement any `.close()` method, so files are left open. On CPython, I wasn't able to demonstrate any practical ...
[ { "content": "from functools import partial\nimport io\nimport os\nimport pathlib\nimport re\n\nimport falcon\nfrom falcon.util.sync import get_running_loop\n\n\ndef _open_range(file_path, req_range):\n \"\"\"Open a file for a ranged request.\n\n Args:\n file_path (str): Path to the file to open.\n...
[ { "content": "from functools import partial\nimport io\nimport os\nimport pathlib\nimport re\n\nimport falcon\nfrom falcon.util.sync import get_running_loop\n\n\ndef _open_range(file_path, req_range):\n \"\"\"Open a file for a ranged request.\n\n Args:\n file_path (str): Path to the file to open.\n...
diff --git a/docs/_newsfragments/1963.bugfix.rst b/docs/_newsfragments/1963.bugfix.rst new file mode 100644 index 000000000..b917bc17f --- /dev/null +++ b/docs/_newsfragments/1963.bugfix.rst @@ -0,0 +1,3 @@ +Previously, files could be left open when serving via an ASGI static route +(depending on the underlying GC impl...
ansible__ansible-modules-core-4649
ios_facts: exception due to missing itertools <!--- Verify first that your issue/request is not already reported in GitHub --> ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ios_facts ##### ANSIBLE VERSION <!--- Paste verbatim output from “ansible --version” between quotes below --> ``` ansible 2.2.0 (devel 9963...
[ { "content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers...
[ { "content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers...
diff --git a/network/ios/ios_facts.py b/network/ios/ios_facts.py index d842c2b4c09..884e9b5b296 100644 --- a/network/ios/ios_facts.py +++ b/network/ios/ios_facts.py @@ -124,6 +124,7 @@ type: dict """ import re +import itertools from ansible.module_utils.basic import get_exception from ansible.module_utils.netc...
fossasia__open-event-server-395
list_events url is inconsistent in API v2 The url is `/events/` whereas it should be `/events` to be consistent with other urls.
[ { "content": "from flask.ext.restplus import Resource, Namespace, fields\n\nfrom open_event.models.event import Event as EventModel\nfrom .helpers import get_object_list, get_object_or_404\n\napi = Namespace('events', description='Events')\n\nEVENT = api.model('Event', {\n 'id': fields.Integer(required=True)...
[ { "content": "from flask.ext.restplus import Resource, Namespace, fields\n\nfrom open_event.models.event import Event as EventModel\nfrom .helpers import get_object_list, get_object_or_404\n\napi = Namespace('events', description='Events')\n\nEVENT = api.model('Event', {\n 'id': fields.Integer(required=True)...
diff --git a/open_event/api/events.py b/open_event/api/events.py index 86b3ed133b..ef679005aa 100644 --- a/open_event/api/events.py +++ b/open_event/api/events.py @@ -32,7 +32,7 @@ def get(self, event_id): return get_object_or_404(EventModel, event_id) -@api.route('/') +@api.route('') class EventList(Reso...
ansible__ansible-modules-core-3683
docker_service module does not work ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME docker_service ##### ANSIBLE VERSION ``` ansible 2.2.0 (devel 9ad5a32208) last updated 2016/05/17 15:58:35 (GMT +000) lib/ansible/modules/core: (detached HEAD 127d518011) last updated 2016/05/17 13:42:30 (GMT +000) lib/ansible...
[ { "content": "#!/usr/bin/python\n#\n# Copyright 2016 Red Hat | Ansible\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License...
[ { "content": "#!/usr/bin/python\n#\n# Copyright 2016 Red Hat | Ansible\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License...
diff --git a/cloud/docker/docker_service.py b/cloud/docker/docker_service.py index 315657acf80..266ab372a5c 100644 --- a/cloud/docker/docker_service.py +++ b/cloud/docker/docker_service.py @@ -434,7 +434,7 @@ class ContainerManager(DockerBaseClass): def __init__(self, client): - super(ContainerManager, ...
django-json-api__django-rest-framework-json-api-1105
django-admin loaddata drf_example falied (venv) PS C:\django-rest-framework-json-api> (venv) PS C:\django-rest-framework-json-api> django-admin loaddata drf_example --settings=example.settings System check identified some issues: WARNINGS: example.Author: (models.W042) Auto-created primary key used when not def...
[ { "content": "import os\n\nSITE_ID = 1\nDEBUG = True\n\nMEDIA_ROOT = os.path.normcase(os.path.dirname(os.path.abspath(__file__)))\nMEDIA_URL = \"/media/\"\nUSE_TZ = False\n\nDATABASE_ENGINE = \"sqlite3\"\n\nDATABASES = {\n \"default\": {\n \"ENGINE\": \"django.db.backends.sqlite3\",\n \"NAME\":...
[ { "content": "import os\n\nSITE_ID = 1\nDEBUG = True\n\nMEDIA_ROOT = os.path.normcase(os.path.dirname(os.path.abspath(__file__)))\nMEDIA_URL = \"/media/\"\nUSE_TZ = False\nDEFAULT_AUTO_FIELD = \"django.db.models.AutoField\"\n\nDATABASE_ENGINE = \"sqlite3\"\n\nDATABASES = {\n \"default\": {\n \"ENGINE\...
diff --git a/example/fixtures/drf_example.json b/example/fixtures/drf_example.json index 498c0d1c..944f502c 100644 --- a/example/fixtures/drf_example.json +++ b/example/fixtures/drf_example.json @@ -26,8 +26,9 @@ "created_at": "2016-05-02T10:09:48.277", "modified_at": "2016-05-02T10:09:48.277", "name": "...
pandas-dev__pandas-5411
BLD: plot failures in master This started after I merged #5375 (which passed cleanly before merging) https://travis-ci.org/pydata/pandas/jobs/13376953
[ { "content": "from datetime import datetime, timedelta\nimport re\nimport sys\n\nimport numpy as np\n\nimport pandas.lib as lib\nimport pandas.tslib as tslib\nimport pandas.core.common as com\nfrom pandas.compat import StringIO, callable\nimport pandas.compat as compat\n\ntry:\n import dateutil\n from dat...
[ { "content": "from datetime import datetime, timedelta\nimport re\nimport sys\n\nimport numpy as np\n\nimport pandas.lib as lib\nimport pandas.tslib as tslib\nimport pandas.core.common as com\nfrom pandas.compat import StringIO, callable\nimport pandas.compat as compat\n\ntry:\n import dateutil\n from dat...
diff --git a/ci/requirements-3.3.txt b/ci/requirements-3.3.txt index 318030e733158..94a77bbc06024 100644 --- a/ci/requirements-3.3.txt +++ b/ci/requirements-3.3.txt @@ -1,4 +1,4 @@ -python-dateutil==2.1 +python-dateutil==2.2 pytz==2013b openpyxl==1.6.2 xlsxwriter==0.4.3 diff --git a/pandas/tseries/tools.py b/pandas/...
comic__grand-challenge.org-3363
Mismatch in evaluation jobs when challenge admin pre-runs algorithm on cases from the phases archive `create_algorithm_jobs_for_evaluation` exits successfully but the evaluation remains in the executing algorithm state. Occurs when the challenge admin uses the try out algorithm page and selects an image from the archiv...
[ { "content": "import logging\nfrom tempfile import TemporaryDirectory\nfrom typing import NamedTuple\n\nimport boto3\nfrom botocore.exceptions import ClientError\nfrom celery import chain, group, shared_task\nfrom django.conf import settings\nfrom django.core.cache import cache\nfrom django.core.files.base impo...
[ { "content": "import logging\nfrom tempfile import TemporaryDirectory\nfrom typing import NamedTuple\n\nimport boto3\nfrom botocore.exceptions import ClientError\nfrom celery import chain, group, shared_task\nfrom django.conf import settings\nfrom django.core.cache import cache\nfrom django.core.files.base impo...
diff --git a/app/grandchallenge/algorithms/tasks.py b/app/grandchallenge/algorithms/tasks.py index e3b98744de..e5af0269fd 100644 --- a/app/grandchallenge/algorithms/tasks.py +++ b/app/grandchallenge/algorithms/tasks.py @@ -319,7 +319,7 @@ def filter_civs_for_algorithm(*, civ_sets, algorithm_image): ), ...
enthought__chaco-424
Demo quiver.py not working **Problem Description** Zooming in will ends with the following and blank plot. **Reproduction Steps:** Run the file and zoom in until the plot breaks. **Expected behavior:** Plot disappear if keep zooming in and ends with following trace. ``` Traceback (most recent call last...
[ { "content": "\nfrom __future__ import with_statement\n\nfrom numpy import array, compress, matrix, newaxis, sqrt, zeros\n\n# Enthought library imports\nfrom enable.api import ColorTrait\nfrom traits.api import Array, Enum, Float, Instance, Int\n\n# Chaco relative imports\nfrom .abstract_data_source import Abst...
[ { "content": "\nfrom __future__ import with_statement\n\nfrom numpy import array, compress, matrix, newaxis, sqrt, zeros\n\n# Enthought library imports\nfrom enable.api import ColorTrait\nfrom traits.api import Array, Enum, Float, Instance, Int\n\n# Chaco relative imports\nfrom .abstract_data_source import Abst...
diff --git a/chaco/quiverplot.py b/chaco/quiverplot.py index 757c22a32..adf614741 100644 --- a/chaco/quiverplot.py +++ b/chaco/quiverplot.py @@ -69,6 +69,9 @@ def _gather_points_old(self): def _render(self, gc, points, icon_mode=False): + if len(points) < 1: + return + with gc: ...
pymodbus-dev__pymodbus-1282
async serial server isn't explicitly started by StartAsyncSerialServer Now my python modbus server isn't replying to the client talking to it on the serial port. It was working with 3.1.0, it fails with 3.1.1, and it's not because of the logging changes. I'll investigate... Meanwhile, found a typo: tcp.py line 213:...
[ { "content": "\"\"\"Implementation of a Threaded Modbus Server.\"\"\"\n# pylint: disable=missing-type-doc\nimport asyncio\nimport logging\nimport ssl\nimport traceback\nfrom binascii import b2a_hex\nfrom time import sleep\n\nfrom pymodbus.client.serial_asyncio import create_serial_connection\nfrom pymodbus.cons...
[ { "content": "\"\"\"Implementation of a Threaded Modbus Server.\"\"\"\n# pylint: disable=missing-type-doc\nimport asyncio\nimport logging\nimport ssl\nimport traceback\nfrom binascii import b2a_hex\nfrom time import sleep\n\nfrom pymodbus.client.serial_asyncio import create_serial_connection\nfrom pymodbus.cons...
diff --git a/pymodbus/server/async_io.py b/pymodbus/server/async_io.py index 66593afee..6151a528b 100644 --- a/pymodbus/server/async_io.py +++ b/pymodbus/server/async_io.py @@ -1263,6 +1263,7 @@ async def StartAsyncSerialServer( # pylint: disable=invalid-name,dangerous-defa ) if not defer_start: job...
mindee__doctr-243
Pb: unitest text_export_size not passing on tf 2.3.1 Unitest text_export_size not OK locally on tf 2.3.1 : ``` def test_export_sizes(test_convert_to_tflite, test_convert_to_fp16, test_quantize_model): assert sys.getsizeof(test_convert_to_tflite) > sys.getsizeof(test_convert_to_fp16) > assert sys.ge...
[ { "content": "# Copyright (C) 2021, Mindee.\n\n# This program is licensed under the Apache License version 2.\n# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.\n\n\"\"\"\nPackage installation setup\n\"\"\"\n\nimport os\nfrom pathlib import Path\nimport subproces...
[ { "content": "# Copyright (C) 2021, Mindee.\n\n# This program is licensed under the Apache License version 2.\n# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.\n\n\"\"\"\nPackage installation setup\n\"\"\"\n\nimport os\nfrom pathlib import Path\nimport subproces...
diff --git a/requirements.txt b/requirements.txt index 329db4d173..e67e58e8d2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ numpy>=1.16.0 scipy>=1.4.0 opencv-python>=3.4.5.20 -tensorflow>=2.3.0 +tensorflow>=2.4.0 PyMuPDF>=1.16.0,<1.18.11 pyclipper>=1.2.0 shapely>=1.6.0 diff --git a/setup.py...
DjangoGirls__djangogirls-63
Order of the questions in the form can get mixed up Haven't debug it yet, but just adding so I won't forget
[ { "content": "from django import forms\n\n\ndef generate_form_from_questions(questions):\n fields = {}\n\n for question in questions:\n options = {\n 'label': question.title,\n 'help_text': question.help_text or None,\n 'required': question.is_required,\n }\n...
[ { "content": "from collections import OrderedDict\n\nfrom django import forms\n\n\ndef generate_form_from_questions(questions):\n fields = OrderedDict()\n\n for question in questions:\n options = {\n 'label': question.title,\n 'help_text': question.help_text or None,\n ...
diff --git a/applications/utils.py b/applications/utils.py index 280a0a333..f6ce9c84e 100644 --- a/applications/utils.py +++ b/applications/utils.py @@ -1,8 +1,10 @@ +from collections import OrderedDict + from django import forms def generate_form_from_questions(questions): - fields = {} + fields = OrderedD...
urllib3__urllib3-783
HTTPResponse.close may not close underlying connection. Found while investigating kennethreitz/requests#2963 The `HTTPResponse` class has a `close` method that rather suggests it will try to close the backing TCP connection behind the given HTTP response. Right now, that's not what happens if the connection is kept al...
[ { "content": "from __future__ import absolute_import\nfrom contextlib import contextmanager\nimport zlib\nimport io\nfrom socket import timeout as SocketTimeout\nfrom socket import error as SocketError\n\nfrom ._collections import HTTPHeaderDict\nfrom .exceptions import (\n ProtocolError, DecodeError, ReadTi...
[ { "content": "from __future__ import absolute_import\nfrom contextlib import contextmanager\nimport zlib\nimport io\nfrom socket import timeout as SocketTimeout\nfrom socket import error as SocketError\n\nfrom ._collections import HTTPHeaderDict\nfrom .exceptions import (\n ProtocolError, DecodeError, ReadTi...
diff --git a/test/with_dummyserver/test_socketlevel.py b/test/with_dummyserver/test_socketlevel.py index 1e6113f447..8895c063b6 100644 --- a/test/with_dummyserver/test_socketlevel.py +++ b/test/with_dummyserver/test_socketlevel.py @@ -433,6 +433,53 @@ def socket_handler(listener): t...
holoviz__panel-743
GridSpec objects attribute violates Panel interface contract The `Panel` class provides an `objects` attribute that is expected to contain a list of child objects: ```python class Panel(Reactive): ... objects = param.Parameter(default=[], doc=""" The list of child objects that make up the layout."...
[ { "content": "\"\"\"\nDefines Layout classes which may be used to arrange panes and widgets\nin flexible ways to build complex dashboards.\n\"\"\"\nfrom __future__ import absolute_import, division, unicode_literals\n\nfrom collections import OrderedDict\n\nimport param\nimport numpy as np\n\nfrom bokeh.layouts ...
[ { "content": "\"\"\"\nDefines Layout classes which may be used to arrange panes and widgets\nin flexible ways to build complex dashboards.\n\"\"\"\nfrom __future__ import absolute_import, division, unicode_literals\n\nfrom collections import OrderedDict\n\nimport param\nimport numpy as np\n\nfrom bokeh.layouts ...
diff --git a/panel/layout.py b/panel/layout.py index 7289c9c8e4..301bf0f1d7 100644 --- a/panel/layout.py +++ b/panel/layout.py @@ -24,9 +24,6 @@ class Panel(Reactive): Abstract baseclass for a layout of Viewables. """ - objects = param.Parameter(default=[], doc=""" - The list of child objects that...
huggingface__transformers-4916
🐛 TPU Training broken due to recent changes # 🐛 Bug Looks like due to changes in file_utils.py, the TPU Training has become broken. Reverting transformers to a version before https://github.com/huggingface/transformers/commit/2cfb947f59861d5d910f84eba3be57da200b5599 fixes the problem. ## Information Seems like f...
[ { "content": "\"\"\"\nUtilities for working with the local dataset cache.\nThis file is adapted from the AllenNLP library at https://github.com/allenai/allennlp\nCopyright by the AllenNLP authors.\n\"\"\"\n\nimport fnmatch\nimport json\nimport logging\nimport os\nimport shutil\nimport sys\nimport tarfile\nimpor...
[ { "content": "\"\"\"\nUtilities for working with the local dataset cache.\nThis file is adapted from the AllenNLP library at https://github.com/allenai/allennlp\nCopyright by the AllenNLP authors.\n\"\"\"\n\nimport fnmatch\nimport json\nimport logging\nimport os\nimport shutil\nimport sys\nimport tarfile\nimpor...
diff --git a/src/transformers/file_utils.py b/src/transformers/file_utils.py index a6925aa0827f..433c77ae5add 100644 --- a/src/transformers/file_utils.py +++ b/src/transformers/file_utils.py @@ -71,9 +71,7 @@ try: - import torch_xla.core.xla_model as xm - - tpu_device = xm.xla_device() + import torch_xla....
mindee__doctr-404
WeasyPrint import error Python 3.7 ## 🐛 Bug When importing weasyprint with python 3.7 I have an error: `AttributeError: 'OutStream' object has no attribute 'buffer'`* ## To Reproduce Steps to reproduce the behavior: `from doctr.models import ocr_predictor` leads to: ``` AttributeError ...
[ { "content": "# Copyright (C) 2021, Mindee.\n\n# This program is licensed under the Apache License version 2.\n# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.\n\n\"\"\"\nPackage installation setup\n\"\"\"\n\nimport os\nimport re\nfrom pathlib import Path\nimpor...
[ { "content": "# Copyright (C) 2021, Mindee.\n\n# This program is licensed under the Apache License version 2.\n# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.\n\n\"\"\"\nPackage installation setup\n\"\"\"\n\nimport os\nimport re\nfrom pathlib import Path\nimpor...
diff --git a/requirements.txt b/requirements.txt index c0df7a7617..c244b2ba87 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ pyclipper>=1.2.0 shapely>=1.6.0 matplotlib>=3.1.0 mplcursors>=0.3 -weasyprint>=52.2 +weasyprint>=52.2,<53.0 unidecode>=1.0.0 tensorflow>=2.4.0 Pillow>=8.0.0 diff --git...
qtile__qtile-2674
utils.has_transparency has print statement left in from testing # Issue description utils.has_transparency is printing bar colors to stdout. https://github.com/qtile/qtile/blob/a3dcd5db984f3ab08ef3f89eff86e014dd367ee1/libqtile/utils.py#L127 I would submit a pr myself but my fork is currently a little snafu. # Qti...
[ { "content": "# Copyright (c) 2008, Aldo Cortesi. All rights reserved.\n# Copyright (c) 2020, Matt Colligan. All rights reserved.\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 Softwa...
[ { "content": "# Copyright (c) 2008, Aldo Cortesi. All rights reserved.\n# Copyright (c) 2020, Matt Colligan. All rights reserved.\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 Softwa...
diff --git a/libqtile/utils.py b/libqtile/utils.py index 5947ebf800..9a378488e4 100644 --- a/libqtile/utils.py +++ b/libqtile/utils.py @@ -124,7 +124,6 @@ def has_alpha(col): return has_alpha(colour) elif isinstance(colour, list): - print([c for c in colour]) return any([has_transparency...
liqd__a4-opin-906
styling of categories in dashboard (Safari) When using Safari the styling of categories in the dashboard is broken. ![safari styling issue](https://user-images.githubusercontent.com/15954895/28914159-fe84edde-783a-11e7-8ae4-09f0a6b978cd.png)
[ { "content": "from adhocracy4.categories import forms as category_forms\n\nfrom . import models\n\n\nclass IdeaForm(category_forms.CategorizableForm):\n class Meta:\n model = models.Idea\n fields = ['name', 'description', 'image', 'category']\n", "path": "euth/ideas/forms.py" } ]
[ { "content": "from adhocracy4.categories import forms as category_forms\n\nfrom . import models\n\n\nclass IdeaForm(category_forms.CategorizableForm):\n class Meta:\n model = models.Idea\n fields = ['name', 'description', 'image', 'category']\n\n def __init__(self, *args, **kwargs):\n ...
diff --git a/euth/ideas/forms.py b/euth/ideas/forms.py index 0c07e55ec..056c2b412 100644 --- a/euth/ideas/forms.py +++ b/euth/ideas/forms.py @@ -7,3 +7,7 @@ class IdeaForm(category_forms.CategorizableForm): class Meta: model = models.Idea fields = ['name', 'description', 'image', 'category'] + + ...
huggingface__transformers-4448
LayerNorm not excluded from weight decay in TF # 🐛 Bug ## Information Model I am using (Bert, XLNet ...): bert-base-cased Language I am using the model on (English, Chinese ...): English The problem arises when using: * [X] the official example scripts: (give details below) * [ ] my own modified script...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/src/transformers/optimization_tf.py b/src/transformers/optimization_tf.py index 6f4e78908919..b72e54905054 100644 --- a/src/transformers/optimization_tf.py +++ b/src/transformers/optimization_tf.py @@ -75,7 +75,7 @@ def create_optimizer(init_lr, num_train_steps, num_warmup_steps, end_lr=0.0, opt b...
DDMAL__CantusDB-776
Chant Search Manuscript view - change URL path to match OldCantus I understand we're trying to keep URLs the same between OldCantus and NewCantus, but there's a difference in the Chant Search Manuscript view. OldCantus uses `/searchms/` (e.g. https://cantus.uwaterloo.ca/searchms/123610?t=est), whereas NewCantus uses `/...
[ { "content": "from django.urls import include, path, reverse\nfrom django.contrib.auth.views import (\n PasswordResetView,\n PasswordResetDoneView,\n PasswordResetConfirmView,\n PasswordResetCompleteView,\n)\nfrom main_app.views import views\nimport debug_toolbar\nfrom main_app.views.century import ...
[ { "content": "from django.urls import include, path, reverse\nfrom django.contrib.auth.views import (\n PasswordResetView,\n PasswordResetDoneView,\n PasswordResetConfirmView,\n PasswordResetCompleteView,\n)\nfrom main_app.views import views\nimport debug_toolbar\nfrom main_app.views.century import ...
diff --git a/django/cantusdb_project/main_app/urls.py b/django/cantusdb_project/main_app/urls.py index 0e40b0ec9..0f355fc53 100644 --- a/django/cantusdb_project/main_app/urls.py +++ b/django/cantusdb_project/main_app/urls.py @@ -319,7 +319,7 @@ ), # misc search path( - "chant-search-ms/<int:source...
StackStorm__st2-5091
St2Stream service broken when using SSL with mongodb ## SUMMARY This issue is an extension to #4832 however this time it is the st2stream service, I have looked that the code and can see the same monkey patch code hasn't been applied to the st2stream app ### STACKSTORM VERSION Paste the output of ``st2 --versi...
[ { "content": "# Copyright 2020 The StackStorm Authors.\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/l...
[ { "content": "# Copyright 2020 The StackStorm Authors.\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/l...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 675b6b48c4..39e389323f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -22,6 +22,7 @@ Changed Fixed ~~~~~~~~~ +* Added monkey patch fix to st2stream to enable it to work with mongodb via SSL. (bug fix) #5078 #5091 * Fix nginx buffering long polling stream to clien...
alltheplaces__alltheplaces-4303
Domain missing from Holland & Barrett website URLs In the holland_and_barrett spider results, the website values returned are missing the domain, e.g. `"website": "/stores/aylesbury-3180/"`. This is what's in the code that the scraper is reading. But presumably AllThePlaces should return a fully qualified url, i.e. `ht...
[ { "content": "from scrapy.spiders import SitemapSpider\n\nfrom locations.linked_data_parser import LinkedDataParser\n\n\nclass HollandAndBarrettSpider(SitemapSpider):\n name = \"holland_and_barrett\"\n item_attributes = {\n \"brand\": \"Holland & Barrett\",\n \"brand_wikidata\": \"Q5880870\"...
[ { "content": "from scrapy.spiders import SitemapSpider\n\nfrom locations.linked_data_parser import LinkedDataParser\n\n\nclass HollandAndBarrettSpider(SitemapSpider):\n name = \"holland_and_barrett\"\n item_attributes = {\n \"brand\": \"Holland & Barrett\",\n \"brand_wikidata\": \"Q5880870\"...
diff --git a/locations/spiders/holland_and_barrett.py b/locations/spiders/holland_and_barrett.py index d206fef221f..0ecf6ab804e 100644 --- a/locations/spiders/holland_and_barrett.py +++ b/locations/spiders/holland_and_barrett.py @@ -19,4 +19,6 @@ class HollandAndBarrettSpider(SitemapSpider): download_delay = 1.0 ...
internetarchive__openlibrary-5645
Image uploader does not recognise uploaded file <!-- What problem are we solving? What does the experience look like today? What are the symptoms? --> As of today (8-09-2021) the image uploader does not recognise that an image has been selected and uploaded. Instead, it displays "Please provide an image URL" after hit...
[ { "content": "\"\"\"Handle book cover/author photo upload.\n\"\"\"\nfrom logging import getLogger\n\nimport requests\nimport six\nimport web\nfrom six import BytesIO\n\nfrom infogami.utils import delegate\nfrom infogami.utils.view import safeint\nfrom openlibrary import accounts\nfrom openlibrary.plugins.upstre...
[ { "content": "\"\"\"Handle book cover/author photo upload.\n\"\"\"\nfrom logging import getLogger\n\nimport requests\nimport six\nimport web\nfrom six import BytesIO\n\nfrom infogami.utils import delegate\nfrom infogami.utils.view import safeint\nfrom openlibrary import accounts\nfrom openlibrary.plugins.upstre...
diff --git a/openlibrary/plugins/upstream/covers.py b/openlibrary/plugins/upstream/covers.py index f27e6609d21..9c98ac0bf15 100644 --- a/openlibrary/plugins/upstream/covers.py +++ b/openlibrary/plugins/upstream/covers.py @@ -54,7 +54,7 @@ def upload(self, key, i): else: data = None - if i...
wagtail__wagtail-1791
Cachebusting query parameter (e.g. _=1441835249458) not ignored by api From the [documentation for jQuery.ajax, under "cache"](http://api.jquery.com/jquery.ajax/): > Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. The parameter is...
[ { "content": "from __future__ import absolute_import\n\nfrom collections import OrderedDict\n\nfrom django.conf.urls import url\nfrom django.http import Http404\n\nfrom rest_framework import status\nfrom rest_framework.response import Response\nfrom rest_framework.viewsets import GenericViewSet\n\nfrom wagtail....
[ { "content": "from __future__ import absolute_import\n\nfrom collections import OrderedDict\n\nfrom django.conf.urls import url\nfrom django.http import Http404\n\nfrom rest_framework import status\nfrom rest_framework.response import Response\nfrom rest_framework.viewsets import GenericViewSet\n\nfrom wagtail....
diff --git a/wagtail/contrib/wagtailapi/endpoints.py b/wagtail/contrib/wagtailapi/endpoints.py index c6a2489fccf7..26846d598b86 100644 --- a/wagtail/contrib/wagtailapi/endpoints.py +++ b/wagtail/contrib/wagtailapi/endpoints.py @@ -37,6 +37,9 @@ class BaseAPIEndpoint(GenericViewSet): 'fields', 'order',...
kymatio__kymatio-352
ENH+TST find a way of testing GPU code With not too much investment in 💲 💰 it should be possible to set up a `jenkins` testing suite on amazon aws: The idea is to have a micro machine that costs 1c/h run the jenkins server. When tests should be run, this should somehow spawn a couple of GPU machines with different G...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport csv\nimport importlib\nimport os\nimport shutil\nimport sys\nfrom setuptools import setup, find_packages\n\n# Constants\nDISTNAME = 'kymatio'\nDESCRIPTION = 'Wavelet scattering transforms in Python with GPU acceleration'\nURL = 'https://www....
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport csv\nimport importlib\nimport os\nimport shutil\nimport sys\nfrom setuptools import setup, find_packages\n\n# Constants\nDISTNAME = 'kymatio'\nDESCRIPTION = 'Wavelet scattering transforms in Python with GPU acceleration'\nURL = 'https://www....
diff --git a/.travis.yml b/.travis.yml index 885beb281..bab8e4b97 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,4 +12,4 @@ install: script: - pytest --cov=kymatio after_success: - - bash <(curl -s https://codecov.io/bash) + - bash <(curl -s https://codecov.io/bash) -F travis diff --git a/CONTRIBUTORS.md b/CO...
apache__tvm-3962
docker/build.sh demo_android -it bash fails https://github.com/dmlc/tvm/blob/9e4f07b4695a8849590cdd46de662e3fa273d59b/docker/Dockerfile.demo_android#L70 Command fails with errors like: ``` CMake Error at cmake/util/FindLLVM.cmake:76 (string): string sub-command STRIP requires two arguments. Call Stack (most re...
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 754aa6498156..abf198de1c53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,7 +101,7 @@ else(MSVC) set(CMAKE_C_FLAGS "-O2 -Wall -fPIC ${CMAKE_C_FLAGS}") set(CMAKE_CXX_FLAGS "-O2 -Wall -fPIC ${CMAKE_CXX_FLAGS}") if (HIDE_PRIVATE_SYMBOLS) - me...
open-telemetry__opentelemetry-python-2307
Rename `ConsoleExporter` to `ConsoleLogExporter`? As suggested by @lonewolf3739, we should rename the ConsoleExporter to ConsoleLogExporter to follow the pattern established by the ConsoleSpanExporter. Not in this PR; Should we rename this to `ConsoleLogExporter`? _Originally posted by @lonewolf3739 in https://gi...
[ { "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 9f0cf21c606..cd154b753cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#2303](https://github.com/open-telemetry/opentelemetry-python/pull/2303)) - Adding entrypoints for...
scikit-hep__pyhf-1220
pytest v6.2.0 causing test_optim_with_value to fail # Description `v0.5.4` `bump2version` changes were swept into `master` 2020-12-12 with f824afe and the CI on `master` succeeded. Later that day [`pytest` `v6.2.0`](https://github.com/pytest-dev/pytest/releases/tag/6.2.0) was released and the nightly scheduled CI fa...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow~=2.2.0', # TensorFlow minor releases are as volatile as major\n 'tensorflow-probability~=0.10.0',\n ],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow~=2.2.0', # TensorFlow minor releases are as volatile as major\n 'tensorflow-probability~=0.10.0',\n ],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax...
diff --git a/.github/workflows/dependencies-head.yml b/.github/workflows/dependencies-head.yml index 174c1f382f..77b6f18142 100644 --- a/.github/workflows/dependencies-head.yml +++ b/.github/workflows/dependencies-head.yml @@ -57,7 +57,7 @@ jobs: run: | python -m pytest -r sx --ignore tests/benchmarks/ ...
ray-project__ray-5287
[Tune] The logdir string of Trial is always truncated For now, the logdir string of a trial is created by `Trial.create_logdir`: https://github.com/ray-project/ray/blob/6f737e6a500dc9f500d4cf7ba7b31f979922a18b/python/ray/tune/trial.py#L373-L389 The `identifier` is always be truncated to a length of `MAX_LEN_IDENTIFI...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nfrom collections import namedtuple\nimport ray.cloudpickle as cloudpickle\nimport copy\nfrom datetime import datetime\nimport logging\nimport json\nimport uuid\nimport time\nimport tem...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nfrom collections import namedtuple\nimport ray.cloudpickle as cloudpickle\nimport copy\nfrom datetime import datetime\nimport logging\nimport json\nimport uuid\nimport time\nimport tem...
diff --git a/python/ray/tune/trial.py b/python/ray/tune/trial.py index a5f9cef3abd17..1221c2a534c38 100644 --- a/python/ray/tune/trial.py +++ b/python/ray/tune/trial.py @@ -30,7 +30,7 @@ from ray.utils import binary_to_hex, hex_to_binary DEBUG_PRINT_INTERVAL = 5 -MAX_LEN_IDENTIFIER = 130 +MAX_LEN_IDENTIFIER = int(o...
python-pillow__Pillow-6874
Fatal Python error for negative radius in ImageFilter.BoxBlur() Hi, Python crashes without an exception when a negative radius is passed into ImageFilter.BoxBlur(). This is the error message using spyder. ``` Fatal Python error: Aborted Main thread: Current thread 0x00007fbab679b740 (most recent call first)...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# standard filters\n#\n# History:\n# 1995-11-27 fl Created\n# 2002-06-08 fl Added rank and mode filters\n# 2003-09-15 fl Fixed rank calculation in rank filter; added expand call\n#\n# Copyright (c) 1997-2003 by Secret Labs AB.\n# Copyright (c) 199...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# standard filters\n#\n# History:\n# 1995-11-27 fl Created\n# 2002-06-08 fl Added rank and mode filters\n# 2003-09-15 fl Fixed rank calculation in rank filter; added expand call\n#\n# Copyright (c) 1997-2003 by Secret Labs AB.\n# Copyright (c) 199...
diff --git a/Tests/test_image_filter.py b/Tests/test_image_filter.py index cfe46b65898..a2ef2280b72 100644 --- a/Tests/test_image_filter.py +++ b/Tests/test_image_filter.py @@ -24,6 +24,7 @@ ImageFilter.ModeFilter, ImageFilter.GaussianBlur, ImageFilter.GaussianBlur(5), + ImageFilter.Bo...
encode__httpx-1799
Update h2 pin? ### Discussed in https://github.com/encode/httpx/discussions/1485 <div type='discussions-op-text'> <sup>Originally posted by **HarrySky** February 24, 2021</sup> Hi, some time ago `h2` pin was updated in `httpcore`: https://github.com/encode/httpcore/pull/208 But it is still pinned to `3.*` in ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport re\nfrom pathlib import Path\n\nfrom setuptools import setup\n\n\ndef get_version(package):\n \"\"\"\n Return package version as listed in `__version__` in `init.py`.\n \"\"\"\n version = Path(package, \"__version__.py\").read_te...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport re\nfrom pathlib import Path\n\nfrom setuptools import setup\n\n\ndef get_version(package):\n \"\"\"\n Return package version as listed in `__version__` in `init.py`.\n \"\"\"\n version = Path(package, \"__version__.py\").read_te...
diff --git a/setup.py b/setup.py index 212aedf865..8854039e21 100644 --- a/setup.py +++ b/setup.py @@ -63,7 +63,7 @@ def get_packages(package): "async_generator; python_version < '3.7'" ], extras_require={ - "http2": "h2==3.*", + "http2": "h2>=3,<5", "brotli": "brotlicffi==1.*"...
scikit-image__scikit-image-5206
Small typo in utils.py ## Description Small typo in the docs The class docs have the argument name as `arg_mapping` https://github.com/scikit-image/scikit-image/blob/87a8806cca7fb5366b6e5ddbe5e46364b44f90fe/skimage/_shared/utils.py#L119 However, the actual `__init__` method takes the argument with the name `kwarg...
[ { "content": "import inspect\nimport functools\nimport numbers\nimport sys\nimport warnings\n\nimport numpy as np\nfrom numpy.lib import NumpyVersion\nimport scipy\n\nfrom ..util import img_as_float\nfrom ._warnings import all_warnings, warn\n\n__all__ = ['deprecated', 'get_bound_method_class', 'all_warnings',\...
[ { "content": "import inspect\nimport functools\nimport numbers\nimport sys\nimport warnings\n\nimport numpy as np\nfrom numpy.lib import NumpyVersion\nimport scipy\n\nfrom ..util import img_as_float\nfrom ._warnings import all_warnings, warn\n\n__all__ = ['deprecated', 'get_bound_method_class', 'all_warnings',\...
diff --git a/skimage/_shared/utils.py b/skimage/_shared/utils.py index c0cf954e44a..144145dfdfe 100644 --- a/skimage/_shared/utils.py +++ b/skimage/_shared/utils.py @@ -119,7 +119,7 @@ class deprecate_kwarg: Parameters ---------- - arg_mapping: dict + kwarg_mapping: dict Mapping between the f...
cupy__cupy-4734
`pip install` completely ignores existing source builds and installed dependencies I suspect this has to do with #4619. I am on the latest master, and now every time I call `pip install -v -e .` two things happens: 1. These packages keeps being reinstalled despite I already have them in my env: setuptools, wheel,...
[ { "content": "#!/usr/bin/env python\n\nimport glob\nimport os\nfrom setuptools import setup, find_packages\nimport sys\n\nimport cupy_setup_build\n\n\nfor submodule in ('cupy/core/include/cupy/cub/',\n 'cupy/core/include/cupy/jitify'):\n if len(os.listdir(submodule)) == 0:\n msg = '''...
[ { "content": "#!/usr/bin/env python\n\nimport glob\nimport os\nfrom setuptools import setup, find_packages\nimport sys\n\nimport cupy_setup_build\n\n\nfor submodule in ('cupy/core/include/cupy/cub/',\n 'cupy/core/include/cupy/jitify'):\n if len(os.listdir(submodule)) == 0:\n msg = '''...
diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 64d5a0e5df7..00000000000 --- a/pyproject.toml +++ /dev/null @@ -1,2 +0,0 @@ -[build-system] -requires = ["setuptools", "wheel", "Cython>=0.28.0", "fastrlock>=0.5"] diff --git a/setup.py b/setup.py index fc0d55303d4..5350393bff5 100644 --- a/set...
streamlink__streamlink-4238
plugins.ustreamtv: [plugin.api.websocket][error] EOF occurred in violation of protocol (_ssl.c:1129) ### Checklist - [X] This is a bug report and not a different kind of issue - [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink...
[ { "content": "import logging\nimport re\nfrom collections import deque\nfrom datetime import datetime, timedelta\nfrom random import randint\nfrom threading import Event, RLock\nfrom typing import Any, Callable, Deque, Dict, List, NamedTuple, Union\nfrom urllib.parse import urljoin, urlunparse\n\nfrom requests ...
[ { "content": "import logging\nimport re\nfrom collections import deque\nfrom datetime import datetime, timedelta\nfrom random import randint\nfrom threading import Event, RLock\nfrom typing import Any, Callable, Deque, Dict, List, NamedTuple, Union\nfrom urllib.parse import urljoin, urlunparse\n\nfrom requests ...
diff --git a/src/streamlink/plugins/ustreamtv.py b/src/streamlink/plugins/ustreamtv.py index ca6f628691a..b1e31730985 100644 --- a/src/streamlink/plugins/ustreamtv.py +++ b/src/streamlink/plugins/ustreamtv.py @@ -57,7 +57,7 @@ def url(self, base: str, template: str) -> str: class UStreamTVWsClient(WebsocketClient)...
mitmproxy__mitmproxy-6796
Failed to proxy HTTPS request to unicode domains #### Problem Description Just like issue https://github.com/mitmproxy/mitmproxy/issues/6381. #### Steps to reproduce the behavior: 1. start mitmproxy: `mitmproxy -p 8080` 2. browse url with proxy setup, for example: `https://tt.广西阀门.net` and then mitmproxy throw...
[ { "content": "import ipaddress\nimport logging\nimport os\nimport ssl\nfrom pathlib import Path\nfrom typing import Any\nfrom typing import TypedDict\n\nfrom aioquic.h3.connection import H3_ALPN\nfrom aioquic.tls import CipherSuite\nfrom cryptography import x509\nfrom OpenSSL import crypto\nfrom OpenSSL import ...
[ { "content": "import ipaddress\nimport logging\nimport os\nimport ssl\nfrom pathlib import Path\nfrom typing import Any\nfrom typing import TypedDict\n\nfrom aioquic.h3.connection import H3_ALPN\nfrom aioquic.tls import CipherSuite\nfrom cryptography import x509\nfrom OpenSSL import crypto\nfrom OpenSSL import ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a0a31038c6..1df19bb268 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,8 @@ ([#6767](https://github.com/mitmproxy/mitmproxy/pull/6767), @txrp0x9) * Fix compatibility with older cryptography versions and silence a DeprecationWarning on Python <3.11. ([#6790...
pytorch__pytorch-4384
Profiler for Python 2.7 Running `prof = torch.autograd.profiler.load_nvprof('trace_name.prof')` on Python 2.7 causes an error: `NameError: global name 'FileNotFoundError' is not defined` and according to [here](https://github.com/philkr/lpo/issues/5#issuecomment-100596671), FileNotFoundError apparently doesn't exist i...
[ { "content": "import torch\nimport subprocess\nimport os\nimport sys\nimport copy\nimport tempfile\nimport itertools\nfrom collections import defaultdict, namedtuple\n\n\nclass range(object):\n def __init__(self, name):\n self.name = name\n\n def __enter__(self):\n torch.autograd._push_range...
[ { "content": "import torch\nimport subprocess\nimport os\nimport sys\nimport copy\nimport tempfile\nimport itertools\nfrom collections import defaultdict, namedtuple\n\ntry:\n FileNotFoundError\nexcept NameError:\n # py2.7\n FileNotFoundError = IOError\n\n\nclass range(object):\n def __init__(self, ...
diff --git a/torch/autograd/profiler.py b/torch/autograd/profiler.py index 107d176430accf..1c9f8fd9d2b348 100644 --- a/torch/autograd/profiler.py +++ b/torch/autograd/profiler.py @@ -7,6 +7,12 @@ import itertools from collections import defaultdict, namedtuple +try: + FileNotFoundError +except NameError: + # ...
open-telemetry__opentelemetry-python-contrib-98
EC2 resource detector hangs for a long time outside of an EC2 instance **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 dependencies, information about y...
[ { "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/instrumentation/opentelemetry-instrumentation-botocore/setup.cfg b/instrumentation/opentelemetry-instrumentation-botocore/setup.cfg index ee7849c143..a299838577 100644 --- a/instrumentation/opentelemetry-instrumentation-botocore/setup.cfg +++ b/instrumentation/opentelemetry-instrumentation-botocore/setup.c...
huggingface__diffusers-1052
Improve the precision of our integration tests We currently have a rather low precision when testing our pipeline due to due reasons. 1. - Our reference is an image and not a numpy array. This means that when we created our reference image we lost float precision which is unnecessary 2. - We only test for `.max() < ...
[ { "content": "# Copyright 2022 The HuggingFace Inc. team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
[ { "content": "# Copyright 2022 The HuggingFace Inc. team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
diff --git a/src/diffusers/utils/__init__.py b/src/diffusers/utils/__init__.py index 12d731128385..7395f4edfa26 100644 --- a/src/diffusers/utils/__init__.py +++ b/src/diffusers/utils/__init__.py @@ -42,6 +42,7 @@ if is_torch_available(): from .testing_utils import ( floats_tensor, + load_hf_numpy,...
e2nIEE__pandapower-563
from_mpc failed to load the case generated by to_mpc After checking the source code, I found the to_mpc function saves the fields in a loose format. According to the from_mpc function, all the fields should be under a variable called "mpc" (default), however the to_mpc function does not follow this, which leads to a si...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2019 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n\n\nimport copy\n\nimport numpy as np\nfrom scipy.io import savemat\n\nfrom pandapower.converter.pypower i...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2019 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n\n\nimport copy\n\nimport numpy as np\nfrom scipy.io import savemat\n\nfrom pandapower.converter.pypower i...
diff --git a/pandapower/converter/matpower/to_mpc.py b/pandapower/converter/matpower/to_mpc.py index e345cb66a..8afac2ee9 100644 --- a/pandapower/converter/matpower/to_mpc.py +++ b/pandapower/converter/matpower/to_mpc.py @@ -42,7 +42,8 @@ def to_mpc(net, filename=None, **kwargs): """ ppc = to_ppc(net, **kwarg...
django-wiki__django-wiki-891
Translations out-of-date I noticed the string "Search whole wiki..." has not been translated on my wiki because the translation file has not been updated since December 2017. Would you update the `django.po` file so I can work on the translation in Transifex? Thanks.
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\nfrom glob import glob\n\nfrom setuptools import find_packages, setup\n\nsys.path.append(\n os.path.join(os.path.dirname(__file__), 'src')\n)\n\n# noqa\nfrom wiki import __version__ # isort:skip # noqa\n\n\n# Utility func...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\nfrom glob import glob\n\nfrom setuptools import find_packages, setup\n\nsys.path.append(\n os.path.join(os.path.dirname(__file__), 'src')\n)\n\n# noqa\nfrom wiki import __version__ # isort:skip # noqa\n\n\n# Utility func...
diff --git a/setup.py b/setup.py index 97c52daef..55ec1efde 100755 --- a/setup.py +++ b/setup.py @@ -50,7 +50,9 @@ def get_path(fname): 'pytest-runner', ] -development_requirements = test_requirements + test_lint_requirements +development_requirements = test_requirements + test_lint_requirements + [ + 'pre-c...
cobbler__cobbler-3197
Packaging: Provide native packages for Debian & Ubuntu ### Is your feature request related to a problem? Currently we only provide packages for Debian and Ubuntu via Debbuild. This is good for test installations or users how know the OBS already and are familiar with it. ### The Behaviour you'd like `apt insta...
[ { "content": "#!/usr/bin/env python3\n\nimport os\nimport sys\nimport time\nimport glob as _glob\n\nfrom setuptools import setup\nfrom setuptools import Command\nfrom setuptools.command.install import install as _install\nfrom setuptools import Distribution as _Distribution\nfrom setuptools.command.build_py imp...
[ { "content": "#!/usr/bin/env python3\n\nimport os\nimport sys\nimport time\nimport glob as _glob\n\nfrom setuptools import setup\nfrom setuptools import Command\nfrom setuptools.command.install import install as _install\nfrom setuptools import Distribution as _Distribution\nfrom setuptools.command.build_py imp...
diff --git a/Makefile b/Makefile index f26007007c..09fc79f393 100644 --- a/Makefile +++ b/Makefile @@ -148,15 +148,11 @@ rpms: release ## Runs the target release and then creates via rpmbuild the rpms -ba cobbler.spec # Only build a binary package -debs: release ## Runs the target release and then creates via debb...
comic__grand-challenge.org-2049
Incorrect values in Archive Item List The Archive Item list view displays the correct archive items, but for some reason, the `archive_item.values` are duplicated.
[ { "content": "from celery import chain, chord, group\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.contrib.messages.views import SuccessMessageMixin\nfrom django.core.exceptions import (\n NON_FIELD_ERRORS,\n PermissionDenied,\n ValidationError,\n)\nfrom django.core.files...
[ { "content": "from celery import chain, chord, group\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.contrib.messages.views import SuccessMessageMixin\nfrom django.core.exceptions import (\n NON_FIELD_ERRORS,\n PermissionDenied,\n ValidationError,\n)\nfrom django.core.files...
diff --git a/app/grandchallenge/archives/views.py b/app/grandchallenge/archives/views.py index 5e987c2769..aee105b4eb 100644 --- a/app/grandchallenge/archives/views.py +++ b/app/grandchallenge/archives/views.py @@ -498,7 +498,7 @@ class ArchiveItemsList( "values__file", ] columns = [ - Column(...
ipython__ipython-2186
oct2py v >= 0.3.1 doesn't need h5py anymore The octave magic docs/examples should update this information.
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n===========\noctavemagic\n===========\n\nMagics for interacting with Octave via oct2py.\n\n.. note::\n\n The ``oct2py`` module needs to be installed separately, and in turn depends\n on ``h5py``. Both can be obtained using ``easy_install`` or ``pip``.\n\nUsage\n...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n===========\noctavemagic\n===========\n\nMagics for interacting with Octave via oct2py.\n\n.. note::\n\n The ``oct2py`` module needs to be installed separately and\n can be obtained using ``easy_install`` or ``pip``.\n\nUsage\n=====\n\n``%octave``\n\n{OCTAVE_DOC}...
diff --git a/IPython/extensions/octavemagic.py b/IPython/extensions/octavemagic.py index f46e6e935d1..a0114bf6f9e 100644 --- a/IPython/extensions/octavemagic.py +++ b/IPython/extensions/octavemagic.py @@ -8,8 +8,8 @@ .. note:: - The ``oct2py`` module needs to be installed separately, and in turn depends - on ``h...
open-telemetry__opentelemetry-python-3442
Allow use of "/" in Metrics Instrument Names, and with a 255 char limit As per the recent specs change : * Increase max instrument name length from 63 to 255: https://github.com/open-telemetry/opentelemetry-specification/pull/3648 * Instrument names can have "/" character: https://github.com/open-telemetry/opentel...
[ { "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 50db7d0bd03..bf7db9c04ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#3423](https://github.com/open-telemetry/opentelemetry-python/pull/3423)) - Make `opentelemetry_me...
ivy-llc__ivy-18982
imag
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n)\nfrom ivy.func_wrapper import with_unsupported_dtypes\nfrom ivy.functional.frontends.jax.numpy import promote_types_of_jax_inputs\nfrom ivy.functional.frontends.numpy.manipulation_routines ...
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n)\nfrom ivy.func_wrapper import with_unsupported_dtypes\nfrom ivy.functional.frontends.jax.numpy import promote_types_of_jax_inputs\nfrom ivy.functional.frontends.numpy.manipulation_routines ...
diff --git a/ivy/functional/frontends/jax/numpy/mathematical_functions.py b/ivy/functional/frontends/jax/numpy/mathematical_functions.py index ff37565745cd0..62d588b079ea5 100644 --- a/ivy/functional/frontends/jax/numpy/mathematical_functions.py +++ b/ivy/functional/frontends/jax/numpy/mathematical_functions.py @@ -28,...
mlcommons__GaNDLF-315
Add an easy way to verify installation **Is your feature request related to a problem? Please describe.** Currently, we are asking users to run specific commands to verify installation, which can be cumbursome. **Describe the solution you'd like** It would be great if this could put in a script (and extended/updat...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\nwith open(\"README.md\") as readme...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\nwith open(\"README.md\") as readme...
diff --git a/docs/faq.md b/docs/faq.md index 33379a03f..4ee02a1fd 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -8,6 +8,7 @@ This page contains answers to frequently asked questions about GaNDLF. - [Table of Contents](#table-of-contents) - [Why do I get the error `pkg_resources.DistributionNotFound: The 'GANDLF...
rasterio__rasterio-2093
WarpedVRT context exit doesn't not set the dataset as closed It's me again with a WarpedVRT bug (I'm sorry). Basically I wanted to know the state of the WarpedVRT dataset after I exited the context manager, and it seems that the WarpedVRT is not set to `closed` but if I try to to `vrt.read()` rasterio will error wi...
[ { "content": "\"\"\"rasterio.vrt: a module concerned with GDAL VRTs\"\"\"\n\nimport xml.etree.ElementTree as ET\n\nimport rasterio\nfrom rasterio._warp import WarpedVRTReaderBase\nfrom rasterio.dtypes import _gdal_typename\nfrom rasterio.enums import MaskFlags\nfrom rasterio.env import env_ctx_if_needed\nfrom r...
[ { "content": "\"\"\"rasterio.vrt: a module concerned with GDAL VRTs\"\"\"\n\nimport xml.etree.ElementTree as ET\n\nimport rasterio\nfrom rasterio._warp import WarpedVRTReaderBase\nfrom rasterio.dtypes import _gdal_typename\nfrom rasterio.enums import MaskFlags\nfrom rasterio.env import env_ctx_if_needed\nfrom r...
diff --git a/rasterio/vrt.py b/rasterio/vrt.py index 3f3b65474..81b942cb3 100644 --- a/rasterio/vrt.py +++ b/rasterio/vrt.py @@ -122,9 +122,6 @@ def __exit__(self, *args, **kwargs): def __del__(self): self.close() - def close(self): - self.stop() - def _boundless_vrt_doc( src_datas...
falconry__falcon-382
HTTP Range support is incomplete in the HTTP RFC 2616, a range header must be written with the format Range: bytes=0-1,3-4,6-7 I understand that falcon does not support multiple ranges (and I do not need it personally), but it currently does not even support stripping the "bytes=" from the header before trying a trans...
[ { "content": "# Copyright 2013 by Rackspace Hosting, 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 requir...
[ { "content": "# Copyright 2013 by Rackspace Hosting, 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 requir...
diff --git a/falcon/request.py b/falcon/request.py index 8be41c405..58ffb4755 100644 --- a/falcon/request.py +++ b/falcon/request.py @@ -340,6 +340,8 @@ def date(self): def range(self): try: value = self.env['HTTP_RANGE'] + if value.startswith('bytes='): + value = va...
feast-dev__feast-3954
No such option: -f for feast CLI ## Expected Behavior According to documentation: https://docs.feast.dev/how-to-guides/feast-snowflake-gcp-aws/structuring-repos ``` feast -f staging/feature_store.yaml apply ``` should work ## Current Behavior ``` Usage: feast [OPTIONS] COMMAND [ARGS]... Try 'feast --he...
[ { "content": "# Copyright 2019 The Feast 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
[ { "content": "# Copyright 2019 The Feast 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
diff --git a/sdk/python/feast/cli.py b/sdk/python/feast/cli.py index 985c44b821f..7ce8aaef2bc 100644 --- a/sdk/python/feast/cli.py +++ b/sdk/python/feast/cli.py @@ -76,6 +76,7 @@ def format_options(self, ctx: click.Context, formatter: click.HelpFormatter): ) @click.option( "--feature-store-yaml", + "-f", ...
pytest-dev__pytest-django-216
Support settings DJANGO_SETTINGS_MODULE in pytest_configure See comment in #119, this should be possible: ``` python import os def pytest_configure(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') ```
[ { "content": "\"\"\"\nHelpers to load Django lazily when Django settings can't be configured.\n\"\"\"\n\nimport os\nimport sys\n\nimport pytest\n\n\ndef skip_if_no_django():\n \"\"\"Raises a skip exception when no Django settings are available\"\"\"\n if not django_settings_is_configured():\n pytes...
[ { "content": "\"\"\"\nHelpers to load Django lazily when Django settings can't be configured.\n\"\"\"\n\nimport os\nimport sys\n\nimport pytest\n\n\ndef skip_if_no_django():\n \"\"\"Raises a skip exception when no Django settings are available\"\"\"\n if not django_settings_is_configured():\n pytes...
diff --git a/pytest_django/lazy_django.py b/pytest_django/lazy_django.py index 845804099..4ba4d5aa7 100644 --- a/pytest_django/lazy_django.py +++ b/pytest_django/lazy_django.py @@ -22,8 +22,6 @@ def django_settings_is_configured(): # If DJANGO_SETTINGS_MODULE is defined at this point, Django is assumed to #...
django-cms__django-cms-1016
2.2 Trove classifier is incorrect The current release added Development Status to the PyPI Trove categories, but it remains `'Development Status :: 4 - Beta'` which it had during the RCs - I suspect that it should now be `'Development Status :: 5 - Production/Stable'` I don't have a git clone in front of me, so I can...
[ { "content": "from setuptools import setup, find_packages\nimport os\nimport cms\n\n \nCLASSIFIERS = [\n 'Development Status :: 4 - Beta',\n 'Environment :: Web Environment',\n 'Framework :: Django',\n 'Intended Audience :: Developers',\n 'License :: OSI Approved :: BSD License',\n 'Ope...
[ { "content": "from setuptools import setup, find_packages\nimport os\nimport cms\n\n \nCLASSIFIERS = [\n 'Development Status :: 5 - Production/Stable',\n 'Environment :: Web Environment',\n 'Framework :: Django',\n 'Intended Audience :: Developers',\n 'License :: OSI Approved :: BSD Licens...
diff --git a/setup.py b/setup.py index 8ca967a3250..65b6ffc1ed5 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ CLASSIFIERS = [ - 'Development Status :: 4 - Beta', + 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Django', 'Intended A...
open-telemetry__opentelemetry-python-3284
Reserved attribute seems to be out of sync for message https://github.com/open-telemetry/opentelemetry-python/blob/e00306206ea25cf8549eca289e39e0b6ba2fa560/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py#L290 seems to have getMessage whereas https://docs.python.org/3/library/logging.html#logrecor...
[ { "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/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py index 83cef931491..eda9b093c93 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_inte...
HypothesisWorks__hypothesis-1084
TypeError thrown when trying to import hypothesis in 3.44.21 hypothesis (3.44.21) In [4]: from hypothesis import given --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-4-4ce9639ca03b> in <module>(...
[ { "content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2018 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f...
[ { "content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2018 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f...
diff --git a/RELEASE.rst b/RELEASE.rst new file mode 100644 index 0000000000..1832eb2a69 --- /dev/null +++ b/RELEASE.rst @@ -0,0 +1,8 @@ +RELEASE_TYPE: patch + +This release fixes a dependency problem. It was possible to install +Hypothesis with an old version of :pypi:`attrs`, which would throw a +``TypeError`` as so...
sktime__sktime-5287
[BUG] Bug in the imputer class. Fit and transform ignore the parameter for y The `fit` and `transform` functions of the `Imputer` class in sktime ignore the input parameter for `y`. Upon debugging, it was found that `y` is always `None` and cannot be changed. **To Reproduce** ```python from sktime.datasets import...
[ { "content": "#!/usr/bin/env python3 -u\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Transformer to impute missing values in series.\"\"\"\n\n__author__ = [\"aiwalter\"]\n__all__ = [\"Imputer\"]\n\nimport numpy as np\nimport pandas as pd\nfrom sklearn.utils import check_random...
[ { "content": "#!/usr/bin/env python3 -u\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Transformer to impute missing values in series.\"\"\"\n\n__author__ = [\"aiwalter\"]\n__all__ = [\"Imputer\"]\n\nimport numpy as np\nimport pandas as pd\nfrom sklearn.utils import check_random...
diff --git a/sktime/transformations/series/impute.py b/sktime/transformations/series/impute.py index ce3a26bd73a..da623f0f81b 100644 --- a/sktime/transformations/series/impute.py +++ b/sktime/transformations/series/impute.py @@ -137,6 +137,9 @@ def __init__( } ) + if method in "fo...
doccano__doccano-1531
TemplateDoesNotExist Error on start from README instructions How to reproduce the behaviour --------- I was following the instructions on the main README to install and start doccano with pip (copied here) ``` pip install doccano doccano init doccano createuser --username admin --password pass doccano webser...
[ { "content": "import argparse\nimport multiprocessing\nimport os\nimport platform\nimport subprocess\nimport sys\n\nfrom .app.celery import app\nbase = os.path.abspath(os.path.dirname(__file__))\nsys.path.append(base)\nmanage_path = os.path.join(base, 'manage.py')\nparser = argparse.ArgumentParser(description='...
[ { "content": "import argparse\nimport multiprocessing\nimport os\nimport platform\nimport subprocess\nimport sys\n\nfrom .app.celery import app\nos.environ['DEBUG'] = 'False'\nbase = os.path.abspath(os.path.dirname(__file__))\nsys.path.append(base)\nmanage_path = os.path.join(base, 'manage.py')\nparser = argpar...
diff --git a/backend/cli.py b/backend/cli.py index b6ada48835..90c23915b8 100644 --- a/backend/cli.py +++ b/backend/cli.py @@ -6,6 +6,7 @@ import sys from .app.celery import app +os.environ['DEBUG'] = 'False' base = os.path.abspath(os.path.dirname(__file__)) sys.path.append(base) manage_path = os.path.join(base,...
huggingface__optimum-425
AttributeError: type object 'ORTModelForCustomTasks' has no attribute 'export_feature' ### System Info ```shell Mac OS X Python 3.9.10 transformers 4.22.2 onnxruntime 1.12.1 onnx 1.12.0 torch 1.12.1 ``` ### Who can help? @lewtun, @michaelbenayoun @JingyaHuang, @echarlaix ### Information - [ ] The official...
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
diff --git a/optimum/onnxruntime/modeling_ort.py b/optimum/onnxruntime/modeling_ort.py index d46a891ab6..2ba6b103a8 100644 --- a/optimum/onnxruntime/modeling_ort.py +++ b/optimum/onnxruntime/modeling_ort.py @@ -1051,6 +1051,7 @@ class ORTModelForCustomTasks(ORTModel): Onnx Model for any custom tasks. """ + ...
sopel-irc__sopel-1774
db: get_uri() assumes SQLite @RustyBower This slipped by me completely in the whole DB-overhaul process. Obviously this function is useless for instances not using SQLite, in its current state. Not that there will be any of those among upgrade instances (at least, not immediately), but… https://github.com/sopel-irc/...
[ { "content": "# coding=utf-8\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport errno\nimport json\nimport os.path\nimport sys\n\nfrom sopel.tools import Identifier\n\nfrom sqlalchemy import create_engine, Column, ForeignKey, Integer, String\nfrom sqlalchemy.engine.url...
[ { "content": "# coding=utf-8\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport errno\nimport json\nimport os.path\nimport sys\n\nfrom sopel.tools import Identifier\n\nfrom sqlalchemy import create_engine, Column, ForeignKey, Integer, String\nfrom sqlalchemy.engine.url...
diff --git a/sopel/db.py b/sopel/db.py index 471d035d8b..028fdc98cb 100644 --- a/sopel/db.py +++ b/sopel/db.py @@ -188,7 +188,7 @@ def execute(self, *args, **kwargs): def get_uri(self): """Returns a URL for the database, usable to connect with SQLAlchemy.""" - return 'sqlite:///{}'.format(self.fi...
streamlink__streamlink-5926
plugins.mangomolo: error: No plugin can handle URL ### Checklist - [X] This is a [plugin issue](https://streamlink.github.io/plugins.html) and not [a different kind of issue](https://github.com/streamlink/streamlink/issues/new/choose) - [X] [I have read the contribution guidelines](https://github.com/streamlink/stream...
[ { "content": "\"\"\"\n$description OTT video platform owned by Alpha Technology Group\n$url player.mangomolo.com\n$url media.gov.kw\n$type live\n\"\"\"\n\nimport logging\nimport re\n\nfrom streamlink.exceptions import NoStreamsError\nfrom streamlink.plugin import Plugin, pluginmatcher\nfrom streamlink.plugin.ap...
[ { "content": "\"\"\"\n$description OTT video platform owned by Alpha Technology Group\n$url player.mangomolo.com\n$url media.gov.kw\n$type live\n\"\"\"\n\nimport logging\nimport re\n\nfrom streamlink.exceptions import NoStreamsError\nfrom streamlink.plugin import Plugin, pluginmatcher\nfrom streamlink.plugin.ap...
diff --git a/src/streamlink/plugins/mangomolo.py b/src/streamlink/plugins/mangomolo.py index 186732b6c03..4f6e00dbfb7 100644 --- a/src/streamlink/plugins/mangomolo.py +++ b/src/streamlink/plugins/mangomolo.py @@ -24,7 +24,7 @@ ) @pluginmatcher( name="mediagovkw", - pattern=re.compile(r"https?://media\.gov\.kw...
psychopy__psychopy-2333
Demos -> Hardware -> testSoundLatency.py not working in v3.0.6 Running Demo -> Hardware -> testSoundLatency.py results in the following error message: ``` ##### Running: C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\demos\coder\hardware\testSoundLatency.py ##### pygame 1.9.4 Hello from the pygame comm...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nDemo for using labjack DAC devices\n\nSee also\n http: //labjack.com/support/labjackpython\nbut note that the version shipped with standalone PsychoPy\nhas u3 (and others below an umbrella called labjack) so the import\nline is slightly ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nDemo for using labjack DAC devices\n\nSee also\n http: //labjack.com/support/labjackpython\nbut note that the version shipped with standalone PsychoPy\nhas u3 (and others below an umbrella called labjack) so the import\nline is slightly ...
diff --git a/psychopy/demos/coder/hardware/labjack_u3.py b/psychopy/demos/coder/hardware/labjack_u3.py index abb4c1af90..9294b41436 100644 --- a/psychopy/demos/coder/hardware/labjack_u3.py +++ b/psychopy/demos/coder/hardware/labjack_u3.py @@ -15,7 +15,10 @@ from builtins import range from psychopy import visual, co...
comic__grand-challenge.org-755
Handle NoneType comparison in _scores_to_ranks ``` TypeError: '<' not supported between instances of 'NoneType' and 'float' ```
[ { "content": "from collections import OrderedDict\nfrom typing import Tuple, NamedTuple, List, Callable, Iterable, Dict\n\nfrom grandchallenge.evaluation.models import Result\nfrom grandchallenge.evaluation.templatetags.evaluation_extras import (\n get_jsonpath\n)\n\n\nclass Metric(NamedTuple):\n path: st...
[ { "content": "from collections import OrderedDict\nfrom typing import Tuple, NamedTuple, List, Callable, Iterable, Dict\n\nfrom grandchallenge.evaluation.models import Result\nfrom grandchallenge.evaluation.templatetags.evaluation_extras import (\n get_jsonpath\n)\n\n\nclass Metric(NamedTuple):\n path: st...
diff --git a/app/grandchallenge/evaluation/utils.py b/app/grandchallenge/evaluation/utils.py index e76a7f87a4..1366b997b9 100644 --- a/app/grandchallenge/evaluation/utils.py +++ b/app/grandchallenge/evaluation/utils.py @@ -52,7 +52,10 @@ def _filter_valid_results( return [ res for res in results ...
ESMCI__cime-4035
cheyenne needs a module load python Now that we require python 3.5+, we need to do a module load python on cheyenne. The lack of this module load is responsible for a failure in `J_TestCreateNewcase.test_f_createnewcase_with_user_compset` if you run the whole `J_TestCreateNewcase` suite, and may cause other problems...
[ { "content": "\"\"\"\nEncapsulate the importing of python utils and logging setup, things\nthat every script should do.\n\"\"\"\n# pylint: disable=unused-import\n\nimport sys, os\nimport __main__ as main\n_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), \"..\",\"..\")\n_LIB_DIR = os.path.joi...
[ { "content": "\"\"\"\nEncapsulate the importing of python utils and logging setup, things\nthat every script should do.\n\"\"\"\n# pylint: disable=unused-import\n\nimport sys, os\nimport __main__ as main\n_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), \"..\",\"..\")\n_LIB_DIR = os.path.joi...
diff --git a/config/cesm/machines/config_machines.xml b/config/cesm/machines/config_machines.xml index da05b3f4a59..70d92bcd2f2 100644 --- a/config/cesm/machines/config_machines.xml +++ b/config/cesm/machines/config_machines.xml @@ -561,6 +561,7 @@ This allows using a different mpirun command to launch unit tests ...
python-poetry__poetry-277
Discrepancy regarding license between doc and poetry init <!-- Hi there! Thank you for discovering and submitting an issue. Before you submit this; let's make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill these first. --> <!--...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport re\n\nfrom typing import List\nfrom typing import Tuple\n\nfrom .command import Command\nfrom .venv_command import VenvCommand\n\n\nclass InitCommand(Command):\n \"\"\"\n Creates a basic <comment>pyproject.toml</> fil...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport re\n\nfrom typing import List\nfrom typing import Tuple\n\nfrom .command import Command\nfrom .venv_command import VenvCommand\n\n\nclass InitCommand(Command):\n \"\"\"\n Creates a basic <comment>pyproject.toml</> fil...
diff --git a/poetry/console/commands/init.py b/poetry/console/commands/init.py index e3550d623b2..5bc12869eef 100644 --- a/poetry/console/commands/init.py +++ b/poetry/console/commands/init.py @@ -296,7 +296,8 @@ def _validate_author(self, author, default): def _validate_license(self, license): from poetr...
sublimelsp__LSP-920
Empty initializationOptions is not sent # Problem If the `initializationOptions` is an empty dict, it won't be sent to the server. ```js // this is not sent "initializationOptions": {}, ``` Some servers (such as [vscode-css-languageserver](https://github.com/vscode-langservers/vscode-css-languageserver)) need...
[ { "content": "from .logging import debug\nfrom .process import start_server\nfrom .protocol import completion_item_kinds, symbol_kinds, WorkspaceFolder, Request, Notification\nfrom .protocol import TextDocumentSyncKindNone\nfrom .rpc import Client, attach_stdio_client, Response\nfrom .settings import settings a...
[ { "content": "from .logging import debug\nfrom .process import start_server\nfrom .protocol import completion_item_kinds, symbol_kinds, WorkspaceFolder, Request, Notification\nfrom .protocol import TextDocumentSyncKindNone\nfrom .rpc import Client, attach_stdio_client, Response\nfrom .settings import settings a...
diff --git a/plugin/core/sessions.py b/plugin/core/sessions.py index 89a836dda..fae375fc6 100644 --- a/plugin/core/sessions.py +++ b/plugin/core/sessions.py @@ -85,7 +85,7 @@ def get_initialize_params(workspace_folders: List[WorkspaceFolder], designated_f } } } - if config.init_options: + ...
openfun__richie-290
Person plugin form list every pages, not only Person pages ## Bug Report **Expected behavior/code** Select box in PersonPlugin form should list only extended page with Person model. **Actual Behavior** Currently the select box is listing every CMS pages. **Steps to Reproduce** 1. Edit a page; 2. Try to add...
[ { "content": "\"\"\"\nDeclare and configure the model for the person application\n\"\"\"\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom cms.api import Page\nfrom cms.extensions import PageExtension\nfrom cms.models.pluginmodel import CMSPlugin\nfrom parler.models ...
[ { "content": "\"\"\"\nDeclare and configure the model for the person application\n\"\"\"\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom cms.api import Page\nfrom cms.extensions import PageExtension\nfrom cms.models.pluginmodel import CMSPlugin\nfrom parler.models ...
diff --git a/sandbox/static/css/main.css b/sandbox/static/css/main.css new file mode 100644 index 0000000000..615a3b59b5 --- /dev/null +++ b/sandbox/static/css/main.css @@ -0,0 +1,2593 @@ +/* local */ +/*! + * Bootstrap Reboot v4.1.1 (https://getbootstrap.com/) + * Copyright 2011-2018 The Bootstrap Authors + * Copyrigh...
wagtail__wagtail-8473
"Sort menu order" button even with missing permissions ### Issue Summary Currently, the "Sort menu order"-button in the "more buttons"-dropdown is shown to users, which aren't allowed to change the order. Normally that's not a big issue, because clicking the link, which appends `?ordering=ord`, doesn't allow the use...
[ { "content": "from django.conf import settings\nfrom django.contrib.auth.models import Permission\nfrom django.urls import reverse\nfrom django.utils.http import urlencode\nfrom django.utils.translation import gettext\nfrom django.utils.translation import gettext_lazy as _\nfrom draftjs_exporter.dom import DOM\...
[ { "content": "from django.conf import settings\nfrom django.contrib.auth.models import Permission\nfrom django.urls import reverse\nfrom django.utils.http import urlencode\nfrom django.utils.translation import gettext\nfrom django.utils.translation import gettext_lazy as _\nfrom draftjs_exporter.dom import DOM\...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ec819eb63d47..e65aee9ea34b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -35,6 +35,7 @@ Changelog * Fix: Ensure that custom document or image models support custom tag models (Matt Westcott) * Fix: Ensure comments use translated values for their placeholder text ...
gammapy__gammapy-5237
`plot_regions` fails when using linewidth with a `PointSpatialModel` and extended spatial model **Gammapy version** gammapy v1.2 **Bug description** When utilising `plot_regions` to plot different models, if a `PointSpatialModel` is included it somehow tries to include some of the `**kwargs` instead of only utili...
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport logging as log\nimport numpy as np\nfrom scipy.interpolate import CubicSpline\nfrom scipy.optimize import curve_fit\nfrom scipy.stats import norm\nfrom astropy.visualization import make_lupton_rgb\nimport matplotlib.axes as ma...
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport logging as log\nimport numpy as np\nfrom scipy.interpolate import CubicSpline\nfrom scipy.optimize import curve_fit\nfrom scipy.stats import norm\nfrom astropy.visualization import make_lupton_rgb\nimport matplotlib.axes as ma...
diff --git a/gammapy/modeling/models/tests/test_core.py b/gammapy/modeling/models/tests/test_core.py index 94924686e8..682250c642 100644 --- a/gammapy/modeling/models/tests/test_core.py +++ b/gammapy/modeling/models/tests/test_core.py @@ -215,7 +215,7 @@ def test_plot_models(caplog): models = Models.read("$GAMMAPY...
microsoft__DeepSpeed-4160
[REQUEST] Handle SIGTERM Command deepspeed can catch SIGINT and stop the subprocess ([code](https://github.com/microsoft/DeepSpeed/blob/master/deepspeed/launcher/runner.py#L580)). In Kubernetes, kubelet sends process SIGTERM, which is not handled by deepspeed, before closing a container. If deepspeed can handle SIGT...
[ { "content": "# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\"\"\"\nDeepSpeed runner is the main front-end to launching multi-worker\ntraining jobs with DeepSpeed. By default this uses pdsh to parallel\nssh into multiple worker nodes and launch all the necess...
[ { "content": "# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\"\"\"\nDeepSpeed runner is the main front-end to launching multi-worker\ntraining jobs with DeepSpeed. By default this uses pdsh to parallel\nssh into multiple worker nodes and launch all the necess...
diff --git a/deepspeed/launcher/runner.py b/deepspeed/launcher/runner.py index aa7714bfa0b7..60bce75aeebd 100755 --- a/deepspeed/launcher/runner.py +++ b/deepspeed/launcher/runner.py @@ -578,6 +578,7 @@ def sigkill_handler(signum, frame): if args.launcher == PDSH_LAUNCHER and multi_node_exec: signal.sig...
comic__grand-challenge.org-954
Replace pipenv with poetry Pipenv development seems to have stalled and there are several bugs that I'm not convinced will be fixed anytime soon, we should migrate to poetry.
[ { "content": "import glob\nimport os\nimport re\nimport uuid\nfrom datetime import timedelta\nfrom distutils.util import strtobool as strtobool_i\n\nimport sentry_sdk\nfrom corsheaders.defaults import default_headers\nfrom django.contrib.messages import constants as messages\nfrom django.core.exceptions import ...
[ { "content": "import glob\nimport os\nimport re\nimport uuid\nfrom datetime import timedelta\nfrom distutils.util import strtobool as strtobool_i\n\nimport sentry_sdk\nfrom corsheaders.defaults import default_headers\nfrom django.contrib.messages import constants as messages\nfrom django.core.exceptions import ...
diff --git a/.python-version b/.python-version new file mode 100644 index 0000000000..aaf18d2948 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.7.5 diff --git a/Pipfile b/Pipfile deleted file mode 100644 index 3b9c659f50..0000000000 --- a/Pipfile +++ /dev/null @@ -1,63 +0,0 @@ -[[source]] -verify_ssl = true -url ...
pre-commit__pre-commit-1254
Running `pre-commit` 1.20.0 on Guix gives server certificate verification failed. CAfile: none CRLfile: none Running `pre-commit` 1.20.0 on Guix gives ``` An unexpected error has occurred: CalledProcessError: Command: ('/home/igankevich/.guix-profile/bin/git', 'fetch', 'origin', '--tags') Return code: 128 Expecte...
[ { "content": "from __future__ import unicode_literals\n\nimport logging\nimport os.path\nimport sys\n\nfrom pre_commit.util import cmd_output\nfrom pre_commit.util import cmd_output_b\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef zsplit(s):\n s = s.strip('\\0')\n if s:\n return s.split('\\0')\...
[ { "content": "from __future__ import unicode_literals\n\nimport logging\nimport os.path\nimport sys\n\nfrom pre_commit.util import cmd_output\nfrom pre_commit.util import cmd_output_b\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef zsplit(s):\n s = s.strip('\\0')\n if s:\n return s.split('\\0')\...
diff --git a/pre_commit/git.py b/pre_commit/git.py index 3ee9ca3af..c8faf60f7 100644 --- a/pre_commit/git.py +++ b/pre_commit/git.py @@ -32,7 +32,7 @@ def no_git_env(_env=None): return { k: v for k, v in _env.items() if not k.startswith('GIT_') or - k in {'GIT_EXEC_PATH', 'GIT_SSH', 'GIT_S...
Pylons__pyramid-2226
Update to Sphinx 1.3.4 when released There is a [bug in Sphinx 1.3.3 and 1.3.1](https://github.com/sphinx-doc/sphinx/issues/2189) (I haven't tried 1.3.2) where next and previous links in Sphinx documentation are broken when going into children and across sibling directories. When 1.3.4 is released, we need to pin sphi...
[ { "content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ...
[ { "content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ...
diff --git a/setup.py b/setup.py index 60502548e1..87e8ed0f05 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ tests_require.append('zope.component>=3.11.0') docs_extras = [ - 'Sphinx >= 1.3.1', + 'Sphinx >= 1.3.4', 'docutils', 'repoze.sphinx.autointerface', 'pylons_sphinx_latesturl',...
blaze__blaze-872
Truncate column name is too verbose Do we have to have a unique name for the result of such operations? How about having it renamed to the unit, i.e. instead of `when_datetimetruncate` we use `when_day` or `when_week`, etc?
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom .expressions import Expr, ElemWise\nfrom datashape import dshape, Record, DataShape, Unit, Option, date_, datetime_\nimport datashape\n\n__all__ = ['DateTime', 'Date', 'date', 'Year', 'year', 'Month', 'month', 'Day',\n ...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom .expressions import Expr, ElemWise\nfrom datashape import dshape, Record, DataShape, Unit, Option, date_, datetime_\nimport datashape\n\n__all__ = ['DateTime', 'Date', 'date', 'Year', 'year', 'Month', 'month', 'Day',\n ...
diff --git a/blaze/expr/datetime.py b/blaze/expr/datetime.py index 7864688bc..0a0399df0 100644 --- a/blaze/expr/datetime.py +++ b/blaze/expr/datetime.py @@ -135,6 +135,10 @@ def _dtype(self): else: return datashape.datetime_ + @property + def _name(self): + return self._child._name ...
aio-libs__aiohttp-1989
Deprecate app.on_loop_available signal From my understanding on `app.on_startup` the loop is already present. Why do we need additional signal? `app.on_loop_available` is not documented BTW @fafhrd91 ?
[ { "content": "import asyncio\nimport os\nimport signal\nimport socket\nimport stat\nimport sys\nimport warnings\nfrom argparse import ArgumentParser\nfrom collections import Iterable, MutableMapping\nfrom importlib import import_module\n\nfrom yarl import URL\n\nfrom . import (hdrs, web_exceptions, web_fileresp...
[ { "content": "import asyncio\nimport os\nimport signal\nimport socket\nimport stat\nimport sys\nimport warnings\nfrom argparse import ArgumentParser\nfrom collections import Iterable, MutableMapping\nfrom importlib import import_module\n\nfrom yarl import URL\n\nfrom . import (hdrs, web_exceptions, web_fileresp...
diff --git a/CHANGES.rst b/CHANGES.rst index 71c8722c22c..2225241cb55 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -36,6 +36,14 @@ Changes - Fix BadStatusLine caused by extra `CRLF` after `POST` data #1792 +- + +- Deprecate undocumented app.on_loop_available signal #1978 + +- + +- + 2.1.0 (2017-05-26) -------...
saulpw__visidata-1310
[v2.9dev] Disable adding new row in DirSheet **Small description** Unless used, `add-row` should probably be disabled on DirSheet as it creates an error **Expected result** A warning to be shown to the user that a new row/file cannot be created. **Actual result with screenshot** ![image](https://user-images.gi...
[ { "content": "import os\nimport shutil\nimport stat\nimport subprocess\nimport contextlib\ntry:\n import pwd\n import grp\nexcept ImportError:\n pass # pwd,grp modules not available on Windows\n\nfrom visidata import Column, Sheet, LazyComputeRow, asynccache, BaseSheet, vd\nfrom visidata import Path, E...
[ { "content": "import os\nimport shutil\nimport stat\nimport subprocess\nimport contextlib\ntry:\n import pwd\n import grp\nexcept ImportError:\n pass # pwd,grp modules not available on Windows\n\nfrom visidata import Column, Sheet, LazyComputeRow, asynccache, BaseSheet, vd\nfrom visidata import Path, E...
diff --git a/visidata/shell.py b/visidata/shell.py index b60be51d1..ce43a6d55 100644 --- a/visidata/shell.py +++ b/visidata/shell.py @@ -151,6 +151,9 @@ def removeFile(self, path): def deleteSourceRow(self, r): self.removeFile(r) + def newRow(self): + vd.fail('new file not supported') + d...
holoviz__panel-1775
Pyvista tests breaking Looks like latest pyvista 0.27.2 changed some internal APIs: ```python def pyvista_render_window(): """ Allow to download and create a more complex example easily """ from pyvista import examples sphere = pv.Sphere() #test actor globe ...
[ { "content": "#!/usr/bin/env python\n\nimport os\nimport shutil\nimport sys\nimport json\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.develop import develop\nfrom setuptools.command.install import install\nfrom setuptools.command.sdist import sdist\n\nimport pyct.build\n\n\ndef get_se...
[ { "content": "#!/usr/bin/env python\n\nimport os\nimport shutil\nimport sys\nimport json\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.develop import develop\nfrom setuptools.command.install import install\nfrom setuptools.command.sdist import sdist\n\nimport pyct.build\n\n\ndef get_se...
diff --git a/panel/tests/pane/test_vtk.py b/panel/tests/pane/test_vtk.py index 6b65da9fdf..0fffbfd495 100644 --- a/panel/tests/pane/test_vtk.py +++ b/panel/tests/pane/test_vtk.py @@ -68,7 +68,8 @@ def pyvista_render_window(): uniform = examples.load_uniform() #test structured grid scalars=sphere.points[:, 2...
cloud-custodian__cloud-custodian-5544
aws - add usgs additional partitions iso and isob are currently missing, its unclear if boto3 has support for them out of the box, golang and nodejs sdks do.
[ { "content": "# Copyright 2015-2017 Capital One Services, 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 requi...
[ { "content": "# Copyright 2015-2017 Capital One Services, 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 requi...
diff --git a/c7n/utils.py b/c7n/utils.py index f52edc195db..c2a324d87d2 100644 --- a/c7n/utils.py +++ b/c7n/utils.py @@ -327,7 +327,9 @@ def parse_s3(s3_path): 'us-gov-east-1': 'aws-us-gov', 'us-gov-west-1': 'aws-us-gov', 'cn-north-1': 'aws-cn', - 'cn-northwest-1': 'aws-cn' + 'cn-northwest-1': 'aws...
flairNLP__flair-435
Cannot install allennlp due to matplotlib dependency conflict Hello, thanks for the great package. I want to play with ELMoEmbeddings, which requires package allennlp, not installed by default with Flair. However, installing latest allennlp fails because it requires matplotlib==2.2.3, while Flair requires >=3.0.0. When...
[ { "content": "from setuptools import setup, find_packages\n\nsetup(\n name='flair',\n version='0.4.0',\n description='A very simple framework for state-of-the-art NLP',\n long_description=open(\"README.md\", encoding='utf-8').read(),\n long_description_content_type=\"text/markdown\",\n author=...
[ { "content": "from setuptools import setup, find_packages\n\nsetup(\n name='flair',\n version='0.4.0',\n description='A very simple framework for state-of-the-art NLP',\n long_description=open(\"README.md\", encoding='utf-8').read(),\n long_description_content_type=\"text/markdown\",\n author=...
diff --git a/requirements.txt b/requirements.txt index 2329957afb..9cee3472c7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ gensim>=3.4.0 pytest>=3.6.4 tqdm>=4.26.0 segtok>=1.5.7 -matplotlib>=3.0.0 +matplotlib>=2.2.3 mpld3==0.3 sklearn sqlitedict>=1.6.0 diff --git a/setup.py b/setup.py inde...
dask__distributed-3910
Variables leak virtual clients **What happened**: ```python def _get_number_of_clients(dask_scheduler: Optional[Scheduler] = None) -> Optional[int]: if dask_scheduler is None: return None else: return len(dask_scheduler.clients) n_clients1 = client.run_on_scheduler(_get_number_of_clie...
[ { "content": "import asyncio\nfrom collections import defaultdict\nfrom contextlib import suppress\nimport logging\nimport uuid\n\nfrom tlz import merge\n\nfrom .client import Future, Client\nfrom .utils import tokey, log_errors, TimeoutError, parse_timedelta\nfrom .worker import get_client\n\nlogger = logging....
[ { "content": "import asyncio\nfrom collections import defaultdict\nfrom contextlib import suppress\nimport logging\nimport uuid\n\nfrom tlz import merge\n\nfrom .client import Future, Client\nfrom .utils import tokey, log_errors, TimeoutError, parse_timedelta\nfrom .worker import get_client\n\nlogger = logging....
diff --git a/distributed/tests/test_variable.py b/distributed/tests/test_variable.py index 1e707626235..5d9ece6ee54 100644 --- a/distributed/tests/test_variable.py +++ b/distributed/tests/test_variable.py @@ -263,3 +263,22 @@ def test_future_erred_sync(client): with pytest.raises(ZeroDivisionError): fut...
weni-ai__bothub-engine-226
Training with no sentences Reported by @johncordeiro in https://github.com/Ilhasoft/bothub/issues/36
[ { "content": "import uuid\nimport base64\nimport requests\n\nfrom functools import reduce\nfrom django.db import models\nfrom django.utils.translation import gettext as _\nfrom django.utils import timezone\nfrom django.conf import settings\nfrom django.core.validators import RegexValidator, _lazy_re_compile\nfr...
[ { "content": "import uuid\nimport base64\nimport requests\n\nfrom functools import reduce\nfrom django.db import models\nfrom django.utils.translation import gettext as _\nfrom django.utils import timezone\nfrom django.conf import settings\nfrom django.core.validators import RegexValidator, _lazy_re_compile\nfr...
diff --git a/bothub/common/models.py b/bothub/common/models.py index ac4eab27..74711b74 100644 --- a/bothub/common/models.py +++ b/bothub/common/models.py @@ -481,6 +481,9 @@ def ready_for_train(self): not self.deleted.exists(): return False + if self.examples.count() == 0: + ...
fail2ban__fail2ban-2057
badips.py should use https Hi, What about asking `badips.py` to use https ? I think the following : `_badips = "http://www.badips.com"` Would just have to be changed to : `_badips = "https://www.badips.com"` Thank you 👍 Ben
[ { "content": "# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-\n# vi: set ft=python sts=4 ts=4 sw=4 noet :\n\n# This file is part of Fail2Ban.\n#\n# Fail2Ban 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# ...
[ { "content": "# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-\n# vi: set ft=python sts=4 ts=4 sw=4 noet :\n\n# This file is part of Fail2Ban.\n#\n# Fail2Ban 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# ...
diff --git a/ChangeLog b/ChangeLog index 4bee628855..b16827a2e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -44,6 +44,7 @@ ver. 0.10.3-dev-1 (20??/??/??) - development edition * possibility to specify own regex-pattern to match epoch date-time, e. g. `^\[{EPOCH}\]` or `^\[{LEPOCH}\]` (gh-2038); the epoch-pattern simi...
Pylons__pyramid-2225
Update to Sphinx 1.3.4 when released There is a [bug in Sphinx 1.3.3 and 1.3.1](https://github.com/sphinx-doc/sphinx/issues/2189) (I haven't tried 1.3.2) where next and previous links in Sphinx documentation are broken when going into children and across sibling directories. When 1.3.4 is released, we need to pin sphi...
[ { "content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ...
[ { "content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ...
diff --git a/setup.py b/setup.py index b1624291b8..7d308f35d6 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ tests_require.append('zope.component>=3.11.0') docs_extras = [ - 'Sphinx >= 1.3.1', + 'Sphinx >= 1.3.4', 'docutils', 'repoze.sphinx.autointerface', 'pylons_sphinx_latesturl',...
Pylons__pyramid-2224
Update to Sphinx 1.3.4 when released There is a [bug in Sphinx 1.3.3 and 1.3.1](https://github.com/sphinx-doc/sphinx/issues/2189) (I haven't tried 1.3.2) where next and previous links in Sphinx documentation are broken when going into children and across sibling directories. When 1.3.4 is released, we need to pin sphi...
[ { "content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ...
[ { "content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ...
diff --git a/setup.py b/setup.py index 9bdfcd90ed..daccd32587 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ tests_require.append('zope.component>=3.11.0') docs_extras = [ - 'Sphinx >= 1.3.1', + 'Sphinx >= 1.3.4', 'docutils', 'repoze.sphinx.autointerface', 'pylons_sphinx_latesturl',...
google__openhtf-870
'module' object has no attribute 'MIMETYPE_MAP' - station_server.py I have openHTF installed in two locations but I only get this error on one of them (The newer one I installed today. I installed from source). I try running `frontend_example.py`, and this is the error I get: ``` Traceback (most recent call last): ...
[ { "content": "\"\"\"Serves an Angular frontend and information about a running OpenHTF test.\n\nThis server does not currently support more than one test running in the same\nprocess. However, the dashboard server (dashboard_server.py) can be used to\naggregate info from multiple station servers with a single f...
[ { "content": "\"\"\"Serves an Angular frontend and information about a running OpenHTF test.\n\nThis server does not currently support more than one test running in the same\nprocess. However, the dashboard server (dashboard_server.py) can be used to\naggregate info from multiple station servers with a single f...
diff --git a/openhtf/output/servers/station_server.py b/openhtf/output/servers/station_server.py index 1554a5e56..fe20bb2bb 100644 --- a/openhtf/output/servers/station_server.py +++ b/openhtf/output/servers/station_server.py @@ -32,9 +32,6 @@ STATION_SERVER_TYPE = 'station' -MIMETYPE_REVERSE_MAP = { - v: k for ...
scikit-hep__pyhf-895
Docs build broken with Sphinx v3.1.0 # Description Today (2020-06-08) [Sphinx `v3.1.0`](https://github.com/sphinx-doc/sphinx/releases/tag/v3.1.0) was released which now classifies pyhf's particular usages of the "autoclass" directive as an Error in the docs generated for [`interpolators/code0.py`](https://github.com...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'tensorflow': ['tensorflow~=2.0', 'tensorflow-probability~=0.8'],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax~=0.1,>0.1.51', 'jaxlib~=0.1,>0.1.33'],\n 'xmlio': ['uproot'],\n 'minuit': ['iminuit'],\n}\nextras_require['backends'] = so...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'tensorflow': ['tensorflow~=2.0', 'tensorflow-probability~=0.8'],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax~=0.1,>0.1.51', 'jaxlib~=0.1,>0.1.33'],\n 'xmlio': ['uproot'],\n 'minuit': ['iminuit'],\n}\nextras_require['backends'] = so...
diff --git a/setup.py b/setup.py index 78b99aa700..1302abb3c2 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ extras_require['docs'] = sorted( set( [ - 'sphinx', + 'sphinx!=3.1.0', 'sphinxcontrib-bibtex', 'sphinx-click', 'sphinx_rtd_them...
psf__black-2665
py310 match: one-line case breaks **Describe the bug** In `python3.10` the `case` black can be written in the same line as the `case` keyword. However, this breaks `black`. **To Reproduce** Take this example code ```python # example.py x = 5 match x: case 5: print("it works") ``` It runs under `python3....
[ { "content": "\"\"\"\nblib2to3 Node/Leaf transformation-related utility functions.\n\"\"\"\n\nimport sys\nfrom typing import (\n Collection,\n Generic,\n Iterator,\n List,\n Optional,\n Set,\n Tuple,\n TypeVar,\n Union,\n)\n\nif sys.version_info >= (3, 8):\n from typing import Fina...
[ { "content": "\"\"\"\nblib2to3 Node/Leaf transformation-related utility functions.\n\"\"\"\n\nimport sys\nfrom typing import (\n Collection,\n Generic,\n Iterator,\n List,\n Optional,\n Set,\n Tuple,\n TypeVar,\n Union,\n)\n\nif sys.version_info >= (3, 8):\n from typing import Fina...
diff --git a/CHANGES.md b/CHANGES.md index 59042914174..c9a4f09a72a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -13,6 +13,7 @@ `match a, *b:` (#2639) (#2659) - Fix `match`/`case` statements that contain `match`/`case` soft keywords multiple times, like `match re.match()` (#2661) +- Fix `case` statements with an ...
pypa__pipenv-505
Allow file:// uris as pipenv paths - Any reason not to? - PR incoming
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport hashlib\nimport tempfile\n\nfrom piptools.resolver import Resolver\nfrom piptools.repositories.pypi import PyPIRepository\nfrom piptools.scripts.compile import get_pip_command\nfrom piptools import logging\n\nimport requests\nimport parse\nimport pip\nimp...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport hashlib\nimport tempfile\n\nfrom piptools.resolver import Resolver\nfrom piptools.repositories.pypi import PyPIRepository\nfrom piptools.scripts.compile import get_pip_command\nfrom piptools import logging\n\nimport requests\nimport parse\nimport pip\nimp...
diff --git a/pipenv/utils.py b/pipenv/utils.py index b81e35d0a4..59423a3a03 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -15,7 +15,7 @@ # List of version control systems we support. VCS_LIST = ('git', 'svn', 'hg', 'bzr') -FILE_LIST = ('http://', 'https://', 'ftp://') +FILE_LIST = ('http://', 'https://', 'f...
Gallopsled__pwntools-244
`pwnlib.tubes.tube.recvrepeat()` and `pwnlib.tubes.tube.recvall()` should never raise `EOFError` If the connection is closed while calling these functions, we should simply return the received data.
[ { "content": "# -*- coding: utf-8 -*-\nfrom .buffer import Buffer\nfrom .timeout import Timeout\nfrom .. import context, term, atexit\nfrom ..util import misc, fiddling\nfrom ..context import context\nimport re, threading, sys, time, subprocess, logging, string\n\nlog = logging.getLogger(__name__)\n\nclass tube...
[ { "content": "# -*- coding: utf-8 -*-\nfrom .buffer import Buffer\nfrom .timeout import Timeout\nfrom .. import context, term, atexit\nfrom ..util import misc, fiddling\nfrom ..context import context\nimport re, threading, sys, time, subprocess, logging, string\n\nlog = logging.getLogger(__name__)\n\nclass tube...
diff --git a/pwnlib/tubes/tube.py b/pwnlib/tubes/tube.py index c5b597049..9affd498a 100644 --- a/pwnlib/tubes/tube.py +++ b/pwnlib/tubes/tube.py @@ -594,7 +594,10 @@ def recvrepeat(self, timeout = None): 'd' """ - while self._fillbuffer(timeout=timeout): + try: + while s...
conan-io__conan-6333
[bug] New warning in python 3.8 makes some tests fail (line buffering isn't supported in binary mode) <!-- Please don't forget to update the issue title. Include all applicable information to help us reproduce your problem. To help us debug your issue please explain: --> ### Environment Details (include ...
[ { "content": "import os\nimport platform\nimport re\nfrom subprocess import PIPE, Popen, STDOUT\n\nfrom conans.client.output import Color\nfrom conans.client.tools import detected_os, OSInfo\nfrom conans.client.tools.win import latest_visual_studio_version_installed\nfrom conans.model.version import Version\n\n...
[ { "content": "import os\nimport platform\nimport re\nfrom subprocess import PIPE, Popen, STDOUT\n\nfrom conans.client.output import Color\nfrom conans.client.tools import detected_os, OSInfo\nfrom conans.client.tools.win import latest_visual_studio_version_installed\nfrom conans.model.version import Version\n\n...
diff --git a/conans/client/conf/detect.py b/conans/client/conf/detect.py index 1b3310d6e2f..de0b8601f72 100644 --- a/conans/client/conf/detect.py +++ b/conans/client/conf/detect.py @@ -10,7 +10,8 @@ def _execute(command): - proc = Popen(command, shell=True, bufsize=1, stdout=PIPE, stderr=STDOUT) + proc = Pop...
dotkom__onlineweb4-973
Add appKom to list of committees in dashboard view AppKom is missing as a committee in the dashboard view. Users can't add a position in that committee. ![screen shot 2014-09-30 at 02 33 48](https://cloud.githubusercontent.com/assets/582580/4451680/c20b1420-4839-11e4-8dfc-b52969d8481c.png)
[ { "content": "# -*- coding: utf-8 -*-\n\nimport datetime\nimport socket\nimport urllib\nimport hashlib\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AbstractUser\nfrom django.db import models\nfrom django.utils.translation import ugettext as _\nfrom django.utils import timezone\nfr...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport datetime\nimport socket\nimport urllib\nimport hashlib\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AbstractUser\nfrom django.db import models\nfrom django.utils.translation import ugettext as _\nfrom django.utils import timezone\nfr...
diff --git a/apps/authentication/models.py b/apps/authentication/models.py index 101fa474f..f407da014 100644 --- a/apps/authentication/models.py +++ b/apps/authentication/models.py @@ -51,6 +51,7 @@ ('prokom', _(u'Profil-og aviskomiteen')), ('trikom', _(u'Trivselskomiteen')), ('velkom', _(u'Velkomstkomit...
getmoto__moto-431
SQS MD5 Hashing Issues I've started using Moto as a standalone server to aid testing a PHP stack. I've discovered that once I create a message which contains encapsulated (escaped) JSON - it starts to fail with the AWS PHP SDK, although it works fine with Boto2. The issue appears to be in and around the calculation o...
[ { "content": "from __future__ import unicode_literals\n\nimport hashlib\nimport time\nimport re\nfrom xml.sax.saxutils import escape\n\nimport boto.sqs\n\nfrom moto.core import BaseBackend\nfrom moto.core.utils import camelcase_to_underscores, get_random_message_id\nfrom .utils import generate_receipt_handle, u...
[ { "content": "from __future__ import unicode_literals\n\nimport hashlib\nimport time\nimport re\nfrom xml.sax.saxutils import escape\n\nimport boto.sqs\n\nfrom moto.core import BaseBackend\nfrom moto.core.utils import camelcase_to_underscores, get_random_message_id\nfrom .utils import generate_receipt_handle, u...
diff --git a/moto/sqs/models.py b/moto/sqs/models.py index bc0a5a4c610c..efb75dd9c40e 100644 --- a/moto/sqs/models.py +++ b/moto/sqs/models.py @@ -34,7 +34,7 @@ def __init__(self, message_id, body): @property def md5(self): body_md5 = hashlib.md5() - body_md5.update(self.body.encode('utf-8')) ...
incuna__django-pgcrypto-fields-78
EmailPGPPublicKeyField does not use the correct mixin As defined in https://github.com/incuna/django-pgcrypto-fields/blob/master/pgcrypto/fields.py#L41 `EmailPGPPublicKeyField` uses the `PGPSymmetricKeyFieldMixin` mixin instead of the `PGPPublicKeyFieldMixin` one.
[ { "content": "from django.db import models\n\nfrom pgcrypto import (\n DIGEST_SQL,\n HMAC_SQL,\n PGP_PUB_ENCRYPT_SQL_WITH_NULLIF,\n PGP_SYM_ENCRYPT_SQL_WITH_NULLIF,\n)\nfrom pgcrypto.lookups import (\n HashLookup,\n)\nfrom pgcrypto.mixins import (\n DecimalPGPFieldMixin,\n get_setting,\n ...
[ { "content": "from django.db import models\n\nfrom pgcrypto import (\n DIGEST_SQL,\n HMAC_SQL,\n PGP_PUB_ENCRYPT_SQL_WITH_NULLIF,\n PGP_SYM_ENCRYPT_SQL_WITH_NULLIF,\n)\nfrom pgcrypto.lookups import (\n HashLookup,\n)\nfrom pgcrypto.mixins import (\n DecimalPGPFieldMixin,\n get_setting,\n ...
diff --git a/pgcrypto/fields.py b/pgcrypto/fields.py index af9f201..a05d553 100644 --- a/pgcrypto/fields.py +++ b/pgcrypto/fields.py @@ -38,7 +38,7 @@ class TextHMACField(HashMixin, models.TextField): TextHMACField.register_lookup(HashLookup) -class EmailPGPPublicKeyField(PGPSymmetricKeyFieldMixin, models.EmailFie...
Kinto__kinto-885
Crash when querystring contains null character ``` python Python 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import requests >>> requests.get(u"http://localhost:8888/v1/buckets?_since=\u0000", auth=("user","pass")) <R...
[ { "content": "import ast\nimport hashlib\nimport hmac\nimport jsonpatch\nimport os\nimport re\nimport six\nimport threading\nimport time\nfrom base64 import b64decode, b64encode\nfrom binascii import hexlify\nfrom six.moves.urllib import parse as urlparse\nfrom enum import Enum\n\n# ujson is not installable wit...
[ { "content": "import ast\nimport hashlib\nimport hmac\nimport jsonpatch\nimport os\nimport re\nimport six\nimport threading\nimport time\nfrom base64 import b64decode, b64encode\nfrom binascii import hexlify\nfrom six.moves.urllib import parse as urlparse\nfrom enum import Enum\n\n# ujson is not installable wit...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c8234d0f4..c2c39f8b0 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -19,6 +19,7 @@ This document describes changes between each past release. **Bug fixes** - Fixed showing of backend type twice in StatsD backend keys (fixes #857) +- Fix crash when querystring para...
celery__celery-8650
Celery exit with non-zero code after Warm Shutdown in Celery 5.3.x ### Discussed in https://github.com/celery/celery/discussions/8539 <div type='discussions-op-text'> <sup>Originally posted by **cinesia** September 27, 2023</sup> We upgraded recently **celery** from **5.2.7** to **5.3.4** and something changed i...
[ { "content": "\"\"\"Worker remote control command implementations.\"\"\"\nimport io\nimport tempfile\nfrom collections import UserDict, defaultdict, namedtuple\n\nfrom billiard.common import TERM_SIGNAME\nfrom kombu.utils.encoding import safe_repr\n\nfrom celery.exceptions import WorkerShutdown\nfrom celery.pla...
[ { "content": "\"\"\"Worker remote control command implementations.\"\"\"\nimport io\nimport tempfile\nfrom collections import UserDict, defaultdict, namedtuple\n\nfrom billiard.common import TERM_SIGNAME\nfrom kombu.utils.encoding import safe_repr\n\nfrom celery.exceptions import WorkerShutdown\nfrom celery.pla...
diff --git a/celery/worker/control.py b/celery/worker/control.py index 41d059e4116..8cbd92cbd0e 100644 --- a/celery/worker/control.py +++ b/celery/worker/control.py @@ -580,7 +580,7 @@ def autoscale(state, max=None, min=None): def shutdown(state, msg='Got shutdown from remote', **kwargs): """Shutdown worker(s).""...
google__osv.dev-731
Missing HTML escaping in advisory description See https://osv.dev/vulnerability/GHSA-prc3-vjfx-vhm9 for example, the XSS example is actually interpreted as HTML and breaks the page.
[ { "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/gcp/appengine/frontend_handlers.py b/gcp/appengine/frontend_handlers.py index fa89259ea86..810f3bbe70e 100644 --- a/gcp/appengine/frontend_handlers.py +++ b/gcp/appengine/frontend_handlers.py @@ -403,7 +403,8 @@ def group_versions(versions): def markdown(text): """Render markdown.""" if text: - r...