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 ⌀ |
|---|---|---|---|---|
nautobot__nautobot-2411 | Swagger documentation lists incorrect authorization header
<!--
NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED.
This form is only for reporting reproducible bugs. If you need assistance
with Nautobot installation, or if you have a general question, please start a
discussion i... | [
{
"content": "import logging\nimport platform\nfrom collections import OrderedDict\n\nfrom django import __version__ as DJANGO_VERSION\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.http.response import HttpResponseBadRequest\n... | [
{
"content": "import logging\nimport platform\nfrom collections import OrderedDict\n\nfrom django import __version__ as DJANGO_VERSION\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.http.response import HttpResponseBadRequest\n... | diff --git a/changes/2411.fixed b/changes/2411.fixed
new file mode 100644
index 00000000000..af79de8b9fd
--- /dev/null
+++ b/changes/2411.fixed
@@ -0,0 +1 @@
+Fixed SwaggerUI use of Authorization Token, API calls in SwaggerUI now use appropriate token pattern and curl command match the correct pattern.
diff --git a/nau... |
Lightning-AI__pytorch-lightning-3465 | Issues with Confusion Matrix normalization and DDP computation
## 🐛 Bug
I started using the ConfusionMatrix metric to compute normalized confusion matrices within a mult-GPU DDP environment. However, I found the following issues:
1. The normalization divisor is computed correctly in a row-wise manner; however, th... | [
{
"content": "from functools import wraps\nfrom typing import Callable, Optional, Sequence, Tuple\n\nimport torch\nfrom torch.nn import functional as F\n\nfrom pytorch_lightning.metrics.functional.reduction import reduce\nfrom pytorch_lightning.utilities import FLOAT16_EPSILON, rank_zero_warn\n\n\ndef to_onehot... | [
{
"content": "from functools import wraps\nfrom typing import Callable, Optional, Sequence, Tuple\n\nimport torch\nfrom torch.nn import functional as F\n\nfrom pytorch_lightning.metrics.functional.reduction import reduce\nfrom pytorch_lightning.utilities import FLOAT16_EPSILON, rank_zero_warn\n\n\ndef to_onehot... | diff --git a/pytorch_lightning/metrics/functional/classification.py b/pytorch_lightning/metrics/functional/classification.py
index 527770b430769..5a14aa22edd2b 100644
--- a/pytorch_lightning/metrics/functional/classification.py
+++ b/pytorch_lightning/metrics/functional/classification.py
@@ -312,7 +312,11 @@ def confus... |
svthalia__concrexit-2979 | AttributeError: 'Profile' object has no attribute 'is_minimised'
Sentry Issue: [CONCREXIT-P2](https://thalia.sentry.io/issues/4038068631/?referrer=github_integration)
```
AttributeError: 'Profile' object has no attribute 'is_minimised'
(3 additional frame(s) were not displayed)
...
File "registrations/views.py", lin... | [
{
"content": "\"\"\"Views provided by the registrations package.\"\"\"\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.admin.utils import model_ngettext\nfrom django.contrib.admin.views.decorators import staff_member_required\nfrom django.contrib.auth.decorators impor... | [
{
"content": "\"\"\"Views provided by the registrations package.\"\"\"\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.admin.utils import model_ngettext\nfrom django.contrib.admin.views.decorators import staff_member_required\nfrom django.contrib.auth.decorators impor... | diff --git a/website/registrations/views.py b/website/registrations/views.py
index 8bef97efe..4aaf573c7 100644
--- a/website/registrations/views.py
+++ b/website/registrations/views.py
@@ -235,7 +235,7 @@ def get_context_data(self, **kwargs):
if (
self.request.member.latest_membership
... |
qutip__qutip-1496 | Bloch sphere deformed for matplotlib >= 3.3.0
**Describe the bug**
When plotting the Bloch sphere with qutip and matplotlib >=3.3.0 the sphere appears deformed in z-direction.
This is a result of a change in matplotlib Axes3D: https://matplotlib.org/3.3.0/users/whats_new.html#d-axes-improvements
**To Reproduce**
... | [
{
"content": "# This file is part of QuTiP: Quantum Toolbox in Python.\n#\n# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the followi... | [
{
"content": "# This file is part of QuTiP: Quantum Toolbox in Python.\n#\n# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the followi... | diff --git a/qutip/bloch.py b/qutip/bloch.py
index 45bff16d43..6142bf1dc4 100644
--- a/qutip/bloch.py
+++ b/qutip/bloch.py
@@ -461,6 +461,9 @@ def render(self, fig=None, axes=None):
self.axes.set_xlim3d(-0.7, 0.7)
self.axes.set_ylim3d(-0.7, 0.7)
self.axes.set_zlim3d(-0.7, 0.7)
+ ... |
jschneier__django-storages-749 | Stale data in S3 entries after file is deleted
If a file is deleted, the entry persists in `entries`, resulting in stale information about files that may be deleted or replaced.
I came across this behavior when looking at the last modified time of assets I have replaced.
| [
{
"content": "import io\nimport mimetypes\nimport os\nimport posixpath\nimport threading\nimport warnings\nfrom gzip import GzipFile\nfrom tempfile import SpooledTemporaryFile\n\nfrom django.conf import settings as django_settings\nfrom django.core.exceptions import ImproperlyConfigured, SuspiciousOperation\nfr... | [
{
"content": "import io\nimport mimetypes\nimport os\nimport posixpath\nimport threading\nimport warnings\nfrom gzip import GzipFile\nfrom tempfile import SpooledTemporaryFile\n\nfrom django.conf import settings as django_settings\nfrom django.core.exceptions import ImproperlyConfigured, SuspiciousOperation\nfr... | diff --git a/storages/backends/s3boto3.py b/storages/backends/s3boto3.py
index bbaa248a5..2ccba09cb 100644
--- a/storages/backends/s3boto3.py
+++ b/storages/backends/s3boto3.py
@@ -521,6 +521,9 @@ def delete(self, name):
name = self._normalize_name(self._clean_name(name))
self.bucket.Object(self._enco... |
statsmodels__statsmodels-3430 | SARIMAX predict does not actually allow for datetime start/end
Docs indicate it does, but TimeSeriesModel._get_predict_start requires either a string or an int.
| [
{
"content": "from statsmodels.compat.python import lrange, long\nfrom statsmodels.compat.pandas import is_numeric_dtype\n\nimport datetime\n\nfrom pandas import to_datetime, DatetimeIndex, Period, PeriodIndex, Timestamp\n\nfrom statsmodels.base import data\nimport statsmodels.base.model as base\nimport statsmo... | [
{
"content": "from statsmodels.compat.python import lrange, long\nfrom statsmodels.compat.pandas import is_numeric_dtype\n\nimport datetime\n\nfrom pandas import to_datetime, DatetimeIndex, Period, PeriodIndex, Timestamp\n\nfrom statsmodels.base import data\nimport statsmodels.base.model as base\nimport statsmo... | diff --git a/statsmodels/tsa/base/tests/test_base.py b/statsmodels/tsa/base/tests/test_base.py
index ccb7594ddb3..8e89be6a8f5 100644
--- a/statsmodels/tsa/base/tests/test_base.py
+++ b/statsmodels/tsa/base/tests/test_base.py
@@ -4,6 +4,7 @@
from statsmodels.tsa.base.datetools import _freq_to_pandas
from statsmodels.t... |
spyder-ide__spyder-14842 | Editing in 4.2.2 causes issue popup
## Problem Description
Editing some code in 4.2.2 in Windows (launched from Powershell)
The editor suddenly pops up a window saying an issue has occurred, but no error is reported
The internal console shows errors
### What steps reproduce the problem?
1. In the editor, I ... | [
{
"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\"\"\"General editor panel utilities.\"\"\"\n\n# Standard library imports\nimport bisect\nimport uuid\n\n# Third-party imports\nfrom inter... | [
{
"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\"\"\"General editor panel utilities.\"\"\"\n\n# Standard library imports\nimport bisect\nimport uuid\n\n# Third-party imports\nfrom inter... | diff --git a/spyder/plugins/editor/panels/utils.py b/spyder/plugins/editor/panels/utils.py
index 3ec6a1d5968..ffb857bfe6e 100644
--- a/spyder/plugins/editor/panels/utils.py
+++ b/spyder/plugins/editor/panels/utils.py
@@ -54,7 +54,10 @@ def remove_node(self, node):
for child in self.children[node.index + 1:]:
... |
wagtail__wagtail-1666 | AttributeError when passwords do not match on user creation form
Wagtail will crash with the following error if the two passwords don't match on the user creation form:
```
AttributeError at /admin/users/add/
'UserCreationForm' object has no attribute 'error_messages'
```
On this line: https://github.com/torchbox/wa... | [
{
"content": "from django import forms\nfrom django.contrib.auth import get_user_model\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.contrib.auth.models import Group, Permission\nfrom django.forms.models import inlineformset_factory\n\nfrom wagtail.wagtailcore import hooks\nfrom wagtail.... | [
{
"content": "from django import forms\nfrom django.contrib.auth import get_user_model\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.contrib.auth.models import Group, Permission\nfrom django.forms.models import inlineformset_factory\n\nfrom wagtail.wagtailcore import hooks\nfrom wagtail.... | diff --git a/wagtail/wagtailusers/forms.py b/wagtail/wagtailusers/forms.py
index ce4108a01106..fa1736068f20 100644
--- a/wagtail/wagtailusers/forms.py
+++ b/wagtail/wagtailusers/forms.py
@@ -43,8 +43,13 @@ def separate_username_field(self):
class UserCreationForm(UsernameForm):
-
required_css_class = "require... |
facebookresearch__fairscale-1157 | Issue in `ParallelEmbedding` constructor - scale_grad_by_freq being assigned to norm_type
## Overview
In the __init__ function of ParallelEmbedding, both `self.norm_type` and `self.scale_grad_by_freq` are assigned to `scale_grad_by_freq`. https://github.com/facebookresearch/fairscale/blob/164cc0f3170b4a3951dd84dda29c3... | [
{
"content": "# coding=utf-8\n\n# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\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# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licens... | [
{
"content": "# coding=utf-8\n\n# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\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# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licens... | diff --git a/fairscale/nn/model_parallel/layers.py b/fairscale/nn/model_parallel/layers.py
index 05af2c741..e27d5aa72 100644
--- a/fairscale/nn/model_parallel/layers.py
+++ b/fairscale/nn/model_parallel/layers.py
@@ -178,7 +178,7 @@ def __init__(
self.embedding_dim = embedding_dim
self.padding_idx = p... |
fidals__shopelectro-984 | Create landing for sms mailing
See reqs at the [trello task](https://trello.com/c/3ddgHTWC/28-125-5k-%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5-%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D1%8B-%D0%B4%D0%BB%D1%8F-%D0%BF%D0%B5%D1%80%D0%B5%D0%BD%D0%B0%D0%BF%D1%80%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B9-%D0%BD%D0%B... | [
{
"content": "from collections import OrderedDict\nfrom datetime import timedelta\n\nfrom django.conf import settings\nfrom django.conf.urls import url, include\nfrom django.conf.urls.static import static\nfrom django.contrib.sitemaps.views import sitemap\nfrom django.views.decorators.cache import cache_page, n... | [
{
"content": "from collections import OrderedDict\nfrom datetime import timedelta\n\nfrom django.conf import settings\nfrom django.conf.urls import url, include\nfrom django.conf.urls.static import static\nfrom django.contrib.sitemaps.views import sitemap\nfrom django.views.decorators.cache import cache_page, n... | diff --git a/front/images/sms_landing/13611567776604313.png b/front/images/sms_landing/13611567776604313.png
new file mode 100644
index 00000000..346f6718
Binary files /dev/null and b/front/images/sms_landing/13611567776604313.png differ
diff --git a/front/images/sms_landing/14371567434094235.png b/front/images/sms_lan... |
Lightning-AI__torchmetrics-2434 | Typing error for detection metrics in MultitaskWrapper
## 🐛 Bug
Hej @SkafteNicki,
thanks for the great wrapper class! It is exactly, what I was in the need of, however mypy is ruining all the fun :/
The `MultitaskWrapper`'s `update` method has typehints for `dict[str, Tensor]` which works for the classificati... | [
{
"content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli... | [
{
"content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli... | diff --git a/src/torchmetrics/wrappers/multitask.py b/src/torchmetrics/wrappers/multitask.py
index b80fd2491a5..556a7183638 100644
--- a/src/torchmetrics/wrappers/multitask.py
+++ b/src/torchmetrics/wrappers/multitask.py
@@ -159,7 +159,7 @@ def _check_task_metrics_type(task_metrics: Dict[str, Union[Metric, MetricCollec... |
awslabs__gluonts-1952 | Incorrect order of quantiles in Temporal Fusion Transformer
## Description
The values in the QuantileForecasts generated by the temporal fusion transformer do not coincide with the forecast_keys. I've looked into the issue and found that the QuantileOutput used in the network sorts the quantiles,
https://github.com... | [
{
"content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\").\n# You may not use this file except in compliance with the License.\n# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE... | [
{
"content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\").\n# You may not use this file except in compliance with the License.\n# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE... | diff --git a/src/gluonts/model/tft/_estimator.py b/src/gluonts/model/tft/_estimator.py
index ed24f97b88..c6096becdc 100644
--- a/src/gluonts/model/tft/_estimator.py
+++ b/src/gluonts/model/tft/_estimator.py
@@ -442,6 +442,8 @@ def create_predictor(
prediction_length=self.prediction_length,
ctx... |
wemake-services__wemake-python-styleguide-535 | False positive for Z121 when using `_` for unused var names
# Bug report
## What's wrong
This code triggers `Z121`:
```python
def logo_and_user():
user, _ = User.objects.get_or_create(username='sobolevn')
logo, _ = Logo.objects.get_or_create(username='sobolevn') # here
```
Log: `test.py:4:11: Z... | [
{
"content": "# -*- coding: utf-8 -*-\n\nimport ast\nfrom typing import ClassVar, Dict, List, Optional, Union\n\nfrom wemake_python_styleguide.constants import (\n FUNCTIONS_BLACKLIST,\n UNUSED_VARIABLE,\n)\nfrom wemake_python_styleguide.logics import functions\nfrom wemake_python_styleguide.logics.naming... | [
{
"content": "# -*- coding: utf-8 -*-\n\nimport ast\nfrom typing import ClassVar, Dict, List, Optional, Union\n\nfrom wemake_python_styleguide.constants import (\n FUNCTIONS_BLACKLIST,\n UNUSED_VARIABLE,\n)\nfrom wemake_python_styleguide.logics import functions\nfrom wemake_python_styleguide.logics.naming... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7ec2b5bfd..a8476e64e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@ We used to have incremental versioning before `0.1.0`.
### Bugfixes
- Fixes problem with missing _allowed_left_nodes
+- Fixes problem false positive for Z121 when using `_` for unused v... |
sopel-irc__sopel-2286 | wikipedia: excess whitespace in snippets containing math expressions
### Description
@dgw said something about Wikipedia doing dumb XML things, idk. Just opening this so @dgw can die happy, or whatever.
### Reproduction steps
N/A
### Expected behavior
Not 15 miles of whitespace?
### Logs
```
20:10:31 <xna... | [
{
"content": "\"\"\"\nwikipedia.py - Sopel Wikipedia Plugin\nCopyright 2013 Elsie Powell - embolalia.com\nLicensed under the Eiffel Forum License 2.\n\nhttps://sopel.chat\n\"\"\"\nfrom __future__ import annotations\n\nfrom html.parser import HTMLParser\nimport re\n\nfrom requests import get\n\nfrom sopel import... | [
{
"content": "\"\"\"\nwikipedia.py - Sopel Wikipedia Plugin\nCopyright 2013 Elsie Powell - embolalia.com\nLicensed under the Eiffel Forum License 2.\n\nhttps://sopel.chat\n\"\"\"\nfrom __future__ import annotations\n\nfrom html.parser import HTMLParser\nimport re\n\nfrom requests import get\n\nfrom sopel import... | diff --git a/sopel/modules/wikipedia.py b/sopel/modules/wikipedia.py
index 5476f0997d..549d47eda9 100644
--- a/sopel/modules/wikipedia.py
+++ b/sopel/modules/wikipedia.py
@@ -184,6 +184,9 @@ def say_snippet(bot, trigger, server, query, show_url=True):
try:
snippet = mw_snippet(server, query)
+ # ... |
open-telemetry__opentelemetry-python-contrib-2342 | Celery Instrumentation TypeError
**Describe your environment**
```
celery = "5.3.4"
opentelemetry-sdk = "1.20"
opentelemetry-propagator-b3 = "1.20"
opentelemetry-exporter-jaeger = "1.20"
opentelemetry-instrumentation-django = "0.41b0"
opentelemetry-instrumentation-asgi = "0.41b0"
opentelemetry-instrumentatio... | [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e841a0bdc8..673623d89c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
### Fixed
+- `opentelemetry-instrumentation-celery` Allow Celery instrumentation to be ins... |
python-poetry__poetry-4420 | Throw a RuntimeError on hash mismatch in Chooser._get_links
Throw a specific exception in the case of finding a matching name+version, but none of the digests for a link matching the `poetry.lock` metadata.
Resolves: #2422
- [✅] Added **tests** for changed code.
- [✅] Updated **documentation** for changed code.
... | [
{
"content": "import re\n\nfrom typing import List\nfrom typing import Tuple\n\nfrom packaging.tags import Tag\n\nfrom poetry.core.packages.package import Package\nfrom poetry.core.packages.utils.link import Link\nfrom poetry.repositories.pool import Pool\nfrom poetry.utils.env import Env\nfrom poetry.utils.pat... | [
{
"content": "import re\n\nfrom typing import List\nfrom typing import Tuple\n\nfrom packaging.tags import Tag\n\nfrom poetry.core.packages.package import Package\nfrom poetry.core.packages.utils.link import Link\nfrom poetry.repositories.pool import Pool\nfrom poetry.utils.env import Env\nfrom poetry.utils.pat... | diff --git a/poetry/installation/chooser.py b/poetry/installation/chooser.py
index 6d9e92e0b1f..0e97d0ea3e7 100644
--- a/poetry/installation/chooser.py
+++ b/poetry/installation/chooser.py
@@ -109,6 +109,13 @@ def _get_links(self, package): # type: (Package) -> List[Link]
selected_links.append(link)
+... |
open-telemetry__opentelemetry-python-contrib-308 | Asgi request headers are not retrieved properly
Environment:
Python: python3.8
fastapi==0.63.0
opentelemetry-api==0.16b1
opentelemetry-sdk==0.16b1
opentelemetry-instrumentation-fastapi==0.16b1
opentelemetry-exporter-google-cloud==0.16b1
opentelemetry-tools-google-cloud==0.16b1
When using `CloudTraceFormatP... | [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 38e65c98d6..7bd167956a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Remove `component` span attribute in instrumentations.
`opentelemetry-instrumentation-aiopg`, `open... |
obspy__obspy-2562 | Fix simple typo: whith -> with
There is a small typo in obspy/io/gcf/core.py.
Should read `with` rather than `whith`.
| [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nGCF bindings to ObsPy core module.\n\"\"\"\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\nfrom future.builtins import * # NOQA\n\nfrom obspy import Stream, Trace, UTCDateTime\n\nfrom . import libgcf\... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nGCF bindings to ObsPy core module.\n\"\"\"\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\nfrom future.builtins import * # NOQA\n\nfrom obspy import Stream, Trace, UTCDateTime\n\nfrom . import libgcf\... | diff --git a/obspy/io/gcf/core.py b/obspy/io/gcf/core.py
index eca2ecbef7e..b713cc84b82 100644
--- a/obspy/io/gcf/core.py
+++ b/obspy/io/gcf/core.py
@@ -16,7 +16,7 @@ def merge_gcf_stream(st):
Merges GCF stream (replacing Stream.merge(-1) for headonly=True)
:type st: :class:`~obspy.core.stream.Stream`
- ... |
xonsh__xonsh-4906 | Unhandled KeyError on missing color scheme with `xonsh --no-rc`
<!--- Provide a general summary of the issue in the Title above -->
<!--- If you have a question along the lines of "How do I do this Bash command in xonsh"
please first look over the Bash to Xonsh translation guide: https://xon.sh/bash_to_xsh.html
If y... | [
{
"content": "\"\"\"Tools for helping with ANSI color codes.\"\"\"\nimport re\nimport sys\nimport warnings\n\nfrom xonsh.built_ins import XSH\nfrom xonsh.color_tools import (\n BASE_XONSH_COLORS,\n RE_XONSH_COLOR,\n find_closest_color,\n iscolor,\n make_palette,\n rgb2short,\n rgb_to_256,\n... | [
{
"content": "\"\"\"Tools for helping with ANSI color codes.\"\"\"\nimport re\nimport sys\nimport warnings\n\nfrom xonsh.built_ins import XSH\nfrom xonsh.color_tools import (\n BASE_XONSH_COLORS,\n RE_XONSH_COLOR,\n find_closest_color,\n iscolor,\n make_palette,\n rgb2short,\n rgb_to_256,\n... | diff --git a/news/dont_crash_without_pygments.rst b/news/dont_crash_without_pygments.rst
new file mode 100644
index 0000000000..097ad4a66a
--- /dev/null
+++ b/news/dont_crash_without_pygments.rst
@@ -0,0 +1,23 @@
+**Added:**
+
+* <news item>
+
+**Changed:**
+
+* <news item>
+
+**Deprecated:**
+
+* <news item>
+
+**Remo... |
feast-dev__feast-1580 | Zeroed entity value causes materialization to fail
If the user uses an INT32 entity type, and sets their entity to `0`, then type_map.py will throw an exception here https://github.com/feast-dev/feast/blob/master/sdk/python/feast/type_map.py#L207 that says `feast_value_type` is of type `None` and does not contain a `na... | [
{
"content": "# Copyright 2019 The Feast 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | [
{
"content": "# Copyright 2019 The Feast 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | diff --git a/sdk/python/feast/type_map.py b/sdk/python/feast/type_map.py
index 682810ea849..61aedb3b34e 100644
--- a/sdk/python/feast/type_map.py
+++ b/sdk/python/feast/type_map.py
@@ -330,7 +330,11 @@ def _python_value_to_proto_value(feast_value_type, value) -> ProtoValue:
def python_value_to_proto_value(
value:... |
translate__pootle-4360 | Stats: dirty banner can appear after refresh_stats or any translation actions with rq==0.5.6
`refresh_stats` finishes without failures but produces some incomplete stats and the dirty banner visible.
I reckon that it happens because jobs with dependencies are added to the wrong queue `rq:queue:None`. This happened afte... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship informa... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship informa... | diff --git a/pootle/core/mixins/treeitem.py b/pootle/core/mixins/treeitem.py
index d164a9f78e2..d07184f244e 100644
--- a/pootle/core/mixins/treeitem.py
+++ b/pootle/core/mixins/treeitem.py
@@ -650,7 +650,7 @@ def create_job(self, status=None, depends_on=None):
args = (self.instance,)
return Job.create... |
freedomofpress__securedrop-354 | Stuck in "Sorry, we couldn't locate what you requested" state
As a source, after generating a code and clicking the "Continue..." button and going back, then refreshing you get stuck on a page that says "Sorry, we couldn't locate what you requested". Going to any URL causes the same message to be displayed and you have... | [
{
"content": "# -*- coding: utf-8 -*-\nimport os\nfrom datetime import datetime\nimport uuid\nfrom functools import wraps\nimport zipfile\nfrom cStringIO import StringIO\nimport subprocess\n\nimport logging\n# This module's logger is explicitly labeled so the correct logger is used,\n# even when this is run fro... | [
{
"content": "# -*- coding: utf-8 -*-\nimport os\nfrom datetime import datetime\nimport uuid\nfrom functools import wraps\nimport zipfile\nfrom cStringIO import StringIO\nimport subprocess\n\nimport logging\n# This module's logger is explicitly labeled so the correct logger is used,\n# even when this is run fro... | diff --git a/securedrop/source.py b/securedrop/source.py
index 89df41c4b4..c19578ef5f 100644
--- a/securedrop/source.py
+++ b/securedrop/source.py
@@ -115,6 +115,7 @@ def generate():
if number_words not in range(7, 11):
abort(403)
session['codename'] = crypto_util.genrandomid(number_words)
+ ... |
streamlit__streamlit-3949 | Fix wrong Streamlit static app for st.caption() doc
**Link to doc page in question (if any):**
[[click here]](https://docs.streamlit.io/library/api-reference/text/st.caption)
**Name of the Streamlit feature whose docs need improvement:**
`st.caption()`
**What you think the docs should say:**
The Streamlit st... | [
{
"content": "# Copyright 2018-2021 Streamlit 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 a... | [
{
"content": "# Copyright 2018-2021 Streamlit 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 a... | diff --git a/lib/streamlit/elements/markdown.py b/lib/streamlit/elements/markdown.py
index 56e75eb8d906..9f1d96ff9d29 100644
--- a/lib/streamlit/elements/markdown.py
+++ b/lib/streamlit/elements/markdown.py
@@ -218,8 +218,8 @@ def caption(self, body):
>>> st.caption('This is a string that explains something ab... |
safe-global__safe-config-service-145 | Increase max limit for the chains endpoint
| [
{
"content": "from rest_framework import filters\nfrom rest_framework.generics import ListAPIView, RetrieveAPIView\nfrom rest_framework.pagination import LimitOffsetPagination\n\nfrom .models import Chain\nfrom .serializers import ChainSerializer\n\n\nclass ChainsListView(ListAPIView):\n serializer_class = C... | [
{
"content": "from rest_framework import filters\nfrom rest_framework.generics import ListAPIView, RetrieveAPIView\nfrom rest_framework.pagination import LimitOffsetPagination\n\nfrom .models import Chain\nfrom .serializers import ChainSerializer\n\n\nclass ChainsListView(ListAPIView):\n serializer_class = C... | diff --git a/src/chains/tests/test_views.py b/src/chains/tests/test_views.py
index 8faca631..cf187ba9 100644
--- a/src/chains/tests/test_views.py
+++ b/src/chains/tests/test_views.py
@@ -73,22 +73,22 @@ def test_pagination_next_page(self):
self.assertEqual(len(response.data["results"]), 10)
def test_req... |
napari__napari-5850 | [Qt6] AttributeError when renaming a layer
## 🐛 Bug
This seems to be yet another small Qt6 issue related to enum name changes.
## To Reproduce
Steps to reproduce the behavior:
1. Launch napari from a Qt6 environment
2. Open a file or otherwise create a new layer
3. Double click the layer to rename it, tr... | [
{
"content": "\"\"\"\nGeneral rendering flow:\n\n1. The List/Tree view needs to display or edit an index in the model...\n2. It gets the ``itemDelegate``\n a. A custom delegate can be set with ``setItemDelegate``\n b. ``QStyledItemDelegate`` is the default delegate for all Qt item views,\n and is in... | [
{
"content": "\"\"\"\nGeneral rendering flow:\n\n1. The List/Tree view needs to display or edit an index in the model...\n2. It gets the ``itemDelegate``\n a. A custom delegate can be set with ``setItemDelegate``\n b. ``QStyledItemDelegate`` is the default delegate for all Qt item views,\n and is in... | diff --git a/napari/_qt/containers/_layer_delegate.py b/napari/_qt/containers/_layer_delegate.py
index f6adf71e928..2eacc6ed5b2 100644
--- a/napari/_qt/containers/_layer_delegate.py
+++ b/napari/_qt/containers/_layer_delegate.py
@@ -138,7 +138,7 @@ def createEditor(
editor = super().createEditor(parent, option... |
crytic__slither-1339 | README is not correctly rendered on PyPi
### Describe the desired feature
The description on https://pypi.org/project/slither-analyzer/ is not being rendered as markdown. Add the line `long_description_content_type="text/markdown",` to the `setup.py` for it to render correctly in future releases.
| [
{
"content": "from setuptools import setup, find_packages\n\nwith open(\"README.md\", \"r\", encoding=\"utf-8\") as f:\n long_description = f.read()\n\nsetup(\n name=\"slither-analyzer\",\n description=\"Slither is a Solidity static analysis framework written in Python 3.\",\n url=\"https://github.c... | [
{
"content": "from setuptools import setup, find_packages\n\nwith open(\"README.md\", \"r\", encoding=\"utf-8\") as f:\n long_description = f.read()\n\nsetup(\n name=\"slither-analyzer\",\n description=\"Slither is a Solidity static analysis framework written in Python 3.\",\n url=\"https://github.c... | diff --git a/setup.py b/setup.py
index 993862f030..4b0c5e8e0a 100644
--- a/setup.py
+++ b/setup.py
@@ -31,6 +31,7 @@
dependency_links=["git+https://github.com/crytic/crytic-compile.git@master#egg=crytic-compile"],
license="AGPL-3.0",
long_description=long_description,
+ long_description_content_type="... |
pypa__setuptools-3502 | Editable install using setup.py breaks without legacy feature [BUG]
### setuptools version
63.2.0
### Python version
Python 3.10
### OS
Ubuntu 22.04 LTS
### Additional environment information
_No response_
### Description
Running `pip install -e .` in a repository with a `pyproject.toml` present, even if `py... | [
{
"content": "\"\"\"\nCreate a wheel that, when installed, will make the source package 'editable'\n(add it to the interpreter's path, including metadata) per PEP 660. Replaces\n'setup.py develop'.\n\n.. note::\n One of the mechanisms briefly mentioned in PEP 660 to implement editable installs is\n to creat... | [
{
"content": "\"\"\"\nCreate a wheel that, when installed, will make the source package 'editable'\n(add it to the interpreter's path, including metadata) per PEP 660. Replaces\n'setup.py develop'.\n\n.. note::\n One of the mechanisms briefly mentioned in PEP 660 to implement editable installs is\n to creat... | diff --git a/changelog.d/3502.misc.rst b/changelog.d/3502.misc.rst
new file mode 100644
index 0000000000..ecc9833473
--- /dev/null
+++ b/changelog.d/3502.misc.rst
@@ -0,0 +1 @@
+Fix issue with editable install and single module packages.
diff --git a/setuptools/command/editable_wheel.py b/setuptools/command/editable_wh... |
Netflix__lemur-267 | Create new roles for unknown owners
Currently when you create an authority with an unknown owner we get an error because we assumed that the owner is creating the authority.
This is not always the case as sometimes teams will create authorities on the behalf of other teams. We should just go ahead an create an owner_r... | [
{
"content": "\"\"\"\n.. module: lemur.authorities.service\n :platform: Unix\n :synopsis: This module contains all of the services level functions used to\n administer authorities in Lemur\n :copyright: (c) 2015 by Netflix Inc., see AUTHORS for more\n :license: Apache, see LICENSE for more detail... | [
{
"content": "\"\"\"\n.. module: lemur.authorities.service\n :platform: Unix\n :synopsis: This module contains all of the services level functions used to\n administer authorities in Lemur\n :copyright: (c) 2015 by Netflix Inc., see AUTHORS for more\n :license: Apache, see LICENSE for more detail... | diff --git a/lemur/authorities/service.py b/lemur/authorities/service.py
index 9a7ff6a287..1d3d2779fa 100644
--- a/lemur/authorities/service.py
+++ b/lemur/authorities/service.py
@@ -103,6 +103,10 @@ def create(kwargs):
# the owning dl or role should have this authority associated with it
owner_role = role_... |
pallets__werkzeug-2841 | `pyright` in strict mode errors when using `formparser.MultiPartParser.parse`
I have a file which includes code like:
```python
from werkzeug.formparser import MultiPartParser
parser = MultiPartParser()
fields, files = parser.parse(
stream=io.BytesIO(b"foo"),
boundary=boundary.encode("utf-8"),
co... | [
{
"content": "from __future__ import annotations\n\nimport typing as t\nfrom io import BytesIO\nfrom urllib.parse import parse_qsl\n\nfrom ._internal import _plain_int\nfrom .datastructures import FileStorage\nfrom .datastructures import Headers\nfrom .datastructures import MultiDict\nfrom .exceptions import Re... | [
{
"content": "from __future__ import annotations\n\nimport typing as t\nfrom io import BytesIO\nfrom urllib.parse import parse_qsl\n\nfrom ._internal import _plain_int\nfrom .datastructures import FileStorage\nfrom .datastructures import Headers\nfrom .datastructures import MultiDict\nfrom .exceptions import Re... | diff --git a/CHANGES.rst b/CHANGES.rst
index 186e8f580..b23bffcd4 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,5 +1,13 @@
.. currentmodule:: werkzeug
+Version 3.0.2
+-------------
+
+Unreleased
+
+- Make the return type of ``MultiPartParser.parse`` more
+ precise. :issue:`2840`
+
Version 3.0.1
-----------... |
django-haystack__django-haystack-1793 | Updating whoosh index with --workers > 1 misses data
* [ ] Tested with the latest Haystack release
* [x] Tested with the current Haystack master branch
## Expected behaviour
Index item count should match the number of indexed objects
## Actual behaviour
Index item count is less than the number of indexed objec... | [
{
"content": "import json\nimport os\nimport re\nimport shutil\nimport threading\nimport warnings\n\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.utils.datetime_safe import datetime\nfrom django.utils.encoding import force_str\n\nfrom haystack.backends i... | [
{
"content": "import json\nimport os\nimport re\nimport shutil\nimport threading\nimport warnings\n\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.utils.datetime_safe import datetime\nfrom django.utils.encoding import force_str\n\nfrom haystack.backends i... | diff --git a/haystack/backends/whoosh_backend.py b/haystack/backends/whoosh_backend.py
index 70a52b3d0..a681fcc88 100644
--- a/haystack/backends/whoosh_backend.py
+++ b/haystack/backends/whoosh_backend.py
@@ -284,6 +284,8 @@ def update(self, index, iterable, commit=True):
if len(iterable) > 0:
# F... |
PokemonGoF__PokemonGo-Bot-5124 | Error: Bot giving errors in the latest commit
### Expected Behavior
Bot should work
### Actual Behavior
Bot gives errors on startup
### Your FULL config.json (remove your username, password, gmapkey and any other private info)
```
{
"websocket_server": false,
"heartbeat_threshold": 10,
"enable_social": f... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, unicode_literals\n\nfrom itertools import cycle\nimport math\n\nfrom pokemongo_bot.walkers.step_walker import StepWalker\nfrom pokemongo_bot.base_task import BaseTask\n\nclass FollowSpiral(BaseTask):\n SUPPORTED_TASK_API_VERSION =... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, unicode_literals\n\nfrom itertools import cycle\nimport math\n\nfrom pokemongo_bot.walkers.step_walker import StepWalker\nfrom pokemongo_bot.base_task import BaseTask\n\nclass FollowSpiral(BaseTask):\n SUPPORTED_TASK_API_VERSION =... | diff --git a/pokemongo_bot/cell_workers/follow_spiral.py b/pokemongo_bot/cell_workers/follow_spiral.py
index 5e2a59f6bf..a109838335 100644
--- a/pokemongo_bot/cell_workers/follow_spiral.py
+++ b/pokemongo_bot/cell_workers/follow_spiral.py
@@ -20,7 +20,7 @@ def initialize(self):
self.spiral = self._generate_spi... |
rasterio__rasterio-2255 | Use boto3.Session().get_credentials()
In some places (mostly in tests) an [old approach](https://github.com/mapbox/rasterio/blob/3c630f8a30d31ceb61aa52ad3ab96f4fc25f2ecd/rasterio/session.py#L290) to obtain AWS credentials is being used:
```
boto3.Session()._session.get_credentials()
````
Dedicated method to obtai... | [
{
"content": "\"\"\"Abstraction for sessions in various clouds.\"\"\"\n\nimport logging\nimport os\n\nimport rasterio._loading\nwith rasterio._loading.add_gdal_dll_directories():\n from rasterio.path import parse_path, UnparsedPath\n\n\nlog = logging.getLogger(__name__)\n\ntry:\n import boto3\nexcept Impo... | [
{
"content": "\"\"\"Abstraction for sessions in various clouds.\"\"\"\n\nimport logging\nimport os\n\nimport rasterio._loading\nwith rasterio._loading.add_gdal_dll_directories():\n from rasterio.path import parse_path, UnparsedPath\n\n\nlog = logging.getLogger(__name__)\n\ntry:\n import boto3\nexcept Impo... | diff --git a/README.rst b/README.rst
index 620438cb7..e7a003579 100644
--- a/README.rst
+++ b/README.rst
@@ -200,7 +200,7 @@ setuptools
hypothesis
pytest-cov>=2.2.0
matplotlib
-boto3>=1.2.4
+boto3>=1.3.1
numpydoc
pytest>=2.8.2
shapely
@@ -223,10 +223,10 @@ ipython>=2.0
matplotlib
[s3]
-boto3>=1.2.4
+boto3>=1.... |
celery__celery-6838 | empty line printed to stderr
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
-->
- [x] I have verified that the issue exists against t... | [
{
"content": "\"\"\"Logging utilities.\"\"\"\nimport logging\nimport numbers\nimport os\nimport sys\nimport threading\nimport traceback\nfrom contextlib import contextmanager\n\nfrom kombu.log import LOG_LEVELS\nfrom kombu.log import get_logger as _get_logger\nfrom kombu.utils.encoding import safe_str\n\nfrom .... | [
{
"content": "\"\"\"Logging utilities.\"\"\"\nimport logging\nimport numbers\nimport os\nimport sys\nimport threading\nimport traceback\nfrom contextlib import contextmanager\n\nfrom kombu.log import LOG_LEVELS\nfrom kombu.log import get_logger as _get_logger\nfrom kombu.utils.encoding import safe_str\n\nfrom .... | diff --git a/celery/utils/log.py b/celery/utils/log.py
index 58f194755a2..8ca34e7c5ae 100644
--- a/celery/utils/log.py
+++ b/celery/utils/log.py
@@ -223,6 +223,7 @@ def write(self, data):
if getattr(self._thread, 'recurse_protection', False):
# Logger is logging back to this file, so stop recursin... |
crytic__slither-1444 | [Bug-Candidate]: slither-read-storage: storage array slots miscalculated in slot layout for shadowed vars
### Describe the issue:
Weird edge case, though this happens with `uint256[50] __gap` quite often.
If there are instances of shadowed vars, slither-read-storage fails to differentiate them in the storage layo... | [
{
"content": "import logging\nimport sys\nfrom math import floor\nfrom typing import Callable, Optional, Tuple, Union, List, Dict, Any\n\ntry:\n from web3 import Web3\n from eth_typing.evm import ChecksumAddress\n from eth_abi import decode_single, encode_abi\n from eth_utils import keccak\n from... | [
{
"content": "import logging\nimport sys\nfrom math import floor\nfrom typing import Callable, Optional, Tuple, Union, List, Dict, Any\n\ntry:\n from web3 import Web3\n from eth_typing.evm import ChecksumAddress\n from eth_abi import decode_single, encode_abi\n from eth_utils import keccak\n from... | diff --git a/slither/tools/read_storage/read_storage.py b/slither/tools/read_storage/read_storage.py
index fd881c05e6..bb662c4d5e 100644
--- a/slither/tools/read_storage/read_storage.py
+++ b/slither/tools/read_storage/read_storage.py
@@ -253,7 +253,7 @@ def get_all_storage_variables(self, func: Callable = None) -> Non... |
flairNLP__flair-800 | Trouble reproducing your GermEval 2014 results
Hi. I can't reproduce your F1 score of 84.65 for GermEval 2014. I used everything out of the box:
```
corpus = datasets.GERMEVAL()
tagger = flair.models.SequenceTagger.load('de-ner-germeval')
sentences = corpus.test.sentences
result, loss = tagger.evaluate(sentences)
... | [
{
"content": "import warnings\nimport logging\nfrom pathlib import Path\n\nimport torch.nn\nfrom torch.optim import Optimizer\nimport torch.nn.functional as F\nfrom torch.utils.data.dataset import Dataset\n\nimport flair.nn\nimport torch\n\nimport flair.embeddings\nfrom flair.data import Dictionary, Sentence, T... | [
{
"content": "import warnings\nimport logging\nfrom pathlib import Path\n\nimport torch.nn\nfrom torch.optim import Optimizer\nimport torch.nn.functional as F\nfrom torch.utils.data.dataset import Dataset\n\nimport flair.nn\nimport torch\n\nimport flair.embeddings\nfrom flair.data import Dictionary, Sentence, T... | diff --git a/flair/models/sequence_tagger_model.py b/flair/models/sequence_tagger_model.py
index 3d74fa39b9..ed28404523 100644
--- a/flair/models/sequence_tagger_model.py
+++ b/flair/models/sequence_tagger_model.py
@@ -840,11 +840,7 @@ def _fetch_model(model_name) -> str:
)
model_map["de-ner-germeva... |
jazzband__django-simple-history-301 | Change ugettext to ugettext_lazy?
I am using Django signals. This involves putting some imports into the app __init__ file.
After adding django-simple-history to one of my models, I get this error when starting the dev server:
`django.core.exceptions.AppRegistryNotReady: The translation infrastructure cannot be ... | [
{
"content": "from __future__ import unicode_literals\n\nimport copy\nimport importlib\nimport threading\n\nfrom django.conf import settings\nfrom django.contrib import admin\nfrom django.db import models, router\nfrom django.db.models.fields.proxy import OrderWrt\nfrom django.utils import six\nfrom django.util... | [
{
"content": "from __future__ import unicode_literals\n\nimport copy\nimport importlib\nimport threading\n\nfrom django.conf import settings\nfrom django.contrib import admin\nfrom django.db import models, router\nfrom django.db.models.fields.proxy import OrderWrt\nfrom django.utils import six\nfrom django.util... | diff --git a/AUTHORS.rst b/AUTHORS.rst
index 2d18303e2..e2f11046c 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -39,6 +39,7 @@ Authors
- Lucas Wiman
- Michael England
- Gregory Bataille
+- Jesse Shapiro
Background
==========
diff --git a/CHANGES.rst b/CHANGES.rst
index 41c5c0e50..de2c97fda 100644
--- a/CHANGES.r... |
huggingface__transformers-11672 | [Doc] Something wrong in description of 'DistilBertForSequenceClassification' in doc
I think the description of input_ids (one of the parameters) of [DistilBertForSequenceClassification](https://huggingface.co/transformers/model_doc/distilbert.html#distilbertforsequenceclassification) is not correct.
I think the input... | [
{
"content": "# coding=utf-8\n# Copyright 2019-present, the HuggingFace Inc. team, The Google AI Language Team and Facebook, 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... | [
{
"content": "# coding=utf-8\n# Copyright 2019-present, the HuggingFace Inc. team, The Google AI Language Team and Facebook, 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... | diff --git a/src/transformers/models/distilbert/modeling_distilbert.py b/src/transformers/models/distilbert/modeling_distilbert.py
index b30b3db90738..b3cb1a93cced 100755
--- a/src/transformers/models/distilbert/modeling_distilbert.py
+++ b/src/transformers/models/distilbert/modeling_distilbert.py
@@ -588,7 +588,7 @@ d... |
azavea__raster-vision-469 | Move to using master in azavea/models
We've been using a branch of azavea/models, which can cause confusion.
Before release, merge the `upgrade-sept-2018` branch into the main branch and update our install_deps script accordingly.
| [
{
"content": "import networkx as nx\n\nimport rastervision as rv\nfrom rastervision.utils.files import file_exists\n\nimport click\n\n\nclass CommandDAG:\n \"\"\" A directed acyclic graph of command definitions.\n \"\"\"\n\n def __init__(self,\n command_definitions,\n re... | [
{
"content": "import networkx as nx\n\nimport rastervision as rv\nfrom rastervision.utils.files import file_exists\n\nimport click\n\n\nclass CommandDAG:\n \"\"\" A directed acyclic graph of command definitions.\n \"\"\"\n\n def __init__(self,\n command_definitions,\n re... | diff --git a/rastervision/runner/command_dag.py b/rastervision/runner/command_dag.py
index 93685a60f..f3b8ccd64 100644
--- a/rastervision/runner/command_dag.py
+++ b/rastervision/runner/command_dag.py
@@ -45,7 +45,7 @@ def __init__(self,
with click.progressbar(
unsolved_sources,
- ... |
streamlit__streamlit-2512 | Ensure file uploader works with st.image and st.video
When developing, noticed that an exception had to be made with UploadedFile in media proto but during PR review testing, this didnt seem to throw an issue. However, testing it now throws an error. To be safe, make sure anywhere we're taking a BytesIO also takes in t... | [
{
"content": "# Copyright 2018-2020 Streamlit 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 a... | [
{
"content": "# Copyright 2018-2020 Streamlit 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 a... | diff --git a/lib/streamlit/elements/image_proto.py b/lib/streamlit/elements/image_proto.py
index 6272c7b9fbde..703670f74196 100644
--- a/lib/streamlit/elements/image_proto.py
+++ b/lib/streamlit/elements/image_proto.py
@@ -276,7 +276,7 @@ def image_to_url(
# BytesIO
# Note: This doesn't support SVG. We could ... |
freedomofpress__securedrop-7140 | Release SecureDrop 2.8.0
This is a tracking issue for the release of SecureDrop 2.8.0
Tentatively scheduled as follows:
**Pre-release announcement:** 2023-03-05
**Release date:** 2024-03-12
**Release manager:** @zenmonkeykstop
**Deputy release manager:** @legoktm
**Localization manager:** @cfm
**Communi... | [
{
"content": "__version__ = \"2.8.0~rc1\"\n",
"path": "securedrop/version.py"
},
{
"content": "import setuptools\n\nlong_description = \"The SecureDrop whistleblower platform.\"\n\nsetuptools.setup(\n name=\"securedrop-app-code\",\n version=\"2.8.0~rc1\",\n author=\"Freedom of the Press Fou... | [
{
"content": "__version__ = \"2.9.0~rc1\"\n",
"path": "securedrop/version.py"
},
{
"content": "import setuptools\n\nlong_description = \"The SecureDrop whistleblower platform.\"\n\nsetuptools.setup(\n name=\"securedrop-app-code\",\n version=\"2.9.0~rc1\",\n author=\"Freedom of the Press Fou... | diff --git a/changelog.md b/changelog.md
index 15d166249b..28d6cbf336 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,8 +1,60 @@
# Changelog
-## 2.8.0~rc1
+## 2.9.0~rc1
+## 2.8.0
+
+### Web applications
+* Updated strings based on translator feedback (#7057)
+* Improved redwood stream performance and testing ... |
pre-commit__pre-commit-998 | Failure to check out revision pre-commit v1.15.1
```console
$ cat .pre-commit-config.yaml
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v1.13.0
hooks:
- id: pyupgrade
$ pre-commit install-hooks
[INFO] Initializing environment for https://github.com/asottile/pyupgrade.
An unexpected... | [
{
"content": "from __future__ import unicode_literals\n\nimport contextlib\nimport io\nimport logging\nimport os.path\nimport sqlite3\nimport tempfile\n\nimport pre_commit.constants as C\nfrom pre_commit import file_lock\nfrom pre_commit import git\nfrom pre_commit.util import CalledProcessError\nfrom pre_commi... | [
{
"content": "from __future__ import unicode_literals\n\nimport contextlib\nimport io\nimport logging\nimport os.path\nimport sqlite3\nimport tempfile\n\nimport pre_commit.constants as C\nfrom pre_commit import file_lock\nfrom pre_commit import git\nfrom pre_commit.util import CalledProcessError\nfrom pre_commi... | diff --git a/pre_commit/store.py b/pre_commit/store.py
index 93a9cab32..d1d432dc1 100644
--- a/pre_commit/store.py
+++ b/pre_commit/store.py
@@ -138,7 +138,7 @@ def _get_result():
def _complete_clone(self, ref, git_cmd):
"""Perform a complete clone of a repository and its submodules """
- git_cmd... |
dotkom__onlineweb4-1155 | Extra field in rating results
Feedback rating results display the extra blank field after it was changed in #1129
| [
{
"content": "#-*- coding: utf-8 -*-\nimport json\n\nfrom collections import namedtuple, defaultdict\n\nfrom django.http import Http404, HttpResponse\nfrom django.shortcuts import render, redirect, get_object_or_404\nfrom django.template import RequestContext\nfrom django.contrib.contenttypes.models import Cont... | [
{
"content": "#-*- coding: utf-8 -*-\nimport json\n\nfrom collections import namedtuple, defaultdict\n\nfrom django.http import Http404, HttpResponse\nfrom django.shortcuts import render, redirect, get_object_or_404\nfrom django.template import RequestContext\nfrom django.contrib.contenttypes.models import Cont... | diff --git a/apps/feedback/views.py b/apps/feedback/views.py
index 498a889de..2041acd46 100644
--- a/apps/feedback/views.py
+++ b/apps/feedback/views.py
@@ -109,7 +109,7 @@ def get_chart_data(request, applabel, appmodel, object_id, feedback_id, token=Fa
rating_titles = []
answer_collection = dict()
answe... |
great-expectations__great_expectations-1576 | Use cleaner solution for non-truncating division in python 2
Prefer `from __future__ import division` to `1.*x/y`
| [
{
"content": "import copy\nimport importlib\nimport inspect\nimport logging\nimport os\nimport re\nfrom collections import OrderedDict\n\nfrom great_expectations.data_context.types.base import (\n DataContextConfig,\n DataContextConfigSchema,\n)\nfrom great_expectations.exceptions import (\n MissingCon... | [
{
"content": "import copy\nimport importlib\nimport inspect\nimport logging\nimport os\nimport re\nfrom collections import OrderedDict\n\nfrom great_expectations.data_context.types.base import (\n DataContextConfig,\n DataContextConfigSchema,\n)\nfrom great_expectations.exceptions import (\n MissingCon... | diff --git a/docs/how_to_guides/configuring_data_contexts.rst b/docs/how_to_guides/configuring_data_contexts.rst
index 2e26e38ef0d3..76c720780744 100644
--- a/docs/how_to_guides/configuring_data_contexts.rst
+++ b/docs/how_to_guides/configuring_data_contexts.rst
@@ -7,6 +7,6 @@ Configuring Data Contexts
:maxdepth: ... |
freedomofpress__securedrop-7074 | Release SecureDrop 2.7.0
This is a tracking issue for the release of SecureDrop 2.7.0
Tentatively scheduled as follows:
**Pre-release announcement:** ~10-19-2023~10-26-2023
**Release date:** ~10-26-2023~11-07-2023
**Release manager:** @zenmonkeykstop
**Deputy release manager:** @cfm
**Localization manager... | [
{
"content": "__version__ = \"2.7.0~rc1\"\n",
"path": "securedrop/version.py"
},
{
"content": "import setuptools\n\nlong_description = \"The SecureDrop whistleblower platform.\"\n\nsetuptools.setup(\n name=\"securedrop-app-code\",\n version=\"2.7.0~rc1\",\n author=\"Freedom of the Press Fou... | [
{
"content": "__version__ = \"2.8.0~rc1\"\n",
"path": "securedrop/version.py"
},
{
"content": "import setuptools\n\nlong_description = \"The SecureDrop whistleblower platform.\"\n\nsetuptools.setup(\n name=\"securedrop-app-code\",\n version=\"2.8.0~rc1\",\n author=\"Freedom of the Press Fou... | diff --git a/changelog.md b/changelog.md
index 22e98095c4..15d166249b 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,9 +1,55 @@
# Changelog
-## 2.7.0~rc1
+## 2.8.0~rc1
+## 2.7.0
+
+### Web applications
+* Use Sequoia and redwood instead of gnupg and pretty_bad_protocol for GPG operations (#6891, #6884, #69... |
internetarchive__openlibrary-5104 | Add OpenSearch so that open library can easily be searched from FireFox
### Describe the problem that you'd like solved
Right now, chrome automatically adds open library as a search engine using it's [tab search](https://www.chromium.org/tab-to-search) feature.
I like to use Firefox and right now it does not detect... | [
{
"content": "\"\"\"\nOpen Library Plugin.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import print_function\n\nimport requests\nimport web\nimport json\nimport os\nimport socket\nimport random\nimport datetime\nimport logging\nfrom time import time\n\nimport infogami\n\n# make sure infogam... | [
{
"content": "\"\"\"\nOpen Library Plugin.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import print_function\n\nimport requests\nimport web\nimport json\nimport os\nimport socket\nimport random\nimport datetime\nimport logging\nfrom time import time\n\nimport infogami\n\n# make sure infogam... | diff --git a/openlibrary/plugins/openlibrary/code.py b/openlibrary/plugins/openlibrary/code.py
index 0f6d531afcd..1541d16676d 100644
--- a/openlibrary/plugins/openlibrary/code.py
+++ b/openlibrary/plugins/openlibrary/code.py
@@ -351,6 +351,18 @@ def GET(self):
raise web.notfound()
+class opensearchxml(... |
streamlit__streamlit-6055 | New streamlit theme cannot have title and axis labels overridden with plotly charts
### Checklist
- [X] I have searched the [existing issues](https://github.com/streamlit/streamlit/issues) for similar issues.
- [X] I added a very descriptive title to this issue.
- [X] I have provided sufficient information below t... | [
{
"content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2... | [
{
"content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2... | diff --git a/e2e/scripts/st_plotly_chart.py b/e2e/scripts/st_plotly_chart.py
index 3afc3eb4e2ea..43f0e978a993 100644
--- a/e2e/scripts/st_plotly_chart.py
+++ b/e2e/scripts/st_plotly_chart.py
@@ -240,6 +240,14 @@
),
)
fig.update_layout(height=300, width=600)
+fig.update_layout(
+ font_family="Courier New",
+ ... |
freedomofpress__securedrop-6881 | Release SecureDrop 2.6.0
This is a tracking issue for the release of SecureDrop 2.6.0
Tentatively scheduled as follows:
**Pre-release announcement:** 06-15-2023
**Release date:** 06-22-2023
**Release manager:** @legoktm
**Deputy release manager:** @zenmonkeykstop
**Localization manager:** @cfm
**Communic... | [
{
"content": "__version__ = \"2.6.0~rc1\"\n",
"path": "securedrop/version.py"
},
{
"content": "import setuptools\n\nlong_description = \"The SecureDrop whistleblower platform.\"\n\nsetuptools.setup(\n name=\"securedrop-app-code\",\n version=\"2.6.0~rc1\",\n author=\"Freedom of the Press Fou... | [
{
"content": "__version__ = \"2.7.0~rc1\"\n",
"path": "securedrop/version.py"
},
{
"content": "import setuptools\n\nlong_description = \"The SecureDrop whistleblower platform.\"\n\nsetuptools.setup(\n name=\"securedrop-app-code\",\n version=\"2.7.0~rc1\",\n author=\"Freedom of the Press Fou... | diff --git a/changelog.md b/changelog.md
index be0e58e13b..67b36b55a1 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,6 +1,9 @@
# Changelog
-## 2.6.0~rc1
+## 2.7.0~rc1
+
+
+## 2.6.0
### Web applications
* Don't treat Tor Browser for Android as desktop Tor Browser (#6573)
@@ -12,18 +15,20 @@
* Add `<title>` b... |
mozmeao__basket-345 | Allow for pass-through of the language parameter for mozilla-foundation newsletter
Currently, signups for the mozilla foundation newsletter are hardcoded to be English only (https://github.com/mozmeao/basket/blob/master/basket/news/tasks.py#L1101), and we'd like to be able to get the user's language preference passed t... | [
{
"content": "import json\nimport logging\nfrom copy import deepcopy\nfrom datetime import datetime, timedelta\nfrom email.utils import formatdate\nfrom functools import wraps\nfrom hashlib import sha256\nfrom time import mktime, time\nfrom urllib.parse import urlencode\n\nfrom django.conf import settings\nfrom... | [
{
"content": "import json\nimport logging\nfrom copy import deepcopy\nfrom datetime import datetime, timedelta\nfrom email.utils import formatdate\nfrom functools import wraps\nfrom hashlib import sha256\nfrom time import mktime, time\nfrom urllib.parse import urlencode\n\nfrom django.conf import settings\nfrom... | diff --git a/basket/news/tasks.py b/basket/news/tasks.py
index bfb01774d..f32a8e9e6 100644
--- a/basket/news/tasks.py
+++ b/basket/news/tasks.py
@@ -1098,7 +1098,7 @@ def process_petition_signature(data):
if data.get('email_subscription', False):
upsert_user.delay(SUBSCRIBE, {
'token': user_d... |
OBOFoundry__OBOFoundry.github.io-2483 | JSON-LD context does not expand as intended
https://purl.obolibrary.org/meta/obo_context.jsonld
We can't have trailing underscores on expansions (and have it behave as expected). Sorry, I don't make the rules
More context here:
- https://github.com/w3c/json-ld-syntax/issues/329
These would all have to be mo... | [
{
"content": "#!/usr/bin/env python3\n\nimport argparse\nimport datetime\nimport logging\nimport sys\nimport time\nfrom contextlib import closing\nfrom json import dumps\n\nimport requests\nimport yaml\nfrom SPARQLWrapper import JSON, SPARQLWrapper\n\n__author__ = \"cjm\"\n\n\ndef main():\n parser = argparse... | [
{
"content": "#!/usr/bin/env python3\n\nimport argparse\nimport datetime\nimport logging\nimport sys\nimport time\nfrom contextlib import closing\nfrom json import dumps\n\nimport requests\nimport yaml\nfrom SPARQLWrapper import JSON, SPARQLWrapper\n\n__author__ = \"cjm\"\n\n\ndef main():\n parser = argparse... | diff --git a/registry/obo_context.jsonld b/registry/obo_context.jsonld
index 05d743b96..d7a700f59 100644
--- a/registry/obo_context.jsonld
+++ b/registry/obo_context.jsonld
@@ -1,260 +1,1028 @@
{
"@context": {
- "AAO": "http://purl.obolibrary.org/obo/AAO_",
- "ADO": "http://purl.obolibrary.org/obo/A... |
sktime__sktime-5744 | [BUG] using custom `extract_path` does not work in `sktime.datasets.load_UCR_UEA_dataset`
**Describe the bug**
<!--
A clear and concise description of what the bug is.
-->
Error occurs when I use my own download path.
**To Reproduce**
<!--
Add a Minimal, Complete, and Verifiable example (for more details, see ... | [
{
"content": "\"\"\"Utilities for loading panel datasets.\"\"\"\n\n__author__ = [\"Emiliathewolf\", \"TonyBagnall\", \"jasonlines\", \"achieveordie\"]\n\n__all__ = [\n \"generate_example_long_table\",\n \"make_multi_index_dataframe\",\n \"_load_dataset\",\n]\n\nimport os\nimport shutil\nimport tempfile... | [
{
"content": "\"\"\"Utilities for loading panel datasets.\"\"\"\n\n__author__ = [\"Emiliathewolf\", \"TonyBagnall\", \"jasonlines\", \"achieveordie\"]\n\n__all__ = [\n \"generate_example_long_table\",\n \"make_multi_index_dataframe\",\n \"_load_dataset\",\n]\n\nimport os\nimport shutil\nimport tempfile... | diff --git a/sktime/datasets/_data_io.py b/sktime/datasets/_data_io.py
index cf954961213..e5e11b8279e 100644
--- a/sktime/datasets/_data_io.py
+++ b/sktime/datasets/_data_io.py
@@ -241,6 +241,8 @@ def _load_dataset(name, split, return_X_y, return_type=None, extract_path=None):
if extract_path is None:
# d... |
freqtrade__freqtrade-4472 | Add ping support to rest_client.py
## Describe your environment
* Operating system: Linux
* Python Version: 3.8.6
* CCXT version:1.40.99
* Freqtrade Version: 2021.1
## Describe the enhancement
Add `ping` support to the `rest_client.py` script.
I'm using the `rest_client.py` script to monitor my... | [
{
"content": "#!/usr/bin/env python3\n\"\"\"\nSimple command line client into RPC commands\nCan be used as an alternate to Telegram\n\nShould not import anything from freqtrade,\nso it can be used as a standalone script.\n\"\"\"\n\nimport argparse\nimport inspect\nimport json\nimport logging\nimport re\nimport ... | [
{
"content": "#!/usr/bin/env python3\n\"\"\"\nSimple command line client into RPC commands\nCan be used as an alternate to Telegram\n\nShould not import anything from freqtrade,\nso it can be used as a standalone script.\n\"\"\"\n\nimport argparse\nimport inspect\nimport json\nimport logging\nimport re\nimport ... | diff --git a/scripts/rest_client.py b/scripts/rest_client.py
index b6e66cfa4a2..ecf961ddde4 100755
--- a/scripts/rest_client.py
+++ b/scripts/rest_client.py
@@ -174,6 +174,16 @@ def show_config(self):
"""
return self._get("show_config")
+ def ping(self):
+ """simple ping"""
+ config... |
cornellius-gp__gpytorch-1012 | [Bug] IndexError when GridInterpolationKernel wraps a PeriodicKernel
# 🐛 Bug
I tried to adapt the [KISS-GP for 1D data tutorial](https://gpytorch.readthedocs.io/en/latest/examples/02_Scalable_Exact_GPs/KISSGP_Regression.html#KISS-GP-for-1D-Data) to use a `PeriodicKernel` instead of an `RBFKernel`.
However, tryin... | [
{
"content": "#!/usr/bin/env python3\n\nimport math\n\nimport torch\n\nfrom ..constraints import Positive\nfrom .kernel import Kernel\n\n\nclass PeriodicKernel(Kernel):\n r\"\"\" Computes a covariance matrix based on the periodic kernel\n between inputs :math:`\\mathbf{x_1}` and :math:`\\mathbf{x_2}`:\n\n... | [
{
"content": "#!/usr/bin/env python3\n\nimport math\n\nimport torch\n\nfrom ..constraints import Positive\nfrom .kernel import Kernel\n\n\nclass PeriodicKernel(Kernel):\n r\"\"\" Computes a covariance matrix based on the periodic kernel\n between inputs :math:`\\mathbf{x_1}` and :math:`\\mathbf{x_2}`:\n\n... | diff --git a/gpytorch/kernels/periodic_kernel.py b/gpytorch/kernels/periodic_kernel.py
index e362e48fa..65c1f1b08 100644
--- a/gpytorch/kernels/periodic_kernel.py
+++ b/gpytorch/kernels/periodic_kernel.py
@@ -111,6 +111,6 @@ def forward(self, x1, x2, diag=False, **params):
x2_ = x2.div(self.period_length)
... |
pyca__cryptography-2845 | _ModuleWithDeprecations doesn't handle patching properly.
`_ModuleWithDeprecations` catches `__getattr__` and `__setattr__` to patch through to the underlying module, but does not intercept `__delattr__`. That means that if you're using something like `mock.patch`, the mock successfully lands in place, but cannot be re... | [
{
"content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport abc\nimport binascii\nimport inspect\n... | [
{
"content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport abc\nimport binascii\nimport inspect\n... | diff --git a/src/cryptography/utils.py b/src/cryptography/utils.py
index 53795732d27b..64a1c7854479 100644
--- a/src/cryptography/utils.py
+++ b/src/cryptography/utils.py
@@ -119,6 +119,13 @@ def __getattr__(self, attr):
def __setattr__(self, attr, value):
setattr(self._module, attr, value)
+ def __d... |
open-mmlab__mmdetection-7147 | Confusion matrix error
While trying to generate the confusion matrix with this command:
```
python tools/analysis_tools/confusion_matrix.py ./work_dirs/perception-types--D06-01-2022--T09-23-45/perception-types.py results.pkl ./temp --show
```
I ran into this error:
```
Traceback (most recent call last):
File ... | [
{
"content": "import argparse\nimport os\n\nimport matplotlib.pyplot as plt\nimport mmcv\nimport numpy as np\nfrom matplotlib.ticker import MultipleLocator\nfrom mmcv import Config, DictAction\nfrom mmcv.ops import nms\n\nfrom mmdet.core.evaluation.bbox_overlaps import bbox_overlaps\nfrom mmdet.datasets import ... | [
{
"content": "import argparse\nimport os\n\nimport matplotlib.pyplot as plt\nimport mmcv\nimport numpy as np\nfrom matplotlib.ticker import MultipleLocator\nfrom mmcv import Config, DictAction\nfrom mmcv.ops import nms\n\nfrom mmdet.core.evaluation.bbox_overlaps import bbox_overlaps\nfrom mmdet.datasets import ... | diff --git a/tools/analysis_tools/confusion_matrix.py b/tools/analysis_tools/confusion_matrix.py
index 71e4eb0d9fe..a2531ba81f9 100644
--- a/tools/analysis_tools/confusion_matrix.py
+++ b/tools/analysis_tools/confusion_matrix.py
@@ -207,7 +207,10 @@ def plot_confusion_matrix(confusion_matrix,
ax.text(
... |
python__mypy-14885 | If .mypy_cache exists "AttributeError: attribute 'mro' of 'TypeInfo' undefined"
<!--
Use this form only if mypy reports an "INTERNAL ERROR" and/or gives a traceback.
Please include the traceback and all other messages below (use `mypy --show-traceback`).
-->
**Crash Report**
If .mypy_cache doesn't exists `... | [
{
"content": "\"\"\"Fix up various things after deserialization.\"\"\"\n\nfrom __future__ import annotations\n\nfrom typing import Any\nfrom typing_extensions import Final\n\nfrom mypy.lookup import lookup_fully_qualified\nfrom mypy.nodes import (\n Block,\n ClassDef,\n Decorator,\n FuncDef,\n My... | [
{
"content": "\"\"\"Fix up various things after deserialization.\"\"\"\n\nfrom __future__ import annotations\n\nfrom typing import Any\nfrom typing_extensions import Final\n\nfrom mypy.lookup import lookup_fully_qualified\nfrom mypy.nodes import (\n Block,\n ClassDef,\n Decorator,\n FuncDef,\n My... | diff --git a/mypy/fixup.py b/mypy/fixup.py
index 7b0f5f433d72..01e4c0a716fc 100644
--- a/mypy/fixup.py
+++ b/mypy/fixup.py
@@ -170,7 +170,7 @@ def visit_class_def(self, c: ClassDef) -> None:
if isinstance(v, TypeVarType):
for value in v.values:
value.accept(self.type_f... |
ipython__ipython-1988 | Shutdown qtconsole problem?
The following from the windows console, after starting, then stopping a qtconsole session with cntrl-D,
C:\Users\burnett>ipython qtconsole --pylab
[IPKernelApp] To connect another client to this kernel, use:
[IPKernelApp] --existing kernel-5140.json
Traceback (most recent call last):
Fil... | [
{
"content": "\"\"\"The Qt MainWindow for the QtConsole\n\nThis is a tabbed pseudo-terminal of IPython sessions, with a menu bar for\ncommon actions.\n\nAuthors:\n\n* Evan Patterson\n* Min RK\n* Erik Tollerud\n* Fernando Perez\n* Bussonnier Matthias\n* Thomas Kluyver\n* Paul Ivanov\n\n\"\"\"\n\n#---------------... | [
{
"content": "\"\"\"The Qt MainWindow for the QtConsole\n\nThis is a tabbed pseudo-terminal of IPython sessions, with a menu bar for\ncommon actions.\n\nAuthors:\n\n* Evan Patterson\n* Min RK\n* Erik Tollerud\n* Fernando Perez\n* Bussonnier Matthias\n* Thomas Kluyver\n* Paul Ivanov\n\n\"\"\"\n\n#---------------... | diff --git a/IPython/frontend/qt/console/mainwindow.py b/IPython/frontend/qt/console/mainwindow.py
index 60c5bf03c07..1ad31977975 100644
--- a/IPython/frontend/qt/console/mainwindow.py
+++ b/IPython/frontend/qt/console/mainwindow.py
@@ -849,6 +849,8 @@ def toggle_confirm_restart_active_frontend(self):
self.con... |
searx__searx-2991 | Only a lower case "ip" displays the IP address
When the feature is enabled to show a user's IP address when "ip" is entered into the search bar, it only does so when it is all lowercase. Querying "IP" does not return an IP. This seems like a bug, apologies if this was intended.
Thanks
| [
{
"content": "'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed in the hope that it will b... | [
{
"content": "'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed in the hope that it will b... | diff --git a/searx/plugins/self_info.py b/searx/plugins/self_info.py
index 4fdfb4288e..74505c572d 100644
--- a/searx/plugins/self_info.py
+++ b/searx/plugins/self_info.py
@@ -31,7 +31,7 @@
def post_search(request, search):
if search.search_query.pageno > 1:
return True
- if search.search_query.query =... |
googleapis__python-bigquery-498 | Closing a connection tries to close already closed cursors
When closing a connection the library will call `.close()` on every cursor created for that connection, including closed ones. While the code works, it produces a lot of logs of error level, polluting the logs.
#### Environment details
- OS type and ver... | [
{
"content": "# Copyright 2017 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "# Copyright 2017 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/google/cloud/bigquery/dbapi/connection.py b/google/cloud/bigquery/dbapi/connection.py
index 300c77dc9..459fc82aa 100644
--- a/google/cloud/bigquery/dbapi/connection.py
+++ b/google/cloud/bigquery/dbapi/connection.py
@@ -76,7 +76,8 @@ def close(self):
self._bqstorage_client._transport.grpc_chan... |
getredash__redash-4682 | Clickhouse column name encoding problem
<!--
We use GitHub only for bug reports 🐛
Anything else should be posted to https://discuss.redash.io 👫
🚨For support, help & questions use https://discuss.redash.io/c/support
💡For feature requests & ideas use https://discuss.redash.io/c/feature-requests
**Found a... | [
{
"content": "import logging\nimport re\n\nimport requests\n\nfrom redash.query_runner import *\nfrom redash.utils import json_dumps, json_loads\n\nlogger = logging.getLogger(__name__)\n\n\nclass ClickHouse(BaseSQLQueryRunner):\n noop_query = \"SELECT 1\"\n\n @classmethod\n def configuration_schema(cls... | [
{
"content": "import logging\nimport re\n\nimport requests\n\nfrom redash.query_runner import *\nfrom redash.utils import json_dumps, json_loads\n\nlogger = logging.getLogger(__name__)\n\n\nclass ClickHouse(BaseSQLQueryRunner):\n noop_query = \"SELECT 1\"\n\n @classmethod\n def configuration_schema(cls... | diff --git a/redash/query_runner/clickhouse.py b/redash/query_runner/clickhouse.py
index 3302158ad2..b76f812b92 100644
--- a/redash/query_runner/clickhouse.py
+++ b/redash/query_runner/clickhouse.py
@@ -68,7 +68,7 @@ def _send_query(self, data, stream=False):
verify = self.configuration.get("verify", True)... |
conan-io__conan-2793 | tools.os_info.detect_windows_subsystem() should not raise
To help us debug your issue please explain:
*conanfile.py*
```
...
def build(self):
...
if tools.os_info.detect_windows_subsystem():
make = "make"
use_win_bash = True
```
commnad:
```
$ conan create . danitm... | [
{
"content": "import multiprocessing\nimport platform\nimport subprocess\nimport sys\n\nimport os\n\nfrom conans.client.tools.env import environment_append\nfrom conans.errors import ConanException\nfrom conans.model.version import Version\nfrom conans.util.log import logger\nfrom conans.client.tools import whi... | [
{
"content": "import multiprocessing\nimport platform\nimport subprocess\nimport sys\n\nimport os\n\nfrom conans.client.tools.env import environment_append\nfrom conans.errors import ConanException\nfrom conans.model.version import Version\nfrom conans.util.log import logger\nfrom conans.client.tools import whi... | diff --git a/conans/client/tools/oss.py b/conans/client/tools/oss.py
index d0713c0e593..014224365c9 100644
--- a/conans/client/tools/oss.py
+++ b/conans/client/tools/oss.py
@@ -262,7 +262,10 @@ def uname(options=None):
@staticmethod
def detect_windows_subsystem():
from conans.client.tools.win import ... |
googleapis__google-cloud-python-3825 | Incorrect link in documentation
There is an incorrect link at https://googlecloudplatform.github.io/google-cloud-python/latest/bigquery/dataset.html#google.cloud.bigquery.dataset.Dataset.delete. It links to https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/delete, but it should link to https://cloud.goog... | [
{
"content": "# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/bigquery/google/cloud/bigquery/dataset.py b/bigquery/google/cloud/bigquery/dataset.py
index d25f6747285f..645a68deada4 100644
--- a/bigquery/google/cloud/bigquery/dataset.py
+++ b/bigquery/google/cloud/bigquery/dataset.py
@@ -536,7 +536,7 @@ def delete(self, client=None):
"""API call: delete the ... |
biolab__orange3-text-435 | Saving a tab file after using 'import documents widget'
<!--
This is an issue template. Please fill in the relevant details in the
sections below.
-->
##### Text version
<!-- From menu _Options→Add-ons→Orange3-Text_ or code `orangecontrib.text.version.full_version` -->
0.6.0
##### Orange version
<!-- From... | [
{
"content": "import fnmatch\nimport logging\nimport os\nimport pathlib\nimport re\n\nfrom collections import namedtuple\nfrom types import SimpleNamespace as namespace\n\nimport numpy as np\n\nimport docx2txt\nfrom odf.opendocument import load\nfrom odf import text, teletype\n\nfrom pdfminer.pdfparser import P... | [
{
"content": "import fnmatch\nimport logging\nimport os\nimport pathlib\nimport re\n\nfrom collections import namedtuple\nfrom types import SimpleNamespace as namespace\n\nimport numpy as np\n\nimport docx2txt\nfrom odf.opendocument import load\nfrom odf import text, teletype\n\nfrom pdfminer.pdfparser import P... | diff --git a/orangecontrib/text/import_documents.py b/orangecontrib/text/import_documents.py
index 840a66366..e5feee97f 100644
--- a/orangecontrib/text/import_documents.py
+++ b/orangecontrib/text/import_documents.py
@@ -138,7 +138,7 @@ def read_file(self):
for lt_obj in layout:
if isinsta... |
beetbox__beets-1263 | Improve extractart to extract cover art of all albums for a query
The current `extractart` command of the `embedart` plugin is only able to extract the cover art of a single file. If the query the user specifies results in more than one item, only the art of the first one is extracted.
I would like to improve the comm... | [
{
"content": "# This file is part of beets.\n# Copyright 2015, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limita... | [
{
"content": "# This file is part of beets.\n# Copyright 2015, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limita... | diff --git a/beetsplug/embedart.py b/beetsplug/embedart.py
index 9ff4bf165b..6640c7e4ec 100644
--- a/beetsplug/embedart.py
+++ b/beetsplug/embedart.py
@@ -89,8 +89,9 @@ def embed_func(lib, opts, args):
def extract_func(lib, opts, args):
outpath = normpath(opts.outpath or 'cover')
- it... |
kivy__kivy-6279 | Screen already managed by another ScreenManager (kivy users)
as reported on kivy-users, the showcase demo crashes when using any of the ShaderTransitions.
## <bountysource-plugin>
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9558285-screen-already-managed-by-another-screenmanag... | [
{
"content": "'''Screen Manager\n==============\n\n.. image:: images/screenmanager.gif\n :align: right\n\n.. versionadded:: 1.4.0\n\nThe screen manager is a widget dedicated to managing multiple screens for your\napplication. The default :class:`ScreenManager` displays only one\n:class:`Screen` at a time and... | [
{
"content": "'''Screen Manager\n==============\n\n.. image:: images/screenmanager.gif\n :align: right\n\n.. versionadded:: 1.4.0\n\nThe screen manager is a widget dedicated to managing multiple screens for your\napplication. The default :class:`ScreenManager` displays only one\n:class:`Screen` at a time and... | diff --git a/kivy/uix/screenmanager.py b/kivy/uix/screenmanager.py
index 7518577ab9..7df8e0b0e7 100644
--- a/kivy/uix/screenmanager.py
+++ b/kivy/uix/screenmanager.py
@@ -497,6 +497,7 @@ def _remove_out_canvas(self, *args):
def add_screen(self, screen):
self.screen_in.pos = self.screen_out.pos
se... |
pantsbuild__pants-6499 | Allow `compatibility` attribute to be passed through to generated python targets
To do this:
- Override ` _copy_target_attributes` in `ApacheThriftPyGen` to include 'compatibility', so it looks like this:
```
@property
def _copy_target_attributes(self):
"""Propagate these attributes to the synthetic p... | [
{
"content": "# coding=utf-8\n# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nfrom builtins import open\n\nfrom pants.backend.co... | [
{
"content": "# coding=utf-8\n# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nfrom builtins import open\n\nfrom pants.backend.co... | diff --git a/src/python/pants/backend/codegen/thrift/python/apache_thrift_py_gen.py b/src/python/pants/backend/codegen/thrift/python/apache_thrift_py_gen.py
index 43353626c32..5e81ab9e91d 100644
--- a/src/python/pants/backend/codegen/thrift/python/apache_thrift_py_gen.py
+++ b/src/python/pants/backend/codegen/thrift/py... |
scoutapp__scout_apm_python-657 | Lower span limit to a debug level message
Currently we log these as a warn message, and can be quite loud for logging
https://github.com/scoutapp/scout_apm_python/blob/master/src/scout_apm/core/tracked_request.py#L92-L96
| [
{
"content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport datetime as dt\nimport logging\nfrom contextlib import contextmanager\nfrom uuid import uuid4\n\nfrom scout_apm.core import backtrace, objtrace\nfrom scout_apm.core.agent.commands import Ba... | [
{
"content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport datetime as dt\nimport logging\nfrom contextlib import contextmanager\nfrom uuid import uuid4\n\nfrom scout_apm.core import backtrace, objtrace\nfrom scout_apm.core.agent.commands import Ba... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6eb18930..9603c25c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,14 +1,16 @@
# Changelog
## Pending
-- Improved debug logging for requests. It now includes some summary
- information about the request.
- ([Issue #654](https://github.com/scoutapp/scout_apm_python... |
strawberry-graphql__strawberry-2503 | `strawberry.experimental.pydantic.type` doesn't reach the custom `resolve_reference` method
<!-- Provide a general summary of the bug in the title above. -->
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
<!--- Anything on lines wrapped in comments like these w... | [
{
"content": "from __future__ import annotations\n\nimport dataclasses\nimport sys\nimport warnings\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Dict,\n List,\n Optional,\n Sequence,\n Set,\n Type,\n cast,\n)\n\nfrom graphql import GraphQLResolveInfo\nfrom pydantic.f... | [
{
"content": "from __future__ import annotations\n\nimport dataclasses\nimport sys\nimport warnings\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Dict,\n List,\n Optional,\n Sequence,\n Set,\n Type,\n cast,\n)\n\nfrom graphql import GraphQLResolveInfo\nfrom pydantic.f... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..d0ae0bcaf3
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,29 @@
+Release type: patch
+
+Fix missing custom `resolve_reference` for using pydantic with federation
+
+i.e:
+
+```python
+import typing
+from pydantic import BaseModel
+import strawberry
... |
pypi__warehouse-4325 | Expose requires_python for each release in JSON API
The following JSON:
https://pypi.python.org/pypi/astropy/json
or:
https://pypi.io/pypi/astropy/json
includes the following for the latest release:
```
"requires_python": ">=3.5",
```
but it would be really helpful to have this for all rele... | [
{
"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/legacy/api/test_json.py b/tests/unit/legacy/api/test_json.py
index f14c1d2f6d3f..ddba7c9ec1b3 100644
--- a/tests/unit/legacy/api/test_json.py
+++ b/tests/unit/legacy/api/test_json.py
@@ -263,6 +263,7 @@ def test_detail_renders(self, pyramid_config, db_request, db_session):
... |
pyqtgraph__pyqtgraph-2305 | Options passed PenParameter are not applied
### Short description
`pTypes.PenParameter(name="Line Style", width=5)` should initialize the wrapped pen with `width` of 5, but it remains at 1. Same applies for other style options.
### Tested environment(s)
* PyQtGraph version: 0.12.4
* Qt Python binding: PyQt6
... | [
{
"content": "import re\nfrom contextlib import ExitStack\n\nfrom . import GroupParameterItem\nfrom .basetypes import GroupParameter, Parameter, ParameterItem\nfrom .qtenum import QtEnumParameter\nfrom ... import functions as fn\nfrom ...Qt import QtCore\nfrom ...SignalProxy import SignalProxy\nfrom ...widgets.... | [
{
"content": "import re\nfrom contextlib import ExitStack\n\nfrom . import GroupParameterItem\nfrom .basetypes import GroupParameter, Parameter, ParameterItem\nfrom .qtenum import QtEnumParameter\nfrom ... import functions as fn\nfrom ...Qt import QtCore\nfrom ...SignalProxy import SignalProxy\nfrom ...widgets.... | diff --git a/pyqtgraph/parametertree/parameterTypes/pen.py b/pyqtgraph/parametertree/parameterTypes/pen.py
index 574f77943d..87628f60ed 100644
--- a/pyqtgraph/parametertree/parameterTypes/pen.py
+++ b/pyqtgraph/parametertree/parameterTypes/pen.py
@@ -41,7 +41,7 @@ class PenParameter(GroupParameter):
itemClass = Pe... |
Flexget__Flexget-3935 | BUG: Unhandled error in plugin convert_magnet: 'save_path must be set in add_torrent_params'
### Expected behaviour:
<!---
Should be convert the magnet URI to torrent file
--->
### Actual behaviour:
### Steps to reproduce:
- Step 1: flexget execute
#### Config:
```yaml
templates:
torrent:
t... | [
{
"content": "import os\nimport time\nfrom urllib.parse import quote\n\nfrom loguru import logger\n\nfrom flexget import plugin\nfrom flexget.event import event\nfrom flexget.utils.pathscrub import pathscrub\nfrom flexget.utils.tools import parse_timedelta\n\nlogger = logger.bind(name='convert_magnet')\n\n\ncla... | [
{
"content": "import os\nimport time\nfrom urllib.parse import quote\n\nfrom loguru import logger\n\nfrom flexget import plugin\nfrom flexget.event import event\nfrom flexget.utils.pathscrub import pathscrub\nfrom flexget.utils.tools import parse_timedelta\n\nlogger = logger.bind(name='convert_magnet')\n\n\ncla... | diff --git a/flexget/components/bittorrent/convert_magnet.py b/flexget/components/bittorrent/convert_magnet.py
index 6af7321a95..f5ca5bc0c4 100644
--- a/flexget/components/bittorrent/convert_magnet.py
+++ b/flexget/components/bittorrent/convert_magnet.py
@@ -44,6 +44,7 @@ def magnet_to_torrent(self, magnet_uri, destina... |
Theano__Theano-6225 | `.../c_code/dimshuffle.c` missing from setup.py?
A Lasagne user just reported that
```bash
pip install --upgrade --no-deps https://github.com/Theano/Theano/archive/master.zip
```
lead to the following error (I assume after installation, when trying to import it):
```
FileNotFoundError: [Errno 2] No such file or d... | [
{
"content": "#!/usr/bin/env python\n#\n# TODO:\n# * Figure out how to compile and install documentation automatically\n# * Add download_url\n\nfrom __future__ import absolute_import, print_function, division\nimport os\nimport subprocess\nimport codecs\nfrom fnmatch import fnmatchcase\nfrom distutils.util... | [
{
"content": "#!/usr/bin/env python\n#\n# TODO:\n# * Figure out how to compile and install documentation automatically\n# * Add download_url\n\nfrom __future__ import absolute_import, print_function, division\nimport os\nimport subprocess\nimport codecs\nfrom fnmatch import fnmatchcase\nfrom distutils.util... | diff --git a/setup.py b/setup.py
index 5389ab80cf5..b60884b4acd 100755
--- a/setup.py
+++ b/setup.py
@@ -169,7 +169,7 @@ def do_setup():
},
package_data={
'': ['*.txt', '*.rst', '*.cu', '*.cuh', '*.c', '*.sh', '*.pkl',
- '*.h', '*.cpp', 'ChangeLog'],
+ ... |
ethereum__web3.py-2941 | TypeError: Could not format invalid type of None for field 'withdrawals' on 6.2.0
* Version: 6.2.0
* Python: 3.11
* OS: linux
* `pip freeze` output
```
aiobotocore==2.5.0
aiohttp==3.8.4
aioitertools==0.11.0
aiosignal==1.3.1
anyio==3.6.2
async-timeout==4.0.2
attrs==23.1.0
base58==2.1.1
bitarray==2.7.3
bo... | [
{
"content": "import codecs\nimport operator\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Collection,\n Dict,\n Iterable,\n NoReturn,\n Tuple,\n Union,\n cast,\n)\n\nfrom eth_abi import (\n abi,\n)\nfrom eth_typing import (\n HexStr,\n)\nfrom eth_utils import (... | [
{
"content": "import codecs\nimport operator\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Collection,\n Dict,\n Iterable,\n NoReturn,\n Tuple,\n Union,\n cast,\n)\n\nfrom eth_abi import (\n abi,\n)\nfrom eth_typing import (\n HexStr,\n)\nfrom eth_utils import (... | diff --git a/newsfragments/2941.bugfix.rst b/newsfragments/2941.bugfix.rst
new file mode 100644
index 0000000000..2edefe319a
--- /dev/null
+++ b/newsfragments/2941.bugfix.rst
@@ -0,0 +1 @@
+Add check for null withdrawal field on get_block response
diff --git a/web3/_utils/method_formatters.py b/web3/_utils/method_forma... |
paperless-ngx__paperless-ngx-1942 | [BUG] Error while consume document from consume folder - CELERY
### Description
I have problem with Dev branch with Celery. When Paperless consume document from folder with CONSUMER_SUBDIRS_AS_TAGS=true, error is occure: Object of type set is not JSON serializable
If I comment line 97 in src/documents/management/c... | [
{
"content": "import logging\nimport os\nfrom pathlib import Path\nfrom pathlib import PurePath\nfrom threading import Event\nfrom threading import Thread\nfrom time import monotonic\nfrom time import sleep\nfrom typing import Final\n\nfrom django.conf import settings\nfrom django.core.management.base import Ba... | [
{
"content": "import logging\nimport os\nfrom pathlib import Path\nfrom pathlib import PurePath\nfrom threading import Event\nfrom threading import Thread\nfrom time import monotonic\nfrom time import sleep\nfrom typing import Final\n\nfrom django.conf import settings\nfrom django.core.management.base import Ba... | diff --git a/src/documents/management/commands/document_consumer.py b/src/documents/management/commands/document_consumer.py
index 3dce17263e2..a405f590cb0 100644
--- a/src/documents/management/commands/document_consumer.py
+++ b/src/documents/management/commands/document_consumer.py
@@ -94,7 +94,7 @@ def _consume(file... |
cloud-custodian__cloud-custodian-5879 | AWS common filters page has a link pointing to 404 link
On this page: https://cloudcustodian.io/docs/aws/resources/aws-common-filters.html#aws-common-filters-config-compliance
There is a bit.ly link: https://bit.ly/2mblVpq
The bit.ly link points to a non-existent capitalone.github.io link (throws 404): http://cap... | [
{
"content": "# Copyright 2018 Capital One Services, 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 b... | [
{
"content": "# Copyright 2018 Capital One Services, 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 b... | diff --git a/c7n/filters/config.py b/c7n/filters/config.py
index ee8ea0b58f1..3acca0b667e 100644
--- a/c7n/filters/config.py
+++ b/c7n/filters/config.py
@@ -45,7 +45,7 @@ class ConfigCompliance(Filter):
- custodian-ec2-tags-required
Also note, custodian has direct support for deploying policies a... |
frappe__frappe-14121 | Problems while using translations via Globe Symbol
## Description / Context information (for bug reports)
There are 2 issues -
**Issue - 1**
While updating translations using Globe Symbol, system generates duplicate rows of translations for records added in Description
https://user-images.githubusercont... | [
{
"content": "# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and Contributors\n# MIT License. See license.txt\n\nfrom __future__ import unicode_literals, print_function\n\nfrom six import iteritems, text_type, string_types, PY2\n\n\"\"\"\n\tfrappe.translate\n\t~~~~~~~~~~~~~~~~\n\n\tTranslation tools for fr... | [
{
"content": "# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and Contributors\n# MIT License. See license.txt\n\nfrom __future__ import unicode_literals, print_function\n\nfrom six import iteritems, text_type, string_types, PY2\n\n\"\"\"\n\tfrappe.translate\n\t~~~~~~~~~~~~~~~~\n\n\tTranslation tools for fr... | diff --git a/frappe/public/js/frappe/form/controls/base_control.js b/frappe/public/js/frappe/form/controls/base_control.js
index 1f2f9b58c3e8..53e378313c0d 100644
--- a/frappe/public/js/frappe/form/controls/base_control.js
+++ b/frappe/public/js/frappe/form/controls/base_control.js
@@ -114,7 +114,7 @@ frappe.ui.form.Co... |
pymodbus-dev__pymodbus-1850 | Invalid `stopbits=0` for serial connection
In the following [docstring](https://github.com/pymodbus-dev/pymodbus/blob/8d3e36fe78ed5ec8bcf94b024df1125ee2b1f015/pymodbus/client/serial.py#L121) valid values for stop bits is 0-2:
```
:param stopbits: Number of stop bits 0-2.
```
Is this a typo? I don't think you can ha... | [
{
"content": "\"\"\"Modbus client async serial communication.\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport time\nfrom functools import partial\nfrom typing import Any\n\nfrom pymodbus.client.base import ModbusBaseClient\nfrom pymodbus.exceptions import ConnectionException\nfrom pymodbus.f... | [
{
"content": "\"\"\"Modbus client async serial communication.\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport time\nfrom functools import partial\nfrom typing import Any\n\nfrom pymodbus.client.base import ModbusBaseClient\nfrom pymodbus.exceptions import ConnectionException\nfrom pymodbus.f... | diff --git a/pymodbus/client/serial.py b/pymodbus/client/serial.py
index a32636082..c379e31da 100644
--- a/pymodbus/client/serial.py
+++ b/pymodbus/client/serial.py
@@ -34,7 +34,7 @@ class AsyncModbusSerialClient(ModbusBaseClient, asyncio.Protocol):
:param baudrate: Bits per second.
:param bytesize: Number of... |
numpy__numpy-16730 | f2py undefined symbol with PGI fortran compiler and MPI calls
<!-- Please describe the issue in detail here, and fill in the fields below -->
I am trying to wrap fortran code with f2py. The fortran code includes some MPI calls and is compiled with the PGI compiler.
When importing the wrapped module in python I get th... | [
{
"content": "# http://www.pgroup.com\nimport sys\n\nfrom numpy.distutils.fcompiler import FCompiler\nfrom sys import platform\nfrom os.path import join, dirname, normpath\n\ncompilers = ['PGroupFCompiler', 'PGroupFlangCompiler']\n\n\nclass PGroupFCompiler(FCompiler):\n\n compiler_type = 'pg'\n descriptio... | [
{
"content": "# http://www.pgroup.com\nimport sys\n\nfrom numpy.distutils.fcompiler import FCompiler\nfrom sys import platform\nfrom os.path import join, dirname, normpath\n\ncompilers = ['PGroupFCompiler', 'PGroupFlangCompiler']\n\n\nclass PGroupFCompiler(FCompiler):\n\n compiler_type = 'pg'\n descriptio... | diff --git a/doc/release/upcoming_changes/16730.improvement.rst b/doc/release/upcoming_changes/16730.improvement.rst
new file mode 100644
index 000000000000..44ec03cafbea
--- /dev/null
+++ b/doc/release/upcoming_changes/16730.improvement.rst
@@ -0,0 +1,9 @@
+Use f90 compiler specified in command line args
+------------... |
facebookresearch__ParlAI-1174 | Wrong error message in tfidf retriever
https://github.com/facebookresearch/ParlAI/blob/24b49f1c6921cd2a80f4c99a980c438b318e2b5a/parlai/agents/tfidf_retriever/tfidf_retriever.py#L14
should check other places as well
(should be `pip install scikit-learn`)
| [
{
"content": "#!/usr/bin/env python3\n\n# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n# This source code is licensed under the BSD-style license found in the\n# LICENSE file in the root directory of this source tree. An additional grant\n# of patent rights can be found in the PATENTS fil... | [
{
"content": "#!/usr/bin/env python3\n\n# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n# This source code is licensed under the BSD-style license found in the\n# LICENSE file in the root directory of this source tree. An additional grant\n# of patent rights can be found in the PATENTS fil... | diff --git a/parlai/agents/tfidf_retriever/tfidf_retriever.py b/parlai/agents/tfidf_retriever/tfidf_retriever.py
index 4cc17c3b780..5986101a2c2 100644
--- a/parlai/agents/tfidf_retriever/tfidf_retriever.py
+++ b/parlai/agents/tfidf_retriever/tfidf_retriever.py
@@ -13,7 +13,7 @@
import unicodedata # noqa: F401
... |
deepchecks__deepchecks-968 | [FEAT][CV] Add conditions to checks missing conditions
Some checks are missing conditions:
- [x] Heatmap
- [x] Image Drift
- [x] Train Test Drift
- [x] Robustness
| [
{
"content": "# ----------------------------------------------------------------------------\n# Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com)\n#\n# This file is part of Deepchecks.\n# Deepchecks is distributed under the terms of the GNU Affero General\n# Public License (version 3 or later).\n#... | [
{
"content": "# ----------------------------------------------------------------------------\n# Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com)\n#\n# This file is part of Deepchecks.\n# Deepchecks is distributed under the terms of the GNU Affero General\n# Public License (version 3 or later).\n#... | diff --git a/deepchecks/vision/checks/distribution/train_test_label_drift.py b/deepchecks/vision/checks/distribution/train_test_label_drift.py
index 5632e619c5..a5077b9b83 100644
--- a/deepchecks/vision/checks/distribution/train_test_label_drift.py
+++ b/deepchecks/vision/checks/distribution/train_test_label_drift.py
@... |
conda__conda-build-957 | Regression regarding `[]` in jinja
Running into a regression when using the `[]` operator in jinja. This functionality was added by @stuarteberg in this PR ( https://github.com/conda/conda-build/pull/771 ). However, this appears to now be broken in `conda-build` 1.20.2. The current workaround would be to downgrade to `... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport os\nimport re\nimport sys\nfrom os.path import isdir, isfile, join\n\nfrom conda.compat import iteritems, PY3, text_type\nfrom conda.utils import memoized, md5_file\nimport conda.config as cc\nfrom conda.resolve import Matc... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport os\nimport re\nimport sys\nfrom os.path import isdir, isfile, join\n\nfrom conda.compat import iteritems, PY3, text_type\nfrom conda.utils import memoized, md5_file\nimport conda.config as cc\nfrom conda.resolve import Matc... | diff --git a/conda_build/metadata.py b/conda_build/metadata.py
index 282c03325b..9aadf8bbd9 100644
--- a/conda_build/metadata.py
+++ b/conda_build/metadata.py
@@ -69,7 +69,15 @@ def ns_cfg():
return d
-sel_pat = re.compile(r'(.+?)\s*(#.*)?\[(.+)\](?(2).*)$')
+# Selectors must be either:
+# - at end of the line... |
pre-commit__pre-commit-3168 | Hook fail_fast stops pre-commit if any prior hook fails
### search you tried in the issue tracker
fail fast hook
### describe your issue
#### Description
Hook `fail_fast` says in the documentation that pre-commit will stop if this hook fails, which suggests it is referring only to the present hook. The actu... | [
{
"content": "from __future__ import annotations\n\nimport argparse\nimport contextlib\nimport functools\nimport logging\nimport os\nimport re\nimport subprocess\nimport time\nimport unicodedata\nfrom collections.abc import Generator\nfrom collections.abc import Iterable\nfrom collections.abc import MutableMapp... | [
{
"content": "from __future__ import annotations\n\nimport argparse\nimport contextlib\nimport functools\nimport logging\nimport os\nimport re\nimport subprocess\nimport time\nimport unicodedata\nfrom collections.abc import Generator\nfrom collections.abc import Iterable\nfrom collections.abc import MutableMapp... | diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py
index 076f16d8f..2a08dff0d 100644
--- a/pre_commit/commands/run.py
+++ b/pre_commit/commands/run.py
@@ -298,7 +298,7 @@ def _run_hooks(
verbose=args.verbose, use_color=args.color,
)
retval |= current_retval
- if r... |
Gallopsled__pwntools-647 | Don't fail on unknown (numeric) ELF segment types
Some executables can have unknown/non-standard ELF segment types (like `PT_PAX_FLAGS`) which show up as a numeric `p_type`, this makes the ELF class fail upon loading one of those files.
This uses an exact match (on `'PT_GNU_STACK'` and `'PT_GNU_RELRO'`) rather than a ... | [
{
"content": "\"\"\"Exposes functionality for manipulating ELF files\n\"\"\"\nimport mmap\nimport os\nimport subprocess\nfrom collections import namedtuple\n\nfrom elftools.elf.constants import E_FLAGS\nfrom elftools.elf.constants import P_FLAGS\nfrom elftools.elf.constants import SHN_INDICES\nfrom elftools.elf... | [
{
"content": "\"\"\"Exposes functionality for manipulating ELF files\n\"\"\"\nimport mmap\nimport os\nimport subprocess\nfrom collections import namedtuple\n\nfrom elftools.elf.constants import E_FLAGS\nfrom elftools.elf.constants import P_FLAGS\nfrom elftools.elf.constants import SHN_INDICES\nfrom elftools.elf... | diff --git a/pwnlib/elf/elf.py b/pwnlib/elf/elf.py
index bbdb078c6..144eeaa66 100644
--- a/pwnlib/elf/elf.py
+++ b/pwnlib/elf/elf.py
@@ -736,7 +736,7 @@ def nx(self):
# Can't call self.executable_segments because of dependency loop.
exec_seg = [s for s in self.segments if s.header.p_flags & P_FLAGS.... |
larq__larq-621 | build() call not forwarded via base class
My use case: I develop a custom quantizer class, which derives from *larq.quantizers.BaseQuantizer* and which is then used like any other pre-defined quantizer. The custom quantizer defines a *build()* method.
Inside [BaseQuantizer.build](https://github.com/larq/larq/blob/09... | [
{
"content": "\"\"\"A Quantizer defines the way of transforming a full precision input to a\nquantized output and the pseudo-gradient method used for the backwards pass.\n\nQuantizers can either be used through quantizer arguments that are supported\nfor Larq layers, such as `input_quantizer` and `kernel_quanti... | [
{
"content": "\"\"\"A Quantizer defines the way of transforming a full precision input to a\nquantized output and the pseudo-gradient method used for the backwards pass.\n\nQuantizers can either be used through quantizer arguments that are supported\nfor Larq layers, such as `input_quantizer` and `kernel_quanti... | diff --git a/larq/quantizers.py b/larq/quantizers.py
index 488a35c5..075dfe04 100644
--- a/larq/quantizers.py
+++ b/larq/quantizers.py
@@ -157,6 +157,7 @@ def __init__(self, *args, metrics=None, **kwargs):
def build(self, input_shape):
if self._custom_metrics and "flip_ratio" in self._custom_metrics:
... |
saleor__saleor-3928 | Broken logo in docs
### Steps to reproduce the problem
1. https://saleor.readthedocs.io/en/latest/gettingstarted.html
2.

**System information**
Operating system: OSX
Browser... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# saleor documentation build configuration file, created by\n# sphinx-quickstart on Tue Jan 5 11:54:57 2016.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# saleor documentation build configuration file, created by\n# sphinx-quickstart on Tue Jan 5 11:54:57 2016.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b4ecb3a794f..8bba28b1a36 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -38,6 +38,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Add translation interface - #3884 by @dominik-zeglen
- Drop support for Django 2.1 and Django 1.11 (... |
networkx__networkx-7471 | `algorithms.bridges.bridges()` does a redundant copy of graph
This is the code of the `bridges` function:
```python
def bridges(G, root=None):
multigraph = G.is_multigraph()
H = nx.Graph(G) if multigraph else G
chains = nx.chain_decomposition(H, root=root)
chain_edges = set(chain.from_iterable(c... | [
{
"content": "\"\"\"Bridge-finding algorithms.\"\"\"\nfrom itertools import chain\n\nimport networkx as nx\nfrom networkx.utils import not_implemented_for\n\n__all__ = [\"bridges\", \"has_bridges\", \"local_bridges\"]\n\n\n@not_implemented_for(\"directed\")\n@nx._dispatchable\ndef bridges(G, root=None):\n \"... | [
{
"content": "\"\"\"Bridge-finding algorithms.\"\"\"\nfrom itertools import chain\n\nimport networkx as nx\nfrom networkx.utils import not_implemented_for\n\n__all__ = [\"bridges\", \"has_bridges\", \"local_bridges\"]\n\n\n@not_implemented_for(\"directed\")\n@nx._dispatchable\ndef bridges(G, root=None):\n \"... | diff --git a/networkx/algorithms/bridges.py b/networkx/algorithms/bridges.py
index e076a256cb8..74a31bf2af7 100644
--- a/networkx/algorithms/bridges.py
+++ b/networkx/algorithms/bridges.py
@@ -70,7 +70,6 @@ def bridges(G, root=None):
H = nx.Graph(G) if multigraph else G
chains = nx.chain_decomposition(H, root... |
edgedb__edgedb-5499 | ISE: Relation edgedbpub.<uuid> does not exist during inserts
EdgeDB 3.0-dev.7456+local (repl 3.0.0-dev)
Not sure what is causing this.
```
Type \help for help, \quit to quit.
edgedb> insert Test3;
{default::Test3 {id: 7e4d79ae-daf1-11ed-b024-a75a898789c5}}
edgedb> insert Test4 { test3ref := (select Test3 limit ... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB 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... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB 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... | diff --git a/edb/schema/links.py b/edb/schema/links.py
index 504db44d14b..61591449205 100644
--- a/edb/schema/links.py
+++ b/edb/schema/links.py
@@ -139,7 +139,8 @@ def scalar(self) -> bool:
def has_user_defined_properties(self, schema: s_schema.Schema) -> bool:
return bool([p for p in self.get_pointers... |
feast-dev__feast-2111 | Feast setup script returns "'charmap' codec can't decode byte" on Windows
## Expected Behavior
`pip install -e "sdk/python[ci]"` must succeed and install feast package in editable mode.
## Current Behavior
Installation error:
```
Obtaining file:///C:/Users/<username>/Downloads/feast/sdk/python
Installin... | [
{
"content": "# Copyright 2019 The Feast 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | [
{
"content": "# Copyright 2019 The Feast 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | diff --git a/sdk/python/setup.py b/sdk/python/setup.py
index 47fa1d481c9..08a4a4b8a77 100644
--- a/sdk/python/setup.py
+++ b/sdk/python/setup.py
@@ -126,7 +126,7 @@
# README file from Feast repo root directory
README_FILE = os.path.join(repo_root, "README.md")
-with open(README_FILE, "r") as f:
+with open(README_FI... |
pymodbus-dev__pymodbus-947 | AttributeError: 'NoneType' object has no attribute 'cancel' in pymodbus.server.asyncio
### Versions
* Python: 3.7
* OS: MacOS 10.15.1
* Pymodbus: 2.3.0
### Pymodbus Specific
* Server: tcp - asyncio
### Description
Launching a local asyncio server with verbose logging, connecting to it, and then disconnec... | [
{
"content": "\"\"\"Implementation of a Threaded Modbus Server.\"\"\"\n# pylint: disable=missing-type-doc\nimport logging\nimport warnings\nfrom binascii import b2a_hex\nimport traceback\n\nimport asyncio\nimport serial\nfrom serial_asyncio import create_serial_connection\n\nfrom pymodbus.constants import Defau... | [
{
"content": "\"\"\"Implementation of a Threaded Modbus Server.\"\"\"\n# pylint: disable=missing-type-doc\nimport logging\nimport warnings\nfrom binascii import b2a_hex\nimport traceback\n\nimport asyncio\nimport serial\nfrom serial_asyncio import create_serial_connection\n\nfrom pymodbus.constants import Defau... | diff --git a/pymodbus/server/async_io.py b/pymodbus/server/async_io.py
index e44ccece1..e25fcd471 100755
--- a/pymodbus/server/async_io.py
+++ b/pymodbus/server/async_io.py
@@ -115,7 +115,8 @@ def connection_lost(self, call_exc):
socket itself will result in this call.
"""
try:
- s... |
zestedesavoir__zds-site-756 | Icone d'un tuto/article absente
L'icone d'un tuto ou d'un article n'est pas visible dans le tuto/article en pleine lecture.
| [
{
"content": "# coding: utf-8\n\nfrom datetime import datetime\nfrom operator import attrgetter\nimport json\nimport os\nimport shutil\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import login_required, permission_required\nfrom django.contrib.aut... | [
{
"content": "# coding: utf-8\n\nfrom datetime import datetime\nfrom operator import attrgetter\nimport json\nimport os\nimport shutil\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import login_required, permission_required\nfrom django.contrib.aut... | diff --git a/templates/article/member/view.html b/templates/article/member/view.html
index 4446898f8d..41f4fbd821 100644
--- a/templates/article/member/view.html
+++ b/templates/article/member/view.html
@@ -35,18 +35,17 @@
{% block headline %}
- <h1 {% if article.thumbnail %}class="illu"{% endif %}>
- {%... |
Nitrate__Nitrate-415 | import xml says Worng xml_version
import xml in not working says worng xml_version 1.1
i export the test case and generate xml and try to import same not work
thanks in advance
| [
{
"content": "# Django settings for product env.\n\nfrom tcms.settings.common import * # noqa\n\n# Debug settings\nDEBUG = False\nTEMPLATE_DEBUG = DEBUG\n\n# Database settings\nDATABASES = {\n 'default': {\n 'ENGINE': SUPPORTED_DB_ENGINES[DB_ENGINE],\n 'NAME': env.get('NITRATE_DB_NAME', 'nitra... | [
{
"content": "# Django settings for product env.\n\nfrom tcms.settings.common import * # noqa\n\n# Debug settings\nDEBUG = False\nTEMPLATE_DEBUG = DEBUG\n\n# Database settings\nDATABASES = {\n 'default': {\n 'ENGINE': SUPPORTED_DB_ENGINES[DB_ENGINE],\n 'NAME': env.get('NITRATE_DB_NAME', 'nitra... | diff --git a/docker/released/product.py b/docker/released/product.py
index 23d40665..05d0d509 100644
--- a/docker/released/product.py
+++ b/docker/released/product.py
@@ -44,7 +44,6 @@
# added for nitrate3.4 compatibility
DEFAULT_GROUPS = ['default']
-TESTOPIA_XML_VERSION = '1.0'
ADMINS = (
)
diff --git a/src/t... |
openstates__openstates-scrapers-1441 | MA: Where are the Republicans?
All state legislators in MA are in either the Democratic party or Other. It's a nice fantasy but it's not reality!
| [
{
"content": "import re\n\nimport lxml.html\nfrom billy.scrape.legislators import LegislatorScraper, Legislator\n\n\ndef clean_district(district):\n mappings = {\n 1: 'First',\n 2: 'Second',\n 3: 'Third',\n 4: 'Fourth',\n 5: 'Fifth',\n 6: 'Sixth',\n 7: 'Sevent... | [
{
"content": "import re\n\nimport lxml.html\nfrom billy.scrape.legislators import LegislatorScraper, Legislator\n\n\ndef clean_district(district):\n mappings = {\n 1: 'First',\n 2: 'Second',\n 3: 'Third',\n 4: 'Fourth',\n 5: 'Fifth',\n 6: 'Sixth',\n 7: 'Sevent... | diff --git a/openstates/ma/legislators.py b/openstates/ma/legislators.py
index 3bab1d1fa3..5c7ed906fa 100644
--- a/openstates/ma/legislators.py
+++ b/openstates/ma/legislators.py
@@ -78,9 +78,9 @@ def scrape_member(self, chamber, term, member_url):
party = party.strip()
district = clean_district(distr... |
ray-project__ray-6916 | [tune] Handle nan case for AsynchScheduler
To deal with the case of recording nan values i would suggest changing from np.percentile to np.nanpercentile in this line.
https://github.com/ray-project/ray/blob/f7455839bf5686cf990c9e6625c6ada9a3ffd7c8/python/ray/tune/schedulers/async_hyperband.py#L145-L148
As stated ... | [
{
"content": "import logging\nimport numpy as np\n\nfrom ray.tune.schedulers.trial_scheduler import FIFOScheduler, TrialScheduler\n\nlogger = logging.getLogger(__name__)\n\n\nclass AsyncHyperBandScheduler(FIFOScheduler):\n \"\"\"Implements the Async Successive Halving.\n\n This should provide similar theo... | [
{
"content": "import logging\nimport numpy as np\n\nfrom ray.tune.schedulers.trial_scheduler import FIFOScheduler, TrialScheduler\n\nlogger = logging.getLogger(__name__)\n\n\nclass AsyncHyperBandScheduler(FIFOScheduler):\n \"\"\"Implements the Async Successive Halving.\n\n This should provide similar theo... | diff --git a/python/ray/tune/schedulers/async_hyperband.py b/python/ray/tune/schedulers/async_hyperband.py
index 80c52c8c0ff15..e30cfb0a9daad 100644
--- a/python/ray/tune/schedulers/async_hyperband.py
+++ b/python/ray/tune/schedulers/async_hyperband.py
@@ -141,7 +141,8 @@ def __init__(self, min_t, max_t, reduction_fact... |
dpgmediamagazines__django-arctic-337 | DeletionMixin response
now it has following implementation:
```
def delete(self, request, *args, **kwargs):
self.object = self.get_object()
if Article.objects.pending().filter(pk=self.object.pk).exists():
self.success_url = reverse_lazy('articles:pending-list')
success_ur... | [
{
"content": "from __future__ import division, unicode_literals\nfrom collections import OrderedDict\nimport calendar\nimport json\n\nimport extra_views\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth import authenticate, login, logout\nfrom django.contrib.auth.f... | [
{
"content": "from __future__ import division, unicode_literals\nfrom collections import OrderedDict\nimport calendar\nimport json\n\nimport extra_views\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth import authenticate, login, logout\nfrom django.contrib.auth.f... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 27543418..3d0e637e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
Always reference the ticket number at the end of the issue description.
+## pending
+
+### Fixed
+
+- BREAKING! Fixe... |
svthalia__concrexit-1734 | AttributeError: 'Settings' object has no attribute 'THALIA_PAY_FOR_NEW_MEMBERS'
Sentry Issue: [CONCREXIT-6B](https://sentry.io/organizations/thalia/issues/2464600322/?referrer=github_integration)
```
AttributeError: 'Settings' object has no attribute 'THALIA_PAY_FOR_NEW_MEMBERS'
(3 additional frame(s) were not display... | [
{
"content": "\"\"\"Django settings for concrexit.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/dev/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/dev/ref/settings/\n\"\"\"\n\nimport logging\n\nimport base64\nimport json... | [
{
"content": "\"\"\"Django settings for concrexit.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/dev/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/dev/ref/settings/\n\"\"\"\n\nimport logging\n\nimport base64\nimport json... | diff --git a/website/thaliawebsite/settings.py b/website/thaliawebsite/settings.py
index 34bdeff2f..588cb983d 100644
--- a/website/thaliawebsite/settings.py
+++ b/website/thaliawebsite/settings.py
@@ -174,6 +174,7 @@ def from_env(
THALIA_PAY_ENABLED_PAYMENT_METHOD = (
from_env("THALIA_PAY_ENABLED", development="1... |
getredash__redash-4983 | Can't query private addresses again
Hello!
I use Redash docker image on my own server to getting query from my API.
Since version 9.0.0 alpha I don't have issues with this, because of REDASH_ENFORCE_PRIVATE_IP_BLOCK flag set to false.
But after upgrading to version beta, this issues came back! What should I do?
| [
{
"content": "import logging\n\nfrom contextlib import ExitStack\nfrom dateutil import parser\nfrom functools import wraps\nimport socket\nimport ipaddress\nfrom urllib.parse import urlparse\n\nfrom six import text_type\nfrom sshtunnel import open_tunnel\nfrom redash import settings\nfrom redash.utils import js... | [
{
"content": "import logging\n\nfrom contextlib import ExitStack\nfrom dateutil import parser\nfrom functools import wraps\nimport socket\nimport ipaddress\nfrom urllib.parse import urlparse\n\nfrom six import text_type\nfrom sshtunnel import open_tunnel\nfrom redash import settings\nfrom redash.utils import js... | diff --git a/redash/query_runner/__init__.py b/redash/query_runner/__init__.py
index d5f4f1c930..9f92ffe637 100644
--- a/redash/query_runner/__init__.py
+++ b/redash/query_runner/__init__.py
@@ -258,7 +258,7 @@ def get_auth(self):
return None
def get_response(self, url, auth=None, http_method="get",... |
meltano__meltano-8301 | bug: Interactive config prompt should indicate when you're typing a redacted value
### Meltano Version
3.1.0
### Python Version
NA
### Bug scope
CLI (options, error messages, logging, etc.)
### Operating System
NA
### Description
`New value` should probably be `New value (redacted)`:
https... | [
{
"content": "\"\"\"Interactive configuration handler.\"\"\"\n\nfrom __future__ import annotations\n\nimport typing as t\nfrom contextlib import suppress\n\n# NOTE: Importing the readline module enables the use of arrow\n# keys for text navigation during interactive config.\n# Refer to https://docs.... | [
{
"content": "\"\"\"Interactive configuration handler.\"\"\"\n\nfrom __future__ import annotations\n\nimport typing as t\nfrom contextlib import suppress\n\n# NOTE: Importing the readline module enables the use of arrow\n# keys for text navigation during interactive config.\n# Refer to https://docs.... | diff --git a/docs/docs/getting-started/part1.mdx b/docs/docs/getting-started/part1.mdx
index f14597aeae..037cb19dac 100644
--- a/docs/docs/getting-started/part1.mdx
+++ b/docs/docs/getting-started/part1.mdx
@@ -221,7 +221,7 @@ Loop through all settings (all), select a setting by number (1 - 16), or exit (e
$ 2
[...]D... |
statsmodels__statsmodels-6290 | is sm.open_help ever defined?
Near the end of `statsmodels.api`:
```
chmpath = os.path.join(os.path.dirname(__file__), 'statsmodelsdoc.chm')
if os.path.exists(chmpath):
def open_help(chmpath=chmpath):
from subprocess import Popen
p = Popen(chmpath, shell=True)
```
I'm not familiar with... | [
{
"content": "# -*- coding: utf-8 -*-\n# flake8: noqa\nimport os\n\nfrom . import iolib\nfrom . import datasets\nfrom . import tools\nfrom .tools.tools import add_constant, categorical\nfrom . import regression\nfrom .regression.linear_model import OLS, GLS, WLS, GLSAR\nfrom .regression.recursive_ls import Recu... | [
{
"content": "# -*- coding: utf-8 -*-\n# flake8: noqa\nimport os\n\nfrom . import iolib\nfrom . import datasets\nfrom . import tools\nfrom .tools.tools import add_constant, categorical\nfrom . import regression\nfrom .regression.linear_model import OLS, GLS, WLS, GLSAR\nfrom .regression.recursive_ls import Recu... | diff --git a/statsmodels/api.py b/statsmodels/api.py
index 72e299d9db8..23c14ac3462 100644
--- a/statsmodels/api.py
+++ b/statsmodels/api.py
@@ -54,18 +54,6 @@
load = load_pickle
-chmpath = os.path.join(os.path.dirname(__file__), 'statsmodelsdoc.chm')
-if os.path.exists(chmpath):
- # As of 0.10.0, this is not r... |
googleapis__google-api-python-client-1185 | HttpError error_details isn't populated unless __repr__ is called first
I was trying to handle an HttpError by looking at the contents of the `error_details` attribute. I noticed the attribute is a null-string unless I trigger the `__repr__` function first. For example, this does not work as the error_details is always... | [
{
"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles... | [
{
"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles... | diff --git a/docs/start.md b/docs/start.md
index def0c4a481a..9207620a8c2 100644
--- a/docs/start.md
+++ b/docs/start.md
@@ -99,7 +99,7 @@ Creating a request does not actually call the API. To execute the request and ge
try:
response = request.execute()
except HttpError as e:
- print('Error response status co... |
NVIDIA__NeMo-7124 | Installation instructions should better indicate mandatory steps to make tests pass (or reinstall.sh needs an update)
**Is your feature request related to a problem? Please describe.**
I wanted to setup a dev conda environment for NeMo, so I followed steps at https://github.com/NVIDIA/NeMo/tree/main#from-source
A... | [
{
"content": "# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | [
{
"content": "# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | diff --git a/nemo/utils/model_utils.py b/nemo/utils/model_utils.py
index 42a0b108944d..0f70631f140f 100644
--- a/nemo/utils/model_utils.py
+++ b/nemo/utils/model_utils.py
@@ -576,7 +576,7 @@ def check_lib_version(lib_name: str, checked_version: str, operator) -> Tuple[Op
f"Could not check version compa... |
nilearn__nilearn-2822 | Use plot_event in a example
The function `plot_event` has currently no example linked to its [doc](https://nilearn.github.io/modules/generated/nilearn.plotting.plot_event.html#nilearn.plotting.plot_event).
It wouldn't be too costly to use it in one example somewhere.
| [
{
"content": "\"\"\"Example of a events.tsv file generation: the neurospin/localizer events.\n=============================================================================\n\nThe protocol described is the so-called \"archi standard\" localizer\nevent sequence. See Pinel et al., BMC neuroscience 2007 for refere... | [
{
"content": "\"\"\"Example of a events.tsv file generation: the neurospin/localizer events.\n=============================================================================\n\nThe protocol described is the so-called \"archi standard\" localizer\nevent sequence. See Pinel et al., BMC neuroscience 2007 for refere... | diff --git a/examples/04_glm_first_level/write_events_file.py b/examples/04_glm_first_level/write_events_file.py
index e409078dee..30d593fe59 100644
--- a/examples/04_glm_first_level/write_events_file.py
+++ b/examples/04_glm_first_level/write_events_file.py
@@ -63,3 +63,10 @@
tsvfile = 'localizer_events.tsv'
events.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.