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
⌀
e-valuation__EvaP-394
Ampersand not correctly formatted in emails The ampersand character (&) is formatted as `&` in emails that are sent by the system. Ampersand not correctly formatted in emails The ampersand character (&) is formatted as `&` in emails that are sent by the system.
[ { "content": "from django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.core.mail import EmailMessage\nfrom django.db import models\nfrom django.db.models import Count\nfrom django.db.models.signals import post_save\nfrom django.dispatch import receiver\nfrom django.utils...
[ { "content": "from django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.core.mail import EmailMessage\nfrom django.db import models\nfrom django.db.models import Count\nfrom django.db.models.signals import post_save\nfrom django.dispatch import receiver\nfrom django.utils...
diff --git a/evap/evaluation/models.py b/evap/evaluation/models.py index 0e88cd6e6f..04a36f9fed 100644 --- a/evap/evaluation/models.py +++ b/evap/evaluation/models.py @@ -641,7 +641,7 @@ def recipient_list_for_course(cls, course, send_to_editors, send_to_contributors @classmethod def render_string(cls, text...
mitmproxy__mitmproxy-2888
Verbose mode not working in v3.0.0 RC2 ##### Steps to reproduce the problem: 1. Start mitmdump with -v or --verbose flag 2. No DEBUG level logs prints on standard output ##### Any other comments? What have you tried so far? In old stable version (2.0.2) the same steps produce desired output. ##### System i...
[ { "content": "from __future__ import print_function # this is here for the version check to work on Python 2.\n\nimport sys\n\nif sys.version_info < (3, 5):\n # This must be before any mitmproxy imports, as they already break!\n # Keep all other imports below with the 'noqa' magic comment.\n print(\"#...
[ { "content": "from __future__ import print_function # this is here for the version check to work on Python 2.\n\nimport sys\n\nif sys.version_info < (3, 5):\n # This must be before any mitmproxy imports, as they already break!\n # Keep all other imports below with the 'noqa' magic comment.\n print(\"#...
diff --git a/mitmproxy/tools/main.py b/mitmproxy/tools/main.py index 3735cbf445..5c2d9f2f79 100644 --- a/mitmproxy/tools/main.py +++ b/mitmproxy/tools/main.py @@ -44,8 +44,13 @@ def process_options(parser, opts, args): print(debug.dump_system_info()) sys.exit(0) if args.quiet or args.options or a...
OpenMined__PySyft-5330
Check and Fix notebook / jupyter client warning on Colab ## Description This needs to be checked on Colab, since it seems colab has its own outdated versions of notebook and jupyter-client as well. https://github.com/OpenMined/PySyft/issues/4915 ## Definition of Done Fix for Colab if possible.
[ { "content": "# stdlib\nimport sys\n\n# checks if we are in a python repl or python -i script.py\nis_interactive = bool(getattr(sys, \"ps1\", sys.flags.interactive))\n\n# checks if we are in jupyter\nis_jupyter = True\n\ntry:\n get_ipython() # type: ignore\n # third party\n import notebook\n from p...
[ { "content": "# stdlib\nimport sys\n\n# checks if we are in a python repl or python -i script.py\nis_interactive = bool(getattr(sys, \"ps1\", sys.flags.interactive))\n\n# checks if we are in jupyter\nis_jupyter = True\n\ntry:\n get_ipython() # type: ignore\n # third party\n import notebook\n from p...
diff --git a/src/syft/core/common/environment.py b/src/syft/core/common/environment.py index 81340b83877..105c310d594 100644 --- a/src/syft/core/common/environment.py +++ b/src/syft/core/common/environment.py @@ -14,7 +14,8 @@ from packaging import version NOTEBOOK_VERSION = version.parse(notebook.__version...
frappe__frappe-20528
Virtual fields display broken in child tables ## Description of the issue Virtual fields content is not displayed anymore in child grids. The cell remains blank instead of showing the virtual field result. ## Context information (for bug reports) **Output of `bench version`** ``` frappe 14.30.0 ``` (custo...
[ { "content": "# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\nimport datetime\nimport json\n\nimport frappe\nfrom frappe import _, _dict\nfrom frappe.model import (\n\tchild_table_fields,\n\tdatetime_fields,\n\tdefault_fields,\n\tdisplay_fieldtypes,\n\tfloat_li...
[ { "content": "# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\nimport datetime\nimport json\n\nimport frappe\nfrom frappe import _, _dict\nfrom frappe.model import (\n\tchild_table_fields,\n\tdatetime_fields,\n\tdefault_fields,\n\tdisplay_fieldtypes,\n\tfloat_li...
diff --git a/frappe/model/base_document.py b/frappe/model/base_document.py index 93fddcf68639..811ba5894ca3 100644 --- a/frappe/model/base_document.py +++ b/frappe/model/base_document.py @@ -304,7 +304,9 @@ def get_valid_dict( self, sanitize=True, convert_dates_to_str=False, ignore_nulls=False, ignore_virtual=False ...
plotly__dash-2734
[Feature Request] Python 3.10 support **Is your feature request related to a problem? Please describe.** Hi, I'm wondering if Dash supports Python 3.10 or if this is on the roadmap. Thanks for all your great work! **Describe the solution you'd like** As a user of Dash, I would like to be able to install Dash and/o...
[ { "content": "import io\nfrom setuptools import setup, find_packages\n\nmain_ns = {}\nexec(open(\"dash/version.py\", encoding=\"utf-8\").read(), main_ns) # pylint: disable=exec-used, consider-using-with\n\n\ndef read_req_file(req_type):\n with open(f\"requires-{req_type}.txt\", encoding=\"utf-8\") as fp:\n ...
[ { "content": "import io\nfrom setuptools import setup, find_packages\n\nmain_ns = {}\nexec(open(\"dash/version.py\", encoding=\"utf-8\").read(), main_ns) # pylint: disable=exec-used, consider-using-with\n\n\ndef read_req_file(req_type):\n with open(f\"requires-{req_type}.txt\", encoding=\"utf-8\") as fp:\n ...
diff --git a/.circleci/config.yml b/.circleci/config.yml index c8b784ca46..09ffc838de 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,12 +8,12 @@ orbs: jobs: artifacts: docker: - - image: cimg/python:3.9.9 + - image: cimg/python:3.10.13 auth: username: dashautom...
getsentry__sentry-python-656
There is error when connection is lost between client and server I have the same problem. If set invalid DSN, sentry client tries to send one event while shutdown timeout does not end. ```python import logging import sentry_sdk from sentry_sdk.integrations.logging import LoggingIntegration DSN = 'https://xxx@...
[ { "content": "from __future__ import absolute_import\n\nimport logging\nimport datetime\n\nfrom sentry_sdk.hub import Hub\nfrom sentry_sdk.utils import (\n to_string,\n event_from_exception,\n current_stacktrace,\n capture_internal_exceptions,\n)\nfrom sentry_sdk.integrations import Integration\nfro...
[ { "content": "from __future__ import absolute_import\n\nimport logging\nimport datetime\n\nfrom sentry_sdk.hub import Hub\nfrom sentry_sdk.utils import (\n to_string,\n event_from_exception,\n current_stacktrace,\n capture_internal_exceptions,\n)\nfrom sentry_sdk.integrations import Integration\nfro...
diff --git a/sentry_sdk/integrations/logging.py b/sentry_sdk/integrations/logging.py index 6edd785e91..c25aef4c09 100644 --- a/sentry_sdk/integrations/logging.py +++ b/sentry_sdk/integrations/logging.py @@ -24,7 +24,13 @@ DEFAULT_LEVEL = logging.INFO DEFAULT_EVENT_LEVEL = logging.ERROR -_IGNORED_LOGGERS = set(["sen...
lra__mackup-1718
usability / doc issues (minor / feature request) On ignoring Mackup since I installed it for multiple accounts, I'm now returning to working with it to bring some more machines into the group and reorganise. Here are some minor issues I ran into getting back up to speed: * `mackup uninstall` says: Every conf...
[ { "content": "\"\"\"Mackup.\n\nKeep your application settings in sync.\nCopyright (C) 2013-2021 Laurent Raufaste <http://glop.org/>\n\nUsage:\n mackup list\n mackup [options] backup\n mackup [options] restore\n mackup show <application>\n mackup [options] uninstall\n mackup (-h | --help)\n mackup --versi...
[ { "content": "\"\"\"Mackup.\n\nKeep your application settings in sync.\nCopyright (C) 2013-2021 Laurent Raufaste <http://glop.org/>\n\nUsage:\n mackup list\n mackup [options] backup\n mackup [options] restore\n mackup show <application>\n mackup [options] uninstall\n mackup (-h | --help)\n mackup --versi...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a16011462..341f12eff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Added support for Qv2ray (via @kidonng) - Added support for Neofetch (via @kidonng) - Added support for PsySH (via @nesk) +- Update uninstall prompt for accuracy (via @soneji) - Added...
python-gitlab__python-gitlab-1776
Support rebase_in_progress ## Description of the problem, including code/CLI snippet Rebase operation (via gitlab) is asynchronous so if for example you want to do merge afterwards there is no way if rebase is finished or not. ``` mr.rebase () # somehow wait for rebase🤔 mr.merge () ``` ## Expected Behavio...
[ { "content": "\"\"\"\nGitLab API:\nhttps://docs.gitlab.com/ee/api/merge_requests.html\nhttps://docs.gitlab.com/ee/api/merge_request_approvals.html\n\"\"\"\nfrom typing import Any, cast, Dict, Optional, TYPE_CHECKING, Union\n\nimport requests\n\nimport gitlab\nfrom gitlab import cli\nfrom gitlab import exception...
[ { "content": "\"\"\"\nGitLab API:\nhttps://docs.gitlab.com/ee/api/merge_requests.html\nhttps://docs.gitlab.com/ee/api/merge_request_approvals.html\n\"\"\"\nfrom typing import Any, cast, Dict, Optional, TYPE_CHECKING, Union\n\nimport requests\n\nimport gitlab\nfrom gitlab import cli\nfrom gitlab import exception...
diff --git a/docs/api-objects.rst b/docs/api-objects.rst index 984fd4f06..a36c1c342 100644 --- a/docs/api-objects.rst +++ b/docs/api-objects.rst @@ -30,8 +30,8 @@ API examples gl_objects/labels gl_objects/notifications gl_objects/merge_trains - gl_objects/mrs - gl_objects/mr_approvals + gl_objects/mer...
huggingface__transformers-4747
Loading config file bug Hi guys. I have released a new (XLNet based) transformer model for low-resource language Tigrinya [(TigXLNet)](https://github.com/abryeemessi/Transferring-Monolingual-Model-to-Low-Resource-Language) and found a bug when loading a pre-trained config file: My config file looks like: ht...
[ { "content": "# coding=utf-8\n# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.\n# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file excep...
[ { "content": "# coding=utf-8\n# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.\n# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file excep...
diff --git a/src/transformers/configuration_xlnet.py b/src/transformers/configuration_xlnet.py index cfd09bdd84ec..3f04b16a98d6 100644 --- a/src/transformers/configuration_xlnet.py +++ b/src/transformers/configuration_xlnet.py @@ -163,6 +163,10 @@ def __init__( self.n_layer = n_layer self.n_head = n_h...
hedyorg__hedy-1650
[BUG] Program doesn't correctly change visually when submitted **Describe the bug** Currently when we submit a program the user receives no feedback if their submission was successful. This issue might occur due to #1628 where we re-write the programs page structure to prevent re-loading to update user information. Th...
[ { "content": "from website import database\nfrom hedyweb import AchievementTranslations\nfrom website.auth import requires_login\nfrom flask import request, jsonify, session\nimport hedy\n\n\nclass Achievements:\n\n def __init__(self):\n self.DATABASE = database.Database()\n self.TRANSLATIONS =...
[ { "content": "from website import database\nfrom hedyweb import AchievementTranslations\nfrom website.auth import requires_login\nfrom flask import request, jsonify, session\nimport hedy\n\n\nclass Achievements:\n\n def __init__(self):\n self.DATABASE = database.Database()\n self.TRANSLATIONS =...
diff --git a/website/achievements.py b/website/achievements.py index 5cb72d7a4c9..1de3313fe0b 100644 --- a/website/achievements.py +++ b/website/achievements.py @@ -109,7 +109,7 @@ def verify_save_achievements(self, username, adventure=None): def verify_submit_achievements(self, username): if not session[...
ivy-llc__ivy-27992
Fix Frontend Failing Test: paddle - tensor.paddle.Tensor.any To-do List: https://github.com/unifyai/ivy/issues/27500
[ { "content": "# local\nimport ivy\nimport ivy.functional.frontends.paddle as paddle_frontend\nfrom ivy.func_wrapper import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n with_supported_device_and_dtypes,\n)\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\n\n\nclass Tens...
[ { "content": "# local\nimport ivy\nimport ivy.functional.frontends.paddle as paddle_frontend\nfrom ivy.func_wrapper import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n with_supported_device_and_dtypes,\n)\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\n\n\nclass Tens...
diff --git a/ivy/functional/frontends/paddle/tensor/tensor.py b/ivy/functional/frontends/paddle/tensor/tensor.py index 059b777c6c4b7..f3fe3500552a7 100644 --- a/ivy/functional/frontends/paddle/tensor/tensor.py +++ b/ivy/functional/frontends/paddle/tensor/tensor.py @@ -619,7 +619,7 @@ def logical_or(self, y, out=None, n...
wagtail__wagtail-11396
Add ability for slugs to be auto incremented on a per model basis ### Is your proposal related to a problem? I would like to be able to use auto incrementing page slugs in the case of a duplicate slug within the current parent page's URL path. Example use case: An event calendar where I don't really care so much ...
[ { "content": "from django.shortcuts import redirect\nfrom django.template.response import TemplateResponse\nfrom django.utils.translation import gettext as _\n\nfrom wagtail import hooks\nfrom wagtail.actions.copy_page import CopyPageAction\nfrom wagtail.actions.create_alias import CreatePageAliasAction\nfrom w...
[ { "content": "from django.shortcuts import redirect\nfrom django.template.response import TemplateResponse\nfrom django.utils.translation import gettext as _\n\nfrom wagtail import hooks\nfrom wagtail.actions.copy_page import CopyPageAction\nfrom wagtail.actions.create_alias import CreatePageAliasAction\nfrom w...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 903e091a591a..a31cf7137090 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -36,6 +36,7 @@ Changelog * Use SlugInput on all SlugFields by default (LB (Ben) Johnston) * Show character counts on RichTextBlock with `max_length` (Elhussein Almasri) * Move locale selec...
conan-io__conan-center-index-14099
[service] msbuild package template has import incompatible with Conan 2.0 At https://github.com/conan-io/conan-center-index/blob/53ef0688c436c6697d8312d47fcdef68fe7e6955/docs/package_templates/msbuild_package/all/conanfile.py#L4, `vs_layout` is imported from `conan.tools.layout`. However, when using this import in [my ...
[ { "content": "from conan import ConanFile\nfrom conan.errors import ConanInvalidConfiguration\nfrom conan.tools.microsoft import is_msvc, MSBuildDeps, MSBuildToolchain, MSBuild, VCVars\nfrom conan.tools.layout import vs_layout\nfrom conan.tools.files import apply_conandata_patches, export_conandata_patches, get...
[ { "content": "from conan import ConanFile\nfrom conan.errors import ConanInvalidConfiguration\nfrom conan.tools.microsoft import is_msvc, vs_layout, MSBuildDeps, MSBuildToolchain, MSBuild, VCVars\nfrom conan.tools.files import apply_conandata_patches, export_conandata_patches, get, copy, rm, replace_in_file\nim...
diff --git a/docs/package_templates/msbuild_package/all/conanfile.py b/docs/package_templates/msbuild_package/all/conanfile.py index d1bf82b2aaaa3..b0786d49f0e19 100644 --- a/docs/package_templates/msbuild_package/all/conanfile.py +++ b/docs/package_templates/msbuild_package/all/conanfile.py @@ -1,7 +1,6 @@ from conan...
chainer__chainer-240
Add type check to Parameter function Related to #123
[ { "content": "import numpy\n\nfrom chainer import function\n\n\nclass Parameter(function.Function):\n\n \"\"\"Function that outputs its weight array.\n\n This is a parameterized function that takes no input and returns a variable\n holding a shallow copy of the parameter array.\n\n Args:\n ar...
[ { "content": "import numpy\n\nfrom chainer import function\nfrom chainer.utils import type_check\n\n\nclass Parameter(function.Function):\n\n \"\"\"Function that outputs its weight array.\n\n This is a parameterized function that takes no input and returns a variable\n holding a shallow copy of the par...
diff --git a/chainer/functions/parameter.py b/chainer/functions/parameter.py index 1fe63390fa8c..be40a2002ff6 100644 --- a/chainer/functions/parameter.py +++ b/chainer/functions/parameter.py @@ -1,6 +1,7 @@ import numpy from chainer import function +from chainer.utils import type_check class Parameter(function...
imAsparky__django-cookiecutter-753
[BUG]: Core base view has logic error. **Describe the bug** A clear and concise description of what the bug is. ![image](https://github.com/imAsparky/django-cookiecutter/assets/31756570/ecb08709-2f33-4523-864c-e786d71f6a56) **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '.......
[ { "content": "\"\"\"{{cookiecutter.git_project_name}} Core App Generic Views Base.\"\"\"\n\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.shortcuts import redirect\nfrom django.views.generic.base import TemplateResponseMixin, TemplateView\n\n\nclass HtmxTemplateResponseMixin(TemplateRespo...
[ { "content": "\"\"\"{{cookiecutter.git_project_name}} Core App Generic Views Base.\"\"\"\n\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.shortcuts import redirect\nfrom django.views.generic.base import TemplateResponseMixin, TemplateView\n\n\nclass HtmxTemplateResponseMixin(TemplateRespo...
diff --git a/{{cookiecutter.git_project_name}}/core/views/generic/base.py b/{{cookiecutter.git_project_name}}/core/views/generic/base.py index 1d21f02..6905c4a 100644 --- a/{{cookiecutter.git_project_name}}/core/views/generic/base.py +++ b/{{cookiecutter.git_project_name}}/core/views/generic/base.py @@ -42,7 +42,7 @@ d...
liberapay__liberapay.com-1387
The "Stats" page needs to be adapted On [the stats page](https://en.liberapay.com/about/stats), it's written "_€23,253.40 and $2,630.25 is escrowed within Liberapay._" which can give the impression that those >23k€ and >2k$ are stocked/blocked **in** liberapay. I'm not too sure about the reality of this. It can well...
[ { "content": "# coding: utf8\n\nfrom __future__ import division, print_function, unicode_literals\n\nfrom collections import namedtuple\nfrom datetime import date\nfrom decimal import Decimal, ROUND_UP\nfrom itertools import chain\nimport os\nimport os.path\nfrom subprocess import Popen\nimport sys\nfrom time i...
[ { "content": "# coding: utf8\n\nfrom __future__ import division, print_function, unicode_literals\n\nfrom collections import namedtuple\nfrom datetime import date\nfrom decimal import Decimal, ROUND_UP\nfrom itertools import chain\nimport os\nimport os.path\nfrom subprocess import Popen\nimport sys\nfrom time i...
diff --git a/liberapay/billing/payday.py b/liberapay/billing/payday.py index 36a6675efb..64da46f692 100644 --- a/liberapay/billing/payday.py +++ b/liberapay/billing/payday.py @@ -813,6 +813,13 @@ def update_stats(cls, payday_id): WHERE amount < 0 AND refunded ...
MongoEngine__mongoengine-584
Inconsistent Document.__init__ call signatures It appears that the Document subclassing system leads to some unfortunate inconsistencies. E.g.: ``` class MyBase(mongoengine.Document): name = mongoengine.StringField() meta = {'allow_inheritance': True} class MySub(MyBase): pass ``` Given the above, a cal...
[ { "content": "import warnings\n\nimport pymongo\n\nfrom mongoengine.common import _import_class\nfrom mongoengine.errors import InvalidDocumentError\nfrom mongoengine.python_support import PY3\nfrom mongoengine.queryset import (DO_NOTHING, DoesNotExist,\n MultipleObjectsReturned...
[ { "content": "import warnings\n\nimport pymongo\n\nfrom mongoengine.common import _import_class\nfrom mongoengine.errors import InvalidDocumentError\nfrom mongoengine.python_support import PY3\nfrom mongoengine.queryset import (DO_NOTHING, DoesNotExist,\n MultipleObjectsReturned...
diff --git a/mongoengine/base/metaclasses.py b/mongoengine/base/metaclasses.py index ff5afddfd..4b2e8b9bd 100644 --- a/mongoengine/base/metaclasses.py +++ b/mongoengine/base/metaclasses.py @@ -359,7 +359,8 @@ def __new__(cls, name, bases, attrs): new_class.id = field # Set primary key if...
Textualize__textual-4464
SelectionList weird behavior when removing options in its own event handler until freeze When you interact with a SelectionList and remove the option in one of the event handlers one of the following happens: - Wrong options is removed - Option just deselects - Entire component just freezes (not the entire app; ...
[ { "content": "\"\"\"Provides a selection list widget, allowing one or more items to be selected.\"\"\"\n\nfrom __future__ import annotations\n\nfrom dataclasses import dataclass\nfrom typing import Callable, ClassVar, Generic, Iterable, TypeVar, cast\n\nfrom rich.repr import Result\nfrom rich.segment import Seg...
[ { "content": "\"\"\"Provides a selection list widget, allowing one or more items to be selected.\"\"\"\n\nfrom __future__ import annotations\n\nfrom dataclasses import dataclass\nfrom typing import Callable, ClassVar, Generic, Iterable, TypeVar, cast\n\nfrom rich.repr import Result\nfrom rich.segment import Seg...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 88847d849e..575e3ee22e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,15 +9,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +- Fixed `SelectionList` issues after removing an option https://github.com/Textualize/textual/pull/4...
pallets__werkzeug-1182
Confusing exception when creating RedisCache with null params ``` #!/usr/bin/env python from werkzeug.contrib.cache import RedisCache cache = RedisCache(host=None, password=None) ...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.contrib.cache\n ~~~~~~~~~~~~~~~~~~~~~~\n\n The main problem with dynamic Web sites is, well, they're dynamic. Each\n time a user requests a page, the webserver executes a lot of code, queries\n the database, renders templates until the vis...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.contrib.cache\n ~~~~~~~~~~~~~~~~~~~~~~\n\n The main problem with dynamic Web sites is, well, they're dynamic. Each\n time a user requests a page, the webserver executes a lot of code, queries\n the database, renders templates until the vis...
diff --git a/tests/contrib/cache/test_cache.py b/tests/contrib/cache/test_cache.py index b001a625c..fff2f711f 100644 --- a/tests/contrib/cache/test_cache.py +++ b/tests/contrib/cache/test_cache.py @@ -12,6 +12,7 @@ import pytest +from werkzeug._compat import text_type from werkzeug.contrib import cache try: @@...
encode__django-rest-framework-3560
Viewsets without a filter_class break Browser Viewer The `to_html` function doesn't check if the `cls` exists in this line: https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/filters.py#L121 It should have logic checking for a `None`, similar to the above bit: https://github.com/tomchris...
[ { "content": "\"\"\"\nProvides generic filtering backends that can be used to filter the results\nreturned by list views.\n\"\"\"\nfrom __future__ import unicode_literals\n\nimport operator\nfrom functools import reduce\n\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured...
[ { "content": "\"\"\"\nProvides generic filtering backends that can be used to filter the results\nreturned by list views.\n\"\"\"\nfrom __future__ import unicode_literals\n\nimport operator\nfrom functools import reduce\n\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured...
diff --git a/rest_framework/filters.py b/rest_framework/filters.py index 9105ab91d9..a621394058 100644 --- a/rest_framework/filters.py +++ b/rest_framework/filters.py @@ -117,8 +117,11 @@ def filter_queryset(self, request, queryset, view): return queryset def to_html(self, request, queryset, view): - ...
Cog-Creators__Red-DiscordBot-3855
Warning bot's user causes AttributeError when attempting to send DM #### Command name `[p]warn` #### What cog is this command from? Warnings #### What were you expecting to happen? A graceful error when trying to warn the bot invoking the warn command. > This does not throw an Exception when warning a...
[ { "content": "import contextlib\nfrom collections import namedtuple\nfrom typing import Union, Optional\n\nimport discord\n\nfrom redbot.cogs.warnings.helpers import (\n warning_points_add_check,\n get_command_for_exceeded_points,\n get_command_for_dropping_points,\n warning_points_remove_check,\n)\...
[ { "content": "import contextlib\nfrom collections import namedtuple\nfrom typing import Union, Optional\n\nimport discord\n\nfrom redbot.cogs.warnings.helpers import (\n warning_points_add_check,\n get_command_for_exceeded_points,\n get_command_for_dropping_points,\n warning_points_remove_check,\n)\...
diff --git a/redbot/cogs/warnings/warnings.py b/redbot/cogs/warnings/warnings.py index ceb31c956ea..a7161577970 100644 --- a/redbot/cogs/warnings/warnings.py +++ b/redbot/cogs/warnings/warnings.py @@ -323,6 +323,9 @@ async def warn( if user == ctx.author: await ctx.send(_("You cannot warn yourself...
pex-tool__pex-338
virtualenvwrapper breaks Pex (Python 3.5.2 on Ubuntu 16.04) ```console $ virtualenv env Running virtualenv with interpreter /usr/bin/python2 New python executable in /tmp/env/bin/python2 Also creating executable in /tmp/env/bin/python Installing setuptools, pkg_resources, pip, wheel...done. $ . env/bin/activate ...
[ { "content": "# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import absolute_import, print_function\n\nimport os\nimport sys\nfrom contextlib import contextmanager\nfrom distutils import sysconfig\nfrom site ...
[ { "content": "# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import absolute_import, print_function\n\nimport os\nimport sys\nfrom contextlib import contextmanager\nfrom distutils import sysconfig\nfrom site ...
diff --git a/pex/pex.py b/pex/pex.py index 5b322ff3d..248d78fa7 100644 --- a/pex/pex.py +++ b/pex/pex.py @@ -141,6 +141,11 @@ def minimum_sys_modules(cls, site_libs, modules=None): new_modules[module_name] = module continue + # Unexpected objects, e.g. namespace packages, should just be dropped...
mozilla__bugbug-3401
Refactor logging statements to use lazy % formatting Example of logging statements that we want to refactor: https://github.com/mozilla/bugbug/blob/d53595391dbd75379bb49bff12dee4821e4b956c/bugbug/github.py#L61 https://github.com/mozilla/bugbug/blob/69972a1684f788319bf5c2944bbe8eeb79428c7d/scripts/regressor_finder...
[ { "content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport argparse\nimport logging\nimport os\nimport sys\nfrom os.path ...
[ { "content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport argparse\nimport logging\nimport os\nimport sys\nfrom os.path ...
diff --git a/scripts/retrieve_training_metrics.py b/scripts/retrieve_training_metrics.py index 857cc11659..ef38a95910 100644 --- a/scripts/retrieve_training_metrics.py +++ b/scripts/retrieve_training_metrics.py @@ -95,7 +95,7 @@ def get_task_metrics_from_date(model, date, output_directory): file_path = abs...
conda__conda-7515
conda update --all: failed to solve environment <!-- Hi! Read this; it's important. This is an issue tracker for conda -- the package manager. File feature requests for conda here, as well as bug reports about something conda has messed up. If your issue is a bug report or feature request for: * a specific...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (C) 2012 Anaconda, Inc\n# SPDX-License-Identifier: BSD-3-Clause\nfrom __future__ import absolute_import, division, print_function, unicode_literals\nfrom functools import partial\n\ndef should_bypass_proxies_patched(should_bypass_proxies_func, url, no_proxy):\n...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\nfrom functools import partial\n\ndef should_bypass_proxies_patched(should_bypass_proxies_func, url, no_proxy):\n # Monkey patch requests, per https://github.com/requests/requests/pull/47...
diff --git a/conda/gateways/connection/__init__.py b/conda/gateways/connection/__init__.py index e45ac5c3fa4..986e70625b2 100644 --- a/conda/gateways/connection/__init__.py +++ b/conda/gateways/connection/__init__.py @@ -6,7 +6,13 @@ def should_bypass_proxies_patched(should_bypass_proxies_func, url, no_proxy): # M...
pytorch__vision-6551
Swapped width and height in DefaultBoxGenerator In the DefaultBoxGenerator module, the image sizes in the image_size argument are given as (height, width) by SSD model but the code assumes (width, height). https://github.com/pytorch/vision/blob/15a9a93b9e0e6173b936691a2cddced0ecfd271f/torchvision/models/detection/an...
[ { "content": "import math\nfrom typing import List, Optional\n\nimport torch\nfrom torch import nn, Tensor\n\nfrom .image_list import ImageList\n\n\nclass AnchorGenerator(nn.Module):\n \"\"\"\n Module that generates anchors for a set of feature maps and\n image sizes.\n\n The module support computin...
[ { "content": "import math\nfrom typing import List, Optional\n\nimport torch\nfrom torch import nn, Tensor\n\nfrom .image_list import ImageList\n\n\nclass AnchorGenerator(nn.Module):\n \"\"\"\n Module that generates anchors for a set of feature maps and\n image sizes.\n\n The module support computin...
diff --git a/torchvision/models/detection/anchor_utils.py b/torchvision/models/detection/anchor_utils.py index 34fb8d23069..f42c10d8208 100644 --- a/torchvision/models/detection/anchor_utils.py +++ b/torchvision/models/detection/anchor_utils.py @@ -213,8 +213,8 @@ def _grid_default_boxes( for k, f_k in enumera...
adamchainz__django-mysql-51
Singleton global/session status objects It's a bit undjango to have to instantiate a class to do a simple lookup of status. It would be more natural to have a dict like the connection wrapper for getting the status, with singleton lazy wrapper for each type for your main DB connection. ``` from django_mysql.status imp...
[ { "content": "# -*- coding:utf-8 -*-\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\n\nimport time\n\nfrom django.db import connections\nfrom django.db.utils import DEFAULT_DB_ALIAS\n\nfrom django_mysql.exceptions import TimeoutError\n\n\nclass Bas...
[ { "content": "# -*- coding:utf-8 -*-\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\n\nimport time\n\nfrom django.db import connections\nfrom django.db.utils import DEFAULT_DB_ALIAS\nfrom django.utils.functional import SimpleLazyObject\n\nfrom djan...
diff --git a/django_mysql/status.py b/django_mysql/status.py index 483a029b..d6fbcf52 100644 --- a/django_mysql/status.py +++ b/django_mysql/status.py @@ -6,6 +6,7 @@ from django.db import connections from django.db.utils import DEFAULT_DB_ALIAS +from django.utils.functional import SimpleLazyObject from django_m...
borgbackup__borg-3134
1.1.0: using a logging config causes exception I've been using Borg 1.0.x with a [simple logging config](https://github.com/borgbackup/borg/files/1369192/logging.conf.txt) to get a logging behaviour suitable for cronjobs, that is: everything goes to the logfile, errors and warnings also go to stderr (and are sent via m...
[ { "content": "\"\"\"logging facilities\n\nThe way to use this is as follows:\n\n* each module declares its own logger, using:\n\n from .logger import create_logger\n logger = create_logger()\n\n* then each module uses logger.info/warning/debug/etc according to the\n level it believes is appropriate:\n\n ...
[ { "content": "\"\"\"logging facilities\n\nThe way to use this is as follows:\n\n* each module declares its own logger, using:\n\n from .logger import create_logger\n logger = create_logger()\n\n* then each module uses logger.info/warning/debug/etc according to the\n level it believes is appropriate:\n\n ...
diff --git a/src/borg/logger.py b/src/borg/logger.py index 69cb86f18c..7edec891b8 100644 --- a/src/borg/logger.py +++ b/src/borg/logger.py @@ -80,6 +80,8 @@ def setup_logging(stream=None, conf_fname=None, env_var='BORG_LOGGING_CONF', lev logging.config.fileConfig(f) configured = True ...
piskvorky__gensim-2672
Python 3.7.3, gensim 3.8.1: UnboundLocalError: local variable 'doc_no2' referenced before assignment Client code: ` model = LogEntropyModel(corpus=data_corpus, normalize=True) ` Referenced code: https://github.com/RaRe-Technologies/gensim/blob/44ea7931c916349821aa1c717fbf7e90fb138297/gensim/models/logentropy_mod...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"This module allows simple Bag of Words (BoW) represented corpus to be transformed into log entropy space.\nIt implements Log Entropy Model that produces entropy-we...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"This module allows simple Bag of Words (BoW) represented corpus to be transformed into log entropy space.\nIt implements Log Entropy Model that produces entropy-we...
diff --git a/gensim/models/logentropy_model.py b/gensim/models/logentropy_model.py index bdc726d5fd..a79c685660 100644 --- a/gensim/models/logentropy_model.py +++ b/gensim/models/logentropy_model.py @@ -108,6 +108,9 @@ def initialize(self, corpus): self.n_docs, len(glob_freq), self.n_words ) ...
hylang__hy-1710
"\n" isn't mangled appropriately => (mangle "\n") 'hyx_XUnX' => (unmangle (mangle "\n")) Traceback (most recent call last): … ValueError: invalid literal for int() with base 16: 'n'
[ { "content": "# Copyright 2018 the authors.\n# This file is part of Hy, which is free software licensed under the Expat\n# license. See the LICENSE.\n\nfrom __future__ import unicode_literals\n\nimport re\nimport sys\nimport unicodedata\n\nfrom hy._compat import str_type, isidentifier, UCS4\nfrom hy.lex.excepti...
[ { "content": "# Copyright 2018 the authors.\n# This file is part of Hy, which is free software licensed under the Expat\n# license. See the LICENSE.\n\nfrom __future__ import unicode_literals\n\nimport re\nimport sys\nimport unicodedata\n\nfrom hy._compat import str_type, isidentifier, UCS4\nfrom hy.lex.excepti...
diff --git a/NEWS.rst b/NEWS.rst index 036843ac8..518ca7a31 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -34,6 +34,7 @@ Bug Fixes * Fixed errors from `from __future__ import ...` statements and missing Hy module docstrings caused by automatic importing of Hy builtins. * Fixed crash in `mangle` for some pathological inp...
hpcaitech__ColossalAI-4253
[tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests
[ { "content": "from abc import ABC, abstractmethod\nfrom typing import Callable, Optional, Tuple\n\nimport torch.nn as nn\nfrom torch.optim import Optimizer\n\nfrom colossalai.interface import OptimizerWrapper\n\n\nclass MixedPrecision(ABC):\n \"\"\"\n An abstract class for mixed precision training.\n \...
[ { "content": "from abc import ABC, abstractmethod\nfrom typing import Callable, Optional, Tuple\n\nimport torch.nn as nn\nfrom torch.optim import Optimizer\n\nfrom colossalai.interface import OptimizerWrapper\n\n\nclass MixedPrecision(ABC):\n \"\"\"\n An abstract class for mixed precision training.\n \...
diff --git a/colossalai/booster/mixed_precision/mixed_precision_base.py b/colossalai/booster/mixed_precision/mixed_precision_base.py index 8caa34e505e1..a86fdfc17eaf 100644 --- a/colossalai/booster/mixed_precision/mixed_precision_base.py +++ b/colossalai/booster/mixed_precision/mixed_precision_base.py @@ -13,10 +13,11 ...
matrix-org__synapse-13712
CI run against latest deps is failing See https://github.com/matrix-org/synapse/actions/runs/2991362357
[ { "content": "# Copyright 2015, 2016 OpenMarket Ltd\n# Copyright 2017 Vector Creations Ltd\n# Copyright 2018-2019 New Vector Ltd\n# Copyright 2019-2021 The Matrix.org Foundation C.I.C.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with ...
[ { "content": "# Copyright 2015, 2016 OpenMarket Ltd\n# Copyright 2017 Vector Creations Ltd\n# Copyright 2018-2019 New Vector Ltd\n# Copyright 2019-2021 The Matrix.org Foundation C.I.C.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with ...
diff --git a/changelog.d/13712.misc b/changelog.d/13712.misc new file mode 100644 index 000000000000..2c4f6b19f6f6 --- /dev/null +++ b/changelog.d/13712.misc @@ -0,0 +1 @@ +Fix typechecking with latest types-jsonschema. diff --git a/synapse/api/filtering.py b/synapse/api/filtering.py index b00714751956..102889ac49df 10...
coreruleset__coreruleset-3232
Review links to OWASP wiki ### Describe the bug We have references to other OWASP projects in our files: ``` rules/REQUEST-933-APPLICATION-ATTACK-PHP.conf 28:# https://www.owasp.org/index.php/PHP_Top_5#P1:_Remote_Code_Executionh 366:# https://www.owasp.org/index.php/PHP_Object_Injection rules/REQUEST-921-PR...
[ { "content": "import argparse\n\n# WARNING: This script is EXPERIMENTAL. Use with caution.\n#\n# Known issues:\n# * At the moment, it will probably not work with more than two strings.\n#\n# Known limitations:\n# * Any substrings of a target string will also NOT be matched. This is probably due to a limitat...
[ { "content": "import argparse\n\n# WARNING: This script is EXPERIMENTAL. Use with caution.\n#\n# Known issues:\n# * At the moment, it will probably not work with more than two strings.\n#\n# Known limitations:\n# * Any substrings of a target string will also NOT be matched. This is probably due to a limitat...
diff --git a/.github/ISSUE_TEMPLATE/01_false-positive.md b/.github/ISSUE_TEMPLATE/01_false-positive.md index b012f8e82..8dfb24b59 100644 --- a/.github/ISSUE_TEMPLATE/01_false-positive.md +++ b/.github/ISSUE_TEMPLATE/01_false-positive.md @@ -13,7 +13,7 @@ our project: * https://security.stackexchange.com/questions/ta...
openai__gym-2759
[Bug] turn indicators on car racing not rendering **Describe the bug** I have no idea why, but after #2749, the turn indicators in CarRacing no longer render and are only black now. Edit: Figured it out. - [x] I have checked that there is no similar [issue](https://github.com/openai/gym/issues) in the repo (**re...
[ { "content": "__credits__ = [\"Andrea PIERRÉ\"]\n\nimport math\nimport sys\nfrom typing import Optional\n\nimport Box2D\nimport numpy as np\nfrom Box2D.b2 import contactListener, fixtureDef, polygonShape\n\nimport gym\nfrom gym import spaces\nfrom gym.envs.box2d.car_dynamics import Car\nfrom gym.utils import Ez...
[ { "content": "__credits__ = [\"Andrea PIERRÉ\"]\n\nimport math\nimport sys\nfrom typing import Optional\n\nimport Box2D\nimport numpy as np\nfrom Box2D.b2 import contactListener, fixtureDef, polygonShape\n\nimport gym\nfrom gym import spaces\nfrom gym.envs.box2d.car_dynamics import Car\nfrom gym.utils import Ez...
diff --git a/gym/envs/box2d/car_racing.py b/gym/envs/box2d/car_racing.py index 125da74191e..de2b1811625 100644 --- a/gym/envs/box2d/car_racing.py +++ b/gym/envs/box2d/car_racing.py @@ -391,7 +391,10 @@ def _create_track(self): y2 + side * (TRACK_WIDTH + BORDER) * math.sin(beta2), )...
huggingface__transformers-12630
[Examples][Flax] AttributeError: 'DataTrainingArguments' object has no attribute 'test_file' ## Description While running run_summarization_flax.py with local files, currently we have only two DataTrainingArguments, one for training and another for validation file still we are validating test_file which is producing...
[ { "content": "#!/usr/bin/env python\n# coding=utf-8\n# Copyright 2021 The HuggingFace Team All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://...
[ { "content": "#!/usr/bin/env python\n# coding=utf-8\n# Copyright 2021 The HuggingFace Team All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://...
diff --git a/examples/flax/summarization/run_summarization_flax.py b/examples/flax/summarization/run_summarization_flax.py index 636fa3bb8522..60292c4d84cb 100644 --- a/examples/flax/summarization/run_summarization_flax.py +++ b/examples/flax/summarization/run_summarization_flax.py @@ -135,6 +135,10 @@ class DataTraini...
getnikola__nikola-3208
new_post cannot use a directory name as a path <!-- Before creating an issue: * make sure you are using an up-to-date version of Nikola * search for existing issues that might be related Make sure to: * provide information about your environment (below) * include all the output you get, and any other informatio...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2019 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-2019 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/CHANGES.txt b/CHANGES.txt index 4262591923..162dc3f2f6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,8 @@ New in master Bugfixes -------- +* Fix error when ``nikola new_post`` receives directory name as + path (Issue #3207) * Read listings files as UTF-8 * Set one-file status basing on defau...
twisted__twisted-12066
Update ZshArgumentsGenerator for python 3.13 The arg parser works a bit different in 3.13
[ { "content": "# -*- test-case-name: twisted.python.test.test_shellcomp -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nNo public APIs are provided by this module. Internal use only.\n\nThis module implements dynamic tab-completion for any command that uses\ntwisted.pytho...
[ { "content": "# -*- test-case-name: twisted.python.test.test_shellcomp -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nNo public APIs are provided by this module. Internal use only.\n\nThis module implements dynamic tab-completion for any command that uses\ntwisted.pytho...
diff --git a/src/twisted/newsfragments/12065.feature b/src/twisted/newsfragments/12065.feature new file mode 100644 index 00000000000..4b9b4b2f07c --- /dev/null +++ b/src/twisted/newsfragments/12065.feature @@ -0,0 +1 @@ +twisted.python._shellcomp.ZshArgumentsGenerator was updated for Python 3.13. diff --git a/src/twis...
Gallopsled__pwntools-1651
Pwn shellcraft is slower than needed Currently, `shellcraft` does this: ```py if args.shellcode not in shellcraft.templates: log.error("Unknown shellcraft template %r. Use --list to see available shellcodes." % args.shellcode) ``` Which requires a recursive walk of all of the shellcraft templates a...
[ { "content": "#!/usr/bin/env python2\nfrom __future__ import absolute_import\nfrom __future__ import division\n\nimport argparse\nimport os\nimport six\nimport sys\nimport types\n\nimport pwnlib\npwnlib.args.free_form = False\n\nfrom pwn import *\nfrom pwnlib.commandline import common\n\n\n# ____ _ _...
[ { "content": "#!/usr/bin/env python2\nfrom __future__ import absolute_import\nfrom __future__ import division\n\nimport argparse\nimport os\nimport six\nimport sys\nimport types\n\nimport pwnlib\npwnlib.args.free_form = False\n\nfrom pwn import *\nfrom pwnlib.commandline import common\n\n\n# ____ _ _...
diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 0c3612d1e..9d62fbf3e 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -31,4 +31,6 @@ jobs: git fetch origin git checkout origin/"$GITHUB_BASE_REF" pylint --exit-zero --errors-only pw...
open-telemetry__opentelemetry-python-contrib-223
Allow to modify the computed Span name via callback. # Description With Redis and Databases in a traces, there is no easy way from the span name to see if a "SELECT" is going to Redis or the database. ## Type of change Please delete options that are not relevant. - [X] New feature (non-breaking change whi...
[ { "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-requests/src/opentelemetry/instrumentation/requests/__init__.py b/instrumentation/opentelemetry-instrumentation-requests/src/opentelemetry/instrumentation/requests/__init__.py index c0a3d62d6b..c46ce53f96 100644 --- a/instrumentation/opentelemetry-instrumentati...
DataBiosphere__toil-2764
TypeError: string indices must be integers Hi, thanks for the fast response (#2762)! however now it appears a different response arises: ``` tscc-1-34.sdsc.edu 2019-08-14 14:11:52,420 MainThread INFO cwltool: Resolved '/projects/ps-yeolab4/software/eclip/0.5.0/cwl/wf_get_peaks_scatter_se.cwl' to 'file:///projects/ps-y...
[ { "content": "# Copyright (C) 2015-2016 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-...
[ { "content": "# Copyright (C) 2015-2016 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-...
diff --git a/setup.py b/setup.py index caace4efe0..c3ceccb71a 100644 --- a/setup.py +++ b/setup.py @@ -34,8 +34,8 @@ def runSetup(): gcs = 'google-cloud-storage==1.6.0' gcs_oauth2_boto_plugin = 'gcs_oauth2_boto_plugin==1.14' apacheLibcloud = 'apache-libcloud==2.2.1' - cwltool = 'cwltool==1.0.201902281...
fossasia__open-event-server-4142
Unable to update the user info via patch request. **I'm submitting a ...** (check one with "x") - [x] bug report - [ ] feature request - [ ] support request => Please do not submit support requests here, instead ask your query in out Gitter channel at https://gitter.im/fossasia/open-event-orga-server **Current b...
[ { "content": "from datetime import datetime\nimport pytz\nimport random\nimport humanize\nfrom flask import url_for\nfrom sqlalchemy import event, desc\nfrom sqlalchemy.orm.exc import MultipleResultsFound, NoResultFound\nfrom flask.ext.scrypt import generate_password_hash, generate_random_salt\nfrom sqlalchemy....
[ { "content": "from datetime import datetime\nimport pytz\nimport random\nimport humanize\nfrom flask import url_for\nfrom sqlalchemy import event, desc\nfrom sqlalchemy.orm.exc import MultipleResultsFound, NoResultFound\nfrom flask.ext.scrypt import generate_password_hash, generate_random_salt\nfrom sqlalchemy....
diff --git a/app/models/user.py b/app/models/user.py index a7debdb13b..5a3932f2e1 100644 --- a/app/models/user.py +++ b/app/models/user.py @@ -102,12 +102,14 @@ def email(self): @email.setter def email(self, email): """ - Setter for _email, can be only set once + Setter for _email, + ...
open-mmlab__mmpose-783
resource limit bug **Describe the feature** **Motivation** It is inconvenient when we run mmpose on slurm clustre which may has larger file-open's soft limit than 4096. The resource limit adjust here [https://github.com/open-mmlab/mmpose/blob/master/mmpose/datasets/builder.py#L13-L19](url) will reduce the base f...
[ { "content": "import platform\nimport random\nfrom functools import partial\n\nimport numpy as np\nfrom mmcv.parallel import collate\nfrom mmcv.runner import get_dist_info\nfrom mmcv.utils import Registry, build_from_cfg\nfrom mmcv.utils.parrots_wrapper import _get_dataloader\n\nfrom .samplers import Distribute...
[ { "content": "import platform\nimport random\nfrom functools import partial\n\nimport numpy as np\nfrom mmcv.parallel import collate\nfrom mmcv.runner import get_dist_info\nfrom mmcv.utils import Registry, build_from_cfg\nfrom mmcv.utils.parrots_wrapper import _get_dataloader\n\nfrom .samplers import Distribute...
diff --git a/mmpose/datasets/builder.py b/mmpose/datasets/builder.py index 8d9f8f75c5..6421a8e178 100644 --- a/mmpose/datasets/builder.py +++ b/mmpose/datasets/builder.py @@ -14,8 +14,9 @@ # https://github.com/pytorch/pytorch/issues/973 import resource rlimit = resource.getrlimit(resource.RLIMIT_NOFILE) ...
pallets__click-1693
shell completion is case sensitive, even with click.Choice(case_sensitive=False) ### Expected Behavior Since I set case_sensitive to False, I would expect shell completions to search without case sensitivity. ```python import click from click._bashcomplete import get_choices options = ['Paul', 'Simon', 'Art'...
[ { "content": "import os\nimport stat\nfrom datetime import datetime\n\nfrom ._compat import _get_argv_encoding\nfrom ._compat import filename_to_ui\nfrom ._compat import get_filesystem_encoding\nfrom ._compat import get_strerror\nfrom ._compat import open_stream\nfrom .exceptions import BadParameter\nfrom .util...
[ { "content": "import os\nimport stat\nfrom datetime import datetime\n\nfrom ._compat import _get_argv_encoding\nfrom ._compat import filename_to_ui\nfrom ._compat import get_filesystem_encoding\nfrom ._compat import get_strerror\nfrom ._compat import open_stream\nfrom .exceptions import BadParameter\nfrom .util...
diff --git a/CHANGES.rst b/CHANGES.rst index 4845673de..cb6cd134b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -151,6 +151,8 @@ Unreleased ending of a phrase or double linebreak. :issue:`1082` - Skip progress bar render steps for efficiency with very fast iterators by setting ``update_min_steps``. :issue:...
apache__tvm-13442
[Bug][ci] Deploy docs is busted See for example https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/main/4756/pipeline ``` Traceback (most recent call last): File "./ci/scripts/jenkins/s3.py", line 134, in <module> chmod(files) File "./ci/scripts/jenkins/s3.py", line 70, in chmod SH.run(f"ch...
[ { "content": "#!/usr/bin/env python3\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache Lic...
[ { "content": "#!/usr/bin/env python3\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache Lic...
diff --git a/Jenkinsfile b/Jenkinsfile index dfa9a7eda284..23c022abd335 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,7 +45,7 @@ // 'python3 jenkins/generate.py' // Note: This timestamp is here to ensure that updates to the Jenkinsfile are // always rebased on main before merging: -// Generated at 2022-11-17T23:...
mozmeao__snippets-service-1222
FieldError on /admin/base/job/add/ https://sentry.prod.mozaws.net/operations/snippets/issues/6453618/?query=is:unresolved "'completed_on' cannot be specified for Job model form as it is a non-editable field. Check fields/fieldsets/exclude attributes of class JobAdmin."
[ { "content": "import copy\nimport re\n\nfrom django.conf import settings\nfrom django.contrib import admin, messages\nfrom django.contrib.humanize.templatetags.humanize import intcomma\nfrom django.db.models import TextField, Q\nfrom django.http import HttpResponseRedirect\nfrom django.template.loader import ge...
[ { "content": "import copy\nimport re\n\nfrom django.conf import settings\nfrom django.contrib import admin, messages\nfrom django.contrib.humanize.templatetags.humanize import intcomma\nfrom django.db.models import TextField, Q\nfrom django.http import HttpResponseRedirect\nfrom django.template.loader import ge...
diff --git a/snippets/base/admin/adminmodels.py b/snippets/base/admin/adminmodels.py index f43c49b8f..0bfdfab6d 100644 --- a/snippets/base/admin/adminmodels.py +++ b/snippets/base/admin/adminmodels.py @@ -1016,10 +1016,11 @@ class JobAdmin(admin.ModelAdmin): 'metric_blocks_humanized', 'metric_last_upd...
freedomofpress__securedrop-3794
Release SecureDrop 0.9.0 This is a tracking issue for the upcoming release of SecureDrop 0.9.0 - tasks may get added or modified. **Feature freeze:** August 22, 2018 **String freeze:** August 29, 2018 **Pre-release announcement:** August 29, 2018 **Release date:** September 5, 2018 _SecureDrop maintainers an...
[ { "content": "__version__ = '0.9.0~rc1'\n", "path": "securedrop/version.py" }, { "content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to ...
[ { "content": "__version__ = '0.10.0~rc1'\n", "path": "securedrop/version.py" }, { "content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to...
diff --git a/changelog.md b/changelog.md index 3a166f4388..ce1586455e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,9 +1,40 @@ # Changelog -## 0.9.0~rc1 +## 0.10.0~rc1 +## 0.9.0 + +### Web Applications + +* Argon2 is now used to hash journalist passwords (#3506) +* Preserve conversation history only for j...
scipy__scipy-9387
Default value for "mode" in "ndimage.shift" In scipy.ndimage.shift the mode's default value is 'constant', but [in the documentation](https://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.shift.html#scipy.ndimage.shift) it says Default is 'reflect'. Which of the two is wrong?
[ { "content": "\"\"\"Docstring components common to several ndimage functions.\"\"\"\nfrom __future__ import division, print_function, absolute_import\n\nfrom scipy.misc import doccer\n\n__all__ = ['docfiller']\n\n\n_input_doc = (\n\"\"\"input : array_like\n The input array.\"\"\")\n_axis_doc = (\n\"\"\"axis ...
[ { "content": "\"\"\"Docstring components common to several ndimage functions.\"\"\"\nfrom __future__ import division, print_function, absolute_import\n\nfrom scipy.misc import doccer\n\n__all__ = ['docfiller']\n\n\n_input_doc = (\n\"\"\"input : array_like\n The input array.\"\"\")\n_axis_doc = (\n\"\"\"axis ...
diff --git a/scipy/ndimage/_ni_docstrings.py b/scipy/ndimage/_ni_docstrings.py index 009813fe955a..1fe339194eae 100644 --- a/scipy/ndimage/_ni_docstrings.py +++ b/scipy/ndimage/_ni_docstrings.py @@ -34,7 +34,7 @@ _mode_doc = ( """mode : {'reflect', 'constant', 'nearest', 'mirror', 'wrap'}, optional The `mode` pa...
Gallopsled__pwntools-1304
from pwn import * changes __name__ Running `pwntools==3.14.0.dev0` from py3 dev branch. from pwn import * imports __name__ apparently. ```python In [1]: __name__ Out[1]: '__main__' In [2]: from pwn import * In [3]: __name__ Out[3]: 'pwn.toplevel' ```
[ { "content": "# Get all the modules from pwnlib\nimport collections\nimport logging\nimport math\nimport operator\nimport os\nimport re\nimport socks\nimport signal\nimport string\nimport struct\nimport subprocess\nimport sys\nimport tempfile\nimport threading\nimport time\n\nfrom pprint import pprint\n\nimport...
[ { "content": "# Get all the modules from pwnlib\nimport collections\nimport logging\nimport math\nimport operator\nimport os\nimport re\nimport socks\nimport signal\nimport string\nimport struct\nimport subprocess\nimport sys\nimport tempfile\nimport threading\nimport time\n\nfrom pprint import pprint\n\nimport...
diff --git a/pwn/toplevel.py b/pwn/toplevel.py index fafcd1497..51a87e28a 100644 --- a/pwn/toplevel.py +++ b/pwn/toplevel.py @@ -67,7 +67,6 @@ # Promote these modules, so that "from pwn import *" will let you access them -__all__ = ["pickle", "StringIO", "BytesIO"] from six.moves import cPickle as pickle, cString...
xonsh__xonsh-1983
multiline code block crashes xonsh ``` $ @contextmanager Traceback (most recent call last): File "/home/laerus/.local/bin/xonsh", line 6, in <module> exec(compile(open(__file__).read(), __file__, 'exec')) File "/home/laerus/src/xonsh/scripts/xonsh", line 3, in <module> main() File "/home/laerus/src...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"The base class for xonsh shell\"\"\"\nimport io\nimport os\nimport sys\nimport time\nimport builtins\n\nfrom xonsh.tools import (XonshError, print_exception, DefaultNotGiven,\n check_for_partial_string, format_std_prepost)\nfrom xonsh.platform...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"The base class for xonsh shell\"\"\"\nimport io\nimport os\nimport sys\nimport time\nimport builtins\n\nfrom xonsh.tools import (XonshError, print_exception, DefaultNotGiven,\n check_for_partial_string, format_std_prepost)\nfrom xonsh.platform...
diff --git a/xonsh/base_shell.py b/xonsh/base_shell.py index 0a96afba2b..db32ae950b 100644 --- a/xonsh/base_shell.py +++ b/xonsh/base_shell.py @@ -413,10 +413,11 @@ def compile(self, src): print_exception() return src, None self.need_more_lines = True + code = N...
Textualize__textual-4427
Document.end line number is off by one (1-indexed) `Document.start` and `Document.end` were introduced in https://github.com/Textualize/textual/pull/4267 `Document.start` maps to `(0, 0)`, but `Document.end` is 1-indexed, with its line number computed from `Document.line_count`. This is confusing, and breaks with th...
[ { "content": "from __future__ import annotations\n\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom functools import lru_cache\nfrom typing import TYPE_CHECKING, NamedTuple, Tuple, overload\n\nfrom typing_extensions import Literal, get_args\n\nif TYPE_CHECKING:\n from tree_sitter...
[ { "content": "from __future__ import annotations\n\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom functools import lru_cache\nfrom typing import TYPE_CHECKING, NamedTuple, Tuple, overload\n\nfrom typing_extensions import Literal, get_args\n\nif TYPE_CHECKING:\n from tree_sitter...
diff --git a/CHANGELOG.md b/CHANGELOG.md index cd0139a5ef..cd62457fa5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versionin...
numba__numba-7546
LiteralStrKeyDict incorrectly handles missing const-key at compile time. <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues...
[ { "content": "import itertools\n\nimport numpy as np\nimport operator\n\nfrom numba.core import types, errors\nfrom numba import prange\nfrom numba.parfors.parfor import internal_prange\n\nfrom numba.core.typing.templates import (AttributeTemplate, ConcreteTemplate,\n Abs...
[ { "content": "import itertools\n\nimport numpy as np\nimport operator\n\nfrom numba.core import types, errors\nfrom numba import prange\nfrom numba.parfors.parfor import internal_prange\n\nfrom numba.core.typing.templates import (AttributeTemplate, ConcreteTemplate,\n Abs...
diff --git a/numba/core/typing/builtins.py b/numba/core/typing/builtins.py index fe7827ba496..59423fb2a13 100644 --- a/numba/core/typing/builtins.py +++ b/numba/core/typing/builtins.py @@ -645,7 +645,10 @@ def generic(self, args, kws): if not isinstance(tup, types.LiteralStrKeyDict): return ...
apache__airflow-13232
CLI `airflow scheduler -D --pid <PIDFile>` fails silently if PIDFile given is a relative path <!-- Welcome to Apache Airflow! For a smooth issue process, try to answer the following questions. Don't worry if they're not all applicable; just try to include what you can :-) If you need to include code snippet...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
diff --git a/airflow/utils/cli.py b/airflow/utils/cli.py index 7cd8946be3b3a..68a0b448d7868 100644 --- a/airflow/utils/cli.py +++ b/airflow/utils/cli.py @@ -227,8 +227,11 @@ def setup_locations(process, pid=None, stdout=None, stderr=None, log=None): stdout = os.path.join(settings.AIRFLOW_HOME, f'airflow-{proce...
wagtail__wagtail-7861
Slim sidebar always showing scrollbars On Wagtail 2.15.1, with Firefox 93, scrollbars are always showing on the slim sidebar, causing the logo to be clipped: ![image](https://user-images.githubusercontent.com/1093808/144216312-86e761d0-5813-410b-956f-e88da39cabab.png) Slim sidebar always showing scrollbars On Wagtai...
[ { "content": "from typing import List\n\nfrom django import forms\nfrom django.urls import reverse\nfrom django.utils.functional import cached_property\n\nfrom wagtail.admin.staticfiles import versioned_static\nfrom wagtail.core.telepath import Adapter, adapter\n\n\nclass BaseSidebarAdapter(Adapter):\n @cach...
[ { "content": "from typing import List\n\nfrom django import forms\nfrom django.urls import reverse\nfrom django.utils.functional import cached_property\n\nfrom wagtail.admin.staticfiles import versioned_static\nfrom wagtail.core.telepath import Adapter, adapter\n\n\nclass BaseSidebarAdapter(Adapter):\n @cach...
diff --git a/client/src/components/Sidebar/Sidebar.scss b/client/src/components/Sidebar/Sidebar.scss index a0dea045c2cb..0ed52c4b48c2 100644 --- a/client/src/components/Sidebar/Sidebar.scss +++ b/client/src/components/Sidebar/Sidebar.scss @@ -7,11 +7,12 @@ color: $color-white; width: $sidebar-toggle-size; ...
locustio__locust-2501
FastHTTPUser determines StatusCode 304 as Failed ### Prerequisites - [X] I am using [the latest version of Locust](https://github.com/locustio/locust/releases/) - [X] I am reporting a bug, not asking a question ### Description The status code is less than 400, but it is Failed. Run the same scenario with HttpUser, ...
[ { "content": "from __future__ import annotations\nimport re\nimport socket\nimport json\nimport json as unshadowed_json # some methods take a named parameter called json\nfrom base64 import b64encode\nfrom contextlib import contextmanager\nfrom json.decoder import JSONDecodeError\nfrom urllib.parse import urlp...
[ { "content": "from __future__ import annotations\nimport re\nimport socket\nimport json\nimport json as unshadowed_json # some methods take a named parameter called json\nfrom base64 import b64encode\nfrom contextlib import contextmanager\nfrom json.decoder import JSONDecodeError\nfrom urllib.parse import urlp...
diff --git a/locust/contrib/fasthttp.py b/locust/contrib/fasthttp.py index 912023d121..1b67111276 100644 --- a/locust/contrib/fasthttp.py +++ b/locust/contrib/fasthttp.py @@ -539,7 +539,7 @@ def raise_for_status(self): class LocustUserAgent(UserAgent): response_type = FastResponse request_type = FastRequest ...
urllib3__urllib3-3034
Add OpenGraph information to our documentation Would be good to fill in some open graph fields for our documentation so when we link to things they show up with rich output / images rather than as a standard link. Really works nicely for Social Media, Slack, etc. More information: https://ogp.me/
[ { "content": "from __future__ import annotations\n\nimport os\nimport sys\nfrom datetime import date\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to mak...
[ { "content": "from __future__ import annotations\n\nimport os\nimport sys\nfrom datetime import date\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to mak...
diff --git a/docs/conf.py b/docs/conf.py index 5ab6a68d8b..69f5c4dd09 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -35,8 +35,16 @@ "sphinx_copybutton", "sphinx.ext.doctest", "sphinx.ext.intersphinx", + "sphinxext.opengraph", ] +# Open Graph metadata +ogp_title = "urllib3 documentation" +ogp_site...
piskvorky__gensim-2042
WikiCorpus scans corpus to determine vocabulary when an empty dictionary is provided I have the following code: ```python wiki = WikiCorpus(inp, dictionary={}, lemmatize=False) ``` When I use it, it tries to scan through the corpus to determine vocabulary, while a dictionary **is** provided. It clearly viola...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz>\n# Copyright (C) 2012 Lars Buitinck <larsmans@gmail.com>\n# Copyright (C) 2018 Emmanouil Stergiadis <em.stergiadis@gmail.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/lice...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz>\n# Copyright (C) 2012 Lars Buitinck <larsmans@gmail.com>\n# Copyright (C) 2018 Emmanouil Stergiadis <em.stergiadis@gmail.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/lice...
diff --git a/gensim/corpora/wikicorpus.py b/gensim/corpora/wikicorpus.py index b7a18f02db..1c088b9416 100644 --- a/gensim/corpora/wikicorpus.py +++ b/gensim/corpora/wikicorpus.py @@ -558,7 +558,11 @@ def __init__(self, fname, processes=None, lemmatize=utils.has_pattern(), diction self.token_min_len = token_min...
ipython__ipython-4563
nbconvert: Default encoding problem on OS X Greetings. I am using IPython 1.1.0 via MacPorts on OSX 10.7.5. The following problem is reproducible on the master git branch (IPython 2.0.0-dev). On any call to nbconvert, I get the following failure: ``` [NbConvertApp] Using existing profile dir: u'/Users/USERNAME_REDA...
[ { "content": "\"\"\"This module defines Exporter, a highly configurable converter\nthat uses Jinja2 to export notebook files into different formats.\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, the IPython Development Team.\n#\n# Distributed un...
[ { "content": "\"\"\"This module defines Exporter, a highly configurable converter\nthat uses Jinja2 to export notebook files into different formats.\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, the IPython Development Team.\n#\n# Distributed un...
diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index 28e03702b96..f15c8188284 100644 --- a/IPython/core/tests/test_magic.py +++ b/IPython/core/tests/test_magic.py @@ -911,7 +911,7 @@ def _run_edit_test(arg_s, exp_filename=None, if exp_filename is not None: nt.assert_equal...
Rapptz__discord.py-8462
HybridGroup.before_invoke doesn't pass in self paramater when invoking via fallback slash command ### Summary When declaring a hybrid group in a cog with a fallback, the fallback fails to run if a before_invoke hook is set ### Reproduction Steps 1. Create a hybrid group with a callback, inside of a Cog 2. Set a bef...
[ { "content": "\"\"\"\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, including without limitation\nth...
[ { "content": "\"\"\"\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, including without limitation\nth...
diff --git a/discord/ext/commands/hybrid.py b/discord/ext/commands/hybrid.py index afd5b8983a84..03fa726d448e 100644 --- a/discord/ext/commands/hybrid.py +++ b/discord/ext/commands/hybrid.py @@ -706,6 +706,11 @@ def _update_copy(self, kwargs: Dict[str, Any]) -> Self: # This is a very lazy copy because the ...
celery__celery-5870
Continuous memory leak There is a memory leak in the parent process of Celery's worker. It is not a child process executing a task. It happens suddenly every few days. Unless you stop Celery, it consumes server memory in tens of hours. This problem happens at least in Celery 4.1, and it also occurs in Celery 4.2. Cele...
[ { "content": "\"\"\"Event receiver implementation.\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nimport time\nfrom operator import itemgetter\n\nfrom kombu import Queue\nfrom kombu.connection import maybe_channel\nfrom kombu.mixins import ConsumerMixin\n\nfrom celery import uuid\nfrom celer...
[ { "content": "\"\"\"Event receiver implementation.\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nimport time\nfrom operator import itemgetter\n\nfrom kombu import Queue\nfrom kombu.connection import maybe_channel\nfrom kombu.mixins import ConsumerMixin\n\nfrom celery import uuid\nfrom celer...
diff --git a/celery/events/receiver.py b/celery/events/receiver.py index dc8de15f299..2b789456d29 100644 --- a/celery/events/receiver.py +++ b/celery/events/receiver.py @@ -90,7 +90,8 @@ def capture(self, limit=None, timeout=None, wakeup=True): unless :attr:`EventDispatcher.should_stop` is set to True, or ...
ckan__ckan-4987
Dataset counts incorrect on Groups listing After upgrading to CKAN 2.8.1, the dataset counts are incorrect on the group listing screen. On the group listing screen (/group), the dataset count for each group is the full dataset count for the whole site. The correct count is shown on the screen for each individual gr...
[ { "content": "# encoding: utf-8\n\n'''\nThese dictize functions generally take a domain object (such as Package) and\nconvert it to a dictionary, including related objects (e.g. for Package it\nincludes PackageTags, PackageExtras, PackageGroup etc).\n\nThe basic recipe is to call:\n\n dictized = ckan.lib.dic...
[ { "content": "# encoding: utf-8\n\n'''\nThese dictize functions generally take a domain object (such as Package) and\nconvert it to a dictionary, including related objects (e.g. for Package it\nincludes PackageTags, PackageExtras, PackageGroup etc).\n\nThe basic recipe is to call:\n\n dictized = ckan.lib.dic...
diff --git a/ckan/lib/dictization/model_dictize.py b/ckan/lib/dictization/model_dictize.py index 14753410f65..1dd04275a2b 100644 --- a/ckan/lib/dictization/model_dictize.py +++ b/ckan/lib/dictization/model_dictize.py @@ -313,9 +313,9 @@ def get_packages_for_this_group(group_, just_the_count=False): } ...
mne-tools__mne-bids-1110
API error in 'write_raw_bids': channel type mappings description is not correct. KeyError: 'grad' ### Description of the problem We have a Neuromag-122 system which is equipped with 61 dual-channel planar first-order gradiometers. I am trying to convert our local meg files to MNE-BIDS format using write_raw_bids...
[ { "content": "\"\"\"Define coil types for MEG.\"\"\"\n# Authors: Matt Sanderson <matt.sanderson@mq.edu.au>\n#\n# License: BSD-3-Clause\nfrom mne.io.constants import FIFF\n\n\ndef get_coil_types():\n \"\"\"Return all known coil types.\n\n Returns\n -------\n coil_types : dict\n The keys contai...
[ { "content": "\"\"\"Define coil types for MEG.\"\"\"\n# Authors: Matt Sanderson <matt.sanderson@mq.edu.au>\n#\n# License: BSD-3-Clause\nfrom mne.io.constants import FIFF\n\n\ndef get_coil_types():\n \"\"\"Return all known coil types.\n\n Returns\n -------\n coil_types : dict\n The keys contai...
diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 8298859c8..0f8ed9d49 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -144,7 +144,7 @@ jobs: uses: actions/cache@v3 with: path: ${{ env.pythonLocation }} - key: tes...
nvaccess__nvda-10862
NVDA does not reports, when text is unselected in browse mode ### Steps to reproduce: 1. Select some text in browse mode. Can use any document with browse mode. 2. Press any arrow key to cancel the selection. ### Actual behavior: NVDA reports the character under the virtual cursor, but does not report that the text...
[ { "content": "#cursorManager.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#Copyright (C) 2006-2018 NV Access Limited, Joseph Lee, Derek Riemer, Davy Kager\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n\r\n\"\"\"\r\nImplementation of cursor manag...
[ { "content": "#cursorManager.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#Copyright (C) 2006-2018 NV Access Limited, Joseph Lee, Derek Riemer, Davy Kager\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n\r\n\"\"\"\r\nImplementation of cursor manag...
diff --git a/source/cursorManager.py b/source/cursorManager.py index 36e79497f6a..2b3ad58293d 100644 --- a/source/cursorManager.py +++ b/source/cursorManager.py @@ -145,7 +145,7 @@ def _caretMovementScriptHelper(self,gesture,unit,direction=None,posConstant=text info.expand(unit) if not willSayAllResume(gesture):...
yt-dlp__yt-dlp-3272
[rai] 1080p quality and original MP4 files no longer working for many videos ### Checklist - [X] I'm reporting a broken site - [X] I've verified that I'm running yt-dlp version **2022.03.08.1**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) - [X] I've checked that all provided URLs are alive and pla...
[ { "content": "# coding: utf-8\nfrom __future__ import unicode_literals\n\nimport re\n\nfrom .common import InfoExtractor\nfrom ..compat import (\n compat_str,\n compat_urlparse,\n)\nfrom ..utils import (\n determine_ext,\n ExtractorError,\n filter_dict,\n find_xpath_attr,\n fix_xml_ampersan...
[ { "content": "# coding: utf-8\nfrom __future__ import unicode_literals\n\nimport re\n\nfrom .common import InfoExtractor\nfrom ..compat import (\n compat_str,\n compat_urlparse,\n)\nfrom ..utils import (\n determine_ext,\n ExtractorError,\n filter_dict,\n find_xpath_attr,\n fix_xml_ampersan...
diff --git a/yt_dlp/extractor/rai.py b/yt_dlp/extractor/rai.py index 9d243b2be644..6864129c6eaa 100644 --- a/yt_dlp/extractor/rai.py +++ b/yt_dlp/extractor/rai.py @@ -118,7 +118,7 @@ def _extract_relinker_info(self, relinker_url, video_id, audio_only=False): }) def _create_http_urls(self, relinker_url, ...
lhotse-speech__lhotse-1340
Describe on cuts does not display supervision custom info As in line 178: https://github.com/lhotse-speech/lhotse/blob/ddde5bd15a769962ba7ec872fd9212bc89b08b5d/lhotse/cut/describe.py#L170-L178
[ { "content": "from collections import Counter, defaultdict\nfrom copy import deepcopy\nfrom math import ceil\nfrom typing import List, Optional, Tuple\n\nimport numpy as np\n\nfrom lhotse import CutSet\nfrom lhotse.cut import Cut\nfrom lhotse.utils import Seconds, TimeSpan, ifnone, is_module_available\n\n\nclas...
[ { "content": "from collections import Counter, defaultdict\nfrom copy import deepcopy\nfrom math import ceil\nfrom typing import List, Optional, Tuple\n\nimport numpy as np\n\nfrom lhotse import CutSet\nfrom lhotse.cut import Cut\nfrom lhotse.utils import Seconds, TimeSpan, ifnone, is_module_available\n\n\nclas...
diff --git a/lhotse/cut/describe.py b/lhotse/cut/describe.py index 97c0eb079..6be3a1855 100644 --- a/lhotse/cut/describe.py +++ b/lhotse/cut/describe.py @@ -175,7 +175,7 @@ def time_as_str_(seconds: Seconds) -> str: if self.sup_custom: print("SUPERVISION custom fields:") for key, val ...
vaexio__vaex-154
Window OS bug, can't import fcntl Hi, **OS: Windows 10.** I have encountered a bug. When I open a hdf file, using vaex.open('myfile.hdf'), I get the error message below. When I comment out the line 'import fcntl' in dataset_mmap.py , the issue goes away with no noticeable effect. The fcntl module does no...
[ { "content": "__author__ = 'maartenbreddels'\nimport os\nimport mmap\nimport math\nimport itertools\nimport functools\nimport collections\nimport logging\nimport numpy as np\nimport numpy.ma\nimport vaex\nimport astropy.table\nimport astropy.units\nfrom vaex.utils import ensure_string\nimport astropy.io.fits as...
[ { "content": "__author__ = 'maartenbreddels'\nimport os\nimport mmap\nimport math\nimport itertools\nimport functools\nimport collections\nimport logging\nimport numpy as np\nimport numpy.ma\nimport vaex\nimport astropy.table\nimport astropy.units\nfrom vaex.utils import ensure_string\nimport astropy.io.fits as...
diff --git a/packages/vaex-core/vaex/dataset_mmap.py b/packages/vaex-core/vaex/dataset_mmap.py index 94fc1c400f..89fe6fea2c 100644 --- a/packages/vaex-core/vaex/dataset_mmap.py +++ b/packages/vaex-core/vaex/dataset_mmap.py @@ -20,7 +20,6 @@ import vaex.file from vaex.expression import Expression import struct -impor...
opensearch-project__opensearch-build-508
Add bwctest.sh in OpenSearch and one plugin - [x] OpenSearch Core - https://github.com/opensearch-project/OpenSearch/pull/1150 - [x] Anomaly Detection Plugin - https://github.com/opensearch-project/anomaly-detection/pull/189
[ { "content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport os\n\n\nclass ScriptFinder:\n class ScriptNotFoundError(Exception):\n def __init__...
[ { "content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport os\n\n\nclass ScriptFinder:\n class ScriptNotFoundError(Exception):\n def __init__...
diff --git a/bundle-workflow/README.md b/bundle-workflow/README.md index 0d59cc9b4b..a5343ef70b 100644 --- a/bundle-workflow/README.md +++ b/bundle-workflow/README.md @@ -108,7 +108,6 @@ Usage: export AWS_ROLE_ARN=arn:aws:iam::<AWS_JENKINS_ACCOUNT>:role/opensearch-test export AWS_ROLE_SESSION_NAME=dummy-session -Ne...
Project-MONAI__MONAI-7693
AttributeError: 'PerceptualLoss' object has no attribute 'channel_wise' ``` [2024-04-21T01:34:48.412Z] ====================================================================== [2024-04-21T01:34:48.412Z] ERROR: test_shape_10 (tests.test_perceptual_loss.TestPerceptualLoss) [2024-04-21T01:34:48.412Z] --------------------...
[ { "content": "# Copyright (c) MONAI Consortium\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable la...
[ { "content": "# Copyright (c) MONAI Consortium\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable la...
diff --git a/monai/losses/perceptual.py b/monai/losses/perceptual.py index 02493f412b..a8ae90993a 100644 --- a/monai/losses/perceptual.py +++ b/monai/losses/perceptual.py @@ -125,6 +125,7 @@ def __init__( self.perceptual_function = LPIPS(pretrained=pretrained, net=network_type, verbose=False) self...
StackStorm__st2-5253
Special characters in st2admin account causing st2 key failure Just upgraded to version 3.4 and my keyvault is having problems. I believe it's due to my st2admin password containing special characters. ``` [root@stackstorm workflows]# st2 key list --scope=all Traceback (most recent call last): File "/bin/st2", ...
[ { "content": "# Copyright 2020 The StackStorm Authors.\n# Copyright 2019 Extreme Networks, 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/l...
[ { "content": "# Copyright 2020 The StackStorm Authors.\n# Copyright 2019 Extreme Networks, 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/l...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 929e2b5a9e..75d3911233 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -250,6 +250,15 @@ Changed Contributed by Amanda McGuinness (@amanda11 Ammeon Solutions) +* Support % in CLI arguments by reading the ConfigParser() arguments with raw=True. + + This removes ...
pulp__pulpcore-4095
Gunicorn consuming excessive amounts of memory **Version** 3.16.z **Describe the bug** Gunicorn consuming excessive amounts of memory, 3.5-4gb **To Reproduce** Unclear **Expected behavior** Probably not to have a single gunicorn process use 4gb of memory **Additional context** BZ: https://bugzilla.re...
[ { "content": "from functools import lru_cache\nfrom rest_access_policy import AccessPolicy\nfrom rest_framework.exceptions import APIException\n\nfrom pulpcore.app.models import AccessPolicy as AccessPolicyModel\nfrom pulpcore.app.util import get_view_urlpattern, get_viewset_for_model\n\n\nclass AccessPolicyFro...
[ { "content": "from rest_access_policy import AccessPolicy\nfrom rest_framework.exceptions import APIException\n\nfrom pulpcore.app.models import AccessPolicy as AccessPolicyModel\nfrom pulpcore.app.util import get_view_urlpattern, get_viewset_for_model\n\n\nclass AccessPolicyFromDB(AccessPolicy):\n \"\"\"\n ...
diff --git a/CHANGES/2250.bugfix b/CHANGES/2250.bugfix new file mode 100644 index 0000000000..133fcef13e --- /dev/null +++ b/CHANGES/2250.bugfix @@ -0,0 +1 @@ +Resolved a memory leak that could occur while making large repeated queries against the API service. diff --git a/pulpcore/app/access_policy.py b/pulpcore/app/a...
rasterio__rasterio-2780
ENH: Add int8 to rasterize (GDAL 3.7+) https://github.com/rasterio/rasterio/blob/7e86f1b745331c4ca57dbf89a704e9bceead11b7/rasterio/features.py#L255 Related: https://github.com/rasterio/rasterio/pull/2656
[ { "content": "\"\"\"Functions for working with features in a raster dataset.\"\"\"\n\nimport logging\nimport math\nimport os\nimport warnings\n\nimport numpy as np\n\nimport rasterio\nfrom rasterio.dtypes import (\n validate_dtype,\n can_cast_dtype,\n get_minimum_dtype,\n _getnpdtype,\n)\nfrom raste...
[ { "content": "\"\"\"Functions for working with features in a raster dataset.\"\"\"\n\nimport logging\nimport math\nimport os\nimport warnings\n\nimport numpy as np\n\nimport rasterio\nfrom rasterio.dtypes import (\n validate_dtype,\n can_cast_dtype,\n get_minimum_dtype,\n _getnpdtype,\n)\nfrom raste...
diff --git a/rasterio/features.py b/rasterio/features.py index 565e766f1..bccbe18c4 100644 --- a/rasterio/features.py +++ b/rasterio/features.py @@ -256,7 +256,9 @@ def rasterize( 'int16', 'int32', 'uint8', 'uint16', 'uint32', 'float32', 'float64' ) if GDALVersion.runtime().at_least("3.5"): - ...
huggingface__transformers-4533
MMBT doesn't inherit from nn.Module # 🐛 Bug ## Information Model I am using (Bert, XLNet ...): MMBT Language I am using the model on (English, Chinese ...): not related The problem arises when using: * [ ] the official example scripts: (give details below) * [x] my own modified scripts: (give details bel...
[ { "content": "# coding=utf-8\n# Copyright (c) Facebook, Inc. and its affiliates.\n# Copyright (c) HuggingFace Inc. team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# ...
[ { "content": "# coding=utf-8\n# Copyright (c) Facebook, Inc. and its affiliates.\n# Copyright (c) HuggingFace Inc. team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# ...
diff --git a/src/transformers/modeling_mmbt.py b/src/transformers/modeling_mmbt.py index 0eddaa72f0ea..8c403a5f3b56 100644 --- a/src/transformers/modeling_mmbt.py +++ b/src/transformers/modeling_mmbt.py @@ -149,7 +149,7 @@ def forward(self, input_modal, start_token=None, end_token=None, position_ids=No MMBT_START_...
lutris__lutris-3934
Redream runner shows with wrong styling Shows up with full, coloured logo, really massive. Screenshot attached ![2021-12-17_21-03](https://user-images.githubusercontent.com/60288171/146607719-84e70073-94f5-4ed6-94d8-a8aee15ab0de.png) .
[ { "content": "\"\"\"Sidebar for the main window\"\"\"\nfrom gettext import gettext as _\n\nfrom gi.repository import GLib, GObject, Gtk, Pango\n\nfrom lutris import runners, services\nfrom lutris.database import categories as categories_db\nfrom lutris.database import games as games_db\nfrom lutris.game import ...
[ { "content": "\"\"\"Sidebar for the main window\"\"\"\nfrom gettext import gettext as _\n\nfrom gi.repository import GLib, GObject, Gtk, Pango\n\nfrom lutris import runners, services\nfrom lutris.database import categories as categories_db\nfrom lutris.database import games as games_db\nfrom lutris.game import ...
diff --git a/lutris/gui/widgets/sidebar.py b/lutris/gui/widgets/sidebar.py index 9f3f9b5be2..76a43d5c48 100644 --- a/lutris/gui/widgets/sidebar.py +++ b/lutris/gui/widgets/sidebar.py @@ -276,7 +276,15 @@ def __init__(self, application, selected=None): self.show_all() def get_sidebar_icon(self, icon_name...
holoviz__panel-4738
Failed to load module script I'm testing out panel==1.0.0rc1 (and current `main`) branch. I again get the MIMETYPE problem as in https://github.com/holoviz/panel/issues/4080 ```python import numpy as np import matplotlib.pyplot as plt import panel as pn # import mimetypes # mimetypes.add_type("application/...
[ { "content": "\"\"\"\nPatches bokeh resources to make it easy to add external JS and CSS\nresources via the panel.config object.\n\"\"\"\nfrom __future__ import annotations\n\nimport copy\nimport importlib\nimport json\nimport logging\nimport mimetypes\nimport os\nimport pathlib\nimport re\nimport textwrap\n\nf...
[ { "content": "\"\"\"\nPatches bokeh resources to make it easy to add external JS and CSS\nresources via the panel.config object.\n\"\"\"\nfrom __future__ import annotations\n\nimport copy\nimport importlib\nimport json\nimport logging\nimport mimetypes\nimport os\nimport pathlib\nimport re\nimport textwrap\n\nf...
diff --git a/panel/io/resources.py b/panel/io/resources.py index a82f03cd77..b1b2c46d75 100644 --- a/panel/io/resources.py +++ b/panel/io/resources.py @@ -122,14 +122,7 @@ def conffilter(value): extension_dirs['panel'] = str(DIST_DIR) -if mimetypes.types_map.get('.js') == 'text/plain': - logger.warn( - "...
getsentry__sentry-62347
Internal error when exporting date ### Environment SaaS (https://sentry.io/) ### Steps to Reproduce Some users are receiving the message below after trying to export data from Discover. At the moment I an unable to reproduce on two of my organisations. [Internal issue link](https://sentry.sentry.io/issues/4742527...
[ { "content": "import codecs\nimport csv\nimport logging\nimport tempfile\nfrom hashlib import sha1\n\nimport sentry_sdk\nfrom celery import current_task\nfrom celery.exceptions import MaxRetriesExceededError\nfrom django.core.files.base import ContentFile\nfrom django.db import IntegrityError, router\nfrom djan...
[ { "content": "import codecs\nimport csv\nimport logging\nimport tempfile\nfrom hashlib import sha1\n\nimport sentry_sdk\nfrom celery import current_task\nfrom celery.exceptions import MaxRetriesExceededError\nfrom django.core.files.base import ContentFile\nfrom django.db import IntegrityError, router\nfrom djan...
diff --git a/src/sentry/data_export/tasks.py b/src/sentry/data_export/tasks.py index ee248ecc3b1121..1736202f51845b 100644 --- a/src/sentry/data_export/tasks.py +++ b/src/sentry/data_export/tasks.py @@ -102,7 +102,9 @@ def assemble_download( # file handle to a stream writer that will encode to utf8. ...
DataDog__dd-agent-1914
[nginx] No debug logging when doing Pokémon exception handling The [nginx code](https://github.com/DataDog/dd-agent/blob/49952b4429b125619bc8d9f51bb6564e7c0d2e12/checks.d/nginx.py#L45-L50) follows a [pattern of catching all exceptions](http://blog.codinghorror.com/new-programming-jargon/) when attempting to submit a me...
[ { "content": "# stdlib\nimport re\nimport urlparse\n\n# 3rd party\nimport requests\nimport simplejson as json\n\n# project\nfrom checks import AgentCheck\nfrom util import headers\n\n\nclass Nginx(AgentCheck):\n \"\"\"Tracks basic nginx metrics via the status module\n * number of connections\n * number...
[ { "content": "# stdlib\nimport re\nimport urlparse\n\n# 3rd party\nimport requests\nimport simplejson as json\n\n# project\nfrom checks import AgentCheck\nfrom util import headers\n\n\nclass Nginx(AgentCheck):\n \"\"\"Tracks basic nginx metrics via the status module\n * number of connections\n * number...
diff --git a/checks.d/nginx.py b/checks.d/nginx.py index bc75984557..573463eed5 100644 --- a/checks.d/nginx.py +++ b/checks.d/nginx.py @@ -49,8 +49,8 @@ def check(self, instance): name, value, tags, metric_type = row func = funcs[metric_type] func(name, value, tags) - ...
CiviWiki__OpenCiviWiki-1380
enable Rich terminal output ## Task - [ ] add Rich to this project with the command `poetry add rich --group dev` - [ ] follow the Rich [configuration instructions](https://rich.readthedocs.io/en/stable/introduction.html) - [ ] add the following code to the `LOGGING = {...}` configuration in the project settings ...
[ { "content": "\"\"\"\nDjango settings for civiwiki project.\nDarius Calliet May 12, 2016\n\nProduction settings file to select proper environment variables.\n\"\"\"\nimport os\n\n# False if not in os.environ\nDEBUG = os.getenv(\"DEBUG\", False)\n\n# defaults to second value if not found in os.environ\nDJANGO_HO...
[ { "content": "\"\"\"\nDjango settings for civiwiki project.\nDarius Calliet May 12, 2016\n\nProduction settings file to select proper environment variables.\n\"\"\"\nimport os\n\n# False if not in os.environ\nDEBUG = os.getenv(\"DEBUG\", False)\n\n# defaults to second value if not found in os.environ\nDJANGO_HO...
diff --git a/poetry.lock b/poetry.lock index 8f1432858..93155b24b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -113,6 +113,17 @@ category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +[[package]] +name = "commonmark" +version = "0.9.1" +description = "Python parse...
biolab__orange3-2093
Fitter preprocessors <!-- This is an issue template. Please fill in the relevant details in the sections below. --> ##### Orange version <!-- From menu _Help→About→Version_ or code `Orange.version.full_version` --> 3.4.0 ##### Expected behavior Learners use preprocessors. ##### Actual behavior Learner...
[ { "content": "from Orange.base import Learner, Model\n\n\nclass FitterMeta(type):\n \"\"\"Ensure that each subclass of the `Fitter` class overrides the `__fits__`\n attribute with a valid value.\"\"\"\n def __new__(mcs, name, bases, attrs):\n # Check that a fitter implementation defines a valid ...
[ { "content": "from Orange.base import Learner, Model\n\n\nclass FitterMeta(type):\n \"\"\"Ensure that each subclass of the `Fitter` class overrides the `__fits__`\n attribute with a valid value.\"\"\"\n def __new__(mcs, name, bases, attrs):\n # Check that a fitter implementation defines a valid ...
diff --git a/Orange/modelling/base.py b/Orange/modelling/base.py index a87ded973bb..735432fb436 100644 --- a/Orange/modelling/base.py +++ b/Orange/modelling/base.py @@ -55,6 +55,12 @@ def _fit_model(self, data): X, Y, W = data.X, data.Y, data.W if data.has_weights() else None return learner.fi...
lightly-ai__lightly-305
Fix import of ApiWorkflowClient # Fix import of ApiWorkflowClient Currently, the following import statement (from the docs) does not work: ```python from lightly.api import ApiWorkflowClient ``` TODO: - [x] We need to fix this by exposing the client in the `__init__.py` file. - [x] Make sure the other impo...
[ { "content": "", "path": "lightly/active_learning/utils/__init__.py" }, { "content": "\"\"\" The lightly.api module provides access to the Lightly web-app. \"\"\"\n\n# Copyright (c) 2020. Lightly AG and its affiliates.\n# All Rights Reserved\n\nfrom lightly.api import routes\n", "path": "lightly...
[ { "content": "\"\"\" Collection of Utils for Active Learning \"\"\"\n\n# Copyright (c) 2020. Lightly AG and its affiliates.\n# All Rights Reserved\n\nfrom lightly.active_learning.utils.bounding_box import BoundingBox\nfrom lightly.active_learning.utils.object_detection_output import ObjectDetectionOutput", ...
diff --git a/docs/source/lightly.active_learning.rst b/docs/source/lightly.active_learning.rst index 2c9df027c..27fe5ed79 100644 --- a/docs/source/lightly.active_learning.rst +++ b/docs/source/lightly.active_learning.rst @@ -22,3 +22,9 @@ lightly.active_learning .. automodule:: lightly.active_learning.scorers.detectio...
pytorch__vision-2954
Feature Pyramid Network code bug https://github.com/pytorch/vision/blob/c2e8a00885e68ae1200eb6440f540e181d9125de/torchvision/ops/feature_pyramid_network.py#L60 this line does not work, I think it should be modified as self.modules() instead of self.children()
[ { "content": "from collections import OrderedDict\n\nimport torch\nimport torch.nn.functional as F\nfrom torch import nn, Tensor\n\nfrom torch.jit.annotations import Tuple, List, Dict, Optional\n\n\nclass ExtraFPNBlock(nn.Module):\n \"\"\"\n Base class for the extra block in the FPN.\n\n Arguments:\n ...
[ { "content": "from collections import OrderedDict\n\nimport torch\nimport torch.nn.functional as F\nfrom torch import nn, Tensor\n\nfrom torch.jit.annotations import Tuple, List, Dict, Optional\n\n\nclass ExtraFPNBlock(nn.Module):\n \"\"\"\n Base class for the extra block in the FPN.\n\n Arguments:\n ...
diff --git a/test/expect/ModelTester.test_fasterrcnn_resnet50_fpn_expect.pkl b/test/expect/ModelTester.test_fasterrcnn_resnet50_fpn_expect.pkl index 878b9f5d431..3085bf36e60 100644 Binary files a/test/expect/ModelTester.test_fasterrcnn_resnet50_fpn_expect.pkl and b/test/expect/ModelTester.test_fasterrcnn_resnet50_fpn_e...
MongoEngine__mongoengine-2363
AttributeError on delete Hi, I was trying to delete something when I got this error: `AttributeError: 'DuplicateKeyError' object has no attribute 'message'` Which is caused by (line 642 in document.py) ``` except pymongo.errors.OperationFailure as err: message = "Could not delete document (%s)" % err.message...
[ { "content": "import re\nimport warnings\n\nfrom bson.dbref import DBRef\nimport pymongo\nfrom pymongo.read_preferences import ReadPreference\n\nfrom mongoengine import signals\nfrom mongoengine.base import (\n BaseDict,\n BaseDocument,\n BaseList,\n DocumentMetaclass,\n EmbeddedDocumentList,\n ...
[ { "content": "import re\nimport warnings\n\nfrom bson.dbref import DBRef\nimport pymongo\nfrom pymongo.read_preferences import ReadPreference\n\nfrom mongoengine import signals\nfrom mongoengine.base import (\n BaseDict,\n BaseDocument,\n BaseList,\n DocumentMetaclass,\n EmbeddedDocumentList,\n ...
diff --git a/mongoengine/document.py b/mongoengine/document.py index db64054a1..4a57d511d 100644 --- a/mongoengine/document.py +++ b/mongoengine/document.py @@ -639,7 +639,7 @@ def delete(self, signal_kwargs=None, **write_concern): write_concern=write_concern, _from_doc_delete=True ) ...
openvinotoolkit__datumaro-262
CamVid format export fails when the labelmap parameter specified
[ { "content": "\n# Copyright (C) 2020 Intel Corporation\n#\n# SPDX-License-Identifier: MIT\n\nimport logging as log\nimport os\nimport os.path as osp\nfrom collections import OrderedDict\nfrom enum import Enum\n\nimport numpy as np\n\nfrom datumaro.components.converter import Converter\nfrom datumaro.components....
[ { "content": "\n# Copyright (C) 2020 Intel Corporation\n#\n# SPDX-License-Identifier: MIT\n\nimport logging as log\nimport os\nimport os.path as osp\nfrom collections import OrderedDict\nfrom enum import Enum\n\nimport numpy as np\n\nfrom datumaro.components.converter import Converter\nfrom datumaro.components....
diff --git a/datumaro/plugins/camvid_format.py b/datumaro/plugins/camvid_format.py index 76de818196..0abca1751b 100644 --- a/datumaro/plugins/camvid_format.py +++ b/datumaro/plugins/camvid_format.py @@ -218,6 +218,16 @@ def find_sources(cls, path): class CamvidConverter(Converter): DEFAULT_IMAGE_EXT = CamvidPath....
zestedesavoir__zds-site-3662
[v18] Date incorrecte dans les notifications J'ai reçu une notification pour un topic que je suivais avant la v18. Selon la notification elle datait d'il y'a 7h, sauf qu'en cliquant dessus, je suis tombé sur un message qui date d'il y'a 7 minutes. On peut le voir sur les screens ci-dessous. **Notification avant le cl...
[ { "content": "# -*- coding: utf-8 -*-s\nfrom smtplib import SMTPException\n\nfrom django.contrib.auth.models import User\nfrom django.contrib.contenttypes.fields import GenericForeignKey\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.mail import EmailMultiAlternatives\nfrom django...
[ { "content": "# -*- coding: utf-8 -*-s\nfrom smtplib import SMTPException\n\nfrom django.contrib.auth.models import User\nfrom django.contrib.contenttypes.fields import GenericForeignKey\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.mail import EmailMultiAlternatives\nfrom django...
diff --git a/zds/notification/models.py b/zds/notification/models.py index 5cf2d8ed1f..66f4f8d14f 100644 --- a/zds/notification/models.py +++ b/zds/notification/models.py @@ -137,6 +137,7 @@ def send_notification(self, content=None, send_email=True, sender=None): notification.sender = sender n...
searx__searx-332
Bing news engine broken There is no result when I'm using the bang "!bing_news".
[ { "content": "\"\"\"\n Bing (News)\n\n @website https://www.bing.com/news\n @provide-api yes (http://datamarket.azure.com/dataset/bing/search),\n max. 5000 query/month\n\n @using-api no (because of query limit)\n @results HTML (using search portal)\n @stable no (HTML can change)\n @p...
[ { "content": "\"\"\"\n Bing (News)\n\n @website https://www.bing.com/news\n @provide-api yes (http://datamarket.azure.com/dataset/bing/search),\n max. 5000 query/month\n\n @using-api no (because of query limit)\n @results HTML (using search portal)\n @stable no (HTML can change)\n @p...
diff --git a/searx/engines/bing_news.py b/searx/engines/bing_news.py index 1e5d361c19..56be4b912d 100644 --- a/searx/engines/bing_news.py +++ b/searx/engines/bing_news.py @@ -65,7 +65,7 @@ def response(resp): # parse publishedDate publishedDateXPath = result.xpath('.//div[@class="sn_txt"]/div' - ...
keras-team__keras-16402
EfficentNets no longer train on non-float32 inputs **System information** - Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04 - TensorFlow installed from (source or binary): Pip `tf-nightly...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/keras/applications/efficientnet.py b/keras/applications/efficientnet.py index d364f5698c53..0a2b8fee3b13 100644 --- a/keras/applications/efficientnet.py +++ b/keras/applications/efficientnet.py @@ -331,7 +331,7 @@ def round_repeats(repeats): # normalize the input, we need to divide another sqrt(var) t...
feast-dev__feast-4116
Bug: UserWarning when passing `FeatureService` object to both `apply()` and `get_online_features()` - Caused by difference in `FeatureViewProjection.from_proto()` and `FeatureViewProjection.from_definition()` ## Context If a `FeatureService` object is created and is being passed to both the `apply()` and the `get_on...
[ { "content": "from typing import TYPE_CHECKING, Dict, List, Optional\n\nfrom attr import dataclass\n\nfrom feast.field import Field\nfrom feast.protos.feast.core.FeatureViewProjection_pb2 import (\n FeatureViewProjection as FeatureViewProjectionProto,\n)\n\nif TYPE_CHECKING:\n from feast.base_feature_view...
[ { "content": "from typing import TYPE_CHECKING, Dict, List, Optional\n\nfrom attr import dataclass\n\nfrom feast.field import Field\nfrom feast.protos.feast.core.FeatureViewProjection_pb2 import (\n FeatureViewProjection as FeatureViewProjectionProto,\n)\n\nif TYPE_CHECKING:\n from feast.base_feature_view...
diff --git a/sdk/python/feast/feature_view_projection.py b/sdk/python/feast/feature_view_projection.py index 2960996a10c..ff5b1b6e063 100644 --- a/sdk/python/feast/feature_view_projection.py +++ b/sdk/python/feast/feature_view_projection.py @@ -53,7 +53,7 @@ def to_proto(self) -> FeatureViewProjectionProto: def fr...
arviz-devs__arviz-203
Changing the order of plotting and file load seems to cause netcdf errors For some reason it seems that changing the order of plotting and loading data causes failures, not entirely sure why yet. This is only occurring for me on Ubuntu 16.04 with the latest version of arviz. It does not occur on my osx laptop Load...
[ { "content": "\"\"\"Data structure for using netcdf groups with xarray.\"\"\"\nimport netCDF4 as nc\nimport xarray as xr\n\n\nclass InferenceData():\n \"\"\"Container for accessing netCDF files using xarray.\"\"\"\n\n def __init__(self, *_, **kwargs):\n \"\"\"Initialize InferenceData object from ke...
[ { "content": "\"\"\"Data structure for using netcdf groups with xarray.\"\"\"\nimport netCDF4 as nc\nimport xarray as xr\n\n\nclass InferenceData():\n \"\"\"Container for accessing netCDF files using xarray.\"\"\"\n\n def __init__(self, *_, **kwargs):\n \"\"\"Initialize InferenceData object from ke...
diff --git a/arviz/inference_data.py b/arviz/inference_data.py index 77905ecd19..21d7d2d1b5 100644 --- a/arviz/inference_data.py +++ b/arviz/inference_data.py @@ -50,8 +50,12 @@ def from_netcdf(filename): InferenceData object """ groups = {} - for group in nc.Dataset(filename, mode='r'...
readthedocs__readthedocs.org-2017
Read The Docs TOC Footer Not Loading and Throwing Errors ## Details If this issue is for a specific project or build, include the following: - Project: http://gobblin.readthedocs.org/en/readthedocs/ - Build #: latest When loading the project page, the Chrome Inspect tool throws an error saying: `Failed to load resou...
[ { "content": "import os\nimport logging\nimport json\nimport yaml\n\nfrom django.conf import settings\nfrom django.template import Context, loader as template_loader\n\nfrom readthedocs.doc_builder.base import BaseBuilder\n\nlog = logging.getLogger(__name__)\n\nTEMPLATE_DIR = '%s/readthedocs/templates/mkdocs/re...
[ { "content": "import os\nimport logging\nimport json\nimport yaml\n\nfrom django.conf import settings\nfrom django.template import Context, loader as template_loader\n\nfrom readthedocs.doc_builder.base import BaseBuilder\n\nlog = logging.getLogger(__name__)\n\nTEMPLATE_DIR = '%s/readthedocs/templates/mkdocs/re...
diff --git a/readthedocs/doc_builder/backends/mkdocs.py b/readthedocs/doc_builder/backends/mkdocs.py index f97194b0f19..93b3030bb02 100644 --- a/readthedocs/doc_builder/backends/mkdocs.py +++ b/readthedocs/doc_builder/backends/mkdocs.py @@ -98,7 +98,7 @@ def append_conf(self, **kwargs): # Will be available in ...
Lightning-AI__torchmetrics-912
BERTScore raises RuntimeError when device="cuda" Hi, when I run the following (exemplary) code, ```py from torchmetrics.text.bert import BERTScore bertscore = BERTScore(model_name_or_path="sentence-transformers/all-MiniLM-L6-v2", device="cuda") bertscore = bertscore.to("cuda") preds = ["the sun is a star"]...
[ { "content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
[ { "content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 17047e7820d..16aec20dee1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -130,6 +130,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed compatibility of `ClasswiseWrapper` with the `prefix` argument of `MetricCollection` ([#843](...
pypa__setuptools-1625
AssertionError on len(sdists) == 1 when sdist format is zip In some Windows projects, users expect sdists to be released in zip form. For that reason, I've added the following to a project's setup.cfg: ``` [sdist] formats=zip ``` With this setting in place, performing a `pep517.build .` on such a project resul...
[ { "content": "\"\"\"A PEP 517 interface to setuptools\n\nPreviously, when a user or a command line tool (let's call it a \"frontend\")\nneeded to make a request of setuptools to take a certain action, for\nexample, generating a list of installation requirements, the frontend would\nwould call \"setup.py egg_inf...
[ { "content": "\"\"\"A PEP 517 interface to setuptools\n\nPreviously, when a user or a command line tool (let's call it a \"frontend\")\nneeded to make a request of setuptools to take a certain action, for\nexample, generating a list of installation requirements, the frontend would\nwould call \"setup.py egg_inf...
diff --git a/changelog.d/1625.change.rst b/changelog.d/1625.change.rst new file mode 100644 index 0000000000..9125ac0ced --- /dev/null +++ b/changelog.d/1625.change.rst @@ -0,0 +1 @@ +In PEP 517 build_meta builder, ensure that sdists are built as gztar per the spec. diff --git a/setuptools/build_meta.py b/setuptools/bu...
espnet__espnet-4378
Question on check_short_utt I use `Conv2dSubsampling2` and have a tensor of size `[1, 5, 80]` that can not be processed by this subsampling module. If I pad it to `[1, 7, 80]`, then it works, but with `[1, 6, 80]` it does not, so I assume the minimum length is 7 frames for `Conv2dSubsampling2`. However, `check_short_ut...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n# Copyright 2019 Shigeki Karita\n# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n\n\"\"\"Subsampling layer definition.\"\"\"\n\nimport torch\n\nfrom espnet.nets.pytorch_backend.transformer.embedding import PositionalEncoding\n\n\nclas...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n# Copyright 2019 Shigeki Karita\n# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n\n\"\"\"Subsampling layer definition.\"\"\"\n\nimport torch\n\nfrom espnet.nets.pytorch_backend.transformer.embedding import PositionalEncoding\n\n\nclas...
diff --git a/espnet/nets/pytorch_backend/transformer/subsampling.py b/espnet/nets/pytorch_backend/transformer/subsampling.py index a69bc09445f..f91d2906416 100644 --- a/espnet/nets/pytorch_backend/transformer/subsampling.py +++ b/espnet/nets/pytorch_backend/transformer/subsampling.py @@ -30,8 +30,8 @@ def __init__(self...
Cloud-CV__EvalAI-1881
Remove RabbitMQ config settings Since we have removed RabbitMQ as a message broker, we would also like to remove the settings for it in the `settings/common.py`.
[ { "content": "\"\"\"\nDjango settings for evalai project.\n\nGenerated by 'django-admin startproject' using Django 1.10.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.10/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/...
[ { "content": "\"\"\"\nDjango settings for evalai project.\n\nGenerated by 'django-admin startproject' using Django 1.10.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.10/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/...
diff --git a/docker/dev/docker.env b/docker/dev/docker.env index 0d3c602854..63c0335239 100644 --- a/docker/dev/docker.env +++ b/docker/dev/docker.env @@ -10,5 +10,3 @@ POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres POSTGRES_HOST=db POSTGRES_PORT=5432 - -RABBITMQ_HOST=rabbitmq diff --git a/docs/source/faq(develop...
tournesol-app__tournesol-1713
[feat] Make `exclude_compared` configurable in user settings
[ { "content": "from django.utils.translation import gettext_lazy as _\nfrom rest_framework import serializers\nfrom rest_framework.serializers import ValidationError\n\nfrom tournesol.models.poll import Poll\nfrom tournesol.utils.video_language import ACCEPTED_LANGUAGE_CODES\n\n\nclass GeneralUserSettingsSeriali...
[ { "content": "from django.utils.translation import gettext_lazy as _\nfrom rest_framework import serializers\nfrom rest_framework.serializers import ValidationError\n\nfrom tournesol.models.poll import Poll\nfrom tournesol.utils.video_language import ACCEPTED_LANGUAGE_CODES\n\n\nclass GeneralUserSettingsSeriali...
diff --git a/backend/core/serializers/user_settings.py b/backend/core/serializers/user_settings.py index 720586872d..0a6d3276f2 100644 --- a/backend/core/serializers/user_settings.py +++ b/backend/core/serializers/user_settings.py @@ -94,6 +94,7 @@ class VideosPollUserSettingsSerializer(GenericPollUserSettingsSerialize...
medtagger__MedTagger-401
Error indicator when logging in or registering went wrong ## Current Behaviour - currently, only error icon is displayed when something went wrong during logging in or registering new account ## Expected Behaviour - an error message should be displayed next to the error icon, so that user knows what went wrong ...
[ { "content": "\"\"\"Module responsible for business logic in all Auth endpoint.\"\"\"\nfrom medtagger.api import InvalidArgumentsException\nfrom medtagger.api.security import hash_password, verify_user_password, generate_auth_token\nfrom medtagger.database.models import User\nfrom medtagger.repositories import ...
[ { "content": "\"\"\"Module responsible for business logic in all Auth endpoint.\"\"\"\nfrom medtagger.api import InvalidArgumentsException\nfrom medtagger.api.security import hash_password, verify_user_password, generate_auth_token\nfrom medtagger.database.models import User\nfrom medtagger.repositories import ...
diff --git a/backend/medtagger/api/auth/business.py b/backend/medtagger/api/auth/business.py index eac4c807..853d5e04 100644 --- a/backend/medtagger/api/auth/business.py +++ b/backend/medtagger/api/auth/business.py @@ -17,7 +17,7 @@ def create_user(email: str, password: str, first_name: str, last_name: str) -> i "...
Mailu__Mailu-2923
IMAP container error on reboot <!-- Thank you for opening an issue with Mailu. Please understand that issues are meant for bugs and enhancement-requests. For **user-support questions**, reach out to us on [matrix](https://matrix.to/#/#mailu:tedomum.net). To be able to help you best, we need some more informatio...
[ { "content": "import hmac\nimport logging as log\nimport os\nimport sys\nimport re\nfrom pwd import getpwnam\nimport socket\nimport tenacity\n\n@tenacity.retry(stop=tenacity.stop_after_attempt(100),\n wait=tenacity.wait_random(min=2, max=5))\ndef resolve_hostname(hostname):\n \"\"\" This funct...
[ { "content": "import hmac\nimport logging as log\nimport os\nimport sys\nimport re\nfrom pwd import getpwnam\nimport socket\nimport tenacity\n\n@tenacity.retry(stop=tenacity.stop_after_attempt(100),\n wait=tenacity.wait_random(min=2, max=5))\ndef resolve_hostname(hostname):\n \"\"\" This funct...
diff --git a/core/base/libs/socrate/socrate/system.py b/core/base/libs/socrate/socrate/system.py index 23cfcdaad..e80863b83 100644 --- a/core/base/libs/socrate/socrate/system.py +++ b/core/base/libs/socrate/socrate/system.py @@ -97,6 +97,8 @@ def set_env(required_secrets=[], log_filters=[], log_file=None): for sec...
Lightning-AI__torchmetrics-2364
Custom callable is ignored in retrieval metric aggregation ## 🐛 Bug When passing a custom aggregation to any `RetrievalMetric`, the callable is ignored. There is a bug in the retrieval aggregation function that defaults to using the maximum of the values by default https://github.com/Lightning-AI/torchmetrics/blob/...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
diff --git a/CHANGELOG.md b/CHANGELOG.md index bda673c0467..742b90749b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed cached network in `FeatureShare` not being moved to the correct device ([#2348](https://github....
wagtail__wagtail-7538
Preview error when using StreamField with EditHandler on per-request basis ### Issue Summary We're using `EditHandler`s, which show/hide fields depending on the user's permission. This is based on the example in wagtail's tests (see https://github.com/wagtail/wagtail/blob/main/wagtail/tests/testapp/models.py#L1418)....
[ { "content": "from time import time\n\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import PermissionDenied\nfrom django.http import Http404, JsonResponse\nfrom django.http.request import QueryDict\nfrom django.shortcuts import get_object_or_404\nfrom django.template.r...
[ { "content": "from time import time\n\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import PermissionDenied\nfrom django.http import Http404, JsonResponse\nfrom django.http.request import QueryDict\nfrom django.shortcuts import get_object_or_404\nfrom django.template.r...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ab0617bdd822..a889c290600b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -45,6 +45,7 @@ Changelog * Fix: Page history now works correctly when it contains changes by a deleted user (Dan Braghis) * Fix: Add `gettext_lazy` to `ModelAdmin` built in view titles so th...
zestedesavoir__zds-site-2259
Plus de pagination dans la liste des membres Url incriminée : http://beta.zestedesavoir.com/membres/ On ne voit que 100 membres inscrit, alors qu'il y'en a plus.
[ { "content": "# coding: utf-8\n\nfrom django.views.generic import ListView\nfrom django.views.generic.list import MultipleObjectMixin\n\nfrom zds.settings import ZDS_APP\n\n\nclass ZdSPagingListView(ListView):\n def get_context_data(self, **kwargs):\n \"\"\"\n Get the context for this view. Thi...
[ { "content": "# coding: utf-8\n\nfrom django.views.generic import ListView\nfrom django.views.generic.list import MultipleObjectMixin\n\nfrom zds.settings import ZDS_APP\n\n\nclass ZdSPagingListView(ListView):\n def get_context_data(self, **kwargs):\n \"\"\"\n Get the context for this view. Thi...
diff --git a/zds/utils/paginator.py b/zds/utils/paginator.py index 1642cb9884..cac7eb7d38 100644 --- a/zds/utils/paginator.py +++ b/zds/utils/paginator.py @@ -17,7 +17,6 @@ def get_context_data(self, **kwargs): context_object_name = self.get_context_object_name(queryset) paginator, page, queryset, is_...
Cog-Creators__Red-DiscordBot-1693
[V3 Downloader] cog list lists too much # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name `cog list` #### What cog is this command from? Downloader #### What were you expecting to happen? List available cogs from provided Repo #### What actu...
[ { "content": "import asyncio\nimport functools\nimport os\nimport pkgutil\nimport shutil\nfrom concurrent.futures import ThreadPoolExecutor\nfrom pathlib import Path\nfrom subprocess import run as sp_run, PIPE\nfrom sys import executable\nfrom typing import Tuple, MutableMapping, Union\n\nfrom discord.ext impor...
[ { "content": "import asyncio\nimport functools\nimport os\nimport pkgutil\nimport shutil\nfrom concurrent.futures import ThreadPoolExecutor\nfrom pathlib import Path\nfrom subprocess import run as sp_run, PIPE\nfrom sys import executable\nfrom typing import Tuple, MutableMapping, Union\n\nfrom discord.ext impor...
diff --git a/redbot/cogs/downloader/repo_manager.py b/redbot/cogs/downloader/repo_manager.py index e6c47b9b1bc..bdd91a69ceb 100644 --- a/redbot/cogs/downloader/repo_manager.py +++ b/redbot/cogs/downloader/repo_manager.py @@ -155,7 +155,8 @@ def _update_available_modules(self) -> Tuple[str]: for file_finder, na...
CTFd__CTFd-1505
override_template throwing a 500 error **Environment**: - CTFd Version/Commit: 2.5.0 - Operating System: Mac OS Mojave - Web Browser and Version: Google Chrome Version 83.0.4103.106 **What happened?** Bug/issue using the "override_template" function, inside the __init.py__ file for a plugin, from CTFD.pl...
[ { "content": "import datetime\nimport os\nimport sys\nimport weakref\nfrom distutils.version import StrictVersion\n\nfrom flask import Flask, Request\nfrom flask_migrate import upgrade\nfrom jinja2 import FileSystemLoader\nfrom jinja2.sandbox import SandboxedEnvironment\nfrom six.moves import input\nfrom werkze...
[ { "content": "import datetime\nimport os\nimport sys\nimport weakref\nfrom distutils.version import StrictVersion\n\nfrom flask import Flask, Request\nfrom flask_migrate import upgrade\nfrom jinja2 import FileSystemLoader\nfrom jinja2.sandbox import SandboxedEnvironment\nfrom six.moves import input\nfrom werkze...
diff --git a/CTFd/__init__.py b/CTFd/__init__.py index 6c199bdfe..ce1515025 100644 --- a/CTFd/__init__.py +++ b/CTFd/__init__.py @@ -110,7 +110,7 @@ def __init__(self, searchpath, encoding="utf-8", followlinks=False): def get_source(self, environment, template): # Check if the template has been overriden ...
scikit-hep__pyhf-1819
`pyhf json2xml` requires parameter inits ### Summary When converting a workspace via `pyhf json2xml`, the model config seems to rely on the presence of parameter inits, even though the spec does not strictly require them. ### OS / Environment ```console n/a ``` ### Steps to Reproduce workspace: ```json { "...
[ { "content": "import logging\n\nfrom pathlib import Path\nimport shutil\nimport xml.etree.ElementTree as ET\nimport numpy as np\n\nimport uproot\n\nfrom pyhf.mixins import _ChannelSummaryMixin\nfrom pyhf.schema import path as schema_path\n\n_ROOT_DATA_FILE = None\n\nlog = logging.getLogger(__name__)\n\n__all__ ...
[ { "content": "import logging\n\nfrom pathlib import Path\nimport shutil\nimport xml.etree.ElementTree as ET\nimport numpy as np\n\nimport uproot\n\nfrom pyhf.mixins import _ChannelSummaryMixin\nfrom pyhf.schema import path as schema_path\n\n_ROOT_DATA_FILE = None\n\nlog = logging.getLogger(__name__)\n\n__all__ ...
diff --git a/src/pyhf/writexml.py b/src/pyhf/writexml.py index fb118f5b81..3eaa1c1d32 100644 --- a/src/pyhf/writexml.py +++ b/src/pyhf/writexml.py @@ -178,8 +178,8 @@ def build_modifier(spec, modifierspec, channelname, samplename, sampledata): high = 10 for p in spec['measurements'][0]['config']['para...
plone__Products.CMFPlone-3585
Site title entered in the @@plone-addsite form is not set as site title Plone site title is set in the @@site-controlpanel form and saved in the registry. But the @@plone-addsite form gets the site title from the user and saves it as a Zope property in the portal object. Related to https://github.com/plone/plone.a...
[ { "content": "from logging import getLogger\nfrom plone.registry.interfaces import IRegistry\nfrom Products.CMFPlone import PloneMessageFactory as _\nfrom Products.CMFPlone.events import SiteManagerCreatedEvent\nfrom plone.base.interfaces import INonInstallable\nfrom Products.CMFPlone.Portal import PloneSite\nf...
[ { "content": "from logging import getLogger\nfrom plone.registry.interfaces import IRegistry\nfrom Products.CMFPlone import PloneMessageFactory as _\nfrom Products.CMFPlone.events import SiteManagerCreatedEvent\nfrom plone.base.interfaces import INonInstallable\nfrom Products.CMFPlone.Portal import PloneSite\nf...
diff --git a/Products/CMFPlone/factory.py b/Products/CMFPlone/factory.py index 6249a3bf43..550784c1a0 100644 --- a/Products/CMFPlone/factory.py +++ b/Products/CMFPlone/factory.py @@ -149,6 +149,7 @@ def addPloneSite(context, site_id, title='Plone site', description='', reg['plone.available_timezones'] = [porta...