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
ManimCommunity__manim-2770
proportion_from_point is not working for some cases ## Description of bug / unexpected behavior <!-- Add a clear and concise description of the problem you encountered. --> Hello, I'm trying to get the proportion of the vertices from a triangle outline, but the result is not correct for some cases. For easy testin...
[ { "content": "\"\"\"Utility functions related to Bézier curves.\"\"\"\n\nfrom __future__ import annotations\n\n__all__ = [\n \"bezier\",\n \"partial_bezier_points\",\n \"partial_quadratic_bezier_points\",\n \"interpolate\",\n \"integer_interpolate\",\n \"mid\",\n \"inverse_interpolate\",\n ...
[ { "content": "\"\"\"Utility functions related to Bézier curves.\"\"\"\n\nfrom __future__ import annotations\n\n__all__ = [\n \"bezier\",\n \"partial_bezier_points\",\n \"partial_quadratic_bezier_points\",\n \"interpolate\",\n \"integer_interpolate\",\n \"mid\",\n \"inverse_interpolate\",\n ...
diff --git a/manim/utils/bezier.py b/manim/utils/bezier.py index 6f8187eef5..4a489318bd 100644 --- a/manim/utils/bezier.py +++ b/manim/utils/bezier.py @@ -478,7 +478,7 @@ def proportions_along_bezier_curve_for_point( roots = [[root for root in rootlist if root.imag == 0] for rootlist in roots] roots = reduc...
jupyterhub__jupyterhub-3646
New user token returns `200` instead of `201` ### Bug description The api docs for stable & latest list the following response status: ``` 201 Created The newly created token ``` But currently returns a status of `200` #### Expected behaviour Should return a response status of `201` #### Actual behaviour Cu...
[ { "content": "\"\"\"User handlers\"\"\"\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\nimport asyncio\nimport json\nfrom datetime import datetime\nfrom datetime import timedelta\nfrom datetime import timezone\n\nfrom async_generator import aclosing\nfrom ...
[ { "content": "\"\"\"User handlers\"\"\"\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\nimport asyncio\nimport json\nfrom datetime import datetime\nfrom datetime import timedelta\nfrom datetime import timezone\n\nfrom async_generator import aclosing\nfrom ...
diff --git a/jupyterhub/apihandlers/users.py b/jupyterhub/apihandlers/users.py index e36faf9eba..97aa3a87f8 100644 --- a/jupyterhub/apihandlers/users.py +++ b/jupyterhub/apihandlers/users.py @@ -421,6 +421,7 @@ async def post(self, user_name): token_model = self.token_model(orm.APIToken.find(self.db, api_token...
facebookresearch__hydra-2729
CI failing: `./tools/configen/configen/utils.py:4:1: F401 'typing.Tuple' imported but unused` ``` ./tools/configen/configen/utils.py:4:1: F401 'typing.Tuple' imported but unused nox > [2023-07-24 22:16:52,631] Command flake8 --config .flake8 failed with exit code 1 nox > [2023-07-24 22:16:52,632] Session lint-3.10 f...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport sys\nfrom enum import Enum\nfrom typing import Any, Dict, Iterable, List, Optional, Set, Tuple\n\nfrom omegaconf._utils import (\n _resolve_optional,\n get_dict_key_value_types,\n get_list_element_type,\n is...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport sys\nfrom enum import Enum\nfrom typing import Any, Dict, Iterable, List, Optional, Set\n\nfrom omegaconf._utils import (\n _resolve_optional,\n get_dict_key_value_types,\n get_list_element_type,\n is_dict_a...
diff --git a/tools/configen/configen/utils.py b/tools/configen/configen/utils.py index 4faf42fb26..546ebec797 100644 --- a/tools/configen/configen/utils.py +++ b/tools/configen/configen/utils.py @@ -1,7 +1,7 @@ # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import sys from enum import Enum -f...
docker__docker-py-683
client.py - exec_create - broken API Missing 'Id' extraction from a container's dictionary representation: Line #296 : `url = self._url('/containers/{0}/exec'.format(container))` should add the following above it: ``` if isinstance(container, dict): container = container.get('Id') ```
[ { "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/client.py b/docker/client.py index 908468959..af4b635bb 100644 --- a/docker/client.py +++ b/docker/client.py @@ -273,6 +273,7 @@ def events(self, since=None, until=None, filters=None, decode=None): decode=decode ) + @check_resource def exec_create(self, container, cmd...
django-oscar__django-oscar-4257
There is no link from the dashboard to Attribute Option Group list page I found the page `/dashboard/catalogue/attribute-option-group/` useful to manage option groups (insert / delete options from groups), but I see no link from the dashboard to this page, is it missing?
[ { "content": "from django.urls import reverse_lazy\nfrom django.utils.translation import gettext_lazy as _\n\nOSCAR_SHOP_NAME = \"Oscar\"\nOSCAR_SHOP_TAGLINE = \"\"\nOSCAR_HOMEPAGE = reverse_lazy(\"catalogue:index\")\n\n# Dynamic class loading\nOSCAR_DYNAMIC_CLASS_LOADER = \"oscar.core.loading.default_class_loa...
[ { "content": "from django.urls import reverse_lazy\nfrom django.utils.translation import gettext_lazy as _\n\nOSCAR_SHOP_NAME = \"Oscar\"\nOSCAR_SHOP_TAGLINE = \"\"\nOSCAR_HOMEPAGE = reverse_lazy(\"catalogue:index\")\n\n# Dynamic class loading\nOSCAR_DYNAMIC_CLASS_LOADER = \"oscar.core.loading.default_class_loa...
diff --git a/src/oscar/defaults.py b/src/oscar/defaults.py index f231afbf449..53639d6e8f3 100644 --- a/src/oscar/defaults.py +++ b/src/oscar/defaults.py @@ -133,6 +133,10 @@ "label": _("Options"), "url_name": "dashboard:catalogue-option-list", }, + { + ...
PokemonGoF__PokemonGo-Bot-4547
No usable pokeballs found When "No usable pokeballs found" happens, the bot just hanging there and not tried to move and spin the fort.
[ { "content": "# -*- coding: utf-8 -*-\n\nimport os\nimport time\nimport json\nimport logging\nimport time\nfrom random import random, randrange\nfrom pokemongo_bot import inventory\nfrom pokemongo_bot.base_task import BaseTask\nfrom pokemongo_bot.human_behaviour import sleep, action_delay\nfrom pokemongo_bot.in...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport os\nimport time\nimport json\nimport logging\nimport time\nfrom random import random, randrange\nfrom pokemongo_bot import inventory\nfrom pokemongo_bot.base_task import BaseTask\nfrom pokemongo_bot.human_behaviour import sleep, action_delay\nfrom pokemongo_bot.in...
diff --git a/pokemongo_bot/cell_workers/pokemon_catch_worker.py b/pokemongo_bot/cell_workers/pokemon_catch_worker.py index aa060b46be..a494783382 100644 --- a/pokemongo_bot/cell_workers/pokemon_catch_worker.py +++ b/pokemongo_bot/cell_workers/pokemon_catch_worker.py @@ -355,7 +355,7 @@ def _do_catch(self, pokemon, enco...
learningequality__kolibri-4689
Shows sorry! something went wrong. ### Observed behavior When coach is going to the recent tab to see exercise and video progress then it shows error. ### Expected behavior It must show progress instead of error. ### Steps to reproduce 1. Login with coach. 2. go to the recent tab. 3. Go to the exercise/vid...
[ { "content": "import datetime\n\nfrom dateutil.parser import parse\nfrom django.db import connection\nfrom django.db.models import Min\nfrom django.db.models import Q\nfrom django.utils import timezone\nfrom rest_framework import mixins\nfrom rest_framework import pagination\nfrom rest_framework import permissi...
[ { "content": "import datetime\n\nfrom dateutil.parser import parse\nfrom django.db import connection\nfrom django.db.models import Min\nfrom django.db.models import Q\nfrom django.utils import timezone\nfrom rest_framework import mixins\nfrom rest_framework import pagination\nfrom rest_framework import permissi...
diff --git a/kolibri/plugins/coach/api.py b/kolibri/plugins/coach/api.py index 8310fa13339..3fa7ae1568e 100644 --- a/kolibri/plugins/coach/api.py +++ b/kolibri/plugins/coach/api.py @@ -102,7 +102,7 @@ class ContentSummaryViewSet(viewsets.ReadOnlyModelViewSet): def get_queryset(self): channel_id = self.k...
ansible__ansible-modules-core-4285
cron state is changed when using multiline job ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME cron ##### ANSIBLE VERSION 2.0.2.0 ##### CONFIGURATION ##### OS / ENVIRONMENT Darwin craneworks 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64 ##### SUMMAR...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# (c) 2012, Dane Summers <dsummers@pinedesk.biz>\n# (c) 2013, Mike Grozak <mike.grozak@gmail.com>\n# (c) 2013, Patrick Callahan <pmc@patrickcallahan.com>\n# (c) 2015, Evan Kaufman <evan@digitalflophouse.com>\n# (c) 2015, Luca Berruti <nadirio@gmail.c...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n#\n# (c) 2012, Dane Summers <dsummers@pinedesk.biz>\n# (c) 2013, Mike Grozak <mike.grozak@gmail.com>\n# (c) 2013, Patrick Callahan <pmc@patrickcallahan.com>\n# (c) 2015, Evan Kaufman <evan@digitalflophouse.com>\n# (c) 2015, Luca Berruti <nadirio@gmail.c...
diff --git a/system/cron.py b/system/cron.py index aed25d3feab..f7308fda9d4 100644 --- a/system/cron.py +++ b/system/cron.py @@ -383,6 +383,9 @@ def find_env(self, name): return [] def get_cron_job(self,minute,hour,day,month,weekday,job,special,disabled): + # normalize any leading/trailing newlin...
carpentries__amy-1622
500 Server error when 'manual attendance' field is not set Having 'Manual attendance' field unset causes a 500 Server Error. I tried leaving it unset for workshops where the attendance number is not known yet. It defaults to '0' - not sure if this is the desired behaviour (to have attendance at 0). If yes, disregard th...
[ { "content": "from datetime import datetime, timezone\nimport re\n\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Layout, Div, HTML, Submit, Button, Field\nfrom django import forms\nfrom django.contrib.auth.models import Permission\nfrom django.contrib.sites.models import Site\nfro...
[ { "content": "from datetime import datetime, timezone\nimport re\n\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Layout, Div, HTML, Submit, Button, Field\nfrom django import forms\nfrom django.contrib.auth.models import Permission\nfrom django.contrib.sites.models import Site\nfro...
diff --git a/amy/workshops/forms.py b/amy/workshops/forms.py index a1da9863d..03a4051e2 100644 --- a/amy/workshops/forms.py +++ b/amy/workshops/forms.py @@ -575,6 +575,11 @@ def clean_curricula(self): return curricula + def clean_manual_attendance(self): + """Regression: #1608 - fix 500 server er...
mdn__kuma-5638
Why does SSR rendering /en-US/docs/Web require 54 SQL queries? <img width="1500" alt="Screen Shot 2019-08-13 at 3 05 10 PM" src="https://user-images.githubusercontent.com/26739/62969706-da54f880-bddb-11e9-8405-dd1ecd25b657.png">
[ { "content": "from django.conf import settings\nfrom django.http import HttpResponsePermanentRedirect, JsonResponse\nfrom django.shortcuts import get_object_or_404\nfrom django.utils.translation import activate, ugettext as _\nfrom django.views.decorators.cache import never_cache\nfrom django.views.decorators.h...
[ { "content": "from django.conf import settings\nfrom django.http import HttpResponsePermanentRedirect, JsonResponse\nfrom django.shortcuts import get_object_or_404\nfrom django.utils.translation import activate, ugettext as _\nfrom django.views.decorators.cache import never_cache\nfrom django.views.decorators.h...
diff --git a/kuma/api/v1/views.py b/kuma/api/v1/views.py index ddabd8ac64f..48a6c2f90c0 100644 --- a/kuma/api/v1/views.py +++ b/kuma/api/v1/views.py @@ -125,7 +125,7 @@ def document_api_data(doc=None, ensure_contributors=False, redirect_url=None): en_slug = '' other_translations = doc.get_other_translat...
ManimCommunity__manim-3200
issue when using opengl as renderer ## Description of bug / unexpected behavior <!--No module named 'moderngl.program_members' --> When I tried to run the command: `manim --renderer=opengl interactive.py`, an error occurred saying that no such module. But I suppose this is something in the source code, does this mean...
[ { "content": "from __future__ import annotations\n\nimport re\nimport textwrap\nfrom pathlib import Path\n\nimport moderngl\nimport numpy as np\n\nfrom .. import config\nfrom ..utils import opengl\nfrom ..utils.simple_functions import get_parameters\n\nSHADER_FOLDER = Path(__file__).parent / \"shaders\"\nshader...
[ { "content": "from __future__ import annotations\n\nimport re\nimport textwrap\nfrom pathlib import Path\n\nimport moderngl\nimport numpy as np\n\nfrom .. import config\nfrom ..utils import opengl\nfrom ..utils.simple_functions import get_parameters\n\nSHADER_FOLDER = Path(__file__).parent / \"shaders\"\nshader...
diff --git a/manim/renderer/shader.py b/manim/renderer/shader.py index dc28222489..892ccb5892 100644 --- a/manim/renderer/shader.py +++ b/manim/renderer/shader.py @@ -312,7 +312,7 @@ def render(self): else: self.shader.context.disable(moderngl.DEPTH_TEST) - from moderngl.program_members i...
mlflow__mlflow-6024
[BUG] sqlite for backend store ### Willingness to contribute Yes. I would be willing to contribute a fix for this bug with guidance from the MLflow community. ### MLflow version 1.26 ### System information - **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: 20.04 - **Python version**: 3.8 - **yarn ver...
[ { "content": "import os\nimport logging\nimport distutils\n\nfrom importlib.machinery import SourceFileLoader\nfrom setuptools import setup, find_packages\n\n_MLFLOW_SKINNY_ENV_VAR = \"MLFLOW_SKINNY\"\n\nversion = (\n SourceFileLoader(\"mlflow.version\", os.path.join(\"mlflow\", \"version.py\")).load_module(...
[ { "content": "import os\nimport logging\nimport distutils\n\nfrom importlib.machinery import SourceFileLoader\nfrom setuptools import setup, find_packages\n\n_MLFLOW_SKINNY_ENV_VAR = \"MLFLOW_SKINNY\"\n\nversion = (\n SourceFileLoader(\"mlflow.version\", os.path.join(\"mlflow\", \"version.py\")).load_module(...
diff --git a/setup.py b/setup.py index adf20d1e6dcd5..8d73781b087ad 100644 --- a/setup.py +++ b/setup.py @@ -79,7 +79,7 @@ def package_files(directory): # Pin sqlparse for: https://github.com/mlflow/mlflow/issues/3433 "sqlparse>=0.3.1", # Required to run the MLflow server against SQL-backed storage - ...
mitmproxy__mitmproxy-2142
mitmdump -nr does not exit automatically ##### Steps to reproduce the problem: 1. Use `mitmdump -nr foo.mitm` to print some flows. 2. Mitmdump should exit automatically after printing, but it doesn't. ##### System information Mitmproxy version: 3.0.0 (2.0.0dev0136-0x05e1154) Python version: 3.5.2 Platform: ...
[ { "content": "from typing import Optional, Sequence\n\nfrom mitmproxy import optmanager\nfrom mitmproxy.net import tcp\n\n# We redefine these here for now to avoid importing Urwid-related guff on\n# platforms that don't support it, and circular imports. We can do better using\n# a lazy checker down the track.\n...
[ { "content": "from typing import Optional, Sequence\n\nfrom mitmproxy import optmanager\nfrom mitmproxy.net import tcp\n\n# We redefine these here for now to avoid importing Urwid-related guff on\n# platforms that don't support it, and circular imports. We can do better using\n# a lazy checker down the track.\n...
diff --git a/mitmproxy/options.py b/mitmproxy/options.py index 6dd8616be4..798d5b9cee 100644 --- a/mitmproxy/options.py +++ b/mitmproxy/options.py @@ -78,7 +78,7 @@ def __init__(self, **kwargs) -> None: "Kill extra requests during replay." ) self.add_option( - "keepserving", bo...
weecology__retriever-1104
Incorrectly lower casing table_name for csv It looks like we're lower casing manually set table/directory names, at least for csv but probably for all flat file engines. ``` $ mkdir TESTER $ retriever install csv mammal-masses --table_name TESTER/test.csv => Installing mammal-masses [Errno 2] No such file or dir...
[ { "content": "\"\"\"Data Retriever Wizard\n\nRunning this module directly will launch the download wizard, allowing the user\nto choose from all scripts.\n\nThe main() function can be used for bootstrapping.\n\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import print_function\n\nimport os\ni...
[ { "content": "\"\"\"Data Retriever Wizard\n\nRunning this module directly will launch the download wizard, allowing the user\nto choose from all scripts.\n\nThe main() function can be used for bootstrapping.\n\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import print_function\n\nimport os\ni...
diff --git a/retriever/__main__.py b/retriever/__main__.py index a3ae1fa12..9971c7e9a 100644 --- a/retriever/__main__.py +++ b/retriever/__main__.py @@ -32,7 +32,6 @@ def main(): """This function launches the Data Retriever.""" - sys.argv[1:] = [arg.lower() for arg in sys.argv[1:]] if len(sys.argv) == 1...
ivy-llc__ivy-16518
uniform
[ { "content": "# global\n", "path": "ivy/functional/frontends/paddle/tensor/random.py" } ]
[ { "content": "# global\nimport ivy\nfrom ivy.func_wrapper import with_supported_dtypes\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_supported_dtypes(\n {\"2.4.2 and below\": (\"float32\", \"float64\")},\n \"paddle\",\n)\n@to_ivy_arrays_and_back\nde...
diff --git a/ivy/functional/frontends/paddle/tensor/random.py b/ivy/functional/frontends/paddle/tensor/random.py index 28ffa370ad668..62a91cfa2a7ce 100644 --- a/ivy/functional/frontends/paddle/tensor/random.py +++ b/ivy/functional/frontends/paddle/tensor/random.py @@ -1 +1,15 @@ # global +import ivy +from ivy.func_wra...
canonical__cloud-init-4422
package-update-upgrade-install does not work on Gentoo This bug was originally filed in Launchpad as [LP: #1799544](https://bugs.launchpad.net/cloud-init/+bug/1799544) <details> <summary>Launchpad details</summary> <pre> affected_projects = [] assignee = holmanb assignee_name = Brett Holman date_closed = 2022-07-21T15:...
[ { "content": "# Copyright (C) 2014 Rackspace, US Inc.\n# Copyright (C) 2016 Matthew Thode.\n#\n# Author: Nate House <nathan.house@rackspace.com>\n# Author: Matthew Thode <prometheanfire@gentoo.org>\n#\n# This file is part of cloud-init. See LICENSE file for license information.\n\nfrom cloudinit import distros,...
[ { "content": "# Copyright (C) 2014 Rackspace, US Inc.\n# Copyright (C) 2016 Matthew Thode.\n#\n# Author: Nate House <nathan.house@rackspace.com>\n# Author: Matthew Thode <prometheanfire@gentoo.org>\n#\n# This file is part of cloud-init. See LICENSE file for license information.\n\nfrom cloudinit import distros,...
diff --git a/cloudinit/distros/gentoo.py b/cloudinit/distros/gentoo.py index 37217fe4332..d364eae4b0e 100644 --- a/cloudinit/distros/gentoo.py +++ b/cloudinit/distros/gentoo.py @@ -218,7 +218,7 @@ def set_timezone(self, tz): distros.set_etc_timezone(tz=tz, tz_file=self._find_tz_file(tz)) def package_com...
django-hijack__django-hijack-383
TypeError when releasing when LOGOUT_REDIRECT_URL is None According to the Django docs LOGOUT_REDIRECT_URL can be set to None https://docs.djangoproject.com/en/dev/ref/settings/#logout-redirect-url When this is the case a TypeError can be raised [here](https://github.com/django-hijack/django-hijack/blob/master/hi...
[ { "content": "from contextlib import contextmanager\n\nimport django\nfrom django.contrib.auth import BACKEND_SESSION_KEY, get_user_model, load_backend, login\nfrom django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin\nfrom django.db import transaction\nfrom django.http import HttpResponseB...
[ { "content": "from contextlib import contextmanager\n\nimport django\nfrom django.contrib.auth import BACKEND_SESSION_KEY, get_user_model, load_backend, login\nfrom django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin\nfrom django.db import transaction\nfrom django.http import HttpResponseB...
diff --git a/hijack/views.py b/hijack/views.py index 79cee93e..b3ca060e 100755 --- a/hijack/views.py +++ b/hijack/views.py @@ -45,7 +45,7 @@ class SuccessUrlMixin: def get_success_url(self): url = self.get_redirect_url() - return url or resolve_url(self.success_url) + return url or resolve...
ibis-project__ibis-2426
fix bigquery version https://dev.azure.com/ibis-project/ibis/_build/results?buildId=3396&view=logs&j=8f09edc2-e3b7-52de-126a-0225c4f3efa1&t=78a72aec-b398-558e-7c0d-2d33604b9e53 I think we need to limit the upper bound of bigquery library here.
[ { "content": "#!/usr/bin/env python\n\"\"\"Ibis setup module.\"\"\"\nimport pathlib\nimport sys\n\nfrom setuptools import find_packages, setup\n\nimport versioneer\n\nLONG_DESCRIPTION = \"\"\"\nIbis is a productivity-centric Python big data framework.\n\nSee http://ibis-project.org\n\"\"\"\n\nVERSION = sys.vers...
[ { "content": "#!/usr/bin/env python\n\"\"\"Ibis setup module.\"\"\"\nimport pathlib\nimport sys\n\nfrom setuptools import find_packages, setup\n\nimport versioneer\n\nLONG_DESCRIPTION = \"\"\"\nIbis is a productivity-centric Python big data framework.\n\nSee http://ibis-project.org\n\"\"\"\n\nVERSION = sys.vers...
diff --git a/ci/deps/bigquery.yml b/ci/deps/bigquery.yml index e3824aeb63d4..05a1632ad96f 100644 --- a/ci/deps/bigquery.yml +++ b/ci/deps/bigquery.yml @@ -1,2 +1,2 @@ -google-cloud-bigquery>=1.12.0 +google-cloud-bigquery-core >=1.12.0,<1.24.0dev pydata-google-auth diff --git a/setup.py b/setup.py index 148bdf05dc33..8...
svthalia__concrexit-2208
Date format for events <!-- Please add the appropriate label for what change should be made: docs: changes to the documentation) refactor: refactoring production code, eg. renaming a variable or rewriting a function test: adding missing tests, refactoring tests; no production code change chore: updating poetry e...
[ { "content": "\"\"\"Django settings for concrexit.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/dev/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/dev/ref/settings/\n\"\"\"\n\nimport logging\n\nimport base64\nimport json...
[ { "content": "\"\"\"Django settings for concrexit.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/dev/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/dev/ref/settings/\n\"\"\"\n\nimport logging\n\nimport base64\nimport json...
diff --git a/website/thaliawebsite/settings.py b/website/thaliawebsite/settings.py index da955e0e5..912b48815 100644 --- a/website/thaliawebsite/settings.py +++ b/website/thaliawebsite/settings.py @@ -627,13 +627,15 @@ def from_env( # Internationalization # https://docs.djangoproject.com/en/dev/topics/i18n/ +DATETI...
litestar-org__litestar-1231
Bug: LoggingMiddleware is sending obfuscated session id to client **Describe the bug** When using the logging middleware and session middleware together, the logging middleware's cookie obfuscation is overwriting the session name with "*****" and that name is being pushed down to the client. The initial set-cookie ...
[ { "content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING, Any, Callable, Coroutine, Literal, cast\n\nfrom typing_extensions import TypedDict\n\nfrom starlite.connection.request import Request\nfrom starlite.datastructures.upload_file import UploadFile\nfrom starlite.enums import Http...
[ { "content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING, Any, Callable, Coroutine, Literal, cast\n\nfrom typing_extensions import TypedDict\n\nfrom starlite.connection.request import Request\nfrom starlite.datastructures.upload_file import UploadFile\nfrom starlite.enums import Http...
diff --git a/starlite/utils/extractors.py b/starlite/utils/extractors.py index ec4c7d514c..fcb7b77881 100644 --- a/starlite/utils/extractors.py +++ b/starlite/utils/extractors.py @@ -25,10 +25,7 @@ def obfuscate(values: dict[str, Any], fields_to_obfuscate: set[str]) -> dict[str Returns: A dictionary with ...
kovidgoyal__kitty-2824
path expanding on hints **Is your feature request related to a problem? Please describe.** for hints i would like to expand the path this is my current hint config `map kitty_mod+p>n kitten hints --type=linenum --linenum-action=tab nvim {path}` and my term text is ``` /home/becker on  master [⇡»!?] via C base ...
[ { "content": "#!/usr/bin/env python3\n# vim:fileencoding=utf-8\n# License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>\n\nimport os\nimport re\nimport string\nimport sys\nfrom functools import lru_cache\nfrom gettext import gettext as _\nfrom itertools import repeat\nfrom typing import (\n ...
[ { "content": "#!/usr/bin/env python3\n# vim:fileencoding=utf-8\n# License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>\n\nimport os\nimport re\nimport string\nimport sys\nfrom functools import lru_cache\nfrom gettext import gettext as _\nfrom itertools import repeat\nfrom typing import (\n ...
diff --git a/kittens/hints/main.py b/kittens/hints/main.py index 27d8ecb36b5..3c391498359 100644 --- a/kittens/hints/main.py +++ b/kittens/hints/main.py @@ -559,7 +559,7 @@ def linenum_handle_result(args: List[str], data: Dict[str, Any], target_window_i for m, g in zip(data['match'], data['groupdicts']): ...
django-oscar__django-oscar-2066
UnicodeCSVWriter raises AttributeError: 'NoneType' object has no attribute 'writerows' when it used in a second variant in the `with` statement and a filename has passed to the constructor. I've tried smth like: <pre> from oscar.core.compat import UnicodeCSVWriter data = [[1, 2, 3], [4, 5, 6]] with UnicodeCSVWriter('...
[ { "content": "import csv\nimport sys\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.utils import six\n\nfrom oscar.core.loading import get_model\n\n# A setting that can be used in foreign key declarations\nAU...
[ { "content": "import csv\nimport sys\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.utils import six\n\nfrom oscar.core.loading import get_model\n\n# A setting that can be used in foreign key declarations\nAU...
diff --git a/src/oscar/core/compat.py b/src/oscar/core/compat.py index c1adc57a332..d6ec2c8408f 100644 --- a/src/oscar/core/compat.py +++ b/src/oscar/core/compat.py @@ -151,6 +151,7 @@ def __enter__(self): encoding=self.encoding, newline='') else: self.f = open(self.file...
encode__django-rest-framework-2456
Checking for request.version raises AttributeError with BrowsableAPIRenderer I've encountered the following exception when using the Browsable API in conjunction with the new namespace versioning and HyperlinkedModelSerializers: ``` python AttributeError: 'WSGIRequest' object has no attribute 'version' ``` I've imple...
[ { "content": "\"\"\"\nThe Request class is used as a wrapper around the standard request object.\n\nThe wrapped request then offers a richer API, in particular :\n\n - content automatically parsed according to `Content-Type` header,\n and available as `request.data`\n - full support of PUT method, in...
[ { "content": "\"\"\"\nThe Request class is used as a wrapper around the standard request object.\n\nThe wrapped request then offers a richer API, in particular :\n\n - content automatically parsed according to `Content-Type` header,\n and available as `request.data`\n - full support of PUT method, in...
diff --git a/rest_framework/request.py b/rest_framework/request.py index cfbbdeccdc..ce2fcb4768 100644 --- a/rest_framework/request.py +++ b/rest_framework/request.py @@ -107,6 +107,8 @@ def clone_request(request, method): ret.accepted_renderer = request.accepted_renderer if hasattr(request, 'accepted_med...
pyodide__pyodide-325
ValueError: invalid __array_struct__ when using js arrays of arrays and numpy When using a matrix (array of array of numbers) in javascript and trying to convert that to a numpy array, it fails with the error `ValueError: invalid __array_struct__` To reproduce: JavaScript: ``` window.A = [[1,2,3],[4,5,6]]; ``` ...
[ { "content": "\"\"\"\nA library of helper utilities for connecting Python to the browser environment.\n\"\"\"\n\nimport ast\nimport io\nfrom textwrap import dedent\n\n__version__ = '0.8.2'\n\n\ndef open_url(url):\n \"\"\"\n Fetches a given *url* and returns a io.StringIO to access its contents.\n \"\"\...
[ { "content": "\"\"\"\nA library of helper utilities for connecting Python to the browser environment.\n\"\"\"\n\nimport ast\nimport io\nfrom textwrap import dedent\n\n__version__ = '0.8.2'\n\n\ndef open_url(url):\n \"\"\"\n Fetches a given *url* and returns a io.StringIO to access its contents.\n \"\"\...
diff --git a/docs/api_reference.md b/docs/api_reference.md index fdbb6453b09..7e96ab5d0fe 100644 --- a/docs/api_reference.md +++ b/docs/api_reference.md @@ -42,6 +42,21 @@ some preprocessing on the Python code first. Either the resulting object or `None`. +### pyodide.as_nested_list(obj) + +Converts Javascript nes...
DataBiosphere__toil-1003
cwltoil's writeFile uses root logger https://github.com/BD2KGenomics/toil/pull/867#issuecomment-227446745 cwltoil's writeFile uses root logger https://github.com/BD2KGenomics/toil/pull/867#issuecomment-227446745
[ { "content": "# Implement support for Common Workflow Language (CWL) for Toil.\n#\n# Copyright (C) 2015 Curoverse, Inc\n# Copyright (C) 2016 UCSC Computational Genomics Lab\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....
[ { "content": "# Implement support for Common Workflow Language (CWL) for Toil.\n#\n# Copyright (C) 2015 Curoverse, Inc\n# Copyright (C) 2016 UCSC Computational Genomics Lab\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....
diff --git a/src/toil/cwl/cwltoil.py b/src/toil/cwl/cwltoil.py index afc7ffbe51..9b07411bf4 100755 --- a/src/toil/cwl/cwltoil.py +++ b/src/toil/cwl/cwltoil.py @@ -161,7 +161,7 @@ def writeFile(writeFunc, index, x): try: index[x] = (writeFunc(rp), os.path.basename(x)) except Exception as e...
akvo__akvo-rsr-2584
Indicator update - Actual Value Comment (IATI content) (estimate: 8) Created via Reamaze: Link: https://rsrsupport.reamaze.com/admin/conversations/deleted-result-comment-still-showing-and-missing-iati-content Assignee: Geert Soet Message: Hi product team, This morning I had a call with SNV Kenya and we notic...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\nfrom akvo....
[ { "content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\nfrom akvo....
diff --git a/akvo/rsr/models/indicator.py b/akvo/rsr/models/indicator.py index 0ebdb5eecd..a31f155800 100644 --- a/akvo/rsr/models/indicator.py +++ b/akvo/rsr/models/indicator.py @@ -760,6 +760,7 @@ def delete(self, *args, **kwargs): # In case the status was approved, recalculate the period if old_sta...
OpenNMT__OpenNMT-py-342
#layers for encoder equals #layers for decoder I just noticed that for the default RNN encoder, the `enc_layers` parameter is ignored and the number of layers of the encoder is equal to the number of layers of the decoder (see [this line](https://github.com/OpenNMT/OpenNMT-py/blob/master/onmt/ModelConstructor.py#L70))....
[ { "content": "\"\"\"\nThis file is for models creation, which consults options\nand creates each encoder and decoder accordingly.\n\"\"\"\nimport torch.nn as nn\n\nimport onmt\nimport onmt.Models\nimport onmt.modules\nfrom onmt.IO import ONMTDataset\nfrom onmt.Models import NMTModel, MeanEncoder, RNNEncoder, \\...
[ { "content": "\"\"\"\nThis file is for models creation, which consults options\nand creates each encoder and decoder accordingly.\n\"\"\"\nimport torch.nn as nn\n\nimport onmt\nimport onmt.Models\nimport onmt.modules\nfrom onmt.IO import ONMTDataset\nfrom onmt.Models import NMTModel, MeanEncoder, RNNEncoder, \\...
diff --git a/onmt/ModelConstructor.py b/onmt/ModelConstructor.py index ff2783f5d5..135ac679fa 100644 --- a/onmt/ModelConstructor.py +++ b/onmt/ModelConstructor.py @@ -67,7 +67,7 @@ def make_encoder(opt, embeddings): return MeanEncoder(opt.enc_layers, embeddings) else: # "rnn" or "brnn" - r...
qtile__qtile-1644
Can't use asyncio event loop in widgets I am creating a widget that uses asyncio to run some external command (with `asyncio.create_subprocess_exec`). It doesn't work, and raises the `RuntimeError("Cannot add child handler, the child watcher does not have a loop attached")` exception instead. If my understanding of ...
[ { "content": "import asyncio\nimport os\n\nfrom libqtile import ipc\nfrom libqtile.backend import base\nfrom libqtile.core.manager import Qtile\n\n\nclass SessionManager:\n def __init__(\n self, kore: base.Core, config, *, fname: str = None, no_spawn=False, state=None\n ) -> None:\n \"\"\"Ma...
[ { "content": "import asyncio\nimport os\n\nfrom libqtile import ipc\nfrom libqtile.backend import base\nfrom libqtile.core.manager import Qtile\n\n\nclass SessionManager:\n def __init__(\n self, kore: base.Core, config, *, fname: str = None, no_spawn=False, state=None\n ) -> None:\n \"\"\"Ma...
diff --git a/libqtile/core/session_manager.py b/libqtile/core/session_manager.py index ce6eed19ca..0df811fe40 100644 --- a/libqtile/core/session_manager.py +++ b/libqtile/core/session_manager.py @@ -25,6 +25,7 @@ def __init__( The state to restart the qtile instance with. """ eventloop = ...
litestar-org__litestar-1229
Bug: LoggingMiddleware is sending obfuscated session id to client **Describe the bug** When using the logging middleware and session middleware together, the logging middleware's cookie obfuscation is overwriting the session name with "*****" and that name is being pushed down to the client. The initial set-cookie ...
[ { "content": "from typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Coroutine,\n Dict,\n Literal,\n Optional,\n Set,\n Tuple,\n Union,\n cast,\n)\n\nfrom typing_extensions import TypedDict\n\nfrom starlite.connection.request import Request\nfrom starlite.datastructures.uplo...
[ { "content": "from typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Coroutine,\n Dict,\n Literal,\n Optional,\n Set,\n Tuple,\n Union,\n cast,\n)\n\nfrom typing_extensions import TypedDict\n\nfrom starlite.connection.request import Request\nfrom starlite.datastructures.uplo...
diff --git a/starlite/utils/extractors.py b/starlite/utils/extractors.py index 6219352321..360130df8d 100644 --- a/starlite/utils/extractors.py +++ b/starlite/utils/extractors.py @@ -35,10 +35,7 @@ def obfuscate(values: Dict[str, Any], fields_to_obfuscate: Set[str]) -> Dict[str Returns: A dictionary with ...
frappe__frappe-20434
Enable Scheduler from desk Feature to enable scheduler from desk.
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\"\"\"\nEvents:\n\talways\n\tdaily\n\tmonthly\n\tweekly\n\"\"\"\n\n# imports - standard imports\nimport os\nimport time\nfrom typing import NoReturn\n\n# imports - module imports\nimport frappe\nfrom...
[ { "content": "# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n# License: MIT. See LICENSE\n\"\"\"\nEvents:\n\talways\n\tdaily\n\tmonthly\n\tweekly\n\"\"\"\n\n# imports - standard imports\nimport os\nimport time\nfrom typing import NoReturn\n\n# imports - module imports\nimport frappe\nfrom...
diff --git a/frappe/core/doctype/rq_job/rq_job_list.js b/frappe/core/doctype/rq_job/rq_job_list.js index 5f6646cd6561..fed56a16fe01 100644 --- a/frappe/core/doctype/rq_job/rq_job_list.js +++ b/frappe/core/doctype/rq_job/rq_job_list.js @@ -4,11 +4,15 @@ frappe.listview_settings["RQ Job"] = { onload(listview) { if (...
pypi__warehouse-6426
Invalid HTML for select element This html is generated by the Python form code. template: https://github.com/pypa/warehouse/blob/master/warehouse/templates/manage/roles.html field: `{{ form.role_name }}` ERROR: The first child “option” element of a “select” element with a “required” attribute, and without a ...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
[ { "content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw...
diff --git a/warehouse/manage/forms.py b/warehouse/manage/forms.py index 25227ca778c4..64dcf92ee79e 100644 --- a/warehouse/manage/forms.py +++ b/warehouse/manage/forms.py @@ -31,7 +31,7 @@ class RoleNameMixin: role_name = wtforms.SelectField( "Select role", - choices=[("Maintainer", "Maintainer")...
getmoto__moto-2114
Lambda publish_version returns wrong status code In boto3,when lambda publish_version is success,boto3 returns Http status code 201. But, moto returns Http status code 200 moto and boto version ``` boto3 1.9.71 botocore 1.12.71 moto 1.3.7 ```
[ { "content": "from __future__ import unicode_literals\n\nimport json\n\ntry:\n from urllib import unquote\nexcept ImportError:\n from urllib.parse import unquote\n\nfrom moto.core.utils import amz_crc32, amzn_request_id, path_url\nfrom moto.core.responses import BaseResponse\nfrom .models import lambda_ba...
[ { "content": "from __future__ import unicode_literals\n\nimport json\n\ntry:\n from urllib import unquote\nexcept ImportError:\n from urllib.parse import unquote\n\nfrom moto.core.utils import amz_crc32, amzn_request_id, path_url\nfrom moto.core.responses import BaseResponse\nfrom .models import lambda_ba...
diff --git a/moto/awslambda/responses.py b/moto/awslambda/responses.py index d4eb73bc3137..1c43ef84bcf1 100644 --- a/moto/awslambda/responses.py +++ b/moto/awslambda/responses.py @@ -183,7 +183,7 @@ def _publish_function(self, request, full_url, headers): fn = self.lambda_backend.publish_function(function_name...
aws__aws-cli-573
aws ec2 replace-network-acl-entry --protocol ? How can I specify a protocol? When I specify --protocol tcp or --protocol udp, the command fails: A client error (InvalidParameterValue) occurred when calling the ReplaceNetworkAclEntry operation: Invalid value 'tcp' for IP protocol. Unknown protocol. A client error (Inv...
[ { "content": "# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0/\n#...
[ { "content": "# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0/\n#...
diff --git a/awscli/customizations/ec2protocolarg.py b/awscli/customizations/ec2protocolarg.py index f1fb4d46d418..d598ad87a8a4 100644 --- a/awscli/customizations/ec2protocolarg.py +++ b/awscli/customizations/ec2protocolarg.py @@ -29,7 +29,8 @@ def _fix_args(operation, endpoint, params, **kwargs): def register_pro...
bentoml__BentoML-922
Yatai does not handle the STS assumed role in operator.get_arn_role_from_current_aws_user() **Describe the bug** Yatai causes the error: ``` Error: sagemaker deploy failed: INTERNAL:Not supported role type assumed-role; sts arn is arn:aws:sts::103365315157:assumed-role/<rolename>/<username> ``` because [bentoml/...
[ { "content": "import base64\nimport json\nimport logging\nimport os\nimport shutil\nfrom urllib.parse import urlparse\n\nimport boto3\nimport docker\nfrom botocore.exceptions import ClientError\n\nfrom bentoml.exceptions import (\n YataiDeploymentException,\n AWSServiceError,\n InvalidArgument,\n Be...
[ { "content": "import base64\nimport json\nimport logging\nimport os\nimport shutil\nfrom urllib.parse import urlparse\n\nimport boto3\nimport docker\nfrom botocore.exceptions import ClientError\n\nfrom bentoml.exceptions import (\n YataiDeploymentException,\n AWSServiceError,\n InvalidArgument,\n Be...
diff --git a/bentoml/yatai/deployment/sagemaker/operator.py b/bentoml/yatai/deployment/sagemaker/operator.py index 0529a8e83db..39cbfe268b9 100644 --- a/bentoml/yatai/deployment/sagemaker/operator.py +++ b/bentoml/yatai/deployment/sagemaker/operator.py @@ -97,7 +97,7 @@ def get_arn_role_from_current_aws_user(): ...
ros__ros_comm-1835
rosparam still uses unsafe yaml.load https://github.com/ros/ros_comm/blob/5da095d06bccbea708394b399215d8a066797266/tools/rosparam/src/rosparam/__init__.py#L371
[ { "content": "# Software License Agreement (BSD License)\n#\n# Copyright (c) 2008, Willow Garage, 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\n# are met:\n#\n# * Redistributions of so...
[ { "content": "# Software License Agreement (BSD License)\n#\n# Copyright (c) 2008, Willow Garage, 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\n# are met:\n#\n# * Redistributions of so...
diff --git a/tools/rosparam/src/rosparam/__init__.py b/tools/rosparam/src/rosparam/__init__.py index 3279ab97d5..fd8b0569f3 100644 --- a/tools/rosparam/src/rosparam/__init__.py +++ b/tools/rosparam/src/rosparam/__init__.py @@ -368,7 +368,7 @@ def set_param(param, value, verbose=False): :param param: parameter name...
mitmproxy__mitmproxy-2793
MITM Proxy Crashes on when editing a "form" Stack trace: ``` Traceback (most recent call last): File "/Users/ograff/mitmproxy/mitmproxy/tools/console/master.py", line 202, in run self.loop.run() File "/Users/ograff/mitmproxy/venv/lib/python3.6/site-packages/urwid/main_loop.py", line 278, in run self....
[ { "content": "import urllib.parse\nfrom typing import Sequence\nfrom typing import Tuple\n\nfrom mitmproxy.net import check\n\n\ndef parse(url):\n \"\"\"\n URL-parsing function that checks that\n - port is an integer 0-65535\n - host is a valid IDNA-encoded hostname with no null-...
[ { "content": "import urllib.parse\nfrom typing import Sequence\nfrom typing import Tuple\n\nfrom mitmproxy.net import check\n\n\ndef parse(url):\n \"\"\"\n URL-parsing function that checks that\n - port is an integer 0-65535\n - host is a valid IDNA-encoded hostname with no null-...
diff --git a/mitmproxy/net/http/url.py b/mitmproxy/net/http/url.py index 86f65cfdc8..f938cb12d4 100644 --- a/mitmproxy/net/http/url.py +++ b/mitmproxy/net/http/url.py @@ -76,7 +76,7 @@ def encode(s: Sequence[Tuple[str, str]], similar_to: str=None) -> str: encoded = urllib.parse.urlencode(s, False, errors="surrog...
StackStorm__st2-4234
Missing [workflow_engine] in st2.conf.sample ##### SUMMARY https://github.com/StackStorm/st2/blob/master/conf/st2.conf.sample is missing a new section for `[workflow_engine]` Also, shouldn't this section be named `[workflowengine]` to go along with the "style" of the other sections like `[resultstracker]` , `[gar...
[ { "content": "#!/usr/bin/env python\n# Licensed to the StackStorm, Inc ('StackStorm') under one or more\n# contributor license agreements. See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, V...
[ { "content": "#!/usr/bin/env python\n# Licensed to the StackStorm, Inc ('StackStorm') under one or more\n# contributor license agreements. See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, V...
diff --git a/conf/st2.conf.sample b/conf/st2.conf.sample index 73fdf0d8bd..27645c77a4 100644 --- a/conf/st2.conf.sample +++ b/conf/st2.conf.sample @@ -324,3 +324,7 @@ local_timezone = America/Los_Angeles # Base https URL to access st2 Web UI. This is used to construct history URLs that are sent out when chatops is use...
coala__coala-3908
Fail to install and py.test on docker environment. <!-- Hello! If you're filing a bug, please include every step so as to help us reproduce it on our machines. If you're unsure about how to file an issue, use the issue template. If you need any help regarding usage of coala, check out the documentation or hit us up on ...
[ { "content": "#!/usr/bin/env python3\n\nimport datetime\nimport locale\nimport platform\nimport sys\nfrom os import getenv\nfrom subprocess import call\n\nimport setuptools.command.build_py\nfrom setuptools import find_packages, setup\nfrom setuptools.command.test import test as TestCommand\n\nfrom coalib impor...
[ { "content": "#!/usr/bin/env python3\n\nimport datetime\nimport locale\nimport platform\nimport sys\nfrom os import getenv\nfrom subprocess import call\n\nimport setuptools.command.build_py\nfrom setuptools import find_packages, setup\nfrom setuptools.command.test import test as TestCommand\n\nfrom coalib impor...
diff --git a/setup.py b/setup.py index 7ff6d8d1c2..76cd0c43c7 100755 --- a/setup.py +++ b/setup.py @@ -15,7 +15,10 @@ from coalib.misc.BuildManPage import BuildManPage try: - locale.getlocale() + lc = locale.getlocale() + pf = platform.system() + if pf != 'Windows' and lc == (None, None): + local...
django-oscar__django-oscar-3214
Request not being passed to authenticate method ### Issue Summary Django-oscar's [`EmailAuthenticationForm`](https://github.com/django-oscar/django-oscar/blob/master/src/oscar/apps/customer/forms.py#L76) is a subclass of Django's [`AuthenticationForm`](https://github.com/django/django/blob/master/django/contrib/auth...
[ { "content": "from django import http\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth import login as auth_login\nfrom django.contrib.auth import logout as auth_logout\nfrom django.contrib.auth import update_session_auth_hash\nfrom django.contrib.auth.forms impor...
[ { "content": "from django import http\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth import login as auth_login\nfrom django.contrib.auth import logout as auth_logout\nfrom django.contrib.auth import update_session_auth_hash\nfrom django.contrib.auth.forms impor...
diff --git a/src/oscar/apps/customer/views.py b/src/oscar/apps/customer/views.py index e04ccf81b58..56e6fb62adb 100644 --- a/src/oscar/apps/customer/views.py +++ b/src/oscar/apps/customer/views.py @@ -135,6 +135,7 @@ def get_login_form(self, bind_data=False): def get_login_form_kwargs(self, bind_data=False): ...
ansible__ansible-43500
Task name is overridden by include_role, and is not evaluated in output <!--- Verify first that your issue/request is not already reported on GitHub. THIS FORM WILL BE READ BY A MACHINE, COMPLETE ALL SECTIONS AS DESCRIBED. Also test if the latest release, and devel branch are affected too. ALWAYS add information AF...
[ { "content": "\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n#\n# Ansibl...
[ { "content": "\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n#\n# Ansibl...
diff --git a/lib/ansible/playbook/role_include.py b/lib/ansible/playbook/role_include.py index 37fc0ad68363a0..bef6ca65a363bd 100644 --- a/lib/ansible/playbook/role_include.py +++ b/lib/ansible/playbook/role_include.py @@ -68,7 +68,7 @@ def __init__(self, block=None, role=None, task_include=None): def get_name(s...
vacanza__python-holidays-1775
Mississippi Holiday - Confederate Memorial Day - Calculation incorrect Library version: holidays 0.47 The date for Confederate Memorial Day this year is 2024-04-29. The python-holidays library calculated it to be today, 2024-04-22. https://www.sos.ms.gov/communications-publications/state-holidays https://law.ju...
[ { "content": "# holidays\n# --------\n# A fast, efficient Python library for generating country, province and state\n# specific sets of holidays on the fly. It aims to make determining whether a\n# specific date is a holiday as fast and flexible as possible.\n#\n# Authors: Vacanza Team and individual cont...
[ { "content": "# holidays\n# --------\n# A fast, efficient Python library for generating country, province and state\n# specific sets of holidays on the fly. It aims to make determining whether a\n# specific date is a holiday as fast and flexible as possible.\n#\n# Authors: Vacanza Team and individual cont...
diff --git a/holidays/countries/united_states.py b/holidays/countries/united_states.py index f38ca5fa5..4089308d9 100644 --- a/holidays/countries/united_states.py +++ b/holidays/countries/united_states.py @@ -609,7 +609,7 @@ def _populate_subdiv_ms_public_holidays(self): # Confederate Memorial Day i...
PaddlePaddle__PaddleNLP-6607
[Question]: GPT-3预训练的eval阶段出错 ### GPT-3预训练的eval阶段出错 环境: (1)8卡A100 (2)python -m pip install paddlepaddle-gpu==0.0.0.post112 -f https://www.paddlepaddle.org.cn/whl/linux/gpu/develop.html 报错内容: 采用8卡tensor_parallel预训练GPT-13B,在eval阶段报错: ![image](https://github.com/PaddlePaddle/PaddleNLP/assets/41565156/13ba9d65-3...
[ { "content": "# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/llm/gpt-3/modeling.py b/llm/gpt-3/modeling.py index 968b48f33c75..3c45721c01d3 100644 --- a/llm/gpt-3/modeling.py +++ b/llm/gpt-3/modeling.py @@ -827,7 +827,6 @@ def forward( loss = None if labels is not None: loss = self.criterion(logits, labels) - return loss ...
aio-libs-abandoned__aioredis-py-535
Add a BUSYGROUP reply error The XGROUP CREATE command can return a BUSYGROUP error when a group already exists: https://redis.io/commands/xgroup I think the `ReplyError` subclass for matching it would look like this: ```py class BusyGroupError(ReplyError): MATCH_REPLY = "BUSYGROUP Consumer Group name alread...
[ { "content": "__all__ = [\n 'RedisError',\n 'ProtocolError',\n 'ReplyError',\n 'MaxClientsError',\n 'AuthError',\n 'PipelineError',\n 'MultiExecError',\n 'WatchVariableError',\n 'ChannelClosedError',\n 'ConnectionClosedError',\n 'ConnectionForcedCloseError',\n 'PoolClosedErro...
[ { "content": "__all__ = [\n 'RedisError',\n 'ProtocolError',\n 'ReplyError',\n 'MaxClientsError',\n 'AuthError',\n 'PipelineError',\n 'MultiExecError',\n 'WatchVariableError',\n 'ChannelClosedError',\n 'ConnectionClosedError',\n 'ConnectionForcedCloseError',\n 'PoolClosedErro...
diff --git a/aioredis/errors.py b/aioredis/errors.py index b73e2e424..504c6ce06 100644 --- a/aioredis/errors.py +++ b/aioredis/errors.py @@ -50,6 +50,12 @@ class AuthError(ReplyError): MATCH_REPLY = ("NOAUTH ", "ERR invalid password") +class BusyGroupError(ReplyError): + """Raised if Consumer Group name alr...
ansible__ansible-18194
serial with % groups task per host ##### ISSUE TYPE <!--- Pick one below and delete the rest: --> - Bug Report ##### COMPONENT NAME serial ##### ANSIBLE VERSION <!--- Paste verbatim output from “ansible --version” between quotes below --> ``` devel ansible 2.2.0.0 (detached HEAD eafb4043c9) last updated 2016/10/25...
[ { "content": "# (c) 2012-2014, 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 Licen...
[ { "content": "# (c) 2012-2014, 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 Licen...
diff --git a/lib/ansible/executor/task_queue_manager.py b/lib/ansible/executor/task_queue_manager.py index 2e6948f1e0c869..08b7dd0f6716ee 100644 --- a/lib/ansible/executor/task_queue_manager.py +++ b/lib/ansible/executor/task_queue_manager.py @@ -222,7 +222,7 @@ def run(self, play): ) # Fork # of fo...
freedomofpress__securedrop-6408
Test securedrop-admin with Tails 5.0 ## Description https://tails.boum.org/news/test_5.0-beta1/ Tails 5.0 is based on Debian Bullseye, which means it's using a newer Python version (3.9) among plenty of other things. It's probably worth walking through a full SD install + backup/restore to make sure it works a...
[ { "content": "# -*- mode: python; coding: utf-8 -*-\n#\n# Copyright (C) 2013-2018 Freedom of the Press Foundation & al\n# Copyright (C) 2018 Loic Dachary <loic@dachary.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as...
[ { "content": "# -*- mode: python; coding: utf-8 -*-\n#\n# Copyright (C) 2013-2018 Freedom of the Press Foundation & al\n# Copyright (C) 2018 Loic Dachary <loic@dachary.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as...
diff --git a/admin/bootstrap.py b/admin/bootstrap.py index 1506f9a943..598cf25fa1 100755 --- a/admin/bootstrap.py +++ b/admin/bootstrap.py @@ -138,7 +138,6 @@ def install_apt_dependencies(args: argparse.Namespace) -> None: python3-virtualenv \ python3-yaml \ p...
napari__napari-1241
Some keyboard combinations crash napari ## 🐛 Bug On Linux, I can kill napari by pressing and releasing the Super key. I get the following error: ```pytb WARNING: Traceback (most recent call last): File "/home/jni/miniconda3/envs/all/lib/python3.8/site-packages/vispy/app/backends/_qt.py", line 505, in keyRele...
[ { "content": "from pathlib import Path\n\nfrom qtpy.QtCore import QCoreApplication, Qt, QSize\nfrom qtpy.QtWidgets import (\n QWidget,\n QVBoxLayout,\n QFileDialog,\n QSplitter,\n QMessageBox,\n)\nfrom qtpy.QtGui import QCursor, QGuiApplication\nfrom qtpy.QtCore import QThreadPool\nfrom ..utils.i...
[ { "content": "from pathlib import Path\n\nfrom qtpy.QtCore import QCoreApplication, Qt, QSize\nfrom qtpy.QtWidgets import (\n QWidget,\n QVBoxLayout,\n QFileDialog,\n QSplitter,\n QMessageBox,\n)\nfrom qtpy.QtGui import QCursor, QGuiApplication\nfrom qtpy.QtCore import QThreadPool\nfrom ..utils.i...
diff --git a/napari/_qt/qt_viewer.py b/napari/_qt/qt_viewer.py index 66931fd3d07..ad4aad9ccb9 100644 --- a/napari/_qt/qt_viewer.py +++ b/napari/_qt/qt_viewer.py @@ -571,6 +571,8 @@ def on_key_release(self, event): event : qtpy.QtCore.QEvent Event from the Qt context. """ + if event...
avocado-framework__avocado-4869
TAP parser: warnings are being marked as error .avocado.hint: ``` 1 [kinds] 2 tap = ./scripts/*/*.t 3 4 [tap] 5 uri = $testpath 6 kwargs = PERL5LIB=./lib,LIBVIRT_TCK_CONFIG=./conf/default.yml,LIBVIRT_TCK_AUTOCLEAN=1 ``` test.t: ```bash #!/bin/bash echo "1..4 warning: foo ok 1 - started pe...
[ { "content": "import enum\nimport re\nfrom collections import namedtuple\n\n\n@enum.unique\nclass TestResult(enum.Enum):\n PASS = 'PASS'\n SKIP = 'SKIP'\n FAIL = 'FAIL'\n XFAIL = 'XFAIL'\n XPASS = 'XPASS'\n\n\n# TapParser is based on Meson's TAP parser, which were licensed under the\n# MIT (X11) ...
[ { "content": "import enum\nimport re\nfrom collections import namedtuple\n\n\n@enum.unique\nclass TestResult(enum.Enum):\n PASS = 'PASS'\n SKIP = 'SKIP'\n FAIL = 'FAIL'\n XFAIL = 'XFAIL'\n XPASS = 'XPASS'\n\n\n# TapParser is based on Meson's TAP parser, which were licensed under the\n# MIT (X11) ...
diff --git a/avocado/core/tapparser.py b/avocado/core/tapparser.py index 7572492d5f..2389148307 100644 --- a/avocado/core/tapparser.py +++ b/avocado/core/tapparser.py @@ -153,8 +153,6 @@ def parse(self): if line == '': continue - yield self.Error('unexpected input at line %d' ...
Pyomo__pyomo-351
GAMS stream output (tee) not working after logfile option addition ``` from pyomo.environ import * m = ConcreteModel() m.x = Var() m.c = Constraint(expr=m.x >= 2) m.o = Objective(expr=m.x) SolverFactory('gams').solve(m, tee=True) ``` is failing to stream GAMS output after the merge of #302. Expected behavior is...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin...
diff --git a/pyomo/solvers/plugins/solvers/GAMS.py b/pyomo/solvers/plugins/solvers/GAMS.py index 7e72710d2e0..3139d827934 100644 --- a/pyomo/solvers/plugins/solvers/GAMS.py +++ b/pyomo/solvers/plugins/solvers/GAMS.py @@ -753,7 +753,7 @@ def solve(self, *args, **kwds): command.append("lf=" + str(logfile)) ...
zenml-io__zenml-1301
[BUG]: unable to successfully deploy azure stack recipe ### Contact Details [Optional] _No response_ ### System Information ZenML version: 0.33.0 Install path: /Users/fschulz/dev/learn-zenml/.venv/lib/python3.10/site-packages/zenml Python version: 3.10.8 Platform information: {'os': 'mac', 'mac_version': '13.2'}...
[ { "content": "# Copyright (c) ZenML GmbH 2022. All Rights Reserved.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at:\n\n# https://www.apache.org/licenses/LICENSE-2.0\n\...
[ { "content": "# Copyright (c) ZenML GmbH 2022. All Rights Reserved.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at:\n\n# https://www.apache.org/licenses/LICENSE-2.0\n\...
diff --git a/src/zenml/cli/stack_recipes.py b/src/zenml/cli/stack_recipes.py index e028bffd570..63c54e6773f 100644 --- a/src/zenml/cli/stack_recipes.py +++ b/src/zenml/cli/stack_recipes.py @@ -1080,7 +1080,6 @@ def zen_server_exists() -> bool: help="Relative path at which you want to install the stack_recipe(s)", ...
ivy-llc__ivy-20554
rfftn
[ { "content": "# global\nimport ivy\nfrom ivy.functional.frontends.scipy.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n# fft\n@to_ivy_arrays_and_back\ndef fft(x, n=None, axis=-1, norm=\"backward\", overwrite_x=False):\n return ivy.fft(x, axis, norm=norm, n=n)\n\n\n# ifft\n@to_ivy_arrays_and_back\...
[ { "content": "# global\nimport ivy\nfrom ivy.functional.frontends.scipy.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n# fft\n@to_ivy_arrays_and_back\ndef fft(x, n=None, axis=-1, norm=\"backward\", overwrite_x=False):\n return ivy.fft(x, axis, norm=norm, n=n)\n\n\n# ifft\n@to_ivy_arrays_and_back\...
diff --git a/ivy/functional/frontends/scipy/fft/fft.py b/ivy/functional/frontends/scipy/fft/fft.py index f4e5866a82f4b..27480b2c42eac 100644 --- a/ivy/functional/frontends/scipy/fft/fft.py +++ b/ivy/functional/frontends/scipy/fft/fft.py @@ -40,3 +40,10 @@ def ifftn( x, s=None, axes=None, norm=None, overwrite_x=Fal...
archlinux__archinstall-763
in xfce, it need xarchiver for create archive & extract here-to in xfce, it need xarchiver for create archive & extract here-to in xfce, it need xarchiver for create archive & extract here-to in xfce, it need xarchiver for create archive & extract here-to
[ { "content": "# A desktop environment using \"Xfce4\"\n\nimport archinstall\n\nis_top_level_profile = False\n\n__packages__ = [\n\t\"xfce4\",\n\t\"xfce4-goodies\",\n\t\"pavucontrol\",\n\t\"lightdm\",\n\t\"lightdm-gtk-greeter\",\n\t\"gvfs\",\n\t\"network-manager-applet\",\n]\n\n\ndef _prep_function(*args, **kwar...
[ { "content": "# A desktop environment using \"Xfce4\"\n\nimport archinstall\n\nis_top_level_profile = False\n\n__packages__ = [\n\t\"xfce4\",\n\t\"xfce4-goodies\",\n\t\"pavucontrol\",\n\t\"lightdm\",\n\t\"lightdm-gtk-greeter\",\n\t\"gvfs\",\n\t\"network-manager-applet\",\n\t\"xarchiver\"\n]\n\n\ndef _prep_funct...
diff --git a/profiles/kde.py b/profiles/kde.py index c58f4f45dd..0679859372 100644 --- a/profiles/kde.py +++ b/profiles/kde.py @@ -9,6 +9,7 @@ "konsole", "kate", "dolphin", + "ark", "sddm", "plasma-wayland-session", "egl-wayland", diff --git a/profiles/xfce4.py b/profiles/xfce4.py index 89c04f7cb5..2a428086...
iterative__dvc-2457
dvc remove CLI documentation inconsistency `dvc remove` (without `targets`) prints help which states that `targets` are optional, and if not specified will remove all DVC-files. Clearly not the case. ```bash $ dvc remove [...] targets DVC-files to remove. Optional. (Finds all DVC-files in the ...
[ { "content": "from __future__ import unicode_literals\n\nimport argparse\nimport logging\n\nimport dvc.prompt as prompt\nfrom dvc.exceptions import DvcException\nfrom dvc.command.base import CmdBase, append_doc_link\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass CmdRemove(CmdBase):\n def _is_outs_only(...
[ { "content": "from __future__ import unicode_literals\n\nimport argparse\nimport logging\n\nimport dvc.prompt as prompt\nfrom dvc.exceptions import DvcException\nfrom dvc.command.base import CmdBase, append_doc_link\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass CmdRemove(CmdBase):\n def _is_outs_only(...
diff --git a/dvc/command/remove.py b/dvc/command/remove.py index b8e98200c9..814adcfae3 100644 --- a/dvc/command/remove.py +++ b/dvc/command/remove.py @@ -74,9 +74,6 @@ def add_parser(subparsers, parent_parser): help="Force purge.", ) remove_parser.add_argument( - "targets", - nargs="+"...
PrefectHQ__prefect-1168
flow.update(flow) doesn't maintain mapped edges ``` from prefect import task, Flow, Parameter @task def add_one(x): return x + 1 @task def printit(p): print(p) with Flow("Test Flow") as test_flow: test_list = Parameter("test_list") add_one_list = add_one.map(test_list) printit(add...
[ { "content": "import collections\nimport copy\nimport functools\nimport inspect\nimport json\nimport os\nimport tempfile\nimport time\nimport uuid\nimport warnings\nfrom collections import Counter\nfrom typing import (\n Any,\n Callable,\n Dict,\n Iterable,\n List,\n Mapping,\n Optional,\n ...
[ { "content": "import collections\nimport copy\nimport functools\nimport inspect\nimport json\nimport os\nimport tempfile\nimport time\nimport uuid\nimport warnings\nfrom collections import Counter\nfrom typing import (\n Any,\n Callable,\n Dict,\n Iterable,\n List,\n Mapping,\n Optional,\n ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6aff68b6a3d3..50eddd5ca746 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ These changes are available in the [master branch](https://github.com/PrefectHQ/ - Fix issue with Result Handlers deserializing incorrectly in Cloud - [#1112](https://github.com/Pref...
Bitmessage__PyBitmessage-726
Trouble sending on multicor machines on 0.4.4 I've seen this on both an OSX box (8 cores) and a linux box (4 cores). I was only able to do the full reproducible on linux, as my `keys.dat` file prevented me from going back to 0.4.3 on the OSX box. 1. Check out v0.4.3. 2. Open top 3. Open bitmessage. 4. Send a message. 5...
[ { "content": "#!/usr/bin/env python2.7\n# Copyright (c) 2012 Jonathan Warren\n# Copyright (c) 2012 The Bitmessage developers\n# Distributed under the MIT/X11 software license. See the accompanying\n# file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n# Right now, PyBitmessage only support co...
[ { "content": "#!/usr/bin/env python2.7\n# Copyright (c) 2012 Jonathan Warren\n# Copyright (c) 2012 The Bitmessage developers\n# Distributed under the MIT/X11 software license. See the accompanying\n# file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n# Right now, PyBitmessage only support co...
diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index fffe99e722..491b82f045 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -172,7 +172,6 @@ def start(self, daemon=False): curses = True signal.signal(signal.SIGINT, helper_generic.signal_handler) - signal.sign...
python-discord__bot-935
Modlog Events Should Check for DM At least one of the event handlers in the modlog do not properly account for messages being sent in DMs & attempt to perform a guild ID comparison, which doesn't exist in a DM. This should be guarded against across the cog. ``` AttributeError: 'NoneType' object has no attribute 'id' ...
[ { "content": "import asyncio\nimport difflib\nimport itertools\nimport logging\nimport typing as t\nfrom datetime import datetime\nfrom itertools import zip_longest\n\nimport discord\nfrom dateutil.relativedelta import relativedelta\nfrom deepdiff import DeepDiff\nfrom discord import Colour\nfrom discord.abc im...
[ { "content": "import asyncio\nimport difflib\nimport itertools\nimport logging\nimport typing as t\nfrom datetime import datetime\nfrom itertools import zip_longest\n\nimport discord\nfrom dateutil.relativedelta import relativedelta\nfrom deepdiff import DeepDiff\nfrom discord import Colour\nfrom discord.abc im...
diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py index 9d28030d90..41472c64cc 100644 --- a/bot/cogs/moderation/modlog.py +++ b/bot/cogs/moderation/modlog.py @@ -555,6 +555,10 @@ async def on_message_delete(self, message: discord.Message) -> None: channel = message.channel aut...
lightly-ai__lightly-656
Incorrect inputsize for BarlowTwins Lightning Example Code Should the input_size in [1] be `32` instead of `224`? In [2], we use `input_size=32`. [1] https://github.com/lightly-ai/lightly/blob/master/examples/pytorch_lightning/barlowtwins.py#L44 [2] https://github.com/lightly-ai/lightly/blob/master/examples/pytorc...
[ { "content": "import torch\nfrom torch import nn\nimport torchvision\nimport pytorch_lightning as pl\n\nfrom lightly.data import LightlyDataset\nfrom lightly.data import ImageCollateFunction\nfrom lightly.loss import BarlowTwinsLoss\nfrom lightly.models.modules import BarlowTwinsProjectionHead\n\n\nclass Barlow...
[ { "content": "import torch\nfrom torch import nn\nimport torchvision\nimport pytorch_lightning as pl\n\nfrom lightly.data import LightlyDataset\nfrom lightly.data import ImageCollateFunction\nfrom lightly.loss import BarlowTwinsLoss\nfrom lightly.models.modules import BarlowTwinsProjectionHead\n\n\nclass Barlow...
diff --git a/examples/pytorch_lightning/barlowtwins.py b/examples/pytorch_lightning/barlowtwins.py index fa896134f..697c77bc4 100644 --- a/examples/pytorch_lightning/barlowtwins.py +++ b/examples/pytorch_lightning/barlowtwins.py @@ -41,7 +41,7 @@ def configure_optimizers(self): # or create a dataset from a folder cont...
qtile__qtile-1624
widget.WindowTabs default selected task indicator produces invalid pango markup # Issue description The default _selected task indicator_ (``("<", ">")``) for ``widget.WindowTabs`` produces invalid pango markup and thus the call to ``pango_parse_markup`` fails. It leads to invalid tag names for single word window...
[ { "content": "# Copyright (c) 2012-2013 Craig Barnes\n# Copyright (c) 2012 roger\n# Copyright (c) 2012, 2014 Tycho Andersen\n# Copyright (c) 2014 Sean Vig\n# Copyright (c) 2014 Adi Sieker\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated docume...
[ { "content": "# Copyright (c) 2012-2013 Craig Barnes\n# Copyright (c) 2012 roger\n# Copyright (c) 2012, 2014 Tycho Andersen\n# Copyright (c) 2014 Sean Vig\n# Copyright (c) 2014 Adi Sieker\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated docume...
diff --git a/libqtile/widget/windowtabs.py b/libqtile/widget/windowtabs.py index d6ec7e4c8a..6261cb19d0 100644 --- a/libqtile/widget/windowtabs.py +++ b/libqtile/widget/windowtabs.py @@ -35,7 +35,7 @@ class WindowTabs(base._TextBox): orientations = base.ORIENTATION_HORIZONTAL defaults = [ ("separator...
gratipay__gratipay.com-3792
log spam during test What's this `TypeError` about? Seems spurious ... ``` pid-13897 thread-4384100352 (Thread-1) Traceback (most recent call last): pid-13897 thread-4384100352 (Thread-1) File "/Users/whit537/personal/gratipay/gratipay.com/gratipay/cron.py", line 26, in f pid-13897 thread-4384100352 (Thread-1) f...
[ { "content": "# encoding: utf8\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom datetime import datetime, timedelta\n\nfrom aspen import Response, json\nfrom aspen.utils import to_rfc822, utcnow\nfrom dependency_injection import resolve_dependencies\nfrom postgres.cu...
[ { "content": "# encoding: utf8\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom datetime import datetime, timedelta\n\nfrom aspen import Response, json\nfrom aspen.utils import to_rfc822, utcnow\nfrom dependency_injection import resolve_dependencies\nfrom postgres.cu...
diff --git a/gratipay/utils/__init__.py b/gratipay/utils/__init__.py index ed2a5adb80..8624a6b076 100644 --- a/gratipay/utils/__init__.py +++ b/gratipay/utils/__init__.py @@ -136,7 +136,7 @@ def update_cta(website): nusers = website.db.one(""" SELECT nusers FROM paydays ORDER BY ts_end DESC LIMIT...
jazzband__django-oauth-toolkit-1090
Default value for CLEAR_EXPIRED_TOKENS_BATCH_INTERVAL @merito Sorry this is after the fact but wouldn't a default value of 0 be best, especially since the sleep is always executed even if the batch is tiny. https://github.com/merito/django-oauth-toolkit/blob/725c3c9d8927379c9808abd1badb4fcd9ff1cbaa/oauth2_provider/mod...
[ { "content": "\"\"\"\nThis module is largely inspired by django-rest-framework settings.\n\nSettings for the OAuth2 Provider are all namespaced in the OAUTH2_PROVIDER setting.\nFor example your project's `settings.py` file might look like this:\n\nOAUTH2_PROVIDER = {\n \"CLIENT_ID_GENERATOR_CLASS\":\n ...
[ { "content": "\"\"\"\nThis module is largely inspired by django-rest-framework settings.\n\nSettings for the OAuth2 Provider are all namespaced in the OAUTH2_PROVIDER setting.\nFor example your project's `settings.py` file might look like this:\n\nOAUTH2_PROVIDER = {\n \"CLIENT_ID_GENERATOR_CLASS\":\n ...
diff --git a/docs/settings.rst b/docs/settings.rst index 49460bc0e..01baaaf4b 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -345,10 +345,13 @@ The size of delete batches used by ``cleartokens`` management command. CLEAR_EXPIRED_TOKENS_BATCH_INTERVAL ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Default: ``0.1`` ...
googleapis__google-api-python-client-1629
Python 3.10 compatibility issue #### Environment details - OS type and version: Windows 10 - Python version: `python --version` 3.10.1 - pip version: `pip --version` 21.2.4 - `google-api-python-client` version: `pip show google-api-python-client` - 2.33.0 uritemplate package 3.0.0 is not compatibl...
[ { "content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
[ { "content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
diff --git a/setup.py b/setup.py index a311f168514..344ba624a40 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ # Until this issue is closed # https://github.com/googleapis/google-cloud-python/issues/10566 "google-api-core>=1.21.0,<3.0.0dev", - "uritemplate>=3.0.0,<5", + "uritemplate>=3.0.1,...
internetarchive__openlibrary-5923
Reversion: author searches with wildcards fail <!-- What problem are we solving? What does the experience look like today? What are the symptoms? --> Wildcard asterisk fails in author name search, but works in "All" search. This used to work. ### Evidence / Screenshot (if possible) ![A097E003-93BE-454E-8696-6BD66A6...
[ { "content": "from datetime import datetime\nimport copy\nimport json\nimport logging\nimport random\nimport re\nimport string\nfrom typing import List, Tuple, Any, Union, Optional, Iterable, Dict\nfrom unicodedata import normalize\nfrom json import JSONDecodeError\nimport requests\nimport web\nfrom lxml.etree ...
[ { "content": "from datetime import datetime\nimport copy\nimport json\nimport logging\nimport random\nimport re\nimport string\nfrom typing import List, Tuple, Any, Union, Optional, Iterable, Dict\nfrom unicodedata import normalize\nfrom json import JSONDecodeError\nimport requests\nimport web\nfrom lxml.etree ...
diff --git a/openlibrary/plugins/worksearch/code.py b/openlibrary/plugins/worksearch/code.py index 7f1991f46bf..50c876c70d2 100644 --- a/openlibrary/plugins/worksearch/code.py +++ b/openlibrary/plugins/worksearch/code.py @@ -1108,7 +1108,7 @@ def get_results(self, q, offset=0, limit=100): 'work_count', ...
getpelican__pelican-1426
DOCUTILS_SETTINGS not documented nor initialized DOCUTILS_SETTINGS was introduced in #864, but it has not been documented nor is it initialized in settings.py
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals, print_function\nimport six\n\nimport copy\nimport inspect\nimport os\nimport locale\nimport logging\n\ntry:\n # SourceFileLoader is the recommended way in 3.3+\n from importlib.machinery import SourceFileLoader\n load_sourc...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals, print_function\nimport six\n\nimport copy\nimport inspect\nimport os\nimport locale\nimport logging\n\ntry:\n # SourceFileLoader is the recommended way in 3.3+\n from importlib.machinery import SourceFileLoader\n load_sourc...
diff --git a/docs/settings.rst b/docs/settings.rst index df2fa722a..3f4f21471 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -58,6 +58,10 @@ Setting name (followed by default value, if any) ``datetime.datetime`` constructor. `...
ethereum__web3.py-475
web3.auto raises unclear exception if no client is live * Version: 4.0.0-beta.1 * OS: linux ### What was wrong? If no client is live, I expect w3 to return as `None` in this case, but instead I get an exception. ``` from web3.auto import w3 ``` cc @Sebohe > ~/code/ethtoken/ethtoken/main.py in eip20_t...
[ { "content": "import os\nimport socket\nimport sys\nimport threading\n\ntry:\n from json import JSONDecodeError\nexcept ImportError:\n JSONDecodeError = ValueError\n\nfrom web3.utils.threads import (\n Timeout,\n)\n\nfrom .base import JSONBaseProvider\n\n\ndef get_ipc_socket(ipc_path, timeout=0.1):\n ...
[ { "content": "import os\nimport socket\nimport sys\nimport threading\n\ntry:\n from json import JSONDecodeError\nexcept ImportError:\n JSONDecodeError = ValueError\n\nfrom web3.utils.threads import (\n Timeout,\n)\n\nfrom .base import JSONBaseProvider\n\n\ndef get_ipc_socket(ipc_path, timeout=0.1):\n ...
diff --git a/tests/core/providers/test_ipc_provider.py b/tests/core/providers/test_ipc_provider.py new file mode 100644 index 0000000000..9a445a1031 --- /dev/null +++ b/tests/core/providers/test_ipc_provider.py @@ -0,0 +1,11 @@ +from web3.providers.ipc import ( + IPCProvider, +) + + +def test_ipc_no_path(): + """...
cocotb__cocotb-208
Redhat 6.5 can no longer raise a TestError Regressions report pass but number of tests has gone done on some simulators. Icarus for instance shows this. ``` 0.00ns INFO  cocotb.gpi gpi_embed.c:213 in embed_sim_init Running on Icarus Verilog version 0...
[ { "content": "''' Copyright (c) 2013 Potential Ventures Ltd\nCopyright (c) 2013 SolarFlare Communications Inc\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n * Redistributions of source ...
[ { "content": "''' Copyright (c) 2013 Potential Ventures Ltd\nCopyright (c) 2013 SolarFlare Communications Inc\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n * Redistributions of source ...
diff --git a/cocotb/result.py b/cocotb/result.py index 8ff8d5f6b0..fe5b935e36 100644 --- a/cocotb/result.py +++ b/cocotb/result.py @@ -39,7 +39,8 @@ def raise_error(obj, msg): msg is a string """ exc_type, exc_value, exc_traceback = sys.exc_info() - if sys.version_info.major >= 3: + # 2.6 canno...
readthedocs__readthedocs.org-10572
Most recent available `mambaforge=4.10` is simply too old Hello guys, just wanted to ask you if it's possible to have a more modern version available for `mambaforge` - the best and latest available to be sourced on RTD via the configuration file is 4.10 which is simply too old (maximum conda 4.10 and mamba 0.19) - upd...
[ { "content": "\"\"\"\nDefine constants here to allow import them without any external dependency.\n\nThere are situations where we want to have access to these values without Django installed\n(e.g. common/dockerfiles/tasks.py)\n\nNote these constants where previously defined as Django settings in ``readthedocs...
[ { "content": "\"\"\"\nDefine constants here to allow import them without any external dependency.\n\nThere are situations where we want to have access to these values without Django installed\n(e.g. common/dockerfiles/tasks.py)\n\nNote these constants where previously defined as Django settings in ``readthedocs...
diff --git a/docs/user/config-file/v2.rst b/docs/user/config-file/v2.rst index 6984e9298da..2e0a96e580f 100644 --- a/docs/user/config-file/v2.rst +++ b/docs/user/config-file/v2.rst @@ -330,6 +330,7 @@ You can use several interpreters and versions, from CPython, Miniconda, and Mamb - ``3.11`` - ``miniconda3-4.7`` ...
pantsbuild__pants-4714
Overlaid Config Files are applied in reverse order http://www.pantsbuild.org/options.html#overlaying-config-files documents that one can do: $ ./pants --pants-config-files=a.ini --pants-config-files=b.ini options --options-name="level" level = info (from CONFIG in a.ini) $ cat a.ini [GLOBAL] ...
[ { "content": "# coding=utf-8\n# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import (absolute_import, division, generators, nested_scopes, print_function,\n unicode_literals, with_state...
[ { "content": "# coding=utf-8\n# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\nfrom __future__ import (absolute_import, division, generators, nested_scopes, print_function,\n unicode_literals, with_state...
diff --git a/src/python/pants/option/config.py b/src/python/pants/option/config.py index 10e3c3561d0..554e38aa4f3 100644 --- a/src/python/pants/option/config.py +++ b/src/python/pants/option/config.py @@ -218,7 +218,8 @@ def configs(self): return self._configs def sources(self): - return list(itertools.cha...
numba__numba-5455
bump max llvmlite version to accept 0.32.0 Now that llvmlite 0.32.0rc1 is released. We need to bump the accepted version to `0.33.0.dev0`
[ { "content": "from setuptools import setup, Extension, find_packages\nfrom distutils.command import build\nfrom distutils.spawn import spawn\nfrom distutils import sysconfig\nimport sys\nimport os\nimport platform\n\nimport versioneer\n\nmin_python_version = \"3.6\"\nmin_numpy_build_version = \"1.11\"\nmin_nump...
[ { "content": "from setuptools import setup, Extension, find_packages\nfrom distutils.command import build\nfrom distutils.spawn import spawn\nfrom distutils import sysconfig\nimport sys\nimport os\nimport platform\n\nimport versioneer\n\nmin_python_version = \"3.6\"\nmin_numpy_build_version = \"1.11\"\nmin_nump...
diff --git a/README.rst b/README.rst index e56331f9bda..9be382775d2 100644 --- a/README.rst +++ b/README.rst @@ -41,7 +41,7 @@ Dependencies ============ * Python versions: 3.6-3.8 -* llvmlite 0.31.* +* llvmlite 0.32.* * NumPy >=1.15 (can build with 1.11 for ABI compatibility) Optionally: diff --git a/buildscrip...
sopel-irc__sopel-1941
settings: Bot assumes `+` for modes The `core.modes` setting is assumed to be just a string of letters, and the leading `+` is assumed by `coretasks`: https://github.com/sopel-irc/sopel/blob/a33caf15090d61b90dc831f55cc195e56185dad3/sopel/coretasks.py#L155-L156 @cottongin rightly pointed out on IRC that sometimes it'...
[ { "content": "# coding=utf-8\n\"\"\"Tasks that allow the bot to run, but aren't user-facing functionality\n\nThis is written as a module to make it easier to extend to support more\nresponses to standard IRC codes without having to shove them all into the\ndispatch function in bot.py and making it easier to mai...
[ { "content": "# coding=utf-8\n\"\"\"Tasks that allow the bot to run, but aren't user-facing functionality\n\nThis is written as a module to make it easier to extend to support more\nresponses to standard IRC codes without having to shove them all into the\ndispatch function in bot.py and making it easier to mai...
diff --git a/sopel/coretasks.py b/sopel/coretasks.py index 38379c6c9e..047c6aef11 100644 --- a/sopel/coretasks.py +++ b/sopel/coretasks.py @@ -153,7 +153,11 @@ def startup(bot, trigger): auth_after_register(bot) modes = bot.config.core.modes - bot.write(('MODE', '%s +%s' % (bot.nick, modes))) + if mod...
svthalia__concrexit-1103
Manually entered usernames not lowercased in registrations ### Describe the bug Manually entered usernames are not lowercased in registrations. ### How to reproduce Steps to reproduce the behaviour: 1. Create a registration 2. Enter a manual username that is not completely lowercase 3. Complete the registration...
[ { "content": "\"\"\"The services defined by the registrations package\"\"\"\nimport string\nimport unicodedata\nfrom typing import Union\n\nfrom django.conf import settings\nfrom django.contrib.admin.models import LogEntry, CHANGE\nfrom django.contrib.admin.options import get_content_type_for_model\nfrom django...
[ { "content": "\"\"\"The services defined by the registrations package\"\"\"\nimport string\nimport unicodedata\nfrom typing import Union\n\nfrom django.conf import settings\nfrom django.contrib.admin.models import LogEntry, CHANGE\nfrom django.contrib.admin.options import get_content_type_for_model\nfrom django...
diff --git a/website/registrations/services.py b/website/registrations/services.py index b06b2e09b..8eff2ba46 100644 --- a/website/registrations/services.py +++ b/website/registrations/services.py @@ -288,7 +288,7 @@ def _create_member_from_registration(registration: Registration) -> Member: # Create user u...
Pycord-Development__pycord-607
@commands.bot_has_permissions always fails for moderate_members ### Summary The `@commands.bot_has_permissions` (and possibly other similar decorators such as `has_permissions`) always result in `CheckFailure` if evaluating `moderate_members`. ### Reproduction Steps Use the example code below in a bot to see t...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r...
diff --git a/discord/permissions.py b/discord/permissions.py index 2aa4de1f95..41825b8007 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -148,7 +148,7 @@ def all(cls: Type[P]) -> P: """A factory method that creates a :class:`Permissions` with all permissions set to ``True``. ...
secdev__scapy-2255
tcpdump check error in centos #### Brief description > I have installed tcpdump in PATH, but it reports: scapy.error.Scapy_Exception: tcpdump is not available. Cannot use filter ! I found the code which check tcudmp in /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/scapy/arch/common.py: ``` def _chec...
[ { "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# This program is published under a GPLv2 license\n\n\"\"\"\nFunctions common to different architectures\n\"\"\"\n\nimport ctypes\nimport os\nimport soc...
[ { "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# This program is published under a GPLv2 license\n\n\"\"\"\nFunctions common to different architectures\n\"\"\"\n\nimport ctypes\nimport os\nimport soc...
diff --git a/scapy/arch/common.py b/scapy/arch/common.py index cf92cd9efa1..35276718062 100644 --- a/scapy/arch/common.py +++ b/scapy/arch/common.py @@ -42,7 +42,9 @@ def _check_tcpdump(): return False # On some systems, --version does not exist on tcpdump - return proc.returncode == 0 or output.star...
Mailu__Mailu-958
Using external smtp relay server for outgoing emails Hi, I need to use mailchannels.com to relay all outgoing emails from my Mailu install. In this doc is what I need to change in Postfix: https://mailchannels.zendesk.com/hc/en-us/articles/200262640-Setting-up-for-Postfix Is there any way to do this in Mailu ?...
[ { "content": "#!/usr/bin/python3\n\nimport os\nimport glob\nimport shutil\nimport multiprocessing\nimport logging as log\nimport sys\nfrom mailustart import resolve, convert\n\nfrom podop import run_server\n\nlog.basicConfig(stream=sys.stderr, level=os.environ.get(\"LOG_LEVEL\", \"WARNING\"))\n\ndef start_podop...
[ { "content": "#!/usr/bin/python3\n\nimport os\nimport glob\nimport shutil\nimport multiprocessing\nimport logging as log\nimport sys\nfrom mailustart import resolve, convert\n\nfrom podop import run_server\n\nlog.basicConfig(stream=sys.stderr, level=os.environ.get(\"LOG_LEVEL\", \"WARNING\"))\n\ndef start_podop...
diff --git a/core/postfix/conf/main.cf b/core/postfix/conf/main.cf index 7fb32b678..d7e3dca8f 100644 --- a/core/postfix/conf/main.cf +++ b/core/postfix/conf/main.cf @@ -27,6 +27,11 @@ mydestination = # Relayhost if any is configured relayhost = {{ RELAYHOST }} +{% if RELAYUSER %} +smtp_sasl_auth_enable = yes +smtp_...
rucio__rucio-4790
Fix setup_webui script Motivation ---------- Script has a wrong import, needs to be fixed.
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2015-2021 CERN\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2015-2021 CERN\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
diff --git a/setup_webui.py b/setup_webui.py index ef91603cb5..65afdd4102 100644 --- a/setup_webui.py +++ b/setup_webui.py @@ -35,7 +35,7 @@ from setuputil import get_rucio_version name = 'rucio-webui' -packages = ['rucio', 'rucio.web', 'rucio.web.ui', 'rucio.web.ui.flask', 'rucio.web.flask.common'] +packages =...
scikit-image__scikit-image-3901
ransac selects duplicate data points in random sample ## Description I don't know if this behavior is intentional, but to me it seems a bit odd. When the ransac-method selects the random sample to fit the model, it can select the same data point multiple times. ## Way to reproduce ```python import numpy as np f...
[ { "content": "import math\nimport numpy as np\nfrom numpy.linalg import inv, pinv\nfrom scipy import optimize\nfrom .._shared.utils import check_random_state\n\n\ndef _check_data_dim(data, dim):\n if data.ndim != 2 or data.shape[1] != dim:\n raise ValueError('Input data must have shape (N, %d).' % dim...
[ { "content": "import math\nimport numpy as np\nfrom numpy.linalg import inv, pinv\nfrom scipy import optimize\nfrom .._shared.utils import check_random_state\n\n\ndef _check_data_dim(data, dim):\n if data.ndim != 2 or data.shape[1] != dim:\n raise ValueError('Input data must have shape (N, %d).' % dim...
diff --git a/skimage/measure/fit.py b/skimage/measure/fit.py index 2cb51426f3b..d88b79c4a0b 100644 --- a/skimage/measure/fit.py +++ b/skimage/measure/fit.py @@ -804,7 +804,8 @@ def ransac(data, model_class, min_samples, residual_threshold, # choose random sample set samples = [] - random_idxs...
mindsdb__mindsdb-1576
Add new method to count number of rows for MySQL datasources :electric_plug: :1234: When MindsDB creates a new MySQL datasource we get information for row counts by fetching all datasources. The problem here is that if datasource is big it takes a lot of time. We need a new get_row_count method to return the number of...
[ { "content": "import os\nimport shutil\nimport tempfile\n\nfrom contextlib import closing\nimport mysql.connector\n\nfrom lightwood.api import dtype\nfrom mindsdb.integrations.base import Integration\nfrom mindsdb.utilities.log import log\n\n\nclass MySQLConnectionChecker:\n def __init__(self, **kwargs):\n ...
[ { "content": "import os\nimport shutil\nimport tempfile\n\nfrom contextlib import closing\nimport mysql.connector\n\nfrom lightwood.api import dtype\nfrom mindsdb.integrations.base import Integration\nfrom mindsdb.utilities.log import log\n\n\nclass MySQLConnectionChecker:\n def __init__(self, **kwargs):\n ...
diff --git a/mindsdb/integrations/mysql/mysql.py b/mindsdb/integrations/mysql/mysql.py index 14c6c81d603..2237cf8fae1 100644 --- a/mindsdb/integrations/mysql/mysql.py +++ b/mindsdb/integrations/mysql/mysql.py @@ -190,3 +190,10 @@ def unregister_predictor(self, name): drop table if exists {self.mindsdb_data...
conan-io__conan-2763
[bug] Linter "Unable to import" warning when importing a shared Python Conan package in the build() step - [x] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md). - [x] I've specified the Conan version, operating system version and any tool that can be ...
[ { "content": "import json\nimport os\nimport sys\n\nimport platform\n\nfrom conans.client.output import Color\nfrom conans.errors import ConanException\nfrom subprocess import PIPE, Popen\nfrom conans import __path__ as root_path\n\n\ndef conan_linter(conanfile_path, out):\n if getattr(sys, 'frozen', False):...
[ { "content": "import json\nimport os\nimport sys\n\nimport platform\n\nfrom conans.client.output import Color\nfrom conans.errors import ConanException\nfrom subprocess import PIPE, Popen\nfrom conans import __path__ as root_path\n\n\ndef conan_linter(conanfile_path, out):\n if getattr(sys, 'frozen', False):...
diff --git a/conans/client/cmd/export_linter.py b/conans/client/cmd/export_linter.py index 112b73013a7..4084cdb44a0 100644 --- a/conans/client/cmd/export_linter.py +++ b/conans/client/cmd/export_linter.py @@ -76,6 +76,8 @@ def _accept_message(msg): return False if symbol in ("bare-except", "broad-...
buildbot__buildbot-5912
AttributeError: module 'sqlalchemy.engine.strategies' has no attribute 'PlainEngineStrategy' On buildbot version 3.0.1, since upgrading SQLAlchemy to version 1.4, `buildbot create-master` now throws an error: ``` Traceback (most recent call last): File "/opt/buildbot/master/venv/bin/buildbot", line 8, in <module...
[ { "content": "#!/usr/bin/env python\n#\n# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it wil...
[ { "content": "#!/usr/bin/env python\n#\n# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it wil...
diff --git a/master/buildbot/newsfragments/sqlalchemy-1-4-compatibility.bugfix b/master/buildbot/newsfragments/sqlalchemy-1-4-compatibility.bugfix new file mode 100644 index 000000000000..d5d482db09cb --- /dev/null +++ b/master/buildbot/newsfragments/sqlalchemy-1-4-compatibility.bugfix @@ -0,0 +1 @@ +Updated Buildbot r...
MongoEngine__mongoengine-1454
Rename modifier missing from update Not sure if this is intentional or not but it would be useful to have the `$rename` operator (or "modifier" for the update method for QuerySet and Document) available. I'm currently working around it with `exec_js`, like so: ``` python Document.objects.exec_js(""" function() { db...
[ { "content": "from mongoengine.errors import NotRegistered\n\n__all__ = ('UPDATE_OPERATORS', 'get_document', '_document_registry')\n\n\nUPDATE_OPERATORS = set(['set', 'unset', 'inc', 'dec', 'pop', 'push',\n 'push_all', 'pull', 'pull_all', 'add_to_set',\n 'set_on_ins...
[ { "content": "from mongoengine.errors import NotRegistered\n\n__all__ = ('UPDATE_OPERATORS', 'get_document', '_document_registry')\n\n\nUPDATE_OPERATORS = set(['set', 'unset', 'inc', 'dec', 'pop', 'push',\n 'push_all', 'pull', 'pull_all', 'add_to_set',\n 'set_on_ins...
diff --git a/mongoengine/base/common.py b/mongoengine/base/common.py index da2b8b68b..b9971ff71 100644 --- a/mongoengine/base/common.py +++ b/mongoengine/base/common.py @@ -5,7 +5,7 @@ UPDATE_OPERATORS = set(['set', 'unset', 'inc', 'dec', 'pop', 'push', 'push_all', 'pull', 'pull_all', 'add_t...
weni-ai__bothub-engine-230
Updating settings and remove sentences, training keeps enabled Reported by @johncordeiro in https://github.com/Ilhasoft/bothub/issues/44
[ { "content": "import uuid\nimport base64\nimport requests\n\nfrom functools import reduce\nfrom django.db import models\nfrom django.utils.translation import gettext as _\nfrom django.utils import timezone\nfrom django.conf import settings\nfrom django.core.validators import RegexValidator, _lazy_re_compile\nfr...
[ { "content": "import uuid\nimport base64\nimport requests\n\nfrom functools import reduce\nfrom django.db import models\nfrom django.utils.translation import gettext as _\nfrom django.utils import timezone\nfrom django.conf import settings\nfrom django.core.validators import RegexValidator, _lazy_re_compile\nfr...
diff --git a/bothub/common/models.py b/bothub/common/models.py index 74711b74..44872001 100644 --- a/bothub/common/models.py +++ b/bothub/common/models.py @@ -460,6 +460,9 @@ def ready_for_train(self): if self.training_started_at: return False + if len(self.requirements_to_train) > 0: + ...
hydroshare__hydroshare-2690
Hyperlink DOIs against preferred resolver Hello :-) The DOI foundation recommends [this new, secure resolver](https://www.doi.org/doi_handbook/3_Resolution.html#3.8). Would a PR that updates all static links & the code that generates new ones, plus the test cases be welcome? Cheers!
[ { "content": "import os\nimport zipfile\nimport shutil\nimport logging\nimport requests\n\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.core.files import File\nfrom django.core.files.uploadedfile import UploadedFile\nfrom django.core.exceptions import Vali...
[ { "content": "import os\nimport zipfile\nimport shutil\nimport logging\nimport requests\n\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.core.files import File\nfrom django.core.files.uploadedfile import UploadedFile\nfrom django.core.exceptions import Vali...
diff --git a/docs/bagit/readme.txt b/docs/bagit/readme.txt index 0195f76bd1..2251b08a91 100644 --- a/docs/bagit/readme.txt +++ b/docs/bagit/readme.txt @@ -10,7 +10,7 @@ You can find the full BagIt specification here: https://tools.ietf.org/html/draf You can also find a much more detailed description of HydroShare's...
nvaccess__nvda-8771
UnicodeDecodeError when NVDA running on non-English outdated systems When runing the latest NVDA snapshots on Russian versions of outdated Windows (XP/Vista), in the log I have the following exception: Traceback (most recent call last): File "nvda.pyw", line 64, in <module> UnicodeDecodeError: 'ascii' codec can't de...
[ { "content": "#winUser.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#Copyright (C) 2006-2017 NV Access Limited, Babbage B.V.\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n\r\n\"\"\"Functions that wrap Windows API functions from user32.dll\"\"\"\...
[ { "content": "#winUser.py\r\n#A part of NonVisual Desktop Access (NVDA)\r\n#Copyright (C) 2006-2017 NV Access Limited, Babbage B.V.\r\n#This file is covered by the GNU General Public License.\r\n#See the file COPYING for more details.\r\n\r\n\"\"\"Functions that wrap Windows API functions from user32.dll\"\"\"\...
diff --git a/source/nvda.pyw b/source/nvda.pyw index 80d158c3d24..a37f5f0ceda 100755 --- a/source/nvda.pyw +++ b/source/nvda.pyw @@ -74,7 +74,7 @@ globalVars.startTime=time.time() # Check OS version requirements import winVersion if not winVersion.isSupportedOS(): - winUser.MessageBox(0, unicode(ctypes.FormatErro...
modal-labs__modal-examples-556
apply #556 manually I manually applied the patch from #556. Not sure what's up with that PR
[ { "content": "# # Hello, world!\n#\n# This is a trivial example of a Modal function, but it illustrates a few features:\n#\n# * You can print things to stdout and stderr.\n# * You can return data.\n# * You can map over a function.\n#\n# ## Import Modal and define the app\n#\n# Let's start with the top level imp...
[ { "content": "# # Hello, world!\n#\n# This is a trivial example of a Modal function, but it illustrates a few features:\n#\n# * You can print things to stdout and stderr.\n# * You can return data.\n# * You can map over a function.\n#\n# ## Import Modal and define the app\n#\n# Let's start with the top level imp...
diff --git a/01_getting_started/hello_world.py b/01_getting_started/hello_world.py index 1ef43d63e..a3fe60329 100644 --- a/01_getting_started/hello_world.py +++ b/01_getting_started/hello_world.py @@ -48,7 +48,7 @@ def f(i): # # Inside the `main()` function body, we are calling the function `f` in three ways: # -# 1...
sunpy__sunpy-1818
convert_data_to_pixel issue This line in convert_data_to_pixel: pixelx = (x - crval[0]) / cdelt[0] + (crpix[1] - 1) should be: pixelx = (x - crval[0]) / cdelt[0] + (crpix[0] - 1) I found the problem using 0.6.3, but looking at the source, it persists in 0.6.4.
[ { "content": "from __future__ import absolute_import\n\nimport numpy as np\nimport sunpy.sun as sun\n\nimport astropy.units as u\n\nrsun_meters = sun.constants.radius.si.value\n\n__all__ = ['_convert_angle_units', 'convert_pixel_to_data', 'convert_hpc_hg',\n 'convert_data_to_pixel', 'convert_hpc_hcc',...
[ { "content": "from __future__ import absolute_import\n\nimport numpy as np\nimport sunpy.sun as sun\n\nimport astropy.units as u\n\nrsun_meters = sun.constants.radius.si.value\n\n__all__ = ['_convert_angle_units', 'convert_pixel_to_data', 'convert_hpc_hg',\n 'convert_data_to_pixel', 'convert_hpc_hcc',...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 775bc5f5f53..770484b5b94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ -Latest ------- +0.7.1 +----- + +* Fix bug in `wcs.convert_data_to_pixel` where crpix[1] was used for both axes. + +0.7.0 +----- * Added `timeout` parameter in `sunpy.data.download_samp...
huggingface__transformers-7282
weights partially missing for CamembertForMaskedLM ## Environment info - `transformers` version: 3.1.0 - Platform: Darwin-18.7.0-x86_64-i386-64bit - Python version: 3.7.5 - PyTorch version (GPU?): 1.6.0 (False) - Tensorflow version (GPU?): not installed (NA) - Using GPU in script?: no - Using distributed or p...
[ { "content": "# coding=utf-8\n# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.\n# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the Li...
[ { "content": "# coding=utf-8\n# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.\n# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the Li...
diff --git a/src/transformers/modeling_roberta.py b/src/transformers/modeling_roberta.py index f0be480e4be0..76b7b430d3b4 100644 --- a/src/transformers/modeling_roberta.py +++ b/src/transformers/modeling_roberta.py @@ -303,6 +303,7 @@ def prepare_inputs_for_generation(self, input_ids, attention_mask=None, **model_ cla...
avocado-framework__avocado-4576
TestSuite() initialization config param missing error In the definition of the TestSuite Class the parameter "config" has a default value as None and when the default value is used it fails, forcing us to use a dummy input to get it working. Error example: ``` 'NoneType' object has no attribute 'get' <class 'Attr...
[ { "content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope t...
[ { "content": "# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope t...
diff --git a/avocado/core/suite.py b/avocado/core/suite.py index ace1b5bf40..4247957e1d 100644 --- a/avocado/core/suite.py +++ b/avocado/core/suite.py @@ -103,7 +103,7 @@ def __init__(self, name, config=None, tests=None, job_config=None, self._runner = None self._test_parameters = None - if (...
edgedb__edgedb-6268
EdgeDB server FIPS incompatibility <!-- Please search existing issues to avoid creating duplicates. --> <!-- For the EdgeDB Version: run `edgedb query 'select sys::get_version_as_str()'` from your project directory (or run `select sys::get_version_as_str();` in the EdgeDB interactive shell). For the EdgeDB CLI Ver...
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy...
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy...
diff --git a/edb/pgsql/common.py b/edb/pgsql/common.py index 8304c0f067f..ca4a0f11445 100644 --- a/edb/pgsql/common.py +++ b/edb/pgsql/common.py @@ -165,7 +165,7 @@ def _edgedb_name_to_pg_name(name: str, prefix_length: int = 0) -> str: # md5 (and it doesn't matter which function is better cryptographically # ...
abey79__vpype-103
`read` should discard invisible geometries
[ { "content": "\"\"\"File import/export functions.\n\"\"\"\nimport copy\nimport datetime\nimport math\nimport re\nfrom typing import Iterator, List, Optional, TextIO, Tuple, Union\nfrom xml.etree import ElementTree\n\nimport click\nimport numpy as np\nimport svgelements\nimport svgwrite\nfrom multiprocess import...
[ { "content": "\"\"\"File import/export functions.\n\"\"\"\nimport copy\nimport datetime\nimport math\nimport re\nfrom typing import Iterator, List, Optional, TextIO, Tuple, Union\nfrom xml.etree import ElementTree\n\nimport click\nimport numpy as np\nimport svgelements\nimport svgwrite\nfrom multiprocess import...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bd3bb65..56da2e7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ #### 1.1.0 (UNRELEASED) +* Invisible SVG elements are now discarded (#103) * Fixed `write` to cap SVG width and height to a minimum of 1px (#102) * Fixed grouping of `stat` command in `vpy...
comic__grand-challenge.org-2531
Markdown Editor jumps around too much When editing in Markdown the Grand Challenge editor jumps around a lot, so the writer loses their place. https://user-images.githubusercontent.com/12661555/173570208-c2567b82-bb78-441c-9286-2f70a8f66745.mp4 It would be better if the size of the text area was kept constant, an...
[ { "content": "import os\nimport re\nfrom datetime import datetime, timedelta\nfrom itertools import product\n\nimport sentry_sdk\nfrom disposable_email_domains import blocklist\nfrom django.contrib.messages import constants as messages\nfrom django.urls import reverse\nfrom machina import MACHINA_MAIN_STATIC_DI...
[ { "content": "import os\nimport re\nfrom datetime import datetime, timedelta\nfrom itertools import product\n\nimport sentry_sdk\nfrom disposable_email_domains import blocklist\nfrom django.contrib.messages import constants as messages\nfrom django.urls import reverse\nfrom machina import MACHINA_MAIN_STATIC_DI...
diff --git a/app/config/settings.py b/app/config/settings.py index c357e8c199..37adb9f2b8 100644 --- a/app/config/settings.py +++ b/app/config/settings.py @@ -716,6 +716,7 @@ ) MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS = {} MARKDOWNX_IMAGE_MAX_SIZE = {"size": (2000, 0), "quality": 90} +MARKDOWNX_EDITOR_RESIZABLE = "False...
weni-ai__bothub-engine-199
Ghost Intent Reported by @IlhasoftPeter in https://github.com/Ilhasoft/bothub/issues/26
[ { "content": "import uuid\nimport base64\nimport requests\n\nfrom django.db import models\nfrom django.utils.translation import gettext as _\nfrom django.utils import timezone\nfrom django.conf import settings\nfrom django.core.validators import RegexValidator, _lazy_re_compile\nfrom django.core.mail import sen...
[ { "content": "import uuid\nimport base64\nimport requests\n\nfrom django.db import models\nfrom django.utils.translation import gettext as _\nfrom django.utils import timezone\nfrom django.conf import settings\nfrom django.core.validators import RegexValidator, _lazy_re_compile\nfrom django.core.mail import sen...
diff --git a/bothub/common/models.py b/bothub/common/models.py index c23c9bdf..641b2ecb 100644 --- a/bothub/common/models.py +++ b/bothub/common/models.py @@ -190,7 +190,7 @@ def votes_sum(self): @property def intents(self): return list(set(self.examples( - exclude_deleted=False).exclude( ...
archlinux__archinstall-184
gnome-extra provides WAY too much bloatware I can't imagine most people wanting all the packages this installs on a new installation. Most of these applications are things like games and advanced tools like dconf-editor that your average user should not be touching. Some of them are nice to have but can be installed la...
[ { "content": "import archinstall\n\ninstallation.add_additional_packages(\"gnome gnome-extra gdm\") # We'll create a gnome-minimal later, but for now, we'll avoid issues by giving more than we need.\n# Note: gdm should be part of the gnome group, but adding it here for clarity", "path": "profiles/applicatio...
[ { "content": "import archinstall\n\ninstallation.add_additional_packages(\"gnome gnome-tweaks gnome-todo gnome-sound-recorder evolution gdm\")\n# Note: gdm should be part of the gnome group, but adding it here for clarity\n", "path": "profiles/applications/gnome.py" } ]
diff --git a/profiles/applications/gnome.py b/profiles/applications/gnome.py index 1f2a20a109..e9fd1d50dd 100644 --- a/profiles/applications/gnome.py +++ b/profiles/applications/gnome.py @@ -1,4 +1,4 @@ import archinstall -installation.add_additional_packages("gnome gnome-extra gdm") # We'll create a gnome-minimal l...
pyinstaller__pyinstaller-4360
Windows: Cannot bundle with debug if pkg_resources is a dependency This issue happens when I try to bundle my project, in the Analysis.assemble phase and only when I try to do it with debug enabled. PyInstaller tries to compile a module that is part of an executable (pyinstaller.exe in this case) which fails because it...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2019, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the file COPYING....
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2019, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the file COPYING....
diff --git a/PyInstaller/hooks/hook-pkg_resources.py b/PyInstaller/hooks/hook-pkg_resources.py index 04c588ab79..0f758bd42d 100644 --- a/PyInstaller/hooks/hook-pkg_resources.py +++ b/PyInstaller/hooks/hook-pkg_resources.py @@ -11,3 +11,5 @@ # pkg_resources keeps vendored modules in its _vendor subpackage, and does # ...
conan-io__conan-5334
tools.patch cant create files To help us debug your issue please explain: - [x] I've read the [CONTRIBUTING guide](https://github.com/conan-io/conan/blob/develop/.github/CONTRIBUTING.md). - [x] I've specified the Conan version, operating system version and any tool that can be relevant. - [x] I've explained the st...
[ { "content": "import logging\nimport os\nimport platform\nimport sys\nfrom contextlib import contextmanager\nfrom fnmatch import fnmatch\n\nimport six\nfrom patch import fromfile, fromstring\n\nfrom conans.client.output import ConanOutput\nfrom conans.errors import ConanException\nfrom conans.unicode import get...
[ { "content": "import logging\nimport os\nimport platform\nimport sys\nfrom contextlib import contextmanager\nfrom fnmatch import fnmatch\n\nimport six\nfrom patch import fromfile, fromstring\n\nfrom conans.client.output import ConanOutput\nfrom conans.errors import ConanException\nfrom conans.unicode import get...
diff --git a/conans/client/tools/files.py b/conans/client/tools/files.py index 435afb3e168..fa000b65e20 100644 --- a/conans/client/tools/files.py +++ b/conans/client/tools/files.py @@ -208,7 +208,9 @@ def decode_clean(path, prefix): return path def strip_path(path): - tokens = path.split("/")[str...
kivy__kivy-2523
FileChooser Icon view is not scrolled to the top after opening a dir When FileChooser Icon view is selected and the view is scolled down before opening a directory with many files and folders, ScrollView is not reset and scrolled to the top, as one would expect.
[ { "content": "'''\nFileChooser\n===========\n\n.. versionadded:: 1.0.5\n\n\n.. versionchanged:: 1.2.0\n In the chooser template, the `controller` is not a direct reference anymore\n but a weak-reference.\n You must update all the notation `root.controller.xxx` to\n `root.controller().xxx`.\n\nSimple...
[ { "content": "'''\nFileChooser\n===========\n\n.. versionadded:: 1.0.5\n\n\n.. versionchanged:: 1.2.0\n In the chooser template, the `controller` is not a direct reference anymore\n but a weak-reference.\n You must update all the notation `root.controller.xxx` to\n `root.controller().xxx`.\n\nSimple...
diff --git a/kivy/uix/filechooser.py b/kivy/uix/filechooser.py index 7242f14533..1e86dd5414 100644 --- a/kivy/uix/filechooser.py +++ b/kivy/uix/filechooser.py @@ -717,6 +717,13 @@ class FileChooserIconView(FileChooserController): ''' _ENTRY_TEMPLATE = 'FileIconEntry' + def __init__(self, **kwargs): + ...
mosaicml__composer-496
Move `ComposerTrainer` to top-level imports Our most heavily used objects should be easily importable from `composer` via: ``` from composer import Trainer, ComposerModel ``` rather than remember their submodule: ``` from composer.models import ComposerModel ``` Especially the last one, its tricky to rememb...
[ { "content": "# Copyright 2021 MosaicML. All Rights Reserved.\n\nfrom composer import algorithms as algorithms\nfrom composer import callbacks as callbacks\nfrom composer import datasets as datasets\nfrom composer import loggers as loggers\nfrom composer import models as models\nfrom composer import optim as op...
[ { "content": "# Copyright 2021 MosaicML. All Rights Reserved.\n\nfrom composer import algorithms as algorithms\nfrom composer import callbacks as callbacks\nfrom composer import datasets as datasets\nfrom composer import loggers as loggers\nfrom composer import models as models\nfrom composer import optim as op...
diff --git a/composer/__init__.py b/composer/__init__.py index ee6694915f..3e0c87c78c 100644 --- a/composer/__init__.py +++ b/composer/__init__.py @@ -20,6 +20,7 @@ from composer.core import Timer as Timer from composer.core import TimeUnit as TimeUnit from composer.core import types as types +from composer.models i...
ethereum__web3.py-1107
Backport 1094 to v4 branch ### What was wrong? https://github.com/ethereum/web3.py/issues/1094#issuecomment-428259232 needs to be backported to the v4 branch.
[ { "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]==0.1.0-beta.33\",\n \"py-geth>=2.0.1,<3.0.0\",\n ],\n 'testrpc': [\"eth-testrpc>=1.3.3,<2.0.0\"],\n 'lint...
[ { "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]==0.1.0-beta.33\",\n \"py-geth>=2.0.1,<3.0.0\",\n ],\n 'testrpc': [\"eth-testrpc>=1.3.3,<2.0.0\"],\n 'lint...
diff --git a/setup.py b/setup.py index e5ba56e5ff..e9c00c9986 100644 --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ "pypiwin32>=223;platform_system=='Windows'", ], setup_requires=['setuptools-markdown'], - python_requires='>=3.5, <4', + python_requires='>=3.5.3,<4', extras_require=extras_...
django-cms__django-filer-491
CircularDependencyError when using custom Image model 093d07357ee13d4ea830db136ef037180824ddae added a migration dependency to the swappable `Image` model. But a custom `Image` model inherits from `File`, so `filer.0001_initial` needs to be applied before the custom `Image` model. It of course leads to a `CircularDepe...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.db import models, migrations\nimport filer.fields.multistorage_file\nimport filer.models.mixins\nfrom filer.settings import FILER_IMAGE_MODEL\nfrom django.conf import settings\n\n\nclass Migration(migrations.Migration)...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.db import models, migrations\nimport filer.fields.multistorage_file\nimport filer.models.mixins\nfrom filer.settings import FILER_IMAGE_MODEL\nfrom django.conf import settings\n\n\nclass Migration(migrations.Migration)...
diff --git a/filer/migrations_django/0001_initial.py b/filer/migrations_django/0001_initial.py index c35e9ff8e..b8d70adf5 100644 --- a/filer/migrations_django/0001_initial.py +++ b/filer/migrations_django/0001_initial.py @@ -13,7 +13,6 @@ class Migration(migrations.Migration): dependencies = [ ('auth', '0...
optuna__optuna-4964
Use `__future__.annotations` everywhere in the Optuna code base ### Motivation Optuna drops Python 3.6 from v3.1, so we can use `__future__.annotations`, which simplifies the code base. See [PEP 563](https://peps.python.org/pep-0563/), [PEP584](https://peps.python.org/pep-0584/), [PEP 585](https://peps.python.org/pe...
[ { "content": "from __future__ import annotations\n\nfrom enum import Enum\nimport math\nfrom typing import Callable\nfrom typing import cast\nfrom typing import NamedTuple\nfrom typing import Sequence\n\nimport numpy as np\n\nfrom optuna.logging import get_logger\nfrom optuna.samplers._base import _CONSTRAINTS_...
[ { "content": "from __future__ import annotations\n\nfrom collections.abc import Callable\nfrom collections.abc import Sequence\nfrom enum import Enum\nimport math\nfrom typing import cast\nfrom typing import NamedTuple\n\nimport numpy as np\n\nfrom optuna.logging import get_logger\nfrom optuna.samplers._base im...
diff --git a/optuna/visualization/_optimization_history.py b/optuna/visualization/_optimization_history.py index b489a86c9a..3561c38073 100644 --- a/optuna/visualization/_optimization_history.py +++ b/optuna/visualization/_optimization_history.py @@ -1,11 +1,11 @@ from __future__ import annotations +from collections...
docker__docker-py-1250
attach is causing an "Invalid Argument" exception from os.read ``` python stream = client.attach(container, stream=True, stdout=True, stderr=True) for chunk in stream: pass ``` Results in: ``` File "/Users/michael/work/oss/marina/marina/build.py", line 695, in watcher for chunk in stream: File ".venv/lib/...
[ { "content": "import errno\nimport os\nimport select\nimport struct\n\nimport six\n\ntry:\n from ..transport import NpipeSocket\nexcept ImportError:\n NpipeSocket = type(None)\n\n\nclass SocketError(Exception):\n pass\n\n\ndef read(socket, n=4096):\n \"\"\"\n Reads at most n bytes from socket\n ...
[ { "content": "import errno\nimport os\nimport select\nimport struct\n\nimport six\n\ntry:\n from ..transport import NpipeSocket\nexcept ImportError:\n NpipeSocket = type(None)\n\n\nclass SocketError(Exception):\n pass\n\n\ndef read(socket, n=4096):\n \"\"\"\n Reads at most n bytes from socket\n ...
diff --git a/docker/utils/socket.py b/docker/utils/socket.py index 164b845af..4080f253f 100644 --- a/docker/utils/socket.py +++ b/docker/utils/socket.py @@ -69,7 +69,11 @@ def frames_iter(socket): """ Returns a generator of frames read from socket """ - n = next_frame_size(socket) - while n > 0: - ...
opendatacube__datacube-core-1374
Incompatibilities with xarray > 2022.03 ### Expected behaviour ODC should work with current version of `xarray`. In `setup.py` there's an exclusion of `2022.6.0`, but I don't think that's sufficient. It'd be worth digging up the commit/PR that made that change. ### Actual behaviour Tests are failing. ``` FAI...
[ { "content": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\ntests_require = [\n 'hypothesis',\n 'pycodestyle',\n 'pylint',\n 'pytest',\n 'pytest-cov',\n 'pytest-timeout',\n 'pytest-httpserver',\n 'moto',\n]\ndoc_require = [\n 'Sphinx',\n 'sphinx_rtd_theme'...
[ { "content": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\ntests_require = [\n 'hypothesis',\n 'pycodestyle',\n 'pylint',\n 'pytest',\n 'pytest-cov',\n 'pytest-timeout',\n 'pytest-httpserver',\n 'moto',\n]\ndoc_require = [\n 'Sphinx',\n 'sphinx_rtd_theme'...
diff --git a/setup.py b/setup.py index 2721f9506a..019a9e2dbe 100755 --- a/setup.py +++ b/setup.py @@ -106,7 +106,7 @@ 'sqlalchemy', 'GeoAlchemy2', 'toolz', - 'xarray>=0.9,!=2022.6.0', # >0.9 fixes most problems with `crs` attributes being lost + 'xarray>=0.9,<2022.6', # >0.9 ...
ethereum__web3.py-1095
Dissallow python 3.5.1 ### What was wrong? It looks like `typing.NewType` may not be available in python 3.5.1 https://github.com/ethereum/web3.py/issues/1091 ### How can it be fixed? Check what version `NewType` was added and restrict our python versions as declared in `setup.py` to be `>=` that version
[ { "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]==0.1.0-beta.32\",\n \"py-geth>=2.0.1,<3.0.0\",\n ],\n 'testrpc': [\"eth-testrpc>=1.3.3,<2.0.0\"],\n 'lint...
[ { "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]==0.1.0-beta.32\",\n \"py-geth>=2.0.1,<3.0.0\",\n ],\n 'testrpc': [\"eth-testrpc>=1.3.3,<2.0.0\"],\n 'lint...
diff --git a/setup.py b/setup.py index 87e5defc7d..8c4a8a4ede 100644 --- a/setup.py +++ b/setup.py @@ -81,7 +81,7 @@ "pypiwin32>=223;platform_system=='Windows'", ], setup_requires=['setuptools-markdown'], - python_requires='>=3.5, <4', + python_requires='>=3.5.2, <4', extras_require=extras...