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
⌀
fedora-infra__bodhi-4123
Bodhi docs are not reachable Bodhi documentation is not reachable (404 Error) since the datacenter move to iad2: https://bodhi.fedoraproject.org/docs This hasn't changed after today update.
[ { "content": "# Copyright © 2007-2019 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License...
[ { "content": "# Copyright © 2007-2019 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License...
diff --git a/bodhi/server/__init__.py b/bodhi/server/__init__.py index a944244c00..a3dff8eeb8 100644 --- a/bodhi/server/__init__.py +++ b/bodhi/server/__init__.py @@ -29,6 +29,7 @@ from pyramid.tweens import EXCVIEW from sqlalchemy import engine_from_config, event from sqlalchemy.orm import scoped_session, sessionma...
huggingface__accelerate-1960
patch_environment does not revert previously existing keys ### System Info ```Shell does not matter here ``` ### Information - [ ] The official example scripts - [ ] My own modified scripts ### Tasks - [ ] One of the scripts in the examples/ folder of Accelerate or an officially supported `no_trainer` script in t...
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
diff --git a/src/accelerate/utils/other.py b/src/accelerate/utils/other.py index e09f3153823..e93cc9aa909 100644 --- a/src/accelerate/utils/other.py +++ b/src/accelerate/utils/other.py @@ -172,14 +172,22 @@ def patch_environment(**kwargs): >>> print(os.environ["FOO"]) # raises KeyError ``` """ + exis...
plotly__plotly.py-4110
Missing clipping in n_colors Hello! I'm using the `n_colors` function to generate a list of colors in RGB space and I got the following error message trying to use the generated colors in a plot: ```Received value: 'rgb(-2.842170943040401e-14, 255.00000000000003, 0.0)'``` Looking at the code for `n_colors`, I n...
[ { "content": "\"\"\"\ncolors\n=====\n\nFunctions that manipulate colors and arrays of colors.\n\n-----\nThere are three basic types of color types: rgb, hex and tuple:\n\nrgb - An rgb color is a string of the form 'rgb(a,b,c)' where a, b and c are\nintegers between 0 and 255 inclusive.\n\nhex - A hex color is a...
[ { "content": "\"\"\"\ncolors\n=====\n\nFunctions that manipulate colors and arrays of colors.\n\n-----\nThere are three basic types of color types: rgb, hex and tuple:\n\nrgb - An rgb color is a string of the form 'rgb(a,b,c)' where a, b and c are\nintegers between 0 and 255 inclusive.\n\nhex - A hex color is a...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 37e61a25bca..55fd10f6b2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Fixed issue with shapes and annotations plotting on the wrong y axis when supplied with a specific axis in the `y...
obspy__obspy-555
stream deepcopy issue taken from http://lists.obspy.org/pipermail/obspy-users/2013-April/000451.html ## hello all, i have some issues with deep copies of stream objects. it looks like format-specific dicts are "linked" in deep copy operations instead of being duplicated. this happened after some obspy upgrades, si...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nAttribDict class for ObsPy.\n\n:copyright:\n The ObsPy Development Team (devs@obspy.org)\n:license:\n GNU Lesser General Public License, Version 3\n (http://www.gnu.org/copyleft/lesser.html)\n\"\"\"\n\nimport collections\n\n\nclass AttribDict(collections.M...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nAttribDict class for ObsPy.\n\n:copyright:\n The ObsPy Development Team (devs@obspy.org)\n:license:\n GNU Lesser General Public License, Version 3\n (http://www.gnu.org/copyleft/lesser.html)\n\"\"\"\n\nimport collections\nimport copy\n\n\nclass AttribDict(...
diff --git a/obspy/core/tests/test_stream.py b/obspy/core/tests/test_stream.py index deaee8f7c5c..e7d100f1d6e 100644 --- a/obspy/core/tests/test_stream.py +++ b/obspy/core/tests/test_stream.py @@ -2,10 +2,10 @@ from copy import deepcopy from obspy import UTCDateTime, Stream, Trace, read from obspy.core.stream import...
onnx__onnx-4393
Referencing function attributes in body ### Question Is there currently a standard way (as described in the [IR](https://github.com/onnx/onnx/blob/main/docs/IR.md)) to reference function attributes inside the function body (i.e. the nodes)? ### Further information - Relevant Area: IR, model definition, functions ...
[ { "content": "# SPDX-License-Identifier: Apache-2.0\nimport collections.abc # type: ignore\nimport numbers\nfrom cmath import isnan\nimport struct\nfrom typing import Sequence, Any, Optional, Dict, Union, TypeVar, Callable, Tuple, List, cast\n\nimport google.protobuf.message\nimport numpy as np # type: ignore...
[ { "content": "# SPDX-License-Identifier: Apache-2.0\nimport collections.abc # type: ignore\nimport numbers\nfrom cmath import isnan\nimport struct\nfrom typing import Sequence, Any, Optional, Dict, Union, TypeVar, Callable, Tuple, List, cast\n\nimport google.protobuf.message\nimport numpy as np # type: ignore...
diff --git a/docs/IR.md b/docs/IR.md index d14246834ce..3223c818f46 100644 --- a/docs/IR.md +++ b/docs/IR.md @@ -327,9 +327,12 @@ ints|int64[]|A list of 64-bit integer values. strings|byte[][]|A list of UTF-8 strings. tensors|Tensor[]|A list of tensor values. graphs|Graph[]|A list of graphs. +ref_attr_name|string|Th...
DjangoGirls__djangogirls-128
Fix fetching city coordinates I noticed that for a while, the script that fetches city coordinates from some API just stopped working. Didn't have time to investigate, but returned coordinates are None.
[ { "content": "from datetime import datetime\nimport requests\n\nfrom django.utils import timezone\nfrom django_date_extensions.fields import ApproximateDate\n\nfrom .models import EventPage\n\n\ndef get_coordinates_for_city(city, country):\n\n q = '{0}, {1}'.format(city.encode('utf-8'), country.encode('utf-8...
[ { "content": "from datetime import datetime\nimport requests\n\nfrom django.utils import timezone\nfrom django_date_extensions.fields import ApproximateDate\n\nfrom .models import EventPage\n\nNOMINATIM_URL = 'http://nominatim.openstreetmap.org/search'\n\n\ndef get_coordinates_for_city(city, country):\n q = ...
diff --git a/core/tests/test_utils.py b/core/tests/test_utils.py new file mode 100644 index 000000000..2f947dd50 --- /dev/null +++ b/core/tests/test_utils.py @@ -0,0 +1,54 @@ +from unittest import TestCase +from unittest.mock import patch + +from core.utils import get_coordinates_for_city, NOMINATIM_URL + + +@patch('re...
python-gitlab__python-gitlab-941
Feature idea: autocompletion for CLI mode ## Description of the problem, including code/CLI snippet Feature/improve suggestion: in many of my cases, I would like to have an autocompletion to have less time to spend at docs and source code to find out all possible combination of commands/object/args. ## Expected B...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup\nfrom setuptools import find_packages\n\n\ndef get_version():\n with open(\"gitlab/__init__.py\") as f:\n for line in f:\n if line.startswith(\"__version__\"):\n return eval(line.split(\"...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup\nfrom setuptools import find_packages\n\n\ndef get_version():\n with open(\"gitlab/__init__.py\") as f:\n for line in f:\n if line.startswith(\"__version__\"):\n return eval(line.split(\"...
diff --git a/docs/cli.rst b/docs/cli.rst index 7b0993e72..e87c6d104 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -271,3 +271,61 @@ command line. This is handy for values containing new lines for instance: It is obviously the best project around EOF $ gitlab project create --name SuperProject --descriptio...
mlflow__mlflow-10361
Replace `pytest` with `dev/pytest.sh` in `mlflow/ml-package-versions.yml` ### Summary A follow-up task for https://github.com/mlflow/mlflow/pull/10006. Replace `pytest` with `dev/pytest.sh` in `mlflow/ml-package-versions.yml` to enable the `fail-fast` behavior. Example: ```diff diff --git a/mlflow/ml-packag...
[ { "content": "import json\nimport os\nimport posixpath\nimport shutil\nimport subprocess\nimport sys\n\nimport click\nimport pytest\n\nfrom mlflow.environment_variables import _MLFLOW_TESTING, MLFLOW_TRACKING_URI\nfrom mlflow.version import VERSION\n\nfrom tests.helper_functions import get_safe_port\n\n\ndef py...
[ { "content": "import json\nimport os\nimport posixpath\nimport shutil\nimport subprocess\nimport sys\n\nimport click\nimport pytest\n\nfrom mlflow.environment_variables import _MLFLOW_TESTING, MLFLOW_TRACKING_URI\nfrom mlflow.version import VERSION\n\nfrom tests.helper_functions import get_safe_port\n\n\ndef py...
diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index f2b74da413414..fd59785346dee 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -272,7 +272,7 @@ jobs: - uses: ./.github/actions/pipdeptree - name: Run tests run: | - dev/pytest.sh...
CTPUG__wafer-249
Fix Python 3 regressions There are a couple places we use `.iteritems()` on dictionaries in the code: https://github.com/CTPUG/wafer/blob/a120735a20ff67c6f863c6ca89cc6dfd9b0fc16e/wafer/schedule/templates/admin/scheduleitem_list.html#L14 https://github.com/CTPUG/wafer/blob/a120735a20ff67c6f863c6ca89cc6dfd9b0fc16e/wafe...
[ { "content": "import logging\n\nfrom django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.models import Group\nfrom django.contrib.sites.shortcuts import get_current_site\nfrom django.core.exceptions import (\n ObjectDoesNotExist, PermissionDenied, ValidationE...
[ { "content": "import logging\n\nfrom django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.models import Group\nfrom django.contrib.sites.shortcuts import get_current_site\nfrom django.core.exceptions import (\n ObjectDoesNotExist, PermissionDenied, ValidationE...
diff --git a/wafer/registration/sso.py b/wafer/registration/sso.py index 3130b975..a2b33b5c 100644 --- a/wafer/registration/sso.py +++ b/wafer/registration/sso.py @@ -66,7 +66,7 @@ def _configure_user(user, name, email, profile_fields): profile = user.userprofile if profile_fields: - for k, v in prof...
conan-io__conan-2637
conan search <reference> for recipe without binary packages In case there is a recipe without binary packages in the local cache, `conan search` with a full reference just prints `There are no packages for pattern '<ref>'` - "pattern" is wrong, should be "reference" - Something like "Package recipe found" would be ...
[ { "content": "from collections import OrderedDict\n\nfrom conans.paths import SimplePaths\n\nfrom conans.client.output import Color\nfrom conans.model.ref import ConanFileReference\nfrom conans.model.ref import PackageReference\nfrom conans.client.installer import build_id\nimport fnmatch\n\n\nclass Printer(obj...
[ { "content": "from collections import OrderedDict\n\nfrom conans.paths import SimplePaths\n\nfrom conans.client.output import Color\nfrom conans.model.ref import ConanFileReference\nfrom conans.model.ref import PackageReference\nfrom conans.client.installer import build_id\nimport fnmatch\n\n\nclass Printer(obj...
diff --git a/conans/client/printer.py b/conans/client/printer.py index bcd4b650e70..f36dba0f8ad 100644 --- a/conans/client/printer.py +++ b/conans/client/printer.py @@ -202,7 +202,11 @@ def print_search_packages(self, packages_props, reference, recipe_hash, packages warn_msg = "There are no packages fo...
mitmproxy__mitmproxy-2150
Can't filter by hostname when --host is used ##### Steps to reproduce the problem: 1. mitmproxy -T --host 2. Capture something 3. Press f and filter by something like `~d domain.com` or `~u domain com` ##### Any other comments? What have you tried so far? Going to detail view to get the resolved IP address a...
[ { "content": "\"\"\"\n The following operators are understood:\n\n ~q Request\n ~s Response\n\n Headers:\n\n Patterns are matched against \"name: value\" strings. Field names are\n all-lowercase.\n\n ~a Asset content-type in response. Asset con...
[ { "content": "\"\"\"\n The following operators are understood:\n\n ~q Request\n ~s Response\n\n Headers:\n\n Patterns are matched against \"name: value\" strings. Field names are\n all-lowercase.\n\n ~a Asset content-type in response. Asset con...
diff --git a/mitmproxy/flowfilter.py b/mitmproxy/flowfilter.py index 7c4f95f70a..2c7fc52f47 100644 --- a/mitmproxy/flowfilter.py +++ b/mitmproxy/flowfilter.py @@ -319,10 +319,14 @@ class FDomain(_Rex): code = "d" help = "Domain" flags = re.IGNORECASE + is_binary = False @only(http.HTTPFlow) ...
vispy__vispy-835
Vispy Windows XP Compatibility When trying to run a Vispy Application in windows xp project will not start due to fault "Attribute Error: function 'SetProcessDPIAware' not found". First instance traced back to "vispy\ext\gdi32plus.py line 165" this line was commented out and program ran again and produced the same fa...
[ { "content": "# -*- coding: utf-8 -*-\n# -----------------------------------------------------------------------------\n# Copyright (c) 2014, Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n# -----------------------------------------------...
[ { "content": "# -*- coding: utf-8 -*-\n# -----------------------------------------------------------------------------\n# Copyright (c) 2014, Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n# -----------------------------------------------...
diff --git a/vispy/ext/gdi32plus.py b/vispy/ext/gdi32plus.py index f0a1878b3f..82af47b184 100644 --- a/vispy/ext/gdi32plus.py +++ b/vispy/ext/gdi32plus.py @@ -162,7 +162,10 @@ class LOGFONT(Structure): user32.ReleaseDC.argtypes = [c_void_p, HDC] -user32.SetProcessDPIAware.argtypes = [] +try: + user32.SetProcess...
numba__numba-2265
Numba/CFFI regression I discovered what looks like a regression when calling functions via cffi in numba. I've put a minimal reproducible example in the following repository: https://github.com/synapticarbors/numba_cffi_bug After building the cffi module, and running `python testlib.py`, I get the following error...
[ { "content": "from __future__ import print_function\n\nfrom collections import namedtuple, defaultdict\nimport copy\nimport os\nimport sys\nfrom itertools import permutations, takewhile\n\nimport numpy as np\n\nfrom llvmlite import ir as llvmir\nimport llvmlite.llvmpy.core as lc\nfrom llvmlite.llvmpy.core impor...
[ { "content": "from __future__ import print_function\n\nfrom collections import namedtuple, defaultdict\nimport copy\nimport os\nimport sys\nfrom itertools import permutations, takewhile\n\nimport numpy as np\n\nfrom llvmlite import ir as llvmir\nimport llvmlite.llvmpy.core as lc\nfrom llvmlite.llvmpy.core impor...
diff --git a/numba/targets/base.py b/numba/targets/base.py index ca6f6633c72..243e932e01f 100644 --- a/numba/targets/base.py +++ b/numba/targets/base.py @@ -978,7 +978,12 @@ def add_dynamic_addr(self, builder, intaddr, info): mod = builder.module llvoidptr = self.get_value_type(types.voidptr) ...
huggingface__diffusers-3800
Quatered image produced, StableDiffusionPanoramaPipeline ### Describe the bug Hi, Anyone experienced the following when running the [multidifussion tutorial](https://huggingface.co/docs/diffusers/main/en/api/pipelines/panorama)? It generates a quater dolomites with the default setup but, correct one with `height=10...
[ { "content": "# Copyright 2023 MultiDiffusion Authors and The HuggingFace Team. All rights reserved.\"\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.o...
[ { "content": "# Copyright 2023 MultiDiffusion Authors and The HuggingFace Team. All rights reserved.\"\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.o...
diff --git a/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_panorama.py b/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_panorama.py index 3826447576d4..e03687e89eb1 100644 --- a/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_panorama.py +++ b/src/diffusers/pi...
SciTools__cartopy-1506
404 error downloading ne_h_coastline.zip I have recently been getting "HTTPError: HTTP Error 404: Not Found" errors when trying to use Cartopy. Even when I comment out the add features lines I am still getting this issue, so maybe it is caused by some of the other packages. I have clicked on the link and you do get the...
[ { "content": "# Copyright Cartopy Contributors\n#\n# This file is part of Cartopy and is released under the LGPL license.\n# See COPYING and COPYING.LESSER in the root of the repository for full\n# licensing details.\n\n\"\"\"\nThis module defines :class:`Feature` instances, for use with\nax.add_feature().\n\n\...
[ { "content": "# Copyright Cartopy Contributors\n#\n# This file is part of Cartopy and is released under the LGPL license.\n# See COPYING and COPYING.LESSER in the root of the repository for full\n# licensing details.\n\n\"\"\"\nThis module defines :class:`Feature` instances, for use with\nax.add_feature().\n\n\...
diff --git a/lib/cartopy/feature/__init__.py b/lib/cartopy/feature/__init__.py index 7cb98ed69..a0ca78720 100644 --- a/lib/cartopy/feature/__init__.py +++ b/lib/cartopy/feature/__init__.py @@ -260,11 +260,20 @@ def __init__(self, category, name, scale, **kwargs): scale = Scaler(scale) self.scale...
open-telemetry__opentelemetry-python-1597
Update limits As per spec change: https://github.com/open-telemetry/opentelemetry-specification/commit/03a6f0fd9d1d2f5e08858b102ba620ebf3e4a6fa The following limits must be updated: >* `AttributeCountLimit` (Default=128) - Maximum allowed span attribute count; >* `EventCountLimit` (Default=128) - Maximum allowed s...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d03dbadd3e..dfff8d1ae3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#1571](https://github.com/open-telemetry/opentelemetry-python/pull/1571)]) - Rename `TRACE_` to `T...
pymedusa__Medusa-9391
[APP SUBMITTED]: TypeError: '>' not supported between instances of 'NoneType' and 'int' ### INFO **Python Version**: `3.8.5 (default, Aug 2 2020, 15:09:07) [GCC 9.3.0]` **Operating System**: `Linux-4.9.35-v7+-armv7l-with-glibc2.29` **Locale**: `UTF-8` **Branch**: [develop](../tree/develop) **Database**: `44.18` **Com...
[ { "content": "# coding=utf-8\n# Author: fernandog\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\n# (at your optio...
[ { "content": "# coding=utf-8\n# Author: fernandog\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\n# (at your optio...
diff --git a/medusa/schedulers/download_handler.py b/medusa/schedulers/download_handler.py index f7d1bb24b1..4b3763cfcb 100644 --- a/medusa/schedulers/download_handler.py +++ b/medusa/schedulers/download_handler.py @@ -241,7 +241,13 @@ def _check_torrent_ratio(self, client): continue pro...
Mailu__Mailu-1863
Radicale password check fails (length limited?) So far, the webdav radicale is protected with basic auth (apparently htaccess or similar). If user password > 8 then it fails to connect. we should remove this limitation to let use stong passwords
[ { "content": "from mailu import models, utils\nfrom mailu.internal import internal, nginx\nfrom flask import current_app as app\n\nimport flask\nimport flask_login\nimport base64\nimport ipaddress\n\n\n@internal.route(\"/auth/email\")\ndef nginx_authentication():\n \"\"\" Main authentication endpoint for Ngi...
[ { "content": "from mailu import models, utils\nfrom mailu.internal import internal, nginx\nfrom flask import current_app as app\n\nimport flask\nimport flask_login\nimport base64\nimport ipaddress\n\n\n@internal.route(\"/auth/email\")\ndef nginx_authentication():\n \"\"\" Main authentication endpoint for Ngi...
diff --git a/core/admin/mailu/internal/views/auth.py b/core/admin/mailu/internal/views/auth.py index 825dba562..26e4597e2 100644 --- a/core/admin/mailu/internal/views/auth.py +++ b/core/admin/mailu/internal/views/auth.py @@ -51,7 +51,7 @@ def basic_authentication(): authorization = flask.request.headers.get("Autho...
scalableminds__webknossos-libs-720
Upsampling logic for constant_z correct? I would like to upsample a segmentation from 4-4-1 to 2-2-1. A minimal example would look similar to: ```python import tempfile import numpy as np from webknossos import Mag, Dataset def main(): data = np.ones((3,4,5), dtype=np.uint8) scale = (128, 128, 35) ...
[ { "content": "import logging\nimport operator\nimport re\nimport warnings\nfrom argparse import Namespace\nfrom os import PathLike\nfrom os.path import relpath\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Dict, List, Optional, Tuple, Union\n\nimport numpy as np\nfrom upath import UPath\n\nfrom w...
[ { "content": "import logging\nimport operator\nimport re\nimport warnings\nfrom argparse import Namespace\nfrom os import PathLike\nfrom os.path import relpath\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Dict, List, Optional, Tuple, Union\n\nimport numpy as np\nfrom upath import UPath\n\nfrom w...
diff --git a/webknossos/Changelog.md b/webknossos/Changelog.md index af2fe793c..13db6a22e 100644 --- a/webknossos/Changelog.md +++ b/webknossos/Changelog.md @@ -19,6 +19,7 @@ For upgrade instructions, please check the respective *Breaking Changes* section ### Changed ### Fixed +- Fixed upsampling with constant z in...
pytorch__audio-435
Resample Batch of Waveforms Hello, I would like to use the `Resample` class for up/down sampling the learned features during the training. Exactly the same way as `F.interpolate`. However, the batch dimension is not accepted by the `Resample` class so that I need to reshape the tensor to have only the channel and tem...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\nfrom warnings import warn\nimport math\nimport torch\nfrom typing import Optional\nfrom . import functional as F\nfrom .compliance import kaldi\n\n\n__all__ = [\n 'Spectrogram',\n '...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\nfrom warnings import warn\nimport math\nimport torch\nfrom typing import Optional\nfrom . import functional as F\nfrom .compliance import kaldi\n\n\n__all__ = [\n 'Spectrogram',\n '...
diff --git a/test/test_transforms.py b/test/test_transforms.py index 8cca3085e0..3fe615437a 100644 --- a/test/test_transforms.py +++ b/test/test_transforms.py @@ -326,6 +326,18 @@ def test_scriptmodule_Resample(self): _test_script_module(transforms.Spectrogram, tensor, sample_rate, sample_rate_2) + def ...
django-extensions__django-extensions-1507
Encoding passed to json.loads was deprecated to be removed in Python 3.9 `encoding` parameter passed to `json.loads` was ignored and deprecated since Python 3.1 . This will be removed in Python 3.9 . https://github.com/django-extensions/django-extensions/blob/5208677aeb0ad9225eca1ac5d6cc3b79869f3aca/django_extension...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nJSONField automatically serializes most Python terms to JSON data.\nCreates a TEXT field with a default value of \"{}\". See test_json.py for\nmore information.\n\n from django.db import models\n from django_extensions.db.fields import json\n\n class LOL(models.Mo...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nJSONField automatically serializes most Python terms to JSON data.\nCreates a TEXT field with a default value of \"{}\". See test_json.py for\nmore information.\n\n from django.db import models\n from django_extensions.db.fields import json\n\n class LOL(models.Mo...
diff --git a/django_extensions/db/fields/json.py b/django_extensions/db/fields/json.py index d0182f119..a658991f7 100644 --- a/django_extensions/db/fields/json.py +++ b/django_extensions/db/fields/json.py @@ -26,11 +26,10 @@ def dumps(value): def loads(txt): - value = json.loads( - txt, - encoding...
napari__napari-5848
Add tests for popups ## 🧰 Task <!-- A clear and concise description of the task --> I realized after reviewing #3766 , that I did not include tests for some of the popup dialogs I worked on (the grid mode popup and the playback settings popup). These need to be added...
[ { "content": "import warnings\nfrom functools import wraps\nfrom typing import TYPE_CHECKING\n\nfrom qtpy.QtCore import QPoint, Qt\nfrom qtpy.QtWidgets import (\n QFormLayout,\n QFrame,\n QHBoxLayout,\n QLabel,\n QPushButton,\n QSlider,\n QVBoxLayout,\n)\n\nfrom napari._qt.dialogs.qt_modal ...
[ { "content": "import warnings\nfrom functools import wraps\nfrom typing import TYPE_CHECKING\n\nfrom qtpy.QtCore import QPoint, Qt\nfrom qtpy.QtWidgets import (\n QFormLayout,\n QFrame,\n QHBoxLayout,\n QLabel,\n QPushButton,\n QSlider,\n QVBoxLayout,\n)\n\nfrom napari._qt.dialogs.qt_modal ...
diff --git a/napari/_qt/widgets/_tests/test_qt_dims.py b/napari/_qt/widgets/_tests/test_qt_dims.py index 03247201cb7..f6cdcf2165c 100644 --- a/napari/_qt/widgets/_tests/test_qt_dims.py +++ b/napari/_qt/widgets/_tests/test_qt_dims.py @@ -303,3 +303,13 @@ def test_play_button(qtbot): with patch.object(button.popup, ...
rotki__rotki-1584
Save Indicator should display that last sync date (if premium sync is enabled) ## Abstract In the case that a user has premium and premium sync is enabled, the save indicator should display the last sync date in addition to the last save date. Currently sync failure is in the logs but does not clearly show up in the...
[ { "content": "#!/usr/bin/env python\n\nimport argparse\nimport logging.config\nimport os\nimport time\nfrom collections import defaultdict\nfrom pathlib import Path\nfrom typing import Any, Dict, List, Optional, Tuple, Union, overload\n\nimport gevent\nfrom gevent.lock import Semaphore\nfrom typing_extensions i...
[ { "content": "#!/usr/bin/env python\n\nimport argparse\nimport logging.config\nimport os\nimport time\nfrom collections import defaultdict\nfrom pathlib import Path\nfrom typing import Any, Dict, List, Optional, Tuple, Union, overload\n\nimport gevent\nfrom gevent.lock import Semaphore\nfrom typing_extensions i...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 7631c37387..933cefb70c 100755 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,7 @@ Changelog ========= +* :feature:`1288` Users can now see the last premium database sync date in the save indicator when database sync is enabled. * :bug:`1571` ...
TheAlgorithms__Python-10394
Improve our test coverage ### Feature description Many of our existing algorithm files have little to no unit testing. This is problematic because this can easily let bugs slip through. We want some assurance that the code we currently have is correct and functional. We welcome all contributors to open PRs to help u...
[ { "content": "def find_missing_number(nums: list[int]) -> int:\n \"\"\"\n Finds the missing number in a list of consecutive integers.\n\n Args:\n nums: A list of integers.\n\n Returns:\n The missing number.\n\n Example:\n >>> find_missing_number([0, 1, 3, 4])\n 2\n ...
[ { "content": "def find_missing_number(nums: list[int]) -> int:\n \"\"\"\n Finds the missing number in a list of consecutive integers.\n\n Args:\n nums: A list of integers.\n\n Returns:\n The missing number.\n\n Example:\n >>> find_missing_number([0, 1, 3, 4])\n 2\n ...
diff --git a/bit_manipulation/missing_number.py b/bit_manipulation/missing_number.py index 32b949daa717..554887b17562 100644 --- a/bit_manipulation/missing_number.py +++ b/bit_manipulation/missing_number.py @@ -11,6 +11,12 @@ def find_missing_number(nums: list[int]) -> int: Example: >>> find_missing_numbe...
nipy__nipype-2767
Req to deal with SLURM socket errors more patiently ### Summary At end of issue #2693 @effigies noted that the error that @dalejn was experiencing was due to the SLURM master throwing an error when it was polled with squeue, possibly because it was busy. After some further testing, we now believe that the NIH HPC SL...
[ { "content": "'''\nCreated on Aug 2, 2013\n\n@author: chadcumba\n\nParallel workflow execution with SLURM\n'''\nfrom __future__ import (print_function, division, unicode_literals,\n absolute_import)\nfrom builtins import open\n\nimport os\nimport re\nfrom time import sleep\n\nfrom ... imp...
[ { "content": "'''\nCreated on Aug 2, 2013\n\n@author: chadcumba\n\nParallel workflow execution with SLURM\n'''\nfrom __future__ import (print_function, division, unicode_literals,\n absolute_import)\nfrom builtins import open\n\nimport os\nimport re\nfrom time import sleep\n\nfrom ... imp...
diff --git a/nipype/pipeline/plugins/slurm.py b/nipype/pipeline/plugins/slurm.py index e27c05be04..4645e52fba 100644 --- a/nipype/pipeline/plugins/slurm.py +++ b/nipype/pipeline/plugins/slurm.py @@ -70,6 +70,14 @@ def _is_pending(self, taskid): terminal_output='allatonce').run() return res...
encode__django-rest-framework-6722
DeprecationWarning with markdown Code: https://github.com/encode/django-rest-framework/blob/bf9533ae37affc64638c21f551250914dd5f80be/rest_framework/compat.py#L263-L265 Warning: > DeprecationWarning: Using the add method to register a processor or pattern is deprecated. Use the `register` method instead. Releva...
[ { "content": "\"\"\"\nThe `compat` module provides support for backwards compatibility with older\nversions of Django/Python, and compatibility wrappers around optional packages.\n\"\"\"\nimport sys\n\nfrom django.conf import settings\nfrom django.views.generic import View\n\ntry:\n from django.urls import (...
[ { "content": "\"\"\"\nThe `compat` module provides support for backwards compatibility with older\nversions of Django/Python, and compatibility wrappers around optional packages.\n\"\"\"\nimport sys\n\nfrom django.conf import settings\nfrom django.views.generic import View\n\ntry:\n from django.urls import (...
diff --git a/docs/community/release-notes.md b/docs/community/release-notes.md index cda24809fb..a27de2b641 100644 --- a/docs/community/release-notes.md +++ b/docs/community/release-notes.md @@ -38,17 +38,26 @@ You can determine your currently installed version using `pip show`: --- +## 3.10.x series + +### 3.10.0...
borgbackup__borg-1136
Clear up the environment when launching subprocesses Remove things like BORG_PASSPHRASE from the environmen of subprocesses. E.g. RemoteRepository.init "env = dict(os.environ)" should be fixed.
[ { "content": "import errno\nimport fcntl\nimport logging\nimport os\nimport select\nimport shlex\nfrom subprocess import Popen, PIPE\nimport sys\nimport tempfile\n\nfrom . import __version__\n\nfrom .helpers import Error, IntegrityError, sysinfo\nfrom .repository import Repository\n\nimport msgpack\n\nRPC_PROTO...
[ { "content": "import errno\nimport fcntl\nimport logging\nimport os\nimport select\nimport shlex\nfrom subprocess import Popen, PIPE\nimport sys\nimport tempfile\n\nfrom . import __version__\n\nfrom .helpers import Error, IntegrityError, sysinfo\nfrom .repository import Repository\n\nimport msgpack\n\nRPC_PROTO...
diff --git a/borg/remote.py b/borg/remote.py index 5662a8dbce..5768efad61 100644 --- a/borg/remote.py +++ b/borg/remote.py @@ -153,6 +153,7 @@ def __init__(self, location, create=False, lock_wait=None, lock=True, args=None) # pyinstaller binary adds LD_LIBRARY_PATH=/tmp/_ME... but we do not want ...
netbox-community__netbox-3858
Custom link in group does not render Jinja2 code <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discu...
[ { "content": "from collections import OrderedDict\n\nfrom django import template\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.utils.safestring import mark_safe\n\nfrom extras.models import CustomLink\nfrom utilities.utils import render_jinja2\n\n\nregister = template.Library()\n\nLIN...
[ { "content": "from collections import OrderedDict\n\nfrom django import template\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.utils.safestring import mark_safe\n\nfrom extras.models import CustomLink\nfrom utilities.utils import render_jinja2\n\n\nregister = template.Library()\n\nLIN...
diff --git a/docs/release-notes/version-2.6.md b/docs/release-notes/version-2.6.md index 62d732a9bfa..cde5b3e80c8 100644 --- a/docs/release-notes/version-2.6.md +++ b/docs/release-notes/version-2.6.md @@ -10,6 +10,7 @@ * [#3589](https://github.com/netbox-community/netbox/issues/3589) - Fix validation on tagged VLANs o...
freqtrade__freqtrade-3616
Bittrex is not working for PriceFilter ## Describe your environment * Operating system: Ubuntu Server * Python Version: 3.8.2 (`python -V`) * CCXT version: 1.30.48 (`pip freeze | grep ccxt`) * Freqtrade Version: 2020.6 (`freqtrade -V` or `docker-compose run --rm freqtrade -V` for Freqtrade running in dock...
[ { "content": "\"\"\"\nPrice pair list filter\n\"\"\"\nimport logging\nfrom typing import Any, Dict\n\nfrom freqtrade.pairlist.IPairList import IPairList\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass PriceFilter(IPairList):\n\n def __init__(self, exchange, pairlistmanager,\n config: Dic...
[ { "content": "\"\"\"\nPrice pair list filter\n\"\"\"\nimport logging\nfrom typing import Any, Dict\n\nfrom freqtrade.pairlist.IPairList import IPairList\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass PriceFilter(IPairList):\n\n def __init__(self, exchange, pairlistmanager,\n config: Dic...
diff --git a/freqtrade/pairlist/PriceFilter.py b/freqtrade/pairlist/PriceFilter.py index 5ee1df078cf..b3b2f43dcbf 100644 --- a/freqtrade/pairlist/PriceFilter.py +++ b/freqtrade/pairlist/PriceFilter.py @@ -56,7 +56,7 @@ def _validate_pair(self, ticker) -> bool: :param ticker: ticker dict as returned from ccxt.l...
mkdocs__mkdocs-668
Ignore broken symlinks in mkdocs serve. What I am experiencing: - When I am editing `index.md` in Emacs, Emacs creates files like: ``` ➜ docs git:(master) ✗ ls -al .#* lrwxrwxrwx 1 paulproteus paulproteus 36 Jun 17 17:24 .#index.md -> paulproteus@charkha.27783:1434311808 ``` - These files are Emacs' way of using sy...
[ { "content": "from __future__ import unicode_literals\nimport os\n\nfrom mkdocs import utils, legacy\nfrom mkdocs.config.base import Config, ValidationError\n\n\nclass BaseConfigOption(object):\n\n def __init__(self):\n self.warnings = []\n self.default = None\n\n def is_required(self):\n ...
[ { "content": "from __future__ import unicode_literals\nimport os\n\nfrom mkdocs import utils, legacy\nfrom mkdocs.config.base import Config, ValidationError\n\n\nclass BaseConfigOption(object):\n\n def __init__(self):\n self.warnings = []\n self.default = None\n\n def is_required(self):\n ...
diff --git a/mkdocs/config/config_options.py b/mkdocs/config/config_options.py index 38a6144261..28ee62c8ea 100644 --- a/mkdocs/config/config_options.py +++ b/mkdocs/config/config_options.py @@ -332,6 +332,13 @@ def walk_docs_dir(self, docs_dir): dirs.sort() for filename in sorted(filenames): ...
carltongibson__django-filter-289
Update PyPI uploading. Inline with maraujop/django-crispy-forms#460
[ { "content": "import os\nimport sys\nfrom setuptools import setup, find_packages\n\nf = open('README.rst')\nreadme = f.read()\nf.close()\n\nversion = '0.11.0'\n\nif sys.argv[-1] == 'publish':\n os.system(\"python setup.py sdist upload\")\n os.system(\"python setup.py bdist_wheel upload\")\n print(\"You...
[ { "content": "import os\nimport sys\nfrom setuptools import setup, find_packages\n\nf = open('README.rst')\nreadme = f.read()\nf.close()\n\nversion = '0.11.0'\n\nif sys.argv[-1] == 'publish':\n if os.system(\"pip freeze | grep wheel\"):\n print(\"wheel not installed.\\nUse `pip install wheel`.\\nExiti...
diff --git a/.travis.yml b/.travis.yml index 66b801eb6..e81577966 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,15 +6,10 @@ python: - "3.2" - "3.3" - "3.4" - #- "pypy" - #- "pypy3" - env: - DJANGO='https://github.com/django/django/archive/master.tar.gz' - DJANGO='django>=1.8.0,<1.9.0' - DJANGO='...
googleapis__google-api-python-client-1281
errors.py: Add support for JSON content that has `errors` instead of `detail` or `details` Thanks for stopping by to let us know something could be better! **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing...
[ { "content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
[ { "content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
diff --git a/googleapiclient/errors.py b/googleapiclient/errors.py index 33ee682a4d0..332327ec04f 100644 --- a/googleapiclient/errors.py +++ b/googleapiclient/errors.py @@ -61,7 +61,7 @@ def _get_reason(self): data = self.content.decode("utf-8") if isinstance(data, dict): ...
django-cms__django-cms-2647
ImportError when using wsgi With cms 3.0b4.dev6 when wsgi handler tries to load middlewares in `django/core/handlers/wsgi.py, line 236 in __call__: self.load_middleware()` then `cms.middleware.page.CurrentPageMiddleware` fails with: ``` ImproperlyConfigured: Error importing middleware cms.middleware.page: "cannot impo...
[ { "content": "# -*- coding: utf-8 -*-\nimport sys\nfrom cms.appresolver import clear_app_resolvers\nfrom django.core.management import color_style\nfrom django.core.urlresolvers import clear_url_caches\nfrom django.core.signals import request_finished\nfrom cms.models import Title\n\n\nDISPATCH_UID = 'cms-resta...
[ { "content": "# -*- coding: utf-8 -*-\nimport sys\nfrom django.core.management import color_style\nfrom django.core.urlresolvers import clear_url_caches\nfrom django.core.signals import request_finished\nfrom cms.models import Title\n\n\nDISPATCH_UID = 'cms-restart'\n\n\ndef apphook_pre_title_checker(instance, ...
diff --git a/cms/signals/apphook.py b/cms/signals/apphook.py index c584567c3b8..b5d0c2f286f 100644 --- a/cms/signals/apphook.py +++ b/cms/signals/apphook.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- import sys -from cms.appresolver import clear_app_resolvers from django.core.management import color_style from django....
lutris__lutris-4140
New Runner Versions Dialog does not always populate fully ### Bug description The new versions dialog takes an exception when populating when a runner version has just 1 game. It appears that the % operator does not like it if there's no placeholder thing in the text. The log did not seem to get it, but I saw this...
[ { "content": "\"\"\"Dialog used to install versions of a runner\"\"\"\n# pylint: disable=no-member\nimport gettext\nimport os\nfrom collections import defaultdict\nfrom gettext import gettext as _\n\nfrom gi.repository import GLib, Gtk\n\nfrom lutris import api, settings\nfrom lutris.database.games import get_g...
[ { "content": "\"\"\"Dialog used to install versions of a runner\"\"\"\n# pylint: disable=no-member\nimport gettext\nimport os\nfrom collections import defaultdict\nfrom gettext import gettext as _\n\nfrom gi.repository import GLib, Gtk\n\nfrom lutris import api, settings\nfrom lutris.database.games import get_g...
diff --git a/lutris/gui/dialogs/runner_install.py b/lutris/gui/dialogs/runner_install.py index ac49d0d0d6..2a04ad2d98 100644 --- a/lutris/gui/dialogs/runner_install.py +++ b/lutris/gui/dialogs/runner_install.py @@ -152,10 +152,10 @@ def populate_listboxrows(self, store): if runner[self.COL_INSTALLED]: ...
ietf-tools__datatracker-3727
The non-wg list view contains things that do not belong. The list contains things that do not belong. For example, 'geopriv' is listed as a non-wg list, but it is a concluded wg. Maybe this should be a separate issue. _Originally posted by @russhousley in https://github.com/ietf-tools/datatracker/issues/3675#issue...
[ { "content": "# Copyright The IETF Trust 2007, All Rights Reserved\n\nimport re\n\nfrom django.shortcuts import render\n\nimport debug # pyflakes:ignore\n\nfrom ietf.group.models import Group\nfrom ietf.mailinglists.models import List\n\ndef groups(request):\n groups = Group.object...
[ { "content": "# Copyright The IETF Trust 2007-2022, All Rights Reserved\n\nimport re\n\nfrom django.shortcuts import render\n\nimport debug # pyflakes:ignore\n\nfrom ietf.group.models import Group\nfrom ietf.mailinglists.models import List\n\ndef groups(request):\n groups = Group.o...
diff --git a/ietf/mailinglists/tests.py b/ietf/mailinglists/tests.py index 543904991e..0c983da80c 100644 --- a/ietf/mailinglists/tests.py +++ b/ietf/mailinglists/tests.py @@ -32,7 +32,13 @@ def test_groups(self): def test_nonwg(self): + groups = list() + groups.append(GroupFactory(type_id='wg', a...
freqtrade__freqtrade-3835
"--spaces trailing" - Hyper-Opt Results Are Not Matching Back Test Results. <!-- Have you searched for similar issues before posting it? If you have discovered a bug in the bot, please [search our issue tracker](https://github.com/freqtrade/freqtrade/issues?q=is%3Aissue). If it hasn't been reported, please creat...
[ { "content": "# pragma pylint: disable=too-many-instance-attributes, pointless-string-statement\n\n\"\"\"\nThis module contains the hyperopt logic\n\"\"\"\n\nimport io\nimport locale\nimport logging\nimport random\nimport warnings\nfrom collections import OrderedDict\nfrom datetime import datetime\nfrom math im...
[ { "content": "# pragma pylint: disable=too-many-instance-attributes, pointless-string-statement\n\n\"\"\"\nThis module contains the hyperopt logic\n\"\"\"\n\nimport io\nimport locale\nimport logging\nimport random\nimport warnings\nfrom collections import OrderedDict\nfrom datetime import datetime\nfrom math im...
diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index edb51677e9b..5997e077b20 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -262,6 +262,11 @@ def _params_pretty_print(params, space: str, header: str) -> None: ), ...
microsoft__hi-ml-812
Links to BioViL paper need to be updated We are still using the arXiv preprint. But this should be solved first: - https://github.com/microsoft/hi-ml/pull/730#issuecomment-1419298653
[ { "content": "# ------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.\n# ------------------------------------------...
[ { "content": "# ------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.\n# ------------------------------------------...
diff --git a/hi-ml-multimodal/README.md b/hi-ml-multimodal/README.md index 14a163a12..94344fe28 100644 --- a/hi-ml-multimodal/README.md +++ b/hi-ml-multimodal/README.md @@ -48,23 +48,38 @@ the weights and model cards are hosted on [Hugging Face 🤗][6]. ## Credit -If you use our code or models in your research, ple...
lutris__lutris-2383
Lutris doesn't show right and left panel by default This is a very serious issue, because now new users, by default, only see this: ![image](https://user-images.githubusercontent.com/10602045/65707831-f8c63900-e095-11e9-8845-78819d1e3fdc.png) which is very confusing, as Lutris is missing half of its UI, and it's not ...
[ { "content": "\"\"\"Main window for the Lutris interface.\"\"\"\n# pylint: disable=no-member\nimport os\nfrom collections import namedtuple\n\nfrom gi.repository import Gtk, Gdk, GLib, Gio, GObject\n\nfrom lutris import api, pga, settings\nfrom lutris.game import Game\nfrom lutris.game_actions import GameAction...
[ { "content": "\"\"\"Main window for the Lutris interface.\"\"\"\n# pylint: disable=no-member\nimport os\nfrom collections import namedtuple\n\nfrom gi.repository import Gtk, Gdk, GLib, Gio, GObject\n\nfrom lutris import api, pga, settings\nfrom lutris.game import Game\nfrom lutris.game_actions import GameAction...
diff --git a/lutris/gui/lutriswindow.py b/lutris/gui/lutriswindow.py index 2944493043..eebda11ee4 100644 --- a/lutris/gui/lutriswindow.py +++ b/lutris/gui/lutriswindow.py @@ -266,12 +266,12 @@ def filter_installed(self): @property def left_side_panel_visible(self): - show_left_panel = settings.read_s...
GoogleCloudPlatform__PerfKitBenchmarker-680
silo benchmark fails behind proxy From @mateusz-blaszkowski in #475: > silo - failed with Clone of 'git://github.com/kohler/masstree-beta.git' into submodule path 'masstree' failed. I run the test behind the proxy and this is the case. I would have changed the path to Git repository to https:// but it is hidden somew...
[ { "content": "# Copyright 2014 PerfKitBenchmarker Authors. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "# Copyright 2014 PerfKitBenchmarker Authors. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/perfkitbenchmarker/linux_packages/silo.py b/perfkitbenchmarker/linux_packages/silo.py index 2c14a0bc1c..fdb64fa60b 100644 --- a/perfkitbenchmarker/linux_packages/silo.py +++ b/perfkitbenchmarker/linux_packages/silo.py @@ -33,6 +33,9 @@ def _Install(vm): vm.RemoteCommand('git clone {0} {1}'.format(GIT_RE...
twisted__twisted-841
PyPy base object class has methods not slot wrappers, causing reflect failures |[<img alt="dansut's avatar" src="https://avatars.githubusercontent.com/u/100365?s=50" width="50" height="50">](https://github.com/dansut)| @dansut reported| |-|-| |Trac ID|trac#9225| |Type|enhancement| |Created|2017-07-21 12:49:40Z| The im...
[ { "content": "# -*- test-case-name: twisted.test.test_reflect -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nStandardized versions of various cool and/or strange things that you can do\nwith Python's reflection capabilities.\n\"\"\"\n\nfrom __future__ import division, a...
[ { "content": "# -*- test-case-name: twisted.test.test_reflect -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nStandardized versions of various cool and/or strange things that you can do\nwith Python's reflection capabilities.\n\"\"\"\n\nfrom __future__ import division, a...
diff --git a/src/twisted/newsfragments/9225.bugfix b/src/twisted/newsfragments/9225.bugfix new file mode 100644 index 00000000000..0faf81c7d08 --- /dev/null +++ b/src/twisted/newsfragments/9225.bugfix @@ -0,0 +1 @@ +Ignore PyPy's implementation differences in base object class. diff --git a/src/twisted/python/reflect.p...
liqd__a4-meinberlin-613
datetimepicker unique ids <img width="980" alt="screen shot 2017-06-01 at 15 59 21" src="https://cloud.githubusercontent.com/assets/16354712/26683219/61f8eb4c-46e3-11e7-851b-148bff927bd4.png">
[ { "content": "import datetime\nfrom itertools import chain\n\nimport django_filters\nfrom django.contrib.staticfiles.storage import staticfiles_storage\nfrom django.db.models.fields import BLANK_CHOICE_DASH\nfrom django.forms import widgets as form_widgets\nfrom django.forms.widgets import flatatt\nfrom django....
[ { "content": "import datetime\nfrom itertools import chain\n\nimport django_filters\nfrom django.contrib.staticfiles.storage import staticfiles_storage\nfrom django.db.models.fields import BLANK_CHOICE_DASH\nfrom django.forms import widgets as form_widgets\nfrom django.forms.widgets import flatatt\nfrom django....
diff --git a/apps/contrib/widgets.py b/apps/contrib/widgets.py index ed63c32bfe..fb006a78ce 100644 --- a/apps/contrib/widgets.py +++ b/apps/contrib/widgets.py @@ -71,12 +71,14 @@ def render(self, name, value, attrs=None): date_attrs = self.build_attrs(attrs) date_attrs.update({ 'class': '...
google__jax-965
`list(np.arange(10001))` is slow. We should improve this.
[ { "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/interpreters/xla.py b/jax/interpreters/xla.py index 0f5af5889854..881ac58c71ae 100644 --- a/jax/interpreters/xla.py +++ b/jax/interpreters/xla.py @@ -526,13 +526,13 @@ def __iter__(self): if self.ndim == 0: raise TypeError("iteration over a 0-d array") # same as numpy error else: - ...
keras-team__keras-18610
Masking layer doesn´t work on GPU Using a Masking layer in an LSTM model and Tensorflow as backend when training on CPU runs without problem, howerver, when using GPU the following error is shown: ``` Using a symbolic `tf.Tensor` as a Python `bool` is not allowed: AutoGraph is disabled in this function. Try decorat...
[ { "content": "import tensorflow as tf\nimport tree\n\nfrom keras.utils.nest import pack_sequence_as\n\n\ndef rnn(\n step_function,\n inputs,\n initial_states,\n go_backwards=False,\n mask=None,\n constants=None,\n unroll=False,\n input_length=None,\n time_major=False,\n zero_output...
[ { "content": "import tensorflow as tf\nimport tree\n\nfrom keras.utils.nest import pack_sequence_as\n\n\ndef rnn(\n step_function,\n inputs,\n initial_states,\n go_backwards=False,\n mask=None,\n constants=None,\n unroll=False,\n input_length=None,\n time_major=False,\n zero_output...
diff --git a/keras/backend/tensorflow/rnn.py b/keras/backend/tensorflow/rnn.py index 3430b1bdea2a..61b4b2912f51 100644 --- a/keras/backend/tensorflow/rnn.py +++ b/keras/backend/tensorflow/rnn.py @@ -441,6 +441,7 @@ def _step(time, output_ta_t, *states): return last_output, outputs, new_states +@tf.function de...
conan-io__conan-14185
[bug] Can't call `conan upload --recipe-only` twice with backup sources enabled ### Steps to reproduce 1. Enable backup sources 2. Export a recipe that downloads file 3. Call conan upload only recipe for ref 4. Do it again, it fails due to KeyError Found while prepping for https://github.com/conan-io/conan-c...
[ { "content": "import json\nimport os\nfrom contextlib import contextmanager\nfrom threading import Lock\n\nfrom conans.util.dates import timestamp_now\nfrom conans.util.files import load, save\nfrom conans.util.locks import SimpleLock\nfrom conans.util.sha import sha256 as compute_sha256\n\n\nclass DownloadCach...
[ { "content": "import json\nimport os\nfrom contextlib import contextmanager\nfrom threading import Lock\n\nfrom conans.util.dates import timestamp_now\nfrom conans.util.files import load, save\nfrom conans.util.locks import SimpleLock\nfrom conans.util.sha import sha256 as compute_sha256\n\n\nclass DownloadCach...
diff --git a/conans/client/downloaders/download_cache.py b/conans/client/downloaders/download_cache.py index b086f52b41b..c9ea0df70f2 100644 --- a/conans/client/downloaders/download_cache.py +++ b/conans/client/downloaders/download_cache.py @@ -60,9 +60,12 @@ def should_upload_sources(package): if excluded_url...
scoutapp__scout_apm_python-701
Bump core agent version to 1.4.0 Please update the Python agent dependency of core agent to core agent v1.4.0.
[ { "content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport logging\nimport os\nimport re\nimport warnings\n\nfrom scout_apm.compat import string_type\nfrom scout_apm.core import platform_detection\n\nlogger = logging.getLogger(__name__)\n\nkey_rege...
[ { "content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport logging\nimport os\nimport re\nimport warnings\n\nfrom scout_apm.compat import string_type\nfrom scout_apm.core import platform_detection\n\nlogger = logging.getLogger(__name__)\n\nkey_rege...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2da12a55..141df5a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ - Split CI tests GitHub actions into two jobs to support python 3.4 on Ubuntu 18 and modern versions with Ubuntu 20. - Run CI tests once per day to identify issues quicker. +- Set Scout co...
bramstroker__homeassistant-powercalc-799
[measure] logged CT values in float in info message That's kinda weird. Had a look at your code. I don't see how the generator could spit out floats, but somehow it does: ``` 2022-06-24 13:44:41,958 [INFO] Changing light to: ColorTempVariation(bri=16, ct=233.8462) 2022-06-24 13:44:51,049 [INFO] Measured power: 0.9...
[ { "content": "from __future__ import annotations\n\nimport csv\nimport gzip\nimport json\nimport logging\nimport os\nimport re\nimport shutil\nimport sys\nimport time\nfrom dataclasses import asdict, dataclass\nfrom datetime import datetime as dt\nfrom io import TextIOWrapper\nfrom pathlib import Path\nfrom typ...
[ { "content": "from __future__ import annotations\n\nimport csv\nimport gzip\nimport json\nimport logging\nimport os\nimport re\nimport shutil\nimport sys\nimport time\nfrom dataclasses import asdict, dataclass\nfrom datetime import datetime as dt\nfrom io import TextIOWrapper\nfrom pathlib import Path\nfrom typ...
diff --git a/utils/measure/measure.py b/utils/measure/measure.py index ffe766981..0982fbcbf 100644 --- a/utils/measure/measure.py +++ b/utils/measure/measure.py @@ -394,8 +394,8 @@ def get_variations(self, color_mode: str, resume_at: Optional[Variation] = None) def get_ct_variations(self) -> Iterator[ColorTempVa...
jazzband__django-debug-toolbar-876
Conflict with django_jinja We upgraded from django-debug-toolbar 1.4 to 1.5 and ended up with an error that seems to break compatibility with django_jinja. We received the same error as this Stack Overflow question: http://stackoverflow.com/questions/38569760/django-debug-toolbar-template-object-has-no-attribute-engi...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nfrom collections import OrderedDict\nfrom contextlib import contextmanager\nfrom os.path import normpath\nfrom pprint import pformat\n\nfrom django import http\nfrom django.conf.urls import url\nfrom django.db.models.query import QuerySet...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nfrom collections import OrderedDict\nfrom contextlib import contextmanager\nfrom os.path import normpath\nfrom pprint import pformat\n\nfrom django import http\nfrom django.conf.urls import url\nfrom django.db.models.query import QuerySet...
diff --git a/debug_toolbar/panels/templates/panel.py b/debug_toolbar/panels/templates/panel.py index 7d8a079e4..0144cb883 100644 --- a/debug_toolbar/panels/templates/panel.py +++ b/debug_toolbar/panels/templates/panel.py @@ -172,7 +172,10 @@ def generate_stats(self, request, response): # Fetch context_processo...
psychopy__psychopy-3073
Exceptions as PsychoPy attempts to validate unfinished code While typing code into a component's field prefixed with $, PsychoPy will repeatedly throw errors as you type. The error is as follows: ``` Traceback (most recent call last): File "C:\path\to\PsychoPy3\lib\site-packages\psychopy\app\builder\validators.py",...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2020 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General Public License (GPL).\nimport time\nimport os\nimport traceback\n\nfrom .functions imp...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2020 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General Public License (GPL).\nimport time\nimport os\nimport traceback\n\nfrom .functions imp...
diff --git a/psychopy/app/pavlovia_ui/project.py b/psychopy/app/pavlovia_ui/project.py index a21eb3e7e2..2d3b3c5eb0 100644 --- a/psychopy/app/pavlovia_ui/project.py +++ b/psychopy/app/pavlovia_ui/project.py @@ -494,6 +494,7 @@ def syncProject(parent, project=None, closeFrameWhenDone=False): return 0 ...
wagtail__wagtail-11662
Eleasticsearch7 empty admin search gives 500 ### Issue Summary When in the admin panel you click on the search icon you get a 500 error. Or when you clear the search input on the global search page you wel see 500 response in network tab. full stack trace: ``` File "/home/userapp/env/lib/python3.9/site-pack...
[ { "content": "import copy\nimport json\nimport warnings\nfrom collections import OrderedDict\nfrom urllib.parse import urlparse\n\nfrom django.db import DEFAULT_DB_ALIAS, models\nfrom django.db.models.sql import Query\nfrom django.db.models.sql.constants import MULTI\nfrom django.utils.crypto import get_random_...
[ { "content": "import copy\nimport json\nimport warnings\nfrom collections import OrderedDict\nfrom urllib.parse import urlparse\n\nfrom django.db import DEFAULT_DB_ALIAS, models\nfrom django.db.models.sql import Query\nfrom django.db.models.sql.constants import MULTI\nfrom django.utils.crypto import get_random_...
diff --git a/wagtail/search/backends/elasticsearch5.py b/wagtail/search/backends/elasticsearch5.py index 5cacb71ea1cc..7fefb1f9b568 100644 --- a/wagtail/search/backends/elasticsearch5.py +++ b/wagtail/search/backends/elasticsearch5.py @@ -653,8 +653,15 @@ def get_inner_query(self): if len(fields) == 0: ...
genialis__resolwe-313
404 returned when deleting entity with `delete_content` set to `true` Probably because sample gets deleted when the last data object is deleted.
[ { "content": "\"\"\"Entity viewset.\"\"\"\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom distutils.util import strtobool # pylint: disable=import-error,no-name-in-module\n\nfrom django.db.models import Max\nfrom django.db.models.query import Prefetch\n\nfrom rest_fr...
[ { "content": "\"\"\"Entity viewset.\"\"\"\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom distutils.util import strtobool # pylint: disable=import-error,no-name-in-module\n\nfrom django.db.models import Max\nfrom django.db.models.query import Prefetch\n\nfrom rest_fr...
diff --git a/resolwe/flow/tests/test_api.py b/resolwe/flow/tests/test_api.py index 06ad236ef..118db9b7f 100644 --- a/resolwe/flow/tests/test_api.py +++ b/resolwe/flow/tests/test_api.py @@ -419,11 +419,11 @@ def test_delete(self): entity.data.add(data_1, data_2) - assign_perm("view_entity", self.user...
ivy-llc__ivy-15454
cosh
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_unsupported_dtypes({\"2.4.2 and below\": (\"float16\", \"bfloat16\")}, \"paddle\")\n@to_ivy_arrays_and_back\ndef sin(x, ...
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_unsupported_dtypes({\"2.4.2 and below\": (\"float16\", \"bfloat16\")}, \"paddle\")\n@to_ivy_arrays_and_back\ndef sin(x, ...
diff --git a/ivy/functional/frontends/paddle/tensor/math.py b/ivy/functional/frontends/paddle/tensor/math.py index 6b9f5460e8850..5378201a85f62 100644 --- a/ivy/functional/frontends/paddle/tensor/math.py +++ b/ivy/functional/frontends/paddle/tensor/math.py @@ -18,16 +18,19 @@ def cos(x, name=None): return ivy.cos(...
sunpy__sunpy-6017
Functionality to pass a dt (sampling frequency) to TimeRange and it would return list of astropy time objects ### Description It would be nice if you could pass a start and end time and a sampling frequency to TimeRange and it would return a list of astropy time objects. The list could be an attribute of the Tim...
[ { "content": "\"\"\"\nThis module provies a object that can handle a time range.\n\"\"\"\nfrom datetime import timedelta\n\nimport astropy.units as u\nfrom astropy.time import Time, TimeDelta\n\nfrom sunpy import config\nfrom sunpy.time import is_time_equal, parse_time\nfrom sunpy.time.time import _variables_fo...
[ { "content": "\"\"\"\nThis module provies a object that can handle a time range.\n\"\"\"\nfrom datetime import timedelta\n\nimport astropy.units as u\nfrom astropy.time import Time, TimeDelta\n\nfrom sunpy import config\nfrom sunpy.time import is_time_equal, parse_time\nfrom sunpy.time.time import _variables_fo...
diff --git a/sunpy/time/timerange.py b/sunpy/time/timerange.py index 1fc1be83d8b..6df97f84842 100644 --- a/sunpy/time/timerange.py +++ b/sunpy/time/timerange.py @@ -65,6 +65,17 @@ class TimeRange: True >>> time2 in time_range False + + >>> import numpy as np + >>> from astropy.time import TimeDelta...
google__flax-2553
DynamicScale goes to infinity ### System information - OS Platform and Distribution: Linux 5.15.74-3-MANJARO - Flax, jax, jaxlib versions: flax 0.6.0, jax 0.3.21, jaxlib 0.3.20+cuda11.cudnn82 - Python version: 3.10.4 - GPU/TPU model and memory: NVIDIA RTX 2060 Super 8GB - CUDA version (if applicable): cuda11, cudn...
[ { "content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/flax/training/dynamic_scale.py b/flax/training/dynamic_scale.py index cc6942371..bb38679ce 100644 --- a/flax/training/dynamic_scale.py +++ b/flax/training/dynamic_scale.py @@ -132,9 +132,10 @@ def grad_fn_wrapper(*args): finite &= jnp.all(lax.is_finite(g)) grow = self.fin_steps == self.gr...
freedomofpress__securedrop-5932
Be nicer to admins when an uploaded logo doesn't work. ## Description If an uploaded logo can't be processed, the [error message shown to admins](https://github.com/freedomofpress/securedrop/blob/427675858c49ef67573bb002b37fce06c029a84d/securedrop/journalist_app/admin.py#L56) is curt: "Unable to process the image fi...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport os\nfrom typing import Optional\nfrom typing import Union\n\nimport werkzeug\nfrom flask import (Blueprint, render_template, request, url_for, redirect, g,\n current_app, flash, abort)\nfrom flask_babel import gettext\nfrom sqlalchemy.exc import ...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport os\nfrom typing import Optional\nfrom typing import Union\n\nimport werkzeug\nfrom flask import (Blueprint, render_template, request, url_for, redirect, g,\n current_app, flash, abort)\nfrom flask_babel import gettext\nfrom sqlalchemy.exc import ...
diff --git a/securedrop/journalist_app/admin.py b/securedrop/journalist_app/admin.py index c6b0024b38..fb2ab8fbb4 100644 --- a/securedrop/journalist_app/admin.py +++ b/securedrop/journalist_app/admin.py @@ -53,7 +53,10 @@ def manage_config() -> Union[str, werkzeug.Response]: flash(gettext("Image update...
microsoft__Qcodes-3118
AlazarTech ATS mode=TriggeredStreaming fails with > 1 buffer ### Steps to reproduce 1. call ats.aquire(mode='TS', samples_per_record=100e6, buffers_per_acquisition=10) 2. qcodes driver tries to allocate buffer of 1000e6 bytes, which is larger than ATS driver supports. 2nd: 1. call ats.aquire(mode='TS', samples_pe...
[ { "content": "import ctypes\nimport logging\nimport time\nimport warnings\nimport sys\nfrom typing import List, Dict, Union, Sequence, Optional, Any, Iterator, cast, TypeVar, Type, Generic\nfrom contextlib import contextmanager\n\nimport numpy as np\n\nfrom qcodes.instrument.base import Instrument\nfrom .ats_ap...
[ { "content": "import ctypes\nimport logging\nimport time\nimport warnings\nimport sys\nfrom typing import List, Dict, Union, Sequence, Optional, Any, Iterator, cast, TypeVar, Type, Generic\nfrom contextlib import contextmanager\n\nimport numpy as np\n\nfrom qcodes.instrument.base import Instrument\nfrom .ats_ap...
diff --git a/qcodes/instrument_drivers/AlazarTech/ATS.py b/qcodes/instrument_drivers/AlazarTech/ATS.py index 078d4cfee21..c26334828d0 100644 --- a/qcodes/instrument_drivers/AlazarTech/ATS.py +++ b/qcodes/instrument_drivers/AlazarTech/ATS.py @@ -386,6 +386,10 @@ def acquire( internal_buffer_size_requested = (bi...
liqd__a4-meinberlin-2728
User testing 2394: add module button placement and wording URL: https://meinberlin-dev.liqd.net/dashboard/modules/ user: initiator/group member expected behaviour: behaviour: move 'add module' button to below the project menu and swap order of added modules so newest first, update wording to 'show in project' impor...
[ { "content": "from django.apps import apps\nfrom django.contrib import messages\nfrom django.contrib.messages.views import SuccessMessageMixin\nfrom django.http import HttpResponseRedirect\nfrom django.urls import resolve\nfrom django.urls import reverse\nfrom django.utils.translation import ugettext_lazy as _\...
[ { "content": "from django.apps import apps\nfrom django.contrib import messages\nfrom django.contrib.messages.views import SuccessMessageMixin\nfrom django.http import HttpResponseRedirect\nfrom django.urls import resolve\nfrom django.urls import reverse\nfrom django.utils.translation import ugettext_lazy as _\...
diff --git a/meinberlin/apps/dashboard/views.py b/meinberlin/apps/dashboard/views.py index 8689fd7d90..54b2fef97e 100644 --- a/meinberlin/apps/dashboard/views.py +++ b/meinberlin/apps/dashboard/views.py @@ -67,7 +67,14 @@ def post(self, request, *args, **kwargs): self._create_module_settings(module) s...
conda__conda-6801
Conda env remove doesn't list packages in that env With Conda 4.3: ``` (root) [root@2e532c56ecac ~]# conda list -n test # packages in environment at /opt/conda/envs/test: # ca-certificates 2017.08.26 h1d4fec5_0 libedit 3.1 heed3624_0 libffi ...
[ { "content": "# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import defaultdict\nimport logging\nfrom os.path import...
[ { "content": "# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import defaultdict\nimport logging\nfrom os.path import...
diff --git a/conda/cli/main_remove.py b/conda/cli/main_remove.py index ca31011f795..90916da07e3 100644 --- a/conda/cli/main_remove.py +++ b/conda/cli/main_remove.py @@ -19,7 +19,7 @@ from ..gateways.disk.test import is_conda_environment from ..instructions import PREFIX from ..models.match_spec import MatchSpec -fro...
mabel-dev__opteryx-1159
🧹 resync SQLoxide AST to SQL and AST visitor appear to have been added
[ { "content": "try:\n from .sqloxide import parse_sql\nexcept ImportError as e: # pragma: no cover\n print(e)\n if str(e) != \"PyO3 modules may only be initialized once per interpreter process\":\n raise e\n\n__all__ = [\"parse_sql\"]\n", "path": "opteryx/third_party/sqloxide/__init__.py" ...
[ { "content": "\"\"\"\nThis module provides an interface to the sqloxide library, which is responsible for parsing SQL,\nrestoring the Abstract Syntax Tree (AST), and performing various mutations on expressions and relations.\n\nFor more information about sqloxide: https://github.com/wseaton/sqloxide\n\nThis mod...
diff --git a/Cargo.toml b/Cargo.toml index 7cdf5f971..dc2c01ee1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sqloxide" -version = "0.25.0" +version = "0.1.36" authors = ["Will Eaton <me@wseaton.com>"] edition = "2018" @@ -10,11 +10,12 @@ crate-type = ["cdylib"] [dependencies] pyt...
uccser__cs-unplugged-1415
Use Django's JavaScript Catalog We should use Django's [JavaScript translation catalog](https://docs.djangoproject.com/en/1.11/topics/i18n/translation/#internationalization-in-javascript-code) to allow us to translate text in JavaScript files. Refer to https://github.com/uccser/cs-field-guide/pull/713 and https://gi...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nBase Django settings for CS Unplugged project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/dev/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/dev/ref/settings/\n\"\"\"\n\ni...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nBase Django settings for CS Unplugged project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/dev/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/dev/ref/settings/\n\"\"\"\n\ni...
diff --git a/LICENCE-THIRD-PARTY b/LICENCE-THIRD-PARTY index 7099c25f7..fedfd5c37 100644 --- a/LICENCE-THIRD-PARTY +++ b/LICENCE-THIRD-PARTY @@ -112,6 +112,15 @@ Licensed under BSD 3-clause "New" or "Revised" License. third-party-licenses/django-modeltranslation.txt ===================================================...
google__jax-399
float16 support Add support for `np.float16`.
[ { "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/abstract_arrays.py b/jax/abstract_arrays.py index 92966a4530aa..c51f207584eb 100644 --- a/jax/abstract_arrays.py +++ b/jax/abstract_arrays.py @@ -161,9 +161,11 @@ def zeros_like_array(x): dtype = xla_bridge.canonicalize_dtype(onp.result_type(x)) return onp.broadcast_to(onp.array(0, dtype), onp.sh...
biolab__orange3-text-424
PubMed importer prints warnings: Could not parse "2017 mar/apr" into a date. ``` /usr/local/lib/python3.6/site-packages/orangecontrib/text/pubmed.py:80: RuntimeWarning: Could not parse "2017 nov/dec" into a date. RuntimeWarning /usr/local/lib/python3.6/site-packages/orangecontrib/text/pubmed.py:80: RuntimeWarning:...
[ { "content": "import os\nfrom datetime import date\n\nfrom AnyQt.QtCore import QDate, Qt\nfrom AnyQt.QtWidgets import (QApplication, QComboBox, QDateEdit, QTextEdit,\n QFrame, QDialog, QCalendarWidget, QVBoxLayout)\nfrom validate_email import validate_email\n\nfrom Orange.widgets imp...
[ { "content": "import os\nfrom datetime import date\n\nfrom AnyQt.QtCore import QDate, Qt\nfrom AnyQt.QtWidgets import (QApplication, QComboBox, QDateEdit, QTextEdit,\n QFrame, QDialog, QCalendarWidget, QVBoxLayout)\nfrom validate_email import validate_email\n\nfrom Orange.widgets imp...
diff --git a/orangecontrib/text/widgets/owpubmed.py b/orangecontrib/text/widgets/owpubmed.py index acacb3b04..a518b0c8b 100644 --- a/orangecontrib/text/widgets/owpubmed.py +++ b/orangecontrib/text/widgets/owpubmed.py @@ -206,7 +206,7 @@ def __init__(self): label = gui.label(h_box, self, 'Retrieve') la...
microsoft__torchgeo-1985
Zero area intersections in IntersectionDataset result in unexpected dataset lengths ### Issue We create an IntersectionDataset like this: ``` train_image_ds = RasterDataset( 'data/processed/images/', ) train_mask_ds = RasterDataset( 'data/processed/masks/', ) train_mask_ds.is_image = False train_ds ...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\n\"\"\"Base classes for all :mod:`torchgeo` datasets.\"\"\"\n\nimport abc\nimport functools\nimport glob\nimport os\nimport re\nimport sys\nimport warnings\nfrom collections.abc import Callable, Iterab...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\n\"\"\"Base classes for all :mod:`torchgeo` datasets.\"\"\"\n\nimport abc\nimport functools\nimport glob\nimport os\nimport re\nimport sys\nimport warnings\nfrom collections.abc import Callable, Iterab...
diff --git a/tests/datasets/test_geo.py b/tests/datasets/test_geo.py index c98f010c599..054d69472a6 100644 --- a/tests/datasets/test_geo.py +++ b/tests/datasets/test_geo.py @@ -543,6 +543,14 @@ def test_different_res_1_23(self) -> None: assert len(ds1) == len(ds2) == len(ds3) == len(ds) == 1 assert is...
comic__grand-challenge.org-1631
Show domain name of the email address that was used to verify the account Google Scholar shows on profiles instead of the entire email address only the domain name. Something like "Verified email address at radboudumc.nl". Would be a good feature for grand challenge as well, this would make it possible to check if user...
[ { "content": "from typing import Union\n\nfrom django import template\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.models import AbstractUser\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.utils.html import format_html\nfrom django.utils.safestring import mark_s...
[ { "content": "from typing import Union\n\nfrom django import template\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.models import AbstractUser\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.utils.html import format_html\nfrom django.utils.safestring import mark_s...
diff --git a/app/grandchallenge/profiles/templatetags/profiles.py b/app/grandchallenge/profiles/templatetags/profiles.py index 15156d7d10..8ba917ed5a 100644 --- a/app/grandchallenge/profiles/templatetags/profiles.py +++ b/app/grandchallenge/profiles/templatetags/profiles.py @@ -33,9 +33,15 @@ def user_profile_link(user...
adamchainz__django-perf-rec-80
Work with empty perf files It should be possible to work with YAML files that are empty, it's sometimes easier to empty a file than delete it e.g. if you have it open in your text editor. For an empty file `yaml.load` returns `None` but we currently only accept dicts and thus this dies with: ``` data = yaml...
[ { "content": "# -*- coding:utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport errno\nimport os\n\nimport yaml\nfrom django.core.files import locks\n\n\nclass KVFile(object):\n\n def __init__(self, file_name):\n self.file_name = file_name\n se...
[ { "content": "# -*- coding:utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport errno\nimport os\n\nimport yaml\nfrom django.core.files import locks\n\n\nclass KVFile(object):\n\n def __init__(self, file_name):\n self.file_name = file_name\n se...
diff --git a/HISTORY.rst b/HISTORY.rst index 770b2d5c..52dd15a0 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -12,6 +12,7 @@ Pending release test records from calls outside of tests. * Made the automatic test detection work when running under a Pytest fixture. * Stopped throwing warnings on Python 3. +* Fixed load...
conda-forge__conda-smithy-604
conda-smithy adds R 3.4.2 to build matrix conda-forge has r-base 3.3.2 and 3.4.1 available: https://anaconda.org/conda-forge/r-base/files However, `conda smithy rerender` sometimes adds R 3.4.2 to the build matrix. This is presumably because R 3.4.2 is now available in the `r` channel: https://anaconda.org/r/r...
[ { "content": "from __future__ import print_function, unicode_literals\n\nfrom collections import OrderedDict as odict\nfrom contextlib import contextmanager\nimport os\nimport shutil\nimport stat\nimport textwrap\nimport yaml\nimport warnings\n\nimport conda.api\nimport conda.config\n\ntry:\n # Try conda's A...
[ { "content": "from __future__ import print_function, unicode_literals\n\nfrom collections import OrderedDict as odict\nfrom contextlib import contextmanager\nimport os\nimport shutil\nimport stat\nimport textwrap\nimport yaml\nimport warnings\n\nimport conda.api\nimport conda.config\n\ntry:\n # Try conda's A...
diff --git a/conda_smithy/configure_feedstock.py b/conda_smithy/configure_feedstock.py index 9a196376b..0c7c99299 100755 --- a/conda_smithy/configure_feedstock.py +++ b/conda_smithy/configure_feedstock.py @@ -637,7 +637,7 @@ def compute_build_matrix(meta, existing_matrix=None, channel_sources=tuple()): index = con...
netbox-community__netbox-16013
Unable to reference object id in site using REST API ### Deployment Type Self-hosted ### NetBox Version v4.0.0 ### Python Version 3.10 ### Steps to Reproduce 1. Create a tenant named "Test Tenant". Make a note of the tenant's id (in my case it's 7) 2. Create a site using REST API ``` curl -s -X...
[ { "content": "from rest_framework import serializers\nfrom timezone_field.rest_framework import TimeZoneSerializerField\n\nfrom dcim.choices import *\nfrom dcim.models import Location, Region, Site, SiteGroup\nfrom ipam.api.serializers_.asns import ASNSerializer\nfrom ipam.models import ASN\nfrom netbox.api.fie...
[ { "content": "from rest_framework import serializers\nfrom timezone_field.rest_framework import TimeZoneSerializerField\n\nfrom dcim.choices import *\nfrom dcim.models import Location, Region, Site, SiteGroup\nfrom ipam.api.serializers_.asns import ASNSerializer\nfrom ipam.models import ASN\nfrom netbox.api.fie...
diff --git a/netbox/dcim/api/serializers_/sites.py b/netbox/dcim/api/serializers_/sites.py index cf30ca44c8e..1e5e410695c 100644 --- a/netbox/dcim/api/serializers_/sites.py +++ b/netbox/dcim/api/serializers_/sites.py @@ -51,7 +51,7 @@ class SiteSerializer(NetBoxModelSerializer): status = ChoiceField(choices=SiteSt...
getsentry__sentry-14451
VSTS Integration: Internal Server Error We are currently trialing sentry with a hope to get it connected to our Azure DevOps project(s). However, we are seeing the following when our Organisation Owner attempts to install the integration. 13th August '19 16:35 **Add Installation** while logged into https://sodalabs.vis...
[ { "content": "from __future__ import absolute_import\nfrom time import time\nimport logging\nimport re\n\nfrom django import forms\nfrom django.utils.translation import ugettext as _\n\nfrom sentry import http, features\nfrom sentry.constants import ObjectStatus\nfrom sentry.models import (\n Integration as ...
[ { "content": "from __future__ import absolute_import\nfrom time import time\nimport logging\nimport re\n\nfrom django import forms\nfrom django.utils.translation import ugettext as _\n\nfrom sentry import http, features\nfrom sentry.constants import ObjectStatus\nfrom sentry.models import (\n Integration as ...
diff --git a/src/sentry/integrations/vsts/integration.py b/src/sentry/integrations/vsts/integration.py index c21844cc30ce58..a8771aa614654f 100644 --- a/src/sentry/integrations/vsts/integration.py +++ b/src/sentry/integrations/vsts/integration.py @@ -396,7 +396,9 @@ def create_subscription(self, instance, oauth_data): ...
psychopy__psychopy-3477
Adding line breaks in Builder at least on win10, Open the Builder Stroop demo and run it. The intro screen displays \n\n text instead of line breaks. Opening the text component shows spaces. Help. ;)
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2021 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General Public License (GPL).\n\n\"\"\"Experiment classes:\n Experiment, Flow, Routine, Par...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2021 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General Public License (GPL).\n\n\"\"\"Experiment classes:\n Experiment, Flow, Routine, Par...
diff --git a/psychopy/experiment/params.py b/psychopy/experiment/params.py index 5a7cc34cbc..67af218488 100644 --- a/psychopy/experiment/params.py +++ b/psychopy/experiment/params.py @@ -198,7 +198,7 @@ def __str__(self): if self.valType in ['file', 'table']: # If param is ...
Zeroto521__my-data-toolkit-88
BUG: feature_union can't concat different dataframe well https://github.com/Zeroto521/my-data-toolkit/blob/8b6ec3ce2658626f265bf5e1bab5a7c0897a0787/dtoolkit/transformer.py#L55-L56 When we use transformers to handle data frames, some rows would be deleted. So use the feature union transformer would cause the followi...
[ { "content": "from __future__ import annotations\n\nimport numpy as np\nimport pandas as pd\nfrom more_itertools import flatten\nfrom scipy import sparse\nfrom sklearn.base import TransformerMixin\nfrom sklearn.pipeline import _name_estimators\nfrom sklearn.pipeline import FeatureUnion as SKFeatureUnion\nfrom s...
[ { "content": "from __future__ import annotations\n\nimport numpy as np\nimport pandas as pd\nfrom more_itertools import flatten\nfrom scipy import sparse\nfrom sklearn.base import TransformerMixin\nfrom sklearn.pipeline import _name_estimators\nfrom sklearn.pipeline import FeatureUnion as SKFeatureUnion\nfrom s...
diff --git a/dtoolkit/tests/test_transformer.py b/dtoolkit/tests/test_transformer.py index 8291f91f2..b07a540f5 100644 --- a/dtoolkit/tests/test_transformer.py +++ b/dtoolkit/tests/test_transformer.py @@ -281,3 +281,27 @@ def test_union_pipeline(pipeline): res = pipeline.fit_transform(df_mixed) assert isins...
typeddjango__django-stubs-531
mypy crash when .mypy_cache is present ## What's wrong Under certain circumstances, a project with a typing error will produce correct mypy errors and hints when `.mypy_cache` is not present but a stack trace if it is. Here is a simplified reproduction repo demonstrating this behaviour: https://github.com/danifus/...
[ { "content": "from collections import OrderedDict\nfrom typing import TYPE_CHECKING, Any, Dict, Iterable, Iterator, List, Optional, Set, Tuple, Union\n\nfrom django.db.models.fields import Field\nfrom django.db.models.fields.related import RelatedField\nfrom django.db.models.fields.reverse_related import Foreig...
[ { "content": "from collections import OrderedDict\nfrom typing import TYPE_CHECKING, Any, Dict, Iterable, Iterator, List, Optional, Set, Tuple, Union\n\nfrom django.db.models.fields import Field\nfrom django.db.models.fields.related import RelatedField\nfrom django.db.models.fields.reverse_related import Foreig...
diff --git a/mypy_django_plugin/lib/helpers.py b/mypy_django_plugin/lib/helpers.py index 8b7b80fbc..e13b0ecfd 100644 --- a/mypy_django_plugin/lib/helpers.py +++ b/mypy_django_plugin/lib/helpers.py @@ -361,8 +361,13 @@ def copy_method_to_another_class( if isinstance(bound_return_type, PlaceholderNode): ret...
googleapis__google-cloud-python-5599
Added retry on internal error Added retry on internal error as suggested by the internal error message: '500 Error encountered during execution. Retrying may solve the problem.'. Rationalised the conditions structure so it would simplify addition of other retry conditions.
[ { "content": "\n# 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# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
[ { "content": "\n# 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# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica...
diff --git a/bigquery/google/cloud/bigquery/retry.py b/bigquery/google/cloud/bigquery/retry.py index 1e1ef57f116c..fc2eebeecfad 100644 --- a/bigquery/google/cloud/bigquery/retry.py +++ b/bigquery/google/cloud/bigquery/retry.py @@ -16,6 +16,13 @@ from google.api_core import retry +_RETRYABLE_REASONS = frozenset([ +...
doccano__doccano-2201
Include Example number in the Project Comments view Feature description --------- On the backend API and in the dataset annotation interface, the Comments are associated with specific Examples. But in the Project Comments view, the Example association is unclear--all the comments are grouped together. Can the Proj...
[ { "content": "from django_filters.rest_framework import DjangoFilterBackend\nfrom rest_framework import filters, generics, status\nfrom rest_framework.permissions import IsAuthenticated\nfrom rest_framework.response import Response\n\nfrom examples.models import Comment\nfrom examples.permissions import IsOwnCo...
[ { "content": "from django_filters.rest_framework import DjangoFilterBackend\nfrom rest_framework import filters, generics, status\nfrom rest_framework.permissions import IsAuthenticated\nfrom rest_framework.response import Response\n\nfrom examples.models import Comment\nfrom examples.permissions import IsOwnCo...
diff --git a/backend/examples/views/comment.py b/backend/examples/views/comment.py index 928f3890f1..dadb8c72f1 100644 --- a/backend/examples/views/comment.py +++ b/backend/examples/views/comment.py @@ -12,9 +12,10 @@ class CommentList(generics.ListCreateAPIView): permission_classes = [IsAuthenticated & IsProject...
bridgecrewio__checkov-2850
CKV_AWS_144 false negative after updating to AWS Provider 4.0 **Describe the issue** After updating our AWS Provider to ~>4.0, we started getting a failure on `CKV_AWS_144` in our bucket module, despite having a properly configured `aws_s3_bucket_lifecycle_configuration` block. **Examples** Sample code: ```hcl...
[ { "content": "from checkov.common.models.consts import ANY_VALUE\nfrom checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\nfrom checkov.common.models.enums import CheckCategories\n\n\nclass S3BucketReplicationConfiguration(BaseResourceValueCheck):\n def __init__(self):\...
[ { "content": null, "path": "checkov/terraform/checks/resource/aws/S3BucketReplicationConfiguration.py" } ]
diff --git a/checkov/terraform/checks/graph_checks/aws/S3BucketReplicationConfiguration.yaml b/checkov/terraform/checks/graph_checks/aws/S3BucketReplicationConfiguration.yaml new file mode 100644 index 0000000000..9646b9da66 --- /dev/null +++ b/checkov/terraform/checks/graph_checks/aws/S3BucketReplicationConfiguration....
tornadoweb__tornado-2277
Handle non-ascii in debug_msg After running my server on a staging server I've got following error: ``` UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte File "tornado/curl_httpclient.py", line 496, in _curl_debug debug_msg = native_str(debug_msg) File "tornado/esca...
[ { "content": "#\n# Copyright 2009 Facebook\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "#\n# Copyright 2009 Facebook\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# 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/tornado/curl_httpclient.py b/tornado/curl_httpclient.py index 1523fdcba6..54fc5b36da 100644 --- a/tornado/curl_httpclient.py +++ b/tornado/curl_httpclient.py @@ -499,10 +499,11 @@ def _curl_header_callback(self, headers, header_callback, header_line): def _curl_debug(self, debug_type, debug_msg): ...
qutebrowser__qutebrowser-3370
window.title_format protocol field Couldn't find anything about this, so I'm trying an issue. Would it be possible/easy to implement a {protocol} field or something like it for window.title_format so that you could include "http(s)://" (and other protocols)? The reason I'm asking is that I'm using KeepassXC and the ...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2017 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-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/config/configdata.yml b/qutebrowser/config/configdata.yml index 2cae54993d6..d96718d786d 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -1300,6 +1300,7 @@ tabs.title.format: - host - private - current_url + - protocol non...
ocadotechnology__codeforlife-portal-676
Add handle_turn video to the KS3 materials page
[ { "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 6da27d1b99..83b4bb8ff7 100644 --- a/portal/templates/portal/teach/materials.html +++ b/portal/templates/portal/teach/materials.html @@ -64,7 +64,7 @@ <h4>Upper Key Stage 2</h4> </div> ...
chainer__chainer-2143
Stop using ABC in Serializer AbstractSerializer is currently written as an abstract base class. I don't think it is needed to support ABC.
[ { "content": "import abc\n\nimport six\n\n\n@six.add_metaclass(abc.ABCMeta)\nclass AbstractSerializer(object):\n\n \"\"\"Abstract base class of all serializers and deserializers.\"\"\"\n\n @abc.abstractmethod\n def __getitem__(self, key):\n \"\"\"Gets a child serializer.\n\n This operator...
[ { "content": "class AbstractSerializer(object):\n\n \"\"\"Abstract base class of all serializers and deserializers.\"\"\"\n\n def __getitem__(self, key):\n \"\"\"Gets a child serializer.\n\n This operator creates a _child_ serializer represented by the given\n key.\n\n Args:\n ...
diff --git a/chainer/serializer.py b/chainer/serializer.py index f383c8c7bee6..79aa07470576 100644 --- a/chainer/serializer.py +++ b/chainer/serializer.py @@ -1,14 +1,7 @@ -import abc - -import six - - -@six.add_metaclass(abc.ABCMeta) class AbstractSerializer(object): """Abstract base class of all serializers a...
PrefectHQ__prefect-4014
Prefect agent continues to run but doesn't register itself in server This portion of the code is encountered when trying to register a new agent to the server, both running in a GKE cluster. https://github.com/PrefectHQ/prefect/blob/4971eca9fbacf0db2e8e1e65691f26ce026160ae/src/prefect/agent/agent.py#L229 What seems...
[ { "content": "import functools\nimport logging\nimport math\nimport os\nimport signal\nimport sys\nimport threading\nimport time\nfrom concurrent.futures import Future, ThreadPoolExecutor\nfrom contextlib import contextmanager\nfrom typing import Any, Generator, Iterable, Set, Optional, cast, Type\nfrom urllib....
[ { "content": "import functools\nimport logging\nimport math\nimport os\nimport signal\nimport sys\nimport threading\nimport time\nfrom concurrent.futures import Future, ThreadPoolExecutor\nfrom contextlib import contextmanager\nfrom typing import Any, Generator, Iterable, Set, Optional, cast, Type\nfrom urllib....
diff --git a/changes/issue3972.yaml b/changes/issue3972.yaml new file mode 100644 index 000000000000..c23314ffcb75 --- /dev/null +++ b/changes/issue3972.yaml @@ -0,0 +1,2 @@ +fix: + - "Fix Agent registration possibly skipping on server connection issues - [#3972](https://github.com/PrefectHQ/prefect/issues/3972)" diff...
Kinto__kinto-1245
JSON validation crash on missing array minItems property ``` File "/home/ubuntu/venvs/kinto/local/lib/python3.5/site-packages/pyramid/viewderivers.py", line 147, in _requestonly_view response = view(request) File "/home/ubuntu/venvs/kinto/local/lib/python3.5/site-packages/cornice/service.py", line 491, in wr...
[ { "content": "import copy\n\nimport jsonschema\nfrom kinto.core import resource, utils\nfrom kinto.core.errors import raise_invalid\nfrom jsonschema import exceptions as jsonschema_exceptions\nfrom pyramid.security import Authenticated\nfrom pyramid.settings import asbool\n\nfrom kinto.views import object_exist...
[ { "content": "import copy\n\nimport jsonschema\nfrom kinto.core import resource, utils\nfrom kinto.core.errors import raise_invalid\nfrom jsonschema import exceptions as jsonschema_exceptions\nfrom pyramid.security import Authenticated\nfrom pyramid.settings import asbool\n\nfrom kinto.views import object_exist...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index fc3fb497f..7fad26de5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -21,6 +21,7 @@ This document describes changes between each past release. - Fix removal of timestamps when parent object is deleted (fixes #1233) - Do not allow to reuse deletion tokens (fixes #1171...
wright-group__WrightTools-1027
Zero >>> wt.units.convert(0, "wn", "nm") ZeroDivisionError: division by zero >>> wt.units.convert(0, "nm", "wn") ZeroDivisionError: division by zero Should return inf
[ { "content": "\"\"\"Unit and label handling in WrightTools.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport warnings\n\nimport pint\n\n\n# --- define --------------------------------------------------------------------------------------\...
[ { "content": "\"\"\"Unit and label handling in WrightTools.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport warnings\n\nimport pint\n\n\n# --- define --------------------------------------------------------------------------------------\...
diff --git a/CHANGELOG.md b/CHANGELOG.md index b1c2e998..8849e254 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). - `artists.create_figure`: kwarg `margin` allows unique margins on all sides ### Fixed +- ZeroDivisionError when conv...
mne-tools__mne-python-5978
raw.get_data() should accept int64 When loading a file to `RawArray`, the `get_data()` command does only accept `int32`, but should accept all `ints`, including `int64`, as this is the standard `dtype` for many numpy functions (e.g. `np.argmax`). It's a small change, I'll propose it.
[ { "content": "# -*- coding: utf-8 -*-\n# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>\n# Matti Hamalainen <msh@nmr.mgh.harvard.edu>\n# Martin Luessi <mluessi@nmr.mgh.harvard.edu>\n#\n# License: BSD (3-clause)\n\nfrom copy import deepcopy\nimport re\n\nimport numpy as n...
[ { "content": "# -*- coding: utf-8 -*-\n# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>\n# Matti Hamalainen <msh@nmr.mgh.harvard.edu>\n# Martin Luessi <mluessi@nmr.mgh.harvard.edu>\n#\n# License: BSD (3-clause)\n\nfrom copy import deepcopy\nimport re\n\nimport numpy as n...
diff --git a/mne/io/pick.py b/mne/io/pick.py index 38824ae9c3f..e8a8a406e83 100644 --- a/mne/io/pick.py +++ b/mne/io/pick.py @@ -829,9 +829,10 @@ def _picks_to_idx(info, picks, none='data', exclude='bads', allow_empty=False, raise ValueError('picks must be 1D, got %sD' % (picks.ndim,)) if picks.dtype.char...
ansible-collections__amazon.aws-1440
cloudwatch_metric_alarm - Existing alarms always report 'changed' even when no changes have been made ### Summary When running CloudWatch metric alarm playbooks, existing alarms always report 'changed' even when no changes have been made to the alarm settings/props. After digging into the *cloudwatch_metric_alarm* ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: Contributors to the Ansible project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nDOCUMENTATION = r\"\"\"\nmodule: cloudwatch_metric_alarm\nshort_description: \"Create/update or delete AWS...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: Contributors to the Ansible project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nDOCUMENTATION = r\"\"\"\nmodule: cloudwatch_metric_alarm\nshort_description: \"Create/update or delete AWS...
diff --git a/changelogs/fragments/1440-cloudwatch_metric_alarm-fix-change-detection.yml b/changelogs/fragments/1440-cloudwatch_metric_alarm-fix-change-detection.yml new file mode 100644 index 00000000000..0cbde555d32 --- /dev/null +++ b/changelogs/fragments/1440-cloudwatch_metric_alarm-fix-change-detection.yml @@ -0,0 ...
apache__airflow-27323
Handle TODO: .first() is not None can be changed to .scalar() ### Body The TODO part of: https://github.com/apache/airflow/blob/d67ac5932dabbf06ae733fc57b48491a8029b8c2/airflow/models/serialized_dag.py#L156-L158 can now be addressed since we are on sqlalchemy 1.4+ and https://github.com/sqlalchemy/sqlalchemy/issue...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
diff --git a/airflow/models/serialized_dag.py b/airflow/models/serialized_dag.py index 7ac98e7b8c7c3..9c3c96871c637 100644 --- a/airflow/models/serialized_dag.py +++ b/airflow/models/serialized_dag.py @@ -149,12 +149,8 @@ def write_dag( (timezone.utcnow() - timedelta(seconds=min_update_interval...
activeloopai__deeplake-1994
[BUG] Can't write objects to JSON v3.0.14 ```python import pickle t = ds.create_tensor(f"t/group/f", htype="json", chunk_compression="lz4") t.append(pickle.dumps("test")) # pass any pickled object into append gets error ``` ``` ValueError: Circular reference detected ``` passing strings and such into th...
[ { "content": "from typing import Any, Dict, List, Optional, Tuple, Union\nimport numpy as np\nfrom numpy import ndarray\nimport json\nimport base64\nfrom deeplake.core.sample import Sample # type: ignore\n\nSchema = Any\n\n\nscalars = [\"int\", \"float\", \"bool\", \"str\", \"list\", \"dict\", \"ndarray\", \"S...
[ { "content": "from typing import Any, Dict, List, Optional, Tuple, Union\nimport numpy as np\nfrom numpy import ndarray\nimport json\nimport base64\nfrom deeplake.core.sample import Sample # type: ignore\n\nSchema = Any\n\n\nscalars = [\"int\", \"float\", \"bool\", \"str\", \"list\", \"dict\", \"ndarray\", \"S...
diff --git a/deeplake/api/tests/test_json.py b/deeplake/api/tests/test_json.py index 409ef8a84f..1895550974 100644 --- a/deeplake/api/tests/test_json.py +++ b/deeplake/api/tests/test_json.py @@ -69,6 +69,33 @@ def test_json_with_deeplake_sample(memory_ds, compressed_image_paths): assert ds.json[i].data()["valu...
wemake-services__wemake-django-template-1338
Support python3.8 Since `python3.9` is released, now it is time to move to `3.8`
[ { "content": "\n\"\"\"\nDjango settings for server project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/2.2/topics/settings/\n\nFor the full list of settings and their config, see\nhttps://docs.djangoproject.com/en/2.2/ref/settings/\n\"\"\"\n\nfrom typing import Dict, List, Tupl...
[ { "content": "\n\"\"\"\nDjango settings for server project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/2.2/topics/settings/\n\nFor the full list of settings and their config, see\nhttps://docs.djangoproject.com/en/2.2/ref/settings/\n\"\"\"\n\nfrom typing import Dict, List, Tupl...
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 66756f971..efaebde20 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7] + python-version: [3.8] st...
deis__deis-3935
Sphinx code autodocs are broken The build environment at ReadTheDocs.org has changed again, and the python auto-generated docs are blank because `python-ldap` can't be built: ``` console running build_ext building '_ldap' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/Modules x86_6...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# deis documentation build configuration file, created by\n# sphinx-quickstart on Fri Jul 26 12:12:00 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\n# ...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# deis documentation build configuration file, created by\n# sphinx-quickstart on Fri Jul 26 12:12:00 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\n# ...
diff --git a/docs/conf.py b/docs/conf.py index e369048d80..18361e8e01 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,6 +14,17 @@ import os import sys +from mock import MagicMock + +# Mock out modules that can't be installed at ReadTheDocs.org. +class MockModule(MagicMock): + @classmethod + def __getattr_...
readthedocs__readthedocs.org-11073
Drop `-E` from Sphinx call A few years ago (see #6966), there was some effort to speed up subsequent builds with different builders by sharing the "doctree" directory. A remnant of this is still visible since the Sphinx arguments contain `-d _build/doctrees`. However, I recently noticed that the Sphinx command no...
[ { "content": "\"\"\"\nSphinx_ backend for building docs.\n\n.. _Sphinx: http://www.sphinx-doc.org/\n\"\"\"\n\nimport itertools\nimport os\nfrom glob import glob\nfrom pathlib import Path\n\nimport structlog\nfrom django.conf import settings\nfrom django.template import loader as template_loader\nfrom django.url...
[ { "content": "\"\"\"\nSphinx_ backend for building docs.\n\n.. _Sphinx: http://www.sphinx-doc.org/\n\"\"\"\n\nimport itertools\nimport os\nfrom glob import glob\nfrom pathlib import Path\n\nimport structlog\nfrom django.conf import settings\nfrom django.template import loader as template_loader\nfrom django.url...
diff --git a/readthedocs/doc_builder/backends/sphinx.py b/readthedocs/doc_builder/backends/sphinx.py index 7997e018b2f..8872a1823ab 100644 --- a/readthedocs/doc_builder/backends/sphinx.py +++ b/readthedocs/doc_builder/backends/sphinx.py @@ -295,7 +295,6 @@ def build(self): build_command = [ *self....
certbot__certbot-4012
Remove extra space introduced by #3994 An extra space was introduced in the error message in #3994. It should be removed. Remove extra space introduced by #3994 An extra space was introduced in the error message in #3994. It should be removed. Error message for empty domain name is incorrect In a recent commit th...
[ { "content": "\"\"\"Utilities for all Certbot.\"\"\"\nimport argparse\nimport collections\n# distutils.version under virtualenv confuses pylint\n# For more info, see: https://github.com/PyCQA/pylint/issues/73\nimport distutils.version # pylint: disable=import-error,no-name-in-module\nimport errno\nimport loggi...
[ { "content": "\"\"\"Utilities for all Certbot.\"\"\"\nimport argparse\nimport collections\n# distutils.version under virtualenv confuses pylint\n# For more info, see: https://github.com/PyCQA/pylint/issues/73\nimport distutils.version # pylint: disable=import-error,no-name-in-module\nimport errno\nimport loggi...
diff --git a/certbot/util.py b/certbot/util.py index 1b4877530a8..e8532fc6d89 100644 --- a/certbot/util.py +++ b/certbot/util.py @@ -478,9 +478,9 @@ def enforce_domain_sanity(domain): # FQDN checks according to RFC 2181: domain name should be less than 255 # octets (inclusive). And each label is 1 - 63 octets...
ros__ros_comm-187
roslaunch --files prints error if multiple anon nodes have same id When running: ``` roslaunch --files package_name launch_file.launch ``` I get the following error: ``` roslaunch file contains multiple nodes named [/$(anon foo)]. Please check all <node> 'name' attributes to make sure they are unique. Also check tha...
[ { "content": "# Software License Agreement (BSD License)\n#\n# Copyright (c) 2009, Willow Garage, Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# * Redistributions of so...
[ { "content": "# Software License Agreement (BSD License)\n#\n# Copyright (c) 2009, Willow Garage, Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# * Redistributions of so...
diff --git a/tools/roslaunch/src/roslaunch/rlutil.py b/tools/roslaunch/src/roslaunch/rlutil.py index 84f04d4590..ed3497c16d 100644 --- a/tools/roslaunch/src/roslaunch/rlutil.py +++ b/tools/roslaunch/src/roslaunch/rlutil.py @@ -235,7 +235,7 @@ def print_file_list(roslaunch_files): from roslaunch.config import load_...
ethereum__web3.py-2582
Add 'account' to AsyncEth? Hey 👋 Is there a reason `account` is not available in `AsyncEth`? So far, I had to create a non-async w3 object to sign transactions. However, I just found out that when I subclass AsyncEth like this ```python class CustomAsyncEth(AsyncEth): account = Account() ``` signing transa...
[ { "content": "import asyncio\nfrom typing import (\n Any,\n Awaitable,\n Callable,\n List,\n NoReturn,\n Optional,\n Sequence,\n Tuple,\n Type,\n Union,\n cast,\n overload,\n)\nimport warnings\n\nfrom eth_account import (\n Account,\n)\nfrom eth_typing import (\n Addres...
[ { "content": "import asyncio\nfrom typing import (\n Any,\n Awaitable,\n Callable,\n List,\n NoReturn,\n Optional,\n Sequence,\n Tuple,\n Type,\n Union,\n cast,\n overload,\n)\nimport warnings\n\nfrom eth_account import (\n Account,\n)\nfrom eth_typing import (\n Addres...
diff --git a/docs/providers.rst b/docs/providers.rst index 2b0b7a2069..293b9097b2 100644 --- a/docs/providers.rst +++ b/docs/providers.rst @@ -411,6 +411,7 @@ Supported Methods Eth *** +- :class:`web3.eth.account <eth_account.account.Account>` - :meth:`web3.eth.accounts <web3.eth.Eth.accounts>` - :meth:`web3.eth....
jazzband__django-debug-toolbar-1079
500 Error on Explaining Postgres query with JSONB ![screen shot 2017-10-27 at 8 52 58 am](https://user-images.githubusercontent.com/2790092/32104864-41ea898e-baf4-11e7-8aa7-22c990592a1c.png) query: ```SQL SELECT (data->'game'->'id') AS "game_id", (data->'game'->'date') AS "game_date", (data->'game'->'workflowSta...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nimport datetime\nimport json\nfrom threading import local\nfrom time import time\n\nfrom django.utils import six\nfrom django.utils.encoding import force_text\n\nfrom debug_toolbar import settings as dt_settings\nfrom debug_toolbar.utils ...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nimport datetime\nimport json\nfrom threading import local\nfrom time import time\n\nfrom django.utils import six\nfrom django.utils.encoding import force_text\n\nfrom debug_toolbar import settings as dt_settings\nfrom debug_toolbar.utils ...
diff --git a/debug_toolbar/panels/sql/tracking.py b/debug_toolbar/panels/sql/tracking.py index 7d07e444e..45201c9c9 100644 --- a/debug_toolbar/panels/sql/tracking.py +++ b/debug_toolbar/panels/sql/tracking.py @@ -96,6 +96,14 @@ def _quote_params(self, params): return [self._quote_expr(p) for p in params] ...
plotly__plotly.py-1411
Annotated heatmaps: font colour blends with the colour of the square. When using the default color scheme, the font color contrasts normally with the fill of the each heatmap square. But if you try other standard color schemes with `reversescale=True`, when values are close to zero, the colors will merge. I think this ...
[ { "content": "from __future__ import absolute_import\n\nfrom plotly import exceptions, optional_imports\nimport plotly.colors as clrs\nfrom plotly.figure_factory import utils\nfrom plotly.graph_objs import graph_objs\nfrom plotly.validators.heatmap import ColorscaleValidator\n\n# Optional imports, may be None f...
[ { "content": "from __future__ import absolute_import, division\n\nfrom plotly import exceptions, optional_imports\nimport plotly.colors as clrs\nfrom plotly.figure_factory import utils\nfrom plotly.graph_objs import graph_objs\nfrom plotly.validators.heatmap import ColorscaleValidator\n\n# Optional imports, may...
diff --git a/plotly/figure_factory/_annotated_heatmap.py b/plotly/figure_factory/_annotated_heatmap.py index f40d7f26ba9..605b7d825e9 100644 --- a/plotly/figure_factory/_annotated_heatmap.py +++ b/plotly/figure_factory/_annotated_heatmap.py @@ -1,4 +1,4 @@ -from __future__ import absolute_import +from __future__ import...
python-poetry__poetry-7405
Infinite loop on add conflict <!-- All the below information must be provided for others to understand and help with your issue. --> - **Poetry version**: Poetry (version 1.3.2) - **Python version**: 3.9.11 - **OS version and name**: macOS 13.0.1 - **pyproject.toml**: [Link](https://gist.github.com/JuliusDegesys/19...
[ { "content": "from __future__ import annotations\n\nimport functools\nimport time\n\nfrom typing import TYPE_CHECKING\n\nfrom poetry.core.packages.dependency import Dependency\n\nfrom poetry.mixology.failure import SolveFailure\nfrom poetry.mixology.incompatibility import Incompatibility\nfrom poetry.mixology.i...
[ { "content": "from __future__ import annotations\n\nimport functools\nimport time\n\nfrom typing import TYPE_CHECKING\n\nfrom poetry.core.packages.dependency import Dependency\n\nfrom poetry.mixology.failure import SolveFailure\nfrom poetry.mixology.incompatibility import Incompatibility\nfrom poetry.mixology.i...
diff --git a/src/poetry/mixology/version_solver.py b/src/poetry/mixology/version_solver.py index 6c66dc4c5e9..04ba762d963 100644 --- a/src/poetry/mixology/version_solver.py +++ b/src/poetry/mixology/version_solver.py @@ -331,7 +331,9 @@ def _resolve_conflict(self, incompatibility: Incompatibility) -> Incompatibility ...
Cloud-CV__EvalAI-1204
Remove pagination from challenge phase split list API ## Observed behavior The Challenge Phase Split list API endpoint currently returns the challenge phase splits in a paginated manner. But while showing the leaderboard, we need the list of all the challenge phase splits requesting once. ## Objective Remove ...
[ { "content": "import csv\nimport logging\nimport random\nimport requests\nimport shutil\nimport string\nimport tempfile\nimport yaml\nimport zipfile\n\nfrom os.path import basename, isfile, join\n\nfrom django.core.files.base import ContentFile\nfrom django.db import transaction\nfrom django.http import HttpRes...
[ { "content": "import csv\nimport logging\nimport random\nimport requests\nimport shutil\nimport string\nimport tempfile\nimport yaml\nimport zipfile\n\nfrom os.path import basename, isfile, join\n\nfrom django.core.files.base import ContentFile\nfrom django.db import transaction\nfrom django.http import HttpRes...
diff --git a/apps/challenges/views.py b/apps/challenges/views.py index 3070457a46..091f016d30 100644 --- a/apps/challenges/views.py +++ b/apps/challenges/views.py @@ -367,10 +367,9 @@ def challenge_phase_split_list(request, challenge_pk): return Response(response_data, status=status.HTTP_406_NOT_ACCEPTABLE) ...
huggingface__diffusers-8321
Depth pipeline gives error at fp16 ### Describe the bug When using the StableDiffusionDepth2ImgPipeline, I get ``RuntimeError: Input type (MPSFloatType) and weight type (MPSHalfType) should be the same`` if I'm using fp16 with MPS on my M2. I've already figured out a fix: https://github.com/jonahclarsen/diffusers...
[ { "content": "# Copyright 2024 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
[ { "content": "# Copyright 2024 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
diff --git a/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py b/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py index 17d4ee3a7f7c..8e1e3ab31912 100644 --- a/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py +++ b/src/diffusers...
open-telemetry__opentelemetry-python-3645
Resource Detectors produce blank Exception() after 5 seconds **Describe your environment** Resource Detector only get [5 seconds by default](https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py#L375) to run. However, instead of ending the proces...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f359c6b633f..b46a17246ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +- Improve Resource Detector timeout messaging + ([#3645](https://github.com/open-tele...
open-mmlab__mmocr-579
MMOCR doesn't detect and recognize chinese characters. I tried to detect and recognise Chinese characters, but it doesn't work. The output is just English characters. I tried all combinations of supported detection models and recognition models. In the paper, they describe the MMOCR can work on two languages: Eng + C...
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport copy\nimport os\nimport warnings\nfrom argparse import ArgumentParser, Namespace\nfrom pathlib import Path\n\nimport mmcv\nimport numpy as np\nimport torch\nfrom mmcv.image.misc import tensor2imgs\nfrom mmcv.runner import load_checkpoint\nfro...
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport copy\nimport os\nimport warnings\nfrom argparse import ArgumentParser, Namespace\nfrom pathlib import Path\n\nimport mmcv\nimport numpy as np\nimport torch\nfrom mmcv.image.misc import tensor2imgs\nfrom mmcv.runner import load_checkpoint\nfro...
diff --git a/demo/README.md b/demo/README.md index cb5a1ef94..bad1e0bef 100644 --- a/demo/README.md +++ b/demo/README.md @@ -70,7 +70,12 @@ results = ocr.readtext(%INPUT_FOLDER_PATH%, output = %OUTPUT_FOLDER_PATH%, batch ```shell python mmocr/utils/ocr.py demo/demo_text_ocr.jpg --print-result --imshow ``` -*Note: Wh...
nonebot__nonebot2-1975
Bug: 命令强制空格无法匹配无参数消息 我开#1743 这个issue的初衷是希望做到可以匹配 "#cmd arg" 和 "#cmd",但不匹配 "#cmdarg" 目前force_whitespace参数设置为True的时候,"#cmd" 就无法匹配了。 个人觉得,当cmd后面没有跟arg的时候,即使force_whitespace设置为True,也可以匹配比较好(? _Originally posted by @BiologyHazard in https://github.com/nonebot/nonebot2/issues/1743#issuecomment-1528942065_
[ { "content": "\"\"\"本模块是 {ref}`nonebot.matcher.Matcher.rule` 的类型定义。\n\n每个事件响应器 {ref}`nonebot.matcher.Matcher` 拥有一个匹配规则 {ref}`nonebot.rule.Rule`\n其中是 `RuleChecker` 的集合,只有当所有 `RuleChecker` 检查结果为 `True` 时继续运行。\n\nFrontMatter:\n sidebar_position: 5\n description: nonebot.rule 模块\n\"\"\"\n\nimport re\nimport s...
[ { "content": "\"\"\"本模块是 {ref}`nonebot.matcher.Matcher.rule` 的类型定义。\n\n每个事件响应器 {ref}`nonebot.matcher.Matcher` 拥有一个匹配规则 {ref}`nonebot.rule.Rule`\n其中是 `RuleChecker` 的集合,只有当所有 `RuleChecker` 检查结果为 `True` 时继续运行。\n\nFrontMatter:\n sidebar_position: 5\n description: nonebot.rule 模块\n\"\"\"\n\nimport re\nimport s...
diff --git a/nonebot/rule.py b/nonebot/rule.py index 0d534dd208c4..8974e7ce9883 100644 --- a/nonebot/rule.py +++ b/nonebot/rule.py @@ -376,11 +376,12 @@ def __hash__(self) -> int: async def __call__( self, cmd: Optional[Tuple[str, ...]] = Command(), + cmd_arg: Optional[Message] = CommandAr...
qutebrowser__qutebrowser-2479
Crash with invalid PAC file With this PAC file: ```js function FindProxyForURL(url, host) { return 'SOCKS5 172.26.133.85:1080'; } ``` we get: ``` 13:29:34 ERROR: Error in PAC resolution: Unknown proxy type: SOCKS5. Traceback (most recent call last): File "/home/florian/proj/qutebrowser/git/qutebrows...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as p...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as p...
diff --git a/qutebrowser/browser/network/pac.py b/qutebrowser/browser/network/pac.py index c19b098807f..63220d9b5bc 100644 --- a/qutebrowser/browser/network/pac.py +++ b/qutebrowser/browser/network/pac.py @@ -155,7 +155,7 @@ def _parse_proxy_entry(proxy_str): raise ParseProxyError("Invalid number of pa...
mozilla__bugbug-125
Add number of blocked bugs as a feature
[ { "content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport re\nfrom datetime import datetime\nfrom datetime import timezo...
[ { "content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport re\nfrom datetime import datetime\nfrom datetime import timezo...
diff --git a/bugbug/bug_features.py b/bugbug/bug_features.py index 96771d94a1..3163c1b509 100644 --- a/bugbug/bug_features.py +++ b/bugbug/bug_features.py @@ -173,6 +173,11 @@ def __call__(self, bug): return sum((commit['types'] for commit in bug['commits']), []) +class blocked_bugs_number(object): + de...