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 ⌀ |
|---|---|---|---|---|
python__mypy-7444 | Using a class inherited from tuple as a bound in TypeVar
I think I've encountered mypy bug. Here's the code I'm trying to check with mypy (sorry if it's big, I think additional code helps debugging):
```python
from typing import NamedTuple, Type, TypeVar
# case 1 - inheriting from custom class, mypy check passes.
... | [
{
"content": "\"\"\"Type checking of attribute access\"\"\"\n\nfrom typing import cast, Callable, Optional, Union\nfrom typing_extensions import TYPE_CHECKING\n\nfrom mypy.types import (\n Type, Instance, AnyType, TupleType, TypedDictType, CallableType, FunctionLike, TypeVarDef,\n Overloaded, TypeVarType,... | [
{
"content": "\"\"\"Type checking of attribute access\"\"\"\n\nfrom typing import cast, Callable, Optional, Union\nfrom typing_extensions import TYPE_CHECKING\n\nfrom mypy.types import (\n Type, Instance, AnyType, TupleType, TypedDictType, CallableType, FunctionLike, TypeVarDef,\n Overloaded, TypeVarType,... | diff --git a/mypy/checkmember.py b/mypy/checkmember.py
index f42eaa0d87db..5efda9a70447 100644
--- a/mypy/checkmember.py
+++ b/mypy/checkmember.py
@@ -261,6 +261,8 @@ def analyze_type_type_member_access(name: str,
upper_bound = get_proper_type(typ.item.upper_bound)
if isinstance(upper_bound, Instance)... |
pypa__pip-10507 | 21.3 regression with legacy resolver
Assuming the following project with an empty `pyproject.toml` and the following `setup.cfg`:
```ini
[metadata]
name = pkgb
version = 1.0
[options]
install_requires =
wrapt
```
We get the following stack trace, using pip main branch, today:
```console
$ pip ins... | [
{
"content": "from pip._internal.distributions.base import AbstractDistribution\nfrom pip._internal.index.package_finder import PackageFinder\nfrom pip._internal.metadata import BaseDistribution\n\n\nclass InstalledDistribution(AbstractDistribution):\n \"\"\"Represents an installed package.\n\n This does ... | [
{
"content": "from pip._internal.distributions.base import AbstractDistribution\nfrom pip._internal.index.package_finder import PackageFinder\nfrom pip._internal.metadata import BaseDistribution\n\n\nclass InstalledDistribution(AbstractDistribution):\n \"\"\"Represents an installed package.\n\n This does ... | diff --git a/news/10504.bugfix.rst b/news/10504.bugfix.rst
new file mode 100644
index 00000000000..549e86dc3aa
--- /dev/null
+++ b/news/10504.bugfix.rst
@@ -0,0 +1,2 @@
+Fix a crash when installing an editable requirement using the legacy resolver
+due to a mismatch in internal metadata representation interfaces.
diff ... |
privacyidea__privacyidea-2032 | Use information, which pyhsical token was used with a remote token
**Is your feature request related to a problem? Please describe.**
With a remote token it would be great to know, what actually was the physical token that led to a successful authentication.
This can help with rollout scenarios and assigning those ... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# privacyIDEA is a fork of LinOTP\n# May 08, 2014 Cornelius Kölbel\n# License: AGPLv3\n# contact: http://www.privacyidea.org\n#\n# 2018-01-21 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Add tokenkind\n# 2015-01-28 Rewrite for migration to f... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# privacyIDEA is a fork of LinOTP\n# May 08, 2014 Cornelius Kölbel\n# License: AGPLv3\n# contact: http://www.privacyidea.org\n#\n# 2018-01-21 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Add tokenkind\n# 2015-01-28 Rewrite for migration to f... | diff --git a/doc/configuration/tokens/remote.rst b/doc/configuration/tokens/remote.rst
index b28a2de68e..0ce70bd241 100644
--- a/doc/configuration/tokens/remote.rst
+++ b/doc/configuration/tokens/remote.rst
@@ -17,6 +17,9 @@ When forwarding the authentication request, you can
and mangle the password.
+The serial n... |
blaze__blaze-686 | SQL can't handle unicode in python 2
A test such as this fails
``` python
t = TableSymbol('t', '{name: string, amount: int, id: int}')
metadata = sa.MetaData()
s = sa.Table('accounts', metadata,
sa.Column('name', sa.String),
sa.Column('amount', sa.Integer),
sa.Column('id', sa.I... | [
{
"content": "\"\"\"\n\n>>> from blaze import *\n\n>>> accounts = TableSymbol('accounts', '{name: string, amount: int}')\n>>> deadbeats = accounts[accounts['amount'] < 0]['name']\n\n>>> from sqlalchemy import Table, Column, MetaData, Integer, String\n>>> t = Table('accounts', MetaData(),\n... Column('... | [
{
"content": "\"\"\"\n\n>>> from blaze import *\n\n>>> accounts = TableSymbol('accounts', '{name: string, amount: int}')\n>>> deadbeats = accounts[accounts['amount'] < 0]['name']\n\n>>> from sqlalchemy import Table, Column, MetaData, Integer, String\n>>> t = Table('accounts', MetaData(),\n... Column('... | diff --git a/blaze/compute/core.py b/blaze/compute/core.py
index a89815581..828512649 100644
--- a/blaze/compute/core.py
+++ b/blaze/compute/core.py
@@ -10,7 +10,7 @@
__all__ = ['compute', 'compute_up', 'drop', 'create_index']
-base = (numbers.Real, str, date, datetime)
+base = (numbers.Real, basestring, date, dat... |
yt-project__yt-1603 | Latest ver of yt (3.5dev) breaks clump finding on FITS files
<!--To help us understand and resolve your issue, please fill out the form to
the best of your ability.-->
<!--You can feel free to delete the sections that do not apply.-->
### Bug report
**Bug summary**
When attempting to use the find_clumps func... | [
{
"content": "\"\"\"\nPython-based grid handler, not to be confused with the SWIG-handler\n\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full lice... | [
{
"content": "\"\"\"\nPython-based grid handler, not to be confused with the SWIG-handler\n\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full lice... | diff --git a/yt/data_objects/grid_patch.py b/yt/data_objects/grid_patch.py
index 8c334f4370c..966f0a06837 100644
--- a/yt/data_objects/grid_patch.py
+++ b/yt/data_objects/grid_patch.py
@@ -95,8 +95,10 @@ def __getitem__(self, key):
finfo = self.ds._get_field_info(*fields[0])
if not finfo.particle_type... |
bokeh__bokeh-6526 | Bokeh 0.12.6 incompatible with Python 2.7.9?
Hi there! I have posted this issue with the [dask.distributed project](https://github.com/dask/distributed/issues/1193#issuecomment-309802212) in which context it appeared, and I was asked to file the issue here, since it seems to be a Bokeh problem.
I have a virtual envi... | [
{
"content": "''' Utilities for Py2/Py3 interop.\n\n'''\n\nimport sys\n\ndef with_metaclass(meta, *bases):\n \"\"\" Add metaclasses in both Python 2 and Python 3.\n\n Function from jinja2/_compat.py. License: BSD.\n\n Use it like this::\n\n class BaseForm(object):\n pass\n\n cl... | [
{
"content": "''' Utilities for Py2/Py3 interop.\n\n'''\n\nimport sys\n\ndef with_metaclass(meta, *bases):\n \"\"\" Add metaclasses in both Python 2 and Python 3.\n\n Function from jinja2/_compat.py. License: BSD.\n\n Use it like this::\n\n class BaseForm(object):\n pass\n\n cl... | diff --git a/bokeh/util/future.py b/bokeh/util/future.py
index c59313e6720..bebb1944bd3 100644
--- a/bokeh/util/future.py
+++ b/bokeh/util/future.py
@@ -82,8 +82,9 @@ def signature(func):
elif isinstance(func, partial):
sig = getargspec(func.func)
if 'self' in sig.args: sig.args.remov... |
ckan__ckan-3735 | Tolerate missing system_info table
If you have an old or incomplete database some commands (such as db clean) will fail because they can't find the system_info table.
```python-traceback
$ cd ckan; paster db clean -c test-core.ini; paster db init -c test-core.ini
Traceback (most recent call last):
File "/home/u... | [
{
"content": "# encoding: utf-8\n\n'''\nThe system_info table and SystemInfo mapped class store runtime-editable\nconfiguration options.\n\nFor more details, check :doc:`maintaining/configuration`.\n'''\n\nfrom sqlalchemy import types, Column, Table\n\nimport vdm.sqlalchemy\nimport meta\nimport core\nimport dom... | [
{
"content": "# encoding: utf-8\n\n'''\nThe system_info table and SystemInfo mapped class store runtime-editable\nconfiguration options.\n\nFor more details, check :doc:`maintaining/configuration`.\n'''\n\nfrom sqlalchemy import types, Column, Table\n\nimport vdm.sqlalchemy\nimport meta\nimport core\nimport dom... | diff --git a/ckan/model/system_info.py b/ckan/model/system_info.py
index 371806712ce..6fd01e0bd8a 100644
--- a/ckan/model/system_info.py
+++ b/ckan/model/system_info.py
@@ -53,11 +53,14 @@ def __init__(self, key, value):
def get_system_info(key, default=None):
''' get data from system_info table '''
- obj = ... |
pre-commit__pre-commit-478 | `docker build` argument order is invalid on old versions of Docker
We do: `docker build . --tag thing --label thing`
But this produces an error on Docker 1.11.2:
```
ckuehl@dev4-uswest1cdevc:~/proj/pre-commit$ docker build . --tag thing --label thing
docker: "build" requires 1 argument.
See 'docker build --help'... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import unicode_literals\n\nimport hashlib\nimport os\n\nfrom pre_commit import five\nfrom pre_commit.languages import helpers\nfrom pre_commit.util import CalledProcessError\nfrom pre_commit.util import clean_path_on_failure\nfrom pre_commit.... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import unicode_literals\n\nimport hashlib\nimport os\n\nfrom pre_commit import five\nfrom pre_commit.languages import helpers\nfrom pre_commit.util import CalledProcessError\nfrom pre_commit.util import clean_path_on_failure\nfrom pre_commit.... | diff --git a/pre_commit/languages/docker.py b/pre_commit/languages/docker.py
index fd2499581..7d3f8d041 100644
--- a/pre_commit/languages/docker.py
+++ b/pre_commit/languages/docker.py
@@ -43,12 +43,14 @@ def build_docker_image(repo_cmd_runner, **kwargs): # pragma: windows no cover
pull = kwargs.pop('pull')
... |
kubeflow__pipelines-4285 | allow output artifact store configuration (vs hard coded)
it seems like the output artifacts are always stored in a specific minio service, port, namespace, bucket, secrets, etc (`minio-service.kubeflow:9000`).
see: https://github.com/kubeflow/pipelines/blob/f40a22a3f4a8e06d20cf3e3f425b5058d5c87e0b/sdk/python/kfp/c... | [
{
"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 applicab... | [
{
"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 applicab... | diff --git a/sdk/python/kfp/_client.py b/sdk/python/kfp/_client.py
index ce6482aac11..a6f657ccb9b 100644
--- a/sdk/python/kfp/_client.py
+++ b/sdk/python/kfp/_client.py
@@ -147,11 +147,8 @@ def _load_config(self, host, client_id, namespace, other_client_id, other_client
host = host or ''
# Preprocess the ho... |
pyqtgraph__pyqtgraph-2964 | SyntaxWarnings
While running an `apt upgrade` I noticed:
```
/usr/lib/python3/dist-packages/pyqtgraph/examples/SpinBox.py:38: SyntaxWarning: invalid escape sequence '\$'
regex='\$?(?P<number>(-?\d+(\.\d+)?)|(-?\.\d+))$')),
```
The `\$` should be written `\\$` or `r'\$'` since a few Python releases (same for ... | [
{
"content": "\"\"\"\nThis example demonstrates the SpinBox widget, which is an extension of \nQDoubleSpinBox providing some advanced features:\n\n * SI-prefixed units\n * Non-linear stepping modes\n * Bounded/unbounded values\n\n\"\"\"\n\nimport ast\n\nimport pyqtgraph as pg\nfrom pyqtgraph.Qt import QtWidg... | [
{
"content": "\"\"\"\nThis example demonstrates the SpinBox widget, which is an extension of \nQDoubleSpinBox providing some advanced features:\n\n * SI-prefixed units\n * Non-linear stepping modes\n * Bounded/unbounded values\n\n\"\"\"\n\nimport ast\n\nimport pyqtgraph as pg\nfrom pyqtgraph.Qt import QtWidg... | diff --git a/pyqtgraph/examples/SpinBox.py b/pyqtgraph/examples/SpinBox.py
index 9ba73202c9..f69338f692 100644
--- a/pyqtgraph/examples/SpinBox.py
+++ b/pyqtgraph/examples/SpinBox.py
@@ -35,7 +35,7 @@
pg.SpinBox(value=1e9, siPrefix=True)),
("Float with custom formatting",
pg.SpinBox(value=23.07, forma... |
conan-io__conan-center-index-6280 | [package] sentry-native/0.4.9: qt option is broken
<!--
Please don't forget to update the issue title.
Include all applicable information to help us reproduce your problem.
-->
### Package and Environment Details (include every applicable attribute)
* Package Name/Version: **sentry-native/0.4.9**
* Ope... | [
{
"content": "import os\nfrom conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\n\nrequired_conan_version = \">=1.33.0\"\n\n\nclass SentryNativeConan(ConanFile):\n name = \"sentry-native\"\n description = \"The Sentry Native SDK is an error and crash reporting clie... | [
{
"content": "import os\nfrom conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\n\nrequired_conan_version = \">=1.33.0\"\n\n\nclass SentryNativeConan(ConanFile):\n name = \"sentry-native\"\n description = \"The Sentry Native SDK is an error and crash reporting clie... | diff --git a/recipes/sentry-native/all/conandata.yml b/recipes/sentry-native/all/conandata.yml
index 2b0a952903a12..27a262e2f8dc6 100644
--- a/recipes/sentry-native/all/conandata.yml
+++ b/recipes/sentry-native/all/conandata.yml
@@ -19,24 +19,16 @@ sources:
sha256: "0d93bd77f70a64f3681d4928dfca6b327374218a84d33ee3... |
sunpy__sunpy-767 | unit kev not supported by DatabaseEntry._from_query_result_block
If a query result block stores the wavelength(s) in kev (note that it's written with a lowercase v!), a ValueError is raised because astropy.units.Unit only understand keV, not kev.
Here is the session to reproduce this behaviour:
``` pycon
>>> from sun... | [
{
"content": "# Author: Simon Liedtke <liedtke.simon@googlemail.com>\n#\n# This module was developed with funding provided by\n# the Google Summer of Code (2013).\n\nfrom __future__ import absolute_import\n\nfrom time import strptime, mktime\nfrom datetime import datetime\nimport fnmatch\nimport os\nfrom iterto... | [
{
"content": "# Author: Simon Liedtke <liedtke.simon@googlemail.com>\n#\n# This module was developed with funding provided by\n# the Google Summer of Code (2013).\n\nfrom __future__ import absolute_import\n\nfrom time import strptime, mktime\nfrom datetime import datetime\nimport fnmatch\nimport os\nfrom iterto... | diff --git a/sunpy/database/tables.py b/sunpy/database/tables.py
index 2acb490c06e..ff451d076a7 100644
--- a/sunpy/database/tables.py
+++ b/sunpy/database/tables.py
@@ -286,7 +286,12 @@ def _from_query_result_block(cls, qr_block, default_waveunit=None):
if default_waveunit is not None:
uni... |
zestedesavoir__zds-site-6500 | Autoriser le staff à afficher les biographies des membres bannis
Hello,
**Description du besoin**
Il pourrait être pratique d’autoriser le staff à lire une biographie bannie. Dans le cas où un membre conteste son bannissement, on n’a plus accès au contenu qui nous a poussé à le bannir pour vérifier ce qui a motiv... | [
{
"content": "from urllib.parse import unquote\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth import update_session_auth_hash\nfrom django.contrib.auth.decorators import login_required\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions i... | [
{
"content": "from urllib.parse import unquote\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth import update_session_auth_hash\nfrom django.contrib.auth.decorators import login_required\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions i... | diff --git a/templates/member/profile.html b/templates/member/profile.html
index fcd6953fa7..ca4d983dd7 100644
--- a/templates/member/profile.html
+++ b/templates/member/profile.html
@@ -266,7 +266,7 @@ <h3>{% trans "Présence" %}</h3>
{% if profile.biography or profile.sign or profile.user == user ... |
psf__black-3385 | Output incorrectly claims symbolic links presence when formatting from outside a project
**Describe the bug**
When trying to format a project from the outside, the verbose output shows says that there are symbolic links that points outside of the project, but displays the wrong project path. This behavior seem to be... | [
{
"content": "import io\nimport json\nimport platform\nimport re\nimport sys\nimport tokenize\nimport traceback\nfrom contextlib import contextmanager\nfrom dataclasses import replace\nfrom datetime import datetime\nfrom enum import Enum\nfrom json.decoder import JSONDecodeError\nfrom pathlib import Path\nfrom ... | [
{
"content": "import io\nimport json\nimport platform\nimport re\nimport sys\nimport tokenize\nimport traceback\nfrom contextlib import contextmanager\nfrom dataclasses import replace\nfrom datetime import datetime\nfrom enum import Enum\nfrom json.decoder import JSONDecodeError\nfrom pathlib import Path\nfrom ... | diff --git a/CHANGES.md b/CHANGES.md
index 2da0fb4720c..a623ec4ac21 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -63,6 +63,8 @@
- Verbose logging now shows the values of `pyproject.toml` configuration variables
(#3392)
+- Fix false symlink detection messages in verbose output due to using an incorrect
+ relative ... |
optuna__optuna-449 | ValueError when calling suggest_categorical with int and str
**Conditions**
- Optuna version: 0.13.0
- Python version: 3.7.3
- OS: Windows 10 Education
- Machine Learning library to be optimized: none
**Code to reproduce**
```
def objective(trial: optuna.Trial):
x = trial.suggest_categorical("x", [1, "0"]... | [
{
"content": "import numpy\n\nfrom optuna import distributions\nfrom optuna.samplers.base import BaseSampler\nfrom optuna import types\n\nif types.TYPE_CHECKING:\n from typing import Any # NOQA\n from typing import Dict # NOQA\n from typing import Optional # NOQA\n\n from optuna.distributions imp... | [
{
"content": "import numpy\n\nfrom optuna import distributions\nfrom optuna.samplers.base import BaseSampler\nfrom optuna import types\n\nif types.TYPE_CHECKING:\n from typing import Any # NOQA\n from typing import Dict # NOQA\n from typing import Optional # NOQA\n\n from optuna.distributions imp... | diff --git a/optuna/samplers/random.py b/optuna/samplers/random.py
index a113b75f6b..ad27e70a33 100644
--- a/optuna/samplers/random.py
+++ b/optuna/samplers/random.py
@@ -69,6 +69,7 @@ def sample_independent(self, study, trial, param_name, param_distribution):
return self.rng.randint(param_distribution.low... |
pypi__warehouse-8269 | Celerybeat Cleanup Error
```
worker_1 | Traceback (most recent call last):
worker_1 | File "/opt/warehouse/lib/python3.6/site-packages/celery/beat.py", line 320, in apply_async
worker_1 | **entry.options)
worker_1 | File "/opt/warehouse/src/warehouse/tasks.py", line 95, in ap... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | diff --git a/tests/unit/test_tasks.py b/tests/unit/test_tasks.py
index cbe28996d8ff..8824382da2af 100644
--- a/tests/unit/test_tasks.py
+++ b/tests/unit/test_tasks.py
@@ -38,17 +38,6 @@ def test_tls_redis_backend():
class TestWarehouseTask:
- def test_header(self):
- def header(request, thing):
- ... |
aws-powertools__powertools-lambda-python-1159 | Bug: event_source decorator with APIGatewayProxyEventV2 causes TypeError in debug mode
### Expected Behaviour
Using the event source decorator with APIGatewayProxyEventV2 will run Lambda function and not fail with TypeError
### Current Behaviour
When activating debug mode through either `APIGatewayHttpResolver(debug... | [
{
"content": "import base64\nimport json\nimport logging\nimport os\nimport re\nimport traceback\nimport warnings\nimport zlib\nfrom abc import ABC, abstractmethod\nfrom enum import Enum\nfrom functools import partial\nfrom http import HTTPStatus\nfrom typing import Any, Callable, Dict, List, Match, Optional, P... | [
{
"content": "import base64\nimport json\nimport logging\nimport os\nimport re\nimport traceback\nimport warnings\nimport zlib\nfrom abc import ABC, abstractmethod\nfrom enum import Enum\nfrom functools import partial\nfrom http import HTTPStatus\nfrom typing import Any, Callable, Dict, List, Match, Optional, P... | diff --git a/aws_lambda_powertools/event_handler/api_gateway.py b/aws_lambda_powertools/event_handler/api_gateway.py
index 5d57c645b27..0c738354fd4 100644
--- a/aws_lambda_powertools/event_handler/api_gateway.py
+++ b/aws_lambda_powertools/event_handler/api_gateway.py
@@ -491,6 +491,11 @@ def resolve(self, event, conte... |
searxng__searxng-2830 | Bug: internetarchivescholar engine
**Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**
Repository: https://github.com/searxng/searxng
Branch: master
Version: 2023.9.19+3ac7c40b6
<!-- Check if these values are correct -->
**How did you install SearXNG?**
<!... | [
{
"content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n# lint: pylint\n\"\"\"Internet Archive scholar(science)\n\"\"\"\n\nfrom datetime import datetime\nfrom urllib.parse import urlencode\nfrom searx.utils import html_to_text\n\nabout = {\n \"website\": \"https://scholar.archive.org/\",\n \"wikidata_... | [
{
"content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n# lint: pylint\n\"\"\"Internet Archive scholar(science)\n\"\"\"\n\nfrom datetime import datetime\nfrom urllib.parse import urlencode\nfrom searx.utils import html_to_text\n\nabout = {\n \"website\": \"https://scholar.archive.org/\",\n \"wikidata_... | diff --git a/searx/engines/internet_archive_scholar.py b/searx/engines/internet_archive_scholar.py
index fdbc1002604..a4f1ddd03ba 100644
--- a/searx/engines/internet_archive_scholar.py
+++ b/searx/engines/internet_archive_scholar.py
@@ -56,7 +56,7 @@ def response(resp):
{
'template': 'pape... |
aio-libs__aiohttp-6955 | `OSError: AF_UNIX path too long` under MacOS
Surprisingly Travis fails on MacOS: https://travis-ci.com/aio-libs/aiohttp/builds/98188999?utm_medium=notification&utm_source=email
Looks like it is the result of my https://github.com/aio-libs/aiohttp/pull/3548 PR.
I have no Mac available, the investigation can be slow.... | [
{
"content": "#!/usr/bin/env python3\n#\n# aiohttp documentation build configuration file, created by\n# sphinx-quickstart on Wed Mar 5 12:35:35 2014.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi... | [
{
"content": "#!/usr/bin/env python3\n#\n# aiohttp documentation build configuration file, created by\n# sphinx-quickstart on Wed Mar 5 12:35:35 2014.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi... | diff --git a/CHANGES.rst b/CHANGES.rst
index a367e2d4ba4..2c4587d1dac 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -10,6 +10,83 @@
.. towncrier release notes start
+3.8.3 (2022-09-21)
+==================
+
+Bugfixes
+--------
+
+- Increased the upper boundary of the :doc:`multidict:index` dependency
+ to allow f... |
interlegis__sapl-284 | Docker para desenvolvimento
Precisamos de uma configuração Docker para ambiente de desenvolvimento.
Deve ser montado de forma tal que o desenvolvedor tenha um ambiente rodando apenas seguindo esses dois passos:
1. Clonar o repositório
2. Rodar o docker (via docker compose)
| [
{
"content": "\"\"\"\nDjango settings for sapl project.\n\nGenerated by 'django-admin startproject' using Django 1.8.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/1.8/... | [
{
"content": "\"\"\"\nDjango settings for sapl project.\n\nGenerated by 'django-admin startproject' using Django 1.8.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/1.8/... | diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..9880dc4ef
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,53 @@
+FROM ubuntu:15.04
+
+RUN locale-gen en_US.UTF-8
+ENV LANG en_US.UTF-8
+ENV LANGUAGE en_US:en
+ENV LC_ALL en_US.UTF-8
+
+RUN mkdir /sapl
+
+RUN echo "deb http://archive.ubuntu.com/ubuntu/... |
huggingface__diffusers-6737 | [Tracker] change to posix for better Windows support
In https://github.com/huggingface/diffusers/pull/6564, @fabiorigano introduced the use of Posix to better support Windows compatibility.
It'd be nice to change the instances of `os.path.join()` to `Path(...).as_posix()`.
Feel free to open PRs for this and tag... | [
{
"content": "# coding=utf-8\n# Copyright 2023 The HuggingFace Inc. team.\n# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the L... | [
{
"content": "# coding=utf-8\n# Copyright 2023 The HuggingFace Inc. team.\n# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the L... | diff --git a/src/diffusers/pipelines/onnx_utils.py b/src/diffusers/pipelines/onnx_utils.py
index 43827c7a61f2..37c27b7d4b1e 100644
--- a/src/diffusers/pipelines/onnx_utils.py
+++ b/src/diffusers/pipelines/onnx_utils.py
@@ -172,7 +172,7 @@ def _from_pretrained(
# load model from local directory
if os.p... |
pallets__werkzeug-1967 | WSGIRequestHandler.handle() shouldn't silently discard SSL errors
This is arguably a feature request, not a bug: It would be great if WSGIRequestHandler.handle() did not silently discard SSL errors. I have a Flask application that uses client certificates for authentication, and was attempting to run it in debug mode... | [
{
"content": "\"\"\"A WSGI and HTTP server for use **during development only**. This\nserver is convenient to use, but is not designed to be particularly\nstable, secure, or efficient. Use a dedicate WSGI server and HTTP\nserver when deploying to production.\n\nIt provides features like interactive debugging an... | [
{
"content": "\"\"\"A WSGI and HTTP server for use **during development only**. This\nserver is convenient to use, but is not designed to be particularly\nstable, secure, or efficient. Use a dedicate WSGI server and HTTP\nserver when deploying to production.\n\nIt provides features like interactive debugging an... | diff --git a/CHANGES.rst b/CHANGES.rst
index 3962229ff..0c0bce1c9 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -91,6 +91,7 @@ Unreleased
:pr:`1965`
- Fix some word matches for user agent platform when the word can be a
substring. :issue:`1923`
+- The development server logs ignored SSL errors. :pr:`1967... |
PyGithub__PyGithub-743 | get_comments does not return the comments created with create_issue_comments
I notice that calling `get_comments` on a PR object does not return the comments created with `create_issue_comment`, it only returns the user-based comments made with the web interface. Similarly, `get_issue_comments` does not return the API-... | [
{
"content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Michael Stead <michael.stead@gmail.com> #\n# Copyright 2012 Vincent ... | [
{
"content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Michael Stead <michael.stead@gmail.com> #\n# Copyright 2012 Vincent ... | diff --git a/github/PullRequest.py b/github/PullRequest.py
index 9b3dc7e60c..61ceea0f48 100644
--- a/github/PullRequest.py
+++ b/github/PullRequest.py
@@ -480,6 +480,7 @@ def get_review_comment(self, id):
def get_comments(self):
"""
+ Warning: this only returns review comments. For normal convers... |
nautobot__nautobot-5377 | Update VirtualMachineForm to use `select_reated` when Finding IPs for `primary_ip`
Context: https://github.com/nautobot/nautobot/pull/3399/files#diff-f5bfbf2ee3cfa0511ed857e2999b0d1ddd921289c1b2115df6e286ed1558fca9R306
| [
{
"content": "from django import forms\nfrom django.core.exceptions import ValidationError\n\nfrom nautobot.core.forms import (\n add_blank_choice,\n BootstrapMixin,\n BulkEditNullBooleanSelect,\n BulkRenameForm,\n CommentField,\n ConfirmationForm,\n DynamicModelChoiceField,\n DynamicMod... | [
{
"content": "from django import forms\nfrom django.core.exceptions import ValidationError\n\nfrom nautobot.core.forms import (\n add_blank_choice,\n BootstrapMixin,\n BulkEditNullBooleanSelect,\n BulkRenameForm,\n CommentField,\n ConfirmationForm,\n DynamicModelChoiceField,\n DynamicMod... | diff --git a/changes/4106.fixed b/changes/4106.fixed
new file mode 100644
index 00000000000..66729ba83d0
--- /dev/null
+++ b/changes/4106.fixed
@@ -0,0 +1 @@
+Fixed inefficient query in VirtualMachine create form.
diff --git a/nautobot/virtualization/forms.py b/nautobot/virtualization/forms.py
index 1c477e50d63..bc1004... |
Zeroto521__my-data-toolkit-822 | BUG: `DataFrame.to_geoframe` will ignore GeoDataFrame type
```python
>>> import dtoolkit.geoaccessor
>>> import geopandas as gpd
>>> from shapely import Point
>>> df = gpd.GeoDataFrame(
... {
... "label": ["a", "b"],
... "geometry": [Point(100, 1), Point(122, 50)],
... },
... crs=43... | [
{
"content": "from __future__ import annotations\n\nfrom typing import Hashable\nfrom typing import TYPE_CHECKING\n\nimport geopandas as gpd\nimport pandas as pd\n\nfrom dtoolkit.accessor.register import register_dataframe_method\n\nif TYPE_CHECKING:\n from pyproj import CRS\n\n\n@register_dataframe_method\n... | [
{
"content": "from __future__ import annotations\n\nfrom typing import Hashable\nfrom typing import TYPE_CHECKING\n\nimport geopandas as gpd\nimport pandas as pd\n\nfrom dtoolkit.accessor.register import register_dataframe_method\n\nif TYPE_CHECKING:\n from pyproj import CRS\n\n\n@register_dataframe_method\n... | diff --git a/dtoolkit/geoaccessor/dataframe/to_geoframe.py b/dtoolkit/geoaccessor/dataframe/to_geoframe.py
index e2a23ef2b..41c5a8a51 100644
--- a/dtoolkit/geoaccessor/dataframe/to_geoframe.py
+++ b/dtoolkit/geoaccessor/dataframe/to_geoframe.py
@@ -101,15 +101,6 @@ def to_geoframe(
- Prime Meridian: Greenwich
... |
yt-project__yt-1369 | Units error when working with a surface object
### Bug report
**Code for reproduction**
When running the following script:
<!--A minimum code snippet required to reproduce the bug, also minimizing the
number of dependencies required.-->
<!-- If you need to use a data file to trigger the issue you're havi... | [
{
"content": "\"\"\"\nPython-based grid handler, not to be confused with the SWIG-handler\n\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full lice... | [
{
"content": "\"\"\"\nPython-based grid handler, not to be confused with the SWIG-handler\n\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full lice... | diff --git a/yt/data_objects/grid_patch.py b/yt/data_objects/grid_patch.py
index 0ed9990332e..a9d87c43656 100644
--- a/yt/data_objects/grid_patch.py
+++ b/yt/data_objects/grid_patch.py
@@ -274,7 +274,7 @@ def get_vertex_centered_data(self, fields, smoothed=True, no_ghost=False):
for field in fields:
... |
mindsdb__mindsdb-1661 | Add option to list tables in ClickHouse integration :bookmark_tabs:
When users create a connection to the ClickHouse database it will be useful to show them tips with a list of tables. To be able to do this we need a new method `get_tables_list` implemented in the ClickHouse integration class.
## Steps :male_detect... | [
{
"content": "import requests\nfrom lightwood.api import dtype\nfrom mindsdb.integrations.base import Integration\nfrom mindsdb.utilities.log import log\n\n\nclass ClickhouseConnectionChecker:\n def __init__(self, **kwargs):\n self.host = kwargs.get(\"host\")\n self.port = kwargs.get(\"port\")\... | [
{
"content": "import requests\nfrom lightwood.api import dtype\nfrom mindsdb.integrations.base import Integration\nfrom mindsdb.utilities.log import log\n\n\nclass ClickhouseConnectionChecker:\n def __init__(self, **kwargs):\n self.host = kwargs.get(\"host\")\n self.port = kwargs.get(\"port\")\... | diff --git a/mindsdb/integrations/clickhouse/clickhouse.py b/mindsdb/integrations/clickhouse/clickhouse.py
index c7ae9eac5aa..694ddb9eaf7 100644
--- a/mindsdb/integrations/clickhouse/clickhouse.py
+++ b/mindsdb/integrations/clickhouse/clickhouse.py
@@ -151,3 +151,13 @@ def unregister_predictor(self, name):
... |
scrapy__scrapy-1644 | _monkeypatches.py: 'NoneType' object has no attribute 'startswith'
Did not try yet to come up with minimal example to demonstrate this issue but it is reproducible for me:
```
$> datalad --dbg crawl
Traceback (most recent call last):
File "/home/yoh/proj/datalad/datalad/venv-tests/bin/datalad", line 9, in <module>
... | [
{
"content": "import sys\nfrom six.moves import copyreg\n\nif sys.version_info[0] == 2:\n from urlparse import urlparse\n\n # workaround for http://bugs.python.org/issue7904 - Python < 2.7\n if urlparse('s3://bucket/key').netloc != 'bucket':\n from urlparse import uses_netloc\n uses_netlo... | [
{
"content": "import sys\nfrom six.moves import copyreg\n\nif sys.version_info[0] == 2:\n from urlparse import urlparse\n\n # workaround for http://bugs.python.org/issue7904 - Python < 2.7\n if urlparse('s3://bucket/key').netloc != 'bucket':\n from urlparse import uses_netloc\n uses_netlo... | diff --git a/scrapy/_monkeypatches.py b/scrapy/_monkeypatches.py
index 78289132601..60e0de1f204 100644
--- a/scrapy/_monkeypatches.py
+++ b/scrapy/_monkeypatches.py
@@ -20,6 +20,6 @@
import twisted.persisted.styles # NOQA
# Remove only entries with twisted serializers for non-twisted types.
for k, v in frozenset(co... |
biolab__orange3-4030 | Prediction: scores for regression are wrong and are different from Test & Score
**Describe the bug**
Predictions widget displays wrong RMSE.
**To Reproduce**
Paint the data, select the columns to place y as a target, use linear regression for prediction. Feed Predictions with the training data. Choose L2 regulariz... | [
{
"content": "from collections import OrderedDict, namedtuple\n\nimport numpy\nfrom AnyQt.QtWidgets import (\n QTableView, QListWidget, QSplitter, QStyledItemDelegate,\n QToolTip, QAbstractItemView, QStyleOptionViewItem, QStyle,\n QApplication)\nfrom AnyQt.QtGui import (\n QPainter, QHelpEvent, QSta... | [
{
"content": "from collections import OrderedDict, namedtuple\n\nimport numpy\nfrom AnyQt.QtWidgets import (\n QTableView, QListWidget, QSplitter, QStyledItemDelegate,\n QToolTip, QAbstractItemView, QStyleOptionViewItem, QStyle,\n QApplication)\nfrom AnyQt.QtGui import (\n QPainter, QHelpEvent, QSta... | diff --git a/Orange/widgets/evaluate/owpredictions.py b/Orange/widgets/evaluate/owpredictions.py
index eb1b8074930..543524b1d74 100644
--- a/Orange/widgets/evaluate/owpredictions.py
+++ b/Orange/widgets/evaluate/owpredictions.py
@@ -305,7 +305,7 @@ def _update_scores(self):
name = learner_name(pred.predict... |
localstack__localstack-10155 | bug: Multiple firehose delivery streams subscribing to kinesis stream doesn't fire both.
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
1. Create kinesis stream with `awslocal kinesis create-stream`
2. Create two firehose delivery stream with `awslocal fireh... | [
{
"content": "import base64\nimport functools\nimport json\nimport logging\nimport os\nimport re\nimport threading\nimport time\nimport uuid\nfrom datetime import datetime\nfrom typing import Dict, List\nfrom urllib.parse import urlparse\n\nimport requests\n\nfrom localstack.aws.api import RequestContext\nfrom ... | [
{
"content": "import base64\nimport functools\nimport json\nimport logging\nimport os\nimport re\nimport threading\nimport time\nimport uuid\nfrom datetime import datetime\nfrom typing import Dict, List\nfrom urllib.parse import urlparse\n\nimport requests\n\nfrom localstack.aws.api import RequestContext\nfrom ... | diff --git a/localstack/services/firehose/provider.py b/localstack/services/firehose/provider.py
index fbc8f9659ac04..a061d685ec646 100644
--- a/localstack/services/firehose/provider.py
+++ b/localstack/services/firehose/provider.py
@@ -320,7 +320,7 @@ def _startup():
region_name=context.region... |
psychopy__psychopy-6423 | [Bug]: Use of pythonw on macos conda/mamba environments breaks app
### PsychoPy Version
2024.1.3
### What OS are your PsychoPy running on?
macOS Silicon
### Bug Description
When attempting to run the psychopy GUI app following an install in a fresh conda environment:
```
conda create -n pyschopy pyth... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General Public License (GPL).\n\nimport sys\n\n# fix macOS locale-bug on startup: sets locale ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General Public License (GPL).\n\nimport sys\n\n# fix macOS locale-bug on startup: sets locale ... | diff --git a/psychopy/app/psychopyApp.py b/psychopy/app/psychopyApp.py
index 7a1f58d92b..f13c1048cf 100755
--- a/psychopy/app/psychopyApp.py
+++ b/psychopy/app/psychopyApp.py
@@ -69,9 +69,8 @@ def main():
""")
sys.exit()
- if (sys.platform == 'darwin' and
- ('| packaged by conda-forge |' in sy... |
weecology__retriever-1350 | Post release bump of version to 2.4.1-dev
| [
{
"content": "\"\"\"Use the following command to install retriever: python setup.py install\"\"\"\nfrom __future__ import absolute_import\n\nimport os\nimport re\nimport platform\n\nfrom pkg_resources import parse_version\nfrom setuptools import setup, find_packages\n\ncurrent_platform = platform.system().lower... | [
{
"content": "\"\"\"Use the following command to install retriever: python setup.py install\"\"\"\nfrom __future__ import absolute_import\n\nimport os\nimport re\nimport platform\n\nfrom pkg_resources import parse_version\nfrom setuptools import setup, find_packages\n\ncurrent_platform = platform.system().lower... | diff --git a/retriever/_version.py b/retriever/_version.py
index 12bf58fa9..f02604bc8 100644
--- a/retriever/_version.py
+++ b/retriever/_version.py
@@ -1 +1 @@
-__version__ = 'v2.4.0'
+__version__ = 'v2.4.1.dev'
diff --git a/retriever_installer.iss b/retriever_installer.iss
index 3e3469e0d..428ea7b38 100644
--- a/retr... |
google__mobly-323 | `signals.TestAbortClass` does not work in `setup_test` and `on_xxxx` methods
It is valid to abort the class at any stage of a test.
E.g. If we find out in `on_fail` that a test failed due to a fatal error like snippet_client losing socket connection, it is reasonable for the test to abort all subsequent tests in the... | [
{
"content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/mobly/base_test.py b/mobly/base_test.py
index 0c540a5e..24290de2 100644
--- a/mobly/base_test.py
+++ b/mobly/base_test.py
@@ -318,7 +318,7 @@ def _exec_procedure_func(self, func, tr_record):
# Pass a copy of the record instead of the actual object so that it
# will not be modified... |
akvo__akvo-rsr-2418 | akvo.rest.fields in from_native AttributeError: 'NoneType' object has no attribute 'name'
http://sentry.support.akvo-ops.org/rsr/live/group/1017/
Bug introduced in 1aa60508350d4477c1f0964db7f3c124d9d1bc01
| [
{
"content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\n\nimport b... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\n\nimport b... | diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 320d022505..8e6dd7f406 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -4,6 +4,10 @@
## Bug fixes
+[#2417] (https://github.com/akvo/akvo-rsr/issues/2417) Fix bug in API calls
+which accept an image, which can be None, for example deleting project photo... |
microsoft__playwright-python-959 | [Bug]: `record_har_omit_content` does not work properly
### Playwright version
1.15.3
### Operating system
Linux
### What browsers are you seeing the problem on?
Chromium, Firefox, WebKit
### Other information
Repo to present bug:
https://github.com/qwark97/har_omit_content_bug
Bug occurs also ... | [
{
"content": "# Copyright (c) Microsoft Corporation.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | [
{
"content": "# Copyright (c) Microsoft Corporation.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | diff --git a/playwright/_impl/_browser.py b/playwright/_impl/_browser.py
index a1ff1cdd5..3bc868794 100644
--- a/playwright/_impl/_browser.py
+++ b/playwright/_impl/_browser.py
@@ -210,7 +210,7 @@ async def normalize_context_params(is_sync: bool, params: Dict) -> None:
if "recordHarPath" in params:
params... |
kivy__kivy-6012 | Fix HIDMotionEvent log formatting
This was posted by C_D on irc, seems to be a py3 issue, but not tested.
``` python
[INFO ] Logger: Record log in /home/fpg/.kivy/logs/kivy_14-12-10_0.txt
[INFO ] Kivy: v1.9.0-dev
[INFO ] Python: v3.4.2 (default, Jan 11 2015, 22:16:42)
[GCC 4.9.2... | [
{
"content": "# coding utf-8\n'''\nNative support for HID input from the linux kernel\n==================================================\n\nSupport starts from 2.6.32-ubuntu, or 2.6.34.\n\nTo configure HIDInput, add this to your configuration::\n\n [input]\n # devicename = hidinput,/dev/input/eventXX\n ... | [
{
"content": "# coding utf-8\n'''\nNative support for HID input from the linux kernel\n==================================================\n\nSupport starts from 2.6.32-ubuntu, or 2.6.34.\n\nTo configure HIDInput, add this to your configuration::\n\n [input]\n # devicename = hidinput,/dev/input/eventXX\n ... | diff --git a/kivy/input/providers/hidinput.py b/kivy/input/providers/hidinput.py
index 73429ef88b..aace474ff0 100644
--- a/kivy/input/providers/hidinput.py
+++ b/kivy/input/providers/hidinput.py
@@ -608,8 +608,8 @@ def normalize(value, vmin, vmax):
fd = open(input_fn, 'rb')
# get the control... |
cocotb__cocotb-1800 | AvalonSTPkts hexdump needs a minor fix now that the transaction is of type bytes rather than string
When DEBUG logging level is enabled, the `hexdump` call in `_monitor_recv` function of AvalonSTPkts calls hexdump after converting the `pkt` in to `str` which is no longer needed
| [
{
"content": "# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistributions o... | [
{
"content": "# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistributions o... | diff --git a/cocotb/monitors/avalon.py b/cocotb/monitors/avalon.py
index bd8b0b2eb8..dc4a7d6bb8 100644
--- a/cocotb/monitors/avalon.py
+++ b/cocotb/monitors/avalon.py
@@ -217,7 +217,7 @@ def valid():
if self.bus.endofpacket.value:
self.log.info("Received a packet of %d bytes", le... |
google__osv.dev-394 | V2 UI: Grouped versions on vulnerability page
Group by the first component leading up to the first period. e.g. "1.", "2."

If no period, maybe just group this under something generic.
| [
{
"content": "# Copyright 2021 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "# Copyright 2021 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/gcp/appengine/frontend3/src/styles.scss b/gcp/appengine/frontend3/src/styles.scss
index e20a16cbb3c..04f4ca4de2a 100644
--- a/gcp/appengine/frontend3/src/styles.scss
+++ b/gcp/appengine/frontend3/src/styles.scss
@@ -378,6 +378,8 @@ dl.vulnerability-details,
display: grid;
grid-template-columns: max-c... |
huggingface__trl-1125 | Eval dataset issue in DPOTrainer when precompute_ref_log_probs=True and ref_model=None
when `precompute_ref_log_probs=True`, `reference_chosen_logps` and `reference_rejected_logps` was not saved to `self.eval_dataset`. When `ref_model=None`, subsequent evaluations will use `self.model` to recalculate, resulting in eval... | [
{
"content": "# DPO Authors: Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D. Manning, and Chelsea Finn 2023\n# 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 com... | [
{
"content": "# DPO Authors: Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D. Manning, and Chelsea Finn 2023\n# 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 com... | diff --git a/trl/trainer/dpo_trainer.py b/trl/trainer/dpo_trainer.py
index 8d8822751a..dac3d678d0 100644
--- a/trl/trainer/dpo_trainer.py
+++ b/trl/trainer/dpo_trainer.py
@@ -490,6 +490,9 @@ def get_eval_dataloader(self, eval_dataset: Optional[Dataset] = None) -> DataLoa
name="reference_rejected_logps"... |
pyqtgraph__pyqtgraph-953 | HistogramLUTWidget kargs bug?
# lut_widget = HistogramLUTWidget(background='w')
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph-0.9.8-py3.4.egg/pyqtgraph/widgets/HistogramLUTWidget.py", line 18, in **init**
self.item = HistogramLUTItem(_args, *_kargs)
# TypeError: **init**() got an unexpected keyword argum... | [
{
"content": "\"\"\"\nWidget displaying an image histogram along with gradient editor. Can be used to adjust the appearance of images.\nThis is a wrapper around HistogramLUTItem\n\"\"\"\n\nfrom ..Qt import QtGui, QtCore\nfrom .GraphicsView import GraphicsView\nfrom ..graphicsItems.HistogramLUTItem import Histog... | [
{
"content": "\"\"\"\nWidget displaying an image histogram along with gradient editor. Can be used to adjust the appearance of images.\nThis is a wrapper around HistogramLUTItem\n\"\"\"\n\nfrom ..Qt import QtGui, QtCore\nfrom .GraphicsView import GraphicsView\nfrom ..graphicsItems.HistogramLUTItem import Histog... | diff --git a/pyqtgraph/widgets/HistogramLUTWidget.py b/pyqtgraph/widgets/HistogramLUTWidget.py
index 9aec837c1e..5259900cdc 100644
--- a/pyqtgraph/widgets/HistogramLUTWidget.py
+++ b/pyqtgraph/widgets/HistogramLUTWidget.py
@@ -13,7 +13,7 @@
class HistogramLUTWidget(GraphicsView):
def __init__(self, parent=N... |
django-cms__django-cms-3892 | db_table error in Django 1.7 on sqlite
sqlite backend in Dajngo 1.7 implements some migrations by applying them to a temporary model with a patched db_table name and then renaming the new table (https://github.com/django/django/blob/stable/1.7.x/django/db/backends/sqlite3/schema.py#L124-L154)
`PlacheolderField` defines... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom cms.forms.fields import PageSelectFormField\nfrom cms.models.pagemodel import Page\nfrom cms.models.placeholdermodel import Placeholder\nfrom cms.utils.placeholder import PlaceholderNoAction, validate_placeholder_name\nfrom django.db import models\n\n\nclass Placehold... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom cms.forms.fields import PageSelectFormField\nfrom cms.models.pagemodel import Page\nfrom cms.models.placeholdermodel import Placeholder\nfrom cms.utils.placeholder import PlaceholderNoAction, validate_placeholder_name\nfrom django.db import models\n\n\nclass Placehold... | diff --git a/cms/models/fields.py b/cms/models/fields.py
index cac58e6a925..f2a17e99da4 100644
--- a/cms/models/fields.py
+++ b/cms/models/fields.py
@@ -20,7 +20,7 @@ def __init__(self, slotname, default_width=None, actions=PlaceholderNoAction, **
del(kwargs['to'])
kwargs.update({'null': True}) #... |
PaddlePaddle__PaddleSeg-980 | DecoupledSegNet错误
1.环境:(首先安装cpu版本,测试成功)

2.安装GPU版本
命令:python -m pip install paddlepaddle-gpu==2.0.0 -i https://mirror.baidu.com/pypi/simple
3.出现问题
 2020 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0... | [
{
"content": "# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0... | diff --git a/paddleseg/models/decoupled_segnet.py b/paddleseg/models/decoupled_segnet.py
index 74f9dfe19d..cb74e25b19 100644
--- a/paddleseg/models/decoupled_segnet.py
+++ b/paddleseg/models/decoupled_segnet.py
@@ -213,6 +213,7 @@ def forward(self, x):
def flow_warp(self, input, flow, size):
input_shape =... |
pyqtgraph__pyqtgraph-2077 | Improve error message when environment variable `PYQTGRAPH_QT_LIB` is pointing to a non-installed binding
If no environment variable is set, a helpful error message indicates no qt binding is importable. It would be nice if an error message also displayed something to the effect of `f"PYQTGRAPH_QT_LIB is set to {bindin... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nThis module exists to smooth out some of the differences between PySide and PyQt4:\n\n* Automatically import either PyQt4 or PySide depending on availability\n* Allow to import QtCore/QtGui pyqtgraph.Qt without specifying which Qt wrapper\n you want to use.\n* Dec... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nThis module exists to smooth out some of the differences between PySide and PyQt4:\n\n* Automatically import either PyQt4 or PySide depending on availability\n* Allow to import QtCore/QtGui pyqtgraph.Qt without specifying which Qt wrapper\n you want to use.\n* Dec... | diff --git a/pyqtgraph/Qt/__init__.py b/pyqtgraph/Qt/__init__.py
index 0a2431d6a3..170862ba35 100644
--- a/pyqtgraph/Qt/__init__.py
+++ b/pyqtgraph/Qt/__init__.py
@@ -22,6 +22,12 @@
QT_LIB = os.getenv('PYQTGRAPH_QT_LIB')
+if QT_LIB is not None:
+ try:
+ __import__(QT_LIB)
+ except ModuleNotFoundError:... |
cloudtools__troposphere-1234 | EC2 LaunchTemplateData InstanceType should not be required
According to cloudformation spec EC2 LaunchTemplateData InstanceType is not required.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-instancetyp... | [
{
"content": "# Copyright (c) 2012-2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSHelperFn, AWSObject, AWSProperty, Tags\nfrom .validators import (\n boolean, exactly_one, integer, integer_range, double,\n network_port, positive_integer... | [
{
"content": "# Copyright (c) 2012-2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSHelperFn, AWSObject, AWSProperty, Tags\nfrom .validators import (\n boolean, exactly_one, integer, integer_range, double,\n network_port, positive_integer... | diff --git a/troposphere/ec2.py b/troposphere/ec2.py
index 0cfe35e76..2cb9d617b 100644
--- a/troposphere/ec2.py
+++ b/troposphere/ec2.py
@@ -896,7 +896,7 @@ class LaunchTemplateData(AWSProperty):
'ImageId': (basestring, True),
'InstanceInitiatedShutdownBehavior': (basestring, False),
'Instanc... |
zestedesavoir__zds-site-2951 | L'affichage des pseudos dans la liste des tutoriels / article déconne
L'affichage du pseudo "Bat'" n'est pas correct.

Possible de voir le comportement sur la page: https://zestedesavoir.com/tutoriels/?tag=dot-n... | [
{
"content": "# -*- coding: utf-8 -*-\n\nfrom django import template\n\nregister = template.Library()\n\n\"\"\"\nDefine a tag allowing to capture template content as a variable.\n\"\"\"\n\n\n@register.tag(name='captureas')\ndef do_captureas(parser, token):\n \"\"\"\n Define a tag allowing to capture templ... | [
{
"content": "# -*- coding: utf-8 -*-\n\nfrom django import template\nfrom django.utils.safestring import mark_safe\n\nregister = template.Library()\n\n\"\"\"\nDefine a tag allowing to capture template content as a variable.\n\"\"\"\n\n\n@register.tag(name='captureas')\ndef do_captureas(parser, token):\n \"\... | diff --git a/zds/utils/templatetags/captureas.py b/zds/utils/templatetags/captureas.py
index d9d0aa14f3..4d1db59b13 100644
--- a/zds/utils/templatetags/captureas.py
+++ b/zds/utils/templatetags/captureas.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from django import template
+from django.utils.safestring import mark... |
ytdl-org__youtube-dl-18583 | Extractor for yourporn.sexy is broken
## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`)
- Use the *Preview* tab to see what... | [
{
"content": "from __future__ import unicode_literals\n\nfrom .common import InfoExtractor\nfrom ..utils import urljoin\n\n\nclass YourPornIE(InfoExtractor):\n _VALID_URL = r'https?://(?:www\\.)?yourporn\\.sexy/post/(?P<id>[^/?#&.]+)'\n _TEST = {\n 'url': 'https://yourporn.sexy/post/57ffcb2e1179b.h... | [
{
"content": "from __future__ import unicode_literals\n\nfrom .common import InfoExtractor\nfrom ..utils import urljoin\n\n\nclass YourPornIE(InfoExtractor):\n _VALID_URL = r'https?://(?:www\\.)?yourporn\\.sexy/post/(?P<id>[^/?#&.]+)'\n _TEST = {\n 'url': 'https://yourporn.sexy/post/57ffcb2e1179b.h... | diff --git a/youtube_dl/extractor/yourporn.py b/youtube_dl/extractor/yourporn.py
index a9951f3b830..c231ec9b1c3 100644
--- a/youtube_dl/extractor/yourporn.py
+++ b/youtube_dl/extractor/yourporn.py
@@ -26,7 +26,7 @@ def _real_extract(self, url):
self._search_regex(
r'data-vnfo=(["\'])(?P<da... |
vega__altair-3401 | Navbar in docs gets scrambled at a certain window width
### What happened?
This is low prio, but the docs navbar get a bit scrambled in "medium" screen width. It looks fine in wide screen:

And narrow:
d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi... | [
{
"content": "# !/usr/bin/env python3\n#\n# altair documentation build configuration file, created by\n# sphinx-quickstart on Wed Sep 7 12:52:48 2016.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in thi... | diff --git a/doc/conf.py b/doc/conf.py
index 7c93d2eca..af0571b80 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -157,7 +157,7 @@
"type": "fontawesome",
},
],
- "header_links_before_dropdown": 6,
+ "header_links_before_dropdown": 4,
"announcement": """This website is for version 5. ... |
pallets__click-2163 | Use COMPREPLY instead of COMREPLY in Bash shell completion
The generated Bash shell completion references `COMREPLY` instead of `COMPREPLY`. This is clearly a typo.
https://github.com/pallets/click/blob/051d57cef4ce59212dc1175ad4550743bf47d840/src/click/shell_completion.py#L105-L108
| [
{
"content": "import os\nimport re\nimport typing as t\nfrom gettext import gettext as _\n\nfrom .core import Argument\nfrom .core import BaseCommand\nfrom .core import Context\nfrom .core import MultiCommand\nfrom .core import Option\nfrom .core import Parameter\nfrom .core import ParameterSource\nfrom .parser... | [
{
"content": "import os\nimport re\nimport typing as t\nfrom gettext import gettext as _\n\nfrom .core import Argument\nfrom .core import BaseCommand\nfrom .core import Context\nfrom .core import MultiCommand\nfrom .core import Option\nfrom .core import Parameter\nfrom .core import ParameterSource\nfrom .parser... | diff --git a/CHANGES.rst b/CHANGES.rst
index cfc92808a..6348d6f25 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -11,6 +11,9 @@ Unreleased
annotation of the decorated function. :pr:`2155`
- A callable default value can customize its help text by overriding
``__str__`` instead of always showing ``(dynamic)``... |
coala__coala-bears-2883 | Replace dep munkres3 with munkres
https://github.com/bmc/munkres now has Python 3 support, so we dont need to use https://github.com/datapublica/munkres
openSUSE already has the former, doesnt have the latter (c.f. https://github.com/coala/coala-bears/issues/2849)
https://packages.ubuntu.com/cosmic/python3-munkre... | [
{
"content": "import functools\nfrom itertools import combinations\n\nfrom bears.c_languages.ClangBear import clang_available, ClangBear\nfrom bears.c_languages.codeclone_detection.ClangCountingConditions import (\n condition_dict)\nfrom bears.c_languages.codeclone_detection.ClangCountVectorCreator import (\... | [
{
"content": "import functools\nfrom itertools import combinations\n\nfrom bears.c_languages.ClangBear import clang_available, ClangBear\nfrom bears.c_languages.codeclone_detection.ClangCountingConditions import (\n condition_dict)\nfrom bears.c_languages.codeclone_detection.ClangCountVectorCreator import (\... | diff --git a/bear-requirements.txt b/bear-requirements.txt
index 6a30c370c8..6ec1d0e6f7 100644
--- a/bear-requirements.txt
+++ b/bear-requirements.txt
@@ -19,7 +19,7 @@ language-check~=1.0
libclang-py3~=3.4.0
lxml>=1.0
memento-client~=0.6.1
-munkres3~=1.0
+munkres~=1.1.2
mypy==0.590
nbformat~=4.1
nltk~=3.2
diff -... |
easybuilders__easybuild-easyblocks-1796 | SuiteSparse easyblock fails when using Python 3
When running `eb` on top of Python 3.6.8:
```
$ eb SuiteSparse-5.4.0-foss-2019a-METIS-5.1.0.eb
...
== configuring...
ERROR: Traceback (most recent call last):
File "/home/kehoste/easybuild-framework/easybuild/main.py", line 112, in build_and_install_software
... | [
{
"content": "##\n# Copyright 2009-2019 Ghent University\n#\n# This file is part of EasyBuild,\n# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n# with support of Ghent University (http://ugent.be/hpc),\n# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),\n# F... | [
{
"content": "##\n# Copyright 2009-2019 Ghent University\n#\n# This file is part of EasyBuild,\n# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n# with support of Ghent University (http://ugent.be/hpc),\n# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),\n# F... | diff --git a/easybuild/easyblocks/s/suitesparse.py b/easybuild/easyblocks/s/suitesparse.py
index 1fb0ccf360f..dc45f8cf0ec 100644
--- a/easybuild/easyblocks/s/suitesparse.py
+++ b/easybuild/easyblocks/s/suitesparse.py
@@ -110,7 +110,7 @@ def configure_step(self):
try:
for line in fileinput.input(... |
encode__django-rest-framework-7290 | "Action" button does not render in API if `app_name` is set
## 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. (Thos... | [
{
"content": "\"\"\"\nViewSets are essentially just a type of class based view, that doesn't provide\nany method handlers, such as `get()`, `post()`, etc... but instead has actions,\nsuch as `list()`, `retrieve()`, `create()`, etc...\n\nActions are only bound to methods at the point of instantiating the views.\... | [
{
"content": "\"\"\"\nViewSets are essentially just a type of class based view, that doesn't provide\nany method handlers, such as `get()`, `post()`, etc... but instead has actions,\nsuch as `list()`, `retrieve()`, `create()`, etc...\n\nActions are only bound to methods at the point of instantiating the views.\... | diff --git a/rest_framework/viewsets.py b/rest_framework/viewsets.py
index cad032dd91..9cb48729ec 100644
--- a/rest_framework/viewsets.py
+++ b/rest_framework/viewsets.py
@@ -150,6 +150,11 @@ def reverse_action(self, url_name, *args, **kwargs):
Reverse the action for the given `url_name`.
"""
... |
web2py__web2py-1732 | XML sanitize=True throws error on check for acceptable url in py2
Below code in view throws error
```
{{=XML('<img src="/myapp/static/images/pict.jpg" />', sanitize=True)}}
```
Error:
```
Traceback (most recent call last):
File "\web2py\gluon\restricted.py", line 219, in restricted
exec(ccode, environme... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\n| From http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496942\n| Submitter: Josh Goldfoot (other recipes)\n| Last Updated: 2006/08/05\n| Version: 1.0\n\nCross-site scripting (XSS) defense\n-----------------------------------\n\"\"\"\n... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\n| From http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496942\n| Submitter: Josh Goldfoot (other recipes)\n| Last Updated: 2006/08/05\n| Version: 1.0\n\nCross-site scripting (XSS) defense\n-----------------------------------\n\"\"\"\n... | diff --git a/gluon/sanitizer.py b/gluon/sanitizer.py
index 5cd2ea4aa..b98b7477e 100644
--- a/gluon/sanitizer.py
+++ b/gluon/sanitizer.py
@@ -145,7 +145,7 @@ def url_is_acceptable(self, url):
if url.startswith('#'):
return True
else:
- parsed = urlparse(url)
+ parsed ... |
alltheplaces__alltheplaces-8361 | Problems with Spiders built on YextSpider
I've noticed a few of the spiders whose results I was using in my OSM tool have recently stopped returning any results, including five_guys_de_es_fr_gb.py , matalan_gb.py , and three_gb.py .
A common feature of these spiders is that they use the YextSpider class. Checking so... | [
{
"content": "from locations.storefinders.yext import YextSpider\n\n\nclass LaneBryantUSSpider(YextSpider):\n name = \"lane_bryant_us\"\n item_attributes = {\"brand\": \"Lane Bryant\", \"brand_wikidata\": \"Q6485350\"}\n api_key = \"ccfe136898dfe236489c4f9fb0b91ded\"\n api_version = \"20220511\"\n",... | [
{
"content": "from locations.categories import Categories\nfrom locations.storefinders.yext_answers import YextAnswersSpider\n\n\nclass LaneBryantUSSpider(YextAnswersSpider):\n name = \"lane_bryant_us\"\n item_attributes = {\"brand\": \"Lane Bryant\", \"brand_wikidata\": \"Q6485350\", \"extras\": Categori... | diff --git a/locations/spiders/lane_bryant_us.py b/locations/spiders/lane_bryant_us.py
index 40bd794f136..7a88ed57d5e 100644
--- a/locations/spiders/lane_bryant_us.py
+++ b/locations/spiders/lane_bryant_us.py
@@ -1,8 +1,9 @@
-from locations.storefinders.yext import YextSpider
+from locations.categories import Categorie... |
dj-stripe__dj-stripe-881 | `Plan.create()` cannot create both Stripe object and Django object
This is the `djstripe.models.billing.Plan.create()` method.
```
@classmethod
def create(cls, **kwargs):
# A few minor things are changed in the api-version of the create call
api_kwargs = dict(kwargs)
api_kwargs["amount"] = int(api_k... | [
{
"content": "from copy import deepcopy\n\nimport stripe\nfrom django.db import models\nfrom django.utils import timezone\nfrom django.utils.text import format_lazy\nfrom django.utils.translation import gettext_lazy as _\nfrom stripe.error import InvalidRequestError\n\nfrom .. import enums\nfrom .. import setti... | [
{
"content": "from copy import deepcopy\n\nimport stripe\nfrom django.db import models\nfrom django.utils import timezone\nfrom django.utils.text import format_lazy\nfrom django.utils.translation import gettext_lazy as _\nfrom stripe.error import InvalidRequestError\n\nfrom .. import enums\nfrom .. import setti... | diff --git a/djstripe/models/billing.py b/djstripe/models/billing.py
index 0323183180..c49f98701c 100644
--- a/djstripe/models/billing.py
+++ b/djstripe/models/billing.py
@@ -799,9 +799,12 @@ def create(cls, **kwargs):
# A few minor things are changed in the api-version of the create call
api_kwargs = dict(kwargs... |
ivy-llc__ivy-27305 | __sub__
| [
{
"content": "# local\nimport ivy\nimport ivy.functional.frontends.paddle as paddle_frontend\nfrom ivy.func_wrapper import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n with_supported_device_and_dtypes,\n)\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\n\n\nclass Tens... | [
{
"content": "# local\nimport ivy\nimport ivy.functional.frontends.paddle as paddle_frontend\nfrom ivy.func_wrapper import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n with_supported_device_and_dtypes,\n)\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\n\n\nclass Tens... | diff --git a/ivy/functional/frontends/paddle/tensor/tensor.py b/ivy/functional/frontends/paddle/tensor/tensor.py
index 6cfce102f6370..4dda87cd07af2 100644
--- a/ivy/functional/frontends/paddle/tensor/tensor.py
+++ b/ivy/functional/frontends/paddle/tensor/tensor.py
@@ -68,6 +68,13 @@ def ivy_array(self, array):
def... |
gratipay__gratipay.com-1769 | Integrate SASS compilation into development environment
This started in [IRC](https://botbot.me/freenode/gittip/msg/8682409/).
The goal here is to use the same SASS compiler that we use in production, in development. We currently use the standard Ruby version, but that won't quite work for development since we shouldn... | [
{
"content": "\"\"\"Wireup\n\"\"\"\nfrom __future__ import absolute_import, division, print_function, unicode_literals\nimport os\nimport sys\nimport threading\nimport time\n\nimport aspen\nimport balanced\nimport gittip\nimport raven\nimport psycopg2\nimport stripe\nimport gittip.utils.mixpanel\nfrom gittip.mo... | [
{
"content": "\"\"\"Wireup\n\"\"\"\nfrom __future__ import absolute_import, division, print_function, unicode_literals\nimport os\nimport sys\nimport threading\nimport time\n\nimport aspen\nimport balanced\nimport gittip\nimport raven\nimport psycopg2\nimport stripe\nimport gittip.utils.mixpanel\nfrom gittip.mo... | diff --git a/README.md b/README.md
index 618f6aeb24..5948b77ee1 100644
--- a/README.md
+++ b/README.md
@@ -214,21 +214,6 @@ should change the `DATABASE_URL` using the following format:
DATABASE_URL=postgres://<username>@localhost/<database name>
-Modifying CSS
-=============
-
-We use SCSS, with files stored i... |
microsoft__ptvsd-797 | Add ability to launch the debugger in non-debug mode
Currently we can only launch the debugger in non-debug mode when using `-m`.
I'd like to have the same feature by importing PTVSD and invoking a function, similar to debugging using the `debug` function in `debugger.py`
Basically this is necessary to launch the d... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nimport sys\n\nfrom ptvsd._local import run_module, run_file\n\n\n# TODO: not needed?\nDONT_DEBUG = []\n\nLOCALHOST = 'localhost'\n\nRUNNERS ... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nimport sys\n\nfrom ptvsd._local import run_module, run_file, run_main\n\n\n# TODO: not needed?\nDONT_DEBUG = []\n\nLOCALHOST = 'localhost'\n... | diff --git a/ptvsd/debugger.py b/ptvsd/debugger.py
index 0a76bee49..860838888 100644
--- a/ptvsd/debugger.py
+++ b/ptvsd/debugger.py
@@ -4,7 +4,7 @@
import sys
-from ptvsd._local import run_module, run_file
+from ptvsd._local import run_module, run_file, run_main
# TODO: not needed?
@@ -35,3 +35,9 @@ def debu... |
e-valuation__EvaP-1784 | Evaluation Edit: Button Groups don't work, submitting fails with "This field is required".
Since the django4 update (#1746, https://github.com/e-valuation/EvaP/commit/f2ce2c5a686070b153549559ac614c6aad0c8e73), going to any evaluation edit page as a staff user and clicking on "Save" fails with
> This field is required... | [
{
"content": "import logging\nfrom collections.abc import Iterable\n\nfrom django import forms\nfrom django.contrib.auth.models import Group\nfrom django.core.exceptions import SuspiciousOperation, ValidationError\nfrom django.db import transaction\nfrom django.db.models import Max, Q\nfrom django.forms.models ... | [
{
"content": "import logging\nfrom collections.abc import Iterable\n\nfrom django import forms\nfrom django.contrib.auth.models import Group\nfrom django.core.exceptions import SuspiciousOperation, ValidationError\nfrom django.db import transaction\nfrom django.db.models import Max, Q\nfrom django.forms.models ... | diff --git a/evap/staff/forms.py b/evap/staff/forms.py
index fc82ac5df5..43a595f0eb 100644
--- a/evap/staff/forms.py
+++ b/evap/staff/forms.py
@@ -579,6 +579,9 @@ class Meta:
fields = ("evaluation", "contributor", "questionnaires", "role", "textanswer_visibility", "label", "order")
widgets = {
... |
apache__airflow-8834 | show_dag (save) feature is not supporting any other orientation except 'LR'
<!--
Welcome to Apache Airflow! For a smooth issue process, try to answer the following questions.
Don't worry if they're not all applicable; just try to include what you can :-)
If you need to include code snippets or logs, please put ... | [
{
"content": "#!/usr/bin/env python\n#\n# 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 L... | [
{
"content": "#!/usr/bin/env python\n#\n# 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 L... | diff --git a/airflow/utils/dot_renderer.py b/airflow/utils/dot_renderer.py
index d5deb9eeb7b2f..605dd828548db 100644
--- a/airflow/utils/dot_renderer.py
+++ b/airflow/utils/dot_renderer.py
@@ -57,7 +57,8 @@ def render_dag(dag: DAG, tis: Optional[List[TaskInstance]] = None) -> graphviz.D
:return: Graphviz object
... |
django-wiki__django-wiki-907 | "This backend doesn't support absolute urls" deleting image
I will try to explain the best as I can what I think is a bug but, given my relative knowledge of django could be some misconfiguration. Also, it could be more of a conflict between django wiki and S3 as storage.
The use case is: having a production cookiec... | [
{
"content": "import os.path\n\nfrom django.conf import settings as django_settings\nfrom django.db import models\nfrom django.db.models import signals\nfrom django.utils.translation import gettext, gettext_lazy as _\nfrom wiki.models.pluginbase import RevisionPlugin, RevisionPluginRevision\n\nfrom . import set... | [
{
"content": "import os.path\n\nfrom django.conf import settings as django_settings\nfrom django.db import models\nfrom django.db.models import signals\nfrom django.utils.translation import gettext, gettext_lazy as _\nfrom wiki.models.pluginbase import RevisionPlugin, RevisionPluginRevision\n\nfrom . import set... | diff --git a/src/wiki/plugins/images/models.py b/src/wiki/plugins/images/models.py
index 8441a97ce..bf0cd9f1c 100644
--- a/src/wiki/plugins/images/models.py
+++ b/src/wiki/plugins/images/models.py
@@ -107,8 +107,15 @@ def __str__(self):
def on_image_revision_delete(instance, *args, **kwargs):
if not instance.imag... |
pypa__pip-3598 | 8.1.1 locale.Error: unsupported locale setting in the Docker container
- Pip version: 8.1.1
- Python version: 2.7.6
- Operating System: ubuntu:14.04 in the Docker container
### Description:
Traceback after upgrading pip from to 8.1.0 to 8.1.1 when `LC_*` environment variables are empty.
### What I've run:
```
(env) ... | [
{
"content": "#!/usr/bin/env python\nfrom __future__ import absolute_import\n\nimport locale\nimport logging\nimport os\nimport optparse\nimport warnings\n\nimport sys\nimport re\n\nfrom pip.exceptions import InstallationError, CommandError, PipError\nfrom pip.utils import get_installed_distributions, get_prog\... | [
{
"content": "#!/usr/bin/env python\nfrom __future__ import absolute_import\n\nimport locale\nimport logging\nimport os\nimport optparse\nimport warnings\n\nimport sys\nimport re\n\nfrom pip.exceptions import InstallationError, CommandError, PipError\nfrom pip.utils import get_installed_distributions, get_prog\... | diff --git a/CHANGES.txt b/CHANGES.txt
index 9394b0560cd..e88fb583293 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,3 +1,8 @@
+**8.1.2 (unreleased)**
+
+* Fix a regression on systems with uninitialized locale (:issue:`3575`).
+
+
**8.1.1 (2016-03-17)**
* Fix regression with non-ascii requirement files on Python ... |
paperless-ngx__paperless-ngx-3632 | [BUG] document_thumbnails tool moves default thumbnail
### Description
I'm running the `document_thumbnails` from the command line. Some of my PDF's are password protected, so the thumbnail generation fails. When the thumbnail cannot be generated, it [falls back](https://github.com/paperless-ngx/paperless-ngx/blob/dev... | [
{
"content": "import datetime\nimport logging\nimport mimetypes\nimport os\nimport re\nimport shutil\nimport subprocess\nimport tempfile\nfrom functools import lru_cache\nfrom pathlib import Path\nfrom typing import Iterator\nfrom typing import Match\nfrom typing import Optional\nfrom typing import Set\n\nfrom ... | [
{
"content": "import datetime\nimport logging\nimport mimetypes\nimport os\nimport re\nimport shutil\nimport subprocess\nimport tempfile\nfrom functools import lru_cache\nfrom pathlib import Path\nfrom typing import Iterator\nfrom typing import Match\nfrom typing import Optional\nfrom typing import Set\n\nfrom ... | diff --git a/src/documents/parsers.py b/src/documents/parsers.py
index 265219412bc..e1d7365fbf8 100644
--- a/src/documents/parsers.py
+++ b/src/documents/parsers.py
@@ -202,7 +202,12 @@ def make_thumbnail_from_pdf_gs_fallback(in_path, temp_dir, logging_group=None) -
return out_path
except ParseError:
- ... |
deepset-ai__haystack-7603 | Add e2e tests for pipeline evaluation for 2.x
Test eval for 2.x with tiny dataset, check dataframes, isolated, integrated eval (migrate existing integration tests to e2e tests for 2.x)
| [
{
"content": "from abc import ABC, abstractmethod\nfrom copy import deepcopy\nfrom typing import Any, Dict, List\nfrom warnings import warn\n\nfrom pandas import DataFrame\nfrom pandas import concat as pd_concat\n\n\nclass BaseEvaluationRunResult(ABC):\n \"\"\"\n Represents the results of an evaluation ru... | [
{
"content": "from abc import ABC, abstractmethod\nfrom copy import deepcopy\nfrom typing import Any, Dict, List\nfrom warnings import warn\n\nfrom pandas import DataFrame\nfrom pandas import concat as pd_concat\n\n\nclass BaseEvaluationRunResult(ABC):\n \"\"\"\n Represents the results of an evaluation ru... | diff --git a/haystack/evaluation/eval_run_result.py b/haystack/evaluation/eval_run_result.py
index c0bc2daa93..359c19bce0 100644
--- a/haystack/evaluation/eval_run_result.py
+++ b/haystack/evaluation/eval_run_result.py
@@ -119,8 +119,8 @@ def comparative_individual_scores_report(self, other: "BaseEvaluationRunResult")
... |
zostera__django-bootstrap3-480 | Distinguish between errors and help text
You should be able to distinguish between errors and help texts. Now they are all rendered by one template.
| [
{
"content": "from django.forms import (\n BaseForm,\n BaseFormSet,\n BoundField,\n CheckboxInput,\n CheckboxSelectMultiple,\n ClearableFileInput,\n DateInput,\n EmailInput,\n FileInput,\n MultiWidget,\n NumberInput,\n PasswordInput,\n RadioSelect,\n Select,\n Select... | [
{
"content": "from django.forms import (\n BaseForm,\n BaseFormSet,\n BoundField,\n CheckboxInput,\n CheckboxSelectMultiple,\n ClearableFileInput,\n DateInput,\n EmailInput,\n FileInput,\n MultiWidget,\n NumberInput,\n PasswordInput,\n RadioSelect,\n Select,\n Select... | diff --git a/HISTORY.rst b/HISTORY.rst
index 062f3d3c..d172dc93 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -3,6 +3,10 @@
History
-------
+In development
+++++++++++++++
+* Distinguish between help text and errors (fixes #479)
+
12.0.3 (2019-12-21)
+++++++++++++++++++
* Update changelog
diff --git a/docs/requi... |
biolab__orange3-4118 | OWFile: elide or hide url if too long
**Describe the bug**
File remembers settings. So when an url is really long, the widgets is resized to fit the url. This results in huge windows.
**To Reproduce**
Steps to reproduce the behavior:
1. Open File.
2. Enter the following url in the url field: https://raw.githubus... | [
{
"content": "import os\nimport logging\nfrom warnings import catch_warnings\nfrom urllib.parse import urlparse\nfrom typing import List\n\nimport numpy as np\nfrom AnyQt.QtWidgets import \\\n QStyle, QComboBox, QMessageBox, QGridLayout, QLabel, \\\n QLineEdit, QSizePolicy as Policy, QCompleter\nfrom AnyQ... | [
{
"content": "import os\nimport logging\nfrom warnings import catch_warnings\nfrom urllib.parse import urlparse\nfrom typing import List\n\nimport numpy as np\nfrom AnyQt.QtWidgets import \\\n QStyle, QComboBox, QMessageBox, QGridLayout, QLabel, \\\n QLineEdit, QSizePolicy as Policy, QCompleter\nfrom AnyQ... | diff --git a/Orange/widgets/data/owfile.py b/Orange/widgets/data/owfile.py
index d6bd6725b5d..4f91f1761bd 100644
--- a/Orange/widgets/data/owfile.py
+++ b/Orange/widgets/data/owfile.py
@@ -206,7 +206,7 @@ def __init__(self):
url_model.wrap(self.recent_urls)
url_combo.setLineEdit(LineEditSelectOnFocus(... |
ESMCI__cime-3272 | DAE.ww3a.ADWAV test hangs on anlworkstation using PIO2
This is a confirmed regression caused by PR #3101, which turns off USE_MALLOC in PIO2 build.
While we will try to fix this issue in PIO2, it is recommended to turn on USE_MALLOC by default.
| [
{
"content": "#!/usr/bin/env python\n\n\"\"\"\ncase.submit - Submit a cesm workflow to the queueing system or run it\nif there is no queueing system. A cesm workflow may include multiple\njobs.\nsubmit, check_case and check_da_settings are members of class Case in file case.py\n\"\"\"\nfrom six.moves ... | [
{
"content": "#!/usr/bin/env python\n\n\"\"\"\ncase.submit - Submit a cesm workflow to the queueing system or run it\nif there is no queueing system. A cesm workflow may include multiple\njobs.\nsubmit, check_case and check_da_settings are members of class Case in file case.py\n\"\"\"\nfrom six.moves ... | diff --git a/config/e3sm/allactive/config_pesall.xml b/config/e3sm/allactive/config_pesall.xml
index a3f6f6bd8a0..75913c9e316 100644
--- a/config/e3sm/allactive/config_pesall.xml
+++ b/config/e3sm/allactive/config_pesall.xml
@@ -8819,4 +8819,35 @@
</pes>
</mach>
</grid>
+ <grid name="a%T62.+_oi%oEC60to3... |
ultralytics__yolov5-5948 | ('int' object is not iterable) running detect from a python script
### Search before asking
- [X] I have searched the YOLOv5 [issues](https://github.com/ultralytics/yolov5/issues) and found no similar bug report.
### YOLOv5 Component
Detection
### Bug
Hello,
`python detect.py --weights x --source y` works well... | [
{
"content": "# YOLOv5 🚀 by Ultralytics, GPL-3.0 license\n\"\"\"\nRun inference on images, videos, directories, streams, etc.\n\nUsage:\n $ python path/to/detect.py --weights yolov5s.pt --source 0 # webcam\n img.jpg # image\n ... | [
{
"content": "# YOLOv5 🚀 by Ultralytics, GPL-3.0 license\n\"\"\"\nRun inference on images, videos, directories, streams, etc.\n\nUsage:\n $ python path/to/detect.py --weights yolov5s.pt --source 0 # webcam\n img.jpg # image\n ... | diff --git a/detect.py b/detect.py
index 0b6875e5564c..14cdf96ca9db 100644
--- a/detect.py
+++ b/detect.py
@@ -38,7 +38,7 @@
@torch.no_grad()
def run(weights=ROOT / 'yolov5s.pt', # model.pt path(s)
source=ROOT / 'data/images', # file/dir/URL/glob, 0 for webcam
- imgsz=640, # inference size (pixels)... |
stephenmcd__mezzanine-1352 | Link dialog sometimes won't open in admin interface
In some situations, trying to open `/displayable_links.js` generates a 500 with the following message:
> TypeError at /displayable_links.js - unorderable types: dict() < dict()
https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/core/views.py#L197
Replac... | [
{
"content": "from __future__ import absolute_import, unicode_literals\nfrom future.builtins import int, open, str\n\nimport os\n\nfrom json import dumps\ntry:\n from urllib.parse import urljoin, urlparse\nexcept ImportError:\n from urlparse import urljoin, urlparse\n\nfrom django.apps import apps\nfrom d... | [
{
"content": "from __future__ import absolute_import, unicode_literals\nfrom future.builtins import int, open, str\n\nimport os\n\nfrom json import dumps\ntry:\n from urllib.parse import urljoin, urlparse\nexcept ImportError:\n from urlparse import urljoin, urlparse\n\nfrom django.apps import apps\nfrom d... | diff --git a/mezzanine/core/views.py b/mezzanine/core/views.py
index 4a5cdcf50b..69716579bb 100644
--- a/mezzanine/core/views.py
+++ b/mezzanine/core/views.py
@@ -194,7 +194,8 @@ def displayable_links_js(request):
verbose_name = _("Page") if page else obj._meta.verbose_name
title = "%s: %s" % ... |
sql-machine-learning__elasticdl-2368 | The gradient indices of embedding is not original inputs
The `IndexedSlice.indices` is not the input ids but the indices of `tf.unique(ids)`
https://github.com/sql-machine-learning/elasticdl/blob/83b37c0c0c001d71cf0438c7b14adf29a163b835/elasticdl/python/worker/ps_trainer.py#L262-L265
| [
{
"content": "# Copyright 2020 The ElasticDL Authors. All rights reserved.\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# Un... | [
{
"content": "# Copyright 2020 The ElasticDL Authors. All rights reserved.\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# Un... | diff --git a/elasticdl/python/worker/ps_trainer.py b/elasticdl/python/worker/ps_trainer.py
index 18c3264ec..bd139b7fd 100644
--- a/elasticdl/python/worker/ps_trainer.py
+++ b/elasticdl/python/worker/ps_trainer.py
@@ -262,7 +262,7 @@ def _report_gradient(self, gradients):
grad = Tensor(
... |
python-trio__trio-1639 | to_thread.run_sync() foils meta-class destructors
Invoking `to_thread.run_sync()` seems to prevent meta-class destructors of completely unrelated classes from being called on shutdown.
```python
import trio
class deltype(type):
def __del__(self):
print(f"{self.__name__} class deleted")
Test = d... | [
{
"content": "from threading import Thread, Lock\nimport outcome\nfrom itertools import count\n\n# The \"thread cache\" is a simple unbounded thread pool, i.e., it automatically\n# spawns as many threads as needed to handle all the requests its given. Its\n# only purpose is to cache worker threads so that they ... | [
{
"content": "from threading import Thread, Lock\nimport outcome\nfrom itertools import count\n\n# The \"thread cache\" is a simple unbounded thread pool, i.e., it automatically\n# spawns as many threads as needed to handle all the requests its given. Its\n# only purpose is to cache worker threads so that they ... | diff --git a/newsfragments/1638.fix.rst b/newsfragments/1638.fix.rst
new file mode 100644
index 000000000..6c6a9a6a5
--- /dev/null
+++ b/newsfragments/1638.fix.rst
@@ -0,0 +1 @@
+The thread cache didn't release its reference to the previous job.
diff --git a/trio/_core/_thread_cache.py b/trio/_core/_thread_cache.py
ind... |
pre-commit__pre-commit-1341 | TypeError: expected string or bytes-like object
OS: Ubuntu 19.10
App Version: pre-commit 2.1.0
Trying to create a commit-msg hook with the following hook yaml:
```yaml
---
- id: conform
name: Conform
description: Run 'conform enforce' for policy enforcement
entry: conform enforce --commit-msg-file
... | [
{
"content": "import argparse\nimport contextlib\nimport functools\nimport logging\nimport os\nimport re\nimport subprocess\nimport time\nfrom typing import Any\nfrom typing import Collection\nfrom typing import Dict\nfrom typing import List\nfrom typing import Sequence\nfrom typing import Set\nfrom typing impo... | [
{
"content": "import argparse\nimport contextlib\nimport functools\nimport logging\nimport os\nimport re\nimport subprocess\nimport time\nfrom typing import Any\nfrom typing import Collection\nfrom typing import Dict\nfrom typing import List\nfrom typing import Sequence\nfrom typing import Set\nfrom typing impo... | diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py
index 95f8ab419..4f332ee97 100644
--- a/pre_commit/commands/run.py
+++ b/pre_commit/commands/run.py
@@ -306,6 +306,15 @@ def run(
f'`git add {config_file}` to fix this.',
)
return 1
+ if (
+ args.hook_stage... |
mdn__kuma-6263 | Site search searches on sidebar
Look at this search result: https://developer.mozilla.org/en-US/search?q=django
<img width="726" alt="Screen Shot 2019-12-18 at 8 33 39 AM" src="https://user-images.githubusercontent.com/26739/71090488-2096db80-2171-11ea-999b-a92d470687db.png">
It's showing pages that mention "Django... | [
{
"content": "\n\nimport logging\nfrom math import ceil\n\nfrom celery import chain\nfrom django.conf import settings\nfrom django.db.models import Q\nfrom django.utils.html import strip_tags\nfrom django.utils.translation import ugettext_lazy as _\nfrom elasticsearch.helpers import bulk\nfrom elasticsearch_dsl... | [
{
"content": "\n\nimport logging\nfrom math import ceil\n\nfrom celery import chain\nfrom django.conf import settings\nfrom django.db.models import Q\nfrom django.utils.html import strip_tags\nfrom django.utils.translation import ugettext_lazy as _\nfrom elasticsearch.helpers import bulk\nfrom elasticsearch_dsl... | diff --git a/kuma/wiki/search.py b/kuma/wiki/search.py
index 7f2bbade78e..700874e9edb 100644
--- a/kuma/wiki/search.py
+++ b/kuma/wiki/search.py
@@ -76,7 +76,7 @@ def from_django(cls, obj):
'summary': obj.get_summary_text(),
'locale': obj.locale,
'modified': obj.modified,
- ... |
Kinto__kinto-338 | kinto start fails: no module named functools32
```
kinto start
Starting subprocess with file monitor
2015-11-29 10:12:24,821 INFO [venusian][MainThread] kinto 1.9.0 starting.
Traceback (most recent call last):
File "/var/www/kinto.leplat.re/venv/bin/kinto", line 9, in <module>
load_entry_point('kinto==1.9.0', '... | [
{
"content": "import os\nimport codecs\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read_file(filename):\n \"\"\"Open a related file and return its content.\"\"\"\n with codecs.open(os.path.join(here, filename), encoding='utf-8') as f:\n ... | [
{
"content": "import codecs\nimport os\nimport sys\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read_file(filename):\n \"\"\"Open a related file and return its content.\"\"\"\n with codecs.open(os.path.join(here, filename), encoding='utf-8') as... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 5056cf797..5473a8c3f 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -6,6 +6,11 @@ This document describes changes between each past release.
1.11.0 (unreleased)
===================
+**Bug fixes**
+
+- Add explicit dependency for functools32 when Kinto is installed... |
ESMCI__cime-1573 | Short-term archiving not working if DOUT_S_SAVE_INTERIM_RESTART_FILES is false
I just tried creating an A compset case from cime master, using create_newcase (not create_test). The short-term archiver failed with this error:
```
[Errno 2] No such file or directory: '/glade/scratch/sacks/archive/check_int_rest_0519a... | [
{
"content": "\"\"\"\nshort term archiving\n\"\"\"\n\nimport shutil, glob, re, os\n\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.case_submit import submit\nfrom CIME.XML.env_archive import EnvArchive\nfrom CIME.utils import run_and_log_case_status\nfrom os... | [
{
"content": "\"\"\"\nshort term archiving\n\"\"\"\n\nimport shutil, glob, re, os\n\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.case_submit import submit\nfrom CIME.XML.env_archive import EnvArchive\nfrom CIME.utils import run_and_log_case_status\nfrom os... | diff --git a/scripts/lib/CIME/case_st_archive.py b/scripts/lib/CIME/case_st_archive.py
index 38c0765624f..f08e8293973 100644
--- a/scripts/lib/CIME/case_st_archive.py
+++ b/scripts/lib/CIME/case_st_archive.py
@@ -212,8 +212,7 @@ def _archive_restarts(case, archive, archive_entry,
rundir = case.get_value("RUNDIR")
... |
opsdroid__opsdroid-1642 | Add a SIGHUP handler to reload opsdroid
Many linux daemons respond to the [`SIGHUP`](https://en.wikipedia.org/wiki/Signal_(IPC)#SIGHUP) signal by reloading their configurations. Combined with opsdroid's `no_cache: true` this could be used to reload a skill (or other plugin) while developing it.
This should be added ... | [
{
"content": "\"\"\"Core components of OpsDroid.\"\"\"\n\nimport copy\nimport logging\nimport os\nimport signal\nimport sys\nimport weakref\nimport asyncio\nimport contextlib\nimport inspect\nfrom watchgod import awatch, PythonWatcher\n\nfrom opsdroid import events\nfrom opsdroid.const import DEFAULT_CONFIG_LOC... | [
{
"content": "\"\"\"Core components of OpsDroid.\"\"\"\n\nimport copy\nimport logging\nimport os\nimport signal\nimport sys\nimport weakref\nimport asyncio\nimport contextlib\nimport inspect\nfrom watchgod import awatch, PythonWatcher\n\nfrom opsdroid import events\nfrom opsdroid.const import DEFAULT_CONFIG_LOC... | diff --git a/opsdroid/core.py b/opsdroid/core.py
index 2237b39c5..8b120013e 100644
--- a/opsdroid/core.py
+++ b/opsdroid/core.py
@@ -58,6 +58,9 @@ def __init__(self, config=None, config_path=None):
self.eventloop.add_signal_handler(
sig, lambda: asyncio.ensure_future(self.handle_si... |
ansible__ansible-modules-extras-3088 | zypper_repository: Adding repo with import of custom GPG key fails due to wrong command line option ordering
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
packaging/os/zypper_repository.py
##### ANSIBLE VERSION
```
ansible 2.1.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default... | [
{
"content": "#!/usr/bin/python\n# encoding: utf-8\n\n# (c) 2013, Matthias Vogelgesang <matthias.vogelgesang@gmail.com>\n# (c) 2014, Justin Lecher <jlec@gentoo.org>\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 P... | [
{
"content": "#!/usr/bin/python\n# encoding: utf-8\n\n# (c) 2013, Matthias Vogelgesang <matthias.vogelgesang@gmail.com>\n# (c) 2014, Justin Lecher <jlec@gentoo.org>\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 P... | diff --git a/packaging/os/zypper_repository.py b/packaging/os/zypper_repository.py
index 5a06e6f9ded..0b7183af527 100644
--- a/packaging/os/zypper_repository.py
+++ b/packaging/os/zypper_repository.py
@@ -274,9 +274,10 @@ def get_zypper_version(module):
def runrefreshrepo(module, auto_import_keys=False, shortname=No... |
chainer__chainer-1824 | Unused params cause NoneType error
When some params in a model are not used to calculate loss value, its gradient is None. It causes an error when an optimizer update its value.
```
import numpy
import chainer
import chainer.functions as F
import chainer.links as L
import chainer.optimizers as O
class MyModel(chain... | [
{
"content": "import collections\n\nimport numpy\nimport six\n\nfrom chainer import cuda\nimport chainer.link as link_module\n\n\ndef _sum_sqnorm(arr):\n sq_sum = collections.defaultdict(float)\n for x in arr:\n with cuda.get_device(x) as dev:\n x = x.ravel()\n s = x.dot(x)\n ... | [
{
"content": "import collections\n\nimport numpy\nimport six\n\nfrom chainer import cuda\nimport chainer.link as link_module\n\n\ndef _sum_sqnorm(arr):\n sq_sum = collections.defaultdict(float)\n for x in arr:\n with cuda.get_device(x) as dev:\n x = x.ravel()\n s = x.dot(x)\n ... | diff --git a/chainer/optimizer.py b/chainer/optimizer.py
index 440dce163918..b3a95d84a4f4 100644
--- a/chainer/optimizer.py
+++ b/chainer/optimizer.py
@@ -396,6 +396,15 @@ def update(self, lossfun=None, *args, **kwds):
self.target.zerograds()
loss.backward()
del loss
+
+ ... |
onnx__sklearn-onnx-484 | AttributeError: 'numpy.uint8' object has no attribute 'encode'
Hi Team,
I got such error when trying to convert ExtraTreesClassifier. This classifier was trained by another person in internet and I downloaded it as a pkl format, loaded using joblib.
Please advise. Thank you.
 Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for\n# license information.\n# -----------------------------------------------------------... | [
{
"content": "# -------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for\n# license information.\n# -----------------------------------------------------------... | diff --git a/skl2onnx/_parse.py b/skl2onnx/_parse.py
index b27a082c6..851c07820 100644
--- a/skl2onnx/_parse.py
+++ b/skl2onnx/_parse.py
@@ -353,6 +353,8 @@ def _parse_sklearn_classifier(scope, model, inputs, custom_parsers=None):
this_operator.classlabels_int64s = classes
elif np.issubdtype(classes.dtype... |
coala__coala-6152 | Required changes to sync moban
| [
{
"content": "#!/usr/bin/env python3\n\nimport datetime\nimport locale\nimport os\nimport platform\nimport sys\nfrom os import getenv\nfrom subprocess import call\n\nimport pip\nimport setuptools.command.build_py\nfrom setuptools import find_packages, setup\nfrom setuptools.command.test import test as TestComma... | [
{
"content": "#!/usr/bin/env python3\n\nimport datetime\nimport locale\nimport os\nimport platform\nimport sys\nfrom os import getenv\nfrom subprocess import call\n\nimport pip\nimport setuptools.command.build_py\nfrom setuptools import find_packages, setup\nfrom setuptools.command.test import test as TestComma... | diff --git a/.misc/check_unsupported.sh b/.misc/check_unsupported.sh
index fb142cb358..6c8da42f4b 100755
--- a/.misc/check_unsupported.sh
+++ b/.misc/check_unsupported.sh
@@ -8,7 +8,7 @@ set -o pipefail
set -x
-pip install 'pip==9.0.1' 'setuptools==21.2.2'
+pip install 'pip==9.0.3' 'setuptools==21.2.2'
python s... |
facebookresearch__habitat-lab-612 | Unique seed not set for each simulator
Habitat-Lab: v0.1.7 & master
## 🐛 Bug
Each environment should get a unique seed, but it looks like each process in the process group is provided the same seed in this code: https://github.com/facebookresearch/habitat-lab/blob/a7eb39fb3b420f9e6f528796f97457715bd79a09/habitat... | [
{
"content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nimport contextlib\nimport os\nimport random\nimport time\nfrom collections import defaultdic... | [
{
"content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nimport contextlib\nimport os\nimport random\nimport time\nfrom collections import defaultdic... | diff --git a/habitat_baselines/rl/ppo/ppo_trainer.py b/habitat_baselines/rl/ppo/ppo_trainer.py
index 382e4659e8..f7ac533aeb 100644
--- a/habitat_baselines/rl/ppo/ppo_trainer.py
+++ b/habitat_baselines/rl/ppo/ppo_trainer.py
@@ -216,8 +216,7 @@ def _init_train(self):
self.config.SIMULATOR_GPU_ID = local_rank... |
ocf__ocfweb-535 | versioned caching is broken
On [this line](https://github.com/ocf/ocfweb/blob/e0ca5b9053abf4908fd6dd3ff344724e61c38b53/ocfweb/environment.py#L15) we use a marathon environment variable to determine the cache version. We need to change this to use a Kubernetes things, a la
https://kubernetes.io/docs/tasks/inject-data-... | [
{
"content": "\"\"\"Introspection into the current environment.\"\"\"\nimport os\nfrom functools import lru_cache\n\n\n@lru_cache()\ndef ocfweb_version():\n \"\"\"Return string representing ocfweb version.\n\n In dev, returns 'dev'. In prod, returns a version\n similar to '2015.12.06.02.25-gitb98c8cb6'... | [
{
"content": "\"\"\"Introspection into the current environment.\"\"\"\nimport os\nfrom functools import lru_cache\n\n\n@lru_cache()\ndef ocfweb_version():\n \"\"\"Return string representing ocfweb version.\n\n In dev, returns 'dev'. In prod, returns a version\n similar to '2019-08-20-T21-10-57-gite0ca5... | diff --git a/kubernetes/ocfweb-web.yaml.erb b/kubernetes/ocfweb-web.yaml.erb
index fedc89a31..fcbf18af5 100644
--- a/kubernetes/ocfweb-web.yaml.erb
+++ b/kubernetes/ocfweb-web.yaml.erb
@@ -44,6 +44,8 @@ spec:
env:
- name: OCFWEB_TESTING
value: "0"
+ - name: OCFWEB_PROD_... |
spacetelescope__jwql-92 | Update environment.yml to update Django version
When running the Django web server (on the `laurenmarietta/web-app-dev branch`) from the `jwql` environment on the VM, and I had to update Django from 1.11.8 to the latest version (2.0.5) to get rid of an error with Django.
The version of Django in `environment.yml` sh... | [
{
"content": "import numpy as np\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nVERSION = '0.4.0'\n\nAUTHORS = 'Matthew Bourque, Sara Ogaz, Joe Filippazzo, Bryan Hilbert, Misty Cracraft, Graham Kanarek'\nAUTHORS += 'Johannes Sahlmann, Lauren Chambers, Catherine Martlin'\n\nREQUIRES = ['a... | [
{
"content": "import numpy as np\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nVERSION = '0.4.0'\n\nAUTHORS = 'Matthew Bourque, Sara Ogaz, Joe Filippazzo, Bryan Hilbert, Misty Cracraft, Graham Kanarek'\nAUTHORS += 'Johannes Sahlmann, Lauren Chambers, Catherine Martlin'\n\nREQUIRES = ['a... | diff --git a/environment.yml b/environment.yml
index 32f8d9c43..6a56d9db2 100644
--- a/environment.yml
+++ b/environment.yml
@@ -6,7 +6,7 @@ dependencies:
- astropy=3.0
- astroquery=0.3.8
- bokeh=0.12.5
-- django=1.11.8
+- django=2.0.5
- jwst=0.7.8rc9
- matplotlib=2.1.1
- numpy=1.14.0
diff --git a/setup.py b/setu... |
elastic__apm-agent-python-580 | DB interactions not traced when using context manager with psycopg2 connections or cursors
When using a context manager with psycopg2 connections or cursors, db interactions are not captured in spans.
The code below generates a span for `psycopg2.connect`, but not the query:
```
with psycopg2.connect(DSN) as conn:... | [
{
"content": "# BSD 3-Clause License\n#\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 provided that the following conditions are met:\n#\n# * Redistributions of source code must retain... | [
{
"content": "# BSD 3-Clause License\n#\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 provided that the following conditions are met:\n#\n# * Redistributions of source code must retain... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ab14997fc..bb7de3eb9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
### Bugfixes
* fixed an issue with http server_url and `'VERIFY_SERVER_CERT': False` (#570, #578)
+ * fixed instrumenting of psycopg2 when using their context manager interface (#577, #5... |
kornia__kornia-1741 | Image transforms don't accept empty boxes or keypoints as inputs
### Describe the bug
Image transforms don't accept empty boxes (B, 0, 4) or keypoints (B, 0, 2) as inputs.
### Reproduction steps
```bash
Download panda image: `wget https://tinypng.com/images/social/website.jpg -O panda.jpg`
`
import torch
import... | [
{
"content": "import warnings\nfrom abc import ABCMeta, abstractmethod\nfrom functools import partial\nfrom typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Type, Union, cast\n\nimport torch\nimport torch.nn as nn\nfrom torch import Tensor\n\nimport kornia # lazy loading for circular depende... | [
{
"content": "import warnings\nfrom abc import ABCMeta, abstractmethod\nfrom functools import partial\nfrom typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Type, Union, cast\n\nimport torch\nimport torch.nn as nn\nfrom torch import Tensor\n\nimport kornia # lazy loading for circular depende... | diff --git a/kornia/augmentation/container/utils.py b/kornia/augmentation/container/utils.py
index 1e8beb9dd2..7d4c1214cd 100644
--- a/kornia/augmentation/container/utils.py
+++ b/kornia/augmentation/container/utils.py
@@ -99,7 +99,7 @@ def apply_trans(
to_apply = torch.ones(input.shape[0], device=input.de... |
airctic__icevision-910 | Efficientdet inference returns wrong bbox predictions
## 🐛 Bug
When running inference on efficientdet models, the predictions are squeezed to only fit square aspect ratio. This problem is only visible when running efficientdet in rectangular input shape (eg 512x768). Here is a screenshot of default behavior:
![image... | [
{
"content": "__all__ = [\n \"build_train_batch\",\n \"build_valid_batch\",\n \"build_infer_batch\",\n \"train_dl\",\n \"valid_dl\",\n \"infer_dl\",\n]\n\nfrom icevision.imports import *\nfrom icevision.models.utils import *\n\n\ndef train_dl(dataset, batch_tfms=None, **dataloader_kwargs) -> D... | [
{
"content": "__all__ = [\n \"build_train_batch\",\n \"build_valid_batch\",\n \"build_infer_batch\",\n \"train_dl\",\n \"valid_dl\",\n \"infer_dl\",\n]\n\nfrom icevision.imports import *\nfrom icevision.models.utils import *\n\n\ndef train_dl(dataset, batch_tfms=None, **dataloader_kwargs) -> D... | diff --git a/icevision/models/ross/efficientdet/dataloaders.py b/icevision/models/ross/efficientdet/dataloaders.py
index 5fff3e9ba..89e9aac77 100644
--- a/icevision/models/ross/efficientdet/dataloaders.py
+++ b/icevision/models/ross/efficientdet/dataloaders.py
@@ -179,7 +179,7 @@ def process_train_record(record) -> tup... |
PaddlePaddle__PaddleSpeech-2171 | 切换英文语音合成报错 get_input_ids() got an unexpected keyword argument 'get_tone_ids'
要切换成英文语音合成时,更改了/paddlespeech/server/conf/application.yaml这个配置文件中的tts_python里面的声学模型和声码器,声学模型用的是fastspeech2_ljspeech,声码器用的pwgan_ljspeech,并且lang改为en,但是报错 get_input_ids() got an unexpected keyword argument 'get_tone_ids'
| [
{
"content": "# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | [
{
"content": "# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | diff --git a/paddlespeech/server/engine/engine_warmup.py b/paddlespeech/server/engine/engine_warmup.py
index 12c760c6f61..3751554c213 100644
--- a/paddlespeech/server/engine/engine_warmup.py
+++ b/paddlespeech/server/engine/engine_warmup.py
@@ -60,7 +60,10 @@ def warm_up(engine_and_type: str, warm_up_time: int=3) -> bo... |
pre-commit__pre-commit-1789 | recursive submodule support for `language: golang`
I added this hook in `pre-commit-hooks.yaml` in `https://github.com/google/go-jsonnet`, and then when I try to use this hook as:
```
repos:
- repo: https://github.com/google/go-jsonnet
rev: 4a3144a417b7eb9b1f7e56741a9e72f3155de3fa
hooks:
- id: jso... | [
{
"content": "import contextlib\nimport os.path\nimport sys\nfrom typing import Generator\nfrom typing import Sequence\nfrom typing import Tuple\n\nimport pre_commit.constants as C\nfrom pre_commit import git\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.envcontext import PatchesT\nfrom pre_com... | [
{
"content": "import contextlib\nimport os.path\nimport sys\nfrom typing import Generator\nfrom typing import Sequence\nfrom typing import Tuple\n\nimport pre_commit.constants as C\nfrom pre_commit import git\nfrom pre_commit.envcontext import envcontext\nfrom pre_commit.envcontext import PatchesT\nfrom pre_com... | diff --git a/pre_commit/languages/golang.py b/pre_commit/languages/golang.py
index 91ade1e99..d6165d95e 100644
--- a/pre_commit/languages/golang.py
+++ b/pre_commit/languages/golang.py
@@ -69,7 +69,8 @@ def install_environment(
repo_src_dir = os.path.join(directory, 'src', guess_go_dir(remote))
# Cl... |
SigmaHQ__sigma-1026 | Error while pushing sigma to misp using sigma2misp script
(venv) hydra@Kaushals-MacBook-Air session2/sigma (master %) » tools/sigma2misp @misp.conf --insecure --same-event --info "Test Event" -r rules/windows/sysmon 2 ↵
Traceback (most recent call last):
File "tools/sigma2m... | [
{
"content": "#!/usr/bin/env python3\n# Import given Sigma rules to MISP\n\nimport argparse\nimport pathlib\nimport urllib3\nurllib3.disable_warnings()\nfrom pymisp import PyMISP\n\ndef create_new_event(args, misp):\n if hasattr(misp, \"new_event\"):\n return misp.new_event(info=args.info)[\"Event\"][... | [
{
"content": "#!/usr/bin/env python3\n# Import given Sigma rules to MISP\n\nimport argparse\nimport pathlib\nimport urllib3\nurllib3.disable_warnings()\nfrom pymisp import PyMISP, MISPEvent\n\ndef create_new_event(args, misp):\n if hasattr(misp, \"new_event\"):\n return misp.new_event(info=args.info)[... | diff --git a/tools/sigma/sigma2misp.py b/tools/sigma/sigma2misp.py
index fc102931040..5d42ba46854 100755
--- a/tools/sigma/sigma2misp.py
+++ b/tools/sigma/sigma2misp.py
@@ -5,13 +5,13 @@
import pathlib
import urllib3
urllib3.disable_warnings()
-from pymisp import PyMISP
+from pymisp import PyMISP, MISPEvent
def c... |
networkx__networkx-2713 | inter_community_non_edges ignore directionality
Hi,
I think the function:
nx.algorithms.community.quality.inter_community_non_edges()
does not work properly for directed graph. It always return the non-edge of a undirected graph, basically halving the number of edges. This mean that the performance function (n... | [
{
"content": "# quality.py - functions for measuring partitions of a graph\n#\n# Copyright 2015-2017 NetworkX developers.\n#\n# This file is part of NetworkX.\n#\n# NetworkX is distributed under a BSD license; see LICENSE.txt for more\n# information.\n\"\"\"Functions for measuring the quality of a partition (in... | [
{
"content": "# quality.py - functions for measuring partitions of a graph\n#\n# Copyright 2015-2017 NetworkX developers.\n#\n# This file is part of NetworkX.\n#\n# NetworkX is distributed under a BSD license; see LICENSE.txt for more\n# information.\n\"\"\"Functions for measuring the quality of a partition (in... | diff --git a/networkx/algorithms/community/quality.py b/networkx/algorithms/community/quality.py
index 7de690af7f6..e04ff260dba 100644
--- a/networkx/algorithms/community/quality.py
+++ b/networkx/algorithms/community/quality.py
@@ -114,7 +114,10 @@ def inter_community_edges(G, partition):
# ... |
pytorch__ignite-785 | tqdm_logger does not take epoch_length into account
## 🐛 `tqdm_logger` does not take `epoch_length` into account
When calling `Engine.run()` with a custom `epoch_length`,
the tqdm progress bar does not adapt and displays the full number of batches in the data.
Here is a minimal example:
```python
from ignite.co... | [
{
"content": "# -*- coding: utf-8 -*-\nimport warnings\n\nimport torch\n\nfrom ignite.engine import Events\nfrom ignite.engine.engine import EventWithFilter\nfrom ignite.contrib.handlers.base_logger import BaseLogger, BaseOutputHandler\n\n\nclass ProgressBar(BaseLogger):\n \"\"\"\n TQDM progress bar handl... | [
{
"content": "# -*- coding: utf-8 -*-\nimport warnings\n\nimport torch\n\nfrom ignite.engine import Events\nfrom ignite.engine.engine import EventWithFilter\nfrom ignite.contrib.handlers.base_logger import BaseLogger, BaseOutputHandler\n\n\nclass ProgressBar(BaseLogger):\n \"\"\"\n TQDM progress bar handl... | diff --git a/ignite/contrib/handlers/tqdm_logger.py b/ignite/contrib/handlers/tqdm_logger.py
index 7568ab7b8705..bf7f80972003 100644
--- a/ignite/contrib/handlers/tqdm_logger.py
+++ b/ignite/contrib/handlers/tqdm_logger.py
@@ -218,7 +218,7 @@ def __init__(self, description, metric_names=None, output_transform=None,
... |
ESMCI__cime-2690 | CLM is rebuilt for every build in the test suite, rather than reusing the sharedlibbuild
### Summary of issue
In recent versions of cime, the sharedlib build functionality for CLM has stopped working: For each build in a given test suite, CLM is being completely rebuilt, rather than reusing the existing build.
##... | [
{
"content": "\"\"\"\nInterface to the env_batch.xml file. This class inherits from EnvBase\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.XML.env_base import EnvBase\nfrom CIME.utils import transform_vars, get_cime_root, convert_to_seconds, format_time, get_cime_config, get_batch_script_fo... | [
{
"content": "\"\"\"\nInterface to the env_batch.xml file. This class inherits from EnvBase\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.XML.env_base import EnvBase\nfrom CIME.utils import transform_vars, get_cime_root, convert_to_seconds, format_time, get_cime_config, get_batch_script_fo... | diff --git a/config/cesm/machines/config_batch.xml b/config/cesm/machines/config_batch.xml
index c8e36369acc..b29a11dabad 100644
--- a/config/cesm/machines/config_batch.xml
+++ b/config/cesm/machines/config_batch.xml
@@ -80,7 +80,7 @@
<batch_query>qstat</batch_query>
<batch_submit>qsub</batch_submit>
<ba... |
google__turbinia-1362 | [Bug]: turbinia-client result task arg error
### What steps will reproduce the bug?
Install client and api lib from HEAD and ` turbinia-client result task <task id>`
### What is the expected behavior?
Listed task output
### What do you see instead?
```
$ turbinia-client result task <task id>
2023-10-06 14:06:47,... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2022 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2022 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U... | diff --git a/turbinia/api/cli/turbinia_client/core/commands.py b/turbinia/api/cli/turbinia_client/core/commands.py
index d25e22e45..d8a682637 100644
--- a/turbinia/api/cli/turbinia_client/core/commands.py
+++ b/turbinia/api/cli/turbinia_client/core/commands.py
@@ -86,7 +86,7 @@ def get_task_result(ctx: click.Context, t... |
huggingface__accelerate-2376 | `requires_grad` is not properly extracted when registering empty parameters.
```python
def register_empty_parameter(module, name, param):
old_register_parameter(module, name, param)
if param is not None:
param_cls = type(module._parameters[name])
kwargs = module._parameters[name].__dict__
... | [
{
"content": "# Copyright 2022 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 2022 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/accelerate/big_modeling.py b/src/accelerate/big_modeling.py
index b217feedc23..4e6ab7ef8ec 100644
--- a/src/accelerate/big_modeling.py
+++ b/src/accelerate/big_modeling.py
@@ -124,6 +124,7 @@ def register_empty_parameter(module, name, param):
if param is not None:
param_cls = type... |
OpenEnergyPlatform__oeplatform-1324 | Inconvenience of client cache update upon releasing/deploy new versions
## Description of the issue
When deploying a new version of an application, users are inconvenienced as they need to manually refresh the client cache to see the latest changes.
## Ideas of solution
ChatGPT suggested to introduce a Cache B... | [
{
"content": "\"\"\"\nDjango settings for oeplatform project.\n\nGenerated by 'django-admin startproject' using Django 1.8.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/e... | [
{
"content": "\"\"\"\nDjango settings for oeplatform project.\n\nGenerated by 'django-admin startproject' using Django 1.8.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/e... | diff --git a/.github/workflows/automated-testing.yaml b/.github/workflows/automated-testing.yaml
index 8daac7de8..ed026aa72 100644
--- a/.github/workflows/automated-testing.yaml
+++ b/.github/workflows/automated-testing.yaml
@@ -78,7 +78,8 @@ jobs:
- name: Create API token
run: |
echo LOCAL_O... |
Textualize__textual-3050 | Binding for `]` renders incorrectly in `Footer`
The binding `Binding("ctrl+right_square_bracket", "toggle_indent_width", "Cycle indent width")` renders like this:
<img width="431" alt="image" src="https://github.com/Textualize/textual/assets/5740731/2c2bd6fa-288b-4205-aba0-48eb1b6c41e0">
It should probably render... | [
{
"content": "from __future__ import annotations\n\nimport unicodedata\nfrom enum import Enum\n\n\n# Adapted from prompt toolkit https://github.com/prompt-toolkit/python-prompt-toolkit/blob/master/prompt_toolkit/keys.py\nclass Keys(str, Enum): # type: ignore[no-redef]\n \"\"\"\n List of keys for use in k... | [
{
"content": "from __future__ import annotations\n\nimport unicodedata\nfrom enum import Enum\n\n\n# Adapted from prompt toolkit https://github.com/prompt-toolkit/python-prompt-toolkit/blob/master/prompt_toolkit/keys.py\nclass Keys(str, Enum): # type: ignore[no-redef]\n \"\"\"\n List of keys for use in k... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 705eb5dd3e..8019a5f1b9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Ensuring `TextArea.SelectionChanged` message only sends when the updated selection is different https://github.co... |
interlegis__sapl-3074 | Página de Parlamentares quebra quando a base de dados está vazia
<!--- Forneça um resumo geral da _issue_ no título acima -->
## Comportamento Esperado
<!--- Se você está descrevendo um _bug_, conte-nos o que deveria acontecer. -->
<!--- Se você está sugerindo uma mudança/melhoria, conte-nos como deve funcionar. -... | [
{
"content": "from datetime import datetime\nimport json\nimport logging\n\nfrom django.contrib import messages\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import MultipleObjectsReturned, ObjectDoesNotEx... | [
{
"content": "from datetime import datetime\nimport json\nimport logging\n\nfrom django.contrib import messages\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import MultipleObjectsReturned, ObjectDoesNotEx... | diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py
index 4adf325f6..75776b790 100644
--- a/sapl/parlamentares/views.py
+++ b/sapl/parlamentares/views.py
@@ -625,8 +625,11 @@ def get_context_data(self, **kwargs):
context['legislatura_id'] = self.take_legislatura_id()
# Peg... |
cloudtools__troposphere-1040 | Appsync ApiKey Expires needs to be an int
The expires prop on the appsync ApiKey class needs to be an int otherwise the decimal place causes cloudformation to throw a `Can not deserialize value of type java.lang.Long from String` error.
| [
{
"content": "# Copyright (c) 2012-2017, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSObject, AWSProperty\nfrom .validators import boolean\n\n\nclass ApiKey(AWSObject):\n resource_type = \"AWS::AppSync::ApiKey\"\n\n props = {\n 'ApiI... | [
{
"content": "# Copyright (c) 2012-2017, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSObject, AWSProperty\nfrom .validators import boolean, integer\n\n\nclass ApiKey(AWSObject):\n resource_type = \"AWS::AppSync::ApiKey\"\n\n props = {\n ... | diff --git a/troposphere/appsync.py b/troposphere/appsync.py
index 2cb4f28a5..807f5a02d 100644
--- a/troposphere/appsync.py
+++ b/troposphere/appsync.py
@@ -4,7 +4,7 @@
# See LICENSE file for full license.
from . import AWSObject, AWSProperty
-from .validators import boolean
+from .validators import boolean, intege... |
TileDB-Inc__TileDB-Py-186 | ignore deprecated C API warnings when cythonizing / building extension lib
We need to support deprecated C api's to preserve backwards compatibility, these should be turned off by passing the appropriate compilation flag.
| [
{
"content": "from __future__ import absolute_import, print_function\n\nimport multiprocessing\nimport os\nimport shutil\nimport subprocess\nimport zipfile\nimport platform\nfrom distutils.sysconfig import get_config_var\nfrom distutils.version import LooseVersion\n\n\ntry:\n # For Python 3\n from urllib.... | [
{
"content": "from __future__ import absolute_import, print_function\n\nimport multiprocessing\nimport os\nimport shutil\nimport subprocess\nimport zipfile\nimport platform\nfrom distutils.sysconfig import get_config_var\nfrom distutils.version import LooseVersion\n\n\ntry:\n # For Python 3\n from urllib.... | diff --git a/setup.py b/setup.py
index c154bf5df0..cb71ee8c58 100644
--- a/setup.py
+++ b/setup.py
@@ -410,8 +410,13 @@ def setup_requires():
if ver < (3,):
TESTS_REQUIRE.extend(["unittest2", "mock"])
-# Globals variables
-CXXFLAGS = os.environ.get("CXXFLAGS", "-std=c++11" if not is_windows() else "").split()
+... |
spotify__luigi-499 | Scheduler failing during priority update
My scheduler is failing several times a week during priority update. It starts after midnight when the new daily jobs come in and usually prevents scheduling for 6 hours, although I just kill the scheduler and all workers and flush everything if it lasts longer than that. Cleari... | [
{
"content": "# Copyright (c) 2012 Spotify AB\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n# use this file except in compliance with the License. You may obtain a copy of\n# the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | [
{
"content": "# Copyright (c) 2012 Spotify AB\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n# use this file except in compliance with the License. You may obtain a copy of\n# the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | diff --git a/luigi/scheduler.py b/luigi/scheduler.py
index d6ec540755..47d34ae985 100644
--- a/luigi/scheduler.py
+++ b/luigi/scheduler.py
@@ -276,8 +276,8 @@ def _update_priority(self, task, prio, worker):
"""
task.priority = prio = max(prio, task.priority)
for dep in task.deps or []:
- ... |
pymodbus-dev__pymodbus-1533 | Not possible to decode then encode a DiagnosticStatusResponse
### Versions
- Python: 3.8.6
- OS: Win10
- Pymodbus: 3.2.2
- Modbus Hardware (if used):
### Pymodbus Specific
- Client: tcp
### Description
It is not possible to decode, then encode a DiagnosticStatusResponse since self.message becomes a tu... | [
{
"content": "\"\"\"Diagnostic Record Read/Write.\n\nThese need to be tied into a the current server context\nor linked to the appropriate data\n\"\"\"\n\n__all__ = [\n \"DiagnosticStatusRequest\",\n \"DiagnosticStatusResponse\",\n \"ReturnQueryDataRequest\",\n \"ReturnQueryDataResponse\",\n \"Re... | [
{
"content": "\"\"\"Diagnostic Record Read/Write.\n\nThese need to be tied into a the current server context\nor linked to the appropriate data\n\"\"\"\n\n__all__ = [\n \"DiagnosticStatusRequest\",\n \"DiagnosticStatusResponse\",\n \"ReturnQueryDataRequest\",\n \"ReturnQueryDataResponse\",\n \"Re... | diff --git a/pymodbus/diag_message.py b/pymodbus/diag_message.py
index 82498a154..705b01977 100644
--- a/pymodbus/diag_message.py
+++ b/pymodbus/diag_message.py
@@ -146,7 +146,7 @@ def encode(self):
packet += self.message.encode()
elif isinstance(self.message, bytes):
pack... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.