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
⌀
pretalx__pretalx-227
Test invite mechanisms This is approximately the third time that I found critical issues in invite mechanisms (for the reviewer team, this time). - [x] Test orga invitation - [x] Test reviewing invitation - [x] Test speaker invitation by orga - [x] Test speaker invitation by other speakers
[ { "content": "from datetime import datetime, time\n\nimport pytz\nfrom django.conf import settings\nfrom django.core.mail import get_connection\nfrom django.core.mail.backends.base import BaseEmailBackend\nfrom django.core.validators import RegexValidator\nfrom django.db import models\nfrom django.utils.functio...
[ { "content": "from datetime import datetime, time\n\nimport pytz\nfrom django.conf import settings\nfrom django.core.mail import get_connection\nfrom django.core.mail.backends.base import BaseEmailBackend\nfrom django.core.validators import RegexValidator\nfrom django.db import models\nfrom django.utils.functio...
diff --git a/src/pretalx/event/models/event.py b/src/pretalx/event/models/event.py index 900042e18f..d486fc3548 100644 --- a/src/pretalx/event/models/event.py +++ b/src/pretalx/event/models/event.py @@ -159,6 +159,7 @@ class orga_urls(Urls): invite = '{team_settings}/add' room_settings = '{settings}/r...
carltongibson__django-filter-669
filter_overrides in the Meta are lost python 3.4 django 1.10.5 django-filters 0.15.3 or 0.15.4 If you move filter_overrides into the Meta it doesn't get pulled into the AutoFilterSet. We have a setup like this: ``` class MyFilterSet(FilterSet): filter_overrides = { ... } class MyDjan...
[ { "content": "\nfrom __future__ import absolute_import\nimport warnings\n\nfrom django.template import loader\nfrom django.utils import six\n\nfrom .. import compat\nfrom . import filterset\n\n\nclass DjangoFilterBackend(object):\n default_filter_set = filterset.FilterSet\n\n @property\n def template(s...
[ { "content": "\nfrom __future__ import absolute_import\nimport warnings\n\nfrom django.template import loader\nfrom django.utils import six\n\nfrom .. import compat\nfrom . import filterset\n\n\nclass DjangoFilterBackend(object):\n default_filter_set = filterset.FilterSet\n\n @property\n def template(s...
diff --git a/django_filters/rest_framework/backends.py b/django_filters/rest_framework/backends.py index bc2be2874..b982f487d 100644 --- a/django_filters/rest_framework/backends.py +++ b/django_filters/rest_framework/backends.py @@ -35,8 +35,10 @@ def get_filter_class(self, view, queryset=None): return fil...
cupy__cupy-499
Different behaviour of argmax I found the behaviour of `argmax` is different between `numpy` and `cupy` if the array has `0` in its shape and `axis` argument is used. I don't know whether this behaviour is intended or not. ``` np.empty((0, 1)).argmax(axis=1) # array([], dtype=int64) cupy.empty((0, 1)).argmax(axis...
[ { "content": "def all(a, axis=None, out=None, keepdims=False):\n # TODO(okuta): check type\n return a.all(axis=axis, out=out, keepdims=keepdims)\n\n\ndef any(a, axis=None, out=None, keepdims=False):\n # TODO(okuta): check type\n return a.any(axis=axis, out=out, keepdims=keepdims)\n", "path": "cu...
[ { "content": "import cupy\n\n\ndef all(a, axis=None, out=None, keepdims=False):\n assert isinstance(a, cupy.ndarray)\n return a.all(axis=axis, out=out, keepdims=keepdims)\n\n\ndef any(a, axis=None, out=None, keepdims=False):\n assert isinstance(a, cupy.ndarray)\n return a.any(axis=axis, out=out, kee...
diff --git a/cupy/core/reduction.pxi b/cupy/core/reduction.pxi index 7ca5cf290fa..67a2c0bfb73 100644 --- a/cupy/core/reduction.pxi +++ b/cupy/core/reduction.pxi @@ -202,36 +202,39 @@ class simple_reduction_function(object): self._output_expr = 'type_out0_raw &out0 = _raw_out0[_out_ind.get()];' self._r...
urllib3__urllib3-706
urllib3 1.11 does not provide the extra 'secure' I tried with Python 2.7 and 2.6 inside different virtualenv. ``` bash pip install 'urllib3[secure]' ```
[ { "content": "#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nimport os\nimport re\n\ntry:\n import setuptools\nexcept ImportError:\n pass # No 'develop' command, oh well.\n\nbase_path = os.path.dirname(__file__)\n\n# Get the version (borrowed from SQLAlchemy)\nfp = open(os.path.join(base_pat...
[ { "content": "#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nimport os\nimport re\n\ntry:\n import setuptools\nexcept ImportError:\n pass # No 'develop' command, oh well.\n\nbase_path = os.path.dirname(__file__)\n\n# Get the version (borrowed from SQLAlchemy)\nfp = open(os.path.join(base_pat...
diff --git a/setup.cfg b/setup.cfg index de8be607a0..bd4f65bd34 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,3 +11,11 @@ max-line-length=99 [wheel] universal = 1 + +[metadata] +provides-extra = secure +requires-dist = + pyOpenSSL; python_version<="2.7" and extra == 'secure' + ndg-httpsclient; python_version<...
beetbox__beets-1451
Sort by Path Because path is stored as a blob, COLLATE NOCASE doesn't work, lowercase entries come after uppercase ones. ORDER BY LOWER(path) does work though.
[ { "content": "# This file is part of beets.\n# Copyright 2015, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limita...
[ { "content": "# This file is part of beets.\n# Copyright 2015, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limita...
diff --git a/beets/dbcore/query.py b/beets/dbcore/query.py index ddc2c907bc..58af61ceb8 100644 --- a/beets/dbcore/query.py +++ b/beets/dbcore/query.py @@ -756,8 +756,11 @@ class FixedFieldSort(FieldSort): """ def order_clause(self): order = "ASC" if self.ascending else "DESC" - collate = 'COLL...
sanic-org__sanic-961
Cookie secure option not encoded properly When `Cookies.encode` encounters `response.cookies["<cookie>"]["secure"] = False` then it outputs: `b'Domain=xad.com; Path=/; Secure=False'` where it should output: `b'Domain=xad.com; Path=/;'` when `response.cookies["<cookie>"]["secure"] = False` and `b'Domain=x...
[ { "content": "import re\nimport string\n\n# ------------------------------------------------------------ #\n# SimpleCookie\n# ------------------------------------------------------------ #\n\n# Straight up copied this section of dark magic from SimpleCookie\n\n_LegalChars = string.ascii_letters + string.digits...
[ { "content": "import re\nimport string\n\n# ------------------------------------------------------------ #\n# SimpleCookie\n# ------------------------------------------------------------ #\n\n# Straight up copied this section of dark magic from SimpleCookie\n\n_LegalChars = string.ascii_letters + string.digits...
diff --git a/sanic/cookies.py b/sanic/cookies.py index 16b798df93..8ad8cbfc78 100644 --- a/sanic/cookies.py +++ b/sanic/cookies.py @@ -98,7 +98,8 @@ def __init__(self, key, value): def __setitem__(self, key, value): if key not in self._keys: raise KeyError("Unknown cookie property") - ...
googleapis__google-api-python-client-1639
docs: 404 error while accessing contribution guide When I was trying to access the contribution guide mentioned in `CONTRIBUTING.rst`, I am getting 404 error - https://googleapis.github.io/google-api-python-client/contributing.html ![how-to-contribute](https://user-images.githubusercontent.com/70377445/145891836-281...
[ { "content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 8af7af6b426..9c1114009e9 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -1,61 +1,281 @@ -How to Contribute -================= +.. Generated by synthtool. DO NOT EDIT! +############ +Contributing +############ -We'd love to accept your patches and contrib...
python-pillow__Pillow-4171
DdsImagePlugin fails when dxgi_format == DXGI_FORMAT_BC7_UNORM_SRGB https://github.com/python-pillow/Pillow/blob/84fed4d213a50b359188aa59f99ed06ba1249c14/src/PIL/DdsImagePlugin.py#L156-L159 At `self.im_info["gamma"] = 1 / 2.2`, `self.im_info` has never been initialized and so trying to set `self.im_info["gamma"]` fa...
[ { "content": "\"\"\"\nA Pillow loader for .dds files (S3TC-compressed aka DXTC)\nJerome Leclanche <jerome@leclan.ch>\n\nDocumentation:\n https://web.archive.org/web/20170802060935/http://oss.sgi.com/projects/ogl-sample/registry/EXT/texture_compression_s3tc.txt\n\nThe contents of this file are hereby released i...
[ { "content": "\"\"\"\nA Pillow loader for .dds files (S3TC-compressed aka DXTC)\nJerome Leclanche <jerome@leclan.ch>\n\nDocumentation:\n https://web.archive.org/web/20170802060935/http://oss.sgi.com/projects/ogl-sample/registry/EXT/texture_compression_s3tc.txt\n\nThe contents of this file are hereby released i...
diff --git a/Tests/images/DXGI_FORMAT_BC7_UNORM_SRGB.dds b/Tests/images/DXGI_FORMAT_BC7_UNORM_SRGB.dds new file mode 100644 index 00000000000..9b4d8e21f64 Binary files /dev/null and b/Tests/images/DXGI_FORMAT_BC7_UNORM_SRGB.dds differ diff --git a/Tests/images/DXGI_FORMAT_BC7_UNORM_SRGB.png b/Tests/images/DXGI_FORMAT_B...
boto__boto-2116
In 2.25.0 GoogleStorage generate_url() returns url with AWSAccessKeyId instead of GoogleAccessId When generating a Google Storage signed url: ``` python conn = boto.connect_gs(gs_access_key, gs_secret_access) signed_url = conn.generate_url(900, 'GET', bucket=bucket_name, key=file_name) ``` signed_url is of the form: ...
[ { "content": "# Copyright 2010 Google Inc.\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 deal in the Software without restriction, including\n# without limitation the rights to use, copy, modify...
[ { "content": "# Copyright 2010 Google Inc.\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 deal in the Software without restriction, including\n# without limitation the rights to use, copy, modify...
diff --git a/boto/gs/connection.py b/boto/gs/connection.py index c9a43bd66c..9a2e4a2bbb 100755 --- a/boto/gs/connection.py +++ b/boto/gs/connection.py @@ -32,7 +32,7 @@ class Location(object): class GSConnection(S3Connection): DefaultHost = 'storage.googleapis.com' - QueryString = 'Signature=%s&Expires=%d&AW...
OpenNMT__OpenNMT-tf-11
AttributeError: 'str' object has no attribute 'update' ``` Traceback (most recent call last): File "/home/soul/anaconda2/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/home/soul/anaconda2/lib/python2.7/runpy.py", line 72, in _run_code exec code in ...
[ { "content": "\"\"\"Defines functions related to configuration files.\"\"\"\n\nfrom importlib import import_module\n\nimport yaml\n\n\ndef load_model_module(path):\n \"\"\"Loads a model configuration file.\n\n Args:\n path: The relative path to the configuration file.\n\n Returns:\n A Python module.\n ...
[ { "content": "\"\"\"Defines functions related to configuration files.\"\"\"\n\nfrom importlib import import_module\n\nimport yaml\n\n\ndef load_model_module(path):\n \"\"\"Loads a model configuration file.\n\n Args:\n path: The relative path to the configuration file.\n\n Returns:\n A Python module.\n ...
diff --git a/opennmt/config.py b/opennmt/config.py index 570d269c5..59d4873be 100644 --- a/opennmt/config.py +++ b/opennmt/config.py @@ -43,7 +43,10 @@ def load_config(config_paths, config=None): # Add or update section in main configuration. for section in subconfig: if section in config: - ...
nvaccess__nvda-7846
Problems with eSpeak NG in NVDA Next Snapshot Version next-15091,d89900a3 When using NVDA version next-15091,d89900a3, speech rate does not work how it should. At rate 100 without rate boost, NVDA speaks much slower than at rate 99. With rate boost, speech slows down above rate 18 and then seems to stay at the same rat...
[ { "content": "# -*- coding: UTF-8 -*-\r\n#synthDrivers/_espeak.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#Copyright (C) 2007-2012 NV Access Limited, Peter Vágner\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n\r\nimport time\r\nimport nvwave\r...
[ { "content": "# -*- coding: UTF-8 -*-\r\n#synthDrivers/_espeak.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#Copyright (C) 2007-2012 NV Access Limited, Peter Vágner\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n\r\nimport time\r\nimport nvwave\r...
diff --git a/include/espeak b/include/espeak index 3ed34d3a74e..e7e59f99d39 160000 --- a/include/espeak +++ b/include/espeak @@ -1 +1 @@ -Subproject commit 3ed34d3a74eb69cedcdfa98dbedef4359279d352 +Subproject commit e7e59f99d39ded036dcd674561dd3f123fb66655 diff --git a/nvdaHelper/espeak/config.h b/nvdaHelper/espeak/con...
scrapy__scrapy-1767
PY3: SitemapSpider fail to extract sitemap URLs from robots.txt in Scrapy 1.1.0rc1 ## Environment - Mac OS X 10.10.5 - Python 3.4.2 - Scrapy 1.1.0rc1 ## Steps to Reproduce 1. Save the following spider as `sitemap_spider.py`. ``` py from scrapy.spiders import SitemapSpider class BlogSitemapSpider(Si...
[ { "content": "import re\nimport logging\nimport six\n\nfrom scrapy.spiders import Spider\nfrom scrapy.http import Request, XmlResponse\nfrom scrapy.utils.sitemap import Sitemap, sitemap_urls_from_robots\nfrom scrapy.utils.gz import gunzip, is_gzipped\n\nlogger = logging.getLogger(__name__)\n\n\nclass SitemapSpi...
[ { "content": "import re\nimport logging\nimport six\n\nfrom scrapy.spiders import Spider\nfrom scrapy.http import Request, XmlResponse\nfrom scrapy.utils.sitemap import Sitemap, sitemap_urls_from_robots\nfrom scrapy.utils.gz import gunzip, is_gzipped\n\nlogger = logging.getLogger(__name__)\n\n\nclass SitemapSpi...
diff --git a/scrapy/spiders/sitemap.py b/scrapy/spiders/sitemap.py index eede467a83f..89d96c3302a 100644 --- a/scrapy/spiders/sitemap.py +++ b/scrapy/spiders/sitemap.py @@ -32,7 +32,7 @@ def start_requests(self): def _parse_sitemap(self, response): if response.url.endswith('/robots.txt'): - f...
svthalia__concrexit-2277
True personal Agenda ICal Feed ### Problem I believe it is annoying that when exporting the Personal iCal Feed to the agenda, you get the events your registered for + the open events + the events with optional registration. In practice this is very annoying as you don't want all these open events you might not go to i...
[ { "content": "\"\"\"The feeds defined by the events package.\"\"\"\nfrom django.conf import settings\nfrom django.db.models.query_utils import Q\nfrom django.urls import reverse\nfrom django.utils.translation import activate\nfrom django.utils.translation import gettext as _\nfrom django_ical.views import ICalF...
[ { "content": "\"\"\"The feeds defined by the events package.\"\"\"\nfrom django.conf import settings\nfrom django.db.models.query_utils import Q\nfrom django.urls import reverse\nfrom django.utils.translation import activate\nfrom django.utils.translation import gettext as _\nfrom django_ical.views import ICalF...
diff --git a/website/events/feeds.py b/website/events/feeds.py index 33d3e8228..8eb6a508c 100644 --- a/website/events/feeds.py +++ b/website/events/feeds.py @@ -39,9 +39,8 @@ def items(self): query = Q(published=True) if self.user: - query &= Q(registration_start__isnull=True) | ( - ...
coqui-ai__TTS-1409
[Bug] Unable to initialize a LibriTTS Dataset with the Python Trainer API? When setting up LibriTTS with dataset_config = BaseDatasetConfig(name="libri_tts", path=os.path.join(output_path, "../LibriTTS/train-clean-100/")), I get this error: Traceback (most recent call last): File "train_fast_speech.py", line 78, ...
[ { "content": "import os\nimport re\nimport xml.etree.ElementTree as ET\nfrom glob import glob\nfrom pathlib import Path\nfrom typing import List\n\nfrom tqdm import tqdm\n\n########################\n# DATASETS\n########################\n\n\ndef tweb(root_path, meta_file, **kwargs): # pylint: disable=unused-arg...
[ { "content": "import os\nimport re\nimport xml.etree.ElementTree as ET\nfrom glob import glob\nfrom pathlib import Path\nfrom typing import List\n\nfrom tqdm import tqdm\n\n########################\n# DATASETS\n########################\n\n\ndef tweb(root_path, meta_file, **kwargs): # pylint: disable=unused-arg...
diff --git a/TTS/tts/datasets/formatters.py b/TTS/tts/datasets/formatters.py index 3e963d0c45..c13fcdb84b 100644 --- a/TTS/tts/datasets/formatters.py +++ b/TTS/tts/datasets/formatters.py @@ -246,7 +246,7 @@ def libri_tts(root_path, meta_files=None, ignored_speakers=None): continue ...
geopandas__geopandas-1598
BUG: TypeError exception shows the type of the wrong variable https://github.com/geopandas/geopandas/blob/b366d890c35d68a52f7f608e47f00b89eaa85850/geopandas/tools/clip.py#L130 This should reference 'mask' instead of 'gdf'.
[ { "content": "\"\"\"\ngeopandas.clip\n==============\n\nA module to clip vector data using GeoPandas.\n\n\"\"\"\nimport warnings\n\nimport numpy as np\nimport pandas as pd\n\nfrom shapely.geometry import Polygon, MultiPolygon\n\nfrom geopandas import GeoDataFrame, GeoSeries\nfrom geopandas.array import _check_c...
[ { "content": "\"\"\"\ngeopandas.clip\n==============\n\nA module to clip vector data using GeoPandas.\n\n\"\"\"\nimport warnings\n\nimport numpy as np\nimport pandas as pd\n\nfrom shapely.geometry import Polygon, MultiPolygon\n\nfrom geopandas import GeoDataFrame, GeoSeries\nfrom geopandas.array import _check_c...
diff --git a/geopandas/tools/clip.py b/geopandas/tools/clip.py index da76e0f21c..75ef3ce64b 100644 --- a/geopandas/tools/clip.py +++ b/geopandas/tools/clip.py @@ -127,7 +127,7 @@ def clip(gdf, mask, keep_geom_type=False): if not isinstance(mask, (GeoDataFrame, GeoSeries, Polygon, MultiPolygon)): raise Typ...
pwr-Solaar__Solaar-1447
Too high PyYAML and psutil version requirements for RHEL/CentOS 8 base OS **Information** <!-- Please update to Solaar from this repository before asking for a new feature. --> - Solaar version (`solaar --version` and `git describe --tags`): **1.1.1** - Distribution: **RHEL 8.5** - Kernel version (ex. `uname -srmo`...
[ { "content": "#!/usr/bin/env python3\n\nfrom glob import glob as _glob\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# from solaar import NAME, __version__\n__version__ = '1.1.1'\nNAME = 'Solaar'\n\n\ndef _data_files():\n from os.path import dirname a...
[ { "content": "#!/usr/bin/env python3\n\nfrom glob import glob as _glob\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# from solaar import NAME, __version__\n__version__ = '1.1.1'\nNAME = 'Solaar'\n\n\ndef _data_files():\n from os.path import dirname a...
diff --git a/setup.py b/setup.py index 36615f9f3c..dd1423b739 100755 --- a/setup.py +++ b/setup.py @@ -62,9 +62,9 @@ def _data_files(): python_requires='>=3.6', install_requires=[ 'pyudev (>= 0.13)', - 'PyYAML (>= 5.1)', + 'PyYAML (>= 3.12)', 'python-xlib (>= 0.27)', - '...
enthought__chaco-401
`six.moves` incorrectly imported in `errorbar_plot.py` **Problem Description** Noticed a stacktrace in my work that pointed out a `NameError` (`global name 'sm' is not defined`) at `errorbar_plot.py:77` of 4.7.1, which is: l1, l2, l3 = sm.map(len, (index, value_low, value_high)) It seems that this is because...
[ { "content": "\nfrom __future__ import with_statement\n\nimport six\nimport six.moves\n\n# Major library imports\nfrom numpy import column_stack, compress, invert, isnan, transpose\nimport logging\n\n# Enthought library imports\nfrom traits.api import Any, Enum, Float, Instance\n\n# Chaco imports\nfrom .lineplo...
[ { "content": "\nfrom __future__ import with_statement\n\nimport six\nimport six.moves as sm\n\n# Major library imports\nfrom numpy import column_stack, compress, invert, isnan, transpose\nimport logging\n\n# Enthought library imports\nfrom traits.api import Any, Enum, Float, Instance\n\n# Chaco imports\nfrom .l...
diff --git a/chaco/errorbar_plot.py b/chaco/errorbar_plot.py index 261729fae..e50c7c59e 100644 --- a/chaco/errorbar_plot.py +++ b/chaco/errorbar_plot.py @@ -2,7 +2,7 @@ from __future__ import with_statement import six -import six.moves +import six.moves as sm # Major library imports from numpy import column_sta...
ioos__compliance-checker-259
JSON output missing argument Attempting to run compliance-checker on Python 2 or 3 with JSON output fails due to a missing function argument. ``` compliance-checker --test ioos -f json -c strict compliance_checker/tests/data/conv_bad.nc Traceback (mos...
[ { "content": "\"\"\"\nCompliance Checker suite runner\n\"\"\"\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport sys\nimport inspect\nimport itertools\nimport json\nfrom netCDF4 import Dataset\nfrom lxml import etree as ET\nfrom compliance_checker.base import fix_return_va...
[ { "content": "\"\"\"\nCompliance Checker suite runner\n\"\"\"\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport sys\nimport inspect\nimport itertools\nimport json\nfrom netCDF4 import Dataset\nfrom lxml import etree as ET\nfrom compliance_checker.base import fix_return_va...
diff --git a/compliance_checker/suite.py b/compliance_checker/suite.py index e2f683ef..ce01b075 100644 --- a/compliance_checker/suite.py +++ b/compliance_checker/suite.py @@ -225,7 +225,7 @@ def json_output(self, check_name, groups, file_object, source_name, limit): aggregates = self.build_structure(check_name...
vega__altair-3191
`sanitize_dataframe` utilizes deprecated Pandas `convert_dtype` param This particular utility function uses a deprecated Pandas codepath: https://github.com/altair-viz/altair/blob/ec13a671d53419f371b629d449f719240d1f1756/altair/utils/core.py#L410C1-L410C76 As this emits a `FutureWarning` and will eventually be remov...
[ { "content": "\"\"\"\nUtility routines\n\"\"\"\nfrom collections.abc import Mapping, MutableMapping\nfrom copy import deepcopy\nimport json\nimport itertools\nimport re\nimport sys\nimport traceback\nimport warnings\nfrom typing import (\n Callable,\n TypeVar,\n Any,\n Union,\n Dict,\n Optiona...
[ { "content": "\"\"\"\nUtility routines\n\"\"\"\nfrom collections.abc import Mapping, MutableMapping\nfrom copy import deepcopy\nimport json\nimport itertools\nimport re\nimport sys\nimport traceback\nimport warnings\nfrom typing import (\n Callable,\n TypeVar,\n Any,\n Union,\n Dict,\n Optiona...
diff --git a/altair/utils/core.py b/altair/utils/core.py index f2ce1d4bc..fa83665f5 100644 --- a/altair/utils/core.py +++ b/altair/utils/core.py @@ -407,7 +407,7 @@ def to_list_if_array(val): elif dtype == object: # Convert numpy arrays saved as objects to lists # Arrays are not JSON ...
web2py__web2py-544
db.export_to_csv_file() error with python 3.7 **Describe the bug** db.export_to_csv_file() error with python 3.7 ``` TypeError: a bytes-like object is required, not 'str' ``` in ``` web2py/gluon/packages/dal/pydal/base.py", line 844, in export_to_csv_file ofile.write('TABLE %s\r\n' % table) ``` **To Rep...
[ { "content": "# -*- coding: utf-8 -*-\nimport base64\nimport datetime\nimport re\n\nfrom .._globals import IDENTITY\nfrom .._load import cx_Oracle\nfrom .base import BaseAdapter\n\nclass OracleAdapter(BaseAdapter):\n drivers = ('cx_Oracle',)\n\n commit_on_alter_table = False\n types = {\n 'boole...
[ { "content": "# -*- coding: utf-8 -*-\nimport base64\nimport datetime\nimport re\n\nfrom .._globals import IDENTITY\nfrom .._load import cx_Oracle\nfrom .base import BaseAdapter\n\nclass OracleAdapter(BaseAdapter):\n drivers = ('cx_Oracle',)\n\n commit_on_alter_table = False\n types = {\n 'boole...
diff --git a/gluon/dal/adapters/oracle.py b/gluon/dal/adapters/oracle.py index be8dcfb88..e00b9feab 100644 --- a/gluon/dal/adapters/oracle.py +++ b/gluon/dal/adapters/oracle.py @@ -136,7 +136,7 @@ def execute(self, command, args=None): return self.log_execute(command, args) def create_sequence_and_trigg...
locustio__locust-1534
ValueError: StatsEntry.use_response_times_cache must be set to True I see this on every locust worker running `1.2`: ``` $ locust --worker --locustfile=main.py [2020-08-20 11:02:50,637] C02TD0F6GTDX/INFO/locust.main: Starting Locust 1.2 Traceback (most recent call last): File "src/gevent/greenlet.py", line 854...
[ { "content": "import datetime\nimport hashlib\nimport time\nfrom collections import namedtuple, OrderedDict\nfrom copy import copy\nfrom itertools import chain\nimport csv\n\nimport gevent\n\nfrom .exception import StopUser\n\nimport logging\nconsole_logger = logging.getLogger(\"locust.stats_logger\")\n\nSTATS_...
[ { "content": "import datetime\nimport hashlib\nimport time\nfrom collections import namedtuple, OrderedDict\nfrom copy import copy\nfrom itertools import chain\nimport csv\n\nimport gevent\n\nfrom .exception import StopUser\n\nimport logging\nconsole_logger = logging.getLogger(\"locust.stats_logger\")\n\nSTATS_...
diff --git a/locust/stats.py b/locust/stats.py index 76a1ad5f45..915c3ec14d 100644 --- a/locust/stats.py +++ b/locust/stats.py @@ -759,6 +759,8 @@ def stats_history(runner): """Save current stats info to history for charts of report.""" while True: stats = runner.stats + if not stats.total.use...
Lightning-AI__pytorch-lightning-252
Add support for ReduceLROnPlateau **Is your feature request related to a problem? Please describe.** As of now it does not seem like it is possible to use ReduceLROnPlateau as a metric has to be passed to the step method of the lr_scheduler. **Describe the solution you'd like** A possibility to use ReduceLROnPlate...
[ { "content": "\"\"\"\nThe trainer handles all the logic for running a val loop, training loop, distributing, etc.. .\n\"\"\"\n\nimport os\nimport re\nimport warnings\n\nimport numpy as np\nimport tqdm\nimport torch\nfrom torch.utils.data.distributed import DistributedSampler\nimport torch.multiprocessing as mp\...
[ { "content": "\"\"\"\nThe trainer handles all the logic for running a val loop, training loop, distributing, etc.. .\n\"\"\"\n\nimport os\nimport re\nimport warnings\n\nimport numpy as np\nimport tqdm\nimport torch\nfrom torch.utils.data.distributed import DistributedSampler\nimport torch.multiprocessing as mp\...
diff --git a/pytorch_lightning/trainer/trainer.py b/pytorch_lightning/trainer/trainer.py index 454ee6f0d9d92..d806bc3b53d11 100644 --- a/pytorch_lightning/trainer/trainer.py +++ b/pytorch_lightning/trainer/trainer.py @@ -966,7 +966,7 @@ def __train(self): # update LR schedulers if self.lr_sche...
vllm-project__vllm-147
Write README
[ { "content": "import io\nimport os\nimport re\nimport subprocess\nfrom typing import List, Set\n\nfrom packaging.version import parse, Version\nimport setuptools\nimport torch\nfrom torch.utils.cpp_extension import BuildExtension, CUDAExtension, CUDA_HOME\n\nROOT_DIR = os.path.dirname(__file__)\n\n# Compiler fl...
[ { "content": "import io\nimport os\nimport re\nimport subprocess\nfrom typing import List, Set\n\nfrom packaging.version import parse, Version\nimport setuptools\nimport torch\nfrom torch.utils.cpp_extension import BuildExtension, CUDAExtension, CUDA_HOME\n\nROOT_DIR = os.path.dirname(__file__)\n\n# Compiler fl...
diff --git a/README.md b/README.md index 2447173799d..2652422c36c 100644 --- a/README.md +++ b/README.md @@ -1,66 +1,54 @@ -# vLLM +# vLLM: Easy, Fast, and Cheap LLM Serving for Everyone -## Build from source +| [**Documentation**](https://llm-serving-cacheflow.readthedocs-hosted.com/_/sharing/Cyo52MQgyoAWRQ79XA4iA2k...
Lightning-AI__torchmetrics-1097
MeanAveragePrecision does not handle empty predictions or ground truth boxes not in xyxy format ## 🐛 Bug When empty ground truth or prediction `boxes` tensor are provided, `MeanAveragePrecision` crashes during the conversion to `xyxy` from other formats. ### To Reproduce Steps to reproduce the behavior... ...
[ { "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/CHANGELOG.md b/CHANGELOG.md index 7da61d6c634..ffce5d81cad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,9 +42,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed mAP calculation for areas with 0 predictions ([#1080](https://github.com/PyTorchLightning/me...
archlinux__archinstall-436
Duplicate formatting on master Looks like partitions are getting formatted twice. It's not breaking anything but might be worth fixing eventually.
[ { "content": "import getpass, time, json, os, logging\nimport archinstall\nfrom archinstall.lib.hardware import hasUEFI\nfrom archinstall.lib.profiles import Profile\n\nif archinstall.arguments.get('help'):\n\tprint(\"See `man archinstall` for help.\")\n\texit(0)\n\n# For support reasons, we'll log the disk lay...
[ { "content": "import getpass, time, json, os, logging\nimport archinstall\nfrom archinstall.lib.hardware import hasUEFI\nfrom archinstall.lib.profiles import Profile\n\nif archinstall.arguments.get('help'):\n\tprint(\"See `man archinstall` for help.\")\n\texit(0)\n\n# For support reasons, we'll log the disk lay...
diff --git a/examples/guided.py b/examples/guided.py index 4c8af24586..0ae253a093 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -292,8 +292,8 @@ def perform_installation_steps(): unlocked_device.format(fs.find_partition('/').filesystem) unlocked_device.mount('/mnt') else: - fs.find_part...
celery__celery-5918
DecodeError - "the JSON object must be str, bytes or bytearray, not dict" Mongo backend <!-- Please fill this template entirely and do not erase parts of it. We reserve the right to close without a response bug reports which are incomplete. --> # Checklist <!-- To check an item on the list replace [ ] with [x]....
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"MongoDB result store backend.\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nfrom datetime import datetime, timedelta\n\nfrom kombu.exceptions import EncodeError\nfrom kombu.utils.objects import cached_property\nfrom kombu.utils.url import maybe_s...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"MongoDB result store backend.\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nfrom datetime import datetime, timedelta\n\nfrom kombu.exceptions import EncodeError\nfrom kombu.utils.objects import cached_property\nfrom kombu.utils.url import maybe_s...
diff --git a/celery/backends/mongodb.py b/celery/backends/mongodb.py index 198f7881594..f7474a189b4 100644 --- a/celery/backends/mongodb.py +++ b/celery/backends/mongodb.py @@ -180,7 +180,9 @@ def encode(self, data): def decode(self, data): if self.serializer == 'bson': return data - r...
pallets__click-1930
Shell completion fails with for arguments starting with "/" After enabling shell completion support, arguments which start with a leading forward slash "/" fail to complete. After a bit of debugging, it appears that if the argument starts with a "/", the completions are generated for the command itself instead of fo...
[ { "content": "import os\nimport re\nimport typing as t\nfrom gettext import gettext as _\n\nfrom .core import Argument\nfrom .core import BaseCommand\nfrom .core import Context\nfrom .core import MultiCommand\nfrom .core import Option\nfrom .core import Parameter\nfrom .core import ParameterSource\nfrom .parser...
[ { "content": "import os\nimport re\nimport typing as t\nfrom gettext import gettext as _\n\nfrom .core import Argument\nfrom .core import BaseCommand\nfrom .core import Context\nfrom .core import MultiCommand\nfrom .core import Option\nfrom .core import Parameter\nfrom .core import ParameterSource\nfrom .parser...
diff --git a/CHANGES.rst b/CHANGES.rst index 8f978ffd4..e5876af05 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,8 @@ Unreleased - Bash version detection is locale independent. :issue:`1940` - Empty ``default`` value is not shown for ``multiple=True``. :issue:`1969` +- Fix shell completion for arg...
openstates__openstates-scrapers-189
TX: version-less bills missing bill text(s) No link to bill text for the version-less bills examples: http://openstates.org/browse/tx/82/HJR%20146/ http://www.legis.state.tx.us/BillLookup/Text.aspx?LegSess=82R&Bill=HJR146 http://openstates.org/browse/tx/81/HJR%20120/ http://www.legis.state.tx.us/BillLookup/Text.aspx?L...
[ { "content": "import re\nimport urllib2\nimport urlparse\nimport datetime\n\nfrom billy.utils import urlescape\nfrom billy.scrape import ScrapeError\nfrom billy.scrape.bills import BillScraper, Bill\n\nfrom .utils import chamber_name, parse_ftp_listing\n\nimport lxml.etree\n\n\nclass TXBillScraper(BillScraper):...
[ { "content": "import re\nimport urllib2\nimport urlparse\nimport datetime\n\nfrom billy.utils import urlescape\nfrom billy.scrape import ScrapeError\nfrom billy.scrape.bills import BillScraper, Bill\n\nfrom .utils import chamber_name, parse_ftp_listing\n\nimport lxml.etree\n\n\nclass TXBillScraper(BillScraper):...
diff --git a/AUTHORS b/AUTHORS index de800db889..69d5a2d9d0 100644 --- a/AUTHORS +++ b/AUTHORS @@ -34,6 +34,7 @@ Additional Contributions: PR: Gabriel J. Pérez, Anner J. Bonilla SC: Carson McDonald, Daniel Schep, Tami Crawford TN: Matt Grayson, Lucas Taylor, Robert Diamond + TX: Brian Browning VA...
netbox-community__netbox-11755
GraphQL returns all objects if tag doesn't exist ### NetBox version v3.4.2 ### Python version 3.10 ### Steps to Reproduce 1. query GraphQL for device/interface with a tag that doesn't exist ### Expected Behavior Resulting list of devices/interfaces only contains devices matching the tags or none if no device exi...
[ { "content": "from functools import partial\n\nimport graphene\nfrom graphene_django import DjangoListField\n\nfrom .utils import get_graphene_type\n\n__all__ = (\n 'ObjectField',\n 'ObjectListField',\n)\n\n\nclass ObjectField(graphene.Field):\n \"\"\"\n Retrieve a single object, identified by its n...
[ { "content": "from functools import partial\n\nimport graphene\nfrom graphene_django import DjangoListField\n\nfrom .utils import get_graphene_type\n\n__all__ = (\n 'ObjectField',\n 'ObjectListField',\n)\n\n\nclass ObjectField(graphene.Field):\n \"\"\"\n Retrieve a single object, identified by its n...
diff --git a/netbox/netbox/graphql/fields.py b/netbox/netbox/graphql/fields.py index 5b8e6cc5b57..7c359e82ea3 100644 --- a/netbox/netbox/graphql/fields.py +++ b/netbox/netbox/graphql/fields.py @@ -60,6 +60,8 @@ def list_resolver(django_object_type, resolver, default_manager, root, info, **a filterset_class = d...
google__pytype-213
Remove ".py" report Part of #111
[ { "content": "\"\"\"Use pytype to analyze and infer types for an entire project.\"\"\"\n\nfrom __future__ import print_function\n\nimport logging\nimport os\nimport subprocess\n\nfrom pytype import file_utils\nfrom pytype import module_utils\nfrom pytype.tools.analyze_project import config\nimport six\n\n\n# Ge...
[ { "content": "\"\"\"Use pytype to analyze and infer types for an entire project.\"\"\"\n\nfrom __future__ import print_function\n\nimport logging\nimport os\nimport subprocess\n\nfrom pytype import file_utils\nfrom pytype import module_utils\nfrom pytype.tools.analyze_project import config\nimport six\n\n\n# Ge...
diff --git a/pytype/tools/analyze_project/pytype_runner.py b/pytype/tools/analyze_project/pytype_runner.py index 6812860f0..1c12b6e22 100644 --- a/pytype/tools/analyze_project/pytype_runner.py +++ b/pytype/tools/analyze_project/pytype_runner.py @@ -196,9 +196,6 @@ def get_module_action(self, module): else: ...
google__turbinia-929
Add --storage_file parameter to log2timeline Add `--storage_file` parameter as new plaso version will not work without this anymore. https://github.com/google/turbinia/blob/23a97d9d826cbcc51e6b5dfd50d85251506bf242/turbinia/workers/plaso.py#L121
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U...
diff --git a/turbinia/workers/plaso.py b/turbinia/workers/plaso.py index d61ef5b3e..a2d4de688 100644 --- a/turbinia/workers/plaso.py +++ b/turbinia/workers/plaso.py @@ -118,7 +118,8 @@ def run(self, evidence, result): cmd.extend(['--temporary_directory', self.tmp_dir]) cmd.extend(['--logfile', plaso_log]) ...
pydantic__pydantic-3177
"extra" config not respected for TypedDicts in functions ### Checks * [x] I added a descriptive title to this issue * [x] I have searched (google, github) for similar issues and couldn't find anything * [x] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug <...
[ { "content": "from functools import wraps\nfrom typing import TYPE_CHECKING, Any, Callable, Dict, List, Mapping, Optional, Tuple, Type, TypeVar, Union, overload\n\nfrom . import validator\nfrom .config import Extra\nfrom .errors import ConfigError\nfrom .main import BaseModel, create_model\nfrom .typing import ...
[ { "content": "from functools import wraps\nfrom typing import TYPE_CHECKING, Any, Callable, Dict, List, Mapping, Optional, Tuple, Type, TypeVar, Union, overload\n\nfrom . import validator\nfrom .config import Extra\nfrom .errors import ConfigError\nfrom .main import BaseModel, create_model\nfrom .typing import ...
diff --git a/changes/3161-PrettyWood.md b/changes/3161-PrettyWood.md new file mode 100644 index 00000000000..3e037e59435 --- /dev/null +++ b/changes/3161-PrettyWood.md @@ -0,0 +1 @@ +`validate_arguments` now supports `extra` customization (used to always be `Extra.forbid`) \ No newline at end of file diff --git a/pydan...
WeblateOrg__weblate-3917
FieldError: Cannot resolve keyword 'max_labels_name' into field. Choices are: change, check, comment, content... Error when sorting by label. Apparently, the tests do not cover this well as it's broken without tests failing. Sentry Issue: [WEBLATE-3WE](https://sentry.io/organizations/weblate/issues/1674410274/?referre...
[ { "content": "#\n# Copyright © 2012 - 2020 Michal Čihař <michal@cihar.com>\n#\n# This file is part of Weblate <https://weblate.org/>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation,...
[ { "content": "#\n# Copyright © 2012 - 2020 Michal Čihař <michal@cihar.com>\n#\n# This file is part of Weblate <https://weblate.org/>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation,...
diff --git a/weblate/trans/models/unit.py b/weblate/trans/models/unit.py index 4cbc27232af2..49b2dcff36ff 100644 --- a/weblate/trans/models/unit.py +++ b/weblate/trans/models/unit.py @@ -150,7 +150,7 @@ def order_by_request(self, form_data): sort_list.append(choice) if not sort_list: ...
pyca__cryptography-1575
Build automation fixes for 8th release When triggering the wheel build the release automation does not appropriately wait for the build to complete but instead grabs the previous build. The previous attempted fix of adding a `sleep(3)` did not work around this issue.
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport getpass\nimport os\nimport time\n\nimp...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport getpass\nimport os\nimport time\n\nimp...
diff --git a/tasks.py b/tasks.py index c109f14974b8..74ff6b192cf1 100644 --- a/tasks.py +++ b/tasks.py @@ -17,9 +17,9 @@ def wait_for_build_completed(session): - # Wait 3 seconds before actually checking if the build is complete, to + # Wait 20 seconds before actually checking if the build is complete, to ...
scverse__scanpy-1844
Failing to detect ipython - [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of scanpy. - [x] (optional) I have confirmed this bug exists on the master branch of scanpy. --- Initially reported by @VolkerBergen in #1477. From within...
[ { "content": "import inspect\nimport sys\nfrom contextlib import contextmanager\nfrom enum import IntEnum\nfrom pathlib import Path\nfrom time import time\nfrom logging import getLevelName\nfrom typing import Any, Union, Optional, Iterable, TextIO\nfrom typing import Tuple, List, ContextManager\n\nfrom . import...
[ { "content": "import inspect\nimport sys\nfrom contextlib import contextmanager\nfrom enum import IntEnum\nfrom pathlib import Path\nfrom time import time\nfrom logging import getLevelName\nfrom typing import Any, Union, Optional, Iterable, TextIO\nfrom typing import Tuple, List, ContextManager\n\nfrom . import...
diff --git a/docs/release-notes/1.8.0.rst b/docs/release-notes/1.8.0.rst index ebeff58b4b..4c136115e2 100644 --- a/docs/release-notes/1.8.0.rst +++ b/docs/release-notes/1.8.0.rst @@ -25,6 +25,7 @@ .. rubric:: Bug fixes - Fix :func:`scanpy.pl.paga_path` `TypeError` with recent versions of anndata :pr:`1047` :smaller...
django-import-export__django-import-export-1826
TypeError: Widget.__init__() got an unexpected keyword argument 'key_is_id' when upgrading from 3.8 to 4.0 After upgrading from version 3.8 to 4.0 I get the error `TypeError: Widget.__init__() got an unexpected keyword argument 'key_is_id'`. Full stack below. ``` (py_ptracker) root@euganeus:/opt/team_django# ./mana...
[ { "content": "import functools\nimport inspect\nimport logging\nimport traceback\nfrom collections import OrderedDict\nfrom copy import deepcopy\nfrom html import escape\nfrom warnings import warn\n\nimport tablib\nfrom diff_match_patch import diff_match_patch\nfrom django.conf import settings\nfrom django.core...
[ { "content": "import functools\nimport inspect\nimport logging\nimport traceback\nfrom collections import OrderedDict\nfrom copy import deepcopy\nfrom html import escape\nfrom warnings import warn\n\nimport tablib\nfrom diff_match_patch import diff_match_patch\nfrom django.conf import settings\nfrom django.core...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 68e853041..6b373420c 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,13 +5,14 @@ Changelog Version 4 introduces breaking changes. Please refer to :doc:`release notes<release_notes>`. -4.0.2 (unreleased) +4.0.2 (2024-05-13) ------------...
docker__docker-py-1896
Downloading no longer works? So something seems to have changed and/or broken in 3.0 since we are now seeing the following: ``` using docker==3.0 DEBUG:urllib3.connectionpool:http://localhost:None "POST /v1.35/images/create?tag=glance.15.0.1.g06af2eb5abe0.j27&fromImage=docker-cloud-ostack-local.artifactory.secur...
[ { "content": "import os\nfrom datetime import datetime\n\nfrom .. import auth, utils\n\n\nclass DaemonApiMixin(object):\n @utils.minimum_version('1.25')\n def df(self):\n \"\"\"\n Get data usage information.\n\n Returns:\n (dict): A dictionary representing different resourc...
[ { "content": "import os\nfrom datetime import datetime\n\nfrom .. import auth, utils\n\n\nclass DaemonApiMixin(object):\n @utils.minimum_version('1.25')\n def df(self):\n \"\"\"\n Get data usage information.\n\n Returns:\n (dict): A dictionary representing different resourc...
diff --git a/docker/api/daemon.py b/docker/api/daemon.py index 033dbf19e..0e1c75381 100644 --- a/docker/api/daemon.py +++ b/docker/api/daemon.py @@ -139,7 +139,7 @@ def login(self, username, password=None, email=None, registry=None, if response.status_code == 200: if 'auths' not in self._auth_conf...
napari__napari-3424
`normalize_dtype` excludes big endian types ## 🐛 Bug ```py In [457]: from napari.utils._dtype import get_dtype_limits In [458]: get_dtype_limits(np.dtype('<u2')) Out[458]: (0, 65535) In [459]: get_dtype_limits(np.dtype('>u2')) --------------------------------------------------------------------------- TypeE...
[ { "content": "from typing import Tuple, Union\n\nimport numpy as np\n\n_np_uints = {\n 8: np.uint8,\n 16: np.uint16,\n 32: np.uint32,\n 64: np.uint64,\n}\n\n_np_ints = {\n 8: np.int8,\n 16: np.int16,\n 32: np.int32,\n 64: np.int64,\n}\n\n_np_floats = {\n 32: np.float32,\n 64: np.fl...
[ { "content": "from typing import Tuple, Union\n\nimport numpy as np\n\n_np_uints = {\n 8: np.uint8,\n 16: np.uint16,\n 32: np.uint32,\n 64: np.uint64,\n}\n\n_np_ints = {\n 8: np.int8,\n 16: np.int16,\n 32: np.int32,\n 64: np.int64,\n}\n\n_np_floats = {\n 32: np.float32,\n 64: np.fl...
diff --git a/napari/utils/_dtype.py b/napari/utils/_dtype.py index fbcc249748c..1ef7d95a510 100644 --- a/napari/utils/_dtype.py +++ b/napari/utils/_dtype.py @@ -79,6 +79,11 @@ def normalize_dtype(dtype_spec): return _normalize_str_by_bit_depth(dtype_str, 'complex') if 'bool' in dtype_str: return ...
buildbot__buildbot-5397
base64.decodestring has been deprecated and removed in Python 3.9 in favor of decodebytes https://github.com/buildbot/buildbot/blob/144eb7e82dc261e6506f1f68493446bcb24d77a0/master/buildbot/manhole.py#L115 https://github.com/python/cpython/pull/18022
[ { "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/manhole.py b/master/buildbot/manhole.py index 7cc0d2859421..6a48e5549e97 100644 --- a/master/buildbot/manhole.py +++ b/master/buildbot/manhole.py @@ -112,7 +112,7 @@ def checkKey(self, credentials): if len(l2) < 2: continue ...
vega__altair-423
Logo for Website It would be nice to have a logo for the website. I'm personally horribly unskilled at such things...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# altair documentation build configuration file, created by\n# sphinx-quickstart on Wed Sep 7 12:52:48 2016.\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 v...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# altair documentation build configuration file, created by\n# sphinx-quickstart on Wed Sep 7 12:52:48 2016.\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 v...
diff --git a/design/altair-logo-light.png b/design/altair-logo-light.png new file mode 100644 index 000000000..8dd96d6b2 Binary files /dev/null and b/design/altair-logo-light.png differ diff --git a/design/altair-logo-light.svg b/design/altair-logo-light.svg new file mode 100644 index 000000000..288186fa0 --- /dev/null...
mitmproxy__mitmproxy-1513
Wait for new cryptography release For the next mitmproxy release, we want to recommend Python 3.5 by default. This requires a cryptography release which includes https://github.com/pyca/cryptography/pull/3063.
[ { "content": "from setuptools import setup, find_packages\nfrom codecs import open\nimport os\n\nfrom netlib import version\n\n# Based on https://github.com/pypa/sampleproject/blob/master/setup.py\n# and https://python-packaging-user-guide.readthedocs.org/\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\...
[ { "content": "from setuptools import setup, find_packages\nfrom codecs import open\nimport os\n\nfrom netlib import version\n\n# Based on https://github.com/pypa/sampleproject/blob/master/setup.py\n# and https://python-packaging-user-guide.readthedocs.org/\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\...
diff --git a/.travis.yml b/.travis.yml index a8301ec824..a114dafb14 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,7 +53,7 @@ install: fi - pip install tox -script: set -o pipefail; python -m tox -- --cov netlib --cov mitmproxy --cov pathod 2>&1 | grep -v Cryptography_locking_cb +script: tox -- --cov netli...
vyperlang__vyper-3236
`CompilerPanic` when writing to an array in calldata ### Version Information * vyper Version (output of `vyper --version`): 0.3.8+commit.ae7d6d28 * OS: OSX * Python Version (output of `python --version`): 3.8.0 ### What's your issue about? Note that this bug is not present in v0.3.7 but only in the latest co...
[ { "content": "import itertools\nfrom typing import Callable, List\n\nfrom vyper import ast as vy_ast\nfrom vyper.exceptions import (\n InvalidLiteral,\n InvalidOperation,\n InvalidReference,\n InvalidType,\n OverflowException,\n StructureException,\n TypeMismatch,\n UndeclaredDefinition,...
[ { "content": "import itertools\nfrom typing import Callable, List\n\nfrom vyper import ast as vy_ast\nfrom vyper.exceptions import (\n InvalidLiteral,\n InvalidOperation,\n InvalidReference,\n InvalidType,\n OverflowException,\n StructureException,\n TypeMismatch,\n UndeclaredDefinition,...
diff --git a/tests/parser/exceptions/test_constancy_exception.py b/tests/parser/exceptions/test_constancy_exception.py index 8df5e19442..4bd0b4fcb9 100644 --- a/tests/parser/exceptions/test_constancy_exception.py +++ b/tests/parser/exceptions/test_constancy_exception.py @@ -99,7 +99,27 @@ def test_statefulness_violatio...
gammapy__gammapy-3695
Warning incorrectly raised by SpectrumDatasetMaker.make_exposure with use_region_center=True **Gammapy version** v0.19 **Bug description** If using `SpectrumDatasetMaker.make_exposure` with pointlike IRFs, a warning is incorrectly raised if the option `user_region_center` is set to True. See this lien of code: ...
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport logging\nfrom regions import CircleSkyRegion\nfrom .map import MapDatasetMaker\n\n__all__ = [\"SpectrumDatasetMaker\"]\n\nlog = logging.getLogger(__name__)\n\n\nclass SpectrumDatasetMaker(MapDatasetMaker):\n \"\"\"Make spec...
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport logging\nfrom regions import CircleSkyRegion\nfrom .map import MapDatasetMaker\n\n__all__ = [\"SpectrumDatasetMaker\"]\n\nlog = logging.getLogger(__name__)\n\n\nclass SpectrumDatasetMaker(MapDatasetMaker):\n \"\"\"Make spec...
diff --git a/gammapy/makers/spectrum.py b/gammapy/makers/spectrum.py index 546c8c60d1..044444a0c7 100644 --- a/gammapy/makers/spectrum.py +++ b/gammapy/makers/spectrum.py @@ -64,7 +64,7 @@ def make_exposure(self, geom, observation): ) is_pointlike = exposure.meta.get("is_pointlike", False) - ...
acl-org__acl-anthology-2492
Ingestion request: PACLIC 2022 [https://drive.google.com/drive/folders/1k1Ea_fFNxo_aMBonjSfr0G9k7cOCnCDF?usp=share_link](https://l.facebook.com/l.php?u=https%3A%2F%2Fdrive.google.com%2Fdrive%2Ffolders%2F1k1Ea_fFNxo_aMBonjSfr0G9k7cOCnCDF%3Fusp%3Dshare_link%26fbclid%3DIwAR0zaKXkPHTHU8vOYwhUuxip4Rj8x3Y_sM_yxbZL-xHi5K6O_Lk...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Copyright 2019, 2020 Matt Post <post@cs.jhu.edu>\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# ht...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Copyright 2019, 2020 Matt Post <post@cs.jhu.edu>\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# ht...
diff --git a/bin/ingest.py b/bin/ingest.py index 217e28af17..584579318c 100755 --- a/bin/ingest.py +++ b/bin/ingest.py @@ -131,7 +131,7 @@ def bib2xml(bibfilename, anthology_id): bibdata = read_bibtex(bibfilename) if len(bibdata.entries) != 1: log(f"more than one entry in {bibfilename}") - bibkey,...
python-poetry__poetry-1862
Document the --no-root option <!-- Hi there! Thank you for wanting to make Poetry better. Before you submit this; let's make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill these first. --> <!-- Checked checkbox should look like...
[ { "content": "from cleo import option\n\nfrom .env_command import EnvCommand\n\n\nclass InstallCommand(EnvCommand):\n\n name = \"install\"\n description = \"Installs the project dependencies.\"\n\n options = [\n option(\"no-dev\", None, \"Do not install the development dependencies.\"),\n ...
[ { "content": "from cleo import option\n\nfrom .env_command import EnvCommand\n\n\nclass InstallCommand(EnvCommand):\n\n name = \"install\"\n description = \"Installs the project dependencies.\"\n\n options = [\n option(\"no-dev\", None, \"Do not install the development dependencies.\"),\n ...
diff --git a/docs/docs/basic-usage.md b/docs/docs/basic-usage.md index dad1ef9b9b4..7a8fef02695 100644 --- a/docs/docs/basic-usage.md +++ b/docs/docs/basic-usage.md @@ -134,6 +134,15 @@ the dependencies installed are still working even if your dependencies released For libraries it is not necessary to commit the...
open-mmlab__mmocr-1535
[Bug] OCR1.x dataset prepare don't support textspotting ### Prerequisite - [X] I have searched [Issues](https://github.com/open-mmlab/mmocr/issues) and [Discussions](https://github.com/open-mmlab/mmocr/discussions) but cannot get the expected help. - [X] The bug has not been fixed in the [latest version (0.x)](https:/...
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport json\nimport os.path as osp\nimport re\nimport shutil\nfrom abc import abstractmethod\nfrom functools import partial\nfrom typing import Dict, List, Optional, Sequence, Tuple\n\nimport mmcv\nfrom mmengine import mkdir_or_exist, track_parallel...
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport json\nimport os.path as osp\nimport re\nimport shutil\nfrom abc import abstractmethod\nfrom functools import partial\nfrom typing import Dict, List, Optional, Sequence, Tuple\n\nimport mmcv\nfrom mmengine import mkdir_or_exist, track_parallel...
diff --git a/mmocr/datasets/preparers/data_converter.py b/mmocr/datasets/preparers/data_converter.py index ae7cc3d55..d5e2e4863 100644 --- a/mmocr/datasets/preparers/data_converter.py +++ b/mmocr/datasets/preparers/data_converter.py @@ -127,6 +127,7 @@ def generate_dataset_config(self, dataset_config: Dict) -> None: ...
ray-project__ray-10706
[k8s][autoscaler] Possible command parsing issue, worker nodes quickly dying <!--Please include [tune], [rllib], [autoscaler] etc. in the issue title if relevant--> ### What is the problem? There seem to be multiple bugs in the kuburnetes autoscaler. When running `ray`, commands appear to be parsed incorrectly, re...
[ { "content": "from collections import defaultdict, namedtuple\nfrom typing import Any, Optional\nimport copy\nimport logging\nimport math\nimport numpy as np\nimport os\nimport subprocess\nimport threading\nimport time\nimport yaml\n\nfrom ray.experimental.internal_kv import _internal_kv_put, \\\n _internal_...
[ { "content": "from collections import defaultdict, namedtuple\nfrom typing import Any, Optional\nimport copy\nimport logging\nimport math\nimport numpy as np\nimport os\nimport subprocess\nimport threading\nimport time\nimport yaml\n\nfrom ray.experimental.internal_kv import _internal_kv_put, \\\n _internal_...
diff --git a/python/ray/autoscaler/autoscaler.py b/python/ray/autoscaler/autoscaler.py index 42a166a47ca2..deec0386dca9 100644 --- a/python/ray/autoscaler/autoscaler.py +++ b/python/ray/autoscaler/autoscaler.py @@ -430,6 +430,8 @@ def _get_node_type_specific_fields(self, node_id: str, return fields def ...
electricitymaps__electricitymaps-contrib-4354
South Korean electricity price is off by a factor of 1000x Someone reached out to us on email with the following feedback: Just want to mention, that the electricity price in South Korea is probably off by factor of 1000x. I believe this is due to different way to use decimal point. Great Britain and the United Sta...
[ { "content": "#!/usr/bin/env python3\n\nimport datetime\nimport json\nimport logging\nimport pprint\nimport re\n\nimport arrow\nimport pandas as pd\nimport requests\nfrom bs4 import BeautifulSoup\n\nfrom parsers.lib.config import refetch_frequency\n\nTIMEZONE = \"Asia/Seoul\"\nREAL_TIME_URL = \"https://new.kpx....
[ { "content": "#!/usr/bin/env python3\n\nimport datetime\nimport json\nimport logging\nimport pprint\nimport re\n\nimport arrow\nimport pandas as pd\nimport requests\nfrom bs4 import BeautifulSoup\n\nfrom parsers.lib.config import refetch_frequency\n\nTIMEZONE = \"Asia/Seoul\"\nREAL_TIME_URL = \"https://new.kpx....
diff --git a/parsers/KR.py b/parsers/KR.py index 7e28e7550a..bbb0d373a8 100644 --- a/parsers/KR.py +++ b/parsers/KR.py @@ -159,7 +159,9 @@ def fetch_price( .shift(days=-1 * (7 - day)) .replace(hour=hour, minute=0, second=0, microsecond=0) ) - price_value = table...
ManimCommunity__manim-2593
Preview without embed broken in jupyter notebooks. ## Description The embed feature seems to have broken preview in jupyter notebooks. default: <img width="1115" alt="Screenshot 2022-03-05 at 3 24 09 PM" src="https://user-images.githubusercontent.com/90276965/156878243-224900ac-8da2-46e5-8ee2-cc9f1852bec8.png"> ...
[ { "content": "\"\"\"Utilities for using Manim with IPython (in particular: Jupyter notebooks)\"\"\"\n\nfrom __future__ import annotations\n\nimport mimetypes\nimport os\nimport shutil\nfrom datetime import datetime\nfrom pathlib import Path\nfrom typing import Any\n\nfrom manim import Group, config, logger, tem...
[ { "content": "\"\"\"Utilities for using Manim with IPython (in particular: Jupyter notebooks)\"\"\"\n\nfrom __future__ import annotations\n\nimport mimetypes\nimport os\nimport shutil\nfrom datetime import datetime\nfrom pathlib import Path\nfrom typing import Any\n\nfrom manim import Group, config, logger, tem...
diff --git a/manim/utils/ipython_magic.py b/manim/utils/ipython_magic.py index 82b5a53987..61caf706b9 100644 --- a/manim/utils/ipython_magic.py +++ b/manim/utils/ipython_magic.py @@ -181,7 +181,7 @@ def construct(self): embed = "google.colab" in str(get_ipython()) if file_type.st...
inventree__InvenTree-1860
Migration warns for phantom part changes Here is the warning: ``` Your models in app(s): 'part' have changes that are not yet reflected in a migration, and so won't be applied. Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them. ``` Running `manage.py make...
[ { "content": "\"\"\" Custom fields used in InvenTree \"\"\"\n\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nimport sys\n\nfrom .validators import allowable_url_schemes\n\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom django.forms.fields import URLField as FormURLField\nfro...
[ { "content": "\"\"\" Custom fields used in InvenTree \"\"\"\n\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nimport sys\n\nfrom .validators import allowable_url_schemes\n\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom django.forms.fields import URLField as FormURLField\nfro...
diff --git a/InvenTree/InvenTree/fields.py b/InvenTree/InvenTree/fields.py index 462d2b0e0e72..cd98bf50c76e 100644 --- a/InvenTree/InvenTree/fields.py +++ b/InvenTree/InvenTree/fields.py @@ -55,7 +55,7 @@ class InvenTreeModelMoneyField(ModelMoneyField): def __init__(self, **kwargs): # detect if crea...
quantumlib__Cirq-5247
Add validation for Kraus operators Many of the methods involving noise/channels mention that the matrices making up a mixture or channel must satisfy \sum_{k=0}^{r-1} A_i^\dagger A_i = I. This is never enforced, which allows the user to simulate unphysical systems and get invalid density matrices (see example below). ...
[ { "content": "# pylint: disable=wrong-or-nonexistent-copyright-notice\nimport itertools\nfrom typing import Any, Dict, Iterable, List, Mapping, Optional, Union\n\nimport numpy as np\nfrom scipy.sparse import csr_matrix\n\nfrom cirq import value\nfrom cirq.ops import raw_types\n\n\ndef _check_qids_dimension(qids...
[ { "content": "# pylint: disable=wrong-or-nonexistent-copyright-notice\nimport itertools\nfrom typing import Any, Dict, Iterable, List, Mapping, Optional, Union\n\nimport numpy as np\nfrom scipy.sparse import csr_matrix\n\nfrom cirq import value\nfrom cirq.ops import raw_types\n\n\ndef _check_qids_dimension(qids...
diff --git a/cirq-core/cirq/ops/common_channels_test.py b/cirq-core/cirq/ops/common_channels_test.py index 806d37a426b..19c9c23a343 100644 --- a/cirq-core/cirq/ops/common_channels_test.py +++ b/cirq-core/cirq/ops/common_channels_test.py @@ -62,7 +62,8 @@ def test_asymmetric_depolarizing_channel(): cirq.kraus(d...
flairNLP__flair-1183
Contribution for support for the Danish Language Hi, I have trained Flair word embeddings on Danish using Wikipedia and Europarl corpus, and by using this a Part of Speech Tagger trained on the [Danish Dependency Treebank](https://github.com/UniversalDependencies/UD_Danish-DDT/blob/master/README.md) corpus. In our p...
[ { "content": "import logging\nfrom pathlib import Path\n\nimport logging\nfrom pathlib import Path\nfrom typing import List, Union, Optional, Callable\n\nimport numpy as np\nimport torch\nimport torch.nn\nimport torch.nn.functional as F\nfrom tabulate import tabulate\nfrom torch.nn.parameter import Parameter\nf...
[ { "content": "import logging\nfrom pathlib import Path\n\nimport logging\nfrom pathlib import Path\nfrom typing import List, Union, Optional, Callable\n\nimport numpy as np\nimport torch\nimport torch.nn\nimport torch.nn.functional as F\nfrom tabulate import tabulate\nfrom torch.nn.parameter import Parameter\nf...
diff --git a/flair/models/sequence_tagger_model.py b/flair/models/sequence_tagger_model.py index a472db26fe..afe7d81fa4 100644 --- a/flair/models/sequence_tagger_model.py +++ b/flair/models/sequence_tagger_model.py @@ -948,6 +948,14 @@ def _fetch_model(model_name) -> str: ] ) + model_map[...
Project-MONAI__MONAI-6560
Enhance `check_properties` in `monai.bundle.workflows` Currently, it may not work on some optional property cases. According to: https://github.com/Project-MONAI/MONAI/blob/9d6ccce3d46d64b3ffe289349f50323bd0a1b6eb/monai/bundle/workflows.py#L381 It compares `ref` and `ID_REF_KEY + id`, it works on normal cases. H...
[ { "content": "# Copyright (c) MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable la...
[ { "content": "# Copyright (c) MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable la...
diff --git a/monai/bundle/workflows.py b/monai/bundle/workflows.py index 527ace26bd..3d80055674 100644 --- a/monai/bundle/workflows.py +++ b/monai/bundle/workflows.py @@ -378,7 +378,8 @@ def _check_optional_id(self, name: str, property: dict) -> bool: ref = h.get(ref_id, None) else: ...
Textualize__textual-4078
Awaiting the mount of many widgets may break the app If you mount many widgets in succession with `mount` and await their mount, your app may break. Even if using `mount_all` works just fine. In the example below, if I use `mount_all` to mount 500 labels, Textual doesn't even bat an eye. If I use `mount` on a loop...
[ { "content": "\"\"\"\n\nA `MessagePump` is a base class for any object which processes messages, which includes Widget, Screen, and App.\n\n!!! tip\n\n Most of the method here are useful in general app development.\n\n\"\"\"\n\nfrom __future__ import annotations\n\nimport asyncio\nimport inspect\nimport thre...
[ { "content": "\"\"\"\n\nA `MessagePump` is a base class for any object which processes messages, which includes Widget, Screen, and App.\n\n!!! tip\n\n Most of the method here are useful in general app development.\n\n\"\"\"\n\nfrom __future__ import annotations\n\nimport asyncio\nimport inspect\nimport thre...
diff --git a/src/textual/message_pump.py b/src/textual/message_pump.py index 9605d3856d..b0dc922f58 100644 --- a/src/textual/message_pump.py +++ b/src/textual/message_pump.py @@ -592,7 +592,8 @@ async def _flush_next_callbacks(self) -> None: self._next_callbacks.clear() for callback in callbacks: ...
pex-tool__pex-253
`py27-package` tox target broken. symptom: ``` $ tox -e py27-package GLOB sdist-make: /Users/billg/ws/git/pex/setup.py py27-package inst-nodeps: /Users/billg/ws/git/pex/.tox/dist/pex-1.1.6.zip py27-package installed: funcsigs==1.0.2,mock==2.0.0,pbr==1.9.1,pex==1.1.6,py==1.4.31,pytest==2.9.1,six==1.10.0,twitter.common....
[ { "content": "# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n\"\"\"\nThe pex.pex utility builds PEX environments and .pex files specified by\nsources, requirements and their dependencies.\n\"\"\"\n\nfrom __future__ import ab...
[ { "content": "# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n\"\"\"\nThe pex.pex utility builds PEX environments and .pex files specified by\nsources, requirements and their dependencies.\n\"\"\"\n\nfrom __future__ import ab...
diff --git a/pex/bin/pex.py b/pex/bin/pex.py index a60bdc845..3266f3193 100755 --- a/pex/bin/pex.py +++ b/pex/bin/pex.py @@ -514,7 +514,8 @@ def make_relative_to_root(path): return os.path.normpath(path.format(pex_root=ENV.PEX_ROOT)) -def main(args): +def main(args=None): + args = args or sys.argv[1:] parser...
ansible__ansible-modules-core-5693
cron module failing if entry already exists (on RHEL5) ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME cron module ##### ANSIBLE VERSION ``` ansible 2.3.0 (devel bb41a005b3) last updated 2016/11/17 15:58:57 (GMT +800) lib/ansible/modules/core: (detached HEAD a4cddac368) last updated 2016/11/17 15:59:3...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# (c) 2012, Dane Summers <dsummers@pinedesk.biz>\n# (c) 2013, Mike Grozak <mike.grozak@gmail.com>\n# (c) 2013, Patrick Callahan <pmc@patrickcallahan.com>\n# (c) 2015, Evan Kaufman <evan@digitalflophouse.com>\n# (c) 2015, Luca Berruti <nadirio@gmail.c...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# (c) 2012, Dane Summers <dsummers@pinedesk.biz>\n# (c) 2013, Mike Grozak <mike.grozak@gmail.com>\n# (c) 2013, Patrick Callahan <pmc@patrickcallahan.com>\n# (c) 2015, Evan Kaufman <evan@digitalflophouse.com>\n# (c) 2015, Luca Berruti <nadirio@gmail.c...
diff --git a/system/cron.py b/system/cron.py index 9dd5b5c9b3c..438c3c22dca 100644 --- a/system/cron.py +++ b/system/cron.py @@ -717,8 +717,9 @@ def main(): changed = True # no changes to env/job, but existing crontab needs a terminating newline - if not changed and not crontab.existing.endsw...
pre-commit__pre-commit-215
Not stashing changes before installing Hi, I'm regularly running into this situation: I have pending changes, I run `git commit -a`, and pre-commit tries to install its hooks: ``` [INFO] Initializing environment for git://github.com/pre-commit/pre-commit-hooks. An unexpected error has occurred: CalledProcessError: Co...
[ { "content": "from __future__ import unicode_literals\n\nimport contextlib\nimport io\nimport logging\nimport os\nimport os.path\nimport sqlite3\nimport tempfile\n\nfrom cached_property import cached_property\n\nfrom pre_commit.prefixed_command_runner import PrefixedCommandRunner\nfrom pre_commit.util import cl...
[ { "content": "from __future__ import unicode_literals\n\nimport contextlib\nimport io\nimport logging\nimport os\nimport os.path\nimport sqlite3\nimport tempfile\n\nfrom cached_property import cached_property\n\nfrom pre_commit.prefixed_command_runner import PrefixedCommandRunner\nfrom pre_commit.util import cl...
diff --git a/pre_commit/store.py b/pre_commit/store.py index a9197c43d..1eaca1c7c 100644 --- a/pre_commit/store.py +++ b/pre_commit/store.py @@ -116,7 +116,7 @@ def clone(self, url, sha): with clean_path_on_failure(dir): cmd_output('git', 'clone', '--no-checkout', url, dir) with cwd(d...
cloud-custodian__cloud-custodian-6949
codedeploy-group policy failing when run after codedeploy-app and cache enabled ### Describe the bug When `codedeploy-group`(check for tagging) policy is run after `codedeploy-app`, we're getting an error as mentioned below: ``` botocore.errorfactory.ApplicationDoesNotExistException: An error occurred (Application...
[ { "content": "# Copyright The Cloud Custodian Authors.\n# SPDX-License-Identifier: Apache-2.0\nfrom botocore.exceptions import ClientError\nimport jmespath\n\nfrom c7n.actions import BaseAction\nfrom c7n.filters.vpc import SubnetFilter, SecurityGroupFilter, VpcFilter\nfrom c7n.manager import resources\nfrom c7n...
[ { "content": "# Copyright The Cloud Custodian Authors.\n# SPDX-License-Identifier: Apache-2.0\nfrom botocore.exceptions import ClientError\nimport jmespath\n\nfrom c7n.actions import BaseAction\nfrom c7n.filters.vpc import SubnetFilter, SecurityGroupFilter, VpcFilter\nfrom c7n.manager import resources\nfrom c7n...
diff --git a/c7n/resources/code.py b/c7n/resources/code.py index a7086d17003..23fdb1f9c89 100644 --- a/c7n/resources/code.py +++ b/c7n/resources/code.py @@ -278,8 +278,7 @@ class resource_type(TypeInfo): batch_detail_spec = ( 'batch_get_applications', 'applicationNames', None, 'applic...
mitmproxy__mitmproxy-6605
AttributeError: 'ClientPlayback' object has no attribute 'options' #### Problem Description Client playback does not seem to work anymore, since 10.2.0. On 10.1.6 it still works. I am getting the following error: >Traceback (most recent call last): File "mitmproxy/addons/clientplayback.py", line 177, in playb...
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport logging\nimport time\nfrom collections.abc import Sequence\nfrom types import TracebackType\nfrom typing import cast\nfrom typing import Literal\n\nimport mitmproxy.types\nfrom mitmproxy import command\nfrom mitmproxy import ctx\nfrom mi...
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport logging\nimport time\nfrom collections.abc import Sequence\nfrom types import TracebackType\nfrom typing import cast\nfrom typing import Literal\n\nimport mitmproxy.types\nfrom mitmproxy import command\nfrom mitmproxy import ctx\nfrom mi...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cf2563774..a6fb92cedb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ ## Unreleased: mitmproxy next +* Fix a regression where clientplayback would break due to eager task execution. + ([#6605](https://github.com/mitmproxy/mitmproxy/pull/6605), @mhils) ...
facebookresearch__ParlAI-1024
Syntax Error dict.py File "/home/cafagna/ParlAI/parlai/core/dict.py", line 653 dictionary = (f'{k} {v}' for k, v in frequencies.items()) Syntax Error on execution
[ { "content": "# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n# This source code is licensed under the BSD-style license found in the\n# LICENSE file in the root directory of this source tree. An additional grant\n# of patent rights can be found in the PATENTS file in the same directory.\n...
[ { "content": "# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n# This source code is licensed under the BSD-style license found in the\n# LICENSE file in the root directory of this source tree. An additional grant\n# of patent rights can be found in the PATENTS file in the same directory.\n...
diff --git a/parlai/core/dict.py b/parlai/core/dict.py index 911b9d2c283..e215f18d9f7 100644 --- a/parlai/core/dict.py +++ b/parlai/core/dict.py @@ -660,9 +660,9 @@ def finalize(self, frequencies, num_symbols=30000, minfreq=2): # we already finalized the codecs return False - print('D...
ocadotechnology__codeforlife-portal-708
Update KS3 AI:MMO User Guide PDF on portal - The Aim of the Game section has been updated with a clearer definition of how AI:MMO uses artificial intelligence. - The Example Code section has been updated as there were errors in the code. The updated document is here: [KS3-AIMMO-User-guide.pdf](https://github.com/...
[ { "content": "# -*- coding: utf-8 -*-\n# Code for Life\n#\n# Copyright (C) 2018, Ocado Innovation Limited\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as\n# published by the Free Software Foundation, either version 3 of...
[ { "content": "# -*- coding: utf-8 -*-\n# Code for Life\n#\n# Copyright (C) 2018, Ocado Innovation Limited\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as\n# published by the Free Software Foundation, either version 3 of...
diff --git a/portal/templates/portal/teach/materials.html b/portal/templates/portal/teach/materials.html index 403431cf65..2f2c67ba8d 100644 --- a/portal/templates/portal/teach/materials.html +++ b/portal/templates/portal/teach/materials.html @@ -64,8 +64,7 @@ <h4>Upper Key Stage 2</h4> </div> ...
sublimelsp__LSP-1732
`os.path.relpath` may throw an exception on Windows. `os.path.relpath` may throw an exception on Windows. ``` Traceback (most recent call last): File "C:\tools\sublime\Data\Installed Packages\LSP.sublime-package\plugin/references.py", line 55, in File "C:\tools\sublime\Data\Installed Packages\LSP.sublime-package...
[ { "content": "from .core.panels import ensure_panel\nfrom .core.protocol import Location\nfrom .core.protocol import Point\nfrom .core.protocol import Request\nfrom .core.registry import get_position\nfrom .core.registry import LspTextCommand\nfrom .core.sessions import Session\nfrom .core.settings import PLUGI...
[ { "content": "from .core.panels import ensure_panel\nfrom .core.protocol import Location\nfrom .core.protocol import Point\nfrom .core.protocol import Request\nfrom .core.registry import get_position\nfrom .core.registry import LspTextCommand\nfrom .core.sessions import Session\nfrom .core.settings import PLUGI...
diff --git a/plugin/references.py b/plugin/references.py index e6d8cdc97..c7f238d92 100644 --- a/plugin/references.py +++ b/plugin/references.py @@ -104,9 +104,12 @@ def _show_references_in_output_panel(self, word: str, session: Session, location def _get_relative_path(base_dir: Optional[str], file_path: str) -> str...
buildbot__buildbot-7318
Address PEP 706 - Filter for tarfile.extractall Given proposal improves security of tarfile extraction to help avoid CVE-2007-4559. - In Python 3.12-3.13, a DeprecationWarning is emitted and extraction uses `fully_trusted` filter. - In Python 3.14+, it will use the `data` filter. It seems given proposal was back...
[ { "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/process/remotetransfer.py b/master/buildbot/process/remotetransfer.py index 76a13faadf3c..8ac5f888d281 100644 --- a/master/buildbot/process/remotetransfer.py +++ b/master/buildbot/process/remotetransfer.py @@ -126,7 +126,10 @@ def remote_unpack(self): # Unpack archive and clean u...
archlinux__archinstall-295
Default timezone to UTC We have defaults for locale. For timezone, UTC is a great default as it's VERY common to use time timezone for servers.
[ { "content": "import getpass, pathlib, os, shutil, re\nimport sys, time, signal\nfrom .exceptions import *\nfrom .profiles import Profile\nfrom .locale_helpers import search_keyboard_layout\nfrom .output import log, LOG_LEVELS\nfrom .storage import storage\nfrom .networking import list_interfaces\n\n## TODO: So...
[ { "content": "import getpass, pathlib, os, shutil, re\nimport sys, time, signal\nfrom .exceptions import *\nfrom .profiles import Profile\nfrom .locale_helpers import search_keyboard_layout\nfrom .output import log, LOG_LEVELS\nfrom .storage import storage\nfrom .networking import list_interfaces\n\n## TODO: So...
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py index 16627794b9..3d9a468bfc 100644 --- a/archinstall/lib/user_interaction.py +++ b/archinstall/lib/user_interaction.py @@ -130,7 +130,9 @@ def ask_for_additional_users(prompt='Any additional users to install (leave blan return use...
Textualize__textual-1352
A `Widget`-derived widget with `inherit_bindings=False`, but no `BINDINGS`, appears to still inherit bindings This is *very* much related to #1343, but I think merits an issue of its own to consider first. The reasons *why* this happens seem clear enough, but I feel the setup may cause confusion. With Textual as it is ...
[ { "content": "from __future__ import annotations\n\nimport re\nfrom inspect import getfile\nfrom typing import (\n TYPE_CHECKING,\n ClassVar,\n Iterable,\n Iterator,\n Type,\n TypeVar,\n cast,\n overload,\n)\n\nimport rich.repr\nfrom rich.highlighter import ReprHighlighter\nfrom rich.pre...
[ { "content": "from __future__ import annotations\n\nimport re\nfrom inspect import getfile\nfrom typing import (\n TYPE_CHECKING,\n ClassVar,\n Iterable,\n Iterator,\n Type,\n TypeVar,\n cast,\n overload,\n)\n\nimport rich.repr\nfrom rich.highlighter import ReprHighlighter\nfrom rich.pre...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d1641b1a36..42111addd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed issue with auto width/height and relative children https://github.com/Textualize/textual/issues/1319 - Fix...
pre-commit__pre-commit-1576
Flask style test failing health check in CI Flask's style test in GitHub actions runs `tox -e style`, which runs `pre-commit run --all-files --show-diff-on-failure`, which is failing with "An unexpected error has occurred: AssertionError: BUG: expected environment for python to be healthy() immediately after install, p...
[ { "content": "import contextlib\nimport functools\nimport os\nimport sys\nfrom typing import Dict\nfrom typing import Generator\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Tuple\n\nimport pre_commit.constants as C\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.e...
[ { "content": "import contextlib\nimport functools\nimport os\nimport sys\nfrom typing import Dict\nfrom typing import Generator\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Tuple\n\nimport pre_commit.constants as C\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.e...
diff --git a/pre_commit/languages/python.py b/pre_commit/languages/python.py index 6f7c90055..7a685808e 100644 --- a/pre_commit/languages/python.py +++ b/pre_commit/languages/python.py @@ -191,7 +191,8 @@ def healthy(prefix: Prefix, language_version: str) -> bool: return ( 'version_info' in cfg and - ...
buildbot__buildbot-7295
Address PEP 706 - Filter for tarfile.extractall Given proposal improves security of tarfile extraction to help avoid CVE-2007-4559. - In Python 3.12-3.13, a DeprecationWarning is emitted and extraction uses `fully_trusted` filter. - In Python 3.14+, it will use the `data` filter. It seems given proposal was back...
[ { "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/process/remotetransfer.py b/master/buildbot/process/remotetransfer.py index 76a13faadf3c..8ac5f888d281 100644 --- a/master/buildbot/process/remotetransfer.py +++ b/master/buildbot/process/remotetransfer.py @@ -126,7 +126,10 @@ def remote_unpack(self): # Unpack archive and clean u...
comic__grand-challenge.org-1607
Replace Memcached with Redis The MemcachedCache backend is being deprecated (see https://code.djangoproject.com/ticket/32193), the `django-memcached` package should be removed and `"django.core.cache.backends.memcached.MemcachedCache"` replaced. We should use django-redis instead (be careful to use a different database...
[ { "content": "import os\nimport re\nfrom datetime import datetime, timedelta\nfrom distutils.util import strtobool as strtobool_i\nfrom itertools import product\nfrom urllib.parse import quote\n\nimport sentry_sdk\nfrom corsheaders.defaults import default_headers\nfrom disposable_email_domains import blocklist\...
[ { "content": "import os\nimport re\nfrom datetime import datetime, timedelta\nfrom distutils.util import strtobool as strtobool_i\nfrom itertools import product\nfrom urllib.parse import quote\n\nimport sentry_sdk\nfrom corsheaders.defaults import default_headers\nfrom disposable_email_domains import blocklist\...
diff --git a/app/config/settings.py b/app/config/settings.py index 6572d42219..4857131556 100644 --- a/app/config/settings.py +++ b/app/config/settings.py @@ -205,8 +205,9 @@ def strtobool(val) -> bool: CACHES = { "default": { - "BACKEND": "django.core.cache.backends.memcached.MemcachedCache", - "...
pytorch__pytorch-4414
UnboundLocalError: local variable 'distutils' referenced before assignment This error happens building from source in Linux. Introduced in https://github.com/pytorch/pytorch/pull/3993
[ { "content": "import re\nimport os\nimport sys\nimport setuptools\nimport distutils\nfrom contextlib import contextmanager\nimport subprocess\n\nBUILD_DIR = 'build'\n\n\n# on the fly create a ninja file in build/ and then\n# run it when run() is called.\nclass NinjaBuilder(object):\n def __init__(self, name)...
[ { "content": "import re\nimport os\nimport sys\nimport setuptools\nimport distutils\nfrom contextlib import contextmanager\nimport subprocess\n\nBUILD_DIR = 'build'\n\n\n# on the fly create a ninja file in build/ and then\n# run it when run() is called.\nclass NinjaBuilder(object):\n def __init__(self, name)...
diff --git a/tools/setup_helpers/ninja_builder.py b/tools/setup_helpers/ninja_builder.py index b25e609684b3de..73b4512fa4642d 100644 --- a/tools/setup_helpers/ninja_builder.py +++ b/tools/setup_helpers/ninja_builder.py @@ -73,6 +73,7 @@ def patch(obj, attr_name, val): orig_link = orig_compiler.link ...
qutebrowser__qutebrowser-2909
:session-save option -o should imply -p <!-- If this is a bug report, please remember to mention your version info from `:open qute:version` or `qutebrowser --version` --> The current behavior of the `:session-save` command with the `-o`/`--only-active-window` option on a private window is to save no tabs. It should ...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2015-2017 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 2015-2017 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/misc/sessions.py b/qutebrowser/misc/sessions.py index 54ba35014e2..4bce00ae3f1 100644 --- a/qutebrowser/misc/sessions.py +++ b/qutebrowser/misc/sessions.py @@ -485,7 +485,7 @@ def session_save(self, name: str = default, current=False, quiet=False, try: if only_active_windo...
AnalogJ__lexicon-1660
Can't use lexicon with pending Cloudflare domains I cannot use Lexicon with a domain that is `pending` (not `active`) in Cloudflare. It's useful to to be able to manipulate DNS records for `pending` domains before changing nameservers to minimize disruption. ## Context 1. Add a domain (e.g., `example.com`) in Clo...
[ { "content": "\"\"\"Module provider for Cloudflare\"\"\"\nimport json\nimport logging\n\nimport requests\n\nfrom lexicon.exceptions import AuthenticationError\nfrom lexicon.providers.base import Provider as BaseProvider\n\nLOGGER = logging.getLogger(__name__)\n\nNAMESERVER_DOMAINS = [\"cloudflare.com\"]\n\n\nde...
[ { "content": "\"\"\"Module provider for Cloudflare\"\"\"\nimport json\nimport logging\n\nimport requests\n\nfrom lexicon.exceptions import AuthenticationError\nfrom lexicon.providers.base import Provider as BaseProvider\n\nLOGGER = logging.getLogger(__name__)\n\nNAMESERVER_DOMAINS = [\"cloudflare.com\"]\n\n\nde...
diff --git a/lexicon/providers/cloudflare.py b/lexicon/providers/cloudflare.py index a33cd59da..edece5f5d 100644 --- a/lexicon/providers/cloudflare.py +++ b/lexicon/providers/cloudflare.py @@ -45,7 +45,7 @@ def __init__(self, config): def _authenticate(self): zone_id = self._get_provider_option("zone_id")...
OpenMined__PySyft-1361
SockerWorker error when decoding message # SockerWorker error when decoding message ## Context The issue append when sending Tensor to a remote SockerWorker, like in this example : https://github.com/OpenMined/PySyft/blob/master/examples/SocketWorker%20Client.ipynb **Test Configuration**: A Docker container w...
[ { "content": "\"\"\"Interfaces for communicating about objects between Clients and Workers\"\"\"\n\nimport json\nimport numbers\nimport re\nimport random\nimport socket\n\nfrom . import utils\n\n\nclass BaseWorker(object):\n r\"\"\"\n The BaseWorker class establishes a consistent interface for\n commun...
[ { "content": "\"\"\"Interfaces for communicating about objects between Clients and Workers\"\"\"\n\nimport json\nimport numbers\nimport re\nimport random\nimport socket\n\nfrom . import utils\n\n\nclass BaseWorker(object):\n r\"\"\"\n The BaseWorker class establishes a consistent interface for\n commun...
diff --git a/syft/core/workers.py b/syft/core/workers.py index b302f0f3423..eed7cb55405 100644 --- a/syft/core/workers.py +++ b/syft/core/workers.py @@ -1051,7 +1051,7 @@ def _listen(self): message = self._process_buffer(connection) # process message and generate response - ...
ivy-llc__ivy-18140
conjugate
[ { "content": "# global\n\n# local\nimport ivy\nimport ivy.functional.frontends.jax as jax_frontend\n\n\nclass DeviceArray:\n def __init__(self, array, weak_type=False):\n self._ivy_array = array if isinstance(array, ivy.Array) else ivy.array(array)\n self.weak_type = weak_type\n\n def __repr...
[ { "content": "# global\n\n# local\nimport ivy\nimport ivy.functional.frontends.jax as jax_frontend\n\n\nclass DeviceArray:\n def __init__(self, array, weak_type=False):\n self._ivy_array = array if isinstance(array, ivy.Array) else ivy.array(array)\n self.weak_type = weak_type\n\n def __repr...
diff --git a/ivy/functional/frontends/jax/devicearray.py b/ivy/functional/frontends/jax/devicearray.py index 4bcae72ec86cd..b04cecb8a1095 100644 --- a/ivy/functional/frontends/jax/devicearray.py +++ b/ivy/functional/frontends/jax/devicearray.py @@ -67,6 +67,9 @@ def argmax( def conj(self, /): return jax_f...
freedomofpress__securedrop-4599
Adding Catalán (ca) as a translated language https://forum.securedrop.org/t/adding-catalan-to-securedrop-0-14-0/1228 The localization team requested to add Catalán (ca) as a translated language to the 0.14.0 release. https://forum.securedrop.org/t/adding-catalan-to-securedrop-0-14-0/1228
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import print_function\nimport argparse\nimport io\nimport six\nimport logging\nimport os\nimport glob\nimport re\nimport signal\nimport subprocess\nimport sys\nimport textwrap\nimport version\n\nfrom os.path import dirname, join, re...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import print_function\nimport argparse\nimport io\nimport six\nimport logging\nimport os\nimport glob\nimport re\nimport signal\nimport subprocess\nimport sys\nimport textwrap\nimport version\n\nfrom os.path import dirname, join, re...
diff --git a/securedrop/i18n_tool.py b/securedrop/i18n_tool.py index 3079a85ff2..81ec9f1d79 100755 --- a/securedrop/i18n_tool.py +++ b/securedrop/i18n_tool.py @@ -37,6 +37,7 @@ class I18NTool(object): # SUPPORTED_LANGUAGES = { 'ar': {'name': 'Arabic', 'desktop': 'ar', }, + 'ca': {'name': 'Cata...
pantsbuild__pants-18674
JVM resource jar creation is broken on Mac by variation in `touch` command. BSD touch uses `-t` to set the timestamp whereas GNU touch uses `-d`. We use / assume the GNU binary as noted here: https://github.com/pantsbuild/pants/pull/16950#discussion_r1157196330 As discovered here: https://pantsbuild.slack.com/archives...
[ { "content": "# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nimport itertools\nimport logging\nimport shlex\nfrom itertools import chain\nfrom pathlib import Path\n\nfrom pants.core.target_types import ResourcesFieldSet, Res...
[ { "content": "# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nimport itertools\nimport logging\nimport shlex\nfrom itertools import chain\nfrom pathlib import Path\n\nfrom pants.core.target_types import ResourcesFieldSet, Res...
diff --git a/src/python/pants/jvm/resources.py b/src/python/pants/jvm/resources.py index 475c5d5b511..1dbb84e831f 100644 --- a/src/python/pants/jvm/resources.py +++ b/src/python/pants/jvm/resources.py @@ -98,8 +98,9 @@ async def assemble_resources_jar( "-c", " ".join( ...
scoutapp__scout_apm_python-746
Deprecation notice about urllib3[secure] ### Description pyOpenSSL and urllib3[secure] are deprecated in the upcoming release (1.26.12) https://github.com/urllib3/urllib3/issues/2680 Removed 'urllib3[secure] < 1.25 ; python_version < "3.5"' and 'urllib3[secure] < 2 ; python_version >= "3.5"' Closes #746
[ { "content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport sys\n\nfrom setuptools import Extension, find_packages, setup\n\nwith open(\"README.md\", \"r\") as fp:\n long_description = fp.read()\n\npackages = find_packages(\"src\")\nif...
[ { "content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport sys\n\nfrom setuptools import Extension, find_packages, setup\n\nwith open(\"README.md\", \"r\") as fp:\n long_description = fp.read()\n\npackages = find_packages(\"src\")\nif...
diff --git a/setup.py b/setup.py index 54b8a71a..9a2fb439 100644 --- a/setup.py +++ b/setup.py @@ -66,7 +66,7 @@ 'importlib-metadata ; python_version < "3.8"', "psutil>=5,<6", 'urllib3[secure] < 1.25 ; python_version < "3.5"', - 'urllib3[secure] < 2 ; python_version >= "3.5"', + ...
mesonbuild__meson-2743
run_target Permission Denied error should be clearer Minimal example - [folder.zip](https://github.com/mesonbuild/meson/files/1530489/folder.zip) I ran - `mkdir build && cd build && meson .. && ninja` and everything works. Now I run - `ninja myscript` and it throws errors - ``` [0/1] Running external command m...
[ { "content": "# Copyright 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 required...
[ { "content": "# Copyright 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 required...
diff --git a/mesonbuild/scripts/commandrunner.py b/mesonbuild/scripts/commandrunner.py index f99cddb42538..fdca7cd5f8a6 100644 --- a/mesonbuild/scripts/commandrunner.py +++ b/mesonbuild/scripts/commandrunner.py @@ -38,7 +38,10 @@ def run_command(source_dir, build_dir, subdir, meson_command, command, arguments try:...
lutris__lutris-3949
DllManager only updates WINEDLLOVERRIDES overrides on client restart How to reproduce: 1) Launch Lutris in the debug mode (lutris -d in terminal) 2) Launch a game with the DXVK option enabled. WINEDLLOVERRIDES environment variable (printed in the output) shows that overrides like d3d11, d3d9, d3d10core are set. 3) G...
[ { "content": "\"\"\"Wine runner\"\"\"\n# pylint: disable=too-many-lines\nimport os\nimport shlex\nfrom gettext import gettext as _\n\nfrom lutris import runtime, settings\nfrom lutris.gui.dialogs import FileDialog\nfrom lutris.runners.commands.wine import ( # noqa: F401 pylint: disable=unused-import\n creat...
[ { "content": "\"\"\"Wine runner\"\"\"\n# pylint: disable=too-many-lines\nimport os\nimport shlex\nfrom gettext import gettext as _\n\nfrom lutris import runtime, settings\nfrom lutris.gui.dialogs import FileDialog\nfrom lutris.runners.commands.wine import ( # noqa: F401 pylint: disable=unused-import\n creat...
diff --git a/lutris/runners/wine.py b/lutris/runners/wine.py index 36fcb28f71..19e5ad2e4f 100644 --- a/lutris/runners/wine.py +++ b/lutris/runners/wine.py @@ -105,7 +105,7 @@ class wine(Runner): def __init__(self, config=None): # noqa: C901 super().__init__(config) - self.dll_overrides = DEFAULT...
dbt-labs__dbt-core-6899
[CT-1977] [Regression] `'BaseResult' object has no attribute 'node'` ### Is this a new bug in dbt-core? - [X] I believe this is a new bug in dbt-core - [X] I have searched the existing issues, and I could not find an existing issue for this bug ### Current Behavior Hi, I recently upgraded to dbt core 1.4.1...
[ { "content": "import functools\nimport threading\nimport time\nfrom typing import List, Dict, Any, Iterable, Set, Tuple, Optional, AbstractSet\n\nfrom dbt.dataclass_schema import dbtClassMixin\n\nfrom .compile import CompileRunner, CompileTask\n\nfrom .printer import (\n print_run_end_messages,\n get_coun...
[ { "content": "import functools\nimport threading\nimport time\nfrom typing import List, Dict, Any, Iterable, Set, Tuple, Optional, AbstractSet\n\nfrom dbt.dataclass_schema import dbtClassMixin\n\nfrom .compile import CompileRunner, CompileTask\n\nfrom .printer import (\n print_run_end_messages,\n get_coun...
diff --git a/.changes/unreleased/Fixes-20230208-110551.yaml b/.changes/unreleased/Fixes-20230208-110551.yaml new file mode 100644 index 00000000000..591374a4a33 --- /dev/null +++ b/.changes/unreleased/Fixes-20230208-110551.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Ensure results from hooks contain nodes when processing ...
google__jax-6169
NumPy compatibility of jax.numpy.linalg.eig for real-valued inputs `jax.numpy.linalg.eig` for real-valued input always gives complex-valued output. However, NumPy casts the result to real dtype if the imaginary part of eigenvalues is all zeros. ```python In [1]: import jax.numpy as jnp In [2]: import numpy as np ...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/jax/_src/numpy/linalg.py b/jax/_src/numpy/linalg.py index 7df4825ff7a6..e0dcd16ff980 100644 --- a/jax/_src/numpy/linalg.py +++ b/jax/_src/numpy/linalg.py @@ -253,7 +253,11 @@ def _det_jvp(primals, tangents): return y, jnp.trace(z, axis1=-1, axis2=-2) -@_wraps(np.linalg.eig) +@_wraps(np.linalg.eig, l...
pantsbuild__pants-18673
JVM resource jar creation is broken on Mac by variation in `touch` command. BSD touch uses `-t` to set the timestamp whereas GNU touch uses `-d`. We use / assume the GNU binary as noted here: https://github.com/pantsbuild/pants/pull/16950#discussion_r1157196330 As discovered here: https://pantsbuild.slack.com/archives...
[ { "content": "# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nimport itertools\nimport logging\nimport shlex\nfrom itertools import chain\nfrom pathlib import Path\n\nfrom pants.core.target_types import ResourcesFieldSet, Res...
[ { "content": "# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nimport itertools\nimport logging\nimport shlex\nfrom itertools import chain\nfrom pathlib import Path\n\nfrom pants.core.target_types import ResourcesFieldSet, Res...
diff --git a/src/python/pants/jvm/resources.py b/src/python/pants/jvm/resources.py index 475c5d5b511..1dbb84e831f 100644 --- a/src/python/pants/jvm/resources.py +++ b/src/python/pants/jvm/resources.py @@ -98,8 +98,9 @@ async def assemble_resources_jar( "-c", " ".join( ...
opendatacube__datacube-core-1417
links on read the doc footer leads to 404 https://github.com/opendatacube/datacube-core/blob/develop/docs/_templates/odc-footer.html renders at the footer of page https://datacube-core.readthedocs.io/en/latest/index.html
[ { "content": "# This file is part of the Open Data Cube, see https://opendatacube.org for more information\n#\n# Copyright (c) 2015-2020 ODC Contributors\n# SPDX-License-Identifier: Apache-2.0\nimport os\nimport sys\n\nfrom bs4 import BeautifulSoup as bs # noqa: N813\n\n# If extensions (or modules to document ...
[ { "content": "# This file is part of the Open Data Cube, see https://opendatacube.org for more information\n#\n# Copyright (c) 2015-2020 ODC Contributors\n# SPDX-License-Identifier: Apache-2.0\nimport os\nimport sys\n\nfrom bs4 import BeautifulSoup as bs # noqa: N813\n\n# If extensions (or modules to document ...
diff --git a/docs/_templates/odc-footer.html b/docs/_templates/odc-footer.html index 2b1dd8530b..b562090f35 100644 --- a/docs/_templates/odc-footer.html +++ b/docs/_templates/odc-footer.html @@ -1 +1 @@ -<a href="/about/license.html">ODC License</a> | <a href="/about/whats_new.html">Change Log</a> +<a href="/page/abou...
DataDog__dd-agent-2525
[core] io metrics linux: device names with dashes are not supported io metrics are grabbed from `iostat`: https://github.com/DataDog/dd-agent/blob/master/checks/system/unix.py#L121-L139 ``` $ iostat -d 1 2 -x -k Linux 2.6.32-573.7.1.el6.x86_64 (address.net) 05/19/2016 _x86_64_ (32 CPU) Device: rrqm/s wrqm/s r/s w/s ...
[ { "content": "# (C) Datadog, Inc. 2010-2016\n# All rights reserved\n# Licensed under Simplified BSD License (see LICENSE)\n\n\"\"\"\nUnix system checks.\n\"\"\"\n# stdlib\nimport operator\nimport platform\nimport re\nimport sys\nimport time\n\n# 3rd party\nimport uptime\ntry:\n import psutil\nexcept ImportEr...
[ { "content": "# (C) Datadog, Inc. 2010-2016\n# All rights reserved\n# Licensed under Simplified BSD License (see LICENSE)\n\n\"\"\"\nUnix system checks.\n\"\"\"\n# stdlib\nimport operator\nimport platform\nimport re\nimport sys\nimport time\n\n# 3rd party\nimport uptime\ntry:\n import psutil\nexcept ImportEr...
diff --git a/checks/system/unix.py b/checks/system/unix.py index e272c1e2f9..1867ea747f 100644 --- a/checks/system/unix.py +++ b/checks/system/unix.py @@ -35,7 +35,7 @@ class IO(Check): def __init__(self, logger): Check.__init__(self, logger) self.header_re = re.compile(r'([%\\/\-_a-zA-Z0-9]+)[\s...
hydroshare__hydroshare-4855
"Complete profile" broken link on Home page **Description of the bug** "Complete profile" broken link on Home page Steps to reproduce the bug: https://user-images.githubusercontent.com/17934193/203313781-fa04aae1-e18a-430e-90f1-9d0f20dd51b9.mov
[ { "content": "from json import dumps\n\nfrom django_comments.models import Comment\nfrom django_comments.views.moderation import perform_delete\nfrom rest_framework import status\n\nfrom django.contrib import messages\nfrom django.contrib.auth import authenticate, login as auth_login\nfrom django.contrib.auth.d...
[ { "content": "from json import dumps\n\nfrom django_comments.models import Comment\nfrom django_comments.views.moderation import perform_delete\nfrom rest_framework import status\n\nfrom django.contrib import messages\nfrom django.contrib.auth import authenticate, login as auth_login\nfrom django.contrib.auth.d...
diff --git a/theme/views.py b/theme/views.py index a9d74ea3b1..9aba2dfae5 100755 --- a/theme/views.py +++ b/theme/views.py @@ -62,7 +62,7 @@ def get_context_data(self, **kwargs): except: u = User.objects.get(username=self.request.GET['user']) - elif not self.request.user.is_anonym...
DataDog__dd-trace-py-1585
profiling/line2def does not handle empty filenames ### Which version of dd-trace-py are you using? We're not running dd-trace - we're running the profiler by importing `ddtrace.profiling.auto`. ### Which version of the libraries are you using? ddtrace: 0.40.0 datadog: 0.38.0 You can copy/paste the output of `p...
[ { "content": "# -*- encoding: utf-8 -*-\nimport ast\n\nimport intervaltree\n\n\ntry:\n from functools import lru_cache\nexcept ImportError:\n # This is for Python 2 but Python 2 does not use this module.\n # It's just useful for unit tests.\n def lru_cache(maxsize):\n def w(f):\n r...
[ { "content": "# -*- encoding: utf-8 -*-\nimport ast\n\nimport intervaltree\n\n\ntry:\n from functools import lru_cache\nexcept ImportError:\n # This is for Python 2 but Python 2 does not use this module.\n # It's just useful for unit tests.\n def lru_cache(maxsize):\n def w(f):\n r...
diff --git a/ddtrace/profiling/_line2def.py b/ddtrace/profiling/_line2def.py index 7ed329ed31d..0c4e7ecba7e 100644 --- a/ddtrace/profiling/_line2def.py +++ b/ddtrace/profiling/_line2def.py @@ -55,12 +55,12 @@ def file_to_tree(filename): def default_def(filename, lineno): - return filename + ":" + str(lineno) + ...
tobymao__sqlglot-1540
dblink domain throw ParseError for Oracle dialect If you try to parse the statement below it returns an Invalid expression / unexpected token error `sql_query = """ SELECT * FROM table_name@dblink_name.database_link_domain;""" parsed = parse_one(sql_query , read='oracle')` **Retrieved Error** ![image](https://u...
[ { "content": "from __future__ import annotations\n\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import Dialect, no_ilike_sql, rename_func, trim_sql\nfrom sqlglot.helper import seq_get\nfrom sqlglot.tokens import TokenType\n\n\ndef _parse_xm...
[ { "content": "from __future__ import annotations\n\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import Dialect, no_ilike_sql, rename_func, trim_sql\nfrom sqlglot.helper import seq_get\nfrom sqlglot.tokens import TokenType\n\n\ndef _parse_xm...
diff --git a/sqlglot/dialects/oracle.py b/sqlglot/dialects/oracle.py index fb4ec426cf..9100099b42 100644 --- a/sqlglot/dialects/oracle.py +++ b/sqlglot/dialects/oracle.py @@ -165,6 +165,8 @@ def xmltable_sql(self, expression: exp.XMLTable) -> str: return f"XMLTABLE({self.sep('')}{self.indent(this + passing...
jupyterhub__jupyterhub-1475
Replace forward slashes in CILogon oauth id for cookie Fixes https://github.com/jupyterhub/oauthenticator/issues/132 I mostly implemented this to check it really worked... If you have a suggestion on a more general way to fix this, I can improve this patch.
[ { "content": "\"\"\"Base Authenticator class and the default PAM Authenticator\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport pipes\nimport re\nfrom shutil import which\nimport sys\nfrom subprocess import Popen, PIPE, STDOUT\n\nfrom torna...
[ { "content": "\"\"\"Base Authenticator class and the default PAM Authenticator\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport pipes\nimport re\nfrom shutil import which\nimport sys\nfrom subprocess import Popen, PIPE, STDOUT\n\nfrom torna...
diff --git a/jupyterhub/auth.py b/jupyterhub/auth.py index 735ba8886c..048f1d82d5 100644 --- a/jupyterhub/auth.py +++ b/jupyterhub/auth.py @@ -144,6 +144,12 @@ def validate_username(self, username): Return True if username is valid, False otherwise. """ + if '/' in username: + # / ...
carpentries__amy-227
Bulk-upload: New User added even in case of existing user According to #225 , If a existing user with case insensitive email Id is uploaded with a new task, a new user is being added with that case insensitive email and no task is being added to the existing user.
[ { "content": "# coding: utf-8\nfrom math import pi, sin, cos, acos\nimport csv\n\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db import IntegrityError, transaction\n\nfrom .models import Event, Role, Person, Task\n\n\nclass InternalError(Exception):\n pass\n\n\ndef earth_distance(pos1,...
[ { "content": "# coding: utf-8\nfrom math import pi, sin, cos, acos\nimport csv\n\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db import IntegrityError, transaction\n\nfrom .models import Event, Role, Person, Task\n\n\nclass InternalError(Exception):\n pass\n\n\ndef earth_distance(pos1,...
diff --git a/workshops/util.py b/workshops/util.py index 00a539d81..d9f698f58 100644 --- a/workshops/util.py +++ b/workshops/util.py @@ -184,7 +184,7 @@ def create_uploaded_persons_tasks(data): if fields['email']: # we should use existing Person or create one p...
beetbox__beets-2228
discogs: disc field is set to zero Releases coming from MB with only a single disc are tagged in a correct way (to my view) like: 1/1. However, when using the discogs plugin for releases from discogs the disc field of a single disc album is set to 0/1. What is exactly going wrong here? Is it just a mistake within the ...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index 90aefba10a..97834c5007 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -335,6 +335,7 @@ def get_tracks(self, tracklist): index_count = 0 side_count = 0 index_count += 1 + medi...
gammapy__gammapy-5028
Writing of TemplateNPredModel allows no overwrite The option `overwrite` is not passed to this line https://github.com/gammapy/gammapy/blob/6321261682b83528858a57baa34fd21b1100b9f4/gammapy/modeling/models/cube.py#L1007 As a result an error is raised if the map is already written and one cannot overwrite it even if t...
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\"\"\"Cube models (axes: lon, lat, energy).\"\"\"\n\nimport logging\nimport os\nimport numpy as np\nimport astropy.units as u\nfrom astropy.nddata import NoOverlapError\nfrom astropy.time import Time\nfrom gammapy.maps import Map, Ma...
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\"\"\"Cube models (axes: lon, lat, energy).\"\"\"\n\nimport logging\nimport os\nimport numpy as np\nimport astropy.units as u\nfrom astropy.nddata import NoOverlapError\nfrom astropy.time import Time\nfrom gammapy.maps import Map, Ma...
diff --git a/gammapy/modeling/models/cube.py b/gammapy/modeling/models/cube.py index 72f034d44f..9640cff1e8 100644 --- a/gammapy/modeling/models/cube.py +++ b/gammapy/modeling/models/cube.py @@ -1004,7 +1004,7 @@ def write(self, overwrite=False): elif os.path.isfile(make_path(self.filename)) and not overwrite:...
pymedusa__Medusa-4774
Manual rename error Hi, when I want to manually rename I have this error **Logs:** ``` 2018-07-27 23:00:36 ERROR Thread_3 :: [b733355] Exception generated: need more than 1 value to unpack Traceback (most recent call last): File "/app/medusa/medusa/server/web/core/base.py", line 259, in async_call resu...
[ { "content": "# coding=utf-8\n# Author: Nic Wolfe <nic@wolfeden.ca>\n#\n# This file is part of Medusa.\n#\n# Medusa is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or...
[ { "content": "# coding=utf-8\n# Author: Nic Wolfe <nic@wolfeden.ca>\n#\n# This file is part of Medusa.\n#\n# Medusa is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6aad2099f3..99894aa1bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ ----- +## 0.2.8 (2018-07-28) + +#### Fixes +- Fixed tabs on home page when using the split home layout ([#4764](https://github.com/pymedusa/Medusa/pull/4764)) +- Fixed black screen af...
holoviz__panel-5441
Basic Auth does not use Panel favicon or color I'm on the current Panel `main` branch. I wanted to try out basic auth. ``` panel serve script.py --basic-auth my_password --cookie-secret my_super_safe_cookie_secret ``` But it does not use the Panel favicon or blue color for the Button. This makes it look like a ...
[ { "content": "import base64\nimport codecs\nimport json\nimport logging\nimport os\nimport re\nimport urllib.parse as urlparse\nimport uuid\n\nimport tornado\n\nfrom bokeh.server.auth_provider import AuthProvider\nfrom tornado.auth import OAuth2Mixin\nfrom tornado.httpclient import HTTPError, HTTPRequest\nfrom ...
[ { "content": "import base64\nimport codecs\nimport json\nimport logging\nimport os\nimport re\nimport urllib.parse as urlparse\nimport uuid\n\nimport tornado\n\nfrom bokeh.server.auth_provider import AuthProvider\nfrom tornado.auth import OAuth2Mixin\nfrom tornado.httpclient import HTTPError, HTTPRequest\nfrom ...
diff --git a/doc/_static/images/basic_auth.png b/doc/_static/images/basic_auth.png index 67cdd071a9..e039f3ab13 100644 Binary files a/doc/_static/images/basic_auth.png and b/doc/_static/images/basic_auth.png differ diff --git a/doc/_static/images/basic_auth_invalid.png b/doc/_static/images/basic_auth_invalid.png new fi...
bridgecrewio__checkov-3130
CKV2 cloudformation checks are not packaged into the whl file **Describe the issue** CKV2 cloudformation checks are not packaged into the whl file. I don't see them in the list command or the policy index. Checks are stored at: https://github.com/bridgecrewio/checkov/tree/master/checkov/cloudformation/checks/graph_...
[ { "content": "#!/usr/bin/env python\nimport logging\nimport os\nfrom importlib import util\nfrom os import path\n\nimport setuptools\nfrom setuptools import setup\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, \"README.md\")...
[ { "content": "#!/usr/bin/env python\nimport logging\nimport os\nfrom importlib import util\nfrom os import path\n\nimport setuptools\nfrom setuptools import setup\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, \"README.md\")...
diff --git a/Manifest.in b/Manifest.in index a6f3602883..5ed6220380 100644 --- a/Manifest.in +++ b/Manifest.in @@ -1,3 +1,4 @@ recursive-include checkov/common/util/templates *.jinja2 recursive-include checkov/bicep/checks/graph_checks *.yaml *.yml +recursive-include checkov/cloudformation/checks/graph_checks *.yaml ...
dotkom__onlineweb4-488
Featured careeropprotunities are not featured The featured opportunities are not prioritized over other opportunities.
[ { "content": "#-*- coding: utf-8 -*-\nfrom django.utils import timezone\n\nfrom datetime import datetime\n\nfrom django.conf import settings\nfrom django.shortcuts import render_to_response\nfrom django.shortcuts import get_object_or_404\nfrom django.template import RequestContext\n\nfrom apps.careeropportunity...
[ { "content": "#-*- coding: utf-8 -*-\nfrom django.utils import timezone\n\nfrom datetime import datetime\n\nfrom django.conf import settings\nfrom django.shortcuts import render_to_response\nfrom django.shortcuts import get_object_or_404\nfrom django.template import RequestContext\n\nfrom apps.careeropportunity...
diff --git a/apps/careeropportunity/views.py b/apps/careeropportunity/views.py index bf14e02ef..5b356c966 100644 --- a/apps/careeropportunity/views.py +++ b/apps/careeropportunity/views.py @@ -13,7 +13,7 @@ def index(request): opportunities = CareerOpportunity.objects.filter( - start__lte=timezone.now(), en...
e-valuation__EvaP-467
New course form has no "add another" In the "new course" form the link to add another contributor is missing.
[ { "content": "from django.contrib import messages\nfrom django.core.cache import cache\nfrom django.core.exceptions import PermissionDenied\nfrom django.forms.models import inlineformset_factory, modelformset_factory\nfrom django.shortcuts import get_object_or_404, redirect, render\nfrom collections import Orde...
[ { "content": "from django.contrib import messages\nfrom django.core.cache import cache\nfrom django.core.exceptions import PermissionDenied\nfrom django.forms.models import inlineformset_factory, modelformset_factory\nfrom django.shortcuts import get_object_or_404, redirect, render\nfrom collections import Orde...
diff --git a/evap/staff/views.py b/evap/staff/views.py index c627a255f7..bade52cbd2 100644 --- a/evap/staff/views.py +++ b/evap/staff/views.py @@ -299,7 +299,7 @@ def course_create(request, semester_id): messages.success(request, _("Successfully created course.")) return redirect('evap.staff.views.sem...
bookwyrm-social__bookwyrm-2002
Clarify UI around content warnings A few problems with content warnings: - [ ] The button is icon-only and hard to find for visual users in the compose UI (I think it's fine for screen reader users): <img width="360" alt="Screen Shot 2021-09-18 at 11 11 48 AM" src="https://user-images.githubusercontent.com/1807695/1...
[ { "content": "\"\"\" what are we here for if not for posting \"\"\"\nimport re\nfrom urllib.parse import urlparse\n\nfrom django.contrib.auth.decorators import login_required\nfrom django.core.validators import URLValidator\nfrom django.core.exceptions import ValidationError\nfrom django.http import HttpRespons...
[ { "content": "\"\"\" what are we here for if not for posting \"\"\"\nimport re\nfrom urllib.parse import urlparse\n\nfrom django.contrib.auth.decorators import login_required\nfrom django.core.validators import URLValidator\nfrom django.core.exceptions import ValidationError\nfrom django.http import HttpRespons...
diff --git a/bookwyrm/templates/lists/list.html b/bookwyrm/templates/lists/list.html index 1d5abd89e9..2e01bfb17a 100644 --- a/bookwyrm/templates/lists/list.html +++ b/bookwyrm/templates/lists/list.html @@ -117,7 +117,7 @@ <summary> <span role="headi...
nautobot__nautobot-922
Git Sync - Include Commit Hash on Sync Page <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for proposing specific new features or enhancements. If you have a general idea or question, please start a discussion instead: https://github.com/nautobot/nauto...
[ { "content": "\"\"\"Git data source functionality.\"\"\"\n\nfrom collections import defaultdict\nimport logging\nimport mimetypes\nimport os\nimport re\nfrom urllib.parse import quote\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions imp...
[ { "content": "\"\"\"Git data source functionality.\"\"\"\n\nfrom collections import defaultdict\nimport logging\nimport mimetypes\nimport os\nimport re\nfrom urllib.parse import quote\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions imp...
diff --git a/nautobot/extras/datasources/git.py b/nautobot/extras/datasources/git.py index 211624f30da..7cc292ea254 100644 --- a/nautobot/extras/datasources/git.py +++ b/nautobot/extras/datasources/git.py @@ -86,6 +86,12 @@ def pull_git_repository_and_refresh_data(repository_pk, request, job_result_pk): lo...
readthedocs__readthedocs.org-3504
Old version banner uses a version number format present nowhere else ## Details - Project URL: https://github.com/dfhack/dfhack/ - Build URL: http://dfhack.readthedocs.io/en/v0.40.24-r5/ and http://dfhack.readthedocs.io/en/0.42.06-r1/ - Read the Docs username: lethosor ## Expected result The banner on documentation p...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Endpoint to generate footer HTML.\"\"\"\n\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals)\n\nimport six\nfrom django.conf import settings\nfrom django.shortcuts import get_object_or_404\nfrom django.template import loader a...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Endpoint to generate footer HTML.\"\"\"\n\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals)\n\nimport six\nfrom django.conf import settings\nfrom django.shortcuts import get_object_or_404\nfrom django.template import loader a...
diff --git a/readthedocs/core/static-src/core/js/doc-embed/version-compare.js b/readthedocs/core/static-src/core/js/doc-embed/version-compare.js index 095421b09cb..5f24fa33ce6 100644 --- a/readthedocs/core/static-src/core/js/doc-embed/version-compare.js +++ b/readthedocs/core/static-src/core/js/doc-embed/version-compar...
DataDog__dd-trace-py-616
Unable to install with opentracing extras I was following the [OpenTracing setup instructions](https://docs.datadoghq.com/tracing/advanced_usage/?tab=python#opentracing) but got a warning about missing extras: ```sh (blah-YneZd-6L) sam@sam-Q325UAR ~/t/blah> pip list Package Version ---------- ------- pip ...
[ { "content": "import os\nimport sys\nimport re\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.test import test as TestCommand\n\n\ndef get_version(package):\n \"\"\"\n Return package version as listed in `__version__` in `__init__.py`.\n This method prevents to import packages ...
[ { "content": "import os\nimport sys\nimport re\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.test import test as TestCommand\n\n\ndef get_version(package):\n \"\"\"\n Return package version as listed in `__version__` in `__init__.py`.\n This method prevents to import packages ...
diff --git a/setup.py b/setup.py index 7a6c90ac409..e7967a623f8 100644 --- a/setup.py +++ b/setup.py @@ -60,10 +60,10 @@ def run_tests(self): "wrapt", "msgpack-python", ], - extra_requires={ + extras_require={ # users can include opentracing by having: # install_requires=[...
getmoto__moto-943
Deprecation Warning with moto 1.0.0 Since the release of moto 1.0.0 Buildbot Ci is impacted. Buildbot Ci is configured to forbid any warning raise by the code https://nine.buildbot.net/#/builders/11/builds/231/steps/5/logs/stdio but moto 1.0.0 raise a new warning: ``` File "/buildbot/buildbot-job/build/sandbox/...
[ { "content": "from __future__ import unicode_literals\nfrom __future__ import absolute_import\n\nfrom collections import defaultdict\nimport functools\nimport inspect\nimport re\nimport six\n\nfrom moto import settings\nfrom moto.packages.responses import responses\nfrom moto.packages.httpretty import HTTPretty...
[ { "content": "from __future__ import unicode_literals\nfrom __future__ import absolute_import\n\nfrom collections import defaultdict\nimport functools\nimport inspect\nimport re\nimport six\n\nfrom moto import settings\nfrom moto.packages.responses import responses\nfrom moto.packages.httpretty import HTTPretty...
diff --git a/moto/core/models.py b/moto/core/models.py index a3a343aa7c40..6e93f911af46 100644 --- a/moto/core/models.py +++ b/moto/core/models.py @@ -229,10 +229,7 @@ def __new__(meta, name, bases, dct): @six.add_metaclass(InstanceTrackerMeta) class BaseModel(object): def __new__(cls, *args, **kwargs): - ...