in_source_id
stringlengths
13
58
issue
stringlengths
3
241k
before_files
listlengths
0
3
after_files
listlengths
0
3
pr_diff
stringlengths
109
107M
scrapy__scrapy-1735
KeyError in robotstxt middleware I'm getting these errors in robots.txt middleware: ``` 2016-01-27 16:18:21 [scrapy.core.scraper] ERROR: Error downloading <GET http://yellowpages.co.th> Traceback (most recent call last): File "/Users/kmike/envs/scraping/lib/python2.7/site-packages/twisted/internet/defer.py", line 15...
[ { "content": "\"\"\"\nThis is a middleware to respect robots.txt policies. To activate it you must\nenable this middleware and enable the ROBOTSTXT_OBEY setting.\n\n\"\"\"\n\nimport logging\n\nfrom six.moves.urllib import robotparser\n\nfrom twisted.internet.defer import Deferred, maybeDeferred\nfrom scrapy.exc...
[ { "content": "\"\"\"\nThis is a middleware to respect robots.txt policies. To activate it you must\nenable this middleware and enable the ROBOTSTXT_OBEY setting.\n\n\"\"\"\n\nimport logging\n\nfrom six.moves.urllib import robotparser\n\nfrom twisted.internet.defer import Deferred, maybeDeferred\nfrom scrapy.exc...
diff --git a/scrapy/downloadermiddlewares/robotstxt.py b/scrapy/downloadermiddlewares/robotstxt.py index c061c240777..6fdba90cc7d 100644 --- a/scrapy/downloadermiddlewares/robotstxt.py +++ b/scrapy/downloadermiddlewares/robotstxt.py @@ -101,4 +101,6 @@ def _parse_robots(self, response, netloc): rp_dfd.callback...
apache__airflow-28730
CSRF token should be expire with session ### Apache Airflow version 2.5.0 ### What happened In the default configuration, the CSRF token [expires in one hour](https://pythonhosted.org/Flask-WTF/config.html#forms-and-csrf). This setting leads to frequent errors in the UI – for no good reason. ### What you think sh...
[ { "content": "#\n# 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 (th...
[ { "content": "#\n# 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 (th...
diff --git a/airflow/config_templates/default_webserver_config.py b/airflow/config_templates/default_webserver_config.py index ac999a0deafb6..aa22b125fa98c 100644 --- a/airflow/config_templates/default_webserver_config.py +++ b/airflow/config_templates/default_webserver_config.py @@ -32,6 +32,7 @@ # Flask-WTF flag f...
wagtail__wagtail-9905
Rich text toolbar is hidden by default making some edits difficult ### Issue Summary Prior to Wagtail v4, the rich text toolbar was always visible which made it easy to access the full range of options when editing. Now that the toolbar is hidden by default, it's very difficult. I understand the desire to save scree...
[ { "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 bb125df699e7..c8702de48f44 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -25,6 +25,8 @@ Changelog * Implement latest design for the admin dashboard header (Thibaud Colas, Steven Steinwand) * Add base Axe accessibility checker integration within userbar, with erro...
scipy__scipy-8316
Shape bug in scipy.optimize.least_squares (trf) with custom loss function and jac as linear operator I believe there is a shape/broadcasting bug in the scipy.optimize._lsq.common::left_multiplied_operator's matmat implementation, which causes a crash when using scipy.optimize.least_squares with a jacobian passed as a l...
[ { "content": "\"\"\"Functions used by least-squares algorithms.\"\"\"\nfrom __future__ import division, print_function, absolute_import\n\nfrom math import copysign\n\nimport numpy as np\nfrom numpy.linalg import norm\n\nfrom scipy.linalg import cho_factor, cho_solve, LinAlgError\nfrom scipy.sparse import isspa...
[ { "content": "\"\"\"Functions used by least-squares algorithms.\"\"\"\nfrom __future__ import division, print_function, absolute_import\n\nfrom math import copysign\n\nimport numpy as np\nfrom numpy.linalg import norm\n\nfrom scipy.linalg import cho_factor, cho_solve, LinAlgError\nfrom scipy.sparse import isspa...
diff --git a/scipy/optimize/_lsq/common.py b/scipy/optimize/_lsq/common.py index 61a376e12d6d..2327d61e4b2e 100644 --- a/scipy/optimize/_lsq/common.py +++ b/scipy/optimize/_lsq/common.py @@ -622,7 +622,7 @@ def matvec(x): return d * J.matvec(x) def matmat(X): - return d * J.matmat(X) + ret...
cookiecutter__cookiecutter-1578
prompt.read_user_dict() is broken due to click upgrade from 7.1.2 to 8.0.0 * Cookiecutter version: 1.7.3 * Template project url: - * Python version: 3.9.5 * Operating System: macOS Catalina 10.15.7 ### Description: Apparently, there is a breaking change in `click==8.0.0` affecting dictionary values in cookiecu...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"cookiecutter distutils configuration.\"\"\"\n\nimport os\nimport io\nimport sys\n\nfrom setuptools import setup\n\nversion = \"1.7.3\"\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n os.system('python setu...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"cookiecutter distutils configuration.\"\"\"\n\nimport os\nimport io\nimport sys\n\nfrom setuptools import setup\n\nversion = \"1.7.3\"\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n os.system('python setu...
diff --git a/setup.py b/setup.py index 034ad1c30..601fc2305 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ requirements = [ 'binaryornot>=0.4.4', 'Jinja2>=2.7,<4.0.0', - 'click>=7.0', + 'click>=7.0,<8.0.0', 'poyo>=0.5.0', 'jinja2-time>=0.2.0', 'python-slugify>=4.0.0', diff --git ...
microsoft__ptvsd-259
Debugging of modules using -m is broken Used to be able to debug Flask & other code using the `-m` flag.
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nimport sys\n\n# import the wrapper first, so that it gets a chance\n# to detour pydevd socket functionality.\nimport ptvsd.wrapper\n\n\n__au...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nimport sys\n\n# import the wrapper first, so that it gets a chance\n# to detour pydevd socket functionality.\nimport ptvsd.wrapper\n\n\n__au...
diff --git a/ptvsd/debugger.py b/ptvsd/debugger.py index 2159715c5..d8afbde9a 100644 --- a/ptvsd/debugger.py +++ b/ptvsd/debugger.py @@ -27,7 +27,7 @@ def debug(filename, port_num, debug_id, debug_options, run_as): def _run_module(address, modname): filename = modname + ':' argv = _run_argv(address, filename...
RedHatInsights__insights-core-2985
DatasourceProvider reads file-content in "bytes" format and causing parsing to fail Original Exception raised by the parser ``` File "/work/insights/insights-core/insights/core/__init__.py", line 95, in _handle_content self.parse_content(context.content) File "/work/insights/insights-core/insights/parsers/l...
[ { "content": "import itertools\nimport logging\nimport os\nimport re\nimport six\nimport traceback\nimport codecs\n\nfrom collections import defaultdict\nfrom glob import glob\nfrom subprocess import call\n\nfrom insights.core import blacklist, dr\nfrom insights.core.filters import _add_filter, get_filters\nfro...
[ { "content": "import itertools\nimport logging\nimport os\nimport re\nimport six\nimport traceback\nimport codecs\n\nfrom collections import defaultdict\nfrom glob import glob\nfrom subprocess import call\n\nfrom insights.core import blacklist, dr\nfrom insights.core.filters import _add_filter, get_filters\nfro...
diff --git a/insights/core/spec_factory.py b/insights/core/spec_factory.py index a600836a76..87ac00ba2f 100644 --- a/insights/core/spec_factory.py +++ b/insights/core/spec_factory.py @@ -1076,4 +1076,4 @@ def serialize_datasource_provider(obj, root): @deserializer(DatasourceProvider) def deserialize_datasource_prov...
magenta__magenta-1793
Retraining Onsets and Frames Drums model with E-GMD dataset Hello, I am trying to retrain OaF model with the E-GMD dataset for drums transcription. I first downloaded the E-GMD dataset which has its corresponding csv file and a directoy for each drummer and subdirectories with the sessions. I am trying to do the ...
[ { "content": "# Copyright 2020 The Magenta 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 2020 The Magenta 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/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_tfrecords.py b/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_tfrecords.py index cbc3715402..3b339cc231 100644 --- a/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_tfr...
django-wiki__django-wiki-384
Downloading attachments with non-ascii characters is broken with Python 2 ``` UnicodeDecodeError at /12/plugin/attachments/download/33/ 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128) Request Method: GET Request URL: http://localhost:8000/12/plugin/attachments/download/33/ Django Versio...
[ { "content": "from __future__ import unicode_literals\nfrom __future__ import absolute_import\nimport os\nimport mimetypes\nfrom datetime import datetime\n\nfrom django.http import HttpResponse\nfrom django.utils.http import http_date\nfrom django.utils import dateformat\n\nfrom wiki.conf import settings\n\ndef...
[ { "content": "from __future__ import unicode_literals\nfrom __future__ import absolute_import\nimport os\nimport mimetypes\nfrom datetime import datetime\n\nfrom django.http import HttpResponse\nfrom django.utils.http import http_date\nfrom django.utils import dateformat\n\nfrom wiki.conf import settings\n\ndef...
diff --git a/wiki/core/http.py b/wiki/core/http.py index e7cc3f0d8..0cb598bbf 100644 --- a/wiki/core/http.py +++ b/wiki/core/http.py @@ -45,6 +45,6 @@ def send_file(request, filepath, last_modified=None, filename=None): # TODO: Escape filename if filename: - response["Content-Disposition"] = "att...
xonsh__xonsh-2332
xoreutils: echo fails with KeyError: 'help' Any `echo` invocation fails: ```shell $ $XONSH_SHOW_TRACEBACK = True $ echo xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = <filename> Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/xonsh/__amalgam__.py", line ...
[ { "content": "\"\"\"Implements a simple echo command for xonsh.\"\"\"\n\n\ndef echo(args, stdin, stdout, stderr):\n \"\"\"A simple echo command.\"\"\"\n opts = _echo_parse_args(args)\n if opts is None:\n return\n if opts['help']:\n print(ECHO_HELP, file=stdout)\n return 0\n e...
[ { "content": "\"\"\"Implements a simple echo command for xonsh.\"\"\"\n\n\ndef echo(args, stdin, stdout, stderr):\n \"\"\"A simple echo command.\"\"\"\n opts = _echo_parse_args(args)\n if opts is None:\n return\n if opts['help']:\n print(ECHO_HELP, file=stdout)\n return 0\n e...
diff --git a/news/fix-echo.rst b/news/fix-echo.rst new file mode 100644 index 0000000000..18e419918e --- /dev/null +++ b/news/fix-echo.rst @@ -0,0 +1,13 @@ +**Added:** None + +**Changed:** None + +**Deprecated:** None + +**Removed:** None + +**Fixed:** + +* Fix echo command from xoreutils. + +**Security:** None diff --...
databricks__koalas-105
How to call dev/_make_missing_functions.py? ``` rxin @ C02XT0W6JGH5 : ~/workspace/spark-pandas (master) > dev/_make_missing_functions.py Traceback (most recent call last): File "dev/_make_missing_functions.py", line 22, in <module> from databricks.koala.frame import PandasLikeDataFrame ImportError: No mod...
[ { "content": "#!/usr/bin/env python\n#\n# Copyright (C) 2019 Databricks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "#!/usr/bin/env python\n#\n# Copyright (C) 2019 Databricks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/dev/_make_missing_functions.py b/dev/_make_missing_functions.py index 8df7b01149..5351d53bde 100755 --- a/dev/_make_missing_functions.py +++ b/dev/_make_missing_functions.py @@ -15,6 +15,12 @@ # limitations under the License. # +""" +A script to generate the missing function stubs. Before running this,...
django-json-api__django-rest-framework-json-api-440
Test with tox in CI 2.3.0 is currently broken unless a user's environment happens to have `six` installed. If the CI tests ran at least one test that minimally installs the package and runs some basic tests to import things, then that kind of problem would be avoided.
[ { "content": "#!/usr/bin/env python\nfrom __future__ import print_function\n\nimport os\nimport re\nimport sys\n\nfrom setuptools import setup\n\nneeds_mock = sys.version_info < (3, 3)\nmock = ['mock'] if needs_mock else []\nneeds_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)\npytest_runner = ['pyte...
[ { "content": "#!/usr/bin/env python\nfrom __future__ import print_function\n\nimport os\nimport re\nimport sys\n\nfrom setuptools import setup\n\nneeds_mock = sys.version_info < (3, 3)\nmock = ['mock'] if needs_mock else []\nneeds_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)\npytest_runner = ['pyte...
diff --git a/.gitignore b/.gitignore index ac41fdd8..1207cc48 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,10 @@ pip-delete-this-directory.txt .idea/ # PyTest cache -.cache/ +.pytest_cache/ + +# Coverage +.coverage # Tox .tox/ diff --git a/.travis.yml b/.travis.yml index 2a30c0c5..09cd5729 100644 --- a...
deis__deis-280
Update chef_version in provisioning scripts I see in the digitalocean support that @bacongobbler removed the --bootstrap-version=11.4.4 and things still seem to work with more current Chef (11.6.2). This wasn't the case before--the apt cookbook failed--so we had pinned it at a working version. Let's retest that we're ...
[ { "content": "\"\"\"\nDeis configuration management implementation for Opscode Chef.\n\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport os\nimport re\nimport subprocess\nimport tempfile\nimport time\nimport socket\n\nfrom celery.canvas import group\n\nfrom api.ssh import exec_ssh, connect_ssh\nfrom cm...
[ { "content": "\"\"\"\nDeis configuration management implementation for Opscode Chef.\n\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport os\nimport re\nimport subprocess\nimport tempfile\nimport time\nimport socket\n\nfrom celery.canvas import group\n\nfrom api.ssh import exec_ssh, connect_ssh\nfrom cm...
diff --git a/cm/chef.py b/cm/chef.py index d8b53792ad..9203995fa1 100644 --- a/cm/chef.py +++ b/cm/chef.py @@ -21,7 +21,7 @@ CHEF_INSTALL_TYPE = 'gems' CHEF_RUBY_VERSION = '1.9.1' CHEF_ENVIRONMENT = '_default' -CHEF_CLIENT_VERSION = '11.4.4' +CHEF_CLIENT_VERSION = '11.6.2' # load chef config using CHEF_CONFIG_PAT...
scikit-hep__pyhf-457
Determine if papermill v1.0 API change is a problem # Description The [papermill `v1.0` release will introduce API breaking changes](https://github.com/nteract/papermill/blob/d554193bc458797b63af1f94964883d5dcca2418/README.md). It would be good to determine if these changes will matter for pyhf testing and require t...
[ { "content": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\nfrom os import path\nimport sys\n\nthis_directory = path.abspath(path.dirname(__file__))\nif sys.version_info.major < 3:\n from io import open\nwith open(path.join(this_directory, 'README.md'), encoding='utf-8') as readme_md:...
[ { "content": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\nfrom os import path\nimport sys\n\nthis_directory = path.abspath(path.dirname(__file__))\nif sys.version_info.major < 3:\n from io import open\nwith open(path.join(this_directory, 'README.md'), encoding='utf-8') as readme_md:...
diff --git a/docs/examples/notebooks/multiBinPois.ipynb b/docs/examples/notebooks/multiBinPois.ipynb index dbd8356eeb..2fae86c610 100644 --- a/docs/examples/notebooks/multiBinPois.ipynb +++ b/docs/examples/notebooks/multiBinPois.ipynb @@ -30,24 +30,7 @@ "metadata": { "scrolled": false }, - "outputs": [ -...
OpenNMT__OpenNMT-py-2204
torch.div() (1.6.0) does not have 'rounding_mode' parameter According to the torch 1.6.0 here: https://pytorch.org/docs/1.6.0/generated/torch.div.html?highlight=torch%20div#torch.div there is no 'rounding_mode' parameter. But in translator: https://github.com/OpenNMT/OpenNMT-py/blob/0f411ce11a83b18c0223ac94ccc11a...
[ { "content": "#!/usr/bin/env python\nfrom setuptools import setup, find_packages\nfrom os import path\n\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:\n long_description = f.read()\n\nsetup(\n name='OpenNMT-py',\n descri...
[ { "content": "#!/usr/bin/env python\nfrom setuptools import setup, find_packages\nfrom os import path\n\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:\n long_description = f.read()\n\nsetup(\n name='OpenNMT-py',\n descri...
diff --git a/README.md b/README.md index 3ed886afeb..051cd39cae 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Table of Contents OpenNMT-py requires: - Python >= 3.6 -- PyTorch == 1.6.0 +- PyTorch >= 1.9.0 Install `OpenNMT-py` from `pip`: ```bash @@ -251,7 +251,7 @@ The original code was written by [A...
pytorch__ignite-844
Typehint of ignite._utils._to_hours_mins_secs not satisfied with float ## 🐛 Bug description That is a so tiny bug. The `typehint` of the following function of `ignite._utils` is not satisfied with a `float` argument ``` python def _to_hours_mins_secs(time_taken: Union[float, int]) -> Tuple[int, int, int]: "...
[ { "content": "from typing import Union, Tuple\n\n# For compatibilty\nfrom ignite.utils import convert_tensor, apply_to_tensor, apply_to_type, to_onehot\n\n\ndef _to_hours_mins_secs(time_taken: Union[float, int]) -> Tuple[int, int, int]:\n \"\"\"Convert seconds to hours, mins, and seconds.\"\"\"\n mins, se...
[ { "content": "from typing import Union, Tuple\n\n# For compatibilty\nfrom ignite.utils import convert_tensor, apply_to_tensor, apply_to_type, to_onehot\n\n\ndef _to_hours_mins_secs(time_taken: Union[float, int]) -> Tuple[int, int, int]:\n \"\"\"Convert seconds to hours, mins, and seconds.\"\"\"\n mins, se...
diff --git a/ignite/_utils.py b/ignite/_utils.py index 0021435c96c9..fe5d830151b5 100644 --- a/ignite/_utils.py +++ b/ignite/_utils.py @@ -8,4 +8,4 @@ def _to_hours_mins_secs(time_taken: Union[float, int]) -> Tuple[int, int, int]: """Convert seconds to hours, mins, and seconds.""" mins, secs = divmod(time_tak...
tobymao__sqlglot-2170
Specifying 3.7+ in setup.py sqlglot fails with Python version < 3.7. While Python 3.6 is end-of-life, there are systems that still use 3.6 as they transition to 3.7. Having either `setup.py` or `setup.cfg` specify 3.7+ or adding to README would be helpful. ``` import sqlglot ``` `SyntaxError: future feature ...
[ { "content": "from setuptools import find_packages, setup\n\nsetup(\n name=\"sqlglot\",\n description=\"An easily customizable SQL parser and transpiler\",\n long_description=open(\"README.md\").read(),\n long_description_content_type=\"text/markdown\",\n url=\"https://github.com/tobymao/sqlglot\...
[ { "content": "from setuptools import find_packages, setup\n\nsetup(\n name=\"sqlglot\",\n description=\"An easily customizable SQL parser and transpiler\",\n long_description=open(\"README.md\").read(),\n long_description_content_type=\"text/markdown\",\n url=\"https://github.com/tobymao/sqlglot\...
diff --git a/setup.py b/setup.py index cffaeade7e..8c67a07620 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,7 @@ "local_scheme": "no-local-version", }, setup_requires=["setuptools_scm"], + python_requires=">=3.7", extras_require={ "dev": [ "autoflake",
GeotrekCE__Geotrek-admin-4004
Signalétiques : les lames supprimées apparaissent toujours dans la fiche détail d'une signalétique **Comportement pour reproduire :** - Créer une signalétique - Créer une lame associée à cette signalétique - Supprimer la lame qui vient d'être créée - Se rendre sur la vue détail de la signalétique **Comportemen...
[ { "content": "import os\n\nfrom django.db import models\nfrom django.db.models.signals import pre_delete\nfrom django.dispatch import receiver\nfrom django.utils.translation import gettext_lazy as _, pgettext_lazy\n\nfrom django.conf import settings\n\nfrom geotrek.authent.models import StructureOrNoneRelated\n...
[ { "content": "import os\n\nfrom django.db import models\nfrom django.db.models.signals import pre_delete\nfrom django.dispatch import receiver\nfrom django.utils.translation import gettext_lazy as _, pgettext_lazy\n\nfrom django.conf import settings\n\nfrom geotrek.authent.models import StructureOrNoneRelated\n...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 5a4ffb1f4c..610de8fb35 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -9,6 +9,11 @@ CHANGELOG - Add git to Dockerfile build staging +**Bug fixes** + +- Fix bug deleted blades still displayed on detail view of signages (fix #4003) + + 2.103.1 ...
nltk__nltk-2895
Link to book in python documentation wrong Not sure if this is a bug in the documentation or in the DNS/web server setup. The python documentation for nltk says: ``` Steven Bird, Ewan Klein, and Edward Loper (2009). Natural Language Processing with Python. O'Reilly Media Inc. http://nltk.org/book ```...
[ { "content": "# Natural Language Toolkit (NLTK)\n#\n# Copyright (C) 2001-2021 NLTK Project\n# Authors: Steven Bird <stevenbird1@gmail.com>\n# Edward Loper <edloper@gmail.com>\n# URL: <https://www.nltk.org/>\n# For license information, see LICENSE.TXT\n\n\"\"\"\nThe Natural Language Toolkit (NLTK) is an...
[ { "content": "# Natural Language Toolkit (NLTK)\n#\n# Copyright (C) 2001-2021 NLTK Project\n# Authors: Steven Bird <stevenbird1@gmail.com>\n# Edward Loper <edloper@gmail.com>\n# URL: <https://www.nltk.org/>\n# For license information, see LICENSE.TXT\n\n\"\"\"\nThe Natural Language Toolkit (NLTK) is an...
diff --git a/nltk/__init__.py b/nltk/__init__.py index a96ac22b25..9573e73791 100644 --- a/nltk/__init__.py +++ b/nltk/__init__.py @@ -13,7 +13,7 @@ Steven Bird, Ewan Klein, and Edward Loper (2009). Natural Language Processing with Python. O'Reilly Media Inc. -https://www.nltk.org/book +https://www.nltk.org/book/ ...
Textualize__rich-2108
[BUG] Rich's IPython extension doesn't work **Describe the bug** When trying to use `%load_ext rich` in **IPython** on Terminal it says following: ``` %Python 3.10.3 (main, Mar 17 2022, 04:46:20) [Clang 12.0.8 (https://android.googlesource.com/toolchain/llvm-project c935d99d7 Type 'copyright', 'credits' or 'licen...
[ { "content": "\"\"\"Rich text and beautiful formatting in the terminal.\"\"\"\n\nimport os\nfrom typing import Callable, IO, TYPE_CHECKING, Any, Optional, Union\n\n\n__all__ = [\"get_console\", \"reconfigure\", \"print\", \"inspect\"]\n\nif TYPE_CHECKING:\n from .console import Console\n\n# Global console us...
[ { "content": "\"\"\"Rich text and beautiful formatting in the terminal.\"\"\"\n\nimport os\nfrom typing import Callable, IO, TYPE_CHECKING, Any, Optional, Union\n\nfrom ._extension import load_ipython_extension\n\n__all__ = [\"get_console\", \"reconfigure\", \"print\", \"inspect\"]\n\nif TYPE_CHECKING:\n fro...
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 140f77f43..3dc31bf80 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -19,6 +19,7 @@ The following people have contributed to the development of Rich: - [Josh Karpel](https://github.com/JoshKarpel) - [Andrew Kettmann](https://github.com/akettmann) - [Hedy Li]...
django-hijack__django-hijack-429
hijack.min.css in pip package is invalid The hijack.min.css file that is included in the pip package is invalid. It appears to be simply the source scss file with whitespace removed. For example: the first statement is ``` $system-font: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-...
[ { "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\n\n\nclass HijackUserAdminMixin:\n \"\"\"Add hijack button to change...
[ { "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\n\n\nclass HijackUserAdminMixin:\n \"\"\"Add hijack button to change...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6e0a379..a185b200 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,19 +10,6 @@ on: jobs: - analyze: - name: CodeQL - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions...
piskvorky__gensim-2582
Import KeyedVectors error: cannot import name 'open' <!-- **IMPORTANT**: - Use the [Gensim mailing list](https://groups.google.com/forum/#!forum/gensim) to ask general or usage questions. Github issues are only for bug reports. - Check [Recipes&FAQ](https://github.com/RaRe-Technologies/gensim/wiki/Recipes-&-FAQ) f...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2014 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nRun with:\n\nsudo python ./setup.py install\n\"\"\"\n\nimport os\nimport platform\nimport sys\nimpor...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2014 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nRun with:\n\nsudo python ./setup.py install\n\"\"\"\n\nimport os\nimport platform\nimport sys\nimpor...
diff --git a/setup.py b/setup.py index 0e1a99218f..96869bdd4a 100644 --- a/setup.py +++ b/setup.py @@ -381,7 +381,7 @@ def finalize_options(self): NUMPY_STR, 'scipy >= 0.18.1', 'six >= 1.5.0', - 'smart_open >= 1.7.0', + 'smart_open >= 1.8.1', ], tests_require=linux_tes...
pymeasure__pymeasure-909
Check all Channel classes for docstrings #895 added a property docstring test. It works, however, only for the `Instrument` classes which are publicly available. Channels (and some base instruments), which are not imported in the init files, are not checked. This issue is about collecting all `Instrument` and `Chan...
[ { "content": "#\n# This file is part of the PyMeasure package.\n#\n# Copyright (c) 2013-2023 PyMeasure Developers\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restr...
[ { "content": "#\n# This file is part of the PyMeasure package.\n#\n# Copyright (c) 2013-2023 PyMeasure Developers\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restr...
diff --git a/pymeasure/instruments/__init__.py b/pymeasure/instruments/__init__.py index 448bca8219..4dd9b6a422 100644 --- a/pymeasure/instruments/__init__.py +++ b/pymeasure/instruments/__init__.py @@ -67,6 +67,7 @@ from . import srs from . import tcpowerconversion from . import tektronix +from . import teledyne f...
nvaccess__nvda-10921
VS Code: Reduce the number of times one has to use NVDA+Space to switch modes. I just filed [this issue](https://github.com/microsoft/vscode/issues/93087) against VS Code where I suggest to use targeted role="document" in those places that produce HTML output for consumption, to make NVDA switch in and out of browse mo...
[ { "content": "#appModules/code.py\n#A part of NonVisual Desktop Access (NVDA)\n#Copyright (C) 2019 NV Access Limited, Babbage B.V.\n#This file is covered by the GNU General Public License.\n#See the file COPYING for more details.\n\nimport appModuleHandler\n\nclass AppModule(appModuleHandler.AppModule):\n\tdisa...
[ { "content": null, "path": "source/appModules/code.py" } ]
diff --git a/source/appModules/code.py b/source/appModules/code.py deleted file mode 100644 index a85d0b49b9f..00000000000 --- a/source/appModules/code.py +++ /dev/null @@ -1,10 +0,0 @@ -#appModules/code.py -#A part of NonVisual Desktop Access (NVDA) -#Copyright (C) 2019 NV Access Limited, Babbage B.V. -#This file is c...
getsentry__sentry-52329
fix(django): Disable admin on prod Reported here: https://forum.sentry.io/t/sentry-django-admin-portal/12787?u=byk
[ { "content": "from __future__ import annotations\n\nfrom django.conf import settings\nfrom django.urls import URLPattern, URLResolver, re_path\n\nfrom sentry.web.frontend import csrf_failure\nfrom sentry.web.frontend.error_404 import Error404View\nfrom sentry.web.frontend.error_500 import Error500View\nfrom sen...
[ { "content": "from __future__ import annotations\n\nfrom django.conf import settings\nfrom django.urls import URLPattern, URLResolver, re_path\n\nfrom sentry.web.frontend import csrf_failure\nfrom sentry.web.frontend.error_404 import Error404View\nfrom sentry.web.frontend.error_500 import Error500View\nfrom sen...
diff --git a/src/sentry/conf/urls.py b/src/sentry/conf/urls.py index 15d3c3af373784..6053b9ec144d7a 100644 --- a/src/sentry/conf/urls.py +++ b/src/sentry/conf/urls.py @@ -29,7 +29,7 @@ ), ] -if "django.contrib.admin" in settings.INSTALLED_APPS: +if "django.contrib.admin" in settings.INSTALLED_APPS and settings....
Pyomo__pyomo-1272
validate does not raise Exception When `AbstractModel.create_instance` is called, if the `validate` function of a Parameter returns `False`, the value is not assigned but no Exception is raised. Example: ```python from pyomo import environ as pe m = pe.AbstractModel() m.p = pe.Param(validate = lambda m,v...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin...
diff --git a/pyomo/core/base/param.py b/pyomo/core/base/param.py index 5c9a943642b..f3a639f5afc 100644 --- a/pyomo/core/base/param.py +++ b/pyomo/core/base/param.py @@ -601,6 +601,7 @@ def _setitem_when_not_present(self, index, value, _check_domain=True): return value except: del ...
urllib3__urllib3-2484
Test development versions of Python Uses the `3.11-dev` and `nightly` deadsnakes release streams to test urllib3 against Python versions.
[ { "content": "import os\nimport shutil\nimport subprocess\n\nimport nox\n\nSOURCE_FILES = [\n \"docs/\",\n \"dummyserver/\",\n \"src/\",\n \"test/\",\n \"noxfile.py\",\n \"setup.py\",\n]\n\n\ndef tests_impl(\n session: nox.Session,\n extras: str = \"socks,secure,brotli\",\n byte_strin...
[ { "content": "import os\nimport shutil\nimport subprocess\n\nimport nox\n\nSOURCE_FILES = [\n \"docs/\",\n \"dummyserver/\",\n \"src/\",\n \"test/\",\n \"noxfile.py\",\n \"setup.py\",\n]\n\n\ndef tests_impl(\n session: nox.Session,\n extras: str = \"socks,secure,brotli\",\n byte_strin...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5fecb46d9e..4b47c818c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,6 +50,10 @@ jobs: os: ubuntu-latest experimental: false nox-session: test-3.9 + - python-version: 3.11...
mathesar-foundation__mathesar-2911
`AbstractType: Money, URI, Email` columns throw error when summarization is applied ## Description `Money` columns can not be aggregated based on some other grouping column. (There won't be any problem, if `Money` column is the grouping column) ## Expected behavior Users should be able to aggregate `Money` colum...
[ { "content": "\"\"\"\nHere we define DBFunction subclasses that are defined in terms of other DBFunction subclasses\n(these DBFunctions are packages or combinations of other DBFunctions). We do this to workaround\nMathesar filters not supporting composition.\n\"\"\"\n\nfrom abc import abstractmethod\n\nfrom db....
[ { "content": "\"\"\"\nHere we define DBFunction subclasses that are defined in terms of other DBFunction subclasses\n(these DBFunctions are packages or combinations of other DBFunctions). We do this to workaround\nMathesar filters not supporting composition.\n\"\"\"\n\nfrom abc import abstractmethod\n\nfrom db....
diff --git a/db/functions/packed.py b/db/functions/packed.py index b1620a9b06..8c8f46b2f4 100644 --- a/db/functions/packed.py +++ b/db/functions/packed.py @@ -44,6 +44,7 @@ class DistinctArrayAgg(DBFunctionPacked): def unpack(self): param0 = self.parameters[0] + param0 = base._maybe_downcast(para...
pyjanitor-devs__pyjanitor-289
Utilize autosummary Sphinx directive in API Reference ## Proposal A consolidated list of functionality would go a long way in [our API Reference](https://pyjanitor.readthedocs.io/api.html) section. Other libraries have leveraged the [autosummary](http://www.sphinx-doc.org/en/master/usage/extensions/autosummary.ht...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Configuration file for the Sphinx documentation builder.\n#\n# This file does only contain a selection of the most common options. For a\n# full list see the documentation:\n# http://www.sphinx-doc.org/en/stable/config\n\n# -- Path setup ------------------------------...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Configuration file for the Sphinx documentation builder.\n#\n# This file does only contain a selection of the most common options. For a\n# full list see the documentation:\n# http://www.sphinx-doc.org/en/stable/config\n\n# -- Path setup ------------------------------...
diff --git a/AUTHORS.rst b/AUTHORS.rst index e10a37ef5..304879bcc 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -29,5 +29,6 @@ With thanks to the following contributors: - `@jack-kessler-88 <https://github.com/jack-kessler-88>`_ - `@NapsterInBlue <https://github.com/NapsterInBlue>`_ - `@jk3587 <https://github.com/jk...
mars-project__mars-1631
[BUG] `Cannot find serializable class` raised when calling set_label When calling DataFrame.columns=xxxx in distributed environment, a KeyError is raised with message `Cannot find serializable class for type_id 1517314310`.
[ { "content": "# Copyright 1999-2020 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 1999-2020 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/.github/workflows/install-minikube.sh b/.github/workflows/install-minikube.sh index fe7680d21d..81e90c92d6 100755 --- a/.github/workflows/install-minikube.sh +++ b/.github/workflows/install-minikube.sh @@ -3,9 +3,18 @@ set -e export CHANGE_MINIKUBE_NONE_USER=true sudo apt-get -q update || true -sudo ap...
tiangolo__fastapi-9468
FastAPI tests in pydantic failing due to flask deprecation ### Privileged issue - [X] I'm @tiangolo or he asked me directly to create an issue here. ### Issue Content hope you don't mind me creating an issue, pydantic's 1.10.X tests are failing due to a new issue with running our fastapi tests, see https://github...
[ { "content": "from fastapi import FastAPI\nfrom fastapi.middleware.wsgi import WSGIMiddleware\nfrom flask import Flask, escape, request\n\nflask_app = Flask(__name__)\n\n\n@flask_app.route(\"/\")\ndef flask_main():\n name = request.args.get(\"name\", \"World\")\n return f\"Hello, {escape(name)} from Flask...
[ { "content": "from fastapi import FastAPI\nfrom fastapi.middleware.wsgi import WSGIMiddleware\nfrom flask import Flask, request\nfrom markupsafe import escape\n\nflask_app = Flask(__name__)\n\n\n@flask_app.route(\"/\")\ndef flask_main():\n name = request.args.get(\"name\", \"World\")\n return f\"Hello, {e...
diff --git a/docs/en/docs/advanced/wsgi.md b/docs/en/docs/advanced/wsgi.md index df8865961721d..cfe3c78c11ca4 100644 --- a/docs/en/docs/advanced/wsgi.md +++ b/docs/en/docs/advanced/wsgi.md @@ -12,7 +12,7 @@ Then wrap the WSGI (e.g. Flask) app with the middleware. And then mount that under a path. -```Python hl_lin...
bookwyrm-social__bookwyrm-2418
Running behind a proxy produces wrong embedding URLs I was a little bit confused that the URLs for embedding were http instead of https. After looking up where that comes from https://github.com/bookwyrm-social/bookwyrm/blob/fdc477afdf4002ea432741121024ea75dbc68192/bookwyrm/views/list/list.py#L53 `build_absolute...
[ { "content": "\"\"\" bookwyrm settings and configuration \"\"\"\nimport os\nfrom environs import Env\n\nimport requests\nfrom django.utils.translation import gettext_lazy as _\n\n\n# pylint: disable=line-too-long\n\nenv = Env()\nenv.read_env()\nDOMAIN = env(\"DOMAIN\")\nVERSION = \"0.5.1\"\n\nRELEASE_API = env(...
[ { "content": "\"\"\" bookwyrm settings and configuration \"\"\"\nimport os\nfrom environs import Env\n\nimport requests\nfrom django.utils.translation import gettext_lazy as _\n\n\n# pylint: disable=line-too-long\n\nenv = Env()\nenv.read_env()\nDOMAIN = env(\"DOMAIN\")\nVERSION = \"0.5.1\"\n\nRELEASE_API = env(...
diff --git a/.env.example b/.env.example index 58c53b5bf2..bbd825a9af 100644 --- a/.env.example +++ b/.env.example @@ -108,3 +108,10 @@ OTEL_EXPORTER_OTLP_ENDPOINT= OTEL_EXPORTER_OTLP_HEADERS= # Service name to identify your app OTEL_SERVICE_NAME= + +# Set HTTP_X_FORWARDED_PROTO ONLY to true if you know what you are...
ivy-llc__ivy-16680
rad2deg
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_unsupported_dtypes({\"2.4.2 and below\": (\"float16\", \"bfloat16\")}, \"paddle\")\n@to_ivy_array...
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_unsupported_dtypes({\"2.4.2 and below\": (\"float16\", \"bfloat16\")}, \"paddle\")\n@to_ivy_array...
diff --git a/ivy/functional/frontends/paddle/tensor/math.py b/ivy/functional/frontends/paddle/tensor/math.py index ae73cb96141ea..602b8d1e24ec7 100644 --- a/ivy/functional/frontends/paddle/tensor/math.py +++ b/ivy/functional/frontends/paddle/tensor/math.py @@ -150,3 +150,9 @@ def log2(x, name=None): @to_ivy_arrays_and...
xonsh__xonsh-2360
@$ result is not satisfying When I run `@$(which ls)` I expect to see this result: `some_file some_other_file` But I see this: `ls: invalid option -- ' ' Try 'ls --help' for more information. ` xonsh version: 0.5.9 os : linux (Ubuntu 16.04.2)
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"The xonsh built-ins.\n\nNote that this module is named 'built_ins' so as not to be confused with the\nspecial Python builtins module.\n\"\"\"\nimport io\nimport os\nimport re\nimport sys\nimport types\nimport shlex\nimport signal\nimport atexit\nimport pathlib\nimpor...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"The xonsh built-ins.\n\nNote that this module is named 'built_ins' so as not to be confused with the\nspecial Python builtins module.\n\"\"\"\nimport io\nimport os\nimport re\nimport sys\nimport types\nimport shlex\nimport signal\nimport atexit\nimport pathlib\nimpor...
diff --git a/news/fix_at_dollar.rst b/news/fix_at_dollar.rst new file mode 100644 index 0000000000..ddfc6c05ba --- /dev/null +++ b/news/fix_at_dollar.rst @@ -0,0 +1,13 @@ +**Added:** None + +**Changed:** None + +**Deprecated:** None + +**Removed:** None + +**Fixed:** + +* ``@$`` operator now functions properly when re...
learningequality__kolibri-219
AttributeError: `Notetype` object has no attribute `MethodFilter` ## Summary I generated a `kolibri-static`via `python setup.py bdist_wheel --static` then install it on my `Windows 7 VM` using pip then run `kolibre manage runserver` I got an error see the screenshots below. ## Branch or installer - Version: `master` ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, print_function, unicode_literals\n\nimport logging\nimport os\nimport shutil\nimport sys\n\nfrom setuptools import setup\nfrom setuptools.command.install_scripts import install_scripts\n\n# Notice that we dare ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, print_function, unicode_literals\n\nimport logging\nimport os\nimport shutil\nimport sys\n\nfrom setuptools import setup\nfrom setuptools.command.install_scripts import install_scripts\n\n# Notice that we dare ...
diff --git a/setup.py b/setup.py index 34ffc239c20..e3c73f6d1bf 100644 --- a/setup.py +++ b/setup.py @@ -56,6 +56,7 @@ def read_file(fname): install_requires = [ 'colorlog', 'django>=1.9,<1.10', + 'django-filter>=0.13.0', 'django-mptt==0.8.4', 'django-js-reverse==0.7.2', 'djangorestframewor...
ipython__ipython-10668
No module named sphinx.util.compat error using `IPython.sphinxext` with Sphinx pre1.7 master branch Trying out `IPython.sphinxext` 6.1.0 with ``Sphinx==1.7.dev20170617`` I get the following error on a Sphinx project: ``` Extension error: Could not import extension IPython.sphinxext.ipython_directive (exception: No...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nSphinx directive to support embedded IPython code.\n\nThis directive allows pasting of entire interactive IPython sessions, prompts\nand all, and their code will actually get re-executed at doc build time, with\nall prompts renumbered sequentially. It also allows y...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nSphinx directive to support embedded IPython code.\n\nThis directive allows pasting of entire interactive IPython sessions, prompts\nand all, and their code will actually get re-executed at doc build time, with\nall prompts renumbered sequentially. It also allows y...
diff --git a/IPython/sphinxext/ipython_directive.py b/IPython/sphinxext/ipython_directive.py index 82e98e2693f..dfa4a2ab8bf 100644 --- a/IPython/sphinxext/ipython_directive.py +++ b/IPython/sphinxext/ipython_directive.py @@ -138,7 +138,7 @@ # Third-party from docutils.parsers.rst import directives -from sphinx.util...
docker__docker-py-1204
Issue with requests dependency I found that commit 95d9306d2a1fd22dffb12a0548abf2d2f744ed9d excludes requests 2.11 for a bug that is fixed now on requests 2.11.1. And that's giving me a version conflict with another of the modules on my project: ``` pkg_resources.ContextualVersionConflict: (requests 2.11.1 (.............
[ { "content": "#!/usr/bin/env python\nimport os\nimport sys\n\nfrom setuptools import setup\n\n\nROOT_DIR = os.path.dirname(__file__)\nSOURCE_DIR = os.path.join(ROOT_DIR)\n\nrequirements = [\n 'requests >= 2.5.2, < 2.11',\n 'six >= 1.4.0',\n 'websocket-client >= 0.32.0',\n 'docker-pycreds >= 0.2.1'\n...
[ { "content": "#!/usr/bin/env python\nimport os\nimport sys\n\nfrom setuptools import setup\n\n\nROOT_DIR = os.path.dirname(__file__)\nSOURCE_DIR = os.path.join(ROOT_DIR)\n\nrequirements = [\n 'requests >= 2.5.2',\n 'six >= 1.4.0',\n 'websocket-client >= 0.32.0',\n 'docker-pycreds >= 0.2.1'\n]\n\nif ...
diff --git a/requirements.txt b/requirements.txt index 1e5284600..375413122 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -requests==2.5.3 +requests==2.11.1 six>=1.4.0 websocket-client==0.32.0 backports.ssl_match_hostname>=3.5 ; python_version < '3.5' ipaddress==1.0.16 ; python_version < '3.3...
meltano__meltano-8343
perf: Project's `.env` contents are evaluated too many times ### Meltano Version 3.2.0 ### Python Version NA ### Bug scope Configuration (settings parsing, validation, etc.) ### Operating System NA ### Description The `Project.dotenv_env` is evaluated many times per run, so a potential perfor...
[ { "content": "\"\"\"Meltano Projects.\"\"\"\n\n\nfrom __future__ import annotations\n\nimport errno\nimport logging\nimport os\nimport sys\nimport threading\nimport typing as t\nfrom contextlib import contextmanager\nfrom functools import cached_property\nfrom pathlib import Path\n\nimport fasteners\nfrom doten...
[ { "content": "\"\"\"Meltano Projects.\"\"\"\n\n\nfrom __future__ import annotations\n\nimport errno\nimport logging\nimport os\nimport sys\nimport threading\nimport typing as t\nfrom contextlib import contextmanager\nfrom functools import cached_property\nfrom pathlib import Path\n\nimport fasteners\nfrom doten...
diff --git a/src/meltano/core/project.py b/src/meltano/core/project.py index 32a67f9ab5..869e88b1c4 100644 --- a/src/meltano/core/project.py +++ b/src/meltano/core/project.py @@ -372,7 +372,7 @@ def dotenv(self): """ return self.root.joinpath(".env") - @property + @cached_property def dot...
Textualize__textual-4100
Scrolling in long OptionList doesn't accompany keyboard navigation by default If you use the keyboard to navigate inside an `OptionList` and if you move past the visible options, there is no scrolling to accompany your movement (there should). https://github.com/Textualize/textual/assets/5621605/31e02474-b696-40d7-b...
[ { "content": "\"\"\"Provides the core of a classic vertical bounce-bar option list.\n\nUseful as a lightweight list view (not to be confused with ListView, which\nis much richer but uses widgets for the items) and as the base for various\nforms of bounce-bar menu.\n\"\"\"\n\nfrom __future__ import annotations\n...
[ { "content": "\"\"\"Provides the core of a classic vertical bounce-bar option list.\n\nUseful as a lightweight list view (not to be confused with ListView, which\nis much richer but uses widgets for the items) and as the base for various\nforms of bounce-bar menu.\n\"\"\"\n\nfrom __future__ import annotations\n...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d63a1862df..8d6df22556 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +- Fixed scrolling in long `OptionList` by adding max height of 100% https://github.com/Textualize/text...
PyGithub__PyGithub-797
stack overflow for Team.description Missing `_` means stack overflow as property accessor calls itself indefinitely. Should be `self._description.value` I suspect. Due to client open source policy I cannot submit a PR. Team.py ```python @property def description(self): """ :typ...
[ { "content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #\n# Copyright 2012 Zearin <...
[ { "content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #\n# Copyright 2012 Zearin <...
diff --git a/github/Team.py b/github/Team.py index b3be04cc37..54ec0e938f 100644 --- a/github/Team.py +++ b/github/Team.py @@ -89,7 +89,7 @@ def description(self): :type: string """ self._completeIfNotSet(self._description) - return self.description.value + return self._descript...
PennyLaneAI__pennylane-2947
[BUG] `qml.equal` ignore in-place inversion Currently, we have: ``` >>> qml.equal(qml.RX(1.0, wires=0), qml.RX(1.0, wires=0).inv()) True ``` If two operations are inverses of each other, they should not be equal.
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies 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# Unle...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies 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# Unle...
diff --git a/doc/releases/changelog-0.25.0.md b/doc/releases/changelog-0.25.0.md index 1696b9060f3..3a49b7bd45e 100644 --- a/doc/releases/changelog-0.25.0.md +++ b/doc/releases/changelog-0.25.0.md @@ -710,6 +710,9 @@ of operators. <h3>Bug fixes 🐞</h3> +* Fixes `qml.equal` so that operators with different inverse ...
numpy__numpy-13571
DOC: expand_dims returns a view Hi, if we apply expand_dims to a numpy array 'a' : b = numpy.expand_dims(a, axis=0) the 'b' is not a new array, it will be a link to the objects 'a' is it correct behavior? if so, it should be noted in the manual thanks!
[ { "content": "from __future__ import division, absolute_import, print_function\n\nimport functools\nimport warnings\n\nimport numpy.core.numeric as _nx\nfrom numpy.core.numeric import (\n asarray, zeros, outer, concatenate, array, asanyarray\n )\nfrom numpy.core.fromnumeric import product, reshape, transp...
[ { "content": "from __future__ import division, absolute_import, print_function\n\nimport functools\nimport warnings\n\nimport numpy.core.numeric as _nx\nfrom numpy.core.numeric import (\n asarray, zeros, outer, concatenate, array, asanyarray\n )\nfrom numpy.core.fromnumeric import product, reshape, transp...
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index ac2a2560498b..8ebe7a695f22 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -532,8 +532,7 @@ def expand_dims(a, axis): Returns ------- res : ndarray - Output array. The number of dimensions is one greater tha...
medtagger__MedTagger-442
Getting random scan for non-existing task key results in 500 ## Current Behavior Providing non existing task key results in 500 HTTP code. ## Expected Behavior Backend should handle this situation appropriate and return 404 HTTP code. ## Steps to Reproduce the Problem 1. Perform a GET `scans/random?tas...
[ { "content": "\"\"\"Module responsible for definition of TaskRepository.\"\"\"\nfrom typing import List\n\nfrom medtagger.database import db_session\nfrom medtagger.database.models import Task, LabelTag, Dataset\nfrom medtagger.exceptions import InternalErrorException\n\n\ndef get_all_tasks(include_disabled: bo...
[ { "content": "\"\"\"Module responsible for definition of TaskRepository.\"\"\"\nfrom typing import List\n\nfrom medtagger.database import db_session\nfrom medtagger.database.models import Task, LabelTag, Dataset\nfrom medtagger.exceptions import InternalErrorException\n\n\ndef get_all_tasks(include_disabled: bo...
diff --git a/backend/medtagger/repositories/tasks.py b/backend/medtagger/repositories/tasks.py index 71926114..12aa8fb0 100644 --- a/backend/medtagger/repositories/tasks.py +++ b/backend/medtagger/repositories/tasks.py @@ -21,7 +21,7 @@ def get_task_by_key(key: str) -> Task: :return: Task object """ with...
pwr-Solaar__Solaar-2003
Solaar exits with RC 1 when terminated **Information** <!-- Make sure that your issue is not one of the known issues in the Solaar documentation at https://pwr-solaar.github.io/Solaar/ --> <!-- Do not bother opening an issue for a version older than 1.1.0. Upgrade to the latest version and see if your issue persists...
[ { "content": "#!/usr/bin/env python3\n# -*- python-mode -*-\n# -*- coding: UTF-8 -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation;...
[ { "content": "#!/usr/bin/env python3\n# -*- python-mode -*-\n# -*- coding: UTF-8 -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation;...
diff --git a/docs/devices/MX Master 3 for Business B028.text b/docs/devices/MX Master 3 for Business B028.text index e5c4dad082..d0b465acbd 100644 --- a/docs/devices/MX Master 3 for Business B028.text +++ b/docs/devices/MX Master 3 for Business B028.text @@ -1,14 +1,14 @@ -Solaar version 1.1.5 +solaar version 1.1.8 ...
acl-org__acl-anthology-3022
Paper Metadata: 2023.findings-emnlp.1054 ### Confirm that this is a metadata correction - [X] I want to file corrections to make the metadata match the PDF file hosted on the ACL Anthology. ### Anthology ID 2023.findings-emnlp.1054 ### Type of Paper Metadata Correction - [X] Paper Title - [ ] Paper Abstract - [ ] ...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2019 Marcel Bollmann <marcel@bollmann.me>\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": "# -*- coding: utf-8 -*-\n#\n# Copyright 2019 Marcel Bollmann <marcel@bollmann.me>\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/bin/anthology/texmath.py b/bin/anthology/texmath.py index dedb347c9c..42e4f21509 100644 --- a/bin/anthology/texmath.py +++ b/bin/anthology/texmath.py @@ -230,4 +230,4 @@ def to_unicode(self, element): HTML tags afterwards. """ element = self.to_html(element) - return etree...
docker__docker-py-1647
DockerClient.secrets is not a property `DockerClient.secrets` is not decorated with `property` and so must be called rather than just accessed. This is inconsistent with the docs and similar collections on the client attribute (e.g. images, containers, etc.).
[ { "content": "from .api.client import APIClient\nfrom .models.containers import ContainerCollection\nfrom .models.images import ImageCollection\nfrom .models.networks import NetworkCollection\nfrom .models.nodes import NodeCollection\nfrom .models.plugins import PluginCollection\nfrom .models.secrets import Sec...
[ { "content": "from .api.client import APIClient\nfrom .models.containers import ContainerCollection\nfrom .models.images import ImageCollection\nfrom .models.networks import NetworkCollection\nfrom .models.nodes import NodeCollection\nfrom .models.plugins import PluginCollection\nfrom .models.secrets import Sec...
diff --git a/docker/client.py b/docker/client.py index 09abd6332..66ef60f3f 100644 --- a/docker/client.py +++ b/docker/client.py @@ -119,6 +119,7 @@ def plugins(self): """ return PluginCollection(client=self) + @property def secrets(self): """ An object for managing secrets...
e-valuation__EvaP-821
Revoke course approval It must be possible to revoke the approval of a course and to move it back to state `new`.
[ { "content": "import datetime\nimport random\nimport logging\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin, Group\nfrom django.core.exceptions import ValidationError\nfrom django.core.mail import EmailMessage\nfrom django.db impor...
[ { "content": "import datetime\nimport random\nimport logging\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin, Group\nfrom django.core.exceptions import ValidationError\nfrom django.core.mail import EmailMessage\nfrom django.db impor...
diff --git a/evap/evaluation/models.py b/evap/evaluation/models.py index f684e78511..0365ccd22c 100644 --- a/evap/evaluation/models.py +++ b/evap/evaluation/models.py @@ -343,7 +343,7 @@ def editor_approve(self): def staff_approve(self): pass - @transition(field=state, source='prepared', target='new'...
praw-dev__praw-1783
Typo in the Docs Just a tiny typo in the documentation of the `Comment` class: https://github.com/praw-dev/praw/blob/66234a650e67bf0c997ee3d548ae38652795a744/praw/models/reddit/comment.py#L21-L22
[ { "content": "\"\"\"Provide the Comment class.\"\"\"\nfrom typing import TYPE_CHECKING, Any, Dict, Optional, Union\n\nfrom ...const import API_PATH\nfrom ...exceptions import ClientException, InvalidURL\nfrom ...util.cache import cachedproperty\nfrom ..comment_forest import CommentForest\nfrom .base import Redd...
[ { "content": "\"\"\"Provide the Comment class.\"\"\"\nfrom typing import TYPE_CHECKING, Any, Dict, Optional, Union\n\nfrom ...const import API_PATH\nfrom ...exceptions import ClientException, InvalidURL\nfrom ...util.cache import cachedproperty\nfrom ..comment_forest import CommentForest\nfrom .base import Redd...
diff --git a/AUTHORS.rst b/AUTHORS.rst index 435408c0b..3f5bdbd51 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -26,6 +26,7 @@ Documentation Contributors - Federico Gallo `@Karmavil <https://github.com/Karmavil>`_ - Aidan Welch `@AidanWelch <https://github.com/AidanWelch>`_ - Tom Eagles `@deplorableword <https://git...
pydantic__pydantic-2053
underscore_attrs_are_private causes TypeError ### Checks - [x] I added a descriptive title to this issue - [x] I have searched (google, github) for similar issues and couldn't find anything - [x] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug # Bug Out...
[ { "content": "import warnings\nimport weakref\nfrom collections import OrderedDict, defaultdict, deque\nfrom copy import deepcopy\nfrom itertools import islice\nfrom types import BuiltinFunctionType, CodeType, FunctionType, GeneratorType, LambdaType, ModuleType\nfrom typing import (\n TYPE_CHECKING,\n Abs...
[ { "content": "import warnings\nimport weakref\nfrom collections import OrderedDict, defaultdict, deque\nfrom copy import deepcopy\nfrom itertools import islice\nfrom types import BuiltinFunctionType, CodeType, FunctionType, GeneratorType, LambdaType, ModuleType\nfrom typing import (\n TYPE_CHECKING,\n Abs...
diff --git a/Makefile b/Makefile index 8aa686f4b6e..cc5d66bcb57 100644 --- a/Makefile +++ b/Makefile @@ -134,5 +134,5 @@ docs-serve: .PHONY: publish-docs publish-docs: zip -r site.zip site - @curl -f -H "Content-Type: application/zip" -H "Authorization: Bearer ${NETLIFY}" \ + @curl -H "Content-Type: application/zip...
Mailu__Mailu-2157
Admin User Quota sorting is off Thank you for opening an issue with Mailu. Please understand that issues are meant for bugs and enhancement-requests. For **user-support questions**, reach out to us on [matrix](https://matrix.to/#/#mailu:tedomum.net). To be able to help you best, we need some more information. #...
[ { "content": "\"\"\" Mailu admin app\n\"\"\"\n\nimport flask\nimport flask_bootstrap\n\nfrom mailu import utils, debug, models, manage, configuration\n\nimport hmac\n\ndef create_app_from_config(config):\n \"\"\" Create a new application based on the given configuration\n \"\"\"\n app = flask.Flask(__n...
[ { "content": "\"\"\" Mailu admin app\n\"\"\"\n\nimport flask\nimport flask_bootstrap\n\nfrom mailu import utils, debug, models, manage, configuration\n\nimport hmac\n\ndef create_app_from_config(config):\n \"\"\" Create a new application based on the given configuration\n \"\"\"\n app = flask.Flask(__n...
diff --git a/core/admin/mailu/__init__.py b/core/admin/mailu/__init__.py index 5bb404473..3b88024f2 100644 --- a/core/admin/mailu/__init__.py +++ b/core/admin/mailu/__init__.py @@ -57,6 +57,7 @@ def inject_defaults(): return dict( signup_domains= signup_domains, config = app.co...
blaze__blaze-1359
Unexpected exceptions when combining interactive and non-interactive symbols Exception when combining an `InteractiveSymbol` with a `Symbol`: ``` python In [25]: import blaze as bz In [26]: y = bz.Symbol('y', 'float64') In [29]: iris = bz.Data('./blaze/examples/data/iris.csv') In [30]: iris.sepal_length / y Out[30]...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import Iterator\nimport decimal\nimport datetime\nfrom functools import reduce, partial\nimport itertools\nimport operator\nimport warnings\n\nfrom collections import Iterator\nfrom functools import reduce\n\nimpo...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import Iterator\nimport decimal\nimport datetime\nfrom functools import reduce, partial\nimport itertools\nimport operator\nimport warnings\n\nfrom collections import Iterator\nfrom functools import reduce\n\nimpo...
diff --git a/blaze/interactive.py b/blaze/interactive.py index 64b5e75a2..cce296a57 100644 --- a/blaze/interactive.py +++ b/blaze/interactive.py @@ -255,7 +255,7 @@ def coerce_scalar(result, dshape, odo_kwargs=None): def expr_repr(expr, n=10): # Pure Expressions, not interactive - if not expr._resources(): +...
marshmallow-code__webargs-482
Fix simple typo: objec -> object There is a small typo in src/webargs/flaskparser.py. Should read `object` rather than `objec`.
[ { "content": "\"\"\"Flask request argument parsing module.\n\nExample: ::\n\n from flask import Flask\n\n from webargs import fields\n from webargs.flaskparser import use_args\n\n app = Flask(__name__)\n\n hello_args = {\n 'name': fields.Str(required=True)\n }\n\n @app.route('/')\n ...
[ { "content": "\"\"\"Flask request argument parsing module.\n\nExample: ::\n\n from flask import Flask\n\n from webargs import fields\n from webargs.flaskparser import use_args\n\n app = Flask(__name__)\n\n hello_args = {\n 'name': fields.Str(required=True)\n }\n\n @app.route('/')\n ...
diff --git a/AUTHORS.rst b/AUTHORS.rst index cd22a8c4..0672ba3d 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -47,3 +47,4 @@ Contributors (chronological) * Nate Dellinger `@Nateyo <https://github.com/Nateyo>`_ * Karthikeyan Singaravelan `@tirkarthi <https://github.com/tirkarthi>`_ * Sami Salonen `@suola <https://git...
DataBiosphere__toil-3070
Progress bar is cool but... It requires the terminal to be `reset` when run in a screen session. Also, for cactus anyway, it spends the vast majority of the runtime at 99%/100%. ┆Issue is synchronized with this [Jira Task](https://ucsc-cgl.atlassian.net/browse/TOIL-558) ┆Issue Number: TOIL-558
[ { "content": "# Copyright (C) 2015-2016 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-...
[ { "content": "# Copyright (C) 2015-2016 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-...
diff --git a/setup.py b/setup.py index f6cde1d42b..3d2915cc54 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ def runSetup(): dateutil = 'python-dateutil' addict = 'addict<=2.2.0' pathlib2 = 'pathlib2==2.3.2' - enlighten = 'enlighten>=1.5.1, <2' + enlighten = 'enlighten>=1.5.2, <2' co...
cowrie__cowrie-1030
adding root:x:!password to userdb.txt doesn't exclude root/password as valid credentials Fresh install. I tried to exclude 'password' or 'abc123' from valid passwords for the user root Now file looks like ``` root:x:!root root:x:!123456 root:x:!password root:x:* ``` Retarted cowrie, but no way to deny l...
[ { "content": "# Copyright (c) 2009-2014 Upi Tamminen <desaster@gmail.com>\n# See the COPYRIGHT file for more information\n\n\"\"\"\nThis module contains authentication code\n\"\"\"\n\nfrom __future__ import absolute_import, division\n\nimport json\nimport re\nfrom collections import OrderedDict\nfrom os import ...
[ { "content": "# Copyright (c) 2009-2014 Upi Tamminen <desaster@gmail.com>\n# See the COPYRIGHT file for more information\n\n\"\"\"\nThis module contains authentication code\n\"\"\"\n\nfrom __future__ import absolute_import, division\n\nimport json\nimport re\nfrom collections import OrderedDict\nfrom os import ...
diff --git a/src/cowrie/core/auth.py b/src/cowrie/core/auth.py index 1541b6d4cd..7a3f8edde1 100644 --- a/src/cowrie/core/auth.py +++ b/src/cowrie/core/auth.py @@ -98,7 +98,7 @@ def adduser(self, login, passwd): """ login = self.re_or_str(login) - if passwd[0] == b'!': + if passwd[0] ==...
hydroshare__hydroshare-5098
Haystack rest endpoint response serializer does not include short_id **Description of the bug** The Haystack REST endpoint for complex solr searches does not include the short_id into the response serializer. This is a critical piece of information for users of this endpoint. Steps to reproduce the bug: https:/...
[ { "content": "from drf_haystack.serializers import HaystackSerializer\nfrom drf_haystack.viewsets import HaystackViewSet\nfrom hs_core.search_indexes import BaseResourceIndex\nfrom hs_core.models import BaseResource\nfrom drf_haystack.fields import HaystackCharField, HaystackDateField, HaystackMultiValueField, ...
[ { "content": "from drf_haystack.serializers import HaystackSerializer\nfrom drf_haystack.viewsets import HaystackViewSet\nfrom hs_core.search_indexes import BaseResourceIndex\nfrom hs_core.models import BaseResource\nfrom drf_haystack.fields import HaystackCharField, HaystackDateField, HaystackMultiValueField, ...
diff --git a/hs_rest_api/discovery.py b/hs_rest_api/discovery.py index faf613057d..71efe1b41f 100755 --- a/hs_rest_api/discovery.py +++ b/hs_rest_api/discovery.py @@ -13,6 +13,7 @@ class DiscoveryResourceSerializer(HaystackSerializer): class Meta: index_classes = [BaseResourceIndex] fields = [ + ...
googleapis__python-bigquery-306
Needs protobuf minimum version 3.12.0 If you are still having issues, please be sure to include as much information as possible: #### Environment details - OS type and version: MacOS - Python version: `python --version` 3.8 - pip version: `pip --version` 20.2.3 - `google-cloud-bigquery` version: `pip s...
[ { "content": "# Copyright 2018 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 applicabl...
[ { "content": "# Copyright 2018 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 applicabl...
diff --git a/setup.py b/setup.py index abd5cef95..c7410601e 100644 --- a/setup.py +++ b/setup.py @@ -34,6 +34,7 @@ "google-cloud-core >= 1.4.1, < 2.0dev", "google-resumable-media >= 0.6.0, < 2.0dev", "six >=1.13.0,< 2.0.0dev", + "protobuf >= 3.12.0", ] extras = { "bqstorage": [ diff --git a/tes...
xorbitsai__inference-87
BUG: too many clients ### Describe the bug When running the model_ref.generate() function in iPython, there seems to be a client created for every word generation, eventually leading to the following error: `gaierror: [Errno 8] nodename nor servname provided, or not known` ### To Reproduce `python -m plexar.d...
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/plexar/__init__.py b/plexar/__init__.py index 27261e73f0..99ddef38b0 100644 --- a/plexar/__init__.py +++ b/plexar/__init__.py @@ -19,8 +19,12 @@ def install(): + from xoscar.backends.router import Router + from .model import install as install_model + default_router = Router.get_instance_...
pyro-ppl__numpyro-1136
SA kernel missing model attribute Trying to load an MCMC run using an SA kernel into `arviz`, I ran into this issue: ``` def test_model(...) ... kernel = SA(test_model) mcmc_test = MCMC(kernel, ...) mcmc_test.run(...) data_test = az.from_numpyro(mcmc_test) ``` which raises... ```-------------------...
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom collections import namedtuple\n\nfrom jax import device_put, lax, random, vmap\nfrom jax.flatten_util import ravel_pytree\nimport jax.numpy as jnp\nfrom jax.scipy.special import logsumexp\n\nimport numpyro...
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom collections import namedtuple\n\nfrom jax import device_put, lax, random, vmap\nfrom jax.flatten_util import ravel_pytree\nimport jax.numpy as jnp\nfrom jax.scipy.special import logsumexp\n\nimport numpyro...
diff --git a/numpyro/infer/sa.py b/numpyro/infer/sa.py index 999aa4b50..15fd03f1f 100644 --- a/numpyro/infer/sa.py +++ b/numpyro/infer/sa.py @@ -365,6 +365,10 @@ def init( self._sample_fn = sample_fn return init_state + @property + def model(self): + return self._model + @prope...
iterative__dvc-5752
exp show: table misaligned for queued experiments # Bug Report ## Description `dvc exp show` misaligns columns for queued experiments. ### Reproduce ```console $ git clone git@github.com:iterative/example-get-started.git $ cd example-get-started $ pip install -r src/requirements.txt $ dvc pull data/da...
[ { "content": "import argparse\nimport logging\nfrom collections import Counter, OrderedDict, defaultdict\nfrom collections.abc import Mapping\nfrom datetime import date, datetime\nfrom itertools import groupby\nfrom typing import Dict, Iterable, Optional\n\nimport dvc.prompt as prompt\nfrom dvc.command import c...
[ { "content": "import argparse\nimport logging\nfrom collections import Counter, OrderedDict, defaultdict\nfrom collections.abc import Mapping\nfrom datetime import date, datetime\nfrom itertools import groupby\nfrom typing import Dict, Iterable, Optional\n\nimport dvc.prompt as prompt\nfrom dvc.command import c...
diff --git a/dvc/command/experiments.py b/dvc/command/experiments.py index b8180a1c9d..90d860c8c2 100644 --- a/dvc/command/experiments.py +++ b/dvc/command/experiments.py @@ -268,7 +268,8 @@ def _extend_row(row, names, items, precision): from rich.text import Text if not items: - row.extend(["-"] * l...
ManimCommunity__manim-1879
v0.9.0 is installed but poetry shell says: You are using manim version v0.6.0, but version v0.9.0 is available. ## Description of bug / unexpected behavior <!-- Add a clear and concise description of the problem you encountered. --> v0.9.0 is installed but poetry shell says: `You are using manim version v0.6.0, but...
[ { "content": "#!/usr/bin/env python\n\n# flake8: noqa\n\ntry:\n import importlib.metadata as importlib_metadata\nexcept ModuleNotFoundError:\n import importlib_metadata\n\n__version__ = importlib_metadata.version(__name__)\n\n\nimport sys\n\n# Importing the config module should be the first thing we do, s...
[ { "content": "#!/usr/bin/env python\n\n# flake8: noqa\n\nimport pkg_resources\n\n__version__ = pkg_resources.get_distribution(__name__).version\n\n\nimport sys\n\n# Importing the config module should be the first thing we do, since other\n# modules depend on the global config dict for initialization.\nfrom ._co...
diff --git a/manim/__init__.py b/manim/__init__.py index 3b6cf0bd9d..516c80c93c 100644 --- a/manim/__init__.py +++ b/manim/__init__.py @@ -2,12 +2,9 @@ # flake8: noqa -try: - import importlib.metadata as importlib_metadata -except ModuleNotFoundError: - import importlib_metadata +import pkg_resources -__ve...
django-cms__django-cms-2189
FIxes doc issues listed in #2148 Index stops yielding 404 Link to changes of 3.0 works.
[ { "content": "# -*- coding: utf-8 -*-\n#\n# django cms documentation build configuration file, created by\n# sphinx-quickstart on Tue Sep 15 10:47:03 2009.\n#\n# This file is execfile()d with the current directory set to its containing\n# dir.\n#\n# Note that not all possible configuration values are present in...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# django cms documentation build configuration file, created by\n# sphinx-quickstart on Tue Sep 15 10:47:03 2009.\n#\n# This file is execfile()d with the current directory set to its containing\n# dir.\n#\n# Note that not all possible configuration values are present in...
diff --git a/docs/conf.py b/docs/conf.py index 4d82d357ef6..81c9fa7abfa 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -38,7 +38,7 @@ } # Add any paths that contain templates here, relative to this directory. -templates_path = ['templates'] +#templates_path = ['templates'] # The suffix of source filenames. sou...
pyodide__pyodide-3136
The content area in the docs is too narrow ## 📚 Documentation In the documentation strings, rendered code examples only fit 63 characters of width. It would be nice if we could make the content area a bit larger so that code examples fit at least 80 characters. On my screen, the content area is exactly the middle t...
[ { "content": "# Configuration file for the Sphinx documentation builder.\n\n# -- Path setup --------------------------------------------------------------\n\nimport atexit\nimport os\nimport shutil\nimport subprocess\nimport sys\nfrom pathlib import Path\nfrom typing import Any\nfrom unittest import mock\n\n# -...
[ { "content": "# Configuration file for the Sphinx documentation builder.\n\n# -- Path setup --------------------------------------------------------------\n\nimport atexit\nimport os\nimport shutil\nimport subprocess\nimport sys\nfrom pathlib import Path\nfrom typing import Any\nfrom unittest import mock\n\npan...
diff --git a/docs/conf.py b/docs/conf.py index ebb8f25a10c..37839824f3f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -11,6 +11,8 @@ from typing import Any from unittest import mock +panels_add_bootstrap_css = False + # -- Project information ----------------------------------------------------- project = "Py...
pyca__cryptography-2522
Unpin pytest revert https://github.com/pyca/cryptography/pull/2513 waiting on a pytest release with https://github.com/pytest-dev/pytest/issues/1238 landed
[ { "content": "#!/usr/bin/env python\n\n# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport pl...
[ { "content": "#!/usr/bin/env python\n\n# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport pl...
diff --git a/dev-requirements.txt b/dev-requirements.txt index 9aca5dd4411d..c409ff9217e2 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -7,7 +7,7 @@ iso8601 pep8-naming pretend pyasn1_modules -pytest!=2.8.4 +pytest requests sphinx==1.3.1 sphinx_rtd_theme diff --git a/setup.py b/setup.py index 43...
mathesar-foundation__mathesar-841
Use correct test client parameters when sending json body payload ## Problem Currently, When sending a request containing a json payload using the Django rest framework test client, the payload is being converted into a string using `json.dumps` but the Django rest framework provides convenience parameters that does t...
[ { "content": "\"\"\"\nDjango settings for config project.\n\nGenerated by 'django-admin startproject' using Django 3.1.7.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/3....
[ { "content": "\"\"\"\nDjango settings for config project.\n\nGenerated by 'django-admin startproject' using Django 3.1.7.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/3....
diff --git a/config/settings.py b/config/settings.py index 931c6d9819..893f81add3 100644 --- a/config/settings.py +++ b/config/settings.py @@ -175,6 +175,7 @@ def pipe_delim(pipe_string): 'django_filters.rest_framework.DjangoFilterBackend', 'rest_framework.filters.OrderingFilter', ), + 'TEST_R...
ioos__compliance-checker-252
Misplaced High/Highly Recommended attribute checks for ACDD check in plaintext output When invoking compliance checker against one of the test data files with the ACDD check, some of the highly recommended attributes are misplaced. `python cchecker.py -t acdd compliance_checker/tests/data/2dim-grid.nc > cc_output.tx...
[ { "content": "\"\"\"\nCompliance Checker suite runner\n\"\"\"\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport sys\nimport inspect\nimport itertools\nimport json\nfrom netCDF4 import Dataset\nfrom lxml import etree as ET\nfrom compliance_checker.base import fix_return_va...
[ { "content": "\"\"\"\nCompliance Checker suite runner\n\"\"\"\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport sys\nimport inspect\nimport itertools\nimport json\nfrom netCDF4 import Dataset\nfrom lxml import etree as ET\nfrom compliance_checker.base import fix_return_va...
diff --git a/compliance_checker/suite.py b/compliance_checker/suite.py index e2f683ef..bdb57921 100644 --- a/compliance_checker/suite.py +++ b/compliance_checker/suite.py @@ -280,6 +280,8 @@ def get_points(self, groups, limit): points = sum(points) out_of = sum(out_of) + # sorts lists into hi...
e2nIEE__pandapower-136
3W transformer equivalent can have zero impedance For three-winding transformers with specific parameters it is possible to get equivalent transformers with zero impedance. While this is probably due to bad data, currently pandapower does not check this and the powerflow does not convergence with the warning Runtim...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2018 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n# Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.\n\nimp...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2018 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n# Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.\n\nimp...
diff --git a/pandapower/build_branch.py b/pandapower/build_branch.py index ca16f704a..f8ee1e0be 100644 --- a/pandapower/build_branch.py +++ b/pandapower/build_branch.py @@ -497,6 +497,8 @@ def _trafo_df_from_trafo3w(net): i += 1 trafo_df = pd.DataFrame.from_dict(trafos2w, orient="index") + if any(tra...
replicate__cog-653
Support lists of `BaseModel` for outputs The following model fails on Replicate.com with a cryptic `Can't pickle <class 'predict.Output'>: it's not the same object as predict.Output` error: ```python class Output(BaseModel): foo: str bar: str class Predictor(BasePredictor): def predict(self) -> Li...
[ { "content": "import multiprocessing\nimport types\nfrom enum import Enum\nfrom multiprocessing.connection import Connection\nfrom typing import Any, Dict, List, Optional\n\nfrom pydantic import BaseModel\n\nfrom ..predictor import load_config, load_predictor\nfrom .log_capture import capture_log\n\n\nclass Pre...
[ { "content": "import multiprocessing\nimport types\nfrom enum import Enum\nfrom multiprocessing.connection import Connection\nfrom typing import Any, Dict, List, Optional\n\nfrom pydantic import BaseModel\n\nfrom ..predictor import load_config, load_predictor\nfrom .log_capture import capture_log\n\n\nclass Pre...
diff --git a/python/cog/server/runner.py b/python/cog/server/runner.py index 1df297e4ef..ade25f43de 100644 --- a/python/cog/server/runner.py +++ b/python/cog/server/runner.py @@ -248,5 +248,7 @@ class Output(BaseModel): """ if isinstance(obj, BaseModel): return obj.dict(exclude_unset=True) + elif ...
gratipay__gratipay.com-1237
ImportError: cannot import name Participant I get this when running some of the test scripts individually.
[ { "content": "\"\"\"Defines a Participant class.\n\"\"\"\nimport random\nimport re\nimport uuid\nfrom decimal import Decimal\n\nimport gittip\nfrom aspen import Response\nfrom aspen.utils import typecheck\nfrom psycopg2 import IntegrityError\nfrom gittip.models import community\n\n\nASCII_ALLOWED_IN_USERNAME = ...
[ { "content": "\"\"\"Defines a Participant class.\n\"\"\"\nimport random\nimport re\nimport uuid\nfrom decimal import Decimal\n\nimport gittip\nfrom aspen import Response\nfrom aspen.utils import typecheck\nfrom psycopg2 import IntegrityError\n\n\nASCII_ALLOWED_IN_USERNAME = set(\"0123456789\"\n ...
diff --git a/gittip/participant.py b/gittip/participant.py index 0b39b4e88b..f10b246f7c 100644 --- a/gittip/participant.py +++ b/gittip/participant.py @@ -9,7 +9,6 @@ from aspen import Response from aspen.utils import typecheck from psycopg2 import IntegrityError -from gittip.models import community ASCII_ALLOW...
optuna__optuna-5306
Feature to determine whether `GridSampler` has exhausted the grid ### Motivation Currently, there is no good way in which we can determine whether the grid of `GridSampler` is exhausted when resuming a study. While the method `_get_unvisited_grid_ids()` exists, it is a protected method and should not be used outsid...
[ { "content": "import itertools\nfrom numbers import Real\nfrom typing import Any\nfrom typing import Dict\nfrom typing import List\nfrom typing import Mapping\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Union\nimport warnings\n\nimport numpy as np\n\nfrom optuna.distributions i...
[ { "content": "import itertools\nfrom numbers import Real\nfrom typing import Any\nfrom typing import Dict\nfrom typing import List\nfrom typing import Mapping\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Union\nimport warnings\n\nimport numpy as np\n\nfrom optuna.distributions i...
diff --git a/optuna/samplers/_grid.py b/optuna/samplers/_grid.py index 2355b7b466..722ca460d4 100644 --- a/optuna/samplers/_grid.py +++ b/optuna/samplers/_grid.py @@ -277,3 +277,9 @@ def _same_search_space(self, search_space: Mapping[str, Sequence[GridValueType]] return False return True...
ipython__ipython-3556
_margv for macros seems to be missing At one point in time, arguments to macro's could be obtained from _margv , but this seems to be missing now ( https://github.com/ipython/ipython/wiki/Cookbook:-Macro-arguments ). I searched the entire ipython folder and only found _margv in the documentation in the macro.py fi...
[ { "content": "\"\"\"Support for interactive macros in IPython\"\"\"\n\n#*****************************************************************************\n# Copyright (C) 2001-2005 Fernando Perez <fperez@colorado.edu>\n#\n# Distributed under the terms of the BSD License. The full license is in\n# the file ...
[ { "content": "\"\"\"Support for interactive macros in IPython\"\"\"\n\n#*****************************************************************************\n# Copyright (C) 2001-2005 Fernando Perez <fperez@colorado.edu>\n#\n# Distributed under the terms of the BSD License. The full license is in\n# the file ...
diff --git a/IPython/core/macro.py b/IPython/core/macro.py index ca46266d358..8d567994327 100644 --- a/IPython/core/macro.py +++ b/IPython/core/macro.py @@ -19,8 +19,6 @@ class Macro(object): Macro is just a callable that executes a string of IPython input when called. - - Args to macro are available...
cloudtools__troposphere-2238
Update DLM Interval Rule Values Update DLM valid intervals. `1` has been added. [DLM interval rule allows ](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html)
[ { "content": "# Copyright (c) 2012-2022, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\n\nfrom . import tags_or_list\n\n\ndef validate_tags_or_list(x):\n \"\"\"\n Property: LifecyclePolicy.Tags\n Property: PolicyDetails.TargetTags\n Property: Schedule.T...
[ { "content": "# Copyright (c) 2012-2022, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\n\nfrom . import tags_or_list\n\n\ndef validate_tags_or_list(x):\n \"\"\"\n Property: LifecyclePolicy.Tags\n Property: PolicyDetails.TargetTags\n Property: Schedule.T...
diff --git a/troposphere/validators/dlm.py b/troposphere/validators/dlm.py index 8607402d8..7104742a9 100644 --- a/troposphere/validators/dlm.py +++ b/troposphere/validators/dlm.py @@ -22,7 +22,7 @@ def validate_interval(interval): Property: CreateRule.Interval """ - VALID_INTERVALS = (2, 3, 4, 6, 8, 12,...
Pycord-Development__pycord-1218
Mypy can't type check pycord when namespace_packages are enabled ### Summary Mypy errors when using pycord with namespace_packages flag enabled ### Reproduction Steps Run mypy against a simple pycord setup. An example set up is as follows: ``` my-repo/ ├─ my_bot/ │ ├─ bot.py .mypy.ini ``` Run my...
[ { "content": "\"\"\"\nDiscord API Wrapper\n~~~~~~~~~~~~~~~~~~~\n\nA basic wrapper for the Discord API.\n\n:copyright: (c) 2015-2021 Rapptz & (c) 2021-present Pycord Development\n:license: MIT, see LICENSE for more details.\n\n\"\"\"\n\n__title__ = \"pycord\"\n__author__ = \"Pycord Development\"\n__license__ = \...
[ { "content": "\"\"\"\nDiscord API Wrapper\n~~~~~~~~~~~~~~~~~~~\n\nA basic wrapper for the Discord API.\n\n:copyright: (c) 2015-2021 Rapptz & (c) 2021-present Pycord Development\n:license: MIT, see LICENSE for more details.\n\n\"\"\"\n\n__title__ = \"pycord\"\n__author__ = \"Pycord Development\"\n__license__ = \...
diff --git a/discord/__init__.py b/discord/__init__.py index 23b819fbe8..5709c31f96 100644 --- a/discord/__init__.py +++ b/discord/__init__.py @@ -30,7 +30,7 @@ from .client import * from .cog import Cog from .colour import * -from .commands.__init__ import * +from .commands import * from .components import * from...
pytorch__rl-530
[BUG] `inferece_mode` decorator is preventing `state_dict` loading ## Describe the bug See title ## To Reproduce Running example command `python sac.py` results in the following error: ``` Traceback (most recent call last): File "/Users/haoranpeng/Desktop/rl/examples/sac/sac.py", line 198, in main re...
[ { "content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom dataclasses import dataclass\nfrom dataclasses import field as dataclass_field\nfrom typing import Callable,...
[ { "content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom dataclasses import dataclass\nfrom dataclasses import field as dataclass_field\nfrom typing import Callable,...
diff --git a/torchrl/trainers/helpers/envs.py b/torchrl/trainers/helpers/envs.py index b01823e32ef..f5349a4766a 100644 --- a/torchrl/trainers/helpers/envs.py +++ b/torchrl/trainers/helpers/envs.py @@ -351,7 +351,7 @@ def parallel_env_constructor( return parallel_env -@torch.inference_mode() +@torch.no_grad() ...
crytic__slither-1229
slither fails with no detectors results and sarif output ### Describe the issue: Running for example ``` slither --exclude-informational tests/test_node_modules/node_modules/@openzeppelin/contracts/utils/math/Math.sol --sarif slither.sarif ``` Leads to a crash ``` tests/test_node_modules/node_modules/@open...
[ { "content": "import hashlib\nimport os\nimport json\nimport logging\nimport zipfile\nfrom collections import OrderedDict\nfrom typing import Optional, Dict, List, Union, Any, TYPE_CHECKING\nfrom zipfile import ZipFile\nfrom pkg_resources import require\n\nfrom slither.core.cfg.node import Node\nfrom slither.co...
[ { "content": "import hashlib\nimport os\nimport json\nimport logging\nimport zipfile\nfrom collections import OrderedDict\nfrom typing import Optional, Dict, List, Union, Any, TYPE_CHECKING\nfrom zipfile import ZipFile\nfrom pkg_resources import require\n\nfrom slither.core.cfg.node import Node\nfrom slither.co...
diff --git a/slither/utils/output.py b/slither/utils/output.py index 16c9f5bbf0..6ee59b4c6f 100644 --- a/slither/utils/output.py +++ b/slither/utils/output.py @@ -160,7 +160,7 @@ def output_to_sarif( ], } - for detector in results["detectors"]: + for detector in results.get("detectors", []): ...
facebookresearch__ParlAI-4892
OSError: File /checkpoint/meganu/projects/safety_failures/recovery/model_templates/blender_3B/model.dict-vocab.json does not exist. --bpe-vocab must be pretrained. **Bug description** Please enter a clear and concise description of what the bug is. When I execute: ```sh $python -m parlai eval_model --task fromf...
[ { "content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\n\"\"\"\nBlender 2.7B model fine-tuned on the SaFeRDialogues and BST (without persona) tasks....
[ { "content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\n\"\"\"\nBlender 2.7B model fine-tuned on the SaFeRDialogues and BST (without persona) tasks....
diff --git a/parlai/zoo/saferdialogues/build.py b/parlai/zoo/saferdialogues/build.py index 0b2ab421822..ed8e5946a86 100644 --- a/parlai/zoo/saferdialogues/build.py +++ b/parlai/zoo/saferdialogues/build.py @@ -13,7 +13,7 @@ def download(datapath): opt = {'datapath': datapath} - version = 'v0.1' + version =...
pypa__pip-9333
Move slow check_manifest out of .pre-commit-config.yaml The check-manifest pre-commit hook is by far the slowest of the checks, in particular when committing a few files. When pre-commit is installed locally as a pre-commit hook, it tends to slow down the development flow significantly. Could we move it out of th...
[ { "content": "\"\"\"Automation using nox.\n\"\"\"\n\n# The following comment should be removed at some point in the future.\n# mypy: disallow-untyped-defs=False\n\nimport glob\nimport os\nimport shutil\nimport sys\nfrom pathlib import Path\n\nimport nox\n\nsys.path.append(\".\")\nfrom tools.automation import re...
[ { "content": "\"\"\"Automation using nox.\n\"\"\"\n\n# The following comment should be removed at some point in the future.\n# mypy: disallow-untyped-defs=False\n\nimport glob\nimport os\nimport shutil\nimport sys\nfrom pathlib import Path\n\nimport nox\n\nsys.path.append(\".\")\nfrom tools.automation import re...
diff --git a/.pre-commit-config-slow.yaml b/.pre-commit-config-slow.yaml new file mode 100644 index 00000000000..2179c665769 --- /dev/null +++ b/.pre-commit-config-slow.yaml @@ -0,0 +1,7 @@ +# Slow pre-commit checks we don't want to run locally with each commit. + +repos: +- repo: https://github.com/mgedmin/check-manif...
cornellius-gp__gpytorch-871
[Bug] SumBatchLazyTensor size is inconsistent with indices # 🐛 Bug I want to do a KroneckerProductLazyTensor on a batch of lazyTensor `x` times, then SumBatchLazyTensor and then get a specific row and finally evaluate. The code works if I first do an evaluation on the `sum_a` then retrieve the row (which is ineffic...
[ { "content": "#!/usr/bin/env python3\n\nimport torch\nfrom .block_lazy_tensor import BlockLazyTensor\nfrom ..utils.broadcasting import _pad_with_singletons\nfrom ..utils.getitem import _noop_index\n\n\nclass SumBatchLazyTensor(BlockLazyTensor):\n \"\"\"\n Represents a lazy tensor that is actually the sum ...
[ { "content": "#!/usr/bin/env python3\n\nimport torch\nfrom .block_lazy_tensor import BlockLazyTensor\nfrom ..utils.broadcasting import _pad_with_singletons\nfrom ..utils.getitem import _noop_index\n\n\nclass SumBatchLazyTensor(BlockLazyTensor):\n \"\"\"\n Represents a lazy tensor that is actually the sum ...
diff --git a/gpytorch/lazy/sum_batch_lazy_tensor.py b/gpytorch/lazy/sum_batch_lazy_tensor.py index 7d9f738c2..171b38379 100644 --- a/gpytorch/lazy/sum_batch_lazy_tensor.py +++ b/gpytorch/lazy/sum_batch_lazy_tensor.py @@ -54,3 +54,6 @@ def _size(self): def diag(self): diag = self.base_lazy_tensor.diag().su...
pymedusa__Medusa-3547
codec can't encode characters in position 29-36 ### Before submitting your issue: Enable debug logging in Medusa settings, reproduce the error (be sure to disable after the bug is fixed) **Branch/Commit:** feature/add-indexerids-to-db/4bdbd81 **OS:** windows **What you did:** Started up medusa while having the ...
[ { "content": "# coding=utf-8\n\n\"\"\"Style Adapters for Python logging.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport collections\nimport functools\nimport logging\nimport traceback\n\nfrom six import text_type\n\nlog = logging.getLogger(__name__)\nlog.addHandler(logging.NullHandler())\n\n\nclass ...
[ { "content": "# coding=utf-8\n\n\"\"\"Style Adapters for Python logging.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport collections\nimport functools\nimport logging\nimport traceback\n\nfrom six import text_type\n\nlog = logging.getLogger(__name__)\nlog.addHandler(logging.NullHandler())\n\n\nclass ...
diff --git a/medusa/logger/adapters/style.py b/medusa/logger/adapters/style.py index 483261e45b..cf280f6a5e 100644 --- a/medusa/logger/adapters/style.py +++ b/medusa/logger/adapters/style.py @@ -33,7 +33,7 @@ def __str__(self): args = [] kwargs = self.args[0] - msg = str(self....
ethereum__consensus-specs-1522
Test coverage: attester slashings with duplicated attesting indices While updating to v0.9.1 I noticed that the spec allows validator indices to be duplicated in `IndexedAttestation`s. In Lighthouse our function to check the sorting of the indices was also (incorrectly) checking for duplicates, which wasn't picked up b...
[ { "content": "import re\nfrom function_puller import (\n get_spec,\n SpecObject,\n)\nfrom argparse import ArgumentParser\nfrom typing import (\n Dict,\n Optional,\n)\n\n\nPHASE0_IMPORTS = '''from typing import (\n Any, Dict, Set, Sequence, Tuple, Optional\n)\n\nfrom dataclasses import (\n data...
[ { "content": "import re\nfrom function_puller import (\n get_spec,\n SpecObject,\n)\nfrom argparse import ArgumentParser\nfrom typing import (\n Dict,\n Optional,\n)\n\n\nPHASE0_IMPORTS = '''from typing import (\n Any, Dict, Set, Sequence, Tuple, Optional\n)\n\nfrom dataclasses import (\n data...
diff --git a/.circleci/config.yml b/.circleci/config.yml index b612378e24..19ab1543aa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -103,6 +103,15 @@ jobs: command: make citest - store_test_results: path: test_libs/pyspec/test-reports + table_of_contents: + docker: + ...
magenta__magenta-785
numpy dependency missing? magenta/models/sketch_rnn/utils.py has ```import numpy as np```, but magenta/tools/pip/setup.py doesn't list it as a dependency.
[ { "content": "# Copyright 2016 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ...
[ { "content": "# Copyright 2016 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ...
diff --git a/magenta/tools/pip/setup.py b/magenta/tools/pip/setup.py index b37e9c8cce..8a1f5e55cb 100644 --- a/magenta/tools/pip/setup.py +++ b/magenta/tools/pip/setup.py @@ -31,6 +31,7 @@ 'intervaltree >= 2.1.0', 'matplotlib >= 1.5.3', 'mido == 1.2.6', + 'numpy >= 1.11.0', 'pandas >= 0.18.1', ...
conda__conda-2772
conda update conda doesn't get latest conda-env It's annoying we even have this problem, but... ``` root@default:~ # conda update conda Fetching package metadata: ...... .Solving package specifications: ......... Package plan for installation in environment /usr/local: The following packages will be downloaded: ...
[ { "content": "\"\"\"\nHandle the planning of installs and their execution.\n\nNOTE:\n conda.install uses canonical package names in its interface functions,\n whereas conda.resolve uses package filenames, as those are used as index\n keys. We try to keep fixes to this \"impedance mismatch\" local to t...
[ { "content": "\"\"\"\nHandle the planning of installs and their execution.\n\nNOTE:\n conda.install uses canonical package names in its interface functions,\n whereas conda.resolve uses package filenames, as those are used as index\n keys. We try to keep fixes to this \"impedance mismatch\" local to t...
diff --git a/conda/plan.py b/conda/plan.py index 401cc18cba9..e54a336fd13 100644 --- a/conda/plan.py +++ b/conda/plan.py @@ -442,6 +442,7 @@ def install_actions(prefix, index, specs, force=False, only_names=None, always_c if auto_update_conda and is_root_prefix(prefix): specs.append('conda') + sp...
mkdocs__mkdocs-2366
build --no-directory-urls feature not working Hello. I created new project using ``` mkdocs new . mkdocs build --no-directory-urls ``` Still when I try to visit home page I am brought to . directory instead of .\index.html Sorry for some russian text :D ![image](https://user-images.githubusercontent.com/3...
[ { "content": "import os\nimport logging\nfrom urllib.parse import urlparse, urlunparse, urljoin\nfrom urllib.parse import unquote as urlunquote\n\nimport markdown\nfrom markdown.extensions import Extension\nfrom markdown.treeprocessors import Treeprocessor\nfrom markdown.util import AMP_SUBSTITUTE\n\nfrom mkdoc...
[ { "content": "import os\nimport logging\nfrom urllib.parse import urlparse, urlunparse, urljoin\nfrom urllib.parse import unquote as urlunquote\n\nimport markdown\nfrom markdown.extensions import Extension\nfrom markdown.treeprocessors import Treeprocessor\nfrom markdown.util import AMP_SUBSTITUTE\n\nfrom mkdoc...
diff --git a/docs/about/release-notes.md b/docs/about/release-notes.md index 1258587f87..2c160dc367 100644 --- a/docs/about/release-notes.md +++ b/docs/about/release-notes.md @@ -131,6 +131,7 @@ The `mkdocs.utils.warning_filter` is deprecated and now does nothing. Plugins the corresponding 2.3.9 version (#2306). * ...
scikit-hep__pyhf-2068
docs build failing on Pygments lexter warning Hm. Something related to https://github.com/spatialaudio/nbsphinx/issues/24 is breaking the docs build. We're getting ```pytb WARNING: Pygments lexer name 'ipython3' is not known ``` for all the notebooks during the docs build and we fail on warnings. _Originally...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow>=2.7.0', # c.f. PR #1962\n 'tensorflow-probability>=0.11.0', # c.f. PR #1657\n ],\n 'torch': ['torch>=1.10.0'], # c.f. PR #1657\n 'jax': ['jax...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow>=2.7.0', # c.f. PR #1962\n 'tensorflow-probability>=0.11.0', # c.f. PR #1657\n ],\n 'torch': ['torch>=1.10.0'], # c.f. PR #1657\n 'jax': ['jax...
diff --git a/setup.py b/setup.py index a0c48627f5..167ce598ad 100644 --- a/setup.py +++ b/setup.py @@ -58,6 +58,7 @@ 'sphinx-issues', 'sphinx-copybutton>=0.3.2', 'sphinx-togglebutton>=0.3.0', + 'ipython!=8.7.0', # c.f. https://github.com/scikit-hep/pyhf/pull/2068 ...
openstates__openstates-scrapers-2283
OK failing since at least 2018-05-06 OK has been failing since 2018-05-06 Based on automated runs it appears that OK has not run successfully in 2 days (2018-05-06). ``` /opt/openstates/venv-pupa/lib/python3.5/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from rele...
[ { "content": "from pupa.scrape import Jurisdiction, Organization\nfrom .people import OKPersonScraper\nfrom .committees import OKCommitteeScraper\n# from .events import OKEventScraper\nfrom .bills import OKBillScraper\n\n\nclass Oklahoma(Jurisdiction):\n division_id = \"ocd-division/country:us/state:ok\"\n ...
[ { "content": "from pupa.scrape import Jurisdiction, Organization\nfrom .people import OKPersonScraper\nfrom .committees import OKCommitteeScraper\n# from .events import OKEventScraper\nfrom .bills import OKBillScraper\n\n\nclass Oklahoma(Jurisdiction):\n division_id = \"ocd-division/country:us/state:ok\"\n ...
diff --git a/openstates/ok/__init__.py b/openstates/ok/__init__.py index c4d7e3772c..2159828080 100644 --- a/openstates/ok/__init__.py +++ b/openstates/ok/__init__.py @@ -69,6 +69,7 @@ class Oklahoma(Jurisdiction): }, ] ignored_scraped_sessions = [ + "2019 Regular Session", "2017 Regu...
opsdroid__opsdroid-1504
Cisco WebEx Teams connector doesn't start # Error ``` INFO opsdroid.logging: ======================================== INFO opsdroid.logging: Started opsdroid 0+unknown. WARNING opsdroid: 'welcome-message: true/false' is missing in configuration.yaml WARNING opsdroid.loader: No databases in configuration. This wi...
[ { "content": "\"\"\"A connector for Webex Teams.\"\"\"\nimport json\nimport logging\nimport uuid\nimport os\n\nimport aiohttp\n\nfrom webexteamssdk import WebexTeamsAPI\nfrom voluptuous import Required, Url\n\nfrom opsdroid.connector import Connector, register_event\nfrom opsdroid.events import Message\n\n\n_LO...
[ { "content": "\"\"\"A connector for Webex Teams.\"\"\"\nimport json\nimport logging\nimport uuid\nimport os\n\nimport aiohttp\n\nfrom webexteamssdk import WebexTeamsAPI\nfrom voluptuous import Required, Url\n\nfrom opsdroid.connector import Connector, register_event\nfrom opsdroid.events import Message\n\n\n_LO...
diff --git a/opsdroid/connector/webexteams/__init__.py b/opsdroid/connector/webexteams/__init__.py index bb94ec2c9..eda32060a 100644 --- a/opsdroid/connector/webexteams/__init__.py +++ b/opsdroid/connector/webexteams/__init__.py @@ -14,7 +14,7 @@ _LOGGER = logging.getLogger(__name__) -CONFIG_SCHEMA = {Required("we...
sunpy__sunpy-2561
Document the CI DOCUMENT ALL THE THINGS
[ { "content": "from __future__ import absolute_import\n\nfrom sunpy.net.attr import AttrWalker, AttrAnd, AttrOr\nfrom sunpy.net.vso.attrs import _VSOSimpleAttr\nfrom sunpy.net.vso.attrs import Time, Wavelength\n\n\n__all__ = ['Series', 'Protocol', 'Notify', 'Compression', 'Segment']\n\n\nclass Series(_VSOSimpleA...
[ { "content": "from __future__ import absolute_import\n\nfrom sunpy.net.attr import AttrWalker, AttrAnd, AttrOr\nfrom sunpy.net.vso.attrs import _VSOSimpleAttr\nfrom sunpy.net.vso.attrs import Time, Wavelength\n\n\n__all__ = ['Series', 'Protocol', 'Notify', 'Compression', 'Segment']\n\n\nclass Series(_VSOSimpleA...
diff --git a/.rtd-environment.yml b/.rtd-environment.yml deleted file mode 100644 index 7b58577039d..00000000000 --- a/.rtd-environment.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: sunpy-rtd -channels: - - conda-forge -dependencies: -- astropy>=2.0 -- beautifulsoup4 -- cairo -- contextlib2 -- cycler -- cython -- db -- ...
liqd__a4-meinberlin-1970
district, topic and localisation for external projects and bplans external projects also need district, topic and localisation as the other projects do. same is true for b-plans as not all of them come via imperia
[ { "content": "import json\nimport logging\nimport urllib\n\nfrom background_task import background\n\nfrom adhocracy4.administrative_districts.models import AdministrativeDistrict\nfrom meinberlin.apps.bplan.models import Bplan\n\nlogger = logging.getLogger(__name__)\n\n\ndef get_features_from_bplan_api(endpoin...
[ { "content": "import json\nimport logging\nimport urllib\n\nfrom background_task import background\n\nfrom adhocracy4.administrative_districts.models import AdministrativeDistrict\nfrom meinberlin.apps.bplan.models import Bplan\n\nlogger = logging.getLogger(__name__)\n\n\ndef get_features_from_bplan_api(endpoin...
diff --git a/meinberlin/apps/bplan/tasks.py b/meinberlin/apps/bplan/tasks.py index 509de8b14f..5599260cde 100644 --- a/meinberlin/apps/bplan/tasks.py +++ b/meinberlin/apps/bplan/tasks.py @@ -74,4 +74,5 @@ def get_location_information(bplan_id): .format(bplan.identifier, bplan) ) bplan.point =...
cloud-custodian__cloud-custodian-8692
AWS user pool and identity pool resources.json has minimal information ### Describe the bug For the below custodian policy, the resources.json is created for each of the policy on successful execution. For user-pool and identity-pool, the resources.json file does not include full description/configuration of the resou...
[ { "content": "# Copyright The Cloud Custodian Authors.\n# SPDX-License-Identifier: Apache-2.0\nfrom botocore.exceptions import ClientError\n\nfrom c7n.actions import BaseAction\nfrom c7n.manager import resources\nfrom c7n.query import QueryResourceManager, TypeInfo, DescribeSource\nfrom c7n.tags import universa...
[ { "content": "# Copyright The Cloud Custodian Authors.\n# SPDX-License-Identifier: Apache-2.0\nfrom botocore.exceptions import ClientError\n\nfrom c7n.actions import BaseAction\nfrom c7n.manager import resources\nfrom c7n.query import QueryResourceManager, TypeInfo, DescribeSource\nfrom c7n.tags import universa...
diff --git a/c7n/resources/cognito.py b/c7n/resources/cognito.py index 05351adaa45..6bfa7853826 100644 --- a/c7n/resources/cognito.py +++ b/c7n/resources/cognito.py @@ -11,6 +11,7 @@ class DescribeIdentityPool(DescribeSource): def augment(self, resources): + resources = super().augment(resources) ...
graphql-python__graphene-django-1105
This will break/lead to not working tests if your endpoint is not '/graphql' https://github.com/graphql-python/graphene-django/blob/b66a3f347947804d0ab7d9763309e2977b5bcd5a/graphene_django/utils/testing.py#L12
[ { "content": "\"\"\"\nSettings for Graphene are all namespaced in the GRAPHENE setting.\nFor example your project's `settings.py` file might look like this:\nGRAPHENE = {\n 'SCHEMA': 'my_app.schema.schema'\n 'MIDDLEWARE': (\n 'graphene_django.debug.DjangoDebugMiddleware',\n )\n}\nThis module pro...
[ { "content": "\"\"\"\nSettings for Graphene are all namespaced in the GRAPHENE setting.\nFor example your project's `settings.py` file might look like this:\nGRAPHENE = {\n 'SCHEMA': 'my_app.schema.schema'\n 'MIDDLEWARE': (\n 'graphene_django.debug.DjangoDebugMiddleware',\n )\n}\nThis module pro...
diff --git a/docs/settings.rst b/docs/settings.rst index 1984a154c..5bffd08f9 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -189,7 +189,7 @@ Default: ``None`` ``GRAPHIQL_HEADER_EDITOR_ENABLED`` ---------------------- +---------------------------------- GraphiQL starting from version 1.0.0 allows set...
searxng__searxng-437
Bug: microsoft academic engine **Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG** Repository: https://github.com/tiekoetter/searxng Branch: master Version: 1.0.0-972-93548243 <!-- Check if these values are correct --> **How did you install SearXNG?** <!--...
[ { "content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n\"\"\"\n Microsoft Academic (Science)\n\"\"\"\n\nfrom json import dumps, loads\nfrom searx.utils import html_to_text\n\n# about\nabout = {\n \"website\": 'https://academic.microsoft.com',\n \"wikidata_id\": 'Q28136779',\n \"official_api_docume...
[ { "content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n\"\"\"\n Microsoft Academic (Science)\n\"\"\"\n\nfrom json import dumps, loads\nfrom searx.utils import html_to_text\n\n# about\nabout = {\n \"website\": 'https://academic.microsoft.com',\n \"wikidata_id\": 'Q28136779',\n \"official_api_docume...
diff --git a/searx/engines/microsoft_academic.py b/searx/engines/microsoft_academic.py index 82a5d35502f..c9961104991 100644 --- a/searx/engines/microsoft_academic.py +++ b/searx/engines/microsoft_academic.py @@ -47,7 +47,7 @@ def response(resp): if not response_data: return results - for result in r...
pyca__cryptography-4037
Bug in HKDF? I think the computation of [`max_length`](https://github.com/pyca/cryptography/blob/66460d8f62b3f27a009bb61be6ce7675c8451b6e/src/cryptography/hazmat/primitives/kdf/hkdf.py#L70) in `src/cryptography/hazmat/primitives/kdf/hkdf.py` is wrong. [RFC5869](https://tools.ietf.org/html/rfc5869) states on page 3 t...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport six\n\nfrom cryptography import utils\...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport six\n\nfrom cryptography import utils\...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5a256a2531a1..5e0c0eb5a412 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,7 @@ Changelog .. note:: This version is not yet released and is under active development. * **BACKWARDS INCOMPATIBLE:** Support for Python 2.6 has been dropped. +* Resolved a bug in...
internetarchive__openlibrary-8164
IA imports are ignoring *most* high quality MARC data Even when there's a professionally cataloged MARC record associated with an Internet Archive import, none of the information in it is actually being imported. I've added some of the information available which you can see in the diff below (not guaranteed to be exha...
[ { "content": "\"\"\"Module to load books into Open Library.\n\nThis is used to load books from various MARC sources, including\nInternet Archive.\n\nFor loading a book, the available metadata is compiled as a dict,\ncalled a record internally. Here is a sample record:\n\n {\n \"title\": \"The Adventur...
[ { "content": "\"\"\"Module to load books into Open Library.\n\nThis is used to load books from various MARC sources, including\nInternet Archive.\n\nFor loading a book, the available metadata is compiled as a dict,\ncalled a record internally. Here is a sample record:\n\n {\n \"title\": \"The Adventur...
diff --git a/openlibrary/catalog/add_book/__init__.py b/openlibrary/catalog/add_book/__init__.py index 58e1ae04296..afd3c8c37a2 100644 --- a/openlibrary/catalog/add_book/__init__.py +++ b/openlibrary/catalog/add_book/__init__.py @@ -851,6 +851,7 @@ def update_edition_with_rec_data( need_edition_save = True...
enthought__chaco-893
ValueError: Handler.init() must return True or False, but instead returned None. when running chaco/chaco/examples/demo/basic/image_from_file.py **Problem Description** When running chaco/chaco/examples/demo/basic/image_from_file.py demo, ValueError: Handler.init() must return True or False, but instead returned None....
[ { "content": "#!/usr/bin/env python\n\"\"\"\nLoads and saves RGB images from disk\n - Left-drag pans the plot.\n - Mousewheel up and down zooms the plot in and out.\n - Pressing \"z\" brings up the Zoom Box, and you can click-drag a rectangular\n region to zoom. If you use a sequence of zoom boxes, pressing ...
[ { "content": "#!/usr/bin/env python\n\"\"\"\nLoads and saves RGB images from disk\n - Left-drag pans the plot.\n - Mousewheel up and down zooms the plot in and out.\n - Pressing \"z\" brings up the Zoom Box, and you can click-drag a rectangular\n region to zoom. If you use a sequence of zoom boxes, pressing ...
diff --git a/chaco/examples/demo/basic/image_from_file.py b/chaco/examples/demo/basic/image_from_file.py index fde4eded5..71c1f4523 100644 --- a/chaco/examples/demo/basic/image_from_file.py +++ b/chaco/examples/demo/basic/image_from_file.py @@ -183,6 +183,7 @@ def init(self, info): Overridden here to assign th...
pytorch__ignite-1365
MyPy: improve ignite.base module ## 🚀 Feature Currently, mypy ignores all errors for all modules. We have to rework our typing such that mypy checks the code. In this issue, let's improve https://github.com/pytorch/ignite/tree/master/ignite/base module such that mypy passes on it. For Hacktoberfest contributors...
[ { "content": "from collections import OrderedDict\nfrom collections.abc import Mapping\n\n\nclass Serializable:\n\n _state_dict_all_req_keys = ()\n _state_dict_one_of_opt_keys = ()\n\n def state_dict(self) -> OrderedDict:\n pass\n\n def load_state_dict(self, state_dict: Mapping) -> None:\n ...
[ { "content": "from collections import OrderedDict\nfrom collections.abc import Mapping\n\n\nclass Serializable:\n\n _state_dict_all_req_keys = () # type: tuple\n _state_dict_one_of_opt_keys = () # type: tuple\n\n def state_dict(self) -> OrderedDict:\n pass\n\n def load_state_dict(self, stat...
diff --git a/ignite/base/mixins.py b/ignite/base/mixins.py index 5cb35e1712fc..93b3ac0dd424 100644 --- a/ignite/base/mixins.py +++ b/ignite/base/mixins.py @@ -4,8 +4,8 @@ class Serializable: - _state_dict_all_req_keys = () - _state_dict_one_of_opt_keys = () + _state_dict_all_req_keys = () # type: tuple +...
cocotb__cocotb-1776
coroutines that return before their first yield cause the simulator to shutdown Repro: ```python @cocotb.test() def test_func_empty(dut): """ Test that a function can complete before the first yield """ @cocotb.coroutine def func_empty(): print("This line runs") return yield...
[ { "content": "# Copyright cocotb contributors\n# Licensed under the Revised BSD License, see LICENSE for details.\n# SPDX-License-Identifier: BSD-3-Clause\nimport IPython\nfrom IPython.terminal.ipapp import load_default_config\nfrom IPython.terminal.prompts import Prompts, Token\n\nimport cocotb\n\n\nclass SimT...
[ { "content": "# Copyright cocotb contributors\n# Licensed under the Revised BSD License, see LICENSE for details.\n# SPDX-License-Identifier: BSD-3-Clause\nimport IPython\nfrom IPython.terminal.ipapp import load_default_config\nfrom IPython.terminal.prompts import Prompts, Token\n\nimport cocotb\n\n\nclass SimT...
diff --git a/cocotb/ipython_support.py b/cocotb/ipython_support.py index 02662ebd88..45d1fc641a 100644 --- a/cocotb/ipython_support.py +++ b/cocotb/ipython_support.py @@ -85,5 +85,4 @@ async def run_ipython(dut): Within the shell, a global ``dut`` variable pointing to the design will be present. """ - aw...
qtile__qtile-4669
Icons used in cloned LaunchBars do not dynamically change their size when `icon_size` isn't set ### Issue description I cloned a LaunchBar for use on my multi-monitor setup, and drew bars for each monitor, with the main bar a different size from the secondary bars. Resulting behavior: the icons on the secondary b...
[ { "content": "# Copyright (c) 2008-2010 Aldo Cortesi\n# Copyright (c) 2011 Florian Mounier\n# Copyright (c) 2011 Kenji_Takahashi\n# Copyright (c) 2011 Paul Colomiets\n# Copyright (c) 2012 roger\n# Copyright (c) 2012 Craig Barnes\n# Copyright (c) 2012-2015 Tycho Andersen\n# Copyright (c) 2013 dequis\n# Copyright...
[ { "content": "# Copyright (c) 2008-2010 Aldo Cortesi\n# Copyright (c) 2011 Florian Mounier\n# Copyright (c) 2011 Kenji_Takahashi\n# Copyright (c) 2011 Paul Colomiets\n# Copyright (c) 2012 roger\n# Copyright (c) 2012 Craig Barnes\n# Copyright (c) 2012-2015 Tycho Andersen\n# Copyright (c) 2013 dequis\n# Copyright...
diff --git a/libqtile/widget/base.py b/libqtile/widget/base.py index 558840c9ca..44587229f0 100644 --- a/libqtile/widget/base.py +++ b/libqtile/widget/base.py @@ -400,7 +400,7 @@ def create_mirror(self): return Mirror(self, background=self.background) def clone(self): - return copy.copy(self) + ...
dbt-labs__dbt-core-5991
[CT-1285] [Feature] extend `-f` flag shorthand to other commands ### Is this your first time submitting a feature request? - [X] I have read the [expectations for open source contributors](https://docs.getdbt.com/docs/contributing/oss-expectations) - [X] I have searched the existing issues, and I could not find an ex...
[ { "content": "from typing import List\n\nfrom dbt.logger import log_cache_events, log_manager\n\nimport argparse\nimport os.path\nimport sys\nimport traceback\nimport warnings\nfrom contextlib import contextmanager\nfrom pathlib import Path\n\nimport dbt.version\nfrom dbt.events.functions import fire_event, set...
[ { "content": "from typing import List\n\nfrom dbt.logger import log_cache_events, log_manager\n\nimport argparse\nimport os.path\nimport sys\nimport traceback\nimport warnings\nfrom contextlib import contextmanager\nfrom pathlib import Path\n\nimport dbt.version\nfrom dbt.events.functions import fire_event, set...
diff --git a/.changes/unreleased/Features-20221003-110705.yaml b/.changes/unreleased/Features-20221003-110705.yaml new file mode 100644 index 00000000000..f8142666c3b --- /dev/null +++ b/.changes/unreleased/Features-20221003-110705.yaml @@ -0,0 +1,7 @@ +kind: Features +body: extend -f flag shorthand for seed command +t...
scikit-image__scikit-image-1820
Deprecate Python 2.6 after release of 0.12
[ { "content": "\"\"\"Image Processing SciKit (Toolbox for SciPy)\n\n``scikit-image`` (a.k.a. ``skimage``) is a collection of algorithms for image\nprocessing and computer vision.\n\nThe main package of ``skimage`` only provides a few utilities for converting\nbetween image data types; for most features, you need...
[ { "content": "\"\"\"Image Processing SciKit (Toolbox for SciPy)\n\n``scikit-image`` (a.k.a. ``skimage``) is a collection of algorithms for image\nprocessing and computer vision.\n\nThe main package of ``skimage`` only provides a few utilities for converting\nbetween image data types; for most features, you need...
diff --git a/TODO.txt b/TODO.txt index 02bd9ead1d0..3f73ebdbd7d 100644 --- a/TODO.txt +++ b/TODO.txt @@ -16,6 +16,7 @@ Version 0.14 Version 0.13 ------------ +* Require Python 2.7+, remove warning in `__init__.py`. * Remove deprecated `None` defaults for `skimage.exposure.rescale_intensity` * Remove deprecated `s...
zestedesavoir__zds-site-3857
[beta][v20] S'inscrire/se connecter/chercher avec un emoji provoque une 500 Serveur : Beta Version : v20-RC3/d3fd8af Système : Mac OS X Navigateur : 52.0.2743.116 (64-bit) --- 1. Rendez-vous à la page d'inscription et renseigner un pseudo du type : 👚 test 2. Remplissez les autres champs. 3. Soumettez le formulaire. 4...
[ { "content": "# coding: utf-8\nimport hashlib\nimport re\n\nTHUMB_MAX_WIDTH = 80\nTHUMB_MAX_HEIGHT = 80\n\nMEDIUM_MAX_WIDTH = 200\nMEDIUM_MAX_HEIGHT = 200\n\n\ndef compute_hash(filenames):\n \"\"\"returns a md5 hexdigest of group of files to check if they have change\"\"\"\n md5_hash = hashlib.md5()\n ...
[ { "content": "# coding: utf-8\nimport hashlib\nimport re\n\nTHUMB_MAX_WIDTH = 80\nTHUMB_MAX_HEIGHT = 80\n\nMEDIUM_MAX_WIDTH = 200\nMEDIUM_MAX_HEIGHT = 200\n\n\ndef compute_hash(filenames):\n \"\"\"returns a md5 hexdigest of group of files to check if they have change\"\"\"\n md5_hash = hashlib.md5()\n ...
diff --git a/zds/utils/misc.py b/zds/utils/misc.py index 33cc259cc0..20c63afbaf 100644 --- a/zds/utils/misc.py +++ b/zds/utils/misc.py @@ -53,4 +53,5 @@ def contains_utf8mb4(s): """ if not isinstance(s, unicode): s = unicode(s, 'utf-8') - return not all(len(c.encode('utf-8')) <= 3 for c in s) + ...
angr__angr-2256
The version of CFFI>=1.7.0 maybe not correct <!-- *Disclaimer: The angr suite is maintained by a small team of volunteers. While we cannot guarantee any timeliness for fixes and enhancements, we will do our best. For more real-time help with angr, from us and the community, join our [Slack.](http://angr.io/invite/)...
[ { "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 e5a96bcfb79..1928bbd670e 100644 --- a/setup.py +++ b/setup.py @@ -147,7 +147,7 @@ def run(self, *args): 'networkx>=2.0', 'progressbar2', 'rpyc', - 'cffi>=1.7.0', + 'cffi>=1.14.0', _UNICORN, 'archinfo==8.20.7.6', '...