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 ⌀ |
|---|---|---|---|---|
huggingface__diffusers-686 | [dreambooth] RuntimeError when trying to Train on a Tesla T4 on Colab.
### Describe the bug
just right when it starts running the training it crashes with out of memory error. When i set it to fp16, i get a unscale_() was already called for error.. I'm not sure how to run this on a 16gb GPU?
### Reproduction
Tesla ... | [
{
"content": "import argparse\nimport math\nimport os\nfrom contextlib import nullcontext\nfrom pathlib import Path\nfrom typing import Optional\n\nimport torch\nimport torch.nn.functional as F\nimport torch.utils.checkpoint\nfrom torch.utils.data import Dataset\n\nfrom accelerate import Accelerator\nfrom accel... | [
{
"content": "import argparse\nimport math\nimport os\nfrom contextlib import nullcontext\nfrom pathlib import Path\nfrom typing import Optional\n\nimport torch\nimport torch.nn.functional as F\nimport torch.utils.checkpoint\nfrom torch.utils.data import Dataset\n\nfrom accelerate import Accelerator\nfrom accel... | diff --git a/examples/dreambooth/train_dreambooth.py b/examples/dreambooth/train_dreambooth.py
index 3d4c23a4affa..650ee0e88f08 100644
--- a/examples/dreambooth/train_dreambooth.py
+++ b/examples/dreambooth/train_dreambooth.py
@@ -566,7 +566,8 @@ def collate_fn(examples):
loss = F.mse_loss(noise_pr... |
bokeh__bokeh-9061 | Color regex needs raw string
Warning in CI:
> bokeh/core/property/color.py:137
/home/travis/build/bokeh/bokeh/bokeh/core/property/color.py:137: DeprecationWarning: invalid escape sequence \d
value = colors.RGB(*[int(val) for val in re.findall("\d+", value)[:3]]).to_hex()
| [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------... | diff --git a/bokeh/core/property/color.py b/bokeh/core/property/color.py
index 0acbb0f4f31..5cc46276bca 100644
--- a/bokeh/core/property/color.py
+++ b/bokeh/core/property/color.py
@@ -137,7 +137,7 @@ def transform(self, value):
if isinstance(value, string_types):
value = value.lower()
... |
ray-project__ray-4175 | dashboard.py is not packaged in the Linux Ray wheels.
See the conversation in https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/ray-dev/M8wGAdEhkTw/QIbvbuoJBAAJ.
I think we can fix this just by putting `__init__.py` in the `ray/python/dashboard` directory, though we have to make sure that that... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport os\nimport re\nimport shutil\nimport subprocess\nimport sys\n\nfrom setuptools import setup, find_packages, Distribution\nimport setuptools.command.build_ext as _build_ext\n\n# ... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport os\nimport re\nimport shutil\nimport subprocess\nimport sys\n\nfrom setuptools import setup, find_packages, Distribution\nimport setuptools.command.build_ext as _build_ext\n\n# ... | diff --git a/BUILD.bazel b/BUILD.bazel
index 74da691b7694f..61651b2f0a186 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -501,6 +501,10 @@ filegroup(
"python/ray/core/generated/__init__.py",
"python/ray/core/generated/ray/__init__.py",
"python/ray/core/generated/ray/protocol/__init__.py",
+ ... |
conda__conda-6746 | Bug: Authenticated channels broken when using conda_env create.
<!--
Hi!
This is an issue tracker for conda -- the package manager. File feature requests
for conda here, as well as bug reports about something conda has messed up.
If your issue is a bug report or feature request for:
* a specific conda packa... | [
{
"content": "from __future__ import absolute_import\n\nfrom os.path import basename\n\nfrom conda._vendor.boltons.setutils import IndexedSet\nfrom conda.base.context import context\nfrom conda.core.solve import Solver\nfrom conda.models.channel import Channel, prioritize_channels\n\n\ndef install(prefix, specs... | [
{
"content": "from __future__ import absolute_import\n\nfrom os.path import basename\n\nfrom conda._vendor.boltons.setutils import IndexedSet\nfrom conda.base.context import context\nfrom conda.core.solve import Solver\nfrom conda.models.channel import Channel, prioritize_channels\n\n\ndef install(prefix, specs... | diff --git a/conda_env/installers/conda.py b/conda_env/installers/conda.py
index 3a061a887c7..6755d1ab1e0 100644
--- a/conda_env/installers/conda.py
+++ b/conda_env/installers/conda.py
@@ -28,8 +28,7 @@ def install(prefix, specs, args, env, *_, **kwargs):
channel_urls.extend(context.channels)
_channel_pri... |
pytorch__audio-1036 | `normalized` argument in griffinlim is not used
## 🐛 Bug
`F.griffinlim`'s `normalized` func arg is not used. It should be removed or used.
If removing it, it should also be removed from `T.GriffinLim`.
| [
{
"content": "# -*- coding: utf-8 -*-\n\nimport math\nfrom typing import Optional, Tuple\nimport warnings\n\nimport torch\nfrom torch import Tensor\n\n__all__ = [\n \"spectrogram\",\n \"griffinlim\",\n \"amplitude_to_DB\",\n \"DB_to_amplitude\",\n \"compute_deltas\",\n \"create_fb_matrix\",\n ... | [
{
"content": "# -*- coding: utf-8 -*-\n\nimport math\nfrom typing import Optional, Tuple\nimport warnings\n\nimport torch\nfrom torch import Tensor\n\n__all__ = [\n \"spectrogram\",\n \"griffinlim\",\n \"amplitude_to_DB\",\n \"DB_to_amplitude\",\n \"compute_deltas\",\n \"create_fb_matrix\",\n ... | diff --git a/torchaudio/functional/functional.py b/torchaudio/functional/functional.py
index b967904f2a..cf49552d85 100644
--- a/torchaudio/functional/functional.py
+++ b/torchaudio/functional/functional.py
@@ -139,6 +139,12 @@ def griffinlim(
assert momentum < 1, 'momentum={} > 1 can be unstable'.format(momentum)... |
archlinux__archinstall-2391 | Invalid home partition start and length
The start and length of the home partition takes into account the length of the root partition but not its start.
https://github.com/archlinux/archinstall/blob/f107104103b74ac065a56bd94a0878f0d263e177/archinstall/lib/interactions/disk_conf.py#L309-L317
Here is a possible fi... | [
{
"content": "from __future__ import annotations\n\nfrom pathlib import Path\nfrom typing import Any, TYPE_CHECKING\nfrom typing import Optional, List, Tuple\n\nfrom .. import disk\nfrom ..hardware import SysInfo\nfrom ..menu import Menu\nfrom ..menu import TableMenu\nfrom ..menu.menu import MenuSelectionType\n... | [
{
"content": "from __future__ import annotations\n\nfrom pathlib import Path\nfrom typing import Any, TYPE_CHECKING\nfrom typing import Optional, List, Tuple\n\nfrom .. import disk\nfrom ..hardware import SysInfo\nfrom ..menu import Menu\nfrom ..menu import TableMenu\nfrom ..menu.menu import MenuSelectionType\n... | diff --git a/archinstall/lib/interactions/disk_conf.py b/archinstall/lib/interactions/disk_conf.py
index bbd8957d4b..b8c6adad34 100644
--- a/archinstall/lib/interactions/disk_conf.py
+++ b/archinstall/lib/interactions/disk_conf.py
@@ -310,8 +310,8 @@ def suggest_single_disk_layout(
# If we don't want to use subvolum... |
OpenNMT__OpenNMT-tf-277 | Latest (1.14) OpenNMT-tf gives error on inferencing
Hi,
I have trained a model ParallelEncoder having two input files (words and their features). This far all has worked just fine, but now I get following error when trying to run inference:
Traceback (most recent call last):
File "opennmt/bin/main.py", line 192, i... | [
{
"content": "\"\"\"Functions for reading data.\"\"\"\n\nimport tensorflow as tf\nimport numpy as np\n\n\ndef _experimental_data_namespace():\n return tf.data.experimental if hasattr(tf.data, \"experimental\") else tf.contrib.data\n\ndef get_padded_shapes(dataset):\n \"\"\"Returns the padded shapes for ``tf.d... | [
{
"content": "\"\"\"Functions for reading data.\"\"\"\n\nimport tensorflow as tf\nimport numpy as np\n\n\ndef _experimental_data_namespace():\n return tf.data.experimental if hasattr(tf.data, \"experimental\") else tf.contrib.data\n\ndef get_padded_shapes(dataset):\n \"\"\"Returns the padded shapes for ``tf.d... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2381ad361..1713fcfe8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,8 @@ OpenNMT-tf follows [semantic versioning 2.0.0](https://semver.org/). The API cov
### Fixes and improvements
+* Fix inference error when using parallel inputs and the parameter `bucket_... |
zalando__patroni-2291 | Unexpected error from Kubernetes API
I recently observed the following log. I didn't notice any negative effect, but the exception and stack trace in the log indicates that there's some check missing somewhere in the Patroni implementation. I don't know exactly how to reproduce, but it was during a rolling upgrade trig... | [
{
"content": "import datetime\nimport functools\nimport json\nimport logging\nimport os\nimport random\nimport socket\nimport six\nimport sys\nimport time\nimport urllib3\nimport yaml\n\nfrom urllib3 import Timeout\nfrom urllib3.exceptions import HTTPError\nfrom six.moves.http_client import HTTPException\nfrom ... | [
{
"content": "import datetime\nimport functools\nimport json\nimport logging\nimport os\nimport random\nimport socket\nimport six\nimport sys\nimport time\nimport urllib3\nimport yaml\n\nfrom urllib3 import Timeout\nfrom urllib3.exceptions import HTTPError\nfrom six.moves.http_client import HTTPException\nfrom ... | diff --git a/patroni/dcs/kubernetes.py b/patroni/dcs/kubernetes.py
index 06d905721..52d6a2c7d 100644
--- a/patroni/dcs/kubernetes.py
+++ b/patroni/dcs/kubernetes.py
@@ -1060,7 +1060,7 @@ def delete_leader(self, last_lsn=None):
if kind and (kind.metadata.annotations or {}).get(self._LEADER) == self._name:
... |
google__flax-365 | Syntax warning due to comparison of literals using is in Python 3.8
### Problem you have encountered:
Syntax warning due to comparison of literals using is in Python 3.8 to use != .
### Steps to reproduce:
```
find . -iname '*.py' | grep -v example | grep -v doc | xargs -P4 -I{} python3.8 -Wall -m py_compile ... | [
{
"content": "# Copyright 2020 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | [
{
"content": "# Copyright 2020 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | diff --git a/flax/optim/weight_norm.py b/flax/optim/weight_norm.py
index 578626601..3157f4844 100644
--- a/flax/optim/weight_norm.py
+++ b/flax/optim/weight_norm.py
@@ -147,7 +147,7 @@ def _split_grad(self, param, state, grad, decay):
scale_grad = jnp.sum(
grad * direction, axis=red_dims, keepdims=Tru... |
vyperlang__vyper-3949 | constant folding fails for constant exponentiation
### Version Information
* vyper Version (output of `vyper --version`): v0.4.0rc2
### What's your issue about?
repro:
```
N: constant(uint256) = 3
N2: constant(uint256) = N**N
```
results in:
```
vyper.exceptions.InvalidOperation: Cannot apply an overflo... | [
{
"content": "# primitive types which occupy one word, like ints and addresses\n\nfrom decimal import Decimal\nfrom functools import cached_property\nfrom typing import Any, Tuple, Union\n\nfrom vyper import ast as vy_ast\nfrom vyper.abi_types import ABI_Address, ABI_Bool, ABI_BytesM, ABI_GIntM, ABIType\nfrom v... | [
{
"content": "# primitive types which occupy one word, like ints and addresses\n\nfrom decimal import Decimal\nfrom functools import cached_property\nfrom typing import Any, Tuple, Union\n\nfrom vyper import ast as vy_ast\nfrom vyper.abi_types import ABI_Address, ABI_Bool, ABI_BytesM, ABI_GIntM, ABIType\nfrom v... | diff --git a/tests/functional/codegen/types/numbers/test_exponents.py b/tests/functional/codegen/types/numbers/test_exponents.py
index 2975f839e5..702cbcb1dd 100644
--- a/tests/functional/codegen/types/numbers/test_exponents.py
+++ b/tests/functional/codegen/types/numbers/test_exponents.py
@@ -17,6 +17,16 @@ def f0():
... |
DataDog__dd-trace-py-481 | DatabaseError with ddtrace
```
Traceback (most recent call last):
File "/opt/prezi/signup/versions/318-db1a27e562e267603c55ea13e8db46b29d715834/virtualenv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_k... | [
{
"content": "\"\"\"\nSettings for Datadog tracer are all namespaced in the DATADOG_TRACE setting.\nFor example your project's `settings.py` file might look like this:\n\nDATADOG_TRACE = {\n 'TRACER': 'myapp.tracer',\n}\n\nThis module provides the `setting` object, that is used to access\nDatadog settings, c... | [
{
"content": "\"\"\"\nSettings for Datadog tracer are all namespaced in the DATADOG_TRACE setting.\nFor example your project's `settings.py` file might look like this:\n\nDATADOG_TRACE = {\n 'TRACER': 'myapp.tracer',\n}\n\nThis module provides the `setting` object, that is used to access\nDatadog settings, c... | diff --git a/ddtrace/contrib/django/conf.py b/ddtrace/contrib/django/conf.py
index 3f6b83cc7d0..7afe52a6994 100644
--- a/ddtrace/contrib/django/conf.py
+++ b/ddtrace/contrib/django/conf.py
@@ -18,8 +18,6 @@
from django.conf import settings as django_settings
-from django.test.signals import setting_changed
-
lo... |
inducer__relate-607 | Update pysaml2 to 4.6.0 (or higher) to fix CVE-2017-1000246
* https://nvd.nist.gov/vuln/detail/CVE-2017-1000246
* https://github.com/IdentityPython/pysaml2/issues/417
Currently blocked on https://github.com/knaperek/djangosaml2/issues/129.
| [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\n# This script (for now) is only intended to install the 'relate' content helper\n# script. relate-validate. Its use is not needed for (and unrelated to)\n# deploying RELATE as a web service.\n\n# Use ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\n# This script (for now) is only intended to install the 'relate' content helper\n# script. Its use is not needed for (and unrelated to) deploying RELATE as a\n# web service.\n\n# Use 'pip install -r re... | diff --git a/appveyor.yml b/appveyor.yml
index f1a860e55..f7dc92d87 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -54,6 +54,11 @@ install:
- "git submodule update --init --recursive"
+ # Update pip/setuptools/wheel to avoid an issue like
+ # https://github.com/HearthSim/decrunch/issues/3
+ # e.g. https://ci... |
ManimCommunity__manim-684 | Add (opengraph) metadata to documentation
Previews to links to the documentation are currently not available due to missing opengraph metadata.
Also, a description meta tag should be added.
| [
{
"content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup -------------------------------------------... | [
{
"content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup -------------------------------------------... | diff --git a/docs/requirements.txt b/docs/requirements.txt
index cdcccbc2ad..64e2524c06 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -1,4 +1,5 @@
Sphinx==3.1.2
guzzle-sphinx-theme
recommonmark>=0.5.0
-sphinx-copybutton
\ No newline at end of file
+sphinx-copybutton
+sphinxext-opengraph
diff --gi... |
Lightning-AI__torchmetrics-2574 | BootStrapper.reset() does not reset properly
## 🐛 Bug
Calling `BootStrapper.reset()` does not reset `self.metrics` properly.
### To Reproduce
```py
import torch
from torchmetrics.wrappers import BootStrapper
from torchmetrics.classification import MulticlassAccuracy
metric = BootStrapper(MulticlassAccur... | [
{
"content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli... | [
{
"content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index fd629112ab8..804770b64b8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -33,6 +33,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed class order of `panoptic_quality(..., return_per_class=True)` output ([#2548](https://github.co... |
Rapptz__discord.py-8258 | cog_unload is not called when an exception is encountered while loading a cog, even if cog_load runs successfully
### Summary
`cog_unload` is not called when an exception occurs while loading a cog. This by itself could be considered 'works as intended', since the cog is assumed to have failed to load, however this ... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nth... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nth... | diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py
index 65b691be5c67..19d684a6feca 100644
--- a/discord/ext/commands/cog.py
+++ b/discord/ext/commands/cog.py
@@ -616,7 +616,10 @@ async def _inject(self, bot: BotBase, override: bool, guild: Optional[Snowflake]
for to_undo in sel... |
bookwyrm-social__bookwyrm-2447 | Server error on some book imports
**Describe the bug**
When importing some books the application crashes, with "Server Error Something went wrong! Sorry about that."
```
Internal Server Error: /resolve-book
Traceback (most recent call last):
File "/opt/bookwyrm/venv/lib/python3.10/site-packages/django/core/handl... | [
{
"content": "\"\"\" inventaire data connector \"\"\"\nimport re\n\nfrom bookwyrm import models\nfrom bookwyrm.book_search import SearchResult\nfrom .abstract_connector import AbstractConnector, Mapping\nfrom .abstract_connector import get_data\nfrom .connector_manager import ConnectorException, create_edition_... | [
{
"content": "\"\"\" inventaire data connector \"\"\"\nimport re\n\nfrom bookwyrm import models\nfrom bookwyrm.book_search import SearchResult\nfrom .abstract_connector import AbstractConnector, Mapping\nfrom .abstract_connector import get_data\nfrom .connector_manager import ConnectorException, create_edition_... | diff --git a/bookwyrm/connectors/inventaire.py b/bookwyrm/connectors/inventaire.py
index df9b2e43ad..a330b2c4a5 100644
--- a/bookwyrm/connectors/inventaire.py
+++ b/bookwyrm/connectors/inventaire.py
@@ -165,8 +165,8 @@ def create_edition_from_data(self, work, edition_data, instance=None):
edition_data ... |
twisted__twisted-11712 | [meta] Remove DeprecationWarning from twisted own tests
|[<img alt="adiroiban's avatar" src="https://avatars.githubusercontent.com/u/204609?s=50" width="50" height="50">](https://github.com/adiroiban)| @adiroiban reported|
|-|-|
|Trac ID|trac#10149|
|Type|task|
|Created|2021-03-23 23:26:21Z|
The twisted own test suite... | [
{
"content": "# -*- test-case-name: twisted.conch.test.test_ckeygen -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nImplementation module for the `ckeygen` command.\n\"\"\"\n\n\nimport getpass\nimport os\nimport platform\nimport socket\nimport sys\nfrom collections.abc i... | [
{
"content": "# -*- test-case-name: twisted.conch.test.test_ckeygen -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nImplementation module for the `ckeygen` command.\n\"\"\"\n\n\nimport getpass\nimport os\nimport platform\nimport socket\nimport sys\nfrom collections.abc i... | diff --git a/src/twisted/application/test/test_internet.py b/src/twisted/application/test/test_internet.py
index 30b071afa74..63a870e40e6 100644
--- a/src/twisted/application/test/test_internet.py
+++ b/src/twisted/application/test/test_internet.py
@@ -32,9 +32,9 @@
)
from twisted.internet.protocol import Factory, Pr... |
DataBiosphere__toil-340 | Resource Download throw: HTTPError: HTTP Error 403: Forbidden
| [
{
"content": "# Copyright (C) 2015 UCSC Computational Genomics Lab\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# Unl... | [
{
"content": "# Copyright (C) 2015 UCSC Computational Genomics Lab\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# Unl... | diff --git a/src/toil/jobStores/awsJobStore.py b/src/toil/jobStores/awsJobStore.py
index a381e89a43..29bd469736 100644
--- a/src/toil/jobStores/awsJobStore.py
+++ b/src/toil/jobStores/awsJobStore.py
@@ -161,7 +161,9 @@ def getPublicUrl(self, jobStoreFileID):
Encrypted file urls are currently not supported
... |
iterative__dvc-8823 | dvc repro: Tuples in parameters are always marked as modified
# Bug Report
<!--
## Issue name
Issue names must follow the pattern `command: description` where the command is the dvc command that you are trying to run. The description should describe the consequence of the bug.
Example: `repro: doesn't detect ... | [
{
"content": "import logging\nimport os\nimport typing\nfrom collections import defaultdict\nfrom typing import Dict, cast\n\nimport dpath.util\nfrom voluptuous import Any\n\nfrom dvc.exceptions import DvcException\nfrom dvc.utils.serialize import ParseError, load_path\nfrom dvc_data.hashfile.hash_info import H... | [
{
"content": "import logging\nimport os\nimport typing\nfrom collections import defaultdict\nfrom typing import Dict, cast\n\nimport dpath.util\nfrom voluptuous import Any\n\nfrom dvc.exceptions import DvcException\nfrom dvc.utils.serialize import ParseError, load_path\nfrom dvc_data.hashfile.hash_info import H... | diff --git a/dvc/dependency/param.py b/dvc/dependency/param.py
index 0247f18f73..d38a0af32b 100644
--- a/dvc/dependency/param.py
+++ b/dvc/dependency/param.py
@@ -125,9 +125,14 @@ def workspace_status(self):
elif param not in info:
st = "new"
elif actual[param] != info[param]:... |
pypa__pip-4069 | deprecation message for list format suggests wrong configuration value
* Pip version: 9.0.0
* Python version: 2.7.12
* Operating System: OS X
### Description:
The deprecation message emitted from `pip list` about the `--format` option suggests the wrong configuration value.
### What I've run:
```
$ pip l... | [
{
"content": "from __future__ import absolute_import\n\nimport json\nimport logging\nimport warnings\ntry:\n from itertools import zip_longest\nexcept ImportError:\n from itertools import izip_longest as zip_longest\n\nfrom pip._vendor import six\n\nfrom pip.basecommand import Command\nfrom pip.exceptions... | [
{
"content": "from __future__ import absolute_import\n\nimport json\nimport logging\nimport warnings\ntry:\n from itertools import zip_longest\nexcept ImportError:\n from itertools import izip_longest as zip_longest\n\nfrom pip._vendor import six\n\nfrom pip.basecommand import Command\nfrom pip.exceptions... | diff --git a/CHANGES.txt b/CHANGES.txt
index cb6e9f06886..d03b7693d4d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,9 @@
**9.1.0 (unreleased)**
+* Correct the deprecation message when not specifying a --format so that it
+ uses the correct setting name (``format``) rather than the incorrect one
+ (``list_f... |
ethereum__web3.py-3187 | web3 import errors in Python 3.12
* Version: 6.13.0
* Python: 3.12, inside a venv
* OS: linux (but is probably applicable to other platforms as well)
* `pip freeze` output:
```
aiohttp==3.9.1
aiosignal==1.3.1
attrs==23.2.0
bitarray==2.9.2
certifi==2023.11.17
charset-normalizer==3.3.2
cytoolz==0.12.2
eth-a... | [
{
"content": "from eth_account import Account # noqa: E402,\nimport pkg_resources\n\nfrom web3.main import (\n AsyncWeb3,\n Web3,\n)\nfrom web3.providers.async_rpc import ( # noqa: E402\n AsyncHTTPProvider,\n)\nfrom web3.providers.eth_tester import ( # noqa: E402\n EthereumTesterProvider,\n)\nfro... | [
{
"content": "from eth_account import Account # noqa: E402\nimport sys\n\nif sys.version_info.major == 3 and sys.version_info.minor < 8:\n import pkg_resources\n\n __version__ = pkg_resources.get_distribution(\"web3\").version\nelse:\n from importlib.metadata import version\n\n __version__ = versio... | diff --git a/newsfragments/3187.bugfix.rst b/newsfragments/3187.bugfix.rst
new file mode 100644
index 0000000000..60aafc961c
--- /dev/null
+++ b/newsfragments/3187.bugfix.rst
@@ -0,0 +1 @@
+Use ``importlib.metadata`` for version info if python>=3.8
diff --git a/newsfragments/3187.internal.rst b/newsfragments/3187.inter... |
djangopackages__djangopackages-1027 | all /grids/ views are broken
**Describe the bug**
Clicking on any of the grid listings at the top, for example [deployment](https://djangopackages.org/grids/g/deployment/) generates an error
**To Reproduce**
Steps to reproduce the behavior:
1. Go to Home Page
2. Click on `Deployment` (or any package listed at th... | [
{
"content": "# Django settings\nimport sys\nfrom pathlib import Path\n\nimport environ\nfrom django.template.defaultfilters import slugify\n\nenv = environ.Env()\n\nPROJECT_ROOT = Path(__file__).parent.parent\n\nDEBUG = env.bool(\"DJANGO_DEBUG\", True)\nTEMPLATE_DEBUG = env.bool(\"TEMPLATE_DEBUG\", True)\nTEST... | [
{
"content": "# Django settings\nimport sys\nfrom pathlib import Path\n\nimport environ\nfrom django.template.defaultfilters import slugify\n\nenv = environ.Env()\n\nPROJECT_ROOT = Path(__file__).parent.parent\n\nDEBUG = env.bool(\"DJANGO_DEBUG\", True)\nTEMPLATE_DEBUG = env.bool(\"TEMPLATE_DEBUG\", True)\nTEST... | diff --git a/justfile b/justfile
index db69348a2..534437b79 100644
--- a/justfile
+++ b/justfile
@@ -145,7 +145,7 @@ bootstrap *ARGS:
just logs --follow
# Bring up your Docker Containers
-@up *ARGS="--detach":
+@up *ARGS:
docker-compose up {{ ARGS }}
# --------------------------------------------------
... |
open-mmlab__mmdetection-6781 | An editing error in the Tutorial Documentation
Thank you for ur contribution, I am a newbie to this project, maybe I found an editing error in the latest [Tutorial Documentation](https://mmdetection.readthedocs.io/en/latest/2_new_data_model.html). The detailed description is shown in the figure.
 OpenMMLab. All rights reserved.\nimport argparse\nimport copy\nimport os\nimport os.path as osp\nimport time\nimport warnings\n\nimport mmcv\nimport torch\nfrom mmcv import Config, DictAction\nfrom mmcv.runner import get_dist_info, init_dist\nfrom mmcv.utils import get_git_hash\n\n... | [
{
"content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport argparse\nimport copy\nimport os\nimport os.path as osp\nimport time\nimport warnings\n\nimport mmcv\nimport torch\nfrom mmcv import Config, DictAction\nfrom mmcv.runner import get_dist_info, init_dist\nfrom mmcv.utils import get_git_hash\n\n... | diff --git a/tools/test.py b/tools/test.py
index 2287aeb3060..da9821de117 100644
--- a/tools/test.py
+++ b/tools/test.py
@@ -33,6 +33,12 @@ def parse_args():
action='store_true',
help='Whether to fuse conv and bn, this will slightly increase'
'the inference speed')
+ parser.add_argument(
+... |
RocketMap__RocketMap-243 | Error with JS
Recently I clone the repository and I get this errors:
> map.built.js:227 Uncaught ReferenceError: center_lat is not defined
>
> map.built.js:1082 Uncaught TypeError: Cannot read property 'setMapTypeId' of undefined
>
> 19 map.built.js:677 Uncaught TypeError: Cannot read property 'getBounds' of undefin... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\nimport shutil\nimport logging\nimport time\nimport re\nimport requests\n\n# Currently supported pgoapi\npgoapi_version = \"1.1.6\"\n\n# Moved here so logger is configured at load time\nlogging.basicConfig(format='%(asctime)s [%(t... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\nimport shutil\nimport logging\nimport time\nimport re\nimport requests\n\n# Currently supported pgoapi\npgoapi_version = \"1.1.6\"\n\n# Moved here so logger is configured at load time\nlogging.basicConfig(format='%(asctime)s [%(t... | diff --git a/requirements.txt b/requirements.txt
index c8fdbd93bf..558e09f0d5 100755
--- a/requirements.txt
+++ b/requirements.txt
@@ -22,3 +22,4 @@ sphinx-autobuild==0.6.0
recommonmark==0.4.0
sphinx_rtd_theme==0.1.9
requests==2.10.0
+git+https://github.com/ChrisTM/Flask-CacheBust.git@aa09ad861f104f987928fe9f5107ccf... |
pyjanitor-devs__pyjanitor-436 | Copyright notice is hardcoded to 2018
# Brief Description of Fix
<!-- Please describe the fix in terms of a "before" and "after". In other words, what's not so good about the current docs
page, and what you would like to see it become.
copyright notice is hard-coded to 2018. eg:
**©2018, Eric J. Ma. | Powere... | [
{
"content": "\"\"\"Sphinx configuration.\"\"\"\n\n# -*- coding: utf-8 -*-\n#\n# Configuration file for the Sphinx documentation builder.\n#\n# This file does only contain a selection of the most common options. For a\n# full list see the documentation:\n# http://www.sphinx-doc.org/en/stable/config\n\n# -- Path... | [
{
"content": "\"\"\"Sphinx configuration.\"\"\"\n\n# -*- coding: utf-8 -*-\n#\n# Configuration file for the Sphinx documentation builder.\n#\n# This file does only contain a selection of the most common options. For a\n# full list see the documentation:\n# http://www.sphinx-doc.org/en/stable/config\n\n# -- Path... | diff --git a/AUTHORS.rst b/AUTHORS.rst
index abce0a593..567cfcc03 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -6,12 +6,13 @@ Leads:
- `@ericmjl <https://github.com/ericmjl>`_ | `contributions <https://github.com/ericmjl/pyjanitor/pulls?utf8=%E2%9C%93&q=is%3Apr+author%3Aericmjl>`_
- `@szuckerman <https://github.com/... |
Lightning-AI__pytorch-lightning-499 | Escaping % in add_default_args
**Describe the bug**
In utilities/arg_parse.py, a percentage symbol is not escaped and would cause an error when printing help information.
```python
parser.add_argument('--overfit', default=-1, type=float,
help='% of dataset to use with this option. float,... | [
{
"content": "\"\"\"\nList of default args which mught be useful for all the available flags\nMight need to update with the new flags\n\"\"\"\n\nimport os\n\n\ndef add_default_args(parser, root_dir, rand_seed=None, possible_model_names=None):\n # training, test, val check intervals\n parser.add_argument('... | [
{
"content": "\"\"\"\nList of default args which mught be useful for all the available flags\nMight need to update with the new flags\n\"\"\"\n\nimport os\n\n\ndef add_default_args(parser, root_dir, rand_seed=None, possible_model_names=None):\n # training, test, val check intervals\n parser.add_argument('... | diff --git a/pytorch_lightning/utilities/arg_parse.py b/pytorch_lightning/utilities/arg_parse.py
index 73843e5282226..afafc92553ade 100644
--- a/pytorch_lightning/utilities/arg_parse.py
+++ b/pytorch_lightning/utilities/arg_parse.py
@@ -81,7 +81,7 @@ def add_default_args(parser, root_dir, rand_seed=None, possible_model... |
zostera__django-bootstrap5-103 | Injection in render_tag
`render_tag` should not try to form attributes:
```python
> render_tag('div', {'class': '{tag}'})
expected: <div class="{tag}"></div>
actual: <div class="div"></div>
> render_tag('div', {'class': '{foo}'})
expected: <div class="{foo}"></div>
actual: KeyError
```
| [
{
"content": "from django.forms.utils import flatatt\nfrom django.utils.html import format_html\n\nfrom django_bootstrap5.text import text_value\nfrom django_bootstrap5.utils import get_url_attrs\n\n\ndef render_script_tag(url):\n \"\"\"Build a script tag.\"\"\"\n return render_tag(\"script\", get_url_att... | [
{
"content": "from django.forms.utils import flatatt\nfrom django.utils.html import format_html\n\nfrom django_bootstrap5.text import text_value\nfrom django_bootstrap5.utils import get_url_attrs\n\n\ndef render_script_tag(url):\n \"\"\"Build a script tag.\"\"\"\n return render_tag(\"script\", get_url_att... | diff --git a/src/django_bootstrap5/html.py b/src/django_bootstrap5/html.py
index 1ff69243..297f1697 100644
--- a/src/django_bootstrap5/html.py
+++ b/src/django_bootstrap5/html.py
@@ -20,8 +20,8 @@ def render_link_tag(url):
def render_tag(tag, attrs=None, content=None, close=True):
"""Render an HTML tag."""
a... |
freedomofpress__securedrop-5944 | If a source's store directory is missing, subsequent submission attempts will fail with a FileNotFoundError exception
## Description
As per title.
## Steps to Reproduce
(in dev)
- log in to the SI and submit.
- in a shell on the dev docker container (`docker exec -it securedrop-dev-0 bash`) find and delete t... | [
{
"content": "import operator\nimport os\nimport io\n\nfrom base64 import urlsafe_b64encode\nfrom datetime import datetime\nfrom typing import Union\n\nimport werkzeug\nfrom flask import (Blueprint, render_template, flash, redirect, url_for, g,\n session, current_app, request, Markup, abort)\n... | [
{
"content": "import operator\nimport os\nimport io\n\nfrom base64 import urlsafe_b64encode\nfrom datetime import datetime\nfrom typing import Union\n\nimport werkzeug\nfrom flask import (Blueprint, render_template, flash, redirect, url_for, g,\n session, current_app, request, Markup, abort)\n... | diff --git a/securedrop/source_app/main.py b/securedrop/source_app/main.py
index ec4c3a5f62..057d2eb63d 100644
--- a/securedrop/source_app/main.py
+++ b/securedrop/source_app/main.py
@@ -188,6 +188,11 @@ def submit() -> werkzeug.Response:
journalist_filename = g.source.journalist_filename
first_submis... |
google__clusterfuzz-2474 | attach issue filing exception/error to testcase
| [
{
"content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/src/appengine/handlers/cron/triage.py b/src/appengine/handlers/cron/triage.py
index e22c61c865..2d1880490d 100644
--- a/src/appengine/handlers/cron/triage.py
+++ b/src/appengine/handlers/cron/triage.py
@@ -324,8 +324,11 @@ def get(self):
# File the bug first and then create filed bug metadata.
... |
bids-standard__pybids-731 | Add Meta model type
FEMA contrast type is now becoming "meta" model type, as opposed to "glm".
| [
{
"content": "from abc import ABCMeta, abstractmethod\n\nimport pandas as pd\nimport numpy as np\nfrom formulaic import model_matrix\n\nfrom bids.utils import convert_JSON\n\n\ndef create_model_spec(df, model, *args, **kwargs):\n \"\"\"Create and return a instance of the appropriate ModelSpec subclass.\n\n ... | [
{
"content": "from abc import ABCMeta, abstractmethod\n\nimport pandas as pd\nimport numpy as np\nfrom formulaic import model_matrix\n\nfrom bids.utils import convert_JSON\n\n\ndef create_model_spec(df, model, *args, **kwargs):\n \"\"\"Create and return a instance of the appropriate ModelSpec subclass.\n\n ... | diff --git a/bids/modeling/model_spec.py b/bids/modeling/model_spec.py
index 3c44ddae5..011929eaf 100644
--- a/bids/modeling/model_spec.py
+++ b/bids/modeling/model_spec.py
@@ -22,7 +22,8 @@ def create_model_spec(df, model, *args, **kwargs):
"""
kind = model.get('type', 'glm').lower()
SpecCls = {
- ... |
rotki__rotki-2679 | Some coinbase balances are missing
## Problem Definition
I have some Link and BTC on my coinbase account but rotki isn't reporting them although access to Link and BTC balances are checked on the API setting.
I didn't had this before, it has happened during the week.
I've tried to set some new API key but the pr... | [
{
"content": "import hashlib\nimport hmac\nimport logging\nimport time\nfrom collections import defaultdict\nfrom json.decoder import JSONDecodeError\nfrom typing import TYPE_CHECKING, Any, DefaultDict, Dict, List, Optional, Tuple\nfrom urllib.parse import urlencode\n\nimport requests\n\nfrom rotkehlchen.accoun... | [
{
"content": "import hashlib\nimport hmac\nimport logging\nimport time\nfrom collections import defaultdict\nfrom json.decoder import JSONDecodeError\nfrom typing import TYPE_CHECKING, Any, DefaultDict, Dict, List, Optional, Tuple\nfrom urllib.parse import urlencode\n\nimport requests\n\nfrom rotkehlchen.accoun... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 5df5c0b96b..2861ac056c 100755
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -24,6 +24,7 @@ Changelog
* :bug:`2643` Beaconcha.in api key should now be properly used if given by the user
* :bug:`2614` Uniswap users should no longer have missing trades in... |
pyodide__pyodide-3377 | Documentation build failure
Currently, RTD CI is failing following https://github.com/pyodide/pyodide/pull/3268#issuecomment-1359018099 it looks like `sphinx_js` didn't like something in the changes to the the JS package. I can also reproduce locally.
<details>
```
Error: ../src/js/interface.ts:6:34 - error TS... | [
{
"content": "from collections import OrderedDict\nfrom typing import Any\n\nimport docutils.parsers.rst.directives as directives\nfrom docutils import nodes\nfrom docutils.parsers.rst import Directive\nfrom docutils.parsers.rst import Parser as RstParser\nfrom docutils.statemachine import StringList\nfrom docu... | [
{
"content": "from collections import OrderedDict\nfrom typing import Any\n\nimport docutils.parsers.rst.directives as directives\nfrom docutils import nodes\nfrom docutils.parsers.rst import Directive\nfrom docutils.parsers.rst import Parser as RstParser\nfrom docutils.statemachine import StringList\nfrom docu... | diff --git a/docs/sphinx_pyodide/sphinx_pyodide/jsdoc.py b/docs/sphinx_pyodide/sphinx_pyodide/jsdoc.py
index d9a19dfa78b..aaf0cb91ab3 100644
--- a/docs/sphinx_pyodide/sphinx_pyodide/jsdoc.py
+++ b/docs/sphinx_pyodide/sphinx_pyodide/jsdoc.py
@@ -66,7 +66,11 @@ def destructure_param(param: dict[str, Any]) -> list[dict[st... |
geopandas__geopandas-3058 | IO: reading a CSV gives GeoDataFrame with fiona but DataFrame with pyogrio
I've just noticed one inconsistency in IO engines. Reading a CSV without geometry gives different results depending on the engine.
```py
import geopandas as gpd
import geodatasets
df = gpd.read_file(geodatasets.get_path("geoda.cars"), ... | [
{
"content": "import os\nfrom packaging.version import Version\nfrom pathlib import Path\nimport warnings\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.api.types import is_integer_dtype\n\nimport pyproj\nfrom shapely.geometry import mapping\nfrom shapely.geometry.base import BaseGeometry\n\nfrom geopa... | [
{
"content": "import os\nfrom packaging.version import Version\nfrom pathlib import Path\nimport warnings\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.api.types import is_integer_dtype\n\nimport pyproj\nfrom shapely.geometry import mapping\nfrom shapely.geometry.base import BaseGeometry\n\nfrom geopa... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e4a86df031..e9a747a157 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,8 +16,13 @@ New methods:
- Added ``minimum_clearance`` method from shapely to GeoSeries/GeoDataframe (#2989).
+Potentially breaking changes:
+- reading a data source that does not have a geomet... |
spyder-ide__spyder-5358 | Error in variable explorer for dicts with mixed-type keys
## Description of your problem
**What steps will reproduce the problem?**
1. Create a dict with `str` and `int` keys: `d = {'1': 1, 2: 2}`
2. Open it in the variable explorer
3. Click ok to close the window: error pops-out
```python
File "...\spyde... | [
{
"content": "# -*- coding: utf-8 -*-\r\n#\r\n# Copyright © Spyder Project Contributors\r\n# Licensed under the terms of the MIT License\r\n# (see spyder/__init__.py for details)\r\n\r\n\"\"\"\r\nNamespace browser widget\r\n\r\nThis is the main widget used in the Variable Explorer plugin\r\n\"\"\"\r\n\r\n# Stan... | [
{
"content": "# -*- coding: utf-8 -*-\r\n#\r\n# Copyright © Spyder Project Contributors\r\n# Licensed under the terms of the MIT License\r\n# (see spyder/__init__.py for details)\r\n\r\n\"\"\"\r\nNamespace browser widget\r\n\r\nThis is the main widget used in the Variable Explorer plugin\r\n\"\"\"\r\n\r\n# Stan... | diff --git a/spyder/widgets/variableexplorer/namespacebrowser.py b/spyder/widgets/variableexplorer/namespacebrowser.py
index b8475dbdfc9..96ff9479d32 100644
--- a/spyder/widgets/variableexplorer/namespacebrowser.py
+++ b/spyder/widgets/variableexplorer/namespacebrowser.py
@@ -301,8 +301,12 @@ def get_value(self, name):... |
aws-cloudformation__cfn-lint-770 | E2532 when Step Functions Pass state has Parameters key
*cfn-lint version: 0.17.0*
Using latest version of cfn-lint and updated spec files.
*Description of issue.*
Linting a CF template fails when a `AWS::StepFunctions::StateMachine`'s `DefinitionString` has a `Pass` state with the `Parameters` key.
Example... | [
{
"content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w... | [
{
"content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w... | diff --git a/src/cfnlint/rules/resources/stepfunctions/StateMachine.py b/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
index 05b8f1d953..d1ed6855cc 100644
--- a/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
+++ b/src/cfnlint/rules/resources/stepfunctions/StateMachine.py
@@ -51,7 +51,7 @@ def _ch... |
pretix__pretix-882 | rich_text: tel schema
When providing email links using the mailto schema in richtext description like `[Email us!](mailto:mail@weandus.com)`, resulting in [Email us!](mailto:mail@weandus.com), Pretix creates the correct `<a>` tag. However, users also use their mobile phone. It would be awesome to also be able to use th... | [
{
"content": "import urllib.parse\n\nimport bleach\nimport markdown\nfrom bleach import DEFAULT_CALLBACKS\nfrom django import template\nfrom django.conf import settings\nfrom django.core import signing\nfrom django.urls import reverse\nfrom django.utils.http import is_safe_url\nfrom django.utils.safestring impo... | [
{
"content": "import urllib.parse\n\nimport bleach\nimport markdown\nfrom bleach import DEFAULT_CALLBACKS\nfrom django import template\nfrom django.conf import settings\nfrom django.core import signing\nfrom django.urls import reverse\nfrom django.utils.http import is_safe_url\nfrom django.utils.safestring impo... | diff --git a/src/pretix/base/templatetags/rich_text.py b/src/pretix/base/templatetags/rich_text.py
index 1057d74ce82..682ce0cb3a2 100644
--- a/src/pretix/base/templatetags/rich_text.py
+++ b/src/pretix/base/templatetags/rich_text.py
@@ -58,6 +58,8 @@
# Update doc/user/markdown.rst if you change this!
}
+ALLOWED... |
matrix-org__synapse-11827 | `HTTPStatus.*` have started to appear in `Processed request` log lines instead of an integer
An example log line from matrix.org:
```
2022-01-24 08:10:36,396 - synapse.access.http.8080 - 445 - INFO - GET-7050353 - xxx.xxx.xxx.xxx - 8080 - {@redacted:matrix.org} Processed request: 0.296sec/0.003sec (0.007sec, 0.000s... | [
{
"content": "# Copyright 2016 OpenMarket Ltd\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli... | [
{
"content": "# Copyright 2016 OpenMarket Ltd\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli... | diff --git a/changelog.d/11827.bugfix b/changelog.d/11827.bugfix
new file mode 100644
index 000000000000..30222dfb6269
--- /dev/null
+++ b/changelog.d/11827.bugfix
@@ -0,0 +1 @@
+Fix a bug introduced in Synapse 0.33.3 causing requests to sometimes log strings such as `HTTPStatus.OK` instead of integer status codes.
\ N... |
Pycord-Development__pycord-2337 | Error in cog bridge command ctx annotation
### Summary
Annotating ctx in bridge command inside a cog raises error
### Reproduction Steps
Run the following code
### Minimal Reproducible Code
```python
import os
from discord.ext.commands import Cog
from discord.ext.bridge import Bot, BridgeContext, br... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index fee4580268..157adbc5bd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -222,6 +222,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#2332](https://github.com/Pycord-Development/pycord/issues/2332))
- Fixed options declared using t... |
ansible-collections__community.general-3667 | Allow community.general.ldap_search to be used even in check mode
### Summary
It looks like community.general.ldap_search does no return data if using check mode. You have to use "check_mode=no" to get data if testing. It's a search, so nothing should be changed anyways. So whether or not "--check" is used when callin... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016, Peter Sagerson <psagers@ignorare.net>\n# Copyright: (c) 2020, Sebastian Pfahl <eryx@gmx.net>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import,... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016, Peter Sagerson <psagers@ignorare.net>\n# Copyright: (c) 2020, Sebastian Pfahl <eryx@gmx.net>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import,... | diff --git a/changelogs/fragments/3667-ldap_search.yml b/changelogs/fragments/3667-ldap_search.yml
new file mode 100644
index 00000000000..2b155aefa53
--- /dev/null
+++ b/changelogs/fragments/3667-ldap_search.yml
@@ -0,0 +1,2 @@
+bugfixes:
+ - ldap_search - allow it to be used even in check mode (https://github.com/an... |
cookiecutter__cookiecutter-852 | # -*- coding: utf-8 -*- is not consistently used in all Python source files
- Cookiecutter version:
Cookiecutter 1.4.0
- Template project url:
none
- Python version:
3.5
- Operating System:
OS X
### Description:
# -_\- coding: utf-8 -_\- is not consistently used in all Python source files
### What I've run:... | [
{
"content": "#!/usr/bin/env python\n\nimport os\nimport io\nimport sys\n\nfrom setuptools import setup\n\nversion = \"1.4.0\"\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n os.system('python setup.py bdist_wheel upload')\n sys.exit()\n\nif sys.argv[-1] == 'tag':\n os... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport io\nimport sys\n\nfrom setuptools import setup\n\nversion = \"1.4.0\"\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n os.system('python setup.py bdist_wheel upload')\n sys.exit()\n\nif sys.a... | diff --git a/__main__.py b/__main__.py
index b1c06ffd5..150baaab3 100644
--- a/__main__.py
+++ b/__main__.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
"""Allow cookiecutter to be executable from a checkout or zip file."""
import runpy
diff --git a/cookiecutter/__main__.py b/cookiecutter/__main__.py
index 0d8fccb00..... |
mkdocs__mkdocs-2421 | file-system race condition while testing with mkdocs serve
when mkdocs serve is shutting down, it cleans up after itself removing the temporary directory created earlier.
the condition whether the directory needs to be removed is unchecked and prone to a file system race condition (shared resource).
given the dir... | [
{
"content": "import logging\nimport shutil\nimport tempfile\n\nfrom os.path import isfile, join\nfrom mkdocs.commands.build import build\nfrom mkdocs.config import load_config\nfrom mkdocs.exceptions import Abort\nfrom mkdocs.livereload import LiveReloadServer\n\nlog = logging.getLogger(__name__)\n\n\ndef serv... | [
{
"content": "import logging\nimport shutil\nimport tempfile\n\nfrom os.path import isdir, isfile, join\nfrom mkdocs.commands.build import build\nfrom mkdocs.config import load_config\nfrom mkdocs.exceptions import Abort\nfrom mkdocs.livereload import LiveReloadServer\n\nlog = logging.getLogger(__name__)\n\n\nd... | diff --git a/mkdocs/commands/serve.py b/mkdocs/commands/serve.py
index 3b8ff8012c..a4c864bc32 100644
--- a/mkdocs/commands/serve.py
+++ b/mkdocs/commands/serve.py
@@ -2,7 +2,7 @@
import shutil
import tempfile
-from os.path import isfile, join
+from os.path import isdir, isfile, join
from mkdocs.commands.build impo... |
aws__sagemaker-python-sdk-252 | OSError: [Errno 21] Is a directory. (On local Mode)
### System Information
- **Framework (e.g. TensorFlow) / Algorithm (e.g. KMeans)**: Tensorflow custom algorithm
- **Framework Version**: 1.4.1
- **Python Version**: 2.7
- **CPU or GPU**: CPU
- **Python SDK Version**: 1.5.0
- **Are you using a custom image**: No
... | [
{
"content": "# Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.... | [
{
"content": "# Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.... | diff --git a/src/sagemaker/local/image.py b/src/sagemaker/local/image.py
index b129ea1b38..94122e8a00 100644
--- a/src/sagemaker/local/image.py
+++ b/src/sagemaker/local/image.py
@@ -262,6 +262,9 @@ def _download_folder(self, bucket_name, prefix, target):
bucket = s3.Bucket(bucket_name)
for obj_sum ... |
freedomofpress__securedrop-3990 | Add Greek (el) language as supported language
## Description
Add [Greek](https://weblate.securedrop.org/projects/securedrop/securedrop/el/) language as a supported language.
## User Research Evidence
The language is fully translated and reviewed in the weblate.
| [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport argparse\nimport io\nimport logging\nimport os\nimport glob\nimport re\nimport signal\nimport subprocess\nimport sys\nimport textwrap\nimport version\n\nfrom os.path import dirname, join, realpath\n\nfrom sh import git, pybabel, sed, msgmerg... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport argparse\nimport io\nimport logging\nimport os\nimport glob\nimport re\nimport signal\nimport subprocess\nimport sys\nimport textwrap\nimport version\n\nfrom os.path import dirname, join, realpath\n\nfrom sh import git, pybabel, sed, msgmerg... | diff --git a/docs/includes/l10n.txt b/docs/includes/l10n.txt
index 75fcc3bde7..6f8fe02d08 100644
--- a/docs/includes/l10n.txt
+++ b/docs/includes/l10n.txt
@@ -2,6 +2,7 @@
* Arabic (``ar``)
* German (``de_DE``)
+* Greek (``el``)
* Spanish (``es_ES``)
* French (``fr_FR``)
* Hindi (``hi``)
diff --git a/install_file... |
open-mmlab__mmaction2-1355 | ssn_head.py device unaligned
**Describe the bug**
I trained a SSN successfully on a new dataset. But when I test the checkpoint, an error raised. And I think it's a inner bug.
**Reproduction**
1. What command or script did you run?
```
PYTHONPATH=$PWD:$PYTHONPATH mim test mmaction configs/localization/ss... | [
{
"content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport torch\nimport torch.nn as nn\n\nfrom .. import builder\nfrom ..builder import LOCALIZERS\nfrom .base import BaseTAGClassifier\n\n\n@LOCALIZERS.register_module()\nclass SSN(BaseTAGClassifier):\n \"\"\"Temporal Action Detection with Structur... | [
{
"content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport torch\nimport torch.nn as nn\n\nfrom .. import builder\nfrom ..builder import LOCALIZERS\nfrom .base import BaseTAGClassifier\n\n\n@LOCALIZERS.register_module()\nclass SSN(BaseTAGClassifier):\n \"\"\"Temporal Action Detection with Structur... | diff --git a/mmaction/models/localizers/ssn.py b/mmaction/models/localizers/ssn.py
index a92ce1cf68..3136d651f6 100644
--- a/mmaction/models/localizers/ssn.py
+++ b/mmaction/models/localizers/ssn.py
@@ -114,6 +114,7 @@ def forward_test(self, imgs, relative_proposal_list, scale_factor_list,
relative_proposal_li... |
HypothesisWorks__hypothesis-1171 | error importing Django, even when test doesn't use Django
If created a hypothesis test like follows:
```
import unittest
from hypothesis import given
from <custom-composite-strategy-module> import rc_visard_configurations
class TestComponentState(unittest.TestCase):
@given(rc_visard_configurations())
... | [
{
"content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2018 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f... | [
{
"content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2018 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f... | diff --git a/RELEASE.rst b/RELEASE.rst
new file mode 100644
index 0000000000..d97ad2393f
--- /dev/null
+++ b/RELEASE.rst
@@ -0,0 +1,5 @@
+RELEASE_TYPE: patch
+
+This patch fixes an internal error introduced in 3.48.0, where a check
+for the Django test runner would expose import-time errors in Django
+configuration (:i... |
Lightning-AI__torchmetrics-2307 | packaging.metadata: `_tests` in `provides-extra` breaks pep-685 compliance
## 🐛 Bug
When building the `.whl` and installing it, I get the following error:
```
packaging.metadata.ExceptionGroup: ('invalid metadata', [InvalidMetadata("'_tests' is invalid for 'provides-extra'")])
```
I guess that [the choice of `_... | [
{
"content": "#!/usr/bin/env python\nimport glob\nimport os\nimport re\nfrom functools import partial\nfrom importlib.util import module_from_spec, spec_from_file_location\nfrom itertools import chain\nfrom pathlib import Path\nfrom typing import Any, Iterable, Iterator, List, Optional, Tuple, Union\n\nfrom pkg... | [
{
"content": "#!/usr/bin/env python\nimport glob\nimport os\nimport re\nfrom functools import partial\nfrom importlib.util import module_from_spec, spec_from_file_location\nfrom itertools import chain\nfrom pathlib import Path\nfrom typing import Any, Iterable, Iterator, List, Optional, Tuple, Union\n\nfrom pkg... | diff --git a/setup.py b/setup.py
index 968c32d65c3..6f2e6f06455 100755
--- a/setup.py
+++ b/setup.py
@@ -190,7 +190,7 @@ def _prepare_extras(skip_pattern: str = "^_", skip_files: Tuple[str] = ("base.tx
# create an 'all' keyword that install all possible dependencies
extras_req["all"] = list(chain([pkgs for k,... |
ansible-collections__community.general-5744 | plugins.callback.unixy: Warning 'CallbackModule' object has no attribute 'display_failed_stderr'
### Summary
When using the `community.general.unixy` callback plugin with a recent version of ansible I get a warning `'CallbackModule' object has no attribute 'display_failed_stderr'` and the task output is not shown.
... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2017, Allyson Bowles <@akatch>\n# Copyright (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-l... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2017, Allyson Bowles <@akatch>\n# Copyright (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-l... | diff --git a/changelogs/fragments/5744-unixy-callback-fix-config-manager-typo.yml b/changelogs/fragments/5744-unixy-callback-fix-config-manager-typo.yml
new file mode 100644
index 00000000000..d60b43d3d41
--- /dev/null
+++ b/changelogs/fragments/5744-unixy-callback-fix-config-manager-typo.yml
@@ -0,0 +1,2 @@
+bugfixes:... |
ansible-collections__community.general-5746 | plugins.callback.unixy: Warning 'CallbackModule' object has no attribute 'display_failed_stderr'
### Summary
When using the `community.general.unixy` callback plugin with a recent version of ansible I get a warning `'CallbackModule' object has no attribute 'display_failed_stderr'` and the task output is not shown.
... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2017, Allyson Bowles <@akatch>\n# Copyright (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-l... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2017, Allyson Bowles <@akatch>\n# Copyright (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-l... | diff --git a/changelogs/fragments/5744-unixy-callback-fix-config-manager-typo.yml b/changelogs/fragments/5744-unixy-callback-fix-config-manager-typo.yml
new file mode 100644
index 00000000000..d60b43d3d41
--- /dev/null
+++ b/changelogs/fragments/5744-unixy-callback-fix-config-manager-typo.yml
@@ -0,0 +1,2 @@
+bugfixes:... |
freedomofpress__securedrop-3984 | Add Greek (el) language as supported language
## Description
Add [Greek](https://weblate.securedrop.org/projects/securedrop/securedrop/el/) language as a supported language.
## User Research Evidence
The language is fully translated and reviewed in the weblate.
| [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport argparse\nimport io\nimport logging\nimport os\nimport glob\nimport re\nimport signal\nimport subprocess\nimport sys\nimport textwrap\nimport version\n\nfrom os.path import dirname, join, realpath\n\nfrom sh import git, pybabel, sed, msgmerg... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport argparse\nimport io\nimport logging\nimport os\nimport glob\nimport re\nimport signal\nimport subprocess\nimport sys\nimport textwrap\nimport version\n\nfrom os.path import dirname, join, realpath\n\nfrom sh import git, pybabel, sed, msgmerg... | diff --git a/docs/includes/l10n.txt b/docs/includes/l10n.txt
index 75fcc3bde7..6f8fe02d08 100644
--- a/docs/includes/l10n.txt
+++ b/docs/includes/l10n.txt
@@ -2,6 +2,7 @@
* Arabic (``ar``)
* German (``de_DE``)
+* Greek (``el``)
* Spanish (``es_ES``)
* French (``fr_FR``)
* Hindi (``hi``)
diff --git a/install_file... |
cal-itp__benefits-1030 | Bug: Error page bug - Log out button too low
A clear and concise description of what the bug is.
## To Reproduce
Steps to reproduce the behavior:
1. Go through the Login.gov IAL2 flow with a user who is under age 65
2. See error
## Expected behavior
A clear and concise description of what you expected t... | [
{
"content": "\"\"\"\nThe enrollment application: view definitions for the benefits enrollment flow.\n\"\"\"\nimport logging\n\nfrom django.http import JsonResponse\nfrom django.template.response import TemplateResponse\nfrom django.urls import reverse\nfrom django.utils.html import format_html\nfrom django.uti... | [
{
"content": "\"\"\"\nThe enrollment application: view definitions for the benefits enrollment flow.\n\"\"\"\nimport logging\n\nfrom django.http import JsonResponse\nfrom django.template.response import TemplateResponse\nfrom django.urls import reverse\nfrom django.utils.html import format_html\nfrom django.uti... | diff --git a/benefits/core/templates/core/includes/previous-page-link.html b/benefits/core/templates/core/includes/previous-page-link.html
index a13e43bf00..ea0c8c777c 100644
--- a/benefits/core/templates/core/includes/previous-page-link.html
+++ b/benefits/core/templates/core/includes/previous-page-link.html
@@ -1,3 +... |
common-workflow-language__cwltool-554 | UnboundLocalError: local variable 'dockerimg' referenced before assignment
```
.virtualenv/bin/cwltool \
--enable-ext \
--outdir results \
--cachedir cache \
workflow.cwl \
job.cwl
.virtualenv/bin/cwltool 1.0.20171017195544
Resolved 'workflow.cwl' to 'file:///home/gijs/prefactor-cwl/workflow.cwl'
[workflo... | [
{
"content": "from __future__ import absolute_import\nimport copy\nimport hashlib\nimport json\nimport logging\nimport os\nimport re\nimport shutil\nimport tempfile\nfrom functools import partial\nfrom typing import Any, Callable, Dict, Generator, List, Optional, Set, Text, Union, cast\n\nfrom six import string... | [
{
"content": "from __future__ import absolute_import\nimport copy\nimport hashlib\nimport json\nimport logging\nimport os\nimport re\nimport shutil\nimport tempfile\nfrom functools import partial\nfrom typing import Any, Callable, Dict, Generator, List, Optional, Set, Text, Union, cast\n\nfrom six import string... | diff --git a/cwltool/draft2tool.py b/cwltool/draft2tool.py
index b80751b13..bb5669269 100644
--- a/cwltool/draft2tool.py
+++ b/cwltool/draft2tool.py
@@ -264,6 +264,8 @@ def job(self,
dockerimg = docker_req.get("dockerImageId") or docker_req.get("dockerPull")
elif kwargs.get("default_contai... |
cltk__cltk-906 | Fix broken NER doctest
Open to anyone.
This simple NER doctest: https://github.com/cltk/cltk/blob/9b9cdb42dcc1c707ab3db3ef8214837bb7c262b5/cltk/tag/ner.py#L78
is all of a sudden failing (example: https://travis-ci.org/cltk/cltk/jobs/525125856#L1935 ).
The test expects 4 padded spaces on the left.
I have no ... | [
{
"content": "\"\"\"Named entity recognition (NER).\"\"\"\n\nfrom cltk.corpus.utils.importer import CorpusImporter\nfrom nltk.tokenize.punkt import PunktLanguageVars\nfrom cltk.tokenize.word import WordTokenizer\nimport os\nimport importlib.machinery\n\n__author__ = ['Natasha Voake <natashavoake@gmail.com>']\n_... | [
{
"content": "\"\"\"Named entity recognition (NER).\"\"\"\n\nfrom cltk.corpus.utils.importer import CorpusImporter\nfrom nltk.tokenize.punkt import PunktLanguageVars\nfrom cltk.tokenize.word import WordTokenizer\nimport os\nimport importlib.machinery\n\n__author__ = ['Natasha Voake <natashavoake@gmail.com>']\n_... | diff --git a/cltk/tag/ner.py b/cltk/tag/ner.py
index 1aa94cab6..5b79d4fda 100644
--- a/cltk/tag/ner.py
+++ b/cltk/tag/ner.py
@@ -74,10 +74,6 @@ def _check_latest_data(lang):
def tag_ner(lang, input_text, output_type=list):
"""Run NER for chosen language.
- Choosing output_type=list, returns a list of tuples:... |
certbot__certbot-8310 | Reduce "During handling of the above exception, another exception occurred" CLI output
Sometimes when encountering exceptions, Certbot outputs multiple stack traces on the CLI which are almost identical.
These take up a lot of room, and make any other important output hard to read.
As part of the terminal output... | [
{
"content": "\"\"\"Registers functions to be called if an exception or signal occurs.\"\"\"\nimport functools\nimport logging\nimport signal\nimport traceback\n\nfrom acme.magic_typing import Any\nfrom acme.magic_typing import Callable\nfrom acme.magic_typing import Dict\nfrom acme.magic_typing import List\nfr... | [
{
"content": "\"\"\"Registers functions to be called if an exception or signal occurs.\"\"\"\nimport functools\nimport logging\nimport signal\nimport traceback\n\nfrom acme.magic_typing import Any\nfrom acme.magic_typing import Callable\nfrom acme.magic_typing import Dict\nfrom acme.magic_typing import List\nfr... | diff --git a/certbot/CHANGELOG.md b/certbot/CHANGELOG.md
index d4b7ac21b6a..0ff09b5e2b4 100644
--- a/certbot/CHANGELOG.md
+++ b/certbot/CHANGELOG.md
@@ -14,6 +14,7 @@ Certbot adheres to [Semantic Versioning](https://semver.org/).
* Update the packaging instructions to promote usage of `python -m pytest` to test Certbo... |
certbot__certbot-8646 | 1.12.0 fails to build manpage
Because of the addition of `man` to the `exclude_patterns` list in docs/conf.py, sphinx is no longer able to build the manpage `certbot.1`.
This has been fixed downstream with the deletion of the directory from the `exclude_patterns` list.
| [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Certbot documentation build configuration file, created by\n# sphinx-quickstart on Sun Nov 23 20:35:21 2014.\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 th... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Certbot documentation build configuration file, created by\n# sphinx-quickstart on Sun Nov 23 20:35:21 2014.\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 th... | diff --git a/acme/docs/conf.py b/acme/docs/conf.py
index 9d3c4d05cc9..d419326df92 100644
--- a/acme/docs/conf.py
+++ b/acme/docs/conf.py
@@ -87,7 +87,6 @@
# directories to ignore when looking for source files.
exclude_patterns = [
'_build',
- 'man/*'
]
# The reST default role (used for this markup: `text`... |
web2py__web2py-1741 | Shell.py doesn't work in Python 3
When trying to run web2py from shell under python3 it throws an exception since shell.py calls execfile() func:
Traceback (most recent call last):
File "/Users/dev/Projects/www/gluon/shell.py", line 270, in run
execfile(startfile, _env)
NameError: name 'execfile' is not def... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n| This file is part of the web2py Web Framework\n| Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu>,\n| limodou <limodou@gmail.com> and srackham <srackham@gmail.com>.\n| License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nWeb... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n| This file is part of the web2py Web Framework\n| Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu>,\n| limodou <limodou@gmail.com> and srackham <srackham@gmail.com>.\n| License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nWeb... | diff --git a/gluon/shell.py b/gluon/shell.py
index b6c8f27ba..38d12ec49 100644
--- a/gluon/shell.py
+++ b/gluon/shell.py
@@ -31,10 +31,16 @@
from gluon.storage import Storage, List
from gluon.admin import w2p_unpack
from pydal.base import BaseAdapter
-from gluon._compat import iteritems, ClassType
+from gluon._compa... |
pyca__cryptography-1516 | Bind SSL_CTX_check_private_key
pyOpenSSL 0.14 needed this (oops). pyOpenSSL 0.15 will definitely need it.
| [
{
"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\nINCLUDES = \"\"\"\n#include <openssl/ssl.h>\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\nINCLUDES = \"\"\"\n#include <openssl/ssl.h>\n... | diff --git a/src/cryptography/hazmat/bindings/openssl/ssl.py b/src/cryptography/hazmat/bindings/openssl/ssl.py
index 4a94ce03b61a..87c1429cdcf7 100644
--- a/src/cryptography/hazmat/bindings/openssl/ssl.py
+++ b/src/cryptography/hazmat/bindings/openssl/ssl.py
@@ -211,6 +211,8 @@
int SSL_CTX_use_certificate_chain_file(S... |
huggingface__transformers-6098 | mBART: incorrect <mask> token id
# 🐛 Bug
## Information
Model I am using: mBART
## To reproduce
```
from transformers import MBartTokenizer
tokenizer = MBartTokenizer.from_pretrained('facebook/mbart-large-cc25')
print(tokenizer.convert_tokens_to_ids(['<mask>', 'ar_AR']))
```
The output for the above c... | [
{
"content": "# coding=utf-8\n# Copyright 2020 The Facebook AI Research Team Authors and The HuggingFace Inc. team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# htt... | [
{
"content": "# coding=utf-8\n# Copyright 2020 The Facebook AI Research Team Authors and The HuggingFace Inc. team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# htt... | diff --git a/src/transformers/tokenization_bart.py b/src/transformers/tokenization_bart.py
index c83ad0d333e2..499895e0bda6 100644
--- a/src/transformers/tokenization_bart.py
+++ b/src/transformers/tokenization_bart.py
@@ -122,6 +122,7 @@ def __init__(self, *args, **kwargs):
}
self.id_to_lang_code = {... |
AnalogJ__lexicon-384 | gandi: updating deletes all record of same rtype
When using Gandi provider, if you update a specific record with a specific type, all records with a matching name will be deleted.
The if-condition handling the case is not correct.
| [
{
"content": "\"\"\"Provide support to Lexicon for Gandi LiveDNS and Gandi XMLRPC changes.\n\nLexicon provides a common interface for querying and managing DNS services\nthrough those services' APIs. This module implements the Lexicon interface\nagainst the Gandi API.\n\nGandi introduced the LiveDNS API (http:/... | [
{
"content": "\"\"\"Provide support to Lexicon for Gandi LiveDNS and Gandi XMLRPC changes.\n\nLexicon provides a common interface for querying and managing DNS services\nthrough those services' APIs. This module implements the Lexicon interface\nagainst the Gandi API.\n\nGandi introduced the LiveDNS API (http:/... | diff --git a/CODEOWNERS b/CODEOWNERS
index 1ca1299f5..9888f5472 100644
--- a/CODEOWNERS
+++ b/CODEOWNERS
@@ -27,7 +27,7 @@ lexicon/providers/dnspod.py @analogj
lexicon/providers/easydns.py @analogj
lexicon/providers/easyname.py @astzweig @rqelibari
lexicon/providers/exoscale.py @greut @bru... |
urllib3__urllib3-603 | Really don't spam InsecurePlatformWarning
urllib3 should configure its warnings using append=True to avoid overriding the user's preferences as specified with python -W or PYTHONWARNINGS.
If this issue were fixed, the user could work around pypa/pip#2681 with
```
export PYTHONWARNINGS="ignore:A true SSLContext object... | [
{
"content": "\"\"\"\nurllib3 - Thread-safe connection pooling and re-using.\n\"\"\"\n\n__author__ = 'Andrey Petrov (andrey.petrov@shazow.net)'\n__license__ = 'MIT'\n__version__ = '1.10.2'\n\n\nfrom .connectionpool import (\n HTTPConnectionPool,\n HTTPSConnectionPool,\n connection_from_url\n)\n\nfrom .... | [
{
"content": "\"\"\"\nurllib3 - Thread-safe connection pooling and re-using.\n\"\"\"\n\n__author__ = 'Andrey Petrov (andrey.petrov@shazow.net)'\n__license__ = 'MIT'\n__version__ = '1.10.2'\n\n\nfrom .connectionpool import (\n HTTPConnectionPool,\n HTTPSConnectionPool,\n connection_from_url\n)\n\nfrom .... | diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 4a7f70a2ff..580730758f 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -145,6 +145,9 @@ In chronological order:
* Tomas Tomecek <ttomecek@redhat.com>
* Implemented generator for getting chunks from chunked responses.
+* tlynn <https://github.com/tlynn... |
scikit-image__scikit-image-1052 | Error revealed by numpy 1.9.0r1
```
======================================================================
ERROR: test_join.test_relabel_sequential_offset1
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python27-x64\lib\site-packages\nose\case.py", l... | [
{
"content": "import numpy as np\nfrom skimage._shared.utils import deprecated\n\n\ndef join_segmentations(s1, s2):\n \"\"\"Return the join of the two input segmentations.\n\n The join J of S1 and S2 is defined as the segmentation in which two\n voxels are in the same segment if and only if they are in... | [
{
"content": "import numpy as np\nfrom skimage._shared.utils import deprecated\n\n\ndef join_segmentations(s1, s2):\n \"\"\"Return the join of the two input segmentations.\n\n The join J of S1 and S2 is defined as the segmentation in which two\n voxels are in the same segment if and only if they are in... | diff --git a/skimage/segmentation/_join.py b/skimage/segmentation/_join.py
index 7b6d2a3eaf6..5cceeb5b995 100644
--- a/skimage/segmentation/_join.py
+++ b/skimage/segmentation/_join.py
@@ -124,7 +124,7 @@ def relabel_sequential(label_field, offset=1):
if m == len(labels0): # nothing to do, already 1...n labels
... |
RedHatInsights__insights-core-2098 | CLI dumps tracebacks instead of simple message
The CLI for insights isn't protected with a top level try / catch, so some tracebacks resulting from bad arguments get dumped to the console. It should just print the error message instead.
| [
{
"content": "\"\"\"\nThis module implements an inversion of control framework. It allows\ndependencies among functions and classes to be declared with decorators and the\nresulting dependency graphs to be executed.\n\nA decorator used to declare dependencies is called a :class:`ComponentType`, a\ndecorated fun... | [
{
"content": "\"\"\"\nThis module implements an inversion of control framework. It allows\ndependencies among functions and classes to be declared with decorators and the\nresulting dependency graphs to be executed.\n\nA decorator used to declare dependencies is called a :class:`ComponentType`, a\ndecorated fun... | diff --git a/insights/command_parser.py b/insights/command_parser.py
index c527a86d0f..40f2c525a6 100644
--- a/insights/command_parser.py
+++ b/insights/command_parser.py
@@ -85,7 +85,10 @@ def fix_arg_dashes():
def main():
fix_arg_dashes()
- InsightsCli()
+ try:
+ InsightsCli()
+ except BaseExc... |
django-oscar__django-oscar-2155 | Can't re-add removed product to the range
After product was removed though the dashboard range edit and then added again, it does not appear in products list.
| [
{
"content": "import itertools\nimport operator\nimport os\nimport re\nfrom decimal import Decimal as D\nfrom decimal import ROUND_DOWN\n\nfrom django.conf import settings\nfrom django.core import exceptions\nfrom django.core.urlresolvers import reverse\nfrom django.db import models\nfrom django.db.models.query... | [
{
"content": "import itertools\nimport operator\nimport os\nimport re\nfrom decimal import Decimal as D\nfrom decimal import ROUND_DOWN\n\nfrom django.conf import settings\nfrom django.core import exceptions\nfrom django.core.urlresolvers import reverse\nfrom django.db import models\nfrom django.db.models.query... | diff --git a/src/oscar/apps/offer/abstract_models.py b/src/oscar/apps/offer/abstract_models.py
index ae81b28b5ea..ce08704ff60 100644
--- a/src/oscar/apps/offer/abstract_models.py
+++ b/src/oscar/apps/offer/abstract_models.py
@@ -840,6 +840,12 @@ def add_product(self, product, display_order=None):
relation.... |
aio-libs__aiohttp-2775 | "InvalidStateError: invalid state" when data is chunked
I am use simple aiohttp (3.0.2) server for Telegram bot:
```
API_TOKEN = 'XXXXxxXXXXxxxxxx-XXXXXXX_xxxxXXXXXx'
bot = telebot.TeleBot(API_TOKEN)
app = web.Application()
async def handle(request):
if request.match_info.get('token') == bot.token:
... | [
{
"content": "import asyncio\nimport asyncio.streams\nimport http.server\nimport traceback\nimport warnings\nfrom collections import deque\nfrom contextlib import suppress\nfrom html import escape as html_escape\n\nimport yarl\n\nfrom . import helpers, http\nfrom .helpers import CeilTimeout\nfrom .http import H... | [
{
"content": "import asyncio\nimport asyncio.streams\nimport http.server\nimport traceback\nimport warnings\nfrom collections import deque\nfrom contextlib import suppress\nfrom html import escape as html_escape\n\nimport yarl\n\nfrom . import helpers, http\nfrom .helpers import CeilTimeout\nfrom .http import H... | diff --git a/CHANGES.rst b/CHANGES.rst
index 31aa2f2e2ef..36373920daf 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -14,6 +14,12 @@ Changelog
.. towncrier release notes start
+3.0.5 (2018-02-27)
+==================
+
+- Fix ``InvalidStateError`` on processing a sequence of two
+ ``RequestHandler.data_received`` c... |
mlflow__mlflow-3822 | [BUG] - Logging a metric with a boolean value freezes the UI with no error when logging
### Willingness to contribute
The MLflow Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the MLflow code base?
- [ ] Yes. I can contribu... | [
{
"content": "\"\"\"\nUtilities for validating user inputs such as metric names and parameter names.\n\"\"\"\nimport numbers\nimport posixpath\nimport re\n\nfrom mlflow.exceptions import MlflowException\nfrom mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE\nfrom mlflow.store.db.db_types import DATAB... | [
{
"content": "\"\"\"\nUtilities for validating user inputs such as metric names and parameter names.\n\"\"\"\nimport numbers\nimport posixpath\nimport re\n\nfrom mlflow.exceptions import MlflowException\nfrom mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE\nfrom mlflow.store.db.db_types import DATAB... | diff --git a/mlflow/utils/validation.py b/mlflow/utils/validation.py
index 6fdb6daed55f0..90dcfcac702d7 100644
--- a/mlflow/utils/validation.py
+++ b/mlflow/utils/validation.py
@@ -69,7 +69,9 @@ def _validate_metric(key, value, timestamp, step):
it isn't.
"""
_validate_metric_name(key)
- if not isinst... |
scipy__scipy-15459 | `integrate.quad_vec` missing documentation for `limit` parameter
The `limit=1000` parameter is included in the function signature but not documented. It is not clear that this functions in the same way as the parameter with the same name for `integrate.quad` (I do not seem to be able to trigger a warning for the limit... | [
{
"content": "import sys\nimport copy\nimport heapq\nimport collections\nimport functools\n\nimport numpy as np\n\nfrom scipy._lib._util import MapWrapper, _FunctionWrapper\n\n\nclass LRUDict(collections.OrderedDict):\n def __init__(self, max_size):\n self.__max_size = max_size\n\n def __setitem__(... | [
{
"content": "import sys\nimport copy\nimport heapq\nimport collections\nimport functools\n\nimport numpy as np\n\nfrom scipy._lib._util import MapWrapper, _FunctionWrapper\n\n\nclass LRUDict(collections.OrderedDict):\n def __init__(self, max_size):\n self.__max_size = max_size\n\n def __setitem__(... | diff --git a/scipy/integrate/_quad_vec.py b/scipy/integrate/_quad_vec.py
index a4b35b3cd587..7274988a5312 100644
--- a/scipy/integrate/_quad_vec.py
+++ b/scipy/integrate/_quad_vec.py
@@ -122,6 +122,9 @@ def quad_vec(f, a, b, epsabs=1e-200, epsrel=1e-8, norm='2', cache_size=100e6, li
Vector norm to use for erro... |
kubeflow__pipelines-5290 | [Bug] KeyValueStore fails to check the cached data with new data
Typo bug.
```
def store_value_bytes(self, key: str, data: bytes) -> str:
...
if cache_value_file_path.exists():
old_data = cache_value_file_path.write_bytes()
...
```
should be:
```
def store_value_bytes(self, key: st... | [
{
"content": "import hashlib\nfrom pathlib import Path\n\n\nclass KeyValueStore:\n KEY_FILE_SUFFIX = '.key'\n VALUE_FILE_SUFFIX = '.value'\n\n def __init__(\n self,\n cache_dir: str,\n ):\n cache_dir = Path(cache_dir)\n hash_func = (lambda text: hashlib.sha256(text.encode... | [
{
"content": "import hashlib\nfrom pathlib import Path\n\n\nclass KeyValueStore:\n KEY_FILE_SUFFIX = '.key'\n VALUE_FILE_SUFFIX = '.value'\n\n def __init__(\n self,\n cache_dir: str,\n ):\n cache_dir = Path(cache_dir)\n hash_func = (lambda text: hashlib.sha256(text.encode... | diff --git a/sdk/python/kfp/components/_key_value_store.py b/sdk/python/kfp/components/_key_value_store.py
index 32297bcee12..bd2e6ce38a4 100644
--- a/sdk/python/kfp/components/_key_value_store.py
+++ b/sdk/python/kfp/components/_key_value_store.py
@@ -31,7 +31,7 @@ def store_value_bytes(self, key: str, data: bytes) ->... |
apache__airflow-31477 | cleanup-pod CLI command fails due to incorrect host
### Apache Airflow version
2.6.1
### What happened
When running `airflow kubernetes cleanup-pods`, the API call to delete a pod fails. A snippet of the log is below:
```
urllib3.exceptions.MaxRetryError:
HTTPConnectionPool(host='localhost', port=80): Max... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | diff --git a/airflow/cli/commands/kubernetes_command.py b/airflow/cli/commands/kubernetes_command.py
index efdcd6aec6afc..25cfecc2b47b9 100644
--- a/airflow/cli/commands/kubernetes_command.py
+++ b/airflow/cli/commands/kubernetes_command.py
@@ -148,8 +148,8 @@ def cleanup_pods(args):
def _delete_pod(name, namespace)... |
interactions-py__interactions.py-1394 | [BUG] fetch_guild() method not working.
### Library Version
5.2.0
### Describe the Bug
When calling Client.fetch_guild(_id_, force=True) the traceback reports:
`Traceback (most recent call last):
File "/home/ubuntu/discord/bot-venv/lib/python3.10/site-packages/interactions/client/client.py", line 1810, in __di... | [
{
"content": "from typing import TYPE_CHECKING, List, cast, Mapping, Any\n\nimport discord_typings\n\nfrom interactions.client.utils.serializer import dict_filter_none\nfrom interactions.models.internal.protocols import CanRequest\nfrom ..route import Route, PAYLOAD_TYPE\n\n__all__ = (\"GuildRequests\",)\n\n\ni... | [
{
"content": "from typing import TYPE_CHECKING, List, cast, Mapping, Any\n\nimport discord_typings\n\nfrom interactions.client.utils.serializer import dict_filter_none\nfrom interactions.models.internal.protocols import CanRequest\nfrom ..route import Route, PAYLOAD_TYPE\n\n__all__ = (\"GuildRequests\",)\n\n\ni... | diff --git a/interactions/api/http/http_requests/guild.py b/interactions/api/http/http_requests/guild.py
index 9485ec328..b2bbae055 100644
--- a/interactions/api/http/http_requests/guild.py
+++ b/interactions/api/http/http_requests/guild.py
@@ -54,8 +54,8 @@ async def get_guild(self, guild_id: "Snowflake_Type", with_co... |
OpenNMT__OpenNMT-tf-644 | GPT2 training reports on source and target words
When training a language mode (GPT2) model - we can see the following logs:
```
INFO:tensorflow:Evaluation result for step 20000: perplexity = 99.456184 ; loss = 4.599717
INFO:tensorflow:Step = 20100 ; steps/s = 2.09, source words/s = 6382, target words/s = 6382 ; Lea... | [
{
"content": "\"\"\"Training related classes and functions.\"\"\"\n\nimport abc\nimport contextlib\nimport time\n\nimport tensorflow as tf\n\nfrom opennmt.optimizers import utils as optimizer_util\nfrom opennmt.utils import misc\n\n\nclass Trainer(abc.ABC):\n \"\"\"Base class for model trainer.\"\"\"\n\n def ... | [
{
"content": "\"\"\"Training related classes and functions.\"\"\"\n\nimport abc\nimport contextlib\nimport time\n\nimport tensorflow as tf\n\nfrom opennmt.optimizers import utils as optimizer_util\nfrom opennmt.utils import misc\n\n\nclass Trainer(abc.ABC):\n \"\"\"Base class for model trainer.\"\"\"\n\n def ... | diff --git a/opennmt/training.py b/opennmt/training.py
index 9d246fa79..e56dbf831 100644
--- a/opennmt/training.py
+++ b/opennmt/training.py
@@ -183,7 +183,8 @@ def _run_model(self, source, target):
training_loss = self._model.regularize_loss(
training_loss, variables=self._model.trainable_variables)
... |
apluslms__a-plus-616 | Add max_submissions in the course points API endpoint
This API endpoint `/api/v2/courses/COURSEID/points/USERID/` for course points shows the user's points in exercises. It also includes some exercise info that is also provided by the exercise endpoint (`/api/v2/exercises/ID/`). The points API already contains `max_poi... | [
{
"content": "from rest_framework import serializers\nfrom rest_framework.reverse import reverse\n\nfrom lib.api.fields import NestedHyperlinkedIdentityField\nfrom lib.api.serializers import AplusModelSerializer, HtmlViewField\nfrom userprofile.api.serializers import UserBriefSerializer\nfrom ..models import Su... | [
{
"content": "from rest_framework import serializers\nfrom rest_framework.reverse import reverse\n\nfrom lib.api.fields import NestedHyperlinkedIdentityField\nfrom lib.api.serializers import AplusModelSerializer, HtmlViewField\nfrom userprofile.api.serializers import UserBriefSerializer\nfrom ..models import Su... | diff --git a/exercise/api/full_serializers.py b/exercise/api/full_serializers.py
index e94f26ad0..ca1a71890 100644
--- a/exercise/api/full_serializers.py
+++ b/exercise/api/full_serializers.py
@@ -63,8 +63,6 @@ class Meta(ExerciseBriefSerializer.Meta):
'course',
'is_submittable',
... |
iterative__dvc-9605 | diff: unexpected error when rev_a & rev_b point to the same revision
## Description
`dvc diff <rev_a> <rev_b>` outputs `ERROR: unexpected error - '<rev_a>'` when <rev_a> and <rev_b> happen to point to the same revision.
### Reproduce
There is a Git repo with 4 branches:
<img width="400" src="https://github.co... | [
{
"content": "import errno\nimport logging\nimport os\nfrom collections import defaultdict\nfrom typing import Dict, List, Optional\n\nfrom dvc.repo import locked\nfrom dvc.ui import ui\n\nlogger = logging.getLogger(__name__)\n\n\ndef _path(entry):\n if entry and entry.meta and entry.meta.isdir:\n ret... | [
{
"content": "import errno\nimport logging\nimport os\nfrom collections import defaultdict\nfrom typing import Dict, List, Optional\n\nfrom dvc.repo import locked\nfrom dvc.ui import ui\n\nlogger = logging.getLogger(__name__)\n\n\ndef _path(entry):\n if entry and entry.meta and entry.meta.isdir:\n ret... | diff --git a/dvc/repo/diff.py b/dvc/repo/diff.py
index 5cbfe6640e..d49b7e3ac9 100644
--- a/dvc/repo/diff.py
+++ b/dvc/repo/diff.py
@@ -156,8 +156,13 @@ def onerror(target, _exc):
for target in old_missing & new_missing:
raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), target)
- ... |
TabbycatDebate__tabbycat-843 | Adjudicator popovers fail to generate with no descriptors
The affected code is the 'construct_popover' method (line 543 of utils/tables.py) - When an adjudicator has no descriptors (eg. if they're a solo chair which is unaffiliated with an institution), the descriptors array isn't converted to a string (line 556) and r... | [
{
"content": "import logging\nimport warnings\n\nfrom django.utils import formats\nfrom django.utils.encoding import force_text\nfrom django.utils.translation import gettext as _\nfrom django.utils.translation import ngettext\n\nfrom adjallocation.allocation import AdjudicatorAllocation\nfrom draw.models import... | [
{
"content": "import logging\nimport warnings\n\nfrom django.utils import formats\nfrom django.utils.encoding import force_text\nfrom django.utils.translation import gettext as _\nfrom django.utils.translation import ngettext\n\nfrom adjallocation.allocation import AdjudicatorAllocation\nfrom draw.models import... | diff --git a/tabbycat/utils/tables.py b/tabbycat/utils/tables.py
index 3d882cb504e..1cdc6a4ead9 100644
--- a/tabbycat/utils/tables.py
+++ b/tabbycat/utils/tables.py
@@ -552,8 +552,7 @@ def construct_popover(adjs_data):
descriptors.append("<span class='text-danger'>in minority</span>")
... |
OpenNMT__OpenNMT-tf-291 | Crash trying to export model using SequenceRecordInputter
What I see its calling to _get_serving_input inside SequenceRecordInputter before make_dataset
is called. so self.input_depth doesn't exist yet
File "/usr/local/lib/python3.6/dist-packages/opennmt/bin/main.py", line 179, in main
export_dir_base=args.ex... | [
{
"content": "\"\"\"Base class for models.\"\"\"\n\nfrom __future__ import print_function\n\nimport abc\nimport six\n\nimport tensorflow as tf\n\nfrom opennmt.utils import data, hooks\nfrom opennmt.utils.optim import optimize_loss\nfrom opennmt.utils.misc import item_or_tuple\nfrom opennmt.utils.parallel import... | [
{
"content": "\"\"\"Base class for models.\"\"\"\n\nfrom __future__ import print_function\n\nimport abc\nimport six\n\nimport tensorflow as tf\n\nfrom opennmt.utils import data, hooks\nfrom opennmt.utils.optim import optimize_loss\nfrom opennmt.utils.misc import item_or_tuple\nfrom opennmt.utils.parallel import... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 22ec584e2..72fc944ee 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,8 @@ OpenNMT-tf follows [semantic versioning 2.0.0](https://semver.org/). The API cov
### Fixes and improvements
+* Fix error when exporting models containing a `SequenceRecordInputter`
+
... |
pypa__pip-9085 | pip 20.3b1 bug with --pre for already installed package
**Environment**
* pip version: 20.3b1
* Python version: 3.8
* OS: Linux
**Description**
After the release of pip 20.3b1 yesterday we started seeing issues on SciPy CI jobs that use `pip install --pre --upgrade numpy`. Here is a full build log: https://g... | [
{
"content": "import logging\nimport sys\n\nfrom pip._vendor.packaging.specifiers import InvalidSpecifier, SpecifierSet\nfrom pip._vendor.packaging.utils import canonicalize_name\nfrom pip._vendor.packaging.version import Version\n\nfrom pip._internal.exceptions import HashError, MetadataInconsistent\nfrom pip.... | [
{
"content": "import logging\nimport sys\n\nfrom pip._vendor.packaging.specifiers import InvalidSpecifier, SpecifierSet\nfrom pip._vendor.packaging.utils import canonicalize_name\nfrom pip._vendor.packaging.version import Version\n\nfrom pip._internal.exceptions import HashError, MetadataInconsistent\nfrom pip.... | diff --git a/news/9083.bugfix.rst b/news/9083.bugfix.rst
new file mode 100644
index 00000000000..97fc552b6f3
--- /dev/null
+++ b/news/9083.bugfix.rst
@@ -0,0 +1,3 @@
+New resolver: Check version equality with ``packaging.version`` to avoid edge
+cases if a wheel used different version normalization logic in its filenam... |
bridgecrewio__checkov-5886 | CKV_AZURE_234 condition is incorrect
https://github.com/bridgecrewio/checkov/blob/dc6a7cd84c5e006c289f2710b960b7be96a29fae/checkov/terraform/checks/resource/azure/AzureDefenderDisabledForResManager.py#L20C110-L20C118
The condition used in this check is being triggered for all `azurerm_security_center_subscription_pr... | [
{
"content": "from __future__ import annotations\n\nfrom typing import Any\n\nfrom checkov.common.models.enums import CheckCategories, CheckResult\nfrom checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck\n\n\nclass AzureDefenderDisabledForResManager(BaseResourceCheck):\n def __ini... | [
{
"content": "from __future__ import annotations\n\nfrom typing import Any\n\nfrom checkov.common.models.enums import CheckCategories, CheckResult\nfrom checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck\n\n\nclass AzureDefenderDisabledForResManager(BaseResourceCheck):\n def __ini... | diff --git a/checkov/terraform/checks/resource/azure/AzureDefenderDisabledForResManager.py b/checkov/terraform/checks/resource/azure/AzureDefenderDisabledForResManager.py
index 190c312c50..bd6ce09cfc 100644
--- a/checkov/terraform/checks/resource/azure/AzureDefenderDisabledForResManager.py
+++ b/checkov/terraform/check... |
iterative__dvc-1925 | dvc add ignore unprotected files that have not been modified
DVC version 0.29.0 installed via pip on Linux
Following the sequence of commands
dvc unprotect data.dat
(modify data.dat)
dvc add data.dat
Correctly replaces dvc.dat with the correct kind of file link
but
dvc unprotect data.dat
(not modifying)
dv... | [
{
"content": "from __future__ import unicode_literals\n\nfrom dvc.utils.compat import str\n\nimport copy\nimport re\nimport os\nimport subprocess\nimport logging\n\nfrom dvc.utils.fs import contains_symlink_up_to\nfrom schema import Schema, SchemaError, Optional, Or, And\n\nimport dvc.prompt as prompt\nimport d... | [
{
"content": "from __future__ import unicode_literals\n\nfrom dvc.utils.compat import str\n\nimport copy\nimport re\nimport os\nimport subprocess\nimport logging\n\nfrom dvc.utils.fs import contains_symlink_up_to\nfrom schema import Schema, SchemaError, Optional, Or, And\n\nimport dvc.prompt as prompt\nimport d... | diff --git a/dvc/stage.py b/dvc/stage.py
index a569b245af..62ea6278f5 100644
--- a/dvc/stage.py
+++ b/dvc/stage.py
@@ -394,7 +394,21 @@ def is_cached(self):
out.pop(RemoteLOCAL.PARAM_CHECKSUM, None)
out.pop(RemoteS3.PARAM_CHECKSUM, None)
- return old_d == new_d
+ if old_d != ne... |
ivy-llc__ivy-26470 | chunk
| [
{
"content": "# local\nimport ivy\nimport ivy.functional.frontends.paddle as paddle_frontend\nfrom ivy.func_wrapper import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n with_supported_device_and_dtypes,\n)\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\n\n\nclass Tens... | [
{
"content": "# local\nimport ivy\nimport ivy.functional.frontends.paddle as paddle_frontend\nfrom ivy.func_wrapper import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n with_supported_device_and_dtypes,\n)\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\n\n\nclass Tens... | diff --git a/ivy/functional/frontends/paddle/tensor/tensor.py b/ivy/functional/frontends/paddle/tensor/tensor.py
index 7c685e982066b..c251044038bcb 100644
--- a/ivy/functional/frontends/paddle/tensor/tensor.py
+++ b/ivy/functional/frontends/paddle/tensor/tensor.py
@@ -970,3 +970,21 @@ def expand(self, shape, name=None)... |
paperless-ngx__paperless-ngx-2574 | [BUG] Debian 11 32bit: document_exporter fails when document creation date <=1901-12-13 or >= 2038-01-20
### Description
I invoked the document exporter with
sudo -Hu paperless python3 manage.py document_exporter /target/directory --delete --use-filename-format --no-thumbnail --use-folder-prefix --split-man... | [
{
"content": "import hashlib\nimport json\nimport os\nimport shutil\nimport tempfile\nimport time\nfrom pathlib import Path\nfrom typing import List\nfrom typing import Set\n\nimport tqdm\nfrom django.conf import settings\nfrom django.contrib.auth.models import Group\nfrom django.contrib.auth.models import User... | [
{
"content": "import hashlib\nimport json\nimport os\nimport shutil\nimport tempfile\nimport time\nfrom pathlib import Path\nfrom typing import List\nfrom typing import Set\n\nimport tqdm\nfrom django.conf import settings\nfrom django.contrib.auth.models import Group\nfrom django.contrib.auth.models import User... | diff --git a/src/documents/management/commands/document_exporter.py b/src/documents/management/commands/document_exporter.py
index 8e8a4978c88..fdea8aff64a 100644
--- a/src/documents/management/commands/document_exporter.py
+++ b/src/documents/management/commands/document_exporter.py
@@ -311,8 +311,8 @@ def dump(self, ... |
localstack__localstack-6525 | bug: Responses contain mixed-case boolean values
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
I'm using [Localstack with the Rust SDK](https://docs.aws.amazon.com/sdk-for-rust/latest/dg/localstack.html), and it is reporting an error parsing the `RunInstances... | [
{
"content": "import binascii\nimport datetime\nimport json\nimport re\nimport xml.etree.ElementTree as ET\nfrom binascii import crc32\nfrom struct import pack\nfrom typing import Dict, Optional, Union\nfrom urllib.parse import parse_qs\n\nimport xmltodict\nfrom flask import Response as FlaskResponse\nfrom moto... | [
{
"content": "import binascii\nimport datetime\nimport json\nimport re\nimport xml.etree.ElementTree as ET\nfrom binascii import crc32\nfrom struct import pack\nfrom typing import Dict, Optional, Union\nfrom urllib.parse import parse_qs\n\nimport xmltodict\nfrom flask import Response as FlaskResponse\nfrom moto... | diff --git a/localstack/utils/aws/aws_responses.py b/localstack/utils/aws/aws_responses.py
index d560e738feeb0..4c7d9b0f23ca9 100644
--- a/localstack/utils/aws/aws_responses.py
+++ b/localstack/utils/aws/aws_responses.py
@@ -103,8 +103,10 @@ def _to_xml(parent_el: ET.Element, data_rest) -> None:
_to_xm... |
vyperlang__vyper-3885 | await kw displayed to end users when error reporting
### Version Information
* vyper Version (output of `vyper --version`): `0.4.0b6+commit.a9ee6414`
### What's your issue about?
```vyper
@external
def foo():
s: String[2] = staticcall staticcall concat('a', 'b')
return
```
```
File "<unknown>"... | [
{
"content": "import ast as python_ast\nimport tokenize\nfrom decimal import Decimal\nfrom typing import Any, Dict, List, Optional, Union\n\nimport asttokens\n\nfrom vyper.ast import nodes as vy_ast\nfrom vyper.ast.pre_parser import pre_parse\nfrom vyper.compiler.settings import Settings\nfrom vyper.exceptions ... | [
{
"content": "import ast as python_ast\nimport tokenize\nfrom decimal import Decimal\nfrom typing import Any, Dict, List, Optional, Union\n\nimport asttokens\n\nfrom vyper.ast import nodes as vy_ast\nfrom vyper.ast.pre_parser import pre_parse\nfrom vyper.compiler.settings import Settings\nfrom vyper.exceptions ... | diff --git a/vyper/ast/parse.py b/vyper/ast/parse.py
index a4a8617730..690f88d3b5 100644
--- a/vyper/ast/parse.py
+++ b/vyper/ast/parse.py
@@ -60,7 +60,7 @@ def parse_to_ast_with_settings(
py_ast = python_ast.parse(python_source)
except SyntaxError as e:
# TODO: Ensure 1-to-1 match of source_code... |
ResonantGeoData__ResonantGeoData-578 | Storage patch is not thread-safe
This should only happen in development environments or other cases where MinIO is used in a Docker network.
```python
In [1]: from rgd.geodata.models import ChecksumFile
In [2]: from rgd.utility import patch_internal_presign
In [3]: f1 = ChecksumFile.objects.first()
In [4]: f2 = ... | [
{
"content": "import contextlib\nfrom contextlib import contextmanager\nfrom functools import wraps\nimport hashlib\nimport io\nimport logging\nimport os\nfrom pathlib import Path\nimport shutil\nimport tempfile\nfrom typing import Any, Generator\nfrom urllib.error import HTTPError\nfrom urllib.parse import url... | [
{
"content": "import contextlib\nfrom contextlib import contextmanager\nfrom functools import wraps\nimport hashlib\nimport io\nimport logging\nimport os\nfrom pathlib import Path\nimport shutil\nimport tempfile\nfrom typing import Any, Generator\nfrom urllib.error import HTTPError\nfrom urllib.parse import url... | diff --git a/django-rgd/rgd/utility.py b/django-rgd/rgd/utility.py
index 5b026ae8c..3a2759816 100644
--- a/django-rgd/rgd/utility.py
+++ b/django-rgd/rgd/utility.py
@@ -180,6 +180,11 @@ def patch_internal_presign(f: FieldFile):
Sometimes the external host differs from the internal host for Minio files (e.g. in dev... |
ibis-project__ibis-7942 | Potential timezone bug in ibis-framework[postgres]
### What happened?
In upgrading from ibis-framework<7.0 to ibis-framework==7.2 many queries I had written suddenly started returning
unexpected datetime values. I believe this is due to a bug in the way timezones are being handled by the postgres ibis
backend, ... | [
{
"content": "from __future__ import annotations\n\nimport functools\nimport itertools\nimport locale\nimport operator\nimport platform\nimport re\nimport string\n\nimport sqlalchemy as sa\nfrom sqlalchemy.dialects import postgresql as pg\nfrom sqlalchemy.ext.compiler import compiles\nfrom sqlalchemy.sql.functi... | [
{
"content": "from __future__ import annotations\n\nimport functools\nimport itertools\nimport locale\nimport operator\nimport platform\nimport re\nimport string\n\nimport sqlalchemy as sa\nfrom sqlalchemy.dialects import postgresql as pg\nfrom sqlalchemy.ext.compiler import compiles\nfrom sqlalchemy.sql.functi... | diff --git a/ibis/backends/postgres/registry.py b/ibis/backends/postgres/registry.py
index bbca6e9c20db..961fb61741c5 100644
--- a/ibis/backends/postgres/registry.py
+++ b/ibis/backends/postgres/registry.py
@@ -309,11 +309,6 @@ def _table_column(t, op):
sa_table = get_sqla_table(ctx, table)
out_expr = get_col... |
googleapis__google-cloud-python-2992 | [bigtable] InvalidChunk
1. OS type and version
Ubuntu 14.04
2. Python version and virtual environment information `python --version`
Python 2.7.6
3. google-cloud-python version `pip show google-cloud`, `pip show google-<service>` or `pip freeze`
Name: google-cloud-bigtable
Version: 0.22.0
4. Stacktrace i... | [
{
"content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/bigtable/google/cloud/bigtable/row_data.py b/bigtable/google/cloud/bigtable/row_data.py
index f293c93d3c43..60fc1f0ef1e8 100644
--- a/bigtable/google/cloud/bigtable/row_data.py
+++ b/bigtable/google/cloud/bigtable/row_data.py
@@ -366,8 +366,6 @@ def _validate_chunk_row_in_progress(self, chunk):
""... |
modin-project__modin-6534 | BUG: TypeError: __init__() got an unexpected keyword argument 'rich_text'
### Modin version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest released version of Modin.
- [X] I have confirmed this bug exists on the main branch of Mod... | [
{
"content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ... | [
{
"content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ... | diff --git a/modin/core/storage_formats/pandas/parsers.py b/modin/core/storage_formats/pandas/parsers.py
index b003a748eed..5cdfed2e7e3 100644
--- a/modin/core/storage_formats/pandas/parsers.py
+++ b/modin/core/storage_formats/pandas/parsers.py
@@ -652,7 +652,7 @@ def update_row_nums(match):
bytesio = BytesIO(... |
frappe__hrms-75 | Mark attendance considers only joining month and date not year
### Information about bug
Description of the issue
While marking the attendance from the "Mark attendance" button in attendance list, the unmarked dates coming are incorrect.
It compares the joining date of the employee to current month and put the start... | [
{
"content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: GNU General Public License v3. See license.txt\n\n\nimport frappe\nfrom frappe import _\nfrom frappe.model.document import Document\nfrom frappe.query_builder import Criterion\nfrom frappe.utils import cint, cstr, for... | [
{
"content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: GNU General Public License v3. See license.txt\n\n\nimport frappe\nfrom frappe import _\nfrom frappe.model.document import Document\nfrom frappe.query_builder import Criterion\nfrom frappe.utils import cint, cstr, for... | diff --git a/hrms/hr/doctype/attendance/attendance.py b/hrms/hr/doctype/attendance/attendance.py
index 4030de90d0..ddb2044027 100644
--- a/hrms/hr/doctype/attendance/attendance.py
+++ b/hrms/hr/doctype/attendance/attendance.py
@@ -350,10 +350,12 @@ def get_unmarked_days(employee, month, exclude_holidays=0):
start_day... |
onnx__sklearn-onnx-440 | SelectFromModel converted model with threshold such that no features selected give error
SelectFromModel model in Scikit with threshold such that no features are selected returns an array of shape (M, 0), where M is the number of test instances, onnx converter however can't handle it.
RuntimeError: [ONNXRuntimeError... | [
{
"content": "# -------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for\n# license information.\n# -----------------------------------------------------------... | [
{
"content": "# -------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for\n# license information.\n# -----------------------------------------------------------... | diff --git a/skl2onnx/operator_converters/feature_selection.py b/skl2onnx/operator_converters/feature_selection.py
index 51971f8c5..62be0cfec 100644
--- a/skl2onnx/operator_converters/feature_selection.py
+++ b/skl2onnx/operator_converters/feature_selection.py
@@ -14,6 +14,11 @@ def convert_sklearn_feature_selection(sc... |
lutris__lutris-4007 | Provide resolution dimensions in a hex format
Currently, Lutris provides resolution dimensions via the envars $RESOLUTION_WIDTH and $RESOLUTION_HEIGHT, which is incredibly useful.
However, some games have resolutions coded in the Wine registry as DWORDs, which are 6 character long hex numbers (1080 is `000438`, for ex... | [
{
"content": "\"\"\"Install a game by following its install script.\"\"\"\nimport os\nfrom gettext import gettext as _\n\nfrom gi.repository import GLib, GObject\n\nfrom lutris import settings\nfrom lutris.config import LutrisConfig\nfrom lutris.database.games import get_game_by_field\nfrom lutris.gui.dialogs i... | [
{
"content": "\"\"\"Install a game by following its install script.\"\"\"\nimport os\nfrom gettext import gettext as _\n\nfrom gi.repository import GLib, GObject\n\nfrom lutris import settings\nfrom lutris.config import LutrisConfig\nfrom lutris.database.games import get_game_by_field\nfrom lutris.gui.dialogs i... | diff --git a/lutris/installer/interpreter.py b/lutris/installer/interpreter.py
index d5f0efeabe..ceca24fb7e 100644
--- a/lutris/installer/interpreter.py
+++ b/lutris/installer/interpreter.py
@@ -385,6 +385,8 @@ def _substitute(self, template_string):
"RESOLUTION": "x".join(self.current_resolution),
... |
bokeh__bokeh-6724 | Set initial date in date picker in models/file/widgets
This is needed to make image diff not fail when example is run on different days.
| [
{
"content": "from __future__ import print_function\n\n#from datetime import date\n\nfrom bokeh.document import Document\nfrom bokeh.embed import file_html\nfrom bokeh.resources import INLINE\nfrom bokeh.util.browser import view\nfrom bokeh.models import ColumnDataSource\nfrom bokeh.models.layouts import Column... | [
{
"content": "from __future__ import print_function\n\nfrom datetime import date\n\nfrom bokeh.document import Document\nfrom bokeh.embed import file_html\nfrom bokeh.resources import INLINE\nfrom bokeh.util.browser import view\nfrom bokeh.models import ColumnDataSource\nfrom bokeh.models.layouts import Column,... | diff --git a/examples/models/file/widgets.py b/examples/models/file/widgets.py
index c6963ceb3b2..80a35ecbf6f 100644
--- a/examples/models/file/widgets.py
+++ b/examples/models/file/widgets.py
@@ -1,6 +1,6 @@
from __future__ import print_function
-#from datetime import date
+from datetime import date
from bokeh.d... |
ESMCI__cime-1365 | Create a test for DLND
We need a test for DLND where DLND does something.
| [
{
"content": "\"\"\"Class for generating component namelists.\"\"\"\n\n# Typically ignore this.\n# pylint: disable=invalid-name\n\n# Disable these because this is our standard setup\n# pylint: disable=wildcard-import,unused-wildcard-import\n\nimport datetime\nimport re\n\nfrom CIME.XML.standard_module_setup imp... | [
{
"content": "\"\"\"Class for generating component namelists.\"\"\"\n\n# Typically ignore this.\n# pylint: disable=invalid-name\n\n# Disable these because this is our standard setup\n# pylint: disable=wildcard-import,unused-wildcard-import\n\nimport datetime\nimport re\n\nfrom CIME.XML.standard_module_setup imp... | diff --git a/config/cesm/config_grids.xml b/config/cesm/config_grids.xml
index 8fab255610d..a709e2d5338 100644
--- a/config/cesm/config_grids.xml
+++ b/config/cesm/config_grids.xml
@@ -862,10 +862,9 @@
<mask>gx1v7</mask>
</model_grid>
- <model_grid alias="ww3a_ww3a" compset="_WW3">
- <grid name="a... |
ray-project__ray-8933 | [rllib] rllib train ... --checkpoint-at-end flag is ignored
<!--Please include [tune], [rllib], [autoscaler] etc. in the issue title if relevant-->
### What is the problem?
Ray 0.8.5
Python 3.7
MacOS Catalina
PyTorch 1.4.0
No checkpoint is produced when the `--checkpoint-at-end` flag is used. Adding `--chec... | [
{
"content": "#!/usr/bin/env python\n\nimport argparse\nimport os\nfrom pathlib import Path\nimport yaml\n\nimport ray\nfrom ray.cluster_utils import Cluster\nfrom ray.tune.config_parser import make_parser\nfrom ray.tune.result import DEFAULT_RESULTS_DIR\nfrom ray.tune.resources import resources_to_json\nfrom r... | [
{
"content": "#!/usr/bin/env python\n\nimport argparse\nimport os\nfrom pathlib import Path\nimport yaml\n\nimport ray\nfrom ray.cluster_utils import Cluster\nfrom ray.tune.config_parser import make_parser\nfrom ray.tune.result import DEFAULT_RESULTS_DIR\nfrom ray.tune.resources import resources_to_json\nfrom r... | diff --git a/rllib/tests/test_checkpoint_restore.py b/rllib/tests/test_checkpoint_restore.py
index 994a07b84b7f5..276a28d25a8e1 100644
--- a/rllib/tests/test_checkpoint_restore.py
+++ b/rllib/tests/test_checkpoint_restore.py
@@ -124,6 +124,9 @@ def ckpt_restore_test(alg_name, tfe=False):
if abs(a1 - a2... |
bridgecrewio__checkov-5170 | CKV_DOCKER_11 false positive when `--platform` is used
**Describe the issue**
CKV_DOCKER_11 false positive when `--platform` is used (possibly other arguments as well)
For reference: _"CKV_DOCKER_11: "Ensure From Alias are unique for multistage builds."_ In other words, make sure you add `as myAlias` at the end ... | [
{
"content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING\n\nfrom checkov.common.models.enums import CheckCategories, CheckResult\nfrom checkov.dockerfile.base_dockerfile_check import BaseDockerfileCheck\n\nif TYPE_CHECKING:\n from dockerfile_parse.parser import _Instruction\n\n\nc... | [
{
"content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING\n\nfrom checkov.common.models.enums import CheckCategories, CheckResult\nfrom checkov.dockerfile.base_dockerfile_check import BaseDockerfileCheck\n\nif TYPE_CHECKING:\n from dockerfile_parse.parser import _Instruction\n\n\nc... | diff --git a/checkov/dockerfile/checks/AliasIsUnique.py b/checkov/dockerfile/checks/AliasIsUnique.py
index f48918e08c..3c533e8257 100644
--- a/checkov/dockerfile/checks/AliasIsUnique.py
+++ b/checkov/dockerfile/checks/AliasIsUnique.py
@@ -24,13 +24,12 @@ def scan_resource_conf(self, conf: list[_Instruction]) -> tuple[C... |
cowrie__cowrie-818 | TypeError in command "apt-get install"
**Describe the bug**
When using the command "apt-get install XY" while logged in per SSH in the cowrie honeypot, nothing happens.
If you look into the logs, the requested software couldn't be installed but a TypeError is thrown:
```Traceback (most recent call last):
Fil... | [
{
"content": "# Copyright (c) 2009 Upi Tamminen <desaster@gmail.com>\n# See the COPYRIGHT file for more information\n\nfrom __future__ import division, absolute_import\n\nimport random\nimport re\n\nfrom twisted.internet import reactor, defer\nfrom twisted.internet.defer import inlineCallbacks\n\nfrom cowrie.sh... | [
{
"content": "# Copyright (c) 2009 Upi Tamminen <desaster@gmail.com>\n# See the COPYRIGHT file for more information\n\nfrom __future__ import division, absolute_import\n\nimport random\nimport re\n\nfrom twisted.internet import reactor, defer\nfrom twisted.internet.defer import inlineCallbacks\n\nfrom cowrie.sh... | diff --git a/cowrie/commands/apt.py b/cowrie/commands/apt.py
index 3e0443126a..e414944de2 100644
--- a/cowrie/commands/apt.py
+++ b/cowrie/commands/apt.py
@@ -120,7 +120,7 @@ def do_install(self, *args):
packages = {}
for y in [re.sub('[^A-Za-z0-9]', '', x) for x in self.args[1:]]:
packag... |
Netflix__lemur-818 | TypeError: IPv4Address('192.168.0.1') is not JSON serializable
During create new certificate with Subj Alt Name IPAddress
`2017-05-25 16:48:16,503 ERROR: Exception on /api/1/certificates [GET] [in /opt/lemur/lib/python3.4/site-packages/flask/app.py:1560]
Traceback (most recent call last):
File "/opt/lemur/lib/pyth... | [
{
"content": "\"\"\"\n.. module: lemur.common.fields\n :platform: Unix\n :copyright: (c) 2015 by Netflix Inc., see AUTHORS for more\n :license: Apache, see LICENSE for more details.\n.. moduleauthor:: Kevin Glisson <kglisson@netflix.com>\n\"\"\"\nimport arrow\nimport warnings\nimport ipaddress\n\nfrom ... | [
{
"content": "\"\"\"\n.. module: lemur.common.fields\n :platform: Unix\n :copyright: (c) 2015 by Netflix Inc., see AUTHORS for more\n :license: Apache, see LICENSE for more details.\n.. moduleauthor:: Kevin Glisson <kglisson@netflix.com>\n\"\"\"\nimport arrow\nimport warnings\nimport ipaddress\n\nfrom ... | diff --git a/lemur/common/fields.py b/lemur/common/fields.py
index 9bd6bde391..7937ce2481 100644
--- a/lemur/common/fields.py
+++ b/lemur/common/fields.py
@@ -327,7 +327,12 @@ def _serialize(self, value, attr, obj):
name_type = 'DNSName'
elif isinstance(name, x509.IPAddress):
- ... |
Flexget__Flexget-2939 | BUG: Unhandled error in plugin from_transmission
<!---
Before opening an issue, verify:
- Is this a feature request? Post it on https://feathub.com/Flexget/Flexget
- Is this an issue with webui? Make an issue over on https://github.com/Flexget/webui
- Did you recently upgrade? Look at the Change Log and Upgrade A... | [
{
"content": "import base64\nimport os\nimport re\nfrom datetime import datetime, timedelta\nfrom fnmatch import fnmatch\nfrom functools import partial\nfrom netrc import NetrcParseError, netrc\nfrom time import sleep\nfrom urllib.parse import urlparse\n\nfrom loguru import logger\n\nfrom flexget import plugin\... | [
{
"content": "import base64\nimport os\nimport re\nfrom datetime import datetime, timedelta\nfrom fnmatch import fnmatch\nfrom functools import partial\nfrom netrc import NetrcParseError, netrc\nfrom time import sleep\nfrom urllib.parse import urlparse\n\nfrom loguru import logger\n\nfrom flexget import plugin\... | diff --git a/flexget/plugins/clients/transmission.py b/flexget/plugins/clients/transmission.py
index 4f611b41a4..d1b6edea2f 100644
--- a/flexget/plugins/clients/transmission.py
+++ b/flexget/plugins/clients/transmission.py
@@ -86,6 +86,8 @@ def create_rpc_client(self, config):
raise plugin.PluginError("Can... |
googleapis__python-bigquery-1044 | Python 3.10 support
Hello!
It would be great to get python 3.10 supported by this excellent package.
Thanks,
Rustam
| [
{
"content": "# Copyright 2016 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | [
{
"content": "# Copyright 2016 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | diff --git a/noxfile.py b/noxfile.py
index 6f04940c9..1879a5cd8 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -186,7 +186,11 @@ def snippets(session):
session.install("google-cloud-storage", "-c", constraints_path)
session.install("grpcio", "-c", constraints_path)
- session.install("-e", ".[all]", "-c", co... |
mozilla__bugbug-3696 | Drop the `bug` model
The model has been renamed to `defect` in https://github.com/mozilla/bugbug/pull/335/files#diff-74f32ab12cc9be314b1fead3a281590c768699c2e9883b8346066f6c4d6daa90
However, the definition of `bug` model was not dropped.
We need to drop the following line: https://github.com/mozilla/bugbug/blo... | [
{
"content": "# -*- coding: utf-8 -*-\nimport importlib\nimport logging\nfrom typing import Type\n\nfrom bugbug.model import Model\n\nLOGGER = logging.getLogger()\n\n\nMODELS = {\n \"annotateignore\": \"bugbug.models.annotate_ignore.AnnotateIgnoreModel\",\n \"assignee\": \"bugbug.models.assignee.AssigneeM... | [
{
"content": "# -*- coding: utf-8 -*-\nimport importlib\nimport logging\nfrom typing import Type\n\nfrom bugbug.model import Model\n\nLOGGER = logging.getLogger()\n\n\nMODELS = {\n \"annotateignore\": \"bugbug.models.annotate_ignore.AnnotateIgnoreModel\",\n \"assignee\": \"bugbug.models.assignee.AssigneeM... | diff --git a/bugbug/models/__init__.py b/bugbug/models/__init__.py
index 4bb8610c0b..382b413e92 100644
--- a/bugbug/models/__init__.py
+++ b/bugbug/models/__init__.py
@@ -13,7 +13,6 @@
"assignee": "bugbug.models.assignee.AssigneeModel",
"backout": "bugbug.models.backout.BackoutModel",
"browsername": "bug... |
pyinstaller__pyinstaller-7353 | Required QtMultimedia plugin not packed
<!--
Welcome to the PyInstaller issue tracker! Before creating an issue, please heed the following:
1. This tracker should only be used to report bugs and request features / enhancements to PyInstaller
- For questions and general support, use the discussions forum.
2. U... | [
{
"content": "# ----------------------------------------------------------------------------\n# Copyright (c) 2022, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full license is ... | [
{
"content": "# ----------------------------------------------------------------------------\n# Copyright (c) 2022, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full license is ... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3e13c1c654..a8b6155448 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -53,7 +53,7 @@ jobs:
libxcb-shape0-dev libxcb-xkb-dev xvfb \
libopengl0 libegl1 \
libpulse0 libpulse-mainloop-glib0... |
python-telegram-bot__python-telegram-bot-3792 | [FEATURE] More fine grained network exceptions
### What kind of feature are you missing? Where do you notice a shortcoming of PTB?
We currently only have `NetworkError` and `TimeoutError(NetworkError)` to indicate exceptions that are due to natworking problems (in contrast to exceptions issued by TG). This is not very... | [
{
"content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2023\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub... | [
{
"content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2023\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub... | diff --git a/telegram/error.py b/telegram/error.py
index 2334b005aa7..d84ebbb1432 100644
--- a/telegram/error.py
+++ b/telegram/error.py
@@ -118,6 +118,13 @@ def __init__(self, message: Optional[str] = None) -> None:
class NetworkError(TelegramError):
"""Base class for exceptions due to networking errors.
+ ... |
statsmodels__statsmodels-1042 | Series no longer inherits from ndarray
Series no longer inherit from ndarrays. We should add this fix into the maintenance branch.
https://github.com/pydata/pandas/pull/3482#issuecomment-22470169
| [
{
"content": "'''\nUtility functions models code\n'''\n\nimport numpy as np\nimport numpy.lib.recfunctions as nprf\nimport numpy.linalg as L\nfrom scipy.interpolate import interp1d\nfrom scipy.linalg import svdvals\nfrom statsmodels.distributions import (ECDF, monotone_fn_inverter,\n ... | [
{
"content": "'''\nUtility functions models code\n'''\n\nimport numpy as np\nimport numpy.lib.recfunctions as nprf\nimport numpy.linalg as L\nfrom scipy.interpolate import interp1d\nfrom scipy.linalg import svdvals\nfrom statsmodels.distributions import (ECDF, monotone_fn_inverter,\n ... | diff --git a/statsmodels/tools/tools.py b/statsmodels/tools/tools.py
index 123404da07c..1d6d40a9a60 100644
--- a/statsmodels/tools/tools.py
+++ b/statsmodels/tools/tools.py
@@ -231,13 +231,11 @@ def categorical(data, col=None, dictnames=False, drop=False, ):
def _series_add_constant(data, prepend):
const = np.o... |
cython__cython-3561 | Unexpected propagation of Cython's build_ext options
From, https://github.com/cython/cython/blob/ee1b02191853e40a0078114c29de5cf7d794ba66/Cython/Distutils/old_build_ext.py#L87-L89 Cython's `build_ext` starts using and modifying distutils' options attributes directly instead of making a copy of them.
If using setupto... | [
{
"content": "\"\"\"Cython.Distutils.old_build_ext\n\nImplements a version of the Distutils 'build_ext' command, for\nbuilding Cython extension modules.\n\nNote that this module is deprecated. Use cythonize() instead.\n\"\"\"\n\n__revision__ = \"$Id:$\"\n\nimport inspect\nimport sys\nimport os\nfrom distutils.... | [
{
"content": "\"\"\"Cython.Distutils.old_build_ext\n\nImplements a version of the Distutils 'build_ext' command, for\nbuilding Cython extension modules.\n\nNote that this module is deprecated. Use cythonize() instead.\n\"\"\"\n\n__revision__ = \"$Id:$\"\n\nimport inspect\nimport sys\nimport os\nfrom distutils.... | diff --git a/Cython/Distutils/old_build_ext.py b/Cython/Distutils/old_build_ext.py
index 610d29efe13..631c156a11b 100644
--- a/Cython/Distutils/old_build_ext.py
+++ b/Cython/Distutils/old_build_ext.py
@@ -84,9 +84,9 @@ class old_build_ext(_build_ext.build_ext):
description = "build C/C++ and Cython extensions (com... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.