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
pre-commit__pre-commit-1092
Globally disable color? I cannot find the way to globally disable color in the pre-commit output. Setting only the background color to green and not changing the foreground color does not work for my terminal with the following settings in the Xt resources (as set in the `${HOME}/.Xresources` file): ````properties ...
[ { "content": "from __future__ import unicode_literals\n\nimport os\nimport sys\n\nterminal_supports_color = True\nif os.name == 'nt': # pragma: no cover (windows)\n from pre_commit.color_windows import enable_virtual_terminal_processing\n try:\n enable_virtual_terminal_processing()\n except Win...
[ { "content": "from __future__ import unicode_literals\n\nimport os\nimport sys\n\nterminal_supports_color = True\nif os.name == 'nt': # pragma: no cover (windows)\n from pre_commit.color_windows import enable_virtual_terminal_processing\n try:\n enable_virtual_terminal_processing()\n except Win...
diff --git a/pre_commit/color.py b/pre_commit/color.py index c785e2c9f..2ede410a5 100644 --- a/pre_commit/color.py +++ b/pre_commit/color.py @@ -48,6 +48,9 @@ def use_color(setting): if setting not in COLOR_CHOICES: raise InvalidColorSetting(setting) + if os.environ.get('NO_COLOR'): + return F...
DistrictDataLabs__yellowbrick-545
Joint Plot Viz has messed up (overlapping labels on) axes **Describe the bug** If you look at the x and y axis on http://www.scikit-yb.org/en/latest/api/features/scatter.html#joint-plot-visualization you will see that the labels are overlapping. **To Reproduce** Create a joint plot as shown in the docs ...
[ { "content": "import pandas as pd\nimport matplotlib.pyplot as plt\n\nfrom yellowbrick.features import JointPlotVisualizer\n\n\ndef jointplot(X, y, outpath, **kwargs):\n # Create a new figure and axes\n fig = plt.figure()\n ax = fig.add_subplot(111)\n\n # Create the visualizer\n visualizer = Join...
[ { "content": "import pandas as pd\nimport matplotlib.pyplot as plt\n\nfrom yellowbrick.features import JointPlotVisualizer\n\n\ndef jointplot(X, y, outpath, **kwargs):\n # Create the visualizer\n visualizer = JointPlotVisualizer(**kwargs)\n visualizer.fit(X, y)\n visualizer.transform(X)\n\n # Sav...
diff --git a/docs/api/features/images/jointplot.png b/docs/api/features/images/jointplot.png index dc9bc4954..89e116936 100644 Binary files a/docs/api/features/images/jointplot.png and b/docs/api/features/images/jointplot.png differ diff --git a/docs/api/features/images/jointplot_hex.png b/docs/api/features/images/join...
fonttools__fonttools-3526
varLib.interpolatable --json with scipy installed: Object of type int64 is not JSON serializable Hello. It seems that, the moment I install `scipy` into my project, `varLib.interpolatable` starts using it, and then fails outputting JSON with: ```shell TypeError: ('Object of type int64 is not JSON serializable') ...
[ { "content": "from fontTools.ttLib.ttGlyphSet import LerpGlyphSet\nfrom fontTools.pens.basePen import AbstractPen, BasePen, DecomposingPen\nfrom fontTools.pens.pointPen import AbstractPointPen, SegmentToPointPen\nfrom fontTools.pens.recordingPen import RecordingPen, DecomposingRecordingPen\nfrom fontTools.misc....
[ { "content": "from fontTools.ttLib.ttGlyphSet import LerpGlyphSet\nfrom fontTools.pens.basePen import AbstractPen, BasePen, DecomposingPen\nfrom fontTools.pens.pointPen import AbstractPointPen, SegmentToPointPen\nfrom fontTools.pens.recordingPen import RecordingPen, DecomposingRecordingPen\nfrom fontTools.misc....
diff --git a/Lib/fontTools/varLib/interpolatableHelpers.py b/Lib/fontTools/varLib/interpolatableHelpers.py index 2a3540fff2..f71b32afd1 100644 --- a/Lib/fontTools/varLib/interpolatableHelpers.py +++ b/Lib/fontTools/varLib/interpolatableHelpers.py @@ -143,6 +143,9 @@ def min_cost_perfect_bipartite_matching_scipy(G): ...
Lightning-AI__pytorch-lightning-1666
Call load_from_checkpoint when trainer load state ## 🚀 Feature When use `Trainer` class to load the model state instead of using `load_from_checkpoint`, the hook `on_load_checkpoint` won't be called. It's better to let trainer call `load_from_checkpoint` instead of directly call `model.load_state_dict`, thus `on_load...
[ { "content": "\"\"\"\nLightning can automate saving and loading checkpoints\n=====================================================\n\nCheckpointing is enabled by default to the current working directory.\nTo change the checkpoint path pass in::\n\n Trainer(default_root_dir='/your/path/to/save/checkpoints')\n...
[ { "content": "\"\"\"\nLightning can automate saving and loading checkpoints\n=====================================================\n\nCheckpointing is enabled by default to the current working directory.\nTo change the checkpoint path pass in::\n\n Trainer(default_root_dir='/your/path/to/save/checkpoints')\n...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9750c6566b769..8431c55c78c14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Fixed - Fixed ModelCheckpoint not None checking filepath ([1654](https://github.com/PyTorchLi...
napari__napari-6634
Change name of clims From @jni in #172 > Side note, clims needs a name change Can you elaborate here / do you have ideas on what name should be? Expand button # Description This PR resolves #321 by adding a button to explicitly expand the layer properties. As requested by @jni it preserves the option to doublecl...
[ { "content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup -------------------------------------------...
[ { "content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup -------------------------------------------...
diff --git a/docs/_toc.yml b/docs/_toc.yml index f9b4e8b080e..2c1fcdef773 100644 --- a/docs/_toc.yml +++ b/docs/_toc.yml @@ -130,6 +130,7 @@ subtrees: - file: naps/6-contributable-menus - file: naps/7-key-binding-dispatch - file: naps/8-telemetry + - file: naps/9-multiple-canva...
piskvorky__gensim-1306
Passing `sentences=` to Doc2Vec() gives AttributeError: 'Doc2Vec' object has no attribute 'docvecs' Hi to all, as stated in the issue's title, when I create the Doc2Vec object I receive the error _'Doc2Vec' object has no attribute 'docvecs'_ using this code: ``` labeled_docs = [gensim.models.doc2vec.TaggedDocument...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\n\"\"\"\nDeep learning via the distributed memory and distributed bag of words models from\n[1]_, using either...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\n\"\"\"\nDeep learning via the distributed memory and distributed bag of words models from\n[1]_, using either...
diff --git a/gensim/models/doc2vec.py b/gensim/models/doc2vec.py index e57945ce67..afe1c2ef7b 100644 --- a/gensim/models/doc2vec.py +++ b/gensim/models/doc2vec.py @@ -614,6 +614,9 @@ def __init__(self, documents=None, dm_mean=None, of the model. """ + if 'sentences' in kwargs: + ra...
python-poetry__poetry-509
"Unsupported operand types" on poetry develop <!-- Hi there! Thank you for discovering and submitting an issue. Before you submit this; let's make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill these first. --> <!-- Checked che...
[ { "content": "import json\nimport os\nimport platform\nimport subprocess\nimport sys\nimport sysconfig\nimport warnings\n\nfrom contextlib import contextmanager\nfrom subprocess import CalledProcessError\nfrom typing import Any\nfrom typing import Dict\nfrom typing import Optional\nfrom typing import Tuple\n\nf...
[ { "content": "import json\nimport os\nimport platform\nimport subprocess\nimport sys\nimport sysconfig\nimport warnings\n\nfrom contextlib import contextmanager\nfrom subprocess import CalledProcessError\nfrom typing import Any\nfrom typing import Dict\nfrom typing import Optional\nfrom typing import Tuple\n\nf...
diff --git a/poetry/utils/env.py b/poetry/utils/env.py index c46fdefa67a..8859fdf99a8 100644 --- a/poetry/utils/env.py +++ b/poetry/utils/env.py @@ -114,7 +114,7 @@ def get(cls, reload=False, cwd=None): # type: (IO, bool) -> Env prefix = Path(os.environ["VIRTUAL_ENV"]) base_prefix = None ...
pallets__werkzeug-1939
[current default branch] werkzeug always raises a warning on import ```console $ python -Werror -c 'import werkzeug' Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/werkzeug/src/werkzeug/__init__.py", line 2, in <module> from .test import Client File "/tmp/werkzeug/src...
[ { "content": "import codecs\nimport io\nimport mimetypes\nimport os\nimport pathlib\nimport pkgutil\nimport re\nimport sys\nimport unicodedata\nimport warnings\nfrom html.entities import name2codepoint\nfrom time import time\nfrom typing import Any\nfrom typing import Callable\nfrom typing import Dict\nfrom typ...
[ { "content": "import codecs\nimport io\nimport mimetypes\nimport os\nimport pathlib\nimport pkgutil\nimport re\nimport sys\nimport unicodedata\nimport warnings\nfrom html.entities import name2codepoint\nfrom time import time\nfrom typing import Any\nfrom typing import Callable\nfrom typing import Dict\nfrom typ...
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 6fbd29664..f2e0c0fd1 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -22,7 +22,7 @@ jobs: - {name: 'PyPy', python: pypy3, os: ubuntu-latest, tox: pypy3} - {name: Style, python: '3.8', os:...
ansible__molecule-135
Verbose in molecule.yml should handle bool True https://github.com/metacloud/molecule/blob/master/molecule/ansible_playbook.py#L104 ``` clearly string +bool isn't gonna work. And it will have error like Traceback (most recent call last): File "/Users/zochao/.virtualenvs/metamole/bin/molecule", line 10, in <module> sys...
[ { "content": "# Copyright (c) 2015 Cisco Systems\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, c...
[ { "content": "# Copyright (c) 2015 Cisco Systems\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, c...
diff --git a/docs/source/providers.rst b/docs/source/providers.rst index b175493d12..10b1472bd1 100644 --- a/docs/source/providers.rst +++ b/docs/source/providers.rst @@ -67,7 +67,7 @@ Simple Example ansible: playbook: playbook.yml sudo: True - verbose: True + verbose: vvvv ...
scikit-hep__pyhf-1138
Remove use of NumPy from JAX backend `jax.numpy` now supports `tolist` so this https://github.com/scikit-hep/pyhf/blob/0ed1b518bf0ea137b7d676dac52575a8473950de/src/pyhf/tensor/jax_backend.py#L180-L182 could instead be ```suggestion return jnp.asarray(tensor_in).tolist() ``` but this should pr...
[ { "content": "from jax.config import config\n\nconfig.update('jax_enable_x64', True)\n\nimport jax.numpy as jnp\nfrom jax.scipy.special import gammaln, xlogy\nfrom jax.scipy import special\nfrom jax.scipy.stats import norm\nimport numpy as np\nimport scipy.stats as osp_stats\nimport logging\n\nlog = logging.get...
[ { "content": "from jax.config import config\n\nconfig.update('jax_enable_x64', True)\n\nimport jax.numpy as jnp\nfrom jax.scipy.special import gammaln, xlogy\nfrom jax.scipy import special\nfrom jax.scipy.stats import norm\nimport numpy as np\nimport scipy.stats as osp_stats\nimport logging\n\nlog = logging.get...
diff --git a/src/pyhf/tensor/jax_backend.py b/src/pyhf/tensor/jax_backend.py index f6466357b2..0b183bc85e 100644 --- a/src/pyhf/tensor/jax_backend.py +++ b/src/pyhf/tensor/jax_backend.py @@ -179,8 +179,8 @@ def conditional(self, predicate, true_callable, false_callable): def tolist(self, tensor_in): try...
mozilla__bugbug-3801
Failure in defect_model.classify ``` Traceback (most recent call last): File "/usr/local/bin/bugbug-regressor-finder", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.10/site-packages/scripts/regressor_finder.py", line 651, in main regressor_finder.find_bug_fixing_commits() File "/...
[ { "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 itertools\nimport re\nimport sys\nfrom collections import defa...
[ { "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 itertools\nimport re\nimport sys\nfrom collections import defa...
diff --git a/bugbug/bug_features.py b/bugbug/bug_features.py index bc0b2c28bc..e8e2818717 100644 --- a/bugbug/bug_features.py +++ b/bugbug/bug_features.py @@ -733,7 +733,7 @@ def fit(self, x, y=None): def transform(self, bugs): results = [] - bugs_iter = bugs() + bugs_iter = iter(bugs()) ...
pypa__setuptools-2725
[BUG] win-arm64 platform is not detected ### setuptools version latest ### Python version any ### OS Windows ### Additional environment information Only relevant when `%VSCMD_ARG_TGT_ARCH%` is set to `arm64` (for example, in a configured build environment). ### Description For other values (`x86`, `x64`, `arm`...
[ { "content": "\"\"\"distutils.util\n\nMiscellaneous utility functions -- anything that doesn't fit into\none of the other *util.py modules.\n\"\"\"\n\nimport os\nimport re\nimport importlib.util\nimport string\nimport sys\nfrom distutils.errors import DistutilsPlatformError\nfrom distutils.dep_util import newer...
[ { "content": "\"\"\"distutils.util\n\nMiscellaneous utility functions -- anything that doesn't fit into\none of the other *util.py modules.\n\"\"\"\n\nimport os\nimport re\nimport importlib.util\nimport string\nimport sys\nfrom distutils.errors import DistutilsPlatformError\nfrom distutils.dep_util import newer...
diff --git a/changelog.d/2724.change.rst b/changelog.d/2724.change.rst new file mode 100644 index 0000000000..edbd2886f1 --- /dev/null +++ b/changelog.d/2724.change.rst @@ -0,0 +1 @@ +Added detection of Windows ARM64 build environments using the ``VSCMD_ARG_TGT_ARCH`` environment variable. \ No newline at end of file d...
google__flax-177
Error when JITting `Model.__call__` eg ```python import jax from flax import nn layer=nn.Dense.partial(features=1) key=jax.random.PRNGKey(0) x=jax.random.normal(key, (20, 2)) _,params=layer.init(key, x) layer_m=nn.Model(layer, params) jax.jit(layer_m)(x) ``` errors with ``` TypeError ...
[ { "content": "# Lint as: python3\n\n# Copyright 2020 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...
[ { "content": "# Lint as: python3\n\n# Copyright 2020 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...
diff --git a/flax/nn/base.py b/flax/nn/base.py index 186ea9234..eed49e352 100644 --- a/flax/nn/base.py +++ b/flax/nn/base.py @@ -919,7 +919,7 @@ def truncate_at(self, module_path): def __getattr__(self, name): value = getattr(self.module, name) - if issubclass(value, Module): + if inspect.isclass(value)...
netbox-community__netbox-8121
Markdown tables missing CSS style ### NetBox version v3.0.8 ### Python version 3.8 ### Steps to Reproduce 1. after upgrading to v3.0, a plugin that I wrote before which has render_markdown in its HTML page can not work properly. I would want to render a table by inputting ![Screenshot from 2021-12-17 18...
[ { "content": "import datetime\nimport decimal\nimport json\nimport re\nfrom typing import Dict, Any\n\nimport yaml\nfrom django import template\nfrom django.conf import settings\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.template.defaultfilters import date\nfrom django.urls import ...
[ { "content": "import datetime\nimport decimal\nimport json\nimport re\nfrom typing import Dict, Any\n\nimport yaml\nfrom django import template\nfrom django.conf import settings\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.template.defaultfilters import date\nfrom django.urls import ...
diff --git a/netbox/project-static/dist/netbox-dark.css b/netbox/project-static/dist/netbox-dark.css index 25017505e04..e711685bf40 100644 --- a/netbox/project-static/dist/netbox-dark.css +++ b/netbox/project-static/dist/netbox-dark.css @@ -1 +1 @@ -html[data-netbox-color-mode=dark] :root{--bs-blue: #0d6efd;--bs-indigo...
DistrictDataLabs__yellowbrick-1171
ax param ignored in feature_correlation quick method **Describe the bug** When using matplotlib subplots create 2 plots of feature correlations side by side, the ax parameter seems to be ignored and two images are created. ![image1](https://user-images.githubusercontent.com/3305726/109315893-cc35c400-7829-11eb-845...
[ { "content": "# yellowbrick.classifier.feature_correlation\n# Feature correlation to dependent variable visualizer.\n#\n# Author Zijie (ZJ) Poh\n# Created: Wed Jul 29 15:30:40 2018 -0700\n#\n# Copyright (C) 2018 The scikit-yb developers\n# For license information, see LICENSE.txt\n#\n# ID: feature_correlati...
[ { "content": "# yellowbrick.classifier.feature_correlation\n# Feature correlation to dependent variable visualizer.\n#\n# Author Zijie (ZJ) Poh\n# Created: Wed Jul 29 15:30:40 2018 -0700\n#\n# Copyright (C) 2018 The scikit-yb developers\n# For license information, see LICENSE.txt\n#\n# ID: feature_correlati...
diff --git a/yellowbrick/target/feature_correlation.py b/yellowbrick/target/feature_correlation.py index 0f122540a..260276afd 100644 --- a/yellowbrick/target/feature_correlation.py +++ b/yellowbrick/target/feature_correlation.py @@ -123,7 +123,7 @@ def __init__( color=None, **kwargs ): - s...
chainer__chainer-2852
Doc test fails at optimizer.py This issue is caused by, but not directly related to https://github.com/chainer/chainer/pull/2758. ``` : reading sources... [ 77%] reference/generated/chainer.optimizers.AdaDelta ...
[ { "content": "import collections\nimport copy\nimport warnings\n\nimport numpy\nimport six\n\nfrom chainer import cuda\nfrom chainer import link as link_module\nfrom chainer import serializer as serializer_module\nfrom chainer import variable\n\n\ndef _sum_sqnorm(arr):\n sq_sum = collections.defaultdict(floa...
[ { "content": "import collections\nimport copy\nimport warnings\n\nimport numpy\nimport six\n\nfrom chainer import cuda\nfrom chainer import link as link_module\nfrom chainer import serializer as serializer_module\nfrom chainer import variable\n\n\ndef _sum_sqnorm(arr):\n sq_sum = collections.defaultdict(floa...
diff --git a/chainer/optimizer.py b/chainer/optimizer.py index 7973dd585d3f..cff627205008 100644 --- a/chainer/optimizer.py +++ b/chainer/optimizer.py @@ -595,6 +595,8 @@ def __init__(self, attr_name): self.__doc__ = 'Alias to ``self.hyperparam.{}``'.format(attr_name) def __get__(self, obj, type=None): ...
googleapis__python-bigquery-1764
Prevent Error: Module "google.oauth2" has no attribute "service_account A specific version of `types-protobuf==4.24.0.4` causes the following error: `Module "google.oauth2" has no attribute "service_account"` Ensures that the problematic version of `types-protobuf` does not get installed and include a note expla...
[ { "content": "# Copyright 2016 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 applicabl...
[ { "content": "# Copyright 2016 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 applicabl...
diff --git a/noxfile.py b/noxfile.py index 41492c7f0..66d68c04e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -219,7 +219,7 @@ def mypy_samples(session): session.install( "types-mock", "types-pytz", - "types-protobuf", + "types-protobuf!=4.24.0.20240106", # This version causes an err...
dbt-labs__dbt-core-2259
{{ exceptions.warn() }} returns None instead of an empty string ### Describe the bug `{{ exceptions.warn() }}` returns None instead of an empty string (which is what I expected) ### Steps To Reproduce 1: ``` $ cat models/my_model.sql {{ exceptions.warn("bad thing") }} select 1 ``` 2. Compile the SQL, `dbt co...
[ { "content": "import builtins\nimport functools\nfrom typing import NoReturn, Optional\n\nfrom dbt.logger import GLOBAL_LOGGER as logger\nfrom dbt.node_types import NodeType\nimport dbt.flags\n\nimport hologram\n\n\ndef validator_error_message(exc):\n \"\"\"Given a hologram.ValidationError (which is basicall...
[ { "content": "import builtins\nimport functools\nfrom typing import NoReturn, Optional\n\nfrom dbt.logger import GLOBAL_LOGGER as logger\nfrom dbt.node_types import NodeType\nimport dbt.flags\n\nimport hologram\n\n\ndef validator_error_message(exc):\n \"\"\"Given a hologram.ValidationError (which is basicall...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 523b8f309d0..e1189040620 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,11 +10,12 @@ - When a jinja value is undefined, give a helpful error instead of failing with cryptic "cannot pickle ParserMacroCapture" errors ([#2110](https://github.com/fishtown-analytics/dbt/i...
scoutapp__scout_apm_python-43
Django: CursorWrapper expects a sequence or None for params As seen in this partial traceback: ``` File "python3.6/site-packages/scout_apm/django/instruments/sql.py", line 29, in execute return self.cursor.execute(sql, params) File "python3.6/site-packages/django/db/backends/utils.py", line 80, in execute ...
[ { "content": "from __future__ import absolute_import\nimport logging\n\nfrom scout_apm.core.monkey import monkeypatch_method\nfrom scout_apm.core.tracked_request import TrackedRequest\n\ntry:\n from django.db.backends.base.base import BaseDatabaseWrapper\nexcept ImportError:\n # Backwards compatibility fo...
[ { "content": "from __future__ import absolute_import\nimport logging\n\nfrom scout_apm.core.monkey import monkeypatch_method\nfrom scout_apm.core.tracked_request import TrackedRequest\n\ntry:\n from django.db.backends.base.base import BaseDatabaseWrapper\nexcept ImportError:\n # Backwards compatibility fo...
diff --git a/src/scout_apm/django/instruments/sql.py b/src/scout_apm/django/instruments/sql.py index 0ed8171e..93412598 100644 --- a/src/scout_apm/django/instruments/sql.py +++ b/src/scout_apm/django/instruments/sql.py @@ -20,7 +20,7 @@ class _DetailedTracingCursorWrapper(CursorWrapper): - def execute(self, sql...
svthalia__concrexit-1874
Disabling optional registrations does not work ### Describe the bug I tried to disable optional registrations for an event, but somehow it didn’t work out ### How to reproduce Have an event. Do not check ‘optional registrations allowed’ Profit ### Expected behaviour Speaks for itself ### Screenshots ...
[ { "content": "from django.conf import settings\nfrom django.core import validators\nfrom django.core.exceptions import ValidationError, ObjectDoesNotExist\nfrom django.db import models, router\nfrom django.db.models.deletion import Collector\nfrom django.urls import reverse\nfrom django.utils import timezone\nf...
[ { "content": "from django.conf import settings\nfrom django.core import validators\nfrom django.core.exceptions import ValidationError, ObjectDoesNotExist\nfrom django.db import models, router\nfrom django.db.models.deletion import Collector\nfrom django.urls import reverse\nfrom django.utils import timezone\nf...
diff --git a/website/events/models/event.py b/website/events/models/event.py index 86b1aab42..fc0c43405 100644 --- a/website/events/models/event.py +++ b/website/events/models/event.py @@ -274,7 +274,11 @@ def cancellation_allowed(self): @property def optional_registration_allowed(self): - return not...
e-valuation__EvaP-1467
OpenID login button is broken in latest firefox Behavior: When clicking the "login" button at `https://evap.hpi.de` a request is sent to `https://evap.hpi.de/oidc/authenticate/`, which returns a 302 and redirects to `https://evap.hpi.de/?next=/oidc/authenticate/`, which has no visible difference with `https://evap.hpi...
[ { "content": "from django.contrib.auth.views import redirect_to_login\n\n\nclass RequireLoginMiddleware:\n def __init__(self, get_response):\n self.get_response = get_response\n\n def __call__(self, request):\n return self.get_response(request)\n\n @staticmethod\n def process_view(requ...
[ { "content": "from django.contrib.auth.views import redirect_to_login\n\n\nclass RequireLoginMiddleware:\n def __init__(self, get_response):\n self.get_response = get_response\n\n def __call__(self, request):\n return self.get_response(request)\n\n @staticmethod\n def process_view(requ...
diff --git a/evap/middleware.py b/evap/middleware.py index 342d96820a..7d6cfea8fc 100644 --- a/evap/middleware.py +++ b/evap/middleware.py @@ -17,6 +17,9 @@ def process_view(request, view_func, _view_args, _view_kwargs): if "no_login_required" in view_func.__dict__ and view_func.no_login_required: ...
espnet__espnet-2915
Typo: idim should be odim https://github.com/espnet/espnet/blob/5160363973a1505b3987d6b37976bc04e1d4dad8/espnet/nets/pytorch_backend/transducer/blocks.py#L195 ```bash <<< out_dim = blocks_arch[-1]["idim"] >>> out_dim = blocks_arch[-1]["odim"] ```
[ { "content": "\"\"\"Set of methods to create custom architecture.\"\"\"\n\nfrom collections import Counter\n\nimport torch\n\nfrom espnet.nets.pytorch_backend.conformer.convolution import ConvolutionModule\nfrom espnet.nets.pytorch_backend.conformer.encoder_layer import (\n EncoderLayer as ConformerEncoderLa...
[ { "content": "\"\"\"Set of methods to create custom architecture.\"\"\"\n\nfrom collections import Counter\n\nimport torch\n\nfrom espnet.nets.pytorch_backend.conformer.convolution import ConvolutionModule\nfrom espnet.nets.pytorch_backend.conformer.encoder_layer import (\n EncoderLayer as ConformerEncoderLa...
diff --git a/espnet/nets/pytorch_backend/transducer/blocks.py b/espnet/nets/pytorch_backend/transducer/blocks.py index 3585cd1c20c..875053ab69b 100644 --- a/espnet/nets/pytorch_backend/transducer/blocks.py +++ b/espnet/nets/pytorch_backend/transducer/blocks.py @@ -192,7 +192,7 @@ def check_and_prepare(net_part, blocks_...
ManimCommunity__manim-755
"manim -" is not working I broke this when revamping the config system. Thanks @naveen521kk for reporting
[ { "content": "from .. import constants, logger, console, config\nimport importlib.util\nimport inspect\nimport os\nfrom pathlib import Path\nimport sys\nimport types\nimport re\n\n\ndef get_module(file_name):\n if file_name == \"-\":\n module = types.ModuleType(\"input_scenes\")\n logger.info(\...
[ { "content": "from .. import constants, logger, console, config\nimport importlib.util\nimport inspect\nimport os\nfrom pathlib import Path\nimport sys\nimport types\nimport re\n\n\ndef get_module(file_name):\n if str(file_name) == \"-\":\n module = types.ModuleType(\"input_scenes\")\n logger.i...
diff --git a/manim/utils/module_ops.py b/manim/utils/module_ops.py index 0dd85f3ba0..02a85673ba 100644 --- a/manim/utils/module_ops.py +++ b/manim/utils/module_ops.py @@ -9,7 +9,7 @@ def get_module(file_name): - if file_name == "-": + if str(file_name) == "-": module = types.ModuleType("input_scenes...
pwndbg__pwndbg-696
piebase, breakrva does not work if the path to binary contains space <!-- Before reporting a new issue, make sure that we do not have any duplicates already open. If there is one it might be good to take part in the discussion there. Please make sure you have checked that the issue persists on LATEST pwndbg versio...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nRoutines to enumerate mapped memory, and attempt to associate\naddress ranges with various ELF files and permissions.\n\nThe reason that we need robustness is that not every operating\nsystem has /proc/$$/maps, which backs 'info proc mapping'...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nRoutines to enumerate mapped memory, and attempt to associate\naddress ranges with various ELF files and permissions.\n\nThe reason that we need robustness is that not every operating\nsystem has /proc/$$/maps, which backs 'info proc mapping'...
diff --git a/pwndbg/vmmap.py b/pwndbg/vmmap.py index 74607faa563..4c65b06e5a8 100644 --- a/pwndbg/vmmap.py +++ b/pwndbg/vmmap.py @@ -207,7 +207,7 @@ def proc_pid_maps(): for line in data.splitlines(): maps, perm, offset, dev, inode_objfile = line.split(None, 4) - try: inode, objfile = inode_ob...
zostera__django-bootstrap3-474
#453 actually breaks checkboxes Image of form with checkbox: https://drive.google.com/open?id=1nNlAnZbnhMLbnzRh4xvrBFL6YG40YD30 template code: ``` <form class="login form form-horizontal" method="POST" action="{% url 'account_login' %}"> {% csrf_token %} {% bootstrap_form f...
[ { "content": "from django.forms import (\n BaseForm,\n BaseFormSet,\n BoundField,\n CheckboxInput,\n CheckboxSelectMultiple,\n ClearableFileInput,\n DateInput,\n EmailInput,\n FileInput,\n MultiWidget,\n NumberInput,\n PasswordInput,\n RadioSelect,\n Select,\n Select...
[ { "content": "from django.forms import (\n BaseForm,\n BaseFormSet,\n BoundField,\n CheckboxInput,\n CheckboxSelectMultiple,\n ClearableFileInput,\n DateInput,\n EmailInput,\n FileInput,\n MultiWidget,\n NumberInput,\n PasswordInput,\n RadioSelect,\n Select,\n Select...
diff --git a/src/bootstrap3/renderers.py b/src/bootstrap3/renderers.py index 40e54b63..7630e85d 100644 --- a/src/bootstrap3/renderers.py +++ b/src/bootstrap3/renderers.py @@ -327,7 +327,6 @@ def put_inside_label(self, html): content=mark_safe(content), label_for=self.field.id_for_label, ...
getredash__redash-5623
Loading schema for Sqlite DB with "Order" column name fails ### Issue Summary I added a Sqlite Database which has an column with the name `Order`. When I try to create a query, the error `Schema refresh failed.` comes up. ### Steps to Reproduce 1. Add an Sqlite Database which has a column with the name `Order...
[ { "content": "import logging\nimport sqlite3\n\nfrom redash.query_runner import BaseSQLQueryRunner, register, JobTimeoutException\nfrom redash.utils import json_dumps, json_loads\n\nlogger = logging.getLogger(__name__)\n\n\nclass Sqlite(BaseSQLQueryRunner):\n noop_query = \"pragma quick_check\"\n\n @class...
[ { "content": "import logging\nimport sqlite3\n\nfrom redash.query_runner import BaseSQLQueryRunner, register, JobTimeoutException\nfrom redash.utils import json_dumps, json_loads\n\nlogger = logging.getLogger(__name__)\n\n\nclass Sqlite(BaseSQLQueryRunner):\n noop_query = \"pragma quick_check\"\n\n @class...
diff --git a/redash/query_runner/sqlite.py b/redash/query_runner/sqlite.py index ffee42bf7f..d056dff98f 100644 --- a/redash/query_runner/sqlite.py +++ b/redash/query_runner/sqlite.py @@ -29,7 +29,7 @@ def __init__(self, configuration): def _get_tables(self, schema): query_table = "select tbl_name from s...
Kinto__kinto-476
Error while trying to generate a configuration file without subfolder with CLI. ``` $ kinto --ini kinto.ini Traceback (most recent call last): File "~/.virtualenvs/kinto/bin/kinto", line 9, in <module> load_entry_point('kinto', 'console_scripts', 'kinto')() File "~/mozilla/kinto/kinto/__main__.py", line 72, in...
[ { "content": "import os\nimport codecs\n\nfrom cliquet import utils as cliquet_utils\n\nfrom kinto import logger\n\nHERE = os.path.abspath(os.path.dirname(__file__))\n\n\ndef render_template(template, destination, **kwargs):\n template = os.path.join(HERE, template)\n folder = os.path.dirname(destination)...
[ { "content": "import os\nimport codecs\n\nfrom cliquet import utils as cliquet_utils\n\nfrom kinto import logger\n\nHERE = os.path.abspath(os.path.dirname(__file__))\n\n\ndef render_template(template, destination, **kwargs):\n template = os.path.join(HERE, template)\n folder = os.path.dirname(destination)...
diff --git a/kinto/config/__init__.py b/kinto/config/__init__.py index 19d009a56..9ee24443b 100644 --- a/kinto/config/__init__.py +++ b/kinto/config/__init__.py @@ -12,7 +12,7 @@ def render_template(template, destination, **kwargs): template = os.path.join(HERE, template) folder = os.path.dirname(destination)...
django-json-api__django-rest-framework-json-api-637
Build docs error when creating api doc Following error occurs when running `make html` ``` Running Sphinx v2.0.1 usage: sphinx-build [OPTIONS] -o <OUTPUT_PATH> <MODULE_PATH> [EXCLUDE_PATTERN, ...] sphinx-build: error: unrecognized arguments: ../rest_framework_json_api ``` See https://readthedocs.org/projects/...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Django REST Framework JSON API documentation build configuration file, created by\n# sphinx-quickstart on Fri Jul 24 23:31:15 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all ...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Django REST Framework JSON API documentation build configuration file, created by\n# sphinx-quickstart on Fri Jul 24 23:31:15 2015.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all ...
diff --git a/docs/conf.py b/docs/conf.py index d0533d64..569d4269 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -28,7 +28,7 @@ # Auto-generate API documentation. from sphinx.ext.apidoc import main -main(['sphinx-apidoc', '-e', '-T', '-M', '-f', '-o', 'apidoc', '../rest_framework_json_api']) +main(['-o', 'apid...
kivy__kivy-6193
Segfault in core image when loading same image twice ### Versions * Python: 3.6.7 * OS: Ubuntu 18.10 * Kivy: v1.10.1 * Kivy installation method: PIP I presume, I tried via github but build was broken at the time ### Description Running the image constructor on the same image twice core-dumps with a segfaul...
[ { "content": "'''\nImage\n=====\n\nCore classes for loading images and converting them to a\n:class:`~kivy.graphics.texture.Texture`. The raw image data can be keep in\nmemory for further access.\n\n.. versionchanged:: 1.11.0\n\n Add support for argb and abgr image data\n\nIn-memory image loading\n----------...
[ { "content": "'''\nImage\n=====\n\nCore classes for loading images and converting them to a\n:class:`~kivy.graphics.texture.Texture`. The raw image data can be keep in\nmemory for further access.\n\n.. versionchanged:: 1.11.0\n\n Add support for argb and abgr image data\n\nIn-memory image loading\n----------...
diff --git a/kivy/core/image/__init__.py b/kivy/core/image/__init__.py index aa4504be55..3bf8df54d6 100644 --- a/kivy/core/image/__init__.py +++ b/kivy/core/image/__init__.py @@ -741,7 +741,6 @@ def _set_filename(self, value): self._set_filename(value) else: self._texture ...
aws-cloudformation__cfn-lint-2208
Custom Rule not working for boolean values *cfn-lint version: (`cfn-lint --version`)* 0.54.4 *Description of issue.* Attempting to create a custom rule to detect KMS keys that do not have auto rotate enabled. I discovered https://github.com/aws-cloudformation/cfn-lint/issues/2185 which covers the inability to react ...
[ { "content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\n#pylint: disable=cyclic-import\nimport cfnlint.rules\n\nOPERATOR = [\n 'EQUALS',\n 'NOT_EQUALS',\n '==',\n '!=',\n 'IN',\n 'NOT_IN',\n '>=',\n '<=']\n\n\ndef ...
[ { "content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\n#pylint: disable=cyclic-import\nimport cfnlint.rules\n\nOPERATOR = [\n 'EQUALS',\n 'NOT_EQUALS',\n '==',\n '!=',\n 'IN',\n 'NOT_IN',\n '>=',\n '<=']\n\n\ndef ...
diff --git a/src/cfnlint/rules/custom/Operators.py b/src/cfnlint/rules/custom/Operators.py index 7b0322483a..616fcc0d9f 100644 --- a/src/cfnlint/rules/custom/Operators.py +++ b/src/cfnlint/rules/custom/Operators.py @@ -49,7 +49,7 @@ def _check_value(self, value, path, property_chain, cfn): cfn=...
pytorch__torchdynamo-470
Assertions Found in HuggingFace's T5 Model I am seeing a stack trace error in TorchDynamo that looks like it might be from this code in the T5 model. I will note that I specifically edited the model to remove the Cuda Extension for RMSNorm that also produced an error in an attempt to better isolate the issue. The Cud...
[ { "content": "import re\nimport types\nfrom typing import Dict\nfrom typing import List\n\nimport torch._C\nimport torch.nn\n\nfrom torchdynamo.variables.lists import TupleVariable\nfrom torchdynamo.variables.misc import ProfileRecordFunctionVariable\n\nfrom .. import config\nfrom .. import variables\nfrom ..al...
[ { "content": "import re\nimport types\nfrom typing import Dict\nfrom typing import List\n\nimport torch._C\nimport torch.nn\n\nfrom torchdynamo.variables.lists import TupleVariable\nfrom torchdynamo.variables.misc import ProfileRecordFunctionVariable\n\nfrom .. import config\nfrom .. import variables\nfrom ..al...
diff --git a/tests/test_functions.py b/tests/test_functions.py index 39dd511d0a..8ac58673c1 100755 --- a/tests/test_functions.py +++ b/tests/test_functions.py @@ -67,6 +67,11 @@ def test_constant4(a, b): return a - b return b - a + @make_test + def test_finfo(a, b): + if torch.iinfo...
ipython__ipython-3504
Notebook broken in master I am seeing the following when a notebook is opened (also see a WebSocket can't connect in the browser): ``` ERROR:root:Uncaught exception in /kernels/3c8b14ec-662f-4360-bc2a-4706c67f8513/shell Traceback (most recent call last): File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/pyt...
[ { "content": "\"\"\"Tornado handlers for WebSocket <-> ZMQ sockets.\n\nAuthors:\n\n* Brian Granger\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (C) 2008-2011 The IPython Development Team\n#\n# Distributed under the terms of the BSD License. The full ...
[ { "content": "\"\"\"Tornado handlers for WebSocket <-> ZMQ sockets.\n\nAuthors:\n\n* Brian Granger\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (C) 2008-2011 The IPython Development Team\n#\n# Distributed under the terms of the BSD License. The full ...
diff --git a/IPython/html/base/zmqhandlers.py b/IPython/html/base/zmqhandlers.py index 4bc24745df9..19778eef986 100644 --- a/IPython/html/base/zmqhandlers.py +++ b/IPython/html/base/zmqhandlers.py @@ -84,7 +84,7 @@ class AuthenticatedZMQStreamHandler(ZMQStreamHandler, IPythonHandler): def open(self, kernel_id): ...
dask__dask-3851
Applying da.arg* with axis argument uses non-tuple nd indexing Applying a `da.array` function such as `da.argmax` along an axis yields the following warning: ``` C:\ProgramData\Anaconda3\lib\site-packages\dask\array\reductions.py:564:` FutureWarning: Using a non-tuple sequence for multidimensional indexing is depre...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport operator\nfrom functools import partial, wraps\nfrom itertools import product, repeat\nfrom math import factorial, log, ceil\n\nimport numpy as np\nfrom toolz import compose, partition_all, get, accumulate, pluck\n\nfrom . ...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport operator\nfrom functools import partial, wraps\nfrom itertools import product, repeat\nfrom math import factorial, log, ceil\n\nimport numpy as np\nfrom toolz import compose, partition_all, get, accumulate, pluck\n\nfrom . ...
diff --git a/dask/array/reductions.py b/dask/array/reductions.py index 559963fd1b7..f9b00466450 100644 --- a/dask/array/reductions.py +++ b/dask/array/reductions.py @@ -532,6 +532,7 @@ def _arg_combine(data, axis, argfunc, keepdims=False): local_args = argfunc(vals, axis=axis) inds = np.ogrid[tuple(ma...
cupy__cupy-4711
Python 3.9 support - CI - cupy-release-tools
[ { "content": "#!/usr/bin/env python\n\nimport glob\nimport os\nfrom setuptools import setup, find_packages\nimport sys\n\nimport cupy_setup_build\n\n\nfor submodule in ('cupy/core/include/cupy/cub/',\n 'cupy/core/include/cupy/jitify'):\n if len(os.listdir(submodule)) == 0:\n msg = '''...
[ { "content": "#!/usr/bin/env python\n\nimport glob\nimport os\nfrom setuptools import setup, find_packages\nimport sys\n\nimport cupy_setup_build\n\n\nfor submodule in ('cupy/core/include/cupy/cub/',\n 'cupy/core/include/cupy/jitify'):\n if len(os.listdir(submodule)) == 0:\n msg = '''...
diff --git a/docs/source/install.rst b/docs/source/install.rst index e48317f1238..c31e57181b1 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -18,20 +18,16 @@ These components must be installed to use CuPy: * If you have multiple versions of CUDA Toolkit installed, CuPy will automatically cho...
electricitymaps__electricitymaps-contrib-1158
AU battery returning type error ``` fetch_production("AUS-SA") -> Traceback (most recent call last): File "AU.py", line 558, in <module> print(fetch_production('AUS-SA')) File "AU.py", line 422, in fetch_production data['storage']['battery'] = AU_battery.fetch_SA_battery() File "/home/chris/electri...
[ { "content": "#!/usr/bin/env python3\n\n\"\"\"Parser for South Australia's 129MWh battery built by Tesla.\"\"\"\nimport arrow\nimport json\nimport requests\n\n# nemlog_url gets generation status in 5 min intervals.\n\n\ndef fetch_SA_battery(session=None):\n \"\"\"\n Makes a request to the nemlog api for S...
[ { "content": "#!/usr/bin/env python3\n\n\"\"\"Parser for South Australia's 129MWh battery built by Tesla.\"\"\"\nimport arrow\nimport json\nimport requests\n\n# nemlog_url gets generation status in 5 min intervals.\n\n\ndef fetch_SA_battery(session=None):\n \"\"\"\n Makes a request to the nemlog api for S...
diff --git a/parsers/lib/AU_battery.py b/parsers/lib/AU_battery.py index 2bdf4446ed..5afe5c0ca0 100644 --- a/parsers/lib/AU_battery.py +++ b/parsers/lib/AU_battery.py @@ -21,11 +21,9 @@ def fetch_SA_battery(session=None): s = session or requests.Session() req = s.get(nemlog_url) - data = [] - for li...
DataBiosphere__toil-3420
Fix failing Google job store tests There are a couple tests failing for Google job store, due to String/Byte type inconsistencies between Python2/3 related to #3388. **Error:** ``` Traceback (most recent call last): File "/builds/databiosphere/toil/src/toil/test/__init__.py", line 663, in fx return generalM...
[ { "content": "# Copyright (C) 2015-2021 Regents of the University of California\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-...
[ { "content": "# Copyright (C) 2015-2021 Regents of the University of California\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-...
diff --git a/src/toil/jobStores/googleJobStore.py b/src/toil/jobStores/googleJobStore.py index 21130165e8..4699adb187 100644 --- a/src/toil/jobStores/googleJobStore.py +++ b/src/toil/jobStores/googleJobStore.py @@ -356,7 +356,7 @@ def _supportsUrl(cls, url, export=False): return url.scheme.lower() == 'gs' ...
tobymao__sqlglot-2337
Parser error for Snowflake SQL when "window" is used as an alias Hi All, Trying to parse our Snowflake queries to perform some validations. Parser fails when the keyword "window" is used as an alias for a table. The SQL executes fine on Snowflake though. Code: ``` parsed_sql = parse_one( """ SELEC...
[ { "content": "from __future__ import annotations\n\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n Dialect,\n binary_from_function,\n date_trunc_to_time,\n datestrtodate_sql,\n format_time_lambda,\n if_sql,\n in...
[ { "content": "from __future__ import annotations\n\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n Dialect,\n binary_from_function,\n date_trunc_to_time,\n datestrtodate_sql,\n format_time_lambda,\n if_sql,\n in...
diff --git a/sqlglot/dialects/snowflake.py b/sqlglot/dialects/snowflake.py index 0ba6a11325..5131726e3e 100644 --- a/sqlglot/dialects/snowflake.py +++ b/sqlglot/dialects/snowflake.py @@ -239,6 +239,8 @@ class Snowflake(Dialect): class Parser(parser.Parser): IDENTIFY_PIVOT_STRINGS = True + TABLE_A...
ultrabug__py3status-1228
Treat None as a zero when using conditions We can get this in `thunderbird_todos` where `priority` will be `None` if it's not used. Otherwise, it will be a number over `0`. Different number for `Low`, `Normal`, `High` too. ``` # display incompleted tasks with any priority thunderbird_todos { format_todo = '\?i...
[ { "content": "# -*- coding: utf-8 -*-\nimport re\nimport sys\n\nfrom numbers import Number\n\nfrom py3status.composite import Composite\n\ntry:\n from urllib.parse import parse_qsl\nexcept ImportError:\n from urlparse import parse_qsl\n\n\npython2 = sys.version_info < (3, 0)\n\n\nclass Formatter:\n \"\...
[ { "content": "# -*- coding: utf-8 -*-\nimport re\nimport sys\n\nfrom numbers import Number\n\nfrom py3status.composite import Composite\n\ntry:\n from urllib.parse import parse_qsl\nexcept ImportError:\n from urlparse import parse_qsl\n\n\npython2 = sys.version_info < (3, 0)\n\n\nclass Formatter:\n \"\...
diff --git a/py3status/formatter.py b/py3status/formatter.py index fbe2c92948..2a8da5c458 100644 --- a/py3status/formatter.py +++ b/py3status/formatter.py @@ -349,6 +349,10 @@ def _check_valid_condition(self, get_params): variable = None value = self.value + # if None, return oppositely +...
dbt-labs__dbt-core-4192
[Bug] Incompatible versions of `protobuf` required in sub-dependencies ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior It is not currently possible to install dbt through Pipenv because of incompatible versions of `protobuf` in sub-dependencies used in `d...
[ { "content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 6):\n print('Error: dbt does not support this version of Python.')\n print('Please upgrade to Python 3.6 or higher.')\n sys.exit(1)\n\n\nfrom setuptools import setup\ntry:\n from setuptools import find_namespace_...
[ { "content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 6):\n print('Error: dbt does not support this version of Python.')\n print('Please upgrade to Python 3.6 or higher.')\n sys.exit(1)\n\n\nfrom setuptools import setup\ntry:\n from setuptools import find_namespace_...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6698fc1d6c0..53f3117017c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Increase performance of graph subset selection ([#4135](https://github.com/dbt-labs/dbt-core/issues/4135),[#4155](https://github.com/dbt-labs/dbt-core/pull/4155)) - Add downstream t...
open-telemetry__opentelemetry-python-366
Flask Extension Gunicorn GLogging Error With Access Logs **Describe your environment** Using Python 3.6, with a basic flask application with gunicorn. **Python Libs**: ``` Flask==1.1.1 gunicorn==20.0.4 opentelemetry-sdk==0.3a0 opentelemetry-ext-flask==0.3a0 ``` **Reproducible Structure** ``` app/ - __init...
[ { "content": "# Note: This package is not named \"flask\" because of\n# https://github.com/PyCQA/pylint/issues/2648\n\nimport logging\n\nfrom flask import request as flask_request\n\nimport opentelemetry.ext.wsgi as otel_wsgi\nfrom opentelemetry import propagators, trace\nfrom opentelemetry.ext.flask.version im...
[ { "content": "# Note: This package is not named \"flask\" because of\n# https://github.com/PyCQA/pylint/issues/2648\n\nimport logging\n\nfrom flask import request as flask_request\n\nimport opentelemetry.ext.wsgi as otel_wsgi\nfrom opentelemetry import propagators, trace\nfrom opentelemetry.ext.flask.version im...
diff --git a/ext/opentelemetry-ext-flask/src/opentelemetry/ext/flask/__init__.py b/ext/opentelemetry-ext-flask/src/opentelemetry/ext/flask/__init__.py index ce11b18d635..4bf0cc8c681 100644 --- a/ext/opentelemetry-ext-flask/src/opentelemetry/ext/flask/__init__.py +++ b/ext/opentelemetry-ext-flask/src/opentelemetry/ext/f...
beetbox__beets-2583
Lastgenre plugin crashes with canonical_tree: yes and prefer_specific: yes ### Problem When using the default canonical tree whenever a genre is unmatched [`_get_depth(genre)`](https://github.com/beetbox/beets/blob/4ae02e0d27996cec36e26c4df8c5d3fcfdf717de/beetsplug/lastgenre/__init__.py#L162) will return `None`, whi...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in...
diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index 2756f452c0..4374310ba3 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -174,6 +174,7 @@ def _sort_by_depth(self, tags): genre tree. """ depth_tag_pairs = [(self._get_dept...
apache__tvm-6502
[TOPI] Typo in operator key https://github.com/apache/incubator-tvm/blob/bdfefbb03f5aab96ee677ee28a166dd6ab5dbf3f/python/tvm/topi/bifrost/dense.py#L26 "biforst" should be "bifrost". This bug makes the op totally unavailable in Relay. I can fix this bug if expected, but I don't know how to add a proper test.
[ { "content": "# 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 (the\n...
[ { "content": "# 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 (the\n...
diff --git a/python/tvm/topi/bifrost/dense.py b/python/tvm/topi/bifrost/dense.py index 4a0158e7cbe0..85703f19ca2f 100644 --- a/python/tvm/topi/bifrost/dense.py +++ b/python/tvm/topi/bifrost/dense.py @@ -23,7 +23,7 @@ from ..util import traverse_inline -@autotvm.register_topi_compute("dense.biforst") +@autotvm.regi...
scikit-hep__pyhf-362
Lock Tensorflow to 1.11.0 release until TensorFlow probability has caught up # Description [TensorFlow 1.12.0 has been released](https://github.com/tensorflow/tensorflow/releases/tag/v1.12.0) and it has breaking changes. Most notably > Remove `tf.contrib.linalg`. `tf.linalg` should be used instead. This doesn...
[ { "content": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\nfrom os import path\nimport sys\n\nthis_directory = path.abspath(path.dirname(__file__))\nif sys.version_info.major < 3:\n from io import open\nwith open(path.join(this_directory, 'README.md'), encoding='utf-8') as readme_md:...
[ { "content": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\nfrom os import path\nimport sys\n\nthis_directory = path.abspath(path.dirname(__file__))\nif sys.version_info.major < 3:\n from io import open\nwith open(path.join(this_directory, 'README.md'), encoding='utf-8') as readme_md:...
diff --git a/setup.py b/setup.py index 54c170341c..3f3479c6d0 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ extras_require = { 'tensorflow': [ - 'tensorflow>=1.10.0', + 'tensorflow<1.12.0,>=1.10.0', 'tensorflow-probability==0.3.0', 'numpy<=1.14.5,>=1.14.0', # Lower of 1...
spack__spack-11755
Installing rclone leaves a go folder outside spack root Spack version: commit a45c4ef33de (if no change on relevant part, it is basically the head). OS distribution: Ubuntu server 18.04. After `spack install rclone`, there is a folder named go outside spack installation root as `~/go/` (the spack root is `~/spack/`...
[ { "content": "# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack import *\n\n\nclass Rclone(Package):\n \"\"\"Rclone is a command line program to ...
[ { "content": "# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack import *\n\n\nclass Rclone(Package):\n \"\"\"Rclone is a command line program to ...
diff --git a/var/spack/repos/builtin/packages/rclone/package.py b/var/spack/repos/builtin/packages/rclone/package.py index 4183507353db4a..00a5221ef93dc5 100644 --- a/var/spack/repos/builtin/packages/rclone/package.py +++ b/var/spack/repos/builtin/packages/rclone/package.py @@ -17,6 +17,10 @@ class Rclone(Package): ...
certbot__certbot-7294
Certbot's Apache plugin doesn't work on Scientific Linux See https://community.letsencrypt.org/t/noinstallationerror-cannot-find-apache-executable-apache2ctl/97980. This should be fixable by adding an override in https://github.com/certbot/certbot/blob/master/certbot-apache/certbot_apache/entrypoint.py#L17.
[ { "content": "\"\"\" Entry point for Apache Plugin \"\"\"\n# Pylint does not like disutils.version when running inside a venv.\n# See: https://github.com/PyCQA/pylint/issues/73\nfrom distutils.version import LooseVersion # pylint: disable=no-name-in-module,import-error\n\nfrom certbot import util\n\nfrom certb...
[ { "content": "\"\"\" Entry point for Apache Plugin \"\"\"\n# Pylint does not like disutils.version when running inside a venv.\n# See: https://github.com/PyCQA/pylint/issues/73\nfrom distutils.version import LooseVersion # pylint: disable=no-name-in-module,import-error\n\nfrom certbot import util\n\nfrom certb...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 70cb3f8ed8d..2275d41dd8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ Certbot adheres to [Semantic Versioning](https://semver.org/). ### Fixed -* +* Fixed OS detection in the Apache plugin on Scientific Linux. More details about these changes can ...
mozilla__pontoon-2667
Entities of mass deleted terms do not get obsolete When terms are deleted from the Django Admin, we [obsolete corresponding Entities](https://github.com/mozilla/pontoon/blob/01cddfd0df2f5ddf85d1b5e26a13003f9f320d97/pontoon/terminology/models.py#L239). However, this function doesn't trigger in mass delete actions, which...
[ { "content": "import re\n\nfrom django.db import models\n\nfrom pontoon.base.models import Entity, ProjectLocale, Resource, TranslatedResource\n\n\ndef update_terminology_project_stats():\n resource = Resource.objects.get(project__slug=\"terminology\")\n project = resource.project\n total_strings = Ent...
[ { "content": "import re\n\nfrom django.db import models\n\nfrom pontoon.base.models import Entity, ProjectLocale, Resource, TranslatedResource\n\n\ndef update_terminology_project_stats():\n resource = Resource.objects.get(project__slug=\"terminology\")\n project = resource.project\n total_strings = Ent...
diff --git a/pontoon/terminology/models.py b/pontoon/terminology/models.py index fb638a738b..b863f89f2b 100644 --- a/pontoon/terminology/models.py +++ b/pontoon/terminology/models.py @@ -52,6 +52,16 @@ def for_string(self, string): return terms + def delete(self, *args, **kwargs): + """ + ...
cocotb__cocotb-276
Add protection to RunningCoroutine.join() In a large test, one might fork off several coroutines, then go off and do some things and finally want to invoke the join() function on the forked off coroutines to make sure everything has completed before finishing the test. With the current implementation, after the corout...
[ { "content": "''' Copyright (c) 2013 Potential Ventures Ltd\nCopyright (c) 2013 SolarFlare Communications Inc\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n * Redistributions of source ...
[ { "content": "''' Copyright (c) 2013 Potential Ventures Ltd\nCopyright (c) 2013 SolarFlare Communications Inc\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n * Redistributions of source ...
diff --git a/cocotb/decorators.py b/cocotb/decorators.py index 4d46206104..d981b8da5e 100644 --- a/cocotb/decorators.py +++ b/cocotb/decorators.py @@ -147,7 +147,10 @@ def _finished_cb(self): def join(self): """Return a trigger that will fire when the wrapped coroutine exits""" - return self._joi...
bentoml__BentoML-951
When I built a H2O-based image, the following error occurred **Describe the bug** When I built a H2O-based image, the following error occurred. From the Dockerfile generated by BentoML, the base image is bentoml/model-server:0.8.1, and JRE is indeed not installed I used service.py to build a bentoML bundle ```py...
[ { "content": "# Copyright 2019 Atalaya Tech, Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless required by applicab...
[ { "content": "# Copyright 2019 Atalaya Tech, Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless required by applicab...
diff --git a/.travis.yml b/.travis.yml index e6c5c66e364..70c0357f1c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -69,6 +69,11 @@ matrix: script: - ./travis/coreml_integration_tests.sh + - name: "H2o Artifact" + python: "3.6" + script: + - ./travis/h2o_integration_tests.sh + scr...
obspy__obspy-2996
Seedlink client tests take very long, related error 'response: no data stream selector(s) accepted' logged I think there might be some error in the seedlink class. The seedlink tests take very long and some error are logged: ``` (workhorse) eule@kiste:~/dev/obspy$ obspy-runtests --network clients/seedlink --duratio...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nSeedLink request client for ObsPy.\n\n:copyright:\n The ObsPy Development Team (devs@obspy.org)\n:license:\n GNU Lesser General Public License, Version 3\n (https://www.gnu.org/copyleft/lesser.html)\n\"\"\"\nimport fnmatch\nimport warnings\n\nfrom lxml imp...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nSeedLink request client for ObsPy.\n\n:copyright:\n The ObsPy Development Team (devs@obspy.org)\n:license:\n GNU Lesser General Public License, Version 3\n (https://www.gnu.org/copyleft/lesser.html)\n\"\"\"\nimport fnmatch\nimport warnings\n\nfrom lxml imp...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 380f7ecf521..0653d0dd05d 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -50,6 +50,9 @@ Changes: * update RESIF URL mapping to use http and add RESIFPH5 (see #2938) - obspy.clients.filesystem: * add get_waveforms_bulk() method to SDS client (see #2616, #2626)...
twisted__twisted-11833
twisted.web._flatten._getSlotValue copies slotData on every call. **Describe the incorrect behavior you saw** `_getSlotValue` attempts retrieve a value for a named slot from the `slotData` stack by using slice syntax to reverse it and then iterate over it. This also causes it create a copy of the list. In te...
[ { "content": "# -*- test-case-name: twisted.web.test.test_flatten,twisted.web.test.test_template -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nContext-free flattener/serializer for rendering Python objects, possibly\ncomplex or arbitrarily nested, as strings.\n\"\"\"\n...
[ { "content": "# -*- test-case-name: twisted.web.test.test_flatten,twisted.web.test.test_template -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nContext-free flattener/serializer for rendering Python objects, possibly\ncomplex or arbitrarily nested, as strings.\n\"\"\"\n...
diff --git a/src/twisted/newsfragments/11834.bugfix b/src/twisted/newsfragments/11834.bugfix new file mode 100644 index 00000000000..15623bf7296 --- /dev/null +++ b/src/twisted/newsfragments/11834.bugfix @@ -0,0 +1 @@ +`twisted.web.template` now avoids unnecessary copying and is faster, particularly for templates with ...
learningequality__kolibri-7947
Exporting CSV file that contains Unicode text fails on Python 3 on Windows ### Observed behavior User reports of CSV file export failing prompted me to add a test for this in a Windows environment in https://github.com/learningequality/kolibri/pull/7899. When Unicode text should be inserted into the exported CSV, s...
[ { "content": "from __future__ import unicode_literals\n\nimport csv\nimport io\nimport json\nimport logging\nimport math\nimport os\nimport sys\nfrom collections import OrderedDict\n\nfrom django.core.cache import cache\nfrom django.http import Http404\nfrom django.http import HttpResponse\nfrom django.http.res...
[ { "content": "from __future__ import unicode_literals\n\nimport csv\nimport io\nimport json\nimport logging\nimport math\nimport os\nimport sys\nfrom collections import OrderedDict\n\nfrom django.core.cache import cache\nfrom django.http import Http404\nfrom django.http import HttpResponse\nfrom django.http.res...
diff --git a/kolibri/core/logger/csv_export.py b/kolibri/core/logger/csv_export.py index 0e2ff6c9ff3..6526e9ae2ba 100644 --- a/kolibri/core/logger/csv_export.py +++ b/kolibri/core/logger/csv_export.py @@ -154,7 +154,7 @@ def csv_file_generator(facility, log_type, filepath, overwrite=False): if sys.version_info[0] ...
pyro-ppl__pyro-576
TransformedDistribution's event_shape forwards to incorrect base distribution's method Probably a typo: https://github.com/uber/pyro/blob/51a2ccfe9445c7072c3150c4abe1ab1d2ac17246/pyro/distributions/transformed_distribution.py#L62
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport torch\nimport torch.nn as nn\nfrom torch.autograd import Variable\n\nfrom pyro.distributions.distribution import Distribution\nfrom pyro.nn import AutoRegressiveNN\n\n\nclass TransformedDistribution(Distribution):\n \"\"...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport torch\nimport torch.nn as nn\nfrom torch.autograd import Variable\n\nfrom pyro.distributions.distribution import Distribution\nfrom pyro.nn import AutoRegressiveNN\n\n\nclass TransformedDistribution(Distribution):\n \"\"...
diff --git a/pyro/distributions/transformed_distribution.py b/pyro/distributions/transformed_distribution.py index 7142214ebd..8c7027e1f6 100644 --- a/pyro/distributions/transformed_distribution.py +++ b/pyro/distributions/transformed_distribution.py @@ -59,7 +59,7 @@ def event_shape(self, *args, **kwargs): ""...
jdb78__pytorch-forecasting-57
Best Model not provided The AR example has a bestmodel with an address to a personal computer, this bestmodel is not provided and cause errors when running the notebook.
[ { "content": "\"\"\"\nN-Beats model for timeseries forecasting without covariates.\n\"\"\"\nfrom typing import Dict, List\n\nimport matplotlib.pyplot as plt\nimport torch\nfrom torch import nn\n\nfrom pytorch_forecasting.data import TimeSeriesDataSet\nfrom pytorch_forecasting.metrics import SMAPE\nfrom pytorch_...
[ { "content": "\"\"\"\nN-Beats model for timeseries forecasting without covariates.\n\"\"\"\nfrom typing import Dict, List\n\nimport matplotlib.pyplot as plt\nimport torch\nfrom torch import nn\n\nfrom pytorch_forecasting.data import TimeSeriesDataSet\nfrom pytorch_forecasting.metrics import SMAPE\nfrom pytorch_...
diff --git a/docs/source/tutorials/ar.ipynb b/docs/source/tutorials/ar.ipynb index c55e4bf2a..cb1f6a754 100644 --- a/docs/source/tutorials/ar.ipynb +++ b/docs/source/tutorials/ar.ipynb @@ -45,6 +45,13 @@ "## Load data" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "We gener...
ansible__ansible-modules-core-3816
Apt Module deb option failure <!--- Verify first that your issue/request is not already reported in GitHub --> ##### ISSUE TYPE <!--- Pick one below and delete the rest: --> - Bug Report ##### ANSIBLE VERSION <!--- Paste verbatim output from “ansible --version” between quotes below --> ``` ansible 2.1.0.0 config f...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Flowroute LLC\n# Written by Matthew Williams <matthew@flowroute.com>\n# Based on yum module written by Seth Vidal <skvidal at fedoraproject.org>\n#\n# This module is free software: you can redistribute it and/or modify\n# it under the terms...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Flowroute LLC\n# Written by Matthew Williams <matthew@flowroute.com>\n# Based on yum module written by Seth Vidal <skvidal at fedoraproject.org>\n#\n# This module is free software: you can redistribute it and/or modify\n# it under the terms...
diff --git a/packaging/os/apt.py b/packaging/os/apt.py index 1c388b413cd..aaed23831a1 100644 --- a/packaging/os/apt.py +++ b/packaging/os/apt.py @@ -535,7 +535,8 @@ def install_deb(m, debs, cache, force, install_recommends, allow_unauthenticated stdout = out if "diff" in retvals: diff...
mozilla__bugbug-1740
AttributeError: 'IndexError' object has no attribute 'tb_frame' in Pulse Listener ``` Jul 29 09:37:20 bugbug app/web.1: Traceback (most recent call last): Jul 29 09:37:20 bugbug app/web.1: File "/usr/local/lib/python3.8/site-packages/bugbug_http/listener.py", line 69, in _on_message Jul 29 09:37:20 bugbug app/we...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nGenerate your credentials in https://pulseguardian.mozilla.org\n\nCall this script like:\n export PULSE_USER=generated_username\n export PULSE_PASSWORD=generated_username\n # In case you want to hit the live server\n export BUGBUG_HTTP_S...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nGenerate your credentials in https://pulseguardian.mozilla.org\n\nCall this script like:\n export PULSE_USER=generated_username\n export PULSE_PASSWORD=generated_username\n # In case you want to hit the live server\n export BUGBUG_HTTP_S...
diff --git a/http_service/bugbug_http/listener.py b/http_service/bugbug_http/listener.py index 1921119e67..0afe95398e 100755 --- a/http_service/bugbug_http/listener.py +++ b/http_service/bugbug_http/listener.py @@ -83,8 +83,8 @@ def _on_message(body, message): logger.warning( "We g...
mne-tools__mne-bids-272
JOSS publication At the MNE-Sprint in Paris, @teonbrooks @jasmainak and I discussed about writing a short report on MNE-BIDS and publishing it in [JOSS](https://joss.theoj.org/about). JOSS articles generally provide a very high level description of the software and its relevance: > Your submission should probably...
[ { "content": "#! /usr/bin/env python\n\"\"\"Setup MNE-BIDS.\"\"\"\nimport os\nfrom setuptools import setup, find_packages\n\n# get the version\nversion = None\nwith open(os.path.join('mne_bids', '__init__.py'), 'r') as fid:\n for line in (line.strip() for line in fid):\n if line.startswith('__version_...
[ { "content": "#! /usr/bin/env python\n\"\"\"Setup MNE-BIDS.\"\"\"\nimport os\nfrom setuptools import setup, find_packages\n\n# get the version\nversion = None\nwith open(os.path.join('mne_bids', '__init__.py'), 'r') as fid:\n for line in (line.strip() for line in fid):\n if line.startswith('__version_...
diff --git a/.travis.yml b/.travis.yml index 1f3acd5ac..9732ff0fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -73,7 +73,7 @@ cache: script: - pytest . --cov=./mne_bids --cov-report=xml --verbose --ignore mne-python - - check-manifest --ignore .circleci*,doc,coverage.xml + - check-manifest --ignore .circ...
ansible__ansible-modules-extras-1729
lvg: undocumented support of physical volume creation ##### Issue Type: Documentation Report ##### Plugin Name: lvg ##### Ansible Version: ``` # ansible --version ansible 1.9.4 configured module search path = None ``` ##### Summary: lvg module seems to take care of physical volume creation, on top of volume group...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Alexander Bulimov <lazywolf0@gmail.com>\n# based on lvol module by Jeroen Hoekx <jeroen.hoekx@dsquare.be>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Alexander Bulimov <lazywolf0@gmail.com>\n# based on lvol module by Jeroen Hoekx <jeroen.hoekx@dsquare.be>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the ...
diff --git a/system/lvg.py b/system/lvg.py index 68c9d7575ac..d22f3750b7a 100644 --- a/system/lvg.py +++ b/system/lvg.py @@ -35,6 +35,7 @@ pvs: description: - List of comma-separated devices to use as physical devices in this volume group. Required when creating or resizing volume group. + - The module ...
DataDog__dd-trace-py-2708
0.50 bug sanic APM Thanks for taking the time for reporting an issue! Before reporting an issue on dd-trace-py, please be sure to provide all necessary information. If you're hitting a bug, make sure that you're using the latest version of this library. ### Which version of dd-trace-py are you using? 0.50.0...
[ { "content": "import asyncio\n\nimport sanic\n\nimport ddtrace\nfrom ddtrace import config\nfrom ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY\nfrom ddtrace.ext import SpanTypes\nfrom ddtrace.pin import Pin\nfrom ddtrace.utils.wrappers import unwrap as _u\nfrom ddtrace.vendor import wrapt\nfrom ddtrace.ven...
[ { "content": "import asyncio\n\nimport sanic\n\nimport ddtrace\nfrom ddtrace import config\nfrom ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY\nfrom ddtrace.ext import SpanTypes\nfrom ddtrace.pin import Pin\nfrom ddtrace.utils.wrappers import unwrap as _u\nfrom ddtrace.vendor import wrapt\nfrom ddtrace.ven...
diff --git a/ddtrace/contrib/sanic/patch.py b/ddtrace/contrib/sanic/patch.py index cf4306196df..41f1bfa2bfd 100644 --- a/ddtrace/contrib/sanic/patch.py +++ b/ddtrace/contrib/sanic/patch.py @@ -78,6 +78,11 @@ def _get_path(request): except sanic.exceptions.SanicException: return path for key, value in...
getmoto__moto-2305
API Gateway generates invalid IDs Generated IDs in API Gateway resources look like `A-Z601A-Z47201`. They contain `A-Z` instead of letters.
[ { "content": "from __future__ import unicode_literals\nimport six\nimport random\n\n\ndef create_id():\n size = 10\n chars = list(range(10)) + ['A-Z']\n return ''.join(six.text_type(random.choice(chars)) for x in range(size))\n", "path": "moto/apigateway/utils.py" } ]
[ { "content": "from __future__ import unicode_literals\nimport six\nimport random\nimport string\n\n\ndef create_id():\n size = 10\n chars = list(range(10)) + list(string.ascii_lowercase)\n return ''.join(six.text_type(random.choice(chars)) for x in range(size))\n", "path": "moto/apigateway/utils.py...
diff --git a/moto/apigateway/utils.py b/moto/apigateway/utils.py index 6d1e6ef19a71..31f8060b00dd 100644 --- a/moto/apigateway/utils.py +++ b/moto/apigateway/utils.py @@ -1,9 +1,10 @@ from __future__ import unicode_literals import six import random +import string def create_id(): size = 10 - chars = lis...
python-pillow__Pillow-3493
How to tell at run time whether libjpeg-turbo version of libjpeg is used? tl;dr: Is there some way to accomplish: `PIL.Image.libjpeg_turbo_is_enabled()`? The full story: Is there a way to tell from a pre-built Pillow whether it was built against `libjpeg-turbo` or not? This is assuming that all I have is `...
[ { "content": "from . import Image\n\nmodules = {\n \"pil\": \"PIL._imaging\",\n \"tkinter\": \"PIL._tkinter_finder\",\n \"freetype2\": \"PIL._imagingft\",\n \"littlecms2\": \"PIL._imagingcms\",\n \"webp\": \"PIL._webp\",\n}\n\n\ndef check_module(feature):\n if not (feature in modules):\n ...
[ { "content": "from . import Image\n\nmodules = {\n \"pil\": \"PIL._imaging\",\n \"tkinter\": \"PIL._tkinter_finder\",\n \"freetype2\": \"PIL._imagingft\",\n \"littlecms2\": \"PIL._imagingcms\",\n \"webp\": \"PIL._webp\",\n}\n\n\ndef check_module(feature):\n if not (feature in modules):\n ...
diff --git a/src/PIL/features.py b/src/PIL/features.py index 9926445ec4f..6530038b75f 100644 --- a/src/PIL/features.py +++ b/src/PIL/features.py @@ -51,7 +51,8 @@ def get_supported_codecs(): "webp_anim": ("PIL._webp", 'HAVE_WEBPANIM'), "webp_mux": ("PIL._webp", 'HAVE_WEBPMUX'), "transp_webp": ("PIL._webp...
jazzband__django-debug-toolbar-419
Disabling toolbar when settings.TEST seems problematic I was tripped up by the change made here: https://github.com/django-debug-toolbar/django-debug-toolbar/pull/167 At issue is that the toolbar doesn't display if settings.TEST is truthy. Is it idiomatic to use settings.TEST to indicate that we're running unit tests...
[ { "content": "\"\"\"\nDebug Toolbar middleware\n\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport imp\nimport threading\n\nfrom django.conf import settings\nfrom django.http import HttpResponseRedirect\nfrom django.shortcuts import render\nfrom django.utils.encoding import force_text\nfrom django.util...
[ { "content": "\"\"\"\nDebug Toolbar middleware\n\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport imp\nimport threading\n\nfrom django.conf import settings\nfrom django.http import HttpResponseRedirect\nfrom django.shortcuts import render\nfrom django.utils.encoding import force_text\nfrom django.util...
diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py index 214d8950c..f58d78c0d 100644 --- a/debug_toolbar/middleware.py +++ b/debug_toolbar/middleware.py @@ -38,9 +38,6 @@ def show_toolbar(request): """ Default function to determine whether to show the toolbar on a given page. """ - ...
python-discord__bot-922
User's avatar in `!user` is not animated. ## Problem Right now, when doing `!user` the avatar is always set to `png`, even if the user's avatar is a gif. ## Proposal Similar to how we are handling avatars in other places, instead of using the `format` keyword, we can use the `static_format` keyword instead, as [do...
[ { "content": "import colorsys\nimport logging\nimport pprint\nimport textwrap\nfrom collections import Counter, defaultdict\nfrom string import Template\nfrom typing import Any, Mapping, Optional, Union\n\nfrom discord import Colour, Embed, Member, Message, Role, Status, utils\nfrom discord.ext.commands import ...
[ { "content": "import colorsys\nimport logging\nimport pprint\nimport textwrap\nfrom collections import Counter, defaultdict\nfrom string import Template\nfrom typing import Any, Mapping, Optional, Union\n\nfrom discord import Colour, Embed, Member, Message, Role, Status, utils\nfrom discord.ext.commands import ...
diff --git a/bot/cogs/information.py b/bot/cogs/information.py index 4eb36c3403..ef2f308ca7 100644 --- a/bot/cogs/information.py +++ b/bot/cogs/information.py @@ -206,7 +206,7 @@ async def create_user_embed(self, ctx: Context, user: Member) -> Embed: description="\n\n".join(description) ) - ...
crytic__slither-535
Crash on nested try/catch if/then/else ```solidity interface I{ function f() external returns(bool); } contract C{ function f(I i) public returns(bool){ bool fail; try i.f() returns (bool success){ if(success){ fail = false; } else...
[ { "content": "\"\"\"\n\"\"\"\nimport logging\nfrom typing import Dict, Optional, Union, List, TYPE_CHECKING\n\nfrom slither.core.cfg.node import NodeType, link_nodes, insert_node, Node\nfrom slither.core.declarations.contract import Contract\nfrom slither.core.declarations.function import Function, ModifierStat...
[ { "content": "\"\"\"\n\"\"\"\nimport logging\nfrom typing import Dict, Optional, Union, List, TYPE_CHECKING\n\nfrom slither.core.cfg.node import NodeType, link_nodes, insert_node, Node\nfrom slither.core.declarations.contract import Contract\nfrom slither.core.declarations.function import Function, ModifierStat...
diff --git a/slither/solc_parsing/declarations/function.py b/slither/solc_parsing/declarations/function.py index fafa4527aa..1bffc1fd71 100644 --- a/slither/solc_parsing/declarations/function.py +++ b/slither/solc_parsing/declarations/function.py @@ -995,7 +995,8 @@ def _fix_catch(self, node: Node, end_node: Node): ...
pyca__cryptography-784
Add API for accessing SSL_CTX's "method" field Currently there is no way to get the method (as in `TLSv1_METHOD`) of an existing Context object. I've filed pyca/pyopenssl#61 for that, but it requires cryptography to expose the relevant guts.
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, so...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, so...
diff --git a/cryptography/hazmat/bindings/openssl/ssl.py b/cryptography/hazmat/bindings/openssl/ssl.py index ea945b8d4899..9735ae6ae344 100644 --- a/cryptography/hazmat/bindings/openssl/ssl.py +++ b/cryptography/hazmat/bindings/openssl/ssl.py @@ -123,7 +123,12 @@ static const long X509_V_OK; static const long X509_V_...
liberapay__liberapay.com-1484
Requests access to GitHub private repos? Hi. I'm a brand-new user. I have a question I didn't see in the FAQ or when I searched issues here. I was going to connect my GitHub account and saw this: > Liberapay by liberapay > wants to access your greghendershott account > > Organizations and teams > Read-only a...
[ { "content": "from liberapay.elsewhere._base import PlatformOAuth2\nfrom liberapay.elsewhere._exceptions import CantReadMembership\nfrom liberapay.elsewhere._extractors import key, drop_keys\nfrom liberapay.elsewhere._paginators import header_links_paginator\n\n\nclass GitHub(PlatformOAuth2):\n\n # Platform ...
[ { "content": "from liberapay.elsewhere._base import PlatformOAuth2\nfrom liberapay.elsewhere._exceptions import CantReadMembership\nfrom liberapay.elsewhere._extractors import key, drop_keys\nfrom liberapay.elsewhere._paginators import header_links_paginator\n\n\nclass GitHub(PlatformOAuth2):\n\n # Platform ...
diff --git a/liberapay/elsewhere/github.py b/liberapay/elsewhere/github.py index 79af74f984..326e0eda2b 100644 --- a/liberapay/elsewhere/github.py +++ b/liberapay/elsewhere/github.py @@ -18,7 +18,6 @@ class GitHub(PlatformOAuth2): auth_url = 'https://github.com/login/oauth/authorize' access_token_url = 'https...
pytorch__ignite-887
utils.convert_tensor considers `device = 0` to be no device ## 🐛 Bug description In utils.convert_tensor, this line appears: `return tensor.to(device=device, non_blocking=non_blocking) if device else tensor` This means that for `device = 0` (as returned from `torch.cuda.current_device`) no conversion is applied, ...
[ { "content": "import collections.abc as collections\nimport logging\nfrom typing import Union, Optional, Callable, Any, Type, Tuple\n\nimport torch\n\n__all__ = [\"convert_tensor\", \"apply_to_tensor\", \"apply_to_type\", \"to_onehot\", \"setup_logger\"]\n\n\ndef convert_tensor(\n input_: Union[torch.Tensor,...
[ { "content": "import collections.abc as collections\nimport logging\nfrom typing import Union, Optional, Callable, Any, Type, Tuple\n\nimport torch\n\n__all__ = [\"convert_tensor\", \"apply_to_tensor\", \"apply_to_type\", \"to_onehot\", \"setup_logger\"]\n\n\ndef convert_tensor(\n input_: Union[torch.Tensor,...
diff --git a/ignite/utils.py b/ignite/utils.py index 291294d52d4e..59a8bc12439b 100644 --- a/ignite/utils.py +++ b/ignite/utils.py @@ -15,7 +15,7 @@ def convert_tensor( """Move tensors to relevant device.""" def _func(tensor: torch.Tensor) -> torch.Tensor: - return tensor.to(device=device, non_blocki...
ansible-collections__community.general-6458
puppet module - noop parameter with boolean value fails with "parameter takes exactly 3 arguments (2 given)" ### Summary Puppet module parameter 'noop' is not working with community.general version 6.6.0. - community.general.puppet: noop: false Fails with the following error: ansible_collections....
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2022, Alexei Znamensky <russoz@gmail.com>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import absolute_import, division, p...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2022, Alexei Znamensky <russoz@gmail.com>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import absolute_import, division, p...
diff --git a/changelogs/fragments/6458-puppet-noop.yml b/changelogs/fragments/6458-puppet-noop.yml new file mode 100644 index 00000000000..85e65aca407 --- /dev/null +++ b/changelogs/fragments/6458-puppet-noop.yml @@ -0,0 +1,2 @@ +bugfixes: + - puppet - handling ``noop`` parameter was not working at all, now it is has ...
fal-ai__dbt-fal-128
Make logging of insert statements for write_to_source optional or just remove it `cesarsantos#3303` in Discord asked for this probably to avoid logging sensible information or filling the logger with all the data there is.
[ { "content": "# NOTE: INSPIRED IN https://github.com/dbt-labs/dbt-core/blob/43edc887f97e359b02b6317a9f91898d3d66652b/core/dbt/lib.py\nimport six\nfrom datetime import datetime\nfrom dataclasses import dataclass\nfrom uuid import uuid4\nfrom typing import List, Tuple, Union\n\nimport dbt.version\nimport dbt.semv...
[ { "content": "# NOTE: INSPIRED IN https://github.com/dbt-labs/dbt-core/blob/43edc887f97e359b02b6317a9f91898d3d66652b/core/dbt/lib.py\nimport six\nfrom datetime import datetime\nfrom dataclasses import dataclass\nfrom uuid import uuid4\nfrom typing import List, Tuple, Union\n\nimport dbt.version\nimport dbt.semv...
diff --git a/src/faldbt/lib.py b/src/faldbt/lib.py index 2ce3d020b..adf9e97a9 100644 --- a/src/faldbt/lib.py +++ b/src/faldbt/lib.py @@ -108,7 +108,7 @@ def _execute_sql( node = _get_operation_node(manifest, project_path, profiles_dir, sql) adapter = _get_adapter(project_path, profiles_dir) - logger.info...
pallets__werkzeug-891
dev server sets wrong HTTP_HOST when path starts with a double slash See https://github.com/mitsuhiko/flask/issues/1639#issuecomment-162305541 ``` if request_url.netloc: environ['HTTP_HOST'] = request_url.netloc ``` This code was added in 7486573d / #248. Do absolute http requests even make sense except for HTTP ...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.serving\n ~~~~~~~~~~~~~~~~\n\n There are many ways to serve a WSGI application. While you're developing\n it you usually don't want a full blown webserver like Apache but a simple\n standalone one. From Python 2.5 onwards there is the `ws...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.serving\n ~~~~~~~~~~~~~~~~\n\n There are many ways to serve a WSGI application. While you're developing\n it you usually don't want a full blown webserver like Apache but a simple\n standalone one. From Python 2.5 onwards there is the `ws...
diff --git a/CHANGES b/CHANGES index 88d0c9443..5e2d4f350 100644 --- a/CHANGES +++ b/CHANGES @@ -11,6 +11,7 @@ Version 0.11.6 - increased the pin timeout to a week to make it less annoying for people which should decrease the change that users disable the pin check entirely. +- werkzeug.serving: Fix broken HTTP_...
Project-MONAI__MONAI-2093
Enhance the log of SegmentationSaver **Is your feature request related to a problem? Please describe.** We need to print out more info when saving segmentation results, now it's only: ``` saved all the model outputs into files. ```
[ { "content": "# Copyright 2020 - 2021 MONAI Consortium\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by appli...
[ { "content": "# Copyright 2020 - 2021 MONAI Consortium\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by appli...
diff --git a/monai/data/nifti_saver.py b/monai/data/nifti_saver.py index 0ff719023c..cacbcc06cd 100644 --- a/monai/data/nifti_saver.py +++ b/monai/data/nifti_saver.py @@ -153,6 +153,7 @@ def save(self, data: Union[torch.Tensor, np.ndarray], meta_data: Optional[Dict] dtype=self.dtype, output_dt...
pyodide__pyodide-3500
Please support pynacl ## 🐍 Package Request - Package Name and Version: pynacl==latest - Package URL: https://pypi.org/project/PyNaCl/ I have a user of [Awesome Panel Sharing](https://awesome-panel.org/sharing) that would like to be able to use [PyGithub](https://github.com/PyGithub/PyGithub) in his Panel Data A...
[ { "content": "#!/usr/bin/env python3\n\"\"\"Helper for cross-compiling distutils-based Python extensions.\n\ndistutils has never had a proper cross-compilation story. This is a hack, which\nmiraculously works, to get around that.\n\nThe gist is we compile the package replacing calls to the compiler and linker\n...
[ { "content": "#!/usr/bin/env python3\n\"\"\"Helper for cross-compiling distutils-based Python extensions.\n\ndistutils has never had a proper cross-compilation story. This is a hack, which\nmiraculously works, to get around that.\n\nThe gist is we compile the package replacing calls to the compiler and linker\n...
diff --git a/packages/pynacl/meta.yaml b/packages/pynacl/meta.yaml new file mode 100644 index 00000000000..437f88de822 --- /dev/null +++ b/packages/pynacl/meta.yaml @@ -0,0 +1,18 @@ +package: + name: pynacl + version: 1.5.0 + top-level: + - nacl +source: + url: https://files.pythonhosted.org/packages/a7/22/27582...
DataDog__dd-trace-py-2699
0.50 bug sanic APM Thanks for taking the time for reporting an issue! Before reporting an issue on dd-trace-py, please be sure to provide all necessary information. If you're hitting a bug, make sure that you're using the latest version of this library. ### Which version of dd-trace-py are you using? 0.50.0...
[ { "content": "import asyncio\n\nimport sanic\n\nimport ddtrace\nfrom ddtrace import config\nfrom ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY\nfrom ddtrace.ext import SpanTypes\nfrom ddtrace.pin import Pin\nfrom ddtrace.utils.wrappers import unwrap as _u\nfrom ddtrace.vendor import wrapt\nfrom ddtrace.ven...
[ { "content": "import asyncio\n\nimport sanic\n\nimport ddtrace\nfrom ddtrace import config\nfrom ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY\nfrom ddtrace.ext import SpanTypes\nfrom ddtrace.pin import Pin\nfrom ddtrace.utils.wrappers import unwrap as _u\nfrom ddtrace.vendor import wrapt\nfrom ddtrace.ven...
diff --git a/ddtrace/contrib/sanic/patch.py b/ddtrace/contrib/sanic/patch.py index cf4306196df..41f1bfa2bfd 100644 --- a/ddtrace/contrib/sanic/patch.py +++ b/ddtrace/contrib/sanic/patch.py @@ -78,6 +78,11 @@ def _get_path(request): except sanic.exceptions.SanicException: return path for key, value in...
carpentries__amy-2251
Workshop activity shall be ordered by time in the instructor profile At the very bottom of https://amy.carpentries.org/dashboard/instructor/, there is a "Your workshop activity:" table, listing all workshop activity of an instructor. Currently, these workshops are listed in a seemingly random order, making it inconveni...
[ { "content": "from datetime import date, timedelta\nimport re\nfrom typing import Dict, Optional\n\nfrom django.contrib import messages\nfrom django.contrib.auth.mixins import LoginRequiredMixin\nfrom django.db.models import Case, Count, IntegerField, Prefetch, Q, Value, When\nfrom django.forms.widgets import H...
[ { "content": "from datetime import date, timedelta\nimport re\nfrom typing import Dict, Optional\n\nfrom django.contrib import messages\nfrom django.contrib.auth.mixins import LoginRequiredMixin\nfrom django.db.models import Case, Count, IntegerField, Prefetch, Q, Value, When\nfrom django.forms.widgets import H...
diff --git a/amy/dashboard/views.py b/amy/dashboard/views.py index e2ca626e7..2979e7855 100644 --- a/amy/dashboard/views.py +++ b/amy/dashboard/views.py @@ -124,7 +124,9 @@ def instructor_dashboard(request): "languages", Prefetch( "task_set", - queryset=Task.objects.select_rela...
kivy__python-for-android-1815
packaged python is built with IPv6 disabled Is there any reason for IPv6 being disabled? https://github.com/kivy/python-for-android/blob/f16a66590c92bb57c69b214b2b69dfaa6dc1e0ed/pythonforandroid/recipes/python3/__init__.py#L37
[ { "content": "import sh\nfrom pythonforandroid.python import GuestPythonRecipe\nfrom pythonforandroid.recipe import Recipe\n\n\nclass Python3Recipe(GuestPythonRecipe):\n '''\n The python3's recipe.\n\n .. note:: This recipe can be built only against API 21+. Also, in order to\n build certain pyt...
[ { "content": "import sh\nfrom pythonforandroid.python import GuestPythonRecipe\nfrom pythonforandroid.recipe import Recipe\n\n\nclass Python3Recipe(GuestPythonRecipe):\n '''\n The python3's recipe.\n\n .. note:: This recipe can be built only against API 21+. Also, in order to\n build certain pyt...
diff --git a/pythonforandroid/recipes/python3/__init__.py b/pythonforandroid/recipes/python3/__init__.py index c6d5ba5e50..47656754ea 100644 --- a/pythonforandroid/recipes/python3/__init__.py +++ b/pythonforandroid/recipes/python3/__init__.py @@ -34,7 +34,7 @@ class Python3Recipe(GuestPythonRecipe): '--host={a...
google__timesketch-1384
UI: Display Data Sources per Timeline & Make them Clickable Details - The request consists of 3 parts: 1) For each of the timelines that part of a sketch, it would be great to have a list of all data sources that it includes and for each of them the number of entries. Ideally, those data sources should be converte...
[ { "content": "# Copyright 2015 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# Unless...
[ { "content": "# Copyright 2015 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# Unless...
diff --git a/timesketch/frontend/src/components/Sketch/EventListRowDetail.vue b/timesketch/frontend/src/components/Sketch/EventListRowDetail.vue index 18f5e17ba7..cc6d530d3e 100644 --- a/timesketch/frontend/src/components/Sketch/EventListRowDetail.vue +++ b/timesketch/frontend/src/components/Sketch/EventListRowDetail.v...
pypa__cibuildwheel-1564
--only shouldn't require CIBW_PRERELEASE_PYTHONS ### Description Using `--only` to target a pre-release Python shouldn't require `CIBW_PRERELEASE_PYTHONS` be set. ### Build log _No response_ ### CI config _No response_
[ { "content": "from __future__ import annotations\n\nimport collections\nimport configparser\nimport contextlib\nimport dataclasses\nimport difflib\nimport functools\nimport shlex\nimport sys\nimport textwrap\nimport traceback\nfrom collections.abc import Callable, Generator, Iterable, Iterator, Mapping, Set\nfr...
[ { "content": "from __future__ import annotations\n\nimport collections\nimport configparser\nimport contextlib\nimport dataclasses\nimport difflib\nimport functools\nimport shlex\nimport sys\nimport textwrap\nimport traceback\nfrom collections.abc import Callable, Generator, Iterable, Iterator, Mapping, Set\nfr...
diff --git a/cibuildwheel/options.py b/cibuildwheel/options.py index fd6fabfe1..581e576b8 100644 --- a/cibuildwheel/options.py +++ b/cibuildwheel/options.py @@ -450,6 +450,7 @@ def globals(self) -> GlobalOptions: build_config = args.only skip_config = "" architectures = Architectu...
pytorch__pytorch-99103
```load_sharded_optimizer_state_dict``` error on multi node ### 🐛 Describe the bug I am hitting the following error when loading optimizer using FSDP with 2 nodes. No issues when saving/loading optimizer with single node. ``` optim_state = load_sharded_optimizer_state_dict( model_state_dict=state_dict["model...
[ { "content": "# Copyright (c) Meta Platforms, Inc. and affiliates\n\nimport copy\nimport dataclasses\nfrom typing import Dict, List, Optional, Sequence, Tuple, Union, cast\nfrom torch.distributed.checkpoint.planner import LoadPlan\n\nimport torch\nimport torch.distributed as dist\nfrom torch.distributed._shard....
[ { "content": "# Copyright (c) Meta Platforms, Inc. and affiliates\n\nimport copy\nimport dataclasses\nfrom typing import Dict, List, Optional, Sequence, Tuple, Union, cast\nfrom torch.distributed.checkpoint.planner import LoadPlan\n\nimport torch\nimport torch.distributed as dist\nfrom torch.distributed._shard....
diff --git a/torch/distributed/checkpoint/optimizer.py b/torch/distributed/checkpoint/optimizer.py index 26d11c95f1759b..e2847fad729f54 100644 --- a/torch/distributed/checkpoint/optimizer.py +++ b/torch/distributed/checkpoint/optimizer.py @@ -255,7 +255,8 @@ def load_sharded_optimizer_state_dict( sharding_spec...
ansible-collections__community.general-6942
machinectl become plugin does not specify it requires a tty ### Summary see https://github.com/ansible/ansible/issues/81254 if the plugin sets the class attribute: ``` require_tty = True ``` It would automatically disable pipelining and avoid such errors ### Issue Type Bug Report ### Component Name bec...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2018, Ansible Project\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\nfrom __future__ import (absolute_import, division, print_function)\n__met...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2018, Ansible Project\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\nfrom __future__ import (absolute_import, division, print_function)\n__met...
diff --git a/changelogs/fragments/6935-machinectl-become.yml b/changelogs/fragments/6935-machinectl-become.yml new file mode 100644 index 00000000000..fe1fcc6273f --- /dev/null +++ b/changelogs/fragments/6935-machinectl-become.yml @@ -0,0 +1,2 @@ +bugfixes: + - "machinectl become plugin - mark plugin as ``require_tty`...
beeware__toga-1785
Text within MultilineTextInput remains black in macOS Dark Mode ### Describe the bug When using macOS in dark mode, the text within MultilineTextInput widgets remains black, making it difficult to read. ### Steps to reproduce 1. Add a MultilineTextInput widget to an app 2. Ensure macOS dark mode is enabled 3. View...
[ { "content": "from travertino.size import at_least\n\nfrom toga_cocoa.colors import native_color\nfrom toga_cocoa.libs import (\n NSBezelBorder,\n NSScrollView,\n NSTextView,\n NSViewWidthSizable,\n objc_method,\n)\n\nfrom .base import Widget\n\n\nclass TogaTextView(NSTextView):\n @objc_method...
[ { "content": "from travertino.size import at_least\n\nfrom toga_cocoa.colors import native_color\nfrom toga_cocoa.libs import (\n NSBezelBorder,\n NSScrollView,\n NSTextView,\n NSViewWidthSizable,\n objc_method,\n)\n\nfrom .base import Widget\n\n\nclass TogaTextView(NSTextView):\n @objc_method...
diff --git a/changes/1783.bugfix.rst b/changes/1783.bugfix.rst new file mode 100644 index 0000000000..51951d61e3 --- /dev/null +++ b/changes/1783.bugfix.rst @@ -0,0 +1 @@ +MultilineTextInput now correctly adapts to Dark Mode on macOS. diff --git a/cocoa/src/toga_cocoa/widgets/multilinetextinput.py b/cocoa/src/toga_coco...
sktime__sktime-5422
[BUG] MCDCNNClassifier.fit runs only 1 training epoch Despite n_epochs being set to 200, only one training epoch will be executed here: ```python from sktime.classification.deep_learning.mcdcnn import MCDCNNClassifier from keras.losses import binary_crossentropy model = MCDCNNClassifier(n_epochs=200, batch_size...
[ { "content": "\"\"\"Multi Channel Deep Convolutional Neural Classifier (MCDCNN).\"\"\"\r\n\r\n__author__ = [\r\n \"JamesLarge\",\r\n]\r\n\r\nfrom copy import deepcopy\r\n\r\nimport numpy as np\r\nfrom sklearn.utils import check_random_state\r\n\r\nfrom sktime.classification.deep_learning.base import BaseDeep...
[ { "content": "\"\"\"Multi Channel Deep Convolutional Neural Classifier (MCDCNN).\"\"\"\r\n\r\n__author__ = [\r\n \"JamesLarge\",\r\n]\r\n\r\nfrom copy import deepcopy\r\n\r\nimport numpy as np\r\nfrom sklearn.utils import check_random_state\r\n\r\nfrom sktime.classification.deep_learning.base import BaseDeep...
diff --git a/sktime/classification/deep_learning/mcdcnn.py b/sktime/classification/deep_learning/mcdcnn.py index a3c14a6a7cc..f8315e91e87 100644 --- a/sktime/classification/deep_learning/mcdcnn.py +++ b/sktime/classification/deep_learning/mcdcnn.py @@ -215,6 +215,7 @@ def _fit(self, X, y): self.history = self....
ansible-collections__community.general-6941
machinectl become plugin does not specify it requires a tty ### Summary see https://github.com/ansible/ansible/issues/81254 if the plugin sets the class attribute: ``` require_tty = True ``` It would automatically disable pipelining and avoid such errors ### Issue Type Bug Report ### Component Name bec...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2018, Ansible Project\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\nfrom __future__ import (absolute_import, division, print_function)\n__met...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2018, Ansible Project\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\nfrom __future__ import (absolute_import, division, print_function)\n__met...
diff --git a/changelogs/fragments/6935-machinectl-become.yml b/changelogs/fragments/6935-machinectl-become.yml new file mode 100644 index 00000000000..fe1fcc6273f --- /dev/null +++ b/changelogs/fragments/6935-machinectl-become.yml @@ -0,0 +1,2 @@ +bugfixes: + - "machinectl become plugin - mark plugin as ``require_tty`...
OpenMined__PySyft-4044
Flaky exp test ## Description The tolerance for the ```exp``` needs to be increased since it is failing randomly (because of the random order in which we run the tests). ## How to Reproduce ``` ____________________ test_torch_sigmoid_approx[exp-3-0.065] ____________________ method = 'exp', prec_frac = 3, toler...
[ { "content": "import torch\nimport warnings\n\nimport syft\nfrom syft.frameworks.torch.nn import nn\nfrom syft.frameworks.torch.tensors.interpreters.additive_shared import AdditiveSharingTensor\nfrom syft.generic.frameworks.hook import hook_args\nfrom syft.generic.frameworks.overload import overloaded\nfrom syf...
[ { "content": "import torch\nimport warnings\n\nimport syft\nfrom syft.frameworks.torch.nn import nn\nfrom syft.frameworks.torch.tensors.interpreters.additive_shared import AdditiveSharingTensor\nfrom syft.generic.frameworks.hook import hook_args\nfrom syft.generic.frameworks.overload import overloaded\nfrom syf...
diff --git a/syft/frameworks/torch/tensors/interpreters/precision.py b/syft/frameworks/torch/tensors/interpreters/precision.py index b79eead63e3..d906c96fd2d 100644 --- a/syft/frameworks/torch/tensors/interpreters/precision.py +++ b/syft/frameworks/torch/tensors/interpreters/precision.py @@ -559,7 +559,7 @@ def _sigmoi...
google__turbinia-1227
Create documentation for the Turbinia API command line tool Write documentation for the new Turbinia API command line tool.
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2022 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2022 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U...
diff --git a/README.md b/README.md index b9eca7dcf..91c29e9ec 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,8 @@ The basic steps to get things running after the initial installation and configuration are: * Start Turbinia server component with `turbiniactl server` command -* Start one or more Turbinia wor...
xonsh__xonsh-4919
bug: no error message in cd when $THREAD_SUBPROCS is False <!--- Provide a general summary of the issue in the Title above --> <!--- If you have a question along the lines of "How do I do this Bash command in xonsh" please first look over the Bash to Xonsh translation guide: https://xon.sh/bash_to_xsh.html If you do...
[ { "content": "\"\"\"Subprocess specification and related utilities.\"\"\"\nimport contextlib\nimport inspect\nimport io\nimport os\nimport pathlib\nimport re\nimport shlex\nimport signal\nimport stat\nimport subprocess\nimport sys\n\nimport xonsh.environ as xenv\nimport xonsh.jobs as xj\nimport xonsh.lazyasd as...
[ { "content": "\"\"\"Subprocess specification and related utilities.\"\"\"\nimport contextlib\nimport inspect\nimport io\nimport os\nimport pathlib\nimport re\nimport shlex\nimport signal\nimport stat\nimport subprocess\nimport sys\n\nimport xonsh.environ as xenv\nimport xonsh.jobs as xj\nimport xonsh.lazyasd as...
diff --git a/news/fix-procproxy-capture.rst b/news/fix-procproxy-capture.rst new file mode 100644 index 0000000000..8d71c963a5 --- /dev/null +++ b/news/fix-procproxy-capture.rst @@ -0,0 +1,23 @@ +**Added:** + +* <news item> + +**Changed:** + +* With ``$THREAD_SUBPROCS=False``: When a callable alias is executed with ``!...
hpcaitech__ColossalAI-4934
[tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests
[ { "content": "import math\nfrom typing import Optional\n\nimport torch\n\nfrom colossalai.kernel.op_builder import CPUAdamBuilder\n\nfrom .nvme_optimizer import NVMeOptimizer\n\n\nclass CPUAdam(NVMeOptimizer):\n \"\"\"Implements Adam algorithm.\n\n Supports parameters updating on both GPU and CPU, dependi...
[ { "content": "import math\nfrom typing import Optional\n\nimport torch\n\nfrom colossalai.kernel.op_builder import CPUAdamBuilder\n\nfrom .nvme_optimizer import NVMeOptimizer\n\n\nclass CPUAdam(NVMeOptimizer):\n \"\"\"\n Implements Adam algorithm.\n\n Supports parameters updating on both GPU and CPU, d...
diff --git a/colossalai/nn/optimizer/cpu_adam.py b/colossalai/nn/optimizer/cpu_adam.py index 238ba366da43..c3c0180e8516 100644 --- a/colossalai/nn/optimizer/cpu_adam.py +++ b/colossalai/nn/optimizer/cpu_adam.py @@ -9,7 +9,8 @@ class CPUAdam(NVMeOptimizer): - """Implements Adam algorithm. + """ + Implement...
feast-dev__feast-2753
Unable to access data in Feast UI when deployed to remote instance ## Expected Behavior Should be able to view registry data when launching UI with `feast ui` on remote instances (like EC2). ## Current Behavior I’ve tried setting the host to `0.0.0.0` and the static assets get loaded and can accessed via the pub...
[ { "content": "import json\nimport threading\nfrom typing import Callable, Optional\n\nimport pkg_resources\nimport uvicorn\nfrom fastapi import FastAPI, Response\nfrom fastapi.middleware.cors import CORSMiddleware\nfrom fastapi.staticfiles import StaticFiles\n\nimport feast\n\n\ndef get_app(\n store: \"feast...
[ { "content": "import json\nimport threading\nfrom typing import Callable, Optional\n\nimport pkg_resources\nimport uvicorn\nfrom fastapi import FastAPI, Response\nfrom fastapi.middleware.cors import CORSMiddleware\nfrom fastapi.staticfiles import StaticFiles\n\nimport feast\n\n\ndef get_app(\n store: \"feast...
diff --git a/sdk/python/feast/ui_server.py b/sdk/python/feast/ui_server.py index 5206dd5161e..cb275c8f912 100644 --- a/sdk/python/feast/ui_server.py +++ b/sdk/python/feast/ui_server.py @@ -62,7 +62,7 @@ def shutdown_event(): "name": "Project", "description": "Test project", ...
spack__spack-3825
`scorep` does not work on Darwin The Score-P package requires a case-sensitive file system. This is described in the install notes, and I confirmed with the developers. I suggest to disable Score-P on Darwin to avoid others having to track down this problem in the same way I had to. Alternatively, we can add an install...
[ { "content": "##############################################################################\n# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All righ...
[ { "content": "##############################################################################\n# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All righ...
diff --git a/var/spack/repos/builtin/packages/scorep/package.py b/var/spack/repos/builtin/packages/scorep/package.py index d34ad072ee1fab..75c88e7be21458 100644 --- a/var/spack/repos/builtin/packages/scorep/package.py +++ b/var/spack/repos/builtin/packages/scorep/package.py @@ -65,6 +65,11 @@ class Scorep(AutotoolsPack...
ivy-llc__ivy-14811
[Bug]: ivy.gamma implementation bug ### Bug Explanation Currently, backend implementations of `gamma` are failing due to `ivy.Shape` being passed to framework specific backend functions. I suspect that this is related to the `ivy.Shape` refactor and is independent of the following issue. `ivy.experimental.random.ga...
[ { "content": "# local\nfrom typing import Optional, Union, Sequence\nimport ivy\nfrom ivy.func_wrapper import (\n handle_out_argument,\n to_native_arrays_and_back,\n inputs_to_native_shapes,\n handle_nestable,\n infer_dtype,\n infer_device,\n)\nfrom ivy.utils.exceptions import handle_exception...
[ { "content": "# local\nfrom typing import Optional, Union, Sequence\nimport ivy\nfrom ivy.func_wrapper import (\n handle_out_argument,\n to_native_arrays_and_back,\n inputs_to_native_shapes,\n handle_nestable,\n infer_dtype,\n infer_device,\n)\nfrom ivy.utils.exceptions import handle_exception...
diff --git a/ivy/functional/ivy/experimental/random.py b/ivy/functional/ivy/experimental/random.py index e142a103f3800..998c64dbc2596 100644 --- a/ivy/functional/ivy/experimental/random.py +++ b/ivy/functional/ivy/experimental/random.py @@ -177,7 +177,7 @@ def gamma( Returns an array filled with random values ...
chainer__chainer-7167
[BUG] Wrong initialization of the Linear link weights when called with n_batch_axes>1 # **Overview** When creating the _Linear_ link without specifying the __input_size__ in the constructor and then calling the link with the parameter __n_batch_axes__ > 1, the weight matrix is initialized with a wrong shape and causes...
[ { "content": "import typing as tp # NOQA\n\nfrom chainer.functions.connection import linear\nfrom chainer import initializers\nfrom chainer import link\nfrom chainer import types # NOQA\nfrom chainer import utils\nfrom chainer import variable\n\n\nclass Linear(link.Link):\n\n \"\"\"Linear layer (a.k.a.\\\\...
[ { "content": "import typing as tp # NOQA\n\nfrom chainer.functions.connection import linear\nfrom chainer import initializers\nfrom chainer import link\nfrom chainer import types # NOQA\nfrom chainer import utils\nfrom chainer import variable\n\n\nclass Linear(link.Link):\n\n \"\"\"Linear layer (a.k.a.\\\\...
diff --git a/chainer/links/connection/linear.py b/chainer/links/connection/linear.py index 227a0f0139f7..74c1833207ef 100644 --- a/chainer/links/connection/linear.py +++ b/chainer/links/connection/linear.py @@ -150,6 +150,6 @@ def forward(self, x, n_batch_axes=1): """ if self.W.array is None: - ...
holoviz__panel-3100
Django autoload_handle broken #### ALL software version info Panel = 0.13.0a25 Bokeh = 2.4.2 Django = 2.2.14 When loading a Panel app embedded in Django, the `AutoloadJsConsumer` call just hangs. After stepping through the code it appears there is an error, which causes it to enter an eternal loop: ```pyth...
[ { "content": "from urllib.parse import urlparse\n\nfrom bokeh.server.django.consumers import DocConsumer, AutoloadJsConsumer\n\nfrom .resources import Resources\nfrom .server import (\n autoload_js_script, server_html_page_for_session\n)\n\nasync def doc_handle(self, body):\n session = await self._get_ses...
[ { "content": "from urllib.parse import urlparse\n\nfrom bokeh.server.django.consumers import DocConsumer, AutoloadJsConsumer\n\nfrom .resources import Resources\nfrom .server import (\n autoload_js_script, server_html_page_for_session\n)\n\nasync def doc_handle(self, body):\n session = await self._get_ses...
diff --git a/panel/io/django.py b/panel/io/django.py index 0bc49a5af2..62ff9b7f2b 100644 --- a/panel/io/django.py +++ b/panel/io/django.py @@ -34,7 +34,7 @@ async def autoload_handle(self, body): server_url = None resources = self.resources(server_url) - js = autoload_js_script(resources, session.tok...
openstates__openstates-scrapers-1346
IN: leading 0 in url link to senate bill In Indiana senate bills such as this one: https://openstates.org/in/bills/2017/SB285/ the url provided to the actual bill contains a leading zero: http://iga.in.gov/legislative/2017/bills/senate/0285 The bill id has a leading 0 but the working URL does not contain the le...
[ { "content": "import re\nimport datetime\nimport os\nfrom collections import OrderedDict\n\nimport scrapelib\n\nfrom billy.scrape.bills import BillScraper, Bill\nfrom billy.scrape.votes import Vote\nfrom billy.scrape.utils import convert_pdf\n\nimport pytz\nimport lxml.html\n\nfrom .actions import Categorizer\n...
[ { "content": "import re\nimport datetime\nimport os\nfrom collections import OrderedDict\n\nimport scrapelib\n\nfrom billy.scrape.bills import BillScraper, Bill\nfrom billy.scrape.votes import Vote\nfrom billy.scrape.utils import convert_pdf\n\nimport pytz\nimport lxml.html\n\nfrom .actions import Categorizer\n...
diff --git a/openstates/in/bills.py b/openstates/in/bills.py index 41f0bab086..20593ce7b0 100644 --- a/openstates/in/bills.py +++ b/openstates/in/bills.py @@ -24,7 +24,7 @@ class INBillScraper(BillScraper): def _get_bill_id_components(self, bill_id): bill_prefix = ''.join([c for c in bill_id if c.isalph...
pandas-dev__pandas-4991
BUG: Unexpected behaviour when reading large text files with mixed datatypes read_csv gives unexpected behaviour with large files if a column contains both strings and integers. eg ``` python >>> df=DataFrame({'colA':range(500000-1)+['apple', 'pear']+range(500000-1)}) len(set(df.colA)) 500001 >>> df.to_csv('testpand...
[ { "content": "\"\"\"Common IO api utilities\"\"\"\n\nimport sys\nimport zipfile\nfrom contextlib import contextmanager, closing\n\nfrom pandas.compat import StringIO\nfrom pandas import compat\n\n\nif compat.PY3:\n from urllib.request import urlopen\n _urlopen = urlopen\n from urllib.parse import urlpa...
[ { "content": "\"\"\"Common IO api utilities\"\"\"\n\nimport sys\nimport zipfile\nfrom contextlib import contextmanager, closing\n\nfrom pandas.compat import StringIO\nfrom pandas import compat\n\n\nif compat.PY3:\n from urllib.request import urlopen\n _urlopen = urlopen\n from urllib.parse import urlpa...
diff --git a/doc/source/release.rst b/doc/source/release.rst index ce08a1ca0a175..810889cbc4b26 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -480,6 +480,8 @@ Bug Fixes - Fixed wrong check for overlapping in ``DatetimeIndex.union`` (:issue:`4564`) - Fixed conflict between thousands separator...
Lightning-AI__pytorch-lightning-3419
CometLogger failing without save_dir <!-- ### Common bugs: 1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79). 2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/pytorch-lightning#faq) --> ## 🐛 Bug ...
[ { "content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
[ { "content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
diff --git a/pytorch_lightning/loggers/comet.py b/pytorch_lightning/loggers/comet.py index 38d288a881041..e3e8d82ed7618 100644 --- a/pytorch_lightning/loggers/comet.py +++ b/pytorch_lightning/loggers/comet.py @@ -139,6 +139,7 @@ def __init__(self, elif api_key is not None: self.mode = "online" ...
conda-forge__conda-smithy-144
Linter: handle environ Same issue as https://github.com/conda-forge/conda-forge.github.io/issues/93. Same fix needed: https://github.com/conda-forge/conda-forge.github.io/pull/107/files Linter: handle environ Same issue as https://github.com/conda-forge/conda-forge.github.io/issues/93. Same fix needed: https://github....
[ { "content": "import os\nimport re\n\nimport jinja2\nimport ruamel.yaml\n\n\nEXPECTED_SECTION_ORDER = ['package', 'source', 'build', 'requirements',\n 'test', 'app', 'about', 'extra']\n\nREQUIREMENTS_ORDER = ['build', 'run']\n\n\nclass NullUndefined(jinja2.Undefined):\n def __unicode...
[ { "content": "import os\nimport re\n\nimport jinja2\nimport ruamel.yaml\n\n\nEXPECTED_SECTION_ORDER = ['package', 'source', 'build', 'requirements',\n 'test', 'app', 'about', 'extra']\n\nREQUIREMENTS_ORDER = ['build', 'run']\n\n\nclass NullUndefined(jinja2.Undefined):\n def __unicode...
diff --git a/conda_smithy/lint_recipe.py b/conda_smithy/lint_recipe.py index d1a3d2048..955e55b35 100644 --- a/conda_smithy/lint_recipe.py +++ b/conda_smithy/lint_recipe.py @@ -15,6 +15,11 @@ class NullUndefined(jinja2.Undefined): def __unicode__(self): return unicode(self._undefined_name) + def __ge...
kubeflow__pipelines-5135
Presubmit failure If you look into the test it said ``` Traceback (most recent call last): File "<string>", line 3, in <module> File "/usr/local/lib/python3.6/site-packages/kfp/__init__.py", line 24, in <module> from ._client import Client File "/usr/local/lib/python3.6/site-packages/kfp/_client.py", li...
[ { "content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/api/v2alpha1/python/setup.py b/api/v2alpha1/python/setup.py index 7dc38d7de17..767f4e46069 100644 --- a/api/v2alpha1/python/setup.py +++ b/api/v2alpha1/python/setup.py @@ -84,6 +84,7 @@ def GenerateProto(source): url="https://github.com/kubeflow/pipelines", packages=setuptools.find_namespace_pack...
Mailu__Mailu-1944
Letsencrypt Force Renewal Is there a limit on the Subject Alt Name entries? I have updated my /mailu/mailu.env "HOSTNAMES" variable, but when I restart Mailu it doesn't update the Subject Alt Names on the mailu cert. Previously it has worked, so I am guessing that I need to force Letsencrypt to refresh as it isnt...
[ { "content": "#!/usr/bin/python3\n\nimport os\nimport time\nimport subprocess\n\n\ncommand = [\n \"certbot\",\n \"-n\", \"--agree-tos\", # non-interactive\n \"-d\", os.environ[\"HOSTNAMES\"],\n \"-m\", \"{}@{}\".format(os.environ[\"POSTMASTER\"], os.environ[\"DOMAIN\"]),\n \"certonly\", \"--stand...
[ { "content": "#!/usr/bin/python3\n\nimport os\nimport time\nimport subprocess\n\n\ncommand = [\n \"certbot\",\n \"-n\", \"--agree-tos\", # non-interactive\n \"-d\", os.environ[\"HOSTNAMES\"],\n \"-m\", \"{}@{}\".format(os.environ[\"POSTMASTER\"], os.environ[\"DOMAIN\"]),\n \"certonly\", \"--stand...
diff --git a/core/nginx/letsencrypt.py b/core/nginx/letsencrypt.py index 3fe8ea929..ea5f26cf4 100755 --- a/core/nginx/letsencrypt.py +++ b/core/nginx/letsencrypt.py @@ -14,8 +14,8 @@ "--cert-name", "mailu", "--preferred-challenges", "http", "--http-01-port", "8008", "--keep-until-expiring", - "--rsa-k...
abey79__vpype-564
viewer: the document is not refitted when changed with "fit to view" activated This affects vsketch, when document size is updated by parameters.
[ { "content": "\"\"\"\nGeneric viewer\n\"\"\"\nfrom __future__ import annotations\n\nimport enum\nfrom collections import defaultdict\nfrom typing import Callable\n\nimport moderngl as mgl\nimport numpy as np\n\nimport vpype as vp\n\nfrom ._painters import (\n LineCollectionFastColorfulPainter,\n LineColle...
[ { "content": "\"\"\"\nGeneric viewer\n\"\"\"\nfrom __future__ import annotations\n\nimport enum\nfrom collections import defaultdict\nfrom typing import Callable\n\nimport moderngl as mgl\nimport numpy as np\n\nimport vpype as vp\n\nfrom ._painters import (\n LineCollectionFastColorfulPainter,\n LineColle...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5101cc9e..41f598c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Release date: UNRELEASED ### Bug fixes * Fixed a viewer issue where page width/height of 0 would lead to errors and a blank display (#555) +* Fixed a viewer issue where fitting the docume...
LibraryOfCongress__concordia-240
Enable Adobe DTM for Analytics (closes #160) This embeds the code but Adobe’s instructions violate web performance guidelines and we should review this carefully to see how much Adobe is affecting site performance.
[ { "content": "from django.conf import settings\n\n\ndef system_configuration(request):\n \"\"\"\n Expose some system configuration to the default template context\n \"\"\"\n\n return {\"SENTRY_PUBLIC_DSN\": getattr(settings, \"SENTRY_PUBLIC_DSN\", None)}\n\n\ndef site_navigation(request):\n data ...
[ { "content": "from django.conf import settings\n\n\ndef system_configuration(request):\n \"\"\"\n Expose some system configuration to the default template context\n \"\"\"\n\n return {\n \"SENTRY_PUBLIC_DSN\": getattr(settings, \"SENTRY_PUBLIC_DSN\", None),\n \"CONCORDIA_ENVIRONMENT\":...
diff --git a/concordia/context_processors.py b/concordia/context_processors.py index fc170c8c5..b1cf48514 100644 --- a/concordia/context_processors.py +++ b/concordia/context_processors.py @@ -6,7 +6,10 @@ def system_configuration(request): Expose some system configuration to the default template context """ ...
fidals__shopelectro-885
Stale import db issue PO says the last import was at `<yml_catalog date="2019-05-23 00:38">` Check if import db can autolaunch. Import db is called as catalog update command
[ { "content": "\"\"\"\nUpdate Product.in_pack and prices.\n\nThe update_catalog command always resets product prices to per unit format, so:\n1. Parse in pack quantity from Tag.name and save it to Product.in_pack\n2. Multiply product prices by in_pack value and save.\n\"\"\"\nimport logging\n\nfrom django.db imp...
[ { "content": "\"\"\"\nUpdate Product.in_pack and prices.\n\nThe update_catalog command always resets product prices to per unit format, so:\n1. Parse in pack quantity from Tag.name and save it to Product.in_pack\n2. Multiply product prices by in_pack value and save.\n\"\"\"\nimport logging\n\nfrom django.db imp...
diff --git a/shopelectro/management/commands/_update_catalog/update_pack.py b/shopelectro/management/commands/_update_catalog/update_pack.py index faa3e9c5..2ab1f4d2 100644 --- a/shopelectro/management/commands/_update_catalog/update_pack.py +++ b/shopelectro/management/commands/_update_catalog/update_pack.py @@ -30,7 ...
electricitymaps__electricitymaps-contrib-3241
NL Down ENTSO-E data seems fine, so is there a problem with energieopwek.nl?
[ { "content": "#!/usr/bin/env python3\n\nimport arrow\nimport math\n\nfrom . import statnett\nfrom . import ENTSOE\nfrom . import DK\nimport logging\nimport pandas as pd\nimport requests\n\n\ndef fetch_production(zone_key='NL', session=None, target_datetime=None,\n logger=logging.getLogger(__...
[ { "content": "#!/usr/bin/env python3\n\nimport arrow\nimport math\n\nfrom . import statnett\nfrom . import ENTSOE\nfrom . import DK\nimport logging\nimport pandas as pd\nimport requests\n\n\ndef fetch_production(zone_key='NL', session=None, target_datetime=None,\n logger=logging.getLogger(__...
diff --git a/config/co2eq_parameters.json b/config/co2eq_parameters.json index 593567622b..939fbde15f 100644 --- a/config/co2eq_parameters.json +++ b/config/co2eq_parameters.json @@ -606,9 +606,9 @@ "value": 462.73049119238584 }, "unknown": { - "_url": "https://github.com/tmrowco/e...