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 ⌀ |
|---|---|---|---|---|
StackStorm__st2-4861 | Shell script action not serializing array properly.
## SUMMARY
According to the documentation (https://docs.stackstorm.com/actions.html#update-argument-parsing-in-the-script), arrays should be passed to bash script actions as a comma-delimited string.
> array - Serialized as a comma delimited string (e.g. foo,b... | [
{
"content": "# Copyright 2019 Extreme Networks, 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 ... | [
{
"content": "# Copyright 2019 Extreme Networks, 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 ... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index d89577336a..3d77639e8d 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -63,7 +63,10 @@ Changed
Fixed
~~~~~
+* Fix the passing of arrays to shell scripts where the arrays where not detected as such by the
+ st2 action_db utility. This caused arrays to be passed as... |
kivy__kivy-4657 | Touchtracer - delay when trying to draw
I don't even see it if I don't look close, but if I'm right, the thing that's mentioned in [this question](http://stackoverflow.com/q/37933920/5994041) is in fact a delay I see here. If not, there's a delay anyway. It's like there is an invisible(because bg isn't only single colo... | [
{
"content": "'''\nTouch Tracer Line Drawing Demonstration\n=======================================\n\nThis demonstrates tracking each touch registered to a device. You should\nsee a basic background image. When you press and hold the mouse, you\nshould see cross-hairs with the coordinates written next to them.... | [
{
"content": "'''\nTouch Tracer Line Drawing Demonstration\n=======================================\n\nThis demonstrates tracking each touch registered to a device. You should\nsee a basic background image. When you press and hold the mouse, you\nshould see cross-hairs with the coordinates written next to them.... | diff --git a/examples/demo/touchtracer/main.py b/examples/demo/touchtracer/main.py
index 1cbdbd962e..cf91c230a2 100755
--- a/examples/demo/touchtracer/main.py
+++ b/examples/demo/touchtracer/main.py
@@ -8,6 +8,12 @@
you drag, it leaves a trail. Additional information, like pressure,
will be shown if they are in your ... |
comic__grand-challenge.org-864 | Fix read the docs generation
We're using autodoc which requires an install of the dev environment. Read the docs does not support pipenv yet, so we should be able to fix when this PR is released: https://github.com/rtfd/readthedocs.org/pull/4783
For the time being, local generation works fine.
| [
{
"content": "#!/usr/bin/env python3\n#\n# grand-challenge.org documentation build configuration file, created by\n# sphinx-quickstart on Fri Jan 5 16:19:37 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are pr... | [
{
"content": "#!/usr/bin/env python3\n#\n# grand-challenge.org documentation build configuration file, created by\n# sphinx-quickstart on Fri Jan 5 16:19:37 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are pr... | diff --git a/.readthedocs.yml b/.readthedocs.yml
new file mode 100644
index 0000000000..c405b71e40
--- /dev/null
+++ b/.readthedocs.yml
@@ -0,0 +1,17 @@
+# Read the Docs configuration file
+# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
+
+version: 2
+
+# Build documentation in the docs/ di... |
watchdogpolska__feder-932 | błąd przy usuwaniu wiadomości
@dzejkobi weszłam w monitoring "Samorządy - o liczbę wniosków" i zobaczyłam, że gmina Żarnów wysyła nam z automatu wiadomości o różnych szkoleniach, życzenia świąteczne etc. Najpierw zaczęłam te wiadomości oznaczać, jako spam, ale przestraszyłam się, że potem z automatu odpowiedzi od tej ... | [
{
"content": "import json\nimport uuid\nfrom os import path\nfrom atom.ext.django_filters.views import UserKwargFilterSetMixin\nfrom atom.views import (\n CreateMessageMixin,\n DeleteMessageMixin,\n UpdateMessageMixin,\n ActionView,\n ActionMessageMixin,\n)\nfrom braces.views import (\n FormVa... | [
{
"content": "import json\nimport uuid\nfrom os import path\nfrom atom.ext.django_filters.views import UserKwargFilterSetMixin\nfrom atom.views import (\n CreateMessageMixin,\n DeleteMessageMixin,\n UpdateMessageMixin,\n ActionView,\n ActionMessageMixin,\n)\nfrom braces.views import (\n FormVa... | diff --git a/feder/letters/tests/test_views.py b/feder/letters/tests/test_views.py
index 15d71f7d3..9969c1a6c 100644
--- a/feder/letters/tests/test_views.py
+++ b/feder/letters/tests/test_views.py
@@ -194,6 +194,13 @@ def test_remove_eml_file(self):
self.client.post(self.get_url())
self.assertFalse(os... |
crytic__slither-802 | stop() function in Inline assembly calls is treated as solidity functions
When trying to analyze contract that contains code like this
```
assembly {
...
stop()
...
}
```
I'm getting the following error when `name` = `stop()`.
```
File "/home/ethsec/.local/lib/python3.6/site-packages/slither/core/de... | [
{
"content": "import abc\nimport json\nfrom typing import Optional, Dict, List, Union\n\nfrom slither.core.cfg.node import NodeType, Node, link_nodes\nfrom slither.core.declarations import (\n Function,\n SolidityFunction,\n Contract,\n)\nfrom slither.core.declarations.function_contract import Function... | [
{
"content": "import abc\nimport json\nfrom typing import Optional, Dict, List, Union\n\nfrom slither.core.cfg.node import NodeType, Node, link_nodes\nfrom slither.core.declarations import (\n Function,\n SolidityFunction,\n Contract,\n)\nfrom slither.core.declarations.function_contract import Function... | diff --git a/slither/solc_parsing/yul/parse_yul.py b/slither/solc_parsing/yul/parse_yul.py
index e3fae77f09..4a47ef8009 100644
--- a/slither/solc_parsing/yul/parse_yul.py
+++ b/slither/solc_parsing/yul/parse_yul.py
@@ -647,7 +647,16 @@ def parse_yul_function_call(root: YulScope, node: YulNode, ast: Dict) -> Optiona
... |
mne-tools__mne-python-10739 | montage_sgskip.py example doesn't run
When trying to run the example in `examples/visualization/montage_sgskip.py`, I get an exception:
```python
ValueError: A head<->mri transformation matrix (trans) is required to plot head surfaces in head coordinates, `trans=None` is not allowed
```
It runs if I pass `trans='... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\n.. _plot_montage:\n\nPlotting sensor layouts of EEG systems\n======================================\n\nThis example illustrates how to load all the EEG system montages\nshipped in MNE-python, and display it on the fsaverage template subject.\n\"\"\" # noqa: D205, ... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\n.. _plot_montage:\n\nPlotting sensor layouts of EEG systems\n======================================\n\nThis example illustrates how to load all the EEG system montages\nshipped in MNE-python, and display it on the fsaverage template subject.\n\"\"\" # noqa: D205, ... | diff --git a/examples/visualization/montage_sgskip.py b/examples/visualization/montage_sgskip.py
index f915da59db2..17bfc686e36 100644
--- a/examples/visualization/montage_sgskip.py
+++ b/examples/visualization/montage_sgskip.py
@@ -16,6 +16,7 @@
# %%
import os.path as op
+import numpy as np
import mne
from mne... |
ckan__ckan-6286 | ckan.lib.search.common.SearchError: Could not extract version info from the SOLR schema
**CKAN version**
2.9.3 (deb)
**Describe the bug**
CKAN fails to fetch the Solr schema using basic auth (401s)
**Steps to reproduce**
In ckan.ini
```
solr_url = http://solr:8983/solr/ckan
solr_user = solr
solr_password =... | [
{
"content": "# encoding: utf-8\n\nfrom __future__ import print_function\nimport logging\nimport sys\nimport cgitb\nimport warnings\nimport base64\nimport xml.dom.minidom\n\nimport requests\n\nfrom ckan.common import asbool, config\nimport ckan.model as model\nimport ckan.plugins as p\nimport ckan.logic as logi... | [
{
"content": "# encoding: utf-8\n\nfrom __future__ import print_function\nimport logging\nimport sys\nimport cgitb\nimport warnings\nimport base64\nimport xml.dom.minidom\n\nimport requests\n\nfrom ckan.common import asbool, config\nimport ckan.model as model\nimport ckan.plugins as p\nimport ckan.logic as logi... | diff --git a/ckan/lib/search/__init__.py b/ckan/lib/search/__init__.py
index 5a92e45e42a..6d3568c27a2 100644
--- a/ckan/lib/search/__init__.py
+++ b/ckan/lib/search/__init__.py
@@ -257,16 +257,11 @@ def clear_all():
def _get_schema_from_solr(file_offset):
solr_url, solr_user, solr_password = SolrSettings.get()
... |
RUCAIBox__RecBole-692 | [🐛BUG] case_study.py 中, 输入的用户id只有一个时, full_sort_topk 报错
代码
```python3
import torch
import pandas as pd
from recbole.model.general_recommender.bpr import BPR
from recbole.config import Config
from recbole.data import create_dataset, data_preparation
from recbole.utils.case_study import full_sort_topk
param_... | [
{
"content": "# @Time : 2020/12/25\n# @Author : Yushuo Chen\n# @Email : chenyushuo@ruc.edu.cn\n\n# UPDATE\n# @Time : 2020/12/25\n# @Author : Yushuo Chen\n# @email : chenyushuo@ruc.edu.cn\n\n\"\"\"\nrecbole.utils.case_study\n#####################################\n\"\"\"\n\nimport numpy as np\nimport torch\... | [
{
"content": "# @Time : 2020/12/25\n# @Author : Yushuo Chen\n# @Email : chenyushuo@ruc.edu.cn\n\n# UPDATE\n# @Time : 2020/12/25\n# @Author : Yushuo Chen\n# @email : chenyushuo@ruc.edu.cn\n\n\"\"\"\nrecbole.utils.case_study\n#####################################\n\"\"\"\n\nimport numpy as np\nimport torch\... | diff --git a/recbole/utils/case_study.py b/recbole/utils/case_study.py
index cc536cce1..d8a3b38de 100644
--- a/recbole/utils/case_study.py
+++ b/recbole/utils/case_study.py
@@ -41,7 +41,7 @@ def full_sort_scores(uid_series, model, test_data):
if isinstance(test_data, GeneralFullDataLoader):
index = np.isi... |
python-telegram-bot__python-telegram-bot-87 | @ character
If I type @ in a chat I got this. (using https://github.com/leandrotoledo/python-telegram-bot/blob/master/examples/echobot.py)
TypeError: b'hola @honguitobot' is not JSON serializable
| [
{
"content": "#!/usr/bin/env python\n#\n# Simple Bot to reply Telegram messages\n# Copyright (C) 2015 Leandro Toledo de Souza <leandrotoeldodesouza@gmail.com>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the... | [
{
"content": "#!/usr/bin/env python\n#\n# Simple Bot to reply Telegram messages\n# Copyright (C) 2015 Leandro Toledo de Souza <leandrotoeldodesouza@gmail.com>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the... | diff --git a/examples/echobot.py b/examples/echobot.py
index 67b3c552756..e03599bff05 100644
--- a/examples/echobot.py
+++ b/examples/echobot.py
@@ -51,12 +51,12 @@ def echo(bot):
for update in bot.getUpdates(offset=LAST_UPDATE_ID, timeout=10):
# chat_id is required to reply any message
chat_id =... |
aws-cloudformation__cfn-lint-1774 | Incorrect rule: "E1019: Sub parameter should be an object of 1 or string for..."
*cfn-lint version: 0.40.0*
I am getting an incorrect error that [`E1019`](https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/rules.md#E1019)` Sub parameter should be an object of 1 or string for...` when using YAML:
... | [
{
"content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport six\nfrom cfnlint.helpers import PSEUDOPARAMS, VALID_PARAMETER_TYPES_LIST\nfrom cfnlint.rules import CloudFormationLintRule\nfrom cfnlint.rules import RuleMatch\n\n\nclass Sub... | [
{
"content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport six\nfrom cfnlint.helpers import PSEUDOPARAMS, VALID_PARAMETER_TYPES_LIST\nfrom cfnlint.rules import CloudFormationLintRule\nfrom cfnlint.rules import RuleMatch\n\n\nclass Sub... | diff --git a/src/cfnlint/rules/functions/Sub.py b/src/cfnlint/rules/functions/Sub.py
index 6b458a962e..a206061713 100644
--- a/src/cfnlint/rules/functions/Sub.py
+++ b/src/cfnlint/rules/functions/Sub.py
@@ -85,8 +85,8 @@ def _test_parameters(self, parameters, cfn, tree):
message = 'Sub parameter sh... |
deepset-ai__haystack-2957 | Code snippet wrongly formatted in docs
**Describe the bug**
The code snippet at:
https://github.com/deepset-ai/haystack/blob/master/haystack/nodes/ranker/sentence_transformers.py#L32
is rendered as plain text in the corresponding documentation page
https://haystack.deepset.ai/reference/ranker
**Expected ... | [
{
"content": "from typing import List, Optional, Union, Tuple, Iterator, Any\nimport logging\nfrom pathlib import Path\n\nimport torch\nfrom torch.nn import DataParallel\nfrom transformers import AutoModelForSequenceClassification, AutoTokenizer\n\nfrom haystack.errors import HaystackError\nfrom haystack.schema... | [
{
"content": "from typing import List, Optional, Union, Tuple, Iterator, Any\nimport logging\nfrom pathlib import Path\n\nimport torch\nfrom torch.nn import DataParallel\nfrom transformers import AutoModelForSequenceClassification, AutoTokenizer\n\nfrom haystack.errors import HaystackError\nfrom haystack.schema... | diff --git a/docs/_src/api/api/ranker.md b/docs/_src/api/api/ranker.md
index b5efcbe2dd..33094671d0 100644
--- a/docs/_src/api/api/ranker.md
+++ b/docs/_src/api/api/ranker.md
@@ -80,12 +80,14 @@ https://www.sbert.net/docs/pretrained-models/ce-msmarco.html#usage-with-transfor
- directly get predictions via predict()
... |
urllib3__urllib3-501 | Connection retrieved from connection pool has wrong cert_reqs (based on previous request)
Based on the issue on requests library: https://github.com/kennethreitz/requests/issues/2314
I´ve found that when you want to perform a request with `self.cert_reqs=='CERT_NONE'`sometimes (if there has been a previous connection w... | [
{
"content": "import errno\nimport logging\nimport sys\nimport warnings\n\nfrom socket import error as SocketError, timeout as SocketTimeout\nimport socket\n\ntry: # Python 3\n from queue import LifoQueue, Empty, Full\nexcept ImportError:\n from Queue import LifoQueue, Empty, Full\n import Queue as _ ... | [
{
"content": "import errno\nimport logging\nimport sys\nimport warnings\n\nfrom socket import error as SocketError, timeout as SocketTimeout\nimport socket\n\ntry: # Python 3\n from queue import LifoQueue, Empty, Full\nexcept ImportError:\n from Queue import LifoQueue, Empty, Full\n import Queue as _ ... | diff --git a/test/with_dummyserver/test_https.py b/test/with_dummyserver/test_https.py
index 12fa93086e..16ca58955d 100644
--- a/test/with_dummyserver/test_https.py
+++ b/test/with_dummyserver/test_https.py
@@ -330,6 +330,8 @@ def test_enhanced_ssl_connection(self):
https_pool._make_request(conn, 'GET', '/')
... |
scrapy__scrapy-1188 | Change the scrapy short description
The Scrapy short description says:
> Scrapy, a fast high-level screen scraping and web crawling framework.
I think would be better:
> Scrapy, a fast high-level web crawling and screen scraping framework.
Because it highlights first its difference with simple screen scraping tools... | [
{
"content": "from os.path import dirname, join\nfrom setuptools import setup, find_packages\n\n\nwith open(join(dirname(__file__), 'scrapy/VERSION'), 'rb') as f:\n version = f.read().decode('ascii').strip()\n\n\nsetup(\n name='Scrapy',\n version=version,\n url='http://scrapy.org',\n description=... | [
{
"content": "from os.path import dirname, join\nfrom setuptools import setup, find_packages\n\n\nwith open(join(dirname(__file__), 'scrapy/VERSION'), 'rb') as f:\n version = f.read().decode('ascii').strip()\n\n\nsetup(\n name='Scrapy',\n version=version,\n url='http://scrapy.org',\n description=... | diff --git a/README.rst b/README.rst
index 56bfad130fb..6ca5deb49f8 100644
--- a/README.rst
+++ b/README.rst
@@ -17,7 +17,7 @@ Scrapy
Overview
========
-Scrapy is a fast high-level web crawling and screen scraping framework, used to
+Scrapy is a fast high-level web crawling and web scraping framework, used to
craw... |
cookiecutter__cookiecutter-django-4382 | Add support for drone.io
## Description
[//]: # (What's it you're proposing? How should it be implemented?)
Drone.io support built-in
Add a .drone.yml file that allows projects to be tested/built using drone.io
## Rationale
[//]: # (Why should this feature be implemented?)
There are options for several ar... | [
{
"content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment\n (at least so we presume in `pre_gen_project.py`).\n\nTODO: restrict Cookiecutter Django project initia... | [
{
"content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment\n (at least so we presume in `pre_gen_project.py`).\n\nTODO: restrict Cookiecutter Django project initia... | diff --git a/cookiecutter.json b/cookiecutter.json
index 970a53795a..8b9ab773c9 100644
--- a/cookiecutter.json
+++ b/cookiecutter.json
@@ -39,7 +39,7 @@
"use_sentry": "n",
"use_whitenoise": "n",
"use_heroku": "n",
- "ci_tool": ["None", "Travis", "Gitlab", "Github"],
+ "ci_tool": ["None", "Travis", "Gitlab", ... |
django-cms__django-filer-1190 | By default, upload files into last used folder
Currently, if someone uploads a file using drag and drop on a widget, it is stored inside the special folder named "Unsorted Files". In large installations, this gives a bad user experience. One would expect such a file in the last used folder, which in django-filer is han... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\n\nfrom django.conf.urls import url\nfrom django.contrib import admin\nfrom django.forms.models import modelform_factory\nfrom django.http import JsonResponse\nfrom django.views.decorators.csrf import csrf_exempt\n\nfrom .. import set... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\n\nfrom django.conf.urls import url\nfrom django.contrib import admin\nfrom django.forms.models import modelform_factory\nfrom django.http import JsonResponse\nfrom django.views.decorators.csrf import csrf_exempt\n\nfrom .. import set... | diff --git a/filer/admin/clipboardadmin.py b/filer/admin/clipboardadmin.py
index bd76bd64f..499fdbc57 100644
--- a/filer/admin/clipboardadmin.py
+++ b/filer/admin/clipboardadmin.py
@@ -73,13 +73,14 @@ def ajax_upload(request, folder_id=None):
"""
Receives an upload from the uploader. Receives only one file at... |
pyqtgraph__pyqtgraph-1067 | SciPy in requirements in README but not in install_requires
Hey!
I'm wondering why SciPy is listed as a requirement in README but not in setup.py install_require argument.
Cheers,
Mike
| [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n## Add path to library (just for examples; you do not need this)\nimport initExample\n\n\nfrom scipy import random\nfrom numpy import linspace\nfrom pyqtgraph.Qt import QtGui, QtCore\nimport pyqtgraph as pg\nfrom pyqtgraph import MultiPlotWidget\ntry:\n ... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n## Add path to library (just for examples; you do not need this)\nimport initExample\n\nimport numpy as np\nfrom numpy import linspace\nfrom pyqtgraph.Qt import QtGui, QtCore\nimport pyqtgraph as pg\nfrom pyqtgraph import MultiPlotWidget\ntry:\n from ... | diff --git a/README.md b/README.md
index 28143078ec..914523fd34 100644
--- a/README.md
+++ b/README.md
@@ -22,8 +22,9 @@ Requirements
* PyQt 4.8+, PySide, PyQt5, or PySide2
* python 2.7, or 3.x
* Required
- * `numpy`, `scipy`
+ * `numpy`
* Optional
+ * `scipy` for image processing
* `pyopengl` for 3D graphics... |
pyca__cryptography-1554 | raises_unsupported_algorithm gives very unhelpful errors
When the error tag is wrong you get errors along the lines of `assert <object object at 0xf0000000> is not <object object as 0xb0000000>`. This is not very helpful, it's not even particularly obvious that the error tag is actually what's wrong until you go and re... | [
{
"content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\n\nclass _Reasons(object):\n BACKEND_MISSIN... | [
{
"content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nfrom enum import Enum\n\n\nclass _Reasons(Enu... | diff --git a/src/cryptography/exceptions.py b/src/cryptography/exceptions.py
index b0e1a9935af5..102165c73c3c 100644
--- a/src/cryptography/exceptions.py
+++ b/src/cryptography/exceptions.py
@@ -4,17 +4,19 @@
from __future__ import absolute_import, division, print_function
-
-class _Reasons(object):
- BACKEND_M... |
HypothesisWorks__hypothesis-1025 | Importing hypothesis mutates global warnings state
`hypothesis.errors` mutates the global warnings state:
https://github.com/HypothesisWorks/hypothesis-python/blob/master/src/hypothesis/errors.py#L182
This causes hypothesis to override any warnings settings that have already been applied. E.g., setting PYTHONWARN... | [
{
"content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2017 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f... | [
{
"content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2017 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f... | diff --git a/RELEASE.rst b/RELEASE.rst
new file mode 100644
index 0000000000..430651719b
--- /dev/null
+++ b/RELEASE.rst
@@ -0,0 +1,8 @@
+RELEASE_TYPE: minor
+
+:exc:`~hypothesis.errors.HypothesisDeprecationWarning` now inherits from
+:exc:`python:FutureWarning` instead of :exc:`python:DeprecationWarning`,
+as recommen... |
ivy-llc__ivy-21042 | gumble_softmax
add mindspore gumble_softmax
- [gumble_softmax] #21042
| [
{
"content": "\"\"\"Includes Mindspore Frontend functions listed in the TODO list\nhttps://github.com/unifyai/ivy/issues/14951.\"\"\"\n\n# local\nimport ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back\n\n\ndef _broadcast_po... | [
{
"content": "\"\"\"Includes Mindspore Frontend functions listed in the TODO list\nhttps://github.com/unifyai/ivy/issues/14951.\"\"\"\n\n# local\nimport ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back\n\n\ndef _broadcast_po... | diff --git a/ivy/functional/frontends/mindspore/ops/function/nn_func.py b/ivy/functional/frontends/mindspore/ops/function/nn_func.py
index 0fbbadd2ac6c7..fefe80f1b9f88 100644
--- a/ivy/functional/frontends/mindspore/ops/function/nn_func.py
+++ b/ivy/functional/frontends/mindspore/ops/function/nn_func.py
@@ -238,3 +238,... |
qtile__qtile-2377 | The max_chars key of CurrentLayout widget has no effect.
# Issue description
I'd like to prevent my bar to adjust when the layout changes in the CurrentLayout widget.
Since ae282e38, the max_chars key is available for CurrentLayout widget.
So I tried to use 'max_chars=2' but the layout name is not truncated as exp... | [
{
"content": "# Copyright (c) 2008-2010 Aldo Cortesi\n# Copyright (c) 2011 Florian Mounier\n# Copyright (c) 2011 Kenji_Takahashi\n# Copyright (c) 2011 Paul Colomiets\n# Copyright (c) 2012 roger\n# Copyright (c) 2012 Craig Barnes\n# Copyright (c) 2012-2015 Tycho Andersen\n# Copyright (c) 2013 dequis\n# Copyright... | [
{
"content": "# Copyright (c) 2008-2010 Aldo Cortesi\n# Copyright (c) 2011 Florian Mounier\n# Copyright (c) 2011 Kenji_Takahashi\n# Copyright (c) 2011 Paul Colomiets\n# Copyright (c) 2012 roger\n# Copyright (c) 2012 Craig Barnes\n# Copyright (c) 2012-2015 Tycho Andersen\n# Copyright (c) 2013 dequis\n# Copyright... | diff --git a/libqtile/widget/base.py b/libqtile/widget/base.py
index d084afb912..ab08645e27 100644
--- a/libqtile/widget/base.py
+++ b/libqtile/widget/base.py
@@ -357,6 +357,8 @@ def text(self):
@text.setter
def text(self, value):
+ if len(value) > self.max_chars > 0:
+ value = value[:self... |
wagtail__wagtail-5138 | Crash when moving a page from one parent to another where there is an already existing page with the same slug
### Issue Summary
Hi,
I get a crash when moving a page from a parent to another one where there is already a page with the same slug.
### Steps to Reproduce
1) Create a page P1 with a slug "test"
2)... | [
{
"content": "from time import time\n\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import PermissionDenied\nfrom django.db import transaction\nfrom django.db.models import Count\nfrom django.http import Http404, HttpResponse, JsonResponse\nfrom django.http.request imp... | [
{
"content": "from time import time\n\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import PermissionDenied\nfrom django.db import transaction\nfrom django.db.models import Count\nfrom django.http import Http404, HttpResponse, JsonResponse\nfrom django.http.request imp... | diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 57e8649ee7a0..8c2cb2bbaec9 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -34,6 +34,7 @@ Changelog
* Fix: Page copying no longer allowed if page model has reached its `max_count` (Andy Babic)
* Fix: Don't show page type on page chooser button when multiple types a... |
huggingface__accelerate-680 | How to set the torch elastic params (e.g., max_restarts)?
Hi All,
I am using `torch==1.9.0` and `accelerate=0.9.0`
I use the following to start my training script:
`accelerate launch --multi_gpu --mixed_precision=fp16 --num_machines 1 --num_processes 8 train.py`
As seen, the training runs in a single machine... | [
{
"content": "#!/usr/bin/env python\n\n# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.or... | [
{
"content": "#!/usr/bin/env python\n\n# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.or... | diff --git a/src/accelerate/commands/launch.py b/src/accelerate/commands/launch.py
index c7f235843c2..fad42792d62 100644
--- a/src/accelerate/commands/launch.py
+++ b/src/accelerate/commands/launch.py
@@ -270,6 +270,25 @@ def launch_command_parser(subparsers=None):
default=None,
help="The port to use ... |
ddionrails__ddionrails-625 | Run system management command not in queue
### Subject of the issue
Do not use the rqworker for the `python manage.py system` command. It runs a single git pull/clone, copies a single and imports a single csv file. This can be done without the rqworker.
This is an issue, when starting the web container, which run... | [
{
"content": "import logging\nimport os\nimport re\nimport shutil\nfrom collections import OrderedDict\nfrom pathlib import Path\n\nimport django_rq\nfrom django.conf import settings\n\nfrom config.helpers import script_list, script_list_output\nfrom ddionrails.concepts.imports import (\n AnalysisUnitImport,... | [
{
"content": "import logging\nimport os\nimport re\nimport shutil\nfrom collections import OrderedDict\nfrom pathlib import Path\n\nimport django_rq\nfrom django.conf import settings\n\nfrom config.helpers import script_list, script_list_output\nfrom ddionrails.concepts.imports import (\n AnalysisUnitImport,... | diff --git a/ddionrails/imports/manager.py b/ddionrails/imports/manager.py
index 803a41570..bc299613d 100644
--- a/ddionrails/imports/manager.py
+++ b/ddionrails/imports/manager.py
@@ -139,15 +139,12 @@ def run_import(self):
"""
Run the system import.
"""
-
- base_dir = Path(
- ... |
oppia__oppia-7996 | Exploration Cards Show "Invalid date" as date
**Describe the bug**
In the library, exploration cards have `Invalid date` in the lower right-hand corner.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to https://oppiatestserver.appspot.com/library
**Observed behavior**
The exploration cards show `Inv... | [
{
"content": "# Copyright 2019 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 2019 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/templates/dev/head/pages/collection-editor-page/navbar/collection-editor-navbar.directive.html b/core/templates/dev/head/pages/collection-editor-page/navbar/collection-editor-navbar.directive.html
index 9c32a67a800cd..c4be68cbf1eec 100644
--- a/core/templates/dev/head/pages/collection-editor-page/navb... |
rotki__rotki-1280 | How to remove OCEAN from unsupported Bittrex assets?
OCEAN token is currently on rotki's [`UNSUPPORTED_BITTREX_ASSETS`](https://github.com/rotki/rotki/blob/a37d9556d3efbcaf785499febf6b7ad6979da126/rotkehlchen/assets/converters.py#L349-L352). In #1237, I've added it to `data/all_assets.json `.
May I simply remove its... | [
{
"content": "from typing import Optional\n\nfrom rotkehlchen.assets.asset import (\n WORLD_TO_BINANCE,\n WORLD_TO_BITTREX,\n WORLD_TO_KRAKEN,\n WORLD_TO_POLONIEX,\n Asset,\n)\nfrom rotkehlchen.constants.assets import A_DAI, A_SAI\nfrom rotkehlchen.constants.cryptocompare import WORLD_TO_CRYPTOCO... | [
{
"content": "from typing import Optional\n\nfrom rotkehlchen.assets.asset import (\n WORLD_TO_BINANCE,\n WORLD_TO_BITTREX,\n WORLD_TO_KRAKEN,\n WORLD_TO_POLONIEX,\n Asset,\n)\nfrom rotkehlchen.constants.assets import A_DAI, A_SAI\nfrom rotkehlchen.constants.cryptocompare import WORLD_TO_CRYPTOCO... | diff --git a/rotkehlchen/assets/converters.py b/rotkehlchen/assets/converters.py
index ec19f90e89..6d6d4bc042 100644
--- a/rotkehlchen/assets/converters.py
+++ b/rotkehlchen/assets/converters.py
@@ -348,10 +348,6 @@
# Only exists in bittrex. Perhaps it will soon be added to other APIs.
# https://international... |
pyca__cryptography-513 | KDF Interfaces
Who has opinions? This is relevant for HKDF in #490 and upcoming PBKDF2.
Here's a straw man to knock down:
``` python
# This API is a bit challenging since each KDF has different features
# (salt/no salt, maximum time, output length, iteration count, etc)
kdf = PBKDF2(iterations, digest, backend)
key... | [
{
"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, so... | [
{
"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, so... | diff --git a/cryptography/exceptions.py b/cryptography/exceptions.py
index 2654b45319d8..e2542a1fdc68 100644
--- a/cryptography/exceptions.py
+++ b/cryptography/exceptions.py
@@ -38,3 +38,7 @@ class InvalidSignature(Exception):
class InternalError(Exception):
pass
+
+
+class InvalidKey(Exception):
+ pass
dif... |
falconry__falcon-923 | DELETE methods don't parse the form parameters into their query string
Commit b36ffe6 removed the auto-parsing of form parameters into the query string for requests other than `POST`. Commit da0eec2 re-enabled it for `PUT` and `PATCH` requests. In my app (Mailman3) I also have `DELETE` methods that use form data and ar... | [
{
"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, so... | [
{
"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, so... | diff --git a/CHANGES.rst b/CHANGES.rst
index 447333cd8..4dd5d399b 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -64,10 +64,10 @@ Fixed
- When ``auto_parse_form_urlencoded`` is set to ``True``, the
framework now checks the HTTP method before attempting to consume and
parse the body.
-- Before attempting to read a... |
crytic__slither-1772 | [Bug]: Assigning to array literal (len==1) to state variable results in invalid IR operation
### Describe the issue:
When assigning an array literal to a state variable works fine when the array literal has at least two elements.
For example:
`arr = [1,2]` results in the IR operation `arr(uint256[]) = ['1', '2']`.... | [
{
"content": "import logging\nfrom typing import Union, List, TYPE_CHECKING\n\nfrom slither.core.declarations import (\n Function,\n SolidityVariable,\n SolidityVariableComposed,\n SolidityFunction,\n Contract,\n)\nfrom slither.core.declarations.enum import Enum\nfrom slither.core.expressions imp... | [
{
"content": "import logging\nfrom typing import Union, List, TYPE_CHECKING\n\nfrom slither.core.declarations import (\n Function,\n SolidityVariable,\n SolidityVariableComposed,\n SolidityFunction,\n Contract,\n)\nfrom slither.core.declarations.enum import Enum\nfrom slither.core.expressions imp... | diff --git a/slither/visitors/slithir/expression_to_slithir.py b/slither/visitors/slithir/expression_to_slithir.py
index c150ee20be..3a975939ab 100644
--- a/slither/visitors/slithir/expression_to_slithir.py
+++ b/slither/visitors/slithir/expression_to_slithir.py
@@ -220,6 +220,12 @@ def _post_assignement_operation(self... |
crytic__slither-1761 | [Bug]: Assigning to array literal (len==1) to state variable results in invalid IR operation
### Describe the issue:
When assigning an array literal to a state variable works fine when the array literal has at least two elements.
For example:
`arr = [1,2]` results in the IR operation `arr(uint256[]) = ['1', '2']`.... | [
{
"content": "import logging\nfrom typing import Union, List, TYPE_CHECKING\n\nfrom slither.core.declarations import (\n Function,\n SolidityVariable,\n SolidityVariableComposed,\n SolidityFunction,\n Contract,\n)\nfrom slither.core.declarations.enum import Enum\nfrom slither.core.expressions imp... | [
{
"content": "import logging\nfrom typing import Union, List, TYPE_CHECKING\n\nfrom slither.core.declarations import (\n Function,\n SolidityVariable,\n SolidityVariableComposed,\n SolidityFunction,\n Contract,\n)\nfrom slither.core.declarations.enum import Enum\nfrom slither.core.expressions imp... | diff --git a/slither/visitors/slithir/expression_to_slithir.py b/slither/visitors/slithir/expression_to_slithir.py
index c150ee20be..3a975939ab 100644
--- a/slither/visitors/slithir/expression_to_slithir.py
+++ b/slither/visitors/slithir/expression_to_slithir.py
@@ -220,6 +220,12 @@ def _post_assignement_operation(self... |
pyinstaller__pyinstaller-8025 | Libraries packaged in unexpected location when using `python` installed via `scoop`
## Description of the issue
The following example code fails on my system:
`bug.py`
```python
# pyinstaller --onefile bug.py && dist\bug.exe
import matplotlib
```
The output is:
```
C:\Build\project>dist\bug.exe
Tracebac... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2013-2023, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2013-2023, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens... | diff --git a/PyInstaller/depend/bindepend.py b/PyInstaller/depend/bindepend.py
index b47ca5cb47..b83bebb2c8 100644
--- a/PyInstaller/depend/bindepend.py
+++ b/PyInstaller/depend/bindepend.py
@@ -61,9 +61,12 @@ def _get_paths_for_parent_directory_preservation():
orig_paths.append(site.getusersitepackages())
... |
kornia__kornia-2132 | Round trip `torch.save` / `torch.load` not working for `Hyperplane`
### Describe the bug
Crashing when trying to save and reload a `Hyperplane` using `torch`:
```
Traceback (most recent call last):
File "save_hyperplane.py", line 16, in <module>
plane = torch.load("./saved_plane.pt")
File "/home/kyle/... | [
{
"content": "# pytorch tensor wrapper class\n# insipired by:\n# https://github.com/pytorch/pytorch/blob/591dfffa38848de54b7f5f4e49260847024c9281/test/test_overrides.py#L748\nimport collections\nfrom typing import Any\n\nimport torch\nfrom torch import Tensor\n\n# wrap inputs if necessary\n\n# TODO: promote to ... | [
{
"content": "# pytorch tensor wrapper class\n# insipired by:\n# https://github.com/pytorch/pytorch/blob/591dfffa38848de54b7f5f4e49260847024c9281/test/test_overrides.py#L748\nimport collections\nfrom typing import Any\n\nimport torch\nfrom torch import Tensor\n\n# wrap inputs if necessary\n\n# TODO: promote to ... | diff --git a/kornia/core/tensor_wrapper.py b/kornia/core/tensor_wrapper.py
index 029f403cfa..dd327d43b2 100644
--- a/kornia/core/tensor_wrapper.py
+++ b/kornia/core/tensor_wrapper.py
@@ -35,15 +35,22 @@ def __init__(self, data: Tensor) -> None:
self.__dict__["used_attrs"] = set()
self.__dict__["used_c... |
raspiblitz__raspiblitz-1787 | RC1 only allow one letsencrypt subscription at a time
On my test machine I had two letsencrypt domains that were messing up after a recovery. Best would be to allow just one letsencrypt at a time at the moment.
| [
{
"content": "#!/usr/bin/python3\n\nimport json\nimport os\nimport subprocess\nimport sys\nimport time\nimport re\nfrom datetime import datetime\nfrom pathlib import Path\n\nimport requests\nimport toml\nfrom blitzpy import RaspiBlitzConfig,BlitzError\n\n#####################\n# SCRIPT INFO\n###################... | [
{
"content": "#!/usr/bin/python3\n\nimport json\nimport os\nimport subprocess\nimport sys\nimport time\nimport re\nfrom datetime import datetime\nfrom pathlib import Path\n\nimport requests\nimport toml\nfrom blitzpy import RaspiBlitzConfig,BlitzError\n\n#####################\n# SCRIPT INFO\n###################... | diff --git a/home.admin/config.scripts/blitz.subscriptions.letsencrypt.py b/home.admin/config.scripts/blitz.subscriptions.letsencrypt.py
index 6f9a4380c..d5c8b13ee 100755
--- a/home.admin/config.scripts/blitz.subscriptions.letsencrypt.py
+++ b/home.admin/config.scripts/blitz.subscriptions.letsencrypt.py
@@ -208,6 +208,... |
jupyterhub__jupyterhub-215 | The 'user' trait of a SingleUserNotebookApp instance must be a unicode string, but a value of 1384482<class 'int'> was specified.
I'm using the `SudoSpawner` in combination with Active Directory+PAM based authentication. This results in users being created on the Linux server with numeric IDs that map to AD users. This... | [
{
"content": "#!/usr/bin/env python\n\"\"\"Extend regular notebook server to be aware of multiuser things.\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport os\nfrom urllib.parse import quote\n\nimport requests\n\nfrom tornado import ioloop\... | [
{
"content": "#!/usr/bin/env python\n\"\"\"Extend regular notebook server to be aware of multiuser things.\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport os\nfrom urllib.parse import quote\n\nimport requests\n\nfrom tornado import ioloop\... | diff --git a/jupyterhub/singleuser.py b/jupyterhub/singleuser.py
index cc29faf139..600512a4a4 100644
--- a/jupyterhub/singleuser.py
+++ b/jupyterhub/singleuser.py
@@ -15,6 +15,7 @@
from IPython.utils.traitlets import (
Integer,
Unicode,
+ CUnicode,
)
from IPython.html.notebookapp import NotebookApp
@@... |
OCA__stock-logistics-warehouse-1247 | [12.0] stock_secondary_unit "secondary qty" value in picking not affecting "initial demand"
AFFECTED VERSIONS
12.0 (it works ok on 13.0)
STEPS TO REPRODUCE
Activate Units of Measure in general settings > inventory
Inventory > Master Data > Products > Set a secondary unit in a product
.\nfrom odoo import api, fields, models\nfrom odoo.addons import decimal_precision as dp\nfrom odoo.tools.float_utils import float_compare, float_round\n\n\nclass StockSecondaryUnitMixin(mode... | [
{
"content": "# Copyright 2018 Tecnativa - Sergio Teruel\n# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).\nfrom odoo import api, fields, models\nfrom odoo.addons import decimal_precision as dp\nfrom odoo.tools.float_utils import float_compare, float_round\n\n\nclass StockSecondaryUnitMixin(mode... | diff --git a/stock_secondary_unit/models/stock_move.py b/stock_secondary_unit/models/stock_move.py
index 1c05a80afff3..6d89cee30943 100644
--- a/stock_secondary_unit/models/stock_move.py
+++ b/stock_secondary_unit/models/stock_move.py
@@ -96,3 +96,21 @@ def create(self, vals):
'secondary_uom_id': move.... |
CTFd__CTFd-1233 | Theme reset from CLI
There needs to be a way to reset the theme and other kinds of unrecoverable errors from the CLI.
Context: https://community.majorleaguecyber.org/t/ctfd-templatenotfound/51
| [
{
"content": "from flask import Flask\nfrom flask_sqlalchemy import SQLAlchemy\nfrom flask_script import Manager\nfrom flask_migrate import Migrate, MigrateCommand\nfrom CTFd import create_app\nfrom CTFd.models import *\n\napp = create_app()\n\nmanager = Manager(app)\nmanager.add_command('db', MigrateCommand)\n... | [
{
"content": "from flask import Flask\nfrom flask_sqlalchemy import SQLAlchemy\nfrom flask_script import Manager\nfrom flask_migrate import Migrate, MigrateCommand\nfrom CTFd import create_app\nfrom CTFd.utils import get_config as get_config_util, set_config as set_config_util\nfrom CTFd.models import *\n\napp ... | diff --git a/manage.py b/manage.py
index 09c9943ec..b0e99a689 100644
--- a/manage.py
+++ b/manage.py
@@ -3,6 +3,7 @@
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from CTFd import create_app
+from CTFd.utils import get_config as get_config_util, set_config as set_config_util
fro... |
CiviWiki__OpenCiviWiki-1493 | Reimplement user categories feature
We recently removed some features from the user Profile view and now want to reimplement them using only Django.
This task will be to add a "categories" field to the User Profile ("settings") view).
## Task
All of these tasks should be done in the `accounts` app.
- [ ] de... | [
{
"content": "\"\"\"\nClass based views.\n\nThis module will include views for the accounts app.\n\"\"\"\n\nfrom accounts.authentication import account_activation_token, send_activation_email\nfrom accounts.forms import ProfileEditForm, UserRegistrationForm\nfrom accounts.models import Profile\nfrom django.conf... | [
{
"content": "\"\"\"\nClass based views.\n\nThis module will include views for the accounts app.\n\"\"\"\n\nfrom accounts.authentication import account_activation_token, send_activation_email\nfrom accounts.forms import ProfileEditForm, UserRegistrationForm\nfrom accounts.models import Profile\nfrom django.conf... | diff --git a/project/accounts/templates/accounts/account.html b/project/accounts/templates/accounts/account.html
index ccaef68e..c8b98b85 100644
--- a/project/accounts/templates/accounts/account.html
+++ b/project/accounts/templates/accounts/account.html
@@ -3,9 +3,9 @@
{% load i18n %}
{% block extra_css %}
-<link ... |
paperless-ngx__paperless-ngx-3218 | [BUG] ALLOWED_HOSTS set to [PAPERLESS_URL, "localhost"] despite PAPERLESS_ALLOWED_HOSTS=* causing K8s healthchecks from Pod IP to fail
### Description
## Problem
My deployment of `paperless-ngx` runs on Kubernetes with the following health check configuration:
```yaml
startupProbe:
tcpSocket:
... | [
{
"content": "import datetime\nimport json\nimport math\nimport multiprocessing\nimport os\nimport re\nimport tempfile\nfrom os import PathLike\nfrom pathlib import Path\nfrom typing import Dict\nfrom typing import Final\nfrom typing import List\nfrom typing import Optional\nfrom typing import Set\nfrom typing ... | [
{
"content": "import datetime\nimport json\nimport math\nimport multiprocessing\nimport os\nimport re\nimport tempfile\nfrom os import PathLike\nfrom pathlib import Path\nfrom typing import Dict\nfrom typing import Final\nfrom typing import List\nfrom typing import Optional\nfrom typing import Set\nfrom typing ... | diff --git a/docs/configuration.md b/docs/configuration.md
index bde170e5cfb..cb5af9d8661 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -322,8 +322,7 @@ You can read more about this in [the Django project's documentation](https://doc
Can also be set using PAPERLESS_URL (see above).
- If ... |
voxel51__fiftyone-4533 | [FR] Support Ubuntu 24.04
### Proposal Summary
Support [Ubuntu 24.04](https://releases.ubuntu.com/noble/).
### Motivation
For all users eager to work with the latest Ubuntu release, they would see Fiftyone fail because `MongoDB` could not be installed on your system. [MongoDB](https://www.mongodb.com/docs/manu... | [
{
"content": "#!/usr/bin/env python\n\"\"\"\nInstalls the ``fiftyone-db`` package.\n\n| Copyright 2017-2024, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport csv\nimport os\nimport pathlib\nimport platform\nimport shutil\nimport tarfile\nimport traceback\nimport zipfile\n\nfrom setuptoo... | [
{
"content": "#!/usr/bin/env python\n\"\"\"\nInstalls the ``fiftyone-db`` package.\n\n| Copyright 2017-2024, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport csv\nimport os\nimport pathlib\nimport platform\nimport shutil\nimport tarfile\nimport traceback\nimport zipfile\n\nfrom setuptoo... | diff --git a/.github/workflows/build-db.yml b/.github/workflows/build-db.yml
index c3a5a64219a..d252c4fd7f7 100644
--- a/.github/workflows/build-db.yml
+++ b/.github/workflows/build-db.yml
@@ -66,9 +66,10 @@ jobs:
python -Im build --sdist
- name: Upload
uses: actions/upload-artifact@v3
+ ... |
django-import-export__django-import-export-313 | Failure on Django 1.7+ with `django.db.models.fields.related.RelatedManager`
We're trying to upgrade from Django 1.6 to 1.7 (and then to 1.8).
My tests fail with:
```
File "/home/roger/.virtualenvs/fdw/local/lib/python2.7/site-packages/import_export/resources.py", line 383, in import_data
real_dry_run)
File "... | [
{
"content": "from __future__ import unicode_literals\n\nfrom . import widgets\n\nfrom django.core.exceptions import ObjectDoesNotExist\n\n\nclass Field(object):\n \"\"\"\n Field represent mapping between `object` field and representation of\n this field.\n\n ``attribute`` string of either an instan... | [
{
"content": "from __future__ import unicode_literals\n\nfrom . import widgets\n\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db.models.manager import Manager\n\n\nclass Field(object):\n \"\"\"\n Field represent mapping between `object` field and representation of\n this field.\n... | diff --git a/import_export/fields.py b/import_export/fields.py
index bee8a6adf..3bf7df344 100644
--- a/import_export/fields.py
+++ b/import_export/fields.py
@@ -3,6 +3,7 @@
from . import widgets
from django.core.exceptions import ObjectDoesNotExist
+from django.db.models.manager import Manager
class Field(obje... |
voxel51__fiftyone-1838 | [BUG] loading segmentation torch models errror, has no attribute 'load_state_dict_from_url'
### System information
- **OS Platform and Distribution**: `Ubuntu 20.04`
- **FiftyOne installed from (pip or source)**: `pip`, from within `conda` environment
- **FiftyOne version (run `fiftyone --version`)**: `Fifty... | [
{
"content": "\"\"\"\nFiftyOne Zoo models provided by :mod:`torchvision:torchvision.models`.\n\n| Copyright 2017-2022, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport inspect\n\nimport eta.core.utils as etau\n\nimport fiftyone as fo\nimport fiftyone.core.utils as fou\nimport fiftyone.u... | [
{
"content": "\"\"\"\nFiftyOne Zoo models provided by :mod:`torchvision:torchvision.models`.\n\n| Copyright 2017-2022, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nimport inspect\nfrom packaging import version\n\nimport eta.core.utils as etau\n\nimport fiftyone as fo\nimport fiftyone.core.... | diff --git a/fiftyone/zoo/models/manifest-torch.json b/fiftyone/zoo/models/manifest-torch.json
index 0dc8e84cba4..11c99a72bc3 100644
--- a/fiftyone/zoo/models/manifest-torch.json
+++ b/fiftyone/zoo/models/manifest-torch.json
@@ -61,7 +61,7 @@
"default_deployment_config_dict": {
"type": "fi... |
learningequality__kolibri-2093 | importchannel command is broken
## Summary
* `importchannel` command is broken
## System information
- Version: 0.6
- Operating system: Linux
```
kolibri manage importchannel -- network bcd99d8aeef04ce6b9e25a88d87eedb7
INFO Downloading data for channel id bcd99d8aeef04ce6b9e25a88d87eedb7
0%| ... | [
{
"content": "import abc\nfrom collections import namedtuple\n\nfrom barbequeue.exceptions import UserCancelledError\nfrom django.core.management.base import BaseCommand\nfrom tqdm import tqdm\n\nProgress = namedtuple(\n 'Progress',\n [\n 'progress_fraction',\n 'message',\n 'extra_dat... | [
{
"content": "import abc\nfrom collections import namedtuple\n\nfrom barbequeue.exceptions import UserCancelledError\nfrom django.core.management.base import BaseCommand\nfrom tqdm import tqdm\n\nProgress = namedtuple(\n 'Progress',\n [\n 'progress_fraction',\n 'message',\n 'extra_dat... | diff --git a/kolibri/tasks/management/commands/base.py b/kolibri/tasks/management/commands/base.py
index 43d7c1b2cf4..dcc357c1668 100644
--- a/kolibri/tasks/management/commands/base.py
+++ b/kolibri/tasks/management/commands/base.py
@@ -104,14 +104,17 @@ def start_progress(self, total=100):
return tracker
... |
streamlink__streamlink-562 | 0.3.2 Release
Closes #562
| [
{
"content": "# coding: utf8\n\"\"\"Streamlink extracts streams from various services.\n\nThe main compontent of Streamlink is a command-line utility that\nlaunches the streams in a video player.\n\nAn API is also provided that allows direct access to stream data.\n\nFull documentation is available at https://s... | [
{
"content": "# coding: utf8\n\"\"\"Streamlink extracts streams from various services.\n\nThe main compontent of Streamlink is a command-line utility that\nlaunches the streams in a video player.\n\nAn API is also provided that allows direct access to stream data.\n\nFull documentation is available at https://s... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 42b0f487415..0256e80081f 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,3 +1,34 @@
+streamlink 0.3.2 (2017-02-10)
+-----------------------------
+0.3.2 release of Streamlink!
+
+A minor bug release of 0.3.2 to fix a few issues with stream providers.
+
+Thanks to a... |
getsentry__snuba-3697 | About the sessions-subscription-results subscription issue
### Environment
- sentry | snuba version :23.1.1
https://github.com/getsentry/snuba/pull/2737 ,@lynnagara Hello, I have a question about this pr, hope to get your answer, thank you very much
- After removing subscriptions-scheduler-executor-session sup... | [
{
"content": "import signal\nfrom contextlib import contextmanager\nfrom typing import Any, Iterator, Optional, Sequence\n\nimport click\nfrom arroyo import configure_metrics\nfrom arroyo.backends.kafka import KafkaProducer\n\nfrom snuba import environment, state\nfrom snuba.attribution.log import flush_attribu... | [
{
"content": "import signal\nfrom contextlib import contextmanager\nfrom typing import Any, Iterator, Optional, Sequence\n\nimport click\nfrom arroyo import configure_metrics\nfrom arroyo.backends.kafka import KafkaProducer\n\nfrom snuba import environment, state\nfrom snuba.attribution.log import flush_attribu... | diff --git a/snuba/cli/subscriptions_scheduler_executor.py b/snuba/cli/subscriptions_scheduler_executor.py
index eac89e11432..5cc7fb22b7e 100644
--- a/snuba/cli/subscriptions_scheduler_executor.py
+++ b/snuba/cli/subscriptions_scheduler_executor.py
@@ -24,7 +24,7 @@
"--dataset",
"dataset_name",
required=... |
ytdl-org__youtube-dl-11787 | Cannot convert audio to mp3 while embedding thumbnail
## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to... | [
{
"content": "from __future__ import unicode_literals\n\nimport os.path\nimport optparse\nimport re\nimport sys\n\nfrom .downloader.external import list_external_downloaders\nfrom .compat import (\n compat_expanduser,\n compat_get_terminal_size,\n compat_getenv,\n compat_kwargs,\n compat_shlex_sp... | [
{
"content": "from __future__ import unicode_literals\n\nimport os.path\nimport optparse\nimport re\nimport sys\n\nfrom .downloader.external import list_external_downloaders\nfrom .compat import (\n compat_expanduser,\n compat_get_terminal_size,\n compat_getenv,\n compat_kwargs,\n compat_shlex_sp... | diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 0b8c1671da4..0d2ce8d1506 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -751,7 +751,7 @@ def _scrub_eq(o):
help='Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)')
postproc.add_opt... |
awslabs__gluonts-624 | mean_ts() has bug in class DistributionForecast & SampleForecast in forecast.py
## Description
mean_ts()
return pd.Series(self.index, self.mean)
Should be:
mean_ts()
return pd.Series(data=self.mean, index=self.index)
| [
{
"content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\").\n# You may not use this file except in compliance with the License.\n# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE... | [
{
"content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\").\n# You may not use this file except in compliance with the License.\n# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE... | diff --git a/src/gluonts/model/forecast.py b/src/gluonts/model/forecast.py
index 24ef05481a..dc50764769 100644
--- a/src/gluonts/model/forecast.py
+++ b/src/gluonts/model/forecast.py
@@ -390,7 +390,7 @@ def mean_ts(self):
"""
Forecast mean, as a pandas.Series object.
"""
- return pd.Se... |
encode__django-rest-framework-4049 | Support customized CSRF token cookie name
## Checklist
- [x] I have verified that that issue exists against the `master` branch of Django REST framework.
- [x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- [x] This is not a usage question. (Those should be directed to... | [
{
"content": "\"\"\"\nRenderers are used to serialize a response into specific media types.\n\nThey give us a generic way of being able to handle various media types\non the response, such as JSON encoded data or HTML output.\n\nREST framework also provides an HTML renderer that renders the browsable API.\n\"\"... | [
{
"content": "\"\"\"\nRenderers are used to serialize a response into specific media types.\n\nThey give us a generic way of being able to handle various media types\non the response, such as JSON encoded data or HTML output.\n\nREST framework also provides an HTML renderer that renders the browsable API.\n\"\"... | diff --git a/rest_framework/renderers.py b/rest_framework/renderers.py
index 68af417dad..53bbb1390a 100644
--- a/rest_framework/renderers.py
+++ b/rest_framework/renderers.py
@@ -12,6 +12,7 @@
from collections import OrderedDict
from django import forms
+from django.conf import settings
from django.core.exceptions... |
digitalfabrik__integreat-cms-553 | Permission edit_page not working for region users
### Describe the Bug
<!-- A clear and concise description of what the bug is. -->
The permission `edit_page` throws an error for region users when called on a non-existing page
### Steps to Reproduce
1. Login as region user (not superadmin or staff)
2. Click on... | [
{
"content": "\"\"\"\nWe use `django-rules <https://pypi.org/project/rules/>`_ to add custom permissions for specific pages.\n\nFor a given user and page, the following permissions are added:\n\n* ``cms.edit_page`` if one of the following predicates return true:\n\n * :func:`~cms.rules.can_edit_all_pages`\n ... | [
{
"content": "\"\"\"\nWe use `django-rules <https://pypi.org/project/rules/>`_ to add custom permissions for specific pages.\n\nFor a given user and page, the following permissions are added:\n\n* ``cms.edit_page`` if one of the following predicates return true:\n\n * :func:`~cms.rules.can_edit_all_pages`\n ... | diff --git a/src/cms/fixtures/roles.json b/src/cms/fixtures/roles.json
index 43c98973ab..96695959e7 100644
--- a/src/cms/fixtures/roles.json
+++ b/src/cms/fixtures/roles.json
@@ -18,7 +18,9 @@
18,
19,
20,
- 21
+ 21,
+ 22,
+ 23
]
}
},
diff --git a/src... |
pytorch__vision-8352 | yet another ssdlite link fix
<!-- Before submitting a PR, please make sure to check our contributing guidelines regarding code formatting, tests, and documentation: https://github.com/pytorch/vision/blob/main/CONTRIBUTING.md -->
| [
{
"content": "import warnings\nfrom collections import OrderedDict\nfrom functools import partial\nfrom typing import Any, Callable, Dict, List, Optional, Union\n\nimport torch\nfrom torch import nn, Tensor\n\nfrom ...ops.misc import Conv2dNormActivation\nfrom ...transforms._presets import ObjectDetection\nfrom... | [
{
"content": "import warnings\nfrom collections import OrderedDict\nfrom functools import partial\nfrom typing import Any, Callable, Dict, List, Optional, Union\n\nimport torch\nfrom torch import nn, Tensor\n\nfrom ...ops.misc import Conv2dNormActivation\nfrom ...transforms._presets import ObjectDetection\nfrom... | diff --git a/torchvision/models/detection/ssdlite.py b/torchvision/models/detection/ssdlite.py
index f16d46ad114..eda21bf941e 100644
--- a/torchvision/models/detection/ssdlite.py
+++ b/torchvision/models/detection/ssdlite.py
@@ -255,7 +255,7 @@ def ssdlite320_mobilenet_v3_large(
norm_layer (callable, optional)... |
encode__starlette-582 | UploadFile hogs RAM
Good day,
We are using FastAPI to access large (1GB) files through starlette UploadFile and we have noticed that all the file is loaded into RAM.
Looking at the code I see that starlette uses SpooledTemporaryFile, however it initializes it [1] with default parameters, namely `max_size=0`. The ... | [
{
"content": "import tempfile\nimport typing\nfrom collections import namedtuple\nfrom collections.abc import Sequence\nfrom shlex import shlex\nfrom urllib.parse import SplitResult, parse_qsl, urlencode, urlsplit\n\nfrom starlette.concurrency import run_in_threadpool\nfrom starlette.types import Scope\n\nAddre... | [
{
"content": "import tempfile\nimport typing\nfrom collections import namedtuple\nfrom collections.abc import Sequence\nfrom shlex import shlex\nfrom urllib.parse import SplitResult, parse_qsl, urlencode, urlsplit\n\nfrom starlette.concurrency import run_in_threadpool\nfrom starlette.types import Scope\n\nAddre... | diff --git a/starlette/datastructures.py b/starlette/datastructures.py
index 2bb268d37..ae23e2373 100644
--- a/starlette/datastructures.py
+++ b/starlette/datastructures.py
@@ -419,13 +419,15 @@ class UploadFile:
An uploaded file included as part of the request data.
"""
+ spool_max_size = 1024 * 1024
+
... |
vispy__vispy-2111 | LineVisual line smooth and width set after GL state is configured
In #2082 @almarklein updated the line visual to call `self.update_gl_state` to change `line_smooth` and `line_width`. The problem is, as I just realized while debugging #2107, that `update_gl_state` doesn't have an immediate effect on GL state. Only when... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (c) Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\"\"\"\n\nDefinitions\n===========\n\nVisual : an object that (1) can be drawn on-screen, (2) can be manipulated\nby configuring the coo... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (c) Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\"\"\"\n\nDefinitions\n===========\n\nVisual : an object that (1) can be drawn on-screen, (2) can be manipulated\nby configuring the coo... | diff --git a/vispy/visuals/visual.py b/vispy/visuals/visual.py
index 4213e3455e..11e00d1aa4 100644
--- a/vispy/visuals/visual.py
+++ b/vispy/visuals/visual.py
@@ -439,13 +439,14 @@ def _index_buffer(self, buf):
def draw(self):
if not self.visible:
return
- self._configure_gl_state()
... |
Lightning-AI__pytorch-lightning-3751 | The total number of batches shows by the progress bar of the sanity check is wrong
## 🐛 Bug
The `total` of the sanity check progress bar is set by
https://github.com/PyTorchLightning/pytorch-lightning/blob/4d0406ec8bf1c9147b34eb607411b78a9cd28243/pytorch_lightning/callbacks/progress.py#L296
The progress bar will ... | [
{
"content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ... | [
{
"content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c76175858f42e..6da61b6098c6a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -85,9 +85,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Fixed determinism in `DDPSpawnBackend` when using `seed_everything` in main process ([#3335](ht... |
quantumlib__Cirq-4770 | Gateset containership, subcircuits with negative reps
**Description of the issue**
Subcircuits allow negative repetitions, which cause each gate to be inverted. This inversion is not performed when gatesets iterate the subcircuit.
**How to reproduce the issue**
```python
def test_gateset_contains():
gate... | [
{
"content": "# Copyright 2021 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | [
{
"content": "# Copyright 2021 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | diff --git a/cirq-core/cirq/ops/gateset.py b/cirq-core/cirq/ops/gateset.py
index 7d0e47d032f..43ef71026ee 100644
--- a/cirq-core/cirq/ops/gateset.py
+++ b/cirq-core/cirq/ops/gateset.py
@@ -392,13 +392,7 @@ def _validate_operation(self, op: raw_types.Operation) -> bool:
if isinstance(op, raw_types.TaggedOperati... |
sonic-net__sonic-utilities-1988 | [GCU] PatchSorter.sort can generate different correct sorted steps for the same input -- always generate same steps
#### Description
When running the unit-test `REMOVING_CREATE_ONLY_FIELD__SUCCESS` it generates different results with each run.
Note: The flag `skip_exact_change_list_match` is getting adding in this ... | [
{
"content": "import json\nimport jsonpatch\nfrom jsonpointer import JsonPointer\nimport sonic_yang\nimport subprocess\nimport yang as ly\nimport copy\nimport re\nfrom sonic_py_common import logger\nfrom enum import Enum\n\nYANG_DIR = \"/usr/local/yang-models\"\nSYSLOG_IDENTIFIER = \"GenericConfigUpdater\"\n\nc... | [
{
"content": "import json\nimport jsonpatch\nfrom jsonpointer import JsonPointer\nimport sonic_yang\nimport subprocess\nimport yang as ly\nimport copy\nimport re\nfrom sonic_py_common import logger\nfrom enum import Enum\n\nYANG_DIR = \"/usr/local/yang-models\"\nSYSLOG_IDENTIFIER = \"GenericConfigUpdater\"\n\nc... | diff --git a/generic_config_updater/gu_common.py b/generic_config_updater/gu_common.py
index d7eef0f1b1..7fd45f618e 100644
--- a/generic_config_updater/gu_common.py
+++ b/generic_config_updater/gu_common.py
@@ -414,11 +414,14 @@ def _find_leafref_paths(self, path, config):
ref_xpaths.extend(sy.find_data_de... |
litestar-org__litestar-3179 | Bug: CORS Middleware not setting all headers as per spec
### Description
Right now, there's only a handful of headers that are only being set for the preflight request. They must be set for both the preflight and actual request.
https://fetch.spec.whatwg.org/#http-responses
Only `Access-Control-Allow-Origin` is... | [
{
"content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING\n\nfrom litestar.datastructures import Headers, MutableScopeHeaders\nfrom litestar.enums import ScopeType\nfrom litestar.middleware.base import AbstractMiddleware\n\n__all__ = (\"CORSMiddleware\",)\n\n\nif TYPE_CHECKING:\n f... | [
{
"content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING\n\nfrom litestar.datastructures import Headers, MutableScopeHeaders\nfrom litestar.enums import ScopeType\nfrom litestar.middleware.base import AbstractMiddleware\n\n__all__ = (\"CORSMiddleware\",)\n\n\nif TYPE_CHECKING:\n f... | diff --git a/litestar/middleware/cors.py b/litestar/middleware/cors.py
index 8d48b73af3..6c4de31f8f 100644
--- a/litestar/middleware/cors.py
+++ b/litestar/middleware/cors.py
@@ -70,6 +70,15 @@ async def wrapped_send(message: Message) -> None:
headers["Access-Control-Allow-Origin"] = origin
... |
google__turbinia-384 | Local installation requires filled-out GCP section of config
I'm attempting to get Turbinia working locally on a laptop. The laptop has internet for at least the installation part of this process.
Running into an issue with the config. I set the TASK_MANAGER to use Celery, but the installation process is still requi... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U... | diff --git a/turbinia/config/turbinia_config.py b/turbinia/config/turbinia_config.py
index 8a4bda242..2ea842693 100644
--- a/turbinia/config/turbinia_config.py
+++ b/turbinia/config/turbinia_config.py
@@ -26,10 +26,14 @@
# separate when running with the same Cloud projects or backend servers.
INSTANCE_ID = 'turbinia-... |
bookwyrm-social__bookwyrm-1394 | Cache busting for static files when changes need to be loaded
When the javascript is updates, there are usually a handful of users who experience broken behavior (#1284) because their browser is still working off a cached version of the previous one. I think using https://docs.djangoproject.com/en/3.2/ref/contrib/stati... | [
{
"content": "\"\"\" customize the info available in context for rendering templates \"\"\"\nfrom bookwyrm import models, settings\n\n\ndef site_settings(request): # pylint: disable=unused-argument\n \"\"\"include the custom info about the site\"\"\"\n request_protocol = \"https://\"\n if not request.... | [
{
"content": "\"\"\" customize the info available in context for rendering templates \"\"\"\nfrom bookwyrm import models, settings\n\n\ndef site_settings(request): # pylint: disable=unused-argument\n \"\"\"include the custom info about the site\"\"\"\n request_protocol = \"https://\"\n if not request.... | diff --git a/bookwyrm/context_processors.py b/bookwyrm/context_processors.py
index 0610a8b9a9..309e84ed10 100644
--- a/bookwyrm/context_processors.py
+++ b/bookwyrm/context_processors.py
@@ -15,4 +15,5 @@ def site_settings(request): # pylint: disable=unused-argument
"media_full_url": settings.MEDIA_FULL_URL,
... |
inventree__InvenTree-4721 | "Install Plugin" via GUI fails to add plugin to plugins.txt correctly for first plugin
### Please verify that this bug has NOT been raised before.
- [X] I checked and didn't find a similar issue
### Describe the bug*
When trying to install a plugin via the GUI function "Install Plugin" without any prior installed pl... | [
{
"content": "\"\"\"JSON serializers for plugin app.\"\"\"\n\nimport subprocess\n\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.utils import timezone\nfrom django.utils.translation import gettext_lazy as _\n\nfrom rest_framework import serializers\n\nfrom com... | [
{
"content": "\"\"\"JSON serializers for plugin app.\"\"\"\n\nimport subprocess\n\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.utils import timezone\nfrom django.utils.translation import gettext_lazy as _\n\nfrom rest_framework import serializers\n\nfrom com... | diff --git a/InvenTree/plugin/serializers.py b/InvenTree/plugin/serializers.py
index 2f902e3d2acf..64f1b0d908c9 100644
--- a/InvenTree/plugin/serializers.py
+++ b/InvenTree/plugin/serializers.py
@@ -154,7 +154,13 @@ def save(self):
# save plugin to plugin_file if installed successfull
if success:
+ ... |
mlflow__mlflow-8064 | [BUG] MLflow tried to browse the wrong folder in FTP
### Issues Policy acknowledgement
- [X] I have read and agree to submit bug reports in accordance with the [issues policy](https://www.github.com/mlflow/mlflow/blob/master/ISSUE_POLICY.md)
### Willingness to contribute
No. I cannot contribute a bug fix at this tim... | [
{
"content": "import os\nimport sys\nimport threading\n\nimport posixpath\nimport urllib.parse\n\nfrom mlflow.entities import FileInfo\nfrom mlflow.store.artifact.artifact_repo import ArtifactRepository\nfrom contextlib import contextmanager\n\n\n# Based on: https://stackoverflow.com/a/58466685\ndef _put_r_for_... | [
{
"content": "import os\nimport sys\nimport threading\n\nimport posixpath\nimport urllib.parse\n\nfrom mlflow.entities import FileInfo\nfrom mlflow.store.artifact.artifact_repo import ArtifactRepository\nfrom contextlib import contextmanager\n\n\n# Based on: https://stackoverflow.com/a/58466685\ndef _put_r_for_... | diff --git a/mlflow/store/artifact/ftp_artifact_repo.py b/mlflow/store/artifact/ftp_artifact_repo.py
index 38ebbc4c52611..df75ca93e326d 100644
--- a/mlflow/store/artifact/ftp_artifact_repo.py
+++ b/mlflow/store/artifact/ftp_artifact_repo.py
@@ -25,7 +25,7 @@ def __init__(self, artifact_uri):
"username": pa... |
pymedusa__Medusa-8918 | When adding a new existing show, Default EP Status selection not respected and not doing initial scan of files
**Describe the bug**
When adding a new existing show (have the files already in a folder) via home page > Shows > Add Shows > Add Existing Shows there are a couple issues that have cropped up recently. This u... | [
{
"content": "# coding=utf-8\n# Author: Nic Wolfe <nic@wolfeden.ca>\n#\n# This file is part of Medusa.\n#\n# Medusa is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or... | [
{
"content": "# coding=utf-8\n# Author: Nic Wolfe <nic@wolfeden.ca>\n#\n# This file is part of Medusa.\n#\n# Medusa is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a9b201eef3..b611130df0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
#### Improvements
#### Fixes
+- Fix setting default episode status (after) when adding a new show. ([8918](https://github.com/pymedusa/Medusa/pull/8918))
-----
diff --git a/medusa/... |
cookiecutter__cookiecutter-django-2583 | OfflineGenerationError when deploying with compressor on Heroku
## What happened?
While trying to reproduce #2328, I got a different error with Heroku. Deployment works fine, but got a server error when opening the website:
```
OfflineGenerationError
You have offline compression enabled but key "d61d41e4f5705... | [
{
"content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment\n (at least so we presume in `pre_gen_project.py`).\n\nTODO: ? restrict Cookiecutter Django project init... | [
{
"content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment\n (at least so we presume in `pre_gen_project.py`).\n\nTODO: ? restrict Cookiecutter Django project init... | diff --git a/.gitignore b/.gitignore
index 54fafb8be7..efe33befac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -211,7 +211,6 @@ tags
### VirtualEnv template
# Virtualenv
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
-[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
diff --git a/hooks/post_gen_project.py b/hooks/post_gen... |
PaddlePaddle__models-2290 | ocr_recognition预测问题
1.ctc模型预测报错:
Traceback (most recent call last):
File "infer.py", line 153, in <module>
main()
File "infer.py", line 149, in main
inference(args)
File "infer.py", line 34, in inference
get_feeder_data = get_ctc_feeder_for_infer
NameError: name 'get_ctc_feeder_for_infer' is n... | [
{
"content": "from __future__ import print_function\nimport paddle.fluid as fluid\nfrom utility import add_arguments, print_arguments, to_lodtensor, get_ctc_feeder_data, get_attention_feeder_for_infer\nimport paddle.fluid.profiler as profiler\nfrom crnn_ctc_model import ctc_infer\nfrom attention_model import at... | [
{
"content": "from __future__ import print_function\nimport paddle.fluid as fluid\nfrom utility import add_arguments, print_arguments, to_lodtensor, get_ctc_feeder_data, get_attention_feeder_for_infer, get_ctc_feeder_for_infer\nimport paddle.fluid.profiler as profiler\nfrom crnn_ctc_model import ctc_infer\nfrom... | diff --git a/PaddleCV/ocr_recognition/attention_model.py b/PaddleCV/ocr_recognition/attention_model.py
index 79869e9df9..4093f5e79e 100755
--- a/PaddleCV/ocr_recognition/attention_model.py
+++ b/PaddleCV/ocr_recognition/attention_model.py
@@ -11,7 +11,7 @@
eos = 1
gradient_clip = 10
LR = 1.0
-beam_size = 2
+beam_siz... |
easybuilders__easybuild-easyblocks-2981 | MATLAB changes `$LD_LIBRARY_PATH`, breaks Qt apps
I've been debugging an issue with an app that depends on the Qt5 module. The app won't start because it can't find Qt's platform plugins:
```
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
```
I wrote a minimal Qt app to find the cause of this ... | [
{
"content": "##\n# Copyright 2009-2023 Ghent University\n#\n# This file is part of EasyBuild,\n# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n# with support of Ghent University (http://ugent.be/hpc),\n# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),\n# F... | [
{
"content": "##\n# Copyright 2009-2023 Ghent University\n#\n# This file is part of EasyBuild,\n# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n# with support of Ghent University (http://ugent.be/hpc),\n# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),\n# F... | diff --git a/easybuild/easyblocks/m/matlab.py b/easybuild/easyblocks/m/matlab.py
index b260e703de1..ec2f43fa390 100644
--- a/easybuild/easyblocks/m/matlab.py
+++ b/easybuild/easyblocks/m/matlab.py
@@ -221,11 +221,6 @@ def make_module_extra(self):
"""Extend PATH and set proper _JAVA_OPTIONS (e.g., -Xmx)."""
... |
yt-dlp__yt-dlp-4645 | [aenetworks]: None of the available releases match the specified AssetType, ProtectionScheme, and/or Format preferences
### Checklist
- [X] I'm reporting a broken site
- [X] I've verified that I'm running yt-dlp version **2022.05.18** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify c... | [
{
"content": "from .theplatform import ThePlatformIE\nfrom ..utils import (\n ExtractorError,\n GeoRestrictedError,\n int_or_none,\n update_url_query,\n urlencode_postdata,\n)\n\n\nclass AENetworksBaseIE(ThePlatformIE):\n _BASE_URL_REGEX = r'''(?x)https?://\n (?:(?:www|play|watch)\\.)?\... | [
{
"content": "from .theplatform import ThePlatformIE\nfrom ..utils import (\n ExtractorError,\n GeoRestrictedError,\n int_or_none,\n update_url_query,\n urlencode_postdata,\n)\n\n\nclass AENetworksBaseIE(ThePlatformIE):\n _BASE_URL_REGEX = r'''(?x)https?://\n (?:(?:www|play|watch)\\.)?\... | diff --git a/yt_dlp/extractor/aenetworks.py b/yt_dlp/extractor/aenetworks.py
index 86a10f2dcdaf..516cb6302ce0 100644
--- a/yt_dlp/extractor/aenetworks.py
+++ b/yt_dlp/extractor/aenetworks.py
@@ -28,14 +28,17 @@ class AENetworksBaseIE(ThePlatformIE):
}
def _extract_aen_smil(self, smil_url, video_id, auth=Non... |
open-telemetry__opentelemetry-python-2759 | Add min/max fields to Histogram in otlp metrics exporter
From proto https://github.com/open-telemetry/opentelemetry-proto/pull/279
| [
{
"content": "# Copyright The OpenTelemetry Authors\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | [
{
"content": "# Copyright The OpenTelemetry Authors\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9d449a57e2c..cfc30d5886a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased](https://github.com/open-telemetry/opentelemetry-python/compare/v1.12.0rc1-0.31b0...HEAD... |
jazzband__django-simple-history-513 | simple-history 2.6.0 generates a migration while 2.5.1 doesn't
**Describe the bug**
Kiwi TCMS uses simple-history as dependency. Until recently we had version 2.5.1 and we've upgraded to 2.6.0. The problem is that with 2.5.1 ./manage.py migrate/makemigrations doesn't detect any new changes but with 2.6.0 it does.
H... | [
{
"content": "from __future__ import unicode_literals\n\nimport copy\nimport importlib\nimport threading\nimport uuid\nimport warnings\n\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.contrib import admin\nfrom django.core.serializers import serialize\nfrom django.db import models\... | [
{
"content": "from __future__ import unicode_literals\n\nimport copy\nimport importlib\nimport threading\nimport uuid\nimport warnings\n\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.contrib import admin\nfrom django.core.serializers import serialize\nfrom django.db import models\... | diff --git a/CHANGES.rst b/CHANGES.rst
index bc1caf2c5..e1ff9470f 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -6,6 +6,7 @@ Unreleased
- Add support for `using` chained manager method and save/delete keyword argument (gh-507)
- Added management command `clean_duplicate_history` to remove duplicate history entries (g... |
adamchainz__django-cors-headers-46 | Default allow_headers breaks JSON in Safari
Not sure if this should be added to the defaults or simply mentioned in the relevant section of the README, but communicating in JSON on Safari causes the following error:
```
Failed to load resource: Request header field Accept-Encoding is not allowed by Access-Control-All... | [
{
"content": "from django.conf import settings\n\ndefault_headers = (\n 'x-requested-with',\n 'content-type',\n 'accept',\n 'origin',\n 'authorization',\n 'x-csrftoken',\n)\nCORS_ALLOW_HEADERS = getattr(settings, 'CORS_ALLOW_HEADERS', default_headers)\n\ndefault_methods = (\n 'GET',\n 'P... | [
{
"content": "from django.conf import settings\n\ndefault_headers = (\n 'x-requested-with',\n 'content-type',\n 'accept',\n 'origin',\n 'authorization',\n 'x-csrftoken',\n 'user-agent',\n 'accept-encoding',\n)\n\nCORS_ALLOW_HEADERS = getattr(settings, 'CORS_ALLOW_HEADERS', default_header... | diff --git a/corsheaders/defaults.py b/corsheaders/defaults.py
index 16b61f09..c55c4559 100644
--- a/corsheaders/defaults.py
+++ b/corsheaders/defaults.py
@@ -7,7 +7,10 @@
'origin',
'authorization',
'x-csrftoken',
+ 'user-agent',
+ 'accept-encoding',
)
+
CORS_ALLOW_HEADERS = getattr(settings, 'CO... |
huggingface__transformers-13489 | `BertTokenizer` splits tokens added via `add_tokens(...', special_tokens=False)` to a few subtokens
## Environment
`!transformers-cli env` output:
- `transformers` version: 4.11.0.dev0
- Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.11
- PyTorch version (GPU?): 1.9.0+cu102 (Fa... | [
{
"content": "# coding=utf-8\n# Copyright 2020 The HuggingFace Inc. team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#... | [
{
"content": "# coding=utf-8\n# Copyright 2020 The HuggingFace Inc. team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#... | diff --git a/src/transformers/tokenization_utils.py b/src/transformers/tokenization_utils.py
index 0146c0ef0d4f..4cc93120ebd9 100644
--- a/src/transformers/tokenization_utils.py
+++ b/src/transformers/tokenization_utils.py
@@ -453,7 +453,9 @@ def tokenize(self, text: TextInput, **kwargs) -> List[str]:
# TODO: ... |
secdev__scapy-855 | test_pyx problem
I have a unit test that uses scapy library like this:
```
$ cat ut.py
from scapy.all import *
def test_foo():
pass
```
The problem is that testing framework (pytest) detects internal scapy function test_pyx as a test:
```
ut.py::test_foo PASSED
ut.py::test_pyx <- venv/src/scapy/scapy/c... | [
{
"content": "## This file is part of Scapy\n## See http://www.secdev.org/projects/scapy for more informations\n## Copyright (C) Philippe Biondi <phil@secdev.org>\n## This program is published under a GPLv2 license\n\nimport os, inspect\nfrom sys import platform, maxsize\nimport platform as platform_lib\nfrom s... | [
{
"content": "## This file is part of Scapy\n## See http://www.secdev.org/projects/scapy for more informations\n## Copyright (C) Philippe Biondi <phil@secdev.org>\n## This program is published under a GPLv2 license\n\nimport os, inspect\nfrom sys import platform, maxsize\nimport platform as platform_lib\nfrom s... | diff --git a/scapy/consts.py b/scapy/consts.py
index ff6b771b559..8d33cfa182d 100644
--- a/scapy/consts.py
+++ b/scapy/consts.py
@@ -27,7 +27,7 @@
MATPLOTLIB_DEFAULT_PLOT_KARGS = dict()
log_loading.info("Can't import matplotlib. Won't be able to plot.")
-def test_pyx():
+def _test_pyx():
"""Returns if ... |
psychopy__psychopy-569 | feature request: develop a pylint rule-set
pylint is a code analysis tool, and will err of the side of being super duper ultra nitpicky (which is great). You just then turn some things off to see the signal in the noise. For example, I've been bitten by mutable default values to a method / function, and it will catch t... | [
{
"content": "#!/usr/bin/env python2\n\n# Part of the PsychoPy library\n# Copyright (C) 2014 Jonathan Peirce\n# Distributed under the terms of the GNU General Public License (GPL).\n\n'''Wrapper for all miscellaneous functions and classes from psychopy.tools'''\n\nfrom psychopy.tools.arraytools import (createXY... | [
{
"content": "#!/usr/bin/env python2\n\n# Part of the PsychoPy library\n# Copyright (C) 2014 Jonathan Peirce\n# Distributed under the terms of the GNU General Public License (GPL).\n\n'''Wrapper for all miscellaneous functions and classes from psychopy.tools'''\n\n# pylint: disable=W0611\n# W0611 = Unused impor... | diff --git a/psychopy/misc.py b/psychopy/misc.py
index 0347cb46b4..316eb0bce4 100644
--- a/psychopy/misc.py
+++ b/psychopy/misc.py
@@ -6,6 +6,9 @@
'''Wrapper for all miscellaneous functions and classes from psychopy.tools'''
+# pylint: disable=W0611
+# W0611 = Unused import %s
+
from psychopy.tools.arraytools imp... |
scikit-image__scikit-image-4172 | IO: unhandled exception, in case the URL cannot be opened
## Description

## Way to reproduce
```python
def url_to_image(url):
"""download image from url and return it"""
im_mat = io.imread(u... | [
{
"content": "import urllib.parse\nimport urllib.request\n\nimport os\nimport re\nimport tempfile\nfrom contextlib import contextmanager\n\n\nURL_REGEX = re.compile(r'http://|https://|ftp://|file://|file:\\\\')\n\n\ndef is_url(filename):\n \"\"\"Return True if string is an http or ftp path.\"\"\"\n return... | [
{
"content": "import urllib.parse\nimport urllib.request\nfrom urllib.error import URLError, HTTPError\n\nimport os\nimport re\nimport tempfile\nfrom contextlib import contextmanager\n\n\nURL_REGEX = re.compile(r'http://|https://|ftp://|file://|file:\\\\')\n\n\ndef is_url(filename):\n \"\"\"Return True if st... | diff --git a/skimage/io/tests/test_io.py b/skimage/io/tests/test_io.py
index 4c131d63691..e2de03ef64c 100644
--- a/skimage/io/tests/test_io.py
+++ b/skimage/io/tests/test_io.py
@@ -1,4 +1,5 @@
import os
+import tempfile
import numpy as np
from skimage import io, data_dir
@@ -52,3 +53,49 @@ def test_imread_http_url... |
ansible-collections__community.general-3865 | interfaces_file regression. not idempotent with down/up option.
### Summary
Regression from #3328: The new version repeatedly adds new lines for up/down option. The previous version (ansible 3.0) only added the option if it was not yet present.
### Issue Type
Bug Report
### Component Name
interfaces_fi... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# Copyright: (c) 2016, Roman Belyakovsky <ihryamzik () gmail.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# Copyright: (c) 2016, Roman Belyakovsky <ihryamzik () gmail.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n... | diff --git a/changelogs/fragments/3862-interfaces-file-fix-dup-option.yaml b/changelogs/fragments/3862-interfaces-file-fix-dup-option.yaml
new file mode 100644
index 00000000000..54cf17bf7d4
--- /dev/null
+++ b/changelogs/fragments/3862-interfaces-file-fix-dup-option.yaml
@@ -0,0 +1,2 @@
+bugfixes:
+ - interfaces_fi... |
DataDog__dd-trace-py-2384 | grpc client fails when parse_method_path() does not return a value for package
### Which version of dd-trace-py are you using?
ddtrace==0.48.0
### Which version of pip are you using?
pip 21.1
### Which version of the libraries are you using?
ddtrace==0.48.0
### How can we reproduce your problem?
pa... | [
{
"content": "from . import constants\n\n\ndef parse_method_path(method_path):\n \"\"\" Returns (package, service, method) tuple from parsing method path \"\"\"\n # unpack method path based on \"/{package}.{service}/{method}\"\n # first remove leading \"/\" as unnecessary\n package_service, method_n... | [
{
"content": "from . import constants\n\n\ndef parse_method_path(method_path):\n \"\"\" Returns (package, service, method) tuple from parsing method path \"\"\"\n # unpack method path based on \"/{package}.{service}/{method}\"\n # first remove leading \"/\" as unnecessary\n package_service, method_n... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 7a71f405a70..936a9d85951 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -622,11 +622,12 @@ jobs:
pattern: '^httplib_contrib'
grpc:
- <<: *contrib_job
+ <<: *machine_executor
parallelism: 6
steps:
- run... |
openstates__openstates-scrapers-2973 | IA failing since at least 2019-04-28
IA has been failing since 2019-04-28
Based on automated runs it appears that IA has not run successfully in 2 days (2019-04-28).
```
On the question "Shall the bill pass?" (S.F. 608), the vote was:
On the question "Shall the bill pass?" (S.F. 616), the vote was:
On the question... | [
{
"content": "# -*- coding: utf8 -*-\nfrom datetime import datetime, time, timezone, timedelta\nimport re\nimport collections\nimport lxml.etree\n\nfrom pupa.utils.generic import convert_pdf\nfrom pupa.scrape import Scraper, VoteEvent\n\n\nSITE_IDS = {\n '2019-2020': '88',\n '2017-2018': '87',\n '2015-... | [
{
"content": "# -*- coding: utf8 -*-\nfrom datetime import datetime, time, timezone, timedelta\nimport re\nimport collections\nimport lxml.etree\n\nfrom pupa.utils.generic import convert_pdf\nfrom pupa.scrape import Scraper, VoteEvent\n\n\nSITE_IDS = {\n '2019-2020': '88',\n '2017-2018': '87',\n '2015-... | diff --git a/openstates/ia/votes.py b/openstates/ia/votes.py
index 827a5ccf81..984b497944 100644
--- a/openstates/ia/votes.py
+++ b/openstates/ia/votes.py
@@ -130,7 +130,7 @@ def scrape_journal(self, url, chamber, session, date):
^On\sthe\squestion\s # Precedes any motion
"+ ... |
netbox-community__netbox-9438 | Allow inheritance/composition when creating custom scripts
### NetBox version
v3.2.3
### Feature type
Change to existing functionality
### Proposed functionality
I would like to be able to do the following:
```
class BaseTestScript:
test = BooleanVar(label="This is a test!")
def shared_fu... | [
{
"content": "import inspect\nimport json\nimport logging\nimport os\nimport pkgutil\nimport sys\nimport traceback\nimport threading\nfrom collections import OrderedDict\n\nimport yaml\nfrom django import forms\nfrom django.conf import settings\nfrom django.core.validators import RegexValidator\nfrom django.db ... | [
{
"content": "import inspect\nimport json\nimport logging\nimport os\nimport pkgutil\nimport sys\nimport traceback\nimport threading\nfrom collections import OrderedDict\n\nimport yaml\nfrom django import forms\nfrom django.conf import settings\nfrom django.core.validators import RegexValidator\nfrom django.db ... | diff --git a/netbox/extras/scripts.py b/netbox/extras/scripts.py
index 4332d72f70c..29fab5be814 100644
--- a/netbox/extras/scripts.py
+++ b/netbox/extras/scripts.py
@@ -306,9 +306,16 @@ def job_timeout(self):
@classmethod
def _get_vars(cls):
vars = {}
- for name, attr in cls.__dict__.items():
... |
conan-io__conan-9050 | [bug] CMakeDeps in v1.37 does not generate files
### Environment Details (include every applicable attribute)
* Operating System+version: Win10 (and observed in macOS Catalina)
* Compiler+version: n/a
* Conan version: 1.35.2 (works) 1.37.0 (does not work)
* Python version: python 3.92 or 3.95
### Steps t... | [
{
"content": "import os\nfrom contextlib import contextmanager\n\nimport six\nfrom six import string_types\n\nfrom conan.tools.env import Environment\nfrom conan.tools.env.environment import environment_wrap_command\nfrom conans.client import tools\nfrom conans.client.graph.conanfile_dependencies import ConanFi... | [
{
"content": "import os\nfrom contextlib import contextmanager\n\nimport six\nfrom six import string_types\n\nfrom conan.tools.env import Environment\nfrom conan.tools.env.environment import environment_wrap_command\nfrom conans.client import tools\nfrom conans.client.graph.conanfile_dependencies import ConanFi... | diff --git a/conans/model/conan_file.py b/conans/model/conan_file.py
index 1f65b8cd538..dcc853e7398 100644
--- a/conans/model/conan_file.py
+++ b/conans/model/conan_file.py
@@ -272,15 +272,18 @@ def package_folder(self, folder):
@property
def install_folder(self):
+ # FIXME: Remove in 2.0, no self.in... |
modin-project__modin-4276 | Modin Categorical column categories are not correct.
### System information
- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: MacOS Version 11.6
- **Modin version** (`modin.__version__`): 0.13.2
- **Python version**: 3.8.11
- **Code we can use to reproduce**:
```
import modin.pandas as pd
from mod... | [
{
"content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ... | [
{
"content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ... | diff --git a/docs/release_notes/release_notes-0.14.0.rst b/docs/release_notes/release_notes-0.14.0.rst
index d7b90f1574d..c39a9ffa7d1 100644
--- a/docs/release_notes/release_notes-0.14.0.rst
+++ b/docs/release_notes/release_notes-0.14.0.rst
@@ -17,6 +17,7 @@ Key Features and Updates
* FIX-#4057: Allow reading an emp... |
ansible-collections__community.general-3862 | interfaces_file regression. not idempotent with down/up option.
### Summary
Regression from #3328: The new version repeatedly adds new lines for up/down option. The previous version (ansible 3.0) only added the option if it was not yet present.
### Issue Type
Bug Report
### Component Name
interfaces_fi... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# Copyright: (c) 2016, Roman Belyakovsky <ihryamzik () gmail.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# Copyright: (c) 2016, Roman Belyakovsky <ihryamzik () gmail.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n... | diff --git a/changelogs/fragments/3862-interfaces-file-fix-dup-option.yaml b/changelogs/fragments/3862-interfaces-file-fix-dup-option.yaml
new file mode 100644
index 00000000000..54cf17bf7d4
--- /dev/null
+++ b/changelogs/fragments/3862-interfaces-file-fix-dup-option.yaml
@@ -0,0 +1,2 @@
+bugfixes:
+ - interfaces_fi... |
learningequality__kolibri-8886 | Errors while interacting with resources in a lesson on Learn-only device
## Observed behavior
Replicable on 0.15.0b3 installed on both Windows 7 & 10 with learn-only device on Android 9.0 phone. Errors appear in seemingly random fashion on different resources at different moments. Learner device appears to be syncin... | [
{
"content": "from django.conf import settings\nfrom django.db import OperationalError\nfrom django.http import HttpResponse\nfrom django.http import HttpResponseRedirect\nfrom django.shortcuts import redirect\nfrom django.urls import is_valid_path\nfrom django.utils import translation\n\nfrom .translation impo... | [
{
"content": "from django.conf import settings\nfrom django.db import OperationalError\nfrom django.http import HttpResponse\nfrom django.http import HttpResponseRedirect\nfrom django.shortcuts import redirect\nfrom django.urls import is_valid_path\nfrom django.utils import translation\n\nfrom .translation impo... | diff --git a/kolibri/core/device/middleware.py b/kolibri/core/device/middleware.py
index 395d8eacb46..29bb1c36837 100644
--- a/kolibri/core/device/middleware.py
+++ b/kolibri/core/device/middleware.py
@@ -128,11 +128,12 @@ def process_exception(self, request, exception):
return None
# Return a 503... |
interlegis__sapl-2329 | Documento administrativo restrito
## Comportamento Esperado
Durante a pesquisa de documentos administrativos, os restritos não deveriam ser contabilizados na contagem. Isso poderá suscitar dúvidas por parte do cidadão quanto ao totalização de documentos na contagem e a quantidade efetiva de documentos que aparecem par... | [
{
"content": "from datetime import datetime\nfrom random import choice\nfrom string import ascii_letters, digits\n\nfrom braces.views import FormValidMessageMixin\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import permission_required\nfrom django.contrib.auth.mixins import Permissi... | [
{
"content": "from datetime import datetime\nfrom random import choice\nfrom string import ascii_letters, digits\n\nfrom braces.views import FormValidMessageMixin\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import permission_required\nfrom django.contrib.auth.mixins import Permissi... | diff --git a/sapl/protocoloadm/views.py b/sapl/protocoloadm/views.py
index 84280796f..7ba286592 100644
--- a/sapl/protocoloadm/views.py
+++ b/sapl/protocoloadm/views.py
@@ -771,8 +771,14 @@ def get(self, request, *args, **kwargs):
url = ''
self.filterset.form.fields['o'].label = _('Ordenação')
-... |
paperless-ngx__paperless-ngx-3135 | [BUG] Rest API responds with wrong URI prefix for next pagination
### Description
It seems the API replies with a fixed (or wrong) URI to http within the json response.
### Steps to reproduce
Attempting to get a list of correspondents via rest API using CURL as such:
`curl -vvv --header 'authorization: Tok... | [
{
"content": "import datetime\nimport json\nimport math\nimport multiprocessing\nimport os\nimport re\nimport tempfile\nfrom os import PathLike\nfrom pathlib import Path\nfrom typing import Dict\nfrom typing import Final\nfrom typing import List\nfrom typing import Optional\nfrom typing import Set\nfrom typing ... | [
{
"content": "import datetime\nimport json\nimport math\nimport multiprocessing\nimport os\nimport re\nimport tempfile\nfrom os import PathLike\nfrom pathlib import Path\nfrom typing import Dict\nfrom typing import Final\nfrom typing import List\nfrom typing import Optional\nfrom typing import Set\nfrom typing ... | diff --git a/docs/configuration.md b/docs/configuration.md
index 2770bc84d5d..deb39aa8b06 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -453,6 +453,33 @@ redirect the user back to the SSO application's logout page.
Defaults to None, which disables this feature.
+`PAPERLESS_USE_X_FORWARD_HOS... |
pypa__pipenv-5713 | MSYS2: RecursionError: maximum recursion depth exceeded
### Issue description
I tryied pipenv==2023.5.19 to resolve https://github.com/pypa/pipenv/issues/5446.
But RecursionError: maximum recursion depth exceeded occured.
### Expected result
No RecursionError should occur.
### Actual result
Copied log ... | [
{
"content": "from __future__ import annotations\n\nimport os\nfrom collections import defaultdict\nfrom pathlib import Path\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Dict,\n Generator,\n Iterator,\n Optional,\n)\n\nfrom pipenv.vendor.pydantic import BaseModel, Field, validator\n\nfrom .... | [
{
"content": "from __future__ import annotations\n\nimport os\nfrom collections import defaultdict\nfrom pathlib import Path\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Dict,\n Generator,\n Iterator,\n Optional,\n)\n\nfrom pipenv.vendor.pydantic import BaseModel, Field, validator\n\nfrom .... | diff --git a/news/5709.bugfix.rst b/news/5709.bugfix.rst
new file mode 100644
index 0000000000..e288849874
--- /dev/null
+++ b/news/5709.bugfix.rst
@@ -0,0 +1 @@
+Update ``pythonfinder==2.0.4`` with fix for "RecursionError: maximum recursion depth exceeded".
diff --git a/pipenv/vendor/pythonfinder/__init__.py b/pipenv/... |
enthought__chaco-217 | RangeSelection improperly clips on mouse leave
The `RangeSelection` tool clips the selection when the mouse leaves without considering the origin of the plot. This leads to the `selection` trait having low value greater than the high value. Subsequently, other parts of chaco crash because of this.
A fix is coming.
| [
{
"content": "\"\"\" Defines the RangeSelection controller class.\n\"\"\"\n# Major library imports\nfrom numpy import array\n\n# Enthought library imports\nfrom traits.api import Any, Array, Bool, Enum, Event, Float, Int, Instance, \\\n List, Property, Str, Trait, Tuple\nfrom enable.api ... | [
{
"content": "\"\"\" Defines the RangeSelection controller class.\n\"\"\"\n# Major library imports\nfrom numpy import array\n\n# Enthought library imports\nfrom traits.api import Any, Array, Bool, Enum, Event, Float, Int, Instance, \\\n List, Property, Str, Trait, Tuple\nfrom enable.api ... | diff --git a/CHANGES.txt b/CHANGES.txt
index c0ffcb8d9..7715f0983 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -25,6 +25,7 @@ Fixes
* Avoid a numpy crash when using a data source of a unicode array (PR#213).
* PanTool with `restrict_to_data` selected works with empty data sources
(PR#215).
+ * RangeSelection p... |
obspy__obspy-2179 | miniseed to ascii conversion via stream.write not writing some time stamps correctly
It looks like some time values are not being written correctly using `stream.write(format='TSPAIR')` where the stream was `read(<miniseed file>)`. I've attached a miniseed file, the ascii output from `stream.write`, and also the ascii... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nSimple ASCII time series formats\n\n* ``SLIST``, a ASCII time series format represented with a header line\n followed by a sample lists (see also\n :func:`SLIST format description<obspy.io.ascii.core._write_slist>`)::\n\n TIMESERIES BW_RJOB__EHZ_D, 6001 sample... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nSimple ASCII time series formats\n\n* ``SLIST``, a ASCII time series format represented with a header line\n followed by a sample lists (see also\n :func:`SLIST format description<obspy.io.ascii.core._write_slist>`)::\n\n TIMESERIES BW_RJOB__EHZ_D, 6001 sample... | diff --git a/obspy/io/ascii/core.py b/obspy/io/ascii/core.py
index 4ca3a2731b5..2e6fe6fcd69 100644
--- a/obspy/io/ascii/core.py
+++ b/obspy/io/ascii/core.py
@@ -462,11 +462,9 @@ def _write_tspair(stream, filename, custom_fmt=None,
header = _format_header(stats, 'TSPAIR', dataquality, dtype, unit)
... |
scverse__scanpy-2859 | String conversion of `qc_vars` into a `Collection` when a `str` input is provided in `calculate_qc_metrics`
### What kind of feature would you like to request?
Additional function parameters / changed functionality / changed defaults?
### Please describe your wishes
I often make the mistake of providing a single str... | [
{
"content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING\nfrom warnings import warn\n\nimport numba\nimport numpy as np\nimport pandas as pd\nfrom scipy.sparse import csr_matrix, issparse, isspmatrix_coo, isspmatrix_csr, spmatrix\nfrom sklearn.utils.sparsefuncs import mean_variance_a... | [
{
"content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING\nfrom warnings import warn\n\nimport numba\nimport numpy as np\nimport pandas as pd\nfrom scipy.sparse import csr_matrix, issparse, isspmatrix_coo, isspmatrix_csr, spmatrix\nfrom sklearn.utils.sparsefuncs import mean_variance_a... | diff --git a/docs/release-notes/1.10.0.md b/docs/release-notes/1.10.0.md
index 7d48d4fd9d..1bb50c8991 100644
--- a/docs/release-notes/1.10.0.md
+++ b/docs/release-notes/1.10.0.md
@@ -18,6 +18,7 @@
* {func}`scanpy.tl.rank_genes_groups` no longer warns that it's default was changed from t-test_overestim_var to t-test {p... |
saleor__saleor-574 | Sales with products applied to wrong products
- Create a sale in discounts and add a product to it.
- The discount is applied to an other product.
The system is using the product pk (not the product variant pk) for calculating the discount.
So the discount is applied to the product with variant pk equal to product pk.... | [
{
"content": "from __future__ import unicode_literals\nfrom datetime import date\nfrom decimal import Decimal\n\nfrom django.conf import settings\nfrom django.db import models\nfrom django.db.models import F\nfrom django.utils.translation import pgettext, pgettext_lazy\nfrom django.utils.encoding import python_... | [
{
"content": "from __future__ import unicode_literals\nfrom datetime import date\nfrom decimal import Decimal\n\nfrom django.conf import settings\nfrom django.db import models\nfrom django.db.models import F\nfrom django.utils.translation import pgettext, pgettext_lazy\nfrom django.utils.encoding import python_... | diff --git a/saleor/discount/models.py b/saleor/discount/models.py
index 7f4d8ed0feb..77d58642e25 100644
--- a/saleor/discount/models.py
+++ b/saleor/discount/models.py
@@ -265,10 +265,9 @@ def _product_has_category_discount(self, product, discounted_categories):
return False
def modifier_for_variant(se... |
WeblateOrg__weblate-10992 | Expose linked component info in the API
### Describe the problem
Presently the API hides linked components by exposing real repository URL. This was done to make the repo URL usable outside Weblate, but this also complicates editing of the component as the actual setting is not shown.
### Describe the solution you wo... | [
{
"content": "# Copyright © Michal Čihař <michal@weblate.org>\n#\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import annotations\n\nfrom copy import copy\nfrom zipfile import BadZipfile\n\nfrom django.conf import settings\nfrom rest_framework import serializers\n\nfrom weblate.accounts.models... | [
{
"content": "# Copyright © Michal Čihař <michal@weblate.org>\n#\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import annotations\n\nfrom copy import copy\nfrom zipfile import BadZipfile\n\nfrom django.conf import settings\nfrom rest_framework import serializers\n\nfrom weblate.accounts.models... | diff --git a/docs/api.rst b/docs/api.rst
index 8b3cd20a15a4..8affe46ebcab 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -1195,10 +1195,12 @@ Components
:>json string name: :ref:`component-name`
:>json string slug: :ref:`component-slug`
:>json string vcs: :ref:`component-vcs`
- :>json string repo: :r... |
googleapis__google-cloud-python-6264 | Monitoring: where is CallOptions on monitoring API example?
[OS] macOS Sierra 10.12.6
[Versions]
- Python 3.6.1
```
google-api-core==1.2.1
google-api-python-client==1.7.3
google-auth==1.5.0
google-auth-httplib2==0.0.3
google-cloud-monitoring==0.30.0
googleapis-common-protos==1.5.3
```
----
## CallOp... | [
{
"content": "# Copyright 2017, Google LLC 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# Unless... | [
{
"content": "# Copyright 2017, Google LLC 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# Unless... | diff --git a/bigquery_datatransfer/README.rst b/bigquery_datatransfer/README.rst
index 9d6199227a7a..301ad2a8d641 100644
--- a/bigquery_datatransfer/README.rst
+++ b/bigquery_datatransfer/README.rst
@@ -88,7 +88,7 @@ DataTransferServiceClient
pass
# Or iterate over results one page at a time
- for pa... |
aws-cloudformation__cfn-lint-163 | !If seems to break rule E3012
The following template snippet (bug.yml):
```
---
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
ClusterInstanceCount:
Description: 'The number of data nodes (instances) to use in the Amazon ES domain.'
Type: Number
Default: 1
Conditions:
HasSingleClusterInsta... | [
{
"content": "\"\"\"\n Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w... | [
{
"content": "\"\"\"\n Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w... | diff --git a/src/cfnlint/__init__.py b/src/cfnlint/__init__.py
index d9799109e7..276e93bd11 100644
--- a/src/cfnlint/__init__.py
+++ b/src/cfnlint/__init__.py
@@ -621,8 +621,10 @@ def get_values(self, obj, key, path=[]):
is_condition = True
results = self.get_condition_... |
fossasia__open-event-server-2914 | Implement "Apply" Promotional Code on event site itself
Our promotional code/discount gets applied only after the user advances to the next page.
Expected:
* [x] There should be an "Apply" button on the right hand side of the promotion field (when it is expanded).
 – Hyperparameter that affects.
```
| [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2014 Artyom Topchyan <artyom.topchyan@live.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n# Based on Copyright (C) 2014 Radim Rehurek <radimrehurek@seznam.cz>\n\n\n\"\"\"Python wrapper for `Dynami... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2014 Artyom Topchyan <artyom.topchyan@live.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n# Based on Copyright (C) 2014 Radim Rehurek <radimrehurek@seznam.cz>\n\n\n\"\"\"Python wrapper for `Dynami... | diff --git a/gensim/models/wrappers/dtmmodel.py b/gensim/models/wrappers/dtmmodel.py
index a0a2c7c6c5..4530bbb3b7 100644
--- a/gensim/models/wrappers/dtmmodel.py
+++ b/gensim/models/wrappers/dtmmodel.py
@@ -97,8 +97,10 @@ def __init__(self, dtm_path, corpus=None, time_slices=None, mode='fit', model='d
Max... |
open-telemetry__opentelemetry-python-contrib-1664 | Fix fastapi version
CI in `main` is failing right now because of `opentelemetery-instrumentation-fastapi` failures, fix `fastapi` version.
| [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | diff --git a/instrumentation/README.md b/instrumentation/README.md
index b1482a0227..052d2ba67d 100644
--- a/instrumentation/README.md
+++ b/instrumentation/README.md
@@ -16,7 +16,7 @@
| [opentelemetry-instrumentation-django](./opentelemetry-instrumentation-django) | django >= 1.10 | Yes
| [opentelemetry-instrumentat... |
cloud-custodian__cloud-custodian-5751 | Mailer broken on master
**Describe the bug**
c7n-mailer is broken in current master. It appears that this was caused by changes in #5708, specifically:
1. ``splunk-sdk`` was added to the mailer dependencies/requirements. I'm not sure why this was done, as ``c7n_mailer.splunk_delivery`` doesn't require that, it ju... | [
{
"content": "# Copyright 2016-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi... | [
{
"content": "# Copyright 2016-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi... | diff --git a/tools/c7n_mailer/c7n_mailer/deploy.py b/tools/c7n_mailer/c7n_mailer/deploy.py
index ad86bbedc36..d06e8618853 100644
--- a/tools/c7n_mailer/c7n_mailer/deploy.py
+++ b/tools/c7n_mailer/c7n_mailer/deploy.py
@@ -50,7 +50,6 @@ def dispatch(event, context):
'requests', 'urllib3', 'idna', 'chardet', 'certifi... |
keras-team__keras-18911 | Error in Documentation
The documentation confuses the ‘channels_last’ input format. It needs to be changed to match the correct format ==> (batch_size, height, width, channels)
https://github.com/keras-team/keras/blob/037ec9f5fc61a53c6e1f4c02b7bf1443429dcd45/keras/layers/convolutional/conv2d_transpose.py#L35
| [
{
"content": "from keras.api_export import keras_export\nfrom keras.layers.convolutional.base_conv_transpose import BaseConvTranspose\n\n\n@keras_export(\n [\n \"keras.layers.Conv2DTranspose\",\n \"keras.layers.Convolution2DTranspose\",\n ]\n)\nclass Conv2DTranspose(BaseConvTranspose):\n ... | [
{
"content": "from keras.api_export import keras_export\nfrom keras.layers.convolutional.base_conv_transpose import BaseConvTranspose\n\n\n@keras_export(\n [\n \"keras.layers.Conv2DTranspose\",\n \"keras.layers.Convolution2DTranspose\",\n ]\n)\nclass Conv2DTranspose(BaseConvTranspose):\n ... | diff --git a/keras/layers/convolutional/conv2d_transpose.py b/keras/layers/convolutional/conv2d_transpose.py
index 9ac3d87f96f8..2d7c27606e85 100644
--- a/keras/layers/convolutional/conv2d_transpose.py
+++ b/keras/layers/convolutional/conv2d_transpose.py
@@ -32,7 +32,7 @@ class Conv2DTranspose(BaseConvTranspose):
... |
e-valuation__EvaP-1502 | Importer string cleaning
All importers should replace multiple consecutive spaces in cell values by single spaces.
There should be a test in which an exemplary enrollment file is imported, which includes two courses with a name differing only in the amount of spaces. The test should assert that only one course is cr... | [
{
"content": "from collections import OrderedDict, defaultdict\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom typing import Set, Dict\nimport xlrd\n\nfrom django.conf import settings\nfrom django.db import transaction\nfrom django.utils.html import format_html\nfrom django.utils.translation imp... | [
{
"content": "from collections import OrderedDict, defaultdict\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom typing import Set, Dict\nimport xlrd\n\nfrom django.conf import settings\nfrom django.db import transaction\nfrom django.utils.html import format_html\nfrom django.utils.translation imp... | diff --git a/evap/staff/fixtures/test_enrollment_data_consecutive_and_trailing_spaces.xls b/evap/staff/fixtures/test_enrollment_data_consecutive_and_trailing_spaces.xls
new file mode 100644
index 0000000000..34d6bd1a6a
Binary files /dev/null and b/evap/staff/fixtures/test_enrollment_data_consecutive_and_trailing_spaces... |
apluslms__a-plus-966 | A+ must not try to render binary files in plain text in the submitted file views
Student's submitted files are usually opened in a modal dialog for a preview of the contents. In the teacher's inspect submission page, the preview is within the page without a modal dialog. The preview works for plain text files. A+ does ... | [
{
"content": "import itertools\nimport logging\nimport os\nimport json\nfrom typing import IO, Dict, Iterable, List, Tuple, TYPE_CHECKING\n\nfrom django.conf import settings\nfrom django.core.files.storage import default_storage\nfrom django.db import models, DatabaseError\nfrom django.db.models.signals import ... | [
{
"content": "import itertools\nimport logging\nimport os\nimport json\nfrom typing import IO, Dict, Iterable, List, Tuple, TYPE_CHECKING\n\nfrom binaryornot.check import is_binary\nfrom django.conf import settings\nfrom django.core.files.storage import default_storage\nfrom django.db import models, DatabaseErr... | diff --git a/exercise/submission_models.py b/exercise/submission_models.py
index 4887e2bbd..d7debfc9e 100644
--- a/exercise/submission_models.py
+++ b/exercise/submission_models.py
@@ -4,6 +4,7 @@
import json
from typing import IO, Dict, Iterable, List, Tuple, TYPE_CHECKING
+from binaryornot.check import is_binary
... |
dynaconf__dynaconf-875 | [bug][Documentation] Exporting: write() got an unexpected keyword argument 'merge'
**Describe the bug**
Following the example on the documentation to [export](https://www.dynaconf.com/advanced/#exporting) Dynaconf data to a file raises an exception with the `merge` argument
**To Reproduce**
~~~Python
loaders.writ... | [
{
"content": "from __future__ import annotations\n\nimport importlib\nimport os\n\nfrom dynaconf import constants as ct\nfrom dynaconf import default_settings\nfrom dynaconf.loaders import ini_loader\nfrom dynaconf.loaders import json_loader\nfrom dynaconf.loaders import py_loader\nfrom dynaconf.loaders import ... | [
{
"content": "from __future__ import annotations\n\nimport importlib\nimport os\n\nfrom dynaconf import constants as ct\nfrom dynaconf import default_settings\nfrom dynaconf.loaders import ini_loader\nfrom dynaconf.loaders import json_loader\nfrom dynaconf.loaders import py_loader\nfrom dynaconf.loaders import ... | diff --git a/dynaconf/loaders/__init__.py b/dynaconf/loaders/__init__.py
index e18cb8434..d154d4d0b 100644
--- a/dynaconf/loaders/__init__.py
+++ b/dynaconf/loaders/__init__.py
@@ -263,7 +263,7 @@ def enable_external_loaders(obj):
obj.LOADERS_FOR_DYNACONF.insert(0, loader)
-def write(filename, data, en... |
scipy__scipy-20206 | DOC: linalg: Unclear description for the output `P` of `qr`.
### Issue with current documentation:
I find the description of the output `P` in the [documentation](https://scipy.github.io/devdocs/reference/generated/scipy.linalg.qr.html#scipy.linalg.qr) to be confusing. For the parameter `pivoting`, the docs say:
... | [
{
"content": "\"\"\"QR decomposition functions.\"\"\"\nimport numpy\n\n# Local imports\nfrom .lapack import get_lapack_funcs\nfrom ._misc import _datacopied\n\n__all__ = ['qr', 'qr_multiply', 'rq']\n\n\ndef safecall(f, name, *args, **kwargs):\n \"\"\"Call a LAPACK routine, determining lwork automatically and... | [
{
"content": "\"\"\"QR decomposition functions.\"\"\"\nimport numpy\n\n# Local imports\nfrom .lapack import get_lapack_funcs\nfrom ._misc import _datacopied\n\n__all__ = ['qr', 'qr_multiply', 'rq']\n\n\ndef safecall(f, name, *args, **kwargs):\n \"\"\"Call a LAPACK routine, determining lwork automatically and... | diff --git a/scipy/linalg/_decomp_qr.py b/scipy/linalg/_decomp_qr.py
index d6b10bf4d140..2b158015e7bf 100644
--- a/scipy/linalg/_decomp_qr.py
+++ b/scipy/linalg/_decomp_qr.py
@@ -51,8 +51,8 @@ def qr(a, overwrite_a=False, lwork=None, mode='full', pivoting=False,
pivoting : bool, optional
Whether or not fa... |
joke2k__faker-1336 | test_date_pattern fails on 4.18.0
* Faker version: 4.18.0
* OS: Alpine Linux
Brief summary of the issue goes here.
```
======================================================================
FAIL: test_date_pattern (tests.providers.test_date_time.TestThTh)
------------------------------------------------------... | [
{
"content": "import warnings\n\nfrom datetime import datetime\n\nfrom .. import Provider as DateTimeProvider\n\n# thai_strftime() code adapted from\n# https://gist.github.com/bact/b8afe49cb1ae62913e6c1e899dcddbdb\n# (Same code base with PyThaiNLP 2.x)\n# Public Domain or CC0 1.0 Universal\n\n_TH_ABBR_WEEKDAYS ... | [
{
"content": "import warnings\n\nfrom datetime import datetime\n\nfrom .. import Provider as DateTimeProvider\n\n# thai_strftime() code adapted from\n# https://gist.github.com/bact/b8afe49cb1ae62913e6c1e899dcddbdb\n# (Same code base with PyThaiNLP 2.x)\n# Public Domain or CC0 1.0 Universal\n\n_TH_ABBR_WEEKDAYS ... | diff --git a/faker/providers/date_time/th_TH/__init__.py b/faker/providers/date_time/th_TH/__init__.py
index 26df6d1c6f..ad12159058 100644
--- a/faker/providers/date_time/th_TH/__init__.py
+++ b/faker/providers/date_time/th_TH/__init__.py
@@ -64,11 +64,10 @@ def _std_strftime(dt_obj: datetime, fmt_char: str) -> str:
... |
django-import-export__django-import-export-194 | In import_data, before_import should be called before the instance_loader is created
Currently, `import_data` looks like:
``` python
instance_loader = self._meta.instance_loader_class(self, dataset)
try:
self.before_import(dataset, real_dry_run)
except Exception as e:
t... | [
{
"content": "from __future__ import unicode_literals\n\nimport functools\nfrom copy import deepcopy\nimport sys\nimport traceback\n\nimport tablib\nfrom diff_match_patch import diff_match_patch\n\nfrom django.utils.safestring import mark_safe\nfrom django.utils import six\nfrom django.db import transaction\nfr... | [
{
"content": "from __future__ import unicode_literals\n\nimport functools\nfrom copy import deepcopy\nimport sys\nimport traceback\n\nimport tablib\nfrom diff_match_patch import diff_match_patch\n\nfrom django.utils.safestring import mark_safe\nfrom django.utils import six\nfrom django.db import transaction\nfr... | diff --git a/import_export/resources.py b/import_export/resources.py
index 717240bfe..3663ee437 100644
--- a/import_export/resources.py
+++ b/import_export/resources.py
@@ -304,8 +304,6 @@ def import_data(self, dataset, dry_run=False, raise_errors=False,
else:
real_dry_run = dry_run
- ins... |
zalando__patroni-698 | Could not load library ".../libpqwalreceiver.so"
We compile and install Postgres in a non-standard location (/opt/custom/share/postgresql-9.6.2_7 in the example below) which requires that we specify the `LD_LIBRARY_PATH` env var when starting up postgres and when working with postgres utilities. When starting up Postgr... | [
{
"content": "import logging\nimport os\nimport psutil\nimport re\nimport signal\nimport subprocess\n\nfrom patroni import call_self\n\nlogger = logging.getLogger(__name__)\n\nSTOP_SIGNALS = {\n 'smart': signal.SIGTERM,\n 'fast': signal.SIGINT,\n 'immediate': signal.SIGQUIT,\n}\n\n\nclass PostmasterPro... | [
{
"content": "import logging\nimport os\nimport psutil\nimport re\nimport signal\nimport subprocess\n\nfrom patroni import call_self\n\nlogger = logging.getLogger(__name__)\n\nSTOP_SIGNALS = {\n 'smart': signal.SIGTERM,\n 'fast': signal.SIGINT,\n 'immediate': signal.SIGQUIT,\n}\n\n\nclass PostmasterPro... | diff --git a/patroni/postmaster.py b/patroni/postmaster.py
index aa5f30509..fe46c0e17 100644
--- a/patroni/postmaster.py
+++ b/patroni/postmaster.py
@@ -137,7 +137,7 @@ def start(pgcommand, data_dir, conf, options):
# of init process to take care about postmaster.
# In order to make everything portabl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.