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
⌀
twisted__twisted-12106
Release 24.1.0 to unbreak users who use the latest PyPy #12084 is breaking CI for Tahoe-LAFS, so probably is breaking real-world usage for someone somewhere too. So it'd be good to have a release sooner rather than later.
[ { "content": "\"\"\"\nProvides Twisted version information.\n\"\"\"\n\n# This file is auto-generated! Do not edit!\n# Use `python -m incremental.update Twisted` to change this file.\n\nfrom incremental import Version\n\n__version__ = Version(\"Twisted\", 23, 10, 0, post=0)\n__all__ = [\"__version__\"]\n", "...
[ { "content": "\"\"\"\nProvides Twisted version information.\n\"\"\"\n\n# This file is auto-generated! Do not edit!\n# Use `python -m incremental.update Twisted` to change this file.\n\nfrom incremental import Version\n\n__version__ = Version(\"Twisted\", 24, 3, 0, post=0)\n__all__ = [\"__version__\"]\n", "p...
diff --git a/LICENSE b/LICENSE index f3811313cd5..46747386e3e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2001-2023 +Copyright (c) 2001-2024 Allen Short Amber Hawkie Brown Andrew Bennetts diff --git a/NEWS.rst b/NEWS.rst index e38c56a4570..2ece4de16ef 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -8,...
chainer__chainer-7835
`chainer.backend.copyto` cannot copy chainerx array to cupy * Code to reproduce ```python import chainer import numpy for dst_device in ['@numpy', '@cupy:0', '@intel64']: for src_device in ['native', 'cuda:0']: print((dst_device, src_device)) dst = chainer.get_device(dst_device).send( ...
[ { "content": "import numpy\nimport six\n\nimport chainer\nfrom chainer.backends import _chainerx\nfrom chainer.backends import _cpu\nfrom chainer.backends import cuda\nfrom chainer.backends import intel64\nimport chainerx\n\n# Aliases\nfrom chainer._backend import Device\nfrom chainer.backends._chainerx import ...
[ { "content": "import numpy\nimport six\n\nimport chainer\nfrom chainer.backends import _chainerx\nfrom chainer.backends import _cpu\nfrom chainer.backends import cuda\nfrom chainer.backends import intel64\nimport chainerx\n\n# Aliases\nfrom chainer._backend import Device\nfrom chainer.backends._chainerx import ...
diff --git a/chainer/backend.py b/chainer/backend.py index bba54692f7e4..0de927d4f4b0 100644 --- a/chainer/backend.py +++ b/chainer/backend.py @@ -52,7 +52,12 @@ def copyto(dst, src): """ if isinstance(dst, chainerx.ndarray): dst[...] = _chainerx._array_to_chainerx(src, dst.device) - elif isinstan...
koxudaxi__datamodel-code-generator-1432
AttributeError raised when using --collapse-root-models flag **Describe the bug** When using the `--collapse-root-models` flag, this error is raised: ```shell Traceback (most recent call last): File ".venv/lib/python3.10/site-packages/datamodel_code_generator/__main__.py", line 767, in main generate( ...
[ { "content": "import re\nimport sys\nfrom abc import ABC, abstractmethod\nfrom collections import OrderedDict, defaultdict\nfrom itertools import groupby\nfrom pathlib import Path\nfrom typing import (\n Any,\n Callable,\n DefaultDict,\n Dict,\n Iterable,\n Iterator,\n List,\n Mapping,\n...
[ { "content": "import re\nimport sys\nfrom abc import ABC, abstractmethod\nfrom collections import OrderedDict, defaultdict\nfrom itertools import groupby\nfrom pathlib import Path\nfrom typing import (\n Any,\n Callable,\n DefaultDict,\n Dict,\n Iterable,\n Iterator,\n List,\n Mapping,\n...
diff --git a/datamodel_code_generator/parser/base.py b/datamodel_code_generator/parser/base.py index e5a03bbe3..b8903bd65 100644 --- a/datamodel_code_generator/parser/base.py +++ b/datamodel_code_generator/parser/base.py @@ -868,7 +868,9 @@ def __collapse_root_models( data_type.remove_reference() ...
liqd__a4-product-375
[partner landing page] unpublished and archived projects are shown On the partner landing page, we show unpublished and archived projects. Unpublished projects should never be shown and archived projects should be hidden per default. See: https://product-dev.liqd.net/teststadt/ ![bildschirmfoto 2018-05-28 um 11 3...
[ { "content": "from django.contrib.messages.views import SuccessMessageMixin\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.views import generic\nfrom django.views.generic import DetailView\n\nfrom adhocracy4.actions.models import Action\nfrom adhocracy4.projects.models import Project\nfro...
[ { "content": "from django.contrib.messages.views import SuccessMessageMixin\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.views import generic\nfrom django.views.generic import DetailView\n\nfrom adhocracy4.actions.models import Action\nfrom adhocracy4.projects.models import Project\nfro...
diff --git a/liqd_product/apps/partners/views.py b/liqd_product/apps/partners/views.py index 7a39ad385..e751c910f 100644 --- a/liqd_product/apps/partners/views.py +++ b/liqd_product/apps/partners/views.py @@ -20,7 +20,9 @@ def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) ...
deeppavlov__DeepPavlov-861
Python 3.7.0 support DeepPavlov has scikit-learn version fixed to v0.19.1, but its c-extensions build fails on python 3.7.0 (at least on macOS), please see [scikit-learn issue](https://github.com/scikit-learn/scikit-learn/issues/11320). This issue has been fixed in scikit-learn v0.19.2 release, so you have to up at ...
[ { "content": "# Copyright 2017 Neural Networks and Deep Learning lab, MIPT\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n...
[ { "content": "# Copyright 2017 Neural Networks and Deep Learning lab, MIPT\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n...
diff --git a/Jenkinsfile b/Jenkinsfile index 1b0ba05c5f..3feaf0f959 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -node('gpu') { +node('cuda-module') { timestamps { try { stage('Clean') { @@ -9,9 +9,9 @@ node('gpu') { } stage('Setup') { ...
akvo__akvo-rsr-1594
Add content_owner to organisation REST API filters
[ { "content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\nfrom djang...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\nfrom djang...
diff --git a/akvo/rest/views/organisation.py b/akvo/rest/views/organisation.py index 9f1636b887..e78b6e835c 100644 --- a/akvo/rest/views/organisation.py +++ b/akvo/rest/views/organisation.py @@ -70,7 +70,7 @@ class OrganisationViewSet(BaseRSRViewSet): queryset = Organisation.objects.all() serializer_class = O...
pwr-Solaar__Solaar-1725
Unable to see/scroll to bottom of UI with a lot of options and a small screen **Information** - Solaar version 1.1.4 - Distribution: Devuan GNU/Linux 4 (chimaera) - though am using Solaar from GitHub repository - Kernel version (ex. `uname -srmo`): `Linux 5.10.0-17-rt-amd64 x86_64 GNU/Linux` - Output of `solaar sho...
[ { "content": "# -*- python-mode -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the License, or\n## (at your...
[ { "content": "# -*- python-mode -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the License, or\n## (at your...
diff --git a/docs/devices/G915 WIRELESS RGB Mechanical Gaming Keyboard 407E.txt b/docs/devices/G915 WIRELESS RGB Mechanical Gaming Keyboard 407E.txt new file mode 100644 index 0000000000..195934c487 --- /dev/null +++ b/docs/devices/G915 WIRELESS RGB Mechanical Gaming Keyboard 407E.txt @@ -0,0 +1,87 @@ +Solaar version ...
microsoft__playwright-python-1472
[BUG] Task was destroyed but it is pending! in route.abort() **Context:** - Playwright Version: 1.24.0 - Operating System: Mac **Code Snippet** ```python import asyncio import logging import random from playwright.async_api import Route, async_playwright target = "https://www.baidu.com/" async def...
[ { "content": "# Copyright (c) Microsoft Corporation.\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 (c) Microsoft Corporation.\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/playwright/_impl/_network.py b/playwright/_impl/_network.py index 5fc408042..1ea51e465 100644 --- a/playwright/_impl/_network.py +++ b/playwright/_impl/_network.py @@ -237,9 +237,11 @@ def request(self) -> Request: return from_channel(self._initializer["request"]) async def abort(self, erro...
great-expectations__great_expectations-3463
`\n` and `,` transposed in notebook generation **Describe the bug** Following the tutorial, in the Jupyter notebook, the `ignored_columns` list has commas at the start of the line. Probably just transpose [here](https://github.com/great-expectations/great_expectations/blob/c49e533c012c275a791fce09df207d2bd7126780/gre...
[ { "content": "from typing import Any, Dict, List, Union\n\nimport nbformat\n\nfrom great_expectations import DataContext\nfrom great_expectations.core.batch import BatchRequest\nfrom great_expectations.render.renderer.suite_edit_notebook_renderer import (\n SuiteEditNotebookRenderer,\n)\n\n\nclass SuiteProfi...
[ { "content": "from typing import Any, Dict, List, Union\n\nimport nbformat\n\nfrom great_expectations import DataContext\nfrom great_expectations.core.batch import BatchRequest\nfrom great_expectations.render.renderer.suite_edit_notebook_renderer import (\n SuiteEditNotebookRenderer,\n)\n\n\nclass SuiteProfi...
diff --git a/great_expectations/render/renderer/v3/suite_profile_notebook_renderer.py b/great_expectations/render/renderer/v3/suite_profile_notebook_renderer.py index 475d105a880b..a9312c7cf225 100644 --- a/great_expectations/render/renderer/v3/suite_profile_notebook_renderer.py +++ b/great_expectations/render/renderer...
DDMAL__CantusDB-708
`IndexError` in syllabization and alignment I just found this poking around on staging...I don't know how many chants this might be true for: `/chant/396856`. <img width="1414" alt="image" src="https://github.com/DDMAL/CantusDB/assets/11023634/a9c12f04-ae46-49ed-a4b1-30379b4c6258"> I navigated to this page by fol...
[ { "content": "from latin_syllabification import syllabify_word\nfrom itertools import zip_longest\n\n\"\"\"\nsome useful info taken from the text entry guideline:\nthe symbols are present only in the MS spelling, not std spelling\nvertical stroke | identifies sections within a chant, it's meant to help align te...
[ { "content": "from latin_syllabification import syllabify_word\nfrom itertools import zip_longest\n\n\"\"\"\nsome useful info taken from the text entry guideline:\nthe symbols are present only in the MS spelling, not std spelling\nvertical stroke | identifies sections within a chant, it's meant to help align te...
diff --git a/django/cantusdb_project/align_text_mel.py b/django/cantusdb_project/align_text_mel.py index 8c2033a2a..ce9684d81 100644 --- a/django/cantusdb_project/align_text_mel.py +++ b/django/cantusdb_project/align_text_mel.py @@ -84,6 +84,12 @@ def syllabize_text(text, pre_syllabized=False): def syllabize_melod...
mosaicml__composer-18
Configure Jenkins Enable github actions for: - [x] pytest CPU runner - [x] formatting and type checking (`yapf`, `pyright`) - [ ] docker builds - [x] docs builds
[ { "content": "from __future__ import annotations\n\nimport atexit\nfrom dataclasses import asdict, dataclass\nfrom typing import TYPE_CHECKING, Optional\n\nimport torch.profiler\nimport yahp as hp\nfrom torch.profiler.profiler import ProfilerAction\n\nfrom composer import Callback\nfrom composer.callbacks.callb...
[ { "content": "# Copyright 2021 MosaicML. All Rights Reserved.\n\nfrom __future__ import annotations\n\nimport atexit\nfrom dataclasses import asdict, dataclass\nfrom typing import TYPE_CHECKING, Optional\n\nimport torch.profiler\nimport yahp as hp\nfrom torch.profiler.profiler import ProfilerAction\n\nfrom comp...
diff --git a/.github/ISSUE_TEMPLATE/---bug-report.md b/.github/ISSUE_TEMPLATE/---bug-report.md new file mode 100644 index 0000000000..fc5915d19e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/---bug-report.md @@ -0,0 +1,32 @@ +--- +name: "\U0001F41B Bug report" +about: Submit a bug report to improve our library! +title: ''...
open-telemetry__opentelemetry-python-1132
TypeError with pymongo `getMore` operations **Describe your environment** Describe your environment Mac OS Catalina 10.15.6 (19G73) Darwin-19.6.0-x86_64-i386-64bit Python 3.7.7 Installed packages: ``` opentelemetry-api 0.12b0 OpenTelemetry Python API opentelemetry-ext-honeycomb ...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/instrumentation/opentelemetry-instrumentation-pymongo/CHANGELOG.md b/instrumentation/opentelemetry-instrumentation-pymongo/CHANGELOG.md index 2a6c0308d5f..3ed4ea42ba1 100644 --- a/instrumentation/opentelemetry-instrumentation-pymongo/CHANGELOG.md +++ b/instrumentation/opentelemetry-instrumentation-pymongo/...
CTFd__CTFd-1336
Files not Downloadable **Environment**: - CTFd Version/Commit: 2.3.3 - Operating System: Windows - Web Browser and Version: Chrome 80.0.3987.132 **What happened?** When building a challenge that has a file, the file is not downloadable. **What did you expect to happen?** A file should be downloadable...
[ { "content": "import os\nimport string\nfrom shutil import copyfileobj\n\nimport boto3\nfrom flask import current_app, redirect, send_file\nfrom flask.helpers import safe_join\nfrom werkzeug.utils import secure_filename\n\nfrom CTFd.utils import get_app_config\nfrom CTFd.utils.encoding import hexencode\n\n\ncla...
[ { "content": "import os\nimport posixpath\nimport string\nfrom shutil import copyfileobj\n\nimport boto3\nfrom flask import current_app, redirect, send_file\nfrom flask.helpers import safe_join\nfrom werkzeug.utils import secure_filename\n\nfrom CTFd.utils import get_app_config\nfrom CTFd.utils.encoding import ...
diff --git a/CTFd/utils/uploads/uploaders.py b/CTFd/utils/uploads/uploaders.py index 8485840e5..9220c7442 100644 --- a/CTFd/utils/uploads/uploaders.py +++ b/CTFd/utils/uploads/uploaders.py @@ -1,4 +1,5 @@ import os +import posixpath import string from shutil import copyfileobj @@ -54,7 +55,7 @@ def upload(self, fi...
microsoft__playwright-python-1458
[BUG] Task was destroyed but it is pending! in route.abort() **Context:** - Playwright Version: 1.24.0 - Operating System: Mac **Code Snippet** ```python import asyncio import logging import random from playwright.async_api import Route, async_playwright target = "https://www.baidu.com/" async def...
[ { "content": "# Copyright (c) Microsoft Corporation.\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 (c) Microsoft Corporation.\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/playwright/_impl/_network.py b/playwright/_impl/_network.py index 5fc408042..1ea51e465 100644 --- a/playwright/_impl/_network.py +++ b/playwright/_impl/_network.py @@ -237,9 +237,11 @@ def request(self) -> Request: return from_channel(self._initializer["request"]) async def abort(self, erro...
dmlc__gluon-nlp-661
Find a Bug in pretrain script of bert https://github.com/dmlc/gluon-nlp/blob/master/scripts/bert/run_pretraining.py line 296 and 297,throw a exception: ``` Traceback (most recent call last): File "/home/xzc/gluon-nlp/scripts/bert/run_pretraining.py", line 477, in <module> evaluate(data_eval, model, nsp...
[ { "content": "\"\"\"\nPre-training Bidirectional Encoder Representations from Transformers\n=========================================================================================\nThis example shows how to pre-train a BERT model with Gluon NLP Toolkit.\n@article{devlin2018bert,\n title={BERT: Pre-training o...
[ { "content": "\"\"\"\nPre-training Bidirectional Encoder Representations from Transformers\n=========================================================================================\nThis example shows how to pre-train a BERT model with Gluon NLP Toolkit.\n@article{devlin2018bert,\n title={BERT: Pre-training o...
diff --git a/docs/examples/sequence_sampling/sequence_sampling.md b/docs/examples/sequence_sampling/sequence_sampling.md index 5d6b58b1e5..2500107195 100644 --- a/docs/examples/sequence_sampling/sequence_sampling.md +++ b/docs/examples/sequence_sampling/sequence_sampling.md @@ -171,7 +171,7 @@ created to sample sequenc...
mindsdb__lightwood-811
Improve empty input handling when predicting Currently, passing an empty dataframe to `PredictorInterface.predict()` will not raise an exception on grounds of empty input, and so will fail somewhere down the line. We should explicitly check for empty input and raise a descriptive exception for better UX.
[ { "content": "# TODO: _add_implicit_values unit test ensures NO changes for a fully specified file.\nfrom typing import Dict\nfrom lightwood.helpers.templating import call, inline_dict, align\nfrom lightwood.api import dtype\nfrom lightwood.api.types import (\n JsonAI,\n TypeInformation,\n StatisticalA...
[ { "content": "# TODO: _add_implicit_values unit test ensures NO changes for a fully specified file.\nfrom typing import Dict\nfrom lightwood.helpers.templating import call, inline_dict, align\nfrom lightwood.api import dtype\nfrom lightwood.api.types import (\n JsonAI,\n TypeInformation,\n StatisticalA...
diff --git a/lightwood/api/json_ai.py b/lightwood/api/json_ai.py index c72d8b3ed..8e2f968c6 100644 --- a/lightwood/api/json_ai.py +++ b/lightwood/api/json_ai.py @@ -1017,6 +1017,9 @@ def code_from_json_ai(json_ai: JsonAI) -> str: predict_body = f""" self.mode = 'predict' +if len(data) == 0: + raise Exception...
PlasmaPy__PlasmaPy-123
ModuleNotFoundError: No module named 'plasmapy.classes' on plasmapy import On importing freshly installed plasmapy into a new environment: (plasmapy) [~]$ python Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 13:51:32) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux Type "help", ...
[ { "content": "from setuptools import setup\n\n\n# Package metadata\nmetadata = {}\nwith open('plasmapy/_metadata.py', 'r') as metadata_file:\n exec(metadata_file.read(), metadata)\n\n# Requirements\nwith open('requirements/base.txt', 'r') as req_file:\n requirements = req_file.read().splitlines()\n\nsetup...
[ { "content": "from setuptools import setup, find_packages\n\n\n# Package metadata\nmetadata = {}\nwith open('plasmapy/_metadata.py', 'r') as metadata_file:\n exec(metadata_file.read(), metadata)\n\n# Requirements\nwith open('requirements/base.txt', 'r') as req_file:\n requirements = req_file.read().splitl...
diff --git a/setup.py b/setup.py index 5bf4fc91c5..7f82782174 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from setuptools import setup +from setuptools import setup, find_packages # Package metadata @@ -32,7 +32,7 @@ 'Topic :: Scientific/Engineering :: Astronomy', 'Development Status ::...
jazzband__pip-tools-1624
pip-compile breaks with Pip 22.1.1 - AttributeError: 'RequirementSet' object has no attribute 'add_requirement'. Running pip-compile will break when using the latest Pip release, 22.1.1. [This commit](https://github.com/pypa/pip/commit/d673aa14284788ea12a789b34846353b7cb3d46f) appears to be the cause of the break. ...
[ { "content": "import contextlib\nimport hashlib\nimport itertools\nimport logging\nimport optparse\nimport os\nfrom contextlib import contextmanager\nfrom shutil import rmtree\nfrom typing import (\n Any,\n BinaryIO,\n ContextManager,\n Dict,\n Iterator,\n List,\n NamedTuple,\n Optional,...
[ { "content": "import contextlib\nimport hashlib\nimport itertools\nimport logging\nimport optparse\nimport os\nfrom contextlib import contextmanager\nfrom shutil import rmtree\nfrom typing import (\n Any,\n BinaryIO,\n ContextManager,\n Dict,\n Iterator,\n List,\n NamedTuple,\n Optional,...
diff --git a/piptools/repositories/pypi.py b/piptools/repositories/pypi.py index 62babe8be..cc99c0c6f 100644 --- a/piptools/repositories/pypi.py +++ b/piptools/repositories/pypi.py @@ -189,7 +189,12 @@ def resolve_reqs( reqset = RequirementSet() ireq.user_supplied = True - reqset....
readthedocs__readthedocs.org-4696
"Edit on GitHub" url broken for sphinx projects ## Details * Read the Docs project URL: https://jsxc.readthedocs.io * Build URL (if applicable): https://github.com/jsxc/documentation ## Expected Result "Edit on GitHub", "View on GitHub" and so on should link to https://github.com/jsxc/documentation. ## Actua...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nSphinx_ backend for building docs.\n\n.. _Sphinx: http://www.sphinx-doc.org/\n\"\"\"\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals)\n\nimport codecs\nimport shutil\nimport logging\nimport os\nimport sys\nimport zipfile\n...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nSphinx_ backend for building docs.\n\n.. _Sphinx: http://www.sphinx-doc.org/\n\"\"\"\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals)\n\nimport codecs\nimport shutil\nimport logging\nimport os\nimport sys\nimport zipfile\n...
diff --git a/readthedocs/doc_builder/backends/sphinx.py b/readthedocs/doc_builder/backends/sphinx.py index 58c36db2d00..4dc29714218 100644 --- a/readthedocs/doc_builder/backends/sphinx.py +++ b/readthedocs/doc_builder/backends/sphinx.py @@ -74,7 +74,12 @@ def get_config_params(self): # TODO this should be hand...
Qiskit__qiskit-1875
Registers cannot be index with negative integers or slices <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea does not exist. --> ### What is the expected enhancement? It would be nice if the behavior mimicked p...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright 2017, IBM.\n#\n# This source code is licensed under the Apache License, Version 2.0 found in\n# the LICENSE.txt file in the root directory of this source tree.\n\n\"\"\"\nBase register reference object.\n\"\"\"\nimport re\nimport logging\nimport itertools\n\n...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright 2017, IBM.\n#\n# This source code is licensed under the Apache License, Version 2.0 found in\n# the LICENSE.txt file in the root directory of this source tree.\n\n\"\"\"\nBase register reference object.\n\"\"\"\nimport re\nimport logging\nimport itertools\n\n...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4ab413d67783..443ef3bd8a05 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -34,7 +34,7 @@ Added (#1733) - Added in methods to remove a specific DAG edge and to see if a specific edge exists - Added parameter to the TextProgressBar to allow the output to be sent to...
mdn__kuma-6693
T - TypeError 'count.toLocaleString' in SSR https://sentry.prod.mozaws.net/operations/mdn-prod/issues/7090931/ ``` TypeError: Cannot read property 'toLocaleString' of undefined File "/app/kuma/javascript/dist/ssr.js", line 22, in kt '{snip} ocuments found for "%(query)s" in %(locale)s.',a),{count:a.toLocaleStrin...
[ { "content": "from django.shortcuts import render\nfrom django.urls import reverse_lazy\nfrom django.views.decorators.cache import never_cache\nfrom django.views.decorators.http import require_GET\nfrom django.views.generic import RedirectView\nfrom ratelimit.decorators import ratelimit\n\nfrom kuma.api.v1.view...
[ { "content": "from django.shortcuts import render\nfrom django.urls import reverse_lazy\nfrom django.views.decorators.cache import never_cache\nfrom django.views.decorators.http import require_GET\nfrom django.views.generic import RedirectView\nfrom ratelimit.decorators import ratelimit\n\nfrom kuma.api.v1.view...
diff --git a/kuma/search/tests/test_views.py b/kuma/search/tests/test_views.py index 5d87ce16232..6e3c33c9826 100644 --- a/kuma/search/tests/test_views.py +++ b/kuma/search/tests/test_views.py @@ -166,6 +166,14 @@ def test_paginate_too_large(self): # rest_framework works. assert response.status_code =...
cisagov__manage.get.gov-960
Time skew between login.gov and cloud.gov ('issued in the future') causing a 401 on login ### Current Behavior User gets a 401 error screen on login occasionally (about 60% of the time). Issue seems more prevalent on sandboxes and in fresh browsers with clear cache. User is usually able to bypass this error screen ...
[ { "content": "# coding: utf-8\nfrom __future__ import unicode_literals\n\nimport logging\nimport json\n\nfrom django.conf import settings\nfrom django.http import HttpResponseRedirect\nfrom Cryptodome.PublicKey.RSA import importKey\nfrom jwkest.jwk import RSAKey # type: ignore\nfrom oic import oic, rndstr, uti...
[ { "content": "# coding: utf-8\nfrom __future__ import unicode_literals\n\nimport logging\nimport json\n\nfrom django.conf import settings\nfrom django.http import HttpResponseRedirect\nfrom Cryptodome.PublicKey.RSA import importKey\nfrom jwkest.jwk import RSAKey # type: ignore\nfrom oic import oic, rndstr, uti...
diff --git a/src/djangooidc/oidc.py b/src/djangooidc/oidc.py index 26eb54d3d..286e519a4 100644 --- a/src/djangooidc/oidc.py +++ b/src/djangooidc/oidc.py @@ -238,6 +238,9 @@ def _request_token(self, state, code, session): "client_secret": self.client_secret, }, auth...
aws__aws-cli-323
S3 operations between buckets fails with unicode file names I couldn't sync files that contained unicoded characters in their file names between two buckets. Eg.: ``` bash copy failed: s3://source_bucket/Barça.jpeg to s3://target_bucket/Barça.jpeg u'\xe7' copy failed: s3://source_bucket/Sem-Título-5.jpg to s3://target...
[ { "content": "import math\nimport os\nfrom six import StringIO\nfrom six.moves import queue as Queue\nimport sys\nimport time\nimport threading\nimport mimetypes\n\nfrom dateutil.parser import parse\nfrom dateutil.tz import tzlocal\n\nfrom botocore.compat import quote\nfrom awscli.customizations.s3.tasks import...
[ { "content": "import math\nimport os\nfrom six import StringIO\nfrom six.moves import queue as Queue\nimport sys\nimport time\nimport threading\nimport mimetypes\n\nfrom dateutil.parser import parse\nfrom dateutil.tz import tzlocal\n\nfrom botocore.compat import quote\nfrom awscli.customizations.s3.tasks import...
diff --git a/awscli/customizations/s3/fileinfo.py b/awscli/customizations/s3/fileinfo.py index cbeb8edf8400..eedface8d365 100644 --- a/awscli/customizations/s3/fileinfo.py +++ b/awscli/customizations/s3/fileinfo.py @@ -301,7 +301,7 @@ def copy(self): """ Copies a object in s3 to another location in s3...
fossasia__open-event-server-4421
[Sentry]: 'EventInvoice' object has no attribute 'stripe_user_id' https://sentry.eventyay.com/eventyay/dev-api/issues/59/ ``` AttributeError: 'EventInvoice' object has no attribute 'stripe_user_id' File "flask/app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "flask/app.py", li...
[ { "content": "import time\nimport uuid\nfrom datetime import datetime\n\nfrom app.api.helpers.db import get_count\nfrom app.models import db\n\n\ndef get_new_identifier():\n identifier = str(uuid.uuid4())\n count = get_count(EventInvoice.query.filter_by(identifier=identifier))\n if count == 0:\n ...
[ { "content": "import time\nimport uuid\nfrom datetime import datetime\n\nfrom app.api.helpers.db import get_count\nfrom app.models import db\n\n\ndef get_new_identifier():\n identifier = str(uuid.uuid4())\n count = get_count(EventInvoice.query.filter_by(identifier=identifier))\n if count == 0:\n ...
diff --git a/app/models/event_invoice.py b/app/models/event_invoice.py index 155c4f2581..0404d4dcd7 100644 --- a/app/models/event_invoice.py +++ b/app/models/event_invoice.py @@ -102,10 +102,10 @@ def get_invoice_number(self): return 'I' + str(int(time.mktime(self.created_at.timetuple()))) + '-' + str(self.id)...
wagtail__wagtail-11211
Translatable snippets history view breaks with 'Cannot resolve keyword 'locale' into field'. ### Issue Summary Translatable snippet models history view breaks upon navigating with the exception message: > FieldError at /admin/snippets/[YOUR_APP_NAME]/[YOUR_MODEL_NAME]/history/1/ > Cannot resolve keyword 'locale...
[ { "content": "import warnings\n\nfrom django import VERSION as DJANGO_VERSION\nfrom django.contrib.admin.utils import label_for_field, quote, unquote\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import (\n FieldDoesNotExist,\n ImproperlyConfigured,\n Permissi...
[ { "content": "import warnings\n\nfrom django import VERSION as DJANGO_VERSION\nfrom django.contrib.admin.utils import label_for_field, quote, unquote\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import (\n FieldDoesNotExist,\n ImproperlyConfigured,\n Permissi...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 547eb000466c..5c63423bfa87 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -39,6 +39,7 @@ Changelog * Fix: Ensure text only email notifications for updated comments do not escape HTML characters (Rohit Sharma) * Fix: Use logical OR operator to combine search fields...
mkdocs__mkdocs-1309
Pages encoded UTF-8 with BOM not rendered correctly Hello, I have a simple index markdown file: ``` # Project ## Overview ``` And it fails to render correctly in any theme. **Cinder** ![keqxxqn - imgur](https://cloud.githubusercontent.com/assets/8150232/24431970/c82923c6-1427-11e7-8ae9-12490dbb9dae....
[ { "content": "# coding: utf-8\n\n\"\"\"\nDeals with generating the site-wide navigation.\n\nThis consists of building a set of interlinked page and header objects.\n\"\"\"\n\nfrom __future__ import unicode_literals\nimport datetime\nimport logging\nimport markdown\nimport os\nimport io\n\nfrom mkdocs import uti...
[ { "content": "# coding: utf-8\n\n\"\"\"\nDeals with generating the site-wide navigation.\n\nThis consists of building a set of interlinked page and header objects.\n\"\"\"\n\nfrom __future__ import unicode_literals\nimport datetime\nimport logging\nimport markdown\nimport os\nimport io\n\nfrom mkdocs import uti...
diff --git a/mkdocs/nav.py b/mkdocs/nav.py index b73879d5f9..7240ef223c 100644 --- a/mkdocs/nav.py +++ b/mkdocs/nav.py @@ -248,7 +248,7 @@ def read_source(self, config): 'page_read_source', None, config=config, page=self) if source is None: try: - with io.open(self.abs_...
holoviz__panel-3057
Custom theme is not not applied #### ALL software version info Version 0.12.6. Problem can also be reproed using latest code available in the repo. #### Description of expected behavior and the observed behavior When using a css theme that is not located the BUNDLE_DIR, the BasicTemplate ignores the provided value...
[ { "content": "\"\"\"\nTemplates allow multiple Panel objects to be embedded into custom HTML\ndocuments.\n\"\"\"\nimport os\nimport sys\nimport uuid\n\nfrom collections import OrderedDict\nfrom functools import partial\nfrom pathlib import PurePath\n\nimport param\n\nfrom bokeh.document.document import Document...
[ { "content": "\"\"\"\nTemplates allow multiple Panel objects to be embedded into custom HTML\ndocuments.\n\"\"\"\nimport os\nimport sys\nimport uuid\n\nfrom collections import OrderedDict\nfrom functools import partial\nfrom pathlib import PurePath\n\nimport param\n\nfrom bokeh.document.document import Document...
diff --git a/panel/template/base.py b/panel/template/base.py index 4741f10e4a..e742083b37 100644 --- a/panel/template/base.py +++ b/panel/template/base.py @@ -617,7 +617,7 @@ def _template_resources(self): if (BUNDLE_DIR / name / basename).is_file(): css_files['theme'] = di...
pypa__pipenv-4800
Empty .venv file causes entire virtualenvs directory to be deleted ### Summary if `.venv` is an empty file and I run `pipenv --rm`, the entire `~/.local/share/virtualenvs` directory is deleted. This happens even when there's no `Pipfile` present. This is on macOS, pipenv version 2021.5.29. ### Issue descriptio...
[ { "content": "# -*- coding: utf-8 -*-\nimport base64\nimport fnmatch\nimport hashlib\nimport io\nimport json\nimport operator\nimport os\nimport re\nimport sys\nimport urllib.parse\n\nimport pipfile\nimport pipfile.api\nimport toml\nimport tomlkit\nimport vistir\n\nfrom pipenv.cmdparse import Script\nfrom pipen...
[ { "content": "# -*- coding: utf-8 -*-\nimport base64\nimport fnmatch\nimport hashlib\nimport io\nimport json\nimport operator\nimport os\nimport re\nimport sys\nimport urllib.parse\n\nimport pipfile\nimport pipfile.api\nimport toml\nimport tomlkit\nimport vistir\n\nfrom pipenv.cmdparse import Script\nfrom pipen...
diff --git a/news/4790.bugfix.rst b/news/4790.bugfix.rst new file mode 100644 index 0000000000..cc08fa29de --- /dev/null +++ b/news/4790.bugfix.rst @@ -0,0 +1 @@ +Ignore empty .venv in rood dir and create project name base virtual environment diff --git a/pipenv/project.py b/pipenv/project.py index abca0ea374..dd6fa7ed...
pre-commit__pre-commit-1881
Parallel execution ran into "patch does not apply" I modified a bunch of repos using `pre-commit` in parallel and ran `git commit` at the same time, with unstaged changes. The pre-commit processes did `[WARNING] Unstaged files detected.`, stashed the changes in a pach, ran, and then tried to reapply the patches. Som...
[ { "content": "import contextlib\nimport logging\nimport os.path\nimport time\nfrom typing import Generator\n\nfrom pre_commit import git\nfrom pre_commit.util import CalledProcessError\nfrom pre_commit.util import cmd_output\nfrom pre_commit.util import cmd_output_b\nfrom pre_commit.xargs import xargs\n\n\nlogg...
[ { "content": "import contextlib\nimport logging\nimport os.path\nimport time\nfrom typing import Generator\n\nfrom pre_commit import git\nfrom pre_commit.util import CalledProcessError\nfrom pre_commit.util import cmd_output\nfrom pre_commit.util import cmd_output_b\nfrom pre_commit.xargs import xargs\n\n\nlogg...
diff --git a/pre_commit/staged_files_only.py b/pre_commit/staged_files_only.py index 617930102..48cc10299 100644 --- a/pre_commit/staged_files_only.py +++ b/pre_commit/staged_files_only.py @@ -47,7 +47,7 @@ def _unstaged_changes_cleared(patch_dir: str) -> Generator[None, None, None]: retcode=None, ) ...
certbot__certbot-1608
"SSLEngine on" does not appear to be an exhausitve/correct test for SSL vhosts Over in #1423 @ArchimedesPi noticed that the [value set for `is_ssl`](https://github.com/letsencrypt/letsencrypt/blob/master/letsencrypt-apache/letsencrypt_apache/configurator.py#L433), based on whether `SSLEngine on` is in the vhost entry, ...
[ { "content": "\"\"\"Apache Configuration based off of Augeas Configurator.\"\"\"\n# pylint: disable=too-many-lines\nimport filecmp\nimport itertools\nimport logging\nimport os\nimport re\nimport shutil\nimport socket\nimport subprocess\n\nimport zope.interface\n\nfrom acme import challenges\n\nfrom letsencrypt ...
[ { "content": "\"\"\"Apache Configuration based off of Augeas Configurator.\"\"\"\n# pylint: disable=too-many-lines\nimport filecmp\nimport itertools\nimport logging\nimport os\nimport re\nimport shutil\nimport socket\nimport subprocess\n\nimport zope.interface\n\nfrom acme import challenges\n\nfrom letsencrypt ...
diff --git a/letsencrypt-apache/letsencrypt_apache/configurator.py b/letsencrypt-apache/letsencrypt_apache/configurator.py index 16e8dd6064f..91a2e49252b 100644 --- a/letsencrypt-apache/letsencrypt_apache/configurator.py +++ b/letsencrypt-apache/letsencrypt_apache/configurator.py @@ -445,6 +445,12 @@ def _create_vhost(...
GoogleCloudPlatform__professional-services-458
[dataflow-data-generator] if fields else self.schema['fields'] TypeError: list indices must be integers or slices, not str [while running 'Generate Data'] I've tried different alternatives:loading the schema from the file, from the table and everytime I try it I get the same error. If I look to the schema generated ...
[ { "content": "# Copyright 2019 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
[ { "content": "# Copyright 2019 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
diff --git a/examples/dataflow-data-generator/bigquery-scripts/tests/test_bq_table_resizer.py b/examples/dataflow-data-generator/bigquery-scripts/tests/test_bq_table_resizer.py index 769b885507..e78bfa0c2b 100644 --- a/examples/dataflow-data-generator/bigquery-scripts/tests/test_bq_table_resizer.py +++ b/examples/dataf...
django-json-api__django-rest-framework-json-api-522
Don't output key for write only relations If the `write_only` key is `True` on a relationship, its key is still included in the response body with an empty resource object (`{'data': null}`). This was fixed in #230 for normal fields but not for relations.
[ { "content": "\"\"\"\nRenderers\n\"\"\"\nimport copy\nfrom collections import Iterable, OrderedDict, defaultdict\n\nimport inflection\nfrom django.db.models import Manager\nfrom django.utils import encoding, six\nfrom rest_framework import relations, renderers\nfrom rest_framework.serializers import BaseSeriali...
[ { "content": "\"\"\"\nRenderers\n\"\"\"\nimport copy\nfrom collections import Iterable, OrderedDict, defaultdict\n\nimport inflection\nfrom django.db.models import Manager\nfrom django.utils import encoding, six\nfrom rest_framework import relations, renderers\nfrom rest_framework.serializers import BaseSeriali...
diff --git a/AUTHORS b/AUTHORS index f24fc6a6..25129f59 100644 --- a/AUTHORS +++ b/AUTHORS @@ -3,6 +3,7 @@ Adam Ziolkowski <adam@adsized.com> Alan Crosswell <alan@columbia.edu> Anton Shutik <shutikanton@gmail.com> Christian Zosel <https://zosel.ch> +David Vogt <david.vogt@adfinis-sygroup.ch> Greg Aker <greg@gregake...
saulpw__visidata-1152
[v2.6.1] Warning on startup, if no .visidata/plugins/ ``` File "/usr/local/lib/python3.9/dist-packages/visidata/settings.py", line 364, in loadConfigAndPlugins vd.addGlobals(importlib.import_module(modname).__dict__) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_modu...
[ { "content": "import collections\nimport sys\nimport inspect\nimport argparse\nimport importlib\nimport os\n\nimport visidata\nfrom visidata import VisiData, BaseSheet, vd, AttrDict\n\n\n# [settingname] -> { objname(Sheet-instance/Sheet-type/'global'/'default'): Option/Command/longname }\nclass SettingsMgr(coll...
[ { "content": "import collections\nimport sys\nimport inspect\nimport argparse\nimport importlib\nimport os\n\nimport visidata\nfrom visidata import VisiData, BaseSheet, vd, AttrDict\n\n\n# [settingname] -> { objname(Sheet-instance/Sheet-type/'global'/'default'): Option/Command/longname }\nclass SettingsMgr(coll...
diff --git a/visidata/settings.py b/visidata/settings.py index 7a8779a75..58b116f47 100644 --- a/visidata/settings.py +++ b/visidata/settings.py @@ -363,6 +363,11 @@ def loadConfigAndPlugins(vd, args=AttrDict()): for modname in (args.imports or vd.options.imports or '').split(): try: vd.addGl...
zulip__zulip-13435
Use new optimized data set for populating "private messages" in left sidebar Since we merged https://github.com/zulip/zulip/pull/11946, it should now be easy to significantly improve the data set used for rendering of the "private messages" by using the same ~1000 recent PMs of history data set available in `/register`...
[ { "content": "# See https://zulip.readthedocs.io/en/latest/subsystems/events-system.html for\n# high-level documentation on how this system works.\n\nimport copy\n\nfrom collections import defaultdict\nfrom django.utils.translation import ugettext as _\nfrom django.conf import settings\nfrom importlib import im...
[ { "content": "# See https://zulip.readthedocs.io/en/latest/subsystems/events-system.html for\n# high-level documentation on how this system works.\n\nimport copy\n\nfrom collections import defaultdict\nfrom django.utils.translation import ugettext as _\nfrom django.conf import settings\nfrom importlib import im...
diff --git a/frontend_tests/node_tests/pm_conversations.js b/frontend_tests/node_tests/pm_conversations.js index 3d8100492a2de..99c1ae38960c5 100644 --- a/frontend_tests/node_tests/pm_conversations.js +++ b/frontend_tests/node_tests/pm_conversations.js @@ -13,18 +13,44 @@ run_test('partners', () => { assert.equal(...
conan-io__conan-center-index-10656
[pagmo2] pagmo2/2.10: does not link eigen and nlopt properly when setting options to True <!-- Please don't forget to update the issue title. Include all applicable information to help us reproduce your problem. --> ### Package and Environment Details (include every applicable attribute) * Package Name/Ve...
[ { "content": "from conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\n\nrequired_conan_version = \">=1.43.0\"\n\n\nclass Pagmo2Conan(ConanFile):\n name = \"pagmo2\"\n description = \"pagmo is a C++ scientific library for massively parallel optimization.\...
[ { "content": "from conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\n\nrequired_conan_version = \">=1.43.0\"\n\n\nclass Pagmo2Conan(ConanFile):\n name = \"pagmo2\"\n description = \"pagmo is a C++ scientific library for massively parallel optimization.\...
diff --git a/recipes/pagmo2/pre_2.11/conanfile.py b/recipes/pagmo2/pre_2.11/conanfile.py index e7fd718511497..eeacc0b3752d5 100644 --- a/recipes/pagmo2/pre_2.11/conanfile.py +++ b/recipes/pagmo2/pre_2.11/conanfile.py @@ -61,7 +61,7 @@ def validate(self): raise ConanInvalidConfiguration("{0} requires non he...
ansible-collections__amazon.aws-1033
ec2_metadata_facts may fail with ansible-core 2.13+ ### Summary When using ansible-core 2.13+ (ansible 6.0.0+) ec2_metadata_facts may fail. This occurs when an endpoint (such as http://169.254.169.254/latest/meta-data/public-keys/) is enumerated and results in endpoints that return 404. This occurs for public-keys ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# Copyright: Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION = '''\n---\nmodule: ec...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# Copyright: Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION = '''\n---\nmodule: ec...
diff --git a/changelogs/fragments/943-ec2_metadata_facts-fix-NoneType-callable.yml b/changelogs/fragments/943-ec2_metadata_facts-fix-NoneType-callable.yml new file mode 100644 index 00000000000..86ce04f8166 --- /dev/null +++ b/changelogs/fragments/943-ec2_metadata_facts-fix-NoneType-callable.yml @@ -0,0 +1,2 @@ +bugfix...
ansible-collections__amazon.aws-943
ec2_metadata_facts may fail with ansible-core 2.13+ ### Summary When using ansible-core 2.13+ (ansible 6.0.0+) ec2_metadata_facts may fail. This occurs when an endpoint (such as http://169.254.169.254/latest/meta-data/public-keys/) is enumerated and results in endpoints that return 404. This occurs for public-keys ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# Copyright: Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION = '''\n---\nmodule: ec...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# Copyright: Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION = '''\n---\nmodule: ec...
diff --git a/changelogs/fragments/943-ec2_metadata_facts-fix-NoneType-callable.yml b/changelogs/fragments/943-ec2_metadata_facts-fix-NoneType-callable.yml new file mode 100644 index 00000000000..86ce04f8166 --- /dev/null +++ b/changelogs/fragments/943-ec2_metadata_facts-fix-NoneType-callable.yml @@ -0,0 +1,2 @@ +bugfix...
webkom__lego-24
Add shell pluss and django extensions
[ { "content": "import sys\nimport os\nBASE_DIR = os.path.dirname(os.path.dirname(__file__))\n\nSECRET_KEY = 'This is supersecret'\n\nTESTING = 'test' in sys.argv # Check if manage.py test has been run\n\nDEBUG = True\nTEMPLATE_DEBUG = True\nALLOWED_HOSTS = []\n\nAUTH_USER_MODEL = 'users.User'\n\nINSTALLED_APPS ...
[ { "content": "import sys\nimport os\nBASE_DIR = os.path.dirname(os.path.dirname(__file__))\n\nSECRET_KEY = 'This is supersecret'\n\nTESTING = 'test' in sys.argv # Check if manage.py test has been run\n\nSHELL_PLUS = \"ipython\"\n\nDEBUG = True\nTEMPLATE_DEBUG = True\nALLOWED_HOSTS = []\n\nAUTH_USER_MODEL = 'us...
diff --git a/lego/settings/base.py b/lego/settings/base.py index a6607e955..9aa991797 100644 --- a/lego/settings/base.py +++ b/lego/settings/base.py @@ -6,6 +6,8 @@ TESTING = 'test' in sys.argv # Check if manage.py test has been run +SHELL_PLUS = "ipython" + DEBUG = True TEMPLATE_DEBUG = True ALLOWED_HOSTS = [...
beetbox__beets-2524
convert: Close stdin for ffmpeg subprocesses ### Problem Sometimes when running multiple consecutive beets commands, stdio gets confused and the enter key stops working. Seems to happen particularly often with the convert plugin, but I have also observed it when importing. Steps to reproduce: 1. convert any albu...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
diff --git a/beets/util/__init__.py b/beets/util/__init__.py index f6cd488d6d..ee06df0bf5 100644 --- a/beets/util/__init__.py +++ b/beets/util/__init__.py @@ -797,10 +797,16 @@ def command_output(cmd, shell=False): """ cmd = convert_command_args(cmd) + try: # python >= 3.3 + devnull = subprocess....
facebookresearch__hydra-2290
Instantiation err message could be improved When `hydra.utils.instantiate` results in an error, exception chaining is used to provide information to the user about what when wrong. However, this chained exception is hidden by default, resulting in the following (confusing) output at the command line: ```text $ python...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n\nimport copy\nimport functools\nfrom enum import Enum\nfrom textwrap import dedent\nfrom typing import Any, Callable, Dict, List, Sequence, Tuple, Union\n\nfrom omegaconf import OmegaConf, SCMode\nfrom omegaconf._utils import...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n\nimport copy\nimport functools\nfrom enum import Enum\nfrom textwrap import dedent\nfrom typing import Any, Callable, Dict, List, Sequence, Tuple, Union\n\nfrom omegaconf import OmegaConf, SCMode\nfrom omegaconf._utils import...
diff --git a/hydra/_internal/instantiate/_instantiate2.py b/hydra/_internal/instantiate/_instantiate2.py index 0406bfd3313..3c0331ef225 100644 --- a/hydra/_internal/instantiate/_instantiate2.py +++ b/hydra/_internal/instantiate/_instantiate2.py @@ -133,7 +133,7 @@ def _resolve_target( try: target ...
beetbox__beets-3554
genius: Tolerate missing lyrics div in Genius scraper ``` File "/home/greg/.local/lib/python3.7/site-packages/beetsplug/lyrics.py", line 410, in fetch return self.lyrics_from_song_api_path(song_api_path) File "/home/greg/.local/lib/python3.7/site-packages/beetsplug/lyrics.py", line 376, in lyrics_from_song_a...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 0e797d5a32..00b8820f4c 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -373,7 +373,14 @@ def lyrics_from_song_api_path(self, song_api_path): # At least Genius is nice and has a tag called 'lyrics'! # Updated css where the lyr...
ivy-llc__ivy-18346
Sort
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_supported_dtypes(\n {\"2.5.0 and below\": (\"float32\", \"float64\", \"int16\", \"int32\", \"int64\", \"uint8\")},\n ...
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_supported_dtypes(\n {\"2.5.0 and below\": (\"float32\", \"float64\", \"int16\", \"int32\", \"int64\", \"uint8\")},\n ...
diff --git a/ivy/functional/frontends/paddle/tensor/search.py b/ivy/functional/frontends/paddle/tensor/search.py index 84ebcab375145..33edc11232829 100644 --- a/ivy/functional/frontends/paddle/tensor/search.py +++ b/ivy/functional/frontends/paddle/tensor/search.py @@ -33,6 +33,15 @@ def argsort(x, /, *, axis=-1, descen...
encode__starlette-291
Content-Type and Content-Length headers not automatically populated if headers is given Hi! I was playing around with responses and stumbled upon what seems like a bug. I have already pushed a [fix](https://github.com/florimondmanca/starlette/commit/e6dc80d203b613f211003df63352a37550538e9a) on my fork and would be happ...
[ { "content": "import hashlib\nimport http.cookies\nimport json\nimport os\nimport stat\nimport typing\nfrom email.utils import formatdate\nfrom mimetypes import guess_type\nfrom urllib.parse import quote_plus\n\nfrom starlette.background import BackgroundTask\nfrom starlette.datastructures import URL, MutableHe...
[ { "content": "import hashlib\nimport http.cookies\nimport json\nimport os\nimport stat\nimport typing\nfrom email.utils import formatdate\nfrom mimetypes import guess_type\nfrom urllib.parse import quote_plus\n\nfrom starlette.background import BackgroundTask\nfrom starlette.datastructures import URL, MutableHe...
diff --git a/starlette/responses.py b/starlette/responses.py index 542e800d7..3b8d2752d 100644 --- a/starlette/responses.py +++ b/starlette/responses.py @@ -63,8 +63,8 @@ def init_headers(self, headers: typing.Mapping[str, str] = None) -> None: for k, v in headers.items() ] ke...
nextcloud__appstore-260
Apps without releases should not be rendered on the app list page
[ { "content": "from urllib.parse import urlencode\n\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db.models import Q\nfrom django.http import HttpResponse\nfrom django.shortcuts import get_object_or_404, redirect\nfrom django.utils.functional imp...
[ { "content": "from urllib.parse import urlencode\n\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db.models import Q\nfrom django.http import HttpResponse\nfrom django.shortcuts import get_object_or_404, redirect\nfrom django.utils.functional imp...
diff --git a/nextcloudappstore/core/views.py b/nextcloudappstore/core/views.py index 058de2cbc37..b19e3e5dfde 100644 --- a/nextcloudappstore/core/views.py +++ b/nextcloudappstore/core/views.py @@ -142,7 +142,7 @@ def get_queryset(self): lang = get_language_info(get_language())['code'] category_id = se...
pwndbg__pwndbg-774
QEMU uses binfmt root instead of pwndbg.qemu.root() This bit here should probably use pwndbg.qemu.root() instead of using the module variable directly: https://github.com/pwndbg/pwndbg/blob/609284cee279de345dcb0706e11a0b56abe349f4/pwndbg/file.py#L35
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nRetrieve files from the debuggee's filesystem. Useful when\ndebugging a remote process over SSH or similar, where e.g.\n/proc/FOO/maps is needed from the remote system.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nRetrieve files from the debuggee's filesystem. Useful when\ndebugging a remote process over SSH or similar, where e.g.\n/proc/FOO/maps is needed from the remote system.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import ...
diff --git a/pwndbg/file.py b/pwndbg/file.py index d02ae952860..5ba45416fe6 100755 --- a/pwndbg/file.py +++ b/pwndbg/file.py @@ -30,9 +30,9 @@ def get_file(path): The local path to the file """ local_path = path - - if pwndbg.qemu.root(): - return os.path.join(pwndbg.qemu.binfmt_root, path)...
DataDog__dd-agent-3094
Bug: info command prints OK for process checks that don’t find a process This is unintuitive and unhelpful.
[ { "content": "# (C) Datadog, Inc. 2010-2016\n# (C) Luca Cipriani <luca@c9.io> 2013\n# All rights reserved\n# Licensed under Simplified BSD License (see LICENSE)\n\n# stdlib\nfrom collections import defaultdict\nimport time\n\n# 3p\nimport psutil\n\n# project\nfrom checks import AgentCheck\nfrom config import _i...
[ { "content": "# (C) Datadog, Inc. 2010-2016\n# (C) Luca Cipriani <luca@c9.io> 2013\n# All rights reserved\n# Licensed under Simplified BSD License (see LICENSE)\n\n# stdlib\nfrom collections import defaultdict\nimport time\n\n# 3p\nimport psutil\n\n# project\nfrom checks import AgentCheck\nfrom config import _i...
diff --git a/checks.d/process.py b/checks.d/process.py index 6de78268be..0c1f263d9a 100644 --- a/checks.d/process.py +++ b/checks.d/process.py @@ -356,6 +356,9 @@ def check(self, instance): self.log.debug('ProcessCheck: process %s analysed', name) self.gauge('system.processes.number', len(pids), tags=...
django-cms__django-filer-1212
On upload MIME-type is not set correctly Since version 2.0, the MIME-type of files is stored inside a model field. Before that is was guessed each time needed, by using the file suffix. At the time, when I created that pull request (#1152), I believed that the browser sends the correct MIME type using the HTTP reque...
[ { "content": "import mimetypes\nimport os\n\nfrom django.http.multipartparser import (\n ChunkIter, SkipFile, StopFutureHandlers, StopUpload, exhaust,\n)\nfrom django.template.defaultfilters import slugify as slugify_django\nfrom django.utils.encoding import force_text\nfrom django.utils.text import get_vali...
[ { "content": "import mimetypes\nimport os\n\nfrom django.http.multipartparser import (\n ChunkIter, SkipFile, StopFutureHandlers, StopUpload, exhaust,\n)\nfrom django.template.defaultfilters import slugify as slugify_django\nfrom django.utils.encoding import force_text\nfrom django.utils.text import get_vali...
diff --git a/filer/utils/files.py b/filer/utils/files.py index d3f7c8c2c..15e3c3faf 100644 --- a/filer/utils/files.py +++ b/filer/utils/files.py @@ -32,7 +32,7 @@ def handle_upload(request): # This means we shouldn't continue...raise an error. raise UploadException("Invalid content length: %r"...
ansible__ansible-modules-core-5678
`file` module unexpectedly makes symlink point to `None` ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME file ##### ANSIBLE VERSION ``` ansible 2.2.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides ``` ##### CONFIGURATION Not changed. ##### OS /...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software ...
diff --git a/files/file.py b/files/file.py index 25b008598b3..b7044ca2a18 100644 --- a/files/file.py +++ b/files/file.py @@ -238,6 +238,7 @@ def main(): if follow and state == 'link': # use the current target of the link as the source src = to_native(os.path.realpath(b_pat...
apache__airflow-13286
Version Incompatibility in 1.10.14 resulting from snowflake workaround **Apache Airflow version**: 1.10.14 **Environment**: Python 3.8 - **Install tools**: pipenv **What happened**: So I appear to have stumbled across a version incompatibility for `airflow-1.10.14` apache-airflow[aws] was modified with this [p...
[ { "content": "# -*- coding: utf-8 -*-\n#\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...
[ { "content": "# -*- coding: utf-8 -*-\n#\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...
diff --git a/setup.py b/setup.py index ddd8417a2d61f..2b6e00dc939c6 100644 --- a/setup.py +++ b/setup.py @@ -182,7 +182,7 @@ def write_version(filename=os.path.join(*[my_dir, "airflow", "git_version"])): 'atlasclient>=0.1.2', ] aws = [ - 'boto3~=1.10,<1.11', # required by snowflake + 'boto3~=1.10', ] az...
ansible-collections__community.general-5687
gconftool2 throws an IndexError exception when setting configuration ### Summary When setting a key using gconftool2, an IndexError exception is thrown because the wrong index is used when formatting the command string. It appears to have been broken since version 4.8.1 of this collection. It should be a simple one ch...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016, Kenneth D. Evensen <kevensen@redhat.com>\n# Copyright (c) 2017, Abhijeet Kasurde <akasurde@redhat.com>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-Lic...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016, Kenneth D. Evensen <kevensen@redhat.com>\n# Copyright (c) 2017, Abhijeet Kasurde <akasurde@redhat.com>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-Lic...
diff --git a/changelogs/fragments/5687-gconftool2.yml b/changelogs/fragments/5687-gconftool2.yml new file mode 100644 index 00000000000..4a35131efa3 --- /dev/null +++ b/changelogs/fragments/5687-gconftool2.yml @@ -0,0 +1,2 @@ +bugfixes: + - "gconftool2 - fix crash that prevents setting a key (https://github.com/ansibl...
mlflow__mlflow-2325
[BUG] Type check on code_paths parameter when saving model ### System information Google Colab ### Describe the problem When saving a PyTorch model using `mlflow.pytorch.save_model`, no type checking is performed on the `code_paths` parameter. Specifically, it is not considered that this parameter could accident...
[ { "content": "\"\"\"\nThe ``mlflow.pytorch`` module provides an API for logging and loading PyTorch models. This module\nexports PyTorch models with the following flavors:\n\nPyTorch (native) format\n This is the main flavor that can be loaded back into PyTorch.\n:py:mod:`mlflow.pyfunc`\n Produced for use...
[ { "content": "\"\"\"\nThe ``mlflow.pytorch`` module provides an API for logging and loading PyTorch models. This module\nexports PyTorch models with the following flavors:\n\nPyTorch (native) format\n This is the main flavor that can be loaded back into PyTorch.\n:py:mod:`mlflow.pyfunc`\n Produced for use...
diff --git a/mlflow/pytorch/__init__.py b/mlflow/pytorch/__init__.py index 2dd2dfc957d57..718d1c4cd8da1 100644 --- a/mlflow/pytorch/__init__.py +++ b/mlflow/pytorch/__init__.py @@ -250,6 +250,8 @@ def save_model(pytorch_model, path, conda_env=None, mlflow_model=Model(), code_p yaml.safe_dump(conda_env, stream=...
psf__black-4130
Newlines after code block open, once and for all? Background: - https://github.com/psf/black/issues/902 Original issue, with some follow-up comments post merge - https://github.com/psf/black/pull/3035 Original implementation - https://github.com/psf/black/issues/3551 Follow-up issue - https://github.com/ps...
[ { "content": "import itertools\nimport math\nfrom dataclasses import dataclass, field\nfrom typing import (\n Callable,\n Dict,\n Iterator,\n List,\n Optional,\n Sequence,\n Tuple,\n TypeVar,\n Union,\n cast,\n)\n\nfrom black.brackets import COMMA_PRIORITY, DOT_PRIORITY, BracketTra...
[ { "content": "import itertools\nimport math\nfrom dataclasses import dataclass, field\nfrom typing import (\n Callable,\n Dict,\n Iterator,\n List,\n Optional,\n Sequence,\n Tuple,\n TypeVar,\n Union,\n cast,\n)\n\nfrom black.brackets import COMMA_PRIORITY, DOT_PRIORITY, BracketTra...
diff --git a/CHANGES.md b/CHANGES.md index a6587cc5ceb..fca88612afe 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,6 +17,8 @@ - Format module docstrings the same as class and function docstrings (#4095) - Fix bug where spaces were not added around parenthesized walruses in subscripts, unlike other binary operator...
secdev__scapy-1792
Version comparison not tolerant for development package version. https://github.com/secdev/scapy/blob/0cd9b58d04b9c2ec7b65c9e8f73a89d095c39913/scapy/config.py#L368 It results in following error: ` ValueError: invalid literal for int() with base 10: ''` when used for package with not standardized version, such as `2.4....
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# This program is published under a GPLv2 license\n\n\"\"\"\nImplementation of the configuration object.\n\"\"\"\n\nfrom __future__ import absolute_impo...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# This program is published under a GPLv2 license\n\n\"\"\"\nImplementation of the configuration object.\n\"\"\"\n\nfrom __future__ import absolute_impo...
diff --git a/scapy/config.py b/scapy/config.py index 7df2bdf08e1..4a091bd3de1 100755 --- a/scapy/config.py +++ b/scapy/config.py @@ -361,7 +361,8 @@ def _version_checker(module, minver): - minver: a tuple of versions """ # We could use LooseVersion, but distutils imports imp which is deprecated - ver...
wger-project__wger-240
Deprecation warning in login function Django currently throws a deprecation warning in the login function (`login` in `core/views/user.py`): ``` python wger/core/views/user.py:77: RemovedInDjango19Warning: `request.REQUEST` is deprecated, use `request.GET` or `request.POST` instead. context['next'] = request.REQUE...
[ { "content": "# -*- coding: utf-8 -*-\n\n# This file is part of wger Workout Manager.\n#\n# wger Workout Manager is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as published by\n# the Free Software Foundation, either version 3 of the License...
[ { "content": "# -*- coding: utf-8 -*-\n\n# This file is part of wger Workout Manager.\n#\n# wger Workout Manager is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as published by\n# the Free Software Foundation, either version 3 of the License...
diff --git a/wger/core/views/user.py b/wger/core/views/user.py index f169ce95e..610736d0e 100644 --- a/wger/core/views/user.py +++ b/wger/core/views/user.py @@ -73,8 +73,8 @@ def login(request): context = {'hide_persona': check_request_amazon(request) or check_request_android(request), 'active_ta...
python-pillow__Pillow-1230
Cannot identify XBM file created with filename including underscore Pillow 2.8.1, Python 2.7.6 (Anaconda 2.2.0), Windows 7 64bit When I create git_hub.xbm (with ImageMagick), created file's header contains lines like this. ``` C #define git_hub_width 32 #define git_hub_height 32 ``` In XbmImagePlugin.py, regular exp...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# XBM File handling\n#\n# History:\n# 1995-09-08 fl Created\n# 1996-11-01 fl Added save support\n# 1997-07-07 fl Made header parser more tolerant\n# 1997-07-22 fl Fixed yet another parser bug\n# 2001-02-17 fl Use 're' instead of 'regex' (Pytho...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# XBM File handling\n#\n# History:\n# 1995-09-08 fl Created\n# 1996-11-01 fl Added save support\n# 1997-07-07 fl Made header parser more tolerant\n# 1997-07-22 fl Fixed yet another parser bug\n# 2001-02-17 fl Use 're' instead of 'regex' (Pytho...
diff --git a/PIL/XbmImagePlugin.py b/PIL/XbmImagePlugin.py index 604ba15a886..454a955344f 100644 --- a/PIL/XbmImagePlugin.py +++ b/PIL/XbmImagePlugin.py @@ -26,8 +26,8 @@ # XBM header xbm_head = re.compile( - b"\s*#define[ \t]+[^_]*_width[ \t]+(?P<width>[0-9]+)[\r\n]+" - b"#define[ \t]+[^_]*_height[ \t]+(?P<h...
pyinstaller__pyinstaller-5770
Error about exe runing on another computer:ImportError:DLL load failed Traceback (most recent call last): File "profit_3.0.py", line 2, in <module> File "c:\users\zpf\appdata\local\programs\python\python37\lib\site-packages\Py Installer\loader\pyimod03_importers.py", line 493, in exec_module File "wx\__init__...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2013-2021, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2013-2021, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
diff --git a/PyInstaller/depend/dylib.py b/PyInstaller/depend/dylib.py index 3ccbcd078e..cf4ebe05d7 100644 --- a/PyInstaller/depend/dylib.py +++ b/PyInstaller/depend/dylib.py @@ -97,6 +97,14 @@ r'ucrtbase\.dll', r'vcruntime140\.dll', + # Additional DLLs from VC 2015/2017/2019 runtime. Allow these to be +...
pypa__setuptools-1530
Officially support Python 3.7 - [x] Test against 3.7 (#1514) - [ ] Add Python 3.7 classifier @jaraco @pganssle @benoit-pierre: Didn't see another issue to track this. Not sure what else is necessary here to consider this "supported", feel free to edit as necessary.
[ { "content": "#!/usr/bin/env python\n\"\"\"\nDistutils setup file, used to install or test 'setuptools'\n\"\"\"\n\nimport io\nimport os\nimport sys\nimport textwrap\n\nimport setuptools\n\nhere = os.path.dirname(__file__)\n\n\ndef require_metadata():\n \"Prevent improper installs without necessary metadata. ...
[ { "content": "#!/usr/bin/env python\n\"\"\"\nDistutils setup file, used to install or test 'setuptools'\n\"\"\"\n\nimport io\nimport os\nimport sys\nimport textwrap\n\nimport setuptools\n\nhere = os.path.dirname(__file__)\n\n\ndef require_metadata():\n \"Prevent improper installs without necessary metadata. ...
diff --git a/setup.py b/setup.py index 2cac67a2b0..cdb4ec7999 100755 --- a/setup.py +++ b/setup.py @@ -164,6 +164,7 @@ def pypi_link(pkg_filename): Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 + Programming Language :...
elastic__apm-agent-python-1725
Elastic APM 6.13.0 agent errors when capturing long elasticsearch transactions **Describe the bug**: **To Reproduce** When capturing transactions to elasticsearch, Elastic APM throws errors when executing long transactions (e.g. async_scan), eventually causing the asynchronous event loop to cancel all tasks. ...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain...
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 029b049fe..0f390c264 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -38,8 +38,10 @@ endif::[] * GRPC support {pull}1703[#1703] -//[float] -//===== Bug fixes +[float] +===== Bug fixes + +* Fix an async issue with long elasticsearch queries {pul...
conan-io__conan-15736
[bug] Conan created toolchain accesses an undefined variable ### Environment details * Operating System+version: mac and ubuntu in GitHub CI * Compiler+version: - * Conan version: 2.1.0 * Python version: 3.8 https://github.com/friendlyanon/cmake-init/actions/runs/8003305023/job/21858340788?check_suite_focus=true...
[ { "content": "import os\nimport re\nimport textwrap\nfrom collections import OrderedDict\n\nfrom jinja2 import Template\n\nfrom conan.tools.apple.apple import get_apple_sdk_fullname\nfrom conan.tools.android.utils import android_abi\nfrom conan.tools.apple.apple import is_apple_os, to_apple_arch\nfrom conan.too...
[ { "content": "import os\nimport re\nimport textwrap\nfrom collections import OrderedDict\n\nfrom jinja2 import Template\n\nfrom conan.tools.apple.apple import get_apple_sdk_fullname\nfrom conan.tools.android.utils import android_abi\nfrom conan.tools.apple.apple import is_apple_os, to_apple_arch\nfrom conan.too...
diff --git a/conan/tools/cmake/toolchain/blocks.py b/conan/tools/cmake/toolchain/blocks.py index 0a1fcabeb74..99612fc09ec 100644 --- a/conan/tools/cmake/toolchain/blocks.py +++ b/conan/tools/cmake/toolchain/blocks.py @@ -635,7 +635,7 @@ def context(self): class CMakeFlagsInitBlock(Block): template = textwrap.de...
onnx__sklearn-onnx-525
Conversion of HistGradientBoosting fails with scikit-learn 0.24
[ { "content": "# -------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for\n# license information.\n# -----------------------------------------------------------...
[ { "content": "# -------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for\n# license information.\n# -----------------------------------------------------------...
diff --git a/docs/tests/test_documentation_examples.py b/docs/tests/test_documentation_examples.py index c79ae6df1..f78fd22dd 100644 --- a/docs/tests/test_documentation_examples.py +++ b/docs/tests/test_documentation_examples.py @@ -7,6 +7,7 @@ import sys import importlib import subprocess +import numpy import onnx...
ansible__ansible-modules-core-3257
source_control/subversion.py needs to reset LC_MESSAGES ##### Issue Type: <!-- Please pick one and delete the rest: --> - Bug Report ##### Plugin Name: <!-- Name of the plugin/module/task --> subversion ##### Ansible Version: ``` ansible-playbook 2.1.0 (devel 86080fbaa9) last updated 2016/03/15 19:12:05 (GMT +200) ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software ...
diff --git a/source_control/subversion.py b/source_control/subversion.py index c45b11bfe0a..3fb88d5e49e 100644 --- a/source_control/subversion.py +++ b/source_control/subversion.py @@ -216,7 +216,10 @@ def main(): export = module.params['export'] switch = module.params['switch'] - os.environ['LANG'] = 'C...
microsoft__DeepSpeed-4985
[BUG] Deepspeed elastic launcher is incompatible with torch 2.0 **Describe the bug** If I run `deepspeed` with `--elastic_training`, I got the following error: ``` Traceback (most recent call last): File "./lib/python3.9/site-packages/torch/distributed/elastic/metrics/api.py", line 129, in wrapper result...
[ { "content": "# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\nfrom torch.distributed.elastic.agent.server.local_elastic_agent import LocalElasticAgent\nfrom typing import Any, Dict, Optional, Tuple\nfrom datetime import datetime\nfrom torch.distributed.elasti...
[ { "content": "# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\nfrom torch.distributed.elastic.agent.server.local_elastic_agent import LocalElasticAgent\nfrom typing import Any, Dict, Optional, Tuple\nfrom datetime import datetime\nfrom torch.distributed.elasti...
diff --git a/deepspeed/elasticity/elastic_agent.py b/deepspeed/elasticity/elastic_agent.py index 91a217cb9971..c1e8932ecaba 100644 --- a/deepspeed/elasticity/elastic_agent.py +++ b/deepspeed/elasticity/elastic_agent.py @@ -39,7 +39,10 @@ def __init__( self.ds_env = env @staticmethod - def _set_master...
falconry__falcon-2096
3.1.0: pytest warnings (config from `setup.cfg` is ignored) I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account. - `python3 -sBm build -w --no-isolation` - because I'm calling `build` with `--no-isolat...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Falcon documentation build configuration file, created by\n# sphinx-quickstart on Wed Mar 12 14:14:02 2014.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Falcon documentation build configuration file, created by\n# sphinx-quickstart on Wed Mar 12 14:14:02 2014.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi...
diff --git a/docs/conf.py b/docs/conf.py index d0f1afeb2..3e2a2c05a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,16 +14,14 @@ from datetime import datetime from collections import OrderedDict +import configparser import multiprocessing import sys import os -try: - import configparser -except ImportEr...
urllib3__urllib3-627
pyopenssl performance hit from issue#412 The fix for issue #412 (25755abf27790118cbe1df9bd3b967085c039e9d) introduced a significant performance hit to large file uploads. In my benchmarks testing with a 50 MB file: - curl can upload the file in 0.5s (just for context) - requests + urllib3 using the current implementat...
[ { "content": "'''SSL with SNI_-support for Python 2. Follow these instructions if you would\nlike to verify SSL certificates in Python 2. Note, the default libraries do\n*not* do certificate checking; you need to do additional work to validate\ncertificates yourself.\n\nThis needs the following packages install...
[ { "content": "'''SSL with SNI_-support for Python 2. Follow these instructions if you would\nlike to verify SSL certificates in Python 2. Note, the default libraries do\n*not* do certificate checking; you need to do additional work to validate\ncertificates yourself.\n\nThis needs the following packages install...
diff --git a/urllib3/contrib/pyopenssl.py b/urllib3/contrib/pyopenssl.py index 058b61c8f6..3d3cd60f99 100644 --- a/urllib3/contrib/pyopenssl.py +++ b/urllib3/contrib/pyopenssl.py @@ -204,9 +204,11 @@ def _send_until_done(self, data): continue def sendall(self, data): - while len(data): - ...
Pylons__pyramid-3555
DeprecationWarning: the imp module is deprecated in favour of importlib ## Bug Report **Describe the bug** After generating a Pyramid project from the master branch of the pyramid-cookiecutter-starter and running tests, a DeprecationWarning is output: `DeprecationWarning: the imp module is deprecated in favour o...
[ { "content": "import os\nimport pkg_resources\nimport sys\nimport imp\n\nfrom zope.interface import implementer\n\nfrom pyramid.interfaces import IAssetDescriptor\n\nignore_types = [imp.C_EXTENSION, imp.C_BUILTIN]\ninit_names = [\n '__init__%s' % x[0]\n for x in imp.get_suffixes()\n if x[0] and x[2] no...
[ { "content": "from importlib.machinery import SOURCE_SUFFIXES\nimport os\nimport pkg_resources\nimport sys\n\nfrom zope.interface import implementer\n\nfrom pyramid.interfaces import IAssetDescriptor\n\ninit_names = ['__init__%s' % x for x in SOURCE_SUFFIXES]\n\n\ndef caller_path(path, level=2):\n if not os....
diff --git a/CHANGES.rst b/CHANGES.rst index 7943015783..383906e006 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -68,6 +68,9 @@ Features ``pyramid.static.static_view``. See https://github.com/Pylons/pyramid/pull/3537 +- Fix ``DeprecationWarning`` emitted by using the ``imp`` module. + See https://github.com/P...
robocorp__rpaframework-617
`RPA.Windows.Get Elements` not copying the `robocorp_click_offset` attribute Should make available this attribute in all siblings found elements, otherwise the `Click` keyword will fail when using offsets: <img width="841" alt="Screen Shot 2022-08-26 at 4 48 38 PM" src="https://user-images.githubusercontent.com/7090...
[ { "content": "from typing import List, Optional\n\nfrom RPA.core.windows.locators import (\n Locator,\n LocatorMethods,\n WindowsElement,\n)\n\nfrom RPA.Windows.keywords import keyword\nfrom RPA.Windows.keywords.context import with_timeout\n\n\nclass LocatorKeywords(LocatorMethods):\n \"\"\"Keywords...
[ { "content": "from typing import List, Optional\n\nfrom RPA.core.windows.locators import (\n Locator,\n LocatorMethods,\n WindowsElement,\n)\n\nfrom RPA.Windows.keywords import keyword\nfrom RPA.Windows.keywords.context import with_timeout\n\n\nclass LocatorKeywords(LocatorMethods):\n \"\"\"Keywords...
diff --git a/docs/source/releasenotes.rst b/docs/source/releasenotes.rst index 6627fe287d..df120bab0b 100644 --- a/docs/source/releasenotes.rst +++ b/docs/source/releasenotes.rst @@ -7,6 +7,8 @@ Release notes - Library **RPA.Browser.Selenium** (:issue:`615`): Keyword ``Open Available Browser`` supports passing a ...
vacanza__python-holidays-376
pop_named() sometimes generates an exception This simple code block generates an exception when I try to pop "Columbus Day" (last line): ``` from datetime import date import holidays us_holidays = holidays.CountryHoliday('US', prov=None, state='CA', years=2022) print(us_holidays.get('2022-10-10').format(...
[ { "content": "# -*- coding: utf-8 -*-\n\n# python-holidays\n# ---------------\n# A fast, efficient Python library for generating country, province and state\n# specific sets of holidays on the fly. It aims to make determining whether a\n# specific date is a holiday as fast and flexible as possible.\n#\n# ...
[ { "content": "# -*- coding: utf-8 -*-\n\n# python-holidays\n# ---------------\n# A fast, efficient Python library for generating country, province and state\n# specific sets of holidays on the fly. It aims to make determining whether a\n# specific date is a holiday as fast and flexible as possible.\n#\n# ...
diff --git a/holidays/holiday_base.py b/holidays/holiday_base.py index 813d51802..8143e4eb4 100644 --- a/holidays/holiday_base.py +++ b/holidays/holiday_base.py @@ -147,7 +147,8 @@ def get_list(self, key): def get_named(self, name): # find all dates matching provided name (accepting partial # str...
Parsl__parsl-1642
checkpointing vs parsl.AUTO_LOGNAME `parsl.AUTO_LOG_NAME` is resolved into a dynamically generated path before memoization happens. This means that an app invoked with `parsl.AUTO_LOG_NAME` will not be memoizable/checkpointable, as the arguments differ each time. Maybe this resolution to a concrete path should be ig...
[ { "content": "import atexit\nimport logging\nimport os\nimport pathlib\nimport pickle\nimport random\nimport typeguard\nimport inspect\nimport threading\nimport sys\nimport datetime\nfrom getpass import getuser\nfrom typing import Optional\nfrom uuid import uuid4\nfrom socket import gethostname\nfrom concurrent...
[ { "content": "import atexit\nimport logging\nimport os\nimport pathlib\nimport pickle\nimport random\nimport typeguard\nimport inspect\nimport threading\nimport sys\nimport datetime\nfrom getpass import getuser\nfrom typing import Optional\nfrom uuid import uuid4\nfrom socket import gethostname\nfrom concurrent...
diff --git a/parsl/dataflow/dflow.py b/parsl/dataflow/dflow.py index 53f393c8ab..9db4256fc2 100644 --- a/parsl/dataflow/dflow.py +++ b/parsl/dataflow/dflow.py @@ -713,6 +713,8 @@ def submit(self, func, app_args, executors='all', fn_hash=None, cache=False, ign for kw in ['stdout', 'stderr']: if kw ...
ibis-project__ibis-8860
feat: support empty URL for local backends in ibis.connect() ### Is your feature request related to a problem? often when testing against multiple backends, myself or a user will do something like: ```python backend = "polars" if backend == "polars": con = ibis.polars.connect() ... ``` Ibis supports...
[ { "content": "from __future__ import annotations\n\nimport abc\nimport collections.abc\nimport functools\nimport importlib.metadata\nimport keyword\nimport re\nimport sys\nimport urllib.parse\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Any, Callable, ClassVar\nfrom urllib.parse import parse_qs,...
[ { "content": "from __future__ import annotations\n\nimport abc\nimport collections.abc\nimport functools\nimport importlib.metadata\nimport keyword\nimport re\nimport sys\nimport urllib.parse\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Any, Callable, ClassVar\nfrom urllib.parse import parse_qs,...
diff --git a/ibis/backends/__init__.py b/ibis/backends/__init__.py index e5c9798b2f99..6a443516c525 100644 --- a/ibis/backends/__init__.py +++ b/ibis/backends/__init__.py @@ -1458,5 +1458,21 @@ class NoUrl: name: str - def _from_url(self, url: str, **_) -> ir.Table: - raise NotImplementedError(self.n...
projectmesa__mesa-1001
No public version of NetworkGrid._remove_agent, though code exists Currently it is not possible to remove an Agent from a NetworkGrid using a **public** function. Currently, you can do the following: ```python ... model.grid = NetworkGrid(G) ... a = Agent(...) model.grid._remove_agent(a, a.pos) ... ``` B...
[ { "content": "\"\"\"\nMesa Space Module\n=================\n\nObjects used to add a spatial component to a model.\n\nGrid: base grid, a simple list-of-lists.\nSingleGrid: grid which strictly enforces one object per cell.\nMultiGrid: extension to Grid where each cell is a set of objects.\n\n\"\"\"\n# Instruction...
[ { "content": "\"\"\"\nMesa Space Module\n=================\n\nObjects used to add a spatial component to a model.\n\nGrid: base grid, a simple list-of-lists.\nSingleGrid: grid which strictly enforces one object per cell.\nMultiGrid: extension to Grid where each cell is a set of objects.\n\n\"\"\"\n# Instruction...
diff --git a/mesa/space.py b/mesa/space.py index 20f99159428..8399858030b 100644 --- a/mesa/space.py +++ b/mesa/space.py @@ -871,6 +871,12 @@ def _remove_agent(self, agent: Agent, node_id: int) -> None: self.G.nodes[node_id]["agent"].remove(agent) + def remove_agent(self, agent: Agent) -> None: + ...
django-oscar__django-oscar-4017
Offer Combination Removal Issue ### Issue Summary Removing an offer combination does not remove the offer combination from both the current offer being saved and the offer that was combined. ### Steps to Reproduce 1. Create 2 non-exclusive Offers (Offer A and Offer B) 2. Add Offer A as a Combination on Off...
[ { "content": "from django import forms\nfrom django.conf import settings\nfrom django.utils import timezone\nfrom django.utils.translation import gettext_lazy as _\n\nfrom oscar.core.loading import get_model\nfrom oscar.forms import widgets\n\nConditionalOffer = get_model('offer', 'ConditionalOffer')\nCondition...
[ { "content": "from django import forms\nfrom django.conf import settings\nfrom django.utils import timezone\nfrom django.utils.translation import gettext_lazy as _\n\nfrom oscar.core.loading import get_model\nfrom oscar.forms import widgets\n\nConditionalOffer = get_model('offer', 'ConditionalOffer')\nCondition...
diff --git a/src/oscar/apps/dashboard/offers/forms.py b/src/oscar/apps/dashboard/offers/forms.py index d0c946bc1a3..4dda3403f61 100644 --- a/src/oscar/apps/dashboard/offers/forms.py +++ b/src/oscar/apps/dashboard/offers/forms.py @@ -74,6 +74,9 @@ def save(self, *args, **kwargs): """ instance = super()...
ansible__awx-11088
Errors caused by Social Auth Organization and Team Mapping; Users unable to login ### Please confirm the following - [X] I agree to follow this project's [code of conduct](http://docs.ansible.com/ansible/latest/community/code_of_conduct.html). - [X] I have checked the [current issues](https://github.com/ansible/awx...
[ { "content": "# Copyright (c) 2015 Ansible, Inc.\n# All Rights Reserved.\n\n\n# Django\nfrom django.conf import settings\nfrom django.db import models\nfrom django.contrib.auth.models import User\nfrom django.contrib.sessions.models import Session\nfrom django.utils.timezone import now as tz_now\nfrom django.ut...
[ { "content": "# Copyright (c) 2015 Ansible, Inc.\n# All Rights Reserved.\n\n\n# Django\nfrom django.conf import settings\nfrom django.db import models\nfrom django.contrib.auth.models import User\nfrom django.contrib.sessions.models import Session\nfrom django.utils.timezone import now as tz_now\nfrom django.ut...
diff --git a/awx/main/models/organization.py b/awx/main/models/organization.py index 9ec91cfb4bd4..277b33315e82 100644 --- a/awx/main/models/organization.py +++ b/awx/main/models/organization.py @@ -118,7 +118,7 @@ def create_default_galaxy_credential(self): from awx.main.models import Credential pu...
pytorch__ignite-1675
Loss automatically detaching inputs breaks some workflows ## 🐛 Bug description https://github.com/pytorch/ignite/blob/master/ignite/metrics/loss.py#L60 Before 0.4.3, the `y_pred` and `y` were passed without calling detach. Now because of detach a number of usecases are no longer possible. An example is: https...
[ { "content": "from typing import Callable, Dict, Sequence, Tuple, Union, cast\n\nimport torch\n\nfrom ignite.exceptions import NotComputableError\nfrom ignite.metrics.metric import Metric, reinit__is_reduced, sync_all_reduce\n\n__all__ = [\"Loss\"]\n\n\nclass Loss(Metric):\n \"\"\"\n Calculates the averag...
[ { "content": "from typing import Callable, Dict, Sequence, Tuple, Union, cast\n\nimport torch\n\nfrom ignite.exceptions import NotComputableError\nfrom ignite.metrics.metric import Metric, reinit__is_reduced, sync_all_reduce\n\n__all__ = [\"Loss\"]\n\n\nclass Loss(Metric):\n \"\"\"\n Calculates the averag...
diff --git a/ignite/metrics/loss.py b/ignite/metrics/loss.py index 18fc34a36d87..5991059ce26a 100644 --- a/ignite/metrics/loss.py +++ b/ignite/metrics/loss.py @@ -57,7 +57,7 @@ def update(self, output: Sequence[Union[torch.Tensor, Dict]]) -> None: kwargs = {} # type: Dict else: y_pre...
kornia__kornia-2502
VideoSequential is applying the exact same augmentations from one batch to another ### Describe the bug VideoSequential is applying the same augmentations from one batch to another. Nothing is randomized from one batch to another, defeating the point of augmentations. For instance see the attached tensorboard vis...
[ { "content": "from typing import Any, Dict, List, Optional, Tuple, Union, cast\n\nimport torch\n\nimport kornia.augmentation as K\nfrom kornia.augmentation.base import _AugmentationBase\nfrom kornia.augmentation.container.base import SequentialBase\nfrom kornia.augmentation.container.image import ImageSequentia...
[ { "content": "from typing import Any, Dict, List, Optional, Tuple, Union, cast\n\nimport torch\n\nimport kornia.augmentation as K\nfrom kornia.augmentation.base import _AugmentationBase\nfrom kornia.augmentation.container.base import SequentialBase\nfrom kornia.augmentation.container.image import ImageSequentia...
diff --git a/kornia/augmentation/container/video.py b/kornia/augmentation/container/video.py index d5704fa7a2..bb80a70bd8 100644 --- a/kornia/augmentation/container/video.py +++ b/kornia/augmentation/container/video.py @@ -331,8 +331,7 @@ def forward( raise AssertionError(f"Input must be a 5-dim tensor. Go...
SCons__scons-4013
UnicodeDecodeError Why i get error if type help command? Python 3.8.10 Scons 4.2.0 ![Безымянный](https://user-images.githubusercontent.com/64489444/131680807-3b5b91f2-32f5-428b-ae24-39e820ce0c88.png) UnicodeDecodeError Why i get error if type help command? Python 3.8.10 Scons 4.2.0 ![Безымянный](https://user-im...
[ { "content": "# MIT License\n#\n# Copyright The SCons Foundation\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitation the right...
[ { "content": "# MIT License\n#\n# Copyright The SCons Foundation\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitation the right...
diff --git a/CHANGES.txt b/CHANGES.txt index a4f7cd39b0..b6ff2604b4 100755 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -19,6 +19,10 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER from 3.10 was not expected by SubstTests.py and test/Subst/Syntax.py - EmitterProxy rich comparison set is completed (checker warning)...
OpenNMT__OpenNMT-py-969
Error when using ./tools/embeddings_to_torch.py **I am getting the following error. Is it harmful and anyone know how to solve it?** [2018-09-24 21:06:09,964 INFO] From: ./glove_experiment/data.vocab.pt [2018-09-24 21:06:09,964 INFO] * source vocab: 50002 words [2018-09-24 21:06:09,964 INFO] * target vocab: 5...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import print_function\nfrom __future__ import division\nimport six\nimport sys\nimport numpy as np\nimport argparse\nimport torch\nfrom onmt.utils.logging import init_logger, logger\n\n\ndef get_vocabs(dict_file):\n vocabs = torch....
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import print_function\nfrom __future__ import division\nimport six\nimport sys\nimport numpy as np\nimport argparse\nimport torch\nfrom onmt.utils.logging import init_logger, logger\n\n\ndef get_vocabs(dict_file):\n vocabs = torch....
diff --git a/tools/embeddings_to_torch.py b/tools/embeddings_to_torch.py index a92868a88b..9c2b6d16ef 100755 --- a/tools/embeddings_to_torch.py +++ b/tools/embeddings_to_torch.py @@ -127,8 +127,8 @@ def main(): match_percent[1])) logger.info("\nFiltered embeddings:") - logger.info("\t* enc...
mne-tools__mne-bids-pipeline-733
Setting decode_csp does run CSP, but doesn't create grand average CSP results when running the group average step The reason is that we decide to run CSP if `decoding_csp is True`, but when generating the grand average, we check for the combination of **two** configuration values: https://github.com/mne-tools/mne-bi...
[ { "content": "\"\"\"Group average at the sensor level.\n\nThe M/EEG-channel data are averaged for group averages.\n\"\"\"\n\nimport os\nimport os.path as op\nfrom collections import defaultdict\nfrom typing import Optional, TypedDict, List, Tuple\nfrom types import SimpleNamespace\n\nimport numpy as np\nimport ...
[ { "content": "\"\"\"Group average at the sensor level.\n\nThe M/EEG-channel data are averaged for group averages.\n\"\"\"\n\nimport os\nimport os.path as op\nfrom collections import defaultdict\nfrom typing import Optional, TypedDict, List, Tuple\nfrom types import SimpleNamespace\n\nimport numpy as np\nimport ...
diff --git a/docs/source/v1.3.md.inc b/docs/source/v1.3.md.inc index 1adefe61f..2abcc1813 100644 --- a/docs/source/v1.3.md.inc +++ b/docs/source/v1.3.md.inc @@ -16,3 +16,4 @@ - Fix pandas 2.0 compatibility (#732 by @larsoner) - Fix bug with `mne.sys_info` insertion in reports (#732 by @larsoner) +- Always generate ...
webkom__lego-1321
Fix event registration pool overflow Proof of concept here: https://github.com/webkom/lego/pull/1321/files
[ { "content": "from datetime import timedelta\n\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.db import models, transaction\nfrom django.db.models import Count, Sum\nfrom django.utils import timezone\n\nfrom lego.apps.action_handlers.events import handle_event...
[ { "content": "from datetime import timedelta\n\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.db import models, transaction\nfrom django.db.models import Count, Sum\nfrom django.utils import timezone\n\nfrom lego.apps.action_handlers.events import handle_event...
diff --git a/lego/apps/events/models.py b/lego/apps/events/models.py index d392c78f5..822f44e32 100644 --- a/lego/apps/events/models.py +++ b/lego/apps/events/models.py @@ -443,6 +443,8 @@ def rebalance_pool(self, from_pool, to_pool): to_pool_permissions = to_pool.permission_groups.all() bumped = Fals...
pyro-ppl__numpyro-1647
Error when importing numpyro-0.13.1 UPDATE: Bumping JAX to the latest version seems to fix the problem jax version = 0.4.14 Reproducible example in google colab: https://colab.research.google.com/drive/1R444hZjVV0KDaaksTE6Gf72DaH8rUqZt?usp=sharing ``` [/usr/local/lib/python3.10/dist-packages/numpyro/__init__....
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nimport jax\nfrom jax.api_util import flatten_fun, shaped_abstractify\nimport jax.core as core\nfrom jax.experimental.pjit import pjit_p\nimport jax.extend.linear_util as lu\nfrom jax.interpreters.partial_eval i...
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nimport jax\nfrom jax.api_util import flatten_fun, shaped_abstractify\nimport jax.core as core\nfrom jax.experimental.pjit import pjit_p\n\ntry:\n import jax.extend.linear_util as lu\nexcept ImportError:\n ...
diff --git a/numpyro/ops/provenance.py b/numpyro/ops/provenance.py index e7900eeca..9e8eecc2a 100644 --- a/numpyro/ops/provenance.py +++ b/numpyro/ops/provenance.py @@ -5,7 +5,11 @@ from jax.api_util import flatten_fun, shaped_abstractify import jax.core as core from jax.experimental.pjit import pjit_p -import jax.e...
larq__larq-39
Add test coverage report to Azure Pipelines https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/python?view=azure-devops#test-with-pytest-and-collect-coverage-metrics-with-pytest-cov
[ { "content": "from setuptools import setup, find_packages\n\n\ndef readme():\n with open(\"README.md\", \"r\") as f:\n return f.read()\n\n\nsetup(\n name=\"pl-xquant\",\n version=\"0.0.0\",\n author=\"Plumerai\",\n author_email=\"lukas@plumerai.co.uk\",\n description=\"An Open Source Ma...
[ { "content": "from setuptools import setup, find_packages\n\n\ndef readme():\n with open(\"README.md\", \"r\") as f:\n return f.read()\n\n\nsetup(\n name=\"pl-xquant\",\n version=\"0.0.0\",\n author=\"Plumerai\",\n author_email=\"lukas@plumerai.co.uk\",\n description=\"An Open Source Ma...
diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..a3e269a9 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,3 @@ +[run] +omit = + *_test.py diff --git a/.gitignore b/.gitignore index 4c5b66b9..014959ae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +junit _build mkdocs.yml diff --gi...
localstack__localstack-8398
Unable to change ContentBasedDeduplication attribute on existing queue ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior If I create a queue and try to change its `ContentDeduplication` attribute, I see this error: ` An error occurred (InvalidAttributeNa...
[ { "content": "# Valid unicode values: #x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF\n# https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html\nfrom localstack.aws.api.sqs import QueueAttributeName\n\nMSG_CONTENT_REGEX = \"^[\\u0009\\u000A\\u000D\\u...
[ { "content": "# Valid unicode values: #x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF\n# https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html\nfrom localstack.aws.api.sqs import QueueAttributeName\n\nMSG_CONTENT_REGEX = \"^[\\u0009\\u000A\\u000D\\u...
diff --git a/localstack/services/sqs/constants.py b/localstack/services/sqs/constants.py index 214034aa72158..06f9cc1cf6496 100644 --- a/localstack/services/sqs/constants.py +++ b/localstack/services/sqs/constants.py @@ -26,7 +26,6 @@ QueueAttributeName.ApproximateNumberOfMessages, QueueAttributeName.Approxim...
pyca__cryptography-2682
Any interest for an override parameter for _MAX_CLOCK_SKEW? It seems like a narrow assumption to assume that the actors communicating via Fernet-encrypted messages will always be able to have somewhat synchronized clocks. In our case, we have no way to amend the clocks of the systems upon which our software runs and th...
[ { "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 base64\nimport binascii\nimport os\nim...
[ { "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 base64\nimport binascii\nimport os\nim...
diff --git a/src/cryptography/fernet.py b/src/cryptography/fernet.py index 6fbe9f27a1b0..99eb10e5459d 100644 --- a/src/cryptography/fernet.py +++ b/src/cryptography/fernet.py @@ -91,8 +91,10 @@ def decrypt(self, token, ttl=None): if ttl is not None: if timestamp + ttl < current_time: ...
keras-team__keras-19449
Unrecognized 'input_length' keyword arguments passed to Embedding I try to build embedding layer but it results in ValueError: Unrecognized keyword arguments passed to Embedding: {'input_length': 500} ``` inp_layer = tf.keras.layers.Input(shape=(INPUT_SIZE,)) mid_layers = tf.keras.layers.Embedding(input_dim = WORDS...
[ { "content": "from keras import backend\nfrom keras import constraints\nfrom keras import dtype_policies\nfrom keras import initializers\nfrom keras import ops\nfrom keras import quantizers\nfrom keras import regularizers\nfrom keras.api_export import keras_export\nfrom keras.layers.layer import Layer\n\n\n@ker...
[ { "content": "from keras import backend\nfrom keras import constraints\nfrom keras import dtype_policies\nfrom keras import initializers\nfrom keras import ops\nfrom keras import quantizers\nfrom keras import regularizers\nfrom keras.api_export import keras_export\nfrom keras.layers.layer import Layer\n\n\n@ker...
diff --git a/keras/layers/core/embedding.py b/keras/layers/core/embedding.py index 712e91f9e5bc..0756f4e0ca94 100644 --- a/keras/layers/core/embedding.py +++ b/keras/layers/core/embedding.py @@ -20,7 +20,7 @@ class Embedding(Layer): Example: >>> model = keras.Sequential() - >>> model.add(keras.layers.Emb...
translate__pootle-5046
Files dropdown keeps references to empty directories In https://mozilla.locamotion.org/templates/firefox/toolkit/chrome/mozapps/plugins/ there were files that have been removed a while ago, but you can still select this empty directory in the dropdown. This **plugins** directory is not displayed in the statistics table...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nimport logging...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nimport logging...
diff --git a/pootle/apps/pootle_project/models.py b/pootle/apps/pootle_project/models.py index 048d836fcd0..94f29e020aa 100644 --- a/pootle/apps/pootle_project/models.py +++ b/pootle/apps/pootle_project/models.py @@ -583,8 +583,13 @@ def invalidate_resources_cache(**kwargs): return # Don't invalidate if...
ytdl-org__youtube-dl-18425
Extractor for yourporn.sexy is broken ## Please follow the guide below - You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`) - Use the *Preview* tab to see what...
[ { "content": "from __future__ import unicode_literals\n\nfrom .common import InfoExtractor\nfrom ..utils import urljoin\n\n\nclass YourPornIE(InfoExtractor):\n _VALID_URL = r'https?://(?:www\\.)?yourporn\\.sexy/post/(?P<id>[^/?#&.]+)'\n _TEST = {\n 'url': 'https://yourporn.sexy/post/57ffcb2e1179b.h...
[ { "content": "from __future__ import unicode_literals\n\nfrom .common import InfoExtractor\nfrom ..utils import urljoin\n\n\nclass YourPornIE(InfoExtractor):\n _VALID_URL = r'https?://(?:www\\.)?yourporn\\.sexy/post/(?P<id>[^/?#&.]+)'\n _TEST = {\n 'url': 'https://yourporn.sexy/post/57ffcb2e1179b.h...
diff --git a/youtube_dl/extractor/yourporn.py b/youtube_dl/extractor/yourporn.py index 6602f7c03a9..a9951f3b830 100644 --- a/youtube_dl/extractor/yourporn.py +++ b/youtube_dl/extractor/yourporn.py @@ -26,7 +26,7 @@ def _real_extract(self, url): self._search_regex( r'data-vnfo=(["\'])(?P<da...
deis__deis-2029
chore(*): bump CoreOS to 459.0.0 Only the rackspace image is missing (I don't know if this could be merged without that) Change to controller scheduler for fleet v0.8.3 Since v0.8.2 fleet return the proper http status code. In the line https://github.com/deis/deis/blob/master/controller/scheduler/coreos.py#L58 must ch...
[ { "content": "import cStringIO\nimport base64\nimport copy\nimport json\nimport httplib\nimport paramiko\nimport socket\nimport re\nimport time\n\n\nMATCH = re.compile(\n '(?P<app>[a-z0-9-]+)_?(?P<version>v[0-9]+)?\\.?(?P<c_type>[a-z-_]+)?.(?P<c_num>[0-9]+)')\n\n\nclass UHTTPConnection(httplib.HTTPConnection...
[ { "content": "import cStringIO\nimport base64\nimport copy\nimport json\nimport httplib\nimport paramiko\nimport socket\nimport re\nimport time\n\n\nMATCH = re.compile(\n '(?P<app>[a-z0-9-]+)_?(?P<version>v[0-9]+)?\\.?(?P<c_type>[a-z-_]+)?.(?P<c_num>[0-9]+)')\n\n\nclass UHTTPConnection(httplib.HTTPConnection...
diff --git a/Vagrantfile b/Vagrantfile index e3cd7dc15b..d767d91706 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -35,7 +35,7 @@ else $vb_cpus = 1 end -COREOS_VERSION = "452.0.0" +COREOS_VERSION = "459.0.0" if File.exist?(CONFIG) require CONFIG diff --git a/contrib/bare-metal/README.md b/contrib/bare-metal/...
pytorch__ignite-522
Bug in ConfusionMatrix When passing in the groundtruth `y` with the format of `shape (batch_size, num_categories, ...) and contains ground-truth class indices`, flattened one-hot encoding tensor `y_ohe_t` will result in wrong order with respect to that of prediction. https://github.com/pytorch/ignite/blob/fc85e25dc4f93...
[ { "content": "import numbers\n\nimport torch\n\nfrom ignite.metrics import Metric, MetricsLambda\nfrom ignite.exceptions import NotComputableError\nfrom ignite.utils import to_onehot\n\n\nclass ConfusionMatrix(Metric):\n \"\"\"Calculates confusion matrix for multi-class data.\n\n - `update` must receive o...
[ { "content": "import numbers\n\nimport torch\n\nfrom ignite.metrics import Metric, MetricsLambda\nfrom ignite.exceptions import NotComputableError\nfrom ignite.utils import to_onehot\n\n\nclass ConfusionMatrix(Metric):\n \"\"\"Calculates confusion matrix for multi-class data.\n\n - `update` must receive o...
diff --git a/ignite/metrics/confusion_matrix.py b/ignite/metrics/confusion_matrix.py index 4325e3b869cc..3546796a28dc 100644 --- a/ignite/metrics/confusion_matrix.py +++ b/ignite/metrics/confusion_matrix.py @@ -77,7 +77,7 @@ def update(self, output): y_ohe = to_onehot(y.reshape(-1), self.num_classes) ...
pymedusa__Medusa-9812
Looney Tunes (tvdb72514) not post-processing specials **Describe the bug** Added the show Looney Tunes (tvdb72514) and all episodes are post-processed as expected, but specials are not. Doesn't matter what I add in the scene exception list or how I rename the files. **To Reproduce** Steps to reproduce the behavi...
[ { "content": "# coding=utf-8\n\n\"\"\"Parser module which contains NameParser class.\"\"\"\nfrom __future__ import unicode_literals\n\nimport logging\nimport time\nfrom collections import OrderedDict\n\nimport guessit\n\nfrom medusa import (\n common,\n db,\n helpers,\n scene_exceptions,\n scene_...
[ { "content": "# coding=utf-8\n\n\"\"\"Parser module which contains NameParser class.\"\"\"\nfrom __future__ import unicode_literals\n\nimport logging\nimport time\nfrom collections import OrderedDict\n\nimport guessit\n\nfrom medusa import (\n common,\n db,\n helpers,\n scene_exceptions,\n scene_...
diff --git a/medusa/name_parser/parser.py b/medusa/name_parser/parser.py index 8e29325bd6..f73208772a 100644 --- a/medusa/name_parser/parser.py +++ b/medusa/name_parser/parser.py @@ -326,7 +326,7 @@ def _parse_string(self, name): elif result.series.is_anime or result.is_anime: new_episode_numbers,...
zestedesavoir__zds-site-6620
Perte de forums et sujets suivis lors de l'éviction d'un groupe Rapporté sur [le forum](https://zestedesavoir.com/forums/sujet/17427/perdu-mes-suivis-en-forum-staff/). On perd les forums et sujets suivis lorsqu'un forum est restreint à deux groupes et qu'on est retiré d'un de ces groupes. Pour reproduire : 1. Cr...
[ { "content": "import inspect\nimport logging\n\ntry:\n from functools import wraps\nexcept ImportError:\n from django.utils.functional import wraps\n\nfrom django.contrib.auth.models import User\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.db import DatabaseError\nfrom django.d...
[ { "content": "import inspect\nimport logging\n\ntry:\n from functools import wraps\nexcept ImportError:\n from django.utils.functional import wraps\n\nfrom django.contrib.auth.models import User\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.db import DatabaseError\nfrom django.d...
diff --git a/zds/member/tests/factories.py b/zds/member/tests/factories.py index e75e4d2e85..80f3ee376c 100644 --- a/zds/member/tests/factories.py +++ b/zds/member/tests/factories.py @@ -103,6 +103,22 @@ class NonAsciiUserFactory(UserFactory): username = factory.Sequence("ïéàçÊÀ{}".format) +class MultipleGroup...
pytorch__vision-6123
draw_bounding_boxes should check that (W, H) >= (xmax, ymax) >= (xmin, ymin) >= (0, 0) ### 🚀 The feature Currently, `draw_bounding_boxes` does not sanity check the input bounding boxes to ensure that `(xmax, ymax) >= (xmin, ymin)`. This can lead to unexpected output that can be difficult to debug if the user, say, in...
[ { "content": "import math\nimport pathlib\nimport warnings\nfrom types import FunctionType\nfrom typing import Any, BinaryIO, List, Optional, Tuple, Union\n\nimport numpy as np\nimport torch\nfrom PIL import Image, ImageColor, ImageDraw, ImageFont\n\n__all__ = [\n \"make_grid\",\n \"save_image\",\n \"d...
[ { "content": "import math\nimport pathlib\nimport warnings\nfrom types import FunctionType\nfrom typing import Any, BinaryIO, List, Optional, Tuple, Union\n\nimport numpy as np\nimport torch\nfrom PIL import Image, ImageColor, ImageDraw, ImageFont\n\n__all__ = [\n \"make_grid\",\n \"save_image\",\n \"d...
diff --git a/test/test_utils.py b/test/test_utils.py index fab8c5fc082..7cff53e98a3 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -152,6 +152,7 @@ def test_draw_invalid_boxes(): img_wrong2 = torch.full((1, 3, 5, 5), 255, dtype=torch.uint8) img_correct = torch.zeros((3, 10, 10), dtype=torch.uint8...
mathesar-foundation__mathesar-3074
Add OpenAPI Specification for /schemas/ endpoint and fix the incorrect specs ## Problem In order to ensure the accuracy of the specs generated by drf-spectacular for /schemas/ endpoint , we will generate an OpenAPI Specification specifically for this endpoint. This will allow us to verify its correctness by comparing ...
[ { "content": "def custom_preprocessing_hook(endpoints):\n filtered = []\n for (path, path_regex, method, callback) in endpoints:\n # Remove all but DRF API endpoints\n if path.startswith(\"/api/db/v0/databases/\") or path.startswith(\"/api/db/v0/data_files/\"):\n filtered.append((...
[ { "content": "def custom_preprocessing_hook(endpoints):\n filtered = []\n for (path, path_regex, method, callback) in endpoints:\n # Remove all but DRF API endpoints\n if path.startswith(\"/api/db/v0/databases/\") or path.startswith(\"/api/db/v0/data_files/\") or path.startswith(\"/api/db/v0...
diff --git a/config/settings/openapi.py b/config/settings/openapi.py index 5cf4ecb967..6ff2fa2f45 100644 --- a/config/settings/openapi.py +++ b/config/settings/openapi.py @@ -2,7 +2,7 @@ def custom_preprocessing_hook(endpoints): filtered = [] for (path, path_regex, method, callback) in endpoints: # R...
pre-commit__pre-commit-1443
hook using node doesn't work on FreeBSD We have a hook using doctoc, the node package. I cannot install the hook, this is the output: ``` desktop1% pre-commit install --install-hooks ...
[ { "content": "import contextlib\nimport logging\nimport os.path\nimport sqlite3\nimport tempfile\nfrom typing import Callable\nfrom typing import Generator\nfrom typing import List\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Tuple\n\nimport pre_commit.constants as C\nfrom pre_c...
[ { "content": "import contextlib\nimport logging\nimport os.path\nimport sqlite3\nimport tempfile\nfrom typing import Callable\nfrom typing import Generator\nfrom typing import List\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Tuple\n\nimport pre_commit.constants as C\nfrom pre_c...
diff --git a/pre_commit/store.py b/pre_commit/store.py index 8bcbf99f7..6d8c40a93 100644 --- a/pre_commit/store.py +++ b/pre_commit/store.py @@ -30,10 +30,11 @@ def _get_default_directory() -> str: `Store.get_default_directory` can be mocked in tests and `_get_default_directory` can be tested. """ - r...
huggingface__transformers-9815
`label_to_id` in `run_glue.py` seems to have a wrong `if` statement ## Environment info - `transformers` version: 4.3.0.dev0 - Platform: Linux-4.4.0-179-generic-x86_64-with-glibc2.10 - Python version: 3.8.0 - PyTorch version (GPU?): 1.7.1 (False) - Tensorflow version (GPU?): 2.4.0 (False) - Using GPU in script?...
[ { "content": "# coding=utf-8\n# Copyright 2020 The HuggingFace Inc. team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/li...
[ { "content": "# coding=utf-8\n# Copyright 2020 The HuggingFace Inc. team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/li...
diff --git a/examples/text-classification/run_glue.py b/examples/text-classification/run_glue.py index 269d0dd03be5..2ba141185deb 100644 --- a/examples/text-classification/run_glue.py +++ b/examples/text-classification/run_glue.py @@ -317,7 +317,7 @@ def main(): if ( model.config.label2id != PretrainedCon...
privacyidea__privacyidea-3083
csv_generator() of SQLAudit does not sort entries The [`csv_generator()`](https://github.com/privacyidea/privacyidea/blob/059e6b3ef10518595cfb5dfbf3918cc205099d79/privacyidea/lib/auditmodules/sqlaudit.py#L352) function does not sort the audit entries. We should at least sort by timestamp/entry id by default. Also each...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# 2016-04-08 Cornelius Kölbel <cornelius@privacyidea.org>\n# Avoid consecutive if statements\n#\n# privacyIDEA\n# May 11, 2014 Cornelius Kölbel, info@privacyidea.org\n# http://www.privacyidea.org\n#\n# This code is free software; you can redistribute it ...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# 2016-04-08 Cornelius Kölbel <cornelius@privacyidea.org>\n# Avoid consecutive if statements\n#\n# privacyIDEA\n# May 11, 2014 Cornelius Kölbel, info@privacyidea.org\n# http://www.privacyidea.org\n#\n# This code is free software; you can redistribute it ...
diff --git a/.gitignore b/.gitignore index f84a2edd20..2ae1ff6b6f 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ __pycache__/ /public.pem /private.pem dist/ +*.swp diff --git a/privacyidea/lib/auditmodules/sqlaudit.py b/privacyidea/lib/auditmodules/sqlaudit.py index b7596746db..302f83ea77 100755 --- a/pr...
aws__aws-cli-4308
aws emr create-cluster help command returns error how to reproduce 1. upgrade to awscli 1.16.190 or 1.16.194 or 1.16.196 at the moment it's enough to install via pip either on macOS(1.16.194) or on linux(1.16.196), or using Homebrew(1.16.190) on macOS ``` # on Ubuntu 16.04 linux $ pip install --upgrade awscli ...
[ { "content": "#!/usr/bin/env python\nimport codecs\nimport os.path\nimport re\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n return codecs.open(os.path.join(here, *parts), 'r').read()\n\n\ndef find_version(*file_paths...
[ { "content": "#!/usr/bin/env python\nimport codecs\nimport os.path\nimport re\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n return codecs.open(os.path.join(here, *parts), 'r').read()\n\n\ndef find_version(*file_paths...
diff --git a/MANIFEST.in b/MANIFEST.in index d5466ce03b74..74f10c7ffc00 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,5 @@ include README.rst include LICENSE.txt include requirements.txt -recursive-include awscli/examples *.rst +recursive-include awscli/examples *.rst *.txt recursive-include awscli/data *.j...
opsdroid__opsdroid-1166
Error when starting with matrix-connector When I try to start opsdroid I keep getting the following error. I double checked indentation and when I delete the matrix-connector part opsdroid starts fine. ``` opsdroid_1 | Error validating data /root/.config/opsdroid/configuration.yaml with schema /usr/src/app/opsdr...
[ { "content": "\"\"\"Connector for Matrix (https://matrix.org).\"\"\"\n\nimport re\nimport logging\nfrom concurrent.futures import CancelledError\nfrom urllib.parse import urlparse\n\nimport aiohttp\n\nfrom matrix_api_async.api_asyncio import AsyncHTTPAPI\nfrom matrix_client.errors import MatrixRequestError\n\nf...
[ { "content": "\"\"\"Connector for Matrix (https://matrix.org).\"\"\"\n\nimport re\nimport logging\nfrom concurrent.futures import CancelledError\nfrom urllib.parse import urlparse\n\nimport aiohttp\n\nfrom matrix_api_async.api_asyncio import AsyncHTTPAPI\nfrom matrix_client.errors import MatrixRequestError\n\nf...
diff --git a/docs/connectors/matrix.md b/docs/connectors/matrix.md index 32d7a9d97..e443c9ad1 100644 --- a/docs/connectors/matrix.md +++ b/docs/connectors/matrix.md @@ -16,10 +16,8 @@ connectors: # Required mxid: "@username:matrix.org" password: "mypassword" - # Name of a single room to connect to - ...
pypa__pip-12627
pip freeze crashes when PATH is incorrect ### Description `pip freeze` crashes if PATH environment variable references an existing file. ### Expected behavior `pip freeze` should work, even if PATH has an incorrect reference to a file. ### pip version 24.0 ### Python version 3.11.8 ### OS macos ### How to Rep...
[ { "content": "\"\"\"Handles all VCS (version control) support\"\"\"\n\nimport logging\nimport os\nimport shutil\nimport sys\nimport urllib.parse\nfrom typing import (\n Any,\n Dict,\n Iterable,\n Iterator,\n List,\n Literal,\n Mapping,\n Optional,\n Tuple,\n Type,\n Union,\n)\n\...
[ { "content": "\"\"\"Handles all VCS (version control) support\"\"\"\n\nimport logging\nimport os\nimport shutil\nimport sys\nimport urllib.parse\nfrom typing import (\n Any,\n Dict,\n Iterable,\n Iterator,\n List,\n Literal,\n Mapping,\n Optional,\n Tuple,\n Type,\n Union,\n)\n\...
diff --git a/news/12567.bugfix.rst b/news/12567.bugfix.rst new file mode 100644 index 00000000000..55c6a93d6b9 --- /dev/null +++ b/news/12567.bugfix.rst @@ -0,0 +1 @@ +Gracefully skip VCS detection in pip freeze when PATH points to a non-directory path. diff --git a/src/pip/_internal/vcs/versioncontrol.py b/src/pip/_in...
huggingface__transformers-5551
incorrect typehint for PreTrainedTokenizer.convert_ids_to_tokens() return value # 🐛 Bug ## Information The return value of `tokenization_utils.PreTrainedTokenizer.convert_ids_to_tokens()` is declared as `Union[int, List[int]]` while the method clearly returns a `Union[str, List[str]]` object type. Would you l...
[ { "content": "# coding=utf-8\n# Copyright 2020 The HuggingFace Inc. team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
[ { "content": "# coding=utf-8\n# Copyright 2020 The HuggingFace Inc. team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
diff --git a/src/transformers/tokenization_utils.py b/src/transformers/tokenization_utils.py index 16dbec4db91f..c55033c3b07b 100644 --- a/src/transformers/tokenization_utils.py +++ b/src/transformers/tokenization_utils.py @@ -649,7 +649,7 @@ def get_special_tokens_mask( def convert_ids_to_tokens( self,...
searx__searx-3002
Google engine crashes when language selected <!-- PLEASE FILL THESE FIELDS, IT REALLY HELPS THE MAINTAINERS OF SEARX --> **Version of Searx, commit number if you are using on master branch and stipulate if you forked Searx** 1.0.0-185-efe730fb **How did you install Searx?** https://github.com/k8s-at-home/ch...
[ { "content": "\n'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed in the hope that it will...
[ { "content": "\n'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed in the hope that it will...
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index 95eda6dded..20fa520653 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -108,8 +108,8 @@ def load_engine(engine_data): sys.exit(1) # assign supported languages from json file - if engine_data['name']...
facebookresearch__hydra-1750
Legacy overriding of Hydra config groups results in an error if not at the end of the list. If primary defaults list has an Hydra override that is not at the end of the list, Hydra 1.1 fails to start. We should make this a warning for smoother migration. ``` defaults: - hydra/launcher: basic - db: mysql ``` ...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n\nimport copy\nfrom dataclasses import dataclass, field\nfrom textwrap import dedent\nfrom typing import Callable, Dict, List, Optional, Set, Tuple, Union\n\nfrom omegaconf import DictConfig, OmegaConf\n\nfrom hydra import Mis...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n\nimport copy\nfrom dataclasses import dataclass, field\nfrom textwrap import dedent\nfrom typing import Callable, Dict, List, Optional, Set, Tuple, Union\n\nfrom omegaconf import DictConfig, OmegaConf\n\nfrom hydra import Mis...
diff --git a/hydra/_internal/defaults_list.py b/hydra/_internal/defaults_list.py index 87b355b2852..58d4ccd244f 100644 --- a/hydra/_internal/defaults_list.py +++ b/hydra/_internal/defaults_list.py @@ -396,7 +396,8 @@ def _update_overrides( deprecation_warning(msg) if d.override: - ...