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
⌀
tensorflow__addons-1947
Unable to restore model using crf_decode **System information** - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS Cataline 10.15.3 - TensorFlow version and how it was installed (source or binary): 2.2.0 (from pypi) - TensorFlow-Addons version and how it was installed (source or binary): 0.7.0 (from py...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/tensorflow_addons/text/crf.py b/tensorflow_addons/text/crf.py index 4ddcc1dcac..afd5cc8d27 100644 --- a/tensorflow_addons/text/crf.py +++ b/tensorflow_addons/text/crf.py @@ -422,6 +422,20 @@ def call(self, inputs, state): backpointers = tf.cast(backpointers, dtype=tf.int32) return backpoi...
urllib3__urllib3-2795
Write a Migration Guide for v1.26.x -> v2.0.0 Can be a part of the v2.0.0 Roadmap documentation. Would be good to detail the specific steps and causes of all DeprecationWarnings and be URL-linkable so we can point to these docs within the actual warnings.
[ { "content": "# This file is protected via CODEOWNERS\n__version__ = \"2.0.0.dev0\"\n", "path": "src/urllib3/_version.py" }, { "content": "import functools\nimport logging\nimport warnings\nfrom types import TracebackType\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Dict,\n FrozenSet,...
[ { "content": "# This file is protected via CODEOWNERS\n__version__ = \"2.0.0a1\"\n", "path": "src/urllib3/_version.py" }, { "content": "import functools\nimport logging\nimport warnings\nfrom types import TracebackType\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Dict,\n FrozenSet,\n ...
diff --git a/CHANGES.rst b/CHANGES.rst index c7d85a7f92..ae556f46e4 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,124 @@ +2.0.0a1 (2022-11-15) +==================== + +Read the `v2.0 migration guide <https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html>`__ for help upgrading to the latest version of...
pallets__click-2093
click.confirm does not cooperate with readline This follows on from #665. Consider this code again, using `click.confirm` instead of `click.prompt`: ```python import click, readline click.confirm("Input") ``` - Type anything then backspace - **Actual behaviour:** the entire line is erased - **Expect...
[ { "content": "import inspect\nimport io\nimport itertools\nimport os\nimport sys\nimport typing\nimport typing as t\nfrom gettext import gettext as _\n\nfrom ._compat import isatty\nfrom ._compat import strip_ansi\nfrom ._compat import WIN\nfrom .exceptions import Abort\nfrom .exceptions import UsageError\nfrom...
[ { "content": "import inspect\nimport io\nimport itertools\nimport os\nimport sys\nimport typing\nimport typing as t\nfrom gettext import gettext as _\n\nfrom ._compat import isatty\nfrom ._compat import strip_ansi\nfrom ._compat import WIN\nfrom .exceptions import Abort\nfrom .exceptions import UsageError\nfrom...
diff --git a/CHANGES.rst b/CHANGES.rst index c52c16007..e6e8e9bf3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,8 @@ Unreleased - Fix issue with ``Path(resolve_path=True)`` type creating invalid paths. :issue:`2088` +- Importing ``readline`` does not cause the ``confirm()`` prompt to + disappear ...
xonsh__xonsh-3735
Please, add 'prompt_toolkit' to general requirements. I'm having errors in 'abbrevs' and a lot of things printed at the terminal startup. I use Manjaro Linux and neither the system package, nor the "Arch User Repository" package, nor the package in the "pip" requires the installation of "prompt_toolkit" by DEFAULT. I...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: ascii -*-\n\"\"\"The xonsh installer.\"\"\"\n# Note: Do not embed any non-ASCII characters in this file until pip has been\n# fixed. See https://github.com/xonsh/xonsh/issues/487.\nimport os\nimport sys\nimport json\nimport subprocess\n\ntry:\n from tempfil...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: ascii -*-\n\"\"\"The xonsh installer.\"\"\"\n# Note: Do not embed any non-ASCII characters in this file until pip has been\n# fixed. See https://github.com/xonsh/xonsh/issues/487.\nimport os\nimport sys\nimport json\nimport subprocess\n\ntry:\n from tempfil...
diff --git a/.gitignore b/.gitignore index 6382119f29..f16d3f9f76 100644 --- a/.gitignore +++ b/.gitignore @@ -37,7 +37,8 @@ bin/ /lib/ include/ venv/ -.venv/ +.venv*/ + # Mac .DS_Store diff --git a/docs/appimage.rst b/docs/appimage.rst index d5bae56fd2..61b5d179b5 100644 --- a/docs/appimage.rst +++ b/docs/appim...
rucio__rucio-5004
Deletion timeout does not work on GridFTP Motivation ---------- The newly-introduced deletion timeout does not appear to work on GridFTP. https://github.com/rucio/rucio/blob/6a853eb36b25cbbd2b49159def9d6db93dd16422/lib/rucio/rse/protocols/gfal.py#L241 Modification ------------ Replace `GSIFTP PLUGIN` with...
[ { "content": "# Copyright 2014-2020 CERN for the benefit of the ATLAS collaboration.\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/LICE...
[ { "content": "# Copyright 2014-2020 CERN for the benefit of the ATLAS collaboration.\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/LICE...
diff --git a/lib/rucio/rse/protocols/gfal.py b/lib/rucio/rse/protocols/gfal.py index a47df4bee5..f238300fa0 100644 --- a/lib/rucio/rse/protocols/gfal.py +++ b/lib/rucio/rse/protocols/gfal.py @@ -238,7 +238,7 @@ def connect(self): timeout = int(TIMEOUT) self.__ctx.set_opt_integer("HTTP ...
ansible__ansible-modules-core-5550
cloudformation module on Ansible 2.2.0 throws "PhysicalResourceId" error intermittently. <!--- 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 cloudformation ##### ANSIBLE VERSION <...
[ { "content": "#!/usr/bin/python\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 version...
[ { "content": "#!/usr/bin/python\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 version...
diff --git a/cloud/amazon/cloudformation.py b/cloud/amazon/cloudformation.py index 0d02ad70cb3..f5b713e046b 100644 --- a/cloud/amazon/cloudformation.py +++ b/cloud/amazon/cloudformation.py @@ -464,7 +464,7 @@ def main(): for res in reslist.get('StackResourceSummaries', []): stack_resources.append(...
biolab__orange3-6549
A real "formula"/"calculation" widget <!-- Thanks for taking the time to submit a feature request! For the best chance at our team considering your request, please answer the following questions to the best of your ability. --> **What's your use case?** Hello, I would like to make some calculations on my dat...
[ { "content": "\"\"\"\nFeature Constructor\n\nA widget for defining (constructing) new features from values\nof other variables.\n\n\"\"\"\nimport re\nimport copy\nimport functools\nimport builtins\nimport math\nimport random\nimport logging\nimport ast\nimport types\nimport unicodedata\n\nfrom concurrent.future...
[ { "content": "\"\"\"\nFeature Constructor\n\nA widget for defining (constructing) new features from values\nof other variables.\n\n\"\"\"\nimport re\nimport copy\nimport functools\nimport builtins\nimport math\nimport random\nimport logging\nimport ast\nimport types\nimport unicodedata\n\nfrom concurrent.future...
diff --git a/Orange/widgets/data/owfeatureconstructor.py b/Orange/widgets/data/owfeatureconstructor.py index 4ec2eb6dd01..9cb2abeb5f6 100644 --- a/Orange/widgets/data/owfeatureconstructor.py +++ b/Orange/widgets/data/owfeatureconstructor.py @@ -509,12 +509,12 @@ def is_valid_item(self, setting, item, attrs, metas): ...
mitmproxy__mitmproxy-2833
[Configuration file] keys are not used ##### Steps to reproduce the problem: 1. Create a configuration file at .mitmproxy/config.yaml 2. Set this configuration: mode: "transparent" showhost: true 3. Start mitmproxy using this command : "mitmproxy --conf config.yaml" (I'm on the .mitmproxy folder of course) The...
[ { "content": "import os\nimport importlib.util\nimport importlib.machinery\nimport time\nimport sys\nimport types\nimport typing\n\nfrom mitmproxy import addonmanager\nfrom mitmproxy import exceptions\nfrom mitmproxy import flow\nfrom mitmproxy import command\nfrom mitmproxy import eventsequence\nfrom mitmproxy...
[ { "content": "import os\nimport importlib.util\nimport importlib.machinery\nimport time\nimport sys\nimport types\nimport typing\n\nfrom mitmproxy import addonmanager\nfrom mitmproxy import exceptions\nfrom mitmproxy import flow\nfrom mitmproxy import command\nfrom mitmproxy import eventsequence\nfrom mitmproxy...
diff --git a/mitmproxy/addons/script.py b/mitmproxy/addons/script.py index 2d0303215d..0a52435913 100644 --- a/mitmproxy/addons/script.py +++ b/mitmproxy/addons/script.py @@ -44,13 +44,15 @@ class Script: def __init__(self, path): self.name = "scriptmanager:" + path self.path = path - self...
falconry__falcon-1883
deprecated() utility raises AttributeError under Meinheld The inner function of our [`deprecated()`](https://falcon.readthedocs.io/en/latest/api/util.html#falcon.deprecated) utility generator grabs the current stack frame object via [`inspect.getcurrentframe()`](https://docs.python.org/3/library/inspect.html#inspect.cu...
[ { "content": "# Copyright 2013 by Rackspace Hosting, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requir...
[ { "content": "# Copyright 2013 by Rackspace Hosting, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requir...
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c299f121b..16cd2f864 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -42,6 +42,7 @@ jobs: - "e2e_chrome" - "e2e_firefox" - "no_optional_packages" + - "wsgi_servers" ...
sublimelsp__LSP-1784
Diagnostics underline in the view are not show if "diagnostics_gutter_marker" is set to "" **Describe the bug** If "diagnostics_gutter_marker" is set to "" Diagnostics underlines are not visible in the view: <img width="786" alt="Screenshot 2021-07-06 at 13 38 37" src="https://user-images.githubusercontent.com/2...
[ { "content": "from .code_lens import CodeLensView\nfrom .core.progress import ViewProgressReporter\nfrom .core.promise import Promise\nfrom .core.protocol import CodeLens\nfrom .core.protocol import DiagnosticTag\nfrom .core.protocol import DocumentUri\nfrom .core.protocol import Notification\nfrom .core.protoc...
[ { "content": "from .code_lens import CodeLensView\nfrom .core.progress import ViewProgressReporter\nfrom .core.promise import Promise\nfrom .core.protocol import CodeLens\nfrom .core.protocol import DiagnosticTag\nfrom .core.protocol import DocumentUri\nfrom .core.protocol import Notification\nfrom .core.protoc...
diff --git a/plugin/session_view.py b/plugin/session_view.py index 008a48574..44dfdc0fc 100644 --- a/plugin/session_view.py +++ b/plugin/session_view.py @@ -217,8 +217,7 @@ def _draw_diagnostics(self, severity: int, max_severity_level: int, flags: int, for key_tag in key_tags.values(): self.view.e...
pyro-ppl__pyro-669
Have Pyro dev branch track PyTorch's master branch For the foreseeable future (until distributions are migrated), we would like travis CI to build off of PyTorch master, rather than the release branch. Steps for a potential strategy: - [ ] Use travis cache to cache the packages installed via pip. - [ ] Build Py...
[ { "content": "\"\"\"\nAn implementation of a Deep Markov Model in Pyro based on reference [1].\nThis is essentially the DKS variant outlined in the paper. The primary difference\nbetween this implementation and theirs is that in our version any KL divergence terms\nin the ELBO are estimated via sampling, while ...
[ { "content": "\"\"\"\nAn implementation of a Deep Markov Model in Pyro based on reference [1].\nThis is essentially the DKS variant outlined in the paper. The primary difference\nbetween this implementation and theirs is that in our version any KL divergence terms\nin the ELBO are estimated via sampling, while ...
diff --git a/.travis.yml b/.travis.yml index ead5c90b68..4dcb72b330 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,12 +7,16 @@ env: - PYTHONPATH=$PWD:$PYTHONPATH install: - # install pytorch and its dependencies + # download and install PyTorch wheel + - pip install --upgrade awscli + - mkdir ...
Lightning-AI__pytorch-lightning-1865
diable val and test shuffling Fixes part of #1551
[ { "content": "import platform\nfrom abc import ABC, abstractmethod\nfrom typing import Union, List, Tuple, Callable\n\nimport torch.distributed as torch_distrib\nfrom torch.utils.data import DataLoader, RandomSampler\nfrom torch.utils.data.distributed import DistributedSampler\n\nfrom pytorch_lightning.core imp...
[ { "content": "import platform\nfrom abc import ABC, abstractmethod\nfrom typing import Union, List, Tuple, Callable\n\nimport torch.distributed as torch_distrib\nfrom torch.utils.data import DataLoader, RandomSampler\nfrom torch.utils.data.distributed import DistributedSampler\n\nfrom pytorch_lightning.core imp...
diff --git a/pytorch_lightning/trainer/data_loading.py b/pytorch_lightning/trainer/data_loading.py index b84e2d27a667e..fff67d1042334 100644 --- a/pytorch_lightning/trainer/data_loading.py +++ b/pytorch_lightning/trainer/data_loading.py @@ -214,7 +214,7 @@ def _reset_eval_dataloader(self, model: LightningModule, mode: ...
aws-cloudformation__cfn-lint-877
E3002, E3003, E3012 - AWS::SSM::MaintenanceWindowTarget errors cfn-lint version: 0.19.1 cfn-lint -u has been run I am unable to to get a clean lint on a SSM template file that seems alright and that has loaded properly in AWS. Would really appreciate any assistance. The documentation is here on MaintenanceWi...
[ { "content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
[ { "content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
diff --git a/src/cfnlint/data/CloudSpecs/ap-east-1.json b/src/cfnlint/data/CloudSpecs/ap-east-1.json index 8ea1c06bca..05eac0a54d 100644 --- a/src/cfnlint/data/CloudSpecs/ap-east-1.json +++ b/src/cfnlint/data/CloudSpecs/ap-east-1.json @@ -20569,7 +20569,6 @@ "Targets": { "Documentation": "http://doc...
qutebrowser__qutebrowser-3266
Bigger pinned tabs Currently pinned tabs only take minimum space and are not evenly spaced like normal tabs are. This is a wanted feature. But it would be nice to have a setting so that pinned tabs have the same size as normal tabs. To distinguish from normal tabs users can use the tabs.title.format_pinned setting ...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2017 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2017 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index e8581563b9d..21bc9140e01 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -1358,6 +1358,11 @@ tabs.indicator.padding: tabs.width.pinned: deleted: true +tabs.pinned.shrink: + default: ...
conda__conda-build-1456
Regression: --version not respected in conda-build-2.0.4 skeleton The --version flag does not seem to be respected by conda skeleton. version is conda-build-2.0.4. ``` (bjorn3) bjorn@bjorn-ThinkPad-T450s:~/Desktop$ conda skeleton pypi PrettyTable --version 0.7.2 Warning, the following versions were found for PrettyTab...
[ { "content": "# (c) Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\n\n\"\"\"\nThis file defines the public API for conda-build. Adding or removi...
[ { "content": "# (c) Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\n\n\"\"\"\nThis file defines the public API for conda-build. Adding or removi...
diff --git a/conda_build/api.py b/conda_build/api.py index 18c03499a8..3a412e22b8 100644 --- a/conda_build/api.py +++ b/conda_build/api.py @@ -165,6 +165,13 @@ def skeletonize(packages, repo, output_dir=".", version=None, recursive=False, """Generate a conda recipe from an external repo. Translates metadata from ...
plotly__dash-176
Falsey values ("", 0, [], {}, False) are as bad as None In these instances, all other falsey values ("", 0, [], {}, False, etc.) are just as dangerous as `None` so we should treat them as if they were `None`. This approach replaces an empty `name` with 'dash' even if the caller provides a `server`.
[ { "content": "import collections\nimport importlib\nimport json\nimport pkgutil\nimport warnings\nfrom flask import Flask, Response\nfrom flask_compress import Compress\nimport flask\nimport plotly\n\nimport dash_renderer\n\nfrom .dependencies import Event, Input, Output, State\nfrom .resources import Scripts, ...
[ { "content": "import collections\nimport importlib\nimport json\nimport pkgutil\nimport warnings\nfrom flask import Flask, Response\nfrom flask_compress import Compress\nimport flask\nimport plotly\n\nimport dash_renderer\n\nfrom .dependencies import Event, Input, Output, State\nfrom .resources import Scripts, ...
diff --git a/dash/dash.py b/dash/dash.py index 3e663d455e..07477f2825 100644 --- a/dash/dash.py +++ b/dash/dash.py @@ -35,13 +35,9 @@ def __init__( See https://github.com/plotly/dash/issues/141 for details. ''', DeprecationWarning) + name = name or 'dash' # allow user...
microsoft__hi-ml-771
Workspace config path argument in runner is not used consistently When providing the `workspace_config_path` argument to the runner, some of the methods still try to use the default location for `config.json` log: ``` Found the config file in: /home/antonsc/cpath/cyted_config.json Logged into AzureML workspace Cy...
[ { "content": "#! /usr/bin/env python\n\n# ------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.\n# ----------------...
[ { "content": "#! /usr/bin/env python\n\n# ------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.\n# ----------------...
diff --git a/hi-ml/src/health_ml/runner.py b/hi-ml/src/health_ml/runner.py index 302cf794d..44b6aa7be 100755 --- a/hi-ml/src/health_ml/runner.py +++ b/hi-ml/src/health_ml/runner.py @@ -238,7 +238,7 @@ def after_submission_hook(azure_run: Run, *args: Any) -> None: else: hyperparam_args = se...
django-extensions__django-extensions-594
Django 1.7 JSONField migrations broken BUG: adding a new JSONField to an existing Model sets the default value for existing Model instances incorrectly - the value stored in the DB is `"{}"` instead of just `{}`. Steps below: **1. Create a migration for the following model:** ``` class JSONTest(models.Model): set...
[ { "content": "\"\"\"\nJSONField automatically serializes most Python terms to JSON data.\nCreates a TEXT field with a default value of \"{}\". See test_json.py for\nmore information.\n\n from django.db import models\n from django_extensions.db.fields import json\n\n class LOL(models.Model):\n extra = json....
[ { "content": "\"\"\"\nJSONField automatically serializes most Python terms to JSON data.\nCreates a TEXT field with a default value of \"{}\". See test_json.py for\nmore information.\n\n from django.db import models\n from django_extensions.db.fields import json\n\n class LOL(models.Model):\n extra = json....
diff --git a/django_extensions/db/fields/json.py b/django_extensions/db/fields/json.py index 7080913f5..0d69a6e50 100644 --- a/django_extensions/db/fields/json.py +++ b/django_extensions/db/fields/json.py @@ -94,7 +94,11 @@ def get_db_prep_save(self, value, connection, **kwargs): """Convert our JSON object to ...
nextcloud__appstore-73
Nightly support - nightlies don't have a separate version number but a flag: ``` curl -X POST -u "user:password" http://localhost:8000/api/v1/apps/releases -H "Content-Type: application/json" -d '{"download":"https://example.com/release.tar.gz", "nightly":true }' ``` - this is also listed in the "get all apps" API wit...
[ { "content": "from django.conf.urls import url\nfrom django.views.decorators.http import etag\nfrom nextcloudappstore.core.api.v1.views import Apps, AppReleases, \\\n app_api_etag, Categories, category_api_etag\n\nurlpatterns = [\n url(r'^platform/(?P<version>\\d+\\.\\d+\\.\\d+)/apps\\.json$',\n et...
[ { "content": "from django.conf.urls import url\nfrom django.views.decorators.http import etag\nfrom nextcloudappstore.core.api.v1.views import Apps, AppReleases, \\\n app_api_etag, Categories, category_api_etag\n\nurlpatterns = [\n url(r'^platform/(?P<version>\\d+\\.\\d+\\.\\d+)/apps\\.json$',\n et...
diff --git a/docs/restapi.rst b/docs/restapi.rst index 84a9e417bf9..fdca1a3ad72 100644 --- a/docs/restapi.rst +++ b/docs/restapi.rst @@ -59,6 +59,7 @@ This route will return all releases to display inside Nextcloud's apps admin are "releases": [ { "version": "8.8.0", +...
apache__tvm-2913
[TVM][RELAY] Incomplete quantize annotate I changed the `compile` function in [deploy ssd gluoncv](https://docs.tvm.ai/tutorials/frontend/deploy_ssd_gluoncv.html#sphx-glr-tutorials-frontend-deploy-ssd-gluoncv-py) tutorial to have default quantization pass ``` def compile(target): net, params = relay.frontend.f...
[ { "content": "#pylint: disable=unused-argument\n\"\"\"Internal module for registering attribute for annotation.\"\"\"\nfrom __future__ import absolute_import\nimport warnings\n\nimport topi\nfrom . import _quantize\nfrom .quantize import QAnnotateKind, current_qconfig\nfrom .quantize import _conv_counter, _set_...
[ { "content": "#pylint: disable=unused-argument\n\"\"\"Internal module for registering attribute for annotation.\"\"\"\nfrom __future__ import absolute_import\nimport warnings\n\nimport topi\nfrom . import _quantize\nfrom .quantize import QAnnotateKind, current_qconfig\nfrom .quantize import _conv_counter, _set_...
diff --git a/python/tvm/relay/quantize/_annotate.py b/python/tvm/relay/quantize/_annotate.py index 08d56a3ca23f..40ea99ae6b6e 100644 --- a/python/tvm/relay/quantize/_annotate.py +++ b/python/tvm/relay/quantize/_annotate.py @@ -253,11 +253,10 @@ def concatenate_rewrite(ref_call, new_args, ctx): # make sure the in...
aio-libs__aiohttp-3065
Change appveyor account https://github.com/aio-libs/aiohttp/pull/2990#discussion_r187559585: > This requires owner privileges AFAIR, so I can't. It's a bit tricky, but the bottom line is that you create a team there mapped to the team in GitHub and give it some access there. Also you need to somehow create an org li...
[ { "content": "import codecs\nimport pathlib\nimport re\nimport sys\nfrom distutils.command.build_ext import build_ext\nfrom distutils.errors import (CCompilerError, DistutilsExecError,\n DistutilsPlatformError)\n\nfrom setuptools import Extension, setup\n\n\nif sys.version_info < (3...
[ { "content": "import codecs\nimport pathlib\nimport re\nimport sys\nfrom distutils.command.build_ext import build_ext\nfrom distutils.errors import (CCompilerError, DistutilsExecError,\n DistutilsPlatformError)\n\nfrom setuptools import Extension, setup\n\n\nif sys.version_info < (3...
diff --git a/README.rst b/README.rst index 4d8982f0310..3d73a4d1437 100644 --- a/README.rst +++ b/README.rst @@ -10,10 +10,15 @@ Async http client/server framework | .. image:: https://travis-ci.com/aio-libs/aiohttp.svg?branch=master - :target: https://travis-ci.com/aio-libs/aiohttp + :target: https://travis-c...
HypothesisWorks__hypothesis-522
The data strategy isn‘t documented Spotted while triaging #519. It doesn’t appear anywhere in <http://hypothesis.readthedocs.io/en/latest/data.html?highlight=data>.
[ { "content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2016 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f...
[ { "content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2016 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f...
diff --git a/src/hypothesis/strategies.py b/src/hypothesis/strategies.py index 9e2a3319b0..582a3c21f4 100644 --- a/src/hypothesis/strategies.py +++ b/src/hypothesis/strategies.py @@ -40,14 +40,14 @@ 'choices', 'streaming', 'booleans', 'integers', 'floats', 'complex_numbers', 'fractions', 'decimals', - ...
conan-io__conan-center-index-4080
[package] xmlsec/1.2.30: Android build failed <!-- Please don't forget to update the issue title. Include all applicable information to help us reproduce your problem. --> ### Package and Environment Details (include every applicable attribute) * Package Name/Version: **xmlsec/1.2.30** * Operating Syst...
[ { "content": "from conans import ConanFile, tools, AutoToolsBuildEnvironment, VisualStudioBuildEnvironment\nfrom contextlib import contextmanager\nimport glob\nimport os\n\n\nclass Libxml2Conan(ConanFile):\n name = \"libxml2\"\n url = \"https://github.com/conan-io/conan-center-index\"\n description = \...
[ { "content": "from conans import ConanFile, tools, AutoToolsBuildEnvironment, VisualStudioBuildEnvironment\nfrom contextlib import contextmanager\nimport glob\nimport os\n\n\nclass Libxml2Conan(ConanFile):\n name = \"libxml2\"\n url = \"https://github.com/conan-io/conan-center-index\"\n description = \...
diff --git a/recipes/libxml2/all/conanfile.py b/recipes/libxml2/all/conanfile.py index 13c569b0e33c6..771ca8c7d2dba 100644 --- a/recipes/libxml2/all/conanfile.py +++ b/recipes/libxml2/all/conanfile.py @@ -254,8 +254,7 @@ def package_info(self): bindir = os.path.join(self.package_folder, "bin") ...
pwndbg__pwndbg-637
Context displays wrong registers values for frames other than the newest one There are two bugs regarding displaying of registers: 1. Wrong registers read 2. Improper caching ### Wrong registers read We read registers from `newest_frame` instead of `selected_frame` - as a result, we display registers not from t...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nReading register value from the inferior, and provides a\nstandardized interface to registers like \"sp\" and \"pc\".\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfro...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nReading register value from the inferior, and provides a\nstandardized interface to registers like \"sp\" and \"pc\".\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfro...
diff --git a/pwndbg/regs.py b/pwndbg/regs.py index 209f575700e..a84ae4edd2f 100644 --- a/pwndbg/regs.py +++ b/pwndbg/regs.py @@ -249,7 +249,7 @@ def gdb77_get_register(name): @pwndbg.proc.OnlyWhenRunning def gdb79_get_register(name): - return gdb.newest_frame().read_register(name) + return gdb.selected_frame(...
meltano__meltano-7636
bug: When meltano.yml is empty, no error message is printed. Rather, it just mentions to reach out to community ### Meltano Version 2.19.0 ### Python Version 3.9 ### Bug scope CLI (options, error messages, logging, etc.) ### Operating System Windows - WSL(Ubuntu) ### Description when `meltano...
[ { "content": "\"\"\"Base Error classes.\"\"\"\n\nfrom __future__ import annotations\n\nimport typing as t\nfrom asyncio.streams import StreamReader\nfrom asyncio.subprocess import Process\nfrom enum import Enum\n\nif t.TYPE_CHECKING:\n from meltano.core.project import Project\n\n\nclass ExitCode(int, Enum): ...
[ { "content": "\"\"\"Base Error classes.\"\"\"\n\nfrom __future__ import annotations\n\nimport typing as t\nfrom asyncio.streams import StreamReader\nfrom asyncio.subprocess import Process\nfrom enum import Enum\n\nif t.TYPE_CHECKING:\n from meltano.core.project import Project\n\n\nclass ExitCode(int, Enum): ...
diff --git a/src/meltano/core/error.py b/src/meltano/core/error.py index 4e6149415f..f2009d6357 100644 --- a/src/meltano/core/error.py +++ b/src/meltano/core/error.py @@ -100,9 +100,15 @@ class PluginInstallWarning(Exception): """Exception for when a plugin optional optional step fails to install.""" -class Em...
tensorflow__addons-1963
CohenKappa raise exception for batch_size=1 **System information** - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Centos 7 - TensorFlow version and how it was installed (source or binary): 2.2.0 - TensorFlow-Addons version and how it was installed (source or binary): 0.10.0 - Python version: 3.6.9 - Is...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/tensorflow_addons/metrics/cohens_kappa.py b/tensorflow_addons/metrics/cohens_kappa.py index 3ed0b34db5..b66c4a6db9 100644 --- a/tensorflow_addons/metrics/cohens_kappa.py +++ b/tensorflow_addons/metrics/cohens_kappa.py @@ -167,9 +167,19 @@ def _cast_ypred(self, y_pred): y_pred = tf.cast(y_pred,...
GeotrekCE__Geotrek-admin-3405
API V2 cache problem with custom configuration in nginx.conf.in API v2 responses doesn't take care about [```X-FORWARDED-PROTO```](https://github.com/GeotrekCE/Geotrek-admin/blob/master/conf/nginx.conf.in#L55) value defined in nginx configuration. This header is used by django to know if generated url (pictogram, atta...
[ { "content": "from hashlib import md5\n\nfrom django.conf import settings\nfrom django_filters.rest_framework.backends import DjangoFilterBackend\nfrom mapentity.renderers import GeoJSONRenderer\nfrom rest_framework import viewsets, renderers\nfrom rest_framework.authentication import BasicAuthentication, Sessi...
[ { "content": "from hashlib import md5\n\nfrom django.conf import settings\nfrom django_filters.rest_framework.backends import DjangoFilterBackend\nfrom mapentity.renderers import GeoJSONRenderer\nfrom rest_framework import viewsets, renderers\nfrom rest_framework.authentication import BasicAuthentication, Sessi...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 1ba2d1d548..7bd3fa1a3b 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -27,6 +27,7 @@ In preparation for HD Views developments (PR #3298) - Recreate cache folders if missing. (#3384) - Modify site's geometry before saving to avoid edition and ex...
pyodide__pyodide-74
Improve parsing of result line The parsing of the input Python to find the last line which will be evaluated (rather than executed) to provide the result is probably a little brittle in certain corner cases. We should look at what IPython does here and copy that.
[ { "content": "\"\"\"\nA library of helper utilities for connecting Python to the browser environment.\n\"\"\"\n\nfrom js import XMLHttpRequest\n\nimport io\n\n\ndef open_url(url):\n \"\"\"\n Fetches a given *url* and returns a io.StringIO to access its contents.\n \"\"\"\n req = XMLHttpRequest.new()...
[ { "content": "\"\"\"\nA library of helper utilities for connecting Python to the browser environment.\n\"\"\"\n\nfrom js import XMLHttpRequest\n\nimport ast\nimport io\n\n\ndef open_url(url):\n \"\"\"\n Fetches a given *url* and returns a io.StringIO to access its contents.\n \"\"\"\n req = XMLHttpR...
diff --git a/src/main.c b/src/main.c index 364b6735870..9a332782607 100644 --- a/src/main.c +++ b/src/main.c @@ -48,7 +48,7 @@ main(int argc, char** argv) if (js2python_init() || JsImport_init() || JsProxy_init() || pyimport_init() || pyproxy_init() || python2js_init() || - runpython_init()) { + r...
redis__redis-py-2363
Need to mark TOPK.COUNT as deprecated, for Bloom 2.4.0 https://github.com/RedisBloom/RedisBloom/pull/512
[ { "content": "from redis.client import NEVER_DECODE\nfrom redis.exceptions import ModuleError\nfrom redis.utils import HIREDIS_AVAILABLE\n\nBF_RESERVE = \"BF.RESERVE\"\nBF_ADD = \"BF.ADD\"\nBF_MADD = \"BF.MADD\"\nBF_INSERT = \"BF.INSERT\"\nBF_EXISTS = \"BF.EXISTS\"\nBF_MEXISTS = \"BF.MEXISTS\"\nBF_SCANDUMP = \"...
[ { "content": "from deprecated import deprecated\n\nfrom redis.client import NEVER_DECODE\nfrom redis.exceptions import ModuleError\nfrom redis.utils import HIREDIS_AVAILABLE\n\nBF_RESERVE = \"BF.RESERVE\"\nBF_ADD = \"BF.ADD\"\nBF_MADD = \"BF.MADD\"\nBF_INSERT = \"BF.INSERT\"\nBF_EXISTS = \"BF.EXISTS\"\nBF_MEXIS...
diff --git a/redis/commands/bf/commands.py b/redis/commands/bf/commands.py index 2b16139315..d085730f23 100644 --- a/redis/commands/bf/commands.py +++ b/redis/commands/bf/commands.py @@ -1,3 +1,5 @@ +from deprecated import deprecated + from redis.client import NEVER_DECODE from redis.exceptions import ModuleError fr...
ibis-project__ibis-5591
bug: schema of replaced view not refreshed on registration ### What happened? ```python [ins] In [1]: import ibis [ins] In [2]: import pandas as pd [ins] In [3]: df = pd.DataFrame([["a", 1], ["b", 2]], columns=["let", "num"]) [ins] In [4]: con = ibis.duckdb.connect() [ins] In [5]: con.register(df, table_...
[ { "content": "from __future__ import annotations\n\nimport abc\nimport atexit\nimport contextlib\nimport getpass\nimport warnings\nfrom operator import methodcaller\nfrom typing import TYPE_CHECKING, Any, Iterable, Literal, Mapping\n\nimport sqlalchemy as sa\n\nimport ibis\nimport ibis.expr.operations as ops\ni...
[ { "content": "from __future__ import annotations\n\nimport abc\nimport atexit\nimport contextlib\nimport getpass\nimport warnings\nfrom operator import methodcaller\nfrom typing import TYPE_CHECKING, Any, Iterable, Literal, Mapping\n\nimport sqlalchemy as sa\n\nimport ibis\nimport ibis.expr.operations as ops\ni...
diff --git a/ibis/backends/base/sql/alchemy/__init__.py b/ibis/backends/base/sql/alchemy/__init__.py index 30f06a288516..2fd7f237f0ec 100644 --- a/ibis/backends/base/sql/alchemy/__init__.py +++ b/ibis/backends/base/sql/alchemy/__init__.py @@ -387,6 +387,10 @@ def _log(self, sql): def _get_sqla_table( self...
getsentry__sentry-python-239
Event is dropped if Exception occurs during `object_to_json` This may happen if Sequence is Django queryset that has incorrect field in `filter()` expressions.
[ { "content": "import os\nimport sys\nimport linecache\nimport logging\n\nfrom contextlib import contextmanager\nfrom datetime import datetime\n\nfrom sentry_sdk._compat import (\n urlparse,\n text_type,\n implements_str,\n string_types,\n number_types,\n int_types,\n PY2,\n)\n\nif PY2:\n ...
[ { "content": "import os\nimport sys\nimport linecache\nimport logging\n\nfrom contextlib import contextmanager\nfrom datetime import datetime\n\nfrom sentry_sdk._compat import (\n urlparse,\n text_type,\n implements_str,\n string_types,\n number_types,\n int_types,\n PY2,\n)\n\nif PY2:\n ...
diff --git a/sentry_sdk/utils.py b/sentry_sdk/utils.py index 1cdc9020d8..ac9cf8417e 100644 --- a/sentry_sdk/utils.py +++ b/sentry_sdk/utils.py @@ -310,7 +310,9 @@ def safe_repr(value): def object_to_json(obj): def _walk(obj, depth): if depth < 4: - if isinstance(obj, Sequence) and not isinstan...
WeblateOrg__weblate-3677
Search / Criteria"Exact" overwrites 'Add" button The search is a great feature (quick to fill, powerfull - with advanced criterias - and results are fast and reliable) but I have noticed an issue in the layout : "Exact" (which seems to be an untranslatable string yet) overwrite the "Add" button (at least in french, th...
[ { "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/user/search.rst b/docs/user/search.rst index 7803306dc96d..227427d9346c 100644 --- a/docs/user/search.rst +++ b/docs/user/search.rst @@ -86,7 +86,9 @@ Exact operators --------------- You can do an exact match query on different string fields using ``=`` operator. For example, to -source for all so...
networkx__networkx-7449
Can't replicate directed functionality of deprecated `random_tree` The deprecated `random_tree` function supported the `create_using` kwarg to allow the creation of directed trees: ```python >>> G = nx.random_tree(10, create_using=nx.DiGraph, seed=42) >>> G.edges OutEdgeView([(0, 6), (0, 4), (1, 5), (1, 8), (2, 1...
[ { "content": "\"\"\"Functions for generating trees.\n\nThe functions sampling trees at random in this module come\nin two variants: labeled and unlabeled. The labeled variants\nsample from every possible tree with the given number of nodes\nuniformly at random. The unlabeled variants sample from every\npossible...
[ { "content": "\"\"\"Functions for generating trees.\n\nThe functions sampling trees at random in this module come\nin two variants: labeled and unlabeled. The labeled variants\nsample from every possible tree with the given number of nodes\nuniformly at random. The unlabeled variants sample from every\npossible...
diff --git a/networkx/generators/trees.py b/networkx/generators/trees.py index c1b0d793526..1651a036a07 100644 --- a/networkx/generators/trees.py +++ b/networkx/generators/trees.py @@ -452,6 +452,24 @@ def random_labeled_tree(n, *, seed=None): ------ NetworkXPointlessConcept If `n` is zero (because t...
pallets__click-1606
Trailing blanks in envvars of boolean options cause otherwise valid values to be rejected ### Actual Behavior When defining a boolean option that also can be set via envvar, trailing blanks in the envvar value cause otherwise valid values to be rejected with this error message: ``` Error: Invalid value for '--so...
[ { "content": "import os\nimport stat\nfrom datetime import datetime\n\nfrom ._compat import _get_argv_encoding\nfrom ._compat import filename_to_ui\nfrom ._compat import get_filesystem_encoding\nfrom ._compat import get_strerror\nfrom ._compat import open_stream\nfrom .exceptions import BadParameter\nfrom .util...
[ { "content": "import os\nimport stat\nfrom datetime import datetime\n\nfrom ._compat import _get_argv_encoding\nfrom ._compat import filename_to_ui\nfrom ._compat import get_filesystem_encoding\nfrom ._compat import get_strerror\nfrom ._compat import open_stream\nfrom .exceptions import BadParameter\nfrom .util...
diff --git a/CHANGES.rst b/CHANGES.rst index 548ac134b..c27b10306 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -111,6 +111,8 @@ Unreleased completion system. :issue:`942` - Include ``--help`` option in completion. :pr:`1504` - ``ParameterSource`` is an ``enum.Enum`` subclass. :issue:`1530` +- Boolean type...
googleapis__google-cloud-python-274
datastore: default to empty dataset When working with datasets, the Datastore backend will normalize any empty datasets to the dataset of the calling application. This should be preferred to prepending "s~" to dataset ids as that is not always a valid operation.
[ { "content": "\"\"\"Create / interact with gcloud datastore keys.\"\"\"\n\nimport copy\nfrom itertools import izip\n\nfrom gcloud.datastore import datastore_v1_pb2 as datastore_pb\nfrom gcloud.datastore.dataset import Dataset\n\n\nclass Key(object):\n \"\"\"An immutable representation of a datastore Key.\n\n...
[ { "content": "\"\"\"Create / interact with gcloud datastore keys.\"\"\"\n\nimport copy\nfrom itertools import izip\n\nfrom gcloud.datastore import datastore_v1_pb2 as datastore_pb\nfrom gcloud.datastore.dataset import Dataset\n\n\nclass Key(object):\n \"\"\"An immutable representation of a datastore Key.\n\n...
diff --git a/gcloud/datastore/key.py b/gcloud/datastore/key.py index 997b4dab35b9..ccc89c2360c9 100644 --- a/gcloud/datastore/key.py +++ b/gcloud/datastore/key.py @@ -95,8 +95,13 @@ def to_protobuf(self): # but we shouldn't throw a cryptic error if one isn't provided # in the initializer. if ...
mathesar-foundation__mathesar-2514
UX and frontend implementation for upgrades ### Notes - [Current Figma design](https://www.figma.com/file/xHb5oIqye3fnXtb2heRH34/Styling?node-id=3804%3A28864&t=HyNupYmgZ9PqjEGr-0) - [Issue with user flow](https://github.com/centerofci/mathesar/issues/227) ### Tasks - Finalize the user flow - Request Figma UX cha...
[ { "content": "from django.contrib.auth.views import LoginView\nfrom django.urls import include, path, re_path\nfrom rest_framework_nested import routers\n\nfrom mathesar import views\nfrom mathesar.api.db import viewsets as db_viewsets\nfrom mathesar.api.ui import viewsets as ui_viewsets\nfrom mathesar.users.pa...
[ { "content": "from django.contrib.auth.views import LoginView\nfrom django.urls import include, path, re_path\nfrom rest_framework_nested import routers\n\nfrom mathesar import views\nfrom mathesar.api.db import viewsets as db_viewsets\nfrom mathesar.api.ui import viewsets as ui_viewsets\nfrom mathesar.users.pa...
diff --git a/mathesar/urls.py b/mathesar/urls.py index c24fae9e5e..223175d335 100644 --- a/mathesar/urls.py +++ b/mathesar/urls.py @@ -41,7 +41,7 @@ path('administration/', views.admin_home, name='admin_home'), path('administration/users/', views.admin_home, name='admin_users_home'), path('administration...
numpy__numpy-11219
PR #10559 failed to fix einsum (optimize=True) broadcasting bug #10559 introduced the [following code](https://github.com/numpy/numpy/blob/a9e9343ecf5a6564eb09f1d7078c407db2ff7d9e/numpy/core/einsumfunc.py#L1107) to prevent dispatching `numpy.tensordot` in a case where einsum was broadcasting over a singleton dimension...
[ { "content": "\"\"\"\nImplementation of optimized einsum.\n\n\"\"\"\nfrom __future__ import division, absolute_import, print_function\n\nfrom numpy.compat import basestring\nfrom numpy.core.multiarray import c_einsum\nfrom numpy.core.numeric import asarray, asanyarray, result_type, tensordot, dot\n\n__all__ = [...
[ { "content": "\"\"\"\nImplementation of optimized einsum.\n\n\"\"\"\nfrom __future__ import division, absolute_import, print_function\n\nfrom numpy.compat import basestring\nfrom numpy.core.multiarray import c_einsum\nfrom numpy.core.numeric import asarray, asanyarray, result_type, tensordot, dot\n\n__all__ = [...
diff --git a/numpy/core/einsumfunc.py b/numpy/core/einsumfunc.py index da78748a3501..2a358edc8ad5 100644 --- a/numpy/core/einsumfunc.py +++ b/numpy/core/einsumfunc.py @@ -1109,7 +1109,7 @@ def einsum(*operands, **kwargs): # Checks have already been handled input_str, results_index = einsum_str...
fossasia__open-event-server-6307
Wrong event invoice status fields in db schema **Describe the bug** The values allowed for invoices are paid, due &incoming [schema choices]. They are currently equal to those of orders.
[ { "content": "from marshmallow import validate as validate\nfrom marshmallow_jsonapi import fields\nfrom marshmallow_jsonapi.flask import Relationship\n\nfrom app.api.helpers.static import PAYMENT_COUNTRIES\nfrom app.api.helpers.utilities import dasherize\nfrom app.api.schema.base import SoftDeletionSchema\nfro...
[ { "content": "from marshmallow import validate as validate\nfrom marshmallow_jsonapi import fields\nfrom marshmallow_jsonapi.flask import Relationship\n\nfrom app.api.helpers.static import PAYMENT_COUNTRIES\nfrom app.api.helpers.utilities import dasherize\nfrom app.api.schema.base import SoftDeletionSchema\nfro...
diff --git a/app/api/schema/event_invoices.py b/app/api/schema/event_invoices.py index 105e465414..3cfed90899 100644 --- a/app/api/schema/event_invoices.py +++ b/app/api/schema/event_invoices.py @@ -39,8 +39,7 @@ class Meta: last4 = fields.Str(allow_none=True) stripe_token = fields.Str(allow_none=True) p...
nautobot__nautobot-5491
The command 'nautobot-server celery result task_id' says "Cannot resolve keyword 'task_id' into field" ### Environment * Nautobot version : v2.1.4 * Python version: 3.10.12 * Database platform, version: psql (PostgreSQL) 14.11 (Ubuntu 14.11-0ubuntu0.22.04.1) * Middleware(s): NA ### Steps to Reproduce 1. open te...
[ { "content": "from celery import states\nfrom django.utils import timezone\nfrom django_celery_beat.managers import ExtendedManager\nfrom django_celery_results.managers import TaskResultManager, transaction_retry\n\nfrom nautobot.core.models import BaseManager\nfrom nautobot.core.models.querysets import Restric...
[ { "content": "from celery import states\nfrom django.utils import timezone\nfrom django_celery_beat.managers import ExtendedManager\nfrom django_celery_results.managers import TaskResultManager, transaction_retry\n\nfrom nautobot.core.models import BaseManager\nfrom nautobot.core.models.querysets import Restric...
diff --git a/changes/5440.fixed b/changes/5440.fixed new file mode 100644 index 00000000000..367c439f89d --- /dev/null +++ b/changes/5440.fixed @@ -0,0 +1 @@ +Fixed "Cannot resolve keyword 'task_id' into field" when calling `nautobot-server celery result <task_id>`. \ No newline at end of file diff --git a/nautobot/ext...
akvo__akvo-rsr-2517
UnicodeEncodeError with ProjectCustomField ```python File "django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "django...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\n\nfrom dja...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\n\nfrom dja...
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index feae11b2e2..816cb005b4 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -2,6 +2,9 @@ ## Bug fixes +[#2516](https://github.com/akvo/akvo-rsr/issues/2516) ProjectCustomFields with +unicode data can cause UnicodeEncodeErrors. + [#2514](https://github.com/...
carpentries__amy-2333
Prepare AMY staging instance for actual use New test AMY server is running, but it lacks some features from the other server. - [x] Run fixtures (should be accompanied by #2239) - [x] Scaffold non-admin users for AMY database - [ ] Add default admin user
[ { "content": "from django.core.management.base import BaseCommand, CommandError\n\nfrom communityroles.models import CommunityRole, CommunityRoleConfig\nfrom workshops.models import Person\n\n\nclass Command(BaseCommand):\n args = \"no arguments\"\n help = 'Create a superuser called \"admin\" with passwor...
[ { "content": "from django.core.management.base import BaseCommand, CommandError\n\nfrom communityroles.models import CommunityRole, CommunityRoleConfig\nfrom workshops.models import Person\n\n\nclass Command(BaseCommand):\n args = \"no arguments\"\n help = 'Create a superuser called \"admin\" with passwor...
diff --git a/amy/workshops/management/commands/create_superuser.py b/amy/workshops/management/commands/create_superuser.py index eb14c7388..fddce6e3f 100644 --- a/amy/workshops/management/commands/create_superuser.py +++ b/amy/workshops/management/commands/create_superuser.py @@ -9,9 +9,15 @@ class Command(BaseCommand)...
kivy__python-for-android-1364
ffi.h: No such file or directory (solutions included) # Problem summary On Gentoo Linux `cffi` recipe host install fails with the error below: ``` c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory ``` # Detailed description This is because `ffi.h` is installed in `/usr/lib64/libffi-3.2.1/in...
[ { "content": "import os\nfrom pythonforandroid.recipe import CompiledComponentsPythonRecipe\n\n\nclass CffiRecipe(CompiledComponentsPythonRecipe):\n name = 'cffi'\n version = '1.4.2'\n url = 'https://pypi.python.org/packages/source/c/cffi/cffi-{version}.tar.gz'\n\n depends = [('python2', 'python3cry...
[ { "content": "import os\nfrom pythonforandroid.recipe import CompiledComponentsPythonRecipe\n\n\nclass CffiRecipe(CompiledComponentsPythonRecipe):\n name = 'cffi'\n version = '1.4.2'\n url = 'https://pypi.python.org/packages/source/c/cffi/cffi-{version}.tar.gz'\n\n depends = [('python2', 'python3cry...
diff --git a/pythonforandroid/recipes/cffi/__init__.py b/pythonforandroid/recipes/cffi/__init__.py index dc8c705574..cb3ff4077e 100644 --- a/pythonforandroid/recipes/cffi/__init__.py +++ b/pythonforandroid/recipes/cffi/__init__.py @@ -14,6 +14,14 @@ class CffiRecipe(CompiledComponentsPythonRecipe): # call_hostpyth...
Cog-Creators__Red-DiscordBot-3142
[Bug] Downloader - Findcog # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name findcog #### What cog is this command from? Downloader To show the repository the cog is from. #### What actually happened? ```py Exception in command 'findcog' Tr...
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport functools\nimport os\nimport pkgutil\nimport shlex\nimport shutil\nimport re\nimport yarl\nfrom concurrent.futures import ThreadPoolExecutor\nfrom pathlib import Path\nfrom subprocess import run as sp_run, PIPE, CompletedProcess\nfrom st...
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport functools\nimport os\nimport pkgutil\nimport shlex\nimport shutil\nimport re\nimport yarl\nfrom concurrent.futures import ThreadPoolExecutor\nfrom pathlib import Path\nfrom subprocess import run as sp_run, PIPE, CompletedProcess\nfrom st...
diff --git a/changelog.d/downloader/3141.bugfix.rst b/changelog.d/downloader/3141.bugfix.rst new file mode 100644 index 00000000000..c329da02154 --- /dev/null +++ b/changelog.d/downloader/3141.bugfix.rst @@ -0,0 +1 @@ +Make :attr:`redbot.cogs.downloader.repo_manager.Repo.clean_url` work with relative urls. This propert...
ietf-tools__datatracker-6833
RFC column empty ### Describe the issue The RFC column on https://datatracker.ietf.org/doc/ad/#rfc is empty. ### Code of Conduct - [X] I agree to follow the [IETF's Code of Conduct](https://github.com/ietf-tools/.github/blob/main/CODE_OF_CONDUCT.md)
[ { "content": "# Copyright The IETF Trust 2009-2023, All Rights Reserved\n# -*- coding: utf-8 -*-\n#\n# Some parts Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).\n# All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>\n#\n# Redistribution and use in source and binary forms, w...
[ { "content": "# Copyright The IETF Trust 2009-2023, All Rights Reserved\n# -*- coding: utf-8 -*-\n#\n# Some parts Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).\n# All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>\n#\n# Redistribution and use in source and binary forms, w...
diff --git a/ietf/doc/views_search.py b/ietf/doc/views_search.py index 2e4231c5ac..395852eb9e 100644 --- a/ietf/doc/views_search.py +++ b/ietf/doc/views_search.py @@ -468,11 +468,11 @@ def ad_workload(request): state = doc_state(doc) state_events = doc.docevent_set.filter( - Q...
qutebrowser__qutebrowser-5193
Can't enable per-domain settings for https://example.com./ When running `qutebrowser --temp-basedir -s content.javascript.enabled false 'https://travis-ci.com./'` and pressing `tsh`, JavaScript is still not allowed for Travis CI. This was introduced in 8b822e40e3243f9679244cfcdf0e7abd1de0289f / #4707 - cc @jgkamat
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2018-2020 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2018-2020 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
diff --git a/qutebrowser/config/configutils.py b/qutebrowser/config/configutils.py index b446d280f1b..bfc460beafb 100644 --- a/qutebrowser/config/configutils.py +++ b/qutebrowser/config/configutils.py @@ -225,7 +225,9 @@ def get_for_url(self, url: QUrl = None, *, return self._get_fallback(fallback) ...
airctic__icevision-883
Add kwargs to EfficientDet model() method Add kwargs to EfficientDet model() method. This will allow to pass `pretrained_backbone` argument to EfficientDet `create_model_from_config()` method. That will prevent loading pretrained weights if the user wish to do so
[ { "content": "__all__ = [\"model\"]\n\nfrom icevision.imports import *\nfrom icevision.utils import *\nfrom icevision.models.ross.efficientdet.utils import *\nfrom icevision.models.ross.efficientdet.backbones import *\nfrom effdet import get_efficientdet_config, EfficientDet, DetBenchTrain, unwrap_bench\nfrom e...
[ { "content": "__all__ = [\"model\"]\n\nfrom icevision.imports import *\nfrom icevision.utils import *\nfrom icevision.models.ross.efficientdet.utils import *\nfrom icevision.models.ross.efficientdet.backbones import *\nfrom effdet import get_efficientdet_config, EfficientDet, DetBenchTrain, unwrap_bench\nfrom e...
diff --git a/icevision/models/ross/efficientdet/model.py b/icevision/models/ross/efficientdet/model.py index 94584ec63..8f194bf76 100644 --- a/icevision/models/ross/efficientdet/model.py +++ b/icevision/models/ross/efficientdet/model.py @@ -13,6 +13,7 @@ def model( backbone: EfficientDetBackboneConfig, num_cl...
numpy__numpy-12920
Numpy 1.16.1 fails to run tests Newly released NumPy 1.16.1 built and installed from source fails to run tests: > python3 setup.py build > sudo python3 setup.py install ``` import numpy numpy.test('full') NumPy version 1.16.1 NumPy relaxed strides checking option: True ====================================...
[ { "content": "from __future__ import division, print_function\n\nimport os\nimport sys\nimport pickle\nimport copy\nimport warnings\nimport platform\nfrom os.path import join\nfrom numpy.distutils import log\nfrom distutils.dep_util import newer\nfrom distutils.sysconfig import get_config_var\nfrom numpy._build...
[ { "content": "from __future__ import division, print_function\n\nimport os\nimport sys\nimport pickle\nimport copy\nimport warnings\nimport platform\nfrom os.path import join\nfrom numpy.distutils import log\nfrom distutils.dep_util import newer\nfrom distutils.sysconfig import get_config_var\nfrom numpy._build...
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index e83ecdd2e5e0..2bcd17f27d32 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -963,14 +963,6 @@ def generate_umath_c(ext, build_dir): config.add_extension('_operand_flag_tests', sources=[join('src', 'umath', '_operand_flag...
matrix-org__synapse-8580
Synapse can return 401 when accessing profile information ### Description When accessing `/_matrix/client/r0/profile/@user:domain:tld` API endpoint, Synapse sometimes returns HTTP 401, which shouldn't be possible according to the Spec. According to the log, this might be caused by forwarding responses from feder...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2014-2016 OpenMarket Ltd\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2014-2016 OpenMarket Ltd\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/changelog.d/8580.bugfix b/changelog.d/8580.bugfix new file mode 100644 index 000000000000..31734fd97d71 --- /dev/null +++ b/changelog.d/8580.bugfix @@ -0,0 +1 @@ +Fix a bug where Synapse would blindly forward bad responses from federation to clients when retrieving profile information. diff --git a/synapse...
wright-group__WrightTools-790
Document default_aspect in create_figure missing from docstring
[ { "content": "\"\"\"Functions to help with plotting.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport os\n\nimport numpy as np\n\nfrom scipy.interpolate import interp2d\n\nimport matplotlib\nimport matplotlib.pyplot as plt\nimport matplot...
[ { "content": "\"\"\"Functions to help with plotting.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport os\n\nimport numpy as np\n\nfrom scipy.interpolate import interp2d\n\nimport matplotlib\nimport matplotlib.pyplot as plt\nimport matplot...
diff --git a/WrightTools/artists/_helpers.py b/WrightTools/artists/_helpers.py index cc0057481..7fb917b44 100644 --- a/WrightTools/artists/_helpers.py +++ b/WrightTools/artists/_helpers.py @@ -283,7 +283,11 @@ def create_figure( aspects larger than 1 will be taller than wide and vice-versa for aspects...
google__openhtf-181
Add ability to pass in dut_serial via command line config Add ability to pass in dut_serial via command line. This would be a useful feature when doing loop test
[ { "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 re...
[ { "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 re...
diff --git a/openhtf/exe/triggers.py b/openhtf/exe/triggers.py index 83313dc35..9068413b4 100644 --- a/openhtf/exe/triggers.py +++ b/openhtf/exe/triggers.py @@ -38,14 +38,20 @@ import logging import time +import gflags + from openhtf.io import user_input -_LOG = logging.getLogger(__name__) +gflags.DEFINE_string(...
fossasia__open-event-server-8431
Integrate Klarna, Sepa in Stripe Integrate Klarna, Sepa payment methods in Stripe
[ { "content": "import json\n\nimport omise\nimport paypalrestsdk\nimport requests\nimport stripe\nfrom forex_python.converter import CurrencyRates\n\nfrom app.api.helpers import checksum\nfrom app.api.helpers.cache import cache\nfrom app.api.helpers.db import safe_query, save_to_db\nfrom app.api.helpers.errors i...
[ { "content": "import json\n\nimport omise\nimport paypalrestsdk\nimport requests\nimport stripe\nfrom forex_python.converter import CurrencyRates\n\nfrom app.api.helpers import checksum\nfrom app.api.helpers.cache import cache\nfrom app.api.helpers.db import safe_query, save_to_db\nfrom app.api.helpers.errors i...
diff --git a/app/api/helpers/payment.py b/app/api/helpers/payment.py index 25529fcdcb..9d90a842e4 100644 --- a/app/api/helpers/payment.py +++ b/app/api/helpers/payment.py @@ -116,14 +116,8 @@ def capture_payment(order_invoice, currency=None, credentials=None): frontend_url = get_settings()['frontend_url'] ...
chainer__chainer-3875
CUDNN_STATUS_NOT_SUPPORTED when dilate != 1 and deterministic ### Code ``` import chainer from chainer import functions as F import numpy, cupy xp = cupy dtype = numpy.float32 n = 2 c_in = 3 c_out = 2 size_in = (4, 3) ksize = (3, 3) x_shape = (n, c_in) + size_in W_shape = (c_out, c_in) + ksize b_shape...
[ { "content": "import numpy\n\nimport chainer\nfrom chainer.backends import cuda\nfrom chainer import configuration\nfrom chainer import function_node\nimport chainer.functions\nfrom chainer.functions.connection import convolution_2d\nfrom chainer.utils import argument\nfrom chainer.utils import conv\nfrom chain...
[ { "content": "import numpy\n\nimport chainer\nfrom chainer.backends import cuda\nfrom chainer import configuration\nfrom chainer import function_node\nimport chainer.functions\nfrom chainer.functions.connection import convolution_2d\nfrom chainer.utils import argument\nfrom chainer.utils import conv\nfrom chain...
diff --git a/chainer/functions/connection/deconvolution_2d.py b/chainer/functions/connection/deconvolution_2d.py index 6899d74a9346..babdd12af0e3 100644 --- a/chainer/functions/connection/deconvolution_2d.py +++ b/chainer/functions/connection/deconvolution_2d.py @@ -155,9 +155,12 @@ def forward_gpu(self, inputs): ...
google__jax-11797
BUG: jnp.linalg.matrix_rank does not operate on stacks of matrices ### Description ``` myInput = np.random.normal(size=(9,10,10)) myInput.shape # (9,10,10) np.linalg.matrix_rank(myInput) # array([10, 10, 10, 10, 10, 10, 10, 10, 10]) ``` jax fails on this same stack: ``` jax.numpy.linalg.matrix_rank(jnp.arra...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/jax/_src/numpy/linalg.py b/jax/_src/numpy/linalg.py index 3f3b172bc8c3..97827576e8d0 100644 --- a/jax/_src/numpy/linalg.py +++ b/jax/_src/numpy/linalg.py @@ -111,14 +111,13 @@ def matrix_power(a, n): @jit def matrix_rank(M, tol=None): M, = _promote_dtypes_inexact(jnp.asarray(M)) - if M.ndim > 2: - ...
aws-cloudformation__cfn-lint-549
Does not lint deeply nested template paths *cfn-lint version: 0.9.2* Using `**` path globs does not behave as expected. Assume the following directory structure ```yaml project: templates: - a: - b: - c: - foo.yaml - bar.yaml - d: - baz.yaml ...
[ { "content": "\"\"\"\n Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
[ { "content": "\"\"\"\n Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
diff --git a/README.md b/README.md index 1039e2cad4..20b6878255 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,8 @@ Lint all `yaml` files in `path`: Lint all `yaml` files in `path` and all subdirectories (recursive): - `cfn-lint path/to/templates/**/*.yaml` +*Note*: Glob in Python 3.5 supports recursive search...
pytorch__vision-6095
`Tensor.to` does not work with feature as reference `torch.Tensor.to` accepts a tensor reference object as input in which case it converts to the reference dtype and device: ```py >>> a = torch.zeros((), dtype=torch.float) >>> b = torch.ones((), dtype=torch.int) >>> b tensor(1, dtype=torch.int32) >>> b.to(a) t...
[ { "content": "from __future__ import annotations\n\nfrom types import ModuleType\nfrom typing import Any, Callable, cast, List, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union\n\nimport PIL.Image\nimport torch\nfrom torch._C import _TensorBase, DisableTorchFunction\nfrom torchvision.transforms import I...
[ { "content": "from __future__ import annotations\n\nfrom types import ModuleType\nfrom typing import Any, Callable, cast, List, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union\n\nimport PIL.Image\nimport torch\nfrom torch._C import _TensorBase, DisableTorchFunction\nfrom torchvision.transforms import I...
diff --git a/.github/workflows/prototype-tests.yml b/.github/workflows/prototype-tests.yml index e9832860c40..5e9ca360d08 100644 --- a/.github/workflows/prototype-tests.yml +++ b/.github/workflows/prototype-tests.yml @@ -43,6 +43,15 @@ jobs: id: setup run: exit 0 + - name: Run prototype feature...
jazzband__pip-tools-1547
The banner in the generated requirements.txt is confusing When I use pip-compile to generate a requirements.txt file, it includes this banner at the top: ``` # This file is autogenerated by pip-compile with python 3.8 # To update, run: # # pip-compile --no-emit-index-url ``` However, without the `--upgrad...
[ { "content": "from __future__ import annotations\n\nimport io\nimport os\nimport re\nimport sys\nfrom itertools import chain\nfrom typing import BinaryIO, Iterable, Iterator, cast\n\nfrom click import unstyle\nfrom click.core import Context\nfrom pip._internal.models.format_control import FormatControl\nfrom pi...
[ { "content": "from __future__ import annotations\n\nimport io\nimport os\nimport re\nimport sys\nfrom itertools import chain\nfrom typing import BinaryIO, Iterable, Iterator, cast\n\nfrom click import unstyle\nfrom click.core import Context\nfrom pip._internal.models.format_control import FormatControl\nfrom pi...
diff --git a/piptools/writer.py b/piptools/writer.py index c35125bbc..b9f75a2f0 100644 --- a/piptools/writer.py +++ b/piptools/writer.py @@ -123,10 +123,10 @@ def write_header(self) -> Iterator[str]: if self.emit_header: yield comment("#") yield comment( - "# This file ...
cython__cython-5487
[BUG] -3 does not set language level in Cython 3 ### Describe the bug The -3 flag does not set language level to 3. When compiling some code with the ``always_allow_keywords`` directive set to true with Cython 3, Cython doesn't set the language level to 3 even though ``-3`` is passed, and infers the language level ...
[ { "content": "#\n# Cython - Compilation-wide options and pragma declarations\n#\n\nfrom __future__ import absolute_import\n\nimport os\n\nfrom Cython import Utils\n\n\nclass ShouldBeFromDirective(object):\n\n known_directives = []\n\n def __init__(self, options_name, directive_name=None, disallow=False):...
[ { "content": "#\n# Cython - Compilation-wide options and pragma declarations\n#\n\nfrom __future__ import absolute_import\n\nimport os\n\nfrom Cython import Utils\n\n\nclass ShouldBeFromDirective(object):\n\n known_directives = []\n\n def __init__(self, options_name, directive_name=None, disallow=False):...
diff --git a/Cython/Compiler/Options.py b/Cython/Compiler/Options.py index e7b33fbc6e9..8dd30e5070e 100644 --- a/Cython/Compiler/Options.py +++ b/Cython/Compiler/Options.py @@ -651,7 +651,7 @@ def __init__(self, defaults=None, **kw): import warnings warnings.warn("C++ mode forced when in Pythr...
archlinux__archinstall-1275
Unknown device when using erofs archiso supports (and it's the default in the baseline profile) erofs fs type for the airrootfs (https://github.com/demostanis/demolinux/blob/e2800eed332fde1dbc4bccab4e9aa0668a9dd683/profiledef.sh#L14). When using archinstall, this yields to the warning `Unknown device found by all_blo...
[ { "content": "from __future__ import annotations\nimport json\nimport logging\nimport os # type: ignore\nimport pathlib\nimport re\nimport time\nimport glob\nfrom typing import Union, List, Iterator, Dict, Optional, Any, TYPE_CHECKING\n# https://stackoverflow.com/a/39757388/929999\nif TYPE_CHECKING:\n\tfrom .p...
[ { "content": "from __future__ import annotations\nimport json\nimport logging\nimport os # type: ignore\nimport pathlib\nimport re\nimport time\nimport glob\nfrom typing import Union, List, Iterator, Dict, Optional, Any, TYPE_CHECKING\n# https://stackoverflow.com/a/39757388/929999\nif TYPE_CHECKING:\n\tfrom .p...
diff --git a/archinstall/lib/disk/helpers.py b/archinstall/lib/disk/helpers.py index 65d7a00623..fbad2d06ef 100644 --- a/archinstall/lib/disk/helpers.py +++ b/archinstall/lib/disk/helpers.py @@ -244,7 +244,7 @@ def all_blockdevices(mappers=False, partitions=False, error=False) -> Dict[str, instances[path] = Parti...
buildbot__buildbot-189
Added FilterOut class from deleted file master/buildbot/status/web/st… …atus_json.py This class was removed in c3e1aaede2fc02507bccb548dd26e694bf32ba6a but still in use in StatusPush
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n...
[ { "content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n...
diff --git a/master/buildbot/libvirtbuildslave.py b/master/buildbot/libvirtbuildslave.py index 1451dbf28a0a..60c730e2fc2b 100644 --- a/master/buildbot/libvirtbuildslave.py +++ b/master/buildbot/libvirtbuildslave.py @@ -198,13 +198,13 @@ def _start(res): return self.connection.create(self.xml) ...
yt-dlp__yt-dlp-3743
[ADN] Subtitles download support broken ### Checklist - [X] I'm reporting a broken site - [X] I've verified that I'm running yt-dlp version **2021.12.01**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) - [X] I've checked that all provided URLs are alive and playable in a browser - [X] I've chec...
[ { "content": "import base64\nimport binascii\nimport json\nimport os\nimport random\n\nfrom .common import InfoExtractor\nfrom ..aes import aes_cbc_decrypt_bytes, unpad_pkcs7\nfrom ..compat import (\n compat_HTTPError,\n compat_b64decode,\n)\nfrom ..utils import (\n ass_subtitles_timecode,\n bytes_t...
[ { "content": "import base64\nimport binascii\nimport json\nimport os\nimport random\n\nfrom .common import InfoExtractor\nfrom ..aes import aes_cbc_decrypt_bytes, unpad_pkcs7\nfrom ..compat import (\n compat_HTTPError,\n compat_b64decode,\n)\nfrom ..utils import (\n ass_subtitles_timecode,\n bytes_t...
diff --git a/yt_dlp/extractor/adn.py b/yt_dlp/extractor/adn.py index b47345e3c52d..18ddc5729c82 100644 --- a/yt_dlp/extractor/adn.py +++ b/yt_dlp/extractor/adn.py @@ -82,7 +82,7 @@ def _get_subtitles(self, sub_url, video_id): # http://animedigitalnetwork.fr/components/com_vodvideo/videojs/adn-vjs.min.js ...
plone__Products.CMFPlone-3101
Unnecessary css file tries to load while editing a page While editing a page an unnecessary css file tries to load: ![unnecessary_css](https://user-images.githubusercontent.com/5301889/57622531-2353a180-758e-11e9-9c5b-5d3cdef9a9b0.jpg)
[ { "content": "# -*- coding: utf-8 -*-\nfrom lxml import html\nfrom plone.app.layout.navigation.root import getNavigationRootObject\nfrom plone.app.theming.utils import theming_policy\nfrom plone.registry.interfaces import IRegistry\nfrom Products.CMFCore.utils import getToolByName\nfrom Products.CMFPlone.interf...
[ { "content": "# -*- coding: utf-8 -*-\nfrom lxml import html\nfrom plone.app.layout.navigation.root import getNavigationRootObject\nfrom plone.app.theming.utils import theming_policy\nfrom plone.registry.interfaces import IRegistry\nfrom Products.CMFCore.utils import getToolByName\nfrom Products.CMFPlone.interf...
diff --git a/Products/CMFPlone/patterns/tinymce.py b/Products/CMFPlone/patterns/tinymce.py index 7283055d07..a858e7fe3d 100644 --- a/Products/CMFPlone/patterns/tinymce.py +++ b/Products/CMFPlone/patterns/tinymce.py @@ -49,7 +49,7 @@ def get_content_css(self, style_css=''): files.append('/'.join([self.n...
Lightning-AI__pytorch-lightning-1748
Checkpoint adding "version_" at the start of the logger name **To reproduce :** ```python logger = pl.loggers.TensorBoardLogger( save_dir='.', version='my_name' name='lightning_logs' ) trainer = pl.Trainer(logger=logger, log_gpu_memory='all', max_epo...
[ { "content": "import os\nfrom abc import ABC, abstractmethod\nfrom typing import Union, List\n\n\nfrom pytorch_lightning.callbacks import Callback, ModelCheckpoint, EarlyStopping, ProgressBarBase, ProgressBar\nfrom pytorch_lightning.loggers import LightningLoggerBase\nfrom pytorch_lightning.utilities.exceptions...
[ { "content": "import os\nfrom abc import ABC, abstractmethod\nfrom typing import Union, List\n\n\nfrom pytorch_lightning.callbacks import Callback, ModelCheckpoint, EarlyStopping, ProgressBarBase, ProgressBar\nfrom pytorch_lightning.loggers import LightningLoggerBase\nfrom pytorch_lightning.utilities.exceptions...
diff --git a/CHANGELOG.md b/CHANGELOG.md index bda687d2bbfca..f3190f9d7353d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Added type hints in `Trainer.fit()` and `Trainer.test()` to reflect that also a list of dataloader...
Lightning-AI__pytorch-lightning-1523
Performance drop when activating gradient clipping Hello all, I experienced a substantial drop in computation time when activating gradient clipping (by passing a non-zero value to the keyword argument `gradient_clip_val` when initializing the Trainer). I noticed that in the current implementation of the `clippin...
[ { "content": "import math\nimport sys\nfrom abc import ABC, abstractmethod\n\nimport torch\nfrom torch import Tensor\n\nfrom pytorch_lightning import _logger as log\nfrom pytorch_lightning.callbacks import GradientAccumulationScheduler\n\nEPSILON = 1e-6\nEPSILON_FP16 = 1e-5\n\n\nclass TrainerTrainingTricksMixin...
[ { "content": "import math\nimport sys\nfrom abc import ABC, abstractmethod\n\nimport torch\nfrom torch import Tensor\n\nfrom pytorch_lightning import _logger as log\nfrom pytorch_lightning.callbacks import GradientAccumulationScheduler\n\nEPSILON = 1e-6\nEPSILON_FP16 = 1e-5\n\n\nclass TrainerTrainingTricksMixin...
diff --git a/pytorch_lightning/trainer/training_tricks.py b/pytorch_lightning/trainer/training_tricks.py index f5523210efb41..3364c9d305455 100644 --- a/pytorch_lightning/trainer/training_tricks.py +++ b/pytorch_lightning/trainer/training_tricks.py @@ -40,7 +40,7 @@ def clip_gradients(self): device = p...
yt-dlp__yt-dlp-711
[Broken] ParamountPlus Extractor w/ --geo-verification-proxy <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Chec...
[ { "content": "from __future__ import unicode_literals\n\nfrom .common import InfoExtractor\nfrom .cbs import CBSBaseIE\nfrom ..utils import (\n int_or_none,\n url_or_none,\n)\n\n\nclass ParamountPlusIE(CBSBaseIE):\n _VALID_URL = r'''(?x)\n (?:\n paramountplus:|\n https?://(...
[ { "content": "from __future__ import unicode_literals\n\nfrom .common import InfoExtractor\nfrom .cbs import CBSBaseIE\nfrom ..utils import (\n int_or_none,\n url_or_none,\n)\n\n\nclass ParamountPlusIE(CBSBaseIE):\n _VALID_URL = r'''(?x)\n (?:\n paramountplus:|\n https?://(...
diff --git a/yt_dlp/extractor/paramountplus.py b/yt_dlp/extractor/paramountplus.py index e1d479588918..338b84d5b8c9 100644 --- a/yt_dlp/extractor/paramountplus.py +++ b/yt_dlp/extractor/paramountplus.py @@ -90,7 +90,7 @@ class ParamountPlusIE(CBSBaseIE): def _extract_video_info(self, content_id, mpx_acc=2198311517...
pypa__pip-3397
ValueError while unpacking platform.mac_ver() on OS X 10.11 on Travis `osx10.11` image, I am getting `ValueError` while trying to run `python get-pip.py --user` with El Capitan's built-in python 2.7.10: ``` Traceback (most recent call last): File "get-pip.py", line 19000, in <module> main() File "get-pip.py", ...
[ { "content": "\"\"\"Generate and work with PEP 425 Compatibility Tags.\"\"\"\nfrom __future__ import absolute_import\n\nimport re\nimport sys\nimport warnings\nimport platform\n\ntry:\n import sysconfig\nexcept ImportError: # pragma nocover\n # Python < 2.7\n import distutils.sysconfig as sysconfig\ni...
[ { "content": "\"\"\"Generate and work with PEP 425 Compatibility Tags.\"\"\"\nfrom __future__ import absolute_import\n\nimport re\nimport sys\nimport warnings\nimport platform\n\ntry:\n import sysconfig\nexcept ImportError: # pragma nocover\n # Python < 2.7\n import distutils.sysconfig as sysconfig\ni...
diff --git a/pip/pep425tags.py b/pip/pep425tags.py index 0f67921ad71..5d92ffd1939 100644 --- a/pip/pep425tags.py +++ b/pip/pep425tags.py @@ -116,8 +116,8 @@ def get_platform(): # of MACOSX_DEPLOYMENT_TARGET on which Python was built, which may # be signficantly older than the user's current machine. ...
tensorflow__addons-1245
poincare_test.py is not run by bazel **Describe the bug** This time it's just that it's not declared in the BUILD. **Code to reproduce the issue** Provide a reproducible test case that is the bare minimum necessary to generate the problem. ``` bazel test //tensorflow_addons/layers:poincare_test.py ``` ...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/tensorflow_addons/layers/poincare.py b/tensorflow_addons/layers/poincare.py index 4f96d92f0c..21e5aaecf6 100644 --- a/tensorflow_addons/layers/poincare.py +++ b/tensorflow_addons/layers/poincare.py @@ -16,6 +16,7 @@ import tensorflow as tf from typeguard import typechecked +from typing import Union, Li...
Lightning-AI__pytorch-lightning-1126
ReduceLROnPlateau scheduler type check ## 🐛 Bug Incorrect type check for scheduler of class ReduceLROnPlateau. https://github.com/PyTorchLightning/pytorch-lightning/blob/bc01b9ac1c0ddf503f83755c00d5541a2679e5b4/pytorch_lightning/trainer/trainer.py#L713 I believe, this check: `isinstance(scheduler, optim.lr_sch...
[ { "content": "import inspect\nimport logging as log\nimport os\nimport sys\nimport warnings\nfrom argparse import ArgumentParser\nfrom typing import Union, Optional, List, Dict, Tuple, Iterable\n\nimport torch\nfrom torch import optim\nimport torch.distributed as dist\nimport torch.multiprocessing as mp\nfrom t...
[ { "content": "import inspect\nimport logging as log\nimport os\nimport sys\nimport warnings\nfrom argparse import ArgumentParser\nfrom typing import Union, Optional, List, Dict, Tuple, Iterable\n\nimport torch\nfrom torch import optim\nimport torch.distributed as dist\nimport torch.multiprocessing as mp\nfrom t...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c35a2ee7eb11..6e12875f45989 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,7 +28,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Fixed -- +- Fixed bug related to type cheking of `ReduceLROnPlateau` lr schedulers([#1114](h...
safe-global__safe-config-service-30
Cache GET /safe-apps/ endpoint The endpoint `GET /safe-apps` returns a list of safe-apps that can be cached (eg.: 1h) due to the nature of the endpoint (frequency of updating the app list is low). Updating the list should invalidate the cache.
[ { "content": "from rest_framework.generics import ListAPIView\n\nfrom .models import SafeApp\nfrom .serializers import SafeAppsResponseSerializer\n\n\nclass SafeAppsListView(ListAPIView):\n serializer_class = SafeAppsResponseSerializer\n\n def get_queryset(self):\n queryset = SafeApp.objects.all()\...
[ { "content": "from django.utils.decorators import method_decorator\nfrom django.views.decorators.cache import cache_page\nfrom rest_framework.generics import ListAPIView\n\nfrom .models import SafeApp\nfrom .serializers import SafeAppsResponseSerializer\n\n\nclass SafeAppsListView(ListAPIView):\n serializer_...
diff --git a/src/safe_apps/tests/test_views.py b/src/safe_apps/tests/test_views.py index bea77f7b..2f25f404 100644 --- a/src/safe_apps/tests/test_views.py +++ b/src/safe_apps/tests/test_views.py @@ -1,5 +1,7 @@ import json +from django.core.cache import cache +from django.test import override_settings from django.u...
ansible__ansible-modules-core-4934
postgresql_db inverts the 'changed' logic in check mode when state=absent ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME postgresql_db ##### ANSIBLE VERSION ``` ansible 2.1.1.0 config file = configured module search path = Default w/o overrides ``` ##### SUMMARY I've a task that tries to remove a PostgreSQL...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at you...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at you...
diff --git a/database/postgresql/postgresql_db.py b/database/postgresql/postgresql_db.py old mode 100644 new mode 100755 index 33e812bc560..64871ed1734 --- a/database/postgresql/postgresql_db.py +++ b/database/postgresql/postgresql_db.py @@ -288,11 +288,11 @@ def main(): try: if module.check_mode: ...
fonttools__fonttools-2366
TTGlyphPointPen doesn't handle open contours (starting with 'move') in the PointPen protocol used by UFO glyphs, open contours start with a point that has segmentType="move", see https://unifiedfontobject.org/versions/ufo3/glyphs/glif/#point-types Open contours are valid in UFO, and the original TTGlyphPen treats th...
[ { "content": "from array import array\nfrom typing import Any, Dict, Optional, Tuple\nfrom fontTools.misc.fixedTools import MAX_F2DOT14, floatToFixedToFloat\nfrom fontTools.misc.loggingTools import LogMixin\nfrom fontTools.pens.pointPen import AbstractPointPen\nfrom fontTools.misc.roundTools import otRound\nfro...
[ { "content": "from array import array\nfrom typing import Any, Dict, Optional, Tuple\nfrom fontTools.misc.fixedTools import MAX_F2DOT14, floatToFixedToFloat\nfrom fontTools.misc.loggingTools import LogMixin\nfrom fontTools.pens.pointPen import AbstractPointPen\nfrom fontTools.misc.roundTools import otRound\nfro...
diff --git a/Lib/fontTools/pens/ttGlyphPen.py b/Lib/fontTools/pens/ttGlyphPen.py index ba3e73d43e..5087e1589a 100644 --- a/Lib/fontTools/pens/ttGlyphPen.py +++ b/Lib/fontTools/pens/ttGlyphPen.py @@ -275,10 +275,11 @@ def addPoint( raise PenError("Can't add a point to a closed contour.") if segment...
google__flax-236
Clarification regarding LM1B input pipeline Hi, I am looking for two clarifications regarding the [input_pipeline](https://github.com/google/flax/blob/master/examples/lm1b/input_pipeline.py) in Flax LM1B example. 1. I think there might be a bug at https://github.com/google/flax/blob/master/examples/lm1b/input_pi...
[ { "content": "# Copyright 2020 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright 2020 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/examples/lm1b/input_pipeline.py b/examples/lm1b/input_pipeline.py index d2d019db2..e2285cb8c 100644 --- a/examples/lm1b/input_pipeline.py +++ b/examples/lm1b/input_pipeline.py @@ -129,7 +129,8 @@ def bin_and_batch(dataset, if not training: max_eval_length = max_eval_length or target_bucket_leng...
opendatacube__datacube-core-917
Virtual product aggregate dimension bug ### Expected behaviour This recipe: ```yaml aggregate: xarray_reduction method: sum group_by: year input: product: ls5_nbart_geomedian_annual measurements: [red] ``` should be a no-op. ...
[ { "content": "\"\"\"\nImplementation of virtual products. Provides an interface for the products in the datacube\nto query and to load data, and combinators to combine multiple products into \"virtual\"\nproducts implementing the same interface.\n\"\"\"\n\nfrom abc import ABC, abstractmethod\nfrom collections.a...
[ { "content": "\"\"\"\nImplementation of virtual products. Provides an interface for the products in the datacube\nto query and to load data, and combinators to combine multiple products into \"virtual\"\nproducts implementing the same interface.\n\"\"\"\n\nfrom abc import ABC, abstractmethod\nfrom collections.a...
diff --git a/datacube/virtual/impl.py b/datacube/virtual/impl.py index c0762075b0..5ecaab5491 100644 --- a/datacube/virtual/impl.py +++ b/datacube/virtual/impl.py @@ -530,7 +530,7 @@ def to_box(value): geopolygon=grouped.geopolygon)], ...
encode__httpx-2495
AsyncClient.request runtime error: "Attempted to send an sync request with an AsyncClient instance" Ran into this issue as well. It was surprising to end up with a `RuntimeError: Attempted to send an sync request with an AsyncClient instance` error, when my actual issue had nothing to do with sync/async (in my case sub...
[ { "content": "import inspect\nimport warnings\nfrom json import dumps as json_dumps\nfrom typing import (\n Any,\n AsyncIterable,\n AsyncIterator,\n Dict,\n Iterable,\n Iterator,\n Mapping,\n Optional,\n Tuple,\n Union,\n)\nfrom urllib.parse import urlencode\n\nfrom ._exceptions im...
[ { "content": "import inspect\nimport warnings\nfrom json import dumps as json_dumps\nfrom typing import (\n Any,\n AsyncIterable,\n AsyncIterator,\n Dict,\n Iterable,\n Iterator,\n Mapping,\n Optional,\n Tuple,\n Union,\n)\nfrom urllib.parse import urlencode\n\nfrom ._exceptions im...
diff --git a/httpx/_content.py b/httpx/_content.py index 3cbca7ac69..1c450b7595 100644 --- a/httpx/_content.py +++ b/httpx/_content.py @@ -114,7 +114,11 @@ def encode_content( headers = {"Content-Length": str(content_length)} if body else {} return headers, ByteStream(body) - elif isinstance(cont...
aws__aws-cli-341
argparse dependency is only needed for Python 2.6 We currently have a dependency on argparse because it's not in stdlib for Python 2.6. We should make this dependency specific to 2.6 and not install it for other Python versions.
[ { "content": "#!/usr/bin/env python\nimport os\nimport sys\n\nfrom setuptools import setup, find_packages\n\nimport awscli\n\n\nrequires = ['botocore>=0.16.0,<0.17.0',\n 'bcdoc>=0.9.0,<0.10.0',\n 'six>=1.1.0',\n 'colorama==0.2.5',\n 'argparse>=1.1',\n 'docu...
[ { "content": "#!/usr/bin/env python\nimport sys\n\nfrom setuptools import setup, find_packages\n\nimport awscli\n\n\nrequires = ['botocore>=0.16.0,<0.17.0',\n 'bcdoc>=0.9.0,<0.10.0',\n 'six>=1.1.0',\n 'colorama==0.2.5',\n 'docutils>=0.10',\n 'rsa==3.1.1']\n...
diff --git a/setup.py b/setup.py index d04fc4f186f7..4817479f0aca 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -import os import sys from setuptools import setup, find_packages @@ -11,10 +10,14 @@ 'bcdoc>=0.9.0,<0.10.0', 'six>=1.1.0', 'colorama==...
elastic__apm-agent-python-1050
Using use_elastic_excepthook throws TypeError **Describe the bug**: When using the option [use_elastic_excepthook](https://www.elastic.co/guide/en/apm/agent/python/master/configuration.html#config-use-elastic-excepthook) every uncaught exception also produces the following `TypeError`: ```bash Error in sys.excepth...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details\n# Copyright (c) 2019, Elasticsearch BV\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 c...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details\n# Copyright (c) 2019, Elasticsearch BV\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 c...
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index b9f909fc9..9179b168b 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -48,6 +48,7 @@ endif::[] * Fix a rare error around processing stack frames {pull}1012[#1012] * Fix for Starlette/FastAPI to correctly capture request bodies as strings {pull}1042...
coala__coala-1724
ConsoleInteraction: change format string to match params in print_results_formatted `to_line` --> `end_line` and so on difficulty/newcomer
[ { "content": "try:\n # This import has side effects and is needed to make input() behave nicely\n import readline # pylint: disable=unused-import\nexcept ImportError: # pragma: no cover\n pass\nimport os.path\n\nfrom pyprint.ConsolePrinter import ConsolePrinter\n\nfrom coalib.misc.DictUtilities impor...
[ { "content": "try:\n # This import has side effects and is needed to make input() behave nicely\n import readline # pylint: disable=unused-import\nexcept ImportError: # pragma: no cover\n pass\nimport os.path\n\nfrom pyprint.ConsolePrinter import ConsolePrinter\n\nfrom coalib.misc.DictUtilities impor...
diff --git a/coalib/output/ConsoleInteraction.py b/coalib/output/ConsoleInteraction.py index 81d41b9d2f..64b65cd024 100644 --- a/coalib/output/ConsoleInteraction.py +++ b/coalib/output/ConsoleInteraction.py @@ -231,9 +231,9 @@ def print_results_formatted(log_printer, *args): format_str...
pre-commit__pre-commit-1704
Slow on Windows with lots of submodules `git status` is substantially slower on Windows than on Linux. I'm working in a repo with ~240 submodules. By default, when you run `git status` in a repo with submodules, it'll recursively run `git status` in every submodule as well (sequentially). `git diff` behaves similarly t...
[ { "content": "import argparse\nimport contextlib\nimport functools\nimport logging\nimport os\nimport re\nimport subprocess\nimport time\nimport unicodedata\nfrom typing import Any\nfrom typing import Collection\nfrom typing import Dict\nfrom typing import List\nfrom typing import MutableMapping\nfrom typing im...
[ { "content": "import argparse\nimport contextlib\nimport functools\nimport logging\nimport os\nimport re\nimport subprocess\nimport time\nimport unicodedata\nfrom typing import Any\nfrom typing import Collection\nfrom typing import Dict\nfrom typing import List\nfrom typing import MutableMapping\nfrom typing im...
diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py index 56450e384..508b61a34 100644 --- a/pre_commit/commands/run.py +++ b/pre_commit/commands/run.py @@ -258,7 +258,9 @@ def _all_filenames(args: argparse.Namespace) -> Collection[str]: def _get_diff() -> bytes: - _, out, _ = cmd_output_b('git'...
pre-commit__pre-commit-1590
improve `healthy()` check for node See pre-commit/actions#45 for `language_version: system` hooks this looks like: ``` eslint...................................................................Failed - hook id: eslint - exit code: 127 /home/runner/.cache/pre-commit/repoibq27hfw/node_env-system/bin/node: line...
[ { "content": "import contextlib\nimport functools\nimport os\nimport sys\nfrom typing import Generator\nfrom typing import Sequence\nfrom typing import Tuple\n\nimport pre_commit.constants as C\nfrom pre_commit import parse_shebang\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.envcontext import...
[ { "content": "import contextlib\nimport functools\nimport os\nimport sys\nfrom typing import Generator\nfrom typing import Sequence\nfrom typing import Tuple\n\nimport pre_commit.constants as C\nfrom pre_commit import parse_shebang\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.envcontext import...
diff --git a/pre_commit/languages/node.py b/pre_commit/languages/node.py index d99e6f2c7..dccbb7ca2 100644 --- a/pre_commit/languages/node.py +++ b/pre_commit/languages/node.py @@ -21,7 +21,6 @@ from pre_commit.util import cmd_output_b ENVIRONMENT_DIR = 'node_env' -healthy = helpers.basic_healthy @functools.lr...
encode__starlette-318
Form field names do not escape perfect encoding I switched one microservice from Flask to Starlette and got unexpected form parsing problem. This code will return %20 in places where spaces were supposed to be: ``` from starlette.applications import Starlette from starlette.responses import PlainTextResponse from ...
[ { "content": "import asyncio\nimport io\nimport tempfile\nimport typing\nfrom enum import Enum\nfrom urllib.parse import unquote_plus\n\nfrom starlette.concurrency import run_in_threadpool\nfrom starlette.datastructures import Headers\n\ntry:\n from multipart.multipart import parse_options_header\n import...
[ { "content": "import asyncio\nimport io\nimport tempfile\nimport typing\nfrom enum import Enum\nfrom urllib.parse import unquote_plus\n\nfrom starlette.concurrency import run_in_threadpool\nfrom starlette.datastructures import Headers\n\ntry:\n from multipart.multipart import parse_options_header\n import...
diff --git a/starlette/formparsers.py b/starlette/formparsers.py index b8bd728cb..d148df8a6 100644 --- a/starlette/formparsers.py +++ b/starlette/formparsers.py @@ -125,9 +125,9 @@ async def parse(self) -> typing.Dict[str, typing.Union[str, UploadFile]]: elif message_type == FormMessage.FIELD_DATA: ...
awslabs__gluonts-79
Working with Weekly or Montly time series Hello, I am having difficulties to work with Weekly and Montly frequency. When I run this code using Daily frequenct, it works properly, however, if I resample to weekly or montly I get the following error: `TypeError: unsupported operand type(s) for *: 'int' and 'None...
[ { "content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. 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# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE...
[ { "content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. 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# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE...
diff --git a/src/gluonts/transform.py b/src/gluonts/transform.py index b44bf0daea..694aff4b3c 100644 --- a/src/gluonts/transform.py +++ b/src/gluonts/transform.py @@ -99,7 +99,10 @@ def _compute_date_helper(ts, freq, offset): # this line looks innocent, but can create a date which is out of # bounds v...
kartoza__prj.app-368
Redundant text in categories list We can remove the project name above each category since it is a list that is filtered by the project. And we can make the text of the categories a little smaller... ![screen shot 2016-07-22 at 12 09 13 am](https://cloud.githubusercontent.com/assets/178003/17031883/9e0ca9a6-4fa0-11e6-...
[ { "content": "# coding=utf-8\n\n\"\"\"Project level settings.\n\nAdjust these values as needed but don't commit passwords etc. to any public\nrepository!\n\"\"\"\n\nimport os # noqa\nfrom django.utils.translation import ugettext_lazy as _\nfrom .utils import absolute_path\nfrom .contrib import * # noqa\n\n# P...
[ { "content": "# coding=utf-8\n\n\"\"\"Project level settings.\n\nAdjust these values as needed but don't commit passwords etc. to any public\nrepository!\n\"\"\"\n\nimport os # noqa\nfrom django.utils.translation import ugettext_lazy as _\nfrom .utils import absolute_path\nfrom .contrib import * # noqa\n\n# P...
diff --git a/django_project/changes/static/js/category.js b/django_project/changes/static/js/category.js new file mode 100644 index 000000000..6460ec54a --- /dev/null +++ b/django_project/changes/static/js/category.js @@ -0,0 +1,81 @@ +/** + * Created by Dimas Ciputra <dimas@kartoza.com> on 22/07/16. + */ + +var sortab...
deepset-ai__haystack-2973
Code snippet wrongly formatted in docs **Describe the bug** The code snippet at: https://github.com/deepset-ai/haystack/blob/master/haystack/nodes/ranker/sentence_transformers.py#L32 is rendered as plain text in the corresponding documentation page https://haystack.deepset.ai/reference/ranker **Expected ...
[ { "content": "from typing import List, Optional, Union, Tuple, Iterator, Any\nimport logging\nfrom pathlib import Path\n\nimport torch\nfrom torch.nn import DataParallel\nfrom transformers import AutoModelForSequenceClassification, AutoTokenizer\n\nfrom haystack.errors import HaystackError\nfrom haystack.schema...
[ { "content": "from typing import List, Optional, Union, Tuple, Iterator, Any\nimport logging\nfrom pathlib import Path\n\nimport torch\nfrom torch.nn import DataParallel\nfrom transformers import AutoModelForSequenceClassification, AutoTokenizer\n\nfrom haystack.errors import HaystackError\nfrom haystack.schema...
diff --git a/docs/_src/api/api/ranker.md b/docs/_src/api/api/ranker.md index c1e858afa8..25abd35864 100644 --- a/docs/_src/api/api/ranker.md +++ b/docs/_src/api/api/ranker.md @@ -82,11 +82,11 @@ https://www.sbert.net/docs/pretrained-models/ce-msmarco.html#usage-with-transfor Usage example: ```python -| retrieve...
nonebot__nonebot2-70
Bug: expired matcher 在删除前依然会运行 **描述问题:** 超出有效期的事件响应器在删除前仍然会运行一次 **期望的结果** 超出有效期的事件响应器不被运行 **环境信息:** - OS: Any - Python Version: Any - Nonebot Version: 2.0.0a6 Bug: expired matcher 在删除前依然会运行 **描述问题:** 超出有效期的事件响应器在删除前仍然会运行一次 **期望的结果** 超出有效期的事件响应器不被运行 **环境信息:** - OS: Any - Python Vers...
[ { "content": "\"\"\"\n事件处理\n========\n\nNoneBot 内部处理并按优先级分发事件给所有事件响应器,提供了多个插槽以进行事件的预处理等。\n\"\"\"\n\nimport asyncio\nfrom datetime import datetime\n\nfrom nonebot.log import logger\nfrom nonebot.rule import TrieRule\nfrom nonebot.utils import escape_tag\nfrom nonebot.matcher import matchers, Matcher\nfrom nonebo...
[ { "content": "\"\"\"\n事件处理\n========\n\nNoneBot 内部处理并按优先级分发事件给所有事件响应器,提供了多个插槽以进行事件的预处理等。\n\"\"\"\n\nimport asyncio\nfrom datetime import datetime\n\nfrom nonebot.log import logger\nfrom nonebot.rule import TrieRule\nfrom nonebot.utils import escape_tag\nfrom nonebot.matcher import matchers, Matcher\nfrom nonebo...
diff --git a/nonebot/message.py b/nonebot/message.py index ffd26b8144b2..76f14b25d8df 100644 --- a/nonebot/message.py +++ b/nonebot/message.py @@ -92,8 +92,9 @@ async def _check_matcher(priority: int, bot: Bot, event: Event, async def _check(Matcher: Type[Matcher], bot: Bot, event: Event, sta...
dask__distributed-1885
Numeric environment variable configuration is broken I recently found that a pipeline was throwing this error: ``` Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/distributed/utils.py", line 623, in log_errors yield File "/usr/local/lib/python3.6/site-packages/distributed/sc...
[ { "content": "from __future__ import print_function, division, absolute_import\n\nfrom contextlib import contextmanager\nimport logging\nimport logging.config\nimport os\nimport sys\nimport warnings\n\nfrom .compatibility import FileExistsError, logging_names\n\nlogger = logging.getLogger(__name__)\n\nconfig = ...
[ { "content": "from __future__ import print_function, division, absolute_import\n\nfrom contextlib import contextmanager\nimport logging\nimport logging.config\nimport os\nimport sys\nimport warnings\n\nfrom .compatibility import FileExistsError, logging_names\n\nlogger = logging.getLogger(__name__)\n\nconfig = ...
diff --git a/distributed/config.py b/distributed/config.py index 640bfded6d9..a0f488474e5 100644 --- a/distributed/config.py +++ b/distributed/config.py @@ -67,7 +67,24 @@ def load_env_vars(config): for name, value in os.environ.items(): if name.startswith('DASK_'): varname = name[5:].lower()...
pytorch__text-67
Prevent decoding unicode strs to unicode in Py2 Fixes #67
[ { "content": "from collections import Counter, OrderedDict\nimport six\nimport torch\nfrom torch.autograd import Variable\n\nfrom .dataset import Dataset\nfrom .pipeline import Pipeline\nfrom .utils import get_tokenizer\nfrom ..vocab import Vocab\n\n\nclass Field(object):\n \"\"\"Defines a datatype together ...
[ { "content": "from collections import Counter, OrderedDict\nimport six\nimport torch\nfrom torch.autograd import Variable\n\nfrom .dataset import Dataset\nfrom .pipeline import Pipeline\nfrom .utils import get_tokenizer\nfrom ..vocab import Vocab\n\n\nclass Field(object):\n \"\"\"Defines a datatype together ...
diff --git a/test/data/test_field.py b/test/data/test_field.py index 8a8d9f1b78..9e19d95a5e 100644 --- a/test/data/test_field.py +++ b/test/data/test_field.py @@ -24,6 +24,11 @@ def test_preprocess(self): preprocessing=preprocess_pipeline) assert field_not_sequential....
cookiecutter__cookiecutter-57
UnicodeEncodeError when the prompt string contains non ascii characters. The call prompt fails, if the template settings contains non-ASCII characters. cookiecutter.json example: ``` { "full_name": "Jindřich Smitka", ... } ```
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\ncookiecutter.prompt\n---------------------\n\nFunctions for prompting the user for project info.\n\"\"\"\n\nimport sys\n\nPY3 = sys.version > '3'\nif PY3:\n iteritems = lambda d: iter(d.items())\nelse:\n input = raw_input\n iterite...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\ncookiecutter.prompt\n---------------------\n\nFunctions for prompting the user for project info.\n\"\"\"\n\nimport sys\n\nPY3 = sys.version > '3'\nif PY3:\n iteritems = lambda d: iter(d.items())\nelse:\n input = raw_input\n iterite...
diff --git a/.gitignore b/.gitignore index 13ba5a83c..d1d17a02e 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,6 @@ htmlcov/ # TextMate .tm_properties + +# Local env +.envs diff --git a/cookiecutter/prompt.py b/cookiecutter/prompt.py index 99702d2e0..b0b530d7f 100755 --- a/cookiecutter/prompt.py +++ b/cookie...
zestedesavoir__zds-site-6079
Il est possible de choisir un pseudo invalide **Description du bug** Il est possible de choisir un pseudo un peu farfelu comme par exemple `https://viki53.eu` qui est dans certains cas invalide : la fonction `reverse_lazy('tutorial:find-tutorial', args=(profile.user.username,))` qui permet de retrouver l'URL `'tutor...
[ { "content": "from django.contrib.auth.models import User\nfrom django.core.exceptions import ValidationError\nfrom django.core.validators import EmailValidator\nfrom django.utils.encoding import force_str\nfrom django.utils.translation import gettext_lazy as _\n\nfrom zds.utils.misc import contains_utf8mb4\nfr...
[ { "content": "from django.contrib.auth.models import User\nfrom django.core.exceptions import ValidationError\nfrom django.core.validators import EmailValidator\nfrom django.utils.encoding import force_str\nfrom django.utils.translation import gettext_lazy as _\n\nfrom zds.utils.misc import contains_utf8mb4\nfr...
diff --git a/zds/member/tests/tests_forms.py b/zds/member/tests/tests_forms.py index df5a0e5d63..fb819f7bb9 100644 --- a/zds/member/tests/tests_forms.py +++ b/zds/member/tests/tests_forms.py @@ -176,6 +176,17 @@ def test_username_coma_register_form(self): form = RegisterForm(data=data) self.assertFals...
conda__conda-build-3410
conda build is too quiet When conda build is run with the `--quiet` argument the output is too quiet, information about the created environments is supressed. This information was included in the output of conda build 3.16.3. For example: <details> <summary>meta.yaml</summary> ``` yaml package: name: foo...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport contextlib\nimport json\nimport logging\nimport multiprocessing\nimport os\nimport platform\nimport re\nimport subprocess\nimport sys\nimport warnings\nfrom glob import glob\nfrom os.path import join, normpath\n\n# noqa her...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport contextlib\nimport json\nimport logging\nimport multiprocessing\nimport os\nimport platform\nimport re\nimport subprocess\nimport sys\nimport warnings\nfrom glob import glob\nfrom os.path import join, normpath\n\n# noqa her...
diff --git a/conda_build/environ.py b/conda_build/environ.py index 2042be1bc1..706d17ee18 100644 --- a/conda_build/environ.py +++ b/conda_build/environ.py @@ -858,8 +858,7 @@ def create_env(prefix, specs_or_actions, env, config, subdir, clear_cache=True, locking=conf...
conan-io__conan-7262
[bug] Unable to `python_requires_extend` a package with a '.' in the name ### Environment Details (include every applicable attribute) * Operating System+version: Windows 10 * Conan version: 1.25.1 * Python version: 3.8.1 ### Steps to reproduce (Include if Applicable) - Create a package with a '.' in the n...
[ { "content": "import os\nfrom collections import namedtuple\nfrom contextlib import contextmanager\n\nfrom conans.client.loader import parse_conanfile\nfrom conans.client.recorder.action_recorder import ActionRecorder\nfrom conans.errors import ConanException, NotFoundException\nfrom conans.model.ref import Con...
[ { "content": "import os\nfrom collections import namedtuple\nfrom contextlib import contextmanager\n\nfrom conans.client.loader import parse_conanfile\nfrom conans.client.recorder.action_recorder import ActionRecorder\nfrom conans.errors import ConanException, NotFoundException\nfrom conans.model.ref import Con...
diff --git a/conans/client/graph/python_requires.py b/conans/client/graph/python_requires.py index 75d9dc9ff21..5e0355b279d 100644 --- a/conans/client/graph/python_requires.py +++ b/conans/client/graph/python_requires.py @@ -94,7 +94,7 @@ def load_py_requires(self, conanfile, lock_python_requires, loader): ...
sagemath__sage-36176
toml package is obsolete ### Steps To Reproduce _No response_ ### Expected Behavior toml is not installed ### Actual Behavior toml is installed ### Additional Information I think our `toml` package is obsolete. The only other package listing it as a requirement is tox, but tox only needs it with ancient pythons:...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nPackage Creator\n\"\"\"\n\n# ****************************************************************************\n# Copyright (C) 2016 Volker Braun <vbraun.name@gmail.com>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the ter...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nPackage Creator\n\"\"\"\n\n# ****************************************************************************\n# Copyright (C) 2016 Volker Braun <vbraun.name@gmail.com>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the ter...
diff --git a/bootstrap b/bootstrap index 5156f369c38..aa5755cfc63 100755 --- a/bootstrap +++ b/bootstrap @@ -98,8 +98,8 @@ SAGE_SPKG_CONFIGURE_$(echo ${pkgname} | tr '[a-z]' '[A-Z]')" if test -f "$DIR/requirements.txt" -o -f "$DIR/install-requires.txt"; then # A Python package ...
vyperlang__vyper-461
compile_lll.py: buggy translation of `repeat` when #iteration <= 0 ### What's your issue about? If the #iteration of `repeat` loop is less than or equal to 0, it replaces it by `2`, which perhaps should not, while `1` would be more reasonable: https://github.com/ethereum/viper/blob/b1fe12ddd8706ef3340a103916e3d3f2c...
[ { "content": "from viper.parser.parser import LLLnode\nfrom .opcodes import opcodes\nfrom viper.utils import MemoryPositions\n\n\ndef num_to_bytearray(x):\n o = []\n while x > 0:\n o.insert(0, x % 256)\n x //= 256\n return o\n\n\nPUSH_OFFSET = 0x5f\nDUP_OFFSET = 0x7f\nSWAP_OFFSET = 0x8f\n...
[ { "content": "from viper.parser.parser import LLLnode\nfrom .opcodes import opcodes\nfrom viper.utils import MemoryPositions\n\n\ndef num_to_bytearray(x):\n o = []\n while x > 0:\n o.insert(0, x % 256)\n x //= 256\n return o\n\n\nPUSH_OFFSET = 0x5f\nDUP_OFFSET = 0x7f\nSWAP_OFFSET = 0x8f\n...
diff --git a/tests/compiler/LLL/test_repeat.py b/tests/compiler/LLL/test_repeat.py new file mode 100644 index 0000000000..3c483343a7 --- /dev/null +++ b/tests/compiler/LLL/test_repeat.py @@ -0,0 +1,9 @@ +import pytest + +def test_repeat(t, get_contract_from_lll, assert_compile_failed): + good_lll = ['repeat', 0, 0, ...
holoviz__hvplot-693
sample_data try/except import wrapper fails #### ALL software version info hvplot: 0.7.3 #### Description of expected behavior and the observed behavior The following import fails, despite the all-catching `except` in the code?? (Honestly stumped) ```python from hvplot.sample_data import us_crime, airline_flig...
[ { "content": "\"\"\"\nLoads hvPlot sample data using intake catalogue.\n\"\"\"\n\nimport os\n\ntry:\n from intake import open_catalog\nexcept:\n raise ImportError('Loading hvPlot sample data requires intake '\n 'and intake-parquet. Install it using conda or '\n 'p...
[ { "content": "\"\"\"\nLoads hvPlot sample data using intake catalogue.\n\"\"\"\n\nimport os\n\ntry:\n from intake import open_catalog\n import intake_parquet # noqa\n import intake_xarray # noqa\n import s3fs # noqa\nexcept:\n raise ImportError(\n \"\"\"Loading hvPlot sample data requi...
diff --git a/hvplot/sample_data.py b/hvplot/sample_data.py index d59e178b8..5f7d4782e 100644 --- a/hvplot/sample_data.py +++ b/hvplot/sample_data.py @@ -6,10 +6,18 @@ try: from intake import open_catalog + import intake_parquet # noqa + import intake_xarray # noqa + import s3fs # noqa except: - ...
aws-cloudformation__cfn-lint-757
E0001 when LayerVersion ContentUri references local file *cfn-lint version: 0.16.0* Using latest version of cfn-lint and updated spec files. *Description of issue.* Linting a SAM template fails when including a LayerVersion with `ContentUri` referencing a local file. Example template: ```yaml AWSTemplat...
[ { "content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
[ { "content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
diff --git a/src/cfnlint/transform.py b/src/cfnlint/transform.py index 67bc1e17e6..a07f51b23b 100644 --- a/src/cfnlint/transform.py +++ b/src/cfnlint/transform.py @@ -70,7 +70,9 @@ def _replace_local_codeuri(self): if resource_type == 'AWS::Serverless::Function': Transform._update_to_s3_...
Cog-Creators__Red-DiscordBot-4465
Maybe_send_embed inconsistent behavior for cog developers # Other bugs #### What were you trying to do? Use `maybe_send_embed` to send an empty string #### What were you expecting to happen? Consistent behavior with an error, failing to send an empty message per: `discord.errors.HTTPException: 400 Bad Re...
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport contextlib\nimport os\nimport re\nfrom typing import Iterable, List, Union, Optional, TYPE_CHECKING\nimport discord\nfrom discord.ext.commands import Context as DPYContext\n\nfrom .requires import PermState\nfrom ..utils.chat_formatting ...
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport contextlib\nimport os\nimport re\nfrom typing import Iterable, List, Union, Optional, TYPE_CHECKING\nimport discord\nfrom discord.ext.commands import Context as DPYContext\n\nfrom .requires import PermState\nfrom ..utils.chat_formatting ...
diff --git a/redbot/core/commands/context.py b/redbot/core/commands/context.py index a2dab24954f..718060d770d 100644 --- a/redbot/core/commands/context.py +++ b/redbot/core/commands/context.py @@ -248,8 +248,11 @@ async def maybe_send_embed(self, message: str) -> discord.Message: see `discord.abc.Messageab...
tobymao__sqlglot-2407
`REGEXP_I_LIKE` method doesn't exist in ClickHouse **Fully reproducible code snippet** sqlglot converts regexp ilike to `REGEXP_I_LIKE` in ClickHouse which doesn't exist. ```py import sqlglot sql = "'thomas' ~* '.*thomas.*'" print(sqlglot.parse_one(sql, read='postgres').sql(dialect='clickhouse')) #> REGEXP_...
[ { "content": "from __future__ import annotations\n\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n Dialect,\n inline_array_sql,\n no_pivot_sql,\n rename_func,\n var_map_sql,\n)\nfrom sqlglot.errors import ParseError\n...
[ { "content": "from __future__ import annotations\n\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n Dialect,\n inline_array_sql,\n no_pivot_sql,\n rename_func,\n var_map_sql,\n)\nfrom sqlglot.errors import ParseError\n...
diff --git a/sqlglot/dialects/clickhouse.py b/sqlglot/dialects/clickhouse.py index e9d932661e..c702f1dfa3 100644 --- a/sqlglot/dialects/clickhouse.py +++ b/sqlglot/dialects/clickhouse.py @@ -418,6 +418,11 @@ class Generator(generator.Generator): "NAMED COLLECTION", } + def regexpilike_sql...
nyu-mll__jiant-724
Broken support for multiple target tasks with fine-tuning and no pretraining If you want to evaluate BERT on a set of target tasks (no extra pretraining, paradigm = finetune), the pre_target_train doesn't kick in, and the model crashes when it tries to restore after finishing a target task.
[ { "content": "\"\"\"Train a multi-task model using AllenNLP\n\nTo debug this, run with -m ipdb:\n\n python -m ipdb main.py --config_file ...\n\"\"\"\n# pylint: disable=no-member\nimport logging as log\n\nlog.basicConfig(\n format=\"%(asctime)s: %(message)s\", datefmt=\"%m/%d %I:%M:%S %p\", level=log.INFO\...
[ { "content": "\"\"\"Train a multi-task model using AllenNLP\n\nTo debug this, run with -m ipdb:\n\n python -m ipdb main.py --config_file ...\n\"\"\"\n# pylint: disable=no-member\nimport logging as log\n\nlog.basicConfig(\n format=\"%(asctime)s: %(message)s\", datefmt=\"%m/%d %I:%M:%S %p\", level=log.INFO\...
diff --git a/main.py b/main.py index 240ef50b6..1cc9cc7ab 100644 --- a/main.py +++ b/main.py @@ -265,7 +265,7 @@ def get_best_checkpoint_path(run_dir, phase): target training 3) nothing found (empty string) """ checkpoint = glob.glob(os.path.join(run_dir, "model_state_%s_epoch_*.best_macro.th" % ...
sanic-org__sanic-666
__main__ top-level script shadowing ImportError Given `main.py`: ```python import nonexistent # assuming this is... non-existent from sanic import Sanic, response app = Sanic(__name__) @app.route('/') async def index(request): return response.html('<p>Hello</p>') ``` When we try to import someth...
[ { "content": "from argparse import ArgumentParser\nfrom importlib import import_module\n\nfrom sanic.log import log\nfrom sanic.app import Sanic\n\nif __name__ == \"__main__\":\n parser = ArgumentParser(prog='sanic')\n parser.add_argument('--host', dest='host', type=str, default='127.0.0.1')\n parser.a...
[ { "content": "from argparse import ArgumentParser\nfrom importlib import import_module\n\nfrom sanic.log import log\nfrom sanic.app import Sanic\n\nif __name__ == \"__main__\":\n parser = ArgumentParser(prog='sanic')\n parser.add_argument('--host', dest='host', type=str, default='127.0.0.1')\n parser.a...
diff --git a/sanic/__main__.py b/sanic/__main__.py index b6a66b8e20..cc58056647 100644 --- a/sanic/__main__.py +++ b/sanic/__main__.py @@ -35,10 +35,10 @@ app.run(host=args.host, port=args.port, workers=args.workers, debug=args.debug, ssl=ssl) - except ImportError: + except ImportError...
ibis-project__ibis-6059
bug: 'No database selected' error when attempting to infer column type ### What happened? I'm using a mysql database with multiple schemas (separate 'databases' all on the same mysql server). I can connect to the various tables with the table method, e.g. `conn.table(name=table_name, schema=db_name)`,where the origina...
[ { "content": "from __future__ import annotations\n\nimport abc\nimport atexit\nimport contextlib\nimport getpass\nimport warnings\nfrom operator import methodcaller\nfrom typing import TYPE_CHECKING, Any, Iterable, Mapping\n\nimport sqlalchemy as sa\nfrom sqlalchemy.ext.compiler import compiles\nfrom sqlalchemy...
[ { "content": "from __future__ import annotations\n\nimport abc\nimport atexit\nimport contextlib\nimport getpass\nimport warnings\nfrom operator import methodcaller\nfrom typing import TYPE_CHECKING, Any, Iterable, Mapping\n\nimport sqlalchemy as sa\nfrom sqlalchemy.ext.compiler import compiles\nfrom sqlalchemy...
diff --git a/ibis/backends/base/sql/alchemy/__init__.py b/ibis/backends/base/sql/alchemy/__init__.py index 180e298c7d58..da199daf2bd6 100644 --- a/ibis/backends/base/sql/alchemy/__init__.py +++ b/ibis/backends/base/sql/alchemy/__init__.py @@ -467,8 +467,15 @@ def _handle_failed_column_type_inference( """Handle...
sanic-org__sanic-2895
Multiplexer and Manager out of sync on number of expected arguments ### Is there an existing issue for this? - [X] I have searched the existing issues ### Describe the bug The manager is expecting the wrong number of arguments. Therefore app.m.manage is not working as intended. ``` [ERROR] Monitor received an in...
[ { "content": "__version__ = \"23.12.0\"\n", "path": "sanic/__version__.py" }, { "content": "import os\n\nfrom contextlib import suppress\nfrom enum import IntEnum, auto\nfrom itertools import chain, count\nfrom random import choice\nfrom signal import SIGINT, SIGTERM, Signals\nfrom signal import sig...
[ { "content": "__version__ = \"23.12.1\"\n", "path": "sanic/__version__.py" }, { "content": "import os\n\nfrom contextlib import suppress\nfrom enum import IntEnum, auto\nfrom itertools import chain, count\nfrom random import choice\nfrom signal import SIGINT, SIGTERM, Signals\nfrom signal import sig...
diff --git a/sanic/__version__.py b/sanic/__version__.py index 1cea76e950..5e62ad8939 100644 --- a/sanic/__version__.py +++ b/sanic/__version__.py @@ -1 +1 @@ -__version__ = "23.12.0" +__version__ = "23.12.1" diff --git a/sanic/worker/manager.py b/sanic/worker/manager.py index 89575ba2ff..da0fc4e202 100644 --- a/sanic/...
modin-project__modin-6173
BUG: Failed to pass storage_options parameter to the to_csv function of PandasOnUnidistIO class with fsspec Similar to #6097.
[ { "content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ...
[ { "content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ...
diff --git a/modin/core/execution/unidist/implementations/pandas_on_unidist/io/io.py b/modin/core/execution/unidist/implementations/pandas_on_unidist/io/io.py index 3cabcaf21c1..2e4d8c58041 100644 --- a/modin/core/execution/unidist/implementations/pandas_on_unidist/io/io.py +++ b/modin/core/execution/unidist/implementa...