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
⌀
getsentry__sentry-18846
Possible to sort by User? Hi, in Sentry i can sort by First Seen, Frequency, etc. but i cannot sort by user. I know, detecting unique users can be hard, but the numbers are there already, when i can sort by user it would give me at least some hint how many people are affected. A bug that happened for 10k users once ...
[ { "content": "from __future__ import absolute_import\n\nfrom abc import ABCMeta, abstractmethod, abstractproperty\n\nimport logging\nimport time\nimport six\nimport sentry_sdk\nfrom datetime import timedelta\nfrom hashlib import md5\n\nfrom django.utils import timezone\n\nfrom sentry import options\nfrom sentry...
[ { "content": "from __future__ import absolute_import\n\nfrom abc import ABCMeta, abstractmethod, abstractproperty\n\nimport logging\nimport time\nimport six\nimport sentry_sdk\nfrom datetime import timedelta\nfrom hashlib import md5\n\nfrom django.utils import timezone\n\nfrom sentry import options\nfrom sentry...
diff --git a/src/sentry/search/snuba/executors.py b/src/sentry/search/snuba/executors.py index 92a65173446225..aa0edb7c9d55bf 100644 --- a/src/sentry/search/snuba/executors.py +++ b/src/sentry/search/snuba/executors.py @@ -235,6 +235,7 @@ class PostgresSnubaQueryExecutor(AbstractQueryExecutor): "freq": "times_...
translate__pootle-4087
Elasticsearch 1.7.0 breaks Pootle if ES not set up With `elasticsearch==1.7.0` doing `es.ping()` on a not-setup server raises `ConnectionError`. This breaks the default install here: https://github.com/translate/pootle/blob/master/pootle/core/search/backends/elasticsearch.py#L29 Elasticsearch 1.7.0 breaks Pootle if ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship informa...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship informa...
diff --git a/pootle/core/search/backends/elasticsearch.py b/pootle/core/search/backends/elasticsearch.py index 02e2b6a23de..11668054a12 100644 --- a/pootle/core/search/backends/elasticsearch.py +++ b/pootle/core/search/backends/elasticsearch.py @@ -13,6 +13,7 @@ try: from elasticsearch import Elasticsearch + ...
comic__grand-challenge.org-2098
Syntax highlighting for GC It would be nice, especially for the documentation pages, to enable syntax highlighting. The Markdown editor we use already produces the correct html tags (`''''python` is correctly translated to `<pre><code class="language-python"> ... </code></pre>` Getting the syntax highlighting to...
[ { "content": "from markdown import Extension\nfrom markdown.treeprocessors import Treeprocessor\n\n\nclass BS4Extension(Extension):\n def extendMarkdown(self, md): # noqa: N802\n md.registerExtension(self)\n md.treeprocessors.register(BS4Treeprocessor(md), \"bs4_extension\", 0)\n\n\nclass BS4T...
[ { "content": "from markdown import Extension\nfrom markdown.treeprocessors import Treeprocessor\n\n\nclass BS4Extension(Extension):\n def extendMarkdown(self, md): # noqa: N802\n md.registerExtension(self)\n md.treeprocessors.register(BS4Treeprocessor(md), \"bs4_extension\", 0)\n\n\nclass BS4T...
diff --git a/app/config/settings.py b/app/config/settings.py index 06e1300c68..857801062c 100644 --- a/app/config/settings.py +++ b/app/config/settings.py @@ -680,6 +680,7 @@ def strtobool(val) -> bool: "markdown.extensions.fenced_code", "markdown.extensions.tables", "markdown.extensions.sane_lists", + ...
pallets__werkzeug-2721
long host header with port fails idna encoding Request from a service with hostname longer than 64 characters fails with obscure HTTP:400 error. Hi, i have a Flask App running on a Kubernetes cluster and the app is behind a Kubernetes service, which has quite long name (~60 chars); After i upgraded the Flask fro...
[ { "content": "from __future__ import annotations\n\nimport typing as t\nimport warnings\nfrom pprint import pformat\nfrom threading import Lock\nfrom urllib.parse import quote\nfrom urllib.parse import urljoin\nfrom urllib.parse import urlunsplit\n\nfrom .._internal import _get_environ\nfrom .._internal import ...
[ { "content": "from __future__ import annotations\n\nimport typing as t\nimport warnings\nfrom pprint import pformat\nfrom threading import Lock\nfrom urllib.parse import quote\nfrom urllib.parse import urljoin\nfrom urllib.parse import urlunsplit\n\nfrom .._internal import _get_environ\nfrom .._internal import ...
diff --git a/CHANGES.rst b/CHANGES.rst index 49d045667..eb262fb63 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,6 +8,8 @@ Unreleased - Python 3.12 compatibility. :issue:`2704` - Fix handling of invalid base64 values in ``Authorization.from_header``. :issue:`2717` - The debugger escapes the exception message...
boto__boto-3045
boto.vpc.routetable.Route does not contain route origin RouteSet responses will contain an origin for each route, but boto.vpc.routetable.Route is not populated with the route origin: Example response before: ``` In [8]: vars(all_route_tables[1].routes[1]) Out[8]: {'destination_cidr_block': u'0.0.0.0/0', 'gateway_id...
[ { "content": "# Copyright (c) 2009-2010 Mitch Garnaat http://garnaat.org/\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitation ...
[ { "content": "# Copyright (c) 2009-2010 Mitch Garnaat http://garnaat.org/\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitation ...
diff --git a/boto/vpc/routetable.py b/boto/vpc/routetable.py index 21060ee945..d464e2ed51 100644 --- a/boto/vpc/routetable.py +++ b/boto/vpc/routetable.py @@ -70,6 +70,7 @@ def __init__(self, connection=None): self.interface_id = None self.vpc_peering_connection_id = None self.state = None + ...
google-research__text-to-text-transfer-transformer-315
rate_num_examples Doesn't work with new tasks Hi, I am training new mixture tasks (new tasks from tsv files), but it only works with "default_rate=1.0". When I try to use "default_rate=rate_num_examples", it doesn't work because it can't find the tasks in the cache. In issue #15 you mentioned the cache is only s...
[ { "content": "# Copyright 2020 The T5 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 appl...
[ { "content": "# Copyright 2020 The T5 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 appl...
diff --git a/t5/data/utils.py b/t5/data/utils.py index 4ebadb6f..19434d36 100644 --- a/t5/data/utils.py +++ b/t5/data/utils.py @@ -1032,10 +1032,20 @@ def filter_features(ex): @gin.configurable -def rate_num_examples(task, maximum=None, temperature=1.0, scale=1.0): +def rate_num_examples( + task, maximum=None, ...
jupyterhub__jupyterhub-195
No such file or directory: 'configurable-http-proxy' I tried out jupyterhub 0.1 today and got the following exception: ``` [I 2015-03-17 13:10:37.737 JupyterHub app:509] Loading cookie_secret from /Volumes/Raptor/jupyterhub_cookie_secret [W 2015-03-17 13:10:37.765 JupyterHub app:245] Generating CONFIGPROXY_AUTH_T...
[ { "content": "#!/usr/bin/env python\n\"\"\"The multi-user notebook application\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport atexit\nimport binascii\nimport logging\nimport os\nimport signal\nimport socket\nimport sys\nfrom datetime impo...
[ { "content": "#!/usr/bin/env python\n\"\"\"The multi-user notebook application\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport atexit\nimport binascii\nimport logging\nimport os\nimport signal\nimport socket\nimport sys\nfrom datetime impo...
diff --git a/jupyterhub/app.py b/jupyterhub/app.py index 90a6a8fd45..78b1f4ab85 100644 --- a/jupyterhub/app.py +++ b/jupyterhub/app.py @@ -732,7 +732,15 @@ def start_proxy(self): cmd.extend(['--ssl-cert', self.ssl_cert]) self.log.info("Starting proxy @ %s", self.proxy.public_server.url) s...
python-pillow__Pillow-1649
ImageSequence.Iterator name is misleading Hi Pillow developers, I found this error message to be rather hilarious: ``` TypeError: 'Iterator' object is not an iterator ``` which was produced by this code: ``` python from PIL import Image, ImageSequence with Image.open('multipage.tiff', mode='r') as tif: i = Ima...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# sequence support classes\n#\n# history:\n# 1997-02-20 fl Created\n#\n# Copyright (c) 1997 by Secret Labs AB.\n# Copyright (c) 1997 by Fredrik Lundh.\n#\n# See the README file for information on usage and redistribution.\n#\n\n##\n\n\nclass Iterato...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# sequence support classes\n#\n# history:\n# 1997-02-20 fl Created\n#\n# Copyright (c) 1997 by Secret Labs AB.\n# Copyright (c) 1997 by Fredrik Lundh.\n#\n# See the README file for information on usage and redistribution.\n#\n\n##\n\n\nclass Iterato...
diff --git a/PIL/ImageSequence.py b/PIL/ImageSequence.py index 256bcbedb35..76bc2d8260e 100644 --- a/PIL/ImageSequence.py +++ b/PIL/ImageSequence.py @@ -32,6 +32,7 @@ def __init__(self, im): if not hasattr(im, "seek"): raise AttributeError("im must have seek method") self.im = im + ...
Gallopsled__pwntools-2202
Connecting to remote broken in sagemath Connecting to a target using `remote` fails in sage since we [don't convert the port to int](https://github.com/Gallopsled/pwntools/commit/3e4d4a2115348814141859adc82c63be9c500a81 ) anymore in 4.8.0. ``` $ sage ┌───────────────────────────────────────────────────────────────...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import division\n\nimport errno\nimport socket\n\nfrom pwnlib.context import context\nfrom pwnlib.log import getLogger\nfrom pwnlib.timeout import Timeout\nfrom pwnlib.tubes.sock import sock\n\nlog = getLogger(__name__)\n\nclass listen(sock):...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import division\n\nimport errno\nimport socket\n\nfrom pwnlib.context import context\nfrom pwnlib.log import getLogger\nfrom pwnlib.timeout import Timeout\nfrom pwnlib.tubes.sock import sock\n\nlog = getLogger(__name__)\n\nclass listen(sock):...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f7422b52..b678f87c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -67,8 +67,9 @@ The table below shows which release corresponds to each branch, and what date th | [2.2.0](#220) | | Jan 5, 2015 ## 4.12.0 (`dev`) +- [#2202][2202] Fix `remote` and `listen`...
tiangolo__fastapi-637
JSON output reordered by pydantic @validator This isn't a big problem, but I'm wondering if it's possible to keep the JSON output key ordering unaffected by the presence of a Pydantic `@validator(...)`? I like consistency. 🤷‍♂️ I have this pydantic model structure: ``` class IngredientBase(BaseIngredientMixin): ...
[ { "content": "import re\nfrom dataclasses import is_dataclass\nfrom typing import Any, Dict, List, Sequence, Set, Type, cast\n\nfrom fastapi import routing\nfrom fastapi.openapi.constants import REF_PREFIX\nfrom pydantic import BaseConfig, BaseModel, Schema, create_model\nfrom pydantic.fields import Field\nfrom...
[ { "content": "import re\nfrom dataclasses import is_dataclass\nfrom typing import Any, Dict, List, Sequence, Set, Type, cast\n\nfrom fastapi import routing\nfrom fastapi.openapi.constants import REF_PREFIX\nfrom pydantic import BaseConfig, BaseModel, Schema, create_model\nfrom pydantic.fields import Field\nfrom...
diff --git a/fastapi/utils.py b/fastapi/utils.py index 8cb0ec123b377..9e4210f86ef84 100644 --- a/fastapi/utils.py +++ b/fastapi/utils.py @@ -59,12 +59,11 @@ def create_cloned_field(field: Field) -> Field: if lenient_issubclass(original_type, BaseModel): original_type = cast(Type[BaseModel], original_type)...
encode__starlette-439
Serve Simple Page App (angular) on root alongside a backend on starlette Hello, I'm developing an angular (7)+ starlette api backend and I would like to make starlette serve the angular app alongside with the api. I know that I could use ngnix to serve it but I would like to try to deploy just one server. Also I have...
[ { "content": "import asyncio\nimport inspect\nimport re\nimport typing\nfrom enum import Enum\n\nfrom starlette.concurrency import run_in_threadpool\nfrom starlette.convertors import CONVERTOR_TYPES, Convertor\nfrom starlette.datastructures import URL, Headers, URLPath\nfrom starlette.exceptions import HTTPExce...
[ { "content": "import asyncio\nimport inspect\nimport re\nimport typing\nfrom enum import Enum\n\nfrom starlette.concurrency import run_in_threadpool\nfrom starlette.convertors import CONVERTOR_TYPES, Convertor\nfrom starlette.datastructures import URL, Headers, URLPath\nfrom starlette.exceptions import HTTPExce...
diff --git a/starlette/datastructures.py b/starlette/datastructures.py index a17085f72..e7259da1e 100644 --- a/starlette/datastructures.py +++ b/starlette/datastructures.py @@ -568,7 +568,7 @@ def __delitem__(self, key: str) -> None: pop_indexes.append(idx) for idx in reversed(pop_indexes): ...
voxel51__fiftyone-575
Tweak code literal formatting in docs tables There are a couple small issues with how code literals are rendered in tables in the docs: For example, this code from the user guide https://github.com/voxel51/fiftyone/blob/develop/docs/source/user_guide/using_datasets.rst#default-fields yields the following: <img w...
[ { "content": "\"\"\"\nMixins and helpers for sample backing documents.\n\n| Copyright 2017-2020, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nfrom collections import OrderedDict\nfrom functools import wraps\nimport json\nimport numbers\nimport six\n\nfrom bson import json_util\nfrom bson.b...
[ { "content": "\"\"\"\nMixins and helpers for sample backing documents.\n\n| Copyright 2017-2020, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nfrom collections import OrderedDict\nfrom functools import wraps\nimport json\nimport numbers\nimport six\n\nfrom bson import json_util\nfrom bson.b...
diff --git a/docs/source/_static/css/custom.css b/docs/source/_static/css/custom.css index ceb1ee4ea71..c4b08bb51a6 100644 --- a/docs/source/_static/css/custom.css +++ b/docs/source/_static/css/custom.css @@ -34,10 +34,6 @@ article.pytorch-article .wy-table-responsive table thead th { padding-bottom: 0rem; } -.wy...
ansible__ansible-lint-243
UnicodeEncodeError on non-ascii characters # Issue Type - Bug report # Ansible and Ansible Lint details ``` ansible 2.2.1.0 ansible-lint 3.4.10 ``` - ansible installation method: pip - ansible-lint installation method: pip # Desired Behaviour ansible-lint should handle non-ascii characters without f...
[ { "content": "# Copyright (c) 2013-2014 Will Thames <will@thames.id.au>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the r...
[ { "content": "# Copyright (c) 2013-2014 Will Thames <will@thames.id.au>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the r...
diff --git a/lib/ansiblelint/utils.py b/lib/ansiblelint/utils.py index 529a6f1158..54086f9abe 100644 --- a/lib/ansiblelint/utils.py +++ b/lib/ansiblelint/utils.py @@ -439,10 +439,10 @@ def task_to_str(task): if name: return name action = task.get("action") - args = " " .join(["{0}={1}".format(k, v...
fossasia__open-event-server-5247
Inconsistent data on Admin Statistics end points **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-server **Current behavio...
[ { "content": "from marshmallow_jsonapi.flask import Schema\nfrom marshmallow_jsonapi import fields\nfrom app.models.event import Event\nfrom app.api.helpers.db import get_count\nfrom app.api.helpers.utilities import dasherize\nfrom datetime import datetime\nimport pytz\n\n\nclass AdminStatisticsEventSchema(Sche...
[ { "content": "from marshmallow_jsonapi.flask import Schema\nfrom marshmallow_jsonapi import fields\nfrom app.models.event import Event\nfrom app.api.helpers.db import get_count\nfrom app.api.helpers.utilities import dasherize\nfrom datetime import datetime\nimport pytz\n\n\nclass AdminStatisticsEventSchema(Sche...
diff --git a/app/api/schema/admin_statistics_schema/events.py b/app/api/schema/admin_statistics_schema/events.py index c3bfe01fb0..7794db3e40 100644 --- a/app/api/schema/admin_statistics_schema/events.py +++ b/app/api/schema/admin_statistics_schema/events.py @@ -25,10 +25,12 @@ class Meta: past = fields.Method("ev...
mindspore-lab__mindnlp-107
"Trainer" doesn't take into account the case that "loss_fn" doesn't need to be passed in. "Trainer" does not take into account the case where "loss" is already defined in the model, and there is no need to pass "loss_fn" to "Trainer".
[ { "content": "# Copyright 2022 Huawei Technologies Co., Ltd\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless require...
[ { "content": "# Copyright 2022 Huawei Technologies Co., Ltd\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless require...
diff --git a/mindnlp/engine/trainer.py b/mindnlp/engine/trainer.py index 4c4746dde..e606a89e2 100644 --- a/mindnlp/engine/trainer.py +++ b/mindnlp/engine/trainer.py @@ -167,7 +167,14 @@ def forward_fn(inputs, labels): return_list = (loss,) + logits_list return return_list - grad_fn = ...
codespell-project__codespell-600
--skip function not always working correctly codespell 1.12.0.dev0 Running `codespell -q 3 --skip="./src/translator_*"` on https://github.com/doxygen/doxygen does not filter out the ./src/translator_(country-code) files. See snippet: ``` ./src/translator_fr.h:1089: rouge ==> rogue ./src/translator_fr.h:1098: r...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful...
diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index 75a5733ac3..3c0890684e 100755 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py @@ -631,9 +631,11 @@ def main(*args): del dirs[:] continue for file_ in files: - ...
ultrabug__py3status-1615
mpd_status 'max_width' ineffective - **Archlinux** - **py3status version 3.15** - **python-mpd2 version 1.0.0-2** - **window manager 'sway-git' (same with i3)** New to py3status, coming from i3blocks where I had a script to limit the output of characters to a set length. Using mpd_status module in py3status, I s...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nDisplay song currently playing in mpd.\n\nConfiguration parameters:\n cache_timeout: how often we refresh this module in seconds (default 2)\n format: template string (see below)\n (default '{state} [[[{artist}] - {title}]|[{file}]]')\n hide_on_erro...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nDisplay song currently playing in mpd.\n\nConfiguration parameters:\n cache_timeout: how often we refresh this module in seconds (default 2)\n format: template string (see below)\n (default '{state} [[[{artist}] - {title}]|[{file}]]')\n hide_on_erro...
diff --git a/py3status/modules/mpd_status.py b/py3status/modules/mpd_status.py index bd56a17ed3..191581eceb 100644 --- a/py3status/modules/mpd_status.py +++ b/py3status/modules/mpd_status.py @@ -66,6 +66,7 @@ import datetime import re import socket +from py3status.composite import Composite from mpd import MPDClien...
Lightning-AI__pytorch-lightning-715
Fitting with log_gpu_memory=True fails in python3.6. ## Bug Fitting with `log_gpu_memory=True` in the Trainer fails in python3.6 version. ### To Reproduce 1. Use python3.6 version 2. Create any trainer with `log_gpu_memory=True` option. 3. Then fit it. 3. See error: ``` /a/pytorch-lightning/pytorch_ligh...
[ { "content": "'''\nGenerates a summary of a model's layers and dimensionality\n'''\n\nimport gc\nimport os\nimport subprocess\n\nimport numpy as np\nimport pandas as pd\nimport torch\nimport logging\n\n\nclass ModelSummary(object):\n\n def __init__(self, model, mode='full'):\n '''\n Generates s...
[ { "content": "'''\nGenerates a summary of a model's layers and dimensionality\n'''\n\nimport gc\nimport os\nimport subprocess\nfrom subprocess import PIPE\n\nimport numpy as np\nimport pandas as pd\nimport torch\nimport logging\n\n\nclass ModelSummary(object):\n\n def __init__(self, model, mode='full'):\n ...
diff --git a/pytorch_lightning/core/memory.py b/pytorch_lightning/core/memory.py index 1abc349e1ef21..b6c2dcdb07064 100644 --- a/pytorch_lightning/core/memory.py +++ b/pytorch_lightning/core/memory.py @@ -5,6 +5,7 @@ import gc import os import subprocess +from subprocess import PIPE import numpy as np import pan...
coala__coala-2760
Don't suggest -L DEBUG, use -V instead in some cases we tell users to use -L DEBUG, not sure if --verbose is easier to understand and also type
[ { "content": "import traceback\nfrom functools import partial\nfrom os import makedirs\nfrom os.path import join, abspath, exists\nfrom shutil import copyfileobj\nfrom urllib.request import urlopen\n\nfrom appdirs import user_data_dir\n\nfrom pyprint.Printer import Printer\n\nfrom coala_utils.decorators import ...
[ { "content": "import traceback\nfrom functools import partial\nfrom os import makedirs\nfrom os.path import join, abspath, exists\nfrom shutil import copyfileobj\nfrom urllib.request import urlopen\n\nfrom appdirs import user_data_dir\n\nfrom pyprint.Printer import Printer\n\nfrom coala_utils.decorators import ...
diff --git a/circle.yml b/circle.yml index 50b804f9bc..9e968df219 100644 --- a/circle.yml +++ b/circle.yml @@ -18,7 +18,7 @@ test: - pip install coala-bears colorama==0.3.6 --pre -U: parallel: true timeout: 900 # Allow 15 mins - - coala-ci -L DEBUG: + - coala-ci -V: parallel: true...
biopython__biopython-1034
UniProt-XML parsing fullName as description ## Error Description UniProt-XML **descriptions** are not properly parsed by **SeqIO**. Parsing the entries below does not provide a description for the protein **D4VF52**. ## How to Reproduce wget [http://www.uniprot.org/uniprot/R5HY77.xml](url) wget [http://www.unipr...
[ { "content": "# Copyright 2010 by Andrea Pierleoni\n# Revisions copyright 2010, 2016 by Peter Cock\n# All rights reserved.\n#\n# This code is part of the Biopython distribution and governed by its\n# license. Please see the LICENSE file that should have been included\n# as part of this package.\n\n\"\"\"Bio.Se...
[ { "content": "# Copyright 2010 by Andrea Pierleoni\n# Revisions copyright 2010, 2016 by Peter Cock\n# All rights reserved.\n#\n# This code is part of the Biopython distribution and governed by its\n# license. Please see the LICENSE file that should have been included\n# as part of this package.\n\n\"\"\"Bio.Se...
diff --git a/Bio/SeqIO/UniprotIO.py b/Bio/SeqIO/UniprotIO.py index f34fcc253fa..07e5873890d 100644 --- a/Bio/SeqIO/UniprotIO.py +++ b/Bio/SeqIO/UniprotIO.py @@ -113,7 +113,7 @@ def _parse_protein(element): """Parse protein names (PRIVATE).""" descr_set = False for protein_element ...
spack__spack-25831
spack checksum prefers version-specific url over global url <!-- Explain, in a clear and concise way, the command you ran and the result you were trying to achieve. Example: "I ran `spack find` to list all the installed packages and ..." --> I wanted to update `py-setuptools-rust` to the newest version and ran into...
[ { "content": "# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom __future__ import print_function\n\nimport argparse\n\nimport llnl.util.tty as tty\n\nimpo...
[ { "content": "# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom __future__ import print_function\n\nimport argparse\n\nimport llnl.util.tty as tty\n\nimpo...
diff --git a/lib/spack/spack/cmd/checksum.py b/lib/spack/spack/cmd/checksum.py index 5f27f9d174f64d..96e36b39b65c38 100644 --- a/lib/spack/spack/cmd/checksum.py +++ b/lib/spack/spack/cmd/checksum.py @@ -63,6 +63,16 @@ def checksum(parser, args): if not url_dict: tty.die("Could not find any version...
aws__aws-cli-4231
Check if AWS::Include location is a string before packacing. Fixes #4087 Fixes #4087 If the value of Location in AWS::Include is *not* a string, we should skip packaging it. This can happen if customers use, say, an intrinsic function to construct the Include location: Example: ``` AWS::Include: Location:...
[ { "content": "#!/usr/bin/env python\nimport codecs\nimport os.path\nimport re\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n return codecs.open(os.path.join(here, *parts), 'r').read()\n\n\ndef find_version(*file_paths...
[ { "content": "#!/usr/bin/env python\nimport codecs\nimport os.path\nimport re\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n return codecs.open(os.path.join(here, *parts), 'r').read()\n\n\ndef find_version(*file_paths...
diff --git a/setup.cfg b/setup.cfg index 614227dab4b8..f147ca883473 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,6 +8,7 @@ requires-dist = colorama>=0.2.5,<=0.3.9 docutils>=0.10 rsa>=3.1.2,<=3.5.0 - PyYAML>=3.10,<=3.13 + PyYAML>=3.10,<=3.13; python_version=="2.6" + PyYAML...
mlflow__mlflow-11722
[BUG]mlflow.log_input will export dataset to json and import dataset again ### Issues Policy acknowledgement - [X] I have read and agree to submit bug reports in accordance with the [issues policy](https://www.github.com/mlflow/mlflow/blob/master/ISSUE_POLICY.md) ### Where did you encounter this bug? Local machine ...
[ { "content": "import json\nfrom abc import abstractmethod\nfrom typing import Any, Dict, Optional\n\nfrom mlflow.data.dataset_source import DatasetSource\nfrom mlflow.entities import Dataset as DatasetEntity\n\n\nclass Dataset:\n \"\"\"\n Represents a dataset for use with MLflow Tracking, including the na...
[ { "content": "import json\nfrom abc import abstractmethod\nfrom typing import Any, Dict, Optional\n\nfrom mlflow.data.dataset_source import DatasetSource\nfrom mlflow.entities import Dataset as DatasetEntity\n\n\nclass Dataset:\n \"\"\"\n Represents a dataset for use with MLflow Tracking, including the na...
diff --git a/mlflow/data/dataset.py b/mlflow/data/dataset.py index 23e12fa0b79d1..eea0b5c8467eb 100644 --- a/mlflow/data/dataset.py +++ b/mlflow/data/dataset.py @@ -113,12 +113,12 @@ def _to_mlflow_entity(self) -> DatasetEntity: Returns: A `mlflow.entities.Dataset` instance representing the datase...
apluslms__a-plus-1372
API endpoint for batch fetching student points A+ has the following API endpoints for fetching points: `GET /courses/<course_id>/points/` - for fetching a list of students `GET /courses/<course_id>/points/<user_id>/` - for fetching the points of an individual student In Grades, we want to fetch points for all st...
[ { "content": "from aplus_auth.payload import Permission\nfrom django.core.exceptions import PermissionDenied\nfrom django.http.response import HttpResponse\nfrom django.utils import timezone\nfrom django.utils.translation import gettext_lazy as _\nfrom wsgiref.util import FileWrapper\nfrom rest_framework import...
[ { "content": "from aplus_auth.payload import Permission\nfrom django.core.exceptions import PermissionDenied\nfrom django.http.response import HttpResponse\nfrom django.utils import timezone\nfrom django.utils.translation import gettext_lazy as _\nfrom wsgiref.util import FileWrapper\nfrom rest_framework import...
diff --git a/exercise/api/views.py b/exercise/api/views.py index 9ad16ac73..66aafa870 100644 --- a/exercise/api/views.py +++ b/exercise/api/views.py @@ -26,7 +26,6 @@ OnlyCourseStaffPermission, ) from course.api.mixins import CourseResourceMixin -from course.api.serializers import StudentBriefSerializer from ex...
scverse__scanpy-2698
highly_variable_genes changing my data ### Please make sure these conditions are met - [ ] I have checked that this issue has not already been reported. - [ ] I have confirmed this bug exists on the latest version of scanpy. - [ ] (optional) I have confirmed this bug exists on the master branch of scanpy. ### W...
[ { "content": "import warnings\nfrom typing import Optional, Literal\nimport numpy as np\nimport pandas as pd\nimport scipy.sparse as sp_sparse\nfrom anndata import AnnData\n\n\nfrom .. import logging as logg\nfrom .._settings import settings, Verbosity\nfrom .._utils import sanitize_anndata, check_nonnegative_i...
[ { "content": "import warnings\nfrom typing import Optional, Literal\nimport numpy as np\nimport pandas as pd\nimport scipy.sparse as sp_sparse\nfrom anndata import AnnData\n\n\nfrom .. import logging as logg\nfrom .._settings import settings, Verbosity\nfrom .._utils import sanitize_anndata, check_nonnegative_i...
diff --git a/docs/release-notes/1.9.6.md b/docs/release-notes/1.9.6.md index b4bd868911..63fbe87644 100644 --- a/docs/release-notes/1.9.6.md +++ b/docs/release-notes/1.9.6.md @@ -5,4 +5,6 @@ - Allow {func}`scanpy.pl.scatter` to accept a {class}`str` palette name {pr}`2571` {smaller}`P Angerer` - Make {func}`scanpy....
googleapis__python-bigquery-257
Add require_partition_filter in bigquery.external_config.HivePartitioningOptions I want to force partition filters when user run queries on external tables that uses HivePartitioning. Please add property require_partition_filter within bigquery.external_config.HivePartitioningOptions() I tried using table.require...
[ { "content": "# Copyright 2017 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
[ { "content": "# Copyright 2017 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
diff --git a/google/cloud/bigquery/external_config.py b/google/cloud/bigquery/external_config.py index d702d9d83..112dfdba4 100644 --- a/google/cloud/bigquery/external_config.py +++ b/google/cloud/bigquery/external_config.py @@ -586,6 +586,21 @@ def source_uri_prefix(self): def source_uri_prefix(self, value): ...
oppia__oppia-9270
Typescript checks don't work on circle CI <!-- - Thanks for taking the time to report a bug in the Oppia project. - Before filing a new issue, please do a quick search to check that it hasn't - already been filed on the [issue tracker](https://github.com/oppia/oppia/issues)._ --> **Describe the bug** Ty...
[ { "content": "# Copyright 2019 The Oppia 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\n#\n...
[ { "content": "# Copyright 2019 The Oppia 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\n#\n...
diff --git a/scripts/typescript_checks.py b/scripts/typescript_checks.py index f47c60039920c..acf8f493e50fd 100644 --- a/scripts/typescript_checks.py +++ b/scripts/typescript_checks.py @@ -24,6 +24,7 @@ import sys import python_utils +from . import common COMPILED_JS_DIR = os.path.join('local_compiled_js_for_tes...
scrapy__scrapy-602
Allow sending HTML emails with scrapy.mail.MailSender I've patched this locally by changing the `send` method: ``` def send(self, to, subject, body, cc=None, attachs=(), mime='text/plain', _callback=None): if attachs: msg = MIMEMultipart() else: msg = MIMENonMultipart(*mime.split('/')) ``` But...
[ { "content": "\"\"\"\nMail sending helpers\n\nSee documentation in docs/topics/email.rst\n\"\"\"\nfrom cStringIO import StringIO\nfrom email.MIMEMultipart import MIMEMultipart\nfrom email.MIMENonMultipart import MIMENonMultipart\nfrom email.MIMEBase import MIMEBase\nfrom email.MIMEText import MIMEText\nfrom ema...
[ { "content": "\"\"\"\nMail sending helpers\n\nSee documentation in docs/topics/email.rst\n\"\"\"\nfrom cStringIO import StringIO\nfrom email.MIMEMultipart import MIMEMultipart\nfrom email.MIMENonMultipart import MIMENonMultipart\nfrom email.MIMEBase import MIMEBase\nfrom email.MIMEText import MIMEText\nfrom ema...
diff --git a/docs/topics/email.rst b/docs/topics/email.rst index a487299f1b8..2fc23472b31 100644 --- a/docs/topics/email.rst +++ b/docs/topics/email.rst @@ -76,7 +76,7 @@ uses `Twisted non-blocking IO`_, like the rest of the framework. :param settings: the e-mail recipients :type settings: :class:`scr...
ivy-llc__ivy-13814
lp_pool2d
[ { "content": "# global\n\n# local\nimport ivy\nfrom ivy import with_unsupported_dtypes\nfrom ivy.functional.frontends.tensorflow.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\ndef _broadcast_pooling_helper(x, pool_dims: str = \"2d\", name: str = \"padding\"):\n dims = {\"1d\": 1, \"2d\": 2, \"3d\...
[ { "content": "# global\n\n# local\nimport ivy\nfrom ivy import with_unsupported_dtypes\nfrom ivy.functional.frontends.tensorflow.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\ndef _broadcast_pooling_helper(x, pool_dims: str = \"2d\", name: str = \"padding\"):\n dims = {\"1d\": 1, \"2d\": 2, \"3d\...
diff --git a/ivy/functional/frontends/torch/nn/functional/pooling_functions.py b/ivy/functional/frontends/torch/nn/functional/pooling_functions.py index 545d6c5dc7258..df9c498206fa8 100644 --- a/ivy/functional/frontends/torch/nn/functional/pooling_functions.py +++ b/ivy/functional/frontends/torch/nn/functional/pooling_...
localstack__localstack-8264
bug: events.PutEvents fails with custom bus name using boto3 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior The LocalStack Docker image >=2.0.0 throws a 500 `InternalError` when calling the `events.PutEvents` operation via boto3 **with a custom event bus...
[ { "content": "import datetime\nimport ipaddress\nimport json\nimport logging\nimport os\nimport re\nimport time\nfrom typing import Any, Dict, List, Optional\n\nfrom moto.events.responses import EventsHandler as MotoEventsHandler\n\nfrom localstack import config\nfrom localstack.aws.accounts import get_aws_acco...
[ { "content": "import datetime\nimport ipaddress\nimport json\nimport logging\nimport os\nimport re\nimport time\nfrom typing import Any, Dict, List, Optional\n\nfrom moto.events.responses import EventsHandler as MotoEventsHandler\n\nfrom localstack import config\nfrom localstack.aws.accounts import get_aws_acco...
diff --git a/localstack/services/events/provider.py b/localstack/services/events/provider.py index cf43d3f9494dc..bbfb22e247dd7 100644 --- a/localstack/services/events/provider.py +++ b/localstack/services/events/provider.py @@ -511,11 +511,13 @@ def events_handler_put_events(self): for event_envelope in events: ...
pulp__pulpcore-4355
Compression monkeypatch is not always being loaded **Describe the bug** For whatever reason, the monkeypatch added in https://github.com/pulp/pulpcore/pull/3884 is not always loaded. I'm not 100% sure if it has to do with the order in which the files are loaded into the interpreter or some other detail, but we ne...
[ { "content": "import hashlib\nimport json\nimport logging\nimport os\nimport os.path\nimport subprocess\nimport tarfile\nfrom distutils.util import strtobool\nfrom gettext import gettext as _\nfrom glob import glob\nfrom pathlib import Path\nfrom pkg_resources import get_distribution\n\nfrom django.conf import ...
[ { "content": "import hashlib\nimport json\nimport logging\nimport os\nimport os.path\nimport subprocess\nimport tarfile\n\nfrom distutils.util import strtobool\nfrom gettext import gettext as _\nfrom glob import glob\nfrom pathlib import Path\nfrom pkg_resources import get_distribution\n\nfrom django.conf impor...
diff --git a/CHANGES/4351.bugfix b/CHANGES/4351.bugfix new file mode 100644 index 0000000000..572fc859c8 --- /dev/null +++ b/CHANGES/4351.bugfix @@ -0,0 +1 @@ +Ensure the compression level is reliably set properly as per #3869. \ No newline at end of file diff --git a/pulpcore/app/tasks/export.py b/pulpcore/app/tasks/e...
interlegis__sapl-3226
Erro encontrado quando a audiência não possui matéria ligada. <!--- Forneça um resumo geral da _issue_ no título acima --> Erro encontrado quando a audiência não possui matéria ligada. Derivado do ticket [273270](https://suporte.interlegis.leg.br/scp/tickets.php?id=37122) ## Contexto <!--- Como esse problema o...
[ { "content": "import sapl\n\nfrom django.http import HttpResponse\nfrom django.core.urlresolvers import reverse\nfrom django.views.decorators.clickjacking import xframe_options_exempt\nfrom django.views.generic import UpdateView\nfrom sapl.crud.base import RP_DETAIL, RP_LIST, Crud, MasterDetailCrud\n\nfrom .for...
[ { "content": "import sapl\n\nfrom django.http import HttpResponse\nfrom django.core.urlresolvers import reverse\nfrom django.views.decorators.clickjacking import xframe_options_exempt\nfrom django.views.generic import UpdateView\nfrom sapl.crud.base import RP_DETAIL, RP_LIST, Crud, MasterDetailCrud\n\nfrom .for...
diff --git a/sapl/audiencia/views.py b/sapl/audiencia/views.py index 67b9ea656..2ef1a334a 100755 --- a/sapl/audiencia/views.py +++ b/sapl/audiencia/views.py @@ -38,8 +38,11 @@ def get_context_data(self, **kwargs): coluna_materia = row[3] # se mudar a ordem de listagem mudar aqui if col...
microsoft__onnxscript-1472
Optimizer fails on shape inference error over native_batch_norm The optimizer fails for the attach model (so dort fails as well). It was obtained with the latest onnx, onnxscript and torch nightly. [dump3bug.zip](https://github.com/microsoft/onnxscript/files/15106272/dump3bug.zip) To replicate: ```python impo...
[ { "content": "import logging\nfrom typing import Any\n\nimport onnx\nimport onnx.shape_inference\n\nfrom onnxscript import rewriter\nfrom onnxscript.optimizer.constant_folding import fold_constants\nfrom onnxscript.optimizer.copy_propagation import (\n do_copy_propagation,\n do_sequence_simplification,\n)...
[ { "content": "import logging\nfrom typing import Any\n\nimport onnx\nimport onnx.shape_inference\n\nfrom onnxscript import rewriter\nfrom onnxscript.optimizer.constant_folding import fold_constants\nfrom onnxscript.optimizer.copy_propagation import (\n do_copy_propagation,\n do_sequence_simplification,\n)...
diff --git a/onnxscript/optimizer/__init__.py b/onnxscript/optimizer/__init__.py index 7b98950e09..f70d4d35e4 100644 --- a/onnxscript/optimizer/__init__.py +++ b/onnxscript/optimizer/__init__.py @@ -58,8 +58,12 @@ def optimize( for _ in range(num_iterations): if onnx_shape_inference: if model...
searx__searx-333
Piratebay engine : update the URL The current URL is https://thepiratebay.se which doesn't respond. This one seems to work https://thepiratebay.mn (see https://en.wikipedia.org/wiki/The_Pirate_Bay ) Another solution : disable / remove the engine in settings.yml
[ { "content": "# Piratebay (Videos, Music, Files)\n#\n# @website https://thepiratebay.se\n# @provide-api no (nothing found)\n#\n# @using-api no\n# @results HTML (using search portal)\n# @stable yes (HTML can change)\n# @parse url, title, content, seed, leech, magnetlink\n\nfrom urlparse imp...
[ { "content": "# Piratebay (Videos, Music, Files)\n#\n# @website https://thepiratebay.se\n# @provide-api no (nothing found)\n#\n# @using-api no\n# @results HTML (using search portal)\n# @stable yes (HTML can change)\n# @parse url, title, content, seed, leech, magnetlink\n\nfrom urlparse imp...
diff --git a/searx/engines/piratebay.py b/searx/engines/piratebay.py index adee6c1fd3..ab0dfd44cb 100644 --- a/searx/engines/piratebay.py +++ b/searx/engines/piratebay.py @@ -20,7 +20,7 @@ paging = True # search-url -url = 'https://thepiratebay.se/' +url = 'https://thepiratebay.am/' search_url = url + 'search/{sea...
mitmproxy__mitmproxy-4185
View response in Firefox gives file not found #### Problem Description Hitting `v` on a flow opens up firefox pointing to a temp mitmproxy file but the file doesn't exist #### Steps to reproduce the behavior: 1. Capture a request 2. Press v in the flow view of request and 2 for viewing response 3. Firefox opens...
[ { "content": "import asyncio\nimport mailcap\nimport mimetypes\nimport os\nimport os.path\nimport shlex\nimport signal\nimport stat\nimport subprocess\nimport sys\nimport tempfile\nimport typing # noqa\nimport contextlib\n\nimport urwid\n\nfrom mitmproxy import addons\nfrom mitmproxy import master\nfrom mitmpr...
[ { "content": "import asyncio\nimport mailcap\nimport mimetypes\nimport os\nimport os.path\nimport shlex\nimport signal\nimport stat\nimport subprocess\nimport sys\nimport tempfile\nimport typing # noqa\nimport contextlib\nimport threading\n\nimport urwid\n\nfrom mitmproxy import addons\nfrom mitmproxy import m...
diff --git a/CHANGELOG b/CHANGELOG index 78dd1788ce..7644ec8ab1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -12,6 +12,7 @@ Unreleased: mitmproxy next * Revamp onboarding app (@mhils) * Add ASGI support for embedded apps (@mhils) * Updated raw exports to not remove headers (@wchasekelley) + * Fix file un...
pulp__pulpcore-4357
Compression monkeypatch is not always being loaded **Describe the bug** For whatever reason, the monkeypatch added in https://github.com/pulp/pulpcore/pull/3884 is not always loaded. I'm not 100% sure if it has to do with the order in which the files are loaded into the interpreter or some other detail, but we ne...
[ { "content": "import hashlib\nimport json\nimport logging\nimport os\nimport os.path\nimport subprocess\nimport tarfile\nfrom distutils.util import strtobool\nfrom gettext import gettext as _\nfrom glob import glob\nfrom pathlib import Path\nfrom pkg_resources import get_distribution\n\nfrom django.conf import ...
[ { "content": "import hashlib\nimport json\nimport logging\nimport os\nimport os.path\nimport subprocess\nimport tarfile\n\nfrom distutils.util import strtobool\nfrom gettext import gettext as _\nfrom glob import glob\nfrom pathlib import Path\nfrom pkg_resources import get_distribution\n\nfrom django.conf impor...
diff --git a/CHANGES/4351.bugfix b/CHANGES/4351.bugfix new file mode 100644 index 0000000000..572fc859c8 --- /dev/null +++ b/CHANGES/4351.bugfix @@ -0,0 +1 @@ +Ensure the compression level is reliably set properly as per #3869. \ No newline at end of file diff --git a/pulpcore/app/tasks/export.py b/pulpcore/app/tasks/e...
kovidgoyal__kitty-5211
MacOS: Launch OS Window via Remote Control **Describe the bug** Ref: https://github.com/kovidgoyal/kitty/issues/45#issuecomment-915753960 Remote control via socket doesn't work opening a new OS window unless there is an existing window open already. **To Reproduce** Steps to reproduce the behavior: 1...
[ { "content": "#!/usr/bin/env python\n# License: GPLv3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net>\n\n\nfrom typing import TYPE_CHECKING, Optional\n\nfrom kitty.cli_stub import LaunchCLIOptions\nfrom kitty.launch import (\n launch as do_launch, options_spec as launch_options_spec,\n parse_launch...
[ { "content": "#!/usr/bin/env python\n# License: GPLv3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net>\n\n\nfrom typing import TYPE_CHECKING, Optional\n\nfrom kitty.cli_stub import LaunchCLIOptions\nfrom kitty.launch import (\n launch as do_launch, options_spec as launch_options_spec,\n parse_launch...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 15c2742c38e..447cf224dbb 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -47,6 +47,8 @@ Detailed list of changes - Fix horizontal wheel events not being reported to client programs when they grab the mouse (:iss:`2819`) +- Remote control: Fix u...
sql-machine-learning__elasticdl-268
[clean up] Should check tf is running eagerly early so the program can fail early if tf is configured wrong.
[ { "content": "import tensorflow as tf\nfrom tensorflow.python.ops import math_ops\nfrom proto import master_pb2\nfrom proto import master_pb2_grpc\n\n\nclass Worker(object):\n \"\"\"ElasticDL worker\"\"\"\n\n def __init__(self, model_cls, input_fn, opt_fn, channel=None):\n \"\"\"\n Arguments...
[ { "content": "import tensorflow as tf\nassert tf.executing_eagerly()\n\nfrom tensorflow.python.ops import math_ops\nfrom proto import master_pb2\nfrom proto import master_pb2_grpc\n\n\nclass Worker(object):\n \"\"\"ElasticDL worker\"\"\"\n\n def __init__(self, model_cls, input_fn, opt_fn, channel=None):\n...
diff --git a/elasticdl/worker/worker.py b/elasticdl/worker/worker.py index 4b9876bda..616f9bfe2 100644 --- a/elasticdl/worker/worker.py +++ b/elasticdl/worker/worker.py @@ -1,4 +1,6 @@ import tensorflow as tf +assert tf.executing_eagerly() + from tensorflow.python.ops import math_ops from proto import master_pb2 fr...
spack__spack-34873
Module generation error when computing Lmod path hierarchy ### Steps to reproduce the issue I was trying to `spack install gcc`. ```console $ spack spec -I gcc Input spec -------------------------------- - gcc Concretized -------------------------------- - gcc@12.2.0%apple-clang@14.0.0~binutils+boots...
[ { "content": "# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nimport collections\nimport itertools\nimport os.path\nimport posixpath\nfrom typing import Any,...
[ { "content": "# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nimport collections\nimport itertools\nimport os.path\nimport posixpath\nfrom typing import Any,...
diff --git a/lib/spack/spack/modules/lmod.py b/lib/spack/spack/modules/lmod.py index 38d89f085e0921..2878054ec2d2dc 100644 --- a/lib/spack/spack/modules/lmod.py +++ b/lib/spack/spack/modules/lmod.py @@ -180,7 +180,7 @@ def provides(self): # If it is in the list of supported compilers family -> compiler ...
rootpy__rootpy-751
Bin labels are lost with `rootpy.plotting.util.draw` The [documentation](https://github.com/rootpy/rootpy/blob/master/rootpy/plotting/utils.py#L49) of `rootpy.plotting.util.draw` indicates that if you do not specify axes, the axes of the first plottable will be used. But [here](https://github.com/rootpy/rootpy/blob/mas...
[ { "content": "# Copyright 2012 the rootpy developers\n# distributed under the terms of the GNU General Public License\nfrom __future__ import absolute_import\n\nfrom math import log\nimport operator\n\nimport ROOT\n\nfrom .canvas import _PadBase\nfrom .hist import _Hist, Hist, HistStack\nfrom .graph import _Gra...
[ { "content": "# Copyright 2012 the rootpy developers\n# distributed under the terms of the GNU General Public License\nfrom __future__ import absolute_import\n\nfrom math import log\nimport operator\n\nimport ROOT\n\nfrom .canvas import _PadBase\nfrom .hist import _Hist, Hist, HistStack\nfrom .graph import _Gra...
diff --git a/rootpy/plotting/utils.py b/rootpy/plotting/utils.py index f26197fc..8bc517db 100644 --- a/rootpy/plotting/utils.py +++ b/rootpy/plotting/utils.py @@ -107,12 +107,13 @@ def draw(plottables, pad=None, same=False, if ylimits is not None: ymin, ymax = ylimits if not same: - ...
conan-io__conan-center-index-5041
[package] qt/6.x.x: Missing QmlImportScanner component The QmlImportScanner target (which looks like an alias to Qt6Qml to me) is missing, leading to failed builds if they rely on it.
[ { "content": "import os\nimport shutil\nimport glob\nimport textwrap\n\nimport configparser\nfrom conans import ConanFile, tools, RunEnvironment, CMake\nfrom conans.errors import ConanInvalidConfiguration\nfrom conans.model import Generator\n\n\nclass qt(Generator):\n @property\n def filename(self):\n ...
[ { "content": "import os\nimport shutil\nimport glob\nimport textwrap\n\nimport configparser\nfrom conans import ConanFile, tools, RunEnvironment, CMake\nfrom conans.errors import ConanInvalidConfiguration\nfrom conans.model import Generator\n\n\nclass qt(Generator):\n @property\n def filename(self):\n ...
diff --git a/recipes/qt/6.x.x/conanfile.py b/recipes/qt/6.x.x/conanfile.py index ec4b5371b7aa1..aa85f1f5d2521 100644 --- a/recipes/qt/6.x.x/conanfile.py +++ b/recipes/qt/6.x.x/conanfile.py @@ -673,6 +673,9 @@ def _create_plugin(pluginname, libname, type, requires): if self.options.qtdeclarative: _...
pallets__werkzeug-2718
authorization parsing should catch base64 errors ### Steps to reproduce ``` >>> from werkzeug.datastructures import Authorization >>> Authorization.from_header("Basic foo") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/private/tmp/.venv/lib/python3.11/site-packages/werkzeug/dat...
[ { "content": "from __future__ import annotations\n\nimport base64\nimport typing as t\nimport warnings\nfrom functools import wraps\n\nfrom ..http import dump_header\nfrom ..http import parse_dict_header\nfrom ..http import parse_set_header\nfrom ..http import quote_header_value\nfrom .structures import Callbac...
[ { "content": "from __future__ import annotations\n\nimport base64\nimport binascii\nimport typing as t\nimport warnings\nfrom functools import wraps\n\nfrom ..http import dump_header\nfrom ..http import parse_dict_header\nfrom ..http import parse_set_header\nfrom ..http import quote_header_value\nfrom .structur...
diff --git a/CHANGES.rst b/CHANGES.rst index 7c44e1e77..395ae9ada 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,7 @@ Version 2.3.5 Unreleased - Python 3.12 compatibility. :issue:`2704` +- Fix handling of invalid base64 values in ``Authorization.from_header``. :issue:`2717` Version 2.3.4 diff --git ...
pulp__pulpcore-4352
Compression monkeypatch is not always being loaded **Describe the bug** For whatever reason, the monkeypatch added in https://github.com/pulp/pulpcore/pull/3884 is not always loaded. I'm not 100% sure if it has to do with the order in which the files are loaded into the interpreter or some other detail, but we ne...
[ { "content": "import hashlib\nimport json\nimport logging\nimport os\nimport os.path\nimport subprocess\nimport tarfile\nfrom distutils.util import strtobool\nfrom gettext import gettext as _\nfrom glob import glob\nfrom pathlib import Path\nfrom pkg_resources import get_distribution\n\nfrom django.conf import ...
[ { "content": "import hashlib\nimport json\nimport logging\nimport os\nimport os.path\nimport subprocess\nimport tarfile\n\nfrom distutils.util import strtobool\nfrom gettext import gettext as _\nfrom glob import glob\nfrom pathlib import Path\nfrom pkg_resources import get_distribution\n\nfrom django.conf impor...
diff --git a/CHANGES/4351.bugfix b/CHANGES/4351.bugfix new file mode 100644 index 0000000000..572fc859c8 --- /dev/null +++ b/CHANGES/4351.bugfix @@ -0,0 +1 @@ +Ensure the compression level is reliably set properly as per #3869. \ No newline at end of file diff --git a/pulpcore/app/tasks/export.py b/pulpcore/app/tasks/e...
pytorch__examples-982
Inconsistent batch size calculation and description in imagenet main.py https://github.com/pytorch/examples/blob/b9f3b2ebb9464959bdbf0c3ac77124a704954828/imagenet/main.py#L146-L149 As above shown, `batch_size` should be adjusted by *total number of GPUs we have*, which should be equivalent to `world_size` rather th...
[ { "content": "import argparse\nimport os\nimport random\nimport shutil\nimport time\nimport warnings\nfrom enum import Enum\n\nimport torch\nimport torch.nn as nn\nimport torch.nn.parallel\nimport torch.backends.cudnn as cudnn\nimport torch.distributed as dist\nimport torch.optim\nimport torch.multiprocessing a...
[ { "content": "import argparse\nimport os\nimport random\nimport shutil\nimport time\nimport warnings\nfrom enum import Enum\n\nimport torch\nimport torch.nn as nn\nimport torch.nn.parallel\nimport torch.backends.cudnn as cudnn\nimport torch.distributed as dist\nimport torch.optim\nimport torch.multiprocessing a...
diff --git a/imagenet/main.py b/imagenet/main.py index 7666122d19..786c967af5 100644 --- a/imagenet/main.py +++ b/imagenet/main.py @@ -148,7 +148,7 @@ def main_worker(gpu, ngpus_per_node, args): model.cuda(args.gpu) # When using a single GPU per process and per # DistributedDataPa...
paperless-ngx__paperless-ngx-3834
[BUG] restAPI ignores archive_serial_number ### Description Hi, when I upload a document via RestAPI and use "archive_serial_number" as form-data, the specified number is not entered in the document. https://docs.paperless-ngx.com/api/ POSTing documents The API provides a special endpoint for file uploads: ...
[ { "content": "import hashlib\nimport logging\nimport shutil\nimport uuid\nfrom typing import Optional\nfrom typing import Type\n\nimport tqdm\nfrom asgiref.sync import async_to_sync\nfrom celery import shared_task\nfrom channels.layers import get_channel_layer\nfrom django.conf import settings\nfrom django.db i...
[ { "content": "import hashlib\nimport logging\nimport shutil\nimport uuid\nfrom typing import Optional\nfrom typing import Type\n\nimport tqdm\nfrom asgiref.sync import async_to_sync\nfrom celery import shared_task\nfrom channels.layers import get_channel_layer\nfrom django.conf import settings\nfrom django.db i...
diff --git a/src/documents/tasks.py b/src/documents/tasks.py index d320875a042..97a7791f320 100644 --- a/src/documents/tasks.py +++ b/src/documents/tasks.py @@ -124,10 +124,11 @@ def consume_file( return "File successfully split" # try reading the ASN from barcode - if setting...
nvaccess__nvda-8550
In the properties dialog for a folder, the "not checked" state for the "read-only" attribute is not reported at change Steps to reproduce it: 1. Open Windows Explorer. 2. Select a folder with some files in it. Maybe some of them should be with a read-only attribute and some - not, but I'm not sure that it is required...
[ { "content": "#controlTypes.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n#Copyright (C) 2007-2016 NV Access Limited, Babbage B.V.\r\n\r\nROLE_UNKNOWN=0\r\nROLE_WINDOW=1\r\nROLE_TITLEBAR=2\r\nROLE_PANE=3...
[ { "content": "#controlTypes.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n#Copyright (C) 2007-2016 NV Access Limited, Babbage B.V.\r\n\r\nROLE_UNKNOWN=0\r\nROLE_WINDOW=1\r\nROLE_TITLEBAR=2\r\nROLE_PANE=3...
diff --git a/source/controlTypes.py b/source/controlTypes.py index 3ec2c87a252..c5f33fd0261 100644 --- a/source/controlTypes.py +++ b/source/controlTypes.py @@ -735,6 +735,9 @@ def processNegativeStates(role, states, reason, negativeStates=None): # Return only those supplied negative states which should be spoken; ...
pypa__virtualenv-1790
discovery stops if we find a poisened interpreter along the way Per comments in https://github.com/pypa/virtualenv/issues/1777#issuecomment-616391694
[ { "content": "\"\"\"\nThe PythonInfo contains information about a concrete instance of a Python interpreter\n\nNote: this file is also used to query target interpreters, so can only use standard library methods\n\"\"\"\nfrom __future__ import absolute_import, print_function\n\nimport json\nimport logging\nimpor...
[ { "content": "\"\"\"\nThe PythonInfo contains information about a concrete instance of a Python interpreter\n\nNote: this file is also used to query target interpreters, so can only use standard library methods\n\"\"\"\nfrom __future__ import absolute_import, print_function\n\nimport json\nimport logging\nimpor...
diff --git a/docs/changelog/1781.bugfix.rst b/docs/changelog/1781.bugfix.rst new file mode 100644 index 000000000..7231fb526 --- /dev/null +++ b/docs/changelog/1781.bugfix.rst @@ -0,0 +1,2 @@ +Do not stop interpreter discovery if we fail to find the system interpreter for a executable during discovery +- by :user:`gabo...
openstates__openstates-scrapers-2343
MO failing since at least 2018-05-24 MO has been failing since 2018-05-24 Based on automated runs it appears that MO has not run successfully in 2 days (2018-05-24). ``` 06:09:50 INFO billy: Save committee on Government Oversight, Standing 06:09:50 INFO billy: Save committee on Tax Policy, Statutory 06:09:50 INFO...
[ { "content": "import datetime\n\nmetadata = dict(\n name='Missouri',\n abbreviation='mo',\n legislature_name='Missouri General Assembly',\n legislature_url='http://www.moga.mo.gov/',\n capitol_timezone='America/Chicago',\n chambers={\n 'upper': {\n 'name': 'Senate',\n ...
[ { "content": "import datetime\n\nmetadata = dict(\n name='Missouri',\n abbreviation='mo',\n legislature_name='Missouri General Assembly',\n legislature_url='http://www.moga.mo.gov/',\n capitol_timezone='America/Chicago',\n chambers={\n 'upper': {\n 'name': 'Senate',\n ...
diff --git a/billy_metadata/mo.py b/billy_metadata/mo.py index 99f7580c20..9d9116d3a2 100644 --- a/billy_metadata/mo.py +++ b/billy_metadata/mo.py @@ -37,7 +37,7 @@ }, { 'name': '2017-2018', - 'sessions': ['2017', '2017S1', '2017S2', '2018'], + 'sessions': ['2017', '...
openstates__openstates-scrapers-2874
IA failing since at least 2019-02-07 IA has been failing since 2019-02-07 Based on automated runs it appears that IA has not run successfully in 7 days (2019-02-07). ``` 06:19:41 ERROR pupa: cannot resolve pseudo id to Person: ~{"name": "Bergan"} 06:19:41 ERROR pupa: cannot resolve pseudo id to Person: ~{"name": "...
[ { "content": "import re\nimport datetime\nimport lxml.html\nimport requests\nfrom pupa.scrape import Scraper, Bill\n\n\nclass IABillScraper(Scraper):\n\n def scrape(self, session=None, chamber=None):\n if not session:\n session = self.latest_session()\n self.info('no session spec...
[ { "content": "import re\nimport datetime\nimport lxml.html\nimport requests\nfrom pupa.scrape import Scraper, Bill\n\n\nclass IABillScraper(Scraper):\n\n def scrape(self, session=None, chamber=None):\n if not session:\n session = self.latest_session()\n self.info('no session spec...
diff --git a/openstates/ia/bills.py b/openstates/ia/bills.py index 2c82489c63..b947d1e169 100644 --- a/openstates/ia/bills.py +++ b/openstates/ia/bills.py @@ -81,8 +81,13 @@ def scrape_bill(self, chamber, session, session_id, bill_id, url): '"divideVert"]/div/div[4]/div[2])').strip() ...
deepchecks__deepchecks-1333
[FEAT] Support sklearn 0.23.2 Currently we only support sklearn versions >= 1.0. We need to try to support the 0.23.2 as it is widely used by many environments and frameworks.
[ { "content": "# ----------------------------------------------------------------------------\n# Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com)\n#\n# This file is part of Deepchecks.\n# Deepchecks is distributed under the terms of the GNU Affero General\n# Public License (version 3 or later).\n#...
[ { "content": "# ----------------------------------------------------------------------------\n# Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com)\n#\n# This file is part of Deepchecks.\n# Deepchecks is distributed under the terms of the GNU Affero General\n# Public License (version 3 or later).\n#...
diff --git a/deepchecks/core/check_utils/whole_dataset_drift_utils.py b/deepchecks/core/check_utils/whole_dataset_drift_utils.py index 25c4cb9e95..60331020ea 100644 --- a/deepchecks/core/check_utils/whole_dataset_drift_utils.py +++ b/deepchecks/core/check_utils/whole_dataset_drift_utils.py @@ -132,10 +132,11 @@ def gen...
mytardis__mytardis-1507
NPM_FILE_PATTERNS - collectstatic failing on Windows MyTardis currently uses `django-npm` to collect static content which has been npm installed into the `node_modules/` folder. Because we don't necessarily want to copy everything from `node_modules/` when running `collectstatic`, MyTardis uses django-npm's `NPM_FIL...
[ { "content": "from os import path\nfrom .storage import DEFAULT_STORAGE_BASE_DIR\n\n# Absolute path to the directory that holds media.\n# Example: \"/home/media/media.lawrence.com/\"\nMEDIA_ROOT = DEFAULT_STORAGE_BASE_DIR\n\n# Used by \"django collectstatic\"\nSTATIC_ROOT = path.abspath(path.join(path.dirname(_...
[ { "content": "from os import path\nfrom .storage import DEFAULT_STORAGE_BASE_DIR\n\n# Absolute path to the directory that holds media.\n# Example: \"/home/media/media.lawrence.com/\"\nMEDIA_ROOT = DEFAULT_STORAGE_BASE_DIR\n\n# Used by \"django collectstatic\"\nSTATIC_ROOT = path.abspath(path.join(path.dirname(_...
diff --git a/tardis/default_settings/static_files.py b/tardis/default_settings/static_files.py index 44025c37fd..435d652676 100644 --- a/tardis/default_settings/static_files.py +++ b/tardis/default_settings/static_files.py @@ -32,16 +32,16 @@ 'backbone': ['*'], 'backbone-forms': ['*'], 'blueimp-file-uplo...
deepset-ai__haystack-5132
Empty `documents` list causes `PromptNode` to fail **Describe the bug** If we specify `documents` as a prompt parameter in `PromptTemplate`, running `PromptNode` fails when it receives an empty list of documents. **Error message** ``` Traceback (most recent call last): File "/Users/bogdan/Repositories/haystack...
[ { "content": "from typing import Optional, List, Union, Tuple, Dict, Iterator, Any\nimport logging\nimport re\nimport os\nimport ast\nimport json\nimport warnings\nfrom pathlib import Path\nfrom abc import ABC\nfrom uuid import uuid4\n\nimport yaml\nfrom platformdirs import user_data_dir\nimport tenacity\nimpor...
[ { "content": "from typing import Optional, List, Union, Tuple, Dict, Iterator, Any\nimport logging\nimport re\nimport os\nimport ast\nimport json\nimport warnings\nfrom pathlib import Path\nfrom abc import ABC\nfrom uuid import uuid4\n\nimport yaml\nfrom platformdirs import user_data_dir\nimport tenacity\nimpor...
diff --git a/haystack/nodes/prompt/prompt_template.py b/haystack/nodes/prompt/prompt_template.py index 46faa60e2a..3e063569a2 100644 --- a/haystack/nodes/prompt/prompt_template.py +++ b/haystack/nodes/prompt/prompt_template.py @@ -482,6 +482,13 @@ def prepare(self, *args, **kwargs) -> Dict[str, Any]: i...
ocadotechnology__aimmo-512
Make logout button on AI:MMO
[ { "content": "from django.conf.urls import url\nfrom django.contrib.auth import views as auth_views\nfrom django.contrib.auth.decorators import login_required\nfrom django.views.generic import TemplateView\nfrom django.views.generic import RedirectView\n\nfrom players import views\n\nurlpatterns = [\n url(r'...
[ { "content": "from django.conf.urls import url\nfrom django.contrib.auth import views as auth_views\nfrom django.contrib.auth.decorators import login_required\nfrom django.views.generic import TemplateView\nfrom django.views.generic import RedirectView\n\nfrom players import views\n\nurlpatterns = [\n url(r'...
diff --git a/players/templates/players/base.html b/players/templates/players/base.html index 3e5c3835f..d1137003e 100644 --- a/players/templates/players/base.html +++ b/players/templates/players/base.html @@ -46,6 +46,7 @@ {% game_dropdown_list 'aimmo/watch' %} </li...
pre-commit__pre-commit-2686
ParserError exception raised for invalid configuration ### search you tried in the issue tracker ParserError and unicode ### describe your issue I executed `pre-commit autoupdate` with an invalid configuration file (the second `- repo` is indented incorrectly) and got this error message: ```` $ pre-commit ...
[ { "content": "from __future__ import annotations\n\nimport re\nimport textwrap\n\nimport yaml\n\nfrom pre_commit.yaml import yaml_load\n\n\ndef _is_header_line(line: str) -> bool:\n return line.startswith(('#', '---')) or not line.strip()\n\n\ndef _migrate_map(contents: str) -> str:\n if isinstance(yaml_l...
[ { "content": "from __future__ import annotations\n\nimport re\nimport textwrap\n\nimport cfgv\nimport yaml\n\nfrom pre_commit.clientlib import InvalidConfigError\nfrom pre_commit.yaml import yaml_load\n\n\ndef _is_header_line(line: str) -> bool:\n return line.startswith(('#', '---')) or not line.strip()\n\n\...
diff --git a/pre_commit/commands/migrate_config.py b/pre_commit/commands/migrate_config.py index 836936b25..6f7af4eba 100644 --- a/pre_commit/commands/migrate_config.py +++ b/pre_commit/commands/migrate_config.py @@ -3,8 +3,10 @@ import re import textwrap +import cfgv import yaml +from pre_commit.clientlib impor...
Parsl__parsl-2529
Improve thread affinity with OpenMP **Is your feature request related to a problem? Please describe.** I find that I need to add "OMP_NUM_THREADS" before calling an OpenMP executable when running multiple OpenMP applications on a single node to avoid them contending with each other. **Describe the solution you'd l...
[ { "content": "#!/usr/bin/env python3\n\nimport argparse\nimport logging\nimport os\nimport sys\nimport platform\nimport threading\nimport pickle\nimport time\nimport queue\nimport uuid\nfrom threading import Thread\nfrom typing import Sequence, Optional\n\nimport zmq\nimport math\nimport json\nimport psutil\nim...
[ { "content": "#!/usr/bin/env python3\n\nimport argparse\nimport logging\nimport os\nimport sys\nimport platform\nimport threading\nimport pickle\nimport time\nimport queue\nimport uuid\nfrom threading import Thread\nfrom typing import Sequence, Optional\n\nimport zmq\nimport math\nimport json\nimport psutil\nim...
diff --git a/docs/userguide/configuring.rst b/docs/userguide/configuring.rst index 5b883c5431..cac3ce2b20 100644 --- a/docs/userguide/configuring.rst +++ b/docs/userguide/configuring.rst @@ -343,6 +343,14 @@ Select the best blocking strategy for processor's cache hierarchy (choose 'alter strategy='none', ...
Kinto__kinto-891
Add user principals to hello view Along `user` info, show the list of user principals (for groups notably)
[ { "content": "from pyramid.security import NO_PERMISSION_REQUIRED, Authenticated\n\nfrom kinto.core import Service\n\nhello = Service(name=\"hello\", path='/', description=\"Welcome\")\n\n\n@hello.get(permission=NO_PERMISSION_REQUIRED)\ndef get_hello(request):\n \"\"\"Return information regarding the current...
[ { "content": "from pyramid.security import NO_PERMISSION_REQUIRED, Authenticated\n\nfrom kinto.core import Service\n\nhello = Service(name=\"hello\", path='/', description=\"Welcome\")\n\n\n@hello.get(permission=NO_PERMISSION_REQUIRED)\ndef get_hello(request):\n \"\"\"Return information regarding the current...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8f3c146d5..91fec0936 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,7 @@ This document describes changes between each past release. **Protocol** - Add support to ``JSON-Merge`` (RFC 6902). +- Added a principals list to ``hello`` view when authenticated. ...
microsoft__ptvsd-1615
Test run times out on Python 2.7 (dbg_adapter_refactor branch only) It's not just a CI issue - it repros locally on Linux, as well. The tests themselves complete fine, but something prevents the main pytest process from exiting - it gets stuck waiting for child nodes. Most likely, our test infrastructure does someth...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nfrom __future__ import absolute_import, print_function, unicode_literals\n\n\"\"\"An implementation of the session and presentation layers a...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nfrom __future__ import absolute_import, print_function, unicode_literals\n\n\"\"\"An implementation of the session and presentation layers a...
diff --git a/src/ptvsd/common/messaging.py b/src/ptvsd/common/messaging.py index 9aecfc3e7..2c3268e4a 100644 --- a/src/ptvsd/common/messaging.py +++ b/src/ptvsd/common/messaging.py @@ -99,8 +99,16 @@ def close(self): """Closes the stream, the reader, and the writer. """ self._is_closing = Tru...
WeblateOrg__weblate-3989
The ability to disassociate components from a component-list via the API **Is your feature request related to a problem? Please describe.** I am able to associate component(s) with a component list via the API but not disassociate. **Describe the solution you'd like** DELETE method available at `/api/component...
[ { "content": "#\n# Copyright © 2012 - 2020 Michal Čihař <michal@cihar.com>\n#\n# This file is part of Weblate <https://weblate.org/>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation,...
[ { "content": "#\n# Copyright © 2012 - 2020 Michal Čihař <michal@cihar.com>\n#\n# This file is part of Weblate <https://weblate.org/>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation,...
diff --git a/docs/api.rst b/docs/api.rst index f1412c3df050..d2e50a049e0b 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -1834,7 +1834,7 @@ Component lists :param slug: Component list slug :type slug: string -.. http:put:: /api/component-lists/(str:slug)/components/ +.. http:post:: /api/component-lists/(st...
avocado-framework__avocado-4063
Settings registration should execute the key_type under default values When registering a new namespace with the Settings module, the `key_type` is not applied to the default value. This may cause problems if the default value is anything different from a string.
[ { "content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; specifically version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOU...
[ { "content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; specifically version 2 of the License.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOU...
diff --git a/avocado/core/future/settings.py b/avocado/core/future/settings.py index ae41ea5187..0b26825931 100644 --- a/avocado/core/future/settings.py +++ b/avocado/core/future/settings.py @@ -502,8 +502,11 @@ def register_option(self, section, key, default, help_msg, key_type=str, What is the key name o...
Pyomo__pyomo-3133
GDPOpt.LBB: name 'solve_data' is not defined ## Summary <!-- Explain, in a clear and concise way, the command you ran and the result you were trying to achieve. Example: "I ran `pyomo solve` to optimize a model and ..." --> While working with `LBB` in `GDPOpt`, I encountered an error related to `solve_data`. It ...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright (c) 2008-2022\n# National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright (c) 2008-2022\n# National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n...
diff --git a/pyomo/contrib/gdpopt/branch_and_bound.py b/pyomo/contrib/gdpopt/branch_and_bound.py index 26dc2b5f2eb..645e3564a88 100644 --- a/pyomo/contrib/gdpopt/branch_and_bound.py +++ b/pyomo/contrib/gdpopt/branch_and_bound.py @@ -230,12 +230,12 @@ def _solve_gdp(self, model, config): no_feasible_sol...
pallets__werkzeug-1419
Raw request url path info It looks like once the make_environ function creates an environ dictionary the original request path encoded with the `path_info = url_unquote(request_url.path)` call will be discarded. For example, if my request URL path contains encoded `:` and `,` characters `/1%2C2/a%3Ab%3Ac%3Ad/test.json`...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.serving\n ~~~~~~~~~~~~~~~~\n\n There are many ways to serve a WSGI application. While you're developing\n it you usually don't want a full blown webserver like Apache but a simple\n standalone one. From Python 2.5 onwards there is the `ws...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.serving\n ~~~~~~~~~~~~~~~~\n\n There are many ways to serve a WSGI application. While you're developing\n it you usually don't want a full blown webserver like Apache but a simple\n standalone one. From Python 2.5 onwards there is the `ws...
diff --git a/CHANGES.rst b/CHANGES.rst index da750b8e6..ec1dc7d90 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -181,6 +181,10 @@ Unreleased - The development server recognizes ``ConnectionError`` on Python 3 to silence client disconnects, and does not silence other ``OSErrors`` that may have been raised i...
holoviz__holoviews-3694
DataLink fails if NaN present When there is a NaN present in the column shared by the two objects passed to DataLink, it fails, claiming `ValueError: DataLink can only be applied if overlapping dimension values are equal` ``` import holoviews as hv import numpy as np hv.extension('bokeh') from holoviews.plotting...
[ { "content": "from __future__ import absolute_import, division, unicode_literals\n\nfrom collections import defaultdict\n\nimport param\nimport numpy as np\nfrom bokeh.models import (\n CustomJS, FactorRange, DatetimeAxis, ColumnDataSource, ToolbarBox,\n Range1d, DataRange1d, PolyDrawTool, BoxEditTool, Po...
[ { "content": "from __future__ import absolute_import, division, unicode_literals\n\nfrom collections import defaultdict\n\nimport param\nimport numpy as np\nfrom bokeh.models import (\n CustomJS, FactorRange, DatetimeAxis, ColumnDataSource, ToolbarBox,\n Range1d, DataRange1d, PolyDrawTool, BoxEditTool, Po...
diff --git a/holoviews/plotting/bokeh/callbacks.py b/holoviews/plotting/bokeh/callbacks.py index 04c10bc8a4..77bfd5fcab 100644 --- a/holoviews/plotting/bokeh/callbacks.py +++ b/holoviews/plotting/bokeh/callbacks.py @@ -1313,7 +1313,7 @@ def __init__(self, root_model, link, source_plot, target_plot): col = ...
saulpw__visidata-1473
Confusing model and keystroke consumption in menu bar From [a discussion](https://github.com/saulpw/visidata/discussions/1464#discussioncomment-3368730): I would think that once the menubar is active (ctrl+h) I can press those letters to go to their sub-menus. Additionally, if I hit alt+c for the column, and then...
[ { "content": "import string\nimport textwrap\n\nfrom visidata import *\n\n\nvd.option('disp_menu', True, 'show menu on top line when not active', sheettype=None)\nvd.option('disp_menu_keys', True, 'show keystrokes inline in submenus', sheettype=None)\nvd.option('color_menu', 'black on 110 cyan', 'color of menu ...
[ { "content": "import string\nimport textwrap\n\nfrom visidata import *\n\n\nvd.option('disp_menu', True, 'show menu on top line when not active', sheettype=None)\nvd.option('disp_menu_keys', True, 'show keystrokes inline in submenus', sheettype=None)\nvd.option('color_menu', 'black on 110 cyan', 'color of menu ...
diff --git a/visidata/menu.py b/visidata/menu.py index 348661488..707ae52c8 100644 --- a/visidata/menu.py +++ b/visidata/menu.py @@ -776,6 +776,10 @@ def runMenu(vd): else: break + elif k in main_menu.keys(): + sheet.pressMenu(main_menu[k]) + + sheet.checkMenu(...
numpy__numpy-15938
Building numpy on AIX (xlc and xlf) <!-- Please describe the issue in detail here, and fill in the fields below --> build for AIX is not working. A couple of issues - maybe all simple to fix - still researching the last one... First one: numpy/fft/_pocketfft.c does not compile -- resolution: `export CFLAGS=-D_LA...
[ { "content": "\ndef configuration(parent_package='',top_path=None):\n from numpy.distutils.misc_util import Configuration\n config = Configuration('fft', parent_package, top_path)\n\n config.add_data_dir('tests')\n\n # Configure pocketfft_internal\n config.add_extension('_pocketfft_internal',\n ...
[ { "content": "import sys\n\ndef configuration(parent_package='',top_path=None):\n from numpy.distutils.misc_util import Configuration\n config = Configuration('fft', parent_package, top_path)\n\n config.add_data_dir('tests')\n\n # AIX needs to be told to use large file support - at all times\n de...
diff --git a/numpy/fft/setup.py b/numpy/fft/setup.py index 40d632ec55ef..e8204fcd33f4 100644 --- a/numpy/fft/setup.py +++ b/numpy/fft/setup.py @@ -1,3 +1,4 @@ +import sys def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration @@ -5,9 +6,12 @@ def configuration(pa...
google__turbinia-484
Turbiniactl Fails When the Config File is None ``` Traceback (most recent call last): ...
[ { "content": "#!/usr/bin/env python\n#\n# Copyright 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# ...
[ { "content": "#!/usr/bin/env python\n#\n# Copyright 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# ...
diff --git a/turbinia/config/logger.py b/turbinia/config/logger.py index 4879d6efc..bc1b168c9 100644 --- a/turbinia/config/logger.py +++ b/turbinia/config/logger.py @@ -57,7 +57,7 @@ def setup(need_file_handler=True, need_stream_handler=True): config.LoadConfig() except TurbiniaException as exception: ...
svthalia__concrexit-2853
Make API redirects respect query params <!-- Please add the appropriate label for what change should be made: docs: changes to the documentation) refactor: refactoring production code, eg. renaming a variable or rewriting a function test: adding missing tests, refactoring tests; no production code change chore: updati...
[ { "content": "\"\"\"Partners app API v2 urls.\"\"\"\nfrom django.urls import path\nfrom django.views.generic import RedirectView\n\nfrom partners.api.v2.views import (\n PartnerDetailView,\n PartnerListView,\n VacancyCategoryListView,\n VacancyDetailView,\n VacancyListView,\n)\n\napp_name = \"par...
[ { "content": "\"\"\"Partners app API v2 urls.\"\"\"\nfrom django.urls import path\nfrom django.views.generic import RedirectView\n\nfrom partners.api.v2.views import (\n PartnerDetailView,\n PartnerListView,\n VacancyCategoryListView,\n VacancyDetailView,\n VacancyListView,\n)\n\napp_name = \"par...
diff --git a/website/partners/api/v2/urls.py b/website/partners/api/v2/urls.py index 6402dbe40..683c86a2f 100644 --- a/website/partners/api/v2/urls.py +++ b/website/partners/api/v2/urls.py @@ -16,14 +16,18 @@ path( "partners/events/", RedirectView.as_view( - pattern_name="api:v2:events...
ansible__ansible-modules-core-5113
Unable to deploy config to junos <!--- Verify first that your issue/request is not already reported in GitHub --> ##### ISSUE TYPE <!--- Pick one below and delete the rest: --> - Bug Report ##### COMPONENT NAME <!--- Name of the plugin/module/task --> modules/core/network/junos/junos_template.py module_utils/junos.p...
[ { "content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers...
[ { "content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers...
diff --git a/network/junos/_junos_template.py b/network/junos/_junos_template.py index c65525d8491..c50deeef2c5 100644 --- a/network/junos/_junos_template.py +++ b/network/junos/_junos_template.py @@ -144,7 +144,7 @@ def main(): "set per junos-pyez documentation") results = dict(changed=False) - ...
aio-libs__aiohttp-5285
BaseConnector limit and limit_per_host don't work with tracing enabled 🐞 **Describe the bug** The BaseConnector limit and limit_per_host attributes don't function properly when tracing is enabled and the connection is being reused. BaseConnector.connect() calls _available_connections(), and when it gets back a numb...
[ { "content": "import asyncio\nimport functools\nimport logging\nimport random\nimport sys\nimport traceback\nimport warnings\nfrom collections import defaultdict, deque\nfrom contextlib import suppress\nfrom http.cookies import SimpleCookie\nfrom itertools import cycle, islice\nfrom time import monotonic\nfrom ...
[ { "content": "import asyncio\nimport functools\nimport logging\nimport random\nimport sys\nimport traceback\nimport warnings\nfrom collections import defaultdict, deque\nfrom contextlib import suppress\nfrom http.cookies import SimpleCookie\nfrom itertools import cycle, islice\nfrom time import monotonic\nfrom ...
diff --git a/CHANGES/5259.bugfix b/CHANGES/5259.bugfix new file mode 100644 index 00000000000..c53e99e0825 --- /dev/null +++ b/CHANGES/5259.bugfix @@ -0,0 +1 @@ +Acquire the connection before running traces to prevent race condition. diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index b90914a4f2b..937a698a0ad 100644...
HypothesisWorks__hypothesis-3917
TypeError on CPython 3.13 for 6.99.2 I got on CPython 3.13a4 (during collection of tests by pytest): ``` /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/hypothesis/strategies/_internal/strategies.py:56: in <module> Ex = TypeVar("Ex", covariant=True, default=Any) E T...
[ { "content": "# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Copyright the Hypothesis Authors.\n# Individual contributors are listed in AUTHORS.rst and the git log.\n#\n# This Source Code Form is subject to the terms of the Mozilla Public License...
[ { "content": "# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Copyright the Hypothesis Authors.\n# Individual contributors are listed in AUTHORS.rst and the git log.\n#\n# This Source Code Form is subject to the terms of the Mozilla Public License...
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 895694d956..ecf66b5570 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,7 +46,9 @@ jobs: - check-py312-cover - check-py312-nocover - check-py312-niche - # - check-py313-cov...
pypa__setuptools-840
Warning not filtered as supposed to The warning emitted for missing standard script name in [py36compat.py](https://github.com/pypa/setuptools/blob/master/setuptools/command/py36compat.py#L76) is not suppressed by [`manifest_maker.warn`](https://github.com/pypa/setuptools/blob/master/setuptools/command/egg_info.py#L558...
[ { "content": "\"\"\"setuptools.command.egg_info\n\nCreate a distribution's .egg-info directory and contents\"\"\"\n\nfrom distutils.filelist import FileList as _FileList\nfrom distutils.errors import DistutilsInternalError\nfrom distutils.util import convert_path\nfrom distutils import log\nimport distutils.err...
[ { "content": "\"\"\"setuptools.command.egg_info\n\nCreate a distribution's .egg-info directory and contents\"\"\"\n\nfrom distutils.filelist import FileList as _FileList\nfrom distutils.errors import DistutilsInternalError\nfrom distutils.util import convert_path\nfrom distutils import log\nimport distutils.err...
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 6cc8f4c45e..6f8fd87449 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -554,10 +554,17 @@ def write_manifest(self): msg = "writing manifest file '%s'" % self.manifest self.execute(wri...
PokemonGoF__PokemonGo-Bot-579
NameError: global name 'id_list2' is not defined ### Expected Behavior After capturing a pokemon, I'd expect the program to continue running ### Actual Behavior Spits out this error after catching the first pokemon: > 2016-07-23 21:37:07 [x] PokemonGO Bot v1.0 > 2016-07-23 21:37:07 [x] Configuration initialized > [2...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport time\nfrom sets import Set\nfrom utils import distance\nfrom pokemongo_bot.human_behaviour import sleep\nfrom pokemongo_bot import logger\n\n\nclass PokemonCatchWorker(object):\n\n def __init__(self, pokemon, bot):\n self.pokemon = pokemon\n self....
[ { "content": "# -*- coding: utf-8 -*-\n\nimport time\nfrom sets import Set\nfrom utils import distance\nfrom pokemongo_bot.human_behaviour import sleep\nfrom pokemongo_bot import logger\n\n\nclass PokemonCatchWorker(object):\n\n def __init__(self, pokemon, bot):\n self.pokemon = pokemon\n self....
diff --git a/pokemongo_bot/cell_workers/pokemon_catch_worker.py b/pokemongo_bot/cell_workers/pokemon_catch_worker.py index 0138890dba..e8024f8d60 100644 --- a/pokemongo_bot/cell_workers/pokemon_catch_worker.py +++ b/pokemongo_bot/cell_workers/pokemon_catch_worker.py @@ -134,6 +134,9 @@ def work(self): ...
ranaroussi__yfinance-1603
HTTPError: 401 Client Error: Unauthorized for url I'm on yfinance version 0.2.22 (Python 3.9.10 on macOS 12.6.3), and since today, I keep getting the following error (e.g. on calling `yf.Ticker('AAPL').info`): `HTTPError: 401 Client Error: Unauthorized for url: https://query2.finance.yahoo.com/v10/finance/quoteSumma...
[ { "content": "import datetime\nimport logging\nimport json\nimport warnings\n\nimport pandas as pd\nimport numpy as _np\n\nfrom yfinance import utils\nfrom yfinance.data import TickerData\nfrom yfinance.exceptions import YFNotImplementedError\n\ninfo_retired_keys_price = {\"currentPrice\", \"dayHigh\", \"dayLow...
[ { "content": "import datetime\nimport logging\nimport json\nimport warnings\n\nimport pandas as pd\nimport numpy as _np\n\nfrom yfinance import utils\nfrom yfinance.data import TickerData\nfrom yfinance.exceptions import YFNotImplementedError\n\ninfo_retired_keys_price = {\"currentPrice\", \"dayHigh\", \"dayLow...
diff --git a/tests/ticker.py b/tests/ticker.py index 2f96c4ce9..6e450f34f 100644 --- a/tests/ticker.py +++ b/tests/ticker.py @@ -692,7 +692,10 @@ def test_fast_info(self): def test_info(self): data = self.tickers[0].info self.assertIsInstance(data, dict, "data has wrong type") - self.asser...
quantumlib__Cirq-3163
Update code for when Engine metric qubits are formatted differently There is currently code in calibration.py that looks at qubit ids that start with `q` and removes this `q` before getting the grid qubit. If the API no longer returns `q` prefixed code this should be removed, otherwise if we are going to continue to s...
[ { "content": "# Copyright 2019 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright 2019 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/cirq/contrib/noise_models/noise_models_test.py b/cirq/contrib/noise_models/noise_models_test.py index 2c899726826..0e27d6d521c 100644 --- a/cirq/contrib/noise_models/noise_models_test.py +++ b/cirq/contrib/noise_models/noise_models_test.py @@ -300,55 +300,55 @@ def test_aggregate_decay_noise_after_moment()...
WeblateOrg__weblate-10134
Site-wide project creation permission ### Describe the problem With https://github.com/WeblateOrg/weblate/issues/263 there needs to be a way to grant users creating a project. Currently, there are two approaches depending on the server settings – either via billing limits, or by site-wide permission. ### Describe the...
[ { "content": "# Copyright © Michal Čihař <michal@weblate.org>\n#\n# SPDX-License-Identifier: GPL-3.0-or-later\n\n\"\"\"Definition of permissions and default roles and groups.\"\"\"\n\nfrom __future__ import annotations\n\nfrom django.utils.translation import gettext_noop\n\nfrom weblate.utils.translation import...
[ { "content": "# Copyright © Michal Čihař <michal@weblate.org>\n#\n# SPDX-License-Identifier: GPL-3.0-or-later\n\n\"\"\"Definition of permissions and default roles and groups.\"\"\"\n\nfrom __future__ import annotations\n\nfrom django.utils.translation import gettext_noop\n\nfrom weblate.utils.translation import...
diff --git a/docs/admin/projects.rst b/docs/admin/projects.rst index 08f5383a5089..6e1463b42293 100644 --- a/docs/admin/projects.rst +++ b/docs/admin/projects.rst @@ -43,6 +43,11 @@ permission, and if your instance uses billing (e.g. like https://hosted.weblate.org/ see :ref:`billing`), you can also create those base...
inventree__InvenTree-1284
Restore backup I have found several mentions of doing a backup in the documentation but no mention of how to perform the restore. In my test instance I've configured "backup_dir" in config.yaml and performed a backup with "inv backup". Could not find a "restore" method defined in tasks.py Is there something I'm mis...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom invoke import task\nfrom shutil import copyfile\n\nimport random\nimport string\nimport os\nimport sys\n\ndef apps():\n \"\"\"\n Returns a list of installed apps\n \"\"\"\n\n return [\n 'barcode',\n 'build',\n 'common',\n 'com...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom invoke import task\nfrom shutil import copyfile\n\nimport random\nimport string\nimport os\nimport sys\n\ndef apps():\n \"\"\"\n Returns a list of installed apps\n \"\"\"\n\n return [\n 'barcode',\n 'build',\n 'common',\n 'com...
diff --git a/tasks.py b/tasks.py index 77604eaf3a0d..579887c8094d 100644 --- a/tasks.py +++ b/tasks.py @@ -349,12 +349,22 @@ def backup(c): Create a backup of database models and uploaded media files. Backup files will be written to the 'backup_dir' file specified in 'config.yaml' - """ manage(c...
rotki__rotki-2930
Add convex airdrop Convex finance will make an airdrop according to this rules https://convexfinance.medium.com/cvx-airdrop-details-a20ff7448075 The list of tentative addresses to receive the airdrop is generated by them and available here https://github.com/convex-eth/platform/blob/main/airdrop/userconvex_final_for...
[ { "content": "import csv\nfrom collections import defaultdict\nfrom json.decoder import JSONDecodeError\nfrom pathlib import Path\nfrom typing import Any, Dict, Iterator, List, TextIO, Tuple\n\nimport requests\n\nfrom rotkehlchen.chain.ethereum.utils import token_normalized_value_decimals\nfrom rotkehlchen.cons...
[ { "content": "import csv\nfrom collections import defaultdict\nfrom json.decoder import JSONDecodeError\nfrom pathlib import Path\nfrom typing import Any, Dict, Iterator, List, TextIO, Tuple\n\nimport requests\n\nfrom rotkehlchen.assets.asset import EthereumToken\nfrom rotkehlchen.chain.ethereum.utils import to...
diff --git a/docs/changelog.rst b/docs/changelog.rst index b634fb3b48..b933705a55 100755 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -11,6 +11,7 @@ Changelog * :feature:`2475` Withdrawals from Binance and Binance US will now have their fee correctly imported. * :feature:`2803` Ethereum tokens that consist of...
ibis-project__ibis-1950
Resolve deprecation warnings We use deprecated parts of the `abc` and `imp` modules: ```=================================================================================== warnings summary =================================================================================== /home/tory/anaconda3/envs/ibis-dev/lib/pyth...
[ { "content": "\"\"\"Execution rules for generic ibis operations.\"\"\"\n\nimport collections\nimport datetime\nimport decimal\nimport functools\nimport math\nimport numbers\nimport operator\nfrom collections.abc import Sized\n\nimport numpy as np\nimport pandas as pd\nimport toolz\nfrom pandas.core.groupby impo...
[ { "content": "\"\"\"Execution rules for generic ibis operations.\"\"\"\n\nimport collections\nimport datetime\nimport decimal\nimport functools\nimport math\nimport numbers\nimport operator\nfrom collections.abc import Sized\n\nimport numpy as np\nimport pandas as pd\nimport toolz\nfrom pandas.core.groupby impo...
diff --git a/ibis/pandas/execution/generic.py b/ibis/pandas/execution/generic.py index 4a7417a31cd0..75d93df9bfc4 100644 --- a/ibis/pandas/execution/generic.py +++ b/ibis/pandas/execution/generic.py @@ -161,7 +161,7 @@ def execute_cast_series_date(op, data, type, **kwargs): if isinstance(from_type, dt.Integer): ...
optuna__optuna-3545
Show warning message by `GridSearchSampler` whose `CategoricalDistribution` contains unsupported typed values, not raising `ValueError` ### Motivation The grid search sampler has a strict type rule for its search space for `CategoricalDistribution`, which is not consistent with the other samplers as reported in #3534....
[ { "content": "import collections\nimport itertools\nimport random\nfrom typing import Any\nfrom typing import cast\nfrom typing import Dict\nfrom typing import List\nfrom typing import Mapping\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Union\nimport warnings\n\nfrom optuna.dis...
[ { "content": "import collections\nimport itertools\nimport random\nfrom typing import Any\nfrom typing import cast\nfrom typing import Dict\nfrom typing import List\nfrom typing import Mapping\nfrom typing import Optional\nfrom typing import Sequence\nfrom typing import Union\nimport warnings\n\nfrom optuna.dis...
diff --git a/optuna/samplers/_grid.py b/optuna/samplers/_grid.py index 4673185dba..8ca3738cf6 100644 --- a/optuna/samplers/_grid.py +++ b/optuna/samplers/_grid.py @@ -211,11 +211,12 @@ def _check_value(param_name: str, param_value: Any) -> None: if param_value is None or isinstance(param_value, (str, int, floa...
PaddlePaddle__PaddleOCR-7535
PaddleOCR(use_onnx=True) will try to download wrong model file 请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem - 系统环境/System Environment:MacOS 12.4 - 版本号/Version:Paddle:2.3.1 PaddleOCR:2.6 问题相关组件/Related components:PaddleOCR python class - 运行指令/Command Code: ```python Pa...
[ { "content": "# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/paddleocr.py b/paddleocr.py index fa732fc110d..d34b8f78a56 100644 --- a/paddleocr.py +++ b/paddleocr.py @@ -480,10 +480,11 @@ def __init__(self, **kwargs): params.rec_image_shape = "3, 48, 320" else: params.rec_image_shape = "3, 32, 320" - # download model - ...
crytic__slither-1848
[Bug]: is_fully_implemented property of Contract objects always False ### Describe the issue: All `Contract` objects' `is_fully_implemented` property seems to never get updated, and is always False (since initialisation). In previous versions of Slither, the equivalent property was `fullyImplemented`, and was working...
[ { "content": "import logging\nimport re\nfrom typing import Any, List, Dict, Callable, TYPE_CHECKING, Union, Set, Sequence\n\nfrom slither.core.declarations import (\n Modifier,\n Event,\n EnumContract,\n StructureContract,\n Function,\n)\nfrom slither.core.declarations.contract import Contract, ...
[ { "content": "import logging\nimport re\nfrom typing import Any, List, Dict, Callable, TYPE_CHECKING, Union, Set, Sequence\n\nfrom slither.core.declarations import (\n Modifier,\n Event,\n EnumContract,\n StructureContract,\n Function,\n)\nfrom slither.core.declarations.contract import Contract, ...
diff --git a/slither/solc_parsing/declarations/contract.py b/slither/solc_parsing/declarations/contract.py index f3202d00cb..74a1cbcf0d 100644 --- a/slither/solc_parsing/declarations/contract.py +++ b/slither/solc_parsing/declarations/contract.py @@ -170,10 +170,9 @@ def _parse_contract_info(self) -> None: ...
conan-io__conan-3839
Conan doesn't keep the username to log to server anymore From conan 1.8, When an authentication is required by the conan server, the username is now always asked event though it was specified by conan user. In older version, only the password was required. To reproduce: ``` $ conan user -c $ conan user usernam...
[ { "content": "import os\nimport sys\nfrom conans.client.output import ConanOutput\nfrom conans.errors import InvalidNameException, ConanException\nimport getpass\nfrom six.moves import input as raw_input\n\n\nclass UserIO(object):\n \"\"\"Class to interact with the user, used to show messages and ask for inf...
[ { "content": "import os\nimport sys\nfrom conans.client.output import ConanOutput\nfrom conans.errors import InvalidNameException, ConanException\nimport getpass\nfrom six.moves import input as raw_input\n\n\nclass UserIO(object):\n \"\"\"Class to interact with the user, used to show messages and ask for inf...
diff --git a/conans/client/userio.py b/conans/client/userio.py index 77eb86112e4..bfb09038de1 100644 --- a/conans/client/userio.py +++ b/conans/client/userio.py @@ -39,9 +39,11 @@ def get_pass(self): def request_login(self, remote_name, username=None): """Request user to input their name and password ...
readthedocs__readthedocs.org-3525
Flyout links incorrect on Mkdocs projects GitHub links in the sidebar footer contain an extraneous path. For example, on http://tracks.readthedocs.org/en/latest/upgrading/ the "View" link points to https://github.com/TracksApp/tracks/blob/master/home/docs/checkouts/readthedocs.org/user_builds/tracks/checkouts/latest/do...
[ { "content": "\"\"\"\nMkDocs_ backend for building docs.\n\n.. _MkDocs: http://www.mkdocs.org/\n\"\"\"\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals)\n\nimport json\nimport logging\nimport os\n\nimport yaml\nfrom django.conf import settings\nfrom django.template impo...
[ { "content": "\"\"\"\nMkDocs_ backend for building docs.\n\n.. _MkDocs: http://www.mkdocs.org/\n\"\"\"\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals)\n\nimport json\nimport logging\nimport os\n\nimport yaml\nfrom django.conf import settings\nfrom django.template impo...
diff --git a/readthedocs/doc_builder/backends/mkdocs.py b/readthedocs/doc_builder/backends/mkdocs.py index a211c115dac..2164a850104 100644 --- a/readthedocs/doc_builder/backends/mkdocs.py +++ b/readthedocs/doc_builder/backends/mkdocs.py @@ -111,11 +111,16 @@ def append_conf(self, **__): '%scss/readthedocs-...
ansible-collections__community.general-3867
Ansible Jira Community Module exits with error ### Summary When I use ansible jira module for creating jira ticket , it exits with below error . The interesting part it had created the jira ticket , but the task exists with an error . To see the full traceback, use -vvv. The error was: KeyError: 'body' fatal: ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2014, Steve Smith <ssmith@atlassian.com>\n# Atlassian open-source approval reference OSR-76.\n#\n# (c) 2020, Per Abildgaard Toft <per@minfejl.dk> Search and update function\n# (c) 2021, Brandon McNama <brandonmcnama@outlook.com> Issue attachment ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2014, Steve Smith <ssmith@atlassian.com>\n# Atlassian open-source approval reference OSR-76.\n#\n# (c) 2020, Per Abildgaard Toft <per@minfejl.dk> Search and update function\n# (c) 2021, Brandon McNama <brandonmcnama@outlook.com> Issue attachment ...
diff --git a/changelogs/fragments/3867-jira-fix-body.yaml b/changelogs/fragments/3867-jira-fix-body.yaml new file mode 100644 index 00000000000..0edb395e70f --- /dev/null +++ b/changelogs/fragments/3867-jira-fix-body.yaml @@ -0,0 +1,2 @@ +bugfixes: + - jira - fixed bug where module returns error related to dictionar...
praw-dev__praw-1868
Docs Enhancement ### Describe the solution you'd like submission.author_flair_text should be added to docs ### Describe alternatives you've considered _No response_ ### Additional context _No response_
[ { "content": "\"\"\"Provide the Submission class.\"\"\"\nfrom typing import TYPE_CHECKING, Any, Dict, List, Optional, Union\nfrom urllib.parse import urljoin\nfrom warnings import warn\n\nfrom prawcore import Conflict\n\nfrom ...const import API_PATH\nfrom ...exceptions import InvalidURL\nfrom ...util import _d...
[ { "content": "\"\"\"Provide the Submission class.\"\"\"\nfrom typing import TYPE_CHECKING, Any, Dict, List, Optional, Union\nfrom urllib.parse import urljoin\nfrom warnings import warn\n\nfrom prawcore import Conflict\n\nfrom ...const import API_PATH\nfrom ...exceptions import InvalidURL\nfrom ...util import _d...
diff --git a/praw/models/reddit/submission.py b/praw/models/reddit/submission.py index 7077095e5..4e2fbad98 100644 --- a/praw/models/reddit/submission.py +++ b/praw/models/reddit/submission.py @@ -396,6 +396,8 @@ class Submission(SubmissionListingMixin, UserContentMixin, FullnameMixin, Reddit Attribute ...
facebookresearch__hydra-522
Clean up test fixtures in Hydra and plugins Should use conftest.py to simplify
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n# type: ignore\nimport copy\nimport os\nimport platform\nfrom typing import List\n\nimport nox\nfrom nox.logger import logger\n\nBASE = os.path.abspath(os.path.dirname(__file__))\n\nDEFAULT_PYTHON_VERSIONS = [\"3.6\", \"3.7\",...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n# type: ignore\nimport copy\nimport os\nimport platform\nfrom typing import List\n\nimport nox\nfrom nox.logger import logger\n\nBASE = os.path.abspath(os.path.dirname(__file__))\n\nDEFAULT_PYTHON_VERSIONS = [\"3.6\", \"3.7\",...
diff --git a/hydra/test_utils/_conftest.py b/hydra/test_utils/_conftest.py new file mode 100644 index 00000000000..47b86562539 --- /dev/null +++ b/hydra/test_utils/_conftest.py @@ -0,0 +1,110 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +import copy +from typing import Any, Callable, List,...
akvo__akvo-rsr-3297
Add back API root page After versioning was implemented in the API, the default `api-root` view is broken.
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nim...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nim...
diff --git a/akvo/rest/urls.py b/akvo/rest/urls.py index 957e3b4227..efd60ba09f 100644 --- a/akvo/rest/urls.py +++ b/akvo/rest/urls.py @@ -114,6 +114,13 @@ router.register(r'(?P<version>(v1))/transaction_sector', views.TransactionSectorViewSet) router.register(r'(?P<version>(v1))/user', views.UserViewSet) + +# We t...
pyinstaller__pyinstaller-5547
Failure to correctly parse `ldconfig` output ## Description of the issue Failure to correctly parse `ldconfig` output. Started happening after latest `Arch` upgrade. I guess the `ldconfig` people changed their output a little bit. ## Context information (for bug reports) * Output of `pyinstaller --version`: ```4...
[ { "content": "# -*- coding: utf-8 -*-\n#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2021, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootload...
[ { "content": "# -*- coding: utf-8 -*-\n#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2021, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootload...
diff --git a/PyInstaller/depend/utils.py b/PyInstaller/depend/utils.py index baffb2a9f3..95846f39d5 100644 --- a/PyInstaller/depend/utils.py +++ b/PyInstaller/depend/utils.py @@ -399,6 +399,18 @@ def load_ldconfig_cache(): for line in text: # :fixme: this assumes libary names do not contain whitespace ...
nilearn__nilearn-2819
BUG: broken reference in example <!--Provide a brief description of the bug.--> Broken reference to vol_to_surf in: examples/01_plotting/plot_3d_map_to_surface_projection.py
[ { "content": "\"\"\"\nMaking a surface plot of a 3D statistical map\n=============================================\n\nproject a 3D statistical map onto a cortical mesh using\n:func:`nilearn.surface.vol_to_surf`. Display a surface plot of the projected\nmap using :func:`nilearn.plotting.plot_surf_stat_map` and a...
[ { "content": "\"\"\"\nMaking a surface plot of a 3D statistical map\n=============================================\n\nproject a 3D statistical map onto a cortical mesh using\n:func:`nilearn.surface.vol_to_surf`. Display a surface plot of the projected\nmap using :func:`nilearn.plotting.plot_surf_stat_map` and a...
diff --git a/examples/01_plotting/plot_3d_map_to_surface_projection.py b/examples/01_plotting/plot_3d_map_to_surface_projection.py index d20adc5084..932264dc2c 100644 --- a/examples/01_plotting/plot_3d_map_to_surface_projection.py +++ b/examples/01_plotting/plot_3d_map_to_surface_projection.py @@ -153,7 +153,7 @@ # Im...
huggingface__optimum-808
BetterTransformer support for Marian `The model type marian is not yet supported supported to be used with BetterTransformer.` Wondering if there is a way to get this working with BetterTransformer. I am trying to get this model translating faster. https://huggingface.co/Helsinki-NLP/opus-mt-zh-en?
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
diff --git a/docs/source/bettertransformer/overview.mdx b/docs/source/bettertransformer/overview.mdx index c8c1484834..fce82a24e0 100644 --- a/docs/source/bettertransformer/overview.mdx +++ b/docs/source/bettertransformer/overview.mdx @@ -39,6 +39,7 @@ The list of supported model below: - [HuBERT](https://arxiv.org/pd...
mozmeao__snippets-service-1437
Add Firefox VPN target It seems the Firefox VPN uses `e6eb0d1e856335fc`, previously named `Firefox FPN`
[ { "content": "from django.core.exceptions import ValidationError\nfrom django.forms import (ChoiceField, ModelChoiceField, ModelMultipleChoiceField,\n MultiValueField, MultipleChoiceField)\n\nfrom snippets.base.models import Addon, TargetedCountry\n\nfrom .widgets import JEXLMultiWidget...
[ { "content": "from django.core.exceptions import ValidationError\nfrom django.forms import (ChoiceField, ModelChoiceField, ModelMultipleChoiceField,\n MultiValueField, MultipleChoiceField)\n\nfrom snippets.base.models import Addon, TargetedCountry\n\nfrom .widgets import JEXLMultiWidget...
diff --git a/snippets/base/admin/fields.py b/snippets/base/admin/fields.py index be2eb1053..a6509130d 100644 --- a/snippets/base/admin/fields.py +++ b/snippets/base/admin/fields.py @@ -197,7 +197,8 @@ def __init__(self, **kwargs): ('e7ce535d93522896|98adfa37698f255b', 'Firefox Lockwise'), ('80...
zostera__django-bootstrap3-4
Error: "coercing to Unicode: need string or buffer, __proxy__ found" Trying to use bootstrap_form on the form @https://github.com/pennersr/django-allauth/blob/master/allauth/templates/account/login.html#L34 like ``` {% load bootstrap3 %} {% bootstrap_form form %} ``` results in ``` TypeError at /accounts/login/...
[ { "content": "from django.forms import widgets\nfrom django.forms.widgets import flatatt\nfrom django.utils.encoding import force_text\n\nfrom .html import add_css_class\nfrom .icons import render_icon\n\n\nFORM_GROUP_CLASS = 'form-group'\n\n\ndef render_formset(formset, **kwargs):\n forms = [render_form(f, ...
[ { "content": "from django.forms import widgets\nfrom django.forms.widgets import flatatt\nfrom django.utils.encoding import force_text\n\nfrom .html import add_css_class\nfrom .icons import render_icon\n\n\nFORM_GROUP_CLASS = 'form-group'\n\n\ndef render_formset(formset, **kwargs):\n forms = [render_form(f, ...
diff --git a/bootstrap3/forms.py b/bootstrap3/forms.py index dd5b968a..a419ae25 100644 --- a/bootstrap3/forms.py +++ b/bootstrap3/forms.py @@ -94,7 +94,8 @@ def render_field(field, inline=False, horizontal=False, field_class=None, label_ # Wrap the rendered field in its label if necessary if put_inside_labe...
safe-global__safe-config-service-698
500 Error on unsanitized URL query params **Describe the bug** Error response with 500 Internal server Error is returned to the clients when a unsanitized URL query param is sent to the service. **To Reproduce** Steps to reproduce the behavior: - Check: https://safe-config.safe.global/api/v1/safe-apps/?url=%00 ...
[ { "content": "from typing import Any\n\nfrom django.db.models import Q, QuerySet\nfrom django.utils.decorators import method_decorator\nfrom django.views.decorators.cache import cache_page\nfrom drf_yasg import openapi\nfrom drf_yasg.utils import swagger_auto_schema\nfrom rest_framework.generics import ListAPIV...
[ { "content": "from typing import Any\n\nfrom django.db.models import Q, QuerySet\nfrom django.utils.decorators import method_decorator\nfrom django.views.decorators.cache import cache_page\nfrom drf_yasg import openapi\nfrom drf_yasg.utils import swagger_auto_schema\nfrom rest_framework.generics import ListAPIV...
diff --git a/src/safe_apps/tests/test_views.py b/src/safe_apps/tests/test_views.py index c9e6e88d..9e415086 100644 --- a/src/safe_apps/tests/test_views.py +++ b/src/safe_apps/tests/test_views.py @@ -267,6 +267,16 @@ def test_apps_returned_on_non_existent_client_url(self) -> None: self.assertEqual(response.stat...
pypa__pipenv-1718
Error when exit from pipenv shell Windows 10 x64 + python 3.6.3 ``` λ exit Traceback (most recent call last): File "c:\tools\anaconda3\lib\site-packages\pipenv\core.py", line 2107, in do_shell c = pexpect.spawn( AttributeError: module 'pexpect' has no attribute 'spawn' During handling of the above exce...
[ { "content": "from __future__ import print_function, absolute_import, unicode_literals\n\nimport os\nimport sys\nimport argparse\nimport shutil\nimport random\nimport textwrap\nfrom functools import partial\nfrom subprocess import CalledProcessError\nfrom pathlib import Path\n\ntry:\n from shutil import get_...
[ { "content": "from __future__ import print_function, absolute_import, unicode_literals\n\nimport os\nimport sys\nimport argparse\nimport shutil\nimport random\nimport textwrap\nfrom functools import partial\nfrom subprocess import CalledProcessError\nfrom pathlib import Path\n\ntry:\n from shutil import get_...
diff --git a/pipenv/patched/pew/pew.py b/pipenv/patched/pew/pew.py index b12915b5d4..b911bf3fb6 100644 --- a/pipenv/patched/pew/pew.py +++ b/pipenv/patched/pew/pew.py @@ -153,7 +153,16 @@ def fork_shell(env, shellcmd, cwd): if 'VIRTUAL_ENV' in os.environ: err("Be aware that this environment will be nested...
WordPress__openverse-api-902
Use `terms` instead of `term` ## Problem <!-- Describe a problem solved by this feature; or delete the section entirely. --> In the search controller, when performing filtering for more than one value, we use an array of `term` queries instead of using `terms`. https://github.com/WordPress/openverse-api/blob/6cc0...
[ { "content": "from __future__ import annotations\n\nimport json\nimport logging as log\nimport pprint\nfrom itertools import accumulate\nfrom math import ceil\nfrom typing import Any, List, Literal, Optional, Tuple\n\nfrom django.conf import settings\nfrom django.core.cache import cache\nfrom rest_framework.req...
[ { "content": "from __future__ import annotations\n\nimport json\nimport logging as log\nimport pprint\nfrom itertools import accumulate\nfrom math import ceil\nfrom typing import Any, List, Literal, Optional, Tuple\n\nfrom django.conf import settings\nfrom django.core.cache import cache\nfrom rest_framework.req...
diff --git a/api/catalog/api/controllers/search_controller.py b/api/catalog/api/controllers/search_controller.py index 1dcb5e90d..e30aa3b47 100644 --- a/api/catalog/api/controllers/search_controller.py +++ b/api/catalog/api/controllers/search_controller.py @@ -241,15 +241,16 @@ def _apply_filter( """ if ser...
scipy__scipy-11229
OverflowError in resample_poly (upfirdn) scipy.signal.resample_poly fails if the output vector length would be greater than 2^31-1. ``` Traceback (most recent call last): File "<ipython-input-1-ac5d2b0a1632>", line 11, in <module> yy = resample_poly(y, 128, 1) File "F:\Programs\Miniconda3\lib\site-pa...
[ { "content": "# Code adapted from \"upfirdn\" python library with permission:\n#\n# Copyright (c) 2009, Motorola, Inc\n#\n# All Rights Reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are\n# met:\n#\n# * Redi...
[ { "content": "# Code adapted from \"upfirdn\" python library with permission:\n#\n# Copyright (c) 2009, Motorola, Inc\n#\n# All Rights Reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are\n# met:\n#\n# * Redi...
diff --git a/scipy/signal/_upfirdn.py b/scipy/signal/_upfirdn.py index 2d796395b7fa..578fb1772415 100644 --- a/scipy/signal/_upfirdn.py +++ b/scipy/signal/_upfirdn.py @@ -89,7 +89,9 @@ def apply_filter(self, x, axis=-1, mode='constant', cval=0): """Apply the prepared filter to the specified axis of a N-D signa...
scipy__scipy-10351
inaccurate std implementation in binned_statistic stats/_binned_statistic_dd.py uses numerically unstable method for calculating standard deviation: ``` flatsum = np.bincount(binnumbers, values[vv]) flatsum2 = np.bincount(binnumbers, values[vv] ** 2) result[vv, a] = np.sqrt(flatsum2[a] / flatcount[a] - ...
[ { "content": "from __future__ import division, print_function, absolute_import\n\nimport numpy as np\nfrom scipy._lib.six import callable, xrange\nfrom scipy._lib._numpy_compat import suppress_warnings\nfrom collections import namedtuple\n\n__all__ = ['binned_statistic',\n 'binned_statistic_2d',\n ...
[ { "content": "from __future__ import division, print_function, absolute_import\n\nimport numpy as np\nfrom scipy._lib.six import callable, xrange\nfrom scipy._lib._numpy_compat import suppress_warnings\nfrom collections import namedtuple\n\n__all__ = ['binned_statistic',\n 'binned_statistic_2d',\n ...
diff --git a/scipy/stats/_binned_statistic.py b/scipy/stats/_binned_statistic.py index 4ac02b1e21a4..192d5f28b317 100644 --- a/scipy/stats/_binned_statistic.py +++ b/scipy/stats/_binned_statistic.py @@ -562,11 +562,10 @@ def binned_statistic_dd(sample, values, statistic='mean', result.fill(0) flatcoun...
Qiskit__qiskit-862
Make interactive visualizations default for Jupyter <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea does not exist. --> ### What is the expected enhancement? The interactive visualizations contributed in PR #76...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright 2018, IBM.\n#\n# This source code is licensed under the Apache License, Version 2.0 found in\n# the LICENSE.txt file in the root directory of this source tree.\n\n\"\"\"Main QISKit visualization methods.\"\"\"\n\nfrom ._circuit_visualization import circuit_dr...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright 2018, IBM.\n#\n# This source code is licensed under the Apache License, Version 2.0 found in\n# the LICENSE.txt file in the root directory of this source tree.\n\n\"\"\"Main QISKit visualization methods.\"\"\"\n\nimport sys\n\nfrom ._circuit_visualization imp...
diff --git a/qiskit/tools/visualization/__init__.py b/qiskit/tools/visualization/__init__.py index 692baa72d61d..3671aad724dd 100644 --- a/qiskit/tools/visualization/__init__.py +++ b/qiskit/tools/visualization/__init__.py @@ -7,7 +7,18 @@ """Main QISKit visualization methods.""" +import sys + from ._circuit_visu...
librosa__librosa-1808
Can Python 3.12 installation be supported I try using`pip3.12 install librosa` is error,May I ask when we can support it ![image](https://github.com/librosa/librosa/assets/29832297/50bc21fe-1a31-41ab-9c9b-dff49073eb4d)
[ { "content": "# -*- coding: utf-8 -*-\n#\n# librosa documentation build configuration file, created by\n# sphinx-quickstart on Tue Jun 25 13:12:33 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# librosa documentation build configuration file, created by\n# sphinx-quickstart on Tue Jun 25 13:12:33 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a15c2c20e0..b09c7a30e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,13 +47,18 @@ jobs: channel-priority: "strict" envfile: ".github/environment-ci.yml" - ...
googleapis__google-cloud-python-677
Silent error when calling datastore.put() on nonlist Repro instructions: ``` ent = datastore.Entity(key=datastore.Key('test',1)) datastore.put(ent) ``` Entity is not put in the datastore, and call completes successfully.
[ { "content": "# Copyright 2014 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 2014 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/gcloud/datastore/api.py b/gcloud/datastore/api.py index d063e01a470c..246641af5a18 100644 --- a/gcloud/datastore/api.py +++ b/gcloud/datastore/api.py @@ -20,6 +20,7 @@ from gcloud.datastore import _implicit_environ from gcloud.datastore.batch import Batch +from gcloud.datastore.entity import Entity fr...
shuup__shuup-1677
Make sure all Dashboard blocks are filtering by the current shop One case is here: - https://github.com/shuup/shuup/blob/master/shuup/admin/modules/sales_dashboard/dashboard.py#L278 - https://github.com/shuup/shuup/blob/master/shuup/admin/modules/sales_dashboard/dashboard.py#L277
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of Shuup.\n#\n# Copyright (c) 2012-2018, Shuup Inc. All rights reserved.\n#\n# This source code is licensed under the OSL-3.0 license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom __future__ import unicode_literals\n\nf...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of Shuup.\n#\n# Copyright (c) 2012-2018, Shuup Inc. All rights reserved.\n#\n# This source code is licensed under the OSL-3.0 license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom __future__ import unicode_literals\n\nf...
diff --git a/shuup/admin/modules/sales_dashboard/dashboard.py b/shuup/admin/modules/sales_dashboard/dashboard.py index 3619e1a38f..c3f8d13199 100644 --- a/shuup/admin/modules/sales_dashboard/dashboard.py +++ b/shuup/admin/modules/sales_dashboard/dashboard.py @@ -274,8 +274,8 @@ def get_shop_overview_block(request, curr...