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 ⌀ |
|---|---|---|---|---|
beetbox__beets-3635 | Genius backend of lyrics plugin fails occasionally when artist contains special characters.
<!--
When searching for lyrics using genius as a backend, the plugin sometimes fails to match artists that contain special characters.
-->
### Problem
Running this command in verbose (`-vv`) mode:
```
$ beet --versio... | [
{
"content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in... | [
{
"content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in... | diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py
index f53191d8a9..8e45d25b42 100644
--- a/beetsplug/lyrics.py
+++ b/beetsplug/lyrics.py
@@ -419,15 +419,13 @@ def fetch(self, artist, title):
return None
for hit in json["response"]["hits"]:
- # Genius uses zero-width characters t... |
scikit-image__scikit-image-4404 | Stop probability in ransac
## Description
This may be a stupid question, but what is 'm' in the formula for dynamic number of trials in documentation of RANSAC?
https://github.com/scikit-image/scikit-image/blob/b7a1fde540d90d6e8009764abeec3e89c8b76928/skimage/measure/fit.py#L691
| [
{
"content": "import math\nimport numpy as np\nfrom numpy.linalg import inv, pinv\nfrom scipy import optimize\nfrom .._shared.utils import check_random_state\n\n\ndef _check_data_dim(data, dim):\n if data.ndim != 2 or data.shape[1] != dim:\n raise ValueError('Input data must have shape (N, %d).' % dim... | [
{
"content": "import math\nimport numpy as np\nfrom numpy.linalg import inv, pinv\nfrom scipy import optimize\nfrom .._shared.utils import check_random_state\n\n\ndef _check_data_dim(data, dim):\n if data.ndim != 2 or data.shape[1] != dim:\n raise ValueError('Input data must have shape (N, %d).' % dim... | diff --git a/skimage/measure/fit.py b/skimage/measure/fit.py
index 016cc15ad94..0ef9f594909 100644
--- a/skimage/measure/fit.py
+++ b/skimage/measure/fit.py
@@ -691,8 +691,8 @@ def ransac(data, model_class, min_samples, residual_threshold,
N >= log(1 - probability) / log(1 - e**m)
where the prob... |
urllib3__urllib3-3338 | Create a workflow (nox?) for testing Emscripten support locally
Would be great to have an easy-to-use workflow for contributors to:
* Run a single command
* Have all dependencies installed
* Opens a Pyodide console in a web browser
* Makes the local copy of urllib3 available for installation with micropip/Pyodide... | [
{
"content": "from __future__ import annotations\n\nimport os\nimport shutil\nimport sys\nimport typing\nfrom pathlib import Path\n\nimport nox\n\nnox.options.error_on_missing_interpreters = True\n\n\ndef tests_impl(\n session: nox.Session,\n extras: str = \"socks,brotli,zstd,h2\",\n # hypercorn depend... | [
{
"content": "from __future__ import annotations\n\nimport os\nimport shutil\nimport sys\nimport typing\nfrom pathlib import Path\n\nimport nox\n\nnox.options.error_on_missing_interpreters = True\n\n\ndef tests_impl(\n session: nox.Session,\n extras: str = \"socks,brotli,zstd,h2\",\n # hypercorn depend... | diff --git a/noxfile.py b/noxfile.py
index 637895b403..f1676450b2 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -200,6 +200,21 @@ def lint(session: nox.Session) -> None:
mypy(session)
+@nox.session(python="3.11")
+def pyodideconsole(session: nox.Session) -> None:
+ # build wheel into dist folder
+ session.... |
pulp__pulpcore-4427 | Compression monkeypatch is not always being loaded
**Describe the bug**
For whatever reason, the monkeypatch added in https://github.com/pulp/pulpcore/pull/3884 is not always loaded. I'm not 100% sure if it has to do with the order in which the files are loaded into the interpreter or some other detail, but we ne... | [
{
"content": "import hashlib\nimport json\nimport logging\nimport os\nimport os.path\nimport sys\nimport subprocess\nimport tarfile\nfrom distutils.util import strtobool\nfrom gettext import gettext as _\nfrom glob import glob\nfrom pathlib import Path\nfrom pkg_resources import get_distribution\n\nfrom django.... | [
{
"content": "import hashlib\nimport json\nimport logging\nimport os\nimport os.path\nimport sys\nimport subprocess\nimport tarfile\n\nfrom distutils.util import strtobool\nfrom gettext import gettext as _\nfrom glob import glob\nfrom pathlib import Path\nfrom pkg_resources import get_distribution\n\nfrom djang... | diff --git a/CHANGES/4351.bugfix b/CHANGES/4351.bugfix
new file mode 100644
index 0000000000..572fc859c8
--- /dev/null
+++ b/CHANGES/4351.bugfix
@@ -0,0 +1 @@
+Ensure the compression level is reliably set properly as per #3869.
\ No newline at end of file
diff --git a/pulpcore/app/tasks/export.py b/pulpcore/app/tasks/e... |
common-workflow-language__cwltool-1239 | Workflow that passes validation fails to pack
## Expected Behavior
If a workflow that passes validation (`cwltool --validate`) there should be no errors when packing.
## Actual Behavior
In this specific case, I tested the workflow https://raw.githubusercontent.com/Athanaseus/2gc-pipeline/master/selfcal_simulation.... | [
{
"content": "\"\"\"Reformat a CWL document and all its references to be a single stream.\"\"\"\n\nimport copy\nimport urllib\nfrom typing import (\n Any,\n Callable,\n Dict,\n List,\n MutableMapping,\n MutableSequence,\n Optional,\n Set,\n Union,\n cast,\n)\n\nfrom ruamel.yaml.com... | [
{
"content": "\"\"\"Reformat a CWL document and all its references to be a single stream.\"\"\"\n\nimport copy\nimport urllib\nfrom typing import (\n Any,\n Callable,\n Dict,\n List,\n MutableMapping,\n MutableSequence,\n Optional,\n Set,\n Union,\n cast,\n)\n\nfrom ruamel.yaml.com... | diff --git a/cwltool/pack.py b/cwltool/pack.py
index 97842e3d3..bd0a844a8 100644
--- a/cwltool/pack.py
+++ b/cwltool/pack.py
@@ -105,14 +105,15 @@ def import_embed(d, seen):
elif isinstance(d, MutableMapping):
for n in ("id", "name"):
if n in d:
- if d[n] in seen:
- ... |
googleapis__google-cloud-python-10355 | Synthesis failed for asset
Hello! Autosynth couldn't regenerate asset. :broken_heart:
Here's the output from running `synth.py`:
```
Cloning into 'working_repo'...
Switched to branch 'autosynth-asset'
Running synthtool
['/tmpfs/src/git/autosynth/env/bin/python3', '-m', 'synthtool', 'synth.py', '--']
synthtool > Execu... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | diff --git a/asset/synth.py b/asset/synth.py
index e6a0077c4a2f..12f50be7e7f6 100644
--- a/asset/synth.py
+++ b/asset/synth.py
@@ -29,15 +29,13 @@
for version in versions:
if version == "v1p1beta1":
config_path = "/google/cloud/asset/v1p1beta1/artman_cloudasset_v1p1beta1.yaml"
- artman_output_name... |
pyca__cryptography-5825 | Version Scheme Change
We've talked on and off for quite a few years about our versioning scheme for `cryptography`, but #5771 made it very clear that despite our [versioning documentation](https://cryptography.io/en/latest/api-stability.html#versioning) some users still assume it's [SemVer](https://semver.org) and are ... | [
{
"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\n\n__all__ = [\n \"__title__\",\n \"__summary__\",\n \"__uri__\",\n \"__version__\",\n \"__author__... | [
{
"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\n\n__all__ = [\n \"__title__\",\n \"__summary__\",\n \"__uri__\",\n \"__version__\",\n \"__author__... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 0570a16eacce..39e9e78bc78e 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,10 +1,10 @@
Changelog
=========
-.. _v3-5:
+.. _v35-0-0:
-3.5 - `main`_
-~~~~~~~~~~~~~
+35.0.0 - `main`_
+~~~~~~~~~~~~~~~~
.. note:: This version is not yet released and is under ac... |
facebookresearch__fairscale-795 | The Argument broadcast_fp16 is not working on OSS
## 🐛 Bug
The Argument `broadcast_fp16` is not working on `OSS`.
## Command
## To Reproduce
Steps to reproduce the behavior:
1. Add one print line in fairscale's source code [here](https://github.com/facebookresearch/fairscale/blob/31e3645371e1462c0fb... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom typing import Any, Callable, List, Optional, Union\n\nimport torch\n\n\nclass Bucket:\n \"\"\"\n Helper ... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom typing import Any, Callable, List, Optional, Union\n\nimport torch\n\n\nclass Bucket:\n \"\"\"\n Helper ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 489cf8ad3..bc13d4d3b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- activation checkpoint: Ensure outputs of checkpointed modules only require grad if either
... |
scikit-hep__pyhf-638 | Automate deployment to PyPI
# Description
According to @lukasheinrich, the current workflow for deploying to PyPI is:
```
git checkout master
git pull
bumpversion patch
git commit
git push origin master --tags
```
This is a bit annoyingly manual and ideally should be done automatically.
Luckily, there... | [
{
"content": "from setuptools import setup, find_packages\nfrom os import path\nimport sys\n\nthis_directory = path.abspath(path.dirname(__file__))\nif sys.version_info.major < 3:\n from io import open\nwith open(path.join(this_directory, 'README.md'), encoding='utf-8') as readme_md:\n long_description = ... | [
{
"content": "from setuptools import setup, find_packages\nfrom os import path\nimport sys\n\nthis_directory = path.abspath(path.dirname(__file__))\nif sys.version_info.major < 3:\n from io import open\nwith open(path.join(this_directory, 'README.md'), encoding='utf-8') as readme_md:\n long_description = ... | diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml
new file mode 100644
index 0000000000..b587c78ff9
--- /dev/null
+++ b/.github/workflows/publish-package.yml
@@ -0,0 +1,36 @@
+name: publish distributions
+on:
+ push:
+ branches:
+ - master
+ tags:
+ - v*
+
+jobs:
+ ... |
koxudaxi__datamodel-code-generator-962 | @ symbol in JSON keys produces private variable
**Describe the bug**
We have JSON that has `@id` and `@type` which are reflected in the schema below. When we generate the python model using the datamodel-codegen library it produces variables that we can't access. This is likely due to [pydantic hiding variables](http... | [
{
"content": "from __future__ import annotations\n\nimport re\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom enum import Enum, auto\nfrom functools import lru_cache\nfrom itertools import zip_longest\nfrom keyword import iskeyword\nfrom pathlib import Path, PurePath\nfrom typi... | [
{
"content": "from __future__ import annotations\n\nimport re\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom enum import Enum, auto\nfrom functools import lru_cache\nfrom itertools import zip_longest\nfrom keyword import iskeyword\nfrom pathlib import Path, PurePath\nfrom typi... | diff --git a/datamodel_code_generator/reference.py b/datamodel_code_generator/reference.py
index 8d7ddb791..0c9316bdf 100644
--- a/datamodel_code_generator/reference.py
+++ b/datamodel_code_generator/reference.py
@@ -171,10 +171,14 @@ def get_valid_name(
):
name = snake_to_upper_camel(name, delimi... |
flairNLP__flair-1150 | CharacterEmbeddings: missing characters in vocab
Hi,
there's one major issue with the `CharacterEmbeddings` class: by default it uses a "common chars" dictionary (fetched from [here](https://s3.eu-central-1.amazonaws.com/alan-nlp/resources/models/common_characters)).
I manually loaded these common characters with... | [
{
"content": "from abc import abstractmethod\nfrom operator import itemgetter\nfrom typing import List, Dict, Union, Callable\n\nimport torch, flair\nimport logging\n\nfrom collections import Counter\nfrom collections import defaultdict\n\nfrom segtok.segmenter import split_single\nfrom segtok.tokenizer import ... | [
{
"content": "from abc import abstractmethod\nfrom operator import itemgetter\nfrom typing import List, Dict, Union, Callable\n\nimport torch, flair\nimport logging\n\nfrom collections import Counter\nfrom collections import defaultdict\n\nfrom segtok.segmenter import split_single\nfrom segtok.tokenizer import ... | diff --git a/flair/data.py b/flair/data.py
index e757c28130..505dc3ce7f 100644
--- a/flair/data.py
+++ b/flair/data.py
@@ -118,6 +118,16 @@ def load(cls, name: str):
char_dict = cached_path(base_path, cache_dir="datasets")
return Dictionary.load_from_file(char_dict)
+ if name == "char... |
web2py__web2py-2099 | Extend RConn to be able to connect to different Redis servers from within the same web2py application
Right now it's not possible to connect to different Redis servers from within the same web2py application. Taking a look at the [code of RConn class](https://github.com/web2py/web2py/blob/f06c60b963a373f661e3bb09d5af49... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nDeveloped by niphlod@gmail.com\nLicense MIT/BSD/GPL\n\nServes as base to implement Redis connection object and various utils\nfor redis_cache, redis_session and redis_scheduler in the future\nShould-could be overriden in case redis doesn't ke... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nDeveloped by niphlod@gmail.com\nLicense MIT/BSD/GPL\n\nServes as base to implement Redis connection object and various utils\nfor redis_cache, redis_session and redis_scheduler in the future\nShould-could be overriden in case redis doesn't ke... | diff --git a/gluon/contrib/redis_utils.py b/gluon/contrib/redis_utils.py
index 8dc7b2d38..0aeab3278 100644
--- a/gluon/contrib/redis_utils.py
+++ b/gluon/contrib/redis_utils.py
@@ -29,14 +29,16 @@
locker = Lock()
-def RConn(*args, **vars):
+def RConn(application=None, *args, **vars):
"""
Istantiates a St... |
DataBiosphere__toil-2077 | Can't install from tarball on GitHub
```
$ pip install https://github.com/BD2KGenomics/toil/archive/3.14.0.tar.gz
Collecting https://github.com/BD2KGenomics/toil/archive/3.14.0.tar.gz
Downloading https://github.com/BD2KGenomics/toil/archive/3.14.0.tar.gz
- 7.0MB 40.4MB/s
Complete output from command pyt... | [
{
"content": "# Copyright (C) 2015-2016 Regents of the University of California\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-... | [
{
"content": "# Copyright (C) 2015-2016 Regents of the University of California\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-... | diff --git a/version_template.py b/version_template.py
index 6a248897c8..264001b03d 100644
--- a/version_template.py
+++ b/version_template.py
@@ -108,13 +108,21 @@ def buildNumber():
def currentCommit():
from subprocess import check_output
- return check_output('git log --pretty=oneline -n 1 -- $(pwd)', she... |
horovod__horovod-3830 | Spark tests fail with AttributeError: 'pyarrow.lib.Schema' object has no attribute 'to_arrow_schema'
Spark tests fail with
```
Traceback (most recent call last):
File "/horovod/examples/spark/pytorch/pytorch_spark_mnist.py", line 122, in <module>
torch_model = torch_estimator.fit(train_df).setOutputCols(['l... | [
{
"content": "# Copyright 2019 Uber Technologies, Inc. All Rights Reserved.\n# Modifications copyright Microsoft\n# Modifications copyright (C) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance... | [
{
"content": "# Copyright 2019 Uber Technologies, Inc. All Rights Reserved.\n# Modifications copyright Microsoft\n# Modifications copyright (C) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance... | diff --git a/setup.py b/setup.py
index e9ef7b1a60..8872c52d9b 100644
--- a/setup.py
+++ b/setup.py
@@ -167,7 +167,7 @@ def build_extensions(self):
mxnet_require_list = ['mxnet>=1.4.1']
pyspark_require_list = ['pyspark>=2.3.2;python_version<"3.8"',
'pyspark>=3.0.0;python_version>="3.8"']
-spar... |
rasterio__rasterio-2603 | Path parsing breaks URLs with `//` in the query string.
## Expected behavior and actual behavior.
I'm opening a file over HTTP and the URL includes a querystring with a double forward slash `//`.
I can't share the full URL since it includes a token, but I've traced the call to the call to `pathlib.Path(path).as_p... | [
{
"content": "\"\"\"Dataset paths, identifiers, and filenames\n\nNote: this module is not part of Rasterio's API. It is for internal use\nonly.\n\n\"\"\"\n\nimport pathlib\nimport re\nimport sys\nfrom urllib.parse import urlparse\n\nimport attr\n\nfrom rasterio.errors import PathError\n\n# Supported URI schemes... | [
{
"content": "\"\"\"Dataset paths, identifiers, and filenames\n\nNote: this module is not part of Rasterio's API. It is for internal use\nonly.\n\n\"\"\"\n\nimport pathlib\nimport re\nimport sys\nfrom urllib.parse import urlparse\n\nimport attr\n\nfrom rasterio.errors import PathError\n\n# Supported URI schemes... | diff --git a/rasterio/_path.py b/rasterio/_path.py
index 4929bf1ac..6333b442e 100644
--- a/rasterio/_path.py
+++ b/rasterio/_path.py
@@ -64,7 +64,7 @@ class _ParsedPath(_Path):
@classmethod
def from_uri(cls, uri):
parts = urlparse(uri)
- path = parts.path
+ path = pathlib.Path(parts.pat... |
pydantic__pydantic-2000 | "values" parameter in validator receives ambiguous types
### Checks
* [x] I added a descriptive title to this issue
* [x] I have searched (google, github) for similar issues and couldn't find anything
* [x] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug
#... | [
{
"content": "import json\nimport sys\nimport warnings\nfrom abc import ABCMeta\nfrom copy import deepcopy\nfrom enum import Enum\nfrom functools import partial\nfrom pathlib import Path\nfrom types import FunctionType\nfrom typing import (\n TYPE_CHECKING,\n AbstractSet,\n Any,\n Callable,\n Dic... | [
{
"content": "import json\nimport sys\nimport warnings\nfrom abc import ABCMeta\nfrom copy import deepcopy\nfrom enum import Enum\nfrom functools import partial\nfrom pathlib import Path\nfrom types import FunctionType\nfrom typing import (\n TYPE_CHECKING,\n AbstractSet,\n Any,\n Callable,\n Dic... | diff --git a/changes/1999-me-ransh.md b/changes/1999-me-ransh.md
new file mode 100644
index 00000000000..236886f2fd5
--- /dev/null
+++ b/changes/1999-me-ransh.md
@@ -0,0 +1,2 @@
+Call validator with the correct `values` parameter type in `BaseModel.__setattr__`,
+when `validate_assignment = True` in model config.
diff ... |
microsoft__playwright-python-1403 | [BUG] Frame is emitted on Page events domcontentloaded/load
**Context:**
- Playwright Version: 1.23
- Operating System: macOS
- Python version: 3.9
- Browser: Chromium
**Code Snippet**
```python
from playwright.sync_api import sync_playwright, Page
with sync_playwright() as playwright:
with playwrigh... | [
{
"content": "# Copyright (c) Microsoft Corporation.\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 (c) Microsoft Corporation.\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/playwright/_impl/_frame.py b/playwright/_impl/_frame.py
index 6d20c34f0..640ef1f82 100644
--- a/playwright/_impl/_frame.py
+++ b/playwright/_impl/_frame.py
@@ -100,14 +100,14 @@ def _on_load_state(
and hasattr(self, "_page")
and self._page
):
- self._page.emit(... |
pytorch__text-458 | Field.stop_words is overwritten and is no longer a set
https://github.com/pytorch/text/blob/758d356fd76ee6102de06a4cb5e414a3164c9e42/torchtext/data/field.py#L166-L173
I think this is an error and self.stop_words should not be overwritten after the condition.
| [
{
"content": "# coding: utf8\nfrom collections import Counter, OrderedDict\nfrom itertools import chain\nimport six\nimport torch\nfrom tqdm import tqdm\n\nfrom .dataset import Dataset\nfrom .pipeline import Pipeline\nfrom .utils import get_tokenizer, dtype_to_attr, is_tokenizer_serializable\nfrom ..vocab impor... | [
{
"content": "# coding: utf8\nfrom collections import Counter, OrderedDict\nfrom itertools import chain\nimport six\nimport torch\nfrom tqdm import tqdm\n\nfrom .dataset import Dataset\nfrom .pipeline import Pipeline\nfrom .utils import get_tokenizer, dtype_to_attr, is_tokenizer_serializable\nfrom ..vocab impor... | diff --git a/torchtext/data/field.py b/torchtext/data/field.py
index b402b82f27..8de842708d 100644
--- a/torchtext/data/field.py
+++ b/torchtext/data/field.py
@@ -163,14 +163,10 @@ def __init__(self, sequential=True, use_vocab=True, init_token=None,
self.pad_token = pad_token if self.sequential else None
... |
microsoft__playwright-python-1400 | [BUG] Frame is emitted on Page events domcontentloaded/load
**Context:**
- Playwright Version: 1.23
- Operating System: macOS
- Python version: 3.9
- Browser: Chromium
**Code Snippet**
```python
from playwright.sync_api import sync_playwright, Page
with sync_playwright() as playwright:
with playwrigh... | [
{
"content": "# Copyright (c) Microsoft Corporation.\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 (c) Microsoft Corporation.\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/playwright/_impl/_frame.py b/playwright/_impl/_frame.py
index 6d20c34f0..640ef1f82 100644
--- a/playwright/_impl/_frame.py
+++ b/playwright/_impl/_frame.py
@@ -100,14 +100,14 @@ def _on_load_state(
and hasattr(self, "_page")
and self._page
):
- self._page.emit(... |
praw-dev__praw-1712 | Updating usernotes page when <512k fails with .wiki["usernotes"].edit, but works with .request()
**Describe the bug**
So I'm not actually sure this is a bug, but it's awfully strange behavior that seems buggy. Attempting to edit the usernotes wiki page with `reddit.subreddit("test").wiki["usernotes"].edit(wikipage_dat... | [
{
"content": "\"\"\"List of API endpoints PRAW knows about.\"\"\"\n\n# flake8: noqa\n# fmt: off\nAPI_PATH = {\n \"about_edited\": \"r/{subreddit}/about/edited/\",\n \"about_log\": \"r/{subreddit}/about/log/\",\n \"about_modqueue\": \"r/{subreddit}/about/modqueue/\",\n ... | [
{
"content": "\"\"\"List of API endpoints PRAW knows about.\"\"\"\n\n# flake8: noqa\n# fmt: off\nAPI_PATH = {\n \"about_edited\": \"r/{subreddit}/about/edited/\",\n \"about_log\": \"r/{subreddit}/about/log/\",\n \"about_modqueue\": \"r/{subreddit}/about/modqueue/\",\n ... | diff --git a/CHANGES.rst b/CHANGES.rst
index bf31ba97c..ede0ff090 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -7,6 +7,15 @@ Unreleased
**Changed**
- :meth:`.Redditor.moderated` will now objectify all data returned from the API.
+- The `wiki_edit` endpoint has been changed from `r/{subreddit}/api/wiki/edit/` to
+ ... |
Parsl__parsl-1801 | Support older versions of Bash
Slurm submission scripts written by Parsl 0.7 use the Bash builtin command 'wait' with the -n option. I believe this option was introduced in a relatively recent version of Bash, perhaps 5.0 Many of the systems at my organization run Redhat Enterprise Linux 7, which uses Bash-4.2. This ve... | [
{
"content": "from abc import ABCMeta, abstractmethod\nimport logging\n\nfrom parsl.utils import RepresentationMixin\n\nlogger = logging.getLogger(__name__)\n\n\nclass Launcher(RepresentationMixin, metaclass=ABCMeta):\n \"\"\" Launcher base class to enforce launcher interface\n \"\"\"\n def __init__(se... | [
{
"content": "from abc import ABCMeta, abstractmethod\nimport logging\n\nfrom parsl.utils import RepresentationMixin\n\nlogger = logging.getLogger(__name__)\n\n\nclass Launcher(RepresentationMixin, metaclass=ABCMeta):\n \"\"\" Launcher base class to enforce launcher interface\n \"\"\"\n def __init__(se... | diff --git a/parsl/launchers/launchers.py b/parsl/launchers/launchers.py
index dce9ec5c10..f8a728e58b 100644
--- a/parsl/launchers/launchers.py
+++ b/parsl/launchers/launchers.py
@@ -88,6 +88,7 @@ def __call__(self, command, tasks_per_node, nodes_per_block):
[[ "{debug}" == "1" ]] && echo "Found cores : $CORES"
WORKE... |
buildbot__buildbot-5765 | Fix reference to tuplematch in base reporters
The tuplematch object was not referenced in the ReporterBase class when referenced from the GitHubStatusPush class.
It seems this is not an issue when it is executed from the test but only occures when called from GitHubStatusPush. I don't know how I can test this.
Fi... | [
{
"content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n... | [
{
"content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n... | diff --git a/master/buildbot/newsfragments/basereporter-tuplematch.bugfix b/master/buildbot/newsfragments/basereporter-tuplematch.bugfix
new file mode 100644
index 000000000000..4b31671680fa
--- /dev/null
+++ b/master/buildbot/newsfragments/basereporter-tuplematch.bugfix
@@ -0,0 +1 @@
+Fixed reference to ``tuplematch``... |
svthalia__concrexit-2857 | Become a member menu item is missing!
### Describe the bug
Become a member menu item is missing!
### How to reproduce
1. Check staging, the menu item is missing
### Expected behaviour
It should be there
### Screenshots
If applicable, add screenshots to help explain your problem.
### Additional context... | [
{
"content": "\"\"\"Configuration for the newsletters package.\"\"\"\nfrom django.apps import AppConfig\nfrom django.utils.translation import gettext_lazy as _\n\n\nclass RegistrationsConfig(AppConfig):\n \"\"\"AppConfig for the registrations package.\"\"\"\n\n name = \"registrations\"\n verbose_name =... | [
{
"content": "\"\"\"Configuration for the newsletters package.\"\"\"\nfrom django.apps import AppConfig\nfrom django.urls import reverse\nfrom django.utils.translation import gettext_lazy as _\n\n\nclass RegistrationsConfig(AppConfig):\n \"\"\"AppConfig for the registrations package.\"\"\"\n\n name = \"re... | diff --git a/website/registrations/apps.py b/website/registrations/apps.py
index f249c64d2..fe5102cd7 100644
--- a/website/registrations/apps.py
+++ b/website/registrations/apps.py
@@ -1,5 +1,6 @@
"""Configuration for the newsletters package."""
from django.apps import AppConfig
+from django.urls import reverse
from... |
LMFDB__lmfdb-5479 | ECQ: downloads from isogeny class pages broken
Example: on https://www.lmfdb.org/EllipticCurve/Q/256/a/ there are two items in the Downloads list on the right-hand side, but both are broken. The links are
- https://www.lmfdb.org/EllipticCurve/Q/download_qexp/a/1000
- https://www.lmfdb.org/EllipticCurve/Q/do... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom flask import url_for\nfrom lmfdb.utils import encode_plot, prop_int_pretty, raw_typeset, integer_squarefree_part\nfrom lmfdb.elliptic_curves import ec_logger\nfrom lmfdb.elliptic_curves.web_ec import split_lmfdb_label, split_cremona_label, OPTIMALITY_BOUND, CREMONA_BO... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom flask import url_for\nfrom lmfdb.utils import encode_plot, prop_int_pretty, raw_typeset, integer_squarefree_part\nfrom lmfdb.elliptic_curves import ec_logger\nfrom lmfdb.elliptic_curves.web_ec import split_lmfdb_label, split_cremona_label, OPTIMALITY_BOUND, CREMONA_BO... | diff --git a/lmfdb/elliptic_curves/isog_class.py b/lmfdb/elliptic_curves/isog_class.py
index b3b2f7db8a..b49fb70ad6 100644
--- a/lmfdb/elliptic_curves/isog_class.py
+++ b/lmfdb/elliptic_curves/isog_class.py
@@ -171,8 +171,8 @@ def perm(i): return next(c for c in self.curves if c['Cnumber']==i+1)['lmfdb_num
if ... |
PrefectHQ__prefect-2502 | FlowRunner manages context cache wrongly
## Description
AttributeError and different behavior of output caching between Flow.run and FlowRunner.run.
## Expected Behavior
No AttributeError, same behavior and cached result reuse of FlowRunner.run after Flow.run.
## Reproduction
```python
from datetime import ti... | [
{
"content": "import copy\nfrom contextlib import redirect_stdout\nimport itertools\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Dict,\n Iterable,\n List,\n NamedTuple,\n Optional,\n Set,\n Sized,\n Tuple,\n Union,\n)\n\nimport pendulum\n\nimport prefect\nfrom ... | [
{
"content": "import copy\nfrom contextlib import redirect_stdout\nimport itertools\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Dict,\n Iterable,\n List,\n NamedTuple,\n Optional,\n Set,\n Sized,\n Tuple,\n Union,\n)\n\nimport pendulum\n\nimport prefect\nfrom ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 59745fdbe983..966e5bf2b50e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,10 +11,10 @@ These changes are available in the [master branch](https://github.com/PrefectHQ/
### Enhancements
- Agents now support an optional HTTP health check, for use by their backing or... |
open-telemetry__opentelemetry-python-contrib-2132 | Add support for confluent-kafka v2.3
**Is your feature request related to a problem?**
We've recently upgraded our confluent-kafka python version to v2.3. But this version is not yet supported by the instrumentor.
**Describe the solution you'd like**
Confluent kafka version 2.3.x is supported by the instrumentor... | [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 710947c18b..369d7d7c62 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `opentelemetry-resource-detector-azure` Added 10s timeout to VM Resource Detector
([#2119](https://g... |
cloud-custodian__cloud-custodian-3096 | Azure - Custom pyformat in output_dir - {policy} variable is expanded as policy instead of policy name
I'm trying to use the built in pyformat feature to add the subscription id in the output path for each policy run log using
```azure://<storage-account-name>.blob.core.windows.net/custodianlogs/{account_id}/{policy}... | [
{
"content": "# Copyright 2015-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi... | [
{
"content": "# Copyright 2015-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi... | diff --git a/c7n/output.py b/c7n/output.py
index 86932b735bf..4f414e93a99 100644
--- a/c7n/output.py
+++ b/c7n/output.py
@@ -414,7 +414,7 @@ def get_output_vars(self):
data = {
'account_id': self.ctx.options.account_id,
'region': self.ctx.options.region,
- 'policy': self.ct... |
beetbox__beets-3044 | modify: Field deletion (foo!) should work for fixed attributes by setting them to null
### Problem
`foo!` works if foo is a flexible field, but it doesn't do anything if it's a fixed attribute.
Example from IRC Chat:
User not able to delete/reset artpath: to "None" as modify only results in artpath being the c... | [
{
"content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in... | [
{
"content": "# -*- coding: utf-8 -*-\n# This file is part of beets.\n# Copyright 2016, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, in... | diff --git a/beets/dbcore/db.py b/beets/dbcore/db.py
index 0f4dc15138..e92cba40ce 100755
--- a/beets/dbcore/db.py
+++ b/beets/dbcore/db.py
@@ -290,10 +290,10 @@ def __delitem__(self, key):
if key in self._values_flex: # Flexible.
del self._values_flex[key]
self._dirty.add(key) # Mar... |
gratipay__gratipay.com-2429 | preclude adding stub participants as team members
Reticketed from #2362.
preclude adding stub participants as team members
Reticketed from #2362.
| [
{
"content": "\"\"\"Teams on Gittip are plural participants with members.\n\"\"\"\nfrom decimal import Decimal\n\nfrom aspen.utils import typecheck\n\n\nclass MemberLimitReached(Exception): pass\n\n\nclass MixinTeam(object):\n \"\"\"This class provides methods for working with a Participant as a Team.\n\n ... | [
{
"content": "\"\"\"Teams on Gittip are plural participants with members.\n\"\"\"\nfrom decimal import Decimal\n\nfrom aspen.utils import typecheck\n\n\nclass MemberLimitReached(Exception): pass\n\nclass StubParticipantAdded(Exception): pass\n\nclass MixinTeam(object):\n \"\"\"This class provides methods for... | diff --git a/gittip/models/_mixin_team.py b/gittip/models/_mixin_team.py
index d3f0fb1678..d2ba6af3ad 100644
--- a/gittip/models/_mixin_team.py
+++ b/gittip/models/_mixin_team.py
@@ -7,6 +7,7 @@
class MemberLimitReached(Exception): pass
+class StubParticipantAdded(Exception): pass
class MixinTeam(object):
... |
rasterio__rasterio-1939 | OVERVIEW_LEVEL open option doesn't work for Slippy Map dataset
I'm looking for a way to translate to rasterio this GDAL CLI command:
```
gdal_translate -oo OVERVIEW_LEVEL=1 -projwin 10817977.2 3650863.4 10818322.7 3650646.5 /vsicurl/https://raw.githubusercontent.com/satellogic/telluric/master/tests/data/google.xml ... | [
{
"content": "\"\"\"rasterio.vrt: a module concerned with GDAL VRTs\"\"\"\n\nimport xml.etree.ElementTree as ET\n\nimport rasterio\nfrom rasterio._warp import WarpedVRTReaderBase\nfrom rasterio.dtypes import _gdal_typename\nfrom rasterio.enums import MaskFlags\nfrom rasterio.env import env_ctx_if_needed\nfrom r... | [
{
"content": "\"\"\"rasterio.vrt: a module concerned with GDAL VRTs\"\"\"\n\nimport xml.etree.ElementTree as ET\n\nimport rasterio\nfrom rasterio._warp import WarpedVRTReaderBase\nfrom rasterio.dtypes import _gdal_typename\nfrom rasterio.enums import MaskFlags\nfrom rasterio.env import env_ctx_if_needed\nfrom r... | diff --git a/rasterio/vrt.py b/rasterio/vrt.py
index 9d870b71c..8277d1d68 100644
--- a/rasterio/vrt.py
+++ b/rasterio/vrt.py
@@ -232,6 +232,13 @@ def _boundless_vrt_doc(
nodata_elem = ET.SubElement(complexsource, 'NODATA')
nodata_elem.text = str(src_dataset.nodata)
+ if src_dataset.op... |
azavea__raster-vision-746 | Evaluation for object detection with AOIs crashes
```
Running evaluator: ObjectDetectionEvaluator...
2019-03-28 16:47:07:rastervision.evaluation.classification_evaluator: INFO - Computing evaluation for scene 01986917-30ea-4f7f-8e01-985d73b8aa2a...
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy... | [
{
"content": "import numpy as np\nfrom shapely.geometry import shape\n\nfrom rastervision.core.box import Box\nfrom rastervision.data.label import Labels\n\n\nclass ObjectDetectionLabels(Labels):\n \"\"\"A set of boxes and associated class_ids and scores.\n\n Implemented using the Tensorflow Object Detect... | [
{
"content": "import numpy as np\nfrom shapely.geometry import shape\n\nfrom rastervision.core.box import Box\nfrom rastervision.data.label import Labels\n\n\nclass ObjectDetectionLabels(Labels):\n \"\"\"A set of boxes and associated class_ids and scores.\n\n Implemented using the Tensorflow Object Detect... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index e199cd7e2..73308aa97 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -35,6 +35,7 @@ Raster Vision 0.8.2
Bug Fixes
^^^^^^^^^
+- Fix filter_by_aoi for ObjectDetectionLabels `#746 <https://github.com/azavea/raster-vision/pull/746>`_
- Load null ch... |
PrefectHQ__prefect-6761 | DTSTART doesn't work with RRule string set in deployment build
### First check
- [X] I added a descriptive title to this issue.
- [X] I used the GitHub search to find a similar issue and didn't find it.
- [X] I searched the Prefect documentation for this issue.
- [X] I checked that this issue is related to Prefect and... | [
{
"content": "\"\"\"\nCommand line interface for working with deployments.\n\"\"\"\nfrom datetime import timedelta\nfrom enum import Enum\nfrom pathlib import Path\nfrom typing import List, Optional\n\nimport pendulum\nimport typer\nimport yaml\nfrom rich.pretty import Pretty\nfrom rich.table import Table\n\nim... | [
{
"content": "\"\"\"\nCommand line interface for working with deployments.\n\"\"\"\nimport json\nfrom datetime import timedelta\nfrom enum import Enum\nfrom pathlib import Path\nfrom typing import List, Optional\n\nimport pendulum\nimport typer\nimport yaml\nfrom rich.pretty import Pretty\nfrom rich.table impor... | diff --git a/src/prefect/cli/deployment.py b/src/prefect/cli/deployment.py
index f1c86b382b2e..1752810e3686 100644
--- a/src/prefect/cli/deployment.py
+++ b/src/prefect/cli/deployment.py
@@ -1,6 +1,7 @@
"""
Command line interface for working with deployments.
"""
+import json
from datetime import timedelta
from en... |
cocotb__cocotb-1164 | Py_Finalize() is never called
`Py_Finalize()` runs a number of very important cleanup routines, like flushing `stderr` and `stdout` (how I figured this out) and running `__del__` on living objects in Python 3.
| [
{
"content": "#!/usr/bin/env python\n\n# Copyright (c) 2013, 2018 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n# \n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are... | [
{
"content": "#!/usr/bin/env python\n\n# Copyright (c) 2013, 2018 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n# \n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are... | diff --git a/cocotb/scheduler.py b/cocotb/scheduler.py
index 06e66a718d..f6c933edd9 100755
--- a/cocotb/scheduler.py
+++ b/cocotb/scheduler.py
@@ -775,9 +775,13 @@ def finish_scheduler(self, exc):
"""Directly call into the regression manager and end test
once we return the sim will close us so no c... |
DDMAL__CantusDB-1055 | json-sources API should only return sources in the Cantus segment.
As noted by @dchiller on https://github.com/DDMAL/cantus/pull/765, the json-sources API on OldCantus only returned sources in the CANTUS segment, whereas NewCantus's API returns all published sources. We need to update NewCantus to match the behavior se... | [
{
"content": "import csv\nfrom typing import Optional, Union\nfrom django.http.response import JsonResponse\nfrom django.http import HttpResponse, HttpResponseNotFound\nfrom django.shortcuts import render, redirect\nfrom django.urls.base import reverse\nfrom articles.models import Article\nfrom main_app.models ... | [
{
"content": "import csv\nfrom typing import Optional, Union\nfrom django.http.response import JsonResponse\nfrom django.http import HttpResponse, HttpResponseNotFound\nfrom django.shortcuts import render, redirect\nfrom django.urls.base import reverse\nfrom articles.models import Article\nfrom main_app.models ... | diff --git a/django/cantusdb_project/main_app/views/views.py b/django/cantusdb_project/main_app/views/views.py
index dace3d762..4d047f803 100644
--- a/django/cantusdb_project/main_app/views/views.py
+++ b/django/cantusdb_project/main_app/views/views.py
@@ -14,6 +14,7 @@
Office,
Provenance,
RismSiglum,
+ ... |
facebookresearch__fairscale-514 | [SDP] Bucket Failed to be sent error in FairScale 0.3.1
## 🐛 Bug
When upgrading from 0.3.0 to 0.3.1 on the Lightning side our bug report script fails with sharded:
You will need to install lightning (`pip install pytorch-lightning`).
```python
import os
import torch
from torch.utils.data import Dataset
... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n\"\"\"\nA nn.Module wrapper to go with a Sharded Optimizer in order to handle targeted gradient\nreduction automati... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n\"\"\"\nA nn.Module wrapper to go with a Sharded Optimizer in order to handle targeted gradient\nreduction automati... | diff --git a/fairscale/nn/data_parallel/sharded_ddp.py b/fairscale/nn/data_parallel/sharded_ddp.py
index 979b5d899..c919f5318 100644
--- a/fairscale/nn/data_parallel/sharded_ddp.py
+++ b/fairscale/nn/data_parallel/sharded_ddp.py
@@ -160,6 +160,11 @@ def __init__(
# - setup buckets and tensor views
mod... |
vaexio__vaex-394 | Columns starting with a number generate Errors
The latest version of Vaex cannot read files when columns are starting with a number.
This was not the case before. I understand the issue of such names when doing expressions etc, but the reading of the data was working before.
```python
/usr/local/lib/python3.6/di... | [
{
"content": "__author__ = 'maartenbreddels'\nimport os\nimport mmap\nimport itertools\nimport functools\nimport collections\nimport logging\nimport numpy as np\nimport numpy.ma\nimport vaex\nimport astropy.table\nimport astropy.units\nfrom vaex.utils import ensure_string\nimport astropy.io.fits as fits\nimport... | [
{
"content": "__author__ = 'maartenbreddels'\nimport os\nimport mmap\nimport itertools\nimport functools\nimport collections\nimport logging\nimport numpy as np\nimport numpy.ma\nimport vaex\nimport astropy.table\nimport astropy.units\nfrom vaex.utils import ensure_string\nimport astropy.io.fits as fits\nimport... | diff --git a/packages/vaex-hdf5/vaex/hdf5/dataset.py b/packages/vaex-hdf5/vaex/hdf5/dataset.py
index 6dfb651011..9a5904f61d 100644
--- a/packages/vaex-hdf5/vaex/hdf5/dataset.py
+++ b/packages/vaex-hdf5/vaex/hdf5/dataset.py
@@ -352,7 +352,8 @@ def check_format(self, *args, **kwargs):
transpo... |
huggingface__dataset-viewer-2811 | opus decoding error
see https://huggingface.co/datasets/stable-speech/mls_eng_10k/discussions/1#65ef6e9d440a5fc3d94a40ad
To fix this maybe we should pin `soundfile` library to `>=1.0.31` (first version that supported opus) like [we do in `datasets` library](https://github.com/huggingface/datasets/blob/main/src/datas... | [
{
"content": "# SPDX-License-Identifier: Apache-2.0\n# Copyright 2022 The HuggingFace Authors.\n\nfrom io import BytesIO\nfrom pathlib import Path\nfrom tempfile import NamedTemporaryFile\nfrom typing import Optional, TypedDict\nfrom urllib import parse\n\nfrom PIL import Image, ImageOps\nfrom pydub import Audi... | [
{
"content": "# SPDX-License-Identifier: Apache-2.0\n# Copyright 2022 The HuggingFace Authors.\n\nfrom io import BytesIO\nfrom pathlib import Path\nfrom tempfile import NamedTemporaryFile\nfrom typing import Optional, TypedDict\nfrom urllib import parse\n\nfrom PIL import Image, ImageOps\nfrom pydub import Audi... | diff --git a/libs/libcommon/src/libcommon/viewer_utils/asset.py b/libs/libcommon/src/libcommon/viewer_utils/asset.py
index 6c10097541..c5ca62cddd 100644
--- a/libs/libcommon/src/libcommon/viewer_utils/asset.py
+++ b/libs/libcommon/src/libcommon/viewer_utils/asset.py
@@ -108,9 +108,7 @@ def create_audio_file(
... |
nautobot__nautobot-553 | Cloning Device or IP with a tag applied results in a Server Error
<!--
NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED.
This form is only for reporting reproducible bugs. If you need assistance
with Nautobot installation, or if you have a general question, please start a
discu... | [
{
"content": "import csv\nimport json\nimport re\nfrom io import StringIO\n\nimport django_filters\nfrom django import forms\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.contrib.postgres.forms import SimpleArrayField\nfr... | [
{
"content": "import csv\nimport json\nimport re\nfrom io import StringIO\n\nimport django_filters\nfrom django import forms\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.contrib.postgres.forms import SimpleArrayField\nfr... | diff --git a/nautobot/utilities/forms/fields.py b/nautobot/utilities/forms/fields.py
index af8c7824c8c..d9508c6ea05 100644
--- a/nautobot/utilities/forms/fields.py
+++ b/nautobot/utilities/forms/fields.py
@@ -477,6 +477,20 @@ class DynamicModelMultipleChoiceField(DynamicModelChoiceMixin, forms.ModelMultip
filter =... |
python-poetry__poetry-620 | Arbitrary equality in pip freeze causes crash
<!--
Hi there! Thank you for discovering and submitting an issue.
Before you submit this; let's make sure of a few things.
Please make sure the following boxes are ticked if they are correct.
If not, please try and fulfill these first.
-->
<!-- Checked che... | [
{
"content": "from poetry.packages import Package\nfrom poetry.utils.env import Env\n\nfrom .repository import Repository\n\n\nclass InstalledRepository(Repository):\n @classmethod\n def load(cls, env): # type: (Env) -> InstalledRepository\n \"\"\"\n Load installed packages.\n\n For ... | [
{
"content": "import re\n\nfrom poetry.packages import Package\nfrom poetry.utils.env import Env\n\nfrom .repository import Repository\n\n\nclass InstalledRepository(Repository):\n @classmethod\n def load(cls, env): # type: (Env) -> InstalledRepository\n \"\"\"\n Load installed packages.\n\... | diff --git a/poetry/repositories/installed_repository.py b/poetry/repositories/installed_repository.py
index a49dc38110f..8e2fb7bae79 100644
--- a/poetry/repositories/installed_repository.py
+++ b/poetry/repositories/installed_repository.py
@@ -1,3 +1,5 @@
+import re
+
from poetry.packages import Package
from poetry.... |
hpcaitech__ColossalAI-2754 | [tensor] fix some unittests
[tensor] fix some unittests
[tensor] fix some unittests
| [
{
"content": "from typing import Dict, List, Tuple\n\nimport torch\nimport torch.distributed as dist\nimport torch.nn as nn\nfrom torch.fx import GraphModule\nfrom torch.fx.graph import Graph\n\nfrom colossalai.auto_parallel.passes.runtime_apply_pass import runtime_apply_pass\nfrom colossalai.auto_parallel.pass... | [
{
"content": "from typing import Dict, List, Tuple\n\nimport torch\nimport torch.distributed as dist\nimport torch.nn as nn\nfrom torch.fx import GraphModule\nfrom torch.fx.graph import Graph\n\nfrom colossalai.auto_parallel.passes.runtime_apply_pass import runtime_apply_pass\nfrom colossalai.auto_parallel.pass... | diff --git a/colossalai/auto_parallel/tensor_shard/initialize.py b/colossalai/auto_parallel/tensor_shard/initialize.py
index 012b0ff43c5d..4affa37897bf 100644
--- a/colossalai/auto_parallel/tensor_shard/initialize.py
+++ b/colossalai/auto_parallel/tensor_shard/initialize.py
@@ -330,6 +330,7 @@ def autoparallelize(model... |
nf-core__tools-1278 | update modules in pipeline template
Merging https://github.com/nf-core/tools/pull/1247 broke a few tests on `dev` which we can fix by reinstalling the modules into the pipeline template, once they have been updated to emit a `versions.yml` in the modules repository (see also https://github.com/nf-core/modules/pull/665)... | [
{
"content": "#!/usr/bin/env python\n\nimport os\n\n\ndef files_exist(self):\n \"\"\"Checks a given pipeline directory for required files.\n\n Iterates through the pipeline's directory content and checks that specified\n files are either present or absent, as required.\n\n .. note::\n This te... | [
{
"content": "#!/usr/bin/env python\n\nimport os\n\n\ndef files_exist(self):\n \"\"\"Checks a given pipeline directory for required files.\n\n Iterates through the pipeline's directory content and checks that specified\n files are either present or absent, as required.\n\n .. note::\n This te... | diff --git a/nf_core/lint/files_exist.py b/nf_core/lint/files_exist.py
index e1b28bc9a3..41365b1094 100644
--- a/nf_core/lint/files_exist.py
+++ b/nf_core/lint/files_exist.py
@@ -51,7 +51,6 @@ def files_exist(self):
lib/NfcoreTemplate.groovy
lib/Utils.groovy
lib/WorkflowMain.groovy
- m... |
comic__grand-challenge.org-1084 | Create a simple interface for fetching datatypes schemas on grand-challenge
**Problem**
The grand-challenge datatypes are currently only stored in the [gc-api](https://github.com/DIAGNijmegen/rse-gcapi/tree/master/gcapi/schemas) repository. However, the information is required by other libraries as well. Duplication ... | [
{
"content": "from rest_framework.exceptions import ValidationError\nfrom rest_framework.fields import CharField\nfrom rest_framework.relations import HyperlinkedRelatedField, SlugRelatedField\nfrom rest_framework.serializers import (\n HyperlinkedModelSerializer,\n SerializerMethodField,\n)\n\nfrom grand... | [
{
"content": "from rest_framework.exceptions import ValidationError\nfrom rest_framework.fields import CharField\nfrom rest_framework.relations import HyperlinkedRelatedField, SlugRelatedField\nfrom rest_framework.serializers import (\n HyperlinkedModelSerializer,\n SerializerMethodField,\n)\n\nfrom grand... | diff --git a/app/grandchallenge/reader_studies/serializers.py b/app/grandchallenge/reader_studies/serializers.py
index 796119f1ca..3d20532a9f 100644
--- a/app/grandchallenge/reader_studies/serializers.py
+++ b/app/grandchallenge/reader_studies/serializers.py
@@ -8,7 +8,12 @@
from grandchallenge.api.swagger import sw... |
conan-io__conan-13211 | [bug] Conan build command does not support conanfile.txt as described
### Description
The documentation about [build](https://docs.conan.io/2/reference/commands/build.html) command says:
```
usage: conan build [-h] [-v [V]] [--logger] [--name NAME] [--version VERSION] [--user USER] [--channel CHANNEL] [-of OUTPU... | [
{
"content": "import os\n\nfrom conan.api.output import ConanOutput\nfrom conan.cli.command import conan_command\nfrom conan.cli.commands import make_abs_path\nfrom conan.cli.args import add_lockfile_args, add_common_install_arguments, add_reference_args\nfrom conan.internal.conan_app import ConanApp\nfrom cona... | [
{
"content": "import os\n\nfrom conan.api.output import ConanOutput\nfrom conan.cli.command import conan_command\nfrom conan.cli.commands import make_abs_path\nfrom conan.cli.args import add_lockfile_args, add_common_install_arguments, add_reference_args\nfrom conan.internal.conan_app import ConanApp\nfrom cona... | diff --git a/conan/cli/commands/build.py b/conan/cli/commands/build.py
index 4d756c82dcb..2a4f0be5774 100644
--- a/conan/cli/commands/build.py
+++ b/conan/cli/commands/build.py
@@ -15,9 +15,9 @@ def build(conan_api, parser, *args):
Install dependencies and call the build() method.
"""
parser.add_argument... |
data-for-change__anyway-489 | Change downloaded CSV filename to a meaningful name
Right now when clicking the "download CSV" button, the generated file's name is simply `data.csv`, but the contents are generated according to the current view.
:
discussions = DiscussionMarker.bounding_box_query(**{arg: kwargs[arg] for arg in discussion_args})
if request.values.get('format') == 'csv':
+ date_format = '%Y-%m-%d'
... |
djangopackages__djangopackages-560 | ImportError: cannot import name 'NoArgsCommand'
When I run the `load_dev_data` django mgmt command, the following error occurs:
```
$ docker-compose -f dev.yml run django python manage.py load_dev_data
Starting djangopackages_postgres_1 ... done
Starting djangopackages_redis_1 ... done
Postgres is up - contin... | [
{
"content": "from sys import stdout\n\nfrom django.conf import settings\nfrom django.core.management.base import CommandError, NoArgsCommand\nfrom django.utils.importlib import import_module\nfrom django.utils.module_loading import module_has_submodule\n\n\nclass Command(NoArgsCommand):\n \n help = \"Imp... | [
{
"content": "from sys import stdout\nfrom importlib import import_module\n\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand\nfrom django.utils.module_loading import module_has_submodule\n\n\nclass Command(BaseCommand):\n\n help = \"Import development data for local dev\... | diff --git a/core/management/commands/load_dev_data.py b/core/management/commands/load_dev_data.py
index c3ac77e4d..e42ad8db8 100644
--- a/core/management/commands/load_dev_data.py
+++ b/core/management/commands/load_dev_data.py
@@ -1,16 +1,16 @@
from sys import stdout
+from importlib import import_module
from djan... |
scrapy__scrapy-1131 | Unhandled error in Deferred (RobotsTxtMiddleware)
**Dev story**:
Let's say spider downloads all .zip files from http://habrahabr.ru/post/212029/ page
Url with .zip files looks like this: http://layer6.jenkins.tox.im/job/qt_gui_win32/lastSuccessfulBuild/artifact/qt/build/release/TOX-Qt-GUI.zip
It's a polite spider, so ... | [
{
"content": "\"\"\"\nThis is a middleware to respect robots.txt policies. To activate it you must\nenable this middleware and enable the ROBOTSTXT_OBEY setting.\n\n\"\"\"\n\nfrom six.moves.urllib import robotparser\n\nfrom scrapy import signals, log\nfrom scrapy.exceptions import NotConfigured, IgnoreRequest\n... | [
{
"content": "\"\"\"\nThis is a middleware to respect robots.txt policies. To activate it you must\nenable this middleware and enable the ROBOTSTXT_OBEY setting.\n\n\"\"\"\n\nfrom six.moves.urllib import robotparser\n\nfrom scrapy import signals, log\nfrom scrapy.exceptions import NotConfigured, IgnoreRequest\n... | diff --git a/scrapy/contrib/downloadermiddleware/robotstxt.py b/scrapy/contrib/downloadermiddleware/robotstxt.py
index 0ea4027196f..a58ecca8eaf 100644
--- a/scrapy/contrib/downloadermiddleware/robotstxt.py
+++ b/scrapy/contrib/downloadermiddleware/robotstxt.py
@@ -49,8 +49,14 @@ def robot_parser(self, request, spider):... |
Pycord-Development__pycord-903 | Options with a default value of None still require the "required" kwarg
### Summary
When using `None` as the default value, `required` defaults to True even though there _is_ a default value.
### Reproduction Steps
- Make an application command (slash command) with at least one Option
- Give the option a defa... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\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 restriction, including without li... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\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 restriction, including without li... | diff --git a/discord/commands/options.py b/discord/commands/options.py
index c9c6fb2493..e17a85f3d0 100644
--- a/discord/commands/options.py
+++ b/discord/commands/options.py
@@ -85,10 +85,10 @@ def __init__(self, input_type: Any, /, description: str = None, **kwargs) -> Non
self.channel_types.... |
aio-libs__aiohttp-1580 | client: posting multipart-formdata and integer
the multipart-formdata is not working with integer values, i spend many times to find-out what is the problem:
## Actual behaviour
```
Traceback (most recent call last):
File "/home/vahid/workspace/aiohttp/aiohttp/client_reqrep.py", line 390, in write_bytes
result =... | [
{
"content": "import asyncio\nimport base64\nimport binascii\nimport io\nimport json\nimport mimetypes\nimport os\nimport re\nimport sys\nimport uuid\nimport warnings\nimport zlib\nfrom collections import Mapping, Sequence, deque\nfrom pathlib import Path\nfrom urllib.parse import parse_qsl, quote, unquote, url... | [
{
"content": "import asyncio\nimport base64\nimport binascii\nimport io\nimport json\nimport mimetypes\nimport os\nimport re\nimport sys\nimport uuid\nimport warnings\nimport zlib\nfrom collections import Mapping, Sequence, deque\nfrom pathlib import Path\nfrom urllib.parse import parse_qsl, quote, unquote, url... | diff --git a/CHANGES.rst b/CHANGES.rst
index c87508acfab..688b23f49f3 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,6 +4,8 @@ CHANGES
1.3.0 (XXXX-XX-XX)
------------------
+- Multipart writer validates the data on append instead of on a request send #920
+
- Multipart reader accepts multipart messages with or w... |
aio-libs__aiohttp-6164 | tests_require: add trustme
It is required since https://github.com/aio-libs/aiohttp/pull/3487.
<!-- Thank you for your contribution! -->
## What do these changes do?
<!-- Please give a short brief about these changes. -->
## Are there changes in behavior for the user?
<!-- Outline any notable behaviour f... | [
{
"content": "import pathlib\nimport re\nimport sys\nfrom distutils.command.build_ext import build_ext\nfrom distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError\n\nfrom setuptools import Extension, setup\n\nif sys.version_info < (3, 6):\n raise RuntimeError(\"aiohttp 3.7+ requi... | [
{
"content": "import pathlib\nimport re\nimport sys\nfrom distutils.command.build_ext import build_ext\nfrom distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError\n\nfrom setuptools import Extension, setup\n\nif sys.version_info < (3, 6):\n raise RuntimeError(\"aiohttp 3.7+ requi... | diff --git a/setup.py b/setup.py
index bfdd0766384..252795dbe78 100644
--- a/setup.py
+++ b/setup.py
@@ -80,18 +80,6 @@ def read(f):
return (here / f).read_text("utf-8").strip()
-NEEDS_PYTEST = {"pytest", "test"}.intersection(sys.argv)
-pytest_runner = ["pytest-runner"] if NEEDS_PYTEST else []
-
-tests_require... |
googleapis__python-bigquery-52 | BigQuery: Document the use of the timeout parameter in samples
After adding the new `timeout` parameter to various public methods (#9987), we should demonstrate its usage in the code samples.
Users should be aware of this new feature, and should probably use it by default to avoid sporadic weird issues related to a ... | [
{
"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# https://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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/samples/create_dataset.py b/samples/create_dataset.py
index e47d68a96..6af3c67eb 100644
--- a/samples/create_dataset.py
+++ b/samples/create_dataset.py
@@ -30,9 +30,9 @@ def create_dataset(dataset_id):
# TODO(developer): Specify the geographic location where the dataset should reside.
dataset.loc... |
ytdl-org__youtube-dl-13382 | 4tube.com doesn't work anymore
## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue wil... | [
{
"content": "from __future__ import unicode_literals\n\nimport re\n\nfrom .common import InfoExtractor\nfrom ..utils import (\n parse_duration,\n parse_iso8601,\n sanitized_Request,\n str_to_int,\n)\n\n\nclass FourTubeIE(InfoExtractor):\n IE_NAME = '4tube'\n _VALID_URL = r'https?://(?:www\\.)... | [
{
"content": "from __future__ import unicode_literals\n\nimport re\n\nfrom .common import InfoExtractor\nfrom ..utils import (\n parse_duration,\n parse_iso8601,\n sanitized_Request,\n str_to_int,\n)\n\n\nclass FourTubeIE(InfoExtractor):\n IE_NAME = '4tube'\n _VALID_URL = r'https?://(?:www\\.)... | diff --git a/youtube_dl/extractor/fourtube.py b/youtube_dl/extractor/fourtube.py
index 9776c842222..e3fd08bcfb6 100644
--- a/youtube_dl/extractor/fourtube.py
+++ b/youtube_dl/extractor/fourtube.py
@@ -85,11 +85,11 @@ def _real_extract(self, url):
media_id = params[0]
sources = ['%s' % p for p ... |
mlflow__mlflow-11117 | [BUG] Metric 'faithfulness': Error: Values for grading_context_columns are malformed when sampling from a pandas dataframe
### Issues Policy acknowledgement
- [X] I have read and agree to submit bug reports in accordance with the [issues policy](https://www.github.com/mlflow/mlflow/blob/master/ISSUE_POLICY.md)
### Wh... | [
{
"content": "import json\nimport logging\nimport re\nfrom concurrent.futures import ThreadPoolExecutor, as_completed\nfrom inspect import Parameter, Signature\nfrom typing import TYPE_CHECKING, Any, Dict, List, Optional, Union\n\nfrom mlflow.exceptions import MlflowException\nfrom mlflow.metrics.base import Me... | [
{
"content": "import json\nimport logging\nimport re\nfrom concurrent.futures import ThreadPoolExecutor, as_completed\nfrom inspect import Parameter, Signature\nfrom typing import TYPE_CHECKING, Any, Dict, List, Optional, Union\n\nfrom mlflow.exceptions import MlflowException\nfrom mlflow.metrics.base import Me... | diff --git a/mlflow/metrics/genai/genai_metric.py b/mlflow/metrics/genai/genai_metric.py
index 8feb2e35cf0d2..b77b53b9dcc94 100644
--- a/mlflow/metrics/genai/genai_metric.py
+++ b/mlflow/metrics/genai/genai_metric.py
@@ -28,10 +28,16 @@
def _format_args_string(grading_context_columns: Optional[List[str]], eval_val... |
mabel-dev__opteryx-1467 | 🪲 Column Names not Aliased
**Sample Code/Statement** _If you can, please submit the SQL statement or Python code snippet, or a representative example using the sample datasets._
Example from user
~~~sql
SELECT *
FROM $planets AS P
INNER JOIN $satellites AS S
ON P.id = S.id
~~~
Simplified example... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, s... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, s... | diff --git a/opteryx/operators/exit_node.py b/opteryx/operators/exit_node.py
index 8f2848506..92189f817 100644
--- a/opteryx/operators/exit_node.py
+++ b/opteryx/operators/exit_node.py
@@ -64,6 +64,14 @@ def execute(self) -> Generator:
message=f"Query result contains multiple instances of the same colu... |
DataDog__dd-agent-495 | apache check doesn't support basic auth
If I want basic auth, I'd assume that all I have to do is make my config look like:
```
apache_status_url: http://user:pass@127.0.0.1:80/server-status?auto
```
But actually that just doesn't work. We need to do some special incantations to make `urllib2` do basic auth.
| [
{
"content": "import urllib2\n\nfrom util import headers\nfrom checks import AgentCheck\n\nclass Apache(AgentCheck):\n \"\"\"Tracks basic connection/requests/workers metrics\n\n See http://httpd.apache.org/docs/2.2/mod/mod_status.html for more details\n \"\"\"\n GAUGES = {\n 'IdleWorkers': 'a... | [
{
"content": "import urllib2\nimport base64\n\nfrom util import headers\nfrom checks import AgentCheck\n\nclass Apache(AgentCheck):\n \"\"\"Tracks basic connection/requests/workers metrics\n\n See http://httpd.apache.org/docs/2.2/mod/mod_status.html for more details\n \"\"\"\n GAUGES = {\n 'I... | diff --git a/checks.d/apache.py b/checks.d/apache.py
index 4879f9919c..211a6d29c0 100644
--- a/checks.d/apache.py
+++ b/checks.d/apache.py
@@ -1,4 +1,5 @@
import urllib2
+import base64
from util import headers
from checks import AgentCheck
@@ -35,6 +36,10 @@ def check(self, instance):
tags = instance.get(... |
pantsbuild__pants-9773 | Narrow or remove the hole that pantsd punches in the ignore patterns for `.pids`
In #9636, we punched a hole in the ignore patterns in order to allow `pantsd` to watch its own pidfile. But in cases where users had previously used `pantsd`, this resulted in a failure to deal with an orphaned `watchman` socket file (`wat... | [
{
"content": "# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nimport logging\nimport os\nimport sys\n\nimport pkg_resources\n\nfrom pants.base.build_environment import pants_version\nfrom pants.base.exceptions import BuildCon... | [
{
"content": "# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nimport logging\nimport os\nimport sys\n\nimport pkg_resources\n\nfrom pants.base.build_environment import pants_version\nfrom pants.base.exceptions import BuildCon... | diff --git a/src/python/pants/init/options_initializer.py b/src/python/pants/init/options_initializer.py
index ae89d230641..27589a0ea42 100644
--- a/src/python/pants/init/options_initializer.py
+++ b/src/python/pants/init/options_initializer.py
@@ -118,9 +118,12 @@ def add(absolute_path, include=False):
add(... |
Lightning-AI__torchmetrics-1649 | Pearson Correlation Coefficient raises error when 2D tensor but single task
## 🐛 Bug
I have a regression based modelling repository where the predictions can be multi-output or single-output based on configuration. My network outputs `[n_samples, n_tasks]` where `n_task` varies according to the task. If `n_task` is... | [
{
"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 dcd2e714997..eaab96afb0b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -120,6 +120,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed support in `MetricTracker` for `MultioutputWrapper` and nested structures ([#1608](https://gi... |
googleapis__google-cloud-python-3758 | Unhelpful documentation for Table.upload_from_file.
The [docs](https://googlecloudplatform.github.io/google-cloud-python/stable/bigquery-table.html#google.cloud.bigquery.table.Table.upload_from_file) for `Table.upload_from_file` are not very helpful.
Non of the actual default values are shown. They all show "foo=No... | [
{
"content": "# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/bigquery/google/cloud/bigquery/table.py b/bigquery/google/cloud/bigquery/table.py
index ffbd47ca6c4c..c6bf5db893ab 100644
--- a/bigquery/google/cloud/bigquery/table.py
+++ b/bigquery/google/cloud/bigquery/table.py
@@ -1045,9 +1045,10 @@ def upload_from_file(self,
:param file_obj: A file handle ope... |
streamlit__streamlit-811 | Echo doesn't echo all methods of class
# Summary
Some methods of a class defined inside the echo scope aren't echoed
# Steps to reproduce
## Not working

## Working
;\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2018-2019 Streamlit Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n... | diff --git a/lib/streamlit/__init__.py b/lib/streamlit/__init__.py
index 43c177594ae1..80ceb7d5f358 100644
--- a/lib/streamlit/__init__.py
+++ b/lib/streamlit/__init__.py
@@ -610,7 +610,9 @@ def echo():
lines_to_display.extend(source_lines[start_line:end_line])
initial_spaces = _SPACES_RE.matc... |
holoviz__panel-4920 | Error raised when removing last tab for pn.Tabs component
#### ALL software version info
Im currently on the panel 1.0.2 version
#### Description of expected behavior and the observed behavior
If i close the last tab of a Tabs component, no error should be thrown.
#### Complete, minimal, self-contained example co... | [
{
"content": "\"\"\"\nLayout component to lay out objects in a set of tabs.\n\"\"\"\nfrom __future__ import annotations\n\nfrom collections import defaultdict\nfrom typing import (\n TYPE_CHECKING, ClassVar, List, Mapping, Type,\n)\n\nimport param\n\nfrom bokeh.models import Spacer as BkSpacer, TabPanel as B... | [
{
"content": "\"\"\"\nLayout component to lay out objects in a set of tabs.\n\"\"\"\nfrom __future__ import annotations\n\nfrom collections import defaultdict\nfrom typing import (\n TYPE_CHECKING, ClassVar, List, Mapping, Type,\n)\n\nimport param\n\nfrom bokeh.models import Spacer as BkSpacer, TabPanel as B... | diff --git a/panel/layout/tabs.py b/panel/layout/tabs.py
index df31edc24c..784b573d1e 100644
--- a/panel/layout/tabs.py
+++ b/panel/layout/tabs.py
@@ -76,11 +76,12 @@ class Tabs(NamedListPanel):
def __init__(self, *objects, **params):
super().__init__(*objects, **params)
self._rendered = defaultd... |
pytorch__vision-2513 | VideoClips fails silently when you don't have at least `clip_length_in_frames` in a video
## 🐛 Bug
`VideoClips` fails silently when you don't have at least `clip_length_in_frames` in a video.
## To Reproduce
Steps to reproduce the behavior:
1. Create an `HMDB51` instance (with its corresponding data; which... | [
{
"content": "import bisect\nimport math\nfrom fractions import Fraction\nfrom typing import List\n\nimport torch\nfrom torchvision.io import (\n _probe_video_from_file,\n _read_video_from_file,\n _read_video_timestamps_from_file,\n read_video,\n read_video_timestamps,\n)\n\nfrom .utils import tq... | [
{
"content": "import bisect\nimport math\nimport warnings\nfrom fractions import Fraction\nfrom typing import List\n\nimport torch\nfrom torchvision.io import (\n _probe_video_from_file,\n _read_video_from_file,\n _read_video_timestamps_from_file,\n read_video,\n read_video_timestamps,\n)\n\nfrom... | diff --git a/test/test_datasets_video_utils.py b/test/test_datasets_video_utils.py
index f038302e428..ed3dcfcbbef 100644
--- a/test/test_datasets_video_utils.py
+++ b/test/test_datasets_video_utils.py
@@ -119,6 +119,16 @@ def test_compute_clips_for_video(self):
self.assertTrue(clips.equal(idxs))
self.... |
nilearn__nilearn-3293 | Test error in scipy `1.9.0rc1`
The test is currently failing with scipy `1.9.0rc1`: See [here](https://github.com/nilearn/nilearn/runs/7067861378?check_suite_focus=true) for example. The failing test is:
https://github.com/nilearn/nilearn/blob/4242c0d03e3fc790b17a1d88ce5a4140633c6b6f/nilearn/decoding/tests/test_deco... | [
{
"content": "\"\"\"\nPreprocessing functions for time series.\n\nAll functions in this module should take X matrices with samples x\nfeatures\n\"\"\"\n# Authors: Alexandre Abraham, Gael Varoquaux, Philippe Gervais\n# License: simplified BSD\n\nimport warnings\n\nimport numpy as np\nimport pandas as pd\nfrom sc... | [
{
"content": "\"\"\"\nPreprocessing functions for time series.\n\nAll functions in this module should take X matrices with samples x\nfeatures\n\"\"\"\n# Authors: Alexandre Abraham, Gael Varoquaux, Philippe Gervais\n# License: simplified BSD\n\nimport warnings\n\nimport numpy as np\nimport pandas as pd\nfrom sc... | diff --git a/doc/changes/latest.rst b/doc/changes/latest.rst
index 1d0ff629ab..dd2a1466fa 100644
--- a/doc/changes/latest.rst
+++ b/doc/changes/latest.rst
@@ -24,6 +24,8 @@ Fixes
- Function ``nilearn.glm.second_level.second_level._check_second_level_input`` now raises an error when ``flm_object`` argument is ``False``... |
zestedesavoir__zds-site-2915 | Impossible de rechercher certainnes informations au delà de la première page
**Scénario 1:**
- Aller sur la page de recherche : `http://zestedesavoir.com/rechercher/`
- Saisir dans la zone de recherche : `&ab`
- Constatez qu'il y'a des résultats sur plusieurs pages
- Cliquer sur suivant
- **Pouf : une erreur 404**
**S... | [
{
"content": "# -*- coding: utf-8 -*-\n\nfrom django import template\nfrom functools import wraps\n\nregister = template.Library()\n\n\"\"\"\nDecorator to facilitate template tag creation.\n\"\"\"\n\n\ndef easy_tag(func):\n \"\"\"\n Deal with the repetitive parts of parsing template tags :\n\n - Wraps... | [
{
"content": "# -*- coding: utf-8 -*-\n\nfrom django import template\nfrom django.utils.http import urlquote\nfrom functools import wraps\n\nregister = template.Library()\n\n\"\"\"\nDecorator to facilitate template tag creation.\n\"\"\"\n\n\ndef easy_tag(func):\n \"\"\"\n Deal with the repetitive parts of... | diff --git a/zds/utils/templatetags/append_to_get.py b/zds/utils/templatetags/append_to_get.py
index a6cfacf37e..8ca4e74ac9 100644
--- a/zds/utils/templatetags/append_to_get.py
+++ b/zds/utils/templatetags/append_to_get.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from django import template
+from django.utils.http i... |
nerfstudio-project__nerfstudio-1250 | Include "--vis viewer" in sample "ns-train" command on the README
**Describe the bug**
On the [README](https://github.com/nerfstudio-project/nerfstudio), it implies the `ns-train` command will launch the web viewer by default. However when I tried it today it just launched WanB. I believe this is due to the `--vis` ... | [
{
"content": "# Copyright 2022 The Nerfstudio Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\... | [
{
"content": "# Copyright 2022 The Nerfstudio Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\... | diff --git a/nerfstudio/configs/method_configs.py b/nerfstudio/configs/method_configs.py
index d11c377b50..30682a2429 100644
--- a/nerfstudio/configs/method_configs.py
+++ b/nerfstudio/configs/method_configs.py
@@ -248,6 +248,9 @@
method_configs["tensorf"] = TrainerConfig(
method_name="tensorf",
+ steps_per_... |
MycroftAI__mycroft-core-845 | Mycroft doesn't starts if /etc/mycroft/mycroft.conf exists and has comments
In log.py there are these statements:
if isfile(SYSTEM_CONFIG):
with open(SYSTEM_CONFIG) as f:
config = json.load(f)
log_level = config.get("log_level", "DEBUG")
note no filter of comments has been done using "load_... | [
{
"content": "# Copyright 2016 Mycroft AI, Inc.\n#\n# This file is part of Mycroft Core.\n#\n# Mycroft Core is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at ... | [
{
"content": "# Copyright 2016 Mycroft AI, Inc.\n#\n# This file is part of Mycroft Core.\n#\n# Mycroft Core is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at ... | diff --git a/mycroft/util/log.py b/mycroft/util/log.py
index d6a4afd08870..29ea1de7d2af 100644
--- a/mycroft/util/log.py
+++ b/mycroft/util/log.py
@@ -18,6 +18,7 @@
import logging
from os.path import isfile
+from mycroft.util.json_helper import load_commented_json
SYSTEM_CONFIG = '/etc/mycroft/mycroft.conf'
@@... |
meltano__meltano-5958 | Telemetry project counts inflated if using a custom project_id
Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/3502
Originally created by @aaronsteers on 2022-05-17 18:33:12
---
@edgarrmondragon helpfully pointed me to this block in our [tap-gitlab conversation](https://github.com/MeltanoLabs/tap-g... | [
{
"content": "\"\"\"Google Analytics tracker for CLI commands.\"\"\"\n\nfrom __future__ import annotations\n\nimport hashlib\nimport json\nimport logging\nimport uuid\nfrom typing import Any\n\nimport requests\n\nfrom meltano.core.project import Project\nfrom meltano.core.project_settings_service import Project... | [
{
"content": "\"\"\"Google Analytics tracker for CLI commands.\"\"\"\n\nfrom __future__ import annotations\n\nimport hashlib\nimport json\nimport logging\nimport uuid\nfrom typing import Any\n\nimport requests\n\nfrom meltano.core.project import Project\nfrom meltano.core.project_settings_service import Project... | diff --git a/.gitlab/ci/test.gitlab-ci.yml b/.gitlab/ci/test.gitlab-ci.yml
index cd90e74274..ca5a98b23f 100644
--- a/.gitlab/ci/test.gitlab-ci.yml
+++ b/.gitlab/ci/test.gitlab-ci.yml
@@ -27,12 +27,11 @@ lint_python:
- PYTHON_IMAGE_VERSION: ["3.8"]
before_script: []
script:
- - git remote add meltano htt... |
facebookresearch__CompilerGym-760 | [examples] llvm_rl/tests/training_integration_test.py hangs on CI
## 🐛 Bug
The call to `model.test()` hangs before failing with a TimeoutError.
| [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\n\nclass BenchmarkInitError(OSError):\n \"\"\"Base class for errors raised if a benchmark fails to initialize.\"\... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\n\nclass BenchmarkInitError(OSError, ValueError):\n \"\"\"Base class for errors raised if a benchmark fails to in... | diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 528f7652a..05d46d301 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -223,7 +223,7 @@ jobs:
- name: Run the test suite
run: |
make test-cov \
- PYTEST_ARGS="... |
scrapy__scrapy-6322 | Make the build reproducible
Whilst working on the [Reproducible Builds](https://reproducible-builds.org/) effort I noticed that scrapy could not be built reproducibly
This is due to the documentation embedding the current build year in the generated files, therefore making the build vary depending on when you build ... | [
{
"content": "# Scrapy documentation build configuration file, created by\n# sphinx-quickstart on Mon Nov 24 12:02:52 2008.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# The contents of this file are pickled, so don't put values in the namespace\n# that aren't pickle... | [
{
"content": "# Scrapy documentation build configuration file, created by\n# sphinx-quickstart on Mon Nov 24 12:02:52 2008.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# The contents of this file are pickled, so don't put values in the namespace\n# that aren't pickle... | diff --git a/docs/conf.py b/docs/conf.py
index 399078010a3..dcd2c9a3a46 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -10,7 +10,6 @@
# serve to show the default.
import sys
-from datetime import datetime
from pathlib import Path
# If your extensions are in another directory, add it here. If the directory
@@ -... |
python-poetry__poetry-8649 | Some packages source installation break in 1.7 due to tar extraction (LinkOutsideDestinationError)
<!--
Hi there! Thank you for submitting a bug report!
Before you submit your issue, please review and follow the instructions at
https://python-poetry.org/docs/contributing/#reporting-bugs. Fully fill out... | [
{
"content": "from __future__ import annotations\n\nimport hashlib\nimport io\nimport os\nimport shutil\nimport stat\nimport sys\nimport tarfile\nimport tempfile\nimport zipfile\n\nfrom collections.abc import Mapping\nfrom contextlib import contextmanager\nfrom contextlib import suppress\nfrom functools import ... | [
{
"content": "from __future__ import annotations\n\nimport hashlib\nimport io\nimport os\nimport shutil\nimport stat\nimport sys\nimport tarfile\nimport tempfile\nimport zipfile\n\nfrom collections.abc import Mapping\nfrom contextlib import contextmanager\nfrom contextlib import suppress\nfrom functools import ... | diff --git a/src/poetry/utils/helpers.py b/src/poetry/utils/helpers.py
index ad74353031d..5c312a6b6a9 100644
--- a/src/poetry/utils/helpers.py
+++ b/src/poetry/utils/helpers.py
@@ -298,8 +298,14 @@ def extractall(source: Path, dest: Path, zip: bool) -> None:
with zipfile.ZipFile(source) as archive:
... |
mozilla__kitsune-3307 | monkeypatch_render should only be used in testing
https://github.com/mozilla/kitsune/blob/69253e763ada10422d3c88e681bcb4af00e1eb4f/kitsune/sumo/monkeypatch.py#L105 will always evaluate to True, so monkeypatch_render is always called by patch_all, but: https://github.com/mozilla/kitsune/blob/69253e763ada10422d3c88e681bc... | [
{
"content": "from functools import wraps\n\nfrom django.forms import fields\nfrom django.forms import widgets\n\nfrom elasticutils import get_es as base_get_es\nfrom elasticutils.contrib import django as elasticutils_django\n\n\n_has_been_patched = False\n\n\nclass DateWidget(fields.DateField.widget):\n inp... | [
{
"content": "import sys\nfrom functools import wraps\n\nfrom django.forms import fields\nfrom django.forms import widgets\n\nfrom elasticutils import get_es as base_get_es\nfrom elasticutils.contrib import django as elasticutils_django\n\n\n_has_been_patched = False\nTESTING = (len(sys.argv) > 1 and sys.argv[1... | diff --git a/kitsune/sumo/monkeypatch.py b/kitsune/sumo/monkeypatch.py
index 6916be7616a..83e4bb626a7 100644
--- a/kitsune/sumo/monkeypatch.py
+++ b/kitsune/sumo/monkeypatch.py
@@ -1,3 +1,4 @@
+import sys
from functools import wraps
from django.forms import fields
@@ -8,6 +9,7 @@
_has_been_patched = False
+TES... |
pre-commit__pre-commit-216 | pre-commit potentially uses the wrong `virtualenv` when building environments
It should use `sys.executable, '-m', 'virtualenv'` instead of `'virtualenv'`
| [
{
"content": "from __future__ import unicode_literals\n\nimport contextlib\nimport distutils.spawn\nimport os\n\nimport virtualenv\n\nfrom pre_commit.languages import helpers\nfrom pre_commit.util import clean_path_on_failure\n\n\nENVIRONMENT_DIR = 'py_env'\n\n\nclass PythonEnv(helpers.Environment):\n @prope... | [
{
"content": "from __future__ import unicode_literals\n\nimport contextlib\nimport distutils.spawn\nimport os\nimport sys\n\nimport virtualenv\n\nfrom pre_commit.languages import helpers\nfrom pre_commit.util import clean_path_on_failure\n\n\nENVIRONMENT_DIR = 'py_env'\n\n\nclass PythonEnv(helpers.Environment):... | diff --git a/pre_commit/languages/python.py b/pre_commit/languages/python.py
index 4423c18b5..7c7d9a47f 100644
--- a/pre_commit/languages/python.py
+++ b/pre_commit/languages/python.py
@@ -3,6 +3,7 @@
import contextlib
import distutils.spawn
import os
+import sys
import virtualenv
@@ -43,7 +44,10 @@ def install... |
falconry__falcon-993 | Default OPTIONS responder does not set Content-Length to "0"
Per RFC 7231:
> A server MUST generate a Content-Length field with a value of "0" if no payload body is to be sent in the response.
| [
{
"content": "# Copyright 2013 by Rackspace Hosting, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requir... | [
{
"content": "# Copyright 2013 by Rackspace Hosting, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requir... | diff --git a/falcon/responders.py b/falcon/responders.py
index da093e4b8..f4dce2f3f 100644
--- a/falcon/responders.py
+++ b/falcon/responders.py
@@ -17,7 +17,7 @@
from falcon.errors import HTTPBadRequest
from falcon.errors import HTTPMethodNotAllowed
from falcon.errors import HTTPNotFound
-from falcon.status_codes i... |
comic__grand-challenge.org-1728 | Annotation answers get parsed incorrectly in csv export
For annotation type answers, the csv export looks like this currently:

It appears the annotation json gets part as par... | [
{
"content": "from rest_framework_csv.renderers import CSVRenderer\n\n\nclass PaginatedCSVRenderer(CSVRenderer):\n results_field = \"results\"\n\n def render(self, data, *args, **kwargs):\n if self.results_field in data:\n data = data[self.results_field]\n\n return super().render(... | [
{
"content": "import json\n\nfrom rest_framework_csv.renderers import CSVRenderer\n\n\nclass PaginatedCSVRenderer(CSVRenderer):\n results_field = \"results\"\n\n def render(self, data, *args, **kwargs):\n if self.results_field in data:\n data = data[self.results_field]\n\n return ... | diff --git a/app/grandchallenge/core/renderers.py b/app/grandchallenge/core/renderers.py
index a869903e28..a4bc115d46 100644
--- a/app/grandchallenge/core/renderers.py
+++ b/app/grandchallenge/core/renderers.py
@@ -1,3 +1,5 @@
+import json
+
from rest_framework_csv.renderers import CSVRenderer
@@ -9,3 +11,19 @@ de... |
ethereum__web3.py-3027 | Fix logger for AsyncHTTPProvider
AsyncHTTPProvider is getting the logger for `web3.providers.HTTPProvider` but should instead use `web3.providers.AsyncHTTPProvider`
| [
{
"content": "from .async_base import ( # noqa: F401\n AsyncBaseProvider,\n)\nfrom .base import ( # noqa: F401\n BaseProvider,\n JSONBaseProvider,\n)\nfrom .ipc import ( # noqa: F401,\n IPCProvider,\n)\nfrom .rpc import ( # noqa: F401,\n HTTPProvider,\n)\nfrom .websocket import ( # noqa: F40... | [
{
"content": "from .async_base import ( # noqa: F401\n AsyncBaseProvider,\n)\nfrom .async_rpc import ( # noqa: F401\n AsyncHTTPProvider,\n)\nfrom .base import ( # noqa: F401\n BaseProvider,\n JSONBaseProvider,\n)\nfrom .ipc import ( # noqa: F401,\n IPCProvider,\n)\nfrom .rpc import ( # noqa:... | diff --git a/newsfragments/3026.bugfix.rst b/newsfragments/3026.bugfix.rst
new file mode 100644
index 0000000000..718955fead
--- /dev/null
+++ b/newsfragments/3026.bugfix.rst
@@ -0,0 +1 @@
+Properly initialize logger in ``AsyncHTTPProvider``.
\ No newline at end of file
diff --git a/web3/providers/__init__.py b/web3/pr... |
django-json-api__django-rest-framework-json-api-526 | Don't render empty objects on relationships
## Description of the Change
REGRESION (version 2.6)
In previous versions, OneToOneFields without Hyperlink settings in its Serializer doesn't render anything.
In version 2.6, an empty JSON object is rendered.
## Checklist
- [X] PR only contains one change (con... | [
{
"content": "\"\"\"\nRenderers\n\"\"\"\nimport copy\nfrom collections import Iterable, OrderedDict, defaultdict\n\nimport inflection\nfrom django.db.models import Manager\nfrom django.utils import encoding, six\nfrom rest_framework import relations, renderers\nfrom rest_framework.serializers import BaseSeriali... | [
{
"content": "\"\"\"\nRenderers\n\"\"\"\nimport copy\nfrom collections import Iterable, OrderedDict, defaultdict\n\nimport inflection\nfrom django.db.models import Manager\nfrom django.utils import encoding, six\nfrom rest_framework import relations, renderers\nfrom rest_framework.serializers import BaseSeriali... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 73a17c5f..f3aafdd2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -26,6 +26,7 @@ any parts of the framework not mentioned in the documentation should generally b
* Avoid patch on `RelationshipView` deleting relationship instance when constraint would allow null ([#242](h... |
voicepaw__so-vits-svc-fork-96 | Speaker not automatically set to 0 if not found when cluster_ratio != 0
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
**Additional context**
Add any other context about the problem here.
| [
{
"content": "from __future__ import annotations\n\nfrom copy import deepcopy\nfrom logging import getLogger\nfrom pathlib import Path\nfrom typing import Any, Callable, Iterable, Literal\n\nimport attrs\nimport librosa\nimport numpy as np\nimport torch\nfrom cm_time import timer\nfrom numpy import dtype, float... | [
{
"content": "from __future__ import annotations\n\nfrom copy import deepcopy\nfrom logging import getLogger\nfrom pathlib import Path\nfrom typing import Any, Callable, Iterable, Literal\n\nimport attrs\nimport librosa\nimport numpy as np\nimport torch\nfrom cm_time import timer\nfrom numpy import dtype, float... | diff --git a/src/so_vits_svc_fork/inference/infer_tool.py b/src/so_vits_svc_fork/inference/infer_tool.py
index 0eb2d1dd..f63712e5 100644
--- a/src/so_vits_svc_fork/inference/infer_tool.py
+++ b/src/so_vits_svc_fork/inference/infer_tool.py
@@ -189,6 +189,16 @@ def infer(
else:
LOG.warning(f... |
paperless-ngx__paperless-ngx-2775 | [BUG] document_exporter: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/paperless/paperless-exportmwjrtave'
### Description
when using the document_exporter with "-z" flag for creating zip archives the document exporter assumes the directory /tmp/paperless to be already existing.
document_exporter.py... | [
{
"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 fdea8aff64a..427cd4ef2d7 100644
--- a/src/documents/management/commands/document_exporter.py
+++ b/src/documents/management/commands/document_exporter.py
@@ -156,11 +156,13 @@ def handle(se... |
akvo__akvo-rsr-3803 | /related_project/ issue
Attempted to POST the following data:
{"relation":"1","project":"8012","related_iati_id":"23232"}
The response is 400:
`related_project: ["This field is required."]`
However, we want to allow a selection of external project:
<img width="1440" alt="Screenshot 2019-08-16 10 16 11" src="ht... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\n\nfrom akv... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\n\nfrom akv... | diff --git a/akvo/rest/serializers/related_project.py b/akvo/rest/serializers/related_project.py
index bbefd6f95f..e31783c4e4 100644
--- a/akvo/rest/serializers/related_project.py
+++ b/akvo/rest/serializers/related_project.py
@@ -5,7 +5,7 @@
# For additional details on the GNU license please see < http://www.gnu.org/... |
matrix-org__synapse-13632 | Retention policy purge jobs fail if `run_background_tasks_on` is set to something other than master
If `run_background_tasks_on` is set to anything other than `master`, Synapse will try to run background jobs on a worker, including the message retention policies support's purge jobs. However, these jobs end up calling ... | [
{
"content": "# Copyright 2014 - 2016 OpenMarket Ltd\n# Copyright 2017 - 2018 New Vector 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/lice... | [
{
"content": "# Copyright 2014 - 2016 OpenMarket Ltd\n# Copyright 2017 - 2018 New Vector 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/lice... | diff --git a/changelog.d/13632.bugfix b/changelog.d/13632.bugfix
new file mode 100644
index 000000000000..e4b7b403cd33
--- /dev/null
+++ b/changelog.d/13632.bugfix
@@ -0,0 +1 @@
+Fix the running of MSC1763 retention purge_jobs in deployments with background jobs running on a worker by forcing them back onto the main wo... |
HypothesisWorks__hypothesis-2213 | Missing argument validation for `rule()`
I was playing around with [stateful testing](https://hypothesis.readthedocs.io/en/latest/stateful.html) earlier today, and messed up a function call. Here's the problem: this caused an internal error instead of a validation error with a nice message!
`hypothesis.stateful.rul... | [
{
"content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Most of this work is copyright (C) 2013-2019 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full li... | [
{
"content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Most of this work is copyright (C) 2013-2019 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full li... | diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
index fa65a9dec4..0b13e54f66 100644
--- a/CONTRIBUTING.rst
+++ b/CONTRIBUTING.rst
@@ -190,6 +190,7 @@ their individual contributions.
* `Alex Willmer <https://github.com/moreati>`_ (alex@moreati.org.uk)
* `Ben Peterson <https://github.com/killthrush>`_ (killthrush@hotm... |
benoitc__gunicorn-1969 | Support wsgi.input_terminated flag
Gunicorn supports chunked transfer encoding, but unfortunately the WSGI spec has no support for it. A standard was proposed by @mitsuhiko here: https://gist.github.com/mitsuhiko/5721547. If the WSGI server supports streams without a content length, it should set `environ['wsgi.input_t... | [
{
"content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\nimport io\nimport logging\nimport os\nimport re\nimport sys\n\nfrom gunicorn.http.message import HEADER_RE\nfrom gunicorn.http.errors import InvalidHeader, InvalidHe... | [
{
"content": "# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the MIT license.\n# See the NOTICE for more information.\n\nimport io\nimport logging\nimport os\nimport re\nimport sys\n\nfrom gunicorn.http.message import HEADER_RE\nfrom gunicorn.http.errors import InvalidHeader, InvalidHe... | diff --git a/gunicorn/http/wsgi.py b/gunicorn/http/wsgi.py
index 593c8f24d..3694eb9eb 100644
--- a/gunicorn/http/wsgi.py
+++ b/gunicorn/http/wsgi.py
@@ -73,6 +73,7 @@ def base_environ(cfg):
"wsgi.multiprocess": (cfg.workers > 1),
"wsgi.run_once": False,
"wsgi.file_wrapper": FileWrapper,
+ ... |
awslabs__gluonts-2312 | Include forecast_start in Evaluator output item_metrics
## Description
When examining results of evaluation (ex. from call to `backtest.backtest_metrics()`, especially on a rolling dataset, it is useful to keep track of forecast_start for each item. With this information aggregations/breakdowns over different time ... | [
{
"content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\").\n# You may not use this file except in compliance with the License.\n# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE... | [
{
"content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\").\n# You may not use this file except in compliance with the License.\n# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE... | diff --git a/src/gluonts/evaluation/_base.py b/src/gluonts/evaluation/_base.py
index 4abcba5395..376e237a6e 100644
--- a/src/gluonts/evaluation/_base.py
+++ b/src/gluonts/evaluation/_base.py
@@ -255,7 +255,7 @@ def __call__(
{
col: np.float64
for col in metrics_per_ts.colu... |
dbt-labs__dbt-core-4359 | Ensure that all dbt invocations have an invocation_id
This is a sub-issue of #4260.
In order to make sure we can distinguish logs from different runs we should always have an invocation_id. If tracking is off, it isn't created today so we would need to create it. (to add it to logging, add it as a class property on t... | [
{
"content": "# TODO: this file is one big TODO\nimport os\nfrom dbt.exceptions import RuntimeException\nfrom dbt import flags\nfrom collections import namedtuple\n\nRuntimeArgs = namedtuple(\n 'RuntimeArgs', 'project_dir profiles_dir single_threaded profile_name'\n)\n\n\ndef get_dbt_config(project_dir, sing... | [
{
"content": "# TODO: this file is one big TODO\nimport os\nfrom dbt.exceptions import RuntimeException\nfrom dbt import flags\nfrom collections import namedtuple\n\nRuntimeArgs = namedtuple(\n 'RuntimeArgs', 'project_dir profiles_dir single_threaded profile_name'\n)\n\n\ndef get_dbt_config(project_dir, sing... | diff --git a/core/dbt/lib.py b/core/dbt/lib.py
index e8345333bc5..5cf99b7e3bd 100644
--- a/core/dbt/lib.py
+++ b/core/dbt/lib.py
@@ -12,6 +12,7 @@
def get_dbt_config(project_dir, single_threaded=False):
from dbt.config.runtime import RuntimeConfig
import dbt.adapters.factory
+ import dbt.events.functions
... |
napari__napari-1147 | Toggle current layer visibility w/keyboard shortcut
## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->
I'd like to introduce a new keyboard shortcut to toggle visibility of current layer
## Motivation
<!-- Please outline the motivation for the proposal. Is your feature request relate... | [
{
"content": "from ..layers import Layer\nfrom ..utils.naming import inc_name_count\nfrom ..utils.list import ListModel\n\n\ndef _add(event):\n \"\"\"When a layer is added, set its name.\"\"\"\n layers = event.source\n layer = event.item\n layer.name = layers._coerce_name(layer.name, layer)\n lay... | [
{
"content": "from ..layers import Layer\nfrom ..utils.naming import inc_name_count\nfrom ..utils.list import ListModel\n\n\ndef _add(event):\n \"\"\"When a layer is added, set its name.\"\"\"\n layers = event.source\n layer = event.item\n layer.name = layers._coerce_name(layer.name, layer)\n lay... | diff --git a/napari/_viewer_key_bindings.py b/napari/_viewer_key_bindings.py
index 732b6c253d9..69456c557d5 100644
--- a/napari/_viewer_key_bindings.py
+++ b/napari/_viewer_key_bindings.py
@@ -140,3 +140,9 @@ def play(viewer):
else:
axis = viewer.window.qt_viewer.dims.last_used or 0
viewer.window... |
RedHatInsights__insights-core-2165 | lscpu datasource missing for sos reports
If we add a new spec, let's check if it exists in sos report and include a spec for it if it does. lscpu is in `sos_commands/processor/lscpu`.
| [
{
"content": "from functools import partial\nfrom insights.specs import Specs\nfrom insights.core.context import SosArchiveContext\nfrom insights.core.spec_factory import simple_file, first_of, first_file, glob_file\n\nfirst_file = partial(first_file, context=SosArchiveContext)\nglob_file = partial(glob_file, c... | [
{
"content": "from functools import partial\nfrom insights.specs import Specs\nfrom insights.core.context import SosArchiveContext\nfrom insights.core.spec_factory import simple_file, first_of, first_file, glob_file\n\nfirst_file = partial(first_file, context=SosArchiveContext)\nglob_file = partial(glob_file, c... | diff --git a/insights/specs/sos_archive.py b/insights/specs/sos_archive.py
index ede4384e90..1c467ff883 100644
--- a/insights/specs/sos_archive.py
+++ b/insights/specs/sos_archive.py
@@ -60,6 +60,7 @@ class SosSpecs(Specs):
journal_since_boot = first_of([simple_file("sos_commands/logs/journalctl_--no-pager_--boot"... |
pytorch__tensordict-315 | Default batch_size + TensorDictModule can be surprising
TensordictModule allows to use a tensordict/class as input to the forward module. But it also support the nn.Module style call with tensors.
Under the hood it creates a new [tensordict](https://github.com/pytorch-labs/tensordict/blob/main/tensordict/nn/common.py#... | [
{
"content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom __future__ import annotations\n\nimport functools\nimport inspect\nimport warnings\nfrom textwrap import ind... | [
{
"content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom __future__ import annotations\n\nimport functools\nimport inspect\nimport warnings\nfrom textwrap import ind... | diff --git a/tensordict/nn/common.py b/tensordict/nn/common.py
index b165f0d75..5b2a7f834 100644
--- a/tensordict/nn/common.py
+++ b/tensordict/nn/common.py
@@ -250,7 +250,9 @@ def wrapper(_self, *args: Any, **kwargs: Any) -> Any:
f"The key {expected_key} wasn't found in the keyword arg... |
Gallopsled__pwntools-1632 | Pwntools not working on Notebook (Jupyter and Google Colab)
# Pwntools Issue Template
Thanks for contributing to Pwntools!
When reporting an issue, be sure that you are running the latest released version of pwntools (`pip install --upgrade pwntools`).
After executing `pip install --upgrade pwntools` I got:
```... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\n\nimport sys\n\nfrom pwnlib.term import completer\nfrom pwnlib.term import key\nfrom pwnlib.term import keymap\nfrom pwnlib.term import readline\nfrom pwnlib.term import term\nfrom pwnlib.term import termcap\nfrom pwnlib.term... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\n\nimport sys\n\nfrom pwnlib.term import completer\nfrom pwnlib.term import key\nfrom pwnlib.term import keymap\nfrom pwnlib.term import readline\nfrom pwnlib.term import term\nfrom pwnlib.term import termcap\nfrom pwnlib.term... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index fa1337d64..55c0fae3b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -59,9 +59,11 @@ The table below shows which release corresponds to each branch, and what date th
- [#1606][1606] Fix `asm()` and `disasm()` for MSP430, S390
- [#1616][1616] Fix `cyclic` cli for 64 bit... |
meltano__meltano-6174 | Bug: Meltano UI fails to load schedules
Looks like a bug in `controllers/orchestration.py`.
```
File "/usr/local/lib/python3.9/site-packages/meltano/api/controllers/orchestrations.py", line 497, in get_pipeline_schedules
if schedule.job and jobs_in_list:
AttributeError: 'dict' object has no attribute 'job'
... | [
{
"content": "\"\"\"API Orchestation of Pipellines and Validations.\"\"\"\n\nimport asyncio\nimport logging\nimport shutil\n\nimport sqlalchemy\nfrom flask import Response, jsonify, request, send_file\nfrom flask_restful import Api, Resource, fields, marshal_with\nfrom werkzeug.exceptions import Conflict, Unpro... | [
{
"content": "\"\"\"API Orchestation of Pipellines and Validations.\"\"\"\n\nimport asyncio\nimport logging\nimport shutil\n\nimport sqlalchemy\nfrom flask import Response, jsonify, request, send_file\nfrom flask_restful import Api, Resource, fields, marshal_with\nfrom werkzeug.exceptions import Conflict, Unpro... | diff --git a/src/meltano/api/controllers/orchestrations.py b/src/meltano/api/controllers/orchestrations.py
index 4c493a749a..fbe57d1990 100644
--- a/src/meltano/api/controllers/orchestrations.py
+++ b/src/meltano/api/controllers/orchestrations.py
@@ -494,9 +494,11 @@ def get_pipeline_schedules():
formatted_schedul... |
comic__grand-challenge.org-1298 | Include slice thickness in mha generated from DICOM
The calcium scoring algorithm is one of the very few algorithms that use both the slice spacing and the slice thickness. The slice spacing is not a standard header field in mha/mhd files, but the algorithm checks anyway if there is a "SliceThickness" header field. It ... | [
{
"content": "import tempfile\nfrom collections import namedtuple\nfrom math import isclose\nfrom pathlib import Path\n\nimport SimpleITK\nimport numpy as np\nimport pydicom\n\nfrom grandchallenge.cases.image_builders import ImageBuilderResult\nfrom grandchallenge.cases.image_builders.utils import convert_itk_t... | [
{
"content": "import tempfile\nfrom collections import namedtuple\nfrom math import isclose\nfrom pathlib import Path\n\nimport SimpleITK\nimport numpy as np\nimport pydicom\n\nfrom grandchallenge.cases.image_builders import ImageBuilderResult\nfrom grandchallenge.cases.image_builders.utils import convert_itk_t... | diff --git a/app/grandchallenge/cases/image_builders/dicom.py b/app/grandchallenge/cases/image_builders/dicom.py
index 31a4b07f33..c748a2d42b 100644
--- a/app/grandchallenge/cases/image_builders/dicom.py
+++ b/app/grandchallenge/cases/image_builders/dicom.py
@@ -35,6 +35,7 @@
"StudyInstanceUID",
"SeriesInstan... |
Textualize__textual-3616 | Duplicate CSS errors from screens
CSS errors in screens are still duplicate (see #3566, and https://github.com/Textualize/textual/pull/3566/files#r1367884524 in particular).
CSS parsing errors show up as duplicate when parsing the `CSS` class variable or css from an external file, but not from `DEFAULT_CSS`.
App ... | [
{
"content": "from __future__ import annotations\n\nimport os\nfrom collections import defaultdict\nfrom itertools import chain\nfrom operator import itemgetter\nfrom pathlib import Path, PurePath\nfrom typing import Iterable, NamedTuple, Sequence, cast\n\nimport rich.repr\nfrom rich.console import Console, Con... | [
{
"content": "from __future__ import annotations\n\nimport os\nfrom collections import defaultdict\nfrom itertools import chain\nfrom operator import itemgetter\nfrom pathlib import Path, PurePath\nfrom typing import Iterable, NamedTuple, Sequence, cast\n\nimport rich.repr\nfrom rich.console import Console, Con... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2c6ecb38e9..57123114f3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## Unreleased
+### Fixed
+
+- Duplicate CSS errors when parsing CSS from a screen https://github.com/Textualize/... |
aws-cloudformation__cfn-lint-3203 | `!FindInMap` issues while in `Fn::ForEach`, cannot find resource or parameter
### CloudFormation Lint Version
cfn-lint 0.87.0
### What operating system are you using?
Ubuntu
### Describe the bug
I am now getting:
> E1012 Ref AccountId not found as a resource or parameter
When using `!FindInMap` in a `Fn::ForE... | [
{
"content": "\"\"\"\nCopyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\n\nfrom __future__ import annotations\n\nimport hashlib\nimport json\nimport logging\nimport random\nimport string\nfrom copy import deepcopy\nfrom typing import Any, Iterable, L... | [
{
"content": "\"\"\"\nCopyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\n\nfrom __future__ import annotations\n\nimport hashlib\nimport json\nimport logging\nimport random\nimport string\nfrom copy import deepcopy\nfrom typing import Any, Iterable, L... | diff --git a/src/cfnlint/template/transforms/_language_extensions.py b/src/cfnlint/template/transforms/_language_extensions.py
index 3a5ce67d66..c504721bf6 100644
--- a/src/cfnlint/template/transforms/_language_extensions.py
+++ b/src/cfnlint/template/transforms/_language_extensions.py
@@ -169,6 +169,9 @@ def _walk(sel... |
aio-libs__aiohttp-2763 | IndexError in RequestHandler
While running a server with aiohttp 3.0.1 using Python 3.6 on Windows 7, I'm occasionally encountering this error:
```
Task exception was never retrieved
future: <Task finished coro=<RequestHandler.start() done, defined at C:\Program Files\Python36\lib\site-packages\aiohttp\web_protocol.... | [
{
"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/2752.bugfix b/CHANGES/2752.bugfix
new file mode 100644
index 00000000000..b53fe016fd1
--- /dev/null
+++ b/CHANGES/2752.bugfix
@@ -0,0 +1 @@
+Fix ``IndexError`` in HTTP request handling by server.
\ No newline at end of file
diff --git a/aiohttp/web_protocol.py b/aiohttp/web_protocol.py
index 8b52de... |
pypa__pipenv-3065 | pipenv clean fails if PyGObject is installed inside the venv
### Issue description
pipenv clean fails (throws exception) when executed with PyGObject installed inside the virtual environment.
<del>It is possible that there are other packages on PyPI that can trigger this behavior, but so far I haven't found any o... | [
{
"content": "# -*- coding: utf-8 -*-\nimport io\nimport json\nimport os\nimport re\nimport sys\nimport base64\nimport fnmatch\nimport hashlib\nimport contoml\nfrom first import first\nfrom cached_property import cached_property\nimport pipfile\nimport pipfile.api\nimport six\nimport vistir\nimport toml\n\nfrom... | [
{
"content": "# -*- coding: utf-8 -*-\nimport io\nimport json\nimport os\nimport re\nimport sys\nimport base64\nimport fnmatch\nimport hashlib\nimport contoml\nfrom first import first\nfrom cached_property import cached_property\nimport pipfile\nimport pipfile.api\nimport six\nimport vistir\nimport toml\n\nfrom... | diff --git a/pipenv/project.py b/pipenv/project.py
index a3e31bfd93..c2dc966816 100644
--- a/pipenv/project.py
+++ b/pipenv/project.py
@@ -926,8 +926,8 @@ def proper_case_section(self, section):
@property
def _pyversion(self):
include_dir = vistir.compat.Path(self.virtualenv_location) / "include"
- ... |
electricitymaps__electricitymaps-contrib-2106 | Nova Scotia new URL (CA_NS)
Quick note, I haven't had a chance to dig into it in detail yet:
Looks like the website has been redesigned and things shuffled around a bit.
New page URL is https://www.nspower.ca/clean-energy/todays-energy-stats
JSON URL is now https://www.nspower.ca/library/CurrentLoad/CurrentMix... | [
{
"content": "#!/usr/bin/env python3\n\n# The arrow library is used to handle datetimes\nimport arrow\n# The request library is used to fetch content through HTTP\nimport requests\n\n\ndef _get_ns_info(requests_obj, logger):\n zone_key = 'CA-NS'\n\n # This is based on validation logic in https://www.nspow... | [
{
"content": "#!/usr/bin/env python3\n\n# The arrow library is used to handle datetimes\nimport arrow\n# The request library is used to fetch content through HTTP\nimport requests\n\n\ndef _get_ns_info(requests_obj, logger):\n zone_key = 'CA-NS'\n\n # This is based on validation logic in https://www.nspow... | diff --git a/README.md b/README.md
index 24a6d58e89..3f23de405e 100644
--- a/README.md
+++ b/README.md
@@ -90,7 +90,7 @@ Real-time electricity data is obtained using [parsers](https://github.com/tmrowc
- Bulgaria: [TSO](http://tso.bg/default.aspx/page-707/bg)
- Canada (Alberta): [AESO](http://ets.aeso.ca/ets_web/ip/M... |
feast-dev__feast-2786 | Unable to read parquet files from S3 location. Found a bug in file_source.py in python SDK.
## Expected Behavior
```python
from feast import Entity, Feature, FeatureView, ValueType, FeatureService, PushSource
from feast.data_format import ParquetFormat, AvroFormat, ProtoFormat
from feast.infra.offline_stores.file_... | [
{
"content": "import warnings\nfrom typing import Callable, Dict, Iterable, List, Optional, Tuple\n\nfrom pyarrow._fs import FileSystem\nfrom pyarrow._s3fs import S3FileSystem\nfrom pyarrow.parquet import ParquetDataset\n\nfrom feast import type_map\nfrom feast.data_format import FileFormat, ParquetFormat\nfrom... | [
{
"content": "import warnings\nfrom typing import Callable, Dict, Iterable, List, Optional, Tuple\n\nfrom pyarrow._fs import FileSystem\nfrom pyarrow._s3fs import S3FileSystem\nfrom pyarrow.parquet import ParquetDataset\n\nfrom feast import type_map\nfrom feast.data_format import FileFormat, ParquetFormat\nfrom... | diff --git a/sdk/python/feast/infra/offline_stores/file_source.py b/sdk/python/feast/infra/offline_stores/file_source.py
index 5c2a521ac0d..85baa647033 100644
--- a/sdk/python/feast/infra/offline_stores/file_source.py
+++ b/sdk/python/feast/infra/offline_stores/file_source.py
@@ -179,9 +179,15 @@ def get_table_column_n... |
urllib3__urllib3-1812 | WIP: Ensure PyOpenSSLContext.load_verify_locations raises ssl.SSLError
Without this patch, an `OpenSSL.SSL.Error` is raised when `PyOpenSSLContext.load_verify_locations` fails:
```
$ python -c "import os; import urllib3; import urllib3.contrib.pyopenssl; urllib3.contrib.pyopenssl.inject_into_urllib3(); urllib3.util.s... | [
{
"content": "\"\"\"\nSSL with SNI_-support for Python 2. Follow these instructions if you would\nlike to verify SSL certificates in Python 2. Note, the default libraries do\n*not* do certificate checking; you need to do additional work to validate\ncertificates yourself.\n\nThis needs the following packages in... | [
{
"content": "\"\"\"\nSSL with SNI_-support for Python 2. Follow these instructions if you would\nlike to verify SSL certificates in Python 2. Note, the default libraries do\n*not* do certificate checking; you need to do additional work to validate\ncertificates yourself.\n\nThis needs the following packages in... | diff --git a/src/urllib3/contrib/pyopenssl.py b/src/urllib3/contrib/pyopenssl.py
index 3051ef3af2..81a80651d4 100644
--- a/src/urllib3/contrib/pyopenssl.py
+++ b/src/urllib3/contrib/pyopenssl.py
@@ -450,9 +450,12 @@ def load_verify_locations(self, cafile=None, capath=None, cadata=None):
cafile = cafile.enc... |
pyinstaller__pyinstaller-5424 | Packaged binary doesn't support long filenames/paths under Windows
<!--
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 t... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2013-2020, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2013-2020, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens... | diff --git a/PyInstaller/utils/win32/winmanifest.py b/PyInstaller/utils/win32/winmanifest.py
index 9ce4b24967..5ad6f415a5 100644
--- a/PyInstaller/utils/win32/winmanifest.py
+++ b/PyInstaller/utils/win32/winmanifest.py
@@ -896,6 +896,23 @@ def todom(self):
cE.aChild(caE)
docE.aChild(cE)
+ # A... |
scikit-image__scikit-image-1658 | `denoise_bilateral` has undocumented default for parameter `sigma_range`
`denoise_bilateral` has undocumented default for parameter `sigma_range`
| [
{
"content": "# coding: utf-8\nimport numpy as np\nfrom .. import img_as_float\nfrom ..restoration._denoise_cy import _denoise_bilateral, _denoise_tv_bregman\nfrom .._shared.utils import _mode_deprecations\n\n\ndef denoise_bilateral(image, win_size=5, sigma_range=None, sigma_spatial=1,\n bi... | [
{
"content": "# coding: utf-8\nimport numpy as np\nfrom .. import img_as_float\nfrom ..restoration._denoise_cy import _denoise_bilateral, _denoise_tv_bregman\nfrom .._shared.utils import _mode_deprecations\n\n\ndef denoise_bilateral(image, win_size=5, sigma_range=None, sigma_spatial=1,\n bi... | diff --git a/skimage/restoration/_denoise.py b/skimage/restoration/_denoise.py
index c44ab1f1fed..66cd854b042 100644
--- a/skimage/restoration/_denoise.py
+++ b/skimage/restoration/_denoise.py
@@ -31,7 +31,8 @@ def denoise_bilateral(image, win_size=5, sigma_range=None, sigma_spatial=1,
similarity). A larger va... |
pymedusa__Medusa-2666 | [APP SUBMITTED]: AttributeError: 'exceptions.TypeError' object has no attribute 'errno'
### INFO
**Python Version**: `2.7.9 (default, Sep 17 2016, 20:26:04) [GCC 4.9.2]`
**Operating System**: `Linux-4.4.38-v7+-armv7l-with-debian-8.0`
**Locale**: `UTF-8`
**Branch**: [binsearch_search](../tree/binsearch_search)
**Databas... | [
{
"content": "# coding=utf-8\n# Author: Nic Wolfe <nic@wolfeden.ca>\n#\n#\n# This file is part of Medusa.\n#\n# Medusa is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License,... | [
{
"content": "# coding=utf-8\n# Author: Nic Wolfe <nic@wolfeden.ca>\n#\n#\n# This file is part of Medusa.\n#\n# Medusa is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License,... | diff --git a/medusa/search/proper.py b/medusa/search/proper.py
index f6859e4b89..224427401b 100644
--- a/medusa/search/proper.py
+++ b/medusa/search/proper.py
@@ -162,7 +162,7 @@ def _get_proper_results(self): # pylint: disable=too-many-locals, too-many-bran
(provider=cur_provider.name, err... |
pyinstaller__pyinstaller-6774 | XDG_DATA_DIRS environment variable being overriden when running packaged app
I have a simple app that runs a local Flask web server and opens a web browser to show it on start up using the following command:
webbrowser.open('http://localhost:%d' % port, new=2, autoraise=True)
When I run it in development mod... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2015-2022, PyInstaller Development 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#\n# The full licens... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2015-2022, PyInstaller Development 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#\n# The full licens... | diff --git a/PyInstaller/hooks/rthooks/pyi_rth_glib.py b/PyInstaller/hooks/rthooks/pyi_rth_glib.py
index 39814e9288..e0304d5a81 100644
--- a/PyInstaller/hooks/rthooks/pyi_rth_glib.py
+++ b/PyInstaller/hooks/rthooks/pyi_rth_glib.py
@@ -12,4 +12,20 @@
import os
import sys
-os.environ['XDG_DATA_DIRS'] = os.path.join(s... |
kserve__kserve-2418 | Azure Blob Storage to support shared access signatures(SAS)
/kind feature
**Describe the solution you'd like**
[A clear and concise description of what you want to happen.]
1. Able to access Azure Storage resources using shared access signatures([SAS](https://docs.microsoft.com/en-us/azure/storage/common/storage... | [
{
"content": "# Copyright 2021 The KServe Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | [
{
"content": "# Copyright 2021 The KServe Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | diff --git a/python/kserve/kserve/storage.py b/python/kserve/kserve/storage.py
index b01b1574c13..95d0363e5ee 100644
--- a/python/kserve/kserve/storage.py
+++ b/python/kserve/kserve/storage.py
@@ -345,9 +345,9 @@ def _download_azure_blob(uri, out_dir: str): # pylint: disable=too-many-locals
accou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.