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 ⌀ |
|---|---|---|---|---|
borgbackup__borg-1199 | Power-loss during backup corrupts repository index
Apparently my backup host lost power in the middle of backup today,.
Aside from understandably stuck lock the repo itself is corrupted, all operations are failing with:
```
hashindex: /backup1/mordor/index.146096: fread header failed (expected 18, got 0)
```
File in... | [
{
"content": "from configparser import ConfigParser\nfrom binascii import hexlify, unhexlify\nfrom datetime import datetime\nfrom itertools import islice\nimport errno\nimport logging\nlogger = logging.getLogger(__name__)\n\nimport os\nimport shutil\nimport struct\nfrom zlib import crc32\n\nimport msgpack\nfrom... | [
{
"content": "from configparser import ConfigParser\nfrom binascii import hexlify, unhexlify\nfrom datetime import datetime\nfrom itertools import islice\nimport errno\nimport logging\nlogger = logging.getLogger(__name__)\n\nimport os\nimport shutil\nimport struct\nfrom zlib import crc32\n\nimport msgpack\nfrom... | diff --git a/borg/repository.py b/borg/repository.py
index 8c645eaac3..25f9ccc194 100644
--- a/borg/repository.py
+++ b/borg/repository.py
@@ -129,7 +129,9 @@ def destroy(self):
shutil.rmtree(self.path)
def get_index_transaction_id(self):
- indices = sorted((int(name[6:]) for name in os.listdir(s... |
matrix-org__synapse-10927 | synapse checks signature on `join_authorised_via_users_server` in `m.room.membership` events for room versions which do not specify it
As of room v8 and later, an extra auth rule is added which says that the event must be signed by the server given in `join_authorised_via_users_server`. However, synapse also applies t... | [
{
"content": "# Copyright 2014 - 2016 OpenMarket Ltd\n# Copyright 2020 The Matrix.org Foundation C.I.C.\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.apac... | [
{
"content": "# Copyright 2014 - 2016 OpenMarket Ltd\n# Copyright 2020 The Matrix.org Foundation C.I.C.\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.apac... | diff --git a/changelog.d/10927.bugfix b/changelog.d/10927.bugfix
new file mode 100644
index 000000000000..fd24288c5499
--- /dev/null
+++ b/changelog.d/10927.bugfix
@@ -0,0 +1 @@
+Fix a bug introduced in Synapse v1.40.0 where the signature checks for room version 8/9 could be applied to earlier room versions in some sit... |
Lightning-AI__pytorch-lightning-832 | global_step advanced between accumulations if gradient_accumulation > 1
## 🐛 Bug
If gradient_accumulation is > 1 and a custom scheduler is used that updated the LR based on steps (instead of default epochs) than global step is incorrect since it is advancing at every batch part (depending on gradient_accumulation ... | [
{
"content": "\"\"\"\nThe lightning training loop handles everything except the actual computations of your model.\n To decide what will happen in your training loop, define the `training_step` function.\n\nBelow are all the things lightning automates for you in the training loop.\n\nAccumulated gradients\n----... | [
{
"content": "\"\"\"\nThe lightning training loop handles everything except the actual computations of your model.\n To decide what will happen in your training loop, define the `training_step` function.\n\nBelow are all the things lightning automates for you in the training loop.\n\nAccumulated gradients\n----... | diff --git a/pytorch_lightning/trainer/training_loop.py b/pytorch_lightning/trainer/training_loop.py
index 3e9a906016b39..69436500941b5 100644
--- a/pytorch_lightning/trainer/training_loop.py
+++ b/pytorch_lightning/trainer/training_loop.py
@@ -426,7 +426,9 @@ def run_training_epoch(self):
# logs user ... |
django-cms__django-cms-3051 | if page types is used on more than one site it breaks
if page types is used on more than one site it breaks
| [
{
"content": "# -*- coding: utf-8 -*-\nfrom cms.apphook_pool import apphook_pool\nfrom cms.compat import get_user_model\nfrom cms.compat_forms import UserCreationForm\nfrom cms.constants import PAGE_TYPES_ID\nfrom cms.forms.widgets import UserSelectAdminWidget, AppHookSelect\nfrom cms.models import Page, PagePe... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom cms.apphook_pool import apphook_pool\nfrom cms.compat import get_user_model\nfrom cms.compat_forms import UserCreationForm\nfrom cms.constants import PAGE_TYPES_ID\nfrom cms.forms.widgets import UserSelectAdminWidget, AppHookSelect\nfrom cms.models import Page, PagePe... | diff --git a/.coverage.rc b/.coverage.rc
index c9ced7d25eb..4304e37a444 100644
--- a/.coverage.rc
+++ b/.coverage.rc
@@ -2,7 +2,7 @@
source =
cms
menus
-branch = True
+branch = False
omit =
cms/migrations/*
cms/plugins/*/migrations/*
@@ -10,7 +10,9 @@ omit =
cms/tests/*
cms/test_utils/*
... |
iterative__dvc-5753 | exp show: failing with rich==10.0.0
```console
$ dvc exp show
dvc exp show -v
2021-03-29 11:30:45,071 DEBUG: Check for update is disabled.
2021-03-29 11:30:46,006 ERROR: unexpected error - 'int' object has no attribute 'max_width'
------------------------------------------------------------
Traceback (most recen... | [
{
"content": "from dataclasses import dataclass\nfrom typing import TYPE_CHECKING, List, cast\n\nfrom rich.style import StyleType\nfrom rich.table import Column as RichColumn\nfrom rich.table import Table as RichTable\n\nif TYPE_CHECKING:\n from rich.console import (\n Console,\n ConsoleOptions... | [
{
"content": "from dataclasses import dataclass\nfrom typing import TYPE_CHECKING, List, cast\n\nfrom rich.style import StyleType\nfrom rich.table import Column as RichColumn\nfrom rich.table import Table as RichTable\n\nif TYPE_CHECKING:\n from rich.console import (\n Console,\n ConsoleOptions... | diff --git a/dvc/utils/table.py b/dvc/utils/table.py
index f6f15570c8..1387d55033 100644
--- a/dvc/utils/table.py
+++ b/dvc/utils/table.py
@@ -69,7 +69,7 @@ def _calculate_column_widths(
last_collapsed = -1
columns = cast(List[Column], self.columns)
for i in range(len(columns) - 1, -1, -1):
-... |
GeotrekCE__Geotrek-admin-2564 | Erreur API V2
En 2.50, nouvelle erreur de l'API lors de la consultation via https://randoadmin.parc-haut-jura.fr/api/v2/trek/, j'ai un server error 500 et je reçois l'erreur suivante par mail :
[Geotrek] ERROR (EXTERNAL IP): Internal Server Error: /api/v2/trek/
Internal Server Error: /api/v2/trek/
TypeError a... | [
{
"content": "import json\n\nfrom easy_thumbnails.alias import aliases\nfrom easy_thumbnails.exceptions import InvalidImageFormatError\nfrom easy_thumbnails.files import get_thumbnailer\nfrom django.conf import settings\nfrom django.contrib.gis.geos import MultiLineString\nfrom django.db.models import F\nfrom d... | [
{
"content": "import json\n\nfrom easy_thumbnails.alias import aliases\nfrom easy_thumbnails.exceptions import InvalidImageFormatError\nfrom easy_thumbnails.files import get_thumbnailer\nfrom django.conf import settings\nfrom django.contrib.gis.geos import MultiLineString\nfrom django.db.models import F\nfrom d... | diff --git a/geotrek/api/tests/test_v2.py b/geotrek/api/tests/test_v2.py
index 8544598d5b..f5e148a402 100644
--- a/geotrek/api/tests/test_v2.py
+++ b/geotrek/api/tests/test_v2.py
@@ -1,4 +1,5 @@
from django.contrib.auth.models import User
+from django.contrib.gis.geos import MultiLineString
from django.urls import re... |
wenet-e2e__wenet-1594 | tarfile.ReadError: unexpected end of data on uio
Hi, I use the uio scheme, and the data is published with nginx. Whenever I finish training the first Epoch, the following error occurs, and the running k8s multi-machine environment.
---
2022/03/21 15:13:18 2022-03-21 15:13:18,614 DEBUG CV Batch 0/3900 loss 86.5128... | [
{
"content": "# Copyright (c) 2021 Mobvoi Inc. (authors: Binbin Zhang)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n#... | [
{
"content": "# Copyright (c) 2021 Mobvoi Inc. (authors: Binbin Zhang)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n#... | diff --git a/wenet/dataset/processor.py b/wenet/dataset/processor.py
index cef2d2aac..701c2fabe 100644
--- a/wenet/dataset/processor.py
+++ b/wenet/dataset/processor.py
@@ -49,7 +49,7 @@ def url_opener(data):
stream = open(url, 'rb')
# network file, such as HTTP(HDFS/OSS/S3)/HTTPS/SCP
... |
geopandas__geopandas-1976 | BUG: iloc indexing Dataframe with only one column (`geometry`) raises TypeError
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of geopandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of geopandas.
---... | [
{
"content": "from collections.abc import Iterable\nimport numbers\nimport operator\nimport warnings\nimport inspect\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.api.extensions import (\n ExtensionArray,\n ExtensionDtype,\n register_extension_dtype,\n)\n\nimport shapely\nimport shapely.affin... | [
{
"content": "from collections.abc import Iterable\nimport numbers\nimport operator\nimport warnings\nimport inspect\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.api.extensions import (\n ExtensionArray,\n ExtensionDtype,\n register_extension_dtype,\n)\n\nimport shapely\nimport shapely.affin... | diff --git a/geopandas/array.py b/geopandas/array.py
index 8686879d0f..112c272d38 100644
--- a/geopandas/array.py
+++ b/geopandas/array.py
@@ -375,6 +375,8 @@ def __setitem__(self, key, value):
key = pd.api.indexers.check_array_indexer(self, key)
if isinstance(value, pd.Series):
value... |
gratipay__gratipay.com-2377 | session_expires is never checked
Reticked from https://github.com/gittip/www.gittip.com/pull/2041#discussion_r10321176.
| [
{
"content": "\"\"\"*Participant* is the name Gittip gives to people and groups that are known\nto Gittip. We've got a ``participants`` table in the database, and a\n:py:class:`Participant` class that we define here. We distinguish several kinds\nof participant, based on certain properties.\n\n - *Stub* partici... | [
{
"content": "\"\"\"*Participant* is the name Gittip gives to people and groups that are known\nto Gittip. We've got a ``participants`` table in the database, and a\n:py:class:`Participant` class that we define here. We distinguish several kinds\nof participant, based on certain properties.\n\n - *Stub* partici... | diff --git a/branch.sql b/branch.sql
new file mode 100644
index 0000000000..f106df8482
--- /dev/null
+++ b/branch.sql
@@ -0,0 +1,5 @@
+BEGIN;
+
+ALTER TABLE participants ALTER COLUMN session_expires SET DEFAULT CURRENT_TIMESTAMP + INTERVAL '6 hours';
+
+END;
diff --git a/gittip/models/participant.py b/gittip/models/par... |
facebookresearch__hydra-165 | output/hydra.yaml is wrong
hydra.yaml in output directory is malformed (not rooted at hydra.)
| [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n\nimport copy\nimport logging\nimport os\nimport re\nimport sys\nfrom time import strftime, localtime\n\nimport six\nfrom omegaconf import OmegaConf, DictConfig\n\n# pylint: disable=C0103\nlog = logging.getLogger(__name__)\n\n... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n\nimport copy\nimport logging\nimport os\nimport re\nimport sys\nfrom time import strftime, localtime\n\nimport six\nfrom omegaconf import OmegaConf, DictConfig\n\n# pylint: disable=C0103\nlog = logging.getLogger(__name__)\n\n... | diff --git a/hydra/plugins/common/utils.py b/hydra/plugins/common/utils.py
index fe602f15f95..64164ae436d 100644
--- a/hydra/plugins/common/utils.py
+++ b/hydra/plugins/common/utils.py
@@ -68,7 +68,8 @@ def run_job(config, task_function, verbose, job_dir_key, job_subdir_key):
ret = JobReturn()
ret.wor... |
urllib3__urllib3-2711 | `format` session fail to run locally on Window platform
### Subject
When I ran `nox -rs format` to format the files, the format process terminates due to `FileNotFoundError` reported at line 139 at file `noxfile.py`:
 -> None:
@nox.session()
def format(session: nox.Session) -> None:
"""Run code formatters."""
- session.install("pre-commit")
- sessio... |
pantsbuild__pants-18551 | `Failed to write to remote cache` when running `ruff`
**Describe the bug**
When running `pants lint --only=ruff ::` I see many `WARN` logs like:
```
14:18:48.60 [WARN] Failed to write to remote cache (1 occurrences so far): Declared output directory path RelativePath("src/django_apps/preventive_care/consults/autom... | [
{
"content": "# Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import annotations\n\nfrom pants.backend.python.lint.ruff.subsystem import Ruff, RuffFieldSet\nfrom pants.backend.python.util_rules import pex\nfro... | [
{
"content": "# Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import annotations\n\nfrom pants.backend.python.lint.ruff.subsystem import Ruff, RuffFieldSet\nfrom pants.backend.python.util_rules import pex\nfro... | diff --git a/src/python/pants/backend/python/lint/ruff/rules.py b/src/python/pants/backend/python/lint/ruff/rules.py
index 1ee3ac5fa61..8520db80b7f 100644
--- a/src/python/pants/backend/python/lint/ruff/rules.py
+++ b/src/python/pants/backend/python/lint/ruff/rules.py
@@ -45,7 +45,7 @@ async def ruff_fix(request: RuffR... |
ultralytics__yolov5-143 | Distributed training in cluster not correct.
The model can be trained correctly on single machine multi gpus.
However, It can't be trained on multi machines multi gpus.
| [
{
"content": "import argparse\n\nimport torch.distributed as dist\nimport torch.nn.functional as F\nimport torch.optim as optim\nimport torch.optim.lr_scheduler as lr_scheduler\nimport torch.utils.data\nfrom torch.utils.tensorboard import SummaryWriter\n\nimport test # import test.py to get mAP after each epoc... | [
{
"content": "import argparse\n\nimport torch.distributed as dist\nimport torch.nn.functional as F\nimport torch.optim as optim\nimport torch.optim.lr_scheduler as lr_scheduler\nimport torch.utils.data\nfrom torch.utils.tensorboard import SummaryWriter\n\nimport test # import test.py to get mAP after each epoc... | diff --git a/requirements.txt b/requirements.txt
index a0130d20027f..52846b811473 100755
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,7 +2,7 @@
Cython
numpy==1.17
opencv-python
-torch>=1.5
+torch==1.4
matplotlib
pillow
tensorboard
diff --git a/train.py b/train.py
index f545ae13fc3a..94ccf570fe40 100644
---... |
awslabs__gluonts-2141 | TypeError: PandasDataset() takes no arguments for PandasDataset.from_long_dataframe
Following as described in https://ts.gluon.ai/stable/tutorials/data_manipulation/pandasdataframes.html#Use-case-3---Loading-data-with-missing-values I could not get it to work with my own DF nor the example given:
```
ds = PandasDat... | [
{
"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/dataset/pandas.py b/src/gluonts/dataset/pandas.py
index f13049932b..72ecbefc65 100644
--- a/src/gluonts/dataset/pandas.py
+++ b/src/gluonts/dataset/pandas.py
@@ -19,12 +19,12 @@
from pandas.core.indexes.datetimelike import DatetimeIndexOpsMixin
from toolz import valmap
-from gluonts.dataset... |
django-oscar__django-oscar-3317 | Setting `required` on a ProductAttribute with type boolean is non-sensical
### Issue Summary
When a `ProductAttribute` with type `boolean` is set to `required=True`, it requires any underlying`ProductAttributeValue` to be set to `True`, otherwise the Product you're trying to create/change won't save in the dashboard. ... | [
{
"content": "import logging\nimport os\nfrom datetime import date, datetime\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.fields import GenericForeignKey\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.contrib.staticfiles.finders import find\nfrom django.core.ca... | [
{
"content": "import logging\nimport os\nfrom datetime import date, datetime\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.fields import GenericForeignKey\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.contrib.staticfiles.finders import find\nfrom django.core.ca... | diff --git a/src/oscar/apps/catalogue/abstract_models.py b/src/oscar/apps/catalogue/abstract_models.py
index ac56e8494c2..dcd36cb1b72 100644
--- a/src/oscar/apps/catalogue/abstract_models.py
+++ b/src/oscar/apps/catalogue/abstract_models.py
@@ -851,6 +851,10 @@ def is_file(self):
def __str__(self):
return... |
graphql-python__graphene-django-123 | Incorrect response format for batched queries
I've been working with `graphene-django` for the last 3 weeks, and have been implementing it with `apollo-client` on the frontend. I just switched on batched queries, and determined that `graphene-django` is trying to return a list of responses in the following format:
`... | [
{
"content": "import inspect\nimport json\nimport re\n\nimport six\nfrom django.http import HttpResponse, HttpResponseNotAllowed\nfrom django.http.response import HttpResponseBadRequest\nfrom django.shortcuts import render\nfrom django.utils.decorators import method_decorator\nfrom django.views.generic import V... | [
{
"content": "import inspect\nimport json\nimport re\n\nimport six\nfrom django.http import HttpResponse, HttpResponseNotAllowed\nfrom django.http.response import HttpResponseBadRequest\nfrom django.shortcuts import render\nfrom django.utils.decorators import method_decorator\nfrom django.views.generic import V... | diff --git a/graphene_django/tests/test_views.py b/graphene_django/tests/test_views.py
index da7ad04e8..729342344 100644
--- a/graphene_django/tests/test_views.py
+++ b/graphene_django/tests/test_views.py
@@ -178,7 +178,7 @@ def test_batch_allows_post_with_json_encoding(client):
assert response.status_code == 200
... |
aws-cloudformation__cfn-lint-1815 | False alarm - E8003 Every Fn::Equals object requires a list of 2 string parameters
*cfn-lint version: 0.42.0*
*Description of issue.*
Please provide as much information as possible:
cfn-lint is showing a false alarm for the check E8003 when you use conditional with Equals and Ref function and the **previous p... | [
{
"content": "\"\"\"\nHelpers for loading resources, managing specs, constants, etc.\n\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport sys\nimport fnmatch\nimport json\nimport hashlib\nimport os\nimport datetime\nimport logging\nimport re\nimpo... | [
{
"content": "\"\"\"\nHelpers for loading resources, managing specs, constants, etc.\n\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport sys\nimport fnmatch\nimport json\nimport hashlib\nimport os\nimport datetime\nimport logging\nimport re\nimpo... | diff --git a/src/cfnlint/helpers.py b/src/cfnlint/helpers.py
index e3482c1ed4..3c6bf086ff 100644
--- a/src/cfnlint/helpers.py
+++ b/src/cfnlint/helpers.py
@@ -204,10 +204,11 @@
class RegexDict(dict):
def __getitem__(self, item):
- for k, v in self.items():
- if re.match(k, item):
- ... |
cupy__cupy-186 | Make cupy.sort support arrays with rank two or more.
# Background
Arrays sorted with `cupy.sort` operation have some properties such as dtype, rank, sorting axis and C/F-contiguousness. Currently, `cupy.sort` supports sorting arrays only with the rank of one because of its implementation reason, see #55.
# Problem
... | [
{
"content": "import cupy\nimport numpy\n\nif cupy.cuda.thrust_enabled:\n from cupy.cuda import thrust\n\n\ndef sort(a):\n \"\"\"Returns a sorted copy of an array with a stable sorting algorithm.\n\n Args:\n a (cupy.ndarray): Array to be sorted.\n\n Returns:\n cupy.ndarray: Array of th... | [
{
"content": "import cupy\nimport numpy\n\nif cupy.cuda.thrust_enabled:\n from cupy.cuda import thrust\n\n\ndef sort(a):\n \"\"\"Returns a sorted copy of an array with a stable sorting algorithm.\n\n Args:\n a (cupy.ndarray): Array to be sorted.\n\n Returns:\n cupy.ndarray: Array of th... | diff --git a/cupy/core/core.pyx b/cupy/core/core.pyx
index a985be638c3..578de5db918 100644
--- a/cupy/core/core.pyx
+++ b/cupy/core/core.pyx
@@ -714,9 +714,9 @@ cdef class ndarray:
.. note::
For its implementation reason, ``ndarray.sort`` currently supports
- only arrays with their rank... |
facebookresearch__xformers-136 | [CI] InProj countainer not properly covered
# 🐛 Bug
Not a bug per say, but many inProjCountainer options are not covered, see https://app.codecov.io/gh/facebookresearch/xformers/blob/main/xformers/components/in_proj_container.py
| [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n\nfrom dataclasses import fields\nfrom pathlib import Path\nfrom typing import Any, Dict, Unio... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n\nfrom dataclasses import fields\nfrom pathlib import Path\nfrom typing import Any, Dict, Unio... | diff --git a/.isort.cfg b/.isort.cfg
index 7b8766e166..8ef97af107 100644
--- a/.isort.cfg
+++ b/.isort.cfg
@@ -1,2 +1,2 @@
[settings]
-known_third_party =fvcore,input_pipeline,matplotlib,numpy,pandas,pl_bolts,pyre_extensions,pytest,pytorch_lightning,recommonmark,seaborn,setuptools,sklearn,submitit,tensorflow,timm,torc... |
pyodide__pyodide-3013 | Relative URLs in pyodide.loadPackage
## 🐛 Bug
<!-- A clear and concise description of what the bug is. -->
The documentation states that [pyodide.loadPackage](https://pyodide.org/en/stable/usage/api/js-api.html#pyodide.loadPackage) supports relative URLs. I'm trying to load an out-of-tree wheel from my local webse... | [
{
"content": "from io import BytesIO\nfrom typing import IO\nfrom urllib.parse import urlparse\n\nfrom pyodide._core import IN_BROWSER\nfrom pyodide.http import pyfetch\n\ntry:\n import pyodide_js\n from pyodide_js import loadedPackages, loadPackage\n from pyodide_js._api import loadBinaryFile, loadDyn... | [
{
"content": "from io import BytesIO\nfrom typing import IO\nfrom urllib.parse import urlparse\n\nfrom pyodide._core import IN_BROWSER\nfrom pyodide.http import pyfetch\n\ntry:\n import pyodide_js\n from pyodide_js import loadedPackages, loadPackage\n from pyodide_js._api import loadBinaryFile, loadDyn... | diff --git a/docs/project/changelog.md b/docs/project/changelog.md
index 4a20955a4b0..b511bb77f1c 100644
--- a/docs/project/changelog.md
+++ b/docs/project/changelog.md
@@ -32,9 +32,19 @@ substitutions:
rather than `pyodide-build-{version}.tar.gz`
{pr}`2996`
+- {{ Fix }} If a wheel path is passed to {any}`pyodi... |
acl-org__acl-anthology-2364 | Missing EMNLP 2022 items
Open issues on missing items, awaiting delivery from EMNLP organizers.
- [x] ~Full-volume PDF for main~ (we're skipping this)
- [x] Frontmatter (missing for both findings and main): https://aclanthology.org/2022.emnlp-main.0
- [x] Full-volume PDF for Findings (currently corrupted): https:/... | [
{
"content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Copyright 2021, 2022 Xinru Yan <xinru1414@gmail.com>\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# ... | [
{
"content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Copyright 2021, 2022 Xinru Yan <xinru1414@gmail.com>\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# ... | diff --git a/bin/ingest_aclpub2.py b/bin/ingest_aclpub2.py
index 2c36d6cfcc..ee6323507a 100644
--- a/bin/ingest_aclpub2.py
+++ b/bin/ingest_aclpub2.py
@@ -186,8 +186,8 @@ def add_paper_nums_in_paper_yaml(
elif paper_id == '2051':
num_of_pages = 14
else:
- pdf_re... |
benoitc__gunicorn-1261 | Gunicorn --reload option reloads indefinitely
Running any application, such as the following application (from gunicorn.org) with the `--reload` option and then making a trivial change leads to a never-ending reload cycle on my system.
```
def app(environ, start_response):
data = "Hello, World!\n"
start_re... | [
{
"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\nfrom datetime import datetime\nimport os\nfrom random import randint\nimport signal\nfrom ssl import SSLError\nimport sys\nimport time\nimport traceback\n\nfrom guni... | [
{
"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\nfrom datetime import datetime\nimport os\nfrom random import randint\nimport signal\nfrom ssl import SSLError\nimport sys\nimport time\nimport traceback\n\nfrom guni... | diff --git a/gunicorn/workers/base.py b/gunicorn/workers/base.py
index d187a611a..3367521d3 100644
--- a/gunicorn/workers/base.py
+++ b/gunicorn/workers/base.py
@@ -89,7 +89,11 @@ def init_process(self):
if self.cfg.reload:
def changed(fname):
self.log.info("Worker reloading: %s m... |
vyperlang__vyper-1838 | Return tuple with fixed array fails to compile
### Version Information
* vyper Version (output of `vyper --version`): 0.1.0b9
* Python Version (output of `python --version`): 3.6.0
### What's your issue about?
Trying to return a fixed-size byte array and uint together in a tuple fails to compile.
```python... | [
{
"content": "from vyper.exceptions import (\n CompilerPanic,\n)\nfrom vyper.parser.lll_node import (\n LLLnode,\n)\nfrom vyper.parser.parser_utils import (\n add_variable_offset,\n make_setter,\n unwrap_location,\n zero_pad,\n)\nfrom vyper.types import (\n BaseType,\n ByteArrayLike,\n ... | [
{
"content": "from vyper.exceptions import (\n CompilerPanic,\n)\nfrom vyper.parser.lll_node import (\n LLLnode,\n)\nfrom vyper.parser.parser_utils import (\n add_variable_offset,\n make_setter,\n unwrap_location,\n zero_pad,\n)\nfrom vyper.types import (\n BaseType,\n ByteArrayLike,\n ... | diff --git a/vyper/codegen/abi.py b/vyper/codegen/abi.py
index 8df0ad6f2f..7ba032f8f6 100644
--- a/vyper/codegen/abi.py
+++ b/vyper/codegen/abi.py
@@ -301,7 +301,7 @@ def o_list(lll_node, pos=None):
ret = lll_node.args
else:
ks = lll_t.tuple_keys() if isinstance(lll_t, TupleLike) else... |
jupyterhub__jupyterhub-4428 | FAQ audience confusion
This FAQ item is unfortunately causing some local support problems for our institution:
https://github.com/jupyterhub/jupyterhub/blob/38ba275367936c9a5a081a7b5acf326134705a0a/docs/source/faq/faq.md?plain=1#L3
As I understand, this FAQ item is written for a sophisticated end-user who is sett... | [
{
"content": "# Configuration file for Sphinx to build our documentation to HTML.\n#\n# Configuration reference: https://www.sphinx-doc.org/en/master/usage/configuration.html\n#\nimport contextlib\nimport datetime\nimport io\nimport os\nimport subprocess\n\nfrom docutils import nodes\nfrom sphinx.directives.oth... | [
{
"content": "# Configuration file for Sphinx to build our documentation to HTML.\n#\n# Configuration reference: https://www.sphinx-doc.org/en/master/usage/configuration.html\n#\nimport contextlib\nimport datetime\nimport io\nimport os\nimport subprocess\n\nfrom docutils import nodes\nfrom sphinx.directives.oth... | diff --git a/docs/source/conf.py b/docs/source/conf.py
index c3c3958bd2..6982f40be0 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -201,6 +201,7 @@ def setup(app):
"python": ("https://docs.python.org/3/", None),
"tornado": ("https://www.tornadoweb.org/en/stable/", None),
"jupyter-server": ... |
piskvorky__gensim-1755 | `save/load_word2vec_format` fails for `FastText` models
#### Description
Saving and loading using `save_word2vec_format` and `load_word2vec_format` fails for both native FastText models and models loaded using the wrapper.
#### Steps/Code/Corpus to Reproduce
Example:
```python
from gensim.models import fasttext as... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Author: Jayant Jain <jayantjain1992@gmail.com>\n# Copyright (C) 2017 Radim Rehurek <me@radimrehurek.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\n\"\"\"\nPython wrapper around word representation learning ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Author: Jayant Jain <jayantjain1992@gmail.com>\n# Copyright (C) 2017 Radim Rehurek <me@radimrehurek.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\n\"\"\"\nPython wrapper around word representation learning ... | diff --git a/gensim/models/wrappers/fasttext.py b/gensim/models/wrappers/fasttext.py
index 29927b7051..f14d8e2260 100644
--- a/gensim/models/wrappers/fasttext.py
+++ b/gensim/models/wrappers/fasttext.py
@@ -137,6 +137,11 @@ def __contains__(self, word):
char_ngrams = compute_ngrams(word, self.min_n, self.m... |
frappe__frappe-21703 | Portal Sidebar not displaying in v14-beta.3
The portal sidebar does not display consistently on different kinds of routes. On some pages, the sidebar is not rendered, while on others it is. This has been tested on both existing sites and fresh installs.
/me (no sidebar)
:
super().po... |
dynaconf__dynaconf-985 | [bug] KeyError: '_bypass_evaluation' in Dynaconf 3.2.1
**Describe the bug**
The change introduced in PR #966 also introduced a KeyError in our tests.
**To Reproduce**
Steps to reproduce the behavior:
Not currently clear without digging further into the cause, but this was triggered in our tests using multi-thread... | [
{
"content": "from __future__ import annotations\n\nimport copy\nimport glob\nimport importlib\nimport inspect\nimport os\nimport warnings\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom contextlib import suppress\nfrom pathlib import Path\nfrom typing import Any\nfrom typing i... | [
{
"content": "from __future__ import annotations\n\nimport copy\nimport glob\nimport importlib\nimport inspect\nimport os\nimport warnings\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom contextlib import suppress\nfrom pathlib import Path\nfrom typing import Any\nfrom typing i... | diff --git a/dynaconf/base.py b/dynaconf/base.py
index 059c9de4f..268124dd5 100644
--- a/dynaconf/base.py
+++ b/dynaconf/base.py
@@ -1171,7 +1171,7 @@ def execute_loaders(
execute_module_hooks("post", self, env, silent=silent, key=key)
execute_instance_hooks(self, "post", self._post_hooks)
- ... |
scrapy__scrapy-3381 | scrapy check command ignores contracts with the same URL
### Description
When testing callbacks with the same URL, only one callback is tested.
### Reproduce
```python
class DemoSpider(Spider):
name = 'demo_spider'
def returns_item_with_url(self, response):
""" method which returns request
... | [
{
"content": "import sys\nimport re\nfrom functools import wraps\nfrom inspect import getmembers\nfrom unittest import TestCase\n\nfrom scrapy.http import Request\nfrom scrapy.utils.spider import iterate_spider_output\nfrom scrapy.utils.python import get_spec\n\n\nclass ContractsManager(object):\n contracts ... | [
{
"content": "import sys\nimport re\nfrom functools import wraps\nfrom inspect import getmembers\nfrom unittest import TestCase\n\nfrom scrapy.http import Request\nfrom scrapy.utils.spider import iterate_spider_output\nfrom scrapy.utils.python import get_spec\n\n\nclass ContractsManager(object):\n contracts ... | diff --git a/scrapy/contracts/__init__.py b/scrapy/contracts/__init__.py
index 851a26a8e2f..f605c9eb10a 100644
--- a/scrapy/contracts/__init__.py
+++ b/scrapy/contracts/__init__.py
@@ -56,7 +56,12 @@ def from_method(self, method, results):
# calculate request args
args, kwargs = get_spec(req... |
spotify__luigi-700 | bug on luigi.contrib.ftp.AtomicFtpfile
on luigi.contrib.ftp.AtomicFtpfile, self.path is accessed before being set.
```
luigi/contrib/ftp.py Line 170 Character 26
167: """
168:
169: def __init__(self, fs, path):
170: self.__tmp_path = self.path + '-luigi-tmp-%09d' % random.randrange(0, 1e10)
Access to ... | [
{
"content": "\"\"\"\nThis library is a wrapper of ftplib.\nIt is convenient to move data from/to FTP.\n\nThere is an example on how to use it (example/ftp_experiment_outputs.py)\n\nYou can also find unittest for each class.\n\nBe aware that normal ftp do not provide secure communication.\n\"\"\"\nimport dateti... | [
{
"content": "\"\"\"\nThis library is a wrapper of ftplib.\nIt is convenient to move data from/to FTP.\n\nThere is an example on how to use it (example/ftp_experiment_outputs.py)\n\nYou can also find unittest for each class.\n\nBe aware that normal ftp do not provide secure communication.\n\"\"\"\nimport dateti... | diff --git a/luigi/contrib/ftp.py b/luigi/contrib/ftp.py
index 784e9bfbae..25e2275f61 100644
--- a/luigi/contrib/ftp.py
+++ b/luigi/contrib/ftp.py
@@ -167,7 +167,14 @@ class AtomicFtpfile(file):
"""
def __init__(self, fs, path):
- self.__tmp_path = self.path + '-luigi-tmp-%09d' % random.randrange(0, ... |
streamlit__streamlit-7219 | Should st.experimental_user.email local value be test@example.com?
### Checklist
- [X] I have searched the [existing issues](https://github.com/streamlit/streamlit/issues) for similar issues.
- [X] I added a very descriptive title to this issue.
- [X] I have provided sufficient information below to help reproduce this... | [
{
"content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2... | [
{
"content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2... | diff --git a/lib/streamlit/web/server/browser_websocket_handler.py b/lib/streamlit/web/server/browser_websocket_handler.py
index b8c03948e273..7cbd3c48232e 100644
--- a/lib/streamlit/web/server/browser_websocket_handler.py
+++ b/lib/streamlit/web/server/browser_websocket_handler.py
@@ -96,7 +96,7 @@ def open(self, *arg... |
django-cms__django-cms-1327 | Document Moderation deprecation
| [
{
"content": "# -*- coding: utf-8 -*-\nfrom django.conf import settings\nfrom patch import pre_patch, post_patch, post_patch_check\nimport warnings\n\n\n\ndef patch_settings():\n \"\"\"Merge settings with global cms settings, so all required attributes\n will exist. Never override, just append non existin... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom django.conf import settings\nfrom patch import pre_patch, post_patch, post_patch_check\nimport warnings\n\n\n\ndef patch_settings():\n \"\"\"Merge settings with global cms settings, so all required attributes\n will exist. Never override, just append non existin... | diff --git a/cms/conf/__init__.py b/cms/conf/__init__.py
index 7b0cc16818d..1ed37bcd148 100644
--- a/cms/conf/__init__.py
+++ b/cms/conf/__init__.py
@@ -18,6 +18,9 @@ def patch_settings():
if getattr(settings, 'CMS_FLAT_URLS', False):
warnings.warn("CMS_FLAT_URLS are deprecated and will be removed in djan... |
rasterio__rasterio-1915 | BUG: features::bounds() does not support GeometryCollection
As implemented in `_features.pyx` we support `FeatureCollection` and individual geometries, but we don't support `GeometryCollection`.
Fix coming up...
BUG: features::bounds() does not support GeometryCollection
As implemented in `_features.pyx` we suppor... | [
{
"content": "\"\"\"Functions for working with features in a raster dataset.\"\"\"\n\n\nimport logging\nimport warnings\nimport math\nimport os\n\nimport numpy as np\n\nimport rasterio\nfrom rasterio._features import _shapes, _sieve, _rasterize, _bounds\nfrom rasterio.crs import CRS\nfrom rasterio.dtypes import... | [
{
"content": "\"\"\"Functions for working with features in a raster dataset.\"\"\"\n\n\nimport logging\nimport warnings\nimport math\nimport os\n\nimport numpy as np\n\nimport rasterio\nfrom rasterio._features import _shapes, _sieve, _rasterize, _bounds\nfrom rasterio.crs import CRS\nfrom rasterio.dtypes import... | diff --git a/rasterio/_features.pyx b/rasterio/_features.pyx
index 84b8648d2..ce5b8c86f 100644
--- a/rasterio/_features.pyx
+++ b/rasterio/_features.pyx
@@ -380,7 +380,7 @@ def _explode(coords):
def _bounds(geometry, north_up=True, transform=None):
- """Bounding box of a GeoJSON geometry.
+ """Bounding box o... |
django-cms__django-cms-2663 | consider removing » from breadcrumb.html template
Testing bootstrap 3.0 with django-cms 3.0 beta and noticed that there is a hard-coded » separator in the templates/menu/breadcrumb.html file. Wouldn't it be better if the default behavior left the separator style to css?
Thanks,
Brian
Previous fix for D... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom distutils.version import LooseVersion\n\nfrom classytags.arguments import Argument\nfrom classytags.core import Options, Tag\nfrom classytags.helpers import InclusionTag\nfrom cms.constants import PUBLISHER_STATE_PENDING\nfrom cms.utils import get_cms_setting\nfrom cm... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom distutils.version import LooseVersion\n\nfrom classytags.arguments import Argument\nfrom classytags.core import Options, Tag\nfrom classytags.helpers import InclusionTag\nfrom cms.constants import PUBLISHER_STATE_PENDING\nfrom cms.utils import get_cms_setting\nfrom cm... | diff --git a/cms/static/cms/css/cms.base.css b/cms/static/cms/css/cms.base.css
index 1869cc86a53..0175d2b9e44 100644
--- a/cms/static/cms/css/cms.base.css
+++ b/cms/static/cms/css/cms.base.css
@@ -1,19 +1,19 @@
-/*
+@charset "utf-8";/*!
* @copyright: https://github.com/divio/django-cms
- */.cms_reset div,.cms_reset p... |
freedomofpress__securedrop-1378 | Merge changes from 0.3.8 into develop
This is blocking on #1313 and #1345.
| [
{
"content": "__version__ = '0.3.7'\n",
"path": "securedrop/version.py"
},
{
"content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to its\... | [
{
"content": "__version__ = '0.3.8'\n",
"path": "securedrop/version.py"
},
{
"content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to its\... | diff --git a/Vagrantfile b/Vagrantfile
index b0c821aba6..edbbd369a6 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -11,10 +11,9 @@ Vagrant.configure("2") do |config|
config.vm.define 'development', primary: true do |development|
development.vm.hostname = "development"
- development.vm.box = "trusty64"
+ ... |
beetbox__beets-1492 | importfeeds: name of m3u_multi playlist get messed up when both m3u* options are on
activate both m3u output formats
```
importfeeds:
formats: m3u m3u_multi
```
Result : m3u_multi filename is not `<date> <track/album name>` as expected
| [
{
"content": "# This file is part of beets.\n# Copyright 2015, Fabrice Laporte.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limit... | [
{
"content": "# This file is part of beets.\n# Copyright 2015, Fabrice Laporte.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limit... | diff --git a/beetsplug/importfeeds.py b/beetsplug/importfeeds.py
index b1e76d9a81..6b0a467782 100644
--- a/beetsplug/importfeeds.py
+++ b/beetsplug/importfeeds.py
@@ -118,10 +118,9 @@ def _record_items(self, lib, basename, items):
paths.append(relpath)
if 'm3u' in formats:
- basen... |
liqd__a4-meinberlin-4091 | dashboard: cannot enter livestream
**URL:** https://meinberlin-dev.liqd.net/dashboard/modules/interactive-event/livestream/
**user:** initiator
**expected behaviour:** I can enter a livestream in information or result tab or in an event or in interactive event module
**behaviour:** get an error (see screenshot)
**... | [
{
"content": "\"\"\"\nDjango settings for meinberlin project.\n\nGenerated by 'django-admin startproject' using Django 1.8.17.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/... | [
{
"content": "\"\"\"\nDjango settings for meinberlin project.\n\nGenerated by 'django-admin startproject' using Django 1.8.17.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/... | diff --git a/meinberlin/config/settings/base.py b/meinberlin/config/settings/base.py
index 0b3bbd5d66..410bd25d97 100644
--- a/meinberlin/config/settings/base.py
+++ b/meinberlin/config/settings/base.py
@@ -323,8 +323,8 @@
'removePlugins': 'stylesheetparser',
'extraAllowedContent': 'iframe[*]',
... |
oppia__oppia-8538 | Add modal to allow user to add commit message when saving an edit to a question
When editing a question, the user should be allowed to specify a commit message.
| [
{
"content": "# Copyright 2018 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n... | [
{
"content": "# Copyright 2018 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n... | diff --git a/core/domain/question_services.py b/core/domain/question_services.py
index 9f18cf9c27d88..e70d15c250f55 100644
--- a/core/domain/question_services.py
+++ b/core/domain/question_services.py
@@ -165,7 +165,7 @@ def _update_linked_skill_ids_of_question(
}
change_list = [question_domain.QuestionChange... |
huggingface__diffusers-721 | Example unconditional training script does not work
### Describe the bug
When running the [example unconditional training script](https://github.com/huggingface/diffusers/blob/main/examples/unconditional_image_generation/train_unconditional.py)
on GPU using `--mixed_precision=fp16`, the autocasting of accelerate will... | [
{
"content": "import argparse\nimport math\nimport os\n\nimport torch\nimport torch.nn.functional as F\n\nfrom accelerate import Accelerator\nfrom accelerate.logging import get_logger\nfrom datasets import load_dataset\nfrom diffusers import DDPMPipeline, DDPMScheduler, UNet2DModel\nfrom diffusers.hub_utils imp... | [
{
"content": "import argparse\nimport math\nimport os\n\nimport torch\nimport torch.nn.functional as F\n\nfrom accelerate import Accelerator\nfrom accelerate.logging import get_logger\nfrom datasets import load_dataset\nfrom diffusers import DDPMPipeline, DDPMScheduler, UNet2DModel\nfrom diffusers.hub_utils imp... | diff --git a/examples/unconditional_image_generation/train_unconditional.py b/examples/unconditional_image_generation/train_unconditional.py
index 243e433a5b83..6955c9f60a2b 100644
--- a/examples/unconditional_image_generation/train_unconditional.py
+++ b/examples/unconditional_image_generation/train_unconditional.py
@... |
django-crispy-forms__django-crispy-forms-1363 | Allow Fieldset to accept Fields
* Package version: 2.0
* Django version: 3.2.18
* Python version: 3.8.17
* Template pack: crispy-bootstrap5 0.7
### Description:
The `Fieldset` class accepts a number of fields to render in a `<fieldset>`. Apparently, the value of this field can only be `str`:
https://github.... | [
{
"content": "from dataclasses import dataclass\nfrom typing import List\n\nfrom django.template import Template\nfrom django.template.loader import render_to_string\nfrom django.utils.html import conditional_escape\nfrom django.utils.safestring import SafeString\nfrom django.utils.text import slugify\n\nfrom c... | [
{
"content": "from dataclasses import dataclass\nfrom typing import List\n\nfrom django.template import Template\nfrom django.template.loader import render_to_string\nfrom django.utils.html import conditional_escape\nfrom django.utils.safestring import SafeString\nfrom django.utils.text import slugify\n\nfrom c... | diff --git a/crispy_forms/layout.py b/crispy_forms/layout.py
index 6338b011..4b9ffea3 100644
--- a/crispy_forms/layout.py
+++ b/crispy_forms/layout.py
@@ -518,7 +518,7 @@ class Fieldset(LayoutObject):
legend : str
The content of the fieldset's ``<legend>``. This text is context
aware, to bring th... |
ytdl-org__youtube-dl-18217 | Unable to download login form for Lynda.com using 2018.11.07 version
## 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 this: `[x]`)
- Us... | [
{
"content": "from __future__ import unicode_literals\n\nimport re\n\nfrom .common import InfoExtractor\nfrom ..compat import (\n compat_str,\n compat_urlparse,\n)\nfrom ..utils import (\n ExtractorError,\n int_or_none,\n urlencode_postdata,\n)\n\n\nclass LyndaBaseIE(InfoExtractor):\n _SIGNIN_... | [
{
"content": "from __future__ import unicode_literals\n\nimport re\n\nfrom .common import InfoExtractor\nfrom ..compat import (\n compat_str,\n compat_urlparse,\n)\nfrom ..utils import (\n ExtractorError,\n int_or_none,\n urlencode_postdata,\n)\n\n\nclass LyndaBaseIE(InfoExtractor):\n _SIGNIN_... | diff --git a/youtube_dl/extractor/lynda.py b/youtube_dl/extractor/lynda.py
index 4ba61cd8a1c..3084c6dffc9 100644
--- a/youtube_dl/extractor/lynda.py
+++ b/youtube_dl/extractor/lynda.py
@@ -15,7 +15,7 @@
class LyndaBaseIE(InfoExtractor):
- _SIGNIN_URL = 'https://www.lynda.com/signin'
+ _SIGNIN_URL = 'https://... |
freedomofpress__securedrop-3000 | Release SecureDrop 0.5.2
This is a tracking issue for the upcoming release of SecureDrop 0.5.2 - tasks may get added or modified. Note that this is a hotfix release and translation updates will not be required.
_SecureDrop maintainers and testers:_ As you QA 0.5.2, please report back your testing results as comment... | [
{
"content": "__version__ = '0.5.1'\n",
"path": "securedrop/version.py"
},
{
"content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to its\... | [
{
"content": "__version__ = '0.5.2'\n",
"path": "securedrop/version.py"
},
{
"content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to its\... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 52fc6f145e..e515867bf6 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -147,6 +147,9 @@ jobs:
- store_artifacts:
path: /root/sd/raw-test-output
+ - store_artifacts:
+ path: /root/sd/.tor_version
+
workflows... |
avocado-framework__avocado-4267 | [Software-Manager] Cannot find `sudo` in PATH but it is available.
While running `avocado-software-manager`, it complains about not finding the `sudo` command in any of the `PATH` dirs, but it is available in one of them.
```
[wrampazz@wrampazz avocado.dev]$ avocado-software-manager install vim-common
dnf module f... | [
{
"content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope t... | [
{
"content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope t... | diff --git a/avocado/utils/process.py b/avocado/utils/process.py
index d0ec6d62bf..8818e1c6a4 100644
--- a/avocado/utils/process.py
+++ b/avocado/utils/process.py
@@ -585,7 +585,7 @@ def __str__(self):
def _prepend_sudo(cmd, shell):
if os.getuid() != 0:
try:
- sudo_cmd = '%s -n... |
LMFDB__lmfdb-5669 | L-function of Dirichlet character does not link to Dirichlet character page
| [
{
"content": "# -*- coding: utf-8 -*-\nfrom lmfdb.utils.utilities import key_for_numerically_sort\nfrom flask import url_for\n#######################################################################\n# Functions for interacting with web structure\n#################################################################... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom lmfdb.utils.utilities import key_for_numerically_sort\nfrom flask import url_for\n#######################################################################\n# Functions for interacting with web structure\n#################################################################... | diff --git a/lmfdb/utils/names_and_urls.py b/lmfdb/utils/names_and_urls.py
index b8ad0ec834..e8d5d0340c 100644
--- a/lmfdb/utils/names_and_urls.py
+++ b/lmfdb/utils/names_and_urls.py
@@ -125,10 +125,14 @@ def name_and_object_from_url(url, check_existence=False):
else:
name = 'Sato Tate group $%s$'... |
django-import-export__django-import-export-1739 | Resource is not being created with resource kwargs when showing export fields on admin UI
**Describe the bug**
I have a `UserAdmin` class that extends `ExportMixin` and declares the method `get_list_display` to change displayed fields according to the user on request. I want to reflect this on exported data, so the us... | [
{
"content": "import logging\nimport warnings\n\nimport django\nfrom django import forms\nfrom django.conf import settings\nfrom django.contrib import admin, messages\nfrom django.contrib.admin.models import ADDITION, CHANGE, DELETION, LogEntry\nfrom django.contrib.auth import get_permission_codename\nfrom djan... | [
{
"content": "import logging\nimport warnings\n\nimport django\nfrom django import forms\nfrom django.conf import settings\nfrom django.contrib import admin, messages\nfrom django.contrib.admin.models import ADDITION, CHANGE, DELETION, LogEntry\nfrom django.contrib.auth import get_permission_codename\nfrom djan... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 40813c1a7..be873ccb5 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -4,7 +4,8 @@ Changelog
3.3.7 (unreleased)
------------------
-- Nothing changed yet.
+- Pass :meth:`~import_export.mixins.BaseExportMixin.get_export_resource_kwargs` to Resourc... |
liqd__a4-meinberlin-4104 | dashboard: cannot enter livestream
**URL:** https://meinberlin-dev.liqd.net/dashboard/modules/interactive-event/livestream/
**user:** initiator
**expected behaviour:** I can enter a livestream in information or result tab or in an event or in interactive event module
**behaviour:** get an error (see screenshot)
**... | [
{
"content": "\"\"\"\nDjango settings for meinberlin project.\n\nGenerated by 'django-admin startproject' using Django 1.8.17.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/... | [
{
"content": "\"\"\"\nDjango settings for meinberlin project.\n\nGenerated by 'django-admin startproject' using Django 1.8.17.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/... | diff --git a/meinberlin/config/settings/base.py b/meinberlin/config/settings/base.py
index 410bd25d97..0b3bbd5d66 100644
--- a/meinberlin/config/settings/base.py
+++ b/meinberlin/config/settings/base.py
@@ -323,8 +323,8 @@
'removePlugins': 'stylesheetparser',
'extraAllowedContent': 'iframe[*]',
... |
Gallopsled__pwntools-402 | Running shellcraft creates an `a.out` in $PWD
```
~> shellcraft i386.nop
90
~> ls -la a.out
-rw-r--r-- 1 br0ns br0ns 664 Jan 10 16:28 a.out
```
| [
{
"content": "# -*- coding: utf-8 -*-\nr\"\"\"\nUtilities for assembling and disassembling code.\n\nArchitecture Selection\n------------------------\n\n Architecture, endianness, and word size are selected by using :mod:`pwnlib.context`.\n\n Any parameters which can be specified to ``context`` can also be... | [
{
"content": "# -*- coding: utf-8 -*-\nr\"\"\"\nUtilities for assembling and disassembling code.\n\nArchitecture Selection\n------------------------\n\n Architecture, endianness, and word size are selected by using :mod:`pwnlib.context`.\n\n Any parameters which can be specified to ``context`` can also be... | diff --git a/pwnlib/asm.py b/pwnlib/asm.py
index a4131aa97..d1bb54b88 100644
--- a/pwnlib/asm.py
+++ b/pwnlib/asm.py
@@ -152,7 +152,7 @@ def _assembler():
if not checked_assembler_version[gas]:
checked_assembler_version[gas] = True
- result = subprocess.check_output([gas, '-v','/dev/null'],
+ ... |
litestar-org__litestar-1488 | StaticFilesConfig and virtual directories
I'm trying to write a ``FileSystemProtocol`` to load files from the package data using [importlib_resources](https://importlib-resources.readthedocs.io/en/latest/using.html#). But because ``directories`` is defined as ``DirectoryPath``, pydantic checks if the given directories ... | [
{
"content": "from __future__ import annotations\n\nfrom dataclasses import dataclass, field\nfrom typing import TYPE_CHECKING, Any, Generic, TypeVar\nfrom urllib.parse import quote\n\nfrom litestar import Litestar, MediaType, Request, Response\nfrom litestar.contrib.htmx._utils import HTMX_STOP_POLLING, get_he... | [
{
"content": "from __future__ import annotations\n\nfrom dataclasses import dataclass, field\nfrom typing import TYPE_CHECKING, Any, Generic, TypeVar\nfrom urllib.parse import quote\n\nfrom litestar import Litestar, MediaType, Request, Response\nfrom litestar.contrib.htmx._utils import HTMX_STOP_POLLING, get_he... | diff --git a/litestar/contrib/htmx/response.py b/litestar/contrib/htmx/response.py
index 93d58fedf5..390ec73830 100644
--- a/litestar/contrib/htmx/response.py
+++ b/litestar/contrib/htmx/response.py
@@ -230,11 +230,7 @@ def to_response(
)
)
- template = Template(
- name=self.na... |
encode__starlette-2376 | TestClient doesn't merge urls in the same way as the httpx client, and I think it should.
### Discussed in https://github.com/encode/starlette/discussions/2300
<div type='discussions-op-text'>
<sup>Originally posted by **Waghabond** October 12, 2023</sup>
The TestClient just delegates the url merging to the join... | [
{
"content": "import contextlib\nimport inspect\nimport io\nimport json\nimport math\nimport queue\nimport typing\nimport warnings\nfrom concurrent.futures import Future\nfrom types import GeneratorType\nfrom urllib.parse import unquote, urljoin\n\nimport anyio\nimport anyio.from_thread\nfrom anyio.abc import O... | [
{
"content": "import contextlib\nimport inspect\nimport io\nimport json\nimport math\nimport queue\nimport typing\nimport warnings\nfrom concurrent.futures import Future\nfrom types import GeneratorType\nfrom urllib.parse import unquote, urljoin\n\nimport anyio\nimport anyio.from_thread\nfrom anyio.abc import O... | diff --git a/starlette/testclient.py b/starlette/testclient.py
index 60ef322d1..04ac90a05 100644
--- a/starlette/testclient.py
+++ b/starlette/testclient.py
@@ -463,7 +463,7 @@ def request( # type: ignore[override]
] = httpx._client.USE_CLIENT_DEFAULT,
extensions: typing.Optional[typing.Dict[str, typ... |
edgedb__edgedb-4811 | Unable to index into tuple on link property
- EdgeDB Version: 2.7+ad94380
- EdgeDB CLI Version: 2.2.6+7eabbf9
- OS Version: macOS 13.0.1
Steps to Reproduce:
Simplified schema
```
type Org {}
type User {
multi link orgs -> Org {
property roles -> tuple<role1: bool, role2: bool>;
}
}
```... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy... | diff --git a/edb/ir/pathid.py b/edb/ir/pathid.py
index b0b5db47e5c..d222642b4a8 100644
--- a/edb/ir/pathid.py
+++ b/edb/ir/pathid.py
@@ -718,6 +718,8 @@ def _get_prefix(self, size: int) -> PathId:
result._norm_path = self._norm_path[0:size]
result._prefix = self._prefix
result._namespace = se... |
pypi__warehouse-9411 | JSON endpoint for project is 404 if only yanked releases are available
From https://github.com/pypa/warehouse/issues/3709#issuecomment-754973958, it appears that the JSON API for a project is 404 if the only releases available are yanked releases.
E.g. https://pypi.org/pypi/django-twilio2/json should probably look l... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | diff --git a/tests/unit/legacy/api/test_json.py b/tests/unit/legacy/api/test_json.py
index 9a478f70bf6f..a1066c1b1af1 100644
--- a/tests/unit/legacy/api/test_json.py
+++ b/tests/unit/legacy/api/test_json.py
@@ -118,6 +118,76 @@ def test_only_prereleases(self, monkeypatch, db_request):
assert resp is response
... |
sanic-org__sanic-1137 | restrictive call to handlers from sanic.handlers.ErrorHandler.response
`sanic.handlers.ErrorHandler.response` use keywords arguments on handler call and so force the signature of the handler
Consider this very basic application:
```python
from sanic import Sanic
from sanic.exceptions import SanicException
from... | [
{
"content": "import sys\nfrom traceback import format_exc, extract_tb\n\nfrom sanic.exceptions import (\n ContentRangeError,\n HeaderNotFound,\n INTERNAL_SERVER_ERROR_HTML,\n InvalidRangeType,\n SanicException,\n TRACEBACK_LINE_HTML,\n TRACEBACK_STYLE,\n TRACEBACK_WRAPPER_HTML,\n TRA... | [
{
"content": "import sys\nfrom traceback import format_exc, extract_tb\n\nfrom sanic.exceptions import (\n ContentRangeError,\n HeaderNotFound,\n INTERNAL_SERVER_ERROR_HTML,\n InvalidRangeType,\n SanicException,\n TRACEBACK_LINE_HTML,\n TRACEBACK_STYLE,\n TRACEBACK_WRAPPER_HTML,\n TRA... | diff --git a/sanic/handlers.py b/sanic/handlers.py
index 9afcfb94d7..81dd38d78d 100644
--- a/sanic/handlers.py
+++ b/sanic/handlers.py
@@ -79,9 +79,9 @@ def response(self, request, exception):
response = None
try:
if handler:
- response = handler(request=request, exception=... |
uccser__cs-unplugged-225 | Complete folder structure for test suite
Each file should have a docstring explaining it's intended purpose.
Add a code coverage tool
| [
{
"content": "\"\"\"Base loader used to create custom loaders for content.\"\"\"\n\nimport yaml\nimport mdx_math\nimport abc\nimport sys\nimport re\nimport os.path\nfrom os import listdir\nfrom verto import Verto\n\nfrom .check_required_files import check_converter_required_files\n\nfrom utils.errors.CouldNotFi... | [
{
"content": "\"\"\"Base loader used to create custom loaders for content.\"\"\"\n\nimport yaml\nimport mdx_math\nimport abc\nimport sys\nimport re\nimport os.path\nfrom os import listdir\nfrom verto import Verto\n\nfrom .check_required_files import check_converter_required_files\nfrom utils.errors.CouldNotFind... | diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 000000000..be009b2f2
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,6 @@
+[run]
+source = config,dev,general,locale,resources,static,templates,topics,utils
+omit=*/migrations/*
+
+[report]
+fail_under=20
diff --git a/.travis.yml b/.travis.yml
index dd6bcd601... |
streamlink__streamlink-2230 | Update dependencies with security vulnerabilities
As mentioned here:
https://github.com/streamlink/streamlink/pull/2199#issuecomment-447567326
1. urllib3
> Vulnerable versions: < 1.23
> Patched version: 1.23
> urllib3 before version 1.23 does not remove the Authorization HTTP header when following a cro... | [
{
"content": "#!/usr/bin/env python\nimport codecs\nfrom os import environ\nfrom os import path\nfrom sys import path as sys_path\n\nfrom setuptools import setup, find_packages\n\nimport versioneer\n\ndeps = [\n # Require backport of concurrent.futures on Python 2\n 'futures;python_version<\"3.0\"',\n ... | [
{
"content": "#!/usr/bin/env python\nimport codecs\nfrom os import environ\nfrom os import path\nfrom sys import path as sys_path\n\nfrom setuptools import setup, find_packages\n\nimport versioneer\n\ndeps = [\n # Require backport of concurrent.futures on Python 2\n 'futures;python_version<\"3.0\"',\n ... | diff --git a/setup.py b/setup.py
index 54007193973..2ec570ab6b9 100644
--- a/setup.py
+++ b/setup.py
@@ -13,8 +13,8 @@
'futures;python_version<"3.0"',
# Require singledispatch on Python <3.4
'singledispatch;python_version<"3.4"',
- "requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!... |
ESMCI__cime-1391 | env_mach_pes.xml not being locked properly
I ran into this problem while doing testing on cheyenne. I was able to make changes in env_mach_pes.xml and submit to the queue without any error messages.
I was also able to change env_mach_pes.xml, then do a rebuild and submit without redoing case.setup.
| [
{
"content": "\"\"\"\nAPI for checking locked files\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.XML.env_build import EnvBuild\nfrom CIME.XML.env_case import EnvCase\nfrom CIME.XML.env_mach_pes import EnvMachPes\nfrom CIME.XML.env_batch import EnvBatch\nfrom CIME.utils import run_cmd_no_fa... | [
{
"content": "\"\"\"\nAPI for checking locked files\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.XML.env_build import EnvBuild\nfrom CIME.XML.env_case import EnvCase\nfrom CIME.XML.env_mach_pes import EnvMachPes\nfrom CIME.XML.env_batch import EnvBatch\nfrom CIME.utils import run_cmd_no_fa... | diff --git a/scripts/lib/CIME/check_lockedfiles.py b/scripts/lib/CIME/check_lockedfiles.py
index ee99a37398b..31243714388 100644
--- a/scripts/lib/CIME/check_lockedfiles.py
+++ b/scripts/lib/CIME/check_lockedfiles.py
@@ -88,7 +88,7 @@ def check_lockedfiles(caseroot=None):
for lfile in lockedfiles:
fpart =... |
conan-io__conan-center-index-9895 | [package] freeimage/3.18.0: Plugins aren't enabled
The preprocessor symbols used in the patches (WITH_JPEG etc.) are not defined by cmake.
### Package and Environment Details (include every applicable attribute)
* Package Name/Version: **freeimage/3.18.0**
* Operating System+version: **Windows 11**
* Compil... | [
{
"content": "from conans import ConanFile, CMake, tools\nimport os\nimport shutil\n\nrequired_conan_version = \">=1.43.0\"\n\n\nclass FreeImageConan(ConanFile):\n name = \"freeimage\"\n description = \"Open Source library project for developers who would like to support popular graphics image formats\"\\... | [
{
"content": "from conans import ConanFile, CMake, tools\nimport os\nimport shutil\n\nrequired_conan_version = \">=1.43.0\"\n\n\nclass FreeImageConan(ConanFile):\n name = \"freeimage\"\n description = \"Open Source library project for developers who would like to support popular graphics image formats\"\\... | diff --git a/recipes/freeimage/all/CMakeLists.txt b/recipes/freeimage/all/CMakeLists.txt
index 139ecc06d4445..b7792aa4cad3d 100644
--- a/recipes/freeimage/all/CMakeLists.txt
+++ b/recipes/freeimage/all/CMakeLists.txt
@@ -87,27 +87,35 @@ target_include_directories(FreeImage PRIVATE
)
target_link_libraries(FreeImage PR... |
scverse__scanpy-1969 | Pass delimiter in `scanpy.read` to `read_csv`
<!-- What kind of feature would you like to request? -->
- [x] Additional function parameters / changed functionality / changed defaults?
- [ ] New analysis tool: A simple analysis tool you have been using and are missing in `sc.tools`?
- [ ] New plotting function: A kin... | [
{
"content": "\"\"\"Reading and Writing\n\"\"\"\nfrom pathlib import Path, PurePath\nfrom typing import Union, Dict, Optional, Tuple, BinaryIO\n\nimport h5py\nimport json\nimport numpy as np\nimport pandas as pd\nfrom matplotlib.image import imread\nimport anndata\nfrom anndata import (\n AnnData,\n read_... | [
{
"content": "\"\"\"Reading and Writing\n\"\"\"\nfrom pathlib import Path, PurePath\nfrom typing import Union, Dict, Optional, Tuple, BinaryIO\n\nimport h5py\nimport json\nimport numpy as np\nimport pandas as pd\nfrom matplotlib.image import imread\nimport anndata\nfrom anndata import (\n AnnData,\n read_... | diff --git a/scanpy/readwrite.py b/scanpy/readwrite.py
index 742595987e..d015735881 100644
--- a/scanpy/readwrite.py
+++ b/scanpy/readwrite.py
@@ -750,7 +750,11 @@ def _read(
elif ext in {'mtx', 'mtx.gz'}:
adata = read_mtx(filename)
elif ext == 'csv':
- adata = read_csv(filename, first_column_... |
Flexget__Flexget-2250 | rtorrent 0.9.x no longer has d.multicall
<!---
Before opening an issue, verify:
- Is this a feature request? Post it on https://feathub.com/Flexget/Flexget
- Did you recently upgrade? Look at the Change Log and Upgrade Actions to make sure that you don't need to make any changes to your config https://flexget.com/... | [
{
"content": "from __future__ import unicode_literals, division, absolute_import\nfrom builtins import * # noqa pylint: disable=unused-import, redefined-builtin\nfrom future.moves.xmlrpc import client as xmlrpc_client\nfrom future.moves.urllib.parse import urlparse, urljoin, urlsplit\nfrom future.utils import ... | [
{
"content": "from __future__ import unicode_literals, division, absolute_import\nfrom builtins import * # noqa pylint: disable=unused-import, redefined-builtin\nfrom future.moves.xmlrpc import client as xmlrpc_client\nfrom future.moves.urllib.parse import urlparse, urljoin, urlsplit\nfrom future.utils import ... | diff --git a/flexget/plugins/clients/rtorrent.py b/flexget/plugins/clients/rtorrent.py
index 02267fb2f7..70ffe15879 100644
--- a/flexget/plugins/clients/rtorrent.py
+++ b/flexget/plugins/clients/rtorrent.py
@@ -302,7 +302,7 @@ def torrents(self, view='main', fields=None):
params = ['d.%s=' % field for field in... |
apache__airflow-19878 | Custom Timetable Import Error
### Apache Airflow version
2.2.2 (latest released)
### Operating System
Darwin Kernel Version 21.1.0 RELEASE_ARM64_T8101 arm64
### Versions of Apache Airflow Providers
_No response_
### Deployment
Virtualenv installation
### Deployment details
python_version | 3.9.7 (default, Sep... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | diff --git a/airflow/serialization/serialized_objects.py b/airflow/serialization/serialized_objects.py
index c542cd637ab04..2559f1e064f80 100644
--- a/airflow/serialization/serialized_objects.py
+++ b/airflow/serialization/serialized_objects.py
@@ -146,7 +146,7 @@ def _encode_timetable(var: Timetable) -> Dict[str, Any]... |
freedomofpress__securedrop-4644 | replace "hidden service" occurrences
## Status
ready for review
## Description of Changes
Changes Proposed:
- no longer refer to [Onion Services](https://2019.www.torproject.org/docs/onion-services.html.en) as hidden services;
- there are NO new images I added, it's just text;
- all changed content ... | [
{
"content": "#!/usr/bin/python2.7\n\"\"\"\n\nThis script should be copied to the App server and ran by the anisble\nplabook. When run (as root), it collects all of the necessary information\nto backup the 0.3 system and stores it in /tmp/sd-backup-0.3-TIME_STAMP.zip.gpg\n\n\"\"\"\n\nimport sys\nimport os\nimpo... | [
{
"content": "#!/usr/bin/python2.7\n\"\"\"\n\nThis script should be copied to the App server and ran by the anisble\nplabook. When run (as root), it collects all of the necessary information\nto backup the 0.3 system and stores it in /tmp/sd-backup-0.3-TIME_STAMP.zip.gpg\n\n\"\"\"\n\nimport sys\nimport os\nimpo... | diff --git a/docs/configure_admin_workstation_post_install.rst b/docs/configure_admin_workstation_post_install.rst
index 39bd1314c9..e417a61056 100644
--- a/docs/configure_admin_workstation_post_install.rst
+++ b/docs/configure_admin_workstation_post_install.rst
@@ -3,7 +3,7 @@ Configure the Admin Workstation Post-Inst... |
spack__spack-41502 | Installation issue: tcl with <= gcc@11
### Steps to reproduce
I started the most up to date version of spack, 05-12-2023, and had a glitch when trying to compile `tcl`:
spack install -v tcl@8.6.11
it appears to be as a result of the addition of this edit [40946](https://github.com/spack/spack/pull/4094... | [
{
"content": "# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\n\"\"\"This module contains additional behavior that can be attached to any given\npackage.\n\"\... | [
{
"content": "# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\n\"\"\"This module contains additional behavior that can be attached to any given\npackage.\n\"\... | diff --git a/lib/spack/spack/mixins.py b/lib/spack/spack/mixins.py
index 189c3947efc1e9..ef1d2b7916dab1 100644
--- a/lib/spack/spack/mixins.py
+++ b/lib/spack/spack/mixins.py
@@ -93,7 +93,7 @@ def _filter_compiler_wrappers_impl(pkg_or_builder):
replacements = []
for idx, (env_var, compiler_path) in ... |
MycroftAI__mycroft-core-1195 | Calling the pause() function does not pause the playback
This [pause() function](https://github.com/MycroftAI/mycroft-core/blob/a9d627c979b98053719200c6084f3b31a9a97c62/mycroft/skills/audioservice.py#L83) does not have the desired effect of pausing the playback.
`self.emitter.emit(Message('mycroft.sudio.service.stop'... | [
{
"content": "# Copyright 2017 Mycroft AI 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 appli... | [
{
"content": "# Copyright 2017 Mycroft AI 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 appli... | diff --git a/mycroft/skills/audioservice.py b/mycroft/skills/audioservice.py
index 5d1915390f1f..af8a6e876b36 100644
--- a/mycroft/skills/audioservice.py
+++ b/mycroft/skills/audioservice.py
@@ -72,6 +72,10 @@ def play(self, tracks=[], utterance=''):
data={'tracks': tracks,
... |
chainer__chainer-552 | where doesn't work with int16 and float64 on cuda6.5
On only cuda 6.5, this code doesn't work:
```
x = cupy.array([1,2,3], dtype=cupy.int16)
y = cupy.array([1,2,3], dtype=cupy.float64)
c = cupy.array([1,0,1], dtype=cupy.bool_)
cupy.where(c, x, y)
```
Other combinations such as (int16, float32) and (int32, float64) co... | [
{
"content": "from cupy import elementwise\nfrom cupy import reduction\n\n\ndef argmax(a, axis=None, dtype=None, out=None, keepdims=False):\n \"\"\"Returns the indices of the maximum along an axis.\n\n Args:\n a (cupy.ndarray): Array to take argmax.\n axis (int): Along which axis to find the... | [
{
"content": "from cupy import elementwise\nfrom cupy import reduction\n\n\ndef argmax(a, axis=None, dtype=None, out=None, keepdims=False):\n \"\"\"Returns the indices of the maximum along an axis.\n\n Args:\n a (cupy.ndarray): Array to take argmax.\n axis (int): Along which axis to find the... | diff --git a/cupy/sorting/search.py b/cupy/sorting/search.py
index fcb3dffbfa29..809cd6adc704 100644
--- a/cupy/sorting/search.py
+++ b/cupy/sorting/search.py
@@ -93,7 +93,12 @@ def where(condition, x=None, y=None):
_where_ufunc = elementwise.create_ufunc(
'cupy_where',
('???->?', '?bb->b', '?BB->B', '?hh->h... |
spack__spack-36663 | root: fails to build with `+vc +veccore` since #36594
`find_package(Vc 1.3.0 CONFIG QUIET REQUIRED)` without(!) `EXACT` doesn't require `@1.3.0` exactly, but a version that is compatible with 1.3.0 (which Vc defines as `AnyNewerVersion` in https://github.com/VcDevel/Vc/blob/1.4/CMakeLists.txt#L221). The version that RO... | [
{
"content": "# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\n\nimport sys\n\nfrom spack.operating_systems.mac_os import macos_version\nfrom spack.package im... | [
{
"content": "# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\n\nimport sys\n\nfrom spack.operating_systems.mac_os import macos_version\nfrom spack.package im... | diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py
index 615e345d04d13e..09a585104ad27d 100644
--- a/var/spack/repos/builtin/packages/root/package.py
+++ b/var/spack/repos/builtin/packages/root/package.py
@@ -282,7 +282,8 @@ class Root(CMakePackage):
)
... |
liqd__a4-opin-567 | Dashboard: Elements in organization/user switch are astray
The arrow and the label for the organization/user name should be in one line and vertically centered in the switch area. Keep in mind that there can be long names of two lines.
d with the current directory set to its\... | [
{
"content": "__version__ = '0.4.2'\n",
"path": "securedrop/version.py"
},
{
"content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to its\... | diff --git a/changelog.md b/changelog.md
index f82aeec31e..d2c1e430f0 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,12 @@
# Changelog
+## 0.4.2
+
+* Explicitly enables DAC override capability in Apache AppArmor profile (#2105)
+
+The issues for this release were tracked in the 0.4.2 milestone on Github:
+h... |
Pylons__pyramid-3459 | pserve configures logging twice when using --reload
pserve invokes `loader.setup_logging()` before invoking `hupper.start_reloader` which configures logging in the monitor process **and** then later configures it again in the child/worker/app process.
We should, instead, invoke `basicConfig` if `--reload` is set and... | [
{
"content": "# (c) 2005 Ian Bicking and contributors; written for Paste\n# (http://pythonpaste.org) Licensed under the MIT license:\n# http://www.opensource.org/licenses/mit-license.php\n#\n# For discussion of daemonizing:\n# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731\n#\n# Code taken also ... | [
{
"content": "# (c) 2005 Ian Bicking and contributors; written for Paste\n# (http://pythonpaste.org) Licensed under the MIT license:\n# http://www.opensource.org/licenses/mit-license.php\n#\n# For discussion of daemonizing:\n# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731\n#\n# Code taken also ... | diff --git a/src/pyramid/scripts/pserve.py b/src/pyramid/scripts/pserve.py
index 7d68521a46..bf5662a198 100644
--- a/src/pyramid/scripts/pserve.py
+++ b/src/pyramid/scripts/pserve.py
@@ -182,7 +182,11 @@ def run(self): # pragma: no cover
app_name = self.args.app_name
loader = self._get_config_loade... |
conda-forge__conda-smithy-1678 | Unable to install conda-smithy with conda 22.9.0 installed
### Solution to issue cannot be found in the documentation.
- [X] I checked the documentation.
### Issue
I am unable to install *conda-smithy* with the most recent version of *conda* (22.9.0). This, I believe, is a result of *conda* switching from *SemVer* t... | [
{
"content": "import os\nimport logging\nimport subprocess\nimport sys\nimport time\nimport argparse\nimport io\nimport tempfile\n\nfrom textwrap import dedent\n\nimport conda\nimport conda_build.api\nfrom distutils.version import LooseVersion\nfrom conda_build.metadata import MetaData\nfrom conda_smithy.utils ... | [
{
"content": "import os\nimport logging\nimport subprocess\nimport sys\nimport time\nimport argparse\nimport io\nimport tempfile\n\nfrom textwrap import dedent\n\nimport conda\nimport conda_build.api\nfrom distutils.version import LooseVersion\nfrom conda_build.metadata import MetaData\nfrom conda_smithy.utils ... | diff --git a/conda_smithy/cli.py b/conda_smithy/cli.py
index a5dde5be2..387d58674 100644
--- a/conda_smithy/cli.py
+++ b/conda_smithy/cli.py
@@ -667,17 +667,6 @@ def main():
else:
args = parser.parse_args()
- # Check conda version for compatibility
- CONDA_VERSION_MAX = "5.0"
- if LooseVersion(... |
unionai-oss__pandera-1050 | MultiIndex with a str dtype schemas can produce invalid examples
Problem:
If you make a schema for a MultiIndex dataframe and some columns are `str`s but others are not, the example produced could have incorrect dtypes for the non-`str` indices and the resulting dataframe from `schema.example()` will not be valid ac... | [
{
"content": "# pylint: disable=no-value-for-parameter,too-many-lines\n\"\"\"Generate synthetic data from a schema definition.\n\n*new in 0.6.0*\n\nThis module is responsible for generating data based on the type and check\nconstraints specified in a ``pandera`` schema. It's built on top of the\n`hypothesis <ht... | [
{
"content": "# pylint: disable=no-value-for-parameter,too-many-lines\n\"\"\"Generate synthetic data from a schema definition.\n\n*new in 0.6.0*\n\nThis module is responsible for generating data based on the type and check\nconstraints specified in a ``pandera`` schema. It's built on top of the\n`hypothesis <ht... | diff --git a/pandera/strategies/pandas_strategies.py b/pandera/strategies/pandas_strategies.py
index 6a34241d2..be011e590 100644
--- a/pandera/strategies/pandas_strategies.py
+++ b/pandera/strategies/pandas_strategies.py
@@ -1192,7 +1192,7 @@ def multiindex_strategy(
if dtype in {"object", "str"} or dtype.star... |
cornellius-gp__gpytorch-896 | [Bug] Interpolation gives wrong interp_values next to the left boundary
# 🐛 Bug
Interpolation utility returns asymetric interp_values for symmetric grid & inputs.
The problem arises next to the left boundary, where all points between gridpoint-0 and gridpoint-2 are interpolated with the same value (this should not... | [
{
"content": "#!/usr/bin/env python3\n\nimport torch\nfrom .broadcasting import _matmul_broadcast_shape\n\n\nclass Interpolation(object):\n \"\"\"\n \"\"\"\n\n def _cubic_interpolation_kernel(self, scaled_grid_dist):\n \"\"\"\n Computes the interpolation kernel u() for points X given the ... | [
{
"content": "#!/usr/bin/env python3\n\nimport torch\nfrom .broadcasting import _matmul_broadcast_shape\n\n\nclass Interpolation(object):\n \"\"\"\n \"\"\"\n\n def _cubic_interpolation_kernel(self, scaled_grid_dist):\n \"\"\"\n Computes the interpolation kernel u() for points X given the ... | diff --git a/gpytorch/utils/interpolation.py b/gpytorch/utils/interpolation.py
index ce3e2a4f4..36e4277ee 100644
--- a/gpytorch/utils/interpolation.py
+++ b/gpytorch/utils/interpolation.py
@@ -104,7 +104,7 @@ def interpolate(self, x_grid, x_target, interp_points=range(-2, 2)):
# Find points who's closest... |
Pylons__pyramid-3460 | pserve configures logging twice when using --reload
pserve invokes `loader.setup_logging()` before invoking `hupper.start_reloader` which configures logging in the monitor process **and** then later configures it again in the child/worker/app process.
We should, instead, invoke `basicConfig` if `--reload` is set and... | [
{
"content": "# (c) 2005 Ian Bicking and contributors; written for Paste\n# (http://pythonpaste.org) Licensed under the MIT license:\n# http://www.opensource.org/licenses/mit-license.php\n#\n# For discussion of daemonizing:\n# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731\n#\n# Code taken also ... | [
{
"content": "# (c) 2005 Ian Bicking and contributors; written for Paste\n# (http://pythonpaste.org) Licensed under the MIT license:\n# http://www.opensource.org/licenses/mit-license.php\n#\n# For discussion of daemonizing:\n# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731\n#\n# Code taken also ... | diff --git a/CHANGES.rst b/CHANGES.rst
index 9a2f77a94c..f6ccddb3ee 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -11,6 +11,11 @@ unreleased
not sortable on Python 3 due to differing types.
See https://github.com/Pylons/pyramid/pull/3457
+- Avoid configuring logging in the monitor process usin the logging confi... |
certbot__certbot-286 | False responses from IAuthenticator.perform not handled properly
Please see https://github.com/letsencrypt/lets-encrypt-preview/pull/267#discussion_r25478823
| [
{
"content": "\"\"\"ACME AuthHandler.\"\"\"\nimport logging\nimport sys\n\nimport Crypto.PublicKey.RSA\n\nfrom letsencrypt.acme import challenges\nfrom letsencrypt.acme import messages\n\nfrom letsencrypt.client import achallenges\nfrom letsencrypt.client import constants\nfrom letsencrypt.client import errors\... | [
{
"content": "\"\"\"ACME AuthHandler.\"\"\"\nimport logging\nimport sys\n\nimport Crypto.PublicKey.RSA\n\nfrom letsencrypt.acme import challenges\nfrom letsencrypt.acme import messages\n\nfrom letsencrypt.client import achallenges\nfrom letsencrypt.client import constants\nfrom letsencrypt.client import errors\... | diff --git a/letsencrypt/client/auth_handler.py b/letsencrypt/client/auth_handler.py
index 7ded4322c67..05f3722cf41 100644
--- a/letsencrypt/client/auth_handler.py
+++ b/letsencrypt/client/auth_handler.py
@@ -203,7 +203,8 @@ def _assign_responses(self, flat_list, ichall_dict):
def _path_satisfied(self, dom):
... |
bokeh__bokeh-9259 | [BUG] AjaxDataSource-based glyphs appear incompatible with FactorRange
Bokeh 1.3.4
Python 3.7.2
MacOS and CentOS
Chrome 77.0.3865.90
Summary: Populating data for a categorical plot from an AjaxDataSource fails. Root cause appears to be an attempt to convert data to synthetic coordinates before the data has been r... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------... | diff --git a/bokeh/models/sources.py b/bokeh/models/sources.py
index 1ef0f6de753..8c7b4b66899 100644
--- a/bokeh/models/sources.py
+++ b/bokeh/models/sources.py
@@ -786,6 +786,10 @@ class AjaxDataSource(RemoteSource):
callback can be provided to convert the REST response into Bokeh format,
via the ``adapter``... |
kartoza__prj.app-1093 | 500 error printing certificate
http://sentry.kartoza.com/sentry/projecta/issues/1727/
We have a problem with a new attendee and its certificate:
Alfredo González Fernández
http://changelog.qgis.org/en/qgis/certifyingorganisation/qgis-mappinggis/course/qgis_master-en-sistemas-de-informacion-geografica_2016-12-0... | [
{
"content": "# coding=utf-8\n\nimport datetime\nimport StringIO\nimport os\nimport zipfile\nimport cStringIO\nfrom PIL import Image\nimport re\nfrom django.contrib import messages\nfrom django.core.mail import send_mail\nfrom django.http import Http404, HttpResponse, HttpResponseRedirect\nfrom django.views.gen... | [
{
"content": "# coding=utf-8\n\nimport datetime\nimport StringIO\nimport os\nimport zipfile\nimport cStringIO\nfrom PIL import Image\nimport re\nfrom django.contrib import messages\nfrom django.core.mail import send_mail\nfrom django.http import Http404, HttpResponse, HttpResponseRedirect\nfrom django.views.gen... | diff --git a/django_project/certification/views/certificate.py b/django_project/certification/views/certificate.py
index e375907dd..a11a1e59d 100644
--- a/django_project/certification/views/certificate.py
+++ b/django_project/certification/views/certificate.py
@@ -344,7 +344,7 @@ def generate_pdf(
center, 300,... |
microsoft__ptvsd-619 | Launching a Python module using `-m` with `ptvsd.enable_attach` in __init__ fails
## Environment data
- PTVSD version: Master
- OS and version: Mac (may not be OS specific)
- Python version (& distribution if applicable, e.g. Anaconda): 3.6
- Using VS Code or Visual Studio:N/A
## Actual behavior
```
Traceb... | [
{
"content": "import sys\n\nfrom _pydevd_bundle import pydevd_comm\n\nfrom ptvsd.socket import Address\nfrom ptvsd.daemon import Daemon, DaemonStoppedError, DaemonClosedError\nfrom ptvsd._util import debug, new_hidden_thread\n\n\ndef start_server(daemon, host, port, **kwargs):\n \"\"\"Return a socket to a (n... | [
{
"content": "import sys\n\nfrom _pydevd_bundle import pydevd_comm\n\nfrom ptvsd.socket import Address\nfrom ptvsd.daemon import Daemon, DaemonStoppedError, DaemonClosedError\nfrom ptvsd._util import debug, new_hidden_thread\n\n\ndef start_server(daemon, host, port, **kwargs):\n \"\"\"Return a socket to a (n... | diff --git a/ptvsd/pydevd_hooks.py b/ptvsd/pydevd_hooks.py
index bbbde0aef..0e129e32c 100644
--- a/ptvsd/pydevd_hooks.py
+++ b/ptvsd/pydevd_hooks.py
@@ -92,7 +92,8 @@ def install(pydevd, address,
pydevd.start_server = _start_server
pydevd.start_client = _start_client
__main__ = sys.modules['__main__']
- ... |
encode__django-rest-framework-7497 | Subclasses of BrowsableAPIRenderer should not be output in schema
https://github.com/encode/django-rest-framework/blob/5ce237e00471d885f05e6d979ec777552809b3b1/rest_framework/schemas/openapi.py#L598
A popular library djangorestframework-camel-case defines a subclass of BrowsableAPIRenderer called CamelCaseBrowsableA... | [
{
"content": "import re\nimport warnings\nfrom collections import OrderedDict\nfrom decimal import Decimal\nfrom operator import attrgetter\nfrom urllib.parse import urljoin\n\nfrom django.core.validators import (\n DecimalValidator, EmailValidator, MaxLengthValidator, MaxValueValidator,\n MinLengthValida... | [
{
"content": "import re\nimport warnings\nfrom collections import OrderedDict\nfrom decimal import Decimal\nfrom operator import attrgetter\nfrom urllib.parse import urljoin\n\nfrom django.core.validators import (\n DecimalValidator, EmailValidator, MaxLengthValidator, MaxValueValidator,\n MinLengthValida... | diff --git a/rest_framework/schemas/openapi.py b/rest_framework/schemas/openapi.py
index 8a8e267e0f..4ecb7a65f1 100644
--- a/rest_framework/schemas/openapi.py
+++ b/rest_framework/schemas/openapi.py
@@ -595,7 +595,7 @@ def map_renderers(self, path, method):
media_types = []
for renderer in self.view.r... |
django-json-api__django-rest-framework-json-api-292 | pip install djangorestframework-jsonapi fails
Running `pip install djangorestframework-jsonapi` fails as documented on Read the Docs. I believe the reason is that pip fails to recognize all the available version numbers appropriately.
According to the setuptools docs, the `-` in the version number makes the posted ver... | [
{
"content": "import json\n\nfrom rest_framework.fields import MISSING_ERROR_MESSAGE\nfrom rest_framework.relations import *\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.db.models.query import QuerySet\n\nfrom rest_framework_json_api.exceptions import Conflict\nfrom rest_framework_json_... | [
{
"content": "import json\n\nfrom rest_framework.fields import MISSING_ERROR_MESSAGE\nfrom rest_framework.relations import *\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.db.models.query import QuerySet\n\nfrom rest_framework_json_api.exceptions import Conflict\nfrom rest_framework_json_... | diff --git a/rest_framework_json_api/relations.py b/rest_framework_json_api/relations.py
index 9762bc74..7d52bb0f 100644
--- a/rest_framework_json_api/relations.py
+++ b/rest_framework_json_api/relations.py
@@ -200,7 +200,7 @@ def many_init(cls, *args, **kwargs):
for key in kwargs.keys():
if key i... |
kivy__kivy-6954 | Regular http requests via UrlRequest fail on Android
**Software Versions**
* Python: v3.8.1
* OS: Android 9 API29
* Kivy: v2.0.0rc2
* Kivy installation method: python-for-android develop
**Describe the bug**
Since #6703, regular http requests via urlrequest no longer work on android. The on_error function of ur... | [
{
"content": "'''\nUrlRequest\n==========\n\n.. versionadded:: 1.0.8\n\nYou can use the :class:`UrlRequest` to make asynchronous requests on the\nweb and get the result when the request is completed. The spirit is the\nsame as the XHR object in Javascript.\n\nThe content is also decoded if the Content-Type is\n... | [
{
"content": "'''\nUrlRequest\n==========\n\n.. versionadded:: 1.0.8\n\nYou can use the :class:`UrlRequest` to make asynchronous requests on the\nweb and get the result when the request is completed. The spirit is the\nsame as the XHR object in Javascript.\n\nThe content is also decoded if the Content-Type is\n... | diff --git a/kivy/network/urlrequest.py b/kivy/network/urlrequest.py
index 4b55b73f3f..798bb6e098 100644
--- a/kivy/network/urlrequest.py
+++ b/kivy/network/urlrequest.py
@@ -334,7 +334,8 @@ def _fetch_url(self, url, body, headers, q):
if timeout is not None:
args['timeout'] = timeout
- i... |
numba__numba-3222 | Double `while True` loop causes strange errors
Answering the following question on stackoverflow, I think I found a strange bug in Numba (using 0.39.0 on python 3.6.5):
https://stackoverflow.com/q/51795538/392949
There the code just gets stuck in an infinite loop, but a simpler example suffers from other strange ... | [
{
"content": "from __future__ import print_function, division, absolute_import\n\nimport collections\nimport dis\nimport sys\nfrom copy import copy\n\nfrom . import config, ir, controlflow, dataflow, utils, errors, six\nfrom .utils import builtins, PYVERSION\nfrom .errors import NotDefinedError\n\n\nclass Assig... | [
{
"content": "from __future__ import print_function, division, absolute_import\n\nimport collections\nimport dis\nimport sys\nfrom copy import copy\n\nfrom . import config, ir, controlflow, dataflow, utils, errors, six\nfrom .utils import builtins, PYVERSION\nfrom .errors import NotDefinedError\n\n\nclass Assig... | diff --git a/numba/interpreter.py b/numba/interpreter.py
index 0f830bceac4..76f929ce668 100644
--- a/numba/interpreter.py
+++ b/numba/interpreter.py
@@ -143,6 +143,12 @@ def _start_new_block(self, inst):
# Get DFA block info
self.dfainfo = self.dfa.infos[self.current_block_offset]
self.assign... |
dbt-labs__dbt-core-8842 | [CT-3213] [Bug] nitpick: incorrect docstring
should be `BaseAdapter.capabilities()` not `BaseAdapter.has_feature()`
https://github.com/dbt-labs/dbt-core/blob/1baebb423c82a9c645e59b390fc3a69089623600/core/dbt/adapters/capability.py#L7
| [
{
"content": "from dataclasses import dataclass\nfrom enum import Enum\nfrom typing import Optional, DefaultDict, Mapping\n\n\nclass Capability(str, Enum):\n \"\"\"Enumeration of optional adapter features which can be probed using BaseAdapter.has_feature()\"\"\"\n\n SchemaMetadataByRelations = \"SchemaMet... | [
{
"content": "from dataclasses import dataclass\nfrom enum import Enum\nfrom typing import Optional, DefaultDict, Mapping\n\n\nclass Capability(str, Enum):\n \"\"\"Enumeration of optional adapter features which can be probed using BaseAdapter.capabilities()\"\"\"\n\n SchemaMetadataByRelations = \"SchemaMe... | diff --git a/core/dbt/adapters/capability.py b/core/dbt/adapters/capability.py
index 99c6dc4ba65..745cb27a648 100644
--- a/core/dbt/adapters/capability.py
+++ b/core/dbt/adapters/capability.py
@@ -4,7 +4,7 @@
class Capability(str, Enum):
- """Enumeration of optional adapter features which can be probed using Ba... |
google-research__text-to-text-transfer-transformer-343 | Unable to export a model finetuned on multiple-GPUs
I've successfully finetuned a model using 8 GPUs. However, when I tried to export the model using the function below:
```
saved_model_path = model.export(
export_dir,
checkpoint_step=-1, # use most recent
beam_size=1, # no beam search
tempera... | [
{
"content": "# Copyright 2020 The T5 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 appl... | [
{
"content": "# Copyright 2020 The T5 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 appl... | diff --git a/t5/models/mtf_model.py b/t5/models/mtf_model.py
index 90ef3e42..0fff2b45 100644
--- a/t5/models/mtf_model.py
+++ b/t5/models/mtf_model.py
@@ -195,7 +195,7 @@ def estimator(self, vocabulary, init_checkpoint=None, disable_tpu=False):
vocabulary=vocabulary,
layout_rules=self._layout_rules,
... |
cobbler__cobbler-1813 | Reposync excludes not working
I believe 4cba821006adde5afb8d9ff10f90a54ec9a8a4fb was a mistake and needs reverted. Currently the reposync function will not work with excludes. However the excludes will make it to the config.repo file for clients. This was fixed based in #218 originally.
| [
{
"content": "\"\"\"\nBuilds out and synchronizes yum repo mirrors.\nInitial support for rsync, perhaps reposync coming later.\n\nCopyright 2006-2007, Red Hat, Inc and Others\nMichael DeHaan <michael.dehaan AT gmail>\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of ... | [
{
"content": "\"\"\"\nBuilds out and synchronizes yum repo mirrors.\nInitial support for rsync, perhaps reposync coming later.\n\nCopyright 2006-2007, Red Hat, Inc and Others\nMichael DeHaan <michael.dehaan AT gmail>\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of ... | diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py
index b9a992055a..46eddb3ee7 100644
--- a/cobbler/action_reposync.py
+++ b/cobbler/action_reposync.py
@@ -580,6 +580,7 @@ def create_local_file(self, dest_path, repo, output=True):
config_file.write("[%s]\n" % repo.name)
config_file.... |
cobbler__cobbler-1812 | Reposync excludes not working
I believe 4cba821006adde5afb8d9ff10f90a54ec9a8a4fb was a mistake and needs reverted. Currently the reposync function will not work with excludes. However the excludes will make it to the config.repo file for clients. This was fixed based in #218 originally.
| [
{
"content": "\"\"\"\nBuilds out and synchronizes yum repo mirrors.\nInitial support for rsync, perhaps reposync coming later.\n\nCopyright 2006-2007, Red Hat, Inc and Others\nMichael DeHaan <michael.dehaan AT gmail>\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of ... | [
{
"content": "\"\"\"\nBuilds out and synchronizes yum repo mirrors.\nInitial support for rsync, perhaps reposync coming later.\n\nCopyright 2006-2007, Red Hat, Inc and Others\nMichael DeHaan <michael.dehaan AT gmail>\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of ... | diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py
index 350cd7ad00..32e46a56cd 100644
--- a/cobbler/action_reposync.py
+++ b/cobbler/action_reposync.py
@@ -563,6 +563,7 @@ def create_local_file(self, dest_path, repo, output=True):
config_file.write("[%s]\n" % repo.name)
config_file.... |
microsoft__botbuilder-python-383 | ChoiceFactory.for_channel could erroneously return a List instead of an Activity
Found in 4.5b5.
ChoiceFactory.for_channel could return a List instead of the expected Activity when the type should have defaulted to a list style.
[bug]
| [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nfrom typing import List, Union\n\nfrom botbuilder.core import CardFactory, MessageFactory\nfrom botbuilder.schema import ActionTypes, Activity, CardAction, HeroCard, InputHints\n\nfrom . import Channe... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nfrom typing import List, Union\n\nfrom botbuilder.core import CardFactory, MessageFactory\nfrom botbuilder.schema import ActionTypes, Activity, CardAction, HeroCard, InputHints\n\nfrom . import Channe... | diff --git a/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/choice_factory.py b/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/choice_factory.py
index a9d17f16f..52bf778b3 100644
--- a/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/choice_factory.py
+++ b/libraries/botbuilder-dialogs/botbuild... |
yt-project__yt-1692 | ParticleIDs loaded from Gadget binary snapshots are wrong
### Bug report
**Bug summary**
ParticlesIDs are expected to be unique. But when loaded from a Gadget binary snapshot, the uniqueness is lost. This is likely to be caused by wrong assumptions of dtype during data loading.
**Code for reproduction**
```... | [
{
"content": "\"\"\"\nGadget data-file handling functions\n\n\n\n\n\"\"\"\nfrom __future__ import print_function\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The ... | [
{
"content": "\"\"\"\nGadget data-file handling functions\n\n\n\n\n\"\"\"\nfrom __future__ import print_function\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The ... | diff --git a/yt/frontends/gadget/io.py b/yt/frontends/gadget/io.py
index 97733523c1c..ab6d5779222 100644
--- a/yt/frontends/gadget/io.py
+++ b/yt/frontends/gadget/io.py
@@ -323,7 +323,7 @@ def _read_field_from_file(self, f, count, name):
if name in self._vector_fields:
factor = self._vector_fields... |
microsoft__PubSec-Info-Assistant-491 | Issues with documents filtering using tags
Hi,
We uploaded some files with multiple tags as seen below (e.g., project name: Wegstunnels AWA, project code: MN004259, tender outcome: Gewonnen)

When u... | [
{
"content": "# Copyright (c) Microsoft Corporation.\n# Licensed under the MIT license.\n\nimport json\nimport logging\nimport os\nimport threading\nimport time\nimport re\nfrom datetime import datetime\nfrom typing import List\nimport base64\nimport requests\nimport random\nfrom urllib.parse import unquote\nfr... | [
{
"content": "# Copyright (c) Microsoft Corporation.\n# Licensed under the MIT license.\n\nimport json\nimport logging\nimport os\nimport threading\nimport time\nimport re\nfrom datetime import datetime\nfrom typing import List\nimport base64\nimport requests\nimport random\nfrom urllib.parse import unquote\nfr... | diff --git a/app/enrichment/app.py b/app/enrichment/app.py
index d10aaefd4..cfafbcf36 100644
--- a/app/enrichment/app.py
+++ b/app/enrichment/app.py
@@ -269,9 +269,9 @@ def get_tags_and_upload_to_cosmos(blob_service_client, blob_path):
tags = blob_properties.metadata.get("tags")
if tags is not None:
... |
yt-dlp__yt-dlp-8993 | Patreon embedded video not found anymore
### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field
### Checklist
- [X] I'm reporting that yt-dlp is broken on a **supported** site
- [X] I've verified that I have **updated yt-dl... | [
{
"content": "import itertools\n\nfrom .common import InfoExtractor\nfrom .vimeo import VimeoIE\nfrom ..compat import compat_urllib_parse_unquote\nfrom ..networking.exceptions import HTTPError\nfrom ..utils import (\n KNOWN_EXTENSIONS,\n ExtractorError,\n clean_html,\n determine_ext,\n int_or_non... | [
{
"content": "import itertools\n\nfrom .common import InfoExtractor\nfrom .vimeo import VimeoIE\nfrom ..compat import compat_urllib_parse_unquote\nfrom ..networking.exceptions import HTTPError\nfrom ..utils import (\n KNOWN_EXTENSIONS,\n ExtractorError,\n clean_html,\n determine_ext,\n int_or_non... | diff --git a/yt_dlp/extractor/patreon.py b/yt_dlp/extractor/patreon.py
index 9316789df213..d2ddb72cd4ff 100644
--- a/yt_dlp/extractor/patreon.py
+++ b/yt_dlp/extractor/patreon.py
@@ -275,7 +275,7 @@ def _real_extract(self, url):
'ext': ext,
'url': post_file['url'],
... |
frappe__frappe-15233 | Cannot search for keywords via Global Search
Steps:
1. Enter any keyword in global search
2. Hit enter
3. Instead of returning relevant records, system throws error message for Relevant Doctype

```... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2019, Frappe Technologies and contributors\n# License: MIT. See LICENSE\n\nimport frappe\nfrom frappe.model.document import Document\nfrom frappe import _\n\nclass GlobalSearchSettings(Document):\n\n\tdef validate(self):\n\t\tdts, core_dts, repeated_dts = [... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2019, Frappe Technologies and contributors\n# License: MIT. See LICENSE\n\nimport frappe\nfrom frappe.model.document import Document\nfrom frappe import _\n\nclass GlobalSearchSettings(Document):\n\n\tdef validate(self):\n\t\tdts, core_dts, repeated_dts = [... | diff --git a/frappe/desk/doctype/global_search_settings/global_search_settings.py b/frappe/desk/doctype/global_search_settings/global_search_settings.py
index 9ffe9aaf0685..e9a47cecd143 100644
--- a/frappe/desk/doctype/global_search_settings/global_search_settings.py
+++ b/frappe/desk/doctype/global_search_settings/glo... |
mne-tools__mne-bids-1069 | `key_press_event` is deprecated, needs to be replaced in our code
see: https://github.com/mne-tools/mne-bids/actions/runs/3145484445/jobs/5112832235#step:14:1665
| [
{
"content": "\"\"\"Configure details for documentation with sphinx.\"\"\"\nimport os\nimport sys\nfrom datetime import date\n\nimport sphinx_gallery # noqa: F401\nfrom sphinx_gallery.sorting import ExampleTitleSortKey\n\nimport mne_bids\n\n\n# If extensions (or modules to document with autodoc) are in another... | [
{
"content": "\"\"\"Configure details for documentation with sphinx.\"\"\"\nimport os\nimport sys\nfrom datetime import date\n\nimport sphinx_gallery # noqa: F401\nfrom sphinx_gallery.sorting import ExampleTitleSortKey\n\nimport mne_bids\n\n\n# If extensions (or modules to document with autodoc) are in another... | diff --git a/doc/conf.py b/doc/conf.py
index af4d5ffaa..9b74efa27 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -52,7 +52,7 @@
numpydoc_xref_aliases = {
'BIDSPath': ':class:`BIDSPath <mne_bids.BIDSPath>`',
'path-like': ':term:`path-like <mne:path-like>`',
- 'array-like': ':term:`array-like <mne:array-like... |
DjangoGirls__djangogirls-411 | Admin considers current events "past" and won't allow editing
This bit me when I wanted to update our page the morning of the event. The admin still showed all the pages, but wouldn't allow editing them; the fields were displayed as static text instead of inputs. Luckily I got around this because the admin still allowe... | [
{
"content": "from __future__ import unicode_literals\n\nfrom datetime import date, datetime, timedelta\nfrom smtplib import SMTPException\nfrom slacker import Error as SlackerError\n\nimport icalendar\nfrom django.contrib.auth import models as auth_models\nfrom django.contrib.auth.models import Group\nfrom dja... | [
{
"content": "from __future__ import unicode_literals\n\nfrom datetime import date, datetime, timedelta\nfrom smtplib import SMTPException\nfrom slacker import Error as SlackerError\n\nimport icalendar\nfrom django.contrib.auth import models as auth_models\nfrom django.contrib.auth.models import Group\nfrom dja... | diff --git a/core/models.py b/core/models.py
index 0e593ca72..c84f3b5eb 100644
--- a/core/models.py
+++ b/core/models.py
@@ -178,13 +178,9 @@ class Meta:
verbose_name_plural = "List of events"
def is_upcoming(self):
- if not self.date:
- return False
now = timezone.now()
... |
OCHA-DAP__hdx-ckan-1684 | Ebola Static Page: static page extension
Create configuration and deploy of static page extention/plugin.
This is a blocker for the other issues.
- populate the list of datasets of the controller
| [
{
"content": "'''\nCreated on Nov 3, 2014\n\n@author: alexandru-m-g\n'''\n\nimport datetime as dt\n\nimport pylons.config as config\nimport logging\n\nimport ckan.lib.base as base\nimport ckan.logic as logic\nimport ckan.model as model\nimport ckan.common as common\nimport ckan.lib.helpers as h\n\nrender = base... | [
{
"content": "'''\nCreated on Nov 3, 2014\n\n@author: alexandru-m-g\n'''\n\nimport datetime as dt\n\nimport pylons.config as config\nimport logging\n\nimport ckan.lib.base as base\nimport ckan.logic as logic\nimport ckan.model as model\nimport ckan.common as common\nimport ckan.lib.helpers as h\n\nrender = base... | diff --git a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py b/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py
index 5701f49f69..109ed77f70 100644
--- a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py
+++ b/ckanext-hdx_crisis/ckanext/hdx_crisis/contro... |
microsoft__ptvsd-808 | Debugger raising IndexError
Microsoft/vscode-python#2499
```
PS C:\Users\Hugh.Groves> cd '\\global.arup.com\americas\Jobs\STJ\230000\230597-00(ACDO)\4-04 Engineering\4-04-02 Concrete\02 Calculations\19 Staged Construction\99-Tools\CreateBatches'; ${env:PYTHONIOENCODING}='UTF-8'; ${env:PYTHONUNBUFFNIOENCODING}='UTF-... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nfrom __future__ import print_function, with_statement, absolute_import\n\nfrom glob import glob\nimport os.path\nimport platform\n\n\nMAX_FI... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nfrom __future__ import print_function, with_statement, absolute_import\n\nfrom glob import glob\nimport os.path\nimport platform\n\n\nMAX_FI... | diff --git a/ptvsd/pathutils.py b/ptvsd/pathutils.py
index cef7bc561..ecced2861 100644
--- a/ptvsd/pathutils.py
+++ b/ptvsd/pathutils.py
@@ -56,8 +56,7 @@ def _get_actual_filename(self, name):
dir_names = os.listdir(os.getcwd())
fragments = list(filter(
lambda x: x... |
fossasia__open-event-server-5314 | Disallow creating users with same email.
**Is your feature request related to a problem? Please describe.**
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
Right now we can create users with the same email. If we soft-delete a user account and try to create an acc... | [
{
"content": "import base64\n\nfrom flask import Blueprint, request, jsonify, abort, make_response\nfrom flask_jwt import current_identity as current_user\nfrom flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\nfrom sqlalchemy.orm.exc import NoResultFound\nimport urllib.error\n\nfrom... | [
{
"content": "import base64\n\nfrom flask import Blueprint, request, jsonify, abort, make_response\nfrom flask_jwt import current_identity as current_user\nfrom flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\nfrom sqlalchemy.orm.exc import NoResultFound\nimport urllib.error\n\nfrom... | diff --git a/app/api/users.py b/app/api/users.py
index 65882e5d36..125cd0ddfa 100644
--- a/app/api/users.py
+++ b/app/api/users.py
@@ -44,7 +44,7 @@ def before_create_object(self, data, view_kwargs):
:param view_kwargs:
:return:
"""
- if db.session.query(User.id).filter_by(email=data['... |
Zeroto521__my-data-toolkit-765 | MAINT: Add `sparse_output` for `OneHotEncoder` to compat with sklearn1.2
<!--
Thanks for contributing a pull request!
Please follow these standard acronyms to start the commit message:
- ENH: enhancement
- BUG: bug fix
- DOC: documentation
- TYP: type annotations
- TST: addition or modification of tests
- M... | [
{
"content": "from __future__ import annotations\n\nfrom textwrap import dedent\nfrom typing import Literal\nfrom typing import TYPE_CHECKING\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.util._decorators import doc\nfrom sklearn.preprocessing import OneHotEncoder as SKOneHotEncoder\n\nfrom dtoolkit._... | [
{
"content": "from __future__ import annotations\n\nfrom textwrap import dedent\nfrom typing import Literal\nfrom typing import TYPE_CHECKING\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.util._decorators import doc\nfrom sklearn.preprocessing import OneHotEncoder as SKOneHotEncoder\n\nfrom dtoolkit._... | diff --git a/doc/source/guide/transformer_quickstart.ipynb b/doc/source/guide/transformer_quickstart.ipynb
index 8066168d5..17e5919e5 100644
--- a/doc/source/guide/transformer_quickstart.ipynb
+++ b/doc/source/guide/transformer_quickstart.ipynb
@@ -215,7 +215,8 @@
"metadata": {},
"outputs": [],
"source": [
... |
elastic__apm-agent-python-49 | Transaction.Response.StatusCode is expected to be Number not String
I experienced an `error` being sent to the `transactions` endpoint. It clearly happened in a development scenario, when I applied a change in a running Django app. Feel free to disregard this 'bug' report if it cannot happen in a 'real-world-scenario'.... | [
{
"content": "\"\"\"\nelasticapm.contrib.django.client\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n:copyright: (c) 2011-2017 Elasticsearch\n\nLarge portions are\n:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.\n:license: BSD, see LICENSE for more details.\n\"\"\"\n\nfrom __future__ import absolute_i... | [
{
"content": "\"\"\"\nelasticapm.contrib.django.client\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n:copyright: (c) 2011-2017 Elasticsearch\n\nLarge portions are\n:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.\n:license: BSD, see LICENSE for more details.\n\"\"\"\n\nfrom __future__ import absolute_i... | diff --git a/elasticapm/contrib/django/client.py b/elasticapm/contrib/django/client.py
index 5a618b122..870cf0b6a 100644
--- a/elasticapm/contrib/django/client.py
+++ b/elasticapm/contrib/django/client.py
@@ -156,7 +156,7 @@ def get_data_from_request(self, request):
return result
def get_data_from_respo... |
microsoft__Qcodes-868 | Bug: Saving metadata issue when dict contains both numeric and non-numeric keys
### Steps to reproduce
1. Create: `p = Parameter(name='test', val_mapping={1: 1, '2': 2})`
2. Perform measurement with p
### Expected behaviour
Measurement should run without problems
### Actual behaviour
Saving the metadata as a ... | [
{
"content": "import numpy as np\nimport re\nimport math\nimport json\nimport logging\n\nfrom qcodes.utils.helpers import deep_update, NumpyJSONEncoder\nfrom .data_array import DataArray\nfrom .format import Formatter\n\n\nlog = logging.getLogger(__name__)\n\n\nclass GNUPlotFormat(Formatter):\n \"\"\"\n S... | [
{
"content": "import numpy as np\nimport re\nimport math\nimport json\nimport logging\n\nfrom qcodes.utils.helpers import deep_update, NumpyJSONEncoder\nfrom .data_array import DataArray\nfrom .format import Formatter\n\n\nlog = logging.getLogger(__name__)\n\n\nclass GNUPlotFormat(Formatter):\n \"\"\"\n S... | diff --git a/qcodes/data/gnuplot_format.py b/qcodes/data/gnuplot_format.py
index c2124572968..b3f0c288193 100644
--- a/qcodes/data/gnuplot_format.py
+++ b/qcodes/data/gnuplot_format.py
@@ -350,7 +350,7 @@ def write_metadata(self, data_set, io_manager, location, read_first=True):
fn = io_manager.join(location... |
pyqtgraph__pyqtgraph-1987 | typo in HistogramLUTItem.imageChanged for RGB autoLevel
### Short description
There is a typo in HistogramLUTItem.imageChanged for RGB autoLevel , i.e.
```patch
diff --git a/pyqtgraph/graphicsItems/HistogramLUTItem.py b/pyqtgraph/graphicsItems/HistogramLUTItem.py
index 5350c16e..6ccdaf97 100644
--- a/pyqtgraph/gr... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nGraphicsWidget displaying an image histogram along with gradient editor. Can be used to\nadjust the appearance of images.\n\"\"\"\n\n\nfrom ..Qt import QtGui, QtCore\nfrom .. import functions as fn\nfrom .GraphicsWidget import GraphicsWidget\nfrom .ViewBox import *... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nGraphicsWidget displaying an image histogram along with gradient editor. Can be used to\nadjust the appearance of images.\n\"\"\"\n\n\nfrom ..Qt import QtGui, QtCore\nfrom .. import functions as fn\nfrom .GraphicsWidget import GraphicsWidget\nfrom .ViewBox import *... | diff --git a/pyqtgraph/graphicsItems/HistogramLUTItem.py b/pyqtgraph/graphicsItems/HistogramLUTItem.py
index 5350c16ea7..6ccdaf97a5 100644
--- a/pyqtgraph/graphicsItems/HistogramLUTItem.py
+++ b/pyqtgraph/graphicsItems/HistogramLUTItem.py
@@ -363,7 +363,7 @@ def imageChanged(self, autoLevel=False, autoRange=False):
... |
adamchainz__django-mysql-753 | TypeError: iterator() got an unexpected keyword argument 'chunk_size'
Summary: the iterator doesn't support the chunk_size argument of the core Django QuerySet iterator function
The following code in django_mysql.models.query line 157 - 160 fixes the problem.
def iterator(self, **kwargs):
if getattr(s... | [
{
"content": "import operator\nimport subprocess\nimport sys\nimport time\nfrom copy import copy\nfrom functools import wraps\n\nfrom django.conf import settings\nfrom django.db import connections, models\nfrom django.db.models.sql.where import ExtraWhere\nfrom django.db.transaction import atomic\nfrom django.t... | [
{
"content": "import operator\nimport subprocess\nimport sys\nimport time\nfrom copy import copy\nfrom functools import wraps\n\nfrom django.conf import settings\nfrom django.db import connections, models\nfrom django.db.models.sql.where import ExtraWhere\nfrom django.db.transaction import atomic\nfrom django.t... | diff --git a/HISTORY.rst b/HISTORY.rst
index 0e076781..a931280c 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -2,6 +2,9 @@
History
=======
+* Pass the ``chunk_size`` argument through in ``QuerySetMixin.iterator()``.
+ (`Issue #752 <https://github.com/adamchainz/django-mysql/issues/752>`__)
+
3.11.0 (2021-01-25)
... |
sql-machine-learning__elasticdl-1446 | add subclass test case for model handle test
We only define a functional model in test_module.
https://github.com/sql-machine-learning/elasticdl/blob/35d0647a737d93e6969764cabe541ac8078d13bf/elasticdl/python/tests/test_module.py#L16-L20
We should add subclass one to ensure ModelHandle logic correct.
| [
{
"content": "import abc\n\nimport tensorflow as tf\n\nfrom elasticdl.proto import elasticdl_pb2\nfrom elasticdl.python.common import model_utils\nfrom elasticdl.python.common.constants import DistributionStrategy\nfrom elasticdl.python.common.log_utils import default_logger as logger\nfrom elasticdl.python.com... | [
{
"content": "import abc\n\nimport tensorflow as tf\n\nfrom elasticdl.proto import elasticdl_pb2\nfrom elasticdl.python.common import model_utils\nfrom elasticdl.python.common.constants import DistributionStrategy\nfrom elasticdl.python.common.log_utils import default_logger as logger\nfrom elasticdl.python.com... | diff --git a/elasticdl/python/common/model_handler.py b/elasticdl/python/common/model_handler.py
index a55c2b9dc..76f57fec3 100644
--- a/elasticdl/python/common/model_handler.py
+++ b/elasticdl/python/common/model_handler.py
@@ -128,7 +128,7 @@ def _restore_keras_model_def(self, model):
# clear keras model ses... |
wagtail__wagtail-10645 | 🎛️ Migrate header search Stimulus Controller
> ℹ️ **Part of the [Stimulus 🎛️ RFC 78](https://github.com/wagtail/rfcs/pull/78)**
### Is your proposal related to a problem?
We have a core.js implementations of JavaScript code that, when a matching search input receives changes, will trigger an async request to t... | [
{
"content": "from django import forms\nfrom django.utils.translation import gettext as _\nfrom django.utils.translation import gettext_lazy\n\n\nclass SearchForm(forms.Form):\n def __init__(self, *args, **kwargs):\n placeholder = kwargs.pop(\"placeholder\", _(\"Search\"))\n super().__init__(*a... | [
{
"content": "from django import forms\nfrom django.utils.translation import gettext as _\nfrom django.utils.translation import gettext_lazy\n\n\nclass SearchForm(forms.Form):\n def __init__(self, *args, **kwargs):\n placeholder = kwargs.pop(\"placeholder\", _(\"Search\"))\n super().__init__(*a... | diff --git a/client/src/controllers/SwapController.test.js b/client/src/controllers/SwapController.test.js
index 5f263762ac95..678d3ae1b9c3 100644
--- a/client/src/controllers/SwapController.test.js
+++ b/client/src/controllers/SwapController.test.js
@@ -43,7 +43,7 @@ describe('SwapController', () => {
expect(ha... |
Kinto__kinto-1131 | Memory backend sometimes show empty permissions
If you do multiple requests on memory backend, the empty permissions cycle between showing and not showing. The same does not happen with postgres.
```json
gsurita-30820:kinto gsurita$ echo '{"permissions": {"read": []}}' | http put localhost:8888/v1/buckets/b1 -a a:a... | [
{
"content": "import re\n\nfrom kinto.core.decorators import synchronized\nfrom kinto.core.permission import PermissionBase\n\n\nclass Permission(PermissionBase):\n \"\"\"Permission backend implementation in local process memory.\n\n Enable in configuration::\n\n kinto.permission_backend = kinto.co... | [
{
"content": "import re\n\nfrom kinto.core.decorators import synchronized\nfrom kinto.core.permission import PermissionBase\n\n\nclass Permission(PermissionBase):\n \"\"\"Permission backend implementation in local process memory.\n\n Enable in configuration::\n\n kinto.permission_backend = kinto.co... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 9cae880ee..f7876f0c0 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -6,7 +6,9 @@ This document describes changes between each past release.
6.1.0 (unreleased)
------------------
-- Nothing changed yet.
+**Bug fixes**
+
+- Fix Memory backend sometimes show empty pe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.