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
genialis__resolwe-167
Ordering of processes does not work Tested on the QA server: https://qa.genialis.com/api/process?slug=alignment-bwa-mem&ordering=-version For the above query, the `alignment-bwa-mem` processes should be sorted by version, descending. The version 16777232 should be at the top, but comes second.
[ { "content": "\"\"\".. Ignore pydocstyle D400.\n\n==========\nFlow Views\n==========\n\n\"\"\"\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport pkgutil\nfrom importlib import import_module\n\nfrom django.db import IntegrityError, transaction\nfrom django.d...
[ { "content": "\"\"\".. Ignore pydocstyle D400.\n\n==========\nFlow Views\n==========\n\n\"\"\"\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport pkgutil\nfrom importlib import import_module\n\nfrom django.db import IntegrityError, transaction\nfrom django.d...
diff --git a/resolwe/flow/tests/test_ordering.py b/resolwe/flow/tests/test_ordering.py new file mode 100644 index 000000000..58ab4126d --- /dev/null +++ b/resolwe/flow/tests/test_ordering.py @@ -0,0 +1,35 @@ +# pylint: disable=missing-docstring +from __future__ import absolute_import, division, print_function, unicode_...
ietf-tools__datatracker-4294
cvs export of group documents is dumping b'' strings From Tim Wicinski: >FYI > >So I went and dumped the WG documents via the CSV link: > >https://datatracker.ietf.org/group/dnsop/documents/csv/ > >Then I imported them into the googles sheets. >The CSV file has all strings as "b'<string>'" which >makes the imp...
[ { "content": "# Copyright The IETF Trust 2012-2020, All Rights Reserved\n# -*- coding: utf-8 -*-\n\n\nimport csv\nimport datetime\nimport json\nimport uuid\n\nfrom django.http import HttpResponse, HttpResponseRedirect, Http404\nfrom django.shortcuts import get_object_or_404, render\nfrom django.contrib.auth.dec...
[ { "content": "# Copyright The IETF Trust 2012-2020, All Rights Reserved\n# -*- coding: utf-8 -*-\n\n\nimport csv\nimport datetime\nimport json\nimport uuid\n\nfrom django.http import HttpResponse, HttpResponseRedirect, Http404\nfrom django.shortcuts import get_object_or_404, render\nfrom django.contrib.auth.dec...
diff --git a/ietf/community/views.py b/ietf/community/views.py index 7717c6ee1f..c67f992d6f 100644 --- a/ietf/community/views.py +++ b/ietf/community/views.py @@ -208,7 +208,7 @@ def export_to_csv(request, username=None, acronym=None, group_type=None): row.append(str(doc.ad) if doc.ad else "") e = doc...
deis__deis-3308
Controller: Domain remove, removes always the latest domain (deis):~/mozilla/deis-apps/masterfirefoxos-dev$ deis domains:list === masterfirefoxos-dev Domains dev.masterfirefoxos.com (deis):~/mozilla/deis-apps/masterfirefoxos-dev$ deis domains:add foo.example.com Adding foo.example.com to masterfirefoxos-dev... done (d...
[ { "content": "\"\"\"\nRESTful view classes for presenting Deis API objects.\n\"\"\"\n\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.contrib.auth.models import User\nfrom django.shortcuts import get_object_or_404\nfrom guardian.shortcuts import assign_perm, ge...
[ { "content": "\"\"\"\nRESTful view classes for presenting Deis API objects.\n\"\"\"\n\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.contrib.auth.models import User\nfrom django.shortcuts import get_object_or_404\nfrom guardian.shortcuts import assign_perm, ge...
diff --git a/controller/api/tests/test_domain.py b/controller/api/tests/test_domain.py index 7b8d98f927..b3bbe5675a 100644 --- a/controller/api/tests/test_domain.py +++ b/controller/api/tests/test_domain.py @@ -12,6 +12,8 @@ from django.test import TestCase from rest_framework.authtoken.models import Token +from ap...
mlflow__mlflow-6881
[FR] Add the ability to search runs based on 'user_id' ### Willingness to contribute No. I cannot contribute this feature at this time. ### Proposal Summary Enable run search to perform searches based on the `user_id` that submitted the run. ### Motivation > #### What is the use case for this feature? To return ...
[ { "content": "from mlflow.entities.run_status import RunStatus\nfrom mlflow.entities._mlflow_object import _MLflowObject\nfrom mlflow.entities.lifecycle_stage import LifecycleStage\nfrom mlflow.exceptions import MlflowException\n\nfrom mlflow.protos.service_pb2 import RunInfo as ProtoRunInfo\nfrom mlflow.protos...
[ { "content": "from mlflow.entities.run_status import RunStatus\nfrom mlflow.entities._mlflow_object import _MLflowObject\nfrom mlflow.entities.lifecycle_stage import LifecycleStage\nfrom mlflow.exceptions import MlflowException\n\nfrom mlflow.protos.service_pb2 import RunInfo as ProtoRunInfo\nfrom mlflow.protos...
diff --git a/docs/source/search-runs.rst b/docs/source/search-runs.rst index feb99aa7e4c92..ff5e57f7e306e 100644 --- a/docs/source/search-runs.rst +++ b/docs/source/search-runs.rst @@ -86,7 +86,7 @@ that have a leading number. If an entity name contains a leading number, enclose Run Attributes ~~~~~~~~~~~~~~ -You c...
Gallopsled__pwntools-597
A little bug in Buffer class There is a litttle bug in pwnlib.tubes.Buffer class.The class method unget has a type error in line 117.add a buffer and a list ``` Traceback (most recent call last): File "<input>", line 1, in <module> a.unget(b) File "buffer.py", line 117, in unget self.data = data + self.da...
[ { "content": "#!/usr/bin/env python2\n\nclass Buffer(Exception):\n \"\"\"\n List of strings with some helper routines.\n\n Example:\n\n >>> b = Buffer()\n >>> b.add(\"A\" * 10)\n >>> b.add(\"B\" * 10)\n >>> len(b)\n 20\n >>> b.get(1)\n 'A'\n >>> l...
[ { "content": "#!/usr/bin/env python2\n\nclass Buffer(Exception):\n \"\"\"\n List of strings with some helper routines.\n\n Example:\n\n >>> b = Buffer()\n >>> b.add(\"A\" * 10)\n >>> b.add(\"B\" * 10)\n >>> len(b)\n 20\n >>> b.get(1)\n 'A'\n >>> l...
diff --git a/pwnlib/tubes/buffer.py b/pwnlib/tubes/buffer.py index 199dcebfd..305d7e1b4 100644 --- a/pwnlib/tubes/buffer.py +++ b/pwnlib/tubes/buffer.py @@ -114,7 +114,7 @@ def unget(self, data): 'goodbyeworld' """ if isinstance(data, Buffer): - self.data = data + self.data + ...
pyinstaller__pyinstaller-5778
Problem with scikitimage and _rolling_ball_cy Hello Everyone, When I run exe file on my computer everything works ok but when I try to run on virtual machine I get the error File "skimage\restoration\rolling_ball.py", line 3, in <module> ImportError: DLL load failed while importing _rolling_ball_cy: The specified ...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2013-2021, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2013-2021, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
diff --git a/PyInstaller/depend/dylib.py b/PyInstaller/depend/dylib.py index cf4ebe05d7..47eb327bf1 100644 --- a/PyInstaller/depend/dylib.py +++ b/PyInstaller/depend/dylib.py @@ -104,6 +104,7 @@ r'msvcp140_1\.dll', r'msvcp140_2\.dll', r'vcruntime140_1\.dll', + r'vcomp140\.dll', # Allow pythonNN...
zostera__django-bootstrap4-219
Use Markdown The README, HISTORY, CONTRIBUTING and AUTHORS file are written in RST. Markdown is easier to read and easier to write, and usually the standard for files like these. Let's use Markdown for these files. Also, rename HISTORY to CHANGELOG, this is a more recognizable name.
[ { "content": "import os\n\ntry:\n from importlib.metadata import metadata\nexcept ImportError:\n from importlib_metadata import metadata\n\nPROJECT_NAME = \"django-bootstrap4\"\n\non_rtd = os.environ.get(\"READTHEDOCS\", None) == \"True\"\nproject_metadata = metadata(PROJECT_NAME)\n\nproject = project_met...
[ { "content": "import os\n\ntry:\n from importlib.metadata import metadata\nexcept ImportError:\n from importlib_metadata import metadata\n\nPROJECT_NAME = \"django-bootstrap4\"\n\non_rtd = os.environ.get(\"READTHEDOCS\", None) == \"True\"\nproject_metadata = metadata(PROJECT_NAME)\n\nproject = project_met...
diff --git a/AUTHORS.md b/AUTHORS.md new file mode 100644 index 00000000..4128757e --- /dev/null +++ b/AUTHORS.md @@ -0,0 +1,25 @@ +# Authors + +This application is developed and maintained by [Zostera](https://zostera.nl). + +## Development Lead + +- Dylan Verheul <dylan@dyve.net> + +## Contributors + +- Allard Stijnm...
evennia__evennia-2708
[BUG - Develop] Global scripts are not being started, only restarted. #### Describe the bug When creating a new game, global scripts are not automatically started. #### To Reproduce Steps to reproduce the behavior: 1. Create a new game dir. 2. Create a script with `at_repeat` and add it to your server conf. 3. ...
[ { "content": "\"\"\"\nContainers\n\nContainers are storage classes usually initialized from a setting. They\nrepresent Singletons and acts as a convenient place to find resources (\navailable as properties on the singleton)\n\nevennia.GLOBAL_SCRIPTS\nevennia.OPTION_CLASSES\n\n\"\"\"\n\n\nfrom pickle import dump...
[ { "content": "\"\"\"\nContainers\n\nContainers are storage classes usually initialized from a setting. They\nrepresent Singletons and acts as a convenient place to find resources (\navailable as properties on the singleton)\n\nevennia.GLOBAL_SCRIPTS\nevennia.OPTION_CLASSES\n\n\"\"\"\n\n\nfrom pickle import dump...
diff --git a/evennia/utils/containers.py b/evennia/utils/containers.py index 6b709fbf75d..85678ee03ee 100644 --- a/evennia/utils/containers.py +++ b/evennia/utils/containers.py @@ -167,7 +167,7 @@ def _load_script(self, key): # store a hash representation of the setup script.attributes.add("...
svthalia__concrexit-1767
Delete tpay payment if order is modified ### Summary Right now it is possible to order a pizza, pay it with tpay, change the order to a pizza with a different price, and the payment will not match the order anymore. ### How to test 1. Order a pizza 2. Pay with tpay 3. Change the order 4. The payment should be d...
[ { "content": "\"\"\"Views provided by the pizzas package.\"\"\"\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import login_required\nfrom django.http import Http404\nfrom django.shortcuts import get_object_or_404, render, redirect\nfrom django.utils.translation import gettext_lazy as...
[ { "content": "\"\"\"Views provided by the pizzas package.\"\"\"\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import login_required\nfrom django.http import Http404\nfrom django.shortcuts import get_object_or_404, render, redirect\nfrom django.utils.translation import gettext_lazy as...
diff --git a/website/pizzas/views.py b/website/pizzas/views.py index ffcf4c60c..f23167551 100644 --- a/website/pizzas/views.py +++ b/website/pizzas/views.py @@ -67,6 +67,6 @@ def place_order(request): obj = FoodOrder(food_event=event, member=request.member) obj.product = product if obj.pa...
boto__boto-2475
VPC Peering Connection "delete()" calls wrong method The "delete()" method of VpcPeeringConnection calls "self.connection.delete_vpc(self.id)" instead of "self.connection.delete_vpc_peering_connection(self.id)" **File:** boto/vpc/vpc_peering_connection.py
[ { "content": "# Copyright (c) 2014 Skytap http://skytap.com/\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitation the rights to...
[ { "content": "# Copyright (c) 2014 Skytap http://skytap.com/\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitation the rights to...
diff --git a/boto/vpc/vpc_peering_connection.py b/boto/vpc/vpc_peering_connection.py index d7c11e8e59..cdb9af8dae 100644 --- a/boto/vpc/vpc_peering_connection.py +++ b/boto/vpc/vpc_peering_connection.py @@ -145,7 +145,7 @@ def endElement(self, name, value, connection): setattr(self, name, value) def...
ManimCommunity__manim-2328
Fade animation blends with background color, even if background is transparent ## Description of bug / unexpected behavior When playing a FadeOut animation on an MObject, the color of the object interpolates to the background color even when the background is transparent. I encountered this bug when compositing a PNG ...
[ { "content": "\"\"\"Colors and utility functions for conversion between different color models.\"\"\"\n\n__all__ = [\n \"color_to_rgb\",\n \"color_to_rgba\",\n \"rgb_to_color\",\n \"rgba_to_color\",\n \"rgb_to_hex\",\n \"hex_to_rgb\",\n \"invert_color\",\n \"color_to_int_rgb\",\n \"co...
[ { "content": "\"\"\"Colors and utility functions for conversion between different color models.\"\"\"\n\n__all__ = [\n \"color_to_rgb\",\n \"color_to_rgba\",\n \"rgb_to_color\",\n \"rgba_to_color\",\n \"rgb_to_hex\",\n \"hex_to_rgb\",\n \"invert_color\",\n \"color_to_int_rgb\",\n \"co...
diff --git a/manim/utils/color.py b/manim/utils/color.py index 30669fda59..fa48ac693f 100644 --- a/manim/utils/color.py +++ b/manim/utils/color.py @@ -491,8 +491,9 @@ def color_to_int_rgb(color: Color) -> np.ndarray: def color_to_int_rgba(color: Color, opacity: float = 1.0) -> np.ndarray: - alpha = int(255 * op...
pallets__click-1695
Automatic short help should also take linebreak into account PEP257 defines a summary line for [multi-line docstrings](https://www.python.org/dev/peps/pep-0257/#multi-line-docstrings) just like a [one-line docstring](https://www.python.org/dev/peps/pep-0257/#one-line-docstrings) to be a phrase ending in a period. Cl...
[ { "content": "import os\nimport sys\n\nfrom ._compat import _default_text_stderr\nfrom ._compat import _default_text_stdout\nfrom ._compat import _find_binary_writer\nfrom ._compat import auto_wrap_for_ansi\nfrom ._compat import binary_streams\nfrom ._compat import filename_to_ui\nfrom ._compat import get_files...
[ { "content": "import os\nimport sys\n\nfrom ._compat import _default_text_stderr\nfrom ._compat import _default_text_stdout\nfrom ._compat import _find_binary_writer\nfrom ._compat import auto_wrap_for_ansi\nfrom ._compat import binary_streams\nfrom ._compat import filename_to_ui\nfrom ._compat import get_files...
diff --git a/CHANGES.rst b/CHANGES.rst index c11d9108d..d86e7cede 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -147,6 +147,8 @@ Unreleased - Fix formatting when ``Command.options_metavar`` is empty. :pr:`1551` - The default value passed to ``prompt`` will be cast to the correct type like an input value woul...
netbox-community__netbox-12228
L2VPN Bulk import not setting Tenant field ### NetBox version v3.4.7 ### Python version 3.8 ### Steps to Reproduce 1. Go to Overlay -> L2VPNs 2. Click the 'Import' button 3. Fill the Data Import text field with data that has `tenant` column populated 4. Submit the form ### Expected Behavior Imported L2VPNs sh...
[ { "content": "from django import forms\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import ValidationError\nfrom django.utils.translation import gettext as _\n\nfrom dcim.models import Device, Interface, Site\nfrom ipam.choices import *\nfrom ipam.constants import *\n...
[ { "content": "from django import forms\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import ValidationError\nfrom django.utils.translation import gettext as _\n\nfrom dcim.models import Device, Interface, Site\nfrom ipam.choices import *\nfrom ipam.constants import *\n...
diff --git a/netbox/ipam/forms/bulk_import.py b/netbox/ipam/forms/bulk_import.py index 972b98db233..6546722ca36 100644 --- a/netbox/ipam/forms/bulk_import.py +++ b/netbox/ipam/forms/bulk_import.py @@ -443,7 +443,8 @@ class L2VPNImportForm(NetBoxModelImportForm): class Meta: model = L2VPN - fields...
mosaicml__composer-2108
Less strict numpy version pinning ## 🚀 Feature Request Allow for newer numpy versions than `<1.23.0`. ## Motivation Currently, composer fixes numpy to be `'numpy>=1.21.5,<1.23.0'`. This is unfortunate, because other requirements that we use need numpy > 1.23.0, creating an incompatibility. This was set in #1...
[ { "content": "# Copyright 2022 MosaicML Composer authors\n# SPDX-License-Identifier: Apache-2.0\n\n\"\"\"Composer package setup.\"\"\"\n\nimport os\nimport site\nimport sys\nimport textwrap\n\nimport setuptools\nfrom setuptools import setup\nfrom setuptools.command.develop import develop as develop_orig\n\n# Re...
[ { "content": "# Copyright 2022 MosaicML Composer authors\n# SPDX-License-Identifier: Apache-2.0\n\n\"\"\"Composer package setup.\"\"\"\n\nimport os\nimport site\nimport sys\nimport textwrap\n\nimport setuptools\nfrom setuptools import setup\nfrom setuptools.command.develop import develop as develop_orig\n\n# Re...
diff --git a/setup.py b/setup.py index 40bf7709cb..89e03ce7e6 100644 --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ def package_files(prefix: str, directory: str, extension: str): 'torchvision>=0.11.0,<0.15', 'torch>=1.10.0,<1.14', 'requests>=2.26.0,<3', - 'numpy>=1.21.5,<1.23.0', + 'numpy>=1.21.5...
obspy__obspy-2344
fdsn EIDA routed client: problem with spammed subprocesses (memory leak) Issue reported on the users mailing list: ``` I am facing a potential issue with the ObsPy FDSN client. I am using the EIDA routing client to download waveform data and metadata for many stations. The way I do it is a simple loop over all s...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nBase class for all FDSN routers.\n\n:copyright:\n The ObsPy Development Team (devs@obspy.org)\n Celso G Reyes, 2017\n IRIS-DMC\n:license:\n GNU Lesser General Public License, Version 3\n (https://www.gnu.org/copyleft/lesser.htm...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nBase class for all FDSN routers.\n\n:copyright:\n The ObsPy Development Team (devs@obspy.org)\n Celso G Reyes, 2017\n IRIS-DMC\n:license:\n GNU Lesser General Public License, Version 3\n (https://www.gnu.org/copyleft/lesser.htm...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index b1b49484664..5abcccdd144 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -37,6 +37,8 @@ master: * make sure that streams fetched via FDSN are properly trimmed to user requested times if data center serves additional data around the start/end (see #1887,...
ckan__ckan-6057
Activity queries getting slow (~15 seconds) when following entities. ## CKAN version Tested in 2.9.2 but probably also happening in master ## Describe the bug `<lib/helpers.py:2567(new_activities)>` spikes to ~15 seconds if the user is following 2 or 3 organizations (with around 200 datasets each) in a ~1000+ data...
[ { "content": "# encoding: utf-8\n\nimport datetime\n\nfrom sqlalchemy import (\n orm,\n types,\n Column,\n Table,\n ForeignKey,\n desc,\n or_,\n and_,\n union_all,\n text,\n)\n\nfrom ckan.common import config\nimport ckan.model\nfrom ckan.model import meta\nfrom ckan.model import d...
[ { "content": "# encoding: utf-8\n\nimport datetime\n\nfrom sqlalchemy import (\n orm,\n types,\n Column,\n Table,\n ForeignKey,\n desc,\n or_,\n and_,\n union_all,\n text,\n)\n\nfrom ckan.common import config\nimport ckan.model\nfrom ckan.model import meta\nfrom ckan.model import d...
diff --git a/changes/6028.bugfix b/changes/6028.bugfix new file mode 100644 index 00000000000..2bbd9faf175 --- /dev/null +++ b/changes/6028.bugfix @@ -0,0 +1 @@ +Fix performance bottleneck in activity queries diff --git a/ckan/model/activity.py b/ckan/model/activity.py index a1cada55c90..12ac4b9c631 100644 --- a/ckan/m...
obspy__obspy-2204
Cartopy local projection for south hemisphere. Hi, There is a misbehavior on the local projection option on the South hemisphere using cartopy: Test code as follow: ``` import matplotlib.pyplot as plt import obspy from obspy.clients.fdsn import Client auspass = Client("http://auspass.edu.au:8080") station...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nModule for basemap related plotting in ObsPy.\n\n:copyright:\n The ObsPy Development Team (devs@obspy.org)\n:license:\n GNU Lesser General Public License, Version 3\n (https://www.gnu.org/copyleft/lesser.html)\n\"\"\"\nfrom __future__ import (absolute_impo...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nModule for basemap related plotting in ObsPy.\n\n:copyright:\n The ObsPy Development Team (devs@obspy.org)\n:license:\n GNU Lesser General Public License, Version 3\n (https://www.gnu.org/copyleft/lesser.html)\n\"\"\"\nfrom __future__ import (absolute_impo...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index de4973fde94..5850c9afe37 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -26,6 +26,8 @@ - obspy.imaging: * Normalize moment tensors prior to plotting in the mopad wrapper to stabilize the algorithm (see #2114, #2125). + * fix some map plotting issues with...
bokeh__bokeh-10308
bokehjs' version has duplicated dev suffix ```sh $ jq '.version' bokehjs/package.json "2.2.0dev4-dev.4" ``` Should be `2.2.0-dev.4` instead.
[ { "content": "# -----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n# --------------------------------------...
[ { "content": "# -----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n# --------------------------------------...
diff --git a/ci/environment-test-3.6.yml b/ci/environment-test-3.6.yml index feb684fac01..b9556657501 100644 --- a/ci/environment-test-3.6.yml +++ b/ci/environment-test-3.6.yml @@ -28,7 +28,7 @@ dependencies: - flaky - geckodriver - ipython - - isort >=4.3.21 + - isort <5.0 - mock - mypy - nbconvert...
akvo__akvo-rsr-2604
urgent: projects missing iggwater.akvoapp.org Created via Reamaze: Link: https://rsrsupport.reamaze.com/admin/conversations/urgent-projects-missing-iggwater-dot-akvoapp-dot-org Assignee: Anthony Gonzalez Message: Hi RSR-team, Just wanted to visit iggwater.akvoapp.org, but somehow all projects that were previ...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nAkvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the\nAkvo RSR module. For additional details on the GNU license please see\n< http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nAkvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the\nAkvo RSR module. For additional details on the GNU license please see\n< http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\...
diff --git a/akvo/rsr/tests/views/test_project.py b/akvo/rsr/tests/views/test_project.py index 9581530c89..7aeb31a7fd 100644 --- a/akvo/rsr/tests/views/test_project.py +++ b/akvo/rsr/tests/views/test_project.py @@ -15,7 +15,7 @@ from django.conf import settings from django.test import Client, TestCase -from akvo.rs...
rucio__rucio-2776
Account and Scope new types Motivation ---------- For multi-vo the internal representation of scope and account will need to be different from the external representation. The translations for these should be done in a consistent way and this can be prepared beforehand. Modification ------------ Create a new t...
[ { "content": "\n'''\nThis file is automatically generated; Do not edit it. :)\n'''\nVERSION_INFO = {\n 'final': True,\n 'version': '1.20.3',\n 'branch_nick': 'patch-0-Release__Rucio_1_20_3_preparation',\n 'revision_id': 'f05e019f7178590718bf3f1eee415cc46cb59159',\n 'revno': 8410\n}\n", "path"...
[ { "content": "\n'''\nThis file is automatically generated; Do not edit it. :)\n'''\nVERSION_INFO = {\n 'final': True,\n 'version': '1.20.4rc1',\n 'branch_nick': 'patch-0-Release__1_20_4rc1_preparation',\n 'revision_id': '525812b8f83f1069d38ab78aebedb732f21e77ec',\n 'revno': 8418\n}\n", "path"...
diff --git a/doc/source/releasenotes/1.20.4rc1.rst b/doc/source/releasenotes/1.20.4rc1.rst new file mode 100644 index 0000000000..4be3659cb5 --- /dev/null +++ b/doc/source/releasenotes/1.20.4rc1.rst @@ -0,0 +1,20 @@ +========= +1.20.4rc1 +========= + +------- +General +------- + +************ +Enhancements +***********...
dotkom__onlineweb4-165
Adding 'Offline Informasjonstekster' causes error Not really sure what this does but it casts an error saying: Exception Type: IntegrityError Exception Value: column key is not unique
[ { "content": "from apps.offline.models import ProxyChunk, Issue\nfrom chunks.models import Chunk\nfrom django.contrib import admin\nfrom django.db.models import Q\n\n\nclass ProxyChunkAdmin(admin.ModelAdmin):\n\n readonly_fields = ['key']\n\n def queryset(self, request):\n offline = Chunk.objects.f...
[ { "content": "from apps.offline.models import ProxyChunk, Issue\nfrom chunks.models import Chunk\nfrom django.contrib import admin\nfrom django.db.models import Q\n\n\nclass ProxyChunkAdmin(admin.ModelAdmin):\n\n readonly_fields = ['key']\n\n def has_add_permission(self, request):\n return False\n\...
diff --git a/apps/offline/admin.py b/apps/offline/admin.py index c4fc6e020..8ec805833 100644 --- a/apps/offline/admin.py +++ b/apps/offline/admin.py @@ -8,6 +8,9 @@ class ProxyChunkAdmin(admin.ModelAdmin): readonly_fields = ['key'] + def has_add_permission(self, request): + return False + def qu...
PyGithub__PyGithub-2460
401 unauthorized after upgrading to 1.58.0 We use `GithubIntegration.get_access_token` to authenticate and after upgrading we now get this response: ``` github.GithubException.GithubException: 401 {"message": "'Expiration time' claim ('exp') must be a numeric value representing the future time at which the assertio...
[ { "content": "import time\n\nimport deprecated\nimport jwt\n\nfrom github import Consts\nfrom github.GithubException import GithubException\nfrom github.Installation import Installation\nfrom github.InstallationAuthorization import InstallationAuthorization\nfrom github.PaginatedList import PaginatedList\nfrom ...
[ { "content": "import time\n\nimport deprecated\nimport jwt\n\nfrom github import Consts\nfrom github.GithubException import GithubException\nfrom github.Installation import Installation\nfrom github.InstallationAuthorization import InstallationAuthorization\nfrom github.PaginatedList import PaginatedList\nfrom ...
diff --git a/github/GithubIntegration.py b/github/GithubIntegration.py index 82c85bc9c2..475a6c0f7a 100644 --- a/github/GithubIntegration.py +++ b/github/GithubIntegration.py @@ -135,6 +135,7 @@ def get_access_token(self, installation_id, permissions=None): headers, response = self.__requester.requestJsonAndCh...
cobbler__cobbler-3292
Cobbler modules don't load properly ### Describe the bug Introduced in https://github.com/cobbler/cobbler/commit/2477c78094af7ba44ecbe350294c775296d96560 ### Steps to reproduce 1. Import any Cobbler Module 2. See import error ### Expected behavior Bug not present ### Cobbler version ````paste belo...
[ { "content": "\"\"\"\nModule loader, adapted for Cobbler usage\n\"\"\"\n\n# SPDX-License-Identifier: GPL-2.0-or-later\n# SPDX-FileCopyrightText: Copyright 2006-2009, Red Hat, Inc and Others\n# SPDX-FileCopyrightText: Adrian Likins <alikins@redhat.com>\n# SPDX-FileCopyrightText: Michael DeHaan <michael.dehaan AT...
[ { "content": "\"\"\"\nModule loader, adapted for Cobbler usage\n\"\"\"\n\n# SPDX-License-Identifier: GPL-2.0-or-later\n# SPDX-FileCopyrightText: Copyright 2006-2009, Red Hat, Inc and Others\n# SPDX-FileCopyrightText: Adrian Likins <alikins@redhat.com>\n# SPDX-FileCopyrightText: Michael DeHaan <michael.dehaan AT...
diff --git a/cobbler/module_loader.py b/cobbler/module_loader.py index 88765c3094..801223cf41 100644 --- a/cobbler/module_loader.py +++ b/cobbler/module_loader.py @@ -63,7 +63,7 @@ def load_modules(self): basename = filename.replace(self.mod_path, "") modname = "" - if basename in...
django-oscar__django-oscar-2130
Broken sandbox gateway page The README states that dashboard users for the sandbox site could be created using [this gateway page](http://latest.oscarcommerce.com/gateway/) - however this link returns a django error page: ``` TemplateDoesNotExist at /de/gateway/ gateway/form.html ```
[ { "content": "import os\n\nimport oscar\n\n# Path helper\nlocation = lambda x: os.path.join(\n os.path.dirname(os.path.realpath(__file__)), x)\n\nDEBUG = os.environ.get('DEBUG', 'true') != 'false'\nSQL_DEBUG = DEBUG\n\nALLOWED_HOSTS = [\n 'latest.oscarcommerce.com',\n 'master.oscarcommerce.com'\n]\n\n#...
[ { "content": "import os\n\nimport oscar\n\n# Path helper\nlocation = lambda x: os.path.join(\n os.path.dirname(os.path.realpath(__file__)), x)\n\nDEBUG = os.environ.get('DEBUG', 'true') != 'false'\nSQL_DEBUG = DEBUG\n\nALLOWED_HOSTS = [\n 'latest.oscarcommerce.com',\n 'master.oscarcommerce.com'\n]\n\n#...
diff --git a/sites/sandbox/settings.py b/sites/sandbox/settings.py index 0f395d12a56..fa2fcf1e11b 100644 --- a/sites/sandbox/settings.py +++ b/sites/sandbox/settings.py @@ -123,7 +123,7 @@ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ - location('_site/templ...
freedomofpress__securedrop-359
securedrop_init script in Tails doesn't work right if you run it twice It appends torrc-additions to torrc multiple times, and it should just append it once. securedrop_init script in Tails doesn't work right if you run it twice It appends torrc-additions to torrc multiple times, and it should just append it once.
[ { "content": "#!/usr/bin/env python\n\nimport os, sys, subprocess\n\nif __name__ == '__main__':\n # check for root\n if not os.geteuid()==0:\n sys.exit('You need to run this as root')\n\n # paths\n path_torrc_additions = '/home/amnesia/Persistent/.securedrop/torrc_additions'\n path_torrc_b...
[ { "content": "#!/usr/bin/env python\n\nimport os, sys, subprocess\n\nif __name__ == '__main__':\n # check for root\n if not os.geteuid()==0:\n sys.exit('You need to run this as root')\n\n # paths\n path_torrc_additions = '/home/amnesia/Persistent/.securedrop/torrc_additions'\n path_torrc_b...
diff --git a/tails_files/securedrop_init.py b/tails_files/securedrop_init.py index 1c43513917..c9b9e2d7bd 100644 --- a/tails_files/securedrop_init.py +++ b/tails_files/securedrop_init.py @@ -31,7 +31,7 @@ open(path_torrc_backup, 'w').write(torrc) # append the additions - open(path_torrc, 'a').write(t...
liqd__a4-meinberlin-951
Projectcontainer active projects count broken https://mein.berlin.de/projects/stadtforum-berlin-wohnen/ shows `7 of 4` active projects.
[ { "content": "from django.db import models\nfrom django.utils import timezone\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.projects import models as project_models\n\n\nclass ProjectContainer(project_models.Project):\n projects = models.ManyToManyField(\n project_models....
[ { "content": "from django.db import models\nfrom django.utils import timezone\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.projects import models as project_models\n\n\nclass ProjectContainer(project_models.Project):\n projects = models.ManyToManyField(\n project_models....
diff --git a/meinberlin/apps/projectcontainers/models.py b/meinberlin/apps/projectcontainers/models.py index dc3a40aac3..4919b720f0 100644 --- a/meinberlin/apps/projectcontainers/models.py +++ b/meinberlin/apps/projectcontainers/models.py @@ -21,7 +21,7 @@ def active_projects(self): now = timezone.now() ...
svthalia__concrexit-3136
Liked photos API returns duplicate photos on different api requests ### Describe the bug Different pages of the liked photos API return the same photo ### How to reproduce Difficult, this is using @JeeVee11's account as I could not reproduce it. https://staging.thalia.nu/api/v2/photos/photos/liked/?limit=10&of...
[ { "content": "from django.db.models import Count, Prefetch, Q\n\nfrom oauth2_provider.contrib.rest_framework import IsAuthenticatedOrTokenHasScope\nfrom rest_framework import filters, status\nfrom rest_framework.exceptions import PermissionDenied\nfrom rest_framework.generics import ListAPIView, RetrieveAPIView...
[ { "content": "from django.db.models import Count, Prefetch, Q\n\nfrom oauth2_provider.contrib.rest_framework import IsAuthenticatedOrTokenHasScope\nfrom rest_framework import filters, status\nfrom rest_framework.exceptions import PermissionDenied\nfrom rest_framework.generics import ListAPIView, RetrieveAPIView...
diff --git a/website/photos/api/v2/views.py b/website/photos/api/v2/views.py index ae3589829..10272b20d 100644 --- a/website/photos/api/v2/views.py +++ b/website/photos/api/v2/views.py @@ -105,6 +105,8 @@ def get_queryset(self): member_likes=Count("likes", filter=Q(likes__member=self.request.member)) ...
bentoml__BentoML-1233
Respect Docker env variables when creating docker API client in bentoml containerize **Is your feature request related to a problem? Please describe.** When building Docker images for a private Docker registry, Docker authentication is required. However, since BentoML uses `docker.APIClient()` instead of `docker.from...
[ { "content": "import click\nimport sys\nimport os\nimport json\nimport re\nimport psutil\n\nfrom bentoml import __version__\nfrom bentoml.utils.lazy_loader import LazyLoader\nfrom bentoml.utils.s3 import is_s3_url\nfrom bentoml.utils.gcs import is_gcs_url\nfrom bentoml.server.api_server import BentoAPIServer\nf...
[ { "content": "import click\nimport sys\nimport os\nimport json\nimport re\nimport psutil\n\nfrom bentoml import __version__\nfrom bentoml.utils.lazy_loader import LazyLoader\nfrom bentoml.utils.s3 import is_s3_url\nfrom bentoml.utils.gcs import is_gcs_url\nfrom bentoml.server.api_server import BentoAPIServer\nf...
diff --git a/bentoml/cli/bento_service.py b/bentoml/cli/bento_service.py index 184280a86ea..4cfd078debe 100644 --- a/bentoml/cli/bento_service.py +++ b/bentoml/cli/bento_service.py @@ -406,7 +406,7 @@ def containerize(bento, push, tag, build_arg, username, password): import docker - docker_api = doc...
DataDog__dd-agent-1047
Windows agent connection error agent version: 4.4 OS: Windows 2008 Standard, SP2. case: https://datadog.desk.com/agent/case/11902 - log snippet: > 2014-06-24 13:45:04 Eastern Daylight Time | ERROR | forwarder(ddagent.pyc:240) | Response: HTTPResponse(_body=None,buffer=None,code=599,effective_url='https://app.datadoghq...
[ { "content": "import platform\nimport sys\nfrom config import get_version\nfrom jmxfetch import JMX_FETCH_JAR_NAME\n\ntry:\n from setuptools import setup, find_packages\n\n # required to build the cython extensions\n from distutils.extension import Extension #pylint: disable=no-name-in-module\n\nexcept...
[ { "content": "import platform\nimport sys\nfrom config import *\nfrom jmxfetch import JMX_FETCH_JAR_NAME\n\ntry:\n from setuptools import setup, find_packages\n\n # required to build the cython extensions\n from distutils.extension import Extension #pylint: disable=no-name-in-module\n\nexcept ImportErr...
diff --git a/packaging/datadog-agent/win32/build.ps1 b/packaging/datadog-agent/win32/build.ps1 index 3c96964d17..b42d44d3a1 100644 --- a/packaging/datadog-agent/win32/build.ps1 +++ b/packaging/datadog-agent/win32/build.ps1 @@ -3,6 +3,7 @@ $version = "$(python -c "from config import get_version; print get_version()").$ ...
DDMAL__CantusDB-1116
Admin Area, Change Source page: we should hide "Source Status" field Debra got tripped up trying to publish a source - instead of checking the "Published" checkbox, she selected something in the "Source Status" dropdown. ~~Everything regarding source visibility is handled by our `published` field, so I think "Source...
[ { "content": "from django.contrib import admin\nfrom main_app.models import *\nfrom main_app.forms import (\n AdminCenturyForm,\n AdminChantForm,\n AdminFeastForm,\n AdminGenreForm,\n AdminNotationForm,\n AdminOfficeForm,\n AdminProvenanceForm,\n AdminRismSiglumForm,\n AdminSegmentFor...
[ { "content": "from django.contrib import admin\nfrom main_app.models import *\nfrom main_app.forms import (\n AdminCenturyForm,\n AdminChantForm,\n AdminFeastForm,\n AdminGenreForm,\n AdminNotationForm,\n AdminOfficeForm,\n AdminProvenanceForm,\n AdminRismSiglumForm,\n AdminSegmentFor...
diff --git a/django/cantusdb_project/main_app/admin.py b/django/cantusdb_project/main_app/admin.py index 1049cd088..10a74b371 100644 --- a/django/cantusdb_project/main_app/admin.py +++ b/django/cantusdb_project/main_app/admin.py @@ -172,6 +172,8 @@ def get_source_siglum(self, obj): class SourceAdmin(BaseModelAdmin...
learningequality__kolibri-6490
Importing more content (or deleting resources) to a channel undoes its original position in channel list <!-- 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 behav...
[ { "content": "import datetime\nimport logging\nimport os\n\nfrom django.db.models import Sum\nfrom le_utils.constants import content_kinds\nfrom sqlalchemy import and_\nfrom sqlalchemy import cast\nfrom sqlalchemy import exists\nfrom sqlalchemy import func\nfrom sqlalchemy import Integer\nfrom sqlalchemy import...
[ { "content": "import datetime\nimport logging\nimport os\n\nfrom django.db.models import Sum\nfrom le_utils.constants import content_kinds\nfrom sqlalchemy import and_\nfrom sqlalchemy import cast\nfrom sqlalchemy import exists\nfrom sqlalchemy import func\nfrom sqlalchemy import Integer\nfrom sqlalchemy import...
diff --git a/kolibri/core/content/utils/annotation.py b/kolibri/core/content/utils/annotation.py index f06a9c1e09c..c2c6f3d0924 100644 --- a/kolibri/core/content/utils/annotation.py +++ b/kolibri/core/content/utils/annotation.py @@ -478,6 +478,8 @@ def calculate_next_order(channel, model=ChannelMetadata): latest_o...
rlworkgroup__garage-692
Add Intel-optimized version of the package
[ { "content": "from setuptools import find_packages\nfrom setuptools import setup\n\n# Required dependencies\nrequired = [\n # Please keep alphabetized\n 'akro',\n 'boto3',\n 'cached_property',\n 'click',\n 'cloudpickle',\n 'cma==1.1.06',\n # dm_control throws an error during install abou...
[ { "content": "from setuptools import find_packages\nfrom setuptools import setup\n\n# Required dependencies\nrequired = [\n # Please keep alphabetized\n 'akro',\n 'boto3',\n 'cached_property',\n 'click',\n 'cloudpickle',\n 'cma==1.1.06',\n # dm_control throws an error during install abou...
diff --git a/Makefile b/Makefile index 66b971f473..1b95fa4c68 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,14 @@ build-nvidia: docker/docker-compose-nvidia.yml build \ ${ADD_ARGS} +build-intel: TAG ?= rlworkgroup/garage-intel:latest +build-intel: docker/docker-compose-intel.yml + TAG=${TAG} \ + docker-comp...
ansible__ansible-modules-extras-3479
Remove ESXi hostname requirement from vmware_guest module ##### ISSUE TYPE - Feature Idea ##### COMPONENT NAME vmware_guest ##### ANSIBLE VERSION ``` ansible 2.3.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides ``` ##### CONFIGURATION <!--- Vanill...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your ...
diff --git a/cloud/vmware/vmware_guest.py b/cloud/vmware/vmware_guest.py index cc520432de4..2a749bda674 100644 --- a/cloud/vmware/vmware_guest.py +++ b/cloud/vmware/vmware_guest.py @@ -88,7 +88,7 @@ esxi_hostname: description: - The esxi hostname where the VM will run. - required: True ...
pyro-ppl__numpyro-1589
mnist loader should not scale the label Scaling the label as in [this line](https://github.com/pyro-ppl/numpyro/blob/db2913b61b1d82fcad6662eb4d25ce5808f46d00/numpyro/examples/datasets.py#L167) seems wrong to me.
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom collections import namedtuple\nimport csv\nimport gzip\nimport io\nimport os\nimport pickle\nimport struct\nfrom urllib.parse import urlparse\nfrom urllib.request import urlretrieve\nimport warnings\nimpor...
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom collections import namedtuple\nimport csv\nimport gzip\nimport io\nimport os\nimport pickle\nimport struct\nfrom urllib.parse import urlparse\nfrom urllib.request import urlretrieve\nimport warnings\nimpor...
diff --git a/numpyro/examples/datasets.py b/numpyro/examples/datasets.py index 927e60b3a..f04a56b3c 100644 --- a/numpyro/examples/datasets.py +++ b/numpyro/examples/datasets.py @@ -164,7 +164,7 @@ def _load_mnist(): def read_label(file): with gzip.open(file, "rb") as f: f.read(8) - ...
pulp__pulpcore-4293
Querying content in repository versions with lots of content is slow **Version** All **Describe the bug** When a repository version has upwards of 50k content in it, querying the content in the repository using `repo_version.get_content()` becomes extremely slow. In my testing the results haven't been consistent, ...
[ { "content": "\"\"\"\nRepository related Django models.\n\"\"\"\nfrom contextlib import suppress\nfrom gettext import gettext as _\nfrom os import path\nfrom collections import defaultdict\nimport logging\n\nimport django\nfrom asyncio_throttle import Throttler\nfrom django.conf import settings\nfrom django.con...
[ { "content": "\"\"\"\nRepository related Django models.\n\"\"\"\nfrom contextlib import suppress\nfrom gettext import gettext as _\nfrom os import path\nfrom collections import defaultdict\nimport logging\n\nimport django\nfrom asyncio_throttle import Throttler\nfrom django.conf import settings\nfrom django.con...
diff --git a/CHANGES/3969.bugfix b/CHANGES/3969.bugfix new file mode 100644 index 0000000000..c283c14070 --- /dev/null +++ b/CHANGES/3969.bugfix @@ -0,0 +1 @@ +Improved the performance when looking up content for repository versions. diff --git a/pulpcore/app/models/repository.py b/pulpcore/app/models/repository.py ind...
pulp__pulpcore-4275
Querying content in repository versions with lots of content is slow **Version** All **Describe the bug** When a repository version has upwards of 50k content in it, querying the content in the repository using `repo_version.get_content()` becomes extremely slow. In my testing the results haven't been consistent, ...
[ { "content": "\"\"\"\nRepository related Django models.\n\"\"\"\nfrom contextlib import suppress\nfrom gettext import gettext as _\nfrom os import path\nfrom collections import defaultdict\nimport logging\n\nimport django\nfrom asyncio_throttle import Throttler\nfrom django.conf import settings\nfrom django.con...
[ { "content": "\"\"\"\nRepository related Django models.\n\"\"\"\nfrom contextlib import suppress\nfrom gettext import gettext as _\nfrom os import path\nfrom collections import defaultdict\nimport logging\n\nimport django\nfrom asyncio_throttle import Throttler\nfrom django.conf import settings\nfrom django.con...
diff --git a/CHANGES/3969.bugfix b/CHANGES/3969.bugfix new file mode 100644 index 0000000000..c283c14070 --- /dev/null +++ b/CHANGES/3969.bugfix @@ -0,0 +1 @@ +Improved the performance when looking up content for repository versions. diff --git a/pulpcore/app/models/repository.py b/pulpcore/app/models/repository.py ind...
rucio__rucio-6440
gfal RSE protocol ignores the verify_checksum attribute The protocol raises an exception even if the attribute is set to false: https://github.com/rucio/rucio/blob/436ecc9005934e1e4332cd2718d160bdbf5105d2/lib/rucio/rse/protocols/gfal.py#L413
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright European Organization for Nuclear Research (CERN) since 2012\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://w...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright European Organization for Nuclear Research (CERN) since 2012\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://w...
diff --git a/lib/rucio/rse/protocols/gfal.py b/lib/rucio/rse/protocols/gfal.py index 580cddaf60..127f11864d 100644 --- a/lib/rucio/rse/protocols/gfal.py +++ b/lib/rucio/rse/protocols/gfal.py @@ -394,6 +394,9 @@ def stat(self, path): ret['filesize'] = stats[7] + if not self.rse.get('verify_checksum',...
pulp__pulpcore-4405
Querying content in repository versions with lots of content is slow **Version** All **Describe the bug** When a repository version has upwards of 50k content in it, querying the content in the repository using `repo_version.get_content()` becomes extremely slow. In my testing the results haven't been consistent, ...
[ { "content": "\"\"\"\nRepository related Django models.\n\"\"\"\nfrom contextlib import suppress\nfrom gettext import gettext as _\nfrom os import path\nfrom collections import defaultdict\nimport logging\n\nimport django\nfrom asyncio_throttle import Throttler\nfrom dynaconf import settings\nfrom django.core.v...
[ { "content": "\"\"\"\nRepository related Django models.\n\"\"\"\nfrom contextlib import suppress\nfrom gettext import gettext as _\nfrom os import path\nfrom collections import defaultdict\nimport logging\n\nimport django\nfrom asyncio_throttle import Throttler\nfrom dynaconf import settings\nfrom django.core.v...
diff --git a/CHANGES/3969.bugfix b/CHANGES/3969.bugfix new file mode 100644 index 0000000000..c283c14070 --- /dev/null +++ b/CHANGES/3969.bugfix @@ -0,0 +1 @@ +Improved the performance when looking up content for repository versions. diff --git a/pulpcore/app/models/repository.py b/pulpcore/app/models/repository.py ind...
spotify__luigi-1494
Python 3.5 support Luigi may already work with Python 3.5, but since the README doesn't mention it I thought I'd ask. Does Luigi support Python 3.5?
[ { "content": "# Copyright (c) 2012 Spotify AB\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n# use this file except in compliance with the License. You may obtain a copy of\n# the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
[ { "content": "# Copyright (c) 2012 Spotify AB\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n# use this file except in compliance with the License. You may obtain a copy of\n# the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
diff --git a/.travis.yml b/.travis.yml index 1cf88120f2..f7e3c9a0ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,17 @@ env: - TOXENV=py27-postgres - TOXENV=visualiser +# Python 3.5 has to go here until Travis adds it to the default build images. +# https://github.com/travis-ci/travis-ci/issues/47...
coala__coala-6088
Small typo in coalib/output/printers/LogPrinter.py Should read responsibility instead of reponsibility.
[ { "content": "import traceback\nimport logging\n\nfrom coalib.output.printers.LOG_LEVEL import LOG_LEVEL\nfrom coalib.processes.communication.LogMessage import LogMessage\n\n\nclass LogPrinterMixin:\n \"\"\"\n Provides access to the logging interfaces (e.g. err, warn, info) by routing\n them to the log...
[ { "content": "import traceback\nimport logging\n\nfrom coalib.output.printers.LOG_LEVEL import LOG_LEVEL\nfrom coalib.processes.communication.LogMessage import LogMessage\n\n\nclass LogPrinterMixin:\n \"\"\"\n Provides access to the logging interfaces (e.g. err, warn, info) by routing\n them to the log...
diff --git a/coalib/output/printers/LogPrinter.py b/coalib/output/printers/LogPrinter.py index 21f3e62495..1e389cbb0d 100644 --- a/coalib/output/printers/LogPrinter.py +++ b/coalib/output/printers/LogPrinter.py @@ -85,7 +85,7 @@ def log_exception(self, def log_message(self, log_message, **kwargs): """ -...
fossasia__open-event-server-3901
Handle invalid data while change data types during migrations **Related error:** ``` sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) column "pdf_url" contains null values [SQL: 'ALTER TABLE ticket_holders ADD COLUMN pdf_url VARCHAR NOT NULL'] ``` Due to this, migration are not running on `api.eventyay...
[ { "content": "\"\"\"empty message\n\nRevision ID: c6b183975be9\nRevises: ccd80550c01f\nCreate Date: 2017-06-12 00:42:29.329727\n\n\"\"\"\n\n# revision identifiers, used by Alembic.\nrevision = 'c6b183975be9'\ndown_revision = 'ccd80550c01f'\n\nfrom alembic import op\nimport sqlalchemy as sa\nimport sqlalchemy_ut...
[ { "content": "\"\"\"empty message\n\nRevision ID: c6b183975be9\nRevises: ccd80550c01f\nCreate Date: 2017-06-12 00:42:29.329727\n\n\"\"\"\n\n# revision identifiers, used by Alembic.\nrevision = 'c6b183975be9'\ndown_revision = 'ccd80550c01f'\n\nfrom alembic import op\nimport sqlalchemy as sa\nimport sqlalchemy_ut...
diff --git a/migrations/versions/c6b183975be9_.py b/migrations/versions/c6b183975be9_.py index 3c37eb1b2f..ec4e835fe9 100644 --- a/migrations/versions/c6b183975be9_.py +++ b/migrations/versions/c6b183975be9_.py @@ -17,7 +17,7 @@ def upgrade(): # ### commands auto generated by Alembic - please adjust! ### - o...
xonsh__xonsh-3136
xonsh sudoedit (nano as root) queues up lines of keystrokes ## xonfig <details> ``` jimbo1qaz@manjaro ~ $ xonfig +------------------+-----------------+ | xonsh | 0.9.0 | | Python | 3.7.3 | | PLY | 3.11 | | have readline | True | |...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Module for caching command & alias names as well as for predicting whether\na command will be able to be run in the background.\n\nA background predictor is a function that accepts a single argument list\nand returns whether or not the process can be run in the backg...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Module for caching command & alias names as well as for predicting whether\na command will be able to be run in the background.\n\nA background predictor is a function that accepts a single argument list\nand returns whether or not the process can be run in the backg...
diff --git a/news/unthread-sudoedit.rst b/news/unthread-sudoedit.rst new file mode 100644 index 0000000000..3a924b44b9 --- /dev/null +++ b/news/unthread-sudoedit.rst @@ -0,0 +1,23 @@ +**Added:** + +* <news item> + +**Changed:** + +* sudoedit now runs unthreaded + +**Deprecated:** + +* <news item> + +**Removed:** + +* <...
nautobot__nautobot-5656
serve-docs Doesn't Stop on Invoke stop <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reporting reproducible bugs. If you need assistance with Nautobot installation, or if you have a general question, please start a discussion instead: https://gith...
[ { "content": "\"\"\"Tasks for use with Invoke.\n\n(c) 2020-2021 Network To Code\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n http://www.apache.org/licenses/LICENSE-2.0\nUnless requ...
[ { "content": "\"\"\"Tasks for use with Invoke.\n\n(c) 2020-2021 Network To Code\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n http://www.apache.org/licenses/LICENSE-2.0\nUnless requ...
diff --git a/changes/5637.housekeeping b/changes/5637.housekeeping new file mode 100644 index 00000000000..6e6c2fb8fd5 --- /dev/null +++ b/changes/5637.housekeeping @@ -0,0 +1,2 @@ +Removed "version" from development `docker-compose.yml` files as newer versions of Docker complain about it being obsolete. +Fixed behavio...
pypa__pipenv-1086
pipenv broken ![image](https://user-images.githubusercontent.com/2430381/32952777-45c9836e-cb7c-11e7-8fd0-ca42fb705b1e.png) Occurred in 44053b52bbbda1884edd12baecbe7f3c4d251c98 could be because im on python 2 and FileNotFoundError doesnt exist? or maybe it just needs `from os import FileNotFoundError`
[ { "content": "# -*- coding: utf-8 -*-\nfrom collections import namedtuple\nimport os\nimport hashlib\nimport tempfile\nimport sys\nimport shutil\nimport logging\n\nimport click\nimport crayons\nimport delegator\nimport pip\nimport parse\nimport requirements\nimport fuzzywuzzy.process\nimport requests\nimport si...
[ { "content": "# -*- coding: utf-8 -*-\nfrom collections import namedtuple\nimport os\nimport hashlib\nimport tempfile\nimport sys\nimport shutil\nimport logging\n\nimport click\nimport crayons\nimport delegator\nimport pip\nimport parse\nimport requirements\nimport fuzzywuzzy.process\nimport requests\nimport si...
diff --git a/pipenv/utils.py b/pipenv/utils.py index ca2e03e1d2..e1f8de2ed8 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -1060,7 +1060,7 @@ def touch_update_stamp(): mkdir_p(PIPENV_CACHE_DIR) p = os.sep.join((PIPENV_CACHE_DIR, '.pipenv_update_check')) try: - os.utime(p) - except FileNo...
pulp__pulpcore-4290
Querying content in repository versions with lots of content is slow **Version** All **Describe the bug** When a repository version has upwards of 50k content in it, querying the content in the repository using `repo_version.get_content()` becomes extremely slow. In my testing the results haven't been consistent, ...
[ { "content": "\"\"\"\nRepository related Django models.\n\"\"\"\nfrom contextlib import suppress\nfrom gettext import gettext as _\nfrom os import path, environ\nfrom collections import defaultdict\nimport logging\n\nimport django\nfrom asyncio_throttle import Throttler\nfrom dynaconf import settings\nfrom djan...
[ { "content": "\"\"\"\nRepository related Django models.\n\"\"\"\nfrom contextlib import suppress\nfrom gettext import gettext as _\nfrom os import path, environ\nfrom collections import defaultdict\nimport logging\n\nimport django\nfrom asyncio_throttle import Throttler\nfrom dynaconf import settings\nfrom djan...
diff --git a/CHANGES/3969.bugfix b/CHANGES/3969.bugfix new file mode 100644 index 0000000000..c283c14070 --- /dev/null +++ b/CHANGES/3969.bugfix @@ -0,0 +1 @@ +Improved the performance when looking up content for repository versions. diff --git a/pulpcore/app/models/repository.py b/pulpcore/app/models/repository.py ind...
liberapay__liberapay.com-173
Changing organization type doesn't work In identity tab, when I change the organization type to set Organization instead of Business, my changes are not saved.
[ { "content": "\"\"\"Defines website authentication helpers.\n\"\"\"\nimport binascii\n\nfrom six.moves.urllib.parse import urlencode\n\nfrom aspen import Response\n\nfrom liberapay.constants import SESSION, SESSION_TIMEOUT\nfrom liberapay.exceptions import AuthRequired\nfrom liberapay.models.participant import ...
[ { "content": "\"\"\"Defines website authentication helpers.\n\"\"\"\nimport binascii\n\nfrom six.moves.urllib.parse import urlencode\n\nfrom aspen import Response\n\nfrom liberapay.constants import SESSION, SESSION_TIMEOUT\nfrom liberapay.exceptions import AuthRequired\nfrom liberapay.models.participant import ...
diff --git a/liberapay/security/authentication.py b/liberapay/security/authentication.py index a26bc0c9e7..6e7388426b 100644 --- a/liberapay/security/authentication.py +++ b/liberapay/security/authentication.py @@ -44,6 +44,8 @@ def sign_in_with_form_data(body, state): k, 'password', id, body....
liqd__a4-meinberlin-2974
test 2959: redesign mail of new Stellungnahme in b-plan module **URL:** mail **user:** sachbearbeiter **expected behaviour:** logo is no longer in the email **behaviour:** logo is on the bottom left corner of the mail, outside the mail layout box **important screensize:** **device & browser:** mail on mac **Comm...
[ { "content": "from django.conf import settings\n\nfrom meinberlin.apps.contrib.emails import Email\n\n\nclass OfficeWorkerNotification(Email):\n template_name = 'meinberlin_bplan/emails/office_worker_notification'\n\n @property\n def office_worker_email(self):\n project = self.object.module.proj...
[ { "content": "from django.conf import settings\n\nfrom meinberlin.apps.contrib.emails import Email\n\n\nclass OfficeWorkerNotification(Email):\n template_name = 'meinberlin_bplan/emails/office_worker_notification'\n\n @property\n def office_worker_email(self):\n project = self.object.module.proj...
diff --git a/meinberlin/apps/bplan/emails.py b/meinberlin/apps/bplan/emails.py index 752569f9c3..b3d1d158c2 100644 --- a/meinberlin/apps/bplan/emails.py +++ b/meinberlin/apps/bplan/emails.py @@ -27,6 +27,9 @@ def get_context(self): context['identifier'] = self.bplan_identifier return context + de...
python-pillow__Pillow-6559
Alpha channel ignored in tkinter using PIL.Image.open and PIL.ImageTk.PhotoImage for PNGs in palette mode ### What did you do? I opened a PNG image (palette mode with alpha channel) using pillow and passed it to tkinter. ### What did you expect to happen? It should work just like using tkinter.PhotoImage. #...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# a Tk display interface\n#\n# History:\n# 96-04-08 fl Created\n# 96-09-06 fl Added getimage method\n# 96-11-01 fl Rewritten, removed image attribute and crop method\n# 97-05-09 fl Use PyImagingPaste method instead of image type\n# 97-05-12 fl ...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# a Tk display interface\n#\n# History:\n# 96-04-08 fl Created\n# 96-09-06 fl Added getimage method\n# 96-11-01 fl Rewritten, removed image attribute and crop method\n# 97-05-09 fl Use PyImagingPaste method instead of image type\n# 97-05-12 fl ...
diff --git a/Tests/test_imagetk.py b/Tests/test_imagetk.py index a929910b3cc..a848c786f04 100644 --- a/Tests/test_imagetk.py +++ b/Tests/test_imagetk.py @@ -69,6 +69,13 @@ def test_photoimage(): assert_image_equal(reloaded, im.convert("RGBA")) +def test_photoimage_apply_transparency(): + with Image.open...
encode__uvicorn-436
--limit-max-requests not working Hi! I'm trying to figure out why my workers are not restarting as expected when using the `--limit-max-requests` flag. I ran `uvicorn` in debug mode and noticed that the `self.server_state.total_requests` count is not increasing (stays at 0 after each request) so `self.server_state.tota...
[ { "content": "import asyncio\n\nfrom gunicorn.workers.base import Worker\n\nfrom uvicorn.config import Config\nfrom uvicorn.main import Server\n\n\nclass UvicornWorker(Worker):\n \"\"\"\n A worker class for Gunicorn that interfaces with an ASGI consumer callable,\n rather than a WSGI callable.\n \"\...
[ { "content": "import asyncio\n\nfrom gunicorn.workers.base import Worker\n\nfrom uvicorn.config import Config\nfrom uvicorn.main import Server\n\n\nclass UvicornWorker(Worker):\n \"\"\"\n A worker class for Gunicorn that interfaces with an ASGI consumer callable,\n rather than a WSGI callable.\n \"\...
diff --git a/uvicorn/workers.py b/uvicorn/workers.py index 0f6de7a2f..8c823d8f6 100644 --- a/uvicorn/workers.py +++ b/uvicorn/workers.py @@ -25,6 +25,7 @@ def __init__(self, *args, **kwargs): "timeout_keep_alive": self.cfg.keepalive, "timeout_notify": self.timeout, "callback_notif...
python-discord__bot-910
Handle out of range year in Duration converter Sentry Issue: [BOT-39](https://sentry.io/organizations/python-discord/issues/1611103057/?referrer=github_integration) As documented [here](https://docs.python.org/3/library/datetime.html#datetime.date), it has to be `MINYEAR <= year <= MAXYEAR` which is effectively `1 <= ...
[ { "content": "import logging\nimport re\nimport typing as t\nfrom datetime import datetime\nfrom ssl import CertificateError\n\nimport dateutil.parser\nimport dateutil.tz\nimport discord\nfrom aiohttp import ClientConnectorError\nfrom dateutil.relativedelta import relativedelta\nfrom discord.ext.commands import...
[ { "content": "import logging\nimport re\nimport typing as t\nfrom datetime import datetime\nfrom ssl import CertificateError\n\nimport dateutil.parser\nimport dateutil.tz\nimport discord\nfrom aiohttp import ClientConnectorError\nfrom dateutil.relativedelta import relativedelta\nfrom discord.ext.commands import...
diff --git a/bot/converters.py b/bot/converters.py index 72c46fdf0a..4deb59f877 100644 --- a/bot/converters.py +++ b/bot/converters.py @@ -217,7 +217,10 @@ async def convert(self, ctx: Context, duration: str) -> datetime: delta = relativedelta(**duration_dict) now = datetime.utcnow() - return...
Cog-Creators__Red-DiscordBot-1632
[V3 Streams] issue with `[p]streamset` # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name `streamset` #### What cog is this command from? `Streams` #### What were you expecting to happen? Should output help #### What actually happened? ```p...
[ { "content": "import re\nfrom pathlib import Path\n\nfrom . import commands\n\n__all__ = ['get_locale', 'set_locale', 'reload_locales', 'cog_i18n',\n 'Translator']\n\n_current_locale = 'en_us'\n\nWAITING_FOR_MSGID = 1\nIN_MSGID = 2\nWAITING_FOR_MSGSTR = 3\nIN_MSGSTR = 4\n\nMSGID = 'msgid \"'\nMSGSTR =...
[ { "content": "import re\nfrom pathlib import Path\n\nfrom . import commands\n\n__all__ = ['get_locale', 'set_locale', 'reload_locales', 'cog_i18n',\n 'Translator']\n\n_current_locale = 'en_us'\n\nWAITING_FOR_MSGID = 1\nIN_MSGID = 2\nWAITING_FOR_MSGSTR = 3\nIN_MSGSTR = 4\n\nMSGID = 'msgid \"'\nMSGSTR =...
diff --git a/redbot/core/i18n.py b/redbot/core/i18n.py index c4e700e8eec..844869973b8 100644 --- a/redbot/core/i18n.py +++ b/redbot/core/i18n.py @@ -124,6 +124,9 @@ def normalize_whitespace(s): s += ' ' return s + if string is None: + return "" + string = string.replace('\\n\\...
cal-itp__benefits-1215
Refactor Agency dynamic headline into model prop Right now we are hardcoding the [Agency index headline PO key](https://github.com/cal-itp/benefits/blob/dev/benefits/core/views.py#L62): ```python page = viewmodels.Page( title=_("core.pages.agency_index.title"), headline=_("core.pages.agency_index.mst_...
[ { "content": "\"\"\"\nThe core application: view definition for the root of the webapp.\n\"\"\"\nfrom django.http import HttpResponse, HttpResponseBadRequest, HttpResponseNotFound, HttpResponseServerError\nfrom django.template import loader\nfrom django.template.response import TemplateResponse\nfrom django.url...
[ { "content": "\"\"\"\nThe core application: view definition for the root of the webapp.\n\"\"\"\nfrom django.http import HttpResponse, HttpResponseBadRequest, HttpResponseNotFound, HttpResponseServerError\nfrom django.template import loader\nfrom django.template.response import TemplateResponse\nfrom django.url...
diff --git a/benefits/core/views.py b/benefits/core/views.py index 954fa63bb2..913ca5f1f8 100644 --- a/benefits/core/views.py +++ b/benefits/core/views.py @@ -49,7 +49,8 @@ def agency_index(request, agency): page = viewmodels.Page( title=_("core.pages.agency_index.title"), - headline=_("core.page...
pytorch__rl-578
[BUG] Argument for `PPOLoss.get_entropy_bonus()` should probably not be optional ## Describe the bug https://github.com/pytorch/rl/blob/86a1a139682edc8bc747f088423937db1773aa24/torchrl/objectives/costs/ppo.py#L88-L94 The code doesn't seem to be compatible with `None` argument, will throw `AttributeError`. - [x...
[ { "content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nimport math\nfrom typing import Callable, Optional, Tuple\n\nimport torch\nfrom torch import distributions as d\n...
[ { "content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nimport math\nfrom typing import Callable, Optional, Tuple\n\nimport torch\nfrom torch import distributions as d\n...
diff --git a/torchrl/objectives/costs/ppo.py b/torchrl/objectives/costs/ppo.py index fde02234bea..6c18e6b57bd 100644 --- a/torchrl/objectives/costs/ppo.py +++ b/torchrl/objectives/costs/ppo.py @@ -85,7 +85,7 @@ def __init__( def reset(self) -> None: pass - def get_entropy_bonus(self, dist: Optional[d...
googleapis__python-bigquery-189
Packaging: prep for 1.0.0 release of `google-resumable-media-python`. See: https://github.com/googleapis/google-resumable-media-python/issues/138
[ { "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 497853be0..0ac3a8598 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ 'enum34; python_version < "3.4"', "google-api-core >= 1.21.0, < 2.0dev", "google-cloud-core >= 1.1.0, < 2.0dev", - "google-resumable-media >= 0.5.0, < 0.6dev", + "google-resumable-medi...
microsoft__knossos-ksc-872
infer_fn_type_from_derived_fn_args should return Type? Should the return type here be `Type`? I don't understand how the return type could be `StructuredName`. https://github.com/microsoft/knossos-ksc/blob/fe0771d7451685c47aa519dfec80bd6ccd256b4f/src/python/ksc/type_propagate.py#L86-L88
[ { "content": "\"\"\"\ntype_propagate: Type propagation for Knossos IR\n\"\"\"\n\nfrom typing import List\nfrom ksc.type import (\n Type,\n shape_type,\n tangent_type,\n make_tuple_if_many,\n KSTypeError,\n)\n\nfrom ksc.expr import (\n ASTNode,\n Expr,\n Def,\n EDef,\n GDef,\n Ru...
[ { "content": "\"\"\"\ntype_propagate: Type propagation for Knossos IR\n\"\"\"\n\nfrom typing import List\nfrom ksc.type import (\n Type,\n shape_type,\n tangent_type,\n make_tuple_if_many,\n KSTypeError,\n)\n\nfrom ksc.expr import (\n ASTNode,\n Expr,\n Def,\n EDef,\n GDef,\n Ru...
diff --git a/src/python/ksc/type_propagate.py b/src/python/ksc/type_propagate.py index dc775e004..c850feb4f 100644 --- a/src/python/ksc/type_propagate.py +++ b/src/python/ksc/type_propagate.py @@ -83,9 +83,7 @@ def _type_propagate_helper(ex: ASTNode, symtab, respect_existing: bool): # [rev [fwd f]] : ((S, dS), dT) -> ...
kivy__kivy-6362
Error in Kivy Carousel 1.11.0rc2 ### Versions * Python: Python 3.7.3 * OS: Windows 10 * Kivy: Kivy 1.11.0rc2 * Kivy installation method: Installed via pip --pre ### Description Carousel will not function and throws an error in the logs. Error is here def _curr_slide(self): ret...
[ { "content": "'''\nCarousel\n========\n\n.. image:: images/carousel.gif\n :align: right\n\n.. versionadded:: 1.4.0\n\nThe :class:`Carousel` widget provides the classic mobile-friendly carousel view\nwhere you can swipe between slides.\nYou can add any content to the carousel and have it move horizontally or\...
[ { "content": "'''\nCarousel\n========\n\n.. image:: images/carousel.gif\n :align: right\n\n.. versionadded:: 1.4.0\n\nThe :class:`Carousel` widget provides the classic mobile-friendly carousel view\nwhere you can swipe between slides.\nYou can add any content to the carousel and have it move horizontally or\...
diff --git a/kivy/uix/carousel.py b/kivy/uix/carousel.py index bc1ccece13..c722df863f 100644 --- a/kivy/uix/carousel.py +++ b/kivy/uix/carousel.py @@ -191,7 +191,7 @@ def _prev_slide(self): def _curr_slide(self): if len(self.slides): - return self.slides[self.index] + return self.s...
kornia__kornia-679
Enable typing support ## 🚀 Feature Enable typing support for `kornia` so other packages can benefit from the type hints. ## Motivation Currently `kornia` only uses the type hints to check for internal consistency. For other packages you get the following error message when running `mypy`: ```python import...
[ { "content": "# Welcome to the Kornia setup.py.\n#\n\nimport os\nfrom setuptools import setup, find_packages\nimport subprocess\nimport distutils.command.clean\n\n\n################\n# The variables below define the current version under\n# development and the current pytorch supported verions.\n# WARNING: Beca...
[ { "content": "# Welcome to the Kornia setup.py.\n#\n\nimport os\nfrom setuptools import setup, find_packages\nimport subprocess\nimport distutils.command.clean\n\n\n################\n# The variables below define the current version under\n# development and the current pytorch supported verions.\n# WARNING: Beca...
diff --git a/kornia/py.typed b/kornia/py.typed new file mode 100644 index 0000000000..e69de29bb2 diff --git a/setup.py b/setup.py index d0ad2dc5c9..f234e52376 100644 --- a/setup.py +++ b/setup.py @@ -122,6 +122,10 @@ def run(self): # Package info packages=find_packages(exclude=('docs', 'test', 'exampl...
scikit-hep__pyhf-1049
Fix Fixture use in pytest # Description In pytest `v4.0.0` the [direct call of a fixture results in an error](https://travis-ci.org/diana-hep/pyhf/jobs/455364238#L661-L669). ``` ==================================== ERRORS ==================================== __________________ ERROR collecting tests/test_valid...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow~=2.2.0', # TensorFlow minor releases are as volatile as major\n 'tensorflow-probability~=0.10.0',\n ],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow~=2.2.0', # TensorFlow minor releases are as volatile as major\n 'tensorflow-probability~=0.10.0',\n ],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax...
diff --git a/docs/governance/ROADMAP.rst b/docs/governance/ROADMAP.rst index d78cdc4497..89520c1116 100644 --- a/docs/governance/ROADMAP.rst +++ b/docs/governance/ROADMAP.rst @@ -84,7 +84,7 @@ Roadmap #518) [2019-Q3] - |check| Add CI with GitHub Actions and Azure Pipelines (PR #527, Issue #517) [2019...
rasterio__rasterio-1628
support pickle for multiprocessing with rasterio.profiles.Profile data Trying to do a bit of multiprocessing parallel, async IO to write out GeoTIFF data. If there's a better way to do this, would like to hear about it. Related to #909 - another concern with serializing the profile data. ## OS and versions ``` ...
[ { "content": "\"\"\"Coordinate Reference Systems\n\nNotes\n-----\n\nIn Rasterio versions <= 1.0.13, coordinate reference system support was limited\nto the CRS that can be described by PROJ parameters. This limitation is gone in\nversions >= 1.0.14. Any CRS that can be defined using WKT (version 1) may be\nused...
[ { "content": "\"\"\"Coordinate Reference Systems\n\nNotes\n-----\n\nIn Rasterio versions <= 1.0.13, coordinate reference system support was limited\nto the CRS that can be described by PROJ parameters. This limitation is gone in\nversions >= 1.0.14. Any CRS that can be defined using WKT (version 1) may be\nused...
diff --git a/CHANGES.txt b/CHANGES.txt index 24ccf6aad..049f1352a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,13 @@ Changes ======= +1.0.19 (?) +---------- + +- Restore pickle protocol for CRS, using WKT as state (#1625). +- Support for signed 8-bit integer datasets ("int8" dtype) has been added + (#1595...
lutris__lutris-1004
Menu bar visible during install ![image](https://user-images.githubusercontent.com/1145001/43690524-bac1f914-990b-11e8-9b06-402f737c6cda.png) While installing a game, the menu bar at the dialog window shouldn't be visible.
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport time\nimport re\nimport webbrowser\n\nfrom gi.repository import Gtk, Pango\n\nfrom lutris import api, pga, settings\nfrom lutris.services import xdg\nfrom lutris.installer import interpreter\nfrom lutris.installer.errors import ScriptingError\nfrom lutris...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport time\nimport re\nimport webbrowser\n\nfrom gi.repository import Gtk, Pango\n\nfrom lutris import api, pga, settings\nfrom lutris.services import xdg\nfrom lutris.installer import interpreter\nfrom lutris.installer.errors import ScriptingError\nfrom lutris...
diff --git a/lutris/gui/installerwindow.py b/lutris/gui/installerwindow.py index 8f581f9bb0..4507e712e7 100644 --- a/lutris/gui/installerwindow.py +++ b/lutris/gui/installerwindow.py @@ -44,6 +44,7 @@ def __init__(self, game_slug=None, installer_file=None, revision=None, parent=No self.set_size_request(420, 42...
systemd__mkosi-1847
tput smam breaks build Using latest on Debian Sid. ``` ‣ Running finalize script… ‣ Creating tar archive /home/ander/Desktop/mkosi/tools/mkosi.workspace/.mkosi-tmp9zitpbja/staging/image.tar… ‣ /home/ander/Desktop/mkosi/tools/mkosi.output/image size is 1016.1M, consumes 1016.1M. ‣ "tput smam" returned non-zero...
[ { "content": "# SPDX-License-Identifier: LGPL-2.1+\n# PYTHON_ARGCOMPLETE_OK\n\nimport contextlib\nimport logging\nimport shutil\nimport subprocess\nimport sys\nfrom collections.abc import Iterator\n\nfrom mkosi import run_verb\nfrom mkosi.config import MkosiConfigParser\nfrom mkosi.log import ARG_DEBUG, log_set...
[ { "content": "# SPDX-License-Identifier: LGPL-2.1+\n# PYTHON_ARGCOMPLETE_OK\n\nimport contextlib\nimport logging\nimport shutil\nimport subprocess\nimport sys\nfrom collections.abc import Iterator\n\nfrom mkosi import run_verb\nfrom mkosi.config import MkosiConfigParser\nfrom mkosi.log import ARG_DEBUG, log_set...
diff --git a/mkosi/__main__.py b/mkosi/__main__.py index bf8aab7b1..1ca236af4 100644 --- a/mkosi/__main__.py +++ b/mkosi/__main__.py @@ -51,8 +51,8 @@ def main() -> None: run_verb(args, presets) finally: if sys.stderr.isatty() and shutil.which("tput"): - run(["tput", "cnorm"]) - ...
django-cms__django-cms-3011
New redirect widget is not nullable There is no way to empty the new redirect field. Plus a min-width should be used to have a proper size.
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom itertools import chain\n\nfrom django.contrib.sites.models import Site\nfrom django.core.urlresolvers import reverse\nfrom django.forms.widgets import Select, MultiWidget, TextInput\nfrom django.utils.encoding import force_text\nfrom django.utils.safestring import m...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom itertools import chain\n\nfrom django.contrib.sites.models import Site\nfrom django.core.urlresolvers import reverse\nfrom django.forms.widgets import Select, MultiWidget, TextInput\nfrom django.utils.encoding import force_text\nfrom django.utils.safestring import m...
diff --git a/cms/forms/widgets.py b/cms/forms/widgets.py index b31a9570404..6ed02a500e3 100644 --- a/cms/forms/widgets.py +++ b/cms/forms/widgets.py @@ -138,6 +138,7 @@ def render(self, name=None, value=None, attrs=None): $(function(){ $("#%(element_id)s").select2({ placeholder: "%(placeholde...
cloudtools__troposphere-1683
ApiGatewayV2 is missing VpcLink We appear to be unable to create an HTTP Vpc Link, as the ApiGatewayV2 Vpc Link is not yet implemented. From the AWS documentation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-vpclink.html From the Troposphere codebase, VpcLink is mis...
[ { "content": "# Copyright (c) 2012-2019, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n#\n# *** Do not modify - this file is autogenerated ***\n# Resource specification version: 10.0.0\n\n\nfrom . import AWSObject\nfrom . import AWSProperty\nfrom .validators import ...
[ { "content": "# Copyright (c) 2012-2019, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n#\n# *** Do not modify - this file is autogenerated ***\n# Resource specification version: 10.0.0\n\n\nfrom . import AWSObject\nfrom . import AWSProperty\nfrom .validators import ...
diff --git a/troposphere/apigatewayv2.py b/troposphere/apigatewayv2.py index 38e2ab15a..2fca0b5a8 100644 --- a/troposphere/apigatewayv2.py +++ b/troposphere/apigatewayv2.py @@ -333,3 +333,14 @@ class Stage(AWSObject): 'StageVariables': (dict, False), 'Tags': (dict, False), } + + +class VpcLink(AW...
Lightning-AI__torchmetrics-1892
Result of IoU is Nan when there is empty item in preds. ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> ### To Reproduce The `target` is: ``` [ {'boxes': tensor([[ 86.0000, 15.0000, 214.0000, 224.0000], [201.0000, 109.0000, 294.0000, 141.0000]], device='...
[ { "content": "# Copyright The PyTorch Lightning team.\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 ...
[ { "content": "# Copyright The PyTorch Lightning team.\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 ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index eedd710f6de..8ba3977f207 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- +- Fixed bug related to empty predictions for `IntersectionOverUnion` metric ([#1892](...
nvaccess__nvda-9864
Braille: The fall-back input table does not match the default input table. <!-- Please thoroughly read NVDA's wiki article on how to fill in this template, including how to provide the required files. Issues may be closed if the required information is not present. https://github.com/nvaccess/nvda/wiki/Github-issue-...
[ { "content": "# -*- coding: UTF-8 -*-\n#brailleInput.py\n#A part of NonVisual Desktop Access (NVDA)\n#This file is covered by the GNU General Public License.\n#See the file COPYING for more details.\n#Copyright (C) 2012-2017 NV Access Limited, Rui Batista, Babbage B.V.\n\nimport os.path\nimport time\nfrom typin...
[ { "content": "# -*- coding: UTF-8 -*-\n#brailleInput.py\n#A part of NonVisual Desktop Access (NVDA)\n#This file is covered by the GNU General Public License.\n#See the file COPYING for more details.\n#Copyright (C) 2012-2017 NV Access Limited, Rui Batista, Babbage B.V.\n\nimport os.path\nimport time\nfrom typin...
diff --git a/source/brailleInput.py b/source/brailleInput.py index a2b7d6dcbc0..22ed84be20f 100644 --- a/source/brailleInput.py +++ b/source/brailleInput.py @@ -29,7 +29,7 @@ """ #: Table to use if the input table configuration is invalid. -FALLBACK_TABLE = "en-us-comp8.ctb" +FALLBACK_TABLE = "en-ueb-g1.ctb" DOT7 ...
pulp__pulpcore-3646
The validation of input parameters for the repair endpoint is omitted ``` curl -X POST -H 'Content-Type: application/json' -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQ=' -d '[]' http://localhost:5001/pulp/api/v3/repair/ ``` ``` pulp [804a07335b9f4417ad0c71dde478634e]: django.request:ERROR: Internal Server Error: ...
[ { "content": "from drf_spectacular.utils import extend_schema\nfrom rest_framework.views import APIView\n\nfrom pulpcore.app.response import OperationPostponedResponse\nfrom pulpcore.app.serializers import AsyncOperationResponseSerializer, RepairSerializer\nfrom pulpcore.app.tasks import repair_all_artifacts\nf...
[ { "content": "from drf_spectacular.utils import extend_schema\nfrom rest_framework.views import APIView\n\nfrom pulpcore.app.response import OperationPostponedResponse\nfrom pulpcore.app.serializers import AsyncOperationResponseSerializer, RepairSerializer\nfrom pulpcore.app.tasks import repair_all_artifacts\nf...
diff --git a/CHANGES/3645.bugfix b/CHANGES/3645.bugfix new file mode 100644 index 0000000000..c93ade4f18 --- /dev/null +++ b/CHANGES/3645.bugfix @@ -0,0 +1 @@ +Added missing validation to the ``repair`` endpoint. diff --git a/pulpcore/app/views/repair.py b/pulpcore/app/views/repair.py index 49a1ac7281..7d22861b44 10064...
DDMAL__CantusDB-1001
in content overview, have sources by last-updated Currently the sources are sorted by creation, but some active projects are working on fairly old source objects. I think it would be more useful to have them sorted by last update.
[ { "content": "import csv\nfrom typing import Optional, Union\nfrom django.http.response import JsonResponse\nfrom django.http import HttpResponse, HttpResponseNotFound\nfrom django.shortcuts import render, redirect\nfrom django.urls.base import reverse\nfrom articles.models import Article\nfrom main_app.models ...
[ { "content": "import csv\nfrom typing import Optional, Union\nfrom django.http.response import JsonResponse\nfrom django.http import HttpResponse, HttpResponseNotFound\nfrom django.shortcuts import render, redirect\nfrom django.urls.base import reverse\nfrom articles.models import Article\nfrom main_app.models ...
diff --git a/django/cantusdb_project/main_app/views/views.py b/django/cantusdb_project/main_app/views/views.py index 29284ffcc..95aff6ffe 100644 --- a/django/cantusdb_project/main_app/views/views.py +++ b/django/cantusdb_project/main_app/views/views.py @@ -853,7 +853,7 @@ def content_overview(request): objects =...
python__peps-2229
Don't auto-add inline links to ref section & rm if empty, per #2130 First step to implementing #2130 , as agreed with @gvanrossum and the PEP editor team. When building, don't add redundant footnotes and references entries for URLs that are already directly linked inline. This avoids an unnecessary, potentially conf...
[ { "content": "import datetime\nfrom pathlib import Path\nimport subprocess\n\nfrom docutils import nodes\nfrom docutils import transforms\n\n\nclass PEPFooter(transforms.Transform):\n \"\"\"Footer transforms for PEPs.\n\n - Removes the References section if it is empty when rendered.\n - Creates a li...
[ { "content": "import datetime\nfrom pathlib import Path\nimport subprocess\n\nfrom docutils import nodes\nfrom docutils import transforms\n\n\nclass PEPFooter(transforms.Transform):\n \"\"\"Footer transforms for PEPs.\n\n - Removes the References section if it is empty when rendered.\n - Creates a li...
diff --git a/pep_sphinx_extensions/pep_processor/transforms/pep_footer.py b/pep_sphinx_extensions/pep_processor/transforms/pep_footer.py index 497811dc495..1f907dfb701 100644 --- a/pep_sphinx_extensions/pep_processor/transforms/pep_footer.py +++ b/pep_sphinx_extensions/pep_processor/transforms/pep_footer.py @@ -18,8 +1...
optuna__optuna-122
`TPESampler._sample_categorical` fails with PostgreSQL backend `TPESampler._sample_categorical` fails with PostgreSQL backend. This happens because: - `TPESampler._sample_categorical` returns an integer as `numpy.int32`. - The integer value is input to storage class without any cast. - SQLAlchemy with psycopg2 backe...
[ { "content": "import math\nimport numpy\nfrom typing import List # NOQA\nfrom typing import Optional # NOQA\n\nfrom pfnopt import distributions # NOQA\nfrom pfnopt.samplers import _hyperopt\nfrom pfnopt.samplers import base\nfrom pfnopt.samplers import random\nfrom pfnopt.storages.base import BaseStorage # ...
[ { "content": "import math\nimport numpy\nfrom typing import List # NOQA\nfrom typing import Optional # NOQA\n\nfrom pfnopt import distributions # NOQA\nfrom pfnopt.samplers import _hyperopt\nfrom pfnopt.samplers import base\nfrom pfnopt.samplers import random\nfrom pfnopt.storages.base import BaseStorage # ...
diff --git a/pfnopt/samplers/tpe.py b/pfnopt/samplers/tpe.py index 57844f2c87..a8d0916f1a 100644 --- a/pfnopt/samplers/tpe.py +++ b/pfnopt/samplers/tpe.py @@ -80,4 +80,4 @@ def _sample_categorical(self, distribution, below, above): idx = _hyperopt.sample_categorical( obs_below=below, obs_above=abo...
frappe__frappe-15250
AttributeError: 'bool' object has no attribute 'fields_' Getting this migrate error on the newest release; works fine with the previous release. ``` > bench --site my_site migrate Migrating my_site Executing execute:frappe.reload_doc('core', 'doctype', 'doctype') in my_site (_c0bc0e8af8edb577) Success: Done in 0...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\nimport hashlib\nimport json\nimport os\n\nimport frappe\nfrom frappe.model.base_document import get_controller\nfrom frappe.modules import get_module_path, scrub_dt_dn\nfrom frappe.query_builder impo...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\nimport hashlib\nimport json\nimport os\n\nimport frappe\nfrom frappe.model.base_document import get_controller\nfrom frappe.modules import get_module_path, scrub_dt_dn\nfrom frappe.query_builder impo...
diff --git a/frappe/modules/import_file.py b/frappe/modules/import_file.py index cf8ec46d7613..50a56d9dbb10 100644 --- a/frappe/modules/import_file.py +++ b/frappe/modules/import_file.py @@ -189,7 +189,7 @@ def update_modified(original_modified, doc): ).set( singles_table.value,original_modified ).where( - ...
Parsl__parsl-328
fatal: Not a git repository: '/homes/vvikraman/anaconda3/lib/python3.6/site-packages/.git Hi When I try to run parsl I am getting the following issue: fatal: Not a git repository: '/homes/vvikraman/anaconda3/lib/python3.6/site-packages/.git Is it a real issue? I am using python3 and jupyter but run parsl in ...
[ { "content": "import logging\nimport os\nimport shlex\nimport subprocess\nimport threading\nimport time\nfrom contextlib import contextmanager\nfrom functools import wraps\n\nimport parsl\nfrom parsl.version import VERSION\n\nlogger = logging.getLogger(__name__)\n\n\ndef get_version():\n version = parsl.__ve...
[ { "content": "import logging\nimport os\nimport shlex\nimport subprocess\nimport threading\nimport time\nfrom contextlib import contextmanager\nfrom functools import wraps\n\nimport parsl\nfrom parsl.version import VERSION\n\nlogger = logging.getLogger(__name__)\n\n\ndef get_version():\n version = parsl.__ve...
diff --git a/parsl/utils.py b/parsl/utils.py index 8a2e7ca8bd..7f6c2d685b 100644 --- a/parsl/utils.py +++ b/parsl/utils.py @@ -25,7 +25,7 @@ def get_version(): status = 'dirty' if diff else 'clean' version = '{v}-{head}-{status}'.format(v=VERSION, head=head, status=status) except Exception as e: ...
pydantic__pydantic-4920
`__fields_set__` includes excluded extras on copy ### Initial Checks - [X] I have searched GitHub for a duplicate issue and I'm sure this is something new - [X] I have searched Google & StackOverflow for a solution and couldn't find anything - [X] I have read and followed [the docs](https://pydantic-docs.helpmanual.io...
[ { "content": "\"\"\"\nLogic for creating models, could perhaps be renamed to `models.py`.\n\"\"\"\nfrom __future__ import annotations as _annotations\n\nimport typing\nimport warnings\nfrom abc import ABCMeta\nfrom copy import deepcopy\nfrom enum import Enum\nfrom functools import partial\nfrom types import pre...
[ { "content": "\"\"\"\nLogic for creating models, could perhaps be renamed to `models.py`.\n\"\"\"\nfrom __future__ import annotations as _annotations\n\nimport typing\nimport warnings\nfrom abc import ABCMeta\nfrom copy import deepcopy\nfrom enum import Enum\nfrom functools import partial\nfrom types import pre...
diff --git a/pydantic/main.py b/pydantic/main.py index a9da3d10172..e032cf511f6 100644 --- a/pydantic/main.py +++ b/pydantic/main.py @@ -359,6 +359,10 @@ def copy( else: fields_set = set(self.__fields_set__) + # removing excluded fields from `__fields_set__` + if exclude: + ...
ivy-llc__ivy-23070
exponential_
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.func_wrapper import with_supported_device_and_dtypes, with_unsupported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_supported_dtypes(\n {\"2.5.1 an...
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.func_wrapper import with_supported_device_and_dtypes, with_unsupported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_supported_dtypes(\n {\"2.5.1 an...
diff --git a/ivy/functional/frontends/paddle/tensor/random.py b/ivy/functional/frontends/paddle/tensor/random.py index b69d73d8a5e25..570983d131d34 100644 --- a/ivy/functional/frontends/paddle/tensor/random.py +++ b/ivy/functional/frontends/paddle/tensor/random.py @@ -7,6 +7,15 @@ ) +@with_supported_dtypes( + {...
wemake-services__wemake-python-styleguide-2452
Site unavailable ### What's wrong Not sure where exactly to put this, but https://wemake-python-stylegui.de/ is unavailable
[ { "content": "\"\"\"\nOur very own ``flake8`` formatter for better error messages.\n\nThat's how all ``flake8`` formatters work:\n\n.. mermaid::\n :caption: ``flake8`` formatting API calls order.\n\n graph LR\n F2[start] --> F3[after_init]\n F3 --> F4[start]\n F4 --> F...
[ { "content": "\"\"\"\nOur very own ``flake8`` formatter for better error messages.\n\nThat's how all ``flake8`` formatters work:\n\n.. mermaid::\n :caption: ``flake8`` formatting API calls order.\n\n graph LR\n F2[start] --> F3[after_init]\n F3 --> F4[start]\n F4 --> F...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9230e3e03..926b70e71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ Semantic versioning in our case means: ## 0.16.2 ### Misc -- Adds full violation codes to docs and `BaseViolation.full_code` #2409 +- Adds full violation codes to docs and `BaseViolati...
CTFd__CTFd-1508
Access media library from Challenge UI Accessing the media library from the challenge UI is a useful idea if you're using images in the challenge interface. Saves some clicks.
[ { "content": "from flask import render_template, request\n\nfrom CTFd.admin import admin\nfrom CTFd.models import Pages\nfrom CTFd.schemas.pages import PageSchema\nfrom CTFd.utils import markdown\nfrom CTFd.utils.config.pages import build_html\nfrom CTFd.utils.decorators import admins_only\n\n\n@admin.route(\"/...
[ { "content": "from flask import render_template, request\n\nfrom CTFd.admin import admin\nfrom CTFd.models import Pages\nfrom CTFd.schemas.pages import PageSchema\nfrom CTFd.utils import markdown\nfrom CTFd.utils.config.pages import build_html\nfrom CTFd.utils.decorators import admins_only\n\n\n@admin.route(\"/...
diff --git a/CTFd/admin/pages.py b/CTFd/admin/pages.py index a228002dd..8fbe2a7da 100644 --- a/CTFd/admin/pages.py +++ b/CTFd/admin/pages.py @@ -27,7 +27,7 @@ def pages_preview(): data = request.form.to_dict() schema = PageSchema() page = schema.load(data) - return render_template("page.html", content...
mlflow__mlflow-7504
Convert `. code-block:: python` to `.. test-code-block:: python` in `mlflow/tracking/_model_registry/fluent.py` See #7457 for more information.
[ { "content": "from mlflow.tracking.client import MlflowClient\nfrom mlflow.exceptions import MlflowException\nfrom mlflow.entities.model_registry import ModelVersion\nfrom mlflow.entities.model_registry import RegisteredModel\nfrom mlflow.protos.databricks_pb2 import RESOURCE_ALREADY_EXISTS, ErrorCode\nfrom mlf...
[ { "content": "from mlflow.tracking.client import MlflowClient\nfrom mlflow.exceptions import MlflowException\nfrom mlflow.entities.model_registry import ModelVersion\nfrom mlflow.entities.model_registry import RegisteredModel\nfrom mlflow.protos.databricks_pb2 import RESOURCE_ALREADY_EXISTS, ErrorCode\nfrom mlf...
diff --git a/mlflow/tracking/_model_registry/fluent.py b/mlflow/tracking/_model_registry/fluent.py index 215ef984d0ed9..0b11ec0563ddd 100644 --- a/mlflow/tracking/_model_registry/fluent.py +++ b/mlflow/tracking/_model_registry/fluent.py @@ -37,7 +37,7 @@ def register_model( :return: Single :py:class:`mlflow.entiti...
biolab__orange3-text-82
Preprocessor: Toggling ON/OFF Runs Preprocessing Twice When enabling/disabling preprocessor modules whole preprocessing is run twice whereas it should be run only once. Preprocessor: Toggling ON/OFF Runs Preprocessing Twice When enabling/disabling preprocessor modules whole preprocessing is run twice whereas it should...
[ { "content": "import os\n\nfrom PyQt4 import QtGui, QtCore\n\nfrom PyQt4.QtCore import (pyqtSignal as Signal, pyqtSlot as Slot)\nfrom PyQt4.QtGui import (QWidget, QLabel, QHBoxLayout, QVBoxLayout,\n QButtonGroup, QRadioButton, QSizePolicy, QFrame,\n QApplication, ...
[ { "content": "import os\n\nfrom PyQt4 import QtGui, QtCore\n\nfrom PyQt4.QtCore import (pyqtSignal as Signal, pyqtSlot as Slot)\nfrom PyQt4.QtGui import (QWidget, QLabel, QHBoxLayout, QVBoxLayout,\n QButtonGroup, QRadioButton, QSizePolicy, QFrame,\n QApplication, ...
diff --git a/orangecontrib/text/widgets/owpreprocess.py b/orangecontrib/text/widgets/owpreprocess.py index d64f5229f..3d458d1ea 100644 --- a/orangecontrib/text/widgets/owpreprocess.py +++ b/orangecontrib/text/widgets/owpreprocess.py @@ -147,7 +147,6 @@ def on_toggle(self): # Activated when the widget is enable...
liqd__a4-meinberlin-5153
Wording: no formal adress regarding notice when comment is too long (missing String on Weblate) **URL:** https://meinberlin-demo.liqd.net/budgeting/2023-00049/ **user:** any **expected behaviour:** as a user on mein Berlin I want to be adressed in a formal way (Sie) **behaviour:** When I write a comment which is to...
[ { "content": "def _(s):\n return s\n\n\ndjango_standard_messages_to_override = [\n _(\"You have signed out.\"),\n _(\"Verify Your E-mail Address\"),\n _(\"You must type the same password each time.\"),\n _(\"You have confirmed %(email)s.\"),\n _(\"You cannot remove your primary e-mail address ...
[ { "content": "def _(s):\n return s\n\n\ndjango_standard_messages_to_override = [\n _(\"You have signed out.\"),\n _(\"Verify Your E-mail Address\"),\n _(\"You must type the same password each time.\"),\n _(\"You have confirmed %(email)s.\"),\n _(\"You cannot remove your primary e-mail address ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6408f95eb4..845993b202 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ Since version <unreleased> the format is based on [Keep a Changelog](https://kee This project (not yet) adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Unrelea...
docker__docker-py-1272
exec_create not work with detach=True Ubuntu 14.04, Python 2.7.12 docker-py 1.5.0 - Ok ``` In [28]: import docker In [29]: docker.version Out[29]: '1.5.0' In [30]: cli = docker.Client() In [31]: container = cli.create_container('python:2.7.11', command='sleep 1h') In [32]: cli.start(container['Id']) In [33]: e =...
[ { "content": "import six\n\nfrom .. import errors\nfrom .. import utils\n\n\nclass ExecApiMixin(object):\n @utils.minimum_version('1.15')\n @utils.check_resource\n def exec_create(self, container, cmd, stdout=True, stderr=True,\n stdin=False, tty=False, privileged=False, user=''):\n ...
[ { "content": "import six\n\nfrom .. import errors\nfrom .. import utils\n\n\nclass ExecApiMixin(object):\n @utils.minimum_version('1.15')\n @utils.check_resource\n def exec_create(self, container, cmd, stdout=True, stderr=True,\n stdin=False, tty=False, privileged=False, user=''):\n ...
diff --git a/docker/api/exec_api.py b/docker/api/exec_api.py index 694b30a67..6c3e63833 100644 --- a/docker/api/exec_api.py +++ b/docker/api/exec_api.py @@ -137,7 +137,8 @@ def exec_start(self, exec_id, detach=False, tty=False, stream=False, data=data, stream=True ) - + if deta...
ibis-project__ibis-6433
bug: cannot read from cloud storage ### What happened? for the `ibis.read_*` functions, cloud storage should be supported via fsspec in the underlying libraries. the main issue seems to be the "normalize_filename()" calls, incorrectly editing the URI a simple example: ```python import ibis import polars as pl ...
[ { "content": "\"\"\"Ibis utility functions.\"\"\"\nfrom __future__ import annotations\n\nimport base64\nimport collections\nimport functools\nimport importlib.metadata\nimport itertools\nimport logging\nimport operator\nimport os\nimport sys\nimport textwrap\nimport types\nimport uuid\nimport warnings\nfrom typ...
[ { "content": "\"\"\"Ibis utility functions.\"\"\"\nfrom __future__ import annotations\n\nimport base64\nimport collections\nimport functools\nimport importlib.metadata\nimport itertools\nimport logging\nimport operator\nimport os\nimport sys\nimport textwrap\nimport types\nimport uuid\nimport warnings\nfrom typ...
diff --git a/ibis/util.py b/ibis/util.py index 1c2c50fecd43..2506ab006731 100644 --- a/ibis/util.py +++ b/ibis/util.py @@ -530,7 +530,7 @@ def _removeprefix(text, prefix): source = _removeprefix(source, f"{prefix}://") def _absolufy_paths(name): - if not name.startswith(("http", "s3")): + ...
biopython__biopython-4545
ScanProsite no longer working ### Setup I am reporting a problem with Biopython version, Python version, and operating system as follows: ```python import sys; print(sys.version) import platform; print(platform.python_implementation()); print(platform.platform()) import Bio; print(Bio.__version__) ``` (*P...
[ { "content": "# Copyright 2009 by Michiel de Hoon. All rights reserved.\n# This code is part of the Biopython distribution and governed by its\n# license. Please see the LICENSE file that should have been included\n# as part of this package.\n\n\"\"\"Code for calling and parsing ScanProsite from ExPASy.\"\"\"\n...
[ { "content": "# Copyright 2009 by Michiel de Hoon. All rights reserved.\n# This code is part of the Biopython distribution and governed by its\n# license. Please see the LICENSE file that should have been included\n# as part of this package.\n\n\"\"\"Code for calling and parsing ScanProsite from ExPASy.\"\"\"\n...
diff --git a/Bio/ExPASy/ScanProsite.py b/Bio/ExPASy/ScanProsite.py index 629ec15f159..e05570b5421 100644 --- a/Bio/ExPASy/ScanProsite.py +++ b/Bio/ExPASy/ScanProsite.py @@ -59,7 +59,7 @@ def scan(seq="", mirror="https://prosite.expasy.org", output="xml", **keywords): if value is not None: paramete...
streamlit__streamlit-724
Fix Danny's S3 sharing issue It looks like `[s3] keyPrefix=...` isn't making it into the URLs being fetched from S3. This is the address of a manifest protobuf we want to fetch: `https://yelp-people-dev.s3-us-west-2.amazonaws.com/~dqn/st/0.49.0-A8NT/reports/NJphBiGR4twz88mU9wTegn/manifest.pb` And this is the add...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2018-2019 Streamlit Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2018-2019 Streamlit Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n...
diff --git a/examples/bart_vs_bikes.py b/examples/bart_vs_bikes.py index 13284d5c8180..e79247600639 100644 --- a/examples/bart_vs_bikes.py +++ b/examples/bart_vs_bikes.py @@ -33,7 +33,9 @@ @st.cache def from_data_file(filename): - dirname = "https://raw.githubusercontent.com/streamlit/streamlit/develop/examples/...
semgrep__semgrep-rules-1051
python tempfile-without-flush: Don't require .write() for exception? **Describe the bug** The `python.lang.correctness.tempfile.flush.tempfile-without-flush` rule has [exceptions](https://github.com/returntocorp/semgrep-rules/blob/35e9f350a5d0190c936502fff179ba2c465c4438/python/lang/correctness/tempfile/flush.yaml#L5-...
[ { "content": "import tempfile\n\nimport at\nimport tf\n\n\ndef main():\n with tempfile.NamedTemporaryFile(\"w\") as fout:\n debug_print(astr)\n fout.write(astr)\n # ok:tempfile-without-flush\n fout.flush()\n cmd = [binary_name, fout.name, *[str(path) for path in targets]]\n...
[ { "content": "import tempfile\n\nimport at\nimport tf\n\n\ndef main():\n with tempfile.NamedTemporaryFile(\"w\") as fout:\n debug_print(astr)\n fout.write(astr)\n # ok:tempfile-without-flush\n fout.flush()\n cmd = [binary_name, fout.name, *[str(path) for path in targets]]\n...
diff --git a/python/lang/correctness/tempfile/flush.py b/python/lang/correctness/tempfile/flush.py index 020f6f7050..07b5183327 100644 --- a/python/lang/correctness/tempfile/flush.py +++ b/python/lang/correctness/tempfile/flush.py @@ -61,3 +61,12 @@ def main_e(): print(fout.name) # ruleid:tempfile-without-flu...
encode__httpx-2523
Support passing bytes keys/values in `params=...` ``` python >>> httpx.get('https://example.org', params={b'testparam': b'testvalue'}).url URL('https://example.org?b%27testparam%27=b%27testvalue%27') ``` I don't think this is intentional, as there is an isinstance check for bytes in the ``flatten_queryparams`` fu...
[ { "content": "import codecs\nimport email.message\nimport logging\nimport mimetypes\nimport netrc\nimport os\nimport re\nimport sys\nimport time\nimport typing\nfrom pathlib import Path\nfrom urllib.request import getproxies\n\nimport sniffio\n\nfrom ._types import PrimitiveData\n\nif typing.TYPE_CHECKING: # p...
[ { "content": "import codecs\nimport email.message\nimport logging\nimport mimetypes\nimport netrc\nimport os\nimport re\nimport sys\nimport time\nimport typing\nfrom pathlib import Path\nfrom urllib.request import getproxies\n\nimport sniffio\n\nfrom ._types import PrimitiveData\n\nif typing.TYPE_CHECKING: # p...
diff --git a/httpx/_utils.py b/httpx/_utils.py index 1f64deedcd..1e1570ee7f 100644 --- a/httpx/_utils.py +++ b/httpx/_utils.py @@ -67,7 +67,11 @@ def primitive_value_to_str(value: "PrimitiveData") -> str: return "false" elif value is None: return "" - return str(value) + elif isinstance(val...
scikit-image__scikit-image-6839
`segmentation.watershed` returns wrong data type ### Description: The documentation of `segmentation.watershed` says that: > ### Returns > **out**: ndarray > A labeled matrix of the same type and shape as markers [[0.18.x]](https://scikit-image.org/docs/0.18.x/api/skimage.segmentation.html#skimage.segmenta...
[ { "content": "\"\"\"watershed.py - watershed algorithm\n\nThis module implements a watershed algorithm that apportions pixels into\nmarked basins. The algorithm uses a priority queue to hold the pixels\nwith the metric for the priority queue being pixel value, then the time\nof entry into the queue - this settl...
[ { "content": "\"\"\"watershed.py - watershed algorithm\n\nThis module implements a watershed algorithm that apportions pixels into\nmarked basins. The algorithm uses a priority queue to hold the pixels\nwith the metric for the priority queue being pixel value, then the time\nof entry into the queue - this settl...
diff --git a/skimage/segmentation/_watershed.py b/skimage/segmentation/_watershed.py index 244f7a3462d..9b47b8f1688 100644 --- a/skimage/segmentation/_watershed.py +++ b/skimage/segmentation/_watershed.py @@ -79,7 +79,7 @@ def _validate_inputs(image, markers, mask, connectivity): f'shape as `ima...
hylang__hy-2454
`(hy.models.Symbol "#foo")` should be an error for the same reason as `(hy.models.Symbol "5")`: `#foo` doesn't parse as a symbol. It parses as a reader-macro call.
[ { "content": "\"Character reader for parsing Hy source.\"\n\nfrom itertools import islice\n\nimport hy\nfrom hy.models import (\n Bytes,\n Complex,\n Dict,\n Expression,\n FComponent,\n Float,\n FString,\n Integer,\n Keyword,\n List,\n Set,\n String,\n Symbol,\n Tuple,\...
[ { "content": "\"Character reader for parsing Hy source.\"\n\nfrom itertools import islice\n\nimport hy\nfrom hy.models import (\n Bytes,\n Complex,\n Dict,\n Expression,\n FComponent,\n Float,\n FString,\n Integer,\n Keyword,\n List,\n Set,\n String,\n Symbol,\n Tuple,\...
diff --git a/NEWS.rst b/NEWS.rst index cbd903774..d4765e986 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -29,6 +29,8 @@ Bug Fixes * The parser no longer looks for shebangs in the REPL or `hy -c`. * `require` with relative module names should now work correctly with `hy -m`, as well as `hy2py`'s recursive mode. +* `hy.m...
tobymao__sqlglot-1279
type `TIMESTAMPTZ` doesn't exist in sparksql sqlglot transpiles a trino type like `timestamp(6) with time zone` as the hive type `TIMESTAMPTZ` for spark, which isn't a spark type. I'd be happy to submit a PR if there's advice about how to address this. ``` >>> sqlglot.transpile('select cast(created as timestamp(6)...
[ { "content": "from __future__ import annotations\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n Dialect,\n approx_count_distinct_sql,\n create_with_partitions_sql,\n format_time_lambda,\n if_sql,\n locate_to_strposition,\n min_or_...
[ { "content": "from __future__ import annotations\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n Dialect,\n approx_count_distinct_sql,\n create_with_partitions_sql,\n format_time_lambda,\n if_sql,\n locate_to_strposition,\n min_or_...
diff --git a/sqlglot/dialects/hive.py b/sqlglot/dialects/hive.py index c4b8fa9ce5..9f72347bcc 100644 --- a/sqlglot/dialects/hive.py +++ b/sqlglot/dialects/hive.py @@ -263,6 +263,7 @@ class Generator(generator.Generator): exp.DataType.Type.TEXT: "STRING", exp.DataType.Type.DATETIME: "TIMESTAMP"...
interlegis__sapl-2981
Retirar a OBRIGATORIEDADE na pesquisar para adicionar várias matérias na ordem do dia <!--- Forneça um resumo geral da _issue_ no título acima --> ## Comportamento Esperado <!--- Se você está descrevendo um _bug_, conte-nos o que deveria acontecer. --> <!--- Se você está sugerindo uma mudança/melhoria, conte-nos c...
[ { "content": "from datetime import datetime\n\nfrom crispy_forms.layout import HTML, Button, Fieldset, Layout\nfrom django import forms\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import ObjectDoesNotExist, ValidationError\nfrom django.db import transaction\nfrom dja...
[ { "content": "from datetime import datetime\n\nfrom crispy_forms.layout import HTML, Button, Fieldset, Layout\nfrom django import forms\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import ObjectDoesNotExist, ValidationError\nfrom django.db import transaction\nfrom dja...
diff --git a/sapl/sessao/forms.py b/sapl/sessao/forms.py index 01f0c3636..4e2a0498f 100644 --- a/sapl/sessao/forms.py +++ b/sapl/sessao/forms.py @@ -577,7 +577,7 @@ class AdicionarVariasMateriasFilterSet(MateriaLegislativaFilterSet): o = MateriaPesquisaOrderingFilter() tramitacao__status = django_filters.Mo...
projectmesa__mesa-1256
CI: test flake: batch runner sometimes takes 6 hours then gets killed by GitHub Actions See e.g. https://github.com/projectmesa/mesa/runs/5259005495?check_suite_focus=true. We might want to add timeout to batch runner tests, with https://pypi.org/project/pytest-timeout/.
[ { "content": "\"\"\"\nBatchrunner\n===========\n\nA single class to manage a batch run or parameter sweep of a given model.\n\n\"\"\"\nimport copy\nimport itertools\nimport random\nfrom collections import OrderedDict\nfrom functools import partial\nfrom itertools import count, product\nfrom multiprocessing impo...
[ { "content": "\"\"\"\nBatchrunner\n===========\n\nA single class to manage a batch run or parameter sweep of a given model.\n\n\"\"\"\nimport copy\nimport itertools\nimport random\nfrom collections import OrderedDict\nfrom functools import partial\nfrom itertools import count, product\nfrom multiprocessing impo...
diff --git a/mesa/batchrunner.py b/mesa/batchrunner.py index 4b19c47ee9c..0556a38f461 100644 --- a/mesa/batchrunner.py +++ b/mesa/batchrunner.py @@ -610,7 +610,7 @@ def __init__( ) -class BatchRunnerMP(BatchRunner): +class BatchRunnerMP(BatchRunner): # pragma: no cover """DEPRECATION WARNING: Bat...
ManimCommunity__manim-235
-f broken on windows Basically the title. When passing -f on windows in show the video file with the default video browser (like -p does) and not in the file explorer.
[ { "content": "import inspect\nimport os\nimport platform\nimport subprocess as sp\nimport sys\nimport re\nimport traceback\nimport importlib.util\nimport types\n\nfrom .config import file_writer_config\nfrom .scene.scene import Scene\nfrom .utils.sounds import play_error_sound\nfrom .utils.sounds import play_fi...
[ { "content": "import inspect\nimport os\nimport platform\nimport subprocess as sp\nimport sys\nimport re\nimport traceback\nimport importlib.util\nimport types\n\nfrom .config import file_writer_config\nfrom .scene.scene import Scene\nfrom .utils.sounds import play_error_sound\nfrom .utils.sounds import play_fi...
diff --git a/manim/__main__.py b/manim/__main__.py index fed9b7827a..1cee5c05a5 100644 --- a/manim/__main__.py +++ b/manim/__main__.py @@ -36,7 +36,7 @@ def open_file_if_needed(file_writer): for file_path in file_paths: if current_os == "Windows": - os.startfile(file_path) + ...
plotly__plotly.py-3763
graphs from plotly >= 5.8 don't render in databricks displaying a python figure in an iframe within databricks works with plotly==5.7 but when I attempt to do it using 5.8 it fails with `Uncaught SyntaxError: Unexpected token '&&'`: ![Screenshot from 2022-06-02 10-56-02](https://user-images.githubusercontent.com/410...
[ { "content": "import uuid\nimport os\nfrom pathlib import Path\nimport webbrowser\n\nfrom _plotly_utils.optional_imports import get_module\nfrom plotly.io._utils import validate_coerce_fig_to_dict, plotly_cdn_url\nfrom plotly.offline.offline import _get_jconfig, get_plotlyjs\nfrom plotly import utils\n\n_json =...
[ { "content": "import uuid\nimport os\nfrom pathlib import Path\nimport webbrowser\n\nfrom _plotly_utils.optional_imports import get_module\nfrom plotly.io._utils import validate_coerce_fig_to_dict, plotly_cdn_url\nfrom plotly.offline.offline import _get_jconfig, get_plotlyjs\nfrom plotly import utils\n\n_json =...
diff --git a/packages/python/plotly/plotly/io/_html.py b/packages/python/plotly/plotly/io/_html.py index b6f61facc5a..606df721f33 100644 --- a/packages/python/plotly/plotly/io/_html.py +++ b/packages/python/plotly/plotly/io/_html.py @@ -20,7 +20,7 @@ _mathjax_config = """\ <script type="text/javascript">\ -if (wind...
AUTOMATIC1111__stable-diffusion-webui-12327
[Bug]: incorrect file path when prompt contains new line ### Is there an existing issue for this? - [X] I have searched the existing issues and checked the recent builds/commits ### What happened? prompt: ``` portrait of a woman, art by Henry Asencio Anton Fadeev Artgerm Bastien Lecouffe-Deharme Carne Grif...
[ { "content": "from __future__ import annotations\r\n\r\nimport datetime\r\n\r\nimport pytz\r\nimport io\r\nimport math\r\nimport os\r\nfrom collections import namedtuple\r\nimport re\r\n\r\nimport numpy as np\r\nimport piexif\r\nimport piexif.helper\r\nfrom PIL import Image, ImageFont, ImageDraw, ImageColor, Pn...
[ { "content": "from __future__ import annotations\r\n\r\nimport datetime\r\n\r\nimport pytz\r\nimport io\r\nimport math\r\nimport os\r\nfrom collections import namedtuple\r\nimport re\r\n\r\nimport numpy as np\r\nimport piexif\r\nimport piexif.helper\r\nfrom PIL import Image, ImageFont, ImageDraw, ImageColor, Pn...
diff --git a/modules/images.py b/modules/images.py index 38aa933d6e5..ba3c43a4509 100644 --- a/modules/images.py +++ b/modules/images.py @@ -318,7 +318,7 @@ def resize(im, w, h): return res -invalid_filename_chars = '<>:"/\\|?*\n' +invalid_filename_chars = '<>:"/\\|?*\n\r\t' invalid_filename_prefix = ' '...
python-poetry__poetry-1673
`poetry shell` with fish does not echo in python REPL - [x] I am on the [latest](https://github.com/sdispater/poetry/releases/latest) Poetry version. - [x] I have searched the [issues](https://github.com/sdispater/poetry/issues) of this repo and believe that this is not a duplicate. - [x] If an exception occurs when ...
[ { "content": "import os\nimport signal\nimport sys\n\nimport pexpect\n\nfrom clikit.utils.terminal import Terminal\nfrom shellingham import ShellDetectionFailure\nfrom shellingham import detect_shell\n\nfrom ._compat import WINDOWS\nfrom .env import VirtualEnv\n\n\nclass Shell:\n \"\"\"\n Represents the c...
[ { "content": "import os\nimport signal\nimport sys\n\nimport pexpect\n\nfrom clikit.utils.terminal import Terminal\nfrom shellingham import ShellDetectionFailure\nfrom shellingham import detect_shell\n\nfrom ._compat import WINDOWS\nfrom .env import VirtualEnv\n\n\nclass Shell:\n \"\"\"\n Represents the c...
diff --git a/poetry/utils/shell.py b/poetry/utils/shell.py index 5a6afb650e1..e883c80fc6e 100644 --- a/poetry/utils/shell.py +++ b/poetry/utils/shell.py @@ -58,7 +58,7 @@ def activate(self, env): # type: (VirtualEnv) -> None self._path, ["-i"], dimensions=(terminal.height, terminal.width) ...
ManageIQ__integration_tests-7470
[BUG] get_mgmt blowing error if provider_key is a dict This piece of code https://github.com/ManageIQ/integration_tests/blob/3ccb7ac459f98df2da3c6b522ee257c80ae29aba/cfme/utils/providers.py#L389-L393 is causing `TypeError: unhashable type: 'AttrDict'` if `provider_key` is a unhashable type (dict). using the first a...
[ { "content": "\"\"\" Helper functions related to the creation, listing, filtering and destruction of providers\n\nThe list_providers function in this module depend on a (by default global) dict of filters.\nIf you are writing tests or fixtures, you want to depend on this function as a de facto gateway.\n\nThe r...
[ { "content": "\"\"\" Helper functions related to the creation, listing, filtering and destruction of providers\n\nThe list_providers function in this module depend on a (by default global) dict of filters.\nIf you are writing tests or fixtures, you want to depend on this function as a de facto gateway.\n\nThe r...
diff --git a/cfme/utils/providers.py b/cfme/utils/providers.py index 5c5844b579..7231eb7847 100644 --- a/cfme/utils/providers.py +++ b/cfme/utils/providers.py @@ -358,6 +358,7 @@ def get_mgmt(provider_key, providers=None, credentials=None): # TODO rename the parameter; might break things if isinstance(provide...
saulpw__visidata-1887
resize-cols-input missing from Column -> Resize menu **Small description** resize-cols-input is missing from the Column -> Resize menu **Expected result** when I go to the menu under Column -> Resize, I expect resize-cols-input (gz_) to be given as an option **Additional context** checked against v2.11 (Sub...
[ { "content": "from visidata import VisiData, vd, Column, Sheet, Fanout\n\n@Column.api\ndef setWidth(self, w):\n if self.width != w:\n if self.width == 0 or w == 0: # hide/unhide\n vd.addUndo(setattr, self, '_width', self.width)\n self._width = w\n\n\n@Column.api\ndef toggleWidth(self, w...
[ { "content": "from visidata import VisiData, vd, Column, Sheet, Fanout\n\n@Column.api\ndef setWidth(self, w):\n if self.width != w:\n if self.width == 0 or w == 0: # hide/unhide\n vd.addUndo(setattr, self, '_width', self.width)\n self._width = w\n\n\n@Column.api\ndef toggleWidth(self, w...
diff --git a/visidata/features/layout.py b/visidata/features/layout.py index 32b29e5d5..eed59737f 100644 --- a/visidata/features/layout.py +++ b/visidata/features/layout.py @@ -50,4 +50,5 @@ def unhide_cols(vd, cols, rows): Column > Resize > current column to max > resize-col-max Column > Resize > current col...
microsoft__ptvsd-297
Unable to launch the debugger Getting the following error in master when debugging in VSC: ``` Could not connect to None: 60857 Traceback (most recent call last): File "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/pydevd.py", line 1620, in main debugger.connect(host, port) File "/User...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nfrom ptvsd.__main__ import run_module, run_file\n\n\n__author__ = \"Microsoft Corporation <ptvshelp@microsoft.com>\"\n__version__ = \"4.0.0a...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nfrom ptvsd.__main__ import run_module, run_file\n\n\n__author__ = \"Microsoft Corporation <ptvshelp@microsoft.com>\"\n__version__ = \"4.0.0a...
diff --git a/ptvsd/debugger.py b/ptvsd/debugger.py index 00175be89..ec6717868 100644 --- a/ptvsd/debugger.py +++ b/ptvsd/debugger.py @@ -14,7 +14,7 @@ def debug(filename, port_num, debug_id, debug_options, run_as, **kwargs): # TODO: docstring - address = (None, port_num) + address = ('localhost', port_num...
pypa__pipenv-3338
package in a namespace from pip fails to lock I checked the diagnose. ### Issue description installing a package from pip with a namespace, i.e. fsc.export results in locking-failure, since (I assume) pipenv looks for `fsc-export` on https://pypi.org/simple and not for `fsc.export` (which is available). This pa...
[ { "content": "# -*- coding: utf-8 -*-\nimport base64\nimport fnmatch\nimport glob\nimport hashlib\nimport io\nimport json\nimport operator\nimport os\nimport re\nimport sys\n\nimport six\nimport toml\nimport tomlkit\nimport vistir\n\nfrom first import first\n\nimport pipfile\nimport pipfile.api\n\nfrom cached_p...
[ { "content": "# -*- coding: utf-8 -*-\nimport base64\nimport fnmatch\nimport glob\nimport hashlib\nimport io\nimport json\nimport operator\nimport os\nimport re\nimport sys\n\nimport six\nimport toml\nimport tomlkit\nimport vistir\n\nfrom first import first\n\nimport pipfile\nimport pipfile.api\n\nfrom cached_p...
diff --git a/news/3324.bugfix.rst b/news/3324.bugfix.rst new file mode 100644 index 0000000000..d13a8d468f --- /dev/null +++ b/news/3324.bugfix.rst @@ -0,0 +1 @@ +Don't normalize the package name user passes in. diff --git a/pipenv/project.py b/pipenv/project.py index 46f82cf34c..e8550a041a 100644 --- a/pipenv/project....
ibis-project__ibis-1951
Implement Interval arithmetic on one or more backends After subtraction is in from #1489, we'll want to implement this on at least one backend.
[ { "content": "import datetime\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.core.groupby import SeriesGroupBy\n\nimport ibis\nimport ibis.expr.datatypes as dt\nimport ibis.expr.operations as ops\nfrom ibis.pandas.core import (\n date_types,\n integer_types,\n numeric_types,\n timedelta_typ...
[ { "content": "import datetime\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.core.groupby import SeriesGroupBy\n\nimport ibis\nimport ibis.expr.datatypes as dt\nimport ibis.expr.operations as ops\nfrom ibis.pandas.core import (\n date_types,\n integer_types,\n numeric_types,\n timedelta_typ...
diff --git a/ibis/pandas/execution/temporal.py b/ibis/pandas/execution/temporal.py index a3eecf3735cc..2d193a03e7c4 100644 --- a/ibis/pandas/execution/temporal.py +++ b/ibis/pandas/execution/temporal.py @@ -184,7 +184,9 @@ def execute_timestamp_sub_series_timedelta(op, left, right, **kwargs): @execute_node.registe...
getpelican__pelican-2632
Add Markdown as an (optional) dependency Since its inception, this project has taken the collective position that since not everyone uses Markdown, the `markdown` package should not be a dependency of the project and should instead be manually installed by users who want to use Markdown. On the other hand, the `docu...
[ { "content": "#!/usr/bin/env python\nimport sys\nfrom io import open\nfrom os import walk\nfrom os.path import join, relpath\n\nfrom setuptools import setup\n\n\nversion = \"4.1.2\"\n\nrequires = ['feedgenerator >= 1.9', 'jinja2 >= 2.7', 'pygments', 'docutils',\n 'pytz >= 0a', 'blinker', 'unidecode',...
[ { "content": "#!/usr/bin/env python\nimport sys\nfrom io import open\nfrom os import walk\nfrom os.path import join, relpath\n\nfrom setuptools import setup\n\n\nversion = \"4.1.2\"\n\nrequires = ['feedgenerator >= 1.9', 'jinja2 >= 2.7', 'pygments', 'docutils',\n 'pytz >= 0a', 'blinker', 'unidecode',...
diff --git a/docs/install.rst b/docs/install.rst index 571de95e8..2da7b9be2 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -9,6 +9,10 @@ You can install Pelican via several different methods. The simplest is via pip install pelican +Or, if you plan on using Markdown:: + + pip install pelican[Markdo...
gratipay__gratipay.com-2948
VirtualEnv error with Windows + Vagrant No idea where to even start with this one. Fresh clone with fresh vagrant box. Here's the weird part, at home my Windows 8.1 x64 computer experiences this problem but my Windows 7 x64 computer at work doesn't. This also happens to @abnor ``` vagrant@precise64:~/www.gittip.com$...
[ { "content": "from faker import Factory\nfrom gratipay import wireup, MAX_TIP_SINGULAR, MIN_TIP\nfrom gratipay.elsewhere import PLATFORMS\nfrom gratipay.models.participant import Participant\n\nimport datetime\nimport decimal\nimport random\nimport string\n\n\nfaker = Factory.create()\n\n\ndef _fake_thing(db, t...
[ { "content": "from faker import Factory\nfrom gratipay import wireup, MAX_TIP_SINGULAR, MIN_TIP\nfrom gratipay.elsewhere import PLATFORMS\nfrom gratipay.models.participant import Participant\n\nimport datetime\nimport decimal\nimport random\nimport string\n\n\nfaker = Factory.create()\n\n\ndef _fake_thing(db, t...
diff --git a/Makefile b/Makefile index 5360cadb7d..39fdc9707f 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ env: requirements.txt requirements_tests.txt setup.py --unzip-setuptools \ --prompt="[gratipay] " \ --extra-search-dir=./vendor/ \ + --always-copy \ ./env/ $(pip) install -r requ...