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 ⌀ |
|---|---|---|---|---|
OpenMined__PySyft-4708 | Add Windows to CI
## Description
Add windows to the CI tests as a separate step for say python 3.8 and torch==1.6.0 initially just to get things working. Then if it works expand to all versions to see any potential issues.
## Definition of Done
This ticket is done when we know what does and doesn't run on Windows ... | [
{
"content": "# stdlib\nfrom typing import Dict\nfrom typing import Union\n\n# third party\nfrom packaging import version\nimport torch\n\n# syft relative\nfrom . import parameter # noqa: 401\nfrom . import uppercase_tensor # noqa: 401\nfrom ...ast.globals import Globals\nfrom .allowlist import allowlist\n\nT... | [
{
"content": "# stdlib\nfrom typing import Dict\nfrom typing import Union\n\n# third party\nfrom packaging import version\nimport torch\n\n# syft relative\nfrom . import parameter # noqa: 401\nfrom . import uppercase_tensor # noqa: 401\nfrom ...ast.globals import Globals\nfrom .allowlist import allowlist\n\nT... | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index d08e095ab60..d770082e3bc 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -8,19 +8,21 @@ on:
paths:
- "**.py"
- "setup.cfg"
+ - ".github/workflows/tests.yml"
pull_request:
types: [... |
xonsh__xonsh-2295 | Python 3.4 no longer supported?
Hi all,
First of all, thank you all for your great work.
I have noticed that the version bump to 0.5.7 introduced a call to `os.scandir` which is not supported by Python <3.5 afaik. As I am still using Ubuntu 14.04 with Python 3.4 on a few machines, this is a little bit of a heada... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"Prompt formatter for simple version control branchs\"\"\"\n# pylint:disable=no-member, invalid-name\n\nimport os\nimport sys\nimport queue\nimport builtins\nimport threading\nimport subprocess\n\nimport xonsh.tools as xt\n\n\ndef _get_git_branch(q):\n try:\n ... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"Prompt formatter for simple version control branchs\"\"\"\n# pylint:disable=no-member, invalid-name\n\nimport os\nimport sys\nimport queue\nimport builtins\nimport threading\nimport subprocess\n\nimport xonsh.tools as xt\n\n\ndef _get_git_branch(q):\n try:\n ... | diff --git a/news/scandir_bug.rst b/news/scandir_bug.rst
new file mode 100644
index 0000000000..3bfbfda90d
--- /dev/null
+++ b/news/scandir_bug.rst
@@ -0,0 +1,13 @@
+**Added:** None
+
+**Changed:** None
+
+**Deprecated:** None
+
+**Removed:** None
+
+**Fixed:**
+
+* Fixed a bug on py34 where os.scandir was used by acci... |
ddionrails__ddionrails-801 | Add dynamic range slider for publication year facet
see <https://opensource.appbase.io/reactive-manual/vue/range-components/dynamicrangeslider.html>
| [
{
"content": "# -*- coding: utf-8 -*-\n\n\"\"\" Search documents for indexing models from ddionrails.publications app into Elasticsearch\n\n\nAuthors:\n * 2019 Heinz-Alexander Fütterer (DIW Berlin)\n\nLicense:\n | **AGPL-3.0 GNU AFFERO GENERAL PUBLIC LICENSE (AGPL) 3.0**.\n | See LICENSE at the GitHub\... | [
{
"content": "# -*- coding: utf-8 -*-\n\n\"\"\" Search documents for indexing models from ddionrails.publications app into Elasticsearch\n\n\nAuthors:\n * 2019 Heinz-Alexander Fütterer (DIW Berlin)\n\nLicense:\n | **AGPL-3.0 GNU AFFERO GENERAL PUBLIC LICENSE (AGPL) 3.0**.\n | See LICENSE at the GitHub\... | diff --git a/assets/js/search/components/facets/PublicationYearFacet.vue b/assets/js/search/components/facets/PublicationYearFacet.vue
index 507c41b3a..4ad01f6ff 100644
--- a/assets/js/search/components/facets/PublicationYearFacet.vue
+++ b/assets/js/search/components/facets/PublicationYearFacet.vue
@@ -1,22 +1,25 @@
... |
facebookresearch__ParlAI-1671 | embeddingsize or embedding_size
When I search 'embeddingsize' in this repository, I see many files referencing `opt['embeddingsize']` and similarly for 'embedding_size'. Unless there is a real reason for having both, could you please merge the two options 'embeddingsize' and 'embedding_size'? This threw me off. Here is... | [
{
"content": "#!/usr/bin/env python\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\nfrom parlai.scripts.train_model import setup_args, TrainLoop\n\nif __name__ == '__main__':\n ... | [
{
"content": "#!/usr/bin/env python\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\nfrom parlai.scripts.train_model import setup_args, TrainLoop\n\nif __name__ == '__main__':\n ... | diff --git a/projects/wizard_of_wikipedia/generator/train_end2end.py b/projects/wizard_of_wikipedia/generator/train_end2end.py
index ff9f57ad747..74edc3f887e 100644
--- a/projects/wizard_of_wikipedia/generator/train_end2end.py
+++ b/projects/wizard_of_wikipedia/generator/train_end2end.py
@@ -18,7 +18,7 @@
n_he... |
dbt-labs__dbt-core-8568 | [CT-2982] Fix untyped functions in task/base.py (mypy warning)
### Problem
When we hit a mypy error the console is flooded with mypy warnings as well. Clean up the warning to improve developer experience.
### Reproduction
Simply force a mypy error (change types) and the warnings will be generated.
### Relevan... | [
{
"content": "import os\nimport threading\nimport time\nimport traceback\nfrom abc import ABCMeta, abstractmethod\nfrom contextlib import nullcontext\nfrom datetime import datetime\nfrom typing import Type, Union, Dict, Any, Optional\n\nimport dbt.exceptions\nfrom dbt import tracking\nfrom dbt.adapters.factory ... | [
{
"content": "import os\nimport threading\nimport time\nimport traceback\nfrom abc import ABCMeta, abstractmethod\nfrom contextlib import nullcontext\nfrom datetime import datetime\nfrom typing import Type, Union, Dict, Any, Optional\n\nimport dbt.exceptions\nfrom dbt import tracking\nfrom dbt.adapters.factory ... | diff --git a/.changes/unreleased/Under the Hood-20230906-164901.yaml b/.changes/unreleased/Under the Hood-20230906-164901.yaml
new file mode 100644
index 00000000000..f309a24ccc3
--- /dev/null
+++ b/.changes/unreleased/Under the Hood-20230906-164901.yaml
@@ -0,0 +1,6 @@
+kind: Under the Hood
+body: Add typing to __ini... |
piskvorky__gensim-3441 | annoy.py conversion of cosine distance to cosine similarity is incorrect
in [this function](https://github.com/RaRe-Technologies/gensim/blob/f35faae7a7b0c3c8586fb61208560522e37e0e7e/gensim/similarities/annoy.py#L169) the code to calculate cosine similarity is incorrect
def most_similar(self, vector, num_neighbor... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nThis module integrates Spotify's `Annoy <https://github.com/spotify/annoy>`_ (Approximate Nearest Neigh... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"\nThis module integrates Spotify's `Annoy <https://github.com/spotify/annoy>`_ (Approximate Nearest Neigh... | diff --git a/gensim/similarities/annoy.py b/gensim/similarities/annoy.py
index e586b2d2e3..688985ca51 100644
--- a/gensim/similarities/annoy.py
+++ b/gensim/similarities/annoy.py
@@ -185,4 +185,4 @@ def most_similar(self, vector, num_neighbors):
ids, distances = self.index.get_nns_by_vector(
vecto... |
ludwig-ai__ludwig-1056 | Use openpyxl instead of xlrd for reading newer Excel files
With the release of xlrd 2, support for newer Excel formats like xlsx has been dropped. It is recommended to use openpyxl instead and to only use xlrd for legacy Excel formats.
See: https://stackoverflow.com/questions/65254535/xlrd-biffh-xlrderror-excel-xls... | [
{
"content": "#! /usr/bin/env python\n# coding=utf-8\n# Copyright (c) 2019 Uber Technologies, 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.or... | [
{
"content": "#! /usr/bin/env python\n# coding=utf-8\n# Copyright (c) 2019 Uber Technologies, 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.or... | diff --git a/ludwig/utils/data_utils.py b/ludwig/utils/data_utils.py
index a3791d77836..51fe15f52e2 100644
--- a/ludwig/utils/data_utils.py
+++ b/ludwig/utils/data_utils.py
@@ -136,7 +136,12 @@ def read_jsonl(data_fp, df_lib):
def read_excel(data_fp, df_lib):
- return df_lib.read_excel(data_fp)
+ fp_split = ... |
liqd__a4-product-1097 | archived projects accessible via activity feed
At https://www.beteiligung.in/liqd/ all projects are private but I can see the content of the projects if I click on the activity feed. Even if not signed in.
| [
{
"content": "from django.contrib.messages.views import SuccessMessageMixin\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.views import generic\nfrom django.views.generic import DetailView\n\nfrom adhocracy4.actions.models import Action\nfrom adhocracy4.projects.models import Project\nfro... | [
{
"content": "from django.contrib.messages.views import SuccessMessageMixin\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.views import generic\nfrom django.views.generic import DetailView\n\nfrom adhocracy4.actions.models import Action\nfrom adhocracy4.projects.models import Project\nfro... | diff --git a/apps/organisations/views.py b/apps/organisations/views.py
index 96ae1ace3..51a95ba94 100644
--- a/apps/organisations/views.py
+++ b/apps/organisations/views.py
@@ -31,6 +31,7 @@ def get_context_data(self, **kwargs):
context['action_list'] = Action.objects\
.filter(project__organisat... |
sosreport__sos-1100 | [rabbitmq] does not elide password in /etc/rabbitmq.config
Hi,
Sosreport as in sos-3.2-36.eo7ost.1.noarch includes in `/etc/rabbitmq/rabbitmq.conf` `default_user` and `default_pass` without being hidden.
Regards,
Pablo
| [
{
"content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\n\n# This program is distributed in the hope th... | [
{
"content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\n\n# This program is distributed in the hope th... | diff --git a/sos/plugins/rabbitmq.py b/sos/plugins/rabbitmq.py
index 8057dd90a7..f7528f8e0c 100644
--- a/sos/plugins/rabbitmq.py
+++ b/sos/plugins/rabbitmq.py
@@ -60,5 +60,8 @@ def setup(self):
"/var/log/containers/rabbitmq/*"
], sizelimit=self.get_option('log_size'))
+ def postproc(self):
+ ... |
zenml-io__zenml-1388 | [BUG]: S3 artifact store registration with single quotes produces SUPPORTED_SCHEMES error
### Contact Details [Optional]
c.versloot@infoplaza.nl
### System Information
ZENML_LOCAL_VERSION: 0.34.0
ZENML_SERVER_VERSION: 0.34.0
ZENML_SERVER_DATABASE: mysql
ZENML_SERVER_DEPLOYMENT_TYPE: other
ZENML_CONFIG_DIR:... | [
{
"content": "# Copyright (c) ZenML GmbH 2022. 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# https://www.apache.org/licenses/LICENSE-2.0\... | [
{
"content": "# Copyright (c) ZenML GmbH 2022. 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# https://www.apache.org/licenses/LICENSE-2.0\... | diff --git a/src/zenml/artifact_stores/base_artifact_store.py b/src/zenml/artifact_stores/base_artifact_store.py
index 780cf2da817..d23f0a02dd1 100644
--- a/src/zenml/artifact_stores/base_artifact_store.py
+++ b/src/zenml/artifact_stores/base_artifact_store.py
@@ -151,6 +151,7 @@ class MyArtifactStoreConfig(BaseArtifac... |
fedora-infra__bodhi-2448 | Bodhi sends e-mails when it cannot modify private bugs
Bodhi tries to close private bugs, which it does not have permission to do. It should probably not try to do this in the first place, but more importantly it should catch the Exception that arises when it tries. Bodhi often sends error e-mails like this one:
Mes... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright © 2013-2017 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either ve... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright © 2013-2017 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either ve... | diff --git a/bodhi/server/bugs.py b/bodhi/server/bugs.py
index afa092e85b..b83ced1f59 100644
--- a/bodhi/server/bugs.py
+++ b/bodhi/server/bugs.py
@@ -231,7 +231,7 @@ def close(self, bug_id, versions, comment):
bug.close('ERRATA', **args)
except xmlrpc_client.Fault:
- log.exception("U... |
pymedusa__Medusa-7517 | {{...}} in release name breaks manual episode search
**Describe the bug**
There is an NZB indexer which appends the password to the release name of each episode.
The result looks like this:
> ReleaseName{{ThePassword}}
If the manual epsiode search contains such a result, the body stays blank and the browser c... | [
{
"content": "# coding=utf-8\n\"\"\"Use setup tools to install Medusa.\"\"\"\nimport io\nimport os\nimport re\nimport sys\n\nfrom setuptools import setup\nfrom setuptools.command.test import test as TestCommand\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\nclass PyTest(TestCommand):\n user_option... | [
{
"content": "# coding=utf-8\n\"\"\"Use setup tools to install Medusa.\"\"\"\nimport io\nimport os\nimport re\nimport sys\n\nfrom setuptools import setup\nfrom setuptools.command.test import test as TestCommand\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\nclass PyTest(TestCommand):\n user_option... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b33d4c8993..22a926025c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,7 +12,8 @@
- Fix `torrents.verifyCert` config patch ignored warning ([#7501](https://github.com/pymedusa/Medusa/pull/7501))
- Fix dragging and saving Anime / Series list handles in Home - Poster l... |
carpentries__amy-2028 | Update colors of progress states
The current color scheme for our progress states makes it hard to know when something needs further attention and when it does not. Previously we had three colors: Red-Failed, Yellow-Not evaluated yet and Green-Passed.
The new 'Asked to Repeat' progress state option is also yellow ... | [
{
"content": "from django import template\nfrom django.template.defaultfilters import escape\nfrom django.utils.safestring import mark_safe\n\nfrom workshops.models import TrainingProgress\n\nregister = template.Library()\n\n\n@register.simple_tag\ndef progress_label(progress):\n assert isinstance(progress, ... | [
{
"content": "from django import template\nfrom django.template.defaultfilters import escape\nfrom django.utils.safestring import mark_safe\n\nfrom workshops.models import TrainingProgress\n\nregister = template.Library()\n\n\n@register.simple_tag\ndef progress_label(progress):\n assert isinstance(progress, ... | diff --git a/amy/templates/trainings/all_trainees.html b/amy/templates/trainings/all_trainees.html
index c300f236b..ad161a776 100644
--- a/amy/templates/trainings/all_trainees.html
+++ b/amy/templates/trainings/all_trainees.html
@@ -30,7 +30,10 @@
<span class='badge badge-success'>Passed</span... |
rucio__rucio-1372 | Fix activity in BB8
Motivation
----------
BB8 uses activity `Data Rebalancing` but the activity defined in ATLAS schema is `Data rebalancing`. We should use the same activity everywhere, and it should be consistent with the share defined in FTS
| [
{
"content": "\n'''\nThis file is automatically generated; Do not edit it. :)\n'''\nVERSION_INFO = {\n 'final': True,\n 'version': '1.17.4',\n 'branch_nick': 'patch-0-1_17_4_client_release_prep',\n 'revision_id': 'ba996ce9bf8366cd7d8d1fb60a7f1daf8d4f517e',\n 'revno': 6827\n}\n",
"path": "lib/... | [
{
"content": "\n'''\nThis file is automatically generated; Do not edit it. :)\n'''\nVERSION_INFO = {\n 'final': True,\n 'version': '1.17.5',\n 'branch_nick': 'patch-0-1_17_5_preparation',\n 'revision_id': '537e1e47eb627741394b6bb9bc21d0f046296275',\n 'revno': 6837\n}\n",
"path": "lib/rucio/vc... | diff --git a/doc/source/releasenotes/1.17.5.rst b/doc/source/releasenotes/1.17.5.rst
new file mode 100644
index 0000000000..d1ffa3fb57
--- /dev/null
+++ b/doc/source/releasenotes/1.17.5.rst
@@ -0,0 +1,35 @@
+======
+1.17.5
+======
+
+-------
+General
+-------
+
+************
+Enhancements
+************
+
+- Documentati... |
streamlit__streamlit-2499 | st.number_input doesn't accept reasonable int arguments
# Summary
Using `st.number_input` in a very reasonable way:
```python
x = st.number_input("x", 0, 10)
```
causes an exception to be thrown
```
StreamlitAPIException: All arguments must be of the same type. value has float type. min_value has int typ... | [
{
"content": "# Copyright 2018-2020 Streamlit 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 a... | [
{
"content": "# Copyright 2018-2020 Streamlit 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 a... | diff --git a/lib/streamlit/elements/number_input.py b/lib/streamlit/elements/number_input.py
index 5db6edec1998..455ccbd4db4c 100644
--- a/lib/streamlit/elements/number_input.py
+++ b/lib/streamlit/elements/number_input.py
@@ -75,7 +75,7 @@ def number_input(
"""
if isinstance(value, NoValue):
- ... |
shuup__shuup-1574 | Admin: Main menu won't stay hidden
Two issues (at least):
Desktop: If I close (minimize, desktop) main-menu and click any link, the menu appears again.
Desktop to mobile: If I minimize the menu on a bigger desktop and then drag window smaller the menu appears again.
| [
{
"content": "# -*- coding: utf-8 -*-\n# This file is part of Shuup.\n#\n# Copyright (c) 2012-2018, Shuup Inc. All rights reserved.\n#\n# This source code is licensed under the OSL-3.0 license found in the\n# LICENSE file in the root directory of this source tree.\nfrom django.http import JsonResponse\nfrom dja... | [
{
"content": "# -*- coding: utf-8 -*-\n# This file is part of Shuup.\n#\n# Copyright (c) 2012-2018, Shuup Inc. All rights reserved.\n#\n# This source code is licensed under the OSL-3.0 license found in the\n# LICENSE file in the root directory of this source tree.\nfrom django.http import JsonResponse\nfrom dja... | diff --git a/README.rst b/README.rst
index 3f5e38dc5c..efa8972321 100644
--- a/README.rst
+++ b/README.rst
@@ -95,7 +95,7 @@ Roadmap
* Per object placeholders. Option to add content per contact group, category, product and CMS page. `#1220 <https://github.com/shuup/shuup/issues/1220>`__ :white_check_mark:.
* Pricing ... |
pallets__click-123 | Automatically dedent help text of options?
```
import click
@click.command()
@click.option('--foo', help="""
heyho
i am
multiline
""")
def cli(foo):
click.echo(foo)
cli()
```
This currently does not remove the leading whitespace from each paragraph in the help text for `--foo`:
```
untitaker@untib... | [
{
"content": "import sys\nimport inspect\n\nfrom functools import update_wrapper\n\nfrom ._compat import iteritems\nfrom .utils import echo\n\n\ndef pass_context(f):\n \"\"\"Marks a callback as wanting to receive the current context\n object as first argument.\n \"\"\"\n f.__click_pass_context__ = T... | [
{
"content": "import sys\nimport inspect\n\nfrom functools import update_wrapper\n\nfrom ._compat import iteritems\nfrom .utils import echo\n\n\ndef pass_context(f):\n \"\"\"Marks a callback as wanting to receive the current context\n object as first argument.\n \"\"\"\n f.__click_pass_context__ = T... | diff --git a/click/decorators.py b/click/decorators.py
index 4b81ac50f..25623f3f7 100644
--- a/click/decorators.py
+++ b/click/decorators.py
@@ -150,6 +150,8 @@ def option(*param_decls, **attrs):
:attr:`Command.params` list.
"""
def decorator(f):
+ if 'help' in attrs:
+ attrs['help'] = ... |
dpgmediamagazines__django-arctic-341 | QuickFiltersSelectMultiple add default attrs
For quick filters Arctic has 2 widget: `QuickFiltersSelect` and `QuickFiltersSelectMultiple`. They use same template and it requires `select_multiple` property in `attrs` to make it work checkbox-like.
It would be much easier to have this attribute be set by deafult in `Qu... | [
{
"content": "from datetime import datetime\n\nimport django\nfrom django.forms.widgets import (\n ClearableFileInput,\n DateInput,\n DateTimeInput,\n Select,\n SelectMultiple,\n TextInput,\n TimeInput,\n Input,\n CheckboxSelectMultiple,\n RadioSelect,\n)\nfrom django.template.load... | [
{
"content": "from datetime import datetime\n\nimport django\nfrom django.forms.widgets import (\n ClearableFileInput,\n DateInput,\n DateTimeInput,\n Select,\n SelectMultiple,\n TextInput,\n TimeInput,\n Input,\n CheckboxSelectMultiple,\n RadioSelect,\n)\nfrom django.template.load... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3d0e637e..d1050210 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,8 +13,10 @@ Always reference the ticket number at the end of the issue description.
### Fixed
- BREAKING! Fixed response in DeletionMixin after `delete` method is called [#334][334]
+- Added default... |
pytorch__vision-2612 | Unable to build with Spack/from source, ffmpeg libraries not found
## 🐛 Bug
I'm trying to install `torchvision` from source using the [Spack](https://spack.io) package manager, but the build can't find my `ffmpeg` libraries, which are in a non-standard location. There are a couple of reasons for this:
1. Mismatc... | [
{
"content": "import os\nimport io\nimport sys\nfrom setuptools import setup, find_packages\nfrom pkg_resources import parse_version, get_distribution, DistributionNotFound\nimport subprocess\nimport distutils.command.clean\nimport distutils.spawn\nimport glob\nimport shutil\n\nimport torch\nfrom torch.utils.cp... | [
{
"content": "import os\nimport io\nimport sys\nfrom setuptools import setup, find_packages\nfrom pkg_resources import parse_version, get_distribution, DistributionNotFound\nimport subprocess\nimport distutils.command.clean\nimport distutils.spawn\nimport glob\nimport shutil\n\nimport torch\nfrom torch.utils.cp... | diff --git a/setup.py b/setup.py
index 030e6627e1c..1bc84897fa6 100644
--- a/setup.py
+++ b/setup.py
@@ -358,6 +358,7 @@ def get_extensions():
ffmpeg_include_dir,
extensions_dir,
],
+ library_dirs=library_dirs,
libraries=[
... |
Project-MONAI__MONAI-2793 | `HighResBlock` may have wrong conv block
The `Convolution` block in `HighResBlock` does not utilize acti and norm parameters thus will used default instance norm layer and prelu activation layer. However, it is different from all other `Convolution` blocks in `HighResNet`. Is is a mistake? @wyli
`HighResBlock` may hav... | [
{
"content": "# Copyright 2020 - 2021 MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by appli... | [
{
"content": "# Copyright 2020 - 2021 MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by appli... | diff --git a/monai/networks/nets/highresnet.py b/monai/networks/nets/highresnet.py
index 12908a9119..f644a7835a 100644
--- a/monai/networks/nets/highresnet.py
+++ b/monai/networks/nets/highresnet.py
@@ -90,6 +90,7 @@ def __init__(
kernel_size=kernel_size,
dilation=dilation,
... |
ansible__ansible-31337 | nxos_config intended should be intended_config
##### ISSUE TYPE
- Documentation Report
##### COMPONENT NAME
nxos_config module
http://docs.ansible.com/ansible/latest/nxos_config_module.html
##### ANSIBLE VERSION
N/A
##### CONFIGURATION
N/A
##### OS / ENVIRONMENT
N/A
##### SUMMARY
The example show... | [
{
"content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers... | [
{
"content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers... | diff --git a/lib/ansible/modules/network/nxos/nxos_config.py b/lib/ansible/modules/network/nxos/nxos_config.py
index 6e289de80206f0..8dae1f1f044dd6 100644
--- a/lib/ansible/modules/network/nxos/nxos_config.py
+++ b/lib/ansible/modules/network/nxos/nxos_config.py
@@ -227,7 +227,7 @@
- name: diff the running-config agai... |
django-cms__django-cms-3844 | Non-existent method Page.get_title_object
If you specify a language to `ExtensionToolbar.get_title_extension_admin`, it calls `Page.get_title_object`, which doesn’t exist. This should probably be `Page.get_title_obj` instead.
| [
{
"content": "# -*- coding: utf-8 -*-\nfrom cms.utils.urlutils import admin_reverse\nfrom cms.api import get_page_draft\nfrom cms.toolbar_base import CMSToolbar\nfrom cms.utils import get_cms_setting\nfrom cms.utils.permissions import has_page_change_permission\nfrom django.core.urlresolvers import NoReverseMat... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom cms.utils.urlutils import admin_reverse\nfrom cms.api import get_page_draft\nfrom cms.toolbar_base import CMSToolbar\nfrom cms.utils import get_cms_setting\nfrom cms.utils.permissions import has_page_change_permission\nfrom django.core.urlresolvers import NoReverseMat... | diff --git a/cms/extensions/toolbar.py b/cms/extensions/toolbar.py
index e8e3870fd03..92eefe1f43f 100644
--- a/cms/extensions/toolbar.py
+++ b/cms/extensions/toolbar.py
@@ -123,7 +123,7 @@ def get_title_extension_admin(self, language=None):
page = self._get_page()
urls = []
if language:
- ... |
urllib3__urllib3-2840 | 2.0.0a2: Logging error with `StreamHandler` / `urllib3.add_stderr_logger`
### Subject
When using `urllib3.add_stderr_logger` (or using a StreamHandler), the formatting for the message to print out the request details fails.
This happens on the current main (2.0.0a2), release 2.0.0a2 and 2.0.0a1. 1.26.13 works fi... | [
{
"content": "from __future__ import annotations\n\nimport errno\nimport logging\nimport queue\nimport sys\nimport typing\nimport warnings\nimport weakref\nfrom socket import timeout as SocketTimeout\nfrom types import TracebackType\n\nfrom ._base_connection import _TYPE_BODY\nfrom ._request_methods import Requ... | [
{
"content": "from __future__ import annotations\n\nimport errno\nimport logging\nimport queue\nimport sys\nimport typing\nimport warnings\nimport weakref\nfrom socket import timeout as SocketTimeout\nfrom types import TracebackType\n\nfrom ._base_connection import _TYPE_BODY\nfrom ._request_methods import Requ... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7458b12591..e9c0bf3af5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -54,7 +54,7 @@ jobs:
experimental: false
nox-session: test-pypy
- python-version: "2.7"
- os: ubuntu-lates... |
pwr-Solaar__Solaar-1425 | Add support for g733 lightspeed headphones
It would be great to support the g733 lightspeed headphones. I have a pair of these so can help gather any information required to display stuff such as battery life etc. Not sure where to start adding support myself though...
| [
{
"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 0793ab8859..8af064baca 100644
--- a/lib/logitech_receiver/descriptors.py
+++ b/lib/logitech_receiver/descriptors.py
@@ -463,4 +463,5 @@ class _PerformanceMXDpi(_ST.RegisterDpi):
# Headset
+_D('Logitech G733 Gaming Headse... |
rasterio__rasterio-1754 | Proposal: Add option in CRS.from_user_input to check if it has the to_wkt method
https://github.com/mapbox/rasterio/blob/b9f34ee559039239c7c0c97bd911b466701a39cd/rasterio/crs.py#L427-L456
It would be nice for interoperability between the rasterio, fiona, and pyproj CRS classes. Thoughts?
| [
{
"content": "\"\"\"Coordinate Reference Systems\n\nNotes\n-----\n\nIn Rasterio versions <= 1.0.13, coordinate reference system support was limited\nto the CRS that can be described by PROJ parameters. This limitation is gone in\nversions >= 1.0.14. Any CRS that can be defined using WKT (version 1) may be\nused... | [
{
"content": "\"\"\"Coordinate Reference Systems\n\nNotes\n-----\n\nIn Rasterio versions <= 1.0.13, coordinate reference system support was limited\nto the CRS that can be described by PROJ parameters. This limitation is gone in\nversions >= 1.0.14. Any CRS that can be defined using WKT (version 1) may be\nused... | diff --git a/CHANGES.txt b/CHANGES.txt
index cfc3bba79..715d4975e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -12,7 +12,10 @@ Changes
- Several Python deprecation warnings have been eliminated (#1742).
- When a MemoryFile is opened in write mode, a TypeError will be raised if
integer width and height are not giv... |
Qiskit__qiskit-1940 | rzz gate
<!-- ⚠️ 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.7.2
- **Python version**: 3.6.6
- **Operating system**: Windows 10
### What is the current behavior?
rzz gate appe... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright 2017, IBM.\n#\n# This source code is licensed under the Apache License, Version 2.0 found in\n# the LICENSE.txt file in the root directory of this source tree.\n\n\"\"\"\ntwo-qubit ZZ-rotation gate.\n\"\"\"\nfrom qiskit.circuit import CompositeGate\nfrom qisk... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright 2017, IBM.\n#\n# This source code is licensed under the Apache License, Version 2.0 found in\n# the LICENSE.txt file in the root directory of this source tree.\n\n\"\"\"\ntwo-qubit ZZ-rotation gate.\n\"\"\"\nfrom qiskit.circuit import CompositeGate\nfrom qisk... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 36b89565b366..1d0058015624 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -95,6 +95,7 @@ Fixed
used in conditional operations (#1705).
- Fixed a bug that with transpile ignoring initial layout when
coupling map is provided (#1711).
+- Fixed a bug in the definit... |
localstack__localstack-5793 | bug: KMS_PROVIDER=local-kms not honored
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
When updating from 0.14.1 to 0.14.2 it appears that the `KMS_PROVIDER` environment variable is no longer honored, and `local-kms` is not used.
### Expected Behavior
Settin... | [
{
"content": "from localstack import config\nfrom localstack.aws.proxy import AwsApiListener\nfrom localstack.services.moto import MotoFallbackDispatcher\nfrom localstack.services.plugins import Service, aws_provider\n\n\n@aws_provider()\ndef acm():\n from localstack.services.acm.provider import AcmProvider\... | [
{
"content": "from localstack import config\nfrom localstack.aws.proxy import AwsApiListener\nfrom localstack.services.moto import MotoFallbackDispatcher\nfrom localstack.services.plugins import Service, aws_provider\n\n\n@aws_provider()\ndef acm():\n from localstack.services.acm.provider import AcmProvider\... | diff --git a/localstack/services/providers.py b/localstack/services/providers.py
index 1aa898198d429..936d9536036cd 100644
--- a/localstack/services/providers.py
+++ b/localstack/services/providers.py
@@ -140,7 +140,7 @@ def kinesis():
@aws_provider()
def kms():
- if config.KMS_PROVIDER == "kms-local":
+ if c... |
pytorch__vision-2201 | VideoClips Assertion Error
Hello,
I'm trying to load a big video. Following https://github.com/pytorch/vision/issues/1446 I used a VideoClips object, but it's crashing when trying to get clips with certain ids with this error:
> AssertionError Traceback (most recent call last)
> <ipyt... | [
{
"content": "import gc\nimport math\nimport re\nimport warnings\nfrom typing import Tuple, List\n\nimport numpy as np\nimport torch\n\nfrom . import _video_opt\nfrom ._video_opt import VideoMetaData\n\n\ntry:\n import av\n\n av.logging.set_level(av.logging.ERROR)\n if not hasattr(av.video.frame.VideoF... | [
{
"content": "import gc\nimport math\nimport re\nimport warnings\nfrom typing import Tuple, List\n\nimport numpy as np\nimport torch\n\nfrom . import _video_opt\nfrom ._video_opt import VideoMetaData\n\n\ntry:\n import av\n\n av.logging.set_level(av.logging.ERROR)\n if not hasattr(av.video.frame.VideoF... | diff --git a/torchvision/io/video.py b/torchvision/io/video.py
index 40d1cfeed85..f0a47d49faf 100644
--- a/torchvision/io/video.py
+++ b/torchvision/io/video.py
@@ -106,7 +106,7 @@ def _read_from_stream(
)
frames = {}
- should_buffer = False
+ should_buffer = True
max_buffer_size = 5
if ... |
angr__angr-2265 | ZeroDivisionError when performing Propagator analysis
<!--
*Disclaimer:
The angr suite is maintained by a small team of volunteers.
While we cannot guarantee any timeliness for fixes and enhancements, we will do our best.
For more real-time help with angr, from us and the community, join our [Slack.](http://angr.io... | [
{
"content": "# pylint:disable=no-self-use\nfrom typing import Tuple\n\nimport logging\n\nimport ailment\nimport pyvex\nimport archinfo\n\nfrom ...engines.vex.claripy.irop import operations as vex_operations\nfrom ...code_location import CodeLocation\nfrom ...utils.constants import DEFAULT_STATEMENT\nfrom ..eng... | [
{
"content": "# pylint:disable=no-self-use\nfrom typing import Tuple\n\nimport logging\n\nimport ailment\nimport pyvex\nimport archinfo\n\nfrom ...engines.vex.claripy.irop import operations as vex_operations\nfrom ...code_location import CodeLocation\nfrom ...utils.constants import DEFAULT_STATEMENT\nfrom ..eng... | diff --git a/angr/engines/light/engine.py b/angr/engines/light/engine.py
index 025743dd1dd..568248c3706 100644
--- a/angr/engines/light/engine.py
+++ b/angr/engines/light/engine.py
@@ -423,6 +423,9 @@ def _handle_Div(self, expr):
except TypeError as e:
self.l.warning(e)
return None
+ ... |
comic__grand-challenge.org-3383 | Viewer configuration does not show linking options
**Describe the bug**
The view and edit pages for viewer configurations no longer show options to set the linking configuration.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to https://grand-challenge.org/viewer-configurations/demo-rse/
2. Scroll down ... | [
{
"content": "from crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Fieldset, Layout, Submit\nfrom django.forms import ModelForm\nfrom django_select2.forms import Select2MultipleWidget\n\nfrom grandchallenge.core.forms import SaveFormInitMixin\nfrom grandchallenge.core.widgets import Color... | [
{
"content": "from crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Fieldset, Layout, Submit\nfrom django.forms import ModelForm\nfrom django_select2.forms import Select2MultipleWidget\n\nfrom grandchallenge.core.forms import SaveFormInitMixin\nfrom grandchallenge.core.widgets import Color... | diff --git a/app/grandchallenge/workstation_configs/forms.py b/app/grandchallenge/workstation_configs/forms.py
index 9e9dded697..fb58b1f260 100644
--- a/app/grandchallenge/workstation_configs/forms.py
+++ b/app/grandchallenge/workstation_configs/forms.py
@@ -79,7 +79,7 @@ def __init__(self, *args, read_only=False, **kw... |
streamlit__streamlit-1469 | Spelling mistake while running streamlit hello , DataFrame Demo
# Summary
I noticed a spelling mistake in dataframe demo while runing streamlit hello , It displays UN Data Exlorer instead of UN Data Explorer
# Steps to reproduce
1. Go to terminal
2. Run `streamlit hello`
3. Open browser at localhost:8501 and... | [
{
"content": "# Copyright 2018-2020 Streamlit 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 a... | [
{
"content": "# Copyright 2018-2020 Streamlit 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 a... | diff --git a/lib/streamlit/hello/hello.py b/lib/streamlit/hello/hello.py
index d39b5042c4ff..56c861ae7de2 100644
--- a/lib/streamlit/hello/hello.py
+++ b/lib/streamlit/hello/hello.py
@@ -67,7 +67,7 @@
"""
This demo shows how to use `st.write` to visualize Pandas DataFrames.
-(Data courtesy of the [U... |
mdn__kuma-6978 | SystemError: <method 'get' of 'dict' objects> returned a result with an error set
https://sentry.prod.mozaws.net/operations/mdn-prod/issues/6659909/
```
timeout: timeout
SystemError: <method 'get' of 'dict' objects> returned a result with an error set
File "meinheld/mlogging.py", line 187, in _access
'h': ... | [
{
"content": "import newrelic.agent\nfrom django.http import HttpResponseBadRequest, JsonResponse\nfrom django.shortcuts import render\nfrom django.utils.translation import gettext_lazy as _\nfrom django.views.decorators.http import require_GET\n\nfrom kuma.core.decorators import (\n block_user_agents,\n ... | [
{
"content": "import newrelic.agent\nfrom django.http import HttpResponseBadRequest, JsonResponse\nfrom django.shortcuts import render\nfrom django.utils.translation import gettext_lazy as _\nfrom django.views.decorators.http import require_GET\n\nfrom kuma.core.decorators import (\n block_user_agents,\n ... | diff --git a/kuma/wiki/views/misc.py b/kuma/wiki/views/misc.py
index 958b29250d0..4347233e4cf 100644
--- a/kuma/wiki/views/misc.py
+++ b/kuma/wiki/views/misc.py
@@ -84,7 +84,7 @@ def autosuggest_documents(request):
# Generates a list of acceptable docs
docs_list = []
- for doc in docs:
+ for doc in do... |
DjangoGirls__djangogirls-926 | DataError: value too long for type character varying(30)
Sentry Issue: [DJANGO-GIRLS-WEBSITE-60](https://django-girls.sentry.io/issues/4635355583/?referrer=github_integration)
```
StringDataRightTruncation: value too long for type character varying(30)
File "django/db/backends/utils.py", line 84, in _execute
re... | [
{
"content": "from datetime import date, datetime, timedelta\n\nimport requests\nfrom django.utils import timezone\nfrom django_date_extensions.fields import ApproximateDate\n\nfrom .models import Event\n\nNOMINATIM_URL = \"https://nominatim.openstreetmap.org/search\"\n\n\ndef get_coordinates_for_city(city, cou... | [
{
"content": "from datetime import date, datetime, timedelta\n\nimport requests\nfrom django.utils import timezone\nfrom django_date_extensions.fields import ApproximateDate\n\nfrom .models import Event\n\nNOMINATIM_URL = \"https://nominatim.openstreetmap.org/search\"\n\n\ndef get_coordinates_for_city(city, cou... | diff --git a/core/utils.py b/core/utils.py
index b6800a327..ef589f72f 100644
--- a/core/utils.py
+++ b/core/utils.py
@@ -15,7 +15,9 @@ def get_coordinates_for_city(city, country):
try:
data = req.json()[0]
- return f'{data["lat"]}, {data["lon"]}'
+ formatted_lat = "{:.7f}".format(float(dat... |
qtile__qtile-1578 | qtile error to load
| [
{
"content": "# Copyright (c) 2008, Aldo Cortesi. All rights reserved.\n# Copyright (c) 2011, Florian Mounier\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restricti... | [
{
"content": "# Copyright (c) 2008, Aldo Cortesi. All rights reserved.\n# Copyright (c) 2011, Florian Mounier\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restricti... | diff --git a/libqtile/scripts/qtile.py b/libqtile/scripts/qtile.py
index 2b919a450f..6b64057f43 100644
--- a/libqtile/scripts/qtile.py
+++ b/libqtile/scripts/qtile.py
@@ -29,7 +29,11 @@
from libqtile import confreader
from libqtile.backend.x11 import xcore
-locale.setlocale(locale.LC_ALL, locale.getdefaultlocale())... |
archlinux__archinstall-2190 | Password visible on Profiles list
After creating a new user, the "Password" is visible in plain text under the list of available profiles, unless this is the intended behavior?


elif hasattr(o, 'table_data'):
return o.table_data()
+ eli... |
pyca__cryptography-2855 | Redundant exclude in setup.py's find_packages
I think the call can be reduced from
``` python
find_packages(
where="src", exclude=["_cffi_src", "_cffi_src.*", "tests", "tests.*"]
)
```
to
``` python
find_packages(where="src", exclude=["_cffi_src", "_cffi_src.*"])
```
because of the `where="src"`. I verified by... | [
{
"content": "#!/usr/bin/env python\n\n# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport pl... | [
{
"content": "#!/usr/bin/env python\n\n# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport pl... | diff --git a/setup.py b/setup.py
index 88dfd7de72a4..d104ac3a2104 100644
--- a/setup.py
+++ b/setup.py
@@ -302,9 +302,7 @@ def run_tests(self):
],
package_dir={"": "src"},
- packages=find_packages(
- where="src", exclude=["_cffi_src", "_cffi_src.*", "tests", "tests.*"]
- ),
+ packages=find_p... |
docker__docker-py-3099 | Unable to use docker to run containers started from Jupyter Notebook
Hello,
I'm currently following this tutorial: https://github.com/aws/amazon-sagemaker-examples/blob/main/sagemaker-pipelines/tabular/local-mode/sagemaker-pipelines-local-mode.ipynb
I'm getting the following error from trying to run it (it uses d... | [
{
"content": "import errno\nimport os\nimport select\nimport socket as pysocket\nimport struct\n\ntry:\n from ..transport import NpipeSocket\nexcept ImportError:\n NpipeSocket = type(None)\n\n\nSTDOUT = 1\nSTDERR = 2\n\n\nclass SocketError(Exception):\n pass\n\n\n# NpipeSockets have their own error typ... | [
{
"content": "import errno\nimport os\nimport select\nimport socket as pysocket\nimport struct\n\ntry:\n from ..transport import NpipeSocket\nexcept ImportError:\n NpipeSocket = type(None)\n\n\nSTDOUT = 1\nSTDERR = 2\n\n\nclass SocketError(Exception):\n pass\n\n\n# NpipeSockets have their own error typ... | diff --git a/docker/utils/socket.py b/docker/utils/socket.py
index 5aca30b17..47cb44f62 100644
--- a/docker/utils/socket.py
+++ b/docker/utils/socket.py
@@ -49,7 +49,7 @@ def read(socket, n=4096):
if is_pipe_ended:
# npipes don't support duplex sockets, so we interpret
# a PIPE_ENDED ... |
archlinux__archinstall-2278 | no default value for uki key in configurations.json
(archinstall 2.7.0)
When using archinstall in a system with no support for uefi, the user is not prompted to choose a value for the uki key. However, when running archinstall with a config file without a uki key defined, it errors out since there is no such key defi... | [
{
"content": "from pathlib import Path\nfrom typing import Any, TYPE_CHECKING, Optional\n\nimport archinstall\nfrom archinstall import info, debug\nfrom archinstall import SysInfo\nfrom archinstall.lib import locale\nfrom archinstall.lib import disk\nfrom archinstall.lib.global_menu import GlobalMenu\nfrom arch... | [
{
"content": "from pathlib import Path\nfrom typing import Any, TYPE_CHECKING, Optional\n\nimport archinstall\nfrom archinstall import info, debug\nfrom archinstall import SysInfo\nfrom archinstall.lib import locale\nfrom archinstall.lib import disk\nfrom archinstall.lib.global_menu import GlobalMenu\nfrom arch... | diff --git a/archinstall/scripts/guided.py b/archinstall/scripts/guided.py
index 6acbdbf3b2..44b0ae17f6 100644
--- a/archinstall/scripts/guided.py
+++ b/archinstall/scripts/guided.py
@@ -158,7 +158,7 @@ def perform_installation(mountpoint: Path):
installation.add_bootloader(
archinstall.arguments["bootloader"]... |
python-gitlab__python-gitlab-1213 | RefreshMixin.refresh() doesn't remove removed attributes
## Description of the problem, including code/CLI snippet
When attributes disappear from an object on the server `RefreshMixin.refresh()` doesn't remove them.
For instance if a job that has artifacts will have an `artifacts_file` attribute. If you call `.d... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2013-2017 Gauvain Pocentek <gauvain@pocentek.net>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser General Public License as published by\n# the Free Software Foundation, either version 3 ... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2013-2017 Gauvain Pocentek <gauvain@pocentek.net>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser General Public License as published by\n# the Free Software Foundation, either version 3 ... | diff --git a/gitlab/base.py b/gitlab/base.py
index 40bc06ce4..ad3533913 100644
--- a/gitlab/base.py
+++ b/gitlab/base.py
@@ -131,7 +131,7 @@ def _create_managers(self):
def _update_attrs(self, new_attrs):
self.__dict__["_updated_attrs"] = {}
- self.__dict__["_attrs"].update(new_attrs)
+ se... |
carltongibson__django-filter-844 | Use DRF BooleanFilter as default for DRF FilterSet
When using Django-filter together with Django Rest Framework, shouldn't the `BooleanFilter` for DRF be used as default for a DRF `FilterSet`?
Currently (**Python 2.7.14**, **Django 1.11.6**, **DRF 3.7.0**, **Django-Filter 1.1.0**) I have to manually specify my boole... | [
{
"content": "from copy import deepcopy\n\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom django_filters import filterset\n\nfrom .. import compat\nfrom .filters import BooleanFilter, IsoDateTimeFilter\n\nFILTER_FOR_DBFIELD_DEFAULTS = deepcopy(filterset.FILTER_FOR_... | [
{
"content": "\nfrom __future__ import absolute_import\n\nfrom copy import deepcopy\n\nfrom django import forms\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom django_filters import filterset\n\nfrom .. import compat, utils\nfrom .filters import BooleanFilter, IsoD... | diff --git a/django_filters/rest_framework/filterset.py b/django_filters/rest_framework/filterset.py
index 9a984f25f..2f86742fd 100644
--- a/django_filters/rest_framework/filterset.py
+++ b/django_filters/rest_framework/filterset.py
@@ -16,6 +16,7 @@
FILTER_FOR_DBFIELD_DEFAULTS.update({
models.DateTimeField: {'fi... |
PyGithub__PyGithub-946 | PaginatedList reversed property loses http headers
In reversed(), 'headers' parameter is not passed to PaginatedList(). It makes some APIs not reversible. For example, get_stargazers_with_dates() which requires "Accept: application/vnd.github.v3.star+json" header in the API call.
| [
{
"content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #\n# Copyright 2012 Zearin <... | [
{
"content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #\n# Copyright 2012 Zearin <... | diff --git a/github/PaginatedList.py b/github/PaginatedList.py
index f67fdca038..586b4a8ed7 100644
--- a/github/PaginatedList.py
+++ b/github/PaginatedList.py
@@ -175,7 +175,7 @@ def _getLastPageUrl(self):
@property
def reversed(self):
- r = PaginatedList(self.__contentClass, self.__requester, self._... |
Mailu__Mailu-1196 | refining the default password scheme
In https://github.com/Mailu/Mailu/pull/647 the default scheme was switched to BCRYPT. The argumentation was:
> bcrypt is fast¹ and secure[...]
While it's actually secure, bcypt is not fast. It is _designed_ to be slow - to consume a very high amount of CPU resources to make br... | [
{
"content": "import os\n\nfrom socrate import system\n\nDEFAULT_CONFIG = {\n # Specific to the admin UI\n 'DOCKER_SOCKET': 'unix:///var/run/docker.sock',\n 'BABEL_DEFAULT_LOCALE': 'en',\n 'BABEL_DEFAULT_TIMEZONE': 'UTC',\n 'BOOTSTRAP_SERVE_LOCAL': True,\n 'RATELIMIT_STORAGE_URL': '',\n 'QU... | [
{
"content": "import os\n\nfrom socrate import system\n\nDEFAULT_CONFIG = {\n # Specific to the admin UI\n 'DOCKER_SOCKET': 'unix:///var/run/docker.sock',\n 'BABEL_DEFAULT_LOCALE': 'en',\n 'BABEL_DEFAULT_TIMEZONE': 'UTC',\n 'BOOTSTRAP_SERVE_LOCAL': True,\n 'RATELIMIT_STORAGE_URL': '',\n 'QU... | diff --git a/core/admin/mailu/configuration.py b/core/admin/mailu/configuration.py
index f01e1bb96..05fad1733 100644
--- a/core/admin/mailu/configuration.py
+++ b/core/admin/mailu/configuration.py
@@ -51,7 +51,7 @@
'RECAPTCHA_PUBLIC_KEY': '',
'RECAPTCHA_PRIVATE_KEY': '',
# Advanced settings
- 'PASSWOR... |
netbox-community__netbox-14751 | related_name should not be translated
### Deployment Type
Self-hosted
### NetBox Version
v3.7.0
### Python Version
3.8
### Steps to Reproduce
If you enable the translation function, an error appears. This is due to the fact that in `netbox/dcim/models/device_components.py` in the `DeviceBay` class the translatio... | [
{
"content": "from functools import cached_property\n\nfrom django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation\nfrom django.core.exceptions import ValidationError\nfrom django.core.validators import MaxValueValidator, MinValueValidator\nfrom django.db import models\nfrom django.db.mode... | [
{
"content": "from functools import cached_property\n\nfrom django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation\nfrom django.core.exceptions import ValidationError\nfrom django.core.validators import MaxValueValidator, MinValueValidator\nfrom django.db import models\nfrom django.db.mode... | diff --git a/netbox/dcim/models/device_components.py b/netbox/dcim/models/device_components.py
index ef235078fa3..88dddb31267 100644
--- a/netbox/dcim/models/device_components.py
+++ b/netbox/dcim/models/device_components.py
@@ -1115,7 +1115,7 @@ class DeviceBay(ComponentModel, TrackingModelMixin):
installed_devic... |
projectmesa__mesa-891 | Cookiecutter doesn't work on 0.8.7 release
**Describe the bug**
`mesa startproject` fails after `pipenv install mesa`
```
A valid repository for "/home/neil/.local/share/virtualenvs/baseline-economy-6fg_iky1/lib/python3.8/site-packages/mesa/cookiecutter-mesa" could not be found in the following locations:
...
```
... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport re\n\nfrom setuptools import setup, find_packages\nfrom codecs import open\n\nrequires = [\"click\", \"cookiecutter\", \"networkx\", \"numpy\", \"pandas\", \"tornado\", \"tqdm\"]\n\nextras_require = {\n \"dev\": [\"coverage\", \"flake8\", \... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport re\n\nfrom setuptools import setup, find_packages\nfrom codecs import open\n\nrequires = [\"click\", \"cookiecutter\", \"networkx\", \"numpy\", \"pandas\", \"tornado\", \"tqdm\"]\n\nextras_require = {\n \"dev\": [\"coverage\", \"flake8\", \... | diff --git a/MANIFEST.in b/MANIFEST.in
index d51d8d3685a..697897ce67e 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -3,6 +3,7 @@ include LICENSE
include HISTORY.rst
include README.rst
include setup.py
+include mesa/cookiecutter-mesa/*
include mesa/visualization/templates/*.html
include mesa/visualization/templates... |
flairNLP__flair-2070 | Keep newline in Sentence for sequence tagging prediction
**Describe the bug**
I'd like to keep the newline character `\n` when doing sequence tagging prediction (keeping it during training seems easier because of the different code paths).
https://github.com/flairNLP/flair/blob/master/flair/data.py#L605 This line rem... | [
{
"content": "import torch, flair\nimport logging\nimport re\n\nfrom abc import abstractmethod, ABC\n\nfrom collections import Counter\nfrom collections import defaultdict\n\nfrom deprecated import deprecated\nfrom flair.file_utils import Tqdm\nfrom operator import itemgetter\n\nfrom torch.utils.data import Dat... | [
{
"content": "import torch, flair\nimport logging\nimport re\n\nfrom abc import abstractmethod, ABC\n\nfrom collections import Counter\nfrom collections import defaultdict\n\nfrom deprecated import deprecated\nfrom flair.file_utils import Tqdm\nfrom operator import itemgetter\n\nfrom torch.utils.data import Dat... | diff --git a/flair/data.py b/flair/data.py
index ad561600ef..a82b9ac054 100644
--- a/flair/data.py
+++ b/flair/data.py
@@ -602,7 +602,7 @@ def add_token(self, token: Union[Token, str]):
token.text = token.text.replace('\ufeff', '')
# data with zero-width characters cannot be handled
- if toke... |
ethereum__consensus-specs-2445 | SSZ Union improvement proposal
The current [Union type](https://github.com/ethereum/eth2.0-specs/blob/dev/ssz/simple-serialize.md#composite-types) is not used in Phase0, and largely not yet implemented in client implementations (exception: lighthouse). In more dynamic contexts, it's could be very useful however.
Th... | [
{
"content": "from setuptools import setup, find_packages, Command\nfrom setuptools.command.build_py import build_py\nfrom distutils import dir_util\nfrom distutils.util import convert_path\nfrom pathlib import Path\nimport os\nimport re\nimport string\nimport textwrap\nfrom typing import Dict, NamedTuple, List... | [
{
"content": "from setuptools import setup, find_packages, Command\nfrom setuptools.command.build_py import build_py\nfrom distutils import dir_util\nfrom distutils.util import convert_path\nfrom pathlib import Path\nimport os\nimport re\nimport string\nimport textwrap\nfrom typing import Dict, NamedTuple, List... | diff --git a/setup.py b/setup.py
index 99e501d9f3..cd2006f715 100644
--- a/setup.py
+++ b/setup.py
@@ -1017,7 +1017,7 @@ def run(self):
"py_ecc==5.2.0",
"milagro_bls_binding==1.6.3",
"dataclasses==0.6",
- "remerkleable==0.1.19",
+ "remerkleable==0.1.20",
RUAMEL_YAML_VER... |
googleapis__python-bigquery-398 | google-cloud-bigquery[opentelemetry] un-installable together with opentelemetry-exporter-google-cloud
According to the instructions [Instrumenting With OpenTelemetry](https://github.com/googleapis/python-bigquery#instrumenting-with-opentelemetry) in the README the following packages needs to be installed to use OpenTel... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | diff --git a/setup.py b/setup.py
index 48c4a7518..5f4e506eb 100644
--- a/setup.py
+++ b/setup.py
@@ -55,9 +55,9 @@
],
"tqdm": ["tqdm >= 4.7.4, <5.0.0dev"],
"opentelemetry": [
- "opentelemetry-api==0.9b0",
- "opentelemetry-sdk==0.9b0",
- "opentelemetry-instrumentation==0.9b0 ",
+ ... |
marshmallow-code__webargs-414 | Schema factory only variable fail - can't pass list type
Looking at the [schema factory docs](https://webargs.readthedocs.io/en/latest/advanced.html#schema-factories), I'm interested in trying the
```
# Filter based on 'fields' query parameter
only = request.args.get("fields", None)
```
part.
However, when I tr... | [
{
"content": "\"\"\"Example implementation of using a marshmallow Schema for both request input\nand output with a `use_schema` decorator.\nRun the app:\n\n $ python examples/schema_example.py\n\nTry the following with httpie (a cURL-like utility, http://httpie.org):\n\n $ pip install httpie\n $ http G... | [
{
"content": "\"\"\"Example implementation of using a marshmallow Schema for both request input\nand output with a `use_schema` decorator.\nRun the app:\n\n $ python examples/schema_example.py\n\nTry the following with httpie (a cURL-like utility, http://httpie.org):\n\n $ pip install httpie\n $ http G... | diff --git a/README.rst b/README.rst
index fc36d904..c1de1029 100644
--- a/README.rst
+++ b/README.rst
@@ -34,11 +34,9 @@ webargs is a Python library for parsing and validating HTTP request objects, wit
app = Flask(__name__)
- hello_args = {"name": fields.Str(required=True)}
-
@app.route("/")
- @u... |
ansible__molecule-1717 | build fails on functional tests shard 1/3
# Issue Type
- Bug report
# Desired Behavior
CI green
# Actual Behaviour
Build fails on functional tests shard 1/3, for all versions of Ansible and python
example: https://travis-ci.com/ansible/molecule/jobs/174166218
```
test/functional/docker/test_scenar... | [
{
"content": "# Copyright (c) 2015-2018 Cisco Systems, Inc.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to\n# deal in the Software without restriction, including without limitation the\n# right... | [
{
"content": "# Copyright (c) 2015-2018 Cisco Systems, Inc.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to\n# deal in the Software without restriction, including without limitation the\n# right... | diff --git a/molecule/util.py b/molecule/util.py
index 1c64367502..426cae35ae 100644
--- a/molecule/util.py
+++ b/molecule/util.py
@@ -102,7 +102,7 @@ def run_command(cmd, debug=False):
print_environment_vars(cmd._partial_call_args.get('env', {}))
print_debug('COMMAND', str(cmd))
print()
- ... |
qtile__qtile-1645 | lazy.when
# Issue description
I found this quite oldy [`config.py`](https://gist.github.com/cjbarnes18/4151805) that uses a `when` operation to limit the keybinding to a layout but it throws an exception. I also couldn't find it in the docs, so is it supposed to exist? Is there another similar intended way to limit ... | [
{
"content": "# Copyright (c) 2019, Sean Vig. All rights reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights... | [
{
"content": "# Copyright (c) 2019, Sean Vig. All rights reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights... | diff --git a/libqtile/lazy.py b/libqtile/lazy.py
index c30c4d0542..0ab1dffea6 100644
--- a/libqtile/lazy.py
+++ b/libqtile/lazy.py
@@ -72,6 +72,7 @@ def kwargs(self) -> Dict:
def when(self, layout=None, when_floating=True):
self._layout = layout
self._when_floating = when_floating
+ return... |
chainer__chainer-258 | Shape of output value of `concat` is list in GPU
`cuda.empty([1])` makes a `GPUArray` with `list` shape. It causes a type invalid error.
https://github.com/pfnet/chainer/blob/master/chainer/functions/concat.py#L69
| [
{
"content": "import numpy\n\nfrom chainer import cuda\nfrom chainer import function\nfrom chainer.utils import type_check\n\n_args = 'const float* x, float* y, int cdimx, int cdimy, int rdim, int coffset'\n_preamble = '''\n#define COPY(statement) \\\n int l = i / (rdim * cdimx); \\\n int c = i / rdi... | [
{
"content": "import numpy\n\nfrom chainer import cuda\nfrom chainer import function\nfrom chainer.utils import type_check\n\n_args = 'const float* x, float* y, int cdimx, int cdimy, int rdim, int coffset'\n_preamble = '''\n#define COPY(statement) \\\n int l = i / (rdim * cdimx); \\\n int c = i / rdi... | diff --git a/chainer/functions/concat.py b/chainer/functions/concat.py
index 748616e60cb7..3828b9b8e68d 100644
--- a/chainer/functions/concat.py
+++ b/chainer/functions/concat.py
@@ -64,6 +64,7 @@ def forward_gpu(self, xs):
shape = list(xs[0].shape)
for x in xs[1:]:
shape[self.axis] += x.... |
Kinto__kinto-1752 | Deleting a collection doesn't delete access_control_entries for its children
`buckets.py` has an event listener that ensures that when a bucket is deleted, everything underneath it is recursively deleted. `collections.py` has one too but it doesn't appear to be as robust -- it doesn't have a wildcard to match objects m... | [
{
"content": "import colander\nfrom pyramid.events import subscriber\n\nfrom kinto.core import resource, utils\nfrom kinto.core.events import ResourceChanged, ACTIONS\nfrom kinto.schema_validation import validate_from_bucket_schema_or_400, JSONSchemaMapping\n\n\nclass CollectionSchema(resource.ResourceSchema):\... | [
{
"content": "import colander\nfrom pyramid.events import subscriber\n\nfrom kinto.core import resource, utils\nfrom kinto.core.events import ResourceChanged, ACTIONS\nfrom kinto.schema_validation import validate_from_bucket_schema_or_400, JSONSchemaMapping\n\n\nclass CollectionSchema(resource.ResourceSchema):\... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 193a066de..cb740b1a0 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -7,7 +7,8 @@ This document describes changes between each past release.
10.0.1 (unreleased)
-------------------
-- Nothing changed yet.
+**Bug fixes**
+- Deleting a collection doesn't delete acces... |
Pycord-Development__pycord-2295 | After is set to id=0 even if you pass a value for after in https://docs.pycord.dev/en/stable/api/models.html#discord.Guild.audit_logs
### Summary
After is not updated to the value passed. This result in all audit log being fetch
### Reproduction Steps
1) Call audit_logs() with a value for after that is not the... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6928a6bac4..6ece1cf3d2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -201,6 +201,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#2243](https://github.com/Pycord-Development/pycord/pull/2243))
- Fixed `Intents.all()` returning ... |
scikit-image__scikit-image-1145 | find_contours returns (y,x) instead of (x,y) pairs
The API doc says for the return value "Each contour is an ndarray of shape `(n, 2)`, consisting of n `(x, y)` coordinates along the contour."
A small test case, with input:
\n\n\ndef find_contours(array, level,\n fully_connected='low', positive_orientation='low'):\n \"\"\"Find iso-valued contours in a 2D array for a given level v... | [
{
"content": "import numpy as np\nfrom . import _find_contours_cy\n\nfrom collections import deque\n\n_param_options = ('high', 'low')\n\n\ndef find_contours(array, level,\n fully_connected='low', positive_orientation='low'):\n \"\"\"Find iso-valued contours in a 2D array for a given level v... | diff --git a/skimage/measure/_find_contours.py b/skimage/measure/_find_contours.py
index 0eea912676b..ff53795fce1 100755
--- a/skimage/measure/_find_contours.py
+++ b/skimage/measure/_find_contours.py
@@ -35,7 +35,7 @@ def find_contours(array, level,
-------
contours : list of (n,2)-ndarrays
Each con... |
pallets__werkzeug-1402 | Test Client does not keep Authorization in the request headers when following redirects
Hi,
When sending a POST request with `follow_redirects=True` and with `{Authorization: 'Bearer {}'.format(token)}` added to the headers and the endpoint returns a 303 code; the client follows the redirect, but the authorization h... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.http\n ~~~~~~~~~~~~~\n\n Werkzeug comes with a bunch of utilities that help Werkzeug to deal with\n HTTP data. Most of the classes and functions provided by this module are\n used by the wrappers, but they are useful on their own, too, esp... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.http\n ~~~~~~~~~~~~~\n\n Werkzeug comes with a bunch of utilities that help Werkzeug to deal with\n HTTP data. Most of the classes and functions provided by this module are\n used by the wrappers, but they are useful on their own, too, esp... | diff --git a/CHANGES.rst b/CHANGES.rst
index a3753ff79..3d25a164b 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -116,6 +116,21 @@ Unreleased
versions of Lighttpd. ``LighttpdCGIRootFix`` was renamed to
``CGIRootFix`` in 0.9. The old name emits a deprecation warning and
will be removed in the next version.... |
biopython__biopython-877 | Enforce basic PEP8 style with TravisCI
See also #493 for using a git pre-commit hook.
I would like to have the git pre-commit hook be quite strict, requiring explicit by-passing with `--no-verify` on a case by case basis, while the TravisCI check should be less onerous but mandatory. Right now something like this in `... | [
{
"content": "# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)\n# This code is part of the Biopython distribution and governed by its\n# license. Please see the LICENSE file that should have been included\n# as part of this package.\n\n\"\"\"Use the DSSP program to calculate secondary structure and... | [
{
"content": "# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)\n# This code is part of the Biopython distribution and governed by its\n# license. Please see the LICENSE file that should have been included\n# as part of this package.\n\n\"\"\"Use the DSSP program to calculate secondary structure and... | diff --git a/.travis-tox.ini b/.travis-tox.ini
new file mode 100644
index 00000000000..0aa225d4ee9
--- /dev/null
+++ b/.travis-tox.ini
@@ -0,0 +1,103 @@
+# This is a configuration file for tox, used to test
+# Biopython on various versions of Python etc under
+# the Travis Continous Integration service which is
+# conf... |
biopython__biopython-4683 | two test failures affecting Bio.SeqIO.SeqXmlIO in Debian sid
Greetings,
This issue may not be an easy one, and even risks being Debian
specific, so if you are busy somewhere else, then I won't mind.
:)
I'm having great difficulties pinpointing a change between
Debian testing and sid which is causing [Debian bu... | [
{
"content": "# Copyright 2010 by Thomas Schmitt.\n#\n# This file is part of the Biopython distribution and governed by your\n# choice of the \"Biopython License Agreement\" or the \"BSD 3-Clause License\".\n# Please see the LICENSE file that should have been included as part of this\n# package.\n\"\"\"Bio.SeqI... | [
{
"content": "# Copyright 2010 by Thomas Schmitt.\n#\n# This file is part of the Biopython distribution and governed by your\n# choice of the \"Biopython License Agreement\" or the \"BSD 3-Clause License\".\n# Please see the LICENSE file that should have been included as part of this\n# package.\n\"\"\"Bio.SeqI... | diff --git a/Bio/SeqIO/SeqXmlIO.py b/Bio/SeqIO/SeqXmlIO.py
index 4b95491c4c8..8fe75ebb728 100644
--- a/Bio/SeqIO/SeqXmlIO.py
+++ b/Bio/SeqIO/SeqXmlIO.py
@@ -441,7 +441,8 @@ class SeqXmlIterator(SequenceIterator):
method calls.
"""
- BLOCK = 1024
+ # Small block size can be a problem with libexpat 2.6.... |
aio-libs__aiohttp-4415 | Task was destroyed but it's pending
On master, I see outputs from `run_app()` like follows:
```
======== Running on http://0.0.0.0:8080 ========
(Press CTRL+C to quit)
Task was destroyed but it is pending!
task: <Task pending name='Task-4' coro=<RequestHandler.start() done, defined at /home/andrew/.virtualenvs/mul... | [
{
"content": "import asyncio\nimport asyncio.streams\nimport traceback\nfrom collections import deque\nfrom contextlib import suppress\nfrom html import escape as html_escape\nfrom http import HTTPStatus\nfrom logging import Logger\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Awaitable,\n Callabl... | [
{
"content": "import asyncio\nimport asyncio.streams\nimport traceback\nfrom collections import deque\nfrom contextlib import suppress\nfrom html import escape as html_escape\nfrom http import HTTPStatus\nfrom logging import Logger\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Awaitable,\n Callabl... | diff --git a/CHANGES/4408.bugfix b/CHANGES/4408.bugfix
new file mode 100644
index 00000000000..9185aaab042
--- /dev/null
+++ b/CHANGES/4408.bugfix
@@ -0,0 +1 @@
+Fix a warning about unfinished task in `web_protocol.py`
diff --git a/aiohttp/web_protocol.py b/aiohttp/web_protocol.py
index 30e9c387e2a..2b7eef5757e 100644
... |
AUTOMATIC1111__stable-diffusion-webui-12387 | [Bug]: Lora cannot be loaded in API mode
### Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
### What happened?
when I run webui --api to start a simple api only server, and I post a http request ,it show
**Skipping unknown extra networ... | [
{
"content": "from __future__ import annotations\r\n\r\nimport os\r\nimport sys\r\nimport time\r\nimport importlib\r\nimport signal\r\nimport re\r\nimport warnings\r\nimport json\r\nfrom threading import Thread\r\nfrom typing import Iterable\r\n\r\nfrom fastapi import FastAPI\r\nfrom fastapi.middleware.cors imp... | [
{
"content": "from __future__ import annotations\r\n\r\nimport os\r\nimport sys\r\nimport time\r\nimport importlib\r\nimport signal\r\nimport re\r\nimport warnings\r\nimport json\r\nfrom threading import Thread\r\nfrom typing import Iterable\r\n\r\nfrom fastapi import FastAPI\r\nfrom fastapi.middleware.cors imp... | diff --git a/webui.py b/webui.py
index a5b115759af..86a62a920ae 100644
--- a/webui.py
+++ b/webui.py
@@ -341,6 +341,7 @@ def api_only():
setup_middleware(app)
api = create_api(app)
+ modules.script_callbacks.before_ui_callback()
modules.script_callbacks.app_started_callback(None, app)
p... |
ansible-collections__amazon.aws-337 | ec2_eni idempotence bug
<!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
The encoding of groups causes a bytes type... | [
{
"content": "#!/usr/bin/python\n#\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION = '''\n---\nmodule: ec2_eni\nversion_added: 1.0.0\nshort_description: Crea... | [
{
"content": "#!/usr/bin/python\n#\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION = '''\n---\nmodule: ec2_eni\nversion_added: 1.0.0\nshort_description: Crea... | diff --git a/changelogs/fragments/337-ec2_eni-fix-idempotency-security-groups.yml b/changelogs/fragments/337-ec2_eni-fix-idempotency-security-groups.yml
new file mode 100644
index 00000000000..0a04d1de173
--- /dev/null
+++ b/changelogs/fragments/337-ec2_eni-fix-idempotency-security-groups.yml
@@ -0,0 +1,3 @@
+---
+mino... |
scikit-hep__awkward-1248 | `NumpyLike.to_rectilinear` fails for NumPy arrays
### Version of Awkward Array
1.8.3rc0
### Description and code to reproduce
This bug is most easily triggered when invoking a NumPy function with a rectilinear Awkward argument and NumPy rectilinear argument, e.g. `np.isin`:
```pycon
>>> reference = np.r_[1,2,3,4]
... | [
{
"content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\n# v2: keep this file, but modernize the 'of' function; ptr_lib is gone.\n\n\nimport ctypes\n\nfrom collections.abc import Iterable\n\nimport numpy\n\nimport awkward as ak\n\n\ndef of(*arrays):\n libs = se... | [
{
"content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\n# v2: keep this file, but modernize the 'of' function; ptr_lib is gone.\n\n\nimport ctypes\n\nfrom collections.abc import Iterable\n\nimport numpy\n\nimport awkward as ak\n\n\ndef of(*arrays):\n libs = se... | diff --git a/src/awkward/nplike.py b/src/awkward/nplike.py
index fac7effe42..e385a0b419 100644
--- a/src/awkward/nplike.py
+++ b/src/awkward/nplike.py
@@ -400,7 +400,10 @@ def __call__(self, *args):
class Numpy(NumpyLike):
def to_rectilinear(self, array, *args, **kwargs):
- if isinstance(
+ if isi... |
sktime__sktime-5368 | [BUG] `numba` related failures on main from `tslearn` `lcss`
On main, it seems we have the following `numba` related failures:
```
During: resolving callee type: type(CPUDispatcher(<function _local_squared_dist at 0x14fc267a0>))
During: typing of call at /Users/runner/hostedtoolcache/Python/3.10.13/x64/lib/python3... | [
{
"content": "# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Implements adapter for tslearn distances and kernels.\"\"\"\nimport numpy as np\n\n__all__ = [\"_TslearnPwTrafoAdapter\"]\n__author__ = [\"fkiraly\"]\n\n\ndef _subset_dict(d, keys):\n \"\"\"Subsets dictionary to keys... | [
{
"content": "# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Implements adapter for tslearn distances and kernels.\"\"\"\nimport numpy as np\n\n__all__ = [\"_TslearnPwTrafoAdapter\"]\n__author__ = [\"fkiraly\"]\n\n\ndef _subset_dict(d, keys):\n \"\"\"Subsets dictionary to keys... | diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 09ffafa2073..af09cdb481b 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -2,7 +2,7 @@ Contributors
============
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
-[
- **Google Chrome** (`Version 115.0.5790.171 (Official Build) (64-bit)`)
- **Python version** (`pyth... | [
{
"content": "\"\"\"\nFiftyOne Server app.\n\n| Copyright 2017-2023, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nfrom datetime import date, datetime\nimport os\nimport pathlib\n\nimport eta.core.utils as etau\nfrom starlette.applications import Starlette\nfrom starlette.middleware import ... | [
{
"content": "\"\"\"\nFiftyOne Server app.\n\n| Copyright 2017-2023, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nfrom datetime import date, datetime\nimport os\nimport pathlib\n\nimport eta.core.utils as etau\nfrom starlette.applications import Starlette\nfrom starlette.middleware import ... | diff --git a/fiftyone/server/app.py b/fiftyone/server/app.py
index 9c38331d843..8af626b0073 100644
--- a/fiftyone/server/app.py
+++ b/fiftyone/server/app.py
@@ -112,7 +112,6 @@ async def dispatch(
app=Static(
directory=os.path.join(os.path.dirname(__file__), "static"),
htm... |
City-of-Helsinki__linkedevents-130 | Add short description in kulke importer
| [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nimport os\nimport re\nimport functools\nfrom lxml import etree\nfrom modeltranslation.translator import translator\nimport dateutil\nfrom pytz import timezone\nfrom django.conf import settings\nfrom django.utils.timezone import get_... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nimport os\nimport re\nimport functools\nfrom lxml import etree\nfrom modeltranslation.translator import translator\nimport dateutil\nfrom pytz import timezone\nfrom django.conf import settings\nfrom django.utils.timezone import get_... | diff --git a/events/importer/kulke.py b/events/importer/kulke.py
index 458485b2e..bc3e86fa5 100644
--- a/events/importer/kulke.py
+++ b/events/importer/kulke.py
@@ -298,6 +298,7 @@ def clean(t):
description = ''
if caption:
description += caption
+ event['short_description'][la... |
sql-machine-learning__elasticdl-532 | Fix logging issue
Currently, the logging is not working as intended. E.g. the formatting was ignored for WARNING and INFO log are not printed out.
| [
{
"content": "import logging\nimport time\nimport argparse\nimport os\nimport recordio\n\nimport grpc\nimport tensorflow as tf\n\ntf.enable_eager_execution()\n\nfrom contextlib import closing\nfrom concurrent import futures\nfrom elasticdl.proto import elasticdl_pb2_grpc\nfrom elasticdl.python.elasticdl.master.... | [
{
"content": "import logging\nimport time\nimport argparse\nimport os\nimport recordio\n\nimport grpc\nimport tensorflow as tf\n\ntf.enable_eager_execution()\n\nfrom contextlib import closing\nfrom concurrent import futures\nfrom elasticdl.proto import elasticdl_pb2_grpc\nfrom elasticdl.python.elasticdl.master.... | diff --git a/elasticdl/python/elasticdl/master/main.py b/elasticdl/python/elasticdl/master/main.py
index 3cc388df8..9e5cc153b 100644
--- a/elasticdl/python/elasticdl/master/main.py
+++ b/elasticdl/python/elasticdl/master/main.py
@@ -157,7 +157,9 @@ def main():
"--master_addr",
master_addr,
... |
WeblateOrg__weblate-4665 | migrations fail for database name containing "-"
**Describe the bug**
Applying memory.0007_use_trigram...Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.SyntaxError: syntax er... | [
{
"content": "# Generated by Django 3.0.5 on 2020-05-12 11:44\n\nfrom django.db import migrations\n\n\ndef update_index(apps, schema_editor):\n if schema_editor.connection.vendor != \"postgresql\":\n return\n # This ensures that extensions are loaded into the session. Without that\n # the next A... | [
{
"content": "# Generated by Django 3.0.5 on 2020-05-12 11:44\n\nfrom django.db import migrations\n\n\ndef update_index(apps, schema_editor):\n if schema_editor.connection.vendor != \"postgresql\":\n return\n # This ensures that extensions are loaded into the session. Without that\n # the next A... | diff --git a/weblate/memory/migrations/0008_adjust_similarity.py b/weblate/memory/migrations/0008_adjust_similarity.py
index 1cb119c0a701..fd125cca4090 100644
--- a/weblate/memory/migrations/0008_adjust_similarity.py
+++ b/weblate/memory/migrations/0008_adjust_similarity.py
@@ -15,7 +15,7 @@ def update_index(apps, sche... |
wright-group__WrightTools-552 | setter for null
Currently null is not settable on a channel
It can be worked around with `channel.attrs['null']`
| [
{
"content": "\"\"\"Channel class and associated.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport numpy as np\n\nimport h5py\n\nfrom .. import kit as wt_kit\nfrom .._dataset import Dataset\n\n\n# --- class -------------------------------... | [
{
"content": "\"\"\"Channel class and associated.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport numpy as np\n\nimport h5py\n\nfrom .. import kit as wt_kit\nfrom .._dataset import Dataset\n\n\n# --- class -------------------------------... | diff --git a/WrightTools/data/_channel.py b/WrightTools/data/_channel.py
index 5302ada5b..f5f32892c 100644
--- a/WrightTools/data/_channel.py
+++ b/WrightTools/data/_channel.py
@@ -93,6 +93,10 @@ def null(self):
self.attrs['null'] = 0
return self.attrs['null']
+ @null.setter
+ def null(sel... |
encode__uvicorn-943 | Docs: workers = 1 when WEB_CONCURRENCY is not set
Hello, thanks for this great ASGI server 🙂
I have an application that must use only one worker (it's not thread-safe), and so I wanted to confirm that, by default, uvicorn only uses one worker. But I had to read the source code
https://github.com/encode/uvicorn/... | [
{
"content": "import logging\nimport platform\nimport ssl\nimport sys\nimport typing\n\nimport click\n\nimport uvicorn\nfrom uvicorn.config import (\n HTTP_PROTOCOLS,\n INTERFACES,\n LIFESPAN,\n LOG_LEVELS,\n LOGGING_CONFIG,\n LOOP_SETUPS,\n SSL_PROTOCOL_VERSION,\n WS_PROTOCOLS,\n Con... | [
{
"content": "import logging\nimport platform\nimport ssl\nimport sys\nimport typing\n\nimport click\n\nimport uvicorn\nfrom uvicorn.config import (\n HTTP_PROTOCOLS,\n INTERFACES,\n LIFESPAN,\n LOG_LEVELS,\n LOGGING_CONFIG,\n LOOP_SETUPS,\n SSL_PROTOCOL_VERSION,\n WS_PROTOCOLS,\n Con... | diff --git a/docs/deployment.md b/docs/deployment.md
index cec0d8ef8..8aabe1b18 100644
--- a/docs/deployment.md
+++ b/docs/deployment.md
@@ -45,7 +45,7 @@ Options:
--workers INTEGER Number of worker processes. Defaults to the
$WEB_CONCURRENCY environment variable if... |
plotly__dash-2175 | [BUG] NoUpdate.is_no_update can't handle ndarray
**Describe your context**
currently running project using dash for data display, callbacks pass ndarrays of certain sections of data to view
```
dash 2.6.0
dash-bootstrap-components 1.2.0
dash-core-components 2.0.0
dash-daq ... | [
{
"content": "import collections\nfrom functools import wraps\n\nimport flask\n\nfrom .dependencies import (\n handle_callback_args,\n handle_grouped_callback_args,\n Output,\n)\nfrom .exceptions import (\n PreventUpdate,\n WildcardInLongCallback,\n DuplicateCallback,\n MissingLongCallbackM... | [
{
"content": "import collections\nfrom functools import wraps\n\nimport flask\n\nfrom .dependencies import (\n handle_callback_args,\n handle_grouped_callback_args,\n Output,\n)\nfrom .exceptions import (\n PreventUpdate,\n WildcardInLongCallback,\n DuplicateCallback,\n MissingLongCallbackM... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1a73465b95..ae4c6516dc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
## [UNRELEASED]
+### Fixed
+
+- [#2175](https://github.com/plotly/dash/pull/2175) Fix [#2173](https://github.com/plo... |
wright-group__WrightTools-878 | pcov TypeError in kit._leastsq
In kit._leastsq, if the line 62 if statement is not passed, the consequent else statement makes pcov data type float, triggering"TypeError: 'int' object is not subscriptable" in line 72-73:
72: try:
73: error.append(np.absolute(pcov[i][i]) ** 0.5)
Line 74 picks ... | [
{
"content": "\"\"\"Least-square fitting tools.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nfrom ._utilities import Timer\n\nimport numpy as np\n\nfrom scipy import optimize as scipy_optimize\n\n\n# --- define ------------------------------... | [
{
"content": "\"\"\"Least-square fitting tools.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nfrom ._utilities import Timer\n\nimport numpy as np\n\nfrom scipy import optimize as scipy_optimize\n\n\n# --- define ------------------------------... | diff --git a/WrightTools/kit/_leastsq.py b/WrightTools/kit/_leastsq.py
index 1c9393579..d448ba367 100644
--- a/WrightTools/kit/_leastsq.py
+++ b/WrightTools/kit/_leastsq.py
@@ -65,7 +65,7 @@ def errfunc(p, x, y):
if cov_verbose:
print(pcov)
else:
- pcov = np.inf
+ ... |
spacetelescope__jwql-569 | Write tests for bokeh templating software
With the merge of #459, bokeh templating will be implemented for `jwql`. We should address the test coverage for this software.
| [
{
"content": "\"\"\"\nThis is a minimal example demonstrating how to create a Bokeh app using\nthe ``bokeh-templating`` package and the associated YAML template files.\n\nAuthor\n-------\n\n - Graham Kanarek\n\nDependencies\n------------\n\n The user must have PyYAML, Bokeh, and the ``bokeh-templating``\n... | [
{
"content": "\"\"\"\nThis is a minimal example demonstrating how to create a Bokeh app using\nthe ``bokeh-templating`` package and the associated YAML template files.\n\nAuthor\n-------\n\n - Graham Kanarek\n\nDependencies\n------------\n\n The user must have PyYAML, Bokeh, and the ``bokeh-templating``\n... | diff --git a/jwql/bokeh_templating/example/example_interface.yaml b/jwql/bokeh_templating/example/example_interface.yaml
index 7e6a32e3e..4aec297c7 100644
--- a/jwql/bokeh_templating/example/example_interface.yaml
+++ b/jwql/bokeh_templating/example/example_interface.yaml
@@ -1,24 +1,15 @@
-- !ColumnDataSource: &dummy ... |
scipy__scipy-10353 | BUG: interpolate.NearestNDInterpolator with pandas
interpolate.NearestNDInterpolator does not work as expected when used with selected pandas dataframe.
This is due to the index being maintained when making selections in pandas.
### Reproducing code example:
```
import numpy as np
import pandas as pd
from scip... | [
{
"content": "\"\"\"\nConvenience interface to N-D interpolation\n\n.. versionadded:: 0.9\n\n\"\"\"\nfrom __future__ import division, print_function, absolute_import\n\nimport numpy as np\nfrom .interpnd import LinearNDInterpolator, NDInterpolatorBase, \\\n CloughTocher2DInterpolator, _ndim_coords_from_arra... | [
{
"content": "\"\"\"\nConvenience interface to N-D interpolation\n\n.. versionadded:: 0.9\n\n\"\"\"\nfrom __future__ import division, print_function, absolute_import\n\nimport numpy as np\nfrom .interpnd import LinearNDInterpolator, NDInterpolatorBase, \\\n CloughTocher2DInterpolator, _ndim_coords_from_arra... | diff --git a/scipy/interpolate/ndgriddata.py b/scipy/interpolate/ndgriddata.py
index 023c439f8451..e7f9fddd7e44 100644
--- a/scipy/interpolate/ndgriddata.py
+++ b/scipy/interpolate/ndgriddata.py
@@ -62,7 +62,7 @@ def __init__(self, x, y, rescale=False, tree_options=None):
if tree_options is None:
... |
ibis-project__ibis-8397 | feat: SQL Server Hierarchical Column Support
### Is your feature request related to a problem?
I am trying SQL Server IBIS on Adventure Works SQL Server sample OLTP DB, as it has complex datatypes
https://learn.microsoft.com/en-us/sql/samples/adventureworks-install-configure?view=sql-server-ver16&tabs=ssms
I disco... | [
{
"content": "from __future__ import annotations\n\nfrom functools import partial\nfrom typing import NoReturn\n\nimport sqlglot as sg\nimport sqlglot.expressions as sge\n\nimport ibis.common.exceptions as com\nimport ibis.expr.datatypes as dt\nfrom ibis.common.collections import FrozenDict\nfrom ibis.formats i... | [
{
"content": "from __future__ import annotations\n\nfrom functools import partial\nfrom typing import NoReturn\n\nimport sqlglot as sg\nimport sqlglot.expressions as sge\n\nimport ibis.common.exceptions as com\nimport ibis.expr.datatypes as dt\nfrom ibis.common.collections import FrozenDict\nfrom ibis.formats i... | diff --git a/ibis/backends/base/sqlglot/datatypes.py b/ibis/backends/base/sqlglot/datatypes.py
index 9cd03adbd622..fb104c11746f 100644
--- a/ibis/backends/base/sqlglot/datatypes.py
+++ b/ibis/backends/base/sqlglot/datatypes.py
@@ -894,6 +894,8 @@ def _from_sqlglot_STRUCT(cls, *cols: sge.ColumnDef) -> NoReturn:
class M... |
googleapis__google-api-python-client-497 | Documentation not correct for "import" function for variants
Line 142 of google-api-python-client/googleapiclient/discovery.py
Reads:
_The name with a '\_' prefixed if the name is a reserved word._
Should read:
_The name with a '\_' appended if the name is a reserved word._
Also, the [suggested code in the docs]... | [
{
"content": "# Copyright 2014 Google Inc. 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# Unles... | [
{
"content": "# Copyright 2014 Google Inc. 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# Unles... | diff --git a/googleapiclient/discovery.py b/googleapiclient/discovery.py
index 5c8624902da..e8b35273f90 100644
--- a/googleapiclient/discovery.py
+++ b/googleapiclient/discovery.py
@@ -138,7 +138,7 @@ def fix_method_name(name):
name: string, method name.
Returns:
- The name with a '_' prefixed if the name ... |
facebookresearch__hydra-1593 | [Bug] Config composition error with latest version of OmegaConf
# 🐛 Bug
## Description
When using OmegaConf at commit 2dd15f9 (first commit where this problem occurs), there are multiple Hydra tests failures, for instance:
```
pytest "tests/test_basic_launcher.py::TestBasicLauncher::test_sweep_1_job[basic-over... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nfrom dataclasses import dataclass, field\nfrom typing import Any, Dict, List, Optional\n\nfrom omegaconf import MISSING\n\nfrom hydra.core.config_store import ConfigStore\n\n\n@dataclass\nclass HelpConf:\n app_name: str = M... | [
{
"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nfrom dataclasses import dataclass, field\nfrom typing import Any, Dict, List, Optional\n\nfrom omegaconf import MISSING\n\nfrom hydra.core.config_store import ConfigStore\n\n\n@dataclass\nclass HelpConf:\n app_name: str = M... | diff --git a/hydra/conf/__init__.py b/hydra/conf/__init__.py
index bcb5648d2f5..c3eaaac462b 100644
--- a/hydra/conf/__init__.py
+++ b/hydra/conf/__init__.py
@@ -95,7 +95,8 @@ class RuntimeConf:
config_sources: List[ConfigSourceInfo] = MISSING
# Composition choices dictionary
- choices: Dict[str, str] = f... |
ckan__ckan-3631 | Problem adding datasets to a group on package_create, the user has 'Editor' capacity
### CKAN Version if known (or site URL)
Found in 2.2.2 and later
### Please describe the expected behaviour
I manage a customized CKAN for a client. The create dataset page is changed in a way it is possible to add all metadata to... | [
{
"content": "# encoding: utf-8\n\nimport ckan.logic as logic\nimport ckan.authz as authz\nimport ckan.logic.auth as logic_auth\n\nfrom ckan.common import _\n\n@logic.auth_allow_anonymous_access\ndef package_create(context, data_dict=None):\n user = context['user']\n\n if authz.auth_is_anon_user(context):... | [
{
"content": "# encoding: utf-8\n\nimport ckan.logic as logic\nimport ckan.authz as authz\nimport ckan.logic.auth as logic_auth\n\nfrom ckan.common import _\n\n@logic.auth_allow_anonymous_access\ndef package_create(context, data_dict=None):\n user = context['user']\n\n if authz.auth_is_anon_user(context):... | diff --git a/ckan/logic/auth/create.py b/ckan/logic/auth/create.py
index 9d588c92696..8977d735327 100644
--- a/ckan/logic/auth/create.py
+++ b/ckan/logic/auth/create.py
@@ -195,7 +195,7 @@ def _check_group_auth(context, data_dict):
groups = groups - set(pkg_groups)
for group in groups:
- if not a... |
conan-io__conan-center-index-2128 | [package] wt/4.3.1: duplicate symbols during linking, "multiple definition of `Wt::WServer::~WServer()"
### Package and Environment Details (include every applicable attribute)
* Package Name/Version: **wt/4.3.1**
* Operating System+version: **Linux Ubuntu 20.04**
* Compiler+version: **GCC 9**
* Docker imag... | [
{
"content": "from conans import ConanFile, CMake, tools\nimport os\nimport shutil\n\n\nclass WtConan(ConanFile):\n name = \"wt\"\n description = \"Wt is a C++ library for developing web applications\"\n url = \"https://github.com/conan-io/conan-center-index\"\n homepage = \"https://github.com/emweb... | [
{
"content": "from conans import ConanFile, CMake, tools\nimport os\nimport shutil\n\n\nclass WtConan(ConanFile):\n name = \"wt\"\n description = \"Wt is a C++ library for developing web applications\"\n url = \"https://github.com/conan-io/conan-center-index\"\n homepage = \"https://github.com/emweb... | diff --git a/recipes/wt/all/conanfile.py b/recipes/wt/all/conanfile.py
index 1c99d380cddf1..5a538da9728ae 100644
--- a/recipes/wt/all/conanfile.py
+++ b/recipes/wt/all/conanfile.py
@@ -41,7 +41,7 @@ class WtConan(ConanFile):
'with_postgres': True,
'with_mysql': True,
'with_mssql': False,
- ... |
getpelican__pelican-880 | Exception on WP import looking for <pre> tag
Another quick one. In `decode_wp_content()`:
``` python
start = pre_part.index("<pre")
```
should be:
``` python
start = pre_part.find("<pre")
```
because the next line checks for `start == -1`, but `index()` throws `ValueError` when the value can't be found, whereas `f... | [
{
"content": "#!/usr/bin/env python\n\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals, print_function\nimport argparse\ntry:\n # py3k import\n from html.parser import HTMLParser\nexcept ImportError:\n # py2 import\n from HTMLParser import HTMLParser # NOQA\nimport os\nimport re\ni... | [
{
"content": "#!/usr/bin/env python\n\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals, print_function\nimport argparse\ntry:\n # py3k import\n from html.parser import HTMLParser\nexcept ImportError:\n # py2 import\n from HTMLParser import HTMLParser # NOQA\nimport os\nimport re\ni... | diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py
index 9e477c2cf..8ebb7659b 100755
--- a/pelican/tools/pelican_import.py
+++ b/pelican/tools/pelican_import.py
@@ -37,7 +37,7 @@ def decode_wp_content(content, br=True):
pre_index = 0
for pre_part in pre_parts:
- ... |
mitmproxy__mitmproxy-5476 | ValueError: mutable default <class 'mitmproxy.contentviews.grpc.ProtoParser.ParserOptions'> for field parser_options is not allowed: use default_factory on python 3.11
#### Problem Description
mitmproxy fails to start throwing a `ValueError` exception:
```
ValueError: mutable default <class 'mitmproxy.contentviews.g... | [
{
"content": "from __future__ import annotations\n\nimport struct\nfrom dataclasses import dataclass, field\nfrom enum import Enum\nfrom typing import Generator, Iterable, Iterator\n\nfrom mitmproxy import contentviews, ctx, flow, flowfilter, http\nfrom mitmproxy.contentviews import base\nfrom mitmproxy.net.enc... | [
{
"content": "from __future__ import annotations\n\nimport struct\nfrom dataclasses import dataclass, field\nfrom enum import Enum\nfrom typing import Generator, Iterable, Iterator\n\nfrom mitmproxy import contentviews, ctx, flow, flowfilter, http\nfrom mitmproxy.contentviews import base\nfrom mitmproxy.net.enc... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2e575e51d4..f9f75be9fa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,8 @@
* Remove overambitious assertions in the HTTP state machine,
fix some error handling.
([#5383](https://github.com/mitmproxy/mitmproxy/issues/5383), @mhils)
+* Use default_factory f... |
huggingface__huggingface_hub-234 | Error when creating a repository
This error happens on huggingface_hub version 0.0.14 (current version) when creating a new dataset repository
```bash
(py38) bash-3.2$ huggingface-cli repo create --type dataset codeparrot-train
git version 2.29.2
git-lfs/2.13.3 (GitHub; darwin amd64; go 1.16.2; git a5e65851)
T... | [
{
"content": "# Copyright 2020 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#... | [
{
"content": "# Copyright 2020 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#... | diff --git a/src/huggingface_hub/commands/user.py b/src/huggingface_hub/commands/user.py
index 7c02d87fc4..1da7debe3a 100644
--- a/src/huggingface_hub/commands/user.py
+++ b/src/huggingface_hub/commands/user.py
@@ -224,7 +224,7 @@ def run(self):
)
print("")
- user, _ = self._api.whoami(to... |
svthalia__concrexit-1802 | AttributeError: 'Event' object has no attribute 'title_en'
Sentry Issue: [CONCREXIT-70](https://sentry.io/organizations/thalia/issues/2487433496/?referrer=github_integration)
```
AttributeError: 'Event' object has no attribute 'title_en'
(9 additional frame(s) were not displayed)
...
File "django/contrib/admin/optio... | [
{
"content": "import hashlib\nimport logging\nimport os\nimport random\n\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.db import models\nfrom django.urls import reverse\nfrom django.utils import timezone\nfrom django.utils.functional import cached_property\nf... | [
{
"content": "import hashlib\nimport logging\nimport os\nimport random\n\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.db import models\nfrom django.urls import reverse\nfrom django.utils import timezone\nfrom django.utils.functional import cached_property\nf... | diff --git a/website/photos/models.py b/website/photos/models.py
index f479425a8..2d6498526 100644
--- a/website/photos/models.py
+++ b/website/photos/models.py
@@ -155,7 +155,7 @@ def save(self, **kwargs):
self.dirname = self.slug
if not self.title and self.event:
- self.title = self... |
mkdocs__mkdocs-1122 | AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier'
Using Python 2.6.6 on CentOS, I'm unable to run the server with livereload:
```
[mkdocs@dev test-docs]$ python /home/mkdocs/.local/lib/python2.6/site-packages/mkdocs/__main__.py serve --dev-addr=0.0.0.0:8080
WARNING: Support for Python 2.6 wil... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import print_function\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\nPY26 = sys.version_info[:2] == (2, 6)\n\n\nlong_description = (\n \"MkDocs is a fast, simple and downright gorgeous static site generator \"... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import print_function\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\nPY26 = sys.version_info[:2] == (2, 6)\n\n\nlong_description = (\n \"MkDocs is a fast, simple and downright gorgeous static site generator \"... | diff --git a/requirements/project-min.txt b/requirements/project-min.txt
index 7dc6e95ecf..6b0262e0d1 100644
--- a/requirements/project-min.txt
+++ b/requirements/project-min.txt
@@ -1,6 +1,6 @@
click==3.3
Jinja2==2.7.1
-livereload==2.3.2
+livereload==2.5.1
Markdown==2.5
PyYAML==3.10
tornado==4.1
diff --git a/requ... |
roboflow__supervision-845 | [LineZone] - flip in/out line crossing directions
## Description
Between `supervision-0.17.0` and `supervision-0.18.0`, releases in/out of the direction of the crossing were accidentally changed. Given that `LineZone` is one of the oldest features we have we do not want to make life difficult for users and want to r... | [
{
"content": "from typing import Dict, Iterable, Optional, Tuple\n\nimport cv2\nimport numpy as np\n\nfrom supervision.detection.core import Detections\nfrom supervision.draw.color import Color\nfrom supervision.draw.utils import draw_text\nfrom supervision.geometry.core import Point, Position, Vector\n\n\nclas... | [
{
"content": "from typing import Dict, Iterable, Optional, Tuple\n\nimport cv2\nimport numpy as np\n\nfrom supervision.detection.core import Detections\nfrom supervision.draw.color import Color\nfrom supervision.draw.utils import draw_text\nfrom supervision.geometry.core import Point, Position, Vector\n\n\nclas... | diff --git a/supervision/detection/line_counter.py b/supervision/detection/line_counter.py
index 09efd49da..8f09f2197 100644
--- a/supervision/detection/line_counter.py
+++ b/supervision/detection/line_counter.py
@@ -137,7 +137,7 @@ def trigger(self, detections: Detections) -> Tuple[np.ndarray, np.ndarray]:
... |
python-gitlab__python-gitlab-1058 | Scope "bug"
## Description of the problem, including code/CLI snippet
I am using the list method of project.issues to list issues with certain label. I am searching issue having "vulcheck" as label. In my project I have one issue with "vulcheck" label
```python
def issue_by_project_label(self):
print(self._pr... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2018 Gauvain Pocentek <gauvain@pocentek.net>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser General Public License as published by\n# the Free Software Foundation, either version 3 of th... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2018 Gauvain Pocentek <gauvain@pocentek.net>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser General Public License as published by\n# the Free Software Foundation, either version 3 of th... | diff --git a/gitlab/tests/test_types.py b/gitlab/tests/test_types.py
index 5b9f2caf8..3613383de 100644
--- a/gitlab/tests/test_types.py
+++ b/gitlab/tests/test_types.py
@@ -51,11 +51,19 @@ def test_empty_input(self):
o.set_from_cli(" ")
self.assertEqual([], o.get())
- def test_get_for_api(self):... |
TileDB-Inc__TileDB-Py-214 | Junk results using numpy structured arrays
Hey,
I am attempting to use a sparse multi attribute arrays but for some reason I seem to be getting junk results
TileDB-Py version (0.33.4)
Python version (3.6.9)
Here is a reproducing example (apologies that it is not very minimal)
```
import numpy as np
from n... | [
{
"content": "from __future__ import absolute_import, print_function\n\nimport multiprocessing\nimport os\nimport shutil\nimport subprocess\nimport zipfile\nimport platform\nfrom distutils.sysconfig import get_config_var\nfrom distutils.version import LooseVersion\n\n\ntry:\n # For Python 3\n from urllib.... | [
{
"content": "from __future__ import absolute_import, print_function\n\nimport multiprocessing\nimport os\nimport shutil\nimport subprocess\nimport zipfile\nimport platform\nfrom distutils.sysconfig import get_config_var\nfrom distutils.version import LooseVersion\n\n\ntry:\n # For Python 3\n from urllib.... | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 05b890b247..2b70d6602d 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -32,7 +32,7 @@ steps:
displayName: 'Print env'
- script: |
- python -m pip install --upgrade pip setuptools wheel numpy tox setuptools-scm cython psutil dask
+ py... |
pennersr__django-allauth-967 | TypeError: <function save at 0x7f9b4eab48c0> is not JSON serializable
I'm trying to write Slack provider plugin but just can't get to log in. I'm constantly seeing the error below. Oddly, I was able to login twice out of 20-30 attempts I made and I didn't really make any changes to the code.
This is also happening if ... | [
{
"content": "import re\nimport unicodedata\nimport json\n\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.core.validators import validate_email, ValidationError\nfrom django.core import urlresolvers\nfrom django.contrib.sites.models import Site\nfrom django.db.models import FieldDoesNotEx... | [
{
"content": "import re\nimport unicodedata\nimport json\n\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.core.validators import validate_email, ValidationError\nfrom django.core import urlresolvers\nfrom django.contrib.sites.models import Site\nfrom django.db.models import FieldDoesNotEx... | diff --git a/allauth/tests.py b/allauth/tests.py
index abee482765..9cabcb6071 100644
--- a/allauth/tests.py
+++ b/allauth/tests.py
@@ -85,12 +85,20 @@ class SomeModel(models.Model):
dt = models.DateTimeField()
t = models.TimeField()
d = models.DateField()
+
+ de... |
iterative__dvc-5085 | UTF-8 codec error while using dvc pull (surrogates not allowed)
# Bug Report
## Description
While using dvc pull, the task errors out with:
`ERROR: unexpected error - 'utf-8' codec can't encode characters in position 103-110: surrogates not allowed
`
### Reproduce
1. Try to push files with special characters ... | [
{
"content": "import errno\nimport logging\nimport os\nimport platform\nimport shutil\nimport sys\n\nfrom dvc.exceptions import DvcException\n\nlogger = logging.getLogger(__name__)\n\nif (\n platform.system() == \"Windows\"\n and sys.version_info < (3, 8)\n and sys.getwindowsversion() >= (6, 2)\n):\n ... | [
{
"content": "import errno\nimport logging\nimport os\nimport platform\nimport shutil\nimport sys\n\nfrom dvc.exceptions import DvcException\n\nlogger = logging.getLogger(__name__)\n\nif (\n platform.system() == \"Windows\"\n and sys.version_info < (3, 8)\n and sys.getwindowsversion() >= (6, 2)\n):\n ... | diff --git a/dvc/system.py b/dvc/system.py
index 1d7f0a9b5b..4b00bd8347 100644
--- a/dvc/system.py
+++ b/dvc/system.py
@@ -71,8 +71,8 @@ def _reflink_darwin(src, dst):
clonefile.restype = ctypes.c_int
return clonefile(
- ctypes.c_char_p(src.encode("utf-8")),
- ctypes.c_char_p(d... |
liqd__a4-opin-1799 | Changing the Organisation Details is not possible
**URL:**
https://opin.me/en/dashboard/organisations/liquid-democracy/settings/
**user:**
Initiators, who try to fill in the Organisations details & as an admin too.
**expected behaviour:**
If I fill in Organisation details, save them and it is there
**behaviour... | [
{
"content": "\nimport parler\nfrom django import forms\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom euth.organisations.models import Organisation\n\n\nclass OrganisationForm(forms.ModelForm):\n translat... | [
{
"content": "\nimport parler\nfrom django import forms\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom euth.organisations.models import Organisation\n\n\nclass OrganisationForm(forms.ModelForm):\n translat... | diff --git a/euth/dashboard/forms.py b/euth/dashboard/forms.py
index 9b54fb2d9..3ebcdb17f 100644
--- a/euth/dashboard/forms.py
+++ b/euth/dashboard/forms.py
@@ -81,7 +81,7 @@ def untranslated(self):
"""
return [field for field in self if '__' not in field.html_name]
- def prefiled_languages(self)... |
learningequality__kolibri-7761 | Kolibri fails to start if the timezone is detected incorrectly
### Observed behavior
In some environments, the time zone offset detected by tzlocal may not match the time zone offset of Python's `time.localtime()`. In that case, tzlocal's `get_localzone()` raises a `ValueError` exception: https://github.com/regebro/... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nDjango settings for kolibri project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.11/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/1.11/ref/settings/\n\"\"\"\nfrom __futu... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nDjango settings for kolibri project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.11/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/1.11/ref/settings/\n\"\"\"\nfrom __futu... | diff --git a/kolibri/deployment/default/settings/base.py b/kolibri/deployment/default/settings/base.py
index 167a1dad4bb..627e66e8e0c 100644
--- a/kolibri/deployment/default/settings/base.py
+++ b/kolibri/deployment/default/settings/base.py
@@ -251,7 +251,7 @@
try:
TIME_ZONE = get_localzone().zone
-except pytz.... |
fedora-infra__bodhi-1042 | GET on /masher/ errors with a 404 response
GET on `/masher` works, but GET on `/masher/` returns an HTTP 404 error code. We should add a route to allow the trailing slash on this URL.
| [
{
"content": "# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope t... | [
{
"content": "# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope t... | diff --git a/bodhi/server/__init__.py b/bodhi/server/__init__.py
index 8cd02bcf9c..35befc34ef 100644
--- a/bodhi/server/__init__.py
+++ b/bodhi/server/__init__.py
@@ -191,7 +191,7 @@ def main(global_config, testing=None, session=None, **settings):
# Metrics
config.add_route('metrics', '/metrics')
- confi... |
networkx__networkx-2647 | Readthedocs pain
Readthedocs (RTD) is a pain to work with and keeps having timeout errors. I started to look into whether we can build the docs on our own and push them to RTD instead of having it built on the site. It would also make more sense to have the doc build process as part of our CI process, rather than onl... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Sphinx documentation build configuration file, created by\n# sphinx-quickstart.py on Sat Mar 8 21:47:50 2008.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# The contents of this file are pickled, so don't put values in the ... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Sphinx documentation build configuration file, created by\n# sphinx-quickstart.py on Sat Mar 8 21:47:50 2008.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# The contents of this file are pickled, so don't put values in the ... | diff --git a/.gitignore b/.gitignore
index 66bacd3f735..c97869cbe22 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@ doc/networkx-documentation.zip
doc/networkx_reference.pdf
doc/networkx_tutorial.pdf
doc/build
+doc/doc_build
.coverage
*.class
diff --git a/.travis.yml b/.travis.yml
index 34d88b799b7..3... |
PrefectHQ__prefect-2467 | Feature/#2439 prefect server telemetry
**Thanks for contributing to Prefect!**
Please describe your work and make sure your PR:
- [x] adds new tests (if appropriate)
- [x] updates `CHANGELOG.md` (if appropriate)
- [x] updates docstrings for any new functions or function arguments, including `docs/outline.toml` ... | [
{
"content": "import os\nimport shutil\nimport subprocess\nimport tempfile\nimport time\nfrom pathlib import Path\n\nimport click\nimport yaml\n\nimport prefect\nfrom prefect import config\nfrom prefect.utilities.configuration import set_temporary_config\nfrom prefect.utilities.docker_util import platform_is_li... | [
{
"content": "import os\nimport shutil\nimport subprocess\nimport tempfile\nimport time\nfrom pathlib import Path\n\nimport click\nimport yaml\n\nimport prefect\nfrom prefect import config\nfrom prefect.utilities.configuration import set_temporary_config\nfrom prefect.utilities.docker_util import platform_is_li... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6fec2af82e13..5fa3c51ba80c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@ These changes are available in the [release/0.11.0 branch](https://github.com/Pr
### Server
- Add "cancellation-lite" semantic by preventing task runs from running if the flow run... |
imAsparky__django-cookiecutter-202 | [BUG]: Selecting django-allauth=n does not remove django-allauth HTML templates.
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear... | [
{
"content": "#!/usr/bin/env python\n\"\"\"django-cookiecutter post project generation jobs.\"\"\"\nimport os\nimport subprocess # nosec\nfrom shutil import rmtree\n\nPROJECT_DIRECTORY = os.path.realpath(os.path.curdir)\n\nREMOTE_REPO = \"git@github.com:{{cookiecutter.github_username}}/\\\n{{cookiecutter.git_p... | [
{
"content": "#!/usr/bin/env python\n\"\"\"django-cookiecutter post project generation jobs.\"\"\"\nimport os\nimport subprocess # nosec\nfrom shutil import rmtree\n\nPROJECT_DIRECTORY = os.path.realpath(os.path.curdir)\n\nREMOTE_REPO = \"git@github.com:{{cookiecutter.github_username}}/\\\n{{cookiecutter.git_p... | diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py
index fb39b27c..304bd5a3 100644
--- a/hooks/post_gen_project.py
+++ b/hooks/post_gen_project.py
@@ -53,6 +53,8 @@
compose {% endif %}',
'{% if cookiecutter.deploy_with_docker == "n" %} \
docker-entrypoint.sh {% endif %}',
+ '{%... |
yt-project__yt-2259 | Index Error updating from YT-3.4.0 to YT-3.5.1
<!--To help us understand and resolve your issue, please fill out the form to
the best of your ability.-->
<!--You can feel free to delete the sections that do not apply.-->
### Bug report
**Bug summary**
Index error after yt upgrade
**Code for reproduction*... | [
{
"content": "\"\"\"\nDefinitions for RAMSES files\n\n\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the file COPYING.txt, distr... | [
{
"content": "\"\"\"\nDefinitions for RAMSES files\n\n\n\n\n\"\"\"\n\n#-----------------------------------------------------------------------------\n# Copyright (c) 2013, yt Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the file COPYING.txt, distr... | diff --git a/yt/frontends/ramses/definitions.py b/yt/frontends/ramses/definitions.py
index 9cc8278edaf..78b20ed4e70 100644
--- a/yt/frontends/ramses/definitions.py
+++ b/yt/frontends/ramses/definitions.py
@@ -42,7 +42,8 @@ def ramses_header(hvals):
('stat', 3, 'd'),
('cosm', 7, 'd'),... |
rucio__rucio-1028 | Move conveyor transfers to third_party_copy_operation
Motivation
----------
At the moment read is used for source and write is used for destination, for both third_party_copy should be used.
| [
{
"content": "\n'''\nThis file is automatically generated; Do not edit it. :)\n'''\nVERSION_INFO = {\n 'final': True,\n 'version': '1.15.3',\n 'branch_nick': 'patch-0-Rucio_1_15_3_preparation',\n 'revision_id': 'cd14416223d0b81a940312cb180a07778f85f1f8',\n 'revno': 6357\n}\n",
"path": "lib/ru... | [
{
"content": "\n'''\nThis file is automatically generated; Do not edit it. :)\n'''\nVERSION_INFO = {\n 'final': True,\n 'version': '1.15.4',\n 'branch_nick': 'patch-0-Rucio_1_15_4_preparation',\n 'revision_id': 'c2972be03297dc73a65d35bc9ffab1516efffebb',\n 'revno': 6402\n}\n",
"path": "lib/ru... | diff --git a/doc/source/releasenotes/1.15.4.rst b/doc/source/releasenotes/1.15.4.rst
new file mode 100644
index 0000000000..5bcb57f505
--- /dev/null
+++ b/doc/source/releasenotes/1.15.4.rst
@@ -0,0 +1,35 @@
+======
+1.15.4
+======
+
+-------
+General
+-------
+
+************
+Enhancements
+************
+
+- Core & Inte... |
meltano__meltano-6676 | bug: Test connector - asyncio
### Meltano Version
2.4.0
### Python Version
3.9
### Bug scope
CLI (options, error messages, logging, etc.)
### Operating System
Rocky Linux release 8.6
### Description
```
meltano config tap-postgres test
```
above command works fine till version 2.1.0 and ... | [
{
"content": "\"\"\"Plugin invoker class.\"\"\"\n\nfrom __future__ import annotations\n\nimport asyncio\nimport enum\nimport logging\nimport os\nimport uuid\nfrom contextlib import asynccontextmanager\nfrom pathlib import Path\nfrom typing import Any, Generator\n\nfrom structlog.stdlib import get_logger\n\nfrom... | [
{
"content": "\"\"\"Plugin invoker class.\"\"\"\n\nfrom __future__ import annotations\n\nimport asyncio\nimport enum\nimport logging\nimport os\nimport uuid\nfrom contextlib import asynccontextmanager\nfrom pathlib import Path\nfrom typing import Any, Generator\n\nfrom structlog.stdlib import get_logger\n\nfrom... | diff --git a/src/meltano/core/plugin_invoker.py b/src/meltano/core/plugin_invoker.py
index 7d6d238391..6f54d2c952 100644
--- a/src/meltano/core/plugin_invoker.py
+++ b/src/meltano/core/plugin_invoker.py
@@ -433,7 +433,7 @@ async def _invoke(
self.plugin, self.plugin.executable
) fr... |
GPflow__GPflow-2052 | Missing Reference to Manipulating Kernels Page
# Documentation/tutorial notebooks
In the [Kernel Design page](https://gpflow.github.io/GPflow/2.7.0/notebooks/tailor/kernel_design.html), there is a missing reference to the "Manipulating Kernels" notebook at the end. This notebook seems accessible from the old documen... | [
{
"content": "# ---\n# jupyter:\n# jupytext:\n# formats: ipynb,.pct.py:percent\n# text_representation:\n# extension: .py\n# format_name: percent\n# format_version: '1.3'\n# jupytext_version: 1.3.3\n# kernelspec:\n# display_name: Python 3\n# language: python\n# nam... | [
{
"content": "# ---\n# jupyter:\n# jupytext:\n# formats: ipynb,.pct.py:percent\n# text_representation:\n# extension: .py\n# format_name: percent\n# format_version: '1.3'\n# jupytext_version: 1.3.3\n# kernelspec:\n# display_name: Python 3\n# language: python\n# nam... | diff --git a/doc/sphinx/notebooks/tailor/kernel_design.pct.py b/doc/sphinx/notebooks/tailor/kernel_design.pct.py
index b72f93be9..67fd32c66 100644
--- a/doc/sphinx/notebooks/tailor/kernel_design.pct.py
+++ b/doc/sphinx/notebooks/tailor/kernel_design.pct.py
@@ -136,4 +136,4 @@ def plotkernelfunction(k, ax, xmin=0, xmax=... |
conda__conda-build-1493 | Getting a "Error: no such patch:" when the field is empty
@msarahan I noticed that latest `conda-build` is failing when a field is empty for certain platforms. This used to work:
```yaml
patches:
- skip_failing_test.patch # [osx]
- makefile.vc.patch # [win]
```
but now I need to add a `# [not linu... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import defaultdict\nimport contextlib\nfrom difflib import get_close_matches\nimport fnmatch\nfrom glob import glob\nfrom locale import getpreferredencoding\nimport logging\nimport operator\nimport os\nfrom os.pat... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import defaultdict\nimport contextlib\nfrom difflib import get_close_matches\nimport fnmatch\nfrom glob import glob\nfrom locale import getpreferredencoding\nimport logging\nimport operator\nimport os\nfrom os.pat... | diff --git a/conda_build/utils.py b/conda_build/utils.py
index 882930380b..1cf9d045c1 100644
--- a/conda_build/utils.py
+++ b/conda_build/utils.py
@@ -598,6 +598,9 @@ def package_has_file(package_path, file_path):
def ensure_list(arg):
from .conda_interface import string_types
- if isinstance(arg, string_typ... |
modin-project__modin-4769 | test_join_sort.py in CI failed by timeout with new Dask release - 2022.2.0
Error: https://github.com/modin-project/modin/runs/5195622251?check_suite_focus=true
Dask release - https://github.com/dask/dask/releases/tag/2022.02.0
Fastest option here - pin `dask<2022.2.0`, but it also requires an investigation into t... | [
{
"content": "from setuptools import setup, find_packages\nimport versioneer\nimport sys\n\nPANDAS_VERSION = \"1.4.3\" if sys.version_info >= (3, 8) else \"1.1.5\"\n\nwith open(\"README.md\", \"r\", encoding=\"utf-8\") as fh:\n long_description = fh.read()\n\ndask_deps = [\"dask>=2.22.0,<2022.2.0\", \"distri... | [
{
"content": "from setuptools import setup, find_packages\nimport versioneer\nimport sys\n\nPANDAS_VERSION = \"1.4.3\" if sys.version_info >= (3, 8) else \"1.1.5\"\n\nwith open(\"README.md\", \"r\", encoding=\"utf-8\") as fh:\n long_description = fh.read()\n\ndask_deps = [\"dask>=2.22.0\", \"distributed>=2.2... | diff --git a/docs/release_notes/release_notes-0.16.0.rst b/docs/release_notes/release_notes-0.16.0.rst
index f56ac93898e..e8ee3884053 100644
--- a/docs/release_notes/release_notes-0.16.0.rst
+++ b/docs/release_notes/release_notes-0.16.0.rst
@@ -72,6 +72,7 @@ Key Features and Updates
* Dependencies
* FEAT-#4598: Add... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.