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
conda__conda-build-1397
--output reports wrong folder for noarch packages In linux-64 packages build with the noarch flag end up in the appropriate directory, but the --output function does not return the correct path.
[ { "content": "# (c) Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\n\nfrom __future__ import absolute_import, division, print_function\n\nfrom lo...
[ { "content": "# (c) Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\n\nfrom __future__ import absolute_import, division, print_function\n\nfrom lo...
diff --git a/conda_build/render.py b/conda_build/render.py index 3a8464a28e..5b895fb6a5 100644 --- a/conda_build/render.py +++ b/conda_build/render.py @@ -69,7 +69,8 @@ def bldpkg_path(m, config): ''' Returns path to built package's tarball given its ``Metadata``. ''' - return os.path.join(config.bldp...
mozilla__pontoon-2379
Redirected to a non-existing page while tring to translate to en-US ## Description When I try to translate an application to `en-US`, I am redirected (`301`) to a non-existing page: ![image](https://user-images.githubusercontent.com/971438/144014809-d5545965-1c2f-4c55-86f6-dd2160627e02.png) → `/en-US/my-projec...
[ { "content": "from django.urls import include, path, register_converter\nfrom django.urls.converters import StringConverter\nfrom django.contrib import admin\nfrom django.contrib.auth import logout\nfrom django.views.generic import RedirectView, TemplateView\n\nfrom pontoon.teams.views import team\n\n\nclass Lo...
[ { "content": "from django.urls import include, path, register_converter\nfrom django.urls.converters import StringConverter\nfrom django.contrib import admin\nfrom django.contrib.auth import logout\nfrom django.views.generic import RedirectView, TemplateView\n\nfrom pontoon.teams.views import team\n\n\nclass Lo...
diff --git a/pontoon/urls.py b/pontoon/urls.py index ddee25a86a..64722f1f14 100644 --- a/pontoon/urls.py +++ b/pontoon/urls.py @@ -22,8 +22,6 @@ class LocaleConverter(StringConverter): server_error_view = TemplateView.as_view(template_name="500.html") urlpatterns = [ - # Legacy: Locale redirect for compatibility...
wagtail__wagtail-11766
`ModelIndexView` does not work with custom object managers <!-- Found a bug? Please fill out the sections below. 👍 --> ### Issue Summary <!-- A summary of the issue. --> In `ModelIndexView._get_snippet_types`, the `count` is done by accessing `model.objects.all().count()`. This does not work with models t...
[ { "content": "from warnings import warn\n\nfrom django.apps import apps\nfrom django.contrib.admin.utils import quote\nfrom django.core import checks\nfrom django.core.exceptions import ImproperlyConfigured, PermissionDenied\nfrom django.http import Http404\nfrom django.shortcuts import get_object_or_404, redir...
[ { "content": "from warnings import warn\n\nfrom django.apps import apps\nfrom django.contrib.admin.utils import quote\nfrom django.core import checks\nfrom django.core.exceptions import ImproperlyConfigured, PermissionDenied\nfrom django.http import Http404\nfrom django.shortcuts import get_object_or_404, redir...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 32030e54591a..529cccb12fa3 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -31,6 +31,7 @@ Changelog * Fix: Ensure the Stimulus `UnsavedController` checks for nested removal/additions of inputs so that the unsaved warning shows in more valid cases when editing a page ...
keras-team__keras-826
'float' object has no attribute 'get_value' problem. When I was trying to print the configuration of a model by "model.get_config()" or trying to save my model as a 'json' file: json_str = autoEncoder.to_json() open('temp_model.json','w').write(json_str) autoEncoder.save_weights('temp_model_weights.h5') It raise the ...
[ { "content": "from __future__ import absolute_import\nimport theano\nimport theano.tensor as T\n\nfrom .utils.theano_utils import shared_zeros, shared_scalar, floatX\nfrom .utils.generic_utils import get_from_module\nfrom six.moves import zip\n\n\ndef clip_norm(g, c, n):\n if c > 0:\n g = T.switch(T.g...
[ { "content": "from __future__ import absolute_import\nimport theano\nimport theano.tensor as T\n\nfrom .utils.theano_utils import shared_zeros, shared_scalar, floatX\nfrom .utils.generic_utils import get_from_module\nfrom six.moves import zip\n\n\ndef clip_norm(g, c, n):\n if c > 0:\n g = T.switch(T.g...
diff --git a/keras/optimizers.py b/keras/optimizers.py index 30794f612ad6..1127cdb844fa 100644 --- a/keras/optimizers.py +++ b/keras/optimizers.py @@ -82,7 +82,7 @@ def get_config(self): return {"name": self.__class__.__name__, "lr": float(self.lr.get_value()), "momentum": flo...
ansible__ansible-modules-extras-1158
rabbitmq_parameter fails when passing dynamically generated json ##### Issue Type: “Bug Report” ##### Ansible Version: ansible 1.8.2 configured module search path = None Tested also on ansible 1.9 ansible 1.9 (devel 8f06ba2bc1) last updated 2015/02/05 11:16:37 (GMT +200) lib/ansible/modules/core: (detached HEAD ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Chatham Financial <oss@chathamfinancial.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softwa...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Chatham Financial <oss@chathamfinancial.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softwa...
diff --git a/messaging/rabbitmq_parameter.py b/messaging/rabbitmq_parameter.py index 2f78bd4ee15..f2744ca2ae2 100644 --- a/messaging/rabbitmq_parameter.py +++ b/messaging/rabbitmq_parameter.py @@ -126,6 +126,8 @@ def main(): component = module.params['component'] name = module.params['name'] value = modu...
ansible__ansible-modules-extras-1530
rabbitmq_parameter fails when passing dynamically generated json ##### Issue Type: “Bug Report” ##### Ansible Version: ansible 1.8.2 configured module search path = None Tested also on ansible 1.9 ansible 1.9 (devel 8f06ba2bc1) last updated 2015/02/05 11:16:37 (GMT +200) lib/ansible/modules/core: (detached HEAD ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Chatham Financial <oss@chathamfinancial.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softwa...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Chatham Financial <oss@chathamfinancial.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softwa...
diff --git a/messaging/rabbitmq_parameter.py b/messaging/rabbitmq_parameter.py index 6be18bdce3d..60b9811a9cb 100644 --- a/messaging/rabbitmq_parameter.py +++ b/messaging/rabbitmq_parameter.py @@ -126,6 +126,8 @@ def main(): component = module.params['component'] name = module.params['name'] value = modu...
learningequality__kolibri-3151
inconsistent channel ordering ### Observed behavior In 'Recommended', channel order is based on order of import:' ![image](https://user-images.githubusercontent.com/2367265/35355527-66d57dd6-0102-11e8-82ec-74e93859d2de.png) In 'Channels', order is not the same: ![image](https://user-images.githubuserconte...
[ { "content": "from __future__ import absolute_import, print_function, unicode_literals\n\n# NB! This is not necessarily the version scheme we want, however having a good\n# tracking of releases once we start doing lots of pre-releases is essential.\nfrom .utils.version import get_version\n\n#: This may not be t...
[ { "content": "from __future__ import absolute_import, print_function, unicode_literals\n\n# NB! This is not necessarily the version scheme we want, however having a good\n# tracking of releases once we start doing lots of pre-releases is essential.\nfrom .utils.version import get_version\n\n#: This may not be t...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 1f1f4a506cd..caed67dab30 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,12 @@ Release Notes Changes are ordered reverse-chronologically. +0.6.2 +----- + + - Consistent ordering of channels in learner views + + 0.6.1 ----- diff --git a/kolibri/__init__...
aio-libs__aiohttp-5774
Fix missing references in docs **:wave: THIS IS A GOOD FIRST ISSUE** 🐞 **Describe the bug** <!-- A clear and concise description of what the bug is, on the next line. --> I noticed that the docs have some RST references to internal and external intersphinx objects. We should fix those and enable `nitpicky = True...
[ { "content": "#!/usr/bin/env python3\n#\n# aiohttp documentation build configuration file, created by\n# sphinx-quickstart on Wed Mar 5 12:35:35 2014.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi...
[ { "content": "#!/usr/bin/env python3\n#\n# aiohttp documentation build configuration file, created by\n# sphinx-quickstart on Wed Mar 5 12:35:35 2014.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi...
diff --git a/docs/conf.py b/docs/conf.py index 10ee1868a17..b7096306d42 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -351,7 +351,7 @@ # ------------------------------------------------------------------------- -# nitpicky = True +nitpicky = True nitpick_ignore = [ ("py:mod", "aiohttp"), # undocumented, n...
encode__uvicorn-1005
WebSocket headers encoding problem ### Checklist <!-- Please make sure you check all these items before submitting your bug report. --> - [x] The bug is reproducible against the latest release and/or `master`. - [x] There are no similar issues or pull requests to fix it yet. ### Describe the bug <!-- A cle...
[ { "content": "import asyncio\nimport http\nimport logging\nfrom urllib.parse import unquote\n\nimport websockets\nfrom websockets.extensions.permessage_deflate import ServerPerMessageDeflateFactory\n\nfrom uvicorn.protocols.utils import get_local_addr, get_remote_addr, is_ssl\n\n\nclass Server:\n closing = F...
[ { "content": "import asyncio\nimport http\nimport logging\nfrom urllib.parse import unquote\n\nimport websockets\nfrom websockets.extensions.permessage_deflate import ServerPerMessageDeflateFactory\n\nfrom uvicorn.protocols.utils import get_local_addr, get_remote_addr, is_ssl\n\n\nclass Server:\n closing = F...
diff --git a/tests/protocols/test_websocket.py b/tests/protocols/test_websocket.py index 5f6a617cd..c012680e7 100644 --- a/tests/protocols/test_websocket.py +++ b/tests/protocols/test_websocket.py @@ -139,10 +139,13 @@ async def websocket_connect(self, message): headers = self.scope.get("headers") ...
open-mmlab__mmpretrain-286
[Feature Request] CPU Testing Since CPU training is already supported in PR #219, what about also adding the feature of CPU testing. Besides, it seems there are still some problems with the CPU training feature @wangruohui : When we set `--device CPU`, the expected behavior is using CPU for training, no matter if...
[ { "content": "import random\nimport warnings\n\nimport numpy as np\nimport torch\nfrom mmcv.parallel import MMDataParallel, MMDistributedDataParallel\nfrom mmcv.runner import DistSamplerSeedHook, build_optimizer, build_runner\n\nfrom mmcls.core import DistOptimizerHook\nfrom mmcls.datasets import build_dataload...
[ { "content": "import random\nimport warnings\n\nimport numpy as np\nimport torch\nfrom mmcv.parallel import MMDataParallel, MMDistributedDataParallel\nfrom mmcv.runner import DistSamplerSeedHook, build_optimizer, build_runner\n\nfrom mmcls.core import DistOptimizerHook\nfrom mmcls.datasets import build_dataload...
diff --git a/mmcls/apis/train.py b/mmcls/apis/train.py index 94c978978e2..42b9a5b4e1d 100644 --- a/mmcls/apis/train.py +++ b/mmcls/apis/train.py @@ -87,7 +87,7 @@ def train_model(model, model = MMDataParallel( model.cuda(cfg.gpu_ids[0]), device_ids=cfg.gpu_ids) elif device == 'cpu...
napari__napari-3963
Future warning when adding points ## 🐛 Bug A Future warning is emitted from pandas when adding points via the GUI. ```python <conda env>/site-packages/napari/layers/utils/layer_utils.py:821: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat...
[ { "content": "from __future__ import annotations\n\nimport warnings\nfrom typing import Any, Dict, List, Optional, Sequence, Tuple, Union\n\nimport dask\nimport numpy as np\nimport pandas as pd\n\nfrom ...utils.action_manager import action_manager\nfrom ...utils.events.custom_types import Array\nfrom ...utils.t...
[ { "content": "from __future__ import annotations\n\nimport warnings\nfrom typing import Any, Dict, List, Optional, Sequence, Tuple, Union\n\nimport dask\nimport numpy as np\nimport pandas as pd\n\nfrom ...utils.action_manager import action_manager\nfrom ...utils.events.custom_types import Array\nfrom ...utils.t...
diff --git a/napari/layers/utils/layer_utils.py b/napari/layers/utils/layer_utils.py index 1e7c1cee20d..26fa377f452 100644 --- a/napari/layers/utils/layer_utils.py +++ b/napari/layers/utils/layer_utils.py @@ -818,7 +818,7 @@ def append(self, to_append: pd.DataFrame) -> None: to_append : pd.DataFrame ...
beetbox__beets-1181
ftintitle: does not gracefully handle duplicate artist name Using ftintitle on one of my tracks, it seemed to get tripped up and not be able to fix it. I've tracked it down to being a problem with the fact that the Album Artist's name is in the Artist field twice. ``` Artist: The Roots feat. Talib Kweli / The Roots Al...
[ { "content": "# This file is part of beets.\n# Copyright 2013, Verrus, <github.com/Verrus/beets-plugin-featInTitle>\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without res...
[ { "content": "# This file is part of beets.\n# Copyright 2013, Verrus, <github.com/Verrus/beets-plugin-featInTitle>\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without res...
diff --git a/beetsplug/ftintitle.py b/beetsplug/ftintitle.py index 75134ae9c9..2e93ad36f1 100644 --- a/beetsplug/ftintitle.py +++ b/beetsplug/ftintitle.py @@ -83,7 +83,7 @@ def ft_in_title(item, drop_feat): # Look for the album artist in the artist field. If it's not # present, give up. - alb...
NVIDIA-Merlin__NVTabular-1312
[BUG] Getting error when loading the TF4Rec PyTorch model to the TIS **Describe the bug** I am getting the following error when I load a trained TF4Rec PyTorch to TIS: ``` | t4r_pytorch_pt | 1 | UNAVAILABLE: Internal: ImportError: cannot import name '_convert_string2pytorch_dty | | | ...
[ { "content": "# Copyright (c) 2021, NVIDIA CORPORATION.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless require...
[ { "content": "# Copyright (c) 2021, NVIDIA CORPORATION.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless require...
diff --git a/nvtabular/inference/triton/__init__.py b/nvtabular/inference/triton/__init__.py index 99f2d3c2843..b5e6b1d6b68 100644 --- a/nvtabular/inference/triton/__init__.py +++ b/nvtabular/inference/triton/__init__.py @@ -25,6 +25,7 @@ from nvtabular.dispatch import _is_list_dtype, _is_string_dtype, _make_df # n...
dotkom__onlineweb4-773
Regex error in authentication https://github.com/dotKom/onlineweb4/blob/develop/apps/authentication/views.py#L121 The "."s should be changed to "."
[ { "content": "# -*- coding: utf-8 -*-\n\nimport uuid\nimport re\n\nfrom django.contrib import auth\nfrom django.contrib import messages\nfrom django.core.mail import send_mail\nfrom django.shortcuts import render, redirect, get_object_or_404\nfrom django.http import HttpResponseRedirect\nfrom django.utils.trans...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport uuid\nimport re\n\nfrom django.contrib import auth\nfrom django.contrib import messages\nfrom django.core.mail import send_mail\nfrom django.shortcuts import render, redirect, get_object_or_404\nfrom django.http import HttpResponseRedirect\nfrom django.utils.trans...
diff --git a/apps/authentication/views.py b/apps/authentication/views.py index f85ea4f25..3dab1449b 100644 --- a/apps/authentication/views.py +++ b/apps/authentication/views.py @@ -118,7 +118,7 @@ def verify(request, token): user = getattr(rt, 'user') # If it is a stud email, set the ntnu_username f...
sunpy__sunpy-4323
Should coordinates.sun.B0 return a Latitude object? https://docs.sunpy.org/en/stable/api/sunpy.coordinates.sun.B0.html, returns "the heliographic latitude of the of the center of the disk of the Sun as seen from Earth.". Currently the return type is an `Angle`, and in a few tests both here and in `heliopy` I've had to ...
[ { "content": "\"\"\"\nSun-specific coordinate calculations\n\"\"\"\nimport numpy as np\n\nimport astropy.units as u\nfrom astropy import _erfa as erfa\nfrom astropy.constants import c as speed_of_light\nfrom astropy.coordinates import (\n ITRS,\n AltAz,\n Angle,\n Distance,\n GeocentricMeanEclipt...
[ { "content": "\"\"\"\nSun-specific coordinate calculations\n\"\"\"\nimport numpy as np\n\nimport astropy.units as u\nfrom astropy import _erfa as erfa\nfrom astropy.constants import c as speed_of_light\nfrom astropy.coordinates import (\n ITRS,\n AltAz,\n Angle,\n Distance,\n GeocentricMeanEclipt...
diff --git a/changelog/4323.breaking.rst b/changelog/4323.breaking.rst new file mode 100644 index 00000000000..1ddbb5e68e0 --- /dev/null +++ b/changelog/4323.breaking.rst @@ -0,0 +1,2 @@ +Changed :func:`sunpy.coordinates.sun.B0` return type from `~astropy.coordinates.Angle` +to `~astropy.coordinates.Latitude`. diff --g...
EleutherAI__gpt-neox-1026
[Broken] Generation with Sequential Model Take up a config and set `"pipe-parallel-size": 1` Run `python deepy.py generate.py configs/70M-deduped.yml -i input_prompt.txt -o prompt_out.txt` This will bring sequential model in action. Error: `'SequentialWrapper' object has no attribute 'clear_cache'` in [line](https...
[ { "content": "# Copyright (c) 2021 EleutherAI\n# This file is based on code by the authors denoted below and has been modified from its original version.\n#\n# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use...
[ { "content": "# Copyright (c) 2021 EleutherAI\n# This file is based on code by the authors denoted below and has been modified from its original version.\n#\n# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use...
diff --git a/megatron/model/utils.py b/megatron/model/utils.py index 141a6e4e9..34e9c20a9 100644 --- a/megatron/model/utils.py +++ b/megatron/model/utils.py @@ -190,6 +190,12 @@ def exec_func(*inputs): x = exec_range_func(start_idx, end_idx)(*x) return x + def clear_cache(self): + ...
gratipay__gratipay.com-3348
viewing history for a closed account 500s https://app.getsentry.com/gratipay/gratipay-com/group/62465010/
[ { "content": "from datetime import datetime\nfrom decimal import Decimal\n\nfrom aspen import Response\nfrom psycopg2 import IntegrityError\n\n\ndef get_end_of_year_balance(db, participant, year, current_year):\n if year == current_year:\n return participant.balance\n if year < participant.claimed_...
[ { "content": "from datetime import datetime\nfrom decimal import Decimal\n\nfrom aspen import Response\nfrom psycopg2 import IntegrityError\n\n\ndef get_end_of_year_balance(db, participant, year, current_year):\n if year == current_year:\n return participant.balance\n start = participant.claimed_ti...
diff --git a/gratipay/utils/history.py b/gratipay/utils/history.py index 166d53a6fc..aae35ed6f2 100644 --- a/gratipay/utils/history.py +++ b/gratipay/utils/history.py @@ -8,7 +8,8 @@ def get_end_of_year_balance(db, participant, year, current_year): if year == current_year: return participant.balance - ...
ydataai__ydata-profiling-588
Nullable types not fully supported Using pandas >= 1, columns of nullable integer type with low numbers of distinct values appear as "UNSUPPORTED". This comes down to the check in `is_numeric` on whether there are infinite values in the series. https://github.com/pandas-profiling/pandas-profiling/blob/216704bc664...
[ { "content": "\"\"\"Common parts to all other modules, mainly utility functions.\"\"\"\nimport imghdr\nimport os\nfrom enum import Enum, unique\nfrom urllib.parse import ParseResult, urlparse\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.api.types import is_categorical_dtype\n\nfrom pandas_profiling.c...
[ { "content": "\"\"\"Common parts to all other modules, mainly utility functions.\"\"\"\nimport imghdr\nimport os\nfrom enum import Enum, unique\nfrom urllib.parse import ParseResult, urlparse\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.api.types import is_categorical_dtype\n\nfrom pandas_profiling.c...
diff --git a/src/pandas_profiling/model/base.py b/src/pandas_profiling/model/base.py index 6047c006b..cff51061c 100644 --- a/src/pandas_profiling/model/base.py +++ b/src/pandas_profiling/model/base.py @@ -136,7 +136,7 @@ def is_numeric(series: pd.Series, series_description: dict) -> bool: return pd.api.types.is_nu...
pallets__click-1754
Use of deprecated & insecure tempfile.mktemp() ### Expected Behavior _tempfilepager() in _termui_impl.py uses a depreciated function that is considered insecure by the core [Python team](https://docs.python.org/3/library/tempfile.html#tempfile.mktemp). It is recommended to use mkstemp() instead. ```python impor...
[ { "content": "\"\"\"\nThis module contains implementations for the termui module. To keep the\nimport time of Click down, some infrequently used functionality is\nplaced in this module and only imported as needed.\n\"\"\"\nimport contextlib\nimport math\nimport os\nimport sys\nimport time\n\nfrom ._compat impor...
[ { "content": "\"\"\"\nThis module contains implementations for the termui module. To keep the\nimport time of Click down, some infrequently used functionality is\nplaced in this module and only imported as needed.\n\"\"\"\nimport contextlib\nimport math\nimport os\nimport sys\nimport time\n\nfrom ._compat impor...
diff --git a/CHANGES.rst b/CHANGES.rst index 6faaa89b6..343c817ff 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -155,6 +155,8 @@ Unreleased iterators by setting ``update_min_steps``. :issue:`676` - Respect ``case_sensitive=False`` when doing shell completion for ``Choice`` :issue:`1692` +- Use ``mkstemp(...
ivy-llc__ivy-19818
bincount
[ { "content": "# global\nimport ivy\nfrom ivy import with_supported_dtypes, with_unsupported_dtypes\nfrom ivy.functional.frontends.tensorflow import check_tensorflow_casting\nfrom ivy.functional.frontends.tensorflow.func_wrapper import (\n to_ivy_arrays_and_back,\n handle_tf_dtype,\n to_ivy_dtype,\n)\n\...
[ { "content": "# global\nimport ivy\nfrom ivy import with_supported_dtypes, with_unsupported_dtypes\nfrom ivy.functional.frontends.tensorflow import check_tensorflow_casting\nfrom ivy.functional.frontends.tensorflow.func_wrapper import (\n to_ivy_arrays_and_back,\n handle_tf_dtype,\n to_ivy_dtype,\n)\n\...
diff --git a/ivy/functional/frontends/tensorflow/math.py b/ivy/functional/frontends/tensorflow/math.py index 8ad8accb4cfa9..86532874a6f98 100644 --- a/ivy/functional/frontends/tensorflow/math.py +++ b/ivy/functional/frontends/tensorflow/math.py @@ -711,3 +711,21 @@ def real(input, name=None): @to_ivy_arrays_and_back ...
pypa__pipenv-5148
CLI docs broken ### Issue description [CLI docs](https://pipenv.pypa.io/en/latest/cli/) [CLI docs source](https://pipenv.pypa.io/en/latest/_sources/cli.rst.txt) ### Expected result CLI docs ### Actual result Empty page
[ { "content": "#\n# pipenv documentation build configuration file, created by\n# sphinx-quickstart on Mon Jan 30 13:28:36 2017.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\...
[ { "content": "#\n# pipenv documentation build configuration file, created by\n# sphinx-quickstart on Mon Jan 30 13:28:36 2017.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\...
diff --git a/docs/conf.py b/docs/conf.py index 7aac0735ef..52603bb1f1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -31,7 +31,7 @@ click.Command = pipenv.vendor.click.Command click.Group = pipenv.vendor.click.Group - +click.BaseCommand = pipenv.vendor.click.BaseCommand # -- General configuration ----------------...
awslabs__gluonts-2182
Prophet not compatible with `Period` ## Description TypeError is raised when using a PandasDataset with the ProphetPredictor. The problem seems to come from the `pd.to_datetime` function which does not accept Period. I guess it broke when this was done: https://github.com/awslabs/gluon-ts/pull/1980 ## To Reprodu...
[ { "content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. 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# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE...
[ { "content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. 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# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE...
diff --git a/.github/workflows/tests-prophet.yaml b/.github/workflows/tests-prophet.yaml new file mode 100644 index 0000000000..0ccfb2ac0c --- /dev/null +++ b/.github/workflows/tests-prophet.yaml @@ -0,0 +1,30 @@ +name: Prophet Tests + +on: [push, pull_request] + +jobs: + test: + strategy: + max-parallel: 4 + ...
PaddlePaddle__PaddleOCR-9099
paddleocr中gen_lable.py对icdar2015数据转换有误 ![image](https://user-images.githubusercontent.com/119492593/212064964-c7db056f-3209-41f6-a9e0-daa5bc790c61.png) 我用gen_lable.py转换的数据是这样子的,我感觉好像是错误的 不应该是:ch4_training_images/img_1.jpg [{"transcription": "Genaxis Theatre", "points": [[377, 117], [463, 117], [465, 130], [378, 1...
[ { "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/ppocr/postprocess/east_postprocess.py b/ppocr/postprocess/east_postprocess.py index e9ba095d399..c1af3eccef8 100755 --- a/ppocr/postprocess/east_postprocess.py +++ b/ppocr/postprocess/east_postprocess.py @@ -81,6 +81,7 @@ def detect(self, try: check_install('lanms', 'lanms-nova') ...
tiangolo__fastapi-320
eta on pydantic update to 0.28 really need your latest PR it shoud solve recurring issues with sqlalchemy to pydantic mapping thank you !
[ { "content": "import re\nfrom typing import Any, Dict, List, Sequence, Set, Type\n\nfrom fastapi import routing\nfrom fastapi.openapi.constants import REF_PREFIX\nfrom pydantic import BaseModel\nfrom pydantic.fields import Field\nfrom pydantic.schema import get_flat_models_from_fields, model_process_schema\nfro...
[ { "content": "import re\nfrom typing import Any, Dict, List, Sequence, Set, Type\n\nfrom fastapi import routing\nfrom fastapi.openapi.constants import REF_PREFIX\nfrom pydantic import BaseModel\nfrom pydantic.fields import Field\nfrom pydantic.schema import get_flat_models_from_fields, model_process_schema\nfro...
diff --git a/Pipfile b/Pipfile index 6cc3fbb3cf988..83f8954dc0901 100644 --- a/Pipfile +++ b/Pipfile @@ -26,7 +26,7 @@ uvicorn = "*" [packages] starlette = "==0.12.0" -pydantic = "==0.26.0" +pydantic = "==0.28.0" databases = {extras = ["sqlite"],version = "*"} hypercorn = "*" diff --git a/Pipfile.lock b/Pipfile...
cloudtools__troposphere-2027
WAFv2 AndStatement and OrStatement incorrect validation Hi guys, https://github.com/cloudtools/troposphere/blob/f287fa8999ef2a5f5e301ba5c0af6421471e230b/troposphere/validators/wafv2.py#L32-L33 In the validator for WAFv2 statements, there is a check to see if the number of statements if _exactly_ 2 when it should ...
[ { "content": "# Copyright (c) 2012-2021, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\n\ndef validate_statement(statement):\n \"\"\"\n Validate Transformation Type for WebACL TextTransformation\n Property: RuleGroupRule.Statement\n Property: WebACLRule...
[ { "content": "# Copyright (c) 2012-2021, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\n\ndef validate_statement(statement):\n \"\"\"\n Validate Transformation Type for WebACL TextTransformation\n Property: RuleGroupRule.Statement\n Property: WebACLRule...
diff --git a/tests/test_wafv2.py b/tests/test_wafv2.py index 06893bcf9..ab8d54097 100644 --- a/tests/test_wafv2.py +++ b/tests/test_wafv2.py @@ -61,12 +61,11 @@ def test_statement_validator(self): def test_statements_validator(self): validate_statements([Statement(), Statement()]) + validate_stat...
mathesar-foundation__mathesar-1366
Columns re-ordered after type change ## Reproduce 1. "New Table" > "Import Data" > "Copy and Paste Text" 1. Paste the following data and proceed to create and view the table (by clicking "Continue" and then "Finish Import"). ``` id,a,b 1,100,200 2,101,201 ``` 1. Click on the column h...
[ { "content": "import warnings\nfrom psycopg2.errors import DuplicateColumn\nfrom rest_framework import status, viewsets\nfrom rest_framework.exceptions import NotFound\nfrom rest_framework.response import Response\nfrom sqlalchemy.exc import ProgrammingError\n\nfrom mathesar.api.exceptions.database_exceptions i...
[ { "content": "import warnings\nfrom psycopg2.errors import DuplicateColumn\nfrom rest_framework import status, viewsets\nfrom rest_framework.exceptions import NotFound\nfrom rest_framework.response import Response\nfrom sqlalchemy.exc import ProgrammingError\n\nfrom mathesar.api.exceptions.database_exceptions i...
diff --git a/mathesar/api/db/viewsets/columns.py b/mathesar/api/db/viewsets/columns.py index b38a107a80..3bbac4ce17 100644 --- a/mathesar/api/db/viewsets/columns.py +++ b/mathesar/api/db/viewsets/columns.py @@ -27,7 +27,7 @@ class ColumnViewSet(viewsets.ModelViewSet): pagination_class = DefaultLimitOffsetPaginatio...
OpenMined__PySyft-3525
New PySyft workers are created with FSS `Plans` in their object storage **Describe the bug** When a new worker is created, it comes with some `Plans` already loaded into the object storage: ``` {67822474598: <Plan Plan id:67822474598 owner:bob Tags: #fss_eq_plan_1 built>, 42739784794: <Plan Plan id:42739784794 own...
[ { "content": "from contextlib import contextmanager\n\nimport logging\nfrom typing import Callable\nfrom typing import List\nfrom typing import Tuple\nfrom typing import Union\nfrom typing import TYPE_CHECKING\n\nimport syft as sy\nfrom syft import codes\nfrom syft.execution.plan import Plan\nfrom syft.framewor...
[ { "content": "from contextlib import contextmanager\n\nimport logging\nfrom typing import Callable\nfrom typing import List\nfrom typing import Tuple\nfrom typing import Union\nfrom typing import TYPE_CHECKING\n\nimport syft as sy\nfrom syft import codes\nfrom syft.execution.plan import Plan\nfrom syft.framewor...
diff --git a/syft/workers/base.py b/syft/workers/base.py index 6b79c5f7288..60cb6896706 100644 --- a/syft/workers/base.py +++ b/syft/workers/base.py @@ -182,8 +182,6 @@ def __init__( # storage object for crypto primitives self.crypto_store = PrimitiveStorage(owner=self) - # declare the plans ...
common-workflow-language__cwltool-1457
pip install cwltool fails due to broken psutil version Hello, It looks like the latest release of psutil is broken, and the version is not bounded in the cwltool requirements; ``` [mdb@h-0000 kegg-cwl]$ pip install cwltool==1.0.20181217162649 Collecting cwltool==1.0.20181217162649 Cache entry deserialization fai...
[ { "content": "#!/usr/bin/env python3\n\"\"\"Setup for the reference implementation of the CWL standards.\"\"\"\nimport os\nimport sys\nimport warnings\n\nimport setuptools.command.egg_info as egg_info_cmd\nfrom setuptools import setup\n\nif os.name == \"nt\":\n warnings.warn(\n \"The CWL reference run...
[ { "content": "#!/usr/bin/env python3\n\"\"\"Setup for the reference implementation of the CWL standards.\"\"\"\nimport os\nimport sys\nimport warnings\n\nimport setuptools.command.egg_info as egg_info_cmd\nfrom setuptools import setup\n\nif os.name == \"nt\":\n warnings.warn(\n \"The CWL reference run...
diff --git a/requirements.txt b/requirements.txt index 2f57d7fc2..a0592b014 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ schema-salad>=7.1.20210518142926,<8 prov==1.5.1 bagit==1.8.1 mypy-extensions -psutil<5.9.0 +psutil != 5.6.1, <5.9.0 typing-extensions coloredlogs pydot>=1.4.1 diff --git...
fossasia__open-event-server-352
HTML Template rendered when page doesn't exist in API If a paginated API endpoint is called with a non-existant page number, a template is rendered which should never happen in case of REST APIs. ``` http http://localhost:5000/api/v1/event/page/2 HTTP/1.0 404 NOT FOUND Content-Length: 1062 Content-Type: text/html; cha...
[ { "content": "\"\"\"Copyright 2015 Rafal Kowalski\"\"\"\nfrom flask import jsonify\n\nfrom .query_filter import QueryFilter\n\n\nPER_PAGE = 20\n\n\nclass ObjectFormatter(object):\n \"\"\"Object formatter class\"\"\"\n @staticmethod\n def get_json(name, query, request, page=None):\n \"\"\"Returns...
[ { "content": "\"\"\"Copyright 2015 Rafal Kowalski\"\"\"\nfrom flask import jsonify\n\nfrom .query_filter import QueryFilter\n\n\nPER_PAGE = 20\n\n\nclass ObjectFormatter(object):\n \"\"\"Object formatter class\"\"\"\n @staticmethod\n def get_json(name, query, request, page=None):\n \"\"\"Returns...
diff --git a/open_event/helpers/object_formatter.py b/open_event/helpers/object_formatter.py index 949fc11cb2..0cc237ae31 100644 --- a/open_event/helpers/object_formatter.py +++ b/open_event/helpers/object_formatter.py @@ -21,6 +21,8 @@ def get_json(name, query, request, page=None): for table_objec...
huggingface__accelerate-1617
Using `balanced_low_0` on single GPU crashes ### System Info ```Shell - `Accelerate` version: 0.20.3 - Platform: Linux-6.3.7-arch1-1-x86_64-with-glibc2.37 - Python version: 3.10.8 - Numpy version: 1.23.5 - PyTorch version (GPU?): 2.0.1+cu117 (True) - PyTorch XPU available: False - System RAM: 15.57 GB - GPU typ...
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
diff --git a/src/accelerate/utils/modeling.py b/src/accelerate/utils/modeling.py index 15648e7a1c2..291234b4106 100644 --- a/src/accelerate/utils/modeling.py +++ b/src/accelerate/utils/modeling.py @@ -591,6 +591,10 @@ def get_balanced_memory( ] ) + if num_devices == 1: + # We cannot do...
frappe__frappe-21985
Create block in workspace ### Information about bug ### App Versions ``` { "erpnext": "14.27.2", "frappe": "14.39.0", "hrms": "14.4.3", "india_compliance": "14.10.1", "payments": "0.0.1" } ``` ### Route ``` Workspaces/Home ``` ### Traceback ``` Traceback (most recent call last): File "apps/frap...
[ { "content": "# Copyright (c) 2023, Frappe Technologies and contributors\n# For license information, please see license.txt\n\nimport frappe\nfrom frappe.model.document import Document\nfrom frappe.query_builder.utils import DocType\n\n\nclass CustomHTMLBlock(Document):\n\t# begin: auto-generated types\n\t# Thi...
[ { "content": "# Copyright (c) 2023, Frappe Technologies and contributors\n# For license information, please see license.txt\n\nimport frappe\nfrom frappe.model.document import Document\nfrom frappe.query_builder.utils import DocType\n\n\nclass CustomHTMLBlock(Document):\n\t# begin: auto-generated types\n\t# Thi...
diff --git a/frappe/desk/doctype/custom_html_block/custom_html_block.py b/frappe/desk/doctype/custom_html_block/custom_html_block.py index 3ce7966f6a65..493b7ee4e451 100644 --- a/frappe/desk/doctype/custom_html_block/custom_html_block.py +++ b/frappe/desk/doctype/custom_html_block/custom_html_block.py @@ -30,7 +30,7 @@...
OpenNMT__OpenNMT-tf-173
DataLossError when infer with the model from checkpoints averaging Hi, tensorflow-gpu 1.8.0 opennmt-tf 1.5.0 Model is trained with the same parameter of [wmt_ende.yml](https://github.com/OpenNMT/OpenNMT-tf/blob/master/scripts/wmt/config/wmt_ende.yml) with 4 x 1080Ti After the checkpoints averaging (max_count=...
[ { "content": "\"\"\"Checkpoint utilities.\"\"\"\n\nimport os\nimport six\n\nimport tensorflow as tf\nimport numpy as np\n\nfrom opennmt.utils.vocab import Vocab\nfrom opennmt.utils.misc import count_lines\n\n\ndef _get_vocabulary_mapping(current_vocab_path, new_vocab_path, mode):\n \"\"\"Maps vocabulary new in...
[ { "content": "\"\"\"Checkpoint utilities.\"\"\"\n\nimport os\nimport six\n\nimport tensorflow as tf\nimport numpy as np\n\nfrom opennmt.utils.vocab import Vocab\nfrom opennmt.utils.misc import count_lines\n\n\ndef _get_vocabulary_mapping(current_vocab_path, new_vocab_path, mode):\n \"\"\"Maps vocabulary new in...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 29fccd1d5..87f0c9ac8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ OpenNMT-tf follows [semantic versioning 2.0.0](https://semver.org/). The API cov ### Fixes and improvements * Fix invalid scheduled sampling implementation with RNN decoders +* Fix poss...
networkx__networkx-1276
average_clustering count_zeros parameter True by default but stated as False in docstring Compare: https://github.com/networkx/networkx/blob/a822b491c6b53a2819915a8c620e97a36ba6c060/networkx/algorithms/cluster.py#L117 with: https://github.com/networkx/networkx/blob/a822b491c6b53a2819915a8c620e97a36ba6c060/networkx...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Algorithms to characterize the number of triangles in a graph.\"\"\"\nfrom itertools import combinations\nimport networkx as nx\nfrom networkx import NetworkXError\n__author__ = \"\"\"\\n\"\"\".join(['Aric Hagberg <aric.hagberg@gmail.com>',\n ...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Algorithms to characterize the number of triangles in a graph.\"\"\"\nfrom itertools import combinations\nimport networkx as nx\nfrom networkx import NetworkXError\n__author__ = \"\"\"\\n\"\"\".join(['Aric Hagberg <aric.hagberg@gmail.com>',\n ...
diff --git a/networkx/algorithms/cluster.py b/networkx/algorithms/cluster.py index a4424311204..8a2a9685514 100644 --- a/networkx/algorithms/cluster.py +++ b/networkx/algorithms/cluster.py @@ -136,7 +136,7 @@ def average_clustering(G, nodes=None, weight=None, count_zeros=True): The edge attribute that holds the...
streamlit__streamlit-3939
Auto-reload doesn't work with subdirs ### Summary Auto-reload doesn’t work if both the app file and a secondary module are in the same subdir. While this doesn't affect app behavior, it's a pretty critical bug because you need to manually restart Streamlit all the time in this configuration. ### Steps to reprod...
[ { "content": "# Copyright 2018-2021 Streamlit 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 a...
[ { "content": "# Copyright 2018-2021 Streamlit 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 a...
diff --git a/lib/streamlit/watcher/local_sources_watcher.py b/lib/streamlit/watcher/local_sources_watcher.py index 01b59183dbc6..c7d631e968a4 100644 --- a/lib/streamlit/watcher/local_sources_watcher.py +++ b/lib/streamlit/watcher/local_sources_watcher.py @@ -183,7 +183,9 @@ def get_module_paths(module: types.ModuleType...
electricitymaps__electricitymaps-contrib-5651
CA-SK production parser down ## Description This is an automatic error report generated for Canada Saskatchewan (CA-SK). Issues: - No recent data found for `production` parser - No recent data found for `consumption` parser ## Suggestions - Try running the parser locally using the command `poetry run test_parser CA-...
[ { "content": "from datetime import datetime, timedelta\nfrom logging import Logger, getLogger\nfrom typing import List, Optional\n\nfrom pytz import timezone\nfrom requests import Response, Session\n\nfrom parsers.lib.exceptions import ParserException\n\nTIMEZONE = timezone(\"America/Regina\")\n\n# URLs for the...
[ { "content": "from datetime import datetime, timedelta\nfrom logging import Logger, getLogger\nfrom typing import List, Optional\n\nfrom pytz import timezone\nfrom requests import Response, Session\n\nfrom parsers.lib.exceptions import ParserException\n\nTIMEZONE = timezone(\"America/Regina\")\n\n# URLs for the...
diff --git a/parsers/CA_SK.py b/parsers/CA_SK.py index a94444dda4..1256b042d0 100644 --- a/parsers/CA_SK.py +++ b/parsers/CA_SK.py @@ -115,7 +115,7 @@ def fetch_consumption( # Set the headers to mimic a user browser as the API will return a 403 if not. headers = {"user-agent": USER_AGENT} - response: Res...
openstates__openstates-scrapers-2284
ND failing since at least 2018-05-05 ND has been failing since 2018-05-05 Based on automated runs it appears that ND has not run successfully in 2 days (2018-05-05). ``` /opt/openstates/venv-pupa/lib/python3.5/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from rele...
[ { "content": "from pupa.scrape import Jurisdiction, Organization\nfrom .committees import NDCommitteeScraper\nfrom .votes import NDVoteScraper\nfrom .people import NDPersonScraper\nfrom .bills import NDBillScraper\n\n\nclass NorthDakota(Jurisdiction):\n division_id = \"ocd-division/country:us/state:nd\"\n ...
[ { "content": "from pupa.scrape import Jurisdiction, Organization\nfrom .committees import NDCommitteeScraper\nfrom .votes import NDVoteScraper\nfrom .people import NDPersonScraper\nfrom .bills import NDBillScraper\n\n\nclass NorthDakota(Jurisdiction):\n division_id = \"ocd-division/country:us/state:nd\"\n ...
diff --git a/openstates/nd/__init__.py b/openstates/nd/__init__.py index a026582c01..efd8aa85fd 100644 --- a/openstates/nd/__init__.py +++ b/openstates/nd/__init__.py @@ -146,4 +146,6 @@ def get_session_list(self): html = scrapelib.Scraper().get(url).text doc = lxml.html.fromstring(html) doc....
pypa__cibuildwheel-1687
[FR] Expose `{package}` placeholder to the build stage ### Description I mentioned before that I set the `PIP_CONSTRAINT` env var when building wheels, to improve the reproducibility (https://github.com/pypa/cibuildwheel/issues/1666). I got that integrated into yarl, and it works well when I use my https://github...
[ { "content": "from __future__ import annotations\n\nimport argparse\nimport os\nimport shutil\nimport sys\nimport tarfile\nimport textwrap\nimport typing\nfrom collections.abc import Iterable, Sequence, Set\nfrom pathlib import Path\nfrom tempfile import mkdtemp\nfrom typing import Protocol\n\nimport cibuildwhe...
[ { "content": "from __future__ import annotations\n\nimport argparse\nimport os\nimport shutil\nimport sys\nimport tarfile\nimport textwrap\nimport typing\nfrom collections.abc import Iterable, Sequence, Set\nfrom pathlib import Path\nfrom tempfile import mkdtemp\nfrom typing import Protocol\n\nimport cibuildwhe...
diff --git a/cibuildwheel/__main__.py b/cibuildwheel/__main__.py index c6a2fdeaa..03b471447 100644 --- a/cibuildwheel/__main__.py +++ b/cibuildwheel/__main__.py @@ -160,7 +160,7 @@ def main() -> None: # This is now the new package dir args.package_dir = project_dir.resolve() - with chdir(temp...
Cog-Creators__Red-DiscordBot-4168
Update Lavalink build This serves solely as an informational issue to put in milestone so that it's not forgotten.
[ { "content": "import asyncio\nimport asyncio.subprocess # disables for # https://github.com/PyCQA/pylint/issues/1469\nimport itertools\nimport logging\nimport pathlib\nimport platform\nimport re\nimport shutil\nimport sys\nimport tempfile\nimport time\nfrom typing import ClassVar, Final, List, Optional, Tuple,...
[ { "content": "import asyncio\nimport asyncio.subprocess # disables for # https://github.com/PyCQA/pylint/issues/1469\nimport itertools\nimport logging\nimport pathlib\nimport platform\nimport re\nimport shutil\nimport sys\nimport tempfile\nimport time\nfrom typing import ClassVar, Final, List, Optional, Tuple,...
diff --git a/redbot/cogs/audio/manager.py b/redbot/cogs/audio/manager.py index e0ffd4609ac..0d39afb068b 100644 --- a/redbot/cogs/audio/manager.py +++ b/redbot/cogs/audio/manager.py @@ -20,7 +20,7 @@ log = logging.getLogger("red.audio.manager") JAR_VERSION: Final[str] = "3.3.1" -JAR_BUILD: Final[int] = 1068 +JAR_BUI...
python-poetry__poetry-1574
Maximum recursion depth exceeded for `requests[security]` introduced in 1.0.0b4 <!-- Hi there! Thank you for discovering and submitting an issue. Before you submit this; let's make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill the...
[ { "content": "import glob\nimport logging\nimport os\nimport re\nimport time\n\nfrom contextlib import contextmanager\nfrom tempfile import mkdtemp\nfrom typing import List\nfrom typing import Optional\n\nimport pkginfo\n\nfrom clikit.ui.components import ProgressIndicator\n\nfrom poetry.factory import Factory\...
[ { "content": "import glob\nimport logging\nimport os\nimport re\nimport time\n\nfrom contextlib import contextmanager\nfrom tempfile import mkdtemp\nfrom typing import List\nfrom typing import Optional\n\nimport pkginfo\n\nfrom clikit.ui.components import ProgressIndicator\n\nfrom poetry.factory import Factory\...
diff --git a/poetry/puzzle/provider.py b/poetry/puzzle/provider.py index 01ea87c4a2d..29390e70321 100644 --- a/poetry/puzzle/provider.py +++ b/poetry/puzzle/provider.py @@ -604,7 +604,7 @@ def complete_package( new_markers = [] for dep in _deps: marker = dep.marker...
fedora-infra__bodhi-2501
Cannot edit an update without passing notes to it https://github.com/fedora-infra/bodhi/commit/c70880ce60f0431272d81065c97cd50afdf287f7 made it so that users cannot edit existing updates without providing notes: ``` $ bodhi updates edit --type bugfix erlang-goldrush-0.2.0-1.fc28 ERROR: must specify at least one of...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright © 2014-2018 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 ve...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright © 2014-2018 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 ve...
diff --git a/bodhi/client/__init__.py b/bodhi/client/__init__.py index 01e9096b13..d987d7d954 100644 --- a/bodhi/client/__init__.py +++ b/bodhi/client/__init__.py @@ -370,10 +370,6 @@ def edit(user, password, url, **kwargs): kwargs['notes'] = _get_notes(**kwargs) - if not kwargs['notes']: - click.ech...
cocotb__cocotb-3220
Bug in regression manager `_trim` function on empty docstrings When the docstring is empty (i.e. `""""""`) the index in the following line causes an `IndexError`. https://github.com/cocotb/cocotb/blob/3aa6777dd3d0ff221e6f6b4de70051fe20a7e414/cocotb/regression.py#L912
[ { "content": "# Copyright (c) 2013, 2018 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistribut...
[ { "content": "# Copyright (c) 2013, 2018 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistribut...
diff --git a/cocotb/regression.py b/cocotb/regression.py index 7e0067b6f0..a0ae09bf78 100644 --- a/cocotb/regression.py +++ b/cocotb/regression.py @@ -897,7 +897,7 @@ def _trim(docstring: Optional[str]) -> str: Based on https://www.python.org/dev/peps/pep-0257/#handling-docstring-indentation. """ - if do...
ytdl-org__youtube-dl-16985
unable to extract OpenGraph description ## Please follow the guide below - You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`) - Use the *Preview* tab to see wh...
[ { "content": "# coding: utf-8\nfrom __future__ import unicode_literals\n\nimport base64\nimport hashlib\nimport itertools\nimport json\nimport random\nimport re\nimport string\n\nfrom .common import InfoExtractor\nfrom ..compat import compat_struct_pack\nfrom ..utils import (\n determine_ext,\n error_to_c...
[ { "content": "# coding: utf-8\nfrom __future__ import unicode_literals\n\nimport base64\nimport hashlib\nimport itertools\nimport json\nimport random\nimport re\nimport string\n\nfrom .common import InfoExtractor\nfrom ..compat import compat_struct_pack\nfrom ..utils import (\n determine_ext,\n error_to_c...
diff --git a/youtube_dl/extractor/dailymotion.py b/youtube_dl/extractor/dailymotion.py index 9a74906cb62..8f5f57b9857 100644 --- a/youtube_dl/extractor/dailymotion.py +++ b/youtube_dl/extractor/dailymotion.py @@ -144,7 +144,8 @@ def _real_extract(self, url): age_limit = self._rta_search(webpage) - d...
secdev__scapy-812
No exception when 'tcpreplay' is not available on the target host Not getting any error message in case that 'tcpreplay' is not installed on the target host, while running 'sendpfast'. No exception when 'tcpreplay' is not available on the target host Not getting any error message in case that 'tcpreplay' is not install...
[ { "content": "## This file is part of Scapy\n## See http://www.secdev.org/projects/scapy for more informations\n## Copyright (C) Philippe Biondi <phil@secdev.org>\n## This program is published under a GPLv2 license\n\n\"\"\"\nFunctions to send and receive packets.\n\"\"\"\n\nfrom __future__ import absolute_impo...
[ { "content": "## This file is part of Scapy\n## See http://www.secdev.org/projects/scapy for more informations\n## Copyright (C) Philippe Biondi <phil@secdev.org>\n## This program is published under a GPLv2 license\n\n\"\"\"\nFunctions to send and receive packets.\n\"\"\"\n\nfrom __future__ import absolute_impo...
diff --git a/scapy/sendrecv.py b/scapy/sendrecv.py index b025e0da77e..d0265fa65ca 100644 --- a/scapy/sendrecv.py +++ b/scapy/sendrecv.py @@ -338,7 +338,10 @@ def sendpfast(x, pps=None, mbps=None, realtime=None, loop=0, file_cache=False, i except KeyboardInterrupt: log_interactive.info("Interrupted by user...
pytorch__TensorRT-2311
Upstream Dynamo Backend to Torch - Add a hook in the Torch repo to secure the namespace `"tensorrt"` and have it point to `"torch_tensorrt"` - Add necessary imports and skipped tests - Raise a PR in Torch to add this functionality
[ { "content": "from __future__ import annotations\n\nimport logging\nfrom functools import partial\nfrom typing import Any, Callable, Sequence\n\nimport torch\nimport torch._dynamo as td\nfrom torch._functorch.aot_autograd import aot_module_simplified, make_boxed_compiler\nfrom torch_tensorrt.dynamo import Compi...
[ { "content": "from __future__ import annotations\n\nimport logging\nfrom functools import partial\nfrom typing import Any, Callable, Sequence\n\nimport torch\nimport torch._dynamo as td\nfrom torch._functorch.aot_autograd import aot_module_simplified, make_boxed_compiler\nfrom torch_tensorrt.dynamo import Compi...
diff --git a/py/torch_tensorrt/dynamo/backend/backends.py b/py/torch_tensorrt/dynamo/backend/backends.py index 2ba9f4d754..d138ff6499 100644 --- a/py/torch_tensorrt/dynamo/backend/backends.py +++ b/py/torch_tensorrt/dynamo/backend/backends.py @@ -16,6 +16,7 @@ logger = logging.getLogger(__name__) +@td.register_bac...
nltk__nltk-1514
Is generate() coming back? Would really love to see this function back again. The book says it will be reinstated in a later version, but when?
[ { "content": "# Natural Language Toolkit: Texts\n#\n# Copyright (C) 2001-2016 NLTK Project\n# Author: Steven Bird <stevenbird1@gmail.com>\n# Edward Loper <edloper@gmail.com>\n# URL: <http://nltk.org/>\n# For license information, see LICENSE.TXT\n\n\"\"\"\nThis module brings together a variety of NLTK fu...
[ { "content": "# Natural Language Toolkit: Texts\n#\n# Copyright (C) 2001-2016 NLTK Project\n# Author: Steven Bird <stevenbird1@gmail.com>\n# Edward Loper <edloper@gmail.com>\n# URL: <http://nltk.org/>\n# For license information, see LICENSE.TXT\n\n\"\"\"\nThis module brings together a variety of NLTK fu...
diff --git a/nltk/text.py b/nltk/text.py index 23402697f6..e02ce7b1be 100644 --- a/nltk/text.py +++ b/nltk/text.py @@ -443,6 +443,13 @@ def dispersion_plot(self, words): """ from nltk.draw import dispersion_plot dispersion_plot(self, words) + + def generate(self, words): + "...
LMFDB__lmfdb-5664
Dirichlet character browse page thinks all characters are primitive On a Dir Char browse page, such as https://beta.lmfdb.org/Character/Dirichlet/?modbrowse=1-20 all characters are shown by default, and shown as "primitive". On loading, only the primitive characters should be shown. The underlying problem is...
[ { "content": "# -*- coding: utf-8 -*-\n# ListCharacters.py\nimport re\nfrom sage.all import lcm, factor, Integers\nfrom sage.databases.cremona import cremona_letter_code\nfrom lmfdb.characters.web_character import WebDirichlet, parity_string\nfrom lmfdb.characters.TinyConrey import ConreyCharacter\nfrom lmfdb.u...
[ { "content": "# -*- coding: utf-8 -*-\n# ListCharacters.py\nimport re\nfrom sage.all import lcm, factor, Integers\nfrom sage.databases.cremona import cremona_letter_code\nfrom lmfdb.characters.web_character import WebDirichlet, parity_string\nfrom lmfdb.characters.TinyConrey import ConreyCharacter\nfrom lmfdb.u...
diff --git a/lmfdb/characters/ListCharacters.py b/lmfdb/characters/ListCharacters.py index 0b5200a2db..d604e71562 100644 --- a/lmfdb/characters/ListCharacters.py +++ b/lmfdb/characters/ListCharacters.py @@ -71,7 +71,7 @@ def get_character_modulus(a, b, limit=7): entry.append(el) entrie...
AUTOMATIC1111__stable-diffusion-webui-4919
[Bug]: Torch deepdanbooru refuses to run on CPU ### Is there an existing issue for this? - [X] I have searched the existing issues and checked the recent builds/commits ### What happened? When trying to launch deepdanbooru with `--use-cpu all` it fails with `RuntimeError: No CUDA GPUs are available`. ### Steps to r...
[ { "content": "import os\nimport re\n\nimport torch\nfrom PIL import Image\nimport numpy as np\n\nfrom modules import modelloader, paths, deepbooru_model, devices, images, shared\n\nre_special = re.compile(r'([\\\\()])')\n\n\nclass DeepDanbooru:\n def __init__(self):\n self.model = None\n\n def load...
[ { "content": "import os\nimport re\n\nimport torch\nfrom PIL import Image\nimport numpy as np\n\nfrom modules import modelloader, paths, deepbooru_model, devices, images, shared\n\nre_special = re.compile(r'([\\\\()])')\n\n\nclass DeepDanbooru:\n def __init__(self):\n self.model = None\n\n def load...
diff --git a/modules/deepbooru.py b/modules/deepbooru.py index b9066d8177e..31ec7e17197 100644 --- a/modules/deepbooru.py +++ b/modules/deepbooru.py @@ -58,7 +58,7 @@ def tag_multi(self, pil_image, force_disable_ranks=False): a = np.expand_dims(np.array(pic, dtype=np.float32), 0) / 255 with torch.no...
bids-standard__pybids-517
replace_entities() modifies entities I guess it is by design, but replace_entities() modifies the input entities as it goes. I find any function that modifies the input values surprising, but it also means that previous path_patterns can affect the entities as they are iterated. I think the function should return a ...
[ { "content": "'''\nContains helper functions that involve writing operations.\n'''\n\nimport warnings\nimport os\nimport re\nimport sys\nfrom ..utils import splitext, listify\nfrom os.path import join, dirname, exists, islink, isabs, isdir\n\n\n__all__ = ['replace_entities', 'build_path', 'write_contents_to_fil...
[ { "content": "'''\nContains helper functions that involve writing operations.\n'''\n\nimport warnings\nimport os\nimport re\nimport sys\nfrom ..utils import splitext, listify\nfrom os.path import join, dirname, exists, islink, isabs, isdir\n\n\n__all__ = ['replace_entities', 'build_path', 'write_contents_to_fil...
diff --git a/bids/layout/config/bids.json b/bids/layout/config/bids.json index 8ad8faf04..52a573a83 100644 --- a/bids/layout/config/bids.json +++ b/bids/layout/config/bids.json @@ -87,8 +87,8 @@ "sub-{subject}[/ses-{session}]/fmap/sub-{subject}[_ses-{session}][_acq-{acquisition}][_dir-{direction}][_run-{run}]_...
joke2k__faker-1416
pytuple can occassionally return fewer than expected elements * Faker version: 6.1.1 * OS: Mac OSX 10.15.5 Sporadically using pytuple may result in the tuple having less than the requested elements (`nb_elements`) even when `variable_nb_elements` is set to False. This happens because pytuple relies on pyset, ret...
[ { "content": "import string\nimport sys\nimport warnings\n\nfrom decimal import Decimal\n\nfrom .. import BaseProvider\n\n\nclass Provider(BaseProvider):\n default_value_types = (\n 'str', 'str', 'str', 'str', 'float', 'int', 'int', 'decimal',\n 'date_time', 'uri', 'email',\n )\n\n def _c...
[ { "content": "import string\nimport sys\nimport warnings\n\nfrom decimal import Decimal\n\nfrom .. import BaseProvider\n\n\nclass Provider(BaseProvider):\n default_value_types = (\n 'str', 'str', 'str', 'str', 'float', 'int', 'int', 'decimal',\n 'date_time', 'uri', 'email',\n )\n\n def _c...
diff --git a/faker/providers/python/__init__.py b/faker/providers/python/__init__.py index 2a0a4cc14e..e6b2391fd3 100644 --- a/faker/providers/python/__init__.py +++ b/faker/providers/python/__init__.py @@ -123,7 +123,7 @@ def pydecimal(self, left_digits=None, right_digits=None, positive=False, def pytuple(self,...
ManimCommunity__manim-668
Remove the --background_opacity flag For most users, I can see two possible values for the background opacity: 1 (fully opaque) or 0 (fully transparent). The former is the default, and the latter can be activated by passing the `-t` flag. Therefore, I see no reason to also support a separate `--background_opacity` flag...
[ { "content": "\"\"\"\nmain_utils.py\n-------------\n\nFunctions called from __main__.py to interact with the config.\n\n\"\"\"\n\nimport os\nimport sys\nimport argparse\nimport logging\n\nimport colour\n\nfrom manim import constants, logger, config\nfrom .utils import make_config_parser\nfrom .logger import JSO...
[ { "content": "\"\"\"\nmain_utils.py\n-------------\n\nFunctions called from __main__.py to interact with the config.\n\n\"\"\"\n\nimport os\nimport sys\nimport argparse\nimport logging\n\nimport colour\n\nfrom manim import constants, logger, config\nfrom .utils import make_config_parser\nfrom .logger import JSO...
diff --git a/docs/source/tutorials/configuration.rst b/docs/source/tutorials/configuration.rst index 344b3f6be1..2fd3cd7a69 100644 --- a/docs/source/tutorials/configuration.rst +++ b/docs/source/tutorials/configuration.rst @@ -46,77 +46,71 @@ The output looks as follows. .. testoutput:: :options: -ELLIPSIS, +NORMA...
voxel51__fiftyone-1316
[BUG] App grid view does not contain all samples On `develop`, when I load the quickstart dataset in the App and start scrolling, the grid view exhausts before it gets to the 200th sample: ```py import fiftyone as fo import fiftyone.zoo as foz dataset = foz.load_zoo_dataset("quickstart") session = fo.launch_ap...
[ { "content": "\"\"\"\nFiftyOne Tornado server.\n\n| Copyright 2017-2021, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport asyncio\nimport argparse\nfrom collections import defaultdict\nimport math\nimport os\nimport traceback\n\nimport tornado.escape\nimport tornado.ioloop\nimport torna...
[ { "content": "\"\"\"\nFiftyOne Tornado server.\n\n| Copyright 2017-2021, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport asyncio\nimport argparse\nfrom collections import defaultdict\nimport math\nimport os\nimport traceback\n\nimport tornado.escape\nimport tornado.ioloop\nimport torna...
diff --git a/fiftyone/server/main.py b/fiftyone/server/main.py index f248ee5992e..5f69ca634a8 100644 --- a/fiftyone/server/main.py +++ b/fiftyone/server/main.py @@ -254,9 +254,7 @@ async def get(self): samples = await foo.aggregate( StateHandler.sample_collection(), - view.skip((page ...
keras-team__keras-18968
Issue with TimeDistributed + LSTM layer From [here](https://stackoverflow.com/q/77654253/9215780). ```python from numpy import array import keras from keras.models import Sequential from keras.layers import Dense from keras.layers import TimeDistributed from keras.layers import LSTM # prepare sequence leng...
[ { "content": "import tensorflow as tf\nimport tree\n\nfrom keras.utils.nest import pack_sequence_as\n\n\ndef rnn(\n step_function,\n inputs,\n initial_states,\n go_backwards=False,\n mask=None,\n constants=None,\n unroll=False,\n input_length=None,\n time_major=False,\n zero_output...
[ { "content": "import tensorflow as tf\nimport tree\n\nfrom keras.utils.nest import pack_sequence_as\n\n\ndef rnn(\n step_function,\n inputs,\n initial_states,\n go_backwards=False,\n mask=None,\n constants=None,\n unroll=False,\n input_length=None,\n time_major=False,\n zero_output...
diff --git a/keras/backend/tensorflow/rnn.py b/keras/backend/tensorflow/rnn.py index 874c9f8e041e..ffea6bb625a1 100644 --- a/keras/backend/tensorflow/rnn.py +++ b/keras/backend/tensorflow/rnn.py @@ -90,7 +90,9 @@ def swap_batch_timestep(input_t): flattened_inputs = tree.flatten(inputs) time_steps = flattene...
PrefectHQ__prefect-9460
Prefect 2.10.3 introduces write access requirement for deployment creation ### First check - [X] I added a descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find it. - [X] I searched the Prefect documentation for this issue. - [X] I checked that this issue is related to...
[ { "content": "\"\"\"\nObjects for specifying deployments and utilities for loading flows from deployments.\n\"\"\"\n\nimport importlib\nimport json\nimport os\nimport sys\nfrom datetime import datetime\nfrom functools import partial\nfrom pathlib import Path\nfrom typing import Any, Dict, Iterable, List, Option...
[ { "content": "\"\"\"\nObjects for specifying deployments and utilities for loading flows from deployments.\n\"\"\"\n\nimport importlib\nimport json\nimport os\nimport sys\nfrom datetime import datetime\nfrom functools import partial\nfrom pathlib import Path\nfrom typing import Any, Dict, Iterable, List, Option...
diff --git a/src/prefect/deployments.py b/src/prefect/deployments.py index 4048d11109e1..2cfec7435946 100644 --- a/src/prefect/deployments.py +++ b/src/prefect/deployments.py @@ -786,7 +786,8 @@ async def build_from_flow( deployment.parameter_openapi_schema = parameter_schema(flow) # ensure the igno...
Textualize__rich-2037
[BUG] Inspecting a NamedTuple defined int the REPL throws an error I suspect this is not exclusive to NamedTuples <img width="1452" alt="Screenshot 2022-03-07 at 15 08 46" src="https://user-images.githubusercontent.com/554369/157060930-7e517028-f587-4c48-906a-a807108a1687.png">
[ { "content": "from __future__ import absolute_import\n\nimport inspect\nfrom inspect import cleandoc, getdoc, getfile, isclass, ismodule, signature\nfrom typing import Any, Iterable, Optional, Tuple\n\nfrom .console import Group, RenderableType\nfrom .highlighter import ReprHighlighter\nfrom .jupyter import Jup...
[ { "content": "from __future__ import absolute_import\n\nimport inspect\nfrom inspect import cleandoc, getdoc, getfile, isclass, ismodule, signature\nfrom typing import Any, Iterable, Optional, Tuple\n\nfrom .console import Group, RenderableType\nfrom .highlighter import ReprHighlighter\nfrom .jupyter import Jup...
diff --git a/CHANGELOG.md b/CHANGELOG.md index eb6b62623..dcd9cbdab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed Pretty measure not respecting expand_all https://github.com/Textualize/rich/issues/1998 - Collapse...
comic__grand-challenge.org-668
Unpin redis Celery does not support the redis v3 client so this is pinned for now. Unpin it when it is supported by Celery See: celery/celery#5178
[ { "content": "# Django settings for comic project.\nimport glob\nimport os\nimport re\nimport uuid\nfrom datetime import timedelta\nfrom distutils.util import strtobool as strtobool_i\n\nfrom django.contrib.messages import constants as messages\nfrom django.core.exceptions import ImproperlyConfigured\n\nfrom co...
[ { "content": "# Django settings for comic project.\nimport glob\nimport os\nimport re\nimport uuid\nfrom datetime import timedelta\nfrom distutils.util import strtobool as strtobool_i\n\nfrom django.contrib.messages import constants as messages\nfrom django.core.exceptions import ImproperlyConfigured\n\nfrom co...
diff --git a/Pipfile b/Pipfile index f8d0aed13f..5c1c41c6d6 100644 --- a/Pipfile +++ b/Pipfile @@ -17,7 +17,7 @@ pyupgrade = "*" [packages] "beautifulsoup4" = "*" celery = "*" -redis = "<3.0" +redis = "*" django = "<2.2" django-countries = "*" django-crispy-forms = "*" diff --git a/Pipfile.lock b/Pipfile.lock ind...
pymedusa__Medusa-11652
Anime titles with S2 (for second season) in the filename snatch properly but replace episodes in season 1 during postprocess **Describe the bug** When downloading an anime series with a season 2 (or possibly later) and the scene name is "Title S2...", it snatches fine but when it goes to postprocess it, it sees it as ...
[ { "content": "# coding=utf-8\n\n\"\"\"Scene exceptions module.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\nimport time\nfrom collections import defaultdict, namedtuple\nfrom os.path import join\n\nimport adba\n\nfrom medusa import app, db\nfrom medusa.helpers import sanitize_scene_name\n...
[ { "content": "# coding=utf-8\n\n\"\"\"Scene exceptions module.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\nimport time\nfrom collections import defaultdict, namedtuple\nfrom os.path import join\n\nimport adba\n\nfrom medusa import app, db\nfrom medusa.helpers import sanitize_scene_name\n...
diff --git a/medusa/scene_exceptions.py b/medusa/scene_exceptions.py index b70f2eb784..7dcf609761 100644 --- a/medusa/scene_exceptions.py +++ b/medusa/scene_exceptions.py @@ -41,7 +41,10 @@ def refresh_exceptions_cache(series_obj=None): logger.info('Updating exception_cache and exception_season_cache') # Em...
dj-stripe__dj-stripe-910
Irreversible migrations It appears that we're unable to migrate backwards, you should be able to remove the dj-stripe db tables painlessly. Am I missing something? Django 2.1.9 dj-stripe==2.0.3 To reproduce- install app, migrate, attempt to migrate backwards ``` ./manage.py migrate djstripe zero django.db...
[ { "content": "# Generated by Django 2.1.4 on 2019-02-27 21:37\n\nimport django.core.validators\nimport django.db.models.deletion\nfrom django.db import migrations, models\n\nimport djstripe.enums\nimport djstripe.fields\n\n\ndef postgres_migration_prep(apps, schema_editor):\n\t\"\"\"\n\tSet null text fields to ...
[ { "content": "# Generated by Django 2.1.4 on 2019-02-27 21:37\n\nimport django.core.validators\nimport django.db.models.deletion\nfrom django.db import migrations, models\n\nimport djstripe.enums\nimport djstripe.fields\n\n\ndef postgres_migration_prep(apps, schema_editor):\n\t\"\"\"\n\tSet null text fields to ...
diff --git a/HISTORY.rst b/HISTORY.rst index 127c8e0cf9..38b4366761 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,13 @@ History ======= +2.0.4 (unreleased) +------------------ + +This is a bugfix-only version: + +- Fixed irreversible migration (#909) + 2.0.3 (2019-06-11) ------------------ diff --git a/...
cupy__cupy-7203
Typo in raise from einsum ### Description In this line: https://github.com/cupy/cupy/blob/master/cupy/linalg/_einsum.py#L511 einsum() tries to raise an error: ```py raise TypeError('Did not understand the following kwargs: %s' % list(kwargs.keys)) ``` but I believe it should be `...
[ { "content": "import copy\nimport itertools\nimport operator\nimport string\nimport warnings\n\nimport cupy\nfrom cupy._core import _accelerator\nfrom cupy import _util\nfrom cupy.linalg._einsum_opt import _greedy_path\nfrom cupy.linalg._einsum_opt import _optimal_path\nfrom cupy.linalg._einsum_cutn import _try...
[ { "content": "import copy\nimport itertools\nimport operator\nimport string\nimport warnings\n\nimport cupy\nfrom cupy._core import _accelerator\nfrom cupy import _util\nfrom cupy.linalg._einsum_opt import _greedy_path\nfrom cupy.linalg._einsum_opt import _optimal_path\nfrom cupy.linalg._einsum_cutn import _try...
diff --git a/cupy/linalg/_einsum.py b/cupy/linalg/_einsum.py index 3ce7af1b8d5..1a27f44080b 100644 --- a/cupy/linalg/_einsum.py +++ b/cupy/linalg/_einsum.py @@ -509,7 +509,7 @@ def einsum(*operands, **kwargs): optimize = 'greedy' if kwargs: raise TypeError('Did not understand the following kwargs...
Pyomo__pyomo-2319
`build-extensions` fails on pip install because it can't find `FindASL.cmake` ## Summary In a fresh Python 3.9.9 environment, I ran `pip install pyomo`, then `pyomo build-extensions`, and get a failure to build the PyNumero libraries as `ampl_function_demo/src/FindASL.cmake` is not found. It doesn't appear to be anywh...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin...
diff --git a/setup.py b/setup.py index eb0274e5c41..1864eee25ef 100644 --- a/setup.py +++ b/setup.py @@ -247,6 +247,7 @@ def _print_deps(self, deplist): }, packages = find_packages(exclude=("scripts",)), package_data = { + "pyomo.contrib.ampl_function_demo": ["src/*"], "pyomo.contrib.apps...
google__turbinia-743
Update google-cloud-logging package We need to use version >= 2 because of dftimewolf dependencies, and we need to use <=2.0.2 for the google cloud error package, but when trying to use that version I get the following: ``` $ turbiniactl -d server Traceback (most recent call last): File "/home/aaronpeterson/.lo...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U...
diff --git a/requirements.txt b/requirements.txt index c46f95996..00e58e389 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ google-auth google-cloud-core google-cloud-datastore<=2.0.0 google-cloud-error-reporting -google-cloud-logging==1.15.1 +google-cloud-logging>=2.0.0 google-cloud-pubsub==1....
netbox-community__netbox-16037
Unable to run scripts from CLI in v4.0 ### Deployment Type Self-hosted ### NetBox Version v4.0.0 ### Python Version 3.11 ### Steps to Reproduce 1. Create a script 2. Run it with `python manage.py runscript 'module.ScriptName' inside the NetBox instance ### Expected Behavior Script should run. ### Observed ...
[ { "content": "import json\nimport logging\nimport sys\nimport traceback\nimport uuid\n\nfrom django.contrib.auth import get_user_model\nfrom django.core.management.base import BaseCommand, CommandError\nfrom django.db import transaction\n\nfrom core.choices import JobStatusChoices\nfrom core.models import Job\n...
[ { "content": "import json\nimport logging\nimport sys\nimport traceback\nimport uuid\n\nfrom django.contrib.auth import get_user_model\nfrom django.core.management.base import BaseCommand, CommandError\nfrom django.db import transaction\n\nfrom core.choices import JobStatusChoices\nfrom core.models import Job\n...
diff --git a/netbox/extras/management/commands/runscript.py b/netbox/extras/management/commands/runscript.py index 160e8813f4a..ef1bd514197 100644 --- a/netbox/extras/management/commands/runscript.py +++ b/netbox/extras/management/commands/runscript.py @@ -85,6 +85,7 @@ def _run_script(): module_name, script...
CiviWiki__OpenCiviWiki-1436
Civis are probably now deleted from the DB If there is a problem with one cause and two solutions the total number of Civis is 4. If I delete the cause, the number of Civis changes to 3 instead of 1. I suspect that in this case the solutions are not deleted.
[ { "content": "import json\n\nfrom notifications.signals import notify\nfrom accounts.models import Profile\nfrom core.custom_decorators import require_post_params\nfrom common.utils import save_image_from_url\nfrom django.forms.models import model_to_dict\nfrom django.contrib.auth.decorators import login_requir...
[ { "content": "import json\n\nfrom notifications.signals import notify\nfrom accounts.models import Profile\nfrom core.custom_decorators import require_post_params\nfrom common.utils import save_image_from_url\nfrom django.forms.models import model_to_dict\nfrom django.contrib.auth.decorators import login_requir...
diff --git a/project/core/templates/static/js/thread.js b/project/core/templates/static/js/thread.js index fd79d0cf1..bb9384a73 100644 --- a/project/core/templates/static/js/thread.js +++ b/project/core/templates/static/js/thread.js @@ -639,11 +639,17 @@ cw.CiviView = BB.View.extend({ }, succ...
ipython__ipython-5395
Converting notebooks with spaces in their names to RST gives broken images I am using `ipython nbconvert --to rst example1.ipynb` to convert my example notebooks into reStructuredText, for incorporation into my package's Sphinx documentation. This works quite well, unless the filename has a space in it. In this case, a...
[ { "content": "\"\"\"Markdown filters\nThis file contains a collection of utility filters for dealing with \nmarkdown within Jinja templates.\n\"\"\"\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, the IPython Development Team.\n#\n# Distributed under the te...
[ { "content": "\"\"\"Markdown filters\nThis file contains a collection of utility filters for dealing with \nmarkdown within Jinja templates.\n\"\"\"\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, the IPython Development Team.\n#\n# Distributed under the te...
diff --git a/IPython/nbconvert/filters/markdown.py b/IPython/nbconvert/filters/markdown.py index e550565264d..0d6f679a077 100755 --- a/IPython/nbconvert/filters/markdown.py +++ b/IPython/nbconvert/filters/markdown.py @@ -103,7 +103,7 @@ def markdown2html_marked(source, encoding='utf-8'): return out.rstrip('\n') ...
pwndbg__pwndbg-747
Bad unsigned casting ### Description `pwndbg.memory.u` returns signed integers (with minus `-` sign). ### Steps to reproduce ```c #include <stdio.h> #include <stdint.h> int main(int argc, char const *argv[]) { uint64_t x = 0xb60ad86e8fb52ea8; printf("%p\n", &x); getc(stdin); return ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nThis hook is necessary for compatibility with Python2.7 versions of GDB\nsince they cannot directly cast to integer a gdb.Value object that is\nnot already an integer type.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ impo...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nThis hook is necessary for compatibility with Python2.7 versions of GDB\nsince they cannot directly cast to integer a gdb.Value object that is\nnot already an integer type.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ impo...
diff --git a/pwndbg/inthook.py b/pwndbg/inthook.py index 0ff1a516e4c..6909a33fa8d 100644 --- a/pwndbg/inthook.py +++ b/pwndbg/inthook.py @@ -39,7 +39,7 @@ def __new__(cls, value, *a, **kw): if pwndbg.typeinfo.is_pointer(value): value = value.cast(pwndbg.typeinfo.size_t) else: ...
dbt-labs__dbt-core-4890
[CT-381] [HOTFIX] Homebrew Incident Resolution ### What Happened dbt-core depends on the dbt-extractor package, and the dbt-extractor package depends on tree-sitter-jinja2. dbt-extractor specifies tree-sitter-jinja2 via a github link using the git protocol. Github security rules changed to require this link to use h...
[ { "content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 7, 2):\n print(\"Error: dbt does not support this version of Python.\")\n print(\"Please upgrade to Python 3.7.2 or higher.\")\n sys.exit(1)\n\n\nfrom setuptools import setup\n\ntry:\n from setuptools import find...
[ { "content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 7, 2):\n print(\"Error: dbt does not support this version of Python.\")\n print(\"Please upgrade to Python 3.7.2 or higher.\")\n sys.exit(1)\n\n\nfrom setuptools import setup\n\ntry:\n from setuptools import find...
diff --git a/.changes/unreleased/Fixes-20220317-132418.yaml b/.changes/unreleased/Fixes-20220317-132418.yaml new file mode 100644 index 00000000000..88bfd05b254 --- /dev/null +++ b/.changes/unreleased/Fixes-20220317-132418.yaml @@ -0,0 +1,7 @@ +kind: Fixes +body: depend on new dbt-extractor version with fixed github li...
kubeflow__pipelines-8885
[sdk] Environment variable set in container not reflected in IR ### Environment * KFP version: N/A * KFP SDK version: 2.0.0-beta.12 * All dependencies version: <!-- Specify the output of the following shell command: $pip list | grep kfp --> ### Steps to reproduce Compile the [sample pipeline with e...
[ { "content": "# Copyright 2021-2022 The Kubeflow 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 requi...
[ { "content": "# Copyright 2021-2022 The Kubeflow 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 requi...
diff --git a/sdk/RELEASE.md b/sdk/RELEASE.md index a0e2cd0ec0d..5816e3b358d 100644 --- a/sdk/RELEASE.md +++ b/sdk/RELEASE.md @@ -12,6 +12,7 @@ ## Bug fixes and other changes * Enables output definitions when compiling components as pipelines. [\#8848](https://github.com/kubeflow/pipelines/pull/8848) * Fix bug when p...
localstack__localstack-1589
describe-stream for dynamodb streams crashes Steps to recreate: 1. create table ``` aws dynamodb create-table --table-name MusicCollection --attribute-definitions AttributeName=Artist,AttributeType=S AttributeName=SongTitle,AttributeType=S --key-schema AttributeName=Artist,KeyType=HASH AttributeName=SongTitle,KeyTyp...
[ { "content": "import json\nimport uuid\nimport hashlib\nfrom flask import Flask, jsonify, request, make_response\nfrom localstack.services import generic_proxy\nfrom localstack.utils.aws import aws_stack\nfrom localstack.utils.common import to_str, to_bytes\nfrom localstack.utils.analytics import event_publishe...
[ { "content": "import json\nimport uuid\nimport hashlib\nfrom flask import Flask, jsonify, request, make_response\nfrom localstack.services import generic_proxy\nfrom localstack.utils.aws import aws_stack\nfrom localstack.utils.common import to_str, to_bytes\nfrom localstack.utils.analytics import event_publishe...
diff --git a/localstack/services/dynamodbstreams/dynamodbstreams_api.py b/localstack/services/dynamodbstreams/dynamodbstreams_api.py index 0de05b1d3d235..c5c66f68a5f8b 100644 --- a/localstack/services/dynamodbstreams/dynamodbstreams_api.py +++ b/localstack/services/dynamodbstreams/dynamodbstreams_api.py @@ -139,7 +139,...
rotki__rotki-2634
Balancer trades end up having the wrong rate ## Problem Definition As noticed by @kelsos balancer swaps, when turned into a trade have the inverse rate. Swaps are always treated as buys. And in a buy the rate is defined as: ``` All pairs should be in the form of ``BASECURRENCY_QUOTECURRENCY``. For a ``buy`` this...
[ { "content": "import logging\nfrom typing import Any, Dict, List, Tuple\n\nfrom typing_extensions import Literal\n\nfrom rotkehlchen.accounting.structures import Balance\nfrom rotkehlchen.assets.utils import get_ethereum_token\nfrom rotkehlchen.chain.ethereum.trades import AMMSwap, AMMTrade\nfrom rotkehlchen.co...
[ { "content": "import logging\nfrom typing import Any, Dict, List, Tuple\n\nfrom typing_extensions import Literal\n\nfrom rotkehlchen.accounting.structures import Balance\nfrom rotkehlchen.assets.utils import get_ethereum_token\nfrom rotkehlchen.chain.ethereum.trades import AMMSwap, AMMTrade\nfrom rotkehlchen.co...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 0ebf520f1c..61e2dd72f2 100755 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -12,6 +12,7 @@ Changelog * :feature:`2424` Users will now see a progress bar while the automatic update is downloading, and proper notification messages in case of failure. * :...
pypa__cibuildwheel-881
feat: use feature in-tree-build for pip Closes #696
[ { "content": "import os\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\nfrom pathlib import Path\nfrom typing import Dict, List, NamedTuple, Optional, Sequence, Set\nfrom zipfile import ZipFile\n\nfrom .architecture import Architecture\nfrom .environment import ParsedEnvironment\nfrom .logger im...
[ { "content": "import os\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\nfrom pathlib import Path\nfrom typing import Dict, List, NamedTuple, Optional, Sequence, Set\nfrom zipfile import ZipFile\n\nfrom .architecture import Architecture\nfrom .environment import ParsedEnvironment\nfrom .logger im...
diff --git a/cibuildwheel/resources/build-platforms.toml b/cibuildwheel/resources/build-platforms.toml index 10ac3c7f1..78efd3f8b 100644 --- a/cibuildwheel/resources/build-platforms.toml +++ b/cibuildwheel/resources/build-platforms.toml @@ -11,6 +11,7 @@ python_configurations = [ { identifier = "cp39-manylinux_i686"...
nautobot__nautobot-3034
Search Fields in Advanced Filter Form sorted alphabetically <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reporting reproducible bugs. If you need assistance with Nautobot installation, or if you have a general question, please start a discussion ...
[ { "content": "import json\nimport logging\nimport re\n\nimport yaml\nfrom django import forms\nfrom django.forms import formset_factory\nfrom django.urls import reverse\n\nfrom nautobot.ipam.formfields import IPNetworkFormField\nfrom nautobot.utilities.utils import (\n build_lookup_label,\n get_filterset_...
[ { "content": "import json\nimport logging\nimport re\n\nimport yaml\nfrom django import forms\nfrom django.forms import formset_factory\nfrom django.urls import reverse\n\nfrom nautobot.ipam.formfields import IPNetworkFormField\nfrom nautobot.utilities.utils import (\n build_lookup_label,\n get_filterset_...
diff --git a/changes/3028.fixed b/changes/3028.fixed new file mode 100644 index 00000000000..851ffacede2 --- /dev/null +++ b/changes/3028.fixed @@ -0,0 +1 @@ +Fixed filter fields on advanced filter form not being alpha-sorted. diff --git a/nautobot/utilities/forms/forms.py b/nautobot/utilities/forms/forms.py index a852...
getsentry__sentry-python-1029
Use `request.path_info` to create Django transaction name Currently, the Django integration creates a transaction from the request URL by calling `LEGACY_RESOLVER.resolve(request.path)`. This transforms URLS such as `/test/1/` into `/test/{pk}/`. However, if the Django application is served from a non-root path, suc...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\n\nimport sys\nimport threading\nimport weakref\n\nfrom sentry_sdk._types import MYPY\nfrom sentry_sdk.hub import Hub, _should_send_default_pii\nfrom sentry_sdk.scope import add_global_event_processor\nfrom sentry_sdk.serializer impor...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\n\nimport sys\nimport threading\nimport weakref\n\nfrom sentry_sdk._types import MYPY\nfrom sentry_sdk.hub import Hub, _should_send_default_pii\nfrom sentry_sdk.scope import add_global_event_processor\nfrom sentry_sdk.serializer impor...
diff --git a/sentry_sdk/integrations/django/__init__.py b/sentry_sdk/integrations/django/__init__.py index 3ef21a55ca..2b571f5e11 100644 --- a/sentry_sdk/integrations/django/__init__.py +++ b/sentry_sdk/integrations/django/__init__.py @@ -330,7 +330,7 @@ def _before_get_response(request): resolve(r...
conda__conda-2862
file:// URLs don't work anymore with conda 4.1.3 Conda 4.1.3 does not work anymore with **file://** URLs: ``` (E:\Anaconda3) C:\Windows\system32>conda update --override-channels --channel file:///A:/pkgs/free --all Fetching package metadata ....Error: Could not find URL: file:///A:/pkgs/free/win-64/ ``` But `A:\pkgs\...
[ { "content": "# (c) 2012-2015 Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\nfrom __future__ import print_function, division, absolute_import\n\...
[ { "content": "# (c) 2012-2015 Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\nfrom __future__ import print_function, division, absolute_import\n\...
diff --git a/conda/fetch.py b/conda/fetch.py index 53776523945..5b1ac788c81 100644 --- a/conda/fetch.py +++ b/conda/fetch.py @@ -98,7 +98,7 @@ def fetch_repodata(url, cache_dir=None, use_cache=False, session=None): if "_mod" in cache: headers["If-Modified-Since"] = cache["_mod"] - if 'repo.continuum....
OpenEnergyPlatform__oeplatform-1255
Include the Open Energy Compendium in the navigation bar ## Description of the issue A first version of the **Open Energy Compendium** is ready for integration. ## Ideas of solution Link under `About` / `Compendium` ## Workflow checklist - [x] I am aware of the workflow in [CONTRIBUTING.md](https://github....
[ { "content": "\"\"\"\nDjango settings for oeplatform project.\n\nGenerated by 'django-admin startproject' using Django 1.8.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/e...
[ { "content": "\"\"\"\nDjango settings for oeplatform project.\n\nGenerated by 'django-admin startproject' using Django 1.8.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/e...
diff --git a/base/templates/base/base.html b/base/templates/base/base.html index d6f8679d9..55148cdde 100644 --- a/base/templates/base/base.html +++ b/base/templates/base/base.html @@ -73,8 +73,8 @@ </a> <div class="dropdown-menu" aria-labelledby="navbarDropdownAbout"> ...
pallets__click-1832
Reconsider the choice of adding a newline after multi-line option definitions First, thanks for your work. I ask you to reconsider the feature introduced with PR https://github.com/pallets/click/pull/1081. 1. Adding a newline only to some options feels inconsistent and leads to a weird-looking "non-uniform" help ...
[ { "content": "import typing as t\nfrom contextlib import contextmanager\n\nfrom ._compat import term_len\nfrom .parser import split_opt\n\n# Can force a width. This is used by the test system\nFORCED_WIDTH: t.Optional[int] = None\n\n\ndef measure_table(rows):\n widths = {}\n for row in rows:\n for...
[ { "content": "import typing as t\nfrom contextlib import contextmanager\n\nfrom ._compat import term_len\nfrom .parser import split_opt\n\n# Can force a width. This is used by the test system\nFORCED_WIDTH: t.Optional[int] = None\n\n\ndef measure_table(rows):\n widths = {}\n for row in rows:\n for...
diff --git a/CHANGES.rst b/CHANGES.rst index 6b5cb3541..b88d16fb7 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -149,6 +149,8 @@ Unreleased passed in as a default value. :issue:`549, 736, 764, 921, 1015, 1618` - Fix formatting when ``Command.options_metavar`` is empty. :pr:`1551` +- Revert adding space b...
nltk__nltk-3070
`TreebankWordDetokenizer` inconsistent with recombining contractions Hello! ## Details Some quick tests I ran: ```python from nltk.tokenize import TreebankWordDetokenizer >>> TreebankWordDetokenizer().tokenize(["Do", "n't"]) "Do n't" >>> TreebankWordDetokenizer().tokenize(["Do", "n't", "want"]) "Don't want" ...
[ { "content": "# Natural Language Toolkit: Tokenizers\n#\n# Copyright (C) 2001-2022 NLTK Project\n# Author: Edward Loper <edloper@gmail.com>\n# Michael Heilman <mheilman@cmu.edu> (re-port from http://www.cis.upenn.edu/~treebank/tokenizer.sed)\n# Tom Aarsen <> (modifications)\n#\n# URL: <https://w...
[ { "content": "# Natural Language Toolkit: Tokenizers\n#\n# Copyright (C) 2001-2022 NLTK Project\n# Author: Edward Loper <edloper@gmail.com>\n# Michael Heilman <mheilman@cmu.edu> (re-port from http://www.cis.upenn.edu/~treebank/tokenizer.sed)\n# Tom Aarsen <> (modifications)\n#\n# URL: <https://w...
diff --git a/nltk/test/tokenize.doctest b/nltk/test/tokenize.doctest index 737f4bbfdb..6959f39c3b 100644 --- a/nltk/test/tokenize.doctest +++ b/nltk/test/tokenize.doctest @@ -132,6 +132,15 @@ Testing treebank's detokenizer >>> s = "(Sentence) starting with parentheses." >>> detokenizer.detokenize(word_tokeniz...
great-expectations__great_expectations-6366
ConfigNotFoundError when instantiating DataContext with context_root_dir **Describe the bug** The DataContext allows instantiating from a user-defined [context_root_dir](https://github.com/great-expectations/great_expectations/blob/5adf91121d49ce3144a1b4ccaa5ac58c00a99373/great_expectations/data_context/data_context/d...
[ { "content": "from __future__ import annotations\n\nimport logging\nimport os\nimport shutil\nimport warnings\nfrom typing import Optional, Union\n\nfrom ruamel.yaml import YAML, YAMLError\nfrom ruamel.yaml.constructor import DuplicateKeyError\n\nimport great_expectations.exceptions as ge_exceptions\nfrom great...
[ { "content": "from __future__ import annotations\n\nimport logging\nimport os\nimport shutil\nimport warnings\nfrom typing import Optional, Union\n\nfrom ruamel.yaml import YAML, YAMLError\nfrom ruamel.yaml.constructor import DuplicateKeyError\n\nimport great_expectations.exceptions as ge_exceptions\nfrom great...
diff --git a/great_expectations/data_context/data_context/data_context.py b/great_expectations/data_context/data_context/data_context.py index 96dc568431f8..e2799d7344e8 100644 --- a/great_expectations/data_context/data_context/data_context.py +++ b/great_expectations/data_context/data_context/data_context.py @@ -282,7...
rasterio__rasterio-1194
InMemoryRaster should validate shape of input image Right now, we aren't validating `shape` of incoming `image` used to create `InMemoryRaster`, which leads to trickier exceptions like: ``` rasterio/_features.pyx:303: in rasterio._features._rasterize with InMemoryRaster(image=image, transform=transform) as mem...
[ { "content": "\"\"\"Functions for working with features in a raster dataset.\"\"\"\n\n\nimport logging\n\nimport numpy as np\n\nfrom rasterio._features import _shapes, _sieve, _rasterize, _bounds\nfrom rasterio.dtypes import validate_dtype, can_cast_dtype, get_minimum_dtype\nfrom rasterio.env import ensure_env\...
[ { "content": "\"\"\"Functions for working with features in a raster dataset.\"\"\"\n\n\nimport logging\n\nimport numpy as np\n\nfrom rasterio._features import _shapes, _sieve, _rasterize, _bounds\nfrom rasterio.dtypes import validate_dtype, can_cast_dtype, get_minimum_dtype\nfrom rasterio.env import ensure_env\...
diff --git a/rasterio/_io.pyx b/rasterio/_io.pyx index 5eafca972..3251026c9 100644 --- a/rasterio/_io.pyx +++ b/rasterio/_io.pyx @@ -1588,6 +1588,12 @@ cdef class InMemoryRaster: height, width = image.shape dtype = image.dtype.name + if height is None or height == 0: + ...
psf__black-2836
Ignore __pypackages__ directory contents **Describe the bug** When using [PDM](https://pdm.fming.dev/), `black` does not ignore `__pypackages__` directory contents. **To Reproduce** Run `pdm run black .` **Expected behavior** `black` should reformat only project files. **Environment** - Black's ver...
[ { "content": "DEFAULT_LINE_LENGTH = 88\nDEFAULT_EXCLUDES = r\"/(\\.direnv|\\.eggs|\\.git|\\.hg|\\.mypy_cache|\\.nox|\\.tox|\\.venv|venv|\\.svn|_build|buck-out|build|dist)/\" # noqa: B950\nDEFAULT_INCLUDES = r\"(\\.pyi?|\\.ipynb)$\"\nSTDIN_PLACEHOLDER = \"__BLACK_STDIN_FILENAME__\"\n", "path": "src/black/co...
[ { "content": "DEFAULT_LINE_LENGTH = 88\nDEFAULT_EXCLUDES = r\"/(\\.direnv|\\.eggs|\\.git|\\.hg|\\.mypy_cache|\\.nox|\\.tox|\\.venv|venv|\\.svn|_build|buck-out|build|dist|__pypackages__)/\" # noqa: B950\nDEFAULT_INCLUDES = r\"(\\.pyi?|\\.ipynb)$\"\nSTDIN_PLACEHOLDER = \"__BLACK_STDIN_FILENAME__\"\n", "path"...
diff --git a/CHANGES.md b/CHANGES.md index 9c92f8f9b58..a840e013041 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # Change Log +## Unreleased + +### Configuration + +- Do not format `__pypackages__` directories by default (#2836) + ## 22.1.0 At long last, _Black_ is no longer a beta product! This is ...
feast-dev__feast-3719
BigQuery internal type mapping does not support NUMERIC ## Expected Behavior Should handle mapping from BQ's NUMERIC type ## Current Behavior Thrown KeyError ## Steps to reproduce Prepare feature view with data source contains at least one NUMERIC column ### Specifications - Version: 0.32.0 - Platform:...
[ { "content": "# Copyright 2019 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
[ { "content": "# Copyright 2019 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
diff --git a/sdk/python/feast/type_map.py b/sdk/python/feast/type_map.py index df853462836..f088d519e78 100644 --- a/sdk/python/feast/type_map.py +++ b/sdk/python/feast/type_map.py @@ -528,6 +528,7 @@ def bq_to_feast_value_type(bq_type_as_str: str) -> ValueType: "DATETIME": ValueType.UNIX_TIMESTAMP, "...
jupyterhub__jupyterhub-245
500 : Internal Server Error KeyError: 'user' Hi, I'm trying to install jupyterhub locally. but running and connecting to the server I get a 500, I can get to the administrator pages (when sudo jupyterhub 'ing) but not add users etc. however when I go to the root page (or users dashboard) I get a 500 with : Uncaught e...
[ { "content": "#!/usr/bin/env python3\n\"\"\"Extend regular notebook server to be aware of multiuser things.\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport os\ntry:\n from urllib.parse import quote\nexcept ImportError:\n # PY2 Compat...
[ { "content": "#!/usr/bin/env python3\n\"\"\"Extend regular notebook server to be aware of multiuser things.\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport os\ntry:\n from urllib.parse import quote\nexcept ImportError:\n # PY2 Compat...
diff --git a/jupyterhub/singleuser.py b/jupyterhub/singleuser.py index c911b63116..b0723b3f79 100644 --- a/jupyterhub/singleuser.py +++ b/jupyterhub/singleuser.py @@ -92,7 +92,7 @@ def get_user(self): if not auth_data: # treat invalid token the same as no token return None...
encode__uvicorn-975
OSError when --port=0 ### Checklist <!-- Please make sure you check all these items before submitting your bug report. --> - [x] The bug is reproducible against the latest release and/or `master`. - [x] There are no similar issues or pull requests to fix it yet. ### Describe the bug Since version 0.13.4 (l...
[ { "content": "import asyncio\nimport functools\nimport logging\nimport os\nimport platform\nimport signal\nimport socket\nimport sys\nimport threading\nimport time\nfrom email.utils import formatdate\nfrom typing import List\n\nimport click\n\nHANDLED_SIGNALS = (\n signal.SIGINT, # Unix signal 2. Sent by Ct...
[ { "content": "import asyncio\nimport functools\nimport logging\nimport os\nimport platform\nimport signal\nimport socket\nimport sys\nimport threading\nimport time\nfrom email.utils import formatdate\nfrom typing import List\n\nimport click\n\nHANDLED_SIGNALS = (\n signal.SIGINT, # Unix signal 2. Sent by Ct...
diff --git a/uvicorn/server.py b/uvicorn/server.py index b54be77e8..fa174b9de 100644 --- a/uvicorn/server.py +++ b/uvicorn/server.py @@ -187,7 +187,7 @@ def _log_started_message(self, listeners: List[socket.SocketType]) -> None: port = config.port if port == 0: - port = listen...
ephios-dev__ephios-1078
Notification Mails detected as SPAM **Describe the bug** This is likely specific to the exact email setup users have but in my case, the notification mails in my case are caught by the SpamAssassin rule `TO_NO_BRKTS_HTML_IMG` which is discussed [here](https://stackoverflow.com/questions/40082594/meaning-of-to-no-brkts...
[ { "content": "import logging\nimport smtplib\nimport traceback\n\nfrom django.conf import settings\nfrom django.core.mail import mail_admins\nfrom django.utils.translation import gettext_lazy as _\nfrom webpush import send_user_notification\n\nfrom ephios.core.models.users import Notification\nfrom ephios.core....
[ { "content": "import logging\nimport smtplib\nimport traceback\n\nfrom django.conf import settings\nfrom django.core.mail import mail_admins\nfrom django.utils.translation import gettext_lazy as _\nfrom webpush import send_user_notification\n\nfrom ephios.core.models.users import Notification\nfrom ephios.core....
diff --git a/ephios/core/services/notifications/backends.py b/ephios/core/services/notifications/backends.py index a0429a8b9..21a69be46 100644 --- a/ephios/core/services/notifications/backends.py +++ b/ephios/core/services/notifications/backends.py @@ -91,7 +91,9 @@ def can_send(cls, notification): @classmethod ...
conda__conda-4100
On Windows, conda 4.0.5-py35_0 cannot be updated to 4.3.0-py35_1 On a fresh install of the latest Miniconda on Windows, the following fails: `conda update -c conda-canary --all` Giving: ``` Fetching package metadata: ...... Solving package specifications: ......... Package plan for installation in environ...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nThis file should hold most string literals and magic numbers used throughout the code base.\nThe exception is if a literal is specifically meant to be private to and isolated within a module.\nThink of this as a \"more static\" source of configuration information.\...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nThis file should hold most string literals and magic numbers used throughout the code base.\nThe exception is if a literal is specifically meant to be private to and isolated within a module.\nThink of this as a \"more static\" source of configuration information.\...
diff --git a/conda/base/constants.py b/conda/base/constants.py index 448db03079a..3b16efcc0b9 100644 --- a/conda/base/constants.py +++ b/conda/base/constants.py @@ -12,7 +12,10 @@ from os.path import join on_win = bool(sys.platform == "win32") -PREFIX_PLACEHOLDER = '/opt/anaconda1anaconda2anaconda3' +PREFIX_PLACEHO...
bridgecrewio__checkov-3353
Checkov crashed for "--compact" input parameter with "-o json -o junitxml" for multiple output **Describe the issue** Checkov is crashing when we use `--compact` input parameter with `-o json -o junitxml` for multiple output. **Examples** To create a sample `json` file, follow this documentation. https://learn.ha...
[ { "content": "from __future__ import annotations\n\nimport argparse\nimport itertools\nimport json\nimport logging\nimport os\nimport re\n\nfrom collections import defaultdict\nfrom collections.abc import Iterable\nfrom json import dumps\nfrom pathlib import Path\nfrom typing import List, Dict, Any, Optional, c...
[ { "content": "from __future__ import annotations\n\nimport argparse\nimport itertools\nimport json\nimport logging\nimport os\nimport re\n\nfrom collections import defaultdict\nfrom collections.abc import Iterable\nfrom json import dumps\nfrom pathlib import Path\nfrom typing import List, Dict, Any, Optional, c...
diff --git a/checkov/common/runners/runner_registry.py b/checkov/common/runners/runner_registry.py index ac3fe79839..9bd0770c46 100644 --- a/checkov/common/runners/runner_registry.py +++ b/checkov/common/runners/runner_registry.py @@ -436,5 +436,5 @@ def strip_code_blocks_from_json(report_jsons: List[Dict[str, Any]]) -...
openvinotoolkit__training_extensions-2672
POT -> PTQ transition in docs Steps to be done: - Rename POT -> PTQ - Replace POT docs links with NNCF.PTQ docs - Mention that the output model would be quantized to INT8 Related pages: https://openvinotoolkit.github.io/training_extensions/stable/guide/explanation/additional_features/models_optimization.html h...
[ { "content": "\"\"\"Model quality evaluation tool.\"\"\"\n\n# Copyright (C) 2021 Intel Corporation\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/li...
[ { "content": "\"\"\"Model quality evaluation tool.\"\"\"\n\n# Copyright (C) 2021 Intel Corporation\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/li...
diff --git a/docs/source/guide/explanation/additional_features/models_optimization.rst b/docs/source/guide/explanation/additional_features/models_optimization.rst index 4b3c9ec4787..08715fb3165 100644 --- a/docs/source/guide/explanation/additional_features/models_optimization.rst +++ b/docs/source/guide/explanation/add...
secdev__scapy-2872
Remove duplicated names from Contrib modules ### Motivation Creating a packet with fields having a duplicated name has always been very buggy (especially with fields like `ConditionalField`), and not recommended. Starting with 2.5.0, we will throw a `SyntaxWarning` when such a packet is created (https://github.com/s...
[ { "content": "# This file is part of Scapy.\n# See http://www.secdev.org/projects/scapy for more information.\n#\n# Scapy is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 2 of the Licen...
[ { "content": "# This file is part of Scapy.\n# See http://www.secdev.org/projects/scapy for more information.\n#\n# Scapy is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 2 of the Licen...
diff --git a/scapy/contrib/rpl_metrics.py b/scapy/contrib/rpl_metrics.py index 25e203b126e..afaa1789249 100644 --- a/scapy/contrib/rpl_metrics.py +++ b/scapy/contrib/rpl_metrics.py @@ -123,8 +123,8 @@ class RPLDAGMCNSA(DAGMCObj): # NSA Object Body Format ByteField("res", 0), ...
beeware__toga-2475
Winforms stack trace dialog buttons are unreliable ### Steps to reproduce Open the `dialogs` example, and click "Stack Trace". The dialog appears, and then 1 second later, this appears in the console: ``` Task was destroyed but it is pending! task: <Task pending name='Task-1' coro=<handler_with_cleanup() done, de...
[ { "content": "import asyncio\nfrom abc import ABC\nfrom pathlib import Path\n\nimport System.Windows.Forms as WinForms\nfrom System.Drawing import (\n ContentAlignment,\n Font as WinFont,\n FontFamily,\n FontStyle,\n SystemFonts,\n)\nfrom System.Windows.Forms import DialogResult, MessageBoxButton...
[ { "content": "import asyncio\nfrom abc import ABC\nfrom pathlib import Path\n\nimport System.Windows.Forms as WinForms\nfrom System.Drawing import (\n ContentAlignment,\n Font as WinFont,\n FontFamily,\n FontStyle,\n SystemFonts,\n)\nfrom System.Windows.Forms import DialogResult, MessageBoxButton...
diff --git a/changes/2474.bugfix.rst b/changes/2474.bugfix.rst new file mode 100644 index 0000000000..3e29dd7747 --- /dev/null +++ b/changes/2474.bugfix.rst @@ -0,0 +1 @@ +The stack trace dialog no longer raises an async timeout error when displayed. diff --git a/winforms/src/toga_winforms/dialogs.py b/winforms/src/tog...
getsentry__sentry-python-2541
Span `code.filepath` property has the absolute path, rather than the in-app path ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.37.0 ### Steps to Reproduce 1. Enable the `enable_db_query_source` SDK option 2. Instrument a path that has a query > 100ms 3. Examine the span that comes into Sentry ...
[ { "content": "import contextlib\nimport re\nimport sys\n\nimport sentry_sdk\nfrom sentry_sdk.consts import OP, SPANDATA\nfrom sentry_sdk.utils import (\n capture_internal_exceptions,\n Dsn,\n match_regex_list,\n to_string,\n is_sentry_url,\n _is_external_source,\n)\nfrom sentry_sdk._compat imp...
[ { "content": "import contextlib\nimport re\nimport sys\n\nimport sentry_sdk\nfrom sentry_sdk.consts import OP, SPANDATA\nfrom sentry_sdk.utils import (\n capture_internal_exceptions,\n Dsn,\n match_regex_list,\n to_string,\n is_sentry_url,\n _is_external_source,\n)\nfrom sentry_sdk._compat imp...
diff --git a/sentry_sdk/tracing_utils.py b/sentry_sdk/tracing_utils.py index 1beb48b538..0407b84f47 100644 --- a/sentry_sdk/tracing_utils.py +++ b/sentry_sdk/tracing_utils.py @@ -238,7 +238,8 @@ def add_query_source(hub, span): except Exception: filepath = None if filepath is not None: - ...
adamchainz__django-mysql-277
'dbparams' doesn't need to run system checks Summary: `manage.py dbparams` can be unnecessarily slow because it runs all the system checks, these can be disabled on the `Command` class quite easily.
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom optparse import make_option\n\nimport django\nfrom django.core.management import BaseCommand, CommandError\nfrom django.db import DEFAULT_DB_ALIAS, connections\nfrom django.db.utils import ConnectionDoesNotExist\n\nfrom djang...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom optparse import make_option\n\nimport django\nfrom django.core.management import BaseCommand, CommandError\nfrom django.db import DEFAULT_DB_ALIAS, connections\nfrom django.db.utils import ConnectionDoesNotExist\n\nfrom djang...
diff --git a/django_mysql/management/commands/dbparams.py b/django_mysql/management/commands/dbparams.py index 38738010..3ebe53f4 100644 --- a/django_mysql/management/commands/dbparams.py +++ b/django_mysql/management/commands/dbparams.py @@ -19,6 +19,8 @@ class Command(BaseCommand): "connection alias shou...
feast-dev__feast-3046
Wrong condition in to_snowflake method of snowflake provider ## Expected Behavior [to_snowflake](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/offline_stores/snowflake.py#L430) should ignore on_demand_feature_views if on_demand_feature_views is an empty list ## Current Behavior to_snowfl...
[ { "content": "import contextlib\nimport os\nimport uuid\nfrom datetime import datetime\nfrom pathlib import Path\nfrom typing import (\n Any,\n Callable,\n ContextManager,\n Dict,\n Iterator,\n List,\n Optional,\n Tuple,\n Union,\n cast,\n)\n\nimport numpy as np\nimport pandas as p...
[ { "content": "import contextlib\nimport os\nimport uuid\nfrom datetime import datetime\nfrom pathlib import Path\nfrom typing import (\n Any,\n Callable,\n ContextManager,\n Dict,\n Iterator,\n List,\n Optional,\n Tuple,\n Union,\n cast,\n)\n\nimport numpy as np\nimport pandas as p...
diff --git a/sdk/python/feast/infra/offline_stores/snowflake.py b/sdk/python/feast/infra/offline_stores/snowflake.py index 0f4c6a7b523..5936151d716 100644 --- a/sdk/python/feast/infra/offline_stores/snowflake.py +++ b/sdk/python/feast/infra/offline_stores/snowflake.py @@ -429,7 +429,7 @@ def _to_arrow_internal(self) ->...
e-valuation__EvaP-964
Allow editing questionnaires that are only used in new courses Editing questionnaires should be enabled for questionnaires that are in use if all courses which are using the questionnaire are in the state `new`.
[ { "content": "import datetime\nimport logging\nimport random\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.models import AbstractBaseUser, BaseUserManager, Group, PermissionsMixin\nfrom django.core.exceptions import ValidationError\nfrom django.core.mail impo...
[ { "content": "import datetime\nimport logging\nimport random\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.models import AbstractBaseUser, BaseUserManager, Group, PermissionsMixin\nfrom django.core.exceptions import ValidationError\nfrom django.core.mail impo...
diff --git a/evap/evaluation/models.py b/evap/evaluation/models.py index c0acf33263..6b859dc8e3 100644 --- a/evap/evaluation/models.py +++ b/evap/evaluation/models.py @@ -126,11 +126,11 @@ def __gt__(self, other): @property def can_staff_edit(self): - return not self.contributions.exists() + r...
ansible__ansible-modules-extras-3020
#446 broke npm state=latest for missing packages ##### Issue Type: - Bug Report (`npm` module) ##### Ansible Version: Running against devel: ``` console $ ansible --version ansible 2.1.0 (devel be5488cb60) last updated 2015/12/15 09:36:59 (GMT -400) lib/ansible/modules/core: (devel 6b13da738b) last updated 2015/12/...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Chris Hoffman <christopher.hoffman@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softw...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Chris Hoffman <christopher.hoffman@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softw...
diff --git a/packaging/language/npm.py b/packaging/language/npm.py index 53ce1e77c5e..e15bbea903e 100644 --- a/packaging/language/npm.py +++ b/packaging/language/npm.py @@ -252,7 +252,10 @@ def main(): elif state == 'latest': installed, missing = npm.list() outdated = npm.list_outdated() - ...
stephenmcd__mezzanine-1164
SiteRelated should not change explicitly set site Currently, newly created SiteRelated instances assign the site to the currently active site. When creating a SiteRelated subclassed instance (like a RichTextPage) for a specific site (and not the currently active site), invoking the save method causes the assigned site ...
[ { "content": "from __future__ import unicode_literals\nfrom future.builtins import str\nfrom future.utils import with_metaclass\n\nfrom json import loads\ntry:\n from urllib.request import urlopen\n from urllib.parse import urlencode\nexcept ImportError:\n from urllib import urlopen, urlencode\n\nfrom ...
[ { "content": "from __future__ import unicode_literals\nfrom future.builtins import str\nfrom future.utils import with_metaclass\n\nfrom json import loads\ntry:\n from urllib.request import urlopen\n from urllib.parse import urlencode\nexcept ImportError:\n from urllib import urlopen, urlencode\n\nfrom ...
diff --git a/mezzanine/core/models.py b/mezzanine/core/models.py index 80fda93451..8cce175588 100644 --- a/mezzanine/core/models.py +++ b/mezzanine/core/models.py @@ -53,7 +53,7 @@ def save(self, update_site=False, *args, **kwargs): created, or the ``update_site`` argument is explicitly set to ``True`...
urllib3__urllib3-3271
Handle OpenSSL 3.2.0 new error message for unexpected unencrypted records ### Subject I was expecting to all tests working on "main" branch but there are 3 failing test cases * TestProxyManager::test_https_proxymanager_connected_to_http_proxy[http] * TestProxyManager::test_https_proxymanager_connected_to_http_pr...
[ { "content": "from __future__ import annotations\n\nimport datetime\nimport logging\nimport os\nimport re\nimport socket\nimport sys\nimport typing\nimport warnings\nfrom http.client import HTTPConnection as _HTTPConnection\nfrom http.client import HTTPException as HTTPException # noqa: F401\nfrom http.client ...
[ { "content": "from __future__ import annotations\n\nimport datetime\nimport logging\nimport os\nimport re\nimport socket\nimport sys\nimport typing\nimport warnings\nfrom http.client import HTTPConnection as _HTTPConnection\nfrom http.client import HTTPException as HTTPException # noqa: F401\nfrom http.client ...
diff --git a/changelog/3268.bugfix.rst b/changelog/3268.bugfix.rst new file mode 100644 index 0000000000..9d3568a7d2 --- /dev/null +++ b/changelog/3268.bugfix.rst @@ -0,0 +1 @@ +Fixed handling of OpenSSL 3.2.0 new error message for misconfiguring an HTTP proxy as HTTPS. diff --git a/src/urllib3/connection.py b/src/urll...
AUTOMATIC1111__stable-diffusion-webui-773
Images being cleared on dragover With 9035afb, dragging over an image will trigger the reset of that image. I don't find that a logical UI behaviour from a UX point of view. I might accidentally drag something over the browser window and involuntarily lose the current image. @trufty, would you mind explaining why t...
[ { "content": "import base64\r\nimport html\r\nimport io\r\nimport json\r\nimport math\r\nimport mimetypes\r\nimport os\r\nimport random\r\nimport sys\r\nimport time\r\nimport traceback\r\n\r\nimport numpy as np\r\nimport torch\r\nfrom PIL import Image\r\n\r\nimport gradio as gr\r\nimport gradio.utils\r\nimport ...
[ { "content": "import base64\r\nimport html\r\nimport io\r\nimport json\r\nimport math\r\nimport mimetypes\r\nimport os\r\nimport random\r\nimport sys\r\nimport time\r\nimport traceback\r\n\r\nimport numpy as np\r\nimport torch\r\nfrom PIL import Image\r\n\r\nimport gradio as gr\r\nimport gradio.utils\r\nimport ...
diff --git a/javascript/dragdrop.js b/javascript/dragdrop.js index 29e26766e88..c01f66e2dd5 100644 --- a/javascript/dragdrop.js +++ b/javascript/dragdrop.js @@ -10,22 +10,34 @@ function dropReplaceImage( imgWrap, files ) { } imgWrap.querySelector('.modify-upload button + button, .touch-none + div button + b...
ibis-project__ibis-6672
bug(duckdb): read_only connection parameter doesn't work with booleans ### What happened? looks like true and false as strings work, but bools don't due to the `capitalize()` call. PR incoming ```python [ins] In [1]: import ibis [ins] In [2]: con = ibis.connect("duckdb://", read_only=False) [ins] In [3]: ex...
[ { "content": "\"\"\"DuckDB backend.\"\"\"\n\nfrom __future__ import annotations\n\nimport ast\nimport contextlib\nimport os\nimport warnings\nfrom functools import partial\nfrom pathlib import Path\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Iterable,\n Iterator,\n Mapping,\n MutableMappin...
[ { "content": "\"\"\"DuckDB backend.\"\"\"\n\nfrom __future__ import annotations\n\nimport ast\nimport contextlib\nimport os\nimport warnings\nfrom functools import partial\nfrom pathlib import Path\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Iterable,\n Iterator,\n Mapping,\n MutableMappin...
diff --git a/ibis/backends/duckdb/__init__.py b/ibis/backends/duckdb/__init__.py index f4b258f08db9..bd48a6e2d4fa 100644 --- a/ibis/backends/duckdb/__init__.py +++ b/ibis/backends/duckdb/__init__.py @@ -81,7 +81,7 @@ def current_database(self) -> str: @staticmethod def _convert_kwargs(kwargs: MutableMapping...
ivy-llc__ivy-20893
qr Adding the qr function to paddle.tensor.linalg as per the todo issue
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\nfrom ivy.functional.frontends.paddle import promote_types_of_paddle_inputs\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_supported_dtypes({\"2...
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\nfrom ivy.functional.frontends.paddle import promote_types_of_paddle_inputs\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_supported_dtypes({\"2...
diff --git a/ivy/functional/frontends/paddle/tensor/linalg.py b/ivy/functional/frontends/paddle/tensor/linalg.py index 2c105cbc5836a..370b76a61a934 100644 --- a/ivy/functional/frontends/paddle/tensor/linalg.py +++ b/ivy/functional/frontends/paddle/tensor/linalg.py @@ -181,6 +181,13 @@ def pinv(x, rcond=1e-15, hermitian...
pyca__cryptography-1321
RSAPublicKey.decrypt() should check that padding implements the appropriate interface Right now if you do something like, pass the type instead of an instance, you get an abhorrent error message (or the `name` property is randomly shown to you, even if it's unrelated).
[ { "content": "# 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 applicable law or agreed to in writing, so...
[ { "content": "# 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 applicable law or agreed to in writing, so...
diff --git a/cryptography/hazmat/backends/openssl/rsa.py b/cryptography/hazmat/backends/openssl/rsa.py index 21ac1573337e..d24bea5783c6 100644 --- a/cryptography/hazmat/backends/openssl/rsa.py +++ b/cryptography/hazmat/backends/openssl/rsa.py @@ -43,6 +43,9 @@ def _get_rsa_pss_salt_length(pss, key_size, digest_size): ...
pymedusa__Medusa-5865
LimeTorrents address needs to be updated **Describe the bug** Not really a bug but an updated is required for the address. I'm getting Status: 301 errors (meaning site has moved) as shown below: SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [54da0c7] GET URL: https://www.limetorrents.cc/browse-torrents/TV-shows/ [St...
[ { "content": "# coding=utf-8\n\n\"\"\"Provider code for Limetorrents.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\nimport re\n\nfrom medusa import tv\nfrom medusa.bs4_parser import BS4Parser\nfrom medusa.helper.common import (\n convert_size,\n try_int,\n)\nfrom medusa.logger.adapte...
[ { "content": "# coding=utf-8\n\n\"\"\"Provider code for Limetorrents.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\nimport re\n\nfrom medusa import tv\nfrom medusa.bs4_parser import BS4Parser\nfrom medusa.helper.common import (\n convert_size,\n try_int,\n)\nfrom medusa.logger.adapte...
diff --git a/medusa/providers/torrent/html/limetorrents.py b/medusa/providers/torrent/html/limetorrents.py index c64115c238..d7382bfff1 100644 --- a/medusa/providers/torrent/html/limetorrents.py +++ b/medusa/providers/torrent/html/limetorrents.py @@ -36,7 +36,7 @@ def __init__(self): self.public = True ...
Textualize__textual-4210
DirectoryTree.path no longer reactive The `DirectoryTree.path` variable changing values no longer reloads the widget when it's changed. This behavior changed on the [0.49.0 release](https://github.com/Textualize/textual/releases/tag/v0.49.0). I expected the `path` attribute to be reactive, according to the `watch_p...
[ { "content": "from __future__ import annotations\n\nfrom asyncio import Queue\nfrom dataclasses import dataclass\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Callable, ClassVar, Iterable, Iterator\n\nfrom rich.style import Style\nfrom rich.text import Text, TextType\n\nfrom .. import work\nfrom ...
[ { "content": "from __future__ import annotations\n\nfrom asyncio import Queue\nfrom dataclasses import dataclass\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Callable, ClassVar, Iterable, Iterator\n\nfrom rich.style import Style\nfrom rich.text import Text, TextType\n\nfrom .. import work\nfrom ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a3534132aa..2df2b1993d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed `Sparkline` not working with data in a `deque` https://github.com/Textualize/textual/issues/3899 - Tooltip...