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 ⌀ |
|---|---|---|---|---|
akvo__akvo-rsr-3048 | Project editor doesn't handle 404's
I accidentally tried [this project editor link](http://rsr.akvo.org/en/myrsr/project_editor/2867/). The problem is that there is no project with ID 2867. This should result in a 404, but instead we get a 500 😢
| [
{
"content": "# -*- coding: utf-8 -*-\n\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the\nAkvo RSR module. For additional details on the GNU license please\nsee < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\... | [
{
"content": "# -*- coding: utf-8 -*-\n\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the\nAkvo RSR module. For additional details on the GNU license please\nsee < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\... | diff --git a/akvo/rsr/views/my_rsr.py b/akvo/rsr/views/my_rsr.py
index f905bea73d..6dcd809d97 100644
--- a/akvo/rsr/views/my_rsr.py
+++ b/akvo/rsr/views/my_rsr.py
@@ -274,7 +274,7 @@ def project_editor(request, project_id):
'primary_organisation',
).get(pk=project_id)
except Project.DoesNotEx... |
pypa__setuptools-1650 | pyproject.toml should be included in sdist by default
An issue came up at work recently where installing [python-daemon](https://pagure.io/python-daemon) with `pip` was hitting the `easy_install` path. I assumed it was because `python-daemon` didn't have a `pyproject.toml`, but it turns out they do - it's just not incl... | [
{
"content": "from distutils import log\nimport distutils.command.sdist as orig\nimport os\nimport sys\nimport io\nimport contextlib\n\nfrom setuptools.extern import six, ordered_set\n\nfrom .py36compat import sdist_add_defaults\n\nimport pkg_resources\n\n_default_revctrl = list\n\n\ndef walk_revctrl(dirname=''... | [
{
"content": "from distutils import log\nimport distutils.command.sdist as orig\nimport os\nimport sys\nimport io\nimport contextlib\n\nfrom setuptools.extern import six, ordered_set\n\nfrom .py36compat import sdist_add_defaults\n\nimport pkg_resources\n\n_default_revctrl = list\n\n\ndef walk_revctrl(dirname=''... | diff --git a/changelog.d/1634.breaking.rst b/changelog.d/1634.breaking.rst
new file mode 100644
index 0000000000..b65e5d9f40
--- /dev/null
+++ b/changelog.d/1634.breaking.rst
@@ -0,0 +1 @@
+Include ``pyproject.toml`` in source distribution by default. Projects relying on the previous behavior where ``pyproject.toml`` w... |
huggingface__accelerate-284 | Crash with fp16 in pytorch 1.11
Crash due to new signature of `autocast.__exit__()` in pytorch 1.11
See below, now args are required:
https://github.com/pytorch/pytorch/blob/0b1f3bd158bec2cf4ab6bfde573d691c65b0742d/torch/autocast_mode.py#L201
Error:
```
Traceback (most recent call last):
File "/Midgard/home/... | [
{
"content": "# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#... | [
{
"content": "# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#... | diff --git a/src/accelerate/accelerator.py b/src/accelerate/accelerator.py
index fabd3e9fc20..f01d06b98ab 100644
--- a/src/accelerate/accelerator.py
+++ b/src/accelerate/accelerator.py
@@ -14,6 +14,7 @@
import gc
import os
+import sys
import warnings
from contextlib import contextmanager
from typing import List,... |
beeware__toga-999 | Setting `Table(missing_value="")` does not silence the warning about a missing value in data
**Describe the bug**
Explicitly setting `Table(missing_value="")` (i.e. the empty string and not `None`) does not silence the warning about the missing value:
```
WARNING: Using empty string for missing value in data. Define... | [
{
"content": "from toga.handlers import wrapped_handler\nfrom toga.sources import ListSource\nfrom toga.sources.accessors import build_accessors, to_accessor\n\nfrom .base import Widget\n\n\nclass Table(Widget):\n \"\"\" A Table Widget allows the display of data in the form of columns and rows.\n\n Args:\... | [
{
"content": "from toga.handlers import wrapped_handler\nfrom toga.sources import ListSource\nfrom toga.sources.accessors import build_accessors, to_accessor\n\nfrom .base import Widget\n\n\nclass Table(Widget):\n \"\"\" A Table Widget allows the display of data in the form of columns and rows.\n\n Args:\... | diff --git a/src/core/toga/widgets/table.py b/src/core/toga/widgets/table.py
index dd6dfcd91c..0449ca5f70 100644
--- a/src/core/toga/widgets/table.py
+++ b/src/core/toga/widgets/table.py
@@ -53,7 +53,7 @@ def __init__(self, headings, id=None, style=None, data=None, accessors=None,
self._on_select = None
... |
ktbyers__netmiko-2935 | Huawei special_login_handler is not logging in successfully
The system information is as follows:
1. netmiko version: 4.0
2. python 3.10
3. window 11
error_print:
```shell
Traceback (most recent call last):
File "E:\web_API\test.py", line 11, in <module>
app.net_ssh_proxy(switch_json = switch_json, comm... | [
{
"content": "from typing import Optional, Any, Union, Sequence, Iterator, TextIO\nimport time\nimport re\nimport warnings\n\nfrom netmiko.no_enable import NoEnable\nfrom netmiko.base_connection import DELAY_FACTOR_DEPR_SIMPLE_MSG\nfrom netmiko.cisco_base_connection import CiscoBaseConnection\nfrom netmiko.exce... | [
{
"content": "from typing import Optional, Any, Union, Sequence, Iterator, TextIO\nimport time\nimport re\nimport warnings\n\nfrom netmiko.no_enable import NoEnable\nfrom netmiko.base_connection import DELAY_FACTOR_DEPR_SIMPLE_MSG\nfrom netmiko.cisco_base_connection import CiscoBaseConnection\nfrom netmiko.exce... | diff --git a/netmiko/huawei/huawei.py b/netmiko/huawei/huawei.py
index 625ce1ae5..154c4817c 100644
--- a/netmiko/huawei/huawei.py
+++ b/netmiko/huawei/huawei.py
@@ -128,7 +128,7 @@ def telnet_login(
"""Telnet login for Huawei Devices"""
delay_factor = self.select_delay_factor(delay_factor)
- ... |
ansible-collections__community.general-2591 | ini_file is thrown off by BOM
### Summary
I noticed that an INI file I'm modifying is getting its first section split up. (I'm setting an option which doesn't already exist.) The software that uses the file does not support duplicate sections, and fails to launch as a result.
After investigation, the cause appear... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2012, Jan-Piet Mens <jpmens () gmail.com>\n# Copyright: (c) 2015, Ales Nosek <anosek.nosek () gmail.com>\n# Copyright: (c) 2017, Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.t... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2012, Jan-Piet Mens <jpmens () gmail.com>\n# Copyright: (c) 2015, Ales Nosek <anosek.nosek () gmail.com>\n# Copyright: (c) 2017, Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.t... | diff --git a/changelogs/fragments/2578-ini-file-utf8-bom.yml b/changelogs/fragments/2578-ini-file-utf8-bom.yml
new file mode 100644
index 00000000000..00640c0b237
--- /dev/null
+++ b/changelogs/fragments/2578-ini-file-utf8-bom.yml
@@ -0,0 +1,2 @@
+minor_changes:
+ - ini_file - opening file with encoding ``utf-8-sig`` ... |
automl__auto-sklearn-322 | Exception: batch_size must be a positive integer
I was running the following two line script:
`automl = autosklearn.classification.AutoSklearnClassifier()`
`automl.fit(X_train, y_train)`
on the Pima Indians Diabetes binary classification dataset, and it ended hours later with the following error:
```
.
... | [
{
"content": "# -*- encoding: utf-8 -*-\nimport numpy as np\n\nimport sklearn.model_selection\nimport sklearn.datasets\nimport sklearn.metrics\n\nimport autosklearn.classification\nimport autosklearn.metrics\n\n\n\ndef accuracy(solution, prediction):\n # function defining accuracy\n return np.mean(solutio... | [
{
"content": "# -*- encoding: utf-8 -*-\nimport numpy as np\n\nimport sklearn.model_selection\nimport sklearn.datasets\nimport sklearn.metrics\n\nimport autosklearn.classification\nimport autosklearn.metrics\n\n\n\ndef accuracy(solution, prediction):\n # function defining accuracy\n return np.mean(solutio... | diff --git a/doc/index.rst b/doc/index.rst
index fddf413fa7..4c074c9907 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -14,7 +14,7 @@ replacement for a scikit-learn estimator:
>>> import autosklearn.classification
>>> cls = autosklearn.classification.AutoSklearnClassifier()
>>> cls.fit(X_train, y_trai... |
aws-cloudformation__cfn-lint-2253 | E3012 Property should be of type Json - incorrectly flagging official examples
*cfn-lint version:*
0.51.0
*Description of issue.*
After upgrading to 0.51.0 today, we are now seeing new lint issues. Specifically `E3012 Property should be of type Json` on the parameters section of `AWS::SSM::Association`
Even the e... | [
{
"content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nfrom cfnlint.rules import CloudFormationLintRule\nfrom cfnlint.rules import RuleMatch\nimport cfnlint.helpers\n\n\nclass Properties(CloudFormationLintRule):\n \"\"\"Check Base Res... | [
{
"content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nfrom cfnlint.rules import CloudFormationLintRule\nfrom cfnlint.rules import RuleMatch\nimport cfnlint.helpers\n\n\nclass Properties(CloudFormationLintRule):\n \"\"\"Check Base Res... | diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
index b1edc01bf8..375441a86b 100644
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -36,7 +36,7 @@ def primitivetypecheck(self... |
opensearch-project__opensearch-build-672 | [Bug]: The location specified in bundle-manifest (manifest.yml) are invalid
### Describe the bug
A build manifest is bundled inside the OpenSearch bundle tarball (manifest.yml) which contains all the information about the components used to build the bundle. The bundle manifest contains a key `location` whose value is... | [
{
"content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport os\nfrom urllib.parse import urljoin\n\nfrom manifests.bundle_manifest import BundleManifest... | [
{
"content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport os\nfrom urllib.parse import urljoin\n\nfrom manifests.bundle_manifest import BundleManifest... | diff --git a/bundle-workflow/src/assemble_workflow/bundle_recorder.py b/bundle-workflow/src/assemble_workflow/bundle_recorder.py
index dccbf972e5..97593294d1 100644
--- a/bundle-workflow/src/assemble_workflow/bundle_recorder.py
+++ b/bundle-workflow/src/assemble_workflow/bundle_recorder.py
@@ -31,8 +31,8 @@ def __get_t... |
Lightning-AI__pytorch-lightning-933 | Add "epoch" options to basic templates
## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->
Add "epochs" option to parser of 'basic_examples/lightning_module_template.py'
### Motivation
<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g... | [
{
"content": "\"\"\"\nExample template for defining a system\n\"\"\"\nimport logging as log\nimport os\nfrom argparse import ArgumentParser\nfrom collections import OrderedDict\n\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nimport torchvision.transforms as transforms\nfrom torch import... | [
{
"content": "\"\"\"\nExample template for defining a system\n\"\"\"\nimport logging as log\nimport os\nfrom argparse import ArgumentParser\nfrom collections import OrderedDict\n\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nimport torchvision.transforms as transforms\nfrom torch import... | diff --git a/pl_examples/basic_examples/lightning_module_template.py b/pl_examples/basic_examples/lightning_module_template.py
index fabe18504686f..edc482c76f7de 100644
--- a/pl_examples/basic_examples/lightning_module_template.py
+++ b/pl_examples/basic_examples/lightning_module_template.py
@@ -250,6 +250,7 @@ def add... |
bridgecrewio__checkov-5425 | [CKV_AWS_358] - false alarm triggered even when GH Organisation is specified
**Describe the issue**
I guess there is false alarm triggered by this check.
The GitHub Organisation is already included in the values of condition for the `token.actions.githubusercontent.com:sub` variable.
**Examples**
```terraform
... | [
{
"content": "from typing import Dict, List, Any\nimport re\nfrom checkov.common.models.enums import CheckResult, CheckCategories\nfrom checkov.common.util.type_forcers import force_list\nfrom checkov.terraform.checks.data.base_check import BaseDataCheck\n\ngh_repo_regex = re.compile(r'repo:[^/]+/[^/]+')\n\n\nc... | [
{
"content": "from typing import Dict, List, Any\nimport re\nfrom checkov.common.models.enums import CheckResult, CheckCategories\nfrom checkov.common.util.type_forcers import force_list\nfrom checkov.terraform.checks.data.base_check import BaseDataCheck\n\ngh_repo_regex = re.compile(r'repo:[^/]+/[^/]+')\n\n\nc... | diff --git a/checkov/terraform/checks/data/aws/GithubActionsOIDCTrustPolicy.py b/checkov/terraform/checks/data/aws/GithubActionsOIDCTrustPolicy.py
index 9ffb8e41f0..e43a3ad6bd 100644
--- a/checkov/terraform/checks/data/aws/GithubActionsOIDCTrustPolicy.py
+++ b/checkov/terraform/checks/data/aws/GithubActionsOIDCTrustPol... |
pypi__warehouse-2985 | Sort user page project list by last release date
Right now the project listing on user page is sorted alphabetically:

I just released chert a couple days ago, but it's below a... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | diff --git a/warehouse/accounts/views.py b/warehouse/accounts/views.py
index b66a424ef24c..e17cfbf6d964 100644
--- a/warehouse/accounts/views.py
+++ b/warehouse/accounts/views.py
@@ -80,12 +80,11 @@ def profile(user, request):
)
projects = (
- request.db.query(Release)
- .options... |
zulip__zulip-21579 | Document custom expiration times for invitations
In #19680, we added the ability to set custom expiration times for invitations and invite links. This should be documented in the help center at https://zulip.com/help/invite-new-users.
Note that this feature will be further extended in #19681; we might be able to wri... | [
{
"content": "import re\nfrom typing import Any, Dict, List, Mapping, Optional\n\nimport markdown\nfrom markdown.extensions import Extension\nfrom markdown.preprocessors import Preprocessor\n\nfrom zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES\n\nSTART_TABBED_SECTION_REGEX = re.compi... | [
{
"content": "import re\nfrom typing import Any, Dict, List, Mapping, Optional\n\nimport markdown\nfrom markdown.extensions import Extension\nfrom markdown.preprocessors import Preprocessor\n\nfrom zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES\n\nSTART_TABBED_SECTION_REGEX = re.compi... | diff --git a/static/templates/invitation_failed_error.hbs b/static/templates/invitation_failed_error.hbs
index 4e33a15b1885c..10eddc7bb8a6e 100644
--- a/static/templates/invitation_failed_error.hbs
+++ b/static/templates/invitation_failed_error.hbs
@@ -3,7 +3,7 @@
{{#tr}}
Please <z-link-support>contact su... |
jazzband__pip-tools-1724 | Deprecate legacy resolver
#### What's the problem this feature will solve?
Pip's legacy resolver is going to be removed any time soon, let's prepare for it.
#### Describe the solution you'd like
Deprecate the legacy resolver and remove it as soon as pip removes its own legacy resolver.
#### Alternative Solu... | [
{
"content": "from __future__ import annotations\n\nimport itertools\nimport os\nimport shlex\nimport sys\nimport tempfile\nfrom typing import IO, Any, BinaryIO, cast\n\nimport click\nfrom build import BuildBackendException\nfrom build.util import project_wheel_metadata\nfrom click.utils import LazyFile, safeca... | [
{
"content": "from __future__ import annotations\n\nimport itertools\nimport os\nimport shlex\nimport sys\nimport tempfile\nfrom typing import IO, Any, BinaryIO, cast\n\nimport click\nfrom build import BuildBackendException\nfrom build.util import project_wheel_metadata\nfrom click.utils import LazyFile, safeca... | diff --git a/README.rst b/README.rst
index a540240b9..153e3ea73 100644
--- a/README.rst
+++ b/README.rst
@@ -571,6 +571,8 @@ This section lists ``pip-tools`` features that are currently deprecated.
default. Use ``--no-allow-unsafe`` to keep the old behavior. It is
recommended to pass the ``--allow-unsafe`` now to... |
biolab__orange3-6063 | Feature Constructor: Handle missing values for StringVariables
<!--
Thanks for taking the time to report a bug!
If you're raising an issue about an add-on (i.e., installed via Options > Add-ons), raise an issue in the relevant add-on's issue tracker instead. See: https://github.com/biolab?q=orange3
To fix the bug, ... | [
{
"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 72704e9727c..74270b7092e 100644
--- a/Orange/widgets/data/owfeatureconstructor.py
+++ b/Orange/widgets/data/owfeatureconstructor.py
@@ -1266,7 +1266,7 @@ def __call_instance(self, instance: Instance):
def e... |
ansible-collections__community.aws-1000 | Deleting an IAM Role Should Not Fail if Permission Boundary Cannot Be Removed
### Summary
I have a role with a permission boundary that disallows removing permission boundaries. This role is then able to create a new role, which inherits that permissions boundary. If I want to delete that role, the `iam_role` plugin... | [
{
"content": "#!/usr/bin/python\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\n\nDOCUMENTATION = r'''\n---\nmodule: iam_role\nversion_added: 1.0.0\nshort_description: Man... | [
{
"content": "#!/usr/bin/python\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\n\nDOCUMENTATION = r'''\n---\nmodule: iam_role\nversion_added: 1.0.0\nshort_description: Man... | diff --git a/changelogs/fragments/961-iam-role-should-not-remove-permission-boundary-before-deletion.yml b/changelogs/fragments/961-iam-role-should-not-remove-permission-boundary-before-deletion.yml
new file mode 100644
index 00000000000..47dd88ed178
--- /dev/null
+++ b/changelogs/fragments/961-iam-role-should-not-remo... |
tensorflow__tensor2tensor-1344 | ML Engine integration broken with 1.11
### Description
Trying to train translate_ende_wmt32k demo with ml-engine, got tensorflow version mismatch error.
looks like t2t 1.11 introduced [tensorflow_probability](https://github.com/tensorflow/tensor2tensor/blob/c67f1c9d921795a91889082edd2eb08552705178/tensor2tensor/... | [
{
"content": "# coding=utf-8\n# Copyright 2018 The Tensor2Tensor 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#... | [
{
"content": "# coding=utf-8\n# Copyright 2018 The Tensor2Tensor 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#... | diff --git a/tensor2tensor/utils/cloud_mlengine.py b/tensor2tensor/utils/cloud_mlengine.py
index c62069d24..4e8b2cfc0 100755
--- a/tensor2tensor/utils/cloud_mlengine.py
+++ b/tensor2tensor/utils/cloud_mlengine.py
@@ -34,14 +34,14 @@
FLAGS = tf.flags.FLAGS
CONSOLE_URL = "https://console.cloud.google.com/mlengine/job... |
plotly__plotly.py-2255 | default renderer not always automatically set
if I open ipython on my Ubuntu machine, I would like the default renderer to be set automatically to 'browser' (as it's intended to be I think) but it's not the case:
```
$ ipython3
Python 3.7.3 (default, Oct 7 2019, 12:56:13)
Type 'copyright', 'credits' or 'license'... | [
{
"content": "from __future__ import absolute_import, division\n\nimport textwrap\nfrom copy import copy\n\nimport six\nimport os\nfrom distutils.version import LooseVersion\n\nfrom plotly import optional_imports\n\nfrom plotly.io._base_renderers import (\n MimetypeRenderer,\n ExternalRenderer,\n Plotl... | [
{
"content": "from __future__ import absolute_import, division\n\nimport textwrap\nfrom copy import copy\n\nimport six\nimport os\nfrom distutils.version import LooseVersion\n\nfrom plotly import optional_imports\n\nfrom plotly.io._base_renderers import (\n MimetypeRenderer,\n ExternalRenderer,\n Plotl... | diff --git a/packages/python/plotly/plotly/io/_renderers.py b/packages/python/plotly/plotly/io/_renderers.py
index 2341339d028..5277c9efec7 100644
--- a/packages/python/plotly/plotly/io/_renderers.py
+++ b/packages/python/plotly/plotly/io/_renderers.py
@@ -497,6 +497,12 @@ def show(fig, renderer=None, validate=True, **... |
inventree__InvenTree-2288 | [FR] Turn off reports by default
**Problem**
A lot of report buttons do nothing on a fresh install
**Suggested solution**
Make reports a global setting and disable them by default.
**Describe alternatives you've considered**
We could also do nothing
**Do you want to develop this?**
Yes
| [
{
"content": "\"\"\"\nCommon database model definitions.\nThese models are 'generic' and do not fit a particular business logic object.\n\"\"\"\n\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport os\nimport decimal\nimport math\nfrom datetime import datetime, timedelta\n\nfrom django.d... | [
{
"content": "\"\"\"\nCommon database model definitions.\nThese models are 'generic' and do not fit a particular business logic object.\n\"\"\"\n\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport os\nimport decimal\nimport math\nfrom datetime import datetime, timedelta\n\nfrom django.d... | diff --git a/InvenTree/build/templates/build/build_base.html b/InvenTree/build/templates/build/build_base.html
index 826baf13eaca..22a126fcdf6e 100644
--- a/InvenTree/build/templates/build/build_base.html
+++ b/InvenTree/build/templates/build/build_base.html
@@ -34,6 +34,7 @@
{% include "admin_button.html" with url=ur... |
ansible-collections__community.aws-961 | Deleting an IAM Role Should Not Fail if Permission Boundary Cannot Be Removed
### Summary
I have a role with a permission boundary that disallows removing permission boundaries. This role is then able to create a new role, which inherits that permissions boundary. If I want to delete that role, the `iam_role` plugin... | [
{
"content": "#!/usr/bin/python\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\n\nDOCUMENTATION = r'''\n---\nmodule: iam_role\nversion_added: 1.0.0\nshort_description: Man... | [
{
"content": "#!/usr/bin/python\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\n\nDOCUMENTATION = r'''\n---\nmodule: iam_role\nversion_added: 1.0.0\nshort_description: Man... | diff --git a/changelogs/fragments/961-iam-role-should-not-remove-permission-boundary-before-deletion.yml b/changelogs/fragments/961-iam-role-should-not-remove-permission-boundary-before-deletion.yml
new file mode 100644
index 00000000000..47dd88ed178
--- /dev/null
+++ b/changelogs/fragments/961-iam-role-should-not-remo... |
mdn__kuma-7849 | Add country geo information to /api/v1/whoami
We can use this immediately to be able to determine if a user should be seeing certain banners in Yari.
| [
{
"content": "import json\nimport os\nfrom datetime import datetime\nfrom urllib.parse import urlparse\n\nimport stripe\nfrom django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.http import (\n HttpResponse,\n HttpResponseBadRequest,\n HttpResponseForbidden,\n Js... | [
{
"content": "import json\nimport os\nfrom datetime import datetime\nfrom urllib.parse import urlparse\n\nimport stripe\nfrom django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.http import (\n HttpResponse,\n HttpResponseBadRequest,\n HttpResponseForbidden,\n Js... | diff --git a/kuma/api/v1/tests/test_forms.py b/kuma/api/v1/tests/test_forms.py
index 853e34e5366..c00f87bcc21 100644
--- a/kuma/api/v1/tests/test_forms.py
+++ b/kuma/api/v1/tests/test_forms.py
@@ -27,7 +27,6 @@ def test_search_form_locale_happy_path():
request = RequestFactory().get("/api/v1/search?q=foo&locale=Fr... |
Kinto__kinto-1101 | __flush__ produces an HTML reponse
The response for the flush endpoint is a raw HTML response from Pyramid. I suggest make it a JSON response for compatibility with the rest of the API. Maybe return `{}`?
```
gsurita-30820:kinto gsurita$ http post http://localhost:8888/v1/__flush__
HTTP/1.1 202 Accepted
Content-... | [
{
"content": "from cornice import Service\nfrom pyramid import httpexceptions\nfrom pyramid.security import NO_PERMISSION_REQUIRED\n\nfrom kinto.events import ServerFlushed\n\nflush = Service(name='flush',\n description='Clear database content',\n path='/__flush__')\n\n\n@flush.pos... | [
{
"content": "from cornice import Service\nfrom pyramid.security import NO_PERMISSION_REQUIRED\n\nfrom kinto.events import ServerFlushed\n\nflush = Service(name='flush',\n description='Clear database content',\n path='/__flush__')\n\n\n@flush.post(permission=NO_PERMISSION_REQUIRED)... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 77df9d77c..0e9f7e006 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -16,6 +16,7 @@ This document describes changes between each past release.
- Prevent injections in the PostgreSQL permission backend (#1061)
- Fix crash on ``If-Match: *`` (#1064)
- Handle Integer o... |
google__clusterfuzz-1163 | Command field empty in OSS-Fuzz testcases
See https://oss-fuzz.com/testcase-detail/5204819744915456 for example.
| [
{
"content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/src/python/bot/untrusted_runner/tasks_impl.py b/src/python/bot/untrusted_runner/tasks_impl.py
index 3e349c1a18..0d592d74d5 100644
--- a/src/python/bot/untrusted_runner/tasks_impl.py
+++ b/src/python/bot/untrusted_runner/tasks_impl.py
@@ -151,6 +151,7 @@ def engine_reproduce(request, _):
... |
qutebrowser__qutebrowser-3652 | Empty completion.timestamp_format crashes
After `:set completion.timestamp_format ''`:
```
17:26:29 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/home/florian/proj/qutebrowser/git/qutebrowser/completion/completer.py", line 260, in _update_complet... | [
{
"content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2017-2018 Ryan Roden-Corrent (rcorre) <ryan@rcorre.net>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as pub... | [
{
"content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2017-2018 Ryan Roden-Corrent (rcorre) <ryan@rcorre.net>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as pub... | diff --git a/qutebrowser/completion/models/histcategory.py b/qutebrowser/completion/models/histcategory.py
index a07f78143c3..60f80149275 100644
--- a/qutebrowser/completion/models/histcategory.py
+++ b/qutebrowser/completion/models/histcategory.py
@@ -80,7 +80,7 @@ def set_pattern(self, pattern):
for i in... |
streamlink__streamlink-206 | pyCrypto module needed on Windows
Many thanks to all the team for all that's been accomplished so far!
OS is Windows Vista SP2 x86, latest MS updates. Trying to rip the clips from:
[Watch The 2016 MTV EMA Performances](http://www.mtv.co.uk/ema/videos/watch-the-2016-mtv-ema-performances#lush-lifeaint-my-fault-live-... | [
{
"content": "#!/usr/bin/env python\n\nfrom os import environ\nfrom os.path import abspath, dirname, join\nfrom setuptools import setup\nfrom sys import version_info, path as sys_path\n\ndeps = []\npackages = [\n \"streamlink\",\n \"streamlink.stream\",\n \"streamlink.plugin\",\n \"streamlink.plugin... | [
{
"content": "#!/usr/bin/env python\n\nfrom os import environ\nfrom os.path import abspath, dirname, join\nfrom setuptools import setup\nfrom sys import version_info, path as sys_path\n\ndeps = []\npackages = [\n \"streamlink\",\n \"streamlink.stream\",\n \"streamlink.plugin\",\n \"streamlink.plugin... | diff --git a/setup.py b/setup.py
index 4b389d0a062..3408bc6cbfa 100644
--- a/setup.py
+++ b/setup.py
@@ -38,6 +38,9 @@
# requests >2.12.0 currently has strict IDNA2008 parsing that breaks on some non-compliant URIs (YouTube)
deps.append("requests>=1.0,<2.12.0")
+# this version of pycryptodome is known to wo... |
allegro__ralph-3455 | 500 internal error
hi
OS ubuntu Buster
i imported about 900 vms in virtual servers and it have 9 pages now
i can view 6 pages without problem but in pages 7 - 9 i get this error
Environment:
Request Method: GET
Request URL: http://foo.bar/virtual/virtualserver/?p=6
Django Version: 1.8.19
Python Ve... | [
{
"content": "# -*- coding: utf-8 -*-\nimport logging\nimport os\nimport urllib\nfrom copy import copy\n\nfrom django import forms\nfrom django.conf import settings\nfrom django.contrib import admin, messages\nfrom django.contrib.admin.templatetags.admin_static import static\nfrom django.contrib.admin.views.mai... | [
{
"content": "# -*- coding: utf-8 -*-\nimport logging\nimport os\nimport urllib\nfrom copy import copy\n\nfrom django import forms\nfrom django.conf import settings\nfrom django.contrib import admin, messages\nfrom django.contrib.admin.templatetags.admin_static import static\nfrom django.contrib.admin.views.mai... | diff --git a/src/ralph/admin/mixins.py b/src/ralph/admin/mixins.py
index deabea59a2..de146bf8cc 100644
--- a/src/ralph/admin/mixins.py
+++ b/src/ralph/admin/mixins.py
@@ -402,7 +402,8 @@ def get_export_queryset(self, request):
for name, field in resource.fields.items():
if (
isins... |
pypi__warehouse-12653 | PEP 621-style license field shows the entire license text
**Describe the bug**
When using PEP 621-style project metadata with a license file (see https://peps.python.org/pep-0621/#license), the entire license text is shown in the Meta -> License section of a package on pypi. For an example see https://pypi.org/project... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | diff --git a/tests/unit/packaging/test_views.py b/tests/unit/packaging/test_views.py
index 249cb5a34274..b1c02bfa2112 100644
--- a/tests/unit/packaging/test_views.py
+++ b/tests/unit/packaging/test_views.py
@@ -400,6 +400,20 @@ def test_multiple_licenses_from_classifiers(self, db_request):
assert result["lic... |
ansible-collections__community.aws-999 | Deleting an IAM Role Should Not Fail if Permission Boundary Cannot Be Removed
### Summary
I have a role with a permission boundary that disallows removing permission boundaries. This role is then able to create a new role, which inherits that permissions boundary. If I want to delete that role, the `iam_role` plugin... | [
{
"content": "#!/usr/bin/python\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\n\nDOCUMENTATION = r'''\n---\nmodule: iam_role\nversion_added: 1.0.0\nshort_description: Man... | [
{
"content": "#!/usr/bin/python\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\n\nDOCUMENTATION = r'''\n---\nmodule: iam_role\nversion_added: 1.0.0\nshort_description: Man... | diff --git a/changelogs/fragments/961-iam-role-should-not-remove-permission-boundary-before-deletion.yml b/changelogs/fragments/961-iam-role-should-not-remove-permission-boundary-before-deletion.yml
new file mode 100644
index 00000000000..47dd88ed178
--- /dev/null
+++ b/changelogs/fragments/961-iam-role-should-not-remo... |
sopel-irc__sopel-1380 | .title command should say an error if no title is found
Example: http://zimage.com/~ant/temp/notitle.html
Sopel should say there was no web page title found.
| [
{
"content": "# coding=utf-8\n\"\"\"URL title module\"\"\"\n# Copyright 2010-2011, Michael Yanovich, yanovich.net, Kenneth Sham\n# Copyright 2012-2013 Elsie Powell\n# Copyright 2013 Lior Ramati (firerogue517@gmail.com)\n# Copyright © 2014 Elad Alfassa <elad@fedoraproject.org>\n# Licensed under the Eiffel F... | [
{
"content": "# coding=utf-8\n\"\"\"URL title module\"\"\"\n# Copyright 2010-2011, Michael Yanovich, yanovich.net, Kenneth Sham\n# Copyright 2012-2013 Elsie Powell\n# Copyright 2013 Lior Ramati (firerogue517@gmail.com)\n# Copyright © 2014 Elad Alfassa <elad@fedoraproject.org>\n# Licensed under the Eiffel F... | diff --git a/sopel/modules/url.py b/sopel/modules/url.py
index 085e9455a0..8138c5cf27 100644
--- a/sopel/modules/url.py
+++ b/sopel/modules/url.py
@@ -104,6 +104,13 @@ def title_command(bot, trigger):
for title, domain in results[:4]:
bot.reply('[ %s ] - %s' % (title, domain))
+ # Nice to have differ... |
scverse__scanpy-771 | sc.tl.umap error with init_pos="paga"
Hello,
Trying to use sc.tl.umap with initial positions from sc.tl.paga. Seems an error with UMAP from the error log. But it is only called when calling paga positions, UMAP works otherwise.
I do see https://github.com/theislab/scanpy/issues/666, and https://github.com/lmcinne... | [
{
"content": "import numpy as np\nfrom pandas.api.types import is_numeric_dtype\nfrom sklearn.utils import check_random_state, check_array\n\nfrom ._utils import get_init_pos_from_paga, choose_representation\nfrom .._settings import settings\nfrom .. import logging as logg\n\n\ndef umap(\n adata,\n min_di... | [
{
"content": "import numpy as np\nfrom pandas.api.types import is_numeric_dtype\nfrom sklearn.utils import check_random_state, check_array\n\nfrom ._utils import get_init_pos_from_paga, choose_representation\nfrom .._settings import settings\nfrom .. import logging as logg\n\n\ndef umap(\n adata,\n min_di... | diff --git a/scanpy/tests/test_embedding.py b/scanpy/tests/test_embedding.py
index c66e41199c..935b27784b 100644
--- a/scanpy/tests/test_embedding.py
+++ b/scanpy/tests/test_embedding.py
@@ -12,3 +12,10 @@ def test_umap_init_dtype():
embed2 = pbmc.obsm["X_umap"].copy()
assert_array_almost_equal(embed1, embed2... |
PaddlePaddle__PaddleNLP-2853 | DuEE sequence_labeling.py导包错误
欢迎您反馈PaddleNLP使用问题,非常感谢您对PaddleNLP的贡献!
在留下您的问题时,辛苦您同步提供如下信息:
- 版本、环境信息
1)PaddleNLP和PaddlePaddle版本:PaddleNLP 2.3.4,PaddlePaddle2.1.1
2)系统环境:Linux
- 报错信息:
- 修改建议:改成`AutoModelF... | [
{
"content": "# Copyright (c) 2021 Baidu.com, 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#... | [
{
"content": "# Copyright (c) 2021 Baidu.com, 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#... | diff --git a/examples/information_extraction/DuEE/sequence_labeling.py b/examples/information_extraction/DuEE/sequence_labeling.py
index 557fe6892f03..77e8c09d866e 100644
--- a/examples/information_extraction/DuEE/sequence_labeling.py
+++ b/examples/information_extraction/DuEE/sequence_labeling.py
@@ -27,7 +27,7 @@
im... |
cupy__cupy-522 | No validation for kernel name
Although `ElementwiseKernel`'s `name` argument is directly used as a function name in generated CUDA code, there are no validation process to raise an exception when invalid characters are used in `name`.
That causes CUDA compile error, which is a bit difficult to debug.
| [
{
"content": "import hashlib\nimport math\nimport os\nimport shutil\nimport sys\nimport tempfile\n\nimport six\n\nfrom cupy.cuda import device\nfrom cupy.cuda import function\nfrom cupy.cuda import nvrtc\n\n_nvrtc_version = None\n\n\ndef _get_nvrtc_version():\n global _nvrtc_version\n if _nvrtc_version is... | [
{
"content": "import hashlib\nimport math\nimport os\nimport re\nimport shutil\nimport sys\nimport tempfile\n\nimport six\n\nfrom cupy.cuda import device\nfrom cupy.cuda import function\nfrom cupy.cuda import nvrtc\n\n_nvrtc_version = None\n\n\ndef _get_nvrtc_version():\n global _nvrtc_version\n if _nvrtc... | diff --git a/cupy/core/elementwise.pxi b/cupy/core/elementwise.pxi
index f8a7e84a190..28efc5a09fa 100644
--- a/cupy/core/elementwise.pxi
+++ b/cupy/core/elementwise.pxi
@@ -3,6 +3,7 @@ import string
import numpy
import six
+from cupy.cuda import compiler
from cupy import util
from cupy.cuda cimport device
@@ -4... |
microsoft__ptvsd-192 | Tooltip hangs when expanding sys.modules

For VS there is a 'timeout' field that is set (for evaluate, variable enumeration, etc), and this must be honored to have better UI experience. See this request for e... | [
{
"content": "#!/usr/bin/env python\n\n\"\"\"\n untangle\n\n Converts xml to python objects.\n\n The only method you need to call is parse()\n\n Partially inspired by xml2obj\n (http://code.activestate.com/recipes/149368-xml2obj/)\n\n Author: Christian Stefanescu (http://0chris.com)\n License: MIT License - htt... | [
{
"content": "#!/usr/bin/env python\n\n\"\"\"\n untangle\n\n Converts xml to python objects.\n\n The only method you need to call is parse()\n\n Partially inspired by xml2obj\n (http://code.activestate.com/recipes/149368-xml2obj/)\n\n Author: Christian Stefanescu (http://0chris.com)\n License: MIT License - htt... | diff --git a/ptvsd/untangle.py b/ptvsd/untangle.py
index 90d091efe..c5adc4e6a 100644
--- a/ptvsd/untangle.py
+++ b/ptvsd/untangle.py
@@ -185,7 +185,11 @@ def parse(filename, **parser_features):
parser.setFeature(getattr(handler, feature), value)
sax_handler = Handler()
parser.setContentHandler(sax_ha... |
biopython__biopython-3232 | StructureBuilder cannot handle non-canonical altloc ordering written by PDBIO
Parsing a PDB file with disordered atoms where the first instance of the disordered atom has a non-blank altloc but other instances are blank fails - second instance is ignored. See this example:
- PDB 5j2u, line 10598: No altloc in firs... | [
{
"content": "# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)\n#\n# This file is part of the Biopython distribution and governed by your\n# choice of the \"Biopython License Agreement\" or the \"BSD 3-Clause License\".\n# Please see the LICENSE file that should have been included as part of this\n#... | [
{
"content": "# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)\n#\n# This file is part of the Biopython distribution and governed by your\n# choice of the \"Biopython License Agreement\" or the \"BSD 3-Clause License\".\n# Please see the LICENSE file that should have been included as part of this\n#... | diff --git a/Bio/PDB/Atom.py b/Bio/PDB/Atom.py
index 49cd12410b9..c1f59e4a60c 100644
--- a/Bio/PDB/Atom.py
+++ b/Bio/PDB/Atom.py
@@ -482,6 +482,13 @@ def __repr__(self):
"""Return disordered atom identifier."""
return "<Disordered Atom %s>" % self.get_id()
+ def disordered_get_list(self):
+ ... |
encode__httpx-1156 | Response cookies are not ingested properly in 0.14.0
Hi. After last updatet when loading cookies from a file, it gives an error
**http/cookiejar.py", line 1947, in _really_load
domain_specified = domain.startswith(".")
AttributeError: 'NoneType' object has no attribute 'startswith'**
```python
import os
from ... | [
{
"content": "import cgi\nimport datetime\nimport email.message\nimport json as jsonlib\nimport typing\nimport urllib.request\nimport warnings\nfrom collections.abc import MutableMapping\nfrom http.cookiejar import Cookie, CookieJar\nfrom urllib.parse import parse_qsl, urlencode\n\nimport chardet\nimport rfc398... | [
{
"content": "import cgi\nimport datetime\nimport email.message\nimport json as jsonlib\nimport typing\nimport urllib.request\nimport warnings\nfrom collections.abc import MutableMapping\nfrom http.cookiejar import Cookie, CookieJar\nfrom urllib.parse import parse_qsl, urlencode\n\nimport chardet\nimport rfc398... | diff --git a/httpx/_models.py b/httpx/_models.py
index 2d75e8f542..d388ea9b78 100644
--- a/httpx/_models.py
+++ b/httpx/_models.py
@@ -1196,6 +1196,9 @@ def __init__(self, response: Response):
def info(self) -> email.message.Message:
info = email.message.Message()
- for key, value in ... |
google__turbinia-1012 | 'message' referenced before assignment in recipe_helpers.validate_recipe
https://github.com/google/turbinia/blob/a756f4c625cf3796fc82d160f3c794c7e2039437/turbinia/lib/recipe_helpers.py#L169
| [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2021 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2021 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U... | diff --git a/turbinia/lib/recipe_helpers.py b/turbinia/lib/recipe_helpers.py
index 66175fc41..709e4bb38 100644
--- a/turbinia/lib/recipe_helpers.py
+++ b/turbinia/lib/recipe_helpers.py
@@ -163,9 +163,10 @@ def validate_recipe(recipe_dict):
task_loader = TaskLoader()
if not task_loader.check_task_name(pr... |
apache__airflow-19418 | A dag's schedule interval can no longer be an instance of dateutils.relativedelta
### Apache Airflow version
2.2.1 (latest released)
### Operating System
debian
### Versions of Apache Airflow Providers
apache-airflow==2.2.1
apache-airflow-providers-amazon==2.3.0
apache-airflow-providers-ftp==2.0.1
apache-airflo... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | diff --git a/airflow/timetables/interval.py b/airflow/timetables/interval.py
index a095565b54be5..d669cb652d153 100644
--- a/airflow/timetables/interval.py
+++ b/airflow/timetables/interval.py
@@ -271,8 +271,9 @@ def serialize(self) -> Dict[str, Any]:
return {"delta": delta}
def validate(self) -> None:
... |
getnikola__nikola-2157 | ${messages("xxx")} not working in post-list template
When I use ${messages("xxx")} tag inside post-list template. I get an error during site compilation.
Error message is the following : File "/opt/nikola/projects/konilabs-web/cache/.mako.tmp/post_list_thumb.tmpl.py", line 72, in render_content __M_writer(unicode(mess... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2013-2015 Udo Spallek, Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction,... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2013-2015 Udo Spallek, Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction,... | diff --git a/CHANGES.txt b/CHANGES.txt
index cb328b7c07..cff2c821b5 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -15,6 +15,7 @@ Features
Bugfixes
--------
+* Pass messages to post-list template (Issue #2156)
* Changed default log level from INFO to NOTICE (``nikola check`` is less chatty)
* Fix support for panor... |
PaddlePaddle__models-799 | policy_gradient 原理介绍部分内容格式存在问题
https://github.com/PaddlePaddle/models/tree/develop/fluid/policy_gradient
policy_gradient demo介绍部分,看起来格式存在问题,能辛苦调整下吗?或者以什么样的方式可以看到原始的文档呢? @wanghaoshuang @lcy-seso
| [
{
"content": "import numpy as np\nimport paddle.v2 as paddle\nimport paddle.fluid as fluid\n# reproducible\nnp.random.seed(1)\n\n\nclass PolicyGradient:\n def __init__(\n self,\n n_actions,\n n_features,\n learning_rate=0.01,\n reward_decay=0.95,\n ... | [
{
"content": "import numpy as np\nimport paddle.v2 as paddle\nimport paddle.fluid as fluid\n# reproducible\nnp.random.seed(1)\n\n\nclass PolicyGradient:\n def __init__(\n self,\n n_actions,\n n_features,\n learning_rate=0.01,\n reward_decay=0.95,\n ... | diff --git a/fluid/policy_gradient/brain.py b/fluid/policy_gradient/brain.py
index 8387833065..9c7041e698 100644
--- a/fluid/policy_gradient/brain.py
+++ b/fluid/policy_gradient/brain.py
@@ -45,7 +45,7 @@ def build_net(self):
label=acts) # this is negative log of chosen action
neg_log_prob_weight... |
scoutapp__scout_apm_python-530 | Add RQ subclass of HerokuWorker
The "Using RQ on Heroku" docs section ( https://python-rq.org/patterns/ ) shows using a subclass of `Worker` specialized for Heroku. Unfortunateely using that, rather than the Scout RQ Worker subclass means that scout isn't instrumented. We should also provide a `ScoutHerokuWorker` class... | [
{
"content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport datetime as dt\n\nimport wrapt\nfrom rq import SimpleWorker as RqSimpleWorker\nfrom rq import Worker as RqWorker\nfrom rq.job import Job\n\nimport scout_apm.core\nfrom scout_apm.core.tracke... | [
{
"content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport datetime as dt\n\nimport wrapt\nfrom rq import SimpleWorker as RqSimpleWorker\nfrom rq import Worker as RqWorker\nfrom rq.job import Job\nfrom rq.worker import HerokuWorker as RqHerokuWorke... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6de8c3f8..a51c36ab 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## Pending
+
+### Added
+
+- Extended RQ integration with `HerokuWorker` class for use in the RQ Heroku
+ pattern.
+ ([Issue #529](https://github.com/scoutapp/scout_apm_pytho... |
spack__spack-42976 | package error linux-pam: fatal error: rpc/rpc.h: No such file or directory
I'm trying to install flux-security, and this looks to be a dependency "linux-pam"
```console
==> Installing linux-pam-1.5.2-offodszhf3suwkcqq5z2c4anlyfzwykm [69/79]
==> No binary for linux-pam-1.5.2-offodszhf3suwkcqq5z2c4anlyfzwykm found: ... | [
{
"content": "# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack.package import *\n\n\nclass LinuxPam(AutotoolsPackage):\n \"\"\"Linux PAM (Plugga... | [
{
"content": "# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack.package import *\n\n\nclass LinuxPam(AutotoolsPackage):\n \"\"\"Linux PAM (Plugga... | diff --git a/var/spack/repos/builtin/packages/linux-pam/package.py b/var/spack/repos/builtin/packages/linux-pam/package.py
index 24f70243e1a69a..e864d63b6b337c 100644
--- a/var/spack/repos/builtin/packages/linux-pam/package.py
+++ b/var/spack/repos/builtin/packages/linux-pam/package.py
@@ -20,6 +20,8 @@ class LinuxPam(... |
python-poetry__poetry-8691 | Unclear error report: KeyError 'name'
<!--
Hi there! Thank you for submitting a bug report!
Before you submit your issue, please review and follow the instructions at
https://python-poetry.org/docs/contributing/#reporting-bugs. Fully fill out the template below; insufficient
information or bad rep... | [
{
"content": "from __future__ import annotations\n\nimport contextlib\nimport logging\nimport re\n\nfrom typing import TYPE_CHECKING\nfrom typing import Any\nfrom typing import cast\n\nfrom cleo.io.null_io import NullIO\nfrom packaging.utils import canonicalize_name\nfrom poetry.core.factory import Factory as B... | [
{
"content": "from __future__ import annotations\n\nimport contextlib\nimport logging\nimport re\n\nfrom typing import TYPE_CHECKING\nfrom typing import Any\nfrom typing import cast\n\nfrom cleo.io.null_io import NullIO\nfrom packaging.utils import canonicalize_name\nfrom poetry.core.factory import Factory as B... | diff --git a/src/poetry/factory.py b/src/poetry/factory.py
index 15bd004e747..f4013cc2baf 100644
--- a/src/poetry/factory.py
+++ b/src/poetry/factory.py
@@ -370,9 +370,10 @@ def validate(
dependencies = {canonicalize_name(d) for d in dependencies}
- if canonicalize_name(config["name"]) in dependenci... |
liqd__a4-product-344 | Update default polygon in settings
When a new project with a map is added, the initiator can set the polygon in which e.g. ideas are allowed. At the moment the map when choosing this polygon is set to an area around Berlin but should be extended to a larger area e.g. Germany. This can be done in the settings.
| [
{
"content": "\"\"\"Django settings for Beteiligung.in.\"\"\"\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nimport os\n\nfrom django.utils.translation import ugettext_lazy as _\n\nCONFIG_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\nPROJECT_DIR = os.path.dirnam... | [
{
"content": "\"\"\"Django settings for Beteiligung.in.\"\"\"\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nimport os\n\nfrom django.utils.translation import ugettext_lazy as _\n\nCONFIG_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\nPROJECT_DIR = os.path.dirnam... | diff --git a/liqd_product/config/settings/base.py b/liqd_product/config/settings/base.py
index 3533ddb83..9a1594257 100644
--- a/liqd_product/config/settings/base.py
+++ b/liqd_product/config/settings/base.py
@@ -404,7 +404,7 @@
A4_MAP_BASEURL = 'https://{s}.tile.openstreetmap.org/'
A4_MAP_ATTRIBUTION = '© <a ... |
open-mmlab__mmocr-661 | AssertionError in tools/data/textdet/totaltext_converter.py
I have trouble when running totaltext_converter.py
```
python tools/data/textdet/totaltext_converter.py data/totaltext -o data/totaltext --split-list training test
Converting training into instances_training.json
Loaded 1255 images from data/totaltext/imgs... | [
{
"content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport argparse\nimport glob\nimport os\nimport os.path as osp\nimport re\n\nimport cv2\nimport mmcv\nimport numpy as np\nimport scipy.io as scio\nimport yaml\nfrom shapely.geometry import Polygon\n\nfrom mmocr.utils import convert_annotations\n\n\n... | [
{
"content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport argparse\nimport glob\nimport os\nimport os.path as osp\nimport re\n\nimport cv2\nimport mmcv\nimport numpy as np\nimport scipy.io as scio\nimport yaml\nfrom shapely.geometry import Polygon\n\nfrom mmocr.utils import convert_annotations\n\n\n... | diff --git a/tools/data/textdet/totaltext_converter.py b/tools/data/textdet/totaltext_converter.py
index 3a49e864f..2280751cb 100644
--- a/tools/data/textdet/totaltext_converter.py
+++ b/tools/data/textdet/totaltext_converter.py
@@ -344,10 +344,6 @@ def load_img_info(files):
img_file, gt_file = files
# read i... |
mitmproxy__mitmproxy-2999 | No shortcut for replacements editor
##### Steps to reproduce the problem:
1. run `mitmproxy`
2. type `O` to open the options editor
3. move the cursor down to `replacements` and press Enter
4. type `a` then `/~s/foo/bar` to add a replacement, and press Esc to commit
5. type `q` and again `q` to return to the flo... | [
{
"content": "import os.path\n\nimport urwid\n\nfrom mitmproxy.tools.console import common\nfrom mitmproxy.tools.console import signals\nfrom mitmproxy.tools.console import commandexecutor\nimport mitmproxy.tools.console.master # noqa\nfrom mitmproxy.tools.console.commander import commander\n\n\nclass PromptPat... | [
{
"content": "import os.path\n\nimport urwid\n\nfrom mitmproxy.tools.console import common\nfrom mitmproxy.tools.console import signals\nfrom mitmproxy.tools.console import commandexecutor\nimport mitmproxy.tools.console.master # noqa\nfrom mitmproxy.tools.console.commander import commander\n\n\nclass PromptPat... | diff --git a/mitmproxy/tools/console/statusbar.py b/mitmproxy/tools/console/statusbar.py
index 34bba18d64..fa987e94df 100644
--- a/mitmproxy/tools/console/statusbar.py
+++ b/mitmproxy/tools/console/statusbar.py
@@ -191,9 +191,7 @@ def get_status(self):
r.append(("heading_key", "H"))
r.append("... |
carltongibson__django-filter-1247 | Fix isort config and CI for version 5
Grrrr. Breaking changes.
| [
{
"content": "import warnings\nfrom collections import OrderedDict\n\nfrom django.conf import settings\nfrom django.core.exceptions import FieldDoesNotExist, FieldError\nfrom django.db import models\nfrom django.db.models.constants import LOOKUP_SEP\nfrom django.db.models.expressions import Expression\nfrom dja... | [
{
"content": "import warnings\nfrom collections import OrderedDict\n\nfrom django.conf import settings\nfrom django.core.exceptions import FieldDoesNotExist, FieldError\nfrom django.db import models\nfrom django.db.models.constants import LOOKUP_SEP\nfrom django.db.models.expressions import Expression\nfrom dja... | diff --git a/django_filters/utils.py b/django_filters/utils.py
index b497b3348..125910c70 100644
--- a/django_filters/utils.py
+++ b/django_filters/utils.py
@@ -309,7 +309,7 @@ def translate_validation(error_dict):
"""
# it's necessary to lazily import the exception, as it can otherwise create
# an impor... |
pre-commit__pre-commit-206 | Windows: Large number of files causes `xargs: ... Bad file number`
Originally here: https://github.com/pre-commit/pre-commit-hooks/issues/41
| [
{
"content": "from __future__ import unicode_literals\n\nimport pipes\n\n\ndef file_args_to_stdin(file_args):\n return '\\0'.join(list(file_args) + [''])\n\n\ndef run_hook(env, hook, file_args):\n quoted_args = [pipes.quote(arg) for arg in hook['args']]\n return env.run(\n ' '.join(['xargs', '-0... | [
{
"content": "from __future__ import unicode_literals\n\nimport pipes\n\n\ndef file_args_to_stdin(file_args):\n return '\\0'.join(list(file_args) + [''])\n\n\ndef run_hook(env, hook, file_args):\n quoted_args = [pipes.quote(arg) for arg in hook['args']]\n return env.run(\n # Use -s 4000 (slightl... | diff --git a/pre_commit/languages/helpers.py b/pre_commit/languages/helpers.py
index e854d180f..ff46acc43 100644
--- a/pre_commit/languages/helpers.py
+++ b/pre_commit/languages/helpers.py
@@ -10,7 +10,9 @@ def file_args_to_stdin(file_args):
def run_hook(env, hook, file_args):
quoted_args = [pipes.quote(arg) for ... |
getsentry__sentry-5984 | Auto assign should occur as actor
When using 'Fixes XXX' annotation in a commit, I noticed that while Sentry auto assigned to me (expected), it did so on behalf of itself instead of my user.
\nfrom sentry.tasks.clear_expi... | [
{
"content": "from __future__ import absolute_import, print_function\n\nfrom django.db import IntegrityError, transaction\nfrom django.db.models.signals import post_save\n\nfrom sentry.models import (\n Activity, Commit, GroupAssignee, GroupCommitResolution, Release, TagValue\n)\nfrom sentry.tasks.clear_expi... | diff --git a/src/sentry/receivers/releases.py b/src/sentry/receivers/releases.py
index 89013710f7cd66..4c3eb35924a81b 100644
--- a/src/sentry/receivers/releases.py
+++ b/src/sentry/receivers/releases.py
@@ -70,7 +70,8 @@ def resolved_in_commit(instance, created, **kwargs):
'commit': instanc... |
mdn__kuma-6015 | 504 errors in Admin console
**Summary**
Most, if not all, of the BCSignal detail endpoints like https://developer.mozilla.org/admin/wiki/bcsignal/1764/change/ return 504
**Steps To Reproduce (STR)**
Visit https://developer.mozilla.org/admin/wiki/bcsignal/1764/change/
**Actual behavior**
504 error
**Expected... | [
{
"content": "# -*- coding: utf-8 -*-\nimport json\nfrom string import ascii_lowercase\n\nfrom django.conf import settings\nfrom django.contrib import admin, messages\nfrom django.contrib.admin.views.decorators import staff_member_required\nfrom django.http import HttpResponseRedirect\nfrom django.template.defa... | [
{
"content": "# -*- coding: utf-8 -*-\nimport json\nfrom string import ascii_lowercase\n\nfrom django.conf import settings\nfrom django.contrib import admin, messages\nfrom django.contrib.admin.views.decorators import staff_member_required\nfrom django.http import HttpResponseRedirect\nfrom django.template.defa... | diff --git a/kuma/wiki/admin.py b/kuma/wiki/admin.py
index bed9d954e38..b2813ff30e6 100644
--- a/kuma/wiki/admin.py
+++ b/kuma/wiki/admin.py
@@ -612,3 +612,14 @@ class EditorToolbarAdmin(admin.ModelAdmin):
@admin.register(BCSignal)
class BCSignalAdmin(admin.ModelAdmin):
list_display = ['pk', 'document', 'submitt... |
weecology__retriever-1327 | [Bug] Data transformations with install_csv
I noticed that data was importing slightly different on linux than on my Mac laptop for a particular data file and it seems to be an issue with how the CSV file is being generated on my Mac.
In all cases, I'm using retriever v2.3.0, and running from within Python3.
1. I u... | [
{
"content": "from __future__ import division\nfrom __future__ import print_function\n\nfrom future import standard_library\n\nstandard_library.install_aliases()\nfrom builtins import object\nfrom builtins import range\nfrom builtins import input\nfrom builtins import zip\nfrom builtins import next\nfrom builti... | [
{
"content": "from __future__ import division\nfrom __future__ import print_function\n\nfrom future import standard_library\n\nstandard_library.install_aliases()\nfrom builtins import object\nfrom builtins import range\nfrom builtins import input\nfrom builtins import zip\nfrom builtins import next\nfrom builti... | diff --git a/retriever/lib/engine.py b/retriever/lib/engine.py
index 4d152a8b4..9b172178c 100644
--- a/retriever/lib/engine.py
+++ b/retriever/lib/engine.py
@@ -737,7 +737,6 @@ def get_input(self):
if not os.path.exists(self.opts['data_dir']):
os.makedirs(self.opts['data_dir'])
-... |
facebookresearch__fairscale-1075 | SDP sync_buffers() during gradient accumulation
Shouldn't [`sync_buffers()`](https://github.com/facebookresearch/fairscale/blob/fd7b962f7ae01b7f6ffbcdb31b4b53297174a645/fairscale/nn/data_parallel/sharded_ddp.py#L224) be guarded by [`_should_accumulate_grads()` just like reduce()](https://github.com/facebookresearch/fai... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n\"\"\"\nA nn.Module wrapper to go with a Sharded Optimizer in order to handle targeted gradient\nreduction automati... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n\"\"\"\nA nn.Module wrapper to go with a Sharded Optimizer in order to handle targeted gradient\nreduction automati... | diff --git a/fairscale/nn/data_parallel/sharded_ddp.py b/fairscale/nn/data_parallel/sharded_ddp.py
index b5a84be91..721fef2a7 100644
--- a/fairscale/nn/data_parallel/sharded_ddp.py
+++ b/fairscale/nn/data_parallel/sharded_ddp.py
@@ -218,7 +218,7 @@ def forward(self, *inputs: Any, **kwargs: Any) -> Any:
if ... |
Textualize__textual-3002 | Setting `show_root` to `True` raises a `KeyError`
```py
def compose(self):
dir_tree = DirectoryTree("./src/routes")
dir_tree.show_root = True
yield Header()
with Horizontal():
yield Logo()
with TabbedContent("Config", "Routes", "Server"):
... | [
{
"content": "from __future__ import annotations\n\nfrom asyncio import Queue\nfrom dataclasses import dataclass\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Callable, ClassVar, Iterable, Iterator\n\nfrom ..await_complete import AwaitComplete\n\nif TYPE_CHECKING:\n from typing_extensions impo... | [
{
"content": "from __future__ import annotations\n\nfrom asyncio import Queue\nfrom dataclasses import dataclass\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Callable, ClassVar, Iterable, Iterator\n\nfrom ..await_complete import AwaitComplete\n\nif TYPE_CHECKING:\n from typing_extensions impo... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 50dc3f19e5..3a6040bb62 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- Parameter `animate` from `DataTable.move_cursor` was being ignored https://github.com/Textualize/tex... |
googleapis__google-auth-library-python-1123 | impersonated_credentials.Credentials.sign_bytes leaks socket
_#### Environment details
- OS: Ubuntu 20.04
- Python version: 3.8
- pip version: 22.2.2
- `google-auth` version: 2.11.0
#### Steps to reproduce
1. Create a service account save the email in a environment variable `SA_EMAIL`.
2. Enabl... | [
{
"content": "# Copyright 2018 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica... | [
{
"content": "# Copyright 2018 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica... | diff --git a/google/auth/impersonated_credentials.py b/google/auth/impersonated_credentials.py
index 4d0c4f0f1..f978b64ef 100644
--- a/google/auth/impersonated_credentials.py
+++ b/google/auth/impersonated_credentials.py
@@ -288,9 +288,12 @@ def sign_bytes(self, message):
authed_session = AuthorizedSession(s... |
interlegis__sapl-437 | sapl 31: definir ordem de apresentação dos mandatos do parlamentar
Na função Parlamentar, definir a ordem de apresentação dos mandatos do parlamentar. Penso que a ordem decrescente é a adequada.
Exemplo: http://sapl31agudo.interlegis.leg.br/parlamentar/21/mandato
| [
{
"content": "from django.contrib import messages\nfrom django.core.urlresolvers import reverse_lazy\nfrom django.shortcuts import redirect\nfrom django.utils.datastructures import MultiValueDictKeyError\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.views.generic import FormView\n\nimpor... | [
{
"content": "from django.contrib import messages\nfrom django.core.urlresolvers import reverse_lazy\nfrom django.shortcuts import redirect\nfrom django.utils.datastructures import MultiValueDictKeyError\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.views.generic import FormView\n\nimpor... | diff --git a/parlamentares/views.py b/parlamentares/views.py
index 50859c56c..57e42c4a4 100644
--- a/parlamentares/views.py
+++ b/parlamentares/views.py
@@ -27,8 +27,14 @@
TipoMilitarCrud = Crud.build(SituacaoMilitar, 'tipo_situa_militar')
DependenteCrud = MasterDetailCrud.build(Dependente, 'parlamentar', '')
-Mand... |
aws__aws-sam-cli-4300 | sam build includes absolute paths in Golang binaries
### Description:
<!-- Briefly describe the bug you are facing.-->
When you run ```sam build``` and ```sam package``` in two instances of the same projects with different absolute paths and upload to the same S3 bucket, the compiled binaries will be uploaded both ti... | [
{
"content": "\"\"\"\nBuilds the application\n\"\"\"\nimport os\nimport io\nimport json\nimport logging\nimport pathlib\nfrom typing import List, Optional, Dict, cast, Union, NamedTuple, Set\n\nimport docker\nimport docker.errors\nfrom aws_lambda_builders import (\n RPC_PROTOCOL_VERSION as lambda_builders_pr... | [
{
"content": "\"\"\"\nBuilds the application\n\"\"\"\nimport os\nimport io\nimport json\nimport logging\nimport pathlib\nfrom typing import List, Optional, Dict, cast, Union, NamedTuple, Set\n\nimport docker\nimport docker.errors\nfrom aws_lambda_builders import (\n RPC_PROTOCOL_VERSION as lambda_builders_pr... | diff --git a/samcli/lib/build/app_builder.py b/samcli/lib/build/app_builder.py
index 405e0ed992..17e8dfa4d6 100644
--- a/samcli/lib/build/app_builder.py
+++ b/samcli/lib/build/app_builder.py
@@ -712,7 +712,10 @@ def _get_build_options(
return normalized_build_props
_build_options: Dict = {
- ... |
statsmodels__statsmodels-8870 | Test failures due to missing CSV files in install
#### Describe the bug
The following tests fail for us in 0.14.0:
```
ERROR statsmodels/tsa/stl/tests/test_stl.py - FileNotFoundError: [Errno 2] No such file or directory: '/tmp/portage/dev-python/statsmodels-0.14.0/work/statsmodels-0.14.0-python...
ERROR statsmo... | [
{
"content": "\"\"\"\nTo build with coverage of Cython files\nexport SM_CYTHON_COVERAGE=1\npython -m pip install -e .\npytest --cov=statsmodels statsmodels\ncoverage html\n\"\"\"\nfrom setuptools import Command, Extension, find_packages, setup\nfrom setuptools.dist import Distribution\n\nfrom collections import... | [
{
"content": "\"\"\"\nTo build with coverage of Cython files\nexport SM_CYTHON_COVERAGE=1\npython -m pip install -e .\npytest --cov=statsmodels statsmodels\ncoverage html\n\"\"\"\nfrom setuptools import Command, Extension, find_packages, setup\nfrom setuptools.dist import Distribution\n\nfrom collections import... | diff --git a/setup.py b/setup.py
index 69141b2bdb0..c2fdc532b5f 100644
--- a/setup.py
+++ b/setup.py
@@ -126,6 +126,7 @@
"statsmodels.datasets.tests": ["*.zip"],
"statsmodels.iolib.tests.results": ["*.dta"],
"statsmodels.stats.tests.results": ["*.json"],
+ "statsmodels.tsa.stl.tests.results": ["*.csv"... |
kserve__kserve-3510 | Extract zip/archive files in GCS download
/kind bug
**What steps did you take and what happened:**
Created InferenceService with `storageUri` as a zip archive, e.g. `gs://bucket/folder/archive.zip` - no model files found.
Created InferenceService with `storageUri` as a folder containing a single archive, e.g. ... | [
{
"content": "# Copyright 2023 The KServe 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 a... | [
{
"content": "# Copyright 2023 The KServe 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 a... | diff --git a/python/kserve/kserve/storage/storage.py b/python/kserve/kserve/storage/storage.py
index 3a46c969b6f..481e11eb8b7 100644
--- a/python/kserve/kserve/storage/storage.py
+++ b/python/kserve/kserve/storage/storage.py
@@ -302,7 +302,7 @@ def _download_gcs(uri, temp_dir: str):
dest_path = os.path... |
vllm-project__vllm-5075 | [Bug]: Embedding model not working with tensor parallel
### Your current environment
```Collecting environment information...
PyTorch version: 2.3.0+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A
OS: Ubuntu 20.04.6 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu... | [
{
"content": "from typing import Dict, List, Optional, Set, Tuple\n\nimport torch\n\nfrom vllm.attention import AttentionMetadata\nfrom vllm.config import (CacheConfig, DeviceConfig, LoadConfig, LoRAConfig,\n ModelConfig, ParallelConfig, SchedulerConfig,\n VisionL... | [
{
"content": "from typing import Dict, List, Optional, Set, Tuple\n\nimport torch\n\nfrom vllm.attention import AttentionMetadata\nfrom vllm.config import (CacheConfig, DeviceConfig, LoadConfig, LoRAConfig,\n ModelConfig, ParallelConfig, SchedulerConfig,\n VisionL... | diff --git a/vllm/worker/embedding_model_runner.py b/vllm/worker/embedding_model_runner.py
index ef02de95fc5..0ba1200696c 100644
--- a/vllm/worker/embedding_model_runner.py
+++ b/vllm/worker/embedding_model_runner.py
@@ -79,6 +79,10 @@ def execute_model(
execute_model_kwargs.update({"image_input": multi_mo... |
vllm-project__vllm-1819 | KeyError: 'decoder.layers.23.fc2.weight' when test model "facebook/opt-6.7b"
<img width="1133" alt="image" src="https://github.com/vllm-project/vllm/assets/73372584/23ac48c4-2b1f-42e3-a55f-a252fee7901b">
It looks like the model structure and parameters don't match, how should I fix this
| [
{
"content": "# coding=utf-8\n# Adapted from\n# https://github.com/huggingface/transformers/blob/v4.28.0/src/transformers/models/opt/modeling_opt.py\n# Copyright 2023 The vLLM team.\n# Copyright 2022 The Fairseq Authors and The HuggingFace Inc. team. All rights\n# reserved.\n#\n# Licensed under the Apache Licen... | [
{
"content": "# coding=utf-8\n# Adapted from\n# https://github.com/huggingface/transformers/blob/v4.28.0/src/transformers/models/opt/modeling_opt.py\n# Copyright 2023 The vLLM team.\n# Copyright 2022 The Fairseq Authors and The HuggingFace Inc. team. All rights\n# reserved.\n#\n# Licensed under the Apache Licen... | diff --git a/vllm/model_executor/models/opt.py b/vllm/model_executor/models/opt.py
index 8d88ccd706e..2bbcd0030f6 100644
--- a/vllm/model_executor/models/opt.py
+++ b/vllm/model_executor/models/opt.py
@@ -331,6 +331,9 @@ def load_weights(self,
model_name_or_path, cache_dir, load_format, revision):
... |
getnikola__nikola-3036 | RSS_PATH doesn't work as advertised (is path and filename, excluding .xml)
* Python Version: 3.5.3
* Nikola Version: v7.8.14
* Operating System: Debian
A fresh config says:
```
# Final location for the blog main RSS feed is:
# output / TRANSLATION[lang] / RSS_PATH / rss.xml
```
which is in line with other... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2018 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2018 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi... | diff --git a/CHANGES.txt b/CHANGES.txt
index c1ff2928a8..faeb2bfb22 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -4,6 +4,8 @@ New in master
Features
--------
+* Fixing behavior of RSS_PATH to do what the documentation
+ says it does (Issue #3024)
* Add support for fragments in path handlers (Issue #3032)
* Reco... |
spyder-ide__spyder-8950 | IOError raised when completion plugins fail to start
## Description
### What steps will reproduce the problem?
<!--- You can use Markdown here --->
raise IOError('Could not start %s' % self)
OSError: Could not start <spyder.utils.introspection.plugin_client.PluginClient object at 0xb5fc7c5e8>"
### Traceback
```pyth... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright © Spyder Project Contributors\n# Licensed under the terms of the MIT License\n# (see spyder/__init__.py for details)\n\n# Local imports\nimport imp\nimport os\nimport os.path as osp\nimport sys\nimport uuid\n\n# Third party imports\nfrom qtpy.QtCore import (... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright © Spyder Project Contributors\n# Licensed under the terms of the MIT License\n# (see spyder/__init__.py for details)\n\n# Local imports\nimport imp\nimport os\nimport os.path as osp\nimport sys\nimport uuid\n\n# Third party imports\nfrom qtpy.QtCore import (... | diff --git a/spyder/utils/introspection/plugin_client.py b/spyder/utils/introspection/plugin_client.py
index 0c863a130ae..b594e84cb25 100644
--- a/spyder/utils/introspection/plugin_client.py
+++ b/spyder/utils/introspection/plugin_client.py
@@ -101,7 +101,10 @@ def run(self):
self.process.finished.connect(self... |
svthalia__concrexit-1756 | PaymentDetailView in admin API allows deleting payments unauthorized
https://github.com/svthalia/concrexit/blob/4ab37961f50e398cc52422cdc1df66f6ab8ff2ee/website/payments/api/v2/admin/views.py#L69
### Describe the bug
Payments sometimes should be undeletable. For example, TPay payments that are in a batch. The Payme... | [
{
"content": "import rest_framework.filters as framework_filters\nfrom django.apps import apps\nfrom django.http import Http404\nfrom django.utils.translation import gettext_lazy as _\nfrom oauth2_provider.contrib.rest_framework import IsAuthenticatedOrTokenHasScope\nfrom rest_framework import status, serialize... | [
{
"content": "import rest_framework.filters as framework_filters\nfrom django.apps import apps\nfrom django.http import Http404\nfrom django.utils.translation import gettext_lazy as _\nfrom oauth2_provider.contrib.rest_framework import IsAuthenticatedOrTokenHasScope\nfrom rest_framework import status, serialize... | diff --git a/website/payments/api/v2/admin/views.py b/website/payments/api/v2/admin/views.py
index d26524323..66bf0089b 100644
--- a/website/payments/api/v2/admin/views.py
+++ b/website/payments/api/v2/admin/views.py
@@ -74,6 +74,11 @@ class PaymentDetailView(AdminRetrieveAPIView, AdminDestroyAPIView):
permission_... |
biolab__orange3-4558 | Visualizations do not work with pyqtgraph 0.11.0 release candidate
**Describe the bug**
After successful installation of orange3, when visualization tools such as scatterplot, line plot, distributions widget are opened, even without connecting them to a dataset, they throw an error of some sort.
**To Reproduce**
S... | [
{
"content": "from functools import partial, reduce\nfrom itertools import count, groupby, repeat\nfrom xml.sax.saxutils import escape\n\nimport numpy as np\nfrom scipy.stats import norm, rayleigh, beta, gamma, pareto, expon\n\nfrom AnyQt.QtWidgets import QGraphicsRectItem\nfrom AnyQt.QtGui import QColor, QPen,... | [
{
"content": "from functools import partial, reduce\nfrom itertools import count, groupby, repeat\nfrom xml.sax.saxutils import escape\n\nimport numpy as np\nfrom scipy.stats import norm, rayleigh, beta, gamma, pareto, expon\n\nfrom AnyQt.QtWidgets import QGraphicsRectItem\nfrom AnyQt.QtGui import QColor, QPen,... | diff --git a/Orange/widgets/visualize/owdistributions.py b/Orange/widgets/visualize/owdistributions.py
index 1380cad706d..8ca045d0206 100644
--- a/Orange/widgets/visualize/owdistributions.py
+++ b/Orange/widgets/visualize/owdistributions.py
@@ -228,8 +228,8 @@ def __init__(self, orientation, pen=None, linkView=None, pa... |
sunpy__sunpy-4529 | get_dates() does not work when under 24hours and spans two days
<!--
We know asking good questions takes effort, and we appreciate your time.
Thank you.
Please be aware that everyone has to follow our code of conduct:
https://github.com/sunpy/sunpy/blob/master/CODE_OF_CONDUCT.rst
These comments are hidden when... | [
{
"content": "\"\"\"\nThis module provies a object that can handle a time range.\n\"\"\"\nfrom datetime import timedelta\n\nimport astropy.units as u\nfrom astropy.time import Time, TimeDelta\n\nfrom sunpy import config\nfrom sunpy.time import is_time_equal, parse_time\nfrom sunpy.time.time import _variables_fo... | [
{
"content": "\"\"\"\nThis module provies a object that can handle a time range.\n\"\"\"\nfrom datetime import timedelta\n\nimport astropy.units as u\nfrom astropy.time import Time, TimeDelta\n\nfrom sunpy import config\nfrom sunpy.time import is_time_equal, parse_time\nfrom sunpy.time.time import _variables_fo... | diff --git a/changelog/4529.bugfix.rst b/changelog/4529.bugfix.rst
new file mode 100644
index 00000000000..36d3a1b54c0
--- /dev/null
+++ b/changelog/4529.bugfix.rst
@@ -0,0 +1 @@
+Fixed an issue on `TimeRange.get_dates()` where the function would return the wrong number of days if less than 24 hours had passed
diff --g... |
cal-itp__benefits-928 | Use 500 page for true application errors
A clear and concise description of the task.
## Acceptance Criteria
<!-- Remember to consider edge cases -->
- [ ] Use 500 / service is down for true application errors, EV server offline, Auth provider offline, etc.
## Additional context
<!-- Add any other contex... | [
{
"content": "\"\"\"\nThe core application: view model definitions for the root of the webapp.\n\"\"\"\nfrom django.utils.translation import pgettext, gettext_lazy as _\nfrom django.urls import reverse\n\nfrom benefits.core import models\n\nfrom . import session\n\n\nclass Button:\n \"\"\"\n Represents a ... | [
{
"content": "\"\"\"\nThe core application: view model definitions for the root of the webapp.\n\"\"\"\nfrom django.utils.translation import pgettext, gettext_lazy as _\nfrom django.urls import reverse\n\nfrom benefits.core import models\n\nfrom . import session\n\n\nclass Button:\n \"\"\"\n Represents a ... | diff --git a/benefits/core/viewmodels.py b/benefits/core/viewmodels.py
index 3fae64e699..e67fe31f76 100644
--- a/benefits/core/viewmodels.py
+++ b/benefits/core/viewmodels.py
@@ -185,7 +185,7 @@ def user_error(
def server_error(
title=_("core.pages.server_error.title"),
content_title=_("core.page... |
wagtail__wagtail-2488 | Keyerror when sending password reset email
When sending a password reset email, I'm getting an internal error
I'll just share the raven error - hopefully that doesn't review all of the site secrets (probably does)
https://app.getsentry.com/share/issue/37343334302e313233323439393235/
| [
{
"content": "from __future__ import absolute_import, unicode_literals\n\nfrom django import template\nfrom django.template.loader import render_to_string\n\nfrom wagtail.wagtailadmin.userbar import (\n AddPageItem, AdminItem, ApproveModerationEditPageItem, EditPageItem, ExplorePageItem,\n RejectModeratio... | [
{
"content": "from __future__ import absolute_import, unicode_literals\n\nfrom django import template\nfrom django.template.loader import render_to_string\n\nfrom wagtail.wagtailadmin.userbar import (\n AddPageItem, AdminItem, ApproveModerationEditPageItem, EditPageItem, ExplorePageItem,\n RejectModeratio... | diff --git a/wagtail/wagtailadmin/templatetags/wagtailuserbar.py b/wagtail/wagtailadmin/templatetags/wagtailuserbar.py
index 3c8564a5222d..8c7cd1413ddf 100644
--- a/wagtail/wagtailadmin/templatetags/wagtailuserbar.py
+++ b/wagtail/wagtailadmin/templatetags/wagtailuserbar.py
@@ -31,8 +31,10 @@ def get_page_instance(cont... |
Qiskit__qiskit-1089 | Default circuit names are not zero-based
<!-- ⚠️ If you do not respect this template, your issue will be closed -->
<!-- ⚠️ Make sure to browse the opened and closed issues -->
### Informations
- **Qiskit Terra version**: latest
- **Python version**: 3.7
- **Operating system**: OSX
### What is the current b... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright 2017, IBM.\n#\n# This source code is licensed under the Apache License, Version 2.0 found in\n# the LICENSE.txt file in the root directory of this source tree.\n\n\"\"\"\nQuantum circuit object.\n\"\"\"\nimport itertools\nfrom collections import OrderedDict\n... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright 2017, IBM.\n#\n# This source code is licensed under the Apache License, Version 2.0 found in\n# the LICENSE.txt file in the root directory of this source tree.\n\n\"\"\"\nQuantum circuit object.\n\"\"\"\nimport itertools\nfrom collections import OrderedDict\n... | diff --git a/qiskit/_quantumcircuit.py b/qiskit/_quantumcircuit.py
index 3bcd1726afb7..49e94036a053 100644
--- a/qiskit/_quantumcircuit.py
+++ b/qiskit/_quantumcircuit.py
@@ -51,9 +51,9 @@ def __init__(self, *regs, name=None):
Raises:
QISKitError: if the circuit name, if given, is not valid.
... |
wagtail__wagtail-1009 | PageChooserPanel with foreign key linked to specific model: inconsistent behaviour
In the following example, `foo` is a page chooser field, where the developer has decided to limit the pages choosable to only those of a specific type rather than generic `wagtailcore.Page`.
```
class MyPageThingy(Orderable):
page ... | [
{
"content": "from __future__ import unicode_literals\n\nimport copy\nimport warnings\n\nfrom six import text_type\n\nfrom modelcluster.forms import ClusterForm, ClusterFormMetaclass\n\n\nfrom django.db import models\nfrom django.template.loader import render_to_string\nfrom django.utils.safestring import mark_... | [
{
"content": "from __future__ import unicode_literals\n\nimport copy\nimport warnings\n\nfrom six import text_type\n\nfrom modelcluster.forms import ClusterForm, ClusterFormMetaclass\n\n\nfrom django.db import models\nfrom django.template.loader import render_to_string\nfrom django.utils.safestring import mark_... | diff --git a/wagtail/tests/migrations/0009_eventpagechoosermodel.py b/wagtail/tests/migrations/0009_eventpagechoosermodel.py
new file mode 100644
index 000000000000..6b6e505d776c
--- /dev/null
+++ b/wagtail/tests/migrations/0009_eventpagechoosermodel.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+from __future__ import ... |
ibis-project__ibis-4667 | refactor: remove `sorted` calls from mutation
I thought we had removed `sorted`, but I guess not. We should probably do that for 4.0.0.
_Originally posted by @cpcloud in https://github.com/ibis-project/ibis/pull/4649#discussion_r996311096_
Let's remove `sorted` from mutation calls since `dict`s are now or... | [
{
"content": "from __future__ import annotations\n\nimport collections\nimport functools\nimport itertools\nimport sys\nimport warnings\nfrom typing import (\n IO,\n TYPE_CHECKING,\n Any,\n Callable,\n Iterable,\n Literal,\n Mapping,\n Sequence,\n)\n\nimport numpy as np\nfrom public impo... | [
{
"content": "from __future__ import annotations\n\nimport collections\nimport functools\nimport itertools\nimport sys\nimport warnings\nfrom typing import (\n IO,\n TYPE_CHECKING,\n Any,\n Callable,\n Iterable,\n Literal,\n Mapping,\n Sequence,\n)\n\nimport numpy as np\nfrom public impo... | diff --git a/ibis/expr/types/relations.py b/ibis/expr/types/relations.py
index 9393170e156f..585a3d60abc6 100644
--- a/ibis/expr/types/relations.py
+++ b/ibis/expr/types/relations.py
@@ -601,9 +601,7 @@ def ensure_expr(expr):
exprs = [] if exprs is None else util.promote_list(exprs)
exprs = [ensure_... |
ESMCI__cime-1893 | idmap file errors should be picked up by scripts
The test SMS.f45_g37.X fails at runtime because one of the mapping files it needs is pointing to idmap, we should pick this up and error out in scripts instead of at runtime.
| [
{
"content": "\"\"\"Class for generating component namelists.\"\"\"\n\n# Typically ignore this.\n# pylint: disable=invalid-name\n\n# Disable these because this is our standard setup\n# pylint: disable=wildcard-import,unused-wildcard-import\n\nimport datetime\nimport re\n\nfrom CIME.XML.standard_module_setup imp... | [
{
"content": "\"\"\"Class for generating component namelists.\"\"\"\n\n# Typically ignore this.\n# pylint: disable=invalid-name\n\n# Disable these because this is our standard setup\n# pylint: disable=wildcard-import,unused-wildcard-import\n\nimport datetime\nimport re\n\nfrom CIME.XML.standard_module_setup imp... | diff --git a/scripts/lib/CIME/nmlgen.py b/scripts/lib/CIME/nmlgen.py
index 1d0786c9b1f..caed628e44b 100644
--- a/scripts/lib/CIME/nmlgen.py
+++ b/scripts/lib/CIME/nmlgen.py
@@ -175,6 +175,14 @@ def _to_namelist_literals(self, name, value):
value[i] = self.quote_string(scalar)
return compress_l... |
PyGithub__PyGithub-2443 | Add cryptography as dependency (for app-based auth)
Using [the new app-based auth ](https://github.com/PyGithub/PyGithub/pull/1986) results to the error below when `cryptography` is not installed. It should be added as a dependency of this.
```
Traceback (most recent call last):
File "***", line 60, in ***
... | [
{
"content": "#!/usr/bin/env python\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #\n# Copyright 2012 Zearin <ze... | [
{
"content": "#!/usr/bin/env python\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #\n# Copyright 2012 Zearin <ze... | diff --git a/doc/introduction.rst b/doc/introduction.rst
index ee4062cfec..cc8fa70edd 100644
--- a/doc/introduction.rst
+++ b/doc/introduction.rst
@@ -37,9 +37,6 @@ This package is in the `Python Package Index
be enough. You can also clone it on `Github
<http://github.com/PyGithub/PyGithub>`__.
-If you wish to use... |
cocotb__cocotb-1810 | setup.py uses https://cocotb.org which doesn't work (yet)
We have
https://github.com/cocotb/cocotb/blob/e74d508e30027c16778b95ef0985b6bcbc5207c2/setup.py#L90
which doesn't work (yet). Do we also want to use https://docs.cocotb.org temporarily like in GitHub?
| [
{
"content": "#!/usr/bin/env python\n###############################################################################\n# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n... | [
{
"content": "#!/usr/bin/env python\n###############################################################################\n# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n... | diff --git a/setup.py b/setup.py
index 98a565ead1..91255d0484 100755
--- a/setup.py
+++ b/setup.py
@@ -87,7 +87,7 @@ def package_files(directory):
cmdclass={'build_ext': build_ext},
version=__version__, # noqa: F821
description='cocotb is a coroutine based cosimulation library for writing VHDL and Veril... |
Parsl__parsl-2231 | WorkQueue outstanding() race condition vs new task submission
**Describe the bug**
One of the users that I am supporting has encountered this:
2022-02-23 14:42:14 parsl.dataflow.flow_control:114 MainProcess(112424) FlowControl-Thread [ERROR] Flow control callback threw an exception - logging and proceeding anywa... | [
{
"content": "\"\"\" WorkQueueExecutor utilizes the Work Queue distributed framework developed by the\nCooperative Computing Lab (CCL) at Notre Dame to provide a fault-tolerant,\nhigh-throughput system for delegating Parsl tasks to thousands of remote machines\n\"\"\"\n\nimport threading\nimport multiprocessing... | [
{
"content": "\"\"\" WorkQueueExecutor utilizes the Work Queue distributed framework developed by the\nCooperative Computing Lab (CCL) at Notre Dame to provide a fault-tolerant,\nhigh-throughput system for delegating Parsl tasks to thousands of remote machines\n\"\"\"\n\nimport threading\nimport multiprocessing... | diff --git a/parsl/executors/workqueue/executor.py b/parsl/executors/workqueue/executor.py
index 79c1ff4dcf..78646c0c53 100644
--- a/parsl/executors/workqueue/executor.py
+++ b/parsl/executors/workqueue/executor.py
@@ -623,9 +623,10 @@ def outstanding(self) -> int:
implemented and probably could be replaced wi... |
psychopy__psychopy-3656 | AttributeError: 'list' object has no attribute 'contains'
I know, that this error was discussed and closed already, but I can't solve it anyway. (@peircej)
> This error message came up during the workshop when a participant running PsychoPy 2021.1 tried to create a clickable button without using the button componen... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2021 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General Public License (GPL).\n\nfrom __future__ import absolute_import, print_function\nfrom ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2021 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General Public License (GPL).\n\nfrom __future__ import absolute_import, print_function\nfrom ... | diff --git a/psychopy/experiment/components/mouse/__init__.py b/psychopy/experiment/components/mouse/__init__.py
index bbe716505a..763c6e894d 100644
--- a/psychopy/experiment/components/mouse/__init__.py
+++ b/psychopy/experiment/components/mouse/__init__.py
@@ -134,7 +134,7 @@ def _writeClickableObjectsCode(self, buff... |
keras-team__autokeras-1705 | Linking https://arxiv.org/abs/1610.02357 to arxiv.org
Would be nice to link the _arxiv article_ in XceptionBlock is linked to [https://arxiv.org/abs/1610.02357](https://arxiv.org/abs/1610.02357) for the docs.
https://github.com/keras-team/autokeras/blob/e925897775aee6dcdd84183e4ceced0b866302c5/autokeras/blocks/basic... | [
{
"content": "# Copyright 2020 The AutoKeras 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 ... | [
{
"content": "# Copyright 2020 The AutoKeras 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 ... | diff --git a/autokeras/blocks/basic.py b/autokeras/blocks/basic.py
index 72ca3515a..65a4579e7 100644
--- a/autokeras/blocks/basic.py
+++ b/autokeras/blocks/basic.py
@@ -749,7 +749,8 @@ class XceptionBlock(KerasApplicationBlock):
An Xception structure, used for specifying your model with specific datasets.
- ... |
networkx__networkx-2499 | Reading GML files
Reading the `polblogs.gml` file [downloaded here ](http://www-personal.umich.edu/~mejn/netdata/) using NetworkX's `read_gml` function throws `NetworkXError: edge is duplicated`.
This was not the case previously. I'm running both `Python 2.7` and `Python 3.6`; the same error is thrown using both ke... | [
{
"content": "# encoding: utf-8\n# Copyright (C) 2008-2016 by\n# Aric Hagberg <hagberg@lanl.gov>\n# Dan Schult <dschult@colgate.edu>\n# Pieter Swart <swart@lanl.gov>\n# All rights reserved.\n# BSD license.\n#\n# Author: Aric Hagberg (hagberg@lanl.gov)\n\"\"\"\nRead graphs in GML format.\n\n\"G... | [
{
"content": "# encoding: utf-8\n# Copyright (C) 2008-2016 by\n# Aric Hagberg <hagberg@lanl.gov>\n# Dan Schult <dschult@colgate.edu>\n# Pieter Swart <swart@lanl.gov>\n# All rights reserved.\n# BSD license.\n#\n# Author: Aric Hagberg (hagberg@lanl.gov)\n\"\"\"\nRead graphs in GML format.\n\n\"G... | diff --git a/networkx/readwrite/gml.py b/networkx/readwrite/gml.py
index af8db1d0023..09835202446 100644
--- a/networkx/readwrite/gml.py
+++ b/networkx/readwrite/gml.py
@@ -423,7 +423,9 @@ def pop_attr(dct, category, attr, i):
G.add_edge(source, target, **edge)
else:
raise... |
kedro-org__kedro-3013 | Document the LIFO order in which hooks are executed in `settings.py`
### Description
We mention that hook implementations registered in `settings.py` run in LIFO order and that auto discovered hooks run before hooks in `settings.py`.
- [ ] We need to also document what the order is in which auto-discovered hooks... | [
{
"content": "\"\"\"Project settings. There is no need to edit this file unless you want to change values\nfrom the Kedro defaults. For further information, including these default values, see\nhttps://kedro.readthedocs.io/en/stable/kedro_project_setup/settings.html.\"\"\"\n\n# Instantiated project hooks.\n# Fo... | [
{
"content": "\"\"\"Project settings. There is no need to edit this file unless you want to change values\nfrom the Kedro defaults. For further information, including these default values, see\nhttps://kedro.readthedocs.io/en/stable/kedro_project_setup/settings.html.\"\"\"\n\n# Instantiated project hooks.\n# Fo... | diff --git a/Makefile b/Makefile
index 1036151fe8..e241e5ffa1 100644
--- a/Makefile
+++ b/Makefile
@@ -70,3 +70,9 @@ sign-off:
echo '--trailer "Signed-off-by: $$(git config user.name) <$$(git config user.email)>" \c' >> .git/hooks/commit-msg
echo '--in-place "$$1"' >> .git/hooks/commit-msg
chmod +x .git/hooks/com... |
archlinux__archinstall-298 | Add option to select shell
When creating a new user, archinstall should ask, which shell (bash,zsh,ksh,fish) the user wants to use.
| [
{
"content": "import os, stat, time, shutil, pathlib\n\nfrom .exceptions import *\nfrom .disk import *\nfrom .general import *\nfrom .user_interaction import *\nfrom .profiles import Profile\nfrom .mirrors import *\nfrom .systemd import Networkd\nfrom .output import log, LOG_LEVELS\nfrom .storage import storage... | [
{
"content": "import os, stat, time, shutil, pathlib\n\nfrom .exceptions import *\nfrom .disk import *\nfrom .general import *\nfrom .user_interaction import *\nfrom .profiles import Profile\nfrom .mirrors import *\nfrom .systemd import Networkd\nfrom .output import log, LOG_LEVELS\nfrom .storage import storage... | diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 7aa64816e0..f21287c319 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -443,6 +443,12 @@ def user_set_pw(self, user, password):
o = b''.join(sys_command(f"/usr/bin/arch-chroot {self.target} sh -c \"echo '... |
bokeh__bokeh-4717 | Typo in bokeh.models.tools.TapTool `behavior` attr default
Is 'defult' not default.
``` python
...
behavior = Enum("select", "inspect", defult="select", help="""
...
```
| [
{
"content": "\"\"\" Bokeh comes with a number of interactive tools.\n\nThere are five types of tool interactions:\n\n.. hlist::\n :columns: 5\n\n * Pan/Drag\n * Click/Tap\n * Scroll/Pinch\n * Actions\n * Inspectors\n\nFor the first three comprise the category of gesture tools, and only\none t... | [
{
"content": "\"\"\" Bokeh comes with a number of interactive tools.\n\nThere are five types of tool interactions:\n\n.. hlist::\n :columns: 5\n\n * Pan/Drag\n * Click/Tap\n * Scroll/Pinch\n * Actions\n * Inspectors\n\nFor the first three comprise the category of gesture tools, and only\none t... | diff --git a/bokeh/models/tools.py b/bokeh/models/tools.py
index 2f9368f893d..856eee41647 100644
--- a/bokeh/models/tools.py
+++ b/bokeh/models/tools.py
@@ -274,7 +274,7 @@ class TapTool(Tap):
defaults to all renderers on a plot.
""")
- behavior = Enum("select", "inspect", defult="select", help="""
+ ... |
spectrochempy__spectrochempy-759 | [Bug]: serialization error for tuple containing a ndarray
### What happened?
a json serialization error was raised when one passes a tuple containing a ndarray is passed to scp objects, e.g. for MCRAL in the following example.
### What did you expect to happen?
nadarray in tuples opr lists should be correctly ... | [
{
"content": "# -*- coding: utf-8 -*-\n# ======================================================================================\n# Copyright (©) 2015-2023 LCS - Laboratoire Catalyse et Spectrochimie, Caen, France.\n# CeCILL-B FREE SOFTWARE LICENSE AGREEMENT\n# See full LICENSE agreement in the root directory.\n... | [
{
"content": "# -*- coding: utf-8 -*-\n# ======================================================================================\n# Copyright (©) 2015-2023 LCS - Laboratoire Catalyse et Spectrochimie, Caen, France.\n# CeCILL-B FREE SOFTWARE LICENSE AGREEMENT\n# See full LICENSE agreement in the root directory.\n... | diff --git a/docs/whatsnew/changelog.rst b/docs/whatsnew/changelog.rst
index 389a9e3b5ec..cc377f32a9c 100644
--- a/docs/whatsnew/changelog.rst
+++ b/docs/whatsnew/changelog.rst
@@ -27,6 +27,7 @@ Bug fixes
~~~~~~~~~
.. Add here new bug fixes (do not delete this comment)
+* Fix issue #758 : serialization error for tu... |
mlflow__mlflow-5721 | [BUG] "download_to_filename() got an unexpected keyword argument \'timeout\'"
Thank you for submitting an issue. Please refer to our [issue policy](https://www.github.com/mlflow/mlflow/blob/master/ISSUE_POLICY.md) for additional information about bug reports. For help with debugging your code, please refer to [Stack Ov... | [
{
"content": "import os\nimport logging\nimport distutils\n\nfrom importlib.machinery import SourceFileLoader\nfrom setuptools import setup, find_packages\n\n_MLFLOW_SKINNY_ENV_VAR = \"MLFLOW_SKINNY\"\n\nversion = (\n SourceFileLoader(\"mlflow.version\", os.path.join(\"mlflow\", \"version.py\")).load_module(... | [
{
"content": "import os\nimport logging\nimport distutils\n\nfrom importlib.machinery import SourceFileLoader\nfrom setuptools import setup, find_packages\n\n_MLFLOW_SKINNY_ENV_VAR = \"MLFLOW_SKINNY\"\n\nversion = (\n SourceFileLoader(\"mlflow.version\", os.path.join(\"mlflow\", \"version.py\")).load_module(... | diff --git a/setup.py b/setup.py
index d779250b9383c..db9961c93eeba 100644
--- a/setup.py
+++ b/setup.py
@@ -125,7 +125,7 @@ def run(self):
# Required to log artifacts and models to AWS S3 artifact locations
"boto3",
# Required to log artifacts and models to GCS artifact locations... |
django-oscar__django-oscar-3311 | Class loader throws an error after forking dashboard
## Issue Summary
Using a forked dashboard application results in an error.
## Steps to Reproduce
1. Set up an Oscar project named `foo` as described in the section titled "Building your own shop"
2. Run `./manage.py oscar_fork_app dashboard foo`
3. Substit... | [
{
"content": "import logging\nimport os\nimport shutil\nfrom os.path import dirname, exists, join\n\nfrom django.apps import apps\n\nfrom oscar.core.application import OscarConfig\n\n\ndef create_local_app_folder(local_app_path):\n if exists(local_app_path):\n raise ValueError(\n \"There is... | [
{
"content": "import logging\nimport os\nimport shutil\nfrom os.path import dirname, exists, join\n\nfrom django.apps import apps\n\nfrom oscar.core.application import OscarConfig\n\n\ndef create_local_app_folder(local_app_path):\n if exists(local_app_path):\n raise ValueError(\n \"There is... | diff --git a/src/oscar/core/customisation.py b/src/oscar/core/customisation.py
index a1e82c94f90..fe722120526 100644
--- a/src/oscar/core/customisation.py
+++ b/src/oscar/core/customisation.py
@@ -36,6 +36,11 @@ def subfolders(path):
def inherit_app_config(local_app_folder_path, local_app_name, app_config):
+ c... |
Qiskit__qiskit-2350 | disassemble_circuits() suggested in qobj_to_circuits.py DeprecationWarning doesn't exist
<!-- ⚠️ If you do not respect this template, your issue will be closed -->
<!-- ⚠️ Make sure to browse the opened and closed issues -->
### Information
- **Qiskit Terra version**: 0.8.0
- **Python version**: 3.7.2
- **Oper... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2017, 2018.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2017, 2018.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org... | diff --git a/qiskit/converters/qobj_to_circuits.py b/qiskit/converters/qobj_to_circuits.py
index 6789eafba379..15205ece4e3f 100644
--- a/qiskit/converters/qobj_to_circuits.py
+++ b/qiskit/converters/qobj_to_circuits.py
@@ -30,7 +30,7 @@ def qobj_to_circuits(qobj):
"""
warnings.warn('qiskit.converters.qobj_to_... |
explosion__spaCy-2274 | Typo in docs? multi-label text classification
The docs give an example of text classification on IMDB [here](https://spacy.io/usage/training#example-textcat). It says it's "multi-label", but this dataset is binary. So I'm not sure what you mean here.
| [
{
"content": "#!/usr/bin/env python\n# coding: utf8\n\"\"\"Train a multi-label convolutional neural network text classifier on the\nIMDB dataset, using the TextCategorizer component. The dataset will be loaded\nautomatically via Thinc's built-in dataset loader. The model is added to\nspacy.pipeline, and predict... | [
{
"content": "#!/usr/bin/env python\n# coding: utf8\n\"\"\"Train a convolutional neural network text classifier on the\nIMDB dataset, using the TextCategorizer component. The dataset will be loaded\nautomatically via Thinc's built-in dataset loader. The model is added to\nspacy.pipeline, and predictions are ava... | diff --git a/README.rst b/README.rst
index 60e1b9e8ce6..13945334497 100644
--- a/README.rst
+++ b/README.rst
@@ -49,7 +49,7 @@ integration. It's commercial open-source software, released under the MIT licens
`New in v2.0`_ New features, backwards incompatibilities and migration guide.
`API Reference`_ The d... |
WeblateOrg__weblate-1471 | Provide example hooks in pip installations
### Steps to reproduce
1. `pip install Weblate`
2. `ls path/to/site-packages/weblate`
### Actual behaviour
Example hooks are missing. We have to download the examples manually and copy them where we want on the server.
### Expected behaviour
Example hooks should be i... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright © 2012 - 2017 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 ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright © 2012 - 2017 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 ... | diff --git a/setup.py b/setup.py
index 735cf438a7bc..921f7e196f0c 100755
--- a/setup.py
+++ b/setup.py
@@ -32,6 +32,11 @@
with open('requirements.txt') as requirements:
REQUIRES = requirements.read().splitlines()
+DATA_FILES = [
+ ('share/weblate/' + root, [os.path.join(root, f) for f in files])
+ for roo... |
elastic__apm-agent-python-1352 | apm-agent-python and structlog - mapper_parsing_exception for `event.dataset`
**Describe the bug**: When using `structlog` and with `elasticapm` and the log processer `elasticapm.structlog_processor`, we have recently seen Logstash refuse our logger with the following error:
```
[2021-10-05T12:10:10,746][WARN ][l... | [
{
"content": "# 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 conditions are met:\n#\n# * Redistributions of source code must retain the above copyright notice,... | [
{
"content": "# 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 conditions are met:\n#\n# * Redistributions of source code must retain the above copyright notice,... | diff --git a/elasticapm/handlers/structlog.py b/elasticapm/handlers/structlog.py
index 57b69c7d4..515ece897 100644
--- a/elasticapm/handlers/structlog.py
+++ b/elasticapm/handlers/structlog.py
@@ -57,7 +57,7 @@ def structlog_processor(logger, method_name, event_dict):
client = get_client()
if client:
... |
pyinstaller__pyinstaller-4698 | PyInstaller 3.6 AssertionError
Hi, since the latest 3.6 release all my Linux builds are failing with a new `AssertionError`.
This is the log:
```
23 INFO: PyInstaller: 3.6
24 INFO: Python: 2.7.16
25 INFO: Platform: Linux-4.9.184-linuxkit-x86_64-with-debian-squeeze-sid
26 INFO: wrote /simulator.spec
35 INFO: UPX ... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2020, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2020, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens... | diff --git a/PyInstaller/depend/imphook.py b/PyInstaller/depend/imphook.py
index 41604789b2..6588f71d79 100644
--- a/PyInstaller/depend/imphook.py
+++ b/PyInstaller/depend/imphook.py
@@ -285,7 +285,9 @@ def __init__(self, module_graph, module_name, hook_filename,
# Safety check, see above
global HOO... |
googleapis__google-auth-library-python-95 | Make creating a Signer from a JSON keyfile easier.
| [
{
"content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica... | [
{
"content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica... | diff --git a/google/auth/crypt.py b/google/auth/crypt.py
index d347600f0..8d5ac7c74 100644
--- a/google/auth/crypt.py
+++ b/google/auth/crypt.py
@@ -227,3 +227,18 @@ def from_string(cls, key, key_id=None):
raise ValueError('No key could be detected.')
return cls(private_key, key_id=key_id)
+
+ ... |
pydantic__pydantic-298 | Date annotation is parsed inconsistently depending on input data.
# Bug
I've tried compare two date fields of pydantic model's instances.
But I got: `TypeError: can't compare datetime.datetime to datetime.date`
I figured out that its a bug when parsing field annotated as date providing a datetime value.
Sinc... | [
{
"content": "\"\"\"\nFunctions to parse datetime objects.\n\nWe're using regular expressions rather than time.strptime because:\n- They provide both validation and parsing.\n- They're more flexible for datetimes.\n- The date/datetime/time constructors produce friendlier error messages.\n\nStolen from https://r... | [
{
"content": "\"\"\"\nFunctions to parse datetime objects.\n\nWe're using regular expressions rather than time.strptime because:\n- They provide both validation and parsing.\n- They're more flexible for datetimes.\n- The date/datetime/time constructors produce friendlier error messages.\n\nStolen from https://r... | diff --git a/HISTORY.rst b/HISTORY.rst
index 162ae7a5369..f99296078dd 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -3,6 +3,12 @@
History
-------
+v0.15 (2018-XX-XX)
+..................
+* move codebase to use black, #287 by @samuelcolvin
+* fix alias use in settings, #286 by @jasonkuhrt and @samuelcolvin
+* fix da... |
scrapy__scrapy-3377 | scrapy check exit code on exception
When I run `scrapy check` and a contract raises unhandled exception, the command exits with successful code `0`.
```
$ scrapy check $SPIDER_NAME
... some stuff ...
Ran 0 contracts in 0.000s
OK
$ echo $?
0
```
Is this intended, or should I fix it?
| [
{
"content": "import sys\nimport re\nfrom functools import wraps\nfrom inspect import getmembers\nfrom unittest import TestCase\n\nfrom scrapy.http import Request\nfrom scrapy.utils.spider import iterate_spider_output\nfrom scrapy.utils.python import get_spec\n\n\nclass ContractsManager(object):\n contracts ... | [
{
"content": "import sys\nimport re\nfrom functools import wraps\nfrom inspect import getmembers\nfrom unittest import TestCase\n\nfrom scrapy.http import Request\nfrom scrapy.utils.spider import iterate_spider_output\nfrom scrapy.utils.python import get_spec\n\n\nclass ContractsManager(object):\n contracts ... | diff --git a/scrapy/contracts/__init__.py b/scrapy/contracts/__init__.py
index 851a26a8e2f..ba8450820ca 100644
--- a/scrapy/contracts/__init__.py
+++ b/scrapy/contracts/__init__.py
@@ -42,7 +42,11 @@ def from_spider(self, spider, results):
requests = []
for method in self.tested_methods_from_spidercls... |
PokemonGoF__PokemonGo-Bot-5122 | Incense being used when false
### Expected Behavior
Don't use Incense when set to false in config
### Actual Behavior
Bot using incense when set to false in config
### Your FULL config.json (remove your username, password, gmapkey and any other private info)
http://pastebin.com/YEHMRMiE
### Output when issue occurre... | [
{
"content": "import time\nfrom pokemongo_bot.base_task import BaseTask\nfrom pokemongo_bot.worker_result import WorkerResult\nfrom pokemongo_bot.item_list import Item\nfrom pokemongo_bot import inventory\n\nclass UseIncense(BaseTask):\n SUPPORTED_TASK_API_VERSION = 1\n\n def initialize(self):\n self... | [
{
"content": "import time\nfrom pokemongo_bot.base_task import BaseTask\nfrom pokemongo_bot.worker_result import WorkerResult\nfrom pokemongo_bot.item_list import Item\nfrom pokemongo_bot import inventory\n\nclass UseIncense(BaseTask):\n SUPPORTED_TASK_API_VERSION = 1\n\n def initialize(self):\n self... | diff --git a/pokemongo_bot/cell_workers/use_incense.py b/pokemongo_bot/cell_workers/use_incense.py
index a5ac720d34..dfb99e82cb 100644
--- a/pokemongo_bot/cell_workers/use_incense.py
+++ b/pokemongo_bot/cell_workers/use_incense.py
@@ -42,7 +42,10 @@ def _update_inventory(self):
def _has_count(self):
return ... |
ansible__ansible-35171 | wait_for never resolves due to silent fail if IPv6 is disabled in the OS
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
Utility module: wait_for
##### ANSIBLE VERSION
```
ansible 2.2.2.0
```
##### CONFIGURATION
N/A
##### OS / ENVIRONMENT
Linux without IPv6 enabled so that the path `/proc/net/tcp... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Jeroen Hoekx <jeroen@hoekx.be>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nANSIBLE_METADATA = {... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Jeroen Hoekx <jeroen@hoekx.be>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nANSIBLE_METADATA = {... | diff --git a/lib/ansible/modules/utilities/logic/wait_for.py b/lib/ansible/modules/utilities/logic/wait_for.py
index fdf9064c2ceb37..4844f3c2d7400f 100644
--- a/lib/ansible/modules/utilities/logic/wait_for.py
+++ b/lib/ansible/modules/utilities/logic/wait_for.py
@@ -316,6 +316,8 @@ def _get_exclude_ips(self):
def ... |
cloudtools__troposphere-1280 | Validator issue in Dynamodb
The validator added in #1243 will fail if you use an If for a property
Code:
```
TableName=If("useTableName", Ref(table_name), Ref(AWS_NO_VALUE)),
```
Error:
```
File "e:\github\troposphere\troposphere\__init__.py", line 247, in to_dict
self.validate()
File "e:\github\... | [
{
"content": "# Copyright (c) 2012-2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSObject, AWSProperty, AWSHelperFn, If, Tags\nfrom .validators import boolean\n\n\ndef attribute_type_validator(x):\n valid_types = [\"S\", \"N\", \"B\"]\n ... | [
{
"content": "# Copyright (c) 2012-2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSObject, AWSProperty, AWSHelperFn, If, Tags\nfrom .validators import boolean\n\n\ndef attribute_type_validator(x):\n valid_types = [\"S\", \"N\", \"B\"]\n ... | diff --git a/troposphere/dynamodb.py b/troposphere/dynamodb.py
index 76036735e..e86c1808e 100644
--- a/troposphere/dynamodb.py
+++ b/troposphere/dynamodb.py
@@ -136,7 +136,9 @@ def validate(self):
billing_mode = self.properties.get('BillingMode', 'PROVISIONED')
indexes = self.properties.get('GlobalSec... |
qtile__qtile-2303 | widget.LaunchBar padding background color
# Issue description
When the widget.LaunchBar is used with a padding greater than 0 (zero), the rightmost padding does not respect the bar background color.
# Qtile version
0.17.0
# Configuration
```
screens = [
Screen(
top=bar.Bar(
[... | [
{
"content": "# Copyright (c) 2014 Tycho Andersen\n# Copyright (c) 2014 dequis\n# Copyright (c) 2014-2015 Joseph Razik\n# Copyright (c) 2014 Sean Vig\n# Copyright (c) 2015 reus\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation fil... | [
{
"content": "# Copyright (c) 2014 Tycho Andersen\n# Copyright (c) 2014 dequis\n# Copyright (c) 2014-2015 Joseph Razik\n# Copyright (c) 2014 Sean Vig\n# Copyright (c) 2015 reus\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation fil... | diff --git a/libqtile/widget/launchbar.py b/libqtile/widget/launchbar.py
index 8b72a2413d..41cd5662df 100644
--- a/libqtile/widget/launchbar.py
+++ b/libqtile/widget/launchbar.py
@@ -217,6 +217,8 @@ def draw(self):
self.drawer.draw(offsetx=self.offset + xoffset,
width=icon_wid... |
cupy__cupy-1209 | default type of `full`is int in numpy but float in cupy
```python
In [53]: np.full((2,2), -1)
Out[53]:
array([[-1, -1],
[-1, -1]])
In [54]: cp.full((2,2), -1)
Out[54]:
array([[-1., -1.],
[-1., -1.]])
In [55]: cp.full((2,2), -1, dtype=int)
Out[55]:
array([[-1, -1],
[-1, -1]])
```
| [
{
"content": "import cupy\n\n\ndef empty(shape, dtype=float, order='C'):\n \"\"\"Returns an array without initializing the elements.\n\n Args:\n shape (tuple of ints): Dimensionalities of the array.\n dtype: Data type specifier.\n order ({'C', 'F'}): Row-major (C-style) or column-majo... | [
{
"content": "import cupy\nimport numpy\n\n\ndef empty(shape, dtype=float, order='C'):\n \"\"\"Returns an array without initializing the elements.\n\n Args:\n shape (tuple of ints): Dimensionalities of the array.\n dtype: Data type specifier.\n order ({'C', 'F'}): Row-major (C-style) ... | diff --git a/cupy/creation/basic.py b/cupy/creation/basic.py
index 0e28f2e0a33..d11ca6c6681 100644
--- a/cupy/creation/basic.py
+++ b/cupy/creation/basic.py
@@ -1,4 +1,5 @@
import cupy
+import numpy
def empty(shape, dtype=float, order='C'):
@@ -188,6 +189,11 @@ def full(shape, fill_value, dtype=None):
"""
... |
pwndbg__pwndbg-579 | pwndbg will not display source code when source code has chinese characters
When use directory glibc source in gdb(directory /root/Pwn/glibc/glibc-2.23/malloc), it will display the source code in pwndbg like this:
:
@pwndbg.memo... |
vllm-project__vllm-2517 | prefix caching error with baichuan model
## Machine Info
- Ubuntu
- cuda driver 12.1
- T4 GPU x4
## Reproduce Step
Only change llm line in `examples/offline_inference_with_prefix.py` with
```
llm = LLM(model="baichuan-inc/Baichuan2-13B-Chat", tensor_parallel_size=4, enforce_eager=True, dtype="half", trust_re... | [
{
"content": "# The kernels in this file are adapted from LightLLM's context_attention_fwd:\n# https://github.com/ModelTC/lightllm/blob/main/lightllm/models/llama/triton_kernel/context_flashattention_nopad.py\n\nimport torch\nimport triton\nimport triton.language as tl\n\nif triton.__version__ >= \"2.1.0\":\n\n... | [
{
"content": "# The kernels in this file are adapted from LightLLM's context_attention_fwd:\n# https://github.com/ModelTC/lightllm/blob/main/lightllm/models/llama/triton_kernel/context_flashattention_nopad.py\n\nimport torch\nimport triton\nimport triton.language as tl\n\nif triton.__version__ >= \"2.1.0\":\n\n... | diff --git a/vllm/model_executor/layers/triton_kernel/prefix_prefill.py b/vllm/model_executor/layers/triton_kernel/prefix_prefill.py
index 8fa70054f02..ba40d42307f 100644
--- a/vllm/model_executor/layers/triton_kernel/prefix_prefill.py
+++ b/vllm/model_executor/layers/triton_kernel/prefix_prefill.py
@@ -618,7 +618,9 @@... |
pyinstaller__pyinstaller-3481 | is_module_satisfies() returns True for packages that are not installed
`is_module_satisfies()` should return `False` if the package being provided is not installed.
Instead I get:
>>> from PyInstaller.utils.hooks import is_module_satisfies
>>> is_module_satisfies("xyz")
Traceback (most recent call las... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2018, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the file COPYING.... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2018, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the file COPYING.... | diff --git a/PyInstaller/utils/hooks/__init__.py b/PyInstaller/utils/hooks/__init__.py
index 14efbc07a8..e56429f7a9 100755
--- a/PyInstaller/utils/hooks/__init__.py
+++ b/PyInstaller/utils/hooks/__init__.py
@@ -490,8 +490,12 @@ class method (e.g., `idontevenknow<1.6,>1.9,!=1.9.6,<2.0a0,==2.4c1`) is
module_name... |
modin-project__modin-4405 | Invalid file path or buffer when trying `read_csv_glob` with `usecols` parameter
### System information
```
ray 1.9.2
modin 0.12
python 3.9.12
```
### Describe the problem
```
import modin.experimental.pandas as modin_pd
modin_pd.read_csv_glob(
filepath_or_buffer= "somefile.csv",
... | [
{
"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/docs/release_notes/release_notes-0.15.0.rst b/docs/release_notes/release_notes-0.15.0.rst
index 4c1ea06935a..0791cf02833 100644
--- a/docs/release_notes/release_notes-0.15.0.rst
+++ b/docs/release_notes/release_notes-0.15.0.rst
@@ -13,6 +13,7 @@ Key Features and Updates
* FIX-#4385: Get rid of `use-depr... |
pretalx__pretalx-219 | Adding a speaker question does not pre-select "speaker question"
In the question list view, one can click "Add new question" either for speaker questions or for submission questions. In the following form, the question type is not preselected, which is unexpected.
| [
{
"content": "from csp.decorators import csp_update\nfrom django.contrib import messages\nfrom django.db import transaction\nfrom django.db.models.deletion import ProtectedError\nfrom django.forms.models import inlineformset_factory\nfrom django.shortcuts import redirect\nfrom django.utils.decorators import met... | [
{
"content": "from csp.decorators import csp_update\nfrom django.contrib import messages\nfrom django.db import transaction\nfrom django.db.models.deletion import ProtectedError\nfrom django.forms.models import inlineformset_factory\nfrom django.shortcuts import redirect\nfrom django.utils.decorators import met... | diff --git a/src/pretalx/orga/templates/orga/cfp/question_view.html b/src/pretalx/orga/templates/orga/cfp/question_view.html
index 8a86ab843b..3497dccc47 100644
--- a/src/pretalx/orga/templates/orga/cfp/question_view.html
+++ b/src/pretalx/orga/templates/orga/cfp/question_view.html
@@ -52,7 +52,7 @@
{% emp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.