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
⌀
coala__coala-4941
linter: GlobalBear example wrong in docstring https://github.com/coala/coala/blob/master/coalib/bearlib/abstractions/Linter.py#L780 The `filename` param doesn't exist in this scope.
[ { "content": "from contextlib import contextmanager\nfrom functools import partial, partialmethod\nimport logging\nimport inspect\nfrom itertools import chain, compress\nimport re\nimport shutil\nfrom subprocess import check_call, CalledProcessError, DEVNULL\nfrom types import MappingProxyType\n\nfrom coalib.be...
[ { "content": "from contextlib import contextmanager\nfrom functools import partial, partialmethod\nimport logging\nimport inspect\nfrom itertools import chain, compress\nimport re\nimport shutil\nfrom subprocess import check_call, CalledProcessError, DEVNULL\nfrom types import MappingProxyType\n\nfrom coalib.be...
diff --git a/coalib/bearlib/abstractions/Linter.py b/coalib/bearlib/abstractions/Linter.py index 48effc7428..0ba50ec295 100644 --- a/coalib/bearlib/abstractions/Linter.py +++ b/coalib/bearlib/abstractions/Linter.py @@ -775,9 +775,8 @@ def linter(executable: str, ... output_format='regex', ... ...
nilearn__nilearn-4310
[BUG] MultiNiftiMapsMasker reports are empty ### Is there an existing issue for this? - [X] I have searched the existing issues ### Operating system - [X] Linux - [ ] Mac - [ ] Windows ### Operating system version For example one of the following: - Linux Ubuntu 22.04 ### Python version - [ ] 3.12 - [X] 3.1...
[ { "content": "\"\"\"Generate HTML reports.\"\"\"\n\nimport copy\nimport os\nimport warnings\nfrom pathlib import Path\nfrom string import Template\n\nfrom nilearn.externals import tempita\nfrom nilearn.maskers import NiftiSpheresMasker\nfrom nilearn.plotting.html_document import HTMLDocument\nfrom nilearn.repor...
[ { "content": "\"\"\"Generate HTML reports.\"\"\"\n\nimport copy\nimport os\nimport warnings\nfrom pathlib import Path\nfrom string import Template\n\nfrom nilearn.externals import tempita\nfrom nilearn.maskers import NiftiSpheresMasker\nfrom nilearn.plotting.html_document import HTMLDocument\nfrom nilearn.repor...
diff --git a/doc/changes/latest.rst b/doc/changes/latest.rst index 9288806dcf..54ccbdbe38 100644 --- a/doc/changes/latest.rst +++ b/doc/changes/latest.rst @@ -11,8 +11,12 @@ Fixes - :bdg-dark:`Code` Fix plotting of carpet plot due to a change in the coming version of matplolib (3.9.0) (:gh:`4279` by `Rémi Gau`_). - :...
liqd__a4-meinberlin-481
project list does not show text if there are no matching projects It should show something like "No projects could be found". Note that the text should work for two cases: "there are no projects" and "there are no projects matching the filters".
[ { "content": "from django import template\nfrom django.template.loader import render_to_string\n\nregister = template.Library()\n\n\n@register.assignment_tag\ndef include_template_string(template, **kwargs):\n rendered_template = render_to_string(template, kwargs)\n return str(rendered_template)\n\n\n@reg...
[ { "content": "from django import template\nfrom django.template.loader import render_to_string\n\nregister = template.Library()\n\n\n@register.assignment_tag\ndef include_template_string(template, **kwargs):\n rendered_template = render_to_string(template, kwargs)\n return str(rendered_template)\n\n\n@reg...
diff --git a/apps/contrib/templatetags/contrib_tags.py b/apps/contrib/templatetags/contrib_tags.py index 57863c943e..efa1053a98 100644 --- a/apps/contrib/templatetags/contrib_tags.py +++ b/apps/contrib/templatetags/contrib_tags.py @@ -17,3 +17,14 @@ def combined_url_parameter(request_query_dict, **kwargs): com...
Textualize__textual-4452
`ListView` initial index is off by one Setting the `initial_index` of a `ListView` seems to be off by one, introduced somewhere in v0.48.2: ```python from textual.app import App, ComposeResult from textual.widgets import Label, ListItem, ListView class ExampleApp(App): def compose(self) -> ComposeResult:...
[ { "content": "from __future__ import annotations\n\nfrom typing import ClassVar, Iterable, Optional\n\nfrom typing_extensions import TypeGuard\n\nfrom .. import _widget_navigation\nfrom ..await_remove import AwaitRemove\nfrom ..binding import Binding, BindingType\nfrom ..containers import VerticalScroll\nfrom ....
[ { "content": "from __future__ import annotations\n\nfrom typing import ClassVar, Iterable, Optional\n\nfrom typing_extensions import TypeGuard\n\nfrom .. import _widget_navigation\nfrom ..await_remove import AwaitRemove\nfrom ..binding import Binding, BindingType\nfrom ..containers import VerticalScroll\nfrom ....
diff --git a/CHANGELOG.md b/CHANGELOG.md index dfebf364e2..f802e3e208 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versionin...
bentoml__BentoML-1625
Deployment on remote Yatai server fails due to injection issue **Describe the bug** Attempting to deploy to SageMaker or Lambda fails with this error: ``` Error: sagemaker deploy failed: INTERNAL:<dependency_injector.wiring.Provide object at 0x11f748be0> has type Provide, but expected one of: bytes, unicode ```...
[ { "content": "# Copyright 2019 Atalaya Tech, 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 applicab...
[ { "content": "# Copyright 2019 Atalaya Tech, 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 applicab...
diff --git a/bentoml/configuration/__init__.py b/bentoml/configuration/__init__.py index 024a68d915c..b3b7419f7b3 100644 --- a/bentoml/configuration/__init__.py +++ b/bentoml/configuration/__init__.py @@ -146,10 +146,11 @@ def inject_dependencies(): service, ) from bentoml.yatai import yatai_service ...
graspologic-org__graspologic-968
[BUG] mug2vec assumes undirected graphs but doesn't check for this ## Expected Behavior Should run on a set of directed graphs ## Actual Behavior Breaks on this line https://github.com/microsoft/graspologic/blob/2125f27bc3f2739f4f2c784d5b700417df63c5d7/graspologic/embed/mug2vec.py#L141 since `omni_embedding` is...
[ { "content": "# Copyright (c) Microsoft Corporation and contributors.\n# Licensed under the MIT License.\n\nfrom typing import Any, Optional\n\nimport numpy as np\nfrom sklearn.base import BaseEstimator\nfrom typing_extensions import Literal\n\nfrom graspologic.types import List\n\nfrom ..types import GraphRepr...
[ { "content": "# Copyright (c) Microsoft Corporation and contributors.\n# Licensed under the MIT License.\n\nfrom typing import Any, Optional\n\nimport numpy as np\nfrom sklearn.base import BaseEstimator\nfrom typing_extensions import Literal\n\nfrom graspologic.types import List\n\nfrom ..types import GraphRepr...
diff --git a/graspologic/embed/mug2vec.py b/graspologic/embed/mug2vec.py index 2257b2f38..2bb0542ea 100644 --- a/graspologic/embed/mug2vec.py +++ b/graspologic/embed/mug2vec.py @@ -153,10 +153,11 @@ def fit( n_components=self.omnibus_components, n_elbows=self.omnibus_n_elbows, svd...
fedora-infra__bodhi-4262
A staging Bodhi links to the production Bugzilla When I want to create an update on a staging Bodhi, and I'm offered to fill out the `Bugs` form field, the form correctly queries the [partner-bugzilla](https://partner-bugzilla.redhat.com/), not the production one. I can see that the populated title is correctly retriev...
[ { "content": "# Copyright © 2007-2019 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License...
[ { "content": "# Copyright © 2007-2019 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License...
diff --git a/bodhi/server/util.py b/bodhi/server/util.py index 515aeb5e82..e294034c4e 100644 --- a/bodhi/server/util.py +++ b/bodhi/server/util.py @@ -630,9 +630,8 @@ def bug_link(context, bug, short=False): Returns: str: The requested link. """ - url = "https://bugzilla.redhat.com/show_bug.cgi?id...
facebookresearch__fairscale-210
an error importing AMP in fairscale when using a Pytorch version less than 1.6 ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> ## Command ## To Reproduce <img width="737" alt="Screenshot 2020-11-23 at 08 21 28" src="https://user-images.githubusercontent.com/12861981/99949945-c2f11300-...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n\"\"\"\n:mod:`fairscale.optim` is a package implementing various torch optimization algorithms...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n\"\"\"\n:mod:`fairscale.optim` is a package implementing various torch optimization algorithms...
diff --git a/fairscale/optim/__init__.py b/fairscale/optim/__init__.py index 26e12fbfa..9fe42fb6f 100644 --- a/fairscale/optim/__init__.py +++ b/fairscale/optim/__init__.py @@ -6,11 +6,16 @@ """ :mod:`fairscale.optim` is a package implementing various torch optimization algorithms. """ +import logging + +from .adasc...
jazzband__django-axes-327
"pip install django-axes" install package missing backends.py I installed axes today using command "pip install django-axes". The package it installs in my site-packages does not contain the backends.py file. I copied the backends.py in the latest github repo but I got the following error message when I tried to connec...
[ { "content": "__version__ = '4.1.0'\n\ndefault_app_config = 'axes.apps.AppConfig'\n\n\ndef get_version():\n return __version__\n", "path": "axes/__init__.py" }, { "content": "# -*- coding: utf-8 -*-\n#\n# Django Axes documentation build configuration file, created by\n# sphinx-quickstart on Sat J...
[ { "content": "__version__ = '4.2.0'\n\ndefault_app_config = 'axes.apps.AppConfig'\n\n\ndef get_version():\n return __version__\n", "path": "axes/__init__.py" }, { "content": "# -*- coding: utf-8 -*-\n#\n# Django Axes documentation build configuration file, created by\n# sphinx-quickstart on Sat J...
diff --git a/CHANGES.txt b/CHANGES.txt index 08bb3a57..2373fdea 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,16 @@ Changes ======= +4.2.0 (2018-04-13) +------------------ + +- Add configuration flags for client IP resolving + [aleksihakli] + +- Add AxesModelBackend authentication backend + [markdaviddoff...
mytardis__mytardis-1183
"()" is added to "Author" line every time an experiment is edited. Every time an experiment is edited, for some reason "()" is added to the end of the Author field. So if I edit 3 times three "()" will be added. Its a minor annoyance since the "()" can just be deleted. This is bug is present on current develop branch....
[ { "content": "# -*- coding: utf-8 -*-\n\n#\n# Copyright (c) 2010-2011, Monash e-Research Centre\n# (Monash University, Australia)\n# Copyright (c) 2010-2011, VeRSI Consortium\n# (Victorian eResearch Strategic Initiative, Australia)\n# All rights reserved.\n# Redistribution and use in source and binary forms...
[ { "content": "# -*- coding: utf-8 -*-\n\n#\n# Copyright (c) 2010-2011, Monash e-Research Centre\n# (Monash University, Australia)\n# Copyright (c) 2010-2011, VeRSI Consortium\n# (Victorian eResearch Strategic Initiative, Australia)\n# All rights reserved.\n# Redistribution and use in source and binary forms...
diff --git a/tardis/tardis_portal/forms.py b/tardis/tardis_portal/forms.py index 29477aa7cc..786a09f204 100644 --- a/tardis/tardis_portal/forms.py +++ b/tardis/tardis_portal/forms.py @@ -413,9 +413,11 @@ def __init__(self, data=None, files=None, auto_id='%s', prefix=None, field.widget.attrs['class'] = "spa...
kivy__python-for-android-2312
Cython is called in incompatible way, not all options are supported (especially -I) <!-- The issue tracker is a tool to address bugs NOT a support platform. Please use the Discord community or Stack Overflow for support questions, more information at https://github.com/kivy/python-for-android#support --> ### Che...
[ { "content": "from os.path import basename, dirname, exists, isdir, isfile, join, realpath, split\nimport glob\nfrom shutil import rmtree\nfrom six import with_metaclass\n\nimport hashlib\nfrom re import match\n\nimport sh\nimport shutil\nimport fnmatch\nfrom urllib.request import urlretrieve\nfrom os import li...
[ { "content": "from os.path import basename, dirname, exists, isdir, isfile, join, realpath, split\nimport glob\nfrom shutil import rmtree\nfrom six import with_metaclass\n\nimport hashlib\nfrom re import match\n\nimport sh\nimport shutil\nimport fnmatch\nfrom urllib.request import urlretrieve\nfrom os import li...
diff --git a/pythonforandroid/recipe.py b/pythonforandroid/recipe.py index 2ee3c08452..9236c96864 100644 --- a/pythonforandroid/recipe.py +++ b/pythonforandroid/recipe.py @@ -1092,7 +1092,8 @@ def cythonize_file(self, env, build_dir, filename): python_command = sh.Command("python{}".format( self.c...
nvaccess__nvda-10368
Python 2 and Python 3: in poedit, when reading mixture of the english and devanagari text in listview, not allowed screen coordinates are present <!-- Please thoroughly read NVDA's wiki article on how to fill in this template, including how to provide the required files. Issues may be closed if the required informati...
[ { "content": "#displayModel.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n#Copyright (C) 2006-2017 NV Access Limited, Babbage B.V.\r\n\r\nimport ctypes\r\nfrom ctypes import *\r\nfrom ctypes.wintypes imp...
[ { "content": "#displayModel.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n#Copyright (C) 2006-2017 NV Access Limited, Babbage B.V.\r\n\r\nimport ctypes\r\nfrom ctypes import *\r\nfrom ctypes.wintypes imp...
diff --git a/source/displayModel.py b/source/displayModel.py index f1f914667ab..344f1c42a11 100644 --- a/source/displayModel.py +++ b/source/displayModel.py @@ -200,7 +200,15 @@ def getWindowTextInRect(bindingHandle, windowHandle, left, top, right, bottom,mi characterLocations = [] cpBufIt = iter(cpBuf) for cp ...
pytorch__ignite-954
NeptuneSaver saves more checkpoints than specified by the n_saved parameter ## 🐛 Bug description The recent change to Checkpointing in PR #937 seemed to have affected the NeptuneSaver in that it saves more than the specified `n_saved` checkpoints. It is probably because it doesn't have the the `BaseSaveHandler` in...
[ { "content": "import numbers\nimport tempfile\nfrom typing import Mapping\nimport warnings\n\nimport torch\n\nimport ignite\nfrom ignite.contrib.handlers.base_logger import (\n BaseLogger,\n BaseOptimizerParamsHandler,\n BaseOutputHandler,\n BaseWeightsScalarHandler,\n global_step_from_engine,\n)...
[ { "content": "import numbers\nimport tempfile\nfrom typing import Mapping\nimport warnings\n\nimport torch\n\nimport ignite\nfrom ignite.handlers.checkpoint import BaseSaveHandler\nfrom ignite.contrib.handlers.base_logger import (\n BaseLogger,\n BaseOptimizerParamsHandler,\n BaseOutputHandler,\n Ba...
diff --git a/ignite/contrib/handlers/neptune_logger.py b/ignite/contrib/handlers/neptune_logger.py index abcda6929702..8ed8974b2fe9 100644 --- a/ignite/contrib/handlers/neptune_logger.py +++ b/ignite/contrib/handlers/neptune_logger.py @@ -6,6 +6,7 @@ import torch import ignite +from ignite.handlers.checkpoint impor...
dask__dask-471
dask.array indexing with Ellipsis (...) broken ``` >>> da.ones(4, chunks=2)[...].compute() KeyError: ('x_8', 1) ```
[ { "content": "from itertools import count, product\nfrom toolz import merge, first, accumulate\nfrom operator import getitem, add\nfrom math import ceil\nfrom ..compatibility import long\nimport numpy as np\n\n\nslice_names = ('slice-%d' % i for i in count(1))\n\n\ndef sanitize_index_elements(ind):\n \"\"\" ...
[ { "content": "from itertools import count, product\nfrom toolz import merge, first, accumulate\nfrom operator import getitem, add\nfrom math import ceil\nfrom ..compatibility import long\nimport numpy as np\n\n\nslice_names = ('slice-%d' % i for i in count(1))\n\n\ndef sanitize_index_elements(ind):\n \"\"\" ...
diff --git a/dask/array/slicing.py b/dask/array/slicing.py index 00bcdb16d05..0054bf4fdf9 100644 --- a/dask/array/slicing.py +++ b/dask/array/slicing.py @@ -98,7 +98,10 @@ def slice_array(out_name, in_name, blockdims, index): # x[:, :, :] - Punt and return old value if all(index == slice(None, None, None) f...
Lightning-AI__pytorch-lightning-2463
training_epoch_end log output gets combined with next epoch training ## 🐛 Bug So, I put 'training_epoch_end' function in my LightningModule. I have it return this dictionary `{'log':{'train_loss': tensor(0.3616, device='cuda:0'), 'epoch': 0}` I check the `run_training_epoch_end` function in the Pytorch library,...
[ { "content": "\"\"\"\nThe lightning training loop handles everything except the actual computations of your model.\n To decide what will happen in your training loop, define the `training_step` function.\n\nBelow are all the things lightning automates for you in the training loop.\n\nAccumulated gradients\n----...
[ { "content": "\"\"\"\nThe lightning training loop handles everything except the actual computations of your model.\n To decide what will happen in your training loop, define the `training_step` function.\n\nBelow are all the things lightning automates for you in the training loop.\n\nAccumulated gradients\n----...
diff --git a/pytorch_lightning/trainer/training_loop.py b/pytorch_lightning/trainer/training_loop.py index 3ee497305304a..aa41087d29e8e 100644 --- a/pytorch_lightning/trainer/training_loop.py +++ b/pytorch_lightning/trainer/training_loop.py @@ -527,6 +527,7 @@ def run_on_epoch_end_hook(self, model): def run_traini...
mathesar-foundation__mathesar-3146
Add OpenAPI Specification for /tables/ endpoint ## Problem In order to ensure the accuracy of the specs generated by drf-spectacular for /tables/ endpoint , we will generate an OpenAPI Specification specifically for this endpoint. This will allow us to verify its correctness by comparing it with the existing test case...
[ { "content": "def custom_preprocessing_hook(endpoints):\n filtered = []\n for (path, path_regex, method, callback) in endpoints:\n # Remove all but DRF API endpoints\n if path.startswith(\"/api/db/v0/databases/\") or path.startswith(\"/api/db/v0/data_files/\") or path.startswith(\"/api/db/v0...
[ { "content": "def custom_preprocessing_hook(endpoints):\n filtered = []\n for (path, path_regex, method, callback) in endpoints:\n # Remove all but DRF API endpoints\n if path.startswith(\"/api/db/v0/databases/\") or path.startswith(\"/api/db/v0/data_files/\") or path.startswith(\"/api/db/v0...
diff --git a/config/settings/openapi.py b/config/settings/openapi.py index 6ff2fa2f45..1095acbd77 100644 --- a/config/settings/openapi.py +++ b/config/settings/openapi.py @@ -2,7 +2,7 @@ def custom_preprocessing_hook(endpoints): filtered = [] for (path, path_regex, method, callback) in endpoints: # R...
mampfes__hacs_waste_collection_schedule-895
fixing abki_de recycling fix for #891
[ { "content": "import requests\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\nfrom waste_collection_schedule.service.ICS import ICS\n\nfrom datetime import datetime\nimport logging\n\nTITLE = \"Abfallwirtschaftsbetrieb Kiel (ABK)\"\nDESCRIPTION = \"Source for Abfallwirtschaftsbe...
[ { "content": "import requests\nfrom waste_collection_schedule import Collection # type: ignore[attr-defined]\nfrom waste_collection_schedule.service.ICS import ICS\n\nfrom datetime import datetime\nimport logging\n\nTITLE = \"Abfallwirtschaftsbetrieb Kiel (ABK)\"\nDESCRIPTION = \"Source for Abfallwirtschaftsbe...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/abki_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/abki_de.py index 739be1a00..79fe9708c 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/abki_de.py +...
huggingface__accelerate-115
Unscaling Wrapped optimizer making the gradient is unscaled twice Hi, thank you for the useful tool. https://github.com/huggingface/accelerate/blob/main/src/accelerate/accelerator.py#L416-L417 I'm referring to these lines of code where the wrapped optimizer is unscaled when gradient clipping. I think the inner o...
[ { "content": "# Copyright 2021 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 2021 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/accelerator.py b/src/accelerate/accelerator.py index 20274b67164..281f4e9a784 100644 --- a/src/accelerate/accelerator.py +++ b/src/accelerate/accelerator.py @@ -413,8 +413,10 @@ def unscale_gradients(self, optimizer=None): optimizer = self._optimizers elif not i...
conda__conda-build-1280
Handling double slash Would be nice if we could handle a double backslash [here](https://github.com/conda/conda-build/blob/a8dbb9fa1919e91dbc28a2166b7e06054a414484/conda_build/build.py#L262). This came up in this [context](https://github.com/conda-forge/conda-feedstock/pull/3#issuecomment-238559684). cc @janschulz
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport logging\nimport os\nimport re\nimport sys\nfrom os.path import isdir, isfile, join\n\nfrom .conda_interface import iteritems, PY3, text_type\nfrom .conda_interface import memoized, md5_file\nfrom .conda_interface import non...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport logging\nimport os\nimport re\nimport sys\nfrom os.path import isdir, isfile, join\n\nfrom .conda_interface import iteritems, PY3, text_type\nfrom .conda_interface import memoized, md5_file\nfrom .conda_interface import non...
diff --git a/conda_build/create_test.py b/conda_build/create_test.py index 27f38e9434..1d6c8ce96b 100644 --- a/conda_build/create_test.py +++ b/conda_build/create_test.py @@ -9,7 +9,7 @@ from os.path import join, exists, isdir import sys -from conda_build.utils import copy_into, get_ext_files +from conda_build.util...
meltano__meltano-7096
Add deprecation warning to `meltano ui` command Meltano UI is deprecated, and is scheduled for removal in Meltano v3. We should make that known to all who currently use the UI by printing a clear warning message when they run `meltano ui` that states that: - it is *currently* deprecated - it will be removed in Meltan...
[ { "content": "\"\"\"Meltano UI CLI.\"\"\"\n\nfrom __future__ import annotations\n\nimport logging\nimport os\nimport secrets\nimport signal\n\nimport click\n\nfrom meltano.api.workers import APIWorker, UIAvailableWorker\nfrom meltano.cli import cli\nfrom meltano.cli.params import pass_project\nfrom meltano.cli....
[ { "content": "\"\"\"Meltano UI CLI.\"\"\"\n\nfrom __future__ import annotations\n\nimport logging\nimport os\nimport secrets\nimport signal\n\nimport click\n\nfrom meltano.api.workers import APIWorker, UIAvailableWorker\nfrom meltano.cli import cli\nfrom meltano.cli.params import pass_project\nfrom meltano.cli....
diff --git a/src/meltano/cli/ui.py b/src/meltano/cli/ui.py index 760746a04c..53e5585937 100644 --- a/src/meltano/cli/ui.py +++ b/src/meltano/cli/ui.py @@ -90,6 +90,13 @@ def ui(ctx, project: Project): \b\nRead more at https://docs.meltano.com/reference/command-line-interface#ui """ ctx.obj["project"] = p...
litestar-org__litestar-3118
Bug: Description not set for UUID based path parameters in OpenAPI ### Description The value set in `Parameter(description="UUID ID")` is not used for the actual description in the OpenAPI schema if the path parameter is of type `UUID`. I did some digging and found out this is due to the presence of the following code...
[ { "content": "from __future__ import annotations\n\nfrom collections import deque\nfrom copy import copy\nfrom datetime import date, datetime, time, timedelta\nfrom decimal import Decimal\nfrom enum import Enum, EnumMeta\nfrom ipaddress import IPv4Address, IPv4Interface, IPv4Network, IPv6Address, IPv6Interface,...
[ { "content": "from __future__ import annotations\n\nfrom collections import deque\nfrom copy import copy\nfrom datetime import date, datetime, time, timedelta\nfrom decimal import Decimal\nfrom enum import Enum, EnumMeta\nfrom ipaddress import IPv4Address, IPv4Interface, IPv4Network, IPv6Address, IPv6Interface,...
diff --git a/litestar/_openapi/schema_generation/schema.py b/litestar/_openapi/schema_generation/schema.py index faba560043..891ace9c43 100644 --- a/litestar/_openapi/schema_generation/schema.py +++ b/litestar/_openapi/schema_generation/schema.py @@ -117,7 +117,7 @@ Sequence: Schema(type=OpenAPIType.ARRAY), S...
cookiecutter__cookiecutter-1168
Choice options are redundant using cookiecutter with latest click package * Cookiecutter version: 1.6.0 -- installed via `pip install` * Template project url: n/a * Python version: 3.7 * Operating System: Windows 10 ### Description: If cookiecutter.json has the following: ```json { "my_choice": ["a","b"] ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport io\nimport sys\n\nfrom setuptools import setup\n\nversion = \"1.6.0\"\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n os.system('python setup.py bdist_wheel upload')\n sys.exit()\n\nif sys.a...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport io\nimport sys\n\nfrom setuptools import setup\n\nversion = \"1.6.0\"\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n os.system('python setup.py bdist_wheel upload')\n sys.exit()\n\nif sys.a...
diff --git a/AUTHORS.rst b/AUTHORS.rst index 8b39d812d..a1afb70df 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -127,6 +127,7 @@ Contributors * Jonathan Sick (`@jonathansick`_) * Hugo (`@hugovk`_) * Min ho Kim (`@minho42`_) +* Ryan Ly (`@rly`_) .. _`@cedk`: https://github.com/cedk .. _`@johtso`: https://github.c...
DjangoGirls__djangogirls-656
Provide response for GET request to donation charge view. The donation charge view currently only responds to `POST` requests. It seems someone has managed to hit it with a `GET` request so we need to handle them. It's now throwing a 403 Fixes DJANGO-GIRLS-WEBSITE-5 Fixes #656
[ { "content": "import stripe\nfrom stripe.error import StripeError\nfrom django.conf import settings\nfrom django.shortcuts import render, redirect\nfrom django.urls import reverse\n\nfrom patreonmanager.models import FundraisingStatus\nfrom .forms import StripeForm\n\nstripe.api_key = settings.STRIPE_SECRET_KEY...
[ { "content": "import stripe\nfrom django.http import HttpResponseForbidden\nfrom stripe.error import StripeError\nfrom django.conf import settings\nfrom django.shortcuts import render, redirect\nfrom django.urls import reverse\n\nfrom patreonmanager.models import FundraisingStatus\nfrom .forms import StripeForm...
diff --git a/donations/views.py b/donations/views.py index 50ae1d65d..eb38187a7 100644 --- a/donations/views.py +++ b/donations/views.py @@ -1,4 +1,5 @@ import stripe +from django.http import HttpResponseForbidden from stripe.error import StripeError from django.conf import settings from django.shortcuts import ren...
spyder-ide__spyder-14543
DeprecationWarning: implicit conversion to integers in spyder/widgets/colors.py:78 When running the test suite, I received the following warning: ```python <<<PACKAGEDIR>>>/spyder/widgets/colors.py:78: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is d...
[ { "content": "# -*- coding: utf-8 -*-\r\n#\r\n# Copyright © Spyder Project Contributors\r\n# Licensed under the terms of the MIT License\r\n# (see spyder/__init__.py for details)\r\n\r\n# Third party imports\r\nfrom qtpy.QtCore import Property, QSize, Signal, Slot\r\nfrom qtpy.QtGui import QColor, QIcon, QPixma...
[ { "content": "# -*- coding: utf-8 -*-\r\n#\r\n# Copyright © Spyder Project Contributors\r\n# Licensed under the terms of the MIT License\r\n# (see spyder/__init__.py for details)\r\n\r\n# Third party imports\r\nfrom qtpy.QtCore import Property, QSize, Signal, Slot\r\nfrom qtpy.QtGui import QColor, QIcon, QPixma...
diff --git a/spyder/widgets/colors.py b/spyder/widgets/colors.py index cb4cbefbc57..ddf45e791ad 100644 --- a/spyder/widgets/colors.py +++ b/spyder/widgets/colors.py @@ -75,7 +75,7 @@ def __init__(self, color, parent=None): assert isinstance(color, QColor) self.lineedit = QLineEdit(color.name(), paren...
kornia__kornia-2398
AugmentationSequential not compatible with RandomResizedCrop ### Describe the bug I'm trying to use the AugmentationSequential container and include Resize or RandomResizedCrop. However this doesn't seem to work no matter what settings I use. ### Reproduction steps I'm trying to run the following code: ```pyt...
[ { "content": "import warnings\nfrom typing import Any, Dict, List, Optional, Tuple, Union, cast\n\nimport kornia.augmentation as K\nfrom kornia.augmentation.base import _AugmentationBase\nfrom kornia.constants import DataKey, Resample\nfrom kornia.core import Module, Tensor\nfrom kornia.geometry.boxes import Bo...
[ { "content": "import warnings\nfrom typing import Any, Dict, List, Optional, Tuple, Union, cast\n\nimport kornia.augmentation as K\nfrom kornia.augmentation.base import _AugmentationBase\nfrom kornia.constants import DataKey, Resample\nfrom kornia.core import Module, Tensor\nfrom kornia.geometry.boxes import Bo...
diff --git a/kornia/augmentation/container/augment.py b/kornia/augmentation/container/augment.py index 8f6cab9874..6dd8b18b14 100644 --- a/kornia/augmentation/container/augment.py +++ b/kornia/augmentation/container/augment.py @@ -159,7 +159,7 @@ def __init__( random_apply: Union[int, bool, Tuple[int, int]] = ...
aws__aws-cli-3153
Flag --no-fail-on-empty-changeset does not work I am running into a issue where the --no-fail-on-empty-changeset flag doesn't make a difference. The flag is recognised by the CLI (at least it does not say Unknown option), but it still fails with the error message FAILED. Reason: No updates are to be performed. This iss...
[ { "content": "# Copyright 2012-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0/\n...
[ { "content": "# Copyright 2012-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0/\n...
diff --git a/awscli/customizations/cloudformation/deployer.py b/awscli/customizations/cloudformation/deployer.py index 1a68b1159ca4..a9c14bd7181c 100644 --- a/awscli/customizations/cloudformation/deployer.py +++ b/awscli/customizations/cloudformation/deployer.py @@ -169,7 +169,8 @@ def wait_for_changeset(self, changese...
conan-io__conan-center-index-5573
[package] tcl/8.6.10: tcl should be dependent to CoreFoundation on mac <!-- Please don't forget to update the issue title. Include all applicable information to help us reproduce your problem. --> ### Package and Environment Details (include every applicable attribute) * Package Name/Version: **tcl/8.6.10...
[ { "content": "from conans import ConanFile, AutoToolsBuildEnvironment, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\n\n\nclass TclConan(ConanFile):\n name = \"tcl\"\n version = \"8.6.10\"\n description = \"Tcl is a very powerful but easy to learn dynamic programming language.\"...
[ { "content": "from conans import ConanFile, AutoToolsBuildEnvironment, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\n\n\nclass TclConan(ConanFile):\n name = \"tcl\"\n version = \"8.6.10\"\n description = \"Tcl is a very powerful but easy to learn dynamic programming language.\"...
diff --git a/recipes/tcl/8.6.10/conanfile.py b/recipes/tcl/8.6.10/conanfile.py index cd1ba6293feba..fde5502acd6ad 100644 --- a/recipes/tcl/8.6.10/conanfile.py +++ b/recipes/tcl/8.6.10/conanfile.py @@ -206,7 +206,7 @@ def package_info(self): self.cpp_info.names["cmake_find_package_multi"] = "TCL" if ...
aws-cloudformation__cfn-lint-1214
NoEcho password warning on a Lambda Function named AccountPassword *cfn-lint version: 0.25.1* *Description of issue.* I'm getting this warning: ``` W2501 Inappropriate map found for password on Resources/AccountPassword ``` on this Resource in my SAM template: ```yaml AccountPassword: Type: AWS...
[ { "content": "\"\"\"\nCopyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport re\nimport six\nfrom cfnlint.rules import CloudFormationLintRule\nfrom cfnlint.rules import RuleMatch\nfrom cfnlint.helpers import REGEX_DYN_REF_SSM, REGEX_DYN_REF\n\n\nc...
[ { "content": "\"\"\"\nCopyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport re\nimport six\nfrom cfnlint.rules import CloudFormationLintRule\nfrom cfnlint.rules import RuleMatch\nfrom cfnlint.helpers import REGEX_DYN_REF_SSM, REGEX_DYN_REF\n\n\nc...
diff --git a/src/cfnlint/rules/resources/properties/Password.py b/src/cfnlint/rules/resources/properties/Password.py index 3d6d04d4c3..cd89a3ebaf 100644 --- a/src/cfnlint/rules/resources/properties/Password.py +++ b/src/cfnlint/rules/resources/properties/Password.py @@ -29,7 +29,11 @@ def match(self, cfn): for...
tensorflow__tfx-635
`transform_output` not truely optional in 0.14.0 release `transform_output` not truely optional for Trainer in 0.14.0 release. Culprit code is [here](https://github.com/tensorflow/tfx/blob/r0.14/tfx/components/trainer/executor.py#L148).
[ { "content": "# Copyright 2019 Google LLC. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 2019 Google LLC. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/RELEASE.md b/RELEASE.md index 43f98e2fbe..648e852fde 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -15,6 +15,7 @@ ## Bug fixes and other changes * Bumped test dependency to kfp (Kubeflow Pipelines SDK) to be at version at least 0.1.30. +* Fixed trainer executor to correctly make `transform_output`...
DataDog__dd-trace-py-3676
1.1.0 asyncio.Lock replacement missing __aexit__ ### Which version of dd-trace-py are you using? `1.1.0` ### Which version of pip are you using? `22.0.4` _ddtrace requires pip>=18 to install one of our pre-built wheels_ ### Which version of the libraries are you using? https://gist.github.com/alan...
[ { "content": "from __future__ import absolute_import\n\nimport abc\nimport os.path\nimport sys\nimport typing\n\nimport attr\n\nfrom ddtrace.internal import compat\nfrom ddtrace.internal import nogevent\nfrom ddtrace.internal.utils import attr as attr_utils\nfrom ddtrace.internal.utils import formats\nfrom ddtr...
[ { "content": "from __future__ import absolute_import\n\nimport abc\nimport os.path\nimport sys\nimport typing\n\nimport attr\n\nfrom ddtrace.internal import compat\nfrom ddtrace.internal import nogevent\nfrom ddtrace.internal.utils import attr as attr_utils\nfrom ddtrace.internal.utils import formats\nfrom ddtr...
diff --git a/ddtrace/profiling/collector/_lock.py b/ddtrace/profiling/collector/_lock.py index 3af476cedf4..dec5abbfd60 100644 --- a/ddtrace/profiling/collector/_lock.py +++ b/ddtrace/profiling/collector/_lock.py @@ -77,6 +77,12 @@ def __init__(self, wrapped, recorder, tracer, max_nframes, capture_sampler, endp ...
kivy__kivy-1397
simplelistadapter should accept objects inheriting from list or tuple I'll found it usefull if it was possible to extend the list object that I pass to the simplelistadapter, but an exception is raised. Reproduce : ``` python from kivy.adapters.simplelistadapter import SimpleListAdapter class ExtendedList(list): ...
[ { "content": "'''\nSimpleListAdapter\n=================\n\n.. versionadded:: 1.5\n\n.. warning::\n\n This code is still experimental, and its API is subject to change in a\n future version.\n\nThe :class:`~kivy.adapters.simplelistadapter.SimpleListAdapter` is used for\nbasic lists. For example, it can be ...
[ { "content": "'''\nSimpleListAdapter\n=================\n\n.. versionadded:: 1.5\n\n.. warning::\n\n This code is still experimental, and its API is subject to change in a\n future version.\n\nThe :class:`~kivy.adapters.simplelistadapter.SimpleListAdapter` is used for\nbasic lists. For example, it can be ...
diff --git a/kivy/adapters/simplelistadapter.py b/kivy/adapters/simplelistadapter.py index b71025bb03..30a51b1727 100644 --- a/kivy/adapters/simplelistadapter.py +++ b/kivy/adapters/simplelistadapter.py @@ -44,7 +44,8 @@ class SimpleListAdapter(Adapter): def __init__(self, **kwargs): if 'data' not in kwar...
spyder-ide__spyder-13407
BrokenPipeError when trying to connect to the Pydoc server ## Description ### What steps will reproduce the problem? <!--- You can use Markdown here ---> Went into preferences-> appearance to incresae font size. changed from 9 to 10, pressed apply. ok. changed from 10 to 11, pressed apply. got this issue reporter sc...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright © 2018 André Roberge - mod_pydoc\n# Copyright © Spyder Project Contributors\n# Licensed under the terms of the MIT License\n# (see spyder/__init__.py for details)\n\n\"\"\"PyDoc patch\"\"\"\n# Standard libray\nimport builtins\nimport io\nimport inspect\nimpo...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright © 2018 André Roberge - mod_pydoc\n# Copyright © Spyder Project Contributors\n# Licensed under the terms of the MIT License\n# (see spyder/__init__.py for details)\n\n\"\"\"PyDoc patch\"\"\"\n# Standard libray\nimport builtins\nimport io\nimport inspect\nimpo...
diff --git a/spyder/plugins/onlinehelp/pydoc_patch.py b/spyder/plugins/onlinehelp/pydoc_patch.py index 3709cd5828b..ac4d6b136a6 100644 --- a/spyder/plugins/onlinehelp/pydoc_patch.py +++ b/spyder/plugins/onlinehelp/pydoc_patch.py @@ -914,6 +914,11 @@ def do_GET(self): # for example when the client stops...
kedro-org__kedro-1057
Update pyarrow requirement to support newer versions ## Description The current pyarrow requirements don't allow pyarrow > 4.0.0, which is old (current version = 6.0.0).
[ { "content": "import re\nfrom codecs import open\nfrom glob import glob\nfrom itertools import chain\nfrom os import path\n\nfrom setuptools import find_packages, setup\n\nname = \"kedro\"\nhere = path.abspath(path.dirname(__file__))\n\n\nPANDAS = \"pandas>=0.24\"\nSPARK = \"pyspark>=2.2, <4.0\"\nHDFS = \"hdfs>...
[ { "content": "import re\nfrom codecs import open\nfrom glob import glob\nfrom itertools import chain\nfrom os import path\n\nfrom setuptools import find_packages, setup\n\nname = \"kedro\"\nhere = path.abspath(path.dirname(__file__))\n\n\nPANDAS = \"pandas>=0.24\"\nSPARK = \"pyspark>=2.2, <4.0\"\nHDFS = \"hdfs>...
diff --git a/RELEASE.md b/RELEASE.md index 87d90602d9..740ba99643 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -18,7 +18,7 @@ * Added support for arbitrary backends (via importable module paths) that satisfy the `pickle` interface to `PickleDataSet`. * Added support for `sum` syntax for connecting pipeline objects. *...
sunpy__sunpy-4309
QueryResponse.show not flexible enough It would be nice if one could change the columns that will be displayed. Compare the function `display_entries` of my database package to get an idea of what I imagine (implementation https://github.com/derdon/sunpy/blob/database/sunpy/database/tables.py#L547, test at https://...
[ { "content": "import importlib\nfrom abc import ABC, abstractmethod\nfrom textwrap import dedent\nfrom collections.abc import Sequence\n\nfrom astropy.table import Table\n\nfrom sunpy.util.util import get_width\n\n__all__ = ['BaseQueryResponse', 'BaseClient']\n\n\nclass BaseQueryResponse(Sequence):\n \"\"\"\...
[ { "content": "import importlib\nfrom abc import ABC, abstractmethod\nfrom textwrap import dedent\nfrom collections.abc import Sequence\n\nfrom astropy.table import Table\n\nfrom sunpy.util.util import get_width\n\n__all__ = ['BaseQueryResponse', 'BaseClient']\n\n\nclass BaseQueryResponse(Sequence):\n \"\"\"\...
diff --git a/changelog/4309.feature.rst b/changelog/4309.feature.rst new file mode 100644 index 00000000000..7d56a7ff1c9 --- /dev/null +++ b/changelog/4309.feature.rst @@ -0,0 +1 @@ +Added a ``show()`` method for `~sunpy.net.base_client.BaseQueryResponse` which returns `~astropy.table.Table` with specified columns for ...
docker__docker-py-1711
_check_api_features should support pure dict params https://github.com/docker/docker-py/blob/2.4.2-release/docker/api/service.py#L41 Originally reported: https://github.com/moby/moby/issues/34116#issuecomment-315484688
[ { "content": "import warnings\nfrom .. import auth, errors, utils\nfrom ..types import ServiceMode\n\n\ndef _check_api_features(version, task_template, update_config):\n if update_config is not None:\n if utils.version_lt(version, '1.25'):\n if 'MaxFailureRatio' in update_config:\n ...
[ { "content": "import warnings\nfrom .. import auth, errors, utils\nfrom ..types import ServiceMode\n\n\ndef _check_api_features(version, task_template, update_config):\n if update_config is not None:\n if utils.version_lt(version, '1.25'):\n if 'MaxFailureRatio' in update_config:\n ...
diff --git a/docker/api/service.py b/docker/api/service.py index cc16cc37d..4b555a5f5 100644 --- a/docker/api/service.py +++ b/docker/api/service.py @@ -38,7 +38,7 @@ def _check_api_features(version, task_template, update_config): 'Placement.preferences is not supported in' ...
ivy-llc__ivy-24153
one_hot
[ { "content": "# global\nimport ivy\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\nfrom ivy.func_wrapper import (\n with_unsupported_dtypes,\n with_supported_dtypes,\n with_supported_device_and_dtypes,\n)\n\n\n@with_unsupported_dtypes({\"2.6.0 and below\": (...
[ { "content": "# global\nimport ivy\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\nfrom ivy.func_wrapper import (\n with_unsupported_dtypes,\n with_supported_dtypes,\n with_supported_device_and_dtypes,\n)\n\n\n@with_unsupported_dtypes({\"2.6.0 and below\": (...
diff --git a/ivy/functional/frontends/paddle/manipulation.py b/ivy/functional/frontends/paddle/manipulation.py index dd7c7e79a28f9..be7c0b1498aff 100644 --- a/ivy/functional/frontends/paddle/manipulation.py +++ b/ivy/functional/frontends/paddle/manipulation.py @@ -117,6 +117,16 @@ def index_add(x, index, axis, value, *...
openvinotoolkit__datumaro-406
custom importer/extractor not loading? Hi, I saw there's a comment about how to add a custom importer/extractor, but it seems not working. https://github.com/openvinotoolkit/datumaro/blob/d75c2343b747440cc6703adb7b9a1efc89c4509d/datumaro/cli/contexts/project/__init__.py#L116 I tried putting `myimporter.py` to...
[ { "content": "# Copyright (C) 2019-2021 Intel Corporation\n#\n# SPDX-License-Identifier: MIT\n\nfrom collections import OrderedDict\nimport logging as log\nimport os\nimport os.path as osp\nimport shutil\n\nfrom datumaro.components.config import Config\nfrom datumaro.components.config_model import (\n PROJEC...
[ { "content": "# Copyright (C) 2019-2021 Intel Corporation\n#\n# SPDX-License-Identifier: MIT\n\nfrom collections import OrderedDict\nimport logging as log\nimport os\nimport os.path as osp\nimport shutil\n\nfrom datumaro.components.config import Config\nfrom datumaro.components.config_model import (\n PROJEC...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 43ffb28512..1eb8a4c11c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 (<https://github.com/openvinotoolkit/datumaro/pull/392>) - Saving of images with Unicode paths on Wind...
opendatacube__datacube-core-436
Ingestor migration from 1.5.5 to 1.6rc1 causes product incompatibility warnings/errors ### Expected behaviour Should be able to update previously ingested product with the new datacube version. ### Actual behaviour Reported by @loicdtx on slack, ingestor aborts with this error ``` ValueError: Ingest config...
[ { "content": "from __future__ import absolute_import\n\nimport time\nimport logging\nimport click\nimport cachetools\nimport itertools\nimport sys\nfrom copy import deepcopy\nfrom pathlib import Path\nfrom pandas import to_datetime\nfrom datetime import datetime\n\nimport datacube\nfrom datacube.api.core import...
[ { "content": "from __future__ import absolute_import\n\nimport time\nimport logging\nimport click\nimport cachetools\nimport itertools\nimport sys\nfrom copy import deepcopy\nfrom pathlib import Path\nfrom pandas import to_datetime\nfrom datetime import datetime\n\nimport datacube\nfrom datacube.api.core import...
diff --git a/datacube/scripts/ingest.py b/datacube/scripts/ingest.py index b229a37e11..297d53e2e7 100644 --- a/datacube/scripts/ingest.py +++ b/datacube/scripts/ingest.py @@ -49,7 +49,7 @@ def morph_dataset_type(source_type, config, index, storage_format): output_type.definition['managed'] = True output_type....
freedomofpress__securedrop-603
Database error when trying to delete replies in the journalist interface An error is thrown deleting replies in the journalist interface. An attempt is made to remove a record for the reply from the database but replies are only recorded on the filesystem.
[ { "content": "# -*- coding: utf-8 -*-\nimport config\nimport version\nimport crypto_util\nimport store\nimport template_filters\nfrom db import db_session, Source, Submission, SourceStar, get_one_or_else\n\nimport os\nfrom datetime import datetime\nfrom flask import (Flask, request, render_template, send_file, ...
[ { "content": "# -*- coding: utf-8 -*-\nimport config\nimport version\nimport crypto_util\nimport store\nimport template_filters\nfrom db import db_session, Source, Submission, SourceStar, get_one_or_else\n\nimport os\nfrom datetime import datetime\nfrom flask import (Flask, request, render_template, send_file, ...
diff --git a/securedrop/journalist.py b/securedrop/journalist.py index 34e40b4f6c..213c7864d1 100644 --- a/securedrop/journalist.py +++ b/securedrop/journalist.py @@ -276,7 +276,8 @@ def bulk_delete(sid, docs_selected): confirm_delete = bool(request.form.get('confirm_delete', False)) if confirm_delete: ...
mkdocs__mkdocs-430
Unable to add Table of Contents to docs When I build a markdown file containing the following information with, `mkdocs build --clean`, mkdocs throws: `AttributeError: 'Markdown' object has no attribute 'toc'`. Adding `[TOC]` like this was working before, but for some reason its throwing an exception now. I'm running ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import print_function\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\n\nname = 'mkdocs'\npackage = 'mkdocs'\ndescription = 'Project documentation with Markdown.'\nurl = 'http://www.mkdocs.org'\nauthor = 'Tom Chris...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import print_function\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\nPY26 = sys.version_info[:2] == (2, 6)\n\n\nname = 'mkdocs'\npackage = 'mkdocs'\ndescription = 'Project documentation with Markdown.'\nurl = 'ht...
diff --git a/requirements.txt b/requirements.txt index 988a8058b4..ac87b96dfb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ +ghp-import>=0.4.1 Jinja2>=2.7.1 -Markdown>=2.3.1,<2.5 +Markdown>=2.5 PyYAML>=3.10 watchdog>=0.7.0 -ghp-import>=0.4.1 diff --git a/setup.py b/setup.py index 9da482a059..6...
Chia-Network__chia-blockchain-14127
Sending a CAT with a fee in the Windows CLI is not producing the same effect as sending a CAT with a fee in the Windows GUI (this might be true on other systems) CAT sent with a fee from the GUI: ![Image](https://user-images.githubusercontent.com/8990544/207227164-62993da6-bbcd-431c-a695-ff076acbeb0d.png) CAT sent wit...
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport os\nimport pathlib\nimport sys\nimport time\nfrom datetime import datetime\nfrom decimal import Decimal\nfrom typing import Any, Awaitable, Callable, Dict, List, Optional, Tuple, Union\n\nfrom chia.cmds.cmds_util import transaction_statu...
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport os\nimport pathlib\nimport sys\nimport time\nfrom datetime import datetime\nfrom decimal import Decimal\nfrom typing import Any, Awaitable, Callable, Dict, List, Optional, Tuple, Union\n\nfrom chia.cmds.cmds_util import transaction_statu...
diff --git a/chia/cmds/wallet_funcs.py b/chia/cmds/wallet_funcs.py index d35c8833a31d..7aac8307a9b0 100644 --- a/chia/cmds/wallet_funcs.py +++ b/chia/cmds/wallet_funcs.py @@ -219,7 +219,7 @@ async def send(args: dict, wallet_client: WalletRpcClient, fingerprint: int) -> print(f"Wallet id: {wallet_id} not found...
docker__docker-py-411
Ensure client version is a string. I was bitten by specifying the Docker client version as a float rather than a string. Example test case: ``` python >>> import docker >>> client = docker.Client(version=1.14) >>> client.containers() [] >>> client.pull('ubuntu') Traceback (most recent call last): File "<stdin>", li...
[ { "content": "# Copyright 2013 dotCloud inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless requir...
[ { "content": "# Copyright 2013 dotCloud inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless requir...
diff --git a/docker/client.py b/docker/client.py index de3bce666..06fa14508 100644 --- a/docker/client.py +++ b/docker/client.py @@ -50,6 +50,12 @@ def __init__(self, base_url=None, version=DEFAULT_DOCKER_API_VERSION, raise errors.TLSParameterError( 'If using TLS, the base_url argument mus...
scikit-hep__pyhf-1028
tensorflow tile inconsistent with other tensorlibs Demonstrated rather simply below: ```python >>> import pyhf >>> pyhf.tensorlib.tile(pyhf.tensorlib.astensor([1.]), (2, 1)) array([[1.], [1.]]) >>> pyhf.set_backend('jax') >>> pyhf.tensorlib.tile(pyhf.tensorlib.astensor([1.]), (2, 1)) >>> pyhf.set_b...
[ { "content": "\"\"\"Tensorflow Tensor Library Module.\"\"\"\nimport logging\nimport tensorflow as tf\nimport tensorflow_probability as tfp\n\nlog = logging.getLogger(__name__)\n\n\nclass tensorflow_backend(object):\n \"\"\"TensorFlow backend for pyhf\"\"\"\n\n __slots__ = ['name', 'precision', 'dtypemap',...
[ { "content": "\"\"\"Tensorflow Tensor Library Module.\"\"\"\nimport logging\nimport tensorflow as tf\nimport tensorflow_probability as tfp\n\nlog = logging.getLogger(__name__)\n\n\nclass tensorflow_backend(object):\n \"\"\"TensorFlow backend for pyhf\"\"\"\n\n __slots__ = ['name', 'precision', 'dtypemap',...
diff --git a/src/pyhf/tensor/tensorflow_backend.py b/src/pyhf/tensor/tensorflow_backend.py index fc14dd4c32..6725bbaed1 100644 --- a/src/pyhf/tensor/tensorflow_backend.py +++ b/src/pyhf/tensor/tensorflow_backend.py @@ -75,7 +75,14 @@ def tile(self, tensor_in, repeats): TensorFlow Tensor: The tensor with re...
Parsl__parsl-1843
Support disabling of WQ resource monitor At the moment, disabling the resource monitor requires setting `autolabel=False` and `full_debug=False`. Disabling the resource monitor should just require setting `autolabel=False` so that other debugging can remain enabled.
[ { "content": "\"\"\" WorkQueueExecutor utilizes the Work Queue distributed framework developed by the\nCooperative Computing Lab (CCL) at Notre Dame to provide a fault-tolerant,\nhigh-throughput system for delegating Parsl tasks to thousands of remote machines\n\"\"\"\n\nimport threading\nimport multiprocessing...
[ { "content": "\"\"\" WorkQueueExecutor utilizes the Work Queue distributed framework developed by the\nCooperative Computing Lab (CCL) at Notre Dame to provide a fault-tolerant,\nhigh-throughput system for delegating Parsl tasks to thousands of remote machines\n\"\"\"\n\nimport threading\nimport multiprocessing...
diff --git a/parsl/executors/workqueue/executor.py b/parsl/executors/workqueue/executor.py index 7810ed9eb0..736a3a095c 100644 --- a/parsl/executors/workqueue/executor.py +++ b/parsl/executors/workqueue/executor.py @@ -712,7 +712,7 @@ def _work_queue_submit_wait(task_queue=multiprocessing.Queue(), if wq_log_dir is...
plone__Products.CMFPlone-3315
Plone 6: rebuilding the catalog does not work Rebuilding the catalog using the ZMI does not work See: https://community.plone.org/t/upgrade-plone-6-sites-dx-site-root/14303/16?u=alert
[ { "content": "from AccessControl import ClassSecurityInfo\nfrom AccessControl.PermissionRole import rolesForPermissionOn\nfrom AccessControl.Permissions import manage_zcatalog_entries as ManageZCatalogEntries # noqa\nfrom AccessControl.Permissions import search_zcatalog as SearchZCatalog\nfrom Acquisition impo...
[ { "content": "from AccessControl import ClassSecurityInfo\nfrom AccessControl.PermissionRole import rolesForPermissionOn\nfrom AccessControl.Permissions import manage_zcatalog_entries as ManageZCatalogEntries # noqa\nfrom AccessControl.Permissions import search_zcatalog as SearchZCatalog\nfrom Acquisition impo...
diff --git a/Products/CMFPlone/CatalogTool.py b/Products/CMFPlone/CatalogTool.py index d0732672b4..17c6001ec8 100644 --- a/Products/CMFPlone/CatalogTool.py +++ b/Products/CMFPlone/CatalogTool.py @@ -465,8 +465,11 @@ def clearFindAndRebuild(self): idxs = list(self.indexes()) def indexObject(obj, path...
fossasia__open-event-server-5593
Users are given various roles when they are deleted **Describe the bug** Users are given various roles when they are deleted **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> **Screenshots** ![userdelete](https://user-images.githubusercontent.com/19900978/52442524-5...
[ { "content": "import base64\n\nfrom flask import Blueprint, request, jsonify, abort, make_response\nfrom flask_jwt import current_identity as current_user\nfrom flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\nfrom sqlalchemy.orm.exc import NoResultFound\nimport urllib.error\n\nfrom...
[ { "content": "import base64\n\nfrom flask import Blueprint, request, jsonify, abort, make_response\nfrom flask_jwt import current_identity as current_user\nfrom flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\nfrom sqlalchemy.orm.exc import NoResultFound\nimport urllib.error\n\nfrom...
diff --git a/app/api/users.py b/app/api/users.py index 90f805d96c..28977e8e25 100644 --- a/app/api/users.py +++ b/app/api/users.py @@ -208,7 +208,7 @@ def before_update_object(self, user, data, view_kwargs): else: raise ConflictException({'pointer': '/data/attributes/email'}, "Email alread...
wger-project__wger-1531
Replace jqueryUI's datepicker with one for bootstrap Replace jqueryUI's datepicker with one for bootstrap
[ { "content": "#!/usr/bin/env python\n\n# Third Party\nimport environ\n\n# wger\nfrom wger.settings_global import *\n\nenv = environ.Env(\n # set casting, default value\n DJANGO_DEBUG=(bool, False)\n)\n\n# Use 'DEBUG = True' to get more details for server errors\nDEBUG = env(\"DJANGO_DEBUG\")\n\nADMINS = (...
[ { "content": "#!/usr/bin/env python\n\n# Third Party\nimport environ\n\n# wger\nfrom wger.settings_global import *\n\nenv = environ.Env(\n # set casting, default value\n DJANGO_DEBUG=(bool, False)\n)\n\n# Use 'DEBUG = True' to get more details for server errors\nDEBUG = env(\"DJANGO_DEBUG\")\n\nADMINS = (...
diff --git a/extras/docker/development/settings.py b/extras/docker/development/settings.py index 392e70192..19dfc3276 100644 --- a/extras/docker/development/settings.py +++ b/extras/docker/development/settings.py @@ -123,7 +123,7 @@ # Django Axes # AXES_ENABLED = env.bool('AXES_ENABLED', True) -AXES_LOCKOUT_PARAMETE...
lutris__lutris-1118
Winetricks doesn't launch when game's version of wine mismatches system-wide version If the user has wine installed system-wide, has a game installed in Lutris with Runtime enabled, and that game is using a version of wine that doesn't match the system version (for example, 3.14 with staging patches when on the system...
[ { "content": "import os\nimport time\nimport shlex\nimport shutil\nimport subprocess\nfrom collections import OrderedDict\n\nfrom lutris import runtime\nfrom lutris import settings\nfrom lutris.config import LutrisConfig\nfrom lutris.util import datapath, display, system\nfrom lutris.util.log import logger\nfro...
[ { "content": "import os\nimport time\nimport shlex\nimport shutil\nimport subprocess\nfrom collections import OrderedDict\n\nfrom lutris import runtime\nfrom lutris import settings\nfrom lutris.config import LutrisConfig\nfrom lutris.util import datapath, display, system\nfrom lutris.util.log import logger\nfro...
diff --git a/lutris/runners/wine.py b/lutris/runners/wine.py index f91975c6c0..aa2aef538e 100644 --- a/lutris/runners/wine.py +++ b/lutris/runners/wine.py @@ -256,6 +256,8 @@ def wineexec(executable, args="", wine_path=None, prefix=None, arch=None, if use_lutris_runtime(wine_path=wineenv['WINE'], force_disable=dis...
nilearn__nilearn-933
Discussion for a bug fix: view_type='filled_contours' bug in plot_prob_atlas plotting function As per the latest release 1.5.0 matplotlib, taking zero in upper or lower level, simply ignores the masking values for colormap matplotlib contour fillings. As you can reproduce using this snippet: ``` python from nilearn im...
[ { "content": "\"\"\"\nThe Slicer classes.\n\nThe main purpose of these classes is to have auto adjust of axes size to\nthe data with different layout of cuts.\n\"\"\"\n\nimport collections\nimport numbers\n\nimport numpy as np\nfrom scipy import sparse, stats\n\nfrom ..image import new_img_like\nfrom .. import ...
[ { "content": "\"\"\"\nThe Slicer classes.\n\nThe main purpose of these classes is to have auto adjust of axes size to\nthe data with different layout of cuts.\n\"\"\"\n\nimport collections\nimport numbers\n\nimport numpy as np\nfrom scipy import sparse, stats\n\nfrom ..image import new_img_like\nfrom .. import ...
diff --git a/nilearn/plotting/displays.py b/nilearn/plotting/displays.py index 7e39ddad45..413a501208 100644 --- a/nilearn/plotting/displays.py +++ b/nilearn/plotting/displays.py @@ -539,8 +539,8 @@ def add_contours(self, img, filled=False, **kwargs): if filled: colors = kwargs['colors'] ...
PennyLaneAI__pennylane-5236
[BUG] Uncompatibility between "qml.density_matrix" and "default.mixed" in jax.jit ### Expected behavior Works without problems. ### Actual behavior Error. More info below. ### Additional information As you can see in the source code; tracing out qubits, the mixed device and jax can not go together. You can also se...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unle...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unle...
diff --git a/doc/releases/changelog-0.35.0.md b/doc/releases/changelog-0.35.0.md index 00cd64056de..58a915ebe46 100644 --- a/doc/releases/changelog-0.35.0.md +++ b/doc/releases/changelog-0.35.0.md @@ -644,6 +644,7 @@ * `QubitDensityMatrix` now works with jax-jit on the `default.mixed` device. [(#5203)](https://gi...
PaddlePaddle__PaddleDetection-8693
[Export]最新版的Paddle无法导出模型 ### 问题确认 Search before asking - [X] 我已经查询[历史issue](https://github.com/PaddlePaddle/PaddleDetection/issues),没有发现相似的bug。I have searched the [issues](https://github.com/PaddlePaddle/PaddleDetection/issues) and found no similar bug report. ### Bug组件 Bug Component Export ### Bug描述 Describe the ...
[ { "content": "# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/ppdet/engine/trainer.py b/ppdet/engine/trainer.py index 2a2fc766d72..ef3834e5f48 100644 --- a/ppdet/engine/trainer.py +++ b/ppdet/engine/trainer.py @@ -1123,7 +1123,7 @@ def _get_infer_cfg_and_input_spec(self, }) if prune_input: static_model = paddle.jit.to_static( - ...
netbox-community__netbox-15788
New User model has a 32-bit integer `id` field ### Deployment Type NetBox Cloud ### NetBox Version v4.0-beta1 ### Python Version 3.10 ### Steps to Reproduce 1. Upgrade a v3.7 database to v4.0 2. Inspect the `users_user` table ### Expected Behavior The `id` column of the `users_user` table should be a `bigint`...
[ { "content": "from django.db import migrations\n\n\ndef update_content_types(apps, schema_editor):\n ContentType = apps.get_model('contenttypes', 'ContentType')\n # Delete the new ContentTypes effected by the new models in the users app\n ContentType.objects.filter(app_label='users', model='user').dele...
[ { "content": "from django.db import migrations\n\n\ndef update_content_types(apps, schema_editor):\n ContentType = apps.get_model('contenttypes', 'ContentType')\n # Delete the new ContentTypes effected by the new models in the users app\n ContentType.objects.filter(app_label='users', model='user').dele...
diff --git a/netbox/users/migrations/0005_alter_user_table.py b/netbox/users/migrations/0005_alter_user_table.py index 22c6bdd4244..62cd3849d31 100644 --- a/netbox/users/migrations/0005_alter_user_table.py +++ b/netbox/users/migrations/0005_alter_user_table.py @@ -33,6 +33,9 @@ class Migration(migrations.Migration): ...
ipython__ipython-4496
firefox 25.0: notebooks report "Notebook save failed", .py script save fails, but .ipynb save succeeds Notebooks have recently reported "Notebook save failed" when I save (or it autosaves). The .ipnb is updated, but the .py script fails to save. If I don't set NotebookManager.save_script=True, things work as expected. ...
[ { "content": "\"\"\"A notebook manager that uses the local file system for storage.\n\nAuthors:\n\n* Brian Granger\n* Zach Sailer\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (C) 2011 The IPython Development Team\n#\n# Distributed under the terms of t...
[ { "content": "\"\"\"A notebook manager that uses the local file system for storage.\n\nAuthors:\n\n* Brian Granger\n* Zach Sailer\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (C) 2011 The IPython Development Team\n#\n# Distributed under the terms of t...
diff --git a/IPython/html/services/notebooks/filenbmanager.py b/IPython/html/services/notebooks/filenbmanager.py index 992e9d39c4a..3ae54ed6a52 100644 --- a/IPython/html/services/notebooks/filenbmanager.py +++ b/IPython/html/services/notebooks/filenbmanager.py @@ -251,7 +251,7 @@ def save_notebook_model(self, model, na...
jazzband__django-debug-toolbar-1547
Some String Has Truncated Before Model Save In Releases Version==3.2.3 #### I found some string was truncated in this function ```python def strip_GeomFromEWKB(param): if isinstance(param, str): return param.lstrip("ST_GeomFromEWKB('\\x").rstrip("'::bytea)") return param ``` #### Related Pul...
[ { "content": "import datetime\nimport json\nfrom threading import local\nfrom time import time\n\nfrom django.utils.encoding import force_str\n\nfrom debug_toolbar import settings as dt_settings\nfrom debug_toolbar.utils import get_stack, get_template_info, tidy_stacktrace\n\ntry:\n from psycopg2._json impor...
[ { "content": "import datetime\nimport json\nfrom threading import local\nfrom time import time\n\nfrom django.utils.encoding import force_str\n\nfrom debug_toolbar import settings as dt_settings\nfrom debug_toolbar.utils import get_stack, get_template_info, tidy_stacktrace\n\ntry:\n from psycopg2._json impor...
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 050d5b11d..c8a661cfe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -82,10 +82,11 @@ jobs: max-parallel: 5 matrix: python-version: ['3.6', '3.7', '3.8', '3.9', '3.10'] + database: [postg...
hpcaitech__ColossalAI-3898
[DOC]: A bug about usage of booster api in the document ### 📚 The doc issue [zero_with_chunk](https://colossalai.org/docs/features/zero_with_chunk) and [booster_api](https://colossalai.org/docs/basics/booster_api) both used torch.optim.Adam as the type of optimizer in the code examples implemented with booster api. H...
[ { "content": "import warnings\nfrom contextlib import contextmanager\nfrom typing import Callable, Iterator, List, Optional, Tuple, Union\n\nimport torch\nimport torch.nn as nn\nfrom torch.optim import Optimizer\nfrom torch.optim.lr_scheduler import _LRScheduler as LRScheduler\nfrom torch.utils.data import Data...
[ { "content": "import warnings\nfrom contextlib import contextmanager\nfrom typing import Callable, Iterator, List, Optional, Tuple, Union\n\nimport torch\nimport torch.nn as nn\nfrom torch.optim import Optimizer\nfrom torch.optim.lr_scheduler import _LRScheduler as LRScheduler\nfrom torch.utils.data import Data...
diff --git a/colossalai/booster/booster.py b/colossalai/booster/booster.py index 61d912157449..4a42e204982f 100644 --- a/colossalai/booster/booster.py +++ b/colossalai/booster/booster.py @@ -25,11 +25,11 @@ class Booster: Examples: ```python colossalai.launch(...) - plugin = GeminiPlugin(s...
joke2k__faker-836
Add method to generate a cell phone number to pt-BR Faker doesn't have a function to generate a cellphone to Brazilian. Steps to reproduce Create fake instance using localization "pt_BR" Call fake.msisdn() or fake.phone_number() Expected behavior It should generate a cell phone number. Actual behavior Someti...
[ { "content": "from __future__ import unicode_literals\nfrom .. import Provider as PhoneNumberProvider\n\n\nclass Provider(PhoneNumberProvider):\n formats = (\n '+55 (011) #### ####',\n '+55 (021) #### ####',\n '+55 (031) #### ####',\n '+55 (041) #### ####',\n '+55 (051) ###...
[ { "content": "from __future__ import unicode_literals\nfrom .. import Provider as PhoneNumberProvider\n\n\nclass Provider(PhoneNumberProvider):\n formats = (\n '+55 (011) #### ####',\n '+55 (021) #### ####',\n '+55 (031) #### ####',\n '+55 (041) #### ####',\n '+55 (051) ###...
diff --git a/faker/providers/phone_number/pt_BR/__init__.py b/faker/providers/phone_number/pt_BR/__init__.py index 95707ba62a..ca3efbd33e 100644 --- a/faker/providers/phone_number/pt_BR/__init__.py +++ b/faker/providers/phone_number/pt_BR/__init__.py @@ -71,6 +71,7 @@ class Provider(PhoneNumberProvider): '####...
qtile__qtile-3369
[Wayland] Please split input config for pointer and touchpad devices Last week https://github.com/qtile/qtile/pull/2548 was merged, which is awesome! There's one improvement I would like to as for though: to be able to split the configuration of `type:pointer` and `type:touchpad` devices. Currently only `type:pointer` ...
[ { "content": "# Copyright (c) 2022 Matt Colligan\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, copy, ...
[ { "content": "# Copyright (c) 2022 Matt Colligan\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, copy, ...
diff --git a/libqtile/backend/wayland/inputs.py b/libqtile/backend/wayland/inputs.py index 338d965ebb..b186749aa8 100644 --- a/libqtile/backend/wayland/inputs.py +++ b/libqtile/backend/wayland/inputs.py @@ -329,6 +329,12 @@ def configure_device(device: InputDevice, configs: dict[str, InputConfig]) -> No identifier...
azavea__raster-vision-990
Rasterization Impossible for (At Least Some) `class_id_to_filter` Arguments A setup like this: ```python class_id_filter_dict = { 0: ['==', 'default', 'Background'], 1: ['==', 'default', 'Cloud'], } label_source = SemanticSegmentationLabelSourceConfig( raster_source=Rasteriz...
[ { "content": "import copy\n\nfrom rastervision.core.data.vector_source.label_maker.filter import (\n create_filter)\n\n\nclass ClassInference():\n \"\"\"Infers missing class_ids from GeoJSON features.\"\"\"\n\n def __init__(self,\n default_class_id,\n class_config=None,\...
[ { "content": "import copy\n\nfrom rastervision.core.data.vector_source.label_maker.filter import (\n create_filter)\n\n\nclass ClassInference():\n \"\"\"Infers missing class_ids from GeoJSON features.\"\"\"\n\n def __init__(self,\n default_class_id,\n class_config=None,\...
diff --git a/rastervision_core/rastervision/core/data/vector_source/class_inference.py b/rastervision_core/rastervision/core/data/vector_source/class_inference.py index 8193b3a16..2fa04ad63 100644 --- a/rastervision_core/rastervision/core/data/vector_source/class_inference.py +++ b/rastervision_core/rastervision/core/d...
bokeh__bokeh-9604
[FEATURE] BokehJS embed_item should return a reference to the plot. Bokeh.embed.embed_item currently returns nothing. I propose it should return a reference to the plot object so I don't have to go fishing (Bokeh.index[plotData.root_id]) in Bokeh.index to do things like call resize_layout() manually. Honestly any s...
[ { "content": "import json\n\nfrom flask import Flask\nfrom jinja2 import Template\n\nfrom bokeh.embed import json_item\nfrom bokeh.plotting import figure\nfrom bokeh.resources import CDN\nfrom bokeh.sampledata.iris import flowers\n\napp = Flask(__name__)\n\npage = Template(\"\"\"\n<!DOCTYPE html>\n<html lang=\"...
[ { "content": "import json\n\nfrom flask import Flask\nfrom jinja2 import Template\n\nfrom bokeh.embed import json_item\nfrom bokeh.plotting import figure\nfrom bokeh.resources import CDN\nfrom bokeh.sampledata.iris import flowers\n\napp = Flask(__name__)\n\npage = Template(\"\"\"\n<!DOCTYPE html>\n<html lang=\"...
diff --git a/bokehjs/src/lib/api/plotting.ts b/bokehjs/src/lib/api/plotting.ts index d0a542e759a..b5c537b3149 100644 --- a/bokehjs/src/lib/api/plotting.ts +++ b/bokehjs/src/lib/api/plotting.ts @@ -10,12 +10,13 @@ import {Location} from "../core/enums" import {startsWith} from "../core/util/string" import {isEqual} fr...
qutebrowser__qutebrowser-3175
UnicodeEncodeError with os.path.isdir in NetworkManager.createRequest Report with `LC_ALL=C`: ``` 10:56:42 DEBUG init app:process_pos_args:275 Startup URL file:///tmp/people.inf.elte.hu/mersaai/helpvizsgahoz/cpp%20vizsg%ED%B3%83%ED%B2%A1ra/index.html [...] 10:56:42 ERROR misc utils:wrapper:616 Error ...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2017 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n# Copyright 2015-2017 Antoni Boucher (antoyo) <bouanto@zoho.com>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2017 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n# Copyright 2015-2017 Antoni Boucher (antoyo) <bouanto@zoho.com>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and...
diff --git a/qutebrowser/browser/webkit/network/filescheme.py b/qutebrowser/browser/webkit/network/filescheme.py index e379b673835..a8cade1db1e 100644 --- a/qutebrowser/browser/webkit/network/filescheme.py +++ b/qutebrowser/browser/webkit/network/filescheme.py @@ -127,7 +127,10 @@ def createRequest(self, _op, request, ...
pyro-ppl__pyro-2776
Upgrade to PyTorch 1.8 This documents our upgrade plan to PyTorch 1.8, which breaks `pyro.distributions` as in Pyro 1.5.1 release. PyTorch 1.8.0 release is scheduled for sometime in March 2021. ## Plan - [x] #2755 Release Pyro 1.5.2 which constrains to `torch<=1.7.2`. - [x] #2757 Upgrade dev branch to PyTorch 1....
[ { "content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nimport os\nimport sys\n\nimport sphinx_rtd_theme\n\n# import pkg_resources\n\n# -*- coding: utf-8 -*-\n#\n# Pyro documentation build configuration file, created by\n# sphinx-quickstart on Thu Jun 15 17:16:1...
[ { "content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nimport os\nimport sys\n\nimport sphinx_rtd_theme\n\n# import pkg_resources\n\n# -*- coding: utf-8 -*-\n#\n# Pyro documentation build configuration file, created by\n# sphinx-quickstart on Thu Jun 15 17:16:1...
diff --git a/.travis.yml b/.travis.yml index 0619b423eb..c1d457b830 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,9 +27,7 @@ install: - pip install https://github.com/pyro-ppl/pyro-api/archive/master.zip # Download PyTorch - pip install numpy - # TODO replace with torch_stable before release - ...
Mailu__Mailu-2404
Cant setup forward to short-named email address. ### Environment - docker-compose ### Versions ``` docker ps -a | grep mailu/admin f14b60868ade mailu/admin:1.9 "/bin/sh -c /start.py" 7 weeks ago Up 7 weeks (healthy) 80/tcp ...
[ { "content": "from wtforms import validators, fields, widgets\nfrom wtforms_components import fields as fields_\nfrom flask_babel import lazy_gettext as _\n\nimport flask_login\nimport flask_wtf\nimport re\n\nLOCALPART_REGEX = \"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*$\"\n\nclass...
[ { "content": "from wtforms import validators, fields, widgets\nfrom wtforms_components import fields as fields_\nfrom flask_babel import lazy_gettext as _\n\nimport flask_login\nimport flask_wtf\nimport re\n\nLOCALPART_REGEX = \"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*$\"\n\nclass...
diff --git a/core/admin/mailu/ui/forms.py b/core/admin/mailu/ui/forms.py index 34436a29f..683db7ae7 100644 --- a/core/admin/mailu/ui/forms.py +++ b/core/admin/mailu/ui/forms.py @@ -37,7 +37,7 @@ def __init__(self,message=_('Invalid email address.')): self.message = message def __call__(self, form, field...
fedora-infra__bodhi-3322
Ensure the masher's Koji interactions are fault-tolerant This is an expansion on https://github.com/fedora-infra/bodhi/issues/1143. The masher is a long-running task that needs to handle failures gracefully. The masher's interactions with Koji need to work despite intermittent network problems. This includes authent...
[ { "content": "# Copyright 2007-2019 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, ...
[ { "content": "# Copyright 2007-2019 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, ...
diff --git a/bodhi/server/buildsys.py b/bodhi/server/buildsys.py index 0b15d3600a..bf18889a73 100644 --- a/bodhi/server/buildsys.py +++ b/bodhi/server/buildsys.py @@ -24,6 +24,7 @@ import os from functools import wraps +import backoff import koji if typing.TYPE_CHECKING: # pragma: no cover @@ -525,6 +526,7 @@ ...
mne-tools__mne-python-9712
mne.io.read_raw_curry() cannot read the event file end with '.cdt.ceo' #### Describe the bug I have tried to use `mne.io.read_raw_curry()` to read my data created by Curry 8, but there were no annotations in the Raw object. But EEGLAB can import the data and show the annotations correctly. #### Steps to reproduce ...
[ { "content": "# -*- coding: UTF-8 -*-\n#\n# Authors: Dirk Gütlin <dirk.guetlin@stud.sbg.ac.at>\n#\n#\n# License: BSD-3-Clause\n\nimport os.path as op\nfrom collections import namedtuple\nimport re\nimport numpy as np\nfrom datetime import datetime, timezone\n\nfrom ..base import BaseRaw\nfrom ..meas_info import...
[ { "content": "# -*- coding: UTF-8 -*-\n#\n# Authors: Dirk Gütlin <dirk.guetlin@stud.sbg.ac.at>\n#\n#\n# License: BSD-3-Clause\n\nimport os.path as op\nfrom collections import namedtuple\nimport re\nimport numpy as np\nfrom datetime import datetime, timezone\n\nfrom ..base import BaseRaw\nfrom ..meas_info import...
diff --git a/doc/changes/latest.inc b/doc/changes/latest.inc index 60900fecd09..2eba16bc534 100644 --- a/doc/changes/latest.inc +++ b/doc/changes/latest.inc @@ -37,6 +37,8 @@ Current (0.24.dev0) .. |Timothy Gates| replace:: **Timothy Gates** +.. |Reza Shoorangiz| replace:: **Reza Shoorangiz** + .. |Evgeny Goldste...
oppia__oppia-7148
30 characters seems too short for misconception name **Describe the bug** When creating a misconception, I find that 30 characters is not sufficient to describe it. I was trying to create a misconception about students sometimes combining the denominators of fractions rather than finding a common denominator, and had ...
[ { "content": "# Copyright 2018 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n...
[ { "content": "# Copyright 2018 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n...
diff --git a/core/domain/skill_domain.py b/core/domain/skill_domain.py index 7759422a57d79..92cc3c6b72cc0 100644 --- a/core/domain/skill_domain.py +++ b/core/domain/skill_domain.py @@ -212,6 +212,9 @@ def validate(self): raise utils.ValidationError( 'Expected misconception name to be a str...
svthalia__concrexit-1966
Saving food event with non-member registrations crashes trying to send push notification Sentry Issue: [CONCREXIT-8P](https://sentry.io/organizations/thalia/issues/2613494929/?referrer=github_integration) ``` NotNullViolation: null value in column "user_id" of relation "pushnotifications_message_users" violates not-n...
[ { "content": "\"\"\"The models defined by the pizzas package.\"\"\"\nfrom django.core.exceptions import ValidationError, ObjectDoesNotExist\nfrom django.db import models\nfrom django.db.models import Q\nfrom django.utils import timezone\nfrom django.utils.translation import gettext_lazy as _\n\nfrom events.mode...
[ { "content": "\"\"\"The models defined by the pizzas package.\"\"\"\nfrom django.core.exceptions import ValidationError, ObjectDoesNotExist\nfrom django.db import models\nfrom django.db.models import Q\nfrom django.utils import timezone\nfrom django.utils.translation import gettext_lazy as _\n\nfrom events.mode...
diff --git a/website/pizzas/models.py b/website/pizzas/models.py index 1d3166779..0610bbb75 100644 --- a/website/pizzas/models.py +++ b/website/pizzas/models.py @@ -116,9 +116,9 @@ def save(self, **kwargs): if self.event.registration_required: end_reminder.users.set( - ...
aio-libs__aiohttp-5529
ClientTimeout values of 0 don't disable timeouts 🐞 **Describe the bug** `ClientTimeout` values of 0 and `None` are treated differently. The docs [here](https://docs.aiohttp.org/en/stable/client_quickstart.html#timeouts) state: > All fields are floats, None or 0 disables a particular timeout check and versions 3...
[ { "content": "\"\"\"Various helper functions\"\"\"\n\nimport asyncio\nimport base64\nimport binascii\nimport cgi\nimport datetime\nimport functools\nimport inspect\nimport netrc\nimport os\nimport platform\nimport re\nimport sys\nimport time\nimport warnings\nimport weakref\nfrom collections import namedtuple\n...
[ { "content": "\"\"\"Various helper functions\"\"\"\n\nimport asyncio\nimport base64\nimport binascii\nimport cgi\nimport datetime\nimport functools\nimport inspect\nimport netrc\nimport os\nimport platform\nimport re\nimport sys\nimport time\nimport warnings\nimport weakref\nfrom collections import namedtuple\n...
diff --git a/CHANGES/5527.bugfix b/CHANGES/5527.bugfix new file mode 100644 index 00000000000..4543677e7db --- /dev/null +++ b/CHANGES/5527.bugfix @@ -0,0 +1 @@ +Fix 0 being incorrectly treated as an immediate timeout. diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py index db216078ad2..04595785bd6 100644 --- a/aioh...
flask-admin__flask-admin-2019
[sqla] AdminModelConverter defaults sqlalchemy_utils EmailType to an empty string instead of None ## What's happening The converter [`convert_email`](https://github.com/flask-admin/flask-admin/blob/master/flask_admin/contrib/sqla/form.py#L273) (which converts `sqlalchemy_utils.types.email.EmailType`s), will return ...
[ { "content": "import warnings\nfrom enum import Enum, EnumMeta\n\nfrom wtforms import fields, validators\nfrom sqlalchemy import Boolean, Column\nfrom sqlalchemy.orm import ColumnProperty\n\nfrom flask_admin import form\nfrom flask_admin.model.form import (converts, ModelConverterBase,\n ...
[ { "content": "import warnings\nfrom enum import Enum, EnumMeta\n\nfrom wtforms import fields, validators\nfrom sqlalchemy import Boolean, Column\nfrom sqlalchemy.orm import ColumnProperty\n\nfrom flask_admin import form\nfrom flask_admin.model.form import (converts, ModelConverterBase,\n ...
diff --git a/flask_admin/contrib/sqla/form.py b/flask_admin/contrib/sqla/form.py index aa74d4dfc..93a4e71fc 100644 --- a/flask_admin/contrib/sqla/form.py +++ b/flask_admin/contrib/sqla/form.py @@ -345,7 +345,11 @@ def convert_arrow_time(self, field_args, **extra): return form.DateTimeField(**field_args) ...
django-wiki__django-wiki-1154
Error 500 when trying to create a new user with an existing username To reproduce : 1. create a first user 2. create a new user with same username as first one 3. IntegrityError at /_accounts/sign-up/ - (1062, "Duplicate entry '...' for key 'username'") (500 in production) Expected : An error message on creation...
[ { "content": "import random\nimport string\n\nimport django.contrib.auth.models\nfrom django import forms\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.forms import UserCreationForm\nfrom django.core.exceptions import FieldDoesNotExist\nfrom django.db.models.fields import CharField\n...
[ { "content": "import random\nimport string\n\nimport django.contrib.auth.models\nfrom django import forms\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.forms import UserCreationForm\nfrom django.core.exceptions import FieldDoesNotExist\nfrom django.db.models.fields import CharField\n...
diff --git a/docs/release_notes.rst b/docs/release_notes.rst index a6fda9833..984c4ba8d 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -13,6 +13,16 @@ Release plan - **0.7.x** Removes Django 2.1 support, adds Django 3.1, 3.2 +0.7.10 +------ + +Fixed +~~~~~ + +- Missing validation for username ...
huggingface__transformers-12449
Instantiating a model from `pipeline()` ignores `model_kwargs` parameter ## Environment info - `transformers` version: 4.8.1 - Platform: Linux-3.10.0-1160.31.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core - Python version: 3.7.9 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): not install...
[ { "content": "# flake8: noqa\n# There's no way to ignore \"F401 '...' imported but unused\" warnings in this\n# module, but to preserve other warnings. So, don't check this module at all.\n\n# coding=utf-8\n# Copyright 2018 The HuggingFace Inc. team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"L...
[ { "content": "# flake8: noqa\n# There's no way to ignore \"F401 '...' imported but unused\" warnings in this\n# module, but to preserve other warnings. So, don't check this module at all.\n\n# coding=utf-8\n# Copyright 2018 The HuggingFace Inc. team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"L...
diff --git a/src/transformers/pipelines/__init__.py b/src/transformers/pipelines/__init__.py index ea353caa5296..57cb0c6bb95f 100755 --- a/src/transformers/pipelines/__init__.py +++ b/src/transformers/pipelines/__init__.py @@ -406,7 +406,13 @@ def pipeline( # Will load the correct model if possible model_clas...
facebookresearch__hydra-2613
[Bug] The nevergrad sweeper is not properly handling quoted strings # 🐛 Bug ## Description The nevergrad sweeper does not properly handle quoted strings (this also manifests in other problems, e.g., with `null` values). ## Checklist - [X] I checked on the latest version of Hydra - [X] I created a minimal re...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport logging\nimport math\nfrom typing import (\n Any,\n Dict,\n List,\n MutableMapping,\n MutableSequence,\n Optional,\n Tuple,\n Union,\n)\n\nimport nevergrad as ng\nfrom hydra.core import utils\nfr...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport logging\nimport math\nfrom typing import (\n Any,\n Dict,\n List,\n MutableMapping,\n MutableSequence,\n Optional,\n Tuple,\n Union,\n)\n\nimport nevergrad as ng\nfrom hydra.core import utils\nfr...
diff --git a/plugins/hydra_nevergrad_sweeper/hydra_plugins/hydra_nevergrad_sweeper/_impl.py b/plugins/hydra_nevergrad_sweeper/hydra_plugins/hydra_nevergrad_sweeper/_impl.py index 70f9ba38a85..6424e4c7f95 100644 --- a/plugins/hydra_nevergrad_sweeper/hydra_plugins/hydra_nevergrad_sweeper/_impl.py +++ b/plugins/hydra_neve...
pex-tool__pex-264
Python 2: SyntaxError when installing distributions with coding hints in setup.py I think this is a regression introduced in #231, which was released in pex 1.1.7. I cannot reproduce this problem on pex 1.1.6. Affects Python 2 only. Reproduce with: ``` wget -q 'https://github.com/pantsbuild/pex/releases/download/v1...
[ { "content": "# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import absolute_import, print_function\n\nimport os\nimport subprocess\nimport sys\nimport tempfile\n\nfrom pkg_resources import Distribution, Path...
[ { "content": "# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import absolute_import, print_function\n\nimport os\nimport subprocess\nimport sys\nimport tempfile\n\nfrom pkg_resources import Distribution, Path...
diff --git a/pex/installer.py b/pex/installer.py index 80e7e0840..7e9a1529b 100644 --- a/pex/installer.py +++ b/pex/installer.py @@ -32,12 +32,12 @@ def function_wrapper(self, *args, **kw): class InstallerBase(object): - SETUP_BOOTSTRAP_HEADER = "import io, sys" + SETUP_BOOTSTRAP_HEADER = "import sys" SETUP_B...
ivy-llc__ivy-17588
remainder
[ { "content": "# global\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 handle_numpy_casting,\n handle_numpy_dtype,\n from_zero_dim_arrays_to_scalar,\n handle_numpy_out,...
[ { "content": "# global\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 handle_numpy_casting,\n handle_numpy_dtype,\n from_zero_dim_arrays_to_scalar,\n handle_numpy_out,...
diff --git a/ivy/functional/frontends/numpy/mathematical_functions/arithmetic_operations.py b/ivy/functional/frontends/numpy/mathematical_functions/arithmetic_operations.py index f660fd4c3ee41..7338770adb829 100644 --- a/ivy/functional/frontends/numpy/mathematical_functions/arithmetic_operations.py +++ b/ivy/functional...
bridgecrewio__checkov-211
Add new check: IAM Policies should not be attached to a user Attach policies only to groups or roles https://www.terraform.io/docs/providers/aws/r/iam_user_policy.html https://www.terraform.io/docs/providers/aws/r/iam_user_policy_attachment.html users: https://www.terraform.io/docs/providers/aws/r/iam_policy_atta...
[ { "content": "from checkov.common.models.enums import CheckResult, CheckCategories\nfrom checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck\n\n\nclass IAMPolicyAttachedToGroupOrRoles(BaseResourceCheck):\n def __init__(self):\n name = \"Ensure IAM policies are attached only ...
[ { "content": "from checkov.common.models.enums import CheckResult, CheckCategories\nfrom checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck\n\n\nclass IAMPolicyAttachedToGroupOrRoles(BaseResourceCheck):\n def __init__(self):\n name = \"Ensure IAM policies are attached only ...
diff --git a/checkov/terraform/checks/resource/aws/IAMPolicyAttachedToGroupOrRoles.py b/checkov/terraform/checks/resource/aws/IAMPolicyAttachedToGroupOrRoles.py index d853428ee6..cef1f82a70 100644 --- a/checkov/terraform/checks/resource/aws/IAMPolicyAttachedToGroupOrRoles.py +++ b/checkov/terraform/checks/resource/aws/...
ckan__ckan-3854
Incorrect API link on /dataset ### CKAN Version if known (or site URL) master ### Please describe the expected behaviour Text at bottom of dataset listing (search.html template) should include a working API link ### Please describe the actual behaviour A link of the form https://beta.ckan.org/packages?ver=%2F3...
[ { "content": "# encoding: utf-8\n\nimport os\nimport re\nimport inspect\nimport itertools\nimport pkgutil\n\nfrom flask import Flask, Blueprint\nfrom flask.ctx import _AppCtxGlobals\nfrom flask.sessions import SessionInterface\n\nfrom werkzeug.exceptions import HTTPException\nfrom werkzeug.routing import Rule\n...
[ { "content": "# encoding: utf-8\n\nimport os\nimport re\nimport inspect\nimport itertools\nimport pkgutil\n\nfrom flask import Flask, Blueprint\nfrom flask.ctx import _AppCtxGlobals\nfrom flask.sessions import SessionInterface\n\nfrom werkzeug.exceptions import HTTPException\nfrom werkzeug.routing import Rule\n...
diff --git a/ckan/config/middleware/flask_app.py b/ckan/config/middleware/flask_app.py index 5137b8a9cf5..c5b9c80b717 100644 --- a/ckan/config/middleware/flask_app.py +++ b/ckan/config/middleware/flask_app.py @@ -355,7 +355,9 @@ def _register_core_blueprints(app): def is_blueprint(mm): return isinstance(m...
opensearch-project__opensearch-build-1520
[Bug]: Maven sign and upload should be done inside a docker container ### Describe the bug We should be using a docker container to run jenkinsjob. https://github.com/opensearch-project/opensearch-infra/blob/main/jenkins/jobs/OpenSearch_CI/release_ci/opensearch_maven_release/Jenkinsfile#L3-L5 Also, should this ...
[ { "content": "#!/usr/bin/env python\n\n# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport argparse\nimport logging\nimport sys\nfrom pathlib import Path\n\nf...
[ { "content": "#!/usr/bin/env python\n\n# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport argparse\nimport logging\nimport sys\nfrom pathlib import Path\n\nf...
diff --git a/jenkins/data-prepper/distribution-artifacts.jenkinsfile b/jenkins/data-prepper/distribution-artifacts.jenkinsfile index 81644e54b8..6e6624634d 100644 --- a/jenkins/data-prepper/distribution-artifacts.jenkinsfile +++ b/jenkins/data-prepper/distribution-artifacts.jenkinsfile @@ -30,8 +30,8 @@ pipeline { ...
blakeblackshear__frigate-253
Clips not working after upgrading from 0.7.0 rc3 to release **Describe the bug** Clips stopped getting stored in the /clips folder after upgrading to 0.7 release, I've found a balooning folder inside frigate /cache that now has 12GB of a lot of 1-2M files in it. **Version of frigate** blakeblackshear/frigate:0.7.0...
[ { "content": "import faulthandler; faulthandler.enable()\nimport os\nimport signal\nimport sys\nimport traceback\nimport signal\nimport cv2\nimport time\nimport datetime\nimport queue\nimport yaml\nimport json\nimport threading\nimport multiprocessing as mp\nimport subprocess as sp\nimport numpy as np\nimport l...
[ { "content": "import faulthandler; faulthandler.enable()\nimport os\nimport signal\nimport sys\nimport traceback\nimport signal\nimport cv2\nimport time\nimport datetime\nimport queue\nimport yaml\nimport json\nimport threading\nimport multiprocessing as mp\nimport subprocess as sp\nimport numpy as np\nimport l...
diff --git a/detect_objects.py b/detect_objects.py index 575c2c0e5b..cfe54506c5 100644 --- a/detect_objects.py +++ b/detect_objects.py @@ -36,11 +36,11 @@ CONFIG = json.load(f) CACHE_DIR = CONFIG.get('save_clips', {}).get('cache_dir', '/cache') -CLIPS_DIR = CONFIG.get('save_clips', {}).get('clips_dir', '/ca...
geopandas__geopandas-1309
BUG: clip GeoSeries by non-overlapping mask raises error Clipping GeoSeries by non-overlapping `mask` raises error as we try to return GeoDataFrame with original columns in here: https://github.com/geopandas/geopandas/blob/7350b49688f51b281f69638c8c51a448a0115fb0/geopandas/tools/clip.py#L155 In case of GeoSeries we ...
[ { "content": "\"\"\"\ngeopandas.clip\n==============\n\nA module to clip vector data using GeoPandas.\n\n\"\"\"\nimport warnings\n\nimport numpy as np\nimport pandas as pd\n\nfrom shapely.geometry import Polygon, MultiPolygon\n\nfrom geopandas import GeoDataFrame, GeoSeries\n\n\ndef _clip_points(gdf, poly):\n ...
[ { "content": "\"\"\"\ngeopandas.clip\n==============\n\nA module to clip vector data using GeoPandas.\n\n\"\"\"\nimport warnings\n\nimport numpy as np\nimport pandas as pd\n\nfrom shapely.geometry import Polygon, MultiPolygon\n\nfrom geopandas import GeoDataFrame, GeoSeries\n\n\ndef _clip_points(gdf, poly):\n ...
diff --git a/geopandas/tools/clip.py b/geopandas/tools/clip.py index da022b8e0c..bf74e83738 100644 --- a/geopandas/tools/clip.py +++ b/geopandas/tools/clip.py @@ -152,7 +152,11 @@ def clip(gdf, mask, keep_geom_type=False): ((box_mask[0] <= box_gdf[2]) and (box_gdf[0] <= box_mask[2])) and ((box_mask[1]...
mitmproxy__mitmproxy-4532
Passphrase given in the command line is visible in the process list #### Problem Description Mitmproxy accepts cert-passphrase as one of the command-line options. If the user gives a passphrase like this while running the mitmproxy, anyone having access to a command line on that server can see the passphrase by list...
[ { "content": "from typing import Optional, Sequence\n\nfrom mitmproxy import optmanager\n\nCONF_DIR = \"~/.mitmproxy\"\nCONF_BASENAME = \"mitmproxy\"\nLISTEN_PORT = 8080\nCONTENT_VIEW_LINES_CUTOFF = 512\nKEY_SIZE = 2048\n\n\nclass Options(optmanager.OptManager):\n\n def __init__(self, **kwargs) -> None:\n ...
[ { "content": "from typing import Optional, Sequence\n\nfrom mitmproxy import optmanager\n\nCONF_DIR = \"~/.mitmproxy\"\nCONF_BASENAME = \"mitmproxy\"\nLISTEN_PORT = 8080\nCONTENT_VIEW_LINES_CUTOFF = 512\nKEY_SIZE = 2048\n\n\nclass Options(optmanager.OptManager):\n\n def __init__(self, **kwargs) -> None:\n ...
diff --git a/mitmproxy/options.py b/mitmproxy/options.py index b480045ecf..9bc8701608 100644 --- a/mitmproxy/options.py +++ b/mitmproxy/options.py @@ -47,7 +47,12 @@ def __init__(self, **kwargs) -> None: ) self.add_option( "cert_passphrase", Optional[str], None, - "Passphrase f...
searx__searx-1599
Search URL settings are not used Hi, I configured Searx tested the generated preferences URL several times now also with different browser, but it is always the same, the settings are not used. That's the URL: `https://***/searx/?preferences=eJx1VMmO2zAM_Zr6YrTocujJh6JF0QEKzKAz7VVgJNohLIseUU7ivy-VcWy5yyGOTVGP73G...
[ { "content": "from base64 import urlsafe_b64encode, urlsafe_b64decode\nfrom zlib import compress, decompress\nfrom sys import version\n\nfrom searx import settings, autocomplete\nfrom searx.languages import language_codes as languages\nfrom searx.url_utils import parse_qs, urlencode\n\nif version[0] == '3':\n ...
[ { "content": "from base64 import urlsafe_b64encode, urlsafe_b64decode\nfrom zlib import compress, decompress\nfrom sys import version\n\nfrom searx import settings, autocomplete\nfrom searx.languages import language_codes as languages\nfrom searx.url_utils import parse_qs, urlencode\n\nif version[0] == '3':\n ...
diff --git a/searx/preferences.py b/searx/preferences.py index acaa67f668..30a4252b0c 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -292,7 +292,10 @@ def get_as_url_params(self): def parse_encoded_data(self, input_data): decoded_data = decompress(urlsafe_b64decode(input_data.encode('ut...
django-cms__django-cms-3995
Fix #3942 `build_plugin_tree` should only be called once, in the end, after recursion.
[ { "content": "# -*- coding: utf-8 -*-\nfrom collections import defaultdict\nfrom itertools import groupby, starmap\nfrom operator import attrgetter, itemgetter\n\nfrom django.shortcuts import get_object_or_404\nfrom django.utils.encoding import force_text\nfrom django.utils.six.moves import filter, filterfalse\...
[ { "content": "# -*- coding: utf-8 -*-\nfrom collections import defaultdict\nfrom itertools import groupby, starmap\nfrom operator import attrgetter, itemgetter\n\nfrom django.shortcuts import get_object_or_404\nfrom django.utils.encoding import force_text\nfrom django.utils.six.moves import filter, filterfalse\...
diff --git a/cms/utils/plugins.py b/cms/utils/plugins.py index 99716e3ff89..320cd5c97df 100644 --- a/cms/utils/plugins.py +++ b/cms/utils/plugins.py @@ -71,7 +71,7 @@ def assign_plugins(request, placeholders, template, lang=None, is_fallback=False plugins = downcast_plugins(plugins, placeholders) # split the ...
coala__coala-1585
DefaultArgParser: Fix spelling mistake Change analaysis on line 30 to analysis
[ { "content": "import argparse\nimport sys\n\nfrom coalib.misc import Constants\n\n\ndef default_arg_parser(formatter_class=None):\n \"\"\"\n This function creates an ArgParser to parse command line arguments.\n\n :param formatter_class: Formatting the arg_parser output into a specific\n ...
[ { "content": "import argparse\nimport sys\n\nfrom coalib.misc import Constants\n\n\ndef default_arg_parser(formatter_class=None):\n \"\"\"\n This function creates an ArgParser to parse command line arguments.\n\n :param formatter_class: Formatting the arg_parser output into a specific\n ...
diff --git a/coalib/parsing/DefaultArgParser.py b/coalib/parsing/DefaultArgParser.py index 302552651a..e29fabe847 100644 --- a/coalib/parsing/DefaultArgParser.py +++ b/coalib/parsing/DefaultArgParser.py @@ -27,7 +27,7 @@ def default_arg_parser(formatter_class=None): prog="coala", description="coala is...
django-oscar__django-oscar-2296
checkout with multiple payment events should create PaymentEventQuantity for all payment events ## Reproduction Steps - have a checkout with multiple payment events - e.g. paying part of order with gift card and remaining value with credit card: - self.add_payment_event('Gift Card Payment', value_of_giftcard) - s...
[ { "content": "import logging\n\nfrom django.contrib.sites.models import Site\nfrom django.contrib.sites.shortcuts import get_current_site\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.core.urlresolvers import NoReverseMatch, reverse\nfrom django.http import HttpResponseRedirect\n\nfrom osc...
[ { "content": "import logging\n\nfrom django.contrib.sites.models import Site\nfrom django.contrib.sites.shortcuts import get_current_site\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.core.urlresolvers import NoReverseMatch, reverse\nfrom django.http import HttpResponseRedirect\n\nfrom osc...
diff --git a/src/oscar/apps/checkout/mixins.py b/src/oscar/apps/checkout/mixins.py index 35ed4b8ff2d..c511d70c935 100644 --- a/src/oscar/apps/checkout/mixins.py +++ b/src/oscar/apps/checkout/mixins.py @@ -219,10 +219,9 @@ def save_payment_events(self, order): for event in self._payment_events: eve...
google__clusterfuzz-2842
ClusterFuzz is not providing corpus download link for Java fuzzing Example: in this [report](https://clusterfuzz.corp.google.com/fuzzer-stats?group_by=by-day&project=//javatests/com/google/security/zatar/spiffe&fuzzer=libFuzzer_javatests-com-google-security-zatar-spiffe_SpiffeIdFuzzer) column `corpus_backup` is empty.
[ { "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/project_setup.py b/src/appengine/handlers/cron/project_setup.py index 0347ff0ee6..e8e413d29a 100644 --- a/src/appengine/handlers/cron/project_setup.py +++ b/src/appengine/handlers/cron/project_setup.py @@ -141,11 +141,11 @@ def job_name(self, project_name, config_suffix): ...
pypa__setuptools-2817
[BUG] setuptools.build_meta proceeds with no setup.py or setup.cfg ### setuptools version setuptools==58.1.0 ### Python version Python 3.9 ### OS Linux ### Additional environment information _No response_ ### Description Running `pip install .` in a directory that contains nothing but a `pypr...
[ { "content": "# -*- coding: utf-8 -*-\n__all__ = ['Distribution']\n\nimport io\nimport sys\nimport re\nimport os\nimport warnings\nimport numbers\nimport distutils.log\nimport distutils.core\nimport distutils.cmd\nimport distutils.dist\nimport distutils.command\nfrom distutils.util import strtobool\nfrom distut...
[ { "content": "# -*- coding: utf-8 -*-\n__all__ = ['Distribution']\n\nimport io\nimport sys\nimport re\nimport os\nimport warnings\nimport numbers\nimport distutils.log\nimport distutils.core\nimport distutils.cmd\nimport distutils.dist\nimport distutils.command\nfrom distutils.util import strtobool\nfrom distut...
diff --git a/setuptools/dist.py b/setuptools/dist.py index 37a10d1dcd..77e63a8c57 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -472,6 +472,19 @@ def __init__(self, attrs=None): ) self._finalize_requires() + def _validate_metadata(self): + required = {"name"} + provide...
kornia__kornia-2582
apply_colormap off-by-one error ### Describe the bug Trying to use the `kornia.color.apply_colormap()` function gives the error: ``` ╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ in <module>:20 ...
[ { "content": "from abc import ABC\nfrom typing import List, Optional\n\nimport torch\nfrom torch.nn.functional import interpolate\n\nfrom kornia.core import Module, Tensor, tensor\nfrom kornia.core.check import KORNIA_CHECK_IS_GRAY\n\nRGBColor = List[float]\n\n\ndef _list_color_to_tensor(\n colors: List[RGBC...
[ { "content": "from abc import ABC\nfrom typing import List, Optional\n\nimport torch\nfrom torch.nn.functional import interpolate\n\nfrom kornia.core import Module, Tensor, tensor\nfrom kornia.core.check import KORNIA_CHECK_IS_GRAY\n\nRGBColor = List[float]\n\n\ndef _list_color_to_tensor(\n colors: List[RGBC...
diff --git a/kornia/color/colormap.py b/kornia/color/colormap.py index 0d402eb291..676ac30cb3 100644 --- a/kornia/color/colormap.py +++ b/kornia/color/colormap.py @@ -159,7 +159,7 @@ def apply_colormap(input_tensor: Tensor, colormap: ColorMap) -> Tensor: elif len(input_tensor.shape) == 3 and input_tensor.shape[0] ...
secdev__scapy-3473
L2TP post_build is broken ### Brief description l2tp.py post_build is supposed to update the length. However, it only does this if current length is None, and the length field is initialized to 0, not None, resulting in the length never being updated. ### Scapy version 2.4.5 ### Python version 3.8 ### Operating ...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# This program is published under a GPLv2 license\n\n\"\"\"\nL2TP (Layer 2 Tunneling Protocol) for VPNs.\n\n[RFC 2661]\n\"\"\"\n\nimport struct\n\nfrom ...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# This program is published under a GPLv2 license\n\n\"\"\"\nL2TP (Layer 2 Tunneling Protocol) for VPNs.\n\n[RFC 2661]\n\"\"\"\n\nimport struct\n\nfrom ...
diff --git a/scapy/layers/l2tp.py b/scapy/layers/l2tp.py index a8e6f28a253..3480f5ebd6d 100644 --- a/scapy/layers/l2tp.py +++ b/scapy/layers/l2tp.py @@ -25,7 +25,7 @@ class L2TP(Packet): 'res06', 'sequence', 'res08', 'res09', 'length', 'control']), # noqa: E501 BitEnumField(...
docker__docker-py-848
docker.Client.logs(tail=0) returns all logs instead of no logs This is a confusing behavior. It also makes it harder to follow a container's logs (with `stream=True`) without getting at least some old log data. A work-around is required, specifying `tail=1` and then discarding the first line of output.
[ { "content": "import six\nimport warnings\n\nfrom .. import errors\nfrom .. import utils\n\n\nclass ContainerApiMixin(object):\n @utils.check_resource\n def attach(self, container, stdout=True, stderr=True,\n stream=False, logs=False):\n params = {\n 'logs': logs and 1 or 0...
[ { "content": "import six\nimport warnings\n\nfrom .. import errors\nfrom .. import utils\n\n\nclass ContainerApiMixin(object):\n @utils.check_resource\n def attach(self, container, stdout=True, stderr=True,\n stream=False, logs=False):\n params = {\n 'logs': logs and 1 or 0...
diff --git a/docker/api/container.py b/docker/api/container.py index 142bd0f68..f3f85e8d9 100644 --- a/docker/api/container.py +++ b/docker/api/container.py @@ -192,7 +192,7 @@ def logs(self, container, stdout=True, stderr=True, stream=False, 'follow': stream and 1 or 0, } ...
fedora-infra__bodhi-1282
Duplicate parameters for setting the state of request [Lukas Slebodnik filed this issue in Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=1408198): > Description of problem: > Acording to the help the state of package can be changed either by parameter --request and also as a last parameter. > > I didn't ...
[ { "content": "# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope t...
[ { "content": "# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope t...
diff --git a/bodhi/client/__init__.py b/bodhi/client/__init__.py index 7b268cbdd2..5f2aae0771 100644 --- a/bodhi/client/__init__.py +++ b/bodhi/client/__init__.py @@ -124,8 +124,6 @@ def query(**kwargs): @click.argument('state') @click.option('--user', envvar='USERNAME') @click.option('--password', prompt=True, hide...
wemake-services__wemake-python-styleguide-1226
Annotation complexity should not fail on expressions # Bug report This code: ```python def some() -> 'test expression': ... ``` Makes `flake8-annotation-complexity` to fail. We need to ignore this case silently. Related: #1170 Demo: https://asciinema.org/a/IIjIfkVKytmZ1F5c2YufMORdi Annotation com...
[ { "content": "\"\"\"\nCounts annotation complexity by getting the nesting level of nodes.\n\nSo ``List[int]`` complexity is 2\nand ``Tuple[List[Optional[str]], int]`` is 4.\n\nAdapted from: https://github.com/best-doctor/flake8-annotations-complexity\n\"\"\"\n\nimport ast\nfrom typing import Union\n\n_Annotatio...
[ { "content": "\"\"\"\nCounts annotation complexity by getting the nesting level of nodes.\n\nSo ``List[int]`` complexity is 2\nand ``Tuple[List[Optional[str]], int]`` is 4.\n\nAdapted from: https://github.com/best-doctor/flake8-annotations-complexity\n\"\"\"\n\nimport ast\nfrom typing import Union\n\n_Annotatio...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2049e1d26..3241451fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,7 @@ Semantic versioning in our case means: - Fixes that annotation complexity was not reported for `async` functions - Fixes that annotation complexity was not reported for lists - Fixes tha...
dbt-labs__dbt-core-7712
[CT-2601] [Bug] Support model v0 for "latest" ref resolution _[community Slack thread](https://getdbt.slack.com/archives/C50NEBJGG/p1684923919688609)_ > Hey, is there a reason behind using `<model>_v0` as model version makes dbt throws a `Unhandled error while executing` when compiling a model referring to the versi...
[ { "content": "import enum\nfrom dataclasses import dataclass, field\nfrom itertools import chain, islice\nfrom mashumaro.mixins.msgpack import DataClassMessagePackMixin\nfrom multiprocessing.synchronize import Lock\nfrom typing import (\n Dict,\n List,\n Optional,\n Union,\n Mapping,\n Mutable...
[ { "content": "import enum\nfrom dataclasses import dataclass, field\nfrom itertools import chain, islice\nfrom mashumaro.mixins.msgpack import DataClassMessagePackMixin\nfrom multiprocessing.synchronize import Lock\nfrom typing import (\n Dict,\n List,\n Optional,\n Union,\n Mapping,\n Mutable...
diff --git a/.changes/unreleased/Fixes-20230526-164727.yaml b/.changes/unreleased/Fixes-20230526-164727.yaml new file mode 100644 index 00000000000..20eb43b908f --- /dev/null +++ b/.changes/unreleased/Fixes-20230526-164727.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Using version 0 works when resolving single model +time:...
open-telemetry__opentelemetry-python-1187
Wrong case in configuration example [This](https://github.com/open-telemetry/opentelemetry-python/blob/master/opentelemetry-api/src/opentelemetry/configuration/__init__.py#L46) should be ``Configuration().METER_PROVIDER == "my_meter_provider"`` would be ``True``.
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/opentelemetry-api/src/opentelemetry/configuration/__init__.py b/opentelemetry-api/src/opentelemetry/configuration/__init__.py index 286bfa7ac62..bf641ca836d 100644 --- a/opentelemetry-api/src/opentelemetry/configuration/__init__.py +++ b/opentelemetry-api/src/opentelemetry/configuration/__init__.py @@ -43,...
PaddlePaddle__models-350
Deep Speech Model will core dump when using nvidia-docker The log as below. It seems that the same memory is operated by C++ and Python. ```text root@53ac34831359:/ds2/examples/librispeech# bash run_train.sh ----------- Configuration Arguments ----------- augment_conf_path: conf/augmentation.config batch_size...
[ { "content": "\"\"\"Contains the audio featurizer class.\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport numpy as np\nfrom data_utils.utility import read_manifest\nfrom data_utils.audio import AudioSegment\nfrom python_speech_featur...
[ { "content": "\"\"\"Contains the audio featurizer class.\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport numpy as np\nfrom data_utils.utility import read_manifest\nfrom data_utils.audio import AudioSegment\nfrom python_speech_featur...
diff --git a/deep_speech_2/data_utils/featurizer/audio_featurizer.py b/deep_speech_2/data_utils/featurizer/audio_featurizer.py index 12f8784a99..f594de7d97 100644 --- a/deep_speech_2/data_utils/featurizer/audio_featurizer.py +++ b/deep_speech_2/data_utils/featurizer/audio_featurizer.py @@ -141,7 +141,8 @@ def _specgram...
cookiecutter__cookiecutter-1968
pre_prompt bug when generating from current folder * Cookiecutter version: 2.4.0 * Template project url: N/A * Python version: 3.10 * Operating System: Linux ### Description: I just learned about the new pre_prompt in 2.4.0. It's exactly what I wanted. Thanks for the new feature. When I develop the templates s...
[ { "content": "\"\"\"Helper functions used throughout Cookiecutter.\"\"\"\nimport contextlib\nimport logging\nimport os\nimport shutil\nimport stat\nimport sys\nimport tempfile\nfrom pathlib import Path\n\nfrom jinja2.ext import Extension\n\nfrom cookiecutter.prompt import read_user_yes_no\n\nlogger = logging.ge...
[ { "content": "\"\"\"Helper functions used throughout Cookiecutter.\"\"\"\nimport contextlib\nimport logging\nimport os\nimport shutil\nimport stat\nimport sys\nimport tempfile\nfrom pathlib import Path\n\nfrom jinja2.ext import Extension\n\nfrom cookiecutter.prompt import read_user_yes_no\n\nlogger = logging.ge...
diff --git a/cookiecutter/utils.py b/cookiecutter/utils.py index d0019312c..0df0b5ff2 100644 --- a/cookiecutter/utils.py +++ b/cookiecutter/utils.py @@ -121,7 +121,7 @@ def __init__(self, environment): def create_tmp_repo_dir(repo_dir: "os.PathLike[str]") -> Path: """Create a temporary dir with a copy of the co...
buildbot__buildbot-3647
Mail notifier SMTP error I'm trying to get mail working in buildbot 0.9.10. It used to work in our 0.8 setup. I have the following in master.cfg: c['services'] = [] m = reporters.MailNotifier(fromaddr='buildbot@ikm189l', sendToInterestedUsers=False, extraR...
[ { "content": "#!/usr/bin/env python\n#\n# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it wil...
[ { "content": "#!/usr/bin/env python\n#\n# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it wil...
diff --git a/master/buildbot/newsfragments/twisted-17.9.0.bugfix b/master/buildbot/newsfragments/twisted-17.9.0.bugfix new file mode 100644 index 000000000000..24e055e7b2c8 --- /dev/null +++ b/master/buildbot/newsfragments/twisted-17.9.0.bugfix @@ -0,0 +1 @@ +Twisted 17.9.0 is now the minimum dependency when using Pyth...
StackStorm__st2-2489
action alias regex fails to evaluate null optional arguments when type is not string For example, something like: `update {{hostname}}( {{count}} times)?` Works for `!update myhost 2 times` Fails for `!update myhost` Error: `(invalid literal for int() with base 10: '')` So the workaround is to change the type of `cou...
[ { "content": "# Licensed to the StackStorm, Inc ('StackStorm') under one or more\n# contributor license agreements. See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, Version 2.0\n# (the \"Li...
[ { "content": "# Licensed to the StackStorm, Inc ('StackStorm') under one or more\n# contributor license agreements. See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, Version 2.0\n# (the \"Li...
diff --git a/st2common/st2common/models/utils/action_alias_utils.py b/st2common/st2common/models/utils/action_alias_utils.py index f08b8774fd..c1f8563863 100644 --- a/st2common/st2common/models/utils/action_alias_utils.py +++ b/st2common/st2common/models/utils/action_alias_utils.py @@ -82,7 +82,9 @@ def get_extracted_p...
holoviz__panel-2333
Tabulator streaming sets nan index for inital empty Dataframes Hello, i have copied this from my post at [https://discourse.holoviz.org/t/how-to-stream-to-initially-empty-tabulator/2167](https://discourse.holoviz.org/t/how-to-stream-to-initially-empty-tabulator/2167) im using the new Tabulator widget and trying t...
[ { "content": "import datetime as dt\n\nfrom types import FunctionType, MethodType\n\nimport numpy as np\nimport param\n\nfrom bokeh.models import ColumnDataSource\nfrom bokeh.models.widgets.tables import (\n DataTable, DataCube, TableColumn, GroupingInfo, RowAggregator,\n NumberEditor, NumberFormatter, Da...
[ { "content": "import datetime as dt\n\nfrom types import FunctionType, MethodType\n\nimport numpy as np\nimport param\n\nfrom bokeh.models import ColumnDataSource\nfrom bokeh.models.widgets.tables import (\n DataTable, DataCube, TableColumn, GroupingInfo, RowAggregator,\n NumberEditor, NumberFormatter, Da...
diff --git a/panel/tests/widgets/test_tables.py b/panel/tests/widgets/test_tables.py index a9a3db630c..22daced728 100644 --- a/panel/tests/widgets/test_tables.py +++ b/panel/tests/widgets/test_tables.py @@ -194,6 +194,8 @@ def test_hierarchical_index(document, comm): assert isinstance(agg2, MinAggregator) + + ...
secdev__scapy-1648
Unhandled exception in asn1 BER decoding #### Brief description asn1/ber.py throws a TypeError instead of a BER_Decoding_Error or ASN1_Error #### Environment - Scapy version: 6d41839db39b2365bfeb84170df6e626d76c7e73 - Python version: 2.7.15rc1 - Operating System: Ubuntu 18.04.1 LTS #### How to reproduce...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# Modified by Maxence Tury <maxence.tury@ssi.gouv.fr>\n# Acknowledgment: Ralph Broenink\n# This program is published under a GPLv2 license\n\n\"\"\"\nBa...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# Modified by Maxence Tury <maxence.tury@ssi.gouv.fr>\n# Acknowledgment: Ralph Broenink\n# This program is published under a GPLv2 license\n\n\"\"\"\nBa...
diff --git a/scapy/asn1/ber.py b/scapy/asn1/ber.py index 0723039d42a..d1527f4099c 100644 --- a/scapy/asn1/ber.py +++ b/scapy/asn1/ber.py @@ -225,7 +225,7 @@ def check_string(cls, s): def check_type(cls, s): cls.check_string(s) tag, remainder = BER_id_dec(s) - if cls.tag != tag: + if...
kivy__kivy-6798
incorrect platform detection on Android The platform in the module kiv.utils returns linux on Android platform. It should return Android. Tested on a M10 Lenovo tablet running Android 8.1 with pydroid3.
[ { "content": "# pylint: disable=W0611\n'''\nUtils\n=====\n\nThe Utils module provides a selection of general utility functions and classes\nthat may be useful for various applications. These include maths, color,\nalgebraic and platform functions.\n\n.. versionchanged:: 1.6.0\n The OrderedDict class has been...
[ { "content": "# pylint: disable=W0611\n'''\nUtils\n=====\n\nThe Utils module provides a selection of general utility functions and classes\nthat may be useful for various applications. These include maths, color,\nalgebraic and platform functions.\n\n.. versionchanged:: 1.6.0\n The OrderedDict class has been...
diff --git a/kivy/tests/test_utils.py b/kivy/tests/test_utils.py index 7954846da3..0e5ad781c8 100644 --- a/kivy/tests/test_utils.py +++ b/kivy/tests/test_utils.py @@ -191,10 +191,21 @@ def test_reify(self): assert first == second def test_Platform_android(self): - with patch.dict('os.environ', {'...
bridgecrewio__checkov-993
Checkov logs to stdout making the json un-parseable **Describe the bug** When you run checkov with the `-o json` and `LOG_LEVEL=WARNING` the logs are printed to `stdout` together with the json object. This way it's hard and error prone to parse the json output. **Expected behavior** At least in `-o json` (or any p...
[ { "content": "import sys\n\nimport logging\nimport os\n\n\ndef init():\n LOG_LEVEL = os.environ.get('LOG_LEVEL', 'WARNING').upper()\n logging.basicConfig(level=LOG_LEVEL)\n logFormatter = logging.Formatter(\"%(asctime)s [%(threadName)-12.12s] [%(levelname)-5.5s] %(message)s\")\n rootLogger = loggin...
[ { "content": "import sys\n\nimport logging\nimport os\n\n\ndef init():\n LOG_LEVEL = os.environ.get('LOG_LEVEL', 'WARNING').upper()\n logging.basicConfig(level=LOG_LEVEL)\n logFormatter = logging.Formatter(\"%(asctime)s [%(threadName)-12.12s] [%(levelname)-5.5s] %(message)s\")\n rootLogger = loggin...
diff --git a/checkov/logging_init.py b/checkov/logging_init.py index 5008639b21..e5262f23dc 100644 --- a/checkov/logging_init.py +++ b/checkov/logging_init.py @@ -9,7 +9,7 @@ def init(): logging.basicConfig(level=LOG_LEVEL) logFormatter = logging.Formatter("%(asctime)s [%(threadName)-12.12s] [%(levelname)-5.5...