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
⌀
svthalia__concrexit-2218
Don't revoke staff status for superusers ### Describe the bug After #312, staff status will get revoked for superusers too. That shouldn't happen ### How to reproduce Have a super user that is not in a committee. ### Expected behaviour No staff status revoking ### Screenshots ### Additional context
[ { "content": "from django.db.models import Count, Q\nfrom django.utils import timezone\n\nfrom activemembers.models import Committee\nfrom members.models.member import Member\n\n\ndef generate_statistics() -> dict:\n \"\"\"Generate statistics about number of members in each committee.\"\"\"\n committees =...
[ { "content": "from django.db.models import Count, Q\nfrom django.utils import timezone\n\nfrom activemembers.models import Committee\nfrom members.models.member import Member\n\n\ndef generate_statistics() -> dict:\n \"\"\"Generate statistics about number of members in each committee.\"\"\"\n committees =...
diff --git a/website/activemembers/services.py b/website/activemembers/services.py index 4d8d7dcbf..caa9c307f 100644 --- a/website/activemembers/services.py +++ b/website/activemembers/services.py @@ -36,7 +36,7 @@ def revoke_staff_permission_for_users_in_no_commitee(): members = Member.objects.filter(is_staff=Tru...
locustio__locust-528
Add Python 3.6 to build pipeline
[ { "content": "# encoding: utf-8\n\nfrom setuptools import setup, find_packages, Command\nimport sys, os, re, ast\n\n\n# parse version from locust/__init__.py\n_version_re = re.compile(r'__version__\\s+=\\s+(.*)')\n_init_file = os.path.join(os.path.abspath(os.path.dirname(__file__)), \"locust\", \"__init__.py\")...
[ { "content": "# encoding: utf-8\n\nfrom setuptools import setup, find_packages, Command\nimport sys, os, re, ast\n\n\n# parse version from locust/__init__.py\n_version_re = re.compile(r'__version__\\s+=\\s+(.*)')\n_init_file = os.path.join(os.path.abspath(os.path.dirname(__file__)), \"locust\", \"__init__.py\")...
diff --git a/.travis.yml b/.travis.yml index 5cbf7a5241..79606a97f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,17 @@ sudo: false language: python -python: - # Workaround for https://github.com/travis-ci/travis-ci/issues/4794 - - 3.5 -env: - - TOXENV=py27 - - TOXENV=py33 - - TOXENV=py34 - - TOXENV=py...
buildbot__buildbot-5768
Send keepalive messages on websocket to prevent cloudflare disconnect buildbot behind cloudflare is currently reloading for me every 100 seconds. This is due to a cloudflare limitation that is resetting websockets with 100 seconds of inactivity. It seems the only ways around that is either an upgrade to their enterpris...
[ { "content": "# This file is part of . Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n# ANY WA...
[ { "content": "# This file is part of . Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n# ANY WA...
diff --git a/master/buildbot/newsfragments/ws-ping-interval.feature b/master/buildbot/newsfragments/ws-ping-interval.feature new file mode 100644 index 000000000000..d0489fca94f3 --- /dev/null +++ b/master/buildbot/newsfragments/ws-ping-interval.feature @@ -0,0 +1 @@ +A new ``www.ws_ping_interval`` configuration option...
mlflow__mlflow-5747
Typos | Line | Typo | Assignee | PR | | :--------------------------------------------------------------- | :------------ | :--------------- | :---- | | [dev/set_matrix.py#l304] | exisiting | @sh...
[ { "content": "import collections\nfrom packaging.version import Version\nimport inspect\nimport logging\nfrom numbers import Number\nimport numpy as np\nimport time\nimport warnings\n\nfrom mlflow.tracking.client import MlflowClient\nfrom mlflow.utils.file_utils import TempDir\nfrom mlflow.utils.mlflow_tags imp...
[ { "content": "import collections\nfrom packaging.version import Version\nimport inspect\nimport logging\nfrom numbers import Number\nimport numpy as np\nimport time\nimport warnings\n\nfrom mlflow.tracking.client import MlflowClient\nfrom mlflow.utils.file_utils import TempDir\nfrom mlflow.utils.mlflow_tags imp...
diff --git a/mlflow/sklearn/utils.py b/mlflow/sklearn/utils.py index e453b5fbccc1e..6159a892cd0a3 100644 --- a/mlflow/sklearn/utils.py +++ b/mlflow/sklearn/utils.py @@ -817,7 +817,7 @@ def _backported_all_estimators(type_filter=None): ------- estimators : list of tuples List of (name, class), where `...
ansible-collections__community.general-6371
community.general.flatpak module isn't idempotent when installing packages ### Summary I'm trying to install a list of flatpaks `roles/05_packages/tasks/flatpak.yml` ``` --- - name: Add Flathub repository community.general.flatpak_remote: name: flathub state: present flatpakrepo_url: https://...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2017 John Kwiatkoski (@JayKayy) <jkwiat40@gmail.com>\n# Copyright (c) 2018 Alexander Bethke (@oolongbrothers) <oolongbrothers@gmx.net>\n# Copyright (c) 2017 Ansible Project\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-la...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2017 John Kwiatkoski (@JayKayy) <jkwiat40@gmail.com>\n# Copyright (c) 2018 Alexander Bethke (@oolongbrothers) <oolongbrothers@gmx.net>\n# Copyright (c) 2017 Ansible Project\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-la...
diff --git a/changelogs/fragments/6289-bugfix-flatpak-check-if-already-installed.yml b/changelogs/fragments/6289-bugfix-flatpak-check-if-already-installed.yml new file mode 100644 index 00000000000..e3312500351 --- /dev/null +++ b/changelogs/fragments/6289-bugfix-flatpak-check-if-already-installed.yml @@ -0,0 +1,2 @@ +...
nilearn__nilearn-1809
NiftiMasker with target_affine throws exception. I am using the NifitiMasker in a sklearn pipeline. Everythings works fine until i try to reshape the images: `nifti_masker = NiftiMasker(target_affine=np.eye(3)*3)` The error i got was: `File "/anaconda3/envs/toolbox/lib/python3.6/site-packages/nilearn/masking.p...
[ { "content": "\"\"\"\nTransformer used to apply basic transformations on MRI data.\n\"\"\"\n# Author: Gael Varoquaux, Alexandre Abraham\n# License: simplified BSD\n\nfrom copy import copy as copy_object\n\nfrom sklearn.externals.joblib import Memory\n\nfrom .base_masker import BaseMasker, filter_and_extract\nfr...
[ { "content": "\"\"\"\nTransformer used to apply basic transformations on MRI data.\n\"\"\"\n# Author: Gael Varoquaux, Alexandre Abraham\n# License: simplified BSD\n\nfrom copy import copy as copy_object\n\nfrom sklearn.externals.joblib import Memory\n\nfrom .base_masker import BaseMasker, filter_and_extract\nfr...
diff --git a/nilearn/input_data/nifti_masker.py b/nilearn/input_data/nifti_masker.py index aa579e972a..6c19682dd7 100644 --- a/nilearn/input_data/nifti_masker.py +++ b/nilearn/input_data/nifti_masker.py @@ -255,7 +255,7 @@ def fit(self, imgs=None, y=None): self.mask_img_, target_affine=self.ta...
ansible__molecule-3521
Missing `f` prefix on f-strings Some strings looks like they're meant to be f-strings but are missing the `f` prefix meaning variable interpolation won't happen. https://github.com/ansible-community/molecule/blob/19381a8a564f8013453b8dfb08b677fd81c2e358/src/molecule/scenarios.py#L85 I found this issue automatically. ...
[ { "content": "# Copyright (c) 2015-2018 Cisco Systems, Inc.\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\n# deal in the Software without restriction, including without limitation the\n# right...
[ { "content": "# Copyright (c) 2015-2018 Cisco Systems, Inc.\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\n# deal in the Software without restriction, including without limitation the\n# right...
diff --git a/src/molecule/scenarios.py b/src/molecule/scenarios.py index 58d49c9dce..27d7d7ad6d 100644 --- a/src/molecule/scenarios.py +++ b/src/molecule/scenarios.py @@ -82,7 +82,7 @@ def sequence(self, scenario_name: str) -> List[str]: for scenario in self.all: if scenario.name == scenario_name:...
matrix-org__synapse-8517
/displayname returns non-JSON body ### Description An attempt to call `/profile/{}/displayname` with an empty body results (rightfully) in a 400 error, with plain text "Unable to parse name" in the response. The expected error payload is something about (could also be `M_NOT_JSON` instead of `M_BAD_JSON`): ```json ...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2014-2016 OpenMarket Ltd\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2014-2016 OpenMarket Ltd\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/changelog.d/8517.bugfix b/changelog.d/8517.bugfix new file mode 100644 index 000000000000..1ab623c59fcf --- /dev/null +++ b/changelog.d/8517.bugfix @@ -0,0 +1 @@ +Fix error code for `/profile/{userId}/displayname` to be `M_BAD_JSON`. diff --git a/synapse/rest/client/v1/profile.py b/synapse/rest/client/v1/p...
kornia__kornia-2054
Crash on resize inverse - missing flag padding_mode ### Describe the bug The inverse of resize augmentation crashes since the `padding_mode` flag is not set: ``` File "/home/miquelmr/kornia/kornia/augmentation/_2d/geometric/base.py", line 106, in inverse output = self.inverse_transform(in_tensor, flags=flag...
[ { "content": "from typing import Any, Dict, Optional, Tuple, Union\n\nimport torch\n\nfrom kornia.augmentation import random_generator as rg\nfrom kornia.augmentation._2d.geometric.base import GeometricAugmentationBase2D\nfrom kornia.constants import Resample\nfrom kornia.core import Tensor\nfrom kornia.geometr...
[ { "content": "from typing import Any, Dict, Optional, Tuple, Union\n\nimport torch\n\nfrom kornia.augmentation import random_generator as rg\nfrom kornia.augmentation._2d.geometric.base import GeometricAugmentationBase2D\nfrom kornia.constants import Resample\nfrom kornia.core import Tensor\nfrom kornia.geometr...
diff --git a/kornia/augmentation/_2d/geometric/resize.py b/kornia/augmentation/_2d/geometric/resize.py index ddc1f39868..eb6bb059cb 100644 --- a/kornia/augmentation/_2d/geometric/resize.py +++ b/kornia/augmentation/_2d/geometric/resize.py @@ -85,7 +85,7 @@ def inverse_transform( raise TypeError(f'Expected ...
facebookresearch__CompilerGym-418
Use round-robin ordering for leaderboard experiment execution ## 🚀 Feature Don't repeat all `--n` runs of each benchmark in order, perform 1 run of each benchmark, then proceed to the 2nd run, etc, until all `n` runs have been completed.
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\"\"\"LLVM is a popular open source compiler used widely in industry and research.\nThe :code:`llvm-ic-v0` environmen...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\"\"\"LLVM is a popular open source compiler used widely in industry and research.\nThe :code:`llvm-ic-v0` environmen...
diff --git a/compiler_gym/leaderboard/llvm_instcount.py b/compiler_gym/leaderboard/llvm_instcount.py index 0816c9767..f071b3c1e 100644 --- a/compiler_gym/leaderboard/llvm_instcount.py +++ b/compiler_gym/leaderboard/llvm_instcount.py @@ -246,7 +246,6 @@ def main(argv): # Repeat the searches for the reques...
google__flax-2171
New Sphinx Theme The idea is to get a new and shiny theme that makes Flax's RTD page standout a little more. I've gathered a couple of options: ### [JAX's Theme](https://jax.readthedocs.io/en/latest/) ![Screenshot from 2022-05-25 13-16-27](https://user-images.githubusercontent.com/5862228/170337666-3fdac1a8-d6c...
[ { "content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/docs/conf.py b/docs/conf.py index 3e3d670c3..5253202d1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -84,8 +84,8 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'sphinx_rtd_theme' -html_style = 'css/flax_theme.css' +html_theme ...
akvo__akvo-rsr-1921
Project editor crash for conditions without a text ## Test plan 1. Open the project editor, and click the 'Show advanced IATI fields' button 2. In the results and indicators section, add a project condition with only a type (no condition text) 3. Save 4. Refresh the page 5. **RESULT:** No error should be shown and the ...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\n\nfrom dja...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\n\nfrom dja...
diff --git a/akvo/rsr/models/project_condition.py b/akvo/rsr/models/project_condition.py index 116153f893..fa0b7bfe1e 100644 --- a/akvo/rsr/models/project_condition.py +++ b/akvo/rsr/models/project_condition.py @@ -23,7 +23,7 @@ class ProjectCondition(models.Model): choices=codelist_choice...
bookwyrm-social__bookwyrm-2042
updating progress doesn't work Warning : i see this bug as unlinked with instance, because i saw it on my instance and on bookwyrm.social. When i go to the book view, i have a block with two progress, but without any print of the pages i've read. ![bookwyrm1](https://user-images.githubusercontent.com/40766799/156...
[ { "content": "\"\"\" using django model forms \"\"\"\nfrom django import forms\nfrom django.forms import widgets\nfrom django.utils.translation import gettext_lazy as _\n\nfrom bookwyrm import models\nfrom bookwyrm.models.user import FeedFilterChoices\nfrom .custom_form import CustomForm\n\n\n# pylint: disable=...
[ { "content": "\"\"\" using django model forms \"\"\"\nfrom django import forms\nfrom django.forms import widgets\nfrom django.utils.translation import gettext_lazy as _\n\nfrom bookwyrm import models\nfrom bookwyrm.models.user import FeedFilterChoices\nfrom .custom_form import CustomForm\n\n\n# pylint: disable=...
diff --git a/bookwyrm/forms/forms.py b/bookwyrm/forms/forms.py index 8af8fb8121..9d8f9f3925 100644 --- a/bookwyrm/forms/forms.py +++ b/bookwyrm/forms/forms.py @@ -45,7 +45,7 @@ class Meta: class ReadThroughForm(CustomForm): def clean(self): - """make sure the email isn't in use by a registered user""" + ...
DjangoGirls__djangogirls-704
TypeError: "reply_to" argument must be a list or tuple Sentry Issue: [DJANGO-GIRLS-WEBSITE-2J](https://sentry.io/organizations/django-girls/issues/2674442944/?referrer=github_integration) ``` TypeError: "reply_to" argument must be a list or tuple (7 additional frame(s) were not displayed) ... File "formtools/wizard/...
[ { "content": "from django.template.loader import render_to_string\n\nfrom core.emails import send_email\n\n\ndef send_application_confirmation(event_application):\n subject = (\n f\"Confirmation of application to organise Django Girls {event_application.city} workshop\"\n )\n content = render_to...
[ { "content": "from django.template.loader import render_to_string\n\nfrom core.emails import send_email\n\n\ndef send_application_confirmation(event_application):\n subject = (\n f\"Confirmation of application to organise Django Girls {event_application.city} workshop\"\n )\n content = render_to...
diff --git a/organize/emails.py b/organize/emails.py index 1975034ff..e028f28e6 100644 --- a/organize/emails.py +++ b/organize/emails.py @@ -29,7 +29,7 @@ def send_application_notification(event_application): 'application': event_application, }) send_email(content, subject, ['hello@djangogirl...
Pyomo__pyomo-1878
identify_mutable_parameters sometimes identifies numeric constants There seem to be some circumstances in which `identify_mutable_parameters` identifies numeric constants. As far as I can tell, this happens when the numeric constant is alone as one argument of a logical expression. The following code reproduces the iss...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin...
diff --git a/pyomo/core/expr/visitor.py b/pyomo/core/expr/visitor.py index 7b90fc97735..3e0fcc157bd 100644 --- a/pyomo/core/expr/visitor.py +++ b/pyomo/core/expr/visitor.py @@ -1181,7 +1181,8 @@ def visit(self, node): return # TODO: Confirm that this has the right semantics - if not node....
ibis-project__ibis-2114
BUG: OmniSciDBTable rewrites the method: `drop` inherited from TableExpr with behavior change **Problem**: - `TableExpr.drop` is used for drop columns, but `OmniSciDBTable.drop` can be only used for drop the table from database. **Workaround**: - `table[table].drop(fields)` where `type(table) = <class 'ibis.omnis...
[ { "content": "\"\"\"Ibis OmniSciDB Client.\"\"\"\nfrom typing import Optional\n\nimport pandas as pd\nimport pkg_resources\nimport pymapd\nimport regex as re\nfrom pymapd._parsers import _extract_column_details\nfrom pymapd.cursor import Cursor\nfrom pymapd.dtypes import TDatumType as pymapd_dtype\n\nimport ibi...
[ { "content": "\"\"\"Ibis OmniSciDB Client.\"\"\"\nfrom typing import Optional\n\nimport pandas as pd\nimport pkg_resources\nimport pymapd\nimport regex as re\nfrom pymapd._parsers import _extract_column_details\nfrom pymapd.cursor import Cursor\nfrom pymapd.dtypes import TDatumType as pymapd_dtype\n\nimport ibi...
diff --git a/ibis/omniscidb/client.py b/ibis/omniscidb/client.py index 9a15372b6e34..28b38393d6e7 100644 --- a/ibis/omniscidb/client.py +++ b/ibis/omniscidb/client.py @@ -384,10 +384,6 @@ def metadata(self): describe_formatted = metadata - def drop(self): - """Drop the table from the database.""" - ...
scverse__scanpy-2932
Docs for aggregate are incorrect ![screenshot](https://github.com/scverse/scanpy/assets/8238804/5d21ca96-6186-4fee-8a40-fe258f7722d3) The latter sentences of this docstring are totally incorrect, plus `AggType` is just an alias for the string literal values and isn't one we expose to users.
[ { "content": "from __future__ import annotations\n\nfrom functools import singledispatch\nfrom typing import TYPE_CHECKING, Literal, Union, get_args\n\nimport numpy as np\nimport pandas as pd\nfrom anndata import AnnData, utils\nfrom scipy import sparse\n\nfrom .._utils import _resolve_axis\nfrom .get import _c...
[ { "content": "from __future__ import annotations\n\nfrom functools import singledispatch\nfrom typing import TYPE_CHECKING, Literal, Union, get_args\n\nimport numpy as np\nimport pandas as pd\nfrom anndata import AnnData, utils\nfrom scipy import sparse\n\nfrom .._utils import _resolve_axis\nfrom .get import _c...
diff --git a/scanpy/get/_aggregated.py b/scanpy/get/_aggregated.py index 9f50575ffb..ffc0413507 100644 --- a/scanpy/get/_aggregated.py +++ b/scanpy/get/_aggregated.py @@ -179,8 +179,6 @@ def aggregate( in the output `AnnData` object. If none of `layer`, `obsm`, or `varm` are passed in, `X` will be used for ...
open-telemetry__opentelemetry-python-contrib-2090
Fix Falcon dependency Falcon test cases are [failing](https://github.com/open-telemetry/opentelemetry-python/actions/runs/7202220508/job/19619933938?pr=3581) with its latest release.
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/instrumentation/opentelemetry-instrumentation-falcon/pyproject.toml b/instrumentation/opentelemetry-instrumentation-falcon/pyproject.toml index 0d5114b4eb..214c5617e1 100644 --- a/instrumentation/opentelemetry-instrumentation-falcon/pyproject.toml +++ b/instrumentation/opentelemetry-instrumentation-falcon/...
chainer__chainer-1501
ProgressBar iters/sec is too low in CPU mode The 'iters/sec' speed displayed in the `ProgressBar` extension seems too low when running a model in CPU mode. I suspect this is due to the use of `time.clock()` instead of `time.time()`. `time.clock()` apparently measures the total time spent in all CPU cores, which can cau...
[ { "content": "from __future__ import division\nimport datetime\nimport sys\nimport time\n\nfrom chainer.training import extension\nfrom chainer.training import trigger\n\n\nclass ProgressBar(extension.Extension):\n\n \"\"\"Trainer extension to print a progress bar and recent training status.\n\n This exte...
[ { "content": "from __future__ import division\nimport datetime\nimport sys\nimport time\n\nfrom chainer.training import extension\nfrom chainer.training import trigger\n\n\nclass ProgressBar(extension.Extension):\n\n \"\"\"Trainer extension to print a progress bar and recent training status.\n\n This exte...
diff --git a/chainer/training/extensions/progress_bar.py b/chainer/training/extensions/progress_bar.py index 8ddb585a7ee0..6bb6312695d6 100644 --- a/chainer/training/extensions/progress_bar.py +++ b/chainer/training/extensions/progress_bar.py @@ -61,7 +61,7 @@ def __call__(self, trainer): if iteration % self._...
pre-commit__pre-commit-2996
Use of --dev deprecated for npm I'm seeing this warning sometimes (output seems to be hidden unless the install fails): ``` npm WARN install Usage of the `--dev` option is deprecated. Use `--include=dev` instead. ``` Which seems to be because of this: https://github.com/pre-commit/pre-commit/blob/fe436f1eb09...
[ { "content": "from __future__ import annotations\n\nimport contextlib\nimport functools\nimport os\nimport sys\nfrom typing import Generator\nfrom typing import Sequence\n\nimport pre_commit.constants as C\nfrom pre_commit import lang_base\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.envcontex...
[ { "content": "from __future__ import annotations\n\nimport contextlib\nimport functools\nimport os\nimport sys\nfrom typing import Generator\nfrom typing import Sequence\n\nimport pre_commit.constants as C\nfrom pre_commit import lang_base\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.envcontex...
diff --git a/pre_commit/languages/node.py b/pre_commit/languages/node.py index 66d613637..3e22dc78e 100644 --- a/pre_commit/languages/node.py +++ b/pre_commit/languages/node.py @@ -93,7 +93,7 @@ def install_environment( # install as if we installed from git local_install_cmd = ( - 'npm', ...
inventree__InvenTree-5301
[FR/P-UI] Fast Language / Theme selection Follow up to #5207 We need an easy way for users to select language, theme and instance without polluting the main menu/nav. Maybe this could be moved onto the main login page and user settings.
[ { "content": "\"\"\"Tasks for automating certain actions and interacting with InvenTree from the CLI.\"\"\"\n\nimport json\nimport os\nimport pathlib\nimport re\nimport shutil\nimport subprocess\nimport sys\nfrom pathlib import Path\nfrom platform import python_version\n\nfrom invoke import task\n\n\ndef apps()...
[ { "content": "\"\"\"Tasks for automating certain actions and interacting with InvenTree from the CLI.\"\"\"\n\nimport json\nimport os\nimport pathlib\nimport re\nimport shutil\nimport subprocess\nimport sys\nfrom pathlib import Path\nfrom platform import python_version\n\nfrom invoke import task\n\n\ndef apps()...
diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml index da75ef05c3d7..50243fbb21f0 100644 --- a/.github/workflows/qc_checks.yaml +++ b/.github/workflows/qc_checks.yaml @@ -414,7 +414,7 @@ jobs: - name: Set up test data run: invoke setup-test -i - name: Install depen...
svthalia__concrexit-2869
Send promo requests overview to promocie <!-- Please add the appropriate label for what change should be made: docs: changes to the documentation) refactor: refactoring production code, eg. renaming a variable or rewriting a function test: adding missing tests, refactoring tests; no production code change chore: updat...
[ { "content": "\"\"\"Django settings for concrexit.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/dev/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/dev/ref/settings/\n\"\"\"\n\nimport base64\nimport json\nimport logging\n...
[ { "content": "\"\"\"Django settings for concrexit.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/dev/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/dev/ref/settings/\n\"\"\"\n\nimport base64\nimport json\nimport logging\n...
diff --git a/website/promotion/templates/requests/weekly_overview.txt b/website/promotion/templates/requests/weekly_overview.txt index d9a05f22b..c48bee906 100644 --- a/website/promotion/templates/requests/weekly_overview.txt +++ b/website/promotion/templates/requests/weekly_overview.txt @@ -1,4 +1,4 @@ -{% load i18n b...
internetarchive__openlibrary-6785
`/merges` entries should be displayed in descending order <!-- What problem are we solving? What does the experience look like today? What are the symptoms? --> Today, entries in all `/merges` views are displayed in order of `created` timestamp, ascending. They should instead by ordered by `created` timestamp, __desc...
[ { "content": "\"\"\"Librarian Edits\n\"\"\"\n\nimport json\nimport web\n\nfrom openlibrary import accounts\nfrom openlibrary.core.edits import CommunityEditsQueue, get_status_for_view\nfrom infogami.utils import delegate\nfrom infogami.utils.view import render_template\n\n\ndef create_request(olids: str, userna...
[ { "content": "\"\"\"Librarian Edits\n\"\"\"\n\nimport json\nimport web\n\nfrom openlibrary import accounts\nfrom openlibrary.core.edits import CommunityEditsQueue, get_status_for_view\nfrom infogami.utils import delegate\nfrom infogami.utils.view import render_template\n\n\ndef create_request(olids: str, userna...
diff --git a/openlibrary/plugins/upstream/edits.py b/openlibrary/plugins/upstream/edits.py index e65fbaff4ad..a9edcb489bf 100644 --- a/openlibrary/plugins/upstream/edits.py +++ b/openlibrary/plugins/upstream/edits.py @@ -93,7 +93,7 @@ def GET(self): mode=i.mode, submitter=i.submitter, ...
pulp__pulpcore-265
Update CI files for branch 3.39
[ { "content": "from gettext import gettext as _\n\nfrom rest_framework import serializers\n\nfrom pulpcore.app import models\nfrom pulpcore.app.serializers import (\n IdentityField,\n ModelSerializer,\n ProgressReportSerializer,\n RelatedField,\n)\nfrom pulpcore.app.util import get_viewset_for_model\...
[ { "content": "from gettext import gettext as _\n\nfrom rest_framework import serializers\n\nfrom pulpcore.app import models\nfrom pulpcore.app.serializers import (\n IdentityField,\n ModelSerializer,\n ProgressReportSerializer,\n RelatedField,\n)\nfrom pulpcore.app.util import get_viewset_for_model\...
diff --git a/CHANGES/5210.misc b/CHANGES/5210.misc new file mode 100644 index 0000000000..1273797be1 --- /dev/null +++ b/CHANGES/5210.misc @@ -0,0 +1 @@ +Improved the OpenAPI schema for Task. diff --git a/pulpcore/app/serializers/task.py b/pulpcore/app/serializers/task.py index af45810739..0cf6f6fdc3 100755 --- a/pulpc...
readthedocs__readthedocs.org-4967
Validate tags > 100 characteres Not sure how to do this validation yet, the best option is that django-taggit to handle that. Related issue https://github.com/alex/django-taggit/issues/510 Sentry issue https://sentry.io/read-the-docs/readthedocs-org/issues/661257950/
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Project forms.\"\"\"\n\nfrom __future__ import (\n absolute_import,\n division,\n print_function,\n unicode_literals,\n)\n\nfrom random import choice\n\nfrom builtins import object\nfrom django import forms\nfrom django.conf import settings\nfrom django.c...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Project forms.\"\"\"\n\nfrom __future__ import (\n absolute_import,\n division,\n print_function,\n unicode_literals,\n)\n\nfrom random import choice\n\nfrom builtins import object\nfrom django import forms\nfrom django.conf import settings\nfrom django.c...
diff --git a/readthedocs/projects/forms.py b/readthedocs/projects/forms.py index e8bff7505f9..9883ff521a3 100644 --- a/readthedocs/projects/forms.py +++ b/readthedocs/projects/forms.py @@ -182,6 +182,15 @@ class Meta(object): widget=forms.Textarea, ) + def clean_tags(self): + tags = self.clean...
readthedocs__readthedocs.org-4990
Remove $ before shell commands in docs The developers have a [preference](https://github.com/rtfd/readthedocs.org/pull/4676#discussion_r221400605) to not have a `$` before shell commands in the docs. This makes it easier to copy and paste from our docs. We should remove it everywhere. The following command should show ...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom __future__ import division, print_function, unicode_literals\n\nimport os\nimport sys\n\nimport sphinx_rtd_theme\nfrom recommonmark.parser import CommonMarkParser\n\nsys.path.insert(0, os.path.abspath('..'))\nsys.path.append(os.path.dirname(__file__))\nos.environ.se...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom __future__ import division, print_function, unicode_literals\n\nimport os\nimport sys\n\nimport sphinx_rtd_theme\nfrom recommonmark.parser import CommonMarkParser\n\nsys.path.insert(0, os.path.abspath('..'))\nsys.path.append(os.path.dirname(__file__))\nos.environ.se...
diff --git a/docs/.rstcheck.cfg b/docs/.rstcheck.cfg index 1b093d3f696..0ebdd74410e 100644 --- a/docs/.rstcheck.cfg +++ b/docs/.rstcheck.cfg @@ -1,4 +1,4 @@ [rstcheck] -ignore_directives=automodule,http:get,tabs,tab +ignore_directives=automodule,http:get,tabs,tab,prompt ignore_roles=djangosetting,setting ignore_mess...
gratipay__gratipay.com-2162
500 from credit card page Reticketing from #2155. https://app.getsentry.com/gittip/gittip/group/16333701/ (login required) ``` TypeError: 'NoneType' object has no attribute '__getitem__' Stacktrace (most recent call last): File "site-packages/algorithm.py", line 288, in run new_state = function(**deps.as_kwar...
[ { "content": "\"\"\"This module encapsulates billing logic and db access.\n\nThere are three pieces of information for each participant related to billing:\n\n balanced_customer_href\n * NULL - This participant has never been billed.\n * 'deadbeef' - This participant has had a Balanced account ...
[ { "content": "\"\"\"This module encapsulates billing logic and db access.\n\nThere are three pieces of information for each participant related to billing:\n\n balanced_customer_href\n * NULL - This participant has never been billed.\n * 'deadbeef' - This participant has had a Balanced account ...
diff --git a/gittip/billing/__init__.py b/gittip/billing/__init__.py index 5a745240fb..40b4d18c51 100644 --- a/gittip/billing/__init__.py +++ b/gittip/billing/__init__.py @@ -225,6 +225,11 @@ def __getitem__(self, key): raise KeyError("{} not found".format(val)) if out is None:...
qutip__qutip-949
Optimization flags in setup.py should be completely avoided Hard-coding compiler flag `-march=native` in setup.py completely destroys possibility to set up Qutip on heterogeneous cluster. In general, it brings a lot of problems for people that don't have a good experience in debugging "illegal instruction" errors, that...
[ { "content": "#!/usr/bin/env python\n\"\"\"QuTiP: The Quantum Toolbox in Python\n\nQuTiP is open-source software for simulating the dynamics of closed and open\nquantum systems. The QuTiP library depends on the excellent Numpy, Scipy, and\nCython numerical packages. In addition, graphical output is provided by\...
[ { "content": "#!/usr/bin/env python\n\"\"\"QuTiP: The Quantum Toolbox in Python\n\nQuTiP is open-source software for simulating the dynamics of closed and open\nquantum systems. The QuTiP library depends on the excellent Numpy, Scipy, and\nCython numerical packages. In addition, graphical output is provided by\...
diff --git a/setup.py b/setup.py index f3f547cbb5..8785f44286 100755 --- a/setup.py +++ b/setup.py @@ -159,7 +159,7 @@ def write_version_py(filename='qutip/version.py'): _compiler_flags = ['/w', '/Ox'] # Everything else else: - _compiler_flags = ['-w', '-O3', '-march=native', '-funroll-loops'] + _compiler_...
python-discord__bot-1499
Don't consider colorless roles for the `!user` embed color A user with any colorless roles such as `Voice Verified` results in the `!user` embed having a black color (rather than blurple), as shown below. ![Screenshot](https://user-images.githubusercontent.com/37779854/113498668-54178980-94cc-11eb-8ca6-e0e14a128039....
[ { "content": "import colorsys\nimport logging\nimport pprint\nimport textwrap\nfrom collections import defaultdict\nfrom typing import Any, DefaultDict, Dict, Mapping, Optional, Tuple, Union\n\nimport fuzzywuzzy\nfrom discord import AllowedMentions, Colour, Embed, Guild, Message, Role\nfrom discord.ext.commands...
[ { "content": "import colorsys\nimport logging\nimport pprint\nimport textwrap\nfrom collections import defaultdict\nfrom typing import Any, DefaultDict, Dict, Mapping, Optional, Tuple, Union\n\nimport fuzzywuzzy\nfrom discord import AllowedMentions, Colour, Embed, Guild, Message, Role\nfrom discord.ext.commands...
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index 0555544ce2..5e2c4b417c 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -284,7 +284,7 @@ async def create_user_embed(self, ctx: Context, user: FetchedMember) -> Embed: embed.add_field(name=field_na...
Rapptz__discord.py-6511
Context.channel ### Summary The type for [Context.channel](https://discordpy.readthedocs.io/en/latest/api.html?highlight=message%20channel#discord.Message.channel) seems to be incorrect in the doc ### Reproduction Steps See [Context.channel](https://discordpy.readthedocs.io/en/latest/ext/commands/api.html?high...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, inclu...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, inclu...
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index 0944992176ee..39e5d5cd28a5 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -229,8 +229,8 @@ def guild(self): @discord.utils.cached_property def channel(self): - """:class:`.TextC...
streamlink__streamlink-5369
plugins.pluzz: La 1ere subdomain from francetvinfo.fr is not supported ### Checklist - [X] This is a plugin issue and not a different kind of issue - [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink) - [X] [I have checked ...
[ { "content": "\"\"\"\n$description Live TV channels and video on-demand service from france.tv, a French public, state-owned broadcaster.\n$url france.tv\n$url francetvinfo.fr\n$type live, vod\n$region France, Andorra, Monaco\n\"\"\"\n\nimport logging\nimport re\nfrom urllib.parse import urlparse\n\nfrom stream...
[ { "content": "\"\"\"\n$description Live TV channels and video on-demand service from france.tv, a French public, state-owned broadcaster.\n$url france.tv\n$url francetvinfo.fr\n$type live, vod\n$region France, Andorra, Monaco\n\"\"\"\n\nimport logging\nimport re\nfrom urllib.parse import urlparse\n\nfrom stream...
diff --git a/src/streamlink/plugins/pluzz.py b/src/streamlink/plugins/pluzz.py index 8400ca94acd..b73a900c792 100644 --- a/src/streamlink/plugins/pluzz.py +++ b/src/streamlink/plugins/pluzz.py @@ -80,7 +80,7 @@ def _get_streams(self): str, ), validate.a...
ansible-collections__community.vmware-145
vmware_dvs_portgroup_find TypeError: '<' not supported between instances of 'str' and 'int' ##### SUMMARY <!--- Explain the problem briefly below --> ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME vmware_dvs_portgroup_find ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" betwe...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nANSIBLE_METADATA = {\n 'metadata_version': '1.1',\n 'st...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nANSIBLE_METADATA = {\n 'metadata_version': '1.1',\n 'st...
diff --git a/changelogs/fragments/145-vmware_dvs_portgroup_find-integer-cast.yaml b/changelogs/fragments/145-vmware_dvs_portgroup_find-integer-cast.yaml new file mode 100644 index 0000000000..b8b6ff8e3e --- /dev/null +++ b/changelogs/fragments/145-vmware_dvs_portgroup_find-integer-cast.yaml @@ -0,0 +1,2 @@ +bugfixes: +...
scipy__scipy-3709
KroghInterpolator doesn't pass through points I tried interpolating samples from a monotonic function: ``` x = [0, 234,468,702,936,1170,1404,2340,3744,6084,8424,13104,60000] offset_cdf = array([-0.95 , -0.86114777, -0.8147762 , -0.64072425, -0.48002351, -0.34925329, -0.26503107, -0.13148093, -0.12988833, -...
[ { "content": "from __future__ import division, print_function, absolute_import\n\nimport warnings\n\nimport numpy as np\nfrom scipy.misc import factorial\n\nfrom scipy.lib.six import xrange\n\n\n__all__ = [\"KroghInterpolator\", \"krogh_interpolate\", \"BarycentricInterpolator\",\n \"barycentric_inter...
[ { "content": "from __future__ import division, print_function, absolute_import\n\nimport warnings\n\nimport numpy as np\nfrom scipy.misc import factorial\n\nfrom scipy.lib.six import xrange\n\n\n__all__ = [\"KroghInterpolator\", \"krogh_interpolate\", \"BarycentricInterpolator\",\n \"barycentric_inter...
diff --git a/scipy/interpolate/polyint.py b/scipy/interpolate/polyint.py index 06203c68be49..8aeb5ed40462 100644 --- a/scipy/interpolate/polyint.py +++ b/scipy/interpolate/polyint.py @@ -317,7 +317,7 @@ def _evaluate(self, x): p = np.zeros((len(x), self.r), dtype=self.dtype) p += self.c[0,np.newaxis,:...
bridgecrewio__checkov-592
CKV_GCP_29 - Checks failed after GCP resource renamed **Describe the bug** Google has renamed the value `bucket_policy_only ` to `uniform_bucket_level_access`. When adding the new value in the configuration the check CKV_GCP_29 ( Ensure that Cloud Storage buckets have uniform bucket-level access enabled ) still fa...
[ { "content": "from checkov.common.models.enums import CheckCategories\nfrom checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\n\n\nclass GoogleStorageBucketUniformAccess(BaseResourceValueCheck):\n def __init__(self):\n name = \"Ensure that Cloud Storage buckets ...
[ { "content": "from checkov.common.models.enums import CheckCategories\nfrom checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\n\n\nclass GoogleStorageBucketUniformAccess(BaseResourceValueCheck):\n def __init__(self):\n name = \"Ensure that Cloud Storage buckets ...
diff --git a/checkov/terraform/checks/resource/gcp/GoogleStorageBucketUniformAccess.py b/checkov/terraform/checks/resource/gcp/GoogleStorageBucketUniformAccess.py index 9c11a86455..7fed77bcdd 100644 --- a/checkov/terraform/checks/resource/gcp/GoogleStorageBucketUniformAccess.py +++ b/checkov/terraform/checks/resource/g...
ansible__ansible-modules-extras-3459
locale_gen fails when using Python 3 ##### ISSUE TYPE <!--- Pick one below and delete the rest: --> - Bug Report ##### COMPONENT NAME `locale_gen` ##### ANSIBLE VERSION ``` ansible 2.2.0.0 ``` ##### CONFIGURATION ```ansible_python_interpreter: "python3"``` ##### OS / ENVIRONMENT Ubuntu Xenial 16.04...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at yo...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at yo...
diff --git a/system/locale_gen.py b/system/locale_gen.py index 9aa732f57c3..c8c5128d21e 100644 --- a/system/locale_gen.py +++ b/system/locale_gen.py @@ -98,7 +98,7 @@ def is_present(name): def fix_case(name): """locale -a might return the encoding in either lower or upper case. Passing through this function ...
ivy-llc__ivy-18924
dropout3d
[ { "content": "# local\nimport ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back\n\n\n@to_ivy_arrays_and_back\n@with_supported_dtypes({\"2.5.1 and below\": (\"float32\", \"float64\")}, \"paddle\")\ndef cosine_similarity(x1, x2...
[ { "content": "# local\nimport ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back\n\n\n@to_ivy_arrays_and_back\n@with_supported_dtypes({\"2.5.1 and below\": (\"float32\", \"float64\")}, \"paddle\")\ndef cosine_similarity(x1, x2...
diff --git a/ivy/functional/frontends/paddle/nn/functional/common.py b/ivy/functional/frontends/paddle/nn/functional/common.py index 400779ca05f25..b48b517b396ac 100644 --- a/ivy/functional/frontends/paddle/nn/functional/common.py +++ b/ivy/functional/frontends/paddle/nn/functional/common.py @@ -109,3 +109,9 @@ def int...
ManimCommunity__manim-482
Sector.get_arc_center() is broken. Sector.get_arc_center() does not work and always returns a warning message. ```sh UserWarning: Can't find Arc center, using ORIGIN instead warnings.warn("Can't find Arc center, using ORIGIN instead") ``` Above error can be reproduced using the below code. ```py from manim impo...
[ { "content": "\"\"\"Mobjects that are simple geometric shapes.\"\"\"\n\n\n__all__ = [\n \"TipableVMobject\",\n \"Arc\",\n \"ArcBetweenPoints\",\n \"CurvedArrow\",\n \"CurvedDoubleArrow\",\n \"Circle\",\n \"Dot\",\n \"SmallDot\",\n \"Ellipse\",\n \"AnnularSector\",\n \"Sector\",\...
[ { "content": "\"\"\"Mobjects that are simple geometric shapes.\"\"\"\n\n\n__all__ = [\n \"TipableVMobject\",\n \"Arc\",\n \"ArcBetweenPoints\",\n \"CurvedArrow\",\n \"CurvedDoubleArrow\",\n \"Circle\",\n \"Dot\",\n \"SmallDot\",\n \"Ellipse\",\n \"AnnularSector\",\n \"Sector\",\...
diff --git a/manim/mobject/geometry.py b/manim/mobject/geometry.py index 74ab65e9ed..f234ff432a 100644 --- a/manim/mobject/geometry.py +++ b/manim/mobject/geometry.py @@ -288,6 +288,12 @@ def get_arc_center(self, warning=True): """ # First two anchors and handles a1, h1, h2, a2 = self.points[...
certbot__certbot-6349
KeyError handle_modules with 0.27.0 on openSUSE ## My operating system is (include version): openSUSE Leap 42.1 ## I installed Certbot with (certbot-auto, OS package manager, pip, etc): certbot-auto ## I ran this command and it produced this output: ```` kevdev36:~ # certbot-auto --version Upgrading ce...
[ { "content": "\"\"\" Distribution specific override class for OpenSUSE \"\"\"\nimport pkg_resources\n\nimport zope.interface\n\nfrom certbot import interfaces\n\nfrom certbot_apache import configurator\n\n@zope.interface.provider(interfaces.IPluginFactory)\nclass OpenSUSEConfigurator(configurator.ApacheConfigur...
[ { "content": "\"\"\" Distribution specific override class for OpenSUSE \"\"\"\nimport pkg_resources\n\nimport zope.interface\n\nfrom certbot import interfaces\n\nfrom certbot_apache import configurator\n\n@zope.interface.provider(interfaces.IPluginFactory)\nclass OpenSUSEConfigurator(configurator.ApacheConfigur...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d384ad3042..8d2ff6323e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,66 @@ Certbot adheres to [Semantic Versioning](http://semver.org/). +## 0.28.0 - master + +### Added + +* + +### Changed + +* + +### Fixed + +* Fixed parameter name in OpenSUSE overrides ...
internetarchive__openlibrary-4943
Blog posts unavailable on local build, causing failure to fetch web pages <!-- What problem are we solving? What does the experience look like today? What are the symptoms? --> On the local build, an error occurred upon connecting to the server which caused the blog posts to not be retrieved and the thus prevented the...
[ { "content": "import web\nimport json\nimport babel\nimport babel.core\nimport babel.dates\nfrom collections import defaultdict\nimport re\nimport random\nimport xml.etree.ElementTree as etree\nimport datetime\nimport logging\n\nimport requests\n\nimport six\nfrom six import PY3\nfrom six.moves import urllib\nf...
[ { "content": "import web\nimport json\nimport babel\nimport babel.core\nimport babel.dates\nfrom collections import defaultdict\nimport re\nimport random\nimport xml.etree.ElementTree as etree\nimport datetime\nimport logging\n\nimport requests\n\nimport six\nfrom six import PY3\nfrom six.moves import urllib\nf...
diff --git a/openlibrary/plugins/upstream/utils.py b/openlibrary/plugins/upstream/utils.py index 553615b08a5..e78207e1c12 100644 --- a/openlibrary/plugins/upstream/utils.py +++ b/openlibrary/plugins/upstream/utils.py @@ -745,7 +745,7 @@ def parse_item(item): link=item.find("link").text, pubdat...
google__turbinia-1027
AttributeError: 'NoneType' object has no attribute 'id' in process_tasks function Hi @aarontp seeing this new bug come in with new release. I'm not exactly sure what it is but seems to be related to the server timeouts we've been seeing and believe it may also cause the server to crash when it is raised. ``` Tra...
[ { "content": "#-*- coding: utf-8 -*-\n# Copyright 2016 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# Un...
[ { "content": "#-*- coding: utf-8 -*-\n# Copyright 2016 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# Un...
diff --git a/turbinia/task_manager.py b/turbinia/task_manager.py index 617587eba..500dcca48 100644 --- a/turbinia/task_manager.py +++ b/turbinia/task_manager.py @@ -804,7 +804,7 @@ def process_tasks(self): if timeout: log.warning( 'Task {0:s} timed on server out after {0:d} seconds. A...
pypi__warehouse-2846
duplicate footer appears in package page only when not logged in When viewing a package page (appears to apply to any package), the (blue) footer ("Get Help", "About PyPI", "Contributing to PyPI") occurs twice: once below a login prompt and a search text box that appear below the package's title (with the package detai...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
diff --git a/tests/unit/test_views.py b/tests/unit/test_views.py index de8acdae7311..6197863ce43a 100644 --- a/tests/unit/test_views.py +++ b/tests/unit/test_views.py @@ -25,7 +25,7 @@ from warehouse.views import ( SEARCH_BOOSTS, SEARCH_FIELDS, current_user_indicator, forbidden, health, httpexception_view, i...
cupy__cupy-1459
`cupy.split` sometimes fails with a 0-sized input array ``` >>> cupy.split(cupy.ones((3, 0)), [1]) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/kataoka/cupy/cupy/manipulation/split.py", line 78, in split return array_split(ary, indices_or_sections, axis) File "/home...
[ { "content": "import numpy\nimport six\n\nfrom cupy import core\n\n\ndef sum(a, axis=None, dtype=None, out=None, keepdims=False):\n \"\"\"Returns the sum of an array along given axes.\n\n Args:\n a (cupy.ndarray): Array to take sum.\n axis (int or sequence of ints): Axes along which the sum ...
[ { "content": "import numpy\nimport six\n\nimport cupy\nfrom cupy import core\n\n\ndef sum(a, axis=None, dtype=None, out=None, keepdims=False):\n \"\"\"Returns the sum of an array along given axes.\n\n Args:\n a (cupy.ndarray): Array to take sum.\n axis (int or sequence of ints): Axes along w...
diff --git a/cupy/core/core.pyx b/cupy/core/core.pyx index a08198ab9e3..4c55a45a5fc 100644 --- a/cupy/core/core.pyx +++ b/cupy/core/core.pyx @@ -2324,6 +2324,8 @@ def array_split(ndarray ary, indices_or_sections, Py_ssize_t axis): prev = 0 ret = [] stride = ary._strides[axis] + if ary.size == 0: + ...
cupy__cupy-2488
`import cupy` causes `ImportWarning` Reported [here](https://github.com/chainer/chainer/pull/8131#issuecomment-532521654). (by running with `python -W error`) > ``` > >>> import cupy > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "******/python3.7/site-packages/cupy/__init...
[ { "content": "from __future__ import division\nimport sys\nimport warnings\n\nimport numpy\nimport six\n\nfrom cupy import _version\n\n\ntry:\n from cupy import core # NOQA\nexcept ImportError:\n # core is a c-extension module.\n # When a user cannot import core, it represents that CuPy is not correct...
[ { "content": "from __future__ import division\nimport sys\nimport warnings\n\nimport numpy\nimport six\n\nfrom cupy import _version\n\n\ntry:\n with warnings.catch_warnings():\n warnings.filterwarnings('ignore', category=ImportWarning,\n message='can\\'t resolve package ...
diff --git a/cupy/__init__.py b/cupy/__init__.py index 9af359ba845..a8e8660fd70 100644 --- a/cupy/__init__.py +++ b/cupy/__init__.py @@ -9,7 +9,10 @@ try: - from cupy import core # NOQA + with warnings.catch_warnings(): + warnings.filterwarnings('ignore', category=ImportWarning, + ...
Mailu__Mailu-1487
We need to check the (persistent) postfix mailqueue permissions As the postfix and postdrop uid/gid might change (especially with a change of base image), it is needed to check the directory permissions on /queue before starting postfix
[ { "content": "#!/usr/bin/python3\n\nimport os\nimport glob\nimport shutil\nimport multiprocessing\nimport logging as log\nimport sys\n\nfrom podop import run_server\nfrom socrate import system, conf\n\nlog.basicConfig(stream=sys.stderr, level=os.environ.get(\"LOG_LEVEL\", \"WARNING\"))\n\ndef start_podop():\n...
[ { "content": "#!/usr/bin/python3\n\nimport os\nimport glob\nimport shutil\nimport multiprocessing\nimport logging as log\nimport sys\n\nfrom podop import run_server\nfrom socrate import system, conf\n\nlog.basicConfig(stream=sys.stderr, level=os.environ.get(\"LOG_LEVEL\", \"WARNING\"))\n\ndef start_podop():\n...
diff --git a/core/postfix/start.py b/core/postfix/start.py index c32099bf2..b68303e18 100755 --- a/core/postfix/start.py +++ b/core/postfix/start.py @@ -64,4 +64,7 @@ def is_valid_postconf_line(line): # Run Podop and Postfix multiprocessing.Process(target=start_podop).start() os.system("/usr/libexec/postfix/post-ins...
Qiskit__qiskit-7933
QPY can't serialize `UCRZGate` ### Environment - **Qiskit Terra version**: 0.19.2 - **Python version**: 3.9.7 - **Operating system**: macOS Monterey 12.2.1 ### What is happening? While developing a [Grover's tutorial](https://github.com/Qiskit/qiskit-ibm-runtime/pull/236) for the new Qiskit Runtime primiti...
[ { "content": "# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2021.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.\n#\n# Any ...
[ { "content": "# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2021.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.\n#\n# Any ...
diff --git a/qiskit/qpy/binary_io/circuits.py b/qiskit/qpy/binary_io/circuits.py index a54df2d448ce..e09515263b11 100644 --- a/qiskit/qpy/binary_io/circuits.py +++ b/qiskit/qpy/binary_io/circuits.py @@ -240,7 +240,7 @@ def _read_instruction(file_obj, circuit, registers, custom_instructions, version if gate_name in...
yt-project__yt-4264
BUG: PlotContainer.set_font is broken (color) ### Bug report **Bug summary** Setting the text color in a PlotContainer object currently doesn't work **Code for reproduction** ```python import yt ds = yt.load_sample("IsolatedGalaxy") p = yt.SlicePlot(ds, "z", ("gas", "density")) p.set_font({"color": "b...
[ { "content": "import sys\nimport warnings\nfrom abc import ABC\nfrom io import BytesIO\nfrom typing import Optional, Tuple, Union\n\nimport matplotlib\nimport numpy as np\nfrom matplotlib.axis import Axis\nfrom matplotlib.colors import LogNorm, Normalize, SymLogNorm\nfrom matplotlib.figure import Figure\nfrom m...
[ { "content": "import sys\nimport warnings\nfrom abc import ABC\nfrom io import BytesIO\nfrom typing import Optional, Tuple, Union\n\nimport matplotlib\nimport numpy as np\nfrom matplotlib.axis import Axis\nfrom matplotlib.colors import LogNorm, Normalize, SymLogNorm\nfrom matplotlib.figure import Figure\nfrom m...
diff --git a/yt/visualization/base_plot_types.py b/yt/visualization/base_plot_types.py index 2cac2ab37ef..22c660f360f 100644 --- a/yt/visualization/base_plot_types.py +++ b/yt/visualization/base_plot_types.py @@ -198,7 +198,7 @@ def _set_font_properties(self, font_properties, font_color): for label in self._ge...
carltongibson__django-filter-526
Remove extra word in tips.txt
[ { "content": "\nfrom __future__ import absolute_import\n\nimport django\nfrom django.conf import settings\n\n\n# django-crispy-forms is optional\ntry:\n import crispy_forms\nexcept ImportError:\n crispy_forms = None\n\nis_crispy = 'crispy_forms' in settings.INSTALLED_APPS and crispy_forms\n\n\n# coreapi o...
[ { "content": "\nfrom __future__ import absolute_import\n\nimport django\nfrom django.conf import settings\n\n\n# django-crispy-forms is optional\ntry:\n import crispy_forms\nexcept ImportError:\n crispy_forms = None\n\nis_crispy = 'crispy_forms' in settings.INSTALLED_APPS and crispy_forms\n\n\n# coreapi i...
diff --git a/django_filters/compat.py b/django_filters/compat.py index cbac451ba..44ffb7b70 100644 --- a/django_filters/compat.py +++ b/django_filters/compat.py @@ -14,9 +14,11 @@ is_crispy = 'crispy_forms' in settings.INSTALLED_APPS and crispy_forms -# coreapi only compatible with DRF 3.4+ +# coreapi is optional ...
Flexget__Flexget-3470
Console formatting causing crash ### Expected behaviour: Output the entry-list's entries ### Actual behaviour: Output crash traceback #### Config: N\A #### Log: <details> <summary>(click to expand)</summary> ``` $ flexget entry-list list manga Traceback (most recent call last): File "C:\Python3...
[ { "content": "import contextlib\nimport os\nimport threading\nfrom textwrap import wrap\nfrom typing import Any, Iterator, Optional, TextIO, Union\n\nimport rich\nimport rich.box\nimport rich.console\nimport rich.rule\nimport rich.segment\nimport rich.table\nimport rich.text\n\nfrom flexget.options import Argum...
[ { "content": "import contextlib\nimport os\nimport threading\nfrom textwrap import wrap\nfrom typing import Any, Iterator, Optional, TextIO, Union\n\nimport rich\nimport rich.box\nimport rich.console\nimport rich.rule\nimport rich.segment\nimport rich.table\nimport rich.text\n\nfrom flexget.options import Argum...
diff --git a/flexget/terminal.py b/flexget/terminal.py index d6ce58de44..a87fd378b7 100644 --- a/flexget/terminal.py +++ b/flexget/terminal.py @@ -21,6 +21,7 @@ class _Console(rich.console.Console): def __init__(self, *args, **kwargs): if "PYCHARM_HOSTED" in os.environ: kwargs.setdefault('col...
Theano__Theano-3822
libcuda_ndarray.so: cannot open shared object file I was trying to get the theano up and running on computation grid and I always got following error after import ``` >>> import theano .... libcuda_ndarray.so: cannot open shared object file ``` After some googling I found following thread on google groups:...
[ { "content": "from __future__ import print_function\nimport six.moves.cPickle as pickle\nimport errno\nimport logging\nimport os\nimport platform\nimport re\nimport shutil\nimport struct\nimport socket\nimport sys\nimport textwrap\n\nimport numpy\n\nimport theano\nfrom six import string_types, iteritems\nfrom t...
[ { "content": "from __future__ import print_function\nimport six.moves.cPickle as pickle\nimport errno\nimport logging\nimport os\nimport platform\nimport re\nimport shutil\nimport struct\nimport socket\nimport sys\nimport textwrap\n\nimport numpy\n\nimport theano\nfrom six import string_types, iteritems\nfrom t...
diff --git a/theano/gof/compiledir.py b/theano/gof/compiledir.py index da50f322abe..46ff8f05bec 100644 --- a/theano/gof/compiledir.py +++ b/theano/gof/compiledir.py @@ -142,6 +142,11 @@ def short_platform(r=None, p=None): sr = '-'.join(sp) p = p.replace(r, sr) + p = p.replace(':', '-') + p = p.replace...
great-expectations__great_expectations-3945
Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y`
[ { "content": "import os\nimport sys\nfrom typing import Dict\n\nimport click\nfrom ruamel.yaml import YAML\n\nfrom great_expectations import DataContext\nfrom great_expectations.checkpoint import Checkpoint\nfrom great_expectations.cli.v012 import toolkit\nfrom great_expectations.cli.v012.mark import Mark as ma...
[ { "content": "import os\nimport sys\nfrom typing import Dict\n\nimport click\nfrom ruamel.yaml import YAML\n\nfrom great_expectations import DataContext\nfrom great_expectations.checkpoint import Checkpoint\nfrom great_expectations.cli.v012 import toolkit\nfrom great_expectations.cli.v012.mark import Mark as ma...
diff --git a/babel.config.js b/babel.config.js old mode 100755 new mode 100644 diff --git a/docusaurus.config.js b/docusaurus.config.js old mode 100755 new mode 100644 diff --git a/great_expectations/cli/v012/checkpoint.py b/great_expectations/cli/v012/checkpoint.py index 2c4743a21c9f..3b22c167a5cf 100644 --- a/great_e...
nvaccess__nvda-14664
Strange behavior in dictionaries if replacement contains space <!-- Please read the text in this edit field before filling it in. Please thoroughly read NVDA's wiki article on how to fill in this template, including how to provide the required files. Issues may be closed if the required information is not present. h...
[ { "content": "# A part of NonVisual Desktop Access (NVDA)\r\n# Copyright (C) 2006-2023 NVDA Contributors <http://www.nvda-project.org/>\r\n# This file is covered by the GNU General Public License.\r\n# See the file COPYING for more details.\r\n\r\nimport re\r\nimport globalVars\r\nfrom logHandler import log\r\n...
[ { "content": "# A part of NonVisual Desktop Access (NVDA)\r\n# Copyright (C) 2006-2023 NVDA Contributors <http://www.nvda-project.org/>\r\n# This file is covered by the GNU General Public License.\r\n# See the file COPYING for more details.\r\n\r\nimport re\r\nimport globalVars\r\nfrom logHandler import log\r\n...
diff --git a/source/speechDictHandler/__init__.py b/source/speechDictHandler/__init__.py index 5498de29a54..d4f1487465f 100644 --- a/source/speechDictHandler/__init__.py +++ b/source/speechDictHandler/__init__.py @@ -44,7 +44,8 @@ def sub(self, text: str) -> str: if self.type == ENTRY_TYPE_REGEXP: replacement =...
oobabooga__text-generation-webui-1261
Flexgen error with opt-13b-erebus ### Describe the bug When I try to talk I get this error ### Is there an existing issue for this? - [x] I have searched the existing issues ### Reproduction python server.py --model opt-13b-erebus --chat --flexgen --compress-weight --verbose ### Screenshot _No response_ ### Log...
[ { "content": "import ast\nimport random\nimport re\nimport time\nimport traceback\n\nimport numpy as np\nimport torch\nimport transformers\n\nimport modules.shared as shared\nfrom modules.callbacks import (Iteratorize, Stream,\n _SentinelTokenStoppingCriteria)\nfrom modules.extensi...
[ { "content": "import ast\nimport random\nimport re\nimport time\nimport traceback\n\nimport numpy as np\nimport torch\nimport transformers\n\nimport modules.shared as shared\nfrom modules.callbacks import (Iteratorize, Stream,\n _SentinelTokenStoppingCriteria)\nfrom modules.extensi...
diff --git a/modules/text_generation.py b/modules/text_generation.py index 93288316c9..7bfaafe00a 100644 --- a/modules/text_generation.py +++ b/modules/text_generation.py @@ -209,7 +209,7 @@ def generate_reply(question, state, eos_token=None, stopping_strings=[]): else: for k in ['max_new_tokens', 'do_sam...
wagtail__wagtail-1856
Searching a queryset of a specific page class with a child_of/descendant_of filter gives error Searching on a specific page class with the `child_of`/`descendant_of` filter applied, gives the following error: ``` FieldError at /videos/ Cannot filter search results with field "page_ptr_id". Please add index.FilterFiel...
[ { "content": "\nfrom django.db.models.query import QuerySet\nfrom django.db.models.lookups import Lookup\nfrom django.db.models.sql.where import SubqueryConstraint, WhereNode\nfrom django.utils.six import text_type\n\nfrom wagtail.wagtailsearch.index import class_is_indexed\n\n\nclass FilterError(Exception):\n ...
[ { "content": "\nfrom django.db.models.query import QuerySet\nfrom django.db.models.lookups import Lookup\nfrom django.db.models.sql.where import SubqueryConstraint, WhereNode\nfrom django.utils.six import text_type\n\nfrom wagtail.wagtailsearch.index import class_is_indexed\n\n\nclass FilterError(Exception):\n ...
diff --git a/wagtail/wagtailsearch/backends/base.py b/wagtail/wagtailsearch/backends/base.py index 29c36b809e7b..600f355a2ad5 100644 --- a/wagtail/wagtailsearch/backends/base.py +++ b/wagtail/wagtailsearch/backends/base.py @@ -71,6 +71,10 @@ def _get_filters_from_where_node(self, where_node): lookup = wher...
e-valuation__EvaP-566
colorize average grades on course detail pages the numbers in the lower right should be css'd like the ones in the upper left. ![2015 04 02 17_35_57-000017](https://cloud.githubusercontent.com/assets/1891915/6967309/c4bbfc5a-d95e-11e4-89c6-62640090b0c5.png)
[ { "content": "from django.template import Library\n\nregister = Library()\n\n\n@register.inclusion_tag(\"user_list_with_links.html\")\ndef include_user_list_with_links(users):\n return dict(users=users)\n\n\n@register.inclusion_tag(\"sortable_form_js.html\")\ndef include_sortable_form_js():\n return dict(...
[ { "content": "from django.template import Library\n\nregister = Library()\n\n\n@register.inclusion_tag(\"user_list_with_links.html\")\ndef include_user_list_with_links(users):\n return dict(users=users)\n\n\n@register.inclusion_tag(\"sortable_form_js.html\")\ndef include_sortable_form_js():\n return dict(...
diff --git a/evap/evaluation/templates/result_bar.html b/evap/evaluation/templates/result_bar.html new file mode 100644 index 0000000000..3aacb860f9 --- /dev/null +++ b/evap/evaluation/templates/result_bar.html @@ -0,0 +1,26 @@ +{% load morefilters %} +{% load i18n %} + +{% if show_grades and result.count > 0 %} + {...
holoviz__panel-2141
Player Widget does not loop when going forward, only backward #### ALL software version info Not sure of the panel version on the linked webpage, assuming the most recent. On my installation, it's 0.11.1. Firefox 87.0. #### Description of expected behavior and the observed behavior Set widget cursor near th...
[ { "content": "\"\"\"\nCustom bokeh Widget models.\n\"\"\"\nfrom bokeh.core.enums import ButtonType\n\nfrom bokeh.core.properties import (\n Any, Bool, Dict, Either, Enum, Float, Int, List, Nullable,\n Override, String, Tuple\n)\nfrom bokeh.models.layouts import HTMLBox\nfrom bokeh.models.widgets import In...
[ { "content": "\"\"\"\nCustom bokeh Widget models.\n\"\"\"\nfrom bokeh.core.enums import ButtonType\n\nfrom bokeh.core.properties import (\n Any, Bool, Dict, Either, Enum, Float, Int, List, Nullable,\n Override, String, Tuple\n)\nfrom bokeh.models.layouts import HTMLBox\nfrom bokeh.models.widgets import In...
diff --git a/panel/models/player.ts b/panel/models/player.ts index e5737ec91f..2f8498455b 100644 --- a/panel/models/player.ts +++ b/panel/models/player.ts @@ -343,8 +343,8 @@ export class Player extends Widget { this.define<Player.Props>(({Boolean, Int}) => ({ direction: [ Int, 0 ], ...
rlworkgroup__garage-1639
Docs page "Ensure your experiments are reproducible" See #1426
[ { "content": "\"\"\"Simple 2D environment containing a point and a goal location.\"\"\"\nimport gym\nimport numpy as np\n\nfrom garage.envs.step import Step\n\n\nclass PointEnv(gym.Env):\n \"\"\"A simple 2D point environment.\n\n Attributes:\n observation_space (gym.spaces.Box): The observation spa...
[ { "content": "\"\"\"Simple 2D environment containing a point and a goal location.\"\"\"\nimport gym\nimport numpy as np\n\nfrom garage.envs.step import Step\n\n\nclass PointEnv(gym.Env):\n \"\"\"A simple 2D point environment.\n\n Attributes:\n observation_space (gym.spaces.Box): The observation spa...
diff --git a/docs/index.md b/docs/index.md index c2790f3603..61004400e5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -30,6 +30,7 @@ and how to implement new MDPs and new algorithms. user/save_load_resume_exp user/reuse_garage_policy user/docker + user/ensure_your_experiments_are_reproducible .. to...
ManimCommunity__manim-862
Prepare documentation for translation We should look into setting up https://www.sphinx-doc.org/en/master/usage/advanced/intl.html and document the steps required for adding translations.
[ { "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 -------------------------------------------...
null
bokeh__bokeh-1361
Cannot style minor ticks Axis objects do not have minor tick properties.
[ { "content": "from __future__ import absolute_import\n\nfrom ..properties import Int, Float, String, Enum, Instance, Tuple, Either, Include\nfrom ..mixins import LineProps, TextProps\nfrom ..enums import Location\n\nfrom .renderers import GuideRenderer\nfrom .tickers import Ticker, BasicTicker, LogTicker, Categ...
[ { "content": "from __future__ import absolute_import\n\nfrom ..properties import Int, Float, String, Enum, Instance, Tuple, Either, Include\nfrom ..mixins import LineProps, TextProps\nfrom ..enums import Location\n\nfrom .renderers import GuideRenderer\nfrom .tickers import Ticker, BasicTicker, LogTicker, Categ...
diff --git a/bokeh/models/axes.py b/bokeh/models/axes.py index a9d428405db..d41fdc188c5 100644 --- a/bokeh/models/axes.py +++ b/bokeh/models/axes.py @@ -27,11 +27,15 @@ class Axis(GuideRenderer): major_label_props = Include(TextProps) axis_props = Include(LineProps) - major_tick_props = Include(LineProps...
opendatacube__datacube-core-720
Vitrual product aggregation needs to carry the temporal coordinates attributes ### Expected behaviour The output time coordinates from `aggregation` should have the exact same attributes as the input product. ### Actual behaviour Only the values of the time coordinates present in the output product. ### Steps...
[ { "content": "\"\"\"\nImplementation of virtual products. Provides an interface for the products in the datacube\nto query and to load data, and combinators to combine multiple products into \"virtual\"\nproducts implementing the same interface.\n\"\"\"\n\nfrom abc import ABC, abstractmethod\nfrom collections.a...
[ { "content": "\"\"\"\nImplementation of virtual products. Provides an interface for the products in the datacube\nto query and to load data, and combinators to combine multiple products into \"virtual\"\nproducts implementing the same interface.\n\"\"\"\n\nfrom abc import ABC, abstractmethod\nfrom collections.a...
diff --git a/datacube/virtual/impl.py b/datacube/virtual/impl.py index 24de8456d3..8e096bd91d 100644 --- a/datacube/virtual/impl.py +++ b/datacube/virtual/impl.py @@ -431,7 +431,9 @@ def statistic(coords, value): return result groups = list(xr_map(grouped.pile, statistic)) - return xarray...
ocadotechnology__aimmo-123
Users should see which avatar is theirs
[ { "content": "import logging\n\nfrom django.http import JsonResponse\nfrom django.contrib.auth.decorators import login_required\nfrom django.http import HttpResponse\nfrom django.views.generic import TemplateView\n\nimport os\n\nfrom models import Player\nfrom . import app_settings\n\n\ndef _post_code_success_r...
[ { "content": "import logging\n\nfrom django.http import JsonResponse\nfrom django.contrib.auth.decorators import login_required\nfrom django.http import HttpResponse\nfrom django.views.generic import TemplateView\n\nimport os\n\nfrom models import Player\nfrom . import app_settings\n\n\ndef _post_code_success_r...
diff --git a/players/static/js/watch/world-viewer.js b/players/static/js/watch/world-viewer.js index cf75bec55..b079a9698 100644 --- a/players/static/js/watch/world-viewer.js +++ b/players/static/js/watch/world-viewer.js @@ -46,34 +46,47 @@ const VIEWER = Object.create({ } }, - constructNewPlayerElem...
getpelican__pelican-2610
Use published as default status Hi, at https://github.com/getpelican/pelican/blob/master/pelican/contents.py#L144 the `status` of a content is set to `None` is `default_status` is not specified. This deterministically causes an error as soon as `lower` is called on it at https://github.com/getpelican/pelican/blob/ma...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import print_function, unicode_literals\n\nimport copy\nimport locale\nimport logging\nimport os\nimport re\nimport sys\n\nimport pytz\n\nimport six\nfrom six.moves.urllib.parse import urljoin, urlparse, urlunparse\n\nfrom pelican import signals\nfrom pelic...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import print_function, unicode_literals\n\nimport copy\nimport locale\nimport logging\nimport os\nimport re\nimport sys\n\nimport pytz\n\nimport six\nfrom six.moves.urllib.parse import urljoin, urlparse, urlunparse\n\nfrom pelican import signals\nfrom pelic...
diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 000000000..dccbdff8b --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,7 @@ +Release type: patch + +Set default content status to a blank string rather than `None`. Fixes +[#2558](https://github.com/getpelican/pelican/issues/2558). Fixes issues +encountered by com...
qutebrowser__qutebrowser-2852
Crash with web-history-max-items and no items in the history When running `qutebrowser --debug --temp-basedir --backend webengine -s completion web-history-max-items 1000` and immediately pressing `o`, this happens: ``` 12:21:36 DEBUG sql sql:__init__:80 Preparing SQL query: "SELECT min(last_atime) FROM (...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2017 Ryan Roden-Corrent (rcorre) <ryan@rcorre.net>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as publishe...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2017 Ryan Roden-Corrent (rcorre) <ryan@rcorre.net>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as publishe...
diff --git a/qutebrowser/completion/models/histcategory.py b/qutebrowser/completion/models/histcategory.py index 612eb0bf415..2977bfee446 100644 --- a/qutebrowser/completion/models/histcategory.py +++ b/qutebrowser/completion/models/histcategory.py @@ -72,6 +72,10 @@ def _atime_expr(self): 'ORDER BY last_a...
saleor__saleor-1604
Promotional code field and button overlap each other. In the checkout process: <img width="465" alt="zrzut ekranu 2018-01-10 o 10 02 22" src="https://user-images.githubusercontent.com/1561204/34765559-24865056-f5f2-11e7-9e2a-d0ff639e7a79.png">
[ { "content": "from datetime import date\n\nfrom django import forms\nfrom django.utils.encoding import smart_text\nfrom django.utils.translation import pgettext_lazy\n\nfrom .models import NotApplicable, Voucher\n\n\nclass VoucherField(forms.ModelChoiceField):\n\n default_error_messages = {\n 'invalid...
[ { "content": "from datetime import date\n\nfrom django import forms\nfrom django.utils.encoding import smart_text\nfrom django.utils.translation import pgettext_lazy\n\nfrom .models import NotApplicable, Voucher\n\n\nclass VoucherField(forms.ModelChoiceField):\n\n default_error_messages = {\n 'invalid...
diff --git a/saleor/discount/forms.py b/saleor/discount/forms.py index 4bb2c9011ba..a501243877d 100644 --- a/saleor/discount/forms.py +++ b/saleor/discount/forms.py @@ -21,7 +21,7 @@ class CheckoutDiscountForm(forms.Form): voucher = VoucherField( queryset=Voucher.objects.none(), to_field_name='co...
scalableminds__webknossos-libs-324
BoundingBox and BoundingBoxNamedTuple should have bidirectional conversion A lot of voxelytics code does nothing but converting these, which could be DRYer by moving the conversion into the API
[ { "content": "# mypy: allow-untyped-defs\nimport json\nimport re\nfrom typing import (\n Dict,\n Generator,\n Iterable,\n List,\n Optional,\n Tuple,\n Union,\n NamedTuple,\n cast,\n)\n\nimport numpy as np\n\nfrom wkcuber.mag import Mag\n\nShape3D = Union[List[int], Tuple[int, int, int...
[ { "content": "# mypy: allow-untyped-defs\nimport json\nimport re\nfrom typing import (\n Dict,\n Generator,\n Iterable,\n List,\n Optional,\n Tuple,\n Union,\n NamedTuple,\n cast,\n)\n\nimport numpy as np\n\nfrom wkcuber.mag import Mag\n\nShape3D = Union[List[int], Tuple[int, int, int...
diff --git a/Changelog.md b/Changelog.md index cb0759ee0..fc74fe3ed 100644 --- a/Changelog.md +++ b/Changelog.md @@ -12,6 +12,7 @@ For upgrade instructions, please check the respective *Breaking Changes* section ### Breaking Changes in Config & CLI ### Added +- Added a function for converting `BoundingBox` to `Boun...
jazzband__pip-tools-1827
"--cache-dir" flag is ignored when specifying "--resolver=backtracking" When using the backtracking resolver, the custom cache dir flag appears to be ignored. #### Environment Versions 1. Ubuntu 22.04 1. Python version: 3.11.1 1. pip version: 22.3.1 1. pip-tools version: 6.12.1 #### Steps to replicate Ex...
[ { "content": "from __future__ import annotations\n\nimport itertools\nimport os\nimport shlex\nimport sys\nimport tempfile\nfrom typing import IO, Any, BinaryIO, cast\n\nimport click\nfrom build import BuildBackendException\nfrom build.util import project_wheel_metadata\nfrom click.utils import LazyFile, safeca...
[ { "content": "from __future__ import annotations\n\nimport itertools\nimport os\nimport shlex\nimport sys\nimport tempfile\nfrom typing import IO, Any, BinaryIO, cast\n\nimport click\nfrom build import BuildBackendException\nfrom build.util import project_wheel_metadata\nfrom click.utils import LazyFile, safeca...
diff --git a/piptools/scripts/compile.py b/piptools/scripts/compile.py index f578140d1..4afcc20e0 100755 --- a/piptools/scripts/compile.py +++ b/piptools/scripts/compile.py @@ -424,6 +424,8 @@ def cli( pip_args.append("--no-build-isolation") if resolver_name == "legacy": pip_args.extend(["--use-d...
falconry__falcon-1997
Code listing for app.py in "look” Tutorial has a bug In the [Serving images](https://falcon.readthedocs.io/en/stable/user/tutorial.html#serving-images) section, the code listing for `app.py` tries to import the `images` module as `import images`. I believe this should be `from look import images` or depending on one's ...
[ { "content": "from functools import wraps\nfrom inspect import iscoroutinefunction\n\nimport falcon\n\ntry:\n import jsonschema\nexcept ImportError: # pragma: nocover\n pass\n\n\ndef validate(req_schema=None, resp_schema=None, is_async=False):\n \"\"\"Validate ``req.media`` using JSON Schema.\n\n T...
[ { "content": "from functools import wraps\nfrom inspect import iscoroutinefunction\n\nimport falcon\n\ntry:\n import jsonschema\nexcept ImportError: # pragma: nocover\n pass\n\n\ndef validate(req_schema=None, resp_schema=None, is_async=False):\n \"\"\"Validate ``req.media`` using JSON Schema.\n\n T...
diff --git a/docs/api/routing.rst b/docs/api/routing.rst index 17256e02d..ee31f4970 100644 --- a/docs/api/routing.rst +++ b/docs/api/routing.rst @@ -412,11 +412,13 @@ following: resp.text = str(req.get_param_as_int('x') + req.get_param_as_int('y')) resp.status = falcon.HTTP_200 + class ...
rotki__rotki-285
OTC trades table no longer appears in the UI ## Problem Definition The table in OTC trades no longer appears in the OTC trades pane of the UI ## Task Fix it
[ { "content": "# Based on https://github.com/fyears/electron-python-example\nfrom __future__ import print_function\n\nimport logging\nimport signal\nimport traceback\n\nimport gevent\nimport zerorpc\nfrom gevent.event import Event\nfrom gevent.lock import Semaphore\n\nfrom rotkehlchen.args import app_args\nfrom ...
[ { "content": "# Based on https://github.com/fyears/electron-python-example\nfrom __future__ import print_function\n\nimport logging\nimport signal\nimport traceback\n\nimport gevent\nimport zerorpc\nfrom gevent.event import Event\nfrom gevent.lock import Semaphore\n\nfrom rotkehlchen.args import app_args\nfrom ...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 4d0b594176..cedbd0d305 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,7 @@ Changelog ========= +* :bug:`283` OTC Trades table is now properly rendered again * :feature:`268` Version name is now included in rotkehlchen binaries and othe...
carpentries__amy-1283
Add search by github handle to API persons endpoint Would it be possible to add the functionality to search for people using their github handle through the API? i.e. `https://amy.software-carpentry.org/api/v1/persons/?github=fmichonneau`
[ { "content": "from django_filters import rest_framework as filters\n\nfrom workshops.filters import AMYFilterSet\nfrom workshops.models import Event, Task, Tag, Person, Badge\n\n\ndef filter_tag_by_name(queryset, name, values):\n tags = Tag.objects.filter(name__in=values)\n for tag in tags:\n query...
[ { "content": "from django_filters import rest_framework as filters\n\nfrom workshops.filters import AMYFilterSet\nfrom workshops.models import Event, Task, Tag, Person, Badge\n\n\ndef filter_tag_by_name(queryset, name, values):\n tags = Tag.objects.filter(name__in=values)\n for tag in tags:\n query...
diff --git a/api/filters.py b/api/filters.py index 20b93b21d..18f68cdc4 100644 --- a/api/filters.py +++ b/api/filters.py @@ -59,7 +59,7 @@ class Meta: model = Person fields = ( 'badges', 'username', 'personal', 'middle', 'family', 'email', - 'may_contact', 'publish_profile', + ...
openstates__openstates-scrapers-2372
AZ failing since at least 2018-05-30 AZ has been failing since 2018-05-30 Based on automated runs it appears that AZ has not run successfully in 2 days (2018-05-30). ``` 02:06:33 INFO scrapelib: GET - https://apps.azleg.gov/api/Bill/?billNumber=SCM1003&sessionId=119&legislativeBody=S 02:06:34 INFO scrapelib: GET -...
[ { "content": "import json\nimport datetime\n\nfrom lxml import html\nfrom pupa.scrape import Scraper, Bill, VoteEvent\n\nfrom . import utils\nfrom . import session_metadata\n\n\nBASE_URL = 'https://www.azleg.gov/'\n\n\nclass AZBillScraper(Scraper):\n chamber_map = {'lower': 'H', 'upper': 'S'}\n chamber_ma...
[ { "content": "import json\nimport datetime\n\nfrom lxml import html\nfrom pupa.scrape import Scraper, Bill, VoteEvent\n\nfrom . import utils\nfrom . import session_metadata\n\n\nBASE_URL = 'https://www.azleg.gov/'\n\n\nclass AZBillScraper(Scraper):\n chamber_map = {'lower': 'H', 'upper': 'S'}\n chamber_ma...
diff --git a/openstates/az/bills.py b/openstates/az/bills.py index f9030f2a8c..01b0898661 100644 --- a/openstates/az/bills.py +++ b/openstates/az/bills.py @@ -258,7 +258,7 @@ def scrape_votes(self, bill, page): 'N': 'no', }.get(v['Vote'], 'other') vote....
aio-libs__aiohttp-5130
TypeError in web.py - '<' not supported between instances of 'sys.version_info' and 'float' 🐞 **Describe the bug** <!-- A clear and concise description of what the bug is, on the next line. --> 💡 **To Reproduce** 1. Windows, Python 3.9.0 x64 2. "from aiohttp import web" 📋 **Logs/tracebacks** <!-- If ap...
[ { "content": "import asyncio\nimport logging\nimport socket\nimport sys\nfrom argparse import ArgumentParser\nfrom collections.abc import Iterable\nfrom importlib import import_module\nfrom typing import (\n Any as Any,\n Awaitable as Awaitable,\n Callable as Callable,\n Iterable as TypingIterable,\...
[ { "content": "import asyncio\nimport logging\nimport socket\nimport sys\nfrom argparse import ArgumentParser\nfrom collections.abc import Iterable\nfrom importlib import import_module\nfrom typing import (\n Any as Any,\n Awaitable as Awaitable,\n Callable as Callable,\n Iterable as TypingIterable,\...
diff --git a/CHANGES/5127.bugfix b/CHANGES/5127.bugfix new file mode 100644 index 00000000000..581ab3e8c31 --- /dev/null +++ b/CHANGES/5127.bugfix @@ -0,0 +1 @@ +Fix a bug in ``web.run_app()`` about Python version checking on Windows diff --git a/aiohttp/web.py b/aiohttp/web.py index b666a4277e1..3538d4f5098 100644 ---...
pyca__cryptography-7011
OCB mode (AESOCB3) should support nonce sizes up to 15 bytes [`cryptography.hazmat.primitives.ciphers.aead.AESOCB3._check_params`](https://github.com/pyca/cryptography/blob/d98e0bd355544a28cc36aba3a05d6e44604ac289/src/cryptography/hazmat/primitives/ciphers/aead.py#L281) requires that the nonce size be fixed at 12 bytes...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\n\nimport os\nimport typing\n\nfrom cryptography import exceptions, utils\nfrom cryptography.hazmat.backends.opens...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\n\nimport os\nimport typing\n\nfrom cryptography import exceptions, utils\nfrom cryptography.hazmat.backends.opens...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 3ce0dbd9019b..a4f51ac20c6d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -38,13 +38,16 @@ Changelog ``manylinux`` wheels provided they have an up to date ``pip``. * Added support for multiple :class:`~cryptography.x509.ocsp.OCSPSingleResponse` in a - :class:`...
e-valuation__EvaP-1831
User Import File Selection: Mime-Filter not working With Firefox 104.0.2, I don't get a file type filter in the file selection dialog that opens when clicking on "Select file" on the staff user import page. Similarly to the semester import, it would be nice if users would get a correctly filtered file selection dial...
[ { "content": "import logging\nfrom collections.abc import Iterable\n\nfrom django import forms\nfrom django.contrib.auth.models import Group\nfrom django.core.exceptions import SuspiciousOperation, ValidationError\nfrom django.db import transaction\nfrom django.db.models import Max, Q\nfrom django.forms.models ...
[ { "content": "import logging\nfrom collections.abc import Iterable\n\nfrom django import forms\nfrom django.contrib.auth.models import Group\nfrom django.core.exceptions import SuspiciousOperation, ValidationError\nfrom django.db import transaction\nfrom django.db.models import Max, Q\nfrom django.forms.models ...
diff --git a/evap/staff/forms.py b/evap/staff/forms.py index d7f8003fb5..573f140535 100644 --- a/evap/staff/forms.py +++ b/evap/staff/forms.py @@ -111,7 +111,11 @@ class ImportForm(forms.Form): class UserImportForm(forms.Form): use_required_attribute = False - excel_file = forms.FileField(label=_("Excel file...
google__mobly-472
Log the contents of config file at the debug level early This helps in debugging remote user's malformed json/yaml or configs that don't adhere to schema.
[ { "content": "# Copyright 2016 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# Unless required by applicab...
[ { "content": "# Copyright 2016 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# Unless required by applicab...
diff --git a/mobly/config_parser.py b/mobly/config_parser.py index aa43c034..b873af0a 100644 --- a/mobly/config_parser.py +++ b/mobly/config_parser.py @@ -16,6 +16,7 @@ import copy import io +import pprint import os import yaml @@ -189,4 +190,7 @@ def copy(self): return copy.deepcopy(self) def _...
quantumlib__Cirq-4249
Push to PyPi failing ``` error in cirq setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers. ``` See https://github.com/quantumlib/Cirq/runs/2851981344
[ { "content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/setup.py b/setup.py index c78276307e8..00898f147bd 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,9 @@ requirements = [f'{p.name}=={p.version}' for p in modules.list_modules()] dev_requirements = explode('dev_tools/requirements/deps/dev-tools.txt') -dev_requirements = [r.strip() for r in dev_require...
dynamiqs__dynamiqs-525
Fix imageio "fps" deprecation warning. In older versions, the `fps` keyword is deprecated, which raises a bug when running `dq.plot_wigner_gif`. Closes https://linear.app/dynamiqs/issue/DYN-175/fix-fps-warning-when-running-tests.
[ { "content": "from __future__ import annotations\n\nimport pathlib\nimport shutil\n\nimport imageio as iio\nimport IPython.display as ipy\nimport jax.numpy as jnp\nimport numpy as np\nfrom jax.typing import ArrayLike\nfrom matplotlib import pyplot as plt\nfrom matplotlib.axes import Axes\nfrom matplotlib.colors...
[ { "content": "from __future__ import annotations\n\nimport pathlib\nimport shutil\n\nimport imageio as iio\nimport IPython.display as ipy\nimport jax.numpy as jnp\nimport numpy as np\nfrom jax.typing import ArrayLike\nfrom matplotlib import pyplot as plt\nfrom matplotlib.axes import Axes\nfrom matplotlib.colors...
diff --git a/dynamiqs/plots/plots_wigner.py b/dynamiqs/plots/plots_wigner.py index c244d4441..105314ba7 100644 --- a/dynamiqs/plots/plots_wigner.py +++ b/dynamiqs/plots/plots_wigner.py @@ -340,8 +340,7 @@ def plot_wigner_gif( frames.append(frame) # loop=0: loop the GIF forever - duration ...
open-telemetry__opentelemetry-python-621
Bug in b3 propagation When configuring b3 propagation, if the parent of a Span is an instance of a SpanContext, the following error occurs: `'SpanContext' object has no attribute 'context'`
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/b3_format.py b/opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/b3_format.py index e082ed03e4e..c0a080e631b 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/b3_format.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/tr...
espnet__espnet-1779
built in ctc conflict with apex ``` # asr_train.py --config conf/tuning/train_pytorch_transformer_medium.yaml --train-dtype O1 --ctc_type builtin --ngpu 4 --backend pytorch --outdir exp/train_pytorch_129.d_resume/results --tensorboard-dir tensorboard/train_pytorch_129.d_resume --debugmode 1 --dict data/lang_char/train...
[ { "content": "#!/usr/bin/env python3\n# encoding: utf-8\n\n# Copyright 2017 Johns Hopkins University (Shinji Watanabe)\n# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n\n\"\"\"Training/decoding definition for the speech recognition task.\"\"\"\n\nimport copy\nimport json\nimport logging\nimport mat...
[ { "content": "#!/usr/bin/env python3\n# encoding: utf-8\n\n# Copyright 2017 Johns Hopkins University (Shinji Watanabe)\n# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n\n\"\"\"Training/decoding definition for the speech recognition task.\"\"\"\n\nimport copy\nimport json\nimport logging\nimport mat...
diff --git a/espnet/asr/pytorch_backend/asr.py b/espnet/asr/pytorch_backend/asr.py index 0fd5e8e5447..0cf4914f110 100644 --- a/espnet/asr/pytorch_backend/asr.py +++ b/espnet/asr/pytorch_backend/asr.py @@ -447,6 +447,11 @@ def train(args): else: model, optimizer = amp.initialize(model, optimizer, o...
deepset-ai__haystack-3960
bug: MarkdownConverter not removing code blocks The `MarkdownConverter` does not remove code blocks in the scenario I have at hand. The first thing that seems to happen is that the markdown gets converter to html and then the code looks for `<pre>` or `<code>` blocks. However, the html produced from our tutorials for e...
[ { "content": "import logging\nimport re\nfrom pathlib import Path\nfrom typing import Dict, List, Optional, Tuple, Any\n\ntry:\n import frontmatter\n from bs4 import BeautifulSoup, NavigableString\n from markdown import markdown\nexcept (ImportError, ModuleNotFoundError) as ie:\n from haystack.utils...
[ { "content": "import logging\nimport re\nfrom pathlib import Path\nfrom typing import Dict, List, Optional, Tuple, Any\n\ntry:\n import frontmatter\n from bs4 import BeautifulSoup, NavigableString\n from markdown import markdown\nexcept (ImportError, ModuleNotFoundError) as ie:\n from haystack.utils...
diff --git a/haystack/nodes/file_converter/markdown.py b/haystack/nodes/file_converter/markdown.py index 2483c25dff..ef04b9bbf4 100644 --- a/haystack/nodes/file_converter/markdown.py +++ b/haystack/nodes/file_converter/markdown.py @@ -93,7 +93,7 @@ def convert( metadata, markdown_text = frontmatter.parse(f...
conan-io__conan-3440
scm.subfolder support only one level of subfolders (not foo/baz/bar) conan v1.6.1, Windows 10, Python 3.6 I'm moving our codebase to conan packages and encountered following error. I have to specify not single directory in `scm.subfolder` attribute, but multiple ones: ```python scm = { "type": "git", ...
[ { "content": "import os\n\nimport re\nimport subprocess\nfrom six.moves.urllib.parse import urlparse, quote_plus\nfrom subprocess import CalledProcessError, PIPE, STDOUT\n\nfrom conans.client.tools.env import no_op, environment_append\nfrom conans.client.tools.files import chdir\nfrom conans.errors import Conan...
[ { "content": "import os\n\nimport re\nimport subprocess\nfrom six.moves.urllib.parse import urlparse, quote_plus\nfrom subprocess import CalledProcessError, PIPE, STDOUT\n\nfrom conans.client.tools.env import no_op, environment_append\nfrom conans.client.tools.files import chdir\nfrom conans.errors import Conan...
diff --git a/conans/client/tools/scm.py b/conans/client/tools/scm.py index 9ed03409110..0c1c84c2ddc 100644 --- a/conans/client/tools/scm.py +++ b/conans/client/tools/scm.py @@ -17,7 +17,7 @@ def __init__(self, folder=None, verify_ssl=True, username=None, password=None, f runner=None): self.fo...
Parsl__parsl-1156
Monitoring should be an optional extra We should push this out as 0.8.1. This is needed by the nersc DESC stack.
[ { "content": "from setuptools import setup, find_packages\n\nwith open('parsl/version.py') as f:\n exec(f.read())\n\nwith open('requirements.txt') as f:\n install_requires = f.readlines()\n\nextras_require = {\n 'aws' : ['boto3'],\n 'kubernetes' : ['kubernetes'],\n 'oauth_ssh' : ['oauth-ssh>=0.9'...
[ { "content": "from setuptools import setup, find_packages\n\nwith open('parsl/version.py') as f:\n exec(f.read())\n\nwith open('requirements.txt') as f:\n install_requires = f.readlines()\n\nextras_require = {\n 'monitoring' : [\n 'sqlalchemy>=1.3.0,!=1.3.4',\n 'sqlalchemy_utils',\n ...
diff --git a/.travis.yml b/.travis.yml index 1bb9cf370e..a9ead6714d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,7 @@ before_install: # command to install dependencies install: - pip install -r requirements.txt - - pip install .[extreme_scale] + - pip install .[extreme_scale,monitoring] # Os ...
saleor__saleor-11327
Bug: Lack of validation in cleaning manifest data ### What are you trying to achieve? The `KeyError` is raised when `manifest_data` doesn't have `tokenTargetUrl`. ### Steps to reproduce the problem 1. Run `AppFetchManifest` with URL that contains JSON data without `tokenTargetUrl`. 2. You will get the `KeyError`. ...
[ { "content": "import logging\nfrom collections import defaultdict\nfrom typing import Dict, Iterable, List\n\nfrom django.contrib.auth.models import Permission\nfrom django.core.exceptions import ValidationError\nfrom django.db.models import Value\nfrom django.db.models.functions import Concat\n\nfrom ..core.pe...
[ { "content": "import logging\nfrom collections import defaultdict\nfrom typing import Dict, Iterable, List\n\nfrom django.contrib.auth.models import Permission\nfrom django.core.exceptions import ValidationError\nfrom django.db.models import Value\nfrom django.db.models.functions import Concat\n\nfrom ..core.pe...
diff --git a/saleor/app/manifest_validations.py b/saleor/app/manifest_validations.py index 85c68775f9f..820869fc9f4 100644 --- a/saleor/app/manifest_validations.py +++ b/saleor/app/manifest_validations.py @@ -99,7 +99,8 @@ def clean_manifest_data(manifest_data): validate_required_fields(manifest_data, errors) ...
ipython__ipython-8587
Template path initialization doesn't handle unicode strings We package IPython as a .par file and for some reason this makes the `_template_path` a unicode string. Unfortunately, this breaks `template_path` initialization in 3.x since that only checks for ascii strings (https://github.com/ipython/ipython/blob/8b0eef4cb...
[ { "content": "# coding: utf-8\n\"\"\"A tornado based IPython notebook server.\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nfrom __future__ import print_function\n\nimport base64\nimport datetime\nimport errno\nimport importlib\nimport io\nimpo...
[ { "content": "# coding: utf-8\n\"\"\"A tornado based IPython notebook server.\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nfrom __future__ import print_function\n\nimport base64\nimport datetime\nimport errno\nimport importlib\nimport io\nimpo...
diff --git a/IPython/html/notebookapp.py b/IPython/html/notebookapp.py index a107527a8d3..0464144ff48 100644 --- a/IPython/html/notebookapp.py +++ b/IPython/html/notebookapp.py @@ -154,7 +154,7 @@ def init_settings(self, ipython_app, kernel_manager, contents_manager, "template_path", ipython_a...
open-mmlab__mmdetection-7157
FileNotFoundError: img file does not exist: tools/deployment/../demo/demo.jpg ``` Traceback (most recent call last): File "tools/deployment/onnx2tensorrt.py", line 255, in <module> verbose=args.verbose) File "tools/deployment/onnx2tensorrt.py", line 54, in onnx2tensorrt one_img, one_meta = preprocess_e...
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport argparse\nimport os\nimport os.path as osp\nimport warnings\n\nimport numpy as np\nimport onnx\nimport torch\nfrom mmcv import Config\nfrom mmcv.tensorrt import is_tensorrt_plugin_loaded, onnx2trt, save_trt_engine\n\nfrom mmdet.core.export im...
[ { "content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport argparse\nimport os\nimport os.path as osp\nimport warnings\n\nimport numpy as np\nimport onnx\nimport torch\nfrom mmcv import Config\nfrom mmcv.tensorrt import is_tensorrt_plugin_loaded, onnx2trt, save_trt_engine\n\nfrom mmdet.core.export im...
diff --git a/tools/deployment/onnx2tensorrt.py b/tools/deployment/onnx2tensorrt.py index 84a9afebda4..e3e9b57d2b4 100644 --- a/tools/deployment/onnx2tensorrt.py +++ b/tools/deployment/onnx2tensorrt.py @@ -201,7 +201,7 @@ def parse_args(): parsed directly from config file and are deprecated and will be \ ...
Pylons__pyramid-2187
AssetResolver.resolve() returns relative path Given an asset resolver `resolver = pyramid.path.AssetResolver(None)` and trying to resolve an asset path like `srv:path/to/resource` results in a relative path `./srv/path/to/resource`. I would have expected an absolute path like `/path/to/srv/path/to/resource`. The curre...
[ { "content": "import os\nimport pkg_resources\nimport sys\nimport imp\n\nfrom zope.interface import implementer\n\nfrom pyramid.interfaces import IAssetDescriptor\n\nfrom pyramid.compat import string_types\n\nignore_types = [ imp.C_EXTENSION, imp.C_BUILTIN ]\ninit_names = [ '__init__%s' % x[0] for x in imp.get_...
[ { "content": "import os\nimport pkg_resources\nimport sys\nimport imp\n\nfrom zope.interface import implementer\n\nfrom pyramid.interfaces import IAssetDescriptor\n\nfrom pyramid.compat import string_types\n\nignore_types = [ imp.C_EXTENSION, imp.C_BUILTIN ]\ninit_names = [ '__init__%s' % x[0] for x in imp.get_...
diff --git a/CHANGES.txt b/CHANGES.txt index 3c3dd6e797..0f88a95da3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -252,6 +252,11 @@ Bug Fixes process failed to fork because it could not find the pserve script to run. See https://github.com/Pylons/pyramid/pull/2137 +- Ensure that ``IAssetDescriptor.abspath`` alw...
conan-io__conan-5387
conan updates all my software installed with yum Hi, my system: CentOs7, conan 1.16.0, packet manager yum ```python installer = SystemPackageTool() installer.update() ``` The above code will instuct conan to update ALL installed packets in the system. It was introduced here: https://github.com/conan-io/conan...
[ { "content": "import os\nimport sys\n\nfrom conans.client.runner import ConanRunner\nfrom conans.client.tools.oss import OSInfo\nfrom conans.client.tools.files import which\nfrom conans.errors import ConanException\nfrom conans.util.env_reader import get_env\nfrom conans.util.fallbacks import default_output\n\n...
[ { "content": "import os\nimport sys\n\nfrom conans.client.runner import ConanRunner\nfrom conans.client.tools.oss import OSInfo\nfrom conans.client.tools.files import which\nfrom conans.errors import ConanException\nfrom conans.util.env_reader import get_env\nfrom conans.util.fallbacks import default_output\n\n...
diff --git a/conans/client/tools/system_pm.py b/conans/client/tools/system_pm.py index f4466566ce1..1c9aa1beb07 100644 --- a/conans/client/tools/system_pm.py +++ b/conans/client/tools/system_pm.py @@ -185,7 +185,7 @@ def add_repository(self, repository, repo_key=None): raise ConanException("YumTool::add_reposi...
Pylons__pyramid-2188
AssetResolver.resolve() returns relative path Given an asset resolver `resolver = pyramid.path.AssetResolver(None)` and trying to resolve an asset path like `srv:path/to/resource` results in a relative path `./srv/path/to/resource`. I would have expected an absolute path like `/path/to/srv/path/to/resource`. The curre...
[ { "content": "import os\nimport pkg_resources\nimport sys\nimport imp\n\nfrom zope.interface import implementer\n\nfrom pyramid.interfaces import IAssetDescriptor\n\nfrom pyramid.compat import string_types\n\nignore_types = [ imp.C_EXTENSION, imp.C_BUILTIN ]\ninit_names = [ '__init__%s' % x[0] for x in imp.get_...
[ { "content": "import os\nimport pkg_resources\nimport sys\nimport imp\n\nfrom zope.interface import implementer\n\nfrom pyramid.interfaces import IAssetDescriptor\n\nfrom pyramid.compat import string_types\n\nignore_types = [ imp.C_EXTENSION, imp.C_BUILTIN ]\ninit_names = [ '__init__%s' % x[0] for x in imp.get_...
diff --git a/CHANGES.txt b/CHANGES.txt index dcc45adf09..1ef875b866 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -24,6 +24,13 @@ Features - Add a new ``config.add_cache_buster`` API for attaching cache busters to static assets. See https://github.com/Pylons/pyramid/pull/2186 +Bug Fixes +--------- + +- Ensure tha...
ansible__ansible-11626
devel bug - profile_tasks.py requires CALLBACK_ constants or the display param is not passed relates to #11625 and commit a09f623 ``` $ ansible-playbook plays/test_to_json.yml -vvv Using /Users/glynch/vagrant/ansible_foo/ansible.cfg as config file 1 plays in plays/test_to_json.yml [ERROR]: Unexpected Exception: __ini...
[ { "content": "# (C) 2015, Tom Paine, <github@aioue.net>\n# (C) 2014, Jharrod LaFon, @JharrodLaFon\n# (C) 2012-2013, Michael DeHaan, <michael.dehaan@gmail.com>\n#\n# This file is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Fr...
[ { "content": "# (C) 2015, Tom Paine, <github@aioue.net>\n# (C) 2014, Jharrod LaFon, @JharrodLaFon\n# (C) 2012-2013, Michael DeHaan, <michael.dehaan@gmail.com>\n#\n# This file is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Fr...
diff --git a/lib/ansible/plugins/callback/profile_tasks.py b/lib/ansible/plugins/callback/profile_tasks.py index 90ee25d3a2982b..f873b75ead0cf3 100644 --- a/lib/ansible/plugins/callback/profile_tasks.py +++ b/lib/ansible/plugins/callback/profile_tasks.py @@ -58,7 +58,14 @@ def tasktime(): class CallbackModule(Call...
mathesar-foundation__mathesar-2654
If PK of table is a UUID, table wont render ## Description <!-- A clear and concise description of what the bug is. --> If PK of table is a UUID, table wont render ## Expected behavior <!-- A clear and concise description of what you expected to happen. --> Table should render ## To Reproduce <!-- How can we...
[ { "content": "from sqlalchemy import Column, ForeignKey, inspect\n\nfrom db.columns.defaults import TYPE, PRIMARY_KEY, NULLABLE, DEFAULT_COLUMNS\nfrom db.columns.operations.select import (\n get_column_attnum_from_name, get_column_default, get_column_default_dict,\n)\nfrom db.tables.operations.select import ...
[ { "content": "from sqlalchemy import Column, ForeignKey, inspect\n\nfrom db.columns.defaults import TYPE, PRIMARY_KEY, NULLABLE, DEFAULT_COLUMNS\nfrom db.columns.operations.select import (\n get_column_attnum_from_name, get_column_default, get_column_default_dict,\n)\nfrom db.tables.operations.select import ...
diff --git a/db/columns/base.py b/db/columns/base.py index d03b1eb0f3..4927ba0408 100644 --- a/db/columns/base.py +++ b/db/columns/base.py @@ -138,6 +138,10 @@ def table_oid(self): @property def is_default(self): default_def = DEFAULT_COLUMNS.get(self.name, False) + try: + self.type...
frappe__frappe-20414
Display the datetime in worker.log instead of just time **Is your feature request related to a problem? Please describe.** I was trying to understand why I have gotten a certain error and was looking into the logs. I found that the worker.log just displays the time without the date whereas the bench.log and frappe.log...
[ { "content": "import os\nimport socket\nimport time\nfrom collections import defaultdict\nfrom functools import lru_cache\nfrom typing import TYPE_CHECKING, Any, Literal, NoReturn, Union\nfrom uuid import uuid4\n\nimport redis\nfrom redis.exceptions import BusyLoadingError, ConnectionError\nfrom rq import Conne...
[ { "content": "import os\nimport socket\nimport time\nfrom collections import defaultdict\nfrom functools import lru_cache\nfrom typing import TYPE_CHECKING, Any, Literal, NoReturn, Union\nfrom uuid import uuid4\n\nimport redis\nfrom redis.exceptions import BusyLoadingError, ConnectionError\nfrom rq import Conne...
diff --git a/frappe/utils/background_jobs.py b/frappe/utils/background_jobs.py index 29098dce3b0a..47a821d8bb6c 100755 --- a/frappe/utils/background_jobs.py +++ b/frappe/utils/background_jobs.py @@ -243,7 +243,12 @@ def start_worker( if quiet: logging_level = "WARNING" worker = WorkerKlass(queues, name=get_wo...
mitmproxy__mitmproxy-4919
mitmproxy depends on `pkg_resources` at runtime but does not specify `install_requires=setuptools` #### Problem Description A clear and concise description of what the bug is. https://github.com/mitmproxy/mitmproxy/blob/0ca458fd6475ee48728147f3b529467a75e912a4/mitmproxy/contrib/kaitaistruct/exif.py#L7 the `pkg_r...
[ { "content": "import os\nimport re\nfrom codecs import open\n\nfrom setuptools import find_packages, setup\n\n# Based on https://github.com/pypa/sampleproject/blob/main/setup.py\n# and https://python-packaging-user-guide.readthedocs.org/\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith open(os.path....
[ { "content": "import os\nimport re\nfrom codecs import open\n\nfrom setuptools import find_packages, setup\n\n# Based on https://github.com/pypa/sampleproject/blob/main/setup.py\n# and https://python-packaging-user-guide.readthedocs.org/\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith open(os.path....
diff --git a/setup.py b/setup.py index 59ef56389b..2ab7a6fea5 100644 --- a/setup.py +++ b/setup.py @@ -86,6 +86,8 @@ "pyparsing>=2.4.2,<2.5", "pyperclip>=1.6.0,<1.9", "ruamel.yaml>=0.16,<0.17.17", + # Kaitai parsers depend on setuptools, remove once https://github.com/kaitai-io/kaitai_...
python-poetry__poetry-421
Can't use private repository in `poetry add` Poetry version: 0.10.3 Python Version: 3.6.5 (Note: I redacted URL of my private repository) pyproject.toml: ```toml [tool.poetry] name = "project" version = "0.1.0" description = "" authors = [] [[tool.poetry.source]] name = "private" url = "<url>" [t...
[ { "content": "import cgi\nimport re\n\ntry:\n import urllib.parse as urlparse\nexcept ImportError:\n import urlparse\n\ntry:\n from html import unescape\nexcept ImportError:\n try:\n from html.parser import HTMLParser\n except ImportError:\n from HTMLParser import HTMLParser\n\n ...
[ { "content": "import cgi\nimport re\n\ntry:\n import urllib.parse as urlparse\nexcept ImportError:\n import urlparse\n\ntry:\n from html import unescape\nexcept ImportError:\n try:\n from html.parser import HTMLParser\n except ImportError:\n from HTMLParser import HTMLParser\n\n ...
diff --git a/poetry/repositories/legacy_repository.py b/poetry/repositories/legacy_repository.py index d8c16242e3b..2b6154def2e 100644 --- a/poetry/repositories/legacy_repository.py +++ b/poetry/repositories/legacy_repository.py @@ -298,6 +298,12 @@ def _get_release_info(self, name, version): # type: (str, str) -> dic...
getnikola__nikola-2998
Theme meta file ignored_assets key should ignore whitespace ### Environment (if reporting a bug) **Python Version:** 3.5.4 **Nikola Version:** 8.0.0dev HEAD **Operating System:** gentoo GNU/Linux ### Description: Current behaviour: The ignored_assets key in theme meta files takes a comma-separated list of fil...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2018 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2018 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
diff --git a/nikola/plugins/task/copy_assets.py b/nikola/plugins/task/copy_assets.py index 5e31685ea1..f9c4f30377 100644 --- a/nikola/plugins/task/copy_assets.py +++ b/nikola/plugins/task/copy_assets.py @@ -67,6 +67,7 @@ def gen_tasks(self): theme_ini = utils.parse_theme_meta(main_theme) if theme_ini:...
facebookresearch__ParlAI-1869
Cannot have multi-turn conversation with agent via interactive_web.py script Cannot have multi-turn conversation with agent via interactive_web.py script **Reproduction steps** Run interacive_web.py with some model file ``` python3 ../ParlAI/parlai/scripts/interactive_web.py -mf ~/models/model_file ``` commun...
[ { "content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\"\"\" Talk with a model using a web UI. \"\"\"\n\n\nfrom http.server import BaseHTTPRequestHa...
[ { "content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\"\"\" Talk with a model using a web UI. \"\"\"\n\n\nfrom http.server import BaseHTTPRequestHa...
diff --git a/parlai/scripts/interactive_web.py b/parlai/scripts/interactive_web.py index c51199c3284..6782c08fc62 100644 --- a/parlai/scripts/interactive_web.py +++ b/parlai/scripts/interactive_web.py @@ -134,8 +134,7 @@ class MyHandler(BaseHTTPRequestHandler): def interactive_running(self, opt, reply_text): - ...
pulp__pulpcore-3557
Long-running space reclamation task **Version** ``` "versions": [ { "component": "core", "version": "3.21.0", "package": "pulpcore" }, { "component": "container", "version": "2.14.2", "package": "pulp-container" }, { "component": "rpm", ...
[ { "content": "from pulpcore.app.models import (\n Artifact,\n Content,\n ContentArtifact,\n ProgressReport,\n PublishedMetadata,\n Repository,\n RepositoryVersion,\n)\n\n\ndef reclaim_space(repo_pks, keeplist_rv_pks=None, force=False):\n \"\"\"\n This task frees-up disk space by remov...
[ { "content": "from pulpcore.app.models import (\n Artifact,\n Content,\n ContentArtifact,\n ProgressReport,\n PublishedMetadata,\n Repository,\n RepositoryVersion,\n)\n\n\ndef reclaim_space(repo_pks, keeplist_rv_pks=None, force=False):\n \"\"\"\n This task frees-up disk space by remov...
diff --git a/CHANGES/3404.bugfix b/CHANGES/3404.bugfix new file mode 100644 index 0000000000..70743ceead --- /dev/null +++ b/CHANGES/3404.bugfix @@ -0,0 +1 @@ +Addressed a possible N+1 query performance issue within reclaim_space task. diff --git a/pulpcore/app/tasks/reclaim_space.py b/pulpcore/app/tasks/reclaim_space....
lutris__lutris-4650
TypeError: can only concatenate str (not "float") to str (self.playtime) ### Bug description My distro supplies lutris 0.5.8.4. I noticed that sometime in the recent past that games no longer track playtime. I haven't really troubled with it until now. I found that by running lutris in a terminal, I can see an er...
[ { "content": "\"\"\"Module that actually runs the games.\"\"\"\n\n# pylint: disable=too-many-public-methods\nimport json\nimport os\nimport shlex\nimport shutil\nimport signal\nimport subprocess\nimport time\nfrom gettext import gettext as _\n\nfrom gi.repository import GLib, GObject, Gtk\n\nfrom lutris import ...
[ { "content": "\"\"\"Module that actually runs the games.\"\"\"\n\n# pylint: disable=too-many-public-methods\nimport json\nimport os\nimport shlex\nimport shutil\nimport signal\nimport subprocess\nimport time\nfrom gettext import gettext as _\n\nfrom gi.repository import GLib, GObject, Gtk\n\nfrom lutris import ...
diff --git a/lutris/game.py b/lutris/game.py index 01906c570e..458a1db311 100644 --- a/lutris/game.py +++ b/lutris/game.py @@ -93,7 +93,7 @@ def __init__(self, game_id=None): self.custom_images.add("coverart_big") self.service = game_data.get("service") self.appid = game_data.get("service...
DataDog__dd-agent-2381
5.7.1 consul check fails when /v1/status/peers returns null Testing datadog consul check on 1 node consul server, and it's crashing on the agent check: ``` 2016-03-10 09:16:21,708 | INFO | dd.collector | checks.collector(collector.py:533) | Running check consul 2016-03-10 09:16:21,859 | WARNING | dd.collector | checks...
[ { "content": "# stdlib\nfrom collections import defaultdict\nfrom datetime import datetime, timedelta\nfrom itertools import islice\nfrom urlparse import urljoin\n\n# project\nfrom checks import AgentCheck\n\n# 3p\nimport requests\n\n\nclass ConsulCheck(AgentCheck):\n CONSUL_CHECK = 'consul.up'\n HEALTH_C...
[ { "content": "# stdlib\nfrom collections import defaultdict\nfrom datetime import datetime, timedelta\nfrom itertools import islice\nfrom urlparse import urljoin\n\n# project\nfrom checks import AgentCheck\n\n# 3p\nimport requests\n\n\nclass ConsulCheck(AgentCheck):\n CONSUL_CHECK = 'consul.up'\n HEALTH_C...
diff --git a/checks.d/consul.py b/checks.d/consul.py index d35e6ae149..daee39ddbe 100644 --- a/checks.d/consul.py +++ b/checks.d/consul.py @@ -137,7 +137,7 @@ def _check_for_leader_change(self, instance): ### Consul Catalog Accessors def get_peers_in_cluster(self, instance): - return self.consul_requ...
pypa__pipenv-1128
Pipenv fails to install from github by ref and tag Trying to install from github using ref and tag fails, because pipenv "destroys" the format of the url removing `git:` from the reference. ##### Describe your environment 1. OS Type OSX 10.12.6 1. Python version: `$ python -V` 3.6.3 1. Pipenv version: `$ pipenv...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport hashlib\nimport tempfile\nimport sys\nimport shutil\nimport logging\n\nimport click\nimport crayons\nimport delegator\nimport pip\nimport parse\nimport requirements\nimport fuzzywuzzy.process\nimport requests\nimport six\nfrom time import time\n\nlogging....
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport hashlib\nimport tempfile\nimport sys\nimport shutil\nimport logging\n\nimport click\nimport crayons\nimport delegator\nimport pip\nimport parse\nimport requirements\nimport fuzzywuzzy.process\nimport requests\nimport six\nfrom time import time\n\nlogging....
diff --git a/pipenv/utils.py b/pipenv/utils.py index 6cfcdc1d5b..e357ca184d 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -661,7 +661,9 @@ def convert_deps_from_pip(dep): req.path = None # Crop off the git+, etc part. - dependency.setdefault(req.name, {}).update({req.vcs: req.uri[...
tinygrad__tinygrad-638
Windows Stack Overflow on EfficentNet Test `_deepwalk` I get a windows stack overflow with - `Python 3.9.0` - `python .\test\models\test_train.py TestTrain.test_efficientnet` With the following trace if I enable `faulthandler` (note the first error is just related to tqdm and can be ignored). ``` test\models\tes...
[ { "content": "# inspired by https://github.com/karpathy/micrograd/blob/master/micrograd/engine.py\nfrom __future__ import annotations\nimport math, functools, itertools\nimport numpy as np\nfrom typing import List, Tuple, Callable, Optional, ClassVar, Type, Union, Sequence\nfrom tinygrad.helpers import prod, ar...
[ { "content": "# inspired by https://github.com/karpathy/micrograd/blob/master/micrograd/engine.py\nfrom __future__ import annotations\nimport math, functools, itertools\nimport numpy as np\nfrom typing import List, Tuple, Callable, Optional, ClassVar, Type, Union, Sequence\nfrom tinygrad.helpers import prod, ar...
diff --git a/README.md b/README.md index e35c1b8e9bcbf..8360517ea7fc1 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,12 @@ GRAPH=1 python3 test/test_mnist.py TestMNIST.test_sgd_onestep ### Running tests +For more examples on how to run the full test suite please refer to the [CI workflow](.github/workflows/...
beetbox__beets-4801
[Spotify] Do not try to reimport album if it is permanently removed from Spotify ### Problem Spotify often removes content from its library. There are two types of content removal: In the first type, only the tracks are removed, but the data is still available. See [this](https://open.spotify.com/album/1t1AmX5Gwi...
[ { "content": "# This file is part of beets.\n# Copyright 2019, Rahul Ahuja.\n# Copyright 2022, Alok Saboo.\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,...
[ { "content": "# This file is part of beets.\n# Copyright 2019, Rahul Ahuja.\n# Copyright 2022, Alok Saboo.\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,...
diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index 026b9da1c8..0ada97e8b0 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -219,6 +219,9 @@ def album_for_id(self, album_id): album_data = self._handle_response( requests.get, self.album_url + spotify_id ) + ...
interlegis__sapl-1771
Muda Status de tramitação ao editar Matéria Ao editar uma matéria que tem o status "Tramitando - Não", o status é trazido como "Tramitando - Sim"
[ { "content": "\nimport reversion\nfrom django.contrib.auth.models import Group\nfrom django.contrib.contenttypes.fields import GenericRelation\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db import models\nfrom django.db.models.f...
[ { "content": "\nimport reversion\nfrom django.contrib.auth.models import Group\nfrom django.contrib.contenttypes.fields import GenericRelation\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db import models\nfrom django.db.models.f...
diff --git a/sapl/materia/models.py b/sapl/materia/models.py index 51fbcb855..14d39a355 100644 --- a/sapl/materia/models.py +++ b/sapl/materia/models.py @@ -187,7 +187,7 @@ class MateriaLegislativa(models.Model): em_tramitacao = models.BooleanField( verbose_name=_('Em Tramitação?'), default=False...