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 ⌀ |
|---|---|---|---|---|
buildbot__buildbot-7664 | GitPoller in 3.11.3 is not able to detect changes
We've quite basic [GitPoller](https://github.com/openwrt/buildbot/blob/main/phase1/master.cfg#L352) usage:
```python
GitPoller(
repo_url,
workdir=work_dir + "/work.git",
branches=branchNames,
pollAtLaunch=True,
pollinterv... | [
{
"content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n... | [
{
"content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n... | diff --git a/master/buildbot/changes/gitpoller.py b/master/buildbot/changes/gitpoller.py
index ce818a454461..794309853fcb 100644
--- a/master/buildbot/changes/gitpoller.py
+++ b/master/buildbot/changes/gitpoller.py
@@ -395,7 +395,7 @@ def poll(self):
break
rev = yield self._dovcc... |
cupy__cupy-6232 | compile_with_cache no longer returns result
I think there was a mistake when this function was refactored to include the deprecation message. Previously, it returned the compilation result. Now it calls `_compile_module_with_cache`, but the return value is ignored.
| [
{
"content": "import copy\nimport hashlib\nimport math\nimport os\nimport platform\nimport re\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\nimport warnings\n\nfrom cupy.cuda import device\nfrom cupy.cuda import function\nfrom cupy.cuda import get_rocm_path\nfrom cupy_backends.cuda.api import d... | [
{
"content": "import copy\nimport hashlib\nimport math\nimport os\nimport platform\nimport re\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\nimport warnings\n\nfrom cupy.cuda import device\nfrom cupy.cuda import function\nfrom cupy.cuda import get_rocm_path\nfrom cupy_backends.cuda.api import d... | diff --git a/cupy/cuda/compiler.py b/cupy/cuda/compiler.py
index a8f35b8d499..24aa6aa159e 100644
--- a/cupy/cuda/compiler.py
+++ b/cupy/cuda/compiler.py
@@ -457,7 +457,7 @@ def compile_with_cache(*args, **kwargs):
'cupy.cuda.compile_with_cache has been deprecated in CuPy v10, and'
' will be removed in... |
google__fuzzbench-630 | Make issues: debug is broken, run is impossible to control-C out of
make debug- is broken. `make debug-libfuzzer-zlib_zlib_uncompress_fuzzer` fails with this error:
```
docker run \ ... | [
{
"content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/docker/generate_makefile.py b/docker/generate_makefile.py
index 7a8f910db..919f77379 100755
--- a/docker/generate_makefile.py
+++ b/docker/generate_makefile.py
@@ -59,6 +59,8 @@ def _print_makefile_run_template(image):
print('\t-e MAX_TOTAL_TIME=20 \\\n\t-e SNAPSHOT_PERIOD=10 \\')
if ... |
spesmilo__electrum-1738 | Feature request: Label colour - History Window
The transaction amount of outgoing transactions, when viewed in the history window, is coloured red.
It would be a nice if the label of these transactions could be coloured the same red colour so that they stand out more against the other incoming transactions.
Not a b... | [
{
"content": "#!/usr/bin/env python\n#\n# Electrum - lightweight Bitcoin client\n# Copyright (C) 2015 Thomas Voegtlin\n#\n# Permission is hereby granted, free of charge, to any person\n# obtaining a copy of this software and associated documentation files\n# (the \"Software\"), to deal in the Software without r... | [
{
"content": "#!/usr/bin/env python\n#\n# Electrum - lightweight Bitcoin client\n# Copyright (C) 2015 Thomas Voegtlin\n#\n# Permission is hereby granted, free of charge, to any person\n# obtaining a copy of this software and associated documentation files\n# (the \"Software\"), to deal in the Software without r... | diff --git a/gui/qt/history_widget.py b/gui/qt/history_widget.py
index e747afc615d7..f1bf67966bec 100644
--- a/gui/qt/history_widget.py
+++ b/gui/qt/history_widget.py
@@ -92,6 +92,7 @@ def on_update(self):
if i!=2:
item.setFont(i, QFont(MONOSPACE_FONT))
if value < 0:
+... |
quantumlib__Cirq-1673 | Two circuit diagram tests that rest in `contrib` are failing on Windows
See: https://travis-ci.com/quantumlib/Cirq/jobs/202641395
| [
{
"content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | [
{
"content": "# Copyright 2018 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | diff --git a/cirq/contrib/paulistring/convert_to_pauli_string_phasors.py b/cirq/contrib/paulistring/convert_to_pauli_string_phasors.py
index 10e8ba3f769..f05e597161f 100644
--- a/cirq/contrib/paulistring/convert_to_pauli_string_phasors.py
+++ b/cirq/contrib/paulistring/convert_to_pauli_string_phasors.py
@@ -40,7 +40,7 ... |
spacetelescope__jwql-977 | Add x1d to the list of ignored suffixes
x1d files are ascii tables, and so should be ignored. Currently x1d shows up as an option when looking at preview images:
https://jwql.stsci.edu/NIRISS/jw01324001001_11101_00004_nis/
Switching to this shows a broken link, but also seems to resize things such that when switch... | [
{
"content": "\"\"\"Globally defined and used variables for the ``jwql`` project.\n\nAuthors\n-------\n\n - Johannes Sahlmann\n - Matthew Bourque\n - Bryan Hilbert\n - Ben Sunnquist\n - Teagan King\n\nUse\n---\n This variables within this module are intended to be directly\n imported, e.g.:... | [
{
"content": "\"\"\"Globally defined and used variables for the ``jwql`` project.\n\nAuthors\n-------\n\n - Johannes Sahlmann\n - Matthew Bourque\n - Bryan Hilbert\n - Ben Sunnquist\n - Teagan King\n\nUse\n---\n This variables within this module are intended to be directly\n imported, e.g.:... | diff --git a/jwql/utils/constants.py b/jwql/utils/constants.py
index c1a18fb22..649278ef5 100644
--- a/jwql/utils/constants.py
+++ b/jwql/utils/constants.py
@@ -235,7 +235,7 @@
GUIDER_SUFFIX_TYPES = ['stream', 'stacked_uncal', 'image_uncal', 'stacked_cal', 'image_cal']
# JWQL should ignore some filetypes in the fil... |
qtile__qtile-3607 | [Wayland] KeyboardLayout widget not working
### The issue:
qtile version 0.20.1.dev78+gb7167931
The keyboard layout, from US to ES, does not change when choosing the language layout. In X11 it works
KeyboardLaout config part
widget.KeyboardLayout(
configured_keyboards=['us... | [
{
"content": "# Copyright (c) 2021 Matt Colligan\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\n# to use, copy, ... | [
{
"content": "# Copyright (c) 2021 Matt Colligan\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\n# to use, copy, ... | diff --git a/libqtile/backend/wayland/core.py b/libqtile/backend/wayland/core.py
index fae591a3c6..69177ce36a 100644
--- a/libqtile/backend/wayland/core.py
+++ b/libqtile/backend/wayland/core.py
@@ -1003,7 +1003,8 @@ def cmd_set_keymap(
identical to those accepted by the env variables.
"""
if... |
Parsl__parsl-2997 | Cannot Instantiate SlurmProvider in parsl-2023.12.11
**Describe the bug**
When I attempt to instantiate a SlurmProvider in parsl-2023.12.11 I get the following error:
`AttributeError: class SlurmProvider uses qos in the constructor, but does not define it as an attribute`
**To Reproduce**
Steps to reproduce the b... | [
{
"content": "import os\nimport math\nimport time\nimport logging\nimport re\nimport typeguard\n\nfrom typing import Optional\n\nfrom parsl.channels import LocalChannel\nfrom parsl.channels.base import Channel\nfrom parsl.jobs.states import JobState, JobStatus\nfrom parsl.launchers import SingleNodeLauncher\nfr... | [
{
"content": "import os\nimport math\nimport time\nimport logging\nimport re\nimport typeguard\n\nfrom typing import Optional\n\nfrom parsl.channels import LocalChannel\nfrom parsl.channels.base import Channel\nfrom parsl.jobs.states import JobState, JobStatus\nfrom parsl.launchers import SingleNodeLauncher\nfr... | diff --git a/parsl/providers/slurm/slurm.py b/parsl/providers/slurm/slurm.py
index be75c2c9ad..1c1d421a2e 100644
--- a/parsl/providers/slurm/slurm.py
+++ b/parsl/providers/slurm/slurm.py
@@ -132,6 +132,8 @@ def __init__(self,
self.exclusive = exclusive
self.move_files = move_files
self.accoun... |
napari__napari-3817 | Occasional segmentation fault when running `update_preference_docs.py`
## 🐛 Bug
The `generate_images()` function on `docs/_scripts/update_preference_docs.py` occasionally results in a Segmentation Fault. This prevents the docs build.
## To Reproduce
Steps to reproduce the behavior:
1. Run `make docs` from ... | [
{
"content": "from __future__ import annotations\n\nimport os\nimport sys\nfrom contextlib import contextmanager\nfrom typing import TYPE_CHECKING\nfrom warnings import warn\n\nfrom qtpy import PYQT5\nfrom qtpy.QtCore import Qt\nfrom qtpy.QtGui import QIcon\nfrom qtpy.QtWidgets import QApplication\n\nfrom .. im... | [
{
"content": "from __future__ import annotations\n\nimport os\nimport sys\nfrom contextlib import contextmanager\nfrom typing import TYPE_CHECKING\nfrom warnings import warn\n\nfrom qtpy import PYQT5\nfrom qtpy.QtCore import Qt\nfrom qtpy.QtGui import QIcon\nfrom qtpy.QtWidgets import QApplication\n\nfrom .. im... | diff --git a/napari/_qt/qt_event_loop.py b/napari/_qt/qt_event_loop.py
index cc3cce6f2e5..6dcfa5a5314 100644
--- a/napari/_qt/qt_event_loop.py
+++ b/napari/_qt/qt_event_loop.py
@@ -156,7 +156,7 @@ def get_app(
# Intercept tooltip events in order to convert all text to rich text
# to allow for text w... |
mdn__kuma-5813 | React breaks on certain IDs within the content
Originally filed on https://github.com/mdn/sprints/issues/2148
> Just wanted to point out some rendering issues that are caused by translations (like French language for example) which makes some selectors not valid.
> Take a look : https://developer.mozilla.org/fr/doc... | [
{
"content": "# -*- coding: utf-8 -*-\nimport re\nfrom collections import defaultdict\nfrom xml.sax.saxutils import quoteattr\n\nimport bleach\nimport html5lib\nimport newrelic.agent\nfrom django.conf import settings\nfrom django.utils.encoding import python_2_unicode_compatible\nfrom django.utils.six.moves.url... | [
{
"content": "# -*- coding: utf-8 -*-\nimport re\nfrom collections import defaultdict\nfrom xml.sax.saxutils import quoteattr\n\nimport bleach\nimport html5lib\nimport newrelic.agent\nfrom django.conf import settings\nfrom django.utils.encoding import python_2_unicode_compatible\nfrom django.utils.six.moves.url... | diff --git a/kuma/javascript/src/.eslintrc.js b/kuma/javascript/src/.eslintrc.js
index 42d0d4fee4a..616f4bb0c04 100644
--- a/kuma/javascript/src/.eslintrc.js
+++ b/kuma/javascript/src/.eslintrc.js
@@ -44,7 +44,6 @@ module.exports = {
'no-redeclare': 'error',
'no-undef': 'error',
'no-unused-va... |
ciudadanointeligente__votainteligente-portal-electoral-427 | La página de agregar antecedentes no dice mucho.
Actualmente agregar más antecedentes puede ser accedida desde una sola parte:
\nfrom votainteligente.send_mails import send_mail\nfrom django.utils.translation import u... | [
{
"content": "# coding=utf-8\nfrom django import forms\nfrom popular_proposal.models import (ProposalTemporaryData,\n ProposalLike,\n PopularProposal)\nfrom votainteligente.send_mails import send_mail\nfrom django.utils.translation import u... | diff --git a/popular_proposal/forms/forms.py b/popular_proposal/forms/forms.py
index deca809d..e081fff7 100644
--- a/popular_proposal/forms/forms.py
+++ b/popular_proposal/forms/forms.py
@@ -175,6 +175,10 @@ def __init__(self, *args, **kwargs):
class Meta:
model = PopularProposal
fields = ['backg... |
Pycord-Development__pycord-1270 | Paginator is replaced by second paginator upon using commands consecutively
### Summary
Essentially, if you use a command with a paginator utilizing page groups once, then use the same command with a different option after to produce a different paginator, the second paginator will replace the first in the first com... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\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 restriction, including without li... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\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 restriction, including without li... | diff --git a/discord/ext/pages/pagination.py b/discord/ext/pages/pagination.py
index 8fb291931b..3f97d9b050 100644
--- a/discord/ext/pages/pagination.py
+++ b/discord/ext/pages/pagination.py
@@ -578,7 +578,7 @@ async def interaction_check(self, interaction: discord.Interaction) -> bool:
def add_menu(self):
... |
pyqtgraph__pyqtgraph-1173 | an issue on ViewBox.mapToView
Hi, I do love pyqtgraph, it really save my life, but there is a little problem in it.
At first start of pg.GraphicsWindow, it seems that ViewBox return (0, 0) size by ViewBox.rect() method, which lead to ViewBox.updateMatrix get 0 size of bound and so that functions.invertQTransform fa... | [
{
"content": "from ..Qt import QtGui, QtCore\nfrom .. import functions as fn\nfrom .GraphicsWidget import GraphicsWidget\n## Must be imported at the end to avoid cyclic-dependency hell:\nfrom .ViewBox import ViewBox\nfrom .PlotItem import PlotItem\nfrom .LabelItem import LabelItem\n\n__all__ = ['GraphicsLayout'... | [
{
"content": "from ..Qt import QtGui, QtCore\nfrom .. import functions as fn\nfrom .GraphicsWidget import GraphicsWidget\n## Must be imported at the end to avoid cyclic-dependency hell:\nfrom .ViewBox import ViewBox\nfrom .PlotItem import PlotItem\nfrom .LabelItem import LabelItem\n\n__all__ = ['GraphicsLayout'... | diff --git a/pyqtgraph/graphicsItems/GraphicsLayout.py b/pyqtgraph/graphicsItems/GraphicsLayout.py
index c3722ec0d8..9c209352c7 100644
--- a/pyqtgraph/graphicsItems/GraphicsLayout.py
+++ b/pyqtgraph/graphicsItems/GraphicsLayout.py
@@ -134,6 +134,9 @@ def addItem(self, item, row=None, col=None, rowspan=1, colspan=1):
... |
nvaccess__nvda-8545 | Description for Burmese (my) is not recognized in Windows 7
Hi,
Discovered while testing latest changes to language handler: description for Burmese is not picked up in Windows 7.
### Steps to reproduce:
1. On Windows 7, press Control+NVDA+G to open general settings panel.
2. Go through languages list until you... | [
{
"content": "#languageHandler.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#Copyright (C) 2007-2018 NV access Limited, Joseph Lee\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n\r\n\"\"\"Language and localization support.\r\nThis module assists ... | [
{
"content": "#languageHandler.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#Copyright (C) 2007-2018 NV access Limited, Joseph Lee\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n\r\n\"\"\"Language and localization support.\r\nThis module assists ... | diff --git a/source/languageHandler.py b/source/languageHandler.py
index 6011715affc..38d788124f4 100644
--- a/source/languageHandler.py
+++ b/source/languageHandler.py
@@ -81,6 +81,8 @@ def getLanguageDescription(language):
"ckb":pgettext("languageName","Central Kurdish"),
# Translators: The name of a languag... |
liqd__a4-meinberlin-4927 | Not enough padding between (down-)votes and support icons
**URL:** https://meinberlin-dev.liqd.net/projekte/budgeting-1/?mode=list#proposal_988
**user:** admin
**expected behaviour:** uniform space between icons
**behaviour:** not enough space between down votes and support icon
**important screensize:**
**device ... | [
{
"content": "from django.utils.translation import get_language\nfrom django.utils.translation import gettext_lazy as _\nfrom rest_framework import mixins\nfrom rest_framework import viewsets\nfrom rest_framework.filters import SearchFilter\nfrom rest_framework.pagination import PageNumberPagination\n\nfrom adh... | [
{
"content": "from django.utils.translation import get_language\nfrom django.utils.translation import gettext_lazy as _\nfrom rest_framework import mixins\nfrom rest_framework import viewsets\nfrom rest_framework.filters import SearchFilter\nfrom rest_framework.pagination import PageNumberPagination\n\nfrom adh... | diff --git a/meinberlin/apps/budgeting/api.py b/meinberlin/apps/budgeting/api.py
index 5e69cbfd57..7ea25f4526 100644
--- a/meinberlin/apps/budgeting/api.py
+++ b/meinberlin/apps/budgeting/api.py
@@ -314,6 +314,7 @@ def get_queryset(self):
Proposal.objects.filter(module=self.module)
.annotate_c... |
freedomofpress__securedrop-2989 | Installation does not like having no sasl_domain
# Bug
## Description
Our mail server auths with just a username, not a username and a domain.
## Steps to Reproduce
set sasl_domain to "" in the site-specific vars
run `./securedrop-admin install`
## Expected Behavior
- pass validation
- installs a ... | [
{
"content": "# -*- mode: python; coding: utf-8 -*-\n#\n# Copyright (C) 2013-2018 Freedom of the Press Foundation & al\n# Copyright (C) 2018 Loic Dachary <loic@dachary.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as... | [
{
"content": "# -*- mode: python; coding: utf-8 -*-\n#\n# Copyright (C) 2013-2018 Freedom of the Press Foundation & al\n# Copyright (C) 2018 Loic Dachary <loic@dachary.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as... | diff --git a/admin/securedrop_admin/__init__.py b/admin/securedrop_admin/__init__.py
index dc6290e6ce..de863f2860 100755
--- a/admin/securedrop_admin/__init__.py
+++ b/admin/securedrop_admin/__init__.py
@@ -266,7 +266,7 @@ def __init__(self, args):
int],
['sasl_domain', "gmail.com", str,
... |
sbi-dev__sbi-1110 | Improve tutorial on embedding networks
- make clear more early in the tutorial (and title) that this will be about embedding networks
- highlight more prominently pre-configured networks
| [
{
"content": "# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed\n# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.\n\nfrom typing import Tuple\n\nimport torch\nfrom torch import Tensor\n\nfrom sbi.neural_nets.density_estimators import (\n C... | [
{
"content": "# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed\n# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.\n\nfrom typing import Tuple\n\nimport torch\nfrom torch import Tensor\n\nfrom sbi.neural_nets.density_estimators import (\n C... | diff --git a/docs/docs/static/global.css b/docs/docs/static/global.css
index aa39ef7eb..9c834cbcb 100644
--- a/docs/docs/static/global.css
+++ b/docs/docs/static/global.css
@@ -24,7 +24,6 @@ a[title="Edit this page"] {
font-size: 16px
}
-
/* Indentation. */
div.doc-contents:not(.first), div.doc-function div.doc... |
ansible__ansible-lint-1128 | [701] No 'galaxy_info' found results in meta/requirements.yml file
### Summary
ansible-lint reporting `[701] No 'galaxy_info' found` in my `meta/requirements.yml`, a file that unlike `meta/main.yml` does not (to my knowledge) support a `galaxy_info` field.
##### Issue Type
- Bug Report
##### Ansible and Ans... | [
{
"content": "# Copyright (c) 2016, Will Thames and contributors\n# Copyright (c) 2018, Ansible Project\n\nfrom ansiblelint.rules import AnsibleLintRule\n\nMETA_STR_INFO = (\n 'author',\n 'description'\n)\nMETA_INFO = tuple(list(META_STR_INFO) + [\n 'license',\n 'min_ansible_version',\n 'platform... | [
{
"content": "# Copyright (c) 2016, Will Thames and contributors\n# Copyright (c) 2018, Ansible Project\n\nfrom ansiblelint.rules import AnsibleLintRule\n\nMETA_STR_INFO = (\n 'author',\n 'description'\n)\nMETA_INFO = tuple(list(META_STR_INFO) + [\n 'license',\n 'min_ansible_version',\n 'platform... | diff --git a/lib/ansiblelint/rules/MetaMainHasInfoRule.py b/lib/ansiblelint/rules/MetaMainHasInfoRule.py
index f05f2401cf..950a503aa8 100644
--- a/lib/ansiblelint/rules/MetaMainHasInfoRule.py
+++ b/lib/ansiblelint/rules/MetaMainHasInfoRule.py
@@ -57,6 +57,11 @@ def matchplay(self, file, data):
if file['type'] ... |
keras-team__keras-11658 | Scikit Learn wrapper predict() inappropriately squashes size-1 batch dimension
Please make sure that the boxes below are checked before you submit your issue.
If your issue is an **implementation question**, please ask your question on [StackOverflow](http://stackoverflow.com/questions/tagged/keras) or [on the Keras S... | [
{
"content": "\"\"\"Wrapper for using the Scikit-Learn API with Keras models.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport copy\nimport types\n\nimport numpy as np\n\nfrom ..utils.np_utils import to_categorical\nfrom ..utils.ge... | [
{
"content": "\"\"\"Wrapper for using the Scikit-Learn API with Keras models.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport copy\nimport types\n\nimport numpy as np\n\nfrom ..utils.np_utils import to_categorical\nfrom ..utils.ge... | diff --git a/keras/wrappers/scikit_learn.py b/keras/wrappers/scikit_learn.py
index 6ebf6fc8d4d9..83c3e3c44b34 100644
--- a/keras/wrappers/scikit_learn.py
+++ b/keras/wrappers/scikit_learn.py
@@ -320,7 +320,7 @@ def predict(self, x, **kwargs):
Predictions.
"""
kwargs = self.filter_sk_p... |
OpenEnergyPlatform__oeplatform-787 | Meta-schemas are not created properly
It seems that a fresh installation of the most recent version does not create the meta-schemas anymore.
| [
{
"content": "\"\"\"create schemas\n\nRevision ID: 5c098aa81e2c\nRevises: 46fb02acc3b1\nCreate Date: 2017-11-23 15:53:57.716306\n\n\"\"\"\nimport sqlalchemy as sa\nfrom alembic import op\n\n# revision identifiers, used by Alembic.\nrevision = \"5c098aa81e2c\"\ndown_revision = \"048215319c74\"\nbranch_labels = N... | [
{
"content": "\"\"\"create schemas\n\nRevision ID: 5c098aa81e2c\nRevises: 46fb02acc3b1\nCreate Date: 2017-11-23 15:53:57.716306\n\n\"\"\"\nimport sqlalchemy as sa\nfrom alembic import op\n\n# revision identifiers, used by Alembic.\nrevision = \"5c098aa81e2c\"\ndown_revision = \"048215319c74\"\nbranch_labels = N... | diff --git a/oedb_datamodels/versions/5c098aa81e2c_create_schemas.py b/oedb_datamodels/versions/5c098aa81e2c_create_schemas.py
index 384134bd2..6f2cefa30 100644
--- a/oedb_datamodels/versions/5c098aa81e2c_create_schemas.py
+++ b/oedb_datamodels/versions/5c098aa81e2c_create_schemas.py
@@ -30,12 +30,15 @@
"reference... |
meltano__meltano-6745 | revert: project-name in project_id
In https://github.com/meltano/meltano/pull/6621 we added the `project name` to the project_id on `init`. Even though we hash the id prior to sending, its addition was unnecessary and creates a few problems:
* having the project name in the id confuses the purpose of the id. We don'... | [
{
"content": "\"\"\"New Project Initialization Service.\"\"\"\nfrom __future__ import annotations\n\nimport os\nimport uuid\n\nimport click\n\nfrom .cli_messages import GREETING\nfrom .db import project_engine\nfrom .plugin.meltano_file import MeltanoFilePlugin\nfrom .project import Project\nfrom .project_setti... | [
{
"content": "\"\"\"New Project Initialization Service.\"\"\"\nfrom __future__ import annotations\n\nimport os\nimport uuid\n\nimport click\n\nfrom .cli_messages import GREETING\nfrom .db import project_engine\nfrom .plugin.meltano_file import MeltanoFilePlugin\nfrom .project import Project\nfrom .project_setti... | diff --git a/src/meltano/core/project_init_service.py b/src/meltano/core/project_init_service.py
index 80fcdc5ddd..0eb1322dcb 100644
--- a/src/meltano/core/project_init_service.py
+++ b/src/meltano/core/project_init_service.py
@@ -66,7 +66,7 @@ def init(self, activate: bool = True, add_discovery: bool = False) -> Proje... |
pypi__warehouse-3820 | Expose long_description_content_type in JSON API
Feature request: Add 'long_description_content_type' to JSON API in 'info': section, alongside the existing 'description'
Now that PyPI supports Markdown and more than one kind of content type for long descriptions, it would be helpful to be able to see what the cont... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | diff --git a/docs/api-reference/json.rst b/docs/api-reference/json.rst
index 1aad53dfb4e6..144de59c307a 100644
--- a/docs/api-reference/json.rst
+++ b/docs/api-reference/json.rst
@@ -48,6 +48,7 @@ Project
"Topic :: Software Development :: Build Tools"
],
"descripti... |
privacyidea__privacyidea-3411 | logging documentation
Check the log configuration.
The yaml config seems to be wrong.
Is the indentation of `root:` correct?
https://privacyidea.readthedocs.io/en/master/installation/system/logging.html#debug-log
| [
{
"content": "# -*- coding: utf-8 -*-\n#\n# 2014-11-15 Cornelius Kölbel, info@privacyidea.org\n# Initial creation\n#\n# (c) Cornelius Kölbel\n# Info: http://www.privacyidea.org\n#\n# This code is free software; you can redistribute it and/or\n# modify it under the terms of the GNU AFFERO GENERAL PUBL... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# 2014-11-15 Cornelius Kölbel, info@privacyidea.org\n# Initial creation\n#\n# (c) Cornelius Kölbel\n# Info: http://www.privacyidea.org\n#\n# This code is free software; you can redistribute it and/or\n# modify it under the terms of the GNU AFFERO GENERAL PUBL... | diff --git a/doc/installation/system/logging.rst b/doc/installation/system/logging.rst
index 3830bc182c..b27f2147c4 100644
--- a/doc/installation/system/logging.rst
+++ b/doc/installation/system/logging.rst
@@ -59,6 +59,12 @@ Such a YAML based configuration could look like this:
formatter: detail
leve... |
edgedb__edgedb-7149 | ALTER MODULE foo RENAME TO bar gives ISE
We should produce a parse error or an unimplemented message.
We could actually support it, but it might actually be kind of hairy to do, since in the data model modules really don't *do* anything, they *just* lay claim to a name. (And DDL isn't *that* important anyway; renami... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy... | [
{
"content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy... | diff --git a/edb/schema/modules.py b/edb/schema/modules.py
index 8b8f6278388..d634ca30137 100644
--- a/edb/schema/modules.py
+++ b/edb/schema/modules.py
@@ -96,6 +96,19 @@ class AlterModule(ModuleCommand, sd.AlterObject[Module]):
astnode = qlast.AlterModule
+class RenameModule(ModuleCommand, sd.RenameObject[Mo... |
fossasia__open-event-server-2489 | Propose attendees/ticketing API
With the orga app and the implementation of API endpoints in this PR https://github.com/fossasia/open-event-orga-server/pull/2379 we have the first steps to an attendee API. In how far would that overlap with a ticketing API?
What is the best way to implement this and keep it generic? D... | [
{
"content": "from flask.ext.restplus import Namespace\n\nfrom app.helpers.ticketing import TicketingManager\n\nfrom .helpers.helpers import (\n requires_auth,\n can_access)\nfrom .helpers.utils import POST_RESPONSES\nfrom .helpers.utils import Resource\nfrom .helpers import custom_fields as fields\nfrom ... | [
{
"content": "from flask.ext.restplus import Namespace\n\nfrom app.helpers.ticketing import TicketingManager\n\nfrom .helpers.helpers import (\n requires_auth,\n can_access)\nfrom .helpers.utils import POST_RESPONSES\nfrom .helpers.utils import Resource\nfrom .helpers import custom_fields as fields\nfrom ... | diff --git a/app/api/tickets.py b/app/api/tickets.py
index a647da080c..e76cd8a5f7 100644
--- a/app/api/tickets.py
+++ b/app/api/tickets.py
@@ -52,5 +52,13 @@ def get(self, event_id, ticket_id):
"""Get information about a ticket"""
return TicketingManager.get_ticket(ticket_id=ticket_id)
+@api.route('... |
bookwyrm-social__bookwyrm-484 | Seeing my own profile feed on other people's profiles
**Describe the bug**
When I go to someone else's profile, the feed that is rendered under "User Activity" is my own.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to anyone else's profile page and observe the result
:
# user's posts
activities = get_activity_feed(
- user,
+ request.user,
['public', 'unlisted', 'f... |
NVIDIA__NVFlare-363 | Users are not warned when running poc command
| [
{
"content": "# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICEN... | [
{
"content": "# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICEN... | diff --git a/nvflare/lighter/poc.py b/nvflare/lighter/poc.py
index 77b654539f..24fd2265d8 100644
--- a/nvflare/lighter/poc.py
+++ b/nvflare/lighter/poc.py
@@ -62,6 +62,7 @@ def main():
os.chmod(os.path.join(root, file), 0o755)
clone_client(args.num_clients)
print("Successfully cre... |
electricitymaps__electricitymaps-contrib-1456 | Data error for Aruba
For a few days in a row now (possibly longer), data for the island country of Aruba has been offline. I went to check back on the source: https://www.webaruba.com/ and saw that the figures for electricity generation under the "Aruba's renewable energy monitor" block giving 0 MW for everything.
!... | [
{
"content": "#!/usr/bin/env python3\n\nimport arrow\nimport requests\nimport datetime\n\n\ndef fetch_production(zone_key='AW', session=None, target_datetime=None, logger=None):\n if target_datetime:\n raise NotImplementedError('This parser is not yet able to parse past dates')\n\n r = session or r... | [
{
"content": "#!/usr/bin/env python3\n\nimport arrow\nimport requests\nimport datetime\n\n\ndef fetch_production(zone_key='AW', session=None, target_datetime=None, logger=None):\n if target_datetime:\n raise NotImplementedError('This parser is not yet able to parse past dates')\n\n r = session or r... | diff --git a/parsers/AW.py b/parsers/AW.py
index deab0711a5..30fe7868b6 100644
--- a/parsers/AW.py
+++ b/parsers/AW.py
@@ -30,9 +30,9 @@ def fetch_production(zone_key='AW', session=None, target_datetime=None, logger=N
'zoneKey': zone_key,
'datetime': zone_date_time.datetime,
'production': {
-... |
fossasia__open-event-server-4445 | Not allowing attendee POST request
**I'm submitting a ...**
- [x] bug report
**Current behavior:**
Created a new event with new user account. Created a free ticket for the event. for create attendee request the response is:
```
"errors": [
{
"status": 403,
"source": {
... | [
{
"content": "from flask_jwt import current_identity\nfrom flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\n\nfrom app.api.bootstrap import api\nfrom app.api.helpers.db import safe_query\nfrom app.api.helpers.exceptions import ForbiddenException, UnprocessableEntity\nfrom app.api.he... | [
{
"content": "from flask_jwt import current_identity\nfrom flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\n\nfrom app.api.bootstrap import api\nfrom app.api.helpers.db import safe_query\nfrom app.api.helpers.exceptions import ForbiddenException, UnprocessableEntity\nfrom app.api.he... | diff --git a/app/api/attendees.py b/app/api/attendees.py
index 317bca294d..fa5e485c36 100644
--- a/app/api/attendees.py
+++ b/app/api/attendees.py
@@ -30,9 +30,8 @@ def before_post(self, args, kwargs, data):
:return:
"""
require_relationship(['ticket', 'event'], data)
- if not has_acce... |
huggingface__diffusers-6410 | ValueError when `to('cuda')` on Value-guided planning pipeline
### Describe the bug
When I run the Value-guided planning pipeline colab <https://colab.research.google.com/drive/1rXm8CX4ZdN5qivjJ2lhwhkOmt_m0CvU0> with `to('cuda')` to speed up the diffusion process. It gave me a ValueError.
### Reproduction
<htt... | [
{
"content": "# Copyright 2023 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#... | [
{
"content": "# Copyright 2023 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#... | diff --git a/src/diffusers/experimental/rl/value_guided_sampling.py b/src/diffusers/experimental/rl/value_guided_sampling.py
index f46d3ac98b17..af5ee2102163 100644
--- a/src/diffusers/experimental/rl/value_guided_sampling.py
+++ b/src/diffusers/experimental/rl/value_guided_sampling.py
@@ -49,10 +49,9 @@ def __init__(
... |
cookiecutter__cookiecutter-1353 | Fix pitest warning, recheck dependencies versions.
* Cookiecutter version:master
```
py27 run-test: commands[1] | /home/insspb/git/cookiecutter/.tox/py27/bin/python /snap/pycharm-professional/196/plugins/python/helpers/pycharm/_jb_pytest_runner.py --offset 10001 -- --cov=cookiecutter tests
/home/insspb/git/cookiec... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"cookiecutter distutils configuration.\"\"\"\n\nimport os\nimport io\nimport sys\n\nfrom setuptools import setup\n\nversion = \"1.7.0\"\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n os.system('python setu... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"cookiecutter distutils configuration.\"\"\"\n\nimport os\nimport io\nimport sys\n\nfrom setuptools import setup\n\nversion = \"1.7.0\"\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n os.system('python setu... | diff --git a/HISTORY.md b/HISTORY.md
index 5f044c55b..992be4561 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -11,14 +11,18 @@ Important Changes:
* 'future' library replaced with 'six' as a more lightweight python porting library [@asottile](https://github.com/asottile) (#941)
* Added extension: Slugify template filter... |
liqd__a4-meinberlin-3871 | testing 4543: changing picture size in CKeditor doesn't effect frontend
**URL:** https://meinberlin-dev.liqd.net/vorhaben/2021-00074/
**user:** any
**expected behaviour:** if I change the size of my picture in CKeditor the size is also changed in frontend
**behaviour:** picture always has the same size, changes are ... | [
{
"content": "from django.conf import settings\nfrom django.contrib.auth.models import Group\nfrom django.db import models\nfrom django.db.models import Q\nfrom django.urls import reverse\nfrom django.utils.functional import cached_property\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom adhocr... | [
{
"content": "from django.conf import settings\nfrom django.contrib.auth.models import Group\nfrom django.db import models\nfrom django.db.models import Q\nfrom django.urls import reverse\nfrom django.utils.functional import cached_property\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom adhocr... | diff --git a/meinberlin/apps/plans/models.py b/meinberlin/apps/plans/models.py
index 9674726562..771008205b 100644
--- a/meinberlin/apps/plans/models.py
+++ b/meinberlin/apps/plans/models.py
@@ -214,7 +214,8 @@ def get_absolute_url(self):
year=self.created.year))
def save(self... |
napari__napari-4259 | Previously selected point deleted when deleting layer
## 🐛 Bug
Recently selected points are erroneously removed when deleting new layers with the delete key. (reproduced with points and labels layer)
## To Reproduce
Steps to reproduce the behaviour:
1. Create a point on a points layer
2. Create a new poin... | [
{
"content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING\n\nfrom qtpy.QtCore import QSortFilterProxyModel, Qt\n\nfrom ...layers import Layer\nfrom ...utils.translations import trans\nfrom ._base_item_model import SortRole, _BaseEventedItemModel\nfrom ._layer_delegate import LayerDele... | [
{
"content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING\n\nfrom qtpy.QtCore import QSortFilterProxyModel, Qt\n\nfrom ...layers import Layer\nfrom ...utils.translations import trans\nfrom ._base_item_model import SortRole, _BaseEventedItemModel\nfrom ._layer_delegate import LayerDele... | diff --git a/napari/_qt/containers/qt_layer_list.py b/napari/_qt/containers/qt_layer_list.py
index 83341c22589..858abd29f3f 100644
--- a/napari/_qt/containers/qt_layer_list.py
+++ b/napari/_qt/containers/qt_layer_list.py
@@ -53,7 +53,7 @@ def __init__(self, root: LayerList, parent: QWidget = None):
def keyPressE... |
meltano__meltano-6302 | Upgrade pytest
Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/3529
Originally created by @vischous on 2022-05-25 20:11:16
---
While waiting for some tests to run I was trying to speed up my iteration time, and found `pytest-xdist`.
Thread here https://meltano.slack.com/archives/CKHP6G5V4/p1653508... | [
{
"content": "\"\"\"Plugin glue code for Superset.\"\"\"\nimport logging\nimport subprocess\nfrom typing import List\n\nimport structlog\n\nfrom meltano.core.behavior.hookable import hook\nfrom meltano.core.error import AsyncSubprocessError\nfrom meltano.core.plugin.error import PluginExecutionError\nfrom melta... | [
{
"content": "\"\"\"Plugin glue code for Superset.\"\"\"\nimport logging\nimport subprocess\nfrom typing import List\n\nimport structlog\n\nfrom meltano.core.behavior.hookable import hook\nfrom meltano.core.error import AsyncSubprocessError\nfrom meltano.core.plugin.error import PluginExecutionError\nfrom melta... | diff --git a/.coveragerc b/.coveragerc
deleted file mode 100644
index 1cd7e4ab10..0000000000
--- a/.coveragerc
+++ /dev/null
@@ -1,5 +0,0 @@
-[paths]
-source =
- src/meltano
- **/site-packages/meltano
- **/site-packages/meltano*/meltano
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 6c039... |
LMFDB__lmfdb-5112 | Problem with zeta zeroes download script
The python script at https://github.com/LMFDB/lmfdb/blob/master/lmfdb/zeros/zeta/platt_zeros.py created by David Platt to parse downloaded zeta zeros files seems to no longer work correctly, possibly because of missing a file `index.db` that should be in the download directory a... | [
{
"content": "\nfrom mpmath import nstr, inf\nfrom sage.all import floor, log\nfrom lmfdb.logger import make_logger\nfrom flask import render_template, request, url_for, Blueprint, Response\n\nZetaZeros = Blueprint(\"zeta zeros\", __name__, template_folder=\"templates\")\nlogger = make_logger(ZetaZeros)\n\nfrom... | [
{
"content": "\nfrom mpmath import nstr, inf\nfrom sage.all import floor, log\nfrom lmfdb.logger import make_logger\nfrom flask import render_template, request, url_for, Blueprint, Response\n\nZetaZeros = Blueprint(\"zeta zeros\", __name__, template_folder=\"templates\")\nlogger = make_logger(ZetaZeros)\n\nfrom... | diff --git a/lmfdb/zeros/zeta/zetazeros.py b/lmfdb/zeros/zeta/zetazeros.py
index cb4b896db8..b85da6c811 100644
--- a/lmfdb/zeros/zeta/zetazeros.py
+++ b/lmfdb/zeros/zeta/zetazeros.py
@@ -21,7 +21,7 @@ def friends_list():
return [('L-function', url_for("l_functions.l_function_riemann_page"))]
def downloads():
- ... |
pytorch__text-182 | BPTTIterator: Result of Slicing is an empty tensor
I can't iterate through all the batches in the iterator returned by BPTTITerator.
For example, this will give an error: batches = [batch for batch in train_iter]
On the last batch, I'll get error: Result of Slicing is an empty tensor
How should I fix it?
Thanks... | [
{
"content": "from __future__ import division\n\nimport math\nimport random\nfrom contextlib import contextmanager\nfrom copy import deepcopy\n\nfrom .batch import Batch\nfrom .dataset import Dataset\n\n\nclass RandomShuffler(object):\n \"\"\"Use random functions while keeping track of the random state to ma... | [
{
"content": "from __future__ import division\n\nimport math\nimport random\nfrom contextlib import contextmanager\nfrom copy import deepcopy\n\nfrom .batch import Batch\nfrom .dataset import Dataset\n\n\nclass RandomShuffler(object):\n \"\"\"Use random functions while keeping track of the random state to ma... | diff --git a/torchtext/data/iterator.py b/torchtext/data/iterator.py
index 3cb5ab68e1..89686b8954 100644
--- a/torchtext/data/iterator.py
+++ b/torchtext/data/iterator.py
@@ -224,8 +224,8 @@ def __init__(self, dataset, batch_size, bptt_len, **kwargs):
super(BPTTIterator, self).__init__(dataset, batch_size, **k... |
privacyidea__privacyidea-3693 | Add event handler to poll transaction
We need to be able to connect event handlers to `poll transcation`. This way we can act, in case polling a transaction from a PUSH token returns a declined push authentication.
The event handler then could e.g. notify admins, that a PUSH was declined, which might indicate that c... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# http://www.privacyidea.org\n# (c) cornelius kölbel, privacyidea.org\n#\n# 2020-01-30 Jean-Pierre Höhmann <jean-pierre.hohemann@netknights.it>\n# Add WebAuthn token\n# 2018-01-22 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Add offline re... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# http://www.privacyidea.org\n# (c) cornelius kölbel, privacyidea.org\n#\n# 2020-01-30 Jean-Pierre Höhmann <jean-pierre.hohemann@netknights.it>\n# Add WebAuthn token\n# 2018-01-22 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Add offline re... | diff --git a/privacyidea/api/validate.py b/privacyidea/api/validate.py
index 3802d0e563..a739126078 100644
--- a/privacyidea/api/validate.py
+++ b/privacyidea/api/validate.py
@@ -601,6 +601,7 @@ def trigger_challenge():
@prepolicy(mangle, request=request)
@CheckSubscription(request)
@prepolicy(api_key_required, requ... |
ansible-collections__community.vmware-2090 | `vmware_host_logbundle` only uses the 1st manifest
<!--- 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
<!--- Explain t... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2020, sky-joker\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import absolute_import, division, print... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2020, sky-joker\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import absolute_import, division, print... | diff --git a/changelogs/fragments/2090-vmware_host_logbundle.yml b/changelogs/fragments/2090-vmware_host_logbundle.yml
new file mode 100644
index 0000000000..fe7862c6ba
--- /dev/null
+++ b/changelogs/fragments/2090-vmware_host_logbundle.yml
@@ -0,0 +1,2 @@
+bugfixes:
+ - vmware_host_logbundle - Manifests previously ... |
liqd__a4-meinberlin-471 | link to profile breaks if space in username
| [
{
"content": "class AjaxPathMiddleware(object):\n \"\"\"Append request path as a header.\n\n In an ajax request, redirects are handled implicitly, so it it not possible\n to know the path of the page where you end up. This middleware adds that\n information in a header.\n \"\"\"\n\n def proces... | [
{
"content": "from django.utils.http import urlquote\n\n\nclass AjaxPathMiddleware(object):\n \"\"\"Append request path as a header.\n\n In an ajax request, redirects are handled implicitly, so it it not possible\n to know the path of the page where you end up. This middleware adds that\n informatio... | diff --git a/apps/embed/middleware.py b/apps/embed/middleware.py
index c4178c09d5..467fa87eed 100644
--- a/apps/embed/middleware.py
+++ b/apps/embed/middleware.py
@@ -1,3 +1,6 @@
+from django.utils.http import urlquote
+
+
class AjaxPathMiddleware(object):
"""Append request path as a header.
@@ -7,5 +10,5 @@ cl... |
cloud-custodian__cloud-custodian-827 | Autoscale invalid group TargetGroupArn errors
I'm trying to leverage the ASG invalid filter. It appears that it's bailing because I do not have any ALB in the region and the key lookup fails.
https://github.com/capitalone/cloud-custodian/blob/master/c7n/resources/asg.py#L210
policy
```
policies:
- name: asg-... | [
{
"content": "# Copyright 2016 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b... | [
{
"content": "# Copyright 2016 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b... | diff --git a/c7n/resources/asg.py b/c7n/resources/asg.py
index cbad53db58f..0ce50cc4bd9 100644
--- a/c7n/resources/asg.py
+++ b/c7n/resources/asg.py
@@ -206,7 +206,7 @@ def get_elbs(self):
return set([e['LoadBalancerName'] for e in manager.resources()])
def get_appelb_target_groups(self):
- manag... |
buildbot__buildbot-4300 | Authentication error due to string/bytes confusion
Hi,
I use buildbot in a Docker swarm setup.
I use the buildbot-master image provided on dockerhub, in which I just add my config files and some ssh keys.
I use an NGinx container as a reverse proxy to provide HTTPS access and LDAP authentication. The buildbot-ma... | [
{
"content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n... | [
{
"content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n... | diff --git a/master/buildbot/www/auth.py b/master/buildbot/www/auth.py
index 86a88bd91cc2..f2dc8a4cb217 100644
--- a/master/buildbot/www/auth.py
+++ b/master/buildbot/www/auth.py
@@ -111,7 +111,7 @@ def __init__(self, header=None, headerRegex=None, **kwargs):
if self.userInfoProvider is None:
self... |
kornia__kornia-465 | Outdated example
Outdated example on the geometry.transform.**crop_and_resize**() function
Following the clockwise order for the corners it should be:
` >>> boxes = torch.tensor([[
[1., 1.],
[1., 2.],
[2., 2.],
[2., 1.],
]]) #... | [
{
"content": "from typing import Tuple, Union\n\nimport torch\n\nfrom kornia.geometry.transform.imgwarp import (\n warp_perspective, get_perspective_transform\n)\n\n__all__ = [\n \"crop_and_resize\",\n \"crop_by_boxes\",\n \"center_crop\",\n]\n\n\ndef crop_and_resize(tensor: torch.Tensor, boxes: tor... | [
{
"content": "from typing import Tuple, Union\n\nimport torch\n\nfrom kornia.geometry.transform.imgwarp import (\n warp_perspective, get_perspective_transform\n)\n\n__all__ = [\n \"crop_and_resize\",\n \"crop_by_boxes\",\n \"center_crop\",\n]\n\n\ndef crop_and_resize(tensor: torch.Tensor, boxes: tor... | diff --git a/kornia/geometry/transform/crop.py b/kornia/geometry/transform/crop.py
index df622d236f..e1aeb97035 100644
--- a/kornia/geometry/transform/crop.py
+++ b/kornia/geometry/transform/crop.py
@@ -36,9 +36,9 @@ def crop_and_resize(tensor: torch.Tensor, boxes: torch.Tensor, size: Tuple[int,
]])
... |
ibis-project__ibis-6327 | bug: `pivot_longer` doesn't work with field names containing spaces
### What happened?
when using pivot_longer, the names_to field and values_to arguments can't have a space in them
### What version of ibis are you using?
5.1.0
### What backend(s) are you using, if any?
DuckDB
### Relevant log output
```sh
>>> i... | [
{
"content": "from __future__ import annotations\n\nfrom typing import Callable, Mapping, Optional\n\nimport sqlalchemy as sa\nimport sqlalchemy.types as sat\nimport toolz\nfrom sqlalchemy.ext.compiler import compiles\n\nimport ibis.expr.datatypes as dt\nfrom ibis.backends.base.sql.alchemy.geospatial import geo... | [
{
"content": "from __future__ import annotations\n\nfrom typing import Callable, Mapping, Optional\n\nimport sqlalchemy as sa\nimport sqlalchemy.types as sat\nimport toolz\nfrom sqlalchemy.ext.compiler import compiles\n\nimport ibis.expr.datatypes as dt\nfrom ibis.backends.base.sql.alchemy.geospatial import geo... | diff --git a/ibis/backends/base/sql/alchemy/datatypes.py b/ibis/backends/base/sql/alchemy/datatypes.py
index 2a1b045251d7..42ff19e32d89 100644
--- a/ibis/backends/base/sql/alchemy/datatypes.py
+++ b/ibis/backends/base/sql/alchemy/datatypes.py
@@ -47,8 +47,9 @@ def __init__(self, fields: Mapping[str, sat.TypeEngine]) ->... |
lutris__lutris-4209 | [0.5.10] Your system kernel is not patched with fsync
### Bug description
I'm playing Guild Wars 2 with Lutris for several months now and its working great. Today I installed the 0.5.10 version via package manager on Linux Mint and things started to fail. Starting the game is impossible now, as 2 popups appear
1. "... | [
{
"content": "\"\"\"Wine runner\"\"\"\n# pylint: disable=too-many-lines\nimport os\nimport shlex\nfrom gettext import gettext as _\n\nfrom lutris import runtime, settings\nfrom lutris.gui.dialogs import FileDialog\nfrom lutris.runners.commands.wine import ( # noqa: F401 pylint: disable=unused-import\n creat... | [
{
"content": "\"\"\"Wine runner\"\"\"\n# pylint: disable=too-many-lines\nimport os\nimport shlex\nfrom gettext import gettext as _\n\nfrom lutris import runtime, settings\nfrom lutris.gui.dialogs import FileDialog\nfrom lutris.runners.commands.wine import ( # noqa: F401 pylint: disable=unused-import\n creat... | diff --git a/lutris/runners/wine.py b/lutris/runners/wine.py
index 8ae12282ae..0f548ddaef 100644
--- a/lutris/runners/wine.py
+++ b/lutris/runners/wine.py
@@ -309,7 +309,7 @@ def dxvk_vulkan_callback(widget, option, config):
"option": "fsync",
"label": _("Enable Fsync"),
... |
saleor__saleor-2099 | 'lines__product' is an invalid parameter to prefetch_related()
### What I'm trying to achieve
See order details page in the storefront.
### Steps to reproduce the problem
1. Create a digital product in the dashboard (no shipping required).
2. Log in as a customer and buy this product.
3. Once the order is create... | [
{
"content": "import logging\n\nfrom django.conf import settings\nfrom django.contrib import auth, messages\nfrom django.contrib.auth.decorators import login_required\nfrom django.db import transaction\nfrom django.http import Http404, HttpResponseForbidden\nfrom django.shortcuts import get_object_or_404, redir... | [
{
"content": "import logging\n\nfrom django.conf import settings\nfrom django.contrib import auth, messages\nfrom django.contrib.auth.decorators import login_required\nfrom django.db import transaction\nfrom django.http import Http404, HttpResponseForbidden\nfrom django.shortcuts import get_object_or_404, redir... | diff --git a/saleor/order/views.py b/saleor/order/views.py
index b71c4e35437..84046860e61 100644
--- a/saleor/order/views.py
+++ b/saleor/order/views.py
@@ -26,7 +26,7 @@
def details(request, token):
orders = Order.objects.confirmed().prefetch_related(
- 'lines__product', 'fulfillments', 'fulfillments__l... |
scikit-hep__uproot5-930 | "where" in expression fails with library "pandas"
## Short version
uproot version: 5.0.10
Using the keyword `where` in an expression when loading with `library="pd"` fails with
```
AttributeError: 'numpy.ndarray' object has no attribute 'to_frame'
```
(full stacktrace below)
## longer version
When loading a r... | [
{
"content": "# BSD 3-Clause License; see https://github.com/scikit-hep/uproot5/blob/main/LICENSE\n\n\"\"\"\nThis module represents external libraries that define \"array-like\" types so that users can\nchoose an output format.\n\nThe :doc:`uproot.interpretation.library.NumPy` library always works (NumPy is\nUp... | [
{
"content": "# BSD 3-Clause License; see https://github.com/scikit-hep/uproot5/blob/main/LICENSE\n\n\"\"\"\nThis module represents external libraries that define \"array-like\" types so that users can\nchoose an output format.\n\nThe :doc:`uproot.interpretation.library.NumPy` library always works (NumPy is\nUp... | diff --git a/src/uproot/interpretation/library.py b/src/uproot/interpretation/library.py
index 2ea8daecb..bfe68c88a 100644
--- a/src/uproot/interpretation/library.py
+++ b/src/uproot/interpretation/library.py
@@ -790,7 +790,10 @@ def _pandas_memory_efficient(pandas, series, names):
out = None
for name in name... |
learningequality__kolibri-7288 | Unable to see lessons created after upgrading Kolibri with PostgreSQL
<!--
Instructions:
* Fill out the sections below, replace …'s with information about your issue
* Use the 'preview' function above this text box to verify formatting before submitting
-->
### Observed behavior
<!--
Description of the behav... | [
{
"content": "from django.db import connection\nfrom django.db.models import Aggregate\nfrom django.db.models import CharField\nfrom django.db.models import IntegerField\nfrom django.db.models import Subquery\n\ntry:\n from django.contrib.postgres.aggregates import ArrayAgg\n\n class NotNullArrayAgg(Array... | [
{
"content": "from django.db import connection\nfrom django.db.models import Aggregate\nfrom django.db.models import CharField\nfrom django.db.models import IntegerField\nfrom django.db.models import Subquery\n\ntry:\n from django.contrib.postgres.aggregates import ArrayAgg\n\n class NotNullArrayAgg(Array... | diff --git a/kolibri/core/query.py b/kolibri/core/query.py
index cb8aba3becb..020412e5972 100644
--- a/kolibri/core/query.py
+++ b/kolibri/core/query.py
@@ -71,7 +71,10 @@ def get_source_field(model, field_path):
paths = field_path.split("__")
while len(paths) > 1:
model = model._meta.get_field(paths... |
networkx__networkx-7224 | `PlanarEmbedding.copy()` raising `NotImplementedError` after PR #6798
`PlanarEmbedding` inherits the method `copy()` from `nx.Graph`. However, the current implementation uses the method `add_edges_from()` which was made forbidden by PR #6798.
### Current Behavior
```python
embedding = nx.PlanarEmbedding({1: {2: ... | [
{
"content": "from collections import defaultdict\n\nimport networkx as nx\n\n__all__ = [\"check_planarity\", \"is_planar\", \"PlanarEmbedding\"]\n\n\n@nx._dispatchable\ndef is_planar(G):\n \"\"\"Returns True if and only if `G` is planar.\n\n A graph is *planar* iff it can be drawn in a plane without\n ... | [
{
"content": "from collections import defaultdict\n\nimport networkx as nx\n\n__all__ = [\"check_planarity\", \"is_planar\", \"PlanarEmbedding\"]\n\n\n@nx._dispatchable\ndef is_planar(G):\n \"\"\"Returns True if and only if `G` is planar.\n\n A graph is *planar* iff it can be drawn in a plane without\n ... | diff --git a/networkx/algorithms/planarity.py b/networkx/algorithms/planarity.py
index db494481cd1..1a19e5ecf21 100644
--- a/networkx/algorithms/planarity.py
+++ b/networkx/algorithms/planarity.py
@@ -1385,3 +1385,16 @@ def is_directed(self):
contained.
"""
return False
+
+ def copy(self, ... |
googleapis__python-bigquery-79 | Unit tests fail in Python 2.7, 3.5 (dependency issue)
Unit tests check fails on Python 2.7 and Python 3.5, because not all dependencies can be installed.
#### Environment details
- OS type and version: Linux (and possibly others?)
- Python version: 2.7, 3.5
- pip version: `pip --version`: 20.0.2
- `goo... | [
{
"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 4519472d3..7a1347616 100644
--- a/setup.py
+++ b/setup.py
@@ -50,7 +50,14 @@
"pyarrow>=0.4.1, != 0.14.0"
],
"tqdm": ["tqdm >= 4.0.0, <5.0.0dev"],
- "fastparquet": ["fastparquet", "python-snappy"],
+ "fastparquet": [
+ "fastparquet",
+ "python... |
wright-group__WrightTools-319 | Raise issue in calibration for dimensionality too high
https://github.com/wright-group/WrightTools/blob/44da87cf4dfa18f87bdd699b832066ace50f6ec1/WrightTools/calibration.py#L263
This one I could see requiring changes to gracefully catch the exception thrown here, but Feel an exception is more clear than a print/retur... | [
{
"content": "\"\"\"Calibration.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport collections\n\nimport numpy as np\n\nimport scipy\n\nimport... | [
{
"content": "\"\"\"Calibration.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport collections\n\nimport numpy as np\n\nimport scipy\n\nimport... | diff --git a/WrightTools/calibration.py b/WrightTools/calibration.py
index bbf63d0fe..37efa2ca9 100644
--- a/WrightTools/calibration.py
+++ b/WrightTools/calibration.py
@@ -260,8 +260,7 @@ def plot(self, autosave=False, save_directory=None, file_name=None):
wt_artists.plot_colorbar(cax=cax, ticks=ticks)
... |
iterative__dvc-2403 | git checkout some-file causes dvc to try to remove a dvc-managed file
When I `git checkout some-file` to clean away my local changes to that file, the dvc hook butts in and says:
> ERROR: unexpected error - unable to remove 'data/qix/1a285cea-7b71-4492-9b4d-87092bfb9869.json.gz' without a confirmation from the user.... | [
{
"content": "\"\"\"Manages Git.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport os\nimport logging\n\nfrom dvc.utils.compat import str, open\nfrom dvc.utils import fix_env, relpath\nfrom dvc.scm.base import (\n Base,\n SCMError,\n FileNotInRepoError,\n FileNotInTargetSubdirError,\n)\nfro... | [
{
"content": "\"\"\"Manages Git.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport os\nimport logging\n\nfrom dvc.utils.compat import str, open\nfrom dvc.utils import fix_env, relpath\nfrom dvc.scm.base import (\n Base,\n SCMError,\n FileNotInRepoError,\n FileNotInTargetSubdirError,\n)\nfro... | diff --git a/dvc/scm/git/__init__.py b/dvc/scm/git/__init__.py
index 290ca58020..582d777dd8 100644
--- a/dvc/scm/git/__init__.py
+++ b/dvc/scm/git/__init__.py
@@ -216,7 +216,11 @@ def list_tags(self):
return [t.name for t in self.repo.tags]
def _install_hook(self, name, cmd):
- command = '[ -z "$... |
ivy-llc__ivy-17476 | matrix_power
| [
{
"content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\nfrom ivy.functional.frontends.paddle import promote_types_of_paddle_inputs\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_supported_dtypes(\n ... | [
{
"content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\nfrom ivy.functional.frontends.paddle import promote_types_of_paddle_inputs\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_supported_dtypes(\n ... | diff --git a/ivy/functional/frontends/paddle/tensor/linalg.py b/ivy/functional/frontends/paddle/tensor/linalg.py
index 9493c1749d92e..12490752865f4 100644
--- a/ivy/functional/frontends/paddle/tensor/linalg.py
+++ b/ivy/functional/frontends/paddle/tensor/linalg.py
@@ -130,3 +130,10 @@ def bmm(x, y, transpose_x=False, t... |
ansible__ansible-modules-core-92 | git module key_file= option doesn't interpret the ~/ as $HOME
[This is a clone of ansible/ansible#7533 of which I am **not** the author]
##### Issue Type:
Bug Report
##### Ansible Version:
ansible 1.6.2
##### Environment:
Ubuntu 12.04
##### Summary:
git module key_file= option doesn't interpret the ~/ as $HOME
####... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software ... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software ... | diff --git a/source_control/git.py b/source_control/git.py
index a5d94e3dbbe..47dab35812b 100644
--- a/source_control/git.py
+++ b/source_control/git.py
@@ -518,6 +518,10 @@ def main():
else:
gitconfig = os.path.join(dest, '.git', 'config')
+ # make sure the key_file path is expanded for ~ an... |
angr__angr-997 | Exception when importing angr in binary ninja
I tried importing angr in the Binary Ninja Python Shell and got this traceback
```
>>> import angr
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/user/.virtualenvs/angr/lib/python2.7/site-packages/angr/__init__.py", line 26, in... | [
{
"content": "import multiprocessing\n#import concurrent.futures\nimport logging\nimport weakref\nimport functools\nimport claripy\nimport sys\n\nfrom ..sim_state import SimState\n\nl = logging.getLogger(\"angr.surveyor\")\n\n#\n# Surveyor debugging\n#\n\nSTOP_RUNS = False\nPAUSE_RUNS = False\n\ndef enable_sing... | [
{
"content": "import multiprocessing\n#import concurrent.futures\nimport logging\nimport weakref\nimport functools\nimport claripy\nimport sys\n\nfrom ..sim_state import SimState\n\nl = logging.getLogger(\"angr.surveyor\")\n\n#\n# Surveyor debugging\n#\n\nSTOP_RUNS = False\nPAUSE_RUNS = False\n\ndef enable_sing... | diff --git a/angr/surveyors/surveyor.py b/angr/surveyors/surveyor.py
index 72e7dc79226..5e35d1884a1 100644
--- a/angr/surveyors/surveyor.py
+++ b/angr/surveyors/surveyor.py
@@ -45,6 +45,8 @@ def handler(signum, frame): # pylint: disable=W0613,
signal.signal(signal.SIGUSR2, handler)
except AttributeError:
l.... |
ckan__ckan-7948 | Catch AttributeErrors in license retrieval
The following code segment may also result in an `AttributeError`:
https://github.com/ckan/ckan/blob/8ddc2e800793d683c856b4a56f3d3f0ad3f1d168/ckan/views/resource.py#L95-L96
If, for some reason, the license object returned by `model.Package.get_license_register()[license_... | [
{
"content": "# encoding: utf-8\nfrom __future__ import annotations\n\nimport cgi\nimport json\nimport logging\nfrom typing import Any, Optional, Union\n\nfrom werkzeug.wrappers.response import Response as WerkzeugResponse\nimport flask\nfrom flask.views import MethodView\n\nimport ckan.lib.base as base\nimport... | [
{
"content": "# encoding: utf-8\nfrom __future__ import annotations\n\nimport cgi\nimport json\nimport logging\nfrom typing import Any, Optional, Union\n\nfrom werkzeug.wrappers.response import Response as WerkzeugResponse\nimport flask\nfrom flask.views import MethodView\n\nimport ckan.lib.base as base\nimport... | diff --git a/changes/7931.bugfix b/changes/7931.bugfix
new file mode 100644
index 00000000000..826aa77c216
--- /dev/null
+++ b/changes/7931.bugfix
@@ -0,0 +1 @@
+Catch AttributeErrors in license retrieval.
diff --git a/ckan/views/resource.py b/ckan/views/resource.py
index 31450424452..608cc358fb8 100644
--- a/ckan/view... |
weni-ai__bothub-engine-145 | Just email console backend in development mode
When EMAIL_HOST is setted and DEBUG is True email continue on console
| [
{
"content": "import os\nimport dj_database_url\n\nfrom decouple import config\n\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY ... | [
{
"content": "import os\nimport dj_database_url\n\nfrom decouple import config\n\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY ... | diff --git a/bothub/settings.py b/bothub/settings.py
index bd3d07f8..0a8b27e4 100644
--- a/bothub/settings.py
+++ b/bothub/settings.py
@@ -169,7 +169,7 @@
default='webmaster@localhost')
SERVER_EMAIL = config('SERVER_EMAIL', default='root@localhost')
-if not DEBUG and envvar_EMAIL_HOST:
+if envvar_EMAIL_HOST:
... |
googleapis__google-auth-library-python-175 | GCE metadata ping taking ~75 seconds, not timing out after 3 seconds
google-api-python-client: 1.6.2
python version: 3.5.2
```
from google.auth.compute_engine import _metadata
import google.auth.transport._http_client
request = google.auth.transport._http_client.Request()
_metadata.ping(request=request)
```
... | [
{
"content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica... | [
{
"content": "# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica... | diff --git a/google/auth/transport/_http_client.py b/google/auth/transport/_http_client.py
index 3cf5583ee..4a1009641 100644
--- a/google/auth/transport/_http_client.py
+++ b/google/auth/transport/_http_client.py
@@ -94,7 +94,7 @@ def __call__(self, url, method='GET', body=None, headers=None,
'http.cli... |
paperless-ngx__paperless-ngx-195 | [Other] Update name to paperless-ngx in docs
https://github.com/paperless-ngx/paperless-ngx/issues/4#issuecomment-1039890021
> I would go through the places where the project name is mentioned and add the x to it. Only actually code (variable names) could remain unchanged for backwards compatibility.
| [
{
"content": "from django.conf.urls import include\nfrom django.contrib import admin\nfrom django.contrib.auth.decorators import login_required\nfrom django.urls import path, re_path\nfrom django.views.decorators.csrf import csrf_exempt\nfrom django.views.generic import RedirectView\nfrom rest_framework.authtok... | [
{
"content": "from django.conf.urls import include\nfrom django.contrib import admin\nfrom django.contrib.auth.decorators import login_required\nfrom django.urls import path, re_path\nfrom django.views.decorators.csrf import csrf_exempt\nfrom django.views.generic import RedirectView\nfrom rest_framework.authtok... | diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 2fc3ccd194e..f542d48bf45 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -14,7 +14,7 @@ assignees: ''
=> If you would like to submit a feature request please submit one under... |
OpenEnergyPlatform__oeplatform-1250 | [OPR] Begin feature rollout phase - Communicate to the use
## Description of the issue
The open peer review process is about to be rolled out to the open energy plaform. As we first release the feature into the wild, we must communicate that we start the first step of the rollout phase. This phase is expected to be ... | [
{
"content": "from django import forms\nfrom django.contrib.auth.mixins import LoginRequiredMixin\nfrom django.contrib.auth.views import PasswordChangeView\nfrom django.core.exceptions import PermissionDenied\nfrom django.shortcuts import get_object_or_404, redirect, render\nfrom django.urls import reverse_lazy... | [
{
"content": "from django import forms\nfrom django.contrib.auth.mixins import LoginRequiredMixin\nfrom django.contrib.auth.views import PasswordChangeView\nfrom django.core.exceptions import PermissionDenied\nfrom django.shortcuts import get_object_or_404, redirect, render\nfrom django.urls import reverse_lazy... | diff --git a/base/static/css/bootstrap.min.css b/base/static/css/bootstrap.min.css
index 498358945..caabd40b1 100644
--- a/base/static/css/bootstrap.min.css
+++ b/base/static/css/bootstrap.min.css
@@ -3,4 +3,4 @@
* Copyright 2011-2022 The Bootstrap Authors
* Copyright 2011-2022 Twitter, Inc.
* Licensed under MIT ... |
opendatacube__datacube-core-593 | Extend datacube.model
There are several classes that should be implemented to replace python dictionaries to improve look and feel of the API
* **Tile** - to be used with `GridWorkflow`
* **Measurement** - returned from `model.Dataset.measurements`
* **SpectralDefinitions** - encapsulate spectral definition arrays f... | [
{
"content": "# coding=utf-8\n\"\"\"\nCore classes used across modules.\n\"\"\"\nfrom __future__ import absolute_import, division\n\nimport logging\nimport math\nimport warnings\nfrom collections import namedtuple, OrderedDict, Sequence\nfrom pathlib import Path\nfrom uuid import UUID\n\nfrom affine import Affi... | [
{
"content": "# coding=utf-8\n\"\"\"\nCore classes used across modules.\n\"\"\"\nfrom __future__ import absolute_import, division\n\nimport logging\nimport math\nimport warnings\nfrom collections import namedtuple, OrderedDict, Sequence\nfrom pathlib import Path\nfrom uuid import UUID\n\nfrom affine import Affi... | diff --git a/datacube/model/__init__.py b/datacube/model/__init__.py
index 4d1e951c44..a264669220 100644
--- a/datacube/model/__init__.py
+++ b/datacube/model/__init__.py
@@ -573,16 +573,6 @@ def _polygon_from_sources_extents(sources, geobox):
GeoPolygon.from_sources_extents = _polygon_from_sources_extents
-class ... |
Pycord-Development__pycord-572 | Strange behaviour when using commands in group
### Summary
The bot thinks "self" is "ctx"
### Reproduction Steps
Have commands inside a cog class
### Minimal Reproducible Code
_No response_
### Expected Results
Seperation between ctx and self
### Actual Results
When attempting to call local f... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Rapptz\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 restriction, including without limitation\nth... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Rapptz\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 restriction, including without limitation\nth... | diff --git a/discord/cog.py b/discord/cog.py
index 20d3ee1b23..6106579be9 100644
--- a/discord/cog.py
+++ b/discord/cog.py
@@ -146,7 +146,7 @@ def __new__(cls: Type[CogMeta], *args: Any, **kwargs: Any) -> CogMeta:
del listeners[elem]
try:
- if getattr(value, "p... |
sunpy__sunpy-7148 | Fido query for GBM data only matches files with v00.pha and misses those that have been version updated (e.g. v01.pha)
### Describe the bug
The way the source client for GBM is currently implemented, scraper only looks for files ending with `v00.pha`, and hence wont return data if its instead `v01.pha`
I'll make ... | [
{
"content": "from sunpy.net.dataretriever import GenericClient\n\n__all__ = ['GBMClient']\n\n\nclass GBMClient(GenericClient):\n \"\"\"\n Provides access to data from the Gamma-Ray Burst Monitor (GBM) instrument\n on board the Fermi satellite.\n\n Although GBMs primary objective is to detect gamma-... | [
{
"content": "from sunpy.net.dataretriever import GenericClient\n\n__all__ = ['GBMClient']\n\n\nclass GBMClient(GenericClient):\n \"\"\"\n Provides access to data from the Gamma-Ray Burst Monitor (GBM) instrument\n on board the Fermi satellite.\n\n Although GBMs primary objective is to detect gamma-... | diff --git a/changelog/7148.bugfix.rst b/changelog/7148.bugfix.rst
new file mode 100644
index 00000000000..ea99f742201
--- /dev/null
+++ b/changelog/7148.bugfix.rst
@@ -0,0 +1 @@
+Updated the url of the `~sunpy.net.dataretriever.GBMClient` to match on files other than those that end with version 0 (i.e., V0.pha).
diff ... |
googleapis__python-spanner-django-310 | django-test-suite: reject in code tables with long names e.g. in backends test suite
Mandated by Cloud Spanner in
https://cloud.google.com/spanner/quotas#tables and

we should upfront... | [
{
"content": "# Copyright 2020 Google LLC\n#\n# Use of this source code is governed by a BSD-style\n# license that can be found in the LICENSE file or at\n# https://developers.google.com/open-source/licenses/bsd\n\nimport os\nimport re\nfrom base64 import b64decode\nfrom datetime import datetime, time\nfrom dec... | [
{
"content": "# Copyright 2020 Google LLC\n#\n# Use of this source code is governed by a BSD-style\n# license that can be found in the LICENSE file or at\n# https://developers.google.com/open-source/licenses/bsd\n\nimport os\nimport re\nfrom base64 import b64decode\nfrom datetime import datetime, time\nfrom dec... | diff --git a/spanner/django/operations.py b/spanner/django/operations.py
index bc1ca27c9f..82a361a13f 100644
--- a/spanner/django/operations.py
+++ b/spanner/django/operations.py
@@ -35,6 +35,10 @@ class DatabaseOperations(BaseDatabaseOperations):
'iso_year': 'isoyear',
}
+ def max_name_length(self):... |
celery__celery-7481 | Missing `f` prefix on f-strings
Some strings looks like they're meant to be f-strings but are missing the `f` prefix meaning variable interpolation won't happen.
https://github.com/celery/celery/blob/8d35c655d6ac408023da5e30ca81bc834e68bca0/celery/backends/dynamodb.py#L131
I found this issue automatically. I'm a bot.... | [
{
"content": "\"\"\"AWS DynamoDB result store backend.\"\"\"\nfrom collections import namedtuple\nfrom time import sleep, time\n\nfrom kombu.utils.url import _parse_url as parse_url\n\nfrom celery.exceptions import ImproperlyConfigured\nfrom celery.utils.log import get_logger\n\nfrom .base import KeyValueStoreB... | [
{
"content": "\"\"\"AWS DynamoDB result store backend.\"\"\"\nfrom collections import namedtuple\nfrom time import sleep, time\n\nfrom kombu.utils.url import _parse_url as parse_url\n\nfrom celery.exceptions import ImproperlyConfigured\nfrom celery.utils.log import get_logger\n\nfrom .base import KeyValueStoreB... | diff --git a/celery/backends/dynamodb.py b/celery/backends/dynamodb.py
index 4fbd9aaf7d7..7c2f1ca5b39 100644
--- a/celery/backends/dynamodb.py
+++ b/celery/backends/dynamodb.py
@@ -128,7 +128,7 @@ def __init__(self, url=None, table_name=None, *args, **kwargs):
self.time_to_live_seconds = int(ttl)
... |
certbot__certbot-2293 | Update _get_ranked_matches comment to describe ordering by SSL too
(Slightly related to #2059)
One technique for managing Nginx vhosts is to have two config files per server name, one for HTTP and one for HTTPS. Both files would contain the same server_name, and the Nginx configurator would pick one arbitrarily to ins... | [
{
"content": "\"\"\"Nginx Configuration\"\"\"\nimport logging\nimport os\nimport re\nimport shutil\nimport socket\nimport subprocess\nimport time\n\nimport OpenSSL\nimport zope.interface\n\nfrom acme import challenges\nfrom acme import crypto_util as acme_crypto_util\n\nfrom letsencrypt import constants as core... | [
{
"content": "\"\"\"Nginx Configuration\"\"\"\nimport logging\nimport os\nimport re\nimport shutil\nimport socket\nimport subprocess\nimport time\n\nimport OpenSSL\nimport zope.interface\n\nfrom acme import challenges\nfrom acme import crypto_util as acme_crypto_util\n\nfrom letsencrypt import constants as core... | diff --git a/letsencrypt-nginx/letsencrypt_nginx/configurator.py b/letsencrypt-nginx/letsencrypt_nginx/configurator.py
index efa7e08b4ea..69168896992 100644
--- a/letsencrypt-nginx/letsencrypt_nginx/configurator.py
+++ b/letsencrypt-nginx/letsencrypt_nginx/configurator.py
@@ -239,6 +239,7 @@ def choose_vhost(self, targ... |
wright-group__WrightTools-228 | wt.google_drive.Drive.download() calls `self._list_folder()` when it should call `self.list_folder()`
See offending [line](https://github.com/wright-group/WrightTools/blob/039507d95561fd237dc7ba66b4d4f37ce6148397/WrightTools/google_drive.py#L248).
[Line](https://github.com/wright-group/WrightTools/blob/039507d95561f... | [
{
"content": "\"\"\"Interact with google drive using the pydrive package.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport time\nimport datet... | [
{
"content": "\"\"\"Interact with google drive using the pydrive package.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport time\nimport datet... | diff --git a/WrightTools/google_drive.py b/WrightTools/google_drive.py
index 1d74c604b..a9fc36dc9 100644
--- a/WrightTools/google_drive.py
+++ b/WrightTools/google_drive.py
@@ -245,7 +245,7 @@ def download(self, fileid, directory='cwd', overwrite=False, verbose=True):
if not os.path.isdir(f_path):
... |
bokeh__bokeh-2364 | `to_bokeh` ignores alpha
Hey,
I'm using seaborn's `tsplot` a lot but sadly the `alpha` values are being ignored when converting with `to_bokeh`. See the example:

. We should ensure that we are compatible, so there are a couple of things to do
* [x] Create a fresh Python 3.9 environment.yml (with current package versions)
* [x] Update Travis and Appveyor CI setup files
- [x] Check i... | [
{
"content": "#\n# This file is part of the PyMeasure package.\n#\n# Copyright (c) 2013-2020 PyMeasure Developers\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 restr... | [
{
"content": "#\n# This file is part of the PyMeasure package.\n#\n# Copyright (c) 2013-2020 PyMeasure Developers\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 restr... | diff --git a/.travis.yml b/.travis.yml
index 3c1fff8529..ea5e5e4254 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,12 +22,19 @@ jobs:
env: PYTHON=3.8 CONDA_PY=38
services:
- xvfb
+ - os: linux
+ dist: xenial
+ env: PYTHON=3.9 CONDA_PY=39
+ services:
+ - xvfb
- o... |
sosreport__sos-3281 | Some MAAS config files missing from collection
Currently we're only collecting `/var/lib/maas/dhcp`, meaning that we're missing other key config files that would help with troubleshooting MAAS issues, e.g., `/var/lib/maas/http`. I'd suggest to add the below paths to be collected:
* /var/lib/maas/http/*
* /var/lib/... | [
{
"content": "# Copyright (C) 2013 Adam Stokes <adam.stokes@ubuntu.com>\n#\n# This file is part of the sos project: https://github.com/sosreport/sos\n#\n# This copyrighted material is made available to anyone wishing to use,\n# modify, copy, or redistribute it subject to the terms and conditions of\n# version 2... | [
{
"content": "# Copyright (C) 2013 Adam Stokes <adam.stokes@ubuntu.com>\n#\n# This file is part of the sos project: https://github.com/sosreport/sos\n#\n# This copyrighted material is made available to anyone wishing to use,\n# modify, copy, or redistribute it subject to the terms and conditions of\n# version 2... | diff --git a/sos/report/plugins/maas.py b/sos/report/plugins/maas.py
index 61b305dc21..ca819511a4 100644
--- a/sos/report/plugins/maas.py
+++ b/sos/report/plugins/maas.py
@@ -87,6 +87,9 @@ def setup(self):
"/etc/squid-deb-proxy",
"/etc/maas",
"/var/lib/maas/dhcp*",
+ ... |
akvo__akvo-rsr-4094 | Investigate creation of duplicate user accounts with differently cased emails
- [ ] Verify that lookups using email are using `__iexact` or something like that.
- [ ] Figure out a plan for existing duplicates
| [
{
"content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\nfrom dja... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\nfrom dja... | diff --git a/akvo/rest/views/utils.py b/akvo/rest/views/utils.py
index 7a2d82570e..ca758aaa5f 100644
--- a/akvo/rest/views/utils.py
+++ b/akvo/rest/views/utils.py
@@ -63,7 +63,7 @@ def create_invited_user(email):
User = get_user_model()
# Check if the user already exists, based on the email address
try:
... |
pre-commit__pre-commit-986 | Error when building RPM
When building RPM for Fedora i got this:
`*** ERROR: ambiguous python shebang in /usr/lib/python3.7/site-packages/pre_commit/resources/hook-tmpl: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.`
Would be great if this fixed.
| [
{
"content": "from __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport io\nimport itertools\nimport logging\nimport os.path\nimport sys\n\nfrom pre_commit import git\nfrom pre_commit import output\nfrom pre_commit.clientlib import load_config\nfrom pre_commit.repository import al... | [
{
"content": "from __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport io\nimport itertools\nimport logging\nimport os.path\nimport sys\n\nfrom pre_commit import git\nfrom pre_commit import output\nfrom pre_commit.clientlib import load_config\nfrom pre_commit.repository import al... | diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py
index 7e33961cd..5f9f5c392 100644
--- a/pre_commit/commands/install_uninstall.py
+++ b/pre_commit/commands/install_uninstall.py
@@ -107,7 +107,7 @@ def install(
before, rest = contents.split(TEMPLATE_START)
... |
secdev__scapy-1268 | Syntax Error when importing from command()
I sniffed a packet and used packet.command():
```
"RadioTap(len=33, present=2684895274, version=0, notdecoded=b' \\x08\\x00\\xa0 \\x08\\x00\\x00\\x10\\x00\\x9e\\t\\x80\\x04\\xb7\\x00\\x00\\x007\\x00\\x07\\xb7\\x00\\xb7\\x01', pad=0)/Dot11(addr3='06:18:0a:f2:1e:10', proto=0, ... | [
{
"content": "## This file is part of Scapy\n## See http://www.secdev.org/projects/scapy for more informations\n## Copyright (C) Philippe Biondi <phil@secdev.org>\n## This program is published under a GPLv2 license\n\n\"\"\"\nWireless LAN according to IEEE 802.11.\n\"\"\"\n\nfrom __future__ import print_functio... | [
{
"content": "## This file is part of Scapy\n## See http://www.secdev.org/projects/scapy for more informations\n## Copyright (C) Philippe Biondi <phil@secdev.org>\n## This program is published under a GPLv2 license\n\n\"\"\"\nWireless LAN according to IEEE 802.11.\n\"\"\"\n\nfrom __future__ import print_functio... | diff --git a/scapy/layers/dot11.py b/scapy/layers/dot11.py
index a5510ac6eb0..90e53660a36 100644
--- a/scapy/layers/dot11.py
+++ b/scapy/layers/dot11.py
@@ -180,7 +180,7 @@ def unwep(self, key=None, warn=1):
class Dot11QoS(Packet):
name = "802.11 QoS"
fields_desc = [ BitField("Reserved",None,1),
- ... |
python__mypy-4613 | Crash in fine grained mode likely related to enums
Here is a traceback:
```
Traceback (most recent call last):
File "[somewhere]/mypy/dmypy_server.py", line 135, in serve
resp = self.run_command(command, data)
File "[somewhere]/mypy/dmypy_server.py", line 169, in run_command
return method(self, **data... | [
{
"content": "\"\"\"Merge a new version of a module AST and symbol table to older versions of those.\n\nWhen the source code of a module has a change in fine-grained incremental mode,\nwe build a new AST from the updated source. However, other parts of the program\nmay have direct references to parts of the old... | [
{
"content": "\"\"\"Merge a new version of a module AST and symbol table to older versions of those.\n\nWhen the source code of a module has a change in fine-grained incremental mode,\nwe build a new AST from the updated source. However, other parts of the program\nmay have direct references to parts of the old... | diff --git a/mypy/server/astmerge.py b/mypy/server/astmerge.py
index 511c3b685e9e..3d13edac14bc 100644
--- a/mypy/server/astmerge.py
+++ b/mypy/server/astmerge.py
@@ -254,7 +254,9 @@ def fixup(self, node: SN) -> SN:
def fixup_type(self, typ: Type) -> None:
typ.accept(TypeReplaceVisitor(self.replacements))... |
carltongibson__django-filter-1215 | Required BaseInFilters aren't required
I'm not sure if this also applies to forms or not, I only tested in DRF.
```python
class StringInFilter(filters.BaseInFilter, filters.CharFilter):
pass
class ThingFilterSet(filters.FilterSet):
foo = StringInFilter(field_name="foo", required=True)
...
```
... | [
{
"content": "from collections import namedtuple\nfrom datetime import datetime, time\n\nfrom django import forms\nfrom django.utils.dateparse import parse_datetime\nfrom django.utils.encoding import force_str\nfrom django.utils.translation import gettext_lazy as _\n\nfrom .conf import settings\nfrom .constants... | [
{
"content": "from collections import namedtuple\nfrom datetime import datetime, time\n\nfrom django import forms\nfrom django.utils.dateparse import parse_datetime\nfrom django.utils.encoding import force_str\nfrom django.utils.translation import gettext_lazy as _\n\nfrom .conf import settings\nfrom .constants... | diff --git a/django_filters/fields.py b/django_filters/fields.py
index 930bba473..e04e3892e 100644
--- a/django_filters/fields.py
+++ b/django_filters/fields.py
@@ -184,6 +184,9 @@ def _get_widget_class(self, widget):
return type(str('CSV%s' % widget.__name__), bases, {})
def clean(self, value):
+ ... |
dask__distributed-2870 | SpecCluster error when removing workers
When attempting to scale down a `SpecCluster` I'm getting the following error.
```python-traceback
distributed.utils - ERROR - 'Worker' object has no attribute 'worker_address'
Traceback (most recent call last):
File "/home/nfs/jtomlinson/Projects/dask/distributed/distrib... | [
{
"content": "import asyncio\nimport atexit\nimport weakref\n\nfrom tornado import gen\n\nfrom .cluster import Cluster\nfrom ..core import rpc, CommClosedError\nfrom ..utils import LoopRunner, silence_logging, ignoring\nfrom ..scheduler import Scheduler\nfrom ..security import Security\n\n\nclass SpecCluster(Cl... | [
{
"content": "import asyncio\nimport atexit\nimport weakref\n\nfrom tornado import gen\n\nfrom .cluster import Cluster\nfrom ..core import rpc, CommClosedError\nfrom ..utils import LoopRunner, silence_logging, ignoring\nfrom ..scheduler import Scheduler\nfrom ..security import Security\n\n\nclass SpecCluster(Cl... | diff --git a/distributed/deploy/spec.py b/distributed/deploy/spec.py
index 441ef10a595..2af3cd2f090 100644
--- a/distributed/deploy/spec.py
+++ b/distributed/deploy/spec.py
@@ -318,8 +318,6 @@ def new_worker_spec(self):
async def scale_down(self, workers):
workers = set(workers)
- # TODO: this is... |
scikit-hep__awkward-970 | Doubly jagged workaround broken in awkward 1.4.0rc2
There was a quick fix (made for KM3NeT data 😄) for doubly jagged arrays which were discussed here https://github.com/scikit-hep/uproot4/issues/90 and the it uses the `akward._io` submodule which is not accessible anymore directly (`AttributeError`) in `1.4.0rc2`.
... | [
{
"content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\nfrom __future__ import absolute_import\n\nimport json\n\n# don't import awkward._connect._uproot in awkward/__init__.py!\nimport uproot\n\nimport awkward as ak\n\n\ndef can_optimize(interpretation, form):\n ... | [
{
"content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\nfrom __future__ import absolute_import\n\nimport json\n\n# don't import awkward._connect._uproot in awkward/__init__.py!\nimport uproot\n\nimport awkward as ak\n\n\ndef can_optimize(interpretation, form):\n ... | diff --git a/src/awkward/_connect/_uproot.py b/src/awkward/_connect/_uproot.py
index aef8fd4543..eb137db8ac 100644
--- a/src/awkward/_connect/_uproot.py
+++ b/src/awkward/_connect/_uproot.py
@@ -33,9 +33,11 @@ def can_optimize(interpretation, form):
def basket_array(form, data, byte_offsets, extra):
+ import aw... |
evennia__evennia-3487 | [BUG] 'get' 'drop' and 'give' throw an exception if no arguments are given
#### Describe the bug
The commands `get` `drop` and `give` throw an exception if no object is specified:
```
>get
Traceback (most recent call last):
File "/home/chiizujin/Data/Source/Python/Evennia-contrib/evennia/evennia/commands/c
md... | [
{
"content": "\"\"\"\nGeneral Character commands usually available to all characters\n\"\"\"\n\nimport re\n\nimport evennia\nfrom django.conf import settings\nfrom evennia.typeclasses.attributes import NickTemplateInvalid\nfrom evennia.utils import utils\n\nCOMMAND_DEFAULT_CLASS = utils.class_from_module(settin... | [
{
"content": "\"\"\"\nGeneral Character commands usually available to all characters\n\"\"\"\n\nimport re\n\nimport evennia\nfrom django.conf import settings\nfrom evennia.typeclasses.attributes import NickTemplateInvalid\nfrom evennia.utils import utils\n\nCOMMAND_DEFAULT_CLASS = utils.class_from_module(settin... | diff --git a/evennia/commands/default/general.py b/evennia/commands/default/general.py
index 88c15f74f46..5b27318a032 100644
--- a/evennia/commands/default/general.py
+++ b/evennia/commands/default/general.py
@@ -397,7 +397,7 @@ def parse(self):
"""
super().parse()
self.number = 0
- if... |
geopandas__geopandas-728 | ValueError when saving geodataframe with pandas timestamps to shapefile
Is there any proper way to fix this error inside geopandas (not fiona)?
(Or maybe I'm trying to do the wrong thing and for example should convert my timestamps into strings before writing?)
```
C:\Users\kkrasnoschekov\_soft\WinPython-64bit-3.4.3.... | [
{
"content": "import os\nfrom distutils.version import LooseVersion\n\nimport fiona\nimport numpy as np\n\nimport six\n\ntry:\n from fiona import Env as fiona_env\nexcept ImportError:\n from fiona import drivers as fiona_env\n\nfrom geopandas import GeoDataFrame, GeoSeries\n\n\n_FIONA18 = LooseVersion(fio... | [
{
"content": "import os\nfrom distutils.version import LooseVersion\n\nimport fiona\nimport numpy as np\n\nimport six\n\ntry:\n from fiona import Env as fiona_env\nexcept ImportError:\n from fiona import drivers as fiona_env\n\nfrom geopandas import GeoDataFrame, GeoSeries\n\n\n_FIONA18 = LooseVersion(fio... | diff --git a/geopandas/io/file.py b/geopandas/io/file.py
index 8c78dd3ad2..5fdee3bbd3 100644
--- a/geopandas/io/file.py
+++ b/geopandas/io/file.py
@@ -140,6 +140,9 @@ def infer_schema(df):
def convert_type(column, in_type):
if in_type == object:
return 'str'
+ if in_type.name.startswit... |
gratipay__gratipay.com-3227 | Blurred (GitHub?) avatars on profile pages
Some profile pictures (avatars) appear blurry for me. Judging from a few samples, mostly pictures imported from Github seem to be affected. Take mine as an example:
https://gratipay.com/korakinos/
https://github.com/korakinos
Among the samples I took, almost all avatars from ... | [
{
"content": "from __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom datetime import timedelta\nimport json\nfrom urlparse import urlsplit, urlunsplit\nimport uuid\nimport xml.etree.ElementTree as ET\n\nfrom aspen import Response\nfrom aspen.utils import utcnow\nfrom postgres... | [
{
"content": "from __future__ import absolute_import, division, print_function, unicode_literals\n\nimport json\nfrom urlparse import urlsplit, urlunsplit\nimport xml.etree.ElementTree as ET\n\nfrom aspen import Response\nfrom postgres.orm import Model\nfrom psycopg2 import IntegrityError\nimport xmltodict\n\ni... | diff --git a/gratipay/models/account_elsewhere.py b/gratipay/models/account_elsewhere.py
index 93576ce7ca..6db958511a 100644
--- a/gratipay/models/account_elsewhere.py
+++ b/gratipay/models/account_elsewhere.py
@@ -81,7 +81,7 @@ def upsert(cls, i):
fragment = ''
if netloc.endswith('githubuserc... |
dbt-labs__dbt-core-4878 | [CT-371] [Bug] CLI vars in packages.yml and selectors.yml don't work.
When we did the work to separate out rendering of secrets, a bug was introduced where instead of using cli_vars to construct the contexts for packages and selectors, we use the entire yaml context (which is also a dict). Because of this we get errors... | [
{
"content": "from typing import Dict, Any, Tuple, Optional, Union, Callable\n\nfrom dbt.clients.jinja import get_rendered, catch_jinja\nfrom dbt.context.target import TargetContext\nfrom dbt.context.secret import SecretContext\nfrom dbt.context.base import BaseContext\nfrom dbt.contracts.connection import HasC... | [
{
"content": "from typing import Dict, Any, Tuple, Optional, Union, Callable\n\nfrom dbt.clients.jinja import get_rendered, catch_jinja\nfrom dbt.context.target import TargetContext\nfrom dbt.context.secret import SecretContext\nfrom dbt.context.base import BaseContext\nfrom dbt.contracts.connection import HasC... | diff --git a/.changes/unreleased/Fixes-20220316-155420.yaml b/.changes/unreleased/Fixes-20220316-155420.yaml
new file mode 100644
index 00000000000..6ace26bf512
--- /dev/null
+++ b/.changes/unreleased/Fixes-20220316-155420.yaml
@@ -0,0 +1,7 @@
+kind: Fixes
+body: Use cli_vars instead of context to create package and se... |
wagtail__wagtail-713 | Typo in wagtailforms.forms.FormBuilder.formfields
Line 86:
``` python
raise Exception("Unrecognised field type: " + form.field_type)
```
This raises `NameError: global name 'form' is not defined`
Ordinarily the flow of things wouldn't run into this line, but I was caught out when badly naming a form field in the jso... | [
{
"content": "import django.forms\nfrom django.utils.datastructures import SortedDict\n\n\nclass BaseForm(django.forms.Form):\n def __init__(self, *args, **kwargs):\n kwargs.setdefault('label_suffix', '')\n return super(BaseForm, self).__init__(*args, **kwargs)\n\n\nclass FormBuilder(object):\n... | [
{
"content": "import django.forms\nfrom django.utils.datastructures import SortedDict\n\n\nclass BaseForm(django.forms.Form):\n def __init__(self, *args, **kwargs):\n kwargs.setdefault('label_suffix', '')\n return super(BaseForm, self).__init__(*args, **kwargs)\n\n\nclass FormBuilder(object):\n... | diff --git a/wagtail/wagtailforms/forms.py b/wagtail/wagtailforms/forms.py
index 4f874133a3bc..b91a378f6180 100644
--- a/wagtail/wagtailforms/forms.py
+++ b/wagtail/wagtailforms/forms.py
@@ -83,7 +83,7 @@ def formfields(self):
if field.field_type in self.FIELD_TYPES:
formfields[field.clean... |
saleor__saleor-2087 | Missing variable in "fulfillment" email
Two small issues in the "fulfillment" email:
- logo is missing
- in footer there is missing template variable
I've just tested it and this is how the email looks like:
:
def collect_data_for_fullfillment_email(order_pk, template, fulfillment_pk):
fulfillment = ... |
google__flax-2364 | Transpose Convolution module issue when used with circular padding and vmap
### Problem you have encountered:
I'm simply trying to `vmap` a `ConvTranspose` layer with circular padding, and it results in a `jax._src.errors.TracerArrayConversionError`. I'm running things on GPU.
### Steps to reproduce:
Here is a min... | [
{
"content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | [
{
"content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | diff --git a/flax/linen/linear.py b/flax/linen/linear.py
index d18a58b3a..c0dae7f4c 100644
--- a/flax/linen/linear.py
+++ b/flax/linen/linear.py
@@ -603,7 +603,7 @@ def __call__(self, inputs: Array) -> Array:
total_pad = [
((size_diff + 1) // 2, size_diff // 2) for size_diff in size_diffs
]
- ... |
pulp__pulpcore-4722 | file:// sync deletes files from directory
**Version**
Pulpcore 3.39
**Describe the bug**
When syncing file:// repositories, files are disappearing after the sync.
**To Reproduce**
1) Copy these two repositories to the FS:
- https://github.com/Katello/katello/tree/master/test/fixtures/test_repos/file1
- h... | [
{
"content": "import os\n\nfrom urllib.parse import urlparse\n\nimport aiofiles\n\nfrom .base import BaseDownloader, DownloadResult\n\n\nclass FileDownloader(BaseDownloader):\n \"\"\"\n A downloader for downloading files from the filesystem.\n\n It provides digest and size validation along with computa... | [
{
"content": "import os\n\nfrom urllib.parse import urlparse\n\nimport aiofiles\n\nfrom .base import BaseDownloader, DownloadResult\n\n\nclass FileDownloader(BaseDownloader):\n \"\"\"\n A downloader for downloading files from the filesystem.\n\n It provides digest and size validation along with computa... | diff --git a/.github/template_gitref b/.github/template_gitref
index 256a0012e0..50128a8a72 100644
--- a/.github/template_gitref
+++ b/.github/template_gitref
@@ -1 +1 @@
-2021.08.26-251-g45d399d
+2021.08.26-259-ge0f38f0
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0... |
pulp__pulpcore-4684 | file:// sync deletes files from directory
**Version**
Pulpcore 3.39
**Describe the bug**
When syncing file:// repositories, files are disappearing after the sync.
**To Reproduce**
1) Copy these two repositories to the FS:
- https://github.com/Katello/katello/tree/master/test/fixtures/test_repos/file1
- h... | [
{
"content": "import os\n\nfrom urllib.parse import urlparse\n\nimport aiofiles\n\nfrom .base import BaseDownloader, DownloadResult\n\n\nclass FileDownloader(BaseDownloader):\n \"\"\"\n A downloader for downloading files from the filesystem.\n\n It provides digest and size validation along with computa... | [
{
"content": "import os\n\nfrom urllib.parse import urlparse\n\nimport aiofiles\n\nfrom .base import BaseDownloader, DownloadResult\n\n\nclass FileDownloader(BaseDownloader):\n \"\"\"\n A downloader for downloading files from the filesystem.\n\n It provides digest and size validation along with computa... | diff --git a/CHANGES/4681.bugfix b/CHANGES/4681.bugfix
new file mode 100644
index 0000000000..2388ea2f6a
--- /dev/null
+++ b/CHANGES/4681.bugfix
@@ -0,0 +1 @@
+Fix file:// syncs deleting the original files.
diff --git a/pulpcore/download/file.py b/pulpcore/download/file.py
index a078e3b99d..100872dcc4 100644
--- a/pulp... |
streamlink__streamlink-551 | Recurring issue with live streams
Hi,
I successfully make working some live streams but i experienced an issue and i can't show everything and even if i post a link of a master .m3u8, it will not work because it needs an authentication as well. (cookies with sensitive stuff)
I try this way :
livestreamer --ht... | [
{
"content": "import struct\nfrom collections import defaultdict, namedtuple\n\nfrom Crypto.Cipher import AES\n\nfrom streamlink.stream import hls_playlist\nfrom streamlink.stream.ffmpegmux import FFMPEGMuxer, MuxedStream\nfrom streamlink.stream.http import HTTPStream\nfrom streamlink.stream.segmented import (S... | [
{
"content": "import struct\nfrom collections import defaultdict, namedtuple\n\nfrom Crypto.Cipher import AES\n\nfrom streamlink.stream import hls_playlist\nfrom streamlink.stream.ffmpegmux import FFMPEGMuxer, MuxedStream\nfrom streamlink.stream.http import HTTPStream\nfrom streamlink.stream.segmented import (S... | diff --git a/src/streamlink/stream/hls.py b/src/streamlink/stream/hls.py
index 289547895e7..696e71a559b 100644
--- a/src/streamlink/stream/hls.py
+++ b/src/streamlink/stream/hls.py
@@ -39,6 +39,7 @@ def create_decryptor(self, key, sequence):
if self.key_uri != key.uri:
res = self.session.http.ge... |
HypothesisWorks__hypothesis-2000 | lists with unique_by → one_of → keyword-only composite = TypeError
Hypothesis 4.24.0, pytest 4.6.0, Python 3.7.3, macOS 10.14.5
A TypeError is raised when a lists strategy with the unique_by argument is chained to a one_of strategy chained to a composite strategy that only has keyword-only arguments.
The followin... | [
{
"content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Most of this work is copyright (C) 2013-2019 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full li... | [
{
"content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Most of this work is copyright (C) 2013-2019 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full li... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..f58fa5ccb8
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,5 @@
+RELEASE_TYPE: patch
+
+This patch fixes :issue:`1999`, a spurious bug raised when a :func:`@st.composite <hypothesis.strategies.... |
aio-libs__aiohttp-5176 | Tuple index out of range with 3.7.1 and no IPv6
🐞 **Describe the bug**
After upgrading to aiohttp==3.7.1, dns resolution fails with an exception.
💡 **To Reproduce**
<!-- How to reproduce the behavior?
For example:
1. Have certain environment
2. Run given code snippet in a certain way
3. See some behavior... | [
{
"content": "import socket\nfrom typing import Any, Dict, List\n\nfrom .abc import AbstractResolver\nfrom .helpers import get_running_loop\n\n__all__ = (\"ThreadedResolver\", \"AsyncResolver\", \"DefaultResolver\")\n\ntry:\n import aiodns\n\n # aiodns_default = hasattr(aiodns.DNSResolver, 'gethostbyname'... | [
{
"content": "import socket\nfrom typing import Any, Dict, List\n\nfrom .abc import AbstractResolver\nfrom .helpers import get_running_loop\n\n__all__ = (\"ThreadedResolver\", \"AsyncResolver\", \"DefaultResolver\")\n\ntry:\n import aiodns\n\n # aiodns_default = hasattr(aiodns.DNSResolver, 'gethostbyname'... | diff --git a/CHANGES/5156.bugfix b/CHANGES/5156.bugfix
new file mode 100644
index 00000000000..cdc76824277
--- /dev/null
+++ b/CHANGES/5156.bugfix
@@ -0,0 +1 @@
+Fixed querying the address families from DNS that the current host supports.
diff --git a/aiohttp/resolver.py b/aiohttp/resolver.py
index d810b95827b..aa580a7... |
aws__aws-cli-761 | datapipeline query-object --query argument is shadowed
The top level `--query` option shadows the `--query` from datapipeline query-object. This can be addressed in the argrename customization model. We can also take this opportunity to remove the `cli_name` from the `.extra.json` files in botocore.
| [
{
"content": "# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0/\n#... | [
{
"content": "# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0/\n#... | diff --git a/awscli/customizations/argrename.py b/awscli/customizations/argrename.py
index 54ff4c21111d..cdd8454dccb3 100644
--- a/awscli/customizations/argrename.py
+++ b/awscli/customizations/argrename.py
@@ -26,6 +26,11 @@
'ec2.create-image.no-no-reboot': 'reboot',
'ec2.*.no-egress': 'ingress',
'ec2.*... |
learningequality__kolibri-1348 | After submitting the exam the learner is still allowed to start the exam.
## Summary
After submitting the exam the learner is still allowed to start the exam. Where as it should show the **Completed** and the learner should not be allowed to retake.
## System information
- Version: Kolibri 0.4.0aplha2
- Ope... | [
{
"content": "from django.db.models import Sum\nfrom django.utils.timezone import now\nfrom kolibri.auth.models import FacilityUser\nfrom kolibri.logger.models import AttemptLog, ContentRatingLog, ContentSessionLog, ContentSummaryLog, ExamAttemptLog, ExamLog, MasteryLog, UserSessionLog\nfrom rest_framework impo... | [
{
"content": "from django.db.models import Sum\nfrom django.utils.timezone import now\nfrom kolibri.auth.models import FacilityUser\nfrom kolibri.logger.models import AttemptLog, ContentRatingLog, ContentSessionLog, ContentSummaryLog, ExamAttemptLog, ExamLog, MasteryLog, UserSessionLog\nfrom rest_framework impo... | diff --git a/kolibri/logger/serializers.py b/kolibri/logger/serializers.py
index 3ed099fb9ad..3c92a95ffb9 100644
--- a/kolibri/logger/serializers.py
+++ b/kolibri/logger/serializers.py
@@ -31,7 +31,7 @@ def update(self, instance, validated_data):
# This has changed, set the completion timestamp
if val... |
holoviz__holoviews-4904 | `hv.dim` doesn't support multiple parametrized inputs per operation
If you try to have more than one parametrized input per deferred `hv.dim` operation, one of the widgets doesn't update.
This is because `hv.dim.params` overwrites keys in the returned dictionary for more than one input, causing the problem seen in hol... | [
{
"content": "from __future__ import division\n\nimport operator\nimport sys\n\nfrom types import BuiltinFunctionType, BuiltinMethodType, FunctionType, MethodType\n\nimport numpy as np\nimport param\n\nfrom ..core.data import PandasInterface\nfrom ..core.dimension import Dimension\nfrom ..core.util import bases... | [
{
"content": "from __future__ import division\n\nimport operator\nimport sys\n\nfrom types import BuiltinFunctionType, BuiltinMethodType, FunctionType, MethodType\n\nimport numpy as np\nimport param\n\nfrom ..core.data import PandasInterface\nfrom ..core.dimension import Dimension\nfrom ..core.util import bases... | diff --git a/holoviews/util/transform.py b/holoviews/util/transform.py
index bb97b80d4f..86ca8405bc 100644
--- a/holoviews/util/transform.py
+++ b/holoviews/util/transform.py
@@ -322,7 +322,7 @@ def params(self):
params.update(op_arg.params)
if (isinstance(op_arg, param.Parameter) ... |
microsoft__botbuilder-python-1207 | [PORT] Remove Slack from the list of channels that support Suggested Actions
> Port this change from botbuilder-dotnet/master branch:
https://github.com/microsoft/botbuilder-dotnet/pull/4177
Fixes #2291
Removing Slack from the list of channels that do not support suggested actions.
# Changed projects
* Microso... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nfrom botbuilder.core import TurnContext\nfrom botframework.connector import Channels\n\n\nclass Channel:\n \"\"\"\n Methods for determining channel-specific functionality.\n \"\"\"\n\n @st... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\nfrom botbuilder.core import TurnContext\nfrom botframework.connector import Channels\n\n\nclass Channel:\n \"\"\"\n Methods for determining channel-specific functionality.\n \"\"\"\n\n @st... | diff --git a/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/channel.py b/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/channel.py
index 4c1c59d0f..41c313047 100644
--- a/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/channel.py
+++ b/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/ch... |
aio-libs__aiohttp-254 | Connection not closed when request is cancelled
When making a lot of concurrent client requests to the same host using connection pooling, TCPConnector will create a lot of connections. When cancelling these client requests, not all connections are closed.
This is not easy to reproduce. I have a long running server pr... | [
{
"content": "__all__ = ['BaseConnector', 'TCPConnector', 'ProxyConnector', 'UnixConnector']\n\nimport asyncio\nimport aiohttp\nimport functools\nimport http.cookies\nimport time\nimport ssl\nimport socket\nimport weakref\n\nfrom .client import ClientRequest\nfrom .errors import ServerDisconnectedError\nfrom .e... | [
{
"content": "__all__ = ['BaseConnector', 'TCPConnector', 'ProxyConnector', 'UnixConnector']\n\nimport asyncio\nimport aiohttp\nimport functools\nimport http.cookies\nimport time\nimport ssl\nimport socket\nimport weakref\n\nfrom .client import ClientRequest\nfrom .errors import ServerDisconnectedError\nfrom .e... | diff --git a/aiohttp/connector.py b/aiohttp/connector.py
index 49a7fd76341..6027a38f560 100644
--- a/aiohttp/connector.py
+++ b/aiohttp/connector.py
@@ -199,7 +199,9 @@ def _release(self, key, req, transport, protocol, *, should_close=False):
reader = protocol.reader
if should_close or (reader.outpu... |
Kinto__kinto-500 | POST with If-None-Match: * and provided id in body always return 412
Detected using kinto-client v0.4.0 https://github.com/Kinto/kinto-client/blob/v0.4.0/src/requests.js#L188-L205
See https://github.com/mozilla-services/cliquet/issues/673
| [
{
"content": "import codecs\nimport os\nimport sys\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read_file(filename):\n \"\"\"Open a related file and return its content.\"\"\"\n with codecs.open(os.path.join(here, filename), encoding='utf-8') as... | [
{
"content": "import codecs\nimport os\nimport sys\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read_file(filename):\n \"\"\"Open a related file and return its content.\"\"\"\n with codecs.open(os.path.join(here, filename), encoding='utf-8') as... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 362d3be9c..c60ab75fc 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -19,6 +19,7 @@ This document describes changes between each past release.
thanks @ayusharma)
- Server now returns 415 error response if client cannot accept JSON response (#461, mozilla-services/c... |
voxel51__fiftyone-2588 | [BUG] Sorting by similarity does not work on develop
On `develop`, nothing happens when clicking `Apply` below to sort by similarity in the App:
```py
import fiftyone as fo
import fiftyone.brain as fob
import fiftyone.zoo as foz
dataset = foz.load_zoo_dataset("quickstart")
model = foz.load_zoo_model("clip-v... | [
{
"content": "\"\"\"\nFiftyOne Server /sort route\n\n| Copyright 2017-2023, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nfrom starlette.endpoints import HTTPEndpoint\nfrom starlette.requests import Request\n\nimport fiftyone.core.dataset as fod\nimport fiftyone.core.fields as fof\nimport f... | [
{
"content": "\"\"\"\nFiftyOne Server /sort route\n\n| Copyright 2017-2023, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n\"\"\"\nfrom starlette.endpoints import HTTPEndpoint\nfrom starlette.requests import Request\n\nimport fiftyone.core.dataset as fod\nimport fiftyone.core.fields as fof\nimport f... | diff --git a/app/packages/state/src/hooks/useStateUpdate.ts b/app/packages/state/src/hooks/useStateUpdate.ts
index 027b8126031..147f4fd157b 100644
--- a/app/packages/state/src/hooks/useStateUpdate.ts
+++ b/app/packages/state/src/hooks/useStateUpdate.ts
@@ -53,7 +53,7 @@ const useStateUpdate = () => {
const { get... |
espnet__espnet-5590 | real-time TTS demo - using reference speech
I have been trying to use the code below to generate an audio using reference speech.
I added 'use_teacher_forcing=True' in the Text2speech config to be able to use reference speech. But it doesn't seem to work.
The output on the console is provided below. Please help. Is t... | [
{
"content": "# Copyright 2020 Nagoya University (Tomoki Hayashi)\n# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n\n\"\"\"Text-to-speech ESPnet model.\"\"\"\n\nfrom contextlib import contextmanager\nfrom typing import Dict, Optional, Tuple\n\nimport torch\nfrom packaging.version import parse as V\... | [
{
"content": "# Copyright 2020 Nagoya University (Tomoki Hayashi)\n# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n\n\"\"\"Text-to-speech ESPnet model.\"\"\"\n\nfrom contextlib import contextmanager\nfrom typing import Dict, Optional, Tuple\n\nimport torch\nfrom packaging.version import parse as V\... | diff --git a/espnet2/tts/espnet_model.py b/espnet2/tts/espnet_model.py
index ee41d6e4c72..b33970b6b76 100644
--- a/espnet2/tts/espnet_model.py
+++ b/espnet2/tts/espnet_model.py
@@ -260,8 +260,6 @@ def inference(
if self.normalize is not None:
feats = self.normalize(feats[None])[0][0]
... |
mdn__kuma-2298 | Research: Could we compress CSS/JS more aggressively?
| [
{
"content": "# Django settings for kuma project.\nimport logging\nimport os\nimport platform\nimport json\n\nfrom django.utils.functional import lazy\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom sumo_locales import LOCALES\n\nDEBUG = False\nTEMPLATE_DEBUG = DEBUG\n\nROOT = os.path.dirname(o... | [
{
"content": "# Django settings for kuma project.\nimport logging\nimport os\nimport platform\nimport json\n\nfrom django.utils.functional import lazy\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom sumo_locales import LOCALES\n\nDEBUG = False\nTEMPLATE_DEBUG = DEBUG\n\nROOT = os.path.dirname(o... | diff --git a/puppet/manifests/classes/cleancss.pp b/puppet/manifests/classes/cleancss.pp
new file mode 100644
index 00000000000..4e8f1318fb6
--- /dev/null
+++ b/puppet/manifests/classes/cleancss.pp
@@ -0,0 +1,10 @@
+# Get clean-css
+class cleancss {
+ exec { 'cleancss-install':
+ command => '/usr/bin/npm inst... |
plotly__plotly.py-1615 | plotlyServerURL config option overridden by plotly_domain from ~/.plotly/.config
Setting plotlyServerURL in the config dict passed to iplot will always create a plot where the "Edit in Chart Studio" button sends the plot to the base url defined by plotly_domain.
This code won't change the plotly url used by the "Ed... | [
{
"content": "\"\"\" Plotly Offline\n A module to use Plotly's graphing library with Python\n without connecting to a public or private plotly enterprise\n server.\n\"\"\"\nfrom __future__ import absolute_import\n\nimport os\nimport warnings\nimport pkgutil\nimport plotly\nimport plotly.tools\n\nfrom p... | [
{
"content": "\"\"\" Plotly Offline\n A module to use Plotly's graphing library with Python\n without connecting to a public or private plotly enterprise\n server.\n\"\"\"\nfrom __future__ import absolute_import\n\nimport os\nimport warnings\nimport pkgutil\nimport plotly\nimport plotly.tools\n\nfrom p... | diff --git a/plotly/offline/offline.py b/plotly/offline/offline.py
index f3e6730fb88..a1d24530b80 100644
--- a/plotly/offline/offline.py
+++ b/plotly/offline/offline.py
@@ -161,7 +161,8 @@ def _get_jconfig(config):
plotly_platform_url = plotly.tools.get_config_plotly_server_url()
- clean_config['plotlyServe... |
lutris__lutris-1133 | Disallow to launch Lutris as root
Please?
| [
{
"content": "# application.py\n#\n# Copyright (C) 2016 Patrick Griffis <tingping@tingping.se>\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 3 of the License, or\n... | [
{
"content": "# application.py\n#\n# Copyright (C) 2016 Patrick Griffis <tingping@tingping.se>\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 3 of the License, or\n... | diff --git a/lutris/gui/application.py b/lutris/gui/application.py
index b12554ccaf..10c1d57e9e 100644
--- a/lutris/gui/application.py
+++ b/lutris/gui/application.py
@@ -59,6 +59,9 @@ def __init__(self):
self.window = None
self.css_provider = Gtk.CssProvider.new()
+ if os.geteuid() == 0:
+ ... |
sherlock-project__sherlock-139 | Sites sorting
It may be a good idea to sort the sites in sites.md and data.json alphabetically. When I'm looking for sites to add, I always have to Ctrl+F in this repo or just scroll through the file... Also when seeing the results, it's just chaos.
| [
{
"content": "\"\"\"Sherlock: Supported Site Listing\n\nThis module generates the listing of supported sites.\n\"\"\"\nimport json\n\nwith open(\"data.json\", \"r\", encoding=\"utf-8\") as data_file:\n data = json.load(data_file)\n\nwith open(\"sites.md\", \"w\") as site_file:\n site_file.write(f'## List ... | [
{
"content": "\"\"\"Sherlock: Supported Site Listing\n\nThis module generates the listing of supported sites.\n\"\"\"\nimport json\n\nwith open(\"data.json\", \"r\", encoding=\"utf-8\") as data_file:\n data = json.load(data_file)\n\nsorted_json_data = json.dumps(data, indent=2, sort_keys=True)\n\nwith open(\... | diff --git a/data.json b/data.json
index 5b3122cd5..84412975e 100644
--- a/data.json
+++ b/data.json
@@ -1,752 +1,751 @@
{
- "Instagram": {
- "url": "https://www.instagram.com/{}",
- "urlMain": "https://www.instagram.com/",
+ "500px": {
+ "errorMsg": "Sorry, no such page.",
"errorType": "message",
- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.