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
⌀
django-cms__django-filer-468
Missing zoom argument in thumbnail_processors.scale_and_crop_with_subject_location In my humble point of view, the argument `zoom` has to be passed through to the underlying `processors.scale_and_crop` function: https://github.com/stefanfoulis/django-filer/blob/develop/filer/thumbnail_processors.py#L48 otherwise zoomi...
[ { "content": "#-*- coding: utf-8 -*-\nimport re\ntry:\n from PIL import Image\n from PIL import ImageDraw\nexcept ImportError:\n try:\n import Image\n import ImageDraw\n except ImportError:\n raise ImportError(\"The Python Imaging Library was not found.\")\nfrom django.utils imp...
[ { "content": "#-*- coding: utf-8 -*-\nimport re\ntry:\n from PIL import Image\n from PIL import ImageDraw\nexcept ImportError:\n try:\n import Image\n import ImageDraw\n except ImportError:\n raise ImportError(\"The Python Imaging Library was not found.\")\nfrom django.utils imp...
diff --git a/filer/thumbnail_processors.py b/filer/thumbnail_processors.py index a5c400b7b..20e54be7e 100644 --- a/filer/thumbnail_processors.py +++ b/filer/thumbnail_processors.py @@ -45,7 +45,7 @@ def scale_and_crop_with_subject_location(im, size, subject_location=False, zoom= subject_location = normalize_subjec...
scikit-image__scikit-image-5076
0.18.0 : Doc error for skimage.filters.prewitt_h/v The documentation tells that skimage.filters.prewitt_h and skimage.filters.prewitt_v are using 3x3 filters [[1 1 1] [0 0 0 ] [-1 -1 -1]] and [[1 0 -1][1 0 -1][1 0 -1]] Actually, the implementation seems to only use [1 0 1] and [[1][0][-1]], which give different resul...
[ { "content": "\"\"\"\n\nSobel and Prewitt filters originally part of CellProfiler, code licensed under\nboth GPL and BSD licenses.\nWebsite: http://www.cellprofiler.org\nCopyright (c) 2003-2009 Massachusetts Institute of Technology\nCopyright (c) 2009-2011 Broad Institute\nAll rights reserved.\nOriginal author:...
[ { "content": "\"\"\"\n\nSobel and Prewitt filters originally part of CellProfiler, code licensed under\nboth GPL and BSD licenses.\nWebsite: http://www.cellprofiler.org\nCopyright (c) 2003-2009 Massachusetts Institute of Technology\nCopyright (c) 2009-2011 Broad Institute\nAll rights reserved.\nOriginal author:...
diff --git a/skimage/filters/edges.py b/skimage/filters/edges.py index ef1944d5d00..c93801c1e6c 100644 --- a/skimage/filters/edges.py +++ b/skimage/filters/edges.py @@ -510,9 +510,9 @@ def prewitt_h(image, mask=None): ----- We use the following kernel:: - 1 1 1 - 0 0 0 - -1 -1 -1 + ...
huggingface__diffusers-2010
Train Unconditional - LR Scheduler init fix ### Learning Rate Scheduler with gradient accumulation Hi, There seems to be a small error in the [train_unconditional.py](https://github.com/huggingface/diffusers/blob/main/examples/unconditional_image_generation/train_unconditional.py) script regarding the initializ...
[ { "content": "import argparse\nimport inspect\nimport math\nimport os\nfrom pathlib import Path\nfrom typing import Optional\n\nimport torch\nimport torch.nn.functional as F\n\nfrom accelerate import Accelerator\nfrom accelerate.logging import get_logger\nfrom datasets import load_dataset\nfrom diffusers import...
[ { "content": "import argparse\nimport inspect\nimport math\nimport os\nfrom pathlib import Path\nfrom typing import Optional\n\nimport torch\nimport torch.nn.functional as F\n\nfrom accelerate import Accelerator\nfrom accelerate.logging import get_logger\nfrom datasets import load_dataset\nfrom diffusers import...
diff --git a/examples/unconditional_image_generation/train_unconditional.py b/examples/unconditional_image_generation/train_unconditional.py index af3d0ddc2259..25d4b8798363 100644 --- a/examples/unconditional_image_generation/train_unconditional.py +++ b/examples/unconditional_image_generation/train_unconditional.py @...
yt-project__yt-2390
Cmocean reversed map names are not recognised ### Bug report **Bug summary** Setting a cmap using a cmocean cmap name doesn't work when suffix `"_r"` is appended. **Code for reproduction** **note:** cmocean must be installed to reproduce. ```python import yt from yt.testing import fake_amr_ds ds = fak...
[ { "content": "\"\"\"\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the file COPYING.txt, distributed with this software.\n#-----...
[ { "content": "\"\"\"\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the file COPYING.txt, distributed with this software.\n#-----...
diff --git a/yt/visualization/color_maps.py b/yt/visualization/color_maps.py index 66cf46778c8..55a4903dcd5 100644 --- a/yt/visualization/color_maps.py +++ b/yt/visualization/color_maps.py @@ -301,7 +301,9 @@ def add_cmap(name, cdict): # Add colormaps from cmocean, if it's installed if cmocean is not None: - for...
dotkom__onlineweb4-1297
Remove paymentrelation when a user is manually removed from an event. Users that was booted by admins from an event got a mark and got removed from the waitinglist when the deadline of the paymentrelation object was reached. The object needs to be removed when a user is manually removed from an event.
[ { "content": "#-*- coding: utf-8 -*-\n\nfrom datetime import datetime, timedelta\nfrom collections import OrderedDict\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import Group\nfrom django.core.urlresolvers import reverse\nfrom django.db import models\nfrom django.template.defaultfilters...
[ { "content": "#-*- coding: utf-8 -*-\n\nfrom datetime import datetime, timedelta\nfrom collections import OrderedDict\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import Group\nfrom django.core.urlresolvers import reverse\nfrom django.db import models\nfrom django.template.defaultfilters...
diff --git a/apps/events/models.py b/apps/events/models.py index 0f844fb0b..41c9f246c 100644 --- a/apps/events/models.py +++ b/apps/events/models.py @@ -727,6 +727,17 @@ class Attendee(models.Model): def __unicode__(self): return self.user.get_full_name() + def delete(self): + #Importing here ...
bids-standard__pybids-399
Mention old behavior from 0.6 in code or in documentation for layout.get()? This could be covered by issue #266. Would it be a good idea to make notes of old behavior from 0.6 in code or in documentation for layout.get()? I inherited some code which used the old 'modality' keyword from 0.6 and if there were warni...
[ { "content": "import os\nimport json\nimport re\nfrom collections import defaultdict\nfrom io import open\nfrom functools import reduce, partial\nfrom itertools import chain\nimport copy\n\nfrom bids_validator import BIDSValidator\nfrom ..utils import listify, natural_sort, check_path_matches_patterns\nfrom ..e...
[ { "content": "import os\nimport json\nimport re\nfrom collections import defaultdict\nfrom io import open\nfrom functools import reduce, partial\nfrom itertools import chain\nimport copy\n\nfrom bids_validator import BIDSValidator\nfrom ..utils import listify, natural_sort, check_path_matches_patterns\nfrom ..e...
diff --git a/bids/layout/layout.py b/bids/layout/layout.py index 2f92515ae..2b6087fc2 100644 --- a/bids/layout/layout.py +++ b/bids/layout/layout.py @@ -465,6 +465,13 @@ def get(self, return_type='object', target=None, extensions=None, Returns: A list of BIDSFiles (default) or strings (see retur...
pytorch__ignite-2439
Seemingly unnecessary dictionary comprehension in contrib's BaseOutputHandler Hi, `output_dict` is made sure to be a dictionary just above the line below. https://github.com/pytorch/ignite/blob/21a2ccc25dd7ff0aec5f1538387597cb093fe36e/ignite/contrib/handlers/base_logger.py#L108 So this line could be replaced wi...
[ { "content": "\"\"\"Base logger and its helper handlers.\"\"\"\nimport numbers\nimport warnings\nfrom abc import ABCMeta, abstractmethod\nfrom collections import OrderedDict\nfrom typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union\n\nimport torch\nimport torch.nn as nn\nfrom torch.optim i...
[ { "content": "\"\"\"Base logger and its helper handlers.\"\"\"\nimport numbers\nimport warnings\nfrom abc import ABCMeta, abstractmethod\nfrom collections import OrderedDict\nfrom typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union\n\nimport torch\nimport torch.nn as nn\nfrom torch.optim i...
diff --git a/ignite/contrib/handlers/base_logger.py b/ignite/contrib/handlers/base_logger.py index 4c19f77bbd49..0ea4c80eb4d3 100644 --- a/ignite/contrib/handlers/base_logger.py +++ b/ignite/contrib/handlers/base_logger.py @@ -105,7 +105,7 @@ def _setup_output_metrics_state_attrs( if not isinstance(output_...
wagtail__wagtail-2585
RoutablePage throws a TypeError if index route is not set RoutablePage should not raise TypeError if index route is not set. [route method](https://github.com/torchbox/wagtail/blob/master/wagtail/contrib/wagtailroutablepage/models.py#L97) properly calls parent class method if route is not found, but `serve` method ha...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nfrom django.conf.urls import url\nfrom django.core.urlresolvers import RegexURLResolver\nfrom django.http import Http404\n\nfrom wagtail.wagtailcore.models import Page\nfrom wagtail.wagtailcore.url_routing import RouteResult\n\n_creation_...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nfrom django.conf.urls import url\nfrom django.core.urlresolvers import RegexURLResolver\nfrom django.http import Http404\n\nfrom wagtail.wagtailcore.models import Page\nfrom wagtail.wagtailcore.url_routing import RouteResult\n\n_creation_...
diff --git a/wagtail/contrib/wagtailroutablepage/models.py b/wagtail/contrib/wagtailroutablepage/models.py index 90a1c287b09a..593978a9e4b8 100644 --- a/wagtail/contrib/wagtailroutablepage/models.py +++ b/wagtail/contrib/wagtailroutablepage/models.py @@ -96,7 +96,13 @@ def route(self, request, path_components): ...
napari__napari-1657
pan/zoom broken for multiscale images with scale= parameter ## 🐛 Bug When viewing a multiscale image, setting the scale on the viewed dimensions to anything other than 1, 1 causes the pan/zoom to break. ```python import napari import dask.array as da with napari.gui_qt(): v = napari.view_image( ...
[ { "content": "\"\"\"Image class.\n\"\"\"\nimport types\nimport warnings\n\nimport numpy as np\nfrom scipy import ndimage as ndi\n\nfrom ...components.chunk import ChunkKey, ChunkRequest, chunk_loader\nfrom ...utils.colormaps import AVAILABLE_COLORMAPS\nfrom ...utils.events import Event\nfrom ...utils.status_mes...
[ { "content": "\"\"\"Image class.\n\"\"\"\nimport types\nimport warnings\n\nimport numpy as np\nfrom scipy import ndimage as ndi\n\nfrom ...components.chunk import ChunkKey, ChunkRequest, chunk_loader\nfrom ...utils.colormaps import AVAILABLE_COLORMAPS\nfrom ...utils.events import Event\nfrom ...utils.status_mes...
diff --git a/napari/layers/image/image.py b/napari/layers/image/image.py index e1b7abc6ebc..63d1138bc6a 100644 --- a/napari/layers/image/image.py +++ b/napari/layers/image/image.py @@ -555,9 +555,7 @@ def _set_view_slice(self): corner_pixels[0, d], corner_pixels[1, d] + 1, 1 ...
urllib3__urllib3-1154
SecureTransport backend can lead to long pauses on Python 3. Spotted by someone testing out pip with SecureTransport backing via the new urllib3. The symptom is this: if you take pip from the branch on pypa/pip#4454, install it on Python 3, and run `pip install -I --no-cache-dir django` you'll find it takes a surpri...
[ { "content": "\"\"\"\nSecureTranport support for urllib3 via ctypes.\n\nThis makes platform-native TLS available to urllib3 users on macOS without the\nuse of a compiler. This is an important feature because the Python Package\nIndex is moving to become a TLSv1.2-or-higher server, and the default OpenSSL\nthat ...
[ { "content": "\"\"\"\nSecureTranport support for urllib3 via ctypes.\n\nThis makes platform-native TLS available to urllib3 users on macOS without the\nuse of a compiler. This is an important feature because the Python Package\nIndex is moving to become a TLSv1.2-or-higher server, and the default OpenSSL\nthat ...
diff --git a/urllib3/contrib/securetransport.py b/urllib3/contrib/securetransport.py index cd840a68f1..72b23ab1c4 100644 --- a/urllib3/contrib/securetransport.py +++ b/urllib3/contrib/securetransport.py @@ -685,7 +685,11 @@ def makefile(self, mode, bufsize=-1): self._makefile_refs += 1 return _fileobj...
piskvorky__gensim-1638
FastText wrapper returns inconsistent dtypes #### Description `gensim.models.wrappers.FastText` returns inconsistent dtypes. #### Steps/Code/Corpus to Reproduce ```python from gensim.models.wrappers import FastText embeds = FastText.load_fasttext_format(...) ``` For an existing word: ```python embeds['the']....
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Author: Jayant Jain <jayantjain1992@gmail.com>\n# Copyright (C) 2017 Radim Rehurek <me@radimrehurek.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\n\"\"\"\nPython wrapper around word representation learning ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Author: Jayant Jain <jayantjain1992@gmail.com>\n# Copyright (C) 2017 Radim Rehurek <me@radimrehurek.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\n\"\"\"\nPython wrapper around word representation learning ...
diff --git a/gensim/models/wrappers/fasttext.py b/gensim/models/wrappers/fasttext.py index 76fdb0e34b..bfbb4986ee 100644 --- a/gensim/models/wrappers/fasttext.py +++ b/gensim/models/wrappers/fasttext.py @@ -90,7 +90,7 @@ def word_vec(self, word, use_norm=False): if word in self.vocab: return super...
pytorch__ignite-320
ParamScheduler docs missing No docs on `ParamScheduler` and related classes on the [site](https://pytorch.org/ignite/contrib/handlers.html).
[ { "content": "\nfrom ignite.contrib.handlers.param_scheduler import ParamScheduler, CyclicalScheduler, \\\n LinearCyclicalScheduler, CosineAnnealingScheduler\n\nfrom ignite.contrib.handlers.tqdm_logger import ProgressBar\n\n__all__ = ['ProgressBar']\n", "path": "ignite/contrib/handlers/__init__.py" }, ...
[ { "content": "\nfrom ignite.contrib.handlers.param_scheduler import ParamScheduler, CyclicalScheduler, \\\n LinearCyclicalScheduler, CosineAnnealingScheduler\n\nfrom ignite.contrib.handlers.tqdm_logger import ProgressBar\n", "path": "ignite/contrib/handlers/__init__.py" }, { "content": "# coding:...
diff --git a/docs/source/contrib/engines.rst b/docs/source/contrib/engines.rst index fd1647a6b090..525039449f27 100644 --- a/docs/source/contrib/engines.rst +++ b/docs/source/contrib/engines.rst @@ -8,3 +8,4 @@ Contribution module of engines .. automodule:: ignite.contrib.engines :members: :undoc-members: + ...
xonsh__xonsh-4786
Xonsh with Python 3.8 acts like an older version of Python With Python 3.8, Xonsh behaves as if it is using unsorted dictionaries. (Python code borrowed from [Stack Overflow 613218](https://stackoverflow.com/a/613218).) ## Expected Behavior ``` $ python3 Python 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4...
[ { "content": "\"\"\"\nPython advanced pretty printer. This pretty printer is intended to\nreplace the old `pprint` python module which does not allow developers\nto provide their own pretty print callbacks.\n\nThis module is based on ruby's `prettyprint.rb` library by `Tanaka Akira`.\n\nThe following implement...
[ { "content": "\"\"\"\nPython advanced pretty printer. This pretty printer is intended to\nreplace the old `pprint` python module which does not allow developers\nto provide their own pretty print callbacks.\n\nThis module is based on ruby's `prettyprint.rb` library by `Tanaka Akira`.\n\nThe following implement...
diff --git a/news/fix-pretty-print-dict.rst b/news/fix-pretty-print-dict.rst new file mode 100644 index 0000000000..f036e7f16e --- /dev/null +++ b/news/fix-pretty-print-dict.rst @@ -0,0 +1,23 @@ +**Added:** + +* <news item> + +**Changed:** + +* <news item> + +**Deprecated:** + +* <news item> + +**Removed:** + +* <news ...
opsdroid__opsdroid-521
Fix no database warning message # Description When opsdroid is run with no databases set in the `configuration.yaml` a warning message is logged saying the following: `"No databases in configuration. This will cause skills which store things inmemory to lose data when opsdroid is restarted."` located on [line 241](ht...
[ { "content": "\"\"\"Class for loading in modules to OpsDroid.\"\"\"\n\nimport logging\nimport os\nimport sys\nimport shutil\nimport subprocess\nimport importlib\nimport importlib.util\nimport re\nfrom collections import Mapping\nimport yaml\nfrom opsdroid.const import (\n DEFAULT_GIT_URL, MODULES_DIRECTORY, ...
[ { "content": "\"\"\"Class for loading in modules to OpsDroid.\"\"\"\n\nimport logging\nimport os\nimport sys\nimport shutil\nimport subprocess\nimport importlib\nimport importlib.util\nimport re\nfrom collections import Mapping\nimport yaml\nfrom opsdroid.const import (\n DEFAULT_GIT_URL, MODULES_DIRECTORY, ...
diff --git a/opsdroid/loader.py b/opsdroid/loader.py index 0b3959761..69f8387fc 100644 --- a/opsdroid/loader.py +++ b/opsdroid/loader.py @@ -239,7 +239,7 @@ def load_modules_from_config(self, config): databases = self._load_modules('database', config['databases']) else: _LOGGER.warnin...
mars-project__mars-2641
[BUG] Dataframe groupby.agg raised `IndexError` <!-- Thank you for your contribution! Please review https://github.com/mars-project/mars/blob/master/CONTRIBUTING.rst before opening an issue. --> **Describe the bug** Executing dataframe groupby raised `IndexError` while the same sentences works well with pandas...
[ { "content": "# Copyright 1999-2021 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 1999-2021 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/mars/dataframe/groupby/aggregation.py b/mars/dataframe/groupby/aggregation.py index 1e8187a3b6..cc1298db67 100644 --- a/mars/dataframe/groupby/aggregation.py +++ b/mars/dataframe/groupby/aggregation.py @@ -825,9 +825,10 @@ def _execute_map(cls, ctx, op: "DataFrameGroupByAgg"): for input_key, out...
scikit-image__scikit-image-2754
seam carving vertically then horizontally ## Description I am attempting to scale an image using seam carving, but I receive the following error: > *** Error in `python': free(): invalid next size (normal): 0x00000000040b7f80 *** > ======= Backtrace: ========= > /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fed9...
[ { "content": "from ._seam_carving import _seam_carve_v\nfrom .. import util\nfrom .._shared import utils\nimport numpy as np\n\n\ndef seam_carve(image, energy_map, mode, num, border=1, force_copy=True):\n \"\"\" Carve vertical or horizontal seams off an image.\n\n Carves out vertical/horizontal seams from...
[ { "content": "from ._seam_carving import _seam_carve_v\nfrom .. import util\nfrom .._shared import utils\nimport numpy as np\n\n\ndef seam_carve(image, energy_map, mode, num, border=1, force_copy=True):\n \"\"\" Carve vertical or horizontal seams off an image.\n\n Carves out vertical/horizontal seams from...
diff --git a/skimage/transform/seam_carving.py b/skimage/transform/seam_carving.py index 58d0e62dee2..d750b121437 100644 --- a/skimage/transform/seam_carving.py +++ b/skimage/transform/seam_carving.py @@ -55,12 +55,13 @@ def seam_carve(image, energy_map, mode, num, border=1, force_copy=True): image = image[......
ivy-llc__ivy-26785
Remove duplicate-keys in `ivy\functional\backends\numpy\__init__.py` In the file: `ivy\functional\backends\numpy\__init__.py` duplicate keys are present in the following lines https://github.com/unifyai/ivy/blob/1be0f8c2c8d916b10f06ab538b43fc506a1992a6/ivy/functional/backends/numpy/__init__.py#L25 https://github.com/...
[ { "content": "# global\nimport sys\nimport numpy as np\n\n# local\nimport ivy\nfrom ivy.func_wrapper import _dtype_from_version\n\nbackend_version = {\"version\": np.__version__}\n\n# noinspection PyUnresolvedReferences\nif not ivy.is_local():\n _module_in_memory = sys.modules[__name__]\nelse:\n _module_i...
[ { "content": "# global\nimport sys\nimport numpy as np\n\n# local\nimport ivy\nfrom ivy.func_wrapper import _dtype_from_version\n\nbackend_version = {\"version\": np.__version__}\n\n# noinspection PyUnresolvedReferences\nif not ivy.is_local():\n _module_in_memory = sys.modules[__name__]\nelse:\n _module_i...
diff --git a/ivy/functional/backends/numpy/__init__.py b/ivy/functional/backends/numpy/__init__.py index 8df8e90dbf269..dc542e3dd6f58 100644 --- a/ivy/functional/backends/numpy/__init__.py +++ b/ivy/functional/backends/numpy/__init__.py @@ -34,10 +34,8 @@ def rep_method(self, ufunc, method, *inputs, **kwargs): ...
chainer__chainer-1177
Change a method reporting an error when CuPy is not correctly installed Currently CuPy raises `importError` with this error message: `ImportError: cannot import name core` This is because `core` module is a native module (i mean .so file), and the setup script cannot build it when CUDA environment is not correctly set...
[ { "content": "from __future__ import division\nimport sys\n\nimport numpy\nimport six\n\n\nfrom cupy import binary\nfrom cupy import core\nfrom cupy import creation\nfrom cupy import indexing\nfrom cupy import io\nfrom cupy import linalg\nfrom cupy import logic\nfrom cupy import manipulation\nfrom cupy import m...
[ { "content": "from __future__ import division\nimport sys\n\nimport numpy\nimport six\n\ntry:\n from cupy import core\nexcept ImportError:\n # core is a c-extention module.\n # When a user cannot import core, it represents that CuPy is not correctly\n # built.\n msg = ('CuPy is not correctly inst...
diff --git a/cupy/__init__.py b/cupy/__init__.py index c46b5e8b4d25..b6fc54798c15 100644 --- a/cupy/__init__.py +++ b/cupy/__init__.py @@ -4,9 +4,19 @@ import numpy import six +try: + from cupy import core +except ImportError: + # core is a c-extention module. + # When a user cannot import core, it represe...
mindsdb__mindsdb-1590
Add option to list tables in PostgreSQL integration :bookmark_tabs: When users create a connection to the database it will be useful to show them tips with a list of tables. To be able to do this we need a new method `get_tables_list` implemented in the PostgreSQL integration class. ## Steps :male_detective: :femal...
[ { "content": "from contextlib import closing\nimport pg8000\n\nfrom lightwood.api import dtype\nfrom mindsdb.integrations.base import Integration\nfrom mindsdb.utilities.log import log\n\n\nclass PostgreSQLConnectionChecker:\n def __init__(self, **kwargs):\n self.host = kwargs.get('host')\n sel...
[ { "content": "from contextlib import closing\nimport pg8000\n\nfrom lightwood.api import dtype\nfrom mindsdb.integrations.base import Integration\nfrom mindsdb.utilities.log import log\n\n\nclass PostgreSQLConnectionChecker:\n def __init__(self, **kwargs):\n self.host = kwargs.get('host')\n sel...
diff --git a/mindsdb/integrations/postgres/postgres.py b/mindsdb/integrations/postgres/postgres.py index d0c29a8fb42..e5aad1931d9 100644 --- a/mindsdb/integrations/postgres/postgres.py +++ b/mindsdb/integrations/postgres/postgres.py @@ -199,3 +199,13 @@ def get_row_count(self, query): FROM ({query}) as que...
ansible__ansible-modules-core-5388
Add plugin as parameter for mysql_user ##### Issue Type: Feature Idea ##### Ansible Version: ``` $ ansible --version ansible 2.0.0.0 config file = configured module search path = Default w/o overrides ``` ##### Ansible Configuration: Default configuration. ##### Environment: N/A ##### Summary: From the MySQL...
[ { "content": "#!/usr/bin/python\n\n# (c) 2012, Mark Theunissen <mark.theunissen@gmail.com>\n# Sponsored by Four Kitchens http://fourkitchens.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 pu...
[ { "content": "#!/usr/bin/python\n\n# (c) 2012, Mark Theunissen <mark.theunissen@gmail.com>\n# Sponsored by Four Kitchens http://fourkitchens.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 pu...
diff --git a/database/mysql/mysql_user.py b/database/mysql/mysql_user.py index 010cdce6ae1..0e1276e4e70 100644 --- a/database/mysql/mysql_user.py +++ b/database/mysql/mysql_user.py @@ -293,7 +293,7 @@ def user_mod(cursor, user, host, host_all, password, encrypted, new_priv, append if old_user_mgmt:...
pyodide__pyodide-2920
Scipy build failing with Cython error ## 🐛 Bug Scipy build is failing in [main](https://app.circleci.com/pipelines/github/ryanking13/pyodide/705/workflows/f75c57c6-95c0-4437-85ca-47889051954d/jobs/11444?invite=true#step-105-1365). I guess it is related to the new Cython release. ``` _stats.pyx:173:0: Referring ...
[ { "content": "import os\nimport shutil\nimport sys\nimport traceback\nfrom collections.abc import Mapping\nfrom itertools import chain\nfrom pathlib import Path\n\nfrom build import BuildBackendException, ConfigSettingsType, ProjectBuilder\nfrom build.__main__ import (\n _STYLES,\n _error,\n _handle_bu...
[ { "content": "import os\nimport shutil\nimport sys\nimport traceback\nfrom collections.abc import Mapping\nfrom itertools import chain\nfrom pathlib import Path\n\nfrom build import BuildBackendException, ConfigSettingsType, ProjectBuilder\nfrom build.__main__ import (\n _STYLES,\n _error,\n _handle_bu...
diff --git a/pyodide-build/pyodide_build/pypabuild.py b/pyodide-build/pyodide_build/pypabuild.py index 98a0f75a59f..c793c8f22e3 100644 --- a/pyodide-build/pyodide_build/pypabuild.py +++ b/pyodide-build/pyodide_build/pypabuild.py @@ -58,7 +58,12 @@ def install_reqs(env: IsolatedEnv, reqs: set[str]) -> None: # only ...
Theano__Theano-3700
get_conv_output_shape fails on symbolic shape, breaking dnn_conv I am calling `theano.tensor.signal.conv.conv2d` and specifying `image_shape` and `filter_shape`, but I still get this optimization error when CuDNN is installed/enabled: UPDATE: I get the same error if I use dnn_conv directly rather than rely on the opti...
[ { "content": "\"\"\"\nDefine abstract conv2d interface\n\"\"\"\nimport logging\n\nimport theano\nfrom theano.tensor import as_tensor_variable\nfrom theano.gof import Apply, Op\n\n\n__docformat__ = \"restructuredtext en\"\n\n_logger = logging.getLogger(\"theano.tensor.nnet.conv2d\")\n\n\ndef get_conv_output_shap...
[ { "content": "\"\"\"\nDefine abstract conv2d interface\n\"\"\"\nimport logging\n\nimport theano\nfrom theano.tensor import as_tensor_variable\nfrom theano.gof import Apply, Op\n\n\n__docformat__ = \"restructuredtext en\"\n\n_logger = logging.getLogger(\"theano.tensor.nnet.conv2d\")\n\n\ndef get_conv_output_shap...
diff --git a/theano/tensor/nnet/abstract_conv2d.py b/theano/tensor/nnet/abstract_conv2d.py index 9c5f86a0b33..2b202527470 100644 --- a/theano/tensor/nnet/abstract_conv2d.py +++ b/theano/tensor/nnet/abstract_conv2d.py @@ -43,8 +43,8 @@ def get_conv_output_shape(image_shape, kernel_shape, output channels, height...
qutebrowser__qutebrowser-2243
:enter-mode is buggy with some modes - `:enter-mode command;;command-accept`: ``` Traceback (most recent call last): File "/home/florian/proj/qutebrowser/git/qutebrowser/app.py", line 198, in _process_args process_pos_args(args.command) File "/home/florian/proj/qutebrowser/git/qutebrowser/app.py", line 263, in...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
diff --git a/qutebrowser/keyinput/modeman.py b/qutebrowser/keyinput/modeman.py index d86b4996f8c..eb4baf7f5d9 100644 --- a/qutebrowser/keyinput/modeman.py +++ b/qutebrowser/keyinput/modeman.py @@ -265,6 +265,10 @@ def enter_mode(self, mode): m = usertypes.KeyMode[mode] except KeyError: ...
opsdroid__opsdroid-30
Copy message on respond When a message responds it updates it's `text` value and passes itself to the connector. Due to pointers in Python the next rule to parse the message goes on to parse the response text. The message respond method should create a shallow copy of itself to pass to the connector, instead of updat...
[ { "content": "\"\"\"Class to encapsulate a message.\"\"\"\n\n\nclass Message:\n # pylint: disable=too-few-public-methods\n \"\"\"A message object.\"\"\"\n\n def __init__(self, text, user, room, connector):\n \"\"\"Create object with minimum properties.\"\"\"\n self.text = text\n se...
[ { "content": "\"\"\"Class to encapsulate a message.\"\"\"\n\nfrom copy import copy\n\n\nclass Message:\n # pylint: disable=too-few-public-methods\n \"\"\"A message object.\"\"\"\n\n def __init__(self, text, user, room, connector):\n \"\"\"Create object with minimum properties.\"\"\"\n sel...
diff --git a/opsdroid/message.py b/opsdroid/message.py index f6bf16cdc..7ff949ef7 100644 --- a/opsdroid/message.py +++ b/opsdroid/message.py @@ -1,5 +1,7 @@ """Class to encapsulate a message.""" +from copy import copy + class Message: # pylint: disable=too-few-public-methods @@ -15,5 +17,6 @@ def __init__(se...
mesonbuild__meson-3943
Default value of UserFeatureOption is `enabled` instead of `auto` According to `meson --help`: ``` --auto-features {enabled,disabled,auto} Override value of all 'auto' features (default: auto). ``` However, in reality the default value is `enabled`. We should fix it to be `auto`.
[ { "content": "# Copyright 2013-2014 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req...
[ { "content": "# Copyright 2013-2014 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req...
diff --git a/mesonbuild/optinterpreter.py b/mesonbuild/optinterpreter.py index 94efbcf96283..8967a53bf7a0 100644 --- a/mesonbuild/optinterpreter.py +++ b/mesonbuild/optinterpreter.py @@ -121,7 +121,7 @@ def string_array_parser(name, description, kwargs): def FeatureParser(name, description, kwargs): return coreda...
pypi__warehouse-12755
GitHub repository URLs that contain a '.git' suffix in the repository name segment are not normalized <!-- NOTE: This issue should be for problems with PyPI itself, including: * [x] pypi.org * [x] test.pypi.org * [ ] files.pythonhosted.org --> **Describe the bug** Python packages may include a ...
[ { "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, softw...
[ { "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, softw...
diff --git a/tests/unit/packaging/test_models.py b/tests/unit/packaging/test_models.py index 87a25d0c86da..d2d394d1fd5b 100644 --- a/tests/unit/packaging/test_models.py +++ b/tests/unit/packaging/test_models.py @@ -430,6 +430,14 @@ def test_acl(self, db_session): ("https://google.com/pypi/warehouse/tree/ma...
zigpy__zha-device-handlers-2052
[Device Support Request] TS0601 _TZE200_h4cgnbzg **Is your feature request related to a problem? Please describe.** I've bought multiple trvs "hama smart thermostat". Two of them do not appear as trv in ZHA and are only of type "device". After modifiying ts0601_trv_sas.py (according to https://github.com/zigpy/zha-...
[ { "content": "\"\"\"Saswell (Tuya whitelabel) 88teujp thermostat valve quirk.\"\"\"\n\nimport logging\n\nfrom zigpy.profiles import zha\nimport zigpy.types as t\nfrom zigpy.zcl.clusters.general import Basic, Groups, Identify, Ota, Scenes, Time\nfrom zigpy.zcl.clusters.hvac import Thermostat\n\nfrom zhaquirks.co...
[ { "content": "\"\"\"Saswell (Tuya whitelabel) 88teujp thermostat valve quirk.\"\"\"\n\nimport logging\n\nfrom zigpy.profiles import zha\nimport zigpy.types as t\nfrom zigpy.zcl.clusters.general import Basic, Groups, Identify, Ota, Scenes, Time\nfrom zigpy.zcl.clusters.hvac import Thermostat\n\nfrom zhaquirks.co...
diff --git a/zhaquirks/tuya/ts0601_trv_sas.py b/zhaquirks/tuya/ts0601_trv_sas.py index a5304a2131..92b023a4de 100644 --- a/zhaquirks/tuya/ts0601_trv_sas.py +++ b/zhaquirks/tuya/ts0601_trv_sas.py @@ -203,6 +203,11 @@ class Thermostat_TZE200_c88teujp(TuyaThermostat): ("_TZE200_9gvruqf5", "TS0601"), ...
mkdocs__mkdocs-3193
Can't use `@dataclass` in the hook > **Note**: I'm not sure whether this is a mkdos issue. So feel free to close it if it isn't. If I use [`@dataclass`](https://docs.python.org/3.11/library/dataclasses.html) in the hook, then mkdocs can't execute it because the module is not in `sys.modules`. ## Minimal Example ...
[ { "content": "from __future__ import annotations\n\nimport functools\nimport ipaddress\nimport os\nimport string\nimport sys\nimport traceback\nimport types\nimport typing as t\nimport warnings\nfrom collections import Counter, UserString\nfrom typing import (\n Any,\n Callable,\n Collection,\n Dict...
[ { "content": "from __future__ import annotations\n\nimport functools\nimport ipaddress\nimport os\nimport string\nimport sys\nimport traceback\nimport types\nimport typing as t\nimport warnings\nfrom collections import Counter, UserString\nfrom typing import (\n Any,\n Callable,\n Collection,\n Dict...
diff --git a/mkdocs/config/config_options.py b/mkdocs/config/config_options.py index 366c782bcd..7f09d03ba7 100644 --- a/mkdocs/config/config_options.py +++ b/mkdocs/config/config_options.py @@ -1057,6 +1057,7 @@ def _load_hook(self, name, path): if spec is None: raise ValidationError(f"Cannot imp...
Kinto__kinto-726
The /permissions endpoint is broken To reproduce just access https://kinto-ota.dev.mozaws.net/v1/permissions ``` File "/home/ubuntu/venvs/kinto/local/lib/python2.7/site-packages/kinto/core/permission/re dis.py", line 103, in get_accessible_objects _, object_id, permission = key.decode('utf-8').split(':') ValueEr...
[ { "content": "from __future__ import absolute_import\n\nfrom collections import defaultdict\n\nfrom kinto.core.permission import PermissionBase\nfrom kinto.core.storage.redis import create_from_config, wrap_redis_error\n\n\nclass Permission(PermissionBase):\n \"\"\"Permission backend implementation using Red...
[ { "content": "from __future__ import absolute_import\n\nfrom collections import defaultdict\n\nfrom kinto.core.permission import PermissionBase\nfrom kinto.core.storage.redis import create_from_config, wrap_redis_error\n\n\nclass Permission(PermissionBase):\n \"\"\"Permission backend implementation using Red...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8f7e95931..f5f68a3bc 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,7 +6,9 @@ This document describes changes between each past release. 3.4.0 (unreleased) ================== -- Nothing changed yet. +**Bug fixes** + +- Fix Redis get_accessible_object implementa...
pydantic__pydantic-5897
Error on deleting an attribute of a Model having a PrivateAttr defined ### Initial Checks - [X] I confirm that I'm using Pydantic V2 installed directly from the `main` branch, or equivalent ### Description If a Model has a `PrivateAttr` defined deleting a regular field of its instance results in an `AttributeError`....
[ { "content": "\"\"\"\nPrivate logic for creating models.\n\"\"\"\nfrom __future__ import annotations as _annotations\n\nimport typing\nimport warnings\nfrom abc import ABCMeta\nfrom functools import partial\nfrom types import FunctionType\nfrom typing import Any, Callable, Generic, Mapping\n\nfrom pydantic_core...
[ { "content": "\"\"\"\nPrivate logic for creating models.\n\"\"\"\nfrom __future__ import annotations as _annotations\n\nimport typing\nimport warnings\nfrom abc import ABCMeta\nfrom functools import partial\nfrom types import FunctionType\nfrom typing import Any, Callable, Generic, Mapping\n\nfrom pydantic_core...
diff --git a/pydantic/_internal/_model_construction.py b/pydantic/_internal/_model_construction.py index ce85f94e9cb..b8ac949cb0c 100644 --- a/pydantic/_internal/_model_construction.py +++ b/pydantic/_internal/_model_construction.py @@ -551,5 +551,7 @@ def model_private_delattr(self: BaseModel, item: str) -> Any: ...
deis__deis-2464
`deis logs` output confusing due to the change in timezone Example `deis logs` output - note that the logger uses UTC but the controller defaults to MST. They should all just be UTC: ``` 2014-11-11T04:37:10UTC truthy-unicycle[web.2]: [2014-11-11 04:37:10] INFO  WEBrick 1.3.1 2014-11-11T04:37:10UTC truthy-unicycle[web....
[ { "content": "\"\"\"\nDjango settings for the Deis project.\n\"\"\"\n\nfrom __future__ import unicode_literals\nimport os.path\nimport sys\nimport tempfile\n\nPROJECT_ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..'))\n\nDEBUG = False\nTEMPLATE_DEBUG = DEBUG\n\nADMINS = (\n # ('Your Name'...
[ { "content": "\"\"\"\nDjango settings for the Deis project.\n\"\"\"\n\nfrom __future__ import unicode_literals\nimport os.path\nimport sys\nimport tempfile\n\nPROJECT_ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..'))\n\nDEBUG = False\nTEMPLATE_DEBUG = DEBUG\n\nADMINS = (\n # ('Your Name'...
diff --git a/controller/deis/settings.py b/controller/deis/settings.py index 260c107db5..d03f508d87 100644 --- a/controller/deis/settings.py +++ b/controller/deis/settings.py @@ -28,7 +28,7 @@ # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems....
e2nIEE__pandapower-291
fixed rundcpp with single bus network csr_matrix dimesions has to be specified explicitly. Issue #288
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2018 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n\n\n\nfrom setuptools import setup, find_packages\n\nwith open('README.rst', 'rb') as f:\n install = f....
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2018 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n\n\n\nfrom setuptools import setup, find_packages\n\nwith open('README.rst', 'rb') as f:\n install = f....
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 47eeb6a1c..e60c0e984 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,8 +1,19 @@ Change Log ============= -[develop] + +[1.6.1] - 2019-02-18 ---------------------- - [CHANGED] Patch size in create_bus_collection is not duplicated for rectangles anymore #181 +- [C...
pypi__warehouse-6207
Improve webauthn errors Problems: - We currently have two pieces of JS that control the display of webauthn errors - some in `index.js`, some in `webauthn.js` - The errors are not announced to the screenreader (via `role=alert`) - The errors are not associated with the webauthn label field (on the provisioning pag...
[ { "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, softw...
[ { "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, softw...
diff --git a/tests/unit/manage/test_forms.py b/tests/unit/manage/test_forms.py index e5d5107b7b18..c48c80332b95 100644 --- a/tests/unit/manage/test_forms.py +++ b/tests/unit/manage/test_forms.py @@ -293,7 +293,7 @@ def test_validate_label_missing(self): ) assert not form.validate() - assert f...
mantl__mantl-1150
gce builds broken with terraform 0.6.11 As of terraform 0.6.11 (possibly even 0.6.10 but I haven't confirmed), the gce instance module should use `assigned_nat_ip` instead of `nat_ip` to populate the `gce_ips` terraform output. As of now, when used along with terraform 0.6.11, that output is always blank which makes it...
[ { "content": "#!/usr/bin/env python\n#\n# Copyright 2015 Cisco Systems, 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...
[ { "content": "#!/usr/bin/env python\n#\n# Copyright 2015 Cisco Systems, 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...
diff --git a/plugins/inventory/terraform.py b/plugins/inventory/terraform.py index c1f2a6fa9..971d9c30d 100755 --- a/plugins/inventory/terraform.py +++ b/plugins/inventory/terraform.py @@ -393,8 +393,8 @@ def gce_host(resource, module_name): try: attrs.update({ - 'ansible_ssh_host': interface...
UTNkar__moore-183
Centre drive embeds <!-- Do you want to ask a question? Are you looking for support? The system administrator can help you: admin@utn.se --> ### Description Center drive embeds. Currently it looks a bit weird. ![image](https://user-images.githubusercontent.com/29704138/28264214-3dd2eb48-6aea-11e7-9944-fb199c8d...
[ { "content": "from datetime import date\n\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\nfrom wagtail.wagtailadmin.edit_handlers import FieldPanel, StreamFieldPanel, \\\n TabbedInterface, ObjectList\nfrom wagtail.wagtailcore import blocks\nfrom wagtail.wagtailcore.fie...
[ { "content": "from datetime import date\n\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\nfrom wagtail.wagtailadmin.edit_handlers import FieldPanel, StreamFieldPanel, \\\n TabbedInterface, ObjectList\nfrom wagtail.wagtailcore import blocks\nfrom wagtail.wagtailcore.fie...
diff --git a/src/google/models.py b/src/google/models.py index 44e90c7b..136741c6 100644 --- a/src/google/models.py +++ b/src/google/models.py @@ -21,7 +21,7 @@ class Meta: label = _('Google Form') icon = 'fa-check-square-o' template = 'google/blocks/form.html' - group = _('Meta') + ...
alltheplaces__alltheplaces-2637
Spider cvs is broken During the global build at 2021-08-18-14-42-26, spider **cvs** failed with **0 features** and **9870 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-08-18-14-42-26/logs/cvs.txt) and [the output](https://data.alltheplaces.xyz/runs/2021-08-18-14-42-26/output/cvs.geojson) ([on a ma...
[ { "content": "import json\nimport scrapy\nimport re\nfrom locations.items import GeojsonPointItem\nfrom locations.hours import OpeningHours\n\nDAYS = [\n 'Mo',\n 'Tu',\n 'We',\n 'Th',\n 'Fr',\n 'Sa',\n 'Su'\n]\n\n\nclass CVSSpider(scrapy.Spider):\n\n name = \"cvs\"\n item_attributes =...
[ { "content": "import json\nimport scrapy\nimport re\nfrom locations.items import GeojsonPointItem\nfrom locations.hours import OpeningHours\n\nDAYS = [\n 'Mo',\n 'Tu',\n 'We',\n 'Th',\n 'Fr',\n 'Sa',\n 'Su'\n]\n\n\nclass CVSSpider(scrapy.Spider):\n\n name = \"cvs\"\n item_attributes =...
diff --git a/locations/spiders/cvs.py b/locations/spiders/cvs.py index 61f33d0f22d..5141aaa2557 100644 --- a/locations/spiders/cvs.py +++ b/locations/spiders/cvs.py @@ -77,8 +77,8 @@ def parse_stores(self, response): 'country': data["address"]["addressCountry"], 'phone': data["address"].get("t...
holoviz__holoviews-5705
Support muted for all plot bokeh elements First noticed here: https://discourse.holoviz.org/t/mute-one-of-the-multiple-scatter-series/4031/4 Related PR: https://github.com/holoviz/holoviews/pull/4215 Currently, some plots do not support the muted option, which should be the case ``` python import pandas as pd ...
[ { "content": "from collections import defaultdict\n\nimport numpy as np\nimport param\n\nfrom bokeh.models import (\n CategoricalColorMapper, CustomJS, FactorRange, Range1d, Whisker\n)\nfrom bokeh.models.tools import BoxSelectTool\nfrom bokeh.transform import jitter\n\nfrom ...core.data import Dataset\nfrom ...
[ { "content": "from collections import defaultdict\n\nimport numpy as np\nimport param\n\nfrom bokeh.models import (\n CategoricalColorMapper, CustomJS, FactorRange, Range1d, Whisker\n)\nfrom bokeh.models.tools import BoxSelectTool\nfrom bokeh.transform import jitter\n\nfrom ...core.data import Dataset\nfrom ...
diff --git a/holoviews/plotting/bokeh/chart.py b/holoviews/plotting/bokeh/chart.py index bb3fbedb51..a9cf0f5736 100644 --- a/holoviews/plotting/bokeh/chart.py +++ b/holoviews/plotting/bokeh/chart.py @@ -62,8 +62,8 @@ class PointPlot(LegendPlot, ColorbarPlot): selection_display = BokehOverlaySelectionDisplay() ...
vllm-project__vllm-5402
[Bug]: TorchSDPAMetadata is out of date ### Your current environment alexr@roxy:~$ python collect_env.py Collecting environment information... PyTorch version: 2.0.0+cu117 Is debug build: False CUDA used to build PyTorch: 11.7 ROCM used to build PyTorch: N/A OS: Ubuntu 22.04.1 LTS (x86_64) GCC version: (Ubunt...
[ { "content": "import enum\nfrom functools import lru_cache\nfrom typing import Optional, Type\n\nimport torch\n\nimport vllm.envs as envs\nfrom vllm.attention.backends.abstract import AttentionBackend\nfrom vllm.logger import init_logger\nfrom vllm.utils import is_cpu, is_hip\n\nlogger = init_logger(__name__)\n...
[ { "content": "import enum\nfrom functools import lru_cache\nfrom typing import Optional, Type\n\nimport torch\n\nimport vllm.envs as envs\nfrom vllm.attention.backends.abstract import AttentionBackend\nfrom vllm.logger import init_logger\nfrom vllm.utils import is_cpu, is_hip\n\nlogger = init_logger(__name__)\n...
diff --git a/vllm/attention/selector.py b/vllm/attention/selector.py index 7253483f9a0..7ffaf030ae9 100644 --- a/vllm/attention/selector.py +++ b/vllm/attention/selector.py @@ -57,6 +57,9 @@ def get_attn_backend( ROCmFlashAttentionBackend) return ROCmFlashAttentionBackend elif backend == _Bac...
translate__pootle-4884
Disable downloading of non-PO files This issue https://github.com/translate/pootle/issues/4790 requests upload functionality for downloaded non-PO formats. But XLIFF files are downloaded in a broken format with changed unit ids. It'd be safer to disable download functionality for non-PO files.
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nimport functoo...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nimport functoo...
diff --git a/pootle/apps/import_export/templates/browser/index.html b/pootle/apps/import_export/templates/browser/index.html index 2532b12e2ea..f1ab576c823 100644 --- a/pootle/apps/import_export/templates/browser/index.html +++ b/pootle/apps/import_export/templates/browser/index.html @@ -6,10 +6,17 @@ <div class="side...
mlcommons__GaNDLF-786
Upgrade PyTorch requirement from `2.1.0` to `2.1.2` **Is your feature request related to a problem? Please describe.** The new `2.1` versions have significant bugfixes [[ref](https://github.com/pytorch/pytorch/releases/tag/v2.1.1),[ref](https://github.com/pytorch/pytorch/releases/tag/v2.1.2)], and it would be good to ...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport sys, re, os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\ntry:\n with open(\"REA...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport sys, re, os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\ntry:\n with open(\"REA...
diff --git a/.devcontainer/onCreateCommand.sh b/.devcontainer/onCreateCommand.sh index 2644fad27..baf4c7aa0 100755 --- a/.devcontainer/onCreateCommand.sh +++ b/.devcontainer/onCreateCommand.sh @@ -6,4 +6,4 @@ pip install wheel pip install openvino-dev==2023.0.1 # [OPTIONAL] to generate optimized models for inference ...
Rapptz__discord.py-1967
Unclosed Client Session... have yet to find this answer I know this has been asked about before... I've looked and looked and looked. So many people having this issue are simply bad at OOP but I've stripped it down to the bare essentials to see what is causing this issue and I just cannot figure it out. Some more exper...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2019 Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, includin...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2019 Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, includin...
diff --git a/discord/client.py b/discord/client.py index 26e22df984f2..7f9e2c30168d 100644 --- a/discord/client.py +++ b/discord/client.py @@ -440,6 +440,7 @@ async def close(self): if self.is_closed(): return + await self.http.close() self._closed.set() for voice in s...
OCHA-DAP__hdx-ckan-1053
Org Admin: Dataset management page is broken Log in as a sysadmin user. Go to: http://data.hdx.rwlabs.org/organization/bulk_process/ocha-fiss-geneva
[ { "content": "import logging\nimport ckan.plugins as plugins\nimport ckan.plugins.toolkit as tk\nimport ckan.lib.plugins as lib_plugins\n\nclass HDXOrgFormPlugin(plugins.SingletonPlugin, lib_plugins.DefaultOrganizationForm):\n plugins.implements(plugins.IConfigurer, inherit=False)\n plugins.implements(plu...
[ { "content": "import logging\nimport ckan.plugins as plugins\nimport ckan.plugins.toolkit as tk\nimport ckan.lib.plugins as lib_plugins\n\nclass HDXOrgFormPlugin(plugins.SingletonPlugin, lib_plugins.DefaultOrganizationForm):\n plugins.implements(plugins.IConfigurer, inherit=False)\n plugins.implements(plu...
diff --git a/ckanext-hdx_orgs/ckanext/hdx_orgs/plugin.py b/ckanext-hdx_orgs/ckanext/hdx_orgs/plugin.py index fbef8925a1..11f0658271 100644 --- a/ckanext-hdx_orgs/ckanext/hdx_orgs/plugin.py +++ b/ckanext-hdx_orgs/ckanext/hdx_orgs/plugin.py @@ -58,4 +58,6 @@ def db_to_form_schema(self): def before_map(self, map): ...
cython__cython-5196
[BUG] module 'cython' has no attribute 'annotation_typing' ### Describe the bug Hello, I asked this question on StackOverflow and I was referred here as it may be a bug. I can provide additional information but I think my [SO post](https://stackoverflow.com/questions/75004800/module-cython-has-no-attribute-annotati...
[ { "content": "# cython.* namespace for pure mode.\nfrom __future__ import absolute_import\n\n__version__ = \"3.0.0a11\"\n\ntry:\n from __builtin__ import basestring\nexcept ImportError:\n basestring = str\n\n\n# BEGIN shameless copy from Cython/minivect/minitypes.py\n\nclass _ArrayType(object):\n\n is_...
[ { "content": "# cython.* namespace for pure mode.\nfrom __future__ import absolute_import\n\n__version__ = \"3.0.0a11\"\n\ntry:\n from __builtin__ import basestring\nexcept ImportError:\n basestring = str\n\n\n# BEGIN shameless copy from Cython/minivect/minitypes.py\n\nclass _ArrayType(object):\n\n is_...
diff --git a/Cython/Shadow.py b/Cython/Shadow.py index 09712647586..dfeaf4d54a1 100644 --- a/Cython/Shadow.py +++ b/Cython/Shadow.py @@ -107,8 +107,8 @@ class _Optimization(object): cclass = ccall = cfunc = _EmptyDecoratorAndManager() -returns = wraparound = boundscheck = initializedcheck = nonecheck = \ - embe...
Gallopsled__pwntools-1618
aarch64.linux.pushstr_array is broken There's also a missing colon after the `if` statement, and it seems this was never never finished since there's no `%endif`. https://github.com/Gallopsled/pwntools/blob/813749493288fd7330b7b44b81a7f2f7a8a02dac/pwnlib/shellcraft/templates/aarch64/pushstr_array.asm#L76-L79 ``...
[ { "content": "__version__ = '4.1.5'\n", "path": "pwnlib/version.py" }, { "content": "#!/usr/bin/env python\nfrom __future__ import print_function\n\nimport glob\nimport os\nimport platform\nimport subprocess\nimport sys\nimport traceback\nfrom distutils.command.install import INSTALL_SCHEMES\nfrom d...
[ { "content": "__version__ = '4.1.6'\n", "path": "pwnlib/version.py" }, { "content": "#!/usr/bin/env python\nfrom __future__ import print_function\n\nimport glob\nimport os\nimport platform\nimport subprocess\nimport sys\nimport traceback\nfrom distutils.command.install import INSTALL_SCHEMES\nfrom d...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d67260769..4634e9de8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,7 +66,13 @@ To be released on Jun 5, 2020. [fecf9f]: http://github.com/Gallopsled/pwntools/commit/fecf9f [1454]: https://github.com/Gallopsled/pwntools/pull/1454 -## 4.1.5 (`stable`) +## 4.1.6 (`s...
jschneier__django-storages-793
Include ImportError information in ImproperlyConfigured error raised in s3boto3.py I'm currently debugging an environment where we're seeing the `ImproperlyConfigured` error raised when importing the various boto libraries that `s3boto3.py` needs to function. It would be easier to debug based on the traceback if the `I...
[ { "content": "import io\nimport mimetypes\nimport os\nimport posixpath\nimport threading\nimport warnings\nfrom gzip import GzipFile\nfrom tempfile import SpooledTemporaryFile\n\nfrom django.conf import settings as django_settings\nfrom django.core.exceptions import ImproperlyConfigured, SuspiciousOperation\nfr...
[ { "content": "import io\nimport mimetypes\nimport os\nimport posixpath\nimport threading\nimport warnings\nfrom gzip import GzipFile\nfrom tempfile import SpooledTemporaryFile\n\nfrom django.conf import settings as django_settings\nfrom django.core.exceptions import ImproperlyConfigured, SuspiciousOperation\nfr...
diff --git a/storages/backends/s3boto3.py b/storages/backends/s3boto3.py index 66c9d8131..779d8e3d3 100644 --- a/storages/backends/s3boto3.py +++ b/storages/backends/s3boto3.py @@ -33,9 +33,8 @@ from boto3 import __version__ as boto3_version from botocore.client import Config from botocore.exceptions imp...
pydantic__pydantic-4653
`GenericModel` calling `get_args()` which is not hashable See https://github.com/pydantic/pydantic/pull/4482#issuecomment-1253289404 From @pepastach > We recently bumped Pydantic from 1.10.1 to 1.10.2 and our tests started failing. After some lengthy investigation I found this change to be the root cause. I'd li...
[ { "content": "import sys\nimport typing\nfrom typing import (\n TYPE_CHECKING,\n Any,\n ClassVar,\n Dict,\n Generic,\n Iterator,\n List,\n Mapping,\n Optional,\n Tuple,\n Type,\n TypeVar,\n Union,\n cast,\n)\n\nfrom typing_extensions import Annotated\n\nfrom .class_vali...
[ { "content": "import sys\nimport typing\nfrom typing import (\n TYPE_CHECKING,\n Any,\n ClassVar,\n Dict,\n Generic,\n Iterator,\n List,\n Mapping,\n Optional,\n Tuple,\n Type,\n TypeVar,\n Union,\n cast,\n)\n\nfrom typing_extensions import Annotated\n\nfrom .class_vali...
diff --git a/changes/4551-mfulgo.md b/changes/4551-mfulgo.md new file mode 100644 index 00000000000..1d9871a41aa --- /dev/null +++ b/changes/4551-mfulgo.md @@ -0,0 +1 @@ +Fix `GenericModel` with `Callable` param raising a `TypeError` diff --git a/pydantic/generics.py b/pydantic/generics.py index a3f52bfee96..ece421e8ba...
conan-io__conan-center-index-10039
[request] mimalloc/1.7.5 ### Package Details * Package Name/Version: **mimalloc/1.7.5** * Changelog: **https://github.com/microsoft/mimalloc/releases/tag/v1.7.5** The above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.
[ { "content": "from conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\nimport shutil\nimport textwrap\n\nrequired_conan_version = \">=1.43.0\"\n\n\nclass MimallocConan(ConanFile):\n name = \"mimalloc\"\n license = \"MIT\"\n url = \"https://github.com/c...
[ { "content": "from conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\nimport shutil\nimport textwrap\n\nrequired_conan_version = \">=1.43.0\"\n\n\nclass MimallocConan(ConanFile):\n name = \"mimalloc\"\n license = \"MIT\"\n url = \"https://github.com/c...
diff --git a/recipes/mimalloc/all/conandata.yml b/recipes/mimalloc/all/conandata.yml index 1d0e48becdc36..90a4aba3ccfd7 100644 --- a/recipes/mimalloc/all/conandata.yml +++ b/recipes/mimalloc/all/conandata.yml @@ -5,6 +5,9 @@ sources: "2.0.2": url: "https://github.com/microsoft/mimalloc/archive/v2.0.2.tar.gz" ...
sunpy__sunpy-5186
`HMISynopticMap` is missing a docstring `HMISynopticMap` has no docstring. At minimum, it should at least have something analogous to what `MDISynopticMap` has: https://github.com/sunpy/sunpy/blob/824f72026403001c65e23f24ced3ff5eb7d13a68/sunpy/map/sources/soho.py#L227-L229 However, it'd be better if it had more me...
[ { "content": "\"\"\"SDO Map subclass definitions\"\"\"\n\nimport numpy as np\n\nimport astropy.units as u\nfrom astropy.coordinates import CartesianRepresentation, HeliocentricMeanEcliptic\nfrom astropy.visualization import AsinhStretch\nfrom astropy.visualization.mpl_normalize import ImageNormalize\n\nfrom sun...
[ { "content": "\"\"\"SDO Map subclass definitions\"\"\"\n\nimport numpy as np\n\nimport astropy.units as u\nfrom astropy.coordinates import CartesianRepresentation, HeliocentricMeanEcliptic\nfrom astropy.visualization import AsinhStretch\nfrom astropy.visualization.mpl_normalize import ImageNormalize\n\nfrom sun...
diff --git a/changelog/5186.doc.rst b/changelog/5186.doc.rst new file mode 100644 index 00000000000..03cd92709a5 --- /dev/null +++ b/changelog/5186.doc.rst @@ -0,0 +1 @@ +Added a documentation string to `~sunpy.map.sources.sdo.HMISynopticMap`. diff --git a/sunpy/map/sources/sdo.py b/sunpy/map/sources/sdo.py index 57233...
mesonbuild__meson-4428
Wrap target directory not checked No check is performed on the target directory for `wrap` files. Necessary `subdir()` checks are applied too late in process. Initial clone can lead to `out-of-tree` directory creation in arbitrary location. Large amounts of data may be downloaded to unusable location.
[ { "content": "# Copyright 2015 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless required...
[ { "content": "# Copyright 2015 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless required...
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index 248c3652fddb..6d498204249a 100644 --- a/mesonbuild/wrap/wrap.py +++ b/mesonbuild/wrap/wrap.py @@ -114,6 +114,8 @@ def resolve(self, packagename): self.wrap = self.load_wrap() if self.wrap and 'directory' in self.wrap.values: ...
mlflow__mlflow-7885
[BUG] Predict with Tensor (Numpy) inputs for PyTorch flavor doesn't work on GPUs ### Issues Policy acknowledgement - [X] I have read and agree to submit bug reports in accordance with the [issues policy](https://www.github.com/mlflow/mlflow/blob/master/ISSUE_POLICY.md) ### Willingness to contribute Yes. I can contri...
[ { "content": "\"\"\"\nThe ``mlflow.pytorch`` module provides an API for logging and loading PyTorch models. This module\nexports PyTorch models with the following flavors:\n\nPyTorch (native) format\n This is the main flavor that can be loaded back into PyTorch.\n:py:mod:`mlflow.pyfunc`\n Produced for use...
[ { "content": "\"\"\"\nThe ``mlflow.pytorch`` module provides an API for logging and loading PyTorch models. This module\nexports PyTorch models with the following flavors:\n\nPyTorch (native) format\n This is the main flavor that can be loaded back into PyTorch.\n:py:mod:`mlflow.pyfunc`\n Produced for use...
diff --git a/mlflow/pytorch/__init__.py b/mlflow/pytorch/__init__.py index a09583fcb4278..ed16eb0ebf83a 100644 --- a/mlflow/pytorch/__init__.py +++ b/mlflow/pytorch/__init__.py @@ -789,6 +789,8 @@ def predict(self, data, device="cpu"): with torch.no_grad(): input_tensor = torch.from_numpy(inp_data...
PennyLaneAI__pennylane-872
Inverses in default_qubit Several operations have hard coded implementations instead of simply using their unitary matrix. These are specified at [default_qubit.py Line 130](https://github.com/PennyLaneAI/pennylane/blob/9bbf560e830f951eaa421c2de20549b9d9e7af6c/pennylane/devices/default_qubit.py#L130) such as `"PauliX"...
[ { "content": "# Copyright 2018-2020 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unle...
[ { "content": "# Copyright 2018-2020 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unle...
diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 1251e1c3f18..2362604ff5e 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -154,6 +154,11 @@ <h3>Bug fixes</h3> +* Inverses of common gates can now be applied using array/tensor manipulation tricks. The + following gates are affected: `P...
opsdroid__opsdroid-615
Add Python 3.7 support We need to update opsdroid to be fully supported in 3.7. - [x] Test against Python 3.7. - [x] Travis - [x] AppVeyor - [x] Fix any bugs highlighted. - [x] Add 3.7 to supported versions in `setup.py`. - [ ] ~Update docker base image to be latest supported version~.
[ { "content": "#!/usr/bin/env python3\nimport os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.build_py import build_py\nfrom setuptools.command.sdist import sdist\nfrom setuptools.command.develop import develop\nfrom opsdroid import __version__\n\nPACKAGE_NAME = 'opsdroid'\nHERE = os.pat...
[ { "content": "#!/usr/bin/env python3\nimport os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.build_py import build_py\nfrom setuptools.command.sdist import sdist\nfrom setuptools.command.develop import develop\nfrom opsdroid import __version__\n\nPACKAGE_NAME = 'opsdroid'\nHERE = os.pat...
diff --git a/.travis.yml b/.travis.yml index 690b7f7cd..83f679979 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,10 @@ matrix: env: TOXENV=py35 - python: "3.6" env: TOXENV=py36 + - python: "3.7" + env: TOXENV=py37 + dist: xenial + sudo: true cache: directories: - $...
dask__dask-7623
Note on `Add x.str.cat (#3028)` (lines 125-126) It's not clear to me why `String.str.cat` isn't supported in Dask when `others == None`. Not having the ability to concat a single series into a string is a significant cost, I think. Unless there's a reason for this condition, I recommend deleting lines 126-126.
[ { "content": "from functools import partial\n\nimport numpy as np\nimport pandas as pd\n\nfrom ..utils import derived_from\n\n\ndef maybe_wrap_pandas(obj, x):\n if isinstance(x, np.ndarray):\n if isinstance(obj, pd.Series):\n return pd.Series(x, index=obj.index, dtype=x.dtype)\n retu...
[ { "content": "from functools import partial\n\nimport numpy as np\nimport pandas as pd\n\nfrom ..utils import derived_from\n\n\ndef maybe_wrap_pandas(obj, x):\n if isinstance(x, np.ndarray):\n if isinstance(obj, pd.Series):\n return pd.Series(x, index=obj.index, dtype=x.dtype)\n retu...
diff --git a/dask/dataframe/accessor.py b/dask/dataframe/accessor.py index 8cb3b60d7d5..e139bc9d984 100644 --- a/dask/dataframe/accessor.py +++ b/dask/dataframe/accessor.py @@ -142,7 +142,15 @@ def cat(self, others=None, sep=None, na_rep=None): from .core import Index, Series if others is None: - ...
typeddjango__django-stubs-973
Support mypy 0.960 [mypy 0.960](https://github.com/python/mypy/releases/tag/v0.960) was released yesterday. The latest release [v1.11.0 of `django-stubs`, which added support for mypy 0.950](https://github.com/typeddjango/django-stubs/releases/tag/v1.11.0), was also released yesterday, but it currently still [enforc...
[ { "content": "import os\nfrom typing import List\n\nfrom setuptools import find_packages, setup\n\n\ndef find_stub_files(name: str) -> List[str]:\n result = []\n for root, _dirs, files in os.walk(name):\n for file in files:\n if file.endswith(\".pyi\"):\n if os.path.sep in...
[ { "content": "import os\nfrom typing import List\n\nfrom setuptools import find_packages, setup\n\n\ndef find_stub_files(name: str) -> List[str]:\n result = []\n for root, _dirs, files in os.walk(name):\n for file in files:\n if file.endswith(\".pyi\"):\n if os.path.sep in...
diff --git a/requirements.txt b/requirements.txt index 5187b1d3f..411fbf78e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,4 @@ psycopg2-binary -e . # Overrides: -mypy==0.950 +mypy==0.960 diff --git a/setup.py b/setup.py index 25d73a576..7ed868da0 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20...
bokeh__bokeh-10307
[BUG] cElementTree has been deprecated and will be removed in favor of ElementTree Reference : https://bugs.python.org/issue36543 ``` bokeh/sampledata/us_states.py 33:import xml.etree.cElementTree as et bokeh/sampledata/us_counties.py 40:import xml.etree.cElementTree as et ```
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
diff --git a/bokeh/sampledata/us_counties.py b/bokeh/sampledata/us_counties.py index 0e0c6b4226f..fed2fa72a56 100644 --- a/bokeh/sampledata/us_counties.py +++ b/bokeh/sampledata/us_counties.py @@ -37,7 +37,7 @@ # Standard library imports import csv -import xml.etree.cElementTree as et +import xml.etree.ElementTree ...
PennyLaneAI__pennylane-5203
[BUG] Incompatibility of jax with device default.mixed and qml.QubitDensityMatrix() ### Expected behavior jax.jit can be wrapped around a default.mixed device with qml.QubitDensityMatrix() function. ### Actual behavior Error: TracerBoolConversionError: Attempted boolean conversion of traced array with shape bool[].....
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unle...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unle...
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index c0276b8e55c..bf31d625785 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -518,6 +518,9 @@ * Make `CompositeOp.eigendecomposition` jit-compatible. [(#5207)](https://github.com/PennyLaneAI/pennylane/pull...
codespell-project__codespell-2159
bad character range in a file skip glob > Also, as result `codespell --skip "example file with actual [weird signs in it and b-a]"` goes down with > > ``` > Traceback (most recent call last): > File "/home/mateusz/.local/bin/codespell", line 8, in <module> > sys.exit(_script_main()) > File "/home/mateusz...
[ { "content": "#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARR...
[ { "content": "#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARR...
diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index d77d4cd757..3df5438cd4 100644 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py @@ -898,7 +898,15 @@ def main(*args): file_opener = FileOpener(options.hard_encoding_detection, options.quie...
microsoft__Qcodes-3168
Setting R&S ZNB npts fails in CW mode ### Steps to reproduce 1. Load R&S ZNB driver 2. set it to CW mode 3. try to change the `npts` parameter MWE: ```py import qcodes as qc import qcodes.instrument_drivers.rohde_schwarz.ZNB as ZNB qc.Instrument.close_all() station = qc.Station() station.add_compone...
[ { "content": "import logging\nimport numpy as np\nfrom functools import partial\nfrom typing import Optional, Any, Tuple\n\nfrom qcodes import VisaInstrument, Instrument\nfrom qcodes import ChannelList, InstrumentChannel\nfrom qcodes.utils import validators as vals\nfrom qcodes.instrument.parameter import (\n ...
[ { "content": "import logging\nimport numpy as np\nfrom functools import partial\nfrom typing import Optional, Any, Tuple\n\nfrom qcodes import VisaInstrument, Instrument\nfrom qcodes import ChannelList, InstrumentChannel\nfrom qcodes.utils import validators as vals\nfrom qcodes.instrument.parameter import (\n ...
diff --git a/qcodes/instrument_drivers/rohde_schwarz/ZNB.py b/qcodes/instrument_drivers/rohde_schwarz/ZNB.py index 7faa56f1e20..901e2b7dfa3 100644 --- a/qcodes/instrument_drivers/rohde_schwarz/ZNB.py +++ b/qcodes/instrument_drivers/rohde_schwarz/ZNB.py @@ -654,8 +654,10 @@ def _set_stop(self, val: float) -> None: ...
bokeh__bokeh-5537
Replace `@$(...)` with `@$el.find(...)` Unnecessary alias. Often people forget that `@$(...) != $(...)`.
[ { "content": "from bokeh.core.properties import String, Instance\nfrom bokeh.models import LayoutDOM, Slider\n\nCODE =\"\"\"\nimport * as _ from \"underscore\"\nimport * as $ from \"jquery\"\n\nimport * as p from \"core/properties\"\nimport {LayoutDOM, LayoutDOMView} from \"models/layouts/layout_dom\"\n\nexport...
[ { "content": "from bokeh.core.properties import String, Instance\nfrom bokeh.models import LayoutDOM, Slider\n\nCODE =\"\"\"\nimport * as _ from \"underscore\"\nimport * as $ from \"jquery\"\n\nimport * as p from \"core/properties\"\nimport {LayoutDOM, LayoutDOMView} from \"models/layouts/layout_dom\"\n\nexport...
diff --git a/bokehjs/src/coffee/core/backbone.js b/bokehjs/src/coffee/core/backbone.js index a7eca828b6d..cbac9a810f1 100644 --- a/bokehjs/src/coffee/core/backbone.js +++ b/bokehjs/src/coffee/core/backbone.js @@ -151,12 +151,6 @@ _.extend(View.prototype, Events, { // The default `tagName` of a View's element is `"di...
kedro-org__kedro-1201
Update CONTRIBUTING.md with Linux Foundation changes Introduce LF maintainer route to Kedro contributing docs
[ { "content": "#!/usr/bin/env python3\n#\n# Kedro documentation build configuration file, created by\n# sphinx-quickstart on Mon Dec 18 11:31:24 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\...
[ { "content": "#!/usr/bin/env python3\n#\n# Kedro documentation build configuration file, created by\n# sphinx-quickstart on Mon Dec 18 11:31:24 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\...
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 720c97fc98..2347735505 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,12 +3,8 @@ We welcome any and all contributions to Kedro, at whatever level you can manage. For example, you could: - [Join the community](#join-the-community-and-help-it-grow) -- [Tr...
keras-team__autokeras-277
cannot install autokeras because of package dependency confliction ### Bug Description following package dependency is configured at setup.py https://github.com/jhfjhfj1/autokeras/blob/master/setup.py#L6 ``` install_requires=['torch==0.4.1', 'torchvision==0.2.1', 'numpy>=1.14.5', 'keras==2.2.2', 'scikit-learn==0....
[ { "content": "from distutils.core import setup\n\nsetup(\n name='autokeras',\n packages=['autokeras'], # this must be the same as the name above\n install_requires=['torch==0.4.1', 'torchvision==0.2.1', 'numpy>=1.14.5', 'keras==2.2.2', 'scikit-learn==0.19.1',\n 'tensorflow>=1.10.0...
[ { "content": "from distutils.core import setup\n\nsetup(\n name='autokeras',\n packages=['autokeras'], # this must be the same as the name above\n install_requires=['torch==0.4.1', 'torchvision==0.2.1', 'numpy>=1.14.5', 'keras==2.2.2', 'scikit-learn==0.19.1',\n 'tensorflow==1.10.0...
diff --git a/setup.py b/setup.py index 085c8cd2f..f1bdb0a43 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ name='autokeras', packages=['autokeras'], # this must be the same as the name above install_requires=['torch==0.4.1', 'torchvision==0.2.1', 'numpy>=1.14.5', 'keras==2.2.2', 'scikit-learn==0.1...
keras-team__keras-19641
Conv3D crash when the data_format is 'channels_first' and using Tensorflow backend According to the [document](https://keras.io/api/layers/convolution_layers/convolution3d/) of Conv3D in keras website, Conv3D should accept inputs with data format 'channels_first' or 'channels_last'. While in this [colab](https://colab...
[ { "content": "import math\nimport warnings\n\nimport tensorflow as tf\n\nfrom keras.src import backend\nfrom keras.src.backend.common.backend_utils import (\n compute_conv_transpose_output_shape,\n)\nfrom keras.src.backend.tensorflow.core import cast\nfrom keras.src.backend.tensorflow.core import convert_to_...
[ { "content": "import math\nimport warnings\n\nimport tensorflow as tf\n\nfrom keras.src import backend\nfrom keras.src.backend.common.backend_utils import (\n compute_conv_transpose_output_shape,\n)\nfrom keras.src.backend.tensorflow.core import cast\nfrom keras.src.backend.tensorflow.core import convert_to_...
diff --git a/keras/src/backend/tensorflow/nn.py b/keras/src/backend/tensorflow/nn.py index cb6bff3b4441..e590d10e2d3e 100644 --- a/keras/src/backend/tensorflow/nn.py +++ b/keras/src/backend/tensorflow/nn.py @@ -252,6 +252,12 @@ def _conv_xla(): # If kernel's in_channel does not match input's channels, it indi...
Lightning-AI__torchmetrics-1155
notation typo in Cosine Similarity docs ## 📚 Documentation There is a typo in the notation for the [pairwise_cosine_similarity](https://torchmetrics.readthedocs.io/en/stable/pairwise/cosine_similarity.html) ![cosine_sim](https://user-images.githubusercontent.com/57797966/180202448-a2970270-9a16-4405-b0d7-909e...
[ { "content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
[ { "content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
diff --git a/src/torchmetrics/functional/pairwise/cosine.py b/src/torchmetrics/functional/pairwise/cosine.py index cf3b619c651..1cf83a46c1c 100644 --- a/src/torchmetrics/functional/pairwise/cosine.py +++ b/src/torchmetrics/functional/pairwise/cosine.py @@ -54,7 +54,7 @@ def pairwise_cosine_similarity( .. math:: ...
digitalfabrik__integreat-cms-720
Support multi-line feedback ### Motivation <!-- A clear and concise description of what the motivation for the new feature is, and what problem it is solving. --> When users sent multiple lines of feedback, the lines are shown wrapped in the backend list. It would make the feedback more readable if the feedback was s...
[ { "content": "from django.conf import settings\nfrom django.db import models\nfrom django.utils.text import capfirst\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom ...constants import feedback_ratings\nfrom ...utils.translation_utils import ugettext_many_lazy as __\nfrom ..languages.language i...
[ { "content": "from django.conf import settings\nfrom django.db import models\nfrom django.utils.text import capfirst\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom ...constants import feedback_ratings\nfrom ...utils.translation_utils import ugettext_many_lazy as __\nfrom ..languages.language i...
diff --git a/src/cms/locale/de/LC_MESSAGES/django.po b/src/cms/locale/de/LC_MESSAGES/django.po index 2dc5171a13..38b5178188 100644 --- a/src/cms/locale/de/LC_MESSAGES/django.po +++ b/src/cms/locale/de/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 1.0\n" "Report-Msgid-Bugs-To: \n" -"PO...
scrapy__scrapy-4008
Request doesn't set callback to self.parse automatically when errback is set Hi, I'm facing an `AssertionError` when set `errback` and not `callback` in `Request`, is that expected? : ``` ... def start_requests(self): yield Request( self.start_url, # callback=self.parse, ...
[ { "content": "\"\"\"\nThis module implements the Request class which is used to represent HTTP\nrequests in Scrapy.\n\nSee documentation in docs/topics/request-response.rst\n\"\"\"\nimport six\nfrom w3lib.url import safe_url_string\n\nfrom scrapy.http.headers import Headers\nfrom scrapy.utils.python import to_b...
[ { "content": "\"\"\"\nThis module implements the Request class which is used to represent HTTP\nrequests in Scrapy.\n\nSee documentation in docs/topics/request-response.rst\n\"\"\"\nimport six\nfrom w3lib.url import safe_url_string\n\nfrom scrapy.http.headers import Headers\nfrom scrapy.utils.python import to_b...
diff --git a/scrapy/http/request/__init__.py b/scrapy/http/request/__init__.py index 76a428199ad..61c0a4c9e10 100644 --- a/scrapy/http/request/__init__.py +++ b/scrapy/http/request/__init__.py @@ -32,7 +32,6 @@ def __init__(self, url, callback=None, method='GET', headers=None, body=None, raise TypeError('c...
google-deepmind__dm-haiku-168
Examples are distributed as part of the package Hi, I think the examples are folder are currently packaged as part of the package on PyPI. This means that installing haiku will also install the examples as the package `examples`. Should these be excluded from the distribution? JAX also has examples in their repo...
[ { "content": "# Copyright 2019 DeepMind Technologies Limited. 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/LICEN...
[ { "content": "# Copyright 2019 DeepMind Technologies Limited. 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/LICEN...
diff --git a/setup.py b/setup.py index ce14dc124..3d122f177 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ def _parse_requirements(requirements_txt_path): long_description_content_type='text/markdown', author_email='haiku-dev-os@google.com', # Contained modules and scripts. - packages=find_nam...
Cloud-CV__EvalAI-1305
Add challenge filtering using featured parameter. We need to add filtering in challenge model on the basis of `featured` parameter. Add challenge filtering using featured parameter. We need to add filtering in challenge model on the basis of `featured` parameter.
[ { "content": "from django.contrib import admin\n\nfrom base.admin import ImportExportTimeStampedAdmin\n\nfrom .models import (Challenge,\n ChallengeConfiguration,\n ChallengePhase,\n ChallengePhaseSplit,\n DatasetSplit,\n ...
[ { "content": "from django.contrib import admin\n\nfrom base.admin import ImportExportTimeStampedAdmin\n\nfrom .models import (Challenge,\n ChallengeConfiguration,\n ChallengePhase,\n ChallengePhaseSplit,\n DatasetSplit,\n ...
diff --git a/apps/challenges/admin.py b/apps/challenges/admin.py index 027bc9b2c3..6cead1b6f0 100644 --- a/apps/challenges/admin.py +++ b/apps/challenges/admin.py @@ -14,8 +14,9 @@ @admin.register(Challenge) class ChallengeAdmin(ImportExportTimeStampedAdmin): - list_display = ("title", "start_date", "end_date", ...
NVIDIA-Merlin__NVTabular-227
[DOC] Add dask-cudf instructions to documentation We should add documentation on how to use the multi-gpu version of nvtabular. We have a [benchmark](https://www.reviewnb.com/) using a dask client for multi-gpu already. We should export a simplified view of this as an example notebook, and link that notebook into th...
[ { "content": "#\n# Copyright (c) 2020, 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 requ...
[ { "content": "#\n# Copyright (c) 2020, 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 requ...
diff --git a/HowItWorks.md b/HowItWorks.md index bae27af253b..24e7f806610 100644 --- a/HowItWorks.md +++ b/HowItWorks.md @@ -84,7 +84,24 @@ When compared to an item by item dataloader of PyTorch we have benchmarked our t Multi-GPU Support ----------------------- -The next release will have multi-GPU support using D...
zenml-io__zenml-62
[BUG] training_pipeline.view_anomalies() raises error in the "quickstart" example **Describe the bug** training_pipeline.view_anomalies() raises error in the "quickstart" example **To Reproduce** I tried the "quickstart" example and anomalies function as well. I just run `training_pipeline.view_anomalies()` aft...
[ { "content": "# Copyright (c) maiot GmbH 2020. 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 (c) maiot GmbH 2020. 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/zenml/pipelines/training_pipeline.py b/zenml/pipelines/training_pipeline.py index aa9afa1bb7a..65b45b6d336 100644 --- a/zenml/pipelines/training_pipeline.py +++ b/zenml/pipelines/training_pipeline.py @@ -334,7 +334,7 @@ def view_anomalies(self, split_name='eval'): split_name: name of split to ...
Azure__azure-cli-extensions-3639
az postgres up fails unpleasantly when database name contains dash - If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues) ### Extension name (the extension in question) db-up ### Description of issue (in as much detail as p...
[ { "content": "# --------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for license information.\n# -------------------------------------------...
[ { "content": "# --------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for license information.\n# -------------------------------------------...
diff --git a/src/db-up/HISTORY.rst b/src/db-up/HISTORY.rst index c9681515271..28d710d82b1 100644 --- a/src/db-up/HISTORY.rst +++ b/src/db-up/HISTORY.rst @@ -6,6 +6,7 @@ Release History 0.2.4 (2021-07-12) ++++++++++++++++++ * Fix issue with non-existing resource group +* Fix issue #3301: az postgres up fails unpleasa...
holoviz__panel-1135
jscallback does not work in templates This example : ```python import panel as pn pn.extension() markdown = pn.pane.Markdown('Markdown display') text_input = pn.widgets.TextInput(value=markdown.object) text_input.jscallback(args={'markdown':markdown}, value='markdown.text = source.value') template = """ {...
[ { "content": "\"\"\"\nDefines Links which allow declaring links between bokeh properties.\n\"\"\"\nfrom __future__ import absolute_import, division, unicode_literals\n\nimport param\nimport weakref\nimport sys\n\nfrom .viewable import Viewable, Reactive\n\nfrom bokeh.models import (CustomJS, Model as BkModel)\n...
[ { "content": "\"\"\"\nDefines Links which allow declaring links between bokeh properties.\n\"\"\"\nfrom __future__ import absolute_import, division, unicode_literals\n\nimport param\nimport weakref\nimport sys\n\nfrom .viewable import Viewable, Reactive\n\nfrom bokeh.models import (CustomJS, Model as BkModel)\n...
diff --git a/panel/links.py b/panel/links.py index f52485322e..e6a4e20377 100644 --- a/panel/links.py +++ b/panel/links.py @@ -204,8 +204,11 @@ def __init__(self, root_model, link, source, target=None, arg_overrides={}): self.validate() specs = self._get_specs(link, source, target) for src_sp...
bridgecrewio__checkov-3074
find_all_interpolations crashing cloudformation with UserData **Describe the issue** Explain what you expected to happen when checkov crashed. https://github.com/bridgecrewio/checkov/blob/master/checkov/cloudformation/graph_builder/utils.py#L38 this Line Crashes, when parsing cloudformation templates where the UserD...
[ { "content": "import logging\nfrom copy import deepcopy\nfrom typing import TYPE_CHECKING, Tuple, List, Any, Dict, Optional\n\nfrom checkov.cloudformation.graph_builder.graph_components.block_types import BlockType\nfrom checkov.cloudformation.graph_builder.utils import get_referenced_vertices_in_value, find_al...
[ { "content": "import logging\nfrom copy import deepcopy\nfrom typing import TYPE_CHECKING, Tuple, List, Any, Dict, Optional\n\nfrom checkov.cloudformation.graph_builder.graph_components.block_types import BlockType\nfrom checkov.cloudformation.graph_builder.utils import get_referenced_vertices_in_value, find_al...
diff --git a/checkov/cloudformation/graph_builder/variable_rendering/renderer.py b/checkov/cloudformation/graph_builder/variable_rendering/renderer.py index 492373a2c9..514a67de46 100644 --- a/checkov/cloudformation/graph_builder/variable_rendering/renderer.py +++ b/checkov/cloudformation/graph_builder/variable_renderi...
nvaccess__nvda-12432
L10N (possible release blocker): messages with plural forms and/or formatted string literals with translated messages do not translate correctly under some languages Hi, I think this is a release blocker (@LeonardDeR, any ideas about what I'm describing below): ### Background: GNU Gettext defines ngettext functi...
[ { "content": "# A part of NonVisual Desktop Access (NVDA)\r\n# Copyright (C) 2006-2021 NV Access Limited, Yogesh Kumar, Manish Agrawal, Joseph Lee, Davy Kager,\r\n# Babbage B.V., Leonard de Ruijter\r\n# This file is covered by the GNU General Public License.\r\n# See the file COPYING for more details.\r\n\r\nfr...
[ { "content": "# A part of NonVisual Desktop Access (NVDA)\r\n# Copyright (C) 2006-2021 NV Access Limited, Yogesh Kumar, Manish Agrawal, Joseph Lee, Davy Kager,\r\n# Babbage B.V., Leonard de Ruijter\r\n# This file is covered by the GNU General Public License.\r\n# See the file COPYING for more details.\r\n\r\nfr...
diff --git a/source/appModules/outlook.py b/source/appModules/outlook.py index b5e1b7e278a..ae8eaa1d821 100644 --- a/source/appModules/outlook.py +++ b/source/appModules/outlook.py @@ -357,8 +357,8 @@ def _generateCategoriesText(appointment): # Translators: Part of a message reported when on a calendar appointmen...
python-discord__bot-1199
Race condition in wait_for_deletion between a manual delete and reacting Sentry Issue: [BOT-86](https://sentry.io/organizations/python-discord/issues/1861537034/?referrer=github_integration) The message may be deleted before `wait_for_deletion` has a chance to add a reaction. ``` NotFound: 404 Not Found (error c...
[ { "content": "import asyncio\nimport contextlib\nimport logging\nimport random\nimport re\nfrom io import BytesIO\nfrom typing import List, Optional, Sequence, Union\n\nimport discord\nfrom discord.errors import HTTPException\nfrom discord.ext.commands import Context\n\nfrom bot.constants import Emojis, NEGATIV...
[ { "content": "import asyncio\nimport contextlib\nimport logging\nimport random\nimport re\nfrom io import BytesIO\nfrom typing import List, Optional, Sequence, Union\n\nimport discord\nfrom discord.errors import HTTPException\nfrom discord.ext.commands import Context\n\nfrom bot.constants import Emojis, NEGATIV...
diff --git a/bot/utils/messages.py b/bot/utils/messages.py index 9cc0d8a349..d0b2342b39 100644 --- a/bot/utils/messages.py +++ b/bot/utils/messages.py @@ -34,7 +34,11 @@ async def wait_for_deletion( if attach_emojis: for emoji in deletion_emojis: - await message.add_reaction(emoji) + ...
pytorch__text-301
Automatically create cache directories for pretrained embeddings When you try to load your own pretrained embeddings - using eg. ```torchtext.vocab.Vectors``` - if the ```.vector_cache``` directory/the directory in the args doesn't exist, torch's save routine throws an exception. Whilst in theory it is possible to just...
[ { "content": "from __future__ import unicode_literals\nimport array\nfrom collections import defaultdict\nfrom functools import partial\nimport io\nimport logging\nimport os\nimport zipfile\n\nimport six\nfrom six.moves.urllib.request import urlretrieve\nimport torch\nfrom tqdm import tqdm\nimport tarfile\n\nfr...
[ { "content": "from __future__ import unicode_literals\nimport array\nfrom collections import defaultdict\nfrom functools import partial\nimport io\nimport logging\nimport os\nimport zipfile\n\nimport six\nfrom six.moves.urllib.request import urlretrieve\nimport torch\nfrom tqdm import tqdm\nimport tarfile\n\nfr...
diff --git a/torchtext/vocab.py b/torchtext/vocab.py index 8a7bc640e6..592600baa0 100644 --- a/torchtext/vocab.py +++ b/torchtext/vocab.py @@ -327,6 +327,8 @@ def cache(self, name, cache, url=None): self.vectors = torch.Tensor(vectors).view(-1, dim) self.dim = dim logger.info('Sav...
RedHatInsights__insights-core-2101
bash_version example doesn't work with json format Running `insights run -p examples/rules -f json` results in a traceback because the `bash_version` rule puts an `InstalledRpm` object into its response: ``` TypeError: Object of type 'InstalledRpm' is not JSON serializable ```
[ { "content": "\"\"\"\nBash Version\n============\n\nThis is a simple rule and can be run against the local host\nusing the following command::\n\n$ insights-run -p examples.rules.bash_version\n\nor from the examples/rules directory::\n\n$ python sample_rules.py\n\"\"\"\nfrom insights.core.plugins import make_pa...
[ { "content": "\"\"\"\nBash Version\n============\n\nThis is a simple rule and can be run against the local host\nusing the following command::\n\n$ insights-run -p examples.rules.bash_version\n\nor from the examples/rules directory::\n\n$ python sample_rules.py\n\"\"\"\nfrom insights.core.plugins import make_in...
diff --git a/examples/rules/bash_version.py b/examples/rules/bash_version.py index d0f32361df..d817ef5cf9 100644 --- a/examples/rules/bash_version.py +++ b/examples/rules/bash_version.py @@ -11,7 +11,7 @@ $ python sample_rules.py """ -from insights.core.plugins import make_pass, rule +from insights.core.plugins imp...
streamlit__streamlit-5748
DuplicateWidgetID error message is misleading when creating two different widgets with the same key ### Checklist - [X] I have searched the [existing issues](https://github.com/streamlit/streamlit/issues) for similar issues. - [X] I added a very descriptive title to this issue. - [X] I have provided sufficient informa...
[ { "content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
[ { "content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
diff --git a/lib/streamlit/runtime/state/widgets.py b/lib/streamlit/runtime/state/widgets.py index 6650b2c9d9bb..22f10dd773f3 100644 --- a/lib/streamlit/runtime/state/widgets.py +++ b/lib/streamlit/runtime/state/widgets.py @@ -306,11 +306,10 @@ def _build_duplicate_widget_message( if user_key is not None: ...
Rapptz__discord.py-6444
Add mutual guild method to user class ### There is no simple way to quickly get the servers you share with a Member Bot which helps users identify people who they share lots in common with on a server. ### The Ideal Solution Adding a method to the Member class: https://discordpy.readthedocs.io/en/latest/api.h...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, inclu...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, inclu...
diff --git a/discord/user.py b/discord/user.py index dfdbb56eaa95..c00950352015 100644 --- a/discord/user.py +++ b/discord/user.py @@ -707,6 +707,18 @@ def dm_channel(self): """ return self._state._get_private_channel_by_user(self.id) + @property + def mutual_guilds(self): + """List[:cl...
Cog-Creators__Red-DiscordBot-5030
Menus raises an error if the bot is missing read_message_history permission ### What Red version are you using? 3.4.9 ### What were you trying to do? Using help inside a channel where the bot does not have read message history permission. ### What did you expect to happen? Help menu's to work correctly. ### What ...
[ { "content": "# Warning: The implementation below touches several private attributes.\n# While this implementation will be updated, and public interfaces maintained,\n# derived classes should not assume these private attributes are version safe,\n# and use the provided HelpSettings class for these settings.\n\n...
[ { "content": "# Warning: The implementation below touches several private attributes.\n# While this implementation will be updated, and public interfaces maintained,\n# derived classes should not assume these private attributes are version safe,\n# and use the provided HelpSettings class for these settings.\n\n...
diff --git a/redbot/core/commands/help.py b/redbot/core/commands/help.py index f6a80b5f943..c215b577f7b 100644 --- a/redbot/core/commands/help.py +++ b/redbot/core/commands/help.py @@ -804,7 +804,11 @@ async def send_pages( # save on config calls channel_permissions = ctx.channel.permissions_for(ctx.m...
bokeh__bokeh-7136
bokeh channel version of nodejs is no longer in sync with upstream anaconda/nodejs At present this is impeding compilation of custom bokeh extensions due to a version check @ https://github.com/bokeh/bokeh/blob/master/bokeh/util/compiler.py#L142 Also probably a good idea in the long term not to let versions diverge ...
[ { "content": "''' Provide functions and classes to help with various JS and CSS compilation.\n\n'''\nfrom __future__ import absolute_import\n\nimport logging\nlogger = logging.getLogger(__name__)\n\nimport io\nimport re\nimport os\nimport sys\nimport six\nimport json\nimport hashlib\nfrom os.path import dirname...
[ { "content": "''' Provide functions and classes to help with various JS and CSS compilation.\n\n'''\nfrom __future__ import absolute_import\n\nimport logging\nlogger = logging.getLogger(__name__)\n\nimport io\nimport re\nimport os\nimport sys\nimport six\nimport json\nimport hashlib\nfrom os.path import dirname...
diff --git a/bokeh/util/compiler.py b/bokeh/util/compiler.py index 1c186fdace0..c914ce00513 100644 --- a/bokeh/util/compiler.py +++ b/bokeh/util/compiler.py @@ -139,7 +139,7 @@ def _detect_nodejs(): # if we've reached here, no valid version was found version = ".".join(map(str, nodejs_min_version)) raise...
boto__boto-2029
LaunchConfiguration does not retrieve AssociatePublicIpAddress properly Pull request #1799 added support to `AssociatePublicIpAddress`, but it added only support for sending that parameter. Retrieval is not fully supported yet. A simple fix would be grabbing what pull request #1832 implemented: https://github.com/boto...
[ { "content": "# Copyright (c) 2009 Reza Lotun http://reza.lotun.name/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to...
[ { "content": "# Copyright (c) 2009 Reza Lotun http://reza.lotun.name/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to...
diff --git a/boto/ec2/autoscale/launchconfig.py b/boto/ec2/autoscale/launchconfig.py index cc9e0cd04c..5a887bf3ec 100644 --- a/boto/ec2/autoscale/launchconfig.py +++ b/boto/ec2/autoscale/launchconfig.py @@ -223,6 +223,8 @@ def endElement(self, name, value, connection): self.instance_profile_name = value ...
ray-project__ray-9537
[Tune] ProgressReporter default_columns is shared across instances ### What is the problem? When adding a new column to a ProgressReporter that used the `DEFAULT_COLUMNS` during its creation, this column will be added to the actual default dictionary. This can cause several unexpected behaviors. For instance, when cr...
[ { "content": "from __future__ import print_function\n\nimport collections\nimport time\n\nfrom ray.tune.result import (EPISODE_REWARD_MEAN, MEAN_ACCURACY, MEAN_LOSS,\n TRAINING_ITERATION, TIME_TOTAL_S, TIMESTEPS_TOTAL)\nfrom ray.tune.utils import flatten_dict\n\ntry:\n from collec...
[ { "content": "from __future__ import print_function\n\nimport collections\nimport time\n\nfrom ray.tune.result import (EPISODE_REWARD_MEAN, MEAN_ACCURACY, MEAN_LOSS,\n TRAINING_ITERATION, TIME_TOTAL_S, TIMESTEPS_TOTAL)\nfrom ray.tune.utils import flatten_dict\n\ntry:\n from collec...
diff --git a/python/ray/tune/progress_reporter.py b/python/ray/tune/progress_reporter.py index dc0b3ba72245..ff13803dedd1 100644 --- a/python/ray/tune/progress_reporter.py +++ b/python/ray/tune/progress_reporter.py @@ -87,7 +87,7 @@ def __init__(self, max_progress_rows=20, max_error_...
django-extensions__django-extensions-563
shell_plus is broken for Models organized into models/app_mod.py files instead of single models.py (?) I attempted to install `django_extensions` into my `INSTALLED_APPS` for the Sentry web application (https://github.com/getsentry/sentry). Upon running `shell_plus` management command I receive this traceback: ``` (s...
[ { "content": "import six\nimport traceback\n\n\nclass ObjectImportError(Exception):\n pass\n\n\ndef import_items(import_directives, style, quiet_load=False):\n \"\"\"\n Import the items in import_directives and return a list of the imported items\n\n Each item in import_directives should be one of t...
[ { "content": "import six\nimport traceback\n\n\nclass ObjectImportError(Exception):\n pass\n\n\ndef import_items(import_directives, style, quiet_load=False):\n \"\"\"\n Import the items in import_directives and return a list of the imported items\n\n Each item in import_directives should be one of t...
diff --git a/django_extensions/management/shells.py b/django_extensions/management/shells.py index faf9b7493..3e67fe94f 100644 --- a/django_extensions/management/shells.py +++ b/django_extensions/management/shells.py @@ -153,7 +153,11 @@ def import_objects(options, style): if not quiet_load: print(style.S...
alltheplaces__alltheplaces-3313
Spider ymca is broken During the global build at 2021-06-02-14-42-40, spider **ymca** failed with **0 features** and **87 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-06-02-14-42-40/logs/ymca.txt) and [the output](https://data.alltheplaces.xyz/runs/2021-06-02-14-42-40/output/ymca.geojson) ([on a ...
[ { "content": "# -*- coding: utf-8 -*-\nfrom datetime import datetime\nimport json\nimport re\nfrom urllib.parse import urlencode\n\nimport scrapy\n\nfrom locations.items import GeojsonPointItem\nfrom locations.hours import OpeningHours\n\nSINGLE_POINT_STATES = [\n (\"0,64.0685,-152.2782,AK\"),\n (\"1,20.6...
[ { "content": "# -*- coding: utf-8 -*-\nfrom datetime import datetime\nimport json\nimport re\nfrom urllib.parse import urlencode\n\nimport scrapy\n\nfrom locations.items import GeojsonPointItem\nfrom locations.hours import OpeningHours\n\nSINGLE_POINT_STATES = [\n (\"0,64.0685,-152.2782,AK\"),\n (\"1,20.6...
diff --git a/locations/spiders/ymca.py b/locations/spiders/ymca.py index ed45ee23e3e..4f51a51fdec 100644 --- a/locations/spiders/ymca.py +++ b/locations/spiders/ymca.py @@ -44,11 +44,11 @@ class YmcaSpider(scrapy.Spider): name = "ymca" item_attributes = { 'brand': "YMCA" } - allowed_domains = ["ymca.net"]...
ciudadanointeligente__votainteligente-portal-electoral-765
Ordernar Propuestas Por: - [x] últimas creadas - [x] Creadas por organización - [x] Con más orazones. Y por *defecto* puede ser: - Random - Por corazones, encuentro local, es organización.
[ { "content": "# coding=utf-8\nfrom django_filters import (FilterSet,\n ChoiceFilter,\n ModelChoiceFilter,\n )\nfrom popular_proposal.models import PopularProposal\nfrom popular_proposal.forms.form_texts import TOPIC_CHOICES\nfrom e...
[ { "content": "# coding=utf-8\nfrom django_filters import (FilterSet,\n ChoiceFilter,\n ModelChoiceFilter,\n )\nfrom popular_proposal.models import PopularProposal\nfrom popular_proposal.forms.form_texts import TOPIC_CHOICES\nfrom e...
diff --git a/popular_proposal/filters.py b/popular_proposal/filters.py index 90deffb0..54726a49 100644 --- a/popular_proposal/filters.py +++ b/popular_proposal/filters.py @@ -24,6 +24,8 @@ class TextSearchForm(Form): label=u"Ordenar por", choices=[('', u'Por apoyo...
mkdocs__mkdocs-1857
Cant override base.html ## Description Iv'e tried to override base.html as per the instructions but all I get is: ``` AttributeError: 'Theme' object has no attribute 'name' ``` ### Expected behavior It should just work. ### Actual behavior ``` AttributeError: 'Theme' object has no attribute 'name' ...
[ { "content": "from __future__ import unicode_literals\n\nimport os\nimport sys\nfrom collections import Sequence, namedtuple\nimport markdown\n\nfrom mkdocs import utils, theme, plugins\nfrom mkdocs.config.base import Config, ValidationError\n\n\nclass BaseConfigOption(object):\n\n def __init__(self):\n ...
[ { "content": "from __future__ import unicode_literals\n\nimport os\nimport sys\nfrom collections import Sequence, namedtuple\nimport markdown\n\nfrom mkdocs import utils, theme, plugins\nfrom mkdocs.config.base import Config, ValidationError\n\n\nclass BaseConfigOption(object):\n\n def __init__(self):\n ...
diff --git a/docs/about/release-notes.md b/docs/about/release-notes.md index 2af836933c..1d36f4fe58 100644 --- a/docs/about/release-notes.md +++ b/docs/about/release-notes.md @@ -56,7 +56,8 @@ your global navigation uses more than one level, things will likely be broken. ### Other Changes and Additions to Version 1....
opsdroid__opsdroid-1540
Add 3.8 support to setup.py We've been running CI against 3.8 for a while now, we should update the metadata in `setup.py` to explicitly state we support 3.8. We should also update the [support table](https://github.com/opsdroid/opsdroid/blob/master/docs/maintaining/supported-python-versions.md) to say we support 3....
[ { "content": "#!/usr/bin/env python3\nimport os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.build_py import build_py\nfrom setuptools.command.sdist import sdist\nfrom setuptools.command.develop import develop\nimport versioneer\n\nPACKAGE_NAME = \"opsdroid\"\nHERE = os.path.abspath(os....
[ { "content": "#!/usr/bin/env python3\nimport os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.build_py import build_py\nfrom setuptools.command.sdist import sdist\nfrom setuptools.command.develop import develop\nimport versioneer\n\nPACKAGE_NAME = \"opsdroid\"\nHERE = os.path.abspath(os....
diff --git a/docs/maintaining/supported-python-versions.md b/docs/maintaining/supported-python-versions.md index 47b3faf49..b2ba76407 100644 --- a/docs/maintaining/supported-python-versions.md +++ b/docs/maintaining/supported-python-versions.md @@ -13,6 +13,6 @@ In addition to this we will also endeavour to support new...
vega__altair-1986
Multiple views in JupyterLab blank with default html renderer To reproduce: 1. Create an environment with JupyterLab 1.2.6 and altair 4.0.1: ``` conda create -c conda-forge -yn testenv jupyterlab altair pandas conda activate testenv ``` 2. Start JupyterLab: ``` jupyter lab ``` 3. Create a new notebook w...
[ { "content": "from __future__ import unicode_literals\nimport json\nimport jinja2\n\n\nHTML_TEMPLATE = jinja2.Template(\"\"\"\n{%- if fullhtml -%}\n<!DOCTYPE html>\n<html>\n<head>\n{%- endif %}\n <style>\n .error {\n color: red;\n }\n </style>\n{%- if not requirejs %}\n <script type=\"text/javas...
[ { "content": "from __future__ import unicode_literals\nimport json\nimport jinja2\n\n\nHTML_TEMPLATE = jinja2.Template(\"\"\"\n{%- if fullhtml -%}\n<!DOCTYPE html>\n<html>\n<head>\n{%- endif %}\n <style>\n .error {\n color: red;\n }\n </style>\n{%- if not requirejs %}\n <script type=\"text/javas...
diff --git a/altair/utils/html.py b/altair/utils/html.py index 39699c13f..6848e8c58 100644 --- a/altair/utils/html.py +++ b/altair/utils/html.py @@ -85,7 +85,10 @@ <div id="{{ output_div }}"></div> <script type="text/javascript"> (function(spec, embedOpt){ - const outputDiv = document.getElementById("{{ output_...
microsoft__DeepSpeed-1921
[BUG] No module named 'fcntl' while importing the package Hey, Working on windows 11, Python 3.7 and tried importing the package. Got the error in the title, is there a way around it since it's exclusive to Linux? ![fcntl](https://user-images.githubusercontent.com/61480454/164317686-5303f264-5fc7-42c0-89b5-d16a125...
[ { "content": "\"\"\" debug utils \"\"\"\n\nimport fcntl\n\n# for debug purposes map module and param objects to their fully qualified names\nmodule_names = {}\nparam_names = {}\n\n\ndef debug_extract_module_and_param_names(model):\n # extract the fully qualified names as soon as the model is acquired\n gl...
[ { "content": "\"\"\" debug utils \"\"\"\n\n# For lazy import with printflock()\nfcntl = None\n\n# for debug purposes map module and param objects to their fully qualified names\nmodule_names = {}\nparam_names = {}\n\n\ndef debug_extract_module_and_param_names(model):\n # extract the fully qualified names as ...
diff --git a/deepspeed/utils/debug.py b/deepspeed/utils/debug.py index 358e997eae63..0841b7627a1a 100644 --- a/deepspeed/utils/debug.py +++ b/deepspeed/utils/debug.py @@ -1,6 +1,7 @@ """ debug utils """ -import fcntl +# For lazy import with printflock() +fcntl = None # for debug purposes map module and param obje...
celery__celery-6624
remove misleading Task.autoregister documentation (and the unused field) # Checklist <!-- To check an item on the list replace [ ] with [x]. --> - [x] I have checked the [issues list](https://github.com/celery/celery/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22Category%3A+Documentation%22+) for similar or id...
[ { "content": "\"\"\"Task implementation: request context and the task base class.\"\"\"\nimport sys\n\nfrom billiard.einfo import ExceptionInfo\nfrom kombu import serialization\nfrom kombu.exceptions import OperationalError\nfrom kombu.utils.uuid import uuid\n\nfrom celery import current_app, group, states\nfro...
[ { "content": "\"\"\"Task implementation: request context and the task base class.\"\"\"\nimport sys\n\nfrom billiard.einfo import ExceptionInfo\nfrom kombu import serialization\nfrom kombu.exceptions import OperationalError\nfrom kombu.utils.uuid import uuid\n\nfrom celery import current_app, group, states\nfro...
diff --git a/celery/app/task.py b/celery/app/task.py index 2265ebb9e67..d4f1a01f60d 100644 --- a/celery/app/task.py +++ b/celery/app/task.py @@ -219,9 +219,6 @@ class Task: #: The result store backend used for this task. backend = None - #: If disabled this task won't be registered automatically. - au...
frappe__frappe-24188
Email display name is converted to all lowercase https://github.com/frappe/frappe/blob/53b074c16a0cf5de74e37f0fd87e2df9b113726f/frappe/core/doctype/communication/communication.py#L212 This results in emails sent to: "Herr Dr. Hans Mustermann" \<mustermann@example.com\> get received with: herr dr. hans muste...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nfrom collections import Counter\nfrom email.utils import getaddresses\nfrom urllib.parse import unquote\n\nfrom bs4 import BeautifulSoup\n\nimport frappe\nfrom frappe import _\nfrom frappe.automati...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\nfrom collections import Counter\nfrom email.utils import getaddresses\nfrom urllib.parse import unquote\n\nfrom bs4 import BeautifulSoup\n\nimport frappe\nfrom frappe import _\nfrom frappe.automati...
diff --git a/frappe/core/doctype/communication/communication.py b/frappe/core/doctype/communication/communication.py index de2dfb770269..48c8d3cd1234 100644 --- a/frappe/core/doctype/communication/communication.py +++ b/frappe/core/doctype/communication/communication.py @@ -306,7 +306,7 @@ def _get_emails_list(emails=N...
ckan__ckan-4349
Undocumented changes breaking error_document_template It seems that #4225 changed how the HTTP error code is passed to `error_document_template.html`. In CKAN 2.7.3, `error_document_template.html` [says](https://github.com/ckan/ckan/blob/ckan-2.7.3/ckan/templates/error_document_template.html#L3): {% block sub...
[ { "content": "# encoding: utf-8\n\nimport os\nimport re\nimport inspect\nimport itertools\nimport pkgutil\n\nfrom flask import Flask, Blueprint\nfrom flask.ctx import _AppCtxGlobals\nfrom flask.sessions import SessionInterface\n\nfrom werkzeug.exceptions import default_exceptions, HTTPException\nfrom werkzeug.r...
[ { "content": "# encoding: utf-8\n\nimport os\nimport re\nimport inspect\nimport itertools\nimport pkgutil\n\nfrom flask import Flask, Blueprint\nfrom flask.ctx import _AppCtxGlobals\nfrom flask.sessions import SessionInterface\n\nfrom werkzeug.exceptions import default_exceptions, HTTPException\nfrom werkzeug.r...
diff --git a/ckan/config/middleware/flask_app.py b/ckan/config/middleware/flask_app.py index b24b17d5fd0..d243552ca69 100644 --- a/ckan/config/middleware/flask_app.py +++ b/ckan/config/middleware/flask_app.py @@ -415,6 +415,9 @@ def _register_error_handler(app): def error_handler(e): if isinstance(e, HTTP...
qutebrowser__qutebrowser-2400
Disable the automatic "Run :adblock-update" info message on startup Every time I start qutebrowser I got a message: > Run :adblock-update to get adblock lists I've set `host-blocking-enabled = false` in the config, because I have my own hosts file in /etc + I have privoxy. I couldn't find a way to disable this...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
diff --git a/qutebrowser/browser/adblock.py b/qutebrowser/browser/adblock.py index b0a9962c6d0..27fb50603eb 100644 --- a/qutebrowser/browser/adblock.py +++ b/qutebrowser/browser/adblock.py @@ -165,7 +165,8 @@ def read_hosts(self): if not found: args = objreg.get('args') if (config.get...
rasterio__rasterio-1544
Unable to open EPSG support file gcs.csv In case I install rasterio from github: ``` $ pip install git+https://github.com/mapbox/rasterio.git ``` the following code works flawlessly: ``` >>> from rasterio.crs import CRS >>> CRS({'init': 'epsg:4326'}).is_geographic True ``` But if I install rasterio f...
[ { "content": "\"\"\"Rasterio's GDAL/AWS environment\"\"\"\n\nimport attr\nfrom functools import wraps, total_ordering\nimport logging\nimport os\nimport re\nimport threading\nimport warnings\n\nfrom rasterio._env import GDALEnv, get_gdal_config, set_gdal_config\nfrom rasterio.compat import string_types, getargs...
[ { "content": "\"\"\"Rasterio's GDAL/AWS environment\"\"\"\n\nimport attr\nfrom functools import wraps, total_ordering\nimport logging\nimport os\nimport re\nimport threading\nimport warnings\n\nfrom rasterio._env import GDALEnv, get_gdal_config, set_gdal_config\nfrom rasterio.compat import string_types, getargs...
diff --git a/CHANGES.txt b/CHANGES.txt index 141df6965..3c8eda564 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,11 +1,14 @@ Changes ======= -Next ----- - -Bug fixes: +1.0.10 (2019-11-16) +------------------- +- Avoid segmentation fault when OSRGetAuthority* functions return null + pointers, making Rasterio mo...
nilearn__nilearn-4267
Adding tests for rapid inspection of visual elements **What would you like changed/added and why?** Quoting @jeromedockes here, from https://github.com/nilearn/nilearn/pull/2191#issuecomment-546278888 Since we are adding reports etc. we should add more meaningful inspection of generated plots and reports in the te...
[ { "content": "\"\"\"Reporting code for nilearn.\n\nThis module implements plotting functions useful to report analysis results.\n\nAuthor: Martin Perez-Guevara, Elvis Dohmatob, 2017\n\"\"\"\n\nfrom nilearn.reporting.get_clusters_table import get_clusters_table\nfrom nilearn.reporting.glm_reporter import make_gl...
[ { "content": "\"\"\"Reporting code for nilearn.\n\nThis module implements plotting functions useful to report analysis results.\n\"\"\"\n\n# Author: Martin Perez-Guevara, Elvis Dohmatob, 2017\n\nfrom nilearn.reporting.get_clusters_table import get_clusters_table\nfrom nilearn.reporting.glm_reporter import make_...
diff --git a/.gitignore b/.gitignore index 51993918bd..5ab4a0a721 100644 --- a/.gitignore +++ b/.gitignore @@ -44,7 +44,6 @@ venv/ # testing .pytest_cache -generated_glm_reports # coverage .coverage @@ -59,6 +58,7 @@ doc/auto_examples/ doc/building_blocks/generated/ doc/generated/ doc/modules/generated/ +doc...
Gallopsled__pwntools-201
Pwnlib loads very slowly On my system it takes two thirds of a second to load pwnlib: ``` ~> time python -c "import pwn" real 0m0.641s user 0m0.576s sys 0m0.044s ``` I've tracked down the culprit: `pwnlib.util.web` imports the `requests` module which takes forever (https://github.com/Gallopsled/pwntools/bl...
[ { "content": "# -*- coding: utf-8 -*-\nimport os, tempfile, logging\nfrom requests import *\nfrom .misc import size\nlog = logging.getLogger(__name__)\n\ndef wget(url, save=None, timeout=5, **kwargs):\n \"\"\"wget(url, save=None, timeout=5) -> str\n\n Downloads a file via HTTP/HTTPS.\n\n Args:\n u...
[ { "content": "# -*- coding: utf-8 -*-\nimport os, tempfile, logging\nfrom .misc import size\nlog = logging.getLogger(__name__)\n\ndef wget(url, save=None, timeout=5, **kwargs):\n \"\"\"wget(url, save=None, timeout=5) -> str\n\n Downloads a file via HTTP/HTTPS.\n\n Args:\n url (str): URL to downloa...
diff --git a/pwnlib/util/web.py b/pwnlib/util/web.py index 793e3a3fd..403b43dc2 100644 --- a/pwnlib/util/web.py +++ b/pwnlib/util/web.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- import os, tempfile, logging -from requests import * from .misc import size log = logging.getLogger(__name__) @@ -25,6 +24,8 @@ def wget(...
dmlc__dgl-2847
Can not load cache files successfully due to misspellings and misuse of function in the code! ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> ## To Reproduce 1. Create a python file just like this: ```python from dgl.data import CoraBinary dataset = CoraBinary() print("This is Cora...
[ { "content": "\"\"\"Cora, citeseer, pubmed dataset.\n\n(lingfan): following dataset loading and preprocessing code from tkipf/gcn\nhttps://github.com/tkipf/gcn/blob/master/gcn/utils.py\n\"\"\"\nfrom __future__ import absolute_import\n\nimport numpy as np\nimport pickle as pkl\nimport networkx as nx\nimport scip...
[ { "content": "\"\"\"Cora, citeseer, pubmed dataset.\n\n(lingfan): following dataset loading and preprocessing code from tkipf/gcn\nhttps://github.com/tkipf/gcn/blob/master/gcn/utils.py\n\"\"\"\nfrom __future__ import absolute_import\n\nimport numpy as np\nimport pickle as pkl\nimport networkx as nx\nimport scip...
diff --git a/python/dgl/data/citation_graph.py b/python/dgl/data/citation_graph.py index cb48cb876a50..20f27e18bdd9 100644 --- a/python/dgl/data/citation_graph.py +++ b/python/dgl/data/citation_graph.py @@ -871,8 +871,8 @@ def load(self): self.graphs, labels = load_graphs(str(graph_path)) self.label...
buildbot__buildbot-5606
Cannot filter on started_at in REST API I wanted to list all builds in the last week using the REST API. `.../api/v2/builds?order=-started` gets the list of all builds ever sorted in date order, but adding for example `started_at__ge=1598375285` to filter to just builds started after a specific timestamp results in an...
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n...
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n...
diff --git a/master/buildbot/data/types.py b/master/buildbot/data/types.py index 4792e19f5a28..88020b5ab406 100644 --- a/master/buildbot/data/types.py +++ b/master/buildbot/data/types.py @@ -116,8 +116,25 @@ def valueFromString(self, arg): class DateTime(Instance): + name = "datetime" - types = (datetime.d...
scrapy__scrapy-5692
DeprecationWarning: ANTIALIAS is deprecated > scrapy/pipelines/images.py:163: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead. > image.thumbnail(size, self._Image.ANTIALIAS) This is deprecated since Pillow 9.1.0, released in April. We shou...
[ { "content": "\"\"\"\nImages Pipeline\n\nSee documentation in topics/media-pipeline.rst\n\"\"\"\nimport functools\nimport hashlib\nfrom contextlib import suppress\nfrom io import BytesIO\n\nfrom itemadapter import ItemAdapter\n\nfrom scrapy.exceptions import DropItem, NotConfigured\nfrom scrapy.http import Requ...
[ { "content": "\"\"\"\nImages Pipeline\n\nSee documentation in topics/media-pipeline.rst\n\"\"\"\nimport functools\nimport hashlib\nfrom contextlib import suppress\nfrom io import BytesIO\n\nfrom itemadapter import ItemAdapter\n\nfrom scrapy.exceptions import DropItem, NotConfigured\nfrom scrapy.http import Requ...
diff --git a/scrapy/pipelines/images.py b/scrapy/pipelines/images.py index 6b97190ee58..67b3224b3b7 100644 --- a/scrapy/pipelines/images.py +++ b/scrapy/pipelines/images.py @@ -160,7 +160,14 @@ def convert_image(self, image, size=None): if size: image = image.copy() - image.thumbnail(...
nerfstudio-project__nerfstudio-871
Relative data paths result in hidden output directories Running `ns-train` with a relative path to the data results in an output directory that is hidden because the experiment name includes components of the relative path. For example, running: `ns-train nerfacto --data ../nerf_datasets/tum_fr1desk` results in an outp...
[ { "content": "# Copyright 2022 The Nerfstudio 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 Nerfstudio 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/nerfstudio/configs/base_config.py b/nerfstudio/configs/base_config.py index 3408065777..7b02e1a24d 100644 --- a/nerfstudio/configs/base_config.py +++ b/nerfstudio/configs/base_config.py @@ -241,7 +241,7 @@ def set_timestamp(self) -> None: def set_experiment_name(self) -> None: """Dynamically ...