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 ⌀ |
|---|---|---|---|---|
angr__angr-1262 | TypeError: '>' not supported between instances of 'NoneType' and 'NoneType'
**Describe the bug**
angr-management refuses to display certain functions.
The following exception is printed to the console:
```
Traceback (most recent call last):
File "$HOME/angr-dev/angr-management/angrmanagement/ui/widgets/qfuncti... | [
{
"content": "\nimport logging\nfrom collections import defaultdict\n\nimport ailment\n\nfrom .. import Analysis\nfrom ..calling_convention import CallingConventionAnalysis\nfrom ..code_location import CodeLocation\nfrom ..forward_analysis import ForwardAnalysis, FunctionGraphVisitor\nfrom ...engines.light impo... | [
{
"content": "\nimport logging\nfrom collections import defaultdict\n\nimport ailment\n\nfrom .. import Analysis\nfrom ..calling_convention import CallingConventionAnalysis\nfrom ..code_location import CodeLocation\nfrom ..forward_analysis import ForwardAnalysis, FunctionGraphVisitor\nfrom ...engines.light impo... | diff --git a/angr/analyses/variable_recovery/variable_recovery_fast.py b/angr/analyses/variable_recovery/variable_recovery_fast.py
index a2e94a5f8f1..abc42a972f7 100644
--- a/angr/analyses/variable_recovery/variable_recovery_fast.py
+++ b/angr/analyses/variable_recovery/variable_recovery_fast.py
@@ -50,7 +50,10 @@ def ... |
getsentry__sentry-python-1292 | Support for Sanic v21.12.0
Raising custom exceptions in Sanic's latest version (which shouldn't be logged to Sentry), getting **IndexError: pop from empty list**
```
File "/app/.heroku/python/lib/python3.9/site-packages/sentry_sdk/integrations/sanic.py", line 184, in _hub_exit
request.ctx._sentry_hub.__exit__... | [
{
"content": "import sys\nimport weakref\nfrom inspect import isawaitable\n\nfrom sentry_sdk._compat import urlparse, reraise\nfrom sentry_sdk.hub import Hub\nfrom sentry_sdk.utils import (\n capture_internal_exceptions,\n event_from_exception,\n HAS_REAL_CONTEXTVARS,\n CONTEXTVARS_ERROR_MESSAGE,\n)... | [
{
"content": "import sys\nimport weakref\nfrom inspect import isawaitable\n\nfrom sentry_sdk._compat import urlparse, reraise\nfrom sentry_sdk.hub import Hub\nfrom sentry_sdk.utils import (\n capture_internal_exceptions,\n event_from_exception,\n HAS_REAL_CONTEXTVARS,\n CONTEXTVARS_ERROR_MESSAGE,\n)... | diff --git a/sentry_sdk/integrations/sanic.py b/sentry_sdk/integrations/sanic.py
index e7da9ca6d7..4e20cc9ece 100644
--- a/sentry_sdk/integrations/sanic.py
+++ b/sentry_sdk/integrations/sanic.py
@@ -222,7 +222,7 @@ async def sentry_wrapped_error_handler(request, exception):
finally:
# As mentioned... |
bentoml__BentoML-3285 | bug: docker env option does not support `,`
### Describe the bug
Setting environment variables with non word or `-` characters results in an error, this prohibits a large range of valid environment variables to be set without a custom build.
```
docker:
env:
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
```... | [
{
"content": "from __future__ import annotations\n\nimport os\nimport re\nimport sys\nimport typing as t\nimport logging\nimport subprocess\nfrom sys import version_info\nfrom shlex import quote\nfrom typing import TYPE_CHECKING\n\nimport fs\nimport attr\nimport yaml\nimport psutil\nimport fs.copy\nfrom pathspe... | [
{
"content": "from __future__ import annotations\n\nimport os\nimport re\nimport sys\nimport typing as t\nimport logging\nimport subprocess\nfrom sys import version_info\nfrom shlex import quote\nfrom typing import TYPE_CHECKING\n\nimport fs\nimport attr\nimport yaml\nimport psutil\nimport fs.copy\nfrom pathspe... | diff --git a/src/bentoml/_internal/bento/build_config.py b/src/bentoml/_internal/bento/build_config.py
index a7f050375de..6b372d0b95f 100644
--- a/src/bentoml/_internal/bento/build_config.py
+++ b/src/bentoml/_internal/bento/build_config.py
@@ -111,7 +111,7 @@ def _convert_env(
if isinstance(env, list):
e... |
oppia__oppia-18345 | [FE flake] Context service behavior
## Logs
```
Chrome Headless 111.0.5563.110 (Linux x86_64) Context service behavior in the blog home pages should correctly retrieve the blog post id FAILED
Error: Expected 'undefined' to be 'sample123456'.
at <Jasmine>
at UserContext.<anonymous> (core/templates/comb... | [
{
"content": "# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n... | [
{
"content": "# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n... | diff --git a/.github/workflows/e2e_lighthouse_performance_acceptance_tests.yml b/.github/workflows/e2e_lighthouse_performance_acceptance_tests.yml
index 7447ebd7359cf..8c9916c0c3a65 100644
--- a/.github/workflows/e2e_lighthouse_performance_acceptance_tests.yml
+++ b/.github/workflows/e2e_lighthouse_performance_acceptan... |
DDMAL__CantusDB-97 | Hide items-count page
The items-count page (content statistics) should only be visible to logged-in contributors. The corresponding view should be given a `loginrequired` tag.
| [
{
"content": "import csv\nfrom django.http.response import HttpResponseRedirect, JsonResponse\nfrom django.http import HttpResponse\nfrom django.shortcuts import render\nfrom django.urls.base import reverse\nfrom main_app.models import (\n Chant,\n Sequence,\n Source,\n)\nfrom main_app.forms import Con... | [
{
"content": "import csv\nfrom django.http.response import HttpResponseRedirect, JsonResponse\nfrom django.http import HttpResponse\nfrom django.shortcuts import render\nfrom django.urls.base import reverse\nfrom main_app.models import (\n Chant,\n Sequence,\n Source,\n)\nfrom main_app.forms import Con... | diff --git a/django/cantusdb_project/main_app/views/views.py b/django/cantusdb_project/main_app/views/views.py
index 38eddd254..3d2e928b6 100644
--- a/django/cantusdb_project/main_app/views/views.py
+++ b/django/cantusdb_project/main_app/views/views.py
@@ -12,8 +12,9 @@
from django.core.mail import send_mail, get_conn... |
networkx__networkx-7229 | Typo in Tensor Product Documentation
### Current Behavior
Currently, in the documentation, the definition of the node set of the product says, it is the **tensor** product of the node sets. This is incorrect, as the tensor product is not applicable to sets and does not correspond to the sci. definition.
### Expect... | [
{
"content": "\"\"\"\nGraph products.\n\"\"\"\nfrom itertools import product\n\nimport networkx as nx\nfrom networkx.utils import not_implemented_for\n\n__all__ = [\n \"tensor_product\",\n \"cartesian_product\",\n \"lexicographic_product\",\n \"strong_product\",\n \"power\",\n \"rooted_product... | [
{
"content": "\"\"\"\nGraph products.\n\"\"\"\nfrom itertools import product\n\nimport networkx as nx\nfrom networkx.utils import not_implemented_for\n\n__all__ = [\n \"tensor_product\",\n \"cartesian_product\",\n \"lexicographic_product\",\n \"strong_product\",\n \"power\",\n \"rooted_product... | diff --git a/networkx/algorithms/operators/product.py b/networkx/algorithms/operators/product.py
index 9a8063c91e2..3128f82b40b 100644
--- a/networkx/algorithms/operators/product.py
+++ b/networkx/algorithms/operators/product.py
@@ -128,7 +128,7 @@ def tensor_product(G, H):
r"""Returns the tensor product of G and ... |
OpenEnergyPlatform__oeplatform-500 | SQLAlchemy>1.3 requires explicit columns
The OEP uses strings at some point to represent columns. These must be made explicit as columns for [SQLAlchemy 1.3](https://docs.sqlalchemy.org/en/13/core/tutorial.html#using-more-specific-text-with-table-literal-column-and-column)
| [
{
"content": "###########\n# Parsers #\n###########\nimport decimal\nimport re\nfrom datetime import datetime, date\n\nimport geoalchemy2 # Although this import seems unused is has to be here\nimport sqlalchemy as sa\nfrom sqlalchemy import (\n Column,\n MetaData,\n Table,\n and_,\n not_,\n c... | [
{
"content": "###########\n# Parsers #\n###########\nimport decimal\nimport re\nfrom datetime import datetime, date\n\nimport geoalchemy2 # Although this import seems unused is has to be here\nimport sqlalchemy as sa\nfrom sqlalchemy import (\n Column,\n MetaData,\n Table,\n and_,\n not_,\n c... | diff --git a/api/parser.py b/api/parser.py
index 49c45237b..52f7cee3e 100644
--- a/api/parser.py
+++ b/api/parser.py
@@ -203,6 +203,11 @@ def parse_select(d):
if "fields" in d and d["fields"]:
L = []
for field in d["fields"]:
+ if isinstance(field, str):
+ ... |
apache__airflow-11078 | Replace Airflow Slack Invite old link to short link
Follow up to https://github.com/apache/airflow/pull/10034
https://apache-airflow-slack.herokuapp.com/ to https://s.apache.org/airflow-slack/
<!--
Thank you for contributing! Please make sure that your code changes
are covered with tests. And in case of new fea... | [
{
"content": "#!/usr/bin/env python\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 Lice... | [
{
"content": "#!/usr/bin/env python\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 Lice... | diff --git a/.github/boring-cyborg.yml b/.github/boring-cyborg.yml
index e397d4b989d5f..bcd039328c467 100644
--- a/.github/boring-cyborg.yml
+++ b/.github/boring-cyborg.yml
@@ -221,7 +221,7 @@ firstPRWelcomeComment: >
Mailing List: dev@airflow.apache.org
- Slack: https://s.apache.org/airflow-slack/
+ Slack: ht... |
scrapy__scrapy-1793 | PY3: error decoding Content-Disposition header
This request
```
scrapy shell 'http://npe.com.cn/plus/save_to_doc.php?id=1666'
```
raises this error:
```
Traceback (most recent call last):
File "/Users/kmike/envs/dl/bin/scrapy", line 9, in <module>
load_entry_point('Scrapy', 'console_scripts', 'scrapy')()
Fil... | [
{
"content": "\"\"\"\nThis module implements a class which returns the appropriate Response class\nbased on different criteria.\n\"\"\"\nfrom __future__ import absolute_import\nfrom mimetypes import MimeTypes\nfrom pkgutil import get_data\nfrom io import StringIO\nimport six\n\nfrom scrapy.http import Response\... | [
{
"content": "\"\"\"\nThis module implements a class which returns the appropriate Response class\nbased on different criteria.\n\"\"\"\nfrom __future__ import absolute_import\nfrom mimetypes import MimeTypes\nfrom pkgutil import get_data\nfrom io import StringIO\nimport six\n\nfrom scrapy.http import Response\... | diff --git a/scrapy/responsetypes.py b/scrapy/responsetypes.py
index 4880cc7b91a..c667b141dba 100644
--- a/scrapy/responsetypes.py
+++ b/scrapy/responsetypes.py
@@ -59,7 +59,8 @@ def from_content_type(self, content_type, content_encoding=None):
def from_content_disposition(self, content_disposition):
tr... |
mampfes__hacs_waste_collection_schedule-1677 | [Bug]: Harborough District (https://www.fccenvironment.co.uk/) - No longer returning dates
### I Have A Problem With:
A specific source
### What's Your Problem
Integration is no longer reporting the collection dates for Haborough District - Sensor are as reported with the value 'unknown'.
I've attempted to call t... | [
{
"content": "from urllib.parse import urlparse\n\nimport requests\nimport urllib3\nfrom bs4 import BeautifulSoup\nfrom dateutil import parser\nfrom waste_collection_schedule import Collection\n\nurllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)\n\nTITLE = \"FCC Environment\"\nDESCRIPTION = \"... | [
{
"content": "from urllib.parse import urlparse\n\nimport requests\nimport urllib3\nfrom bs4 import BeautifulSoup\nfrom dateutil import parser\nfrom waste_collection_schedule import Collection\n\nurllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)\n\nTITLE = \"FCC Environment\"\nDESCRIPTION = \"... | diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/fccenvironment_co_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/fccenvironment_co_uk.py
index ef78d2481..2c4143a6d 100644
--- a/custom_components/waste_collection_schedule/waste_collection_sc... |
microsoft__DeepSpeed-3347 | Mention default launcher value in the help menu
Could you please add the launcher default value in the help menu?
https://github.com/microsoft/DeepSpeed/blob/ab1d2f826b5e1365b9e68b59e4d13e27c6f1065e/deepspeed/launcher/runner.py#L117
| [
{
"content": "# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\"\"\"\nDeepSpeed runner is the main front-end to launching multi-worker\ntraining jobs with DeepSpeed. By default this uses pdsh to parallel\nssh into multiple worker nodes and launch all the necess... | [
{
"content": "# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\"\"\"\nDeepSpeed runner is the main front-end to launching multi-worker\ntraining jobs with DeepSpeed. By default this uses pdsh to parallel\nssh into multiple worker nodes and launch all the necess... | diff --git a/deepspeed/launcher/runner.py b/deepspeed/launcher/runner.py
index cc34af81b2fe..a28b4d153516 100755
--- a/deepspeed/launcher/runner.py
+++ b/deepspeed/launcher/runner.py
@@ -40,7 +40,8 @@
def parse_args(args=None):
parser = argparse.ArgumentParser(description="DeepSpeed runner to help launch distri... |
pallets__click-1306 | Unprintable MissingParameter exception
My code is (correctly) hitting https://github.com/pallets/click/blob/master/click/core.py#L1444 and raising a MissingParameter exception. However, there's no `message` passed there, which means `exc.message` is defaulted to `None` by the base class (`ClickException`) constructor h... | [
{
"content": "from ._compat import PY2, filename_to_ui, get_text_stderr\nfrom .utils import echo\n\n\ndef _join_param_hints(param_hint):\n if isinstance(param_hint, (tuple, list)):\n return ' / '.join('\"%s\"' % x for x in param_hint)\n return param_hint\n\n\nclass ClickException(Exception):\n \... | [
{
"content": "from ._compat import PY2, filename_to_ui, get_text_stderr\nfrom .utils import echo\n\n\ndef _join_param_hints(param_hint):\n if isinstance(param_hint, (tuple, list)):\n return ' / '.join('\"%s\"' % x for x in param_hint)\n return param_hint\n\n\nclass ClickException(Exception):\n \... | diff --git a/CHANGES.rst b/CHANGES.rst
index dcf97d045..39cbd1d54 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -40,6 +40,8 @@ Unreleased
``type=bool``. :issue:`1287`
- Newlines in option help text are replaced with spaces before
re-wrapping to avoid uneven line breaks. :issue:`834`
+- ``MissingParameter... |
arviz-devs__arviz-2151 | plot_trace assumes specific dimensions ordering for divergences
**Describe the bug**
If an `InferenceData` contains a `diverging` variable in `sample_stats` that uses the dimension ordering `(draw, chain)` instead of `(chain, draw)`, then `plot_trace` fails.
**To Reproduce**
```python
>>> import arviz as az
>>> ... | [
{
"content": "\"\"\"Plot kde or histograms and values from MCMC samples.\"\"\"\nimport warnings\nfrom typing import Any, Callable, List, Mapping, Optional, Tuple, Union, Sequence\n\nfrom ..data import CoordSpec, InferenceData, convert_to_dataset\nfrom ..labels import BaseLabeller\nfrom ..rcparams import rcParam... | [
{
"content": "\"\"\"Plot kde or histograms and values from MCMC samples.\"\"\"\nimport warnings\nfrom typing import Any, Callable, List, Mapping, Optional, Tuple, Union, Sequence\n\nfrom ..data import CoordSpec, InferenceData, convert_to_dataset\nfrom ..labels import BaseLabeller\nfrom ..rcparams import rcParam... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a2a8f05f0d..c1c210dce4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,16 @@
# Change Log
+## v0.x.x Unreleased
+
+### New features
+
+### Maintenance and fixes
+- Fix dimension ordering for `plot_trace` with divergences ([2151](https://github.com/arviz-devs/arv... |
pyinstaller__pyinstaller-5141 | utils.hooks.collect_all() collects __pycache__ and .py[co] files
How to reproduce:
- Install gevent
- In `tests/functional/test_libraries.py` add some line to the script in `test_gevent` to make the script fail. E.g. add "raise SystemExit(1)"
This is only to keep the build data after the test run. Our test-suit... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2020, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2020, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens... | diff --git a/PyInstaller/utils/hooks/__init__.py b/PyInstaller/utils/hooks/__init__.py
index 5409136319..be4456c4cd 100755
--- a/PyInstaller/utils/hooks/__init__.py
+++ b/PyInstaller/utils/hooks/__init__.py
@@ -729,6 +729,10 @@ def collect_data_files(package, include_py_files=False, subdir=None,
if not include_py_... |
DataDog__dd-agent-2472 | [dogstatsd] Service checks: message field parsing confused by `m:`
See https://github.com/DataDog/dd-agent/commit/1ca4a67163a4e563e558e4d7b2953453ee3ce152
The test fails because `m:` is regarded as the start of a message field when it shouldn't be (it's just part of the tag).
See also https://github.com/DataDog/dd-ag... | [
{
"content": "# (C) Datadog, Inc. 2010-2016\n# All rights reserved\n# Licensed under Simplified BSD License (see LICENSE)\n\n# stdlib\nimport logging\nfrom time import time\n\n# project\nfrom checks.metric_types import MetricTypes\n\nlog = logging.getLogger(__name__)\n\n\n# This is used to ensure that metrics w... | [
{
"content": "# (C) Datadog, Inc. 2010-2016\n# All rights reserved\n# Licensed under Simplified BSD License (see LICENSE)\n\n# stdlib\nimport logging\nfrom time import time\n\n# project\nfrom checks.metric_types import MetricTypes\n\nlog = logging.getLogger(__name__)\n\n\n# This is used to ensure that metrics w... | diff --git a/aggregator.py b/aggregator.py
index 15b6fba987..ed5284d145 100644
--- a/aggregator.py
+++ b/aggregator.py
@@ -558,7 +558,7 @@ def parse_sc_packet(self, packet):
'status': int(status)
}
- message_delimiter = '|m:' if '|m:' in metadata else 'm:'
+ message... |
dask__distributed-4093 | Better handling of invalid local_directory
When copying `jobqueue.yaml` from one system to another, I missed updating `local_directory` to point to a valid path. When I tried to run a job, I got this output:
```
distributed.core - ERROR - addresses should be strings or tuples, got None
Traceback (most recent call ... | [
{
"content": "import asyncio\nfrom contextlib import suppress\nimport errno\nimport logging\nfrom multiprocessing.queues import Empty\nimport os\nimport psutil\nimport shutil\nimport threading\nimport uuid\nimport warnings\nimport weakref\n\nimport dask\nfrom dask.system import CPU_COUNT\nfrom tornado.ioloop im... | [
{
"content": "import asyncio\nfrom contextlib import suppress\nimport errno\nimport logging\nfrom multiprocessing.queues import Empty\nimport os\nimport psutil\nimport shutil\nimport threading\nimport uuid\nimport warnings\nimport weakref\n\nimport dask\nfrom dask.system import CPU_COUNT\nfrom tornado.ioloop im... | diff --git a/distributed/nanny.py b/distributed/nanny.py
index fd7078982a7..87cf54ed839 100644
--- a/distributed/nanny.py
+++ b/distributed/nanny.py
@@ -438,7 +438,7 @@ def _on_exit_sync(self, exitcode):
self.loop.add_callback(self._on_exit, exitcode)
async def _on_exit(self, exitcode):
- if self... |
lk-geimfari__mimesis-610 | Hardcoded parameters used for random.randint() in Person.username()
Looking at the ```username()``` function in ```providers/person.py``` I found this line:
```
date = self.random.randint(1800, 2070)
```
@lk-geimfari Do you know why these parameters are hardcoded? For #561, I need to calculate all the possible ... | [
{
"content": "\"\"\"Provides personal data.\"\"\"\n\nimport hashlib\nfrom string import ascii_letters, digits, punctuation\nfrom typing import Optional, Union\n\nfrom mimesis.data import (\n BLOOD_GROUPS,\n CALLING_CODES,\n EMAIL_DOMAINS,\n GENDER_SYMBOLS,\n SEXUALITY_SYMBOLS,\n SOCIAL_NETWORK... | [
{
"content": "\"\"\"Provides personal data.\"\"\"\n\nimport hashlib\nfrom string import ascii_letters, digits, punctuation\nfrom typing import Optional, Union\n\nfrom mimesis.data import (\n BLOOD_GROUPS,\n CALLING_CODES,\n EMAIL_DOMAINS,\n GENDER_SYMBOLS,\n SEXUALITY_SYMBOLS,\n SOCIAL_NETWORK... | diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst
index 1d7c2d894..69fa19ea8 100755
--- a/CONTRIBUTORS.rst
+++ b/CONTRIBUTORS.rst
@@ -74,6 +74,7 @@ Contributors
- Sadie Bartholomew `(sadielbartholomew)`_
- Nazar Oleksiuk `(DevAerial)`_
- Ivan Ramos `(expandedmind)`_
+- Jack Henry `(jackhenry)`_
.. _(lk-geimfar... |
aws-cloudformation__cfn-lint-2665 | cfn-lint throws error when !ToJsonString contains int value
### CloudFormation Lint Version
0.76.2
### What operating system are you using?
Ubuntu
### Describe the bug
Unexpected internal error during linting of rule E1031, involving `ToJsonString` of numerical value
```
2023-04-06 20:20:31,922 - cfnlint - DEB... | [
{
"content": "from cfnlint.rules import RuleMatch\n\n\nclass LanguageExtensions:\n \"\"\"Class for a CloudFormation languageExtensions\"\"\"\n\n def validate_transform_is_declared(\n self, has_language_extensions_transform, matches, tree, intrinsic_function\n ):\n if not has_language_exte... | [
{
"content": "from cfnlint.rules import RuleMatch\n\n\nclass LanguageExtensions:\n \"\"\"Class for a CloudFormation languageExtensions\"\"\"\n\n def validate_transform_is_declared(\n self, has_language_extensions_transform, matches, tree, intrinsic_function\n ):\n if not has_language_exte... | diff --git a/src/cfnlint/languageExtensions.py b/src/cfnlint/languageExtensions.py
index 3bce648ceb..6f6e198798 100644
--- a/src/cfnlint/languageExtensions.py
+++ b/src/cfnlint/languageExtensions.py
@@ -29,7 +29,11 @@ def validate_pseudo_parameters(
):
if isinstance(fn_object_val, dict):
ref ... |
holoviz__holoviews-5450 | Empty Box-Whisker plot with the Matplotlib backend when vdims has NaNs
The following snippet correctly returns a Box-Whisker plot grouped by *carrier* with the Bokeh backend but just returns an empty plot with the matplotlib backend.
```python
import holoviews as hv
from hvplot.sample_data import us_crime, airline... | [
{
"content": "import param\nimport numpy as np\n\nfrom ...core.ndmapping import sorted_context\nfrom .chart import AreaPlot, ChartPlot\nfrom .path import PolygonPlot\nfrom .plot import AdjoinedPlot\n\n\nclass DistributionPlot(AreaPlot):\n \"\"\"\n DistributionPlot visualizes a distribution of values as a ... | [
{
"content": "import param\nimport numpy as np\n\nfrom ...core.ndmapping import sorted_context\nfrom .chart import AreaPlot, ChartPlot\nfrom .path import PolygonPlot\nfrom .plot import AdjoinedPlot\n\n\nclass DistributionPlot(AreaPlot):\n \"\"\"\n DistributionPlot visualizes a distribution of values as a ... | diff --git a/holoviews/plotting/mpl/stats.py b/holoviews/plotting/mpl/stats.py
index 420a0ba4cf..1ce3fb65a7 100644
--- a/holoviews/plotting/mpl/stats.py
+++ b/holoviews/plotting/mpl/stats.py
@@ -78,7 +78,8 @@ def get_data(self, element, ranges, style):
label = ','.join([d.pprint_value(v) for d, v in zi... |
learningequality__kolibri-9397 | Fresh Kolibri dev environment fails to install properly
## Observed behavior
I took these steps:
- Clone Kolibri to fresh local repo
- Ensure `develop` is checked out
- `python -m venv venv`
- `source venv/bin/activate`
- `pip install -r` every file in the `requirements/` directory
- `pip install -e .`
- `... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport os\n\nfrom .base import * # noqa isort:skip @UnusedWildImport\n\nDEBUG = True\n\n# Settings might be tuples, so switch to lists\nINSTALLED_APPS = list(INSTALLED_APPS) +... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport os\n\nfrom .base import * # noqa isort:skip @UnusedWildImport\n\nDEBUG = True\n\n# Settings might be tuples, so switch to lists\nINSTALLED_APPS = list(INSTALLED_APPS) +... | diff --git a/kolibri/deployment/default/settings/dev.py b/kolibri/deployment/default/settings/dev.py
index ab933745c8e..e008dd80a69 100644
--- a/kolibri/deployment/default/settings/dev.py
+++ b/kolibri/deployment/default/settings/dev.py
@@ -9,7 +9,7 @@
DEBUG = True
# Settings might be tuples, so switch to lists
-IN... |
tobymao__sqlglot-1665 | Pushdown projections seems to handle QUALIFY clauses incorrectly
**Fully reproducible code snippet**
```
sql = """
with cte as (
select
a,
row_number() over (
partition by id, timestamp
order by a desc
) as index
from source
qualify index
)
select a from cte
"""
sc... | [
{
"content": "from __future__ import annotations\n\nimport itertools\nimport typing as t\n\nfrom sqlglot import alias, exp\nfrom sqlglot.errors import OptimizeError\nfrom sqlglot.helper import seq_get\nfrom sqlglot.optimizer.scope import Scope, traverse_scope, walk_in_scope\nfrom sqlglot.schema import Schema, e... | [
{
"content": "from __future__ import annotations\n\nimport itertools\nimport typing as t\n\nfrom sqlglot import alias, exp\nfrom sqlglot.errors import OptimizeError\nfrom sqlglot.helper import seq_get\nfrom sqlglot.optimizer.scope import Scope, traverse_scope, walk_in_scope\nfrom sqlglot.schema import Schema, e... | diff --git a/sqlglot/optimizer/qualify_columns.py b/sqlglot/optimizer/qualify_columns.py
index e15380acd6..65a943f51a 100644
--- a/sqlglot/optimizer/qualify_columns.py
+++ b/sqlglot/optimizer/qualify_columns.py
@@ -194,6 +194,7 @@ def replace_columns(
replace_columns(expression.args.get("where"))
replace_colu... |
ansible__ansible-28876 | ec2_group - Using SG's from peered VPC's
##### ISSUE TYPE
<!--- Pick one below and delete the rest: -->
- Bug Report
##### COMPONENT NAME
<!--- Name of the module/plugin/task/feature -->
ec2_group
##### ANSIBLE VERSION
<!--- Paste verbatim output from “ansible --version” between quotes below -->
```
ansib... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your ... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your ... | diff --git a/lib/ansible/modules/cloud/amazon/ec2_group.py b/lib/ansible/modules/cloud/amazon/ec2_group.py
index 608b41a9e6d6db..95f3675eefd7cb 100644
--- a/lib/ansible/modules/cloud/amazon/ec2_group.py
+++ b/lib/ansible/modules/cloud/amazon/ec2_group.py
@@ -385,7 +385,7 @@ def get_target_from_rule(module, client, rule... |
freedomofpress__securedrop-1416 | Install securedrop-keyring package
This is the change to the playbook required to install the [SecureDrop keyring package](https://github.com/freedomofpress/securedrop-keyring) as part of the FPF apt repo, which will allow us to update the public key which is used to sign the [apt.freedom.press](https://apt.freedom.pre... | [
{
"content": "__version__ = '0.3.9'\n",
"path": "securedrop/version.py"
},
{
"content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to its\... | [
{
"content": "__version__ = '0.3.10'\n",
"path": "securedrop/version.py"
},
{
"content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to its... | diff --git a/changelog.md b/changelog.md
index 291312a3a1..90b2d1732e 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,20 @@
# Changelog
+## 0.3.10
+
+Creates new Debian package `securedrop-keyring` for managing the SecureDrop
+Release Signing Key. Rotates the signing key currently in use by setting
+a depend... |
cupy__cupy-5482 | Cupy cannot be compiled depending on the combination of versions of Setuptools, Numpy, Cython
It seems that Cupy cannot be compiled depending on the combination of versions of Setuptools, Numpy, Cython (and other components).
* Conditions
- CuPy 9.2.0 (try to compile)
- Linux OS 5.13.1 / glibc 2.33
- CUDA ... | [
{
"content": "import argparse\nimport copy\nfrom distutils import ccompiler\nfrom distutils import errors\nfrom distutils import msvccompiler\nfrom distutils import sysconfig\nfrom distutils import unixccompiler\nimport os\nfrom os import path\nimport shutil\nimport sys\n\nimport pkg_resources\nimport setuptool... | [
{
"content": "import argparse\nimport copy\nfrom distutils import ccompiler\nfrom distutils import errors\nfrom distutils import msvccompiler\nfrom distutils import sysconfig\nfrom distutils import unixccompiler\nimport os\nfrom os import path\nimport shutil\nimport sys\n\nimport pkg_resources\nimport setuptool... | diff --git a/cupy_setup_build.py b/cupy_setup_build.py
index d1401f5ad04..57fc0707bb1 100644
--- a/cupy_setup_build.py
+++ b/cupy_setup_build.py
@@ -18,6 +18,12 @@
from install.build import PLATFORM_LINUX
from install.build import PLATFORM_WIN32
+try:
+ # This is to avoid getting numpy imported inside other modu... |
wagtail__wagtail-1274 | AdminAutoHeightTextInput doesn't auto-height on page load
`wagtailadmin.widgets.AdminAutoHeightTextInput` appears now to be the new default widget for `django.db.models.TextField`. It auto-heights when you type into it
d with the current directory set to its\... | [
{
"content": "__version__ = '0.3.10'\n",
"path": "securedrop/version.py"
},
{
"content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to its... | diff --git a/.travis.yml b/.travis.yml
index 1edb6a5c84..8c0a9b6c51 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -17,7 +17,7 @@ before_install:
- echo HRNGDEVICE=/dev/urandom | sudo tee /etc/default/rng-tools
- sudo /etc/init.d/rng-tools restart
install:
-- pip install ansible
+- pip install ansible==1.8.4
- pip i... |
mindsdb__mindsdb-866 | Fix address already in use when running mindsdb
We need help with find and fix bug:
When you run mindsdb in console, for each interface (specified during --api argument) it needs to run the separate process. When you interrupt the main process by ctrl-c, all other processes should stop too. But sometimes it doesn't ha... | [
{
"content": "import atexit\nimport traceback\nimport sys\nimport os\nimport time\nimport asyncio\n\nfrom pkg_resources import get_distribution\nimport torch.multiprocessing as mp\n\nfrom mindsdb.utilities.config import Config\nfrom mindsdb.interfaces.native.mindsdb import MindsdbNative\nfrom mindsdb.interfaces... | [
{
"content": "import atexit\nimport traceback\nimport sys\nimport os\nimport time\nimport asyncio\n\nfrom pkg_resources import get_distribution\nimport torch.multiprocessing as mp\n\nfrom mindsdb.utilities.config import Config\nfrom mindsdb.interfaces.native.mindsdb import MindsdbNative\nfrom mindsdb.interfaces... | diff --git a/mindsdb/__main__.py b/mindsdb/__main__.py
index 31dffe70ead..ed0dd94f691 100644
--- a/mindsdb/__main__.py
+++ b/mindsdb/__main__.py
@@ -27,13 +27,15 @@
def close_api_gracefully(apis):
- for api in apis.values():
- process = api['process']
- sys.stdout.flush()
- process.terminat... |
feast-dev__feast-2107 | requested_features are not passed to online_read() from passthrough_provider
`OnlineStore.online_read()` has a parameter `requested_features`. Similarly, `PassthroughProvider.online_read()` also has a parameter `requested_features`.
`PassthroughProvider.online_read()` calls `OnlineStore.online_read()` but doesn't pas... | [
{
"content": "from datetime import datetime\nfrom typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union\n\nimport pandas\nimport pyarrow as pa\nfrom tqdm import tqdm\n\nfrom feast.entity import Entity\nfrom feast.feature_table import FeatureTable\nfrom feast.feature_view import FeatureView\n... | [
{
"content": "from datetime import datetime\nfrom typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union\n\nimport pandas\nimport pyarrow as pa\nfrom tqdm import tqdm\n\nfrom feast.entity import Entity\nfrom feast.feature_table import FeatureTable\nfrom feast.feature_view import FeatureView\n... | diff --git a/sdk/python/feast/infra/passthrough_provider.py b/sdk/python/feast/infra/passthrough_provider.py
index 34bf4902b32..c6dda628172 100644
--- a/sdk/python/feast/infra/passthrough_provider.py
+++ b/sdk/python/feast/infra/passthrough_provider.py
@@ -87,7 +87,9 @@ def online_read(
requested_features: Lis... |
encode__django-rest-framework-3820 | Test case for #3598
There is no fix for this test case, just test case which fails.
I don't know how to fix it in a good way.
See more investigation details in issue #3598
| [
{
"content": "\"\"\"\nHelpers for dealing with HTML input.\n\"\"\"\nimport re\n\nfrom django.utils.datastructures import MultiValueDict\n\n\ndef is_html_input(dictionary):\n # MultiDict type datastructures are used to represent HTML form input,\n # which may have more than one value for each key.\n ret... | [
{
"content": "\"\"\"\nHelpers for dealing with HTML input.\n\"\"\"\nimport re\n\nfrom django.utils.datastructures import MultiValueDict\n\n\ndef is_html_input(dictionary):\n # MultiDict type datastructures are used to represent HTML form input,\n # which may have more than one value for each key.\n ret... | diff --git a/rest_framework/utils/html.py b/rest_framework/utils/html.py
index 3b871027c7..121c825c73 100644
--- a/rest_framework/utils/html.py
+++ b/rest_framework/utils/html.py
@@ -80,10 +80,12 @@ def parse_html_dict(dictionary, prefix=''):
"""
ret = MultiValueDict()
regex = re.compile(r'^%s\.(.+)$' % ... |
tobymao__sqlglot-1951 | error in optimizer.qualify with mixed identifier quotation.
**Fully reproducible code snippet**:
```
from sqlglot import parse_one
from sqlglot.dialects.oracle import Oracle
from sqlglot.lineage import lineage
from sqlglot.optimizer.qualify import qualify
parser = Oracle()
sql = """
with base as
(
s... | [
{
"content": "from __future__ import annotations\n\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import Dialect, no_ilike_sql, rename_func, trim_sql\nfrom sqlglot.helper import seq_get\nfrom sqlglot.tokens import TokenType\n\n\ndef _parse_xm... | [
{
"content": "from __future__ import annotations\n\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import Dialect, no_ilike_sql, rename_func, trim_sql\nfrom sqlglot.helper import seq_get\nfrom sqlglot.tokens import TokenType\n\n\ndef _parse_xm... | diff --git a/sqlglot/dialects/oracle.py b/sqlglot/dialects/oracle.py
index 69da133480..1f63e9f7d1 100644
--- a/sqlglot/dialects/oracle.py
+++ b/sqlglot/dialects/oracle.py
@@ -30,6 +30,9 @@ def _parse_xml_table(self: parser.Parser) -> exp.XMLTable:
class Oracle(Dialect):
ALIAS_POST_TABLESAMPLE = True
+ # See ... |
NVIDIA__NVFlare-329 | Fix docstring in FLComponent
https://github.com/NVIDIA/NVFlare/blob/main/nvflare/apis/fl_component.py#L32
aggregrators should be aggregators
| [
{
"content": "# Copyright (c) 2021-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 License at\n#\n# http://www.apache.org/licenses/LICEN... | [
{
"content": "# Copyright (c) 2021-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 License at\n#\n# http://www.apache.org/licenses/LICEN... | diff --git a/nvflare/apis/fl_component.py b/nvflare/apis/fl_component.py
index 449b930a9f..c1d652a2e7 100644
--- a/nvflare/apis/fl_component.py
+++ b/nvflare/apis/fl_component.py
@@ -30,7 +30,7 @@ def __init__(self):
"""Init FLComponent.
The FLComponent is the base class of all FL Components.
- ... |
kivy__python-for-android-1603 | Python3 + greenlet install issue
This is with Ubuntu 16.04 and crystax-ndk-10.3.2.
```
buildozer android debug
# Check configuration tokens
Truncating the trace...
[INFO]: Building python3crystax for armeabi-v7a
[INFO]: Building greenlet for armeabi-v7a
[INFO]: greenlet apparently isn't already in site-... | [
{
"content": "from pythonforandroid.recipe import PythonRecipe\n\n\nclass GreenletRecipe(PythonRecipe):\n version = '0.4.9'\n url = 'https://pypi.python.org/packages/source/g/greenlet/greenlet-{version}.tar.gz'\n depends = [('python2', 'python3crystax')]\n\n\nrecipe = GreenletRecipe()\n",
"path": "... | [
{
"content": "from pythonforandroid.recipe import CompiledComponentsPythonRecipe\n\n\nclass GreenletRecipe(CompiledComponentsPythonRecipe):\n version = '0.4.15'\n url = 'https://pypi.python.org/packages/source/g/greenlet/greenlet-{version}.tar.gz'\n depends = ['setuptools']\n call_hostpython_via_tar... | diff --git a/pythonforandroid/recipes/greenlet/__init__.py b/pythonforandroid/recipes/greenlet/__init__.py
index 80564cd284..3f2043d57d 100644
--- a/pythonforandroid/recipes/greenlet/__init__.py
+++ b/pythonforandroid/recipes/greenlet/__init__.py
@@ -1,10 +1,11 @@
-from pythonforandroid.recipe import PythonRecipe
+from... |
RedHatInsights__insights-core-2749 | httpd_conf combiner doesn't handle identifier with digits in their names
The [Name definition](https://github.com/RedHatInsights/insights-core/blob/master/insights/combiners/httpd_conf.py#L278) in the http conf parser doesn't allow digits. That causes it to fail when parsing things like `H2Push`.
Change to something... | [
{
"content": "\"\"\"\nCombiner for httpd configurations\n=================================\n\nCombiner for parsing part of httpd configurations. It collects all HttpdConf\ngenerated from each configuration file and combines them to expose a\nconsolidated configuration tree.\n\n.. note::\n At this point in ti... | [
{
"content": "\"\"\"\nCombiner for httpd configurations\n=================================\n\nCombiner for parsing part of httpd configurations. It collects all HttpdConf\ngenerated from each configuration file and combines them to expose a\nconsolidated configuration tree.\n\n.. note::\n At this point in ti... | diff --git a/insights/combiners/httpd_conf.py b/insights/combiners/httpd_conf.py
index a72e40f491..2ec8bef550 100644
--- a/insights/combiners/httpd_conf.py
+++ b/insights/combiners/httpd_conf.py
@@ -275,7 +275,10 @@ def __init__(self, ctx):
Complex = Forward()
Comment = (WS >> OneLineComment("#")).map... |
beetbox__beets-1556 | __str__ crash due to timeout in fetchart plugin
This looks like more of an issue with the urllib3 package than beets, but beets could do with a workaround to avoid crashing when this exception occurs while fetching album artwork:
```
File "/usr/local/lib/python2.7/dist-packages/beets-1.3.14-py2.7.egg/beetsplug/fetch... | [
{
"content": "# This file is part of beets.\n# Copyright 2015, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limita... | [
{
"content": "# This file is part of beets.\n# Copyright 2015, Adrian Sampson.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limita... | diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py
index bc772bd839..d4d8e07bde 100644
--- a/beetsplug/fetchart.py
+++ b/beetsplug/fetchart.py
@@ -436,7 +436,7 @@ def _fetch_image(self, url):
self._log.debug(u'downloaded art to: {0}',
util.displayable_path(fh.na... |
plotly__dash-431 | Generate class endlines.
When generating classes for the components libs, if you are on windows, the endlines of the docstring will be `\r\n` instead of `\n`. This gives `^m` diff on github when there shouldn't be a difference.
| [
{
"content": "import collections\nimport copy\nimport os\nimport inspect\nimport keyword\n\n\ndef is_number(s):\n try:\n float(s)\n return True\n except ValueError:\n return False\n\n\ndef _check_if_has_indexable_children(item):\n if (not hasattr(item, 'children') or\n (... | [
{
"content": "import collections\nimport copy\nimport os\nimport inspect\nimport keyword\n\n\ndef is_number(s):\n try:\n float(s)\n return True\n except ValueError:\n return False\n\n\ndef _check_if_has_indexable_children(item):\n if (not hasattr(item, 'children') or\n (... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 344f5119b7..82e52d44d3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.28.5 - 2018-10-18
+## Fixed
+- Replace windows endline when generating the components classes docstring [#431](https://github.com/plotly/dash/pull/431)
+
## 0.28.4 - 2018-10-18
## F... |
Qiskit__qiskit-6922 | assemble for schedules ignores parametric_pulses argument
<!-- ⚠️ If you do not respect this template, your issue will be closed -->
<!-- ⚠️ Make sure to browse the opened and closed issues -->
### Information
- **Qiskit Terra version**: 0.18.1
- **Python version**: 3.8
- **Operating system**: N/A
### What ... | [
{
"content": "# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2017, 2019.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.\n#\n... | [
{
"content": "# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2017, 2019.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.\n#\n... | diff --git a/qiskit/compiler/assembler.py b/qiskit/compiler/assembler.py
index ed27f352fec1..7cc92e25f7b5 100644
--- a/qiskit/compiler/assembler.py
+++ b/qiskit/compiler/assembler.py
@@ -438,8 +438,8 @@ def _parse_pulse_args(
if isinstance(rep_time, list):
rep_time = rep_time[0]
rep_time ... |
DjangoGirls__djangogirls-383 | [organizer form] Change previous event list to a search field
When applying to organize an event, [people can tell us](https://djangogirls.org/organize/form/previous_event/) if they already organized one event.
Problem: they have to look for their event in a drop down menu with more than 200 items. It's super hard to ... | [
{
"content": "from django import forms\nfrom django_countries import countries\nfrom django_countries.fields import LazyTypedChoiceField\nfrom django_date_extensions.fields import ApproximateDateFormField\n\nfrom core.models import Event\nfrom core.validators import validate_approximatedate\nfrom .constants imp... | [
{
"content": "from django import forms\nfrom django_countries import countries\nfrom django_countries.fields import LazyTypedChoiceField\nfrom django_date_extensions.fields import ApproximateDateFormField\n\nfrom core.models import Event\nfrom core.validators import validate_approximatedate\nfrom .constants imp... | diff --git a/organize/forms.py b/organize/forms.py
index bec8d6e6b..669b4e892 100644
--- a/organize/forms.py
+++ b/organize/forms.py
@@ -100,7 +100,8 @@ class WorkshopForm(forms.Form):
required=True,
max_length=200,
widget=forms.TextInput(attrs={'class': 'compact-input'}))
- country = Lazy... |
modin-project__modin-5512 | read_csv with Ray engine fails with `dialect` parameter
### System information
- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Ubuntu 18.04
- **Modin version**: ce2bea8867739ea792cdda0dce8ad50e366ebae1
- **Python version**: 3.8.6
- **Code we can use to reproduce**:
```
import os
os.environ["MODI... | [
{
"content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ... | [
{
"content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ... | diff --git a/modin/core/io/text/text_file_dispatcher.py b/modin/core/io/text/text_file_dispatcher.py
index 6b37d5ad160..9aeec1c5166 100644
--- a/modin/core/io/text/text_file_dispatcher.py
+++ b/modin/core/io/text/text_file_dispatcher.py
@@ -655,6 +655,9 @@ def check_parameters_support(
if read_kwargs["chunksiz... |
mozilla__bugbug-138 | Fix linting issue preventing us from updating to flake8 4.7.1
https://github.com/mozilla/bugbug/pull/135 is failing because:
> ./bugbug/model.py:102:21: E117 over-indented
We should fix it, and then we can merge https://github.com/mozilla/bugbug/pull/135.
| [
{
"content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport numpy as np\nimport shap\nfrom imblearn.metrics import classif... | [
{
"content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport numpy as np\nimport shap\nfrom imblearn.metrics import classif... | diff --git a/bugbug/model.py b/bugbug/model.py
index 60e6ae375e..1d3f147c57 100644
--- a/bugbug/model.py
+++ b/bugbug/model.py
@@ -99,7 +99,7 @@ def bugs():
print(f'\nTop {len(important_features)} Features :')
for i, [importance, index, is_positive] in enumerate(important_features):
- ... |
mathesar-foundation__mathesar-3499 | CSRF Failed Error
## Description
The error message
"CSRF Failed: Origin checking failed - https://internal.mathesar.org/ does not match any trusted origins."
is appearing when performing certain actions in Mathesar like creating a new internal db or saving a record.
## Additional context
This happened while te... | [
{
"content": "from config.settings.common_settings import * # noqa\n\n# Override default settings\nDEBUG = False\nMATHESAR_MODE = 'PRODUCTION'\n# Use a local.py module for settings that shouldn't be version tracked\ntry:\n from .local import * # noqa \nexcept ImportError:\n pass\n",
"path": "config/se... | [
{
"content": "from config.settings.common_settings import * # noqa\n\n# Override default settings\nDEBUG = False\nMATHESAR_MODE = 'PRODUCTION'\n\n'''\nThis tells Django to trust the X-Forwarded-Proto header that comes from our proxy,\nand any time its value is 'https', then the request is guaranteed to be secur... | diff --git a/config/settings/production.py b/config/settings/production.py
index 9af47d2268..f2b6b2af72 100644
--- a/config/settings/production.py
+++ b/config/settings/production.py
@@ -3,6 +3,14 @@
# Override default settings
DEBUG = False
MATHESAR_MODE = 'PRODUCTION'
+
+'''
+This tells Django to trust the X-Forwa... |
django-oscar__django-oscar-3827 | Streamline handling of links in email templates
### Issue Summary
Nearly all email templates expect an endpoint e.g. something like `/account/order/<order_number>/` and use the template tag `absolute_url` to construct the fully qualified URL. I.e. the protocol and the domain can be adjusted in the template code instea... | [
{
"content": "import logging\n\nfrom django.contrib.sites.models import Site\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.http import HttpResponseRedirect\nfrom django.urls import NoReverseMatch, reverse\n\nfrom oscar.apps.checkout.signals import post_checkout\nfrom oscar.core.loading imp... | [
{
"content": "import logging\n\nfrom django.contrib.sites.models import Site\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.http import HttpResponseRedirect\nfrom django.urls import NoReverseMatch, reverse\n\nfrom oscar.apps.checkout.signals import post_checkout\nfrom oscar.core.loading imp... | diff --git a/docs/source/releases/v3.2.rst b/docs/source/releases/v3.2.rst
index 745e61d3d7a..d882c8186ee 100644
--- a/docs/source/releases/v3.2.rst
+++ b/docs/source/releases/v3.2.rst
@@ -57,3 +57,6 @@ Deprecated features
- The ``annotate_form_field`` template tag is deprecated. It's functionality of annotating for... |
pwr-Solaar__Solaar-2197 | Ignore K845 wired keyboard
I have a wireless Logitech mouse, which works perfectly on Solaar. But I also have a wired dumb Logitech keyboard with nothing to configure. Every day when I plug in my laptop, Solaar throws error:
> Found a Logitech receiver of device at /dev/hidraw5, but encountered an error connecting t... | [
{
"content": "# -*- python-mode -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the License, or\n## (at your... | [
{
"content": "# -*- python-mode -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the License, or\n## (at your... | diff --git a/lib/logitech_receiver/descriptors.py b/lib/logitech_receiver/descriptors.py
index 3553b5a793..522a67ecca 100644
--- a/lib/logitech_receiver/descriptors.py
+++ b/lib/logitech_receiver/descriptors.py
@@ -209,6 +209,7 @@ def get_btid(btid):
_D('G512 RGB Mechanical Gaming Keyboard', codename='G512', usbid=0xc... |
sunpy__sunpy-3194 | Using SunPy in two threads sometimes crashes when creating config
I test HelioPy on two threads at the same time, and when it comes to importing SunPy the following error happens sporadically:
```
heliopy\coordinates\test\test_transformations.py:1: in <module>
import heliopy.coordinates.frames as frames
helio... | [
{
"content": "\"\"\"\nThis module provides SunPy's configuration file functionality.\n\"\"\"\nimport os\nimport configparser\nfrom pathlib import Path\n\nimport sunpy\nfrom sunpy.extern.appdirs import AppDirs\n\n__all__ = ['load_config', 'print_config', 'CONFIG_DIR']\n\n# This is to avoid creating a new config ... | [
{
"content": "\"\"\"\nThis module provides SunPy's configuration file functionality.\n\"\"\"\nimport os\nimport configparser\nfrom pathlib import Path\n\nimport sunpy\nfrom sunpy.extern.appdirs import AppDirs\n\n__all__ = ['load_config', 'print_config', 'CONFIG_DIR']\n\n# This is to avoid creating a new config ... | diff --git a/sunpy/util/config.py b/sunpy/util/config.py
index ca2ec70f855..8d102762aac 100644
--- a/sunpy/util/config.py
+++ b/sunpy/util/config.py
@@ -119,9 +119,13 @@ def _is_writable_dir(p):
"""
Checks to see if a directory is writable.
"""
- if not Path(p).exists():
- Path(p).mkdir(parents... |
coqui-ai__TTS-617 | [Bug] AttributeError: 'Trainer' object has no attribute 'setup_train_dataloader'
When I try to run the [ljspeech Tacotron2-DDC recipe](https://github.com/coqui-ai/TTS/blob/main/recipes/ljspeech/tacotron2-DDC/run.sh) I get this error:
```
Traceback (most recent call last):
File "/home/user/repo/coqui-clean/TTS/tr... | [
{
"content": "import copy\nfrom abc import abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Dict, List\n\nimport torch\nfrom coqpit import MISSING, Coqpit\nfrom torch import nn\n\nfrom TTS.tts.layers.losses import TacotronLoss\nfrom TTS.tts.models.base_tts import BaseTTS\nfrom TTS.tts.utils... | [
{
"content": "import copy\nfrom abc import abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Dict, List\n\nimport torch\nfrom coqpit import MISSING, Coqpit\nfrom torch import nn\n\nfrom TTS.tts.layers.losses import TacotronLoss\nfrom TTS.tts.models.base_tts import BaseTTS\nfrom TTS.tts.utils... | diff --git a/TTS/VERSION b/TTS/VERSION
index 6da28dde76..8294c18436 100644
--- a/TTS/VERSION
+++ b/TTS/VERSION
@@ -1 +1 @@
-0.1.1
\ No newline at end of file
+0.1.2
\ No newline at end of file
diff --git a/TTS/tts/models/base_tacotron.py b/TTS/tts/models/base_tacotron.py
index a99e1926a6..b7056e0602 100644
--- a/TTS/tt... |
meltano__meltano-7190 | bug: env vars in `meltano.yml` cause exception while running meltano install since v2.13.0
### Meltano Version
2.13.0
### Python Version
3.9
### Bug scope
CLI (options, error messages, logging, etc.)
### Operating System
Windows 10 (using WSL2), same issue occurs on Ubuntu 22.04 VM
### Description
[Slack threa... | [
{
"content": "\"\"\"Module for managing settings.\"\"\"\nfrom __future__ import annotations\n\nimport logging\nimport os\nimport warnings\nfrom abc import ABC, abstractmethod\nfrom contextlib import contextmanager\nfrom enum import Enum\nfrom typing import Generator, Iterable\n\nfrom meltano.core.project import... | [
{
"content": "\"\"\"Module for managing settings.\"\"\"\nfrom __future__ import annotations\n\nimport logging\nimport os\nimport warnings\nfrom abc import ABC, abstractmethod\nfrom contextlib import contextmanager\nfrom enum import Enum\nfrom typing import Generator, Iterable\n\nfrom meltano.core.project import... | diff --git a/src/meltano/core/settings_service.py b/src/meltano/core/settings_service.py
index f749ddd360..1d0d49566a 100644
--- a/src/meltano/core/settings_service.py
+++ b/src/meltano/core/settings_service.py
@@ -360,6 +360,9 @@ def get_with_metadata( # noqa: WPS210, WPS615
env=expandable_env,
... |
pex-tool__pex-1972 | venv_dir calculation doesn't correctly handle PEX_PYTHON_PATH with symlinks.
I noticed a bug in the variables.venv_dir hash computation. If PEX_PYTHON_PATH has the path of a symlinked interpreter that interpreter value isn't added to the hash of the venv_dir. This can cause collisions in which interpreter is used to re... | [
{
"content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n# Due to the PEX_ properties, disable checkstyle.\n# checkstyle: noqa\n\nfrom __future__ import absolute_import\n\nimport hashlib\nimport json\nimport os\nimport r... | [
{
"content": "# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n# Due to the PEX_ properties, disable checkstyle.\n# checkstyle: noqa\n\nfrom __future__ import absolute_import\n\nimport hashlib\nimport json\nimport os\nimport r... | diff --git a/pex/variables.py b/pex/variables.py
index 54cf4ec9b..5212203a0 100644
--- a/pex/variables.py
+++ b/pex/variables.py
@@ -765,7 +765,9 @@ def add_pex_path_items(pexes):
if (
not ENV.PEX_PYTHON_PATH
or interpreter_binary.startswith(ENV.PEX_PYTHON_PATH)
- or os.pat... |
pyca__cryptography-480 | Use typedef ... *FOO_PTR; where appropriate.
So that FFI knows that the underlying type is opaque but that this is a pointer.
This makes `ffi.typeof` work correctly on bindings where functions take opaque typedef pointers such as some of the `ENGINE_` stuff.
See here for an example of it going wrong https://gist.gith... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, so... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, so... | diff --git a/cryptography/hazmat/bindings/openssl/engine.py b/cryptography/hazmat/bindings/openssl/engine.py
index 390bfde14c40..77118e8170b9 100644
--- a/cryptography/hazmat/bindings/openssl/engine.py
+++ b/cryptography/hazmat/bindings/openssl/engine.py
@@ -24,11 +24,11 @@
typedef ... DH_METHOD;
typedef ... RAND_MET... |
ivy-llc__ivy-19179 | column_stack
| [
{
"content": "# local\nimport ivy\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n handle_jax_dtype,\n)\nfrom ivy.functional.frontends.jax.numpy import promote_types_of_jax_inputs\n\n\n@to_ivy_arrays_and_back\ndef clip(a, a_min=None, a_max=None, out=None):\n ivy.util... | [
{
"content": "# local\nimport ivy\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n handle_jax_dtype,\n)\nfrom ivy.functional.frontends.jax.numpy import promote_types_of_jax_inputs\n\n\n@to_ivy_arrays_and_back\ndef clip(a, a_min=None, a_max=None, out=None):\n ivy.util... | diff --git a/ivy/functional/frontends/jax/numpy/manipulations.py b/ivy/functional/frontends/jax/numpy/manipulations.py
index fe6a8363ad475..9f412a7b5462d 100644
--- a/ivy/functional/frontends/jax/numpy/manipulations.py
+++ b/ivy/functional/frontends/jax/numpy/manipulations.py
@@ -270,6 +270,16 @@ def row_stack(tup):
... |
aws__aws-cli-688 | Multipart COPY operation fails when source filename contains + character
If you perform a bucket -> bucket cp or sync operation and one of the filenames in the source bucket contains a `+` character, you get this error:
```
ClientError: A client error (NoSuchKey) occurred when calling the UploadPartCopy operation: The... | [
{
"content": "import os\nimport sys\nimport time\nfrom functools import partial\nimport hashlib\n\nfrom dateutil.parser import parse\nfrom dateutil.tz import tzlocal\n\nfrom botocore.compat import quote\nfrom awscli.customizations.s3.utils import find_bucket_key, \\\n check_etag, check_error, operate, un... | [
{
"content": "import os\nimport sys\nimport time\nfrom functools import partial\nimport hashlib\n\nfrom dateutil.parser import parse\nfrom dateutil.tz import tzlocal\n\nfrom botocore.compat import quote\nfrom awscli.customizations.s3.utils import find_bucket_key, \\\n check_etag, check_error, operate, un... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 92e85e87f3a4..0ad6c6db1b37 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -5,6 +5,9 @@ CHANGELOG
Next Release (TBD)
==================
+* bugfix:``aws s3``: Fix issue when copying objects using
+ ``aws s3 cp`` with key names containing ``+`` characters
+ (`issue... |
svthalia__concrexit-1513 | URL's from Events API are not always full URL's
### Describe the bug
The `google_maps_url` from the Events API is not always a full URL.
### How to reproduce
Steps to reproduce the behaviour:
1. On staging, go to `https://staging.thalia.nu/api/v1/events/147/` and see that the `google_maps_url` is not a full URL b... | [
{
"content": "\"\"\"Provides various utilities that are useful across the project.\"\"\"\nimport datetime\nimport hmac\nfrom base64 import urlsafe_b64decode, urlsafe_b64encode\nfrom collections import namedtuple\nfrom _sha1 import sha1\n\nfrom django.conf import settings\nfrom django.template.defaultfilters imp... | [
{
"content": "\"\"\"Provides various utilities that are useful across the project.\"\"\"\nimport datetime\nimport hmac\nfrom base64 import urlsafe_b64decode, urlsafe_b64encode\nfrom collections import namedtuple\nfrom _sha1 import sha1\n\nfrom django.conf import settings\nfrom django.template.defaultfilters imp... | diff --git a/website/utils/snippets.py b/website/utils/snippets.py
index 9c67485a8..651008823 100644
--- a/website/utils/snippets.py
+++ b/website/utils/snippets.py
@@ -43,9 +43,9 @@ def datetime_to_lectureyear(date):
def create_google_maps_url(location, zoom, size):
if location.lower().strip() == "online":
- ... |
bentoml__BentoML-1352 | bentoml retrieve fails after upgrading to 0.10.1
**Describe the bug**
I first upgraded my yatai-service from 0.9.2 to 0.10.1.
Then upgraded my traning pipeline to 0.10.1 - It worked flawlessly and stored newer versions of Model into S3 storage.
I then proceeded to build my BentoService via a custom Docker build.
No... | [
{
"content": "# Copyright 2019 Atalaya Tech, 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 2019 Atalaya Tech, 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/.github/workflows/ci.yml b/.github/workflows/ci.yml
index eaf31e169ce..de53be2f436 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -306,3 +306,32 @@ jobs:
run: ./ci/yatai_server_integration_tests.sh
- name: Upload test coverage to Codecov
uses: codecov/codec... |
dmlc__dgl-674 | Runtime error R-GCN: Expected argument Long; but got CUDAType
## 🐛 Bug
While running the rgcn.py given in the examples pytorch section I am getting this runtime error
`RuntimeError: Expected tensor for argument #1 'indices' to have scalar type Long; but got CUDAType instead (while checking arguments for embedding)... | [
{
"content": "\"\"\"\nModeling Relational Data with Graph Convolutional Networks\nPaper: https://arxiv.org/abs/1703.06103\nCode: https://github.com/MichSchli/RelationPrediction\n\nDifference compared to MichSchli/RelationPrediction\n* report raw metrics instead of filtered metrics\n\"\"\"\n\nimport argparse\nim... | [
{
"content": "\"\"\"\nModeling Relational Data with Graph Convolutional Networks\nPaper: https://arxiv.org/abs/1703.06103\nCode: https://github.com/MichSchli/RelationPrediction\n\nDifference compared to MichSchli/RelationPrediction\n* report raw metrics instead of filtered metrics\n\"\"\"\n\nimport argparse\nim... | diff --git a/examples/pytorch/rgcn/link_predict.py b/examples/pytorch/rgcn/link_predict.py
index aa8aa728d039..62cacce926a7 100644
--- a/examples/pytorch/rgcn/link_predict.py
+++ b/examples/pytorch/rgcn/link_predict.py
@@ -148,7 +148,7 @@ def main(args):
print("Done edge sampling")
# set node/edge f... |
Miserlou__Zappa-938 | Response is not JSON serializable w/ Python 3.6, Flask, CORS=true, binary_support=false
## Steps to Reproduce
1. Setup a python 3.6 virtual env & activate
2. pip install flask zappa
3. Create main.py like this:
```
import json
from flask import Flask, Response
app = Flask(__name__)
@app.route('/jsonobj')
d... | [
{
"content": "from __future__ import unicode_literals\n\nimport base64\nimport boto3\nimport collections\nimport datetime\nimport importlib\nimport inspect\nimport json\nimport logging\nimport os\nimport sys\nimport traceback\nimport zipfile\n\nfrom builtins import str\nfrom werkzeug.wrappers import Response\n\... | [
{
"content": "from __future__ import unicode_literals\n\nimport base64\nimport boto3\nimport collections\nimport datetime\nimport importlib\nimport inspect\nimport json\nimport logging\nimport os\nimport sys\nimport traceback\nimport zipfile\n\nfrom builtins import str\nfrom werkzeug.wrappers import Response\n\... | diff --git a/zappa/handler.py b/zappa/handler.py
index 823ea6f51..5fd638306 100644
--- a/zappa/handler.py
+++ b/zappa/handler.py
@@ -445,7 +445,7 @@ def handler(self, event, context):
else:
zappa_returndict['body'] = response.data
else:
- ... |
paperless-ngx__paperless-ngx-849 | [BUG] Regression in docker build
### Description
I cannot locally build the docker image.
The error message is
```
FROM ghcr.io/${REPO}/builder/jbig2enc:${JBIG2ENC_VERSION} as jbig2enc-builder
invalid reference format
```
I did a git bisect and this came out:
```
6c70db31bd78d166f06ace734761824239aeb3e4 is ... | [
{
"content": "#!/usr/bin/env python3\n\"\"\"\nThis is a helper script for the mutli-stage Docker image builder.\nIt provides a single point of configuration for package version control.\nThe output JSON object is used by the CI workflow to determine what versions\nto build and pull into the final Docker image.\... | [
{
"content": "#!/usr/bin/env python3\n\"\"\"\nThis is a helper script for the mutli-stage Docker image builder.\nIt provides a single point of configuration for package version control.\nThe output JSON object is used by the CI workflow to determine what versions\nto build and pull into the final Docker image.\... | diff --git a/.github/scripts/get-build-json.py b/.github/scripts/get-build-json.py
index 42c37d695bb..42299abae57 100755
--- a/.github/scripts/get-build-json.py
+++ b/.github/scripts/get-build-json.py
@@ -53,10 +53,7 @@ def _main():
git_tag = None
extra_config = {}
- if args.package == "frontend":
- ... |
e-valuation__EvaP-844 | Fix formset for creating questionnaire
When creating a new questionnaire, the formset does not have an `add another` link and the remove checkbox is not replaced by a `remove` link.
Fix formset for creating questionnaire
When creating a new questionnaire, the formset does not have an `add another` link and the remove ... | [
{
"content": "import csv\nimport datetime\nimport random\nfrom collections import OrderedDict, defaultdict\n\nfrom django.contrib import messages\nfrom django.core.exceptions import PermissionDenied, SuspiciousOperation\nfrom django.db import transaction, IntegrityError\nfrom django.db.models import Max, Count,... | [
{
"content": "import csv\nimport datetime\nimport random\nfrom collections import OrderedDict, defaultdict\n\nfrom django.contrib import messages\nfrom django.core.exceptions import PermissionDenied, SuspiciousOperation\nfrom django.db import transaction, IntegrityError\nfrom django.db.models import Max, Count,... | diff --git a/evap/staff/views.py b/evap/staff/views.py
index 01511e9dfa..71c18988e2 100644
--- a/evap/staff/views.py
+++ b/evap/staff/views.py
@@ -783,7 +783,7 @@ def questionnaire_create(request):
messages.success(request, _("Successfully created questionnaire."))
return redirect('staff:questionnaire... |
kubeflow__pipelines-1399 | Bug: Dataset not found in US
I'm getting an error while running the BigQuery kfp component to export some data from BQ to GCS. It says: `google.api_core.exceptions.NotFound: 404 Not found: xxx was not found in location US` which is correct, because the dataset is in EU, but I couldn't find any way to change the default... | [
{
"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/component_sdk/python/kfp_component/google/bigquery/_query.py b/component_sdk/python/kfp_component/google/bigquery/_query.py
index 9559dc058f5..bf147d7b37c 100644
--- a/component_sdk/python/kfp_component/google/bigquery/_query.py
+++ b/component_sdk/python/kfp_component/google/bigquery/_query.py
@@ -43,7 +4... |
getsentry__sentry-66877 | Incorrect data in events when adding large integers to context data
Sentry is treating big values differently in tags and context causing some values to be in correct after event processing. Below is an example event I sent using the ruby SDK, the same behaviour happens in Python as well:
Script:
```
::Sentry.in... | [
{
"content": "from __future__ import annotations\n\nimport string\nfrom typing import ClassVar, TypeVar\n\nfrom django.utils.encoding import force_str\n\nfrom sentry.interfaces.base import Interface\nfrom sentry.utils.json import prune_empty_keys\nfrom sentry.utils.safe import get_path\n\n__all__ = (\"Contexts\... | [
{
"content": "from __future__ import annotations\n\nimport string\nfrom typing import ClassVar, TypeVar\n\nfrom django.utils.encoding import force_str\n\nfrom sentry.interfaces.base import Interface\nfrom sentry.utils.json import prune_empty_keys\nfrom sentry.utils.safe import get_path\n\n__all__ = (\"Contexts\... | diff --git a/src/sentry/interfaces/contexts.py b/src/sentry/interfaces/contexts.py
index ca498b72202d4e..3fd028a41ad620 100644
--- a/src/sentry/interfaces/contexts.py
+++ b/src/sentry/interfaces/contexts.py
@@ -93,6 +93,9 @@ def __init__(self, alias, data):
# we still want to display the info the UI
... |
pytorch__vision-5844 | INaturalist download is broken for version="2021_train"
*Originally reported in https://discuss.pytorch.org/t/inaturalist-download-crashes-towards-the-end/149006*
> *INaturalist* download proceeds fine up to the end, then crashes with this error:
>
> ```py
> File "/scratch/user/myenvs/env/lib/python3.8/site-pack... | [
{
"content": "import os\nimport os.path\nfrom typing import Any, Callable, Dict, List, Optional, Union, Tuple\n\nfrom PIL import Image\n\nfrom .utils import download_and_extract_archive, verify_str_arg\nfrom .vision import VisionDataset\n\nCATEGORIES_2021 = [\"kingdom\", \"phylum\", \"class\", \"order\", \"fami... | [
{
"content": "import os\nimport os.path\nfrom typing import Any, Callable, Dict, List, Optional, Union, Tuple\n\nfrom PIL import Image\n\nfrom .utils import download_and_extract_archive, verify_str_arg\nfrom .vision import VisionDataset\n\nCATEGORIES_2021 = [\"kingdom\", \"phylum\", \"class\", \"order\", \"fami... | diff --git a/torchvision/datasets/inaturalist.py b/torchvision/datasets/inaturalist.py
index b409cc79f08..7d5fc279820 100644
--- a/torchvision/datasets/inaturalist.py
+++ b/torchvision/datasets/inaturalist.py
@@ -22,7 +22,7 @@
"2017": "7c784ea5e424efaec655bd392f87301f",
"2018": "b1c6952ce38f31868cc50ea72d066c... |
ansible-collections__community.general-2003 | Proxmox inventory plugin fails to parse with auto plugin: VM-Template is not a known host nor group
### Summary
When using `community.general.proxmox` as an inventory plugin to connect to a proxmox cluster, ansible crashes with an error `[WARNING]: * Failed to parse /home/user/Documents/work/customer/proxmox_invent... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (C) 2016 Guido Günther <agx@sigxcpu.org>, Daniel Lobato Garcia <dlobatog@redhat.com>\n# Copyright (c) 2018 Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\nfrom __future__ import (absolute_import, di... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (C) 2016 Guido Günther <agx@sigxcpu.org>, Daniel Lobato Garcia <dlobatog@redhat.com>\n# Copyright (c) 2018 Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\nfrom __future__ import (absolute_import, di... | diff --git a/changelogs/fragments/1991-proxmox-inventory-fix-template-in-pool.yml b/changelogs/fragments/1991-proxmox-inventory-fix-template-in-pool.yml
new file mode 100644
index 00000000000..90a438dddf4
--- /dev/null
+++ b/changelogs/fragments/1991-proxmox-inventory-fix-template-in-pool.yml
@@ -0,0 +1,3 @@
+---
+bugf... |
open-telemetry__opentelemetry-python-contrib-823 | urllib instrumentation fails for local file access
When reading local files the status code is not specified and is None. This isn't handled by the instrumentation and causes an exception.
https://github.com/open-telemetry/opentelemetry-python-contrib/blob/444e0a13127304d3a04ccd44445b2e6caed3f770/instrumentation/ope... | [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 070a53c38f..e84c19c53b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -64,6 +64,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
+- `opentelemetry-instrumentation-urllib` Fixed an error on unexpected status values.
+ ([... |
interlegis__sapl-1191 | Integração do SAPL 3.1 e Portal Modelo
| [
{
"content": "from compressor.utils import get_class\nfrom django import template\n\nfrom sapl.base.models import AppConfig\nfrom sapl.materia.models import DocumentoAcessorio, MateriaLegislativa\nfrom sapl.norma.models import NormaJuridica\nfrom sapl.parlamentares.models import Filiacao\n\nregister = template.... | [
{
"content": "from compressor.utils import get_class\nfrom django import template\n\nfrom sapl.base.models import AppConfig\nfrom sapl.materia.models import DocumentoAcessorio, MateriaLegislativa\nfrom sapl.norma.models import NormaJuridica\nfrom sapl.parlamentares.models import Filiacao\n\nregister = template.... | diff --git a/sapl/base/templatetags/common_tags.py b/sapl/base/templatetags/common_tags.py
index 419899632..eb53629a0 100644
--- a/sapl/base/templatetags/common_tags.py
+++ b/sapl/base/templatetags/common_tags.py
@@ -117,6 +117,23 @@ def str2intabs(value):
except:
return ''
+@register.filter
+def has_if... |
modin-project__modin-472 | Modin not working on latest ray master
With
```python
import ray
import modin.pandas as pd
frame_data = [1, 2, 3, 4, 5, 6, 7, 8]
frame = pd.DataFrame(frame_data)
assert frame.sum().squeeze() == sum(frame_data)
```
we get the following error:
```
Traceback (most recent call last):
File "python/ray/tes... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\n# TODO: In the future `set_option` or similar needs to run on every node\n# in order to keep all pandas instances across nodes consistent\nimport pandas\nfrom pandas import (\n eval... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\n# TODO: In the future `set_option` or similar needs to run on every node\n# in order to keep all pandas instances across nodes consistent\nimport pandas\nfrom pandas import (\n eval... | diff --git a/modin/pandas/__init__.py b/modin/pandas/__init__.py
index 79534025737..01c44b511ac 100644
--- a/modin/pandas/__init__.py
+++ b/modin/pandas/__init__.py
@@ -118,9 +118,7 @@ def initialize_ray():
if object_store_memory == 0:
object_store_memory = None
ray.init(
- ... |
psf__black-3470 | Extra newlines added before function with fmt skip on decorator
I've just tested this out with a medium-sized codebase. All as expected apart from this one issue with a comment at the end of a function getting 2 newlines added above it. Removing `@decorator1` stops the comment getting moved, as does removing `#... | [
{
"content": "import itertools\nimport sys\nfrom dataclasses import dataclass, field\nfrom typing import (\n Callable,\n Dict,\n Iterator,\n List,\n Optional,\n Sequence,\n Tuple,\n TypeVar,\n cast,\n)\n\nfrom black.brackets import DOT_PRIORITY, BracketTracker\nfrom black.mode import ... | [
{
"content": "import itertools\nimport sys\nfrom dataclasses import dataclass, field\nfrom typing import (\n Callable,\n Dict,\n Iterator,\n List,\n Optional,\n Sequence,\n Tuple,\n TypeVar,\n cast,\n)\n\nfrom black.brackets import DOT_PRIORITY, BracketTracker\nfrom black.mode import ... | diff --git a/CHANGES.md b/CHANGES.md
index e2c5adfda35..c07d81d1320 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -23,6 +23,8 @@
regular and f-strings start with an empty span (#3463)
- Fix a crash in preview advanced string processing where a standalone comment is placed
before a dict's value (#3469)
+- Fix an is... |
tornadoweb__tornado-3105 | Test failures with python 3.11
Fedora is starting to test building packages with python 3.11.0a1. tornado fails with:
```
======================================================================
ERROR: test_future_error (tornado.test.concurrent_test.GeneratorClientTest)
----------------------------------------------... | [
{
"content": "#\n# Copyright 2009 Facebook\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "#\n# Copyright 2009 Facebook\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# 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/.github/workflows/test.yml b/.github/workflows/test.yml
index f41494303f..0387ac2928 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -44,6 +44,8 @@ jobs:
tox_env: py39-full
- python: '3.10'
tox_env: py310-full
+ - python: '3.11.0-alp... |
WordPress__openverse-api-990 | Add nginx to the API multi-stage Dockerfile
## Problem
<!-- Describe a problem solved by this feature; or delete the section entirely. -->
For the ECS deployment of the frontend, we need to be able to deploy a Django and an Nginx image. To reduce the time it takes for the Django image to go from running to ready and ... | [
{
"content": "\"\"\"\nDjango settings for catalog project.\n\nGenerated by 'django-admin startproject' using Django 2.0.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/2.0/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/2... | [
{
"content": "\"\"\"\nDjango settings for catalog project.\n\nGenerated by 'django-admin startproject' using Django 2.0.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/2.0/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/2... | diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 6a1607fe8..adbbbd52a 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -74,6 +74,52 @@ jobs:
name: ${{ matrix.image }}
path: /tmp/${{ matrix.image }}.tar
+ build-nginx:
+ # This requires ... |
holoviz__holoviews-1983 | Bokeh server warning message
the code server = renderer.app(dmap, show=True, new_window=True)
results in a warning message
WARNING:root:BokehServerWidgets24371: Setting non-parameter attribute display_options={'fps': 20} using a mechanism intended only for parameters
| [
{
"content": "from __future__ import unicode_literals\n\nimport math\nimport json\nfrom functools import partial\n\nimport param\nimport numpy as np\nfrom bokeh.models.widgets import Select, Slider, AutocompleteInput, TextInput, Div\nfrom bokeh.layouts import widgetbox, row, column\n\nfrom ...core import Store,... | [
{
"content": "from __future__ import unicode_literals\n\nimport math\nimport json\nfrom functools import partial\n\nimport param\nimport numpy as np\nfrom bokeh.models.widgets import Select, Slider, AutocompleteInput, TextInput, Div\nfrom bokeh.layouts import widgetbox, row, column\n\nfrom ...core import Store,... | diff --git a/holoviews/plotting/bokeh/widgets.py b/holoviews/plotting/bokeh/widgets.py
index 96ca05ec6b..270f377e62 100644
--- a/holoviews/plotting/bokeh/widgets.py
+++ b/holoviews/plotting/bokeh/widgets.py
@@ -25,6 +25,9 @@ class BokehServerWidgets(param.Parameterized):
and dropdown widgets letting you select non... |
scikit-image__scikit-image-1498 | skimage.io.imread returns incorrect dimensions (according to docs)
See here: http://stackoverflow.com/questions/30088841
Importing a TIFF image using skimage.io.imread returns an array with shape (3,M,N) instead of (M,N,3). This breaks the flatten and as_grey features. The results are the same calling `imread` with `p... | [
{
"content": "from io import BytesIO\nimport warnings\n\nimport numpy as np\nimport six\n\nfrom ..io.manage_plugins import call_plugin\nfrom ..color import rgb2grey\nfrom .util import file_or_url_context\nfrom ..exposure import is_low_contrast\nfrom .._shared._warnings import all_warnings\n\n\n__all__ = ['imrea... | [
{
"content": "from io import BytesIO\nimport warnings\n\nimport numpy as np\nimport six\n\nfrom ..io.manage_plugins import call_plugin\nfrom ..color import rgb2grey\nfrom .util import file_or_url_context\nfrom ..exposure import is_low_contrast\nfrom .._shared._warnings import all_warnings\n\n\n__all__ = ['imrea... | diff --git a/skimage/io/_io.py b/skimage/io/_io.py
index 2f957ac2b14..8dbc3600a5a 100644
--- a/skimage/io/_io.py
+++ b/skimage/io/_io.py
@@ -53,8 +53,16 @@ def imread(fname, as_grey=False, plugin=None, flatten=None,
with file_or_url_context(fname) as fname:
img = call_plugin('imread', fname, plugin=plugin... |
PrefectHQ__prefect-5804 | LocalDaskExecutor(scheduler="threads") does not fail when task has timeout
## Description
<!-- A clear description of the bug -->
`LocalDaskExecutor(scheduler="threads")` does not fail when task has timeout.
## Reproduction
<!-- A minimal example that exhibits the behavior. -->
```python
import os
os.environ... | [
{
"content": "import cloudpickle\nimport contextlib\nimport copy\nimport itertools\nimport logging\nimport multiprocessing\nimport os\nimport signal\nimport subprocess\nimport sys\nimport threading\nimport warnings\nfrom concurrent.futures import ThreadPoolExecutor\nfrom concurrent.futures import TimeoutError a... | [
{
"content": "import cloudpickle\nimport contextlib\nimport copy\nimport itertools\nimport logging\nimport multiprocessing\nimport os\nimport signal\nimport subprocess\nimport sys\nimport threading\nimport warnings\nfrom concurrent.futures import ThreadPoolExecutor\nfrom concurrent.futures import TimeoutError a... | diff --git a/changes/pr5804.yaml b/changes/pr5804.yaml
new file mode 100644
index 000000000000..63c67f987663
--- /dev/null
+++ b/changes/pr5804.yaml
@@ -0,0 +1,3 @@
+
+fix:
+ - "Fix bug where Prefect signals in tasks were not reraised by the process-based timeout handler - [#5804](https://github.com/PrefectHQ/prefect/... |
bokeh__bokeh-8145 | Span location cannot accept datetime whereas Labels can deal with it.
OK I hope this is an easy one. I'm working with spans and labels for the spans and I see that the Span object requires an Integer location meaning you have to do a little bit of conversion to your datetime data whereas Labels can accept a datetime ob... | [
{
"content": "''' Renderers for various kinds of annotations that can be added to\nBokeh plots\n\n'''\nfrom __future__ import absolute_import\n\nfrom six import string_types\n\nfrom ..core.enums import (AngleUnits, Dimension, FontStyle, LegendClickPolicy, LegendLocation,\n Orientation, ... | [
{
"content": "''' Renderers for various kinds of annotations that can be added to\nBokeh plots\n\n'''\nfrom __future__ import absolute_import\n\nfrom six import string_types\n\nfrom ..core.enums import (AngleUnits, Dimension, FontStyle, LegendClickPolicy, LegendLocation,\n Orientation, ... | diff --git a/bokeh/models/annotations.py b/bokeh/models/annotations.py
index 66d1bfec1c9..7544e5587da 100644
--- a/bokeh/models/annotations.py
+++ b/bokeh/models/annotations.py
@@ -849,7 +849,10 @@ class Span(Annotation):
location = Float(help="""
The location of the span, along ``dimension``.
- """)
+
+... |
fonttools__fonttools-2439 | ReemKufiInk crashes pyftsubset
```
pyftsubset --text=duck --output-file=/tmp/reem.otf ReemKufiInk-Bold.otf
Traceback (most recent call last):
File "/tmp/venv/bin/pyftsubset", line 8, in <module>
sys.exit(main())
File "/tmp/venv/lib/python3.9/site-packages/fontTools/misc/loggingTools.py", line 372, in wra... | [
{
"content": "from fontTools.ttLib.tables import otTables as ot\nfrom .table_builder import TableUnbuilder\n\n\ndef unbuildColrV1(layerV1List, baseGlyphV1List):\n unbuilder = LayerListUnbuilder(layerV1List.Paint)\n return {\n rec.BaseGlyph: unbuilder.unbuildPaint(rec.Paint)\n for rec in base... | [
{
"content": "from fontTools.ttLib.tables import otTables as ot\nfrom .table_builder import TableUnbuilder\n\n\ndef unbuildColrV1(layerList, baseGlyphList):\n layers = []\n if layerList:\n layers = layerList.Paint\n unbuilder = LayerListUnbuilder(layers)\n return {\n rec.BaseGlyph: unb... | diff --git a/Lib/fontTools/colorLib/unbuilder.py b/Lib/fontTools/colorLib/unbuilder.py
index 0d10cff402..fa229b099b 100644
--- a/Lib/fontTools/colorLib/unbuilder.py
+++ b/Lib/fontTools/colorLib/unbuilder.py
@@ -2,11 +2,14 @@
from .table_builder import TableUnbuilder
-def unbuildColrV1(layerV1List, baseGlyphV1List)... |
keras-team__keras-6460 | CSVLogger doesn't handle properly a logs' value with str type
Suppose we have `logs['foo'] = 'bar'`.
`CSVLogger` will output `"[b, a, r]"` instead of `bar` in `foo` column.
I'm currently working with the fix.
| [
{
"content": "from __future__ import absolute_import\nfrom __future__ import print_function\n\nimport os\nimport csv\nimport six\n\nimport numpy as np\nimport time\nimport json\nimport warnings\n\nfrom collections import deque\nfrom collections import OrderedDict\nfrom collections import Iterable\nfrom .utils.g... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import print_function\n\nimport os\nimport csv\nimport six\n\nimport numpy as np\nimport time\nimport json\nimport warnings\n\nfrom collections import deque\nfrom collections import OrderedDict\nfrom collections import Iterable\nfrom .utils.g... | diff --git a/keras/callbacks.py b/keras/callbacks.py
index 7b0cec0b5c9a..3c7b9cb72900 100644
--- a/keras/callbacks.py
+++ b/keras/callbacks.py
@@ -879,7 +879,9 @@ def on_epoch_end(self, epoch, logs=None):
def handle_value(k):
is_zero_dim_ndarray = isinstance(k, np.ndarray) and k.ndim == 0
- ... |
pallets__click-1455 | Use difflib for potential suggestions in cli error messages
Currently click only does startswith match at https://github.com/pallets/click/blob/6c454c88b76f7a0be396dba72513bd316cd141e6/click/parser.py#L328-L329 so a typo like using `--boun` suggests `--bount` but using `--bound` doesn't make any suggestions. Using [dif... | [
{
"content": "\"\"\"\nThis module started out as largely a copy paste from the stdlib's\noptparse module with the features removed that we do not need from\noptparse because we implement them in Click on a higher level (for\ninstance type handling, help formatting and a lot more).\n\nThe plan is to remove more ... | [
{
"content": "\"\"\"\nThis module started out as largely a copy paste from the stdlib's\noptparse module with the features removed that we do not need from\noptparse because we implement them in Click on a higher level (for\ninstance type handling, help formatting and a lot more).\n\nThe plan is to remove more ... | diff --git a/CHANGES.rst b/CHANGES.rst
index d731f9fe3..cc6a74494 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -84,6 +84,8 @@ Unreleased
the ``-`` value match non-testing behavior. :issue:`1064`
- When creating a ``Group``, allow passing a list of commands instead
of a dict. :issue:`1339`
+- When a long... |
e2nIEE__pandapower-2156 | [bug] Wrong algorithm "id" for fdbx and fdxb (pypower fast decoupled)
### Bug report checklis
- [X] Searched the [issues page](https://github.com/e2nIEE/pandapower/issues) for similar reports
- [X] Read the relevant sections of the [documentation](https://pandapower.readthedocs.io/en/latest/about.html)
- [X] Browse ... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright 1996-2015 PSERC. All rights reserved.\n# Use of this source code is governed by a BSD-style\n# license that can be found in the LICENSE file.\n\n# Copyright (c) 2016-2023 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy Syst... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright 1996-2015 PSERC. All rights reserved.\n# Use of this source code is governed by a BSD-style\n# license that can be found in the LICENSE file.\n\n# Copyright (c) 2016-2023 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy Syst... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index bff6a3fe0..f1f3785d6 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -35,6 +35,7 @@ Change Log
- [ADDED] option to use a second tap changer for the trafo element
- [CHANGED] parameters of function merge_internal_net_and_equivalent_external_net()
- [FIXED] :code:`con... |
bokeh__bokeh-6344 | Scale/Range incompatibility in examples/models/server/population.py
in master:
Scale/Range incompatibility in examples/models/server/population.py
| [
{
"content": "from __future__ import print_function\n\nfrom math import pi\n\nfrom bokeh.client import push_session\nfrom bokeh.document import Document\nfrom bokeh.models.glyphs import Line, HBar\nfrom bokeh.models import (Plot, ColumnDataSource, DataRange1d, FactorRange,\n LinearAxis,... | [
{
"content": "from __future__ import print_function\n\nfrom math import pi\n\nfrom bokeh.client import push_session\nfrom bokeh.document import Document\nfrom bokeh.models.glyphs import Line, HBar\nfrom bokeh.models import (Plot, ColumnDataSource, DataRange1d, FactorRange,\n LinearAxis,... | diff --git a/examples/models/server/population.py b/examples/models/server/population.py
index 756477956a9..933c5fe03b0 100644
--- a/examples/models/server/population.py
+++ b/examples/models/server/population.py
@@ -56,9 +56,9 @@ def pyramid():
def population():
xdr = FactorRange(factors=years)
ydr = DataRa... |
celery__celery-5587 | Group of Chains Exception/Error Propagation
## Checklist
- I'm running Celery 4.0.2
## Steps to reproduce
tasks.py
```
@shared_task
def add(x,y):
return x+y
@shared_task
def raising_exception():
raise RuntimeError("BLAH")
```
test.py
```
from celery import chord, group
from my_app.tasks impo... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"Task results/state and results for groups of tasks.\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nimport time\nfrom collections import OrderedDict, deque\nfrom contextlib import contextmanager\nfrom copy import copy\n\nfrom kombu.utils.objects im... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"Task results/state and results for groups of tasks.\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nimport time\nfrom collections import OrderedDict, deque\nfrom contextlib import contextmanager\nfrom copy import copy\n\nfrom kombu.utils.objects im... | diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 2b1c15691d5..c1e3ecbdf33 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -269,3 +269,4 @@ Artem Vasilyev, 2018/11/24
Victor Mireyev, 2018/12/13
Florian Chardin, 2018/10/23
Shady Rafehi, 2019/02/20
+Fabio Todaro, 2019/06/13
diff --git a/celery/result.py b... |
safe-global__safe-config-service-65 | Format JSON keys in camel case
Endpoints consumed by the clients should have the JSON keys in camel case. By having them camel case, it follows the formatting that we have in other services.
| [
{
"content": "\"\"\"\nDjango settings for safe_client_config_service project.\n\nGenerated by 'django-admin startproject' using Django 3.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.2/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djang... | [
{
"content": "\"\"\"\nDjango settings for safe_client_config_service project.\n\nGenerated by 'django-admin startproject' using Django 3.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.2/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djang... | diff --git a/.env.example b/.env.example
index 1bf9c36a..ff70a4b3 100644
--- a/.env.example
+++ b/.env.example
@@ -67,11 +67,6 @@ POSTGRES_PORT=5432
# This setting is intended for development. It will cause workers to be restarted whenever application code changes.
GUNICORN_WEB_RELOAD=false
-# REST Framework Defaul... |
Lightning-AI__pytorch-lightning-1091 | Update CHANGELOG for 0.7.x
## 🐛 Bug
<!-- A clear and concise description of what the bug is. -->
Updated CHANGELOG according to the reset changes (about last two weeks) especially deprecated items like `data_loader` or `xxxxx_end`
### Additional context
<!-- Add any other context about the problem here. --... | [
{
"content": "import traceback\nfrom functools import wraps\nimport warnings\n\n\ndef data_loader(fn):\n \"\"\"Decorator to make any fx with this use the lazy property.\n\n :param fn:\n :return:\n \"\"\"\n w = 'data_loader decorator deprecated in 0.7.0. Will remove 0.9.0'\n warnings.warn(w)\n\... | [
{
"content": "import traceback\nfrom functools import wraps\nimport warnings\n\n\ndef data_loader(fn):\n \"\"\"Decorator to make any fx with this use the lazy property.\n\n Warnings:\n This decorator deprecated in v0.7.0 and it will be removed v0.9.0.\n \"\"\"\n warnings.warn('`data_loader` d... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index cdfeb15da7025..985accb595374 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,50 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
+## [unreleased] - YYYY-MM-D... |
koxudaxi__datamodel-code-generator-427 | Custom template directory is ignored for Enums
First of all, thanks for this great library, what a time saver ! :+1:
**Describe the bug**
If you pass a custom template directory through the cli, this directory is ignored while generating enums.
**To Reproduce**
Simply lauch the cli with `--custom-template-dir`... | [
{
"content": "import enum as _enum\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom pathlib import Path\nfrom typing import (\n Any,\n Callable,\n DefaultDict,\n Dict,\n Generator,\n Iterable,\n List,\n Mapping,\n Optional,\n Sequence,\n Set,\n ... | [
{
"content": "import enum as _enum\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom pathlib import Path\nfrom typing import (\n Any,\n Callable,\n DefaultDict,\n Dict,\n Generator,\n Iterable,\n List,\n Mapping,\n Optional,\n Sequence,\n Set,\n ... | diff --git a/datamodel_code_generator/parser/jsonschema.py b/datamodel_code_generator/parser/jsonschema.py
index 739874907..32c933ad6 100644
--- a/datamodel_code_generator/parser/jsonschema.py
+++ b/datamodel_code_generator/parser/jsonschema.py
@@ -877,6 +877,7 @@ def create_enum(reference_: Reference) -> DataType:
... |
facebookresearch__habitat-lab-132 | Recursive directory lookup can take long
This [line](https://github.com/facebookresearch/habitat-api/blob/master/setup.py#L38) looks for requirements.txt under all directories, this can be especially costly if you have data directories.
One way to get around this is to only look at specific set of directories and i... | [
{
"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 glob\nimport os.path\nimport sys\n\nimport setuptools\nfrom setuptools.command.develo... | [
{
"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 glob\nimport os.path\nimport sys\n\nimport setuptools\nfrom setuptools.command.develo... | diff --git a/setup.py b/setup.py
index 655e0cb5b0..b6cc4182a3 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,9 @@
DEFAULT_EXCLUSION = ["test", "examples"]
FULL_REQUIREMENTS = set()
# collect requirements.txt file in all subdirectories
-for file_name in glob.glob("**/requirements.txt", recursive=True):
+for file_n... |
modin-project__modin-1595 | TypeError: object of type 'slice' has no len()
### System information
- **OS Platform and Distribution (e.g., Linux Ubuntu 18.04)**:
- **Modin version** (`modin.__version__`): 0.7.3
- **Python version**: 3.7
- **Code we can use to reproduce**: The code is available on [google collab](https://colab.research.google.c... | [
{
"content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ... | [
{
"content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ... | diff --git a/modin/pandas/indexing.py b/modin/pandas/indexing.py
index 48a74d4bb62..f728f3d9d5a 100644
--- a/modin/pandas/indexing.py
+++ b/modin/pandas/indexing.py
@@ -247,6 +247,7 @@ def __getitem__(self, key):
result.index = result.index.droplevel(list(range(len(row_loc))))
if (
... |
cltk__cltk-938 | Add "Gorman Trees" corpus for Greek
https://github.com/perseids-publications/gorman-trees = https://perseids-publications.github.io/gorman-trees/
~500,000 tokens of parsed Ancient Greek.
| [
{
"content": "\"\"\"Greek language corpora available for download or loading locally.\nAll remote corpora hosted by github on the cltk organization account, eg:\n'http://github.com/cltk' + name\n\"\"\"\n\nGREEK_CORPORA = [\n {'name': 'greek_software_tlgu',\n 'origin': 'https://github.com/cltk/greek_softw... | [
{
"content": "\"\"\"Greek language corpora available for download or loading locally.\nAll remote corpora hosted by github on the cltk organization account, eg:\n'http://github.com/cltk' + name\n\"\"\"\n\nGREEK_CORPORA = [\n {'name': 'greek_software_tlgu',\n 'origin': 'https://github.com/cltk/greek_softw... | diff --git a/cltk/corpus/greek/corpora.py b/cltk/corpus/greek/corpora.py
index 471ce2a85..ecd922f5b 100644
--- a/cltk/corpus/greek/corpora.py
+++ b/cltk/corpus/greek/corpora.py
@@ -42,6 +42,12 @@
'name': 'greek_treebank_perseus',
'location': 'remote',
'type': 'treebank'},
+ {'encoding': 'utf-8',
+ ... |
microsoft__torchgeo-1921 | Add instructions on downloading the DeepGlobeLandCover dataset
### Issue
The [dataset](https://torchgeo.readthedocs.io/en/stable/api/datasets.html#torchgeo.datasets.DeepGlobeLandCover) docs state `The dataset that we use with a custom train/test split can be downloaded from Kaggle` - however this is a necessity as y... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\n\"\"\"DeepGlobe Land Cover Classification Challenge dataset.\"\"\"\n\nimport os\nfrom typing import Callable, Optional\n\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport torch\nfrom matplo... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\n\"\"\"DeepGlobe Land Cover Classification Challenge dataset.\"\"\"\n\nimport os\nfrom typing import Callable, Optional\n\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport torch\nfrom matplo... | diff --git a/torchgeo/datasets/deepglobelandcover.py b/torchgeo/datasets/deepglobelandcover.py
index 233c70cd049..c265321a339 100644
--- a/torchgeo/datasets/deepglobelandcover.py
+++ b/torchgeo/datasets/deepglobelandcover.py
@@ -62,8 +62,18 @@ class DeepGlobeLandCover(NonGeoDataset):
* https://arxiv.org/pdf/1805... |
sopel-irc__sopel-1552 | .dice denial of service
If I spam sopel with `.dice 0xff^0xff^0xff`, sopel's replies to arbitrary commands (e.g., .`version`) become indefinitely delayed.
.version: `Sopel v. 6.6.5 (Python 3.4.8) at commit: 824ae7484b9e04310079a27d4d6ec40edeafdfd1`
environment: gentoo, ran from source, no special configuration
... | [
{
"content": "# coding=utf-8\n# Copyright 2008, Sean B. Palmer, inamidst.com\n# Copyright © 2012, Elad Alfassa <elad@fedoraproject.org>\n# Copyright 2012-2015, Elsie Powell, http://embolalia.com\n#\n# Licensed under the Eiffel Forum License 2.\n\nfrom __future__ import unicode_literals, absolute_import, print_f... | [
{
"content": "# coding=utf-8\n# Copyright 2008, Sean B. Palmer, inamidst.com\n# Copyright © 2012, Elad Alfassa <elad@fedoraproject.org>\n# Copyright 2012-2015, Elsie Powell, http://embolalia.com\n#\n# Licensed under the Eiffel Forum License 2.\n\nfrom __future__ import unicode_literals, absolute_import, print_f... | diff --git a/sopel/bot.py b/sopel/bot.py
index 7509c48e0a..5994c21f0d 100644
--- a/sopel/bot.py
+++ b/sopel/bot.py
@@ -313,7 +313,7 @@ def say(self, text, recipient, max_messages=1):
elapsed = time.time() - self.stack[recipient_id][-1][0]
if elapsed < 3:
penalty = ... |
cloudtools__troposphere-457 | Elasticsearch Domain DomainName shouldn't be required
According to the CF documentation, `DomainName` isn't required: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html
| [
{
"content": "# Copyright (c) 2012-2015, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSProperty, AWSObject\nfrom .validators import boolean, integer, integer_range, positive_integer\n\nVALID_VOLUME_TYPES = ('standard', 'gp2', 'io1')\n\ntry:\n f... | [
{
"content": "# Copyright (c) 2012-2015, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSProperty, AWSObject\nfrom .validators import boolean, integer, integer_range, positive_integer\n\nVALID_VOLUME_TYPES = ('standard', 'gp2', 'io1')\n\ntry:\n f... | diff --git a/troposphere/elasticsearch.py b/troposphere/elasticsearch.py
index aa2ac1288..6bf39fbc4 100644
--- a/troposphere/elasticsearch.py
+++ b/troposphere/elasticsearch.py
@@ -61,7 +61,7 @@ class ElasticsearchDomain(AWSObject):
props = {
'AccessPolicies': (policytypes, False),
'AdvancedOptio... |
deepset-ai__haystack-5145 | PromptNode does't support 16k tokens.
**Describe the bug**
While gpt-3.5-turbo-16k support was added, PromptNode is still setting a token limit of 4096.
**Error message**
The prompt or the messages are too long (447 tokens). The length of the prompt or messages and the answer (30000 tokens) should be within the ma... | [
{
"content": "\"\"\"Utils for using OpenAI API\"\"\"\nimport os\nimport logging\nimport platform\nimport json\nfrom typing import Dict, Union, Tuple, Optional, List\nimport requests\nimport tenacity\nimport tiktoken\nfrom tiktoken.model import MODEL_TO_ENCODING, MODEL_PREFIX_TO_ENCODING\n\nfrom haystack.errors ... | [
{
"content": "\"\"\"Utils for using OpenAI API\"\"\"\nimport os\nimport logging\nimport platform\nimport json\nfrom typing import Dict, Union, Tuple, Optional, List\nimport requests\nimport tenacity\nimport tiktoken\nfrom tiktoken.model import MODEL_TO_ENCODING, MODEL_PREFIX_TO_ENCODING\n\nfrom haystack.errors ... | diff --git a/haystack/utils/openai_utils.py b/haystack/utils/openai_utils.py
index 82fb829b5a..19181acf52 100644
--- a/haystack/utils/openai_utils.py
+++ b/haystack/utils/openai_utils.py
@@ -84,6 +84,9 @@ def _openai_text_completion_tokenization_details(model_name: str):
if "text-davinci" in model_name:
... |
plone__Products.CMFPlone-3501 | Allow TinyMCE to be used in inline-mode
Inline-mode of TinyMCE (https://www.tiny.cloud/docs/demo/inline) is nice among other reasons because the edited text looks exactly the way as the saved result.
To enable it you could simply set `{"inline": "true"}` as the value in the field "Other settings" of the TinyMCE con... | [
{
"content": "from Acquisition import aq_inner\nfrom Acquisition import aq_parent\nfrom borg.localrole.interfaces import IFactoryTempFolder\nfrom plone.app.content.browser.interfaces import IFolderContentsView\nfrom plone.app.widgets.utils import get_relateditems_options\nfrom plone.app.z3cform.utils import cal... | [
{
"content": "from Acquisition import aq_inner\nfrom Acquisition import aq_parent\nfrom borg.localrole.interfaces import IFactoryTempFolder\nfrom plone.app.content.browser.interfaces import IFolderContentsView\nfrom plone.app.widgets.utils import get_relateditems_options\nfrom plone.app.z3cform.utils import cal... | diff --git a/Products/CMFPlone/patterns/settings.py b/Products/CMFPlone/patterns/settings.py
index fae04f2467..2d63b3ef69 100644
--- a/Products/CMFPlone/patterns/settings.py
+++ b/Products/CMFPlone/patterns/settings.py
@@ -137,6 +137,7 @@ def tinymce(self):
"relatedItems": related_items_config,
... |
pulp__pulpcore-3412 | 0077_move_remote_url_credentials.py fails on Remotes that have @ in path, not netloc
**Version**
3.18.10
**Describe the bug**
Migration 0077 fails when you have a remote that has an @ somewhere in the path
```
Applying core.0077_move_remote_url_credentials...Traceback (most recent call last):
File "/usr/b... | [
{
"content": "# Generated by Django 3.2.6 on 2021-09-29 14:00\n\nfrom urllib.parse import urlparse, urlunparse\n\nfrom django.db import migrations\n\n\ndef move_remote_url_credentials(apps, schema_editor):\n Remote = apps.get_model(\"core\", \"Remote\")\n\n for remote in Remote.objects.filter(url__contain... | [
{
"content": "# Generated by Django 3.2.6 on 2021-09-29 14:00\n\nfrom urllib.parse import urlparse, urlunparse\n\nfrom django.db import migrations\n\n\ndef move_remote_url_credentials(apps, schema_editor):\n Remote = apps.get_model(\"core\", \"Remote\")\n\n for remote in Remote.objects.filter(url__contain... | diff --git a/CHANGES/3409.bugfix b/CHANGES/3409.bugfix
new file mode 100644
index 0000000000..0e89439cf3
--- /dev/null
+++ b/CHANGES/3409.bugfix
@@ -0,0 +1 @@
+Fix migrating Remotes with @ in path
diff --git a/pulpcore/app/migrations/0077_move_remote_url_credentials.py b/pulpcore/app/migrations/0077_move_remote_url_cre... |
SciTools__cartopy-439 | BUG: Geostationary example bug
```
python cartopy/docs/source/examples/geostationary.py
Traceback (most recent call last):
File "/net/home/h05/cpelley/git/cartopy/docs/source/examples/geostationary.py", line 60, in <module>
main()
File "/net/home/h05/cpelley/git/cartopy/docs/source/examples/geostationary.py", l... | [
{
"content": "\"\"\"\nReprojecting images from a Geostationary projection\n---------------------------------------------------\n\nThis example demonstrates Cartopy's ability to project images into the desired\nprojection on-the-fly. The image itself is retrieved from a URL and is loaded\ndirectly into memory wi... | [
{
"content": "\"\"\"\nReprojecting images from a Geostationary projection\n---------------------------------------------------\n\nThis example demonstrates Cartopy's ability to project images into the desired\nprojection on-the-fly. The image itself is retrieved from a URL and is loaded\ndirectly into memory wi... | diff --git a/lib/cartopy/examples/geostationary.py b/lib/cartopy/examples/geostationary.py
index 84df5429c..75ca255f7 100644
--- a/lib/cartopy/examples/geostationary.py
+++ b/lib/cartopy/examples/geostationary.py
@@ -41,7 +41,7 @@ def geos_image():
"""
url = ('https://gist.github.com/pelson/5871263/raw/'
... |
freedomofpress__securedrop-2640 | Add Brazil flag for nice display in the language picker
Since the `pt_BR` locale is ready to go (see #2630), we should add a Brazil flag to the language picker.
| [
{
"content": "__version__ = '0.4.4'\n",
"path": "securedrop/version.py"
},
{
"content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to its\... | [
{
"content": "__version__ = '0.5-rc2'\n",
"path": "securedrop/version.py"
},
{
"content": "# -*- coding: utf-8 -*-\n#\n# SecureDrop documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 13 12:08:52 2015.\n#\n# This file is execfile()d with the current directory set to it... | diff --git a/changelog.md b/changelog.md
index e73930a269..4e91cec3c5 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,67 @@
# Changelog
+## 0.5-rc2
+
+### Web Applications
+
+* Internationalize both web applications (#2470, #2392, #2400, #2374, #2626,
+ #2354, #2338, #2333, #2229, #2223).
+* Localize in Ara... |
translate__pootle-6670 | Empty file cant sync in pootle fs
if for some reason a file is empty - theres no way to get pootle fs to fill it again. All seems to work but it remains empty
| [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nimport logging... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nimport logging... | diff --git a/pootle/apps/pootle_fs/files.py b/pootle/apps/pootle_fs/files.py
index b6eb91d0f77..a1c45e26c18 100644
--- a/pootle/apps/pootle_fs/files.py
+++ b/pootle/apps/pootle_fs/files.py
@@ -202,7 +202,8 @@ def deserialize(self, create=False):
self.store.syncer.file_class(f)
... |
mathesar-foundation__mathesar-2713 | Django erroneously reports makemigrations is needed
There is a problem with Django migration changes detector when running `migrate` command after setting up Django using `django,setup()`. For some reason, it is considering `mathesar.models.query.UIQuery` model to be missing.
| [
{
"content": "from django.contrib import admin\nfrom django.contrib.auth.admin import UserAdmin\n\nfrom mathesar.models.base import Table, Schema, DataFile\nfrom mathesar.models.users import User\n\n\nclass MathesarUserAdmin(UserAdmin):\n model = User\n\n fieldsets = (\n (None, {'fields': ('usernam... | [
{
"content": "from django.contrib import admin\nfrom django.contrib.auth.admin import UserAdmin\n\nfrom mathesar.models.base import Table, Schema, DataFile\nfrom mathesar.models.users import User\nfrom mathesar.models.query import UIQuery\n\n\nclass MathesarUserAdmin(UserAdmin):\n model = User\n\n fieldse... | diff --git a/mathesar/admin.py b/mathesar/admin.py
index 08257b4f27..be9d1f1f60 100644
--- a/mathesar/admin.py
+++ b/mathesar/admin.py
@@ -3,6 +3,7 @@
from mathesar.models.base import Table, Schema, DataFile
from mathesar.models.users import User
+from mathesar.models.query import UIQuery
class MathesarUserAdm... |
zulip__zulip-16978 | The terminal message for accessing the server is not very clear.
After running the server, the terminal message does not tells the user to access the server at http://localhost:9991/ . This is very difficult for the first time user to know how to proceed.
****Screenshot****
\... | [
{
"content": "#!/usr/bin/env python3\nimport argparse\nimport os\nimport pwd\nimport signal\nimport subprocess\nimport sys\nfrom typing import Any, Callable, Generator, List, Sequence\nfrom urllib.parse import urlunparse\n\n# check for the venv\nfrom lib import sanity_check\n\nsanity_check.check_venv(__file__)\... | diff --git a/tools/run-dev.py b/tools/run-dev.py
index 85e8069c8a355..f81fb4430158e 100755
--- a/tools/run-dev.py
+++ b/tools/run-dev.py
@@ -341,7 +341,7 @@ def shutdown_handler(*args: Any, **kwargs: Any) -> None:
def print_listeners() -> None:
external_host = os.getenv('EXTERNAL_HOST', 'localhost')
- print(... |
ranaroussi__yfinance-1237 | fix(sec): upgrade lxml to 4.9.1
### What happened?
There are 1 security vulnerabilities found in lxml 4.5.1
- [CVE-2022-2309](https://www.oscs1024.com/hd/CVE-2022-2309)
### What did I do?
Upgrade lxml from 4.5.1 to 4.9.1 for vulnerability fix
### What did you expect to happen?
Ideally, no insecure libs should be use... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: UTF-8 -*-\n#\n# yfinance - market data downloader\n# https://github.com/ranaroussi/yfinance\n\n\"\"\"yfinance - market data downloader\"\"\"\n\nfrom setuptools import setup, find_packages\n# from codecs import open\nimport io\nfrom os import path\n\n# --- get v... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: UTF-8 -*-\n#\n# yfinance - market data downloader\n# https://github.com/ranaroussi/yfinance\n\n\"\"\"yfinance - market data downloader\"\"\"\n\nfrom setuptools import setup, find_packages\n# from codecs import open\nimport io\nfrom os import path\n\n# --- get v... | diff --git a/README.md b/README.md
index 04c99d0dd..7cf46b80b 100644
--- a/README.md
+++ b/README.md
@@ -277,6 +277,7 @@ To install `yfinance` using `conda`, see
- [Pandas](https://github.com/pydata/pandas) \>= 1.3.0
- [Numpy](http://www.numpy.org) \>= 1.16.5
- [requests](http://docs.python-requests.org/en/mas... |
ethereum__web3.py-817 | ContractConstructor.buildTransaction() adds invalid "to" into transaction
* Version: 4.2.0
* Python: 3.6
* OS: linux
### What was wrong?
When I want to deploy a contract, and I use ContractConstructor.buildTransaction() to create the bytecode data first, it returns a dictionary with a correct data, but there ... | [
{
"content": "import codecs\nimport operator\n\nfrom cytoolz import (\n curry,\n)\nfrom cytoolz.curried import (\n keymap,\n valmap,\n)\nfrom cytoolz.functoolz import (\n complement,\n compose,\n partial,\n)\nfrom eth_utils.curried import (\n combine_argument_formatters,\n is_address,\n ... | [
{
"content": "import codecs\nimport operator\n\nfrom cytoolz import (\n curry,\n)\nfrom cytoolz.curried import (\n keymap,\n valmap,\n)\nfrom cytoolz.functoolz import (\n complement,\n compose,\n partial,\n)\nfrom eth_utils.curried import (\n combine_argument_formatters,\n is_address,\n ... | diff --git a/web3/middleware/pythonic.py b/web3/middleware/pythonic.py
index b052cbbb65..48db539153 100644
--- a/web3/middleware/pythonic.py
+++ b/web3/middleware/pythonic.py
@@ -279,6 +279,7 @@ def to_hexbytes(num_bytes, val, variable_length=False):
),
'personal_sign': apply_formatter_at_index(text_i... |
learningequality__kolibri-6621 | "Channel name unavailable" after bulk import
### Observed behavior
This appears to be a regression of https://github.com/learningequality/kolibri/issues/6175
Noticed that when an import actually completes, the channel shows up.
:
except KeyError:
raise serializers.Validat... |
biolab__orange3-2524 | Scatter Plot: control area expands
##### Orange version
last version and many previous ones
##### Expected behavior
Control area should not expand when hiding it, showing it again and the maximizing the Scatter Plot window.
##### Actual behavior
See below.
##### Steps to reproduce the behavior
![scre... | [
{
"content": "# Module imports Input, Output and AttributeList to be used in widgets\n# pylint: disable=unused-import\n\nimport sys\nimport os\nimport types\n\nfrom AnyQt.QtWidgets import (\n QWidget, QDialog, QVBoxLayout, QSizePolicy, QApplication, QStyle,\n QShortcut, QSplitter, QSplitterHandle, QPushBu... | [
{
"content": "# Module imports Input, Output and AttributeList to be used in widgets\n# pylint: disable=unused-import\n\nimport sys\nimport os\nimport types\n\nfrom AnyQt.QtWidgets import (\n QWidget, QDialog, QVBoxLayout, QSizePolicy, QApplication, QStyle,\n QShortcut, QSplitter, QSplitterHandle, QPushBu... | diff --git a/Orange/widgets/widget.py b/Orange/widgets/widget.py
index df6f734d19e..98815e81896 100644
--- a/Orange/widgets/widget.py
+++ b/Orange/widgets/widget.py
@@ -256,7 +256,7 @@ def mouseReleaseEvent(self, event):
"""Resize on left button"""
if event.button() == Qt.LeftButton:
... |
googleapis__python-bigquery-656 | The release attrs==21.1.0 broke pytype check
Running the `pytype` check on `master` fails:
```
$ nox -s pytype
```
```
...
return attr.evolve(self, *args, **kwargs)
File "/home/peter/workspace/python-bigquery/.nox/pytype/lib/python3.8/site-packages/attr/_funcs.py", line 347, in evolve
changes[init_n... | [
{
"content": "# Copyright 2016 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | [
{
"content": "# Copyright 2016 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | diff --git a/noxfile.py b/noxfile.py
index 654bbd093..dc77be3b7 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -103,6 +103,10 @@ def unit_noextras(session):
@nox.session(python=DEFAULT_PYTHON_VERSION)
def pytype(session):
"""Run type checks."""
+ # An indirect dependecy attrs==21.1.0 breaks the check, and instal... |
pallets__werkzeug-1601 | Reloader fails on setuptools script installed as an egg
We use werkzeug as router component of trytond. Everything worked on previous versions but since 0.15 (concretly after #1416 was merged), running the server from an package script and activating the reloader causes the following error:
```
Traceback (most rec... | [
{
"content": "import os\nimport subprocess\nimport sys\nimport threading\nimport time\nfrom itertools import chain\n\nfrom ._compat import iteritems\nfrom ._compat import PY2\nfrom ._compat import text_type\nfrom ._internal import _log\n\n\ndef _iter_module_files():\n \"\"\"This iterates over all relevant Py... | [
{
"content": "import os\nimport subprocess\nimport sys\nimport threading\nimport time\nfrom itertools import chain\n\nfrom ._compat import iteritems\nfrom ._compat import PY2\nfrom ._compat import text_type\nfrom ._internal import _log\n\n\ndef _iter_module_files():\n \"\"\"This iterates over all relevant Py... | diff --git a/CHANGES.rst b/CHANGES.rst
index ada5e43d9..846c4f291 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -16,6 +16,8 @@ Unreleased
:pr:`1592`
- Work around an issue in some external debuggers that caused the
reloader to fail. :issue:`1607`
+- Work around an issue where the reloader couldn't intros... |
mytardis__mytardis-1086 | Accessing `/help` URL results in 500 error because `user_guide` template not longer exists
`user_guide` template was remove during docs restructure #977, but url wasn't removed from urls.py.
| [
{
"content": "from importlib import import_module\nimport logging\nfrom os import path\n\nfrom django.contrib import admin\n\nfrom django.contrib.auth.views import logout\nfrom django.conf.urls import patterns, include, url\nfrom django.conf import settings\nfrom django.contrib.staticfiles.urls import staticfil... | [
{
"content": "from importlib import import_module\nimport logging\nfrom os import path\n\nfrom django.contrib import admin\n\nfrom django.contrib.auth.views import logout\nfrom django.conf.urls import patterns, include, url\nfrom django.conf import settings\nfrom django.contrib.staticfiles.urls import staticfil... | diff --git a/tardis/urls.py b/tardis/urls.py
index d5aaed3e3b..dacd1be77e 100644
--- a/tardis/urls.py
+++ b/tardis/urls.py
@@ -68,7 +68,6 @@
url(r'^public_data/', 'public_data', name='public_data'),
(r'^about/$', 'about'),
(r'^stats/$', 'stats'),
- (r'^help/$', 'user_guide'),
url(r'^sftp_access/c... |
keras-team__keras-18975 | Setting loss="crossentropy" in the compile method of a model raises an error: 'list' object has no attribute 'shape'
I love the workflow style of Keras so I decide to make some new metric in my own project. I want metrics more general like "accuracy". So when I run some tests like above, I came across that the loss see... | [
{
"content": "import tree\n\nfrom keras import backend\nfrom keras import losses as losses_module\nfrom keras import metrics as metrics_module\nfrom keras import ops\nfrom keras.utils.naming import get_object_name\n\n\nclass MetricsList(metrics_module.Metric):\n def __init__(self, metrics, name=\"metrics_lis... | [
{
"content": "import tree\n\nfrom keras import backend\nfrom keras import losses as losses_module\nfrom keras import metrics as metrics_module\nfrom keras import ops\nfrom keras.utils.naming import get_object_name\n\n\nclass MetricsList(metrics_module.Metric):\n def __init__(self, metrics, name=\"metrics_lis... | diff --git a/keras/trainers/compile_utils.py b/keras/trainers/compile_utils.py
index 8f830f4c9de2..789844c31d74 100644
--- a/keras/trainers/compile_utils.py
+++ b/keras/trainers/compile_utils.py
@@ -468,6 +468,8 @@ def build(self, y_true, y_pred):
"must be a callable. "
f"Recei... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.