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 ⌀ |
|---|---|---|---|---|
DataDog__dd-trace-py-3674 | pytest plugin starts tracer when plugin is disabled
### Which version of dd-trace-py are you using?
1.1.1
### Which version of pip are you using?
```
# pip --version
pip 22.0.4 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
```
### Which version of the libraries are you using?
```
# pip... | [
{
"content": "\"\"\"\nThe pytest integration traces test executions.\n\nEnabling\n~~~~~~~~\n\nEnable traced execution of tests using ``pytest`` runner by\nrunning ``pytest --ddtrace`` or by modifying any configuration\nfile read by pytest (``pytest.ini``, ``setup.cfg``, ...)::\n\n [pytest]\n ddtrace = 1\n... | [
{
"content": "\"\"\"\nThe pytest integration traces test executions.\n\nEnabling\n~~~~~~~~\n\nEnable traced execution of tests using ``pytest`` runner by\nrunning ``pytest --ddtrace`` or by modifying any configuration\nfile read by pytest (``pytest.ini``, ``setup.cfg``, ...)::\n\n [pytest]\n ddtrace = 1\n... | diff --git a/ddtrace/contrib/pytest/__init__.py b/ddtrace/contrib/pytest/__init__.py
index 422a49fe86b..c5cdc94193d 100644
--- a/ddtrace/contrib/pytest/__init__.py
+++ b/ddtrace/contrib/pytest/__init__.py
@@ -18,6 +18,22 @@
ddtrace = 1
ddtrace-patch-all = 1
+
+.. note::
+ The ddtrace plugin for pytest has... |
internetarchive__openlibrary-7471 | Covers server not returning default author images
Previously it would return a dummy image. Now it return alt text because the endpoint errors?
### Evidence / Screenshot (if possible)

### Relevant u... | [
{
"content": "import array\nimport datetime\nimport io\nimport json\nimport logging\nimport os\n\nimport requests\n\nimport web\n\nfrom PIL import Image, ImageDraw, ImageFont\nimport textwrap\n\n\nfrom openlibrary.coverstore import config, db\nfrom openlibrary.coverstore.coverlib import read_file, read_image, s... | [
{
"content": "import array\nimport datetime\nimport io\nimport json\nimport logging\nimport os\n\nimport requests\n\nimport web\n\nfrom PIL import Image, ImageDraw, ImageFont\nimport textwrap\n\n\nfrom openlibrary.coverstore import config, db\nfrom openlibrary.coverstore.coverlib import read_file, read_image, s... | diff --git a/openlibrary/coverstore/code.py b/openlibrary/coverstore/code.py
index afab9402f65..b4dbd224817 100644
--- a/openlibrary/coverstore/code.py
+++ b/openlibrary/coverstore/code.py
@@ -268,7 +268,7 @@ def redirect(id):
value = self.query(category, key, value)
if not value or (value and s... |
kymatio__kymatio-289 | DOC 3D benchmarks
Currently none are listed in the user's guide. We should probably include something here.
| [
{
"content": "# Authors: Edouard Oyallon\n# Scientific Ancestry: Edouard Oyallon, Laurent Sifre, Joan Bruna\n\n\n__all__ = ['Scattering2D']\n\nimport torch\nfrom .backend import cdgmm, Modulus, SubsampleFourier, fft, Pad, unpad\nfrom .filter_bank import filter_bank\nfrom .utils import compute_padding\n\n\nclass... | [
{
"content": "# Authors: Edouard Oyallon\n# Scientific Ancestry: Edouard Oyallon, Laurent Sifre, Joan Bruna\n\n\n__all__ = ['Scattering2D']\n\nimport torch\nfrom .backend import cdgmm, Modulus, SubsampleFourier, fft, Pad, unpad\nfrom .filter_bank import filter_bank\nfrom .utils import compute_padding\n\n\nclass... | diff --git a/README.md b/README.md
index 3e0fbe152..7e9664a27 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,8 @@
-Kymatio: wavelet scattering in PyTorch
+Kymatio: Wavelet scattering in PyTorch
======================================
Kymatio is an implementation of the wavelet scattering transform in the Python p... |
encode__django-rest-framework-4256 | Two slightly different iso 8601 datetime serialization
## 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 b... | [
{
"content": "\"\"\"\nHelper classes for parsers.\n\"\"\"\nfrom __future__ import unicode_literals\n\nimport datetime\nimport decimal\nimport json\nimport uuid\n\nfrom django.db.models.query import QuerySet\nfrom django.utils import six, timezone\nfrom django.utils.encoding import force_text\nfrom django.utils.... | [
{
"content": "\"\"\"\nHelper classes for parsers.\n\"\"\"\nfrom __future__ import unicode_literals\n\nimport datetime\nimport decimal\nimport json\nimport uuid\n\nfrom django.db.models.query import QuerySet\nfrom django.utils import six, timezone\nfrom django.utils.encoding import force_text\nfrom django.utils.... | diff --git a/rest_framework/utils/encoders.py b/rest_framework/utils/encoders.py
index e5b52ea5f9..8203a7bc8c 100644
--- a/rest_framework/utils/encoders.py
+++ b/rest_framework/utils/encoders.py
@@ -28,8 +28,6 @@ def default(self, obj):
return force_text(obj)
elif isinstance(obj, datetime.datetime... |
common-workflow-language__cwltool-744 | Searching for node/nodejs in sandboxjs.py broken
## Expected Behavior
Checking for the existence of nodejs or node should not throw an exception.
## Actual Behavior
The code that checks for the presence of node/nodejs does not catch the correct exception when a given binary is not present. It should just gracefull... | [
{
"content": "from __future__ import absolute_import\nimport errno\nimport json\nimport logging\nimport os\nimport re\nimport select\nimport threading\nimport sys\nfrom io import BytesIO\nfrom typing import Any, Dict, List, Mapping, Text, Tuple, Union\nimport six\nfrom pkg_resources import resource_stream\nfrom... | [
{
"content": "from __future__ import absolute_import\nimport errno\nimport json\nimport logging\nimport os\nimport re\nimport select\nimport threading\nimport sys\nfrom io import BytesIO\nfrom typing import Any, Dict, List, Mapping, Text, Tuple, Union\nimport six\nfrom pkg_resources import resource_stream\nfrom... | diff --git a/cwltool/sandboxjs.py b/cwltool/sandboxjs.py
index e61705ea3..e2915da0a 100644
--- a/cwltool/sandboxjs.py
+++ b/cwltool/sandboxjs.py
@@ -71,13 +71,8 @@ def new_js_proc(js_text, force_docker_pull=False):
required_node_version = check_js_threshold_version(n)
break
- ... |
readthedocs__readthedocs.org-2119 | Add tests for BitBucket post-commit hooks
We currently have tests for Gitlab and GitHub hooks, but not BitBucket. They should go here: https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/rtd_tests/tests/test_post_commit_hooks.py
| [
{
"content": "\"\"\"Project models\"\"\"\n\nimport fnmatch\nimport logging\nimport sys\nimport os\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import MultipleObjectsReturned\nfrom django.core.urlresolvers import reverse\nfrom django.db import mode... | [
{
"content": "\"\"\"Project models\"\"\"\n\nimport fnmatch\nimport logging\nimport sys\nimport os\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import MultipleObjectsReturned\nfrom django.core.urlresolvers import reverse\nfrom django.db import mode... | diff --git a/docs/webhooks.rst b/docs/webhooks.rst
index c3e1b780f58..e912e15f529 100644
--- a/docs/webhooks.rst
+++ b/docs/webhooks.rst
@@ -21,7 +21,10 @@ your docs whenever you push updates:
* Check "Active"
* Click "Add service"
-**Note:** The GitHub URL in your Read the Docs project must match the URL on GitHub... |
readthedocs__readthedocs.org-11410 | Notification: clarify _readthedocs/html path solution
If you don't output a file during the build, you will see the following notification:

However, if you try outputting to this path without using the env... | [
{
"content": "import copy\nimport textwrap\n\nimport structlog\nfrom django.template import Context, Template\nfrom django.utils.translation import gettext_noop as _\n\nfrom readthedocs.core.context_processors import readthedocs_processor\nfrom readthedocs.doc_builder.exceptions import (\n BuildAppError,\n ... | [
{
"content": "import copy\nimport textwrap\n\nimport structlog\nfrom django.template import Context, Template\nfrom django.utils.translation import gettext_noop as _\n\nfrom readthedocs.core.context_processors import readthedocs_processor\nfrom readthedocs.doc_builder.exceptions import (\n BuildAppError,\n ... | diff --git a/readthedocs/notifications/messages.py b/readthedocs/notifications/messages.py
index 154b784e7c6..e51f659a887 100644
--- a/readthedocs/notifications/messages.py
+++ b/readthedocs/notifications/messages.py
@@ -232,8 +232,9 @@ def get_rendered_body(self):
header=_("No HTML content found"),
b... |
pymedusa__Medusa-6000 | [APP SUBMITTED]: AttributeError: 'Episode' object has no attribute 'validate_location'
### INFO
**Python Version**: `3.6.7 (default, Oct 21 2018, 08:08:16) [GCC 8.2.0]`
**Operating System**: `Linux-4.9.35-v7+-armv7l-with-debian-buster-sid`
**Locale**: `UTF-8`
**Branch**: [develop](../tree/develop)
**Database**: `44.13... | [
{
"content": "# coding=utf-8\n\nfrom __future__ import unicode_literals\n\nimport errno\nimport io\nimport logging\nimport os\nimport re\nfrom builtins import object\nfrom builtins import str\n\nfrom medusa import app, exception_handler, helpers\nfrom medusa.helper.common import replace_extension\nfrom medusa.h... | [
{
"content": "# coding=utf-8\n\nfrom __future__ import unicode_literals\n\nimport errno\nimport io\nimport logging\nimport os\nimport re\nfrom builtins import object\nfrom builtins import str\n\nfrom medusa import app, exception_handler, helpers\nfrom medusa.helper.common import replace_extension\nfrom medusa.h... | diff --git a/medusa/metadata/generic.py b/medusa/metadata/generic.py
index 6ca1a2c0bf..8133c428d4 100644
--- a/medusa/metadata/generic.py
+++ b/medusa/metadata/generic.py
@@ -168,7 +168,7 @@ def get_show_file_path(self, show_obj):
return os.path.join(show_obj.validate_location, self._show_metadata_filename)
... |
WeblateOrg__weblate-8014 | Analysis issues do not link to content
This is the e-mail I got about QR Code Generator/Translations
"
'Expecting property name enclosed in double quotes: line 2 column 3 (char 4)'
Erroneous file
src/_locales/en/messages.json"
Would expect link to source and respective Weblate section here.
| [
{
"content": "#\n# Copyright © 2012–2022 Michal Čihař <michal@cihar.com>\n#\n# This file is part of Weblate <https://weblate.org/>\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 Free Software Foundation, e... | [
{
"content": "#\n# Copyright © 2012–2022 Michal Čihař <michal@cihar.com>\n#\n# This file is part of Weblate <https://weblate.org/>\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 Free Software Foundation, e... | diff --git a/weblate/accounts/notifications.py b/weblate/accounts/notifications.py
index fdc56b4ceb68..f9d0ad250442 100644
--- a/weblate/accounts/notifications.py
+++ b/weblate/accounts/notifications.py
@@ -472,6 +472,16 @@ class ParseErrorNotification(Notification):
verbose = _("Parse error")
template_name =... |
yt-project__yt-4607 | BLD: future-compat issue with numpy (numpy 1.7 deprecated C API)
### Bug report
**Bug summary**
We've had build-time warnings `"Using deprecated NumPy API..."` for ever, and until recently there was nothing to be done about it, because the C code using deprecating numpy API was generated by Cython and there was n... | [
{
"content": "import contextlib\nimport glob\nimport logging\nimport os\nimport platform\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\nfrom textwrap import dedent\nfrom concurrent.futures import ThreadPoolExecutor\nfrom distutils.ccompiler import CCompiler, new_compiler\nfrom distutils.sysconf... | [
{
"content": "import contextlib\nimport glob\nimport logging\nimport os\nimport platform\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\nfrom textwrap import dedent\nfrom concurrent.futures import ThreadPoolExecutor\nfrom distutils.ccompiler import CCompiler, new_compiler\nfrom distutils.sysconf... | diff --git a/setupext.py b/setupext.py
index 006bb582af2..59110fd6d21 100644
--- a/setupext.py
+++ b/setupext.py
@@ -409,6 +409,12 @@ def finalize_options(self):
self.include_dirs.append(numpy.get_include())
self.include_dirs.append(ewah_bool_utils.get_include())
+ define_macros =... |
cleanlab__cleanlab-477 | fix return type of get_label_quality_scores in token classification
The function only returns a `Tuple[np.ndarray, list]`, but it is annotated with:
https://github.com/cleanlab/cleanlab/blob/fad4eb266dee8b9e2925d3f0d74fe4a81939eb8a/cleanlab/token_classification/rank.py#L36
| [
{
"content": "# Copyright (C) 2017-2022 Cleanlab Inc.\n# This file is part of cleanlab.\n#\n# cleanlab is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as published\n# by the Free Software Foundation, either version 3 of the License, or\n# (... | [
{
"content": "# Copyright (C) 2017-2022 Cleanlab Inc.\n# This file is part of cleanlab.\n#\n# cleanlab is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as published\n# by the Free Software Foundation, either version 3 of the License, or\n# (... | diff --git a/cleanlab/token_classification/rank.py b/cleanlab/token_classification/rank.py
index ababfd63b1..8af3586cfb 100644
--- a/cleanlab/token_classification/rank.py
+++ b/cleanlab/token_classification/rank.py
@@ -33,7 +33,7 @@ def get_label_quality_scores(
token_score_method: str = "self_confidence",
se... |
dmlc__dgl-3696 | [Bug] FileExistsError when sometimes importing dgl from multiprocess training
## 🐛 Bug
Sometimes, when I launch my Pytorch distributed trainer (which spawns multiple trainer processes, eg once for each GPU for multi-gpu model training), my training job fails with the following error:
```
# pardon the possibly out... | [
{
"content": "import argparse\nimport os\nimport json\n\ndef set_default_backend(default_dir, backend_name):\n if not os.path.exists(default_dir):\n os.makedirs(default_dir)\n config_path = os.path.join(default_dir, 'config.json')\n with open(config_path, \"w\") as config_file: \n json.du... | [
{
"content": "import argparse\nimport os\nimport json\n\ndef set_default_backend(default_dir, backend_name):\n # the exists_ok requires python >= 3.2\n os.makedirs(default_dir, exists_ok=True)\n config_path = os.path.join(default_dir, 'config.json')\n with open(config_path, \"w\") as config_file: \n... | diff --git a/python/dgl/backend/set_default_backend.py b/python/dgl/backend/set_default_backend.py
index 54d8ad07e0df..86a8bf01f1ae 100644
--- a/python/dgl/backend/set_default_backend.py
+++ b/python/dgl/backend/set_default_backend.py
@@ -3,8 +3,8 @@
import json
def set_default_backend(default_dir, backend_name):
-... |
django-cms__django-cms-2750 | 'WSGIRequest' object has no attribute 'user'
404's will throw this error:
Internal Server Error: /xxx
Traceback (most recent call last):
File "/virtualenvs/xxx/lib/python2.7/site-packages/django/core/handlers/base.py", line 201, in get_response
response = middleware_method(request, response)
File "/virtualenvs... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nEdit Toolbar middleware\n\"\"\"\nfrom cms.plugin_pool import plugin_pool\nfrom cms.toolbar.toolbar import CMSToolbar\nfrom cms.utils.i18n import force_language\nfrom django.contrib.admin.models import LogEntry\nfrom menus.menu_pool import menu_pool\nfrom django.htt... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nEdit Toolbar middleware\n\"\"\"\nfrom cms.plugin_pool import plugin_pool\nfrom cms.toolbar.toolbar import CMSToolbar\nfrom cms.utils.i18n import force_language\nfrom django.contrib.admin.models import LogEntry\nfrom menus.menu_pool import menu_pool\nfrom django.htt... | diff --git a/cms/middleware/toolbar.py b/cms/middleware/toolbar.py
index 8d9fc6075bd..03331c2c9da 100755
--- a/cms/middleware/toolbar.py
+++ b/cms/middleware/toolbar.py
@@ -85,7 +85,7 @@ def process_response(self, request, response):
break
if found:
add_never_cache_headers(respons... |
pytorch__examples-1098 | minGPT-ddp: AttributeError: 'Trainer' object has no attribute 'dataloader'
When executing examples/distributed/minGPT-ddp/mingpt/main.py
This error is raised when trying to train minGPT.
Python version: main branch
## Possible Solution
113 def _run_epoch(self, epoch: int, dataloader: DataLoader, train: bo... | [
{
"content": "\"\"\"\nSimple training loop; Boilerplate that could apply to any arbitrary neural network,\nso nothing in this file really has anything to do with GPT specifically.\n\"\"\"\n\nfrom dataclasses import dataclass, asdict\nfrom collections import OrderedDict\nfrom typing import Optional, Any, Dict\ni... | [
{
"content": "\"\"\"\nSimple training loop; Boilerplate that could apply to any arbitrary neural network,\nso nothing in this file really has anything to do with GPT specifically.\n\"\"\"\n\nfrom dataclasses import dataclass, asdict\nfrom collections import OrderedDict\nfrom typing import Optional, Any, Dict\ni... | diff --git a/distributed/minGPT-ddp/mingpt/trainer.py b/distributed/minGPT-ddp/mingpt/trainer.py
index ddce75f439..843265343b 100644
--- a/distributed/minGPT-ddp/mingpt/trainer.py
+++ b/distributed/minGPT-ddp/mingpt/trainer.py
@@ -111,7 +111,7 @@ def _run_batch(self, source, targets, train: bool = True) -> float:
... |
e-valuation__EvaP-848 | Username case sensitivity
Usernames are case sensitive. The importer makes all usernames lowercase, but automatically created accounts when logging in with Kerberos authentification can have uppercase letters.
This can lead to two users having the same username and then the system crashed on login.
Automatically creat... | [
{
"content": "from django import forms\nfrom django.contrib.auth import authenticate\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.views.decorators.debug import sensitive_variables\n\nfrom evap.evaluation.models import UserProfile\n\n\nclass LoginUsernameForm(forms.Form):\n \"\"\"Form... | [
{
"content": "from django import forms\nfrom django.contrib.auth import authenticate\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.views.decorators.debug import sensitive_variables\n\nfrom evap.evaluation.models import UserProfile\n\n\nclass LoginUsernameForm(forms.Form):\n \"\"\"Form... | diff --git a/evap/evaluation/forms.py b/evap/evaluation/forms.py
index 2b398e3c4c..8d4abb8746 100644
--- a/evap/evaluation/forms.py
+++ b/evap/evaluation/forms.py
@@ -29,6 +29,9 @@ def clean_password(self):
username = self.cleaned_data.get('username')
password = self.cleaned_data.get('password')
+ ... |
ipython__ipython-6931 | console config not written
assigning to @minrk who said: "Oh jeez, I don't wanna fix that right now". Marking it two-point-oh.
| [
{
"content": "# encoding: utf-8\n\"\"\"\nAn application for managing IPython profiles.\n\nTo be invoked as the `ipython profile` subcommand.\n\nAuthors:\n\n* Min RK\n\n\"\"\"\nfrom __future__ import print_function\n\n#-----------------------------------------------------------------------------\n# Copyright (C... | [
{
"content": "# encoding: utf-8\n\"\"\"\nAn application for managing IPython profiles.\n\nTo be invoked as the `ipython profile` subcommand.\n\nAuthors:\n\n* Min RK\n\n\"\"\"\nfrom __future__ import print_function\n\n#-----------------------------------------------------------------------------\n# Copyright (C... | diff --git a/IPython/core/profileapp.py b/IPython/core/profileapp.py
index 9ae10713bc7..b5b2fdce626 100644
--- a/IPython/core/profileapp.py
+++ b/IPython/core/profileapp.py
@@ -262,6 +262,7 @@ def init_config_files(self):
apps = [TerminalIPythonApp]
for app_path in (
'IPython.kernel.zmq.k... |
freedomofpress__securedrop-2465 | Logging out a source does not display a localized "Thank you for exiting your session!" message
# Bug
## Description
When a source clears their session via the logout button, their locale is popped as well. Thus, the following message is not displayed in the correct language.
```
Important!
Thank you for exi... | [
{
"content": "import operator\nimport os\n\nfrom datetime import datetime\nfrom flask import (Blueprint, render_template, flash, redirect, url_for, g,\n session, current_app, request, Markup, abort)\nfrom flask_babel import gettext\nfrom sqlalchemy.exc import IntegrityError\n\nimport crypto_ut... | [
{
"content": "import operator\nimport os\n\nfrom datetime import datetime\nfrom flask import (Blueprint, render_template, flash, redirect, url_for, g,\n session, current_app, request, Markup, abort)\nfrom flask_babel import gettext\nfrom sqlalchemy.exc import IntegrityError\n\nimport crypto_ut... | diff --git a/securedrop/sass/_base.sass b/securedrop/sass/_base.sass
index 7ca9f8c725..e92d1c2b98 100644
--- a/securedrop/sass/_base.sass
+++ b/securedrop/sass/_base.sass
@@ -55,6 +55,12 @@
&:hover
color: $color_purple_medium
+ .localized
+ text-align: left
+
+ &:dir(rtl)
+ text-align: rig... |
ansible__ansible-22664 | syslog_json callback doesn't cast SYSLOG_PORT value from environment as integer
##### ISSUE TYPE
<!--- Pick one below and delete the rest: -->
- Bug Report
##### COMPONENT NAME
<!--- Name of the module/plugin/task/feature -->
syslog_json callback plugin
##### ANSIBLE VERSION
<!--- Paste verbatim output from... | [
{
"content": "# Make coding more python3-ish\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\nimport os\nimport json\n\nimport logging\nimport logging.handlers\n\nimport socket\n\nfrom ansible.plugins.callback import CallbackBase\n\nclass CallbackModule(CallbackBase):... | [
{
"content": "# Make coding more python3-ish\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\nimport os\nimport json\n\nimport logging\nimport logging.handlers\n\nimport socket\n\nfrom ansible.plugins.callback import CallbackBase\n\nclass CallbackModule(CallbackBase):... | diff --git a/lib/ansible/plugins/callback/syslog_json.py b/lib/ansible/plugins/callback/syslog_json.py
index 2d67c09d16b2d7..7a5338606420ef 100644
--- a/lib/ansible/plugins/callback/syslog_json.py
+++ b/lib/ansible/plugins/callback/syslog_json.py
@@ -38,7 +38,7 @@ def __init__(self):
self.handler = logging.h... |
elastic__ecs-1115 | [Bug][ECS 1.7] Strip `index` attributes on `wildcard` mappings
**Description of the issue:**
The 1.7 experimental `wildcard` mappings need to have the `index` attribute stripped from them. The one that was causing problems for me is here:
https://github.com/elastic/ecs/blob/3edb6f2cf2c657f88875011625cd1801709c5d5... | [
{
"content": "import copy\n\nfrom generators import ecs_helpers\nfrom schema import visitor\n\n# This script performs a few cleanup functions in place, within the deeply nested\n# 'fields' structure passed to `clean(fields)`.\n#\n# What happens here:\n#\n# - check that mandatory attributes are present, without ... | [
{
"content": "import copy\n\nfrom generators import ecs_helpers\nfrom schema import visitor\n\n# This script performs a few cleanup functions in place, within the deeply nested\n# 'fields' structure passed to `clean(fields)`.\n#\n# What happens here:\n#\n# - check that mandatory attributes are present, without ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index edd614a6b0..c06a627c99 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,7 +19,7 @@ All notable changes to this project will be documented in this file based on the
* Added `threat.technique.subtechnique` to capture MITRE ATT&CK® subtechniques. #951
* Added `configurat... |
arviz-devs__arviz-1659 | from_pyro fails when MCMC is run on GPU
When MCMC is performed on a GPU, from_pyro fails, as the sites returned by
`trace = pyro.poutine.trace(self.model).get_trace(*self._args, **self._kwargs)` can be tensors that still live on the GPU.
This will cause this line to break:
https://github.com/arviz-devs/arviz/blob/... | [
{
"content": "\"\"\"Pyro-specific conversion code.\"\"\"\nimport logging\nfrom typing import Callable, Optional\nimport warnings\n\nimport numpy as np\nfrom packaging import version\n\nfrom .. import utils\nfrom ..rcparams import rcParams\nfrom .base import dict_to_dataset, requires\nfrom .inference_data import... | [
{
"content": "\"\"\"Pyro-specific conversion code.\"\"\"\nimport logging\nfrom typing import Callable, Optional\nimport warnings\n\nimport numpy as np\nfrom packaging import version\n\nfrom .. import utils\nfrom ..rcparams import rcParams\nfrom .base import dict_to_dataset, requires\nfrom .inference_data import... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 56af478e65..347606d10b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@
* Improve error messages in `stats.compare()`, and `var_name` parameter. ([1616](https://github.com/arviz-devs/arviz/pull/1616))
### Maintenance and fixes
+* Fixed conversion of Pyro ... |
elastic__apm-agent-python-1738 | RuntimeError: dictionary changed size during iteration
**Describe the bug**
In one of our services, we're occasionally seeing a `RuntimeError: dictionary changed size during iteration` error within `elasticapm` code.
Here's the stack trace:
```
File "/usr/local/lib/python3.9/site-packages/cheroot/server.py", ... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# BSD 3-Clause License\n#\n# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted p... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# BSD 3-Clause License\n#\n# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted p... | diff --git a/elasticapm/utils/encoding.py b/elasticapm/utils/encoding.py
index aa277c229..4455f2685 100644
--- a/elasticapm/utils/encoding.py
+++ b/elasticapm/utils/encoding.py
@@ -130,7 +130,8 @@ class value_type(list):
except AttributeError:
ret = None
elif isinstance(value, dict):
- ... |
nf-core__tools-1329 | nf-core lint throws exception when --dir is used
Running `nf-core lint` throws the following exception when using the `--dir` option
## Steps to reproduce
```bash
$ nf-core lint --dir nf-core-testpipeline
,--./,-.
___ __ __ __ ___ /,-._.--~\
... | [
{
"content": "import glob\nimport json\nimport os\nimport requests\nimport logging\nimport rich\nimport datetime\nimport questionary\n\n\nimport nf_core.utils\n\nfrom .modules_repo import ModulesRepo\nfrom .nfcore_module import NFCoreModule\n\nlog = logging.getLogger(__name__)\n\n\nclass ModuleException(Excepti... | [
{
"content": "import glob\nimport json\nimport os\nimport requests\nimport logging\nimport rich\nimport datetime\nimport questionary\n\n\nimport nf_core.utils\n\nfrom .modules_repo import ModulesRepo\nfrom .nfcore_module import NFCoreModule\n\nlog = logging.getLogger(__name__)\n\n\nclass ModuleException(Excepti... | diff --git a/nf_core/modules/module_utils.py b/nf_core/modules/module_utils.py
index 6ef675bf95..ce8a802746 100644
--- a/nf_core/modules/module_utils.py
+++ b/nf_core/modules/module_utils.py
@@ -344,8 +344,8 @@ def get_repo_type(dir):
raise LookupError("Could not find directory: {}".format(dir))
# Deter... |
saleor__saleor-2345 | Featured products section should not be shown if there is none
If there is no featured products, the home page should not show the empty section.
### Screenshots

| [
{
"content": "import json\n\nfrom django.contrib import messages\nfrom django.template.response import TemplateResponse\nfrom django.utils.translation import pgettext_lazy\nfrom impersonate.views import impersonate as orig_impersonate\n\nfrom ..account.models import User\nfrom ..dashboard.views import staff_mem... | [
{
"content": "import json\n\nfrom django.contrib import messages\nfrom django.template.response import TemplateResponse\nfrom django.utils.translation import pgettext_lazy\nfrom impersonate.views import impersonate as orig_impersonate\n\nfrom ..account.models import User\nfrom ..dashboard.views import staff_mem... | diff --git a/saleor/core/views.py b/saleor/core/views.py
index 4034b143bf3..9ce3f49e7dc 100644
--- a/saleor/core/views.py
+++ b/saleor/core/views.py
@@ -14,9 +14,9 @@
def home(request):
products = products_for_homepage()[:8]
- products = products_with_availability(
+ products = list(products_with_availabi... |
awslabs__gluonts-1114 | Plotting compatibility with Quantile Forecasts
## Description
When attempting to plot prediction intervals for MQCNN (or other estimators that implement a QuantileForecast for their predictor), the plotting function does not plot intervals as its functionality is intended to. Instead, it plots a single line (which I u... | [
{
"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 c0bce548ea..9ca68d49ea 100644
--- a/src/gluonts/model/forecast.py
+++ b/src/gluonts/model/forecast.py
@@ -559,6 +559,22 @@ def __repr__(self):
]
)
+ def plot(self, label=None, output_file=None, keys=None, *args, ... |
microsoft__botbuilder-python-302 | NumberPrompt doesn't accept retry value
## Version
v4.5
## Describe the bug
When you send an invalid number to a `NumberPrompt`, it sends out a retry prompt.
When attempting to send a 2nd response after being reprompted, you get a timeout error.
## To Reproduce
1. Create a `NumberPrompt` object
2. When i... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nfrom typing import Callable, Dict\n\nfrom recognizers_number import recognize_number\nfrom recognizers_text import Culture, ModelResult\nfrom babel.numbers import parse_decimal\n\nfrom botbuilder.core... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nfrom typing import Callable, Dict\n\nfrom recognizers_number import recognize_number\nfrom recognizers_text import Culture, ModelResult\nfrom babel.numbers import parse_decimal\n\nfrom botbuilder.core... | diff --git a/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/number_prompt.py b/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/number_prompt.py
index cddb174c9..ed757c391 100644
--- a/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/number_prompt.py
+++ b/libraries/botbuilder-dialogs/botbuilder/... |
docker__docker-py-1399 | docker-py installation breaks docker-compose
im not quite sure if this is correct, but trying to install `docker-py` through pip after i've installed `docker-compose` breaks `docker-compose` with
```
Traceback (most recent call last):
File "/usr/local/bin/docker-compose", line 7, in <module>
from compose.cl... | [
{
"content": "#!/usr/bin/env python\nimport codecs\nimport os\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nROOT_DIR = os.path.dirname(__file__)\nSOURCE_DIR = os.path.join(ROOT_DIR)\n\nrequirements = [\n 'requests >= 2.5.2, != 2.11.0, != 2.12.2',\n 'six >= 1.4.0',\n 'websocket-client ... | [
{
"content": "#!/usr/bin/env python\nfrom __future__ import print_function\n\nimport codecs\nimport os\nimport sys\n\nimport pip\n\nfrom setuptools import setup, find_packages\n\nif 'docker-py' in [x.project_name for x in pip.get_installed_distributions()]:\n print(\n 'ERROR: \"docker-py\" needs to be... | diff --git a/setup.py b/setup.py
index b82a74f7d..9fc4ad66e 100644
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,20 @@
#!/usr/bin/env python
+from __future__ import print_function
+
import codecs
import os
import sys
+import pip
+
from setuptools import setup, find_packages
+if 'docker-py' in [x.project_name for x... |
plotly__dash-365 | Dash's config validation prevents `requests_pathname_prefix` and `requests_pathname_prefix` from being set
Trying to supply values for either of `requests_pathname_prefix` and `requests_pathname_prefix` results in an error:
```
dash.exceptions.InvalidConfig:
You supplied `url_base_pathname` and `requests_pathn... | [
{
"content": "from __future__ import print_function\n\nimport os\nimport sys\nimport collections\nimport importlib\nimport json\nimport pkgutil\nimport warnings\nimport re\n\nfrom functools import wraps\n\nimport plotly\nimport dash_renderer\nimport flask\nfrom flask import Flask, Response\nfrom flask_compress ... | [
{
"content": "from __future__ import print_function\n\nimport os\nimport sys\nimport collections\nimport importlib\nimport json\nimport pkgutil\nimport warnings\nimport re\n\nfrom functools import wraps\n\nimport plotly\nimport dash_renderer\nimport flask\nfrom flask import Flask, Response\nfrom flask_compress ... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index a56a907dd4..da8c8468a7 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -15,8 +15,12 @@ jobs:
name: Write deps cache key
command: cat "$REQUIREMENTS_FILE" > reqs.txt
+ - run:
+ name: Write job name
+ ... |
vyperlang__vyper-2070 | In comparator fails when array is in calldata
### Version Information
* vyper Version : `0.1.0b17`
* OS: linux
* Python Version : `3.8.0`
### What's your issue about?
Use of the `in` comparator fails when the array being checked is located in calldata:
```python
@public
def foo(a: int128, b: int128[1]) ... | [
{
"content": "from vyper import ast as vy_ast\nfrom vyper.exceptions import (\n EvmVersionException,\n StructureException,\n TypeCheckFailure,\n TypeMismatch,\n)\nfrom vyper.opcodes import version_check\nfrom vyper.parser import external_call, self_call\nfrom vyper.parser.keccak256_helper import kec... | [
{
"content": "from vyper import ast as vy_ast\nfrom vyper.exceptions import (\n EvmVersionException,\n StructureException,\n TypeCheckFailure,\n TypeMismatch,\n)\nfrom vyper.opcodes import version_check\nfrom vyper.parser import external_call, self_call\nfrom vyper.parser.keccak256_helper import kec... | diff --git a/tests/parser/features/iteration/test_range_in.py b/tests/parser/features/iteration/test_range_in.py
index 3ed6a21a0f..ab138189c0 100644
--- a/tests/parser/features/iteration/test_range_in.py
+++ b/tests/parser/features/iteration/test_range_in.py
@@ -44,6 +44,24 @@ def in_test(x: int128) -> bool:
asser... |
freqtrade__freqtrade-5434 | Running asyncio.get_event_loop() in some thread other than the main thread – however, asyncio only generates an event loop for the main thread.
OS: Ubuntu 21.04
Branch: develop
Command: freqtrade trade --config config.json --strategy SampleStrategy
....
Error Message:
Exception in thread Thread-1:
Traceback (mos... | [
{
"content": "import contextlib\nimport threading\nimport time\n\nimport uvicorn\n\n\nclass UvicornServer(uvicorn.Server):\n \"\"\"\n Multithreaded server - as found in https://github.com/encode/uvicorn/issues/742\n\n Removed install_signal_handlers() override based on changes from this commit:\n ... | [
{
"content": "import contextlib\nimport threading\nimport time\n\nimport uvicorn\n\n\nclass UvicornServer(uvicorn.Server):\n \"\"\"\n Multithreaded server - as found in https://github.com/encode/uvicorn/issues/742\n\n Removed install_signal_handlers() override based on changes from this commit:\n ... | diff --git a/freqtrade/rpc/api_server/uvicorn_threaded.py b/freqtrade/rpc/api_server/uvicorn_threaded.py
index 2f72cb74cd2..b63999f5192 100644
--- a/freqtrade/rpc/api_server/uvicorn_threaded.py
+++ b/freqtrade/rpc/api_server/uvicorn_threaded.py
@@ -32,8 +32,11 @@ def run(self, sockets=None):
asyncio_setup(... |
scoutapp__scout_apm_python-226 | Name Django Admin Views clearer
Currently, Django Admin views are captured with confusingly internal names. We should capture something clearer

| [
{
"content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport logging\n\nfrom scout_apm.core.ignore import ignore_path\nfrom scout_apm.core.queue_time import track_request_queue_time\nfrom scout_apm.core.tracked_request import TrackedRequest\n\nlogger... | [
{
"content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport logging\n\nfrom scout_apm.core.ignore import ignore_path\nfrom scout_apm.core.queue_time import track_request_queue_time\nfrom scout_apm.core.tracked_request import TrackedRequest\n\nlogger... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f451b86f..a54203f6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,11 @@
([PR #205](https://github.com/scoutapp/scout_apm_python/pull/205)).
- Track Celery task time in queue with context tag `queue_time`
([PR #206](https://github.com/scoutapp/scout_apm_py... |
python-gitlab__python-gitlab-406 | Pagination generator with non-default per_page
Currently if you request `xxx.list(as_list=False, per_page=100) you end up getting a list instead of the generator.
I think the logic in in [http_list](https://github.com/python-gitlab/python-gitlab/blob/7efbc30b9d8cf8ea856b68ab85b9cd2340121358/gitlab/__init__.py#L715) ... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2013-2017 Gauvain Pocentek <gauvain@pocentek.net>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser General Public License as published by\n# the Free Software Foundation, either version 3 ... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2013-2017 Gauvain Pocentek <gauvain@pocentek.net>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser General Public License as published by\n# the Free Software Foundation, either version 3 ... | diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index aac483728..e7b09a47f 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -743,7 +743,7 @@ def http_list(self, path, query_data={}, as_list=None, **kwargs):
if get_all is True:
return list(GitlabList(self, url, query_data, **kwargs)... |
freedomofpress__securedrop-3902 | Release SecureDrop 0.10.0
This is a tracking issue for the upcoming release of SecureDrop 0.10.0 - tasks may get added or modified.
**Feature freeze:** October 9, 2018
**String freeze:** October 16, 2018
**Pre-release announcement:** October 16, 2018
**Release date:** October 23, 2018
_SecureDrop maintainers... | [
{
"content": "__version__ = '0.10.0~rc1'\n",
"path": "securedrop/version.py"
},
{
"content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to... | [
{
"content": "__version__ = '0.11.0~rc1'\n",
"path": "securedrop/version.py"
},
{
"content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to... | diff --git a/changelog.md b/changelog.md
index 3612f8bb9f..71616c632e 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,6 +1,26 @@
# Changelog
-## 0.10.0~rc1
+## 0.11.0~rc1
+
+
+
+## 0.10.0
+
+### Web Applications
+
+* UX: modify size of input boxes to accommodate long passphrases (#3761)
+* Security bugfix: source... |
conda__conda-build-526 | AppVeyor: Commit message with braces -> failed build
https://ci.appveyor.com/project/mpi4py/mpi4py/build/2.0.0a0-13/job/0q0w2g5o32qk3m94#L522
PS: I got a warning about conda-build being outdated. Isn't `conda update --all` supposed to update it? Maybe conflicting versions with dependencies?
| [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport os\nimport sys\nimport shutil\nfrom os.path import dirname, isdir, isfile, join, exists\n\nimport conda.config as cc\nfrom conda.compat import iteritems\n\nfrom conda_build.config import config\nfrom conda_build import envi... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport os\nimport sys\nimport shutil\nfrom os.path import dirname, isdir, isfile, join, exists\n\nimport conda.config as cc\nfrom conda.compat import iteritems\n\nfrom conda_build.config import config\nfrom conda_build import envi... | diff --git a/conda_build/windows.py b/conda_build/windows.py
index c1fd67ccc9..31621b82da 100644
--- a/conda_build/windows.py
+++ b/conda_build/windows.py
@@ -116,7 +116,7 @@ def build(m):
with open(join(src_dir, 'bld.bat'), 'w') as fo:
fo.write(msvc_env_cmd())
for kv in iteritems(env... |
explosion__spaCy-3075 | Adding new labels changes the entity recognizer's predictions
## Your Environment
Location /home/damiano/lavoro/python/testing/spacy
Python version 3.5.2
Models en, it
spaCy version 2.0.0
Platform Linux-4.4.0-98-generic-x86_6... | [
{
"content": "# coding: utf8\nfrom __future__ import unicode_literals, division, print_function\n\nimport plac\nimport os\nfrom pathlib import Path\nimport tqdm\nfrom thinc.neural._classes.model import Model\nfrom timeit import default_timer as timer\nimport shutil\nimport srsly\nfrom wasabi import Printer\nimp... | [
{
"content": "# coding: utf8\nfrom __future__ import unicode_literals, division, print_function\n\nimport plac\nimport os\nfrom pathlib import Path\nimport tqdm\nfrom thinc.neural._classes.model import Model\nfrom timeit import default_timer as timer\nimport shutil\nimport srsly\nfrom wasabi import Printer\nimp... | diff --git a/spacy/cli/train.py b/spacy/cli/train.py
index e32828527ba..191a41f6710 100644
--- a/spacy/cli/train.py
+++ b/spacy/cli/train.py
@@ -221,7 +221,7 @@ def train(
(nlp.make_doc(rt["text"]) for rt in raw_text), size=8
)
words_seen = 0
- with _create_... |
mosaicml__composer-756 | BlurPool has incorrect docstrings
BlurPool docstrings imply that parameters have default values, but I don't see those in the function signatures: https://github.com/mosaicml/composer/blob/dev/composer/algorithms/blurpool/blurpool.py#L96
| [
{
"content": "# Copyright 2021 MosaicML. All Rights Reserved.\n\nfrom __future__ import annotations\n\nimport functools\nimport logging\nfrom typing import Optional\n\nimport numpy as np\nimport torch\n\nfrom composer.algorithms.blurpool.blurpool_layers import BlurConv2d, BlurMaxPool2d\nfrom composer.core impor... | [
{
"content": "# Copyright 2021 MosaicML. All Rights Reserved.\n\nfrom __future__ import annotations\n\nimport functools\nimport logging\nfrom typing import Optional\n\nimport numpy as np\nimport torch\n\nfrom composer.algorithms.blurpool.blurpool_layers import BlurConv2d, BlurMaxPool2d\nfrom composer.core impor... | diff --git a/composer/algorithms/blurpool/blurpool.py b/composer/algorithms/blurpool/blurpool.py
index c8a6b6fa2d..2870e8062d 100644
--- a/composer/algorithms/blurpool/blurpool.py
+++ b/composer/algorithms/blurpool/blurpool.py
@@ -93,7 +93,7 @@ class BlurPool(Algorithm):
See :class:`.BlurConv2d` for furthe... |
python-trio__trio-2475 | Improve `start_soon` and `connection failed` error messages
Given …
```
Traceback (most recent call last):
File "./test", line 210, in main
tg.start_soon(s.run)
File "/home/smurf/src/Mudlet/test/e2e/venv/lib/python3.8/site-packages/trio/_core/_run.py", line 983, in start_soon
GLOBAL_RUN_CONTEXT.runner... | [
{
"content": "import os\nimport sys\nimport select\nimport socket as _stdlib_socket\nfrom functools import wraps as _wraps\nfrom typing import TYPE_CHECKING\n\nimport idna as _idna\n\nimport trio\nfrom . import _core\n\n\n# Usage:\n#\n# async with _try_sync():\n# return sync_call_that_might_fail_with_ex... | [
{
"content": "import os\nimport sys\nimport select\nimport socket as _stdlib_socket\nfrom functools import wraps as _wraps\nfrom typing import TYPE_CHECKING\n\nimport idna as _idna\n\nimport trio\nfrom . import _core\n\n\n# Usage:\n#\n# async with _try_sync():\n# return sync_call_that_might_fail_with_ex... | diff --git a/newsfragments/1810.feature.rst b/newsfragments/1810.feature.rst
new file mode 100644
index 000000000..a2599d32b
--- /dev/null
+++ b/newsfragments/1810.feature.rst
@@ -0,0 +1 @@
+`trio.socket.socket` now prints the address it tried to connect to upon failure.
diff --git a/trio/_socket.py b/trio/_socket.py
i... |
Flexget__Flexget-1312 | title_from (html plugin) no longer works with magnet links
Since v2.0, title_from works incorrectly with magnet links when extracting links from html pages
### Expected behaviour:
title_from should produce a valid title for magnet links as it did with previous v1.x
### Actual behaviour:
title_from: title could not be... | [
{
"content": "from __future__ import unicode_literals, division, absolute_import\nfrom builtins import * # pylint: disable=unused-import, redefined-builtin\nfrom past.builtins import basestring\nfrom future.moves.urllib import parse\n\nimport logging\nimport posixpath\nimport zlib\nimport re\nfrom jinja2 impor... | [
{
"content": "from __future__ import unicode_literals, division, absolute_import\nfrom builtins import * # pylint: disable=unused-import, redefined-builtin\nfrom past.builtins import basestring\nfrom future.moves.urllib import parse\n\nimport logging\nimport posixpath\nimport zlib\nimport re\nfrom jinja2 impor... | diff --git a/flexget/plugins/input/html.py b/flexget/plugins/input/html.py
index 1aaec860d2..4903ee456f 100644
--- a/flexget/plugins/input/html.py
+++ b/flexget/plugins/input/html.py
@@ -151,8 +151,14 @@ def _title_from_link(self, link, log_link):
def _title_from_url(self, url):
parts = parse.urlsplit(u... |
mne-tools__mne-bids-67 | ADD: Configure CircleCI
So that we can check the artifacts tab for builds of the docs
| [
{
"content": "#! /usr/bin/env python\nfrom setuptools import setup\n\ndescr = \"\"\"Experimental code for BIDS using MNE.\"\"\"\n\nDISTNAME = 'mne-bids'\nDESCRIPTION = descr\nMAINTAINER = 'Alexandre Gramfort'\nMAINTAINER_EMAIL = 'alexandre.gramfort@telecom-paristech.fr'\nURL = 'http://martinos.org/mne'\nLICENSE... | [
{
"content": "#! /usr/bin/env python\nfrom setuptools import setup, find_packages\n\ndescr = \"\"\"Experimental code for BIDS using MNE.\"\"\"\n\nDISTNAME = 'mne-bids'\nDESCRIPTION = descr\nMAINTAINER = 'Alexandre Gramfort'\nMAINTAINER_EMAIL = 'alexandre.gramfort@telecom-paristech.fr'\nURL = 'http://martinos.or... | diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 000000000..df1cf6358
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,29 @@
+version: 2
+jobs:
+ build:
+ docker:
+ - image: circleci/python:3.7.0-stretch-node-browsers
+ steps:
+ - checkout
+ ... |
conda__conda-2108 | confusing error message when boto is missing
If one tries to install from an s3 channel (e.g., `conda install foo -c s3://bar/baz/conda`) while in an environment, this message shows up: `Error: boto is required for S3 channels. Please install it with: conda install boto`. Installing `boto` in the environment doesn't ... | [
{
"content": "# (c) 2012-2015 Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\n\nfrom __future__ import print_function, division, absolute_import\... | [
{
"content": "# (c) 2012-2015 Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\n\nfrom __future__ import print_function, division, absolute_import\... | diff --git a/conda/connection.py b/conda/connection.py
index 0984d7614b0..3b3c1deae22 100644
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -101,7 +101,9 @@ def send(self, request, stream=None, timeout=None, verify=None, cert=None,
import boto
except ImportError:
stderrlog.inf... |
frappe__frappe-16877 | bug: "is" query operator no longer working
Just checked out the latest version of the develop branch. Every doctype throws an error if i try to filter by "is" "set"/"not set"
See traceback
### App Versions
```
{
"dickerschutz": "0.0.1",
"erpnext": "14.0.0-dev",
"frappe": "14.0.0-dev"
}
```
### Route
`... | [
{
"content": "import operator\nimport re\nfrom typing import Any, Dict, List, Tuple, Union\n\nimport frappe\nfrom frappe import _\nfrom frappe.query_builder import Criterion, Field, Order, Table\n\n\ndef like(key: Field, value: str) -> frappe.qb:\n\t\"\"\"Wrapper method for `LIKE`\n\n\tArgs:\n\t key (str... | [
{
"content": "import operator\nimport re\nfrom typing import Any, Dict, List, Tuple, Union\n\nimport frappe\nfrom frappe import _\nfrom frappe.query_builder import Criterion, Field, Order, Table\n\n\ndef like(key: Field, value: str) -> frappe.qb:\n\t\"\"\"Wrapper method for `LIKE`\n\n\tArgs:\n\t key (str... | diff --git a/frappe/database/query.py b/frappe/database/query.py
index f7393bfa54f3..b107759af0ca 100644
--- a/frappe/database/query.py
+++ b/frappe/database/query.py
@@ -85,6 +85,11 @@ def func_between(key: Field, value: Union[List, Tuple]) -> frappe.qb:
return key[slice(*value)]
+def func_is(key, value):
+ "Wra... |
pytorch__vision-262 | [Feature Request] Add RandomVerticalFlip transform
Should be easy - I'll get to it in the next week if nobody else does.
| [
{
"content": "from __future__ import division\nimport torch\nimport math\nimport random\nfrom PIL import Image, ImageOps\ntry:\n import accimage\nexcept ImportError:\n accimage = None\nimport numpy as np\nimport numbers\nimport types\nimport collections\n\n\nclass Compose(object):\n \"\"\"Composes seve... | [
{
"content": "from __future__ import division\nimport torch\nimport math\nimport random\nfrom PIL import Image, ImageOps\ntry:\n import accimage\nexcept ImportError:\n accimage = None\nimport numpy as np\nimport numbers\nimport types\nimport collections\n\n\nclass Compose(object):\n \"\"\"Composes seve... | diff --git a/test/test_transforms.py b/test/test_transforms.py
index 5d0275f946f..9319fb0664a 100644
--- a/test/test_transforms.py
+++ b/test/test_transforms.py
@@ -9,6 +9,11 @@
except ImportError:
accimage = None
+try:
+ from scipy import stats
+except ImportError:
+ stats = None
+
GRACE_HOPPER = 'ass... |
urllib3__urllib3-1497 | setup.py lacks appropriate metadata for differing python versions
Please see this issue for the full context: https://github.com/NixOS/nixpkgs/issues/46318
Basically, it appears the METADATA in the resulting installation differs depending on the installation method.
I've done some minimal patching to `setup.py` t... | [
{
"content": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\nimport os\nimport re\nimport codecs\n\nbase_path = os.path.dirname(__file__)\n\n# Get the version (borrowed from SQLAlchemy)\nwith open(os.path.join(base_path, 'src', 'urllib3', '__init__.py')) as fp:\n VERSION = re.compile(r\".*__version... | [
{
"content": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\nimport os\nimport re\nimport codecs\n\nbase_path = os.path.dirname(__file__)\n\n# Get the version (borrowed from SQLAlchemy)\nwith open(os.path.join(base_path, 'src', 'urllib3', '__init__.py')) as fp:\n VERSION = re.compile(r\".*__version... | diff --git a/setup.cfg b/setup.cfg
index 69a70826b9..fd217e8ab9 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -11,9 +11,9 @@ provides-extra =
secure
socks
requires-dist =
- pyOpenSSL>=0.14; python_version=="2.7" and extra == 'secure'
- cryptography>=1.3.4; python_version=="2.7" and extra == 'secure'
- i... |
googleapis__python-bigquery-80 | chore: replace Artman with bazel for synthesizing code
The synthtool should start using bazel instead of Artman.
| [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | diff --git a/synth.py b/synth.py
index ec487eb39..d26c61489 100644
--- a/synth.py
+++ b/synth.py
@@ -17,16 +17,14 @@
import synthtool as s
from synthtool import gcp
-gapic = gcp.GAPICGenerator()
+gapic = gcp.GAPICBazel()
common = gcp.CommonTemplates()
version = 'v2'
library = gapic.py_library(
- 'bigquery',... |
encode__django-rest-framework-2331 | PaginationSerializer hardcoded to use ListSerializer
To me it feels like it should use Meta.list_serializer_class of the object serializer if it is defined instead.
``` patch
diff --git a/rest_framework/pagination.py b/rest_framework/pagination.py
index fb45128..94c2f2d 100644
--- a/rest_framework/pagination.py
+++ b/... | [
{
"content": "\"\"\"\nPagination serializers determine the structure of the output that should\nbe used for paginated responses.\n\"\"\"\nfrom __future__ import unicode_literals\nfrom rest_framework import serializers\nfrom rest_framework.templatetags.rest_framework import replace_query_param\n\n\nclass NextPag... | [
{
"content": "\"\"\"\nPagination serializers determine the structure of the output that should\nbe used for paginated responses.\n\"\"\"\nfrom __future__ import unicode_literals\nfrom rest_framework import serializers\nfrom rest_framework.templatetags.rest_framework import replace_query_param\n\n\nclass NextPag... | diff --git a/rest_framework/pagination.py b/rest_framework/pagination.py
index fb4512854e..f46b0dfa1c 100644
--- a/rest_framework/pagination.py
+++ b/rest_framework/pagination.py
@@ -68,7 +68,12 @@ def __init__(self, *args, **kwargs):
except AttributeError:
object_serializer = DefaultObjectSeriali... |
dmlc__dgl-1478 | Loading dataset PROTEINS leads to IndexError
## 🐛 Bug
<!-- A clear and concise description of what the bug is. -->
When loading dataset PROTEINS using function `LegacyTUDataset()`, raise `IndexError: too many indices for array`
## To Reproduce
Steps to reproduce the behavior:
```python
from dgl.data import... | [
{
"content": "from __future__ import absolute_import\nimport numpy as np\nimport os\nimport random\n\nfrom .utils import download, extract_archive, get_download_dir, loadtxt\nfrom ..graph import DGLGraph\n\nclass LegacyTUDataset(object):\n \"\"\"\n TUDataset contains lots of graph kernel datasets for grap... | [
{
"content": "from __future__ import absolute_import\nimport numpy as np\nimport os\nimport random\n\nfrom .utils import download, extract_archive, get_download_dir, loadtxt\nfrom ..graph import DGLGraph\n\nclass LegacyTUDataset(object):\n \"\"\"\n TUDataset contains lots of graph kernel datasets for grap... | diff --git a/python/dgl/data/tu.py b/python/dgl/data/tu.py
index 71fe0dfdd276..3b62478a577d 100644
--- a/python/dgl/data/tu.py
+++ b/python/dgl/data/tu.py
@@ -75,6 +75,8 @@ def __init__(self, name, use_pandas=False,
try:
DS_node_attr = np.loadtxt(
self._file_path("node_attributes"... |
cal-itp__benefits-1201 | Remove auto-forward for single-verifier agencies
In #337 we introduced handling for an eligibility verifier selection form, which supports choosing between e.g. verifying eligibility with Login.gov or with a Courtesy Card. We also added [a shortcut](https://github.com/cal-itp/benefits/blob/dev/benefits/eligibility/view... | [
{
"content": "\"\"\"\nThe eligibility application: view definitions for the eligibility verification flow.\n\"\"\"\nfrom django.contrib import messages\nfrom django.shortcuts import redirect\nfrom django.template.response import TemplateResponse\nfrom django.urls import reverse\nfrom django.utils.decorators imp... | [
{
"content": "\"\"\"\nThe eligibility application: view definitions for the eligibility verification flow.\n\"\"\"\nfrom django.contrib import messages\nfrom django.shortcuts import redirect\nfrom django.template.response import TemplateResponse\nfrom django.urls import reverse\nfrom django.utils.decorators imp... | diff --git a/benefits/eligibility/views.py b/benefits/eligibility/views.py
index 8d639d55c7..db5ddb2caf 100644
--- a/benefits/eligibility/views.py
+++ b/benefits/eligibility/views.py
@@ -74,12 +74,7 @@ def index(request):
page.forms = [form]
response = TemplateResponse(request, TEMPLATE_INDEX,... |
PrefectHQ__prefect-7242 | Creating a Task from a callable object fails if the task does not have a name
@jmg-duarte The following test fails
```python
def test_task_run_from_callable_object(self):
class Foo:
message = "hello"
def __call__(self, prefix: str, suffix: str) -> Any:
... | [
{
"content": "\"\"\"\nModule containing the base workflow task class and decorator - for most use cases, using the [`@task` decorator][prefect.tasks.task] is preferred.\n\"\"\"\n# This file requires type-checking with pyright because mypy does not yet support PEP612\n# See https://github.com/python/mypy/issues/... | [
{
"content": "\"\"\"\nModule containing the base workflow task class and decorator - for most use cases, using the [`@task` decorator][prefect.tasks.task] is preferred.\n\"\"\"\n# This file requires type-checking with pyright because mypy does not yet support PEP612\n# See https://github.com/python/mypy/issues/... | diff --git a/src/prefect/tasks.py b/src/prefect/tasks.py
index a7451b217556..ae0e5f61fd67 100644
--- a/src/prefect/tasks.py
+++ b/src/prefect/tasks.py
@@ -148,7 +148,14 @@ def __init__(
self.fn = fn
self.isasync = inspect.iscoroutinefunction(self.fn)
- self.name = name or self.fn.__name__
+ ... |
mkdocs__mkdocs-1318 | Broken links/css in readthedocs 404 page
The [404.html](https://github.com/mkdocs/mkdocs/blob/master/mkdocs/themes/readthedocs/404.html) added in 0.17.0 seems to have broken links and css ([failing CI build](https://travis-ci.org/opensciencegrid/docs/builds/290469999?utm_source=github_status&utm_medium=notification)).... | [
{
"content": "from __future__ import unicode_literals\n\nimport logging\nimport shutil\nimport tempfile\n\nfrom os.path import isfile, join\nfrom mkdocs.commands.build import build\nfrom mkdocs.config import load_config\n\nlog = logging.getLogger(__name__)\n\n\ndef _get_handler(site_dir, StaticFileHandler):\n\n... | [
{
"content": "from __future__ import unicode_literals\n\nimport logging\nimport shutil\nimport tempfile\n\nfrom os.path import isfile, join\nfrom mkdocs.commands.build import build\nfrom mkdocs.config import load_config\n\nlog = logging.getLogger(__name__)\n\n\ndef _get_handler(site_dir, StaticFileHandler):\n\n... | diff --git a/docs/about/release-notes.md b/docs/about/release-notes.md
index 8f876d4267..31692a4497 100644
--- a/docs/about/release-notes.md
+++ b/docs/about/release-notes.md
@@ -21,6 +21,10 @@ The current and past members of the MkDocs team.
* [@d0ugal](https://github.com/d0ugal/)
* [@waylan](https://github.com/wayl... |
django-compressor__django-compressor-554 | error with django.template.loaders.cached.Loader
## settings.py
``` py
TEMPLATE_LOADERS = (
('django.template.loaders.cached.Loader', (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)),
)
```
## Traceback
``` py
Traceback (most recent call last)... | [
{
"content": "from __future__ import absolute_import\nfrom copy import copy\n\nfrom django import template\nfrom django.conf import settings\nfrom django.template import Context\nfrom django.template.base import Node, VariableNode, TextNode, NodeList\nfrom django.template.defaulttags import IfNode\nfrom django.... | [
{
"content": "from __future__ import absolute_import\nfrom copy import copy\n\nfrom django import template\nfrom django.conf import settings\nfrom django.template import Context\nfrom django.template.base import Node, VariableNode, TextNode, NodeList\nfrom django.template.defaulttags import IfNode\nfrom django.... | diff --git a/compressor/offline/django.py b/compressor/offline/django.py
index 39865626c..b32609365 100644
--- a/compressor/offline/django.py
+++ b/compressor/offline/django.py
@@ -54,6 +54,8 @@ def remove_block_nodes(nodelist, block_stack, block_context):
if not block_stack:
conti... |
paperless-ngx__paperless-ngx-5210 | [BUG] FILENAME_FORMAT_REMOVE_NONE breaks certain storage paths
### Description
While investigating https://github.com/paperless-ngx/paperless-ngx/discussions/4856 I came across the following bug:
The storage path `XX{correspondent}/{title}` will not work correctly, if the correspondent is missing and `FILENAME_FORM... | [
{
"content": "import logging\nimport os\nfrom collections import defaultdict\nfrom pathlib import PurePath\n\nimport pathvalidate\nfrom django.conf import settings\nfrom django.template.defaultfilters import slugify\nfrom django.utils import timezone\n\nfrom documents.models import Document\n\nlogger = logging.... | [
{
"content": "import logging\nimport os\nfrom collections import defaultdict\nfrom pathlib import PurePath\n\nimport pathvalidate\nfrom django.conf import settings\nfrom django.template.defaultfilters import slugify\nfrom django.utils import timezone\n\nfrom documents.models import Document\n\nlogger = logging.... | diff --git a/src/documents/file_handling.py b/src/documents/file_handling.py
index d9601ccd92f..246d03d55af 100644
--- a/src/documents/file_handling.py
+++ b/src/documents/file_handling.py
@@ -222,7 +222,7 @@ def generate_filename(
).strip()
if settings.FILENAME_FORMAT_REMOVE_NONE:
- ... |
DataBiosphere__toil-1586 | _fixPermissions isn't being used in dockerCall
From the code:
```
# We call this explicitly later on in this function, but we defer it as well to handle unexpected job failure.
job.defer(_fixPermissions, tool, workDir)
```
Then it is never explicitly called. Things are mostly working OK right now since most o... | [
{
"content": "\"\"\"\n Module for calling Docker. Assumes `docker` is on the PATH.\n\n Contains two user-facing functions: dockerCall and dockerCheckOutput\n\n Uses Toil's defer functionality to ensure containers are shutdown even in case of job or pipeline failure\n\n Example of using dockerCall in... | [
{
"content": "\"\"\"\n Module for calling Docker. Assumes `docker` is on the PATH.\n\n Contains two user-facing functions: dockerCall and dockerCheckOutput\n\n Uses Toil's defer functionality to ensure containers are shutdown even in case of job or pipeline failure\n\n Example of using dockerCall in... | diff --git a/src/toil/lib/docker.py b/src/toil/lib/docker.py
index 19d8a6f9b6..13d9aabbe5 100644
--- a/src/toil/lib/docker.py
+++ b/src/toil/lib/docker.py
@@ -164,11 +164,16 @@ def _docker(job,
if outfile:
subprocess.check_call(call, stdout=outfile)
+ _fixPermissions(tool=tool, workDir=workDir)
... |
huggingface__diffusers-4982 | Graph compile breaks due to logging.info
### Describe the bug
When building a unet via `torch.compile(pipeline.unet)`, I receive an error.
### Reproduction
1. Load SD 2.1 `ptx0/pseudo-flex-base`
2. Compile the unet
3. See that the error prevents continuance
4. Remove the logging.info line from the module
5. Comp... | [
{
"content": "# Copyright 2023 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.org/licenses/LICENSE-2.0\n#... | [
{
"content": "# Copyright 2023 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.org/licenses/LICENSE-2.0\n#... | diff --git a/src/diffusers/models/unet_2d_condition.py b/src/diffusers/models/unet_2d_condition.py
index d695d182fa37..60b66a7fdf04 100644
--- a/src/diffusers/models/unet_2d_condition.py
+++ b/src/diffusers/models/unet_2d_condition.py
@@ -784,7 +784,7 @@ def forward(
upsample_size = None
if any(s % ... |
getsentry__sentry-37553 | Cannot edit or delete alerts
### Environment
SaaS (https://sentry.io/)
### Version
_No response_
### Steps to Reproduce
1. Have alerts that were set up a while ago
2. Get a bunch of emails from one alert that is too touchy
3. Try to edit alert (fails)
4. Try to delete alert (fails)
### Expected Result
Can edi... | [
{
"content": "from rest_framework.exceptions import PermissionDenied\nfrom rest_framework.request import Request\n\nfrom sentry import features\nfrom sentry.api.bases.organization import OrganizationAlertRulePermission, OrganizationEndpoint\nfrom sentry.api.bases.project import ProjectAlertRulePermission, Proje... | [
{
"content": "from rest_framework.exceptions import PermissionDenied\nfrom rest_framework.request import Request\n\nfrom sentry import features\nfrom sentry.api.bases.organization import OrganizationAlertRulePermission, OrganizationEndpoint\nfrom sentry.api.bases.project import ProjectAlertRulePermission, Proje... | diff --git a/src/sentry/incidents/endpoints/bases.py b/src/sentry/incidents/endpoints/bases.py
index d34a426a91518a..8fa529fc05fbd3 100644
--- a/src/sentry/incidents/endpoints/bases.py
+++ b/src/sentry/incidents/endpoints/bases.py
@@ -38,7 +38,10 @@ def convert_args(self, request: Request, alert_rule_id, *args, **kwarg... |
bridgecrewio__checkov-3595 | Markdown output extension is .txt not .md
**Describe the issue**
The markdown output extension is .txt not .md
**Additional context**
[The error can be found on line 333 of runner_registry.py](https://github.com/bridgecrewio/checkov/blob/ed8c376e6d03d962dac470148f1f84bc1b2eb5cc/checkov/common/runners/runner_regist... | [
{
"content": "from __future__ import annotations\n\nimport argparse\nimport itertools\nimport json\nimport logging\nimport os\nimport re\n\nfrom collections import defaultdict\nfrom collections.abc import Iterable\nfrom json import dumps\nfrom pathlib import Path\nfrom typing import List, Dict, Any, Optional, c... | [
{
"content": "from __future__ import annotations\n\nimport argparse\nimport itertools\nimport json\nimport logging\nimport os\nimport re\n\nfrom collections import defaultdict\nfrom collections.abc import Iterable\nfrom json import dumps\nfrom pathlib import Path\nfrom typing import List, Dict, Any, Optional, c... | diff --git a/checkov/common/runners/runner_registry.py b/checkov/common/runners/runner_registry.py
index e2823b2f8f..386e2ec438 100644
--- a/checkov/common/runners/runner_registry.py
+++ b/checkov/common/runners/runner_registry.py
@@ -330,7 +330,7 @@ def print_reports(
# Save output to file
file_nam... |
awslabs__gluonts-2526 | aggregate_valid strategy for Evaluator fails
## Description
(A clear and concise description of what the bug is.)
```aggregate_valid``` for the ```Evaluator``` class fails with the below error message. This is likely due to applying the following code snippet on the ```item_id``` and ```forecast_start``` fields which... | [
{
"content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\").\n# You may not use this file except in compliance with the License.\n# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE... | [
{
"content": "# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\").\n# You may not use this file except in compliance with the License.\n# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICE... | diff --git a/src/gluonts/evaluation/_base.py b/src/gluonts/evaluation/_base.py
index 38fbaf88cf..fb90372770 100644
--- a/src/gluonts/evaluation/_base.py
+++ b/src/gluonts/evaluation/_base.py
@@ -94,7 +94,9 @@ def aggregate_valid(
If all metrics in a column of `metric_per_ts` are `nan` or `inf` the result
will... |
conda__conda-7525 | should_bypass_proxies still an issue in 4.5.7
https://github.com/conda/conda/issues/7506#issuecomment-403811279
| [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\nfrom functools import partial\n\ndef should_bypass_proxies_patched(should_bypass_proxies_func, url, no_proxy):\n # Monkey patch requests, per https://github.com/requests/requests/pull/47... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\nfrom functools import partial\n\ndef should_bypass_proxies_patched(should_bypass_proxies_func, url, no_proxy=None):\n # Monkey patch requests, per https://github.com/requests/requests/pu... | diff --git a/conda/gateways/connection/__init__.py b/conda/gateways/connection/__init__.py
index 986e70625b2..153a70b1150 100644
--- a/conda/gateways/connection/__init__.py
+++ b/conda/gateways/connection/__init__.py
@@ -2,7 +2,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals
fr... |
svthalia__concrexit-2497 | Untranslated email subject
### Describe the bug
We just got an email from Cato:
<img width="655" alt="image" src="https://user-images.githubusercontent.com/1576660/191570837-0b3bf3e8-4c38-4113-8351-b505d83e97ea.png">
| [
{
"content": "\"\"\"The emails defined by the members package.\"\"\"\nfrom datetime import timedelta\nimport logging\n\nfrom django.conf import settings\nfrom django.core.mail import EmailMultiAlternatives\nfrom django.template.loader import get_template\nfrom django.core import mail\nfrom django.template impor... | [
{
"content": "\"\"\"The emails defined by the members package.\"\"\"\nfrom datetime import timedelta\nimport logging\n\nfrom django.conf import settings\nfrom django.core.mail import EmailMultiAlternatives\nfrom django.template.loader import get_template\nfrom django.core import mail\nfrom django.template impor... | diff --git a/website/members/emails.py b/website/members/emails.py
index 37e50c705..b13f753b0 100644
--- a/website/members/emails.py
+++ b/website/members/emails.py
@@ -230,7 +230,7 @@ def send_email_change_completion_message(change_request):
:param change_request the email change request entered by the user
... |
ivy-llc__ivy-17914 | angle
| [
{
"content": "# local\r\nimport ivy\r\nimport ivy.functional.frontends.paddle as paddle_frontend\r\nfrom ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes\r\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\r\n\r\n\r\nclass Tensor:\r\n def __init__(self, array, dtyp... | [
{
"content": "# local\r\nimport ivy\r\nimport ivy.functional.frontends.paddle as paddle_frontend\r\nfrom ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes\r\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\r\n\r\n\r\nclass Tensor:\r\n def __init__(self, array, dtyp... | diff --git a/ivy/functional/frontends/paddle/tensor/tensor.py b/ivy/functional/frontends/paddle/tensor/tensor.py
index 0adece1ee7556..3ad41b3fb91e7 100644
--- a/ivy/functional/frontends/paddle/tensor/tensor.py
+++ b/ivy/functional/frontends/paddle/tensor/tensor.py
@@ -284,3 +284,10 @@ def cumprod(self, dim=None, dtype=... |
mindsdb__mindsdb-130 | Cleanup before releasing v.1.0
* Remove any unused files
* Remove any unused variable and functions (loads of those in config I'd think)
* Remove any unused requirements
* Update the version for requirements
* Update and standardize the interface of older functions and add comments to them (probably won't have time... | [
{
"content": "import setuptools\n\nabout = {}\nwith open(\"mindsdb/__about__.py\") as fp:\n exec(fp.read(), about)\n\nlong_description = open('README.md', encoding='utf-8').read()\n\nwith open('requirements.txt') as req_file:\n requirements = req_file.read().splitlines()\n\nsetuptools.setup(\n name=abo... | [
{
"content": "import setuptools\nimport subprocess\n\nabout = {}\nwith open(\"mindsdb/__about__.py\") as fp:\n exec(fp.read(), about)\n\nlong_description = open('README.md', encoding='utf-8').read()\n\nwith open('requirements.txt') as req_file:\n requirements = req_file.read().splitlines()\n\nsetuptools.s... | diff --git a/requirements-win.txt b/requirements-win.txt
index 227bfe4d856..2d032e422b9 100644
--- a/requirements-win.txt
+++ b/requirements-win.txt
@@ -1,46 +1,26 @@
cython>=0.29.2
setuptools==21.2.1
wheel>=0.26.0
-xlrd>=0.9.0
attrs>=18.2.0
-socketio==0.1.4
-eventlet>=0.24.1
-openpyxl>=2.5.8
-Automat>=0.7.0
certi... |
cal-itp__benefits-2023 | `Eligibility index`: update copy to be more consistent and provide context for user
| Desktop (showing MST) | Mobile (showing SBMTD) |
| --- | --- |
|  | \... | [
{
"content": "\"\"\"\nThe eligibility application: Form definition for the eligibility verification flow.\n\"\"\"\n\nimport logging\n\nfrom django import forms\nfrom django.utils.translation import gettext_lazy as _\n\nfrom benefits.core import models, recaptcha, widgets\n\nlogger = logging.getLogger(__name__)\... | diff --git a/benefits/eligibility/forms.py b/benefits/eligibility/forms.py
index a088f04ff1..fca3403aa2 100644
--- a/benefits/eligibility/forms.py
+++ b/benefits/eligibility/forms.py
@@ -21,7 +21,7 @@ class EligibilityVerifierSelectionForm(forms.Form):
verifier = forms.ChoiceField(label="", widget=widgets.Verifi... |
holoviz__panel-3770 | Performance problems with panel > 0.13 and Lab3
We are experiencing some performance behaviors with panel > 0.13
The problems we are facing are:
- General lab slowness and input lags on Jupyter Lab
- Random kernel crashes while using tools (can also happen in non Panel tools)
- On local Windows machined we can... | [
{
"content": "\"\"\"\nUtilities for creating bokeh Server instances.\n\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport datetime as dt\nimport gc\nimport html\nimport importlib\nimport logging\nimport os\nimport pathlib\nimport signal\nimport sys\nimport threading\nimport traceback\nimport uu... | [
{
"content": "\"\"\"\nUtilities for creating bokeh Server instances.\n\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport datetime as dt\nimport gc\nimport html\nimport importlib\nimport logging\nimport os\nimport pathlib\nimport signal\nimport sys\nimport threading\nimport traceback\nimport uu... | diff --git a/panel/io/server.py b/panel/io/server.py
index b2e514e2da..05ab7469a0 100644
--- a/panel/io/server.py
+++ b/panel/io/server.py
@@ -540,7 +540,9 @@ def create_static_handler(prefix, key, app):
sys.version_info[:3] >= (3, 8, 0) and
tornado.version_info >= (6, 1) and
type(asyncio.get_event_loop_... |
ivy-llc__ivy-26775 | ifft2
ifft2
| [
{
"content": "import ivy\nfrom ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back\nfrom ivy.func_wrapper import with_unsupported_dtypes\n\n\n# --- Helpers --- #\n# --------------- #\n\n\ndef _swap_direction(norm):\n try:\n return _SWAP_DIRECTION_MAP[norm]\n except KeyError:\n... | [
{
"content": "import ivy\nfrom ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back\nfrom ivy.func_wrapper import with_unsupported_dtypes\n\n\n# --- Helpers --- #\n# --------------- #\n\n\ndef _swap_direction(norm):\n try:\n return _SWAP_DIRECTION_MAP[norm]\n except KeyError:\n... | diff --git a/ivy/functional/frontends/numpy/fft/discrete_fourier_transform.py b/ivy/functional/frontends/numpy/fft/discrete_fourier_transform.py
index 51ac7b49b2443..0ebebf13d2625 100644
--- a/ivy/functional/frontends/numpy/fft/discrete_fourier_transform.py
+++ b/ivy/functional/frontends/numpy/fft/discrete_fourier_tran... |
alltheplaces__alltheplaces-2456 | Spider academy is broken
During the global build at 2021-05-21-20-28-08, spider **academy** failed with **0 features** and **0 errors**.
Here's [the log](https://data.alltheplaces.xyz/runs/2021-05-21-20-28-08/logs/academy.log) and [the output](https://data.alltheplaces.xyz/runs/2021-05-21-20-28-08/output/academy.geojs... | [
{
"content": "# -*- coding: utf-8 -*-\nimport json\nimport re\n\nimport scrapy\nfrom scrapy.utils.gz import gunzip\n\nfrom locations.items import GeojsonPointItem\nfrom locations.hours import OpeningHours\n\n\nclass AcademySpider(scrapy.Spider):\n name = \"academy\"\n item_attributes = {'brand': 'Academy ... | [
{
"content": "# -*- coding: utf-8 -*-\nimport json\nimport re\n\nimport scrapy\nfrom scrapy.utils.gz import gunzip\n\nfrom locations.items import GeojsonPointItem\nfrom locations.hours import OpeningHours\n\n\nclass AcademySpider(scrapy.Spider):\n name = \"academy\"\n item_attributes = {'brand': 'Academy ... | diff --git a/locations/spiders/academy.py b/locations/spiders/academy.py
index 6e803cd8e3d..78b3f33eee7 100644
--- a/locations/spiders/academy.py
+++ b/locations/spiders/academy.py
@@ -23,7 +23,7 @@ def parse(self, response):
body.remove_namespaces()
urls = body.xpath('//url/loc/text()').extract()
... |
jschneier__django-storages-723 | Invalid sas_token was generated
https://github.com/jschneier/django-storages/blob/b441b74a17a46eb87ee4b10f60774b9a080c0fe1/storages/backends/azure_storage.py#L260
I think this should be corrected as follows.
sas_token = self.service.generate_blob_shared_access_signature(
self.azure_container, nam... | [
{
"content": "from __future__ import unicode_literals\n\nimport mimetypes\nimport re\nfrom datetime import datetime, timedelta\nfrom tempfile import SpooledTemporaryFile\n\nfrom azure.common import AzureMissingResourceHttpError\nfrom azure.storage.blob import BlobPermissions, ContentSettings\nfrom azure.storage... | [
{
"content": "from __future__ import unicode_literals\n\nimport mimetypes\nimport re\nfrom datetime import datetime, timedelta\nfrom tempfile import SpooledTemporaryFile\n\nfrom azure.common import AzureMissingResourceHttpError\nfrom azure.storage.blob import BlobPermissions, ContentSettings\nfrom azure.storage... | diff --git a/storages/backends/azure_storage.py b/storages/backends/azure_storage.py
index f476fd87a..e4caf0e51 100644
--- a/storages/backends/azure_storage.py
+++ b/storages/backends/azure_storage.py
@@ -257,7 +257,7 @@ def url(self, name, expire=None):
make_blob_url_kwargs = {}
if expire:
... |
jupyterhub__jupyterhub-366 | Proxy target missing with Spawner form page
I'm trying out the new Spawner form feature described in https://github.com/jupyter/jupyterhub/pull/355 and I ran into a problem. I'm using Jupyterhub with the SystemUserSpawner.
When I define a form for the Spawner like this:
``` python
c.SystemUserSpawner.options_form = ... | [
{
"content": "\"\"\"HTTP Handlers for the hub server\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport re\nfrom datetime import timedelta\nfrom http.client import responses\n\nfrom jinja2 import TemplateNotFound\n\nfrom tornado.log import ap... | [
{
"content": "\"\"\"HTTP Handlers for the hub server\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport re\nfrom datetime import timedelta\nfrom http.client import responses\n\nfrom jinja2 import TemplateNotFound\n\nfrom tornado.log import ap... | diff --git a/jupyterhub/handlers/base.py b/jupyterhub/handlers/base.py
index ec54834f23..0a00af84cc 100644
--- a/jupyterhub/handlers/base.py
+++ b/jupyterhub/handlers/base.py
@@ -454,6 +454,7 @@ def get(self, name):
if status is not None:
if current_user.spawner.options_form:
... |
googleapis__python-bigquery-250 | RowIterator to_dataframe requires pyarrow >= 1.0.0 to work
Currently the google-cloud-bigquery library requires pyarrow > 0.16.0, however the method RowIterator.to_dataframe adds the kwarg "timestamp_as_object", which is only supported in pyarrow >= 1.0.0. If install pyarrow >= 1.0.0, everything works as expected, howe... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | diff --git a/setup.py b/setup.py
index f30968364..d23f77b1c 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@
# as `google-api-core[grpc]`. We thus need to explicitly specify it here.
# See: https://github.com/googleapis/python-bigquery/issues/83
"grpcio >= 1.8.2, < 2.0dev",
- "py... |
wright-group__WrightTools-763 | Interact2D fails when passed certain types of transformed data
Error:
```
File "/home/darien/source/WrightTools/WrightTools/artists/_interact.py", line 147, in interact2D
varis.remove(v.natural_name)
ValueError: list.remove(x): x not in list
```
Examples:
```
import WrightTools as wt
import numpy as np
... | [
{
"content": "\"\"\"Interactive (widget based) artists.\"\"\"\n\nimport numpy as np\nimport matplotlib as mpl\nimport matplotlib.pyplot as plt\nfrom matplotlib.widgets import Slider, RadioButtons\n\nfrom ._helpers import create_figure, plot_colorbar, add_sideplot\nfrom ._colors import colormaps\nfrom ..exceptio... | [
{
"content": "\"\"\"Interactive (widget based) artists.\"\"\"\n\nimport numpy as np\nimport matplotlib as mpl\nimport matplotlib.pyplot as plt\nfrom matplotlib.widgets import Slider, RadioButtons\n\nfrom ._helpers import create_figure, plot_colorbar, add_sideplot\nfrom ._colors import colormaps\nfrom ..exceptio... | diff --git a/WrightTools/artists/_interact.py b/WrightTools/artists/_interact.py
index c067eb917..41bc41c36 100644
--- a/WrightTools/artists/_interact.py
+++ b/WrightTools/artists/_interact.py
@@ -144,7 +144,10 @@ def interact2D(data, xaxis=0, yaxis=1, channel=0, local=False, verbose=True):
varis = list(data.varia... |
quantumlib__Cirq-3387 | check/pylint sometimes doesn't check imports
An unused import (`Optional`) passed CI here: https://github.com/quantumlib/Cirq/blame/master/cirq/ops/pauli_gates.py#L15
Now I'm getting an error for that on Travis: https://travis-ci.com/quantumlib/Cirq/jobs/225990740#L253
When I run pylint locally, I don't catch thi... | [
{
"content": "# Copyright 2018 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 2018 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/check/pylint-changed-files b/check/pylint-changed-files
index bd096c09605..706add00b9b 100755
--- a/check/pylint-changed-files
+++ b/check/pylint-changed-files
@@ -54,7 +54,7 @@ else
fi
changed=$(git diff --name-only ${rev} -- \
- | grep -E "^(cirq|dev_tools|examples).*"
+ | grep -E "^(cirq|dev_t... |
apache__airflow-16601 | Airflow logging secrets masker assumes dict_key is type `str`
**Apache Airflow version**: 2.1.0
**What happened**:
Airflow logging assume dict_key is type `str`
```
logging.info("Dictionary where key is int type: %s", modified_table_mapping)
File "/usr/lib64/python3.6/logging/__init__.py", line 1902, in in... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | diff --git a/airflow/utils/log/secrets_masker.py b/airflow/utils/log/secrets_masker.py
index 9756c98978a75..21822fb9272bc 100644
--- a/airflow/utils/log/secrets_masker.py
+++ b/airflow/utils/log/secrets_masker.py
@@ -63,7 +63,7 @@ def should_hide_value_for_key(name):
"""Should the value for this given name (Variab... |
keras-team__keras-nlp-195 | Why does the docstring say vocab size should be no larger than 999?
https://github.com/keras-team/keras-nlp/blob/e3adddaa98bbe1aee071117c01678fe3017dae80/keras_nlp/layers/token_and_position_embedding.py#L30
Seems like a very small vocab to me
| [
{
"content": "# Copyright 2022 The KerasNLP Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b... | [
{
"content": "# Copyright 2022 The KerasNLP Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b... | diff --git a/keras_nlp/layers/token_and_position_embedding.py b/keras_nlp/layers/token_and_position_embedding.py
index 8fbf86aef7..e2607ee651 100644
--- a/keras_nlp/layers/token_and_position_embedding.py
+++ b/keras_nlp/layers/token_and_position_embedding.py
@@ -26,8 +26,7 @@ class TokenAndPositionEmbedding(keras.layer... |
psychopy__psychopy-5353 | Joystick `Device is already open` exception with pyglet backend
With the pyglet backend, creating a second Joystick object results in an exception:
```python
>>> from psychopy.hardware import joystick
pygame 2.1.2 (SDL 2.0.16, Python 3.9.15)
Hello from the pygame community. https://www.pygame.org/contribute.html
... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"Control joysticks and gamepads from within PsychoPy.\n\nYou do need a window (and you need to be flipping it) for the joystick to be\nupdated.\n\nKnown issues:\n - currently under pyglet the joystick axes initialise to a value of zero\n ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"Control joysticks and gamepads from within PsychoPy.\n\nYou do need a window (and you need to be flipping it) for the joystick to be\nupdated.\n\nKnown issues:\n - currently under pyglet the joystick axes initialise to a value of zero\n ... | diff --git a/docs/source/general/index.rst b/docs/source/general/index.rst
index 2031a6d007..bef444ffc4 100644
--- a/docs/source/general/index.rst
+++ b/docs/source/general/index.rst
@@ -15,6 +15,7 @@ These are issues that users should be aware of, whether they are using Builder o
dataOutputs
gamma
renderin... |
nilearn__nilearn-1532 | region_extractor.connected_regions gets zero volume from affine
in
https://github.com/nilearn/nilearn/blob/master/nilearn/regions/region_extractor.py#L188
volume is computed from affine diagonal. This is making my extraction fails because my affine is
```Python
np.array([[0.3, 0 , 0 , -14.55],
[0 ... | [
{
"content": "\"\"\"\nBetter brain parcellations for Region of Interest analysis\n\"\"\"\n\nimport numbers\nimport collections\nimport numpy as np\n\nfrom scipy import ndimage\nfrom scipy.stats import scoreatpercentile\n\nfrom sklearn.externals.joblib import Memory\n\nfrom .. import masking\nfrom ..input_data i... | [
{
"content": "\"\"\"\nBetter brain parcellations for Region of Interest analysis\n\"\"\"\n\nimport numbers\nimport collections\nimport numpy as np\n\nfrom scipy import ndimage\nfrom scipy.stats import scoreatpercentile\n\nfrom sklearn.externals.joblib import Memory\n\nfrom .. import masking\nfrom ..input_data i... | diff --git a/nilearn/regions/region_extractor.py b/nilearn/regions/region_extractor.py
index e808f9cdee..c84bfc9c22 100644
--- a/nilearn/regions/region_extractor.py
+++ b/nilearn/regions/region_extractor.py
@@ -185,7 +185,7 @@ def connected_regions(maps_img, min_region_size=1350,
maps_img = check_niimg(maps_img, a... |
kivy__kivy-1902 | Showcase crash on android (sometimes)
Here is the backtrace i just got:
```
I/python (18144): [INFO ] [Base ] Leaving application in progress...
I/python (18144): Traceback (most recent call last):
I/python (18144): File "/home/tito/code/kivy/examples/demo/showcase/main.py", line 212, in <mo... | [
{
"content": "'''\nAction Bar\n==========\n\n.. versionadded:: 1.8.0\n\n.. image:: images/actionbar.png\n :align: right\n\nThe ActionBar widget is like Android's ActionBar, where items are stacked\nhorizontally.\n\nThe :class:`ActionBar` will contain one :class:`ActionView` and many\n:class:`ContextualAction... | [
{
"content": "'''\nAction Bar\n==========\n\n.. versionadded:: 1.8.0\n\n.. image:: images/actionbar.png\n :align: right\n\nThe ActionBar widget is like Android's ActionBar, where items are stacked\nhorizontally.\n\nThe :class:`ActionBar` will contain one :class:`ActionView` and many\n:class:`ContextualAction... | diff --git a/kivy/uix/actionbar.py b/kivy/uix/actionbar.py
index 2321581204..b9a7a74df4 100644
--- a/kivy/uix/actionbar.py
+++ b/kivy/uix/actionbar.py
@@ -289,8 +289,12 @@ def _toggle_dropdown(self, *largs):
if not ddn.container:
return
children = ddn.container.children
- ddn.width... |
TileDB-Inc__TileDB-Py-464 | from_pandas throws Exception "Tile extent exceeds dimension domain range"
Connected to pydev debugger (build 201.8743.12)
Traceback (most recent call last):
File "tiledb/libtiledb.pyx", line 2569, in tiledb.libtiledb.Dim.__init__
File "tiledb/libtiledb.pyx", line 483, in tiledb.libtiledb.check_error
File "til... | [
{
"content": "import json\nimport sys\nimport os\nimport io\nimport copy\nfrom collections import OrderedDict\nimport warnings\n\nimport numpy as np\nimport tiledb\nfrom tiledb import TileDBError\n#from tiledb.tests.common import xprint\n\nif sys.version_info >= (3,3):\n unicode_type = str\nelse:\n unicod... | [
{
"content": "import json\nimport sys\nimport os\nimport io\nimport copy\nfrom collections import OrderedDict\nimport warnings\n\nimport numpy as np\nimport tiledb\nfrom tiledb import TileDBError\n#from tiledb.tests.common import xprint\n\nif sys.version_info >= (3,3):\n unicode_type = str\nelse:\n unicod... | diff --git a/tiledb/dataframe_.py b/tiledb/dataframe_.py
index 26318b5bab..9d2397aeff 100644
--- a/tiledb/dataframe_.py
+++ b/tiledb/dataframe_.py
@@ -257,7 +257,7 @@ def dim_for_column(ctx, name, dim_info, col, tile=None, full_domain=False,
dim_max = np.max(col_values)
if not dim_info.dtype in (np.byte... |
conda__conda-build-2281 | "hoisting" unpacked source up one level fails names are identical
I ran into a problem writing a recipe for the package montage (source link is http://montage.ipac.caltech.edu/download/Montage_v5.0.tar.gz). The tarball unpacks into a directory called `Montage`, which contains in it a folder also called `Montage`. in [`... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport io\nimport locale\nimport os\nfrom os.path import join, isdir, isfile, abspath, basename, exists, normpath, expanduser\nimport re\nimport shutil\nfrom subprocess import CalledProcessError\nimport sys\nimport time\n\nfrom .c... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport io\nimport locale\nimport os\nfrom os.path import join, isdir, isfile, abspath, basename, exists, normpath, expanduser\nimport re\nimport shutil\nfrom subprocess import CalledProcessError\nimport sys\nimport time\n\nfrom .c... | diff --git a/conda_build/source.py b/conda_build/source.py
index eb035e895b..2877d3b6e5 100644
--- a/conda_build/source.py
+++ b/conda_build/source.py
@@ -91,7 +91,11 @@ def hoist_single_extracted_folder(nested_folder):
flist = os.listdir(nested_folder)
parent = os.path.dirname(nested_folder)
for thing i... |
lutris__lutris-1904 | Higher resolution icons are still saved in 32x32 directory
Despite Lutris bumping its icon size to 128x128 (currently it's still 64x64 as bump to 128x128 hasn't been deployed yet), it still saves the icons into `icons/hicolor/32x32`.
It should probably not do that and save it in proper 128x128 location instead.
| [
{
"content": "\"\"\"Internal settings.\"\"\"\nimport os\nfrom gi.repository import GLib\nfrom lutris.util.settings import SettingsIO\nfrom lutris import __version__\n\nPROJECT = \"Lutris\"\nVERSION = __version__\nCOPYRIGHT = \"(c) 2010-2019 Lutris Gaming Platform\"\nAUTHORS = [\n \"The Lutris team\"\n]\n\n# ... | [
{
"content": "\"\"\"Internal settings.\"\"\"\nimport os\nfrom gi.repository import GLib\nfrom lutris.util.settings import SettingsIO\nfrom lutris import __version__\n\nPROJECT = \"Lutris\"\nVERSION = __version__\nCOPYRIGHT = \"(c) 2010-2019 Lutris Gaming Platform\"\nAUTHORS = [\n \"The Lutris team\"\n]\n\n# ... | diff --git a/lutris.spec b/lutris.spec
index 742d7bad85..c3b8c2094a 100644
--- a/lutris.spec
+++ b/lutris.spec
@@ -127,6 +127,8 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{appid}.desktop
%{_datadir}/icons/hicolor/24x24/apps/lutris.png
%{_datadir}/icons/hicolor/32x32/apps/lutris.png
%{_datadir}/ic... |
ansible__ansible-11609 | set_fact skipping
The following code works under ansible 1.9 but fails on the latest devel checkout. It runs the same rules, but skips the set_fact command.
```
- name: Set zookeeper ID facts
gather_facts: True
hosts: zookeeper
user: username
sudo: True
tasks:
- set_fact: zkid={{ item.0 | int + 1 }}
... | [
{
"content": "# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible 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 Licen... | [
{
"content": "# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible 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 Licen... | diff --git a/lib/ansible/executor/task_result.py b/lib/ansible/executor/task_result.py
index ad209a036cd998..d633f20736be45 100644
--- a/lib/ansible/executor/task_result.py
+++ b/lib/ansible/executor/task_result.py
@@ -40,7 +40,14 @@ def is_changed(self):
return self._check_key('changed')
def is_skipped... |
getsentry__sentry-python-2240 | SDK should not include `sentry-trace` header in outgoing requests to Sentry
The SDK HTTP client integration should treat requests made by the SDK itself different than other uses of the same HTTP client.
See the last line in:
```
(e) ~/s/sentry-python ❯❯❯ ipython master ◼
Py... | [
{
"content": "import re\nimport contextlib\n\nimport sentry_sdk\nfrom sentry_sdk.consts import OP\nfrom sentry_sdk.utils import (\n capture_internal_exceptions,\n Dsn,\n match_regex_list,\n to_string,\n)\nfrom sentry_sdk._compat import PY2, iteritems\nfrom sentry_sdk._types import TYPE_CHECKING\n\ni... | [
{
"content": "import re\nimport contextlib\n\nimport sentry_sdk\nfrom sentry_sdk.consts import OP\nfrom sentry_sdk.utils import (\n capture_internal_exceptions,\n Dsn,\n match_regex_list,\n to_string,\n)\nfrom sentry_sdk._compat import PY2, iteritems\nfrom sentry_sdk._types import TYPE_CHECKING\n\ni... | diff --git a/sentry_sdk/tracing_utils.py b/sentry_sdk/tracing_utils.py
index 110a6952db..762dca1723 100644
--- a/sentry_sdk/tracing_utils.py
+++ b/sentry_sdk/tracing_utils.py
@@ -374,6 +374,15 @@ def should_propagate_trace(hub, url):
client = hub.client # type: Any
trace_propagation_targets = client.options[... |
ManimCommunity__manim-2359 | ValueError when invoking cfg write -l user from the command line ( jupyter : media_width )
## Description of bug / unexpected behavior
<!-- Add a clear and concise description of the problem you encountered. -->
I was testing the command to write to a manim config file and found a bug caused by the percentage sign ... | [
{
"content": "\"\"\"Manim's cfg subcommand.\n\nManim's cfg subcommand is accessed in the command-line interface via ``manim\ncfg``. Here you can specify options, subcommands, and subgroups for the cfg\ngroup.\n\n\"\"\"\nimport os\nfrom ast import literal_eval\nfrom typing import Union\n\nimport click\nfrom rich... | [
{
"content": "\"\"\"Manim's cfg subcommand.\n\nManim's cfg subcommand is accessed in the command-line interface via ``manim\ncfg``. Here you can specify options, subcommands, and subgroups for the cfg\ngroup.\n\n\"\"\"\nimport os\nfrom ast import literal_eval\nfrom typing import Union\n\nimport click\nfrom rich... | diff --git a/manim/cli/cfg/group.py b/manim/cli/cfg/group.py
index c872da941f..4e6c1c4ec4 100644
--- a/manim/cli/cfg/group.py
+++ b/manim/cli/cfg/group.py
@@ -201,11 +201,13 @@ def write(level: str = None, openfile: bool = False) -> None:
)
temp = input()
- ... |
RedHatInsights__insights-core-2486 | InsightsEvaluator ignores its stream argument during construction
The [InsightsEvaluator](https://github.com/RedHatInsights/insights-core/blob/master/insights/core/evaluators.py#L121) ignores its stream argument and passes `sys.stdout` to its superclass constructor.
| [
{
"content": "import logging\nimport six\nimport sys\n\nfrom collections import defaultdict\n\nfrom ..formats import Formatter\nfrom ..specs import Specs\nfrom ..combiners.hostname import hostname as combiner_hostname\nfrom ..parsers.branch_info import BranchInfo\nfrom . import dr, plugins\n\nlog = logging.getL... | [
{
"content": "import logging\nimport six\nimport sys\n\nfrom collections import defaultdict\n\nfrom ..formats import Formatter\nfrom ..specs import Specs\nfrom ..combiners.hostname import hostname as combiner_hostname\nfrom ..parsers.branch_info import BranchInfo\nfrom . import dr, plugins\n\nlog = logging.getL... | diff --git a/insights/core/evaluators.py b/insights/core/evaluators.py
index aecf6bf4bf..13791a1476 100644
--- a/insights/core/evaluators.py
+++ b/insights/core/evaluators.py
@@ -118,7 +118,7 @@ def handle_result(self, plugin, r):
class InsightsEvaluator(SingleEvaluator):
def __init__(self, broker=None, system_... |
PokemonGoF__PokemonGo-Bot-4925 | Evolving all pokemon after update
### Expected Behavior
Only evolve pokemon in the evolve_list
### Actual Behavior
Evolving all pokemon
### Your FULL config.json (remove your username, password, gmapkey and any other private info)
http://pastebin.com/xZgs68YY
### Output when issue occurred
[2016-08-30 10:20:09] [po... | [
{
"content": "from random import uniform\n\nfrom pokemongo_bot import inventory\nfrom pokemongo_bot.human_behaviour import sleep\nfrom pokemongo_bot.inventory import Pokemon\nfrom pokemongo_bot.item_list import Item\nfrom pokemongo_bot.base_task import BaseTask\nfrom pokemongo_bot.datastore import Datastore\n\n... | [
{
"content": "from random import uniform\n\nfrom pokemongo_bot import inventory\nfrom pokemongo_bot.human_behaviour import sleep\nfrom pokemongo_bot.inventory import Pokemon\nfrom pokemongo_bot.item_list import Item\nfrom pokemongo_bot.base_task import BaseTask\nfrom pokemongo_bot.datastore import Datastore\n\n... | diff --git a/pokemongo_bot/cell_workers/evolve_pokemon.py b/pokemongo_bot/cell_workers/evolve_pokemon.py
index d1177050ac..48ea4316ed 100644
--- a/pokemongo_bot/cell_workers/evolve_pokemon.py
+++ b/pokemongo_bot/cell_workers/evolve_pokemon.py
@@ -45,6 +45,9 @@ def work(self):
filtered_list = self._sort_and_f... |
vega__altair-1907 | Interval Selection Example Bug
I am having trouble with the the [Interval Selection Example](https://altair-viz.github.io/gallery/interval_selection.html).

```python
import altair as alt
fro... | [
{
"content": "\"\"\"\nInterval Selection Example\n==========================\n\nThis is an example of creating a stacked chart for which the domain of the\ntop chart can be selected by interacting with the bottom chart.\n\"\"\"\n# category: area charts\nimport altair as alt\nfrom vega_datasets import data\n\nso... | [
{
"content": "\"\"\"\nInterval Selection Example\n==========================\n\nThis is an example of creating a stacked chart for which the domain of the\ntop chart can be selected by interacting with the bottom chart.\n\"\"\"\n# category: area charts\nimport altair as alt\nfrom vega_datasets import data\n\nso... | diff --git a/altair/examples/interval_selection.py b/altair/examples/interval_selection.py
index 0ddcc2ff8..55853d9af 100644
--- a/altair/examples/interval_selection.py
+++ b/altair/examples/interval_selection.py
@@ -13,15 +13,19 @@
brush = alt.selection(type='interval', encodings=['x'])
-upper = alt.Chart(source)... |
scrapy__scrapy-1979 | empty WARNING message in scrapy.core.downloader.tls (1.1.0rc4/master)
Sometimes I'm getting empty warnings now, on 1.1.0rc4 and master branch.
(at least on rc3 as well)
```
2016-05-07 00:33:46 [scrapy.core.downloader.tls] WARNING:
2016-05-07 00:33:47 [scrapy.core.downloader.tls] WARNING:
2016-05-07 00:33:48 [scrapy.... | [
{
"content": "import logging\nfrom OpenSSL import SSL\n\n\nlogger = logging.getLogger(__name__)\n\nMETHOD_SSLv3 = 'SSLv3'\nMETHOD_TLS = 'TLS'\nMETHOD_TLSv10 = 'TLSv1.0'\nMETHOD_TLSv11 = 'TLSv1.1'\nMETHOD_TLSv12 = 'TLSv1.2'\n\nopenssl_methods = {\n METHOD_TLS: SSL.SSLv23_METHOD, # protoco... | [
{
"content": "import logging\nfrom OpenSSL import SSL\n\n\nlogger = logging.getLogger(__name__)\n\nMETHOD_SSLv3 = 'SSLv3'\nMETHOD_TLS = 'TLS'\nMETHOD_TLSv10 = 'TLSv1.0'\nMETHOD_TLSv11 = 'TLSv1.1'\nMETHOD_TLSv12 = 'TLSv1.2'\n\nopenssl_methods = {\n METHOD_TLS: SSL.SSLv23_METHOD, # protoco... | diff --git a/scrapy/core/downloader/tls.py b/scrapy/core/downloader/tls.py
index 2cf8ba869e5..5fa8e272387 100644
--- a/scrapy/core/downloader/tls.py
+++ b/scrapy/core/downloader/tls.py
@@ -44,7 +44,9 @@ def _identityVerifyingInfoCallback(self, connection, where, ret):
try:
verifyHo... |
sonic-net__sonic-mgmt-2486 | RTNETLINK answers: File exists\n'. cmd=ip link add inje-vms6-1-31 type veth peer name ddd8c3eth31_t
<!--
If you are reporting a new issue, make sure that we do not have any duplicates
already open. You can ensure this by searching the issue list for this
repository. If there is a duplicate, please close your issue a... | [
{
"content": "#!/usr/bin/python\n\nimport subprocess\nimport re\nimport os\nimport os.path\nimport re\nimport docker\nfrom ansible.module_utils.basic import *\nimport traceback\nimport hashlib\nfrom pprint import pprint\n\nDOCUMENTATION = '''\n---\nmodule: vm_topology\nversion_added: \"0.1\"\nauthor: Pavel Shir... | [
{
"content": "#!/usr/bin/python\n\nimport subprocess\nimport re\nimport os\nimport os.path\nimport re\nimport docker\nfrom ansible.module_utils.basic import *\nimport traceback\nimport hashlib\nfrom pprint import pprint\n\nDOCUMENTATION = '''\n---\nmodule: vm_topology\nversion_added: \"0.1\"\nauthor: Pavel Shir... | diff --git a/ansible/roles/vm_set/library/vm_topology.py b/ansible/roles/vm_set/library/vm_topology.py
index a93ba4ae33c..98ab712eb1b 100644
--- a/ansible/roles/vm_set/library/vm_topology.py
+++ b/ansible/roles/vm_set/library/vm_topology.py
@@ -377,6 +377,11 @@ def add_veth_if_to_docker(self, ext_if, int_if):
... |
PokemonGoF__PokemonGo-Bot-6160 | KeyError: 'last_km_awarded' and UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-10-10 16:24:11,415 [ cli] [INFO] PokemonGO Bot v1.0
2016-10-10 16:24:11,422 [ cli] [INFO] commit: 6d12193b
2016-10-10 16:24:11,428 [ cli] [INFO] Configuration initiali... | [
{
"content": "from datetime import datetime, timedelta\n\nfrom pokemongo_bot import inventory\nfrom pokemongo_bot.human_behaviour import action_delay\nfrom pokemongo_bot.base_task import BaseTask\nfrom pokemongo_bot.worker_result import WorkerResult\n\n\nclass BuddyPokemon(BaseTask):\n \"\"\"\n Makes use ... | [
{
"content": "from datetime import datetime, timedelta\n\nfrom pokemongo_bot import inventory\nfrom pokemongo_bot.human_behaviour import action_delay\nfrom pokemongo_bot.base_task import BaseTask\nfrom pokemongo_bot.worker_result import WorkerResult\n\n\nclass BuddyPokemon(BaseTask):\n \"\"\"\n Makes use ... | diff --git a/pokemongo_bot/cell_workers/buddy_pokemon.py b/pokemongo_bot/cell_workers/buddy_pokemon.py
index 6d8d108cdd..3cd1d2b394 100644
--- a/pokemongo_bot/cell_workers/buddy_pokemon.py
+++ b/pokemongo_bot/cell_workers/buddy_pokemon.py
@@ -132,6 +132,9 @@ def work(self):
if not self.buddy:
retu... |
gammapy__gammapy-5159 | `FluxPoints.recompute_ul` fails for multidimensional flux points
**Gammapy version**
present dev, 1.2
**Bug description**
`FluxPoints.recompute_ul` fails for multidimensional flux points
**To Reproduce**
On the light curve extracted in the flare notebook (`lc_1d`), run `lc_1d.recompute_ul(3)`
This lead ... | [
{
"content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport logging\nfrom copy import deepcopy\nimport numpy as np\nfrom scipy import stats\nfrom scipy.interpolate import interp1d\nfrom scipy.optimize import minimize\nfrom astropy.io import fits\nfrom astropy.io.registry import IORegis... | [
{
"content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport logging\nfrom copy import deepcopy\nimport numpy as np\nfrom scipy import stats\nfrom scipy.interpolate import interp1d\nfrom scipy.optimize import minimize\nfrom astropy.io import fits\nfrom astropy.io.registry import IORegis... | diff --git a/gammapy/estimators/points/core.py b/gammapy/estimators/points/core.py
index 0184fabb59..88b48f583c 100644
--- a/gammapy/estimators/points/core.py
+++ b/gammapy/estimators/points/core.py
@@ -806,7 +806,7 @@ def recompute_ul(self, n_sigma_ul=2, **kwargs):
flux_points = deepcopy(self)
valu... |
uccser__cs-unplugged-652 | Modify docker configuration to work on OSX
Docker for Mac does not properly support the `network_mode: host` option for containers. In order to run the system on OSX, it will be necessary to network the containers using a bridged network:
> By default Compose sets up a single network for your app. Each container for... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"Django settings for connecting via Google Cloud SQL Proxy.\"\"\"\n\nfrom .base import * # noqa: F403\n\n\n# DATABASE CONFIGURATION\n# ----------------------------------------------------------------------------\n# See: https://docs.djangoproject.com/en/dev/ref/setti... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"Django settings for connecting via Google Cloud SQL Proxy.\"\"\"\n\nfrom .base import * # noqa: F403\n\n\n# DATABASE CONFIGURATION\n# ----------------------------------------------------------------------------\n# See: https://docs.djangoproject.com/en/dev/ref/setti... | diff --git a/csu b/csu
index be15a7a52..9cabdacb2 100755
--- a/csu
+++ b/csu
@@ -79,7 +79,10 @@ cmd_end() {
docker-compose down
echo
echo "Deleting system volumes..."
- docker volume ls -qf dangling=true | xargs -r docker volume rm
+ volumes=($(docker volume ls -qf dangling=true ))
+ for volume in "${volume... |
biolab__orange3-text-233 | SharedComputValues Don't have Variable Property
<!--
This is an issue template. Please fill in the relevant details in the
sections below.
-->
##### Text version
<!-- From menu _Options→Add-ons→Orange3-Text_ or code `orangecontrib.text.version.full_version` -->
0.2.4.dev
##### Orange version
<!-- From menu ... | [
{
"content": "import os\nfrom copy import copy\nfrom numbers import Integral\nfrom itertools import chain\n\nimport nltk\nimport numpy as np\nimport scipy.sparse as sp\nfrom gensim import corpora\n\nfrom Orange.data import Table, Domain, ContinuousVariable, DiscreteVariable\nfrom orangecontrib.text.vectorizatio... | [
{
"content": "import os\nfrom copy import copy\nfrom numbers import Integral\nfrom itertools import chain\n\nimport nltk\nimport numpy as np\nimport scipy.sparse as sp\nfrom gensim import corpora\n\nfrom Orange.data import Table, Domain, ContinuousVariable, DiscreteVariable\nfrom orangecontrib.text.vectorizatio... | diff --git a/orangecontrib/text/corpus.py b/orangecontrib/text/corpus.py
index 4b70badf1..55e129e97 100644
--- a/orangecontrib/text/corpus.py
+++ b/orangecontrib/text/corpus.py
@@ -164,6 +164,8 @@ def extend_attributes(self, X, feature_names, feature_values=None,
var = DiscreteVariable(f, values=values... |
openvinotoolkit__datumaro-214 | Support multiple image extensions with CVAT
Hello,
Currently, when using the datumaro API in python:
`dataset.export(..., format="cvat", save_images=True, image_ext=".png")`
will **always** output images in .jpg format.
That is due to line 167 in datumaro/plugins/cvat_format/converter.py :
`filename = ... | [
{
"content": "\n# Copyright (C) 2019-2020 Intel Corporation\n#\n# SPDX-License-Identifier: MIT\n\nimport logging as log\nimport os\nimport os.path as osp\nfrom collections import OrderedDict\nfrom itertools import chain\nfrom xml.sax.saxutils import XMLGenerator\n\nfrom datumaro.components.converter import Conv... | [
{
"content": "\n# Copyright (C) 2019-2020 Intel Corporation\n#\n# SPDX-License-Identifier: MIT\n\nimport logging as log\nimport os\nimport os.path as osp\nfrom collections import OrderedDict\nfrom itertools import chain\nfrom xml.sax.saxutils import XMLGenerator\n\nfrom datumaro.components.converter import Conv... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d9f3b4d690..9963e4707e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Added support for auto-merging (joining) of datasets with no labels and having labels (<http... |
WeblateOrg__weblate-11568 | Time to use `build` from `setuptools` instead of `distutils`?
### Describe the problem
The following feature in setuptools has been deprecated for almost 2 years and is about to be removed:
https://github.com/pypa/setuptools/blob/1ed759173983656734c3606e9c97a348895e5e0c/setuptools/command/build.py#L13-L27
It mig... | [
{
"content": "#!/usr/bin/env python3\n\n# Copyright © Michal Čihař <michal@weblate.org>\n#\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nimport os\nfrom distutils import log\nfrom distutils.command.build import build\nfrom distutils.core import Command\nfrom glob import glob\nfrom itertools import chain\n\nfr... | [
{
"content": "#!/usr/bin/env python3\n\n# Copyright © Michal Čihař <michal@weblate.org>\n#\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nimport os\nfrom distutils import log\nfrom distutils.core import Command\nfrom glob import glob\nfrom itertools import chain\n\nfrom setuptools import setup\nfrom setuptools... | diff --git a/setup.py b/setup.py
index 7e74cc8190e0..865c170b4f8a 100755
--- a/setup.py
+++ b/setup.py
@@ -6,12 +6,12 @@
import os
from distutils import log
-from distutils.command.build import build
from distutils.core import Command
from glob import glob
from itertools import chain
from setuptools import se... |
scrapy__scrapy-1983 | empty WARNING message in scrapy.core.downloader.tls (1.1.0rc4/master)
Sometimes I'm getting empty warnings now, on 1.1.0rc4 and master branch.
(at least on rc3 as well)
```
2016-05-07 00:33:46 [scrapy.core.downloader.tls] WARNING:
2016-05-07 00:33:47 [scrapy.core.downloader.tls] WARNING:
2016-05-07 00:33:48 [scrapy.... | [
{
"content": "import logging\nfrom OpenSSL import SSL\n\n\nlogger = logging.getLogger(__name__)\n\nMETHOD_SSLv3 = 'SSLv3'\nMETHOD_TLS = 'TLS'\nMETHOD_TLSv10 = 'TLSv1.0'\nMETHOD_TLSv11 = 'TLSv1.1'\nMETHOD_TLSv12 = 'TLSv1.2'\n\nopenssl_methods = {\n METHOD_TLS: SSL.SSLv23_METHOD, # protoco... | [
{
"content": "import logging\nfrom OpenSSL import SSL\n\n\nlogger = logging.getLogger(__name__)\n\nMETHOD_SSLv3 = 'SSLv3'\nMETHOD_TLS = 'TLS'\nMETHOD_TLSv10 = 'TLSv1.0'\nMETHOD_TLSv11 = 'TLSv1.1'\nMETHOD_TLSv12 = 'TLSv1.2'\n\nopenssl_methods = {\n METHOD_TLS: SSL.SSLv23_METHOD, # protoco... | diff --git a/scrapy/core/downloader/tls.py b/scrapy/core/downloader/tls.py
index 2cf8ba869e5..5fa8e272387 100644
--- a/scrapy/core/downloader/tls.py
+++ b/scrapy/core/downloader/tls.py
@@ -44,7 +44,9 @@ def _identityVerifyingInfoCallback(self, connection, where, ret):
try:
verifyHo... |
jazzband__pip-tools-2011 | latest pip (23.3) causes dependency oddity
When running `pip-compile` + `pip` 23.3 with a requirements.in containing `pytest-cov`, it shows a weird dependency list with `coverage[toml]` being installed because of a dependency on `coverage`. Note that actual package versions are completely fine, this seems to be purely ... | [
{
"content": "from __future__ import annotations\n\nimport io\nimport os\nimport re\nimport sys\nfrom itertools import chain\nfrom typing import BinaryIO, Iterable, Iterator, cast\n\nfrom click import unstyle\nfrom click.core import Context\nfrom pip._internal.models.format_control import FormatControl\nfrom pi... | [
{
"content": "from __future__ import annotations\n\nimport io\nimport os\nimport re\nimport sys\nfrom itertools import chain\nfrom typing import BinaryIO, Iterable, Iterator, cast\n\nfrom click import unstyle\nfrom click.core import Context\nfrom pip._internal.models.format_control import FormatControl\nfrom pi... | diff --git a/piptools/writer.py b/piptools/writer.py
index 1ae341d60..bcb70f02f 100644
--- a/piptools/writer.py
+++ b/piptools/writer.py
@@ -295,7 +295,11 @@ def _format_requirement(
if src_ireq.comes_from
}
- if ireq.comes_from:
+ # Filter out the origin install requiremen... |
zulip__zulip-26647 | Internationalization of "Browse 1 more stream" and two more strings
<!-- Describe what you were expecting to see, what you saw instead, and steps to take in order to reproduce the buggy behavior. Screenshots can be helpful. -->
I am missing "Browse 1 more stream" https://github.com/zulip/zulip/blob/81bd63cb46273b8c94e... | [
{
"content": "\"\"\"\nSee https://zulip.readthedocs.io/en/latest/translating/internationalization.html\nfor background.\n\nThe contents of this file are taken from\nhttps://github.com/niwinz/django-jinja/blob/master/django_jinja/management/commands/makemessages.py\n\nJinja2's i18n functionality is not exactly t... | [
{
"content": "\"\"\"\nSee https://zulip.readthedocs.io/en/latest/translating/internationalization.html\nfor background.\n\nThe contents of this file are taken from\nhttps://github.com/niwinz/django-jinja/blob/master/django_jinja/management/commands/makemessages.py\n\nJinja2's i18n functionality is not exactly t... | diff --git a/web/templates/recent_view_row.hbs b/web/templates/recent_view_row.hbs
index b7543d57e94d2..ca61fa598e6ee 100644
--- a/web/templates/recent_view_row.hbs
+++ b/web/templates/recent_view_row.hbs
@@ -4,7 +4,7 @@
<div class="left_part recent_view_focusable">
{{#if is_private}}
... |
StackStorm__st2-1780 | Infinite timeout in action parameters
The problem is that parameter `timeout: 0` in action is considered as 60 seconds and there is no option to make it "infinite", eg. no timeout.
Here is example action `actions/test_timeout.yaml`:
``` yaml
---
name: test_timeout
runner_type: local-shell-cmd
entry_point: ""
enabled... | [
{
"content": "# Licensed to the StackStorm, Inc ('StackStorm') under one or more\n# contributor license agreements. See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, Version 2.0\n# (the \"Li... | [
{
"content": "# Licensed to the StackStorm, Inc ('StackStorm') under one or more\n# contributor license agreements. See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, Version 2.0\n# (the \"Li... | diff --git a/st2actions/st2actions/utils/param_utils.py b/st2actions/st2actions/utils/param_utils.py
index fe3871d220..faa2cdc6ab 100644
--- a/st2actions/st2actions/utils/param_utils.py
+++ b/st2actions/st2actions/utils/param_utils.py
@@ -65,7 +65,7 @@ def _get_resolved_runner_params(runner_parameters, action_parameter... |
pytorch__vision-3035 | Flaky behavior when downloading Google drive files
## 🐛 Bug
This is a rather difficult bug to diagnose because certain internet activity must be present. The issue is with `torhvision.datasets.utils.download_file_from_google_drive()`. It does not gracefully handle large files that have exceeded their daily download... | [
{
"content": "import os\nimport os.path\nimport hashlib\nimport gzip\nimport errno\nimport tarfile\nfrom typing import Any, Callable, List, Iterable, Optional, TypeVar\nimport zipfile\n\nimport torch\nfrom torch.utils.model_zoo import tqdm\n\n\ndef gen_bar_updater() -> Callable[[int, int, int], None]:\n pbar... | [
{
"content": "import os\nimport os.path\nimport hashlib\nimport gzip\nimport errno\nimport tarfile\nfrom typing import Any, Callable, List, Iterable, Optional, TypeVar\nimport zipfile\n\nimport torch\nfrom torch.utils.model_zoo import tqdm\n\n\ndef gen_bar_updater() -> Callable[[int, int, int], None]:\n pbar... | diff --git a/torchvision/datasets/utils.py b/torchvision/datasets/utils.py
index 6b705f875ba..77d868a1e2b 100644
--- a/torchvision/datasets/utils.py
+++ b/torchvision/datasets/utils.py
@@ -120,7 +120,9 @@ def list_files(root: str, suffix: str, prefix: bool = False) -> List[str]:
def _quota_exceeded(response: "requ... |
aws__aws-sam-cli-815 | Region from Env Vars or profile are not respected for ALL commands but package and deploy
The region option in SAM CLI was changed between 0.7.0 and 0.8.0 to add the default explicitly on the [command line option](https://github.com/awslabs/aws-sam-cli/blob/develop/samcli/cli/options.py#L44). This causes the region to ... | [
{
"content": "\"\"\"\nThis file contains common CLI options common to all commands. As we add more commands, this will\nbecome a repository of options that other commands could use when needed.\n\"\"\"\n\nimport click\n\nfrom .context import Context\n\n\ndef debug_option(f):\n \"\"\"\n Configures --debug ... | [
{
"content": "\"\"\"\nThis file contains common CLI options common to all commands. As we add more commands, this will\nbecome a repository of options that other commands could use when needed.\n\"\"\"\n\nimport click\n\nfrom .context import Context\n\n\ndef debug_option(f):\n \"\"\"\n Configures --debug ... | diff --git a/samcli/__init__.py b/samcli/__init__.py
index a289e93c5e..ddcf99bdc2 100644
--- a/samcli/__init__.py
+++ b/samcli/__init__.py
@@ -2,4 +2,4 @@
SAM CLI version
"""
-__version__ = '0.8.0'
+__version__ = '0.8.1'
diff --git a/samcli/cli/options.py b/samcli/cli/options.py
index 153706a1e3..c5e7baaff5 100644
... |
mitmproxy__mitmproxy-2643 | Transparent mode fail with looking up failure.
##### Steps to reproduce the problem:
1. Launch Wifi Access Point(OS X)
2. Setup pfctl configuration so that http packet will be forwarded.
3. Launch mitmproxy ( `sudo mitmproxy -p 8080 -m transparent --showhost` )
4. Access web page after connecting to AP which laun... | [
{
"content": "import sys\n\n\ndef lookup(address, port, s):\n \"\"\"\n Parse the pfctl state output s, to look up the destination host\n matching the client (address, port).\n\n Returns an (address, port) tuple, or None.\n \"\"\"\n s = s.decode()\n spec = \"%s:%s\" % (address, p... | [
{
"content": "import re\nimport sys\n\n\ndef lookup(address, port, s):\n \"\"\"\n Parse the pfctl state output s, to look up the destination host\n matching the client (address, port).\n\n Returns an (address, port) tuple, or None.\n \"\"\"\n # We may get an ipv4-mapped ipv6 addres... | diff --git a/mitmproxy/platform/pf.py b/mitmproxy/platform/pf.py
index c0397d7890..bb5eb5152f 100644
--- a/mitmproxy/platform/pf.py
+++ b/mitmproxy/platform/pf.py
@@ -1,3 +1,4 @@
+import re
import sys
@@ -8,6 +9,9 @@ def lookup(address, port, s):
Returns an (address, port) tuple, or None.
"""
+ ... |
common-workflow-language__cwltool-792 | cwltool fails to run with an input of record and an InlineJavascriptRequirement
`test.cwl`
```
cwlVersion: v1.0
class: CommandLineTool
requirements:
- class: InlineJavascriptRequirement
baseCommand: ['echo']
inputs:
- id: input
type:
type: record
fields: []
outputs: []
```
fails wi... | [
{
"content": "import copy\nimport itertools\nimport json\nimport logging\nfrom collections import namedtuple\nfrom typing import (Any, Dict, List, # pylint: disable=unused-import\n Optional, Text, Tuple, Union)\n\nimport avro.schema # always import after schema_salad, never before\nfrom pkg... | [
{
"content": "import copy\nimport itertools\nimport json\nimport logging\nfrom collections import namedtuple\nfrom typing import (Any, Dict, List, # pylint: disable=unused-import\n Optional, Text, Tuple, Union)\n\nimport avro.schema # always import after schema_salad, never before\nfrom pkg... | diff --git a/cwltool/validate_js.py b/cwltool/validate_js.py
index f56a5d437..b8e07b0a4 100644
--- a/cwltool/validate_js.py
+++ b/cwltool/validate_js.py
@@ -48,7 +48,7 @@ def get_expressions(tool, # type: Union[CommentedMap, Any]
for possible_schema in schema.schemas:
if is_expression(... |
pre-commit__pre-commit-204 | Crash when /tmp is on a different device
```
Traceback (most recent call last):
File "/home/cameron/Workspace/hack16-llvm-lang/venv/bin/pre-commit", line 9, in <module>
load_entry_point('pre-commit==0.4.0', 'console_scripts', 'pre-commit')()
File "/home/cameron/Workspace/hack16-llvm-lang/venv/lib/python3.4/site... | [
{
"content": "from __future__ import unicode_literals\n\nimport contextlib\nimport io\nimport logging\nimport os\nimport os.path\nimport sqlite3\nimport tempfile\n\nfrom cached_property import cached_property\n\nfrom pre_commit.prefixed_command_runner import PrefixedCommandRunner\nfrom pre_commit.util import cl... | [
{
"content": "from __future__ import unicode_literals\n\nimport contextlib\nimport io\nimport logging\nimport os\nimport os.path\nimport sqlite3\nimport tempfile\n\nfrom cached_property import cached_property\n\nfrom pre_commit.prefixed_command_runner import PrefixedCommandRunner\nfrom pre_commit.util import cl... | diff --git a/pre_commit/store.py b/pre_commit/store.py
index 9d4864001..a9197c43d 100644
--- a/pre_commit/store.py
+++ b/pre_commit/store.py
@@ -62,7 +62,7 @@ def _write_readme(self):
def _write_sqlite_db(self):
# To avoid a race where someone ^Cs between db creation and execution
# of the CREATE... |
OCA__bank-payment-48 | Crash in account_payment_purchase
When you create an invoice from an incoming products on v7 with account_payment_purchase:
File "/home/erp_super/erp/prod/src/addons/stock/stock.py", line 1153, in action_invoice_create
invoice_vals = self._prepare_invoice(cr, uid, picking, partner, inv_type, journal_id, context=... | [
{
"content": "# -*- encoding: utf-8 -*-\n##############################################################################\n#\n# Account Payment Purchase module for OpenERP\n# Copyright (C) 2014 Akretion (http://www.akretion.com)\n# @author Alexis de Lattre <alexis.delattre@akretion.com>\n#\n# This pro... | [
{
"content": "# -*- encoding: utf-8 -*-\n##############################################################################\n#\n# Account Payment Purchase module for OpenERP\n# Copyright (C) 2014 Akretion (http://www.akretion.com)\n# @author Alexis de Lattre <alexis.delattre@akretion.com>\n#\n# This pro... | diff --git a/account_payment_purchase/model/stock.py b/account_payment_purchase/model/stock.py
index e2f83663bb8..9d2bf55808c 100644
--- a/account_payment_purchase/model/stock.py
+++ b/account_payment_purchase/model/stock.py
@@ -35,8 +35,8 @@ def _prepare_invoice(
if picking.purchase_id:
invoice_v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.