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
⌀
cocotb__cocotb-2382
cocotb colorizer does not support custom logging levels The attached file demonstrates that cocotb does not support custom logging levels. This may be the intention as there is an assertion in the code regarding acceptable logging levels, it is limiting. I don't think cocotb should throw an exception on an unexpect...
[ { "content": "# Copyright (c) 2013, 2018 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistribut...
[ { "content": "# Copyright (c) 2013, 2018 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistribut...
diff --git a/cocotb/log.py b/cocotb/log.py index 9b75309c97..e5854c531e 100644 --- a/cocotb/log.py +++ b/cocotb/log.py @@ -248,8 +248,8 @@ def format(self, record): msg = record.getMessage() # Need to colour each line in case coloring is applied in the message - msg = '\n'.join([SimColourLogF...
pypa__virtualenv-2088
Use the builtin plugin classes unless another plugin class is specifically asked for. **What's the problem this feature will solve?** I have a private plugin for virtualenv where I add an additional discovery class. This discovery class adds a new argument to the command line parser that is required but only when th...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nfrom .base import PluginLoader\n\n\nclass Discovery(PluginLoader):\n \"\"\"\"\"\"\n\n\ndef get_discover(parser, args):\n discover_types = Discovery.entry_points_for(\"virtualenv.discovery\")\n discovery_parser = parser.add_argume...
[ { "content": "from __future__ import absolute_import, unicode_literals\n\nfrom .base import PluginLoader\n\n\nclass Discovery(PluginLoader):\n \"\"\"\"\"\"\n\n\ndef get_discover(parser, args):\n discover_types = Discovery.entry_points_for(\"virtualenv.discovery\")\n discovery_parser = parser.add_argume...
diff --git a/docs/changelog/2087.bugfix.rst b/docs/changelog/2087.bugfix.rst new file mode 100644 index 000000000..4f36256c6 --- /dev/null +++ b/docs/changelog/2087.bugfix.rst @@ -0,0 +1 @@ +Built in discovery class is always preferred over plugin supplied classes. diff --git a/src/virtualenv/run/plugin/discovery.py b/...
enthought__chaco-636
Empty chaco plot crashes when clicked on **Problem Description** Clicking on an empty chaco plot results in a crash. In our usage, an empty chaco plot is created first, and later data is added. **Reproduction Steps:** ```python class LinePlot(HasTraits): plot = Instance(Plot) x = [] y = [] trait...
[ { "content": "# -------------------------------------------------------------------------------\n#\n#\n# Written by: David C. Morrill (based on similar routines written by Eric Jones)\n#\n# Date: 2007-05-01\n#\n# (c) Copyright 2002-7 by Enthought, Inc.\n#\n# --------------------------------------------------...
[ { "content": "# -------------------------------------------------------------------------------\n#\n#\n# Written by: David C. Morrill (based on similar routines written by Eric Jones)\n#\n# Date: 2007-05-01\n#\n# (c) Copyright 2002-7 by Enthought, Inc.\n#\n# --------------------------------------------------...
diff --git a/chaco/tests/test_plot.py b/chaco/tests/test_plot.py index 431859d3c..fc7b74ccc 100644 --- a/chaco/tests/test_plot.py +++ b/chaco/tests/test_plot.py @@ -2,9 +2,16 @@ from numpy import alltrue, arange, array +from enable.api import ComponentEditor +from enable.testing import EnableTestAssistant +from tr...
bokeh__bokeh-4677
undeprecate .from_df With server apps it is necessary to update `.data` all "at once" so a method to construct a dictionary for `.data` is actually useful and needed. Going to un-deprecate for now, can discuss other ideas for this functionality later.
[ { "content": "from __future__ import absolute_import\n\nfrom ..core import validation\nfrom ..core.validation.errors import COLUMN_LENGTHS\nfrom ..core.properties import abstract\nfrom ..core.properties import Any, Int, String, Instance, List, Dict, Bool, Enum, JSON\nfrom ..model import Model\nfrom ..util.depen...
[ { "content": "from __future__ import absolute_import\n\nfrom ..core import validation\nfrom ..core.validation.errors import COLUMN_LENGTHS\nfrom ..core.properties import abstract\nfrom ..core.properties import Any, Int, String, Instance, List, Dict, Bool, Enum, JSON\nfrom ..model import Model\nfrom ..util.depen...
diff --git a/bokeh/models/sources.py b/bokeh/models/sources.py index 426d9f0fa86..d7659119534 100644 --- a/bokeh/models/sources.py +++ b/bokeh/models/sources.py @@ -114,7 +114,6 @@ def _data_from_df(df): return new_data @classmethod - @deprecated("Bokeh 0.9.3", "ColumnDataSource initializer") de...
bridgecrewio__checkov-1086
CKV_AWS_119 - DynamoDB table encryption **Describe the bug** In general DynamoDB tables are encrypted by default and this can't be turned off, you can change it to use a KMS key of your choice. Therefore the check description is incorrect. Further infos can be found in the API documentation https://docs.aws.amazon....
[ { "content": "from checkov.common.models.enums import CheckCategories\nfrom checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\n\n\nclass DynamoDBTablesEncrypted(BaseResourceValueCheck):\n def __init__(self):\n name = \"Ensure DynamoDB Tables are encrypted\"\n ...
[ { "content": "from checkov.common.models.enums import CheckCategories\nfrom checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\n\n\nclass DynamoDBTablesEncrypted(BaseResourceValueCheck):\n def __init__(self):\n name = \"Ensure DynamoDB Tables are encrypted using ...
diff --git a/checkov/terraform/checks/resource/aws/DynamoDBTablesEncrypted.py b/checkov/terraform/checks/resource/aws/DynamoDBTablesEncrypted.py index 89077297d8..2715bb7c9e 100644 --- a/checkov/terraform/checks/resource/aws/DynamoDBTablesEncrypted.py +++ b/checkov/terraform/checks/resource/aws/DynamoDBTablesEncrypted....
getpelican__pelican-3002
SUMMARY_MAX_LENGTH is applied in a wrong way to Vietnamese content <!-- Hi there! Thank you for discovering and submitting an issue. Before you submit this, let’s make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill them first. -->...
[ { "content": "import datetime\nimport fnmatch\nimport locale\nimport logging\nimport os\nimport re\nimport shutil\nimport sys\nimport traceback\nimport urllib\nfrom collections.abc import Hashable\nfrom contextlib import contextmanager\nfrom functools import partial\nfrom html import entities\nfrom html.parser ...
[ { "content": "import datetime\nimport fnmatch\nimport locale\nimport logging\nimport os\nimport re\nimport shutil\nimport sys\nimport traceback\nimport urllib\nfrom collections.abc import Hashable\nfrom contextlib import contextmanager\nfrom functools import partial\nfrom html import entities\nfrom html.parser ...
diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 000000000..36f865f84 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,5 @@ +Release type: minor + +* Use JSON values for extra settings in Invoke tasks template (#2994) +* Add content tag for links, which can help with things like Twitter social cards (#3001) +* ...
rasterio__rasterio-2814
Clarification on docstring for `rasterio.warp.calculate_default_transform` <!-- WELCOME ABOARD! Hi and welcome to the Rasterio project. We appreciate bug reports, questions about documentation, and suggestions for new features. This issue template isn't intended to ward you off; only to intercept and redirect s...
[ { "content": "\"\"\"Raster warping and reprojection.\"\"\"\n\nfrom math import ceil, floor\n\nfrom affine import Affine\nimport numpy as np\n\nimport rasterio\n\nfrom rasterio._base import _transform\nfrom rasterio.crs import CRS\nfrom rasterio.enums import Resampling\nfrom rasterio.env import ensure_env, requi...
[ { "content": "\"\"\"Raster warping and reprojection.\"\"\"\n\nfrom math import ceil, floor\n\nfrom affine import Affine\nimport numpy as np\n\nimport rasterio\n\nfrom rasterio._base import _transform\nfrom rasterio.crs import CRS\nfrom rasterio.enums import Resampling\nfrom rasterio.env import ensure_env, requi...
diff --git a/rasterio/warp.py b/rasterio/warp.py index a82769bed..b08d48c7e 100644 --- a/rasterio/warp.py +++ b/rasterio/warp.py @@ -400,7 +400,7 @@ def calculate_default_transform( top=None, gcps=None, rpcs=None, resolution=None, dst_width=None, dst_height=None, **kwargs): """Output dimensions and transf...
joke2k__faker-626
Uk mobile number It seems like the uk mobile number is not in the right format it's completely not valid some examples of them: +44(0)9128 405119 (01414) 35336 01231052134 Uk mobile number It seems like the uk mobile number is not in the right format it's completely not valid some examples of them: +44(0)91...
[ { "content": "from __future__ import unicode_literals\nfrom .. import Provider as PhoneNumberProvider\n\n\nclass Provider(PhoneNumberProvider):\n formats = (\n '+44(0)##########',\n '+44(0)#### ######',\n '+44(0)#########',\n '+44(0)#### #####',\n '0##########',\n '0...
[ { "content": "from __future__ import unicode_literals\nfrom .. import Provider as PhoneNumberProvider\n\n\nclass Provider(PhoneNumberProvider):\n # Source: https://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom\n\n cellphone_formats = (\n '+44 7### ######',\n '+44 7#########',...
diff --git a/faker/providers/phone_number/en_GB/__init__.py b/faker/providers/phone_number/en_GB/__init__.py index 8bc14ac6e5..2a43d3a619 100644 --- a/faker/providers/phone_number/en_GB/__init__.py +++ b/faker/providers/phone_number/en_GB/__init__.py @@ -3,6 +3,15 @@ class Provider(PhoneNumberProvider): + # Sou...
modin-project__modin-5605
BUG: dictionary aggregation fails if multiple aggregations specified for a single column partition ### Modin version checks - [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest released version of Modin. - [X] I have confirmed this bug exists on the...
[ { "content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ...
[ { "content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ...
diff --git a/modin/core/dataframe/algebra/groupby.py b/modin/core/dataframe/algebra/groupby.py index b1e2476cbdb..4272d941386 100644 --- a/modin/core/dataframe/algebra/groupby.py +++ b/modin/core/dataframe/algebra/groupby.py @@ -518,7 +518,10 @@ def aggregate_on_dict(grp_obj, *args, **kwargs): elif grp_has...
Project-MONAI__MONAI-2377
compatibility with torch 1.9 **Is your feature request related to a problem? Please describe.** pytorch 1.9 is available, there're some compatibility issues such as https://github.com/Project-MONAI/MONAI/runs/2831507688?check_suite_focus=true#step:8:4236
[ { "content": "# Copyright 2020 - 2021 MONAI Consortium\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by appli...
[ { "content": "# Copyright 2020 - 2021 MONAI Consortium\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by appli...
diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 7b9fa0b98a..8d7f32993f 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -15,7 +15,7 @@ jobs: runs-on: [self-hosted, linux, x64, common] strategy: matrix: - pytorch-version: [1.5.1, 1.6.0, 1.7.1,...
common-workflow-language__cwltool-575
An execution of a packed workflow fails ## Expected Behavior cwltool executes a workflow after packing exactly the same way as a normal workflow. ## Actual Behavior Workflow fails ## Steps to reproduce ``` cd /path/to/cwltool cwltool --pack cwltool/schemas/v1.0/v1.0/count-lines6-wf.cwl > cwltool/schemas/v1.0...
[ { "content": "from __future__ import absolute_import\n# pylint: disable=unused-import\n\"\"\"Loads a CWL document.\"\"\"\n\nimport logging\nimport os\nimport re\nimport uuid\nimport hashlib\nimport json\nimport copy\nfrom typing import Any, Callable, Dict, List, Text, Tuple, Union, cast, Iterable\n\nimport requ...
[ { "content": "from __future__ import absolute_import\n# pylint: disable=unused-import\n\"\"\"Loads a CWL document.\"\"\"\n\nimport logging\nimport os\nimport re\nimport uuid\nimport hashlib\nimport json\nimport copy\nfrom typing import Any, Callable, Dict, List, Text, Tuple, Union, cast, Iterable\n\nimport requ...
diff --git a/cwltool/load_tool.py b/cwltool/load_tool.py index cc736e7fc..59fa62eaa 100644 --- a/cwltool/load_tool.py +++ b/cwltool/load_tool.py @@ -281,10 +281,13 @@ def make_tool(document_loader, # type: Loader """Make a Python CWL object.""" resolveduri = document_loader.resolve_ref(uri)[0] + process...
HypothesisWorks__hypothesis-1178
Run tests with warnings as errors This is harder than it sounds, because practically everything in a Python stack emits warnings. See #1124, #1149, and #1169 for previous work on this. One lead is to check whether we can put e.g. `,default:::setuptools,default:::pip` at the end of the [`PYTHONWARNINGS`](https://doc...
[ { "content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2018 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f...
[ { "content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2018 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f...
diff --git a/.gitignore b/.gitignore index 3c83429920..cbc31858e8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.pyc venv* .cache +.pytest_cache .hypothesis docs/_build *.egg-info diff --git a/RELEASE.rst b/RELEASE.rst new file mode 100644 index 0000000000..816ec22aa4 --- /dev/null +++ b/RELEASE.rst @...
translate__pootle-4104
2.6.1 0010_populate_translation_project_field.py migration is failing Migration issue reported on [`pootle-devel`](http://markmail.org/message/uieojvgity3puid5) Summary is that a cleanup migration seems to be failing. Migration code: https://github.com/translate/pootle/blob/stable/2.6.1/pootle/apps/pootle_store/migra...
[ { "content": "# -*- coding: utf-8 -*-\nfrom south.utils import datetime_utils as datetime\nfrom south.db import db\nfrom south.v2 import DataMigration\nfrom django.db import models\n\nclass Migration(DataMigration):\n\n def forwards(self, orm):\n broken_suggestions = orm['pootle_store.Suggestion'].obj...
[ { "content": "# -*- coding: utf-8 -*-\nfrom south.utils import datetime_utils as datetime\nfrom south.db import db\nfrom south.v2 import DataMigration\nfrom django.db import models\n\nclass Migration(DataMigration):\n\n def forwards(self, orm):\n broken_suggestions = orm['pootle_store.Suggestion'].obj...
diff --git a/pootle/apps/pootle_store/migrations/0010_populate_translation_project_field.py b/pootle/apps/pootle_store/migrations/0010_populate_translation_project_field.py index 40ef15b7e96..835545a7468 100644 --- a/pootle/apps/pootle_store/migrations/0010_populate_translation_project_field.py +++ b/pootle/apps/pootle...
ansible__ansible-3017
Support scripts dir in roles Could we extend roles to support scripts? So ``` - script: myscript.sh ``` Gets automagically sucked up from, roles/myrole/scripts/myscript.sh ?
[ { "content": "# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, o...
[ { "content": "# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, o...
diff --git a/docsite/latest/rst/bestpractices.rst b/docsite/latest/rst/bestpractices.rst index 1a1d2ea137f19d..c0afa4488fd221 100644 --- a/docsite/latest/rst/bestpractices.rst +++ b/docsite/latest/rst/bestpractices.rst @@ -52,6 +52,7 @@ The top level of the directory would contain files and directories like so:: ...
zestedesavoir__zds-site-4310
[v23] La promotion d'un billet en article fait perdre la source J'ai publié un billet, il a été promu en article directement. [Version publique du billet](https://beta.zestedesavoir.com/billets/1777/un-gros-troll-de-plus-sur-javascript/) [Version publique de l'article](https://beta.zestedesavoir.com/articles/1799/u...
[ { "content": "# coding: utf-8\nfrom __future__ import unicode_literals\nimport json\nimport logging\nfrom datetime import datetime\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import PermissionDenied\nfrom djan...
[ { "content": "# coding: utf-8\nfrom __future__ import unicode_literals\nimport json\nimport logging\nfrom datetime import datetime\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import PermissionDenied\nfrom djan...
diff --git a/templates/home.html b/templates/home.html index 0c0c80c3be..3929bd55e0 100644 --- a/templates/home.html +++ b/templates/home.html @@ -170,7 +170,7 @@ <h2 class="ico-after ico-opinions home-heading" itemprop="name"> <div class="content-item-list"> {% for opinion in la...
replicate__cog-620
What should `cog predict` do if you don't pass an input name? The syntax of `cog predict` is this: cog predict -i image=@image.jpg But you can also do this: cog predict -i @image.jpg Which implicitly means an input name of `input`. This is a neat short hand but a bit weird for a few reasons: - `i...
[ { "content": "# Prediction interface for Cog ⚙️\n# https://github.com/replicate/cog/blob/main/docs/python.md\n\nfrom cog import BasePredictor, Input, Path\n\n\nclass Predictor(BasePredictor):\n def setup(self):\n \"\"\"Load the model into memory to make running multiple predictions efficient\"\"\"\n ...
[ { "content": "# Prediction interface for Cog ⚙️\n# https://github.com/replicate/cog/blob/main/docs/python.md\n\nfrom cog import BasePredictor, Input, Path\n\n\nclass Predictor(BasePredictor):\n def setup(self):\n \"\"\"Load the model into memory to make running multiple predictions efficient\"\"\"\n ...
diff --git a/README.md b/README.md index da3ee291de..7ecf79f56d 100644 --- a/README.md +++ b/README.md @@ -49,11 +49,11 @@ class Predictor(BasePredictor): # The arguments and types the model takes as input def predict(self, - input: Path = Input(title="Grayscale input image") + image: Path...
sopel-irc__sopel-1537
bot.hostmask While bot.users.get(bot.nick).hostmask is nice to use, I think it would be slightly better to have a more direct approach like bot.hostmask .
[ { "content": "# coding=utf-8\n# Copyright 2008, Sean B. Palmer, inamidst.com\n# Copyright © 2012, Elad Alfassa <elad@fedoraproject.org>\n# Copyright 2012-2015, Elsie Powell, http://embolalia.com\n#\n# Licensed under the Eiffel Forum License 2.\n\nfrom __future__ import unicode_literals, absolute_import, print_f...
[ { "content": "# coding=utf-8\n# Copyright 2008, Sean B. Palmer, inamidst.com\n# Copyright © 2012, Elad Alfassa <elad@fedoraproject.org>\n# Copyright 2012-2015, Elsie Powell, http://embolalia.com\n#\n# Licensed under the Eiffel Forum License 2.\n\nfrom __future__ import unicode_literals, absolute_import, print_f...
diff --git a/sopel/bot.py b/sopel/bot.py index 7e0fefc866..cd4ccbbe52 100644 --- a/sopel/bot.py +++ b/sopel/bot.py @@ -141,6 +141,17 @@ def __init__(self, config, daemon=False): self.config.core.host_blocks = [] self.setup() + @property + def hostmask(self): + """str: the current ho...
ESMCI__cime-2508
settings from env_test are not being reapplied to tests It seems that some recent change causes the settings from env_test.xml not to be applied when a test is resubmitted. This is supposed to be tested in scripts_regression_tests so a second question is - why is that test not failing?
[ { "content": "#!/usr/bin/env python\n\n\"\"\"\ncase.submit - Submit a cesm workflow to the queueing system or run it\nif there is no queueing system. A cesm workflow may include multiple\njobs.\nsubmit, check_case and check_da_settings are members of class Case in file case.py\n\"\"\"\nimport socket\nfrom CIME...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"\ncase.submit - Submit a cesm workflow to the queueing system or run it\nif there is no queueing system. A cesm workflow may include multiple\njobs.\nsubmit, check_case and check_da_settings are members of class Case in file case.py\n\"\"\"\nimport socket\nfrom CIME...
diff --git a/scripts/lib/CIME/case/case_submit.py b/scripts/lib/CIME/case/case_submit.py index 2690091e9e7..a6ccde3cc9b 100644 --- a/scripts/lib/CIME/case/case_submit.py +++ b/scripts/lib/CIME/case/case_submit.py @@ -20,9 +20,10 @@ def _submit(case, job=None, no_batch=False, prereq=None, resubmit=False, job = ...
openstates__openstates-scrapers-2919
TN failing since at least 2019-03-14 TN has been failing since 2019-03-14 Based on automated runs it appears that TN has not run successfully in 2 days (2019-03-14). ``` 06:05:11 ERROR pupa: cannot resolve pseudo id to Person: ~{"name": "Smith"} 06:05:12 ERROR pupa: cannot resolve pseudo id to Person: ~{"name": "L...
[ { "content": "import datetime\nimport lxml.html\nimport re\nfrom collections import namedtuple\n\nfrom pupa.scrape import (\n Bill,\n Scraper,\n VoteEvent,\n)\n\n\nclass Rule(namedtuple('Rule', 'regex types stop attrs')):\n '''If ``regex`` matches the action text, the resulting action's\n types s...
[ { "content": "import datetime\nimport lxml.html\nimport re\nfrom collections import namedtuple\n\nfrom pupa.scrape import (\n Bill,\n Scraper,\n VoteEvent,\n)\n\n\nclass Rule(namedtuple('Rule', 'regex types stop attrs')):\n '''If ``regex`` matches the action text, the resulting action's\n types s...
diff --git a/openstates/tn/bills.py b/openstates/tn/bills.py index f63c928018..5c86ae63fb 100644 --- a/openstates/tn/bills.py +++ b/openstates/tn/bills.py @@ -285,10 +285,10 @@ def scrape_chamber(self, chamber, session): bill_list_page = lxml.html.fromstring(bill_list_page) bill_list_page.make...
conan-io__conan-center-index-22763
[question] Using redis-plus-plus with TLS/SSL on ### What is your question? Hi, I'm having difficulty using Conan to include a version of redis-plus-plus built with TLS enabled in my project. It seems like redis-plus-plus's conan recipe has a `with_tls` option that should enable the support. However, this depends on h...
[ { "content": "from conan import ConanFile\nfrom conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout\nfrom conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir, rm\nfrom conan.tools.scm import Version\nfrom conan.tools.microsoft import is_msvc\nimport o...
[ { "content": "from conan import ConanFile\nfrom conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout\nfrom conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir, rm\nfrom conan.tools.scm import Version\nfrom conan.tools.microsoft import is_msvc\nimport o...
diff --git a/recipes/hiredis/all/conanfile.py b/recipes/hiredis/all/conanfile.py index 4973e6b1da136..f81b8f52adbcd 100644 --- a/recipes/hiredis/all/conanfile.py +++ b/recipes/hiredis/all/conanfile.py @@ -56,9 +56,9 @@ def generate(self): # Since 1.2.0, BUILD_SHARED_LIBS has been defined by option() i...
searx__searx-1665
Timeout limit breaks moving between pages Timeout limits introduced on https://github.com/asciimoo/searx/commit/72029d27ded8d93ab891c616d6bffbe8d3a67dd2 cause pressing "next page" button to cause in a search error. Returning back to commit 2179079a9173b33b81e1084fc1e8e181c19ef8e9 fixes this problem. ![](https://e...
[ { "content": "'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed in the hope that it will b...
[ { "content": "'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed in the hope that it will b...
diff --git a/searx/search.py b/searx/search.py index a2c1c85f23..9c7142c74e 100644 --- a/searx/search.py +++ b/searx/search.py @@ -279,10 +279,13 @@ def get_search_query_from_webapp(preferences, form): query_timeout = raw_text_query.timeout_limit if query_timeout is None and 'timeout_limit' in form: ...
ansible-collections__community.general-7612
Updating network interface method ignores specified address family ### Summary I am trying to update the _method_ of a network interface in `/etc/network/interfaces` while specifying `address_family`, using the `community.general.interfaces_file` module. It seems that the interfaces are not properly filtered by a...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# Copyright (c) 2016, Roman Belyakovsky <ihryamzik () gmail.com>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# Copyright (c) 2016, Roman Belyakovsky <ihryamzik () gmail.com>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import...
diff --git a/changelogs/fragments/7612-interface_file-method.yml b/changelogs/fragments/7612-interface_file-method.yml new file mode 100644 index 00000000000..38fcb715039 --- /dev/null +++ b/changelogs/fragments/7612-interface_file-method.yml @@ -0,0 +1,2 @@ +bugfixes: + - "interface_files - also consider ``address_fa...
fossasia__open-event-server-4403
Verify Email endpoint doesn’t work. **I'm submitting a ...** (check one with "x") - [X] bug report - [ ] feature request - [ ] support request => Please do not submit support requests here, instead ask your query in out Gitter channel at https://gitter.im/fossasia/open-event-orga-server There are two specific e...
[ { "content": "import base64\nfrom flask import request, jsonify, abort, make_response, Blueprint\nfrom flask_jwt import current_identity as current_user, jwt_required\nfrom sqlalchemy.orm.exc import NoResultFound\n\nfrom app import get_settings\nfrom app.api.helpers.db import save_to_db\nfrom app.api.helpers.fi...
[ { "content": "import base64\nfrom flask import request, jsonify, abort, make_response, Blueprint\nfrom flask_jwt import current_identity as current_user, jwt_required\nfrom sqlalchemy.orm.exc import NoResultFound\n\nfrom app import get_settings\nfrom app.api.helpers.db import save_to_db\nfrom app.api.helpers.fi...
diff --git a/app/api/auth.py b/app/api/auth.py index a7054ccf47..51b8f2b020 100644 --- a/app/api/auth.py +++ b/app/api/auth.py @@ -35,6 +35,8 @@ def verify_email(): ) else: user.is_verified = True + save_to_db(user) + return make_response(jsonify(message="Email Verified"), 200) ...
dotkom__onlineweb4-986
Committee positions is not sorted alphabetically Appkom should be above arrKom, not on the bottom of the list. Should be as simple as editing `apps/authentication/models.py`
[ { "content": "# -*- coding: utf-8 -*-\n\nimport datetime\nimport socket\nimport urllib\nimport hashlib\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AbstractUser\nfrom django.db import models\nfrom django.utils.translation import ugettext as _\nfrom django.utils import timezone\nfr...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport datetime\nimport socket\nimport urllib\nimport hashlib\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AbstractUser\nfrom django.db import models\nfrom django.utils.translation import ugettext as _\nfrom django.utils import timezone\nfr...
diff --git a/apps/authentication/models.py b/apps/authentication/models.py index fc66824ad..0bcf58ac3 100644 --- a/apps/authentication/models.py +++ b/apps/authentication/models.py @@ -40,6 +40,7 @@ COMMITTEES = [ ('hs', _(u'Hovedstyret')), + ('appkom', _(u'Applikasjonskomiteen')), ('arrkom', _(u'Arrang...
Qiskit__qiskit-8099
marginal_counts is broken for pulse results <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.18.0 - **Python version**: 3.9 - **Operating system**: OSx ### What is the current...
[ { "content": "# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2017, 2018.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.\n#\n...
[ { "content": "# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2017, 2018.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.\n#\n...
diff --git a/qiskit/result/utils.py b/qiskit/result/utils.py index c26a5fec42a2..d518db6f90a3 100644 --- a/qiskit/result/utils.py +++ b/qiskit/result/utils.py @@ -75,8 +75,9 @@ def marginal_counts( if indices is not None: experiment_result.header.memory_slots = len(indices) - ...
ethereum__web3.py-2320
dependency conflict with py-evm 0.5* series * Version: 0.5.26 * Python: 3.10 * OS: linux ### What was wrong? Current web3.py not compatible with py-evm `0.5*`. Below are the relevant lines from `pip install` output: ``` The conflict is caused by: py-evm 0.5.0a2 depends on eth-utils<3.0.0 and >=2.0.0 ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom setuptools import (\n find_packages,\n setup,\n)\n\nextras_require = {\n 'tester': [\n \"eth-tester[py-evm]==v0.6.0-beta.4\",\n \"py-geth>=3.7.0,<4\",\n ],\n 'linter': [\n \"flake8==3.8.3\",\n \"isort>=...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom setuptools import (\n find_packages,\n setup,\n)\n\nextras_require = {\n 'tester': [\n \"eth-tester[py-evm]==v0.6.0-beta.6\",\n \"py-geth>=3.7.0,<4\",\n ],\n 'linter': [\n \"flake8==3.8.3\",\n \"isort>=...
diff --git a/newsfragments/2320.feature.rst b/newsfragments/2320.feature.rst new file mode 100644 index 0000000000..35906a85d3 --- /dev/null +++ b/newsfragments/2320.feature.rst @@ -0,0 +1 @@ +Update eth-tester and eth-account dependencies to pull in bugfix from eth-keys diff --git a/setup.py b/setup.py index 4641f372a...
feast-dev__feast-456
Deduplicate example notebooks Currently we have two sets of example notebooks for Feast 1. [Examples](https://github.com/gojek/feast/tree/master/examples/basic) 2. [Docker compose](https://github.com/gojek/feast/tree/master/infra/docker-compose/jupyter/notebooks) The docker compose notebooks can be deduplicated so...
[ { "content": "# Copyright 2019 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
[ { "content": "# Copyright 2019 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
diff --git a/examples/basic/basic.ipynb b/examples/basic/basic.ipynb index 49658b42357..94fc82f2ce9 100644 --- a/examples/basic/basic.ipynb +++ b/examples/basic/basic.ipynb @@ -15,15 +15,15 @@ "1. Create a synthetic customer feature dataset\n", "2. Register a feature set to represent these features in Feast\n...
mars-project__mars-82
By default use core number as n_parallel for threaded scheduling Use core number as `n_parallel` for threaded scheduling, currently 1 thread by default.
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright 1999-2018 Alibaba Group Holding Ltd.\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://...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright 1999-2018 Alibaba Group Holding Ltd.\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://...
diff --git a/mars/session.py b/mars/session.py index 2fe32510bc..ccec4d0917 100644 --- a/mars/session.py +++ b/mars/session.py @@ -16,6 +16,11 @@ import numpy as np +try: + from .resource import cpu_count +except ImportError: + from multiprocessing import cpu_count + class LocalSession(object): def _...
Cloud-CV__EvalAI-1196
Change the message on Challenge Creation Currently, the error message on missing test annotation file for a phase shows the following error: <img width="1440" alt="screen shot 2017-08-17 at 4 55 26 pm" src="https://user-images.githubusercontent.com/2945708/29433427-107e80a8-836d-11e7-9511-d98fc2e11c1c.png"> We want...
[ { "content": "import csv\nimport logging\nimport random\nimport requests\nimport shutil\nimport string\nimport tempfile\nimport yaml\nimport zipfile\n\nfrom os.path import basename, isfile, join\n\nfrom django.core.files.base import ContentFile\nfrom django.db import transaction\nfrom django.http import HttpRes...
[ { "content": "import csv\nimport logging\nimport random\nimport requests\nimport shutil\nimport string\nimport tempfile\nimport yaml\nimport zipfile\n\nfrom os.path import basename, isfile, join\n\nfrom django.core.files.base import ContentFile\nfrom django.db import transaction\nfrom django.http import HttpRes...
diff --git a/apps/challenges/views.py b/apps/challenges/views.py index 52a56cf109..3070457a46 100644 --- a/apps/challenges/views.py +++ b/apps/challenges/views.py @@ -498,8 +498,8 @@ def create_challenge_using_zip_file(request, challenge_host_team_pk): if not isfile(test_annotation_file_path): res...
fossasia__open-event-server-2178
Celery based tasks not working This is because someone commented the code where task was being registered. So sending email, import and export are all non-functional. ``` import api.helpers.tasks import helpers.tasks ``` I will send a PR with the fix and write some comments so that this doesn't happen again.
[ { "content": "\"\"\"Copyright 2015 Rafal Kowalski\"\"\"\n\n# Ignore ExtDeprecationWarnings for Flask 0.11 - see http://stackoverflow.com/a/38080580\nimport warnings\n\nfrom flask.exthook import ExtDeprecationWarning\nfrom forex_python.converter import CurrencyCodes\nfrom pytz import utc\nwarnings.simplefilter('...
[ { "content": "\"\"\"Copyright 2015 Rafal Kowalski\"\"\"\n\n# Ignore ExtDeprecationWarnings for Flask 0.11 - see http://stackoverflow.com/a/38080580\nimport warnings\n\nfrom flask.exthook import ExtDeprecationWarning\nfrom forex_python.converter import CurrencyCodes\nfrom pytz import utc\nwarnings.simplefilter('...
diff --git a/app/__init__.py b/app/__init__.py index 8a3d976a35..39a9487971 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -324,14 +324,17 @@ def update_sent_state(sender=None, body=None, **kwargs): backend.store_result(body['id'], None, 'WAITING') -# import api.helpers.tasks -# import helpers.tasks +# ...
mindee__doctr-219
Demo app error when analyzing my first document ## 🐛 Bug I tried to analyze a PNG and a PDF, got the same error. I try to change the model, didn't change anything. ## To Reproduce Steps to reproduce the behavior: 1. Upload a PNG 2. Click on analyze document <!-- If you have a code sample, error messa...
[ { "content": "# Copyright (C) 2021, Mindee.\n\n# This program is licensed under the Apache License version 2.\n# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.\n\nimport os\nimport streamlit as st\nimport matplotlib.pyplot as plt\n\nos.environ[\"TF_CPP_MIN_LOG_L...
[ { "content": "# Copyright (C) 2021, Mindee.\n\n# This program is licensed under the Apache License version 2.\n# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.\n\nimport os\nimport streamlit as st\nimport matplotlib.pyplot as plt\n\nos.environ[\"TF_CPP_MIN_LOG_L...
diff --git a/demo/app.py b/demo/app.py index 0665369447..28f98a3d39 100644 --- a/demo/app.py +++ b/demo/app.py @@ -74,7 +74,8 @@ def main(): # Forward the image to the model processed_batches = predictor.det_predictor.pre_processor(doc) - seg_map = predictor.det_predic...
python__mypy-12857
tests failing on master (macOS Monterey / py 3.7) **Bug Report** Tests are failing for the master branch on my macOS laptop. A few tests in `PEP561Suite` are flaky for reasons I don't quite understand. **To Reproduce** ``` git pull git checkout f501cf649d7976077a7196e3548d773d67340a8c python3.7 -m venv ...
[ { "content": "#!/usr/bin/env python3\nimport subprocess\nfrom subprocess import Popen\nfrom sys import argv, exit, executable\n\n# Slow test suites\nCMDLINE = 'PythonCmdline'\nSAMPLES = 'SamplesSuite'\nTYPESHED = 'TypeshedSuite'\nPEP561 = 'PEP561Suite'\nEVALUATION = 'PythonEvaluation'\nDAEMON = 'testdaemon'\nST...
[ { "content": "#!/usr/bin/env python3\nimport subprocess\nfrom subprocess import Popen\nfrom sys import argv, exit, executable\n\n# Slow test suites\nCMDLINE = 'PythonCmdline'\nSAMPLES = 'SamplesSuite'\nTYPESHED = 'TypeshedSuite'\nPEP561 = 'PEP561Suite'\nEVALUATION = 'PythonEvaluation'\nDAEMON = 'testdaemon'\nST...
diff --git a/.gitignore b/.gitignore index 3c0f60cfae4f..b2306b96036f 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ venv/ .mypy_cache/ .incremental_checker_cache.json .cache +test-data/packages/.pip_lock dmypy.json .dmypy.json diff --git a/mypy/test/config.py b/mypy/test/config.py index d76eadd72ed8...
ManageIQ__integration_tests-3172
-m provider_related no longer works We added the internally generated mark provider_related to be used in conjunction with --use-provider <provider> so we could only run tests that are specific to the provider. Without it, the test collected would be anything non-parameterized through testgen, like general ui tests, a...
[ { "content": "\"\"\"Test generation helpers\n\nIntended to functionalize common tasks when working with the pytest_generate_tests hook.\n\nWhen running a test, it is quite often the case that multiple parameters need to be passed\nto a single test. An example of this would be the need to run a Provider Add test...
[ { "content": "\"\"\"Test generation helpers\n\nIntended to functionalize common tasks when working with the pytest_generate_tests hook.\n\nWhen running a test, it is quite often the case that multiple parameters need to be passed\nto a single test. An example of this would be the need to run a Provider Add test...
diff --git a/utils/testgen.py b/utils/testgen.py index b15f678b2a..ee378057e3 100644 --- a/utils/testgen.py +++ b/utils/testgen.py @@ -331,8 +331,6 @@ def pytest_generate_tests(metafunc): """ - metafunc.function = pytest.mark.uses_testgen()(metafunc.function) - argnames = [] argvalues = [] id...
cobbler__cobbler-3239
[Backport] `cobbler buildiso` fails when a system is based on an image ### Original feature issue - Issue: #3236 - PR: #3237 ### Target release - [x] release33 - [ ] release32 - [ ] release30 ### Reason Stabilization of Cobbler 3.3.3 for Uyuni and SUSE Manager.
[ { "content": "\"\"\"\nThis module contains the specific code to generate a network bootable ISO.\n\"\"\"\n\n# SPDX-License-Identifier: GPL-2.0-or-later\n\nimport os\nimport re\nfrom typing import List\n\nfrom cobbler import utils\nfrom cobbler.actions import buildiso\n\n\nclass AppendLineBuilder:\n \"\"\"\n ...
[ { "content": "\"\"\"\nThis module contains the specific code to generate a network bootable ISO.\n\"\"\"\n\n# SPDX-License-Identifier: GPL-2.0-or-later\n\nimport os\nimport re\nfrom typing import List\n\nfrom cobbler import utils\nfrom cobbler.actions import buildiso\n\n\nclass AppendLineBuilder:\n \"\"\"\n ...
diff --git a/cobbler/actions/buildiso/netboot.py b/cobbler/actions/buildiso/netboot.py index 87cf1a49b0..ef301df1cc 100644 --- a/cobbler/actions/buildiso/netboot.py +++ b/cobbler/actions/buildiso/netboot.py @@ -431,7 +431,15 @@ def filter_systems(self, selected_items: List[str] = None) -> list: """ if...
python-pillow__Pillow-669
Document saving LZW-compressed TIFF files This [works](http://stackoverflow.com/a/23612127/1389680), but it is missing [in the docs](http://pillow.readthedocs.org/en/latest/handbook/image-file-formats.html#saving-tiff-images).
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# TIFF file handling\n#\n# TIFF is a flexible, if somewhat aged, image file format originally\n# defined by Aldus. Although TIFF supports a wide variety of pixel\n# layouts and compression methods, the name doesn't really stand for\n# \"thousands of in...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# TIFF file handling\n#\n# TIFF is a flexible, if somewhat aged, image file format originally\n# defined by Aldus. Although TIFF supports a wide variety of pixel\n# layouts and compression methods, the name doesn't really stand for\n# \"thousands of in...
diff --git a/PIL/TiffImagePlugin.py b/PIL/TiffImagePlugin.py index fe658d22c2a..11b92747c6c 100644 --- a/PIL/TiffImagePlugin.py +++ b/PIL/TiffImagePlugin.py @@ -984,11 +984,7 @@ def _save(im, fp, filename): compression = im.encoderinfo.get('compression',im.info.get('compression','raw')) - libtiff = WRITE_LI...
aws__aws-cli-429
VIMPAGER error I realize that it is a bit of an aside, but it would be great to support alternative pagers. ``` ~ $ echo $MANPAGER /bin/sh -c "col -bx | vim -c 'set ft=man' -" ~ $ python --version 1 Pytho...
[ { "content": "# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2....
[ { "content": "# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2....
diff --git a/awscli/help.py b/awscli/help.py index 6ba1bf1db480..f0738e35bb2f 100644 --- a/awscli/help.py +++ b/awscli/help.py @@ -14,6 +14,7 @@ import logging import os import platform +import shlex from subprocess import Popen, PIPE from docutils.core import publish_string @@ -79,7 +80,7 @@ def get_pager_cmdli...
inventree__InvenTree-3547
Django not available on startup @matmair bad news. This has broken *stuff*.. https://github.com/inventree/InvenTree/runs/7837878419?check_suite_focus=true Basically, the `invoke` script makes use of this file and must run *before* django is installed. Classic chicken and egg. I think we might have to revert th...
[ { "content": "\"\"\"Helper functions for loading InvenTree configuration options.\"\"\"\n\nimport logging\nimport os\nimport random\nimport shutil\nimport string\nfrom pathlib import Path\n\nfrom django.contrib.staticfiles.storage import StaticFilesStorage\nfrom django.core.files.storage import default_storage\...
[ { "content": "\"\"\"Helper functions for loading InvenTree configuration options.\"\"\"\n\nimport logging\nimport os\nimport random\nimport shutil\nimport string\nfrom pathlib import Path\n\nimport yaml\n\nlogger = logging.getLogger('inventree')\n\n\ndef is_true(x):\n \"\"\"Shortcut function to determine if ...
diff --git a/InvenTree/InvenTree/config.py b/InvenTree/InvenTree/config.py index 03e0b8c036b9..7ce162bdffd4 100644 --- a/InvenTree/InvenTree/config.py +++ b/InvenTree/InvenTree/config.py @@ -7,9 +7,6 @@ import string from pathlib import Path -from django.contrib.staticfiles.storage import StaticFilesStorage -from d...
cobbler__cobbler-3237
`cobbler buildiso` fails when a system is based on an image ### Describe the bug When executing `cobbler buildiso --systems="example"` the ISO is not built successfully. ### Steps to reproduce 1. Add an image to Cobbler 2. Add a system with the previously added image as a parent 3. Run `cobbler buildiso ...`...
[ { "content": "\"\"\"\nThis module contains the specific code to generate a network bootable ISO.\n\"\"\"\n\n# SPDX-License-Identifier: GPL-2.0-or-later\n\nimport os\nimport re\nfrom typing import List\n\nfrom cobbler import utils\nfrom cobbler.utils import input_converters\nfrom cobbler.actions import buildiso\...
[ { "content": "\"\"\"\nThis module contains the specific code to generate a network bootable ISO.\n\"\"\"\n\n# SPDX-License-Identifier: GPL-2.0-or-later\n\nimport os\nimport re\nfrom typing import List\n\nfrom cobbler import utils\nfrom cobbler.utils import input_converters\nfrom cobbler.actions import buildiso\...
diff --git a/cobbler/actions/buildiso/netboot.py b/cobbler/actions/buildiso/netboot.py index 1819260daf..c3777ab48d 100644 --- a/cobbler/actions/buildiso/netboot.py +++ b/cobbler/actions/buildiso/netboot.py @@ -431,7 +431,15 @@ def filter_systems(self, selected_items: List[str] = None) -> list: """ if...
opsdroid__opsdroid-887
Matrix Connector should not log HTML page contents on a 504 If the matrix server responds with a 504 error on `/sync` (which is pretty common) the connector should not log the whole HTML page, as it clutters the log. This is *especially* true on a matrix.org account as you get a whole cloudflare error page. Matrix C...
[ { "content": "\"\"\"Connector for Matrix (https://matrix.org).\"\"\"\n\nimport re\nimport logging\nfrom concurrent.futures import CancelledError\n\nimport aiohttp\n\nfrom matrix_api_async.api_asyncio import AsyncHTTPAPI\nfrom matrix_client.errors import MatrixRequestError\n\nfrom opsdroid.connector import Conne...
[ { "content": "\"\"\"Connector for Matrix (https://matrix.org).\"\"\"\n\nimport re\nimport logging\nfrom concurrent.futures import CancelledError\n\nimport aiohttp\n\nfrom matrix_api_async.api_asyncio import AsyncHTTPAPI\nfrom matrix_client.errors import MatrixRequestError\n\nfrom opsdroid.connector import Conne...
diff --git a/opsdroid/connector/matrix/connector.py b/opsdroid/connector/matrix/connector.py index 86afa7848..0d54ce70f 100644 --- a/opsdroid/connector/matrix/connector.py +++ b/opsdroid/connector/matrix/connector.py @@ -142,6 +142,14 @@ async def listen(self): # pragma: no cover message = await self....
Pylons__pyramid-3698
Remove possibly obsolete Python 3.5 code? While sniffing around for `action_method` for https://github.com/Pylons/pyramid/pull/3696, I stumbled across a potentially obsolete check for Python 3.5.0. https://github.com/Pylons/pyramid/blob/6966401de04be64906f40e6fc6a2cf138cb7d3ca/src/pyramid/config/actions.py#L561-L567...
[ { "content": "import functools\nimport itertools\nimport operator\nimport sys\nimport traceback\nfrom zope.interface import implementer\n\nfrom pyramid.exceptions import (\n ConfigurationConflictError,\n ConfigurationError,\n ConfigurationExecutionError,\n)\nfrom pyramid.interfaces import IActionInfo\n...
[ { "content": "import functools\nimport itertools\nimport operator\nimport sys\nimport traceback\nfrom zope.interface import implementer\n\nfrom pyramid.exceptions import (\n ConfigurationConflictError,\n ConfigurationError,\n ConfigurationExecutionError,\n)\nfrom pyramid.interfaces import IActionInfo\n...
diff --git a/src/pyramid/config/actions.py b/src/pyramid/config/actions.py index c3554ced8..d80f840ac 100644 --- a/src/pyramid/config/actions.py +++ b/src/pyramid/config/actions.py @@ -557,13 +557,6 @@ def wrapper(self, *arg, **kw): if info is None: try: f = traceback.extract_stac...
cobbler__cobbler-3598
[Backport] [scm-track] Fix commit command ### Original feature issue - PR: #3021 ### Target release - [x] release33 - [ ] release32 - [ ] release30 ### Reason Stabilizations of Cobbler 3.3.4
[ { "content": "\"\"\"\n(C) 2009, Red Hat Inc.\nMichael DeHaan <michael.dehaan AT gmail>\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option...
[ { "content": "\"\"\"\n(C) 2009, Red Hat Inc.\nMichael DeHaan <michael.dehaan AT gmail>\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option...
diff --git a/changelog.d/3591.fixed b/changelog.d/3591.fixed new file mode 100644 index 0000000000..e69de29bb2 diff --git a/cobbler/modules/scm_track.py b/cobbler/modules/scm_track.py index d5b1618d53..2ac07fbca7 100644 --- a/cobbler/modules/scm_track.py +++ b/cobbler/modules/scm_track.py @@ -67,7 +67,7 @@ def run(api,...
svthalia__concrexit-1917
make fixtures crashes on payment fixtures ### Describe the bug Creating fixtures crashes on creating payment fixtures: ```bash $ make fixtures ... Creating a payment Traceback (most recent call last): File "/home/joren/projects/concrexit/website/manage.py", line 19, in <module> execute_from_command_line...
[ { "content": "\"\"\"Provides the command to generate fixtures.\"\"\"\n\n# pylint: disable=too-many-statements,too-many-branches\nimport math\nimport random\nimport string\nfrom datetime import date, timedelta, datetime\n\nfrom django.contrib.auth import get_user_model\nfrom django.core.files.base import Content...
[ { "content": "\"\"\"Provides the command to generate fixtures.\"\"\"\n\n# pylint: disable=too-many-statements,too-many-branches\nimport math\nimport random\nimport string\nfrom datetime import date, timedelta, datetime\n\nfrom django.contrib.auth import get_user_model\nfrom django.core.files.base import Content...
diff --git a/website/utils/management/commands/createfixtures.py b/website/utils/management/commands/createfixtures.py index 51aa10cc5..90e770cd4 100644 --- a/website/utils/management/commands/createfixtures.py +++ b/website/utils/management/commands/createfixtures.py @@ -557,10 +557,17 @@ def create_payment(self): ...
networkx__networkx-1977
Can't verify if minimum_st_node_cut actually works correctly or not Hi. I've been trying to determine the affect capacity has on cuts in a DiGraph playing with different graph shapes and capacity values. Maybe I'm completely off base, but I've scoured the Internet for small graph min cut samples (from university course...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nFlow based cut algorithms\n\"\"\"\nimport itertools\nimport networkx as nx\n\n# Define the default maximum flow function to use in all flow based\n# cut algorithms.\nfrom networkx.algorithms.flow import edmonds_karp, shortest_augmenting_path\nfrom networkx.algorith...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nFlow based cut algorithms\n\"\"\"\nimport itertools\nimport networkx as nx\n\n# Define the default maximum flow function to use in all flow based\n# cut algorithms.\nfrom networkx.algorithms.flow import edmonds_karp, shortest_augmenting_path\nfrom networkx.algorith...
diff --git a/networkx/algorithms/connectivity/cuts.py b/networkx/algorithms/connectivity/cuts.py index 31ab3012ecc..fad873c1491 100644 --- a/networkx/algorithms/connectivity/cuts.py +++ b/networkx/algorithms/connectivity/cuts.py @@ -28,14 +28,12 @@ def minimum_st_edge_cut(G, s, t, flow_func=None, auxiliary=None, ...
lk-geimfari__mimesis-664
Locale not respected for business.currency_iso_code() # Bug report ## What's wrong I'm trying to use mimesis to generate mock data for tests I'm going to develop and am writing [schema](https://mimesis.readthedocs.io/getting_started.html#schema-and-fields) to do so. I set the locale when instantiating an objec...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"Business data provider.\"\"\"\n\nfrom mimesis.data import (\n CRYPTOCURRENCY_ISO_CODES,\n CRYPTOCURRENCY_SYMBOLS,\n CURRENCY_ISO_CODES,\n CURRENCY_SYMBOLS,\n)\nfrom mimesis.providers.base import BaseDataProvider\n\n__all__ = ['Business']\n\n\nclass Busi...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"Business data provider.\"\"\"\n\nfrom mimesis.data import (\n CRYPTOCURRENCY_ISO_CODES,\n CRYPTOCURRENCY_SYMBOLS,\n CURRENCY_ISO_CODES,\n CURRENCY_SYMBOLS,\n)\nfrom mimesis.providers.base import BaseDataProvider\n\n__all__ = ['Business']\n\n\nclass Busi...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8d480830e..05c7cd568 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,6 +11,7 @@ Version 3.2.0 **Fixed**: - Support of seed for custom providers +- ``currency_iso_code`` from the ``Business()`` provider now by default returns the currency code of the current loc...
AUTOMATIC1111__stable-diffusion-webui-1261
Checkpoint Merger - FileNotFoundError: [Errno 2] No such file or directory: When using custom model folder: COMMANDLINE_ARGS=--ckpt-dir "d:\external\models\" the checkpoint merger can't find the models FileNotFoundError: [Errno 2] No such file or directory: 'models/wd-v1-2-full-ema.ckpt' **To Reproduce** Steps t...
[ { "content": "import base64\r\nimport html\r\nimport io\r\nimport json\r\nimport math\r\nimport mimetypes\r\nimport os\r\nimport random\r\nimport sys\r\nimport time\r\nimport traceback\r\n\r\nimport numpy as np\r\nimport torch\r\nfrom PIL import Image, PngImagePlugin\r\n\r\nimport gradio as gr\r\nimport gradio....
[ { "content": "import base64\r\nimport html\r\nimport io\r\nimport json\r\nimport math\r\nimport mimetypes\r\nimport os\r\nimport random\r\nimport sys\r\nimport time\r\nimport traceback\r\n\r\nimport numpy as np\r\nimport torch\r\nfrom PIL import Image, PngImagePlugin\r\n\r\nimport gradio as gr\r\nimport gradio....
diff --git a/.gitignore b/.gitignore index 69ea78c566e..b71e18759a8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ __pycache__ /venv /tmp /model.ckpt -/models/*.ckpt +/models/**/*.ckpt /GFPGANv1.3.pth /gfpgan/weights/*.pth /ui-config.json diff --git a/modules/ui.py b/modules/ui.py index d51f7a08995..db9...
dotkom__onlineweb4-1217
Field of Study text labels are out of date Needs update to reflect the name changes
[ { "content": "# -*- coding: utf-8 -*-\n\nimport datetime\nimport socket\nimport urllib\nimport hashlib\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AbstractUser, Group\nfrom django.db import models\nfrom django.utils.translation import ugettext as _\nfrom django.utils import timez...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport datetime\nimport socket\nimport urllib\nimport hashlib\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AbstractUser, Group\nfrom django.db import models\nfrom django.utils.translation import ugettext as _\nfrom django.utils import timez...
diff --git a/apps/authentication/models.py b/apps/authentication/models.py index efa3c7fe1..adaf2398e 100644 --- a/apps/authentication/models.py +++ b/apps/authentication/models.py @@ -21,11 +21,11 @@ (0, _(u'Gjest')), (1, _(u'Bachelor i Informatikk (BIT)')), # master degrees take up the interval [10,30]...
OCA__server-tools-37
[Bug] mass_editing - Search in ir.model.fields not working I setup the mass_editing for res.partner then i go to: Settings -> Technical -> Database Structure -> Fields and go to the Filter with ('model_id','=',61) where 61 is the id of res.partner in res.model. By typ "res.partner" and select "Partner" from the suggest...
[ { "content": "# -*- coding: utf-8 -*-\n##############################################################################\n#\n# This module uses OpenERP, Open Source Management Solution Framework.\n# Copyright (C):\n# 2012-Today Serpent Consulting Services (<http://www.serpentcs.com>)\n#\n# This pro...
[ { "content": "# -*- coding: utf-8 -*-\n##############################################################################\n#\n# This module uses OpenERP, Open Source Management Solution Framework.\n# Copyright (C):\n# 2012-Today Serpent Consulting Services (<http://www.serpentcs.com>)\n#\n# This pro...
diff --git a/mass_editing/mass_editing.py b/mass_editing/mass_editing.py index 9f7245743ae..7bc16e3439a 100644 --- a/mass_editing/mass_editing.py +++ b/mass_editing/mass_editing.py @@ -32,10 +32,11 @@ def search( count=False): model_domain = [] for domain in args: - if domain[0...
DataDog__integrations-extras-1550
Add support for filebeat version 7.x **Docker image:** custom docker image based on `datadog/agent:7.28.0` with this added to the `Dockerfile` `RUN agent integration install -r -t datadog-filebeat==1.0.0` Since filebeat version `7.x`, the registry file is moved to [directory format][0]. Therefore, the current confi...
[ { "content": "# (C) Datadog, Inc. 2010-2016\n# All rights reserved\n# Licensed under Simplified BSD License (see LICENSE)\n\n# stdlib\nimport errno\nimport json\nimport os\nimport re\nimport sre_constants\n\nimport six\nfrom six import iteritems\n\nfrom datadog_checks.base import AgentCheck, is_affirmative\nfro...
[ { "content": "# (C) Datadog, Inc. 2010-2016\n# All rights reserved\n# Licensed under Simplified BSD License (see LICENSE)\n\n# stdlib\nimport errno\nimport json\nimport os\nimport re\nimport sre_constants\n\nimport six\nfrom six import iteritems\n\nfrom datadog_checks.base import AgentCheck, is_affirmative\nfro...
diff --git a/filebeat/datadog_checks/filebeat/data/conf.yaml.example b/filebeat/datadog_checks/filebeat/data/conf.yaml.example index dd335fbc22..234e5a7f5f 100644 --- a/filebeat/datadog_checks/filebeat/data/conf.yaml.example +++ b/filebeat/datadog_checks/filebeat/data/conf.yaml.example @@ -270,6 +270,12 @@ instances: ...
wright-group__WrightTools-534
remove_nans_1D fails for list ``` >>> wt.kit.remove_nans_1D([np.nan, 1, 2, 2]) Traceback (most recent call last): File "<input>", line 1, in <module> wt.kit.remove_nans_1D([np.nan, 1, 2, 2]) File "/home/kyle/wright/WrightTools/WrightTools/kit/_array.py", line 223, in rem ove_nans_1D return tuple(a[go...
[ { "content": "\"\"\"Array interaction tools.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport numpy as np\n\nfrom .. import exceptions as wt_exceptions\n\n\n# --- define --------------------------------------------------------------------...
[ { "content": "\"\"\"Array interaction tools.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport numpy as np\n\nfrom .. import exceptions as wt_exceptions\n\n\n# --- define --------------------------------------------------------------------...
diff --git a/WrightTools/kit/_array.py b/WrightTools/kit/_array.py index 66cfb1151..16136f178 100644 --- a/WrightTools/kit/_array.py +++ b/WrightTools/kit/_array.py @@ -210,17 +210,10 @@ def remove_nans_1D(*args): tuple Tuple of 1D arrays in same order as given, with nan indicies removed. """ - # ...
archlinux__archinstall-1679
Exit code of `SysCommand()` is exit status indication The `exit_code` of a `SysCommand()` call is not an exit code but an exit status indication. [1] An exit status indication is "a 16-bit number, whose low byte is the signal number that killed the process, and whose high byte is the exit status (if the signal number i...
[ { "content": "from __future__ import annotations\nimport hashlib\nimport json\nimport logging\nimport os\nimport secrets\nimport shlex\nimport subprocess\nimport stat\nimport string\nimport sys\nimport time\nimport re\nimport urllib.parse\nimport urllib.request\nimport urllib.error\nimport pathlib\nfrom datetim...
[ { "content": "from __future__ import annotations\nimport hashlib\nimport json\nimport logging\nimport os\nimport secrets\nimport shlex\nimport subprocess\nimport stat\nimport string\nimport sys\nimport time\nimport re\nimport urllib.parse\nimport urllib.request\nimport urllib.error\nimport pathlib\nfrom datetim...
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index 5fd655a262..79693dcb80 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -355,10 +355,12 @@ def poll(self) -> None: if self.ended or (got_output is False and pid_exists(self.pid) is False): self.ended = time.ti...
goauthentik__authentik-4780
LDAP Writeback doesn't work with eDirectory **Describe the bug** POST /api/v3/flows/executor/default-password-change/ LDAP Change Password writeback not working with eDirectory, looks like it's hanging on the Check Active Directory pwdProperties. ** Possible Fix ** Perhaps one could check the Root DSE for vendorV...
[ { "content": "\"\"\"Help validate and update passwords in LDAP\"\"\"\nfrom enum import IntFlag\nfrom re import split\nfrom typing import Optional\n\nfrom ldap3 import BASE\nfrom ldap3.core.exceptions import LDAPAttributeError\nfrom structlog.stdlib import get_logger\n\nfrom authentik.core.models import User\nfr...
[ { "content": "\"\"\"Help validate and update passwords in LDAP\"\"\"\nfrom enum import IntFlag\nfrom re import split\nfrom typing import Optional\n\nfrom ldap3 import BASE\nfrom ldap3.core.exceptions import LDAPAttributeError\nfrom structlog.stdlib import get_logger\n\nfrom authentik.core.models import User\nfr...
diff --git a/authentik/sources/ldap/password.py b/authentik/sources/ldap/password.py index df210939eed0..42946abf3d46 100644 --- a/authentik/sources/ldap/password.py +++ b/authentik/sources/ldap/password.py @@ -71,10 +71,13 @@ def check_ad_password_complexity_enabled(self) -> bool: except (LDAPAttributeError, ...
librosa__librosa-1457
Update show_versions to match current dependencies **Describe the bug** Looks like we forgot to revise the list of modules checked by `show_versions()` in the 0.9.0 release. This isn't a major problem, but we should fix it for 0.9.2 and keep it as part of the release audit sequence going forward. In general, `sh...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Version info\"\"\"\n\nimport sys\nimport importlib\n\nshort_version = \"0.9\"\nversion = \"0.9.1\"\n\n\ndef __get_mod_version(modname):\n\n try:\n if modname in sys.modules:\n mod = sys.modules[modname]\n else:\n ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Version info\"\"\"\n\nimport sys\nimport importlib\n\nshort_version = \"0.9\"\nversion = \"0.9.1\"\n\n\ndef __get_mod_version(modname):\n\n try:\n if modname in sys.modules:\n mod = sys.modules[modname]\n else:\n ...
diff --git a/librosa/version.py b/librosa/version.py index fb09a40f11..af6486de8d 100644 --- a/librosa/version.py +++ b/librosa/version.py @@ -38,18 +38,26 @@ def show_versions(): "soundfile", "resampy", "numba", + "pooch", + "packaging" ] extra_deps = [ "nu...
fossasia__open-event-server-6858
Server crashing on order PATCH ``` KeyError: 'mytickets_url' (16 additional frame(s) were not displayed) ... File "flask_rest_jsonapi/decorators.py", line 56, in wrapper return func(*args, **kwargs) File "flask_rest_jsonapi/resource.py", line 310, in patch self._data_layer.update_object(obj, data, kw...
[ { "content": "\"\"\"\nAll the System mails\nRegister a mail here before using it\n\"\"\"\nfrom app.models.mail import (\n AFTER_EVENT,\n EVENT_EXPORT_FAIL,\n EVENT_EXPORTED,\n EVENT_IMPORT_FAIL,\n EVENT_IMPORTED,\n EVENT_PUBLISH,\n EVENT_ROLE,\n INVITE_PAPERS,\n MAIL_TO_EXPIRED_ORDERS...
[ { "content": "\"\"\"\nAll the System mails\nRegister a mail here before using it\n\"\"\"\nfrom app.models.mail import (\n AFTER_EVENT,\n EVENT_EXPORT_FAIL,\n EVENT_EXPORTED,\n EVENT_IMPORT_FAIL,\n EVENT_IMPORTED,\n EVENT_PUBLISH,\n EVENT_ROLE,\n INVITE_PAPERS,\n MAIL_TO_EXPIRED_ORDERS...
diff --git a/app/api/helpers/system_mails.py b/app/api/helpers/system_mails.py index 80788ada3c..5ddd320402 100644 --- a/app/api/helpers/system_mails.py +++ b/app/api/helpers/system_mails.py @@ -190,7 +190,7 @@ u"<br/>Your order has been processed successfully." + u"<br/> Your tickets & invoic...
mlflow__mlflow-1658
[MLflow 1.1] Loading models with mlflow.pyfunc.spark_udf broken on Databricks clusters ### System information - **Have I written custom code (as opposed to using a stock example script provided in MLflow)**: No - **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Ubuntu 16.04 - **MLflow installed from (sou...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nThe ``mlflow.pyfunc`` module defines a generic :ref:`filesystem format <pyfunc-filesystem-format>`\nfor Python models and provides utilities for saving to and loading from this format. The format is\nself contained in the sense that it includes all necessary info...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nThe ``mlflow.pyfunc`` module defines a generic :ref:`filesystem format <pyfunc-filesystem-format>`\nfor Python models and provides utilities for saving to and loading from this format. The format is\nself contained in the sense that it includes all necessary info...
diff --git a/mlflow/pyfunc/__init__.py b/mlflow/pyfunc/__init__.py index 58ba8d8bf9c88..52e4aeb124fab 100644 --- a/mlflow/pyfunc/__init__.py +++ b/mlflow/pyfunc/__init__.py @@ -414,8 +414,10 @@ def spark_udf(spark, model_uri, result_type="double"): "of the following types types: {}".format(str(elem...
encode__uvicorn-619
[QUESTION]How to specify application path when running uvicorn outside of the application directory. I thought there would be an option like `--chdir` in Gunicorn but I didn't find one on the documentation, at first I thought that's what `--root-path` option is used for, turns out I was wrong.
[ { "content": "import asyncio\nimport functools\nimport logging\nimport os\nimport platform\nimport signal\nimport socket\nimport ssl\nimport sys\nimport time\nimport typing\nfrom email.utils import formatdate\n\nimport click\n\nimport uvicorn\nfrom uvicorn.config import (\n HTTP_PROTOCOLS,\n INTERFACES,\n...
[ { "content": "import asyncio\nimport functools\nimport logging\nimport os\nimport platform\nimport signal\nimport socket\nimport ssl\nimport sys\nimport time\nimport typing\nfrom email.utils import formatdate\n\nimport click\n\nimport uvicorn\nfrom uvicorn.config import (\n HTTP_PROTOCOLS,\n INTERFACES,\n...
diff --git a/docs/deployment.md b/docs/deployment.md index d2e94b7ea..6ff8144f1 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -87,6 +87,9 @@ Options: [default: TLSv1] --header TEXT Specify custom default HTTP response headers ...
streamlink__streamlink-5616
plugins.hls: recognize URLs with uppercase ".M3U8" ### Checklist - [X] This is a bug report and not [a different kind of issue](https://github.com/streamlink/streamlink/issues/new/choose) - [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-t...
[ { "content": "import logging\nimport re\n\nfrom streamlink.plugin import Plugin, pluginmatcher\nfrom streamlink.plugin.plugin import LOW_PRIORITY, parse_params, stream_weight\nfrom streamlink.stream.dash import DASHStream\nfrom streamlink.utils.url import update_scheme\n\n\nlog = logging.getLogger(__name__)\n\n...
[ { "content": "import logging\nimport re\n\nfrom streamlink.plugin import Plugin, pluginmatcher\nfrom streamlink.plugin.plugin import LOW_PRIORITY, parse_params, stream_weight\nfrom streamlink.stream.dash import DASHStream\nfrom streamlink.utils.url import update_scheme\n\n\nlog = logging.getLogger(__name__)\n\n...
diff --git a/src/streamlink/plugins/dash.py b/src/streamlink/plugins/dash.py index aef9da22fb3..209ddb5d0f7 100644 --- a/src/streamlink/plugins/dash.py +++ b/src/streamlink/plugins/dash.py @@ -15,6 +15,7 @@ )) @pluginmatcher(priority=LOW_PRIORITY, pattern=re.compile( r"(?P<url>\S+\.mpd(?:\?\S*)?)(?:\s(?P<params>...
secdev__scapy-2556
plain_str not consistent between Py2 and Py3 **Python 2 (expected result)** ```python >>> plain_str(b'\x3e\xb4\xef\x2c\x11') '>\xb4\xef,\x11' ``` **Python 3 (unexpected result)** ```python >>> plain_str(b'\x3e\xb4\xef\x2c\x11') ...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# Copyright (C) Gabriel Potter <gabriel@potter.fr>\n# This program is published under a GPLv2 license\n\n\"\"\"\nPython 2 and 3 link classes.\n\"\"\"\n\...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# Copyright (C) Gabriel Potter <gabriel@potter.fr>\n# This program is published under a GPLv2 license\n\n\"\"\"\nPython 2 and 3 link classes.\n\"\"\"\n\...
diff --git a/scapy/compat.py b/scapy/compat.py index ffc73eacc78..f1c54a8c0ce 100644 --- a/scapy/compat.py +++ b/scapy/compat.py @@ -59,11 +59,19 @@ def bytes_encode(x): return x.encode() return bytes(x) - def plain_str(x): - """Convert basic byte objects to str""" - if isinstan...
googleapis__google-cloud-python-297
DISCUSSION: Should dataset ID be set on datastore key? This question came up in the review in #282 while trying to define the "correct" behavior of `datastore.Key.__eq__`. The only remaining use of `Key._dataset_id` is in [`to_protobuf`](https://github.com/GoogleCloudPlatform/gcloud-python/blob/b6d3e74a48e8554804ea3d3...
[ { "content": "\"\"\"Create / interact with gcloud datastore keys.\"\"\"\n\nimport copy\nfrom itertools import izip\n\nfrom gcloud.datastore import datastore_v1_pb2 as datastore_pb\n\n\nclass Key(object):\n \"\"\"An immutable representation of a datastore Key.\n\n .. automethod:: __init__\n \"\"\"\n\n ...
[ { "content": "\"\"\"Create / interact with gcloud datastore keys.\"\"\"\n\nimport copy\nfrom itertools import izip\n\nfrom gcloud.datastore import datastore_v1_pb2 as datastore_pb\n\n\nclass Key(object):\n \"\"\"An immutable representation of a datastore Key.\n\n .. automethod:: __init__\n \"\"\"\n\n ...
diff --git a/gcloud/datastore/key.py b/gcloud/datastore/key.py index 983e7cddb531..e73d5a811433 100644 --- a/gcloud/datastore/key.py +++ b/gcloud/datastore/key.py @@ -24,7 +24,15 @@ def __init__(self, path=None, namespace=None, dataset_id=None): :type dataset_id: string :param dataset: The dataset I...
python-discord__bot-352
Bot changing off-topic channel names more than once per daily cycle The bot should change the channel names of the three off-topic channels only once after hitting UTC midnight. However, we've noticed that it may attempt to set new channel names far more often than that. The root of the cause is still unknown, but afte...
[ { "content": "import asyncio\nimport logging\nfrom datetime import datetime, timedelta\n\nfrom discord import Colour, Embed\nfrom discord.ext.commands import BadArgument, Bot, Context, Converter, group\n\nfrom bot.constants import Channels, Keys, MODERATION_ROLES, URLs\nfrom bot.decorators import with_role\nfro...
[ { "content": "import asyncio\nimport logging\nfrom datetime import datetime, timedelta\n\nfrom discord import Colour, Embed\nfrom discord.ext.commands import BadArgument, Bot, Context, Converter, group\n\nfrom bot.constants import Channels, Keys, MODERATION_ROLES, URLs\nfrom bot.decorators import with_role\nfro...
diff --git a/bot/cogs/off_topic_names.py b/bot/cogs/off_topic_names.py index 4dde9169f0..58a53118ea 100644 --- a/bot/cogs/off_topic_names.py +++ b/bot/cogs/off_topic_names.py @@ -48,9 +48,11 @@ async def update_names(bot: Bot, headers: dict): """ while True: + # Since we truncate the compute timedelt...
pyro-ppl__numpyro-987
Add required packages at the top of tutorials to run on colab
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport sys\n\nfrom setuptools import find_packages, setup\n\nPROJECT_PATH = os.path.dirname(os.path.abspath(__file__))\n\n# Find ve...
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport sys\n\nfrom setuptools import find_packages, setup\n\nPROJECT_PATH = os.path.dirname(os.path.abspath(__file__))\n\n# Find ve...
diff --git a/docs/requirements.txt b/docs/requirements.txt index fecea923c..9f3d81d87 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -5,5 +5,5 @@ jax>=0.1.65 jaxlib>=0.1.45 nbsphinx==0.8.1 sphinx-gallery -tensorflow-probability +tfp-nightly # TODO: change this to tensorflow-probability when it is...
RedHatInsights__insights-core-3463
Traceback occurs when certain directories are corrupt in archive. When files in an archive are corrupt and no stat information can be determined, a traceback occurs during hydration. Need to add a check for exceptions and continue. ``` $ insights-facts -y . Traceback (most recent call last): File "/usr/bin/insi...
[ { "content": "import logging\nimport os\n\nfrom insights.core import archives, dr\nfrom insights.core.serde import Hydration\nfrom insights.core.context import (ClusterArchiveContext,\n ExecutionContextMeta,\n HostArchiveContext,\n ...
[ { "content": null, "path": "insights/core/hydration.py" } ]
null
ansible__ansible-27518
Its impossible use changeset_name parameter in cloudformation module <!--- Verify first that your issue/request is not already reported on GitHub. Also test if the latest release, and master branch are affected too. --> ##### ISSUE TYPE <!--- Pick one below and delete the rest: --> - Bug Report ##### COMPON...
[ { "content": "#!/usr/bin/python\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version...
[ { "content": "#!/usr/bin/python\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version...
diff --git a/lib/ansible/modules/cloud/amazon/cloudformation.py b/lib/ansible/modules/cloud/amazon/cloudformation.py index 2ec41e5e833812..86f4874897ef18 100644 --- a/lib/ansible/modules/cloud/amazon/cloudformation.py +++ b/lib/ansible/modules/cloud/amazon/cloudformation.py @@ -333,6 +333,9 @@ def create_changeset(modu...
facebookresearch__hydra-792
[Bug] interpolation to hydra.job.override_dirname containing another interpolation is not possible # 🐛 Bug Now that #725 is fixed, I post an issue for the behavior I described in (https://github.com/facebookresearch/hydra/issues/725#issuecomment-653442315) In the following example an interpolation to `hydra.job.ov...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nfrom typing import Any, Optional\n\nfrom omegaconf import DictConfig, OmegaConf\n\nfrom hydra.conf import HydraConf\nfrom hydra.core.singleton import Singleton\n\n\nclass HydraConfig(metaclass=Singleton):\n def __init__(sel...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nfrom typing import Any, Optional\n\nfrom omegaconf import DictConfig, OmegaConf\n\nfrom hydra.conf import HydraConf\nfrom hydra.core.singleton import Singleton\n\n\nclass HydraConfig(metaclass=Singleton):\n def __init__(sel...
diff --git a/hydra/core/hydra_config.py b/hydra/core/hydra_config.py index 4e49173f9b4..1ce91c4b274 100644 --- a/hydra/core/hydra_config.py +++ b/hydra/core/hydra_config.py @@ -15,7 +15,13 @@ def set_config(self, cfg: DictConfig) -> None: assert cfg is not None OmegaConf.set_readonly(cfg.hydra, True) ...
kivy__kivy-7804
Setup Platform Override for Raspberry Pi CI Builds **Is your feature request related to a problem? Please describe.** The Raspberry Pi support is only enabled if `setup.py` detects it's running on a Raspberry Pi via the `/opt/vc/include/bcm_host.h` file, but then goes on to check the `/proc/cpuinfo` to identify that...
[ { "content": "#\n# Kivy - Cross-platform UI framework\n# https://kivy.org/\n#\n\nimport sys\nbuild_examples = False\nif \"--build_examples\" in sys.argv:\n build_examples = True\n sys.argv.remove(\"--build_examples\")\n\nfrom kivy.utils import pi_version\nfrom copy import deepcopy\nimport os\nfrom os.path...
[ { "content": "#\n# Kivy - Cross-platform UI framework\n# https://kivy.org/\n#\n\nimport sys\nbuild_examples = False\nif \"--build_examples\" in sys.argv:\n build_examples = True\n sys.argv.remove(\"--build_examples\")\n\nfrom kivy.utils import pi_version\nfrom copy import deepcopy\nimport os\nfrom os.path...
diff --git a/doc/sources/installation/installation-rpi.rst b/doc/sources/installation/installation-rpi.rst index 7b031faab7..6721d9033e 100644 --- a/doc/sources/installation/installation-rpi.rst +++ b/doc/sources/installation/installation-rpi.rst @@ -77,6 +77,23 @@ then install SDL2 from apt:: sudo apt install l...
typeddjango__django-stubs-1328
Plugin crash on abstract model filtering with custom Manager python 3.10 django 4.1 mypy 0.982 django-stubs HEAD (a78c592) django-stubs-ext HEAD (a78c592) Crash in plugin when using an abstract model with a custom manager: ``` ./myproj/app/models.py:15: error: INTERNAL ERROR -- Please try using mypy master o...
[ { "content": "import os\nimport sys\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom typing import TYPE_CHECKING, Any, Dict, Iterable, Iterator, Optional, Set, Tuple, Type, Union\n\nfrom django.core.exceptions import FieldError\nfrom django.db import models\nfrom django.db.model...
[ { "content": "import os\nimport sys\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom typing import TYPE_CHECKING, Any, Dict, Iterable, Iterator, Optional, Set, Tuple, Type, Union\n\nfrom django.core.exceptions import FieldError\nfrom django.db import models\nfrom django.db.model...
diff --git a/mypy_django_plugin/django/context.py b/mypy_django_plugin/django/context.py index 2c041994b..a6ba3833f 100644 --- a/mypy_django_plugin/django/context.py +++ b/mypy_django_plugin/django/context.py @@ -384,6 +384,10 @@ def resolve_lookup_into_field( def resolve_lookup_expected_type(self, ctx: MethodCo...
huggingface__accelerate-2310
`accelerator.prepare(dataloader)` sanity check fails when `batch_sampler` is given and `split_batches` is `True` ### System Info ```Shell Ubuntu 20.04, Python 3.10, accelerate 0.25.0, torch 2.1.2 ``` ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] One of the script...
[ { "content": "# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
[ { "content": "# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#...
diff --git a/src/accelerate/data_loader.py b/src/accelerate/data_loader.py index 01a348f82bd..6e25a050a0a 100644 --- a/src/accelerate/data_loader.py +++ b/src/accelerate/data_loader.py @@ -824,7 +824,8 @@ def prepare_data_loader( process_index = state.process_index # Sanity check - if split_batches a...
great-expectations__great_expectations-6650
Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y`
[ { "content": "from datetime import datetime, timedelta\nfrom typing import Optional, Union\n\nfrom great_expectations.core.expectation_configuration import ExpectationConfiguration\nfrom great_expectations.core.util import convert_to_json_serializable\nfrom great_expectations.exceptions.exceptions import (\n ...
[ { "content": "from datetime import datetime, timedelta\nfrom typing import Optional, Union\n\nfrom great_expectations.core.expectation_configuration import ExpectationConfiguration\nfrom great_expectations.core.util import convert_to_json_serializable\nfrom great_expectations.exceptions.exceptions import (\n ...
diff --git a/contrib/experimental/great_expectations_experimental/expectations/expect_queried_slowly_changing_table_to_have_no_gaps.py b/contrib/experimental/great_expectations_experimental/expectations/expect_queried_slowly_changing_table_to_have_no_gaps.py index cc238d5eaecf..aca373dcdb7c 100644 --- a/contrib/experim...
DataDog__dd-trace-py-5477
Django patch breaks cache <!-- Thanks for taking the time for reporting an issue! Before reporting an issue on dd-trace-py, please be sure to provide all necessary information. If you're hitting a bug, make sure that you're using the latest version of this library. --> ### Summary of problem Django cache...
[ { "content": "\"\"\"\nThe Django patching works as follows:\n\nDjango internals are instrumented via normal `patch()`.\n\n`django.apps.registry.Apps.populate` is patched to add instrumentation for any\nspecific Django apps like Django Rest Framework (DRF).\n\"\"\"\nimport functools\nfrom inspect import getmro\n...
[ { "content": "\"\"\"\nThe Django patching works as follows:\n\nDjango internals are instrumented via normal `patch()`.\n\n`django.apps.registry.Apps.populate` is patched to add instrumentation for any\nspecific Django apps like Django Rest Framework (DRF).\n\"\"\"\nimport functools\nfrom inspect import getmro\n...
diff --git a/ddtrace/contrib/django/patch.py b/ddtrace/contrib/django/patch.py index d183b7e79d7..0d01359d3bd 100644 --- a/ddtrace/contrib/django/patch.py +++ b/ddtrace/contrib/django/patch.py @@ -190,8 +190,9 @@ def traced_cache(django, pin, func, instance, args, kwargs): elif command_name == "get": ...
DataDog__dd-trace-py-5646
Django patch breaks cache <!-- Thanks for taking the time for reporting an issue! Before reporting an issue on dd-trace-py, please be sure to provide all necessary information. If you're hitting a bug, make sure that you're using the latest version of this library. --> ### Summary of problem Django cache...
[ { "content": "\"\"\"\nThe Django patching works as follows:\n\nDjango internals are instrumented via normal `patch()`.\n\n`django.apps.registry.Apps.populate` is patched to add instrumentation for any\nspecific Django apps like Django Rest Framework (DRF).\n\"\"\"\nimport functools\nfrom inspect import getmro\n...
[ { "content": "\"\"\"\nThe Django patching works as follows:\n\nDjango internals are instrumented via normal `patch()`.\n\n`django.apps.registry.Apps.populate` is patched to add instrumentation for any\nspecific Django apps like Django Rest Framework (DRF).\n\"\"\"\nimport functools\nfrom inspect import getmro\n...
diff --git a/ddtrace/contrib/django/patch.py b/ddtrace/contrib/django/patch.py index df4c2d1fcc3..0c051d8a089 100644 --- a/ddtrace/contrib/django/patch.py +++ b/ddtrace/contrib/django/patch.py @@ -179,8 +179,9 @@ def traced_cache(django, pin, func, instance, args, kwargs): elif command_name == "get": ...
mlflow__mlflow-3844
[BUG] Test Failures on master `test_onnx_model_export.py` Thank you for submitting an issue. Please refer to our [issue policy](https://www.github.com/mlflow/mlflow/blob/master/ISSUE_POLICY.md) for additional information about bug reports. For help with debugging your code, please refer to [Stack Overflow](https://stac...
[ { "content": "\"\"\"\nThe ``mlflow.spark`` module provides an API for logging and loading Spark MLlib models. This module\nexports Spark MLlib models with the following flavors:\n\nSpark MLlib (native) format\n Allows models to be loaded as Spark Transformers for scoring in a Spark session.\n Models with ...
[ { "content": "\"\"\"\nThe ``mlflow.spark`` module provides an API for logging and loading Spark MLlib models. This module\nexports Spark MLlib models with the following flavors:\n\nSpark MLlib (native) format\n Allows models to be loaded as Spark Transformers for scoring in a Spark session.\n Models with ...
diff --git a/dev/extra-ml-requirements.txt b/dev/extra-ml-requirements.txt index 4a3023eafdfb2..70826c2b5bed9 100644 --- a/dev/extra-ml-requirements.txt +++ b/dev/extra-ml-requirements.txt @@ -32,7 +32,6 @@ statsmodels h2o # Required by mlflow.onnx onnx -onnxmltools onnxruntime # Required by mlflow.mleap, and in o...
archlinux__archinstall-2069
locale language only en_US archlinux-2023.09.01-x86_64.iso
[ { "content": "from typing import Iterator, List\n\nfrom ..exceptions import ServiceException, SysCallError\nfrom ..general import SysCommand\nfrom ..output import error\n\n\ndef list_keyboard_languages() -> Iterator[str]:\n\tfor line in SysCommand(\"localectl --no-pager list-keymaps\", environment_vars={'SYSTEM...
[ { "content": "from typing import Iterator, List\n\nfrom ..exceptions import ServiceException, SysCallError\nfrom ..general import SysCommand\nfrom ..output import error\n\n\ndef list_keyboard_languages() -> Iterator[str]:\n\tfor line in SysCommand(\"localectl --no-pager list-keymaps\", environment_vars={'SYSTEM...
diff --git a/PKGBUILD b/PKGBUILD index 315256e372..c332d04314 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -16,6 +16,7 @@ depends=( 'coreutils' 'cryptsetup' 'e2fsprogs' + 'glibc' 'kbd' 'pciutils' 'procps-ng' diff --git a/archinstall/lib/locale/locale.py b/archinstall/lib/locale/locale.py index c3294e8388....
DataDog__dd-trace-py-5645
Django patch breaks cache <!-- Thanks for taking the time for reporting an issue! Before reporting an issue on dd-trace-py, please be sure to provide all necessary information. If you're hitting a bug, make sure that you're using the latest version of this library. --> ### Summary of problem Django cache...
[ { "content": "\"\"\"\nThe Django patching works as follows:\n\nDjango internals are instrumented via normal `patch()`.\n\n`django.apps.registry.Apps.populate` is patched to add instrumentation for any\nspecific Django apps like Django Rest Framework (DRF).\n\"\"\"\nimport functools\nfrom inspect import getmro\n...
[ { "content": "\"\"\"\nThe Django patching works as follows:\n\nDjango internals are instrumented via normal `patch()`.\n\n`django.apps.registry.Apps.populate` is patched to add instrumentation for any\nspecific Django apps like Django Rest Framework (DRF).\n\"\"\"\nimport functools\nfrom inspect import getmro\n...
diff --git a/ddtrace/contrib/django/patch.py b/ddtrace/contrib/django/patch.py index df4c2d1fcc3..0c051d8a089 100644 --- a/ddtrace/contrib/django/patch.py +++ b/ddtrace/contrib/django/patch.py @@ -179,8 +179,9 @@ def traced_cache(django, pin, func, instance, args, kwargs): elif command_name == "get": ...
scalableminds__webknossos-libs-179
Cubing a dataset with scale 320, 320, 200 will create a 1-2-2 mag Instead, 2-2-1 should be created probably. Cubing a dataset with scale 320, 320, 200 will create a 1-2-2 mag Instead, 2-2-1 should be created probably.
[ { "content": "import logging\nimport math\n\nimport wkw\nimport numpy as np\nfrom argparse import ArgumentParser\nimport os\nfrom scipy.ndimage.interpolation import zoom\nfrom itertools import product\nfrom enum import Enum\nfrom .mag import Mag\nfrom .metadata import read_datasource_properties, refresh_metadat...
[ { "content": "import logging\nimport math\n\nimport wkw\nimport numpy as np\nfrom argparse import ArgumentParser\nimport os\nfrom scipy.ndimage.interpolation import zoom\nfrom itertools import product\nfrom enum import Enum\nfrom .mag import Mag\nfrom .metadata import read_datasource_properties, refresh_metadat...
diff --git a/tests/test_downsampling.py b/tests/test_downsampling.py index a968ad144..abc6443ae 100644 --- a/tests/test_downsampling.py +++ b/tests/test_downsampling.py @@ -207,14 +207,15 @@ def test_anisotropic_mag_calculation(): [(10.5, 24, 10.5), Mag((2, 1, 2)), Mag((4, 1, 4))], [(24, 10.5, 10.5), ...
vyperlang__vyper-1078
Cannot convert to address ### Version Information * vyper Version: 0.2.0b4 ### What's your issue about? Vyper disallows converting to an address. This is a problem because sometimes we need to process stuff from bytes to an address. #### Cute Animal Picture ![blue donkey](http://bellatravelplanning.com/wp-c...
[ { "content": "import ast\nimport warnings\n\nfrom vyper.functions.signature import (\n signature\n)\nfrom vyper.parser.parser_utils import (\n LLLnode,\n getpos,\n byte_array_to_num\n)\nfrom vyper.exceptions import (\n InvalidLiteralException,\n TypeMismatchException,\n ParserException,\n)\...
[ { "content": "import ast\nimport warnings\n\nfrom vyper.functions.signature import (\n signature\n)\nfrom vyper.parser.parser_utils import (\n LLLnode,\n getpos,\n byte_array_to_num\n)\nfrom vyper.exceptions import (\n InvalidLiteralException,\n TypeMismatchException,\n ParserException,\n)\...
diff --git a/tests/parser/types/test_bytes.py b/tests/parser/types/test_bytes.py index 4cce3540a1..29ff8f5499 100644 --- a/tests/parser/types/test_bytes.py +++ b/tests/parser/types/test_bytes.py @@ -4,6 +4,32 @@ ) +def test_address_bytes_converstion(get_contract_with_gas_estimation): + # Shared values for test ...
ray-project__ray-7114
Turn off OMP_NUM_THREADS warnings? Can we just turn off the warnings on each ray.init? We can't force everyone to set the environment variable. https://github.com/ray-project/ray/blob/3f99be8dad5e0e1abfaede1f25753a0af74f1648/python/ray/__init__.py#L16-L21
[ { "content": "import os\nimport logging\nfrom os.path import dirname\nimport sys\n\nlogger = logging.getLogger(__name__)\n\n# MUST add pickle5 to the import path because it will be imported by some\n# raylet modules.\n\nif \"pickle5\" in sys.modules:\n raise ImportError(\"Ray must be imported before pickle5 ...
[ { "content": "import os\nimport logging\nfrom os.path import dirname\nimport sys\n\nlogger = logging.getLogger(__name__)\n\n# MUST add pickle5 to the import path because it will be imported by some\n# raylet modules.\n\nif \"pickle5\" in sys.modules:\n raise ImportError(\"Ray must be imported before pickle5 ...
diff --git a/doc/source/configure.rst b/doc/source/configure.rst index 794132e62945..09d19c351893 100644 --- a/doc/source/configure.rst +++ b/doc/source/configure.rst @@ -48,6 +48,14 @@ If using the command line, connect to the Ray cluster as follow: # Connect to ray. Notice if connected to existing cluster, you don...
fossasia__open-event-server-3421
'Register as a Speaker' takes back to the same pop up Even on registering as speaker, user is not registered. After registration, it takes back to the same "Register as Speaker" and "Propose Session" modal. That is: ![screenshot from 2017-03-24 03-52-33](https://cloud.githubusercontent.com/assets/20799954/24272958/d...
[ { "content": "import json\nfrom datetime import datetime\nimport pytz\n\nfrom flask import Blueprint\nfrom flask import make_response\nfrom flask import request, url_for, flash, render_template, jsonify\nfrom flask.ext import login\nfrom flask.ext.restplus import abort\nfrom markupsafe import Markup\nfrom werkz...
[ { "content": "import json\nfrom datetime import datetime\nimport pytz\n\nfrom flask import Blueprint\nfrom flask import make_response\nfrom flask import request, url_for, flash, render_template, jsonify\nfrom flask.ext import login\nfrom flask.ext.restplus import abort\nfrom markupsafe import Markup\nfrom werkz...
diff --git a/app/templates/gentelella/guest/event/cfs.html b/app/templates/gentelella/guest/event/cfs.html index 9fae2a7dd8..a95850b6ad 100644 --- a/app/templates/gentelella/guest/event/cfs.html +++ b/app/templates/gentelella/guest/event/cfs.html @@ -53,7 +53,7 @@ <h4 class="modal-title">{{ _("Please login to submit yo...
docker__docker-py-988
Certificate error in docker ci for test-docker-py https://jenkins.dockerproject.org/job/Docker-PRs/24848/console for detail. in docker-py, when checkout to the commit of 387db11009f4b4f64a4f2c6fd64d3eeb01828585,the error appears,if I remove the commit ,we will not have the error. ``` =================================...
[ { "content": "# Copyright 2013 dotCloud inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless requir...
[ { "content": "# Copyright 2013 dotCloud inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless requir...
diff --git a/docker/utils/utils.py b/docker/utils/utils.py index bc26ce82f..d4393d584 100644 --- a/docker/utils/utils.py +++ b/docker/utils/utils.py @@ -460,16 +460,16 @@ def kwargs_from_env(ssl_version=None, assert_hostname=None): tls_verify = os.environ.get('DOCKER_TLS_VERIFY') if tls_verify == '': ...
tornadoweb__tornado-2564
tornado.queues.Queue.get timeout is inconsistent with queue.Queue.get From the `queue.Queue.get` docstring > If 'timeout' is a non-negative number, it blocks at most 'timeout' seconds and raises the Empty exception if no item was available within that time. From the `tornado.queues.Queue.get` docstring > ``tim...
[ { "content": "# Copyright 2015 The Tornado Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ...
[ { "content": "# Copyright 2015 The Tornado Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ...
diff --git a/tornado/queues.py b/tornado/queues.py index d135c3cb01..19ff6c66c6 100644 --- a/tornado/queues.py +++ b/tornado/queues.py @@ -232,6 +232,16 @@ def get(self, timeout: Union[float, datetime.timedelta] = None) -> Awaitable[_T] scale as `tornado.ioloop.IOLoop.time`, normally `time.time`), or a ...
apluslms__a-plus-771
HTML Plugin admin interface does not show relevant information Some times we have to copy plugins from previous course instances to the current instance. However, it is difficult to know which plugin belongs to the course we want. **Current view** ![image](https://user-images.githubusercontent.com/10437475/10532069...
[ { "content": "from django.contrib import admin\n\nfrom .models import (\n BaseTab,\n HTMLTab,\n ExternalEmbeddedTab,\n ExternalIFrameTab,\n BasePlugin,\n RSSPlugin,\n HTMLPlugin,\n ExternalIFramePlugin,\n)\n\n\nadmin.site.register(BaseTab)\nadmin.site.register(HTMLTab)\nadmin.site.regist...
[ { "content": "from django.contrib import admin\n\nfrom .models import (\n BaseTab,\n HTMLTab,\n ExternalEmbeddedTab,\n ExternalIFrameTab,\n BasePlugin,\n RSSPlugin,\n HTMLPlugin,\n ExternalIFramePlugin,\n)\n\nclass HTMLPluginAdmin(admin.ModelAdmin):\n list_display_links = [\"title\"]\...
diff --git a/apps/admin.py b/apps/admin.py index 885642e79..46553853d 100644 --- a/apps/admin.py +++ b/apps/admin.py @@ -11,6 +11,12 @@ ExternalIFramePlugin, ) +class HTMLPluginAdmin(admin.ModelAdmin): + list_display_links = ["title"] + list_display = ["title", "course_instance_id", "container_type", "vie...
ansible-collections__community.general-3800
pipx install option --install-deps not in version 0.16.4 ### Summary The [pipx plugin](https://github.com/ansible-collections/community.general/blob/main/plugins/modules/packaging/language/pipx.py) has an option `install_deps` which adds an `--install-deps` option to the the `pipx` command line. This causes the `pipx`...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2021, Alexei Znamensky <russoz@gmail.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION =...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2021, Alexei Znamensky <russoz@gmail.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nDOCUMENTATION =...
diff --git a/changelogs/fragments/3800-pipx-include-apps.yaml b/changelogs/fragments/3800-pipx-include-apps.yaml new file mode 100644 index 00000000000..49113ed4502 --- /dev/null +++ b/changelogs/fragments/3800-pipx-include-apps.yaml @@ -0,0 +1,2 @@ +bugfixes: + - pipx - passes the correct command line option ``--in...
Lightning-AI__pytorch-lightning-771
ModelCheckpoint Filepath Doesn't Use Logger Save Dir # 🐛 Bug Not sure if this is intended, but the model checkpoint isn't using the same directory as the logger, even if the logger exists. I would have expected this line [here](https://github.com/PyTorchLightning/pytorch-lightning/blob/588ad8377167c0b7d29cf4f362dbf...
[ { "content": "import os\nfrom abc import ABC\n\nfrom pytorch_lightning.callbacks import ModelCheckpoint, EarlyStopping\n\n\nclass TrainerCallbackConfigMixin(ABC):\n\n def __init__(self):\n # this is just a summary on variables used in this abstract class,\n # the proper values/initialisation s...
[ { "content": "import os\nfrom abc import ABC\n\nfrom pytorch_lightning.callbacks import ModelCheckpoint, EarlyStopping\n\n\nclass TrainerCallbackConfigMixin(ABC):\n\n def __init__(self):\n # this is just a summary on variables used in this abstract class,\n # the proper values/initialisation s...
diff --git a/pytorch_lightning/trainer/callback_config.py b/pytorch_lightning/trainer/callback_config.py index 7d0496c88b49f..3756b19e433c0 100644 --- a/pytorch_lightning/trainer/callback_config.py +++ b/pytorch_lightning/trainer/callback_config.py @@ -23,8 +23,11 @@ def configure_checkpoint_callback(self): if...
open-mmlab__mmpretrain-147
KeyError: 'LinearHead is not in the head registry' use config ```python model = dict( head=dict( type='LinearHead', num_classes=1000, in_channels=2048, loss=dict( type='LabelSmoothLoss', loss_weight=1.0, label_smooth_val=0.1, ...
[ { "content": "_base_ = ['./resnet50_batch2048_warmup.py']\nmodel = dict(\n head=dict(\n type='LinearHead',\n num_classes=1000,\n in_channels=2048,\n loss=dict(\n type='LabelSmoothLoss',\n loss_weight=1.0,\n label_smooth_val=0.1,\n num_cl...
[ { "content": "_base_ = ['./resnet50_batch2048_warmup.py']\nmodel = dict(\n head=dict(\n type='LinearClsHead',\n num_classes=1000,\n in_channels=2048,\n loss=dict(\n type='LabelSmoothLoss',\n loss_weight=1.0,\n label_smooth_val=0.1,\n num...
diff --git a/configs/resnet/resnet50_b32x8_label_smooth_imagenet.py b/configs/resnet/resnet50_b32x8_label_smooth_imagenet.py index 09297cf2389..4cd70ff8a85 100644 --- a/configs/resnet/resnet50_b32x8_label_smooth_imagenet.py +++ b/configs/resnet/resnet50_b32x8_label_smooth_imagenet.py @@ -1,7 +1,7 @@ _base_ = ['./resne...
ansible-collections__community.aws-1839
unexpected output from Python interpreter discovery with aws_ssm connection plugin ### Summary I had good luck with the aws_ssm plugin until attempting to use it against the latest Amazon Linux AMI. Simple commands that work well with a CentOS 7 host fails when trying to run them against AMI. It appears to be somet...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2018, Pat Sharkey <psharkey@cleo.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\n# Based on the ssh connection plugin by Michael DeHaan\n\nDOCUMENTATION = r\"\"\"\nname: aws_ssm\nauthor:\n - Pat Shar...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2018, Pat Sharkey <psharkey@cleo.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\n# Based on the ssh connection plugin by Michael DeHaan\n\nDOCUMENTATION = r\"\"\"\nname: aws_ssm\nauthor:\n - Pat Shar...
diff --git a/changelogs/fragments/1839-disable-bracketed-paste.yml b/changelogs/fragments/1839-disable-bracketed-paste.yml new file mode 100644 index 00000000000..1398fc3ec1d --- /dev/null +++ b/changelogs/fragments/1839-disable-bracketed-paste.yml @@ -0,0 +1,2 @@ +bugfixes: + - aws_ssm - disable `enable-bracketed-pas...
ansible-collections__community.aws-2030
unexpected output from Python interpreter discovery with aws_ssm connection plugin ### Summary I had good luck with the aws_ssm plugin until attempting to use it against the latest Amazon Linux AMI. Simple commands that work well with a CentOS 7 host fails when trying to run them against AMI. It appears to be somet...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2018, Pat Sharkey <psharkey@cleo.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\n# Based on the ssh connection plugin by Michael DeHaan\n\nDOCUMENTATION = r\"\"\"\nname: aws_ssm\nauthor:\n - Pat Shar...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2018, Pat Sharkey <psharkey@cleo.com>\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\n# Based on the ssh connection plugin by Michael DeHaan\n\nDOCUMENTATION = r\"\"\"\nname: aws_ssm\nauthor:\n - Pat Shar...
diff --git a/changelogs/fragments/1839-disable-bracketed-paste.yml b/changelogs/fragments/1839-disable-bracketed-paste.yml new file mode 100644 index 00000000000..1398fc3ec1d --- /dev/null +++ b/changelogs/fragments/1839-disable-bracketed-paste.yml @@ -0,0 +1,2 @@ +bugfixes: + - aws_ssm - disable `enable-bracketed-pas...
cupy__cupy-3291
Lexsort output is incorrect The output of cupy.lexsort is incorrect. I can't see any pattern as to what is wrong with the output. ### Code to reproduce ``` import cupy import numpy # numpy output is correct: a = (numpy.random.random((10,2)) * 10).astype(int) # random ints between 0 and 9 print(a[numpy.lexso...
[ { "content": "import cupy\nimport numpy\n\nif cupy.cuda.thrust_enabled:\n from cupy.cuda import thrust\n\n\ndef sort(a, axis=-1):\n \"\"\"Returns a sorted copy of an array with a stable sorting algorithm.\n\n Args:\n a (cupy.ndarray): Array to be sorted.\n axis (int or None): Axis along w...
[ { "content": "import cupy\nimport numpy\n\nif cupy.cuda.thrust_enabled:\n from cupy.cuda import thrust\n\n\ndef sort(a, axis=-1):\n \"\"\"Returns a sorted copy of an array with a stable sorting algorithm.\n\n Args:\n a (cupy.ndarray): Array to be sorted.\n axis (int or None): Axis along w...
diff --git a/cupy/_sorting/sort.py b/cupy/_sorting/sort.py index 4f4ff923155..5812828f955 100644 --- a/cupy/_sorting/sort.py +++ b/cupy/_sorting/sort.py @@ -73,6 +73,10 @@ def lexsort(keys): raise NotImplementedError('Keys with the rank of three or more is not ' 'supported in...
internetarchive__openlibrary-7470
Archive another 50k covers to free up storage on server The goal is to free up enough space on ol-covers0 that there is no longer a nagios alert. And to have a safe processes for achieving this moving forward.
[ { "content": "import array\nimport datetime\nimport io\nimport json\nimport logging\nimport os\n\nimport requests\n\nimport web\n\nfrom PIL import Image, ImageDraw, ImageFont\nimport textwrap\n\n\nfrom openlibrary.coverstore import config, db\nfrom openlibrary.coverstore.coverlib import read_file, read_image, s...
[ { "content": "import array\nimport datetime\nimport io\nimport json\nimport logging\nimport os\n\nimport requests\n\nimport web\n\nfrom PIL import Image, ImageDraw, ImageFont\nimport textwrap\n\n\nfrom openlibrary.coverstore import config, db\nfrom openlibrary.coverstore.coverlib import read_file, read_image, s...
diff --git a/openlibrary/coverstore/code.py b/openlibrary/coverstore/code.py index afab9402f65..d8503272376 100644 --- a/openlibrary/coverstore/code.py +++ b/openlibrary/coverstore/code.py @@ -275,9 +275,9 @@ def redirect(id): url = zipview_url_from_id(int(value), size) raise web.found(url) ...
jschneier__django-storages-258
S3Boto3Storage: bucket_params not used On [line 363](https://github.com/jschneier/django-storages/blob/master/storages/backends/s3boto3.py#L363) of the `_get_or_create_bucket()` method of `S3Boto3Storage`, `bucket_params` is defined and includes the bucket's ACL setting. However, when `bucket.create()` is called, `buck...
[ { "content": "import os\nimport posixpath\nimport mimetypes\nfrom gzip import GzipFile\nfrom tempfile import SpooledTemporaryFile\n\nfrom django.core.exceptions import ImproperlyConfigured, SuspiciousOperation\nfrom django.core.files.base import File\nfrom django.core.files.storage import Storage\nfrom django.u...
[ { "content": "import os\nimport posixpath\nimport mimetypes\nfrom gzip import GzipFile\nfrom tempfile import SpooledTemporaryFile\n\nfrom django.core.exceptions import ImproperlyConfigured, SuspiciousOperation\nfrom django.core.files.base import File\nfrom django.core.files.storage import Storage\nfrom django.u...
diff --git a/AUTHORS b/AUTHORS index 530f21745..0dc804966 100644 --- a/AUTHORS +++ b/AUTHORS @@ -26,6 +26,7 @@ By order of apparition, thanks: * EunPyo (Andrew) Hong (Azure) * Michael Barrientos (S3 with Boto3) * piglei (patches) + * Matt Braymer-Hayes (S3 with Boto3) Extra thanks to Marty for addi...
wagtail__wagtail-9236
CMS Admin Exception after deleting a page ### Issue Summary The _Your most recent edits_ panel causes a 500 error when one of the recent edits was to a page which has since been deleted. ### Steps to Reproduce 1. Edit a page. 2. Delete the page. 3. View the CMS admin home page. This seems to be a result o...
[ { "content": "import itertools\nfrom typing import Any, Mapping, Union\n\nfrom django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.decorators import permission_required\nfrom django.db import connection\nfrom django.db.models import Max, Q\nfrom django.forms imp...
[ { "content": "import itertools\nfrom typing import Any, Mapping, Union\n\nfrom django.conf import settings\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.decorators import permission_required\nfrom django.db import connection\nfrom django.db.models import Max, Q\nfrom django.forms imp...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4186fe2210ca..4cd5d0ee1dda 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -56,6 +56,7 @@ Changelog * Fix: Prevent JS error on images index view when collections dropdown is omitted (Tidiane Dia) * Fix: Prevent "Entries per page" dropdown on images index view from ...
e-valuation__EvaP-470
separate questionnaire types on FSR overview page separate lists for course questionnaires and contributor questionnaires would be cool.
[ { "content": "from django.contrib import messages\nfrom django.core.cache import cache\nfrom django.core.exceptions import PermissionDenied\nfrom django.forms.models import inlineformset_factory, modelformset_factory\nfrom django.shortcuts import get_object_or_404, redirect, render\nfrom collections import Orde...
[ { "content": "from django.contrib import messages\nfrom django.core.cache import cache\nfrom django.core.exceptions import PermissionDenied\nfrom django.forms.models import inlineformset_factory, modelformset_factory\nfrom django.shortcuts import get_object_or_404, redirect, render\nfrom collections import Orde...
diff --git a/evap/staff/templates/staff_index.html b/evap/staff/templates/staff_index.html index 5d396007c7..a6df04ddbf 100644 --- a/evap/staff/templates/staff_index.html +++ b/evap/staff/templates/staff_index.html @@ -23,11 +23,25 @@ <h3>{% trans "Semesters" %}</h3> </div> <div class="col-md-3"> ...
jschneier__django-storages-1134
AzureStorage get_modified_time 'ContainerClient' object has no attribute 'get_blob_properties' I suspect this is a bug from a change in Azure's python client. I can't say I'm an expert but it looks like [this](https://github.com/jschneier/django-storages/blob/master/storages/backends/azure_storage.py#L337) line needs...
[ { "content": "import mimetypes\nfrom datetime import datetime, timedelta\nfrom tempfile import SpooledTemporaryFile\n\nfrom azure.core.exceptions import ResourceNotFoundError\nfrom azure.storage.blob import (\n BlobClient, BlobSasPermissions, BlobServiceClient, ContentSettings,\n generate_blob_sas,\n)\nfr...
[ { "content": "import mimetypes\nfrom datetime import datetime, timedelta\nfrom tempfile import SpooledTemporaryFile\n\nfrom azure.core.exceptions import ResourceNotFoundError\nfrom azure.storage.blob import (\n BlobClient, BlobSasPermissions, BlobServiceClient, ContentSettings,\n generate_blob_sas,\n)\nfr...
diff --git a/storages/backends/azure_storage.py b/storages/backends/azure_storage.py index e20a0bb06..9a8ffbc9c 100644 --- a/storages/backends/azure_storage.py +++ b/storages/backends/azure_storage.py @@ -334,9 +334,8 @@ def get_modified_time(self, name): Returns an (aware) datetime object containing the last ...
certbot__certbot-3044
AttributeError: 'Namespace' object has no attribute 'changes_since_path' This error comes up when I try to use certbot-auto with apache, so it is unable to set up enhancement redirect.
[ { "content": "\"\"\"Reverter class saves configuration checkpoints and allows for recovery.\"\"\"\nimport csv\nimport glob\nimport logging\nimport os\nimport shutil\nimport time\nimport traceback\n\nimport zope.component\n\nfrom certbot import constants\nfrom certbot import errors\nfrom certbot import interface...
[ { "content": "\"\"\"Reverter class saves configuration checkpoints and allows for recovery.\"\"\"\nimport csv\nimport glob\nimport logging\nimport os\nimport shutil\nimport time\nimport traceback\n\n\nimport zope.component\n\nfrom certbot import constants\nfrom certbot import errors\nfrom certbot import interfa...
diff --git a/certbot/reverter.py b/certbot/reverter.py index fe6d9f24fd5..16ee5d8a458 100644 --- a/certbot/reverter.py +++ b/certbot/reverter.py @@ -7,6 +7,7 @@ import time import traceback + import zope.component from certbot import constants @@ -489,7 +490,7 @@ def finalize_checkpoint(self, title): ...
encode__uvicorn-186
`uvicorn.run` event loop behaviour when running programmatically. I am trying to run Uvicorn in the same asyncio loop as some other components like the [asyncpg](https://github.com/MagicStack/asyncpg) DB connection pool. As far as I can tell we can specify the callable that receives the scope and creates the request...
[ { "content": "from uvicorn.debug import DebugMiddleware\nfrom uvicorn.importer import import_from_string, ImportFromStringError\nfrom uvicorn.reloaders.statreload import StatReload\nfrom uvicorn.wsgi import WSGIMiddleware\nimport asyncio\nimport click\nimport signal\nimport os\nimport logging\nimport socket\nim...
[ { "content": "from uvicorn.debug import DebugMiddleware\nfrom uvicorn.importer import import_from_string, ImportFromStringError\nfrom uvicorn.reloaders.statreload import StatReload\nfrom uvicorn.wsgi import WSGIMiddleware\nimport asyncio\nimport click\nimport signal\nimport os\nimport logging\nimport socket\nim...
diff --git a/uvicorn/main.py b/uvicorn/main.py index 9bdb26610..c10da7c41 100644 --- a/uvicorn/main.py +++ b/uvicorn/main.py @@ -221,12 +221,13 @@ def run( sock = socket.fromfd(fd, socket.AF_UNIX, socket.SOCK_STREAM) logger = get_logger(log_level) - loop_setup = import_from_string(LOOP_SETUPS[loop]) ...
matrix-org__synapse-13738
Synapse doesn't start if the signing key file contains a newline ### Description When deploying a synapse instance I copied a `/data/mydomain.signing.key` file which contained the line Synapse had generated on first start and a new line. Synapse didn't start and complained with ``` Starting synapse with args -m ...
[ { "content": "# Copyright 2015, 2016 OpenMarket Ltd\n# Copyright 2019 The Matrix.org Foundation C.I.C.\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.apach...
[ { "content": "# Copyright 2015, 2016 OpenMarket Ltd\n# Copyright 2019 The Matrix.org Foundation C.I.C.\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.apach...
diff --git a/changelog.d/13738.bugfix b/changelog.d/13738.bugfix new file mode 100644 index 000000000000..d64fa0b4dec6 --- /dev/null +++ b/changelog.d/13738.bugfix @@ -0,0 +1 @@ +Fix a bug where Synapse fails to start if a signing key file contains an empty line. \ No newline at end of file diff --git a/synapse/config/...
ansible-collections__community.general-5884
Gem: Force is not working when uninstalling ### Summary Force flag is not being appended when uninstalling, which could lead to a hang because gem could interactively ask if the user is sure to uninstall when there are dependencies ### Issue Type Bug Report ### Component Name gem ### Ansible Version ```console (...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2013, Johan Wiren <johan.wiren.se@gmail.com>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import abso...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2013, Johan Wiren <johan.wiren.se@gmail.com>\n# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom __future__ import abso...
diff --git a/changelogs/fragments/5822-gem-uninstall-force.yml b/changelogs/fragments/5822-gem-uninstall-force.yml new file mode 100644 index 00000000000..7b8a0efbdaa --- /dev/null +++ b/changelogs/fragments/5822-gem-uninstall-force.yml @@ -0,0 +1,2 @@ +bugfixes: + - gem - fix force parameter not being passed to gem c...
scrapy__scrapy-4420
follow_all fails with an empty list of URLs <!-- Thanks for taking an interest in Scrapy! If you have a question that starts with "How to...", please see the Scrapy Community page: https://scrapy.org/community/. The GitHub issue tracker's purpose is to deal with bug reports and feature requests for the project i...
[ { "content": "\"\"\"\nThis module implements the TextResponse class which adds encoding handling and\ndiscovering (through HTTP headers) to base Response class.\n\nSee documentation in docs/topics/request-response.rst\n\"\"\"\n\nfrom contextlib import suppress\nfrom typing import Generator\nfrom urllib.parse im...
[ { "content": "\"\"\"\nThis module implements the TextResponse class which adds encoding handling and\ndiscovering (through HTTP headers) to base Response class.\n\nSee documentation in docs/topics/request-response.rst\n\"\"\"\n\nfrom contextlib import suppress\nfrom typing import Generator\nfrom urllib.parse im...
diff --git a/scrapy/http/response/text.py b/scrapy/http/response/text.py index 33a48532882..2f0f3820c45 100644 --- a/scrapy/http/response/text.py +++ b/scrapy/http/response/text.py @@ -188,9 +188,11 @@ def follow_all(self, urls=None, callback=None, method='GET', headers=None, body= selectors from which links c...
ManimCommunity__manim-3392
`Numberline` elongated ticks do not work for certain float values ## Description of bug / unexpected behavior <!-- Add a clear and concise description of the problem you encountered. --> When attempting to specify precisely which ticks were to be elongated in `NumberLine` or `UnitInterval`, I found that some of the t...
[ { "content": "\"\"\"Mobject representing a number line.\"\"\"\n\nfrom __future__ import annotations\n\nfrom manim.mobject.opengl.opengl_vectorized_mobject import OpenGLVMobject\n\n__all__ = [\"NumberLine\", \"UnitInterval\"]\n\n\nfrom typing import TYPE_CHECKING, Callable, Iterable, Sequence\n\nif TYPE_CHECKING...
[ { "content": "\"\"\"Mobject representing a number line.\"\"\"\n\nfrom __future__ import annotations\n\nfrom manim.mobject.opengl.opengl_vectorized_mobject import OpenGLVMobject\n\n__all__ = [\"NumberLine\", \"UnitInterval\"]\n\n\nfrom typing import TYPE_CHECKING, Callable, Iterable, Sequence\n\nif TYPE_CHECKING...
diff --git a/manim/mobject/graphing/number_line.py b/manim/mobject/graphing/number_line.py index 08f6ef48fa..aec3bfb533 100644 --- a/manim/mobject/graphing/number_line.py +++ b/manim/mobject/graphing/number_line.py @@ -277,9 +277,10 @@ def add_ticks(self): via ``self.ticks``.""" ticks = VGroup() ...
great-expectations__great_expectations-4066
Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y`
[ { "content": "import json\n\n\ndef build_glossary_tuples(source_json_path):\n # Open the source_json_path\n with open(source_json_path) as json_file:\n # Read the contents as a json\n data = json.load(json_file)\n # Convert to list of tuples containing (\"term\", \"definition\", \"url...
[ { "content": "import json\n\n\ndef build_glossary_tuples(source_json_path):\n # Open the source_json_path\n with open(source_json_path) as json_file:\n # Read the contents as a json\n data = json.load(json_file)\n # Convert to list of tuples containing (\"term\", \"definition\", \"url...
diff --git a/docs/deployment_patterns/index.md b/docs/deployment_patterns/index.md new file mode 100644 index 000000000000..f3f08ed175d8 --- /dev/null +++ b/docs/deployment_patterns/index.md @@ -0,0 +1,9 @@ +--- +title: "Deployment Patterns: Index" +--- +- [Deploying Great Expectations in a hosted environment without f...
spotify__luigi-2572
HdfsTarget is not workging in luigi > 2.6.1 This code runs correct under luigi <= 2.6.1: ```python from luigi.contrib import hdfs import luigi.format # just to be sure that realy the right version is used... import pkg_resources print "luigi ==", pkg_resources.get_distribution("luigi").version print "snakebi...
[ { "content": "import logging\nimport os\n\nimport luigi.format\nfrom luigi.contrib.hdfs.config import load_hadoop_cmd\nfrom luigi.contrib.hdfs import config as hdfs_config\nfrom luigi.contrib.hdfs.clients import remove, rename, mkdir, listdir, exists\nfrom luigi.contrib.hdfs.error import HDFSCliError\n\nlogger ...
[ { "content": "import logging\nimport os\n\nimport luigi.format\nfrom luigi.contrib.hdfs.config import load_hadoop_cmd\nfrom luigi.contrib.hdfs import config as hdfs_config\nfrom luigi.contrib.hdfs.clients import remove, rename, mkdir, listdir, exists\nfrom luigi.contrib.hdfs.error import HDFSCliError\n\nlogger ...
diff --git a/luigi/contrib/hdfs/format.py b/luigi/contrib/hdfs/format.py index f87ebd5bf3..e35d78439d 100644 --- a/luigi/contrib/hdfs/format.py +++ b/luigi/contrib/hdfs/format.py @@ -49,9 +49,13 @@ def abort(self): def close(self): super(HdfsAtomicWritePipe, self).close() try: - remove...
gwastro__pycbc-3881
`examples/filter/fir.py` does not work Building the documentation currently produces this error: ``` Warning, treated as error: /home/runner/work/pycbc/pycbc/docs/filter.rst:16:Exception occurred in plotting fir from /home/runner/work/pycbc/pycbc/docs/../examples/filter/fir.py: Traceback (most recent call last): ...
[ { "content": "# Copyright (C) 2012 Alex Nitz\n# This program is free software; you can redistribute it and/or modify it\n# under the terms of the GNU General Public License as published by the\n# Free Software Foundation; either version 3 of the License, or (at your\n# option) any later version.\n#\n# This pro...
[ { "content": "# Copyright (C) 2012 Alex Nitz\n# This program is free software; you can redistribute it and/or modify it\n# under the terms of the GNU General Public License as published by the\n# Free Software Foundation; either version 3 of the License, or (at your\n# option) any later version.\n#\n# This pro...
diff --git a/pycbc/filter/resample.py b/pycbc/filter/resample.py index cf1a4096c52..d38dd49ab7f 100644 --- a/pycbc/filter/resample.py +++ b/pycbc/filter/resample.py @@ -52,7 +52,9 @@ def lfilter(coefficients, timeseries): # If there aren't many points just use the default scipy method if len(timeseries) < 2**...
CTFd__CTFd-1424
Prevent importing data that doesn't meet our expected format People like to manipulate import data despite it being not a great idea. This often leads to problems where the user is trying to import data that doesn't match our expected format. We should prevent that automatically.
[ { "content": "import datetime\nimport json\nimport os\nimport re\nimport tempfile\nimport zipfile\n\nimport dataset\nimport six\nfrom alembic.util import CommandError\nfrom flask import current_app as app\nfrom flask_migrate import upgrade as migration_upgrade\nfrom sqlalchemy.exc import OperationalError, Progr...
[ { "content": "import datetime\nimport json\nimport os\nimport re\nimport tempfile\nimport zipfile\n\nimport dataset\nimport six\nfrom alembic.util import CommandError\nfrom flask import current_app as app\nfrom flask_migrate import upgrade as migration_upgrade\nfrom sqlalchemy.exc import OperationalError, Progr...
diff --git a/CTFd/utils/exports/__init__.py b/CTFd/utils/exports/__init__.py index b7dded120..00a86f295 100644 --- a/CTFd/utils/exports/__init__.py +++ b/CTFd/utils/exports/__init__.py @@ -96,6 +96,14 @@ def import_ctf(backup, erase=True): if info.file_size > max_content_length: raise zipf...