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
ansible__ansible-modules-core-4745
apache2_module fails for php7.0 on Ubuntu Xenial ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME apache2_module ##### ANSIBLE VERSION <!--- Paste verbatim output from “ansible --version” between quotes below --> ``` ansible 2.2.0 (devel 982db58aff) last updated 2016/09/08 11:50:49 (GMT +100) lib/ansible/modules...
[ { "content": "#!/usr/bin/python\n#coding: utf-8 -*-\n\n# (c) 2013-2014, Christian Berendt <berendt@b1-systems.de>\n#\n# This module is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of...
[ { "content": "#!/usr/bin/python\n#coding: utf-8 -*-\n\n# (c) 2013-2014, Christian Berendt <berendt@b1-systems.de>\n#\n# This module is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of...
diff --git a/web_infrastructure/apache2_module.py b/web_infrastructure/apache2_module.py index 16a9998845f..9f9df923e03 100644 --- a/web_infrastructure/apache2_module.py +++ b/web_infrastructure/apache2_module.py @@ -80,6 +80,12 @@ def _module_is_enabled(module): result, stdout, stderr = module.run_command("%s -...
interlegis__sapl-1234
Aumenta o tamanho máximo de arquivos de upload para 10MB Atualmente o tamanho máximo de arquivos de upload é de 5MB. Ao menos uma casa reclamou que este tamanho é insuficiente então vamos dobrar e ver se mais alguém ainda reclama do tamanho de 10MB.
[ { "content": "\"\"\"\nDjango settings for sapl project.\n\nGenerated by 'django-admin startproject' using Django 1.8.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/1.8/...
[ { "content": "\"\"\"\nDjango settings for sapl project.\n\nGenerated by 'django-admin startproject' using Django 1.8.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/1.8/...
diff --git a/sapl/settings.py b/sapl/settings.py index 8b42ad228..b9eb805a2 100644 --- a/sapl/settings.py +++ b/sapl/settings.py @@ -192,7 +192,7 @@ DEFAULT_FROM_EMAIL = config('DEFAULT_FROM_EMAIL', cast=str, default='') SERVER_EMAIL = config('SERVER_EMAIL', cast=str, default='') -MAX_DOC_UPLOAD_SIZE = 5 * 1024 * 1...
Parsl__parsl-2115
grid engine provider hangs when qstat output is large **Describe the bug** From Quentin Le Boulc'h; ``` I still have the issue with the qstat command from Parsl which is hitting the 60s timeout. When I have 1000 jobs running every qstat fails, I can see many processes accumulating and Parsl get completely stucke...
[ { "content": "import copy\nimport logging\nimport os\nimport shutil\nimport subprocess\n\nfrom parsl.channels.base import Channel\nfrom parsl.channels.errors import FileCopyException\nfrom parsl.utils import RepresentationMixin\n\nlogger = logging.getLogger(__name__)\n\n\nclass LocalChannel(Channel, Representat...
[ { "content": "import copy\nimport logging\nimport os\nimport shutil\nimport subprocess\n\nfrom parsl.channels.base import Channel\nfrom parsl.channels.errors import FileCopyException\nfrom parsl.utils import RepresentationMixin\n\nlogger = logging.getLogger(__name__)\n\n\nclass LocalChannel(Channel, Representat...
diff --git a/parsl/channels/local/local.py b/parsl/channels/local/local.py index 5cd48f6fdf..7e50ec39af 100644 --- a/parsl/channels/local/local.py +++ b/parsl/channels/local/local.py @@ -68,9 +68,7 @@ def execute_wait(self, cmd, walltime=None, envs={}): shell=True, preexec_fn=os.setpgr...
jazzband__django-debug-toolbar-1441
Time panel doesn't re-run timer.js for new requests The Time panel will load the `timer.js` file and run it on the first time accessing the Time panel. After that, when the user switches to a new request via the History panel, any subsequent usages of the Time panel will result in the "Browser timing" section not being...
[ { "content": "from django.template.loader import render_to_string\n\nfrom debug_toolbar import settings as dt_settings\nfrom debug_toolbar.utils import get_name_from_obj\n\n\nclass Panel:\n \"\"\"\n Base class for panels.\n \"\"\"\n\n def __init__(self, toolbar, get_response):\n self.toolbar ...
[ { "content": "from django.template.loader import render_to_string\n\nfrom debug_toolbar import settings as dt_settings\nfrom debug_toolbar.utils import get_name_from_obj\n\n\nclass Panel:\n \"\"\"\n Base class for panels.\n \"\"\"\n\n def __init__(self, toolbar, get_response):\n self.toolbar ...
diff --git a/debug_toolbar/panels/__init__.py b/debug_toolbar/panels/__init__.py index ec3445c1e..8fd433c63 100644 --- a/debug_toolbar/panels/__init__.py +++ b/debug_toolbar/panels/__init__.py @@ -107,6 +107,10 @@ def content(self): def scripts(self): """ Scripts used by the HTML content of the p...
pwr-Solaar__Solaar-1001
In Linux Mint 20, Solaar suddenly won't start I have installed Solaar on my Linux Mint 20 O/S and was working fine till this morning when Solaar suddenly will not start. Have no idea why. - Solaar version: solaar 1.0.4 - Distribution: Linux Mint 20 XFCE - Kernel version (ex. `uname -srmo`): `Linux 5.4.0-53-generi...
[ { "content": "#!/usr/bin/env python3\n\nfrom glob import glob as _glob\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# from solaar import NAME, __version__\n__version__ = '1.0.4'\nNAME = 'Solaar'\n\n\ndef _data_files():\n from os.path import dirname a...
[ { "content": "#!/usr/bin/env python3\n\nfrom glob import glob as _glob\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# from solaar import NAME, __version__\n__version__ = '1.0.4'\nNAME = 'Solaar'\n\n\ndef _data_files():\n from os.path import dirname a...
diff --git a/docs/installation.md b/docs/installation.md index 41307d3622..05343ebf2b 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -29,6 +29,10 @@ The Debian/Ubuntu packages that need to be installed are in Fedora you need `gtk3` and `python3-gobject`; if you're using another distribution the requ...
librosa__librosa-1663
Doc build headaches continued #### Reference Issue #1649 still #### What does this implement/fix? Explain your changes. Still working on the documentation environment #### Any other comments? Bumping to sklearn 1.2 requires bumping to python 3.8. This is causing problems with strict conda solve, so maybe ...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# librosa documentation build configuration file, created by\n# sphinx-quickstart on Tue Jun 25 13:12:33 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# librosa documentation build configuration file, created by\n# sphinx-quickstart on Tue Jun 25 13:12:33 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\...
diff --git a/.github/environment-docs.yml b/.github/environment-docs.yml index 3f5a8b094e..e086d86ee7 100644 --- a/.github/environment-docs.yml +++ b/.github/environment-docs.yml @@ -19,7 +19,7 @@ dependencies: - pysoundfile>=0.11.0 - pooch>=1.0.0 - packaging>=20.0 - - matplotlib>=3.5 + - matplotlib>=3.3,<3....
scikit-hep__uproot5-77
Unable to parse higher-dimensional (basic) arrays in leaves An issue in UnROOT was raised (https://github.com/tamasgal/UnROOT.jl/issues/9) since the automatic higher dimensional data or in general is still not possible or experimental, so I did what I usually do: fire up `uproot` and `uproo4` 😉 however there seems to...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/master/LICENSE\n\nfrom __future__ import absolute_import\n\nimport re\nimport ast\n\nimport numpy\n\nimport uproot4.const\nimport uproot4.interpretation.numerical\nimport uproot4.interpretation.strings\nimport uproot4.interpret...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/master/LICENSE\n\nfrom __future__ import absolute_import\n\nimport re\nimport ast\n\nimport numpy\n\nimport uproot4.const\nimport uproot4.interpretation.numerical\nimport uproot4.interpretation.strings\nimport uproot4.interpret...
diff --git a/uproot4/interpretation/identify.py b/uproot4/interpretation/identify.py index 734e519c9..c63df42c5 100644 --- a/uproot4/interpretation/identify.py +++ b/uproot4/interpretation/identify.py @@ -755,7 +755,7 @@ def parse_typename_for_streamer(typename, file): return out -_title_has_dims = re.compile(...
google__TensorNetwork-250
Python version requirement Our current setup file is still happy with python>=3.5, whereas we stopped testing for it and it seems that Jax also discontinued support. Should we not be stricter in the setup especially if we move to Jax as default?
[ { "content": "#!/usr/bin/env python\n# Copyright 2019 The TensorNetwork Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICE...
[ { "content": "#!/usr/bin/env python\n# Copyright 2019 The TensorNetwork Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICE...
diff --git a/setup.py b/setup.py index 79180e0bc..9c78a5465 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ url='http://github.com/google/TensorNetwork', author='The TensorNetwork Developers', author_email='chaseriley@google.com', - python_requires=('>=3.5.0'), + python_requires=('>=3.6.0'),...
conda__conda-9999
get_python_version_for_prefix in prefix_data.py doesn't handle two digit minor version The function `get_python_version_for_prefix` silently truncates two digit minor version numbers. For example, if the Python version number is 3.10, it will return "3.1", which can cause some packages to be installed in the incorrect ...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (C) 2012 Anaconda, Inc\n# SPDX-License-Identifier: BSD-3-Clause\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom fnmatch import filter as fnmatch_filter\nfrom logging import getLogger\nfrom os import listdir\nfrom os.p...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (C) 2012 Anaconda, Inc\n# SPDX-License-Identifier: BSD-3-Clause\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom fnmatch import filter as fnmatch_filter\nfrom logging import getLogger\nfrom os import listdir\nfrom os.p...
diff --git a/conda/core/prefix_data.py b/conda/core/prefix_data.py index 58ca1cdfe5a..25766415f2a 100644 --- a/conda/core/prefix_data.py +++ b/conda/core/prefix_data.py @@ -376,6 +376,8 @@ def get_python_version_for_prefix(prefix): next_record = next(py_record_iter, None) if next_record is not None: ...
hylang__hy-1955
Make hy-history location configurable How about an environment variable like `HY_HISTORY` that allows the user to change the location of `~/.hy-history`.
[ { "content": "# Copyright 2021 the authors.\n# This file is part of Hy, which is free software licensed under the Expat\n# license. See the LICENSE.\n\nimport contextlib\nimport os\nimport re\nimport sys\nimport builtins\n\nimport hy.macros\nimport hy.compiler\n\n\ndocomplete = True\n\ntry:\n import readline...
[ { "content": "# Copyright 2021 the authors.\n# This file is part of Hy, which is free software licensed under the Expat\n# license. See the LICENSE.\n\nimport contextlib\nimport os\nimport re\nimport sys\nimport builtins\n\nimport hy.macros\nimport hy.compiler\n\n\ndocomplete = True\n\ntry:\n import readline...
diff --git a/AUTHORS b/AUTHORS index 95565fe3d..10476df71 100644 --- a/AUTHORS +++ b/AUTHORS @@ -105,3 +105,4 @@ * Joshua Munn <public@elysee-munn.family> * Peter Andreev <appa@gmx.co.uk> * Sunjay Cauligi <scauligi@eng.ucsd.edu> +* David Tscheppen <david.tscheppen@gmail.com> diff --git a/NEWS.rst b/NEWS.rst index 36...
mitmproxy__mitmproxy-4654
Dump files not standard across versions #### Problem Description Dump files generated by mitmdump 5.2 aren't compatible with 5.3.x or 6.x.x. Whats worse is that they're partially compatible, somehow the newer versions read one request in the file and not the rest of it. #### Proposal I get that maintaining ...
[ { "content": "\"\"\"\nThis module handles the import of mitmproxy flows generated by old versions.\n\nThe flow file version is decoupled from the mitmproxy release cycle (since\nv3.0.0dev) and versioning. Every change or migration gets a new flow file\nversion number, this prevents issues with developer builds ...
[ { "content": "\"\"\"\nThis module handles the import of mitmproxy flows generated by old versions.\n\nThe flow file version is decoupled from the mitmproxy release cycle (since\nv3.0.0dev) and versioning. Every change or migration gets a new flow file\nversion number, this prevents issues with developer builds ...
diff --git a/mitmproxy/io/compat.py b/mitmproxy/io/compat.py index 8afbbf5ccd..61d436d994 100644 --- a/mitmproxy/io/compat.py +++ b/mitmproxy/io/compat.py @@ -312,6 +312,10 @@ def convert_12_13(data): def convert_13_14(data): data["version"] = 14 data["comment"] = "" + # bugfix for https://github.com/mitm...
google__timesketch-1821
tagger analyzer not functiong properly **Describe the bug** After upgrade TimeSketch to version: 20210602 the tagger analyzer is not functioning with custom tags **To Reproduce** Steps to reproduce the behavior: 1. Import plaso file with evtx data 2. Add the following tagging rule to tags.yaml ```yaml logon_...
[ { "content": "\"\"\"Analyzer plugin for tagging.\"\"\"\nimport logging\n\nfrom timesketch.lib import emojis\nfrom timesketch.lib.analyzers import interface\nfrom timesketch.lib.analyzers import manager\nfrom timesketch.lib.analyzers import utils\n\n\nlogger = logging.getLogger('timesketch.analyzers.tagger')\n\n...
[ { "content": "\"\"\"Analyzer plugin for tagging.\"\"\"\nimport logging\n\nfrom timesketch.lib import emojis\nfrom timesketch.lib.analyzers import interface\nfrom timesketch.lib.analyzers import manager\nfrom timesketch.lib.analyzers import utils\n\n\nlogger = logging.getLogger('timesketch.analyzers.tagger')\n\n...
diff --git a/timesketch/lib/analyzers/tagger.py b/timesketch/lib/analyzers/tagger.py index 0335adf6ef..712489b9b8 100644 --- a/timesketch/lib/analyzers/tagger.py +++ b/timesketch/lib/analyzers/tagger.py @@ -83,6 +83,7 @@ def tagger(self, name, config): expression_string = config.get('regular_expression', '')...
quantopian__zipline-1802
TradingCalendar initialization bug Trying to set start/end dates when initializing a calendar can result in an exception being raised. Try: ```python import pandas as pd from zipline.utils.calendars.exchange_calendar_nyse import NYSEExchangeCalendar start = pd.Timestamp('2010-1-3', tz='UTC') ...
[ { "content": "#\n# Copyright 2016 Quantopian, 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 ...
[ { "content": "#\n# Copyright 2016 Quantopian, 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 ...
diff --git a/tests/calendars/test_nyse_calendar.py b/tests/calendars/test_nyse_calendar.py index fcaedc78c7..26bd879c57 100644 --- a/tests/calendars/test_nyse_calendar.py +++ b/tests/calendars/test_nyse_calendar.py @@ -226,3 +226,17 @@ def test_early_close_independence_day_thursday(self): self.assertFalse(self...
piskvorky__gensim-2629
D2VTransformer raises if passed a Pandas series without index key 0 `D2VTransformer` raises if passed a Pandas series with an index that does not contain the key 0: ```python import pandas as pd from gensim.sklearn_api import D2VTransformer from gensim.test.utils import common_texts series = pd.Series(common_t...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2011 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"Scikit learn interface for :class:`~gensim.models.doc2vec.Doc2Vec`.\n\nFollows scikit-learn API conven...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2011 Radim Rehurek <radimrehurek@seznam.cz>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"Scikit learn interface for :class:`~gensim.models.doc2vec.Doc2Vec`.\n\nFollows scikit-learn API conven...
diff --git a/gensim/sklearn_api/d2vmodel.py b/gensim/sklearn_api/d2vmodel.py index e967c84eb1..fa154a2497 100644 --- a/gensim/sklearn_api/d2vmodel.py +++ b/gensim/sklearn_api/d2vmodel.py @@ -159,7 +159,7 @@ def fit(self, X, y=None): The trained model. """ - if isinstance(X[0], doc2vec.Tag...
great-expectations__great_expectations-3057
Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y`
[ { "content": "import copy\nimport logging\nfrom abc import ABC, abstractmethod\nfrom enum import Enum\nfrom typing import Any, Dict, Iterable, Tuple, Union\n\nimport pandas as pd\nfrom ruamel.yaml import YAML\n\nfrom great_expectations.core.batch import BatchMarkers, BatchSpec\nfrom great_expectations.exception...
[ { "content": "import copy\nimport logging\nfrom abc import ABC, abstractmethod\nfrom enum import Enum\nfrom typing import Any, Dict, Iterable, Tuple, Union\n\nimport pandas as pd\nfrom ruamel.yaml import YAML\n\nfrom great_expectations.core.batch import BatchMarkers, BatchSpec\nfrom great_expectations.exception...
diff --git a/great_expectations/execution_engine/execution_engine.py b/great_expectations/execution_engine/execution_engine.py index 7da520388d49..04478ffb5145 100644 --- a/great_expectations/execution_engine/execution_engine.py +++ b/great_expectations/execution_engine/execution_engine.py @@ -50,7 +50,7 @@ class Metri...
getsentry__sentry-12417
Google Pubsub push messages mis-identified as crawler ## Important Details How are you running Sentry? * [ ] On-Premise docker [Version xyz] * [x] Saas (sentry.io) * [ ] Other [briefly describe your environment] ## Description We get the Sentry API error `Sentry responded with an API error: APIError(Event...
[ { "content": "from __future__ import absolute_import\n\nimport re\n\nfrom .base import Filter\nfrom sentry.utils.data_filters import FilterStatKeys\nfrom sentry.utils.safe import get_path\n\n# not all of these agents are guaranteed to execute JavaScript, but to avoid\n# overhead of identifying which ones do, an...
[ { "content": "from __future__ import absolute_import\n\nimport re\n\nfrom .base import Filter\nfrom sentry.utils.data_filters import FilterStatKeys\nfrom sentry.utils.safe import get_path\n\n# not all of these agents are guaranteed to execute JavaScript, but to avoid\n# overhead of identifying which ones do, an...
diff --git a/src/sentry/filters/web_crawlers.py b/src/sentry/filters/web_crawlers.py index 0a784101c5730b..3b2ad397b8dcf5 100644 --- a/src/sentry/filters/web_crawlers.py +++ b/src/sentry/filters/web_crawlers.py @@ -16,8 +16,8 @@ r'AdsBot', # Google Adsense r'Mediapartners', - ...
pytorch__text-663
text_classification dataset default ngrams argument does not match comments ## 🐛 Bug `_setup_datasets` for the `text_classification` datasets has the `ngrams` argument default to 2, [see](https://github.com/pytorch/text/blob/master/torchtext/datasets/text_classification.py#L116) However the comments for each of ...
[ { "content": "import logging\nimport torch\nimport io\nfrom torchtext.utils import download_from_url, extract_archive, unicode_csv_reader\nfrom torchtext.data.utils import ngrams_iterator\nfrom torchtext.data.utils import get_tokenizer\nfrom torchtext.vocab import build_vocab_from_iterator\nfrom torchtext.vocab...
[ { "content": "import logging\nimport torch\nimport io\nfrom torchtext.utils import download_from_url, extract_archive, unicode_csv_reader\nfrom torchtext.data.utils import ngrams_iterator\nfrom torchtext.data.utils import get_tokenizer\nfrom torchtext.vocab import build_vocab_from_iterator\nfrom torchtext.vocab...
diff --git a/torchtext/datasets/text_classification.py b/torchtext/datasets/text_classification.py index f93a55fd21..1b813de238 100644 --- a/torchtext/datasets/text_classification.py +++ b/torchtext/datasets/text_classification.py @@ -113,7 +113,7 @@ def get_vocab(self): return self._vocab -def _setup_data...
learningequality__kolibri-7118
Question number has a zero value <!-- Instructions: * Fill out the sections below, replace …'s with information about your issue * Use the 'preview' function above this text box to verify formatting before submitting --> ### Observed behavior <!-- Description of the behavior that was observed, including scre...
[ { "content": "import logging\nimport re\nfrom functools import reduce\nfrom random import sample\n\nimport requests\nfrom django.core.cache import cache\nfrom django.core.urlresolvers import reverse\nfrom django.db.models import Exists\nfrom django.db.models import OuterRef\nfrom django.db.models import Q\nfrom...
[ { "content": "import logging\nimport re\nfrom functools import reduce\nfrom random import sample\n\nimport requests\nfrom django.core.cache import cache\nfrom django.core.urlresolvers import reverse\nfrom django.db.models import Exists\nfrom django.db.models import OuterRef\nfrom django.db.models import Q\nfrom...
diff --git a/kolibri/core/content/api.py b/kolibri/core/content/api.py index ec7a900d600..b96174ad713 100644 --- a/kolibri/core/content/api.py +++ b/kolibri/core/content/api.py @@ -358,7 +358,7 @@ def consolidate(self, items, queryset): output = [] for item in items: - item["assessmentmet...
DataDog__dd-trace-py-608
Either opentracing SpanContextCorruptedException or no child spans Using the ddtracer.opentracing exactly as in the example, just switching it out with the current Jaeger setup we're using, I get this exception on all requests: ```python ERROR:root:tracer.extract() failed Traceback (most recent call last): File...
[ { "content": "import logging\nimport opentracing\nfrom opentracing import Format\nfrom opentracing.scope_managers import ThreadLocalScopeManager\n\nimport ddtrace\nfrom ddtrace import Tracer as DatadogTracer\nfrom ddtrace.constants import FILTERS_KEY\nfrom ddtrace.settings import ConfigException\nfrom ddtrace.u...
[ { "content": "import logging\nimport opentracing\nfrom opentracing import Format\nfrom opentracing.scope_managers import ThreadLocalScopeManager\n\nimport ddtrace\nfrom ddtrace import Tracer as DatadogTracer\nfrom ddtrace.constants import FILTERS_KEY\nfrom ddtrace.settings import ConfigException\nfrom ddtrace.u...
diff --git a/ddtrace/opentracer/tracer.py b/ddtrace/opentracer/tracer.py index 423fc00da67..90355378c99 100644 --- a/ddtrace/opentracer/tracer.py +++ b/ddtrace/opentracer/tracer.py @@ -288,4 +288,9 @@ def extract(self, format, carrier): if propagator is None: raise opentracing.UnsupportedFormatExc...
statsmodels__statsmodels-7748
summary.as_latex() output missing 1 row #### Describe the bug i compared the console output summary() and summary.as_latex(), found that the last row of result table gone missing. #### Code Sample, a copy-pastable example if possible ```python print(logit.summary().as_latex()) print(logit.summary()) ``` ...
[ { "content": "from statsmodels.compat.python import lmap, lrange, lzip\n\nimport copy\nfrom itertools import zip_longest\nimport time\n\nimport numpy as np\n\nfrom statsmodels.iolib.table import SimpleTable\nfrom statsmodels.iolib.tableformatting import (\n fmt_2,\n fmt_2cols,\n fmt_params,\n gen_fm...
[ { "content": "import copy\nfrom itertools import zip_longest\nimport time\n\nfrom statsmodels.compat.python import lrange, lmap, lzip\nimport numpy as np\nfrom statsmodels.iolib.table import SimpleTable\nfrom statsmodels.iolib.tableformatting import (gen_fmt, fmt_2,\n ...
diff --git a/statsmodels/discrete/tests/test_discrete.py b/statsmodels/discrete/tests/test_discrete.py index 3b1b9bbc8e3..677ca20deb6 100644 --- a/statsmodels/discrete/tests/test_discrete.py +++ b/statsmodels/discrete/tests/test_discrete.py @@ -142,6 +142,16 @@ def test_jac(self): score = self.res1.model.score...
kivy__kivy-6178
MacOS: Clipboard nspaste make app crash when copying text <!-- The issue tracker is a tool to address bugs. Please use the #support Discord channel at https://chat.kivy.org/ or Stack Overflow for support questions, more information at https://git.io/vM1yQ. Before opening a new issue, make sure you do the followin...
[ { "content": "'''\nClipboard OsX: implementation of clipboard using Appkit\n'''\n\n__all__ = ('ClipboardNSPaste', )\n\nfrom kivy.core.clipboard import ClipboardBase\nfrom kivy.utils import platform\n\nif platform != 'macosx':\n raise SystemError('Unsupported platform for appkit clipboard.')\ntry:\n from p...
[ { "content": "'''\nClipboard OsX: implementation of clipboard using Appkit\n'''\n\n__all__ = ('ClipboardNSPaste', )\n\nfrom kivy.core.clipboard import ClipboardBase\nfrom kivy.utils import platform\n\nif platform != 'macosx':\n raise SystemError('Unsupported platform for appkit clipboard.')\ntry:\n from p...
diff --git a/kivy/core/clipboard/clipboard_nspaste.py b/kivy/core/clipboard/clipboard_nspaste.py index 05db7b0030..66ef4c6b06 100644 --- a/kivy/core/clipboard/clipboard_nspaste.py +++ b/kivy/core/clipboard/clipboard_nspaste.py @@ -37,7 +37,8 @@ def get(self, mimetype='text/plain'): def put(self, data, mimetype='te...
rotki__rotki-593
At sign-in failure there is not enough debug information ## Problem Definition If there is a sign-in failure due to an exception the user is greeted with the exception that is thrown as an error but not with more information like a stacktrace. And a stacktrace does not make it into the log. A good example of the ...
[ { "content": "# Based on https://github.com/fyears/electron-python-example\nfrom __future__ import print_function\n\nimport base64\nimport logging\nimport os\nimport signal\nimport traceback\nfrom typing import Any, Dict, List, Union, cast\n\nimport gevent\nimport zerorpc\nfrom gevent.event import Event\nfrom g...
[ { "content": "# Based on https://github.com/fyears/electron-python-example\nfrom __future__ import print_function\n\nimport base64\nimport logging\nimport os\nimport signal\nimport traceback\nfrom typing import Any, Dict, List, Union, cast\n\nimport gevent\nimport zerorpc\nfrom gevent.event import Event\nfrom g...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 8e2f823fba..35a053e789 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,8 @@ Changelog ========= + +* :bug:`589` If there is an error an unexpected error during sign-in properly catch it and add a log entry. * :bug:`588` The electron log...
mathesar-foundation__mathesar-2424
First time password reset should redirect to login page instead of confirmation page ## Description * After the user resets their password at the page: `/auth/password_reset_confirm`, they are redirected to `/auth/reset/done/`. * They should be redirected to `/auth/login` instead.
[ { "content": "from django.contrib.auth.forms import SetPasswordForm\nfrom django.contrib.auth.views import PasswordResetConfirmView\nfrom django.utils.decorators import method_decorator\nfrom django.views.decorators.cache import never_cache\nfrom django.views.decorators.debug import sensitive_post_parameters\nf...
[ { "content": "from django.contrib.auth.forms import SetPasswordForm\nfrom django.contrib.auth.views import PasswordResetConfirmView\nfrom django.utils.decorators import method_decorator\nfrom django.views.decorators.cache import never_cache\nfrom django.views.decorators.debug import sensitive_post_parameters\nf...
diff --git a/mathesar/users/password_reset.py b/mathesar/users/password_reset.py index a39eae9d90..7ea2e0ab89 100644 --- a/mathesar/users/password_reset.py +++ b/mathesar/users/password_reset.py @@ -22,6 +22,7 @@ class MathesarPasswordResetConfirmView(PasswordResetConfirmView): form_class = MathesarSetPasswordForm...
hpcaitech__ColossalAI-2709
[tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests
[ { "content": "import click\nfrom .run import launch_multi_processes\nfrom colossalai.context import Config\n\n\n@click.command(help=\"Launch distributed training on a single node or multiple nodes\",\n context_settings=dict(ignore_unknown_options=True))\n@click.option(\"-H\",\n \"-hos...
[ { "content": "import click\n\nfrom colossalai.context import Config\n\nfrom .run import launch_multi_processes\n\n\n@click.command(help=\"Launch distributed training on a single node or multiple nodes\",\n context_settings=dict(ignore_unknown_options=True))\n@click.option(\"-H\",\n \"...
diff --git a/colossalai/cli/launcher/__init__.py b/colossalai/cli/launcher/__init__.py index 4ada68b4b68f..8d9ec147d401 100644 --- a/colossalai/cli/launcher/__init__.py +++ b/colossalai/cli/launcher/__init__.py @@ -1,7 +1,9 @@ import click -from .run import launch_multi_processes + from colossalai.context import Conf...
django-extensions__django-extensions-251
JSONField default= doesn't accept a dict Dicts can be assigned to JSONFields in model instances, but default values must currently be specified as JSON strings in model definitions. In other words, instead of this: ``` myfield = JSONField(default=simplejson.dumps(mydict)) ``` if would be nice to just say: ``` myfie...
[ { "content": "\"\"\"\nJSONField automatically serializes most Python terms to JSON data.\nCreates a TEXT field with a default value of \"{}\". See test_json.py for\nmore information.\n\n from django.db import models\n from django_extensions.db.fields import json\n\n class LOL(models.Model):\n extra = json....
[ { "content": "\"\"\"\nJSONField automatically serializes most Python terms to JSON data.\nCreates a TEXT field with a default value of \"{}\". See test_json.py for\nmore information.\n\n from django.db import models\n from django_extensions.db.fields import json\n\n class LOL(models.Model):\n extra = json....
diff --git a/django_extensions/db/fields/json.py b/django_extensions/db/fields/json.py index 5bddebb6e..fe80a3f87 100644 --- a/django_extensions/db/fields/json.py +++ b/django_extensions/db/fields/json.py @@ -69,7 +69,7 @@ def __init__(self, *args, **kwargs): if not default: kwargs['default'] = '{...
aio-libs__aiohttp-5012
Connections are not correctly kept after HEAD requests When the client makes a HEAD request, it parses the response as if it was a regular message. But the HTTP specs has a nice trick: HEAD requests `SHOULD` respond with the exact same headers than the corresponding GET request. This includes `Content-Length` or `Tr...
[ { "content": "import asyncio\nfrom contextlib import suppress\nfrom typing import Any, Optional, Tuple\n\nfrom .base_protocol import BaseProtocol\nfrom .client_exceptions import (\n ClientOSError,\n ClientPayloadError,\n ServerDisconnectedError,\n ServerTimeoutError,\n)\nfrom .helpers import BaseTim...
[ { "content": "import asyncio\nfrom contextlib import suppress\nfrom typing import Any, Optional, Tuple\n\nfrom .base_protocol import BaseProtocol\nfrom .client_exceptions import (\n ClientOSError,\n ClientPayloadError,\n ServerDisconnectedError,\n ServerTimeoutError,\n)\nfrom .helpers import BaseTim...
diff --git a/CHANGES/5012.bugfix b/CHANGES/5012.bugfix new file mode 100644 index 00000000000..8c429c231f6 --- /dev/null +++ b/CHANGES/5012.bugfix @@ -0,0 +1 @@ +Fix connection closing issue in HEAD request. diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 4dedf956d2e..df202a08ff7 100644 --- a/CONTRIBUTORS.txt ++...
mozilla__bugbug-3897
Restrict the training set of the StepsToReproduce model only to defects Given that STRs don't apply to enhancement or task.
[ { "content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport logging\n\nimport xgboost\nfrom imblearn.pipeline import Pipel...
[ { "content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport logging\n\nimport xgboost\nfrom imblearn.pipeline import Pipel...
diff --git a/bugbug/models/stepstoreproduce.py b/bugbug/models/stepstoreproduce.py index e3357cce7f..d670c592d3 100644 --- a/bugbug/models/stepstoreproduce.py +++ b/bugbug/models/stepstoreproduce.py @@ -76,6 +76,8 @@ def get_labels(self): classes = {} for bug_data in bugzilla.get_bugs(): + ...
pymedusa__Medusa-4263
[APP SUBMITTED]: TypeError: 'NoneType' object has no attribute '__getitem__' ### INFO **Python Version**: `2.7.12 (default, Sep 29 2017, 12:24:30) [GCC 4.9.3 20150311 (prerelease)]` **Operating System**: `Linux-3.10.105-x86_64-with-glibc2.2.5` **Locale**: `UTF-8` **Branch**: [fix-rtorrent-0.9.6](../tree/fix-rtorrent-0....
[ { "content": "# coding=utf-8\n\nfrom __future__ import unicode_literals\n\nimport io\nimport logging\nimport os\nimport re\nfrom builtins import object\nfrom builtins import str\n\nfrom medusa import app, exception_handler, helpers\nfrom medusa.helper.common import replace_extension\nfrom medusa.helper.exceptio...
[ { "content": "# coding=utf-8\n\nfrom __future__ import unicode_literals\n\nimport io\nimport logging\nimport os\nimport re\nfrom builtins import object\nfrom builtins import str\n\nfrom medusa import app, exception_handler, helpers\nfrom medusa.helper.common import replace_extension\nfrom medusa.helper.exceptio...
diff --git a/medusa/metadata/generic.py b/medusa/metadata/generic.py index f5a2d78441..81a57632f4 100644 --- a/medusa/metadata/generic.py +++ b/medusa/metadata/generic.py @@ -736,6 +736,8 @@ def _retrieve_show_image(self, image_type, show_obj, episode=None, which=None): image_url = None indexer_show...
PlasmaPy__PlasmaPy-541
Archive version 0.1.1 on Zenodo and get a DOI There is a partnership between [Zenodo](https://zenodo.org/) and GitHub that allows Zenodo to archive releases and [make code citable](https://guides.github.com/activities/citable-code/). Zenodo can then mint a digital object identifier (DOI) that would make that version o...
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\n# Packages may add whatever they like to this file, but\n# should keep this content at the top.\n# ----------------------------------------------------------------------------\nfrom ._base_init import *\n# -------------------------...
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\n# Packages may add whatever they like to this file, but\n# should keep this content at the top.\n# ----------------------------------------------------------------------------\nfrom ._base_init import *\n# -------------------------...
diff --git a/CITATION.rst b/CITATION.rst index 0d07b9a1d3..c9e30b785c 100644 --- a/CITATION.rst +++ b/CITATION.rst @@ -2,22 +2,41 @@ Acknowledging and Citing PlasmaPy ================================= If you use PlasmaPy for a project resulting in a publication, we ask -that you cite the following reference -(`BibT...
crytic__slither-575
Fatal error during YUL parsing ``` Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/slither_analyzer-0.6.12-py3.6.egg/slither/__main__.py", line 612, in main_impl printer_classes) File "/usr/local/lib/python3.6/dist-packages/slither_analyzer-0.6.12-py3.6.egg/slither/__main__.p...
[ { "content": "import abc\nimport json\nfrom typing import Optional, Dict, List, Union\n\nfrom slither.core.cfg.node import NodeType, Node, link_nodes\nfrom slither.core.declarations import Function, SolidityFunction, SolidityVariable, Contract\nfrom slither.core.expressions import (\n Literal,\n Assignmen...
[ { "content": "import abc\nimport json\nfrom typing import Optional, Dict, List, Union\n\nfrom slither.core.cfg.node import NodeType, Node, link_nodes\nfrom slither.core.declarations import Function, SolidityFunction, SolidityVariable, Contract\nfrom slither.core.expressions import (\n Literal,\n Assignmen...
diff --git a/slither/solc_parsing/yul/parse_yul.py b/slither/solc_parsing/yul/parse_yul.py index 7812b92d0c..993d389cb5 100644 --- a/slither/solc_parsing/yul/parse_yul.py +++ b/slither/solc_parsing/yul/parse_yul.py @@ -611,6 +611,10 @@ def parse_yul_identifier(root: YulScope, node: YulNode, ast: Dict) -> Optional[E ...
geopandas__geopandas-762
Value error using sjoin with pandas v0.23 I use the `sjoin` function to add the region name (polygons) to every point within the region. Some points are not in any region, therefore I filter these points and buffer them step by step. So the points layer without intersection becomes smaller and smaller. If there is only...
[ { "content": "from warnings import warn\n\nimport numpy as np\nimport pandas as pd\nfrom shapely import prepared\n\n\ndef sjoin(left_df, right_df, how='inner', op='intersects',\n lsuffix='left', rsuffix='right'):\n \"\"\"Spatial join of two GeoDataFrames.\n\n Parameters\n ----------\n left_...
[ { "content": "from warnings import warn\n\nimport numpy as np\nimport pandas as pd\nfrom shapely import prepared\n\n\ndef sjoin(left_df, right_df, how='inner', op='intersects',\n lsuffix='left', rsuffix='right'):\n \"\"\"Spatial join of two GeoDataFrames.\n\n Parameters\n ----------\n left_...
diff --git a/geopandas/tools/sjoin.py b/geopandas/tools/sjoin.py index 7ef5a6bc3a..0f6638b320 100644 --- a/geopandas/tools/sjoin.py +++ b/geopandas/tools/sjoin.py @@ -114,7 +114,7 @@ def find_contains(a1, a2): else: # when output from the join has no overlapping geometries - result = pd.DataFrame...
freedomofpress__securedrop-4074
Latest docs specify an RC instead of a Release version ## Description `update_version.sh` bumps version string in docs even when an RC is created. There might be a small period of time (e.g. during release QA) where that Tag exists (albeit not signed) ## Steps to Reproduce https://docs.securedrop.org/en/latest...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in...
diff --git a/docs/conf.py b/docs/conf.py index b34c0ce7de..1db4c54ebb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -57,9 +57,9 @@ # built documents. # # The short X.Y version. -version = '0.13.0~rc1' +version = '0.12.1' # The full version, including alpha/beta/rc tags. -release = '0.13.0~rc1' +release = '0.12.1'...
internetarchive__openlibrary-5771
Allow deletion of (incorrect) contributors It seems to be impossible to delete contributors from Editions. When I edit an Edition, click the [x] next to a contributor, it dissappears. But after saving the record, all deleted contributors are still there. Of course I have only tried to delete bogus contributors, like th...
[ { "content": "\"\"\"Handlers for adding and editing books.\"\"\"\n\nimport web\nimport json\nimport csv\nimport datetime\n\nfrom infogami import config\nfrom infogami.core import code as core\nfrom infogami.core.db import ValidationException\nfrom infogami.utils import delegate\nfrom infogami.utils.view import ...
[ { "content": "\"\"\"Handlers for adding and editing books.\"\"\"\n\nimport web\nimport json\nimport csv\nimport datetime\n\nfrom infogami import config\nfrom infogami.core import code as core\nfrom infogami.core.db import ValidationException\nfrom infogami.utils import delegate\nfrom infogami.utils.view import ...
diff --git a/openlibrary/plugins/upstream/addbook.py b/openlibrary/plugins/upstream/addbook.py index 349fec7d72a..bf44a465426 100644 --- a/openlibrary/plugins/upstream/addbook.py +++ b/openlibrary/plugins/upstream/addbook.py @@ -566,6 +566,9 @@ def save(self, formdata): edition_data.translation_of = No...
gpodder__mygpo-259
Searching for long URL causes server error Error report ```` Internal Server Error: /search.json DataError at /search.json value too long for type character varying(2048) Request Method: GET Request URL: https://www.gpodder.net/search.json?q=http://www.masterads.info/instagram/campanha.php?id=lNmb19mbuFmZ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nimport os.path\nimport urllib.request\nimport urllib.error\nfrom urllib.parse import urljoin\nimport hashlib\nfrom datetime import datetime, timedelta\nfrom itertools import chain, islice\nimport requests\n\nfrom django.db import transaction\nfrom djan...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nimport os.path\nimport urllib.request\nimport urllib.error\nfrom urllib.parse import urljoin\nimport hashlib\nfrom datetime import datetime, timedelta\nfrom itertools import chain, islice\nimport requests\n\nfrom django.db import transaction\nfrom djan...
diff --git a/mygpo/data/feeddownloader.py b/mygpo/data/feeddownloader.py index ff4a5f9ce..2785bc41f 100755 --- a/mygpo/data/feeddownloader.py +++ b/mygpo/data/feeddownloader.py @@ -77,7 +77,9 @@ class PodcastUpdater(object): """ Updates the podcast specified by the podcast_url """ def __init__(self, podcast...
plone__Products.CMFPlone-3534
Missing resource breaks rendering viewlet.resourceregistries.js if there's a typo or a missing JS resource defined in the resource registries, the `viewlet.resourceregistries.js` gives a traceback and all JS resources are missing.
[ { "content": "from Acquisition import aq_base\nfrom Acquisition import aq_inner\nfrom Acquisition import aq_parent\nfrom plone.base.interfaces.resources import OVERRIDE_RESOURCE_DIRECTORY_NAME\nfrom plone.resource.file import FilesystemFile\nfrom plone.resource.interfaces import IResourceDirectory\nfrom Product...
[ { "content": "from Acquisition import aq_base\nfrom Acquisition import aq_inner\nfrom Acquisition import aq_parent\nfrom plone.base.interfaces.resources import OVERRIDE_RESOURCE_DIRECTORY_NAME\nfrom plone.resource.file import FilesystemFile\nfrom plone.resource.interfaces import IResourceDirectory\nfrom Product...
diff --git a/Products/CMFPlone/resources/utils.py b/Products/CMFPlone/resources/utils.py index 8a856ae004..3409e53549 100644 --- a/Products/CMFPlone/resources/utils.py +++ b/Products/CMFPlone/resources/utils.py @@ -52,7 +52,7 @@ def get_resource(context, path): return try: resource = context.unre...
ManimCommunity__manim-3499
When rendering with option --save_section the rendered file names are appended with 0001, 0002, 0003 instead of the "name" attribute. I am not sure if this shall be categorized as a bug, so let me know if I have to move it elsewhere. As per title, when rendering with option `--save_section `the rendered file names a...
[ { "content": "\"\"\"The interface between scenes and ffmpeg.\"\"\"\n\nfrom __future__ import annotations\n\n__all__ = [\"SceneFileWriter\"]\n\nimport json\nimport os\nimport shutil\nimport subprocess\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Any\n\nimport numpy as np\nimport srt\nfrom PIL imp...
[ { "content": "\"\"\"The interface between scenes and ffmpeg.\"\"\"\n\nfrom __future__ import annotations\n\n__all__ = [\"SceneFileWriter\"]\n\nimport json\nimport os\nimport shutil\nimport subprocess\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Any\n\nimport numpy as np\nimport srt\nfrom PIL imp...
diff --git a/manim/scene/scene_file_writer.py b/manim/scene/scene_file_writer.py index d9e509de89..f3e5c08a4a 100644 --- a/manim/scene/scene_file_writer.py +++ b/manim/scene/scene_file_writer.py @@ -191,7 +191,7 @@ def next_section(self, name: str, type: str, skip_animations: bool) -> None: and not skip_an...
wagtail__wagtail-1770
"View live" button after page publish links to old URL if the slug was changed 1. Edit a page 2. Change the slug 3. Save 4. Click the "View live" button that appears in the notification bar at the top It will take you to the old slug.
[ { "content": "from django.http import Http404, HttpResponse\nfrom django.shortcuts import render, redirect, get_object_or_404\nfrom django.core.exceptions import ValidationError, PermissionDenied\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.paginator import Paginator, EmptyPage,...
[ { "content": "from django.http import Http404, HttpResponse\nfrom django.shortcuts import render, redirect, get_object_or_404\nfrom django.core.exceptions import ValidationError, PermissionDenied\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.paginator import Paginator, EmptyPage,...
diff --git a/wagtail/wagtailadmin/tests/test_pages_views.py b/wagtail/wagtailadmin/tests/test_pages_views.py index 41cac0c6d50f..286eb505817f 100644 --- a/wagtail/wagtailadmin/tests/test_pages_views.py +++ b/wagtail/wagtailadmin/tests/test_pages_views.py @@ -671,10 +671,10 @@ def test_page_edit_post_publish(self): ...
archlinux__archinstall-2033
Redundant profile menu Selecting the Profile option in the menu leads to a menu with the option Profile. Below is a screenshot of the menu described. ![image](https://github.com/archlinux/archinstall/assets/11915375/e2fac7f7-2ee9-4e49-a7e2-a9d4fe09fafc)
[ { "content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING, Any, Optional, Dict\n\nfrom archinstall.default_profiles.profile import Profile, GreeterType\nfrom .profile_model import ProfileConfiguration\nfrom ..menu import Menu, MenuSelectionType, AbstractSubMenu, Selector\nfrom ..inter...
[ { "content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING, Any, Optional, Dict\n\nfrom archinstall.default_profiles.profile import Profile, GreeterType\nfrom .profile_model import ProfileConfiguration\nfrom ..menu import Menu, MenuSelectionType, AbstractSubMenu, Selector\nfrom ..inter...
diff --git a/archinstall/lib/profile/profile_menu.py b/archinstall/lib/profile/profile_menu.py index 079a98173c..d9e471907f 100644 --- a/archinstall/lib/profile/profile_menu.py +++ b/archinstall/lib/profile/profile_menu.py @@ -27,7 +27,7 @@ def __init__( def setup_selection_menu_options(self): self._menu_options...
Cog-Creators__Red-DiscordBot-1995
[V3] Addrole command errors on hierarchy issue Cleaner output for hierarchy issue with [p] addrole instead of giving error. ![image](https://user-images.githubusercontent.com/10146271/43022519-788fd718-8c5f-11e8-8979-95143db2c567.png)
[ { "content": "from typing import Tuple\n\nimport discord\n\nfrom redbot.core import Config, checks, commands\n\nimport logging\n\nfrom redbot.core.utils.chat_formatting import box\nfrom .announcer import Announcer\nfrom .converters import MemberDefaultAuthor, SelfRole\n\nlog = logging.getLogger(\"red.admin\")\n...
[ { "content": "from typing import Tuple\n\nimport discord\n\nfrom redbot.core import Config, checks, commands\n\nimport logging\n\nfrom redbot.core.utils.chat_formatting import box\nfrom .announcer import Announcer\nfrom .converters import MemberDefaultAuthor, SelfRole\n\nlog = logging.getLogger(\"red.admin\")\n...
diff --git a/redbot/cogs/admin/admin.py b/redbot/cogs/admin/admin.py index c65f8cb47ea..84ba7807b18 100644 --- a/redbot/cogs/admin/admin.py +++ b/redbot/cogs/admin/admin.py @@ -136,7 +136,7 @@ async def addrole( # noinspection PyTypeChecker await self._addrole(ctx, user, rolename) els...
ipython__ipython-13905
'Bad file descriptor' error logged in atexit call back **Issue:** Following log lines are observed in stderr on daemonizing a process with `IPython.utils.io` as an import. > Exception ignored in atexit callback: <built-in method close of _io.TextIOWrapper object at 0x7f19e8aa9b10> > OSError: [Errno 9] Bad file desc...
[ { "content": "# encoding: utf-8\n\"\"\"\nIO related utilities.\n\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n\n\nimport atexit\nimport os\nimport sys\nimport tempfile\nfrom pathlib import Path\nfrom warnings import warn\n\nfrom IPython.utils....
[ { "content": "# encoding: utf-8\n\"\"\"\nIO related utilities.\n\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n\n\nimport atexit\nimport os\nimport sys\nimport tempfile\nfrom pathlib import Path\nfrom warnings import warn\n\nfrom IPython.utils....
diff --git a/IPython/utils/io.py b/IPython/utils/io.py index 2eac5e66cba..cef4319f92c 100644 --- a/IPython/utils/io.py +++ b/IPython/utils/io.py @@ -18,11 +18,6 @@ from IPython.utils.decorators import undoc from .capture import CapturedIO, capture_output -# setup stdin/stdout/stderr to sys.stdin/sys.stdout/sys.stde...
DataBiosphere__toil-1523
`toil clean` doesn't clean up job stores on Azure I've been running jobs with Azure job stores, and I've been wanting to restart them from scratch. I'm supposed to be able to do this with `toil clean`, but it doesn't work. ``` anovak@amn2master1:~/hgvm-graph-bakeoff-evaluations$ toil clean azure:hgvm:amntree amn2maste...
[ { "content": "# Copyright (C) 2015-2016 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-...
[ { "content": "# Copyright (C) 2015-2016 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-...
diff --git a/src/toil/jobStores/azureJobStore.py b/src/toil/jobStores/azureJobStore.py index b8d0c8751b..5a16194d00 100644 --- a/src/toil/jobStores/azureJobStore.py +++ b/src/toil/jobStores/azureJobStore.py @@ -165,6 +165,7 @@ def resume(self): super(AzureJobStore, self).resume() def destroy(self): + ...
zestedesavoir__zds-site-1333
[Ortho] Correction mineure dans le message d'édition Il faudrait remplacer "Edité" par "Édité" dans cette ligne : => https://github.com/zestedesavoir/zds-site/blob/24161830d639169c7092c83e7f75d20c0c5f1ba9/templates/misc/message.part.html#L178
[ { "content": "# coding: utf-8\n\nimport os\n\nfrom django import forms\nfrom django.contrib.auth import authenticate\nfrom django.contrib.auth.models import User\nfrom django.core.urlresolvers import reverse\n\nfrom crispy_forms.bootstrap import StrictButton\nfrom crispy_forms.helper import FormHelper\nfrom cri...
[ { "content": "# coding: utf-8\n\nimport os\n\nfrom django import forms\nfrom django.contrib.auth import authenticate\nfrom django.contrib.auth.models import User\nfrom django.core.urlresolvers import reverse\n\nfrom crispy_forms.bootstrap import StrictButton\nfrom crispy_forms.helper import FormHelper\nfrom cri...
diff --git a/templates/gallery/gallery/details.html b/templates/gallery/gallery/details.html index 5a6cbe590b..c335a76b0b 100644 --- a/templates/gallery/gallery/details.html +++ b/templates/gallery/gallery/details.html @@ -46,7 +46,7 @@ {% if u.mode == 'R' %} Lecture ...
google__turbinia-793
path_spec.parent is None exception ``` FsstatTask Task failed with exception: ['NoneType' object has no attribute 'type_indicator'] Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/turbinia-20210208.4.dev19+g7c02e5e-py3.6.egg/turbinia/workers/__init__.py", line 881, in run_wrapper ...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2021 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2021 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/turbinia/processors/partitions.py b/turbinia/processors/partitions.py index 142145ed6..c17742571 100644 --- a/turbinia/processors/partitions.py +++ b/turbinia/processors/partitions.py @@ -64,6 +64,10 @@ def GetPartitionEncryptionType(path_spec): String representing the type of encryption, or None. ...
ephios-dev__ephios-364
Add caching As of #278 some settings reside in the database, so we should defintely cache database requests.
[ { "content": "import copy\nimport os\nfrom email.utils import getaddresses\nfrom importlib import metadata\n\nimport environ\nfrom django.contrib.messages import constants\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\nenv = environ.Env()\n# for syntax see https://django-environ.re...
[ { "content": "import copy\nimport os\nfrom email.utils import getaddresses\nfrom importlib import metadata\n\nimport environ\nfrom django.contrib.messages import constants\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\nenv = environ.Env()\n# for syntax see https://django-environ.re...
diff --git a/ephios/settings.py b/ephios/settings.py index 3866c98ee..d7057b3ed 100644 --- a/ephios/settings.py +++ b/ephios/settings.py @@ -114,6 +114,12 @@ DATABASES = {"default": env.db_url()} +# Caches +CACHES = {"default": env.cache_url(default="locmemcache://")} +SESSION_ENGINE = "django.contrib.sessions.bac...
quantumlib__Cirq-5131
ControlledGate equality seems too loose **Description of the issue** Equality in controlled gate is implemented as follows, intentionally ignoring the order of the controls. ```python def _value_equality_values_(self): return ( self.sub_gate, self.num_controls(), ...
[ { "content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/cirq-core/cirq/ops/common_gates_test.py b/cirq-core/cirq/ops/common_gates_test.py index 8e59fa66921..efdd2c54f0a 100644 --- a/cirq-core/cirq/ops/common_gates_test.py +++ b/cirq-core/cirq/ops/common_gates_test.py @@ -158,7 +158,7 @@ def test_specialized_control(input_gate, specialized_output): ) a...
imAsparky__django-cookiecutter-44
[DOCS]: Add django readthedocs config file and badge. **Describe alternatives you've considered** Would you please share your clear and concise description of any alternative/similar documentation you've considered. **Additional context** Would you please share any other context or screenshots about the docume...
[ { "content": "#!/usr/bin/env python\n\"\"\"django-cookiecutter post project generation jobs.\"\"\"\nimport os\nimport subprocess # nosec\n\nPROJECT_DIRECTORY = os.path.realpath(os.path.curdir)\n\n# REMOTE_REPO = \"git@github.com:{{cookiecutter.github_username}}/\\\n# {{cookiecutter.git_project_name}}.git\"\n\n...
[ { "content": "#!/usr/bin/env python\n\"\"\"django-cookiecutter post project generation jobs.\"\"\"\nimport os\nimport subprocess # nosec\n\nPROJECT_DIRECTORY = os.path.realpath(os.path.curdir)\n\n# REMOTE_REPO = \"git@github.com:{{cookiecutter.github_username}}/\\\n# {{cookiecutter.git_project_name}}.git\"\n\n...
diff --git a/README.rst b/README.rst index f49e1206..7c9cbcbf 100644 --- a/README.rst +++ b/README.rst @@ -11,9 +11,9 @@ delivery using GitHub actions. .. _Django: https://www.djangoproject.com/ .. _cookiecutter: https://github.com/cookiecutter/cookiecutter -.. image:: https://www.repostatus.org/badges/latest/conce...
mkdocs__mkdocs-199
Local fragment links are generated incorrectly I've got a document, `foo.md`, like this: ``` markdown # Header One This is a link to [section 2](#header-two) # Header Two And this is that section. ``` I'd expect the link to go to `/foo/#header-two`, but instead it's linking to `/#header-two`. I can work around it...
[ { "content": "# coding: utf-8\nfrom __future__ import print_function\n\nfrom mkdocs import nav, toc, utils\nfrom mkdocs.compat import urljoin, urlparse, urlunparse, PY2\nimport jinja2\nimport markdown\nimport os\nimport re\nimport json\n\n\nclass PathToURL(object):\n def __init__(self, template, nav=None):\n...
[ { "content": "# coding: utf-8\nfrom __future__ import print_function\n\nfrom mkdocs import nav, toc, utils\nfrom mkdocs.compat import urljoin, urlparse, urlunparse, PY2\nimport jinja2\nimport markdown\nimport os\nimport re\nimport json\n\n\nclass PathToURL(object):\n def __init__(self, template, nav=None):\n...
diff --git a/mkdocs/build.py b/mkdocs/build.py index 2aedc8eb4f..bf085b171e 100644 --- a/mkdocs/build.py +++ b/mkdocs/build.py @@ -19,7 +19,7 @@ def __call__(self, match): url = match.groups()[0] scheme, netloc, path, query, query, fragment = urlparse(url) - if scheme or netloc: + if s...
pwr-Solaar__Solaar-1115
[regression] K800 keyboard battery status unknown with 1.0.5 **Information** - Solaar version (`solaar --version` or `git describe --tags` if cloned from this repository): **1.0.5** - Distribution: **Fedora 33** - Kernel version (ex. `uname -srmo`): `Linux 5.10.23-200.fc33.x86_64 x86_64 GNU/Linux` - Output of `sola...
[ { "content": "from __future__ import absolute_import, division, print_function, unicode_literals\n\nimport errno as _errno\n\nfrom logging import INFO as _INFO\nfrom logging import WARNING as _WARNING\nfrom logging import getLogger\nfrom typing import Optional\n\nimport hidapi as _hid\nimport solaar.configurati...
[ { "content": "from __future__ import absolute_import, division, print_function, unicode_literals\n\nimport errno as _errno\n\nfrom logging import INFO as _INFO\nfrom logging import WARNING as _WARNING\nfrom logging import getLogger\nfrom typing import Optional\n\nimport hidapi as _hid\nimport solaar.configurati...
diff --git a/lib/logitech_receiver/device.py b/lib/logitech_receiver/device.py index c38a4d1629..240cc5b47e 100644 --- a/lib/logitech_receiver/device.py +++ b/lib/logitech_receiver/device.py @@ -433,7 +433,7 @@ def request(self, request_id, *params, no_reply=False): request_id, *params, ...
cocotb__cocotb-3566
NVC: Remove experimental status After the current pending PRs we can move the next release of NVC out of the experimental CI group and update the docs. - [x] #3553 / #3559 - [x] #3554 - [x] NVC release (https://github.com/nickg/nvc/releases/tag/r1.11.0) - [x] Update docs #3566
[ { "content": "#!/usr/bin/env python3\n# Copyright cocotb contributors\n# Licensed under the Revised BSD License, see LICENSE for details.\n# SPDX-License-Identifier: BSD-3-Clause\n\n\"\"\"Get a list test environments.\"\"\"\n\nimport argparse\nimport json\nimport sys\n\nENVS = [\n # Test different Python ver...
[ { "content": "#!/usr/bin/env python3\n# Copyright cocotb contributors\n# Licensed under the Revised BSD License, see LICENSE for details.\n# SPDX-License-Identifier: BSD-3-Clause\n\n\"\"\"Get a list test environments.\"\"\"\n\nimport argparse\nimport json\nimport sys\n\nENVS = [\n # Test different Python ver...
diff --git a/.github/generate-envs.py b/.github/generate-envs.py index aa1ea926bd..b0658b967a 100755 --- a/.github/generate-envs.py +++ b/.github/generate-envs.py @@ -116,10 +116,10 @@ { "lang": "vhdl", "sim": "nvc", - "sim-version": "master", # Only master supported for now + "sim...
mampfes__hacs_waste_collection_schedule-1676
[Source Request]: ### Municipality / Region Bedburg ### Collection Calendar Webpage https://buerger-portal-bedburg.azurewebsites.net/calendar/ ### Example Address Am Schirkerhof 2, Bedburg, Broich ### Collection Data Format Something different (add to additional information) ### Additional Information The cit...
[ { "content": "import datetime\nimport re\nfrom dataclasses import dataclass\nfrom typing import List, Literal, Optional, TypedDict, Union\n\nimport requests\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\n\nTITLE = \"Bürgerportal\"\nURL = \"https://www.c-trace.de\"\nDESCRIPTION ...
[ { "content": "import datetime\nimport re\nfrom dataclasses import dataclass\nfrom typing import List, Literal, Optional, TypedDict, Union\n\nimport requests\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\n\nTITLE = \"Bürgerportal\"\nURL = \"https://www.c-trace.de\"\nDESCRIPTION ...
diff --git a/README.md b/README.md index 0fedd5409..85aee7bd6 100644 --- a/README.md +++ b/README.md @@ -610,6 +610,7 @@ Waste collection schedules in the following formats and countries are supported. - [Bremer Stadtreinigung](/doc/source/c_trace_de.md) / die-bremer-stadtreinigung.de - [Burgenland (Landkreis)](/doc/...
benoitc__gunicorn-1414
gunicorn.pidfile.validate crashes gunicorn when PID exists but is from a different user ``` Traceback (most recent call last): File "/opt/python2.7/bin/gunicorn", line 11, in <module> sys.exit(run()) File "/opt/python2.7/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 74, in run WSGIApplication("...
[ { "content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\nimport errno\nimport os\nimport tempfile\n\n\nclass Pidfile(object):\n \"\"\"\\\n Manage a PID file. If a specific name is provided\n it and '\"%s.oldpid\" ...
[ { "content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\nimport errno\nimport os\nimport tempfile\n\n\nclass Pidfile(object):\n \"\"\"\\\n Manage a PID file. If a specific name is provided\n it and '\"%s.oldpid\" ...
diff --git a/gunicorn/pidfile.py b/gunicorn/pidfile.py index 7f7f844f9..a6e085fd5 100644 --- a/gunicorn/pidfile.py +++ b/gunicorn/pidfile.py @@ -75,6 +75,8 @@ def validate(self): os.kill(wpid, 0) return wpid except OSError as e: + if e.args[0...
agconti__cookiecutter-django-rest-78
Tests should have `--nologcapture` added to the NOSE_ARGS This is just really a proposal to add `--nologcapture` to the standard `python manage.py test` command. This because the logs are mainly queries from Factory boy and requests, which are not really insightful.
[ { "content": "import os\nfrom .common import Common\nfrom configurations import values\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\nclass Local(Common):\n\n DEBUG = values.BooleanValue(True)\n TEMPLATE_DEBUG = DEBUG\n\n # Testing\n INSTALLED_APPS = Common.INSTALLED_...
[ { "content": "import os\nfrom .common import Common\nfrom configurations import values\n\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\nclass Local(Common):\n\n DEBUG = values.BooleanValue(True)\n TEMPLATE_DEBUG = DEBUG\n\n # Testing\n INSTALLED_APPS = Common.INSTALLED_...
diff --git a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/local.py b/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/local.py index 40ea10b59..19517294f 100755 --- a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/local.py +++ b/{{cookiecutte...
streamlit__streamlit-7267
When "upload_file_request_handler.py" returns 400 error, we can see session ID. # Summary We make application on Microsoft Azure App Service with streamlit. When we conducted a test of uploading file with `st.file_uploader`, it returned 400 error and **session ID** as string. We checked your codes and noticed tha...
[ { "content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
[ { "content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
diff --git a/lib/streamlit/web/server/upload_file_request_handler.py b/lib/streamlit/web/server/upload_file_request_handler.py index 8741f27c9e4c..29041f4ba80a 100644 --- a/lib/streamlit/web/server/upload_file_request_handler.py +++ b/lib/streamlit/web/server/upload_file_request_handler.py @@ -99,7 +99,7 @@ def put(sel...
pytorch__ignite-1013
Interoperability of logging with ignite logger ## 🐛 Bug description This bug is related to logger from module logging. Actually, (logging) handlers are attached to loggers created by user. https://github.com/pytorch/ignite/blob/bef668c152dc86334a8ab09e9ce9368c48e48102/ignite/utils.py#L64-L137 From `logging` docu...
[ { "content": "import random\nimport collections.abc as collections\nimport logging\nfrom functools import wraps\nfrom typing import Union, Optional, Callable, Any, Type, Tuple\n\nimport torch\nimport torch.distributed as dist\n\n__all__ = [\"convert_tensor\", \"apply_to_tensor\", \"apply_to_type\", \"to_onehot\...
[ { "content": "import random\nimport collections.abc as collections\nimport logging\nfrom functools import wraps\nfrom typing import Union, Optional, Callable, Any, Type, Tuple\n\nimport torch\nimport torch.distributed as dist\n\n__all__ = [\"convert_tensor\", \"apply_to_tensor\", \"apply_to_type\", \"to_onehot\...
diff --git a/ignite/utils.py b/ignite/utils.py index 131001004816..254ee3056741 100644 --- a/ignite/utils.py +++ b/ignite/utils.py @@ -105,6 +105,12 @@ def setup_logger( """ logger = logging.getLogger(name) + # don't propagate to ancestors + # the problem here is to attach handlers to loggers + # s...
psf__black-4128
Changes to files happing quickly after running `black` are not detected **Describe the bug** It seems `black` does not detect that a file has been changed and needs to be re-checked, if the change happens quickly after `black` has been run on the file. I'm talking about this feature: [Ignoring unmodified files](h...
[ { "content": "\"\"\"Caching of formatted files with feature-based invalidation.\"\"\"\n\nimport hashlib\nimport os\nimport pickle\nimport sys\nimport tempfile\nfrom dataclasses import dataclass, field\nfrom pathlib import Path\nfrom typing import Dict, Iterable, NamedTuple, Set, Tuple\n\nfrom platformdirs impor...
[ { "content": "\"\"\"Caching of formatted files with feature-based invalidation.\"\"\"\n\nimport hashlib\nimport os\nimport pickle\nimport sys\nimport tempfile\nfrom dataclasses import dataclass, field\nfrom pathlib import Path\nfrom typing import Dict, Iterable, NamedTuple, Set, Tuple\n\nfrom platformdirs impor...
diff --git a/CHANGES.md b/CHANGES.md index 526cbd12123..c8c63f5131d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -18,6 +18,8 @@ <!-- Changes to how Black can be configured --> +- Fix cache mtime logic that resulted in false positive cache hits (#4128) + ### Packaging <!-- Changes to how Black is packaged, such ...
netbox-community__netbox-14565
Enable `ENFORCE_GLOBAL_UNIQUE` by default ### NetBox version v3.6.6 ### Feature type Change to existing functionality ### Proposed functionality Change the default value of the [`ENFORCE_GLOBAL_UNIQUE`](https://docs.netbox.dev/en/stable/configuration/miscellaneous/#enforce_global_unique) configuration pa...
[ { "content": "from django import forms\nfrom django.contrib.postgres.forms import SimpleArrayField\nfrom django.utils.translation import gettext_lazy as _\n\n\nclass ConfigParam:\n\n def __init__(self, name, label, default, description='', field=None, field_kwargs=None):\n self.name = name\n se...
[ { "content": "from django import forms\nfrom django.contrib.postgres.forms import SimpleArrayField\nfrom django.utils.translation import gettext_lazy as _\n\n\nclass ConfigParam:\n\n def __init__(self, name, label, default, description='', field=None, field_kwargs=None):\n self.name = name\n se...
diff --git a/docs/configuration/miscellaneous.md b/docs/configuration/miscellaneous.md index 2582b192899..4d4ca189ea9 100644 --- a/docs/configuration/miscellaneous.md +++ b/docs/configuration/miscellaneous.md @@ -103,9 +103,12 @@ The maximum size (in bytes) of an incoming HTTP request (i.e. `GET` or `POST` da !!! ti...
certbot__certbot-696
Command line arguments for plugins are broken It seems the command line arguments for plugins created in `add_parser_arguments(cls, add):` cant be extracted with `self.conf("argument_name")`. I suspect something with the plugin namespace prefix is going wrong. My code is here https://github.com/e00E/lets-encrypt-iceca...
[ { "content": "\"\"\"Plugin common functions.\"\"\"\nimport os\nimport pkg_resources\nimport re\nimport shutil\nimport tempfile\n\nimport zope.interface\n\nfrom acme.jose import util as jose_util\n\nfrom letsencrypt import constants\nfrom letsencrypt import interfaces\nfrom letsencrypt import le_util\n\n\ndef op...
[ { "content": "\"\"\"Plugin common functions.\"\"\"\nimport os\nimport pkg_resources\nimport re\nimport shutil\nimport tempfile\n\nimport zope.interface\n\nfrom acme.jose import util as jose_util\n\nfrom letsencrypt import constants\nfrom letsencrypt import interfaces\nfrom letsencrypt import le_util\n\n\ndef op...
diff --git a/letsencrypt/plugins/common.py b/letsencrypt/plugins/common.py index 39956fc90b0..bef8b4d81da 100644 --- a/letsencrypt/plugins/common.py +++ b/letsencrypt/plugins/common.py @@ -20,7 +20,7 @@ def option_namespace(name): def dest_namespace(name): """ArgumentParser dest namespace (prefix of all destina...
django-cms__django-cms-3357
toolbar causes 500 error if there is no current page Most common case is when trying to render the toolbar on a 404 page or some other url that does not have a "current page". How to reproduce: - produce a 404.html template that loads the toolbar - start a server with `DEBUG=False` and an empty database (no cms pages ...
[ { "content": "# -*- coding: utf-8 -*-\nfrom copy import copy\nfrom datetime import datetime\nfrom itertools import chain\nimport re\n\nfrom django import template\nfrom django.conf import settings\nfrom django.contrib.sites.models import Site\nfrom django.core.mail import mail_managers\nfrom django.core.urlreso...
[ { "content": "# -*- coding: utf-8 -*-\nfrom copy import copy\nfrom datetime import datetime\nfrom itertools import chain\nimport re\n\nfrom django import template\nfrom django.conf import settings\nfrom django.contrib.sites.models import Site\nfrom django.core.mail import mail_managers\nfrom django.core.urlreso...
diff --git a/cms/templates/cms/toolbar/plugin.html b/cms/templates/cms/toolbar/plugin.html index c2cbef29ceb..85506927679 100644 --- a/cms/templates/cms/toolbar/plugin.html +++ b/cms/templates/cms/toolbar/plugin.html @@ -24,9 +24,9 @@ 'onClose': {% if refresh_page %}'REFRESH_PAGE'{% else %}{% if redirect_on_close %}...
python-pillow__Pillow-4744
Image.show() problem with I;16 mode TIFFs <!-- Thank you for reporting an issue. Follow these guidelines to ensure your issue is handled properly. If you have a ... 1. General question: consider asking the question on Stack Overflow with the python-imaging-library tag: * https://stackoverflow.com...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# im.show() drivers\n#\n# History:\n# 2008-04-06 fl Created\n#\n# Copyright (c) Secret Labs AB 2008.\n#\n# See the README file for information on usage and redistribution.\n#\nimport os\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\nf...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# im.show() drivers\n#\n# History:\n# 2008-04-06 fl Created\n#\n# Copyright (c) Secret Labs AB 2008.\n#\n# See the README file for information on usage and redistribution.\n#\nimport os\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\nf...
diff --git a/src/PIL/ImageShow.py b/src/PIL/ImageShow.py index 57b7dcac7f6..3ffb4d63254 100644 --- a/src/PIL/ImageShow.py +++ b/src/PIL/ImageShow.py @@ -71,7 +71,8 @@ def show(self, image, **options): # save temporary image to disk if not ( - image.mode in ("1", "RGBA") or (self.format ==...
DataDog__dd-agent-1912
Incorrect conversion of system.io.bytes_per_s metric Incorrect conversion between megabytes and bytes [HERE](https://github.com/DataDog/dd-agent/blob/09249df7a895c534e6150ca066f544ba72606354/checks/system/unix.py#L75). Also in the test file: tests/checks/mock/test_sysstat.py ``` 'system.io.bytes_per_s': mb_s * 10**6 ...
[ { "content": "\"\"\"\nUnix system checks.\n\"\"\"\n# stdlib\nimport operator\nimport platform\nimport re\nimport sys\nimport time\n\n# project\nfrom checks import Check\nfrom util import get_hostname\nfrom utils.platform import Platform\nfrom utils.subprocess_output import subprocess as sp\n\n# locale-resilient...
[ { "content": "\"\"\"\nUnix system checks.\n\"\"\"\n# stdlib\nimport operator\nimport platform\nimport re\nimport sys\nimport time\n\n# project\nfrom checks import Check\nfrom util import get_hostname\nfrom utils.platform import Platform\nfrom utils.subprocess_output import subprocess as sp\n\n# locale-resilient...
diff --git a/checks/system/unix.py b/checks/system/unix.py index c7890b548a..954140f71f 100644 --- a/checks/system/unix.py +++ b/checks/system/unix.py @@ -72,7 +72,7 @@ def _parse_darwin(self, output): for idx, disk in enumerate(disks): kb_t, tps, mb_s = map(float, lastline[(3 * idx):(3 * idx) + 3...
svthalia__concrexit-2510
Thumbnailing of transparent images seems to break ### Describe the bug <img width="1119" alt="image" src="https://user-images.githubusercontent.com/7915741/191974542-041bdb37-f2e0-4181-9267-9a24d5df66b3.png"> ### How to reproduce <img width="1119" alt="image" src="https://user-images.githubusercontent.com/7915741/...
[ { "content": "import io\nimport os\n\nfrom django.conf import settings\nfrom django.core import signing\nfrom django.core.files.base import ContentFile\nfrom django.core.files.storage import get_storage_class, DefaultStorage\nfrom django.core.files.uploadedfile import InMemoryUploadedFile\nfrom django.db.models...
[ { "content": "import io\nimport os\n\nfrom django.conf import settings\nfrom django.core import signing\nfrom django.core.files.base import ContentFile\nfrom django.core.files.storage import get_storage_class, DefaultStorage\nfrom django.core.files.uploadedfile import InMemoryUploadedFile\nfrom django.db.models...
diff --git a/website/utils/media/services.py b/website/utils/media/services.py index 62db39d97..61661fdec 100644 --- a/website/utils/media/services.py +++ b/website/utils/media/services.py @@ -12,7 +12,7 @@ def save_image(storage, image, path, format): buffer = io.BytesIO() - image.convert("RGB").save(fp=buf...
bookwyrm-social__bookwyrm-1216
full links not recognized **Describe the bug** Only the first part of a link with a /@ in it is being linked so https://mastodon.social/@username only auto links https://mastodon.social and strips '@username' from being a link **To Reproduce** here is an example https://bookwyrm.social/user/wakest/comment/30867 ...
[ { "content": "\"\"\" what are we here for if not for posting \"\"\"\nimport re\nfrom django.contrib.auth.decorators import login_required\nfrom django.http import HttpResponseBadRequest\nfrom django.shortcuts import get_object_or_404, redirect\nfrom django.template.response import TemplateResponse\nfrom django....
[ { "content": "\"\"\" what are we here for if not for posting \"\"\"\nimport re\nfrom django.contrib.auth.decorators import login_required\nfrom django.http import HttpResponseBadRequest\nfrom django.shortcuts import get_object_or_404, redirect\nfrom django.template.response import TemplateResponse\nfrom django....
diff --git a/bookwyrm/views/status.py b/bookwyrm/views/status.py index 61b6dc7aa1..651021b639 100644 --- a/bookwyrm/views/status.py +++ b/bookwyrm/views/status.py @@ -150,7 +150,7 @@ def find_mentions(content): def format_links(content): """detect and format links""" return re.sub( - r'([^(href=")]|^|...
freqtrade__freqtrade-8865
Downloading Kraken Data Operating system: Windows Exchange: Kraken I'm trying to download historical data, and when I run the download data command, I get an error: List index out of range. ``` C:\Users\chris\ft_userdata>docker compose run freqtrade download-data --exchange kraken --dl-trades 2023-07-03 21:59...
[ { "content": "import logging\nimport operator\nfrom datetime import datetime, timedelta\nfrom pathlib import Path\nfrom typing import Dict, List, Optional, Tuple\n\nfrom pandas import DataFrame, concat\n\nfrom freqtrade.configuration import TimeRange\nfrom freqtrade.constants import DATETIME_PRINT_FORMAT, DEFAU...
[ { "content": "import logging\nimport operator\nfrom datetime import datetime, timedelta\nfrom pathlib import Path\nfrom typing import Dict, List, Optional, Tuple\n\nfrom pandas import DataFrame, concat\n\nfrom freqtrade.configuration import TimeRange\nfrom freqtrade.constants import DATETIME_PRINT_FORMAT, DEFAU...
diff --git a/freqtrade/data/history/history_utils.py b/freqtrade/data/history/history_utils.py index bd925d9011e..cca2cfa722f 100644 --- a/freqtrade/data/history/history_utils.py +++ b/freqtrade/data/history/history_utils.py @@ -354,7 +354,7 @@ def _download_trades_history(exchange: Exchange, trades = [] ...
mampfes__hacs_waste_collection_schedule-190
Berlin Recycling broken due to SSL misconfiguration Berlin Recycling is currently broken and fails with an `SSLCertVerificationError`: > Logger: waste_collection_schedule.scraper > Source: custom_components/waste_collection_schedule/waste_collection_schedule/scraper.py:118 > Integration: waste_collection_schedule ...
[ { "content": "import json\nfrom datetime import datetime\nfrom html.parser import HTMLParser\n\nimport requests\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\n\nTITLE = \"Berline Recycling\"\nDESCRIPTION = \"Source for Berlin Recycling waste collection.\"\nURL = \"https://berli...
[ { "content": "import json\nfrom datetime import datetime\nfrom html.parser import HTMLParser\n\nimport requests\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\n\nTITLE = \"Berline Recycling\"\nDESCRIPTION = \"Source for Berlin Recycling waste collection.\"\nURL = \"https://berli...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/berlin_recycling_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/berlin_recycling_de.py index c268db9c2..82537d83e 100644 --- a/custom_components/waste_collection_schedule/waste_collection_sche...
GPflow__GPflow-648
Reproducibility using seeds Been running some experiments, and it seems I cannot get the same reproducible result even when setting numpy and tensorflow seeds at the top of the script like ``` np.random.seed(72) tf.set_random_seed(72) ``` Naturally, either I'm setting them wrong or I'm missing a RNG. I call Pa...
[ { "content": "# Copyright 2017 Artem Artemev @awav\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 appl...
[ { "content": "# Copyright 2017 Artem Artemev @awav\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 appl...
diff --git a/gpflow/training/optimizer.py b/gpflow/training/optimizer.py index 80ecfc9da..92af6aac6 100644 --- a/gpflow/training/optimizer.py +++ b/gpflow/training/optimizer.py @@ -43,7 +43,8 @@ def minimize(self, model, session=None, var_list=None, feed_dict=None, @staticmethod def _gen_var_list(model, var_l...
pypa__pipenv-3811
pipenv ignores PIPENV_INSTALL_TIMEOUT ### Issue description It appears that setting PIPENV_INSTALL_TIMEOUT as an environment variable doesn't change the installation timeout used by pipenv. I have a remote location where the internet connection is quite slow and the default of 15 minutes is not long enough. Look...
[ { "content": "# -*- coding=utf-8 -*-\n\nimport os\nimport sys\n\nfrom io import UnsupportedOperation\n\nfrom appdirs import user_cache_dir\n\nfrom ._compat import fix_utf8\nfrom .vendor.vistir.misc import _isatty, fs_str\n\n\n# HACK: avoid resolver.py uses the wrong byte code files.\n# I hope I can remove this ...
[ { "content": "# -*- coding=utf-8 -*-\n\nimport os\nimport sys\n\nfrom io import UnsupportedOperation\n\nfrom appdirs import user_cache_dir\n\nfrom ._compat import fix_utf8\nfrom .vendor.vistir.misc import _isatty, fs_str\n\n\n# HACK: avoid resolver.py uses the wrong byte code files.\n# I hope I can remove this ...
diff --git a/news/3652.feature.rst b/news/3652.feature.rst new file mode 100644 index 0000000000..7e5becb965 --- /dev/null +++ b/news/3652.feature.rst @@ -0,0 +1 @@ +Allow overriding PIPENV_INSTALL_TIMEOUT environment variable (in seconds). diff --git a/pipenv/environments.py b/pipenv/environments.py index 180f0a6ed2.....
hylang__hy-2421
Escaped braces in bracket f-strings are doubled in the output Python: ``` >>> f"{{foo}}" '{foo}' ``` Hy, correct: ``` => f"{{foo}}" "{foo}" ``` Hy, incorrect: ``` => #[f-[{{foo}}]f-] "{{foo}}" ```
[ { "content": "\"Character reader for parsing Hy source.\"\n\nfrom itertools import islice\n\nimport hy\nfrom hy.models import (\n Bytes,\n Complex,\n Dict,\n Expression,\n FComponent,\n Float,\n FString,\n Integer,\n Keyword,\n List,\n Set,\n String,\n Symbol,\n Tuple,\...
[ { "content": "\"Character reader for parsing Hy source.\"\n\nfrom itertools import islice\n\nimport hy\nfrom hy.models import (\n Bytes,\n Complex,\n Dict,\n Expression,\n FComponent,\n Float,\n FString,\n Integer,\n Keyword,\n List,\n Set,\n String,\n Symbol,\n Tuple,\...
diff --git a/NEWS.rst b/NEWS.rst index 27066089e..a0b30a20c 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -8,6 +8,7 @@ Bug Fixes * Fixed an installation failure in some situations when version lookup fails. * Fixed traceback pointing in scripts with shebangs. +* Fixed some bugs with escaping in bracket f-strings New ...
jupyterhub__jupyterhub-1454
Exception when logout with auto_login=True **How to reproduce the issue** Press logout button **What you expected to happen** Shows logout.html **What actually happens** Exception: ``` Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/tornado/web.py", line 1509, in _e...
[ { "content": "\"\"\"HTTP Handlers for the hub server\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nfrom tornado.escape import url_escape\nfrom tornado import gen\nfrom tornado.httputil import url_concat\nfrom tornado import web\n\nfrom .base im...
[ { "content": "\"\"\"HTTP Handlers for the hub server\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nfrom tornado.escape import url_escape\nfrom tornado import gen\nfrom tornado.httputil import url_concat\nfrom tornado import web\n\nfrom .base im...
diff --git a/jupyterhub/handlers/login.py b/jupyterhub/handlers/login.py index 2f934e7993..537ff5b221 100644 --- a/jupyterhub/handlers/login.py +++ b/jupyterhub/handlers/login.py @@ -20,7 +20,7 @@ def get(self): self.clear_login_cookie() self.statsd.incr('logout') if self.authenticato...
ansible-collections__community.general-8176
aix_filesystem: _validate_vg not passing vg name to lsvg_cmd ### Summary When using the community.general.aix_filesystem module to create a filesystem and passing the vg parameter to the module. The _validate_vg function fails to pass the vg variable to the in line 245 ### Issue Type Bug Report ### Component Name ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2017, Kairo Araujo <kairo@kairo.eti.br>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import absolute_...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2017, Kairo Araujo <kairo@kairo.eti.br>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import absolute_...
diff --git a/changelogs/fragments/8151-fix-lsvg_cmd-failed.yml b/changelogs/fragments/8151-fix-lsvg_cmd-failed.yml new file mode 100644 index 00000000000..0eeee752dfc --- /dev/null +++ b/changelogs/fragments/8151-fix-lsvg_cmd-failed.yml @@ -0,0 +1,2 @@ +bugfixes: + - aix_filesystem - fix ``_validate_vg`` not passing V...
pwndbg__pwndbg-693
qemu local_path bug ### Description It seems like some commands e.g. plt, got tries to use ELF file's content as path. ### Steps to reproduce ``` $ qemu-arm -g 23946 ./target $ gdb-multiarch ./target (gdb) target remote :23946 (gdb) plt # or (gdb) got ``` ### My setup Ubuntu 18.04, branch c6473ba (...
[ { "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 52fe106465c..e165fc44de9 100755 --- a/pwndbg/file.py +++ b/pwndbg/file.py @@ -33,7 +33,7 @@ def get_file(path, recurse=1): local_path = path if pwndbg.qemu.root() and recurse: - return get(os.path.join(pwndbg.qemu.binfmt_root, path), 0) + retu...
comic__grand-challenge.org-1665
RawImageFileAdmin has incorrect relation defined
[ { "content": "import re\nfrom functools import update_wrapper\n\nfrom django.contrib import admin\nfrom django.contrib.admin.utils import unquote\nfrom django.core.exceptions import PermissionDenied\nfrom django.http import Http404, HttpResponse\nfrom django.urls import path\nfrom django.utils.html import forma...
[ { "content": "import re\nfrom functools import update_wrapper\n\nfrom django.contrib import admin\nfrom django.contrib.admin.utils import unquote\nfrom django.core.exceptions import PermissionDenied\nfrom django.http import Http404, HttpResponse\nfrom django.urls import path\nfrom django.utils.html import forma...
diff --git a/app/grandchallenge/cases/admin.py b/app/grandchallenge/cases/admin.py index 9258c580f4..0db1b18e1a 100644 --- a/app/grandchallenge/cases/admin.py +++ b/app/grandchallenge/cases/admin.py @@ -114,7 +114,6 @@ def queryset(self, request, queryset): class RawImageFileAdmin(GuardedModelAdmin): list_filter ...
lutris__lutris-1859
get_children_pids_of_thread(): process.py:57:get_children_pids_of_thread:ProcessLookupError: [Errno 3] No such process: '/proc/25892/task/25892/children' Here's another Fedora report. https://bugzilla.redhat.com/show_bug.cgi?id=1686988 cmdline: /usr/bin/python3 -s /usr/bin/lutris-wrapper 0 0 /home/u13881/....
[ { "content": "\"\"\"Class to manipulate a process\"\"\"\nimport os\nfrom lutris.util.log import logger\nfrom lutris.util.system import path_exists\n\n\nclass InvalidPid(Exception):\n \"\"\"Exception raised when an operation on a non-existent PID is called\"\"\"\n\n\nclass Process:\n \"\"\"Python abstracti...
[ { "content": "\"\"\"Class to manipulate a process\"\"\"\nimport os\nfrom lutris.util.log import logger\nfrom lutris.util.system import path_exists\n\n\nclass InvalidPid(Exception):\n \"\"\"Exception raised when an operation on a non-existent PID is called\"\"\"\n\n\nclass Process:\n \"\"\"Python abstracti...
diff --git a/lutris/util/process.py b/lutris/util/process.py index 54f06f1cac..e4c5dee613 100644 --- a/lutris/util/process.py +++ b/lutris/util/process.py @@ -56,7 +56,7 @@ def get_children_pids_of_thread(self, tid): try: with open(children_path) as children_file: children_content...
ivy-llc__ivy-14979
extract
[ { "content": "# local\n\nimport ivy\n\nfrom ivy.functional.frontends.numpy import promote_types_of_numpy_inputs\n\nfrom ivy.functional.frontends.numpy.func_wrapper import (\n to_ivy_arrays_and_back,\n from_zero_dim_arrays_to_scalar,\n handle_numpy_out,\n)\n\n\n@to_ivy_arrays_and_back\ndef where(cond, x...
[ { "content": "# local\n\nimport ivy\n\nfrom ivy.functional.frontends.numpy import promote_types_of_numpy_inputs\n\nfrom ivy.functional.frontends.numpy.func_wrapper import (\n to_ivy_arrays_and_back,\n from_zero_dim_arrays_to_scalar,\n handle_numpy_out,\n)\n\n\n@to_ivy_arrays_and_back\ndef where(cond, x...
diff --git a/ivy/functional/frontends/numpy/sorting_searching_counting/searching.py b/ivy/functional/frontends/numpy/sorting_searching_counting/searching.py index 2741e6037cbf1..77a924e949a9a 100644 --- a/ivy/functional/frontends/numpy/sorting_searching_counting/searching.py +++ b/ivy/functional/frontends/numpy/sorting...
ray-project__ray-9517
[tune] Population-based training: broken when using keep_checkpoint_num When using **population-based** training TUNE stops after some times throwing the following error: `There are paused trials, but no more pending trials with sufficient resources.` This is caused by not finding the latest checkpoint: ``` F...
[ { "content": "# coding: utf-8\nimport heapq\nimport logging\n\nfrom ray.tune.result import TRAINING_ITERATION\n\nlogger = logging.getLogger(__name__)\n\n\nclass Checkpoint:\n \"\"\"Describes a checkpoint of trial state.\n\n Checkpoint may be saved in different storage.\n\n Attributes:\n storage ...
[ { "content": "# coding: utf-8\nimport heapq\nimport logging\n\nfrom ray.tune.result import TRAINING_ITERATION\n\nlogger = logging.getLogger(__name__)\n\n\nclass Checkpoint:\n \"\"\"Describes a checkpoint of trial state.\n\n Checkpoint may be saved in different storage.\n\n Attributes:\n storage ...
diff --git a/python/ray/tune/BUILD b/python/ray/tune/BUILD index 60805c2505f44..87016914cdb64 100644 --- a/python/ray/tune/BUILD +++ b/python/ray/tune/BUILD @@ -180,6 +180,14 @@ py_test( tags = ["exclusive"], ) +py_test( + name = "test_trial_scheduler_pbt", + size = "medium", + srcs = ["tests/test_tria...
ansible__ansible-26377
mail sending with STARTTLS broken because auth_flag variable is not updated after the starttls connection <!--- Verify first that your issue/request is not already reported on GitHub. Also test if the latest release, and master branch are affected too. --> ##### ISSUE TYPE <!--- Pick one below and delete the res...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright 2012 Dag Wieers <dag@wieers.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 Foundatio...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright 2012 Dag Wieers <dag@wieers.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 Foundatio...
diff --git a/lib/ansible/modules/notification/mail.py b/lib/ansible/modules/notification/mail.py index 7c7d5f2e5bf710..862e61ccefac9f 100644 --- a/lib/ansible/modules/notification/mail.py +++ b/lib/ansible/modules/notification/mail.py @@ -312,6 +312,7 @@ def main(): try: smtp.start...
qutip__qutip-387
tensor_contract fails for adjacent dimensions This one seems to be due to a quirk of NumPy's fancy indexing, but `tensor_contract` fails to contract out a pair `(i, j)` if `j == i + 1 and i > 0`. For example:: ``` python In [1]: import numpy as np In [2]: import qutip as qt In [3]: dat = np.arange(2 * 3 * 3 * 4).res...
[ { "content": "# This file is part of QuTiP: Quantum Toolbox in Python.\n#\n# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the followi...
[ { "content": "# This file is part of QuTiP: Quantum Toolbox in Python.\n#\n# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the followi...
diff --git a/qutip/tensor.py b/qutip/tensor.py index c6ff28fe3e..86457c6475 100644 --- a/qutip/tensor.py +++ b/qutip/tensor.py @@ -359,7 +359,8 @@ def _tensor_contract_single(arr, i, j): idxs = np.arange(arr.shape[i]) sl = tuple(slice(None, None, None) if idx not in (i, j) else idxs for idx in...
apache__tvm-7327
[BUG] tvmc runner: print_top sorts output causing sorted output to be stored. The options print_top and outputs are currently incompatible, get_top_results should work on a copy of outputs. Otherwise sorted outputs are stored in .npz https://github.com/apache/tvm/blob/8524b28078928caf5c8ca82442ad0eab81dce838/python...
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
diff --git a/python/tvm/driver/tvmc/runner.py b/python/tvm/driver/tvmc/runner.py index dec0e9842a37..87ea3be1436a 100644 --- a/python/tvm/driver/tvmc/runner.py +++ b/python/tvm/driver/tvmc/runner.py @@ -427,7 +427,7 @@ def get_top_results(outputs, max_results): The first row is the indices and the second is th...
google__flax-1423
flax.core.FrozenDict copy broken when the new dictionary contains some names Provide as much information as possible. At least, this should include a description of your issue and steps to reproduce the problem. If possible also provide a summary of what steps or workarounds you have already tried. ### Problem you h...
[ { "content": "# Copyright 2021 The Flax 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 ap...
[ { "content": "# Copyright 2021 The Flax 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 ap...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 16850cb51..f40efb902 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ vNext - NamedTuples are no longer converted to tuples on assingment to a `linen.Module`. - - - - + - Fixed a bug in FrozenDict which didn't allow copying dicts with reserved names. ...
google__clusterfuzz-906
/fuzzer-weights cron is failing on OSS-Fuzz @mbarbella-chromium I can get to this a bit later, but if you're interested to check this out, I'd be grateful
[ { "content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/src/appengine/handlers/cron/fuzzer_weights.py b/src/appengine/handlers/cron/fuzzer_weights.py index 79f6b13ac7..d6c9dfd534 100644 --- a/src/appengine/handlers/cron/fuzzer_weights.py +++ b/src/appengine/handlers/cron/fuzzer_weights.py @@ -251,8 +251,7 @@ def update_weight_for_target(fuzz_target_name, job, m...
pulp__pulpcore-2246
PulpImporter assumes tempfiles can always go to /tmp This issue is a copy of https://pulp.plan.io/issues/8610 , to allow us to backport the fix from core/3.17 into 14/15/16 correctly. **Version** core/3.14+ **Describe the bug** importer.pulp_import uses tempfile.TemporaryDirectory() in places like this: http...
[ { "content": "import hashlib\nimport json\nimport os\nimport re\nimport subprocess\nimport tempfile\nimport tarfile\nfrom gettext import gettext as _\nfrom logging import getLogger\n\nfrom django.core.files.storage import default_storage\nfrom django.db.models import F\n\nfrom pkg_resources import DistributionN...
[ { "content": "import hashlib\nimport json\nimport os\nimport re\nimport subprocess\nimport tempfile\nimport tarfile\nfrom gettext import gettext as _\nfrom logging import getLogger\n\nfrom django.core.files.storage import default_storage\nfrom django.db.models import F\n\nfrom pkg_resources import DistributionN...
diff --git a/CHANGES/2247.bugfix b/CHANGES/2247.bugfix new file mode 100644 index 0000000000..851f66d2af --- /dev/null +++ b/CHANGES/2247.bugfix @@ -0,0 +1,4 @@ +PulpImporter now unpacks into the task-worker's working directory rather than /tmp. Unpacking +large files into /tmp could cause the operation to fail, or eve...
statsmodels__statsmodels-779
OLS residuals returned as Pandas series when endog and exog are Pandas series When I fit OLS model with pandas series and try to do a Durbin-Watson test, the function returns nan. In that case the RegressionResult.resid attribute is a pandas series, rather than a numpy array- converting to a numpy array explicitly, the...
[ { "content": "\"\"\"\nStatistical tests to be used in conjunction with the models\n\nNotes\n-----\nThese functions haven't been formally tested.\n\"\"\"\n\nfrom scipy import stats\nimport numpy as np\n\n\n#TODO: these are pretty straightforward but they should be tested\ndef durbin_watson(resids):\n \"\"\"\n...
[ { "content": "\"\"\"\nStatistical tests to be used in conjunction with the models\n\nNotes\n-----\nThese functions haven't been formally tested.\n\"\"\"\n\nfrom scipy import stats\nimport numpy as np\n\n\n#TODO: these are pretty straightforward but they should be tested\ndef durbin_watson(resids):\n \"\"\"\n...
diff --git a/statsmodels/stats/stattools.py b/statsmodels/stats/stattools.py index fe9ffe3c620..d8cc1cc89c2 100644 --- a/statsmodels/stats/stattools.py +++ b/statsmodels/stats/stattools.py @@ -24,6 +24,7 @@ def durbin_watson(resids): Durbin Watson statistic. This is defined as sum_(t=2)^(T)((e_t - e_(t-1))^(...
aimhubio__aim-2577
Detection of Jax Arrays Breaks on Jax=0.4.* The detection for jax arrays here https://github.com/aimhubio/aim/blob/285a09fefbf25d418e00bc305e9a1357d6343d3c/aim/sdk/num_utils.py#L66 is broken in Jax 0.4.* since `DeviceArray` was renamed to `Array`. The simple fix to support the prior/current version would be to check fo...
[ { "content": "def get_inst_type_str(inst):\n \"\"\"\n Get instance type and class type full names\n \"\"\"\n obj_name = obj_module = obj_cls_name = obj_cls_module = ''\n\n if hasattr(inst, '__name__'):\n obj_name = inst.__name__\n if hasattr(inst, '__module__'):\n obj_module = in...
[ { "content": "def get_inst_type_str(inst):\n \"\"\"\n Get instance type and class type full names\n \"\"\"\n obj_name = obj_module = obj_cls_name = obj_cls_module = ''\n\n if hasattr(inst, '__name__'):\n obj_name = inst.__name__\n if hasattr(inst, '__module__'):\n obj_module = in...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1df9a53f27..3d47c00457 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ ### Fixes +- Add support for jax>0.4.0 (n-gao) + ## 3.16.2 Mar 3, 2023 - Add exception-free mode to Aim (alberttorosyan) diff --git a/aim/sdk/num_utils.py b/aim/sdk/num_utils.py in...
cleanlab__cleanlab-965
Revert #961 before release Tensorflow version temporarily has an upper bound (`tensorflow<2.16.0`) in requirements-dev.txt. scikit-learn version temporarily has an upper bound (`scikit-learn>=1.0,<1.4.0`) in setup.py This needs to be reverted before releasing v2.6.0. _Originally posted by @elisno in https://g...
[ { "content": "from setuptools import setup, find_packages\nfrom setuptools.command.egg_info import egg_info\n\n# To use a consistent encoding\nfrom codecs import open\nfrom os import path\n\n\nclass egg_info_ex(egg_info):\n \"\"\"Includes license file into `.egg-info` folder.\"\"\"\n\n def run(self):\n ...
[ { "content": "from setuptools import setup, find_packages\nfrom setuptools.command.egg_info import egg_info\n\n# To use a consistent encoding\nfrom codecs import open\nfrom os import path\n\n\nclass egg_info_ex(egg_info):\n \"\"\"Includes license file into `.egg-info` folder.\"\"\"\n\n def run(self):\n ...
diff --git a/docs/source/tutorials/audio.ipynb b/docs/source/tutorials/audio.ipynb index 53f1d4dd70..31b3ec27f8 100644 --- a/docs/source/tutorials/audio.ipynb +++ b/docs/source/tutorials/audio.ipynb @@ -490,7 +490,7 @@ "from sklearn.linear_model import LogisticRegression\n", "from sklearn.model_selection impo...
pallets__click-1081
Add newlines between options in help text In case of multi-line help messages for options the list of options ``cmd --help`` gets difficult to read. It would be great to have an option to toggle extra newlines after multi-line help messages / in general between option help messages.
[ { "content": "from contextlib import contextmanager\nfrom .termui import get_terminal_size\nfrom .parser import split_opt\nfrom ._compat import term_len\n\n\n# Can force a width. This is used by the test system\nFORCED_WIDTH = None\n\n\ndef measure_table(rows):\n widths = {}\n for row in rows:\n f...
[ { "content": "from contextlib import contextmanager\nfrom .termui import get_terminal_size\nfrom .parser import split_opt\nfrom ._compat import term_len\n\n\n# Can force a width. This is used by the test system\nFORCED_WIDTH = None\n\n\ndef measure_table(rows):\n widths = {}\n for row in rows:\n f...
diff --git a/CHANGES.rst b/CHANGES.rst index cbf72d8ae..2264c0f0b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -49,6 +49,8 @@ Unreleased - Option help text replaces newlines with spaces when rewrapping, but preserves paragraph breaks, fixing multiline formatting. :issue:`834, 1066, 1397` +- Option help ...
pretix__pretix-808
Display remaining quota of add-on products Currently if you enable "Show number of tickets left" on an event that only applies to products, not add-on products. In my opinion if there is an quota presend for add-on products it should also be displayed (if the quota is exceeded that is already displayed). Display remain...
[ { "content": "from itertools import chain\n\nfrom django import forms\nfrom django.core.exceptions import ValidationError\nfrom django.db.models import Count, Prefetch, Q\nfrom django.utils.encoding import force_text\nfrom django.utils.formats import number_format\nfrom django.utils.timezone import now\nfrom dj...
[ { "content": "from itertools import chain\n\nfrom django import forms\nfrom django.core.exceptions import ValidationError\nfrom django.db.models import Count, Prefetch, Q\nfrom django.utils.encoding import force_text\nfrom django.utils.formats import number_format\nfrom django.utils.timezone import now\nfrom dj...
diff --git a/src/pretix/presale/forms/checkout.py b/src/pretix/presale/forms/checkout.py index 198305addb9..d3c1daca903 100644 --- a/src/pretix/presale/forms/checkout.py +++ b/src/pretix/presale/forms/checkout.py @@ -152,6 +152,9 @@ def _label(self, event, item_or_variation, avail, override_price=None): n ...
learningequality__kolibri-12049
'On my own' device - Merging a user is not working ## Observed behavior Observed while integration testing the [v0.16.1-beta1 ](https://github.com/learningequality/kolibri/releases/tag/v0.16.1-beta1) release. When I try to merge a user created through 'On my own' I am getting an "Invalid URL" error in the console. No...
[ { "content": "import requests\nfrom django.contrib.auth import login\nfrom django.core.exceptions import ValidationError as DjangoValidationError\nfrom rest_framework.exceptions import ValidationError\nfrom rest_framework.response import Response\nfrom rest_framework.views import APIView\n\nfrom .utils import T...
[ { "content": "import requests\nfrom django.contrib.auth import login\nfrom django.core.exceptions import ValidationError as DjangoValidationError\nfrom rest_framework.exceptions import ValidationError\nfrom rest_framework.response import Response\nfrom rest_framework.views import APIView\n\nfrom .utils import T...
diff --git a/kolibri/plugins/user_profile/viewsets.py b/kolibri/plugins/user_profile/viewsets.py index 020ad630409..63d596538a9 100644 --- a/kolibri/plugins/user_profile/viewsets.py +++ b/kolibri/plugins/user_profile/viewsets.py @@ -53,7 +53,7 @@ def get(self, request): class RemoteFacilityUserAuthenticatedViewset(A...
GeotrekCE__Geotrek-admin-1258
Control which picture will be used as main illustration (trek, POI) - Could be a new attribute in attachment model - Could be a foreign key in trek/poi/.. i.e. `PicturesMixin`
[ { "content": "import os\nimport logging\nimport shutil\nimport datetime\n\nfrom django.conf import settings\nfrom django.db.models import Manager as DefaultManager\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.template.defaultfilters import slugify\n\nfrom e...
[ { "content": "import os\nimport logging\nimport shutil\nimport datetime\n\nfrom django.conf import settings\nfrom django.db.models import Manager as DefaultManager\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.template.defaultfilters import slugify\n\nfrom e...
diff --git a/conf/buildout.cfg b/conf/buildout.cfg index 7c7e029189..510c257247 100644 --- a/conf/buildout.cfg +++ b/conf/buildout.cfg @@ -115,7 +115,7 @@ djangorestframework = 2.4.2 # Not (yet) released on Pypi isotoma.recipe.django = git https://github.com/isotoma/isotoma.recipe.django.git rev=bb285b016c7f3ea470c65...
huggingface__accelerate-2115
Improve error message in find_batch_size() Function [find_batch_size()](https://github.com/huggingface/accelerate/blob/55747318a0f47cdfbc281e11269ba96214e4092d/src/accelerate/utils/operations.py#L224) produces unclear error when it gets empty dict `{}` as a parameter: ``` 239 elif not isinstance(data, np.ndarra...
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
diff --git a/src/accelerate/utils/operations.py b/src/accelerate/utils/operations.py index ee91b60c4eb..267f7809ef0 100644 --- a/src/accelerate/utils/operations.py +++ b/src/accelerate/utils/operations.py @@ -231,6 +231,9 @@ def find_batch_size(data): Returns: `int`: The batch size. """ + if isins...
learningequality__kolibri-4903
When starting Exams, Notifications and Attempt logs can be out of sync ### Observed behavior 1. As a learner, start an exam, but do not do any of the questions 1. After some time, a Notification will be recorded for the exam with a status of "Started" 1. However, querying the class summary API, the 'exam learner...
[ { "content": "from django.db.models import Max\nfrom django.db.models import Sum\nfrom django.shortcuts import get_object_or_404\nfrom rest_framework import serializers\nfrom rest_framework import viewsets\nfrom rest_framework.response import Response\n\nfrom kolibri.core.auth import models as auth_models\nfrom...
[ { "content": "from django.db.models import Max\nfrom django.db.models import Sum\nfrom django.shortcuts import get_object_or_404\nfrom rest_framework import serializers\nfrom rest_framework import viewsets\nfrom rest_framework.response import Response\n\nfrom kolibri.core.auth import models as auth_models\nfrom...
diff --git a/kolibri/plugins/coach/class_summary_api.py b/kolibri/plugins/coach/class_summary_api.py index 3165251f016..b2227295db1 100644 --- a/kolibri/plugins/coach/class_summary_api.py +++ b/kolibri/plugins/coach/class_summary_api.py @@ -108,9 +108,8 @@ class ExamStatusSerializer(serializers.ModelSerializer): d...
google__fuzzbench-730
Unique edges does not need two numbers after decimal place These will never be anything other than 0. They also make numbers more likely to bleed into other bars.
[ { "content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/analysis/plotting.py b/analysis/plotting.py index c00ce43ee..f20d3f416 100644 --- a/analysis/plotting.py +++ b/analysis/plotting.py @@ -371,7 +371,7 @@ def unique_coverage_ranking_plot(self, for patch in axes.patches: axes.annotate( - format(patch.get_height(), '.2f')...
deis__deis-862
applications are failing to start My fault for not properly testing #834. ``` core@deis-1 ~ $ sudo systemctl status decent-painting_v2.web.1.service ● decent-painting_v2.web.1.service - decent-painting_v2.web.1 Loaded: loaded (/run/systemd/system/decent-painting_v2.web.1.service; static) Active: inactive (dead) ...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nData models for the Deis API.\n\"\"\"\n\nfrom __future__ import unicode_literals\nimport etcd\nimport importlib\nimport logging\nimport os\nimport subprocess\n\nfrom celery.canvas import group\nfrom django.conf import settings\nfrom django.contrib.auth.models imp...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nData models for the Deis API.\n\"\"\"\n\nfrom __future__ import unicode_literals\nimport etcd\nimport importlib\nimport logging\nimport os\nimport subprocess\n\nfrom celery.canvas import group\nfrom django.conf import settings\nfrom django.contrib.auth.models imp...
diff --git a/builder/templates/builder b/builder/templates/builder index 26c26c88eb..95df25c43c 100755 --- a/builder/templates/builder +++ b/builder/templates/builder @@ -58,9 +58,7 @@ if __name__ == '__main__': # check for Procfile dockerfile = os.path.join(temp_dir, 'Dockerfile') procfile =...
jupyterhub__jupyterhub-2995
Failed build of docs in CI ``` #!/bin/bash -eo pipefail cd docs make html npm install && touch node_modules npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN...
[ { "content": "# -*- coding: utf-8 -*-\n#\nimport os\nimport shlex\nimport sys\n\n# Set paths\nsys.path.insert(0, os.path.abspath('.'))\n\n# -- General configuration ------------------------------------------------\n\n# Minimal Sphinx version\nneeds_sphinx = '1.4'\n\n# Sphinx extension modules\nextensions = [\n ...
[ { "content": "# -*- coding: utf-8 -*-\n#\nimport os\nimport shlex\nimport sys\n\n# Set paths\nsys.path.insert(0, os.path.abspath('.'))\n\n# -- General configuration ------------------------------------------------\n\n# Minimal Sphinx version\nneeds_sphinx = '1.4'\n\n# Sphinx extension modules\nextensions = [\n ...
diff --git a/docs/requirements.txt b/docs/requirements.txt index 4d3a03bdce..3096d214dd 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -3,7 +3,7 @@ -r ../requirements.txt alabaster_jupyterhub autodoc-traits -https://github.com/pandas-dev/pandas-sphinx-theme/archive/ade576c92cfe46a372b6783fb83f45c4...
python-poetry__poetry-716
poetry appears to be trying to install with the wrong version of pip <!-- Hi there! Thank you for discovering and submitting an issue. Before you submit this; let's make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill these first. ...
[ { "content": "import os\nimport shutil\nimport tempfile\n\nfrom subprocess import CalledProcessError\n\nfrom poetry.config import Config\nfrom poetry.utils.helpers import get_http_basic_auth\nfrom poetry.utils.helpers import safe_rmtree\n\n\ntry:\n import urllib.parse as urlparse\nexcept ImportError:\n im...
[ { "content": "import os\nimport shutil\nimport tempfile\n\nfrom subprocess import CalledProcessError\n\nfrom poetry.config import Config\nfrom poetry.utils.helpers import get_http_basic_auth\nfrom poetry.utils.helpers import safe_rmtree\n\n\ntry:\n import urllib.parse as urlparse\nexcept ImportError:\n im...
diff --git a/poetry/installation/pip_installer.py b/poetry/installation/pip_installer.py index b6b5947659a..6cffe289fec 100644 --- a/poetry/installation/pip_installer.py +++ b/poetry/installation/pip_installer.py @@ -109,7 +109,7 @@ def remove(self, package): raise def run(self, *args, **kwargs): #...
pyinstaller__pyinstaller-5182
Not able to create mac executable if we have used PyautoGUI in python script I am facing issue in pyinstaller if I try to make executable file from mac when I use pyautogui library in Python script(Working fine on windows). After debugging I got to know that issue is when I use pyautogui and pyinstaller together. So,...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2020, 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) 2005-2020, 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/loader/pyiboot01_bootstrap.py b/PyInstaller/loader/pyiboot01_bootstrap.py index ae3e52e524..c18abda95f 100644 --- a/PyInstaller/loader/pyiboot01_bootstrap.py +++ b/PyInstaller/loader/pyiboot01_bootstrap.py @@ -126,7 +126,7 @@ def isatty(self): def _frozen_name(name): if name: ...
open-telemetry__opentelemetry-python-3151
W3CBaggagePropagator lowercasing keys `opentelemetry.baggage.propagation.W3CBaggagePropagator` is lowercasing keys in `extract`, as far as I can tell [the W2C baggage spec](https://w3c.github.io/baggage/) does not define this behavior. I also confirmed the go implementation does not lowercase keys: https://go.dev/pl...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 28650a4b3f3..bb1666d1854 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#3128](https://github.com/open-telemetry/opentelemetry-python/pull/3128)) - Fix validation of bagg...
mozmeao__snippets-service-632
Snippets not displaying as expected for all after the A/S Router implimentation The five (5) hard-coded AS Router snippets in the Snippets NG base are not displaying as expected for me, but they are for @glogiotatidis. Clearing my browser cache didn't fix this issue. **Fx GA 61.0.1** Clicking "Preview URL" in the s...
[ { "content": "import json\nimport logging\n\nfrom distutils.util import strtobool\n\nfrom django.conf import settings\nfrom django.contrib.auth.decorators import permission_required\nfrom django.core.paginator import Paginator, EmptyPage, PageNotAnInteger\nfrom django.http import Http404, HttpResponse, HttpResp...
[ { "content": "import json\nimport logging\n\nfrom distutils.util import strtobool\n\nfrom django.conf import settings\nfrom django.contrib.auth.decorators import permission_required\nfrom django.core.paginator import Paginator, EmptyPage, PageNotAnInteger\nfrom django.http import Http404, HttpResponse, HttpResp...
diff --git a/snippets/base/views.py b/snippets/base/views.py index 1e6a2fd06..c0a137193 100644 --- a/snippets/base/views.py +++ b/snippets/base/views.py @@ -191,7 +191,7 @@ def show_snippet(request, snippet_id, uuid=False): raise Http404() template = 'base/preview.jinja' - if snippet.on_startpage...
ManageIQ__integration_tests-4304
Widgetastic_manageIQ.CheckboxSelect Finds checkboxes outside of `search_root` During testing of PR #4254 it was found that a CheckboxSelect defined as below was including checkboxes from the checkbox table in a different div than the given search_root div ID. `status = CheckboxSelect(search_root='tasks_options_div')` ...
[ { "content": "# -*- coding: utf-8 -*-\nimport re\nfrom datetime import date\nfrom jsmin import jsmin\nfrom selenium.common.exceptions import WebDriverException\nfrom math import ceil\nfrom wait_for import wait_for\n\nfrom widgetastic.exceptions import NoSuchElementException\nfrom widgetastic.log import logged\n...
[ { "content": "# -*- coding: utf-8 -*-\nimport re\nfrom datetime import date\nfrom jsmin import jsmin\nfrom selenium.common.exceptions import WebDriverException\nfrom math import ceil\nfrom wait_for import wait_for\n\nfrom widgetastic.exceptions import NoSuchElementException\nfrom widgetastic.log import logged\n...
diff --git a/widgetastic_manageiq.py b/widgetastic_manageiq.py index 21f0d93a4c..72d39b4926 100644 --- a/widgetastic_manageiq.py +++ b/widgetastic_manageiq.py @@ -446,7 +446,7 @@ def __init__(self, parent, search_root, text_access_func=None, logger=None): def checkboxes(self): """All checkboxes.""" ...
feast-dev__feast-2956
Missing alias in `PostgreSQLOfflineStore.pull_all_from_table_or_query()` ## Expected Behavior Call `pull_all_from_table_or_query()` method and retrieve wanted data from offline store. ## Current Behavior SQL error `psycopg2.errors.SyntaxError: subquery in FROM must have an alias` ## Steps to reproduce Call `pu...
[ { "content": "import contextlib\nfrom dataclasses import asdict\nfrom datetime import datetime\nfrom typing import (\n Any,\n Callable,\n ContextManager,\n Iterator,\n KeysView,\n List,\n Optional,\n Tuple,\n Union,\n)\n\nimport pandas as pd\nimport pyarrow as pa\nfrom jinja2 import B...
[ { "content": "import contextlib\nfrom dataclasses import asdict\nfrom datetime import datetime\nfrom typing import (\n Any,\n Callable,\n ContextManager,\n Iterator,\n KeysView,\n List,\n Optional,\n Tuple,\n Union,\n)\n\nimport pandas as pd\nimport pyarrow as pa\nfrom jinja2 import B...
diff --git a/sdk/python/feast/infra/offline_stores/contrib/postgres_offline_store/postgres.py b/sdk/python/feast/infra/offline_stores/contrib/postgres_offline_store/postgres.py index 415a46dde77..28944df72e0 100644 --- a/sdk/python/feast/infra/offline_stores/contrib/postgres_offline_store/postgres.py +++ b/sdk/python/f...
conan-io__conan-center-index-20764
[package] icu/73.2: Cannot create package with dat_package_file option. ### Description Cannot create icu/73.2 package with dat_package_file option: `conan create . icu/73.2@ --profile:host=default --profile:build=default -o icu:shared=True -o icu:with_extras=True -o icu:dat_package_file=c:\TEMP\icudt73l.dat` fails...
[ { "content": "import glob\nimport hashlib\nimport os\nimport shutil\n\nfrom conan import ConanFile\nfrom conan.errors import ConanInvalidConfiguration\nfrom conan.tools.apple import is_apple_os\nfrom conan.tools.build import cross_building, stdcpp_library\nfrom conan.tools.env import Environment, VirtualBuildEn...
[ { "content": "import glob\nimport hashlib\nimport os\nimport shutil\n\nfrom conan import ConanFile\nfrom conan.errors import ConanInvalidConfiguration\nfrom conan.tools.apple import is_apple_os\nfrom conan.tools.build import cross_building, stdcpp_library\nfrom conan.tools.env import Environment, VirtualBuildEn...
diff --git a/recipes/icu/all/conanfile.py b/recipes/icu/all/conanfile.py index 7c1ed7f4b7c6e..9e343976b416b 100644 --- a/recipes/icu/all/conanfile.py +++ b/recipes/icu/all/conanfile.py @@ -72,7 +72,7 @@ def configure(self): def validate(self): if self.options.dat_package_file: - if not os.pat...
OpenMined__PySyft-2276
Dim does not work with multipointer tensors **Describe the bug** Calling dim on a multipointer tensor returns a multipointer tensor where the values of the children are all ints. The return signature should be an int **To Reproduce** create a multipointer tensor and call .dim() **Expected behavior** the value ...
[ { "content": "import torch\nfrom typing import List\nfrom typing import Union\n\nimport syft as sy\nfrom syft.frameworks.torch.tensors.interpreters.abstract import AbstractTensor\nfrom syft.frameworks.torch.tensors.interpreters import AdditiveSharingTensor\nfrom syft.workers import BaseWorker\nfrom syft.framewo...
[ { "content": "import torch\nfrom typing import List\nfrom typing import Union\n\nimport syft as sy\nfrom syft.frameworks.torch.tensors.interpreters.abstract import AbstractTensor\nfrom syft.frameworks.torch.tensors.interpreters import AdditiveSharingTensor\nfrom syft.workers import BaseWorker\nfrom syft.framewo...
diff --git a/syft/frameworks/torch/tensors/interpreters/multi_pointer.py b/syft/frameworks/torch/tensors/interpreters/multi_pointer.py index 6105001307d..986b10c23ed 100644 --- a/syft/frameworks/torch/tensors/interpreters/multi_pointer.py +++ b/syft/frameworks/torch/tensors/interpreters/multi_pointer.py @@ -84,6 +84,12...